@nizza/core 0.5.0-beta.16 → 0.5.0-beta.17

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.mjs CHANGED
@@ -402,24 +402,24 @@ const {
402
402
  AWS: {
403
403
  region: wr,
404
404
  cognito: {
405
- userPoolId: "us-east-1_knSlGEmJ0",
406
- userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
405
+ userPoolId: "us-east-1_EZ7wuZ4ig",
406
+ userPoolWebClientId: "2jok7cst8ebf6ppscrhji57gvr"
407
407
  }
408
408
  },
409
409
  // Back services
410
410
  apiUrls: {
411
- restV1: Fr || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
412
- restV2: Er || "https://core-services-dev.nizza.com/api",
413
- graphql: Ar || "https://core-services-dev.nizza.com/graphql",
414
- corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
411
+ restV1: Fr || "https://b133h34s56.execute-api.us-east-1.amazonaws.com",
412
+ restV2: Er || "https://core-services-prod.nizza.com/api",
413
+ graphql: Ar || "https://core-services-prod.nizza.com/graphql",
414
+ corsProxy: "https://3hvqfl2xcg.execute-api.us-east-1.amazonaws.com"
415
415
  },
416
416
  publicUrls: {
417
417
  // Public app url
418
- platformSite: "https://platformdev.nizza.com",
418
+ platformSite: "https://platform.nizza.com",
419
419
  // Nizza CDN
420
420
  nizzaCdn: "https://cdn.nizza.com",
421
421
  // Bundle
422
- bundleSite: "https://bundledev.nizza.com",
422
+ bundleSite: "https://bundle.nizza.com",
423
423
  // WSS IVS CHAT
424
424
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
425
425
  }
@@ -716,7 +716,7 @@ var E = /* @__PURE__ */ Symbol("mobx administration"), at = /* @__PURE__ */ func
716
716
  function Hi(t, e, n) {
717
717
  e === void 0 && (e = xe), n === void 0 && (n = xe);
718
718
  var i = new at(t);
719
- return e !== xe && Xs(i, e), n !== xe && va(i, n), i;
719
+ return e !== xe && Zs(i, e), n !== xe && va(i, n), i;
720
720
  }
721
721
  function Mr(t, e) {
722
722
  return t === e;
@@ -745,10 +745,10 @@ function ye(t, e, n) {
745
745
  name: n
746
746
  }) : nt(t) ? B.set(t, {
747
747
  name: n
748
- }) : typeof t == "function" && !$t(t) && !Xe(t) ? Bi(t) ? De(t) : Je(n, t) : t;
748
+ }) : typeof t == "function" && !$t(t) && !Ze(t) ? Bi(t) ? De(t) : Je(n, t) : t;
749
749
  }
750
750
  function Kr(t, e, n) {
751
- if (t == null || Ze(t) || Bt(t) || Ne(t) || je(t))
751
+ if (t == null || Xe(t) || Bt(t) || Ne(t) || je(t))
752
752
  return t;
753
753
  if (Array.isArray(t))
754
754
  return B.array(t, {
@@ -826,12 +826,12 @@ function Jr(t, e) {
826
826
  L("Cannot apply '" + r.annotationType_ + "' to '" + String(i) + "' (kind: " + n + "):" + (`
827
827
  '` + r.annotationType_ + "' can only be used on properties with a function value."));
828
828
  }
829
- function Xr(t, e, n, i) {
829
+ function Zr(t, e, n, i) {
830
830
  e.annotationType_, i.value;
831
831
  }
832
832
  function qi(t, e, n, i, a) {
833
833
  var r, s, o, l, u, d, f;
834
- a === void 0 && (a = v.safeDescriptors), Xr(t, e, n, i);
834
+ a === void 0 && (a = v.safeDescriptors), Zr(t, e, n, i);
835
835
  var c = i.value;
836
836
  if ((r = e.options_) != null && r.bound) {
837
837
  var _;
@@ -859,18 +859,18 @@ function Wi(t, e) {
859
859
  return {
860
860
  annotationType_: t,
861
861
  options_: e,
862
- make_: Zr,
862
+ make_: Xr,
863
863
  extend_: Yr,
864
864
  decorate_20223_: es
865
865
  };
866
866
  }
867
- function Zr(t, e, n, i) {
867
+ function Xr(t, e, n, i) {
868
868
  var a;
869
869
  if (i === t.target_)
870
870
  return this.extend_(t, e, n, !1) === null ? 0 : 2;
871
- if ((a = this.options_) != null && a.bound && (!le(t.target_, e) || !Xe(t.target_[e])) && this.extend_(t, e, n, !1) === null)
871
+ if ((a = this.options_) != null && a.bound && (!le(t.target_, e) || !Ze(t.target_[e])) && this.extend_(t, e, n, !1) === null)
872
872
  return 0;
873
- if (Xe(n.value))
873
+ if (Ze(n.value))
874
874
  return 1;
875
875
  var r = Ji(t, this, e, n, !1, !1);
876
876
  return ae(i, e, r), 2;
@@ -881,7 +881,7 @@ function Yr(t, e, n, i) {
881
881
  }
882
882
  function es(t, e) {
883
883
  var n, i = e.name, a = e.addInitializer;
884
- return Xe(t) || (t = De(t)), (n = this.options_) != null && n.bound && a(function() {
884
+ return Ze(t) || (t = De(t)), (n = this.options_) != null && n.bound && a(function() {
885
885
  var r = this, s = r[i].bind(r);
886
886
  s.isMobXFlow = !0, r[i] = s;
887
887
  }), t;
@@ -892,7 +892,7 @@ function ts(t, e, n, i) {
892
892
  function Ji(t, e, n, i, a, r) {
893
893
  r === void 0 && (r = v.safeDescriptors), ts(t, e, n, i);
894
894
  var s = i.value;
895
- if (Xe(s) || (s = De(s)), a) {
895
+ if (Ze(s) || (s = De(s)), a) {
896
896
  var o;
897
897
  s = s.bind((o = t.proxy_) != null ? o : t.target_), s.isMobXFlow = !0;
898
898
  }
@@ -979,8 +979,8 @@ function ls(t, e) {
979
979
  function us(t, e, n, i) {
980
980
  e.annotationType_;
981
981
  }
982
- var ds = "true", cs = /* @__PURE__ */ Xi();
983
- function Xi(t) {
982
+ var ds = "true", cs = /* @__PURE__ */ Zi();
983
+ function Zi(t) {
984
984
  return {
985
985
  annotationType_: ds,
986
986
  options_: t,
@@ -1038,15 +1038,15 @@ function ms(t, e, n, i) {
1038
1038
  function hs(t, e) {
1039
1039
  L("'" + this.annotationType_ + "' cannot be used as a decorator");
1040
1040
  }
1041
- var ps = "observable", vs = "observable.ref", gs = "observable.shallow", ks = "observable.struct", Zi = {
1041
+ var ps = "observable", vs = "observable.ref", gs = "observable.shallow", ks = "observable.struct", Xi = {
1042
1042
  deep: !0,
1043
1043
  name: void 0,
1044
1044
  defaultDecorator: void 0,
1045
1045
  proxy: !0
1046
1046
  };
1047
- Object.freeze(Zi);
1047
+ Object.freeze(Xi);
1048
1048
  function ut(t) {
1049
- return t || Zi;
1049
+ return t || Xi;
1050
1050
  }
1051
1051
  var rn = /* @__PURE__ */ Ut(ps), ys = /* @__PURE__ */ Ut(vs, {
1052
1052
  enhancer: jt
@@ -1060,7 +1060,7 @@ function dt(t) {
1060
1060
  }
1061
1061
  function _s(t) {
1062
1062
  var e;
1063
- return t ? (e = t.defaultDecorator) != null ? e : Xi(t) : void 0;
1063
+ return t ? (e = t.defaultDecorator) != null ? e : Zi(t) : void 0;
1064
1064
  }
1065
1065
  function Ns(t) {
1066
1066
  var e, n;
@@ -1196,7 +1196,7 @@ var ve = /* @__PURE__ */ function(t) {
1196
1196
  return a = this.enhancer(a, this.value_, this.name_), this.equals(this.value_, a) ? v.UNCHANGED : a;
1197
1197
  }, n.setNewValue_ = function(a) {
1198
1198
  var r = this.value_;
1199
- this.value_ = a, this.reportChanged(), X(this) && Z(this, {
1199
+ this.value_ = a, this.reportChanged(), Z(this) && X(this, {
1200
1200
  type: se,
1201
1201
  object: this,
1202
1202
  newValue: a,
@@ -1627,7 +1627,7 @@ function qs(t) {
1627
1627
  } : Hs;
1628
1628
  }
1629
1629
  var Ws = "onBO", Js = "onBUO";
1630
- function Xs(t, e, n) {
1630
+ function Zs(t, e, n) {
1631
1631
  return ga(Ws, t, e, n);
1632
1632
  }
1633
1633
  function va(t, e, n) {
@@ -1640,11 +1640,11 @@ function ga(t, e, n, i) {
1640
1640
  o && (o.delete(r), o.size === 0 && delete a[s]);
1641
1641
  };
1642
1642
  }
1643
- var Zs = "never", ct = "always", Ys = "observed";
1643
+ var Xs = "never", ct = "always", Ys = "observed";
1644
1644
  function eo(t) {
1645
1645
  t.isolateGlobalState === !0 && Ds();
1646
1646
  var e = t.useProxies, n = t.enforceActions;
1647
- if (e !== void 0 && (v.useProxies = e === ct ? !0 : e === Zs ? !1 : typeof Proxy != "undefined"), e === "ifavailable" && (v.verifyProxies = !0), n !== void 0) {
1647
+ if (e !== void 0 && (v.useProxies = e === ct ? !0 : e === Xs ? !1 : typeof Proxy != "undefined"), e === "ifavailable" && (v.verifyProxies = !0), n !== void 0) {
1648
1648
  var i = n === ct ? ct : n === Ys;
1649
1649
  v.enforceActions = i, v.allowStateChanges = !(i === !0 || i === ct);
1650
1650
  }
@@ -1739,11 +1739,11 @@ De.bound = /* @__PURE__ */ re(ro);
1739
1739
  function Jn(t) {
1740
1740
  Y(t.cancel) && t.cancel();
1741
1741
  }
1742
- function Xe(t) {
1742
+ function Ze(t) {
1743
1743
  return (t == null ? void 0 : t.isMobXFlow) === !0;
1744
1744
  }
1745
1745
  function so(t, e) {
1746
- return t ? e !== void 0 ? Ze(t) ? t[E].values_.has(e) : !1 : Ze(t) || !!t[E] || Nn(t) || Ot(t) || Mt(t) : !1;
1746
+ return t ? e !== void 0 ? Xe(t) ? t[E].values_.has(e) : !1 : Xe(t) || !!t[E] || Nn(t) || Ot(t) || Mt(t) : !1;
1747
1747
  }
1748
1748
  function ba(t) {
1749
1749
  return so(t);
@@ -1809,7 +1809,7 @@ function H(t, e) {
1809
1809
  ue(n);
1810
1810
  }
1811
1811
  }
1812
- function X(t) {
1812
+ function Z(t) {
1813
1813
  return t.changeListeners_ !== void 0 && t.changeListeners_.length > 0;
1814
1814
  }
1815
1815
  function ot(t, e) {
@@ -1819,7 +1819,7 @@ function ot(t, e) {
1819
1819
  i !== -1 && n.splice(i, 1);
1820
1820
  });
1821
1821
  }
1822
- function Z(t, e) {
1822
+ function X(t, e) {
1823
1823
  var n = _e(), i = t.changeListeners_;
1824
1824
  if (i) {
1825
1825
  i = i.slice();
@@ -1836,7 +1836,7 @@ function Sa(t, e, n) {
1836
1836
  });
1837
1837
  }), t;
1838
1838
  }
1839
- var Xn = "splice", se = "update", uo = 1e4, co = {
1839
+ var Zn = "splice", se = "update", uo = 1e4, co = {
1840
1840
  get: function(e, n) {
1841
1841
  var i = e[E];
1842
1842
  return n === E ? i : n === "length" ? i.getArrayLength_() : typeof n == "string" && !isNaN(n) ? i.get_(parseInt(n)) : le(wt, n) ? wt[n] : e[n];
@@ -1894,7 +1894,7 @@ var Xn = "splice", se = "update", uo = 1e4, co = {
1894
1894
  if (i === void 0 ? i = 0 : i > o ? i = o : i < 0 && (i = Math.max(0, o + i)), arguments.length === 1 ? a = o - i : a == null ? a = 0 : a = Math.max(0, Math.min(a, o - i)), r === void 0 && (r = nn), Q(this)) {
1895
1895
  var l = H(this, {
1896
1896
  object: this.proxy_,
1897
- type: Xn,
1897
+ type: Zn,
1898
1898
  index: i,
1899
1899
  removedCount: a,
1900
1900
  added: r
@@ -1925,7 +1925,7 @@ var Xn = "splice", se = "update", uo = 1e4, co = {
1925
1925
  return o;
1926
1926
  }
1927
1927
  }, e.notifyArrayChildUpdate_ = function(i, a, r) {
1928
- var s = !this.owned_ && He(), o = X(this), l = o || s ? {
1928
+ var s = !this.owned_ && He(), o = Z(this), l = o || s ? {
1929
1929
  observableKind: "array",
1930
1930
  object: this.proxy_,
1931
1931
  type: se,
@@ -1934,20 +1934,20 @@ var Xn = "splice", se = "update", uo = 1e4, co = {
1934
1934
  newValue: a,
1935
1935
  oldValue: r
1936
1936
  } : null;
1937
- this.atom_.reportChanged(), o && Z(this, l);
1937
+ this.atom_.reportChanged(), o && X(this, l);
1938
1938
  }, e.notifyArraySplice_ = function(i, a, r) {
1939
- var s = !this.owned_ && He(), o = X(this), l = o || s ? {
1939
+ var s = !this.owned_ && He(), o = Z(this), l = o || s ? {
1940
1940
  observableKind: "array",
1941
1941
  object: this.proxy_,
1942
1942
  debugObjectName: this.atom_.name_,
1943
- type: Xn,
1943
+ type: Zn,
1944
1944
  index: i,
1945
1945
  removed: r,
1946
1946
  added: a,
1947
1947
  removedCount: r.length,
1948
1948
  addedCount: a.length
1949
1949
  } : null;
1950
- this.atom_.reportChanged(), o && Z(this, l);
1950
+ this.atom_.reportChanged(), o && X(this, l);
1951
1951
  }, e.get_ = function(i) {
1952
1952
  if (this.legacyMode_ && i >= this.values_.length) {
1953
1953
  console.warn("[mobx] Out of bounds read: " + i);
@@ -2164,7 +2164,7 @@ var wa = /* @__PURE__ */ function() {
2164
2164
  return !1;
2165
2165
  }
2166
2166
  if (this.has_(i)) {
2167
- var s = He(), o = X(this), l = o || s ? {
2167
+ var s = He(), o = Z(this), l = o || s ? {
2168
2168
  observableKind: "map",
2169
2169
  debugObjectName: this.name_,
2170
2170
  type: Ft,
@@ -2177,13 +2177,13 @@ var wa = /* @__PURE__ */ function() {
2177
2177
  a.keysAtom_.reportChanged(), (u = a.hasMap_.get(i)) == null || u.setNewValue_(!1);
2178
2178
  var d = a.data_.get(i);
2179
2179
  d.setNewValue_(void 0), a.data_.delete(i);
2180
- }), o && Z(this, l), !0;
2180
+ }), o && X(this, l), !0;
2181
2181
  }
2182
2182
  return !1;
2183
2183
  }, e.updateValue_ = function(i, a) {
2184
2184
  var r = this.data_.get(i);
2185
2185
  if (a = r.prepareNewValue_(a), a !== v.UNCHANGED) {
2186
- var s = He(), o = X(this), l = o || s ? {
2186
+ var s = He(), o = Z(this), l = o || s ? {
2187
2187
  observableKind: "map",
2188
2188
  debugObjectName: this.name_,
2189
2189
  type: se,
@@ -2192,7 +2192,7 @@ var wa = /* @__PURE__ */ function() {
2192
2192
  name: i,
2193
2193
  newValue: a
2194
2194
  } : null;
2195
- r.setNewValue_(a), o && Z(this, l);
2195
+ r.setNewValue_(a), o && X(this, l);
2196
2196
  }
2197
2197
  }, e.addValue_ = function(i, a) {
2198
2198
  var r = this;
@@ -2200,7 +2200,7 @@ var wa = /* @__PURE__ */ function() {
2200
2200
  var u, d = new ve(a, r.enhancer_, "ObservableMap.key", !1);
2201
2201
  r.data_.set(i, d), a = d.value_, (u = r.hasMap_.get(i)) == null || u.setNewValue_(!0), r.keysAtom_.reportChanged();
2202
2202
  });
2203
- var s = He(), o = X(this), l = o || s ? {
2203
+ var s = He(), o = Z(this), l = o || s ? {
2204
2204
  observableKind: "map",
2205
2205
  debugObjectName: this.name_,
2206
2206
  type: ce,
@@ -2208,7 +2208,7 @@ var wa = /* @__PURE__ */ function() {
2208
2208
  name: i,
2209
2209
  newValue: a
2210
2210
  } : null;
2211
- o && Z(this, l);
2211
+ o && X(this, l);
2212
2212
  }, e.get = function(i) {
2213
2213
  return this.has(i) ? this.dehanceValue_(this.data_.get(i).get()) : this.dehanceValue_(void 0);
2214
2214
  }, e.dehanceValue_ = function(i) {
@@ -2379,14 +2379,14 @@ var Ea = /* @__PURE__ */ function() {
2379
2379
  oe(function() {
2380
2380
  a.data_.add(a.enhancer_(i, void 0)), a.atom_.reportChanged();
2381
2381
  });
2382
- var s = !1, o = X(this), l = o || s ? {
2382
+ var s = !1, o = Z(this), l = o || s ? {
2383
2383
  observableKind: "set",
2384
2384
  debugObjectName: this.name_,
2385
2385
  type: ce,
2386
2386
  object: this,
2387
2387
  newValue: i
2388
2388
  } : null;
2389
- o && Z(this, l);
2389
+ o && X(this, l);
2390
2390
  }
2391
2391
  return this;
2392
2392
  }, e.delete = function(i) {
@@ -2401,7 +2401,7 @@ var Ea = /* @__PURE__ */ function() {
2401
2401
  return !1;
2402
2402
  }
2403
2403
  if (this.has(i)) {
2404
- var s = !1, o = X(this), l = o || s ? {
2404
+ var s = !1, o = Z(this), l = o || s ? {
2405
2405
  observableKind: "set",
2406
2406
  debugObjectName: this.name_,
2407
2407
  type: Ft,
@@ -2410,7 +2410,7 @@ var Ea = /* @__PURE__ */ function() {
2410
2410
  } : null;
2411
2411
  return oe(function() {
2412
2412
  a.atom_.reportChanged(), a.data_.delete(i);
2413
- }), o && Z(this, l), !0;
2413
+ }), o && X(this, l), !0;
2414
2414
  }
2415
2415
  return !1;
2416
2416
  }, e.has = function(i) {
@@ -2473,7 +2473,7 @@ var Ea = /* @__PURE__ */ function() {
2473
2473
  return "Set";
2474
2474
  }
2475
2475
  }]), t;
2476
- }(), je = /* @__PURE__ */ Se("ObservableSet", Ea), Zn = /* @__PURE__ */ Object.create(null), Yn = "remove", Ca = /* @__PURE__ */ function() {
2476
+ }(), je = /* @__PURE__ */ Se("ObservableSet", Ea), Xn = /* @__PURE__ */ Object.create(null), Yn = "remove", Ca = /* @__PURE__ */ function() {
2477
2477
  function t(n, i, a, r) {
2478
2478
  i === void 0 && (i = /* @__PURE__ */ new Map()), r === void 0 && (r = cs), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = n, this.values_ = i, this.name_ = a, this.defaultAnnotation_ = r, this.keysAtom_ = new at("ObservableObject.keys"), this.isPlainObject_ = me(this.target_);
2479
2479
  }
@@ -2496,7 +2496,7 @@ var Ea = /* @__PURE__ */ function() {
2496
2496
  a = s.newValue;
2497
2497
  }
2498
2498
  if (a = r.prepareNewValue_(a), a !== v.UNCHANGED) {
2499
- var o = X(this), l = !1, u = o || l ? {
2499
+ var o = Z(this), l = !1, u = o || l ? {
2500
2500
  type: se,
2501
2501
  observableKind: "object",
2502
2502
  debugObjectName: this.name_,
@@ -2505,7 +2505,7 @@ var Ea = /* @__PURE__ */ function() {
2505
2505
  name: i,
2506
2506
  newValue: a
2507
2507
  } : null;
2508
- r.setNewValue_(a), o && Z(this, u);
2508
+ r.setNewValue_(a), o && X(this, u);
2509
2509
  }
2510
2510
  return !0;
2511
2511
  }, e.get_ = function(i) {
@@ -2664,7 +2664,7 @@ var Ea = /* @__PURE__ */ function() {
2664
2664
  try {
2665
2665
  var s, o;
2666
2666
  q();
2667
- var l = X(this), u = !1, d = this.values_.get(i), f = void 0;
2667
+ var l = Z(this), u = !1, d = this.values_.get(i), f = void 0;
2668
2668
  if (!d && (l || u)) {
2669
2669
  var c;
2670
2670
  f = (c = yt(this.target_, i)) == null ? void 0 : c.value;
@@ -2683,7 +2683,7 @@ var Ea = /* @__PURE__ */ function() {
2683
2683
  oldValue: f,
2684
2684
  name: i
2685
2685
  };
2686
- l && Z(this, _);
2686
+ l && X(this, _);
2687
2687
  }
2688
2688
  } finally {
2689
2689
  W();
@@ -2694,7 +2694,7 @@ var Ea = /* @__PURE__ */ function() {
2694
2694
  }, e.intercept_ = function(i) {
2695
2695
  return st(this, i);
2696
2696
  }, e.notifyPropertyAddition_ = function(i, a) {
2697
- var r, s, o = X(this), l = !1;
2697
+ var r, s, o = Z(this), l = !1;
2698
2698
  if (o || l) {
2699
2699
  var u = o || l ? {
2700
2700
  type: ce,
@@ -2704,7 +2704,7 @@ var Ea = /* @__PURE__ */ function() {
2704
2704
  name: i,
2705
2705
  newValue: a
2706
2706
  } : null;
2707
- o && Z(this, u);
2707
+ o && X(this, u);
2708
2708
  }
2709
2709
  (r = this.pendingKeys_) == null || (s = r.get(i)) == null || s.set(!0), this.keysAtom_.reportChanged();
2710
2710
  }, e.ownKeys_ = function() {
@@ -2722,7 +2722,7 @@ function Ue(t, e) {
2722
2722
  }
2723
2723
  var go = /* @__PURE__ */ Se("ObservableObjectAdministration", Ca);
2724
2724
  function ei(t) {
2725
- return Zn[t] || (Zn[t] = {
2725
+ return Xn[t] || (Xn[t] = {
2726
2726
  get: function() {
2727
2727
  return this[E].getObservablePropValue_(t);
2728
2728
  },
@@ -2731,7 +2731,7 @@ function ei(t) {
2731
2731
  }
2732
2732
  });
2733
2733
  }
2734
- function Ze(t) {
2734
+ function Xe(t) {
2735
2735
  return Pt(t) ? go(t[E]) : !1;
2736
2736
  }
2737
2737
  function ti(t, e, n) {
@@ -2745,7 +2745,7 @@ var ko = /* @__PURE__ */ Ra(0), yo = /* @__PURE__ */ function() {
2745
2745
  t = !0;
2746
2746
  }
2747
2747
  }), Object.create(e)[0] = 1, t === !1;
2748
- }(), Xt = 0, xa = function() {
2748
+ }(), Zt = 0, xa = function() {
2749
2749
  };
2750
2750
  function bo(t, e) {
2751
2751
  Object.setPrototypeOf ? Object.setPrototypeOf(t.prototype, e) : t.prototype.__proto__ !== void 0 ? t.prototype.__proto__ = e : t.prototype = e;
@@ -2820,10 +2820,10 @@ function So(t) {
2820
2820
  ae(Cn.prototype, "" + t, Ra(t));
2821
2821
  }
2822
2822
  function Ta(t) {
2823
- if (t > Xt) {
2824
- for (var e = Xt; e < t + 100; e++)
2823
+ if (t > Zt) {
2824
+ for (var e = Zt; e < t + 100; e++)
2825
2825
  So(e);
2826
- Xt = t;
2826
+ Zt = t;
2827
2827
  }
2828
2828
  }
2829
2829
  Ta(1e3);
@@ -2842,7 +2842,7 @@ function Le(t, e) {
2842
2842
  var n = t.data_.get(e) || t.hasMap_.get(e);
2843
2843
  return n || L(25, e, fn(t)), n;
2844
2844
  }
2845
- if (Ze(t)) {
2845
+ if (Xe(t)) {
2846
2846
  if (!e)
2847
2847
  return L(26);
2848
2848
  var i = t[E].values_.get(e);
@@ -2870,7 +2870,7 @@ function fn(t, e) {
2870
2870
  else {
2871
2871
  if ($t(t))
2872
2872
  return t.name;
2873
- Ze(t) || Ne(t) || je(t) ? n = Da(t) : n = Le(t);
2873
+ Xe(t) || Ne(t) || je(t) ? n = Da(t) : n = Le(t);
2874
2874
  }
2875
2875
  return n.name_;
2876
2876
  }
@@ -3381,7 +3381,7 @@ const te = class te {
3381
3381
  try {
3382
3382
  const i = (n = this._config) == null ? void 0 : n.account;
3383
3383
  if (this._config = e, i !== e.account) {
3384
- const a = await Zl(e.account);
3384
+ const a = await Xl(e.account);
3385
3385
  this.setAccount(a);
3386
3386
  }
3387
3387
  if (e.getProductDataSource) {
@@ -3691,9 +3691,9 @@ Ua ? Symbol.for("react.forward_ref") : typeof Un == "function" && Un(function(t)
3691
3691
  Ua ? Symbol.for("react.memo") : typeof Mn == "function" && Mn(function(t) {
3692
3692
  return null;
3693
3693
  }).$$typeof;
3694
- var Zt;
3694
+ var Xt;
3695
3695
  Uo(or);
3696
- Zt = hn.finalizeAllImmediately;
3696
+ Xt = hn.finalizeAllImmediately;
3697
3697
  function qo(t, e) {
3698
3698
  return e === void 0 && (e = "observed"), Ho(t, e);
3699
3699
  }
@@ -3744,7 +3744,7 @@ class Jo {
3744
3744
  return this._numSetPropsApplied === 1;
3745
3745
  }
3746
3746
  }
3747
- function Xo(t) {
3747
+ function Zo(t) {
3748
3748
  return new Jo(t);
3749
3749
  }
3750
3750
  class Gd {
@@ -3758,10 +3758,10 @@ class Qd {
3758
3758
  return this._value;
3759
3759
  }
3760
3760
  }
3761
- var Ma = /* @__PURE__ */ ((t) => (t.VTEX = "VTEX", t.VTEX_IO = "VTEX-IO", t.VTEX_CMS = "PORTAL-VTEX", t.PLATFORM = "PLATFORM", t.UNKNOWN = "UNKNOWN", t))(Ma || {}), Zo = /* @__PURE__ */ ((t) => (t.PLATFORM = "platform_module", t.ADENDA = "subscription_module", t.APP_STORE = "app_store", t))(Zo || {}), $a = /* @__PURE__ */ ((t) => (t.ACTIVE = "active_contract", t.INACTIVE = "inactive_contract", t))($a || {}), Yo = /* @__PURE__ */ ((t) => (t.LITE = "lite", t.STANDARD = "standard", t.PRO = "pro", t))(Yo || {}), el = /* @__PURE__ */ ((t) => (t.LITE = "PLAN_LITE", t.STANDARD = "PLAN_ESTANDAR", t.PRO = "PLAN_PRO", t.NONE = "NO_PLAN", t))(el || {}), tl = /* @__PURE__ */ ((t) => (t.PAST = "past", t.LIVE = "live", t.FUTURE = "future", t))(tl || {});
3761
+ var Ma = /* @__PURE__ */ ((t) => (t.VTEX = "VTEX", t.VTEX_IO = "VTEX-IO", t.VTEX_CMS = "PORTAL-VTEX", t.PLATFORM = "PLATFORM", t.UNKNOWN = "UNKNOWN", t))(Ma || {}), Xo = /* @__PURE__ */ ((t) => (t.PLATFORM = "platform_module", t.ADENDA = "subscription_module", t.APP_STORE = "app_store", t))(Xo || {}), $a = /* @__PURE__ */ ((t) => (t.ACTIVE = "active_contract", t.INACTIVE = "inactive_contract", t))($a || {}), Yo = /* @__PURE__ */ ((t) => (t.LITE = "lite", t.STANDARD = "standard", t.PRO = "pro", t))(Yo || {}), el = /* @__PURE__ */ ((t) => (t.LITE = "PLAN_LITE", t.STANDARD = "PLAN_ESTANDAR", t.PRO = "PLAN_PRO", t.NONE = "NO_PLAN", t))(el || {}), tl = /* @__PURE__ */ ((t) => (t.PAST = "past", t.LIVE = "live", t.FUTURE = "future", t))(tl || {});
3762
3762
  class Dn {
3763
3763
  constructor(e) {
3764
- x(this, "root", Xo(this));
3764
+ x(this, "root", Zo(this));
3765
3765
  x(this, "id");
3766
3766
  x(this, "account");
3767
3767
  x(this, "accountType", Ma.UNKNOWN);
@@ -4457,10 +4457,10 @@ const Jl = () => ["account"], Hd = () => {
4457
4457
  findQuery: i,
4458
4458
  account: e
4459
4459
  };
4460
- }, Xl = Pi();
4461
- async function Zl(t) {
4460
+ }, Zl = Pi();
4461
+ async function Xl(t) {
4462
4462
  const e = await Ba.get(t);
4463
- return Xl.set(bn, e), e;
4463
+ return Zl.set(bn, e), e;
4464
4464
  }
4465
4465
  var Yl = /* @__PURE__ */ ((t) => (t.CREATED = "CREATED", t.STARTING = "STARTING", t.LIVE = "LIVE", t.FINALIZED = "FINALIZED", t))(Yl || {});
4466
4466
  const qd = {
@@ -4532,7 +4532,7 @@ const en = "addToCartHooks.notification.error", gi = {
4532
4532
  errorOpeningNewTab: en,
4533
4533
  successAddingToCart: "addToCartHooks.notification.success"
4534
4534
  };
4535
- async function Xd(t) {
4535
+ async function Zd(t) {
4536
4536
  const e = {
4537
4537
  ...t,
4538
4538
  action: {
@@ -4854,7 +4854,7 @@ var yi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Qu = function(e, n, i) {
4854
4854
  cacheUserLanguage: function(e, n) {
4855
4855
  n.lookupSessionStorage && _i() && window.sessionStorage.setItem(n.lookupSessionStorage, e);
4856
4856
  }
4857
- }, Xu = {
4857
+ }, Zu = {
4858
4858
  name: "navigator",
4859
4859
  lookup: function(e) {
4860
4860
  var n = [];
@@ -4866,7 +4866,7 @@ var yi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Qu = function(e, n, i) {
4866
4866
  }
4867
4867
  return n.length > 0 ? n : void 0;
4868
4868
  }
4869
- }, Zu = {
4869
+ }, Xu = {
4870
4870
  name: "htmlTag",
4871
4871
  lookup: function(e) {
4872
4872
  var n, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
@@ -4913,7 +4913,7 @@ function td() {
4913
4913
  }
4914
4914
  };
4915
4915
  }
4916
- var Xa = /* @__PURE__ */ function() {
4916
+ var Za = /* @__PURE__ */ function() {
4917
4917
  function t(e) {
4918
4918
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4919
4919
  Uu(this, t), this.type = "languageDetector", this.detectors = {}, this.init(e, n);
@@ -4926,7 +4926,7 @@ var Xa = /* @__PURE__ */ function() {
4926
4926
  languageUtils: {}
4927
4927
  }, this.options = Gu(i, this.options || {}, td()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(r) {
4928
4928
  return r.replace("-", "_");
4929
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Hu), this.addDetector(qu), this.addDetector(Wu), this.addDetector(Ju), this.addDetector(Xu), this.addDetector(Zu), this.addDetector(Yu), this.addDetector(ed);
4929
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Hu), this.addDetector(qu), this.addDetector(Wu), this.addDetector(Ju), this.addDetector(Zu), this.addDetector(Xu), this.addDetector(Yu), this.addDetector(ed);
4930
4930
  }
4931
4931
  }, {
4932
4932
  key: "addDetector",
@@ -4958,9 +4958,9 @@ var Xa = /* @__PURE__ */ function() {
4958
4958
  }
4959
4959
  }]), t;
4960
4960
  }();
4961
- Xa.type = "languageDetector";
4961
+ Za.type = "languageDetector";
4962
4962
  function nd(t, e) {
4963
- t.use(e).use(Xa).init({
4963
+ t.use(e).use(Za).init({
4964
4964
  resources: {},
4965
4965
  fallbackLng: "en",
4966
4966
  debug: !1,
@@ -5160,9 +5160,9 @@ function od(t, e, n) {
5160
5160
  const i = Rt(t, n);
5161
5161
  return i !== void 0 ? i : Rt(e, n);
5162
5162
  }
5163
- function Za(t, e, n) {
5163
+ function Xa(t, e, n) {
5164
5164
  for (const i in e)
5165
- i !== "__proto__" && i !== "constructor" && (i in t ? typeof t[i] == "string" || t[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? n && (t[i] = e[i]) : Za(t[i], e[i], n) : t[i] = e[i]);
5165
+ i !== "__proto__" && i !== "constructor" && (i in t ? typeof t[i] == "string" || t[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? n && (t[i] = e[i]) : Xa(t[i], e[i], n) : t[i] = e[i]);
5166
5166
  return t;
5167
5167
  }
5168
5168
  function Ae(t) {
@@ -5278,7 +5278,7 @@ class wi extends Kt {
5278
5278
  }, o = [e, n];
5279
5279
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = n, n = o[1]), this.addNamespaces(n);
5280
5280
  let l = Rt(this.data, o) || {};
5281
- a ? Za(l, i, r) : l = {
5281
+ a ? Xa(l, i, r) : l = {
5282
5282
  ...l,
5283
5283
  ...i
5284
5284
  }, Oi(this.data, o, l), s.silent || this.emit("added", e, n, i);
@@ -6603,7 +6603,7 @@ const Rd = {
6603
6603
  }
6604
6604
  };
6605
6605
  nd(K, Rd);
6606
- const Zd = (t) => ju(K, t);
6606
+ const Xd = (t) => ju(K, t);
6607
6607
  let Vn = /* @__PURE__ */ new Map();
6608
6608
  const kn = Di(Vn), Yd = ({ children: t, stores: e }) => {
6609
6609
  const n = yn(kn), i = sr(() => {
@@ -6620,7 +6620,7 @@ function tc(t) {
6620
6620
  }
6621
6621
  export {
6622
6622
  $a as AccountContractStatusTypes,
6623
- Zo as AccountContractTypes,
6623
+ Xo as AccountContractTypes,
6624
6624
  Bd as AccountInvalidError,
6625
6625
  el as AccountPlanDescriptionTypes,
6626
6626
  il as AccountRestRepository,
@@ -6656,22 +6656,22 @@ export {
6656
6656
  Vu as buildTranslations,
6657
6657
  fe as coreLogger,
6658
6658
  Pu as createActionFactory,
6659
- Xo as createAggregateRoot,
6659
+ Zo as createAggregateRoot,
6660
6660
  Jd as createStore,
6661
6661
  Vi as customFetch,
6662
6662
  Vd as downloadFile,
6663
6663
  Ud as fileOrigin,
6664
- Zl as getAccount,
6664
+ Xl as getAccount,
6665
6665
  Kd as getClientTimeZone,
6666
6666
  tc as getStore,
6667
- Xl as globalAtomStore,
6667
+ Zl as globalAtomStore,
6668
6668
  nd as i18Init,
6669
6669
  xr as jsDownload,
6670
6670
  $d as logger,
6671
6671
  Rn as nizza,
6672
- Zd as registerTranslations,
6672
+ Xd as registerTranslations,
6673
6673
  ju as registerTranslationsOf,
6674
- Xd as runAddToCartHooks,
6674
+ Zd as runAddToCartHooks,
6675
6675
  jd as searchParams,
6676
6676
  Fo as shortId,
6677
6677
  Hd as useAccount,
@@ -6679,4 +6679,3 @@ export {
6679
6679
  ec as useStore,
6680
6680
  zd as validateRequiredProps
6681
6681
  };
6682
- //# sourceMappingURL=index.mjs.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.5.0-beta.16",
3
+ "version": "0.5.0-beta.17",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.5.0-beta.16",
3
+ "version": "0.5.0-beta.17",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",