{"version":3,"file":"InteractiveService.BpuQaMI2.mjs","names":["React.useRef","__esmMin","de","init_jsx_runtime","c","init_npm_react_18_3_1","ce","addPropertyControls","init_framer_CaDWdxiz","ControlType","InteractiveService","host","el","html","old","script","style","init_InteractiveService"],"sources":["https:/framerusercontent.com/modules/OF7PuPqejqnRlh3co8xi/DgvmbWyMkMoiHrYAXv9i/InteractiveService.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function InteractiveService({html=\"\",style}){const host=React.useRef(null);React.useEffect(()=>{const el=host.current;if(!el)return;el.innerHTML=html;const scripts=Array.from(el.querySelectorAll(\"script\"));scripts.forEach(old=>{if(old.type===\"application/ld+json\")return;const script=document.createElement(\"script\");script.textContent=old.textContent;old.replaceWith(script);});return()=>{el.innerHTML=\"\";};},[html]);return /*#__PURE__*/_jsx(\"div\",{ref:host,style:{...style,width:\"100%\",fontFamily:\"Tajawal, sans-serif\"},dangerouslySetInnerHTML:{__html:html}});}addPropertyControls(InteractiveService,{html:{type:ControlType.String,title:\"HTML\",displayTextArea:true,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InteractiveService\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InteractiveService.map"],"mappings":"A,iLAGG,SAAwBU,EAAmB,CAAC,OAAK,GAAG,SAAO,CAAC,IAAMC,EAAKX,EAAa,IAAI,EAAyV,OAAvVM,MAAoB,CAAC,IAAMM,EAAGD,EAAK,QAAQ,GAAIC,EAAiQ,MAAvP,GAAG,UAAUC,EAA6D,MAApC,KAAKD,EAAG,iBAAiB,QAAQ,CAAS,CAAC,CAAC,QAAQ,GAAK,CAAC,GAAGE,EAAI,OAAO,sBAAsB,OAAO,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,YAAYD,EAAI,YAAYA,EAAI,YAAYC,CAAM,CAAE,CAAC,MAAY,CAAC,EAAG,UAAU,EAAG,CAAE,EAAE,CAACF,CAAI,CAAC,EAAsB,gBAAK,MAAM,CAAC,IAAIF,EAAK,MAAM,CAAC,GAAGK,EAAM,MAAM,OAAO,WAAW,qBAAqB,EAAE,wBAAwB,CAAC,OAAOH,CAAI,CAAC,CAAC,CAAE,C,0CAACN,EAAoBG,EAAmB,CAAC,KAAK,CAAC,KAAKD,EAAY,OAAO,MAAM,OAAO,gBAAgB,GAAK,aAAa,EAAE,CAAC,CAAC,C"}