{"version":3,"file":"FAQPS.B2YlHpDo.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/48ggsPTiCxfGyap15ZJD/DZ2syujt1ajvklg0Ze2C/FAQPS.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";import{useState,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FAQConsignment(props){const{items,gap,animationDuration,animationEase,iconColor}=props;const[openIndex,setOpenIndex]=useState(0);// Слухаємо сигнал ззовні (від кнопки) — відкрити останнє питання\nuseEffect(()=>{function handleOpenLast(){setOpenIndex(items.length-1);}window.addEventListener(\"faq-open-last\",handleOpenLast);return()=>window.removeEventListener(\"faq-open-last\",handleOpenLast);},[items.length]);const faqSchema={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.map(item=>({\"@type\":\"Question\",name:item.question,acceptedAnswer:{\"@type\":\"Answer\",text:item.answer}}))};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(faqSchema)}}),/*#__PURE__*/_jsx(\"div\",{id:\"faq-consignment-section\",style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:`${gap}px`,...props.style},children:items.map((item,index)=>/*#__PURE__*/_jsx(FAQAccordionItem,{question:item.question,answer:item.answer,isOpen:openIndex===index,onToggle:()=>setOpenIndex(openIndex===index?null:index),animationDuration:animationDuration,animationEase:animationEase,iconColor:iconColor},index))})]});}function FAQAccordionItem({question,answer,isOpen,onToggle,animationDuration,animationEase,iconColor}){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{onClick:onToggle,style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",cursor:\"pointer\",gap:\"16px\",padding:\"16px 0\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:'\"ABC Diatype\", \"ABC Diatype Placeholder\", sans-serif',fontSize:\"18px\",fontWeight:700,lineHeight:\"26px\",color:\"#222326\",flex:1},children:question}),/*#__PURE__*/_jsxs(motion.div,{animate:{rotate:isOpen?180:0},transition:{duration:animationDuration,ease:animationEase},style:{width:\"14px\",height:\"14px\",position:\"relative\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:0,width:\"14px\",height:\"2px\",marginTop:\"-1px\",borderRadius:\"1px\",backgroundColor:iconColor}}),/*#__PURE__*/_jsx(motion.div,{animate:{scaleY:isOpen?0:1},transition:{duration:animationDuration,ease:animationEase},style:{position:\"absolute\",left:\"50%\",top:0,width:\"2px\",height:\"14px\",marginLeft:\"-1px\",borderRadius:\"1px\",backgroundColor:iconColor}})]})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:animationDuration,ease:animationEase},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingBottom:\"16px\",fontFamily:'\"ABC Diatype\", \"ABC Diatype Placeholder\", sans-serif',fontSize:\"18px\",fontWeight:400,lineHeight:\"26px\",color:\"#48494C\"},children:answer})})}),/*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"1px\",backgroundColor:\"rgba(0, 0, 0, 0.1)\"}})]});}FAQConsignment.displayName=\"FAQConsignment\";addPropertyControls(FAQConsignment,{items:{type:ControlType.Array,title:\"FAQ Items\",maxCount:20,control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"How long does it take to get paid?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Sellers are typically paid within 48 hours.\",displayTextArea:true}}},defaultValue:[{question:\"How long does it take to get paid after a sale?\",answer:\"Sellers are typically paid within 48 hours after the sale closes and payment is received. Funds are added to your Fanatics Collect account balance, where you can withdraw or use them toward future purchases.\"},{question:\"Do I need to grade my cards before consigning?\",answer:\"No. You can submit raw (ungraded) cards, and we'll coordinate authentication and grading through our partner network.\"},{question:\"Can I consign raw or ungraded items?\",answer:\"Yes. Raw cards and collectibles can be submitted and authenticated through our partner services before being listed for sale.\"},{question:\"What happens if my item doesn't sell?\",answer:\"If an item goes unsold, you can relist it in a future auction, move it to Buy Now, or request it back from your Vault at any time.\"},{question:\"Are there minimum requirements to consign?\",answer:\"No. You can consign a single item or an entire collection. Premier Auctions, however, require items with an estimated value of $10,000 or more.\"}]},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:100},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#000000\"},animationDuration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:.3,min:.1,max:1,step:.1},animationEase:{type:ControlType.Enum,title:\"Easing\",defaultValue:\"easeInOut\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQConsignment\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQPS.map"],"mappings":"qQAGG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,oBAAkB,gBAAc,aAAW,EAAW,CAAC,EAAU,GAAcA,EAAS,CAAC,EAC1J,MAAc,CAAC,SAAS,GAAgB,CAAC,EAAa,EAAM,OAAO,CAAC,CAAE,CAAyD,OAAxD,EAAO,iBAAiB,gBAAgB,CAAc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