@spiffcommerce/core 21.6.1 → 21.6.2-0

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,5 +1,5 @@
1
1
  import { createHttpLink as EA, InMemoryCache as hA, ApolloClient as CA, from as QA, gql as F } from "@apollo/client/core";
2
- import { fetch as $e, getAttributesFromArrayBuffer as yt, AssetType as Bt, StepType as D, getFrameData as _e, frameDataCache as uA, GroupCommand as G, UpdateFramePattern as Yt, UpdateFrameThresholdSettingsCommand as mA, calculateOffsets as et, LayoutElementType as v, generate as J, CreateElementCommand as L, generateSVGWithUnknownColors as St, svgObjectURL as fe, fetchAsString as Z, DeleteElementCommand as $, generateDefaultRectangleFrameSvg as dt, GetSVGDimensions as IA, patternImageDataCache as wt, fetchAsArrayBuffer as pA, findElement as De, modifySVGWithElementProperties as fA, IllustrationColorCommand as Ke, IllustrationCacheCommand as DA, getFontMetrics as FA, getPatternImageData as je, FontAlignmentCommand as MA, FontColorCommand as yA, FontImageFillCommand as Je, applyTextTransformations as Ve, determineCorrectFontSizeAndLines as me, FontSourceCommand as Et, loadFont as tt, TextChangeCommand as YA, FontSizeCommand as SA, createElementNS as xA, createElement as Be, _loadFontExternalDataURL as At, UpdateWorkflowStateCommand as ht, CommandContext as PA, createCanvas as Fe, getSvgElement as xt, LayoutRenderingPurpose as Pt, renderPapyrusComponentAsString as Nt, loadImage as Ht, getDomParser as Rt, toBase64 as Ct, getVariant as NA, generateFrameSVG as HA, getDefaultVariant as He, domParser as Ut, sanitizeSvgTree as Gt, traverse as RA, xmlSerializer as vt, CreateLayoutCommand as UA, AspectType as Ie, rehydrateSerializedLayout as ee } from "@spiffcommerce/papyrus";
2
+ import { fetch as $e, getAttributesFromArrayBuffer as yt, AssetType as Bt, StepType as D, getFrameData as _e, frameDataCache as uA, GroupCommand as G, UpdateFramePattern as Yt, UpdateFrameThresholdSettingsCommand as mA, calculateOffsets as et, LayoutElementType as v, generate as J, CreateElementCommand as L, generateSVGWithUnknownColors as St, svgObjectURL as De, fetchAsString as Z, DeleteElementCommand as $, generateDefaultRectangleFrameSvg as dt, GetSVGDimensions as IA, patternImageDataCache as wt, fetchAsArrayBuffer as pA, findElement as Fe, modifySVGWithElementProperties as fA, IllustrationColorCommand as Ke, IllustrationCacheCommand as DA, getFontMetrics as FA, getPatternImageData as je, FontAlignmentCommand as MA, FontColorCommand as yA, FontImageFillCommand as Je, applyTextTransformations as Ve, determineCorrectFontSizeAndLines as Ie, FontSourceCommand as Et, loadFont as tt, TextChangeCommand as YA, FontSizeCommand as SA, createElementNS as xA, createElement as de, _loadFontExternalDataURL as At, UpdateWorkflowStateCommand as ht, CommandContext as PA, createCanvas as Me, getSvgElement as xt, LayoutRenderingPurpose as Pt, renderPapyrusComponentAsString as Nt, loadImage as Ht, getDomParser as Rt, toBase64 as Ct, getVariant as NA, generateFrameSVG as HA, getDefaultVariant as He, domParser as Ut, sanitizeSvgTree as Gt, traverse as RA, xmlSerializer as vt, CreateLayoutCommand as UA, AspectType as pe, rehydrateSerializedLayout as ee } from "@spiffcommerce/papyrus";
3
3
  import { AspectType as Ki, AssetType as ji, BringForwardCommand as Vi, BringToBackCommand as Wi, BringToFrontCommand as Xi, CanvasCommand as qi, CommandContext as Zi, CreateElementCommand as $i, CreateLayoutCommand as _i, DeleteElementCommand as es, FontAlignmentCommand as ts, FontColorCommand as As, FontSizeCommand as ns, FontSourceCommand as as, GroupCommand as is, LayoutElementFactory as ss, LayoutElementType as os, MoveCommand as rs, ResizeCommand as cs, RotateCommand as gs, SendBackwardsCommand as ls, StepAspectType as Bs, StepType as ds, TextChangeCommand as ws, UnitOfMeasurement as Es, dataUrlFromExternalUrl as hs, determineCorrectFontSizeAndLines as Cs, findElement as Qs, frameDataCache as us, generate as ms, generateSVGWithUnknownColors as Is, getAttributesFromArrayBuffer as ps, getAxisAlignedBoundingBox as fs, getFrameData as Ds, getSvgElement as Fs, loadFont as Ms, patternImageDataCache as ys, registerFetchImplementation as Ys, registerWindowImplementation as Ss, rehydrateSerializedLayout as xs, setCanvasModule as Ps } from "@spiffcommerce/papyrus";
4
4
  import { setContext as GA } from "@apollo/client/link/context";
5
5
  import { onError as vA } from "@apollo/client/link/error";
@@ -16,32 +16,32 @@ class Tt extends Error {
16
16
  super(e), this.name = this.constructor.name;
17
17
  }
18
18
  }
19
- class le extends Tt {
19
+ class Be extends Tt {
20
20
  constructor(e) {
21
21
  super(`ConfigurationError - ${e}`);
22
22
  }
23
23
  }
24
- class Me extends le {
24
+ class ye extends Be {
25
25
  constructor(e) {
26
26
  super(`Option not Configured: ${e.stepTitle}`), this.optionId = (e == null ? void 0 : e.optionId) || "N/A";
27
27
  }
28
28
  }
29
- class z extends le {
29
+ class z extends Be {
30
30
  constructor(e) {
31
31
  super(`Panel not Found: ${e.panelId}`), this.panelId = (e == null ? void 0 : e.panelId) || "N/A";
32
32
  }
33
33
  }
34
- class _ extends le {
34
+ class _ extends Be {
35
35
  constructor(e) {
36
36
  super(`Asset not found for variant: ${e.name}`), this.variant = e;
37
37
  }
38
38
  }
39
- class ce extends le {
39
+ class ge extends Be {
40
40
  constructor(e) {
41
41
  super(`Resource not found for asset: ${e.name}`), this.asset = e;
42
42
  }
43
43
  }
44
- class ye extends le {
44
+ class Ye extends Be {
45
45
  constructor(e, t) {
46
46
  super(`Workflow Misconfiguration: ${e.stepName} - ${t}`), this.step = e;
47
47
  }
@@ -565,7 +565,7 @@ class _A {
565
565
  this.disabled = e;
566
566
  }
567
567
  }
568
- const ge = new _A(), Kt = F`
568
+ const le = new _A(), Kt = F`
569
569
  fragment OptionFields on Option {
570
570
  id
571
571
  name
@@ -630,11 +630,11 @@ const ge = new _A(), Kt = F`
630
630
  });
631
631
  }), e.data.options;
632
632
  }, An = async (c, e) => (await e).find((A) => A.id === c), nn = async (c) => {
633
- const e = c.map((i) => ge.get({ id: i })), t = c.filter((i, s) => e[s] === void 0);
633
+ const e = c.map((i) => le.get({ id: i })), t = c.filter((i, s) => e[s] === void 0);
634
634
  if (t.length === 0)
635
635
  return Promise.all(e);
636
636
  const A = tn(t), n = t.map(
637
- (i) => ge.set({ id: i }, An(i, A))
637
+ (i) => le.set({ id: i }, An(i, A))
638
638
  ), a = e.filter((i) => i !== void 0);
639
639
  return await Promise.all(a.concat(n));
640
640
  };
@@ -692,7 +692,7 @@ class an {
692
692
  }
693
693
  }
694
694
  const j = new an();
695
- var sn = /* @__PURE__ */ ((c) => (c.Hub = "Hub", c.Shopify = "Shopify", c))(sn || {}), on = /* @__PURE__ */ ((c) => (c[c.Orbit = 0] = "Orbit", c[c.Pan = 1] = "Pan", c))(on || {}), rn = /* @__PURE__ */ ((c) => (c.Manual = "Manual", c.OnStart = "OnStart", c.OnQuit = "OnQuit", c.OnEnd = "OnEnd", c))(rn || {}), cn = /* @__PURE__ */ ((c) => (c.Email = "Email", c.FirstName = "FirstName", c.LastName = "LastName", c.Phone = "Phone", c))(cn || {}), Ye = /* @__PURE__ */ ((c) => (c.Owner = "Owner", c.Approver = "Approver", c.Editor = "Editor", c.Viewer = "Viewer", c))(Ye || {});
695
+ var sn = /* @__PURE__ */ ((c) => (c.Hub = "Hub", c.Shopify = "Shopify", c))(sn || {}), on = /* @__PURE__ */ ((c) => (c[c.Orbit = 0] = "Orbit", c[c.Pan = 1] = "Pan", c))(on || {}), rn = /* @__PURE__ */ ((c) => (c.Manual = "Manual", c.OnStart = "OnStart", c.OnQuit = "OnQuit", c.OnEnd = "OnEnd", c))(rn || {}), cn = /* @__PURE__ */ ((c) => (c.Email = "Email", c.FirstName = "FirstName", c.LastName = "LastName", c.Phone = "Phone", c))(cn || {}), Se = /* @__PURE__ */ ((c) => (c.Owner = "Owner", c.Approver = "Approver", c.Editor = "Editor", c.Viewer = "Viewer", c))(Se || {});
696
696
  const ae = F`
697
697
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
698
698
  id
@@ -953,7 +953,7 @@ const ae = F`
953
953
  }
954
954
  }
955
955
  }
956
- `, de = F`
956
+ `, we = F`
957
957
  ${ae}
958
958
  query ReadTransactions($ids: [String]!) {
959
959
  transactions(ids: $ids) {
@@ -1363,12 +1363,12 @@ function In(c, e, t, A) {
1363
1363
  const s = c, o = Math.max(e.width / t.width, e.height / t.height);
1364
1364
  s.zoom = Math.max(o, c.zoom);
1365
1365
  const r = t.width * s.zoom, g = t.height * s.zoom;
1366
- return s.x = we(c.x, e.width - r, 0), s.y = we(c.y, e.height - g, 0), s;
1366
+ return s.x = Ee(c.x, e.width - r, 0), s.y = Ee(c.y, e.height - g, 0), s;
1367
1367
  }
1368
1368
  const i = c;
1369
- return i.x = we(i.x, -n, e.width), i.y = we(i.y, -a, e.height), i;
1369
+ return i.x = Ee(i.x, -n, e.width), i.y = Ee(i.y, -a, e.height), i;
1370
1370
  }
1371
- function we(c, e, t) {
1371
+ function Ee(c, e, t) {
1372
1372
  return Math.min(Math.max(c, e), t);
1373
1373
  }
1374
1374
  class pn {
@@ -1567,7 +1567,7 @@ class pt {
1567
1567
  if (this.configuration.type === D.ProductOverlay) {
1568
1568
  let l = "";
1569
1569
  if ((o = this.product) != null && o.overlayImageUrl && (l = this.product.overlayImageUrl), i = l, !l)
1570
- throw new ye(this.configuration, "Couldn't find an asset for product overlay step");
1570
+ throw new Ye(this.configuration, "Couldn't find an asset for product overlay step");
1571
1571
  }
1572
1572
  const s = this.evaluateAssetType();
1573
1573
  if (s === v.Image) {
@@ -1610,7 +1610,7 @@ class pt {
1610
1610
  }))()), h = {
1611
1611
  stepName: this.configuration.stepName,
1612
1612
  id: J(),
1613
- cachedObjectURL: await fe(w.svg),
1613
+ cachedObjectURL: await De(w.svg),
1614
1614
  src: l,
1615
1615
  svg: w.svg,
1616
1616
  colors: w.colors,
@@ -1638,7 +1638,7 @@ class pt {
1638
1638
  }
1639
1639
  async trigger() {
1640
1640
  if (!this.configuration.data.regions)
1641
- throw new ye(this.configuration, "Missing regions.");
1641
+ throw new Ye(this.configuration, "Missing regions.");
1642
1642
  if (this.configuration.type === D.SilentIllustration) {
1643
1643
  const e = this.configuration.data.regions.map(this.processRegion);
1644
1644
  return Promise.all(e);
@@ -1724,7 +1724,7 @@ class Dn {
1724
1724
  async () => {
1725
1725
  const u = await g();
1726
1726
  if (!u.link || !u.link)
1727
- throw new ce(u.asset);
1727
+ throw new ge(u.asset);
1728
1728
  C({
1729
1729
  rel: "mpeg4",
1730
1730
  href: u.link
@@ -1745,7 +1745,7 @@ class Dn {
1745
1745
  throw new Ge("Cannot create QR code, URL too long.");
1746
1746
  const h = await fn(w);
1747
1747
  if (s(h), !i.data || !i.data.regions)
1748
- throw new ye(i, "Missing regions.");
1748
+ throw new Ye(i, "Missing regions.");
1749
1749
  const E = await this.regionElements(i), Q = await this.command(h, E, a, i.stepName);
1750
1750
  Q && (Q.command && a.getCommandDispatcher()(Q.command), Q.followup && await Q.followup()), await a.setSelectionsAndElements(i.stepName, [], E, async () => {
1751
1751
  a.updateStorage(i.stepName, {
@@ -1801,7 +1801,7 @@ class Mn {
1801
1801
  const n = A.fileLink;
1802
1802
  if (n)
1803
1803
  return Z(n, !0);
1804
- throw new ce(A);
1804
+ throw new ge(A);
1805
1805
  };
1806
1806
  }
1807
1807
  async init(e, t, A) {
@@ -2034,7 +2034,7 @@ class Mn {
2034
2034
  const A = e.fileLink;
2035
2035
  if (A)
2036
2036
  return A;
2037
- throw new ce(e);
2037
+ throw new ge(e);
2038
2038
  }
2039
2039
  async loadPatternFromAsset(e, t, A) {
2040
2040
  var s;
@@ -2083,7 +2083,7 @@ class yn {
2083
2083
  if (A.length === 0)
2084
2084
  return [];
2085
2085
  try {
2086
- return De(
2086
+ return Fe(
2087
2087
  A[0].id,
2088
2088
  t.getAllLayoutData()
2089
2089
  ).colors;
@@ -2148,7 +2148,7 @@ class yn {
2148
2148
  const i = {};
2149
2149
  for (const [B, l] of a.entries())
2150
2150
  i[B] = { browserValue: l, spotColor: (g = i[B]) == null ? void 0 : g.spotColor };
2151
- const s = fA(e, t, A, i), o = await fe(s), r = [];
2151
+ const s = fA(e, t, A, i), o = await De(s), r = [];
2152
2152
  for (const B of n) {
2153
2153
  for (const [l, d] of a.entries())
2154
2154
  r.push(new Ke(B, l, d));
@@ -2160,7 +2160,7 @@ class yn {
2160
2160
  var d, w;
2161
2161
  if (t.length === 0)
2162
2162
  return;
2163
- const i = De(
2163
+ const i = Fe(
2164
2164
  t[0].id,
2165
2165
  n().map((h) => h.layoutState)
2166
2166
  ), s = { ...i.colors }, o = {};
@@ -2201,7 +2201,7 @@ class yn {
2201
2201
  async selectVariantCommand(e, t, A, n, a) {
2202
2202
  var Q;
2203
2203
  if (!e.data || !e.data.regions)
2204
- throw new ye(e, "Missing regions.");
2204
+ throw new Ye(e, "Missing regions.");
2205
2205
  n(!0);
2206
2206
  const i = A.map((C) => new $(C.id));
2207
2207
  a.setMandatoryFulfilled(e.stepName, !1);
@@ -2210,8 +2210,8 @@ class yn {
2210
2210
  throw new _(t);
2211
2211
  const o = s.fileLink;
2212
2212
  if (!o)
2213
- throw new ce(s);
2214
- const r = await St(await this.getIllustrationBody(o)), g = await fe(r.svg), B = (C) => {
2213
+ throw new ge(s);
2214
+ const r = await St(await this.getIllustrationBody(o)), g = await De(r.svg), B = (C) => {
2215
2215
  const f = a.getLayouts().find((m) => m.panelId === C.panelId);
2216
2216
  if (!f)
2217
2217
  throw new z(C);
@@ -2259,12 +2259,12 @@ class yn {
2259
2259
  };
2260
2260
  }
2261
2261
  }
2262
- const pe = new yn();
2262
+ const fe = new yn();
2263
2263
  class Yn {
2264
2264
  async init(e, t, A) {
2265
2265
  const n = e.option;
2266
2266
  if (!n)
2267
- throw new Me(e);
2267
+ throw new ye(e);
2268
2268
  if (A)
2269
2269
  await this.reload(e, t, A);
2270
2270
  else {
@@ -2282,7 +2282,7 @@ class Yn {
2282
2282
  A.serializableWorkflow.steps
2283
2283
  ), s = Object.values(A.layouts).map((g) => g.elements).flat().filter((g) => g.stepName === e.stepName), o = e.option;
2284
2284
  if (!o)
2285
- throw new Me(e);
2285
+ throw new ye(e);
2286
2286
  if (n != null && n.selectedVariants) {
2287
2287
  const g = n.selectedVariants[0].id;
2288
2288
  if (g) {
@@ -2338,7 +2338,7 @@ class Sn {
2338
2338
  async init(e, t, A) {
2339
2339
  const n = e.option;
2340
2340
  if (!n)
2341
- throw new Me(e);
2341
+ throw new ye(e);
2342
2342
  if (A)
2343
2343
  await this.reload(e, t, A);
2344
2344
  else {
@@ -2710,7 +2710,7 @@ class Rn {
2710
2710
  async init(e, t, A) {
2711
2711
  const n = e.option;
2712
2712
  if (!n)
2713
- throw new Me(e);
2713
+ throw new ye(e);
2714
2714
  if (A)
2715
2715
  await this.reload(e, t, A);
2716
2716
  else {
@@ -2880,16 +2880,16 @@ class Un {
2880
2880
  }
2881
2881
  }
2882
2882
  const Gn = new Un(), Le = 30;
2883
- class Se extends Error {
2883
+ class xe extends Error {
2884
2884
  constructor(e) {
2885
- super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = Se.name;
2885
+ super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
2886
2886
  }
2887
2887
  }
2888
2888
  const vn = ["‘", "’", "“", "”", `
2889
2889
  `];
2890
- class xe extends Error {
2890
+ class Pe extends Error {
2891
2891
  constructor(e) {
2892
- super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
2892
+ super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = Pe.name;
2893
2893
  }
2894
2894
  }
2895
2895
  class kn {
@@ -2965,7 +2965,7 @@ class kn {
2965
2965
  return null;
2966
2966
  }
2967
2967
  findLayoutElements(e, t) {
2968
- return e.getRegionElements(t.stepName).map((a) => De(a.id, e.getAllLayoutData()));
2968
+ return e.getRegionElements(t.stepName).map((a) => Fe(a.id, e.getAllLayoutData()));
2969
2969
  }
2970
2970
  /**
2971
2971
  * Get the colors that can be used for a given text step.
@@ -3076,7 +3076,7 @@ class kn {
3076
3076
  for (const l of t) {
3077
3077
  if (!l.fontData)
3078
3078
  throw new k("Failed to resolve font data for text.");
3079
- const [d, w] = me(
3079
+ const [d, w] = Ie(
3080
3080
  l.fontSize,
3081
3081
  l.fontData,
3082
3082
  { left: l.x, top: l.y, width: l.width, height: l.height, rotation: l.rotation, panelId: "" },
@@ -3172,7 +3172,7 @@ class kn {
3172
3172
  throw new _(e);
3173
3173
  const A = t.fileLink;
3174
3174
  if (!A)
3175
- throw new ce(t);
3175
+ throw new ge(t);
3176
3176
  const n = await tt(A);
3177
3177
  return {
3178
3178
  assetUrl: A,
@@ -3254,7 +3254,7 @@ class kn {
3254
3254
  const d = i.getLayouts().find((E) => E.panelId === B.panelId), w = J();
3255
3255
  try {
3256
3256
  if (!d)
3257
- throw new xe("Failed to find layout for region: " + B.panelId);
3257
+ throw new Pe("Failed to find layout for region: " + B.panelId);
3258
3258
  const E = A.colorOption;
3259
3259
  let Q;
3260
3260
  if (E && E.variants) {
@@ -3293,7 +3293,7 @@ class kn {
3293
3293
  }, m = [], I = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
3294
3294
  if (!u.fontData)
3295
3295
  throw new k("Failed to resolve font data for text.");
3296
- const [M, y] = me(
3296
+ const [M, y] = Ie(
3297
3297
  u.fontSize,
3298
3298
  u.fontData,
3299
3299
  {
@@ -3321,10 +3321,10 @@ class kn {
3321
3321
  fontData: n
3322
3322
  };
3323
3323
  } catch (E) {
3324
- throw console.log(E), new Se("Error adding font to region");
3324
+ throw console.log(E), new xe("Error adding font to region");
3325
3325
  }
3326
3326
  }, g = await Promise.all(A.regions.map(r)).catch((B) => {
3327
- throw B instanceof Se ? (Gn.setLatestToast("Failed to load font.", Pe.Error), B) : B instanceof xe ? B : new Error(B);
3327
+ throw B instanceof xe ? (Gn.setLatestToast("Failed to load font.", Ne.Error), B) : B instanceof Pe ? B : new Error(B);
3328
3328
  });
3329
3329
  return await i.setSelectionsAndElements(
3330
3330
  e,
@@ -3354,7 +3354,7 @@ class kn {
3354
3354
  const B = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), l = this.getProcessedInput(B, e.data, s), d = i.getRegionElements(e.stepName), w = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
3355
3355
  for (const u of d)
3356
3356
  if (u.region) {
3357
- const [m, I] = me(
3357
+ const [m, I] = Ie(
3358
3358
  t,
3359
3359
  A,
3360
3360
  u.region,
@@ -4688,13 +4688,13 @@ function AA(c, e, t) {
4688
4688
  On(e, t, `bgdef-${A}`), c.appendChild(Tn(`#bgdef-${A}`));
4689
4689
  }
4690
4690
  const nA = (c, e, t, A) => {
4691
- const n = Be("filter");
4691
+ const n = de("filter");
4692
4692
  n.setAttribute("id", A), n.setAttribute("height", "200%"), n.setAttribute("width", "200%"), n.setAttribute("x", "-50%"), n.setAttribute("y", "-50%");
4693
- const a = Be("feOffset");
4693
+ const a = de("feOffset");
4694
4694
  n.appendChild(a), a.setAttribute("result", "offOut"), a.setAttribute("in", "SourceAlpha"), a.setAttribute("dx", `${c}`), a.setAttribute("dy", `${e}`);
4695
- const i = Be("feGaussianBlur");
4695
+ const i = de("feGaussianBlur");
4696
4696
  n.appendChild(i), i.setAttribute("result", "blurOut"), i.setAttribute("in", "offOut"), i.setAttribute("stdDeviation", `${t}`);
4697
- const s = Be("feBlend");
4697
+ const s = de("feBlend");
4698
4698
  return n.appendChild(s), s.setAttribute("in", "SourceGraphic"), s.setAttribute("in2", "blurOut"), s.setAttribute("mode", "normal"), n;
4699
4699
  }, aA = (c) => {
4700
4700
  let e = c;
@@ -4971,7 +4971,7 @@ async function iA(c) {
4971
4971
  return new Xn();
4972
4972
  throw new k(`Failed to resolve Module, Module ${c} not found`);
4973
4973
  }
4974
- var Pe = /* @__PURE__ */ ((c) => (c.Error = "Error", c.Warning = "Warning", c.Info = "Info", c))(Pe || {});
4974
+ var Ne = /* @__PURE__ */ ((c) => (c.Error = "Error", c.Warning = "Warning", c.Info = "Info", c))(Ne || {});
4975
4975
  const qn = 1e3;
4976
4976
  class Dt extends Wt {
4977
4977
  constructor(e) {
@@ -5457,7 +5457,7 @@ class Zn {
5457
5457
  break;
5458
5458
  case D.Illustration:
5459
5459
  A.push(
5460
- pe.init(o, this, this.reloadedState)
5460
+ fe.init(o, this, this.reloadedState)
5461
5461
  );
5462
5462
  break;
5463
5463
  case D.Material:
@@ -5770,7 +5770,7 @@ class $n extends W {
5770
5770
  */
5771
5771
  async selectVariant(e) {
5772
5772
  if (!this.getUpdateState() && this.getCurrentVariant() !== e)
5773
- return pe.selectVariant(
5773
+ return fe.selectVariant(
5774
5774
  this.step,
5775
5775
  e.getResource(),
5776
5776
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -5786,7 +5786,7 @@ class $n extends W {
5786
5786
  const e = this.manager.getRegionElements(this.step.stepName) || [];
5787
5787
  if (e.length !== 0)
5788
5788
  try {
5789
- return De(e[0].id, this.manager.getAllLayoutData()).colors;
5789
+ return Fe(e[0].id, this.manager.getAllLayoutData()).colors;
5790
5790
  } catch (t) {
5791
5791
  console.error(t);
5792
5792
  }
@@ -5796,7 +5796,7 @@ class $n extends W {
5796
5796
  */
5797
5797
  setColor(e, t) {
5798
5798
  const A = /* @__PURE__ */ new Map();
5799
- return A.set(e, t), pe.changeColors(
5799
+ return A.set(e, t), fe.changeColors(
5800
5800
  this.step,
5801
5801
  this.manager.getRegionElements(this.step.stepName),
5802
5802
  this.manager,
@@ -5808,7 +5808,7 @@ class $n extends W {
5808
5808
  return this.step.data.colorOption;
5809
5809
  }
5810
5810
  getAvailableColors() {
5811
- return this.step.data.colorPickerEnabled ? pe.availableColors(this.step, this.manager) : Promise.resolve([]);
5811
+ return this.step.data.colorPickerEnabled ? fe.availableColors(this.step, this.manager) : Promise.resolve([]);
5812
5812
  }
5813
5813
  isColorPickerEnabled() {
5814
5814
  return this.step.data.colorPickerEnabled;
@@ -5956,7 +5956,7 @@ class aa extends W {
5956
5956
  ...this.manager.getInformationResults(),
5957
5957
  {
5958
5958
  message: "An issue has occured with test",
5959
- messageType: Pe.Error,
5959
+ messageType: Ne.Error,
5960
5960
  stepID: this.step.stepName
5961
5961
  }
5962
5962
  ]);
@@ -6051,7 +6051,7 @@ class aa extends W {
6051
6051
  ...B,
6052
6052
  {
6053
6053
  message: `${l} - ${this.step.stepTitle}`,
6054
- messageType: Pe.Error,
6054
+ messageType: Ne.Error,
6055
6055
  stepID: this.step.stepName
6056
6056
  }
6057
6057
  ]);
@@ -6122,7 +6122,7 @@ class ia extends W {
6122
6122
  return this.step.data.content;
6123
6123
  }
6124
6124
  }
6125
- class Ee {
6125
+ class he {
6126
6126
  static get(e, t) {
6127
6127
  switch (t.type) {
6128
6128
  case D.Information:
@@ -6590,7 +6590,7 @@ const Te = new da(), wa = F`
6590
6590
  }
6591
6591
  `;
6592
6592
  var Ea = /* @__PURE__ */ ((c) => (c.QuantityChanged = "QuantityChanged", c.PriceBreakChanged = "PriceBreakChanged", c))(Ea || {});
6593
- class he {
6593
+ class Ce {
6594
6594
  constructor(e, t) {
6595
6595
  var n;
6596
6596
  if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = Jt(async () => {
@@ -6676,7 +6676,7 @@ class he {
6676
6676
  }
6677
6677
  let a = 2048;
6678
6678
  t && t <= 2048 && (a = t);
6679
- const i = Fe(a, a), s = this.commandContext.getAllLayouts(), o = A.defaultPreviewPanelIndex || 0, r = A.panels[o], g = s.find((u) => {
6679
+ const i = Me(a, a), s = this.commandContext.getAllLayouts(), o = A.defaultPreviewPanelIndex || 0, r = A.panels[o], g = s.find((u) => {
6680
6680
  var m;
6681
6681
  return ((m = u.layoutState) == null ? void 0 : m.layout.panelId) === (r == null ? void 0 : r.name);
6682
6682
  }) || s[0], B = g.layoutState.layout.previewRegion ? {
@@ -6701,7 +6701,7 @@ class he {
6701
6701
  await (await kt.from(d, h, {
6702
6702
  anonymousCrossOrigin: !0,
6703
6703
  ignoreDimensions: !1,
6704
- createCanvas: Fe,
6704
+ createCanvas: Me,
6705
6705
  createImage: Ht,
6706
6706
  DOMParser: Rt(),
6707
6707
  fetch: $e
@@ -6716,7 +6716,7 @@ class he {
6716
6716
  const A = this.cachedStepHandles.get(t.stepName);
6717
6717
  if (A)
6718
6718
  return A;
6719
- const n = Ee.get(this.getWorkflowManager(), t);
6719
+ const n = he.get(this.getWorkflowManager(), t);
6720
6720
  return this.cachedStepHandles.set(t.stepName, n), n;
6721
6721
  }
6722
6722
  getSteps() {
@@ -6813,10 +6813,10 @@ class he {
6813
6813
  getStepByName(e) {
6814
6814
  const t = this.getWorkflowManager().getWorkflow().steps.find((A) => A.stepTitle === e);
6815
6815
  if (!(!t || !this.stepHasHandle(t)))
6816
- return Ee.get(this.getWorkflowManager(), t);
6816
+ return he.get(this.getWorkflowManager(), t);
6817
6817
  }
6818
6818
  getStepsByType(e) {
6819
- return this.getWorkflowManager().getWorkflow().steps.filter((t) => t.type === e).map((t) => Ee.get(this.getWorkflowManager(), t));
6819
+ return this.getWorkflowManager().getWorkflow().steps.filter((t) => t.type === e).map((t) => he.get(this.getWorkflowManager(), t));
6820
6820
  }
6821
6821
  getStepsByScene(e) {
6822
6822
  if (!this.getWorkflowManager().getWorkflow().stepGroups.find((A) => A.name === e.name))
@@ -6825,7 +6825,7 @@ class he {
6825
6825
  );
6826
6826
  return e.stepIds.map(
6827
6827
  (A) => this.getWorkflowManager().getWorkflow().steps.find((n) => n.stepName === A)
6828
- ).filter((A) => this.stepHasHandle(A)).map((A) => Ee.get(this.getWorkflowManager(), A));
6828
+ ).filter((A) => this.stepHasHandle(A)).map((A) => he.get(this.getWorkflowManager(), A));
6829
6829
  }
6830
6830
  async attachCustomerDetails(e) {
6831
6831
  return this.assignCustomerDetails({ emailAddress: e.email });
@@ -7386,7 +7386,7 @@ const ha = [
7386
7386
  y: E.top
7387
7387
  };
7388
7388
  if (g) {
7389
- const [f, u] = me(
7389
+ const [f, u] = Ie(
7390
7390
  A.data.size || i,
7391
7391
  g,
7392
7392
  E,
@@ -7479,7 +7479,7 @@ const ha = [
7479
7479
  );
7480
7480
  return n;
7481
7481
  };
7482
- class Ce {
7482
+ class Qe {
7483
7483
  constructor(e) {
7484
7484
  this.handleCompleteRender = null;
7485
7485
  const t = /* @__PURE__ */ new Map();
@@ -7496,7 +7496,7 @@ class Ce {
7496
7496
  }
7497
7497
  }
7498
7498
  const ya = () => new Promise((c, e) => {
7499
- const A = Fe().getContext("webgl2");
7499
+ const A = Me().getContext("webgl2");
7500
7500
  c(!!A);
7501
7501
  }), Ya = ya();
7502
7502
  class Sa {
@@ -7634,7 +7634,7 @@ class xa extends Wt {
7634
7634
  ignoreClear: !0,
7635
7635
  ignoreMouse: !0,
7636
7636
  enableRedraw: !1,
7637
- createCanvas: Fe,
7637
+ createCanvas: Me,
7638
7638
  createImage: Ht,
7639
7639
  DOMParser: Rt(),
7640
7640
  fetch: $e
@@ -7989,13 +7989,13 @@ class Ka {
7989
7989
  }
7990
7990
  async createHandle(e) {
7991
7991
  switch (e.type) {
7992
- case Ie.FileUpload:
7992
+ case pe.FileUpload:
7993
7993
  return new ja(this.bundle, e);
7994
- case Ie.Option: {
7994
+ case pe.Option: {
7995
7995
  const t = e.entityId ? await j.getOption(e.entityId) : void 0;
7996
7996
  return (t == null ? void 0 : t.type) === "Color" ? new Wa(this.bundle, e, t) : new BA(this.bundle, e, t);
7997
7997
  }
7998
- case Ie.Text:
7998
+ case pe.Text:
7999
7999
  return new Va(this.bundle, e);
8000
8000
  }
8001
8001
  }
@@ -8506,10 +8506,20 @@ class Oe {
8506
8506
  if (t) {
8507
8507
  const n = e.find((a) => a.workflowName === t);
8508
8508
  if (n)
8509
- return new Ne(n);
8509
+ return new ce(n);
8510
8510
  }
8511
8511
  const A = e[0];
8512
- return new Ne(A);
8512
+ return new ce(A);
8513
+ }
8514
+ /**
8515
+ * @returns All workflows associated with this Product.
8516
+ */
8517
+ getAllWorkflows() {
8518
+ if ((this.product.workflows || []).length === 0)
8519
+ throw new U(
8520
+ "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
8521
+ );
8522
+ return this.product.workflows.sort((t, A) => (t.index ?? 0) - (A.index ?? 0)).map((t) => new ce(t));
8513
8523
  }
8514
8524
  /**
8515
8525
  * A list of all integrations this product is connected to.
@@ -8556,7 +8566,7 @@ class Oe {
8556
8566
  ), (s = A == null ? void 0 : A.additionalIntegrationProduct) != null && s.product ? t + (A.additionalIntegrationProduct.product.basePrice || 0) : t;
8557
8567
  }
8558
8568
  }
8559
- class Ne {
8569
+ class ce {
8560
8570
  constructor(e) {
8561
8571
  this.workflow = e;
8562
8572
  }
@@ -8691,7 +8701,7 @@ class Ft {
8691
8701
  return this.globalPropertyStateManager;
8692
8702
  }
8693
8703
  async getGlobalPropertyTotalSubunits() {
8694
- return (await this.globalPropertyHandleService.getHandles()).filter((A) => A.getType() === Ie.Option).map((A) => {
8704
+ return (await this.globalPropertyHandleService.getHandles()).filter((A) => A.getType() === pe.Option).map((A) => {
8695
8705
  var n;
8696
8706
  return ((n = A.getCurrentVariant()) == null ? void 0 : n.getPrice()) || 0;
8697
8707
  }).reduce((A, n) => A + n, 0);
@@ -8876,7 +8886,7 @@ class Ft {
8876
8886
  variables: {
8877
8887
  id: this.id,
8878
8888
  details: e,
8879
- type: t || Ye.Owner
8889
+ type: t || Se.Owner
8880
8890
  },
8881
8891
  context: {
8882
8892
  bundleOwnerId: this.ownerId
@@ -9146,14 +9156,14 @@ class ii {
9146
9156
  * @returns The nodes contained within the execution.
9147
9157
  */
9148
9158
  getNodes() {
9149
- return this.execution.nodes.map((e) => new Qe(e));
9159
+ return this.execution.nodes.map((e) => new ue(e));
9150
9160
  }
9151
9161
  /**
9152
9162
  * @param type The type of node to return.
9153
9163
  * @returns A list of nodes matching the requested type.
9154
9164
  */
9155
9165
  getNodesByType(e) {
9156
- return this.execution.nodes.filter((t) => t.type === e).map((t) => new Qe(t));
9166
+ return this.execution.nodes.filter((t) => t.type === e).map((t) => new ue(t));
9157
9167
  }
9158
9168
  /**
9159
9169
  * @returns A list of input nodes that exist in this execution.
@@ -9162,7 +9172,7 @@ class ii {
9162
9172
  return this.execution.nodes.filter(
9163
9173
  (e) => e.type === "StartTerminal"
9164
9174
  /* StartTerminal */
9165
- ).map((e) => new Qe(e));
9175
+ ).map((e) => new ue(e));
9166
9176
  }
9167
9177
  /**
9168
9178
  * @returns A list of out put nodes that exist in this execution.
@@ -9171,7 +9181,7 @@ class ii {
9171
9181
  return this.execution.nodes.filter(
9172
9182
  (e) => e.type === "EndTerminal"
9173
9183
  /* EndTerminal */
9174
- ).map((e) => new Qe(e));
9184
+ ).map((e) => new ue(e));
9175
9185
  }
9176
9186
  /**
9177
9187
  * @returns A date object representing the point in time this execution completed.
@@ -9188,7 +9198,7 @@ class ii {
9188
9198
  return new Date(this.execution.failedAt);
9189
9199
  }
9190
9200
  }
9191
- class Qe {
9201
+ class ue {
9192
9202
  constructor(e) {
9193
9203
  this.node = e;
9194
9204
  }
@@ -9267,7 +9277,7 @@ class Mt {
9267
9277
  throw new Error(
9268
9278
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
9269
9279
  );
9270
- return new Ne(e[0]);
9280
+ return new ce(e[0]);
9271
9281
  }
9272
9282
  getAllWorkflows() {
9273
9283
  if (!this.integrationProduct.product)
@@ -9277,7 +9287,7 @@ class Mt {
9277
9287
  throw new Error(
9278
9288
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
9279
9289
  );
9280
- return e.sort((t, A) => (t.index ?? 0) - (A.index ?? 0)).map((t) => new Ne(t));
9290
+ return e.sort((t, A) => (t.index ?? 0) - (A.index ?? 0)).map((t) => new ce(t));
9281
9291
  }
9282
9292
  }
9283
9293
  const oi = F`
@@ -9929,7 +9939,7 @@ const oi = F`
9929
9939
  );
9930
9940
  for (let a = 0; a < A.length; ++a) {
9931
9941
  const i = A[a];
9932
- i.src && i.svg && (i.cachedObjectURL = await fe(i.svg));
9942
+ i.src && i.svg && (i.cachedObjectURL = await De(i.svg));
9933
9943
  }
9934
9944
  const n = c.layouts[t].elements.filter((a) => a.type === v.Textbox);
9935
9945
  for (let a = 0; a < n.length; ++a) {
@@ -9954,7 +9964,7 @@ const oi = F`
9954
9964
  var s, o, r;
9955
9965
  delete i.data.__typename, (s = i.option) != null && s.id && ((o = i.option.defaultVariant) != null && o.asset && T.cacheAsset(i.option.defaultVariant.asset), i.option.colorProfile && T.cacheAsset(i.option.colorProfile), (r = i.option.variants) == null || r.forEach((g) => {
9956
9966
  g.asset && T.cacheAsset(g.asset), g.displayImage && T.cacheAsset(g.displayImage), g.thumbnail && T.cacheAsset(g.thumbnail), g.material && T.cacheMaterial(g.material);
9957
- }), ge.set({ id: i.option.id }, Promise.resolve(i.option)));
9967
+ }), le.set({ id: i.option.id }, Promise.resolve(i.option)));
9958
9968
  });
9959
9969
  }), A;
9960
9970
  }, Ii = async (c, e) => {
@@ -9963,14 +9973,14 @@ const oi = F`
9963
9973
  throw new Error(`Workflow not found: ${c}`);
9964
9974
  return A;
9965
9975
  }, wA = async (c, e) => {
9966
- const t = c.map((s) => ge.get({ id: s, options: e })), A = c.filter((s, o) => t[o] === void 0);
9976
+ const t = c.map((s) => le.get({ id: s, options: e })), A = c.filter((s, o) => t[o] === void 0);
9967
9977
  if (A.length === 0)
9968
9978
  return Promise.all(t);
9969
9979
  const n = mi(A, e), a = A.map(
9970
- (s) => ge.set({ id: s, options: e }, Ii(s, n))
9980
+ (s) => le.set({ id: s, options: e }, Ii(s, n))
9971
9981
  ), i = t.filter((s) => s !== void 0);
9972
9982
  return await Promise.all(i.concat(a));
9973
- }, ue = async (c, e) => (await wA([c], e))[0], pi = (c) => c.sort((e, t) => e.index - t.index).map((e) => ({
9983
+ }, me = async (c, e) => (await wA([c], e))[0], pi = (c) => c.sort((e, t) => e.index - t.index).map((e) => ({
9974
9984
  id: J(),
9975
9985
  panelId: e.name,
9976
9986
  name: e.name,
@@ -10033,7 +10043,7 @@ class fi {
10033
10043
  var n, a;
10034
10044
  const t = x.getMap("bundleOwnerIds");
10035
10045
  if (t != null && t.has(e))
10036
- return Promise.resolve({ success: !0, stakeholderType: Ye.Owner });
10046
+ return Promise.resolve({ success: !0, stakeholderType: Se.Owner });
10037
10047
  const A = x.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
10038
10048
  if (A.has(e)) {
10039
10049
  const i = A.get(e), o = (x.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map()).get(i);
@@ -10082,7 +10092,7 @@ class fi {
10082
10092
  return Promise.resolve({ success: !1, transactionReadOnly: !0 });
10083
10093
  const i = x.getMap("transactionOwnerIds");
10084
10094
  if (i != null && i.has(e))
10085
- return Promise.resolve({ success: !0, stakeholderType: Ye.Owner });
10095
+ return Promise.resolve({ success: !0, stakeholderType: Se.Owner });
10086
10096
  const s = x.getMap("transactionCustomerIds");
10087
10097
  if (s != null && s.has(e)) {
10088
10098
  const E = s.get(e);
@@ -10319,7 +10329,7 @@ class fi {
10319
10329
  const E = P.getShadowGraphqlClient();
10320
10330
  if (n.type === "transaction") {
10321
10331
  const { transactionId: f, readOnly: u } = n, m = await E.query({
10322
- query: de,
10332
+ query: we,
10323
10333
  variables: {
10324
10334
  ids: [f]
10325
10335
  },
@@ -10331,7 +10341,7 @@ class fi {
10331
10341
  const I = (C = m.data) == null ? void 0 : C.transactions[0];
10332
10342
  if (!I.workflowId)
10333
10343
  throw new U("Existing transaction has no workflow ID.");
10334
- const p = await ue(I.workflowId);
10344
+ const p = await me(I.workflowId);
10335
10345
  if (!I.product)
10336
10346
  throw new U("Failed to load transaction, product not available.");
10337
10347
  return { transaction: I, workflow: p, readOnly: u };
@@ -10359,7 +10369,7 @@ class fi {
10359
10369
  if (!y.product)
10360
10370
  throw new U("Failed to create transaction, product not available.");
10361
10371
  return y;
10362
- }, u = ue(n.workflowId, n == null ? void 0 : n.graphql), [m, I] = await Promise.all([f(), u]);
10372
+ }, u = me(n.workflowId, n == null ? void 0 : n.graphql), [m, I] = await Promise.all([f(), u]);
10363
10373
  return { transaction: m, workflow: I };
10364
10374
  }
10365
10375
  throw new U("No workflow ID provided.");
@@ -10390,7 +10400,7 @@ class fi {
10390
10400
  r.transaction,
10391
10401
  r.workflow
10392
10402
  );
10393
- if (r.renderableContextService = new Ce(
10403
+ if (r.renderableContextService = new Qe(
10394
10404
  r.layouts
10395
10405
  ), n.previewService ? (r.previewService = n.previewService, (d = r.product) != null && d.modelUrl && (r.modelContainer = r.previewService.loadModel({
10396
10406
  model: r.product.modelUrl,
@@ -10404,7 +10414,7 @@ class fi {
10404
10414
  } else
10405
10415
  r.isReloadedTransaction = !0;
10406
10416
  this.initialized = !0, this.experienceOptions = r;
10407
- const g = new he(this, r);
10417
+ const g = new Ce(this, r);
10408
10418
  return await g.getWorkflowManager().getInitializationPromise(), n.type !== "transaction" && this.customer && await g.attachCustomerDetails({ email: this.customer.emailAddress }), g;
10409
10419
  }
10410
10420
  /**
@@ -10422,7 +10432,7 @@ class fi {
10422
10432
  if (m.length === 0)
10423
10433
  return [];
10424
10434
  const I = m.map((Y) => Y.option.transactionId), p = await A.query({
10425
- query: de,
10435
+ query: we,
10426
10436
  variables: {
10427
10437
  ids: I
10428
10438
  },
@@ -10502,13 +10512,13 @@ class fi {
10502
10512
  H.transaction,
10503
10513
  H.workflow
10504
10514
  );
10505
- return H.renderableContextService = new Ce(
10515
+ return H.renderableContextService = new Qe(
10506
10516
  H.layouts
10507
10517
  ), H.delayWorkflowStateSync = !0, this.initialized = !0, this.experienceOptions = H, { experienceOptions: H, index: y, options: Y };
10508
10518
  });
10509
10519
  x.setMap("transactionOwnerIds", h);
10510
10520
  const f = (await Promise.all(E)).sort((m, I) => m.index - I.index).map(async (m) => {
10511
- const { experienceOptions: I, options: p } = m, M = new he(this, I);
10521
+ const { experienceOptions: I, options: p } = m, M = new Ce(this, I);
10512
10522
  return await M.getWorkflowManager().getInitializationPromise(), p.type !== "transaction" && this.customer && await M.attachCustomerDetails({ email: this.customer.emailAddress }), M;
10513
10523
  }), u = await Promise.all(f);
10514
10524
  return u.forEach((m) => m.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), u;
@@ -10563,7 +10573,7 @@ class fi {
10563
10573
  const A = P.getShadowGraphqlClient(), n = async () => {
10564
10574
  var d, w;
10565
10575
  const l = (d = (await A.query({
10566
- query: de,
10576
+ query: we,
10567
10577
  variables: { ids: [e] },
10568
10578
  fetchPolicy: "no-cache",
10569
10579
  errorPolicy: "all"
@@ -10587,7 +10597,7 @@ class fi {
10587
10597
  const a = x.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = a.get(e);
10588
10598
  if (i) {
10589
10599
  const l = (s = (await A.query({
10590
- query: de,
10600
+ query: we,
10591
10601
  variables: {
10592
10602
  ids: [e]
10593
10603
  },
@@ -10638,16 +10648,16 @@ class fi {
10638
10648
  if (!this.initialized || !this.experienceOptions)
10639
10649
  throw new U("Cannot launch experience: Not initialized.");
10640
10650
  if (this.experienceOptions.transaction.workflowId) {
10641
- const o = await ue(this.experienceOptions.transaction.workflowId);
10651
+ const o = await me(this.experienceOptions.transaction.workflowId);
10642
10652
  if (this.experienceOptions.workflow = o, this.experienceOptions.transaction.workflowState) {
10643
10653
  const g = JSON.parse(this.experienceOptions.transaction.workflowState);
10644
10654
  this.experienceOptions.layouts = Object.values(g.layouts).map((B) => B.layout), await ee(g), await te(g), this.experienceOptions.reloadedState = g;
10645
10655
  }
10646
- this.experienceOptions.previewService = A && A(o), this.experienceOptions.renderableContextService = new Ce(this.experienceOptions.layouts), (n = this.experienceOptions.product) != null && n.modelUrl && (this.experienceOptions.modelContainer = (a = this.experienceOptions.previewService) == null ? void 0 : a.loadModel({
10656
+ this.experienceOptions.previewService = A && A(o), this.experienceOptions.renderableContextService = new Qe(this.experienceOptions.layouts), (n = this.experienceOptions.product) != null && n.modelUrl && (this.experienceOptions.modelContainer = (a = this.experienceOptions.previewService) == null ? void 0 : a.loadModel({
10647
10657
  model: this.experienceOptions.product.modelUrl,
10648
10658
  contextService: this.experienceOptions.renderableContextService
10649
10659
  }));
10650
- const r = new he(this, this.experienceOptions);
10660
+ const r = new Ce(this, this.experienceOptions);
10651
10661
  return await r.getWorkflowManager().getInitializationPromise(), r;
10652
10662
  }
10653
10663
  if (e) {
@@ -10660,7 +10670,7 @@ class fi {
10660
10670
  context: {
10661
10671
  transactionOwnerId: r
10662
10672
  }
10663
- }), B = ue(e);
10673
+ }), B = me(e);
10664
10674
  if (await Promise.all([g, B]), this.experienceOptions.workflow = await B, t) {
10665
10675
  const d = JSON.parse(t);
10666
10676
  this.experienceOptions.layouts = Object.values(d.layouts).map((w) => w.layout), await ee(d), await te(d), this.experienceOptions.reloadedState = d;
@@ -10669,11 +10679,11 @@ class fi {
10669
10679
  this.experienceOptions.transaction,
10670
10680
  this.experienceOptions.workflow
10671
10681
  );
10672
- this.experienceOptions.previewService = A && A(await B), this.experienceOptions.renderableContextService = new Ce(this.experienceOptions.layouts), (i = this.experienceOptions.product) != null && i.modelUrl && (this.experienceOptions.modelContainer = (s = this.experienceOptions.previewService) == null ? void 0 : s.loadModel({
10682
+ this.experienceOptions.previewService = A && A(await B), this.experienceOptions.renderableContextService = new Qe(this.experienceOptions.layouts), (i = this.experienceOptions.product) != null && i.modelUrl && (this.experienceOptions.modelContainer = (s = this.experienceOptions.previewService) == null ? void 0 : s.loadModel({
10673
10683
  model: this.experienceOptions.product.modelUrl,
10674
10684
  contextService: this.experienceOptions.renderableContextService
10675
10685
  }));
10676
- const l = new he(this, this.experienceOptions);
10686
+ const l = new Ce(this, this.experienceOptions);
10677
10687
  return await l.getWorkflowManager().getInitializationPromise(), l;
10678
10688
  }
10679
10689
  throw new U("No workflow ID provided.");
@@ -10928,7 +10938,7 @@ export {
10928
10938
  _i as CreateLayoutCommand,
10929
10939
  es as DeleteElementCommand,
10930
10940
  ja as FileUploadGlobalPropertyHandle,
10931
- Qe as FlowExecutionNodeResult,
10941
+ ue as FlowExecutionNodeResult,
10932
10942
  ii as FlowExecutionResult,
10933
10943
  ai as FlowService,
10934
10944
  ts as FontAlignmentCommand,
@@ -10941,7 +10951,7 @@ export {
10941
10951
  gt as GlobalPropertyHandle,
10942
10952
  is as GroupCommand,
10943
10953
  $n as IllustrationStepHandle,
10944
- Pe as InformationMessageType,
10954
+ Ne as InformationMessageType,
10945
10955
  ia as InformationStepHandle,
10946
10956
  Mt as IntegrationProduct,
10947
10957
  sn as IntegrationType,
@@ -10949,30 +10959,30 @@ export {
10949
10959
  os as LayoutElementType,
10950
10960
  z as LayoutNotFoundError,
10951
10961
  _n as MaterialStepHandle,
10952
- ye as MisconfigurationError,
10962
+ Ye as MisconfigurationError,
10953
10963
  Ti as MockWorkflowManager,
10954
10964
  ea as ModelStepHandle,
10955
10965
  rs as MoveCommand,
10956
10966
  dA as ObjectInput,
10957
10967
  si as ObjectInputType,
10958
10968
  BA as OptionGlobalPropertyHandle,
10959
- Me as OptionNotFoundError,
10969
+ ye as OptionNotFoundError,
10960
10970
  oe as ParseError,
10961
10971
  ta as PictureStepHandle,
10962
10972
  on as ProductCameraRig,
10963
10973
  ei as ProductCollection,
10964
- Ne as ProductWorkflow,
10965
- ge as PromiseCache,
10974
+ ce as ProductWorkflow,
10975
+ le as PromiseCache,
10966
10976
  Xt as PromiseQueue,
10967
10977
  Aa as QuestionStepHandle,
10968
10978
  Wt as QueueablePromise,
10969
10979
  cs as ResizeCommand,
10970
- ce as ResourceNotFoundError,
10980
+ ge as ResourceNotFoundError,
10971
10981
  gs as RotateCommand,
10972
10982
  ls as SendBackwardsCommand,
10973
10983
  na as ShapeStepHandle,
10974
10984
  fi as SpiffCommerceClient,
10975
- Ye as StakeholderType,
10985
+ Se as StakeholderType,
10976
10986
  Bs as StepAspectType,
10977
10987
  W as StepHandle,
10978
10988
  ds as StepType,
@@ -10986,7 +10996,7 @@ export {
10986
10996
  Es as UnitOfMeasurement,
10987
10997
  X as Variant,
10988
10998
  Ea as WorkflowExperienceEventType,
10989
- he as WorkflowExperienceImpl,
10999
+ Ce as WorkflowExperienceImpl,
10990
11000
  T as assetService,
10991
11001
  la as createDesign,
10992
11002
  hs as dataUrlFromExternalUrl,
@@ -11005,10 +11015,10 @@ export {
11005
11015
  In as getBoundedOffsets,
11006
11016
  Ds as getFrameData,
11007
11017
  Fs as getSvgElement,
11008
- ue as getWorkflow,
11018
+ me as getWorkflow,
11009
11019
  wA as getWorkflows,
11010
11020
  P as graphQlManager,
11011
- pe as illustrationStepService,
11021
+ fe as illustrationStepService,
11012
11022
  Ms as loadFont,
11013
11023
  Zt as materialStepService,
11014
11024
  $t as modelStepService,