{"version":3,"file":"FAQ.DSol2LEu.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,GAAG,EAAE,eAAa,GAAG,gBAAc,UAAU,aAAW,CAAC,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