@spiffcommerce/core 26.23.2 → 26.23.3

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
@@ -11,7 +11,7 @@ import Pt from "lodash.clonedeep";
11
11
  import { toString as nn } from "qrcode";
12
12
  import Ar from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
- import { jsx as F, jsxs as lt, Fragment as Vt } from "preact/jsx-runtime";
14
+ import { jsx as x, jsxs as lt, Fragment as Vt } from "preact/jsx-runtime";
15
15
  import { dataUriToBuffer as ur } from "data-uri-to-buffer";
16
16
  import Da from "lodash.chunk";
17
17
  import rn from "lodash.isequal";
@@ -179,8 +179,8 @@ function ct(r, t) {
179
179
  }
180
180
  return Xe(r, t);
181
181
  }
182
- const ln = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
- const t = xa.get(r);
182
+ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
+ const t = Fa.get(r);
184
184
  if (t)
185
185
  return t;
186
186
  const a = (async () => {
@@ -188,13 +188,13 @@ const ln = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
188
188
  const n = await ct(r);
189
189
  return ln.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
190
190
  })();
191
- return xa.set(r, a), a;
191
+ return Fa.set(r, a), a;
192
192
  }, vr = async (r) => {
193
- const t = Fa.get(r);
193
+ const t = xa.get(r);
194
194
  if (t)
195
195
  return t;
196
196
  const a = (async () => await (await ct(r)).text())();
197
- return Fa.set(r, a), a;
197
+ return xa.set(r, a), a;
198
198
  }, Mt = (r) => r.every((t) => t !== "undefined"), ee = (r) => Mt([typeof document]) ? document.createElement(r) : Jt().document.createElement(r), Er = (r, t) => {
199
199
  if (Mt([typeof document]))
200
200
  return document.createElementNS(r, t);
@@ -292,9 +292,9 @@ const Ma = (r) => {
292
292
  un = r;
293
293
  };
294
294
  let ua;
295
- const xr = (r) => {
295
+ const Fr = (r) => {
296
296
  ua = r;
297
- }, Fr = () => ua;
297
+ }, xr = () => ua;
298
298
  let hn;
299
299
  const kr = (r) => {
300
300
  hn = r;
@@ -1798,7 +1798,7 @@ const Nr = (r) => new Promise((t) => {
1798
1798
  "Black 5 C",
1799
1799
  "Black 6 C",
1800
1800
  "Black 7 C"
1801
- ], xt = [
1801
+ ], Ft = [
1802
1802
  "FEDD00",
1803
1803
  "FFD700",
1804
1804
  "FE5000",
@@ -3140,17 +3140,17 @@ const Nr = (r) => new Promise((t) => {
3140
3140
  "3E2B2E",
3141
3141
  "101820",
3142
3142
  "3D3935"
3143
- ], Re = xt.map((r) => [
3143
+ ], Re = Ft.map((r) => [
3144
3144
  parseInt(r.substring(0, 2), 16),
3145
3145
  parseInt(r.substring(2, 4), 16),
3146
3146
  parseInt(r.substring(4, 6), 16)
3147
3147
  ]);
3148
3148
  function ec(r) {
3149
3149
  const t = jt.indexOf(r);
3150
- return t >= 0 ? xt[t] : "";
3150
+ return t >= 0 ? Ft[t] : "";
3151
3151
  }
3152
3152
  function Lr(r) {
3153
- const t = xt.indexOf(r);
3153
+ const t = Ft.indexOf(r);
3154
3154
  return t >= 0 ? jt[t] : "";
3155
3155
  }
3156
3156
  function ac(r, t = 64) {
@@ -3162,16 +3162,16 @@ function ac(r, t = 64) {
3162
3162
  });
3163
3163
  const i = parseInt(r.substring(0, 2), 16), s = parseInt(r.substring(2, 4), 16), o = parseInt(r.substring(4, 6), 16);
3164
3164
  let l, c, d;
3165
- for (let A = 0; A < xt.length; A++) {
3165
+ for (let A = 0; A < Ft.length; A++) {
3166
3166
  l = Re[A][0], c = Re[A][1], d = Re[A][2];
3167
3167
  const u = Math.sqrt(Math.pow(i - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
3168
3168
  a.push(u);
3169
3169
  }
3170
3170
  for (let A = 0; A < a.length; A++)
3171
- a[A] <= t && !e.some((u) => u.pms === jt[A]) && e.push({ pms: jt[A], hex: xt[A], distance: a[A] });
3171
+ a[A] <= t && !e.some((u) => u.pms === jt[A]) && e.push({ pms: jt[A], hex: Ft[A], distance: a[A] });
3172
3172
  return e.sort((A, u) => A.distance - u.distance);
3173
3173
  }
3174
- const $r = jt.map((r, t) => ({ pms: r, hex: xt[t] })), Vr = new dr($r, { keys: ["pms"] });
3174
+ const $r = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr($r, { keys: ["pms"] });
3175
3175
  function nc(r, t) {
3176
3176
  return Vr.search(r, t ? { limit: t } : void 0);
3177
3177
  }
@@ -3228,8 +3228,8 @@ const ne = (r) => {
3228
3228
  "textPath",
3229
3229
  "tref",
3230
3230
  "tspan"
3231
- ], Wr = ["fill", "stroke"], Ft = (r, t) => {
3232
- t(r), r.children.length > 0 && Array.from(r.children).forEach((e) => Ft(e, t));
3231
+ ], Wr = ["fill", "stroke"], xt = (r, t) => {
3232
+ t(r), r.children.length > 0 && Array.from(r.children).forEach((e) => xt(e, t));
3233
3233
  }, jr = (r, t) => {
3234
3234
  try {
3235
3235
  return r.matches(t);
@@ -3239,7 +3239,7 @@ const ne = (r) => {
3239
3239
  }, ma = (r, t = !1) => {
3240
3240
  !t && r.setAttribute("preserveAspectRatio", "none");
3241
3241
  const e = [];
3242
- Ft(r, (a) => {
3242
+ xt(r, (a) => {
3243
3243
  var i, s, o;
3244
3244
  if (a.tagName === "script") {
3245
3245
  a.remove();
@@ -3266,7 +3266,7 @@ const ne = (r) => {
3266
3266
  }
3267
3267
  }), l.length > 0 ? a.setAttribute("style", l.join(";")) : a.removeAttribute("style");
3268
3268
  }
3269
- }), Ft(r, (a) => {
3269
+ }), xt(r, (a) => {
3270
3270
  e.forEach((n) => {
3271
3271
  var i;
3272
3272
  (i = n.selectors) == null || i.forEach((s) => {
@@ -3285,7 +3285,7 @@ const ne = (r) => {
3285
3285
  }, pn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, qr = (r, t, e) => {
3286
3286
  r.setAttribute("height", `${e}px`), r.setAttribute("width", `${t}px`);
3287
3287
  }, Cn = (r, t, e) => {
3288
- Ft(r, (a) => {
3288
+ xt(r, (a) => {
3289
3289
  const n = a.attributes.getNamedItem("fill");
3290
3290
  n && n.value !== "none" && a.classList.forEach((s) => {
3291
3291
  if (s.startsWith("spiff-fill")) {
@@ -3342,7 +3342,7 @@ const ne = (r) => {
3342
3342
  throw new Error("Failed to read SVG.");
3343
3343
  ma(e);
3344
3344
  const a = {};
3345
- Ft(e, (s) => {
3345
+ xt(e, (s) => {
3346
3346
  Gr.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3347
3347
  const o = s.attributes.getNamedItem("fill");
3348
3348
  if (o && o.value !== "none" && !o.value.startsWith("url(")) {
@@ -5070,7 +5070,7 @@ const X = new li(), vn = y`
5070
5070
  }
5071
5071
  }
5072
5072
  }
5073
- `, xi = y`
5073
+ `, Fi = y`
5074
5074
  ${Pe}
5075
5075
  query ReadBundleForMarketplaceTheme($id: String!) {
5076
5076
  bundles(ids: [$id]) {
@@ -5079,7 +5079,7 @@ const X = new li(), vn = y`
5079
5079
  }
5080
5080
  }
5081
5081
  }
5082
- `, Fi = y`
5082
+ `, xi = y`
5083
5083
  mutation CreateOrder($orderItems: [OrderItemInput]!) {
5084
5084
  orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
5085
5085
  id
@@ -5269,9 +5269,9 @@ const Q = () => {
5269
5269
  width: u
5270
5270
  }) => {
5271
5271
  var B;
5272
- const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, f = `${g.x} ${g.y} ${g.width} ${g.height}`, p = Q(), C = a.purpose === Gt.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((E, I) => (
5272
+ const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, f = `${g.x} ${g.y} ${g.width} ${g.height}`, p = Q(), C = a.purpose === Gt.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((E, I) => (
5273
5273
  /* @ts-ignore */
5274
- /* @__PURE__ */ F("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
5274
+ /* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
5275
5275
  )), v = n.map((E) => ({
5276
5276
  ...E,
5277
5277
  _renderingConfiguration: a,
@@ -5298,7 +5298,7 @@ const Q = () => {
5298
5298
  children: [
5299
5299
  w,
5300
5300
  C,
5301
- !!r && /* @__PURE__ */ F(
5301
+ !!r && /* @__PURE__ */ x(
5302
5302
  "rect",
5303
5303
  {
5304
5304
  id: "layout-background",
@@ -5308,7 +5308,7 @@ const Q = () => {
5308
5308
  rx: h
5309
5309
  }
5310
5310
  ),
5311
- /* @__PURE__ */ F(
5311
+ /* @__PURE__ */ x(
5312
5312
  "g",
5313
5313
  {
5314
5314
  id: "element-group",
@@ -5316,7 +5316,7 @@ const Q = () => {
5316
5316
  children: S.map((E) => Qn(E)).filter((E) => !!E)
5317
5317
  }
5318
5318
  ),
5319
- l && /* @__PURE__ */ F(
5319
+ l && /* @__PURE__ */ x(
5320
5320
  "rect",
5321
5321
  {
5322
5322
  x: l.x,
@@ -5330,7 +5330,7 @@ const Q = () => {
5330
5330
  }
5331
5331
  ),
5332
5332
  l && /* @__PURE__ */ lt("mask", { id: `viewmask-${p}`, children: [
5333
- /* @__PURE__ */ F(
5333
+ /* @__PURE__ */ x(
5334
5334
  "rect",
5335
5335
  {
5336
5336
  x: g.x,
@@ -5340,7 +5340,7 @@ const Q = () => {
5340
5340
  fill: "black"
5341
5341
  }
5342
5342
  ),
5343
- /* @__PURE__ */ F(
5343
+ /* @__PURE__ */ x(
5344
5344
  "rect",
5345
5345
  {
5346
5346
  x: l.x,
@@ -5432,9 +5432,9 @@ const Q = () => {
5432
5432
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5433
5433
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5434
5434
  };
5435
- }, mc = 0.352778, gc = 0.035277, xn = (r) => {
5435
+ }, mc = 0.352778, gc = 0.035277, Fn = (r) => {
5436
5436
  const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
5437
- return /* @__PURE__ */ F("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ F(
5437
+ return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5438
5438
  "g",
5439
5439
  {
5440
5440
  transform: `
@@ -5443,7 +5443,7 @@ const Q = () => {
5443
5443
  matrix(${a}, ${-n}, ${n}, ${a}, 0, 0)
5444
5444
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5445
5445
  `,
5446
- children: /* @__PURE__ */ F(
5446
+ children: /* @__PURE__ */ x(
5447
5447
  "image",
5448
5448
  {
5449
5449
  xlinkHref: r.src,
@@ -5454,11 +5454,11 @@ const Q = () => {
5454
5454
  )
5455
5455
  }
5456
5456
  ) });
5457
- }, Fn = (r) => {
5457
+ }, xn = (r) => {
5458
5458
  var l;
5459
5459
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = gt(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5460
5460
  return /* @__PURE__ */ lt(Vt, { children: [
5461
- /* @__PURE__ */ F("defs", { children: (() => /* @__PURE__ */ F("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ F("path", { d: r.clipPath }) : /* @__PURE__ */ F("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5461
+ /* @__PURE__ */ x("defs", { children: (() => /* @__PURE__ */ x("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ x("path", { d: r.clipPath }) : /* @__PURE__ */ x("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5462
5462
  /* @__PURE__ */ lt(
5463
5463
  "g",
5464
5464
  {
@@ -5469,7 +5469,7 @@ const Q = () => {
5469
5469
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5470
5470
  `,
5471
5471
  children: [
5472
- (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ F(
5472
+ (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ x(
5473
5473
  "rect",
5474
5474
  {
5475
5475
  stroke: "red",
@@ -5481,7 +5481,7 @@ const Q = () => {
5481
5481
  height: r.height
5482
5482
  }
5483
5483
  ) : void 0,
5484
- s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ F("g", { clipPath: `url(#${t})`, children: c }))
5484
+ s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
5485
5485
  ]
5486
5486
  }
5487
5487
  )
@@ -5497,9 +5497,9 @@ const Q = () => {
5497
5497
  return r.pattern.src;
5498
5498
  };
5499
5499
  if (!a())
5500
- return /* @__PURE__ */ F(Vt, {});
5501
- const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ F(Vt, { children: r.useThreshold && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ lt("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5502
- /* @__PURE__ */ F(
5500
+ return /* @__PURE__ */ x(Vt, {});
5501
+ const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ x(Vt, { children: r.useThreshold && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ lt("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5502
+ /* @__PURE__ */ x(
5503
5503
  "feColorMatrix",
5504
5504
  {
5505
5505
  type: "matrix",
@@ -5513,14 +5513,14 @@ const Q = () => {
5513
5513
  }
5514
5514
  ),
5515
5515
  /* @__PURE__ */ lt("feComponentTransfer", { in: "greyscale", children: [
5516
- /* @__PURE__ */ F("feFuncR", { type: "discrete", tableValues: n() }),
5517
- /* @__PURE__ */ F("feFuncG", { type: "discrete", tableValues: n() }),
5518
- /* @__PURE__ */ F("feFuncB", { type: "discrete", tableValues: n() })
5516
+ /* @__PURE__ */ x("feFuncR", { type: "discrete", tableValues: n() }),
5517
+ /* @__PURE__ */ x("feFuncG", { type: "discrete", tableValues: n() }),
5518
+ /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5519
5519
  ] })
5520
5520
  ] }) }) }), s = r.rotation || 0, o = gt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5521
- var w, v, S, B, E, I, P, x, M, N;
5521
+ var w, v, S, B, E, I, P, F, M, N;
5522
5522
  const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((v = r.pattern) == null ? void 0 : v.y) || 0, h = ((S = r.pattern) == null ? void 0 : S.width) || 0, m = ((B = r.pattern) == null ? void 0 : B.height) || 0, g = ((E = r.pattern) == null ? void 0 : E.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((P = r.pattern) == null ? void 0 : P.rotation) || 0;
5523
- return [(x = r.pattern) != null && x.svg ? {
5523
+ return [(F = r.pattern) != null && F.svg ? {
5524
5524
  id: `${t}-contents`,
5525
5525
  type: T.Illustration,
5526
5526
  x: A,
@@ -5544,13 +5544,13 @@ const Q = () => {
5544
5544
  };
5545
5545
  return /* @__PURE__ */ lt(Vt, { children: [
5546
5546
  i(),
5547
- /* @__PURE__ */ F(
5547
+ /* @__PURE__ */ x(
5548
5548
  "g",
5549
5549
  {
5550
5550
  opacity: r.opacity,
5551
5551
  mask: r.stepName ? void 0 : r.mask,
5552
5552
  filter: r.useThreshold ? `url(#${e})` : void 0,
5553
- children: /* @__PURE__ */ F(
5553
+ children: /* @__PURE__ */ x(
5554
5554
  "g",
5555
5555
  {
5556
5556
  transform: `
@@ -5560,8 +5560,8 @@ const Q = () => {
5560
5560
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5561
5561
  matrix(${r.scaleX}, 0, 0, ${r.scaleY}, 0, 0)
5562
5562
  `,
5563
- children: /* @__PURE__ */ F(
5564
- Fn,
5563
+ children: /* @__PURE__ */ x(
5564
+ xn,
5565
5565
  {
5566
5566
  id: t,
5567
5567
  x: 0,
@@ -5689,8 +5689,8 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5689
5689
  parseInt(u.getAttribute("font-size") ?? "72")
5690
5690
  );
5691
5691
  E.fill = f, E.stroke = p, E.strokeWidth = parseFloat(C ?? "0");
5692
- const I = E.toSVG(2), x = t.parseFromString(I, "image/svg+xml").firstElementChild;
5693
- h.appendChild(x);
5692
+ const I = E.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5693
+ h.appendChild(F);
5694
5694
  }
5695
5695
  return e.querySelectorAll("text").forEach((d) => d.remove()), Et().serializeToString(a);
5696
5696
  }, pe = (r, t, e, a) => Math.max(Gi(r.join(`
@@ -5837,7 +5837,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5837
5837
  };
5838
5838
  return /* @__PURE__ */ lt(Vt, { children: [
5839
5839
  /* @__PURE__ */ lt("defs", { children: [
5840
- r.textFillImage && /* @__PURE__ */ F(
5840
+ r.textFillImage && /* @__PURE__ */ x(
5841
5841
  "pattern",
5842
5842
  {
5843
5843
  id: s,
@@ -5846,7 +5846,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5846
5846
  height: r.textFillImage.scale * r.textFillImage.height,
5847
5847
  x: 0,
5848
5848
  y: 0,
5849
- children: /* @__PURE__ */ F(
5849
+ children: /* @__PURE__ */ x(
5850
5850
  "image",
5851
5851
  {
5852
5852
  href: r.textFillImage.src,
@@ -5857,7 +5857,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5857
5857
  )
5858
5858
  }
5859
5859
  ),
5860
- /* @__PURE__ */ F(
5860
+ /* @__PURE__ */ x(
5861
5861
  "style",
5862
5862
  {
5863
5863
  type: "text/css",
@@ -5871,10 +5871,10 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5871
5871
  }
5872
5872
  }
5873
5873
  ),
5874
- r.curved && r.paths ? /* @__PURE__ */ F("path", { id: i, d: r.paths[0] }) : void 0
5874
+ r.curved && r.paths ? /* @__PURE__ */ x("path", { id: i, d: r.paths[0] }) : void 0
5875
5875
  ] }),
5876
- (f = r._renderingConfiguration) != null && f.debug ? /* @__PURE__ */ F("rect", { stroke: "blue", fill: "none", x: r.x, y: r.y, width: r.width, height: r.height }) : void 0,
5877
- /* @__PURE__ */ F("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ F("g", { transform: `matrix(${a}, ${-n}, ${n}, ${a}, ${o}, ${l})`, children: /* @__PURE__ */ F(
5876
+ (f = r._renderingConfiguration) != null && f.debug ? /* @__PURE__ */ x("rect", { stroke: "blue", fill: "none", x: r.x, y: r.y, width: r.width, height: r.height }) : void 0,
5877
+ /* @__PURE__ */ x("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ x("g", { transform: `matrix(${a}, ${-n}, ${n}, ${a}, ${o}, ${l})`, children: /* @__PURE__ */ x(
5878
5878
  "text",
5879
5879
  {
5880
5880
  xmlSpace: "preserve",
@@ -5889,7 +5889,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5889
5889
  },
5890
5890
  stroke: d,
5891
5891
  strokeWidth: A,
5892
- children: r.curved ? /* @__PURE__ */ F(Yi, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ F(
5892
+ children: r.curved ? /* @__PURE__ */ x(Yi, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ x(
5893
5893
  qi,
5894
5894
  {
5895
5895
  align: r.vertical ? "center" : r.align,
@@ -5920,10 +5920,10 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5920
5920
  const s = (r.amountLines - 1) / 2;
5921
5921
  return (r.thisLineIdx - s) * n + r.fontSize / 4;
5922
5922
  };
5923
- return /* @__PURE__ */ F("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5923
+ return /* @__PURE__ */ x("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5924
5924
  }, Yi = (r) => {
5925
5925
  const t = `#${r.curvedPathId}`;
5926
- return /* @__PURE__ */ F(
5926
+ return /* @__PURE__ */ x(
5927
5927
  "textPath",
5928
5928
  {
5929
5929
  startOffset: (() => r.align === "left" ? "0%" : r.align === "right" ? "100%" : "50%")(),
@@ -5936,8 +5936,8 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5936
5936
  }, Ji = (r) => {
5937
5937
  var s, o;
5938
5938
  if (r.cachedObjectURL && !((s = r._renderingConfiguration) != null && s.omitCachedFields))
5939
- return /* @__PURE__ */ F(
5940
- xn,
5939
+ return /* @__PURE__ */ x(
5940
+ Fn,
5941
5941
  {
5942
5942
  id: r.id,
5943
5943
  src: r.cachedObjectURL,
@@ -5961,7 +5961,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5961
5961
  throw new Error(
5962
5962
  `Illustration element ${r.id} (stepName ${r.stepName}) lacked svg from src ${r.src} at render time.`
5963
5963
  );
5964
- return /* @__PURE__ */ F("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ F(
5964
+ return /* @__PURE__ */ x("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ x(
5965
5965
  "g",
5966
5966
  {
5967
5967
  transform: i,
@@ -6069,9 +6069,9 @@ class Ki {
6069
6069
  return { ...t, transaction: e.apply(a) };
6070
6070
  }
6071
6071
  }
6072
- const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ F(xn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ F(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ F(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ F(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : null, wa = (r, t, e) => {
6072
+ const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ x(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(xn, { ...r }, r.id) : null, wa = (r, t, e) => {
6073
6073
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6074
- return /* @__PURE__ */ F(
6074
+ return /* @__PURE__ */ x(
6075
6075
  Ni,
6076
6076
  {
6077
6077
  preserveAspectRatio: void 0,
@@ -6142,7 +6142,7 @@ const te = (r) => {
6142
6142
  if (!e.asset)
6143
6143
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6144
6144
  return e;
6145
- }, xe = async (r) => {
6145
+ }, Fe = async (r) => {
6146
6146
  if (Le.has(r))
6147
6147
  return Le.get(r);
6148
6148
  const e = (async () => {
@@ -6315,7 +6315,7 @@ const te = (r) => {
6315
6315
  };
6316
6316
  class pc {
6317
6317
  static async getFrame(t, e) {
6318
- const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6318
+ const a = await Nn(e.region, e.src), n = await Fe(a), i = e.region || await Ut(t, T.Frame);
6319
6319
  return {
6320
6320
  id: Q(),
6321
6321
  x: i.left,
@@ -7671,7 +7671,7 @@ class we {
7671
7671
  i && i(!0);
7672
7672
  const c = t.data.initialZoomLevel, d = await Promise.all(
7673
7673
  t.data.regions.map(async (m, g) => {
7674
- const f = await xe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7674
+ const f = await Fe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7675
7675
  p,
7676
7676
  f,
7677
7677
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7980,7 +7980,7 @@ class os {
7980
7980
  const S = {};
7981
7981
  (((v = o.assetConfiguration) == null ? void 0 : v.channelNumbers) || []).forEach((E) => {
7982
7982
  var P;
7983
- const I = C.find((x) => x.channelNumber === E.number);
7983
+ const I = C.find((F) => F.channelNumber === E.number);
7984
7984
  I && (S[`${E.id.replace(/\W/g, "")}`] = { browserValue: ((P = I == null ? void 0 : I.variant) == null ? void 0 : P.color) || "" });
7985
7985
  }), await this.changeColors(
7986
7986
  t,
@@ -7996,7 +7996,7 @@ class os {
7996
7996
  const I = S[0], P = B[0];
7997
7997
  await this.changeColors(
7998
7998
  t,
7999
- u.map((x) => x.regionElement),
7999
+ u.map((F) => F.regionElement),
8000
8000
  i,
8001
8001
  () => i.getCommandContext().getAllLayouts(),
8002
8002
  /* @__PURE__ */ new Map([[P, I.variant.color]])
@@ -9176,10 +9176,10 @@ class ps {
9176
9176
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9177
9177
  );
9178
9178
  B.set(v.id, I), E.set(v.id, P);
9179
- const x = a.curved || a.vertical ? l : (P || []).join(`
9179
+ const F = a.curved || a.vertical ? l : (P || []).join(`
9180
9180
  `);
9181
9181
  S.push(
9182
- this.generateTextChangeCommandsForRegion(I, a, v.id, x)
9182
+ this.generateTextChangeCommandsForRegion(I, a, v.id, F)
9183
9183
  );
9184
9184
  const M = new W(v, h);
9185
9185
  return {
@@ -9461,7 +9461,7 @@ async function Hn(r) {
9461
9461
  return new Is();
9462
9462
  throw new z(`Failed to resolve Module, Module ${r} not found`);
9463
9463
  }
9464
- const Fe = y`
9464
+ const xe = y`
9465
9465
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9466
9466
  name
9467
9467
  value
@@ -9484,7 +9484,7 @@ const Fe = y`
9484
9484
  }
9485
9485
  }
9486
9486
  `, Ds = y`
9487
- ${Fe}
9487
+ ${xe}
9488
9488
  mutation CreateGlobalPropertyState($bundleId: String!) {
9489
9489
  globalPropertyStateCreate(bundleId: $bundleId) {
9490
9490
  id
@@ -9494,7 +9494,7 @@ const Fe = y`
9494
9494
  }
9495
9495
  }
9496
9496
  `, Ps = y`
9497
- ${Fe}
9497
+ ${xe}
9498
9498
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9499
9499
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
9500
9500
  id
@@ -9505,7 +9505,7 @@ const Fe = y`
9505
9505
  }
9506
9506
  `;
9507
9507
  y`
9508
- ${Fe}
9508
+ ${xe}
9509
9509
  query GetGlobalPropertyState($bundleId: String!) {
9510
9510
  globalPropertyState(bundleId: $bundleId) {
9511
9511
  id
@@ -9515,7 +9515,7 @@ y`
9515
9515
  }
9516
9516
  }
9517
9517
  `;
9518
- const xs = y`
9518
+ const Fs = y`
9519
9519
  ${De}
9520
9520
  fragment ProductFields on Product {
9521
9521
  id
@@ -9561,7 +9561,7 @@ const xs = y`
9561
9561
  }
9562
9562
  }
9563
9563
  `, Ea = y`
9564
- ${xs}
9564
+ ${Fs}
9565
9565
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9566
9566
  id
9567
9567
  productId
@@ -9628,8 +9628,8 @@ const xs = y`
9628
9628
  }
9629
9629
  }
9630
9630
  }
9631
- `, Fs = (r) => y`
9632
- ${Fe}
9631
+ `, xs = (r) => y`
9632
+ ${xe}
9633
9633
  ${ke(r)}
9634
9634
  query GetBundle($id: String!) {
9635
9635
  globalPropertyState(bundleId: $id) {
@@ -11600,13 +11600,13 @@ const go = async (r) => {
11600
11600
  if (c !== void 0)
11601
11601
  return c;
11602
11602
  await r.outstandingRequestsPromise();
11603
- const x = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), N = await b.getShadowGraphqlClient().query({
11603
+ const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), N = await b.getShadowGraphqlClient().query({
11604
11604
  query: bn,
11605
11605
  variables: { ids: [n.id] },
11606
11606
  fetchPolicy: "no-cache",
11607
11607
  errorPolicy: "all",
11608
11608
  context: {
11609
- transactionOwnerId: x
11609
+ transactionOwnerId: F
11610
11610
  }
11611
11611
  }), V = (j = N.data) == null ? void 0 : j.transactions[0].workflowState;
11612
11612
  return N.errors ? (N.errors.forEach((G) => {
@@ -11614,7 +11614,7 @@ const go = async (r) => {
11614
11614
  }), null) : V ?? null;
11615
11615
  })() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(a())), await r.updateStateWithServerImmediate(a), console.log("Server state is undefined @ Workflow completion"));
11616
11616
  const u = r.getPreviewService(), h = (I = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : I.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && oa(l, t, !0), f = l && oa(l, t, !1), p = async (P) => {
11617
- const x = {};
11617
+ const F = {};
11618
11618
  let M = 0;
11619
11619
  if (Object.keys(i).length > 0)
11620
11620
  for (const N of Object.keys(i)) {
@@ -11623,11 +11623,11 @@ const go = async (r) => {
11623
11623
  const nt = V.selections[G];
11624
11624
  if (j && (!P || j.option && (j.option.variants || []).length > 1 && !j.data.hideSelectionInCart && !j.data.hideSelectionsInCart)) {
11625
11625
  const Te = j.stepTitle;
11626
- x[Te] ? x[Te].push({
11626
+ F[Te] ? F[Te].push({
11627
11627
  id: nt.id || "",
11628
11628
  name: nt.name,
11629
11629
  priceModifier: nt.priceModifier
11630
- }) : x[Te] = [
11630
+ }) : F[Te] = [
11631
11631
  {
11632
11632
  id: nt.id || "",
11633
11633
  name: nt.name,
@@ -11638,13 +11638,13 @@ const go = async (r) => {
11638
11638
  M += nt.priceModifier;
11639
11639
  }
11640
11640
  }
11641
- return [x, M];
11641
+ return [F, M];
11642
11642
  }, [C] = await p(!0), w = Object.fromEntries(
11643
- Object.keys(C).map((P) => [P, C[P].map((x) => x.id)])
11643
+ Object.keys(C).map((P) => [P, C[P].map((F) => F.id)])
11644
11644
  ), [v] = await p(!1), S = Object.fromEntries(
11645
11645
  Object.keys(v).map((P) => [
11646
11646
  P,
11647
- v[P].map((x) => x.id)
11647
+ v[P].map((F) => F.id)
11648
11648
  ])
11649
11649
  );
11650
11650
  let B = await o(m, n.id);
@@ -11661,9 +11661,9 @@ const go = async (r) => {
11661
11661
  designDetails: (() => {
11662
11662
  const P = {
11663
11663
  name: s,
11664
- layouts: e.map((x) => ({
11665
- index: x.index,
11666
- panelId: x.panelId
11664
+ layouts: e.map((F) => ({
11665
+ index: F.index,
11666
+ panelId: F.panelId
11667
11667
  })),
11668
11668
  workflowId: t.id,
11669
11669
  transactionId: n.id,
@@ -11671,16 +11671,16 @@ const go = async (r) => {
11671
11671
  previewImage: B
11672
11672
  };
11673
11673
  if (f) {
11674
- const x = [];
11674
+ const F = [];
11675
11675
  for (const [M, N] of Object.entries(f))
11676
- x.push({ key: M, value: N });
11677
- P.metadata = x;
11676
+ F.push({ key: M, value: N });
11677
+ P.metadata = F;
11678
11678
  }
11679
11679
  if (w) {
11680
- const x = [];
11680
+ const F = [];
11681
11681
  for (const [M, N] of Object.entries(S))
11682
- x.push({ key: M, ids: N });
11683
- P.selectedVariants = x;
11682
+ F.push({ key: M, ids: N });
11683
+ P.selectedVariants = F;
11684
11684
  }
11685
11685
  return P;
11686
11686
  })(),
@@ -12370,7 +12370,7 @@ const Io = [
12370
12370
  o && (t[a.stepName] = { selectedVariants: [o] });
12371
12371
  const l = async (c) => {
12372
12372
  var g;
12373
- const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12373
+ const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Fe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12374
12374
  if (!h)
12375
12375
  throw new Y(c);
12376
12376
  const m = Sa(
@@ -12421,7 +12421,7 @@ const Io = [
12421
12421
  } catch (o) {
12422
12422
  return console.error(o), [];
12423
12423
  }
12424
- }, xo = async (r, t, e, a) => {
12424
+ }, Fo = async (r, t, e, a) => {
12425
12425
  var S, B;
12426
12426
  const n = e.data, i = a.option;
12427
12427
  if (!i)
@@ -12440,17 +12440,17 @@ const Io = [
12440
12440
  return console.error("Failed to read SVG."), [];
12441
12441
  ma(m);
12442
12442
  const g = {};
12443
- Ft(m, (E) => {
12443
+ xt(m, (E) => {
12444
12444
  Io.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
12445
12445
  const I = E.attributes.getNamedItem("fill");
12446
12446
  if (I && I.value !== "none") {
12447
- const x = I.value, N = `spiff-fill-${x.replace(/\W/g, "")}`;
12448
- E.classList.add(N), g[N] = { browserValue: x };
12447
+ const F = I.value, N = `spiff-fill-${F.replace(/\W/g, "")}`;
12448
+ E.classList.add(N), g[N] = { browserValue: F };
12449
12449
  }
12450
12450
  const P = E.attributes.getNamedItem("stroke");
12451
12451
  if (P && P.value !== "none") {
12452
- const x = P.value, N = `spiff-stroke-${x.replace(/\W/g, "")}`;
12453
- E.classList.add(N), g[N] = { browserValue: x };
12452
+ const F = P.value, N = `spiff-stroke-${F.replace(/\W/g, "")}`;
12453
+ E.classList.add(N), g[N] = { browserValue: F };
12454
12454
  }
12455
12455
  });
12456
12456
  const p = Et().serializeToString(m), C = n.colors;
@@ -12463,7 +12463,7 @@ const Io = [
12463
12463
  }
12464
12464
  }
12465
12465
  const w = (E) => {
12466
- const I = r.find((x) => x.panelId === E.panelId);
12466
+ const I = r.find((F) => F.panelId === E.panelId);
12467
12467
  if (!I)
12468
12468
  throw new Y(E);
12469
12469
  const P = Q();
@@ -12490,7 +12490,7 @@ const Io = [
12490
12490
  } catch (E) {
12491
12491
  return console.error(E), [];
12492
12492
  }
12493
- }, Fo = async (r, t, e) => {
12493
+ }, xo = async (r, t, e) => {
12494
12494
  const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
12495
12495
  const c = r.find((A) => A.panelId === l.panelId);
12496
12496
  if (!c)
@@ -12803,7 +12803,7 @@ const Io = [
12803
12803
  break;
12804
12804
  case D.Illustration:
12805
12805
  n.push(
12806
- ...await xo(
12806
+ ...await Fo(
12807
12807
  e,
12808
12808
  i,
12809
12809
  s,
@@ -12812,7 +12812,7 @@ const Io = [
12812
12812
  );
12813
12813
  break;
12814
12814
  case D.Module:
12815
- n.push(...await Fo(e, s, o));
12815
+ n.push(...await xo(e, s, o));
12816
12816
  break;
12817
12817
  case D.Picture:
12818
12818
  n.push(
@@ -13781,7 +13781,12 @@ class Ho {
13781
13781
  }
13782
13782
  getSerializedState() {
13783
13783
  if (this.state)
13784
- return JSON.stringify(this.state);
13784
+ return this.deleteFieldNameFromObjectRecursive(this.state, "__typename"), JSON.stringify(this.state);
13785
+ }
13786
+ deleteFieldNameFromObjectRecursive(t, e) {
13787
+ if (!(typeof t != "object" || t === null))
13788
+ for (const a in t)
13789
+ a === e ? delete t[a] : this.deleteFieldNameFromObjectRecursive(t[a], e);
13785
13790
  }
13786
13791
  flipTransform(t, e) {
13787
13792
  return e && e.flipTransform ? e.flipTransform(
@@ -15007,7 +15012,7 @@ class Xn extends ba {
15007
15012
  return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
15008
15013
  }
15009
15014
  }
15010
- class xc extends ba {
15015
+ class Fc extends ba {
15011
15016
  constructor(t) {
15012
15017
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15013
15018
  }
@@ -15195,7 +15200,7 @@ const Ya = y`
15195
15200
  (o) => Ht.set({ id: o, options: t }, Al(o, n))
15196
15201
  ), s = e.filter((o) => o !== void 0);
15197
15202
  return await Promise.all(s.concat(i));
15198
- }, Fc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15203
+ }, xc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15199
15204
  id: Q(),
15200
15205
  panelId: t.name,
15201
15206
  name: t.name,
@@ -15224,7 +15229,7 @@ class kc {
15224
15229
  } catch (a) {
15225
15230
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15226
15231
  }
15227
- }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.23.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15232
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.23.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15228
15233
  }
15229
15234
  configure(t) {
15230
15235
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15242,7 +15247,7 @@ class kc {
15242
15247
  return this.currencyCode;
15243
15248
  }
15244
15249
  getFlowService() {
15245
- if (!Fr())
15250
+ if (!xr())
15246
15251
  throw new Error("Application key required to use Flow Service.");
15247
15252
  return new al();
15248
15253
  }
@@ -15531,7 +15536,7 @@ class kc {
15531
15536
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15532
15537
  */
15533
15538
  async getExistingBundle(t, e, a, n) {
15534
- var f, p, C, w, v, S, B, E, I, P, x;
15539
+ var f, p, C, w, v, S, B, E, I, P, F;
15535
15540
  const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M, N]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
15536
15541
  c && !ve(c) && (d.Authorization = `Bearer ${c}`);
15537
15542
  const A = {
@@ -15539,7 +15544,7 @@ class kc {
15539
15544
  ...d,
15540
15545
  ...(p = n == null ? void 0 : n.graphql) == null ? void 0 : p.additionalHeaders
15541
15546
  }, u = await b.getShadowGraphqlClient().query({
15542
- query: Fs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15547
+ query: xs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15543
15548
  variables: {
15544
15549
  id: t
15545
15550
  },
@@ -15554,7 +15559,7 @@ class kc {
15554
15559
  m.set(h.id, h.partner.id), k.setMap("bundlePartnerIds", m);
15555
15560
  const g = new He(this, h, e, a, s, {
15556
15561
  additionalHeaders: (I = n == null ? void 0 : n.graphql) == null ? void 0 : I.additionalHeaders,
15557
- eagerFetchProducts: (x = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : x.eagerFetchProducts,
15562
+ eagerFetchProducts: (F = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : F.eagerFetchProducts,
15558
15563
  existingGlobalPropertyState: u.data.globalPropertyState,
15559
15564
  readonly: n == null ? void 0 : n.readonly
15560
15565
  });
@@ -15669,7 +15674,7 @@ class kc {
15669
15674
  if (t.length === 0)
15670
15675
  throw new ut("No options provided!");
15671
15676
  const a = b.getShadowGraphqlClient(), n = async (S) => {
15672
- var P, x, M;
15677
+ var P, F, M;
15673
15678
  if (S.length === 0)
15674
15679
  return [];
15675
15680
  const B = S.map((N) => N.option.transactionId), E = await a.query({
@@ -15681,7 +15686,7 @@ class kc {
15681
15686
  fetchPolicy: "no-cache"
15682
15687
  }), I = E.data.transactions;
15683
15688
  if (I.length !== S.length) {
15684
- const N = ((x = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15689
+ const N = ((F = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15685
15690
  throw new ut(`Not all transactions were found: ${N}`);
15686
15691
  }
15687
15692
  return !this.activeIntegration && ((M = I[0].integrationProduct) != null && M.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((N, V) => {
@@ -15694,7 +15699,7 @@ class kc {
15694
15699
  };
15695
15700
  });
15696
15701
  }, i = async (S) => {
15697
- var I, P, x;
15702
+ var I, P, F;
15698
15703
  if (S.length === 0)
15699
15704
  return [];
15700
15705
  const B = await a.mutate({
@@ -15715,7 +15720,7 @@ class kc {
15715
15720
  fetchPolicy: "no-cache"
15716
15721
  }), E = (I = B.data) == null ? void 0 : I.transactionCreateMany;
15717
15722
  if (!E || E.length === 0) {
15718
- const M = ((x = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15723
+ const M = ((F = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15719
15724
  throw new ut(`Failed to create transactions: ${M}`);
15720
15725
  }
15721
15726
  return E.map((M, N) => ({
@@ -15731,7 +15736,7 @@ class kc {
15731
15736
  ...d.map(i)
15732
15737
  ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await Zn(u, e), m = new Map(h.map((S) => [S.id, S])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
15733
15738
  var j;
15734
- const { transaction: B, workflowId: E, readOnly: I, index: P } = S, x = m.get(E), M = t[P];
15739
+ const { transaction: B, workflowId: E, readOnly: I, index: P } = S, F = m.get(E), M = t[P];
15735
15740
  !g.get(B.id) && B.transactionOwnerId && g.set(B.id, B.transactionOwnerId);
15736
15741
  const N = g.get(B.id) || void 0, V = {
15737
15742
  product: B.product,
@@ -15745,7 +15750,7 @@ class kc {
15745
15750
  context: { transactionOwnerId: N, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
15746
15751
  }),
15747
15752
  readOnly: I,
15748
- workflow: x,
15753
+ workflow: F,
15749
15754
  isReloadedTransaction: M.type === "transaction"
15750
15755
  };
15751
15756
  if (M.type === "transaction" && B.workflowState) {
@@ -15824,7 +15829,7 @@ class kc {
15824
15829
  }
15825
15830
  async placeOrder(t) {
15826
15831
  const e = await b.getShadowGraphqlClient().mutate({
15827
- mutation: Fi,
15832
+ mutation: xi,
15828
15833
  variables: {
15829
15834
  orderItems: t
15830
15835
  }
@@ -15875,7 +15880,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15875
15880
  }, Qc = async (r) => {
15876
15881
  var e, a, n;
15877
15882
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
15878
- query: xi,
15883
+ query: Fi,
15879
15884
  errorPolicy: "all",
15880
15885
  variables: {
15881
15886
  id: r
@@ -15927,7 +15932,7 @@ class fl {
15927
15932
  if (n.currentFrameSources) {
15928
15933
  let i = !1;
15929
15934
  for (let s = 0; s < n.currentFrameSources.length; s++) {
15930
- const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
15935
+ const o = n.currentFrameSources[s], l = await Fe(o), c = this.frameData ? this.frameData[s] : void 0;
15931
15936
  rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15932
15937
  }
15933
15938
  i && (this.onFrameDataChangeListeners.forEach(
@@ -16735,7 +16740,7 @@ K = { __e: function(r, t, e, a) {
16735
16740
  throw r;
16736
16741
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
16737
16742
  var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16738
- function xl() {
16743
+ function Fl() {
16739
16744
  for (var r; r = tr.shift(); )
16740
16745
  if (r.__P && r.__H)
16741
16746
  try {
@@ -16755,7 +16760,7 @@ K.__b = function(r) {
16755
16760
  }, K.diffed = function(r) {
16756
16761
  Xa && Xa(r);
16757
16762
  var t = r.__c;
16758
- t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Fl)(xl)), t.__H.__.forEach(function(e) {
16763
+ t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || xl)(Fl)), t.__H.__.forEach(function(e) {
16759
16764
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
16760
16765
  })), qe = st = null;
16761
16766
  }, K.__c = function(r, t) {
@@ -16782,7 +16787,7 @@ K.__b = function(r) {
16782
16787
  }), e.__H = void 0, t && K.__e(t, e.__v));
16783
16788
  };
16784
16789
  var en = typeof requestAnimationFrame == "function";
16785
- function Fl(r) {
16790
+ function xl(r) {
16786
16791
  var t, e = function() {
16787
16792
  clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
16788
16793
  }, a = setTimeout(e, 100);
@@ -16798,7 +16803,7 @@ function la(r) {
16798
16803
  }
16799
16804
  export {
16800
16805
  da as AddonHandle,
16801
- xc as ArrayInput,
16806
+ Fc as ArrayInput,
16802
16807
  et as AspectType,
16803
16808
  yt as AssetNotFoundError,
16804
16809
  he as AssetType,
@@ -16911,7 +16916,7 @@ export {
16911
16916
  Vc as getCustomer,
16912
16917
  zc as getCustomerBundles,
16913
16918
  hc as getElementVertices,
16914
- xe as getFrameData,
16919
+ Fe as getFrameData,
16915
16920
  ml as getIntegration,
16916
16921
  dc as getNEPoint,
16917
16922
  cc as getNWPoint,
@@ -16927,7 +16932,7 @@ export {
16927
16932
  Gc as getTransactionsForBundle,
16928
16933
  oc as getTrueCoordinates,
16929
16934
  Wc as getUnorderedTransactions,
16930
- Fc as getWorkflow,
16935
+ xc as getWorkflow,
16931
16936
  Zn as getWorkflows,
16932
16937
  b as graphQlManager,
16933
16938
  de as illustrationStepService,