{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/q2yYJrfUXvzzBb5dL3ra/JKfZcKt7eRg5Oa7JyfYt/AccordionList.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo,useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import Accordion from\"https://framer.com/m/Accordion-Z7KW.js@TTgsOpSR982kstEXEovC\";var AccordionState;(function(AccordionState){AccordionState[\"DEFAULT\"]=\"Default\";AccordionState[\"DISABLED\"]=\"Disabled\";AccordionState[\"EXPANDED\"]=\"Expanded\";AccordionState[\"EXPANDED_DISABLED\"]=\"Expanded Disabled\";})(AccordionState||(AccordionState={}));var AnimationStates;(function(AnimationStates){AnimationStates[\"HIDDEN\"]=\"hidden\";AnimationStates[\"VISIBLE\"]=\"visible\";})(AnimationStates||(AnimationStates={}));const DEFAULT_ITEMS=[{title:\"Where can I learn more about Wing's technology?\",description:\"Dive into all things Wing on our Blog and YouTube channel.\",link:\"#get\"},{title:\"Where can I learn more about Wing's technology?\",description:\"Dive into all things Wing on our Blog and YouTube channel.\",link:\"\"},{title:\"Where can I learn more about Wing's technology?\",description:\"Dive into all things Wing on our Blog and YouTube channel.\",link:\"\"}];const ComponentVariants={[\"hidden\"]:{},[\"visible\"]:{transition:{delay:0,when:\"beforeChildren\",staggerChildren:.25}}};const ListItemVariants={[\"hidden\"]:{y:10,opacity:0},[\"visible\"]:{y:0,opacity:1}};/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function AccordionList({items=DEFAULT_ITEMS,...props}){const[activeIndex,setActiveIndex]=useState();const[hoveredIndex,setHoveredIndex]=useState();const viewportSettings=useMemo(()=>{return{once:true,amount:.5};},[]);const handleOnClick=index=>{setActiveIndex(curr=>{return curr===index?undefined:index;});};const getVariantForAccordion=index=>{if(activeIndex===index){return hoveredIndex!==index&&hoveredIndex!==undefined?\"Expanded Disabled\":\"Expanded\";}return hoveredIndex!==index&&hoveredIndex!==undefined?\"Disabled\":\"Default\";};return /*#__PURE__*/_jsx(motion.div,{...props,viewport:viewportSettings,variants:ComponentVariants,initial:\"hidden\",whileInView:\"visible\",children:items.map(({title,description,link,richContent},index)=>/*#__PURE__*/_jsx(motion.div,{variants:ListItemVariants,onMouseEnter:()=>setHoveredIndex(()=>index),onMouseLeave:()=>setHoveredIndex(()=>undefined),children:/*#__PURE__*/_jsx(Accordion,{link:link,title:title,content:richContent,description:description,onClick:()=>handleOnClick(index),variant:getVariantForAccordion(index),style:{width:\"100%\",height:\"auto\",flex:\"0 0 auto\",position:\"relative\"}})},index))});}AccordionList.defaultProps={items:DEFAULT_ITEMS};addPropertyControls(AccordionList,{items:{type:ControlType.Array,control:{type:ControlType.Object,controls:{title:{type:ControlType.String},description:{displayTextArea:true,type:ControlType.String},link:{type:ControlType.String,title:\"Links To\"},richContent:{type:ControlType.RichText}}},defaultValue:DEFAULT_ITEMS}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AccordionList\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AccordionList.map"],
  "mappings": "uHAAwP,IAAIA,GAAgB,SAASA,EAAe,CAACA,EAAe,QAAW,UAAUA,EAAe,SAAY,WAAWA,EAAe,SAAY,WAAWA,EAAe,kBAAqB,mBAAoB,GAAGA,IAAiBA,EAAe,CAAC,EAAE,EAAE,IAAIC,GAAiB,SAASA,EAAgB,CAACA,EAAgB,OAAU,SAASA,EAAgB,QAAW,SAAU,GAAGA,IAAkBA,EAAgB,CAAC,EAAE,EAAE,IAAMC,EAAc,CAAC,CAAC,MAAM,kDAAkD,YAAY,6DAA6D,KAAK,MAAM,EAAE,CAAC,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O,OAAO,KAAK,WAAW,SAAS,UAAU,CAAC,CAAC,CAAC,EAAEA,CAAK,CAAC,CAAC,CAAC,CAAE,CAACX,EAAc,aAAa,CAAC,MAAMH,CAAa,EAAEwB,EAAoBrB,EAAc,CAAC,MAAM,CAAC,KAAKsB,EAAY,MAAM,QAAQ,CAAC,KAAKA,EAAY,OAAO,SAAS,CAAC,MAAM,CAAC,KAAKA,EAAY,MAAM,EAAE,YAAY,CAAC,gBAAgB,GAAK,KAAKA,EAAY,MAAM,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,UAAU,EAAE,YAAY,CAAC,KAAKA,EAAY,QAAQ,CAAC,CAAC,EAAE,aAAazB,CAAa,CAAC,CAAC",
  "names": ["AccordionState", "AnimationStates", "DEFAULT_ITEMS", "ComponentVariants", "ListItemVariants", "AccordionList", "items", "props", "activeIndex", "setActiveIndex", "ye", "hoveredIndex", "setHoveredIndex", "viewportSettings", "se", "handleOnClick", "index", "curr", "getVariantForAccordion", "p", "motion", "title", "description", "link", "richContent", "Accordion_Z7KW_default", "addPropertyControls", "ControlType"]
}
