{"version":3,"file":"HtmlBlock.COMXjzxT.mjs","names":["useMemo","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","c","p","init_framer_ChujFWHC","addPropertyControls","ControlType","HtmlBlock","props","html","css","vw","classes","out","re","m","n","init_HtmlBlock"],"sources":["https:/framerusercontent.com/modules/MqTcmNEKNpZkkK3rPGTk/Qvabh9lYHyqDmLyz5M2I/HtmlBlock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * HTML Block\n * Renders a self-contained HTML snippet with its own scoped CSS\n * (used for animated illustrations and UI mock-ups).\n * Responsive rules are written as .mq-max-N / .mq-min-N classes and\n * activated from the \"Viewport\" property, set per breakpoint.\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 360\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function HtmlBlock(props){const{html='<div style=\"padding:24px\">HTML block</div>',css=\"\",vw=1440}=props;const classes=useMemo(()=>{const out=new Set;const re=/mq-(max|min)-(\\d+)/g;let m;while(m=re.exec(css)){const n=parseInt(m[2],10);if(m[1]===\"max\"&&vw<=n||m[1]===\"min\"&&vw>=n)out.add(m[0]);}return[...out].join(\" \");},[css,vw]);return /*#__PURE__*/_jsxs(\"div\",{className:\"hb-root \"+classes,style:{...props.style,position:\"relative\",width:\"100%\",fontFamily:'\"Geist\", \"Geist Placeholder\", ui-sans-serif, system-ui, sans-serif'},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},dangerouslySetInnerHTML:{__html:html}})]});}addPropertyControls(HtmlBlock,{html:{type:ControlType.String,title:\"HTML\",displayTextArea:true,defaultValue:'<div style=\"padding:24px\">HTML block</div>'},css:{type:ControlType.String,title:\"CSS\",displayTextArea:true,defaultValue:\"\"},vw:{type:ControlType.Number,title:\"Viewport\",defaultValue:1440,min:320,max:1920,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HtmlBlock\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"560\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"360\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HtmlBlock.map"],"mappings":"A,iLAYG,SAAwBY,EAAUC,EAAM,CAAC,GAAK,CAACC,OAAK,6CAA6CC,MAAI,GAAGC,KAAG,MAAMH,EAAYI,EAAQjB,MAAY,CAAC,IAAMkB,kBAAI,IAAI,IAAUC,EAAG,sBAA0BC,EAAE,KAAMA,EAAED,EAAG,KAAKJ,CAAG,GAAE,CAAC,IAAMM,EAAE,SAASD,EAAE,GAAG,EAAE,GAAKA,EAAE,KAAK,OAAOJ,GAAIK,GAAGD,EAAE,KAAK,OAAOJ,GAAIK,IAAEH,EAAI,IAAIE,EAAE,EAAE,CAAE,CAAC,MAAM,CAAC,GAAGF,CAAG,CAAC,CAAC,KAAK,GAAG,CAAE,EAAE,CAACH,EAAIC,CAAE,CAAC,EAAE,MAAoBf,gBAAM,MAAM,CAAC,UAAU,WAAWgB,EAAQ,MAAM,CAAC,GAAGJ,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,WAAW,oEAAoE,EAAE,SAAS,CAAcX,gBAAK,QAAQ,CAAC,SAASa,CAAG,CAAC,EAAeb,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,EAAE,wBAAwB,CAAC,OAAOY,CAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,0CAACJ,EAAoBE,EAAU,CAAC,KAAK,CAAC,KAAKD,EAAY,OAAO,MAAM,OAAO,gBAAgB,GAAK,aAAa,4CAA4C,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,MAAM,gBAAgB,GAAK,aAAa,EAAE,EAAE,GAAG,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,KAAK,IAAI,CAAC,CAAC,C"}