{"version":3,"file":"CustomHeadCode_10.DPKCJbAk.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,MAAM,CAAC,OAAO,IAAM,EAAS,EAAE,CAAC,GAAG,CAAc,IAAI,WAAS,CAAkB,gBAAgB,SAAS,EAAS,SAAS,YAAY,CAAK,KAAK,WAAW,QAAQ,GAAM,CAAC,GAAG,EAAK,WAAW,KAAK,aAAa,OAAO,IAAM,EAAO,EAAW,EAAI,EAAO,QAAQ,aAAa,CAAC,GAAG,CAAC,CAAC,SAAS,OAAO,OAAO,QAAQ,CAAC,SAAS,EAAI,CAAC,OAAO,IAAM,EAAG,SAAS,cAAc,EAAI,CAAC,MAAM,KAAK,EAAO,WAAW,CAAC,QAAQ,GAAG,EAAG,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,EAAK,IAAM,UAAU,IAAM,UAAU,EAAO,cAAa,EAAG,YAAY,EAAO,aAAa,SAAS,KAAK,YAAY,EAAG,CAAC,EAAS,KAAK,EAAG,EAAG,OAAQ,EAAE,CAAC,QAAQ,KAAK,8BAA8B,EAAE,CAAE,UAAU,CAAC,EAAS,QAAQ,GAAI,CAAC,GAAG,CAAC,SAAS,KAAK,YAAY,EAAG,MAAO,IAAI,GAAK,CAAC,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,CAAC,CAAC,kBAAj8B,IAA6B,IAAoD,CAAk3B,EAAoB,EAAe,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,gBAAgB,GAAK,CAAC,CAAC"}