{"version":3,"file":"CustomHeadCode_10.BOterTNF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/U2xfyBlVFnj0jau1PBX0/JjsqcmUGiIQhG3kF5dI1/CustomHeadCode_10.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomHeadCode({headCode}){useEffect(()=>{if(!headCode||!headCode.trim())return;const injected=[];try{const parser=new DOMParser;const doc=parser.parseFromString(`<head>${headCode}</head>`,\"text/html\");doc.head.childNodes.forEach(node=>{if(node.nodeType!==Node.ELEMENT_NODE)return;const source=node;const tag=source.tagName.toLowerCase();if(![\"script\",\"link\",\"meta\",\"style\"].includes(tag))return;const el=document.createElement(tag);Array.from(source.attributes).forEach(a=>el.setAttribute(a.name,a.value));if((tag===\"script\"||tag===\"style\")&&source.textContent){el.textContent=source.textContent;}document.head.appendChild(el);injected.push(el);});}catch(e){console.warn(\"CustomHeadCode: parse error\",e);}return()=>{injected.forEach(el=>{try{document.head.removeChild(el);}catch{}});};},[headCode]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(CustomHeadCode,{headCode:{type:ControlType.String,title:\"Head Code\",defaultValue:\"\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomHeadCode\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomHeadCode_10.map"],"mappings":"0KAA4H,SAAwB,EAAe,CAAC,YAAU,CAAswB,OAArwB,MAAc,CAAC,GAAG,CAAC,GAAU,CAAC,EAAS,KAAK,EAAE,OAAO,IAAM,EAAS,CAAC,EAAE,GAAG,CAAqG,IAAnF,UAAyB,CAAC,CAAC,gBAAgB,SAAS,EAAS,SAAS,WAAe,CAAC,CAAC,KAAK,WAAW,QAAQ,GAAM,CAAC,GAAG,EAAK,WAAW,KAAK,aAAa,OAAO,IAAM,EAAO,EAAW,EAAI,EAAO,QAAQ,YAAY,EAAE,GAAG,CAAC,CAAC,SAAS,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,CAAG,EAAE,OAAO,IAAM,EAAG,SAAS,cAAc,CAAG,EAAE,MAAM,KAAK,EAAO,UAAU,CAAC,CAAC,QAAQ,GAAG,EAAG,aAAa,EAAE,KAAK,EAAE,KAAK,CAAC,GAAM,IAAM,UAAU,IAAM,UAAU,EAAO,cAAa,EAAG,YAAY,EAAO,aAAa,SAAS,KAAK,YAAY,CAAE,EAAE,EAAS,KAAK,CAAE,CAAE,CAAC,CAAE,OAAO,EAAE,CAAC,QAAQ,KAAK,8BAA8B,CAAC,CAAE,CAAC,UAAU,CAAC,EAAS,QAAQ,GAAI,CAAC,GAAG,CAAC,SAAS,KAAK,YAAY,CAAE,CAAE,MAAM,CAAC,CAAC,CAAC,CAAE,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAE,iBAAn8B,IAA6B,IAAoD,EAAm3B,EAAoB,EAAe,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,gBAAgB,EAAI,CAAC,CAAC"}