{"version":3,"file":"FAQ.DlBu9nfZ.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/VtuD5cItNW45ob88oWKF/CJRREaKiEk2qPZVCUfLt/FAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";export default function FAQSection(props){const{title,subtitle,items,allowMultipleOpen,accentColor,textColor,mutedColor,backgroundColor,dividerColor,fontFamily,questionSize,answerSize,titleSize,borderRadius,itemSpacing}=props;const[openIndexes,setOpenIndexes]=React.useState([0]);const toggleIndex=index=>{setOpenIndexes(prev=>{const isOpen=prev.includes(index);if(allowMultipleOpen){return isOpen?prev.filter(i=>i!==index):[...prev,index];}return isOpen?[]:[index];});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",backgroundColor,fontFamily,padding:\"60px 24px\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:720,margin:\"0 auto\"},children:[(title||subtitle)&&/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:40,textAlign:\"center\"},children:[title&&/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:titleSize,fontWeight:600,color:textColor,margin:0,marginBottom:subtitle?12:0,letterSpacing:\"-0.02em\"},children:title}),subtitle&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:16,color:mutedColor,margin:0,lineHeight:1.5},children:subtitle})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:itemSpacing},children:items?.map((item,index)=>{const isOpen=openIndexes.includes(index);return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid ${dividerColor}`,paddingBottom:itemSpacing},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggleIndex(index),\"aria-expanded\":isOpen,style:{width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,background:\"none\",border:\"none\",cursor:\"pointer\",padding:0,textAlign:\"left\",fontFamily},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:questionSize,fontWeight:500,color:textColor,lineHeight:1.4},children:item.question}),/*#__PURE__*/_jsx(motion.span,{animate:{rotate:isOpen?45:0},transition:{duration:.25,ease:\"easeInOut\"},style:{flexShrink:0,width:24,height:24,borderRadius:borderRadius,backgroundColor:isOpen?accentColor:\"transparent\",border:`1px solid ${isOpen?accentColor:dividerColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:isOpen?\"#FFFFFF\":mutedColor,fontSize:16,lineHeight:1},children:\"+\"})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:\"easeInOut\"},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"p\",{style:{fontSize:answerSize,color:mutedColor,lineHeight:1.6,margin:0,paddingTop:12,paddingRight:32},children:item.answer})},\"content\")})]},index);})})]})});}FAQSection.defaultProps={title:\"Frequently Asked Questions\",subtitle:\"Everything you need to know. Can't find the answer you're looking for? Reach out to our team.\",allowMultipleOpen:false,accentColor:\"#0F172A\",textColor:\"#0F172A\",mutedColor:\"#64748B\",backgroundColor:\"#FFFFFF\",dividerColor:\"#E2E8F0\",fontFamily:\"Inter, sans-serif\",titleSize:36,questionSize:17,answerSize:15,borderRadius:6,itemSpacing:24,items:[{question:\"How does the free trial work?\",answer:\"You get full access to every feature for 14 days, no credit card required. If you love it, upgrade anytime from your account settings.\"},{question:\"Can I change my plan later?\",answer:\"Yes — you can upgrade, downgrade, or cancel your plan at any time from the billing page. Changes take effect on your next billing cycle.\"},{question:\"Do you offer refunds?\",answer:\"We offer a 30-day money-back guarantee on all annual plans. Reach out to support and we'll take care of it, no questions asked.\"},{question:\"Is there a limit on team members?\",answer:\"Our Starter plan supports up to 5 seats, Pro supports up to 25, and Enterprise is unlimited. You can add or remove seats anytime.\"},{question:\"What kind of support do you provide?\",answer:\"All plans include email support with a 24-hour response time. Pro and Enterprise plans also get priority live chat support.\"}]};addPropertyControls(FAQSection,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Frequently Asked Questions\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"\",displayTextArea:true},items:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer\",displayTextArea:true}}}},allowMultipleOpen:{type:ControlType.Boolean,title:\"Multi-open\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},titleSize:{type:ControlType.Number,title:\"Title Size\",defaultValue:36,min:12,max:72},questionSize:{type:ControlType.Number,title:\"Question Size\",defaultValue:17,min:10,max:32},answerSize:{type:ControlType.Number,title:\"Answer Size\",defaultValue:15,min:10,max:28},itemSpacing:{type:ControlType.Number,title:\"Item Spacing\",defaultValue:24,min:0,max:64},borderRadius:{type:ControlType.Number,title:\"Icon Radius\",defaultValue:6,min:0,max:24},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#0F172A\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#0F172A\"},mutedColor:{type:ControlType.Color,title:\"Muted Text\",defaultValue:\"#64748B\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},dividerColor:{type:ControlType.Color,title:\"Divider\",defaultValue:\"#E2E8F0\"},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter, sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ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