@spiffcommerce/core 26.4.1 → 26.4.2

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
@@ -348,7 +348,7 @@ class Sn {
348
348
  });
349
349
  }
350
350
  }
351
- const F = new Sn();
351
+ const y = new Sn();
352
352
  let Ke, Ve;
353
353
  const lt = (n, t, e) => {
354
354
  if (Ke !== void 0)
@@ -556,14 +556,14 @@ const xn = (n) => new Promise((t) => {
556
556
  ...AssetFields
557
557
  }
558
558
  }
559
- `, We = async (n) => (await F.getShadowGraphqlClient().query({
559
+ `, We = async (n) => (await y.getShadowGraphqlClient().query({
560
560
  query: kn,
561
561
  errorPolicy: "all",
562
562
  fetchPolicy: "no-cache",
563
563
  variables: {
564
564
  keys: n
565
565
  }
566
- })).data.assets, Un = async (n) => (await F.getShadowGraphqlClient().query({
566
+ })).data.assets, Un = async (n) => (await y.getShadowGraphqlClient().query({
567
567
  query: Rn,
568
568
  errorPolicy: "all",
569
569
  variables: {
@@ -571,7 +571,7 @@ const xn = (n) => new Promise((t) => {
571
571
  }
572
572
  })).data.materials, Gn = async (n, t, e, A, a) => {
573
573
  var s;
574
- return (s = (await F.getShadowGraphqlClient().mutate({
574
+ return (s = (await y.getShadowGraphqlClient().mutate({
575
575
  mutation: bn,
576
576
  errorPolicy: "all",
577
577
  fetchPolicy: "no-cache",
@@ -699,7 +699,7 @@ class Tn {
699
699
  }
700
700
  const a = (async () => {
701
701
  var s, o;
702
- const i = await F.getShadowGraphqlClient().mutate({
702
+ const i = await y.getShadowGraphqlClient().mutate({
703
703
  mutation: Hn,
704
704
  fetchPolicy: "no-cache",
705
705
  errorPolicy: "all",
@@ -920,7 +920,7 @@ const Ot = new Jn(), na = I`
920
920
  }
921
921
  }
922
922
  `, On = async (n) => {
923
- const t = await F.getShadowGraphqlClient().query({
923
+ const t = await y.getShadowGraphqlClient().query({
924
924
  query: Ln,
925
925
  errorPolicy: "all",
926
926
  variables: {
@@ -5328,9 +5328,9 @@ const ee = (n) => {
5328
5328
  width: d
5329
5329
  }) => {
5330
5330
  var p;
5331
- const B = e || 0, h = 2 * ((r == null ? void 0 : r.scale) || 1), C = g || { x: 0, y: 0, width: d, height: i }, w = `${C.x} ${C.y} ${C.width} ${C.height}`, u = R(), E = A.purpose === Jt.FreeDesign && /* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ v("rect", { width: C.width, height: C.height, rx: B }) }) }), m = (p = A.colorProfiles) == null ? void 0 : p.map((D, y) => (
5331
+ const B = e || 0, h = 2 * ((r == null ? void 0 : r.scale) || 1), C = g || { x: 0, y: 0, width: d, height: i }, w = `${C.x} ${C.y} ${C.width} ${C.height}`, u = R(), E = A.purpose === Jt.FreeDesign && /* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ v("rect", { width: C.width, height: C.height, rx: B }) }) }), m = (p = A.colorProfiles) == null ? void 0 : p.map((D, F) => (
5332
5332
  /* @ts-ignore */
5333
- /* @__PURE__ */ v("color-profile", { name: D.name, xlinkHref: D.key, children: " " }, y)
5333
+ /* @__PURE__ */ v("color-profile", { name: D.name, xlinkHref: D.key, children: " " }, F)
5334
5334
  )), f = a.map((D) => ({
5335
5335
  ...D,
5336
5336
  _renderingConfiguration: A,
@@ -5577,8 +5577,8 @@ const ee = (n) => {
5577
5577
  /* @__PURE__ */ v("feFuncB", { type: "discrete", tableValues: a() })
5578
5578
  ] })
5579
5579
  ] }) }) }), s = n.rotation || 0, o = dt(s), r = Math.cos(o), c = -Math.sin(o), l = () => {
5580
- var m, f, Q, p, D, y, S, x, Y, P;
5581
- const g = ((m = n.pattern) == null ? void 0 : m.x) || 0, d = ((f = n.pattern) == null ? void 0 : f.y) || 0, B = ((Q = n.pattern) == null ? void 0 : Q.width) || 0, h = ((p = n.pattern) == null ? void 0 : p.height) || 0, C = ((D = n.pattern) == null ? void 0 : D.scaleX) || 1, w = ((y = n.pattern) == null ? void 0 : y.scaleY) || 1, u = ((S = n.pattern) == null ? void 0 : S.rotation) || 0;
5580
+ var m, f, Q, p, D, F, S, x, Y, P;
5581
+ const g = ((m = n.pattern) == null ? void 0 : m.x) || 0, d = ((f = n.pattern) == null ? void 0 : f.y) || 0, B = ((Q = n.pattern) == null ? void 0 : Q.width) || 0, h = ((p = n.pattern) == null ? void 0 : p.height) || 0, C = ((D = n.pattern) == null ? void 0 : D.scaleX) || 1, w = ((F = n.pattern) == null ? void 0 : F.scaleY) || 1, u = ((S = n.pattern) == null ? void 0 : S.rotation) || 0;
5582
5582
  return [(x = n.pattern) != null && x.svg ? {
5583
5583
  id: `${t}-contents`,
5584
5584
  type: k.Illustration,
@@ -5736,8 +5736,8 @@ const vi = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ne = /* @_
5736
5736
  f === "middle" ? m = E / 2 : f === "end" && (m = E);
5737
5737
  const p = C.getPath(g.innerHTML, parseFloat(g.getAttribute("x") ?? "0") - m, parseFloat(g.getAttribute("y") ?? "0"), parseInt(d.getAttribute("font-size") ?? "72"), {
5738
5738
  fill: w
5739
- }).toSVG(2), D = t.parseFromString(p, "image/svg+xml");
5740
- B.appendChild(D.firstElementChild);
5739
+ }).toSVG(2), F = t.parseFromString(p, "image/svg+xml").firstElementChild;
5740
+ F.setAttribute("xmlns", "http://www.w3.org/2000/svg"), B.appendChild(F);
5741
5741
  }
5742
5742
  return e.querySelectorAll("text").forEach((l) => l.remove()), xt().serializeToString(A);
5743
5743
  }, Be = (n, t, e, A) => Math.max(bi(n.join(`
@@ -7798,7 +7798,7 @@ class es {
7798
7798
  i && i(!0);
7799
7799
  const c = t.data.initialZoomLevel, l = await Promise.all(
7800
7800
  t.data.regions.map(async (h, C) => {
7801
- const w = await Ie(r[C]), u = o.getImageData(), E = A.map((y) => new ft(y.id)), m = u ? oA(
7801
+ const w = await Ie(r[C]), u = o.getImageData(), E = A.map((F) => new ft(F.id)), m = u ? oA(
7802
7802
  u,
7803
7803
  w,
7804
7804
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7813,7 +7813,7 @@ class es {
7813
7813
  scaleX: (m == null ? void 0 : m.zoom) || 1,
7814
7814
  scaleY: (m == null ? void 0 : m.zoom) || 1,
7815
7815
  rotation: 0
7816
- } : void 0, Q = R(), D = a.getLayouts().find((y) => y.panelId === h.panelId);
7816
+ } : void 0, Q = R(), D = a.getLayouts().find((F) => F.panelId === h.panelId);
7817
7817
  if (!D)
7818
7818
  throw new W(h);
7819
7819
  return {
@@ -9210,7 +9210,7 @@ class ds {
9210
9210
  }, Q = [], p = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
9211
9211
  if (!f.fontData)
9212
9212
  throw new L("Failed to resolve font data for text.");
9213
- const [y, S] = re(
9213
+ const [F, S] = re(
9214
9214
  f.fontSize,
9215
9215
  f.fontData,
9216
9216
  {
@@ -9224,11 +9224,11 @@ class ds {
9224
9224
  [r],
9225
9225
  { size: A.size, minSize: A.minSize, maxSize: A.maxSize }
9226
9226
  );
9227
- p.set(f.id, y), D.set(f.id, S);
9227
+ p.set(f.id, F), D.set(f.id, S);
9228
9228
  const x = A.curved || A.vertical ? r : (S || []).join(`
9229
9229
  `);
9230
9230
  Q.push(
9231
- this.generateTextChangeCommandsForRegion(y, A, f.id, x)
9231
+ this.generateTextChangeCommandsForRegion(F, A, f.id, x)
9232
9232
  );
9233
9233
  const Y = new j(f, B);
9234
9234
  return {
@@ -9286,8 +9286,8 @@ class ds {
9286
9286
  const f = s.getProfanities(), Q = Oe(d.toLowerCase());
9287
9287
  for (const p of Q)
9288
9288
  for (const D in f) {
9289
- const y = f[D].toLowerCase().replace(/\s/g, "");
9290
- if (p === y)
9289
+ const F = f[D].toLowerCase().replace(/\s/g, "");
9290
+ if (p === F)
9291
9291
  return r(!0), { error: "Blocked profanity." };
9292
9292
  }
9293
9293
  return !t.data.vertical && !t.data.allowNewlines && (d.includes(`
@@ -10763,8 +10763,8 @@ class ms extends hA {
10763
10763
  Q.appendChild(p), p.appendChild(Ha(3, 7, 4, "shadow"));
10764
10764
  const D = b("g");
10765
10765
  Q.appendChild(D), D.setAttribute("filter", "url(#shadow)"), D.innerHTML = A;
10766
- const y = b("g");
10767
- Q.appendChild(y), y.setAttribute("fill", "red"), y.setAttribute("stroke", "red"), y.setAttribute("stroke-width", "9"), y.innerHTML = A;
10766
+ const F = b("g");
10767
+ Q.appendChild(F), F.setAttribute("fill", "red"), F.setAttribute("stroke", "red"), F.setAttribute("stroke-width", "9"), F.innerHTML = A;
10768
10768
  const S = b("g");
10769
10769
  Q.appendChild(S), S.setAttribute("fill", "#9d2621"), S.setAttribute("transform", "translate(1,1)"), S.innerHTML = A;
10770
10770
  const x = b("g");
@@ -10803,8 +10803,8 @@ class Qs extends hA {
10803
10803
  }
10804
10804
  brandSvg(t, e, A) {
10805
10805
  const a = t.toSVG(2), i = t.getBoundingBox(), s = i.y2 - i.y1, o = i.x2 - i.x1, r = t.toPathData(3), c = () => {
10806
- const D = b("g"), y = b("g");
10807
- D.appendChild(y), y.setAttribute("stroke", "#5C1A0D"), y.setAttribute("stroke-width", "4"), y.setAttribute("transform", "translate(1,1)"), y.innerHTML = a;
10806
+ const D = b("g"), F = b("g");
10807
+ D.appendChild(F), F.setAttribute("stroke", "#5C1A0D"), F.setAttribute("stroke-width", "4"), F.setAttribute("transform", "translate(1,1)"), F.innerHTML = a;
10808
10808
  const S = b("g");
10809
10809
  D.appendChild(S), S.setAttribute("fill", "#FFE386"), S.setAttribute("transform", "translate(1,1)"), S.innerHTML = a;
10810
10810
  const x = b("g");
@@ -10857,8 +10857,8 @@ class Ds extends hA {
10857
10857
  p.classList.add("module-layer0"), m.appendChild(p), p.setAttribute("filter", "url(#shadow)"), p.innerHTML = Q.outerHTML;
10858
10858
  const D = b("g");
10859
10859
  D.classList.add("module-layer1"), m.appendChild(D), D.setAttribute("stroke-width", "3"), D.setAttribute("stroke", "rgb(45,41,38)"), D.setAttribute("fill", "rgb(45,41,38)"), D.setAttribute("transform", "translate(0.5,0)"), D.innerHTML = o;
10860
- const y = b("g");
10861
- y.classList.add("module-layer2"), m.appendChild(y), y.setAttribute("fill", "rgb(255,209,0)"), y.setAttribute("transform", "translate(1,-0.1)"), y.innerHTML = o;
10860
+ const F = b("g");
10861
+ F.classList.add("module-layer2"), m.appendChild(F), F.setAttribute("fill", "rgb(255,209,0)"), F.setAttribute("transform", "translate(1,-0.1)"), F.innerHTML = o;
10862
10862
  const S = b("g");
10863
10863
  return S.classList.add("module-layer3"), m.appendChild(S), S.setAttribute("fill", "white"), S.innerHTML = o, new uA(m).transform(([Y, P]) => [Y, P + (c / 2 - Y) ** 2 / (c * 6)]), m;
10864
10864
  }, d = b("g");
@@ -11845,7 +11845,7 @@ class qs {
11845
11845
  }
11846
11846
  async updateTransactionStakeholders() {
11847
11847
  var e;
11848
- const t = await F.getShadowGraphqlClient().query({
11848
+ const t = await y.getShadowGraphqlClient().query({
11849
11849
  query: ei,
11850
11850
  errorPolicy: "all",
11851
11851
  fetchPolicy: "no-cache",
@@ -11856,7 +11856,7 @@ class qs {
11856
11856
  !((e = t == null ? void 0 : t.data) != null && e.transactions) || t.data.transactions.length !== 1 ? (this.transaction.currentStakeholder = void 0, this.transaction.stakeholders = void 0) : (this.transaction.stakeholders = t.data.transactions[0].stakeholders, this.transaction.currentStakeholder = t.data.transactions[0].currentStakeholder);
11857
11857
  }
11858
11858
  async approveTransaction(t) {
11859
- await F.getShadowGraphqlClient().mutate({
11859
+ await y.getShadowGraphqlClient().mutate({
11860
11860
  mutation: Vs,
11861
11861
  errorPolicy: "all",
11862
11862
  fetchPolicy: "no-cache",
@@ -11867,7 +11867,7 @@ class qs {
11867
11867
  });
11868
11868
  }
11869
11869
  async rejectTransaction(t) {
11870
- await F.getShadowGraphqlClient().mutate({
11870
+ await y.getShadowGraphqlClient().mutate({
11871
11871
  mutation: Ws,
11872
11872
  errorPolicy: "all",
11873
11873
  fetchPolicy: "no-cache",
@@ -11890,7 +11890,7 @@ class qs {
11890
11890
  this.stepSelections = {
11891
11891
  ...this.stepSelections,
11892
11892
  [t]: { selectedVariants: e }
11893
- }, this.selectionCost = Object.values(this.stepSelections).reduce((p, D) => p + D.selectedVariants.map((y) => y.priceModifier || 0).reduce((y, S) => y + S, 0), 0), this.workflow.steps.forEach((p) => {
11893
+ }, this.selectionCost = Object.values(this.stepSelections).reduce((p, D) => p + D.selectedVariants.map((F) => F.priceModifier || 0).reduce((F, S) => F + S, 0), 0), this.workflow.steps.forEach((p) => {
11894
11894
  wt(p, this.stepSelections) || (this.stepInitialised[p.stepName] = !1, delete this.stepMetadata[p.stepName], delete this.stepSelections[p.stepName], delete this.storage[p.stepName]);
11895
11895
  });
11896
11896
  const s = this.allScenes, o = Dt(s, i), r = Dt(s, this.stepSelections), c = o.map((p) => p.silentSteps).flat(), g = r.map((p) => p.silentSteps).flat().filter(
@@ -12813,7 +12813,7 @@ function ue(n) {
12813
12813
  const co = async (n) => {
12814
12814
  var s, o;
12815
12815
  const e = ((s = Object.entries(localStorage).find(([r, c]) => r.startsWith("CognitoIdentityServiceProvider") && r.endsWith("idToken"))) == null ? void 0 : s[0]) || "", A = localStorage.getItem(e), a = {};
12816
- return A && !ue(A) && (a.Authorization = `Bearer ${A}`), (o = (await F.getShadowGraphqlClient().mutate({
12816
+ return A && !ue(A) && (a.Authorization = `Bearer ${A}`), (o = (await y.getShadowGraphqlClient().mutate({
12817
12817
  mutation: oo,
12818
12818
  errorPolicy: "all",
12819
12819
  fetchPolicy: "no-cache",
@@ -12834,7 +12834,7 @@ const co = async (n) => {
12834
12834
  }, lo = async (n) => {
12835
12835
  var s, o;
12836
12836
  const e = ((s = Object.entries(localStorage).find(([r, c]) => r.startsWith("CognitoIdentityServiceProvider") && r.endsWith("idToken"))) == null ? void 0 : s[0]) || "", A = localStorage.getItem(e), a = {};
12837
- return A && !ue(A) && (a.Authorization = `Bearer ${A}`), (o = (await F.getShadowGraphqlClient().mutate({
12837
+ return A && !ue(A) && (a.Authorization = `Bearer ${A}`), (o = (await y.getShadowGraphqlClient().mutate({
12838
12838
  mutation: ro,
12839
12839
  errorPolicy: "all",
12840
12840
  fetchPolicy: "no-cache",
@@ -12935,13 +12935,13 @@ const co = async (n) => {
12935
12935
  };
12936
12936
  return i && (B.metadata = i), A && (B.selectedVariants = A), a && (B.sku = a), B;
12937
12937
  }, za = async (n, t, e, A, a, i, s, o, r, c) => {
12938
- var y;
12938
+ var F;
12939
12939
  await (async () => {
12940
12940
  var K;
12941
12941
  if (c !== void 0)
12942
12942
  return c;
12943
12943
  await n.outstandingRequestsPromise();
12944
- const x = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a.id), P = await F.getShadowGraphqlClient().query({
12944
+ const x = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a.id), P = await y.getShadowGraphqlClient().query({
12945
12945
  query: ra,
12946
12946
  variables: { ids: [a.id] },
12947
12947
  fetchPolicy: "no-cache",
@@ -12954,7 +12954,7 @@ const co = async (n) => {
12954
12954
  P.errors && console.log("Server Error:", z.message);
12955
12955
  }), null) : H ?? null;
12956
12956
  })() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(A())), await n.updateStateWithServerImmediate(A), console.log("Server state is undefined @ Workflow completion"));
12957
- const d = n.getPreviewService(), B = (y = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : y.lookAtAnimation, h = d && t.showModelOnFinishStep && !!B, C = r && tA(r, t, !0), w = r && tA(r, t, !1), u = async (S) => {
12957
+ const d = n.getPreviewService(), B = (F = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : F.lookAtAnimation, h = d && t.showModelOnFinishStep && !!B, C = r && tA(r, t, !0), w = r && tA(r, t, !1), u = async (S) => {
12958
12958
  const x = {};
12959
12959
  let Y = 0;
12960
12960
  if (Object.keys(i).length > 0)
@@ -13066,7 +13066,7 @@ const co = async (n) => {
13066
13066
  );
13067
13067
  const a = await (async () => {
13068
13068
  var c;
13069
- const r = await F.getShadowGraphqlClient().query({
13069
+ const r = await y.getShadowGraphqlClient().query({
13070
13070
  query: ra,
13071
13071
  variables: { ids: n.map((l) => l.transaction.id) },
13072
13072
  fetchPolicy: "no-cache",
@@ -13443,7 +13443,7 @@ class Eo {
13443
13443
  }
13444
13444
  async assignCustomerDetails(t) {
13445
13445
  var s, o, r;
13446
- const A = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id), i = (r = (o = (s = (await F.getShadowGraphqlClient().mutate({
13446
+ const A = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id), i = (r = (o = (s = (await y.getShadowGraphqlClient().mutate({
13447
13447
  mutation: wo,
13448
13448
  variables: {
13449
13449
  id: this.getWorkflowManager().getTransaction().id,
@@ -13509,7 +13509,7 @@ class Eo {
13509
13509
  }
13510
13510
  async onDesignFinished(t, e = !0) {
13511
13511
  const A = this.workflowManager.getTransaction();
13512
- return A.completed ? (await F.getShadowGraphqlClient().mutate({
13512
+ return A.completed ? (await y.getShadowGraphqlClient().mutate({
13513
13513
  mutation: Ai,
13514
13514
  variables: {
13515
13515
  transactionId: A.id
@@ -13575,7 +13575,7 @@ class Eo {
13575
13575
  /* QuantityChanged */
13576
13576
  ), this.checkForPriceBreakChanges();
13577
13577
  const e = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), A = this.getWorkflowManager().getTransaction(), a = e.get(A.id) || void 0;
13578
- await F.getShadowGraphqlClient().mutate({
13578
+ await y.getShadowGraphqlClient().mutate({
13579
13579
  mutation: qn,
13580
13580
  variables: {
13581
13581
  id: A.id,
@@ -13719,9 +13719,9 @@ const mo = [
13719
13719
  const C = {};
13720
13720
  yt(h, (D) => {
13721
13721
  mo.includes(D.tagName) && !D.attributes.getNamedItem("fill") && D.setAttribute("fill", "#000000");
13722
- const y = D.attributes.getNamedItem("fill");
13723
- if (y && y.value !== "none") {
13724
- const x = y.value, P = `spiff-fill-${x.replace(/\W/g, "")}`;
13722
+ const F = D.attributes.getNamedItem("fill");
13723
+ if (F && F.value !== "none") {
13724
+ const x = F.value, P = `spiff-fill-${x.replace(/\W/g, "")}`;
13725
13725
  D.classList.add(P), C[P] = { browserValue: x };
13726
13726
  }
13727
13727
  const S = D.attributes.getNamedItem("stroke");
@@ -13732,16 +13732,16 @@ const mo = [
13732
13732
  });
13733
13733
  const u = xt().serializeToString(h), E = a.colors;
13734
13734
  if (E) {
13735
- for (const [D, y] of Object.entries(C))
13735
+ for (const [D, F] of Object.entries(C))
13736
13736
  for (const S of Object.keys(E))
13737
- if (y.browserValue === S) {
13737
+ if (F.browserValue === S) {
13738
13738
  C[D] = { browserValue: E[S] };
13739
13739
  break;
13740
13740
  }
13741
13741
  }
13742
13742
  const m = (D) => {
13743
- const y = n.find((x) => x.panelId === D.panelId);
13744
- if (!y)
13743
+ const F = n.find((x) => x.panelId === D.panelId);
13744
+ if (!F)
13745
13745
  throw new W(D);
13746
13746
  const S = R();
13747
13747
  return new j(
@@ -13759,7 +13759,7 @@ const mo = [
13759
13759
  layerIndex: D.layerIndex,
13760
13760
  immutable: D.immutable
13761
13761
  },
13762
- y
13762
+ F
13763
13763
  );
13764
13764
  }, f = A.data.regions;
13765
13765
  try {
@@ -14786,7 +14786,7 @@ class Uo {
14786
14786
  var e, A;
14787
14787
  if (!this.globalPropertyState)
14788
14788
  throw new Error("Global property state not initialized");
14789
- const t = await F.getShadowGraphqlClient().mutate({
14789
+ const t = await y.getShadowGraphqlClient().mutate({
14790
14790
  mutation: Fs,
14791
14791
  variables: {
14792
14792
  id: this.globalPropertyState.id,
@@ -14829,7 +14829,7 @@ class Uo {
14829
14829
  }
14830
14830
  async createGlobalPropertyState() {
14831
14831
  var e, A;
14832
- const t = await F.getShadowGraphqlClient().mutate({
14832
+ const t = await y.getShadowGraphqlClient().mutate({
14833
14833
  mutation: Is,
14834
14834
  variables: {
14835
14835
  bundleId: this.bundleId
@@ -14973,7 +14973,7 @@ class To {
14973
14973
  async fetchProducts(t) {
14974
14974
  if (this.fullFetched)
14975
14975
  return this.collection.productCollectionProducts.map((A) => new Te(A));
14976
- const e = await F.getShadowGraphqlClient().query({
14976
+ const e = await y.getShadowGraphqlClient().query({
14977
14977
  query: xs,
14978
14978
  variables: {
14979
14979
  id: this.getId(),
@@ -14989,7 +14989,7 @@ class To {
14989
14989
  */
14990
14990
  async filterProducts(t) {
14991
14991
  var i, s;
14992
- const e = await F.getShadowGraphqlClient().query({
14992
+ const e = await y.getShadowGraphqlClient().query({
14993
14993
  query: Ys,
14994
14994
  errorPolicy: "all",
14995
14995
  variables: {
@@ -15317,7 +15317,7 @@ class Je {
15317
15317
  "Unable to add transaction to bundle - Already Exists: " + A.filter((o) => !!o).map((o) => o == null ? void 0 : o.getWorkflowManager().getTransaction().id).join(", ")
15318
15318
  );
15319
15319
  const a = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => a.get(o));
15320
- await F.getShadowGraphqlClient().mutate({
15320
+ await y.getShadowGraphqlClient().mutate({
15321
15321
  mutation: Rs,
15322
15322
  variables: {
15323
15323
  id: this.id,
@@ -15347,7 +15347,7 @@ class Je {
15347
15347
  ))
15348
15348
  throw new Error("Unable to add transaction to bundle - Already Exists!");
15349
15349
  const s = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(A);
15350
- await F.getShadowGraphqlClient().mutate({
15350
+ await y.getShadowGraphqlClient().mutate({
15351
15351
  mutation: ks,
15352
15352
  variables: {
15353
15353
  id: this.id,
@@ -15380,7 +15380,7 @@ class Je {
15380
15380
  const a = this.workflowExperiences.find(
15381
15381
  (i) => i.getWorkflowManager().getTransaction().id === e.id
15382
15382
  );
15383
- a.setBundle(void 0), this.previewService && a.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await F.getShadowGraphqlClient().mutate({
15383
+ a.setBundle(void 0), this.previewService && a.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await y.getShadowGraphqlClient().mutate({
15384
15384
  mutation: bs,
15385
15385
  variables: {
15386
15386
  id: this.id,
@@ -15412,7 +15412,7 @@ class Je {
15412
15412
  );
15413
15413
  A.forEach((a) => a.setBundle(void 0)), [...this.workflowExperiences, ...A].forEach(
15414
15414
  (a) => a.checkForPriceBreakChanges()
15415
- ), this.previewService && A.forEach((a) => a.getWorkflowManager().ejectFromPreviewService()), t.forEach((a) => this.bundleStateManager.removeStateForTransaction(a.id)), await F.getShadowGraphqlClient().mutate({
15415
+ ), this.previewService && A.forEach((a) => a.getWorkflowManager().ejectFromPreviewService()), t.forEach((a) => this.bundleStateManager.removeStateForTransaction(a.id)), await y.getShadowGraphqlClient().mutate({
15416
15416
  mutation: Hs,
15417
15417
  variables: {
15418
15418
  id: this.id,
@@ -15473,7 +15473,7 @@ class Je {
15473
15473
  }
15474
15474
  async addStakeholder(t, e) {
15475
15475
  var i;
15476
- const A = await F.getShadowGraphqlClient().mutate({
15476
+ const A = await y.getShadowGraphqlClient().mutate({
15477
15477
  mutation: Us,
15478
15478
  variables: {
15479
15479
  id: this.id,
@@ -15491,7 +15491,7 @@ class Je {
15491
15491
  }
15492
15492
  async removeStakeholder(t) {
15493
15493
  var A;
15494
- if (!((A = (await F.getShadowGraphqlClient().mutate({
15494
+ if (!((A = (await y.getShadowGraphqlClient().mutate({
15495
15495
  mutation: Gs,
15496
15496
  variables: {
15497
15497
  id: this.id,
@@ -15505,7 +15505,7 @@ class Je {
15505
15505
  }
15506
15506
  async updateStakeholders(t) {
15507
15507
  var a;
15508
- const e = await F.getShadowGraphqlClient().mutate({
15508
+ const e = await y.getShadowGraphqlClient().mutate({
15509
15509
  mutation: Ts,
15510
15510
  variables: {
15511
15511
  id: this.id,
@@ -15521,7 +15521,7 @@ class Je {
15521
15521
  this.storeStakeholderCustomers(A);
15522
15522
  }
15523
15523
  async getAllStakeholders() {
15524
- const t = await F.getShadowGraphqlClient().query({
15524
+ const t = await y.getShadowGraphqlClient().query({
15525
15525
  query: UA,
15526
15526
  errorPolicy: "all",
15527
15527
  fetchPolicy: "no-cache",
@@ -15538,7 +15538,7 @@ class Je {
15538
15538
  return this.storeStakeholderCustomers(e), e;
15539
15539
  }
15540
15540
  async getCurrentStakeholder() {
15541
- const t = await F.getShadowGraphqlClient().query({
15541
+ const t = await y.getShadowGraphqlClient().query({
15542
15542
  query: UA,
15543
15543
  errorPolicy: "all",
15544
15544
  fetchPolicy: "no-cache",
@@ -15560,7 +15560,7 @@ class Je {
15560
15560
  }
15561
15561
  async finish(t, e) {
15562
15562
  if (this.completed)
15563
- return await F.getShadowGraphqlClient().mutate({
15563
+ return await y.getShadowGraphqlClient().mutate({
15564
15564
  mutation: zs,
15565
15565
  variables: {
15566
15566
  bundleId: this.id
@@ -15623,7 +15623,7 @@ class Je {
15623
15623
  }
15624
15624
  async assignProductCollection(t) {
15625
15625
  var A, a;
15626
- const e = await F.getShadowGraphqlClient().mutate({
15626
+ const e = await y.getShadowGraphqlClient().mutate({
15627
15627
  mutation: Ls(
15628
15628
  ((A = this.globalPropertyStateManager.getBundleOptions()) == null ? void 0 : A.eagerFetchProducts) ?? !1
15629
15629
  ),
@@ -15679,7 +15679,7 @@ class Je {
15679
15679
  }
15680
15680
  async updateBundle() {
15681
15681
  var e;
15682
- if (!((e = (await F.getShadowGraphqlClient().mutate({
15682
+ if (!((e = (await y.getShadowGraphqlClient().mutate({
15683
15683
  mutation: Ns,
15684
15684
  variables: {
15685
15685
  id: this.id,
@@ -15694,7 +15694,7 @@ class Je {
15694
15694
  throw new Error("Bundle not found!");
15695
15695
  }
15696
15696
  async updateTransactionOrder() {
15697
- await F.getShadowGraphqlClient().mutate({
15697
+ await y.getShadowGraphqlClient().mutate({
15698
15698
  mutation: Js,
15699
15699
  variables: {
15700
15700
  id: this.id,
@@ -15741,7 +15741,7 @@ class Je {
15741
15741
  return this.workflowViewerAmendLink;
15742
15742
  }
15743
15743
  async approve(t) {
15744
- await F.getShadowGraphqlClient().mutate({
15744
+ await y.getShadowGraphqlClient().mutate({
15745
15745
  mutation: js,
15746
15746
  errorPolicy: "all",
15747
15747
  fetchPolicy: "no-cache",
@@ -15752,7 +15752,7 @@ class Je {
15752
15752
  });
15753
15753
  }
15754
15754
  async reject(t) {
15755
- await F.getShadowGraphqlClient().mutate({
15755
+ await y.getShadowGraphqlClient().mutate({
15756
15756
  mutation: Ks,
15757
15757
  errorPolicy: "all",
15758
15758
  fetchPolicy: "no-cache",
@@ -15780,7 +15780,7 @@ class zo {
15780
15780
  */
15781
15781
  async execute(t, e, A) {
15782
15782
  var g, d, B;
15783
- const i = (d = (g = (await F.getShadowGraphqlClient().mutate({
15783
+ const i = (d = (g = (await y.getShadowGraphqlClient().mutate({
15784
15784
  mutation: Oo,
15785
15785
  variables: {
15786
15786
  processFlowId: t,
@@ -15796,7 +15796,7 @@ class zo {
15796
15796
  }
15797
15797
  let o = !1, r = 0, c, l;
15798
15798
  for (; !o; ) {
15799
- c = await F.getShadowGraphqlClient().query({
15799
+ c = await y.getShadowGraphqlClient().query({
15800
15800
  query: I`
15801
15801
  query getProcessFlowExecution($ids: [String]!) {
15802
15802
  processExecutions(ids: $ids) {
@@ -16091,7 +16091,7 @@ const LA = I`
16091
16091
  }
16092
16092
  `, $o = async (n, t) => {
16093
16093
  var a;
16094
- const e = await F.getShadowGraphqlClient().query({
16094
+ const e = await y.getShadowGraphqlClient().query({
16095
16095
  query: oi(((a = t == null ? void 0 : t.assets) == null ? void 0 : a.metadata) || !1),
16096
16096
  errorPolicy: "all",
16097
16097
  variables: {
@@ -16147,14 +16147,14 @@ class gc {
16147
16147
  constructor(t) {
16148
16148
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
16149
16149
  try {
16150
- return F.getShadowGraphqlClient().mutate({
16150
+ return y.getShadowGraphqlClient().mutate({
16151
16151
  ...e,
16152
16152
  mutation: Xn
16153
16153
  });
16154
16154
  } catch (A) {
16155
16155
  throw console.error(A), new rt("Critical - Unable to synchronize workflow state with server.");
16156
16156
  }
16157
- }, this.options = t, this.options.applicationKey && Dn(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.4.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16157
+ }, this.options = t, this.options.applicationKey && Dn(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.4.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16158
16158
  }
16159
16159
  configure(t) {
16160
16160
  ut.setHubUrl(t.hubUrl), ut.setServerUrl(t.serverUrl), ut.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Fn(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -16233,7 +16233,7 @@ class gc {
16233
16233
  */
16234
16234
  async authenticateTransactionFromLocalStorage(t) {
16235
16235
  var l, g, d, B, h, C;
16236
- const e = F.getShadowGraphqlClient(), A = await e.query({
16236
+ const e = y.getShadowGraphqlClient(), A = await e.query({
16237
16237
  query: ri,
16238
16238
  errorPolicy: "all",
16239
16239
  fetchPolicy: "no-cache",
@@ -16296,7 +16296,7 @@ class gc {
16296
16296
  e != null && e.has(t) && (e.delete(t), N.setMap("transactionCustomerIds", e));
16297
16297
  }
16298
16298
  async customerHasBundleTemplates(t) {
16299
- const a = (await F.getShadowGraphqlClient().query({
16299
+ const a = (await y.getShadowGraphqlClient().query({
16300
16300
  query: LA,
16301
16301
  errorPolicy: "all",
16302
16302
  fetchPolicy: "no-cache",
@@ -16320,7 +16320,7 @@ class gc {
16320
16320
  async getOrCreateCustomer(t) {
16321
16321
  var s;
16322
16322
  this.customer = void 0;
16323
- const e = F.getShadowGraphqlClient(), a = (await e.query({
16323
+ const e = y.getShadowGraphqlClient(), a = (await e.query({
16324
16324
  query: LA,
16325
16325
  errorPolicy: "all",
16326
16326
  fetchPolicy: "no-cache",
@@ -16358,7 +16358,7 @@ class gc {
16358
16358
  }
16359
16359
  async authenticateCustomerId(t) {
16360
16360
  var o;
16361
- const e = F.getShadowGraphqlClient(), A = N.getMap("customerTokens");
16361
+ const e = y.getShadowGraphqlClient(), A = N.getMap("customerTokens");
16362
16362
  if (!(A != null && A.has(t)))
16363
16363
  return !1;
16364
16364
  const a = A.get(t);
@@ -16379,7 +16379,7 @@ class gc {
16379
16379
  * @param emailAddress The email address to generate a verification code for. The user will be sent an email with the verification code.
16380
16380
  */
16381
16381
  async generateVerificationCode(t) {
16382
- await F.getShadowGraphqlClient().mutate({
16382
+ await y.getShadowGraphqlClient().mutate({
16383
16383
  mutation: Xo,
16384
16384
  variables: {
16385
16385
  emailAddress: t
@@ -16394,7 +16394,7 @@ class gc {
16394
16394
  */
16395
16395
  async verifyCode(t, e) {
16396
16396
  var i, s;
16397
- const a = (i = (await F.getShadowGraphqlClient().mutate({
16397
+ const a = (i = (await y.getShadowGraphqlClient().mutate({
16398
16398
  mutation: qo,
16399
16399
  errorPolicy: "all",
16400
16400
  fetchPolicy: "no-cache",
@@ -16418,7 +16418,7 @@ class gc {
16418
16418
  var e;
16419
16419
  if (!((e = this.customer) != null && e.id))
16420
16420
  throw new Error("Customer must be logged in before calling this function.");
16421
- return (await F.getShadowGraphqlClient().query({
16421
+ return (await y.getShadowGraphqlClient().query({
16422
16422
  query: Zo,
16423
16423
  variables: {
16424
16424
  id: this.customer.id
@@ -16431,7 +16431,7 @@ class gc {
16431
16431
  */
16432
16432
  async getNewBundle(t, e, A) {
16433
16433
  var c, l, g, d, B;
16434
- const i = (g = (await F.getShadowGraphqlClient().mutate({
16434
+ const i = (g = (await y.getShadowGraphqlClient().mutate({
16435
16435
  mutation: Ps(((l = (c = A == null ? void 0 : A.graphql) == null ? void 0 : c.productCollection) == null ? void 0 : l.eagerFetchProducts) || !1),
16436
16436
  variables: {
16437
16437
  collectionId: t,
@@ -16460,14 +16460,14 @@ class gc {
16460
16460
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16461
16461
  */
16462
16462
  async getExistingBundle(t, e, A, a) {
16463
- var w, u, E, m, f, Q, p, D, y, S, x;
16463
+ var w, u, E, m, f, Q, p, D, F, S, x;
16464
16464
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), r = ((w = Object.entries(localStorage).find(([Y, P]) => Y.startsWith("CognitoIdentityServiceProvider") && Y.endsWith("idToken"))) == null ? void 0 : w[0]) || "", c = localStorage.getItem(r), l = {};
16465
16465
  c && !ue(c) && (l.Authorization = `Bearer ${c}`);
16466
16466
  const g = {
16467
16467
  bundleOwnerId: s,
16468
16468
  ...l,
16469
16469
  ...(u = a == null ? void 0 : a.graphql) == null ? void 0 : u.additionalHeaders
16470
- }, d = await F.getShadowGraphqlClient().query({
16470
+ }, d = await y.getShadowGraphqlClient().query({
16471
16471
  query: Ms(((m = (E = a == null ? void 0 : a.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : m.eagerFetchProducts) || !1),
16472
16472
  variables: {
16473
16473
  id: t
@@ -16482,7 +16482,7 @@ class gc {
16482
16482
  const B = (D = d.data) == null ? void 0 : D.bundles[0], h = N.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
16483
16483
  h.set(B.id, B.partner.id), N.setMap("bundlePartnerIds", h);
16484
16484
  const C = new Je(this, B, e, A, s, {
16485
- additionalHeaders: (y = a == null ? void 0 : a.graphql) == null ? void 0 : y.additionalHeaders,
16485
+ additionalHeaders: (F = a == null ? void 0 : a.graphql) == null ? void 0 : F.additionalHeaders,
16486
16486
  eagerFetchProducts: (x = (S = a == null ? void 0 : a.graphql) == null ? void 0 : S.productCollection) == null ? void 0 : x.eagerFetchProducts,
16487
16487
  existingGlobalPropertyState: d.data.globalPropertyState
16488
16488
  });
@@ -16496,13 +16496,13 @@ class gc {
16496
16496
  */
16497
16497
  async duplicateBundle(t, e, A, a) {
16498
16498
  var w, u, E, m, f, Q, p, D;
16499
- const i = (w = N.getMap("bundleOwnerIds")) == null ? void 0 : w.get(t), o = ((u = Object.entries(localStorage).find(([y, S]) => y.startsWith("CognitoIdentityServiceProvider") && y.endsWith("idToken"))) == null ? void 0 : u[0]) || "", r = localStorage.getItem(o), c = {};
16499
+ const i = (w = N.getMap("bundleOwnerIds")) == null ? void 0 : w.get(t), o = ((u = Object.entries(localStorage).find(([F, S]) => F.startsWith("CognitoIdentityServiceProvider") && F.endsWith("idToken"))) == null ? void 0 : u[0]) || "", r = localStorage.getItem(o), c = {};
16500
16500
  r && !ue(r) && (c.Authorization = `Bearer ${r}`);
16501
16501
  const l = {
16502
16502
  bundleOwnerId: i,
16503
16503
  ...c,
16504
16504
  ...(E = a == null ? void 0 : a.graphql) == null ? void 0 : E.additionalHeaders
16505
- }, d = (Q = (await F.getShadowGraphqlClient().mutate({
16505
+ }, d = (Q = (await y.getShadowGraphqlClient().mutate({
16506
16506
  mutation: vs(((f = (m = a == null ? void 0 : a.graphql) == null ? void 0 : m.productCollection) == null ? void 0 : f.eagerFetchProducts) || !1),
16507
16507
  variables: {
16508
16508
  id: t,
@@ -16541,7 +16541,7 @@ class gc {
16541
16541
  if (!((i = this.customer) != null && i.id))
16542
16542
  throw new Error("Customer not authenticated.");
16543
16543
  const { includeMetadata: e, ...A } = t;
16544
- return (await F.getShadowGraphqlClient().query({
16544
+ return (await y.getShadowGraphqlClient().query({
16545
16545
  query: Os(e ?? !1),
16546
16546
  variables: {
16547
16547
  ...A,
@@ -16558,7 +16558,7 @@ class gc {
16558
16558
  var i;
16559
16559
  if (!this.customer)
16560
16560
  throw new Error("Customer not authenticated.");
16561
- const t = await F.getShadowGraphqlClient().query({
16561
+ const t = await y.getShadowGraphqlClient().query({
16562
16562
  query: Ss,
16563
16563
  variables: {
16564
16564
  id: this.customer.id
@@ -16595,7 +16595,7 @@ class gc {
16595
16595
  async getWorkflowExperiences(t, e) {
16596
16596
  if (t.length === 0)
16597
16597
  throw new rt("No options provided!");
16598
- const A = F.getShadowGraphqlClient(), a = async (Q) => {
16598
+ const A = y.getShadowGraphqlClient(), a = async (Q) => {
16599
16599
  var S, x, Y;
16600
16600
  if (Q.length === 0)
16601
16601
  return [];
@@ -16606,12 +16606,12 @@ class gc {
16606
16606
  },
16607
16607
  errorPolicy: "all",
16608
16608
  fetchPolicy: "no-cache"
16609
- }), y = D.data.transactions;
16610
- if (y.length !== Q.length) {
16609
+ }), F = D.data.transactions;
16610
+ if (F.length !== Q.length) {
16611
16611
  const P = ((x = (S = D.errors) == null ? void 0 : S[0]) == null ? void 0 : x.message) || "Unknown error";
16612
16612
  throw new rt(`Not all transactions were found: ${P}`);
16613
16613
  }
16614
- return !this.activeIntegration && ((Y = y[0].integrationProduct) != null && Y.integration) && (this.activeIntegration = Promise.resolve(y[0].integrationProduct.integration)), y.map((P, H) => {
16614
+ return !this.activeIntegration && ((Y = F[0].integrationProduct) != null && Y.integration) && (this.activeIntegration = Promise.resolve(F[0].integrationProduct.integration)), F.map((P, H) => {
16615
16615
  var K;
16616
16616
  return {
16617
16617
  transaction: P,
@@ -16621,7 +16621,7 @@ class gc {
16621
16621
  };
16622
16622
  });
16623
16623
  }, i = async (Q) => {
16624
- var y, S, x;
16624
+ var F, S, x;
16625
16625
  if (Q.length === 0)
16626
16626
  return [];
16627
16627
  const p = await A.mutate({
@@ -16640,7 +16640,7 @@ class gc {
16640
16640
  },
16641
16641
  errorPolicy: "all",
16642
16642
  fetchPolicy: "no-cache"
16643
- }), D = (y = p.data) == null ? void 0 : y.transactionCreateMany;
16643
+ }), D = (F = p.data) == null ? void 0 : F.transactionCreateMany;
16644
16644
  if (!D || D.length === 0) {
16645
16645
  const Y = ((x = (S = p.errors) == null ? void 0 : S[0]) == null ? void 0 : x.message) || "Unknown error";
16646
16646
  throw new rt(`Failed to create transactions: ${Y}`);
@@ -16658,27 +16658,27 @@ class gc {
16658
16658
  ...l.map(i)
16659
16659
  ])).flat(), d = [...new Set(g.map((Q) => Q.workflowId))], B = await Va(d, e), h = new Map(B.map((Q) => [Q.id, Q])), C = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), w = g.map(async (Q) => {
16660
16660
  var K;
16661
- const { transaction: p, workflowId: D, readOnly: y, index: S } = Q, x = h.get(D), Y = t[S];
16661
+ const { transaction: p, workflowId: D, readOnly: F, index: S } = Q, x = h.get(D), Y = t[S];
16662
16662
  !C.get(p.id) && p.transactionOwnerId && C.set(p.id, p.transactionOwnerId);
16663
16663
  const P = C.get(p.id) || void 0, H = {
16664
16664
  product: p.product,
16665
16665
  transaction: p,
16666
16666
  layouts: [],
16667
16667
  singleVariantsRenderable: (K = Y == null ? void 0 : Y.workflowConfiguration) == null ? void 0 : K.singleVariantsRenderable,
16668
- stateMutationFunc: y ? async () => {
16668
+ stateMutationFunc: F ? async () => {
16669
16669
  throw new L("State mutation is forbidden in read only mode!");
16670
16670
  } : async (z) => this.updateTransactionState({
16671
16671
  ...z,
16672
16672
  context: { transactionOwnerId: P, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
16673
16673
  }),
16674
- readOnly: y,
16674
+ readOnly: F,
16675
16675
  workflow: x,
16676
16676
  isReloadedTransaction: Y.type === "transaction"
16677
16677
  };
16678
16678
  if (Y.type === "transaction" && p.workflowState) {
16679
16679
  const z = JSON.parse(p.workflowState);
16680
16680
  H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await NA(z), H.reloadedState = z;
16681
- } else if (!y && Y.workflowState) {
16681
+ } else if (!F && Y.workflowState) {
16682
16682
  const z = JSON.parse(Y.workflowState);
16683
16683
  H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await NA(z), H.reloadedState = z;
16684
16684
  } else
@@ -16692,8 +16692,8 @@ class gc {
16692
16692
  }), u = await Promise.all(w);
16693
16693
  N.setMap("transactionOwnerIds", C);
16694
16694
  const m = u.sort((Q, p) => Q.index - p.index).map(async (Q) => {
16695
- const { experienceOptions: p, options: D } = Q, y = new Eo(this, p);
16696
- return await y.getWorkflowManager().getInitializationPromise(), D.type !== "transaction" && this.customer && await y.attachCustomerDetails({ email: this.customer.emailAddress }), y;
16695
+ const { experienceOptions: p, options: D } = Q, F = new Eo(this, p);
16696
+ return await F.getWorkflowManager().getInitializationPromise(), D.type !== "transaction" && this.customer && await F.attachCustomerDetails({ email: this.customer.emailAddress }), F;
16697
16697
  }), f = await Promise.all(m);
16698
16698
  return f.forEach((Q) => Q.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), f;
16699
16699
  }
@@ -16703,7 +16703,7 @@ class gc {
16703
16703
  }
16704
16704
  async getIntegrationProductById(t) {
16705
16705
  var i, s;
16706
- const a = (i = (await F.getShadowGraphqlClient().query({
16706
+ const a = (i = (await y.getShadowGraphqlClient().query({
16707
16707
  query: _n,
16708
16708
  variables: {
16709
16709
  ids: [t]
@@ -16717,7 +16717,7 @@ class gc {
16717
16717
  }
16718
16718
  async getIntegrationProductFromExternalIds(t, e) {
16719
16719
  var s;
16720
- const i = (s = (await F.getShadowGraphqlClient().query({
16720
+ const i = (s = (await y.getShadowGraphqlClient().query({
16721
16721
  query: ti,
16722
16722
  variables: {
16723
16723
  externalProductId: e,
@@ -16734,7 +16734,7 @@ class gc {
16734
16734
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
16735
16735
  }
16736
16736
  async getShareActionsForTransaction(t) {
16737
- const A = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, a = await F.getShadowGraphqlClient().query({
16737
+ const A = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, a = await y.getShadowGraphqlClient().query({
16738
16738
  query: $n,
16739
16739
  errorPolicy: "all",
16740
16740
  fetchPolicy: "no-cache",
@@ -16750,7 +16750,7 @@ class gc {
16750
16750
  return a.data.transactions[0].transactionShareActions;
16751
16751
  }
16752
16752
  async placeOrder(t) {
16753
- const e = await F.getShadowGraphqlClient().mutate({
16753
+ const e = await y.getShadowGraphqlClient().mutate({
16754
16754
  mutation: hi,
16755
16755
  variables: {
16756
16756
  orderItems: t
@@ -16766,7 +16766,7 @@ class gc {
16766
16766
  };
16767
16767
  }
16768
16768
  }
16769
- const Ar = async (n) => (await F.getShadowGraphqlClient().query({
16769
+ const Ar = async (n) => (await y.getShadowGraphqlClient().query({
16770
16770
  query: gi,
16771
16771
  errorPolicy: "all",
16772
16772
  fetchPolicy: "no-cache",
@@ -16776,7 +16776,7 @@ const Ar = async (n) => (await F.getShadowGraphqlClient().query({
16776
16776
  }
16777
16777
  }
16778
16778
  })).data.currentIntegration, dc = async (n) => {
16779
- const e = await F.getShadowGraphqlClient().query({
16779
+ const e = await y.getShadowGraphqlClient().query({
16780
16780
  query: Zn,
16781
16781
  errorPolicy: "all",
16782
16782
  fetchPolicy: "network-only",
@@ -16788,7 +16788,7 @@ const Ar = async (n) => (await F.getShadowGraphqlClient().query({
16788
16788
  return e.data.transactions[0];
16789
16789
  }, Bc = async (n, t) => {
16790
16790
  var A;
16791
- return (A = (await F.getShadowGraphqlClient().query({
16791
+ return (A = (await y.getShadowGraphqlClient().query({
16792
16792
  query: li,
16793
16793
  errorPolicy: "all",
16794
16794
  variables: {
@@ -16798,7 +16798,7 @@ const Ar = async (n) => (await F.getShadowGraphqlClient().query({
16798
16798
  })).data) == null ? void 0 : A.marketplaceThemeInstallConfiguration;
16799
16799
  }, hc = async (n) => {
16800
16800
  var e, A, a;
16801
- return (a = (A = (e = (await F.getShadowGraphqlClient().query({
16801
+ return (a = (A = (e = (await y.getShadowGraphqlClient().query({
16802
16802
  query: Bi,
16803
16803
  errorPolicy: "all",
16804
16804
  variables: {
@@ -16807,7 +16807,7 @@ const Ar = async (n) => (await F.getShadowGraphqlClient().query({
16807
16807
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : A[0]) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
16808
16808
  }, Cc = async (n) => {
16809
16809
  var e, A, a;
16810
- return (a = (A = (e = (await F.getShadowGraphqlClient().query({
16810
+ return (a = (A = (e = (await y.getShadowGraphqlClient().query({
16811
16811
  query: di,
16812
16812
  errorPolicy: "all",
16813
16813
  variables: {
@@ -17263,7 +17263,7 @@ const ir = I`
17263
17263
  total
17264
17264
  }
17265
17265
  }
17266
- `, uc = async (n, t, e) => await F.getShadowGraphqlClient().mutate({
17266
+ `, uc = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
17267
17267
  mutation: lr,
17268
17268
  errorPolicy: "all",
17269
17269
  variables: {
@@ -17271,34 +17271,34 @@ const ir = I`
17271
17271
  name: t
17272
17272
  },
17273
17273
  context: e
17274
- }), Ec = async (n, t) => await F.getShadowGraphqlClient().mutate({
17274
+ }), Ec = async (n, t) => await y.getShadowGraphqlClient().mutate({
17275
17275
  mutation: sr,
17276
17276
  errorPolicy: "all",
17277
17277
  variables: {
17278
17278
  id: n,
17279
17279
  name: t
17280
17280
  }
17281
- }), mc = async (n, t) => await F.getShadowGraphqlClient().mutate({
17281
+ }), mc = async (n, t) => await y.getShadowGraphqlClient().mutate({
17282
17282
  mutation: gr,
17283
17283
  errorPolicy: "all",
17284
17284
  variables: {
17285
17285
  id: n,
17286
17286
  template: t
17287
17287
  }
17288
- }), fc = async (n, t) => await F.getShadowGraphqlClient().mutate({
17288
+ }), fc = async (n, t) => await y.getShadowGraphqlClient().mutate({
17289
17289
  mutation: or,
17290
17290
  errorPolicy: "all",
17291
17291
  variables: {
17292
17292
  id: n,
17293
17293
  template: t
17294
17294
  }
17295
- }), Qc = async (n) => (await F.getShadowGraphqlClient().query({
17295
+ }), Qc = async (n) => (await y.getShadowGraphqlClient().query({
17296
17296
  query: ir,
17297
17297
  errorPolicy: "all",
17298
17298
  variables: {
17299
17299
  email: n
17300
17300
  }
17301
- })).data.customer, pc = async (n, t, e) => await F.getShadowGraphqlClient().query({
17301
+ })).data.customer, pc = async (n, t, e) => await y.getShadowGraphqlClient().query({
17302
17302
  query: rr,
17303
17303
  errorPolicy: "all",
17304
17304
  fetchPolicy: "no-cache",
@@ -17307,7 +17307,7 @@ const ir = I`
17307
17307
  offset: e,
17308
17308
  limit: t
17309
17309
  }
17310
- }), Dc = async (n, t) => await F.getShadowGraphqlClient().query({
17310
+ }), Dc = async (n, t) => await y.getShadowGraphqlClient().query({
17311
17311
  query: cr,
17312
17312
  errorPolicy: "all",
17313
17313
  fetchPolicy: "no-cache",
@@ -17317,7 +17317,7 @@ const ir = I`
17317
17317
  context: t
17318
17318
  }), Ic = async (n, t, e) => {
17319
17319
  var a;
17320
- const A = await F.getShadowGraphqlClient().query({
17320
+ const A = await y.getShadowGraphqlClient().query({
17321
17321
  query: fA,
17322
17322
  errorPolicy: "all",
17323
17323
  fetchPolicy: "no-cache",
@@ -17341,7 +17341,7 @@ const ir = I`
17341
17341
  return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
17342
17342
  }, Fc = async (n, t, e) => {
17343
17343
  var a;
17344
- const A = await F.getShadowGraphqlClient().query({
17344
+ const A = await y.getShadowGraphqlClient().query({
17345
17345
  query: fA,
17346
17346
  errorPolicy: "all",
17347
17347
  fetchPolicy: "no-cache",
@@ -17365,7 +17365,7 @@ const ir = I`
17365
17365
  return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
17366
17366
  }, yc = async (n, t, e) => {
17367
17367
  var a;
17368
- const A = await F.getShadowGraphqlClient().query({
17368
+ const A = await y.getShadowGraphqlClient().query({
17369
17369
  query: fA,
17370
17370
  errorPolicy: "all",
17371
17371
  fetchPolicy: "no-cache",
@@ -17385,7 +17385,7 @@ const ir = I`
17385
17385
  return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
17386
17386
  }, Mc = async (n, t, e) => {
17387
17387
  var a;
17388
- const A = await F.getShadowGraphqlClient().query({
17388
+ const A = await y.getShadowGraphqlClient().query({
17389
17389
  query: dr,
17390
17390
  errorPolicy: "all",
17391
17391
  fetchPolicy: "no-cache",
@@ -17529,7 +17529,7 @@ export {
17529
17529
  Ic as getUnorderedTransactions,
17530
17530
  lc as getWorkflow,
17531
17531
  Va as getWorkflows,
17532
- F as graphQlManager,
17532
+ y as graphQlManager,
17533
17533
  oe as illustrationStepService,
17534
17534
  Tr as isCloseToValue,
17535
17535
  Yt as loadFont,