@spiffcommerce/core 32.4.0-beta.b62ed93b-f241-5f20-b4ff-1ffbdfdab196 → 32.4.0-beta.d49482af-c4b5-57e7-b3e1-1af196d81c48

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,7 +7,7 @@ import { orientation as Cr } from "exifr/dist/mini.umd.cjs";
7
7
  import { parse as dn } from "css";
8
8
  import wr from "fuse.js";
9
9
  import { Pith as ma } from "pith";
10
- import ht from "lodash.clonedeep";
10
+ import Et from "lodash.clonedeep";
11
11
  import { toString as An } from "qrcode";
12
12
  import yr from "svg-path-bbox";
13
13
  import { parse as aa } from "opentype.js";
@@ -75,7 +75,7 @@ class Dt extends Me {
75
75
  super(`Parsing Error: ${t}`);
76
76
  }
77
77
  }
78
- class mt extends Me {
78
+ class ht extends Me {
79
79
  constructor(t) {
80
80
  super(`Client Error: ${t}`);
81
81
  }
@@ -161,7 +161,7 @@ class Qr {
161
161
  this.serverUrlCallbacks.push(t);
162
162
  }
163
163
  }
164
- const pt = new Qr();
164
+ const gt = new Qr();
165
165
  let ra, ia;
166
166
  function zc(n) {
167
167
  ra = n;
@@ -296,7 +296,7 @@ let wn;
296
296
  const Hr = (n) => {
297
297
  wn = n;
298
298
  }, jr = () => new Promise((n) => {
299
- const t = pt.getHubUrl(), e = (a) => {
299
+ const t = gt.getHubUrl(), e = (a) => {
300
300
  a.origin === t && (window.removeEventListener("message", e), n(a.data));
301
301
  };
302
302
  window.parent !== window && (window.addEventListener("message", e, !1), window.parent.postMessage("ready", t));
@@ -309,13 +309,13 @@ const Hr = (n) => {
309
309
  return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await jr(), ...n } : n;
310
310
  };
311
311
  async function Jr(n, t) {
312
- const e = pt.getServerUrl(), a = e.includes(".aumelbdev.spiffcommerce.com") ? "https://moonlight.aumelbdev.spiffcommerce.com" : e.includes(".us.spiffcommerce.com") ? "https://moonlight.us.spiffcommerce.com" : "https://moonlight.au.spiffcommerce.com";
312
+ const e = gt.getServerUrl(), a = e.includes(".aumelbdev.spiffcommerce.com") ? "https://moonlight.aumelbdev.spiffcommerce.com" : e.includes(".us.spiffcommerce.com") ? "https://moonlight.us.spiffcommerce.com" : "https://moonlight.au.spiffcommerce.com";
313
313
  let r = await rt(n, { ...t, redirect: "manual" });
314
314
  return r.type === "opaqueredirect" && (typeof n != "string" && "url" in n ? r = await rt({ ...n, url: `${a}/graphql` }, t) : r = await rt(`${a}/graphql`, t)), r;
315
315
  }
316
316
  class Kr {
317
317
  constructor() {
318
- this.shadowGraphqlClient = this.constructShadowGraphqlClient(), pt.addServerUrlCallback(() => {
318
+ this.shadowGraphqlClient = this.constructShadowGraphqlClient(), gt.addServerUrlCallback(() => {
319
319
  this.shadowGraphqlClient = this.constructShadowGraphqlClient();
320
320
  });
321
321
  }
@@ -327,7 +327,7 @@ class Kr {
327
327
  }
328
328
  constructShadowGraphqlClient() {
329
329
  const t = dr({
330
- uri: `${pt.getServerUrl()}/graphql`,
330
+ uri: `${gt.getServerUrl()}/graphql`,
331
331
  fetch: Jr
332
332
  }), e = mr(async (i, s) => {
333
333
  const { headers: o } = s, l = o || {}, c = await Yr();
@@ -366,7 +366,7 @@ class Kr {
366
366
  }
367
367
  const y = new Kr();
368
368
  let sa, oa;
369
- const ft = (n, t, e) => {
369
+ const pt = (n, t, e) => {
370
370
  if (sa !== void 0)
371
371
  return sa(n, t, e);
372
372
  try {
@@ -427,10 +427,10 @@ const _r = (n) => new Promise((t) => {
427
427
  }, ti = async (n) => {
428
428
  const t = await Vr(n), e = await te(t), [a, r] = Zr(e);
429
429
  if (!await Xr()) {
430
- const A = ft(a, r);
430
+ const A = pt(a, r);
431
431
  return A.getContext("2d")?.drawImage(e, 0, 0, a, r), A;
432
432
  }
433
- const s = await _r(n), [o, l] = s > 4 ? [r, a] : [a, r], c = ft(o, l), d = c.getContext("2d");
433
+ const s = await _r(n), [o, l] = s > 4 ? [r, a] : [a, r], c = pt(o, l), d = c.getContext("2d");
434
434
  switch (s) {
435
435
  case 2:
436
436
  d.translate(o, 0), d.scale(-1, 1);
@@ -5216,7 +5216,7 @@ const j = new bi(), Pn = w`
5216
5216
  ],
5217
5217
  silentSteps: []
5218
5218
  }), t;
5219
- }, Ki = (n, t) => t.find((e) => e.stepNames.includes(n)), Et = (n, t) => (n.conditions || []).every((e) => {
5219
+ }, Ki = (n, t) => t.find((e) => e.stepNames.includes(n)), vt = (n, t) => (n.conditions || []).every((e) => {
5220
5220
  const a = t[e.targetStepName];
5221
5221
  if (a && a.selectedVariants) {
5222
5222
  const r = a.selectedVariants;
@@ -5229,12 +5229,12 @@ const j = new bi(), Pn = w`
5229
5229
  const e = {
5230
5230
  name: n.name,
5231
5231
  title: n.title,
5232
- renderableSteps: n.renderableSteps.filter((a) => Et(a, t)),
5233
- silentSteps: n.silentSteps.filter((a) => Et(a, t))
5232
+ renderableSteps: n.renderableSteps.filter((a) => vt(a, t)),
5233
+ silentSteps: n.silentSteps.filter((a) => vt(a, t))
5234
5234
  };
5235
5235
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5236
- }, St = (n, t) => n.map((e) => _i(e, t)).filter((e) => e !== null), Xi = async (n, t, e = !1) => {
5237
- const a = St(n, t), r = [];
5236
+ }, yt = (n, t) => n.map((e) => _i(e, t)).filter((e) => e !== null), Xi = async (n, t, e = !1) => {
5237
+ const a = yt(n, t), r = [];
5238
5238
  for (const s of a)
5239
5239
  for (const o of s.renderableSteps) {
5240
5240
  const l = (o.option?.variants || []).length;
@@ -5428,7 +5428,7 @@ const M = () => {
5428
5428
  }
5429
5429
  );
5430
5430
  }, Yc = (n, t, e, a, r) => {
5431
- const i = Ct(r), s = e / 2, o = a / 2, l = n + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, p = o, g = u * A - m * d, f = h * A - p * d, S = u * d + m * A, B = h * d + p * A, I = Math.max(Math.abs(g), Math.abs(f)), C = Math.max(Math.abs(S), Math.abs(B));
5431
+ const i = ft(r), s = e / 2, o = a / 2, l = n + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, p = o, g = u * A - m * d, f = h * A - p * d, S = u * d + m * A, B = h * d + p * A, I = Math.max(Math.abs(g), Math.abs(f)), C = Math.max(Math.abs(S), Math.abs(B));
5432
5432
  return {
5433
5433
  minX: l - I,
5434
5434
  maxX: l + I,
@@ -5438,8 +5438,8 @@ const M = () => {
5438
5438
  }, Jc = (n, t, e) => {
5439
5439
  const a = Math.sqrt(Math.pow(t.x - n.x, 2) + Math.pow(t.y - n.y, 2)), r = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2));
5440
5440
  return Math.acos((r * r + a * a - i * i) / (2 * r * a)) * (180 / Math.PI);
5441
- }, Ct = (n) => n * (Math.PI / 180), Kc = (n, t, e) => Math.abs(n - t) < e, _c = (n, t, e) => {
5442
- const a = Math.sin(Ct(e)), r = Math.cos(Ct(e));
5441
+ }, ft = (n) => n * (Math.PI / 180), Kc = (n, t, e) => Math.abs(n - t) < e, _c = (n, t, e) => {
5442
+ const a = Math.sin(ft(e)), r = Math.cos(ft(e));
5443
5443
  return {
5444
5444
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5445
5445
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
@@ -5476,7 +5476,7 @@ const M = () => {
5476
5476
  return H.Northwest;
5477
5477
  }
5478
5478
  }, ad = (n, t) => t > 45 && t <= 135 ? Pt(n) : t > 135 && t <= 225 ? Pt(Pt(n)) : t > 225 && t <= 315 ? Pt(Pt(Pt(n))) : n, nd = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5479
- const a = Ct(n.rotation), r = {
5479
+ const a = ft(n.rotation), r = {
5480
5480
  x: t.x + n.x * e.x,
5481
5481
  y: t.x + n.y * e.y
5482
5482
  }, i = {
@@ -5506,7 +5506,7 @@ const M = () => {
5506
5506
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5507
5507
  };
5508
5508
  }, rd = 0.352778, id = 0.035277, Nn = (n) => {
5509
- const t = n.rotation || 0, e = Ct(t), a = Math.cos(e), r = -Math.sin(e);
5509
+ const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
5510
5510
  return /* @__PURE__ */ D("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ D(
5511
5511
  "g",
5512
5512
  {
@@ -5528,7 +5528,7 @@ const M = () => {
5528
5528
  }
5529
5529
  ) });
5530
5530
  }, Qn = (n) => {
5531
- const t = `spiff-group-clip-${n.id}`, e = n.rotation || 0, a = Ct(e), r = Math.cos(a), i = -Math.sin(a), s = ba(n.children);
5531
+ const t = `spiff-group-clip-${n.id}`, e = n.rotation || 0, a = ft(e), r = Math.cos(a), i = -Math.sin(a), s = ba(n.children);
5532
5532
  return /* @__PURE__ */ ct(Gt, { children: [
5533
5533
  /* @__PURE__ */ D("defs", { children: /* @__PURE__ */ D("clipPath", { id: t, preserveAspectRatio: "none", children: n.clipPath ? /* @__PURE__ */ D("path", { d: n.clipPath }) : /* @__PURE__ */ D("rect", { x: 0, y: 0, width: n.width, height: n.height }) }) }),
5534
5534
  /* @__PURE__ */ ct(
@@ -5589,7 +5589,7 @@ const M = () => {
5589
5589
  /* @__PURE__ */ D("feFuncG", { type: "discrete", tableValues: r() }),
5590
5590
  /* @__PURE__ */ D("feFuncB", { type: "discrete", tableValues: r() })
5591
5591
  ] })
5592
- ] }) }) }), s = n.rotation || 0, o = Ct(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5592
+ ] }) }) }), s = n.rotation || 0, o = ft(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5593
5593
  const A = n.pattern?.x || 0, u = n.pattern?.y || 0, h = n.pattern?.width || 0, m = n.pattern?.height || 0, p = n.pattern?.scaleX || 1, g = n.pattern?.scaleY || 1, f = n.pattern?.rotation || 0;
5594
5594
  return [n.pattern?.svg ? {
5595
5595
  id: `${t}-contents`,
@@ -5704,7 +5704,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5704
5704
  return We.get(n);
5705
5705
  const e = (async () => {
5706
5706
  try {
5707
- return wt(n).getFont();
5707
+ return Ct(n).getFont();
5708
5708
  } catch {
5709
5709
  if (as(n)) {
5710
5710
  const a = Cn(n), r = aa(a);
@@ -5719,7 +5719,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5719
5719
  }, ns = (n) => {
5720
5720
  const t = Cn(n), e = aa(t);
5721
5721
  return la(n, e), e;
5722
- }, wt = (n) => {
5722
+ }, Ct = (n) => {
5723
5723
  const t = Rn.get(n);
5724
5724
  if (t)
5725
5725
  return t;
@@ -5783,7 +5783,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5783
5783
  };
5784
5784
  }
5785
5785
  }, pe = (n, t, e, a) => {
5786
- const r = gt(n, e, a);
5786
+ const r = mt(n, e, a);
5787
5787
  if (r <= t)
5788
5788
  return { lines: [n], width: r };
5789
5789
  if (!(n.indexOf(" ") > -1)) {
@@ -5796,15 +5796,15 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5796
5796
  let l = -1 / 0, c = 0;
5797
5797
  for (; c < s.length; ) {
5798
5798
  const d = s[c];
5799
- if (gt(d, e, a) > t) {
5799
+ if (mt(d, e, a) > t) {
5800
5800
  const A = pe(d, t, e, a);
5801
5801
  o.push(...A.lines), l = Math.max(l, A.width), c++;
5802
5802
  } else {
5803
5803
  const A = [d];
5804
- l = Math.max(l, gt(d, e, a));
5804
+ l = Math.max(l, mt(d, e, a));
5805
5805
  let u = c + 1, h = !0;
5806
5806
  for (; u < s.length && h; ) {
5807
- const m = s[u], p = gt(`${A.join(" ")} ${m}`, e, a);
5807
+ const m = s[u], p = mt(`${A.join(" ")} ${m}`, e, a);
5808
5808
  p <= t ? (A.push(m), l = Math.max(l, p), u++) : h = !1;
5809
5809
  }
5810
5810
  o.push(A.join(" ")), c = u;
@@ -5817,7 +5817,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5817
5817
  const s = (i ?? Un) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = On(n, o, t), c = n.length * s * o, d = a / l, A = r / c;
5818
5818
  return Math.min(A, d);
5819
5819
  }, is = (n, t, e, a) => {
5820
- const r = wt(t.fontData.assetUrl), i = r.getFont(), s = t.fontSize / i.unitsPerEm;
5820
+ const r = Ct(t.fontData.assetUrl), i = r.getFont(), s = t.fontSize / i.unitsPerEm;
5821
5821
  if (!e)
5822
5822
  return za(t, n, t.fontSize, s, r, a);
5823
5823
  let o;
@@ -5838,11 +5838,11 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5838
5838
  fontSize: rs(o, r, i, t.width, t.height, a)
5839
5839
  } : za(t, n, t.fontSize, s, r, a);
5840
5840
  }, ss = (n, t, e, a, r) => {
5841
- const s = wt(t.assetUrl).getFont();
5841
+ const s = Ct(t.assetUrl).getFont();
5842
5842
  let o = { ...n };
5843
- const l = { ...n }, c = On(a, e / s.unitsPerEm, wt(t.assetUrl));
5843
+ const l = { ...n }, c = On(a, e / s.unitsPerEm, Ct(t.assetUrl));
5844
5844
  return c && c < o.width && (l.width = c, r === "left" ? (l.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), l.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : r === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && ls(a, a).every(([d, A]) => d === A) && (o = l)), o;
5845
- }, qe = 1, gt = (n, t, e) => {
5845
+ }, qe = 1, mt = (n, t, e) => {
5846
5846
  let a = 0;
5847
5847
  const r = e.getGlyphs(n);
5848
5848
  return r.forEach((i, s) => {
@@ -5863,7 +5863,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5863
5863
  }, On = (n, t, e) => {
5864
5864
  let a = 0;
5865
5865
  return n.forEach((r) => {
5866
- a = Math.max(a, gt(r, t, e));
5866
+ a = Math.max(a, mt(r, t, e));
5867
5867
  }), a;
5868
5868
  }, Ga = {
5869
5869
  stripControlCharacters: !0,
@@ -5988,7 +5988,7 @@ const ds = (n) => {
5988
5988
  const t = () => {
5989
5989
  if (n.lineHeight !== void 0)
5990
5990
  return n.lineHeight * n.fontSize;
5991
- const r = wt(n.fontData.assetUrl), i = r.getFont(), s = n.fontSize / i.unitsPerEm;
5991
+ const r = Ct(n.fontData.assetUrl), i = r.getFont(), s = n.fontSize / i.unitsPerEm;
5992
5992
  return r.getApproximateHeight() * s;
5993
5993
  }, e = () => n.align === "left" ? -n.textboxWidth / 2 : n.align === "right" ? n.textboxWidth / 2 : 0, a = () => {
5994
5994
  const r = t(), i = n.textboxHeight / 2;
@@ -6031,7 +6031,7 @@ const ds = (n) => {
6031
6031
  mask: n.stepName ? void 0 : n.mask
6032
6032
  }
6033
6033
  );
6034
- const t = n.rotation || 0, e = Ct(t), a = Math.cos(e), r = -Math.sin(e), i = `
6034
+ const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e), i = `
6035
6035
  matrix(1, 0, 0, 1, ${n.x}, ${n.y})
6036
6036
  matrix(1, 0, 0, 1, ${n.width / 2}, ${n.height / 2})
6037
6037
  matrix(${a}, ${-r}, ${r}, ${a}, 0, 0)
@@ -6333,10 +6333,10 @@ const ne = (n) => {
6333
6333
  const s = dt().parseFromString(n, "image/svg+xml").firstElementChild;
6334
6334
  if (!s)
6335
6335
  throw new Error("Failed to read SVG");
6336
- const l = It().serializeToString(s), c = ft(), d = c.getContext("2d"), A = await ma.from(d, l, {
6336
+ const l = It().serializeToString(s), c = pt(), d = c.getContext("2d"), A = await ma.from(d, l, {
6337
6337
  anonymousCrossOrigin: !0,
6338
6338
  ignoreDimensions: !1,
6339
- createCanvas: ft,
6339
+ createCanvas: pt,
6340
6340
  createImage: te,
6341
6341
  DOMParser: Ca(),
6342
6342
  fetch: rt
@@ -6375,7 +6375,7 @@ const ne = (n) => {
6375
6375
  }
6376
6376
  if (e && t === x.Textbox && a?.text && a?.fontScale) {
6377
6377
  await Nt(e);
6378
- const l = wt(e), c = gt(a.text, a?.fontScale, l);
6378
+ const l = Ct(e), c = mt(a.text, a?.fontScale, l);
6379
6379
  o.width = Math.min(c, r.width * 0.85), o.left = r.x + r.width / 2 - o.width / 2;
6380
6380
  }
6381
6381
  return o;
@@ -7311,7 +7311,7 @@ class Ya {
7311
7311
  }
7312
7312
  }
7313
7313
  const Es = async (n) => {
7314
- const t = `${pt.getServicesApiUrl()}/shortener`;
7314
+ const t = `${gt.getServicesApiUrl()}/shortener`;
7315
7315
  try {
7316
7316
  return (await (await rt(t, {
7317
7317
  method: "POST",
@@ -7803,7 +7803,7 @@ class Fe {
7803
7803
  ), this.validateColorCount(e, a);
7804
7804
  }
7805
7805
  }
7806
- const vt = new Fe();
7806
+ const St = new Fe();
7807
7807
  class Bs {
7808
7808
  async getIllustrationBody(t) {
7809
7809
  return new Promise((e) => {
@@ -8645,7 +8645,7 @@ const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8645
8645
  if (t.some((d) => d == null))
8646
8646
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8647
8647
  let i = t.map((d) => d.split(`
8648
- `)).flat(), s = i.length, o = i.map((d) => gt(d, a, r));
8648
+ `)).flat(), s = i.length, o = i.map((d) => mt(d, a, r));
8649
8649
  const l = r.getApproximateHeight() * a;
8650
8650
  let c = !0;
8651
8651
  for (; c; ) {
@@ -8658,7 +8658,7 @@ const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8658
8658
  let m = !1, p = h.length;
8659
8659
  for (; !m && p > -1; ) {
8660
8660
  p = h.lastIndexOf(" ", p - 1);
8661
- const g = [h.slice(0, p), h.slice(p + 1)], f = g.map((B) => gt(B, a, r));
8661
+ const g = [h.slice(0, p), h.slice(p + 1)], f = g.map((B) => mt(B, a, r));
8662
8662
  f[0] <= n.width && (i = [...i.slice(0, u), ...g, ...i.slice(u + 1)], o = [
8663
8663
  ...o.slice(0, u),
8664
8664
  ...f,
@@ -8670,7 +8670,7 @@ const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8670
8670
  return [null, null];
8671
8671
  }, Ce = (n, t, e, a, r) => {
8672
8672
  let i, s;
8673
- const o = wt(t.assetUrl), l = o.getFont();
8673
+ const o = Ct(t.assetUrl), l = o.getFont();
8674
8674
  if (r.size) {
8675
8675
  const u = n / l.unitsPerEm;
8676
8676
  return [i, s] = Ke(e, a, n, u, o), [r.size, i, s];
@@ -8705,7 +8705,7 @@ class Qs {
8705
8705
  /(\r\n|\r|(\u2665|\u00a9|\u00ae|[\u2000-\u2017]|[\u201E-\u3300]]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]))/gm,
8706
8706
  ""
8707
8707
  );
8708
- const r = [], i = e ? wt(e.assetUrl) : void 0;
8708
+ const r = [], i = e ? Ct(e.assetUrl) : void 0;
8709
8709
  if (i) {
8710
8710
  const s = a.split("").filter((l) => !Ns.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8711
8711
  for (let l = 0; l < o.length; l++)
@@ -10402,7 +10402,7 @@ class Bo {
10402
10402
  this.reloadedState && this.reloadedState.serializableWorkflow.steps.forEach((o) => {
10403
10403
  this.storage[o.stepName] = o.storage || {};
10404
10404
  }), await this.fetchConversionConfiguration(), this.allScenes = await Ji(t);
10405
- const r = St(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(r, !!this.reloadedState);
10405
+ const r = yt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(r, !!this.reloadedState);
10406
10406
  this.commandContext.apply(new R(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), this.isReloadedTransaction || this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
10407
10407
  }
10408
10408
  getWorkflowExperience() {
@@ -10575,7 +10575,7 @@ class Bo {
10575
10575
  this.mandatorySteps[t] !== e && (this.mandatorySteps = { ...this.mandatorySteps, [t]: e }, this.onMandatoryChange());
10576
10576
  }
10577
10577
  getMandatoryUnfulfilledSteps() {
10578
- return St(this.allScenes, this.stepSelections).flatMap((i) => i.renderableSteps).filter((i) => i.mandatory).filter((i) => !this.mandatorySteps[i.stepName]).map((i) => i.stepName);
10578
+ return yt(this.allScenes, this.stepSelections).flatMap((i) => i.renderableSteps).filter((i) => i.mandatory).filter((i) => !this.mandatorySteps[i.stepName]).map((i) => i.stepName);
10579
10579
  }
10580
10580
  setStepError(t, e, a) {
10581
10581
  let r = !1;
@@ -10610,7 +10610,7 @@ class Bo {
10610
10610
  },
10611
10611
  { refocusCamera: e }
10612
10612
  );
10613
- this.setModelContainer(a), St(this.allScenes, this.stepSelections).filter((s) => s).map((s) => s.renderableSteps).flat().filter((s) => s.type === v.Model || s.type === v.Material).forEach((s) => {
10613
+ this.setModelContainer(a), yt(this.allScenes, this.stepSelections).filter((s) => s).map((s) => s.renderableSteps).flat().filter((s) => s.type === v.Model || s.type === v.Material).forEach((s) => {
10614
10614
  if (!s.option?.id) {
10615
10615
  console.error(`Failed to read option id from step: ${s.stepName}`);
10616
10616
  return;
@@ -10717,7 +10717,7 @@ class Bo {
10717
10717
  const t = this.getCommandContext().getState();
10718
10718
  if (!t)
10719
10719
  throw new V("Attempted to serialize state before it was initialized.");
10720
- const e = ht(t.transaction), a = this.dehydrateState(e);
10720
+ const e = Et(t.transaction), a = this.dehydrateState(e);
10721
10721
  return JSON.stringify(a);
10722
10722
  }
10723
10723
  /**
@@ -10753,12 +10753,12 @@ class Bo {
10753
10753
  this.stepElements = e(this.stepElements, t);
10754
10754
  }
10755
10755
  getInvalidCanvasRegions() {
10756
- return this.workflow.steps.reduce((t, e) => (Et(e, this.stepSelections) || this.stepElements[e.stepName] && this.stepElements[e.stepName].forEach(
10756
+ return this.workflow.steps.reduce((t, e) => (vt(e, this.stepSelections) || this.stepElements[e.stepName] && this.stepElements[e.stepName].forEach(
10757
10757
  (a) => t.push(a)
10758
10758
  ), t), []);
10759
10759
  }
10760
10760
  getInvalidModelVariants() {
10761
- return this.workflow.steps.reduce((t, e) => (e.type === v.Model && !Et(e, this.stepSelections) && t.push(e.stepName), t), []);
10761
+ return this.workflow.steps.reduce((t, e) => (e.type === v.Model && !vt(e, this.stepSelections) && t.push(e.stepName), t), []);
10762
10762
  }
10763
10763
  async stepElementsForIntroducedSilentSteps(t, e) {
10764
10764
  const a = this.product;
@@ -10858,13 +10858,13 @@ class Bo {
10858
10858
  ...this.stepSelections,
10859
10859
  [t]: { selectedVariants: e }
10860
10860
  }, this.selectionCost = Object.values(this.stepSelections).reduce((C, E) => C + E.selectedVariants.map((P) => P.priceModifier || 0).reduce((P, b) => P + b, 0), 0), this.workflow.steps.forEach((C) => {
10861
- Et(C, this.stepSelections) || (this.stepInitialised[C.stepName] = !1, delete this.stepMetadata[C.stepName], delete this.stepSelections[C.stepName], delete this.storage[C.stepName]);
10861
+ vt(C, this.stepSelections) || (this.stepInitialised[C.stepName] = !1, delete this.stepMetadata[C.stepName], delete this.stepSelections[C.stepName], delete this.storage[C.stepName]);
10862
10862
  });
10863
- const s = this.allScenes, o = St(s, i), l = St(s, this.stepSelections), c = o.map((C) => C.silentSteps).flat(), A = l.map((C) => C.silentSteps).flat().filter(
10863
+ const s = this.allScenes, o = yt(s, i), l = yt(s, this.stepSelections), c = o.map((C) => C.silentSteps).flat(), A = l.map((C) => C.silentSteps).flat().filter(
10864
10864
  (C) => !c.some((E) => E.stepName === C.stepName)
10865
10865
  );
10866
10866
  c.forEach((C) => {
10867
- Et(C, this.stepSelections) || (this.stepInitialised[C.stepName] = !1);
10867
+ vt(C, this.stepSelections) || (this.stepInitialised[C.stepName] = !1);
10868
10868
  });
10869
10869
  const u = this.getInvalidCanvasRegions(), { stepElements: h, commands: m } = await this.stepElementsForIntroducedSilentSteps(A, !1);
10870
10870
  this.stepElements = {
@@ -10892,7 +10892,7 @@ class Bo {
10892
10892
  await this.onSelectionChange(), r && await r();
10893
10893
  }
10894
10894
  async ensureStepsAreLoaded() {
10895
- const e = St(this.allScenes, this.stepSelections).map((l) => l.renderableSteps), a = [], r = e.flat();
10895
+ const e = yt(this.allScenes, this.stepSelections).map((l) => l.renderableSteps), a = [], r = e.flat();
10896
10896
  for (const l of r)
10897
10897
  if (!this.stepInitialised[l.stepName])
10898
10898
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
@@ -10906,7 +10906,7 @@ class Bo {
10906
10906
  );
10907
10907
  break;
10908
10908
  case v.Frame:
10909
- a.push(vt.init(l, this, this.reloadedState));
10909
+ a.push(St.init(l, this, this.reloadedState));
10910
10910
  break;
10911
10911
  case v.Illustration:
10912
10912
  a.push(
@@ -11949,12 +11949,12 @@ const $o = async (n, t) => {
11949
11949
  for (let W = 0; W < tt.selections.length; ++W) {
11950
11950
  const q = tt.selections[W];
11951
11951
  if (et && (!b || et.option && (et.option.variants || []).length > 1 && !et.data.hideSelectionInCart && !et.data.hideSelectionsInCart)) {
11952
- const yt = et.stepTitle;
11953
- F[yt] ? F[yt].push({
11952
+ const wt = et.stepTitle;
11953
+ F[wt] ? F[wt].push({
11954
11954
  id: q.id || "",
11955
11955
  name: q.name,
11956
11956
  priceModifier: q.priceModifier
11957
- }) : F[yt] = [
11957
+ }) : F[wt] = [
11958
11958
  {
11959
11959
  id: q.id || "",
11960
11960
  name: q.name,
@@ -12315,7 +12315,7 @@ class Yo {
12315
12315
  }
12316
12316
  let i = 2048;
12317
12317
  e && e <= 2048 && (i = e);
12318
- const s = ft(i, i), o = this.commandContext.getAllLayouts(), l = a.defaultPreviewPanelIndex || 0, c = a.panels[l], d = o.find((B) => B.layoutState?.layout.panelId === c?.name) || o[0], A = d.layoutState.layout.previewRegion ? {
12318
+ const s = pt(i, i), o = this.commandContext.getAllLayouts(), l = a.defaultPreviewPanelIndex || 0, c = a.panels[l], d = o.find((B) => B.layoutState?.layout.panelId === c?.name) || o[0], A = d.layoutState.layout.previewRegion ? {
12319
12319
  x: d.layoutState.layout.previewRegion.left,
12320
12320
  y: d.layoutState.layout.previewRegion.top,
12321
12321
  width: d.layoutState.layout.previewRegion.width,
@@ -12338,7 +12338,7 @@ class Yo {
12338
12338
  await (await ma.from(h, g, {
12339
12339
  anonymousCrossOrigin: !0,
12340
12340
  ignoreDimensions: !1,
12341
- createCanvas: ft,
12341
+ createCanvas: pt,
12342
12342
  createImage: te,
12343
12343
  DOMParser: Ca(),
12344
12344
  fetch
@@ -12361,7 +12361,7 @@ class Yo {
12361
12361
  getStepsConditionallyActive() {
12362
12362
  return this.getScenes().flatMap(
12363
12363
  (t) => this.getStepsByScene(t).filter(
12364
- (e) => Et(e.getRaw(), this.getWorkflowManager().getStepSelections())
12364
+ (e) => vt(e.getRaw(), this.getWorkflowManager().getStepSelections())
12365
12365
  )
12366
12366
  );
12367
12367
  }
@@ -12512,7 +12512,7 @@ class Yo {
12512
12512
  return await Xe.addDesign(r), r;
12513
12513
  }
12514
12514
  async copy() {
12515
- const t = ht(this.getCommandContext().getState());
12515
+ const t = Et(this.getCommandContext().getState());
12516
12516
  if (!t) throw new V("Internal state is undefined! Cannot copy experience!");
12517
12517
  const e = JSON.stringify(t.transaction), a = this.getWorkflowManager().getWorkflow(), r = this.getWorkflowManager().getTransaction().integrationProduct?.id;
12518
12518
  if (!r) throw new V("Integration product id is undefined!");
@@ -13222,7 +13222,7 @@ class ll {
13222
13222
  }
13223
13223
  const cl = () => new Promise((n, t) => {
13224
13224
  try {
13225
- const a = ft().getContext("webgl2");
13225
+ const a = pt().getContext("webgl2");
13226
13226
  n(!!a);
13227
13227
  } catch {
13228
13228
  n(!1);
@@ -13276,7 +13276,7 @@ class Al {
13276
13276
  * Actions to perform when a static render event is fired for this canvas.
13277
13277
  */
13278
13278
  async render(t) {
13279
- const e = ht(t);
13279
+ const e = Et(t);
13280
13280
  this.lastRequestedRenderArguments = e;
13281
13281
  const a = this.getStaticContext();
13282
13282
  if (!a) {
@@ -13359,7 +13359,7 @@ class ul extends Mn {
13359
13359
  ignoreClear: !0,
13360
13360
  ignoreMouse: !0,
13361
13361
  enableRedraw: !1,
13362
- createCanvas: ft,
13362
+ createCanvas: pt,
13363
13363
  createImage: te,
13364
13364
  DOMParser: Ca(),
13365
13365
  fetch
@@ -13939,7 +13939,7 @@ class yl {
13939
13939
  if (!this.globalPropertyState)
13940
13940
  throw new Error("Global property state not initialized");
13941
13941
  const e = this.globalPropertyState.aspects;
13942
- ht(this.globalPropertyState), this.globalPropertyState.aspects = e.filter((a) => !t.includes(a.name));
13942
+ this.globalPropertyState.aspects = e.filter((a) => !t.includes(a.name)), console.log(`LOG: after the clear there are ${this.globalPropertyState.aspects.length} aspects`);
13943
13943
  }
13944
13944
  recalculateMandatoryStates() {
13945
13945
  this.mandatoryFulfilledAspects = rr(this.globalPropertyState);
@@ -13961,7 +13961,7 @@ class yl {
13961
13961
  }
13962
13962
  async setGlobalPropertyState(t) {
13963
13963
  this.globalPropertyState || await this.initPromise;
13964
- const e = ht(this.globalPropertyState);
13964
+ const e = Et(this.globalPropertyState);
13965
13965
  this.globalPropertyState = { ...Ae(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
13966
13966
  }
13967
13967
  getAspectMandatoryFulfilled(t) {
@@ -13988,7 +13988,7 @@ class yl {
13988
13988
  if (!i)
13989
13989
  throw new Error(`Failed to find configuration aspect with name: ${t}`);
13990
13990
  this.mandatoryFulfilledAspects.set(t, e !== "");
13991
- const s = ht(this.globalPropertyState), o = this.globalPropertyState.aspects.filter((l) => l.name === t);
13991
+ const s = Et(this.globalPropertyState), o = this.globalPropertyState.aspects.filter((l) => l.name === t);
13992
13992
  if (o.length > 0)
13993
13993
  if (r) {
13994
13994
  const l = o.find((c) => c.channel === r);
@@ -14031,7 +14031,7 @@ class yl {
14031
14031
  const r = this.configuration.aspects.find((o) => o.name === t);
14032
14032
  if (!r)
14033
14033
  throw new Error(`Failed to find configuration aspect with name: ${t}`);
14034
- const i = ht(this.globalPropertyState), s = this.globalPropertyState.aspects.filter((o) => o.name === t);
14034
+ const i = Et(this.globalPropertyState), s = this.globalPropertyState.aspects.filter((o) => o.name === t);
14035
14035
  if (s.length > 0)
14036
14036
  if (a) {
14037
14037
  const o = s.find((l) => l.channel === a);
@@ -14434,7 +14434,7 @@ class ir {
14434
14434
  if (h || p.partial && (!p.data.productCollections || p.data.productCollections.length === 0 || !p.data.productCollections[0].productCollectionProductsFeed?.items || p.data.productCollections[0].productCollectionProductsFeed?.items.length === 0))
14435
14435
  return;
14436
14436
  c.abort(), h = !0, m.unsubscribe();
14437
- const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new ue(ht(f))) || [];
14437
+ const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new ue(Et(f))) || [];
14438
14438
  u({
14439
14439
  items: g,
14440
14440
  // Clone items because it could be cached data (immutable)
@@ -14506,11 +14506,11 @@ class ue {
14506
14506
  getDefaultWorkflow() {
14507
14507
  const t = this.product.workflows;
14508
14508
  if (t === void 0)
14509
- throw new mt(
14509
+ throw new ht(
14510
14510
  "Called getDefaultWorkflow() before fetching collection products. Use collection.fetchProducts() first to ensure the data is available."
14511
14511
  );
14512
14512
  if (t.length === 0)
14513
- throw new mt(
14513
+ throw new ht(
14514
14514
  "Called getDefaultWorkflow() but no workflows on requested product. Ensure at least 1 workflow is assigned to this product."
14515
14515
  );
14516
14516
  const e = this.productResource.workflowId;
@@ -14522,7 +14522,7 @@ class ue {
14522
14522
  return console.warn(
14523
14523
  "Called getDefaultWorkflow() but no default was configured. There is only one workflow available so we will fall back to using this!"
14524
14524
  ), new qt(t[0]);
14525
- throw new mt(
14525
+ throw new ht(
14526
14526
  "Called getDefaultWorkflow() but no default workflow is configured for the requested product. Multiple workflows exist so we can't assume!"
14527
14527
  );
14528
14528
  }
@@ -14531,7 +14531,7 @@ class ue {
14531
14531
  */
14532
14532
  getAllWorkflows() {
14533
14533
  if ((this.product.workflows || []).length === 0)
14534
- throw new mt(
14534
+ throw new ht(
14535
14535
  "No workflows on configured product. Ensure at least 1 workflow is assigned to this product."
14536
14536
  );
14537
14537
  return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new qt(e));
@@ -14918,7 +14918,7 @@ class Ze {
14918
14918
  }
14919
14919
  }
14920
14920
  } finally {
14921
- this.updatesLocked = !1, this.onGlobalPropertiesChanged(void 0, this.globalPropertyStateManager.getGlobalPropertyState());
14921
+ this.updatesLocked = !1, console.log(`LOG: finally ${this.globalPropertyStateManager.getGlobalPropertyState()?.aspects?.length}`), this.onGlobalPropertiesChanged(void 0, this.globalPropertyStateManager.getGlobalPropertyState());
14922
14922
  }
14923
14923
  }
14924
14924
  getGlobalPropertyStateManager() {
@@ -15386,7 +15386,7 @@ class Ze {
15386
15386
  for (const c of a)
15387
15387
  i.find((d) => d.getName() == c.getName()) || (o = [...o, c.getName()]);
15388
15388
  await s.clearAspects(o);
15389
- const l = a.map((c) => {
15389
+ const l = i.map((c) => {
15390
15390
  if (c.getType() === U.ColorOption || c.getType() === U.Option) {
15391
15391
  const d = c;
15392
15392
  if (!e.aspects.find((u) => u.name === d.getName()))
@@ -16009,12 +16009,12 @@ class Ed {
16009
16009
  mutation: Pi
16010
16010
  });
16011
16011
  } catch (a) {
16012
- throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
16012
+ throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16013
16013
  }
16014
- }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.6d92b322-020c-59a4-a579-c88f99c2e235"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16014
+ }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.b62ed93b-f241-5f20-b4ff-1ffbdfdab196"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16015
16015
  }
16016
16016
  configure(t) {
16017
- pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16017
+ gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16018
16018
  }
16019
16019
  /**
16020
16020
  * @returns The asset manager allows for common operations related to assets
@@ -16469,7 +16469,7 @@ class Ed {
16469
16469
  */
16470
16470
  async getWorkflowExperiences(t, e) {
16471
16471
  if (t.length === 0)
16472
- throw new mt("No options provided!");
16472
+ throw new ht("No options provided!");
16473
16473
  const a = y.getShadowGraphqlClient(), r = async (C) => {
16474
16474
  if (C.length === 0)
16475
16475
  return [];
@@ -16483,7 +16483,7 @@ class Ed {
16483
16483
  }), b = P.data.transactions;
16484
16484
  if (b.length !== C.length) {
16485
16485
  const F = P.errors?.[0]?.message || "Unknown error";
16486
- throw new mt(`Not all transactions were found: ${F}`);
16486
+ throw new ht(`Not all transactions were found: ${F}`);
16487
16487
  }
16488
16488
  return !this.activeIntegration && b[0].integrationProduct?.integration && (this.activeIntegration = Promise.resolve(b[0].integrationProduct.integration)), b.map((F, Q) => ({
16489
16489
  transaction: F,
@@ -16515,7 +16515,7 @@ class Ed {
16515
16515
  }), P = E.data?.transactionCreateMany;
16516
16516
  if (!P || P.length === 0) {
16517
16517
  const b = E.errors?.[0]?.message || "Unknown error";
16518
- throw new mt(`Failed to create transactions: ${b}`);
16518
+ throw new ht(`Failed to create transactions: ${b}`);
16519
16519
  }
16520
16520
  return P.map((b, F) => ({
16521
16521
  transaction: b,
@@ -16552,10 +16552,10 @@ class Ed {
16552
16552
  };
16553
16553
  if (T.type === "transaction" && E.workflowState) {
16554
16554
  const q = JSON.parse(E.workflowState);
16555
- W.layouts = Object.values(q.layouts || {}).map((yt) => yt.layout), await qa(q), W.reloadedState = q;
16555
+ W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16556
16556
  } else if (!b && T.workflowState) {
16557
16557
  const q = JSON.parse(T.workflowState);
16558
- W.layouts = Object.values(q.layouts || {}).map((yt) => yt.layout), await qa(q), W.reloadedState = q;
16558
+ W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16559
16559
  } else
16560
16560
  W.layouts = jl(
16561
16561
  W.transaction,
@@ -17104,7 +17104,7 @@ class Xl extends Z {
17104
17104
  }
17105
17105
  selectVariant(t) {
17106
17106
  const e = this.manager.getRegionElements(this.step.stepName);
17107
- return vt.selectVariant(
17107
+ return St.selectVariant(
17108
17108
  this.step,
17109
17109
  t.getResource(),
17110
17110
  e,
@@ -17124,7 +17124,7 @@ class Xl extends Z {
17124
17124
  * @param [recalculateOffsets=true] Optional: Recalculates the offsets of the image inside the frame. Default: `true`.
17125
17125
  */
17126
17126
  async selectImage(t, e = !0, a = !0) {
17127
- if (await vt.selectImage(this.step, t, this.manager, a), e) {
17127
+ if (await St.selectImage(this.step, t, this.manager, a), e) {
17128
17128
  const r = this.manager.getStepStorage(this.step.stepName)?.framePatternData || {};
17129
17129
  this.manager.updateStorage(this.step.stepName, {
17130
17130
  framePatternData: {
@@ -17162,7 +17162,7 @@ class Xl extends Z {
17162
17162
  if (!e)
17163
17163
  throw new Error("You must supply an image selection before attempting to remove the background.");
17164
17164
  const a = await O.removeBackgroundFromAsset(e);
17165
- t && await vt.selectImage(this.step, a, this.manager, !1);
17165
+ t && await St.selectImage(this.step, a, this.manager, !1);
17166
17166
  const r = this.manager.getStepStorage(this.step.stepName)?.framePatternData || {};
17167
17167
  return this.manager.updateStorage(this.step.stepName, {
17168
17168
  framePatternData: {
@@ -17173,7 +17173,7 @@ class Xl extends Z {
17173
17173
  }), a;
17174
17174
  }
17175
17175
  changeColors(t) {
17176
- vt.changeColors(this.step, this.manager, t);
17176
+ St.changeColors(this.step, this.manager, t);
17177
17177
  }
17178
17178
  getImageData() {
17179
17179
  if (this.frameService)
@@ -17183,7 +17183,7 @@ class Xl extends Z {
17183
17183
  return this.step.data.colorOption;
17184
17184
  }
17185
17185
  getAvailableColors() {
17186
- return this.step.data.colorPickerEnabled ? vt.availableColors(this.step, this.manager) : Promise.resolve([]);
17186
+ return this.step.data.colorPickerEnabled ? St.availableColors(this.step, this.manager) : Promise.resolve([]);
17187
17187
  }
17188
17188
  isColorPickerEnabled() {
17189
17189
  return this.step.data.colorPickerEnabled ?? !1;
@@ -17196,7 +17196,7 @@ class Xl extends Z {
17196
17196
  return this.step.data.maxColors;
17197
17197
  }
17198
17198
  getUniqueColorCount() {
17199
- return vt.getUniqueColorCount(this.step, this.manager);
17199
+ return St.getUniqueColorCount(this.step, this.manager);
17200
17200
  }
17201
17201
  getCurrentFrameStep(t, e, a, r) {
17202
17202
  return r && r.length > 1 && t === void 0 ? "SelectFrame" : e || a || this.getImageData() ? "Position" : "SelectImage";
@@ -17820,7 +17820,7 @@ export {
17820
17820
  $ as findElement,
17821
17821
  jc as findPmsColors,
17822
17822
  Vt as frameDataCache,
17823
- vt as frameStepService,
17823
+ St as frameStepService,
17824
17824
  M as generate,
17825
17825
  ol as generateCommands,
17826
17826
  ot as generateSVGWithUnknownColors,
@@ -17885,7 +17885,7 @@ export {
17885
17885
  yn as setCanvasModule,
17886
17886
  zt as shapeStepService,
17887
17887
  Es as shortenUrl,
17888
- pt as spiffCoreConfiguration,
17888
+ gt as spiffCoreConfiguration,
17889
17889
  fd as stepAspectValuesToDesignInputSteps,
17890
17890
  La as svgColorValueToDefinition,
17891
17891
  Gn as svgStringDimensions,