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ACA,IACA,YACA,OACA,4BAEA,aAAoB,uBAAwB,EAE5C,CACA,QACI,GAAa,YACjB,0BACA,cACA,CAAO,CACP,CAAK,CACL,CACA,OACA,qBACA,CACA,SACA,4BAEA,QACA,OAA+B,eAC/B,0BACA,GAAiB,QAAU,MAE3B,CACA,YAAsB,EACtB,oBACA,2CAAuE,QAAU,QACjF,CACA,UACI,GAAa,YACjB,2BACA,IACA,CAAO,CACP,CAAK,CACL,CACA,UACI,GAAa,YACjB,0BACA,WACA,CAAO,CACP,CAAK,CACL,CACA,WACI,GAAa,YACjB,0BACA,YACA,CAAO,CACP,CAAK,CACL,CACA,aCvFA,gBAAkC,GAAY,CAC9C,gBAAyB,EACzB,QACA,cACA,gBACA,kBACA,CACA,IACA,EACA,aACA,UAAyB,GAAQ,EACjC,mBACA,qBACA,oCACA,OACA,CAAK,EAEL,OADA,YACA,CACA,CACA,OACA,WACA,qBACA,UACA,iBACA,aAAkB,wBAAyB,CAC3C,CACA,UACA,WACA,mBACA,uCACA,IACA,aACA,kBAEA,iBAGA,CACA,aAAkB,0BAA2B,CAC7C,CACA,UACA,6DACA,eACA,CACA,WACA,0DACA,uCACA,CACA,QACI,GAAa,YACjB,0BACA,cACA,CAAO,CACP,CAAK,CACL,CACA,SACA,kCACA,CACA,QACA,OAA+B,eAC/B,0BACA,GAAoB,QAAa,MAEjC,CACA,YAAsB,EACtB,+BAA8C,QAAa,MAC3D,CACA,UACI,GAAa,YACjB,2BACA,IACA,CAAO,CACP,CAAK,CACL,CACA,wBACA,gDACA,OAAW,GAAa,OACxB,gBACA,4BAAoE,IAAI,IAGxE,CACA,EACA,cACA,gDACA,2BCxFA,cACA,OACA,gBACA,gBACA,6CACA,0BACA,+BACA,GAAqB,wBACrB,IACA,YACA,SACA,MACA,kCACA,cACA,SACA,iBACA,KAEA,uCACA,IACA,CAAiB,EAEjB,SAEA,CAAW,CACX,EACA,EAAwB,QAAa,2BACrC,iBACA,KACA,wBAEA,2BACA,0BAEA,OACA,oBACA,YACA,iCACA,qBAEA,KACA,cACA,GAEA,CAAkB,YAAW,UAC7B,IAAmC,IAAU,CAAG,IAAQ,CACxD,OACA,qBACA,8BACA,CACA,EACA,gBACA,qBAEA,GACA,QACA,YACA,EACA,EALA,GA+CA,kBAAyC,eAAmB,EAC5D,gEACA,EAjDA,GAKA,KACA,gBACA,EAAU,IACV,kBACA,GACA,4CACA,gBACA,MAEA,eACA,GACA,EAAY,SACZ,CACA,QACA,CACA,qBACA,cACA,sBACA,EACA,CACA,oBACA,oBACA,gBACa,CACb,GAIA,WAEA,CACA,CACA,CACA,oBAAqC,eAAmB,EACxD,iBACA,qCACA,KACA,EACA,KACA,GACA,MACA,CCrFA,YACA,IACA,GACA,GACA,GACA,GACA,GACA,GACA,CACA,iBAAyB,EACzB,0BAAgD,EAChD,QAD0D,EAC1D,mBAAsD,EACtD,WADmE,aACnE,KACA,gBACA,gBACA,SACA,CACA,QACA,UACA,cAEA,QAA6B,GAAY,qBACzC,IACA,mCACA,kBAEA,CAAK,EACL,QAA8B,GAAa,qBAC3C,IACA,mCACA,mBAEA,CAAK,EACL,CACA,UACA,UACA,cAEA,YACA,eACA,YACA,eACA,CACA,cACA,wBAAsC,4BAAqC,SAE3E,cACA,wBAAyC,sBAA+B,SAExE,gBACA,yCAA+C,EAAU,EACzD,2CACA,CACA,mBACA,oCACA,cACA,yBACA,EACA,kCACA,wBAIA,OAHA,qCAA2D,QAAgB,kBAC3E,sBAEA,kBACA,CACA,CACA,kBACA,yCAAoD,UAAiB,GAErE,GADA,OACA,CAEA,CACA,oBACA,gCAAwD,WAAU,EAClE,cACA,aAEA,gBACA,EAAiB,QAAgB,MACjC,cAGA,wCAA0E,eAA0B,CACpG,CACA,sBACA,OAAW,GAAa,OACxB,sCAAqD,EAAU,IAC/D,EACA,yBACA,EAEA,CACA,iBACA,yCAA+C,EAAU,EACzD,sCACA,CACA,iBACA,cACI,GAAa,YACjB,yBACA,WACA,CAAO,CACP,CAAK,CACL,CACA,kBAC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A,CACA,iCACA,cACA,EAEA,CACA,qBACA,2DACA,KACA,aACA,CACA,CACA,QACA,gBACA,eACA,CACA,aCjSA,cACA,QACA,CAgCA,cACA,wBAEA,cACA,iCCrCA,oCACA,cACA,oBACA,CACA,kBACA,cACA,YACA,eACA,YACA,iBACC,EACD,IACA,8BACA,MACA,gBACA,+BACA,cACA,MACA,iBAEU,OAAO,ED+BjB,OACA,gCACA,OAEA,2BACA,oBACA,wFACA,kBACA,gBACA,kBAAuB,OAA2B,IAClD,QACA,EACA,CACA,4CACA,gCACA,IACA,CAAO,CACP,EAEA,CAAG,EACH,qBAAqB,uCAA2C,IAChE,eACA,mCACA,KACA,2CACA,IAAgB,oBAA4C,EAC5D,YACA,KACA,MACA,CAAS,CACT,OAEA,UACA,EACA,CACA,0CACA,8BACA,WACA,YACA,MACA,CAAS,CAGT,CACA,KACA,OACA,kBACA,GAGA,MACA,iCACA,+BAAiC,EAAgB,CACjD,CACA,CAAG,CACH,ECtFiB,kBAEjB,EAAQ,IACR,iBAGA,CAAI,SAOJ,gBACA,CACA,CACA,kBACA,cACA,YACA,YACA,mBACC,EACD,OACA,SACA,qBACA,YDNA,SCM0B,CDN1B,KAAuC,EACvC,6FACA,wCACA,SAvCA,CACA,YAsCA,EAtCA,oBACA,MAqCA,EArCA,MACA,GAoCA,EApCA,gBAAmC,MAoCnC,EApCmC,cAA+B,CAClE,GAmCA,EAnCA,OAA0B,YAC1B,EAkCA,KAEA,mFACA,qEAIA,OAAW,oBAHX,mCACA,UAnCA,OACA,GAkCA,EAlCA,MACA,YAiCA,EAjCA,aACA,KAgCA,IAhCA,WACA,EACK,CACL,SA6BA,EA7BA,SACA,UA4BA,EA5BA,UACA,eA2BA,EA3BA,eACA,QA0BA,EA1BA,cA0BA,GA1BA,SAMA,kCAEA,CAAK,CACL,YAAuB,KAiBvB,EAjBuB,OAiBvB,IAEW,CACX,ECL0B,IAC1B,CACA,yBACA,2BCzCA,IAAMuH,EAAc,IAAIC,EAAY,CAChCC,QAD+BD,OACf,CACZE,QAAS,CACLC,OAAQ,KACZ,CACJ,CAFuB,GAgC3B,EAhCgC,KAAK,IAM5BC,CAAkC,KAAZ,CAAEhF,OA0BlBgF,GA1B0B,CAAE,CAAZ,EACrBjB,EAAWC,CAAAA,EAAAA,EAAAA,OAyBegB,EAAC,EAzBhBhB,CAAWA,GAiB5B,MAfApG,CAAAA,EAAAA,EAAAA,SAAAA,CAASA,CAAC,SD8Cd,MAEA,EADA,EC9CQ,IAAMqH,EPpBd,UACA,UACA,kCACA,mBACA,2BACA,yBACA,QACC,EACD,MACA,UACA,IACA,kBACA,MACA,CAAQ,SACR,QACA,CACA,EACA,OACA,cAkCA,kBACA,IACA,EADA,OAEA,sBACA,IACA,UACA,mBACA,QACA,MACA,CAAO,IAEP,CACA,EA9CA,IACA,QACA,OACA,IACA,WACA,IACA,QACA,kBACA,QACA,YACA,EAAW,GAEX,QAGA,CAAO,IACP,mBACA,mBACA,KAGA,WACA,CAAO,CACP,kBACA,eACA,CACA,CACA,CACA,OACA,cAAmB,EACnB,EADuB,YACvB,WACA,aAAkB,CAClB,CACA,EAFsB,CO5BVC,QAASxE,OAAOC,YAAY,CAC5BF,IAAK,gBACL0E,aAAc,GAClB,GD0CR,KAMA,EAPA,ECvC2B,aACfR,EACAS,UAAWH,CACb,GD2CV,UACA,GACA,GAzBA,YACA,kDACA,WACA,IAEA,CAAG,EACH,iDACA,WACA,IAEA,CAAG,EACH,WACA,IACA,GACA,CACA,EAUA,GAEA,CAAG,CC7CC,EAAG,CAAElB,EAAU,EAIX,UAACsB,EAAAA,EAAmBA,CAAAA,CAACC,OAAQX,WACxB3E,GAGb","sources":["webpack://_N_E/./icons/IconClose.jsx","webpack://_N_E/./components/feedback/Backdrop/index.jsx","webpack://_N_E/./contexts/GlobalReducer.js","webpack://_N_E/./contexts/GlobalContext.js","webpack://_N_E/./services/LocalStorage.service.js","webpack://_N_E/./node_modules/keen-slider/keen-slider.min.css","webpack://_N_E/./node_modules/next/font/local/target.css","webpack://_N_E/./node_modules/prop-types/index.js","webpack://_N_E/./public/favicon.ico","webpack://_N_E/./styles/globals/global.scss","webpack://_N_E/./components/feedback/Backdrop/Backdrop.module.scss","webpack://_N_E/./contexts/NextAuthProvider.js","webpack://_N_E/./node_modules/clsx/dist/clsx.mjs","webpack://_N_E/./icons/IconSpinner.jsx","webpack://_N_E/./components/feedback/Loader/index.jsx","webpack://_N_E/?9f6e","webpack://_N_E/./components/display/WidgetBar/WidgetBar.module.scss","webpack://_N_E/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://_N_E/./components/display/WidgetBar/index.jsx","webpack://_N_E/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://_N_E/./components/feedback/Loader/Loader.module.scss","webpack://_N_E/./node_modules/@tanstack/query-sync-storage-persister/build/modern/utils.js","webpack://_N_E/./node_modules/@tanstack/query-sync-storage-persister/build/modern/index.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/modern/queryCache.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/modern/mutationCache.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/modern/queryClient.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/modern/hydration.js","webpack://_N_E/./node_modules/@tanstack/query-persist-client-core/build/modern/persist.js","webpack://_N_E/./components/layout/LocalStoragePersistor.jsx"],"sourcesContent":["\nexport function IconClose(props){\n return(\n \n \n \n )\n}","\"use client\"\n\nimport PropTypes from 'prop-types';\nimport Loader from 'components/feedback/Loader';\nimport Style from './Backdrop.module.scss';\nimport clsx from 'clsx';\nimport { useEffect } from 'react';\n\nfunction Backdrop({ \n show, \n headerHeight, \n showLoader, \n className,\n updateOverlay = () => false, \n isImmobile, \n isTakeover,\n shouldBlur = true \n}){\n\n function focusContent({ overflow, filter }){\n document.body.style.overflow = overflow;\n\n if( shouldBlur ){\n document.getElementById(\"wrapper\").style.filter = filter;\n }\n }\n\n\n useEffect(() => {\n focusContent({ \n overflow: show ? \"hidden\" : \"auto\",\n filter: `blur(${show ? 5 : 0}px)`\n })\n\n }, [ show ])\n\n\n return(\n <>\n {show && (\n
updateOverlay(false)}\n >\n {showLoader && }\n
\n )}\n \n )\n}\n\nBackdrop.propTypes = {\n isImmobile: PropTypes.bool,\n show: PropTypes.bool,\n showLoader: PropTypes.bool,\n updateOverlay: PropTypes.func,\n headerHeight: PropTypes.number,\n isTakeover: PropTypes.bool\n};\n\n\nexport default Backdrop;","/**\n* Global State Manager:\n* - only put things in here that are truly global (e.g. Cart & Customer Data, Theme)\n* otherwise make it a local state or pass it in a prop\n*/\n\n// use our initial state as a type of manifest for the Global State\nexport const initialState = {\n user: {\n isLoggedIn: false,\n email: \"\",\n customer_group_id: 5,\n },\n widget: {\n isOpen: true,\n component: null,\n },\n cart: {},\n thirdParty: {}\n}\n\n\nexport const GlobalReducer = (state, action) => {\n switch(action.type){\n\n case \"setCart\":\n return{\n ...state,\n cart: action.data\n }\n\n case \"setWidget\":\n return{\n ...state,\n widget: action.data\n };\n\n \n case \"login\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: true,\n ...action.data\n }\n };\n\n \n\n case \"setEmail\":\n return{\n ...state,\n user: {\n ...state.user,\n ...action.data\n }\n };\n\n\n \n case \"logout\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: false,\n data: {}\n }\n };\n \n\n default:\n throw new Error(\"Doh! You did not choose GlobalReducer method type to perform. Please try agin or go to GlobalContext.js for available types.\")\n }\n};\n","\"use client\"\n\nimport { useReducer, createContext, useEffect } from 'react';\nimport { GlobalReducer, initialState } from './GlobalReducer';\nimport { LocalStorage } from \"@/services/LocalStorage.service\";\n\nexport const GlobalContext = createContext();\n\n// Create our Provider with our Reducer as our state manager\nexport const GlobalContextProvider = ({ children }) => {\n const [state, dispatch] = useReducer(GlobalReducer, initialState);\n\n // Load our cart from local storage\n useEffect(() => {\n const cart = LocalStorage.getStorage(\"GRS_cart\");\n\n if( cart ){\n dispatch({\n type: \"setCart\",\n data: cart\n })\n }\n\n }, [])\n\n return (\n \n {children}\n \n );\n};\n","\nexport const LocalStorage = {\n\n\n /**\n * Full storage setting of storage\n * @param {String} key \n * @param {Object} data \n * @param {String} type - the type of storage operation\n */\n\n setStorage({ key, data, type }){\n try{\n if (type === \"local\") {\n if (window?.localStorage) {\n window.localStorage.setItem(key, JSON.stringify(data));\n }\n\n } else {\n if (window.sessionStorage) {\n window.sessionStorage.setItem(key, JSON.stringify(data));\n }\n }\n\n }catch(err){}\n },\n\n \n\n /**\n * full service get storage\n * @param {String} key \n */\n\n getStorage(key){\n try{\n if ( window?.localStorage ) {\n let stored = window.sessionStorage ? window.sessionStorage.getItem(key) : null;\n\n if ( !stored ) {\n stored = window.localStorage ? window.localStorage.getItem(key) : null;\n }\n \n return stored !== \"undefined\" ? JSON.parse(stored) : null\n }\n\n }catch(err){}\n },\n\n\n\n /**\n * Full service adding to existing storage\n * @param {String} key \n * @param {Object} data \n * \n * This item must have an unique ID or it will cause duplicate entries\n */\n\n addToStorage(key, data, maxItems = 25){\n try{\n let storedItem = LocalStorage.getStorage(key);\n \n if (Array.isArray(storedItem)) {\n \n // check to see if we have this item in the array\n const hasStoredItem = storedItem.some(item => item.id === data.id);\n\n if( hasStoredItem ){\n const newStoredItem = storedItem.filter(item => item.id !== data.id);\n newStoredItem.push(data);\n\n }else{\n storedItem.push(data);\n }\n\n // if the array is longer than the max items allowed, remove the first item\n if (storedItem.length > maxItems) {\n storedItem.shift();\n }\n\n LocalStorage.setStorage({ key, data: storedItem, type: \"local\" });\n\n } else {\n let arr = [];\n\n arr.push(data);\n LocalStorage.setStorage({ key, data: arr, type: \"local\" });\n }\n\n }catch(err){}\n },\n\n\n\n /**\n * Clear out storage object of specified key\n * @param {string} key \n */\n\n remove(key){\n try{\n if( window.localStorage ){\n window.localStorage.removeItem(key)\n window.sessionStorage.removeItem(key)\n }\n \n }catch(err){}\n },\n\n\n\n \n getStoredCart(){\n return{}\n }\n\n}","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin\nmodule.exports = {\"style\":{\"fontFamily\":\"'Inter', 'Inter Fallback'\"},\"className\":\"__className_e25f5c\"};","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default {\"src\":\"/_next/static/media/favicon.47940f9e.ico\",\"height\":16,\"width\":16,\"blurWidth\":0,\"blurHeight\":0};","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin\nmodule.exports = {\"underlay\":\"Backdrop_underlay__yJl3C\",\"overlay-opening-keyframes\":\"Backdrop_overlay-opening-keyframes__qW1NF\",\"takeover\":\"Backdrop_takeover__YIvXU\"};","\"use client\";\n\nimport { SessionProvider } from \"next-auth/react\";\n\nfunction NextAuthProvider({ children }){\n\treturn(\n \n {children}\n \n )\n};\n\nexport default NextAuthProvider;\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t\n \n \n \n \n \n \n )\n}","\"use client\"\n\nimport Style from './Loader.module.scss';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useEffect, useState } from 'react';\nimport { IconSpinner } from '@/icons/IconSpinner';\n\n\nfunction Loader({ \n isLoading = false, \n isSuccessful = false, \n hasError = false, \n isLarge = false, \n children = null,\n isGreenCheck = false,\n isDark = false\n}){\n const [ success, setSuccess ] = useState(false)\n const [ error, setError ] = useState(false)\n const [ loading, setLoading ] = useState(false)\n\n\n useEffect(() => {\n setLoading(isLoading)\n\n if( isSuccessful || hasError ){\n setLoading(false)\n\n setSuccess(isSuccessful)\n setError(hasError)\n\n setTimeout(() => {\n setSuccess(false)\n setError(false)\n }, 2000)\n }\n\n \n return () => {\n setLoading(false)\n setSuccess(false)\n setError(false)\n }\n\n }, [isSuccessful, hasError, isLoading])\n\n\n return(\n <>\n {success || error || loading ?\n
\n {success &&
}\n {error &&
}\n\n {loading && (\n \n )}\n
\n :\n children\n }\n \n )\n}\n\n\nLoader.propTypes = {\n isLoading: PropTypes.bool,\n isSuccessful: PropTypes.bool,\n hasError: PropTypes.bool,\n isLarge: PropTypes.bool\n}\n\nexport default Loader;","import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/display/WidgetBar/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/layout/LocalStoragePersistor.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"GlobalContextProvider\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/contexts/GlobalContext.js\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/contexts/NextAuthProvider.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/keen-slider/keen-slider.min.css\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/dist/client/script.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/font/local/target.css?{\\\"path\\\":\\\"app/layout.js\\\",\\\"import\\\":\\\"\\\",\\\"arguments\\\":[{\\\"src\\\":\\\"../styles/fonts/Inter-VariableFont_slnt,wght.ttf\\\",\\\"display\\\":\\\"swap\\\"}],\\\"variableName\\\":\\\"Inter\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/public/favicon.ico\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/styles/globals/global.scss\");\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"heading\":\"WidgetBar_heading__C_G2S\",\"block\":\"WidgetBar_block__UgAQx\",\"show\":\"WidgetBar_show__Pj_o7\",\"header\":\"WidgetBar_header__HPV4F\",\"closeBtn\":\"WidgetBar_closeBtn__AyjjF\",\"secondary\":\"WidgetBar_secondary__Mgc4v\",\"body\":\"WidgetBar_body__6o4u4\"};","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"use client\"\n\nimport Backdrop from \"@/components/feedback/Backdrop\";\nimport Style from \"./WidgetBar.module.scss\";\nimport { useContext, useEffect, useState } from \"react\";\nimport clsx from \"clsx\";\nimport { IconClose } from \"@/icons/IconClose\";\nimport { GlobalContext } from \"@/contexts/GlobalContext\";\nimport { usePathname } from \"next/navigation\";\n\n\nfunction WidgetBar(){\n const pathName = usePathname()\n const [ show, setShown ] = useState(null)\n const [ global, dispatch ] = useContext(GlobalContext)\n\n\n useEffect(() => {\n setShown(global.widget.isOpen)\n\n }, [ global.widget.isOpen ])\n\n\n function closeWidget(){\n dispatch({\n type: \"setWidget\",\n data: {\n isOpen: false,\n component: null\n }\n })\n }\n\n\n useEffect(() => {\n closeWidget()\n\n }, [ pathName])\n\n return(\n <>\n \n\n \n \n \n )\n}\n\nexport default WidgetBar;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"Loader_block___ga_t\",\"spinner\":\"Loader_spinner__2v_m1\",\"spin\":\"Loader_spin__pmSzK\",\"largeSpinner\":\"Loader_largeSpinner__Zn3BA\",\"greenCheckmark\":\"Loader_greenCheckmark__dwuJr\",\"draw\":\"Loader_draw__29Tbu\",\"checkmark\":\"Loader_checkmark__YncRO\",\"error\":\"Loader_error__wr2_0\",\"shake\":\"Loader_shake__4Llqb\"};","// src/utils.ts\nfunction noop() {\n}\nexport {\n noop\n};\n//# sourceMappingURL=utils.js.map","// src/index.ts\nimport { noop } from \"./utils.js\";\nfunction createSyncStoragePersister({\n storage,\n key = `REACT_QUERY_OFFLINE_CACHE`,\n throttleTime = 1e3,\n serialize = JSON.stringify,\n deserialize = JSON.parse,\n retry\n}) {\n if (storage) {\n const trySave = (persistedClient) => {\n try {\n storage.setItem(key, serialize(persistedClient));\n return;\n } catch (error) {\n return error;\n }\n };\n return {\n persistClient: throttle((persistedClient) => {\n let client = persistedClient;\n let error = trySave(client);\n let errorCount = 0;\n while (error && client) {\n errorCount++;\n client = retry?.({\n persistedClient: client,\n error,\n errorCount\n });\n if (client) {\n error = trySave(client);\n }\n }\n }, throttleTime),\n restoreClient: () => {\n const cacheString = storage.getItem(key);\n if (!cacheString) {\n return;\n }\n return deserialize(cacheString);\n },\n removeClient: () => {\n storage.removeItem(key);\n }\n };\n }\n return {\n persistClient: noop,\n restoreClient: () => void 0,\n removeClient: noop\n };\n}\nfunction throttle(func, wait = 100) {\n let timer = null;\n let params;\n return function(...args) {\n params = args;\n if (timer === null) {\n timer = setTimeout(() => {\n func(...params);\n timer = null;\n }, wait);\n }\n };\n}\nexport {\n createSyncStoragePersister\n};\n//# sourceMappingURL=index.js.map","// src/queryCache.ts\nimport { hashQueryKeyByOptions, matchQuery } from \"./utils.js\";\nimport { Query } from \"./query.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar QueryCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#queries = /* @__PURE__ */ new Map();\n }\n #queries;\n build(client, options, state) {\n const queryKey = options.queryKey;\n const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);\n let query = this.get(queryHash);\n if (!query) {\n query = new Query({\n cache: this,\n queryKey,\n queryHash,\n options: client.defaultQueryOptions(options),\n state,\n defaultOptions: client.getQueryDefaults(queryKey)\n });\n this.add(query);\n }\n return query;\n }\n add(query) {\n if (!this.#queries.has(query.queryHash)) {\n this.#queries.set(query.queryHash, query);\n this.notify({\n type: \"added\",\n query\n });\n }\n }\n remove(query) {\n const queryInMap = this.#queries.get(query.queryHash);\n if (queryInMap) {\n query.destroy();\n if (queryInMap === query) {\n this.#queries.delete(query.queryHash);\n }\n this.notify({ type: \"removed\", query });\n }\n }\n clear() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n this.remove(query);\n });\n });\n }\n get(queryHash) {\n return this.#queries.get(queryHash);\n }\n getAll() {\n return [...this.#queries.values()];\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (query) => matchQuery(defaultedFilters, query)\n );\n }\n findAll(filters = {}) {\n const queries = this.getAll();\n return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n onFocus() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onFocus();\n });\n });\n }\n onOnline() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onOnline();\n });\n });\n }\n};\nexport {\n QueryCache\n};\n//# sourceMappingURL=queryCache.js.map","// src/mutationCache.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Mutation } from \"./mutation.js\";\nimport { matchMutation, noop } from \"./utils.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar MutationCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#mutations = /* @__PURE__ */ new Map();\n this.#mutationId = Date.now();\n }\n #mutations;\n #mutationId;\n build(client, options, state) {\n const mutation = new Mutation({\n mutationCache: this,\n mutationId: ++this.#mutationId,\n options: client.defaultMutationOptions(options),\n state\n });\n this.add(mutation);\n return mutation;\n }\n add(mutation) {\n const scope = scopeFor(mutation);\n const mutations = this.#mutations.get(scope) ?? [];\n mutations.push(mutation);\n this.#mutations.set(scope, mutations);\n this.notify({ type: \"added\", mutation });\n }\n remove(mutation) {\n const scope = scopeFor(mutation);\n if (this.#mutations.has(scope)) {\n const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);\n if (mutations) {\n if (mutations.length === 0) {\n this.#mutations.delete(scope);\n } else {\n this.#mutations.set(scope, mutations);\n }\n }\n }\n this.notify({ type: \"removed\", mutation });\n }\n canRun(mutation) {\n const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === \"pending\");\n return !firstPendingMutation || firstPendingMutation === mutation;\n }\n runNext(mutation) {\n const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);\n return foundMutation?.continue() ?? Promise.resolve();\n }\n clear() {\n notifyManager.batch(() => {\n this.getAll().forEach((mutation) => {\n this.remove(mutation);\n });\n });\n }\n getAll() {\n return [...this.#mutations.values()].flat();\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (mutation) => matchMutation(defaultedFilters, mutation)\n );\n }\n findAll(filters = {}) {\n return this.getAll().filter((mutation) => matchMutation(filters, mutation));\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n resumePausedMutations() {\n const pausedMutations = this.getAll().filter((x) => x.state.isPaused);\n return notifyManager.batch(\n () => Promise.all(\n pausedMutations.map((mutation) => mutation.continue().catch(noop))\n )\n );\n }\n};\nfunction scopeFor(mutation) {\n return mutation.options.scope?.id ?? String(mutation.mutationId);\n}\nexport {\n MutationCache\n};\n//# sourceMappingURL=mutationCache.js.map","// src/infiniteQueryBehavior.ts\nimport { addToEnd, addToStart, ensureQueryFn } from \"./utils.js\";\nfunction infiniteQueryBehavior(pages) {\n return {\n onFetch: (context, query) => {\n const options = context.options;\n const direction = context.fetchOptions?.meta?.fetchMore?.direction;\n const oldPages = context.state.data?.pages || [];\n const oldPageParams = context.state.data?.pageParams || [];\n let result = { pages: [], pageParams: [] };\n let currentPage = 0;\n const fetchFn = async () => {\n let cancelled = false;\n const addSignalProperty = (object) => {\n Object.defineProperty(object, \"signal\", {\n enumerable: true,\n get: () => {\n if (context.signal.aborted) {\n cancelled = true;\n } else {\n context.signal.addEventListener(\"abort\", () => {\n cancelled = true;\n });\n }\n return context.signal;\n }\n });\n };\n const queryFn = ensureQueryFn(context.options, context.fetchOptions);\n const fetchPage = async (data, param, previous) => {\n if (cancelled) {\n return Promise.reject();\n }\n if (param == null && data.pages.length) {\n return Promise.resolve(data);\n }\n const queryFnContext = {\n queryKey: context.queryKey,\n pageParam: param,\n direction: previous ? \"backward\" : \"forward\",\n meta: context.options.meta\n };\n addSignalProperty(queryFnContext);\n const page = await queryFn(\n queryFnContext\n );\n const { maxPages } = context.options;\n const addTo = previous ? addToStart : addToEnd;\n return {\n pages: addTo(data.pages, page, maxPages),\n pageParams: addTo(data.pageParams, param, maxPages)\n };\n };\n if (direction && oldPages.length) {\n const previous = direction === \"backward\";\n const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;\n const oldData = {\n pages: oldPages,\n pageParams: oldPageParams\n };\n const param = pageParamFn(options, oldData);\n result = await fetchPage(oldData, param, previous);\n } else {\n const remainingPages = pages ?? oldPages.length;\n do {\n const param = currentPage === 0 ? oldPageParams[0] ?? options.initialPageParam : getNextPageParam(options, result);\n if (currentPage > 0 && param == null) {\n break;\n }\n result = await fetchPage(result, param);\n currentPage++;\n } while (currentPage < remainingPages);\n }\n return result;\n };\n if (context.options.persister) {\n context.fetchFn = () => {\n return context.options.persister?.(\n fetchFn,\n {\n queryKey: context.queryKey,\n meta: context.options.meta,\n signal: context.signal\n },\n query\n );\n };\n } else {\n context.fetchFn = fetchFn;\n }\n }\n };\n}\nfunction getNextPageParam(options, { pages, pageParams }) {\n const lastIndex = pages.length - 1;\n return pages.length > 0 ? options.getNextPageParam(\n pages[lastIndex],\n pages,\n pageParams[lastIndex],\n pageParams\n ) : void 0;\n}\nfunction getPreviousPageParam(options, { pages, pageParams }) {\n return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;\n}\nfunction hasNextPage(options, data) {\n if (!data)\n return false;\n return getNextPageParam(options, data) != null;\n}\nfunction hasPreviousPage(options, data) {\n if (!data || !options.getPreviousPageParam)\n return false;\n return getPreviousPageParam(options, data) != null;\n}\nexport {\n hasNextPage,\n hasPreviousPage,\n infiniteQueryBehavior\n};\n//# sourceMappingURL=infiniteQueryBehavior.js.map","// src/queryClient.ts\nimport {\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n noop,\n partialMatchKey,\n resolveStaleTime,\n skipToken\n} from \"./utils.js\";\nimport { QueryCache } from \"./queryCache.js\";\nimport { MutationCache } from \"./mutationCache.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { infiniteQueryBehavior } from \"./infiniteQueryBehavior.js\";\nvar QueryClient = class {\n #queryCache;\n #mutationCache;\n #defaultOptions;\n #queryDefaults;\n #mutationDefaults;\n #mountCount;\n #unsubscribeFocus;\n #unsubscribeOnline;\n constructor(config = {}) {\n this.#queryCache = config.queryCache || new QueryCache();\n this.#mutationCache = config.mutationCache || new MutationCache();\n this.#defaultOptions = config.defaultOptions || {};\n this.#queryDefaults = /* @__PURE__ */ new Map();\n this.#mutationDefaults = /* @__PURE__ */ new Map();\n this.#mountCount = 0;\n }\n mount() {\n this.#mountCount++;\n if (this.#mountCount !== 1)\n return;\n this.#unsubscribeFocus = focusManager.subscribe(async (focused) => {\n if (focused) {\n await this.resumePausedMutations();\n this.#queryCache.onFocus();\n }\n });\n this.#unsubscribeOnline = onlineManager.subscribe(async (online) => {\n if (online) {\n await this.resumePausedMutations();\n this.#queryCache.onOnline();\n }\n });\n }\n unmount() {\n this.#mountCount--;\n if (this.#mountCount !== 0)\n return;\n this.#unsubscribeFocus?.();\n this.#unsubscribeFocus = void 0;\n this.#unsubscribeOnline?.();\n this.#unsubscribeOnline = void 0;\n }\n isFetching(filters) {\n return this.#queryCache.findAll({ ...filters, fetchStatus: \"fetching\" }).length;\n }\n isMutating(filters) {\n return this.#mutationCache.findAll({ ...filters, status: \"pending\" }).length;\n }\n getQueryData(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(options.queryHash)?.state.data;\n }\n ensureQueryData(options) {\n const cachedData = this.getQueryData(options.queryKey);\n if (cachedData === void 0)\n return this.fetchQuery(options);\n else {\n const defaultedOptions = this.defaultQueryOptions(options);\n const query = this.#queryCache.build(this, defaultedOptions);\n if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {\n void this.prefetchQuery(defaultedOptions);\n }\n return Promise.resolve(cachedData);\n }\n }\n getQueriesData(filters) {\n return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {\n const data = state.data;\n return [queryKey, data];\n });\n }\n setQueryData(queryKey, updater, options) {\n const defaultedOptions = this.defaultQueryOptions({ queryKey });\n const query = this.#queryCache.get(\n defaultedOptions.queryHash\n );\n const prevData = query?.state.data;\n const data = functionalUpdate(updater, prevData);\n if (data === void 0) {\n return void 0;\n }\n return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });\n }\n setQueriesData(filters, updater, options) {\n return notifyManager.batch(\n () => this.#queryCache.findAll(filters).map(({ queryKey }) => [\n queryKey,\n this.setQueryData(queryKey, updater, options)\n ])\n );\n }\n getQueryState(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(options.queryHash)?.state;\n }\n removeQueries(filters) {\n const queryCache = this.#queryCache;\n notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n queryCache.remove(query);\n });\n });\n }\n resetQueries(filters, options) {\n const queryCache = this.#queryCache;\n const refetchFilters = {\n type: \"active\",\n ...filters\n };\n return notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n query.reset();\n });\n return this.refetchQueries(refetchFilters, options);\n });\n }\n cancelQueries(filters = {}, cancelOptions = {}) {\n const defaultedCancelOptions = { revert: true, ...cancelOptions };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))\n );\n return Promise.all(promises).then(noop).catch(noop);\n }\n invalidateQueries(filters = {}, options = {}) {\n return notifyManager.batch(() => {\n this.#queryCache.findAll(filters).forEach((query) => {\n query.invalidate();\n });\n if (filters.refetchType === \"none\") {\n return Promise.resolve();\n }\n const refetchFilters = {\n ...filters,\n type: filters.refetchType ?? filters.type ?? \"active\"\n };\n return this.refetchQueries(refetchFilters, options);\n });\n }\n refetchQueries(filters = {}, options) {\n const fetchOptions = {\n ...options,\n cancelRefetch: options?.cancelRefetch ?? true\n };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {\n let promise = query.fetch(void 0, fetchOptions);\n if (!fetchOptions.throwOnError) {\n promise = promise.catch(noop);\n }\n return query.state.fetchStatus === \"paused\" ? Promise.resolve() : promise;\n })\n );\n return Promise.all(promises).then(noop);\n }\n fetchQuery(options) {\n const defaultedOptions = this.defaultQueryOptions(options);\n if (defaultedOptions.retry === void 0) {\n defaultedOptions.retry = false;\n }\n const query = this.#queryCache.build(this, defaultedOptions);\n return query.isStaleByTime(\n resolveStaleTime(defaultedOptions.staleTime, query)\n ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);\n }\n prefetchQuery(options) {\n return this.fetchQuery(options).then(noop).catch(noop);\n }\n fetchInfiniteQuery(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.fetchQuery(options);\n }\n prefetchInfiniteQuery(options) {\n return this.fetchInfiniteQuery(options).then(noop).catch(noop);\n }\n ensureInfiniteQueryData(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.ensureQueryData(options);\n }\n resumePausedMutations() {\n if (onlineManager.isOnline()) {\n return this.#mutationCache.resumePausedMutations();\n }\n return Promise.resolve();\n }\n getQueryCache() {\n return this.#queryCache;\n }\n getMutationCache() {\n return this.#mutationCache;\n }\n getDefaultOptions() {\n return this.#defaultOptions;\n }\n setDefaultOptions(options) {\n this.#defaultOptions = options;\n }\n setQueryDefaults(queryKey, options) {\n this.#queryDefaults.set(hashKey(queryKey), {\n queryKey,\n defaultOptions: options\n });\n }\n getQueryDefaults(queryKey) {\n const defaults = [...this.#queryDefaults.values()];\n let result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(queryKey, queryDefault.queryKey)) {\n result = { ...result, ...queryDefault.defaultOptions };\n }\n });\n return result;\n }\n setMutationDefaults(mutationKey, options) {\n this.#mutationDefaults.set(hashKey(mutationKey), {\n mutationKey,\n defaultOptions: options\n });\n }\n getMutationDefaults(mutationKey) {\n const defaults = [...this.#mutationDefaults.values()];\n let result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {\n result = { ...result, ...queryDefault.defaultOptions };\n }\n });\n return result;\n }\n defaultQueryOptions(options) {\n if (options._defaulted) {\n return options;\n }\n const defaultedOptions = {\n ...this.#defaultOptions.queries,\n ...this.getQueryDefaults(options.queryKey),\n ...options,\n _defaulted: true\n };\n if (!defaultedOptions.queryHash) {\n defaultedOptions.queryHash = hashQueryKeyByOptions(\n defaultedOptions.queryKey,\n defaultedOptions\n );\n }\n if (defaultedOptions.refetchOnReconnect === void 0) {\n defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== \"always\";\n }\n if (defaultedOptions.throwOnError === void 0) {\n defaultedOptions.throwOnError = !!defaultedOptions.suspense;\n }\n if (!defaultedOptions.networkMode && defaultedOptions.persister) {\n defaultedOptions.networkMode = \"offlineFirst\";\n }\n if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === skipToken) {\n defaultedOptions.enabled = false;\n }\n return defaultedOptions;\n }\n defaultMutationOptions(options) {\n if (options?._defaulted) {\n return options;\n }\n return {\n ...this.#defaultOptions.mutations,\n ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),\n ...options,\n _defaulted: true\n };\n }\n clear() {\n this.#queryCache.clear();\n this.#mutationCache.clear();\n }\n};\nexport {\n QueryClient\n};\n//# sourceMappingURL=queryClient.js.map","// src/hydration.ts\nfunction defaultTransformerFn(data) {\n return data;\n}\nfunction dehydrateMutation(mutation) {\n return {\n mutationKey: mutation.options.mutationKey,\n state: mutation.state,\n ...mutation.options.scope && { scope: mutation.options.scope },\n ...mutation.meta && { meta: mutation.meta }\n };\n}\nfunction dehydrateQuery(query, serializeData) {\n return {\n state: {\n ...query.state,\n ...query.state.data !== void 0 && {\n data: serializeData(query.state.data)\n }\n },\n queryKey: query.queryKey,\n queryHash: query.queryHash,\n ...query.state.status === \"pending\" && {\n promise: query.promise?.then(serializeData).catch((error) => {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\n `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`\n );\n }\n return Promise.reject(new Error(\"redacted\"));\n })\n },\n ...query.meta && { meta: query.meta }\n };\n}\nfunction defaultShouldDehydrateMutation(mutation) {\n return mutation.state.isPaused;\n}\nfunction defaultShouldDehydrateQuery(query) {\n return query.state.status === \"success\";\n}\nfunction dehydrate(client, options = {}) {\n const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;\n const mutations = client.getMutationCache().getAll().flatMap(\n (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []\n );\n const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;\n const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;\n const queries = client.getQueryCache().getAll().flatMap(\n (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []\n );\n return { mutations, queries };\n}\nfunction hydrate(client, dehydratedState, options) {\n if (typeof dehydratedState !== \"object\" || dehydratedState === null) {\n return;\n }\n const mutationCache = client.getMutationCache();\n const queryCache = client.getQueryCache();\n const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;\n const mutations = dehydratedState.mutations || [];\n const queries = dehydratedState.queries || [];\n mutations.forEach(({ state, ...mutationOptions }) => {\n mutationCache.build(\n client,\n {\n ...client.getDefaultOptions().hydrate?.mutations,\n ...options?.defaultOptions?.mutations,\n ...mutationOptions\n },\n state\n );\n });\n queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {\n let query = queryCache.get(queryHash);\n const data = state.data === void 0 ? state.data : deserializeData(state.data);\n if (query) {\n if (query.state.dataUpdatedAt < state.dataUpdatedAt) {\n const { fetchStatus: _ignored, ...serializedState } = state;\n query.setState({\n ...serializedState,\n data\n });\n }\n } else {\n query = queryCache.build(\n client,\n {\n ...client.getDefaultOptions().hydrate?.queries,\n ...options?.defaultOptions?.queries,\n queryKey,\n queryHash,\n meta\n },\n // Reset fetch status to idle to avoid\n // query being stuck in fetching state upon hydration\n {\n ...state,\n data,\n fetchStatus: \"idle\"\n }\n );\n }\n if (promise) {\n const initialPromise = Promise.resolve(promise).then(deserializeData);\n void query.fetch(void 0, { initialPromise });\n }\n });\n}\nexport {\n defaultShouldDehydrateMutation,\n defaultShouldDehydrateQuery,\n dehydrate,\n hydrate\n};\n//# sourceMappingURL=hydration.js.map","// src/persist.ts\nimport { dehydrate, hydrate } from \"@tanstack/query-core\";\nvar cacheEventTypes = [\"added\", \"removed\", \"updated\"];\nfunction isCacheEventType(eventType) {\n return cacheEventTypes.includes(eventType);\n}\nasync function persistQueryClientRestore({\n queryClient,\n persister,\n maxAge = 1e3 * 60 * 60 * 24,\n buster = \"\",\n hydrateOptions\n}) {\n try {\n const persistedClient = await persister.restoreClient();\n if (persistedClient) {\n if (persistedClient.timestamp) {\n const expired = Date.now() - persistedClient.timestamp > maxAge;\n const busted = persistedClient.buster !== buster;\n if (expired || busted) {\n persister.removeClient();\n } else {\n hydrate(queryClient, persistedClient.clientState, hydrateOptions);\n }\n } else {\n persister.removeClient();\n }\n }\n } catch (err) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(err);\n console.warn(\n \"Encountered an error attempting to restore client cache from persisted location. As a precaution, the persisted cache will be discarded.\"\n );\n }\n persister.removeClient();\n }\n}\nasync function persistQueryClientSave({\n queryClient,\n persister,\n buster = \"\",\n dehydrateOptions\n}) {\n const persistClient = {\n buster,\n timestamp: Date.now(),\n clientState: dehydrate(queryClient, dehydrateOptions)\n };\n await persister.persistClient(persistClient);\n}\nfunction persistQueryClientSubscribe(props) {\n const unsubscribeQueryCache = props.queryClient.getQueryCache().subscribe((event) => {\n if (isCacheEventType(event.type)) {\n persistQueryClientSave(props);\n }\n });\n const unsubscribeMutationCache = props.queryClient.getMutationCache().subscribe((event) => {\n if (isCacheEventType(event.type)) {\n persistQueryClientSave(props);\n }\n });\n return () => {\n unsubscribeQueryCache();\n unsubscribeMutationCache();\n };\n}\nfunction persistQueryClient(props) {\n let hasUnsubscribed = false;\n let persistQueryClientUnsubscribe;\n const unsubscribe = () => {\n hasUnsubscribed = true;\n persistQueryClientUnsubscribe?.();\n };\n const restorePromise = persistQueryClientRestore(props).then(() => {\n if (!hasUnsubscribed) {\n persistQueryClientUnsubscribe = persistQueryClientSubscribe(props);\n }\n });\n return [unsubscribe, restorePromise];\n}\nexport {\n persistQueryClient,\n persistQueryClientRestore,\n persistQueryClientSave,\n persistQueryClientSubscribe\n};\n//# sourceMappingURL=persist.js.map","\"use client\"\n\nimport { createSyncStoragePersister } from \"@tanstack/query-sync-storage-persister\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport { persistQueryClient } from \"@tanstack/react-query-persist-client\";\nimport { usePathname } from \"next/navigation\";\nimport { useEffect } from \"react\";\n\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: { \n gcTime: 1000 * 60 * 60 * 24\n },\n },\n})\n\n\nfunction LocalStoragePersister({ children }){\n const pathName = usePathname()\n\n useEffect(() => {\n const localStoragePersister = createSyncStoragePersister({\n storage: window.localStorage,\n key: \"GRS_Persisted\",\n throttleTime: 1000\n })\n\n persistQueryClient({\n queryClient,\n persister: localStoragePersister,\n })\n\n }, [ pathName ])\n\n\n return(\n \n {children}\n \n )\n}\n\n\nexport default LocalStoragePersister;"],"names":["IconClose","props","svg","viewBox","xmlSpace","aria-label","path","d","Backdrop","show","headerHeight","showLoader","className","updateOverlay","isImmobile","isTakeover","shouldBlur","useEffect","focusContent","overflow","filter","document","body","style","getElementById","div","role","clsx","Style","top","onClick","Loader","isLoading","isLarge","propTypes","PropTypes","initialState","user","isLoggedIn","email","customer_group_id","widget","isOpen","component","cart","thirdParty","state","action","type","data","GlobalContext","createContext","GlobalContextProvider","children","dispatch","useReducer","GlobalReducer","LocalStorage","getStorage","Provider","value","setStorage","key","window","localStorage","setItem","JSON","stringify","sessionStorage","err","stored","getItem","parse","addToStorage","maxItems","storedItem","Array","isArray","some","item","id","newStoredItem","push","length","shift","arr","remove","removeItem","getStoredCart","NextAuthProvider","SessionProvider","IconSpinner","fill","width","height","isDark","linearGradient","x1","y1","x2","y2","stop","offset","stopColor","isSuccessful","hasError","isGreenCheck","success","setSuccess","useState","error","setError","loading","setLoading","setTimeout","WidgetBar","pathName","usePathname","setShown","global","useContext","closeWidget","aside","header","secondaryControl","h6","heading","button","queryClient","QueryClient","defaultOptions","queries","gcTime","LocalStoragePersister","localStoragePersister","storage","throttleTime","persister","QueryClientProvider","client"],"sourceRoot":""}