{"version":3,"file":"FAQAccordion.CdL2dSi-.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/1fnCHPzVjL9PbpyavgH1/6tLIVPN6p4XBYyexmkHz/FAQAccordion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useState}from\"react\";const motionEase=\"cubic-bezier(0.44, 0, 0.56, 1)\";const motionDuration=\"0.2s\";const items=[{question:\"Is Photon really free?\",answer:\"Yes, 100% free. No credit card required, no trial period, no hidden costs.\"},{question:\"What file formats can I edit?\",answer:\"RAW and JPEG files from any camera brand.\"},{question:\"Is it available for Mac and Windows?\",answer:\"Yes. Photon works on both Mac and Windows.\"},{question:\"What editing tools are included?\",answer:\"Light adjustments (Exposure, Contrast, Highlights, Shadows, Whites, Blacks), White balance adjustments (Temperature, Tint), Color adjustments (Vibrance, Saturation), and Crop & Straighten tools will be included.\"},{question:\"Are my original photos safe?\",answer:\"Yes, all editing is non-destructive. Your original files never change and you can undo any adjustment anytime.\"},{question:\"Can I export my photos?\",answer:\"Yes. Export high-quality JPEG files ready to share on social media, print, or add to your portfolio.\"}];function textStyle(font,color){return{fontFamily:font?.fontFamily,fontSize:font?.fontSize,fontWeight:font?.fontWeight,fontStyle:font?.fontStyle,lineHeight:font?.lineHeight,letterSpacing:font?.letterSpacing,color,margin:0,whiteSpace:\"normal\",overflowWrap:\"anywhere\"};}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FAQAccordion(props){const{items:entries=items,itemGap=4,answerGap=16,questionFont:questionFontProp,answerFont:answerFontProp,questionColor=\"#FFFFFF\",answerColor=\"rgba(255, 255, 255, 0.8)\",backgroundColor:backgroundColorProp=\"rgb(39, 39, 39)\",radius=40,padding=24,openAllOnCanvas=true,style}=props;const questionFont=questionFontProp||props.question;const answerFont=answerFontProp||props.answer;const backgroundColor=backgroundColorProp||props.background||\"rgb(39, 39, 39)\";const onCanvas=RenderTarget.current()===RenderTarget.canvas;const showAll=onCanvas&&openAllOnCanvas;const[openIndex,setOpenIndex]=useState(null);const layoutStyle={...style??{}};delete layoutStyle.maxWidth;return /*#__PURE__*/_jsx(\"div\",{style:{...layoutStyle,position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",gap:itemGap,boxSizing:\"border-box\",minWidth:0,width:\"100%\",height:\"auto\",maxWidth:\"none\"},children:entries.map((item,index)=>{const open=showAll||openIndex===index;return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-expanded\":open,onClick:()=>setOpenIndex(openIndex===index?null:index),style:{display:\"flex\",alignItems:\"flex-start\",gap:16,width:\"100%\",maxWidth:\"none\",alignSelf:\"stretch\",boxSizing:\"border-box\",margin:0,padding,border:0,borderRadius:radius,background:backgroundColor,cursor:\"pointer\",textAlign:\"left\",color:\"inherit\",font:\"inherit\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",flexDirection:\"column\",flex:1,minWidth:0},children:[/*#__PURE__*/_jsx(\"span\",{style:textStyle(questionFont,questionColor),children:item.question}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"grid\",gridTemplateRows:open?\"1fr\":\"0fr\",transition:showAll?undefined:\"grid-template-rows \"+motionDuration+\" \"+motionEase},children:/*#__PURE__*/_jsx(\"span\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"span\",{style:{...textStyle(answerFont,answerColor),display:\"block\",paddingTop:answerGap,opacity:open?1:0,transition:showAll?undefined:\"opacity \"+motionDuration+\" \"+motionEase},children:item.answer})})})]}),/*#__PURE__*/_jsxs(\"span\",{\"aria-hidden\":true,style:{position:\"relative\",flex:\"0 0 auto\",width:28,height:28,borderRadius:100,background:\"rgba(255, 255, 255, 0.08)\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:1,height:12,marginLeft:-.5,marginTop:-6,background:\"#FFFFFF\",transform:open?\"rotate(90deg)\":\"rotate(-90deg)\",transition:showAll?undefined:\"transform \"+motionDuration+\" \"+motionEase}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:1,height:12,marginLeft:-.5,marginTop:-6,background:\"#FFFFFF\",transform:open?\"rotate(90deg)\":\"rotate(-180deg)\",transition:showAll?undefined:\"transform \"+motionDuration+\" \"+motionEase}})]})]},item.question+index);})});}addPropertyControls(FAQAccordion,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer\",displayTextArea:true}}},defaultValue:items},itemGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:4,min:0,max:64,step:1,unit:\"px\"},answerGap:{type:ControlType.Number,title:\"Answer Gap\",defaultValue:16,min:0,max:80,step:1,unit:\"px\",description:\"Space between a question and its answer.\"},questionFont:{type:ControlType.Font,title:\"Question\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"1.13rem\",variant:\"Semibold\",letterSpacing:\"0em\",lineHeight:\"1.2em\"}},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#FFFFFF\"},answerFont:{type:ControlType.Font,title:\"Answer\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"1rem\",variant:\"Light\",letterSpacing:\"0.02em\",lineHeight:\"1.5em\"}},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"rgba(255, 255, 255, 0.8)\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(39, 39, 39)\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:40,min:0,max:80,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:24,min:0,max:64,unit:\"px\"},openAllOnCanvas:{type:ControlType.Boolean,title:\"Open All On Canvas\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQAccordion\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map"],"mappings":"wLAA8mC,SAAS,EAAU,EAAK,EAAM,CAAC,MAAM,CAAC,WAAW,GAAM,WAAW,SAAS,GAAM,SAAS,WAAW,GAAM,WAAW,UAAU,GAAM,UAAU,WAAW,GAAM,WAAW,cAAc,GAAM,cAAc,QAAM,OAAO,EAAE,WAAW,SAAS,aAAa,UAAU,CAAE,CAGr3C,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,MAAM,EAAQ,EAAM,UAAQ,EAAE,YAAU,GAAG,aAAa,EAAiB,WAAW,EAAe,gBAAc,UAAU,cAAY,2BAA2B,gBAAgB,EAAoB,kBAAkB,SAAO,GAAG,UAAQ,GAAG,kBAAgB,GAAK,SAAO,EAAY,EAAa,GAAkB,EAAM,SAAe,EAAW,GAAgB,EAAM,OAAa,EAAgB,GAAqB,EAAM,YAAY,kBAAoF,EAAnD,EAAa,QAAQ,IAAI,EAAa,QAA+B,EAAqB,CAAC,EAAU,GAAcA,EAAS,IAAI,EAAQ,EAAY,CAAC,GAAG,GAAO,CAAC,CAAC,EAA8B,OAA5B,OAAO,EAAY,SAA6B,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAY,SAAS,WAAW,QAAQ,OAAO,cAAc,SAAS,WAAW,UAAU,IAAI,EAAQ,UAAU,aAAa,SAAS,EAAE,MAAM,OAAO,OAAO,OAAO,SAAS,MAAM,EAAE,SAAS,EAAQ,KAAK,EAAK,IAAQ,CAAC,IAAM,EAAK,GAAS,IAAY,EAAM,OAAoB,EAAM,SAAS,CAAC,KAAK,SAAS,gBAAgB,EAAK,YAAY,EAAa,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