{"version":3,"file":"SchemaFAQ.y_25jgnX.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_D1IzEvwH","addPropertyControls","ControlType","clean","value","trimmed","prune","input","list","x","out","key","JsonLd","graph","data","SchemaFAQ","entities","props","q","a","HIDDEN","init_SchemaFAQ"],"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":"A,4JAAoN,SAASM,EAAM,EAAM,CAAC,GAAG,OAAOC,GAAQ,SAAS,OAAiB,IAAMC,EAAQD,EAAM,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,OAAOC,EAAQ,OAAO,EAAEA,EAAQ,IAAA,EAAU,CAAuP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