{"version":3,"file":"Float.BxDXgoN1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gvwlifm4DnaFJ8n3CF27/V4PGkeCZWUCRFIE9Q9As/Float.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useAnimation}from\"framer-motion\";import{useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";export function withFloat(Component){return props=>{const controls=useAnimation();const maxHeight=-42// max height\n;useEffect(()=>{controls.start({y:[0,maxHeight,0],transition:{duration:3.5,times:[0,.5,1],ease:\"easeInOut\",repeat:Infinity}});},[controls]);return /*#__PURE__*/_jsx(Component,{...props,as:motion.div,animate:controls});};}export function withFloatRandom(Component){return props=>{const controls=useAnimation();const maxHeight=-15// max height\n;const minHeight=-5// min height\n;useEffect(()=>{const randomHeight=Math.floor(Math.random()*(maxHeight-minHeight+1))+minHeight;controls.start({y:[0,randomHeight,0],transition:{duration:4.5,times:[0,.5,1],ease:\"easeInOut\",repeat:Infinity}});},[controls]);return /*#__PURE__*/_jsx(Component,{...props,as:motion.div,animate:controls});};}export function withFloatLess(Component){return props=>{const controls=useAnimation();const maxHeight=-25// max height\n;useEffect(()=>{controls.start({y:[0,maxHeight,0],transition:{duration:3.5,times:[0,.5,1],ease:\"easeInOut\",repeat:Infinity}});},[controls]);return /*#__PURE__*/_jsx(Component,{...props,as:motion.div,animate:controls});};}export const withSwing=Component=>{return props=>/*#__PURE__*/_jsx(motion.div,{style:{perspective:\"500px\"},children:/*#__PURE__*/_jsx(Component,{...props,as:motion.div,style:{transformOrigin:\"top center\"},animate:{rotate:[15,-15,15],transition:{duration:3,ease:\"easeInOut\",repeat:Infinity,repeatDelay:0,delay:0}}})});};const useStore=createStore({mode:\"All\"});export function withViewChange(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.mode});};}export function All(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>setStore({mode:\"All\"}),color:store.mode===\"Grid\"?\"#000000\":\"#00000060\"});};}export function Free(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>setStore({mode:\"Free\"}),color:store.mode===\"List\"?\"#000000\":\"#00000060\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFloat\":{\"type\":\"reactHoc\",\"name\":\"withFloat\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewChange\":{\"type\":\"reactHoc\",\"name\":\"withViewChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"All\":{\"type\":\"reactHoc\",\"name\":\"All\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatRandom\":{\"type\":\"reactHoc\",\"name\":\"withFloatRandom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatLess\":{\"type\":\"reactHoc\",\"name\":\"withFloatLess\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSwing\":{\"type\":\"reactHoc\",\"name\":\"withSwing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Free\":{\"type\":\"reactHoc\",\"name\":\"Free\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Float.map"],"mappings":"4RAAmM,SAAS,EAAU,EAAU,CAAC,MAAO,CAAA,GAAO,CAA+B,IAAxB,EAAS,GAAc,CAAO,EAAU,IAClJ,MAA3I,GAAU,IAAI,CAAC,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,EAAU,CAAE,EAAC,WAAW,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,GAAG,CAAE,EAAC,KAAK,YAAY,OAAO,GAAS,CAAC,EAAC,AAAE,EAAC,CAAC,CAAS,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAO,IAAI,QAAQ,CAAS,EAAC,AAAE,CAAE,CAAO,SAAS,EAAgB,EAAU,CAAC,MAAO,CAAA,GAAO,CACrR,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