{"version":3,"file":"SchemaFAQ.B3MoR2Wx.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8RTQwPppeMAUcmdNEHBw/ddPPhb1opHJvaAYOunT8/SchemaFAQ.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://www.curebridge.in\";/** A CMS field that has not been filled in should never reach the JSON-LD. */function clean(value){if(typeof value!==\"string\")return undefined;const trimmed=value.replace(/\\s+/g,\" \").trim();return trimmed.length>0?trimmed:undefined;}function absolute(pathOrUrl){const v=clean(pathOrUrl);if(!v)return undefined;if(/^https?:\\/\\//i.test(v))return v;return SITE+(v.startsWith(\"/\")?v:\"/\"+v);}/** Drops empty strings, empty arrays and empty objects so the emitted graph stays valid. */function prune(input){if(Array.isArray(input)){const list=input.map(prune).filter(x=>x!==undefined);return list.length>0?list:undefined;}if(input&&typeof input===\"object\"){const out={};for(const key of Object.keys(input)){const value=prune(input[key]);if(value!==undefined)out[key]=value;}return Object.keys(out).length>0?out:undefined;}if(typeof input===\"string\")return clean(input);return input===undefined||input===null?undefined:input;}function JsonLd({data}){const graph=prune(data);if(!graph)return null;return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",suppressHydrationWarning:true,dangerouslySetInnerHTML:{__html:JSON.stringify(graph)}});}/** The component occupies no space: it exists only to put markup in the document. */const HIDDEN={display:\"none\"};/**\n * Emits FAQPage structured data from up to six question/answer pairs.\n * Pairs left empty in the CMS are skipped, so one instance serves every template.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n */export default function SchemaFAQ(props){const pairs=[[props.q1,props.a1],[props.q2,props.a2],[props.q3,props.a3],[props.q4,props.a4],[props.q5,props.a5],[props.q6,props.a6]];const entities=pairs.filter(([q,a])=>clean(q)&&clean(a)).map(([q,a])=>({\"@type\":\"Question\",name:clean(q),acceptedAnswer:{\"@type\":\"Answer\",text:clean(a)}}));if(entities.length===0)return /*#__PURE__*/_jsx(\"span\",{style:HIDDEN});return /*#__PURE__*/_jsx(\"span\",{style:HIDDEN,children:/*#__PURE__*/_jsx(JsonLd,{data:{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:entities}})});}try{addPropertyControls(SchemaFAQ,{q1:{type:ControlType.String,title:\"Q1\"},a1:{type:ControlType.String,title:\"A1\",displayTextArea:true},q2:{type:ControlType.String,title:\"Q2\"},a2:{type:ControlType.String,title:\"A2\",displayTextArea:true},q3:{type:ControlType.String,title:\"Q3\"},a3:{type:ControlType.String,title:\"A3\",displayTextArea:true},q4:{type:ControlType.String,title:\"Q4\"},a4:{type:ControlType.String,title:\"A4\",displayTextArea:true},q5:{type:ControlType.String,title:\"Q5\"},a5:{type:ControlType.String,title:\"A5\",displayTextArea:true},q6:{type:ControlType.String,title:\"Q6\"},a6:{type:ControlType.String,title:\"A6\",displayTextArea:true}});}catch(e){// The visual editor module is absent outside Framer; the component still renders.\n}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"0\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"0\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaFAQ.map"],"mappings":"4JAAoN,SAAS,EAAM,EAAM,CAAC,GAAG,OAAO,GAAQ,SAAS,OAAiB,IAAM,EAAQ,EAAM,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,EAAQ,OAAO,EAAE,EAAQ,IAAA,EAAU,CAAuP,SAAS,EAAM,EAAM,CAAC,GAAG,MAAM,QAAQ,CAAK,EAAE,CAAC,IAAM,EAAK,EAAM,IAAI,CAAK,CAAC,CAAC,OAAO,GAAG,IAAI,IAAA,EAAS,EAAE,OA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