{"version":3,"file":"FAQSection.E5xp5xRG.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/29m68zjoupwiAlcRs0rE/or6OIDzbgzmt9N7NkJk8/FAQSection.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * FAQ Section - Elegant Accordion for Women\n * \n * A beautiful FAQ section with accordion behavior where only one question\n * can be open at a time. Automatically scrolls to show opened answers.\n * \n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQSection(props){const{faqs=[{question:\"How do I get started?\",answer:\"Getting started is easy! Simply sign up for an account and follow our quick onboarding process. You'll be up and running in just a few minutes.\"},{question:\"What payment methods do you accept?\",answer:\"We accept all major credit cards, PayPal, Apple Pay, and Google Pay. All transactions are securely processed with bank-level encryption.\"},{question:\"Can I cancel my subscription anytime?\",answer:\"Absolutely! You can cancel your subscription at any time with no cancellation fees. Your access will continue until the end of your current billing period.\"},{question:\"Do you offer customer support?\",answer:\"Yes! Our dedicated support team is available 24/7 via live chat, email, and phone. We're here to help you with any questions or concerns.\"}],accentColor=\"#E8B4B8\",backgroundColor=\"#FFF9FA\",boxBackgroundColor=\"#FFFFFF\",textColor=\"#4A4A4A\",secondaryTextColor=\"#7A7A7A\",borderColor=\"#F0E0E3\",borderRadius=16,gap=12,paddingTop=20,paddingBottom=20,autoScroll=true,scrollOffset=100}=props;const[openIndex,setOpenIndex]=useState(null);const itemRefs=useRef([]);const handleToggle=index=>{const newIndex=openIndex===index?null:index;startTransition(()=>setOpenIndex(newIndex));if(autoScroll&&newIndex!==null){setTimeout(()=>{const element=itemRefs.current[newIndex];if(element&&typeof window!==\"undefined\"){const rect=element.getBoundingClientRect();const scrollTop=window.pageYOffset+rect.top-scrollOffset;window.scrollTo({top:scrollTop,behavior:\"smooth\"});}},300);}};const questionFontStyles=props.questionFont||{fontFamily:\"var(--framer-font-family, system-ui, sans-serif)\",fontSize:\"16px\",fontWeight:500,letterSpacing:\"-0.01em\",lineHeight:\"1.4\"};const answerFontStyles=props.answerFont||{fontFamily:\"var(--framer-font-family, system-ui, sans-serif)\",fontSize:\"15px\",fontWeight:400,letterSpacing:\"0\",lineHeight:\"1.6\"};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minWidth:\"280px\",maxWidth:\"800px\",backgroundColor,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap},children:faqs.map((faq,index)=>/*#__PURE__*/_jsxs(\"div\",{ref:el=>{itemRefs.current[index]=el;},style:{backgroundColor:boxBackgroundColor,borderRadius:12,border:`1px solid ${borderColor}`,overflow:\"hidden\",transition:\"box-shadow 0.3s ease\",boxShadow:openIndex===index?`0 4px 20px rgba(232, 180, 184, 0.15)`:\"none\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>handleToggle(index),style:{width:\"100%\",display:\"flex\",alignItems:\"center\",gap:16,padding:`${paddingTop}px 24px ${paddingBottom}px 24px`,background:\"none\",border:\"none\",cursor:\"pointer\",textAlign:\"left\",outline:\"none\"},\"aria-expanded\":openIndex===index,children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,color:textColor,...questionFontStyles},children:faq.question}),/*#__PURE__*/_jsx(motion.div,{animate:{rotate:openIndex===index?45:0},transition:{duration:.3,ease:\"easeInOut\"},style:{width:24,height:24,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,borderRadius:\"50%\",backgroundColor:openIndex===index?accentColor:\"transparent\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 1V13M1 7H13\",stroke:openIndex===index?\"#FFFFFF\":accentColor,strokeWidth:\"2\",strokeLinecap:\"round\"})})})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:openIndex===index&&/*#__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(\"div\",{style:{padding:`0 24px ${paddingBottom}px 24px`,color:secondaryTextColor,...answerFontStyles},children:faq.answer})})})]},index))})});}addPropertyControls(FAQSection,{faqs:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"How does this work?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"This is the answer to your question.\",displayTextArea:true}}},defaultValue:[{question:\"How do I get started?\",answer:\"Getting started is easy! Simply sign up for an account and follow our quick onboarding process. You'll be up and running in just a few minutes.\"},{question:\"What payment methods do you accept?\",answer:\"We accept all major credit cards, PayPal, Apple Pay, and Google Pay. All transactions are securely processed with bank-level encryption.\"},{question:\"Can I cancel my subscription anytime?\",answer:\"Absolutely! You can cancel your subscription at any time with no cancellation fees. Your access will continue until the end of your current billing period.\"},{question:\"Do you offer customer support?\",answer:\"Yes! Our dedicated support team is available 24/7 via live chat, email, and phone. We're here to help you with any questions or concerns.\"}]},accentColor:{type:ControlType.Color,defaultValue:\"#E8B4B8\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFF9FA\"},boxBackgroundColor:{type:ControlType.Color,title:\"Box Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#4A4A4A\"},secondaryTextColor:{type:ControlType.Color,title:\"Secondary Text\",defaultValue:\"#7A7A7A\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#F0E0E3\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:16,min:0,max:40,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:12,min:0,max:40,step:1,unit:\"px\"},paddingTop:{type:ControlType.Number,title:\"Top Padding\",defaultValue:20,min:0,max:60,step:4,unit:\"px\"},paddingBottom:{type:ControlType.Number,title:\"Bottom Padding\",defaultValue:20,min:0,max:60,step:4,unit:\"px\"},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.6em\"}},autoScroll:{type:ControlType.Boolean,title:\"Auto Scroll\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},scrollOffset:{type:ControlType.Number,title:\"Scroll Offset\",defaultValue:100,min:0,max:300,step:10,unit:\"px\",hidden:({autoScroll})=>!autoScroll}});FAQSection.displayName=\"FAQ Section\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSection.map"],"mappings":"qQAWG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,CAAC,CAAC,SAAS,wBAAwB,OAAO,kJAAkJ,CAAC,CAAC,SAAS,sCAAsC,OAAO,2IAA2I,CAAC,CAAC,SAAS,wCAAwC,OAAO,8JAA8J,CAAC,CAAC,SAAS,iCAAiC,OAAO,4IAA4I,CAAC,CAAC,cAAY,UAAU,kBAAgB,UAAU,qBAAmB,UAA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