{"version":3,"file":"Accordion2.DoWmi3ql.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/EvNepPCwEI1YuE5xsHWF/1olAdlNOepsGI66mQBjy/Accordion2.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\";// Arrow Icon Component\nconst ArrowIcon=({open})=>/*#__PURE__*/_jsx(motion.svg,{width:\"1.25em\",height:\"1.25em\",viewBox:\"0 0 24 24\",style:{flexShrink:0},animate:{rotate:open?180:0},transition:{duration:.3},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9l6 6 6-6\",stroke:\"#151515\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\"})});// Accordion Component\nexport default function EditableAccordion(props){const{faqItems}=props;const[openIndex,setOpenIndex]=React.useState(0);const toggle=idx=>{setOpenIndex(prev=>prev===idx?null:idx);};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",margin:\"0 0\",boxSizing:\"border-box\"},children:faqItems.map((item,idx)=>/*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:\"1px solid #eee\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggle(idx),style:{width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",background:\"none\",border:\"none\",cursor:\"pointer\",outline:\"none\",padding:\"20px 0\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"clamp(18px, 2.2vw, 24px)\",lineHeight:\"1.2\",color:\"#151515\",fontWeight:600,textAlign:\"left\",flex:1},children:item.question}),/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:20,flexShrink:0},children:/*#__PURE__*/_jsx(ArrowIcon,{open:openIndex===idx})})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:openIndex===idx&&/*#__PURE__*/_jsx(motion.div,{initial:\"collapsed\",animate:\"open\",exit:\"collapsed\",variants:{open:{height:\"auto\",opacity:1},collapsed:{height:0,opacity:0}},transition:{duration:.3,ease:\"easeInOut\"},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"clamp(14px, 1.8vw, 18px)\",lineHeight:\"1.5\",color:\"#646464\",whiteSpace:\"pre-line\",width:\"90%\",textAlign:\"left\",paddingBottom:\"24px\"},children:item.answer})},`content-${idx}`)})]},idx))});}// Framer UI Property Controls\naddPropertyControls(EditableAccordion,{faqItems:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"What is your question?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Your answer goes here.\",displayTextArea:true}}},defaultValue:[{question:\"What is the average cost of web design services?\",answer:\"It depends on requirements, complexity, and the agency's expertise.\"},{question:\"How long does web design take?\",answer:\"Depends on complexity and features required for your project.\"},{question:\"Why choose Indian agencies?\",answer:\"Cost-effective solutions with skilled professionals and quality output.\"}]}});EditableAccordion.defaultProps={faqItems:[{question:\"What is the average cost of web design services?\",answer:\"It depends on requirements, complexity, and the agency's expertise.\"},{question:\"How long does web design take?\",answer:\"Depends on complexity and features required for your project.\"},{question:\"Why choose Indian agencies?\",answer:\"Cost-effective solutions with skilled professionals and quality output.\"}]};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EditableAccordion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Accordion2.map"],"mappings":"8WAEA,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,YAAU,EAAW,CAAC,EAAU,GAAcA,EAAe,EAAE,CAAO,EAAO,GAAK,CAAC,EAAa,GAAM,IAAO,EAAI,KAAK,EAAI,EAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,UAAU,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