@spiffcommerce/core 28.0.1-beta.2bb92e7d-b050-5d55-9e14-866d5d3029a3 → 28.0.1-beta.bfc4858f-0e0f-569a-aec4-7fcae31d702c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import yt from "lodash.clonedeep";
11
11
  import { toString as on } from "qrcode";
12
12
  import gr from "svg-path-bbox";
13
13
  import { parse as Xe } from "opentype.js";
14
- import { jsx as x, jsxs as ct, Fragment as Gt } from "preact/jsx-runtime";
14
+ import { jsx as x, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
15
15
  import pr from "handlebars";
16
16
  import { dataUriToBuffer as fr } from "data-uri-to-buffer";
17
17
  import xa from "lodash.chunk";
@@ -23,7 +23,7 @@ import { split as Ze } from "unicode-default-word-boundary";
23
23
  import cn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), z = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(z || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), Sr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Sr || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), vr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(vr || {}), Er = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Br = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Br || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Ir = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Ir || {});
26
+ var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), G = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(G || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), Sr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Sr || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), vr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(vr || {}), Er = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Br = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Br || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Ir = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Ir || {});
27
27
  class dn extends Error {
28
28
  constructor(t) {
29
29
  super(t), this.name = this.constructor.name;
@@ -64,7 +64,7 @@ class De extends dn {
64
64
  super(`ImplementationError - ${t}`);
65
65
  }
66
66
  }
67
- class G extends De {
67
+ class z extends De {
68
68
  constructor(t) {
69
69
  super(`Unhandled Behavior Encountered: ${t}`);
70
70
  }
@@ -303,7 +303,7 @@ const Lr = (r) => {
303
303
  a.origin === t && (window.removeEventListener("message", e), r(a.data));
304
304
  };
305
305
  window.parent !== window && (window.addEventListener("message", e, !1), window.parent.postMessage("ready", t));
306
- }), zr = async () => {
306
+ }), Gr = async () => {
307
307
  const r = {
308
308
  applicationKey: ma,
309
309
  customerToken: Or,
@@ -311,7 +311,7 @@ const Lr = (r) => {
311
311
  };
312
312
  return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Vr(), ...r } : r;
313
313
  };
314
- async function Gr(r, t) {
314
+ async function zr(r, t) {
315
315
  const e = mt.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";
316
316
  let n = await rt(r, { ...t, redirect: "manual" });
317
317
  return n.type === "opaqueredirect" && (typeof r != "string" && "url" in r ? n = await rt({ ...r, url: `${a}/graphql` }, t) : n = await rt(`${a}/graphql`, t)), n;
@@ -331,9 +331,9 @@ class Wr {
331
331
  constructShadowGraphqlClient() {
332
332
  const t = ir({
333
333
  uri: `${mt.getServerUrl()}/graphql`,
334
- fetch: Gr
334
+ fetch: zr
335
335
  }), e = cr(async (i, s) => {
336
- const { headers: o } = s, l = o || {}, c = await zr();
336
+ const { headers: o } = s, l = o || {}, c = await Gr();
337
337
  let d = s.bearer ?? c.bearer;
338
338
  if (this.spiffClient)
339
339
  try {
@@ -3558,7 +3558,7 @@ class ui {
3558
3558
  if (this.cache.has(t)) {
3559
3559
  const n = this.cache.get(t);
3560
3560
  if (!n)
3561
- throw new G("Failed to get asset from cache!");
3561
+ throw new z("Failed to get asset from cache!");
3562
3562
  return n;
3563
3563
  }
3564
3564
  const a = (async () => (await ve([t]))[0])();
@@ -3585,7 +3585,7 @@ class ui {
3585
3585
  */
3586
3586
  cacheAsset(t) {
3587
3587
  if (!t.key)
3588
- throw new G("Asset has no key!");
3588
+ throw new z("Asset has no key!");
3589
3589
  this.cache.has(t.key) || this.cache.set(t.key, Promise.resolve(t));
3590
3590
  }
3591
3591
  /**
@@ -3593,7 +3593,7 @@ class ui {
3593
3593
  */
3594
3594
  cacheMaterial(t) {
3595
3595
  if (!t.id)
3596
- throw new G("Material has no id!");
3596
+ throw new z("Material has no id!");
3597
3597
  this.materialCache.has(t.id) || this.materialCache.set(t.id, Promise.resolve(t));
3598
3598
  }
3599
3599
  /**
@@ -3711,7 +3711,7 @@ class ui {
3711
3711
  case "mkv":
3712
3712
  return "video/x-matroska";
3713
3713
  default:
3714
- throw new G("Unexpected mimetype: " + e);
3714
+ throw new z("Unexpected mimetype: " + e);
3715
3715
  }
3716
3716
  }
3717
3717
  }
@@ -5145,7 +5145,7 @@ const q = new Ci(), bn = v`
5145
5145
  timestamp
5146
5146
  }
5147
5147
  }
5148
- `, Ot = [P.SilentIllustration, P.ProductOverlay], zi = async (r) => {
5148
+ `, Ot = [P.SilentIllustration, P.ProductOverlay], Gi = async (r) => {
5149
5149
  const t = [];
5150
5150
  r.introduction && t.push({
5151
5151
  name: "Introduction",
@@ -5163,7 +5163,7 @@ const q = new Ci(), bn = v`
5163
5163
  silentSteps: []
5164
5164
  });
5165
5165
  for (const a of r.steps) {
5166
- const n = Gi(a.stepName, r.stepGroups);
5166
+ const n = zi(a.stepName, r.stepGroups);
5167
5167
  if (!n)
5168
5168
  t.push({
5169
5169
  name: a.stepName,
@@ -5200,7 +5200,7 @@ const q = new Ci(), bn = v`
5200
5200
  ],
5201
5201
  silentSteps: []
5202
5202
  }), t;
5203
- }, Gi = (r, t) => t.find((e) => e.stepNames.includes(r)), wt = (r, t) => (r.conditions || []).every((e) => {
5203
+ }, zi = (r, t) => t.find((e) => e.stepNames.includes(r)), wt = (r, t) => (r.conditions || []).every((e) => {
5204
5204
  const a = t[e.targetStepName];
5205
5205
  if (a && a.selectedVariants) {
5206
5206
  const n = a.selectedVariants;
@@ -5436,10 +5436,10 @@ const Q = () => {
5436
5436
  }), Vc = (r, t, e, a) => ({
5437
5437
  x: r.x + (t == null ? void 0 : t.x) * e,
5438
5438
  y: r.y + (t == null ? void 0 : t.y) * a
5439
- }), zc = (r, t, e, a) => ({
5439
+ }), Gc = (r, t, e, a) => ({
5440
5440
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5441
5441
  y: r.y + (t == null ? void 0 : t.y) * a
5442
- }), Gc = (r, t, e, a) => ({
5442
+ }), zc = (r, t, e, a) => ({
5443
5443
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5444
5444
  y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
5445
5445
  }), It = (r) => {
@@ -5516,7 +5516,7 @@ const Q = () => {
5516
5516
  }, Mn = (r) => {
5517
5517
  var l;
5518
5518
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = pt(e), n = Math.cos(a), i = -Math.sin(a), s = va(r.children);
5519
- return /* @__PURE__ */ ct(Gt, { children: [
5519
+ return /* @__PURE__ */ ct(zt, { children: [
5520
5520
  /* @__PURE__ */ x("defs", { children: (() => /* @__PURE__ */ x("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ x("path", { d: r.clipPath }) : /* @__PURE__ */ x("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5521
5521
  /* @__PURE__ */ ct(
5522
5522
  "g",
@@ -5556,8 +5556,8 @@ const Q = () => {
5556
5556
  return r.pattern.src;
5557
5557
  };
5558
5558
  if (!a())
5559
- return /* @__PURE__ */ x(Gt, {});
5560
- const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ x(Gt, { children: r.useThreshold && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5559
+ return /* @__PURE__ */ x(zt, {});
5560
+ const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ x(zt, { children: r.useThreshold && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5561
5561
  /* @__PURE__ */ x(
5562
5562
  "feColorMatrix",
5563
5563
  {
@@ -5601,7 +5601,7 @@ const Q = () => {
5601
5601
  src: a()
5602
5602
  }];
5603
5603
  };
5604
- return /* @__PURE__ */ ct(Gt, { children: [
5604
+ return /* @__PURE__ */ ct(zt, { children: [
5605
5605
  i(),
5606
5606
  /* @__PURE__ */ x(
5607
5607
  "g",
@@ -5901,7 +5901,7 @@ const Ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5901
5901
  var w;
5902
5902
  return r.textFillImage ? `url("#${s}")` : (w = r._renderingConfiguration) != null && w.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${Cn(r.fillSpotColorDefinition)}` : r.fill;
5903
5903
  };
5904
- return /* @__PURE__ */ ct(Gt, { children: [
5904
+ return /* @__PURE__ */ ct(zt, { children: [
5905
5905
  /* @__PURE__ */ ct("defs", { children: [
5906
5906
  r.textFillImage && /* @__PURE__ */ x(
5907
5907
  "pattern",
@@ -6185,7 +6185,7 @@ const ae = (r) => {
6185
6185
  if (r.defaultVariant !== void 0)
6186
6186
  return t.find((e) => e.id === r.defaultVariant);
6187
6187
  }
6188
- }, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), On = async (r, t) => {
6188
+ }, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), Ge = /* @__PURE__ */ new Map(), On = async (r, t) => {
6189
6189
  if (!t) {
6190
6190
  if (!r)
6191
6191
  throw new Error("No region or src supplied. Cannot construct frame!");
@@ -6209,8 +6209,8 @@ const ae = (r) => {
6209
6209
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6210
6210
  return e;
6211
6211
  }, Qe = async (r) => {
6212
- if (ze.has(r))
6213
- return ze.get(r);
6212
+ if (Ge.has(r))
6213
+ return Ge.get(r);
6214
6214
  const e = (async () => {
6215
6215
  if (Vt.has(r))
6216
6216
  return Vt.get(r);
@@ -6246,7 +6246,7 @@ const ae = (r) => {
6246
6246
  }
6247
6247
  throw new Error("Malformed frame SVG");
6248
6248
  })();
6249
- return ze.set(r, e), e;
6249
+ return Ge.set(r, e), e;
6250
6250
  }, Ea = (r, t, e, a) => {
6251
6251
  const n = t.width / t.height, i = r.width / r.height;
6252
6252
  let s;
@@ -6290,11 +6290,11 @@ const ae = (r) => {
6290
6290
  }, ba = async (r) => {
6291
6291
  const t = await at(r);
6292
6292
  return $n(t);
6293
- }, za = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), $n = (r) => {
6293
+ }, Ga = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), $n = (r) => {
6294
6294
  const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
6295
6295
  if (!a)
6296
6296
  throw new Error("No svg tag found, this svg must be malformed!");
6297
- const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0, za(i), za(s)] : n == null ? void 0 : n.split(" ").map((l) => Number(l));
6297
+ const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0, Ga(i), Ga(s)] : n == null ? void 0 : n.split(" ").map((l) => Number(l));
6298
6298
  if (!o)
6299
6299
  throw new Error("No viewbox or width/height values detected on SVG file!");
6300
6300
  return {
@@ -6308,9 +6308,9 @@ const ae = (r) => {
6308
6308
  at(r).then((e) => {
6309
6309
  t(e);
6310
6310
  }).catch((e) => console.error(e));
6311
- }), Ge = /* @__PURE__ */ new Map(), Kt = async (r) => {
6312
- if (Ge.has(r))
6313
- return Ge.get(r);
6311
+ }), ze = /* @__PURE__ */ new Map(), Kt = async (r) => {
6312
+ if (ze.has(r))
6313
+ return ze.get(r);
6314
6314
  const t = async (n) => new Promise((i, s) => {
6315
6315
  try {
6316
6316
  if (!(!!URL && !!URL.createObjectURL))
@@ -6342,7 +6342,7 @@ const ae = (r) => {
6342
6342
  A.resize(m, m);
6343
6343
  return await A.render(), await t(c);
6344
6344
  })();
6345
- return Ge.set(r, a), a;
6345
+ return ze.set(r, a), a;
6346
6346
  }, Ut = async (r, t, e, a) => {
6347
6347
  const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
6348
6348
  width: r.layoutState.layout.width,
@@ -6610,7 +6610,7 @@ class O {
6610
6610
  this.oldState = t;
6611
6611
  }
6612
6612
  }
6613
- class Ga extends O {
6613
+ class za extends O {
6614
6614
  constructor(t) {
6615
6615
  super(), this.serializableWorkflow = t;
6616
6616
  }
@@ -7441,7 +7441,7 @@ class Cs {
7441
7441
  } };
7442
7442
  }
7443
7443
  }
7444
- const zn = new Cs();
7444
+ const Gn = new Cs();
7445
7445
  class Be {
7446
7446
  constructor() {
7447
7447
  this.frameSourceSvg = async (t, e) => {
@@ -8154,7 +8154,7 @@ class ys {
8154
8154
  };
8155
8155
  }
8156
8156
  }
8157
- const Gn = new ys();
8157
+ const zn = new ys();
8158
8158
  class Ss {
8159
8159
  async init(t, e, a) {
8160
8160
  const n = t.option;
@@ -8677,7 +8677,7 @@ class Bs {
8677
8677
  }
8678
8678
  }
8679
8679
  }
8680
- const zt = new Bs();
8680
+ const Gt = new Bs();
8681
8681
  class Is {
8682
8682
  constructor() {
8683
8683
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
@@ -8814,7 +8814,7 @@ class Fs {
8814
8814
  if (p && t.globalPropertyAspectConfigurations) {
8815
8815
  const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find((S) => {
8816
8816
  var y;
8817
- return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((I) => I.aspectName).includes(S.name));
8817
+ return S.type === G.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((I) => I.aspectName).includes(S.name));
8818
8818
  });
8819
8819
  if (w) {
8820
8820
  const y = p.getGlobalPropertyStateManager().getAspect(w.name);
@@ -9000,7 +9000,7 @@ class Fs {
9000
9000
  const l = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
9001
9001
  for (const A of e) {
9002
9002
  if (!A.fontData)
9003
- throw new G("Failed to resolve font data for text.");
9003
+ throw new z("Failed to resolve font data for text.");
9004
9004
  const [u, h] = pe(
9005
9005
  A.fontSize,
9006
9006
  A.fontData,
@@ -9058,7 +9058,7 @@ class Fs {
9058
9058
  if (S && t.globalPropertyAspectConfigurations) {
9059
9059
  const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, I = y == null ? void 0 : y.find((b) => {
9060
9060
  var E;
9061
- return b.type === z.Text && ((E = t.globalPropertyAspectConfigurations) == null ? void 0 : E.map((D) => D.aspectName).includes(b.name));
9061
+ return b.type === G.Text && ((E = t.globalPropertyAspectConfigurations) == null ? void 0 : E.map((D) => D.aspectName).includes(b.name));
9062
9062
  });
9063
9063
  if (I) {
9064
9064
  const E = S.getGlobalPropertyStateManager().getAspect(I.name);
@@ -9106,7 +9106,7 @@ class Fs {
9106
9106
  if (m && t.globalPropertyAspectConfigurations) {
9107
9107
  const g = (h = m.getGlobalPropertyConfiguration()) == null ? void 0 : h.aspects, p = g == null ? void 0 : g.find((f) => {
9108
9108
  var C;
9109
- return f.type === z.Text && ((C = t.globalPropertyAspectConfigurations) == null ? void 0 : C.map((w) => w.aspectName).includes(f.name));
9109
+ return f.type === G.Text && ((C = t.globalPropertyAspectConfigurations) == null ? void 0 : C.map((w) => w.aspectName).includes(f.name));
9110
9110
  });
9111
9111
  if (p) {
9112
9112
  const C = m.getGlobalPropertyStateManager().getAspect(p.name);
@@ -9300,7 +9300,7 @@ class Fs {
9300
9300
  fillSpotColorDefinition: f
9301
9301
  }, y = [], I = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
9302
9302
  if (!S.fontData)
9303
- throw new G("Failed to resolve font data for text.");
9303
+ throw new z("Failed to resolve font data for text.");
9304
9304
  const [E, D] = pe(
9305
9305
  S.fontSize,
9306
9306
  S.fontData,
@@ -9599,7 +9599,7 @@ class $s extends xs {
9599
9599
  async function Yn(r) {
9600
9600
  if (r === "Vegemite")
9601
9601
  return new $s();
9602
- throw new G(`Failed to resolve Module, Module ${r} not found`);
9602
+ throw new z(`Failed to resolve Module, Module ${r} not found`);
9603
9603
  }
9604
9604
  const ne = v`
9605
9605
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
@@ -9660,7 +9660,7 @@ const ne = v`
9660
9660
  variables: {
9661
9661
  bundleId: r
9662
9662
  }
9663
- })).data.globalPropertyState, zs = v`
9663
+ })).data.globalPropertyState, Gs = v`
9664
9664
  ${Te}
9665
9665
  fragment ProductFields on Product {
9666
9666
  id
@@ -9706,7 +9706,7 @@ const ne = v`
9706
9706
  }
9707
9707
  }
9708
9708
  `, Ba = v`
9709
- ${zs}
9709
+ ${Gs}
9710
9710
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9711
9711
  id
9712
9712
  productId
@@ -9773,7 +9773,7 @@ const ne = v`
9773
9773
  }
9774
9774
  }
9775
9775
  }
9776
- `, Gs = (r) => v`
9776
+ `, zs = (r) => v`
9777
9777
  ${ne}
9778
9778
  ${re(r)}
9779
9779
  query GetBundle($id: String!) {
@@ -10391,6 +10391,7 @@ class Co {
10391
10391
  this.recipientCallbacks.forEach((p) => p(this.transaction.recipient));
10392
10392
  }
10393
10393
  async initializeDefaultWorkflowState(t) {
10394
+ console.log("LOG: default workflow state?"), console.trace();
10394
10395
  const e = () => {
10395
10396
  var d, A;
10396
10397
  const o = this.workflow.finalizeStepConfig;
@@ -10401,9 +10402,9 @@ class Co {
10401
10402
  };
10402
10403
  this.reloadedState && this.reloadedState.serializableWorkflow.steps.forEach((o) => {
10403
10404
  this.storage[o.stepName] = o.storage || {};
10404
- }), this.allScenes = await zi(t);
10405
+ }), this.allScenes = await Gi(t);
10405
10406
  const n = Pt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(n, !!this.reloadedState);
10406
- this.commandContext.apply(new $(s), !0), this.stepElements = { ...this.stepElements, ...i }, !this.isReloadedTransaction && this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
10407
+ this.commandContext.apply(new $(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), !this.isReloadedTransaction && this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
10407
10408
  }
10408
10409
  getWorkflowExperience() {
10409
10410
  return this.experience;
@@ -10620,7 +10621,7 @@ class Co {
10620
10621
  const l = o[0];
10621
10622
  if (s.type === P.Model) {
10622
10623
  if (!this.modelContainer)
10623
- throw new G(
10624
+ throw new z(
10624
10625
  "We should always have a model container when injecting a preview!"
10625
10626
  );
10626
10627
  const u = (A = l.asset) == null ? void 0 : A.fileLink;
@@ -10645,7 +10646,7 @@ class Co {
10645
10646
  }
10646
10647
  s.data.targetMaterials.forEach((m) => {
10647
10648
  if (!this.modelContainer)
10648
- throw new G(
10649
+ throw new z(
10649
10650
  "We should always have a model container when injecting a preview!"
10650
10651
  );
10651
10652
  this.modelContainer.applyMaterialVariant(m, s.option.id, u);
@@ -10668,7 +10669,7 @@ class Co {
10668
10669
  };
10669
10670
  if (!ln(a, this.storage)) {
10670
10671
  this.storage = a;
10671
- const n = new Ga(this.constructSerializableWorkflow());
10672
+ const n = new za(this.constructSerializableWorkflow());
10672
10673
  this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
10673
10674
  }
10674
10675
  }
@@ -10719,7 +10720,7 @@ class Co {
10719
10720
  serialize() {
10720
10721
  const t = this.getCommandContext().getState();
10721
10722
  if (!t)
10722
- throw new G("Attempted to serialize state before it was initialized.");
10723
+ throw new z("Attempted to serialize state before it was initialized.");
10723
10724
  const e = yt(t.transaction), a = this.dehydrateState(e);
10724
10725
  return JSON.stringify(a);
10725
10726
  }
@@ -10884,7 +10885,7 @@ class Co {
10884
10885
  const E = (b = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : b.frameService;
10885
10886
  E == null || E.setTargetElements(a.map((D) => D.id));
10886
10887
  }
10887
- const p = u.map((E) => new Et(E.id)), f = new Ga(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10888
+ const p = u.map((E) => new Et(E.id)), f = new za(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10888
10889
  C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10889
10890
  const w = this.getInvalidModelVariants(), S = this.modelContainer;
10890
10891
  if (S) {
@@ -10909,7 +10910,7 @@ class Co {
10909
10910
  switch (console.log(`LOG: step ${l.stepTitle} (${l.stepName}) was not inited`), this.stepInitialised[l.stepName] = !0, l.type) {
10910
10911
  case P.DigitalContent:
10911
10912
  a.push(
10912
- zn.init(
10913
+ Gn.init(
10913
10914
  l,
10914
10915
  this,
10915
10916
  this.reloadedState
@@ -10926,7 +10927,7 @@ class Co {
10926
10927
  break;
10927
10928
  case P.Material:
10928
10929
  a.push(
10929
- Gn.init(l, this, this.reloadedState)
10930
+ zn.init(l, this, this.reloadedState)
10930
10931
  );
10931
10932
  break;
10932
10933
  case P.Model:
@@ -10950,7 +10951,7 @@ class Co {
10950
10951
  );
10951
10952
  break;
10952
10953
  case P.Shape:
10953
- a.push(zt.init(l, this, this.reloadedState));
10954
+ a.push(Gt.init(l, this, this.reloadedState));
10954
10955
  break;
10955
10956
  case P.Text:
10956
10957
  a.push(j.init(l, this, this.reloadedState));
@@ -11315,7 +11316,7 @@ class yo extends it {
11315
11316
  super(t, e, a);
11316
11317
  }
11317
11318
  selectVariant(t) {
11318
- return Gn.selectVariant(
11319
+ return zn.selectVariant(
11319
11320
  this.step,
11320
11321
  t.getResource(),
11321
11322
  this.manager,
@@ -11377,7 +11378,7 @@ class bo extends it {
11377
11378
  }
11378
11379
  selectVariant(t) {
11379
11380
  const e = t.getResource();
11380
- return zt.selectVariant(
11381
+ return Gt.selectVariant(
11381
11382
  this.step,
11382
11383
  {
11383
11384
  fill: e.color,
@@ -11395,7 +11396,7 @@ class bo extends it {
11395
11396
  * @deprecated The shape step can now pass through colors returned by getColors via selectVariant. Please swap setColor for selectVariant.
11396
11397
  */
11397
11398
  setColor(t) {
11398
- return zt.selectVariant(
11399
+ return Gt.selectVariant(
11399
11400
  this.step,
11400
11401
  t,
11401
11402
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -11407,7 +11408,7 @@ class bo extends it {
11407
11408
  * @returns A list of color definitions that are currently applied to the illustration.
11408
11409
  */
11409
11410
  getColors() {
11410
- return zt.availableColours(this.step);
11411
+ return Gt.availableColours(this.step);
11411
11412
  }
11412
11413
  /**
11413
11414
  * Allows for setting a custom color when the custom variant is selected. Will
@@ -11415,7 +11416,7 @@ class bo extends it {
11415
11416
  */
11416
11417
  setCustomColor(t) {
11417
11418
  var e, a;
11418
- return ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) !== "#custom" && console.warn(`setting custom color for step ${this.step.stepName} but color is ${(a = this.getCurrentVariant()) == null ? void 0 : a.getColor()}`), zt.setCustomColor(t, this.step, this.manager);
11419
+ return ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) !== "#custom" && console.warn(`setting custom color for step ${this.step.stepName} but color is ${(a = this.getCurrentVariant()) == null ? void 0 : a.getColor()}`), Gt.setCustomColor(t, this.step, this.manager);
11419
11420
  }
11420
11421
  getCustomColor() {
11421
11422
  var e, a, n;
@@ -11659,7 +11660,7 @@ class Po extends it {
11659
11660
  * @returns The final URL string for the QR code.
11660
11661
  */
11661
11662
  async selectVideo(t) {
11662
- return zn.regenerateQRCode(
11663
+ return Gn.regenerateQRCode(
11663
11664
  this.manager.getRegionElements(this.step.stepName),
11664
11665
  t.key,
11665
11666
  this.manager,
@@ -11741,7 +11742,7 @@ class ce {
11741
11742
  case P.Module:
11742
11743
  return new Do(t, e, t.getStepTags(e.stepName));
11743
11744
  default:
11744
- throw new G(`Step type ${e.type} not yet supported in Core SDK`);
11745
+ throw new z(`Step type ${e.type} not yet supported in Core SDK`);
11745
11746
  }
11746
11747
  }
11747
11748
  }
@@ -12163,7 +12164,7 @@ class Ro {
12163
12164
  const t = N.get(this.localPersistenceKey);
12164
12165
  return t ? JSON.parse(t) : [];
12165
12166
  }
12166
- throw new G("Unexpected storage method requested");
12167
+ throw new z("Unexpected storage method requested");
12167
12168
  }
12168
12169
  /**
12169
12170
  * Search for a transaction that has been saved.
@@ -12203,7 +12204,7 @@ class Ro {
12203
12204
  N.set(this.localPersistenceKey, JSON.stringify(t));
12204
12205
  return;
12205
12206
  }
12206
- throw new G("Unexpected storage method requested");
12207
+ throw new z("Unexpected storage method requested");
12207
12208
  }
12208
12209
  }
12209
12210
  const Ye = new Ro(), Oo = v`
@@ -12553,7 +12554,7 @@ class Vo {
12553
12554
  }
12554
12555
  async save(t) {
12555
12556
  if (!this.getCommandContext().getState())
12556
- throw new G("State undefined!");
12557
+ throw new z("State undefined!");
12557
12558
  const n = {
12558
12559
  title: await (async () => {
12559
12560
  var l;
@@ -12576,10 +12577,10 @@ class Vo {
12576
12577
  var s;
12577
12578
  const t = yt(this.getCommandContext().getState());
12578
12579
  if (!t)
12579
- throw new G("Internal state is undefined! Cannot copy experience!");
12580
+ throw new z("Internal state is undefined! Cannot copy experience!");
12580
12581
  const e = JSON.stringify(t.transaction), a = this.getWorkflowManager().getWorkflow(), n = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
12581
12582
  if (!n)
12582
- throw new G("Integration product id is undefined!");
12583
+ throw new z("Integration product id is undefined!");
12583
12584
  return await this.getClient().getWorkflowExperience({
12584
12585
  type: "integration",
12585
12586
  integrationProductId: n,
@@ -12678,7 +12679,7 @@ class Vo {
12678
12679
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
12679
12680
  }
12680
12681
  }
12681
- const zo = [
12682
+ const Go = [
12682
12683
  "altGlyph",
12683
12684
  "circle",
12684
12685
  "ellipse",
@@ -12690,7 +12691,7 @@ const zo = [
12690
12691
  "textPath",
12691
12692
  "tref",
12692
12693
  "tspan"
12693
- ], Go = async (r, t, e) => {
12694
+ ], zo = async (r, t, e) => {
12694
12695
  const a = t.data, n = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = n.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + n);
12695
12696
  o.searchParams.append("video", Ra(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12696
12697
  const l = o.toString(), d = `data:image/svg+xml;base64,${Ra(await on(l, { type: "svg" }))}`, A = (h) => {
@@ -12795,7 +12796,7 @@ const zo = [
12795
12796
  pa(m);
12796
12797
  const g = {};
12797
12798
  xt(m, (b) => {
12798
- zo.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12799
+ Go.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12799
12800
  const E = b.attributes.getNamedItem("fill");
12800
12801
  if (E && E.value !== "none") {
12801
12802
  const F = E.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
@@ -13146,7 +13147,7 @@ const zo = [
13146
13147
  switch (o.type) {
13147
13148
  case P.DigitalContent:
13148
13149
  n.push(
13149
- ...await Go(e, s, o)
13150
+ ...await zo(e, s, o)
13150
13151
  );
13151
13152
  break;
13152
13153
  case P.Frame:
@@ -13436,19 +13437,19 @@ class rl {
13436
13437
  }
13437
13438
  async createHandle(t) {
13438
13439
  switch (t.type) {
13439
- case z.FileUpload:
13440
+ case G.FileUpload:
13440
13441
  return new il(this.bundle, t).initialize();
13441
- case z.ColorOption:
13442
+ case G.ColorOption:
13442
13443
  return new Ja(
13443
13444
  this.bundle,
13444
13445
  t,
13445
13446
  t.entityId ? await q.getOption(t.entityId) : void 0
13446
13447
  );
13447
- case z.Option: {
13448
+ case G.Option: {
13448
13449
  const e = t.entityId ? await q.getOption(t.entityId) : void 0;
13449
13450
  return (e == null ? void 0 : e.type) === "Color" ? new Ja(this.bundle, t, e) : new Zn(this.bundle, t, e);
13450
13451
  }
13451
- case z.Text:
13452
+ case G.Text:
13452
13453
  return new sl(this.bundle, t);
13453
13454
  default:
13454
13455
  throw new Error("Unhandled Global Property Aspect Type");
@@ -14049,15 +14050,15 @@ class cl {
14049
14050
  let i = n.type && n.storage ? {} : void 0;
14050
14051
  if (i)
14051
14052
  switch (n.type) {
14052
- case z.FileUpload: {
14053
+ case G.FileUpload: {
14053
14054
  i.fileUpload = n.storage;
14054
14055
  break;
14055
14056
  }
14056
- case z.Option: {
14057
+ case G.Option: {
14057
14058
  i.option = n.storage;
14058
14059
  break;
14059
14060
  }
14060
- case z.ColorOption: {
14061
+ case G.ColorOption: {
14061
14062
  i = n.storage;
14062
14063
  break;
14063
14064
  }
@@ -14737,7 +14738,7 @@ class Je {
14737
14738
  const m = this.globalPropertyStateManager.getGlobalPropertyState();
14738
14739
  m ? this.globalPropertyHandleService.getHandles().then((g) => {
14739
14740
  const p = g.map((f) => {
14740
- if (f.getType() === z.ColorOption || f.getType() === z.Option) {
14741
+ if (f.getType() === G.ColorOption || f.getType() === G.Option) {
14741
14742
  const C = f;
14742
14743
  if (!m.aspects.find((S) => S.name === C.getName()))
14743
14744
  return C.initDefaultVariant();
@@ -14874,7 +14875,7 @@ class Je {
14874
14875
  const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
14875
14876
  if (s)
14876
14877
  switch (n.type) {
14877
- case z.FileUpload: {
14878
+ case G.FileUpload: {
14878
14879
  const o = s, l = await ve([n.value]);
14879
14880
  l.length > 0 && await o.selectImage(l[0]);
14880
14881
  const c = (a = n.storage) == null ? void 0 : a.colors;
@@ -14886,21 +14887,21 @@ class Je {
14886
14887
  }
14887
14888
  break;
14888
14889
  }
14889
- case z.ColorOption: {
14890
+ case G.ColorOption: {
14890
14891
  const o = s;
14891
- if (n.type === z.ColorOption) {
14892
+ if (n.type === G.ColorOption) {
14892
14893
  const c = o.getAllVariants().find((d) => d.getId() === n.value);
14893
14894
  c && await o.selectVariant(c);
14894
14895
  } else
14895
14896
  o.setCustomColor(n.value);
14896
14897
  break;
14897
14898
  }
14898
- case z.Option: {
14899
+ case G.Option: {
14899
14900
  const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
14900
14901
  c && await o.selectVariant(c);
14901
14902
  break;
14902
14903
  }
14903
- case z.Text: {
14904
+ case G.Text: {
14904
14905
  await s.setText(n.value);
14905
14906
  break;
14906
14907
  }
@@ -14911,7 +14912,7 @@ class Je {
14911
14912
  return this.globalPropertyStateManager;
14912
14913
  }
14913
14914
  async getGlobalPropertyTotalSubunits() {
14914
- return (await this.globalPropertyHandleService.getHandles()).filter((a) => a.getType() === z.Option).map((a) => {
14915
+ return (await this.globalPropertyHandleService.getHandles()).filter((a) => a.getType() === G.Option).map((a) => {
14915
14916
  var n;
14916
14917
  return ((n = a.getCurrentVariant()) == null ? void 0 : n.getPrice()) || 0;
14917
14918
  }).reduce((a, n) => a + n, 0);
@@ -14930,7 +14931,7 @@ class Je {
14930
14931
  const c = (e = this.getGlobalPropertyConfiguration()) == null ? void 0 : e.aspects.find(
14931
14932
  (d) => d.name === l
14932
14933
  );
14933
- if (c && c.type === z.ColorOption) {
14934
+ if (c && c.type === G.ColorOption) {
14934
14935
  const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = ll(
14935
14936
  this.getWorkflowExperiences(),
14936
14937
  this.globalConfigurationPropertyId || "",
@@ -15995,7 +15996,7 @@ class Ad {
15995
15996
  } catch (a) {
15996
15997
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15997
15998
  }
15998
- }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.1-beta.bfc4858f-0e0f-569a-aec4-7fcae31d702c"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15999
+ }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.1-beta.dfd45d89-6b78-5804-8247-b45fe6487531"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15999
16000
  }
16000
16001
  configure(t) {
16001
16002
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.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 && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16345,7 +16346,7 @@ class Ad {
16345
16346
  ...o,
16346
16347
  ...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
16347
16348
  }, c = await B.getShadowGraphqlClient().query({
16348
- query: Gs(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16349
+ query: zs(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16349
16350
  variables: {
16350
16351
  id: t
16351
16352
  },
@@ -16556,7 +16557,7 @@ class Ad {
16556
16557
  layouts: [],
16557
16558
  singleVariantsRenderable: (tt = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : tt.singleVariantsRenderable,
16558
16559
  stateMutationFunc: E ? async () => {
16559
- throw new G("State mutation is forbidden in read only mode!");
16560
+ throw new z("State mutation is forbidden in read only mode!");
16560
16561
  } : async (Z) => (console.log("LOG: updating transaction"), this.updateTransactionState({
16561
16562
  ...Z,
16562
16563
  context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
@@ -16855,7 +16856,7 @@ class Ul {
16855
16856
  if (!n || !this.frameData)
16856
16857
  return;
16857
16858
  if (this.frameData.length !== t.length)
16858
- throw new G(
16859
+ throw new z(
16859
16860
  "Frame data and offsets are not the same length. This is a bug. Please report it."
16860
16861
  );
16861
16862
  if (!this.offsets.some((s, o) => !(t[o].x === s.x && t[o].y === s.y && t[o].zoom === s.zoom)) && !a) {
@@ -16899,9 +16900,9 @@ class Ul {
16899
16900
  */
16900
16901
  updateFrameOffsets(t, e, a, n, i) {
16901
16902
  if (!a || a.length === 0 || a.some((o) => !o))
16902
- throw new G("Frame data not set. This is a bug");
16903
+ throw new z("Frame data not set. This is a bug");
16903
16904
  if (!this.workflowManager)
16904
- throw new G("No workflow manager set, cannot update offsets.");
16905
+ throw new z("No workflow manager set, cannot update offsets.");
16905
16906
  const s = this.workflowManager.getCommandDispatcher();
16906
16907
  this.targetElements.forEach((o, l) => {
16907
16908
  s(
@@ -17278,7 +17279,7 @@ class Vl extends it {
17278
17279
  return this.manager.getStepStorage(this.step.stepName);
17279
17280
  }
17280
17281
  }
17281
- const zl = v`
17282
+ const Gl = v`
17282
17283
  query GetLoggedInCustomer($email: String!) {
17283
17284
  customer(emailAddress: $email) {
17284
17285
  id
@@ -17321,7 +17322,7 @@ const zl = v`
17321
17322
  total
17322
17323
  }
17323
17324
  }
17324
- `, Gl = v`
17325
+ `, zl = v`
17325
17326
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17326
17327
  transactionUpdate(id: $id, designName: $name) {
17327
17328
  id
@@ -17407,7 +17408,7 @@ const zl = v`
17407
17408
  },
17408
17409
  context: e
17409
17410
  }), Cd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17410
- mutation: Gl,
17411
+ mutation: zl,
17411
17412
  errorPolicy: "all",
17412
17413
  variables: {
17413
17414
  id: r,
@@ -17428,7 +17429,7 @@ const zl = v`
17428
17429
  template: t
17429
17430
  }
17430
17431
  }), Sd = async (r) => (await B.getShadowGraphqlClient().query({
17431
- query: zl,
17432
+ query: Gl,
17432
17433
  errorPolicy: "all",
17433
17434
  variables: {
17434
17435
  email: r
@@ -17745,7 +17746,7 @@ export {
17745
17746
  ic as AddressValidationJobStatus,
17746
17747
  rc as AddressValidationResultConfirmationLevel,
17747
17748
  cd as ArrayInput,
17748
- z as AspectType,
17749
+ G as AspectType,
17749
17750
  St as AssetNotFoundError,
17750
17751
  Ce as AssetType,
17751
17752
  ad as BringForwardCommand,
@@ -17825,7 +17826,7 @@ export {
17825
17826
  Bo as TextStepHandle,
17826
17827
  pl as Transform,
17827
17828
  gl as TransformCollection,
17828
- G as UnhandledBehaviorError,
17829
+ z as UnhandledBehaviorError,
17829
17830
  Ir as UnitOfMeasurement,
17830
17831
  Zc as UpdateImageSourceCommand,
17831
17832
  st as Variant,
@@ -17839,7 +17840,7 @@ export {
17839
17840
  Mc as dataUrlFromExternalUrl,
17840
17841
  Ye as designService,
17841
17842
  pe as determineCorrectFontSizeAndLines,
17842
- zn as digitalContentStepService,
17843
+ Gn as digitalContentStepService,
17843
17844
  dt as domParser,
17844
17845
  wd as duplicateBundle,
17845
17846
  yd as duplicateTransaction,
@@ -17864,13 +17865,13 @@ export {
17864
17865
  Qe as getFrameData,
17865
17866
  rd as getGlobalPropertyStateForBundle,
17866
17867
  Ol as getIntegration,
17867
- zc as getNEPoint,
17868
+ Gc as getNEPoint,
17868
17869
  Vc as getNWPoint,
17869
17870
  Bd as getOrderedTransactions,
17870
17871
  hd as getOverrideThemeConfiguration,
17871
17872
  Lc as getPointOfRotation,
17872
17873
  od as getProductCollections,
17873
- Gc as getSEPoint,
17874
+ zc as getSEPoint,
17874
17875
  Sa as getSvgElement,
17875
17876
  Pd as getTemplateBundles,
17876
17877
  Id as getTemplateTransactions,
@@ -17887,7 +17888,7 @@ export {
17887
17888
  $c as isCloseToValue,
17888
17889
  Tt as loadFont,
17889
17890
  Nc as matchHexToPms,
17890
- Gn as materialStepService,
17891
+ zn as materialStepService,
17891
17892
  hl as metafieldManager,
17892
17893
  Hc as mmPerPixel,
17893
17894
  Wn as modelStepService,
@@ -17910,7 +17911,7 @@ export {
17910
17911
  pa as sanitizeSvgTree,
17911
17912
  Lr as setBearerAuthenticationToken,
17912
17913
  pn as setCanvasModule,
17913
- zt as shapeStepService,
17914
+ Gt as shapeStepService,
17914
17915
  fs as shortenUrl,
17915
17916
  mt as spiffCoreConfiguration,
17916
17917
  id as stepAspectValuesToDesignInputSteps,