@nizza/core 0.5.0-beta.7 → 0.5.0-beta.8

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
@@ -1,13 +1,13 @@
1
- var $t = Object.defineProperty;
2
- var jt = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var R = (n, e, t) => (jt(n, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var jt = Object.defineProperty;
2
+ var zt = (n, e, t) => e in n ? jt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var R = (n, e, t) => (zt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as M from "react";
5
- import fe, { createContext as ft, useReducer as zt, useEffect as pt, useDebugValue as Bt, useCallback as Qt, useContext as Ce, useMemo as Gt } from "react";
6
- import { jsx as Kt } from "react/jsx-runtime";
5
+ import fe, { createContext as ft, useReducer as Bt, useEffect as pt, useDebugValue as Qt, useCallback as Gt, useContext as Ce, useMemo as Kt } from "react";
6
+ import { jsx as Wt } 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
- let Wt = 0;
9
- function Jt(n, e) {
10
- const t = `atom${++Wt}`, i = {
8
+ let Jt = 0;
9
+ function qt(n, e) {
10
+ const t = `atom${++Jt}`, i = {
11
11
  toString: () => t
12
12
  };
13
13
  return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
@@ -19,7 +19,7 @@ function Jt(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
22
- const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), qt = (n, e) => {
22
+ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Ht = (n, e) => {
23
23
  re.set(n, e), n.catch(() => {
24
24
  }).finally(() => re.delete(n));
25
25
  }, Ae = (n, e) => {
@@ -29,7 +29,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
29
29
  n.status = "fulfilled", n.value = e;
30
30
  }, Ve = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
32
- }, Ht = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), _e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Zt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
32
+ }, Zt = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), _e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Xt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
@@ -57,14 +57,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
57
57
  };
58
58
  if (h && o(m, b, h), J(g, b) && g.d === b.d)
59
59
  return g;
60
- if (z(g) && z(b) && Zt(g, b)) {
60
+ if (z(g) && z(b) && Xt(g, b)) {
61
61
  if (g.d === b.d)
62
62
  return g;
63
63
  b.v = g.v;
64
64
  }
65
65
  return r(m, b), b;
66
66
  }, u = (m, p, h, g) => {
67
- if (Ht(p)) {
67
+ if (Zt(p)) {
68
68
  let b;
69
69
  const C = () => {
70
70
  const E = s(m);
@@ -92,7 +92,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
92
92
  ), E(T));
93
93
  };
94
94
  });
95
- return v.orig = p, v.status = "pending", qt(v, (E) => {
95
+ return v.orig = p, v.status = "pending", Ht(v, (E) => {
96
96
  E && b(E), g == null || g();
97
97
  }), l(m, v, h);
98
98
  }
@@ -316,14 +316,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
316
316
  };
317
317
  let Se;
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 Xt = () => (Se || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
319
+ const Yt = () => (Se || ((_ ? "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
  ), Se = ht()), Se);
322
- var Yt = { 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
- const en = ft(void 0), gt = (n) => {
324
- const e = Ce(en);
325
- return (n == null ? void 0 : n.store) || e || Xt();
326
- }, tn = (n) => typeof (n == null ? void 0 : n.then) == "function", nn = fe.use || ((n) => {
322
+ var en = { 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
+ const tn = ft(void 0), gt = (n) => {
324
+ const e = Ce(tn);
325
+ return (n == null ? void 0 : n.store) || e || Yt();
326
+ }, nn = (n) => typeof (n == null ? void 0 : n.then) == "function", an = fe.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -337,8 +337,8 @@ const en = ft(void 0), gt = (n) => {
337
337
  }
338
338
  ), n);
339
339
  });
340
- function an(n, e) {
341
- const t = gt(e), [[i, a, s], r] = zt(
340
+ function sn(n, e) {
341
+ const t = gt(e), [[i, a, s], r] = Bt(
342
342
  (u) => {
343
343
  const d = t.get(n);
344
344
  return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
@@ -358,37 +358,37 @@ function an(n, e) {
358
358
  r();
359
359
  });
360
360
  return r(), u;
361
- }, [t, n, l]), Bt(o), tn(o) ? nn(o) : o;
361
+ }, [t, n, l]), Qt(o), nn(o) ? an(o) : o;
362
362
  }
363
- function sn(n, e) {
363
+ function rn(n, e) {
364
364
  const t = gt(e);
365
- return Qt(
365
+ return Gt(
366
366
  (...a) => {
367
- if ((Yt ? "production" : void 0) !== "production" && !("write" in n))
367
+ if ((en ? "production" : void 0) !== "production" && !("write" in n))
368
368
  throw new Error("not writable atom");
369
369
  return t.set(n, ...a);
370
370
  },
371
371
  [t, n]
372
372
  );
373
373
  }
374
- function rn(n, e) {
374
+ function on(n, e) {
375
375
  return [
376
- an(n, e),
376
+ sn(n, e),
377
377
  // We do wrong type assertion here, which results in throwing an error.
378
- sn(n, e)
378
+ rn(n, e)
379
379
  ];
380
380
  }
381
- const Ee = Jt(null);
381
+ const Ee = qt(null);
382
382
  Ee.debugLabel = "accountAtom";
383
- var on = { 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 };
383
+ var ln = { 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
- NZ_AWS_REGION: ln,
386
- NZ_BACKOFFICE_BACK_URL: dn,
387
- NZ_CORE_SERVICES_GRAPHQL_URL: un,
388
- NZ_CORE_SERVICES_REST_URL: cn
389
- } = on, mn = {
385
+ NZ_AWS_REGION: dn,
386
+ NZ_BACKOFFICE_BACK_URL: un,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: cn,
388
+ NZ_CORE_SERVICES_REST_URL: mn
389
+ } = ln, fn = {
390
390
  AWS: {
391
- region: ln,
391
+ region: dn,
392
392
  cognito: {
393
393
  userPoolId: "us-east-1_knSlGEmJ0",
394
394
  userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
@@ -396,9 +396,9 @@ const {
396
396
  },
397
397
  // Back services
398
398
  apiUrls: {
399
- restV1: dn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
- restV2: cn || "https://core-services-dev.nizza.com/api",
401
- graphql: un || "https://core-services-dev.nizza.com/graphql",
399
+ restV1: un || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: mn || "https://core-services-dev.nizza.com/api",
401
+ graphql: cn || "https://core-services-dev.nizza.com/graphql",
402
402
  corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
403
403
  },
404
404
  publicUrls: {
@@ -452,9 +452,9 @@ async function kt(n) {
452
452
  }
453
453
  const Ts = (n) => kt({ ...n, contentTypeJson: !1, raw: !1 });
454
454
  function Is(n, e, t) {
455
- fetch(e).then((i) => i.blob()).then((i) => fn(i, `${n}.${t}`));
455
+ fetch(e).then((i) => i.blob()).then((i) => pn(i, `${n}.${t}`));
456
456
  }
457
- const fn = (n, e, t) => {
457
+ const pn = (n, e, t) => {
458
458
  const i = [n], a = new Blob(i, {
459
459
  type: t != null ? t : "application/octet-stream"
460
460
  });
@@ -465,7 +465,7 @@ const fn = (n, e, t) => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
467
467
  };
468
- var pn = { 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 };
468
+ var hn = { 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 };
469
469
  const Ue = (n) => {
470
470
  let e;
471
471
  const t = /* @__PURE__ */ new Set(), i = (l, u) => {
@@ -475,12 +475,12 @@ const Ue = (n) => {
475
475
  e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
476
476
  }
477
477
  }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
478
- (pn ? "production" : void 0) !== "production" && console.warn(
478
+ (hn ? "production" : void 0) !== "production" && console.warn(
479
479
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
480
480
  ), t.clear();
481
481
  } };
482
482
  return e = n(i, a, o), o;
483
- }, hn = (n) => n ? Ue(n) : Ue;
483
+ }, gn = (n) => n ? Ue(n) : Ue;
484
484
  var vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
485
  function xe(n) {
486
486
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
@@ -496,35 +496,35 @@ var St = { exports: {} }, yt = {}, Nt = { exports: {} }, bt = {};
496
496
  * LICENSE file in the root directory of this source tree.
497
497
  */
498
498
  var W = fe;
499
- function gn(n, e) {
499
+ function kn(n, e) {
500
500
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
501
501
  }
502
- var kn = typeof Object.is == "function" ? Object.is : gn, vn = W.useState, Sn = W.useEffect, yn = W.useLayoutEffect, Nn = W.useDebugValue;
503
- function bn(n, e) {
504
- var t = e(), i = vn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
- return yn(function() {
502
+ var vn = typeof Object.is == "function" ? Object.is : kn, Sn = W.useState, yn = W.useEffect, Nn = W.useLayoutEffect, bn = W.useDebugValue;
503
+ function Fn(n, e) {
504
+ var t = e(), i = Sn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
+ return Nn(function() {
506
506
  a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
507
- }, [n, t, e]), Sn(function() {
507
+ }, [n, t, e]), yn(function() {
508
508
  return ye(a) && s({ inst: a }), n(function() {
509
509
  ye(a) && s({ inst: a });
510
510
  });
511
- }, [n]), Nn(t), t;
511
+ }, [n]), bn(t), t;
512
512
  }
513
513
  function ye(n) {
514
514
  var e = n.getSnapshot;
515
515
  n = n.value;
516
516
  try {
517
517
  var t = e();
518
- return !kn(n, t);
518
+ return !vn(n, t);
519
519
  } catch {
520
520
  return !0;
521
521
  }
522
522
  }
523
- function Fn(n, e) {
523
+ function wn(n, e) {
524
524
  return e();
525
525
  }
526
- var wn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Fn : bn;
527
- bt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : wn;
526
+ var Cn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? wn : Fn;
527
+ bt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : Cn;
528
528
  Nt.exports = bt;
529
529
  var Ft = Nt.exports;
530
530
  /**
@@ -536,19 +536,19 @@ var Ft = Nt.exports;
536
536
  * This source code is licensed under the MIT license found in the
537
537
  * LICENSE file in the root directory of this source tree.
538
538
  */
539
- var pe = fe, Cn = Ft;
540
- function En(n, e) {
539
+ var pe = fe, En = Ft;
540
+ function xn(n, e) {
541
541
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
542
  }
543
- var xn = typeof Object.is == "function" ? Object.is : En, On = Cn.useSyncExternalStore, Rn = pe.useRef, Tn = pe.useEffect, In = pe.useMemo, Dn = pe.useDebugValue;
543
+ var On = typeof Object.is == "function" ? Object.is : xn, Rn = En.useSyncExternalStore, Tn = pe.useRef, In = pe.useEffect, Dn = pe.useMemo, Ln = pe.useDebugValue;
544
544
  yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
- var s = Rn(null);
545
+ var s = Tn(null);
546
546
  if (s.current === null) {
547
547
  var r = { hasValue: !1, value: null };
548
548
  s.current = r;
549
549
  } else
550
550
  r = s.current;
551
- s = In(function() {
551
+ s = Dn(function() {
552
552
  function l(S) {
553
553
  if (!u) {
554
554
  if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
@@ -558,7 +558,7 @@ yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
558
558
  }
559
559
  return f = S;
560
560
  }
561
- if (y = f, xn(d, S))
561
+ if (y = f, On(d, S))
562
562
  return y;
563
563
  var k = i(S);
564
564
  return a !== void 0 && a(y, k) ? y : (d = S, f = k);
@@ -570,38 +570,38 @@ yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
570
570
  return l(c());
571
571
  }];
572
572
  }, [e, t, i, a]);
573
- var o = On(n, s[0], s[1]);
574
- return Tn(function() {
573
+ var o = Rn(n, s[0], s[1]);
574
+ return In(function() {
575
575
  r.hasValue = !0, r.value = o;
576
- }, [o]), Dn(o), o;
576
+ }, [o]), Ln(o), o;
577
577
  };
578
578
  St.exports = yt;
579
- var Ln = St.exports;
580
- const An = /* @__PURE__ */ xe(Ln);
579
+ var An = St.exports;
580
+ const Pn = /* @__PURE__ */ xe(An);
581
581
  var wt = { 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
- const { useDebugValue: Pn } = fe, { useSyncExternalStoreWithSelector: Vn } = An;
582
+ const { useDebugValue: Vn } = fe, { useSyncExternalStoreWithSelector: _n } = Pn;
583
583
  let Me = !1;
584
- function _n(n, e = n.getState, t) {
584
+ function Un(n, e = n.getState, t) {
585
585
  (wt ? "production" : void 0) !== "production" && t && !Me && (console.warn(
586
586
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
587
587
  ), Me = !0);
588
- const i = Vn(
588
+ const i = _n(
589
589
  n.subscribe,
590
590
  n.getState,
591
591
  n.getServerState || n.getState,
592
592
  e,
593
593
  t
594
594
  );
595
- return Pn(i), i;
595
+ return Vn(i), i;
596
596
  }
597
597
  const $e = (n) => {
598
598
  (wt ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
599
599
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
600
600
  );
601
- const e = typeof n == "function" ? hn(n) : n, t = (i, a) => _n(e, i, a);
601
+ const e = typeof n == "function" ? gn(n) : n, t = (i, a) => Un(e, i, a);
602
602
  return Object.assign(t, e), t;
603
- }, Un = (n) => n ? $e(n) : $e;
604
- class Mn {
603
+ }, Mn = (n) => n ? $e(n) : $e;
604
+ class $n {
605
605
  constructor(e) {
606
606
  R(this, "channel");
607
607
  R(this, "listeners", /* @__PURE__ */ new Map());
@@ -747,8 +747,8 @@ class Mn {
747
747
  return new RegExp(`^${i}$`).test(t);
748
748
  }
749
749
  }
750
- let $n = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
751
- const jn = (n = 8) => $n(n), Ds = (n) => {
750
+ let jn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
751
+ const zn = (n = 8) => jn(n), Ds = (n) => {
752
752
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
753
753
  return e ? `?${e}` : "";
754
754
  };
@@ -955,9 +955,9 @@ var xt = { exports: {} };
955
955
  }), l;
956
956
  });
957
957
  })(xt);
958
- var zn = xt.exports;
959
- const je = /* @__PURE__ */ xe(zn);
960
- let Bn = class {
958
+ var Bn = xt.exports;
959
+ const je = /* @__PURE__ */ xe(Bn);
960
+ let Qn = class {
961
961
  constructor(e) {
962
962
  R(this, "defaultLevel", Et.levels.INFO);
963
963
  R(this, "namePrefix");
@@ -974,10 +974,9 @@ let Bn = class {
974
974
  const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
975
975
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
976
976
  }
977
- }, $, Qn, K;
978
- const Gn = $.store;
977
+ }, $, Gn, K, Ot;
979
978
  function Ps() {
980
- return $ = Kn(), Qn = $.log.createLogger("main"), K = $.log.createLogger("core"), $;
979
+ return $ = Kn(), Ot = $.store, Gn = $.log.createLogger("main"), K = $.log.createLogger("core"), $;
981
980
  }
982
981
  function Kn() {
983
982
  if (!window.nizza) {
@@ -987,7 +986,7 @@ function Kn() {
987
986
  return window.nizza;
988
987
  }
989
988
  function Wn() {
990
- const n = Un(() => ({
989
+ const n = Mn(() => ({
991
990
  config: null
992
991
  }));
993
992
  return {
@@ -995,9 +994,9 @@ function Wn() {
995
994
  store: n,
996
995
  configure: Jn,
997
996
  setProductDataSource: qn,
998
- instanceId: jn(),
999
- log: new Bn("nz"),
1000
- eventBus: new Mn("nizza"),
997
+ instanceId: zn(),
998
+ log: new Qn("nz"),
999
+ eventBus: new $n("nizza"),
1001
1000
  get state() {
1002
1001
  return n.getState();
1003
1002
  }
@@ -1202,13 +1201,13 @@ class $s {
1202
1201
  return this._value;
1203
1202
  }
1204
1203
  }
1205
- var Ot = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Ot || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Rt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Rt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
1204
+ var Rt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Rt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Tt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Tt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
1206
1205
  class Re {
1207
1206
  constructor(e) {
1208
1207
  R(this, "root", ui(this));
1209
1208
  R(this, "id");
1210
1209
  R(this, "account");
1211
- R(this, "accountType", Ot.UNKNOWN);
1210
+ R(this, "accountType", Rt.UNKNOWN);
1212
1211
  R(this, "username");
1213
1212
  R(this, "currencyConfig");
1214
1213
  R(this, "contractType");
@@ -1216,7 +1215,7 @@ class Re {
1216
1215
  R(this, "spendedMinutes", 0);
1217
1216
  R(this, "unlimitedService", !1);
1218
1217
  R(this, "hoursAvailable", 0);
1219
- R(this, "contractStatus", Rt.ACTIVE);
1218
+ R(this, "contractStatus", Tt.ACTIVE);
1220
1219
  R(this, "createdAt");
1221
1220
  R(this, "installationDateApp");
1222
1221
  R(this, "cxAccount");
@@ -1248,7 +1247,7 @@ class Re {
1248
1247
  };
1249
1248
  }
1250
1249
  }
1251
- const hi = `${mn.apiUrls.restV1}/accounts/v2`;
1250
+ const hi = `${fn.apiUrls.restV1}/accounts/v2`;
1252
1251
  class gi {
1253
1252
  async get(e) {
1254
1253
  const t = `${hi}/${e}`, { data: i } = await kt({
@@ -1272,7 +1271,7 @@ class ki {
1272
1271
  }
1273
1272
  }
1274
1273
  }
1275
- const vi = new gi(), Tt = new ki(vi);
1274
+ const vi = new gi(), It = new ki(vi);
1276
1275
  class Te {
1277
1276
  constructor() {
1278
1277
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -1312,7 +1311,7 @@ function Ni(n, e, t) {
1312
1311
  queryKey: n
1313
1312
  } : n;
1314
1313
  }
1315
- function It(n, e) {
1314
+ function Dt(n, e) {
1316
1315
  if (n === e)
1317
1316
  return n;
1318
1317
  const t = Be(n) && Be(e);
@@ -1321,7 +1320,7 @@ function It(n, e) {
1321
1320
  let o = 0;
1322
1321
  for (let l = 0; l < s; l++) {
1323
1322
  const u = t ? l : a[l];
1324
- r[u] = It(n[u], e[u]), r[u] === n[u] && o++;
1323
+ r[u] = Dt(n[u], e[u]), r[u] === n[u] && o++;
1325
1324
  }
1326
1325
  return i === s && o === i ? n : r;
1327
1326
  }
@@ -1362,7 +1361,7 @@ function Ke(n) {
1362
1361
  Fi(0).then(n);
1363
1362
  }
1364
1363
  function We(n, e, t) {
1365
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? It(n, e) : e;
1364
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Dt(n, e) : e;
1366
1365
  }
1367
1366
  class wi extends Te {
1368
1367
  constructor() {
@@ -1779,8 +1778,8 @@ const Ui = ({
1779
1778
  if (!e)
1780
1779
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1781
1780
  return e;
1782
- }, Dt = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(Dt);
1783
- Dt.Provider;
1781
+ }, Lt = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(Lt);
1782
+ Lt.Provider;
1784
1783
  function $i() {
1785
1784
  let n = !1;
1786
1785
  return {
@@ -1847,10 +1846,10 @@ function Xi(n, e, t) {
1847
1846
  return Zi(i, Di);
1848
1847
  }
1849
1848
  const Yi = () => ["account"], js = () => {
1850
- const n = Gn((a) => {
1849
+ const n = Ot((a) => {
1851
1850
  var s;
1852
1851
  return (s = a.config) == null ? void 0 : s.account;
1853
- }), [e, t] = rn(Ee), i = Xi(Yi(), () => Tt.get(n), {
1852
+ }), [e, t] = on(Ee), i = Xi(Yi(), () => It.get(n), {
1854
1853
  enabled: !!n && !e,
1855
1854
  refetchOnWindowFocus: !1,
1856
1855
  refetchOnMount: !1
@@ -1864,7 +1863,7 @@ const Yi = () => ["account"], js = () => {
1864
1863
  };
1865
1864
  }, ea = ht();
1866
1865
  async function ta(n) {
1867
- const e = await Tt.get(n);
1866
+ const e = await It.get(n);
1868
1867
  return ea.set(Ee, e), e;
1869
1868
  }
1870
1869
  var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
@@ -1942,7 +1941,7 @@ function ma(n, e, t) {
1942
1941
  writable: !1
1943
1942
  }), n;
1944
1943
  }
1945
- var Lt = [], fa = Lt.forEach, pa = Lt.slice;
1944
+ var At = [], fa = At.forEach, pa = At.slice;
1946
1945
  function ha(n) {
1947
1946
  return fa.call(pa.call(arguments, 1), function(e) {
1948
1947
  if (e)
@@ -2152,7 +2151,7 @@ function Ca() {
2152
2151
  }
2153
2152
  };
2154
2153
  }
2155
- var At = /* @__PURE__ */ function() {
2154
+ var Pt = /* @__PURE__ */ function() {
2156
2155
  function n(e) {
2157
2156
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2158
2157
  da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
@@ -2197,9 +2196,9 @@ var At = /* @__PURE__ */ function() {
2197
2196
  }
2198
2197
  }]), n;
2199
2198
  }();
2200
- At.type = "languageDetector";
2199
+ Pt.type = "languageDetector";
2201
2200
  function Ea(n, e) {
2202
- n.use(e).use(At).init({
2201
+ n.use(e).use(Pt).init({
2203
2202
  resources: {},
2204
2203
  fallbackLng: "en",
2205
2204
  debug: !1,
@@ -2384,9 +2383,9 @@ function Ta(n, e, t) {
2384
2383
  const i = de(n, t);
2385
2384
  return i !== void 0 ? i : de(e, t);
2386
2385
  }
2387
- function Pt(n, e, t) {
2386
+ function Vt(n, e, t) {
2388
2387
  for (const i in e)
2389
- i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Pt(n[i], e[i], t) : n[i] = e[i]);
2388
+ i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Vt(n[i], e[i], t) : n[i] = e[i]);
2390
2389
  return n;
2391
2390
  }
2392
2391
  function B(n) {
@@ -2499,7 +2498,7 @@ class st extends ge {
2499
2498
  }, o = [e, t];
2500
2499
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2501
2500
  let l = de(this.data, o) || {};
2502
- a ? Pt(l, i, s) : l = {
2501
+ a ? Vt(l, i, s) : l = {
2503
2502
  ...l,
2504
2503
  ...i
2505
2504
  }, at(this.data, o, l), r.silent || this.emit("added", e, t, i);
@@ -2526,7 +2525,7 @@ class st extends ge {
2526
2525
  return this.data;
2527
2526
  }
2528
2527
  }
2529
- var Vt = {
2528
+ var _t = {
2530
2529
  processors: {},
2531
2530
  addPostProcessor(n) {
2532
2531
  this.processors[n.name] = n;
@@ -2708,7 +2707,7 @@ class me extends ge {
2708
2707
  }, i)), i.interpolation && this.interpolator.reset();
2709
2708
  }
2710
2709
  const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
2711
- return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Vt.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2710
+ return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = _t.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2712
2711
  i18nResolved: {
2713
2712
  ...a,
2714
2713
  usedParams: this.getUsedParamsDetails(i)
@@ -3624,7 +3623,7 @@ class ee extends ge {
3624
3623
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3625
3624
  if (!e.type)
3626
3625
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3627
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Vt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3626
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && _t.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3628
3627
  }
3629
3628
  setResolvedLanguage(e) {
3630
3629
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3830,11 +3829,11 @@ Ea(U, Xa);
3830
3829
  const Qs = (n) => la(U, n);
3831
3830
  let Le = /* @__PURE__ */ new Map();
3832
3831
  const we = ft(Le), Gs = ({ children: n, stores: e }) => {
3833
- const t = Ce(we), i = Gt(() => {
3832
+ const t = Ce(we), i = Kt(() => {
3834
3833
  const a = /* @__PURE__ */ new Map();
3835
3834
  return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
3836
3835
  }, []);
3837
- return /* @__PURE__ */ Kt(we.Provider, { value: i, children: n });
3836
+ return /* @__PURE__ */ Wt(we.Provider, { value: i, children: n });
3838
3837
  };
3839
3838
  function Ks(n) {
3840
3839
  return Ce(we).get(n);
@@ -3842,7 +3841,7 @@ function Ks(n) {
3842
3841
  function Ws(n) {
3843
3842
  return Le.get(n);
3844
3843
  }
3845
- var _t = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(_t || {}), Ut = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(Mt || {});
3844
+ var Ut = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))($t || {});
3846
3845
  const Ya = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, is = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, as = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3847
3846
  __proto__: null,
3848
3847
  AddCollectionDocument: Ya,
@@ -3855,7 +3854,7 @@ const Ya = { kind: "Document", definitions: [{ kind: "OperationDefinition", oper
3855
3854
  DeleteCollectionDocument: es,
3856
3855
  DeleteRelationshipWithSnackVideoDocument: ys,
3857
3856
  DeleteSnackVideoDocument: Ns,
3858
- EventStatus: _t,
3857
+ EventStatus: Ut,
3859
3858
  FindByProductSnackVideoDocument: Es,
3860
3859
  FindCollectionDocument: ts,
3861
3860
  FindManySnackVideosDocument: bs,
@@ -3868,12 +3867,12 @@ const Ya = { kind: "Document", definitions: [{ kind: "OperationDefinition", oper
3868
3867
  GetSnackVideoRelationshipsDocument: ws,
3869
3868
  GetTimeLineDocument: ks,
3870
3869
  ManageCollectionProductDocument: is,
3871
- Methods: Ut,
3870
+ Methods: Mt,
3872
3871
  PinChatMessageDocument: fs,
3873
3872
  SearchCollectionsDocument: as,
3874
3873
  SearchMinimalEventsDocument: os,
3875
3874
  SearchSnackVideosDocument: Cs,
3876
- Status: Mt,
3875
+ Status: $t,
3877
3876
  UpdateCollectionDocument: ss,
3878
3877
  UpdateCustomizationDocument: gs
3879
3878
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3887,25 +3886,25 @@ function qs(n) {
3887
3886
  };
3888
3887
  }
3889
3888
  export {
3890
- Rt as AccountContractStatusTypes,
3889
+ Tt as AccountContractStatusTypes,
3891
3890
  ci as AccountContractTypes,
3892
3891
  Vs as AccountInvalidError,
3893
3892
  fi as AccountPlanDescriptionTypes,
3894
3893
  gi as AccountRestRepository,
3895
3894
  ki as AccountService,
3896
3895
  mi as AccountSubscriptionTypes,
3897
- Ot as AccountTypes,
3896
+ Rt as AccountTypes,
3898
3897
  di as AggregateRoot,
3899
3898
  Js as ApiGraphqlTypes,
3900
3899
  Ms as BaseMobxStore,
3901
- Mn as BroadcastChannelEventBus,
3900
+ $n as BroadcastChannelEventBus,
3902
3901
  he as DomainError,
3903
3902
  zs as EventBusWildcards,
3904
3903
  Bs as EventNames,
3905
3904
  pi as GlobalPageSectionTypes,
3906
3905
  li as InvalidNizzaGlobalObjectError,
3907
3906
  ia as LanguageTypes,
3908
- Bn as Logger,
3907
+ Qn as Logger,
3909
3908
  Re as NizzaAccount,
3910
3909
  na as NizzaEventStatus,
3911
3910
  sa as NizzaProductRequestOriginTypes,
@@ -3915,7 +3914,7 @@ export {
3915
3914
  oi as UnexpectedError,
3916
3915
  $s as ValueObject,
3917
3916
  Ee as accountAtom,
3918
- Tt as accountService,
3917
+ It as accountService,
3919
3918
  Ts as apiCall,
3920
3919
  ra as buildLanguageTranslations,
3921
3920
  oa as buildTranslations,
@@ -3932,17 +3931,17 @@ export {
3932
3931
  Ws as getStore,
3933
3932
  ea as globalAtomStore,
3934
3933
  Ea as i18Init,
3935
- fn as jsDownload,
3936
- Qn as logger,
3934
+ pn as jsDownload,
3935
+ Gn as logger,
3937
3936
  $ as nizza,
3938
3937
  Ps as nizzaInit,
3939
3938
  Qs as registerTranslations,
3940
3939
  la as registerTranslationsOf,
3941
3940
  Ds as searchParams,
3942
3941
  qn as setProductDataSource,
3943
- jn as shortId,
3942
+ zn as shortId,
3944
3943
  js as useAccount,
3945
- Gn as useNizza,
3944
+ Ot as useNizza,
3946
3945
  Ks as useStore,
3947
3946
  _s as validateRequiredProps
3948
3947
  };