{"version":3,"file":"FAQ_Custom.lP9yop0I.mjs","names":["React.useState","React.useMemo","__esmMin","_e","init_jsx_runtime","pe","c","p","init_npm_react_18_3_1","ce","init_framer_D1IzEvwH","addPropertyControls","ControlType","FAQ","props","isOpen","setIsOpen","defaultOpen","isHovered","setIsHovered","processedAnswer","answer","openLinksNewTab","attributes","match","hoverBackground","background","borderColor","radius","prev","paddingVertical","paddingHorizontal","questionColor","questionSize","questionWeight","question","Chevron","gap","answerColor","answerSize","answerWeight","linkColor","open","color","init_FAQ_Custom"],"sources":["https:/framerusercontent.com/modules/JOHGEy9MRTv2SlLrBh9Q/MxlsaZnF2R0ftsvnqGio/FAQ_Custom.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function FAQ(props){const{question,answer,paddingHorizontal,paddingVertical,gap,radius,background,hoverBackground,questionColor,answerColor,linkColor,borderColor,fontFamily,questionSize,questionWeight,answerSize,answerWeight,lineHeight,defaultOpen,openLinksNewTab}=props;const[isOpen,setIsOpen]=React.useState(defaultOpen);const[isHovered,setIsHovered]=React.useState(false);// Keep canvas state synced when changing the \"Open\" property\nReact.useEffect(()=>{setIsOpen(defaultOpen);},[defaultOpen]);const processedAnswer=React.useMemo(()=>{if(!answer)return\"\";if(!openLinksNewTab)return answer;return answer.replace(/<a\\s+([^>]*href=[\"'][^\"']+[\"'][^>]*)>/gi,(match,attributes)=>{if(/target=/i.test(attributes)){return match;}return`<a ${attributes} target=\"_blank\" rel=\"noopener noreferrer\">`;});},[answer,openLinksNewTab]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",boxSizing:\"border-box\",background:isHovered?hoverBackground:background,border:`1px solid ${borderColor}`,borderRadius:radius,overflow:\"hidden\",fontFamily:fontFamily,transition:\"background-color 0.2s ease\"},onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setIsOpen(prev=>!prev),\"aria-expanded\":isOpen,style:{width:\"100%\",border:\"none\",background:\"transparent\",padding:`${paddingVertical}px ${paddingHorizontal}px`,margin:0,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:20,textAlign:\"left\",fontFamily:\"inherit\",color:questionColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,fontSize:questionSize,fontWeight:questionWeight,lineHeight:1.4},children:question}),/*#__PURE__*/_jsx(Chevron,{open:isOpen,color:questionColor})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:isOpen?\"1fr\":\"0fr\",opacity:isOpen?1:0,transition:\"grid-template-rows 300ms ease, opacity 200ms ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{minHeight:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"faq-answer\",style:{paddingLeft:paddingHorizontal,paddingRight:paddingHorizontal,paddingBottom:paddingVertical,// Controls distance between\n// question and answer\npaddingTop:gap,color:answerColor,fontFamily:\"inherit\",fontSize:answerSize,fontWeight:answerWeight,lineHeight:lineHeight},dangerouslySetInnerHTML:{__html:processedAnswer}})})}),/*#__PURE__*/_jsx(\"style\",{children:`\n                .faq-answer a {\n                    color: ${linkColor};\n                    text-decoration: underline;\n                    text-underline-offset: 2px;\n                    cursor: pointer;\n                }\n\n                .faq-answer a:hover {\n                    opacity: 0.7;\n                }\n\n                .faq-answer p {\n                    margin: 0 0 8px 0;\n                }\n\n                .faq-answer p:last-child {\n                    margin-bottom: 0;\n                }\n\n                .faq-answer strong,\n                .faq-answer b {\n                    font-weight: 600;\n                }\n            `})]});}function Chevron({open,color}){return /*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",style:{flexShrink:0,transform:open?\"rotate(180deg)\":\"rotate(0deg)\",transition:\"transform 250ms ease\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9L12 15L18 9\",stroke:color,strokeWidth:\"1.75\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}FAQ.defaultProps={question:\"Can I try SplitSecure before committing to a purchase?\",answer:'Yes, we offer a 1 month free trial of SplitSecure’s small business plans. You can <a href=\"https://splitsecure.com\">learn more here</a>.',paddingHorizontal:20,paddingVertical:20,gap:0,radius:12,background:\"#FFFFFF\",hoverBackground:\"#F9F9F9\",borderColor:\"#E4E4E4\",questionColor:\"#535861\",answerColor:\"#626873\",linkColor:\"#5C95FF\",fontFamily:\"Inter\",questionSize:18,questionWeight:600,answerSize:14,answerWeight:400,lineHeight:1.5,defaultOpen:false,openLinksNewTab:false};addPropertyControls(FAQ,{question:{type:ControlType.String,title:\"Question\",defaultValue:FAQ.defaultProps.question},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,defaultValue:FAQ.defaultProps.answer},defaultOpen:{type:ControlType.Boolean,title:\"Open\",defaultValue:false},openLinksNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false},paddingHorizontal:{type:ControlType.Number,title:\"Side Padding\",defaultValue:20,min:0,max:100,step:1},paddingVertical:{type:ControlType.Number,title:\"Y Padding\",defaultValue:20,min:0,max:100,step:1},gap:{type:ControlType.Number,title:\"Text Gap\",defaultValue:0,min:0,max:50,step:1},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:100,step:1},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},hoverBackground:{type:ControlType.Color,title:\"Hover\",defaultValue:\"#F9F9F9\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#E4E4E4\"},questionColor:{type:ControlType.Color,title:\"Question\",defaultValue:\"#535861\"},answerColor:{type:ControlType.Color,title:\"Answer\",defaultValue:\"#626873\"},linkColor:{type:ControlType.Color,title:\"Link\",defaultValue:\"#5C95FF\"},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter\"},questionSize:{type:ControlType.Number,title:\"Question Size\",defaultValue:18,min:8,max:60,step:1},questionWeight:{type:ControlType.Number,title:\"Question Weight\",defaultValue:600,min:100,max:900,step:100},answerSize:{type:ControlType.Number,title:\"Answer Size\",defaultValue:14,min:8,max:60,step:1},answerWeight:{type:ControlType.Number,title:\"Answer Weight\",defaultValue:400,min:100,max:900,step:100},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.5,min:1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ_Custom.map"],"mappings":"A,+LAAyI,SAAwBa,EAAI,EAAM,CAAC,GAAK,CAAC,WAAS,SAAO,oBAAkB,kBAAgB,MAAI,SAAO,aAAW,kBAAgB,gBAAc,cAAY,YAAU,cAAY,aAAW,eAAa,iBAAe,aAAW,eAAa,aAAW,cAAY,mBAAiBC,EAAW,CAACC,EAAOC,GAAWhB,EAAeiB,CAAW,EAAO,CAACC,EAAUC,GAAcnB,EAAe,EAAK,EAC7gBS,MAAoB,CAACO,EAAUC,CAAW,CAAE,EAAE,CAACA,CAAW,CAAC,EAAE,IAAMG,EAAgBnB,MAAuBoB,EAAoBC,EAAqCD,EAAO,QAAQ,2CAA2C,EAAM,IAAiB,WAAW,KAAKE,CAAU,EAAUC,EAAa,MAAMD,EAAW,4CAA8C,EAA/MF,EAA9B,GAAiP,CAACA,EAAOC,CAAe,CAAC,EAAE,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,aAAa,WAAWJ,EAAUO,EAAgBC,EAAW,OAAO,aAAaC,IAAc,aAAaC,EAAO,SAAS,SAAoB,aAAW,WAAW,4BAA4B,EAAE,iBAAiBT,EAAa,EAAI,EAAE,iBAAiBA,EAAa,EAAK,EAAE,SAAS,CAAc,gBAAM,SAAS,CAAC,YAAYH,EAAU,GAAM,CA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