@nizza/core 0.5.0-beta.10 → 0.5.0-beta.11
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.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +54 -54
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var Qt = Object.defineProperty;
|
|
|
2
2
|
var Gt = (n, e, t) => e in n ? Qt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var R = (n, e, t) => (Gt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import pe, { createContext as gt, useReducer as Kt, useEffect as kt, useDebugValue as Wt, useCallback as Jt, useContext as
|
|
5
|
+
import pe, { createContext as gt, useReducer as Kt, useEffect as kt, useDebugValue as Wt, useCallback as Jt, useContext as Oe, useMemo as qt } from "react";
|
|
6
6
|
import { jsx as Ht } from "react/jsx-runtime";
|
|
7
7
|
var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
8
|
let Zt = 0;
|
|
@@ -19,7 +19,7 @@ function Xt(n, e) {
|
|
|
19
19
|
);
|
|
20
20
|
}), e && (i.write = e), i;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Se = (n) => "init" in n, ye = (n) => !!n.write, oe = /* @__PURE__ */ new WeakMap(), Yt = (n, e) => {
|
|
23
23
|
oe.set(n, e), n.catch(() => {
|
|
24
24
|
}).finally(() => oe.delete(n));
|
|
25
25
|
}, _e = (n, e) => {
|
|
@@ -119,7 +119,7 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
119
119
|
const V = s(x);
|
|
120
120
|
if (V)
|
|
121
121
|
return g.set(x, V), ie(V);
|
|
122
|
-
if (
|
|
122
|
+
if (Se(x))
|
|
123
123
|
return g.set(x, void 0), x.init;
|
|
124
124
|
throw new Error("no atom init");
|
|
125
125
|
}
|
|
@@ -132,7 +132,7 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
132
132
|
return v || (v = new AbortController()), v.signal;
|
|
133
133
|
},
|
|
134
134
|
get setSelf() {
|
|
135
|
-
return (_ ? "production" : void 0) !== "production" && !
|
|
135
|
+
return (_ ? "production" : void 0) !== "production" && !ye(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ye(m) && (E = (...x) => {
|
|
136
136
|
if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
137
137
|
return F(m, ...x);
|
|
138
138
|
}), E;
|
|
@@ -197,7 +197,7 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
197
197
|
const g = (v) => ie(f(v)), b = (v, ...E) => {
|
|
198
198
|
let P;
|
|
199
199
|
if (v === m) {
|
|
200
|
-
if (!
|
|
200
|
+
if (!Se(v))
|
|
201
201
|
throw new Error("atom not writable");
|
|
202
202
|
const x = s(v), T = u(v, E[0]);
|
|
203
203
|
J(x, T) || N(v);
|
|
@@ -228,7 +228,7 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
228
228
|
t: new Set(p && [p]),
|
|
229
229
|
l: /* @__PURE__ */ new Set()
|
|
230
230
|
};
|
|
231
|
-
if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m),
|
|
231
|
+
if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ye(m) && m.onMount) {
|
|
232
232
|
const { onMount: v } = m;
|
|
233
233
|
b.push(() => {
|
|
234
234
|
const E = v((...P) => F(m, ...P));
|
|
@@ -302,7 +302,7 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
302
302
|
dev_get_mounted: (m) => e.get(m),
|
|
303
303
|
dev_restore_atoms: (m) => {
|
|
304
304
|
for (const [h, g] of m)
|
|
305
|
-
|
|
305
|
+
Se(h) && (u(h, g), N(h));
|
|
306
306
|
const p = L();
|
|
307
307
|
i.forEach(
|
|
308
308
|
(h) => h({ type: "restore", flushed: p })
|
|
@@ -314,14 +314,14 @@ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new W
|
|
|
314
314
|
sub: A
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
|
-
let
|
|
317
|
+
let Ne;
|
|
318
318
|
(_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
|
|
319
|
-
const nn = () => (
|
|
319
|
+
const nn = () => (Ne || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
|
|
320
320
|
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
321
|
-
),
|
|
321
|
+
), Ne = vt()), Ne);
|
|
322
322
|
var an = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
323
|
const sn = gt(void 0), St = (n) => {
|
|
324
|
-
const e =
|
|
324
|
+
const e = Oe(sn);
|
|
325
325
|
return (n == null ? void 0 : n.store) || e || nn();
|
|
326
326
|
}, rn = (n) => typeof (n == null ? void 0 : n.then) == "function", on = pe.use || ((n) => {
|
|
327
327
|
if (n.status === "pending")
|
|
@@ -378,8 +378,8 @@ function un(n, e) {
|
|
|
378
378
|
dn(n, e)
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
|
-
const
|
|
382
|
-
|
|
381
|
+
const Re = Xt(null);
|
|
382
|
+
Re.debugLabel = "accountAtom";
|
|
383
383
|
var cn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
384
384
|
const {
|
|
385
385
|
NZ_AWS_REGION: mn,
|
|
@@ -482,7 +482,7 @@ const je = (n) => {
|
|
|
482
482
|
return e = n(i, a, o), o;
|
|
483
483
|
}, Sn = (n) => n ? je(n) : je;
|
|
484
484
|
var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
485
|
-
function
|
|
485
|
+
function Te(n) {
|
|
486
486
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
487
487
|
}
|
|
488
488
|
var bt = { exports: {} }, Ft = {}, wt = { exports: {} }, Ct = {};
|
|
@@ -503,14 +503,14 @@ var Nn = typeof Object.is == "function" ? Object.is : yn, bn = W.useState, Fn =
|
|
|
503
503
|
function En(n, e) {
|
|
504
504
|
var t = e(), i = bn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
505
505
|
return wn(function() {
|
|
506
|
-
a.value = t, a.getSnapshot = e,
|
|
506
|
+
a.value = t, a.getSnapshot = e, be(a) && s({ inst: a });
|
|
507
507
|
}, [n, t, e]), Fn(function() {
|
|
508
|
-
return
|
|
509
|
-
|
|
508
|
+
return be(a) && s({ inst: a }), n(function() {
|
|
509
|
+
be(a) && s({ inst: a });
|
|
510
510
|
});
|
|
511
511
|
}, [n]), Cn(t), t;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function be(n) {
|
|
514
514
|
var e = n.getSnapshot;
|
|
515
515
|
n = n.value;
|
|
516
516
|
try {
|
|
@@ -577,7 +577,7 @@ Ft.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
|
577
577
|
};
|
|
578
578
|
bt.exports = Ft;
|
|
579
579
|
var _n = bt.exports;
|
|
580
|
-
const Un = /* @__PURE__ */
|
|
580
|
+
const Un = /* @__PURE__ */ Te(_n);
|
|
581
581
|
var xt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
582
582
|
const { useDebugValue: Mn } = pe, { useSyncExternalStoreWithSelector: $n } = Un;
|
|
583
583
|
let ze = !1;
|
|
@@ -900,7 +900,7 @@ var Ot = { exports: {} };
|
|
|
900
900
|
});
|
|
901
901
|
})(Ot);
|
|
902
902
|
var Rt = Ot.exports;
|
|
903
|
-
const ae = /* @__PURE__ */
|
|
903
|
+
const ae = /* @__PURE__ */ Te(Rt);
|
|
904
904
|
var Tt = { exports: {} };
|
|
905
905
|
(function(n) {
|
|
906
906
|
(function(e, t) {
|
|
@@ -956,7 +956,7 @@ var Tt = { exports: {} };
|
|
|
956
956
|
});
|
|
957
957
|
})(Tt);
|
|
958
958
|
var Kn = Tt.exports;
|
|
959
|
-
const Qe = /* @__PURE__ */
|
|
959
|
+
const Qe = /* @__PURE__ */ Te(Kn), K = class K {
|
|
960
960
|
constructor(e) {
|
|
961
961
|
R(this, "defaultLevel", Rt.levels.INFO);
|
|
962
962
|
R(this, "namePrefix");
|
|
@@ -978,9 +978,9 @@ const Qe = /* @__PURE__ */ Re(Kn), K = class K {
|
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
980
|
R(K, "instance");
|
|
981
|
-
let
|
|
982
|
-
const
|
|
983
|
-
let j, It;
|
|
981
|
+
let we = K;
|
|
982
|
+
const ge = we.create("nz"), Ps = ge.createLogger("main"), X = ge.createLogger("core");
|
|
983
|
+
let j = { log: ge }, It;
|
|
984
984
|
function Vs() {
|
|
985
985
|
return j = Wn(), It = j.store, j;
|
|
986
986
|
}
|
|
@@ -997,7 +997,7 @@ function Jn() {
|
|
|
997
997
|
}));
|
|
998
998
|
return {
|
|
999
999
|
version: "1.0.4",
|
|
1000
|
-
log:
|
|
1000
|
+
log: ge,
|
|
1001
1001
|
store: n,
|
|
1002
1002
|
configure: qn,
|
|
1003
1003
|
setProductDataSource: Hn,
|
|
@@ -1082,7 +1082,7 @@ var si = /* @__PURE__ */ Ie(function(e, t) {
|
|
|
1082
1082
|
return ai([e], t)[0];
|
|
1083
1083
|
});
|
|
1084
1084
|
const ri = si;
|
|
1085
|
-
class
|
|
1085
|
+
class ke extends Error {
|
|
1086
1086
|
constructor(e, t, i) {
|
|
1087
1087
|
super(t), this.value = i, this.name = e;
|
|
1088
1088
|
}
|
|
@@ -1094,7 +1094,7 @@ class ge extends Error {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
class oi extends
|
|
1097
|
+
class oi extends ke {
|
|
1098
1098
|
constructor(e) {
|
|
1099
1099
|
super(
|
|
1100
1100
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1103,7 +1103,7 @@ class oi extends ge {
|
|
|
1103
1103
|
);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
class li extends
|
|
1106
|
+
class li extends ke {
|
|
1107
1107
|
constructor(e) {
|
|
1108
1108
|
var t;
|
|
1109
1109
|
super(
|
|
@@ -1113,12 +1113,12 @@ class li extends ge {
|
|
|
1113
1113
|
);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
class _s extends
|
|
1116
|
+
class _s extends ke {
|
|
1117
1117
|
constructor() {
|
|
1118
1118
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
class di extends
|
|
1121
|
+
class di extends ke {
|
|
1122
1122
|
constructor(e) {
|
|
1123
1123
|
super(
|
|
1124
1124
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1332,7 +1332,7 @@ function Pt(n, e) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return e;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Ce(n, e) {
|
|
1336
1336
|
if (n && !e || e && !n)
|
|
1337
1337
|
return !1;
|
|
1338
1338
|
for (const t in n)
|
|
@@ -1526,17 +1526,17 @@ class Li extends Le {
|
|
|
1526
1526
|
this.hasListeners() || this.destroy();
|
|
1527
1527
|
}
|
|
1528
1528
|
shouldFetchOnReconnect() {
|
|
1529
|
-
return
|
|
1529
|
+
return Ee(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1530
1530
|
}
|
|
1531
1531
|
shouldFetchOnWindowFocus() {
|
|
1532
|
-
return
|
|
1532
|
+
return Ee(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1533
1533
|
}
|
|
1534
1534
|
destroy() {
|
|
1535
1535
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
1536
1536
|
}
|
|
1537
1537
|
setOptions(e, t) {
|
|
1538
1538
|
const i = this.options, a = this.currentQuery;
|
|
1539
|
-
if (this.options = this.client.defaultQueryOptions(e),
|
|
1539
|
+
if (this.options = this.client.defaultQueryOptions(e), Ce(i, this.options) || this.client.getQueryCache().notify({
|
|
1540
1540
|
type: "observerOptionsUpdated",
|
|
1541
1541
|
query: this.currentQuery,
|
|
1542
1542
|
observer: this
|
|
@@ -1696,7 +1696,7 @@ class Li extends Le {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
updateResult(e) {
|
|
1698
1698
|
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1699
|
-
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options,
|
|
1699
|
+
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, Ce(i, t))
|
|
1700
1700
|
return;
|
|
1701
1701
|
this.currentResult = i;
|
|
1702
1702
|
const a = {
|
|
@@ -1755,9 +1755,9 @@ function Ai(n, e) {
|
|
|
1755
1755
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1756
1756
|
}
|
|
1757
1757
|
function Xe(n, e) {
|
|
1758
|
-
return Ai(n, e) || n.state.dataUpdatedAt > 0 &&
|
|
1758
|
+
return Ai(n, e) || n.state.dataUpdatedAt > 0 && Ee(n, e, e.refetchOnMount);
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Ee(n, e, t) {
|
|
1761
1761
|
if (e.enabled !== !1) {
|
|
1762
1762
|
const i = typeof t == "function" ? t(n) : t;
|
|
1763
1763
|
return i === "always" || i !== !1 && Ae(n, e);
|
|
@@ -1771,7 +1771,7 @@ function Ae(n, e) {
|
|
|
1771
1771
|
return n.isStaleByTime(e.staleTime);
|
|
1772
1772
|
}
|
|
1773
1773
|
function Pi(n, e, t) {
|
|
1774
|
-
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !
|
|
1774
|
+
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !Ce(n.getCurrentResult(), e);
|
|
1775
1775
|
}
|
|
1776
1776
|
const Vi = Et.useSyncExternalStore, et = /* @__PURE__ */ M.createContext(void 0), _i = /* @__PURE__ */ M.createContext(!1);
|
|
1777
1777
|
function Ui(n, e) {
|
|
@@ -1855,7 +1855,7 @@ const ea = () => ["account"], zs = () => {
|
|
|
1855
1855
|
const n = It((a) => {
|
|
1856
1856
|
var s;
|
|
1857
1857
|
return (s = a.config) == null ? void 0 : s.account;
|
|
1858
|
-
}), [e, t] = un(
|
|
1858
|
+
}), [e, t] = un(Re), i = Yi(ea(), () => At.get(n), {
|
|
1859
1859
|
enabled: !!n && !e,
|
|
1860
1860
|
refetchOnWindowFocus: !1,
|
|
1861
1861
|
refetchOnMount: !1
|
|
@@ -1870,7 +1870,7 @@ const ea = () => ["account"], zs = () => {
|
|
|
1870
1870
|
}, ta = vt();
|
|
1871
1871
|
async function na(n) {
|
|
1872
1872
|
const e = await At.get(n);
|
|
1873
|
-
return ta.set(
|
|
1873
|
+
return ta.set(Re, e), e;
|
|
1874
1874
|
}
|
|
1875
1875
|
var ia = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ia || {});
|
|
1876
1876
|
const Bs = {
|
|
@@ -2301,7 +2301,7 @@ class de {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
var $ = new de();
|
|
2304
|
-
class
|
|
2304
|
+
class ve {
|
|
2305
2305
|
constructor() {
|
|
2306
2306
|
this.observers = {};
|
|
2307
2307
|
}
|
|
@@ -2457,7 +2457,7 @@ function ce(n, e) {
|
|
|
2457
2457
|
function me(n) {
|
|
2458
2458
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2459
2459
|
}
|
|
2460
|
-
class lt extends
|
|
2460
|
+
class lt extends ve {
|
|
2461
2461
|
constructor(e) {
|
|
2462
2462
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2463
2463
|
ns: ["translation"],
|
|
@@ -2543,7 +2543,7 @@ var $t = {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
};
|
|
2545
2545
|
const dt = {};
|
|
2546
|
-
class fe extends
|
|
2546
|
+
class fe extends ve {
|
|
2547
2547
|
constructor(e) {
|
|
2548
2548
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2549
2549
|
super(), Ra(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
|
|
@@ -2792,7 +2792,7 @@ class fe extends ke {
|
|
|
2792
2792
|
return !1;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function Fe(n) {
|
|
2796
2796
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2797
2797
|
}
|
|
2798
2798
|
class ut {
|
|
@@ -2815,7 +2815,7 @@ class ut {
|
|
|
2815
2815
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
|
2816
2816
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2817
2817
|
let i = e.split("-");
|
|
2818
|
-
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
2818
|
+
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Fe(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Fe(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Fe(i[2].toLowerCase()))), i.join("-");
|
|
2819
2819
|
}
|
|
2820
2820
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2821
2821
|
}
|
|
@@ -3319,7 +3319,7 @@ class Qa {
|
|
|
3319
3319
|
function Ga(n, e) {
|
|
3320
3320
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3321
3321
|
}
|
|
3322
|
-
class Ka extends
|
|
3322
|
+
class Ka extends ve {
|
|
3323
3323
|
constructor(e, t, i) {
|
|
3324
3324
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3325
3325
|
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
|
|
@@ -3522,7 +3522,7 @@ function Wa(n) {
|
|
|
3522
3522
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3523
3523
|
});
|
|
3524
3524
|
}
|
|
3525
|
-
class te extends
|
|
3525
|
+
class te extends ve {
|
|
3526
3526
|
constructor() {
|
|
3527
3527
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3528
3528
|
if (super(), this.options = pt(e), this.services = {}, this.logger = $, this.modules = {
|
|
@@ -3834,15 +3834,15 @@ const Ya = {
|
|
|
3834
3834
|
xa(U, Ya);
|
|
3835
3835
|
const Gs = (n) => da(U, n);
|
|
3836
3836
|
let Ve = /* @__PURE__ */ new Map();
|
|
3837
|
-
const
|
|
3838
|
-
const t = xe
|
|
3837
|
+
const xe = gt(Ve), Ks = ({ children: n, stores: e }) => {
|
|
3838
|
+
const t = Oe(xe), i = qt(() => {
|
|
3839
3839
|
const a = /* @__PURE__ */ new Map();
|
|
3840
3840
|
return e.forEach((s) => a.set(s.class, s.value)), Ve = new Map([...t, ...a]);
|
|
3841
3841
|
}, []);
|
|
3842
|
-
return /* @__PURE__ */ Ht(
|
|
3842
|
+
return /* @__PURE__ */ Ht(xe.Provider, { value: i, children: n });
|
|
3843
3843
|
};
|
|
3844
3844
|
function Ws(n) {
|
|
3845
|
-
return xe
|
|
3845
|
+
return Oe(xe).get(n);
|
|
3846
3846
|
}
|
|
3847
3847
|
function Js(n) {
|
|
3848
3848
|
return Ve.get(n);
|
|
@@ -3904,7 +3904,7 @@ export {
|
|
|
3904
3904
|
qs as ApiGraphqlTypes,
|
|
3905
3905
|
$s as BaseMobxStore,
|
|
3906
3906
|
Bn as BroadcastChannelEventBus,
|
|
3907
|
-
|
|
3907
|
+
ke as DomainError,
|
|
3908
3908
|
Bs as EventBusWildcards,
|
|
3909
3909
|
Qs as EventNames,
|
|
3910
3910
|
hi as GlobalPageSectionTypes,
|
|
@@ -3912,14 +3912,14 @@ export {
|
|
|
3912
3912
|
aa as LanguageTypes,
|
|
3913
3913
|
De as NizzaAccount,
|
|
3914
3914
|
ia as NizzaEventStatus,
|
|
3915
|
-
|
|
3915
|
+
we as NizzaLogger,
|
|
3916
3916
|
ra as NizzaProductRequestOriginTypes,
|
|
3917
3917
|
sa as NizzaVariationTypes,
|
|
3918
3918
|
oi as ResourceNotFoundError,
|
|
3919
3919
|
Ks as StoreProvider,
|
|
3920
3920
|
li as UnexpectedError,
|
|
3921
3921
|
js as ValueObject,
|
|
3922
|
-
|
|
3922
|
+
Re as accountAtom,
|
|
3923
3923
|
At as accountService,
|
|
3924
3924
|
Is as apiCall,
|
|
3925
3925
|
oa as buildLanguageTranslations,
|