{"version":3,"file":"InteractiveHTMLFrame.CGtg93dJ.mjs","names":["React.useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","c","init_framer_DcxuU94H","addPropertyControls","InteractiveHTMLFrame","props","containerStyle","style","height","iframeStyle","html","__FramerMetadata__","init_InteractiveHTMLFrame","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/w9q8taXbviQPZtuZCij7/wPgjEc99JA3S5JMjV5Mo/InteractiveHTMLFrame.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function InteractiveHTMLFrame(props){const{html,height,title,style}=props;const containerStyle=React.useMemo(()=>({position:\"relative\",width:\"100%\",borderRadius:16,overflow:\"hidden\",background:\"#FFFFFF\",display:\"block\",margin:0,padding:0,lineHeight:0,...style,height}),[height,style]);const iframeStyle=React.useMemo(()=>({width:\"100%\",height:\"100%\",border:\"none\",borderRadius:16,display:\"block\",pointerEvents:\"auto\"}),[]);// The sandbox deliberately omits allow-same-origin. Combined with\n// allow-scripts it would remove the sandbox entirely: embedded HTML could\n// reach the parent page, read agentero.com localStorage and sessionStorage\n// and modify the DOM. Scripts inside the frame still run, so CDN libraries\n// such as d3 keep working. Add a permission back only if something\n// specific needs it.\nreturn /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{title:title,srcDoc:html,sandbox:\"allow-scripts allow-forms\",style:iframeStyle})});}addPropertyControls(InteractiveHTMLFrame,{html:{type:ControlType.String,title:\"HTML\",defaultValue:'<!DOCTYPE html>\\n<html>\\n<head>\\n  <meta charset=\"utf-8\" />\\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\\n  <script src=\"https://d3js.org/d3.v7.min.js\"></script>\\n  <style>\\n    body { margin: 0; font-family: Arial, sans-serif; display: grid; place-items: center; height: 100vh; }\\n  </style>\\n</head>\\n<body>\\n  <div id=\"app\">Interactive HTML goes here.</div>\\n  <script>\\n    const app = document.getElementById(\\'app\\');\\n    app.insertAdjacentHTML(\\'beforeend\\', \\'<p>Edit the HTML property to add your own content and scripts.</p>\\');\\n  </script>\\n</body>\\n</html>',displayTextArea:true},height:{type:ControlType.Number,title:\"Height\",defaultValue:650,min:200,max:2e3,step:10,unit:\"px\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Interactive data visualization\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InteractiveHTMLFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InteractiveHTMLFrame.map"],"mappings":"A,qKAGG,SAAwBQ,EAAqB,EAAM,CAAC,GAAK,CAAC,OAAK,SAAO,QAAM,SAAOC,EAAYC,EAAeV,OAAmB,CAAC,SAAS,WAAW,MAAM,OAAO,aAAa,GAAG,SAAS,SAAS,WAAW,UAAU,QAAQ,QAAQ,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAGW,EAAM,QAAM,GAAG,CAACC,EAAOD,CAAK,CAAC,EAAQE,EAAYb,OAAmB,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,aAAa,GAAG,QAAQ,QAAQ,cAAc,MAAM,GAAG,CAAC,CAAC,EAMvb,MAAoB,gBAAK,MAAM,CAAC,MAAMU,EAAe,SAAsB,gBAAK,SAAS,CAAO,QAAM,OAAOI,EAAK,QAAQ,4BAA4B,MAAMD,CAAW,CAAC,CAAC,CAAC,CAAE,C,gDAACN,EAAoBC,EAAqB,CAAC,KAAK,CAAC,KAAKS,EAAY,OAAO,MAAM,OAAO,aAAa;;;;;;;;;;;;;;;;;SAA0lB,gBAAgB,EAAI,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,gCAAgC,CAAC,CAAC,EACjjC,EAAqB,CAACC,QAAU,CAACC,QAAU,CAACC,KAAO,iBAAiBC,KAAO,uBAAuBC,MAAQ,CAAC,EAAEC,YAAc,CAACC,2BAA6B,QAAQC,sBAAwB,IAAIC,4BAA8B,OAAO,CAAC,EAAEC,mBAAqB,CAACP,KAAO,UAAU,CAAC,CAAC,C"}