@techstuff-dev/foundation-api-utils 1.53.1 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/dist/cjs/chunks/shared-YoGh9ksj.js +0 -14
  3. package/dist/cjs/chunks/shared-YoGh9ksj.js.map +0 -1
  4. package/dist/cjs/chunks/slice-4qoZ1wSU.js +0 -6270
  5. package/dist/cjs/chunks/slice-4qoZ1wSU.js.map +0 -1
  6. package/dist/cjs/chunks/slice-CkWobkWw.js +0 -125
  7. package/dist/cjs/chunks/slice-CkWobkWw.js.map +0 -1
  8. package/dist/cjs/chunks/useAuth-DKhvUX_r.js +0 -13
  9. package/dist/cjs/chunks/useAuth-DKhvUX_r.js.map +0 -1
  10. package/dist/cjs/hooks/index.native.js +0 -19
  11. package/dist/cjs/hooks/index.native.js.map +0 -1
  12. package/dist/cjs/hooks/index.web.js +0 -19
  13. package/dist/cjs/hooks/index.web.js.map +0 -1
  14. package/dist/cjs/index.js +0 -105
  15. package/dist/cjs/index.js.map +0 -1
  16. package/dist/cjs/store/index.native.js +0 -80
  17. package/dist/cjs/store/index.native.js.map +0 -1
  18. package/dist/cjs/store/index.web.js +0 -194
  19. package/dist/cjs/store/index.web.js.map +0 -1
  20. package/dist/esm/chunks/shared-DYJftbDt.js +0 -12
  21. package/dist/esm/chunks/shared-DYJftbDt.js.map +0 -1
  22. package/dist/esm/chunks/slice-ChJ8ZvmP.js +0 -107
  23. package/dist/esm/chunks/slice-ChJ8ZvmP.js.map +0 -1
  24. package/dist/esm/chunks/slice-DJ0YEPf7.js +0 -6196
  25. package/dist/esm/chunks/slice-DJ0YEPf7.js.map +0 -1
  26. package/dist/esm/chunks/useAuth-8d6DlERn.js +0 -11
  27. package/dist/esm/chunks/useAuth-8d6DlERn.js.map +0 -1
  28. package/dist/esm/hooks/index.native.js +0 -14
  29. package/dist/esm/hooks/index.native.js.map +0 -1
  30. package/dist/esm/hooks/index.web.js +0 -14
  31. package/dist/esm/hooks/index.web.js.map +0 -1
  32. package/dist/esm/index.js +0 -9
  33. package/dist/esm/index.js.map +0 -1
  34. package/dist/esm/store/index.native.js +0 -77
  35. package/dist/esm/store/index.native.js.map +0 -1
  36. package/dist/esm/store/index.web.js +0 -191
  37. package/dist/esm/store/index.web.js.map +0 -1
  38. package/dist/types/hooks/index.d.ts +0 -12
  39. package/dist/types/index-B9lcBPLO.d.ts +0 -1299
  40. package/dist/types/index.d.ts +0 -2521
  41. package/dist/types/store/index.d.ts +0 -3
@@ -1,11 +0,0 @@
1
- import { useMemo } from 'react';
2
- import { useSelector } from 'react-redux';
3
- import { i as isAuthenticated } from './slice-ChJ8ZvmP.js';
4
-
5
- const useLoggedIn = () => {
6
- const isLoggedIn = useSelector(isAuthenticated);
7
- return useMemo(() => isLoggedIn, [isLoggedIn]);
8
- };
9
-
10
- export { useLoggedIn as u };
11
- //# sourceMappingURL=useAuth-8d6DlERn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuth-8d6DlERn.js","sources":["../../../lib/hooks/useAuth.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIO,MAAM,WAAW,GAAG,MAAK;AAC9B,IAAA,MAAM,UAAU,GAAG,WAAW,CAAC,eAAe,CAAC;IAE/C,OAAO,OAAO,CAAC,MAAM,UAAU,EAAE,CAAC,UAAU,CAAC,CAAC;AAChD;;;;"}
@@ -1,14 +0,0 @@
1
- import { useDispatch, useSelector, useStore } from 'react-redux';
2
- export { u as useLoggedIn } from '../chunks/useAuth-8d6DlERn.js';
3
- import 'react';
4
- import '../chunks/slice-ChJ8ZvmP.js';
5
- import '@reduxjs/toolkit';
6
-
7
- // This file serves as a central hub for re-exporting pre-typed Redux hooks.
8
- // Use throughout your app instead of plain `useDispatch` and `useSelector`
9
- const useAppDispatch = useDispatch.withTypes();
10
- const useAppSelector = useSelector.withTypes();
11
- const useAppStore = useStore.withTypes();
12
-
13
- export { useAppDispatch, useAppSelector, useAppStore };
14
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.js","sources":["../../../lib/hooks/index.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;AAKA;MACa,cAAc,GAAG,WAAW,CAAC,SAAS;MACtC,cAAc,GAAG,WAAW,CAAC,SAAS;MACtC,WAAW,GAAG,QAAQ,CAAC,SAAS;;;;"}
@@ -1,14 +0,0 @@
1
- import { useDispatch, useSelector, useStore } from 'react-redux';
2
- export { u as useLoggedIn } from '../chunks/useAuth-8d6DlERn.js';
3
- import 'react';
4
- import '../chunks/slice-ChJ8ZvmP.js';
5
- import '@reduxjs/toolkit';
6
-
7
- // This file serves as a central hub for re-exporting pre-typed Redux hooks.
8
- // Use throughout your app instead of plain `useDispatch` and `useSelector`
9
- const useAppDispatch = useDispatch.withTypes();
10
- const useAppSelector = useSelector.withTypes();
11
- const useAppStore = useStore.withTypes();
12
-
13
- export { useAppDispatch, useAppSelector, useAppStore };
14
- //# sourceMappingURL=index.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.web.js","sources":["../../../lib/hooks/index.web.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;AAKA;MACa,cAAc,GAAG,WAAW,CAAC,SAAS;MACtC,cAAc,GAAG,WAAW,CAAC,SAAS;MACtC,WAAW,GAAG,QAAQ,CAAC,SAAS;;;;"}
package/dist/esm/index.js DELETED
@@ -1,9 +0,0 @@
1
- export { x as addToCart, af as applyCoupon, ag as applyTax, a as authApi, r as cartSlice, c as contentApi, ai as createUnwrappingBaseQuery, A as emptyCart, $ as formatAuthSession, Z as formatChallengeDays, Y as formatChallenges, a2 as formatConfig, Q as formatFaqs, a0 as formatFedaratedSession, U as formatGuests, a8 as formatLongform, a9 as formatMediaItem, R as formatPages, T as formatPress, N as formatPromos, X as formatSchedule, a7 as formatSeasons, _ as formatSecondsToISO8601Duration, a4 as formatSectionItems, a3 as formatSectionPanels, W as formatSections, a6 as formatSeries, S as formatSettings, P as formatShortform, a1 as formatSocialAuthSession, a5 as formatTaxonomies, M as formatUserPayload, V as formatVideos, O as formatWorkout, ac as getPlatform, ab as isReactNative, aa as isWeb, ae as onlyUnique, o as ordersApi, p as paymentApi, z as removeFromCart, w as removePromoCode, t as resetTaxRate, ad as runOnPlatform, H as selectCartCount, K as selectCartItems, L as selectCartItemsIds, E as selectCartNetTotal, I as selectCartStatus, G as selectCartTaxAmount, F as selectCartTaxRate, D as selectCartTotal, C as selectMediaInCart, J as selectPromoCode, v as setPromoCode, s as setTaxRate, ah as toCamelCaseObject, B as toggleCart, y as updateCart, j as useForgottenPasswordMutation, g as useGetUserInfoQuery, h as useLazyGetUserInfoQuery, l as useLazyVerifyUserAttributesQuery, f as useLazyVerifyUserQuery, n as useLazyVerifyUserResendQuery, d as useRegisterMutation, b as useResetPasswordAuthMutation, u as useResetPasswordMutation, i as useUpdateUserInfoMutation, q as useUpdateUserMutation, k as useVerifyUserAttributesQuery, e as useVerifyUserQuery, m as useVerifyUserResendQuery } from './chunks/slice-DJ0YEPf7.js';
2
- export { a as authSlice, g as getUserSession, i as isAuthenticated, e as isVerifying, l as logout, r as resetCreating, b as selectAccessToken, d as selectCurrentUser, h as selectCurrentUserRefreshToken, f as selectCurrentUserSub, c as selectRefreshToken, m as selectSubscription, n as selectSubscriptionPrice, k as selectUserSubscriptionStatus, j as selectUserTokens, s as setCredentials, u as updateSubscription } from './chunks/slice-ChJ8ZvmP.js';
3
- export { u as useLoggedIn } from './chunks/useAuth-8d6DlERn.js';
4
- import 'aws-amplify';
5
- import '@reduxjs/toolkit';
6
- import 'react-redux';
7
- import 'react';
8
- import 'jwt-decode';
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,77 +0,0 @@
1
- import { configureStore } from '@reduxjs/toolkit';
2
- import storage from '@react-native-async-storage/async-storage';
3
- import { p as paymentApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-DJ0YEPf7.js';
4
- import { r as rootReducer } from '../chunks/shared-DYJftbDt.js';
5
- import 'aws-amplify';
6
- import '../chunks/slice-ChJ8ZvmP.js';
7
- import 'react-redux';
8
- import 'react';
9
- import 'jwt-decode';
10
-
11
- // import { createPersistStorage } from './storage';
12
- // Infer the `RootState` type from the root reducer
13
- // const rootReducer = combineSlices(
14
- // cartSlice,
15
- // authSlice,
16
- // authApi,
17
- // contentApi,
18
- // paymentApi,
19
- // ordersApi,
20
- // );
21
- // export type RootState = ReturnType<typeof rootReducer>;
22
- // eg. ['auth', 'creating'], or an empty array if you don't want to whitelist any.
23
- // const storageWhiteList: string[] = [];
24
- const storageBlackList = [];
25
- // `makeStore` encapsulates the store configuration to allow
26
- // creating unique store instances, which is particularly important for
27
- // server-side rendering (SSR) scenarios. In SSR, separate store instances
28
- // are needed for each request to prevent cross-request state pollution.
29
- const makeStore = () => {
30
- const customEnhancers = [];
31
- // eslint-disable-next-line @typescript-eslint/no-require-imports
32
- const reduxPersist = require('redux-persist');
33
- // eslint-disable-next-line @typescript-eslint/no-require-imports
34
- const persistReducer = require('redux-persist').persistReducer;
35
- const FLUSH = reduxPersist.FLUSH;
36
- const REHYDRATE = reduxPersist.REHYDRATE;
37
- const PAUSE = reduxPersist.PAUSE;
38
- const PERSIST = reduxPersist.PERSIST;
39
- const PURGE = reduxPersist.PURGE;
40
- const REGISTER = reduxPersist.REGISTER;
41
- storageBlackList.push(paymentApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
42
- const persistConfig = {
43
- key: 'root',
44
- storage,
45
- // whitelist: storageWhiteList,
46
- blacklist: storageBlackList,
47
- };
48
- const persistedReducer = persistReducer(persistConfig, rootReducer);
49
- const finalReducer = persistedReducer;
50
- const middlewares = [
51
- authApi.middleware,
52
- contentApi.middleware,
53
- paymentApi.middleware,
54
- ordersApi.middleware,
55
- ];
56
- return configureStore({
57
- reducer: finalReducer,
58
- // Adding the api middleware enables caching, invalidation, polling,
59
- // and other useful features of `rtk-query`.
60
- middleware: (getDefaultMiddleware) => {
61
- return getDefaultMiddleware({
62
- immutableCheck: { warnAfter: 256 },
63
- serializableCheck: {
64
- warnAfter: 256,
65
- ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
66
- },
67
- }).concat(middlewares);
68
- },
69
- enhancers: (getDefaultEnhancers) => {
70
- return getDefaultEnhancers().concat(customEnhancers);
71
- },
72
- });
73
- };
74
- const store = makeStore();
75
-
76
- export { makeStore, store };
77
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.js","sources":["../../../lib/store/index.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAoBA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA,MAAM,gBAAgB,GAAa,EAAE;AAErC;AACA;AACA;AACA;AACO,MAAM,SAAS,GAAG,MAAK;IAC5B,MAAM,eAAe,GAAQ,EAAE;;AAG/B,IAAA,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC;;IAE7C,MAAM,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc;AAC9D,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS;AACxC,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO;AACpC,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ;AAEtC,IAAA,gBAAgB,CAAC,IAAI,CACnB,UAAU,CAAC,WAAW,EACtB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,WAAW,EACtB,SAAS,CAAC,WAAW,CACtB;AAED,IAAA,MAAM,aAAa,GAAG;AACpB,QAAA,GAAG,EAAE,MAAM;QACX,OAAO;;AAEP,QAAA,SAAS,EAAE,gBAAgB;KAC5B;IACD,MAAM,gBAAgB,GAAG,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC;IACnE,MAAM,YAAY,GAAG,gBAAgB;AAErC,IAAA,MAAM,WAAW,GAAG;AAClB,QAAA,OAAO,CAAC,UAAU;AAClB,QAAA,UAAU,CAAC,UAAU;AACrB,QAAA,UAAU,CAAC,UAAU;AACrB,QAAA,SAAS,CAAC,UAAU;KACrB;AAED,IAAA,OAAO,cAAc,CAAC;AACpB,QAAA,OAAO,EAAE,YAAY;;;AAGrB,QAAA,UAAU,EAAE,CAAC,oBAAoB,KAAI;AACnC,YAAA,OAAO,oBAAoB,CAAC;AAC1B,gBAAA,cAAc,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE;AAClC,gBAAA,iBAAiB,EAAE;AACjB,oBAAA,SAAS,EAAE,GAAG;AACd,oBAAA,cAAc,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;AACpE,iBAAA;AACF,aAAA,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;QACxB,CAAC;AACD,QAAA,SAAS,EAAE,CAAC,mBAAmB,KAAI;AACjC,YAAA,OAAO,mBAAmB,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC;QACtD,CAAC;AACF,KAAA,CAAC;AACJ;AAEO,MAAM,KAAK,GAAG,SAAS;;;;"}
@@ -1,191 +0,0 @@
1
- import { configureStore } from '@reduxjs/toolkit';
2
- import { p as paymentApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-DJ0YEPf7.js';
3
- import { r as rootReducer } from '../chunks/shared-DYJftbDt.js';
4
- import 'aws-amplify';
5
- import '../chunks/slice-ChJ8ZvmP.js';
6
- import 'react-redux';
7
- import 'react';
8
- import 'jwt-decode';
9
-
10
- function getDefaultExportFromCjs (x) {
11
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12
- }
13
-
14
- var createWebStorage$1 = {};
15
-
16
- var getStorage = {};
17
-
18
- var hasRequiredGetStorage;
19
-
20
- function requireGetStorage () {
21
- if (hasRequiredGetStorage) return getStorage;
22
- hasRequiredGetStorage = 1;
23
-
24
- getStorage.__esModule = true;
25
- getStorage.default = getStorage$1;
26
-
27
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
28
-
29
- function noop() {}
30
-
31
- var noopStorage = {
32
- getItem: noop,
33
- setItem: noop,
34
- removeItem: noop
35
- };
36
-
37
- function hasStorage(storageType) {
38
- if ((typeof self === "undefined" ? "undefined" : _typeof(self)) !== 'object' || !(storageType in self)) {
39
- return false;
40
- }
41
-
42
- try {
43
- var storage = self[storageType];
44
- var testKey = "redux-persist ".concat(storageType, " test");
45
- storage.setItem(testKey, 'test');
46
- storage.getItem(testKey);
47
- storage.removeItem(testKey);
48
- } catch (e) {
49
- if (process.env.NODE_ENV !== 'production') console.warn("redux-persist ".concat(storageType, " test failed, persistence will be disabled."));
50
- return false;
51
- }
52
-
53
- return true;
54
- }
55
-
56
- function getStorage$1(type) {
57
- var storageType = "".concat(type, "Storage");
58
- if (hasStorage(storageType)) return self[storageType];else {
59
- if (process.env.NODE_ENV !== 'production') {
60
- console.error("redux-persist failed to create sync storage. falling back to noop storage.");
61
- }
62
-
63
- return noopStorage;
64
- }
65
- }
66
- return getStorage;
67
- }
68
-
69
- var hasRequiredCreateWebStorage;
70
-
71
- function requireCreateWebStorage () {
72
- if (hasRequiredCreateWebStorage) return createWebStorage$1;
73
- hasRequiredCreateWebStorage = 1;
74
-
75
- createWebStorage$1.__esModule = true;
76
- createWebStorage$1.default = createWebStorage;
77
-
78
- var _getStorage = _interopRequireDefault(requireGetStorage());
79
-
80
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
81
-
82
- function createWebStorage(type) {
83
- var storage = (0, _getStorage.default)(type);
84
- return {
85
- getItem: function getItem(key) {
86
- return new Promise(function (resolve, reject) {
87
- resolve(storage.getItem(key));
88
- });
89
- },
90
- setItem: function setItem(key, item) {
91
- return new Promise(function (resolve, reject) {
92
- resolve(storage.setItem(key, item));
93
- });
94
- },
95
- removeItem: function removeItem(key) {
96
- return new Promise(function (resolve, reject) {
97
- resolve(storage.removeItem(key));
98
- });
99
- }
100
- };
101
- }
102
- return createWebStorage$1;
103
- }
104
-
105
- var createWebStorageExports = requireCreateWebStorage();
106
- var createWebStorage = /*@__PURE__*/getDefaultExportFromCjs(createWebStorageExports);
107
-
108
- // @ts-expect-error - required for module alias
109
- function createPersistStorage() {
110
- const isServer = typeof window === 'undefined';
111
- // Returns noop (dummy) storage.
112
- if (isServer) {
113
- return {
114
- getItem() {
115
- return Promise.resolve(null);
116
- },
117
- setItem() {
118
- return Promise.resolve();
119
- },
120
- removeItem() {
121
- return Promise.resolve();
122
- },
123
- };
124
- }
125
- return createWebStorage('local');
126
- }
127
-
128
- // Infer the `RootState` type from the root reducer
129
- // const rootReducer = combineSlices(
130
- // cartSlice,
131
- // authSlice,
132
- // authApi,
133
- // contentApi,
134
- // paymentApi,
135
- // ordersApi,
136
- // );
137
- // export type RootState = ReturnType<typeof rootReducer>;
138
- // eg. ['auth', 'creating'], or an empty array if you don't want to whitelist any.
139
- // const storageWhiteList: string[] = [];
140
- const storageBlackList = [];
141
- const makeStore = () => {
142
- // eslint-disable-next-line @typescript-eslint/no-require-imports
143
- const reduxPersist = require('redux-persist');
144
- // eslint-disable-next-line @typescript-eslint/no-require-imports
145
- const persistReducer = require('redux-persist').persistReducer;
146
- const FLUSH = reduxPersist.FLUSH;
147
- const REHYDRATE = reduxPersist.REHYDRATE;
148
- const PAUSE = reduxPersist.PAUSE;
149
- const PERSIST = reduxPersist.PERSIST;
150
- const PURGE = reduxPersist.PURGE;
151
- const REGISTER = reduxPersist.REGISTER;
152
- const storage = createPersistStorage();
153
- storageBlackList.push(paymentApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
154
- const persistConfig = {
155
- key: 'root',
156
- storage,
157
- // whitelist: storageWhiteList,
158
- blacklist: storageBlackList,
159
- };
160
- const middlewares = [
161
- authApi.middleware,
162
- contentApi.middleware,
163
- paymentApi.middleware,
164
- ordersApi.middleware,
165
- ];
166
- // `combineSlices` automatically combines the reducers using
167
- // their `reducerPath`s, therefore we no longer need to call `combineReducers`.
168
- const persistedReducer = persistReducer(persistConfig, rootReducer);
169
- const customEnhancers = [];
170
- return configureStore({
171
- reducer: persistedReducer,
172
- // Adding the api middleware enables caching, invalidation, polling,
173
- // and other useful features of `rtk-query`.
174
- middleware: (getDefaultMiddleware) => {
175
- return getDefaultMiddleware({
176
- immutableCheck: { warnAfter: 256 },
177
- serializableCheck: {
178
- warnAfter: 256,
179
- ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
180
- },
181
- }).concat(middlewares);
182
- },
183
- enhancers: (getDefaultEnhancers) => {
184
- return getDefaultEnhancers().concat(customEnhancers);
185
- },
186
- });
187
- };
188
- const store = makeStore();
189
-
190
- export { makeStore, store };
191
- //# sourceMappingURL=index.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.web.js","sources":["../../../node_modules/redux-persist/lib/storage/getStorage.js","../../../node_modules/redux-persist/lib/storage/createWebStorage.js","../../../lib/store/storage.ts","../../../lib/store/index.web.ts"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}",null,null],"names":["getStorage_1","getStorage","createWebStorage_1","require$$0"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,CAAAA,UAAO,cAAc,IAAI;AACzB,CAAAA,UAAA,CAAA,OAAe,GAAGC,YAAU;;AAE5B,CAAA,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,OAAO,MAAM,KAA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AG,SAAS;;;;","x_google_ignoreList":[0,1]}
@@ -1,12 +0,0 @@
1
- import { TypedUseSelectorHook } from 'react-redux';
2
- import { ad as AppDispatch, a9 as RootState, ac as AppStore } from '../index-B9lcBPLO.js';
3
- import '@reduxjs/toolkit';
4
- import '@reduxjs/toolkit/query';
5
-
6
- declare const useLoggedIn: () => boolean;
7
-
8
- declare const useAppDispatch: () => AppDispatch;
9
- declare const useAppSelector: TypedUseSelectorHook<RootState>;
10
- declare const useAppStore: () => AppStore;
11
-
12
- export { useAppDispatch, useAppSelector, useAppStore, useLoggedIn };