{"version":3,"file":"FAQ_Toggle.Bm2h0Oqo.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","_e","c","init_jsx_runtime","withAccordionToggle","open","setOpen","props","Component","o","init_FAQ_Toggle"],"sources":["https:/framerusercontent.com/modules/XVhq8WUJNDHMEmh62RM7/0N0Hnlzn8wB6lbxqcps5/FAQ_Toggle.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";// Lets an Element/Accordion instance open and close itself when tapped,\n// for FAQ lists that aren't inside the Section/Accordions component.\nexport function withAccordionToggle(Component){return props=>{const[open,setOpen]=useState(props.variant===\"Open\");return /*#__PURE__*/_jsx(Component,{...props,variant:open?\"Open\":\"Close\",style:{...props.style,cursor:\"pointer\"},onClickCapture:e=>{setOpen(o=>!o);props.onClickCapture?.(e);}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAccordionToggle\":{\"type\":\"reactHoc\",\"name\":\"withAccordionToggle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ_Toggle.map"],"mappings":"A,kHAEA,SAAgBM,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAKC,GAASR,EAASS,EAAM,UAAU,MAAM,EAAE,MAAoB,gBAAKC,EAAU,CAAC,GAAGD,EAAM,QAAQF,EAAK,OAAO,QAAQ,MAAM,CAAC,GAAGE,EAAM,MAAM,OAAO,SAAS,EAAE,eAAe,GAAG,CAACD,EAAQ,GAAG,CAACG,CAAC,EAAEF,EAAM,iBAAiB,CAAC,CAAE,CAAC,CAAC,CAAE,CAAE,C"}