{"version":3,"file":"Loading_Animation.BabKFdUg.mjs","names":["useState","useStore","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/ZGD0RHhY0JkLMMyuk60b/cI4MZyxXGHTvEIRFIFYV/Blink.js","https:/framerusercontent.com/modules/ASnt6C3MjYQFpsuHXaRn/JSbvyq2VIEAdwzJZYxJv/Loading_Animation.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","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{useEffect,useState}from\"react\";import{Frame}from\"framer\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}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()});}});};}// New HOC for blinking text color\nexport function withBlinkingTextColor(Component){return props=>{const[color,setColor]=useState(\"#05f140\");useEffect(()=>{const interval=setInterval(()=>{setColor(prevColor=>prevColor===\"#05f140\"?\"transparent\":\"#05f140\");},500)// Blinking interval in milliseconds\n;return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,color}});};}// Usage example with Framer's Frame component\nconst BlinkingTextFrame=withBlinkingTextColor(Frame);export function App(){return /*#__PURE__*/_jsx(BlinkingTextFrame,{size:150,radius:30,background:\"#fff\",children:\"Blinking Text\"});}export default App;\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBlinkingTextColor\":{\"type\":\"reactHoc\",\"name\":\"withBlinkingTextColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"App\":{\"type\":\"reactComponent\",\"name\":\"App\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"App\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Blink.map","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\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}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()});}});};}export function LoadingAnimation(){return{initial:{opacity:1},animate:{opacity:0,transition:{duration:2,delay:4}},style:{pointerEvents:\"none\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withLoadingAnimation(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...LoadingAnimation(props)});};}withLoadingAnimation.displayName=\"LoadingAnimation\";\nexport const __FramerMetadata__ = {\"exports\":{\"LoadingAnimation\":{\"type\":\"override\",\"name\":\"LoadingAnimation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoadingAnimation\":{\"type\":\"reactHoc\",\"name\":\"withLoadingAnimation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Loading_Animation.map"],"mappings":"+WAAa,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CAWG,CADA,GAAG,EACO,ICbd,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,UAAU,CAChE,OADiE,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAS,GAAW,IAAY,UAAU,cAAc,UAAU,EAAG,IAAI,CACjO,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAM,CAAC,CAAC,mBAHzE,IAAqE,IAAqE,IAAsC,IAA0B,CACtO,EAAY,CAAC,WAAW,UAAU,CAAC,ICAyf,SAAgB,GAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc,OAAO,CAAC,CAAqJ,SAAgB,EAAqB,EAAE,CAAC,MAAO,KAAQ,EAA+BE,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAiB,EAAM,CAAC,CAAC,mBADv9B,IAAqE,IAAqE,IACukB,IAAmF,CAAh0B,EAAY,CAAC,WAAW,UAAU,CAAC,CAAo9B,EAAqB,YAAY"}