{"version":3,"file":"InteractiveHTMLFrame.BDwaugBX.mjs","names":["React.useMemo"],"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":"2KAGG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,OAAK,SAAO,QAAM,SAAO,EAMtF,OAAoB,EAAK,MAAM,CAAC,MANiFA,OAAmB,CAAC,SAAS,WAAW,MAAM,OAAO,aAAa,GAAG,SAAS,SAAS,WAAW,UAAU,QAAQ,QAAQ,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAM,QAAM,GAAG,CAAC,EAAO,CAAK,CAMzP,EAAE,SAAsB,EAAK,SAAS,CAAO,QAAM,OAAO,EAAK,QAAQ,4BAA4B,MAN2KA,OAAmB,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,aAAa,GAAG,QAAQ,QAAQ,cAAc,MAAM,GAAG,CAAC,CAMhR,CAAC,CAAC,CAAC,CAAC,CAAE,iBATlI,IAA4B,IAAoD,EASmD,EAAoB,EAAqB,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa;;;;;;;;;;;;;;;;;SAA0lB,gBAAgB,EAAI,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,gCAAgC,CAAC,CAAC,EACjjC,EAAqB,CAAC,QAAU,CAAC,QAAU,CAAC,KAAO,iBAAiB,KAAO,uBAAuB,MAAQ,CAAC,EAAE,YAAc,CAAC,2BAA6B,QAAQ,sBAAwB,IAAI,4BAA8B,OAAO,CAAC,EAAE,mBAAqB,CAAC,KAAO,UAAU,CAAC,CAAC"}