{"version":3,"file":"FAQSchema.CFGdFxPb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/arH6lrkmJpxbxtJqVGNb/vn8cZTrOJE4yxKWRJcb5/FAQSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function extractText(node){if(node==null||node===false||node===true)return\"\";if(typeof node===\"string\"||typeof node===\"number\")return String(node);if(Array.isArray(node))return node.map(extractText).join(\" \");if(typeof node===\"object\"){if(node.props&&node.props.children!=null)return extractText(node.props.children);if(typeof node.text===\"string\")return node.text;}return\"\";}const clean=v=>extractText(v).replace(/\\s+/g,\" \").trim();/**\n * FAQPage JSON-LD from up to six question/answer pairs. Each answer comes\n * from the plain-text control (A) or, if empty, the rich-text one (Rich A).\n * A pair is left out when its Show toggle is off or either side is empty.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FAQSchema(props){const pairs=[1,2,3,4,5,6].filter(i=>props[\"show\"+i]!==false).map(i=>[clean(props[\"q\"+i]),clean(props[\"a\"+i])||clean(props[\"ra\"+i])]).filter(p=>p[0]&&p[1]);if(pairs.length===0)return null;const data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:pairs.map(p=>({\"@type\":\"Question\",name:p[0],acceptedAnswer:{\"@type\":\"Answer\",text:p[1]}}))};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data)}});}const pair=i=>({[\"q\"+i]:{type:ControlType.String,title:\"Q\"+i},[\"a\"+i]:{type:ControlType.String,title:\"A\"+i},[\"ra\"+i]:{type:ControlType.RichText,title:\"Rich A\"+i},[\"show\"+i]:{type:ControlType.Boolean,title:\"Show \"+i,defaultValue:true}});addPropertyControls(FAQSchema,{...pair(1),...pair(2),...pair(3),...pair(4),...pair(5),...pair(6)});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSchema\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSchema.map"],"mappings":"4JAA+F,SAAS,EAAY,EAAK,CAAC,GAAG,GAAM,MAAM,IAAO,IAAO,IAAO,GAAK,MAAM,GAAG,GAAG,OAAO,GAAO,UAAU,OAAO,GAAO,SAAS,OAAO,OAAO,CAAI,EAAE,GAAG,MAAM,QAAQ,CAAI,EAAE,OAAO,EAAK,IAAI,CAAW,CAAC,CAAC,KAAK,GAAG,EAAE,GAAG,OAAO,GAAO,SAAS,CAAC,GAAG,EAAK,OAAO,EAAK,MAAM,UAAU,KAAK,OAAO,EAAY,EAAK,MAAM,QAAQ,EAAE,GAAG,OAAO,EAAK,MAAO,SAAS,OAAO,EAAK,IAAK,CAAC,MAAM,EAAG,CASnd,SAAwB,EAAU,EAAM,CAAC,IAAM,EAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,GAAG,EAAM,OAAO,KAAK,EAAK,CAAC,CAAC,IAAI,GAAG,CAAC,EAAM,EAAM,IAAI,EAAE,EAAE,EAAM,EAAM,IAAI,EAAE,GAAG,EAAM,EAAM,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAM,SAAS,EAAE,OAAO,KAAK,IAAM,EAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAW,EAAM,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAK,EAAE,GAAG,eAAe,CAAC,QAAQ,SAAS,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,OAAoB,EAAK,SAAS,CAAC,KAA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