{"version":3,"file":"GuideFAQ.Dog3IE5z.mjs","names":["React.useId"],"sources":["https:/framerusercontent.com/modules/qQeGizH8Rww2u8HtsqrP/XYba91XwU2o3twzBcqRF/GuideFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const sample=[{question:\"Illustrative question: when should I start?\",answer:\"Add real questions and answers in the Guide’s FAQ field. This placeholder only shows in the editor.\"},{question:\"Illustrative question: what documents will I need?\",answer:\"Answers stay in the page markup while collapsed, so they remain readable by search engines and screen readers.\"}];/**\n * Collapsible guide FAQ with FAQPage structured data.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function GuideFAQ({heading=\"Frequently asked questions\",items=[],schema=true,style}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const list=(items||[]).filter(i=>i&&(i.question||\"\").trim()&&(i.answer||\"\").trim());const shown=list.length?list:isCanvas?sample:[];const id=React.useId().replace(/:/g,\"\");if(!shown.length)return null;const ld=schema&&list.length?JSON.stringify({\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:list.map(i=>({\"@type\":\"Question\",name:i.question.trim(),acceptedAnswer:{\"@type\":\"Answer\",text:i.answer.trim()}}))}).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsxs(\"section\",{className:\"gf\",\"aria-labelledby\":id+\"-h\",style:{...style,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.gf{box-sizing:border-box;font-family:Inter,sans-serif;color:#182c40}.gf *{box-sizing:border-box}.gf h2{font-size:30px;font-weight:500;letter-spacing:-.04em;line-height:1.2;margin:0 0 20px;color:#182c40}.gf-list{border-top:1px solid #dfe5ec}.gf details{border-bottom:1px solid #dfe5ec}.gf summary{list-style:none;display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:20px 0;cursor:pointer;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.45;color:#182c40}.gf summary::-webkit-details-marker{display:none}.gf summary:hover{color:#00629b}.gf summary:focus-visible{outline:3px solid #00629b;outline-offset:4px;border-radius:4px}.gf-icon{flex:none;width:28px;height:28px;border-radius:50%;border:1px solid #dfe5ec;display:grid;place-items:center;margin-top:-1px;transition:transform .2s,background .2s,border-color .2s;color:#182c40}.gf details[open] .gf-icon{transform:rotate(45deg);background:#182c40;border-color:#182c40;color:#fff}.gf-a{margin:0;padding:0 44px 22px 0;font-size:17px;line-height:1.75;letter-spacing:-.02em;color:#52677c;white-space:pre-line}@media(max-width:600px){.gf h2{font-size:24px}.gf summary{font-size:17px}.gf-a{padding-right:0}}@media(prefers-reduced-motion:reduce){.gf-icon{transition:none}}`}),/*#__PURE__*/_jsx(\"h2\",{id:id+\"-h\",children:heading}),/*#__PURE__*/_jsx(\"div\",{className:\"gf-list\",children:shown.map((i,n)=>/*#__PURE__*/_jsxs(\"details\",{children:[/*#__PURE__*/_jsxs(\"summary\",{children:[i.question,/*#__PURE__*/_jsx(\"span\",{className:\"gf-icon\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 1v10M1 6h10\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"})})})]}),/*#__PURE__*/_jsx(\"p\",{className:\"gf-a\",children:i.answer})]},n))}),ld&&!isCanvas&&/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:ld}})]});}addPropertyControls(GuideFAQ,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Frequently asked questions\"},items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}}},schema:{type:ControlType.Boolean,title:\"FAQ schema\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GuideFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideFAQ.map"],"mappings":"wLAIG,SAAwB,EAAS,CAAC,UAAQ,6BAA6B,QAAM,CAAC,EAAE,SAAO,GAAK,SAAO,CAAC,IAAM,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,GAAM,GAAO,CAAC,EAAA,CAAG,OAAO,GAAG,IAAI,EAAE,UAAU,GAAA,CAAI,KAAK,IAAI,EAAE,QAAQ,GAAA,CAAI,KAAK,CAAC,EAAQ,EAAM,EAAK,OAAO,EAAK,EAAS,EAAO,CAAC,EAAQ,EAAGA,EAAY,CAAC,CAAC,QAAQ,KAAK,EAAE,EAAE,GAAG,CAAC,EAAM,OAAO,OAAO,KAAK,IAAM,EAAG,GAAQ,EAAK,OAAO,KAAK,UAAU,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAW,EAAK,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAK,EAAE,SAAS,KAAK,EAAE,eAAe,CAAC,QAAQ,SAAS,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,GAAG,OAAoB,EAAM,UAAU,CAAC,UAAU,KAAK,kBAAkB,EAAG,KAAK,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,kvCAAkvC,CAAC,EAAe,EAAK,KAAK,CAAC,GAAG,EAAG,KAAK,SAAS,CAAO,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,UAAU,SAAS,EAAM,KAAK,EAAE,IAAiB,EAAM,UAAU,CAAC,SAAS,CAAc,EAAM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