{"version":3,"file":"App.usynJtZP.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/4KKJFMgn9it1Gv96R7E9/yJoz9YtRyvruojlFrL71/App.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useInView}from\"framer-motion\";import{useEffect,useRef}from\"react\";const useStore=createStore({background:\"#0099FF\",animationVariant:\"Variant 1\",showScrollDownButton:true});export function setAnimationVariant(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{style:{cursor:\"pointer\"},...props,onClick:()=>{setStore({animationVariant:\"Variant 1\"});}});};}export function cursorPointer(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,style:{cursor:\"pointer\"}});};}export function getAnimationVariant(Component){return props=>{const[store,setStore]=useStore();const autoToggle=()=>{window.setTimeout(()=>{if(store.currentTheme==\"Data\"){setStore({animationVariant:\"Design\"});}else{setStore({animationVariant:\"Data\"});}autoToggle();},2e3);};return /*#__PURE__*/ _jsx(Component,{...props,variant:store.animationVariant,onChange:()=>{setStore({animationVariant:props.variant});console.log(\"Change\");}});};}export function componentInView(Component){return props=>{const[store,setStore]=useStore();const ref=useRef(null);const isInView=useInView(ref);useEffect(()=>{setStore({showScrollDownButton:isInView?false:true});},[isInView]);return /*#__PURE__*/ _jsx(Component,{ref:ref,...props});};}export function showScrollDownElement(Component){return props=>{const[store,setStore]=useStore();const visible=store.showScrollDownButton?1:0;return /*#__PURE__*/ _jsx(Component,{...props,animate:{opacity:visible}});};}export function showScrollUpElement(Component){return props=>{const[store,setStore]=useStore();const visible=store.showScrollDownButton?0:1;return /*#__PURE__*/ _jsx(Component,{...props,animate:{opacity:visible}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"setAnimationVariant\":{\"type\":\"reactHoc\",\"name\":\"setAnimationVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showScrollDownElement\":{\"type\":\"reactHoc\",\"name\":\"showScrollDownElement\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showScrollUpElement\":{\"type\":\"reactHoc\",\"name\":\"showScrollUpElement\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"componentInView\":{\"type\":\"reactHoc\",\"name\":\"componentInView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getAnimationVariant\":{\"type\":\"reactHoc\",\"name\":\"getAnimationVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cursorPointer\":{\"type\":\"reactHoc\",\"name\":\"cursorPointer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./App.map"],"mappings":"qWAAsgB,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAC,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAyb,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAIA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAAmF,OAAlF,MAAc,CAAC,EAAS,CAAC,qBAAqB,GAAoB,CAAC,EAAG,CAAC,EAAS,CAAC,CAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAI,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAQ,EAAM,qBAAqB,EAAE,EAAE,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAQ,CAAC,CAAC,EAAI,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAQ,EAAM,qBAAqB,EAAE,EAAE,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAQ,CAAC,CAAC,yBAAlwD,IAAqE,IAAqC,IAAoC,CAAM,EAAS,EAAY,CAAC,WAAW,UAAU,iBAAiB,YAAY,qBAAqB,GAAK,CAAC"}