{"version":3,"file":"FAQSchema.D06MSXGJ.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_B1b760uK","ControlType","parseEntries","blocks","text","entries","block","lines","line","FAQSchema","props","data","entry","json","init_FAQSchema"],"sources":["https:/framerusercontent.com/modules/2FZjar3En3CC53wl1hfo/Ma0sxrGUc10F1xqcCH7O/FAQSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function parseEntries(text){const blocks=(text??\"\").split(/\\n\\s*\\n/);const entries=[];for(const block of blocks){const lines=block.split(\"\\n\").map(line=>line.trim()).filter(Boolean);if(lines.length<2)continue;entries.push({question:lines[0],answer:lines.slice(1).join(\" \")});}return entries;}/**\n * Outputs FAQPage structured data (JSON-LD) for the page it sits on. Renders nothing visible.\n * Entries: question on one line, answer on the next line(s), blank line between pairs.\n * Keep the text identical to the FAQ shown on the page.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FAQSchema(props){const entries=parseEntries(props.entries);const data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:entries.map(entry=>({\"@type\":\"Question\",name:entry.question,acceptedAnswer:{\"@type\":\"Answer\",text:entry.answer}}))};const json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:entries.length>0&&/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(FAQSchema,{entries:{type:ControlType.String,title:\"Q and A\",displayTextArea:true,defaultValue:\"Question?\\nAnswer.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSchema.map"],"mappings":"A,4JAA+F,SAASM,EAAa,EAAK,CAAC,IAAMC,GAAQC,GAAM,GAAA,CAAI,MAAM,SAAS,EAAQC,EAAQ,CAAC,EAAE,IAAI,IAAMC,KAASH,EAAO,CAAC,IAAMI,EAAMD,EAAM,MAAM;CAAI,CAAC,CAAC,IAAI,GAAME,EAAK,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAKD,EAAM,OAAO,GAAWF,EAAQ,KAAK,CAAC,SAASE,EAAM,GAAG,OAAOA,EAAM,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAE,CAAC,OAAOF,CAAQ,CAO/X,SAAwBI,EAAU,EAAM,CAAC,IAAMJ,EAAQH,EAAaQ,EAAM,OAAO,EAAQC,EAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAWN,EAAQ,IAAI,IAAQ,CAAC,QAAQ,WAAW,KAAKO,EAAM,SAAS,eAAe,CAAC,QAAQ,SAAS,KAAKA,EAAM,MAAM,CAAC,EAAE,CAAC,EAAQC,EAAK,KAAK,UAAUF,CAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,cAAc,OAAO,SAASN,EAAQ,OAAO,GAAgB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOQ,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACd,EAAoBU,EAAU,CAAC,QAAQ,CAAC,KAAKR,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,aAAa;QAAoB,CAAC,CAAC,C"}