@spiffcommerce/core 32.3.1-beta.f90e5863-7418-5d5f-9096-070db877a2ac → 32.3.1-beta.fb24b784-d4cb-5c48-bf28-41a506fc3cc8

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
@@ -18,13 +18,13 @@ import Ma from "lodash.chunk";
18
18
  import { CognitoIdentityProviderClient as br, InitiateAuthCommand as Ta, RespondToAuthChallengeCommand as Ir } from "@aws-sdk/client-cognito-identity-provider";
19
19
  import Br from "dinero.js";
20
20
  import * as Na from "currency-codes";
21
- import Se from "lodash.isequal";
21
+ import ve from "lodash.isequal";
22
22
  import { split as na } from "unicode-default-word-boundary";
23
23
  import hn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
26
  import Pr from "lodash.omit";
27
- var ve = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(ve || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Dr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Dr || {}), jt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(jt || {}), x = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(x || {}), Fr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Fr || {}), mn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(mn || {}), xr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(xr || {}), kr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(kr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Mr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Mr || {}), Ee = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Ee || {}), Mt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(Mt || {}), H = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(H || {}), Tr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Tr || {});
27
+ var Ee = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(Ee || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Dr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Dr || {}), jt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(jt || {}), x = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(x || {}), Fr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Fr || {}), mn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(mn || {}), xr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(xr || {}), kr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(kr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Mr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Mr || {}), be = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(be || {}), Mt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(Mt || {}), H = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(H || {}), Tr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Tr || {});
28
28
  class gn extends Error {
29
29
  constructor(t) {
30
30
  super(t), this.name = this.constructor.name;
@@ -35,7 +35,7 @@ class Xt extends gn {
35
35
  super(`ConfigurationError - ${t}`);
36
36
  }
37
37
  }
38
- class be extends Xt {
38
+ class Ie extends Xt {
39
39
  constructor(t) {
40
40
  super(`Option not Configured: ${t.stepTitle}`), this.optionId = t?.optionId || "N/A";
41
41
  }
@@ -55,32 +55,32 @@ class Yt extends Xt {
55
55
  super(`Resource not found for asset: ${t.name}`), this.asset = t;
56
56
  }
57
57
  }
58
- class Ie extends Xt {
58
+ class Be extends Xt {
59
59
  constructor(t, e) {
60
60
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
61
61
  }
62
62
  }
63
- class Me extends gn {
63
+ class Te extends gn {
64
64
  constructor(t) {
65
65
  super(`ImplementationError - ${t}`);
66
66
  }
67
67
  }
68
- class N extends Me {
68
+ class N extends Te {
69
69
  constructor(t) {
70
70
  super(`Unhandled Behavior Encountered: ${t}`);
71
71
  }
72
72
  }
73
- class Dt extends Me {
73
+ class Dt extends Te {
74
74
  constructor(t) {
75
75
  super(`Parsing Error: ${t}`);
76
76
  }
77
77
  }
78
- class ht extends Me {
78
+ class ht extends Te {
79
79
  constructor(t) {
80
80
  super(`Client Error: ${t}`);
81
81
  }
82
82
  }
83
- class Te extends Me {
83
+ class Ne extends Te {
84
84
  constructor(t) {
85
85
  super(`Resource Generation Failed: ${t}`);
86
86
  }
@@ -197,7 +197,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
197
197
  if (t) return t;
198
198
  const a = (async () => await (await rt(n)).text())();
199
199
  return Oa.set(n, a), a;
200
- }, Tt = (n) => n.every((t) => t !== "undefined"), se = (n) => Tt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), $r = (n, t) => {
200
+ }, Tt = (n) => n.every((t) => t !== "undefined"), oe = (n) => Tt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), $r = (n, t) => {
201
201
  if (Tt([typeof document]))
202
202
  return document.createElementNS(n, t);
203
203
  const a = Zt().document.createElement(t);
@@ -207,7 +207,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
207
207
  return new DOMParser();
208
208
  const n = Zt();
209
209
  return new n.DOMParser();
210
- }, Ur = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Ne = (n, t) => new Promise((e, a) => {
210
+ }, Ur = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Qe = (n, t) => new Promise((e, a) => {
211
211
  t ? fn(n).then(e).catch(a) : rt(n).then((r) => {
212
212
  r.arrayBuffer().then(e).catch(a);
213
213
  }).catch((r) => {
@@ -231,7 +231,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
231
231
  return new XMLSerializer();
232
232
  const n = Zt();
233
233
  return new n.XMLSerializer();
234
- }, $a = (n) => btoa(n), Qe = (n) => {
234
+ }, $a = (n) => btoa(n), Re = (n) => {
235
235
  function t() {
236
236
  const a = new Uint8Array(n), r = 4;
237
237
  if (a.length >= r) {
@@ -258,7 +258,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
258
258
  const e = t();
259
259
  return e || "image/svg+xml";
260
260
  }, qc = async (n) => {
261
- const t = await fn(n), e = pn.get(n) || Qe(t);
261
+ const t = await fn(n), e = pn.get(n) || Re(t);
262
262
  return await Gr(new Blob([t], { type: e }));
263
263
  }, Vr = (n) => {
264
264
  let t = "";
@@ -267,7 +267,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
267
267
  t += String.fromCharCode(n[a]);
268
268
  return t;
269
269
  }, zr = async (n) => {
270
- const t = Qe(n), e = new Uint8Array(n), a = Vr(e), r = btoa(a);
270
+ const t = Re(n), e = new Uint8Array(n), a = Vr(e), r = btoa(a);
271
271
  return `data:${t};base64,${r}`;
272
272
  }, pa = (n) => `data:image/svg+xml;base64,${btoa(n)}`, wn = (n) => {
273
273
  const t = n.replace(/\r?\n/g, ""), e = t.indexOf(",");
@@ -411,16 +411,16 @@ let ze;
411
411
  function Ca() {
412
412
  return ze === void 0 && (ze = Ur()), ze;
413
413
  }
414
- let oe = null;
414
+ let le = null;
415
415
  const Xr = (n) => new Promise((t) => {
416
- if (Qe(n) !== "image/jpeg")
416
+ if (Re(n) !== "image/jpeg")
417
417
  return t(1);
418
418
  wr(n).then((a) => t(a || 1)).catch(() => t(1));
419
419
  }), Zr = async () => {
420
- if (oe !== null)
421
- return !oe;
420
+ if (le !== null)
421
+ return !le;
422
422
  const t = await te("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
423
- return oe = t.width === 2 && t.height === 3, !oe;
423
+ return le = t.width === 2 && t.height === 3, !le;
424
424
  }, ti = (n) => {
425
425
  const e = n.naturalWidth / n.naturalHeight;
426
426
  return n.naturalHeight <= 8192 && n.naturalWidth <= 8192 ? [n.naturalWidth, n.naturalHeight] : n.naturalHeight > n.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
@@ -455,9 +455,9 @@ const Xr = (n) => new Promise((t) => {
455
455
  break;
456
456
  }
457
457
  return d.drawImage(e, 0, 0, o, l), c;
458
- }, Re = async (n) => {
458
+ }, Oe = async (n) => {
459
459
  const t = await ei(n);
460
- return Qe(n) === "image/jpeg" ? {
460
+ return Re(n) === "image/jpeg" ? {
461
461
  dataUrl: t.toDataURL("image/jpeg", 1),
462
462
  height: t.height,
463
463
  width: t.width
@@ -3201,7 +3201,7 @@ function Ua(n) {
3201
3201
  const t = n.substring(1).toUpperCase();
3202
3202
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3203
3203
  }
3204
- const le = (n) => {
3204
+ const ce = (n) => {
3205
3205
  const t = En(n.spotColor);
3206
3206
  return t ? `${n.browserValue} ${t}` : n.browserValue;
3207
3207
  }, En = (n) => {
@@ -3299,13 +3299,13 @@ const le = (n) => {
3299
3299
  if (o)
3300
3300
  a.setAttribute(
3301
3301
  "fill",
3302
- e ? le(o) : o.browserValue
3302
+ e ? ce(o) : o.browserValue
3303
3303
  );
3304
3304
  else {
3305
3305
  const l = t[s];
3306
3306
  l && a.setAttribute(
3307
3307
  "fill",
3308
- e ? le(l) : l.browserValue
3308
+ e ? ce(l) : l.browserValue
3309
3309
  );
3310
3310
  }
3311
3311
  }
@@ -3317,13 +3317,13 @@ const le = (n) => {
3317
3317
  if (o)
3318
3318
  a.setAttribute(
3319
3319
  "stroke",
3320
- e ? le(o) : o.browserValue
3320
+ e ? ce(o) : o.browserValue
3321
3321
  );
3322
3322
  else {
3323
3323
  const l = t[s];
3324
3324
  l && a.setAttribute(
3325
3325
  "fill",
3326
- e ? le(l) : l.browserValue
3326
+ e ? ce(l) : l.browserValue
3327
3327
  );
3328
3328
  }
3329
3329
  }
@@ -3498,7 +3498,7 @@ const le = (n) => {
3498
3498
  ...AssetFields
3499
3499
  }
3500
3500
  }
3501
- `, Be = async (n) => (await v.getShadowGraphqlClient().query({
3501
+ `, Pe = async (n) => (await v.getShadowGraphqlClient().query({
3502
3502
  query: hi,
3503
3503
  errorPolicy: "all",
3504
3504
  fetchPolicy: "no-cache",
@@ -3526,7 +3526,7 @@ const le = (n) => {
3526
3526
  class wi {
3527
3527
  constructor() {
3528
3528
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
3529
- const e = await t.arrayBuffer(), a = await Re(e), r = (i, s) => {
3529
+ const e = await t.arrayBuffer(), a = await Oe(e), r = (i, s) => {
3530
3530
  const o = atob(i.split(",")[1]), l = [];
3531
3531
  for (let c = 0; c < o.length; c++)
3532
3532
  l.push(o.charCodeAt(c));
@@ -3547,14 +3547,14 @@ class wi {
3547
3547
  if (!r) throw new N("Failed to get asset from cache!");
3548
3548
  return r;
3549
3549
  }
3550
- const a = (async () => (await Be([t]))[0])();
3550
+ const a = (async () => (await Pe([t]))[0])();
3551
3551
  return this.cache.set(t, a), a;
3552
3552
  }
3553
3553
  /**
3554
3554
  * Retrieves the asset from the server, bypassing cache (but still writing the result to cache)
3555
3555
  */
3556
3556
  async getFromServer(t) {
3557
- const a = (async () => (await Be([t]))[0])();
3557
+ const a = (async () => (await Pe([t]))[0])();
3558
3558
  return this.cache.set(t, a), a;
3559
3559
  }
3560
3560
  keyFromURL(t) {
@@ -3613,7 +3613,7 @@ class wi {
3613
3613
  }, a, r);
3614
3614
  }
3615
3615
  async uploadFile(t, e) {
3616
- const r = this.isRaster(t) ? ve.Image : ve.Illustration, i = await this.loadImageAsFileInfo(t);
3616
+ const r = this.isRaster(t) ? Ee.Image : Ee.Illustration, i = await this.loadImageAsFileInfo(t);
3617
3617
  return await this.uploadAssetWithProgress(i, r, e, !0);
3618
3618
  }
3619
3619
  async removeBackgroundFromAsset(t) {
@@ -3940,7 +3940,7 @@ const j = new Ii(), Dn = w`
3940
3940
  currencyCode
3941
3941
  }
3942
3942
  }
3943
- `, Oe = w`
3943
+ `, ae = w`
3944
3944
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3945
3945
  id
3946
3946
  product {
@@ -3959,7 +3959,7 @@ const j = new Ii(), Dn = w`
3959
3959
  }
3960
3960
  }
3961
3961
  `, Bi = w`
3962
- ${Oe}
3962
+ ${ae}
3963
3963
  mutation CreateTransactions(
3964
3964
  $inputs: [TransactionCreateInput]!
3965
3965
  $marketplaceThemeInstallId: String
@@ -4067,7 +4067,7 @@ const j = new Ii(), Dn = w`
4067
4067
  url
4068
4068
  }
4069
4069
  `, Pi = w`
4070
- ${Oe}
4070
+ ${ae}
4071
4071
  ${Fn}
4072
4072
  ${xn}
4073
4073
  ${Dn}
@@ -4352,7 +4352,7 @@ const j = new Ii(), Dn = w`
4352
4352
  }
4353
4353
  }
4354
4354
  `, Mn = (n) => w`
4355
- ${Oe}
4355
+ ${ae}
4356
4356
  fragment IntegrationProductFields on IntegrationProduct {
4357
4357
  id
4358
4358
  externalProductId
@@ -5493,13 +5493,13 @@ const M = () => {
5493
5493
  y: o.y - n.height * e.y / 2
5494
5494
  };
5495
5495
  return {
5496
- a: ce(r, l, a),
5497
- b: ce(i, l, a),
5498
- c: ce(s, l, a),
5499
- d: ce(o, l, a),
5496
+ a: de(r, l, a),
5497
+ b: de(i, l, a),
5498
+ c: de(s, l, a),
5499
+ d: de(o, l, a),
5500
5500
  center: l
5501
5501
  };
5502
- }, ce = (n, t, e) => {
5502
+ }, de = (n, t, e) => {
5503
5503
  const a = Math.sin(e), r = Math.cos(e);
5504
5504
  return {
5505
5505
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
@@ -5710,7 +5710,7 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5710
5710
  const a = wn(n), r = aa(a);
5711
5711
  return la(n, r), r;
5712
5712
  } else {
5713
- const a = await Ne(n, !0), r = aa(a);
5713
+ const a = await Qe(n, !0), r = aa(a);
5714
5714
  return la(n, r), await Lr(r, n), r;
5715
5715
  }
5716
5716
  }
@@ -5761,17 +5761,17 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5761
5761
  h.appendChild(R);
5762
5762
  }
5763
5763
  return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5764
- }, Pe = (n, t, e, a) => Math.max(ls(n.join(`
5764
+ }, De = (n, t, e, a) => Math.max(ls(n.join(`
5765
5765
  `), e, a), t), za = (n, t, e, a, r, i) => {
5766
5766
  const s = (i || Ln) * r.getApproximateHeight(), o = t.split(`
5767
5767
  `);
5768
5768
  try {
5769
- const l = o.flatMap((d) => pe(d, n.width, a, r)), c = l.flatMap((d) => d.lines);
5769
+ const l = o.flatMap((d) => fe(d, n.width, a, r)), c = l.flatMap((d) => d.lines);
5770
5770
  return {
5771
5771
  lines: c,
5772
5772
  requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
5773
5773
  fontSize: e,
5774
- requiredWidth: Pe(c, n.width, a, r)
5774
+ requiredWidth: De(c, n.width, a, r)
5775
5775
  };
5776
5776
  } catch {
5777
5777
  const c = t.split("");
@@ -5779,17 +5779,17 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5779
5779
  lines: c,
5780
5780
  requiredHeight: c.length * (a * s),
5781
5781
  fontSize: e,
5782
- requiredWidth: Pe(c, n.width, a, r)
5782
+ requiredWidth: De(c, n.width, a, r)
5783
5783
  };
5784
5784
  }
5785
- }, pe = (n, t, e, a) => {
5785
+ }, fe = (n, t, e, a) => {
5786
5786
  const r = mt(n, e, a);
5787
5787
  if (r <= t)
5788
5788
  return { lines: [n], width: r };
5789
5789
  if (!(n.indexOf(" ") > -1)) {
5790
5790
  if (n.length <= 1)
5791
5791
  throw new Error(`Character ${n} is wider than region`);
5792
- const d = Math.floor(n.length / 2), A = pe(n.slice(0, d), t, e, a), u = pe(n.slice(d), t, e, a);
5792
+ const d = Math.floor(n.length / 2), A = fe(n.slice(0, d), t, e, a), u = fe(n.slice(d), t, e, a);
5793
5793
  return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
5794
5794
  }
5795
5795
  const s = n.split(" "), o = [];
@@ -5797,7 +5797,7 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5797
5797
  for (; c < s.length; ) {
5798
5798
  const d = s[c];
5799
5799
  if (mt(d, e, a) > t) {
5800
- const A = pe(d, t, e, a);
5800
+ const A = fe(d, t, e, a);
5801
5801
  o.push(...A.lines), l = Math.max(l, A.width), c++;
5802
5802
  } else {
5803
5803
  const A = [d];
@@ -5827,14 +5827,14 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5827
5827
  return {
5828
5828
  lines: o,
5829
5829
  requiredHeight: t.height,
5830
- requiredWidth: Pe(o, t.width, s, r),
5830
+ requiredWidth: De(o, t.width, s, r),
5831
5831
  fontSize: t.fontSize
5832
5832
  };
5833
5833
  const l = t.width !== e.width != (t.height !== e.height);
5834
5834
  return t.lineHeight === e.lineHeight && !l && e.input === n ? {
5835
5835
  lines: o,
5836
5836
  requiredHeight: t.height,
5837
- requiredWidth: Pe(o, t.width, s, r),
5837
+ requiredWidth: De(o, t.width, s, r),
5838
5838
  fontSize: is(o, r, i, t.width, t.height, a)
5839
5839
  } : za(t, n, t.fontSize, s, r, a);
5840
5840
  }, os = (n, t, e, a, r) => {
@@ -5869,12 +5869,12 @@ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5869
5869
  stripControlCharacters: !0,
5870
5870
  vertical: !1,
5871
5871
  uppercase: !1
5872
- }, De = (n, t = Ga) => {
5872
+ }, Fe = (n, t = Ga) => {
5873
5873
  const e = { ...Ga, ...t };
5874
5874
  let a = n || "";
5875
5875
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5876
5876
  `)), a;
5877
- }, cs = (n, t) => n.map((e, a) => [e, t[a]]), ds = (n = "center", t = !1) => t ? "center" : n, Un = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ae = (n, t, e) => n.fontData ? {
5877
+ }, cs = (n, t) => n.map((e, a) => [e, t[a]]), ds = (n = "center", t = !1) => t ? "center" : n, Un = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ne = (n, t, e) => n.fontData ? {
5878
5878
  ...n,
5879
5879
  ...(() => {
5880
5880
  if (n.algorithm === Mt.Traditional) {
@@ -6187,7 +6187,7 @@ function ba(n) {
6187
6187
  return i < s ? -1 : i > s ? 1 : 0;
6188
6188
  });
6189
6189
  }
6190
- const ne = (n) => {
6190
+ const re = (n) => {
6191
6191
  const t = n.variants;
6192
6192
  if (t) {
6193
6193
  if (t.length === 1)
@@ -6210,7 +6210,7 @@ const ne = (n) => {
6210
6210
  }, ps = (n, t) => {
6211
6211
  if (!t)
6212
6212
  return;
6213
- const e = t.variants?.find((a) => a.id === n.frameVariantId) || ne(t);
6213
+ const e = t.variants?.find((a) => a.id === n.frameVariantId) || re(t);
6214
6214
  if (!e)
6215
6215
  throw new Error(`No variant with ID: ${n.frameVariantId}`);
6216
6216
  if (!e.asset)
@@ -6286,7 +6286,7 @@ const ne = (n) => {
6286
6286
  };
6287
6287
  return ut.set(n, i), i;
6288
6288
  } else {
6289
- const e = await Ne(n, !0), a = await Re(e), r = {
6289
+ const e = await Qe(n, !0), a = await Oe(e), r = {
6290
6290
  src: n,
6291
6291
  width: a.width,
6292
6292
  height: a.height,
@@ -6370,7 +6370,7 @@ const ne = (n) => {
6370
6370
  o.height = o.width / f, o.top += (h - o.height) / 2;
6371
6371
  }
6372
6372
  if (e && t === x.Image) {
6373
- const l = o.height, c = await Ne(e), d = await Re(c), A = d.width / d.height;
6373
+ const l = o.height, c = await Qe(e), d = await Oe(c), A = d.width / d.height;
6374
6374
  o.height = o.width / A, o.top += (l - o.height) / 2;
6375
6375
  }
6376
6376
  if (e && t === x.Textbox && a?.text && a?.fontScale) {
@@ -6428,13 +6428,13 @@ class ld {
6428
6428
  const { configuration: a, fontSrc: r, designInputStep: i } = e, s = await Nt(r), o = {
6429
6429
  assetUrl: r,
6430
6430
  name: s.names.fullName.en
6431
- }, l = i?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = De(c, {
6431
+ }, l = i?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Fe(c, {
6432
6432
  vertical: a.vertical,
6433
6433
  uppercase: a.uppercase
6434
6434
  }), A = e.region || await Ut(t, x.Textbox, r, {
6435
6435
  text: d,
6436
6436
  fontScale: a.size ? a.size / s.unitsPerEm : void 0
6437
- }), u = ae(
6437
+ }), u = ne(
6438
6438
  {
6439
6439
  id: M(),
6440
6440
  type: x.Textbox,
@@ -6687,7 +6687,7 @@ class Ad extends Q {
6687
6687
  s.scaleX = s.scaleX * this.width / e.width, s.scaleY = s.scaleY * this.height / e.height;
6688
6688
  } else if (e.type === "textbox") {
6689
6689
  const s = a, o = (!s.algorithm || s.algorithm === Mt.Autosize ? s.text : s.input) ?? "";
6690
- a = ae(s, o, e);
6690
+ a = ne(s, o, e);
6691
6691
  }
6692
6692
  const r = _(e.id, Object.values(t.layouts)), i = X(a, r);
6693
6693
  return {
@@ -6725,7 +6725,7 @@ class Hn extends Q {
6725
6725
  };
6726
6726
  }
6727
6727
  }
6728
- class z extends Q {
6728
+ class G extends Q {
6729
6729
  /**
6730
6730
  * @param initialParams The initial parameters to be set on this new object
6731
6731
  * @param callback An optional callback function to be notified when the object has been instantiated
@@ -6864,7 +6864,7 @@ class Cs extends Q {
6864
6864
  const a = {
6865
6865
  ...e,
6866
6866
  fontSize: this.size
6867
- }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ae(a, i), r);
6867
+ }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ne(a, i), r);
6868
6868
  return {
6869
6869
  ...t,
6870
6870
  layouts: {
@@ -6886,7 +6886,7 @@ class ja extends Q {
6886
6886
  const a = {
6887
6887
  ...e,
6888
6888
  fontData: this.fontData
6889
- }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ae(a, i), r);
6889
+ }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ne(a, i), r);
6890
6890
  return {
6891
6891
  ...t,
6892
6892
  layouts: {
@@ -7010,7 +7010,7 @@ class vs extends Q {
7010
7010
  const e = U(this.id, Object.values(t.layouts));
7011
7011
  if (!e.id)
7012
7012
  throw new V();
7013
- const a = _(e.id, Object.values(t.layouts)), r = X(ae(e, this.text, e), a);
7013
+ const a = _(e.id, Object.values(t.layouts)), r = X(ne(e, this.text, e), a);
7014
7014
  return {
7015
7015
  ...t,
7016
7016
  layouts: {
@@ -7222,7 +7222,7 @@ class Ya {
7222
7222
  if (this.configuration.type === E.ProductOverlay) {
7223
7223
  let l = "";
7224
7224
  if (this.product?.overlayImageUrl && (l = this.product.overlayImageUrl), s = l, !l)
7225
- throw new Ie(this.configuration, "Couldn't find an asset for product overlay step");
7225
+ throw new Be(this.configuration, "Couldn't find an asset for product overlay step");
7226
7226
  }
7227
7227
  const o = this.evaluateAssetType();
7228
7228
  if (o === x.Image) {
@@ -7251,7 +7251,7 @@ class Ya {
7251
7251
  id: c.id,
7252
7252
  region: r
7253
7253
  },
7254
- command: new z(c, i)
7254
+ command: new G(c, i)
7255
7255
  };
7256
7256
  } else {
7257
7257
  const l = this.configuration.type === E.SilentIllustration ? this.configuration.data.asset?.fileLink : s, d = await ot(await (async () => new Promise((u, h) => {
@@ -7286,14 +7286,14 @@ class Ya {
7286
7286
  id: A.id,
7287
7287
  region: r
7288
7288
  },
7289
- command: new z(A, i)
7289
+ command: new G(A, i)
7290
7290
  };
7291
7291
  }
7292
7292
  }, this.configuration = t, this.layouts = e, this.product = a || void 0;
7293
7293
  }
7294
7294
  async trigger() {
7295
7295
  if (!this.configuration.data.regions)
7296
- throw new Ie(this.configuration, "Missing regions.");
7296
+ throw new Be(this.configuration, "Missing regions.");
7297
7297
  if (this.configuration.type === E.SilentIllustration) {
7298
7298
  const t = this.configuration.data.regions.map(this.processRegion);
7299
7299
  return Promise.all(t);
@@ -7321,7 +7321,7 @@ const bs = async (n) => {
7321
7321
  }
7322
7322
  })).json()).shortUrl;
7323
7323
  } catch (e) {
7324
- throw console.error(e), new Te("Failed to shorten URL, see console.");
7324
+ throw console.error(e), new Ne("Failed to shorten URL, see console.");
7325
7325
  }
7326
7326
  };
7327
7327
  class jn {
@@ -7366,7 +7366,7 @@ class Is {
7366
7366
  }
7367
7367
  async regenerateQRCode(t, e, a, r) {
7368
7368
  const i = async () => {
7369
- const h = (await Be([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
7369
+ const h = (await Pe([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
7370
7370
  return { asset: h, link: m };
7371
7371
  }, s = await new Promise((h, m) => {
7372
7372
  new jn(
@@ -7392,10 +7392,10 @@ class Is {
7392
7392
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7393
7393
  const c = l.toString();
7394
7394
  if (c.length >= 2e3)
7395
- throw new Te("Cannot create QR code, URL too long.");
7395
+ throw new Ne("Cannot create QR code, URL too long.");
7396
7396
  const d = await bs(c);
7397
7397
  if (!r.data || !r.data.regions)
7398
- throw new Ie(r, "Missing regions.");
7398
+ throw new Be(r, "Missing regions.");
7399
7399
  const A = await this.regionElements(r), u = await this.command(d, A, a, r.stepName);
7400
7400
  return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(r.stepName, [], A, async () => {
7401
7401
  a.updateStorage(r.stepName, {
@@ -7417,7 +7417,7 @@ class Is {
7417
7417
  throw new Error("Region not found");
7418
7418
  if (!A || !d)
7419
7419
  throw new Error("Neither a region or layout found!");
7420
- return new z(
7420
+ return new G(
7421
7421
  {
7422
7422
  stepRegion: d,
7423
7423
  stepName: r,
@@ -7438,7 +7438,7 @@ class Is {
7438
7438
  }
7439
7439
  }
7440
7440
  const Yn = new Is();
7441
- class Fe {
7441
+ class xe {
7442
7442
  constructor() {
7443
7443
  this.frameSourceSvg = async (t, e) => {
7444
7444
  if (!t)
@@ -7545,7 +7545,7 @@ class Fe {
7545
7545
  })) ?? [];
7546
7546
  }
7547
7547
  selectImage(t, e, a, r = !0) {
7548
- const i = Fe.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7548
+ const i = xe.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7549
7549
  if (s && s === i)
7550
7550
  return Promise.resolve();
7551
7551
  a.setEditedStatus(t.stepName, !0);
@@ -7565,7 +7565,7 @@ class Fe {
7565
7565
  });
7566
7566
  },
7567
7567
  () => {
7568
- throw new Te("Failed to resolve transcoded PDF");
7568
+ throw new Ne("Failed to resolve transcoded PDF");
7569
7569
  }
7570
7570
  )
7571
7571
  );
@@ -7582,7 +7582,7 @@ class Fe {
7582
7582
  s && (s.command && r.getCommandDispatcher()(s.command), s.followup && await s.followup());
7583
7583
  }
7584
7584
  getCreateElementCommand(t, e, a, r) {
7585
- return new z(
7585
+ return new G(
7586
7586
  {
7587
7587
  id: t,
7588
7588
  type: x.Frame,
@@ -7627,7 +7627,7 @@ class Fe {
7627
7627
  };
7628
7628
  ut.set(t, A), e.setPatternData(A, a);
7629
7629
  } else {
7630
- const s = await Ne(t, !0), o = await Re(s), l = {
7630
+ const s = await Qe(t, !0), o = await Oe(s), l = {
7631
7631
  src: t,
7632
7632
  width: o.width,
7633
7633
  height: o.height,
@@ -7776,7 +7776,7 @@ class Fe {
7776
7776
  throw new Yt(t);
7777
7777
  }
7778
7778
  async loadPatternFromAsset(t, e, a, r) {
7779
- const i = Fe.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7779
+ const i = xe.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7780
7780
  if (!o)
7781
7781
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7782
7782
  try {
@@ -7803,7 +7803,7 @@ class Fe {
7803
7803
  ), this.validateColorCount(e, a);
7804
7804
  }
7805
7805
  }
7806
- const St = new Fe();
7806
+ const St = new xe();
7807
7807
  class Bs {
7808
7808
  async getIllustrationBody(t) {
7809
7809
  return new Promise((e) => {
@@ -7813,7 +7813,7 @@ class Bs {
7813
7813
  });
7814
7814
  }
7815
7815
  getCreateElementCommand(t, e, a, r) {
7816
- return new z(
7816
+ return new G(
7817
7817
  {
7818
7818
  stepRegion: e,
7819
7819
  stepName: r.stepName,
@@ -7958,7 +7958,7 @@ class Bs {
7958
7958
  }
7959
7959
  async selectVariantCommand(t, e, a, r, i) {
7960
7960
  if (!t.data || !t.data.regions)
7961
- throw new Ie(t, "Missing regions.");
7961
+ throw new Be(t, "Missing regions.");
7962
7962
  r(!0);
7963
7963
  const s = a.map((f) => new It(f.id));
7964
7964
  t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
@@ -8036,12 +8036,12 @@ class Bs {
8036
8036
  };
8037
8037
  }
8038
8038
  }
8039
- const fe = new Bs();
8039
+ const Ce = new Bs();
8040
8040
  class Ps {
8041
8041
  async init(t, e, a) {
8042
8042
  const r = t.option;
8043
8043
  if (!r)
8044
- throw new be(t);
8044
+ throw new Ie(t);
8045
8045
  if (a)
8046
8046
  await this.reload(t, e, a);
8047
8047
  else {
@@ -8057,7 +8057,7 @@ class Ps {
8057
8057
  t.stepName,
8058
8058
  a.serializableWorkflow.steps
8059
8059
  ), o = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName), l = t.option;
8060
- if (!l) throw new be(t);
8060
+ if (!l) throw new Ie(t);
8061
8061
  if (r?.selectedVariants) {
8062
8062
  const c = r.selectedVariants[0].id;
8063
8063
  if (c) {
@@ -8116,7 +8116,7 @@ const Jn = new Ps();
8116
8116
  class Ds {
8117
8117
  async init(t, e, a) {
8118
8118
  const r = t.option;
8119
- if (!r) throw new be(t);
8119
+ if (!r) throw new Ie(t);
8120
8120
  if (a)
8121
8121
  await this.reload(t, e, a);
8122
8122
  else {
@@ -8232,7 +8232,7 @@ class Fs {
8232
8232
  return console.error(`Can not find layout for region: ${A.panelId}`), null;
8233
8233
  const g = [];
8234
8234
  return u && g.push(new It(h)), g.push(
8235
- new z(
8235
+ new G(
8236
8236
  {
8237
8237
  stepRegion: A,
8238
8238
  stepName: t.stepName,
@@ -8359,7 +8359,7 @@ class xs {
8359
8359
  const m = M();
8360
8360
  return {
8361
8361
  regionElement: { id: m, region: A },
8362
- command: new z(
8362
+ command: new G(
8363
8363
  {
8364
8364
  stepName: t.stepName,
8365
8365
  stepRegion: A,
@@ -8475,7 +8475,7 @@ class Ms {
8475
8475
  async init(t, e, a) {
8476
8476
  const r = t.option;
8477
8477
  if (!r)
8478
- throw new be(t);
8478
+ throw new Ie(t);
8479
8479
  if (a)
8480
8480
  await this.reload(t, e, a);
8481
8481
  else {
@@ -8577,7 +8577,7 @@ class Ms {
8577
8577
  return {
8578
8578
  id: f,
8579
8579
  region: u,
8580
- command: new z(
8580
+ command: new G(
8581
8581
  {
8582
8582
  stepRegion: u,
8583
8583
  stepName: t.stepName,
@@ -8668,7 +8668,7 @@ const Ns = new Ts(), Ke = (n, t, e, a, r) => {
8668
8668
  m || (c = !1);
8669
8669
  }
8670
8670
  return [null, null];
8671
- }, Ce = (n, t, e, a, r) => {
8671
+ }, we = (n, t, e, a, r) => {
8672
8672
  let i, s;
8673
8673
  const o = Ct(t.assetUrl), l = o.getFont();
8674
8674
  if (r.size) {
@@ -8686,16 +8686,16 @@ const Ns = new Ts(), Ke = (n, t, e, a, r) => {
8686
8686
  const A = d / l.unitsPerEm;
8687
8687
  return [i, s] = Ke(e, a, d, A, o), [d, i, s];
8688
8688
  }, _e = 30;
8689
- class xe extends Error {
8689
+ class ke extends Error {
8690
8690
  constructor(t) {
8691
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
8691
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
8692
8692
  }
8693
8693
  }
8694
8694
  const Qs = ["‘", "’", "“", "”", `
8695
8695
  `];
8696
- class ke extends Error {
8696
+ class Me extends Error {
8697
8697
  constructor(t) {
8698
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
8698
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Me.name;
8699
8699
  }
8700
8700
  }
8701
8701
  class Rs {
@@ -8907,7 +8907,7 @@ class Rs {
8907
8907
  }
8908
8908
  getProcessedInput(t, e, a) {
8909
8909
  const r = a ? t : this.injectReplaceableText(t, e);
8910
- return De(r, {
8910
+ return Fe(r, {
8911
8911
  vertical: e.vertical,
8912
8912
  uppercase: e.uppercase
8913
8913
  });
@@ -8924,7 +8924,7 @@ class Rs {
8924
8924
  const c = [], d = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
8925
8925
  for (const u of e) {
8926
8926
  if (!u.fontData) throw new N("Failed to resolve font data for text.");
8927
- const [h, m] = Ce(
8927
+ const [h, m] = we(
8928
8928
  u.fontSize,
8929
8929
  u.fontData,
8930
8930
  { left: u.x, top: u.y, width: u.width, height: u.height, rotation: u.rotation },
@@ -9011,7 +9011,7 @@ class Rs {
9011
9011
  e.getCommandDispatcher()(f.command);
9012
9012
  }
9013
9013
  } else {
9014
- const { command: g } = G.updateInputText(
9014
+ const { command: g } = W.updateInputText(
9015
9015
  m || "",
9016
9016
  o,
9017
9017
  t,
@@ -9047,7 +9047,7 @@ class Rs {
9047
9047
  e.getCommandDispatcher()(p.command);
9048
9048
  }
9049
9049
  } else {
9050
- const { command: m } = G.updateInputText(
9050
+ const { command: m } = W.updateInputText(
9051
9051
  h,
9052
9052
  o,
9053
9053
  t,
@@ -9176,7 +9176,7 @@ class Rs {
9176
9176
  const m = s.getLayouts().find((g) => g.panelId === u.panelId), p = M();
9177
9177
  try {
9178
9178
  if (!m)
9179
- throw new ke("Failed to find layout for region: " + u.panelId);
9179
+ throw new Me("Failed to find layout for region: " + u.panelId);
9180
9180
  const g = a.colorOption;
9181
9181
  let f;
9182
9182
  if (g && g.variants) {
@@ -9211,7 +9211,7 @@ class Rs {
9211
9211
  fillSpotColorDefinition: f
9212
9212
  }, y = [], S = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
9213
9213
  if (!P.fontData) throw new N("Failed to resolve font data for text.");
9214
- const [b, F] = Ce(
9214
+ const [b, F] = we(
9215
9215
  P.fontSize,
9216
9216
  P.fontData,
9217
9217
  {
@@ -9231,7 +9231,7 @@ class Rs {
9231
9231
  y.push(
9232
9232
  this.generateTextChangeCommandsForRegion(b, a, P.id, R)
9233
9233
  );
9234
- const T = new z(P, m);
9234
+ const T = new G(P, m);
9235
9235
  return {
9236
9236
  regionElement: { id: p, region: u },
9237
9237
  commands: [T, ...y],
@@ -9239,10 +9239,10 @@ class Rs {
9239
9239
  fontData: r
9240
9240
  };
9241
9241
  } catch (g) {
9242
- throw console.log(g), new xe("Error adding font to region");
9242
+ throw console.log(g), new ke("Error adding font to region");
9243
9243
  }
9244
9244
  }, A = await Promise.all(a.regions.map(d)).catch((u) => {
9245
- throw u instanceof xe ? (Ns.setLatestToast("Failed to load font.", Le.Error), u) : u instanceof ke ? u : new Error(u);
9245
+ throw u instanceof ke ? (Ns.setLatestToast("Failed to load font.", Le.Error), u) : u instanceof Me ? u : new Error(u);
9246
9246
  });
9247
9247
  return await s.setSelectionsAndElements(
9248
9248
  t,
@@ -9272,7 +9272,7 @@ class Rs {
9272
9272
  const A = (r || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = Ft(A, s), h = this.getProcessedInput(u, t.data, o), m = s.getRegionElements(t.stepName), p = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
9273
9273
  for (const y of m)
9274
9274
  if (y.region) {
9275
- const [S, B] = Ce(
9275
+ const [S, B] = we(
9276
9276
  e,
9277
9277
  a,
9278
9278
  y.region,
@@ -9319,20 +9319,20 @@ class Rs {
9319
9319
  return new O(I);
9320
9320
  }
9321
9321
  }
9322
- const G = new Rs();
9322
+ const W = new Rs();
9323
9323
  class Os {
9324
9324
  }
9325
9325
  const $s = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAA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Ar/5wAL/90ADP/lAA3/zgAO/90AD//dABD/7AAR/+IAEv/iABP/2AAU/+IAFf/JABb/5wAx/90AMv/EADP/6wA0/+EANf/wADb/8AA4/9wAOf/dADr/7AA7/9gAPP/sAD3/5wA+/+wAP//iAED/0wBB/+IAQv/YAEP/4gBE/84ARf/JAEb/4gBH/8kASP/OAEn/vwBK/8kAS//TACwABv/7AAf/3wAI/+cACf+wAAr/4wAL/8kADP/dAA3/xwAO/+cAD//dABD/7AAR/+cAEv/iABP/yQAU/9cAFf+/ABb/4gAa/+kAMf/YADL/uwAz/+EANP/dADb/6wA3//MAOP/lADn/8QA6//IAO//eADz/5wA9/+4APv/zAD//8ABA/+IAQf/2AEL/6gBD//YARP/kAEX/zABG/+8AR/+0AEj/uwBJ/64ASv+vAEv/5QAsAAb/+wAH/90ACP/nAAn/4gAK/9MAC//nAAz/3QAN//YADv/eAA//3QAQ/7AAEf/OABL/sAAT//sAFP/dABX/0wAW/9MAMf/iADL/iAAz//YANP/OADX/9gA2//EAN//xADj/0wA5//YAOv/zADv/gAA8//EAPf/7AD7/+wA///YAQP/OAEH/7gBC/84AQ//2AET/2ABF//sARv/2AEf/5wBI/+cASf/TAEr/4gBL/+wALAAG//sAB//2AAj/8QAJ/9gACv/nAAv/3QAM/+IADf/dAA7/4gAP/+IAEP/nABH/5wAS/9gAE//YABT/3QAV/84AFv/sADH/5wAy/78AM//nADT/2AA1/+cANv/nADf/7AA4/90AOf/sADr/7AA7/+cAPP/sAD3/8QA+/+wAP//xAED/4gBB//EAQv/dAEP/5wBE/+IARf/YAEb/5wBH/78ASP/HAEn/sABK/7UAS//dACsABv/xAAf/8QAI/+IACf/dAAr/0wAL/+IADP/iAA3/3QAO/+cAD//dABD/zgAR/9MAEv/EABP/0wAU/84AFv/dADH/4gAy/6EAM//jADT/3QA1/+wANv/sADf/5wA4/90AOf/nADr/8QA7/78APP/xAD3/9gA+/+wAP//nAED/3QBB/+cAQv/nAEP/5wBE/+IARf/OAEb/3QBH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7ADz//gA9//4APv/7AED/7ABB//4AQv/nAEP/+QBE//kARf/7AEb/+QBH//MASP/rAEn/4gBK/+8AS//7AB0ABv/2ABf/zgAl/+8AMv+3ADP/9wA0/+sANf/3ADb/8QA3//kAOP/uADn/8wA6//sAO//YADz/8wA9/+4APv/3AD//8wBA/+MAQf/3AEL/6QBD/+8ARP/nAEX/1ABG/+8AR//JAEj/zABJ/6YASv/JAEv/3AAcAAb/+wAX//MAJf/7ADL/6wAz//4ANP/uADX/+wA2//4AN//+ADj/8wA5//0AOv/+ADv/7gA8//4APf/+AD7/+wA///4AQP/uAEL/9wBD//4ARP/+AEX/+QBG//4AR//uAEj/9wBJ/+4ASv/zAEv//gAYAAb/+wAx//YAMv/rADP//wA0//MANf//ADYAAQA3//8AOP/zADv/6AA8//4APf/+AD4AAQBA/+4AQf//AEL/8wBD//4ARP/4AEX//QBH/+wASP/3AEn/7ABK//EASwABABwABv/2ABf/4QAy/8oAM//9ADT/+QA1//4ANv/7ADf//gA4//MAOf/+ADr//wA7/+EAPP/7AD3//gA+//4AP//+AED/7wBB//4AQv/zAEP//gBE//sARf/7AEb//gBH/+8ASP/5AEn/2gBK//oAS//+AB0ABv/nABf/5wAx/7AAMv/hADP/7gA0/7QANf/rADb/5wA3/+4AOP+sADn/6wA6//kAO/+3ADz/6gA9/+8APv/nAD//5wBA/6wAQf/uAEL/rgBD/+cARP+8AEX/3ABG/9oAR//cAEj/0QBJ/9oASv/RAEv/7wAeAAb/9gAX//cAI//9ADH/vwAy/+4AM//5ADT/2gA1//4ANv/3ADf/+wA4/9oAOf/3ADr/+wA7/+cAPP/7AD3/+QA+//cAP//5AED/1ABB//sAQv/cAEP/9wBE/+8ARf/JAEb/6wBH/8QASP++AEn/5wBK/8EAS//+ABwAF//7ADH/7AAy/+QAM//+ADT/7gA1//4ANgAAADf//QA4//cAOf/7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vA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9//4APv/uAD//8QBA/+cAQf/vAEL/4wBD/+sARP/cAEX/0ABG/+sAR//CAEj/xABJ/7QASv+6AEv/6AAmAAf/9gAI//EACf/sAAr/9gAM/+cADv/6AA//8QAQ//EAEf/vABL/4QAT//EAFP/iABX/5wAy/+kAM//9ADT/5wA1//sANv/9ADf//gA4/+sAOf/+ADoAAQA7/+gAPP/9AD3/9wA+//0AP//9AED/6wBBAAEAQv/pAEP/+QBE/+wARgACAEf/6QBI/+8ASf/nAEr/6wBL//sAKQAH//sACP/xAAn/5wAK/+4AC//2AAz/4gAN//sADv/1AA//8QAQ/90AEf/kABL/4gAT/+wAFP/YABX/3QAx//YAMv+5ADP/+AA0/+MANf/3ADb/+AA3//kAOP/iADn/+gA6//0AO//OADz//QA9//4APv/5AD///ABA/+YAQv/jAEP/9wBE/+YARf/vAEb//gBH/+cASP/vAEn/0QBK/+YAS//9ACgAB//2AAj/4gAJ/90ACv/sAAv/4gAM/+gADf/iAA7/9QAP/+gAEP/dABH/4AAS/+YAE//OABT/4gAV/90AJP/7ADH/9gAy/8EAM//vADT/3wA2//QAN//4ADj/4wA5/+kAOv/6ADv/0QA8/+YAPf/zAD7/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//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ABA/7oAQf/zAEL/uQBD/+sARP/OAEX/3wBG/+EAR//aAEj/2ABJ/9gASv/MAEv/7gAsAAf/yQAI/84ACf/JAAr/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", at = (n) => $r("http://www.w3.org/2000/svg", n), Us = (n, t) => {
9326
9326
  const e = at("rect");
9327
9327
  return e.setAttribute("height", `${n}`), e.setAttribute("width", `${t}`), e;
9328
9328
  }, Ls = (n, t, e, a) => {
9329
- const r = se("filter");
9329
+ const r = oe("filter");
9330
9330
  r.setAttribute("id", a), r.setAttribute("height", "200%"), r.setAttribute("width", "200%"), r.setAttribute("x", "-50%"), r.setAttribute("y", "-50%");
9331
- const i = se("feOffset");
9331
+ const i = oe("feOffset");
9332
9332
  r.appendChild(i), i.setAttribute("result", "offOut"), i.setAttribute("in", "SourceAlpha"), i.setAttribute("dx", `${n}`), i.setAttribute("dy", `${t}`);
9333
- const s = se("feGaussianBlur");
9333
+ const s = oe("feGaussianBlur");
9334
9334
  r.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
9335
- const o = se("feBlend");
9335
+ const o = oe("feBlend");
9336
9336
  return r.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), r;
9337
9337
  }, Vs = (n) => {
9338
9338
  let t = n;
@@ -9511,7 +9511,7 @@ async function tr(n) {
9511
9511
  return new qs();
9512
9512
  throw new N(`Failed to resolve Module, Module ${n} not found`);
9513
9513
  }
9514
- const re = w`
9514
+ const ie = w`
9515
9515
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9516
9516
  name
9517
9517
  value
@@ -9534,7 +9534,7 @@ const re = w`
9534
9534
  }
9535
9535
  }
9536
9536
  `, Hs = w`
9537
- ${re}
9537
+ ${ie}
9538
9538
  mutation CreateGlobalPropertyState($bundleId: String!) {
9539
9539
  globalPropertyStateCreate(bundleId: $bundleId) {
9540
9540
  id
@@ -9544,7 +9544,7 @@ const re = w`
9544
9544
  }
9545
9545
  }
9546
9546
  `, js = w`
9547
- ${re}
9547
+ ${ie}
9548
9548
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9549
9549
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
9550
9550
  id
@@ -9554,7 +9554,7 @@ const re = w`
9554
9554
  }
9555
9555
  }
9556
9556
  `, Ys = w`
9557
- ${re}
9557
+ ${ie}
9558
9558
  query GetGlobalPropertyState($bundleId: String!) {
9559
9559
  globalPropertyState(bundleId: $bundleId) {
9560
9560
  id
@@ -9571,7 +9571,7 @@ const re = w`
9571
9571
  bundleId: n
9572
9572
  }
9573
9573
  })).data.globalPropertyState, Js = (n) => w`
9574
- ${Oe}
9574
+ ${ae}
9575
9575
  fragment ProductFields on Product {
9576
9576
  id
9577
9577
  basePrice
@@ -9625,7 +9625,7 @@ const re = w`
9625
9625
  ...ProductFields
9626
9626
  }
9627
9627
  }
9628
- `, ie = (n, t = !1) => w`
9628
+ `, se = (n, t = !1) => w`
9629
9629
  ${n ? Pa(t) : ""}
9630
9630
  fragment ProductCollectionFields on ProductCollection {
9631
9631
  id
@@ -9696,8 +9696,8 @@ const re = w`
9696
9696
  }
9697
9697
  }
9698
9698
  `, Ks = (n) => w`
9699
- ${re}
9700
- ${ie(n)}
9699
+ ${ie}
9700
+ ${se(n)}
9701
9701
  query GetBundle($id: String!) {
9702
9702
  globalPropertyState(bundleId: $id) {
9703
9703
  id
@@ -9879,7 +9879,7 @@ const re = w`
9879
9879
  }
9880
9880
  }
9881
9881
  `, eo = (n) => w`
9882
- ${ie(n)}
9882
+ ${se(n)}
9883
9883
  mutation CreateBundle(
9884
9884
  $collectionId: String
9885
9885
  $initialMetadata: [MetadataInput!]
@@ -9908,8 +9908,8 @@ const re = w`
9908
9908
  }
9909
9909
  }
9910
9910
  `, ao = (n) => w`
9911
- ${re}
9912
- ${ie(n)}
9911
+ ${ie}
9912
+ ${se(n)}
9913
9913
  mutation DuplicateBundle(
9914
9914
  $id: String!
9915
9915
  $template: Boolean
@@ -10064,7 +10064,7 @@ const re = w`
10064
10064
  }
10065
10065
  }
10066
10066
  `, uo = (n) => w`
10067
- ${ie(n)}
10067
+ ${se(n)}
10068
10068
  mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
10069
10069
  bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
10070
10070
  id
@@ -10274,7 +10274,7 @@ class Io {
10274
10274
  const t = this.experience.getTransaction().recipient, e = { recipient: t };
10275
10275
  return this.recipientConversionConfiguration?.requestedDataItems?.forEach((a) => {
10276
10276
  const r = a.uniqueIdentifier ?? a.title ?? "";
10277
- a.type === we.FirstName ? e[r] = t?.firstName : a.type === we.LastName ? e[r] = t?.lastName : a.type === we.Custom && (a.customFieldIndex === 1 ? e[r] = t?.customField1 : a.customFieldIndex === 2 ? e[r] = t?.customField2 : a.customFieldIndex === 3 ? e[r] = t?.customField3 : a.customFieldIndex === 4 ? e[r] = t?.customField4 : a.customFieldIndex === 5 && (e[r] = t?.customField5));
10277
+ a.type === ye.FirstName ? e[r] = t?.firstName : a.type === ye.LastName ? e[r] = t?.lastName : a.type === ye.Custom && (a.customFieldIndex === 1 ? e[r] = t?.customField1 : a.customFieldIndex === 2 ? e[r] = t?.customField2 : a.customFieldIndex === 3 ? e[r] = t?.customField3 : a.customFieldIndex === 4 ? e[r] = t?.customField4 : a.customFieldIndex === 5 && (e[r] = t?.customField5));
10278
10278
  }), e;
10279
10279
  }
10280
10280
  async updateRecipient(t, e, a, r, i, s, o, l, c, d, A, u, h, m, p, g, f) {
@@ -10653,7 +10653,7 @@ class Io {
10653
10653
  ...this.storage,
10654
10654
  [t]: { ...this.storage[t], ...e }
10655
10655
  };
10656
- if (!Se(a, this.storage)) {
10656
+ if (!ve(a, this.storage)) {
10657
10657
  this.storage = a;
10658
10658
  const r = new Ha(this.constructSerializableWorkflow());
10659
10659
  this.commandContext.apply(r, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
@@ -10899,7 +10899,7 @@ class Io {
10899
10899
  break;
10900
10900
  case E.Illustration:
10901
10901
  a.push(
10902
- fe.init(l, this, this.reloadedState)
10902
+ Ce.init(l, this, this.reloadedState)
10903
10903
  );
10904
10904
  break;
10905
10905
  case E.Material:
@@ -10931,7 +10931,7 @@ class Io {
10931
10931
  a.push(zt.init(l, this, this.reloadedState));
10932
10932
  break;
10933
10933
  case E.Text:
10934
- a.push(G.init(l, this, this.reloadedState));
10934
+ a.push(W.init(l, this, this.reloadedState));
10935
10935
  break;
10936
10936
  }
10937
10937
  const i = (await Promise.allSettled(a)).map((l) => {
@@ -11217,7 +11217,7 @@ class Bo extends Z {
11217
11217
  */
11218
11218
  async selectVariant(t) {
11219
11219
  if (!this.getUpdateState() && this.getCurrentVariant() !== t)
11220
- return fe.selectVariant(
11220
+ return Ce.selectVariant(
11221
11221
  this.step,
11222
11222
  t.getResource(),
11223
11223
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -11259,7 +11259,7 @@ class Bo extends Z {
11259
11259
  const c = l.id.replace(/\W/g, "");
11260
11260
  a ? r.set(c, { browserValue: e, pmsValue: a }) : r.set(c, e);
11261
11261
  }
11262
- }) : a ? r.set(t, { browserValue: e, pmsValue: a }) : r.set(t, e), fe.changeColors(
11262
+ }) : a ? r.set(t, { browserValue: e, pmsValue: a }) : r.set(t, e), Ce.changeColors(
11263
11263
  this.step,
11264
11264
  this.manager.getRegionElements(this.step.stepName),
11265
11265
  this.manager,
@@ -11271,7 +11271,7 @@ class Bo extends Z {
11271
11271
  return this.step.data.colorOption;
11272
11272
  }
11273
11273
  getAvailableColors() {
11274
- return this.step.data.colorPickerEnabled ? fe.availableColors(this.step, this.manager) : Promise.resolve([]);
11274
+ return this.step.data.colorPickerEnabled ? Ce.availableColors(this.step, this.manager) : Promise.resolve([]);
11275
11275
  }
11276
11276
  isColorPickerEnabled() {
11277
11277
  return this.step.data.colorPickerEnabled ?? !1;
@@ -11408,7 +11408,7 @@ class Mo extends Z {
11408
11408
  * @param variant The font variant to use.
11409
11409
  */
11410
11410
  async selectVariant(t) {
11411
- G.selectVariant(
11411
+ W.selectVariant(
11412
11412
  this.step,
11413
11413
  t.getResource(),
11414
11414
  this.manager,
@@ -11435,7 +11435,7 @@ class Mo extends Z {
11435
11435
  * @returns A list of colors that can be used to fill the text.
11436
11436
  */
11437
11437
  getAvailableFillColors() {
11438
- return this.step.data.colorPickerEnabled ? G.availableFillColors(this.step) : [];
11438
+ return this.step.data.colorPickerEnabled ? W.availableFillColors(this.step) : [];
11439
11439
  }
11440
11440
  /**
11441
11441
  * Changes the fill of text related to this step to the new fill value.
@@ -11443,7 +11443,7 @@ class Mo extends Z {
11443
11443
  */
11444
11444
  async setFillColor(t) {
11445
11445
  const e = this.manager.getRegionElements(this.step.stepName);
11446
- await G.changeFillColor(this.step, t, e, this.manager);
11446
+ await W.changeFillColor(this.step, t, e, this.manager);
11447
11447
  }
11448
11448
  /**
11449
11449
  * Gets the color currently applied to the element.
@@ -11452,21 +11452,21 @@ class Mo extends Z {
11452
11452
  return this.manager.getStepStorage(this.step.stepName)?.color || "#000000";
11453
11453
  }
11454
11454
  getAvailableFillImages() {
11455
- return G.availableFillImages(this.step);
11455
+ return W.availableFillImages(this.step);
11456
11456
  }
11457
11457
  async setFillImage(t) {
11458
11458
  const e = this.manager.getRegionElements(this.step.stepName);
11459
- await G.changeFillImage(this.step, t, e, this.manager);
11459
+ await W.changeFillImage(this.step, t, e, this.manager);
11460
11460
  }
11461
11461
  getFillImage() {
11462
11462
  return this.manager.getStepStorage(this.step.stepName)?.fillImage;
11463
11463
  }
11464
11464
  getAlignment() {
11465
- return G.findLayoutElements(this.manager, this.step)?.[0].align;
11465
+ return W.findLayoutElements(this.manager, this.step)?.[0].align;
11466
11466
  }
11467
11467
  setAlignment(t) {
11468
11468
  const e = this.manager.getRegionElements(this.step.stepName);
11469
- G.changeAlignment(this.step, t, e, this.manager);
11469
+ W.changeAlignment(this.step, t, e, this.manager);
11470
11470
  }
11471
11471
  /**
11472
11472
  * When true & the step has replaceable text configured the user will be
@@ -11489,11 +11489,11 @@ class Mo extends Z {
11489
11489
  const e = {
11490
11490
  input: t,
11491
11491
  helperData: {}
11492
- }, a = G.findLayoutElements(this.manager, this.step), r = G.filterUnsupportedCharacters(t, a[0]?.fontData), i = Ft(r, this.manager).length, s = !!this.step.data && !!this.step.data.maxLength && i > this.step.data.maxLength;
11492
+ }, a = W.findLayoutElements(this.manager, this.step), r = W.filterUnsupportedCharacters(t, a[0]?.fontData), i = Ft(r, this.manager).length, s = !!this.step.data && !!this.step.data.maxLength && i > this.step.data.maxLength;
11493
11493
  s || (e.input = r);
11494
11494
  const o = a.length <= 0, l = o ? { inputText: r, text: r } : { inputText: r };
11495
11495
  this.manager.updateStorage(this.step.stepName, l);
11496
- const c = this.manager.getStepStorage(this.step.stepName), d = G.getProcessedInput(
11496
+ const c = this.manager.getStepStorage(this.step.stepName), d = W.getProcessedInput(
11497
11497
  r,
11498
11498
  this.step.data,
11499
11499
  c?.customiseAllText ?? !1
@@ -11503,7 +11503,7 @@ class Mo extends Z {
11503
11503
  text: d
11504
11504
  });
11505
11505
  else {
11506
- const { command: A, errorData: u, helperData: h } = G.updateInputText(
11506
+ const { command: A, errorData: u, helperData: h } = W.updateInputText(
11507
11507
  r,
11508
11508
  a,
11509
11509
  this.step,
@@ -11540,8 +11540,8 @@ class Mo extends Z {
11540
11540
  if (!this.manager.getStepStorage(this.step.stepName)?.defaultCleared && this.step.data.deleteDefaultOnFocus) {
11541
11541
  const e = this.setText("");
11542
11542
  this.manager.updateStorage(this.step.stepName, { defaultCleared: !0, inputText: "" });
11543
- const a = G.findLayoutElements(this.manager, this.step);
11544
- return G.updateInputText("", a, this.step, this.manager), e;
11543
+ const a = W.findLayoutElements(this.manager, this.step);
11544
+ return W.updateInputText("", a, this.step, this.manager), e;
11545
11545
  }
11546
11546
  }
11547
11547
  hasColorPicker() {
@@ -11578,7 +11578,7 @@ class Mo extends Z {
11578
11578
  * @returns A list of colors that can be used for the text's outline.
11579
11579
  */
11580
11580
  getAvailableStrokeColors() {
11581
- return this.step.data.strokeEnabled ? G.availableStrokeColors(this.step) : [];
11581
+ return this.step.data.strokeEnabled ? W.availableStrokeColors(this.step) : [];
11582
11582
  }
11583
11583
  getStrokeColor() {
11584
11584
  return this.manager.getStepStorage(this.step.stepName)?.strokeColor?.browserValue || "#000000";
@@ -11589,7 +11589,7 @@ class Mo extends Z {
11589
11589
  */
11590
11590
  async setStrokeColor(t) {
11591
11591
  const e = this.manager.getRegionElements(this.step.stepName);
11592
- await G.changeStrokeColor(this.step, t, e, this.manager);
11592
+ await W.changeStrokeColor(this.step, t, e, this.manager);
11593
11593
  }
11594
11594
  }
11595
11595
  class To extends Z {
@@ -11678,7 +11678,7 @@ class Qo extends Z {
11678
11678
  });
11679
11679
  }
11680
11680
  }
11681
- class de {
11681
+ class Ae {
11682
11682
  static get(t, e) {
11683
11683
  switch (e.type) {
11684
11684
  case E.DigitalContent:
@@ -11939,9 +11939,9 @@ const $o = async (n, t) => {
11939
11939
  let R = 0;
11940
11940
  if (Object.keys(i).length > 0)
11941
11941
  for (const T of Object.keys(i)) {
11942
- const tt = i[T], et = t.steps.find((W) => W.stepName === T);
11943
- for (let W = 0; W < tt.selections.length; ++W) {
11944
- const q = tt.selections[W];
11942
+ const tt = i[T], et = t.steps.find((z) => z.stepName === T);
11943
+ for (let z = 0; z < tt.selections.length; ++z) {
11944
+ const q = tt.selections[z];
11945
11945
  if (et && (!b || et.option && (et.option.variants || []).length > 1 && !et.data.hideSelectionInCart && !et.data.hideSelectionsInCart)) {
11946
11946
  const wt = et.stepTitle;
11947
11947
  F[wt] ? F[wt].push({
@@ -11973,7 +11973,7 @@ const $o = async (n, t) => {
11973
11973
  const b = await (await rt(S)).blob();
11974
11974
  S = (await $.uploadAsset(
11975
11975
  { name: `${r.id}-preview-image.png`, blob: b },
11976
- ve.Image,
11976
+ Ee.Image,
11977
11977
  !0,
11978
11978
  !1
11979
11979
  )).fileLink;
@@ -12195,6 +12195,7 @@ const Xe = new Go(), Wo = w`
12195
12195
  }
12196
12196
  }
12197
12197
  `, jo = w`
12198
+ ${ae}
12198
12199
  mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String!) {
12199
12200
  transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
12200
12201
  id
@@ -12289,7 +12290,7 @@ const Xe = new Go(), Wo = w`
12289
12290
  var Yo = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n.SelectionChanged = "SelectionChanged", n))(Yo || {});
12290
12291
  class Jo {
12291
12292
  constructor(t, e) {
12292
- if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = hn(async () => {
12293
+ this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = hn(async () => {
12293
12294
  await Xe.getSavedDesignByTransaction(this.getTransaction().id) && this.save();
12294
12295
  }, 2500), this.getCanvasObjectURLAsync = async (r) => new Promise((i, s) => {
12295
12296
  try {
@@ -12302,9 +12303,7 @@ class Jo {
12302
12303
  } catch (o) {
12303
12304
  s(o);
12304
12305
  }
12305
- }), !e.workflow)
12306
- throw new Error("No Workflow ID provided.");
12307
- this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.product = e.transaction.product, this.profanityList = this.product?.profanities?.map((r) => r.word) || [];
12306
+ }), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.product = e.transaction.product, this.profanityList = this.product?.profanities?.map((r) => r.word) || [];
12308
12307
  const a = e.layouts;
12309
12308
  this.commandContext = new gs(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Io(
12310
12309
  this,
@@ -12364,7 +12363,7 @@ class Jo {
12364
12363
  })).data?.transactionUpdateIntegrationProduct.product;
12365
12364
  if (!a)
12366
12365
  throw new Error("Failed to set product. No product returned from server.");
12367
- this.product = a;
12366
+ this.product = a, this.currentPriceBreak = this.priceBreakToBeApplied();
12368
12367
  }
12369
12368
  getWorkflow() {
12370
12369
  return this.workflow;
@@ -12436,7 +12435,7 @@ class Jo {
12436
12435
  height: d.layoutState.layout.height
12437
12436
  }, u = this.commandContext.getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
12438
12437
  if (!h)
12439
- throw new Te("Failed to obtain 2D context for preview image creation");
12438
+ throw new Ne("Failed to obtain 2D context for preview image creation");
12440
12439
  const m = this.workflowManager.getTemplatingContext(), p = Ea(u.layoutState.layout, u.layoutState.elements, {
12441
12440
  renderingConfiguration: {
12442
12441
  purpose: jt.Print,
@@ -12461,7 +12460,7 @@ class Jo {
12461
12460
  const a = this.cachedStepHandles.get(e.stepName);
12462
12461
  if (a)
12463
12462
  return a;
12464
- const r = de.get(this.getWorkflowManager(), e);
12463
+ const r = Ae.get(this.getWorkflowManager(), e);
12465
12464
  return this.cachedStepHandles.set(e.stepName, r), r;
12466
12465
  }
12467
12466
  getSteps() {
@@ -12558,17 +12557,17 @@ class Jo {
12558
12557
  getStepByName(t) {
12559
12558
  const e = this.getWorkflow()?.steps.find((a) => a.stepTitle === t);
12560
12559
  if (!(!e || !this.stepHasHandle(e)))
12561
- return de.get(this.getWorkflowManager(), e);
12560
+ return Ae.get(this.getWorkflowManager(), e);
12562
12561
  }
12563
12562
  getStepsByType(t) {
12564
- return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) => de.get(this.getWorkflowManager(), e)) || [];
12563
+ return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) => Ae.get(this.getWorkflowManager(), e)) || [];
12565
12564
  }
12566
12565
  getStepsByScene(t) {
12567
12566
  if (!this.getWorkflow()?.stepGroups.find((a) => a.name === t.name))
12568
12567
  throw new Error(
12569
12568
  "Given scene is not present on workflow! Be careful when persisting scenes that you only use them with the relevant workflow."
12570
12569
  );
12571
- return t.stepIds.map((a) => this.getWorkflow()?.steps.find((r) => r.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) => de.get(this.getWorkflowManager(), a));
12570
+ return t.stepIds.map((a) => this.getWorkflow()?.steps.find((r) => r.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) => Ae.get(this.getWorkflowManager(), a));
12572
12571
  }
12573
12572
  async attachCustomerDetails(t) {
12574
12573
  return this.assignCustomerDetails({ emailAddress: t.email });
@@ -12817,7 +12816,7 @@ const Ko = (n) => {
12817
12816
  if (!m)
12818
12817
  throw new Y(h);
12819
12818
  const p = M();
12820
- return new z(
12819
+ return new G(
12821
12820
  {
12822
12821
  id: p,
12823
12822
  src: d,
@@ -12856,7 +12855,7 @@ const Ko = (n) => {
12856
12855
  a.data.forceImageCover
12857
12856
  );
12858
12857
  return [
12859
- new z(
12858
+ new G(
12860
12859
  {
12861
12860
  id: u,
12862
12861
  path: A.path,
@@ -12897,7 +12896,7 @@ const Ko = (n) => {
12897
12896
  const r = e.data, i = a.option;
12898
12897
  if (!i)
12899
12898
  return console.error(`No option for step ${a.stepName}.`), [];
12900
- const s = i.variants?.find((y) => y.id === r.illustrationVariantId) || ne(i);
12899
+ const s = i.variants?.find((y) => y.id === r.illustrationVariantId) || re(i);
12901
12900
  if (!s)
12902
12901
  return console.error(`No variant with ID: ${r.illustrationVariantId}`), [];
12903
12902
  if (!s.asset)
@@ -12938,7 +12937,7 @@ const Ko = (n) => {
12938
12937
  if (!S)
12939
12938
  throw new Y(y);
12940
12939
  const B = M();
12941
- return new z(
12940
+ return new G(
12942
12941
  {
12943
12942
  colors: p,
12944
12943
  id: B,
@@ -12967,7 +12966,7 @@ const Ko = (n) => {
12967
12966
  if (!c)
12968
12967
  throw new Y(l);
12969
12968
  const d = M();
12970
- return new z(
12969
+ return new G(
12971
12970
  {
12972
12971
  colors: {},
12973
12972
  id: d,
@@ -12995,7 +12994,7 @@ const Ko = (n) => {
12995
12994
  const r = e.data, i = a.option;
12996
12995
  if (!i)
12997
12996
  return console.error(`No option for step ${a.stepName}.`), [];
12998
- const s = i.variants?.find((d) => d.id === r.pictureVariantId) || ne(i);
12997
+ const s = i.variants?.find((d) => d.id === r.pictureVariantId) || re(i);
12999
12998
  if (!s)
13000
12999
  return console.error(`No variant with ID: ${r.pictureVariantId}`), [];
13001
13000
  if (!s.asset)
@@ -13009,7 +13008,7 @@ const Ko = (n) => {
13009
13008
  if (!A)
13010
13009
  throw new Y(d);
13011
13010
  const u = M();
13012
- return new z(
13011
+ return new G(
13013
13012
  {
13014
13013
  id: u,
13015
13014
  src: o,
@@ -13036,7 +13035,7 @@ const Ko = (n) => {
13036
13035
  const r = e.data, i = a.option;
13037
13036
  if (!i)
13038
13037
  return console.error(`No option for step ${a.stepName}.`), [];
13039
- const s = i.variants?.find((c) => c.id === r.colorVariantId) || ne(i);
13038
+ const s = i.variants?.find((c) => c.id === r.colorVariantId) || re(i);
13040
13039
  if (!s)
13041
13040
  return console.error(`No variant with ID: ${r.colorVariantId}`), [];
13042
13041
  t[a.stepName] = { selectedVariants: [s] };
@@ -13065,7 +13064,7 @@ const Ko = (n) => {
13065
13064
  />
13066
13065
  </svg>
13067
13066
  `, h = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, m = M();
13068
- return new z(
13067
+ return new G(
13069
13068
  {
13070
13069
  colors: h,
13071
13070
  id: m,
@@ -13113,7 +13112,7 @@ const Ko = (n) => {
13113
13112
  excludeFromExport: t.data.excludeFromPrint,
13114
13113
  preserveAspectRatio: "none"
13115
13114
  };
13116
- a.push(new z(A, d));
13115
+ a.push(new G(A, d));
13117
13116
  });
13118
13117
  } catch (c) {
13119
13118
  console.error(c);
@@ -13148,7 +13147,7 @@ const Ko = (n) => {
13148
13147
  productOverlay: t.type === E.ProductOverlay ? !0 : void 0,
13149
13148
  excludeFromExport: t.data.excludeFromPrint
13150
13149
  };
13151
- a.push(new z(h, u));
13150
+ a.push(new G(h, u));
13152
13151
  });
13153
13152
  }
13154
13153
  return a;
@@ -13157,7 +13156,7 @@ const Ko = (n) => {
13157
13156
  const g = a.option;
13158
13157
  if (!g)
13159
13158
  return;
13160
- const f = g.variants?.find((I) => I.id === i.fontVariantId) || ne(g);
13159
+ const f = g.variants?.find((I) => I.id === i.fontVariantId) || re(g);
13161
13160
  if (!f || !f.asset)
13162
13161
  return;
13163
13162
  t[a.stepName] = { selectedVariants: [f] };
@@ -13173,7 +13172,7 @@ const Ko = (n) => {
13173
13172
  assetUrl: g,
13174
13173
  name: f.names.fullName.en
13175
13174
  };
13176
- })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = De(A, {
13175
+ })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Fe(A, {
13177
13176
  vertical: a.data.vertical,
13178
13177
  uppercase: a.data.uppercase
13179
13178
  }), h = async (g) => {
@@ -13206,12 +13205,12 @@ const Ko = (n) => {
13206
13205
  y: g.top
13207
13206
  };
13208
13207
  if (d) {
13209
- const [I, P] = Ce(
13208
+ const [I, P] = we(
13210
13209
  a.data.size || s,
13211
13210
  d,
13212
13211
  g,
13213
13212
  [
13214
- De(u, {
13213
+ Fe(u, {
13215
13214
  vertical: a.data.vertical,
13216
13215
  uppercase: a.data.uppercase
13217
13216
  })
@@ -13223,7 +13222,7 @@ const Ko = (n) => {
13223
13222
  }
13224
13223
  );
13225
13224
  r.push(
13226
- new z(
13225
+ new G(
13227
13226
  {
13228
13227
  ...C,
13229
13228
  fontSize: I,
@@ -13234,7 +13233,7 @@ const Ko = (n) => {
13234
13233
  )
13235
13234
  );
13236
13235
  } else
13237
- r.push(new z(C, f));
13236
+ r.push(new G(C, f));
13238
13237
  }
13239
13238
  return r;
13240
13239
  }, ol = (n, t) => n.conditions ? n.conditions.every((e) => {
@@ -14034,7 +14033,7 @@ function ir(n) {
14034
14033
  e.value !== "" && t.set(e.name, !0);
14035
14034
  }), t;
14036
14035
  }
14037
- function Ae(n) {
14036
+ function ue(n) {
14038
14037
  return ua(n, ["__typename"]);
14039
14038
  }
14040
14039
  class Sl {
@@ -14042,9 +14041,9 @@ class Sl {
14042
14041
  this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
14043
14042
  const s = i?.existingGlobalPropertyState;
14044
14043
  this.initPromise = s ? Promise.resolve(s).then(() => {
14045
- console.log("Setting global property state to existing state."), this.globalPropertyState = Ae(s), this.recalculateMandatoryStates();
14044
+ console.log("Setting global property state to existing state."), this.globalPropertyState = ue(s), this.recalculateMandatoryStates();
14046
14045
  }) : this.createGlobalPropertyState().then((o) => {
14047
- console.log("Setting global property state to new state."), this.globalPropertyState = Ae(o), this.recalculateMandatoryStates();
14046
+ console.log("Setting global property state to new state."), this.globalPropertyState = ue(o), this.recalculateMandatoryStates();
14048
14047
  }), this.onGlobalPropertyStateChange = r;
14049
14048
  }
14050
14049
  recalculateMandatoryStates() {
@@ -14068,7 +14067,7 @@ class Sl {
14068
14067
  async setGlobalPropertyState(t) {
14069
14068
  this.globalPropertyState || await this.initPromise;
14070
14069
  const e = Et(this.globalPropertyState);
14071
- this.globalPropertyState = { ...Ae(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
14070
+ this.globalPropertyState = { ...ue(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
14072
14071
  }
14073
14072
  getAspectMandatoryFulfilled(t) {
14074
14073
  return this.mandatoryFulfilledAspects.get(t);
@@ -14127,7 +14126,7 @@ class Sl {
14127
14126
  storage: a !== null ? a : void 0,
14128
14127
  channel: r
14129
14128
  });
14130
- Se(s, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(s, this.globalPropertyState));
14129
+ ve(s, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(s, this.globalPropertyState));
14131
14130
  }
14132
14131
  async setAspectStorage(t, e, a) {
14133
14132
  if (!this.globalPropertyState)
@@ -14154,7 +14153,7 @@ class Sl {
14154
14153
  storage: e !== null ? e : void 0,
14155
14154
  channel: a
14156
14155
  });
14157
- Se(i, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(i, this.globalPropertyState));
14156
+ ve(i, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(i, this.globalPropertyState));
14158
14157
  }
14159
14158
  async updateGlobalPropertyState() {
14160
14159
  if (!this.globalPropertyState)
@@ -14197,7 +14196,7 @@ class Sl {
14197
14196
  }
14198
14197
  });
14199
14198
  if (t.data?.globalPropertyStateUpdate)
14200
- this.globalPropertyState = Ae(t.data.globalPropertyStateUpdate);
14199
+ this.globalPropertyState = ue(t.data.globalPropertyStateUpdate);
14201
14200
  else
14202
14201
  throw new Error("Unable to update global property state");
14203
14202
  }
@@ -14436,14 +14435,14 @@ class sr {
14436
14435
  getProducts() {
14437
14436
  if (!this.collection.productCollectionProducts)
14438
14437
  throw new Error("Failed to find products on collection. Ensure you fetch them first!");
14439
- return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new ue(t));
14438
+ return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new he(t));
14440
14439
  }
14441
14440
  /**
14442
14441
  * A list of products in this collections with useful helpers for interacting with them.
14443
14442
  */
14444
14443
  async fetchProducts(t) {
14445
14444
  if (this.fullFetched)
14446
- return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ue(a));
14445
+ return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new he(a));
14447
14446
  const e = await v.getShadowGraphqlClient().query({
14448
14447
  query: Xs,
14449
14448
  variables: {
@@ -14452,7 +14451,7 @@ class sr {
14452
14451
  },
14453
14452
  errorPolicy: "all"
14454
14453
  });
14455
- return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ue(a));
14454
+ return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new he(a));
14456
14455
  }
14457
14456
  /**
14458
14457
  * Returns a list of collections products matching the associated metafield/tag filters.
@@ -14542,7 +14541,7 @@ class sr {
14542
14541
  if (h || p.partial && (!p.data.productCollections || p.data.productCollections.length === 0 || !p.data.productCollections[0].productCollectionProductsFeed?.items || p.data.productCollections[0].productCollectionProductsFeed?.items.length === 0))
14543
14542
  return;
14544
14543
  c.abort(), h = !0, m.unsubscribe();
14545
- const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new ue(Et(f))) || [];
14544
+ const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new he(Et(f))) || [];
14546
14545
  u({
14547
14546
  items: g,
14548
14547
  // Clone items because it could be cached data (immutable)
@@ -14566,7 +14565,7 @@ class sr {
14566
14565
  return this.collection;
14567
14566
  }
14568
14567
  }
14569
- class ue {
14568
+ class he {
14570
14569
  constructor(t) {
14571
14570
  this.product = t.product, this.productResource = t;
14572
14571
  }
@@ -14761,7 +14760,7 @@ class Dl {
14761
14760
  }
14762
14761
  }
14763
14762
  const Fl = w`
14764
- ${ie(!1)}
14763
+ ${se(!1)}
14765
14764
  query GetProductCollections($ids: [String!]!) {
14766
14765
  productCollections(ids: $ids) {
14767
14766
  ...ProductCollectionFields
@@ -15017,7 +15016,7 @@ class Ze {
15017
15016
  if (i)
15018
15017
  switch (a.type) {
15019
15018
  case L.FileUpload: {
15020
- const s = i, o = await Be([a.value]);
15019
+ const s = i, o = await Pe([a.value]);
15021
15020
  o.length > 0 && await s.selectImage(o[0]);
15022
15021
  const l = a.storage?.colors;
15023
15022
  if (l) {
@@ -15268,7 +15267,7 @@ class Ze {
15268
15267
  variables: {
15269
15268
  id: this.id,
15270
15269
  details: t,
15271
- type: e || Ee.Owner
15270
+ type: e || be.Owner
15272
15271
  },
15273
15272
  context: {
15274
15273
  bundleOwnerId: this.ownerId
@@ -15670,14 +15669,14 @@ class Rl {
15670
15669
  * @returns The nodes contained within the execution.
15671
15670
  */
15672
15671
  getNodes() {
15673
- return this.execution.nodes.map((t) => new he(t));
15672
+ return this.execution.nodes.map((t) => new me(t));
15674
15673
  }
15675
15674
  /**
15676
15675
  * @param type The type of node to return.
15677
15676
  * @returns A list of nodes matching the requested type.
15678
15677
  */
15679
15678
  getNodesByType(t) {
15680
- return this.execution.nodes.filter((e) => e.type === t).map((e) => new he(e));
15679
+ return this.execution.nodes.filter((e) => e.type === t).map((e) => new me(e));
15681
15680
  }
15682
15681
  /**
15683
15682
  * @returns A list of input nodes that exist in this execution.
@@ -15686,7 +15685,7 @@ class Rl {
15686
15685
  return this.execution.nodes.filter(
15687
15686
  (t) => t.type === "StartTerminal"
15688
15687
  /* StartTerminal */
15689
- ).map((t) => new he(t));
15688
+ ).map((t) => new me(t));
15690
15689
  }
15691
15690
  /**
15692
15691
  * @returns A list of out put nodes that exist in this execution.
@@ -15695,7 +15694,7 @@ class Rl {
15695
15694
  return this.execution.nodes.filter(
15696
15695
  (t) => t.type === "EndTerminal"
15697
15696
  /* EndTerminal */
15698
- ).map((t) => new he(t));
15697
+ ).map((t) => new me(t));
15699
15698
  }
15700
15699
  /**
15701
15700
  * @returns A date object representing the point in time this execution completed.
@@ -15712,7 +15711,7 @@ class Rl {
15712
15711
  return new Date(this.execution.failedAt);
15713
15712
  }
15714
15713
  }
15715
- class he {
15714
+ class me {
15716
15715
  constructor(t) {
15717
15716
  this.node = t;
15718
15717
  }
@@ -15802,7 +15801,7 @@ class en {
15802
15801
  return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new qt(e));
15803
15802
  }
15804
15803
  }
15805
- const me = w`
15804
+ const ge = w`
15806
15805
  query GetCustomer($emailAddress: String!) {
15807
15806
  customer(emailAddress: $emailAddress) {
15808
15807
  id
@@ -16134,7 +16133,7 @@ class bd {
16134
16133
  } catch (a) {
16135
16134
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16136
16135
  }
16137
- }, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1-beta.d6f8575a-0dae-53f0-a05a-ea3f611cb9c8"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16136
+ }, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1-beta.da81068e-3c11-5316-b4f0-962509faf1fa"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16138
16137
  }
16139
16138
  configure(t) {
16140
16139
  gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && jr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16184,7 +16183,7 @@ class bd {
16184
16183
  */
16185
16184
  async authenticateBundleFromLocalStorage(t) {
16186
16185
  if (k.getMap("bundleOwnerIds")?.has(t))
16187
- return Promise.resolve({ success: !0, stakeholderType: Ee.Owner });
16186
+ return Promise.resolve({ success: !0, stakeholderType: be.Owner });
16188
16187
  const a = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
16189
16188
  if (a.has(t)) {
16190
16189
  const r = a.get(t);
@@ -16228,7 +16227,7 @@ class bd {
16228
16227
  if (r.isOrdered)
16229
16228
  return Promise.resolve({ success: !1, transactionReadOnly: !0 });
16230
16229
  if (k.getMap("transactionOwnerIds")?.has(t))
16231
- return Promise.resolve({ success: !0, stakeholderType: Ee.Owner });
16230
+ return Promise.resolve({ success: !0, stakeholderType: be.Owner });
16232
16231
  const o = k.getMap("transactionCustomerIds");
16233
16232
  if (o?.has(t) && o.get(t) && await this.reloadLoggedInCustomer()) {
16234
16233
  const u = this.customer?.bundleStakeholders?.find(
@@ -16266,7 +16265,7 @@ class bd {
16266
16265
  }
16267
16266
  async customerHasBundleTemplates(t) {
16268
16267
  const r = (await v.getShadowGraphqlClient().query({
16269
- query: me,
16268
+ query: ge,
16270
16269
  errorPolicy: "all",
16271
16270
  fetchPolicy: "no-cache",
16272
16271
  variables: {
@@ -16285,7 +16284,7 @@ class bd {
16285
16284
  async getOrCreateCustomer(t) {
16286
16285
  this.customer = void 0;
16287
16286
  const e = v.getShadowGraphqlClient(), r = (await e.query({
16288
- query: me,
16287
+ query: ge,
16289
16288
  errorPolicy: "all",
16290
16289
  fetchPolicy: "no-cache",
16291
16290
  variables: {
@@ -16338,7 +16337,7 @@ class bd {
16338
16337
  return this.logOut(), console.error("Failed to refresh tokens."), !1;
16339
16338
  }
16340
16339
  const o = (await v.getShadowGraphqlClient().query({
16341
- query: me,
16340
+ query: ge,
16342
16341
  errorPolicy: "all",
16343
16342
  fetchPolicy: "no-cache",
16344
16343
  variables: {
@@ -16367,7 +16366,7 @@ class bd {
16367
16366
  if (r?.AuthenticationResult) {
16368
16367
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(r.AuthenticationResult)), localStorage.setItem("cognito-email", t);
16369
16368
  const s = (await v.getShadowGraphqlClient().query({
16370
- query: me,
16369
+ query: ge,
16371
16370
  errorPolicy: "all",
16372
16371
  fetchPolicy: "no-cache",
16373
16372
  variables: {
@@ -16657,7 +16656,7 @@ class bd {
16657
16656
  const tt = p.get(S.id) || void 0, et = new Vl({
16658
16657
  onMutate: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } }),
16659
16658
  onQuery: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } })
16660
- }), W = {
16659
+ }), z = {
16661
16660
  workflow: R,
16662
16661
  transaction: S,
16663
16662
  layouts: [],
@@ -16672,20 +16671,25 @@ class bd {
16672
16671
  readOnly: b,
16673
16672
  isReloadedTransaction: T.type === "transaction"
16674
16673
  };
16675
- if (T.type === "transaction" && S.workflowState) {
16674
+ if (T.type === "blank")
16675
+ z.layouts = [];
16676
+ else if (T.type === "transaction" && S.workflowState) {
16676
16677
  const q = JSON.parse(S.workflowState);
16677
- W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16678
+ z.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), z.reloadedState = q;
16678
16679
  } else if (!b && T.workflowState) {
16679
16680
  const q = JSON.parse(T.workflowState);
16680
- W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16681
- } else
16682
- W.layouts = Yl(
16683
- W.transaction,
16684
- W.workflow
16681
+ z.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), z.reloadedState = q;
16682
+ } else {
16683
+ if (!z.workflow)
16684
+ throw new Error("Attempted to load workflow panels without a workflow!");
16685
+ z.layouts = Yl(
16686
+ z.transaction,
16687
+ z.workflow
16685
16688
  );
16686
- return W.renderableContextService = new cl(
16687
- W.layouts
16688
- ), W.delayWorkflowStateSync = !0, { experienceOptions: W, index: F, options: T };
16689
+ }
16690
+ return z.renderableContextService = new cl(
16691
+ z.layouts
16692
+ ), z.delayWorkflowStateSync = !0, { experienceOptions: z, index: F, options: T };
16689
16693
  }), f = await Promise.all(g);
16690
16694
  k.setMap("transactionOwnerIds", p);
16691
16695
  const I = f.sort((y, S) => y.index - S.index).map(async (y) => {
@@ -16821,12 +16825,12 @@ function Kl(n, t, e, a) {
16821
16825
  const o = n, l = Math.max(t.width / e.width, t.height / e.height);
16822
16826
  o.zoom = Math.max(l, n.zoom);
16823
16827
  const c = e.width * o.zoom, d = e.height * o.zoom;
16824
- return o.x = ge(n.x, t.width - c, 0), o.y = ge(n.y, t.height - d, 0), o;
16828
+ return o.x = pe(n.x, t.width - c, 0), o.y = pe(n.y, t.height - d, 0), o;
16825
16829
  }
16826
16830
  const s = n;
16827
- return s.x = ge(s.x, -r, t.width), s.y = ge(s.y, -i, t.height), s;
16831
+ return s.x = pe(s.x, -r, t.width), s.y = pe(s.y, -i, t.height), s;
16828
16832
  }
16829
- function ge(n, t, e) {
16833
+ function pe(n, t, e) {
16830
16834
  return Math.min(Math.max(n, t), e);
16831
16835
  }
16832
16836
  class _l {
@@ -16852,7 +16856,7 @@ class _l {
16852
16856
  let i = !1;
16853
16857
  for (let s = 0; s < r.currentFrameSources.length; s++) {
16854
16858
  const o = r.currentFrameSources[s], l = await Ue(o), c = this.frameData ? this.frameData[s] : void 0;
16855
- Se(l, c) || (this.frameData || (this.frameData = new Array(r.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16859
+ ve(l, c) || (this.frameData || (this.frameData = new Array(r.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16856
16860
  }
16857
16861
  i && (this.onFrameDataChangeListeners.forEach(
16858
16862
  (s) => s(this.frameData)
@@ -17625,7 +17629,7 @@ const tc = w`
17625
17629
  console.error("vite-plugin-css-injected-by-js", t);
17626
17630
  }
17627
17631
  })();
17628
- var lc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(lc || {}), we = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(we || {}), K;
17632
+ var lc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(lc || {}), ye = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(ye || {}), K;
17629
17633
  K = { __e: function(n, t, e, a) {
17630
17634
  for (var r, i, s; t = t.__; )
17631
17635
  if ((r = t.__c) && !r.__)
@@ -17642,7 +17646,7 @@ function cc() {
17642
17646
  for (var n; n = cr.shift(); )
17643
17647
  if (n.__P && n.__H)
17644
17648
  try {
17645
- n.__H.__h.forEach(ye), n.__H.__h.forEach(ha), n.__H.__h = [];
17649
+ n.__H.__h.forEach(Se), n.__H.__h.forEach(ha), n.__H.__h = [];
17646
17650
  } catch (t) {
17647
17651
  n.__H.__h = [], K.__e(t, n.__v);
17648
17652
  }
@@ -17654,7 +17658,7 @@ K.__b = function(n) {
17654
17658
  var t = (st = n.__c).__H;
17655
17659
  t && (ta === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
17656
17660
  e.__N && (e.__ = e.__N), e.__V = ea, e.__N = e.i = void 0;
17657
- })) : (t.__h.forEach(ye), t.__h.forEach(ha), t.__h = [])), ta = st;
17661
+ })) : (t.__h.forEach(Se), t.__h.forEach(ha), t.__h = [])), ta = st;
17658
17662
  }, K.diffed = function(n) {
17659
17663
  on && on(n);
17660
17664
  var t = n.__c;
@@ -17664,7 +17668,7 @@ K.__b = function(n) {
17664
17668
  }, K.__c = function(n, t) {
17665
17669
  t.some(function(e) {
17666
17670
  try {
17667
- e.__h.forEach(ye), e.__h = e.__h.filter(function(a) {
17671
+ e.__h.forEach(Se), e.__h = e.__h.filter(function(a) {
17668
17672
  return !a.__ || ha(a);
17669
17673
  });
17670
17674
  } catch (a) {
@@ -17678,7 +17682,7 @@ K.__b = function(n) {
17678
17682
  var t, e = n.__c;
17679
17683
  e && e.__H && (e.__H.__.forEach(function(a) {
17680
17684
  try {
17681
- ye(a);
17685
+ Se(a);
17682
17686
  } catch (r) {
17683
17687
  t = r;
17684
17688
  }
@@ -17691,7 +17695,7 @@ function dc(n) {
17691
17695
  }, a = setTimeout(e, 100);
17692
17696
  dn && (t = requestAnimationFrame(e));
17693
17697
  }
17694
- function ye(n) {
17698
+ function Se(n) {
17695
17699
  var t = st, e = n.__c;
17696
17700
  typeof e == "function" && (n.__c = void 0, e()), st = t;
17697
17701
  }
@@ -17835,25 +17839,25 @@ export {
17835
17839
  vd as ArrayInput,
17836
17840
  L as AspectType,
17837
17841
  bt as AssetNotFoundError,
17838
- ve as AssetType,
17842
+ Ee as AssetType,
17839
17843
  gd as BringForwardCommand,
17840
17844
  md as BringToBackCommand,
17841
17845
  hd as BringToFrontCommand,
17842
17846
  Fr as BundleDesignCreationCartAddMode,
17843
17847
  Q as CanvasCommand,
17844
- ue as CollectionProduct,
17848
+ he as CollectionProduct,
17845
17849
  tn as ColorOptionGlobalPropertyHandle,
17846
17850
  gs as CommandContext,
17847
- we as ConversionDataType,
17851
+ ye as ConversionDataType,
17848
17852
  lc as ConversionLocation,
17849
- z as CreateElementCommand,
17853
+ G as CreateElementCommand,
17850
17854
  Hn as CreateLayoutCommand,
17851
17855
  Wl as CurrencyContext,
17852
17856
  Gl as CurrencyService,
17853
17857
  It as DeleteElementCommand,
17854
17858
  No as DigitalContentStepHandle,
17855
17859
  gl as FileUploadGlobalPropertyHandle,
17856
- he as FlowExecutionNodeResult,
17860
+ me as FlowExecutionNodeResult,
17857
17861
  Rl as FlowExecutionResult,
17858
17862
  Ql as FlowService,
17859
17863
  ws as FontAlignmentCommand,
@@ -17875,7 +17879,7 @@ export {
17875
17879
  Y as LayoutNotFoundError,
17876
17880
  jt as LayoutRenderingPurpose,
17877
17881
  Po as MaterialStepHandle,
17878
- Ie as MisconfigurationError,
17882
+ Be as MisconfigurationError,
17879
17883
  xd as MockWorkflowManager,
17880
17884
  Do as ModelStepHandle,
17881
17885
  Qo as ModuleStepHandle,
@@ -17883,7 +17887,7 @@ export {
17883
17887
  or as ObjectInput,
17884
17888
  Ol as ObjectInputType,
17885
17889
  rr as OptionGlobalPropertyHandle,
17886
- be as OptionNotFoundError,
17890
+ Ie as OptionNotFoundError,
17887
17891
  Dt as ParseError,
17888
17892
  Fo as PictureStepHandle,
17889
17893
  Mr as ProductCameraRig,
@@ -17902,7 +17906,7 @@ export {
17902
17906
  ko as ShapeStepHandle,
17903
17907
  xr as ShareActionType,
17904
17908
  bd as SpiffCommerceClient,
17905
- Ee as StakeholderType,
17909
+ be as StakeholderType,
17906
17910
  Dr as StepAspectType,
17907
17911
  Z as StepHandle,
17908
17912
  E as StepType,
@@ -17927,7 +17931,7 @@ export {
17927
17931
  qc as dataUrlFromExternalUrl,
17928
17932
  Fd as deleteBundle,
17929
17933
  Xe as designService,
17930
- Ce as determineCorrectFontSizeAndLines,
17934
+ we as determineCorrectFontSizeAndLines,
17931
17935
  Yn as digitalContentStepService,
17932
17936
  dt as domParser,
17933
17937
  Td as duplicateBundle,
@@ -17943,7 +17947,7 @@ export {
17943
17947
  ot as generateSVGWithUnknownColors,
17944
17948
  wd as generateStateFromDesignInputSteps,
17945
17949
  Gd as getAddressValidationJobs,
17946
- Re as getAttributesFromArrayBuffer,
17950
+ Oe as getAttributesFromArrayBuffer,
17947
17951
  Jc as getAxisAlignedBoundingBox,
17948
17952
  Kl as getBoundedOffsets,
17949
17953
  Pd as getBundleThemeConfiguration,
@@ -17972,7 +17976,7 @@ export {
17972
17976
  Ed as getWorkflow,
17973
17977
  lr as getWorkflows,
17974
17978
  v as graphQlManager,
17975
- fe as illustrationStepService,
17979
+ Ce as illustrationStepService,
17976
17980
  _c as isCloseToValue,
17977
17981
  Nt as loadFont,
17978
17982
  jc as matchHexToPms,
@@ -17996,7 +18000,7 @@ export {
17996
18000
  Gc as registerWindowImplementation,
17997
18001
  qa as rehydrateSerializedLayout,
17998
18002
  ai as rgbToPms,
17999
- ce as rotateAroundPoint,
18003
+ de as rotateAroundPoint,
18000
18004
  wa as sanitizeSvgTree,
18001
18005
  jr as setBearerAuthenticationToken,
18002
18006
  Sn as setCanvasModule,
@@ -18007,7 +18011,7 @@ export {
18007
18011
  La as svgColorValueToDefinition,
18008
18012
  Wn as svgStringDimensions,
18009
18013
  pa as svgToDataUrl,
18010
- G as textStepService,
18014
+ W as textStepService,
18011
18015
  Ns as toast,
18012
18016
  Wd as validateWorkflowExperienceRecipient,
18013
18017
  qd as validateWorkflowExperienceRecipients,