{"version":3,"file":"FAQSection.BPE_3e1H.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/UZxpTLXWLDdbvG1GNds5/o9ReEXSwBYeWKliJmTP7/FAQSection.js"],"sourcesContent":["// FAQSection section with girly colors\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const defaultQuestions=[{question:\"How can I contact support?\",answer:\"You can reach our support team via the contact form on our website or by emailing support@example.com.\"},{question:\"What payment methods do you accept?\",answer:\"We accept Visa, MasterCard, American Express, and PayPal.\"},{question:\"How do I reset my password?\",answer:\"Click 'Forgot password' on the login page and follow the instructions to reset your password.\"},{question:\"Can I change my shipping address after ordering?\",answer:\"If your order hasn't shipped yet, you can update your shipping address by contacting support.\"},{question:\"Do you ship internationally?\",answer:\"Yes, we ship to most countries worldwide. Shipping fees and delivery times vary by location.\"}];const girlyColors={background:\"#FFF0F6\",accent:\"#FFD6EC\",question:\"#C77DFF\",answer:\"#FF6F91\",border:\"#F3C4FB\"};/**\n * FAQSection Section in Girly Colors\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FAQSection(props){const{faqs=defaultQuestions,background=girlyColors.background,accent=girlyColors.accent,questionColor=girlyColors.question,answerColor=girlyColors.answer,borderColor=girlyColors.border,borderRadius=16,questionFont,answerFont,style}=props;const[openIndex,setOpenIndex]=useState(null);function handleToggle(idx){startTransition(()=>setOpenIndex(openIndex===idx?null:idx));}return /*#__PURE__*/_jsx(\"section\",{style:{...style,background,borderRadius,padding:32,boxShadow:\"0 4px 24px 0 rgba(199,125,255,0.10)\",width:\"100%\",minHeight:200,display:\"flex\",flexDirection:\"column\",gap:20,border:`2px solid ${borderColor}`,position:\"relative\"},\"aria-label\":\"FAQSection\",children:faqs.map((item,idx)=>/*#__PURE__*/_jsxs(\"div\",{style:{background:accent,borderRadius:borderRadius-4,marginBottom:0,boxShadow:openIndex===idx?\"0 2px 12px 0 rgba(199,125,255,0.15)\":\"none\",border:`1.5px solid ${borderColor}`,transition:\"box-shadow 0.2s, background 0.2s\"},children:[/*#__PURE__*/_jsxs(\"button\",{style:{width:\"100%\",background:\"none\",border:\"none\",outline:\"none\",cursor:\"pointer\",padding:\"18px 24px\",color:questionColor,textAlign:\"left\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",fontSize:questionFont?.fontSize,fontWeight:questionFont?.variant===\"Bold\"?700:500,letterSpacing:questionFont?.letterSpacing,lineHeight:questionFont?.lineHeight,fontStyle:questionFont?.fontStyle,fontFamily:questionFont?.fontFamily,...questionFont,borderRadius:borderRadius-4,transition:\"background 0.2s\"},\"aria-expanded\":openIndex===idx,\"aria-controls\":`faq-answer-${idx}`,onClick:()=>handleToggle(idx),children:[/*#__PURE__*/_jsx(\"span\",{children:item.question}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:22,color:questionColor,marginLeft:12},children:openIndex===idx?\"−\":\"+\"})]}),openIndex===idx&&/*#__PURE__*/_jsx(\"div\",{id:`faq-answer-${idx}`,style:{padding:\"0 24px 18px 24px\",color:answerColor,fontSize:answerFont?.fontSize,fontWeight:answerFont?.variant===\"Bold\"?700:400,letterSpacing:answerFont?.letterSpacing,lineHeight:answerFont?.lineHeight,fontStyle:answerFont?.fontStyle,fontFamily:answerFont?.fontFamily,...answerFont,transition:\"color 0.2s\"},children:item.answer})]},idx))});}addPropertyControls(FAQSection,{faqs:{type:ControlType.Array,title:\"FAQSection\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"What is your return policy?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"We offer a 30-day return policy on all items. Please contact support for more details.\",displayTextArea:true}}},defaultValue:defaultQuestions,maxCount:8},background:{type:ControlType.Color,title:\"Background\",defaultValue:girlyColors.background},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:girlyColors.accent},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:girlyColors.question},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:girlyColors.answer},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:girlyColors.border},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:32},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSection.map"],"mappings":"gRASG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,EAAiB,aAAW,EAAY,WAAW,SAAO,EAAY,OAAO,gBAAc,EAAY,SAAS,cAAY,EAAY,OAAO,cAAY,EAAY,OAAO,eAAa,GAAG,eAAa,aAAW,SAAO,EAAW,CAAC,EAAU,GAAcA,EAAS,KAAK,CAAC,SAAS,EAAa,EAAI,CAAC,MAAoB,EAAa,IAAY,EAAI,KAAK,EAAI,CAAC,CAAE,OAAoB,EAAK,UAAU,CAAC,MAAM,CAAC,GAAG,EAAM,aAAW,eAAa,QAAQ,GAAG,UAAU,sCAAsC,MAAM,OAAO,UAAU,IAAI,QAAQ,OAAO,cAAc,SAAS,IAAI,GAAG,OAAO,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