{"version":3,"file":"SupportFAQ.DjlF12z1.mjs","names":["React.useState","React.useId","__esmMin","init_npm_react_18_3_1","ie","_e","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_B6PCHH0A","ControlType","SupportFAQ","open","setOpen","initiallyOpen","focused","setFocused","id","style","value","question","answer","init_SupportFAQ"],"sources":["https:/framerusercontent.com/modules/MWJufWXma9MqcN95qX3H/8n6MklKLVmEYKg6kGpux/SupportFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function SupportFAQ({question=\"Pregunta\",answer=\"Respuesta\",initiallyOpen=false,style}){const[open,setOpen]=React.useState(initiallyOpen);const[focused,setFocused]=React.useState(false);const id=React.useId();React.useEffect(()=>setOpen(initiallyOpen),[initiallyOpen]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",boxSizing:\"border-box\",minWidth:0,border:\"1px solid #e0dbd1\",background:open?\"#ffffff\":\"#f9f6f1\",...style},children:[/*#__PURE__*/_jsxs(\"button\",{id:id+\"-question\",type:\"button\",\"aria-expanded\":open,\"aria-controls\":id+\"-answer\",onClick:()=>setOpen(value=>!value),onFocus:()=>setFocused(true),onBlur:()=>setFocused(false),style:{width:\"100%\",boxSizing:\"border-box\",display:\"flex\",alignItems:\"center\",gap:16,minHeight:64,padding:open?\"24px 24px 16px\":\"20px 24px\",border:0,margin:0,background:\"transparent\",color:\"#131211\",textAlign:\"left\",cursor:\"pointer\",fontFamily:'\"Montserrat\", sans-serif',fontSize:open?18:16,lineHeight:open?\"24px\":\"22px\",fontWeight:600,outline:focused?\"2px solid #ed1f24\":\"none\",outlineOffset:-3},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:\"1 1 0\",minWidth:0,overflowWrap:\"anywhere\"},children:question}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{flex:\"0 0 20px\",textAlign:\"center\",fontSize:18,lineHeight:\"24px\",fontWeight:open?600:300,color:open?\"#ed1f24\":\"#adaba6\"},children:open?\"−\":\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{id:id+\"-answer\",role:\"region\",\"aria-labelledby\":id+\"-question\",hidden:!open,style:{padding:\"0 24px 24px\",fontFamily:'\"Montserrat\", sans-serif',fontSize:14,fontWeight:400,lineHeight:\"22px\",color:\"#6b6661\",overflowWrap:\"anywhere\"},children:answer})]});}addPropertyControls(SupportFAQ,{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Pregunta\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Respuesta\",displayTextArea:true},initiallyOpen:{type:ControlType.Boolean,title:\"Start open\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SupportFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SupportFAQ.map"],"mappings":"A,+LAGG,SAAwBa,EAAW,CAAC,WAAS,WAAW,SAAO,YAAY,gBAAc,GAAM,SAAO,CAAC,GAAK,CAACC,EAAKC,GAASf,EAAegB,CAAa,EAAO,CAACC,EAAQC,GAAYlB,EAAe,EAAK,EAAQmB,EAAGlB,EAAY,EAA8D,OAA5DQ,MAAoBM,EAAQC,CAAa,EAAE,CAACA,CAAa,CAAC,EAAsB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,aAAa,SAAS,EAAE,OAAO,oBAAoB,WAAWF,EAAK,UAAU,UAAU,GAAGM,CAAK,EAAE,SAAS,CAAc,gBAAM,SAAS,CAAC,GAAGD,EAAG,YAAY,KAAK,SAAS,gBAAgBL,EAAK,gBAAgBK,EAAG,UAAU,YAAYJ,EAAQ,GAAO,CAACM,CA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