{"version":3,"file":"FAQ.DRtsbZpk.mjs","names":["useId","useState","startTransition"],"sources":["https:/framerusercontent.com/modules/vpCU8AryrJPKdo1slEvE/5EhIITPBXkut1eXbi5Ke/FAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useId,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const BLUE=\"rgb(5, 104, 176)\";const NAVY=\"rgb(0, 39, 66)\";const PALE=\"rgb(239, 244, 248)\";const PALE_HOVER=\"rgb(226, 235, 243)\";const INK=\"rgb(13, 13, 13)\";const LIGHT=`\"Neue Haas Grotesk Display Pro 45 Light\", \"Neue Haas Grotesk Display Pro 45 Light Placeholder\", sans-serif`;const BOLD=`\"Neue Haas Grotesk Display Pro 75 Bold\", \"Neue Haas Grotesk Display Pro 75 Bold Placeholder\", sans-serif`;// Breakpoints match the site: desktop >= 1200, tablet 810-1199, phone < 810.\nconst CSS=`\n.sfp-faq{position:relative;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:64px;align-items:start;box-sizing:border-box}\n.sfp-faq *{box-sizing:border-box}\n.sfp-faq__aside{grid-column:1;position:sticky;top:120px;display:flex;flex-direction:column;gap:40px}\n.sfp-faq__head{display:flex;flex-direction:column;gap:24px}\n.sfp-faq__h2{margin:0;font-family:${LIGHT};font-weight:400;font-size:40px;line-height:1.2em;letter-spacing:-0.01em;color:${BLUE};text-wrap:balance}\n.sfp-faq__h2 strong{font-family:${BOLD};font-weight:700}\n.sfp-faq__intro,.sfp-faq__a p{margin:0;font-family:${LIGHT};font-weight:400;font-size:20px;line-height:1.6em;color:${INK}}\n.sfp-faq__prompt{display:flex;flex-direction:column;align-items:flex-start;gap:16px}\n.sfp-faq__prompt p{margin:0;font-family:${BOLD};font-weight:700;font-size:20px;line-height:1.4em;color:${INK}}\n.sfp-faq__btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 28px;border-radius:100px;background:${BLUE};color:#fff;text-decoration:none;font-family:${LIGHT};font-weight:400;font-size:18px;line-height:1.4em;transition:background-color .2s ease-out}\n.sfp-faq__btn:hover{background:${NAVY}}\n.sfp-faq__list{grid-column:2;display:flex;flex-direction:column;gap:12px;min-width:0}\n.sfp-faq__item{position:relative;border-radius:10px;background:${PALE};transition:background-color .2s ease-out}\n.sfp-faq__item:hover{background:${PALE_HOVER}}\n.sfp-faq__item::before{content:\"\";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:10px 0 0 10px;background:${BLUE};transform:scaleY(0);transform-origin:top;transition:transform .3s ease-out}\n.sfp-faq__item[data-open=\"true\"]::before{transform:scaleY(1)}\n.sfp-faq__q{margin:0;font:inherit}\n.sfp-faq__btnq{all:unset;box-sizing:border-box;display:flex;width:100%;min-height:44px;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px 22px 28px;cursor:pointer;border-radius:10px;font-family:${BOLD};font-weight:700;font-size:24px;line-height:1.4em;color:${BLUE};text-align:left}\n.sfp-faq__btnq:focus-visible{outline:revert;outline-offset:2px}\n.sfp-faq__icon{position:relative;flex:0 0 auto;width:20px;height:20px;color:${BLUE};transition:transform .3s ease-out,color .2s ease-out}\n.sfp-faq__icon::before,.sfp-faq__icon::after{content:\"\";position:absolute;left:50%;top:50%;width:18px;height:2px;margin:-1px 0 0 -9px;border-radius:2px;background:currentColor}\n.sfp-faq__icon::after{transform:rotate(90deg)}\n.sfp-faq__item:hover .sfp-faq__icon{color:${NAVY}}\n.sfp-faq__item[data-open=\"true\"] .sfp-faq__icon{transform:rotate(45deg)}\n.sfp-faq__a{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s ease-out,visibility 0s linear .3s}\n.sfp-faq__item[data-open=\"true\"] .sfp-faq__a{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .3s ease-out,visibility 0s}\n.sfp-faq__a-inner{overflow:hidden;min-height:0}\n.sfp-faq__a-inner p{padding:0 28px 24px 28px}\n.sfp-faq__note{margin:12px 0 0 0;font-family:${LIGHT};font-weight:400;font-size:16px;line-height:1.4em;color:rgba(13,13,13,.7)}\n@media (min-width:810px) and (max-width:1199.98px){\n .sfp-faq{column-gap:40px}\n .sfp-faq__h2{font-size:36px}\n .sfp-faq__btnq{font-size:22px}\n}\n@media (max-width:809.98px){\n .sfp-faq{grid-template-columns:minmax(0,1fr);grid-template-areas:\"head\" \"list\" \"prompt\";row-gap:32px}\n .sfp-faq__aside{display:contents}\n .sfp-faq__head{grid-area:head}\n .sfp-faq__list{grid-area:list;grid-column:auto}\n .sfp-faq__prompt{grid-area:prompt}\n .sfp-faq__h2{font-size:30px}\n .sfp-faq__btnq{font-size:20px;padding:18px 20px 18px 22px}\n .sfp-faq__a-inner p{padding:0 22px 20px 22px}\n}\n@media (prefers-reduced-motion:reduce){\n .sfp-faq__item,.sfp-faq__item::before,.sfp-faq__icon,.sfp-faq__a,.sfp-faq__btn{transition:none !important}\n}\n`;/**\n * FAQ\n *\n * @framerIntrinsicWidth 1080\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQ(props){const{headingLight=\"\",headingBold=\"\",intro=\"\",items=[],note=\"\",promptText=\"Still have a question?\",buttonLabel=\"Book a discovery meeting\",buttonLink=\"/contact-page\",schemaId=\"\",style}=props;const uid=useId().replace(/[^a-zA-Z0-9_-]/g,\"\");const[open,setOpen]=useState(0);const toggle=i=>startTransition(()=>setOpen(cur=>cur===i?-1:i));const valid=items.filter(it=>it&&it.question&&it.answer);const schema={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",...schemaId?{\"@id\":schemaId}:{},mainEntity:valid.map(it=>({\"@type\":\"Question\",name:it.question,acceptedAnswer:{\"@type\":\"Answer\",text:it.answer}}))};return /*#__PURE__*/_jsxs(\"section\",{className:\"sfp-faq\",style:{...style,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfp-faq__aside\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"sfp-faq__head\",children:[/*#__PURE__*/_jsxs(\"h2\",{className:\"sfp-faq__h2\",children:[headingLight,headingLight&&headingBold?/*#__PURE__*/_jsx(\"br\",{}):null,headingBold?/*#__PURE__*/_jsx(\"strong\",{children:headingBold}):null]}),intro?/*#__PURE__*/_jsx(\"p\",{className:\"sfp-faq__intro\",children:intro}):null]}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfp-faq__prompt\",children:[/*#__PURE__*/_jsx(\"p\",{children:promptText}),/*#__PURE__*/_jsx(\"a\",{className:\"sfp-faq__btn\",href:buttonLink,children:buttonLabel})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfp-faq__list\",children:[valid.map((it,i)=>{const isOpen=open===i;const qid=`${uid}-q${i}`;const aid=`${uid}-a${i}`;return /*#__PURE__*/_jsxs(\"div\",{className:\"sfp-faq__item\",\"data-open\":isOpen?\"true\":\"false\",children:[/*#__PURE__*/_jsx(\"h3\",{className:\"sfp-faq__q\",children:/*#__PURE__*/_jsxs(\"button\",{type:\"button\",id:qid,className:\"sfp-faq__btnq\",\"aria-expanded\":isOpen,\"aria-controls\":aid,onClick:()=>toggle(i),children:[/*#__PURE__*/_jsx(\"span\",{children:it.question}),/*#__PURE__*/_jsx(\"span\",{className:\"sfp-faq__icon\",\"aria-hidden\":\"true\"})]})}),/*#__PURE__*/_jsx(\"div\",{id:aid,role:\"region\",\"aria-labelledby\":qid,className:\"sfp-faq__a\",children:/*#__PURE__*/_jsx(\"div\",{className:\"sfp-faq__a-inner\",children:/*#__PURE__*/_jsx(\"p\",{children:it.answer})})})]},i);}),note?/*#__PURE__*/_jsx(\"p\",{className:\"sfp-faq__note\",children:note}):null]}),valid.length?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(schema)}}):null]});}addPropertyControls(FAQ,{headingLight:{type:ControlType.String,title:\"Heading (light)\",defaultValue:\"Frequently Asked\"},headingBold:{type:ControlType.String,title:\"Heading (bold)\",defaultValue:\"Questions\"},intro:{type:ControlType.String,title:\"Supporting line\",defaultValue:\"\",displayTextArea:true},items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer\",displayTextArea:true}}},defaultValue:[{question:\"Question\",answer:\"Answer\"}]},note:{type:ControlType.String,title:\"Note\",defaultValue:\"\"},promptText:{type:ControlType.String,title:\"Prompt\",defaultValue:\"Still have a question?\"},buttonLabel:{type:ControlType.String,title:\"Button label\",defaultValue:\"Book a discovery meeting\"},buttonLink:{type:ControlType.Link,title:\"Button link\",defaultValue:\"/contact-page\"},schemaId:{type:ControlType.String,title:\"Schema @id\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1080\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ.map"],"mappings":"+LAuDG,SAAwB,EAAI,EAAM,CAAC,GAAK,CAAC,eAAa,GAAG,cAAY,GAAG,QAAM,GAAG,QAAM,CAAC,EAAE,OAAK,GAAG,aAAW,yBAAyB,cAAY,2BAA2B,aAAW,gBAAgB,WAAS,GAAG,SAAO,EAAY,EAAIA,EAAM,CAAC,CAAC,QAAQ,kBAAkB,EAAE,EAAO,CAAC,EAAK,GAASC,EAAS,CAAC,EAAQ,EAAO,GAAGC,MAAoB,EAAQ,GAAK,IAAM,EAAE,GAAG,CAAC,CAAC,EAAQ,EAAM,EAAM,OAAO,GAAI,GAAI,EAAG,UAAU,EAAG,MAAM,EAAQ,EAAO,CAAC,WAAW,qBAAqB,QAAQ,UAAU,GAAG,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