@nizza/core 0.5.0-beta.10 → 0.5.0-beta.12
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 +56 -55
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils/logger.d.ts +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");
|
|
@@ -970,7 +970,8 @@ const Qe = /* @__PURE__ */ Re(Kn), K = class K {
|
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
972
|
static create(e) {
|
|
973
|
-
|
|
973
|
+
const t = `${e}log`;
|
|
974
|
+
return window != null && window[t] || (K.instance = new K(e), window[t] = K.instance), window[t];
|
|
974
975
|
}
|
|
975
976
|
createLogger(e) {
|
|
976
977
|
const t = this.namePrefix + e.toLowerCase(), i = ae.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
|
|
@@ -978,9 +979,9 @@ const Qe = /* @__PURE__ */ Re(Kn), K = class K {
|
|
|
978
979
|
}
|
|
979
980
|
};
|
|
980
981
|
R(K, "instance");
|
|
981
|
-
let
|
|
982
|
-
const
|
|
983
|
-
let j, It;
|
|
982
|
+
let we = K;
|
|
983
|
+
const ge = we.create("nz"), Ps = ge.createLogger("main"), X = ge.createLogger("core");
|
|
984
|
+
let j = { log: ge }, It;
|
|
984
985
|
function Vs() {
|
|
985
986
|
return j = Wn(), It = j.store, j;
|
|
986
987
|
}
|
|
@@ -997,7 +998,7 @@ function Jn() {
|
|
|
997
998
|
}));
|
|
998
999
|
return {
|
|
999
1000
|
version: "1.0.4",
|
|
1000
|
-
log:
|
|
1001
|
+
log: ge,
|
|
1001
1002
|
store: n,
|
|
1002
1003
|
configure: qn,
|
|
1003
1004
|
setProductDataSource: Hn,
|
|
@@ -1082,7 +1083,7 @@ var si = /* @__PURE__ */ Ie(function(e, t) {
|
|
|
1082
1083
|
return ai([e], t)[0];
|
|
1083
1084
|
});
|
|
1084
1085
|
const ri = si;
|
|
1085
|
-
class
|
|
1086
|
+
class ke extends Error {
|
|
1086
1087
|
constructor(e, t, i) {
|
|
1087
1088
|
super(t), this.value = i, this.name = e;
|
|
1088
1089
|
}
|
|
@@ -1094,7 +1095,7 @@ class ge extends Error {
|
|
|
1094
1095
|
};
|
|
1095
1096
|
}
|
|
1096
1097
|
}
|
|
1097
|
-
class oi extends
|
|
1098
|
+
class oi extends ke {
|
|
1098
1099
|
constructor(e) {
|
|
1099
1100
|
super(
|
|
1100
1101
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1103,7 +1104,7 @@ class oi extends ge {
|
|
|
1103
1104
|
);
|
|
1104
1105
|
}
|
|
1105
1106
|
}
|
|
1106
|
-
class li extends
|
|
1107
|
+
class li extends ke {
|
|
1107
1108
|
constructor(e) {
|
|
1108
1109
|
var t;
|
|
1109
1110
|
super(
|
|
@@ -1113,12 +1114,12 @@ class li extends ge {
|
|
|
1113
1114
|
);
|
|
1114
1115
|
}
|
|
1115
1116
|
}
|
|
1116
|
-
class _s extends
|
|
1117
|
+
class _s extends ke {
|
|
1117
1118
|
constructor() {
|
|
1118
1119
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1119
1120
|
}
|
|
1120
1121
|
}
|
|
1121
|
-
class di extends
|
|
1122
|
+
class di extends ke {
|
|
1122
1123
|
constructor(e) {
|
|
1123
1124
|
super(
|
|
1124
1125
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1332,7 +1333,7 @@ function Pt(n, e) {
|
|
|
1332
1333
|
}
|
|
1333
1334
|
return e;
|
|
1334
1335
|
}
|
|
1335
|
-
function
|
|
1336
|
+
function Ce(n, e) {
|
|
1336
1337
|
if (n && !e || e && !n)
|
|
1337
1338
|
return !1;
|
|
1338
1339
|
for (const t in n)
|
|
@@ -1526,17 +1527,17 @@ class Li extends Le {
|
|
|
1526
1527
|
this.hasListeners() || this.destroy();
|
|
1527
1528
|
}
|
|
1528
1529
|
shouldFetchOnReconnect() {
|
|
1529
|
-
return
|
|
1530
|
+
return Ee(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1530
1531
|
}
|
|
1531
1532
|
shouldFetchOnWindowFocus() {
|
|
1532
|
-
return
|
|
1533
|
+
return Ee(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1533
1534
|
}
|
|
1534
1535
|
destroy() {
|
|
1535
1536
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
1536
1537
|
}
|
|
1537
1538
|
setOptions(e, t) {
|
|
1538
1539
|
const i = this.options, a = this.currentQuery;
|
|
1539
|
-
if (this.options = this.client.defaultQueryOptions(e),
|
|
1540
|
+
if (this.options = this.client.defaultQueryOptions(e), Ce(i, this.options) || this.client.getQueryCache().notify({
|
|
1540
1541
|
type: "observerOptionsUpdated",
|
|
1541
1542
|
query: this.currentQuery,
|
|
1542
1543
|
observer: this
|
|
@@ -1696,7 +1697,7 @@ class Li extends Le {
|
|
|
1696
1697
|
}
|
|
1697
1698
|
updateResult(e) {
|
|
1698
1699
|
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1699
|
-
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options,
|
|
1700
|
+
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, Ce(i, t))
|
|
1700
1701
|
return;
|
|
1701
1702
|
this.currentResult = i;
|
|
1702
1703
|
const a = {
|
|
@@ -1755,9 +1756,9 @@ function Ai(n, e) {
|
|
|
1755
1756
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1756
1757
|
}
|
|
1757
1758
|
function Xe(n, e) {
|
|
1758
|
-
return Ai(n, e) || n.state.dataUpdatedAt > 0 &&
|
|
1759
|
+
return Ai(n, e) || n.state.dataUpdatedAt > 0 && Ee(n, e, e.refetchOnMount);
|
|
1759
1760
|
}
|
|
1760
|
-
function
|
|
1761
|
+
function Ee(n, e, t) {
|
|
1761
1762
|
if (e.enabled !== !1) {
|
|
1762
1763
|
const i = typeof t == "function" ? t(n) : t;
|
|
1763
1764
|
return i === "always" || i !== !1 && Ae(n, e);
|
|
@@ -1771,7 +1772,7 @@ function Ae(n, e) {
|
|
|
1771
1772
|
return n.isStaleByTime(e.staleTime);
|
|
1772
1773
|
}
|
|
1773
1774
|
function Pi(n, e, t) {
|
|
1774
|
-
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !
|
|
1775
|
+
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !Ce(n.getCurrentResult(), e);
|
|
1775
1776
|
}
|
|
1776
1777
|
const Vi = Et.useSyncExternalStore, et = /* @__PURE__ */ M.createContext(void 0), _i = /* @__PURE__ */ M.createContext(!1);
|
|
1777
1778
|
function Ui(n, e) {
|
|
@@ -1855,7 +1856,7 @@ const ea = () => ["account"], zs = () => {
|
|
|
1855
1856
|
const n = It((a) => {
|
|
1856
1857
|
var s;
|
|
1857
1858
|
return (s = a.config) == null ? void 0 : s.account;
|
|
1858
|
-
}), [e, t] = un(
|
|
1859
|
+
}), [e, t] = un(Re), i = Yi(ea(), () => At.get(n), {
|
|
1859
1860
|
enabled: !!n && !e,
|
|
1860
1861
|
refetchOnWindowFocus: !1,
|
|
1861
1862
|
refetchOnMount: !1
|
|
@@ -1870,7 +1871,7 @@ const ea = () => ["account"], zs = () => {
|
|
|
1870
1871
|
}, ta = vt();
|
|
1871
1872
|
async function na(n) {
|
|
1872
1873
|
const e = await At.get(n);
|
|
1873
|
-
return ta.set(
|
|
1874
|
+
return ta.set(Re, e), e;
|
|
1874
1875
|
}
|
|
1875
1876
|
var ia = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ia || {});
|
|
1876
1877
|
const Bs = {
|
|
@@ -2301,7 +2302,7 @@ class de {
|
|
|
2301
2302
|
}
|
|
2302
2303
|
}
|
|
2303
2304
|
var $ = new de();
|
|
2304
|
-
class
|
|
2305
|
+
class ve {
|
|
2305
2306
|
constructor() {
|
|
2306
2307
|
this.observers = {};
|
|
2307
2308
|
}
|
|
@@ -2457,7 +2458,7 @@ function ce(n, e) {
|
|
|
2457
2458
|
function me(n) {
|
|
2458
2459
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2459
2460
|
}
|
|
2460
|
-
class lt extends
|
|
2461
|
+
class lt extends ve {
|
|
2461
2462
|
constructor(e) {
|
|
2462
2463
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2463
2464
|
ns: ["translation"],
|
|
@@ -2543,7 +2544,7 @@ var $t = {
|
|
|
2543
2544
|
}
|
|
2544
2545
|
};
|
|
2545
2546
|
const dt = {};
|
|
2546
|
-
class fe extends
|
|
2547
|
+
class fe extends ve {
|
|
2547
2548
|
constructor(e) {
|
|
2548
2549
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2549
2550
|
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 +2793,7 @@ class fe extends ke {
|
|
|
2792
2793
|
return !1;
|
|
2793
2794
|
}
|
|
2794
2795
|
}
|
|
2795
|
-
function
|
|
2796
|
+
function Fe(n) {
|
|
2796
2797
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2797
2798
|
}
|
|
2798
2799
|
class ut {
|
|
@@ -2815,7 +2816,7 @@ class ut {
|
|
|
2815
2816
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
|
2816
2817
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2817
2818
|
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] =
|
|
2819
|
+
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
2820
|
}
|
|
2820
2821
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2821
2822
|
}
|
|
@@ -3319,7 +3320,7 @@ class Qa {
|
|
|
3319
3320
|
function Ga(n, e) {
|
|
3320
3321
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3321
3322
|
}
|
|
3322
|
-
class Ka extends
|
|
3323
|
+
class Ka extends ve {
|
|
3323
3324
|
constructor(e, t, i) {
|
|
3324
3325
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3325
3326
|
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 +3523,7 @@ function Wa(n) {
|
|
|
3522
3523
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3523
3524
|
});
|
|
3524
3525
|
}
|
|
3525
|
-
class te extends
|
|
3526
|
+
class te extends ve {
|
|
3526
3527
|
constructor() {
|
|
3527
3528
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3528
3529
|
if (super(), this.options = pt(e), this.services = {}, this.logger = $, this.modules = {
|
|
@@ -3834,15 +3835,15 @@ const Ya = {
|
|
|
3834
3835
|
xa(U, Ya);
|
|
3835
3836
|
const Gs = (n) => da(U, n);
|
|
3836
3837
|
let Ve = /* @__PURE__ */ new Map();
|
|
3837
|
-
const
|
|
3838
|
-
const t = xe
|
|
3838
|
+
const xe = gt(Ve), Ks = ({ children: n, stores: e }) => {
|
|
3839
|
+
const t = Oe(xe), i = qt(() => {
|
|
3839
3840
|
const a = /* @__PURE__ */ new Map();
|
|
3840
3841
|
return e.forEach((s) => a.set(s.class, s.value)), Ve = new Map([...t, ...a]);
|
|
3841
3842
|
}, []);
|
|
3842
|
-
return /* @__PURE__ */ Ht(
|
|
3843
|
+
return /* @__PURE__ */ Ht(xe.Provider, { value: i, children: n });
|
|
3843
3844
|
};
|
|
3844
3845
|
function Ws(n) {
|
|
3845
|
-
return xe
|
|
3846
|
+
return Oe(xe).get(n);
|
|
3846
3847
|
}
|
|
3847
3848
|
function Js(n) {
|
|
3848
3849
|
return Ve.get(n);
|
|
@@ -3904,7 +3905,7 @@ export {
|
|
|
3904
3905
|
qs as ApiGraphqlTypes,
|
|
3905
3906
|
$s as BaseMobxStore,
|
|
3906
3907
|
Bn as BroadcastChannelEventBus,
|
|
3907
|
-
|
|
3908
|
+
ke as DomainError,
|
|
3908
3909
|
Bs as EventBusWildcards,
|
|
3909
3910
|
Qs as EventNames,
|
|
3910
3911
|
hi as GlobalPageSectionTypes,
|
|
@@ -3912,14 +3913,14 @@ export {
|
|
|
3912
3913
|
aa as LanguageTypes,
|
|
3913
3914
|
De as NizzaAccount,
|
|
3914
3915
|
ia as NizzaEventStatus,
|
|
3915
|
-
|
|
3916
|
+
we as NizzaLogger,
|
|
3916
3917
|
ra as NizzaProductRequestOriginTypes,
|
|
3917
3918
|
sa as NizzaVariationTypes,
|
|
3918
3919
|
oi as ResourceNotFoundError,
|
|
3919
3920
|
Ks as StoreProvider,
|
|
3920
3921
|
li as UnexpectedError,
|
|
3921
3922
|
js as ValueObject,
|
|
3922
|
-
|
|
3923
|
+
Re as accountAtom,
|
|
3923
3924
|
At as accountService,
|
|
3924
3925
|
Is as apiCall,
|
|
3925
3926
|
oa as buildLanguageTranslations,
|