@spiffcommerce/core 26.32.0-beta.d85ee52e-8aba-574e-973b-cb79d29568db → 26.32.0-beta.e77c2646-2e10-55be-9b18-ad67d5cbfd54

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
@@ -7,11 +7,11 @@ import { orientation as dr } from "exifr/dist/mini.umd.cjs";
7
7
  import { parse as an } from "css";
8
8
  import Ar from "fuse.js";
9
9
  import { Pith as ca } from "pith";
10
- import Ft from "lodash.clonedeep";
10
+ import xt from "lodash.clonedeep";
11
11
  import { toString as nn } from "qrcode";
12
12
  import ur from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
- import { jsx as x, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
14
+ import { jsx as F, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
15
15
  import { dataUriToBuffer as hr } from "data-uri-to-buffer";
16
16
  import Da from "lodash.chunk";
17
17
  import rn from "lodash.isequal";
@@ -179,8 +179,8 @@ function nt(r, t) {
179
179
  }
180
180
  return Xe(r, t);
181
181
  }
182
- const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
- const t = Fa.get(r);
182
+ const ln = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
+ const t = xa.get(r);
184
184
  if (t)
185
185
  return t;
186
186
  const a = (async () => {
@@ -188,13 +188,13 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
188
188
  const n = await nt(r);
189
189
  return ln.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
190
190
  })();
191
- return Fa.set(r, a), a;
191
+ return xa.set(r, a), a;
192
192
  }, Er = async (r) => {
193
- const t = xa.get(r);
193
+ const t = Fa.get(r);
194
194
  if (t)
195
195
  return t;
196
196
  const a = (async () => await (await nt(r)).text())();
197
- return xa.set(r, a), a;
197
+ return Fa.set(r, a), a;
198
198
  }, Tt = (r) => r.every((t) => t !== "undefined"), ne = (r) => Tt([typeof document]) ? document.createElement(r) : Kt().document.createElement(r), Br = (r, t) => {
199
199
  if (Tt([typeof document]))
200
200
  return document.createElementNS(r, t);
@@ -258,7 +258,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
258
258
  return e || "image/svg+xml";
259
259
  }, Ac = async (r) => {
260
260
  const t = await cn(r), e = ln.get(r) || Pe(t);
261
- return await Fr(new Blob([t], { type: e }));
261
+ return await xr(new Blob([t], { type: e }));
262
262
  }, Dr = (r) => {
263
263
  let t = "";
264
264
  const e = r.byteLength;
@@ -280,7 +280,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
280
280
  return n ? new Uint8Array(
281
281
  atob(i).split("").map((o) => o.charCodeAt(0))
282
282
  ).buffer : new Uint8Array(i.split("").map((o) => o.charCodeAt(0))).buffer;
283
- }, Fr = (r) => new Promise((t, e) => {
283
+ }, xr = (r) => new Promise((t, e) => {
284
284
  const a = new FileReader();
285
285
  a.onload = function(n) {
286
286
  const i = n.target;
@@ -292,7 +292,7 @@ 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
297
  }, kr = () => ua;
298
298
  let hn;
@@ -453,7 +453,7 @@ const Or = (r) => new Promise((t) => {
453
453
  break;
454
454
  }
455
455
  return d.drawImage(e, 0, 0, o, l), c;
456
- }, Fe = async (r) => {
456
+ }, xe = async (r) => {
457
457
  const t = await Lr(r);
458
458
  return Pe(r) === "image/jpeg" ? {
459
459
  dataUrl: t.toDataURL("image/jpeg", 1),
@@ -1806,7 +1806,7 @@ const Or = (r) => new Promise((t) => {
1806
1806
  "Black 5 C",
1807
1807
  "Black 6 C",
1808
1808
  "Black 7 C"
1809
- ], xt = [
1809
+ ], Ft = [
1810
1810
  "FEDD00",
1811
1811
  "FFD700",
1812
1812
  "FE5000",
@@ -3148,17 +3148,17 @@ const Or = (r) => new Promise((t) => {
3148
3148
  "3E2B2E",
3149
3149
  "101820",
3150
3150
  "3D3935"
3151
- ], Re = xt.map((r) => [
3151
+ ], Re = Ft.map((r) => [
3152
3152
  parseInt(r.substring(0, 2), 16),
3153
3153
  parseInt(r.substring(2, 4), 16),
3154
3154
  parseInt(r.substring(4, 6), 16)
3155
3155
  ]);
3156
3156
  function uc(r) {
3157
3157
  const t = Ht.indexOf(r);
3158
- return t >= 0 ? xt[t] : "";
3158
+ return t >= 0 ? Ft[t] : "";
3159
3159
  }
3160
3160
  function Vr(r) {
3161
- const t = xt.indexOf(r);
3161
+ const t = Ft.indexOf(r);
3162
3162
  return t >= 0 ? Ht[t] : "";
3163
3163
  }
3164
3164
  function hc(r, t = 64) {
@@ -3170,16 +3170,16 @@ function hc(r, t = 64) {
3170
3170
  });
3171
3171
  const i = parseInt(r.substring(0, 2), 16), s = parseInt(r.substring(2, 4), 16), o = parseInt(r.substring(4, 6), 16);
3172
3172
  let l, c, d;
3173
- for (let A = 0; A < xt.length; A++) {
3173
+ for (let A = 0; A < Ft.length; A++) {
3174
3174
  l = Re[A][0], c = Re[A][1], d = Re[A][2];
3175
3175
  const u = Math.sqrt(Math.pow(i - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
3176
3176
  a.push(u);
3177
3177
  }
3178
3178
  for (let A = 0; A < a.length; A++)
3179
- a[A] <= t && !e.some((u) => u.pms === Ht[A]) && e.push({ pms: Ht[A], hex: xt[A], distance: a[A] });
3179
+ a[A] <= t && !e.some((u) => u.pms === Ht[A]) && e.push({ pms: Ht[A], hex: Ft[A], distance: a[A] });
3180
3180
  return e.sort((A, u) => A.distance - u.distance);
3181
3181
  }
3182
- const zr = Ht.map((r, t) => ({ pms: r, hex: xt[t] })), Gr = new Ar(zr, { keys: ["pms"] });
3182
+ const zr = Ht.map((r, t) => ({ pms: r, hex: Ft[t] })), Gr = new Ar(zr, { keys: ["pms"] });
3183
3183
  function mc(r, t) {
3184
3184
  return Gr.search(r, t ? { limit: t } : void 0);
3185
3185
  }
@@ -3531,7 +3531,7 @@ const ie = (r) => {
3531
3531
  class ri {
3532
3532
  constructor() {
3533
3533
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
3534
- const e = await t.arrayBuffer(), a = await Fe(e), n = (i, s) => {
3534
+ const e = await t.arrayBuffer(), a = await xe(e), n = (i, s) => {
3535
3535
  const o = atob(i.split(",")[1]), l = [];
3536
3536
  for (let c = 0; c < o.length; c++)
3537
3537
  l.push(o.charCodeAt(c));
@@ -3958,7 +3958,7 @@ const _ = new di(), vn = y`
3958
3958
  activeAddons
3959
3959
  }
3960
3960
  }
3961
- `, xe = y`
3961
+ `, Fe = y`
3962
3962
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3963
3963
  id
3964
3964
  product {
@@ -3977,7 +3977,7 @@ const _ = new di(), vn = y`
3977
3977
  }
3978
3978
  }
3979
3979
  `, Ai = y`
3980
- ${xe}
3980
+ ${Fe}
3981
3981
  mutation CreateTransactions(
3982
3982
  $inputs: [TransactionCreateInput]!
3983
3983
  $marketplaceThemeInstallId: String
@@ -4081,7 +4081,7 @@ const _ = new di(), vn = y`
4081
4081
  url
4082
4082
  }
4083
4083
  `, ui = y`
4084
- ${xe}
4084
+ ${Fe}
4085
4085
  ${En}
4086
4086
  ${Bn}
4087
4087
  ${vn}
@@ -4331,7 +4331,7 @@ const _ = new di(), vn = y`
4331
4331
  }
4332
4332
  }
4333
4333
  `, In = (r) => y`
4334
- ${xe}
4334
+ ${Fe}
4335
4335
  fragment IntegrationProductFields on IntegrationProduct {
4336
4336
  id
4337
4337
  externalProductId
@@ -5089,7 +5089,7 @@ const _ = new di(), vn = y`
5089
5089
  ...MarketplaceThemeInstallConfigurationFields
5090
5090
  }
5091
5091
  }
5092
- `, Fi = y`
5092
+ `, xi = y`
5093
5093
  ${vn}
5094
5094
  ${ke}
5095
5095
  query GetCurrentIntegration($themeConfigurationId: String) {
@@ -5102,7 +5102,7 @@ const _ = new di(), vn = y`
5102
5102
  ...ActiveIntegrationFields
5103
5103
  }
5104
5104
  }
5105
- `, xi = y`
5105
+ `, Fi = y`
5106
5106
  ${ke}
5107
5107
  query ReadTransactionForMarketplaceTheme($id: String!) {
5108
5108
  transactions(ids: [$id]) {
@@ -5310,9 +5310,9 @@ const N = () => {
5310
5310
  width: u
5311
5311
  }) => {
5312
5312
  var E;
5313
- 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 = N(), C = a.purpose === Wt.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((B, I) => (
5313
+ 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 = N(), C = a.purpose === Wt.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((B, I) => (
5314
5314
  /* @ts-ignore */
5315
- /* @__PURE__ */ x("color-profile", { name: B.name, xlinkHref: B.key, children: " " }, I)
5315
+ /* @__PURE__ */ F("color-profile", { name: B.name, xlinkHref: B.key, children: " " }, I)
5316
5316
  )), v = n.map((B) => ({
5317
5317
  ...B,
5318
5318
  _renderingConfiguration: a,
@@ -5339,7 +5339,7 @@ const N = () => {
5339
5339
  children: [
5340
5340
  w,
5341
5341
  C,
5342
- !!r && /* @__PURE__ */ x(
5342
+ !!r && /* @__PURE__ */ F(
5343
5343
  "rect",
5344
5344
  {
5345
5345
  id: "layout-background",
@@ -5349,7 +5349,7 @@ const N = () => {
5349
5349
  rx: h
5350
5350
  }
5351
5351
  ),
5352
- /* @__PURE__ */ x(
5352
+ /* @__PURE__ */ F(
5353
5353
  "g",
5354
5354
  {
5355
5355
  id: "element-group",
@@ -5357,7 +5357,7 @@ const N = () => {
5357
5357
  children: S.map((B) => Qn(B)).filter((B) => !!B)
5358
5358
  }
5359
5359
  ),
5360
- l && /* @__PURE__ */ x(
5360
+ l && /* @__PURE__ */ F(
5361
5361
  "rect",
5362
5362
  {
5363
5363
  x: l.x,
@@ -5371,7 +5371,7 @@ const N = () => {
5371
5371
  }
5372
5372
  ),
5373
5373
  l && /* @__PURE__ */ ct("mask", { id: `viewmask-${p}`, children: [
5374
- /* @__PURE__ */ x(
5374
+ /* @__PURE__ */ F(
5375
5375
  "rect",
5376
5376
  {
5377
5377
  x: g.x,
@@ -5381,7 +5381,7 @@ const N = () => {
5381
5381
  fill: "black"
5382
5382
  }
5383
5383
  ),
5384
- /* @__PURE__ */ x(
5384
+ /* @__PURE__ */ F(
5385
5385
  "rect",
5386
5386
  {
5387
5387
  x: l.x,
@@ -5473,9 +5473,9 @@ const N = () => {
5473
5473
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5474
5474
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5475
5475
  };
5476
- }, bc = 0.352778, Ic = 0.035277, Fn = (r) => {
5476
+ }, bc = 0.352778, Ic = 0.035277, xn = (r) => {
5477
5477
  const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
5478
- return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5478
+ return /* @__PURE__ */ F("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ F(
5479
5479
  "g",
5480
5480
  {
5481
5481
  transform: `
@@ -5484,7 +5484,7 @@ const N = () => {
5484
5484
  matrix(${a}, ${-n}, ${n}, ${a}, 0, 0)
5485
5485
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5486
5486
  `,
5487
- children: /* @__PURE__ */ x(
5487
+ children: /* @__PURE__ */ F(
5488
5488
  "image",
5489
5489
  {
5490
5490
  xlinkHref: r.src,
@@ -5495,11 +5495,11 @@ const N = () => {
5495
5495
  )
5496
5496
  }
5497
5497
  ) });
5498
- }, xn = (r) => {
5498
+ }, Fn = (r) => {
5499
5499
  var l;
5500
5500
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = ft(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5501
5501
  return /* @__PURE__ */ ct(zt, { children: [
5502
- /* @__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 }) }))() }),
5502
+ /* @__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 }) }))() }),
5503
5503
  /* @__PURE__ */ ct(
5504
5504
  "g",
5505
5505
  {
@@ -5510,7 +5510,7 @@ const N = () => {
5510
5510
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5511
5511
  `,
5512
5512
  children: [
5513
- (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ x(
5513
+ (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ F(
5514
5514
  "rect",
5515
5515
  {
5516
5516
  stroke: "red",
@@ -5522,7 +5522,7 @@ const N = () => {
5522
5522
  height: r.height
5523
5523
  }
5524
5524
  ) : void 0,
5525
- s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
5525
+ s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ F("g", { clipPath: `url(#${t})`, children: c }))
5526
5526
  ]
5527
5527
  }
5528
5528
  )
@@ -5538,9 +5538,9 @@ const N = () => {
5538
5538
  return r.pattern.src;
5539
5539
  };
5540
5540
  if (!a())
5541
- return /* @__PURE__ */ x(zt, {});
5542
- 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(zt, { children: r.useThreshold && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5543
- /* @__PURE__ */ x(
5541
+ return /* @__PURE__ */ F(zt, {});
5542
+ 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(zt, { children: r.useThreshold && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5543
+ /* @__PURE__ */ F(
5544
5544
  "feColorMatrix",
5545
5545
  {
5546
5546
  type: "matrix",
@@ -5554,14 +5554,14 @@ const N = () => {
5554
5554
  }
5555
5555
  ),
5556
5556
  /* @__PURE__ */ ct("feComponentTransfer", { in: "greyscale", children: [
5557
- /* @__PURE__ */ x("feFuncR", { type: "discrete", tableValues: n() }),
5558
- /* @__PURE__ */ x("feFuncG", { type: "discrete", tableValues: n() }),
5559
- /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5557
+ /* @__PURE__ */ F("feFuncR", { type: "discrete", tableValues: n() }),
5558
+ /* @__PURE__ */ F("feFuncG", { type: "discrete", tableValues: n() }),
5559
+ /* @__PURE__ */ F("feFuncB", { type: "discrete", tableValues: n() })
5560
5560
  ] })
5561
5561
  ] }) }) }), s = r.rotation || 0, o = ft(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5562
- var w, v, S, E, B, I, P, F, k, Q;
5562
+ var w, v, S, E, B, I, P, x, k, Q;
5563
5563
  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 = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((B = r.pattern) == null ? void 0 : B.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((P = r.pattern) == null ? void 0 : P.rotation) || 0;
5564
- return [(F = r.pattern) != null && F.svg ? {
5564
+ return [(x = r.pattern) != null && x.svg ? {
5565
5565
  id: `${t}-contents`,
5566
5566
  type: T.Illustration,
5567
5567
  x: A,
@@ -5585,13 +5585,13 @@ const N = () => {
5585
5585
  };
5586
5586
  return /* @__PURE__ */ ct(zt, { children: [
5587
5587
  i(),
5588
- /* @__PURE__ */ x(
5588
+ /* @__PURE__ */ F(
5589
5589
  "g",
5590
5590
  {
5591
5591
  opacity: r.opacity,
5592
5592
  mask: r.stepName ? void 0 : r.mask,
5593
5593
  filter: r.useThreshold ? `url(#${e})` : void 0,
5594
- children: /* @__PURE__ */ x(
5594
+ children: /* @__PURE__ */ F(
5595
5595
  "g",
5596
5596
  {
5597
5597
  transform: `
@@ -5601,8 +5601,8 @@ const N = () => {
5601
5601
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5602
5602
  matrix(${r.scaleX}, 0, 0, ${r.scaleY}, 0, 0)
5603
5603
  `,
5604
- children: /* @__PURE__ */ x(
5605
- xn,
5604
+ children: /* @__PURE__ */ F(
5605
+ Fn,
5606
5606
  {
5607
5607
  id: t,
5608
5608
  x: 0,
@@ -5730,8 +5730,8 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5730
5730
  parseInt(u.getAttribute("font-size") ?? "72")
5731
5731
  );
5732
5732
  B.fill = f, B.stroke = p, B.strokeWidth = parseFloat(C ?? "0");
5733
- const I = B.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5734
- h.appendChild(F);
5733
+ const I = B.toSVG(2), x = t.parseFromString(I, "image/svg+xml").firstElementChild;
5734
+ h.appendChild(x);
5735
5735
  }
5736
5736
  return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5737
5737
  }, we = (r, t, e, a) => Math.max(ji(r.join(`
@@ -5878,7 +5878,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5878
5878
  };
5879
5879
  return /* @__PURE__ */ ct(zt, { children: [
5880
5880
  /* @__PURE__ */ ct("defs", { children: [
5881
- r.textFillImage && /* @__PURE__ */ x(
5881
+ r.textFillImage && /* @__PURE__ */ F(
5882
5882
  "pattern",
5883
5883
  {
5884
5884
  id: s,
@@ -5887,7 +5887,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5887
5887
  height: r.textFillImage.scale * r.textFillImage.height,
5888
5888
  x: 0,
5889
5889
  y: 0,
5890
- children: /* @__PURE__ */ x(
5890
+ children: /* @__PURE__ */ F(
5891
5891
  "image",
5892
5892
  {
5893
5893
  href: r.textFillImage.src,
@@ -5898,7 +5898,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5898
5898
  )
5899
5899
  }
5900
5900
  ),
5901
- /* @__PURE__ */ x(
5901
+ /* @__PURE__ */ F(
5902
5902
  "style",
5903
5903
  {
5904
5904
  type: "text/css",
@@ -5912,10 +5912,10 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5912
5912
  }
5913
5913
  }
5914
5914
  ),
5915
- r.curved && r.paths ? /* @__PURE__ */ x("path", { id: i, d: r.paths[0] }) : void 0
5915
+ r.curved && r.paths ? /* @__PURE__ */ F("path", { id: i, d: r.paths[0] }) : void 0
5916
5916
  ] }),
5917
- (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,
5918
- /* @__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(
5917
+ (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,
5918
+ /* @__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(
5919
5919
  "text",
5920
5920
  {
5921
5921
  xmlSpace: "preserve",
@@ -5930,7 +5930,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5930
5930
  },
5931
5931
  stroke: d,
5932
5932
  strokeWidth: A,
5933
- children: r.curved ? /* @__PURE__ */ x(Ki, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ x(
5933
+ children: r.curved ? /* @__PURE__ */ F(Ki, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ F(
5934
5934
  Ji,
5935
5935
  {
5936
5936
  align: r.vertical ? "center" : r.align,
@@ -5961,10 +5961,10 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5961
5961
  const s = (r.amountLines - 1) / 2;
5962
5962
  return (r.thisLineIdx - s) * n + r.fontSize / 4;
5963
5963
  };
5964
- return /* @__PURE__ */ x("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5964
+ return /* @__PURE__ */ F("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5965
5965
  }, Ki = (r) => {
5966
5966
  const t = `#${r.curvedPathId}`;
5967
- return /* @__PURE__ */ x(
5967
+ return /* @__PURE__ */ F(
5968
5968
  "textPath",
5969
5969
  {
5970
5970
  startOffset: (() => r.align === "left" ? "0%" : r.align === "right" ? "100%" : "50%")(),
@@ -5977,8 +5977,8 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5977
5977
  }, _i = (r) => {
5978
5978
  var s, o;
5979
5979
  if (r.cachedObjectURL && !((s = r._renderingConfiguration) != null && s.omitCachedFields))
5980
- return /* @__PURE__ */ x(
5981
- Fn,
5980
+ return /* @__PURE__ */ F(
5981
+ xn,
5982
5982
  {
5983
5983
  id: r.id,
5984
5984
  src: r.cachedObjectURL,
@@ -6002,7 +6002,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
6002
6002
  throw new Error(
6003
6003
  `Illustration element ${r.id} (stepName ${r.stepName}) lacked svg from src ${r.src} at render time.`
6004
6004
  );
6005
- return /* @__PURE__ */ x("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ x(
6005
+ return /* @__PURE__ */ F("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ F(
6006
6006
  "g",
6007
6007
  {
6008
6008
  transform: i,
@@ -6110,9 +6110,9 @@ class Xi {
6110
6110
  return { ...t, transaction: e.apply(a) };
6111
6111
  }
6112
6112
  }
6113
- const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ x(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x($i, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(_i, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(Yi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(xn, { ...r }, r.id) : null, wa = (r, t, e) => {
6113
+ const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ F(xn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ F($i, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ F(_i, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ F(Yi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : null, wa = (r, t, e) => {
6114
6114
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6115
- return /* @__PURE__ */ x(
6115
+ return /* @__PURE__ */ F(
6116
6116
  Oi,
6117
6117
  {
6118
6118
  preserveAspectRatio: void 0,
@@ -6254,7 +6254,7 @@ const te = (r) => {
6254
6254
  };
6255
6255
  return At.set(r, s), s;
6256
6256
  } else {
6257
- const a = await De(r, !0), n = await Fe(a), i = {
6257
+ const a = await De(r, !0), n = await xe(a), i = {
6258
6258
  src: r,
6259
6259
  width: n.width,
6260
6260
  height: n.height,
@@ -6340,7 +6340,7 @@ const te = (r) => {
6340
6340
  o.height = o.width / p, o.top += (h - o.height) / 2;
6341
6341
  }
6342
6342
  if (e && t === T.Image) {
6343
- const l = o.height, c = await De(e), d = await Fe(c), A = d.width / d.height;
6343
+ const l = o.height, c = await De(e), d = await xe(c), A = d.width / d.height;
6344
6344
  o.height = o.width / A, o.top += (l - o.height) / 2;
6345
6345
  }
6346
6346
  if (e && t === T.Textbox && (a != null && a.text) && (a != null && a.fontScale)) {
@@ -6596,7 +6596,7 @@ class La extends O {
6596
6596
  };
6597
6597
  }
6598
6598
  }
6599
- class Fc extends O {
6599
+ class xc extends O {
6600
6600
  constructor(t, e, a) {
6601
6601
  super(), this.id = t, this.x = e, this.y = a;
6602
6602
  }
@@ -6619,7 +6619,7 @@ class Fc extends O {
6619
6619
  };
6620
6620
  }
6621
6621
  }
6622
- class xc extends O {
6622
+ class Fc extends O {
6623
6623
  constructor(t, e) {
6624
6624
  super(), this.id = t, this.angle = e;
6625
6625
  }
@@ -7614,7 +7614,7 @@ class Se {
7614
7614
  };
7615
7615
  At.set(t, A), e.setPatternData(A, a);
7616
7616
  } else {
7617
- const s = await De(t, !0), o = await Fe(s), l = {
7617
+ const s = await De(t, !0), o = await xe(s), l = {
7618
7618
  src: t,
7619
7619
  width: o.width,
7620
7620
  height: o.height,
@@ -8017,7 +8017,7 @@ class cs {
8017
8017
  const S = {};
8018
8018
  (((v = o.assetConfiguration) == null ? void 0 : v.channelNumbers) || []).forEach((B) => {
8019
8019
  var P;
8020
- const I = C.find((F) => F.channelNumber === B.number);
8020
+ const I = C.find((x) => x.channelNumber === B.number);
8021
8021
  I && (S[`${B.id.replace(/\W/g, "")}`] = { browserValue: ((P = I == null ? void 0 : I.variant) == null ? void 0 : P.color) || "" });
8022
8022
  }), await this.changeColors(
8023
8023
  t,
@@ -8033,7 +8033,7 @@ class cs {
8033
8033
  const I = S[0], P = E[0];
8034
8034
  await this.changeColors(
8035
8035
  t,
8036
- u.map((F) => F.regionElement),
8036
+ u.map((x) => x.regionElement),
8037
8037
  i,
8038
8038
  () => i.getCommandContext().getAllLayouts(),
8039
8039
  /* @__PURE__ */ new Map([[P, I.variant.color]])
@@ -9213,10 +9213,10 @@ class ws {
9213
9213
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9214
9214
  );
9215
9215
  E.set(v.id, I), B.set(v.id, P);
9216
- const F = a.curved || a.vertical ? l : (P || []).join(`
9216
+ const x = a.curved || a.vertical ? l : (P || []).join(`
9217
9217
  `);
9218
9218
  S.push(
9219
- this.generateTextChangeCommandsForRegion(I, a, v.id, F)
9219
+ this.generateTextChangeCommandsForRegion(I, a, v.id, x)
9220
9220
  );
9221
9221
  const k = new G(v, h);
9222
9222
  return {
@@ -9520,7 +9520,7 @@ const ee = y`
9520
9520
  }
9521
9521
  }
9522
9522
  }
9523
- `, Fs = y`
9523
+ `, xs = y`
9524
9524
  ${ee}
9525
9525
  mutation CreateGlobalPropertyState($bundleId: String!) {
9526
9526
  globalPropertyStateCreate(bundleId: $bundleId) {
@@ -9530,7 +9530,7 @@ const ee = y`
9530
9530
  }
9531
9531
  }
9532
9532
  }
9533
- `, xs = y`
9533
+ `, Fs = y`
9534
9534
  ${ee}
9535
9535
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9536
9536
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
@@ -9553,7 +9553,7 @@ y`
9553
9553
  }
9554
9554
  `;
9555
9555
  const ks = y`
9556
- ${xe}
9556
+ ${Fe}
9557
9557
  fragment ProductFields on Product {
9558
9558
  id
9559
9559
  basePrice
@@ -10560,7 +10560,7 @@ class so {
10560
10560
  const t = this.getCommandContext().getState();
10561
10561
  if (!t)
10562
10562
  throw new z("Attempted to serialize state before it was initialized.");
10563
- const e = Ft(t.transaction), a = this.dehydrateState(e);
10563
+ const e = xt(t.transaction), a = this.dehydrateState(e);
10564
10564
  return JSON.stringify(a);
10565
10565
  }
10566
10566
  /**
@@ -11575,7 +11575,7 @@ class oe {
11575
11575
  case D.Model:
11576
11576
  return new co(t, e, t.getStepTags(e.stepName));
11577
11577
  case D.Frame:
11578
- return new Fl(t, e, t.getStepTags(e.stepName));
11578
+ return new xl(t, e, t.getStepTags(e.stepName));
11579
11579
  case D.Module:
11580
11580
  return new po(t, e, t.getStepTags(e.stepName));
11581
11581
  default:
@@ -11790,13 +11790,13 @@ const yo = async (r) => {
11790
11790
  if (c !== void 0)
11791
11791
  return c;
11792
11792
  await r.outstandingRequestsPromise();
11793
- const F = (M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), Q = await b.getShadowGraphqlClient().query({
11793
+ const x = (M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), Q = await b.getShadowGraphqlClient().query({
11794
11794
  query: bn,
11795
11795
  variables: { ids: [n.id] },
11796
11796
  fetchPolicy: "no-cache",
11797
11797
  errorPolicy: "all",
11798
11798
  context: {
11799
- transactionOwnerId: F
11799
+ transactionOwnerId: x
11800
11800
  }
11801
11801
  }), it = (R = Q.data) == null ? void 0 : R.transactions[0].workflowState;
11802
11802
  return Q.errors ? (Q.errors.forEach((Z) => {
@@ -11804,7 +11804,7 @@ const yo = async (r) => {
11804
11804
  }), null) : it ?? null;
11805
11805
  })() || (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"));
11806
11806
  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) => {
11807
- const F = {};
11807
+ const x = {};
11808
11808
  let k = 0;
11809
11809
  if (Object.keys(i).length > 0)
11810
11810
  for (const Q of Object.keys(i)) {
@@ -11813,11 +11813,11 @@ const yo = async (r) => {
11813
11813
  const W = it.selections[Z];
11814
11814
  if (R && (!P || R.option && (R.option.variants || []).length > 1 && !R.data.hideSelectionInCart && !R.data.hideSelectionsInCart)) {
11815
11815
  const pt = R.stepTitle;
11816
- F[pt] ? F[pt].push({
11816
+ x[pt] ? x[pt].push({
11817
11817
  id: W.id || "",
11818
11818
  name: W.name,
11819
11819
  priceModifier: W.priceModifier
11820
- }) : F[pt] = [
11820
+ }) : x[pt] = [
11821
11821
  {
11822
11822
  id: W.id || "",
11823
11823
  name: W.name,
@@ -11828,13 +11828,13 @@ const yo = async (r) => {
11828
11828
  k += W.priceModifier;
11829
11829
  }
11830
11830
  }
11831
- return [F, k];
11831
+ return [x, k];
11832
11832
  }, [C] = await p(!0), w = Object.fromEntries(
11833
- Object.keys(C).map((P) => [P, C[P].map((F) => F.id)])
11833
+ Object.keys(C).map((P) => [P, C[P].map((x) => x.id)])
11834
11834
  ), [v] = await p(!1), S = Object.fromEntries(
11835
11835
  Object.keys(v).map((P) => [
11836
11836
  P,
11837
- v[P].map((F) => F.id)
11837
+ v[P].map((x) => x.id)
11838
11838
  ])
11839
11839
  );
11840
11840
  let E = await o(m, n.id);
@@ -11851,9 +11851,9 @@ const yo = async (r) => {
11851
11851
  designDetails: (() => {
11852
11852
  const P = {
11853
11853
  name: s,
11854
- layouts: e.map((F) => ({
11855
- index: F.index,
11856
- panelId: F.panelId
11854
+ layouts: e.map((x) => ({
11855
+ index: x.index,
11856
+ panelId: x.panelId
11857
11857
  })),
11858
11858
  workflowId: t.id,
11859
11859
  transactionId: n.id,
@@ -11861,16 +11861,16 @@ const yo = async (r) => {
11861
11861
  previewImage: E
11862
11862
  };
11863
11863
  if (f) {
11864
- const F = [];
11864
+ const x = [];
11865
11865
  for (const [k, Q] of Object.entries(f))
11866
- F.push({ key: k, value: Q });
11867
- P.metadata = F;
11866
+ x.push({ key: k, value: Q });
11867
+ P.metadata = x;
11868
11868
  }
11869
11869
  if (w) {
11870
- const F = [];
11870
+ const x = [];
11871
11871
  for (const [k, Q] of Object.entries(S))
11872
- F.push({ key: k, ids: Q });
11873
- P.selectedVariants = F;
11872
+ x.push({ key: k, ids: Q });
11873
+ P.selectedVariants = x;
11874
11874
  }
11875
11875
  return P;
11876
11876
  })(),
@@ -12067,8 +12067,8 @@ const je = new bo(), Io = y`
12067
12067
  }
12068
12068
  }
12069
12069
  `;
12070
- var Fo = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.PriceBreakChanged = "PriceBreakChanged", r))(Fo || {});
12071
- class xo {
12070
+ var xo = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.PriceBreakChanged = "PriceBreakChanged", r))(xo || {});
12071
+ class Fo {
12072
12072
  constructor(t, e) {
12073
12073
  var n;
12074
12074
  if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = sn(async () => {
@@ -12391,7 +12391,7 @@ class xo {
12391
12391
  }
12392
12392
  async copy() {
12393
12393
  var s;
12394
- const t = Ft(this.getCommandContext().getState());
12394
+ const t = xt(this.getCommandContext().getState());
12395
12395
  if (!t)
12396
12396
  throw new z("Internal state is undefined! Cannot copy experience!");
12397
12397
  const e = JSON.stringify(t.transaction), a = this.getWorkflowManager().getWorkflow(), n = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
@@ -12615,13 +12615,13 @@ const ko = [
12615
12615
  ko.includes(B.tagName) && !B.attributes.getNamedItem("fill") && B.setAttribute("fill", "#000000");
12616
12616
  const I = B.attributes.getNamedItem("fill");
12617
12617
  if (I && I.value !== "none") {
12618
- const F = I.value, Q = `spiff-fill-${F.replace(/\W/g, "")}`;
12619
- B.classList.add(Q), g[Q] = { browserValue: F };
12618
+ const x = I.value, Q = `spiff-fill-${x.replace(/\W/g, "")}`;
12619
+ B.classList.add(Q), g[Q] = { browserValue: x };
12620
12620
  }
12621
12621
  const P = B.attributes.getNamedItem("stroke");
12622
12622
  if (P && P.value !== "none") {
12623
- const F = P.value, Q = `spiff-stroke-${F.replace(/\W/g, "")}`;
12624
- B.classList.add(Q), g[Q] = { browserValue: F };
12623
+ const x = P.value, Q = `spiff-stroke-${x.replace(/\W/g, "")}`;
12624
+ B.classList.add(Q), g[Q] = { browserValue: x };
12625
12625
  }
12626
12626
  });
12627
12627
  const p = Bt().serializeToString(m), C = n.colors;
@@ -12634,7 +12634,7 @@ const ko = [
12634
12634
  }
12635
12635
  }
12636
12636
  const w = (B) => {
12637
- const I = r.find((F) => F.panelId === B.panelId);
12637
+ const I = r.find((x) => x.panelId === B.panelId);
12638
12638
  if (!I)
12639
12639
  throw new q(B);
12640
12640
  const P = N();
@@ -13085,7 +13085,7 @@ class jo {
13085
13085
  * Actions to perform when a static render event is fired for this canvas.
13086
13086
  */
13087
13087
  async render(t) {
13088
- const e = Ft(t);
13088
+ const e = xt(t);
13089
13089
  this.lastRequestedRenderArguments = e;
13090
13090
  const a = this.getStaticContext();
13091
13091
  if (!a) {
@@ -13753,7 +13753,7 @@ class Xo {
13753
13753
  }
13754
13754
  async setGlobalPropertyState(t) {
13755
13755
  this.globalPropertyState || await this.initPromise;
13756
- const e = Ft(this.globalPropertyState);
13756
+ const e = xt(this.globalPropertyState);
13757
13757
  this.globalPropertyState = { ...t, id: e.id }, await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
13758
13758
  }
13759
13759
  getAspect(t, e) {
@@ -13777,7 +13777,7 @@ class Xo {
13777
13777
  const i = this.configuration.aspects.find((l) => l.name === t);
13778
13778
  if (!i)
13779
13779
  throw new Error(`Failed to find configuration aspect with name: ${t}`);
13780
- const s = Ft(this.globalPropertyState), o = this.globalPropertyState.aspects.filter((l) => l.name === t);
13780
+ const s = xt(this.globalPropertyState), o = this.globalPropertyState.aspects.filter((l) => l.name === t);
13781
13781
  if (o.length > 0)
13782
13782
  if (n) {
13783
13783
  const l = o.find((c) => c.channel === n);
@@ -13818,7 +13818,7 @@ class Xo {
13818
13818
  const n = this.configuration.aspects.find((o) => o.name === t);
13819
13819
  if (!n)
13820
13820
  throw new Error(`Failed to find configuration aspect with name: ${t}`);
13821
- const i = Ft(this.globalPropertyState), s = this.globalPropertyState.aspects.filter((o) => o.name === t);
13821
+ const i = xt(this.globalPropertyState), s = this.globalPropertyState.aspects.filter((o) => o.name === t);
13822
13822
  if (s.length > 0)
13823
13823
  if (a) {
13824
13824
  const o = s.find((l) => l.channel === a);
@@ -13842,7 +13842,7 @@ class Xo {
13842
13842
  if (!this.globalPropertyState)
13843
13843
  throw new Error("Global property state not initialized");
13844
13844
  const t = await b.getShadowGraphqlClient().mutate({
13845
- mutation: xs,
13845
+ mutation: Fs,
13846
13846
  variables: {
13847
13847
  id: this.globalPropertyState.id,
13848
13848
  aspects: this.globalPropertyState.aspects.map((n) => {
@@ -13886,7 +13886,7 @@ class Xo {
13886
13886
  async createGlobalPropertyState() {
13887
13887
  var e, a;
13888
13888
  const t = await b.getShadowGraphqlClient().mutate({
13889
- mutation: Fs,
13889
+ mutation: xs,
13890
13890
  variables: {
13891
13891
  bundleId: this.bundleId
13892
13892
  },
@@ -14133,6 +14133,7 @@ class Xn {
14133
14133
  query: Ns,
14134
14134
  errorPolicy: "all",
14135
14135
  fetchPolicy: "cache-first",
14136
+ returnPartialData: !0,
14136
14137
  variables: {
14137
14138
  id: this.getId(),
14138
14139
  filters: t ? {
@@ -14182,6 +14183,10 @@ class Xn {
14182
14183
  link: "And",
14183
14184
  metafields: a
14184
14185
  } : void 0,
14186
+ tags: n ? {
14187
+ include: n.include ?? [],
14188
+ exclude: n.exclude ?? []
14189
+ } : void 0,
14185
14190
  sortKey: i,
14186
14191
  sortDescending: s
14187
14192
  },
@@ -15578,7 +15583,7 @@ class Gc {
15578
15583
  } catch (a) {
15579
15584
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15580
15585
  }
15581
- }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.32.0-beta.da91d0ca-288a-5f12-952f-8c9487cbcbb1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15586
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.32.0-beta.d85ee52e-8aba-574e-973b-cb79d29568db"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15582
15587
  }
15583
15588
  configure(t) {
15584
15589
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Mr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15885,7 +15890,7 @@ class Gc {
15885
15890
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15886
15891
  */
15887
15892
  async getExistingBundle(t, e, a, n) {
15888
- var f, p, C, w, v, S, E, B, I, P, F;
15893
+ var f, p, C, w, v, S, E, B, I, P, x;
15889
15894
  const i = M.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([k, Q]) => k.startsWith("CognitoIdentityServiceProvider") && k.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
15890
15895
  c && !Be(c) && (d.Authorization = `Bearer ${c}`);
15891
15896
  const A = {
@@ -15908,7 +15913,7 @@ class Gc {
15908
15913
  m.set(h.id, h.partner.id), M.setMap("bundlePartnerIds", m);
15909
15914
  const g = new He(this, h, e, a, s, {
15910
15915
  additionalHeaders: (I = n == null ? void 0 : n.graphql) == null ? void 0 : I.additionalHeaders,
15911
- eagerFetchProducts: (F = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : F.eagerFetchProducts,
15916
+ eagerFetchProducts: (x = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : x.eagerFetchProducts,
15912
15917
  existingGlobalPropertyState: u.data.globalPropertyState,
15913
15918
  readonly: n == null ? void 0 : n.readonly
15914
15919
  });
@@ -16023,7 +16028,7 @@ class Gc {
16023
16028
  if (t.length === 0)
16024
16029
  throw new ut("No options provided!");
16025
16030
  const a = b.getShadowGraphqlClient(), n = async (S) => {
16026
- var P, F, k;
16031
+ var P, x, k;
16027
16032
  if (S.length === 0)
16028
16033
  return [];
16029
16034
  const E = S.map((Q) => Q.option.transactionId), B = await a.query({
@@ -16035,7 +16040,7 @@ class Gc {
16035
16040
  fetchPolicy: "no-cache"
16036
16041
  }), I = B.data.transactions;
16037
16042
  if (I.length !== S.length) {
16038
- const Q = ((F = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
16043
+ const Q = ((x = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
16039
16044
  throw new ut(`Not all transactions were found: ${Q}`);
16040
16045
  }
16041
16046
  return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((Q, it) => {
@@ -16048,7 +16053,7 @@ class Gc {
16048
16053
  };
16049
16054
  });
16050
16055
  }, i = async (S) => {
16051
- var I, P, F;
16056
+ var I, P, x;
16052
16057
  if (S.length === 0)
16053
16058
  return [];
16054
16059
  const E = await a.mutate({
@@ -16069,7 +16074,7 @@ class Gc {
16069
16074
  fetchPolicy: "no-cache"
16070
16075
  }), B = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16071
16076
  if (!B || B.length === 0) {
16072
- const k = ((F = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
16077
+ const k = ((x = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
16073
16078
  throw new ut(`Failed to create transactions: ${k}`);
16074
16079
  }
16075
16080
  return B.map((k, Q) => ({
@@ -16085,7 +16090,7 @@ class Gc {
16085
16090
  ...d.map(i)
16086
16091
  ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await tr(u, e), m = new Map(h.map((S) => [S.id, S])), g = M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
16087
16092
  var Z;
16088
- const { transaction: E, workflowId: B, readOnly: I, index: P } = S, F = m.get(B), k = t[P];
16093
+ const { transaction: E, workflowId: B, readOnly: I, index: P } = S, x = m.get(B), k = t[P];
16089
16094
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16090
16095
  const Q = g.get(E.id) || void 0, it = new yl({
16091
16096
  onMutate: () => ({ context: { transactionOwnerId: Q, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
@@ -16103,7 +16108,7 @@ class Gc {
16103
16108
  }),
16104
16109
  graphQlClient: () => it,
16105
16110
  readOnly: I,
16106
- workflow: F,
16111
+ workflow: x,
16107
16112
  isReloadedTransaction: k.type === "transaction"
16108
16113
  };
16109
16114
  if (k.type === "transaction" && E.workflowState) {
@@ -16123,7 +16128,7 @@ class Gc {
16123
16128
  }), p = await Promise.all(f);
16124
16129
  M.setMap("transactionOwnerIds", g);
16125
16130
  const w = p.sort((S, E) => S.index - E.index).map(async (S) => {
16126
- const { experienceOptions: E, options: B } = S, I = new xo(this, E);
16131
+ const { experienceOptions: E, options: B } = S, I = new Fo(this, E);
16127
16132
  return await I.getWorkflowManager().getInitializationPromise(), B.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16128
16133
  }), v = await Promise.all(w);
16129
16134
  return v.forEach((S) => S.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), v;
@@ -16198,7 +16203,7 @@ class Gc {
16198
16203
  }
16199
16204
  }
16200
16205
  const bl = async (r, t) => (await b.getShadowGraphqlClient().query({
16201
- query: Fi,
16206
+ query: xi,
16202
16207
  errorPolicy: "all",
16203
16208
  fetchPolicy: "no-cache",
16204
16209
  context: {
@@ -16242,7 +16247,7 @@ const bl = async (r, t) => (await b.getShadowGraphqlClient().query({
16242
16247
  }, qc = async (r) => {
16243
16248
  var e, a, n;
16244
16249
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
16245
- query: xi,
16250
+ query: Fi,
16246
16251
  errorPolicy: "all",
16247
16252
  variables: {
16248
16253
  id: r
@@ -16648,7 +16653,7 @@ class Yc {
16648
16653
  }
16649
16654
  }
16650
16655
  var Pl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(Pl || {});
16651
- class Fl extends rt {
16656
+ class xl extends rt {
16652
16657
  constructor(t, e, a) {
16653
16658
  super(t, e, a);
16654
16659
  const n = e.data;
@@ -16821,7 +16826,7 @@ class Fl extends rt {
16821
16826
  return this.manager.getStepStorage(this.step.stepName);
16822
16827
  }
16823
16828
  }
16824
- const xl = y`
16829
+ const Fl = y`
16825
16830
  query GetLoggedInCustomer($email: String!) {
16826
16831
  customer(emailAddress: $email) {
16827
16832
  id
@@ -16969,7 +16974,7 @@ const xl = y`
16969
16974
  template: t
16970
16975
  }
16971
16976
  }), Zc = async (r) => (await b.getShadowGraphqlClient().query({
16972
- query: xl,
16977
+ query: Fl,
16973
16978
  errorPolicy: "all",
16974
16979
  variables: {
16975
16980
  email: r
@@ -17187,7 +17192,7 @@ export {
17187
17192
  Va as FontSourceCommand,
17188
17193
  Dl as FrameService,
17189
17194
  Pl as FrameStep,
17190
- Fl as FrameStepHandle,
17195
+ xl as FrameStepHandle,
17191
17196
  Ba as GlobalPropertyHandle,
17192
17197
  $ as GroupCommand,
17193
17198
  oo as IllustrationStepHandle,
@@ -17204,7 +17209,7 @@ export {
17204
17209
  Yc as MockWorkflowManager,
17205
17210
  co as ModelStepHandle,
17206
17211
  po as ModuleStepHandle,
17207
- Fc as MoveCommand,
17212
+ xc as MoveCommand,
17208
17213
  Zn as ObjectInput,
17209
17214
  ml as ObjectInputType,
17210
17215
  _n as OptionGlobalPropertyHandle,
@@ -17221,7 +17226,7 @@ export {
17221
17226
  Dn as QueueablePromise,
17222
17227
  kc as ResizeCommand,
17223
17228
  jt as ResourceNotFoundError,
17224
- xc as RotateCommand,
17229
+ Fc as RotateCommand,
17225
17230
  j as ScaleAxis,
17226
17231
  Rc as SendBackwardsCommand,
17227
17232
  ho as ShapeStepHandle,
@@ -17242,8 +17247,8 @@ export {
17242
17247
  wr as UnitOfMeasurement,
17243
17248
  Mc as UpdateImageSourceCommand,
17244
17249
  st as Variant,
17245
- Fo as WorkflowExperienceEventType,
17246
- xo as WorkflowExperienceImpl,
17250
+ xo as WorkflowExperienceEventType,
17251
+ Fo as WorkflowExperienceImpl,
17247
17252
  U as assetService,
17248
17253
  Wr as browserColorToHex,
17249
17254
  Ic as cmPerPixel,
@@ -17266,7 +17271,7 @@ export {
17266
17271
  Vo as generateCommands,
17267
17272
  lt as generateSVGWithUnknownColors,
17268
17273
  $c as generateStateFromDesignInputSteps,
17269
- Fe as getAttributesFromArrayBuffer,
17274
+ xe as getAttributesFromArrayBuffer,
17270
17275
  gc as getAxisAlignedBoundingBox,
17271
17276
  Il as getBoundedOffsets,
17272
17277
  Hc as getBundleThemeConfiguration,