{"version":3,"file":"FAQAccordion.CF3ALizF.mjs","names":["useMemo","useState","useCallback","__esmMin","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","te","_e","p","c","init_jsx_runtime","init_framer_B6PCHH0A","addPropertyControls","RenderTarget","ControlType","textStyle","font","FAQAccordion","questionFontProp","answerFontProp","backgroundColorProp","props","entries","singleQuestion","singleAnswer","questionLines","questionText","line","answerLinesRaw","answerText","index","items","questionFont","answerFont","backgroundColor","showAll","openAllOnCanvas","prefersReducedMotion","openIndex","setOpenIndex","onToggle","current","layoutStyle","style","itemGap","open","event","padding","paddingX","radius","questionColor","item","motionEase","answerColor","answerGap","iconSize","iconStroke","iconColor","init_FAQAccordion"],"sources":["https:/framerusercontent.com/modules/bhZrtgvBL0C6pt0AnPPz/J7khEKVZ4lzCm9J1tkVM/FAQAccordion.js"],"sourcesContent":["// User request: Update localized FAQAccordion to match reference styling (white square rows, 4px gap, 20px vertical and 32px horizontal padding, refined typography, plain plus/minus icon), preserve existing controls/behavior, and enable selected-instance copy editing via questionText/answerText.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{startTransition,useCallback,useMemo,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{itemGap=4,answerGap=16,questionFont:questionFontProp,answerFont:answerFontProp,questionColor=\"#000000\",answerColor=\"rgba(0, 0, 0, 0.8)\",backgroundColor:backgroundColorProp=\"#FFFFFF\",radius=0,padding=20,paddingX=32,iconColor=\"#000000\",iconSize=24,iconStroke=1.5,openAllOnCanvas=true,questionText=\"\",answerText=\"\",singleQuestion=\"\",singleAnswer,style}=props;const entries=useMemo(()=>{if(singleQuestion.trim()){return[{question:singleQuestion.trim(),answer:singleAnswer??\"\"}];}const questionLines=questionText.split(/\\r?\\n/).map(line=>line.trim()).filter(Boolean);const answerLinesRaw=answerText.split(/\\r?\\n/);if(questionLines.length>0){return questionLines.map((question,index)=>({question,answer:(answerLinesRaw[index]??\"\").trim()}));}return props.items?.length?props.items:items;},[singleQuestion,singleAnswer,questionText,answerText,props.items]);const questionFont=questionFontProp||props.question;const answerFont=answerFontProp||props.answer;const backgroundColor=backgroundColorProp||props.background||\"#FFFFFF\";const onCanvas=RenderTarget.current()===RenderTarget.canvas;const showAll=onCanvas&&openAllOnCanvas;const prefersReducedMotion=useMemo(()=>{if(typeof window!==\"undefined\"&&window.matchMedia){return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}return false;},[]);const[openIndex,setOpenIndex]=useState(null);const onToggle=useCallback(index=>{startTransition(()=>{setOpenIndex(current=>current===index?null:index);});},[]);const layoutStyle={...style??{}};delete layoutStyle.maxWidth;return /*#__PURE__*/_jsxs(\"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:[/*#__PURE__*/_jsx(\"style\",{children:`\n                [data-faq-answer=\"true\"] p { margin: 0 0 0.8em; }\n                [data-faq-answer=\"true\"] p:last-child { margin-bottom: 0; }\n                [data-faq-answer=\"true\"] h1,\n                [data-faq-answer=\"true\"] h2,\n                [data-faq-answer=\"true\"] h3,\n                [data-faq-answer=\"true\"] h4,\n                [data-faq-answer=\"true\"] h5,\n                [data-faq-answer=\"true\"] h6 { margin: 0 0 0.55em; color: inherit; }\n                [data-faq-answer=\"true\"] ul,\n                [data-faq-answer=\"true\"] ol { margin: 0.25em 0 0.8em 1.25em; padding: 0; }\n                [data-faq-answer=\"true\"] li { margin: 0.2em 0; }\n                [data-faq-answer=\"true\"] strong,\n                [data-faq-answer=\"true\"] b { font-weight: 700; }\n                [data-faq-answer=\"true\"] a { color: inherit; text-decoration: underline; }\n                [data-faq-answer=\"true\"] > :first-child { margin-top: 0; }\n                [data-faq-answer=\"true\"] > :last-child { margin-bottom: 0; }\n            `}),entries.map((item,index)=>{const open=showAll||openIndex===index;return /*#__PURE__*/_jsxs(\"div\",{role:\"button\",tabIndex:0,\"aria-expanded\":open,onClick:()=>onToggle(index),onKeyDown:event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();onToggle(index);}},style:{display:\"flex\",alignItems:\"flex-start\",gap:16,width:\"100%\",maxWidth:\"none\",alignSelf:\"stretch\",boxSizing:\"border-box\",margin:0,paddingTop:padding,paddingBottom:padding,paddingLeft:paddingX,paddingRight:paddingX,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(\"div\",{style:{display:\"grid\",gridTemplateRows:open?\"1fr\":\"0fr\",transition:showAll?undefined:\"grid-template-rows \"+motionDuration+\" \"+motionEase},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{\"data-faq-answer\":\"true\",style:{...textStyle(answerFont,answerColor),display:\"block\",whiteSpace:\"pre-line\",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:iconSize,height:iconSize,transform:open?\"rotate(90deg)\":\"rotate(0deg)\",transformOrigin:\"50% 50%\",transition:showAll||prefersReducedMotion?undefined:\"transform \"+motionDuration+\" \"+motionEase},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:iconStroke,height:iconSize*.58,marginLeft:-(iconStroke/2),marginTop:-(iconSize*.58)/2,background:iconColor,transition:showAll||prefersReducedMotion?undefined:\"opacity \"+motionDuration+\" \"+motionEase}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:iconSize*.58,height:iconStroke,marginLeft:-(iconSize*.58)/2,marginTop:-(iconStroke/2),background:iconColor,opacity:open?0:1,transition:showAll||prefersReducedMotion?undefined:\"opacity \"+motionDuration+\" \"+motionEase}})]})]},item.question+index);})]});}addPropertyControls(FAQAccordion,{singleQuestion:{type:ControlType.String,title:\"Single Question\",defaultValue:\"\"},singleAnswer:{type:ControlType.RichText,title:\"Single Answer\",defaultValue:\"\"},questionText:{type:ControlType.String,title:\"Question Text\",defaultValue:\"\",displayTextArea:true,description:\"Optional override: one question per line.\"},answerText:{type:ControlType.String,title:\"Answer Text\",defaultValue:\"\",displayTextArea:true,description:\"Optional override: one answer per line, matched by line number with Question Text.\"},items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Question\"},answer:{type:ControlType.RichText,title:\"Answer\",defaultValue:\"Answer\"}}},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:\"17px\",variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#000000\"},answerFont:{type:ControlType.Font,title:\"Answer\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.6em\"}},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"rgba(0, 0, 0, 0.8)\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:0,min:0,max:80,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:64,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:32,min:0,max:120,step:1,unit:\"px\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#000000\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:24,min:10,max:40,step:1,unit:\"px\"},iconStroke:{type:ControlType.Number,title:\"Icon Stroke\",defaultValue:1.5,min:1,max:4,step:.1,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\":[\"singleAnswer\"],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map"],"mappings":"A,4NACkpC,SAASkB,EAAU,EAAK,EAAM,CAAC,MAAM,CAAC,WAAWC,GAAM,WAAW,SAASA,GAAM,SAAS,WAAWA,GAAM,WAAW,UAAUA,GAAM,UAAU,WAAWA,GAAM,WAAW,cAAcA,GAAM,cAAc,QAAM,OAAO,EAAE,WAAW,SAAS,aAAa,UAAU,CAAE,CAGz5C,SAAwBC,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAE,YAAU,GAAG,aAAaC,EAAiB,WAAWC,EAAe,gBAAc,UAAU,cAAY,qBAAqB,gBAAgBC,EAAoB,UAAU,SAAO,EAAE,UAAQ,GAAG,WAAS,GAAG,YAAU,UAAU,WAAS,GAAG,aAAW,IAAI,kBAAgB,GAAK,eAAa,GAAG,aAAW,GAAG,iBAAe,GAAG,eAAa,SAAOC,EAAYC,EAAQzB,MAAY,CAAC,GAAG0B,EAAe,KAAK,EAAG,MAAM,CAAC,CAAC,SAASA,EAAe,KAAK,EAAE,OAAOC,GAAc,EAAE,CAAC,EAAG,IAAMC,EAAcC,EAAa,MAAM,OAAO,CAAC,CAAC,IAAI,GAAMC,EAAK,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAQC,EAAeC,EAAW,MAAM,OAAO,EAAiI,OAA5HJ,EAAc,OAAO,EAAUA,EAAc,KAAK,EAAS,KAAS,CAAC,WAAS,QAAQG,EAAeE,IAAQ,GAAA,CAAI,KAAK,CAAC,EAAE,EAAUT,EAAM,OAAO,OAAOA,EAAM,MAAMU,CAAM,EAAE,CAACR,EAAeC,EAAaE,EAAaG,EAAWR,EAAM,KAAK,CAAC,EAAQW,EAAad,GAAkBG,EAAM,SAAeY,EAAWd,GAAgBE,EAAM,OAAaa,EAAgBd,GAAq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