{"version":3,"file":"SchemaFAQ.Dl7_wTBV.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_CaDWdxiz","addPropertyControls","ControlType","SchemaFAQ","props","items","f","data","init_SchemaFAQ"],"sources":["https:/framerusercontent.com/modules/F12Q4CbL44FfYhLS3beO/0z6GTopywobdMp23nhTo/SchemaFAQ.js"],"sourcesContent":["// Outputs FAQPage JSON-LD from a list of questions/answers (bind to a CMS list field)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Schema FAQ\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SchemaFAQ(props){if(props.raw&&props.raw.trim().startsWith(\"{\")){return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:props.raw.replace(/</g,\"\\\\u003c\")}})});}const items=(props.faqs||[]).filter(f=>f&&f.question&&f.answer);if(!items.length)return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1}});const data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.map(f=>({\"@type\":\"Question\",name:f.question,acceptedAnswer:{\"@type\":\"Answer\",text:f.answer}}))};return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data).replace(/</g,\"\\\\u003c\")}})});}addPropertyControls(SchemaFAQ,{raw:{type:ControlType.String,title:\"Raw JSON-LD\",defaultValue:\"\",displayTextArea:true},faqs:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer\",displayTextArea:true}}},defaultValue:[{question:\"Question\",answer:\"Answer\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaFAQ.map"],"mappings":"A,4JAMG,SAAwBM,EAAU,EAAM,CAAC,GAAGC,EAAM,KAAKA,EAAM,IAAI,KAAK,CAAC,CAAC,WAAW,GAAG,EAAG,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,cAAc,OAAO,SAAsB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOA,EAAM,IAAI,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAG,IAAMC,GAAOD,EAAM,MAAM,CAAC,EAAA,CAAG,OAAO,GAAGE,GAAGA,EAAE,UAAUA,EAAE,MAAM,EAAE,GAAG,CAACD,EAAM,OAAO,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,IAAME,EAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAWF,EAAM,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAKC,EAAE,SAAS,eAAe,CAAC,QAAQ,SAAS,KAAKA,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,cAAc,OAAO,SAAsB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAO,KAAK,UAAUC,CAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACN,EAAoBE,EAAU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