@spiffcommerce/core 21.14.0-alpha.0 → 21.14.0-alpha.1

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createHttpLink as IA, InMemoryCache as fA, ApolloClient as DA, from as FA, gql as D } from "@apollo/client/core";
2
- import { fetch as et, getAttributesFromArrayBuffer as Rt, AssetType as ut, StepType as y, getFrameData as tt, frameDataCache as yA, GroupCommand as v, UpdateFramePattern as Ht, UpdateFrameThresholdSettingsCommand as MA, calculateOffsets as At, LayoutElementType as k, generate as J, CreateElementCommand as L, generateSVGWithUnknownColors as Ut, svgObjectURL as Pe, fetchAsString as _, DeleteElementCommand as ee, generateDefaultRectangleFrameSvg as Ct, GetSVGDimensions as SA, patternImageDataCache as Qt, fetchAsArrayBuffer as YA, findElement as xe, modifySVGWithElementProperties as PA, IllustrationColorCommand as We, IllustrationCacheCommand as xA, getFontMetrics as NA, getPatternImageData as Xe, FontAlignmentCommand as RA, FontColorCommand as HA, FontImageFillCommand as Oe, applyTextTransformations as qe, determineCorrectFontSizeAndLines as Me, FontSourceCommand as mt, loadFont as at, TextChangeCommand as UA, FontSizeCommand as vA, createElementNS as GA, createElement as Qe, _loadFontExternalDataURL as nt, UpdateWorkflowStateCommand as pt, CommandContext as kA, createCanvas as Ne, getSvgElement as vt, LayoutRenderingPurpose as Gt, renderPapyrusComponentAsString as kt, loadImage as bt, getDomParser as Jt, toBase64 as It, getVariant as bA, generateFrameSVG as JA, getDefaultVariant as be, domParser as Tt, sanitizeSvgTree as Lt, traverse as TA, xmlSerializer as Ot, CreateLayoutCommand as LA, AspectType as Be, rehydrateSerializedLayout as Ae } from "@spiffcommerce/papyrus";
3
- import { AspectType as es, AssetType as ts, BringForwardCommand as As, BringToBackCommand as as, BringToFrontCommand as ns, CanvasCommand as is, CommandContext as ss, CreateElementCommand as os, CreateLayoutCommand as rs, DeleteElementCommand as cs, FontAlignmentCommand as gs, FontColorCommand as ls, FontSizeCommand as Bs, FontSourceCommand as ds, GroupCommand as ws, LayoutElementFactory as hs, LayoutElementType as Es, MoveCommand as us, ResizeCommand as Cs, RotateCommand as Qs, SendBackwardsCommand as ms, StepAspectType as ps, StepType as Is, TextChangeCommand as fs, UnitOfMeasurement as Ds, UpdateImageSourceCommand as Fs, dataUrlFromExternalUrl as ys, determineCorrectFontSizeAndLines as Ms, findElement as Ss, frameDataCache as Ys, generate as Ps, generateSVGWithUnknownColors as xs, getAttributesFromArrayBuffer as Ns, getAxisAlignedBoundingBox as Rs, getFrameData as Hs, getSvgElement as Us, loadFont as vs, patternImageDataCache as Gs, registerFetchImplementation as ks, registerWindowImplementation as bs, rehydrateSerializedLayout as Js, setCanvasModule as Ts } from "@spiffcommerce/papyrus";
2
+ import { fetch as et, getAttributesFromArrayBuffer as Ht, AssetType as ut, StepType as y, getFrameData as tt, frameDataCache as yA, GroupCommand as v, UpdateFramePattern as Rt, UpdateFrameThresholdSettingsCommand as MA, calculateOffsets as At, LayoutElementType as k, generate as J, CreateElementCommand as T, generateSVGWithUnknownColors as Ut, svgObjectURL as Pe, fetchAsString as _, DeleteElementCommand as ee, generateDefaultRectangleFrameSvg as Ct, GetSVGDimensions as SA, patternImageDataCache as Qt, fetchAsArrayBuffer as YA, findElement as xe, modifySVGWithElementProperties as PA, IllustrationColorCommand as We, IllustrationCacheCommand as xA, getFontMetrics as NA, getPatternImageData as Xe, FontAlignmentCommand as HA, FontColorCommand as RA, FontImageFillCommand as Oe, applyTextTransformations as qe, determineCorrectFontSizeAndLines as Me, FontSourceCommand as mt, loadFont as at, TextChangeCommand as UA, FontSizeCommand as vA, createElementNS as GA, createElement as Qe, _loadFontExternalDataURL as nt, UpdateWorkflowStateCommand as pt, CommandContext as kA, createCanvas as Ne, getSvgElement as vt, LayoutRenderingPurpose as Gt, renderPapyrusComponentAsString as kt, loadImage as bt, getDomParser as Jt, toBase64 as It, getVariant as bA, generateFrameSVG as JA, getDefaultVariant as be, domParser as Lt, sanitizeSvgTree as Tt, traverse as LA, xmlSerializer as Ot, CreateLayoutCommand as TA, AspectType as Be, rehydrateSerializedLayout as Ae } from "@spiffcommerce/papyrus";
3
+ import { AspectType as es, AssetType as ts, BringForwardCommand as As, BringToBackCommand as as, BringToFrontCommand as ns, CanvasCommand as is, CommandContext as ss, CreateElementCommand as os, CreateLayoutCommand as rs, DeleteElementCommand as cs, FontAlignmentCommand as gs, FontColorCommand as ls, FontSizeCommand as Bs, FontSourceCommand as ds, GroupCommand as ws, LayoutElementFactory as hs, LayoutElementType as Es, MoveCommand as us, ResizeCommand as Cs, RotateCommand as Qs, SendBackwardsCommand as ms, StepAspectType as ps, StepType as Is, TextChangeCommand as fs, UnitOfMeasurement as Ds, UpdateImageSourceCommand as Fs, dataUrlFromExternalUrl as ys, determineCorrectFontSizeAndLines as Ms, findElement as Ss, frameDataCache as Ys, generate as Ps, generateSVGWithUnknownColors as xs, getAttributesFromArrayBuffer as Ns, getAxisAlignedBoundingBox as Hs, getFrameData as Rs, getSvgElement as Us, loadFont as vs, patternImageDataCache as Gs, registerFetchImplementation as ks, registerWindowImplementation as bs, rehydrateSerializedLayout as Js, setCanvasModule as Ls } from "@spiffcommerce/papyrus";
4
4
  import { setContext as OA } from "@apollo/client/link/context";
5
5
  import { onError as zA } from "@apollo/client/link/error";
6
6
  import { Pith as zt } from "pith";
@@ -21,7 +21,7 @@ class ue extends Wt {
21
21
  super(`ConfigurationError - ${e}`);
22
22
  }
23
23
  }
24
- class Re extends ue {
24
+ class He extends ue {
25
25
  constructor(e) {
26
26
  super(`Option not Configured: ${e.stepTitle}`), this.optionId = (e == null ? void 0 : e.optionId) || "N/A";
27
27
  }
@@ -41,7 +41,7 @@ class he extends ue {
41
41
  super(`Resource not found for asset: ${e.name}`), this.asset = e;
42
42
  }
43
43
  }
44
- class He extends ue {
44
+ class Re extends ue {
45
45
  constructor(e, t) {
46
46
  super(`Workflow Misconfiguration: ${e.stepName} - ${t}`), this.step = e;
47
47
  }
@@ -66,7 +66,7 @@ class U extends Je {
66
66
  super(`Client Error: ${e}`);
67
67
  }
68
68
  }
69
- class Te extends Je {
69
+ class Le extends Je {
70
70
  constructor(e) {
71
71
  super(`Resource Generation Failed: ${e}`);
72
72
  }
@@ -388,7 +388,7 @@ const x = new $A(), _A = D`
388
388
  class sa {
389
389
  constructor() {
390
390
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (e) => {
391
- const t = await e.arrayBuffer(), A = await Rt(t), a = (n, i) => {
391
+ const t = await e.arrayBuffer(), A = await Ht(t), a = (n, i) => {
392
392
  const s = atob(n.split(",")[1]), o = [];
393
393
  for (let r = 0; r < s.length; r++)
394
394
  o.push(s.charCodeAt(r));
@@ -1653,7 +1653,7 @@ class Ya {
1653
1653
  n.forEach((o, r) => {
1654
1654
  s(
1655
1655
  new v([
1656
- new Ht(o, t, e[r]),
1656
+ new Rt(o, t, e[r]),
1657
1657
  new MA(
1658
1658
  o,
1659
1659
  a.useThreshold,
@@ -1701,7 +1701,7 @@ class St {
1701
1701
  if (this.configuration.type === y.ProductOverlay) {
1702
1702
  let l = "";
1703
1703
  if ((o = this.product) != null && o.overlayImageUrl && (l = this.product.overlayImageUrl), i = l, !l)
1704
- throw new He(this.configuration, "Couldn't find an asset for product overlay step");
1704
+ throw new Re(this.configuration, "Couldn't find an asset for product overlay step");
1705
1705
  }
1706
1706
  const s = this.evaluateAssetType();
1707
1707
  if (s === k.Image) {
@@ -1730,7 +1730,7 @@ class St {
1730
1730
  id: d.id,
1731
1731
  region: a
1732
1732
  },
1733
- command: new L(d, n)
1733
+ command: new T(d, n)
1734
1734
  };
1735
1735
  } else {
1736
1736
  const l = this.configuration.type === y.SilentIllustration ? (B = this.configuration.data.asset) == null ? void 0 : B.fileLink : i, w = await Ut(await (async () => new Promise((h, u) => {
@@ -1765,14 +1765,14 @@ class St {
1765
1765
  id: E.id,
1766
1766
  region: a
1767
1767
  },
1768
- command: new L(E, n)
1768
+ command: new T(E, n)
1769
1769
  };
1770
1770
  }
1771
1771
  }, this.configuration = e, this.layouts = t, this.product = A || void 0;
1772
1772
  }
1773
1773
  async trigger() {
1774
1774
  if (!this.configuration.data.regions)
1775
- throw new He(this.configuration, "Missing regions.");
1775
+ throw new Re(this.configuration, "Missing regions.");
1776
1776
  if (this.configuration.type === y.SilentIllustration) {
1777
1777
  const e = this.configuration.data.regions.map(this.processRegion);
1778
1778
  return Promise.all(e);
@@ -1802,7 +1802,7 @@ const Pa = async (c) => {
1802
1802
  }
1803
1803
  })).json()).shortUrl;
1804
1804
  } catch (t) {
1805
- throw console.error(t), new Te("Failed to shorten URL, see console.");
1805
+ throw console.error(t), new Le("Failed to shorten URL, see console.");
1806
1806
  }
1807
1807
  };
1808
1808
  class aA {
@@ -1876,10 +1876,10 @@ class xa {
1876
1876
  d.searchParams.append("video", btoa(JSON.stringify([B]))), d.pathname = d.pathname + (d.pathname.slice(-1) === "/" ? "" : "/");
1877
1877
  const w = d.toString();
1878
1878
  if (w.length >= 2e3)
1879
- throw new Te("Cannot create QR code, URL too long.");
1879
+ throw new Le("Cannot create QR code, URL too long.");
1880
1880
  const E = await Pa(w);
1881
1881
  if (s(E), !i.data || !i.data.regions)
1882
- throw new He(i, "Missing regions.");
1882
+ throw new Re(i, "Missing regions.");
1883
1883
  const h = await this.regionElements(i), u = await this.command(E, h, n, i.stepName);
1884
1884
  u && (u.command && n.getCommandDispatcher()(u.command), u.followup && await u.followup()), await n.setSelectionsAndElements(i.stepName, [], h, async () => {
1885
1885
  n.updateStorage(i.stepName, {
@@ -1903,7 +1903,7 @@ class xa {
1903
1903
  throw new Error("Region not found");
1904
1904
  if (!B || !g)
1905
1905
  throw new Error("Neither a region or layout found!");
1906
- return new L(
1906
+ return new T(
1907
1907
  {
1908
1908
  stepRegion: g,
1909
1909
  stepName: a,
@@ -1924,7 +1924,7 @@ class xa {
1924
1924
  }
1925
1925
  }
1926
1926
  const Na = new xa();
1927
- class Ra {
1927
+ class Ha {
1928
1928
  constructor() {
1929
1929
  this.frameSourceSvg = async (e, t) => {
1930
1930
  if (!e)
@@ -2035,7 +2035,7 @@ class Ra {
2035
2035
  });
2036
2036
  },
2037
2037
  () => {
2038
- throw new Te("Failed to resolve transcoded PDF");
2038
+ throw new Le("Failed to resolve transcoded PDF");
2039
2039
  }
2040
2040
  )
2041
2041
  );
@@ -2052,7 +2052,7 @@ class Ra {
2052
2052
  i && (i.command && a.getCommandDispatcher()(i.command), i.followup && await i.followup());
2053
2053
  }
2054
2054
  getCreateElementCommand(e, t, A, a) {
2055
- return new L(
2055
+ return new T(
2056
2056
  {
2057
2057
  id: e,
2058
2058
  type: k.Frame,
@@ -2090,7 +2090,7 @@ class Ra {
2090
2090
  };
2091
2091
  Qt.set(e, s), t.setPatternData(s, A);
2092
2092
  } else {
2093
- const a = await YA(e, !0), n = await Rt(a), i = {
2093
+ const a = await YA(e, !0), n = await Ht(a), i = {
2094
2094
  src: e,
2095
2095
  width: n.width,
2096
2096
  height: n.height,
@@ -2186,8 +2186,8 @@ class Ra {
2186
2186
  }), A.markUpdateCompleted(i);
2187
2187
  }
2188
2188
  }
2189
- const Se = new Ra();
2190
- class Ha {
2189
+ const Se = new Ha();
2190
+ class Ra {
2191
2191
  async getIllustrationBody(e) {
2192
2192
  return new Promise((t) => {
2193
2193
  _(e, !0).then((A) => {
@@ -2196,7 +2196,7 @@ class Ha {
2196
2196
  });
2197
2197
  }
2198
2198
  getCreateElementCommand(e, t, A, a) {
2199
- return new L(
2199
+ return new T(
2200
2200
  {
2201
2201
  stepRegion: t,
2202
2202
  stepName: a.stepName,
@@ -2341,7 +2341,7 @@ class Ha {
2341
2341
  async selectVariantCommand(e, t, A, a, n, i) {
2342
2342
  var C;
2343
2343
  if (!e.data || !e.data.regions)
2344
- throw new He(e, "Missing regions.");
2344
+ throw new Re(e, "Missing regions.");
2345
2345
  a(!0);
2346
2346
  const s = A.map((I) => new ee(I.id));
2347
2347
  e.mandatory && n.setMandatoryFulfilled(e.stepName, !1);
@@ -2399,12 +2399,12 @@ class Ha {
2399
2399
  };
2400
2400
  }
2401
2401
  }
2402
- const Ye = new Ha();
2402
+ const Ye = new Ra();
2403
2403
  class Ua {
2404
2404
  async init(e, t, A) {
2405
2405
  const a = e.option;
2406
2406
  if (!a)
2407
- throw new Re(e);
2407
+ throw new He(e);
2408
2408
  if (A)
2409
2409
  await this.reload(e, t, A);
2410
2410
  else {
@@ -2422,7 +2422,7 @@ class Ua {
2422
2422
  A.serializableWorkflow.steps
2423
2423
  ), s = Object.values(A.layouts).map((g) => g.elements).flat().filter((g) => g.stepName === e.stepName), o = e.option;
2424
2424
  if (!o)
2425
- throw new Re(e);
2425
+ throw new He(e);
2426
2426
  if (a != null && a.selectedVariants) {
2427
2427
  const g = a.selectedVariants[0].id;
2428
2428
  if (g) {
@@ -2478,7 +2478,7 @@ class va {
2478
2478
  async init(e, t, A) {
2479
2479
  const a = e.option;
2480
2480
  if (!a)
2481
- throw new Re(e);
2481
+ throw new He(e);
2482
2482
  if (A)
2483
2483
  await this.reload(e, t, A);
2484
2484
  else {
@@ -2600,7 +2600,7 @@ class Ga {
2600
2600
  return console.error(`Can not find layout for region: ${l.panelId}`), null;
2601
2601
  const u = [];
2602
2602
  return d && u.push(new ee(w)), u.push(
2603
- new L(
2603
+ new T(
2604
2604
  {
2605
2605
  stepRegion: l,
2606
2606
  stepName: e.stepName,
@@ -2728,7 +2728,7 @@ class ba {
2728
2728
  const E = J();
2729
2729
  return {
2730
2730
  regionElement: { id: E, region: l },
2731
- command: new L(
2731
+ command: new T(
2732
2732
  {
2733
2733
  stepName: e.stepName,
2734
2734
  stepRegion: l,
@@ -2824,7 +2824,7 @@ class Ja {
2824
2824
  }
2825
2825
  }
2826
2826
  const oA = new Ja();
2827
- class Ta {
2827
+ class La {
2828
2828
  constructor() {
2829
2829
  this.shapeFillId = "spiff-fill-shape";
2830
2830
  }
@@ -2850,7 +2850,7 @@ class Ta {
2850
2850
  async init(e, t, A) {
2851
2851
  const a = e.option;
2852
2852
  if (!a)
2853
- throw new Re(e);
2853
+ throw new He(e);
2854
2854
  if (A)
2855
2855
  await this.reload(e, t, A);
2856
2856
  else {
@@ -2958,7 +2958,7 @@ class Ta {
2958
2958
  return {
2959
2959
  id: C,
2960
2960
  region: d,
2961
- command: new L(
2961
+ command: new T(
2962
2962
  {
2963
2963
  stepRegion: d,
2964
2964
  stepName: e.stepName,
@@ -2996,8 +2996,8 @@ class Ta {
2996
2996
  }
2997
2997
  }
2998
2998
  }
2999
- const le = new Ta();
3000
- class La {
2999
+ const le = new La();
3000
+ class Ta {
3001
3001
  constructor() {
3002
3002
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
3003
3003
  }
@@ -3022,7 +3022,7 @@ class La {
3022
3022
  );
3023
3023
  }
3024
3024
  }
3025
- const Oa = new La(), ze = 30;
3025
+ const Oa = new Ta(), ze = 30;
3026
3026
  class ve extends Error {
3027
3027
  constructor(e) {
3028
3028
  super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = ve.name;
@@ -3136,7 +3136,7 @@ class Ka {
3136
3136
  return;
3137
3137
  const n = a.getCommandDispatcher();
3138
3138
  for (const i of A) {
3139
- const s = new RA(i.id, t);
3139
+ const s = new HA(i.id, t);
3140
3140
  n(s);
3141
3141
  }
3142
3142
  }
@@ -3156,7 +3156,7 @@ class Ka {
3156
3156
  for (const r of A) {
3157
3157
  if (!t.fill)
3158
3158
  throw new Error("Fill not set on new color selection!");
3159
- const g = new HA(r.id, t.fill, s);
3159
+ const g = new RA(r.id, t.fill, s);
3160
3160
  n(g);
3161
3161
  }
3162
3162
  }
@@ -3401,9 +3401,9 @@ class Ka {
3401
3401
  const h = A.colorOption;
3402
3402
  let u;
3403
3403
  if (h && h.variants) {
3404
- const N = h.variants.find((R) => {
3404
+ const N = h.variants.find((H) => {
3405
3405
  var O;
3406
- return R.id === ((O = h.defaultVariant) == null ? void 0 : O.id);
3406
+ return H.id === ((O = h.defaultVariant) == null ? void 0 : O.id);
3407
3407
  }) || h.variants[0];
3408
3408
  u = this.createTextFillSpotColor(h, N), i.updateStorage(e, {
3409
3409
  colorProfileAssetKey: (E = h.colorProfile) == null ? void 0 : E.key
@@ -3456,7 +3456,7 @@ class Ka {
3456
3456
  Q.push(
3457
3457
  this.generateTextChangeCommandsForRegion(F, A, m.id, P)
3458
3458
  );
3459
- const S = new L(m, d);
3459
+ const S = new T(m, d);
3460
3460
  return {
3461
3461
  regionElement: { id: w, region: B },
3462
3462
  commands: [S, ...Q],
@@ -4808,14 +4808,14 @@ IfnI8vaNAAAAAElFTkSuQmCC" transform="matrix(0.13 0.0141 -0.0141 0.1301 104.926 1
4808
4808
  </g>
4809
4809
  </svg>
4810
4810
 
4811
- `, H = (c) => GA("http://www.w3.org/2000/svg", c), gt = (c, e) => {
4812
- const t = H("rect");
4811
+ `, R = (c) => GA("http://www.w3.org/2000/svg", c), gt = (c, e) => {
4812
+ const t = R("rect");
4813
4813
  return t.setAttribute("height", `${c}`), t.setAttribute("width", `${e}`), t;
4814
4814
  }, Wa = () => {
4815
- const c = H("svg");
4815
+ const c = R("svg");
4816
4816
  return c.setAttribute("xmlns", "http://www.w3.org/2000/svg"), c.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), c.setAttribute("version", "1.1"), c;
4817
4817
  }, Xa = (c) => {
4818
- const e = H("use");
4818
+ const e = R("use");
4819
4819
  return e.setAttribute("xlink:href", c), e.setAttribute("href", c), e;
4820
4820
  };
4821
4821
  function rA(c) {
@@ -4823,7 +4823,7 @@ function rA(c) {
4823
4823
  return e.setAttribute("height", `${a}`), e.setAttribute("width", `${A}`), [e, a, A];
4824
4824
  }
4825
4825
  const qa = (c, e, t) => {
4826
- const A = H("g");
4826
+ const A = R("g");
4827
4827
  c.appendChild(A), A.setAttribute("id", t), A.innerHTML = e;
4828
4828
  };
4829
4829
  function cA(c, e, t) {
@@ -4985,26 +4985,26 @@ class $a extends ct {
4985
4985
  }
4986
4986
  brandSvg(e, t) {
4987
4987
  const A = e.toSVG(2), a = e.getBoundingBox(), n = a.x2 - a.x1, i = e.toPathData(3), s = () => {
4988
- const Q = H("g"), p = H("defs");
4988
+ const Q = R("g"), p = R("defs");
4989
4989
  Q.appendChild(p), p.appendChild(gA(3, 7, 4, "shadow"));
4990
- const f = H("g");
4990
+ const f = R("g");
4991
4991
  Q.appendChild(f), f.setAttribute("filter", "url(#shadow)"), f.innerHTML = A;
4992
- const F = H("g");
4992
+ const F = R("g");
4993
4993
  Q.appendChild(F), F.setAttribute("fill", "red"), F.setAttribute("stroke", "red"), F.setAttribute("stroke-width", "9"), F.innerHTML = A;
4994
- const M = H("g");
4994
+ const M = R("g");
4995
4995
  Q.appendChild(M), M.setAttribute("fill", "#9d2621"), M.setAttribute("transform", "translate(1,1)"), M.innerHTML = A;
4996
- const P = H("g");
4997
- return Q.appendChild(P), P.setAttribute("fill", "yellow"), P.innerHTML = A, new Bt(Q).transform(([N, R]) => [N, R + (n / 2 - N) ** 2 / (n * 2.9)]), Q;
4996
+ const P = R("g");
4997
+ return Q.appendChild(P), P.setAttribute("fill", "yellow"), P.innerHTML = A, new Bt(Q).transform(([N, H]) => [N, H + (n / 2 - N) ** 2 / (n * 2.9)]), Q;
4998
4998
  }, [o, r, g] = rA(t);
4999
4999
  if (!o)
5000
5000
  return "";
5001
- const B = H("defs");
5001
+ const B = R("defs");
5002
5002
  o.appendChild(B), cA(o, B, t);
5003
- const l = r * 0.23, d = g * 0.94, w = g * 0.04, E = r * 0.53, h = H("g");
5003
+ const l = r * 0.23, d = g * 0.94, w = g * 0.04, E = r * 0.53, h = R("g");
5004
5004
  o.appendChild(h), h.setAttribute("transform", `translate(${w} ${E}) rotate(-21)`);
5005
5005
  const u = gt(l, d);
5006
5006
  u.setAttribute("opacity", "0"), h.appendChild(u);
5007
- const C = H("g");
5007
+ const C = R("g");
5008
5008
  h.appendChild(C);
5009
5009
  const I = s();
5010
5010
  C.appendChild(I);
@@ -5029,29 +5029,29 @@ class en extends ct {
5029
5029
  }
5030
5030
  brandSvg(e, t, A) {
5031
5031
  const a = e.toSVG(2), n = e.getBoundingBox(), i = n.y2 - n.y1, s = n.x2 - n.x1, o = e.toPathData(3), r = () => {
5032
- const f = H("g"), F = H("g");
5032
+ const f = R("g"), F = R("g");
5033
5033
  f.appendChild(F), F.setAttribute("stroke", "#5C1A0D"), F.setAttribute("stroke-width", "4"), F.setAttribute("transform", "translate(1,1)"), F.innerHTML = a;
5034
- const M = H("g");
5034
+ const M = R("g");
5035
5035
  f.appendChild(M), M.setAttribute("fill", "#FFE386"), M.setAttribute("transform", "translate(1,1)"), M.innerHTML = a;
5036
- const P = H("g");
5036
+ const P = R("g");
5037
5037
  f.appendChild(P), P.setAttribute("fill", "white"), P.innerHTML = a;
5038
5038
  const S = new Bt(f);
5039
- return S.transform(([N, R]) => [N, R + ((s - N) * R) ** 2 / (s * 5e4)]), S.transform(([N, R]) => [
5039
+ return S.transform(([N, H]) => [N, H + ((s - N) * H) ** 2 / (s * 5e4)]), S.transform(([N, H]) => [
5040
5040
  N,
5041
- R + (s / 3 - N) ** 2 / s * this.indicator(N < s / 3)
5042
- ]), S.transform(([N, R]) => [N - (i - R) * (s - N) / 800, R]), f;
5041
+ H + (s / 3 - N) ** 2 / s * this.indicator(N < s / 3)
5042
+ ]), S.transform(([N, H]) => [N - (i - H) * (s - N) / 800, H]), f;
5043
5043
  }, [g, B, l] = rA(t);
5044
5044
  if (!g)
5045
5045
  return "";
5046
- const d = H("defs");
5046
+ const d = R("defs");
5047
5047
  g.appendChild(d), cA(g, d, t);
5048
5048
  let w, E, h, u;
5049
5049
  A ? (w = B * 0.25 * (1 + 0.1), E = l / 2 * (1 + 0.1), h = l * 0.22, u = B * 0.32) : (w = B * 0.22 * (1 + 0.1), E = l * 0.8, h = l * 0.067, u = B * 0.33);
5050
- const C = H("g");
5050
+ const C = R("g");
5051
5051
  g.appendChild(C), C.setAttribute("transform", `translate(${h} ${u}) rotate(-10)`);
5052
5052
  const I = gt(w, E);
5053
5053
  I.setAttribute("opacity", "0"), C.appendChild(I);
5054
- const m = H("g");
5054
+ const m = R("g");
5055
5055
  C.appendChild(m);
5056
5056
  const Q = r();
5057
5057
  m.appendChild(Q);
@@ -5073,29 +5073,29 @@ class An extends ct {
5073
5073
  }
5074
5074
  svgElement(e, t) {
5075
5075
  const A = nt(tn), n = e !== "" ? ((I) => I.charAt(0).toUpperCase() + I.substr(1).toLowerCase())(e) : "", i = A.getPath(n, 0, 72, 72), s = i.toSVG(2), o = i.getBoundingBox(), r = o.x2 - o.x1, g = i.toPathData(3), B = () => {
5076
- const I = H("g");
5076
+ const I = R("g");
5077
5077
  I.classList.add("module-text-group");
5078
- const m = H("defs");
5078
+ const m = R("defs");
5079
5079
  I.appendChild(m), m.appendChild(gA(0, 2, 2, "shadow"));
5080
- const Q = H("path");
5080
+ const Q = R("path");
5081
5081
  Q.setAttribute("d", g), Q.setAttribute("stroke", "black"), Q.setAttribute("stroke-width", "3"), m.appendChild(Q);
5082
- const p = H("g");
5082
+ const p = R("g");
5083
5083
  p.classList.add("module-layer0"), I.appendChild(p), p.setAttribute("filter", "url(#shadow)"), p.innerHTML = Q.outerHTML;
5084
- const f = H("g");
5084
+ const f = R("g");
5085
5085
  f.classList.add("module-layer1"), I.appendChild(f), f.setAttribute("stroke-width", "3"), f.setAttribute("stroke", "rgb(45,41,38)"), f.setAttribute("fill", "rgb(45,41,38)"), f.setAttribute("transform", "translate(0.5,0)"), f.innerHTML = s;
5086
- const F = H("g");
5086
+ const F = R("g");
5087
5087
  F.classList.add("module-layer2"), I.appendChild(F), F.setAttribute("fill", "rgb(255,209,0)"), F.setAttribute("transform", "translate(1,-0.1)"), F.innerHTML = s;
5088
- const M = H("g");
5088
+ const M = R("g");
5089
5089
  return M.classList.add("module-layer3"), I.appendChild(M), M.setAttribute("fill", "white"), M.innerHTML = s, new Bt(I).transform(([S, N]) => [S, N + (r / 2 - S) ** 2 / (r * 6)]), I;
5090
- }, l = H("g");
5090
+ }, l = R("g");
5091
5091
  l.classList.add("module-root");
5092
- const d = H("defs");
5092
+ const d = R("defs");
5093
5093
  l.appendChild(d);
5094
- const w = H("g");
5094
+ const w = R("g");
5095
5095
  w.classList.add("module-bounds"), l.appendChild(w);
5096
5096
  const E = gt(t.height, t.width);
5097
5097
  E.setAttribute("opacity", "0"), w.appendChild(E);
5098
- const h = H("g");
5098
+ const h = R("g");
5099
5099
  h.classList.add("module-text-enclosure"), l.appendChild(h);
5100
5100
  const u = B();
5101
5101
  h.appendChild(u);
@@ -6290,7 +6290,7 @@ class Ie {
6290
6290
  case y.Model:
6291
6291
  return new rn(e, t);
6292
6292
  case y.Frame:
6293
- return new Hi(e, t);
6293
+ return new Ri(e, t);
6294
6294
  default:
6295
6295
  throw new b(`Step type ${t.type} not yet supported in Core SDK`);
6296
6296
  }
@@ -6518,26 +6518,26 @@ const En = async (c) => {
6518
6518
  context: {
6519
6519
  transactionOwnerId: P
6520
6520
  }
6521
- }), R = (O = N.data) == null ? void 0 : O.transactions[0].workflowState;
6522
- return N.errors ? (N.errors.forEach((T) => {
6523
- N.errors && console.log("Server Error:", T.message);
6524
- }), null) : R ?? null;
6521
+ }), H = (O = N.data) == null ? void 0 : O.transactions[0].workflowState;
6522
+ return N.errors ? (N.errors.forEach((L) => {
6523
+ N.errors && console.log("Server Error:", L.message);
6524
+ }), null) : H ?? null;
6525
6525
  })() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(A())), await c.updateStateWithServerImmediate(A), console.log("Server state is undefined @ Workflow completion"));
6526
6526
  const l = c.getPreviewService(), d = (F = e == null ? void 0 : e.finalizeStepConfig) == null ? void 0 : F.lookAtAnimation, w = l && e.showModelOnFinishStep && !!d, E = o && _e(o, e, !0), h = o && _e(o, e, !1), u = async (M) => {
6527
6527
  const P = {};
6528
6528
  let S = 0;
6529
6529
  if (Object.keys(n).length > 0)
6530
6530
  for (const N of Object.keys(n)) {
6531
- const R = n[N], O = e.steps.find((T) => T.stepName === N);
6532
- for (let T = 0; T < R.selections.length; ++T) {
6533
- const W = R.selections[T];
6531
+ const H = n[N], O = e.steps.find((L) => L.stepName === N);
6532
+ for (let L = 0; L < H.selections.length; ++L) {
6533
+ const W = H.selections[L];
6534
6534
  if (O && (!M || O.option && (O.option.variants || []).length > 1 && !O.data.hideSelectionInCart && !O.data.hideSelectionsInCart)) {
6535
- const Le = O.stepTitle;
6536
- P[Le] ? P[Le].push({
6535
+ const Te = O.stepTitle;
6536
+ P[Te] ? P[Te].push({
6537
6537
  id: W.id || "",
6538
6538
  name: W.name,
6539
6539
  priceModifier: W.priceModifier
6540
- }) : P[Le] = [
6540
+ }) : P[Te] = [
6541
6541
  {
6542
6542
  id: W.id || "",
6543
6543
  name: W.name,
@@ -6853,7 +6853,7 @@ class fe {
6853
6853
  height: g.layoutState.layout.height
6854
6854
  }, l = this.commandContext.getLayoutById(g.layoutState.layout.id), d = i.getContext("2d");
6855
6855
  if (!d)
6856
- throw new Te("Failed to obtain 2D context for preview image creation");
6856
+ throw new Le("Failed to obtain 2D context for preview image creation");
6857
6857
  const w = vt(l.layoutState.layout, l.layoutState.elements, {
6858
6858
  renderingConfiguration: {
6859
6859
  purpose: Gt.Print,
@@ -7153,7 +7153,7 @@ const Dn = [
7153
7153
  if (!w)
7154
7154
  throw new z(d);
7155
7155
  const E = J();
7156
- return new L(
7156
+ return new T(
7157
7157
  {
7158
7158
  id: E,
7159
7159
  src: g,
@@ -7194,7 +7194,7 @@ const Dn = [
7194
7194
  top: a.y
7195
7195
  });
7196
7196
  return [
7197
- new L(
7197
+ new T(
7198
7198
  {
7199
7199
  id: l,
7200
7200
  path: B.path,
@@ -7218,7 +7218,7 @@ const Dn = [
7218
7218
  },
7219
7219
  d
7220
7220
  ),
7221
- new Ht(l, i, w)
7221
+ new Rt(l, i, w)
7222
7222
  ];
7223
7223
  };
7224
7224
  return (await Promise.all(A.data.regions.map((r) => o(r)))).flat();
@@ -7239,12 +7239,12 @@ const Dn = [
7239
7239
  const s = (p = i.asset) == null ? void 0 : p.fileLink;
7240
7240
  if (!s)
7241
7241
  return console.error(`No asset link for variant with ID: ${a.illustrationVariantId}`), [];
7242
- const o = await _(s, !0), r = /<svg.*?<\/svg>/s, g = o.match(r) || [], B = (g == null ? void 0 : g.length) > 0 ? g[0] : "", w = Tt().parseFromString(B, "image/svg+xml").firstElementChild;
7242
+ const o = await _(s, !0), r = /<svg.*?<\/svg>/s, g = o.match(r) || [], B = (g == null ? void 0 : g.length) > 0 ? g[0] : "", w = Lt().parseFromString(B, "image/svg+xml").firstElementChild;
7243
7243
  if (!w)
7244
7244
  return console.error("Failed to read SVG."), [];
7245
- Lt(w);
7245
+ Tt(w);
7246
7246
  const E = {};
7247
- TA(w, (f) => {
7247
+ LA(w, (f) => {
7248
7248
  Dn.includes(f.tagName) && !f.attributes.getNamedItem("fill") && f.setAttribute("fill", "#000000");
7249
7249
  const F = f.attributes.getNamedItem("fill");
7250
7250
  if (F && F.value !== "none") {
@@ -7271,7 +7271,7 @@ const Dn = [
7271
7271
  if (!F)
7272
7272
  throw new z(f);
7273
7273
  const M = J();
7274
- return new L(
7274
+ return new T(
7275
7275
  {
7276
7276
  colors: E,
7277
7277
  id: M,
@@ -7300,7 +7300,7 @@ const Dn = [
7300
7300
  if (!r)
7301
7301
  throw new z(o);
7302
7302
  const g = J();
7303
- return new L(
7303
+ return new T(
7304
7304
  {
7305
7305
  colors: {},
7306
7306
  id: g,
@@ -7343,7 +7343,7 @@ const Dn = [
7343
7343
  if (!d)
7344
7344
  throw new z(l);
7345
7345
  const w = J();
7346
- return new L(
7346
+ return new T(
7347
7347
  {
7348
7348
  id: w,
7349
7349
  src: s,
@@ -7400,7 +7400,7 @@ const Dn = [
7400
7400
  />
7401
7401
  </svg>
7402
7402
  `, w = { "spiff-fill-shape": { browserValue: i.color || "#000000" } }, E = J();
7403
- return new L(
7403
+ return new T(
7404
7404
  {
7405
7405
  colors: w,
7406
7406
  id: E,
@@ -7451,17 +7451,17 @@ const Dn = [
7451
7451
  excludeFromExport: e.data.excludeFromPrint,
7452
7452
  preserveAspectRatio: "none"
7453
7453
  };
7454
- A.push(new L(B, g));
7454
+ A.push(new T(B, g));
7455
7455
  });
7456
7456
  } catch (r) {
7457
7457
  console.error(r);
7458
7458
  }
7459
7459
  else {
7460
7460
  const r = await _(n, !0), g = (B) => {
7461
- const l = /<svg.*?<\/svg>/s, d = B.match(l) || [], w = (d == null ? void 0 : d.length) > 0 ? d[0] : "", u = Tt().parseFromString(w, "image/svg+xml").firstElementChild;
7461
+ const l = /<svg.*?<\/svg>/s, d = B.match(l) || [], w = (d == null ? void 0 : d.length) > 0 ? d[0] : "", u = Lt().parseFromString(w, "image/svg+xml").firstElementChild;
7462
7462
  if (!u)
7463
7463
  throw new ge("Failed to read SVG.");
7464
- return Lt(u), Ot().serializeToString(u);
7464
+ return Tt(u), Ot().serializeToString(u);
7465
7465
  };
7466
7466
  o.forEach((B) => {
7467
7467
  const l = c.find((w) => w.panelId === B.panelId);
@@ -7486,7 +7486,7 @@ const Dn = [
7486
7486
  productOverlay: e.type === y.ProductOverlay ? !0 : void 0,
7487
7487
  excludeFromExport: e.data.excludeFromPrint
7488
7488
  };
7489
- A.push(new L(d, l));
7489
+ A.push(new T(d, l));
7490
7490
  });
7491
7491
  }
7492
7492
  return A;
@@ -7565,7 +7565,7 @@ const Dn = [
7565
7565
  }
7566
7566
  );
7567
7567
  a.push(
7568
- new L(
7568
+ new T(
7569
7569
  {
7570
7570
  ...C,
7571
7571
  fontSize: I,
@@ -7576,10 +7576,10 @@ const Dn = [
7576
7576
  )
7577
7577
  );
7578
7578
  } else
7579
- a.push(new L(C, u));
7579
+ a.push(new T(C, u));
7580
7580
  }
7581
7581
  return a;
7582
- }, Rn = (c, e) => c.conditions ? c.conditions.every((t) => {
7582
+ }, Hn = (c, e) => c.conditions ? c.conditions.every((t) => {
7583
7583
  const A = e[t.targetStepName];
7584
7584
  if (A && A.selectedVariants) {
7585
7585
  const a = A.selectedVariants;
@@ -7588,7 +7588,7 @@ const Dn = [
7588
7588
  );
7589
7589
  }
7590
7590
  return !1;
7591
- }) : !0, Hn = async (c, e, t, A) => {
7591
+ }) : !0, Rn = async (c, e, t, A) => {
7592
7592
  const a = [], n = {};
7593
7593
  for (const i of c) {
7594
7594
  const s = e.steps.find((o) => o.stepName === i.name);
@@ -7636,7 +7636,7 @@ const Dn = [
7636
7636
  }
7637
7637
  }
7638
7638
  for (const i of e.steps)
7639
- i.type !== y.SilentIllustration && i.type !== y.ProductOverlay || Rn(i, n) && a.push(
7639
+ i.type !== y.SilentIllustration && i.type !== y.ProductOverlay || Hn(i, n) && a.push(
7640
7640
  ...await xn(t, i, A)
7641
7641
  );
7642
7642
  return a;
@@ -7752,6 +7752,7 @@ class kn extends tA {
7752
7752
  }
7753
7753
  /**
7754
7754
  * Returns the resolution expected for generated textures.
7755
+ * FIXME: This is reimplemented from the preview package. Can we find a way to remove this duplication.
7755
7756
  */
7756
7757
  getDynamicTextureResolution() {
7757
7758
  return this.getIsMobile() || !this.offscreenRenderingSupported() ? {
@@ -7783,21 +7784,21 @@ class kn extends tA {
7783
7784
  * a loose target but should be kept in mind when making changes.
7784
7785
  */
7785
7786
  async execute() {
7786
- const e = this.layouts.find((l) => l.layoutState.layout.id === this.layoutId);
7787
+ const e = this.layouts.find((d) => d.layoutState.layout.id === this.layoutId);
7787
7788
  if (!e)
7788
7789
  return;
7789
- const t = e.layoutState.elements || [], A = e.layoutState.layout.width, a = e.layoutState.layout.height, n = this.getDynamicTextureResolution().width, i = this.getDynamicTextureResolution().height;
7790
- let s, o;
7790
+ const t = e.layoutState.elements || [], A = e.layoutState.layout.width, a = e.layoutState.layout.height, n = A === 1 || a === 1 ? { width: 1, height: 1 } : this.getDynamicTextureResolution(), i = n.width, s = n.height;
7791
+ let o, r;
7791
7792
  if (this.nonPOTSupport) {
7792
- const l = n / i;
7793
- A / a < l ? (s = n, o = a * (n / A)) : (s = A * (i / a), o = i);
7794
- const w = this.resizeFit({ width: s, height: o });
7795
- s = w.width, o = w.height;
7793
+ const d = i / s;
7794
+ A / a < d ? (o = i, r = a * (i / A)) : (o = A * (s / a), r = s);
7795
+ const E = this.resizeFit({ width: o, height: r });
7796
+ o = E.width, r = E.height;
7796
7797
  } else
7797
- s = this.getDynamicTextureResolution().width, o = this.getDynamicTextureResolution().height;
7798
- const r = vt(e.layoutState.layout, t, {
7798
+ o = n.width, r = n.height;
7799
+ const g = vt(e.layoutState.layout, t, {
7799
7800
  renderingConfiguration: { purpose: Gt.ThreeD }
7800
- }), g = kt(r), B = await zt.from(this.ctx, g, {
7801
+ }), B = kt(g), l = await zt.from(this.ctx, B, {
7801
7802
  anonymousCrossOrigin: !0,
7802
7803
  ignoreDimensions: !this.nonPOTSupport,
7803
7804
  ignoreAnimation: !0,
@@ -7809,7 +7810,7 @@ class kn extends tA {
7809
7810
  DOMParser: Jt(),
7810
7811
  fetch: et
7811
7812
  });
7812
- B.resize(s, o), await B.render(), this.onRender();
7813
+ l.resize(o, r), await l.render(), this.onRender();
7813
7814
  }
7814
7815
  }
7815
7816
  const Vi = (c, e) => {
@@ -7828,8 +7829,8 @@ const Vi = (c, e) => {
7828
7829
  serializableWorkflow: { steps: [] },
7829
7830
  layouts: {}
7830
7831
  };
7831
- a = new v(t.map((o) => new LA(o))).apply(a);
7832
- const i = await Hn(c, e, t, A);
7832
+ a = new v(t.map((o) => new TA(o))).apply(a);
7833
+ const i = await Rn(c, e, t, A);
7833
7834
  return new v(i).apply(a);
7834
7835
  }, bn = D`
7835
7836
  ${oe}
@@ -7951,7 +7952,7 @@ const Vi = (c, e) => {
7951
7952
  }
7952
7953
  }
7953
7954
  }
7954
- `, Tn = D`
7955
+ `, Ln = D`
7955
7956
  query GetBundleStakeholders($id: String!) {
7956
7957
  bundles(ids: [$id]) {
7957
7958
  id
@@ -7971,7 +7972,7 @@ const Vi = (c, e) => {
7971
7972
  }
7972
7973
  }
7973
7974
  }
7974
- `, Ln = D`
7975
+ `, Tn = D`
7975
7976
  query GetBundlesForCustomer($id: String!) {
7976
7977
  customers(ids: [$id]) {
7977
7978
  bundleStakeholders {
@@ -9277,7 +9278,7 @@ class xt {
9277
9278
  }
9278
9279
  async getAllStakeholders() {
9279
9280
  const e = await x.getShadowGraphqlClient().query({
9280
- query: Tn,
9281
+ query: Ln,
9281
9282
  errorPolicy: "all",
9282
9283
  fetchPolicy: "no-cache",
9283
9284
  variables: {
@@ -10684,7 +10685,7 @@ class Ni {
10684
10685
  if (!this.customer)
10685
10686
  throw new Error("Customer not authenticated.");
10686
10687
  const e = await x.getShadowGraphqlClient().query({
10687
- query: Ln,
10688
+ query: Tn,
10688
10689
  variables: {
10689
10690
  id: this.customer.id
10690
10691
  },
@@ -10830,11 +10831,11 @@ class Ni {
10830
10831
  throw new U(`Not all transactions were found: ${S}`);
10831
10832
  }
10832
10833
  return F.map((S, N) => {
10833
- var R;
10834
+ var H;
10834
10835
  return {
10835
10836
  transaction: S,
10836
10837
  workflowId: S.workflowId,
10837
- readOnly: ((R = Q.find((O) => O.option.transactionId === S.id)) == null ? void 0 : R.option.readOnly) ?? !1,
10838
+ readOnly: ((H = Q.find((O) => O.option.transactionId === S.id)) == null ? void 0 : H.option.readOnly) ?? !1,
10838
10839
  index: Q[N].index
10839
10840
  };
10840
10841
  });
@@ -10875,32 +10876,32 @@ class Ni {
10875
10876
  var O;
10876
10877
  const { transaction: p, workflowId: f, readOnly: F, index: M } = Q, P = w.get(f), S = e[M];
10877
10878
  !E.get(p.id) && p.transactionOwnerId && E.set(p.id, p.transactionOwnerId);
10878
- const N = E.get(p.id) || void 0, R = {
10879
+ const N = E.get(p.id) || void 0, H = {
10879
10880
  product: p.product,
10880
10881
  transaction: p,
10881
10882
  layouts: [],
10882
10883
  singleVariantsRenderable: (O = S == null ? void 0 : S.workflowConfiguration) == null ? void 0 : O.singleVariantsRenderable,
10883
10884
  stateMutationFunc: F ? async () => {
10884
10885
  throw new b("State mutation is forbidden in read only mode!");
10885
- } : async (T) => this.updateTransactionState({ ...T, context: { transactionOwnerId: N } }),
10886
+ } : async (L) => this.updateTransactionState({ ...L, context: { transactionOwnerId: N } }),
10886
10887
  readOnly: F,
10887
10888
  workflow: P,
10888
10889
  isReloadedTransaction: S.type === "transaction"
10889
10890
  };
10890
10891
  if (S.type === "transaction" && p.workflowState) {
10891
- const T = JSON.parse(p.workflowState);
10892
- R.layouts = Object.values(T.layouts || {}).map((W) => W.layout), await Ae(T), await ne(T), R.reloadedState = T;
10892
+ const L = JSON.parse(p.workflowState);
10893
+ H.layouts = Object.values(L.layouts || {}).map((W) => W.layout), await Ae(L), await ne(L), H.reloadedState = L;
10893
10894
  } else if (!F && S.workflowState) {
10894
- const T = JSON.parse(S.workflowState);
10895
- R.layouts = Object.values(T.layouts || {}).map((W) => W.layout), await Ae(T), await ne(T), R.reloadedState = T;
10895
+ const L = JSON.parse(S.workflowState);
10896
+ H.layouts = Object.values(L.layouts || {}).map((W) => W.layout), await Ae(L), await ne(L), H.reloadedState = L;
10896
10897
  } else
10897
- R.layouts = Ve(
10898
- R.transaction,
10899
- R.workflow
10898
+ H.layouts = Ve(
10899
+ H.transaction,
10900
+ H.workflow
10900
10901
  );
10901
- return R.renderableContextService = new De(
10902
- R.layouts
10903
- ), R.delayWorkflowStateSync = !0, this.initialized = !0, this.experienceOptions = R, { experienceOptions: R, index: M, options: S };
10902
+ return H.renderableContextService = new De(
10903
+ H.layouts
10904
+ ), H.delayWorkflowStateSync = !0, this.initialized = !0, this.experienceOptions = H, { experienceOptions: H, index: M, options: S };
10904
10905
  });
10905
10906
  Y.setMap("transactionOwnerIds", E);
10906
10907
  const I = (await Promise.all(h)).sort((Q, p) => Q.index - p.index).map(async (Q) => {
@@ -11271,8 +11272,8 @@ class Zi {
11271
11272
  setWorkflowStateSyncEnabled(e) {
11272
11273
  }
11273
11274
  }
11274
- var Ri = /* @__PURE__ */ ((c) => (c.SelectFrame = "SelectFrame", c.SelectImage = "SelectImage", c.Position = "Position", c))(Ri || {});
11275
- class Hi extends X {
11275
+ var Hi = /* @__PURE__ */ ((c) => (c.SelectFrame = "SelectFrame", c.SelectImage = "SelectImage", c.Position = "Position", c))(Hi || {});
11276
+ class Ri extends X {
11276
11277
  constructor(e, t) {
11277
11278
  var A;
11278
11279
  super(e, t), this.frameService = (A = this.manager.getStepSpecificServices(this.getId())) == null ? void 0 : A.frameService;
@@ -11429,8 +11430,8 @@ export {
11429
11430
  Bs as FontSizeCommand,
11430
11431
  ds as FontSourceCommand,
11431
11432
  Ya as FrameService,
11432
- Ri as FrameStep,
11433
- Hi as FrameStepHandle,
11433
+ Hi as FrameStep,
11434
+ Ri as FrameStepHandle,
11434
11435
  wt as GlobalPropertyHandle,
11435
11436
  ws as GroupCommand,
11436
11437
  sn as IllustrationStepHandle,
@@ -11442,14 +11443,14 @@ export {
11442
11443
  Es as LayoutElementType,
11443
11444
  z as LayoutNotFoundError,
11444
11445
  on as MaterialStepHandle,
11445
- He as MisconfigurationError,
11446
+ Re as MisconfigurationError,
11446
11447
  Zi as MockWorkflowManager,
11447
11448
  rn as ModelStepHandle,
11448
11449
  us as MoveCommand,
11449
11450
  mA as ObjectInput,
11450
11451
  hi as ObjectInputType,
11451
11452
  QA as OptionGlobalPropertyHandle,
11452
- Re as OptionNotFoundError,
11453
+ He as OptionNotFoundError,
11453
11454
  ge as ParseError,
11454
11455
  cn as PictureStepHandle,
11455
11456
  wa as ProductCameraRig,
@@ -11491,13 +11492,13 @@ export {
11491
11492
  Ys as frameDataCache,
11492
11493
  Se as frameStepService,
11493
11494
  Ps as generate,
11494
- Hn as generateCommands,
11495
+ Rn as generateCommands,
11495
11496
  xs as generateSVGWithUnknownColors,
11496
11497
  Wi as generateStateFromDesignInputSteps,
11497
11498
  Ns as getAttributesFromArrayBuffer,
11498
- Rs as getAxisAlignedBoundingBox,
11499
+ Hs as getAxisAlignedBoundingBox,
11499
11500
  Sa as getBoundedOffsets,
11500
- Hs as getFrameData,
11501
+ Rs as getFrameData,
11501
11502
  Us as getSvgElement,
11502
11503
  ye as getWorkflow,
11503
11504
  pA as getWorkflows,
@@ -11515,7 +11516,7 @@ export {
11515
11516
  ks as registerFetchImplementation,
11516
11517
  bs as registerWindowImplementation,
11517
11518
  Js as rehydrateSerializedLayout,
11518
- Ts as setCanvasModule,
11519
+ Ls as setCanvasModule,
11519
11520
  le as shapeStepService,
11520
11521
  Pa as shortenUrl,
11521
11522
  $ as spiffCoreConfiguration,