{"version":3,"file":"FAQ_1.WBADh92I.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/mmkWokNm9vnQqeoZOxrD/Mfll0208ueXh2i1n1rWV/FAQ_1.js"],"sourcesContent":["// Simple FAQ accordion with up to 4 items, smooth slide-in answers, no border on first question\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SimpleFAQ(props){const{q1=\"\",a1=\"\",q2=\"\",a2=\"\",q3=\"\",a3=\"\",q4=\"\",a4=\"\",backgroundColor=\"transparent\",questionColor=\"#1A1A1A\",answerColor=\"#6B6B6B\",accentColor=\"#1A1A1A\",borderColor=\"#E5E5E0\",questionFont,answerFont,borderRadius=2,spacing=12,questionBottomPadding=12,answerBottomPadding=12,style}=props;const[expandedIndex,setExpandedIndex]=useState(null);const faqs=[{question:q1,answer:a1},{question:q2,answer:a2},{question:q3,answer:a3},{question:q4,answer:a4}].filter(faq=>faq.question.trim()!==\"\");const handleQuestionClick=index=>{startTransition(()=>{setExpandedIndex(expandedIndex===index?null:index);});};return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",minWidth:0,boxSizing:\"border-box\",backgroundColor,padding:`${spacing}px 0`,borderRadius,position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:0},children:faqs.map((faq,index)=>{const isExpanded=expandedIndex===index;const isFirstItem=index===0;return /*#__PURE__*/_jsxs(\"div\",{style:{borderTop:isFirstItem?\"none\":`1px solid ${borderColor}`,overflow:\"hidden\",backgroundColor,transition:\"border-color 0.2s ease\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>handleQuestionClick(index),style:{width:\"100%\",padding:`${questionBottomPadding}px 0`,backgroundColor:\"transparent\",border:\"none\",textAlign:\"left\",cursor:\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"baseline\",gap:spacing*.75,color:questionColor,transition:\"background-color 0.2s ease\",...questionFont},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0},children:faq.question}),/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,color:accentColor,fontSize:\"12px\",fontWeight:400,opacity:.4,fontFamily:\"monospace\",lineHeight:\"inherit\",width:\"3ch\",textAlign:\"center\"},children:isExpanded?\"[-]\":\"[+]\"})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isExpanded&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{height:{duration:.4,ease:[.4,0,.2,1]},opacity:{duration:.3,ease:[.4,0,.2,1]}},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{padding:`${spacing*.25}px 0 ${answerBottomPadding}px 0`,color:answerColor,...answerFont},children:/*#__PURE__*/_jsx(motion.div,{initial:{y:-10},animate:{y:0},transition:{duration:.3,ease:[.4,0,.2,1]},dangerouslySetInnerHTML:{__html:faq.answer}})})})})]},index);})})});}addPropertyControls(SimpleFAQ,{q1:{type:ControlType.String,title:\"Question 1\",defaultValue:\"How do I get started with Framer?\"},a1:{type:ControlType.String,title:\"Answer 1\",defaultValue:\"Getting started with Framer is easy! Simply sign up for an account, explore the templates, and start building your first project. Our interactive tutorials will guide you through the basics.\"},q2:{type:ControlType.String,title:\"Question 2\",defaultValue:\"What are Framer components?\"},a2:{type:ControlType.String,title:\"Answer 2\",defaultValue:\"Framer components are reusable building blocks that you can use across your projects. They can be customized with properties and connected to your CMS for dynamic content.\"},q3:{type:ControlType.String,title:\"Question 3\",defaultValue:\"Can I connect my own CMS?\"},a3:{type:ControlType.String,title:\"Answer 3\",defaultValue:\"Yes! Framer supports integration with various CMS platforms. You can connect your content sources and create dynamic, data-driven websites with ease.\"},q4:{type:ControlType.String,title:\"Question 4\",defaultValue:\"\"},a4:{type:ControlType.String,title:\"Answer 4\",defaultValue:\"\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#1A1A1A\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#6B6B6B\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#1A1A1A\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#E5E5E0\"},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Medium\",letterSpacing:\"0em\",lineHeight:\"1.4em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.5em\"}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:2,min:0,max:32,step:1,unit:\"px\"},spacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:12,min:8,max:32,step:2,unit:\"px\"},questionBottomPadding:{type:ControlType.Number,title:\"Question Bottom Padding\",defaultValue:12,min:0,max:48,step:2,unit:\"px\"},answerBottomPadding:{type:ControlType.Number,title:\"Answer Bottom Padding\",defaultValue:12,min:0,max:48,step:2,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimpleFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ_1.map"],"mappings":"gPAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KA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