{"version":3,"file":"FAQPageSchema_2.CjzvyXnv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/B7EIyQSrwcLTma9kMJ8Y/MdRy4oPYOpfQni8JIJCv/FAQPageSchema_2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * FAQPage Schema JSON-LD\n * Injects explicit FAQ structured data (better than DOM-detection).\n * Use on Homepage, Pricing, Produkt, etc. with predefined Q&A.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function FAQPageSchema(props){const{scriptId=\"faqpage-schema-jsonld\",pageUrl=\"\",inLanguage=\"de-DE\",faqsJson=\"[]\"}=props;useEffect(()=>{if(typeof window===\"undefined\")return;const existing=document.getElementById(scriptId);if(existing)existing.remove();let faqs=[];try{faqs=JSON.parse(faqsJson);}catch{faqs=[];}if(!faqs.length)return;const schema={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"@id\":pageUrl?`${pageUrl}#faqpage`:\"https://www.indicium.ag/#faqpage\",inLanguage,mainEntity:faqs.map(f=>({\"@type\":\"Question\",name:f.question,acceptedAnswer:{\"@type\":\"Answer\",text:f.answer}}))};const script=document.createElement(\"script\");script.id=scriptId;script.type=\"application/ld+json\";script.textContent=JSON.stringify(schema);document.head.appendChild(script);return()=>{const el=document.getElementById(scriptId);if(el)el.remove();};},[scriptId,pageUrl,inLanguage,faqsJson]);return /*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,overflow:\"hidden\"}});}addPropertyControls(FAQPageSchema,{scriptId:{type:ControlType.String,title:\"Script ID\",defaultValue:\"faqpage-schema-jsonld\"},pageUrl:{type:ControlType.String,title:\"Page URL\",defaultValue:\"https://www.indicium.ag\"},inLanguage:{type:ControlType.String,title:\"Language\",defaultValue:\"de-DE\"},faqsJson:{type:ControlType.String,title:\"FAQs JSON\",defaultValue:\"[]\",displayTextArea:true,description:'JSON Array: [{\"question\":\"...\",\"answer\":\"...\"}, ...]'}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQPageSchema\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQPageSchema_2.map"],"mappings":"wLASG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,wBAAwB,UAAQ,GAAG,aAAW,QAAQ,WAAS,MAAM,EAA+vB,OAAzvB,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAS,SAAS,eAAe,EAAS,CAAI,GAAS,EAAS,QAAQ,CAAC,IAAI,EAAK,EAAE,CAAC,GAAG,CAAC,EAAK,KAAK,MAAM,EAAS,MAAO,CAAC,EAAK,EAAE,CAAE,GAAG,CAAC,EAAK,OAAO,OAAO,IAAM,EAAO,CAAC,WAAW,qBAAqB,QAAQ,UAAU,MAAM,EAAQ,GAAG,EAAQ,UAAU,mCAAmC,aAAW,WAAW,EAAK,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAK,EAAE,SAAS,eAAe,CAAC,QAAQ,SAAS,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAO,EAAO,SAAS,cAAc,SAAS,CAAkI,MAAjI,GAAO,GAAG,EAAS,EAAO,KAAK,sBAAsB,EAAO,YAAY,KAAK,UAAU,EAAO,CAAC,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,IAAM,EAAG,SAAS,eAAe,EAAS,CAAI,GAAG,EAAG,QAAQ,GAAK,CAAC,EAAS,EAAQ,EAAW,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS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