@spiffcommerce/core 27.2.1-beta.5756496b-3a49-5000-b986-4209fb32572c → 27.2.1-beta.6985fefb-a9b8-5908-9b6a-7cec8dba36db

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 St from "lodash.clonedeep";
11
11
  import { toString as sn } from "qrcode";
12
12
  import mr from "svg-path-bbox";
13
13
  import { parse as Xe } from "opentype.js";
14
- import { jsx as F, jsxs as ct, Fragment as Gt } from "preact/jsx-runtime";
14
+ import { jsx as F, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
15
15
  import gr from "handlebars";
16
16
  import { dataUriToBuffer as pr } from "data-uri-to-buffer";
17
17
  import Fa from "lodash.chunk";
@@ -21,7 +21,7 @@ import { split as Ze } from "unicode-default-word-boundary";
21
21
  import ln from "lodash.debounce";
22
22
  import "fs";
23
23
  import "path";
24
- 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 || {}), wr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(wr || {}), 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 || {}), yr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(yr || {}), Sr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Sr || {}), vr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(vr || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Er = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Er || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), q = /* @__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))(q || {}), Br = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Br || {});
24
+ 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 || {}), wr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(wr || {}), qt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(qt || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), yr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(yr || {}), Sr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Sr || {}), vr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(vr || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Er = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Er || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), 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 || {}), br = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(br || {});
25
25
  class cn extends Error {
26
26
  constructor(t) {
27
27
  super(t), this.name = this.constructor.name;
@@ -47,7 +47,7 @@ class vt extends _t {
47
47
  super(`Asset not found for variant: ${t.name}`), this.variant = t;
48
48
  }
49
49
  }
50
- class qt extends _t {
50
+ class Ht extends _t {
51
51
  constructor(t) {
52
52
  super(`Resource not found for asset: ${t.name}`), this.asset = t;
53
53
  }
@@ -62,7 +62,7 @@ class De extends cn {
62
62
  super(`ImplementationError - ${t}`);
63
63
  }
64
64
  }
65
- class G extends De {
65
+ class z extends De {
66
66
  constructor(t) {
67
67
  super(`Unhandled Behavior Encountered: ${t}`);
68
68
  }
@@ -82,7 +82,7 @@ class xe extends De {
82
82
  super(`Resource Generation Failed: ${t}`);
83
83
  }
84
84
  }
85
- class br {
85
+ class Br {
86
86
  get(t) {
87
87
  return localStorage.getItem(t) || void 0;
88
88
  }
@@ -127,7 +127,7 @@ class Ma {
127
127
  }
128
128
  const Ir = () => {
129
129
  try {
130
- return localStorage ? new br() : new Ma();
130
+ return localStorage ? new Br() : new Ma();
131
131
  } catch {
132
132
  return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new Ma();
133
133
  }
@@ -163,7 +163,7 @@ let ta, ea;
163
163
  function Ec(r) {
164
164
  ta = r;
165
165
  }
166
- function Bc(r) {
166
+ function bc(r) {
167
167
  ea = r;
168
168
  }
169
169
  function Xt() {
@@ -226,7 +226,7 @@ const dn = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Na = /* @_
226
226
  const n = a.load();
227
227
  return Oe.set(t, n), n;
228
228
  }
229
- }, bt = () => {
229
+ }, Bt = () => {
230
230
  if (Tt([typeof XMLSerializer]))
231
231
  return new XMLSerializer();
232
232
  const r = Xt();
@@ -258,7 +258,7 @@ const dn = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Na = /* @_
258
258
  }
259
259
  const e = t();
260
260
  return e || "image/svg+xml";
261
- }, bc = async (r) => {
261
+ }, Bc = async (r) => {
262
262
  const t = await An(r), e = dn.get(r) || ke(t);
263
263
  return await Nr(new Blob([t], { type: e }));
264
264
  }, Mr = (r) => {
@@ -296,25 +296,25 @@ const Rr = (r) => {
296
296
  let mn;
297
297
  const $r = (r) => {
298
298
  mn = r;
299
- }, Ur = () => new Promise((r) => {
299
+ }, Lr = () => new Promise((r) => {
300
300
  const t = mt.getHubUrl(), e = (a) => {
301
301
  a.origin === t && (window.removeEventListener("message", e), r(a.data));
302
302
  };
303
303
  window.parent !== window && (window.addEventListener("message", e, !1), window.parent.postMessage("ready", t));
304
- }), Lr = async () => {
304
+ }), Ur = async () => {
305
305
  const r = {
306
306
  applicationKey: ma,
307
307
  customerToken: Qr,
308
308
  bearer: mn
309
309
  };
310
- return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Ur(), ...r } : r;
310
+ return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Lr(), ...r } : r;
311
311
  };
312
312
  async function Vr(r, t) {
313
313
  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";
314
314
  let n = await rt(r, { ...t, redirect: "manual" });
315
315
  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;
316
316
  }
317
- class zr {
317
+ class Gr {
318
318
  constructor() {
319
319
  this.shadowGraphqlClient = this.constructShadowGraphqlClient(), mt.addServerUrlCallback(() => {
320
320
  this.shadowGraphqlClient = this.constructShadowGraphqlClient();
@@ -331,7 +331,7 @@ class zr {
331
331
  uri: `${mt.getServerUrl()}/graphql`,
332
332
  fetch: Vr
333
333
  }), e = lr(async (i, s) => {
334
- const { headers: o } = s, l = o || {}, c = await Lr();
334
+ const { headers: o } = s, l = o || {}, c = await Ur();
335
335
  let d = s.bearer ?? c.bearer;
336
336
  if (this.spiffClient)
337
337
  try {
@@ -366,7 +366,7 @@ class zr {
366
366
  });
367
367
  }
368
368
  }
369
- const b = new zr();
369
+ const B = new Gr();
370
370
  let aa, na;
371
371
  const gt = (r, t, e) => {
372
372
  if (aa !== void 0)
@@ -415,7 +415,7 @@ function ga() {
415
415
  return $e === void 0 && ($e = Fr()), $e;
416
416
  }
417
417
  let se = null;
418
- const Gr = (r) => new Promise((t) => {
418
+ const zr = (r) => new Promise((t) => {
419
419
  if (ke(r) !== "image/jpeg")
420
420
  return t(1);
421
421
  ur(r).then((a) => t(a || 1)).catch(() => t(1));
@@ -427,14 +427,14 @@ const Gr = (r) => new Promise((t) => {
427
427
  }, jr = (r) => {
428
428
  const e = r.naturalWidth / r.naturalHeight;
429
429
  return r.naturalHeight <= 8192 && r.naturalWidth <= 8192 ? [r.naturalWidth, r.naturalHeight] : r.naturalHeight > r.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
430
- }, Hr = async (r) => {
430
+ }, qr = async (r) => {
431
431
  var A;
432
432
  const t = await Tr(r), e = await Zt(t), [a, n] = jr(e);
433
433
  if (!await Wr()) {
434
434
  const u = gt(a, n);
435
435
  return (A = u.getContext("2d")) == null || A.drawImage(e, 0, 0, a, n), u;
436
436
  }
437
- const s = await Gr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
437
+ const s = await zr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
438
438
  switch (s) {
439
439
  case 2:
440
440
  d.translate(o, 0), d.scale(-1, 1);
@@ -460,7 +460,7 @@ const Gr = (r) => new Promise((t) => {
460
460
  }
461
461
  return d.drawImage(e, 0, 0, o, l), c;
462
462
  }, Me = async (r) => {
463
- const t = await Hr(r);
463
+ const t = await qr(r);
464
464
  return ke(r) === "image/jpeg" ? {
465
465
  dataUrl: t.toDataURL("image/jpeg", 1),
466
466
  height: t.height,
@@ -3154,7 +3154,7 @@ const Gr = (r) => new Promise((t) => {
3154
3154
  "3E2B2E",
3155
3155
  "101820",
3156
3156
  "3D3935"
3157
- ], Ue = Ft.map((r) => [
3157
+ ], Le = Ft.map((r) => [
3158
3158
  parseInt(r.substring(0, 2), 16),
3159
3159
  parseInt(r.substring(2, 4), 16),
3160
3160
  parseInt(r.substring(4, 6), 16)
@@ -3163,12 +3163,12 @@ function Ic(r) {
3163
3163
  const t = Yt.indexOf(r);
3164
3164
  return t >= 0 ? Ft[t] : "";
3165
3165
  }
3166
- function qr(r) {
3166
+ function Hr(r) {
3167
3167
  const t = Ft.indexOf(r);
3168
3168
  return t >= 0 ? Yt[t] : "";
3169
3169
  }
3170
3170
  function Pc(r, t = 64) {
3171
- const e = [], a = [], n = qr(r);
3171
+ const e = [], a = [], n = Hr(r);
3172
3172
  n && e.push({
3173
3173
  pms: n,
3174
3174
  hex: r,
@@ -3177,7 +3177,7 @@ function Pc(r, t = 64) {
3177
3177
  const i = parseInt(r.substring(0, 2), 16), s = parseInt(r.substring(2, 4), 16), o = parseInt(r.substring(4, 6), 16);
3178
3178
  let l, c, d;
3179
3179
  for (let A = 0; A < Ft.length; A++) {
3180
- l = Ue[A][0], c = Ue[A][1], d = Ue[A][2];
3180
+ l = Le[A][0], c = Le[A][1], d = Le[A][2];
3181
3181
  const u = Math.sqrt(Math.pow(i - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
3182
3182
  a.push(u);
3183
3183
  }
@@ -3337,7 +3337,7 @@ const oe = (r) => {
3337
3337
  }
3338
3338
  });
3339
3339
  });
3340
- }, yn = (r) => bt().serializeToString(r), fa = (r, t, e, a, n) => {
3340
+ }, yn = (r) => Bt().serializeToString(r), fa = (r, t, e, a, n) => {
3341
3341
  const i = Cn(r);
3342
3342
  if (!i)
3343
3343
  throw new Error("Failed to read SVG.");
@@ -3369,7 +3369,7 @@ const oe = (r) => {
3369
3369
  s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
3370
3370
  }
3371
3371
  });
3372
- const i = bt().serializeToString(e);
3372
+ const i = Bt().serializeToString(e);
3373
3373
  return {
3374
3374
  colors: a,
3375
3375
  svg: i
@@ -3506,14 +3506,14 @@ const oe = (r) => {
3506
3506
  ...AssetFields
3507
3507
  }
3508
3508
  }
3509
- `, ve = async (r) => (await b.getShadowGraphqlClient().query({
3509
+ `, ve = async (r) => (await B.getShadowGraphqlClient().query({
3510
3510
  query: ri,
3511
3511
  errorPolicy: "all",
3512
3512
  fetchPolicy: "no-cache",
3513
3513
  variables: {
3514
3514
  keys: r
3515
3515
  }
3516
- })).data.assets, li = async (r) => (await b.getShadowGraphqlClient().query({
3516
+ })).data.assets, li = async (r) => (await B.getShadowGraphqlClient().query({
3517
3517
  query: ii,
3518
3518
  errorPolicy: "all",
3519
3519
  variables: {
@@ -3521,7 +3521,7 @@ const oe = (r) => {
3521
3521
  }
3522
3522
  })).data.materials, ci = async (r, t, e, a, n) => {
3523
3523
  var s;
3524
- return (s = (await b.getShadowGraphqlClient().mutate({
3524
+ return (s = (await B.getShadowGraphqlClient().mutate({
3525
3525
  mutation: si,
3526
3526
  errorPolicy: "all",
3527
3527
  fetchPolicy: "no-cache",
@@ -3556,7 +3556,7 @@ class di {
3556
3556
  if (this.cache.has(t)) {
3557
3557
  const n = this.cache.get(t);
3558
3558
  if (!n)
3559
- throw new G("Failed to get asset from cache!");
3559
+ throw new z("Failed to get asset from cache!");
3560
3560
  return n;
3561
3561
  }
3562
3562
  const a = (async () => (await ve([t]))[0])();
@@ -3583,7 +3583,7 @@ class di {
3583
3583
  */
3584
3584
  cacheAsset(t) {
3585
3585
  if (!t.key)
3586
- throw new G("Asset has no key!");
3586
+ throw new z("Asset has no key!");
3587
3587
  this.cache.has(t.key) || this.cache.set(t.key, Promise.resolve(t));
3588
3588
  }
3589
3589
  /**
@@ -3591,7 +3591,7 @@ class di {
3591
3591
  */
3592
3592
  cacheMaterial(t) {
3593
3593
  if (!t.id)
3594
- throw new G("Material has no id!");
3594
+ throw new z("Material has no id!");
3595
3595
  this.materialCache.has(t.id) || this.materialCache.set(t.id, Promise.resolve(t));
3596
3596
  }
3597
3597
  /**
@@ -3640,7 +3640,7 @@ class di {
3640
3640
  }
3641
3641
  const n = (async () => {
3642
3642
  var s, o;
3643
- const i = await b.getShadowGraphqlClient().mutate({
3643
+ const i = await B.getShadowGraphqlClient().mutate({
3644
3644
  mutation: oi,
3645
3645
  fetchPolicy: "no-cache",
3646
3646
  errorPolicy: "all",
@@ -3678,7 +3678,7 @@ class di {
3678
3678
  if (!s)
3679
3679
  throw new xt("Failed to read SVG.");
3680
3680
  ti(s);
3681
- const l = bt().serializeToString(s);
3681
+ const l = Bt().serializeToString(s);
3682
3682
  return {
3683
3683
  name: t.name,
3684
3684
  blob: new Blob([l], { type: "image/svg+xml" })
@@ -3709,7 +3709,7 @@ class di {
3709
3709
  case "mkv":
3710
3710
  return "video/x-matroska";
3711
3711
  default:
3712
- throw new G("Unexpected mimetype: " + e);
3712
+ throw new z("Unexpected mimetype: " + e);
3713
3713
  }
3714
3714
  }
3715
3715
  }
@@ -3799,7 +3799,7 @@ class K {
3799
3799
  N.setMap($a, t);
3800
3800
  }
3801
3801
  }
3802
- const U = new di();
3802
+ const L = new di();
3803
3803
  class Ai {
3804
3804
  constructor() {
3805
3805
  this.cache = {}, this.disabled = !1;
@@ -3878,7 +3878,7 @@ const Jt = new Ai(), vn = v`
3878
3878
  }
3879
3879
  }
3880
3880
  `, hi = async (r) => {
3881
- const t = await b.getShadowGraphqlClient().query({
3881
+ const t = await B.getShadowGraphqlClient().query({
3882
3882
  query: ui,
3883
3883
  errorPolicy: "all",
3884
3884
  variables: {
@@ -3887,8 +3887,8 @@ const Jt = new Ai(), vn = v`
3887
3887
  });
3888
3888
  return t.data.options.forEach((e) => {
3889
3889
  var a, n;
3890
- (a = e.defaultVariant) != null && a.asset && U.cacheAsset(e.defaultVariant.asset), e.colorProfile && U.cacheAsset(e.colorProfile), (n = e.variants) == null || n.forEach((i) => {
3891
- i.asset && U.cacheAsset(i.asset), i.thumbnail && U.cacheAsset(i.thumbnail), i.material && U.cacheMaterial(i.material);
3890
+ (a = e.defaultVariant) != null && a.asset && L.cacheAsset(e.defaultVariant.asset), e.colorProfile && L.cacheAsset(e.colorProfile), (n = e.variants) == null || n.forEach((i) => {
3891
+ i.asset && L.cacheAsset(i.asset), i.thumbnail && L.cacheAsset(i.thumbnail), i.material && L.cacheMaterial(i.material);
3892
3892
  });
3893
3893
  }), t.data.options;
3894
3894
  }, mi = async (r, t) => (await t).find((a) => a.id === r), gi = async (r) => {
@@ -4069,7 +4069,7 @@ const Y = new pi(), En = v`
4069
4069
  }
4070
4070
  }
4071
4071
  }
4072
- `, Bn = v`
4072
+ `, bn = v`
4073
4073
  fragment StakeholderFields on Stakeholder {
4074
4074
  id
4075
4075
  type
@@ -4077,7 +4077,7 @@ const Y = new pi(), En = v`
4077
4077
  authorizationNote
4078
4078
  authorizationStatus
4079
4079
  }
4080
- `, bn = v`
4080
+ `, Bn = v`
4081
4081
  fragment TransactionShareActionFields on TransactionShareAction {
4082
4082
  id
4083
4083
  title
@@ -4088,8 +4088,8 @@ const Y = new pi(), En = v`
4088
4088
  }
4089
4089
  `, Ci = v`
4090
4090
  ${Te}
4091
- ${Bn}
4092
4091
  ${bn}
4092
+ ${Bn}
4093
4093
  ${En}
4094
4094
  query ReadTransactions($ids: [String]!) {
4095
4095
  transactions(ids: $ids) {
@@ -4320,7 +4320,7 @@ const Y = new pi(), En = v`
4320
4320
  }
4321
4321
  }
4322
4322
  `, vi = v`
4323
- ${bn}
4323
+ ${Bn}
4324
4324
  query ReadTransactionForShareActions($id: String!) {
4325
4325
  transactions(ids: [$id]) {
4326
4326
  id
@@ -4427,7 +4427,7 @@ const Y = new pi(), En = v`
4427
4427
  ...IntegrationProductFields
4428
4428
  }
4429
4429
  }
4430
- `, Bi = (r) => v`
4430
+ `, bi = (r) => v`
4431
4431
  ${Pn(r)}
4432
4432
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4433
4433
  integrationProductFromExternalIds(
@@ -4437,8 +4437,8 @@ const Y = new pi(), En = v`
4437
4437
  ...IntegrationProductFields
4438
4438
  }
4439
4439
  }
4440
- `, bi = v`
4441
- ${Bn}
4440
+ `, Bi = v`
4441
+ ${bn}
4442
4442
  query ReadTransactionForStakeholders($id: String!) {
4443
4443
  transactions(ids: [$id]) {
4444
4444
  stakeholders {
@@ -5134,7 +5134,7 @@ const Y = new pi(), En = v`
5134
5134
  internalId
5135
5135
  }
5136
5136
  }
5137
- `, Ot = [P.SilentIllustration, P.ProductOverlay], Ui = async (r) => {
5137
+ `, Ot = [P.SilentIllustration, P.ProductOverlay], Li = async (r) => {
5138
5138
  const t = [];
5139
5139
  r.introduction && t.push({
5140
5140
  name: "Introduction",
@@ -5152,7 +5152,7 @@ const Y = new pi(), En = v`
5152
5152
  silentSteps: []
5153
5153
  });
5154
5154
  for (const a of r.steps) {
5155
- const n = Li(a.stepName, r.stepGroups);
5155
+ const n = Ui(a.stepName, r.stepGroups);
5156
5156
  if (!n)
5157
5157
  t.push({
5158
5158
  name: a.stepName,
@@ -5189,7 +5189,7 @@ const Y = new pi(), En = v`
5189
5189
  ],
5190
5190
  silentSteps: []
5191
5191
  }), t;
5192
- }, Li = (r, t) => t.find((e) => e.stepNames.includes(r)), yt = (r, t) => (r.conditions || []).every((e) => {
5192
+ }, Ui = (r, t) => t.find((e) => e.stepNames.includes(r)), yt = (r, t) => (r.conditions || []).every((e) => {
5193
5193
  const a = t[e.targetStepName];
5194
5194
  if (a && a.selectedVariants) {
5195
5195
  const n = a.selectedVariants;
@@ -5206,7 +5206,7 @@ const Y = new pi(), En = v`
5206
5206
  silentSteps: r.silentSteps.filter((a) => yt(a, t))
5207
5207
  };
5208
5208
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5209
- }, Dt = (r, t) => r.map((e) => Vi(e, t)).filter((e) => e !== null), zi = async (r, t, e = !1) => {
5209
+ }, Dt = (r, t) => r.map((e) => Vi(e, t)).filter((e) => e !== null), Gi = async (r, t, e = !1) => {
5210
5210
  var s;
5211
5211
  const a = Dt(r, t), n = [];
5212
5212
  for (const o of a)
@@ -5301,7 +5301,7 @@ class xn {
5301
5301
  const Q = () => {
5302
5302
  const r = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
5303
5303
  return r() + r() + "-" + r() + "-" + r() + "-" + r() + "-" + r() + r() + r();
5304
- }, Gi = ({
5304
+ }, zi = ({
5305
5305
  backgroundColor: r,
5306
5306
  outlineColor: t,
5307
5307
  borderRadius: e,
@@ -5317,11 +5317,11 @@ const Q = () => {
5317
5317
  width: u
5318
5318
  }) => {
5319
5319
  var E;
5320
- const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((B, I) => (
5320
+ const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === qt.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((b, I) => (
5321
5321
  /* @ts-ignore */
5322
- /* @__PURE__ */ F("color-profile", { name: B.name, xlinkHref: B.key, children: " " }, I)
5323
- )), S = n.map((B) => ({
5324
- ...B,
5322
+ /* @__PURE__ */ F("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, I)
5323
+ )), S = n.map((b) => ({
5324
+ ...b,
5325
5325
  _renderingConfiguration: a,
5326
5326
  mask: l ? `url(#viewmask-${f})` : void 0
5327
5327
  })), y = va(S);
@@ -5360,8 +5360,8 @@ const Q = () => {
5360
5360
  "g",
5361
5361
  {
5362
5362
  id: "element-group",
5363
- clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
5364
- children: y.map((B) => Qn(B)).filter((B) => !!B)
5363
+ clipPath: a.purpose === qt.FreeDesign ? "url(#viewboxClip)" : void 0,
5364
+ children: y.map((b) => Qn(b)).filter((b) => !!b)
5365
5365
  }
5366
5366
  ),
5367
5367
  l && /* @__PURE__ */ F(
@@ -5433,22 +5433,22 @@ const Q = () => {
5433
5433
  y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
5434
5434
  }), Pt = (r) => {
5435
5435
  switch (r) {
5436
- case q.North:
5437
- return q.East;
5438
- case q.East:
5439
- return q.South;
5440
- case q.South:
5441
- return q.West;
5442
- case q.West:
5443
- return q.North;
5444
- case q.Northwest:
5445
- return q.Northeast;
5446
- case q.Northeast:
5447
- return q.Southeast;
5448
- case q.Southeast:
5449
- return q.Southwest;
5450
- case q.Southwest:
5451
- return q.Northwest;
5436
+ case H.North:
5437
+ return H.East;
5438
+ case H.East:
5439
+ return H.South;
5440
+ case H.South:
5441
+ return H.West;
5442
+ case H.West:
5443
+ return H.North;
5444
+ case H.Northwest:
5445
+ return H.Northeast;
5446
+ case H.Northeast:
5447
+ return H.Southeast;
5448
+ case H.Southeast:
5449
+ return H.Southwest;
5450
+ case H.Southwest:
5451
+ return H.Northwest;
5452
5452
  }
5453
5453
  }, Oc = (r, t) => t > 45 && t <= 135 ? Pt(r) : t > 135 && t <= 225 ? Pt(Pt(r)) : t > 225 && t <= 315 ? Pt(Pt(Pt(r))) : r, $c = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5454
5454
  const a = pt(r.rotation), n = {
@@ -5480,7 +5480,7 @@ const Q = () => {
5480
5480
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5481
5481
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5482
5482
  };
5483
- }, Uc = 0.352778, Lc = 0.035277, Fn = (r) => {
5483
+ }, Lc = 0.352778, Uc = 0.035277, Fn = (r) => {
5484
5484
  const t = r.rotation || 0, e = pt(t), a = Math.cos(e), n = -Math.sin(e);
5485
5485
  return /* @__PURE__ */ F("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ F(
5486
5486
  "g",
@@ -5505,7 +5505,7 @@ const Q = () => {
5505
5505
  }, kn = (r) => {
5506
5506
  var l;
5507
5507
  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);
5508
- return /* @__PURE__ */ ct(Gt, { children: [
5508
+ return /* @__PURE__ */ ct(zt, { children: [
5509
5509
  /* @__PURE__ */ F("defs", { children: (() => /* @__PURE__ */ F("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ F("path", { d: r.clipPath }) : /* @__PURE__ */ F("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5510
5510
  /* @__PURE__ */ ct(
5511
5511
  "g",
@@ -5545,8 +5545,8 @@ const Q = () => {
5545
5545
  return r.pattern.src;
5546
5546
  };
5547
5547
  if (!a())
5548
- return /* @__PURE__ */ F(Gt, {});
5549
- 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__ */ F(Gt, { children: r.useThreshold && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5548
+ return /* @__PURE__ */ F(zt, {});
5549
+ 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__ */ F(zt, { children: r.useThreshold && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ ct("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5550
5550
  /* @__PURE__ */ F(
5551
5551
  "feColorMatrix",
5552
5552
  {
@@ -5566,8 +5566,8 @@ const Q = () => {
5566
5566
  /* @__PURE__ */ F("feFuncB", { type: "discrete", tableValues: n() })
5567
5567
  ] })
5568
5568
  ] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5569
- var w, S, y, E, B, I, D, x, k, T;
5570
- const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((B = r.pattern) == null ? void 0 : B.scaleX) || 1, p = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5569
+ var w, S, y, E, b, I, D, x, k, T;
5570
+ const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((b = r.pattern) == null ? void 0 : b.scaleX) || 1, p = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5571
5571
  return [(x = r.pattern) != null && x.svg ? {
5572
5572
  id: `${t}-contents`,
5573
5573
  type: M.Illustration,
@@ -5590,7 +5590,7 @@ const Q = () => {
5590
5590
  src: a()
5591
5591
  }];
5592
5592
  };
5593
- return /* @__PURE__ */ ct(Gt, { children: [
5593
+ return /* @__PURE__ */ ct(zt, { children: [
5594
5594
  i(),
5595
5595
  /* @__PURE__ */ F(
5596
5596
  "g",
@@ -5677,14 +5677,14 @@ class ji {
5677
5677
  }), a - n;
5678
5678
  }
5679
5679
  }
5680
- const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @__PURE__ */ new Map(), Nt = async (r) => {
5681
- if (Le.has(r))
5682
- return Le.get(r);
5680
+ const qi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @__PURE__ */ new Map(), Nt = async (r) => {
5681
+ if (Ue.has(r))
5682
+ return Ue.get(r);
5683
5683
  const e = (async () => {
5684
5684
  try {
5685
5685
  return Et(r).getFont();
5686
5686
  } catch {
5687
- if (Hi(r)) {
5687
+ if (qi(r)) {
5688
5688
  const a = hn(r), n = Xe(a);
5689
5689
  return ra(r, n), n;
5690
5690
  } else {
@@ -5693,8 +5693,8 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5693
5693
  }
5694
5694
  }
5695
5695
  })();
5696
- return Le.set(r, e), e;
5697
- }, qi = (r) => {
5696
+ return Ue.set(r, e), e;
5697
+ }, Hi = (r) => {
5698
5698
  const t = hn(r), e = Xe(t);
5699
5699
  return ra(r, e), e;
5700
5700
  }, Et = (r) => {
@@ -5730,19 +5730,19 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5730
5730
  let y = 0;
5731
5731
  const E = A.getAttribute("text-anchor");
5732
5732
  E === "middle" ? y = S / 2 : E === "end" && (y = S);
5733
- const B = g.getPath(
5733
+ const b = g.getPath(
5734
5734
  A.innerHTML,
5735
5735
  parseFloat(A.getAttribute("x") ?? "0") - y,
5736
5736
  parseFloat(A.getAttribute("y") ?? "0"),
5737
5737
  parseInt(u.getAttribute("font-size") ?? "72")
5738
5738
  );
5739
- B.fill = p, B.stroke = f, B.strokeWidth = parseFloat(C ?? "0");
5740
- const I = B.toSVG(2), x = t.parseFromString(I, "image/svg+xml").firstElementChild;
5739
+ b.fill = p, b.stroke = f, b.strokeWidth = parseFloat(C ?? "0");
5740
+ const I = b.toSVG(2), x = t.parseFromString(I, "image/svg+xml").firstElementChild;
5741
5741
  h.appendChild(x);
5742
5742
  }
5743
- return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
5743
+ return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5744
5744
  }, Ee = (r, t, e, a) => Math.max(_i(r.join(`
5745
- `), e, a), t), Ua = (r, t, e, a, n, i) => {
5745
+ `), e, a), t), La = (r, t, e, a, n, i) => {
5746
5746
  const s = (i || ya) * n.getApproximateHeight(), o = t.split(`
5747
5747
  `);
5748
5748
  try {
@@ -5800,7 +5800,7 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5800
5800
  var c;
5801
5801
  const n = Et(t.fontData.assetUrl), i = n.getFont(), s = t.fontSize / i.unitsPerEm;
5802
5802
  if (!e)
5803
- return Ua(t, r, t.fontSize, s, n, a);
5803
+ return La(t, r, t.fontSize, s, n, a);
5804
5804
  let o;
5805
5805
  if (t.text ? o = t.text.split(`
5806
5806
  `) : o = ((c = t.input) == null ? void 0 : c.split(`
@@ -5817,7 +5817,7 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5817
5817
  requiredHeight: t.height,
5818
5818
  requiredWidth: Ee(o, t.width, s, n),
5819
5819
  fontSize: Yi(o, n, i, t.width, t.height, a)
5820
- } : Ua(t, r, t.fontSize, s, n, a);
5820
+ } : La(t, r, t.fontSize, s, n, a);
5821
5821
  }, Ki = (r, t, e, a, n) => {
5822
5822
  const s = Et(t.assetUrl).getFont();
5823
5823
  let o = { ...r };
@@ -5846,12 +5846,12 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5846
5846
  return r.forEach((n) => {
5847
5847
  a = Math.max(a, ht(n, t, e));
5848
5848
  }), a;
5849
- }, La = {
5849
+ }, Ua = {
5850
5850
  stripControlCharacters: !0,
5851
5851
  vertical: !1,
5852
5852
  uppercase: !1
5853
- }, Be = (r, t = La) => {
5854
- const e = { ...La, ...t };
5853
+ }, be = (r, t = Ua) => {
5854
+ const e = { ...Ua, ...t };
5855
5855
  let a = r || "";
5856
5856
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5857
5857
  `)), a;
@@ -5890,7 +5890,7 @@ const Hi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5890
5890
  var w;
5891
5891
  return r.textFillImage ? `url("#${s}")` : (w = r._renderingConfiguration) != null && w.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${fn(r.fillSpotColorDefinition)}` : r.fill;
5892
5892
  };
5893
- return /* @__PURE__ */ ct(Gt, { children: [
5893
+ return /* @__PURE__ */ ct(zt, { children: [
5894
5894
  /* @__PURE__ */ ct("defs", { children: [
5895
5895
  r.textFillImage && /* @__PURE__ */ F(
5896
5896
  "pattern",
@@ -6046,7 +6046,7 @@ class rs {
6046
6046
  return this.state;
6047
6047
  }
6048
6048
  runStateCallbacks() {
6049
- console.log("LOG: running callbacks"), this.stateCallbacks.forEach((t) => t());
6049
+ this.stateCallbacks.forEach((t) => t());
6050
6050
  }
6051
6051
  apply(t, e) {
6052
6052
  if (!this.state)
@@ -6114,7 +6114,7 @@ class rs {
6114
6114
  layouts: {}
6115
6115
  };
6116
6116
  t.forEach((n) => {
6117
- a = new Un(n).apply(a);
6117
+ a = new Ln(n).apply(a);
6118
6118
  }), this.runStateCallbacks(), this.state = {
6119
6119
  transaction: a
6120
6120
  };
@@ -6127,7 +6127,7 @@ class rs {
6127
6127
  const Qn = (r) => r.type === M.Image ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : r.type === M.Frame ? /* @__PURE__ */ F(Wi, { ...r }, r.id) : r.type === M.Illustration ? /* @__PURE__ */ F(ns, { ...r }, r.id) : r.type === M.Textbox ? /* @__PURE__ */ F(ts, { ...r }, r.id) : r.type === M.Group ? /* @__PURE__ */ F(kn, { ...r }, r.id) : null, Sa = (r, t, e) => {
6128
6128
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6129
6129
  return /* @__PURE__ */ F(
6130
- Gi,
6130
+ zi,
6131
6131
  {
6132
6132
  preserveAspectRatio: void 0,
6133
6133
  elements: n,
@@ -6174,7 +6174,7 @@ const ae = (r) => {
6174
6174
  if (r.defaultVariant !== void 0)
6175
6175
  return t.find((e) => e.id === r.defaultVariant);
6176
6176
  }
6177
- }, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), Rn = async (r, t) => {
6177
+ }, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), Ge = /* @__PURE__ */ new Map(), Rn = async (r, t) => {
6178
6178
  if (!t) {
6179
6179
  if (!r)
6180
6180
  throw new Error("No region or src supplied. Cannot construct frame!");
@@ -6198,8 +6198,8 @@ const ae = (r) => {
6198
6198
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6199
6199
  return e;
6200
6200
  }, Qe = async (r) => {
6201
- if (ze.has(r))
6202
- return ze.get(r);
6201
+ if (Ge.has(r))
6202
+ return Ge.get(r);
6203
6203
  const e = (async () => {
6204
6204
  if (Vt.has(r))
6205
6205
  return Vt.get(r);
@@ -6235,7 +6235,7 @@ const ae = (r) => {
6235
6235
  }
6236
6236
  throw new Error("Malformed frame SVG");
6237
6237
  })();
6238
- return ze.set(r, e), e;
6238
+ return Ge.set(r, e), e;
6239
6239
  }, Ea = (r, t, e, a) => {
6240
6240
  const n = t.width / t.height, i = r.width / r.height;
6241
6241
  let s;
@@ -6260,7 +6260,7 @@ const ae = (r) => {
6260
6260
  return At.set(r, s), s;
6261
6261
  }
6262
6262
  if ((((e = r.split(".").pop()) == null ? void 0 : e.toLowerCase()) ?? "") === "svg") {
6263
- const a = await Ba(r), n = a.width, i = a.height, s = {
6263
+ const a = await ba(r), n = a.width, i = a.height, s = {
6264
6264
  src: r,
6265
6265
  width: n,
6266
6266
  height: i,
@@ -6276,7 +6276,7 @@ const ae = (r) => {
6276
6276
  };
6277
6277
  return At.set(r, i), i;
6278
6278
  }
6279
- }, Ba = async (r) => {
6279
+ }, ba = async (r) => {
6280
6280
  const t = await at(r);
6281
6281
  return On(t);
6282
6282
  }, Va = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), On = (r) => {
@@ -6297,9 +6297,9 @@ const ae = (r) => {
6297
6297
  at(r).then((e) => {
6298
6298
  t(e);
6299
6299
  }).catch((e) => console.error(e));
6300
- }), Ge = /* @__PURE__ */ new Map(), Kt = async (r) => {
6301
- if (Ge.has(r))
6302
- return Ge.get(r);
6300
+ }), ze = /* @__PURE__ */ new Map(), Kt = async (r) => {
6301
+ if (ze.has(r))
6302
+ return ze.get(r);
6303
6303
  const t = async (n) => new Promise((i, s) => {
6304
6304
  try {
6305
6305
  if (!(!!URL && !!URL.createObjectURL))
@@ -6316,7 +6316,7 @@ const ae = (r) => {
6316
6316
  const s = dt().parseFromString(r, "image/svg+xml").firstElementChild;
6317
6317
  if (!s)
6318
6318
  throw new Error("Failed to read SVG");
6319
- const l = bt().serializeToString(s), c = gt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
6319
+ const l = Bt().serializeToString(s), c = gt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
6320
6320
  anonymousCrossOrigin: !0,
6321
6321
  ignoreDimensions: !1,
6322
6322
  createCanvas: gt,
@@ -6331,8 +6331,8 @@ const ae = (r) => {
6331
6331
  A.resize(m, m);
6332
6332
  return await A.render(), await t(c);
6333
6333
  })();
6334
- return Ge.set(r, a), a;
6335
- }, Ut = async (r, t, e, a) => {
6334
+ return ze.set(r, a), a;
6335
+ }, Lt = async (r, t, e, a) => {
6336
6336
  const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
6337
6337
  width: r.layoutState.layout.width,
6338
6338
  height: r.layoutState.layout.height,
@@ -6364,9 +6364,9 @@ const ae = (r) => {
6364
6364
  }
6365
6365
  return o;
6366
6366
  };
6367
- class zc {
6367
+ class Gc {
6368
6368
  static async getFrame(t, e) {
6369
- const a = await Rn(e.region, e.src), n = await Qe(a), i = e.region || await Ut(t, M.Frame);
6369
+ const a = await Rn(e.region, e.src), n = await Qe(a), i = e.region || await Lt(t, M.Frame);
6370
6370
  return {
6371
6371
  id: Q(),
6372
6372
  x: i.left,
@@ -6392,7 +6392,7 @@ class zc {
6392
6392
  };
6393
6393
  }
6394
6394
  static async getImage(t, e) {
6395
- const a = e.region || await Ut(t, M.Image, e.src);
6395
+ const a = e.region || await Lt(t, M.Image, e.src);
6396
6396
  return {
6397
6397
  id: Q(),
6398
6398
  src: e.src,
@@ -6413,10 +6413,10 @@ class zc {
6413
6413
  const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Nt(n), o = {
6414
6414
  assetUrl: n,
6415
6415
  name: s.names.fullName.en
6416
- }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Be(c, {
6416
+ }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = be(c, {
6417
6417
  vertical: a.vertical,
6418
6418
  uppercase: a.uppercase
6419
- }), A = e.region || await Ut(t, M.Textbox, n, {
6419
+ }), A = e.region || await Lt(t, M.Textbox, n, {
6420
6420
  text: d,
6421
6421
  fontScale: a.size ? a.size / s.unitsPerEm : void 0
6422
6422
  }), u = ee(
@@ -6482,7 +6482,7 @@ class zc {
6482
6482
  </svg>
6483
6483
  `, n = {};
6484
6484
  n["spiff-fill-shape"] = { browserValue: e.color };
6485
- const i = e.region || await Ut(t, M.Illustration), s = Q();
6485
+ const i = e.region || await Lt(t, M.Illustration), s = Q();
6486
6486
  return {
6487
6487
  stepRegion: e.region,
6488
6488
  colors: n,
@@ -6500,7 +6500,7 @@ class zc {
6500
6500
  };
6501
6501
  }
6502
6502
  static async getIllustration(t, e) {
6503
- const a = e.region || await Ut(t, M.Illustration, e.src), n = await lt(await $n(e.src)), i = await Kt(n.svg), s = Q();
6503
+ const a = e.region || await Lt(t, M.Illustration, e.src), n = await lt(await $n(e.src)), i = await Kt(n.svg), s = Q();
6504
6504
  return {
6505
6505
  cachedObjectURL: i,
6506
6506
  stepRegion: e.region,
@@ -6525,7 +6525,7 @@ class V extends Error {
6525
6525
  super("Element not found!"), Object.setPrototypeOf(this, V.prototype);
6526
6526
  }
6527
6527
  }
6528
- const L = (r, t) => X(r, t).elements.find((n) => n.id === r), X = (r, t) => {
6528
+ const U = (r, t) => X(r, t).elements.find((n) => n.id === r), X = (r, t) => {
6529
6529
  const e = Object.values(t).find((a) => a.elements.some((n) => n.id === r));
6530
6530
  if (!e)
6531
6531
  throw new V();
@@ -6537,7 +6537,7 @@ const L = (r, t) => X(r, t).elements.find((n) => n.id === r), X = (r, t) => {
6537
6537
  elements: a,
6538
6538
  modificationID: Q()
6539
6539
  };
6540
- }, za = async (r) => {
6540
+ }, Ga = async (r) => {
6541
6541
  var a;
6542
6542
  const t = [...Object.keys(r.layouts)], e = [...new Set(t)];
6543
6543
  for (let n = 0; n < e.length; n++) {
@@ -6599,7 +6599,7 @@ class O {
6599
6599
  this.oldState = t;
6600
6600
  }
6601
6601
  }
6602
- class Ga extends O {
6602
+ class za extends O {
6603
6603
  constructor(t) {
6604
6604
  super(), this.serializableWorkflow = t;
6605
6605
  }
@@ -6610,13 +6610,13 @@ class Ga extends O {
6610
6610
  };
6611
6611
  }
6612
6612
  }
6613
- class Gc extends O {
6613
+ class zc extends O {
6614
6614
  constructor(t, e, a) {
6615
6615
  super(), this.id = t, this.x = e, this.y = a;
6616
6616
  }
6617
6617
  apply(t) {
6618
6618
  this.oldState = t;
6619
- const e = L(this.id, Object.values(t.layouts));
6619
+ const e = U(this.id, Object.values(t.layouts));
6620
6620
  if (!e.id)
6621
6621
  throw new V();
6622
6622
  const a = {
@@ -6639,7 +6639,7 @@ class Wc extends O {
6639
6639
  }
6640
6640
  apply(t) {
6641
6641
  this.oldState = t;
6642
- const e = L(this.id, Object.values(t.layouts));
6642
+ const e = U(this.id, Object.values(t.layouts));
6643
6643
  if (!e.id)
6644
6644
  throw new V();
6645
6645
  const a = {
@@ -6661,7 +6661,7 @@ class jc extends O {
6661
6661
  }
6662
6662
  apply(t) {
6663
6663
  this.oldState = t;
6664
- const e = L(this.id, Object.values(t.layouts));
6664
+ const e = U(this.id, Object.values(t.layouts));
6665
6665
  if (!e.id)
6666
6666
  throw new V();
6667
6667
  let a = {
@@ -6694,7 +6694,7 @@ class $ extends O {
6694
6694
  return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
6695
6695
  }
6696
6696
  }
6697
- class Un extends O {
6697
+ class Ln extends O {
6698
6698
  constructor(t) {
6699
6699
  super(), this.layout = t;
6700
6700
  }
@@ -6772,7 +6772,7 @@ class W extends O {
6772
6772
  return a !== void 0 ? a + 1 : 0;
6773
6773
  }
6774
6774
  }
6775
- class Bt extends O {
6775
+ class bt extends O {
6776
6776
  constructor(t) {
6777
6777
  super(), this.id = t;
6778
6778
  }
@@ -6800,7 +6800,7 @@ class ss extends O {
6800
6800
  }
6801
6801
  apply(t) {
6802
6802
  this.oldState = t;
6803
- const e = L(this.id, Object.values(t.layouts));
6803
+ const e = U(this.id, Object.values(t.layouts));
6804
6804
  if (!e.id)
6805
6805
  throw new V();
6806
6806
  const a = {
@@ -6824,7 +6824,7 @@ class We extends O {
6824
6824
  }
6825
6825
  apply(t) {
6826
6826
  this.oldState = t;
6827
- const e = L(this.id, Object.values(t.layouts));
6827
+ const e = U(this.id, Object.values(t.layouts));
6828
6828
  if (!e.id)
6829
6829
  throw new V();
6830
6830
  const a = {
@@ -6846,7 +6846,7 @@ class os extends O {
6846
6846
  }
6847
6847
  apply(t) {
6848
6848
  this.oldState = t;
6849
- const e = L(this.id, Object.values(t.layouts));
6849
+ const e = U(this.id, Object.values(t.layouts));
6850
6850
  if (!e.id)
6851
6851
  throw new V();
6852
6852
  const a = {
@@ -6868,7 +6868,7 @@ class Wa extends O {
6868
6868
  }
6869
6869
  apply(t) {
6870
6870
  this.oldState = t;
6871
- const e = L(this.id, Object.values(t.layouts));
6871
+ const e = U(this.id, Object.values(t.layouts));
6872
6872
  if (!e.id)
6873
6873
  throw new V();
6874
6874
  const a = {
@@ -6890,7 +6890,7 @@ class ls extends O {
6890
6890
  }
6891
6891
  apply(t) {
6892
6892
  this.oldState = t;
6893
- const e = L(this.id, Object.values(t.layouts));
6893
+ const e = U(this.id, Object.values(t.layouts));
6894
6894
  if (!e.id)
6895
6895
  throw new V();
6896
6896
  const a = {
@@ -6948,7 +6948,7 @@ class ds extends O {
6948
6948
  }
6949
6949
  apply(t) {
6950
6950
  this.oldState = t;
6951
- const e = L(this.id, Object.values(t.layouts));
6951
+ const e = U(this.id, Object.values(t.layouts));
6952
6952
  if (!e.id)
6953
6953
  throw new V();
6954
6954
  const a = {
@@ -6967,13 +6967,13 @@ class ds extends O {
6967
6967
  };
6968
6968
  }
6969
6969
  }
6970
- class Hc extends O {
6970
+ class qc extends O {
6971
6971
  constructor(t, e) {
6972
6972
  super(), this.id = t, this.src = e;
6973
6973
  }
6974
6974
  apply(t) {
6975
6975
  this.oldState = t;
6976
- const e = L(this.id, Object.values(t.layouts));
6976
+ const e = U(this.id, Object.values(t.layouts));
6977
6977
  if (!e.id)
6978
6978
  throw new V();
6979
6979
  const a = {
@@ -6995,7 +6995,7 @@ class As extends O {
6995
6995
  }
6996
6996
  apply(t) {
6997
6997
  this.oldState = t;
6998
- const e = L(this.id, Object.values(t.layouts));
6998
+ const e = U(this.id, Object.values(t.layouts));
6999
6999
  if (!e.id)
7000
7000
  throw new V();
7001
7001
  const a = X(e.id, Object.values(t.layouts)), n = Z(ee(e, this.text, e), a);
@@ -7014,7 +7014,7 @@ class je extends O {
7014
7014
  }
7015
7015
  apply(t) {
7016
7016
  this.oldState = t;
7017
- const e = L(this.id, Object.values(t.layouts));
7017
+ const e = U(this.id, Object.values(t.layouts));
7018
7018
  if (!e.id)
7019
7019
  throw new V();
7020
7020
  const a = {
@@ -7037,7 +7037,7 @@ class oa extends O {
7037
7037
  }
7038
7038
  apply(t) {
7039
7039
  this.oldState = t;
7040
- const e = L(this.id, Object.values(t.layouts));
7040
+ const e = U(this.id, Object.values(t.layouts));
7041
7041
  if (!e.id)
7042
7042
  throw new V();
7043
7043
  const a = e.colors || {}, n = a[this.className];
@@ -7069,7 +7069,7 @@ class us extends O {
7069
7069
  }
7070
7070
  apply(t) {
7071
7071
  this.oldState = t;
7072
- const e = L(this.id, Object.values(t.layouts));
7072
+ const e = U(this.id, Object.values(t.layouts));
7073
7073
  if (!e.id)
7074
7074
  throw new V();
7075
7075
  const a = {
@@ -7086,7 +7086,7 @@ class us extends O {
7086
7086
  };
7087
7087
  }
7088
7088
  }
7089
- class qc extends O {
7089
+ class Hc extends O {
7090
7090
  /**
7091
7091
  * @param id The targeted element to bring to the front.
7092
7092
  */
@@ -7094,7 +7094,7 @@ class qc extends O {
7094
7094
  super(), this.id = t;
7095
7095
  }
7096
7096
  apply(t) {
7097
- if (this.oldState = t, !L(this.id, Object.values(t.layouts)).id)
7097
+ if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
7098
7098
  throw new V();
7099
7099
  const a = Object.values(t.layouts).find((s) => s.elements.find((o) => o.id === this.id));
7100
7100
  if (!a)
@@ -7124,7 +7124,7 @@ class Yc extends O {
7124
7124
  }
7125
7125
  apply(t) {
7126
7126
  this.oldState = t;
7127
- const e = L(this.id, Object.values(t.layouts));
7127
+ const e = U(this.id, Object.values(t.layouts));
7128
7128
  if (!e.id)
7129
7129
  throw new V();
7130
7130
  const a = Object.values(t.layouts).find((o) => o.elements.find((l) => l.id === this.id));
@@ -7154,7 +7154,7 @@ class Jc extends O {
7154
7154
  super(), this.id = t;
7155
7155
  }
7156
7156
  apply(t) {
7157
- if (this.oldState = t, !L(this.id, Object.values(t.layouts)).id)
7157
+ if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
7158
7158
  throw new V();
7159
7159
  const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
7160
7160
  if (!a)
@@ -7181,7 +7181,7 @@ class Kc extends O {
7181
7181
  super(), this.id = t;
7182
7182
  }
7183
7183
  apply(t) {
7184
- if (this.oldState = t, !L(this.id, Object.values(t.layouts)).id)
7184
+ if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
7185
7185
  throw new V();
7186
7186
  const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
7187
7187
  if (!a)
@@ -7315,7 +7315,7 @@ const hs = async (r) => {
7315
7315
  throw console.error(e), new xe("Failed to shorten URL, see console.");
7316
7316
  }
7317
7317
  };
7318
- class Ln {
7318
+ class Un {
7319
7319
  async poll() {
7320
7320
  try {
7321
7321
  if (await this.predicate()) {
@@ -7362,12 +7362,12 @@ class ms {
7362
7362
  const h = (await ve([e]))[0], m = (p = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((f) => f.name === "mpeg4")) == null ? void 0 : p.link;
7363
7363
  return { asset: h, link: m };
7364
7364
  }, s = await new Promise((h, m) => {
7365
- new Ln(
7365
+ new Un(
7366
7366
  async () => !!(await i()).link,
7367
7367
  async () => {
7368
7368
  const g = await i();
7369
7369
  if (!g.link || !g.link)
7370
- throw new qt(g.asset);
7370
+ throw new Ht(g.asset);
7371
7371
  h({
7372
7372
  rel: "mpeg4",
7373
7373
  href: g.link
@@ -7380,7 +7380,7 @@ class ms {
7380
7380
  40
7381
7381
  );
7382
7382
  });
7383
- t.forEach((h) => a.getCommandDispatcher()(new Bt(h.id)));
7383
+ t.forEach((h) => a.getCommandDispatcher()(new bt(h.id)));
7384
7384
  const o = n.data.baseUrl.slice(0, 4) === "http" ? "" : "https://", l = new URL(o + n.data.baseUrl);
7385
7385
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7386
7386
  const c = l.toString();
@@ -7431,7 +7431,7 @@ class ms {
7431
7431
  }
7432
7432
  }
7433
7433
  const Vn = new ms();
7434
- class be {
7434
+ class Be {
7435
7435
  constructor() {
7436
7436
  this.frameSourceSvg = async (t, e) => {
7437
7437
  if (!t)
@@ -7442,7 +7442,7 @@ class be {
7442
7442
  const n = a.fileLink;
7443
7443
  if (n)
7444
7444
  return at(n, !0);
7445
- throw new qt(a);
7445
+ throw new Ht(a);
7446
7446
  };
7447
7447
  }
7448
7448
  async init(t, e, a) {
@@ -7456,7 +7456,7 @@ class be {
7456
7456
  const s = e.getWorkflowExperience().getBundle();
7457
7457
  if (s && t.globalPropertyAspectConfigurations) {
7458
7458
  const o = s.getGlobalPropertyStateManager(), l = t.globalPropertyAspectConfigurations[0], c = o.getAspectStorage(l.aspectName);
7459
- c && c.originalAssetKey && (i = (await U.getLocalOrFromServer(c.originalAssetKey)).fileLink);
7459
+ c && c.originalAssetKey && (i = (await L.getLocalOrFromServer(c.originalAssetKey)).fileLink);
7460
7460
  }
7461
7461
  if (t.option && t.option.variants && t.option.variants.length > 0) {
7462
7462
  const o = t.option, l = Y.getDefaultVariant(o);
@@ -7545,21 +7545,21 @@ class be {
7545
7545
  }
7546
7546
  selectImage(t, e, a, n = !0) {
7547
7547
  var l;
7548
- const i = be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7548
+ const i = Be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7549
7549
  if (s && s === i)
7550
7550
  return Promise.resolve();
7551
7551
  a.setEditedStatus(t.stepName, !0);
7552
7552
  const o = e.fileLink || "";
7553
7553
  return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
7554
7554
  a.addPoller(
7555
- new Ln(
7555
+ new Un(
7556
7556
  async () => {
7557
7557
  var h;
7558
- const A = (h = (await U.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
7558
+ const A = (h = (await L.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
7559
7559
  return A ? (await rt(A.link)).status === 200 : !1;
7560
7560
  },
7561
7561
  () => {
7562
- U.getLocalOrFromServer(e.key || "").then((d) => {
7562
+ L.getLocalOrFromServer(e.key || "").then((d) => {
7563
7563
  this.loadPatternFromAsset(d, t, a, n).then(
7564
7564
  c
7565
7565
  );
@@ -7610,7 +7610,7 @@ class be {
7610
7610
  }
7611
7611
  async loadPatternFromString(t, e, a = !0, n = void 0, i) {
7612
7612
  if (t.endsWith("svg")) {
7613
- const s = await Ba(t), o = s.width, l = s.height, c = await at(t);
7613
+ const s = await ba(t), o = s.width, l = s.height, c = await at(t);
7614
7614
  if (i) {
7615
7615
  const u = c.match(/<(image|linearGradient|radialGradient)(\s|>|\/>)/gim);
7616
7616
  if (u && u.length > 0)
@@ -7722,7 +7722,7 @@ class be {
7722
7722
  i && i(!0);
7723
7723
  const c = t.data.initialZoomLevel, d = await Promise.all(
7724
7724
  t.data.regions.map(async (m, g) => {
7725
- const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new Bt(I.id)), w = f ? Ea(
7725
+ const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new bt(I.id)), w = f ? Ea(
7726
7726
  f,
7727
7727
  p,
7728
7728
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7737,11 +7737,11 @@ class be {
7737
7737
  scaleX: (w == null ? void 0 : w.zoom) || 1,
7738
7738
  scaleY: (w == null ? void 0 : w.zoom) || 1,
7739
7739
  rotation: 0
7740
- } : void 0, y = Q(), B = n.getLayouts().find((I) => I.panelId === m.panelId);
7741
- if (!B)
7740
+ } : void 0, y = Q(), b = n.getLayouts().find((I) => I.panelId === m.panelId);
7741
+ if (!b)
7742
7742
  throw new J(m);
7743
7743
  return {
7744
- command: this.getCreateElementCommand(y, m, B, {
7744
+ command: this.getCreateElementCommand(y, m, b, {
7745
7745
  frameData: p,
7746
7746
  pattern: S,
7747
7747
  disablePlaceholder: t.data.disablePlaceholder,
@@ -7786,11 +7786,11 @@ class be {
7786
7786
  const a = t.fileLink;
7787
7787
  if (a)
7788
7788
  return a;
7789
- throw new qt(t);
7789
+ throw new Ht(t);
7790
7790
  }
7791
7791
  async loadPatternFromAsset(t, e, a, n) {
7792
7792
  var c, d;
7793
- const i = be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7793
+ const i = Be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7794
7794
  if (!o)
7795
7795
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7796
7796
  try {
@@ -7817,7 +7817,7 @@ class be {
7817
7817
  ), this.validateColorCount(e, a);
7818
7818
  }
7819
7819
  }
7820
- const wt = new be();
7820
+ const wt = new Be();
7821
7821
  class gs {
7822
7822
  async getIllustrationBody(t) {
7823
7823
  return new Promise((e) => {
@@ -7854,7 +7854,7 @@ class gs {
7854
7854
  if (a.length === 0)
7855
7855
  return [];
7856
7856
  try {
7857
- return L(
7857
+ return U(
7858
7858
  a[0].id,
7859
7859
  e.getAllLayoutData()
7860
7860
  ).colors;
@@ -7939,7 +7939,7 @@ class gs {
7939
7939
  var h, m;
7940
7940
  if (e.length === 0)
7941
7941
  return;
7942
- const s = L(
7942
+ const s = U(
7943
7943
  e[0].id,
7944
7944
  n().map((g) => g.layoutState)
7945
7945
  ), o = { ...s.colors }, l = {};
@@ -7984,14 +7984,14 @@ class gs {
7984
7984
  if (!t.data || !t.data.regions)
7985
7985
  throw new Se(t, "Missing regions.");
7986
7986
  n(!0);
7987
- const s = a.map((C) => new Bt(C.id));
7987
+ const s = a.map((C) => new bt(C.id));
7988
7988
  t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
7989
7989
  const o = e.asset;
7990
7990
  if (!o)
7991
7991
  throw new vt(e);
7992
7992
  const l = o.fileLink;
7993
7993
  if (!l)
7994
- throw new qt(o);
7994
+ throw new Ht(o);
7995
7995
  const c = await lt(await this.getIllustrationBody(l)), d = await Kt(c.svg), A = (C) => {
7996
7996
  const w = i.getLayouts().find((y) => y.panelId === C.panelId);
7997
7997
  if (!w)
@@ -8029,21 +8029,21 @@ class gs {
8029
8029
  const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
8030
8030
  if (C.length !== 0) {
8031
8031
  const y = {};
8032
- (((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((B) => {
8032
+ (((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((b) => {
8033
8033
  var D;
8034
- const I = C.find((x) => x.channelNumber === B.number);
8035
- I && (y[`${B.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
8034
+ const I = C.find((x) => x.channelNumber === b.number);
8035
+ I && (y[`${b.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
8036
8036
  }), await this.changeColors(
8037
8037
  t,
8038
- u.map((B) => B.regionElement),
8038
+ u.map((b) => b.regionElement),
8039
8039
  i,
8040
8040
  () => i.getCommandContext().getAllLayouts(),
8041
8041
  new Map(Object.entries(y))
8042
8042
  );
8043
8043
  }
8044
8044
  if (t.data.colorPickerEnabled) {
8045
- const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), B = y.length === 1 && E.length === 1;
8046
- if (B) {
8045
+ const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), b = y.length === 1 && E.length === 1;
8046
+ if (b) {
8047
8047
  const I = y[0], D = E[0];
8048
8048
  await this.changeColors(
8049
8049
  t,
@@ -8053,7 +8053,7 @@ class gs {
8053
8053
  /* @__PURE__ */ new Map([[D, I.variant.color]])
8054
8054
  );
8055
8055
  }
8056
- !B && C.length === 0 && await this.changeColors(
8056
+ !b && C.length === 0 && await this.changeColors(
8057
8057
  t,
8058
8058
  u.map((I) => I.regionElement),
8059
8059
  i,
@@ -8143,7 +8143,7 @@ class ps {
8143
8143
  };
8144
8144
  }
8145
8145
  }
8146
- const zn = new ps();
8146
+ const Gn = new ps();
8147
8147
  class fs {
8148
8148
  async init(t, e, a) {
8149
8149
  const n = t.option;
@@ -8229,7 +8229,7 @@ class fs {
8229
8229
  };
8230
8230
  }
8231
8231
  }
8232
- const Gn = new fs();
8232
+ const zn = new fs();
8233
8233
  class Cs {
8234
8234
  async init(t, e, a) {
8235
8235
  if (a)
@@ -8269,7 +8269,7 @@ class Cs {
8269
8269
  if (!p)
8270
8270
  return console.error(`Can not find layout for region: ${u.panelId}`), null;
8271
8271
  const f = [];
8272
- return h && f.push(new Bt(m)), f.push(
8272
+ return h && f.push(new bt(m)), f.push(
8273
8273
  new W(
8274
8274
  {
8275
8275
  stepRegion: u,
@@ -8391,7 +8391,7 @@ class ws {
8391
8391
  if (!s)
8392
8392
  return console.error("No URL for picture!"), null;
8393
8393
  n(!0), t.mandatory && a.setMandatoryFulfilled(t.stepName, !1);
8394
- const l = a.getRegionElements(t.stepName).map((A) => new Bt(A.id)), c = (A) => {
8394
+ const l = a.getRegionElements(t.stepName).map((A) => new bt(A.id)), c = (A) => {
8395
8395
  const h = a.getLayouts().find((g) => g.panelId === A.panelId);
8396
8396
  if (!h)
8397
8397
  throw new J(A);
@@ -8472,31 +8472,31 @@ class ys {
8472
8472
  }
8473
8473
  }
8474
8474
  async selectVariant(t, e, a) {
8475
- await a.getInitializationPromise();
8475
+ console.log("LOG: q select variant"), await a.getInitializationPromise();
8476
8476
  const n = await this.selectVariantLambda(t, e, a);
8477
- n && (n.command && a.getCommandDispatcher()(n.command), n.followup && await n.followup());
8477
+ n && (console.log("LOG: q select variant result"), n.command && a.getCommandDispatcher()(n.command), n.followup && await n.followup());
8478
8478
  }
8479
8479
  async selectVariantLambda(t, e, a) {
8480
8480
  const n = t.option;
8481
8481
  if (!n)
8482
- return null;
8482
+ return console.log("LOG: q select variant no option"), null;
8483
8483
  const i = n.variants;
8484
8484
  if (!i)
8485
- return null;
8485
+ return console.log("LOG: q select variant no variants"), null;
8486
8486
  const s = i.length > 1 ? i.find((o) => o.id === e) : i[0];
8487
8487
  if (!s)
8488
- throw new Error(`Failed to find selected variant ${e} in option ${n.id} of step ${t.stepName} (${t.stepTitle})`);
8488
+ throw console.log("LOG: q select variant no variant"), new Error(`Failed to find selected variant ${e} in option ${n.id} of step ${t.stepName} (${t.stepTitle})`);
8489
8489
  return {
8490
8490
  command: void 0,
8491
8491
  followup: async () => {
8492
- await a.setSelectionsAndElements(t.stepName, [s], [], async () => {
8492
+ console.log("LOG: q select variant follow up"), await a.setSelectionsAndElements(t.stepName, [s], [], async () => {
8493
8493
  a.setMandatoryFulfilled(t.stepName, !0);
8494
8494
  });
8495
8495
  }
8496
8496
  };
8497
8497
  }
8498
8498
  }
8499
- const Hn = new ys();
8499
+ const qn = new ys();
8500
8500
  class Ss {
8501
8501
  constructor() {
8502
8502
  this.shapeFillId = "spiff-fill-shape";
@@ -8669,7 +8669,7 @@ class Ss {
8669
8669
  }
8670
8670
  }
8671
8671
  }
8672
- const zt = new Ss();
8672
+ const Gt = new Ss();
8673
8673
  class vs {
8674
8674
  constructor() {
8675
8675
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
@@ -8695,7 +8695,7 @@ class vs {
8695
8695
  );
8696
8696
  }
8697
8697
  }
8698
- const Es = new vs(), He = (r, t, e, a, n) => {
8698
+ const Es = new vs(), qe = (r, t, e, a, n) => {
8699
8699
  if (t.some((d) => d == null))
8700
8700
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8701
8701
  let i = t.map((d) => d.split(`
@@ -8727,32 +8727,32 @@ const Es = new vs(), He = (r, t, e, a, n) => {
8727
8727
  const o = Et(t.assetUrl), l = o.getFont();
8728
8728
  if (n.size) {
8729
8729
  const u = r / l.unitsPerEm;
8730
- return [i, s] = He(e, a, r, u, o), [n.size, i, s];
8730
+ return [i, s] = qe(e, a, r, u, o), [n.size, i, s];
8731
8731
  }
8732
8732
  const c = 6;
8733
8733
  let d = c - Ve;
8734
8734
  if (a.length > 0) {
8735
8735
  let u = a, h = 0;
8736
8736
  for (; (!n.maxSize || d <= n.maxSize) && u; )
8737
- d += Ve, h = d / l.unitsPerEm, [u, s] = He(e, a, d, h, o);
8737
+ d += Ve, h = d / l.unitsPerEm, [u, s] = qe(e, a, d, h, o);
8738
8738
  }
8739
8739
  d > c && (d -= Ve), n.minSize && d < n.minSize && (d = n.minSize);
8740
8740
  const A = d / l.unitsPerEm;
8741
- return [i, s] = He(e, a, d, A, o), [d, i, s];
8742
- }, qe = 30;
8741
+ return [i, s] = qe(e, a, d, A, o), [d, i, s];
8742
+ }, He = 30;
8743
8743
  class Ie extends Error {
8744
8744
  constructor(t) {
8745
8745
  super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Ie.name;
8746
8746
  }
8747
8747
  }
8748
- const Bs = ["‘", "’", "“", "”", `
8748
+ const bs = ["‘", "’", "“", "”", `
8749
8749
  `];
8750
8750
  class Pe extends Error {
8751
8751
  constructor(t) {
8752
8752
  super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Pe.name;
8753
8753
  }
8754
8754
  }
8755
- class bs {
8755
+ class Bs {
8756
8756
  constructor() {
8757
8757
  this.cachedColors = /* @__PURE__ */ new Map(), this.cachedStrokeColors = /* @__PURE__ */ new Map(), this.filterUnsupportedCharacters = (t, e) => {
8758
8758
  let a = t.replace(
@@ -8761,7 +8761,7 @@ class bs {
8761
8761
  );
8762
8762
  const n = [], i = e ? Et(e.assetUrl) : void 0;
8763
8763
  if (i) {
8764
- const s = a.split("").filter((l) => !Bs.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8764
+ const s = a.split("").filter((l) => !bs.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8765
8765
  for (let l = 0; l < o.length; l++)
8766
8766
  o[l].name === ".notdef" && n.push(String.fromCharCode(s.charCodeAt(l)));
8767
8767
  }
@@ -8786,12 +8786,14 @@ class bs {
8786
8786
  }
8787
8787
  async init(t, e, a) {
8788
8788
  var i, s, o, l;
8789
+ console.log(`LOG: t (${t.stepName}) init`);
8789
8790
  const n = t.option;
8790
8791
  if (!n)
8791
- return null;
8792
+ return console.log(`LOG: t (${t.stepName}) no option`), null;
8792
8793
  if (a)
8793
- await this.reload(t, e, a);
8794
+ console.log(`LOG: t (${t.stepName}) reload`), await this.reload(t, e, a);
8794
8795
  else {
8796
+ console.log(`LOG: t (${t.stepName}) no reload`);
8795
8797
  const c = this.getDefaultImageFillVariant(t.data), d = (i = c == null ? void 0 : c.asset) == null ? void 0 : i.fileLink, A = d ? await sa(d) : void 0, u = A ? {
8796
8798
  src: A.src,
8797
8799
  height: A.height,
@@ -8806,7 +8808,7 @@ class bs {
8806
8808
  if (p && t.globalPropertyAspectConfigurations) {
8807
8809
  const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find((S) => {
8808
8810
  var y;
8809
- return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((E) => E.aspectName).includes(S.name));
8811
+ return S.type === G.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((E) => E.aspectName).includes(S.name));
8810
8812
  });
8811
8813
  if (w) {
8812
8814
  const y = p.getGlobalPropertyStateManager().getAspect(w.name);
@@ -8827,7 +8829,7 @@ class bs {
8827
8829
  });
8828
8830
  const f = Y.getDefaultVariant(n);
8829
8831
  if (f)
8830
- return this.selectVariantCommand(
8832
+ return console.log(`LOG: t (${t.stepName}) variant`), this.selectVariantCommand(
8831
8833
  t,
8832
8834
  f,
8833
8835
  { text: g },
@@ -8841,10 +8843,10 @@ class bs {
8841
8843
  m
8842
8844
  );
8843
8845
  }
8844
- return null;
8846
+ return console.log(`LOG: t (${t.stepName}) end`), null;
8845
8847
  }
8846
8848
  findLayoutElements(t, e) {
8847
- return t.getRegionElements(e.stepName).map((i) => L(i.id, t.getAllLayoutData()));
8849
+ return t.getRegionElements(e.stepName).map((i) => U(i.id, t.getAllLayoutData()));
8848
8850
  }
8849
8851
  /**
8850
8852
  * Get the colors that can be used for a given text step.
@@ -8975,7 +8977,7 @@ class bs {
8975
8977
  }
8976
8978
  getProcessedInput(t, e, a) {
8977
8979
  const n = a ? t : this.injectReplaceableText(t, e);
8978
- return Be(n, {
8980
+ return be(n, {
8979
8981
  vertical: e.vertical,
8980
8982
  uppercase: e.uppercase
8981
8983
  });
@@ -8992,7 +8994,7 @@ class bs {
8992
8994
  const l = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
8993
8995
  for (const A of e) {
8994
8996
  if (!A.fontData)
8995
- throw new G("Failed to resolve font data for text.");
8997
+ throw new z("Failed to resolve font data for text.");
8996
8998
  const [u, h] = pe(
8997
8999
  A.fontSize,
8998
9000
  A.fontData,
@@ -9040,17 +9042,19 @@ class bs {
9040
9042
  a.serializableWorkflow.steps
9041
9043
  ), o = Object.values(a.layouts).map((m) => m.elements).flat().filter((m) => m.stepName === t.stepName), l = t.option;
9042
9044
  if (n != null && n.selectedVariants) {
9045
+ console.log(`LOG: text (${t.stepName}) reload selections`);
9043
9046
  const m = n.selectedVariants[0].id;
9044
9047
  if (l && m) {
9045
9048
  const g = (c = l.variants) == null ? void 0 : c.find((p) => p.id === m);
9046
9049
  if (g) {
9050
+ console.log(`LOG: text (${t.stepName}) reload selections variant`);
9047
9051
  const p = await this.fontDataFromVariant(g), f = o.map((y) => ({ id: y.id, region: y.stepRegion })), C = (d = n.storage) == null ? void 0 : d.color;
9048
9052
  let w = (A = n.storage) == null ? void 0 : A.text;
9049
9053
  const S = e.getWorkflowExperience().getBundle();
9050
9054
  if (S && t.globalPropertyAspectConfigurations) {
9051
- const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((B) => {
9055
+ const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((b) => {
9052
9056
  var I;
9053
- return B.type === z.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(B.name));
9057
+ return b.type === G.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(b.name));
9054
9058
  });
9055
9059
  if (E) {
9056
9060
  const I = S.getGlobalPropertyStateManager().getAspect(E.name);
@@ -9063,12 +9067,14 @@ class bs {
9063
9067
  f,
9064
9068
  async () => {
9065
9069
  e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
9066
- const y = o.map((B) => new Wa(B.id, p)), E = new $(y);
9070
+ const y = o.map((b) => new Wa(b.id, p)), E = new $(y);
9067
9071
  e.getCommandDispatcher()(E);
9068
9072
  }
9069
9073
  ), o.length === 0 && l) {
9074
+ console.log(`LOG: text (${t.stepName}) reload cond`);
9070
9075
  const y = Y.getDefaultVariant(l);
9071
9076
  if (y) {
9077
+ console.log(`LOG: text (${t.stepName}) reload cond default`);
9072
9078
  const E = await this.selectVariantCommand(
9073
9079
  t,
9074
9080
  y,
@@ -9083,6 +9089,7 @@ class bs {
9083
9089
  e.getCommandDispatcher()(E.command);
9084
9090
  }
9085
9091
  } else {
9092
+ console.log(`LOG: text (${t.stepName}) reload noncond`);
9086
9093
  const { command: y } = j.updateInputText(
9087
9094
  w || "",
9088
9095
  o,
@@ -9094,16 +9101,18 @@ class bs {
9094
9101
  }
9095
9102
  }
9096
9103
  } else {
9104
+ console.log(`LOG: text (${t.stepName}) reload else`);
9097
9105
  const m = e.getWorkflowExperience().getBundle();
9098
9106
  if (m && t.globalPropertyAspectConfigurations) {
9099
9107
  const g = (h = m.getGlobalPropertyConfiguration()) == null ? void 0 : h.aspects, p = g == null ? void 0 : g.find((f) => {
9100
9108
  var C;
9101
- 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));
9102
9110
  });
9103
9111
  if (p) {
9104
9112
  const C = m.getGlobalPropertyStateManager().getAspect(p.name);
9105
- if (C)
9113
+ if (console.log(`LOG: text (${t.stepName}) reload else aspect, aspect text ${C}`), C)
9106
9114
  if (o.length === 0 && l) {
9115
+ console.log(`LOG: text (${t.stepName}) reload else aspect text a`);
9107
9116
  const w = Y.getDefaultVariant(l);
9108
9117
  if (w) {
9109
9118
  const S = await this.selectVariantCommand(
@@ -9120,6 +9129,7 @@ class bs {
9120
9129
  e.getCommandDispatcher()(S.command);
9121
9130
  }
9122
9131
  } else {
9132
+ console.log(`LOG: text (${t.stepName}) reload else aspect text b`);
9123
9133
  const { command: w } = j.updateInputText(
9124
9134
  C,
9125
9135
  o,
@@ -9160,7 +9170,7 @@ class bs {
9160
9170
  throw new vt(t);
9161
9171
  const a = e.fileLink;
9162
9172
  if (!a)
9163
- throw new qt(e);
9173
+ throw new Ht(e);
9164
9174
  const n = await Nt(a);
9165
9175
  return {
9166
9176
  assetUrl: a,
@@ -9184,7 +9194,7 @@ class bs {
9184
9194
  }
9185
9195
  const m = await this.changeInputTextWithRegion(
9186
9196
  t,
9187
- t.data.size || qe,
9197
+ t.data.size || He,
9188
9198
  A,
9189
9199
  a.text || "",
9190
9200
  a,
@@ -9209,7 +9219,7 @@ class bs {
9209
9219
  i
9210
9220
  ), m = await this.changeInputTextWithRegion(
9211
9221
  t,
9212
- t.data.size || qe,
9222
+ t.data.size || He,
9213
9223
  A,
9214
9224
  ((u = h[0]) == null ? void 0 : u.newElement.input) || a.text || t.data.defaultText || "",
9215
9225
  a,
@@ -9271,7 +9281,7 @@ class bs {
9271
9281
  stepName: t,
9272
9282
  align: this.textAlign(a),
9273
9283
  fill: i.color ? i.color : w,
9274
- fontSize: a.size || qe,
9284
+ fontSize: a.size || He,
9275
9285
  fontData: n,
9276
9286
  id: m,
9277
9287
  layer: A.layer,
@@ -9290,9 +9300,9 @@ class bs {
9290
9300
  curved: a.curved,
9291
9301
  paths: a.paths,
9292
9302
  fillSpotColorDefinition: f
9293
- }, y = [], E = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
9303
+ }, y = [], E = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
9294
9304
  if (!S.fontData)
9295
- throw new G("Failed to resolve font data for text.");
9305
+ throw new z("Failed to resolve font data for text.");
9296
9306
  const [I, D] = pe(
9297
9307
  S.fontSize,
9298
9308
  S.fontData,
@@ -9307,7 +9317,7 @@ class bs {
9307
9317
  [l],
9308
9318
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9309
9319
  );
9310
- E.set(S.id, I), B.set(S.id, D);
9320
+ E.set(S.id, I), b.set(S.id, D);
9311
9321
  const x = a.curved || a.vertical ? l : (D || []).join(`
9312
9322
  `);
9313
9323
  y.push(
@@ -9326,7 +9336,7 @@ class bs {
9326
9336
  }, d = await Promise.all(a.regions.map(c)).catch((A) => {
9327
9337
  throw A instanceof Ie ? (Es.setLatestToast("Failed to load font.", Re.Error), A) : A instanceof Pe ? A : new Error(A);
9328
9338
  });
9329
- return await s.setSelectionsAndElements(
9339
+ return console.log(`LOG: step (${t}) created ${d.length} new text elements for ${a.regions.length} regions`), await s.setSelectionsAndElements(
9330
9340
  t,
9331
9341
  [e],
9332
9342
  d.map((A) => A.regionElement),
@@ -9368,13 +9378,13 @@ class bs {
9368
9378
  return d && d(!0), { info: "0" };
9369
9379
  const S = s.getProfanities(), y = Ze(u.toLowerCase());
9370
9380
  for (const E of y)
9371
- for (const B in S) {
9372
- const I = S[B].toLowerCase().replace(/\s/g, "");
9381
+ for (const b in S) {
9382
+ const I = S[b].toLowerCase().replace(/\s/g, "");
9373
9383
  if (E === I)
9374
9384
  return l(!0), { error: "Blocked profanity." };
9375
9385
  }
9376
9386
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
9377
- `) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((B) => B) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
9387
+ `) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((b) => b) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
9378
9388
  })();
9379
9389
  if (f.error) {
9380
9390
  c(f.error);
@@ -9401,7 +9411,7 @@ class bs {
9401
9411
  return new $(C);
9402
9412
  }
9403
9413
  }
9404
- const j = new bs();
9414
+ const j = new Bs();
9405
9415
  class Is {
9406
9416
  }
9407
9417
  const Ps = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//A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AD//dABD/pgAR/8kAEv+6ABP/7AAU/90AFf/OADH/xAAy/5IAM//sADT/3QA1/+cANv/xADf/9gA4/90AO/9WADz/5wA9//EAPv/sAD//5wBA/84AQf/dAEL/0wBD/+cARP/nAEX/5wBG/+cAR//dAEj/2ABJ/7oASv/JAEv/4gAsAAb/+wAH//sACP/xAAn/zgAK/+cAC//dAAz/9gAN/9gADv/tAA//7AAQ/+kAEf/rABL/3QAT/90AFP/hABX/3QAW/90AMf/nADL/vwAz/+cANP/nADX/8QA2//EAN//sADj/5wA5//YAOv/2ADv/4gA8//EAPf/2AD7/+wA///sAQP/2AEH/+wBC/+wAQ//7AET/7ABF/9MARv/7AEf/yQBI/84ASf+wAEr/xABL/+cADgAG//sACf/xAAv/7AAN//sADv/7AA8AAAAR//EAEv/0ABP/9gAU//EAFf/xABb/7AAx//YAQP/2ACkABv/7AAf/9gAI//sACf/iAAr/5wAL/+wADP/vAA3/3QAO//sAD//qABD/8QAR/+wAEv/nABP/8QAU/+cAFf/iABb/7AAx/+cAMv/vADP//AA0/+cANf/7ADb//gA4//EAOf/8ADr//AA7/+kAPP/6AD3//QA+//4AP//7AEL/6gBD//0ARP/2AEX/7ABG//EAR//YAEj/4gBJ/+wASv/LAEv//AAsAAb/+wAH//EACP/2AAn/0wAK/+IAC//JAAz/5wAN/90ADv/iAA//7AAQ/+cAEf/sABL/3QAT/9MAFP/iABX/zgAW/+cAMf/YADL/xAAz/+wANP/dADX/6AA2//EAN//xADj/4wA5//EAOv/2ADv/7AA8/+wAPf/sAD7/9gA//+wAQP/iAEH/8QBC/90AQ//nAET/5wBF/8QARv/mAEf/xABI/8kASf+1AEr/rQBL/+IALAAG//sAB//7AAj/9gAJ/9MACv/2AAv/ugAM/+kADf/dAA7/9gAP/+wAEP/2ABH/8AAS//EAE//2ABT/5wAV/9gAFv/sADH/vwAy/9UAM//eADT/3wA1//EANv/xADf/9gA4/+IAOf/xADr/9gA7/+wAPP/xAD3/9gA+//EAP//2AED/2ABB//EAQv/nAEP/9gBE/+cARf/TAEb/8QBH/9gASP/YAEn/xgBK/78AS//xACsABv/7AAf/9gAI/+wACf/TAAr/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/90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7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vAEn/6wBK/+gAS//+AB4ABv/7ABf/8wAa//4AHf/3ACX/9wAq//4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAPP/5AD3/+gA+//EAP//6AED/2gBB/+8AQv/aAET/7wBF/9cARv/qAEf/xgBI/7sASf/qAEr/tABL//sAHQAG/+cAF//oACT/+gAy/+IAM//xADT/zAA1/+8ANv/sADf/+gA4/8wAOf/3ADr/8wA7/8kAPP/uAD3/7wA+/+wAP//rAED/yQBB//cAQv/MAEP/+ABE/9QARf/KAEb/2gBH/8EASP/EAEn/4gBK/7cAS//vAB0ABv/xABv/+QAl/+4AMv+8ADP/7wA0/9wANf/zADb/6AA3//cAOP/hADn/5gA6//MAO//aADz/6QA9//MAPv/pAD//6wBA/+MAQf/3AEL/2gBD/+kARP/rAEX/1ABG/+kAR//JAEj/zABJ/7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U/90AFf/dACT/+wAx/+wAMv+7ADP/9wA0/+QANf/rADb/5wA3//EAOP/kADn/+QA6//YAO//aADz/9wA9//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//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6EAMv/aADP/4wA0/7cANf/4ADb/4wA3//0AOP+3ADn/7gA6/+8AO/+7ADz/7gA9//EAPv/jAD//6ABA/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==", et = (r) => xr("http://www.w3.org/2000/svg", r), Ds = (r, t) => {
@@ -9436,7 +9446,7 @@ function Ms(r, t, e, a) {
9436
9446
  const n = e / r, i = a / t;
9437
9447
  return n > 1 && i > 1 ? Math.min(n, i) : n > 1 && i < 1 ? i : n < 1 && i > 1 ? n : Math.min(n, i);
9438
9448
  }
9439
- const Ha = {
9449
+ const qa = {
9440
9450
  m: ["x", "y"],
9441
9451
  z: [],
9442
9452
  l: ["x", "y"],
@@ -9466,7 +9476,7 @@ class Ts {
9466
9476
  const n = (i) => {
9467
9477
  const s = [], o = i.relative ? i.type : i.type.toUpperCase();
9468
9478
  let l = e !== o;
9469
- const c = Ha[i.type];
9479
+ const c = qa[i.type];
9470
9480
  l && (s.push(o), e = o);
9471
9481
  for (const d of c) {
9472
9482
  const A = i[d];
@@ -9491,7 +9501,7 @@ class Ts {
9491
9501
  const e = /([mzlhvcsqta])([^mzlhvcsqta]*)/gi, a = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, n = [];
9492
9502
  let i;
9493
9503
  for (e.lastIndex = 0; i = e.exec(t); ) {
9494
- const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Ha[s];
9504
+ const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = qa[s];
9495
9505
  if (o.length < c.length)
9496
9506
  throw new xt(
9497
9507
  `Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
@@ -9557,7 +9567,7 @@ class Ns extends Is {
9557
9567
  return this.svgElement(t, e);
9558
9568
  }
9559
9569
  svgElement(t, e) {
9560
- const a = qi(Ps), i = t !== "" ? ((w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
9570
+ const a = Hi(Ps), i = t !== "" ? ((w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
9561
9571
  const w = et("g");
9562
9572
  w.classList.add("module-text-group");
9563
9573
  const S = et("defs");
@@ -9566,8 +9576,8 @@ class Ns extends Is {
9566
9576
  y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
9567
9577
  const E = et("g");
9568
9578
  E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
9569
- const B = et("g");
9570
- B.classList.add("module-layer1"), w.appendChild(B), B.setAttribute("stroke-width", "3"), B.setAttribute("stroke", "rgb(45,41,38)"), B.setAttribute("fill", "rgb(45,41,38)"), B.setAttribute("transform", "translate(0.5,0)"), B.innerHTML = o;
9579
+ const b = et("g");
9580
+ b.classList.add("module-layer1"), w.appendChild(b), b.setAttribute("stroke-width", "3"), b.setAttribute("stroke", "rgb(45,41,38)"), b.setAttribute("fill", "rgb(45,41,38)"), b.setAttribute("transform", "translate(0.5,0)"), b.innerHTML = o;
9571
9581
  const I = et("g");
9572
9582
  I.classList.add("module-layer2"), w.appendChild(I), I.setAttribute("fill", "rgb(255,209,0)"), I.setAttribute("transform", "translate(1,-0.1)"), I.innerHTML = o;
9573
9583
  const D = et("g");
@@ -9588,10 +9598,10 @@ class Ns extends Is {
9588
9598
  return ks(p, C, e.height, e.width, 0.35, 0.65), Fs(u.outerHTML);
9589
9599
  }
9590
9600
  }
9591
- async function qn(r) {
9601
+ async function Hn(r) {
9592
9602
  if (r === "Vegemite")
9593
9603
  return new Ns();
9594
- throw new G(`Failed to resolve Module, Module ${r} not found`);
9604
+ throw new z(`Failed to resolve Module, Module ${r} not found`);
9595
9605
  }
9596
9606
  const ne = v`
9597
9607
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
@@ -9645,7 +9655,7 @@ const ne = v`
9645
9655
  }
9646
9656
  }
9647
9657
  }
9648
- `, _c = async (r) => (await b.getShadowGraphqlClient().query({
9658
+ `, _c = async (r) => (await B.getShadowGraphqlClient().query({
9649
9659
  query: Os,
9650
9660
  fetchPolicy: "cache-first",
9651
9661
  errorPolicy: "all",
@@ -9697,7 +9707,7 @@ const ne = v`
9697
9707
  name
9698
9708
  }
9699
9709
  }
9700
- `, ba = v`
9710
+ `, Ba = v`
9701
9711
  ${$s}
9702
9712
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9703
9713
  id
@@ -9708,7 +9718,7 @@ const ne = v`
9708
9718
  }
9709
9719
  }
9710
9720
  `, re = (r) => v`
9711
- ${r ? ba : ""}
9721
+ ${r ? Ba : ""}
9712
9722
  fragment ProductCollectionFields on ProductCollection {
9713
9723
  id
9714
9724
  name
@@ -9765,7 +9775,7 @@ const ne = v`
9765
9775
  }
9766
9776
  }
9767
9777
  }
9768
- `, Us = (r) => v`
9778
+ `, Ls = (r) => v`
9769
9779
  ${ne}
9770
9780
  ${re(r)}
9771
9781
  query GetBundle($id: String!) {
@@ -9809,7 +9819,7 @@ const ne = v`
9809
9819
  quoteId
9810
9820
  }
9811
9821
  }
9812
- `, qa = v`
9822
+ `, Ha = v`
9813
9823
  query GetBundleStakeholders($id: String!) {
9814
9824
  bundles(ids: [$id]) {
9815
9825
  id
@@ -9854,7 +9864,7 @@ const ne = v`
9854
9864
  }
9855
9865
  }
9856
9866
  }
9857
- `, Ls = v`
9867
+ `, Us = v`
9858
9868
  query GetBundlesForCustomer($id: String!) {
9859
9869
  customers(ids: [$id]) {
9860
9870
  bundleStakeholders {
@@ -9884,7 +9894,7 @@ const ne = v`
9884
9894
  }
9885
9895
  }
9886
9896
  `, Vs = v`
9887
- ${ba}
9897
+ ${Ba}
9888
9898
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
9889
9899
  productCollections(ids: [$id], productIds: $productIds) {
9890
9900
  id
@@ -9893,7 +9903,7 @@ const ne = v`
9893
9903
  }
9894
9904
  }
9895
9905
  }
9896
- `, zs = v`
9906
+ `, Gs = v`
9897
9907
  query GetProductCollectionForFilteredProducts(
9898
9908
  $id: String!
9899
9909
  $filters: ProductCollectionProductFilterInput
@@ -9916,8 +9926,8 @@ const ne = v`
9916
9926
  }
9917
9927
  }
9918
9928
  }
9919
- `, Gs = v`
9920
- ${ba}
9929
+ `, zs = v`
9930
+ ${Ba}
9921
9931
  query GetProductCollectionForProductsFeed(
9922
9932
  $id: String!
9923
9933
  $limit: Int
@@ -10015,7 +10025,7 @@ const ne = v`
10015
10025
  }
10016
10026
  }
10017
10027
  }
10018
- `, Hs = v`
10028
+ `, qs = v`
10019
10029
  mutation UpdateBundle(
10020
10030
  $id: String!
10021
10031
  $name: String
@@ -10035,7 +10045,7 @@ const ne = v`
10035
10045
  id
10036
10046
  }
10037
10047
  }
10038
- `, qs = v`
10048
+ `, Hs = v`
10039
10049
  mutation BundleAddTransaction($id: String!, $transactionId: String!) {
10040
10050
  bundleAddTransaction(id: $id, transactionId: $transactionId) {
10041
10051
  id
@@ -10283,13 +10293,12 @@ class mo {
10283
10293
  var w;
10284
10294
  this.workflowStatePromiseQueue = new xn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10285
10295
  var E;
10286
- if (console.log("LOG: render layouts"), !this.previewService)
10296
+ if (!this.previewService)
10287
10297
  return;
10288
- console.log("LOG: render layouts: service exists");
10289
10298
  const S = this.getCommandContext().getAllLayouts(), y = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
10290
- if (console.log(`LOG: render layouts: ${y == null ? void 0 : y.size} handles`), !!y)
10291
- for (const [, B] of y)
10292
- B.render(S);
10299
+ if (y)
10300
+ for (const [, b] of y)
10301
+ b.render(S);
10293
10302
  }, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = f, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, (w = this.renderableContextService) == null || w.setWorkflowManager(this), this.isReloadedTransaction = p, this.workflow.steps.forEach((S) => {
10294
10303
  this.stepTags[S.stepName] = S.tags ?? [];
10295
10304
  }), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
@@ -10394,7 +10403,7 @@ class mo {
10394
10403
  };
10395
10404
  this.reloadedState && this.reloadedState.serializableWorkflow.steps.forEach((o) => {
10396
10405
  this.storage[o.stepName] = o.storage || {};
10397
- }), this.allScenes = await Ui(t);
10406
+ }), this.allScenes = await Li(t);
10398
10407
  const n = Dt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(n, !!this.reloadedState);
10399
10408
  this.commandContext.apply(new $(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), !this.isReloadedTransaction && this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
10400
10409
  }
@@ -10613,7 +10622,7 @@ class mo {
10613
10622
  const l = o[0];
10614
10623
  if (s.type === P.Model) {
10615
10624
  if (!this.modelContainer)
10616
- throw new G(
10625
+ throw new z(
10617
10626
  "We should always have a model container when injecting a preview!"
10618
10627
  );
10619
10628
  const u = (A = l.asset) == null ? void 0 : A.fileLink;
@@ -10638,7 +10647,7 @@ class mo {
10638
10647
  }
10639
10648
  s.data.targetMaterials.forEach((m) => {
10640
10649
  if (!this.modelContainer)
10641
- throw new G(
10650
+ throw new z(
10642
10651
  "We should always have a model container when injecting a preview!"
10643
10652
  );
10644
10653
  this.modelContainer.applyMaterialVariant(m, s.option.id, u);
@@ -10661,7 +10670,7 @@ class mo {
10661
10670
  };
10662
10671
  if (!on(a, this.storage)) {
10663
10672
  this.storage = a;
10664
- const n = new Ga(this.constructSerializableWorkflow());
10673
+ const n = new za(this.constructSerializableWorkflow());
10665
10674
  this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
10666
10675
  }
10667
10676
  }
@@ -10712,7 +10721,7 @@ class mo {
10712
10721
  serialize() {
10713
10722
  const t = this.getCommandContext().getState();
10714
10723
  if (!t)
10715
- throw new G("Attempted to serialize state before it was initialized.");
10724
+ throw new z("Attempted to serialize state before it was initialized.");
10716
10725
  const e = St(t.transaction), a = this.dehydrateState(e);
10717
10726
  return JSON.stringify(a);
10718
10727
  }
@@ -10811,8 +10820,8 @@ class mo {
10811
10820
  }
10812
10821
  async updateTransactionStakeholders() {
10813
10822
  var e;
10814
- const t = await b.getShadowGraphqlClient().query({
10815
- query: bi,
10823
+ const t = await B.getShadowGraphqlClient().query({
10824
+ query: Bi,
10816
10825
  errorPolicy: "all",
10817
10826
  fetchPolicy: "no-cache",
10818
10827
  variables: {
@@ -10822,7 +10831,7 @@ class mo {
10822
10831
  !((e = t == null ? void 0 : t.data) != null && e.transactions) || t.data.transactions.length !== 1 ? (this.transaction.currentStakeholder = void 0, this.transaction.stakeholders = void 0) : (this.transaction.stakeholders = t.data.transactions[0].stakeholders, this.transaction.currentStakeholder = t.data.transactions[0].currentStakeholder);
10823
10832
  }
10824
10833
  async approveTransaction(t) {
10825
- await b.getShadowGraphqlClient().mutate({
10834
+ await B.getShadowGraphqlClient().mutate({
10826
10835
  mutation: oo,
10827
10836
  errorPolicy: "all",
10828
10837
  fetchPolicy: "no-cache",
@@ -10833,7 +10842,7 @@ class mo {
10833
10842
  });
10834
10843
  }
10835
10844
  async rejectTransaction(t) {
10836
- await b.getShadowGraphqlClient().mutate({
10845
+ await B.getShadowGraphqlClient().mutate({
10837
10846
  mutation: lo,
10838
10847
  errorPolicy: "all",
10839
10848
  fetchPolicy: "no-cache",
@@ -10846,21 +10855,24 @@ class mo {
10846
10855
  async reset() {
10847
10856
  this.commandContext.getAllLayouts().forEach(
10848
10857
  (e) => e.layoutState.elements.forEach((a) => {
10849
- this.getCommandDispatcher()(new Bt(a.id));
10858
+ this.getCommandDispatcher()(new bt(a.id));
10850
10859
  })
10851
10860
  ), this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, await this.ensureStepsAreLoaded();
10852
10861
  }
10862
+ unsetInitialized() {
10863
+ this.stepInitialised = {};
10864
+ }
10853
10865
  async setSelectionsAndElements(t, e, a, n) {
10854
10866
  var y;
10855
10867
  const i = this.stepSelections;
10856
10868
  this.stepSelections = {
10857
10869
  ...this.stepSelections,
10858
10870
  [t]: { selectedVariants: e }
10859
- }, this.selectionCost = Object.values(this.stepSelections).reduce((E, B) => E + B.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, D) => I + D, 0), 0), this.workflow.steps.forEach((E) => {
10871
+ }, this.selectionCost = Object.values(this.stepSelections).reduce((E, b) => E + b.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, D) => I + D, 0), 0), this.workflow.steps.forEach((E) => {
10860
10872
  yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
10861
10873
  });
10862
10874
  const s = this.allScenes, o = Dt(s, i), l = Dt(s, this.stepSelections), c = o.map((E) => E.silentSteps).flat(), A = l.map((E) => E.silentSteps).flat().filter(
10863
- (E) => !c.some((B) => B.stepName === E.stepName)
10875
+ (E) => !c.some((b) => b.stepName === E.stepName)
10864
10876
  );
10865
10877
  c.forEach((E) => {
10866
10878
  yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1);
@@ -10874,15 +10886,15 @@ class mo {
10874
10886
  const g = this.workflow.steps.find((E) => E.stepName === t);
10875
10887
  if ((g == null ? void 0 : g.type) === P.Frame) {
10876
10888
  const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
10877
- E == null || E.setTargetElements(a.map((B) => B.id));
10889
+ E == null || E.setTargetElements(a.map((b) => b.id));
10878
10890
  }
10879
- const p = u.map((E) => new Bt(E.id)), f = new Ga(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10891
+ const p = u.map((E) => new bt(E.id)), f = new za(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10880
10892
  C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10881
10893
  const w = this.getInvalidModelVariants(), S = this.modelContainer;
10882
10894
  if (S) {
10883
10895
  const E = w.map(
10884
- (B) => S.applyModelVariant(
10885
- B,
10896
+ (b) => S.applyModelVariant(
10897
+ b,
10886
10898
  {
10887
10899
  contextService: this.getLayoutPreviewService()
10888
10900
  },
@@ -10896,7 +10908,7 @@ class mo {
10896
10908
  async ensureStepsAreLoaded() {
10897
10909
  const e = Dt(this.allScenes, this.stepSelections).map((l) => l.renderableSteps), a = [], n = e.flat();
10898
10910
  for (const l of n)
10899
- if (!this.stepInitialised[l.stepName])
10911
+ if (l.stepTitle === "Sleeve Message" && console.log(`LOG: is ${l.stepTitle} (${l.stepName}) inited? ${this.stepInitialised[l.stepName]}`), !this.stepInitialised[l.stepName])
10900
10912
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10901
10913
  case P.DigitalContent:
10902
10914
  a.push(
@@ -10917,15 +10929,15 @@ class mo {
10917
10929
  break;
10918
10930
  case P.Material:
10919
10931
  a.push(
10920
- zn.init(l, this, this.reloadedState)
10932
+ Gn.init(l, this, this.reloadedState)
10921
10933
  );
10922
10934
  break;
10923
10935
  case P.Model:
10924
- a.push(Gn.init(l, this, this.reloadedState));
10936
+ a.push(zn.init(l, this, this.reloadedState));
10925
10937
  break;
10926
10938
  case P.Module:
10927
10939
  this.stepSpecificServices[l.stepName] = {
10928
- module: await qn(l.data.module)
10940
+ module: await Hn(l.data.module)
10929
10941
  }, a.push(
10930
10942
  Wn.init(l, this, this.reloadedState)
10931
10943
  );
@@ -10937,14 +10949,14 @@ class mo {
10937
10949
  break;
10938
10950
  case P.Question:
10939
10951
  a.push(
10940
- Hn.init(l, this, this.reloadedState)
10952
+ qn.init(l, this, this.reloadedState)
10941
10953
  );
10942
10954
  break;
10943
10955
  case P.Shape:
10944
- a.push(zt.init(l, this, this.reloadedState));
10956
+ a.push(Gt.init(l, this, this.reloadedState));
10945
10957
  break;
10946
10958
  case P.Text:
10947
- a.push(j.init(l, this, this.reloadedState));
10959
+ console.log("LOG: ensure text loaded"), a.push(j.init(l, this, this.reloadedState));
10948
10960
  break;
10949
10961
  }
10950
10962
  const i = (await Promise.allSettled(a)).map((l) => {
@@ -11004,7 +11016,7 @@ class mo {
11004
11016
  this.validationCallbacks.forEach((t) => t(this.validationErrors));
11005
11017
  }
11006
11018
  traversableScenes() {
11007
- return zi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11019
+ return Gi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11008
11020
  }
11009
11021
  }
11010
11022
  class st {
@@ -11251,7 +11263,7 @@ class go extends it {
11251
11263
  const t = this.manager.getRegionElements(this.step.stepName) || [];
11252
11264
  if (t.length === 0)
11253
11265
  return;
11254
- const a = L(t[0].id, this.manager.getAllLayoutData()).colors, n = (o = this.getCurrentVariant()) == null ? void 0 : o.getAssetResource(), i = n == null ? void 0 : n.assetConfiguration, s = (i == null ? void 0 : i.defaultColorVariants) || [];
11266
+ const a = U(t[0].id, this.manager.getAllLayoutData()).colors, n = (o = this.getCurrentVariant()) == null ? void 0 : o.getAssetResource(), i = n == null ? void 0 : n.assetConfiguration, s = (i == null ? void 0 : i.defaultColorVariants) || [];
11255
11267
  if (s.length !== 0) {
11256
11268
  const l = {};
11257
11269
  return s.forEach((c) => {
@@ -11306,7 +11318,7 @@ class po extends it {
11306
11318
  super(t, e, a);
11307
11319
  }
11308
11320
  selectVariant(t) {
11309
- return zn.selectVariant(
11321
+ return Gn.selectVariant(
11310
11322
  this.step,
11311
11323
  t.getResource(),
11312
11324
  this.manager,
@@ -11319,7 +11331,7 @@ class fo extends it {
11319
11331
  super(t, e, a);
11320
11332
  }
11321
11333
  selectVariant(t) {
11322
- return Gn.selectVariant(
11334
+ return zn.selectVariant(
11323
11335
  this.step,
11324
11336
  t.getResource(),
11325
11337
  this.manager,
@@ -11352,7 +11364,7 @@ class wo extends it {
11352
11364
  async selectVariant(t) {
11353
11365
  if (!t.getId())
11354
11366
  throw new Error("Unable to select variant with a null ID");
11355
- await Hn.selectVariant(this.step, t.getId(), this.manager);
11367
+ await qn.selectVariant(this.step, t.getId(), this.manager);
11356
11368
  }
11357
11369
  /**
11358
11370
  * The way that this step expects to be rendered.
@@ -11368,7 +11380,7 @@ class yo extends it {
11368
11380
  }
11369
11381
  selectVariant(t) {
11370
11382
  const e = t.getResource();
11371
- return zt.selectVariant(
11383
+ return Gt.selectVariant(
11372
11384
  this.step,
11373
11385
  {
11374
11386
  fill: e.color,
@@ -11386,7 +11398,7 @@ class yo extends it {
11386
11398
  * @deprecated The shape step can now pass through colors returned by getColors via selectVariant. Please swap setColor for selectVariant.
11387
11399
  */
11388
11400
  setColor(t) {
11389
- return zt.selectVariant(
11401
+ return Gt.selectVariant(
11390
11402
  this.step,
11391
11403
  t,
11392
11404
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -11398,7 +11410,7 @@ class yo extends it {
11398
11410
  * @returns A list of color definitions that are currently applied to the illustration.
11399
11411
  */
11400
11412
  getColors() {
11401
- return zt.availableColours(this.step);
11413
+ return Gt.availableColours(this.step);
11402
11414
  }
11403
11415
  /**
11404
11416
  * Allows for setting a custom color when the custom variant is selected. Will
@@ -11406,7 +11418,7 @@ class yo extends it {
11406
11418
  */
11407
11419
  setCustomColor(t) {
11408
11420
  var e, a;
11409
- 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);
11421
+ 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);
11410
11422
  }
11411
11423
  getCustomColor() {
11412
11424
  var e, a, n;
@@ -11514,7 +11526,9 @@ class So extends it {
11514
11526
  helperData: {}
11515
11527
  }, a = j.findLayoutElements(this.manager, this.step), n = j.filterUnsupportedCharacters(t, (d = a[0]) == null ? void 0 : d.fontData), i = !!this.step.data && !!this.step.data.maxLength && n.length > this.step.data.maxLength;
11516
11528
  i || (e.input = n);
11517
- const s = a.length <= 0, o = s ? { inputText: n, text: n } : { inputText: n };
11529
+ const s = a.length <= 0;
11530
+ console.log(`LOG: setting text ${t} to ${a.length} regions`);
11531
+ const o = s ? { inputText: n, text: n } : { inputText: n };
11518
11532
  this.manager.updateStorage(this.step.stepName, o);
11519
11533
  const l = this.manager.getStepStorage(this.step.stepName), c = j.getProcessedInput(
11520
11534
  n,
@@ -11658,7 +11672,7 @@ class Eo extends it {
11658
11672
  );
11659
11673
  }
11660
11674
  }
11661
- class Bo extends it {
11675
+ class bo extends it {
11662
11676
  constructor(t, e, a) {
11663
11677
  super(t, e, a);
11664
11678
  }
@@ -11730,9 +11744,9 @@ class ce {
11730
11744
  case P.Frame:
11731
11745
  return new Ql(t, e, t.getStepTags(e.stepName));
11732
11746
  case P.Module:
11733
- return new Bo(t, e, t.getStepTags(e.stepName));
11747
+ return new bo(t, e, t.getStepTags(e.stepName));
11734
11748
  default:
11735
- throw new G(`Step type ${e.type} not yet supported in Core SDK`);
11749
+ throw new z(`Step type ${e.type} not yet supported in Core SDK`);
11736
11750
  }
11737
11751
  }
11738
11752
  }
@@ -11761,7 +11775,7 @@ const Jn = v`
11761
11775
  externalProductVariantId
11762
11776
  }
11763
11777
  }
11764
- `, bo = v`
11778
+ `, Bo = v`
11765
11779
  ${Jn}
11766
11780
  mutation CreateDesign(
11767
11781
  $name: String!
@@ -11825,8 +11839,8 @@ const Po = async (r, t) => {
11825
11839
  const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
11826
11840
  c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
11827
11841
  }
11828
- return (i = (await b.getShadowGraphqlClient().mutate({
11829
- mutation: bo,
11842
+ return (i = (await B.getShadowGraphqlClient().mutate({
11843
+ mutation: Bo,
11830
11844
  errorPolicy: "all",
11831
11845
  fetchPolicy: "no-cache",
11832
11846
  variables: {
@@ -11856,7 +11870,7 @@ const Po = async (r, t) => {
11856
11870
  const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
11857
11871
  c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
11858
11872
  }
11859
- return (i = (await b.getShadowGraphqlClient().mutate({
11873
+ return (i = (await B.getShadowGraphqlClient().mutate({
11860
11874
  mutation: Io,
11861
11875
  errorPolicy: "all",
11862
11876
  fetchPolicy: "no-cache",
@@ -11963,7 +11977,7 @@ const Po = async (r, t) => {
11963
11977
  if (c !== void 0)
11964
11978
  return c;
11965
11979
  await r.outstandingRequestsPromise();
11966
- const x = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await b.getShadowGraphqlClient().query({
11980
+ const x = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await B.getShadowGraphqlClient().query({
11967
11981
  query: In,
11968
11982
  variables: { ids: [n.id] },
11969
11983
  fetchPolicy: "no-cache",
@@ -11983,22 +11997,22 @@ const Po = async (r, t) => {
11983
11997
  for (const T of Object.keys(i)) {
11984
11998
  const nt = i[T], R = t.steps.find((tt) => tt.stepName === T);
11985
11999
  for (let tt = 0; tt < nt.selections.length; ++tt) {
11986
- const H = nt.selections[tt];
12000
+ const q = nt.selections[tt];
11987
12001
  if (R && (!D || R.option && (R.option.variants || []).length > 1 && !R.data.hideSelectionInCart && !R.data.hideSelectionsInCart)) {
11988
12002
  const ft = R.stepTitle;
11989
12003
  x[ft] ? x[ft].push({
11990
- id: H.id || "",
11991
- name: H.name,
11992
- priceModifier: H.priceModifier
12004
+ id: q.id || "",
12005
+ name: q.name,
12006
+ priceModifier: q.priceModifier
11993
12007
  }) : x[ft] = [
11994
12008
  {
11995
- id: H.id || "",
11996
- name: H.name,
11997
- priceModifier: H.priceModifier
12009
+ id: q.id || "",
12010
+ name: q.name,
12011
+ priceModifier: q.priceModifier
11998
12012
  }
11999
12013
  ];
12000
12014
  }
12001
- k += H.priceModifier;
12015
+ k += q.priceModifier;
12002
12016
  }
12003
12017
  }
12004
12018
  return [x, k];
@@ -12013,7 +12027,7 @@ const Po = async (r, t) => {
12013
12027
  let E = await o(m, n.id);
12014
12028
  if (E) {
12015
12029
  const D = await (await rt(E)).blob();
12016
- E = (await U.uploadAsset(
12030
+ E = (await L.uploadAsset(
12017
12031
  { name: `${n.id}-preview-image.png`, blob: D },
12018
12032
  Ce.Image,
12019
12033
  !0,
@@ -12088,7 +12102,7 @@ const Po = async (r, t) => {
12088
12102
  );
12089
12103
  const n = await (async () => {
12090
12104
  var c;
12091
- const l = await b.getShadowGraphqlClient().query({
12105
+ const l = await B.getShadowGraphqlClient().query({
12092
12106
  query: In,
12093
12107
  variables: { ids: r.map((d) => d.transaction.id) },
12094
12108
  fetchPolicy: "no-cache",
@@ -12154,7 +12168,7 @@ class Mo {
12154
12168
  const t = N.get(this.localPersistenceKey);
12155
12169
  return t ? JSON.parse(t) : [];
12156
12170
  }
12157
- throw new G("Unexpected storage method requested");
12171
+ throw new z("Unexpected storage method requested");
12158
12172
  }
12159
12173
  /**
12160
12174
  * Search for a transaction that has been saved.
@@ -12194,7 +12208,7 @@ class Mo {
12194
12208
  N.set(this.localPersistenceKey, JSON.stringify(t));
12195
12209
  return;
12196
12210
  }
12197
- throw new G("Unexpected storage method requested");
12211
+ throw new z("Unexpected storage method requested");
12198
12212
  }
12199
12213
  }
12200
12214
  const Ye = new Mo(), To = v`
@@ -12371,7 +12385,7 @@ class Oo {
12371
12385
  throw new xe("Failed to obtain 2D context for preview image creation");
12372
12386
  const m = Sa(u.layoutState.layout, u.layoutState.elements, {
12373
12387
  renderingConfiguration: {
12374
- purpose: Ht.Print,
12388
+ purpose: qt.Print,
12375
12389
  region: { left: A.x, top: A.y, width: A.width, height: A.height },
12376
12390
  templatingContext: this.workflowManager.getTemplatingContext()
12377
12391
  }
@@ -12544,7 +12558,7 @@ class Oo {
12544
12558
  }
12545
12559
  async save(t) {
12546
12560
  if (!this.getCommandContext().getState())
12547
- throw new G("State undefined!");
12561
+ throw new z("State undefined!");
12548
12562
  const n = {
12549
12563
  title: await (async () => {
12550
12564
  var l;
@@ -12567,10 +12581,10 @@ class Oo {
12567
12581
  var s;
12568
12582
  const t = St(this.getCommandContext().getState());
12569
12583
  if (!t)
12570
- throw new G("Internal state is undefined! Cannot copy experience!");
12584
+ throw new z("Internal state is undefined! Cannot copy experience!");
12571
12585
  const e = JSON.stringify(t.transaction), a = this.getWorkflowManager().getWorkflow(), n = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
12572
12586
  if (!n)
12573
- throw new G("Integration product id is undefined!");
12587
+ throw new z("Integration product id is undefined!");
12574
12588
  return await this.getClient().getWorkflowExperience({
12575
12589
  type: "integration",
12576
12590
  integrationProductId: n,
@@ -12681,7 +12695,7 @@ const $o = [
12681
12695
  "textPath",
12682
12696
  "tref",
12683
12697
  "tspan"
12684
- ], Uo = async (r, t, e) => {
12698
+ ], Lo = async (r, t, e) => {
12685
12699
  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);
12686
12700
  o.searchParams.append("video", Qa(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12687
12701
  const l = o.toString(), d = `data:image/svg+xml;base64,${Qa(await sn(l, { type: "svg" }))}`, A = (h) => {
@@ -12708,7 +12722,7 @@ const $o = [
12708
12722
  } catch (h) {
12709
12723
  return console.error(h), [];
12710
12724
  }
12711
- }, Lo = async (r, t, e, a) => {
12725
+ }, Uo = async (r, t, e, a) => {
12712
12726
  const n = e.data, i = n.assetUrl, s = await sa(i);
12713
12727
  try {
12714
12728
  const o = is(n, a.option);
@@ -12771,7 +12785,7 @@ const $o = [
12771
12785
  const n = e.data, i = a.option;
12772
12786
  if (!i)
12773
12787
  return console.error(`No option for step ${a.stepName}.`), [];
12774
- const s = ((y = i.variants) == null ? void 0 : y.find((B) => B.id === n.illustrationVariantId)) || ae(i);
12788
+ const s = ((y = i.variants) == null ? void 0 : y.find((b) => b.id === n.illustrationVariantId)) || ae(i);
12775
12789
  if (!s)
12776
12790
  return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
12777
12791
  if (!s.asset)
@@ -12785,32 +12799,32 @@ const $o = [
12785
12799
  return console.error("Failed to read SVG."), [];
12786
12800
  pa(m);
12787
12801
  const g = {};
12788
- kt(m, (B) => {
12789
- $o.includes(B.tagName) && !B.attributes.getNamedItem("fill") && B.setAttribute("fill", "#000000");
12790
- const I = B.attributes.getNamedItem("fill");
12802
+ kt(m, (b) => {
12803
+ $o.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12804
+ const I = b.attributes.getNamedItem("fill");
12791
12805
  if (I && I.value !== "none") {
12792
12806
  const x = I.value, T = `spiff-fill-${x.replace(/\W/g, "")}`;
12793
- B.classList.add(T), g[T] = { browserValue: x };
12807
+ b.classList.add(T), g[T] = { browserValue: x };
12794
12808
  }
12795
- const D = B.attributes.getNamedItem("stroke");
12809
+ const D = b.attributes.getNamedItem("stroke");
12796
12810
  if (D && D.value !== "none") {
12797
12811
  const x = D.value, T = `spiff-stroke-${x.replace(/\W/g, "")}`;
12798
- B.classList.add(T), g[T] = { browserValue: x };
12812
+ b.classList.add(T), g[T] = { browserValue: x };
12799
12813
  }
12800
12814
  });
12801
- const f = bt().serializeToString(m), C = n.colors;
12815
+ const f = Bt().serializeToString(m), C = n.colors;
12802
12816
  if (C) {
12803
- for (const [B, I] of Object.entries(g))
12817
+ for (const [b, I] of Object.entries(g))
12804
12818
  for (const D of Object.keys(C))
12805
12819
  if (I.browserValue === D) {
12806
- g[B] = { browserValue: C[D] };
12820
+ g[b] = { browserValue: C[D] };
12807
12821
  break;
12808
12822
  }
12809
12823
  }
12810
- const w = (B) => {
12811
- const I = r.find((x) => x.panelId === B.panelId);
12824
+ const w = (b) => {
12825
+ const I = r.find((x) => x.panelId === b.panelId);
12812
12826
  if (!I)
12813
- throw new J(B);
12827
+ throw new J(b);
12814
12828
  const D = Q();
12815
12829
  return new W(
12816
12830
  {
@@ -12818,25 +12832,25 @@ const $o = [
12818
12832
  id: D,
12819
12833
  svg: f,
12820
12834
  type: M.Illustration,
12821
- y: B.top,
12822
- x: B.left,
12823
- rotation: B.rotation,
12824
- width: B.width,
12825
- height: B.height,
12826
- layer: B.layer,
12827
- layerIndex: B.layerIndex,
12828
- immutable: B.immutable
12835
+ y: b.top,
12836
+ x: b.left,
12837
+ rotation: b.rotation,
12838
+ width: b.width,
12839
+ height: b.height,
12840
+ layer: b.layer,
12841
+ layerIndex: b.layerIndex,
12842
+ immutable: b.immutable
12829
12843
  },
12830
12844
  I
12831
12845
  );
12832
12846
  }, S = a.data.regions;
12833
12847
  try {
12834
12848
  return S.map(w);
12835
- } catch (B) {
12836
- return console.error(B), [];
12849
+ } catch (b) {
12850
+ return console.error(b), [];
12837
12851
  }
12838
- }, zo = async (r, t, e) => {
12839
- const a = await qn(e.data.module), n = t.data, i = (o, l) => {
12852
+ }, Go = async (r, t, e) => {
12853
+ const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
12840
12854
  const c = r.find((A) => A.panelId === l.panelId);
12841
12855
  if (!c)
12842
12856
  throw new J(l);
@@ -12865,7 +12879,7 @@ const $o = [
12865
12879
  } catch (o) {
12866
12880
  return console.error(o), [];
12867
12881
  }
12868
- }, Go = async (r, t, e, a) => {
12882
+ }, zo = async (r, t, e, a) => {
12869
12883
  var d, A;
12870
12884
  const n = e.data, i = a.option;
12871
12885
  if (!i)
@@ -13002,7 +13016,7 @@ const $o = [
13002
13016
  const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = (h == null ? void 0 : h.length) > 0 ? h[0] : "", f = dt().parseFromString(m, "image/svg+xml").firstElementChild;
13003
13017
  if (!f)
13004
13018
  throw new xt("Failed to read SVG.");
13005
- return pa(f), bt().serializeToString(f);
13019
+ return pa(f), Bt().serializeToString(f);
13006
13020
  };
13007
13021
  l.forEach((A) => {
13008
13022
  const u = r.find((m) => m.panelId === A.panelId);
@@ -13031,7 +13045,7 @@ const $o = [
13031
13045
  });
13032
13046
  }
13033
13047
  return a;
13034
- }, Ho = async (r, t, e, a) => {
13048
+ }, qo = async (r, t, e, a) => {
13035
13049
  const n = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
13036
13050
  var w;
13037
13051
  const p = a.option;
@@ -13053,7 +13067,7 @@ const $o = [
13053
13067
  assetUrl: p,
13054
13068
  name: f.names.fullName.en
13055
13069
  };
13056
- })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Be(A, {
13070
+ })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = be(A, {
13057
13071
  vertical: a.data.vertical,
13058
13072
  uppercase: a.data.uppercase
13059
13073
  }), h = async (p) => {
@@ -13094,7 +13108,7 @@ const $o = [
13094
13108
  d,
13095
13109
  p,
13096
13110
  [
13097
- Be(u, {
13111
+ be(u, {
13098
13112
  vertical: a.data.vertical,
13099
13113
  uppercase: a.data.uppercase
13100
13114
  })
@@ -13120,7 +13134,7 @@ const $o = [
13120
13134
  n.push(new W(C, f));
13121
13135
  }
13122
13136
  return n;
13123
- }, qo = (r, t) => r.conditions ? r.conditions.every((e) => {
13137
+ }, Ho = (r, t) => r.conditions ? r.conditions.every((e) => {
13124
13138
  const a = t[e.targetStepName];
13125
13139
  if (a && a.selectedVariants) {
13126
13140
  const n = a.selectedVariants;
@@ -13137,13 +13151,13 @@ const $o = [
13137
13151
  switch (o.type) {
13138
13152
  case P.DigitalContent:
13139
13153
  n.push(
13140
- ...await Uo(e, s, o)
13154
+ ...await Lo(e, s, o)
13141
13155
  );
13142
13156
  break;
13143
13157
  case P.Frame:
13144
13158
  case P.Photo:
13145
13159
  n.push(
13146
- ...await Lo(e, i, s, o)
13160
+ ...await Uo(e, i, s, o)
13147
13161
  );
13148
13162
  break;
13149
13163
  case P.Illustration:
@@ -13157,11 +13171,11 @@ const $o = [
13157
13171
  );
13158
13172
  break;
13159
13173
  case P.Module:
13160
- n.push(...await zo(e, s, o));
13174
+ n.push(...await Go(e, s, o));
13161
13175
  break;
13162
13176
  case P.Picture:
13163
13177
  n.push(
13164
- ...await Go(e, i, s, o)
13178
+ ...await zo(e, i, s, o)
13165
13179
  );
13166
13180
  break;
13167
13181
  case P.Shape:
@@ -13171,13 +13185,13 @@ const $o = [
13171
13185
  break;
13172
13186
  case P.Text:
13173
13187
  n.push(
13174
- ...await Ho(e, i, s, o)
13188
+ ...await qo(e, i, s, o)
13175
13189
  );
13176
13190
  break;
13177
13191
  }
13178
13192
  }
13179
13193
  for (const s of t.steps)
13180
- s.type !== P.SilentIllustration && s.type !== P.ProductOverlay || qo(s, i) && n.push(
13194
+ s.type !== P.SilentIllustration && s.type !== P.ProductOverlay || Ho(s, i) && n.push(
13181
13195
  ...await jo(e, s, a)
13182
13196
  );
13183
13197
  return n;
@@ -13345,7 +13359,7 @@ class Zo extends Dn {
13345
13359
  l = i.width, c = i.height;
13346
13360
  const d = Sa(t.layoutState.layout, e, {
13347
13361
  renderingConfiguration: {
13348
- purpose: Ht.ThreeD,
13362
+ purpose: qt.ThreeD,
13349
13363
  templatingContext: (m = (h = this.getWorkflowManager) == null ? void 0 : h.call(this)) == null ? void 0 : m.getTemplatingContext()
13350
13364
  }
13351
13365
  }), A = un(d), u = await Aa.from(this.ctx, A, {
@@ -13379,7 +13393,7 @@ const Xc = (r, t) => {
13379
13393
  serializableWorkflow: { steps: [] },
13380
13394
  layouts: {}
13381
13395
  };
13382
- n = new $(e.map((l) => new Un(l))).apply(n);
13396
+ n = new $(e.map((l) => new Ln(l))).apply(n);
13383
13397
  const s = await Yo(r, t, e, a);
13384
13398
  return new $(s).apply(n);
13385
13399
  };
@@ -13427,19 +13441,19 @@ class tl {
13427
13441
  }
13428
13442
  async createHandle(t) {
13429
13443
  switch (t.type) {
13430
- case z.FileUpload:
13444
+ case G.FileUpload:
13431
13445
  return new el(this.bundle, t).initialize();
13432
- case z.ColorOption:
13446
+ case G.ColorOption:
13433
13447
  return new Ja(
13434
13448
  this.bundle,
13435
13449
  t,
13436
13450
  t.entityId ? await Y.getOption(t.entityId) : void 0
13437
13451
  );
13438
- case z.Option: {
13452
+ case G.Option: {
13439
13453
  const e = t.entityId ? await Y.getOption(t.entityId) : void 0;
13440
13454
  return (e == null ? void 0 : e.type) === "Color" ? new Ja(this.bundle, t, e) : new Xn(this.bundle, t, e);
13441
13455
  }
13442
- case z.Text:
13456
+ case G.Text:
13443
13457
  return new al(this.bundle, t);
13444
13458
  default:
13445
13459
  throw new Error("Unhandled Global Property Aspect Type");
@@ -13484,18 +13498,16 @@ class Ia {
13484
13498
  * Returns all steps that share this property.
13485
13499
  * @param targetExperiences Optionally filter the steps to only those in the given experiences.
13486
13500
  */
13487
- getSharedSteps(t) {
13488
- return (t ?? this.bundle.getWorkflowExperiences()).flatMap(
13489
- (n) => n.getStepsConditionallyActive().filter((i) => {
13490
- var s;
13491
- return i.getOverrideGlobalPropertyConfiguration(this.property.type) ? !1 : (s = i.getRaw().globalPropertyAspectConfigurations) == null ? void 0 : s.some(
13492
- (o) => {
13493
- var l, c;
13494
- return o.globalPropertyConfigurationId === ((c = (l = this.bundle.getProductCollection()) == null ? void 0 : l.getResource().globalPropertyConfiguration) == null ? void 0 : c.id) && o.aspectName === this.property.name;
13495
- }
13496
- );
13497
- })
13498
- );
13501
+ getSharedSteps(t, e) {
13502
+ return (t ?? this.bundle.getWorkflowExperiences()).flatMap((i) => (e ? i.getSteps() : i.getStepsConditionallyActive()).filter((o) => {
13503
+ var l;
13504
+ return o.getOverrideGlobalPropertyConfiguration(this.property.type) ? !1 : (l = o.getRaw().globalPropertyAspectConfigurations) == null ? void 0 : l.some(
13505
+ (c) => {
13506
+ var d, A;
13507
+ return c.globalPropertyConfigurationId === ((A = (d = this.bundle.getProductCollection()) == null ? void 0 : d.getResource().globalPropertyConfiguration) == null ? void 0 : A.id) && c.aspectName === this.property.name;
13508
+ }
13509
+ );
13510
+ }));
13499
13511
  }
13500
13512
  getStateValue() {
13501
13513
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
@@ -13514,7 +13526,7 @@ class el extends Ia {
13514
13526
  const t = await this.getImage();
13515
13527
  if (t != null && t.fileLink)
13516
13528
  if (t != null && t.fileLink.endsWith(".svg")) {
13517
- const a = await at(t == null ? void 0 : t.fileLink), n = await Ba(t == null ? void 0 : t.fileLink), i = n.width, s = n.height, o = await lt(a), l = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13529
+ const a = await at(t == null ? void 0 : t.fileLink), n = await ba(t == null ? void 0 : t.fileLink), i = n.width, s = n.height, o = await lt(a), l = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13518
13530
  (e = l == null ? void 0 : l.colors) == null || e.forEach((d) => {
13519
13531
  o.colors[d.key] = {
13520
13532
  browserValue: d.browserValue,
@@ -13567,7 +13579,7 @@ class el extends Ia {
13567
13579
  const e = await this.getOriginalImage();
13568
13580
  if (!e)
13569
13581
  throw new Error("You must supply an image selection before attempting to remove the background.");
13570
- const a = this.bundle.getGlobalPropertyStateManager(), n = await U.removeBackgroundFromAsset(e), s = {
13582
+ const a = this.bundle.getGlobalPropertyStateManager(), n = await L.removeBackgroundFromAsset(e), s = {
13571
13583
  ...a.getAspectStorage(this.property.name),
13572
13584
  backgroundRemovedAssetKey: n.key,
13573
13585
  useOriginalAsset: !t
@@ -13587,7 +13599,7 @@ class el extends Ia {
13587
13599
  async getImage() {
13588
13600
  const t = this.getStateValue();
13589
13601
  if (t)
13590
- return U.getLocalOrFromServer(t);
13602
+ return L.getLocalOrFromServer(t);
13591
13603
  }
13592
13604
  async getImageWithColors() {
13593
13605
  var t, e;
@@ -13600,7 +13612,7 @@ class el extends Ia {
13600
13612
  async getOriginalImage() {
13601
13613
  const t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13602
13614
  if (t != null && t.originalAssetKey)
13603
- return U.getLocalOrFromServer(t.originalAssetKey);
13615
+ return L.getLocalOrFromServer(t.originalAssetKey);
13604
13616
  }
13605
13617
  /**
13606
13618
  * Retrieves the version of the image selection that has the background removed, if one exists.
@@ -13609,7 +13621,7 @@ class el extends Ia {
13609
13621
  async getBackgroundRemovedImage() {
13610
13622
  const t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13611
13623
  if (t != null && t.backgroundRemovedAssetKey)
13612
- return U.getLocalOrFromServer(t.backgroundRemovedAssetKey);
13624
+ return L.getLocalOrFromServer(t.backgroundRemovedAssetKey);
13613
13625
  }
13614
13626
  getUseOriginalImage() {
13615
13627
  var t;
@@ -13641,26 +13653,26 @@ class el extends Ia {
13641
13653
  }
13642
13654
  o.push(this.loadImageData()), await Promise.all(o), this.updateSharedStepStorage(i);
13643
13655
  }
13644
- async applyGlobalState(t) {
13645
- const e = this.getStateValue();
13646
- if (!e)
13647
- return;
13648
- const a = await U.getLocalOrFromServer(e);
13656
+ async applyGlobalState(t, e) {
13657
+ const a = this.getStateValue();
13649
13658
  if (!a)
13650
13659
  return;
13651
- await this.applyImageSelection(a, t, !1, !0);
13652
- const n = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13653
- if (n) {
13654
- if (this.updateSharedStepStorage({ ...n }), n.colors) {
13655
- const i = new Map(
13656
- n.colors.map((s) => [s.key, { browserValue: s.browserValue, pmsValue: s.pmsValue }]) ?? []
13660
+ const n = await L.getLocalOrFromServer(a);
13661
+ if (!n)
13662
+ return;
13663
+ await this.applyImageSelection(n, t, !1, !0);
13664
+ const i = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13665
+ if (i) {
13666
+ if (this.updateSharedStepStorage({ ...i }), i.colors) {
13667
+ const s = new Map(
13668
+ i.colors.map((o) => [o.key, { browserValue: o.browserValue, pmsValue: o.pmsValue }]) ?? []
13657
13669
  );
13658
- this.getSharedSteps(t).forEach((s) => {
13659
- s.changeColors(i);
13670
+ this.getSharedSteps(t, e).forEach((o) => {
13671
+ o.changeColors(s);
13660
13672
  });
13661
13673
  }
13662
13674
  } else
13663
- this.updateSharedStepStorage({ originalAssetKey: e }), await this.bundle.getGlobalPropertyStateManager().setAspectStorage(this.property.name, { originalAssetKey: e });
13675
+ this.updateSharedStepStorage({ originalAssetKey: a }), await this.bundle.getGlobalPropertyStateManager().setAspectStorage(this.property.name, { originalAssetKey: a });
13664
13676
  }
13665
13677
  getAvailableColors() {
13666
13678
  var t, e, a, n;
@@ -13687,22 +13699,22 @@ class el extends Ia {
13687
13699
  var e;
13688
13700
  return (e = this.imageData) != null && e.svg ? (await lt(this.imageData.svg)).colors : void 0;
13689
13701
  }
13690
- async changeColors(t) {
13691
- var i;
13692
- if (!((i = this.imageData) != null && i.svg))
13702
+ async changeColors(t, e) {
13703
+ var s;
13704
+ if (!((s = this.imageData) != null && s.svg))
13693
13705
  return;
13694
- const e = this.getSharedSteps(), a = new Map(Object.entries(t));
13695
- e.forEach((s) => {
13696
- s.changeColors(a);
13706
+ const a = this.getSharedSteps(void 0, e), n = new Map(Object.entries(t));
13707
+ a.forEach((o) => {
13708
+ o.changeColors(n);
13697
13709
  });
13698
- const n = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13710
+ const i = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
13699
13711
  await Promise.all([
13700
13712
  this.bundle.getGlobalPropertyStateManager().setAspectStorage(this.property.name, {
13701
- ...n,
13702
- colors: Object.entries(t).map(([s, o]) => ({
13703
- key: s,
13704
- browserValue: o.browserValue,
13705
- pmsValue: o.pmsValue
13713
+ ...i,
13714
+ colors: Object.entries(t).map(([o, l]) => ({
13715
+ key: o,
13716
+ browserValue: l.browserValue,
13717
+ pmsValue: l.pmsValue
13706
13718
  }))
13707
13719
  }),
13708
13720
  await this.loadImageData()
@@ -13752,10 +13764,10 @@ class al extends Ia {
13752
13764
  /**
13753
13765
  * Set the text.
13754
13766
  */
13755
- async setText(t) {
13767
+ async setText(t, e) {
13756
13768
  await Promise.all([
13757
13769
  this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t),
13758
- this.applyTextSelection(t)
13770
+ this.applyTextSelection(t, void 0, e)
13759
13771
  ]);
13760
13772
  }
13761
13773
  async applyGlobalState(t) {
@@ -13764,11 +13776,11 @@ class al extends Ia {
13764
13776
  return Promise.resolve();
13765
13777
  await this.applyTextSelection(e, t);
13766
13778
  }
13767
- async applyTextSelection(t, e) {
13768
- const n = this.getSharedSteps(e).map((i) => {
13769
- i.setText(t);
13779
+ async applyTextSelection(t, e, a) {
13780
+ const i = this.getSharedSteps(e, a).map((s) => {
13781
+ s.setText(t);
13770
13782
  });
13771
- await Promise.all(n);
13783
+ await Promise.all(i);
13772
13784
  }
13773
13785
  }
13774
13786
  class Xn extends Ia {
@@ -13827,10 +13839,10 @@ class Xn extends Ia {
13827
13839
  * Select a given variant on the option for all shared steps.
13828
13840
  * @param variant The variant to select.
13829
13841
  */
13830
- async selectVariant(t, e) {
13842
+ async selectVariant(t, e, a) {
13831
13843
  await Promise.all([
13832
13844
  this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t.getId(), void 0, e),
13833
- this.applyVariantSelection(t)
13845
+ this.applyVariantSelection(t, void 0, a)
13834
13846
  ]);
13835
13847
  }
13836
13848
  async applyGlobalState(t) {
@@ -13841,9 +13853,9 @@ class Xn extends Ia {
13841
13853
  const a = (i = (n = this.optionResource) == null ? void 0 : n.variants) == null ? void 0 : i.find((s) => s.id === e);
13842
13854
  return a ? this.applyVariantSelection(new st(a), t) : Promise.resolve();
13843
13855
  }
13844
- async applyVariantSelection(t, e) {
13845
- const n = this.getSharedSteps(e).map((i) => i.selectVariant(t));
13846
- await Promise.all(n);
13856
+ async applyVariantSelection(t, e, a) {
13857
+ const i = this.getSharedSteps(e, a).map((s) => s.selectVariant(t));
13858
+ await Promise.all(i);
13847
13859
  }
13848
13860
  }
13849
13861
  class Ja extends Xn {
@@ -13892,8 +13904,8 @@ class Ja extends Xn {
13892
13904
  /**
13893
13905
  * Sets a custom color on the global state.
13894
13906
  */
13895
- setCustomColor(t) {
13896
- this.getSharedSteps().forEach((a) => a.setCustomColor(t)), this.bundle.getGlobalPropertyStateManager().setAspectStorage(this.property.name, { customColor: t });
13907
+ setCustomColor(t, e) {
13908
+ this.getSharedSteps(void 0, e).forEach((n) => n.setCustomColor(t)), this.bundle.getGlobalPropertyStateManager().setAspectStorage(this.property.name, { customColor: t });
13897
13909
  }
13898
13910
  /**
13899
13911
  * Gets the custom color used by the global state.
@@ -14031,23 +14043,24 @@ class il {
14031
14043
  var e, a;
14032
14044
  if (!this.globalPropertyState)
14033
14045
  throw new Error("Global property state not initialized");
14034
- const t = await b.getShadowGraphqlClient().mutate({
14046
+ const t = await B.getShadowGraphqlClient().mutate({
14035
14047
  mutation: Rs,
14036
14048
  variables: {
14037
14049
  id: this.globalPropertyState.id,
14038
14050
  aspects: this.globalPropertyState.aspects.map((n) => {
14051
+ console.log(`LOG: hitting gql for aspect ${n.name} with value ${n.value}`);
14039
14052
  let i = n.type && n.storage ? {} : void 0;
14040
14053
  if (i)
14041
14054
  switch (n.type) {
14042
- case z.FileUpload: {
14055
+ case G.FileUpload: {
14043
14056
  i.fileUpload = n.storage;
14044
14057
  break;
14045
14058
  }
14046
- case z.Option: {
14059
+ case G.Option: {
14047
14060
  i.option = n.storage;
14048
14061
  break;
14049
14062
  }
14050
- case z.ColorOption: {
14063
+ case G.ColorOption: {
14051
14064
  i = n.storage;
14052
14065
  break;
14053
14066
  }
@@ -14075,7 +14088,7 @@ class il {
14075
14088
  }
14076
14089
  async createGlobalPropertyState() {
14077
14090
  var e, a;
14078
- const t = await b.getShadowGraphqlClient().mutate({
14091
+ const t = await B.getShadowGraphqlClient().mutate({
14079
14092
  mutation: Qs,
14080
14093
  variables: {
14081
14094
  bundleId: this.bundleId
@@ -14213,7 +14226,7 @@ class ll {
14213
14226
  async ensureIdsArePresent(t) {
14214
14227
  if (t.every((a) => this.internalMap.has(a)))
14215
14228
  return;
14216
- const e = await b.getShadowGraphqlClient().query({
14229
+ const e = await B.getShadowGraphqlClient().query({
14217
14230
  query: ol,
14218
14231
  errorPolicy: "all",
14219
14232
  variables: {
@@ -14301,7 +14314,7 @@ class Zn {
14301
14314
  async fetchProducts(t) {
14302
14315
  if (this.fullFetched)
14303
14316
  return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
14304
- const e = await b.getShadowGraphqlClient().query({
14317
+ const e = await B.getShadowGraphqlClient().query({
14305
14318
  query: Vs,
14306
14319
  variables: {
14307
14320
  id: this.getId(),
@@ -14318,8 +14331,8 @@ class Zn {
14318
14331
  */
14319
14332
  async filterProducts(t, e, a, n) {
14320
14333
  var l, c;
14321
- const i = await b.getShadowGraphqlClient().query({
14322
- query: zs,
14334
+ const i = await B.getShadowGraphqlClient().query({
14335
+ query: Gs,
14323
14336
  errorPolicy: "all",
14324
14337
  variables: {
14325
14338
  id: this.getId(),
@@ -14358,8 +14371,8 @@ class Zn {
14358
14371
  items: d.slice(t, t + e)
14359
14372
  };
14360
14373
  }
14361
- const o = new AbortController(), { signal: l } = o, c = b.getShadowGraphqlClient().watchQuery({
14362
- query: Gs,
14374
+ const o = new AbortController(), { signal: l } = o, c = B.getShadowGraphqlClient().watchQuery({
14375
+ query: zs,
14363
14376
  variables: {
14364
14377
  id: this.getId(),
14365
14378
  limit: e,
@@ -14635,7 +14648,7 @@ const hl = v`
14635
14648
  }
14636
14649
  `, td = async (r) => {
14637
14650
  var e, a;
14638
- return (a = (e = (await b.getShadowGraphqlClient().query({
14651
+ return (a = (e = (await B.getShadowGraphqlClient().query({
14639
14652
  query: hl,
14640
14653
  errorPolicy: "all",
14641
14654
  variables: {
@@ -14725,7 +14738,7 @@ class Je {
14725
14738
  }
14726
14739
  console.log("Setting default global variants."), this.globalPropertyHandleService.getHandles().then((m) => {
14727
14740
  const g = m.map((p) => {
14728
- if (p.getType() === z.ColorOption || p.getType() === z.Option) {
14741
+ if (p.getType() === G.ColorOption || p.getType() === G.Option) {
14729
14742
  const f = p;
14730
14743
  if (this.globalPropertyStateManager.getGlobalPropertyState())
14731
14744
  return f.initDefaultVariant();
@@ -14750,7 +14763,7 @@ class Je {
14750
14763
  }
14751
14764
  async generateQuoteId() {
14752
14765
  var a, n;
14753
- const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
14766
+ const e = (n = (a = (await B.getShadowGraphqlClient().mutate({
14754
14767
  mutation: fl,
14755
14768
  variables: {
14756
14769
  id: this.id
@@ -14762,7 +14775,7 @@ class Je {
14762
14775
  return this.quoteId = e, e || "";
14763
14776
  }
14764
14777
  async attachAddress(t, e, a, n, i, s) {
14765
- await b.getShadowGraphqlClient().mutate({
14778
+ await B.getShadowGraphqlClient().mutate({
14766
14779
  mutation: gl,
14767
14780
  variables: {
14768
14781
  bundleId: this.id,
@@ -14779,7 +14792,7 @@ class Je {
14779
14792
  });
14780
14793
  }
14781
14794
  async attachOrganization(t) {
14782
- await b.getShadowGraphqlClient().mutate({
14795
+ await B.getShadowGraphqlClient().mutate({
14783
14796
  mutation: pl,
14784
14797
  variables: {
14785
14798
  bundleId: this.id,
@@ -14855,12 +14868,14 @@ class Je {
14855
14868
  async applyGlobalPropertyState(t) {
14856
14869
  var a;
14857
14870
  const e = await this.globalPropertyHandleService.getHandles();
14858
- console.log(`LOG: ${e.length} handles`);
14871
+ console.log(`LOG: state ${t.id} has ${t.aspects.length} aspects`);
14859
14872
  for (const n of t.aspects) {
14873
+ for (const o of this.workflowExperiences)
14874
+ o.getWorkflowManager().unsetInitialized();
14860
14875
  const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
14861
- if (console.log(`LOG: handle for ${i}? ${s}`), s)
14876
+ if (s)
14862
14877
  switch (n.type) {
14863
- case z.FileUpload: {
14878
+ case G.FileUpload: {
14864
14879
  const o = s, l = await ve([n.value]);
14865
14880
  l.length > 0 && await o.selectImage(l[0]);
14866
14881
  const c = (a = n.storage) == null ? void 0 : a.colors;
@@ -14868,26 +14883,26 @@ class Je {
14868
14883
  const d = Object.fromEntries(
14869
14884
  c.map((A) => [A.key, { browserValue: A.browserValue, pmsValue: A.pmsValue }]) ?? []
14870
14885
  );
14871
- await o.changeColors(d);
14886
+ await o.changeColors(d, !0);
14872
14887
  }
14873
14888
  break;
14874
14889
  }
14875
- case z.ColorOption: {
14890
+ case G.ColorOption: {
14876
14891
  const o = s;
14877
- if (n.type === z.ColorOption) {
14892
+ if (n.type === G.ColorOption) {
14878
14893
  const c = o.getAllVariants().find((d) => d.getId() === n.value);
14879
14894
  c && await o.selectVariant(c);
14880
14895
  } else
14881
- o.setCustomColor(n.value);
14896
+ o.setCustomColor(n.value, !0);
14882
14897
  break;
14883
14898
  }
14884
- case z.Option: {
14899
+ case G.Option: {
14885
14900
  const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
14886
- console.log(`LOG: variant for ${n.value}: ${c}`), c && await o.selectVariant(c);
14901
+ console.log(`LOG: variant for ${n.value}: ${c}`), c && await o.selectVariant(c, void 0, !0);
14887
14902
  break;
14888
14903
  }
14889
- case z.Text: {
14890
- await s.setText(n.value);
14904
+ case G.Text: {
14905
+ console.log(`LOG: text ${n.value}`), await s.setText(n.value, !0);
14891
14906
  break;
14892
14907
  }
14893
14908
  }
@@ -14897,7 +14912,7 @@ class Je {
14897
14912
  return this.globalPropertyStateManager;
14898
14913
  }
14899
14914
  async getGlobalPropertyTotalSubunits() {
14900
- 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) => {
14901
14916
  var n;
14902
14917
  return ((n = a.getCurrentVariant()) == null ? void 0 : n.getPrice()) || 0;
14903
14918
  }).reduce((a, n) => a + n, 0);
@@ -14916,7 +14931,7 @@ class Je {
14916
14931
  const c = (e = this.getGlobalPropertyConfiguration()) == null ? void 0 : e.aspects.find(
14917
14932
  (d) => d.name === l
14918
14933
  );
14919
- if (c && c.type === z.ColorOption) {
14934
+ if (c && c.type === G.ColorOption) {
14920
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 = rl(
14921
14936
  this.getWorkflowExperiences(),
14922
14937
  this.globalConfigurationPropertyId || "",
@@ -14951,7 +14966,7 @@ class Je {
14951
14966
  "Unable to add transaction to bundle - Already Exists: " + a.filter((o) => !!o).map((o) => o == null ? void 0 : o.getWorkflowManager().getTransaction().id).join(", ")
14952
14967
  );
14953
14968
  const n = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => n.get(o));
14954
- await b.getShadowGraphqlClient().mutate({
14969
+ await B.getShadowGraphqlClient().mutate({
14955
14970
  mutation: Ys,
14956
14971
  variables: {
14957
14972
  id: this.id,
@@ -14983,8 +14998,8 @@ class Je {
14983
14998
  ))
14984
14999
  throw new Error("Unable to add transaction to bundle - Already Exists!");
14985
15000
  const s = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
14986
- await b.getShadowGraphqlClient().mutate({
14987
- mutation: qs,
15001
+ await B.getShadowGraphqlClient().mutate({
15002
+ mutation: Hs,
14988
15003
  variables: {
14989
15004
  id: this.id,
14990
15005
  transactionId: a
@@ -15018,7 +15033,7 @@ class Je {
15018
15033
  const n = this.workflowExperiences.find(
15019
15034
  (i) => i.getWorkflowManager().getTransaction().id === e.id
15020
15035
  );
15021
- if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await b.getShadowGraphqlClient().mutate({
15036
+ if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await B.getShadowGraphqlClient().mutate({
15022
15037
  mutation: Js,
15023
15038
  variables: {
15024
15039
  id: this.id,
@@ -15055,7 +15070,7 @@ class Je {
15055
15070
  );
15056
15071
  a.forEach((n) => n.setBundle(void 0)), [...this.workflowExperiences, ...a].forEach(
15057
15072
  (n) => n.checkForPriceBreakChanges()
15058
- ), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await b.getShadowGraphqlClient().mutate({
15073
+ ), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await B.getShadowGraphqlClient().mutate({
15059
15074
  mutation: Ks,
15060
15075
  variables: {
15061
15076
  id: this.id,
@@ -15118,7 +15133,7 @@ class Je {
15118
15133
  }
15119
15134
  async addStakeholder(t, e) {
15120
15135
  var i;
15121
- const a = await b.getShadowGraphqlClient().mutate({
15136
+ const a = await B.getShadowGraphqlClient().mutate({
15122
15137
  mutation: _s,
15123
15138
  variables: {
15124
15139
  id: this.id,
@@ -15136,7 +15151,7 @@ class Je {
15136
15151
  }
15137
15152
  async removeStakeholder(t) {
15138
15153
  var a;
15139
- if (!((a = (await b.getShadowGraphqlClient().mutate({
15154
+ if (!((a = (await B.getShadowGraphqlClient().mutate({
15140
15155
  mutation: Xs,
15141
15156
  variables: {
15142
15157
  id: this.id,
@@ -15150,7 +15165,7 @@ class Je {
15150
15165
  }
15151
15166
  async updateStakeholders(t) {
15152
15167
  var n;
15153
- const e = await b.getShadowGraphqlClient().mutate({
15168
+ const e = await B.getShadowGraphqlClient().mutate({
15154
15169
  mutation: Zs,
15155
15170
  variables: {
15156
15171
  id: this.id,
@@ -15166,8 +15181,8 @@ class Je {
15166
15181
  this.storeStakeholderCustomers(a);
15167
15182
  }
15168
15183
  async getAllStakeholders() {
15169
- const t = await b.getShadowGraphqlClient().query({
15170
- query: qa,
15184
+ const t = await B.getShadowGraphqlClient().query({
15185
+ query: Ha,
15171
15186
  errorPolicy: "all",
15172
15187
  fetchPolicy: "no-cache",
15173
15188
  variables: {
@@ -15183,8 +15198,8 @@ class Je {
15183
15198
  return this.storeStakeholderCustomers(e), e;
15184
15199
  }
15185
15200
  async getCurrentStakeholder() {
15186
- const t = await b.getShadowGraphqlClient().query({
15187
- query: qa,
15201
+ const t = await B.getShadowGraphqlClient().query({
15202
+ query: Ha,
15188
15203
  errorPolicy: "all",
15189
15204
  fetchPolicy: "no-cache",
15190
15205
  variables: {
@@ -15205,7 +15220,7 @@ class Je {
15205
15220
  }
15206
15221
  async finish(t, e) {
15207
15222
  if (this.completed)
15208
- return await b.getShadowGraphqlClient().mutate({
15223
+ return await B.getShadowGraphqlClient().mutate({
15209
15224
  mutation: ro,
15210
15225
  variables: {
15211
15226
  bundleId: this.id
@@ -15267,7 +15282,7 @@ class Je {
15267
15282
  return this.bundleStateManager.activateWorkflowExperienceTransform(t, e), this.updateBundle();
15268
15283
  }
15269
15284
  async assignGlobalPropertyConfiguration(t) {
15270
- await b.getShadowGraphqlClient().mutate({
15285
+ await B.getShadowGraphqlClient().mutate({
15271
15286
  mutation: ao,
15272
15287
  variables: {
15273
15288
  bundleId: this.id,
@@ -15280,7 +15295,7 @@ class Je {
15280
15295
  }
15281
15296
  async assignProductCollection(t) {
15282
15297
  var a, n;
15283
- const e = await b.getShadowGraphqlClient().mutate({
15298
+ const e = await B.getShadowGraphqlClient().mutate({
15284
15299
  mutation: eo(
15285
15300
  ((a = this.globalPropertyStateManager.getBundleOptions()) == null ? void 0 : a.eagerFetchProducts) ?? !1
15286
15301
  ),
@@ -15338,8 +15353,8 @@ class Je {
15338
15353
  }
15339
15354
  async updateBundle() {
15340
15355
  var e;
15341
- if (!((e = (await b.getShadowGraphqlClient().mutate({
15342
- mutation: Hs,
15356
+ if (!((e = (await B.getShadowGraphqlClient().mutate({
15357
+ mutation: qs,
15343
15358
  variables: {
15344
15359
  id: this.id,
15345
15360
  name: this.name,
@@ -15355,7 +15370,7 @@ class Je {
15355
15370
  throw new Error("Bundle not found!");
15356
15371
  }
15357
15372
  async updateTransactionOrder() {
15358
- await b.getShadowGraphqlClient().mutate({
15373
+ await B.getShadowGraphqlClient().mutate({
15359
15374
  mutation: to,
15360
15375
  variables: {
15361
15376
  id: this.id,
@@ -15396,7 +15411,7 @@ class Je {
15396
15411
  return this.workflowViewerAmendLink;
15397
15412
  }
15398
15413
  async approve(t, e) {
15399
- await b.getShadowGraphqlClient().mutate({
15414
+ await B.getShadowGraphqlClient().mutate({
15400
15415
  mutation: io,
15401
15416
  errorPolicy: "all",
15402
15417
  fetchPolicy: "no-cache",
@@ -15408,7 +15423,7 @@ class Je {
15408
15423
  });
15409
15424
  }
15410
15425
  async reject(t, e) {
15411
- await b.getShadowGraphqlClient().mutate({
15426
+ await B.getShadowGraphqlClient().mutate({
15412
15427
  mutation: so,
15413
15428
  errorPolicy: "all",
15414
15429
  fetchPolicy: "no-cache",
@@ -15444,7 +15459,7 @@ class wl {
15444
15459
  */
15445
15460
  async execute(t, e, a) {
15446
15461
  var A, u, h;
15447
- const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
15462
+ const i = (u = (A = (await B.getShadowGraphqlClient().mutate({
15448
15463
  mutation: Cl,
15449
15464
  variables: {
15450
15465
  processFlowId: t,
@@ -15460,7 +15475,7 @@ class wl {
15460
15475
  }
15461
15476
  let o = !1, l = 0, c, d;
15462
15477
  for (; !o; ) {
15463
- c = await b.getShadowGraphqlClient().query({
15478
+ c = await B.getShadowGraphqlClient().query({
15464
15479
  query: v`
15465
15480
  query getProcessFlowExecution($ids: [String]!) {
15466
15481
  processExecutions(ids: $ids) {
@@ -15739,7 +15754,7 @@ v`
15739
15754
  }
15740
15755
  }
15741
15756
  `;
15742
- const Bl = v`
15757
+ const bl = v`
15743
15758
  query CustomerMetafields($id: String!) {
15744
15759
  metafields(entityId: $id) {
15745
15760
  id
@@ -15758,8 +15773,8 @@ const Bl = v`
15758
15773
  }
15759
15774
  }
15760
15775
  `;
15761
- class bl {
15762
- constructor(t, e = b.getShadowGraphqlClient.bind(b)) {
15776
+ class Bl {
15777
+ constructor(t, e = B.getShadowGraphqlClient.bind(B)) {
15763
15778
  this.options = t, this.client = e;
15764
15779
  }
15765
15780
  query(t) {
@@ -15839,9 +15854,9 @@ class Il {
15839
15854
  ));
15840
15855
  }
15841
15856
  }
15842
- const Lt = new Il(), Pl = async (r, t) => {
15857
+ const Ut = new Il(), Pl = async (r, t) => {
15843
15858
  var n;
15844
- const e = await b.getShadowGraphqlClient().query({
15859
+ const e = await B.getShadowGraphqlClient().query({
15845
15860
  query: ki(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
15846
15861
  errorPolicy: "all",
15847
15862
  variables: {
@@ -15858,8 +15873,8 @@ const Lt = new Il(), Pl = async (r, t) => {
15858
15873
  return a.forEach((i) => {
15859
15874
  i.steps.forEach((s) => {
15860
15875
  var o, l, c;
15861
- delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset && U.cacheAsset(s.option.defaultVariant.asset), s.option.colorProfile && U.cacheAsset(s.option.colorProfile), (c = s.option.variants) == null || c.forEach((d) => {
15862
- d.asset && U.cacheAsset(d.asset), d.thumbnail && U.cacheAsset(d.thumbnail), d.material && U.cacheMaterial(d.material);
15876
+ delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset && L.cacheAsset(s.option.defaultVariant.asset), s.option.colorProfile && L.cacheAsset(s.option.colorProfile), (c = s.option.variants) == null || c.forEach((d) => {
15877
+ d.asset && L.cacheAsset(d.asset), d.thumbnail && L.cacheAsset(d.thumbnail), d.material && L.cacheMaterial(d.material);
15863
15878
  }), Jt.set({ id: s.option.id }, Promise.resolve(s.option)));
15864
15879
  }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
15865
15880
  }), a;
@@ -15898,24 +15913,24 @@ class rd {
15898
15913
  constructor(t) {
15899
15914
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15900
15915
  try {
15901
- return b.getShadowGraphqlClient().mutate({
15916
+ return B.getShadowGraphqlClient().mutate({
15902
15917
  ...e,
15903
15918
  mutation: wi
15904
15919
  });
15905
15920
  } catch (a) {
15906
15921
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15907
15922
  }
15908
- }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1-beta.0e36ff9d-5cc0-5085-abc6-bbccac541a12"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15923
+ }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1-beta.6052719b-af8d-5bf1-8a8e-b0e595b7c178"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15909
15924
  }
15910
15925
  configure(t) {
15911
- 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 && $r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
15926
+ 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 && $r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
15912
15927
  }
15913
15928
  /**
15914
15929
  * @returns The asset manager allows for common operations related to assets
15915
15930
  * and the Spiff Commerce platform.
15916
15931
  */
15917
15932
  getAssetManager() {
15918
- return U;
15933
+ return L;
15919
15934
  }
15920
15935
  getCurrencyCode() {
15921
15936
  if (this.currencyCode === void 0)
@@ -15984,7 +15999,7 @@ class rd {
15984
15999
  */
15985
16000
  async authenticateTransactionFromLocalStorage(t) {
15986
16001
  var d, A, u, h, m, g;
15987
- const e = b.getShadowGraphqlClient(), a = await e.query({
16002
+ const e = B.getShadowGraphqlClient(), a = await e.query({
15988
16003
  query: Mi,
15989
16004
  errorPolicy: "all",
15990
16005
  fetchPolicy: "no-cache",
@@ -16044,7 +16059,7 @@ class rd {
16044
16059
  e != null && e.has(t) && (e.delete(t), N.setMap("transactionCustomerIds", e));
16045
16060
  }
16046
16061
  async customerHasBundleTemplates(t) {
16047
- const n = (await b.getShadowGraphqlClient().query({
16062
+ const n = (await B.getShadowGraphqlClient().query({
16048
16063
  query: ue,
16049
16064
  errorPolicy: "all",
16050
16065
  fetchPolicy: "no-cache",
@@ -16068,7 +16083,7 @@ class rd {
16068
16083
  async getOrCreateCustomer(t) {
16069
16084
  var s;
16070
16085
  this.customer = void 0;
16071
- const e = b.getShadowGraphqlClient(), n = (await e.query({
16086
+ const e = B.getShadowGraphqlClient(), n = (await e.query({
16072
16087
  query: ue,
16073
16088
  errorPolicy: "all",
16074
16089
  fetchPolicy: "no-cache",
@@ -16115,13 +16130,13 @@ class rd {
16115
16130
  return !1;
16116
16131
  const n = JSON.parse(e), i = (/* @__PURE__ */ new Date()).getTime() / 1e3;
16117
16132
  if (!n.ExpiresIn || n.ExpiresIn < i - parseInt(t)) {
16118
- const l = await Lt.refreshTokens();
16133
+ const l = await Ut.refreshTokens();
16119
16134
  if (l != null && l.AuthenticationResult)
16120
16135
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), n.AccessToken = l.AuthenticationResult.AccessToken, localStorage.setItem("cognito-tokens", JSON.stringify(n));
16121
16136
  else
16122
16137
  return this.logOut(), console.error("Failed to refresh tokens."), !1;
16123
16138
  }
16124
- const o = (await b.getShadowGraphqlClient().query({
16139
+ const o = (await B.getShadowGraphqlClient().query({
16125
16140
  query: ue,
16126
16141
  errorPolicy: "all",
16127
16142
  fetchPolicy: "no-cache",
@@ -16135,22 +16150,22 @@ class rd {
16135
16150
  * Generate an email code to allow logging in as a Spiff user.
16136
16151
  */
16137
16152
  async generateVerificationCode(t) {
16138
- await b.getShadowGraphqlClient().mutate({
16153
+ await B.getShadowGraphqlClient().mutate({
16139
16154
  mutation: El,
16140
16155
  variables: {
16141
16156
  emailAddress: t
16142
16157
  }
16143
- }), await Lt.generateCode(t);
16158
+ }), await Ut.generateCode(t);
16144
16159
  }
16145
16160
  /**
16146
16161
  * Verify an email code to log in as a Spiff user.
16147
16162
  * Always returns true if it doesn't throw.
16148
16163
  */
16149
16164
  async verifyCode(t, e) {
16150
- const a = (await this.getIntegration()).partner.id || "", n = await Lt.verifyCode(t, e, a);
16165
+ const a = (await this.getIntegration()).partner.id || "", n = await Ut.verifyCode(t, e, a);
16151
16166
  if (n != null && n.AuthenticationResult) {
16152
16167
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(n.AuthenticationResult)), localStorage.setItem("cognito-email", t);
16153
- const s = (await b.getShadowGraphqlClient().query({
16168
+ const s = (await B.getShadowGraphqlClient().query({
16154
16169
  query: ue,
16155
16170
  errorPolicy: "all",
16156
16171
  fetchPolicy: "no-cache",
@@ -16177,7 +16192,7 @@ class rd {
16177
16192
  throw new Error("No token data in storage.");
16178
16193
  const a = JSON.parse(e), n = (/* @__PURE__ */ new Date()).getTime() / 1e3, i = !(a != null && a.AccessToken) || Wt(a.AccessToken);
16179
16194
  if (!a.ExpiresIn || a.ExpiresIn < n - parseInt(t) || i) {
16180
- const s = await Lt.refreshTokens();
16195
+ const s = await Ut.refreshTokens();
16181
16196
  if (s != null && s.AuthenticationResult)
16182
16197
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), a.AccessToken = s.AuthenticationResult.AccessToken, localStorage.setItem("cognito-tokens", JSON.stringify(a));
16183
16198
  else
@@ -16191,8 +16206,8 @@ class rd {
16191
16206
  var e;
16192
16207
  if (!((e = this.customer) != null && e.id))
16193
16208
  throw new Error("Customer must be logged in before calling this function.");
16194
- return (await b.getShadowGraphqlClient().query({
16195
- query: Bl,
16209
+ return (await B.getShadowGraphqlClient().query({
16210
+ query: bl,
16196
16211
  variables: {
16197
16212
  id: this.customer.id
16198
16213
  }
@@ -16204,7 +16219,7 @@ class rd {
16204
16219
  */
16205
16220
  async getNewBundle(t, e, a) {
16206
16221
  var c, d, A, u, h;
16207
- const i = (A = (await b.getShadowGraphqlClient().mutate({
16222
+ const i = (A = (await B.getShadowGraphqlClient().mutate({
16208
16223
  mutation: Ws(((d = (c = a == null ? void 0 : a.graphql) == null ? void 0 : c.productCollection) == null ? void 0 : d.eagerFetchProducts) || !1),
16209
16224
  variables: {
16210
16225
  collectionId: t,
@@ -16234,7 +16249,7 @@ class rd {
16234
16249
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16235
16250
  */
16236
16251
  async getExistingBundle(t, e, a, n) {
16237
- var h, m, g, p, f, C, w, S, y, E, B;
16252
+ var h, m, g, p, f, C, w, S, y, E, b;
16238
16253
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
16239
16254
  try {
16240
16255
  const I = await this.loggedInBearerToken();
@@ -16247,8 +16262,8 @@ class rd {
16247
16262
  bundleOwnerId: s,
16248
16263
  ...o,
16249
16264
  ...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
16250
- }, c = await b.getShadowGraphqlClient().query({
16251
- query: Us(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16265
+ }, c = await B.getShadowGraphqlClient().query({
16266
+ query: Ls(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16252
16267
  variables: {
16253
16268
  id: t
16254
16269
  },
@@ -16263,7 +16278,7 @@ class rd {
16263
16278
  A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
16264
16279
  const u = new Je(this, d, e, a, s, {
16265
16280
  additionalHeaders: (y = n == null ? void 0 : n.graphql) == null ? void 0 : y.additionalHeaders,
16266
- eagerFetchProducts: (B = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : B.eagerFetchProducts,
16281
+ eagerFetchProducts: (b = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : b.eagerFetchProducts,
16267
16282
  existingGlobalPropertyState: c.data.globalPropertyState,
16268
16283
  readonly: n == null ? void 0 : n.readonly
16269
16284
  });
@@ -16282,14 +16297,14 @@ class rd {
16282
16297
  const y = await this.loggedInBearerToken();
16283
16298
  s.Authorization = `Bearer ${y}`;
16284
16299
  } catch {
16285
- const B = ((m = Object.entries(localStorage).find(([D, x]) => D.startsWith("CognitoIdentityServiceProvider") && D.endsWith("idToken"))) == null ? void 0 : m[0]) || "", I = localStorage.getItem(B);
16300
+ const b = ((m = Object.entries(localStorage).find(([D, x]) => D.startsWith("CognitoIdentityServiceProvider") && D.endsWith("idToken"))) == null ? void 0 : m[0]) || "", I = localStorage.getItem(b);
16286
16301
  I && !Wt(I) && (s.Authorization = `Bearer ${I}`);
16287
16302
  }
16288
16303
  const o = {
16289
16304
  bundleOwnerId: i,
16290
16305
  ...s,
16291
16306
  ...(g = n == null ? void 0 : n.graphql) == null ? void 0 : g.additionalHeaders
16292
- }, c = (C = (await b.getShadowGraphqlClient().mutate({
16307
+ }, c = (C = (await B.getShadowGraphqlClient().mutate({
16293
16308
  mutation: js(((f = (p = n == null ? void 0 : n.graphql) == null ? void 0 : p.productCollection) == null ? void 0 : f.eagerFetchProducts) || !1),
16294
16309
  variables: {
16295
16310
  id: t,
@@ -16329,7 +16344,7 @@ class rd {
16329
16344
  if (!((i = this.customer) != null && i.id))
16330
16345
  throw new Error("Customer not authenticated.");
16331
16346
  const { includeMetadata: e, ...a } = t;
16332
- return (await b.getShadowGraphqlClient().query({
16347
+ return (await B.getShadowGraphqlClient().query({
16333
16348
  query: no(e ?? !1),
16334
16349
  variables: {
16335
16350
  ...a,
@@ -16346,8 +16361,8 @@ class rd {
16346
16361
  var i;
16347
16362
  if (!this.customer)
16348
16363
  throw new Error("Customer not authenticated.");
16349
- const t = await b.getShadowGraphqlClient().query({
16350
- query: Ls,
16364
+ const t = await B.getShadowGraphqlClient().query({
16365
+ query: Us,
16351
16366
  variables: {
16352
16367
  id: this.customer.id
16353
16368
  },
@@ -16383,20 +16398,20 @@ class rd {
16383
16398
  async getWorkflowExperiences(t, e) {
16384
16399
  if (t.length === 0)
16385
16400
  throw new ut("No options provided!");
16386
- const a = b.getShadowGraphqlClient(), n = async (y) => {
16401
+ const a = B.getShadowGraphqlClient(), n = async (y) => {
16387
16402
  var D, x, k;
16388
16403
  if (y.length === 0)
16389
16404
  return [];
16390
- const E = y.map((T) => T.option.transactionId), B = await a.query({
16405
+ const E = y.map((T) => T.option.transactionId), b = await a.query({
16391
16406
  query: Ci,
16392
16407
  variables: {
16393
16408
  ids: E
16394
16409
  },
16395
16410
  errorPolicy: "all",
16396
16411
  fetchPolicy: "no-cache"
16397
- }), I = B.data.transactions;
16412
+ }), I = b.data.transactions;
16398
16413
  if (I.length !== y.length) {
16399
- const T = ((x = (D = B.errors) == null ? void 0 : D[0]) == null ? void 0 : x.message) || "Unknown error";
16414
+ const T = ((x = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : x.message) || "Unknown error";
16400
16415
  throw new ut(`Not all transactions were found: ${T}`);
16401
16416
  }
16402
16417
  return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((T, nt) => {
@@ -16428,12 +16443,12 @@ class rd {
16428
16443
  },
16429
16444
  errorPolicy: "all",
16430
16445
  fetchPolicy: "no-cache"
16431
- }), B = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16432
- if (!B || B.length === 0) {
16446
+ }), b = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16447
+ if (!b || b.length === 0) {
16433
16448
  const k = ((x = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : x.message) || "Unknown error";
16434
16449
  throw new ut(`Failed to create transactions: ${k}`);
16435
16450
  }
16436
- return B.map((k, T) => ({
16451
+ return b.map((k, T) => ({
16437
16452
  transaction: k,
16438
16453
  workflowId: k.workflowId,
16439
16454
  readOnly: !1,
@@ -16446,9 +16461,9 @@ class rd {
16446
16461
  ...d.map(i)
16447
16462
  ])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await er(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
16448
16463
  var tt;
16449
- const { transaction: E, workflowId: B, readOnly: I, index: D } = y, x = m.get(B), k = t[D];
16464
+ const { transaction: E, workflowId: b, readOnly: I, index: D } = y, x = m.get(b), k = t[D];
16450
16465
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16451
- const T = g.get(E.id) || void 0, nt = new bl({
16466
+ const T = g.get(E.id) || void 0, nt = new Bl({
16452
16467
  onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
16453
16468
  onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
16454
16469
  }), R = {
@@ -16457,9 +16472,9 @@ class rd {
16457
16472
  layouts: [],
16458
16473
  singleVariantsRenderable: (tt = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : tt.singleVariantsRenderable,
16459
16474
  stateMutationFunc: I ? async () => {
16460
- throw new G("State mutation is forbidden in read only mode!");
16461
- } : async (H) => this.updateTransactionState({
16462
- ...H,
16475
+ throw new z("State mutation is forbidden in read only mode!");
16476
+ } : async (q) => this.updateTransactionState({
16477
+ ...q,
16463
16478
  context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
16464
16479
  }),
16465
16480
  graphQlClient: () => nt,
@@ -16468,11 +16483,11 @@ class rd {
16468
16483
  isReloadedTransaction: k.type === "transaction"
16469
16484
  };
16470
16485
  if (k.type === "transaction" && E.workflowState) {
16471
- const H = JSON.parse(E.workflowState);
16472
- R.layouts = Object.values(H.layouts || {}).map((ft) => ft.layout), await za(H), R.reloadedState = H;
16486
+ const q = JSON.parse(E.workflowState);
16487
+ R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
16473
16488
  } else if (!I && k.workflowState) {
16474
- const H = JSON.parse(k.workflowState);
16475
- R.layouts = Object.values(H.layouts || {}).map((ft) => ft.layout), await za(H), R.reloadedState = H;
16489
+ const q = JSON.parse(k.workflowState);
16490
+ R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
16476
16491
  } else
16477
16492
  R.layouts = Fl(
16478
16493
  R.transaction,
@@ -16484,8 +16499,8 @@ class rd {
16484
16499
  }), f = await Promise.all(p);
16485
16500
  N.setMap("transactionOwnerIds", g);
16486
16501
  const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
16487
- const { experienceOptions: E, options: B } = y, I = new Oo(this, E);
16488
- return await I.getWorkflowManager().getInitializationPromise(), B.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16502
+ const { experienceOptions: E, options: b } = y, I = new Oo(this, E);
16503
+ return await I.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16489
16504
  }), S = await Promise.all(w);
16490
16505
  return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
16491
16506
  }
@@ -16495,7 +16510,7 @@ class rd {
16495
16510
  }
16496
16511
  async getIntegrationProductById(t, e) {
16497
16512
  var s, o;
16498
- const i = (s = (await b.getShadowGraphqlClient().query({
16513
+ const i = (s = (await B.getShadowGraphqlClient().query({
16499
16514
  query: Ei(e),
16500
16515
  variables: {
16501
16516
  ids: [t]
@@ -16509,8 +16524,8 @@ class rd {
16509
16524
  }
16510
16525
  async getIntegrationProductFromExternalIds(t, e, a) {
16511
16526
  var o;
16512
- const s = (o = (await b.getShadowGraphqlClient().query({
16513
- query: Bi(a),
16527
+ const s = (o = (await B.getShadowGraphqlClient().query({
16528
+ query: bi(a),
16514
16529
  variables: {
16515
16530
  externalProductId: e,
16516
16531
  externalIntegrationId: t
@@ -16526,7 +16541,7 @@ class rd {
16526
16541
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
16527
16542
  }
16528
16543
  async getShareActionsForTransaction(t) {
16529
- const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await b.getShadowGraphqlClient().query({
16544
+ const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await B.getShadowGraphqlClient().query({
16530
16545
  query: vi,
16531
16546
  errorPolicy: "all",
16532
16547
  fetchPolicy: "no-cache",
@@ -16542,7 +16557,7 @@ class rd {
16542
16557
  return n.data.transactions[0].transactionShareActions;
16543
16558
  }
16544
16559
  async placeOrder(t) {
16545
- const e = await b.getShadowGraphqlClient().mutate({
16560
+ const e = await B.getShadowGraphqlClient().mutate({
16546
16561
  mutation: $i,
16547
16562
  variables: {
16548
16563
  orderItems: t
@@ -16558,7 +16573,7 @@ class rd {
16558
16573
  };
16559
16574
  }
16560
16575
  }
16561
- const kl = async (r, t) => (await b.getShadowGraphqlClient().query({
16576
+ const kl = async (r, t) => (await B.getShadowGraphqlClient().query({
16562
16577
  query: Qi,
16563
16578
  errorPolicy: "all",
16564
16579
  fetchPolicy: "no-cache",
@@ -16571,7 +16586,7 @@ const kl = async (r, t) => (await b.getShadowGraphqlClient().query({
16571
16586
  themeConfigurationId: t
16572
16587
  }
16573
16588
  })).data.currentIntegration, id = async (r) => {
16574
- const e = await b.getShadowGraphqlClient().query({
16589
+ const e = await B.getShadowGraphqlClient().query({
16575
16590
  query: Si,
16576
16591
  errorPolicy: "all",
16577
16592
  fetchPolicy: "network-only",
@@ -16583,7 +16598,7 @@ const kl = async (r, t) => (await b.getShadowGraphqlClient().query({
16583
16598
  return e.data.transactions[0];
16584
16599
  }, sd = async (r, t) => {
16585
16600
  var a;
16586
- return (a = (await b.getShadowGraphqlClient().query({
16601
+ return (a = (await B.getShadowGraphqlClient().query({
16587
16602
  query: Ni,
16588
16603
  errorPolicy: "all",
16589
16604
  variables: {
@@ -16593,7 +16608,7 @@ const kl = async (r, t) => (await b.getShadowGraphqlClient().query({
16593
16608
  })).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
16594
16609
  }, od = async (r) => {
16595
16610
  var e, a, n;
16596
- return (n = (a = (e = (await b.getShadowGraphqlClient().query({
16611
+ return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16597
16612
  query: Oi,
16598
16613
  errorPolicy: "all",
16599
16614
  variables: {
@@ -16602,7 +16617,7 @@ const kl = async (r, t) => (await b.getShadowGraphqlClient().query({
16602
16617
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16603
16618
  }, ld = async (r) => {
16604
16619
  var e, a, n;
16605
- return (n = (a = (e = (await b.getShadowGraphqlClient().query({
16620
+ return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16606
16621
  query: Ri,
16607
16622
  errorPolicy: "all",
16608
16623
  variables: {
@@ -16759,7 +16774,7 @@ class Tl {
16759
16774
  if (!n || !this.frameData)
16760
16775
  return;
16761
16776
  if (this.frameData.length !== t.length)
16762
- throw new G(
16777
+ throw new z(
16763
16778
  "Frame data and offsets are not the same length. This is a bug. Please report it."
16764
16779
  );
16765
16780
  if (!this.offsets.some((s, o) => !(t[o].x === s.x && t[o].y === s.y && t[o].zoom === s.zoom)) && !a) {
@@ -16803,9 +16818,9 @@ class Tl {
16803
16818
  */
16804
16819
  updateFrameOffsets(t, e, a, n, i) {
16805
16820
  if (!a || a.length === 0 || a.some((o) => !o))
16806
- throw new G("Frame data not set. This is a bug");
16821
+ throw new z("Frame data not set. This is a bug");
16807
16822
  if (!this.workflowManager)
16808
- throw new G("No workflow manager set, cannot update offsets.");
16823
+ throw new z("No workflow manager set, cannot update offsets.");
16809
16824
  const s = this.workflowManager.getCommandDispatcher();
16810
16825
  this.targetElements.forEach((o, l) => {
16811
16826
  s(
@@ -17077,7 +17092,7 @@ class Ql extends it {
17077
17092
  const e = await this.getOriginalImageSelection();
17078
17093
  if (!e)
17079
17094
  throw new Error("You must supply an image selection before attempting to remove the background.");
17080
- const a = await U.removeBackgroundFromAsset(e);
17095
+ const a = await L.removeBackgroundFromAsset(e);
17081
17096
  t && await wt.selectImage(this.step, a, this.manager, !1);
17082
17097
  const n = ((i = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : i.framePatternData) || {};
17083
17098
  return this.manager.updateStorage(this.step.stepName, {
@@ -17136,13 +17151,13 @@ class Ql extends it {
17136
17151
  var e, a;
17137
17152
  const t = (a = (e = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : e.framePatternData) == null ? void 0 : a.originalAssetKey;
17138
17153
  if (t)
17139
- return U.getLocalOrFromServer(t);
17154
+ return L.getLocalOrFromServer(t);
17140
17155
  }
17141
17156
  async getBackgroundRemovedImageSelection() {
17142
17157
  var e, a;
17143
17158
  const t = (a = (e = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : e.framePatternData) == null ? void 0 : a.backgroundRemovedAssetKey;
17144
17159
  if (t)
17145
- return U.getLocalOrFromServer(t);
17160
+ return L.getLocalOrFromServer(t);
17146
17161
  }
17147
17162
  hasOriginalImageSelection() {
17148
17163
  var t, e;
@@ -17239,7 +17254,7 @@ const Rl = v`
17239
17254
  workflowViewerLink
17240
17255
  }
17241
17256
  }
17242
- `, Ul = v`
17257
+ `, Ll = v`
17243
17258
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17244
17259
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17245
17260
  items {
@@ -17254,7 +17269,7 @@ const Rl = v`
17254
17269
  total
17255
17270
  }
17256
17271
  }
17257
- `, Ll = v`
17272
+ `, Ul = v`
17258
17273
  query GetTransactionsForBundle($id: String!) {
17259
17274
  bundles(ids: [$id]) {
17260
17275
  id
@@ -17282,14 +17297,14 @@ const Rl = v`
17282
17297
  name
17283
17298
  }
17284
17299
  }
17285
- `, zl = v`
17300
+ `, Gl = v`
17286
17301
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17287
17302
  bundleDuplicate(id: $id, template: $template) {
17288
17303
  id
17289
17304
  workflowViewerLink
17290
17305
  }
17291
17306
  }
17292
- `, Gl = v`
17307
+ `, zl = v`
17293
17308
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17294
17309
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17295
17310
  items {
@@ -17302,7 +17317,7 @@ const Rl = v`
17302
17317
  total
17303
17318
  }
17304
17319
  }
17305
- `, dd = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
17320
+ `, dd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17306
17321
  mutation: Vl,
17307
17322
  errorPolicy: "all",
17308
17323
  variables: {
@@ -17310,35 +17325,35 @@ const Rl = v`
17310
17325
  name: t
17311
17326
  },
17312
17327
  context: e
17313
- }), Ad = async (r, t) => await b.getShadowGraphqlClient().mutate({
17328
+ }), Ad = async (r, t) => await B.getShadowGraphqlClient().mutate({
17314
17329
  mutation: Ol,
17315
17330
  errorPolicy: "all",
17316
17331
  variables: {
17317
17332
  id: r,
17318
17333
  name: t
17319
17334
  }
17320
- }), ud = async (r, t) => await b.getShadowGraphqlClient().mutate({
17321
- mutation: zl,
17335
+ }), ud = async (r, t) => await B.getShadowGraphqlClient().mutate({
17336
+ mutation: Gl,
17322
17337
  errorPolicy: "all",
17323
17338
  variables: {
17324
17339
  id: r,
17325
17340
  template: t
17326
17341
  }
17327
- }), hd = async (r, t) => await b.getShadowGraphqlClient().mutate({
17342
+ }), hd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17328
17343
  mutation: $l,
17329
17344
  errorPolicy: "all",
17330
17345
  variables: {
17331
17346
  id: r,
17332
17347
  template: t
17333
17348
  }
17334
- }), md = async (r) => (await b.getShadowGraphqlClient().query({
17349
+ }), md = async (r) => (await B.getShadowGraphqlClient().query({
17335
17350
  query: Rl,
17336
17351
  errorPolicy: "all",
17337
17352
  variables: {
17338
17353
  email: r
17339
17354
  }
17340
- })).data.customer, gd = async (r, t, e) => await b.getShadowGraphqlClient().query({
17341
- query: Ul,
17355
+ })).data.customer, gd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17356
+ query: Ll,
17342
17357
  errorPolicy: "all",
17343
17358
  fetchPolicy: "no-cache",
17344
17359
  variables: {
@@ -17346,8 +17361,8 @@ const Rl = v`
17346
17361
  offset: e,
17347
17362
  limit: t
17348
17363
  }
17349
- }), pd = async (r, t) => await b.getShadowGraphqlClient().query({
17350
- query: Ll,
17364
+ }), pd = async (r, t) => await B.getShadowGraphqlClient().query({
17365
+ query: Ul,
17351
17366
  errorPolicy: "all",
17352
17367
  fetchPolicy: "no-cache",
17353
17368
  variables: {
@@ -17356,7 +17371,7 @@ const Rl = v`
17356
17371
  context: t
17357
17372
  }), fd = async (r, t, e) => {
17358
17373
  var n;
17359
- const a = await b.getShadowGraphqlClient().query({
17374
+ const a = await B.getShadowGraphqlClient().query({
17360
17375
  query: Da,
17361
17376
  errorPolicy: "all",
17362
17377
  fetchPolicy: "no-cache",
@@ -17380,7 +17395,7 @@ const Rl = v`
17380
17395
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17381
17396
  }, Cd = async (r, t, e) => {
17382
17397
  var n;
17383
- const a = await b.getShadowGraphqlClient().query({
17398
+ const a = await B.getShadowGraphqlClient().query({
17384
17399
  query: Da,
17385
17400
  errorPolicy: "all",
17386
17401
  fetchPolicy: "no-cache",
@@ -17404,7 +17419,7 @@ const Rl = v`
17404
17419
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17405
17420
  }, wd = async (r, t, e) => {
17406
17421
  var n;
17407
- const a = await b.getShadowGraphqlClient().query({
17422
+ const a = await B.getShadowGraphqlClient().query({
17408
17423
  query: Da,
17409
17424
  errorPolicy: "all",
17410
17425
  fetchPolicy: "no-cache",
@@ -17424,8 +17439,8 @@ const Rl = v`
17424
17439
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17425
17440
  }, yd = async (r, t, e) => {
17426
17441
  var n;
17427
- const a = await b.getShadowGraphqlClient().query({
17428
- query: Gl,
17442
+ const a = await B.getShadowGraphqlClient().query({
17443
+ query: zl,
17429
17444
  errorPolicy: "all",
17430
17445
  fetchPolicy: "no-cache",
17431
17446
  variables: {
@@ -17459,7 +17474,7 @@ _ = { __e: function(r, t, e, a) {
17459
17474
  throw r;
17460
17475
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17461
17476
  var ot, Ke, _a, ar = [], _e = [], Xa = _.__b, Za = _.__r, tn = _.diffed, en = _.__c, an = _.unmount;
17462
- function Hl() {
17477
+ function ql() {
17463
17478
  for (var r; r = ar.shift(); )
17464
17479
  if (r.__P && r.__H)
17465
17480
  try {
@@ -17479,7 +17494,7 @@ _.__b = function(r) {
17479
17494
  }, _.diffed = function(r) {
17480
17495
  tn && tn(r);
17481
17496
  var t = r.__c;
17482
- t && t.__H && (t.__H.__h.length && (ar.push(t) !== 1 && _a === _.requestAnimationFrame || ((_a = _.requestAnimationFrame) || ql)(Hl)), t.__H.__.forEach(function(e) {
17497
+ t && t.__H && (t.__H.__h.length && (ar.push(t) !== 1 && _a === _.requestAnimationFrame || ((_a = _.requestAnimationFrame) || Hl)(ql)), t.__H.__.forEach(function(e) {
17483
17498
  e.i && (e.__H = e.i), e.__V !== _e && (e.__ = e.__V), e.i = void 0, e.__V = _e;
17484
17499
  })), Ke = ot = null;
17485
17500
  }, _.__c = function(r, t) {
@@ -17506,7 +17521,7 @@ _.__b = function(r) {
17506
17521
  }), e.__H = void 0, t && _.__e(t, e.__v));
17507
17522
  };
17508
17523
  var nn = typeof requestAnimationFrame == "function";
17509
- function ql(r) {
17524
+ function Hl(r) {
17510
17525
  var t, e = function() {
17511
17526
  clearTimeout(a), nn && cancelAnimationFrame(t), setTimeout(r);
17512
17527
  }, a = setTimeout(e, 100);
@@ -17591,7 +17606,7 @@ const Sd = async (r) => {
17591
17606
  const t = r.map((a) => {
17592
17607
  var n;
17593
17608
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17594
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().query({
17609
+ }).filter((a) => !!a), e = await B.getShadowGraphqlClient().query({
17595
17610
  query: Jl,
17596
17611
  errorPolicy: "all",
17597
17612
  fetchPolicy: "network-only",
@@ -17607,7 +17622,7 @@ const Sd = async (r) => {
17607
17622
  });
17608
17623
  }, vd = async (r) => {
17609
17624
  var e;
17610
- return (e = (await b.getShadowGraphqlClient().query({
17625
+ return (e = (await B.getShadowGraphqlClient().query({
17611
17626
  query: Yl,
17612
17627
  errorPolicy: "all",
17613
17628
  fetchPolicy: "network-only",
@@ -17617,7 +17632,7 @@ const Sd = async (r) => {
17617
17632
  })).data) == null ? void 0 : e.addressValidationJobs;
17618
17633
  }, Ed = async (r) => {
17619
17634
  var e, a;
17620
- return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await b.getShadowGraphqlClient().mutate({
17635
+ return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await B.getShadowGraphqlClient().mutate({
17621
17636
  mutation: Kl,
17622
17637
  errorPolicy: "all",
17623
17638
  fetchPolicy: "network-only",
@@ -17625,11 +17640,11 @@ const Sd = async (r) => {
17625
17640
  id: r.getWorkflowManager().getTransaction().recipient.id
17626
17641
  }
17627
17642
  })).data) == null ? void 0 : a.recipientValidate : void 0;
17628
- }, Bd = async (r) => {
17643
+ }, bd = async (r) => {
17629
17644
  const t = r.map((a) => {
17630
17645
  var n;
17631
17646
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17632
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().mutate({
17647
+ }).filter((a) => !!a), e = await B.getShadowGraphqlClient().mutate({
17633
17648
  mutation: _l,
17634
17649
  errorPolicy: "all",
17635
17650
  fetchPolicy: "network-only",
@@ -17649,12 +17664,12 @@ export {
17649
17664
  Zl as AddressValidationJobStatus,
17650
17665
  Xl as AddressValidationResultConfirmationLevel,
17651
17666
  ad as ArrayInput,
17652
- z as AspectType,
17667
+ G as AspectType,
17653
17668
  vt as AssetNotFoundError,
17654
17669
  Ce as AssetType,
17655
17670
  Jc as BringForwardCommand,
17656
17671
  Yc as BringToBackCommand,
17657
- qc as BringToFrontCommand,
17672
+ Hc as BringToFrontCommand,
17658
17673
  yr as BundleDesignCreationCartAddMode,
17659
17674
  O as CanvasCommand,
17660
17675
  de as CollectionProduct,
@@ -17663,8 +17678,8 @@ export {
17663
17678
  jl as ConversionDataType,
17664
17679
  Wl as ConversionLocation,
17665
17680
  W as CreateElementCommand,
17666
- Un as CreateLayoutCommand,
17667
- Bt as DeleteElementCommand,
17681
+ Ln as CreateLayoutCommand,
17682
+ bt as DeleteElementCommand,
17668
17683
  Eo as DigitalContentStepHandle,
17669
17684
  el as FileUploadGlobalPropertyHandle,
17670
17685
  Ae as FlowExecutionNodeResult,
@@ -17684,16 +17699,16 @@ export {
17684
17699
  vo as InformationStepHandle,
17685
17700
  Ka as IntegrationProduct,
17686
17701
  vr as IntegrationType,
17687
- zc as LayoutElementFactory,
17702
+ Gc as LayoutElementFactory,
17688
17703
  M as LayoutElementType,
17689
17704
  J as LayoutNotFoundError,
17690
- Ht as LayoutRenderingPurpose,
17705
+ qt as LayoutRenderingPurpose,
17691
17706
  po as MaterialStepHandle,
17692
17707
  Se as MisconfigurationError,
17693
17708
  cd as MockWorkflowManager,
17694
17709
  fo as ModelStepHandle,
17695
- Bo as ModuleStepHandle,
17696
- Gc as MoveCommand,
17710
+ bo as ModuleStepHandle,
17711
+ zc as MoveCommand,
17697
17712
  tr as ObjectInput,
17698
17713
  Sl as ObjectInputType,
17699
17714
  Xn as OptionGlobalPropertyHandle,
@@ -17709,9 +17724,9 @@ export {
17709
17724
  wo as QuestionStepHandle,
17710
17725
  Dn as QueueablePromise,
17711
17726
  jc as ResizeCommand,
17712
- qt as ResourceNotFoundError,
17727
+ Ht as ResourceNotFoundError,
17713
17728
  Wc as RotateCommand,
17714
- q as ScaleAxis,
17729
+ H as ScaleAxis,
17715
17730
  Kc as SendBackwardsCommand,
17716
17731
  yo as ShapeStepHandle,
17717
17732
  Sr as ShareActionType,
@@ -17727,18 +17742,18 @@ export {
17727
17742
  So as TextStepHandle,
17728
17743
  ul as Transform,
17729
17744
  Al as TransformCollection,
17730
- G as UnhandledBehaviorError,
17731
- Br as UnitOfMeasurement,
17732
- Hc as UpdateImageSourceCommand,
17745
+ z as UnhandledBehaviorError,
17746
+ br as UnitOfMeasurement,
17747
+ qc as UpdateImageSourceCommand,
17733
17748
  st as Variant,
17734
17749
  Ro as WorkflowExperienceEventType,
17735
17750
  Oo as WorkflowExperienceImpl,
17736
- U as assetService,
17751
+ L as assetService,
17737
17752
  Kr as browserColorToHex,
17738
- Lc as cmPerPixel,
17753
+ Uc as cmPerPixel,
17739
17754
  Fo as createDesign,
17740
17755
  Oc as currentDirection,
17741
- bc as dataUrlFromExternalUrl,
17756
+ Bc as dataUrlFromExternalUrl,
17742
17757
  Ye as designService,
17743
17758
  pe as determineCorrectFontSizeAndLines,
17744
17759
  Vn as digitalContentStepService,
@@ -17747,7 +17762,7 @@ export {
17747
17762
  hd as duplicateTransaction,
17748
17763
  at as fetchAsString,
17749
17764
  Fc as findAngle,
17750
- L as findElement,
17765
+ U as findElement,
17751
17766
  Dc as findPmsColors,
17752
17767
  Vt as frameDataCache,
17753
17768
  wt as frameStepService,
@@ -17784,15 +17799,15 @@ export {
17784
17799
  Sd as getValidationJobsForWorkflowExperiences,
17785
17800
  nd as getWorkflow,
17786
17801
  er as getWorkflows,
17787
- b as graphQlManager,
17802
+ B as graphQlManager,
17788
17803
  ge as illustrationStepService,
17789
17804
  kc as isCloseToValue,
17790
17805
  Nt as loadFont,
17791
17806
  Pc as matchHexToPms,
17792
- zn as materialStepService,
17807
+ Gn as materialStepService,
17793
17808
  cl as metafieldManager,
17794
- Uc as mmPerPixel,
17795
- Gn as modelStepService,
17809
+ Lc as mmPerPixel,
17810
+ zn as modelStepService,
17796
17811
  Ca as modifySVGColors,
17797
17812
  Wn as moduleStepService,
17798
17813
  dd as nameBundle,
@@ -17803,16 +17818,16 @@ export {
17803
17818
  N as persistenceService,
17804
17819
  jn as pictureStepService,
17805
17820
  Ic as pmsToRgb,
17806
- Hn as questionStepService,
17807
- Bc as registerFetchImplementation,
17821
+ qn as questionStepService,
17822
+ bc as registerFetchImplementation,
17808
17823
  Ec as registerWindowImplementation,
17809
- za as rehydrateSerializedLayout,
17810
- qr as rgbToPms,
17824
+ Ga as rehydrateSerializedLayout,
17825
+ Hr as rgbToPms,
17811
17826
  le as rotateAroundPoint,
17812
17827
  pa as sanitizeSvgTree,
17813
17828
  $r as setBearerAuthenticationToken,
17814
17829
  gn as setCanvasModule,
17815
- zt as shapeStepService,
17830
+ Gt as shapeStepService,
17816
17831
  hs as shortenUrl,
17817
17832
  mt as spiffCoreConfiguration,
17818
17833
  Xc as stepAspectValuesToDesignInputSteps,
@@ -17822,7 +17837,7 @@ export {
17822
17837
  j as textStepService,
17823
17838
  Es as toast,
17824
17839
  Ed as validateWorkflowExperienceRecipient,
17825
- Bd as validateWorkflowExperienceRecipients,
17826
- bt as xmlSerializer
17840
+ bd as validateWorkflowExperienceRecipients,
17841
+ Bt as xmlSerializer
17827
17842
  };
17828
17843
  //# sourceMappingURL=index.mjs.map