@spiffcommerce/core 27.3.0-beta.05f252d3-708a-513e-8231-67285a5cd0d1 → 27.3.0-beta.6900ae7a-a6b0-5e73-9fc6-0dec4847e8e9

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
@@ -23,7 +23,7 @@ import { split as Ze } from "unicode-default-word-boundary";
23
23
  import dn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), z = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(z || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), vr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(vr || {}), 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 || {}), Er = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(Er || {}), Br = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Br || {}), br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Ir = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Ir || {}), 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 || {}), Pr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Pr || {});
26
+ var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), z = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(z || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), vr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(vr || {}), 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 || {}), Er = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(br || {}), Br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(Br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Ir = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Ir || {}), 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 || {}), Pr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Pr || {});
27
27
  class An extends Error {
28
28
  constructor(t) {
29
29
  super(t), this.name = this.constructor.name;
@@ -49,7 +49,7 @@ class vt extends _t {
49
49
  super(`Asset not found for variant: ${t.name}`), this.variant = t;
50
50
  }
51
51
  }
52
- class Ht extends _t {
52
+ class qt extends _t {
53
53
  constructor(t) {
54
54
  super(`Resource not found for asset: ${t.name}`), this.asset = t;
55
55
  }
@@ -228,7 +228,7 @@ const un = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
228
228
  const n = a.load();
229
229
  return Oe.set(t, n), n;
230
230
  }
231
- }, bt = () => {
231
+ }, Bt = () => {
232
232
  if (Tt([typeof XMLSerializer]))
233
233
  return new XMLSerializer();
234
234
  const r = Xt();
@@ -368,7 +368,7 @@ class jr {
368
368
  });
369
369
  }
370
370
  }
371
- const b = new jr();
371
+ const B = new jr();
372
372
  let aa, na;
373
373
  const gt = (r, t, e) => {
374
374
  if (aa !== void 0)
@@ -417,11 +417,11 @@ function ga() {
417
417
  return $e === void 0 && ($e = Tr()), $e;
418
418
  }
419
419
  let se = null;
420
- const qr = (r) => new Promise((t) => {
420
+ const Hr = (r) => new Promise((t) => {
421
421
  if (ke(r) !== "image/jpeg")
422
422
  return t(1);
423
423
  mr(r).then((a) => t(a || 1)).catch(() => t(1));
424
- }), Hr = async () => {
424
+ }), qr = async () => {
425
425
  if (se !== null)
426
426
  return !se;
427
427
  const t = await Zt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
@@ -432,11 +432,11 @@ const qr = (r) => new Promise((t) => {
432
432
  }, Jr = async (r) => {
433
433
  var A;
434
434
  const t = await Rr(r), e = await Zt(t), [a, n] = Yr(e);
435
- if (!await Hr()) {
435
+ if (!await qr()) {
436
436
  const u = gt(a, n);
437
437
  return (A = u.getContext("2d")) == null || A.drawImage(e, 0, 0, a, n), u;
438
438
  }
439
- const s = await qr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
439
+ const s = await Hr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
440
440
  switch (s) {
441
441
  case 2:
442
442
  d.translate(o, 0), d.scale(-1, 1);
@@ -3339,7 +3339,7 @@ const oe = (r) => {
3339
3339
  }
3340
3340
  });
3341
3341
  });
3342
- }, vn = (r) => bt().serializeToString(r), fa = (r, t, e, a, n) => {
3342
+ }, vn = (r) => Bt().serializeToString(r), fa = (r, t, e, a, n) => {
3343
3343
  const i = yn(r);
3344
3344
  if (!i)
3345
3345
  throw new Error("Failed to read SVG.");
@@ -3371,7 +3371,7 @@ const oe = (r) => {
3371
3371
  s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
3372
3372
  }
3373
3373
  });
3374
- const i = bt().serializeToString(e);
3374
+ const i = Bt().serializeToString(e);
3375
3375
  return {
3376
3376
  colors: a,
3377
3377
  svg: i
@@ -3508,14 +3508,14 @@ const oe = (r) => {
3508
3508
  ...AssetFields
3509
3509
  }
3510
3510
  }
3511
- `, ve = async (r) => (await b.getShadowGraphqlClient().query({
3511
+ `, ve = async (r) => (await B.getShadowGraphqlClient().query({
3512
3512
  query: oi,
3513
3513
  errorPolicy: "all",
3514
3514
  fetchPolicy: "no-cache",
3515
3515
  variables: {
3516
3516
  keys: r
3517
3517
  }
3518
- })).data.assets, Ai = async (r) => (await b.getShadowGraphqlClient().query({
3518
+ })).data.assets, Ai = async (r) => (await B.getShadowGraphqlClient().query({
3519
3519
  query: li,
3520
3520
  errorPolicy: "all",
3521
3521
  variables: {
@@ -3523,7 +3523,7 @@ const oe = (r) => {
3523
3523
  }
3524
3524
  })).data.materials, ui = async (r, t, e, a, n) => {
3525
3525
  var s;
3526
- return (s = (await b.getShadowGraphqlClient().mutate({
3526
+ return (s = (await B.getShadowGraphqlClient().mutate({
3527
3527
  mutation: ci,
3528
3528
  errorPolicy: "all",
3529
3529
  fetchPolicy: "no-cache",
@@ -3642,7 +3642,7 @@ class hi {
3642
3642
  }
3643
3643
  const n = (async () => {
3644
3644
  var s, o;
3645
- const i = await b.getShadowGraphqlClient().mutate({
3645
+ const i = await B.getShadowGraphqlClient().mutate({
3646
3646
  mutation: di,
3647
3647
  fetchPolicy: "no-cache",
3648
3648
  errorPolicy: "all",
@@ -3680,7 +3680,7 @@ class hi {
3680
3680
  if (!s)
3681
3681
  throw new Ft("Failed to read SVG.");
3682
3682
  ni(s);
3683
- const l = bt().serializeToString(s);
3683
+ const l = Bt().serializeToString(s);
3684
3684
  return {
3685
3685
  name: t.name,
3686
3686
  blob: new Blob([l], { type: "image/svg+xml" })
@@ -3833,7 +3833,7 @@ class mi {
3833
3833
  this.disabled = t;
3834
3834
  }
3835
3835
  }
3836
- const Jt = new mi(), Bn = v`
3836
+ const Jt = new mi(), bn = v`
3837
3837
  fragment OptionFields on Option {
3838
3838
  id
3839
3839
  name
@@ -3873,14 +3873,14 @@ const Jt = new mi(), Bn = v`
3873
3873
  `, gi = v`
3874
3874
  ${te(!1)}
3875
3875
  ${wa}
3876
- ${Bn}
3876
+ ${bn}
3877
3877
  query GetOptions($ids: [String]!) {
3878
3878
  options(ids: $ids) {
3879
3879
  ...OptionFields
3880
3880
  }
3881
3881
  }
3882
3882
  `, pi = async (r) => {
3883
- const t = await b.getShadowGraphqlClient().query({
3883
+ const t = await B.getShadowGraphqlClient().query({
3884
3884
  query: gi,
3885
3885
  errorPolicy: "all",
3886
3886
  variables: {
@@ -3948,7 +3948,7 @@ class wi {
3948
3948
  }
3949
3949
  }
3950
3950
  }
3951
- const Y = new wi(), bn = v`
3951
+ const Y = new wi(), Bn = v`
3952
3952
  fragment ActiveIntegrationFields on Integration {
3953
3953
  id
3954
3954
  logo
@@ -4093,7 +4093,7 @@ const Y = new wi(), bn = v`
4093
4093
  ${Te}
4094
4094
  ${In}
4095
4095
  ${Pn}
4096
- ${bn}
4096
+ ${Bn}
4097
4097
  query ReadTransactions($ids: [String]!) {
4098
4098
  transactions(ids: $ids) {
4099
4099
  customLogoLink
@@ -4256,7 +4256,7 @@ const Y = new wi(), bn = v`
4256
4256
  id
4257
4257
  }
4258
4258
  }
4259
- `, Bi = v`
4259
+ `, bi = v`
4260
4260
  query ReadTransactionForDesignCreation($id: String!) {
4261
4261
  transactions(ids: [$id]) {
4262
4262
  id
@@ -4322,7 +4322,7 @@ const Y = new wi(), bn = v`
4322
4322
  workflowViewerReadOnlyLink
4323
4323
  }
4324
4324
  }
4325
- `, bi = v`
4325
+ `, Bi = v`
4326
4326
  ${Pn}
4327
4327
  query ReadTransactionForShareActions($id: String!) {
4328
4328
  transactions(ids: [$id]) {
@@ -4579,7 +4579,7 @@ const Y = new wi(), bn = v`
4579
4579
  `, Ni = (r) => v`
4580
4580
  ${te(r)}
4581
4581
  ${wa}
4582
- ${Bn}
4582
+ ${bn}
4583
4583
  ${xi}
4584
4584
  ${ki}
4585
4585
  ${Mi}
@@ -5100,7 +5100,7 @@ const Y = new wi(), bn = v`
5100
5100
  }
5101
5101
  }
5102
5102
  `, $i = v`
5103
- ${bn}
5103
+ ${Bn}
5104
5104
  ${Ne}
5105
5105
  query GetCurrentIntegration($themeConfigurationId: String) {
5106
5106
  currentIntegration {
@@ -5217,7 +5217,7 @@ const Y = new wi(), bn = v`
5217
5217
  silentSteps: r.silentSteps.filter((a) => yt(a, t))
5218
5218
  };
5219
5219
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5220
- }, Dt = (r, t) => r.map((e) => ji(e, t)).filter((e) => e !== null), qi = async (r, t, e = !1) => {
5220
+ }, Dt = (r, t) => r.map((e) => ji(e, t)).filter((e) => e !== null), Hi = async (r, t, e = !1) => {
5221
5221
  var s;
5222
5222
  const a = Dt(r, t), n = [];
5223
5223
  for (const o of a)
@@ -5312,7 +5312,7 @@ class kn {
5312
5312
  const Q = () => {
5313
5313
  const r = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
5314
5314
  return r() + r() + "-" + r() + "-" + r() + "-" + r() + "-" + r() + r() + r();
5315
- }, Hi = ({
5315
+ }, qi = ({
5316
5316
  backgroundColor: r,
5317
5317
  outlineColor: t,
5318
5318
  borderRadius: e,
@@ -5328,11 +5328,11 @@ const Q = () => {
5328
5328
  width: u
5329
5329
  }) => {
5330
5330
  var E;
5331
- 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__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((B, I) => (
5331
+ 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__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((b, I) => (
5332
5332
  /* @ts-ignore */
5333
- /* @__PURE__ */ x("color-profile", { name: B.name, xlinkHref: B.key, children: " " }, I)
5334
- )), S = n.map((B) => ({
5335
- ...B,
5333
+ /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, I)
5334
+ )), S = n.map((b) => ({
5335
+ ...b,
5336
5336
  _renderingConfiguration: a,
5337
5337
  mask: l ? `url(#viewmask-${f})` : void 0
5338
5338
  })), y = va(S);
@@ -5371,8 +5371,8 @@ const Q = () => {
5371
5371
  "g",
5372
5372
  {
5373
5373
  id: "element-group",
5374
- clipPath: a.purpose === qt.FreeDesign ? "url(#viewboxClip)" : void 0,
5375
- children: y.map((B) => On(B)).filter((B) => !!B)
5374
+ clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
5375
+ children: y.map((b) => On(b)).filter((b) => !!b)
5376
5376
  }
5377
5377
  ),
5378
5378
  l && /* @__PURE__ */ x(
@@ -5444,22 +5444,22 @@ const Q = () => {
5444
5444
  y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
5445
5445
  }), Pt = (r) => {
5446
5446
  switch (r) {
5447
- case H.North:
5448
- return H.East;
5449
- case H.East:
5450
- return H.South;
5451
- case H.South:
5452
- return H.West;
5453
- case H.West:
5454
- return H.North;
5455
- case H.Northwest:
5456
- return H.Northeast;
5457
- case H.Northeast:
5458
- return H.Southeast;
5459
- case H.Southeast:
5460
- return H.Southwest;
5461
- case H.Southwest:
5462
- return H.Northwest;
5447
+ case q.North:
5448
+ return q.East;
5449
+ case q.East:
5450
+ return q.South;
5451
+ case q.South:
5452
+ return q.West;
5453
+ case q.West:
5454
+ return q.North;
5455
+ case q.Northwest:
5456
+ return q.Northeast;
5457
+ case q.Northeast:
5458
+ return q.Southeast;
5459
+ case q.Southeast:
5460
+ return q.Southwest;
5461
+ case q.Southwest:
5462
+ return q.Northwest;
5463
5463
  }
5464
5464
  }, Wc = (r, t) => t > 45 && t <= 135 ? Pt(r) : t > 135 && t <= 225 ? Pt(Pt(r)) : t > 225 && t <= 315 ? Pt(Pt(Pt(r))) : r, jc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5465
5465
  const a = pt(r.rotation), n = {
@@ -5491,7 +5491,7 @@ const Q = () => {
5491
5491
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5492
5492
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5493
5493
  };
5494
- }, qc = 0.352778, Hc = 0.035277, Mn = (r) => {
5494
+ }, Hc = 0.352778, qc = 0.035277, Mn = (r) => {
5495
5495
  const t = r.rotation || 0, e = pt(t), a = Math.cos(e), n = -Math.sin(e);
5496
5496
  return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5497
5497
  "g",
@@ -5577,8 +5577,8 @@ const Q = () => {
5577
5577
  /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5578
5578
  ] })
5579
5579
  ] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5580
- var w, S, y, E, B, I, D, F, k, T;
5581
- 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;
5580
+ var w, S, y, E, b, I, D, F, k, T;
5581
+ 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;
5582
5582
  return [(F = r.pattern) != null && F.svg ? {
5583
5583
  id: `${t}-contents`,
5584
5584
  type: M.Illustration,
@@ -5741,17 +5741,17 @@ const Ki = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5741
5741
  let y = 0;
5742
5742
  const E = A.getAttribute("text-anchor");
5743
5743
  E === "middle" ? y = S / 2 : E === "end" && (y = S);
5744
- const B = g.getPath(
5744
+ const b = g.getPath(
5745
5745
  A.innerHTML,
5746
5746
  parseFloat(A.getAttribute("x") ?? "0") - y,
5747
5747
  parseFloat(A.getAttribute("y") ?? "0"),
5748
5748
  parseInt(u.getAttribute("font-size") ?? "72")
5749
5749
  );
5750
- B.fill = p, B.stroke = f, B.strokeWidth = parseFloat(C ?? "0");
5751
- const I = B.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5750
+ b.fill = p, b.stroke = f, b.strokeWidth = parseFloat(C ?? "0");
5751
+ const I = b.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5752
5752
  h.appendChild(F);
5753
5753
  }
5754
- return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
5754
+ return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5755
5755
  }, Ee = (r, t, e, a) => Math.max(es(r.join(`
5756
5756
  `), e, a), t), La = (r, t, e, a, n, i) => {
5757
5757
  const s = (i || ya) * n.getApproximateHeight(), o = t.split(`
@@ -5861,7 +5861,7 @@ const Ki = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5861
5861
  stripControlCharacters: !0,
5862
5862
  vertical: !1,
5863
5863
  uppercase: !1
5864
- }, Be = (r, t = Va) => {
5864
+ }, be = (r, t = Va) => {
5865
5865
  const e = { ...Va, ...t };
5866
5866
  let a = r || "";
5867
5867
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
@@ -6138,7 +6138,7 @@ class ls {
6138
6138
  const On = (r) => r.type === M.Image ? /* @__PURE__ */ x(Mn, { ...r }, r.id) : r.type === M.Frame ? /* @__PURE__ */ x(Yi, { ...r }, r.id) : r.type === M.Illustration ? /* @__PURE__ */ x(os, { ...r }, r.id) : r.type === M.Textbox ? /* @__PURE__ */ x(rs, { ...r }, r.id) : r.type === M.Group ? /* @__PURE__ */ x(Tn, { ...r }, r.id) : null, Sa = (r, t, e) => {
6139
6139
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6140
6140
  return /* @__PURE__ */ x(
6141
- Hi,
6141
+ qi,
6142
6142
  {
6143
6143
  preserveAspectRatio: void 0,
6144
6144
  elements: n,
@@ -6271,7 +6271,7 @@ const ae = (r) => {
6271
6271
  return At.set(r, s), s;
6272
6272
  }
6273
6273
  if ((((e = r.split(".").pop()) == null ? void 0 : e.toLowerCase()) ?? "") === "svg") {
6274
- const a = await Ba(r), n = a.width, i = a.height, s = {
6274
+ const a = await ba(r), n = a.width, i = a.height, s = {
6275
6275
  src: r,
6276
6276
  width: n,
6277
6277
  height: i,
@@ -6287,7 +6287,7 @@ const ae = (r) => {
6287
6287
  };
6288
6288
  return At.set(r, i), i;
6289
6289
  }
6290
- }, Ba = async (r) => {
6290
+ }, ba = async (r) => {
6291
6291
  const t = await at(r);
6292
6292
  return Un(t);
6293
6293
  }, za = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), Un = (r) => {
@@ -6327,7 +6327,7 @@ const ae = (r) => {
6327
6327
  const s = dt().parseFromString(r, "image/svg+xml").firstElementChild;
6328
6328
  if (!s)
6329
6329
  throw new Error("Failed to read SVG");
6330
- const l = bt().serializeToString(s), c = gt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
6330
+ const l = Bt().serializeToString(s), c = gt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
6331
6331
  anonymousCrossOrigin: !0,
6332
6332
  ignoreDimensions: !1,
6333
6333
  createCanvas: gt,
@@ -6424,7 +6424,7 @@ class Jc {
6424
6424
  const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Nt(n), o = {
6425
6425
  assetUrl: n,
6426
6426
  name: s.names.fullName.en
6427
- }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Be(c, {
6427
+ }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = be(c, {
6428
6428
  vertical: a.vertical,
6429
6429
  uppercase: a.uppercase
6430
6430
  }), A = e.region || await Ut(t, M.Textbox, n, {
@@ -6783,7 +6783,7 @@ class W extends O {
6783
6783
  return a !== void 0 ? a + 1 : 0;
6784
6784
  }
6785
6785
  }
6786
- class Bt extends O {
6786
+ class bt extends O {
6787
6787
  constructor(t) {
6788
6788
  super(), this.id = t;
6789
6789
  }
@@ -7211,7 +7211,7 @@ class nd extends O {
7211
7211
  };
7212
7212
  }
7213
7213
  }
7214
- class qa {
7214
+ class Ha {
7215
7215
  constructor(t, e, a) {
7216
7216
  this.processRegion = async (n) => {
7217
7217
  var l, c, d, A;
@@ -7378,7 +7378,7 @@ class Cs {
7378
7378
  async () => {
7379
7379
  const g = await i();
7380
7380
  if (!g.link || !g.link)
7381
- throw new Ht(g.asset);
7381
+ throw new qt(g.asset);
7382
7382
  h({
7383
7383
  rel: "mpeg4",
7384
7384
  href: g.link
@@ -7391,7 +7391,7 @@ class Cs {
7391
7391
  40
7392
7392
  );
7393
7393
  });
7394
- t.forEach((h) => a.getCommandDispatcher()(new Bt(h.id)));
7394
+ t.forEach((h) => a.getCommandDispatcher()(new bt(h.id)));
7395
7395
  const o = n.data.baseUrl.slice(0, 4) === "http" ? "" : "https://", l = new URL(o + n.data.baseUrl);
7396
7396
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7397
7397
  const c = l.toString();
@@ -7442,7 +7442,7 @@ class Cs {
7442
7442
  }
7443
7443
  }
7444
7444
  const Gn = new Cs();
7445
- class be {
7445
+ class Be {
7446
7446
  constructor() {
7447
7447
  this.frameSourceSvg = async (t, e) => {
7448
7448
  if (!t)
@@ -7453,7 +7453,7 @@ class be {
7453
7453
  const n = a.fileLink;
7454
7454
  if (n)
7455
7455
  return at(n, !0);
7456
- throw new Ht(a);
7456
+ throw new qt(a);
7457
7457
  };
7458
7458
  }
7459
7459
  async init(t, e, a) {
@@ -7556,7 +7556,7 @@ class be {
7556
7556
  }
7557
7557
  selectImage(t, e, a, n = !0) {
7558
7558
  var l;
7559
- const i = be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7559
+ const i = Be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7560
7560
  if (s && s === i)
7561
7561
  return Promise.resolve();
7562
7562
  a.setEditedStatus(t.stepName, !0);
@@ -7621,7 +7621,7 @@ class be {
7621
7621
  }
7622
7622
  async loadPatternFromString(t, e, a = !0, n = void 0, i) {
7623
7623
  if (t.endsWith("svg")) {
7624
- const s = await Ba(t), o = s.width, l = s.height, c = await at(t);
7624
+ const s = await ba(t), o = s.width, l = s.height, c = await at(t);
7625
7625
  if (i) {
7626
7626
  const u = c.match(/<(image|linearGradient|radialGradient)(\s|>|\/>)/gim);
7627
7627
  if (u && u.length > 0)
@@ -7733,7 +7733,7 @@ class be {
7733
7733
  i && i(!0);
7734
7734
  const c = t.data.initialZoomLevel, d = await Promise.all(
7735
7735
  t.data.regions.map(async (m, g) => {
7736
- const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new Bt(I.id)), w = f ? Ea(
7736
+ const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new bt(I.id)), w = f ? Ea(
7737
7737
  f,
7738
7738
  p,
7739
7739
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7748,11 +7748,11 @@ class be {
7748
7748
  scaleX: (w == null ? void 0 : w.zoom) || 1,
7749
7749
  scaleY: (w == null ? void 0 : w.zoom) || 1,
7750
7750
  rotation: 0
7751
- } : void 0, y = Q(), B = n.getLayouts().find((I) => I.panelId === m.panelId);
7752
- if (!B)
7751
+ } : void 0, y = Q(), b = n.getLayouts().find((I) => I.panelId === m.panelId);
7752
+ if (!b)
7753
7753
  throw new J(m);
7754
7754
  return {
7755
- command: this.getCreateElementCommand(y, m, B, {
7755
+ command: this.getCreateElementCommand(y, m, b, {
7756
7756
  frameData: p,
7757
7757
  pattern: S,
7758
7758
  disablePlaceholder: t.data.disablePlaceholder,
@@ -7797,11 +7797,11 @@ class be {
7797
7797
  const a = t.fileLink;
7798
7798
  if (a)
7799
7799
  return a;
7800
- throw new Ht(t);
7800
+ throw new qt(t);
7801
7801
  }
7802
7802
  async loadPatternFromAsset(t, e, a, n) {
7803
7803
  var c, d;
7804
- const i = be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7804
+ const i = Be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7805
7805
  if (!o)
7806
7806
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7807
7807
  try {
@@ -7828,7 +7828,7 @@ class be {
7828
7828
  ), this.validateColorCount(e, a);
7829
7829
  }
7830
7830
  }
7831
- const wt = new be();
7831
+ const wt = new Be();
7832
7832
  class ws {
7833
7833
  async getIllustrationBody(t) {
7834
7834
  return new Promise((e) => {
@@ -7995,14 +7995,14 @@ class ws {
7995
7995
  if (!t.data || !t.data.regions)
7996
7996
  throw new Se(t, "Missing regions.");
7997
7997
  n(!0);
7998
- const s = a.map((C) => new Bt(C.id));
7998
+ const s = a.map((C) => new bt(C.id));
7999
7999
  t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
8000
8000
  const o = e.asset;
8001
8001
  if (!o)
8002
8002
  throw new vt(e);
8003
8003
  const l = o.fileLink;
8004
8004
  if (!l)
8005
- throw new Ht(o);
8005
+ throw new qt(o);
8006
8006
  const c = await lt(await this.getIllustrationBody(l)), d = await Kt(c.svg), A = (C) => {
8007
8007
  const w = i.getLayouts().find((y) => y.panelId === C.panelId);
8008
8008
  if (!w)
@@ -8040,21 +8040,21 @@ class ws {
8040
8040
  const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
8041
8041
  if (C.length !== 0) {
8042
8042
  const y = {};
8043
- (((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((B) => {
8043
+ (((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((b) => {
8044
8044
  var D;
8045
- const I = C.find((F) => F.channelNumber === B.number);
8046
- I && (y[`${B.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
8045
+ const I = C.find((F) => F.channelNumber === b.number);
8046
+ I && (y[`${b.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
8047
8047
  }), await this.changeColors(
8048
8048
  t,
8049
- u.map((B) => B.regionElement),
8049
+ u.map((b) => b.regionElement),
8050
8050
  i,
8051
8051
  () => i.getCommandContext().getAllLayouts(),
8052
8052
  new Map(Object.entries(y))
8053
8053
  );
8054
8054
  }
8055
8055
  if (t.data.colorPickerEnabled) {
8056
- const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), B = y.length === 1 && E.length === 1;
8057
- if (B) {
8056
+ const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), b = y.length === 1 && E.length === 1;
8057
+ if (b) {
8058
8058
  const I = y[0], D = E[0];
8059
8059
  await this.changeColors(
8060
8060
  t,
@@ -8064,7 +8064,7 @@ class ws {
8064
8064
  /* @__PURE__ */ new Map([[D, I.variant.color]])
8065
8065
  );
8066
8066
  }
8067
- !B && C.length === 0 && await this.changeColors(
8067
+ !b && C.length === 0 && await this.changeColors(
8068
8068
  t,
8069
8069
  u.map((I) => I.regionElement),
8070
8070
  i,
@@ -8280,7 +8280,7 @@ class vs {
8280
8280
  if (!p)
8281
8281
  return console.error(`Can not find layout for region: ${u.panelId}`), null;
8282
8282
  const f = [];
8283
- return h && f.push(new Bt(m)), f.push(
8283
+ return h && f.push(new bt(m)), f.push(
8284
8284
  new W(
8285
8285
  {
8286
8286
  stepRegion: u,
@@ -8353,7 +8353,7 @@ class vs {
8353
8353
  return n(""), { input: e, helperData: {} };
8354
8354
  }
8355
8355
  }
8356
- const qn = new vs();
8356
+ const Hn = new vs();
8357
8357
  class Es {
8358
8358
  async init(t, e, a) {
8359
8359
  const n = t.option;
@@ -8402,7 +8402,7 @@ class Es {
8402
8402
  if (!s)
8403
8403
  return console.error("No URL for picture!"), null;
8404
8404
  n(!0), t.mandatory && a.setMandatoryFulfilled(t.stepName, !1);
8405
- const l = a.getRegionElements(t.stepName).map((A) => new Bt(A.id)), c = (A) => {
8405
+ const l = a.getRegionElements(t.stepName).map((A) => new bt(A.id)), c = (A) => {
8406
8406
  const h = a.getLayouts().find((g) => g.panelId === A.panelId);
8407
8407
  if (!h)
8408
8408
  throw new J(A);
@@ -8445,8 +8445,8 @@ class Es {
8445
8445
  };
8446
8446
  }
8447
8447
  }
8448
- const Hn = new Es();
8449
- class Bs {
8448
+ const qn = new Es();
8449
+ class bs {
8450
8450
  async init(t, e, a) {
8451
8451
  const n = t.option;
8452
8452
  if (!n)
@@ -8504,8 +8504,8 @@ class Bs {
8504
8504
  };
8505
8505
  }
8506
8506
  }
8507
- const Yn = new Bs();
8508
- class bs {
8507
+ const Yn = new bs();
8508
+ class Bs {
8509
8509
  constructor() {
8510
8510
  this.shapeFillId = "spiff-fill-shape";
8511
8511
  }
@@ -8677,7 +8677,7 @@ class bs {
8677
8677
  }
8678
8678
  }
8679
8679
  }
8680
- const zt = new bs();
8680
+ const zt = new Bs();
8681
8681
  class Is {
8682
8682
  constructor() {
8683
8683
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
@@ -8703,7 +8703,7 @@ class Is {
8703
8703
  );
8704
8704
  }
8705
8705
  }
8706
- const Ps = new Is(), qe = (r, t, e, a, n) => {
8706
+ const Ps = new Is(), He = (r, t, e, a, n) => {
8707
8707
  if (t.some((d) => d == null))
8708
8708
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8709
8709
  let i = t.map((d) => d.split(`
@@ -8735,19 +8735,19 @@ const Ps = new Is(), qe = (r, t, e, a, n) => {
8735
8735
  const o = Et(t.assetUrl), l = o.getFont();
8736
8736
  if (n.size) {
8737
8737
  const u = r / l.unitsPerEm;
8738
- return [i, s] = qe(e, a, r, u, o), [n.size, i, s];
8738
+ return [i, s] = He(e, a, r, u, o), [n.size, i, s];
8739
8739
  }
8740
8740
  const c = 6;
8741
8741
  let d = c - Ve;
8742
8742
  if (a.length > 0) {
8743
8743
  let u = a, h = 0;
8744
8744
  for (; (!n.maxSize || d <= n.maxSize) && u; )
8745
- d += Ve, h = d / l.unitsPerEm, [u, s] = qe(e, a, d, h, o);
8745
+ d += Ve, h = d / l.unitsPerEm, [u, s] = He(e, a, d, h, o);
8746
8746
  }
8747
8747
  d > c && (d -= Ve), n.minSize && d < n.minSize && (d = n.minSize);
8748
8748
  const A = d / l.unitsPerEm;
8749
- return [i, s] = qe(e, a, d, A, o), [d, i, s];
8750
- }, He = 30;
8749
+ return [i, s] = He(e, a, d, A, o), [d, i, s];
8750
+ }, qe = 30;
8751
8751
  class Ie extends Error {
8752
8752
  constructor(t) {
8753
8753
  super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Ie.name;
@@ -8983,7 +8983,7 @@ class Fs {
8983
8983
  }
8984
8984
  getProcessedInput(t, e, a) {
8985
8985
  const n = a ? t : this.injectReplaceableText(t, e);
8986
- return Be(n, {
8986
+ return be(n, {
8987
8987
  vertical: e.vertical,
8988
8988
  uppercase: e.uppercase
8989
8989
  });
@@ -9056,9 +9056,9 @@ class Fs {
9056
9056
  let w = (A = n.storage) == null ? void 0 : A.text;
9057
9057
  const S = e.getWorkflowExperience().getBundle();
9058
9058
  if (S && t.globalPropertyAspectConfigurations) {
9059
- const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((B) => {
9059
+ const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((b) => {
9060
9060
  var I;
9061
- return B.type === z.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(B.name));
9061
+ return b.type === z.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(b.name));
9062
9062
  });
9063
9063
  if (E) {
9064
9064
  const I = S.getGlobalPropertyStateManager().getAspect(E.name);
@@ -9071,7 +9071,7 @@ class Fs {
9071
9071
  f,
9072
9072
  async () => {
9073
9073
  e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
9074
- const y = o.map((B) => new ja(B.id, p)), E = new $(y);
9074
+ const y = o.map((b) => new ja(b.id, p)), E = new $(y);
9075
9075
  e.getCommandDispatcher()(E);
9076
9076
  }
9077
9077
  ), o.length === 0 && l) {
@@ -9168,7 +9168,7 @@ class Fs {
9168
9168
  throw new vt(t);
9169
9169
  const a = e.fileLink;
9170
9170
  if (!a)
9171
- throw new Ht(e);
9171
+ throw new qt(e);
9172
9172
  const n = await Nt(a);
9173
9173
  return {
9174
9174
  assetUrl: a,
@@ -9192,7 +9192,7 @@ class Fs {
9192
9192
  }
9193
9193
  const m = await this.changeInputTextWithRegion(
9194
9194
  t,
9195
- t.data.size || He,
9195
+ t.data.size || qe,
9196
9196
  A,
9197
9197
  a.text || "",
9198
9198
  a,
@@ -9217,7 +9217,7 @@ class Fs {
9217
9217
  i
9218
9218
  ), m = await this.changeInputTextWithRegion(
9219
9219
  t,
9220
- t.data.size || He,
9220
+ t.data.size || qe,
9221
9221
  A,
9222
9222
  ((u = h[0]) == null ? void 0 : u.newElement.input) || a.text || t.data.defaultText || "",
9223
9223
  a,
@@ -9279,7 +9279,7 @@ class Fs {
9279
9279
  stepName: t,
9280
9280
  align: this.textAlign(a),
9281
9281
  fill: i.color ? i.color : w,
9282
- fontSize: a.size || He,
9282
+ fontSize: a.size || qe,
9283
9283
  fontData: n,
9284
9284
  id: m,
9285
9285
  layer: A.layer,
@@ -9298,7 +9298,7 @@ class Fs {
9298
9298
  curved: a.curved,
9299
9299
  paths: a.paths,
9300
9300
  fillSpotColorDefinition: f
9301
- }, y = [], E = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
9301
+ }, y = [], E = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
9302
9302
  if (!S.fontData)
9303
9303
  throw new G("Failed to resolve font data for text.");
9304
9304
  const [I, D] = pe(
@@ -9315,7 +9315,7 @@ class Fs {
9315
9315
  [l],
9316
9316
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9317
9317
  );
9318
- E.set(S.id, I), B.set(S.id, D);
9318
+ E.set(S.id, I), b.set(S.id, D);
9319
9319
  const F = a.curved || a.vertical ? l : (D || []).join(`
9320
9320
  `);
9321
9321
  y.push(
@@ -9376,13 +9376,13 @@ class Fs {
9376
9376
  return d && d(!0), { info: "0" };
9377
9377
  const S = s.getProfanities(), y = Ze(u.toLowerCase());
9378
9378
  for (const E of y)
9379
- for (const B in S) {
9380
- const I = S[B].toLowerCase().replace(/\s/g, "");
9379
+ for (const b in S) {
9380
+ const I = S[b].toLowerCase().replace(/\s/g, "");
9381
9381
  if (E === I)
9382
9382
  return l(!0), { error: "Blocked profanity." };
9383
9383
  }
9384
9384
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
9385
- `) || 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() });
9385
+ `) || 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() });
9386
9386
  })();
9387
9387
  if (f.error) {
9388
9388
  c(f.error);
@@ -9444,7 +9444,7 @@ function Rs(r, t, e, a) {
9444
9444
  const n = e / r, i = a / t;
9445
9445
  return n > 1 && i > 1 ? Math.min(n, i) : n > 1 && i < 1 ? i : n < 1 && i > 1 ? n : Math.min(n, i);
9446
9446
  }
9447
- const Ha = {
9447
+ const qa = {
9448
9448
  m: ["x", "y"],
9449
9449
  z: [],
9450
9450
  l: ["x", "y"],
@@ -9474,7 +9474,7 @@ class Os {
9474
9474
  const n = (i) => {
9475
9475
  const s = [], o = i.relative ? i.type : i.type.toUpperCase();
9476
9476
  let l = e !== o;
9477
- const c = Ha[i.type];
9477
+ const c = qa[i.type];
9478
9478
  l && (s.push(o), e = o);
9479
9479
  for (const d of c) {
9480
9480
  const A = i[d];
@@ -9499,7 +9499,7 @@ class Os {
9499
9499
  const e = /([mzlhvcsqta])([^mzlhvcsqta]*)/gi, a = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, n = [];
9500
9500
  let i;
9501
9501
  for (e.lastIndex = 0; i = e.exec(t); ) {
9502
- const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Ha[s];
9502
+ const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = qa[s];
9503
9503
  if (o.length < c.length)
9504
9504
  throw new Ft(
9505
9505
  `Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
@@ -9574,8 +9574,8 @@ class $s extends xs {
9574
9574
  y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
9575
9575
  const E = et("g");
9576
9576
  E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
9577
- const B = et("g");
9578
- 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;
9577
+ const b = et("g");
9578
+ 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
9579
  const I = et("g");
9580
9580
  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;
9581
9581
  const D = et("g");
@@ -9653,7 +9653,7 @@ const ne = v`
9653
9653
  }
9654
9654
  }
9655
9655
  }
9656
- `, rd = async (r) => (await b.getShadowGraphqlClient().query({
9656
+ `, rd = async (r) => (await B.getShadowGraphqlClient().query({
9657
9657
  query: Vs,
9658
9658
  fetchPolicy: "cache-first",
9659
9659
  errorPolicy: "all",
@@ -9705,7 +9705,7 @@ const ne = v`
9705
9705
  name
9706
9706
  }
9707
9707
  }
9708
- `, ba = v`
9708
+ `, Ba = v`
9709
9709
  ${zs}
9710
9710
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9711
9711
  id
@@ -9716,7 +9716,7 @@ const ne = v`
9716
9716
  }
9717
9717
  }
9718
9718
  `, re = (r) => v`
9719
- ${r ? ba : ""}
9719
+ ${r ? Ba : ""}
9720
9720
  fragment ProductCollectionFields on ProductCollection {
9721
9721
  id
9722
9722
  name
@@ -9892,7 +9892,7 @@ const ne = v`
9892
9892
  }
9893
9893
  }
9894
9894
  `, js = v`
9895
- ${ba}
9895
+ ${Ba}
9896
9896
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
9897
9897
  productCollections(ids: [$id], productIds: $productIds) {
9898
9898
  id
@@ -9901,7 +9901,7 @@ const ne = v`
9901
9901
  }
9902
9902
  }
9903
9903
  }
9904
- `, qs = v`
9904
+ `, Hs = v`
9905
9905
  query GetProductCollectionForFilteredProducts(
9906
9906
  $id: String!
9907
9907
  $filters: ProductCollectionProductFilterInput
@@ -9924,8 +9924,8 @@ const ne = v`
9924
9924
  }
9925
9925
  }
9926
9926
  }
9927
- `, Hs = v`
9928
- ${ba}
9927
+ `, qs = v`
9928
+ ${Ba}
9929
9929
  query GetProductCollectionForProductsFeed(
9930
9930
  $id: String!
9931
9931
  $limit: Int
@@ -10295,8 +10295,8 @@ class Co {
10295
10295
  return;
10296
10296
  const S = this.getCommandContext().getAllLayouts(), y = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
10297
10297
  if (y)
10298
- for (const [, B] of y)
10299
- B.render(S);
10298
+ for (const [, b] of y)
10299
+ b.render(S);
10300
10300
  }, 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) => {
10301
10301
  this.stepTags[S.stepName] = S.tags ?? [];
10302
10302
  }), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
@@ -10770,10 +10770,10 @@ class Co {
10770
10770
  return Promise.resolve({ stepElements: {}, commands: [] });
10771
10771
  const n = async (c, d, A) => {
10772
10772
  if (c.type === P.SilentIllustration) {
10773
- const u = await new qa(c, d).trigger();
10773
+ const u = await new Ha(c, d).trigger();
10774
10774
  return { step: c, results: u };
10775
10775
  } else if (c.type === P.ProductOverlay) {
10776
- const u = await new qa(
10776
+ const u = await new Ha(
10777
10777
  c,
10778
10778
  d,
10779
10779
  A
@@ -10818,7 +10818,7 @@ class Co {
10818
10818
  }
10819
10819
  async updateTransactionStakeholders() {
10820
10820
  var e;
10821
- const t = await b.getShadowGraphqlClient().query({
10821
+ const t = await B.getShadowGraphqlClient().query({
10822
10822
  query: Di,
10823
10823
  errorPolicy: "all",
10824
10824
  fetchPolicy: "no-cache",
@@ -10829,7 +10829,7 @@ class Co {
10829
10829
  !((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);
10830
10830
  }
10831
10831
  async approveTransaction(t) {
10832
- await b.getShadowGraphqlClient().mutate({
10832
+ await B.getShadowGraphqlClient().mutate({
10833
10833
  mutation: uo,
10834
10834
  errorPolicy: "all",
10835
10835
  fetchPolicy: "no-cache",
@@ -10840,7 +10840,7 @@ class Co {
10840
10840
  });
10841
10841
  }
10842
10842
  async rejectTransaction(t) {
10843
- await b.getShadowGraphqlClient().mutate({
10843
+ await B.getShadowGraphqlClient().mutate({
10844
10844
  mutation: ho,
10845
10845
  errorPolicy: "all",
10846
10846
  fetchPolicy: "no-cache",
@@ -10853,7 +10853,7 @@ class Co {
10853
10853
  async reset() {
10854
10854
  this.commandContext.getAllLayouts().forEach(
10855
10855
  (e) => e.layoutState.elements.forEach((a) => {
10856
- this.getCommandDispatcher()(new Bt(a.id));
10856
+ this.getCommandDispatcher()(new bt(a.id));
10857
10857
  })
10858
10858
  ), this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, await this.ensureStepsAreLoaded();
10859
10859
  }
@@ -10863,11 +10863,11 @@ class Co {
10863
10863
  this.stepSelections = {
10864
10864
  ...this.stepSelections,
10865
10865
  [t]: { selectedVariants: e }
10866
- }, 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) => {
10866
+ }, 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) => {
10867
10867
  yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
10868
10868
  });
10869
10869
  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(
10870
- (E) => !c.some((B) => B.stepName === E.stepName)
10870
+ (E) => !c.some((b) => b.stepName === E.stepName)
10871
10871
  );
10872
10872
  c.forEach((E) => {
10873
10873
  yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1);
@@ -10881,15 +10881,15 @@ class Co {
10881
10881
  const g = this.workflow.steps.find((E) => E.stepName === t);
10882
10882
  if ((g == null ? void 0 : g.type) === P.Frame) {
10883
10883
  const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
10884
- E == null || E.setTargetElements(a.map((B) => B.id));
10884
+ E == null || E.setTargetElements(a.map((b) => b.id));
10885
10885
  }
10886
- const p = u.map((E) => new Bt(E.id)), f = new Wa(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10886
+ const p = u.map((E) => new bt(E.id)), f = new Wa(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10887
10887
  C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10888
10888
  const w = this.getInvalidModelVariants(), S = this.modelContainer;
10889
10889
  if (S) {
10890
10890
  const E = w.map(
10891
- (B) => S.applyModelVariant(
10892
- B,
10891
+ (b) => S.applyModelVariant(
10892
+ b,
10893
10893
  {
10894
10894
  contextService: this.getLayoutPreviewService()
10895
10895
  },
@@ -10934,12 +10934,12 @@ class Co {
10934
10934
  this.stepSpecificServices[l.stepName] = {
10935
10935
  module: await Jn(l.data.module)
10936
10936
  }, a.push(
10937
- qn.init(l, this, this.reloadedState)
10937
+ Hn.init(l, this, this.reloadedState)
10938
10938
  );
10939
10939
  break;
10940
10940
  case P.Picture:
10941
10941
  a.push(
10942
- Hn.init(l, this, this.reloadedState)
10942
+ qn.init(l, this, this.reloadedState)
10943
10943
  );
10944
10944
  break;
10945
10945
  case P.Question:
@@ -11011,7 +11011,7 @@ class Co {
11011
11011
  this.validationCallbacks.forEach((t) => t(this.validationErrors));
11012
11012
  }
11013
11013
  traversableScenes() {
11014
- return qi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11014
+ return Hi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11015
11015
  }
11016
11016
  }
11017
11017
  class st {
@@ -11344,7 +11344,7 @@ class vo extends it {
11344
11344
  * @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
11345
11345
  */
11346
11346
  selectVariant(t) {
11347
- return Hn.selectVariant(
11347
+ return qn.selectVariant(
11348
11348
  this.step,
11349
11349
  t.getResource(),
11350
11350
  this.manager,
@@ -11369,7 +11369,7 @@ class Eo extends it {
11369
11369
  return this.step.data.displayType || ((t = this.step.option) == null ? void 0 : t.displayType);
11370
11370
  }
11371
11371
  }
11372
- class Bo extends it {
11372
+ class bo extends it {
11373
11373
  constructor(t, e, a) {
11374
11374
  super(t, e, a);
11375
11375
  }
@@ -11424,7 +11424,7 @@ class Bo extends it {
11424
11424
  return t;
11425
11425
  }
11426
11426
  }
11427
- class bo extends it {
11427
+ class Bo extends it {
11428
11428
  constructor(t, e, a) {
11429
11429
  super(t, e, a);
11430
11430
  }
@@ -11695,7 +11695,7 @@ class Do extends it {
11695
11695
  return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.text) || "";
11696
11696
  }
11697
11697
  setText(t) {
11698
- qn.changeText(this.step, t, this.manager, (e) => {
11698
+ Hn.changeText(this.step, t, this.manager, (e) => {
11699
11699
  if (e) {
11700
11700
  const a = [
11701
11701
  ...this.manager.getInformationResults(),
@@ -11723,13 +11723,13 @@ class ce {
11723
11723
  case P.Question:
11724
11724
  return new Eo(t, e, t.getStepTags(e.stepName));
11725
11725
  case P.Text:
11726
- return new bo(t, e, t.getStepTags(e.stepName));
11726
+ return new Bo(t, e, t.getStepTags(e.stepName));
11727
11727
  case P.Illustration:
11728
11728
  return new wo(t, e, t.getStepTags(e.stepName));
11729
11729
  case P.Picture:
11730
11730
  return new vo(t, e, t.getStepTags(e.stepName));
11731
11731
  case P.Shape:
11732
- return new Bo(t, e, t.getStepTags(e.stepName));
11732
+ return new bo(t, e, t.getStepTags(e.stepName));
11733
11733
  case P.Material:
11734
11734
  return new yo(t, e, t.getStepTags(e.stepName));
11735
11735
  case P.Model:
@@ -11832,7 +11832,7 @@ const ko = async (r, t) => {
11832
11832
  const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
11833
11833
  c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
11834
11834
  }
11835
- return (i = (await b.getShadowGraphqlClient().mutate({
11835
+ return (i = (await B.getShadowGraphqlClient().mutate({
11836
11836
  mutation: Fo,
11837
11837
  errorPolicy: "all",
11838
11838
  fetchPolicy: "no-cache",
@@ -11863,7 +11863,7 @@ const ko = async (r, t) => {
11863
11863
  const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
11864
11864
  c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
11865
11865
  }
11866
- return (i = (await b.getShadowGraphqlClient().mutate({
11866
+ return (i = (await B.getShadowGraphqlClient().mutate({
11867
11867
  mutation: xo,
11868
11868
  errorPolicy: "all",
11869
11869
  fetchPolicy: "no-cache",
@@ -11970,7 +11970,7 @@ const ko = async (r, t) => {
11970
11970
  if (c !== void 0)
11971
11971
  return c;
11972
11972
  await r.outstandingRequestsPromise();
11973
- const F = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await b.getShadowGraphqlClient().query({
11973
+ const F = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await B.getShadowGraphqlClient().query({
11974
11974
  query: Dn,
11975
11975
  variables: { ids: [n.id] },
11976
11976
  fetchPolicy: "no-cache",
@@ -11990,22 +11990,22 @@ const ko = async (r, t) => {
11990
11990
  for (const T of Object.keys(i)) {
11991
11991
  const nt = i[T], R = t.steps.find((tt) => tt.stepName === T);
11992
11992
  for (let tt = 0; tt < nt.selections.length; ++tt) {
11993
- const q = nt.selections[tt];
11993
+ const H = nt.selections[tt];
11994
11994
  if (R && (!D || R.option && (R.option.variants || []).length > 1 && !R.data.hideSelectionInCart && !R.data.hideSelectionsInCart)) {
11995
11995
  const ft = R.stepTitle;
11996
11996
  F[ft] ? F[ft].push({
11997
- id: q.id || "",
11998
- name: q.name,
11999
- priceModifier: q.priceModifier
11997
+ id: H.id || "",
11998
+ name: H.name,
11999
+ priceModifier: H.priceModifier
12000
12000
  }) : F[ft] = [
12001
12001
  {
12002
- id: q.id || "",
12003
- name: q.name,
12004
- priceModifier: q.priceModifier
12002
+ id: H.id || "",
12003
+ name: H.name,
12004
+ priceModifier: H.priceModifier
12005
12005
  }
12006
12006
  ];
12007
12007
  }
12008
- k += q.priceModifier;
12008
+ k += H.priceModifier;
12009
12009
  }
12010
12010
  }
12011
12011
  return [F, k];
@@ -12095,7 +12095,7 @@ const ko = async (r, t) => {
12095
12095
  );
12096
12096
  const n = await (async () => {
12097
12097
  var c;
12098
- const l = await b.getShadowGraphqlClient().query({
12098
+ const l = await B.getShadowGraphqlClient().query({
12099
12099
  query: Dn,
12100
12100
  variables: { ids: r.map((d) => d.transaction.id) },
12101
12101
  fetchPolicy: "no-cache",
@@ -12378,7 +12378,7 @@ class Vo {
12378
12378
  throw new Fe("Failed to obtain 2D context for preview image creation");
12379
12379
  const m = Sa(u.layoutState.layout, u.layoutState.elements, {
12380
12380
  renderingConfiguration: {
12381
- purpose: qt.Print,
12381
+ purpose: Ht.Print,
12382
12382
  region: { left: A.x, top: A.y, width: A.width, height: A.height },
12383
12383
  templatingContext: this.workflowManager.getTemplatingContext()
12384
12384
  }
@@ -12778,7 +12778,7 @@ const zo = [
12778
12778
  const n = e.data, i = a.option;
12779
12779
  if (!i)
12780
12780
  return console.error(`No option for step ${a.stepName}.`), [];
12781
- const s = ((y = i.variants) == null ? void 0 : y.find((B) => B.id === n.illustrationVariantId)) || ae(i);
12781
+ const s = ((y = i.variants) == null ? void 0 : y.find((b) => b.id === n.illustrationVariantId)) || ae(i);
12782
12782
  if (!s)
12783
12783
  return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
12784
12784
  if (!s.asset)
@@ -12792,32 +12792,32 @@ const zo = [
12792
12792
  return console.error("Failed to read SVG."), [];
12793
12793
  pa(m);
12794
12794
  const g = {};
12795
- kt(m, (B) => {
12796
- zo.includes(B.tagName) && !B.attributes.getNamedItem("fill") && B.setAttribute("fill", "#000000");
12797
- const I = B.attributes.getNamedItem("fill");
12795
+ kt(m, (b) => {
12796
+ zo.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12797
+ const I = b.attributes.getNamedItem("fill");
12798
12798
  if (I && I.value !== "none") {
12799
12799
  const F = I.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
12800
- B.classList.add(T), g[T] = { browserValue: F };
12800
+ b.classList.add(T), g[T] = { browserValue: F };
12801
12801
  }
12802
- const D = B.attributes.getNamedItem("stroke");
12802
+ const D = b.attributes.getNamedItem("stroke");
12803
12803
  if (D && D.value !== "none") {
12804
12804
  const F = D.value, T = `spiff-stroke-${F.replace(/\W/g, "")}`;
12805
- B.classList.add(T), g[T] = { browserValue: F };
12805
+ b.classList.add(T), g[T] = { browserValue: F };
12806
12806
  }
12807
12807
  });
12808
- const f = bt().serializeToString(m), C = n.colors;
12808
+ const f = Bt().serializeToString(m), C = n.colors;
12809
12809
  if (C) {
12810
- for (const [B, I] of Object.entries(g))
12810
+ for (const [b, I] of Object.entries(g))
12811
12811
  for (const D of Object.keys(C))
12812
12812
  if (I.browserValue === D) {
12813
- g[B] = { browserValue: C[D] };
12813
+ g[b] = { browserValue: C[D] };
12814
12814
  break;
12815
12815
  }
12816
12816
  }
12817
- const w = (B) => {
12818
- const I = r.find((F) => F.panelId === B.panelId);
12817
+ const w = (b) => {
12818
+ const I = r.find((F) => F.panelId === b.panelId);
12819
12819
  if (!I)
12820
- throw new J(B);
12820
+ throw new J(b);
12821
12821
  const D = Q();
12822
12822
  return new W(
12823
12823
  {
@@ -12825,24 +12825,24 @@ const zo = [
12825
12825
  id: D,
12826
12826
  svg: f,
12827
12827
  type: M.Illustration,
12828
- y: B.top,
12829
- x: B.left,
12830
- rotation: B.rotation,
12831
- width: B.width,
12832
- height: B.height,
12833
- layer: B.layer,
12834
- layerIndex: B.layerIndex,
12835
- immutable: B.immutable
12828
+ y: b.top,
12829
+ x: b.left,
12830
+ rotation: b.rotation,
12831
+ width: b.width,
12832
+ height: b.height,
12833
+ layer: b.layer,
12834
+ layerIndex: b.layerIndex,
12835
+ immutable: b.immutable
12836
12836
  },
12837
12837
  I
12838
12838
  );
12839
12839
  }, S = a.data.regions;
12840
12840
  try {
12841
12841
  return S.map(w);
12842
- } catch (B) {
12843
- return console.error(B), [];
12842
+ } catch (b) {
12843
+ return console.error(b), [];
12844
12844
  }
12845
- }, qo = async (r, t, e) => {
12845
+ }, Ho = async (r, t, e) => {
12846
12846
  const a = await Jn(e.data.module), n = t.data, i = (o, l) => {
12847
12847
  const c = r.find((A) => A.panelId === l.panelId);
12848
12848
  if (!c)
@@ -12872,7 +12872,7 @@ const zo = [
12872
12872
  } catch (o) {
12873
12873
  return console.error(o), [];
12874
12874
  }
12875
- }, Ho = async (r, t, e, a) => {
12875
+ }, qo = async (r, t, e, a) => {
12876
12876
  var d, A;
12877
12877
  const n = e.data, i = a.option;
12878
12878
  if (!i)
@@ -13009,7 +13009,7 @@ const zo = [
13009
13009
  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;
13010
13010
  if (!f)
13011
13011
  throw new Ft("Failed to read SVG.");
13012
- return pa(f), bt().serializeToString(f);
13012
+ return pa(f), Bt().serializeToString(f);
13013
13013
  };
13014
13014
  l.forEach((A) => {
13015
13015
  const u = r.find((m) => m.panelId === A.panelId);
@@ -13060,7 +13060,7 @@ const zo = [
13060
13060
  assetUrl: p,
13061
13061
  name: f.names.fullName.en
13062
13062
  };
13063
- })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Be(A, {
13063
+ })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = be(A, {
13064
13064
  vertical: a.data.vertical,
13065
13065
  uppercase: a.data.uppercase
13066
13066
  }), h = async (p) => {
@@ -13101,7 +13101,7 @@ const zo = [
13101
13101
  d,
13102
13102
  p,
13103
13103
  [
13104
- Be(u, {
13104
+ be(u, {
13105
13105
  vertical: a.data.vertical,
13106
13106
  uppercase: a.data.uppercase
13107
13107
  })
@@ -13164,11 +13164,11 @@ const zo = [
13164
13164
  );
13165
13165
  break;
13166
13166
  case P.Module:
13167
- n.push(...await qo(e, s, o));
13167
+ n.push(...await Ho(e, s, o));
13168
13168
  break;
13169
13169
  case P.Picture:
13170
13170
  n.push(
13171
- ...await Ho(e, i, s, o)
13171
+ ...await qo(e, i, s, o)
13172
13172
  );
13173
13173
  break;
13174
13174
  case P.Shape:
@@ -13352,7 +13352,7 @@ class nl extends xn {
13352
13352
  l = i.width, c = i.height;
13353
13353
  const d = Sa(t.layoutState.layout, e, {
13354
13354
  renderingConfiguration: {
13355
- purpose: qt.ThreeD,
13355
+ purpose: Ht.ThreeD,
13356
13356
  templatingContext: (m = (h = this.getWorkflowManager) == null ? void 0 : h.call(this)) == null ? void 0 : m.getTemplatingContext()
13357
13357
  }
13358
13358
  }), A = mn(d), u = await Aa.from(this.ctx, A, {
@@ -13521,7 +13521,7 @@ class il extends Ia {
13521
13521
  const t = await this.getImage();
13522
13522
  if (t != null && t.fileLink)
13523
13523
  if (t != null && t.fileLink.endsWith(".svg")) {
13524
- 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);
13524
+ 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);
13525
13525
  (e = l == null ? void 0 : l.colors) == null || e.forEach((d) => {
13526
13526
  o.colors[d.key] = {
13527
13527
  browserValue: d.browserValue,
@@ -13793,7 +13793,7 @@ class tr extends Ia {
13793
13793
  return n.id === ((s = (i = this.optionResource) == null ? void 0 : i.defaultVariant) == null ? void 0 : s.id);
13794
13794
  }
13795
13795
  );
13796
- t && await this.selectVariant(new st(t));
13796
+ console.log("Checking for default variant"), t && (console.log("Found default variant"), await this.selectVariant(new st(t)));
13797
13797
  }
13798
13798
  /**
13799
13799
  * Gets the currently selected variant, or undefined if no variant is selected.
@@ -14038,7 +14038,8 @@ class cl {
14038
14038
  var e, a;
14039
14039
  if (!this.globalPropertyState)
14040
14040
  throw new Error("Global property state not initialized");
14041
- const t = await b.getShadowGraphqlClient().mutate({
14041
+ console.log(`LOG: setting state ${this.globalPropertyState.id} with ${this.globalPropertyState.aspects.length} aspects`), console.trace();
14042
+ const t = await B.getShadowGraphqlClient().mutate({
14042
14043
  mutation: Ls,
14043
14044
  variables: {
14044
14045
  id: this.globalPropertyState.id,
@@ -14082,7 +14083,7 @@ class cl {
14082
14083
  }
14083
14084
  async createGlobalPropertyState() {
14084
14085
  var e, a;
14085
- const t = await b.getShadowGraphqlClient().mutate({
14086
+ const t = await B.getShadowGraphqlClient().mutate({
14086
14087
  mutation: Us,
14087
14088
  variables: {
14088
14089
  bundleId: this.bundleId
@@ -14220,7 +14221,7 @@ class ul {
14220
14221
  async ensureIdsArePresent(t) {
14221
14222
  if (t.every((a) => this.internalMap.has(a)))
14222
14223
  return;
14223
- const e = await b.getShadowGraphqlClient().query({
14224
+ const e = await B.getShadowGraphqlClient().query({
14224
14225
  query: Al,
14225
14226
  errorPolicy: "all",
14226
14227
  variables: {
@@ -14308,7 +14309,7 @@ class er {
14308
14309
  async fetchProducts(t) {
14309
14310
  if (this.fullFetched)
14310
14311
  return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
14311
- const e = await b.getShadowGraphqlClient().query({
14312
+ const e = await B.getShadowGraphqlClient().query({
14312
14313
  query: js,
14313
14314
  variables: {
14314
14315
  id: this.getId(),
@@ -14325,8 +14326,8 @@ class er {
14325
14326
  */
14326
14327
  async filterProducts(t, e, a, n) {
14327
14328
  var l, c;
14328
- const i = await b.getShadowGraphqlClient().query({
14329
- query: qs,
14329
+ const i = await B.getShadowGraphqlClient().query({
14330
+ query: Hs,
14330
14331
  errorPolicy: "all",
14331
14332
  variables: {
14332
14333
  id: this.getId(),
@@ -14365,8 +14366,8 @@ class er {
14365
14366
  items: d.slice(t, t + e)
14366
14367
  };
14367
14368
  }
14368
- const o = new AbortController(), { signal: l } = o, c = b.getShadowGraphqlClient().watchQuery({
14369
- query: Hs,
14369
+ const o = new AbortController(), { signal: l } = o, c = B.getShadowGraphqlClient().watchQuery({
14370
+ query: qs,
14370
14371
  variables: {
14371
14372
  id: this.getId(),
14372
14373
  limit: e,
@@ -14642,7 +14643,7 @@ const fl = v`
14642
14643
  }
14643
14644
  `, od = async (r) => {
14644
14645
  var e, a;
14645
- return (a = (e = (await b.getShadowGraphqlClient().query({
14646
+ return (a = (e = (await B.getShadowGraphqlClient().query({
14646
14647
  query: fl,
14647
14648
  errorPolicy: "all",
14648
14649
  variables: {
@@ -14727,10 +14728,11 @@ class Je {
14727
14728
  ), this.globalPropertyHandleService = new rl(this), this.setPreviewService(a);
14728
14729
  const l = new Promise((u, h) => {
14729
14730
  if (s != null && s.readonly) {
14730
- u([]);
14731
+ console.log("Bundle is read-only."), u([]);
14731
14732
  return;
14732
14733
  }
14733
- console.log("Setting default global variants."), this.globalPropertyHandleService.getHandles().then((m) => {
14734
+ this.globalPropertyHandleService.getHandles().then((m) => {
14735
+ console.log(`Setting default global variants for ${m.length} handles.`);
14734
14736
  const g = m.map((p) => {
14735
14737
  if (p.getType() === z.ColorOption || p.getType() === z.Option) {
14736
14738
  const f = p;
@@ -14757,7 +14759,7 @@ class Je {
14757
14759
  }
14758
14760
  async generateQuoteId() {
14759
14761
  var a, n;
14760
- const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
14762
+ const e = (n = (a = (await B.getShadowGraphqlClient().mutate({
14761
14763
  mutation: Sl,
14762
14764
  variables: {
14763
14765
  id: this.id
@@ -14769,7 +14771,7 @@ class Je {
14769
14771
  return this.quoteId = e, e || "";
14770
14772
  }
14771
14773
  async attachAddress(t, e, a, n, i, s) {
14772
- await b.getShadowGraphqlClient().mutate({
14774
+ await B.getShadowGraphqlClient().mutate({
14773
14775
  mutation: wl,
14774
14776
  variables: {
14775
14777
  bundleId: this.id,
@@ -14786,7 +14788,7 @@ class Je {
14786
14788
  });
14787
14789
  }
14788
14790
  async attachOrganization(t) {
14789
- await b.getShadowGraphqlClient().mutate({
14791
+ await B.getShadowGraphqlClient().mutate({
14790
14792
  mutation: yl,
14791
14793
  variables: {
14792
14794
  bundleId: this.id,
@@ -14861,15 +14863,15 @@ class Je {
14861
14863
  }
14862
14864
  async applyGlobalPropertyState(t) {
14863
14865
  var a;
14864
- const e = await this.getGlobalProperties();
14865
- for (const n of e) {
14866
- const i = n.getName(), s = t.aspects.find((o) => o.name === i);
14866
+ const e = await this.globalPropertyHandleService.getHandles();
14867
+ for (const n of t.aspects) {
14868
+ const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
14867
14869
  if (s)
14868
- switch (s.type) {
14870
+ switch (n.type) {
14869
14871
  case z.FileUpload: {
14870
- const o = n, l = await ve([s.value]);
14872
+ const o = s, l = await ve([n.value]);
14871
14873
  l.length > 0 && await o.selectImage(l[0]);
14872
- const c = (a = s.storage) == null ? void 0 : a.colors;
14874
+ const c = (a = n.storage) == null ? void 0 : a.colors;
14873
14875
  if (c) {
14874
14876
  const d = Object.fromEntries(
14875
14877
  c.map((A) => [A.key, { browserValue: A.browserValue, pmsValue: A.pmsValue }]) ?? []
@@ -14879,21 +14881,21 @@ class Je {
14879
14881
  break;
14880
14882
  }
14881
14883
  case z.ColorOption: {
14882
- const o = n;
14883
- if (s.type === z.ColorOption) {
14884
- const c = o.getAllVariants().find((d) => d.getId() === s.value);
14884
+ const o = s;
14885
+ if (n.type === z.ColorOption) {
14886
+ const c = o.getAllVariants().find((d) => d.getId() === n.value);
14885
14887
  c && await o.selectVariant(c);
14886
14888
  } else
14887
- o.setCustomColor(s.value);
14889
+ o.setCustomColor(n.value);
14888
14890
  break;
14889
14891
  }
14890
14892
  case z.Option: {
14891
- const o = n, c = o.getAllVariants().find((d) => d.getId() === s.value);
14893
+ const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
14892
14894
  c && await o.selectVariant(c);
14893
14895
  break;
14894
14896
  }
14895
14897
  case z.Text: {
14896
- await n.setText(s.value);
14898
+ await s.setText(n.value);
14897
14899
  break;
14898
14900
  }
14899
14901
  }
@@ -14957,7 +14959,7 @@ class Je {
14957
14959
  "Unable to add transaction to bundle - Already Exists: " + a.filter((o) => !!o).map((o) => o == null ? void 0 : o.getWorkflowManager().getTransaction().id).join(", ")
14958
14960
  );
14959
14961
  const n = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => n.get(o));
14960
- await b.getShadowGraphqlClient().mutate({
14962
+ await B.getShadowGraphqlClient().mutate({
14961
14963
  mutation: Xs,
14962
14964
  variables: {
14963
14965
  id: this.id,
@@ -14989,7 +14991,7 @@ class Je {
14989
14991
  ))
14990
14992
  throw new Error("Unable to add transaction to bundle - Already Exists!");
14991
14993
  const s = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
14992
- await b.getShadowGraphqlClient().mutate({
14994
+ await B.getShadowGraphqlClient().mutate({
14993
14995
  mutation: _s,
14994
14996
  variables: {
14995
14997
  id: this.id,
@@ -15024,7 +15026,7 @@ class Je {
15024
15026
  const n = this.workflowExperiences.find(
15025
15027
  (i) => i.getWorkflowManager().getTransaction().id === e.id
15026
15028
  );
15027
- if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await b.getShadowGraphqlClient().mutate({
15029
+ if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await B.getShadowGraphqlClient().mutate({
15028
15030
  mutation: Zs,
15029
15031
  variables: {
15030
15032
  id: this.id,
@@ -15061,7 +15063,7 @@ class Je {
15061
15063
  );
15062
15064
  a.forEach((n) => n.setBundle(void 0)), [...this.workflowExperiences, ...a].forEach(
15063
15065
  (n) => n.checkForPriceBreakChanges()
15064
- ), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await b.getShadowGraphqlClient().mutate({
15066
+ ), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await B.getShadowGraphqlClient().mutate({
15065
15067
  mutation: to,
15066
15068
  variables: {
15067
15069
  id: this.id,
@@ -15124,7 +15126,7 @@ class Je {
15124
15126
  }
15125
15127
  async addStakeholder(t, e) {
15126
15128
  var i;
15127
- const a = await b.getShadowGraphqlClient().mutate({
15129
+ const a = await B.getShadowGraphqlClient().mutate({
15128
15130
  mutation: eo,
15129
15131
  variables: {
15130
15132
  id: this.id,
@@ -15142,7 +15144,7 @@ class Je {
15142
15144
  }
15143
15145
  async removeStakeholder(t) {
15144
15146
  var a;
15145
- if (!((a = (await b.getShadowGraphqlClient().mutate({
15147
+ if (!((a = (await B.getShadowGraphqlClient().mutate({
15146
15148
  mutation: ao,
15147
15149
  variables: {
15148
15150
  id: this.id,
@@ -15156,7 +15158,7 @@ class Je {
15156
15158
  }
15157
15159
  async updateStakeholders(t) {
15158
15160
  var n;
15159
- const e = await b.getShadowGraphqlClient().mutate({
15161
+ const e = await B.getShadowGraphqlClient().mutate({
15160
15162
  mutation: no,
15161
15163
  variables: {
15162
15164
  id: this.id,
@@ -15172,7 +15174,7 @@ class Je {
15172
15174
  this.storeStakeholderCustomers(a);
15173
15175
  }
15174
15176
  async getAllStakeholders() {
15175
- const t = await b.getShadowGraphqlClient().query({
15177
+ const t = await B.getShadowGraphqlClient().query({
15176
15178
  query: Ya,
15177
15179
  errorPolicy: "all",
15178
15180
  fetchPolicy: "no-cache",
@@ -15189,7 +15191,7 @@ class Je {
15189
15191
  return this.storeStakeholderCustomers(e), e;
15190
15192
  }
15191
15193
  async getCurrentStakeholder() {
15192
- const t = await b.getShadowGraphqlClient().query({
15194
+ const t = await B.getShadowGraphqlClient().query({
15193
15195
  query: Ya,
15194
15196
  errorPolicy: "all",
15195
15197
  fetchPolicy: "no-cache",
@@ -15211,7 +15213,7 @@ class Je {
15211
15213
  }
15212
15214
  async finish(t, e) {
15213
15215
  if (this.completed)
15214
- return await b.getShadowGraphqlClient().mutate({
15216
+ return await B.getShadowGraphqlClient().mutate({
15215
15217
  mutation: lo,
15216
15218
  variables: {
15217
15219
  bundleId: this.id
@@ -15273,7 +15275,7 @@ class Je {
15273
15275
  return this.bundleStateManager.activateWorkflowExperienceTransform(t, e), this.updateBundle();
15274
15276
  }
15275
15277
  async assignGlobalPropertyConfiguration(t) {
15276
- await b.getShadowGraphqlClient().mutate({
15278
+ await B.getShadowGraphqlClient().mutate({
15277
15279
  mutation: so,
15278
15280
  variables: {
15279
15281
  bundleId: this.id,
@@ -15286,7 +15288,7 @@ class Je {
15286
15288
  }
15287
15289
  async assignProductCollection(t) {
15288
15290
  var a, n;
15289
- const e = await b.getShadowGraphqlClient().mutate({
15291
+ const e = await B.getShadowGraphqlClient().mutate({
15290
15292
  mutation: io(
15291
15293
  ((a = this.globalPropertyStateManager.getBundleOptions()) == null ? void 0 : a.eagerFetchProducts) ?? !1
15292
15294
  ),
@@ -15344,7 +15346,7 @@ class Je {
15344
15346
  }
15345
15347
  async updateBundle() {
15346
15348
  var e;
15347
- if (!((e = (await b.getShadowGraphqlClient().mutate({
15349
+ if (!((e = (await B.getShadowGraphqlClient().mutate({
15348
15350
  mutation: Ks,
15349
15351
  variables: {
15350
15352
  id: this.id,
@@ -15361,7 +15363,7 @@ class Je {
15361
15363
  throw new Error("Bundle not found!");
15362
15364
  }
15363
15365
  async updateTransactionOrder() {
15364
- await b.getShadowGraphqlClient().mutate({
15366
+ await B.getShadowGraphqlClient().mutate({
15365
15367
  mutation: ro,
15366
15368
  variables: {
15367
15369
  id: this.id,
@@ -15402,7 +15404,7 @@ class Je {
15402
15404
  return this.workflowViewerAmendLink;
15403
15405
  }
15404
15406
  async approve(t, e) {
15405
- await b.getShadowGraphqlClient().mutate({
15407
+ await B.getShadowGraphqlClient().mutate({
15406
15408
  mutation: co,
15407
15409
  errorPolicy: "all",
15408
15410
  fetchPolicy: "no-cache",
@@ -15414,7 +15416,7 @@ class Je {
15414
15416
  });
15415
15417
  }
15416
15418
  async reject(t, e) {
15417
- await b.getShadowGraphqlClient().mutate({
15419
+ await B.getShadowGraphqlClient().mutate({
15418
15420
  mutation: Ao,
15419
15421
  errorPolicy: "all",
15420
15422
  fetchPolicy: "no-cache",
@@ -15450,7 +15452,7 @@ class El {
15450
15452
  */
15451
15453
  async execute(t, e, a) {
15452
15454
  var A, u, h;
15453
- const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
15455
+ const i = (u = (A = (await B.getShadowGraphqlClient().mutate({
15454
15456
  mutation: vl,
15455
15457
  variables: {
15456
15458
  processFlowId: t,
@@ -15466,7 +15468,7 @@ class El {
15466
15468
  }
15467
15469
  let o = !1, l = 0, c, d;
15468
15470
  for (; !o; ) {
15469
- c = await b.getShadowGraphqlClient().query({
15471
+ c = await B.getShadowGraphqlClient().query({
15470
15472
  query: v`
15471
15473
  query getProcessFlowExecution($ids: [String]!) {
15472
15474
  processExecutions(ids: $ids) {
@@ -15493,7 +15495,7 @@ class El {
15493
15495
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15494
15496
  );
15495
15497
  if (m.completedAt) {
15496
- o = !0, d = new Bl(m);
15498
+ o = !0, d = new bl(m);
15497
15499
  break;
15498
15500
  }
15499
15501
  l += 1;
@@ -15507,7 +15509,7 @@ class El {
15507
15509
  return Promise.resolve(d);
15508
15510
  }
15509
15511
  }
15510
- class Bl {
15512
+ class bl {
15511
15513
  constructor(t) {
15512
15514
  this.execution = t;
15513
15515
  }
@@ -15592,7 +15594,7 @@ class Pa {
15592
15594
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15593
15595
  }
15594
15596
  }
15595
- var bl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(bl || {});
15597
+ var Bl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(Bl || {});
15596
15598
  class ld extends Pa {
15597
15599
  constructor(t) {
15598
15600
  super(`"${t}"`);
@@ -15765,7 +15767,7 @@ const Dl = v`
15765
15767
  }
15766
15768
  `;
15767
15769
  class Fl {
15768
- constructor(t, e = b.getShadowGraphqlClient.bind(b)) {
15770
+ constructor(t, e = B.getShadowGraphqlClient.bind(B)) {
15769
15771
  this.options = t, this.client = e;
15770
15772
  }
15771
15773
  query(t) {
@@ -15923,7 +15925,7 @@ class Ml {
15923
15925
  }
15924
15926
  const Tl = async (r, t) => {
15925
15927
  var n;
15926
- const e = await b.getShadowGraphqlClient().query({
15928
+ const e = await B.getShadowGraphqlClient().query({
15927
15929
  query: Ni(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
15928
15930
  errorPolicy: "all",
15929
15931
  variables: {
@@ -15980,14 +15982,14 @@ class Ad {
15980
15982
  constructor(t) {
15981
15983
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15982
15984
  try {
15983
- return b.getShadowGraphqlClient().mutate({
15985
+ return B.getShadowGraphqlClient().mutate({
15984
15986
  ...e,
15985
15987
  mutation: vi
15986
15988
  });
15987
15989
  } catch (a) {
15988
15990
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15989
15991
  }
15990
- }, this.options = t, this.options.applicationKey && Ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15992
+ }, this.options = t, this.options.applicationKey && Ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0-beta.bd38fc6f-f81f-5c38-8ccf-685f95a01f87"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15991
15993
  }
15992
15994
  configure(t) {
15993
15995
  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 && Vr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16005,7 +16007,7 @@ class Ad {
16005
16007
  return new El();
16006
16008
  }
16007
16009
  async getCurrencyContext(t) {
16008
- const a = (await this.getIntegration()).partner.currencyCode, i = await b.getShadowGraphqlClient().query({
16010
+ const a = (await this.getIntegration()).partner.currencyCode, i = await B.getShadowGraphqlClient().query({
16009
16011
  query: zi,
16010
16012
  errorPolicy: "all",
16011
16013
  fetchPolicy: "cache-first",
@@ -16073,7 +16075,7 @@ class Ad {
16073
16075
  */
16074
16076
  async authenticateTransactionFromLocalStorage(t) {
16075
16077
  var d, A, u, h, m, g;
16076
- const e = b.getShadowGraphqlClient(), a = await e.query({
16078
+ const e = B.getShadowGraphqlClient(), a = await e.query({
16077
16079
  query: Qi,
16078
16080
  errorPolicy: "all",
16079
16081
  fetchPolicy: "no-cache",
@@ -16133,7 +16135,7 @@ class Ad {
16133
16135
  e != null && e.has(t) && (e.delete(t), N.setMap("transactionCustomerIds", e));
16134
16136
  }
16135
16137
  async customerHasBundleTemplates(t) {
16136
- const n = (await b.getShadowGraphqlClient().query({
16138
+ const n = (await B.getShadowGraphqlClient().query({
16137
16139
  query: ue,
16138
16140
  errorPolicy: "all",
16139
16141
  fetchPolicy: "no-cache",
@@ -16157,7 +16159,7 @@ class Ad {
16157
16159
  async getOrCreateCustomer(t) {
16158
16160
  var s;
16159
16161
  this.customer = void 0;
16160
- const e = b.getShadowGraphqlClient(), n = (await e.query({
16162
+ const e = B.getShadowGraphqlClient(), n = (await e.query({
16161
16163
  query: ue,
16162
16164
  errorPolicy: "all",
16163
16165
  fetchPolicy: "no-cache",
@@ -16210,7 +16212,7 @@ class Ad {
16210
16212
  else
16211
16213
  return this.logOut(), console.error("Failed to refresh tokens."), !1;
16212
16214
  }
16213
- const o = (await b.getShadowGraphqlClient().query({
16215
+ const o = (await B.getShadowGraphqlClient().query({
16214
16216
  query: ue,
16215
16217
  errorPolicy: "all",
16216
16218
  fetchPolicy: "no-cache",
@@ -16224,7 +16226,7 @@ class Ad {
16224
16226
  * Generate an email code to allow logging in as a Spiff user.
16225
16227
  */
16226
16228
  async generateVerificationCode(t) {
16227
- await b.getShadowGraphqlClient().mutate({
16229
+ await B.getShadowGraphqlClient().mutate({
16228
16230
  mutation: Pl,
16229
16231
  variables: {
16230
16232
  emailAddress: t
@@ -16239,7 +16241,7 @@ class Ad {
16239
16241
  const a = (await this.getIntegration()).partner.id || "", n = await Lt.verifyCode(t, e, a);
16240
16242
  if (n != null && n.AuthenticationResult) {
16241
16243
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(n.AuthenticationResult)), localStorage.setItem("cognito-email", t);
16242
- const s = (await b.getShadowGraphqlClient().query({
16244
+ const s = (await B.getShadowGraphqlClient().query({
16243
16245
  query: ue,
16244
16246
  errorPolicy: "all",
16245
16247
  fetchPolicy: "no-cache",
@@ -16280,7 +16282,7 @@ class Ad {
16280
16282
  var e;
16281
16283
  if (!((e = this.customer) != null && e.id))
16282
16284
  throw new Error("Customer must be logged in before calling this function.");
16283
- return (await b.getShadowGraphqlClient().query({
16285
+ return (await B.getShadowGraphqlClient().query({
16284
16286
  query: Dl,
16285
16287
  variables: {
16286
16288
  id: this.customer.id
@@ -16293,7 +16295,7 @@ class Ad {
16293
16295
  */
16294
16296
  async getNewBundle(t, e, a) {
16295
16297
  var c, d, A, u, h;
16296
- const i = (A = (await b.getShadowGraphqlClient().mutate({
16298
+ const i = (A = (await B.getShadowGraphqlClient().mutate({
16297
16299
  mutation: Ys(((d = (c = a == null ? void 0 : a.graphql) == null ? void 0 : c.productCollection) == null ? void 0 : d.eagerFetchProducts) || !1),
16298
16300
  variables: {
16299
16301
  collectionId: t,
@@ -16323,7 +16325,7 @@ class Ad {
16323
16325
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16324
16326
  */
16325
16327
  async getExistingBundle(t, e, a, n) {
16326
- var h, m, g, p, f, C, w, S, y, E, B;
16328
+ var h, m, g, p, f, C, w, S, y, E, b;
16327
16329
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
16328
16330
  try {
16329
16331
  const I = await this.loggedInBearerToken();
@@ -16336,7 +16338,7 @@ class Ad {
16336
16338
  bundleOwnerId: s,
16337
16339
  ...o,
16338
16340
  ...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
16339
- }, c = await b.getShadowGraphqlClient().query({
16341
+ }, c = await B.getShadowGraphqlClient().query({
16340
16342
  query: Gs(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16341
16343
  variables: {
16342
16344
  id: t
@@ -16352,7 +16354,7 @@ class Ad {
16352
16354
  A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
16353
16355
  const u = new Je(this, d, e, a, s, {
16354
16356
  additionalHeaders: (y = n == null ? void 0 : n.graphql) == null ? void 0 : y.additionalHeaders,
16355
- eagerFetchProducts: (B = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : B.eagerFetchProducts,
16357
+ eagerFetchProducts: (b = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : b.eagerFetchProducts,
16356
16358
  existingGlobalPropertyState: c.data.globalPropertyState,
16357
16359
  readonly: n == null ? void 0 : n.readonly
16358
16360
  });
@@ -16371,14 +16373,14 @@ class Ad {
16371
16373
  const C = await this.loggedInBearerToken();
16372
16374
  s.Authorization = `Bearer ${C}`;
16373
16375
  } catch {
16374
- const S = ((h = Object.entries(localStorage).find(([E, B]) => E.startsWith("CognitoIdentityServiceProvider") && E.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
16376
+ const S = ((h = Object.entries(localStorage).find(([E, b]) => E.startsWith("CognitoIdentityServiceProvider") && E.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
16375
16377
  y && !Wt(y) && (s.Authorization = `Bearer ${y}`);
16376
16378
  }
16377
16379
  const o = {
16378
16380
  bundleOwnerId: i,
16379
16381
  ...s,
16380
16382
  ...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
16381
- }, c = (f = (await b.getShadowGraphqlClient().mutate({
16383
+ }, c = (f = (await B.getShadowGraphqlClient().mutate({
16382
16384
  mutation: Js(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
16383
16385
  variables: {
16384
16386
  id: t,
@@ -16420,7 +16422,7 @@ class Ad {
16420
16422
  if (!((i = this.customer) != null && i.id))
16421
16423
  throw new Error("Customer not authenticated.");
16422
16424
  const { includeMetadata: e, ...a } = t;
16423
- return (await b.getShadowGraphqlClient().query({
16425
+ return (await B.getShadowGraphqlClient().query({
16424
16426
  query: oo(e ?? !1),
16425
16427
  variables: {
16426
16428
  ...a,
@@ -16437,7 +16439,7 @@ class Ad {
16437
16439
  var i;
16438
16440
  if (!this.customer)
16439
16441
  throw new Error("Customer not authenticated.");
16440
- const t = await b.getShadowGraphqlClient().query({
16442
+ const t = await B.getShadowGraphqlClient().query({
16441
16443
  query: Ws,
16442
16444
  variables: {
16443
16445
  id: this.customer.id
@@ -16474,20 +16476,20 @@ class Ad {
16474
16476
  async getWorkflowExperiences(t, e) {
16475
16477
  if (t.length === 0)
16476
16478
  throw new ut("No options provided!");
16477
- const a = b.getShadowGraphqlClient(), n = async (y) => {
16479
+ const a = B.getShadowGraphqlClient(), n = async (y) => {
16478
16480
  var D, F, k;
16479
16481
  if (y.length === 0)
16480
16482
  return [];
16481
- const E = y.map((T) => T.option.transactionId), B = await a.query({
16483
+ const E = y.map((T) => T.option.transactionId), b = await a.query({
16482
16484
  query: Si,
16483
16485
  variables: {
16484
16486
  ids: E
16485
16487
  },
16486
16488
  errorPolicy: "all",
16487
16489
  fetchPolicy: "no-cache"
16488
- }), I = B.data.transactions;
16490
+ }), I = b.data.transactions;
16489
16491
  if (I.length !== y.length) {
16490
- const T = ((F = (D = B.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16492
+ const T = ((F = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16491
16493
  throw new ut(`Not all transactions were found: ${T}`);
16492
16494
  }
16493
16495
  return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((T, nt) => {
@@ -16519,12 +16521,12 @@ class Ad {
16519
16521
  },
16520
16522
  errorPolicy: "all",
16521
16523
  fetchPolicy: "no-cache"
16522
- }), B = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16523
- if (!B || B.length === 0) {
16524
+ }), b = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16525
+ if (!b || b.length === 0) {
16524
16526
  const k = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16525
16527
  throw new ut(`Failed to create transactions: ${k}`);
16526
16528
  }
16527
- return B.map((k, T) => ({
16529
+ return b.map((k, T) => ({
16528
16530
  transaction: k,
16529
16531
  workflowId: k.workflowId,
16530
16532
  readOnly: !1,
@@ -16537,7 +16539,7 @@ class Ad {
16537
16539
  ...d.map(i)
16538
16540
  ])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await nr(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
16539
16541
  var tt;
16540
- const { transaction: E, workflowId: B, readOnly: I, index: D } = y, F = m.get(B), k = t[D];
16542
+ const { transaction: E, workflowId: b, readOnly: I, index: D } = y, F = m.get(b), k = t[D];
16541
16543
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16542
16544
  const T = g.get(E.id) || void 0, nt = new Fl({
16543
16545
  onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
@@ -16549,8 +16551,8 @@ class Ad {
16549
16551
  singleVariantsRenderable: (tt = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : tt.singleVariantsRenderable,
16550
16552
  stateMutationFunc: I ? async () => {
16551
16553
  throw new G("State mutation is forbidden in read only mode!");
16552
- } : async (q) => this.updateTransactionState({
16553
- ...q,
16554
+ } : async (H) => this.updateTransactionState({
16555
+ ...H,
16554
16556
  context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
16555
16557
  }),
16556
16558
  graphQlClient: () => nt,
@@ -16559,11 +16561,11 @@ class Ad {
16559
16561
  isReloadedTransaction: k.type === "transaction"
16560
16562
  };
16561
16563
  if (k.type === "transaction" && E.workflowState) {
16562
- const q = JSON.parse(E.workflowState);
16563
- R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
16564
+ const H = JSON.parse(E.workflowState);
16565
+ R.layouts = Object.values(H.layouts || {}).map((ft) => ft.layout), await Ga(H), R.reloadedState = H;
16564
16566
  } else if (!I && k.workflowState) {
16565
- const q = JSON.parse(k.workflowState);
16566
- R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
16567
+ const H = JSON.parse(k.workflowState);
16568
+ R.layouts = Object.values(H.layouts || {}).map((ft) => ft.layout), await Ga(H), R.reloadedState = H;
16567
16569
  } else
16568
16570
  R.layouts = Rl(
16569
16571
  R.transaction,
@@ -16575,8 +16577,8 @@ class Ad {
16575
16577
  }), f = await Promise.all(p);
16576
16578
  N.setMap("transactionOwnerIds", g);
16577
16579
  const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
16578
- const { experienceOptions: E, options: B } = y, I = new Vo(this, E);
16579
- return await I.getWorkflowManager().getInitializationPromise(), B.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16580
+ const { experienceOptions: E, options: b } = y, I = new Vo(this, E);
16581
+ return await I.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16580
16582
  }), S = await Promise.all(w);
16581
16583
  return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
16582
16584
  }
@@ -16586,7 +16588,7 @@ class Ad {
16586
16588
  }
16587
16589
  async getIntegrationProductById(t, e) {
16588
16590
  var s, o;
16589
- const i = (s = (await b.getShadowGraphqlClient().query({
16591
+ const i = (s = (await B.getShadowGraphqlClient().query({
16590
16592
  query: Ii(e),
16591
16593
  variables: {
16592
16594
  ids: [t]
@@ -16600,7 +16602,7 @@ class Ad {
16600
16602
  }
16601
16603
  async getIntegrationProductFromExternalIds(t, e, a) {
16602
16604
  var o;
16603
- const s = (o = (await b.getShadowGraphqlClient().query({
16605
+ const s = (o = (await B.getShadowGraphqlClient().query({
16604
16606
  query: Pi(a),
16605
16607
  variables: {
16606
16608
  externalProductId: e,
@@ -16617,8 +16619,8 @@ class Ad {
16617
16619
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
16618
16620
  }
16619
16621
  async getShareActionsForTransaction(t) {
16620
- const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await b.getShadowGraphqlClient().query({
16621
- query: bi,
16622
+ const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await B.getShadowGraphqlClient().query({
16623
+ query: Bi,
16622
16624
  errorPolicy: "all",
16623
16625
  fetchPolicy: "no-cache",
16624
16626
  variables: {
@@ -16633,7 +16635,7 @@ class Ad {
16633
16635
  return n.data.transactions[0].transactionShareActions;
16634
16636
  }
16635
16637
  async placeOrder(t) {
16636
- const e = await b.getShadowGraphqlClient().mutate({
16638
+ const e = await B.getShadowGraphqlClient().mutate({
16637
16639
  mutation: Vi,
16638
16640
  variables: {
16639
16641
  orderItems: t
@@ -16649,7 +16651,7 @@ class Ad {
16649
16651
  };
16650
16652
  }
16651
16653
  }
16652
- const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
16654
+ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16653
16655
  query: $i,
16654
16656
  errorPolicy: "all",
16655
16657
  fetchPolicy: "no-cache",
@@ -16662,8 +16664,8 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
16662
16664
  themeConfigurationId: t
16663
16665
  }
16664
16666
  })).data.currentIntegration, ud = async (r) => {
16665
- const e = await b.getShadowGraphqlClient().query({
16666
- query: Bi,
16667
+ const e = await B.getShadowGraphqlClient().query({
16668
+ query: bi,
16667
16669
  errorPolicy: "all",
16668
16670
  fetchPolicy: "network-only",
16669
16671
  variables: {
@@ -16674,7 +16676,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
16674
16676
  return e.data.transactions[0];
16675
16677
  }, hd = async (r, t) => {
16676
16678
  var a;
16677
- return (a = (await b.getShadowGraphqlClient().query({
16679
+ return (a = (await B.getShadowGraphqlClient().query({
16678
16680
  query: Oi,
16679
16681
  errorPolicy: "all",
16680
16682
  variables: {
@@ -16684,7 +16686,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
16684
16686
  })).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
16685
16687
  }, md = async (r) => {
16686
16688
  var e, a, n;
16687
- return (n = (a = (e = (await b.getShadowGraphqlClient().query({
16689
+ return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16688
16690
  query: Li,
16689
16691
  errorPolicy: "all",
16690
16692
  variables: {
@@ -16693,7 +16695,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
16693
16695
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16694
16696
  }, gd = async (r) => {
16695
16697
  var e, a, n;
16696
- return (n = (a = (e = (await b.getShadowGraphqlClient().query({
16698
+ return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16697
16699
  query: Ui,
16698
16700
  errorPolicy: "all",
16699
16701
  variables: {
@@ -17345,7 +17347,7 @@ const zl = v`
17345
17347
  total
17346
17348
  }
17347
17349
  }
17348
- `, ql = v`
17350
+ `, Hl = v`
17349
17351
  query GetTransactionsForBundle($id: String!) {
17350
17352
  bundles(ids: [$id]) {
17351
17353
  id
@@ -17366,7 +17368,7 @@ const zl = v`
17366
17368
  }
17367
17369
  }
17368
17370
  }
17369
- `, Hl = v`
17371
+ `, ql = v`
17370
17372
  mutation SetBundleName($id: String!, $name: String!) {
17371
17373
  bundleUpdate(id: $id, name: $name) {
17372
17374
  id
@@ -17393,42 +17395,42 @@ const zl = v`
17393
17395
  total
17394
17396
  }
17395
17397
  }
17396
- `, fd = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
17397
- mutation: Hl,
17398
+ `, fd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17399
+ mutation: ql,
17398
17400
  errorPolicy: "all",
17399
17401
  variables: {
17400
17402
  id: r,
17401
17403
  name: t
17402
17404
  },
17403
17405
  context: e
17404
- }), Cd = async (r, t) => await b.getShadowGraphqlClient().mutate({
17406
+ }), Cd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17405
17407
  mutation: Gl,
17406
17408
  errorPolicy: "all",
17407
17409
  variables: {
17408
17410
  id: r,
17409
17411
  name: t
17410
17412
  }
17411
- }), wd = async (r, t) => await b.getShadowGraphqlClient().mutate({
17413
+ }), wd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17412
17414
  mutation: Yl,
17413
17415
  errorPolicy: "all",
17414
17416
  variables: {
17415
17417
  id: r,
17416
17418
  template: t
17417
17419
  }
17418
- }), yd = async (r, t) => await b.getShadowGraphqlClient().mutate({
17420
+ }), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17419
17421
  mutation: Wl,
17420
17422
  errorPolicy: "all",
17421
17423
  variables: {
17422
17424
  id: r,
17423
17425
  template: t
17424
17426
  }
17425
- }), Sd = async (r) => (await b.getShadowGraphqlClient().query({
17427
+ }), Sd = async (r) => (await B.getShadowGraphqlClient().query({
17426
17428
  query: zl,
17427
17429
  errorPolicy: "all",
17428
17430
  variables: {
17429
17431
  email: r
17430
17432
  }
17431
- })).data.customer, vd = async (r, t, e) => await b.getShadowGraphqlClient().query({
17433
+ })).data.customer, vd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17432
17434
  query: jl,
17433
17435
  errorPolicy: "all",
17434
17436
  fetchPolicy: "no-cache",
@@ -17437,17 +17439,17 @@ const zl = v`
17437
17439
  offset: e,
17438
17440
  limit: t
17439
17441
  }
17440
- }), Ed = async (r, t) => await b.getShadowGraphqlClient().query({
17441
- query: ql,
17442
+ }), Ed = async (r, t) => await B.getShadowGraphqlClient().query({
17443
+ query: Hl,
17442
17444
  errorPolicy: "all",
17443
17445
  fetchPolicy: "no-cache",
17444
17446
  variables: {
17445
17447
  id: r
17446
17448
  },
17447
17449
  context: t
17448
- }), Bd = async (r, t, e) => {
17450
+ }), bd = async (r, t, e) => {
17449
17451
  var n;
17450
- const a = await b.getShadowGraphqlClient().query({
17452
+ const a = await B.getShadowGraphqlClient().query({
17451
17453
  query: Da,
17452
17454
  errorPolicy: "all",
17453
17455
  fetchPolicy: "no-cache",
@@ -17469,9 +17471,9 @@ const zl = v`
17469
17471
  }
17470
17472
  });
17471
17473
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17472
- }, bd = async (r, t, e) => {
17474
+ }, Bd = async (r, t, e) => {
17473
17475
  var n;
17474
- const a = await b.getShadowGraphqlClient().query({
17476
+ const a = await B.getShadowGraphqlClient().query({
17475
17477
  query: Da,
17476
17478
  errorPolicy: "all",
17477
17479
  fetchPolicy: "no-cache",
@@ -17495,7 +17497,7 @@ const zl = v`
17495
17497
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17496
17498
  }, Id = async (r, t, e) => {
17497
17499
  var n;
17498
- const a = await b.getShadowGraphqlClient().query({
17500
+ const a = await B.getShadowGraphqlClient().query({
17499
17501
  query: Da,
17500
17502
  errorPolicy: "all",
17501
17503
  fetchPolicy: "no-cache",
@@ -17515,7 +17517,7 @@ const zl = v`
17515
17517
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17516
17518
  }, Pd = async (r, t, e) => {
17517
17519
  var n;
17518
- const a = await b.getShadowGraphqlClient().query({
17520
+ const a = await B.getShadowGraphqlClient().query({
17519
17521
  query: Jl,
17520
17522
  errorPolicy: "all",
17521
17523
  fetchPolicy: "no-cache",
@@ -17682,7 +17684,7 @@ const Dd = async (r) => {
17682
17684
  const t = r.map((a) => {
17683
17685
  var n;
17684
17686
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17685
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().query({
17687
+ }).filter((a) => !!a), e = await B.getShadowGraphqlClient().query({
17686
17688
  query: ec,
17687
17689
  errorPolicy: "all",
17688
17690
  fetchPolicy: "network-only",
@@ -17698,7 +17700,7 @@ const Dd = async (r) => {
17698
17700
  });
17699
17701
  }, Fd = async (r) => {
17700
17702
  var e;
17701
- return (e = (await b.getShadowGraphqlClient().query({
17703
+ return (e = (await B.getShadowGraphqlClient().query({
17702
17704
  query: tc,
17703
17705
  errorPolicy: "all",
17704
17706
  fetchPolicy: "network-only",
@@ -17708,7 +17710,7 @@ const Dd = async (r) => {
17708
17710
  })).data) == null ? void 0 : e.addressValidationJobs;
17709
17711
  }, xd = async (r) => {
17710
17712
  var e, a;
17711
- return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await b.getShadowGraphqlClient().mutate({
17713
+ return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await B.getShadowGraphqlClient().mutate({
17712
17714
  mutation: ac,
17713
17715
  errorPolicy: "all",
17714
17716
  fetchPolicy: "network-only",
@@ -17720,7 +17722,7 @@ const Dd = async (r) => {
17720
17722
  const t = r.map((a) => {
17721
17723
  var n;
17722
17724
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17723
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().mutate({
17725
+ }).filter((a) => !!a), e = await B.getShadowGraphqlClient().mutate({
17724
17726
  mutation: nc,
17725
17727
  errorPolicy: "all",
17726
17728
  fetchPolicy: "network-only",
@@ -17757,11 +17759,11 @@ export {
17757
17759
  Vn as CreateLayoutCommand,
17758
17760
  Ml as CurrencyContext,
17759
17761
  kl as CurrencyService,
17760
- Bt as DeleteElementCommand,
17762
+ bt as DeleteElementCommand,
17761
17763
  Po as DigitalContentStepHandle,
17762
17764
  il as FileUploadGlobalPropertyHandle,
17763
17765
  Ae as FlowExecutionNodeResult,
17764
- Bl as FlowExecutionResult,
17766
+ bl as FlowExecutionResult,
17765
17767
  El as FlowService,
17766
17768
  us as FontAlignmentCommand,
17767
17769
  ds as FontColorCommand,
@@ -17776,11 +17778,11 @@ export {
17776
17778
  Re as InformationMessageType,
17777
17779
  Io as InformationStepHandle,
17778
17780
  _a as IntegrationProduct,
17779
- br as IntegrationType,
17781
+ Br as IntegrationType,
17780
17782
  Jc as LayoutElementFactory,
17781
17783
  M as LayoutElementType,
17782
17784
  J as LayoutNotFoundError,
17783
- qt as LayoutRenderingPurpose,
17785
+ Ht as LayoutRenderingPurpose,
17784
17786
  yo as MaterialStepHandle,
17785
17787
  Se as MisconfigurationError,
17786
17788
  pd as MockWorkflowManager,
@@ -17788,7 +17790,7 @@ export {
17788
17790
  Do as ModuleStepHandle,
17789
17791
  Kc as MoveCommand,
17790
17792
  ar as ObjectInput,
17791
- bl as ObjectInputType,
17793
+ Bl as ObjectInputType,
17792
17794
  tr as OptionGlobalPropertyHandle,
17793
17795
  ye as OptionNotFoundError,
17794
17796
  Ft as ParseError,
@@ -17802,12 +17804,12 @@ export {
17802
17804
  Eo as QuestionStepHandle,
17803
17805
  xn as QueueablePromise,
17804
17806
  Xc as ResizeCommand,
17805
- Ht as ResourceNotFoundError,
17807
+ qt as ResourceNotFoundError,
17806
17808
  _c as RotateCommand,
17807
- H as ScaleAxis,
17809
+ q as ScaleAxis,
17808
17810
  nd as SendBackwardsCommand,
17809
- Bo as ShapeStepHandle,
17810
- Br as ShareActionType,
17811
+ bo as ShapeStepHandle,
17812
+ br as ShareActionType,
17811
17813
  Ad as SpiffCommerceClient,
17812
17814
  we as StakeholderType,
17813
17815
  vr as StepAspectType,
@@ -17817,7 +17819,7 @@ export {
17817
17819
  gs as TextChangeCommand,
17818
17820
  sl as TextGlobalPropertyHandle,
17819
17821
  ld as TextInput,
17820
- bo as TextStepHandle,
17822
+ Bo as TextStepHandle,
17821
17823
  pl as Transform,
17822
17824
  gl as TransformCollection,
17823
17825
  G as UnhandledBehaviorError,
@@ -17828,7 +17830,7 @@ export {
17828
17830
  Vo as WorkflowExperienceImpl,
17829
17831
  U as assetService,
17830
17832
  Zr as browserColorToHex,
17831
- Hc as cmPerPixel,
17833
+ qc as cmPerPixel,
17832
17834
  No as createDesign,
17833
17835
  Wc as currentDirection,
17834
17836
  Mc as dataUrlFromExternalUrl,
@@ -17861,7 +17863,7 @@ export {
17861
17863
  Ol as getIntegration,
17862
17864
  zc as getNEPoint,
17863
17865
  Vc as getNWPoint,
17864
- bd as getOrderedTransactions,
17866
+ Bd as getOrderedTransactions,
17865
17867
  hd as getOverrideThemeConfiguration,
17866
17868
  Lc as getPointOfRotation,
17867
17869
  od as getProductCollections,
@@ -17873,28 +17875,28 @@ export {
17873
17875
  gd as getTransactionThemeConfiguration,
17874
17876
  Ed as getTransactionsForBundle,
17875
17877
  Uc as getTrueCoordinates,
17876
- Bd as getUnorderedTransactions,
17878
+ bd as getUnorderedTransactions,
17877
17879
  Dd as getValidationJobsForWorkflowExperiences,
17878
17880
  dd as getWorkflow,
17879
17881
  nr as getWorkflows,
17880
- b as graphQlManager,
17882
+ B as graphQlManager,
17881
17883
  ge as illustrationStepService,
17882
17884
  $c as isCloseToValue,
17883
17885
  Nt as loadFont,
17884
17886
  Nc as matchHexToPms,
17885
17887
  Wn as materialStepService,
17886
17888
  hl as metafieldManager,
17887
- qc as mmPerPixel,
17889
+ Hc as mmPerPixel,
17888
17890
  jn as modelStepService,
17889
17891
  Ca as modifySVGColors,
17890
- qn as moduleStepService,
17892
+ Hn as moduleStepService,
17891
17893
  fd as nameBundle,
17892
17894
  Cd as nameTransaction,
17893
17895
  Y as optionService,
17894
17896
  Yc as outlineFontsInSvg,
17895
17897
  At as patternImageDataCache,
17896
17898
  N as persistenceService,
17897
- Hn as pictureStepService,
17899
+ qn as pictureStepService,
17898
17900
  Tc as pmsToRgb,
17899
17901
  Yn as questionStepService,
17900
17902
  kc as registerFetchImplementation,
@@ -17916,6 +17918,6 @@ export {
17916
17918
  Ps as toast,
17917
17919
  xd as validateWorkflowExperienceRecipient,
17918
17920
  kd as validateWorkflowExperienceRecipients,
17919
- bt as xmlSerializer
17921
+ Bt as xmlSerializer
17920
17922
  };
17921
17923
  //# sourceMappingURL=index.mjs.map