{"version":3,"file":"Shake.Bi0dZIL7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/SgyPsVAyTNfkXKeWjphd/SZoMyX1A7T2BGLwwx4II/Shake.js"],"sourcesContent":["export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";import{motion}from\"framer-motion\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withSkew(Component){return props=>{return /*#__PURE__*/_jsx(motion.div,{initial:{skewX:-10},animate:{skewX:0},transition:{duration:3,repeat:Infinity,repeatType:\"reverse\",ease:\"easeInOut\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}const shakeAnimation={hidden:{x:0},visible:{x:[0,-10,10,-10,10,-5,5,-2,2,0],transition:{duration:6,repeat:Infinity,repeatType:\"reverse\",ease:\"easeInOut\"}}};export function withShake(Component){return props=>{return /*#__PURE__*/_jsx(motion.div,{initial:\"hidden\",animate:\"visible\",variants:shakeAnimation,children:/*#__PURE__*/_jsx(Component,{...props})});};}// Smoother jiggle animation for when the button becomes visible\nconst jiggleAnimation={hidden:{scale:1},visible:{scale:[1,1.02],transition:{duration:.6,ease:\"easeInOut\",repeat:Infinity,repeatType:\"reverse\"}}};export function withJiggleOnVisible(Component){return props=>{const{width,...restProps}=props;return /*#__PURE__*/_jsx(motion.div,{style:{width:width||\"100%\"},initial:\"hidden\",animate:\"visible\",variants:jiggleAnimation,children:/*#__PURE__*/_jsx(Component,{...restProps})});};}// Define a separate shake animation for absolute positioned elements\nconst absoluteShakeAnimation={hidden:{x:0},visible:{x:[0,-10,10,-10,10,-5,5,-2,2,0],transition:{duration:6,repeat:Infinity,repeatType:\"reverse\",ease:\"easeInOut\"}}};// Create a new HOC for absolute shake animation\nexport function withAbsoluteShake(Component){return props=>{return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",zIndex:1},initial:\"hidden\",animate:\"visible\",variants:absoluteShakeAnimation,children:/*#__PURE__*/_jsx(Component,{...props})});};}// Example component wrapped with all HOCs\nconst MyComponent=props=>{// Your component implementation\nreturn /*#__PURE__*/_jsx(\"button\",{...props,children:\"Click me\"});};// Use the new HOC for the absolute shake animation\nexport default withAbsoluteShake(withJiggleOnVisible(withShake(withSkew(withHover(withRandomColor(MyComponent))))));export function textDecoration(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,textDecorationLine:\"underline\",textDecorationStyle:\"dotted\",textDecorationColor:\"#2e42ff\",textDecorationThickness:\"2px\",textUnderlineOffset:\"4px\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"textDecoration\":{\"type\":\"reactHoc\",\"name\":\"textDecoration\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAbsoluteShake\":{\"type\":\"reactHoc\",\"name\":\"withAbsoluteShake\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withJiggleOnVisible\":{\"type\":\"reactHoc\",\"name\":\"withJiggleOnVisible\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShake\":{\"type\":\"reactHoc\",\"name\":\"withShake\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSkew\":{\"type\":\"reactHoc\",\"name\":\"withSkew\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shake.map"],"mappings":"6NAAa,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CAWG,CADA,GAAG,EACO,qBEdwyB,SAAgB,EAAU,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAO,IAAI,CAAC,QAAQ,SAAS,QAAQ,UAAU,SAAS,EAAe,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,CAMx4B,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,mBAAmB,YAAY,oBAAoB,SAAS,oBAAoB,UAAU,wBAAwB,MAAM,oBAAoB,MAAM,CAAC,CAAC,oBAPzV,IAAqE,IAAqE,IAAkC,CACxM,EAAY,CAAC,WAAW,UAAU,CAAC,CAA8mB,EAAe,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,IAAS,WAAW,UAAU,KAAK,YAAY,CAAC,CAAC"}