{"version":3,"file":"FAQ.CC3Cmv2r.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/sLSASYrevTybqhtBpktb/Nb6Py0KlHbJqjqw0RaiY/FAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const defaultItems=[{question:\"What are Accent Gallery shows?\",answer:\"Our shows are curated online exhibitions built around chromatic concepts and contemporary visual language.\"},{question:\"How do I participate?\",answer:\"Visit the active show page and complete the submission form. Your artworks will then be reviewed by our curatorial team.\"},{question:\"Does my artwork need to be newly created?\",answer:\"No. Previously created works are welcome as long as they meet the requirements of the show and you own the rights to them.\"}];const getFontStyle=(font,fallbackFamily)=>{if(typeof font===\"string\")return{fontFamily:font};return font??{fontFamily:fallbackFamily};};/**\n * A title-free FAQ accordion inspired by the Accent Gallery page.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 320\n */export default function AccentFAQ(props){const{items=defaultItems,questionFont={fontFamily:\"Inter\",fontWeight:400},questionSize=24,questionColor=\"#F0F0F0\",answerFont={fontFamily:\"Inter\",fontWeight:400},answerSize=18,answerColor=\"#F0F0F0\",backgroundColor=\"#000000\",dividerColor=\"rgba(240, 240, 240, 0.7)\",accentColor=\"#EFBD49\",allowMultiple=false,style}=props;const[openItems,setOpenItems]=React.useState([]);const[hoveredItem,setHoveredItem]=React.useState(null);const toggleItem=index=>{setOpenItems(current=>{if(current.includes(index)){return current.filter(item=>item!==index);}return allowMultiple?[...current,index]:[index];});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minHeight:\"100%\",boxSizing:\"border-box\",backgroundColor,...style},children:items.map((item,index)=>{const isOpen=openItems.includes(index);const isHighlighted=isOpen||hoveredItem===index;const panelId=`accent-faq-panel-${index}`;const buttonId=`accent-faq-button-${index}`;return /*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${dividerColor}`,borderBottom:index===items.length-1?`1px solid ${dividerColor}`:undefined},children:[/*#__PURE__*/_jsxs(\"button\",{id:buttonId,type:\"button\",\"aria-expanded\":isOpen,\"aria-controls\":panelId,onClick:()=>toggleItem(index),onMouseEnter:()=>setHoveredItem(index),onMouseLeave:()=>setHoveredItem(null),style:{width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:24,padding:\"24px 0\",border:0,background:\"transparent\",color:questionColor,cursor:\"pointer\",textAlign:\"left\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...getFontStyle(questionFont,\"Inter\"),fontSize:questionSize,color:questionColor},children:item.question}),/*#__PURE__*/_jsxs(\"span\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:40,height:40,flex:\"0 0 40px\",borderRadius:\"50%\",background:isHighlighted?accentColor:\"transparent\",transition:\"background-color 200ms ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",width:18,height:1,background:isHighlighted?\"#000000\":questionColor,transform:\"translate(-50%, -50%)\",transition:\"background-color 200ms ease\"}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",width:1,height:18,background:isHighlighted?\"#000000\":questionColor,transform:`translate(-50%, -50%) scaleY(${isOpen?0:1})`,transition:\"transform 200ms ease, background-color 200ms ease\"}})]})]}),/*#__PURE__*/_jsx(\"div\",{id:panelId,role:\"region\",\"aria-labelledby\":buttonId,style:{display:\"grid\",gridTemplateRows:isOpen?\"1fr\":\"0fr\",transition:\"grid-template-rows 260ms ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{...getFontStyle(answerFont,\"Inter\"),padding:\"0 64px 28px 0\",color:answerColor,fontSize:answerSize,lineHeight:1.55},children:item.answer})})})]},`${item.question}-${index}`);})});}addPropertyControls(AccentFAQ,{items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Your question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,defaultValue:\"Your answer\"}}},defaultValue:defaultItems,maxCount:20},questionFont:{type:ControlType.Font,title:\"Q Font\",controls:\"basic\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Inter\",fontWeight:400}},questionSize:{type:ControlType.Number,title:\"Q Size\",defaultValue:24,min:10,max:80,step:1,unit:\"px\"},questionColor:{type:ControlType.Color,title:\"Q Color\",defaultValue:\"#F0F0F0\"},answerFont:{type:ControlType.Font,title:\"A Font\",controls:\"basic\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Inter\",fontWeight:400}},answerSize:{type:ControlType.Number,title:\"A Size\",defaultValue:18,min:10,max:60,step:1,unit:\"px\"},answerColor:{type:ControlType.Color,title:\"A Color\",defaultValue:\"#F0F0F0\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},dividerColor:{type:ControlType.Color,title:\"Lines\",defaultValue:\"rgba(240, 240, 240, 0.7)\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#EFBD49\"},allowMultiple:{type:ControlType.Boolean,title:\"Multi-open\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AccentFAQ\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"320\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ.map"],"mappings":"iLAMG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,EAAa,eAAa,CAAC,WAAW,QAAQ,WAAW,IAAI,CAAC,eAAa,GAAG,gBAAc,UAAU,aAAW,CAA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