{"version":3,"file":"Widget.BZ2iQuTm.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/X0Ib6awsr1NQ52BmVfdc/YH7cxKVaVlZ7rqw0v0cg/Widget.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function eWebinarWidgetControl(props){const containerRef=useRef(null);useEffect(()=>{const el=containerRef.current;if(!el)return;el.innerHTML=props.code;el.querySelectorAll(\"script\").forEach(oldScript=>{const newScript=document.createElement(\"script\");Array.from(oldScript.attributes).forEach(attr=>newScript.setAttribute(attr.name,attr.value));newScript.textContent=oldScript.textContent;oldScript.parentNode?.replaceChild(newScript,oldScript);});},[props.code]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\"}});}addPropertyControls(eWebinarWidgetControl,{code:{title:\"Widget code\",type:ControlType.String,defaultValue:\"Paste eWebinar widget code here\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"eWebinarWidgetControl\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Widget.map"],"mappings":"iLAGG,SAAwB,EAAsB,EAAM,CAAC,IAAM,EAAaA,EAAO,KAAK,CAA2Y,OAA1Y,MAAc,CAAC,IAAM,EAAG,EAAa,QAAY,IAAU,EAAG,UAAU,EAAM,KAAK,EAAG,iBAAiB,SAAS,CAAC,QAAQ,GAAW,CAAC,IAAM,EAAU,SAAS,cAAc,SAAS,CAAC,MAAM,KAAK,EAAU,WAAW,CAAC,QAAQ,GAAM,EAAU,aAAa,EAAK,KAAK,EAAK,MAAM,CAAC,CAAC,EAAU,YAAY,EAAU,YAAY,EAAU,YAAY,aAAa,EAAU,EAAU,EAAG,GAAG,CAAC,EAAM,KAAK,CAAC,CAAqB,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,CAAC,kBAH5gB,IAAoC,IAAoD,CAGsb,EAAoB,EAAsB,CAAC,KAAK,CAAC,MAAM,cAAc,KAAK,EAAY,OAAO,aAAa,kCAAkC,CAAC,CAAC"}