{"version":3,"file":"Loading_Animation.BNjhMVeJ.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":"iXAAa,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CASY,EAAyB,CAClC,GAAG,EACH,SAAU,SACb,ICdD,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,EAAS,CAACA,EAAS,WACtD,OADiE,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAS,GAAW,IAAY,UAAU,cAAc,UAAY,EAAC,KAC7N,UAAU,cAAc,EAAW,EAAC,EAAE,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAM,CAAC,CAAG,CAAE,uCAFlHC,EAAS,EAAY,CAAC,WAAW,UAAU,EAG3C,EAAkB,EAAsB,MCH6f,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,AAAE,CAAmJ,SAAgB,EAAqB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,GAAgDC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAiB,GAAO,EAAK,qCAAhgC,EAAS,EAAY,CAAC,WAAW,UAAU,EAAq9B,EAAqB,YAAY"}