@builtbystack/sq-shopify-theme-sdk 0.0.27 → 0.0.28

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.
@@ -60,25 +60,25 @@ function We(e) {
60
60
  );
61
61
  }
62
62
  function Oe(e, t) {
63
- const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, c = t.line === 1 ? n : 0, p = t.column + c, h = `${e.name}:${o}:${p}
64
- `, m = r.split(/\r\n|[\n\r]/g), y = m[i];
65
- if (y.length > 120) {
66
- const C = Math.floor(p / 80), A = p % 80, g = [];
67
- for (let I = 0; I < y.length; I += 80)
68
- g.push(y.slice(I, I + 80));
63
+ const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, a = t.line + s, c = t.line === 1 ? n : 0, p = t.column + c, h = `${e.name}:${a}:${p}
64
+ `, m = r.split(/\r\n|[\n\r]/g), C = m[i];
65
+ if (C.length > 120) {
66
+ const y = Math.floor(p / 80), A = p % 80, g = [];
67
+ for (let I = 0; I < C.length; I += 80)
68
+ g.push(C.slice(I, I + 80));
69
69
  return h + Ae([
70
- [`${o} |`, g[0]],
71
- ...g.slice(1, C + 1).map((I) => ["|", I]),
70
+ [`${a} |`, g[0]],
71
+ ...g.slice(1, y + 1).map((I) => ["|", I]),
72
72
  ["|", "^".padStart(A)],
73
- ["|", g[C + 1]]
73
+ ["|", g[y + 1]]
74
74
  ]);
75
75
  }
76
76
  return h + Ae([
77
77
  // Lines specified like this: ["prefix", "string"],
78
- [`${o - 1} |`, m[i - 1]],
79
- [`${o} |`, y],
78
+ [`${a - 1} |`, m[i - 1]],
79
+ [`${a} |`, C],
80
80
  ["|", "^".padStart(p)],
81
- [`${o + 1} |`, m[i + 1]]
81
+ [`${a + 1} |`, m[i + 1]]
82
82
  ]);
83
83
  }
84
84
  function Ae(e) {
@@ -97,7 +97,7 @@ function Ke(e) {
97
97
  extensions: e[5]
98
98
  } : t;
99
99
  }
100
- class Ce extends Error {
100
+ class ye extends Error {
101
101
  /**
102
102
  * An array of `{ line, column }` locations within the source GraphQL document
103
103
  * which correspond to this error.
@@ -138,18 +138,18 @@ class Ce extends Error {
138
138
  */
139
139
  constructor(t, ...n) {
140
140
  var r, i, s;
141
- const { nodes: o, source: c, positions: p, path: h, originalError: m, extensions: y } = Ke(n);
141
+ const { nodes: a, source: c, positions: p, path: h, originalError: m, extensions: C } = Ke(n);
142
142
  super(t), this.name = "GraphQLError", this.path = h ?? void 0, this.originalError = m ?? void 0, this.nodes = Ie(
143
- Array.isArray(o) ? o : o ? [o] : void 0
143
+ Array.isArray(a) ? a : a ? [a] : void 0
144
144
  );
145
- const C = Ie(
145
+ const y = Ie(
146
146
  (r = this.nodes) === null || r === void 0 ? void 0 : r.map((g) => g.loc).filter((g) => g != null)
147
147
  );
148
- this.source = c ?? (C == null || (i = C[0]) === null || i === void 0 ? void 0 : i.source), this.positions = p ?? (C == null ? void 0 : C.map((g) => g.start)), this.locations = p && c ? p.map((g) => he(c, g)) : C == null ? void 0 : C.map((g) => he(g.source, g.start));
148
+ this.source = c ?? (y == null || (i = y[0]) === null || i === void 0 ? void 0 : i.source), this.positions = p ?? (y == null ? void 0 : y.map((g) => g.start)), this.locations = p && c ? p.map((g) => he(c, g)) : y == null ? void 0 : y.map((g) => he(g.source, g.start));
149
149
  const A = Je(
150
150
  m == null ? void 0 : m.extensions
151
151
  ) ? m == null ? void 0 : m.extensions : void 0;
152
- this.extensions = (s = y ?? A) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
152
+ this.extensions = (s = C ?? A) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
153
153
  message: {
154
154
  writable: !0,
155
155
  enumerable: !0
@@ -173,7 +173,7 @@ class Ce extends Error {
173
173
  value: m.stack,
174
174
  writable: !0,
175
175
  configurable: !0
176
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Ce) : Object.defineProperty(this, "stack", {
176
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, ye) : Object.defineProperty(this, "stack", {
177
177
  value: Error().stack,
178
178
  writable: !0,
179
179
  configurable: !0
@@ -207,7 +207,7 @@ function Ie(e) {
207
207
  return e === void 0 || e.length === 0 ? void 0 : e;
208
208
  }
209
209
  function N(e, t, n) {
210
- return new Ce(`Syntax Error: ${n}`, {
210
+ return new ye(`Syntax Error: ${n}`, {
211
211
  source: e,
212
212
  positions: [t]
213
213
  });
@@ -241,7 +241,7 @@ class Ze {
241
241
  };
242
242
  }
243
243
  }
244
- class De {
244
+ class Pe {
245
245
  /**
246
246
  * The kind of Token.
247
247
  */
@@ -268,8 +268,8 @@ class De {
268
268
  * including ignored tokens. <SOF> is always the first node and <EOF>
269
269
  * the last.
270
270
  */
271
- constructor(t, n, r, i, s, o) {
272
- this.kind = t, this.start = n, this.end = r, this.line = i, this.column = s, this.value = o, this.prev = null, this.next = null;
271
+ constructor(t, n, r, i, s, a) {
272
+ this.kind = t, this.start = n, this.end = r, this.line = i, this.column = s, this.value = a, this.prev = null, this.next = null;
273
273
  }
274
274
  get [Symbol.toStringTag]() {
275
275
  return "Token";
@@ -283,7 +283,7 @@ class De {
283
283
  };
284
284
  }
285
285
  }
286
- const Pe = {
286
+ const De = {
287
287
  Name: [],
288
288
  Document: ["definitions"],
289
289
  OperationDefinition: [
@@ -357,7 +357,7 @@ const Pe = {
357
357
  UnionTypeExtension: ["name", "directives", "types"],
358
358
  EnumTypeExtension: ["name", "directives", "values"],
359
359
  InputObjectTypeExtension: ["name", "directives", "fields"]
360
- }, et = new Set(Object.keys(Pe));
360
+ }, et = new Set(Object.keys(De));
361
361
  function Se(e) {
362
362
  const t = e == null ? void 0 : e.kind;
363
363
  return typeof t == "string" && et.has(t);
@@ -393,12 +393,12 @@ function tt(e) {
393
393
  function nt(e) {
394
394
  var t;
395
395
  let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
396
- for (let o = 0; o < e.length; ++o) {
396
+ for (let a = 0; a < e.length; ++a) {
397
397
  var s;
398
- const c = e[o], p = it(c);
399
- p !== c.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && p < n && (n = p));
398
+ const c = e[a], p = it(c);
399
+ p !== c.length && (r = (s = r) !== null && s !== void 0 ? s : a, i = a, a !== 0 && p < n && (n = p));
400
400
  }
401
- return e.map((o, c) => c === 0 ? o : o.slice(n)).slice(
401
+ return e.map((a, c) => c === 0 ? a : a.slice(n)).slice(
402
402
  (t = r) !== null && t !== void 0 ? t : 0,
403
403
  i + 1
404
404
  );
@@ -410,13 +410,13 @@ function it(e) {
410
410
  return t;
411
411
  }
412
412
  function rt(e, t) {
413
- const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((A) => A.length === 0 || me(A.charCodeAt(0))), o = n.endsWith('\\"""'), c = e.endsWith('"') && !o, p = e.endsWith("\\"), h = c || p, m = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
414
- (!i || e.length > 70 || h || s || o);
415
- let y = "";
416
- const C = i && me(e.charCodeAt(0));
417
- return (m && !C || s) && (y += `
418
- `), y += n, (m || h) && (y += `
419
- `), '"""' + y + '"""';
413
+ const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((A) => A.length === 0 || me(A.charCodeAt(0))), a = n.endsWith('\\"""'), c = e.endsWith('"') && !a, p = e.endsWith("\\"), h = c || p, m = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
414
+ (!i || e.length > 70 || h || s || a);
415
+ let C = "";
416
+ const y = i && me(e.charCodeAt(0));
417
+ return (m && !y || s) && (C += `
418
+ `), C += n, (m || h) && (C += `
419
+ `), '"""' + C + '"""';
420
420
  }
421
421
  var u;
422
422
  (function(e) {
@@ -436,7 +436,7 @@ class st {
436
436
  * The character offset at which the current line begins.
437
437
  */
438
438
  constructor(t) {
439
- const n = new De(u.SOF, 0, 0, 0, 0);
439
+ const n = new Pe(u.SOF, 0, 0, 0, 0);
440
440
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
441
441
  }
442
442
  get [Symbol.toStringTag]() {
@@ -459,14 +459,14 @@ class st {
459
459
  if (t.next)
460
460
  t = t.next;
461
461
  else {
462
- const n = at(this, t.end);
462
+ const n = ot(this, t.end);
463
463
  t.next = n, n.prev = t, t = n;
464
464
  }
465
465
  while (t.kind === u.COMMENT);
466
466
  return t;
467
467
  }
468
468
  }
469
- function ot(e) {
469
+ function at(e) {
470
470
  return e === u.BANG || e === u.DOLLAR || e === u.AMP || e === u.PAREN_L || e === u.PAREN_R || e === u.SPREAD || e === u.COLON || e === u.EQUALS || e === u.AT || e === u.BRACKET_L || e === u.BRACKET_R || e === u.BRACE_L || e === u.PIPE || e === u.BRACE_R;
471
471
  }
472
472
  function G(e) {
@@ -492,10 +492,10 @@ function F(e, t) {
492
492
  return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
493
493
  }
494
494
  function S(e, t, n, r, i) {
495
- const s = e.line, o = 1 + n - e.lineStart;
496
- return new De(t, n, r, s, o, i);
495
+ const s = e.line, a = 1 + n - e.lineStart;
496
+ return new Pe(t, n, r, s, a, i);
497
497
  }
498
- function at(e, t) {
498
+ function ot(e, t) {
499
499
  const n = e.source.body, r = n.length;
500
500
  let i = t;
501
501
  for (; i < r; ) {
@@ -584,7 +584,7 @@ function ut(e, t) {
584
584
  }
585
585
  function ct(e, t, n) {
586
586
  const r = e.source.body;
587
- let i = t, s = n, o = !1;
587
+ let i = t, s = n, a = !1;
588
588
  if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
589
589
  if (s = r.charCodeAt(++i), Y(s))
590
590
  throw N(
@@ -597,7 +597,7 @@ function ct(e, t, n) {
597
597
  );
598
598
  } else
599
599
  i = ce(e, i, s), s = r.charCodeAt(i);
600
- if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ce(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ce(e, i, s), s = r.charCodeAt(i)), s === 46 || _e(s))
600
+ if (s === 46 && (a = !0, s = r.charCodeAt(++i), i = ce(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (a = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ce(e, i, s), s = r.charCodeAt(i)), s === 46 || _e(s))
601
601
  throw N(
602
602
  e.source,
603
603
  i,
@@ -608,7 +608,7 @@ function ct(e, t, n) {
608
608
  );
609
609
  return S(
610
610
  e,
611
- o ? u.FLOAT : u.INT,
611
+ a ? u.FLOAT : u.INT,
612
612
  t,
613
613
  i,
614
614
  r.slice(t, i)
@@ -632,15 +632,15 @@ function ce(e, t, n) {
632
632
  }
633
633
  function lt(e, t) {
634
634
  const n = e.source.body, r = n.length;
635
- let i = t + 1, s = i, o = "";
635
+ let i = t + 1, s = i, a = "";
636
636
  for (; i < r; ) {
637
637
  const c = n.charCodeAt(i);
638
638
  if (c === 34)
639
- return o += n.slice(s, i), S(e, u.STRING, t, i + 1, o);
639
+ return a += n.slice(s, i), S(e, u.STRING, t, i + 1, a);
640
640
  if (c === 92) {
641
- o += n.slice(s, i);
641
+ a += n.slice(s, i);
642
642
  const p = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? dt(e, i) : pt(e, i) : ht(e, i);
643
- o += p.value, i += p.size, s = i;
643
+ a += p.value, i += p.size, s = i;
644
644
  continue;
645
645
  }
646
646
  if (c === 10 || c === 13)
@@ -769,12 +769,12 @@ function ht(e, t) {
769
769
  }
770
770
  function ft(e, t) {
771
771
  const n = e.source.body, r = n.length;
772
- let i = e.lineStart, s = t + 3, o = s, c = "";
772
+ let i = e.lineStart, s = t + 3, a = s, c = "";
773
773
  const p = [];
774
774
  for (; s < r; ) {
775
775
  const h = n.charCodeAt(s);
776
776
  if (h === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
777
- c += n.slice(o, s), p.push(c);
777
+ c += n.slice(a, s), p.push(c);
778
778
  const m = S(
779
779
  e,
780
780
  u.BLOCK_STRING,
@@ -787,11 +787,11 @@ function ft(e, t) {
787
787
  return e.line += p.length - 1, e.lineStart = i, m;
788
788
  }
789
789
  if (h === 92 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34 && n.charCodeAt(s + 3) === 34) {
790
- c += n.slice(o, s), o = s + 1, s += 4;
790
+ c += n.slice(a, s), a = s + 1, s += 4;
791
791
  continue;
792
792
  }
793
793
  if (h === 10 || h === 13) {
794
- c += n.slice(o, s), p.push(c), h === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", o = s, i = s;
794
+ c += n.slice(a, s), p.push(c), h === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", a = s, i = s;
795
795
  continue;
796
796
  }
797
797
  if (G(h))
@@ -830,41 +830,41 @@ function mt(e, t) {
830
830
  }
831
831
  const gt = 10, Fe = 2;
832
832
  function Ee(e) {
833
- return oe(e, []);
833
+ return ae(e, []);
834
834
  }
835
- function oe(e, t) {
835
+ function ae(e, t) {
836
836
  switch (typeof e) {
837
837
  case "string":
838
838
  return JSON.stringify(e);
839
839
  case "function":
840
840
  return e.name ? `[function ${e.name}]` : "[function]";
841
841
  case "object":
842
- return yt(e, t);
842
+ return Ct(e, t);
843
843
  default:
844
844
  return String(e);
845
845
  }
846
846
  }
847
- function yt(e, t) {
847
+ function Ct(e, t) {
848
848
  if (e === null)
849
849
  return "null";
850
850
  if (t.includes(e))
851
851
  return "[Circular]";
852
852
  const n = [...t, e];
853
- if (Ct(e)) {
853
+ if (yt(e)) {
854
854
  const r = e.toJSON();
855
855
  if (r !== e)
856
- return typeof r == "string" ? r : oe(r, n);
856
+ return typeof r == "string" ? r : ae(r, n);
857
857
  } else if (Array.isArray(e))
858
858
  return vt(e, n);
859
859
  return Et(e, n);
860
860
  }
861
- function Ct(e) {
861
+ function yt(e) {
862
862
  return typeof e.toJSON == "function";
863
863
  }
864
864
  function Et(e, t) {
865
865
  const n = Object.entries(e);
866
866
  return n.length === 0 ? "{}" : t.length > Fe ? "[" + Tt(e) + "]" : "{ " + n.map(
867
- ([i, s]) => i + ": " + oe(s, t)
867
+ ([i, s]) => i + ": " + ae(s, t)
868
868
  ).join(", ") + " }";
869
869
  }
870
870
  function vt(e, t) {
@@ -874,7 +874,7 @@ function vt(e, t) {
874
874
  return "[Array]";
875
875
  const n = Math.min(gt, e.length), r = e.length - n, i = [];
876
876
  for (let s = 0; s < n; ++s)
877
- i.push(oe(e[s], t));
877
+ i.push(ae(e[s], t));
878
878
  return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
879
879
  }
880
880
  function Tt(e) {
@@ -901,8 +901,8 @@ const At = (
901
901
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (r = t.constructor) === null || r === void 0 ? void 0 : r.name
902
902
  );
903
903
  if (i === s) {
904
- const o = Ee(t);
905
- throw new Error(`Cannot use ${i} "${o}" from another module or realm.
904
+ const a = Ee(t);
905
+ throw new Error(`Cannot use ${i} "${a}" from another module or realm.
906
906
 
907
907
  Ensure that there is only one instance of "graphql" in the node_modules
908
908
  directory. If different versions of "graphql" are the dependencies of other
@@ -1476,14 +1476,14 @@ class St {
1476
1476
  parseObjectTypeDefinition() {
1477
1477
  const t = this._lexer.token, n = this.parseDescription();
1478
1478
  this.expectKeyword("type");
1479
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
1479
+ const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1480
1480
  return this.node(t, {
1481
1481
  kind: f.OBJECT_TYPE_DEFINITION,
1482
1482
  description: n,
1483
1483
  name: r,
1484
1484
  interfaces: i,
1485
1485
  directives: s,
1486
- fields: o
1486
+ fields: a
1487
1487
  });
1488
1488
  }
1489
1489
  /**
@@ -1513,14 +1513,14 @@ class St {
1513
1513
  parseFieldDefinition() {
1514
1514
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseName(), i = this.parseArgumentDefs();
1515
1515
  this.expectToken(u.COLON);
1516
- const s = this.parseTypeReference(), o = this.parseConstDirectives();
1516
+ const s = this.parseTypeReference(), a = this.parseConstDirectives();
1517
1517
  return this.node(t, {
1518
1518
  kind: f.FIELD_DEFINITION,
1519
1519
  description: n,
1520
1520
  name: r,
1521
1521
  arguments: i,
1522
1522
  type: s,
1523
- directives: o
1523
+ directives: a
1524
1524
  });
1525
1525
  }
1526
1526
  /**
@@ -1543,14 +1543,14 @@ class St {
1543
1543
  const i = this.parseTypeReference();
1544
1544
  let s;
1545
1545
  this.expectOptionalToken(u.EQUALS) && (s = this.parseConstValueLiteral());
1546
- const o = this.parseConstDirectives();
1546
+ const a = this.parseConstDirectives();
1547
1547
  return this.node(t, {
1548
1548
  kind: f.INPUT_VALUE_DEFINITION,
1549
1549
  description: n,
1550
1550
  name: r,
1551
1551
  type: i,
1552
1552
  defaultValue: s,
1553
- directives: o
1553
+ directives: a
1554
1554
  });
1555
1555
  }
1556
1556
  /**
@@ -1560,14 +1560,14 @@ class St {
1560
1560
  parseInterfaceTypeDefinition() {
1561
1561
  const t = this._lexer.token, n = this.parseDescription();
1562
1562
  this.expectKeyword("interface");
1563
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
1563
+ const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1564
1564
  return this.node(t, {
1565
1565
  kind: f.INTERFACE_TYPE_DEFINITION,
1566
1566
  description: n,
1567
1567
  name: r,
1568
1568
  interfaces: i,
1569
1569
  directives: s,
1570
- fields: o
1570
+ fields: a
1571
1571
  });
1572
1572
  }
1573
1573
  /**
@@ -1854,14 +1854,14 @@ class St {
1854
1854
  this.expectKeyword("directive"), this.expectToken(u.AT);
1855
1855
  const r = this.parseName(), i = this.parseArgumentDefs(), s = this.expectOptionalKeyword("repeatable");
1856
1856
  this.expectKeyword("on");
1857
- const o = this.parseDirectiveLocations();
1857
+ const a = this.parseDirectiveLocations();
1858
1858
  return this.node(t, {
1859
1859
  kind: f.DIRECTIVE_DEFINITION,
1860
1860
  description: n,
1861
1861
  name: r,
1862
1862
  arguments: i,
1863
1863
  repeatable: s,
1864
- locations: o
1864
+ locations: a
1865
1865
  });
1866
1866
  }
1867
1867
  /**
@@ -2048,7 +2048,7 @@ function W(e) {
2048
2048
  return Me(e.kind) + (t != null ? ` "${t}"` : "");
2049
2049
  }
2050
2050
  function Me(e) {
2051
- return ot(e) ? `"${e}"` : e;
2051
+ return at(e) ? `"${e}"` : e;
2052
2052
  }
2053
2053
  function Nt(e) {
2054
2054
  return `"${e.replace(Rt, xt)}"`;
@@ -2224,74 +2224,74 @@ const bt = [
2224
2224
  "\\u009E",
2225
2225
  "\\u009F"
2226
2226
  ], Ot = Object.freeze({});
2227
- function Dt(e, t, n = Pe) {
2227
+ function Pt(e, t, n = De) {
2228
2228
  const r = /* @__PURE__ */ new Map();
2229
- for (const D of Object.values(f))
2230
- r.set(D, Pt(t, D));
2231
- let i, s = Array.isArray(e), o = [e], c = -1, p = [], h = e, m, y;
2232
- const C = [], A = [];
2229
+ for (const P of Object.values(f))
2230
+ r.set(P, Dt(t, P));
2231
+ let i, s = Array.isArray(e), a = [e], c = -1, p = [], h = e, m, C;
2232
+ const y = [], A = [];
2233
2233
  do {
2234
2234
  c++;
2235
- const D = c === o.length, z = D && p.length !== 0;
2236
- if (D) {
2237
- if (m = A.length === 0 ? void 0 : C[C.length - 1], h = y, y = A.pop(), z)
2235
+ const P = c === a.length, z = P && p.length !== 0;
2236
+ if (P) {
2237
+ if (m = A.length === 0 ? void 0 : y[y.length - 1], h = C, C = A.pop(), z)
2238
2238
  if (s) {
2239
2239
  h = h.slice();
2240
- let P = 0;
2240
+ let D = 0;
2241
2241
  for (const [B, J] of p) {
2242
- const Q = B - P;
2243
- J === null ? (h.splice(Q, 1), P++) : h[Q] = J;
2242
+ const Q = B - D;
2243
+ J === null ? (h.splice(Q, 1), D++) : h[Q] = J;
2244
2244
  }
2245
2245
  } else {
2246
2246
  h = Object.defineProperties(
2247
2247
  {},
2248
2248
  Object.getOwnPropertyDescriptors(h)
2249
2249
  );
2250
- for (const [P, B] of p)
2251
- h[P] = B;
2250
+ for (const [D, B] of p)
2251
+ h[D] = B;
2252
2252
  }
2253
- c = i.index, o = i.keys, p = i.edits, s = i.inArray, i = i.prev;
2254
- } else if (y) {
2255
- if (m = s ? c : o[c], h = y[m], h == null)
2253
+ c = i.index, a = i.keys, p = i.edits, s = i.inArray, i = i.prev;
2254
+ } else if (C) {
2255
+ if (m = s ? c : a[c], h = C[m], h == null)
2256
2256
  continue;
2257
- C.push(m);
2257
+ y.push(m);
2258
2258
  }
2259
2259
  let _;
2260
2260
  if (!Array.isArray(h)) {
2261
2261
  var g, I;
2262
2262
  Se(h) || K(!1, `Invalid AST Node: ${Ee(h)}.`);
2263
- const P = D ? (g = r.get(h.kind)) === null || g === void 0 ? void 0 : g.leave : (I = r.get(h.kind)) === null || I === void 0 ? void 0 : I.enter;
2264
- if (_ = P == null ? void 0 : P.call(t, h, m, y, C, A), _ === Ot)
2263
+ const D = P ? (g = r.get(h.kind)) === null || g === void 0 ? void 0 : g.leave : (I = r.get(h.kind)) === null || I === void 0 ? void 0 : I.enter;
2264
+ if (_ = D == null ? void 0 : D.call(t, h, m, C, y, A), _ === Ot)
2265
2265
  break;
2266
2266
  if (_ === !1) {
2267
- if (!D) {
2268
- C.pop();
2267
+ if (!P) {
2268
+ y.pop();
2269
2269
  continue;
2270
2270
  }
2271
- } else if (_ !== void 0 && (p.push([m, _]), !D))
2271
+ } else if (_ !== void 0 && (p.push([m, _]), !P))
2272
2272
  if (Se(_))
2273
2273
  h = _;
2274
2274
  else {
2275
- C.pop();
2275
+ y.pop();
2276
2276
  continue;
2277
2277
  }
2278
2278
  }
2279
- if (_ === void 0 && z && p.push([m, h]), D)
2280
- C.pop();
2279
+ if (_ === void 0 && z && p.push([m, h]), P)
2280
+ y.pop();
2281
2281
  else {
2282
2282
  var O;
2283
2283
  i = {
2284
2284
  inArray: s,
2285
2285
  index: c,
2286
- keys: o,
2286
+ keys: a,
2287
2287
  edits: p,
2288
2288
  prev: i
2289
- }, s = Array.isArray(h), o = s ? h : (O = n[h.kind]) !== null && O !== void 0 ? O : [], c = -1, p = [], y && A.push(y), y = h;
2289
+ }, s = Array.isArray(h), a = s ? h : (O = n[h.kind]) !== null && O !== void 0 ? O : [], c = -1, p = [], C && A.push(C), C = h;
2290
2290
  }
2291
2291
  } while (i !== void 0);
2292
2292
  return p.length !== 0 ? p[p.length - 1][1] : e;
2293
2293
  }
2294
- function Pt(e, t) {
2294
+ function Dt(e, t) {
2295
2295
  const n = e[t];
2296
2296
  return typeof n == "object" ? n : typeof n == "function" ? {
2297
2297
  enter: n,
@@ -2302,7 +2302,7 @@ function Pt(e, t) {
2302
2302
  };
2303
2303
  }
2304
2304
  function kt(e) {
2305
- return Dt(e, Lt);
2305
+ return Pt(e, Lt);
2306
2306
  }
2307
2307
  const _t = 80, Lt = {
2308
2308
  Name: {
@@ -2339,11 +2339,11 @@ const _t = 80, Lt = {
2339
2339
  Field: {
2340
2340
  leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
2341
2341
  const s = v("", e, ": ") + t;
2342
- let o = s + v("(", d(n, ", "), ")");
2343
- return o.length > _t && (o = s + v(`(
2342
+ let a = s + v("(", d(n, ", "), ")");
2343
+ return a.length > _t && (a = s + v(`(
2344
2344
  `, Z(d(n, `
2345
2345
  `)), `
2346
- )`)), d([o, d(r, " "), i], " ");
2346
+ )`)), d([a, d(r, " "), i], " ");
2347
2347
  }
2348
2348
  },
2349
2349
  Argument: {
@@ -2574,10 +2574,10 @@ function Ft(e) {
2574
2574
  var t = /* @__PURE__ */ new Set(), n = [];
2575
2575
  return e.definitions.forEach(function(r) {
2576
2576
  if (r.kind === "FragmentDefinition") {
2577
- var i = r.name.value, s = wt(r.loc), o = ge.get(i);
2578
- o && !o.has(s) ? qe && console.warn("Warning: fragment with name " + i + ` already exists.
2577
+ var i = r.name.value, s = wt(r.loc), a = ge.get(i);
2578
+ a && !a.has(s) ? qe && console.warn("Warning: fragment with name " + i + ` already exists.
2579
2579
  graphql-tag enforces all fragment names across your application to be unique; read more about
2580
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || ge.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
2580
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || ge.set(i, a = /* @__PURE__ */ new Set()), a.add(s), t.has(s) || (t.add(s), n.push(r));
2581
2581
  } else
2582
2582
  n.push(r);
2583
2583
  }), ne(ne({}, e), { definitions: n });
@@ -2868,6 +2868,8 @@ const x = q, $t = x`
2868
2868
  name
2869
2869
  threshold
2870
2870
  }
2871
+ earnedPoint
2872
+ purchasePrice
2871
2873
  earnedPointToRankUp
2872
2874
  purchasePriceToRankUp
2873
2875
  calculationCondition {
@@ -3007,7 +3009,7 @@ const x = q, $t = x`
3007
3009
  }
3008
3010
  }
3009
3011
  }
3010
- `, on = x`
3012
+ `, an = x`
3011
3013
  mutation PurchasingCustomerActivateCustomerSharing($email: String!, $activationCode: String!) {
3012
3014
  purchasingCustomerActivateCustomerSharing(
3013
3015
  input: {email: $email, activationCode: $activationCode}
@@ -3022,8 +3024,8 @@ const x = q, $t = x`
3022
3024
  }
3023
3025
  }
3024
3026
  }
3025
- `, an = (e, t, n, r) => e();
3026
- function un(e, t = an) {
3027
+ `, on = (e, t, n, r) => e();
3028
+ function un(e, t = on) {
3027
3029
  return {
3028
3030
  GetLocationAvailabilities(n, r) {
3029
3031
  return t((i) => e.request($t, n, { ...r, ...i }), "GetLocationAvailabilities", "query", n);
@@ -3074,7 +3076,7 @@ function un(e, t = an) {
3074
3076
  return t((i) => e.request(sn, n, { ...r, ...i }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
3075
3077
  },
3076
3078
  PurchasingCustomerActivateCustomerSharing(n, r) {
3077
- return t((i) => e.request(on, n, { ...r, ...i }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
3079
+ return t((i) => e.request(an, n, { ...r, ...i }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
3078
3080
  }
3079
3081
  };
3080
3082
  }
@@ -3132,7 +3134,7 @@ var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3132
3134
  function mn(e) {
3133
3135
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3134
3136
  }
3135
- var ye = { exports: {} };
3137
+ var Ce = { exports: {} };
3136
3138
  (function(e, t) {
3137
3139
  var n = typeof self < "u" ? self : fn, r = function() {
3138
3140
  function s() {
@@ -3141,7 +3143,7 @@ var ye = { exports: {} };
3141
3143
  return s.prototype = n, new s();
3142
3144
  }();
3143
3145
  (function(s) {
3144
- (function(o) {
3146
+ (function(a) {
3145
3147
  var c = {
3146
3148
  searchParams: "URLSearchParams" in s,
3147
3149
  iterable: "Symbol" in s && "iterator" in Symbol,
@@ -3155,8 +3157,8 @@ var ye = { exports: {} };
3155
3157
  formData: "FormData" in s,
3156
3158
  arrayBuffer: "ArrayBuffer" in s
3157
3159
  };
3158
- function p(a) {
3159
- return a && DataView.prototype.isPrototypeOf(a);
3160
+ function p(o) {
3161
+ return o && DataView.prototype.isPrototypeOf(o);
3160
3162
  }
3161
3163
  if (c.arrayBuffer)
3162
3164
  var h = [
@@ -3169,21 +3171,21 @@ var ye = { exports: {} };
3169
3171
  "[object Uint32Array]",
3170
3172
  "[object Float32Array]",
3171
3173
  "[object Float64Array]"
3172
- ], m = ArrayBuffer.isView || function(a) {
3173
- return a && h.indexOf(Object.prototype.toString.call(a)) > -1;
3174
+ ], m = ArrayBuffer.isView || function(o) {
3175
+ return o && h.indexOf(Object.prototype.toString.call(o)) > -1;
3174
3176
  };
3175
- function y(a) {
3176
- if (typeof a != "string" && (a = String(a)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(a))
3177
+ function C(o) {
3178
+ if (typeof o != "string" && (o = String(o)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(o))
3177
3179
  throw new TypeError("Invalid character in header field name");
3178
- return a.toLowerCase();
3180
+ return o.toLowerCase();
3179
3181
  }
3180
- function C(a) {
3181
- return typeof a != "string" && (a = String(a)), a;
3182
+ function y(o) {
3183
+ return typeof o != "string" && (o = String(o)), o;
3182
3184
  }
3183
- function A(a) {
3185
+ function A(o) {
3184
3186
  var l = {
3185
3187
  next: function() {
3186
- var E = a.shift();
3188
+ var E = o.shift();
3187
3189
  return { done: E === void 0, value: E };
3188
3190
  }
3189
3191
  };
@@ -3191,86 +3193,86 @@ var ye = { exports: {} };
3191
3193
  return l;
3192
3194
  }), l;
3193
3195
  }
3194
- function g(a) {
3195
- this.map = {}, a instanceof g ? a.forEach(function(l, E) {
3196
+ function g(o) {
3197
+ this.map = {}, o instanceof g ? o.forEach(function(l, E) {
3196
3198
  this.append(E, l);
3197
- }, this) : Array.isArray(a) ? a.forEach(function(l) {
3199
+ }, this) : Array.isArray(o) ? o.forEach(function(l) {
3198
3200
  this.append(l[0], l[1]);
3199
- }, this) : a && Object.getOwnPropertyNames(a).forEach(function(l) {
3200
- this.append(l, a[l]);
3201
+ }, this) : o && Object.getOwnPropertyNames(o).forEach(function(l) {
3202
+ this.append(l, o[l]);
3201
3203
  }, this);
3202
3204
  }
3203
- g.prototype.append = function(a, l) {
3204
- a = y(a), l = C(l);
3205
- var E = this.map[a];
3206
- this.map[a] = E ? E + ", " + l : l;
3207
- }, g.prototype.delete = function(a) {
3208
- delete this.map[y(a)];
3209
- }, g.prototype.get = function(a) {
3210
- return a = y(a), this.has(a) ? this.map[a] : null;
3211
- }, g.prototype.has = function(a) {
3212
- return this.map.hasOwnProperty(y(a));
3213
- }, g.prototype.set = function(a, l) {
3214
- this.map[y(a)] = C(l);
3215
- }, g.prototype.forEach = function(a, l) {
3205
+ g.prototype.append = function(o, l) {
3206
+ o = C(o), l = y(l);
3207
+ var E = this.map[o];
3208
+ this.map[o] = E ? E + ", " + l : l;
3209
+ }, g.prototype.delete = function(o) {
3210
+ delete this.map[C(o)];
3211
+ }, g.prototype.get = function(o) {
3212
+ return o = C(o), this.has(o) ? this.map[o] : null;
3213
+ }, g.prototype.has = function(o) {
3214
+ return this.map.hasOwnProperty(C(o));
3215
+ }, g.prototype.set = function(o, l) {
3216
+ this.map[C(o)] = y(l);
3217
+ }, g.prototype.forEach = function(o, l) {
3216
3218
  for (var E in this.map)
3217
- this.map.hasOwnProperty(E) && a.call(l, this.map[E], E, this);
3219
+ this.map.hasOwnProperty(E) && o.call(l, this.map[E], E, this);
3218
3220
  }, g.prototype.keys = function() {
3219
- var a = [];
3221
+ var o = [];
3220
3222
  return this.forEach(function(l, E) {
3221
- a.push(E);
3222
- }), A(a);
3223
+ o.push(E);
3224
+ }), A(o);
3223
3225
  }, g.prototype.values = function() {
3224
- var a = [];
3226
+ var o = [];
3225
3227
  return this.forEach(function(l) {
3226
- a.push(l);
3227
- }), A(a);
3228
+ o.push(l);
3229
+ }), A(o);
3228
3230
  }, g.prototype.entries = function() {
3229
- var a = [];
3231
+ var o = [];
3230
3232
  return this.forEach(function(l, E) {
3231
- a.push([E, l]);
3232
- }), A(a);
3233
+ o.push([E, l]);
3234
+ }), A(o);
3233
3235
  }, c.iterable && (g.prototype[Symbol.iterator] = g.prototype.entries);
3234
- function I(a) {
3235
- if (a.bodyUsed)
3236
+ function I(o) {
3237
+ if (o.bodyUsed)
3236
3238
  return Promise.reject(new TypeError("Already read"));
3237
- a.bodyUsed = !0;
3239
+ o.bodyUsed = !0;
3238
3240
  }
3239
- function O(a) {
3241
+ function O(o) {
3240
3242
  return new Promise(function(l, E) {
3241
- a.onload = function() {
3242
- l(a.result);
3243
- }, a.onerror = function() {
3244
- E(a.error);
3243
+ o.onload = function() {
3244
+ l(o.result);
3245
+ }, o.onerror = function() {
3246
+ E(o.error);
3245
3247
  };
3246
3248
  });
3247
3249
  }
3248
- function D(a) {
3250
+ function P(o) {
3249
3251
  var l = new FileReader(), E = O(l);
3250
- return l.readAsArrayBuffer(a), E;
3252
+ return l.readAsArrayBuffer(o), E;
3251
3253
  }
3252
- function z(a) {
3254
+ function z(o) {
3253
3255
  var l = new FileReader(), E = O(l);
3254
- return l.readAsText(a), E;
3256
+ return l.readAsText(o), E;
3255
3257
  }
3256
- function _(a) {
3257
- for (var l = new Uint8Array(a), E = new Array(l.length), b = 0; b < l.length; b++)
3258
+ function _(o) {
3259
+ for (var l = new Uint8Array(o), E = new Array(l.length), b = 0; b < l.length; b++)
3258
3260
  E[b] = String.fromCharCode(l[b]);
3259
3261
  return E.join("");
3260
3262
  }
3261
- function P(a) {
3262
- if (a.slice)
3263
- return a.slice(0);
3264
- var l = new Uint8Array(a.byteLength);
3265
- return l.set(new Uint8Array(a)), l.buffer;
3263
+ function D(o) {
3264
+ if (o.slice)
3265
+ return o.slice(0);
3266
+ var l = new Uint8Array(o.byteLength);
3267
+ return l.set(new Uint8Array(o)), l.buffer;
3266
3268
  }
3267
3269
  function B() {
3268
- return this.bodyUsed = !1, this._initBody = function(a) {
3269
- this._bodyInit = a, a ? typeof a == "string" ? this._bodyText = a : c.blob && Blob.prototype.isPrototypeOf(a) ? this._bodyBlob = a : c.formData && FormData.prototype.isPrototypeOf(a) ? this._bodyFormData = a : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) ? this._bodyText = a.toString() : c.arrayBuffer && c.blob && p(a) ? (this._bodyArrayBuffer = P(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || m(a)) ? this._bodyArrayBuffer = P(a) : this._bodyText = a = Object.prototype.toString.call(a) : this._bodyText = "", this.headers.get("content-type") || (typeof a == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3270
+ return this.bodyUsed = !1, this._initBody = function(o) {
3271
+ this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : c.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : c.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : c.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : c.arrayBuffer && c.blob && p(o) ? (this._bodyArrayBuffer = D(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || m(o)) ? this._bodyArrayBuffer = D(o) : this._bodyText = o = Object.prototype.toString.call(o) : this._bodyText = "", this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3270
3272
  }, c.blob && (this.blob = function() {
3271
- var a = I(this);
3272
- if (a)
3273
- return a;
3273
+ var o = I(this);
3274
+ if (o)
3275
+ return o;
3274
3276
  if (this._bodyBlob)
3275
3277
  return Promise.resolve(this._bodyBlob);
3276
3278
  if (this._bodyArrayBuffer)
@@ -3279,11 +3281,11 @@ var ye = { exports: {} };
3279
3281
  throw new Error("could not read FormData body as blob");
3280
3282
  return Promise.resolve(new Blob([this._bodyText]));
3281
3283
  }, this.arrayBuffer = function() {
3282
- return this._bodyArrayBuffer ? I(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(D);
3284
+ return this._bodyArrayBuffer ? I(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(P);
3283
3285
  }), this.text = function() {
3284
- var a = I(this);
3285
- if (a)
3286
- return a;
3286
+ var o = I(this);
3287
+ if (o)
3288
+ return o;
3287
3289
  if (this._bodyBlob)
3288
3290
  return z(this._bodyBlob);
3289
3291
  if (this._bodyArrayBuffer)
@@ -3298,19 +3300,19 @@ var ye = { exports: {} };
3298
3300
  }, this;
3299
3301
  }
3300
3302
  var J = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
3301
- function Q(a) {
3302
- var l = a.toUpperCase();
3303
- return J.indexOf(l) > -1 ? l : a;
3303
+ function Q(o) {
3304
+ var l = o.toUpperCase();
3305
+ return J.indexOf(l) > -1 ? l : o;
3304
3306
  }
3305
- function w(a, l) {
3307
+ function w(o, l) {
3306
3308
  l = l || {};
3307
3309
  var E = l.body;
3308
- if (a instanceof w) {
3309
- if (a.bodyUsed)
3310
+ if (o instanceof w) {
3311
+ if (o.bodyUsed)
3310
3312
  throw new TypeError("Already read");
3311
- this.url = a.url, this.credentials = a.credentials, l.headers || (this.headers = new g(a.headers)), this.method = a.method, this.mode = a.mode, this.signal = a.signal, !E && a._bodyInit != null && (E = a._bodyInit, a.bodyUsed = !0);
3313
+ this.url = o.url, this.credentials = o.credentials, l.headers || (this.headers = new g(o.headers)), this.method = o.method, this.mode = o.mode, this.signal = o.signal, !E && o._bodyInit != null && (E = o._bodyInit, o.bodyUsed = !0);
3312
3314
  } else
3313
- this.url = String(a);
3315
+ this.url = String(o);
3314
3316
  if (this.credentials = l.credentials || this.credentials || "same-origin", (l.headers || !this.headers) && (this.headers = new g(l.headers)), this.method = Q(l.method || this.method || "GET"), this.mode = l.mode || this.mode || null, this.signal = l.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && E)
3315
3317
  throw new TypeError("Body not allowed for GET or HEAD requests");
3316
3318
  this._initBody(E);
@@ -3318,17 +3320,17 @@ var ye = { exports: {} };
3318
3320
  w.prototype.clone = function() {
3319
3321
  return new w(this, { body: this._bodyInit });
3320
3322
  };
3321
- function Ve(a) {
3323
+ function Ve(o) {
3322
3324
  var l = new FormData();
3323
- return a.trim().split("&").forEach(function(E) {
3325
+ return o.trim().split("&").forEach(function(E) {
3324
3326
  if (E) {
3325
3327
  var b = E.split("="), R = b.shift().replace(/\+/g, " "), T = b.join("=").replace(/\+/g, " ");
3326
3328
  l.append(decodeURIComponent(R), decodeURIComponent(T));
3327
3329
  }
3328
3330
  }), l;
3329
3331
  }
3330
- function $e(a) {
3331
- var l = new g(), E = a.replace(/\r?\n[\t ]+/g, " ");
3332
+ function $e(o) {
3333
+ var l = new g(), E = o.replace(/\r?\n[\t ]+/g, " ");
3332
3334
  return E.split(/\r?\n/).forEach(function(b) {
3333
3335
  var R = b.split(":"), T = R.shift().trim();
3334
3336
  if (T) {
@@ -3338,8 +3340,8 @@ var ye = { exports: {} };
3338
3340
  }), l;
3339
3341
  }
3340
3342
  B.call(w.prototype);
3341
- function L(a, l) {
3342
- l || (l = {}), this.type = "default", this.status = l.status === void 0 ? 200 : l.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in l ? l.statusText : "OK", this.headers = new g(l.headers), this.url = l.url || "", this._initBody(a);
3343
+ function L(o, l) {
3344
+ l || (l = {}), this.type = "default", this.status = l.status === void 0 ? 200 : l.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in l ? l.statusText : "OK", this.headers = new g(l.headers), this.url = l.url || "", this._initBody(o);
3343
3345
  }
3344
3346
  B.call(L.prototype), L.prototype.clone = function() {
3345
3347
  return new L(this._bodyInit, {
@@ -3349,29 +3351,29 @@ var ye = { exports: {} };
3349
3351
  url: this.url
3350
3352
  });
3351
3353
  }, L.error = function() {
3352
- var a = new L(null, { status: 0, statusText: "" });
3353
- return a.type = "error", a;
3354
+ var o = new L(null, { status: 0, statusText: "" });
3355
+ return o.type = "error", o;
3354
3356
  };
3355
3357
  var je = [301, 302, 303, 307, 308];
3356
- L.redirect = function(a, l) {
3358
+ L.redirect = function(o, l) {
3357
3359
  if (je.indexOf(l) === -1)
3358
3360
  throw new RangeError("Invalid status code");
3359
- return new L(null, { status: l, headers: { location: a } });
3360
- }, o.DOMException = s.DOMException;
3361
+ return new L(null, { status: l, headers: { location: o } });
3362
+ }, a.DOMException = s.DOMException;
3361
3363
  try {
3362
- new o.DOMException();
3364
+ new a.DOMException();
3363
3365
  } catch {
3364
- o.DOMException = function(l, E) {
3366
+ a.DOMException = function(l, E) {
3365
3367
  this.message = l, this.name = E;
3366
3368
  var b = Error(l);
3367
3369
  this.stack = b.stack;
3368
- }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
3370
+ }, a.DOMException.prototype = Object.create(Error.prototype), a.DOMException.prototype.constructor = a.DOMException;
3369
3371
  }
3370
- function ae(a, l) {
3372
+ function oe(o, l) {
3371
3373
  return new Promise(function(E, b) {
3372
- var R = new w(a, l);
3374
+ var R = new w(o, l);
3373
3375
  if (R.signal && R.signal.aborted)
3374
- return b(new o.DOMException("Aborted", "AbortError"));
3376
+ return b(new a.DOMException("Aborted", "AbortError"));
3375
3377
  var T = new XMLHttpRequest();
3376
3378
  function X() {
3377
3379
  T.abort();
@@ -3390,7 +3392,7 @@ var ye = { exports: {} };
3390
3392
  }, T.ontimeout = function() {
3391
3393
  b(new TypeError("Network request failed"));
3392
3394
  }, T.onabort = function() {
3393
- b(new o.DOMException("Aborted", "AbortError"));
3395
+ b(new a.DOMException("Aborted", "AbortError"));
3394
3396
  }, T.open(R.method, R.url, !0), R.credentials === "include" ? T.withCredentials = !0 : R.credentials === "omit" && (T.withCredentials = !1), "responseType" in T && c.blob && (T.responseType = "blob"), R.headers.forEach(function(V, ue) {
3395
3397
  T.setRequestHeader(ue, V);
3396
3398
  }), R.signal && (R.signal.addEventListener("abort", X), T.onreadystatechange = function() {
@@ -3398,13 +3400,13 @@ var ye = { exports: {} };
3398
3400
  }), T.send(typeof R._bodyInit > "u" ? null : R._bodyInit);
3399
3401
  });
3400
3402
  }
3401
- return ae.polyfill = !0, s.fetch || (s.fetch = ae, s.Headers = g, s.Request = w, s.Response = L), o.Headers = g, o.Request = w, o.Response = L, o.fetch = ae, Object.defineProperty(o, "__esModule", { value: !0 }), o;
3403
+ return oe.polyfill = !0, s.fetch || (s.fetch = oe, s.Headers = g, s.Request = w, s.Response = L), a.Headers = g, a.Request = w, a.Response = L, a.fetch = oe, Object.defineProperty(a, "__esModule", { value: !0 }), a;
3402
3404
  })({});
3403
3405
  })(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
3404
3406
  var i = r;
3405
3407
  t = i.fetch, t.default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
3406
- })(ye, ye.exports);
3407
- var re = ye.exports;
3408
+ })(Ce, Ce.exports);
3409
+ var re = Ce.exports;
3408
3410
  const te = /* @__PURE__ */ mn(re), gn = /* @__PURE__ */ ze({
3409
3411
  __proto__: null,
3410
3412
  default: te
@@ -3413,7 +3415,7 @@ const te = /* @__PURE__ */ mn(re), gn = /* @__PURE__ */ ze({
3413
3415
  return e && (typeof Headers < "u" && e instanceof Headers || gn && re.Headers && e instanceof re.Headers ? t = ln(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
3414
3416
  n && r !== void 0 && (t[n] = r);
3415
3417
  }) : t = e), t;
3416
- }, be = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), yn = (e) => {
3418
+ }, be = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Cn = (e) => {
3417
3419
  if (!Array.isArray(e.query)) {
3418
3420
  const r = e, i = [`query=${encodeURIComponent(be(r.query))}`];
3419
3421
  return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
@@ -3425,32 +3427,32 @@ const te = /* @__PURE__ */ mn(re), gn = /* @__PURE__ */ ze({
3425
3427
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
3426
3428
  }), r), []);
3427
3429
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
3428
- }, Cn = (e) => async (t) => {
3429
- const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: c, middleware: p } = t, h = { ...t.headers };
3430
- let m = "", y;
3431
- e === "POST" ? (y = vn(r, i, s, c.jsonSerializer), typeof y == "string" && (h["Content-Type"] = "application/json")) : m = yn({
3430
+ }, yn = (e) => async (t) => {
3431
+ const { url: n, query: r, variables: i, operationName: s, fetch: a, fetchOptions: c, middleware: p } = t, h = { ...t.headers };
3432
+ let m = "", C;
3433
+ e === "POST" ? (C = vn(r, i, s, c.jsonSerializer), typeof C == "string" && (h["Content-Type"] = "application/json")) : m = Cn({
3432
3434
  query: r,
3433
3435
  variables: i,
3434
3436
  operationName: s,
3435
3437
  jsonSerializer: c.jsonSerializer ?? ve
3436
3438
  });
3437
- const C = {
3439
+ const y = {
3438
3440
  method: e,
3439
3441
  headers: h,
3440
- body: y,
3442
+ body: C,
3441
3443
  ...c
3442
3444
  };
3443
- let A = n, g = C;
3445
+ let A = n, g = y;
3444
3446
  if (p) {
3445
- const I = await Promise.resolve(p({ ...C, url: n, operationName: s, variables: i })), { url: O, ...D } = I;
3446
- A = O, g = D;
3447
+ const I = await Promise.resolve(p({ ...y, url: n, operationName: s, variables: i })), { url: O, ...P } = I;
3448
+ A = O, g = P;
3447
3449
  }
3448
- return m && (A = `${A}?${m}`), await o(A, g);
3450
+ return m && (A = `${A}?${m}`), await a(A, g);
3449
3451
  };
3450
3452
  class En {
3451
3453
  constructor(t, n = {}) {
3452
3454
  this.url = t, this.requestConfig = n, this.rawRequest = async (...r) => {
3453
- const [i, s, o] = r, c = pn(i, s, o), { headers: p, fetch: h = te, method: m = "POST", requestMiddleware: y, responseMiddleware: C, ...A } = this.requestConfig, { url: g } = this;
3455
+ const [i, s, a] = r, c = pn(i, s, a), { headers: p, fetch: h = te, method: m = "POST", requestMiddleware: C, responseMiddleware: y, ...A } = this.requestConfig, { url: g } = this;
3454
3456
  c.signal !== void 0 && (A.signal = c.signal);
3455
3457
  const { operationName: I } = le(c.query);
3456
3458
  return de({
@@ -3465,28 +3467,28 @@ class En {
3465
3467
  fetch: h,
3466
3468
  method: m,
3467
3469
  fetchOptions: A,
3468
- middleware: y
3469
- }).then((O) => (C && C(O), O)).catch((O) => {
3470
- throw C && C(O), O;
3470
+ middleware: C
3471
+ }).then((O) => (y && y(O), O)).catch((O) => {
3472
+ throw y && y(O), O;
3471
3473
  });
3472
3474
  };
3473
3475
  }
3474
3476
  async request(t, ...n) {
3475
- const [r, i] = n, s = dn(t, r, i), { headers: o, fetch: c = te, method: p = "POST", requestMiddleware: h, responseMiddleware: m, ...y } = this.requestConfig, { url: C } = this;
3476
- s.signal !== void 0 && (y.signal = s.signal);
3477
+ const [r, i] = n, s = dn(t, r, i), { headers: a, fetch: c = te, method: p = "POST", requestMiddleware: h, responseMiddleware: m, ...C } = this.requestConfig, { url: y } = this;
3478
+ s.signal !== void 0 && (C.signal = s.signal);
3477
3479
  const { query: A, operationName: g } = le(s.document);
3478
3480
  return de({
3479
- url: C,
3481
+ url: y,
3480
3482
  query: A,
3481
3483
  variables: s.variables,
3482
3484
  headers: {
3483
- ...U(pe(o)),
3485
+ ...U(pe(a)),
3484
3486
  ...U(s.requestHeaders)
3485
3487
  },
3486
3488
  operationName: g,
3487
3489
  fetch: c,
3488
3490
  method: p,
3489
- fetchOptions: y,
3491
+ fetchOptions: C,
3490
3492
  middleware: h
3491
3493
  }).then((I) => (m && m(I), I.data)).catch((I) => {
3492
3494
  throw m && m(I), I;
@@ -3496,10 +3498,10 @@ class En {
3496
3498
  batchRequests(t, n) {
3497
3499
  const r = hn(t, n), { headers: i, ...s } = this.requestConfig;
3498
3500
  r.signal !== void 0 && (s.signal = r.signal);
3499
- const o = r.documents.map(({ document: p }) => le(p).query), c = r.documents.map(({ variables: p }) => p);
3501
+ const a = r.documents.map(({ document: p }) => le(p).query), c = r.documents.map(({ variables: p }) => p);
3500
3502
  return de({
3501
3503
  url: this.url,
3502
- query: o,
3504
+ query: a,
3503
3505
  // @ts-expect-error TODO reconcile batch variables into system.
3504
3506
  variables: c,
3505
3507
  headers: {
@@ -3533,13 +3535,13 @@ class En {
3533
3535
  }
3534
3536
  }
3535
3537
  const de = async (e) => {
3536
- const { query: t, variables: n, fetchOptions: r } = e, i = Cn(cn(e.method ?? "post")), s = Array.isArray(e.query), o = await i(e), c = await Tn(o, r.jsonSerializer ?? ve), p = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3537
- if (o.ok && h && p) {
3538
- const { errors: m, ...y } = (Array.isArray(c), c), C = r.errorPolicy === "ignore" ? y : c;
3538
+ const { query: t, variables: n, fetchOptions: r } = e, i = yn(cn(e.method ?? "post")), s = Array.isArray(e.query), a = await i(e), c = await Tn(a, r.jsonSerializer ?? ve), p = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3539
+ if (a.ok && h && p) {
3540
+ const { errors: m, ...C } = (Array.isArray(c), c), y = r.errorPolicy === "ignore" ? C : c;
3539
3541
  return {
3540
- ...s ? { data: C } : C,
3541
- headers: o.headers,
3542
- status: o.status
3542
+ ...s ? { data: y } : y,
3543
+ headers: a.headers,
3544
+ status: a.status
3543
3545
  };
3544
3546
  } else {
3545
3547
  const m = typeof c == "string" ? {
@@ -3547,7 +3549,7 @@ const de = async (e) => {
3547
3549
  } : c;
3548
3550
  throw new H(
3549
3551
  // @ts-expect-error TODO
3550
- { ...m, status: o.status, headers: o.headers },
3552
+ { ...m, status: a.status, headers: a.headers },
3551
3553
  { query: t, variables: n }
3552
3554
  );
3553
3555
  }
@@ -3557,7 +3559,7 @@ const de = async (e) => {
3557
3559
  return i.stringify({ query: e, variables: t, operationName: n });
3558
3560
  if (typeof t < "u" && !Array.isArray(t))
3559
3561
  throw new Error("Cannot create request body with given variable type, array expected");
3560
- const s = e.reduce((o, c, p) => (o.push({ query: c, variables: t ? t[p] : void 0 }), o), []);
3562
+ const s = e.reduce((a, c, p) => (a.push({ query: c, variables: t ? t[p] : void 0 }), a), []);
3561
3563
  return i.stringify(s);
3562
3564
  }, Tn = async (e, t) => {
3563
3565
  let n;
@@ -3594,26 +3596,26 @@ class Nn {
3594
3596
  });
3595
3597
  return {
3596
3598
  nodes: s.locationAvailabilities.nodes.map(
3597
- (o) => ({
3599
+ (a) => ({
3598
3600
  location: {
3599
- id: o.location.id,
3600
- name: o.location.name,
3601
- phone: o.location.phone,
3602
- mapURL: o.location.mapURL,
3603
- tags: o.location.tags,
3604
- address: o.location.address ? {
3605
- id: o.location.address.id,
3606
- countryCode: o.location.address.countryCode,
3607
- country: o.location.address.country,
3608
- postalCode: o.location.address.postalCode,
3609
- provinceCode: o.location.address.provinceCode,
3610
- province: o.location.address.province,
3611
- city: o.location.address.city,
3612
- address1: o.location.address.address1,
3613
- address2: o.location.address.address2
3601
+ id: a.location.id,
3602
+ name: a.location.name,
3603
+ phone: a.location.phone,
3604
+ mapURL: a.location.mapURL,
3605
+ tags: a.location.tags,
3606
+ address: a.location.address ? {
3607
+ id: a.location.address.id,
3608
+ countryCode: a.location.address.countryCode,
3609
+ country: a.location.address.country,
3610
+ postalCode: a.location.address.postalCode,
3611
+ provinceCode: a.location.address.provinceCode,
3612
+ province: a.location.address.province,
3613
+ city: a.location.address.city,
3614
+ address1: a.location.address.address1,
3615
+ address2: a.location.address.address2
3614
3616
  } : void 0
3615
3617
  },
3616
- inventoryQuantity: o.inventoryQuantity
3618
+ inventoryQuantity: a.inventoryQuantity
3617
3619
  })
3618
3620
  ) ?? [],
3619
3621
  pageInfo: s.locationAvailabilities.pageInfo ?? null
@@ -3671,8 +3673,12 @@ class Nn {
3671
3673
  pointsPending: t.purchasingCustomer.pointsPending,
3672
3674
  pointsExpiringSoon: t.purchasingCustomer.pointsExpiringSoon ? {
3673
3675
  points: t.purchasingCustomer.pointsExpiringSoon.points,
3674
- expiresDate: new Date(t.purchasingCustomer.pointsExpiringSoon.expiresDate),
3675
- availableUntil: new Date(t.purchasingCustomer.pointsExpiringSoon.availableUntil)
3676
+ expiresDate: new Date(
3677
+ t.purchasingCustomer.pointsExpiringSoon.expiresDate
3678
+ ),
3679
+ availableUntil: new Date(
3680
+ t.purchasingCustomer.pointsExpiringSoon.availableUntil
3681
+ )
3676
3682
  } : void 0
3677
3683
  } : null;
3678
3684
  }
@@ -3692,22 +3698,22 @@ class Nn {
3692
3698
  isReverse: i
3693
3699
  });
3694
3700
  return {
3695
- nodes: s.locations.nodes.map((o) => ({
3696
- id: o.id,
3697
- name: o.name,
3698
- phone: o.phone,
3699
- mapURL: o.mapURL,
3700
- tags: o.tags,
3701
- address: o.address ? {
3702
- id: o.address.id,
3703
- countryCode: o.address.countryCode,
3704
- country: o.address.country,
3705
- postalCode: o.address.postalCode,
3706
- provinceCode: o.address.provinceCode,
3707
- province: o.address.province,
3708
- city: o.address.city,
3709
- address1: o.address.address1,
3710
- address2: o.address.address2
3701
+ nodes: s.locations.nodes.map((a) => ({
3702
+ id: a.id,
3703
+ name: a.name,
3704
+ phone: a.phone,
3705
+ mapURL: a.mapURL,
3706
+ tags: a.tags,
3707
+ address: a.address ? {
3708
+ id: a.address.id,
3709
+ countryCode: a.address.countryCode,
3710
+ country: a.address.country,
3711
+ postalCode: a.address.postalCode,
3712
+ provinceCode: a.address.provinceCode,
3713
+ province: a.address.province,
3714
+ city: a.address.city,
3715
+ address1: a.address.address1,
3716
+ address2: a.address.address2
3711
3717
  } : void 0
3712
3718
  })) ?? [],
3713
3719
  pageInfo: s.locations.pageInfo ?? null
@@ -3766,46 +3772,46 @@ class Nn {
3766
3772
  });
3767
3773
  return s.purchasingCustomer ? {
3768
3774
  nodes: s.purchasingCustomer.pointChangeActivities.nodes.map(
3769
- (o) => ({
3770
- id: o.id,
3771
- title: o.title,
3775
+ (a) => ({
3776
+ id: a.id,
3777
+ title: a.title,
3778
+ tenant: {
3779
+ id: a.tenant.id,
3780
+ name: a.tenant.name
3781
+ },
3772
3782
  pointChange: {
3773
- id: o.pointChange.id,
3774
- delta: o.pointChange.delta,
3775
- availableAt: o.pointChange.availableAt ? new Date(o.pointChange.availableAt) : void 0,
3776
- availableUntil: o.pointChange.availableUntil ? new Date(o.pointChange.availableUntil) : void 0,
3777
- expiresDate: o.pointChange.expiresDate ? new Date(o.pointChange.expiresDate) : void 0,
3783
+ id: a.pointChange.id,
3784
+ delta: a.pointChange.delta,
3785
+ availableAt: a.pointChange.availableAt ? new Date(a.pointChange.availableAt) : void 0,
3786
+ expiresDate: a.pointChange.expiresDate ? new Date(a.pointChange.expiresDate) : void 0,
3787
+ availableUntil: a.pointChange.availableUntil ? new Date(a.pointChange.availableUntil) : void 0,
3778
3788
  pointChangeCreatedAt: new Date(
3779
- o.pointChange.pointChangeCreatedAt
3789
+ a.pointChange.pointChangeCreatedAt
3780
3790
  ),
3781
3791
  tenant: {
3782
- id: o.pointChange.tenant.id,
3783
- name: o.pointChange.tenant.name
3792
+ id: a.pointChange.tenant.id,
3793
+ name: a.pointChange.tenant.name
3784
3794
  },
3785
- createdAt: new Date(o.pointChange.createdAt)
3795
+ createdAt: new Date(a.pointChange.createdAt)
3786
3796
  },
3787
- retailLocation: o.retailLocation ? {
3788
- id: o.retailLocation.id,
3789
- name: o.retailLocation.name,
3790
- phone: o.retailLocation.phone,
3791
- mapURL: o.retailLocation.mapURL,
3792
- tags: o.retailLocation.tags,
3793
- address: o.retailLocation.address ? {
3794
- id: o.retailLocation.address.id,
3795
- countryCode: o.retailLocation.address.countryCode,
3796
- country: o.retailLocation.address.country,
3797
- postalCode: o.retailLocation.address.postalCode,
3798
- provinceCode: o.retailLocation.address.provinceCode,
3799
- province: o.retailLocation.address.province,
3800
- city: o.retailLocation.address.city,
3801
- address1: o.retailLocation.address.address1,
3802
- address2: o.retailLocation.address.address2
3797
+ retailLocation: a.retailLocation ? {
3798
+ id: a.retailLocation.id,
3799
+ name: a.retailLocation.name,
3800
+ phone: a.retailLocation.phone,
3801
+ mapURL: a.retailLocation.mapURL,
3802
+ tags: a.retailLocation.tags,
3803
+ address: a.retailLocation.address ? {
3804
+ id: a.retailLocation.address.id,
3805
+ countryCode: a.retailLocation.address.countryCode,
3806
+ country: a.retailLocation.address.country,
3807
+ postalCode: a.retailLocation.address.postalCode,
3808
+ provinceCode: a.retailLocation.address.provinceCode,
3809
+ province: a.retailLocation.address.province,
3810
+ city: a.retailLocation.address.city,
3811
+ address1: a.retailLocation.address.address1,
3812
+ address2: a.retailLocation.address.address2
3803
3813
  } : void 0
3804
- } : void 0,
3805
- tenant: {
3806
- id: o.tenant.id,
3807
- name: o.tenant.name
3808
- }
3814
+ } : void 0
3809
3815
  })
3810
3816
  ),
3811
3817
  pageInfo: s.purchasingCustomer.pointChangeActivities.pageInfo
@@ -3820,6 +3826,21 @@ class Nn {
3820
3826
  return (n = t.purchasingCustomer) != null && n.currentCustomerRank ? {
3821
3827
  id: t.purchasingCustomer.currentCustomerRank.id,
3822
3828
  name: t.purchasingCustomer.currentCustomerRank.name,
3829
+ threshold: t.purchasingCustomer.currentCustomerRank.threshold,
3830
+ higherRank: t.purchasingCustomer.currentCustomerRank.higherRank ? {
3831
+ id: t.purchasingCustomer.currentCustomerRank.higherRank.id,
3832
+ name: t.purchasingCustomer.currentCustomerRank.higherRank.name,
3833
+ threshold: t.purchasingCustomer.currentCustomerRank.higherRank.threshold
3834
+ } : void 0,
3835
+ lowerRank: t.purchasingCustomer.currentCustomerRank.lowerRank ? {
3836
+ id: t.purchasingCustomer.currentCustomerRank.lowerRank.id,
3837
+ name: t.purchasingCustomer.currentCustomerRank.lowerRank.name,
3838
+ threshold: t.purchasingCustomer.currentCustomerRank.lowerRank.threshold
3839
+ } : void 0,
3840
+ earnedPoint: t.purchasingCustomer.currentCustomerRank.earnedPoint,
3841
+ purchasePrice: t.purchasingCustomer.currentCustomerRank.purchasePrice,
3842
+ earnedPointToRankUp: t.purchasingCustomer.currentCustomerRank.earnedPointToRankUp,
3843
+ purchasePriceToRankUp: t.purchasingCustomer.currentCustomerRank.purchasePriceToRankUp,
3823
3844
  calculationCondition: {
3824
3845
  customerRankCalculationPeriod: t.purchasingCustomer.currentCustomerRank.calculationCondition.customerRankCalculationPeriod ? {
3825
3846
  start: new Date(
@@ -3832,19 +3853,6 @@ class Nn {
3832
3853
  earnedPoint: t.purchasingCustomer.currentCustomerRank.calculationCondition.earnedPoint,
3833
3854
  purchasePrice: t.purchasingCustomer.currentCustomerRank.calculationCondition.purchasePrice
3834
3855
  },
3835
- earnedPointToRankUp: t.purchasingCustomer.currentCustomerRank.earnedPointToRankUp,
3836
- higherRank: t.purchasingCustomer.currentCustomerRank.higherRank ? {
3837
- id: t.purchasingCustomer.currentCustomerRank.higherRank.id,
3838
- name: t.purchasingCustomer.currentCustomerRank.higherRank.name,
3839
- threshold: t.purchasingCustomer.currentCustomerRank.higherRank.threshold
3840
- } : void 0,
3841
- lowerRank: t.purchasingCustomer.currentCustomerRank.lowerRank ? {
3842
- id: t.purchasingCustomer.currentCustomerRank.lowerRank.id,
3843
- name: t.purchasingCustomer.currentCustomerRank.lowerRank.name,
3844
- threshold: t.purchasingCustomer.currentCustomerRank.lowerRank.threshold
3845
- } : void 0,
3846
- purchasePriceToRankUp: t.purchasingCustomer.currentCustomerRank.purchasePriceToRankUp,
3847
- threshold: t.purchasingCustomer.currentCustomerRank.threshold,
3848
3856
  pointMultiplier: t.purchasingCustomer.currentCustomerRank.pointMultiplier ? {
3849
3857
  id: t.purchasingCustomer.currentCustomerRank.pointMultiplier.id,
3850
3858
  customerRankRule: {
@@ -3891,32 +3899,32 @@ class Nn {
3891
3899
  } : null;
3892
3900
  }
3893
3901
  async getProduct(t, n, r, i, s) {
3894
- const o = await this.api.GetProduct({
3902
+ const a = await this.api.GetProduct({
3895
3903
  id: t,
3896
3904
  first: n,
3897
3905
  after: r,
3898
3906
  isReverse: i,
3899
3907
  sortKeys: s
3900
3908
  });
3901
- return o.productByProductShopifyLegacyResourceID ? {
3902
- id: o.productByProductShopifyLegacyResourceID.id,
3903
- title: o.productByProductShopifyLegacyResourceID.title,
3904
- hasBackOrderProductVariants: o.productByProductShopifyLegacyResourceID.hasBackOrderProductVariants,
3905
- isLocalPickupAvailable: o.productByProductShopifyLegacyResourceID.isLocalPickupAvailable,
3909
+ return a.productByProductShopifyLegacyResourceID ? {
3910
+ id: a.productByProductShopifyLegacyResourceID.id,
3911
+ title: a.productByProductShopifyLegacyResourceID.title,
3912
+ hasBackOrderProductVariants: a.productByProductShopifyLegacyResourceID.hasBackOrderProductVariants,
3913
+ isLocalPickupAvailable: a.productByProductShopifyLegacyResourceID.isLocalPickupAvailable,
3906
3914
  variants: {
3907
- nodes: o.productByProductShopifyLegacyResourceID.productVariants.nodes.map(
3915
+ nodes: a.productByProductShopifyLegacyResourceID.productVariants.nodes.map(
3908
3916
  (c) => ({
3909
3917
  id: c.id,
3910
3918
  title: c.title,
3911
- isBackOrderEnable: c.isBackOrderEnable,
3912
- isLocalPickupAvailable: c.isLocalPickupAvailable,
3913
3919
  inventoryItem: {
3914
3920
  id: c.inventoryItem.id,
3915
3921
  sku: c.inventoryItem.sku
3916
- }
3922
+ },
3923
+ isBackOrderEnable: c.isBackOrderEnable,
3924
+ isLocalPickupAvailable: c.isLocalPickupAvailable
3917
3925
  })
3918
3926
  ),
3919
- pageInfo: o.productByProductShopifyLegacyResourceID.productVariants.pageInfo
3927
+ pageInfo: a.productByProductShopifyLegacyResourceID.productVariants.pageInfo
3920
3928
  }
3921
3929
  } : null;
3922
3930
  }
@@ -3926,8 +3934,8 @@ class Nn {
3926
3934
  pointCampaignOrderRule: {
3927
3935
  id: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.id,
3928
3936
  title: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.title,
3929
- targetType: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.targetType,
3930
- pointMethod: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.pointMethod
3937
+ pointMethod: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.pointMethod,
3938
+ targetType: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.targetType
3931
3939
  },
3932
3940
  multiplier: t.pointCampaignOrderRuleTargetCustomerRank.multiplier ? t.pointCampaignOrderRuleTargetCustomerRank.multiplier : void 0,
3933
3941
  fixedPoint: t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint ? t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint : void 0
@@ -3956,7 +3964,7 @@ class Nn {
3956
3964
  } : null;
3957
3965
  }
3958
3966
  async getEstimatedShopifyCartLineItemPoint(t, n, r, i, s) {
3959
- const o = await this.api.GetEstimatedShopifyCartLineItemPoint({
3967
+ const a = await this.api.GetEstimatedShopifyCartLineItemPoint({
3960
3968
  input: {
3961
3969
  currencyCode: t,
3962
3970
  taxesIncluded: n,
@@ -3965,16 +3973,16 @@ class Nn {
3965
3973
  unitPrice: s
3966
3974
  }
3967
3975
  });
3968
- return o.estimatedShopifyCartLineItemPoint ? {
3969
- pointsEarning: o.estimatedShopifyCartLineItemPoint.pointsEarning,
3970
- totalPointsEarning: o.estimatedShopifyCartLineItemPoint.totalPointsEarning,
3971
- pointCampaign: o.estimatedShopifyCartLineItemPoint.pointCampaign ? {
3972
- pointsEarning: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointsEarning,
3976
+ return a.estimatedShopifyCartLineItemPoint ? {
3977
+ pointsEarning: a.estimatedShopifyCartLineItemPoint.pointsEarning,
3978
+ totalPointsEarning: a.estimatedShopifyCartLineItemPoint.totalPointsEarning,
3979
+ pointCampaign: a.estimatedShopifyCartLineItemPoint.pointCampaign ? {
3980
+ pointsEarning: a.estimatedShopifyCartLineItemPoint.pointCampaign.pointsEarning,
3973
3981
  pointCampaignOrderRule: {
3974
- id: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.id,
3975
- title: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.title,
3976
- pointMethod: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
3977
- targetType: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.targetType
3982
+ id: a.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.id,
3983
+ title: a.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.title,
3984
+ pointMethod: a.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
3985
+ targetType: a.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.targetType
3978
3986
  }
3979
3987
  } : void 0
3980
3988
  } : null;