{"version":3,"file":"FAQSchema.DIVQ4TLt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zbkxMMbgJVIxRWUQeHEy/IWwz8yUcObr39BYwm8Gl/FAQSchema.js"],"sourcesContent":["// FAQ Schema: outputs FAQPage JSON-LD for the questions on the page.\n// Place one instance per page, visible on a single breakpoint only, so the\n// published HTML contains exactly one FAQPage block. Keep the questions and\n// answers identical to the visible FAQ.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// \"Question\\nAnswer\" blocks separated by a blank line\nfunction parseFaq(text){return(text||\"\").split(/\\n\\s*\\n/).map(block=>{const[question=\"\",...rest]=block.trim().split(\"\\n\");return{question:question.trim(),answer:rest.join(\" \").replace(/\\s+/g,\" \").trim()};}).filter(i=>i.question&&i.answer);}/**\n * FAQ Schema\n *\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 30\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FAQSchema(props){const items=parseFaq(props.faq);const json={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.map(i=>({\"@type\":\"Question\",name:i.question.trim(),acceptedAnswer:{\"@type\":\"Answer\",text:i.answer.trim()}}))};// escape \"<\" so answer text can never close the script tag\nconst html=JSON.stringify(json).replace(/</g,\"\\\\u003c\");if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",width:\"max-content\",padding:\"6px 10px\",borderRadius:6,background:\"rgba(0, 153, 255, 0.12)\",color:\"#0099ff\",fontSize:12,fontFamily:\"Inter, sans-serif\",fontWeight:600},children:[\"FAQ schema \\xb7 \",items.length,\" \",items.length===1?\"question\":\"questions\"]});}return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:items.length>0&&/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:html}})});}addPropertyControls(FAQSchema,{faq:{type:ControlType.String,title:\"FAQ\",displayTextArea:true,description:\"Question on the first line, answer below it. Leave an empty line between questions.\",defaultValue:\"What is AEO?\\nAnswer Engine Optimization makes your website easy for AI tools to find, understand and quote.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSchema\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"160\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"30\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSchema.map"],"mappings":"sKAKA,SAAS,EAAS,EAAK,CAAC,OAAO,GAAM,GAAA,CAAI,MAAM,SAAS,CAAC,CAAC,IAAI,GAAO,CAAC,GAAK,CAAC,EAAS,GAAG,GAAG,GAAM,EAAM,KAAK,CAAC,CAAC,MAAM;CAAI,EAAE,MAAM,CAAC,SAAS,EAAS,KAAK,EAAE,OAAO,EAAK,KAAK,GAAG,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,CAAE,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE,UAAU,EAAE,MAAM,CAAE,CAQ5O,SAAwB,EAAU,EAAM,CAAC,IAAM,EAAM,EAAS,EAAM,GAAG,EAAQ,EAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAW,EAAM,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAK,EAAE,SAAS,KAAK,EAAE,eAAe,CAAC,QAAQ,SAAS,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC,EACjQ,EAAK,KAAK,UAAU,CAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,EAA8X,OAAzX,EAAa,QAAQ,IAAI,EAAa,OAA4B,EAAM,MAAM,CAAC,MAAM,CAAC,GA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