{"version":3,"file":"FAQ.5zeGrYO4.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_DDfsYcI0","addPropertyControls","ControlType","FAQ","open","setOpen","line","items","i","question","it","accent","answer","init_FAQ"],"sources":["https:/framerusercontent.com/modules/veDTIirmGqQNM4Uqtsh8/FeacDUCRNHBeddxvaIzW/FAQ.js"],"sourcesContent":["// faq v2\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FAQ({items=[],question=\"#FFFFFF\",answer=\"#C9CDD6\",accent=\"#8CF5A6\",line=\"rgba(255,255,255,0.09)\"}){const[open,setOpen]=useState(-1);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",borderTop:\"1px solid \"+line},children:items.map((it,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:\"1px solid \"+line},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setOpen(open===i?-1:i),\"aria-expanded\":open===i,style:{all:\"unset\",boxSizing:\"border-box\",width:\"100%\",cursor:\"pointer\",display:\"flex\",justifyContent:\"space-between\",gap:20,padding:\"22px 0\",font:\"600 clamp(18px,1.6vw,21px)/1.3 Figtree, sans-serif\",color:question},children:[/*#__PURE__*/_jsx(\"span\",{children:it.q}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:400,fontSize:26,lineHeight:1,color:accent,transition:\"transform .2s\",transform:open===i?\"rotate(45deg)\":\"none\"},children:\"+\"})]}),open===i&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,padding:\"0 0 22px\",color:answer,maxWidth:\"60em\",font:\"400 16.5px/1.55 Inter, sans-serif\",whiteSpace:\"pre-line\"},children:it.a})]},i))});}addPropertyControls(FAQ,{items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{q:{type:ControlType.String,title:\"Question\"},a:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}}},question:{type:ControlType.Color,title:\"Question colour\",defaultValue:\"#FFFFFF\"},answer:{type:ControlType.Color,title:\"Answer colour\",defaultValue:\"#C9CDD6\"},accent:{type:ControlType.Color,title:\"Plus colour\",defaultValue:\"#8CF5A6\"},line:{type:ControlType.Color,title:\"Line colour\",defaultValue:\"rgba(255,255,255,0.09)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ.map"],"mappings":"A,iLAIG,SAAwBU,EAAI,CAAC,QAAM,CAAC,EAAE,WAAS,UAAU,SAAO,UAAU,SAAO,UAAU,OAAK,0BAA0B,CAAC,GAAK,CAACC,EAAKC,GAASZ,EAAS,EAAE,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,aAAaa,CAAI,EAAE,SAASC,EAAM,KAAK,EAAG,IAAiB,gBAAM,MAAM,CAAC,MAAM,CAAC,aAAa,aAAaD,CAAI,EAAE,SAAS,CAAc,gBAAM,SAAS,CAAC,YAAYD,EAAQD,IAAOI,EAAE,GAAGA,CAAC,EAAE,gBAAgBJ,IAAOI,EAAE,MAAM,CAAC,IAAI,QAAQ,UAAU,aAAa,MAAM,OAAO,OAAO,UAAU,QAAQ,OAAO,eAAe,gBAAgB,IAAI,GAAG,QAAQ,SAAS,KAAK,qDAAqD,MAAMC,CAAQ,EAAE,SAAS,CAAc,gBAAK,OAAO,CAAC,SAASC,EAAG,CAAC,CAAC,EAAe,gBAAK,OAAO,CAAC,MAAM,CAAC,WAAW,IAAI,SAAS,GAAG,WAAW,EAAE,MAAMC,EAAO,WAAW,gBAAgB,UAAUP,IAAOI,EAAE,gBA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