{"version":3,"file":"Float.jZ1pkO2K.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gvwlifm4DnaFJ8n3CF27/9NY7FdB6mkAFWxV9m9gK/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\"});};}export function withFloatSubtle(Component){return props=>{const controls=useAnimation();const maxHeight=-5// 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 withFloatSubtle2(Component){return props=>{const controls=useAnimation();const maxHeight=-9// 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 withFloatSubtle3(Component){return props=>{const controls=useAnimation();const maxHeight=-7// 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});};}\nexport const __FramerMetadata__ = {\"exports\":{\"All\":{\"type\":\"reactHoc\",\"name\":\"All\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewChange\":{\"type\":\"reactHoc\",\"name\":\"withViewChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatLess\":{\"type\":\"reactHoc\",\"name\":\"withFloatLess\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSwing\":{\"type\":\"reactHoc\",\"name\":\"withSwing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatSubtle3\":{\"type\":\"reactHoc\",\"name\":\"withFloatSubtle3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatRandom\":{\"type\":\"reactHoc\",\"name\":\"withFloatRandom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatSubtle2\":{\"type\":\"reactHoc\",\"name\":\"withFloatSubtle2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloatSubtle\":{\"type\":\"reactHoc\",\"name\":\"withFloatSubtle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat\":{\"type\":\"reactHoc\",\"name\":\"withFloat\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Free\":{\"type\":\"reactHoc\",\"name\":\"Free\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Float.map"],"mappings":"2NAA4L,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAa,EAChI,OAA3I,MAAc,CAAC,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,IAAU,CAAC,EAAE,WAAW,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,YAAY,OAAO,GAAQ,CAAC,CAAC,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAO,IAAI,QAAQ,CAAQ,CAAC,CAAE,CAAE,CAEmF,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAa,EACvP,OAA3I,MAAc,CAAC,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,IAAU,CAAC,EAAE,WAAW,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,YAAY,OAAO,GAAQ,CAAC,CAAC,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAO,IAAI,QAAQ,CAAQ,CAAC,CAAE,CAAE,CAAk7B,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAa,EACxlC,OAA3I,MAAc,CAAC,EAAS,MAAM,CAAC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