@spiffcommerce/core 26.32.0-beta.920200cd-ffef-5c6d-8a0f-5070f2f3e705 → 26.32.0-beta.cf9b855c-b5d3-5d50-a076-25da5f9000cd

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
@@ -4,28 +4,28 @@ import { onError as cr } from "@apollo/client/link/error";
4
4
  import { renderToStaticMarkup as dr } from "preact-render-to-string";
5
5
  import { removeTypenameFromVariables as Ar } from "@apollo/client/link/remove-typename";
6
6
  import { orientation as ur } from "exifr/dist/mini.umd.cjs";
7
- import { parse as nn } from "css";
7
+ import { parse as an } from "css";
8
8
  import hr from "fuse.js";
9
9
  import { Pith as ca } from "pith";
10
10
  import Ft from "lodash.clonedeep";
11
- import { toString as rn } from "qrcode";
11
+ import { toString as nn } from "qrcode";
12
12
  import mr from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
14
  import { jsx as x, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
15
15
  import { dataUriToBuffer as gr } from "data-uri-to-buffer";
16
- import Pa from "lodash.chunk";
17
- import sn from "lodash.isequal";
16
+ import Da from "lodash.chunk";
17
+ import rn from "lodash.isequal";
18
18
  import { split as Ke } from "unicode-default-word-boundary";
19
- import on from "lodash.debounce";
19
+ import sn from "lodash.debounce";
20
20
  import "fs";
21
21
  import "path";
22
22
  var ge = /* @__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))(ge || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__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))(D || {}), fr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(fr || {}), Wt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Wt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), pr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(pr || {}), Cr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Cr || {}), wr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(wr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), yr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(yr || {}), fe = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(fe || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), j = /* @__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))(j || {}), Sr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Sr || {});
23
- class ln extends Error {
23
+ class on extends Error {
24
24
  constructor(t) {
25
25
  super(t), this.name = this.constructor.name;
26
26
  }
27
27
  }
28
- class Jt extends ln {
28
+ class Jt extends on {
29
29
  constructor(t) {
30
30
  super(`ConfigurationError - ${t}`);
31
31
  }
@@ -55,7 +55,7 @@ class Ce extends Jt {
55
55
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
56
56
  }
57
57
  }
58
- class be extends ln {
58
+ class be extends on {
59
59
  constructor(t) {
60
60
  super(`ImplementationError - ${t}`);
61
61
  }
@@ -100,7 +100,7 @@ class vr {
100
100
  this.set(t, a);
101
101
  }
102
102
  }
103
- class Fa {
103
+ class Pa {
104
104
  constructor() {
105
105
  this.storage = /* @__PURE__ */ new Map();
106
106
  }
@@ -125,9 +125,9 @@ class Fa {
125
125
  }
126
126
  const Er = () => {
127
127
  try {
128
- return localStorage ? new vr() : new Fa();
128
+ return localStorage ? new vr() : new Pa();
129
129
  } catch {
130
- return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new Fa();
130
+ return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new Pa();
131
131
  }
132
132
  }, M = Er();
133
133
  class Br {
@@ -179,22 +179,22 @@ function nt(r, t) {
179
179
  }
180
180
  return Xe(r, t);
181
181
  }
182
- const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @__PURE__ */ new Map(), dn = async (r) => {
183
- const t = xa.get(r);
182
+ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
+ const t = Fa.get(r);
184
184
  if (t)
185
185
  return t;
186
186
  const a = (async () => {
187
187
  var i;
188
188
  const n = await nt(r);
189
- return cn.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
189
+ return ln.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
190
190
  })();
191
- return xa.set(r, a), a;
191
+ return Fa.set(r, a), a;
192
192
  }, br = async (r) => {
193
- const t = ka.get(r);
193
+ const t = xa.get(r);
194
194
  if (t)
195
195
  return t;
196
196
  const a = (async () => await (await nt(r)).text())();
197
- return ka.set(r, a), a;
197
+ return xa.set(r, a), a;
198
198
  }, Tt = (r) => r.every((t) => t !== "undefined"), ne = (r) => Tt([typeof document]) ? document.createElement(r) : Kt().document.createElement(r), Ir = (r, t) => {
199
199
  if (Tt([typeof document]))
200
200
  return document.createElementNS(r, t);
@@ -206,7 +206,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
206
206
  const r = Kt();
207
207
  return new r.DOMParser();
208
208
  }, Dr = () => Tt([typeof DOMParser]) ? DOMParser : Kt().DOMParser, De = (r, t) => new Promise((e, a) => {
209
- t ? dn(r).then(e).catch(a) : nt(r).then((n) => {
209
+ t ? cn(r).then(e).catch(a) : nt(r).then((n) => {
210
210
  n.arrayBuffer().then(e).catch(a);
211
211
  }).catch((n) => {
212
212
  a(n);
@@ -215,7 +215,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
215
215
  t ? br(r).then(e).catch(a) : nt(r).then((n) => {
216
216
  n.text().then(e).catch(a);
217
217
  }).catch(a);
218
- }), An = (r) => dr(r), Qe = /* @__PURE__ */ new Map(), Pr = async (r, t) => {
218
+ }), dn = (r) => dr(r), Qe = /* @__PURE__ */ new Map(), Pr = async (r, t) => {
219
219
  if (Tt([typeof FontFace])) {
220
220
  if (Qe.has(t))
221
221
  return Qe.get(t);
@@ -229,7 +229,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
229
229
  return new XMLSerializer();
230
230
  const r = Kt();
231
231
  return new r.XMLSerializer();
232
- }, Ma = (r) => btoa(r), Pe = (r) => {
232
+ }, ka = (r) => btoa(r), Pe = (r) => {
233
233
  function t() {
234
234
  const a = new Uint8Array(r), n = 4;
235
235
  if (a.length >= n) {
@@ -257,7 +257,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
259
  }, wc = async (r) => {
260
- const t = await dn(r), e = cn.get(r) || Pe(t);
260
+ const t = await cn(r), e = ln.get(r) || Pe(t);
261
261
  return await kr(new Blob([t], { type: e }));
262
262
  }, Fr = (r) => {
263
263
  let t = "";
@@ -268,7 +268,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
268
268
  }, xr = async (r) => {
269
269
  const t = Pe(r), e = new Uint8Array(r), a = Fr(e), n = btoa(a);
270
270
  return `data:${t};base64,${n}`;
271
- }, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, un = (r) => {
271
+ }, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, An = (r) => {
272
272
  const t = r.replace(/\r?\n/g, ""), e = t.indexOf(",");
273
273
  if (e === -1 || e <= 4)
274
274
  throw new TypeError("malformed data: URI");
@@ -287,17 +287,17 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), ka = /* @_
287
287
  !i || !i.result ? e() : t(i.result.toString());
288
288
  }, a.readAsDataURL(r);
289
289
  });
290
- let hn;
291
- const Ta = (r) => {
292
- hn = r;
290
+ let un;
291
+ const Ma = (r) => {
292
+ un = r;
293
293
  };
294
294
  let ua;
295
295
  const Mr = (r) => {
296
296
  ua = r;
297
297
  }, Tr = () => ua;
298
- let mn;
298
+ let hn;
299
299
  const Qr = (r) => {
300
- mn = r;
300
+ hn = r;
301
301
  }, Nr = () => new Promise((r) => {
302
302
  const t = mt.getHubUrl(), e = (a) => {
303
303
  a.origin === t && (window.removeEventListener("message", e), r(a.data));
@@ -306,8 +306,8 @@ const Qr = (r) => {
306
306
  }), Rr = async () => {
307
307
  const r = {
308
308
  applicationKey: ua,
309
- customerToken: hn,
310
- bearer: mn
309
+ customerToken: un,
310
+ bearer: hn
311
311
  };
312
312
  return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Nr(), ...r } : r;
313
313
  };
@@ -363,8 +363,8 @@ const gt = (r, t, e) => {
363
363
  if (Ze !== void 0)
364
364
  return Ze(r, t, e);
365
365
  try {
366
- const a = fn(!0);
367
- return gn(a), a.createCanvas(r, t, e);
366
+ const a = gn(!0);
367
+ return mn(a), a.createCanvas(r, t, e);
368
368
  } catch {
369
369
  throw new Error("Canvas module not set");
370
370
  }
@@ -372,16 +372,16 @@ const gt = (r, t, e) => {
372
372
  if (ta !== void 0)
373
373
  return ta(r, t);
374
374
  try {
375
- const e = fn(!0);
376
- return gn(e), e.loadImage(r, t);
375
+ const e = gn(!0);
376
+ return mn(e), e.loadImage(r, t);
377
377
  } catch {
378
378
  throw new Error("Canvas module not set");
379
379
  }
380
380
  };
381
- function gn(r) {
381
+ function mn(r) {
382
382
  Ze = r == null ? void 0 : r.createCanvas, ta = r == null ? void 0 : r.loadImage;
383
383
  }
384
- function fn(r) {
384
+ function gn(r) {
385
385
  try {
386
386
  if (document.createElement("canvas").getContext("2d"))
387
387
  return {
@@ -3183,23 +3183,23 @@ function vc(r, t) {
3183
3183
  let Nt = null;
3184
3184
  function Hr(r) {
3185
3185
  if (r.startsWith("#"))
3186
- return Qa(r);
3186
+ return Ta(r);
3187
3187
  if (!document)
3188
3188
  throw new Error("browserColorToHex is only supported on browsers");
3189
3189
  if (Nt || (Nt = document.createElement("canvas").getContext("2d")), !Nt)
3190
3190
  throw new Error("Failed to create canvas context required to convert colors");
3191
3191
  Nt.fillStyle = r;
3192
- const t = Qa(Nt.fillStyle);
3192
+ const t = Ta(Nt.fillStyle);
3193
3193
  return t || console.error(`Unknown browser color ${r}`), t;
3194
3194
  }
3195
- function Qa(r) {
3195
+ function Ta(r) {
3196
3196
  const t = r.substring(1).toUpperCase();
3197
3197
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3198
3198
  }
3199
3199
  const ie = (r) => {
3200
- const t = pn(r.spotColor);
3200
+ const t = fn(r.spotColor);
3201
3201
  return t ? `${r.browserValue} ${t}` : r.browserValue;
3202
- }, pn = (r) => {
3202
+ }, fn = (r) => {
3203
3203
  if (!r)
3204
3204
  return "";
3205
3205
  if (r.profileName.includes("/") && r.profileName.includes(".icc")) {
@@ -3207,7 +3207,7 @@ const ie = (r) => {
3207
3207
  return `icc-named-color(${t.slice(e + 1).slice(0, -4)}, ${r.namedColor})`;
3208
3208
  }
3209
3209
  return `icc-named-color(${r.profileName}, ${r.namedColor})`;
3210
- }, Na = (r) => {
3210
+ }, Qa = (r) => {
3211
3211
  const t = r.split(/[ ](?=[^)]*?(?:\(|$))/);
3212
3212
  if (t.length === 0)
3213
3213
  return { browserValue: "#000000" };
@@ -3252,7 +3252,7 @@ const ie = (r) => {
3252
3252
  }
3253
3253
  if (a.tagName === "style") {
3254
3254
  try {
3255
- (i = nn(a.innerHTML).stylesheet) == null || i.rules.forEach((c) => {
3255
+ (i = an(a.innerHTML).stylesheet) == null || i.rules.forEach((c) => {
3256
3256
  e.push(c);
3257
3257
  }), a.remove();
3258
3258
  } catch (l) {
@@ -3287,9 +3287,9 @@ const ie = (r) => {
3287
3287
  if (!e)
3288
3288
  throw new Error("viewBox not specified on SVG!");
3289
3289
  a && r.setAttribute("width", a.replace(t, "")), n && r.setAttribute("height", n.replace(t, ""));
3290
- }, Cn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, _r = (r, t, e) => {
3290
+ }, pn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, _r = (r, t, e) => {
3291
3291
  r.setAttribute("height", `${e}px`), r.setAttribute("width", `${t}px`);
3292
- }, wn = (r, t, e) => {
3292
+ }, Cn = (r, t, e) => {
3293
3293
  kt(r, (a) => {
3294
3294
  const n = a.attributes.getNamedItem("fill");
3295
3295
  n && n.value !== "none" && a.classList.forEach((s) => {
@@ -3328,16 +3328,16 @@ const ie = (r) => {
3328
3328
  }
3329
3329
  });
3330
3330
  });
3331
- }, yn = (r) => Bt().serializeToString(r), ga = (r, t, e, a, n) => {
3332
- const i = Cn(r);
3331
+ }, wn = (r) => Bt().serializeToString(r), ga = (r, t, e, a, n) => {
3332
+ const i = pn(r);
3333
3333
  if (!i)
3334
3334
  throw new Error("Failed to read SVG.");
3335
- return _r(i, t, e), wn(i, a, n), yn(i);
3335
+ return _r(i, t, e), Cn(i, a, n), wn(i);
3336
3336
  }, fa = (r, t, e) => {
3337
- const a = Cn(r);
3337
+ const a = pn(r);
3338
3338
  if (!a)
3339
3339
  throw new Error("Failed to read SVG.");
3340
- return wn(a, t, e), yn(a);
3340
+ return Cn(a, t, e), wn(a);
3341
3341
  }, Xr = (r) => {
3342
3342
  const t = /<svg.*<\/svg>/s, e = r.match(t) || [], a = (e == null ? void 0 : e.length) > 0 ? e[0] : "";
3343
3343
  return dt().parseFromString(a, "image/svg+xml");
@@ -3351,12 +3351,12 @@ const ie = (r) => {
3351
3351
  qr.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3352
3352
  const o = s.attributes.getNamedItem("fill");
3353
3353
  if (o && o.value !== "none" && !o.value.startsWith("url(")) {
3354
- const c = Na(o.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
3354
+ const c = Qa(o.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
3355
3355
  s.setAttribute("fill", c.browserValue), s.classList.add(A), a[d] = c;
3356
3356
  }
3357
3357
  const l = s.attributes.getNamedItem("stroke");
3358
3358
  if (l && l.value !== "none" && !l.value.startsWith("url(")) {
3359
- const c = Na(l.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-stroke-${d}`;
3359
+ const c = Qa(l.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-stroke-${d}`;
3360
3360
  s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
3361
3361
  }
3362
3362
  });
@@ -3704,7 +3704,7 @@ class si {
3704
3704
  }
3705
3705
  }
3706
3706
  }
3707
- const Rt = "persistentAssets", Sn = class Ct {
3707
+ const Rt = "persistentAssets", yn = class Ct {
3708
3708
  /**
3709
3709
  * Add a new asset to persistence
3710
3710
  * @param asset The asset to add.
@@ -3755,9 +3755,9 @@ const Rt = "persistentAssets", Sn = class Ct {
3755
3755
  Ct.callbacks.forEach((t) => t());
3756
3756
  }
3757
3757
  };
3758
- Sn.callbacks = [];
3759
- let bt = Sn;
3760
- const Ra = "bgrmPersistentAssets";
3758
+ yn.callbacks = [];
3759
+ let bt = yn;
3760
+ const Na = "bgrmPersistentAssets";
3761
3761
  class Y {
3762
3762
  static has(t) {
3763
3763
  return Y.getMap().has(t);
@@ -3784,10 +3784,10 @@ class Y {
3784
3784
  a && (e.delete(a), Y.setMap(e));
3785
3785
  }
3786
3786
  static getMap() {
3787
- return M.getMap(Ra) || /* @__PURE__ */ new Map();
3787
+ return M.getMap(Na) || /* @__PURE__ */ new Map();
3788
3788
  }
3789
3789
  static setMap(t) {
3790
- M.setMap(Ra, t);
3790
+ M.setMap(Na, t);
3791
3791
  }
3792
3792
  }
3793
3793
  const U = new si();
@@ -3822,7 +3822,7 @@ class oi {
3822
3822
  this.disabled = t;
3823
3823
  }
3824
3824
  }
3825
- const qt = new oi(), vn = y`
3825
+ const qt = new oi(), Sn = y`
3826
3826
  fragment OptionFields on Option {
3827
3827
  id
3828
3828
  name
@@ -3862,7 +3862,7 @@ const qt = new oi(), vn = y`
3862
3862
  `, li = y`
3863
3863
  ${Xt(!1)}
3864
3864
  ${pa}
3865
- ${vn}
3865
+ ${Sn}
3866
3866
  query GetOptions($ids: [String]!) {
3867
3867
  options(ids: $ids) {
3868
3868
  ...OptionFields
@@ -3937,7 +3937,7 @@ class ui {
3937
3937
  }
3938
3938
  }
3939
3939
  }
3940
- const _ = new ui(), En = y`
3940
+ const _ = new ui(), vn = y`
3941
3941
  fragment ActiveIntegrationFields on Integration {
3942
3942
  id
3943
3943
  logo
@@ -4060,7 +4060,7 @@ const _ = new ui(), En = y`
4060
4060
  }
4061
4061
  }
4062
4062
  }
4063
- `, Bn = y`
4063
+ `, En = y`
4064
4064
  fragment StakeholderFields on Stakeholder {
4065
4065
  id
4066
4066
  type
@@ -4068,7 +4068,7 @@ const _ = new ui(), En = y`
4068
4068
  authorizationNote
4069
4069
  authorizationStatus
4070
4070
  }
4071
- `, bn = y`
4071
+ `, Bn = y`
4072
4072
  fragment TransactionShareActionFields on TransactionShareAction {
4073
4073
  id
4074
4074
  title
@@ -4079,9 +4079,9 @@ const _ = new ui(), En = y`
4079
4079
  }
4080
4080
  `, mi = y`
4081
4081
  ${xe}
4082
- ${Bn}
4083
- ${bn}
4084
4082
  ${En}
4083
+ ${Bn}
4084
+ ${vn}
4085
4085
  query ReadTransactions($ids: [String]!) {
4086
4086
  transactions(ids: $ids) {
4087
4087
  customLogoLink
@@ -4310,7 +4310,7 @@ const _ = new ui(), En = y`
4310
4310
  }
4311
4311
  }
4312
4312
  `, Ci = y`
4313
- ${bn}
4313
+ ${Bn}
4314
4314
  query ReadTransactionForShareActions($id: String!) {
4315
4315
  transactions(ids: [$id]) {
4316
4316
  id
@@ -4320,14 +4320,14 @@ const _ = new ui(), En = y`
4320
4320
  }
4321
4321
  }
4322
4322
  }
4323
- `, In = y`
4323
+ `, bn = y`
4324
4324
  query ReadWorkflowStates($ids: [String]!) {
4325
4325
  transactions(ids: $ids) {
4326
4326
  id
4327
4327
  workflowState
4328
4328
  }
4329
4329
  }
4330
- `, Dn = (r) => y`
4330
+ `, In = (r) => y`
4331
4331
  ${xe}
4332
4332
  fragment IntegrationProductFields on IntegrationProduct {
4333
4333
  id
@@ -4411,14 +4411,14 @@ const _ = new ui(), En = y`
4411
4411
  }
4412
4412
  }
4413
4413
  `, wi = (r) => y`
4414
- ${Dn(r)}
4414
+ ${In(r)}
4415
4415
  query GetIntegrationProducts($ids: [String!]!) {
4416
4416
  integrationProducts(ids: $ids) {
4417
4417
  ...IntegrationProductFields
4418
4418
  }
4419
4419
  }
4420
4420
  `, yi = (r) => y`
4421
- ${Dn(r)}
4421
+ ${In(r)}
4422
4422
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4423
4423
  integrationProductFromExternalIds(
4424
4424
  externalIntegrationId: $externalIntegrationId
@@ -4428,7 +4428,7 @@ const _ = new ui(), En = y`
4428
4428
  }
4429
4429
  }
4430
4430
  `, Si = y`
4431
- ${Bn}
4431
+ ${En}
4432
4432
  query ReadTransactionForStakeholders($id: String!) {
4433
4433
  transactions(ids: [$id]) {
4434
4434
  stakeholders {
@@ -4566,7 +4566,7 @@ const _ = new ui(), En = y`
4566
4566
  `, Di = (r) => y`
4567
4567
  ${Xt(r)}
4568
4568
  ${pa}
4569
- ${vn}
4569
+ ${Sn}
4570
4570
  ${Ei}
4571
4571
  ${Bi}
4572
4572
  ${bi}
@@ -5087,7 +5087,7 @@ const _ = new ui(), En = y`
5087
5087
  }
5088
5088
  }
5089
5089
  `, ki = y`
5090
- ${En}
5090
+ ${vn}
5091
5091
  ${ke}
5092
5092
  query GetCurrentIntegration($themeConfigurationId: String) {
5093
5093
  currentIntegration {
@@ -5213,12 +5213,12 @@ const _ = new ui(), En = y`
5213
5213
  );
5214
5214
  return i;
5215
5215
  };
5216
- class Pn {
5216
+ class Dn {
5217
5217
  constructor() {
5218
5218
  this.timestamp = Date.now();
5219
5219
  }
5220
5220
  }
5221
- class Fn {
5221
+ class Pn {
5222
5222
  /**
5223
5223
  * Constructs a new promise queue.
5224
5224
  * @param queueMaxSize An optional maximum size, when the max size is hit.
@@ -5351,7 +5351,7 @@ const N = () => {
5351
5351
  {
5352
5352
  id: "element-group",
5353
5353
  clipPath: a.purpose === Wt.FreeDesign ? "url(#viewboxClip)" : void 0,
5354
- children: S.map((B) => Nn(B)).filter((B) => !!B)
5354
+ children: S.map((B) => Qn(B)).filter((B) => !!B)
5355
5355
  }
5356
5356
  ),
5357
5357
  l && /* @__PURE__ */ x(
@@ -5470,7 +5470,7 @@ const N = () => {
5470
5470
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5471
5471
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5472
5472
  };
5473
- }, Tc = 0.352778, Qc = 0.035277, xn = (r) => {
5473
+ }, Tc = 0.352778, Qc = 0.035277, Fn = (r) => {
5474
5474
  const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
5475
5475
  return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5476
5476
  "g",
@@ -5492,7 +5492,7 @@ const N = () => {
5492
5492
  )
5493
5493
  }
5494
5494
  ) });
5495
- }, kn = (r) => {
5495
+ }, xn = (r) => {
5496
5496
  var l;
5497
5497
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = ft(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5498
5498
  return /* @__PURE__ */ ct(zt, { children: [
@@ -5519,7 +5519,7 @@ const N = () => {
5519
5519
  height: r.height
5520
5520
  }
5521
5521
  ) : void 0,
5522
- s.map((c) => Nn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
5522
+ s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
5523
5523
  ]
5524
5524
  }
5525
5525
  )
@@ -5599,7 +5599,7 @@ const N = () => {
5599
5599
  matrix(${r.scaleX}, 0, 0, ${r.scaleY}, 0, 0)
5600
5600
  `,
5601
5601
  children: /* @__PURE__ */ x(
5602
- kn,
5602
+ xn,
5603
5603
  {
5604
5604
  id: t,
5605
5605
  x: 0,
@@ -5616,7 +5616,7 @@ const N = () => {
5616
5616
  }
5617
5617
  )
5618
5618
  ] });
5619
- }, Mn = /* @__PURE__ */ new Map();
5619
+ }, kn = /* @__PURE__ */ new Map();
5620
5620
  class Vi {
5621
5621
  constructor(t) {
5622
5622
  this.font = t, this.glyphsFromText = /* @__PURE__ */ new Map(), this.kerningValues = /* @__PURE__ */ new Map(), this.height = this.calculateApproximateHeight();
@@ -5675,7 +5675,7 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5675
5675
  return vt(r).getFont();
5676
5676
  } catch {
5677
5677
  if (zi(r)) {
5678
- const a = un(r), n = Je(a);
5678
+ const a = An(r), n = Je(a);
5679
5679
  return aa(r, n), n;
5680
5680
  } else {
5681
5681
  const a = await De(r, !0), n = Je(a);
@@ -5685,21 +5685,21 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5685
5685
  })();
5686
5686
  return Oe.set(r, e), e;
5687
5687
  }, Gi = (r) => {
5688
- const t = un(r), e = Je(t);
5688
+ const t = An(r), e = Je(t);
5689
5689
  return aa(r, e), e;
5690
5690
  }, vt = (r) => {
5691
- const t = Mn.get(r);
5691
+ const t = kn.get(r);
5692
5692
  if (t)
5693
5693
  return t;
5694
5694
  throw new Error("Font metrics unavailable for font");
5695
5695
  }, aa = (r, t) => {
5696
5696
  const e = new Vi(t);
5697
- return Mn.set(r, e), e;
5697
+ return kn.set(r, e), e;
5698
5698
  }, Nc = async (r) => {
5699
5699
  const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
5700
5700
  a.querySelectorAll("style").forEach((d) => {
5701
5701
  var u;
5702
- (u = nn(d.innerHTML).stylesheet) == null || u.rules.forEach((h) => {
5702
+ (u = an(d.innerHTML).stylesheet) == null || u.rules.forEach((h) => {
5703
5703
  var m, g, f;
5704
5704
  if (h.type === "font-face" && h.declarations) {
5705
5705
  const p = (m = h.declarations.find(
@@ -5732,7 +5732,7 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5732
5732
  }
5733
5733
  return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5734
5734
  }, we = (r, t, e, a) => Math.max(qi(r.join(`
5735
- `), e, a), t), Oa = (r, t, e, a, n, i) => {
5735
+ `), e, a), t), Ra = (r, t, e, a, n, i) => {
5736
5736
  const s = (i || Ca) * n.getApproximateHeight(), o = t.split(`
5737
5737
  `);
5738
5738
  try {
@@ -5784,13 +5784,13 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5784
5784
  throw new Error(`No max width calculated for text: ${o}.`);
5785
5785
  return { lines: o, width: l };
5786
5786
  }, Wi = (r, t, e, a, n, i) => {
5787
- const s = (i ?? Ca) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Tn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5787
+ const s = (i ?? Ca) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Mn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5788
5788
  return Math.min(A, d);
5789
5789
  }, ji = (r, t, e, a) => {
5790
5790
  var c;
5791
5791
  const n = vt(t.fontData.assetUrl), i = n.getFont(), s = t.fontSize / i.unitsPerEm;
5792
5792
  if (!e)
5793
- return Oa(t, r, t.fontSize, s, n, a);
5793
+ return Ra(t, r, t.fontSize, s, n, a);
5794
5794
  let o;
5795
5795
  if (t.text ? o = t.text.split(`
5796
5796
  `) : o = ((c = t.input) == null ? void 0 : c.split(`
@@ -5807,11 +5807,11 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5807
5807
  requiredHeight: t.height,
5808
5808
  requiredWidth: we(o, t.width, s, n),
5809
5809
  fontSize: Wi(o, n, i, t.width, t.height, a)
5810
- } : Oa(t, r, t.fontSize, s, n, a);
5810
+ } : Ra(t, r, t.fontSize, s, n, a);
5811
5811
  }, Hi = (r, t, e, a, n) => {
5812
5812
  const s = vt(t.assetUrl).getFont();
5813
5813
  let o = { ...r };
5814
- const l = { ...r }, c = Tn(a, e / s.unitsPerEm, vt(t.assetUrl));
5814
+ const l = { ...r }, c = Mn(a, e / s.unitsPerEm, vt(t.assetUrl));
5815
5815
  return c && c < o.width && (l.width = c, n === "left" ? (l.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), l.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : n === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && Yi(a, a).every(([d, A]) => d === A) && (o = l)), o;
5816
5816
  }, $e = 1, ht = (r, t, e) => {
5817
5817
  let a = 0;
@@ -5831,21 +5831,21 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5831
5831
  a = Math.max(a, o || 0);
5832
5832
  }
5833
5833
  }), a *= t, a;
5834
- }, Tn = (r, t, e) => {
5834
+ }, Mn = (r, t, e) => {
5835
5835
  let a = 0;
5836
5836
  return r.forEach((n) => {
5837
5837
  a = Math.max(a, ht(n, t, e));
5838
5838
  }), a;
5839
- }, $a = {
5839
+ }, Oa = {
5840
5840
  stripControlCharacters: !0,
5841
5841
  vertical: !1,
5842
5842
  uppercase: !1
5843
- }, ye = (r, t = $a) => {
5844
- const e = { ...$a, ...t };
5843
+ }, ye = (r, t = Oa) => {
5844
+ const e = { ...Oa, ...t };
5845
5845
  let a = r || "";
5846
5846
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5847
5847
  `)), a;
5848
- }, Yi = (r, t) => r.map((e, a) => [e, t[a]]), Ji = (r = "center", t = !1) => t ? "center" : r, Qn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle", Zt = (r, t, e) => r.fontData ? {
5848
+ }, Yi = (r, t) => r.map((e, a) => [e, t[a]]), Ji = (r = "center", t = !1) => t ? "center" : r, Tn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle", Zt = (r, t, e) => r.fontData ? {
5849
5849
  ...r,
5850
5850
  ...(() => {
5851
5851
  if (r.algorithm === Mt.Traditional) {
@@ -5871,7 +5871,7 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5871
5871
  return null;
5872
5872
  const u = () => {
5873
5873
  var p;
5874
- return r.textFillImage ? `url("#${s}")` : (p = r._renderingConfiguration) != null && p.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${pn(r.fillSpotColorDefinition)}` : r.fill;
5874
+ return r.textFillImage ? `url("#${s}")` : (p = r._renderingConfiguration) != null && p.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${fn(r.fillSpotColorDefinition)}` : r.fill;
5875
5875
  };
5876
5876
  return /* @__PURE__ */ ct(zt, { children: [
5877
5877
  /* @__PURE__ */ ct("defs", { children: [
@@ -5958,14 +5958,14 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5958
5958
  const s = (r.amountLines - 1) / 2;
5959
5959
  return (r.thisLineIdx - s) * n + r.fontSize / 4;
5960
5960
  };
5961
- return /* @__PURE__ */ x("tspan", { textAnchor: Qn(r.align), x: e(), y: `${a()}px`, children: r.text });
5961
+ return /* @__PURE__ */ x("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5962
5962
  }, Xi = (r) => {
5963
5963
  const t = `#${r.curvedPathId}`;
5964
5964
  return /* @__PURE__ */ x(
5965
5965
  "textPath",
5966
5966
  {
5967
5967
  startOffset: (() => r.align === "left" ? "0%" : r.align === "right" ? "100%" : "50%")(),
5968
- textAnchor: Qn(r.align),
5968
+ textAnchor: Tn(r.align),
5969
5969
  href: t,
5970
5970
  xlinkHref: t,
5971
5971
  children: r.text
@@ -5975,7 +5975,7 @@ const zi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5975
5975
  var s, o;
5976
5976
  if (r.cachedObjectURL && !((s = r._renderingConfiguration) != null && s.omitCachedFields))
5977
5977
  return /* @__PURE__ */ x(
5978
- xn,
5978
+ Fn,
5979
5979
  {
5980
5980
  id: r.id,
5981
5981
  src: r.cachedObjectURL,
@@ -6097,7 +6097,7 @@ class ts {
6097
6097
  layouts: {}
6098
6098
  };
6099
6099
  t.forEach((n) => {
6100
- a = new Un(n).apply(a);
6100
+ a = new $n(n).apply(a);
6101
6101
  }), this.runStateCallbacks(), this.state = {
6102
6102
  transaction: a
6103
6103
  };
@@ -6107,7 +6107,7 @@ class ts {
6107
6107
  return { ...t, transaction: e.apply(a) };
6108
6108
  }
6109
6109
  }
6110
- const Nn = (r) => r.type === T.Image ? /* @__PURE__ */ x(xn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x(Li, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(Zi, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(Ki, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(kn, { ...r }, r.id) : null, wa = (r, t, e) => {
6110
+ const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ x(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x(Li, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(Zi, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(Ki, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(xn, { ...r }, r.id) : null, wa = (r, t, e) => {
6111
6111
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6112
6112
  return /* @__PURE__ */ x(
6113
6113
  Ui,
@@ -6157,7 +6157,7 @@ const te = (r) => {
6157
6157
  if (r.defaultVariant !== void 0)
6158
6158
  return t.find((e) => e.id === r.defaultVariant);
6159
6159
  }
6160
- }, At = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), Rn = async (r, t) => {
6160
+ }, At = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), Nn = async (r, t) => {
6161
6161
  if (!t) {
6162
6162
  if (!r)
6163
6163
  throw new Error("No region or src supplied. Cannot construct frame!");
@@ -6234,7 +6234,7 @@ const te = (r) => {
6234
6234
  if (At.has(r))
6235
6235
  return At.get(r);
6236
6236
  if (r.startsWith("data:image/svg+xml")) {
6237
- const a = gr(r), n = new TextDecoder().decode(a.buffer), i = On(n), s = {
6237
+ const a = gr(r), n = new TextDecoder().decode(a.buffer), i = Rn(n), s = {
6238
6238
  src: r,
6239
6239
  width: i.width,
6240
6240
  height: i.height,
@@ -6261,12 +6261,12 @@ const te = (r) => {
6261
6261
  }
6262
6262
  }, va = async (r) => {
6263
6263
  const t = await at(r);
6264
- return On(t);
6265
- }, Ua = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), On = (r) => {
6264
+ return Rn(t);
6265
+ }, $a = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), Rn = (r) => {
6266
6266
  const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
6267
6267
  if (!a)
6268
6268
  throw new Error("No svg tag found, this svg must be malformed!");
6269
- const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0, Ua(i), Ua(s)] : n == null ? void 0 : n.split(" ").map((l) => Number(l));
6269
+ const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0, $a(i), $a(s)] : n == null ? void 0 : n.split(" ").map((l) => Number(l));
6270
6270
  if (!o)
6271
6271
  throw new Error("No viewbox or width/height values detected on SVG file!");
6272
6272
  return {
@@ -6276,7 +6276,7 @@ const te = (r) => {
6276
6276
  }, $t = (r, t) => {
6277
6277
  const e = r.layoutState.elements.filter((n) => n.layer === t), a = Math.max(...e.map((n) => n.layerIndex).filter((n) => n !== void 0));
6278
6278
  return Math.max(a, 0) + 1;
6279
- }, $n = async (r) => new Promise((t) => {
6279
+ }, On = async (r) => new Promise((t) => {
6280
6280
  at(r).then((e) => {
6281
6281
  t(e);
6282
6282
  }).catch((e) => console.error(e));
@@ -6330,7 +6330,7 @@ const te = (r) => {
6330
6330
  panelId: r.layoutState.layout.panelId
6331
6331
  };
6332
6332
  if (e && t === T.Illustration) {
6333
- const l = await lt(await $n(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6333
+ const l = await lt(await On(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6334
6334
  if (!u)
6335
6335
  throw new Error("SVG missing viewBox.");
6336
6336
  const h = o.height, m = u.split(" "), g = parseFloat(m[2]) || 1, f = parseFloat(m[3]) || 1, p = g / f;
@@ -6349,7 +6349,7 @@ const te = (r) => {
6349
6349
  };
6350
6350
  class Rc {
6351
6351
  static async getFrame(t, e) {
6352
- const a = await Rn(e.region, e.src), n = await Me(a), i = e.region || await Ut(t, T.Frame);
6352
+ const a = await Nn(e.region, e.src), n = await Me(a), i = e.region || await Ut(t, T.Frame);
6353
6353
  return {
6354
6354
  id: N(),
6355
6355
  x: i.left,
@@ -6483,7 +6483,7 @@ class Rc {
6483
6483
  };
6484
6484
  }
6485
6485
  static async getIllustration(t, e) {
6486
- const a = e.region || await Ut(t, T.Illustration, e.src), n = await lt(await $n(e.src)), i = await Yt(n.svg), s = N();
6486
+ const a = e.region || await Ut(t, T.Illustration, e.src), n = await lt(await On(e.src)), i = await Yt(n.svg), s = N();
6487
6487
  return {
6488
6488
  cachedObjectURL: i,
6489
6489
  stepRegion: e.region,
@@ -6520,7 +6520,7 @@ const L = (r, t) => K(r, t).elements.find((n) => n.id === r), K = (r, t) => {
6520
6520
  elements: a,
6521
6521
  modificationID: N()
6522
6522
  };
6523
- }, La = async (r) => {
6523
+ }, Ua = async (r) => {
6524
6524
  var a;
6525
6525
  const t = [...Object.keys(r.layouts)], e = [...new Set(t)];
6526
6526
  for (let n = 0; n < e.length; n++) {
@@ -6582,7 +6582,7 @@ class O {
6582
6582
  this.oldState = t;
6583
6583
  }
6584
6584
  }
6585
- class Va extends O {
6585
+ class La extends O {
6586
6586
  constructor(t) {
6587
6587
  super(), this.serializableWorkflow = t;
6588
6588
  }
@@ -6677,7 +6677,7 @@ class $ extends O {
6677
6677
  return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
6678
6678
  }
6679
6679
  }
6680
- class Un extends O {
6680
+ class $n extends O {
6681
6681
  constructor(t) {
6682
6682
  super(), this.layout = t;
6683
6683
  }
@@ -6845,7 +6845,7 @@ class ns extends O {
6845
6845
  };
6846
6846
  }
6847
6847
  }
6848
- class za extends O {
6848
+ class Va extends O {
6849
6849
  constructor(t, e) {
6850
6850
  super(), this.id = t, this.fontData = e;
6851
6851
  }
@@ -7183,7 +7183,7 @@ class Wc extends O {
7183
7183
  };
7184
7184
  }
7185
7185
  }
7186
- class Ga {
7186
+ class za {
7187
7187
  constructor(t, e, a) {
7188
7188
  this.processRegion = async (n) => {
7189
7189
  var l, c, d, A;
@@ -7298,7 +7298,7 @@ const cs = async (r) => {
7298
7298
  throw console.error(e), new Ie("Failed to shorten URL, see console.");
7299
7299
  }
7300
7300
  };
7301
- class Ln {
7301
+ class Un {
7302
7302
  async poll() {
7303
7303
  try {
7304
7304
  if (await this.predicate()) {
@@ -7345,7 +7345,7 @@ class ds {
7345
7345
  const h = (await ea([e]))[0], m = (f = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((p) => p.name === "mpeg4")) == null ? void 0 : f.link;
7346
7346
  return { asset: h, link: m };
7347
7347
  }, s = await new Promise((h, m) => {
7348
- new Ln(
7348
+ new Un(
7349
7349
  async () => !!(await i()).link,
7350
7350
  async () => {
7351
7351
  const g = await i();
@@ -7385,7 +7385,7 @@ class ds {
7385
7385
  return t.data.regions.map(e);
7386
7386
  }
7387
7387
  async command(t, e, a, n) {
7388
- const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await rn(t, { type: "svg" }))}`, l = e.map((c) => {
7388
+ const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await nn(t, { type: "svg" }))}`, l = e.map((c) => {
7389
7389
  const d = c.region, A = i.find((u) => u.panelId === (d == null ? void 0 : d.panelId));
7390
7390
  if (!A && d)
7391
7391
  throw new q(d);
@@ -7413,7 +7413,7 @@ class ds {
7413
7413
  } };
7414
7414
  }
7415
7415
  }
7416
- const Vn = new ds();
7416
+ const Ln = new ds();
7417
7417
  class Se {
7418
7418
  constructor() {
7419
7419
  this.frameSourceSvg = async (t, e) => {
@@ -7535,7 +7535,7 @@ class Se {
7535
7535
  const o = e.fileLink || "";
7536
7536
  return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
7537
7537
  a.addPoller(
7538
- new Ln(
7538
+ new Un(
7539
7539
  async () => {
7540
7540
  var h;
7541
7541
  const A = (h = (await U.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
@@ -8126,7 +8126,7 @@ class us {
8126
8126
  };
8127
8127
  }
8128
8128
  }
8129
- const zn = new us();
8129
+ const Vn = new us();
8130
8130
  class hs {
8131
8131
  async init(t, e, a) {
8132
8132
  const n = t.option;
@@ -8212,7 +8212,7 @@ class hs {
8212
8212
  };
8213
8213
  }
8214
8214
  }
8215
- const Gn = new hs();
8215
+ const zn = new hs();
8216
8216
  class ms {
8217
8217
  async init(t, e, a) {
8218
8218
  if (a)
@@ -8325,7 +8325,7 @@ class ms {
8325
8325
  return n(""), { input: e, helperData: {} };
8326
8326
  }
8327
8327
  }
8328
- const Wn = new ms();
8328
+ const Gn = new ms();
8329
8329
  class gs {
8330
8330
  async init(t, e, a) {
8331
8331
  const n = t.option;
@@ -8417,7 +8417,7 @@ class gs {
8417
8417
  };
8418
8418
  }
8419
8419
  }
8420
- const jn = new gs();
8420
+ const Wn = new gs();
8421
8421
  class fs {
8422
8422
  async init(t, e, a) {
8423
8423
  const n = t.option;
@@ -8476,7 +8476,7 @@ class fs {
8476
8476
  };
8477
8477
  }
8478
8478
  }
8479
- const Hn = new fs();
8479
+ const jn = new fs();
8480
8480
  class ps {
8481
8481
  constructor() {
8482
8482
  this.shapeFillId = "spiff-fill-shape";
@@ -9019,7 +9019,7 @@ class Ss {
9019
9019
  g,
9020
9020
  async () => {
9021
9021
  e.updateMetadata(t.stepName, { color: f, text: p }), e.updateStorage(t.stepName, { text: p, inputText: p });
9022
- const w = o.map((S) => new za(S.id, m)), v = new $(w);
9022
+ const w = o.map((S) => new Va(S.id, m)), v = new $(w);
9023
9023
  e.getCommandDispatcher()(v);
9024
9024
  }
9025
9025
  );
@@ -9073,7 +9073,7 @@ class Ss {
9073
9073
  var u;
9074
9074
  const d = i.markUpdatePending(), A = await this.fontDataFromVariant(e);
9075
9075
  if (n.length > 0) {
9076
- const h = n.map((f) => new za(f.id, A));
9076
+ const h = n.map((f) => new Va(f.id, A));
9077
9077
  if (l) {
9078
9078
  const f = n.map((p) => new Ve(p.id, l));
9079
9079
  h.push(...f);
@@ -9338,7 +9338,7 @@ function Ps(r, t, e, a) {
9338
9338
  const n = e / r, i = a / t;
9339
9339
  return n > 1 && i > 1 ? Math.min(n, i) : n > 1 && i < 1 ? i : n < 1 && i > 1 ? n : Math.min(n, i);
9340
9340
  }
9341
- const Wa = {
9341
+ const Ga = {
9342
9342
  m: ["x", "y"],
9343
9343
  z: [],
9344
9344
  l: ["x", "y"],
@@ -9368,7 +9368,7 @@ class Fs {
9368
9368
  const n = (i) => {
9369
9369
  const s = [], o = i.relative ? i.type : i.type.toUpperCase();
9370
9370
  let l = e !== o;
9371
- const c = Wa[i.type];
9371
+ const c = Ga[i.type];
9372
9372
  l && (s.push(o), e = o);
9373
9373
  for (const d of c) {
9374
9374
  const A = i[d];
@@ -9393,7 +9393,7 @@ class Fs {
9393
9393
  const e = /([mzlhvcsqta])([^mzlhvcsqta]*)/gi, a = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, n = [];
9394
9394
  let i;
9395
9395
  for (e.lastIndex = 0; i = e.exec(t); ) {
9396
- const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Wa[s];
9396
+ const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Ga[s];
9397
9397
  if (o.length < c.length)
9398
9398
  throw new Pt(
9399
9399
  `Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
@@ -9490,7 +9490,7 @@ class xs extends vs {
9490
9490
  return Ds(f, C, e.height, e.width, 0.35, 0.65), Is(u.outerHTML);
9491
9491
  }
9492
9492
  }
9493
- async function qn(r) {
9493
+ async function Hn(r) {
9494
9494
  if (r === "Vegemite")
9495
9495
  return new xs();
9496
9496
  throw new z(`Failed to resolve Module, Module ${r} not found`);
@@ -9703,7 +9703,7 @@ const Ts = y`
9703
9703
  quoteId
9704
9704
  }
9705
9705
  }
9706
- `, ja = y`
9706
+ `, Wa = y`
9707
9707
  query GetBundleStakeholders($id: String!) {
9708
9708
  bundles(ids: [$id]) {
9709
9709
  id
@@ -10126,7 +10126,7 @@ const Ts = y`
10126
10126
  `;
10127
10127
  var Te = /* @__PURE__ */ ((r) => (r.Error = "Error", r.Warning = "Warning", r.Info = "Info", r))(Te || {});
10128
10128
  const oo = 1e3;
10129
- class Ha extends Pn {
10129
+ class ja extends Dn {
10130
10130
  constructor(t) {
10131
10131
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
10132
10132
  }
@@ -10140,7 +10140,7 @@ class Ha extends Pn {
10140
10140
  }
10141
10141
  class lo {
10142
10142
  constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, f = !1, p = !1, C = !1) {
10143
- this.workflowStatePromiseQueue = new Fn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10143
+ this.workflowStatePromiseQueue = new Pn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10144
10144
  var S;
10145
10145
  if (!this.previewService)
10146
10146
  return;
@@ -10503,9 +10503,9 @@ class lo {
10503
10503
  ...this.storage,
10504
10504
  [t]: { ...this.storage[t], ...e }
10505
10505
  };
10506
- if (!sn(a, this.storage)) {
10506
+ if (!rn(a, this.storage)) {
10507
10507
  this.storage = a;
10508
- const n = new Va(this.constructSerializableWorkflow());
10508
+ const n = new La(this.constructSerializableWorkflow());
10509
10509
  this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
10510
10510
  }
10511
10511
  }
@@ -10526,7 +10526,7 @@ class lo {
10526
10526
  return;
10527
10527
  const t = this.serialize();
10528
10528
  this.workflowStatePromiseQueue.enqueue(
10529
- new Ha(async () => {
10529
+ new ja(async () => {
10530
10530
  await new Promise((e) => {
10531
10531
  setTimeout(() => {
10532
10532
  e();
@@ -10544,7 +10544,7 @@ class lo {
10544
10544
  if (this.readOnly)
10545
10545
  return;
10546
10546
  const t = this.serialize();
10547
- return new Ha(async () => {
10547
+ return new ja(async () => {
10548
10548
  await this.updateTransaction({
10549
10549
  variables: {
10550
10550
  id: this.transaction.id,
@@ -10607,10 +10607,10 @@ class lo {
10607
10607
  return Promise.resolve({ stepElements: {}, commands: [] });
10608
10608
  const n = async (c, d, A) => {
10609
10609
  if (c.type === D.SilentIllustration) {
10610
- const u = await new Ga(c, d).trigger();
10610
+ const u = await new za(c, d).trigger();
10611
10611
  return { step: c, results: u };
10612
10612
  } else if (c.type === D.ProductOverlay) {
10613
- const u = await new Ga(
10613
+ const u = await new za(
10614
10614
  c,
10615
10615
  d,
10616
10616
  A
@@ -10720,7 +10720,7 @@ class lo {
10720
10720
  const E = (S = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : S.frameService;
10721
10721
  E == null || E.setTargetElements(a.map((B) => B.id));
10722
10722
  }
10723
- const f = u.map((E) => new Et(E.id)), p = new Va(this.constructSerializableWorkflow()), C = [...m, ...f, p];
10723
+ const f = u.map((E) => new Et(E.id)), p = new La(this.constructSerializableWorkflow()), C = [...m, ...f, p];
10724
10724
  C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10725
10725
  const w = this.getInvalidModelVariants(), v = this.modelContainer;
10726
10726
  if (v) {
@@ -10744,7 +10744,7 @@ class lo {
10744
10744
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10745
10745
  case D.DigitalContent:
10746
10746
  a.push(
10747
- Vn.init(
10747
+ Ln.init(
10748
10748
  l,
10749
10749
  this,
10750
10750
  this.reloadedState
@@ -10761,27 +10761,27 @@ class lo {
10761
10761
  break;
10762
10762
  case D.Material:
10763
10763
  a.push(
10764
- zn.init(l, this, this.reloadedState)
10764
+ Vn.init(l, this, this.reloadedState)
10765
10765
  );
10766
10766
  break;
10767
10767
  case D.Model:
10768
- a.push(Gn.init(l, this, this.reloadedState));
10768
+ a.push(zn.init(l, this, this.reloadedState));
10769
10769
  break;
10770
10770
  case D.Module:
10771
10771
  this.stepSpecificServices[l.stepName] = {
10772
- module: await qn(l.data.module)
10772
+ module: await Hn(l.data.module)
10773
10773
  }, a.push(
10774
- Wn.init(l, this, this.reloadedState)
10774
+ Gn.init(l, this, this.reloadedState)
10775
10775
  );
10776
10776
  break;
10777
10777
  case D.Picture:
10778
10778
  a.push(
10779
- jn.init(l, this, this.reloadedState)
10779
+ Wn.init(l, this, this.reloadedState)
10780
10780
  );
10781
10781
  break;
10782
10782
  case D.Question:
10783
10783
  a.push(
10784
- Hn.init(l, this, this.reloadedState)
10784
+ jn.init(l, this, this.reloadedState)
10785
10785
  );
10786
10786
  break;
10787
10787
  case D.Shape:
@@ -10934,7 +10934,7 @@ class st {
10934
10934
  return this.variantData.enabled;
10935
10935
  }
10936
10936
  }
10937
- const Yn = class sa {
10937
+ const qn = class sa {
10938
10938
  constructor(t, e, a) {
10939
10939
  this.manager = t, this.step = e, this.tags = a;
10940
10940
  }
@@ -11065,8 +11065,8 @@ const Yn = class sa {
11065
11065
  e ? i && e.executeCameraAnimation(i) : console.warn("No preview service available, cannot execute camera animations."), a ? n && a.executeAnimation(n, t) : console.warn("No model container available, cannot execute model animations.");
11066
11066
  }
11067
11067
  };
11068
- Yn.updateState = /* @__PURE__ */ new Map();
11069
- let rt = Yn;
11068
+ qn.updateState = /* @__PURE__ */ new Map();
11069
+ let rt = qn;
11070
11070
  class co extends rt {
11071
11071
  constructor(t, e, a) {
11072
11072
  super(t, e, a);
@@ -11150,7 +11150,7 @@ class Ao extends rt {
11150
11150
  super(t, e, a);
11151
11151
  }
11152
11152
  selectVariant(t) {
11153
- return zn.selectVariant(
11153
+ return Vn.selectVariant(
11154
11154
  this.step,
11155
11155
  t.getResource(),
11156
11156
  this.manager,
@@ -11163,7 +11163,7 @@ class uo extends rt {
11163
11163
  super(t, e, a);
11164
11164
  }
11165
11165
  selectVariant(t) {
11166
- return Gn.selectVariant(
11166
+ return zn.selectVariant(
11167
11167
  this.step,
11168
11168
  t.getResource(),
11169
11169
  this.manager,
@@ -11181,7 +11181,7 @@ class ho extends rt {
11181
11181
  * @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
11182
11182
  */
11183
11183
  selectVariant(t) {
11184
- return jn.selectVariant(
11184
+ return Wn.selectVariant(
11185
11185
  this.step,
11186
11186
  t.getResource(),
11187
11187
  this.manager,
@@ -11196,7 +11196,7 @@ class mo extends rt {
11196
11196
  async selectVariant(t) {
11197
11197
  if (!t.getId())
11198
11198
  throw new Error("Unable to select variant with a null ID");
11199
- await Hn.selectVariant(this.step, t.getId(), this.manager);
11199
+ await jn.selectVariant(this.step, t.getId(), this.manager);
11200
11200
  }
11201
11201
  /**
11202
11202
  * The way that this step expects to be rendered.
@@ -11494,7 +11494,7 @@ class Co extends rt {
11494
11494
  * @returns The final URL string for the QR code.
11495
11495
  */
11496
11496
  async selectVideo(t) {
11497
- return Vn.regenerateQRCode(
11497
+ return Ln.regenerateQRCode(
11498
11498
  this.manager.getRegionElements(this.step.stepName),
11499
11499
  t.key,
11500
11500
  this.manager,
@@ -11532,7 +11532,7 @@ class wo extends rt {
11532
11532
  return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.text) || "";
11533
11533
  }
11534
11534
  setText(t) {
11535
- Wn.changeText(this.step, t, this.manager, (e) => {
11535
+ Gn.changeText(this.step, t, this.manager, (e) => {
11536
11536
  if (e) {
11537
11537
  const a = [
11538
11538
  ...this.manager.getInformationResults(),
@@ -11580,7 +11580,7 @@ class oe {
11580
11580
  }
11581
11581
  }
11582
11582
  }
11583
- const Jn = y`
11583
+ const Yn = y`
11584
11584
  fragment CreateDesignTransaction on Transaction {
11585
11585
  id
11586
11586
  designName
@@ -11606,7 +11606,7 @@ const Jn = y`
11606
11606
  }
11607
11607
  }
11608
11608
  `, yo = y`
11609
- ${Jn}
11609
+ ${Yn}
11610
11610
  mutation CreateDesign(
11611
11611
  $name: String!
11612
11612
  $layouts: [LayoutInput]!
@@ -11638,7 +11638,7 @@ const Jn = y`
11638
11638
  }
11639
11639
  }
11640
11640
  `, So = y`
11641
- ${Jn}
11641
+ ${Yn}
11642
11642
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11643
11643
  designCreateMany(inputs: $inputs) {
11644
11644
  id
@@ -11756,7 +11756,7 @@ const vo = async (r) => {
11756
11756
  });
11757
11757
  }
11758
11758
  return n;
11759
- }, Kn = (r, t, e, a, n, i, s, o) => {
11759
+ }, Jn = (r, t, e, a, n, i, s, o) => {
11760
11760
  var m, g;
11761
11761
  const l = t.basePrice || 0, c = r.priceModifierTotal || 0, d = Bo(a, e, void 0, i), u = (M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(r.id), h = {
11762
11762
  additionalExternalProductId: (m = r.integrationProduct) == null ? void 0 : m.additionalExternalProductId,
@@ -11780,7 +11780,7 @@ const vo = async (r) => {
11780
11780
  workflowViewerReadOnlyLink: r.workflowViewerReadOnlyLink || ""
11781
11781
  };
11782
11782
  return i && (h.metadata = i), a && (h.selectedVariants = a), n && (h.sku = n), h;
11783
- }, _n = async (r, t, e, a, n, i, s, o, l, c) => {
11783
+ }, Kn = async (r, t, e, a, n, i, s, o, l, c) => {
11784
11784
  var I;
11785
11785
  await (async () => {
11786
11786
  var R;
@@ -11788,7 +11788,7 @@ const vo = async (r) => {
11788
11788
  return c;
11789
11789
  await r.outstandingRequestsPromise();
11790
11790
  const F = (M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), Q = await b.getShadowGraphqlClient().query({
11791
- query: In,
11791
+ query: bn,
11792
11792
  variables: { ids: [n.id] },
11793
11793
  fetchPolicy: "no-cache",
11794
11794
  errorPolicy: "all",
@@ -11877,7 +11877,7 @@ const vo = async (r) => {
11877
11877
  }, bo = async (r, t, e, a, n, i, s, o, l, c, d) => {
11878
11878
  var p, C;
11879
11879
  l("workflow.steps.finish.finalize.buildingLayouts");
11880
- const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await _n(
11880
+ const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await Kn(
11881
11881
  r,
11882
11882
  t,
11883
11883
  e,
@@ -11894,7 +11894,7 @@ const vo = async (r) => {
11894
11894
  throw new Error("Failed to create design");
11895
11895
  l("workflow.steps.finish.finalize.updatingTransaction");
11896
11896
  const f = m.transaction;
11897
- return Kn(
11897
+ return Jn(
11898
11898
  f,
11899
11899
  n,
11900
11900
  t,
@@ -11913,7 +11913,7 @@ const vo = async (r) => {
11913
11913
  const n = await (async () => {
11914
11914
  var c;
11915
11915
  const l = await b.getShadowGraphqlClient().query({
11916
- query: In,
11916
+ query: bn,
11917
11917
  variables: { ids: r.map((d) => d.transaction.id) },
11918
11918
  fetchPolicy: "no-cache",
11919
11919
  errorPolicy: "all"
@@ -11922,7 +11922,7 @@ const vo = async (r) => {
11922
11922
  l.errors && console.log("Server Error:", d.message);
11923
11923
  }), null) : (c = l.data) != null && c.transactions ? l.data.transactions.map((d) => d.workflowState ?? null) : null;
11924
11924
  })(), i = await Promise.all(
11925
- r.map(async (o, l) => await _n(
11925
+ r.map(async (o, l) => await Kn(
11926
11926
  o.workflowManager,
11927
11927
  o.workflow,
11928
11928
  o.layouts,
@@ -11942,7 +11942,7 @@ const vo = async (r) => {
11942
11942
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
11943
11943
  var u;
11944
11944
  const c = r[l], d = i[l], A = o.transaction;
11945
- return Kn(
11945
+ return Jn(
11946
11946
  A,
11947
11947
  c.product,
11948
11948
  c.workflow,
@@ -12068,7 +12068,7 @@ var ko = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.Price
12068
12068
  class Mo {
12069
12069
  constructor(t, e) {
12070
12070
  var n;
12071
- if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = on(async () => {
12071
+ if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = sn(async () => {
12072
12072
  await je.getSavedDesignByTransaction(
12073
12073
  this.getWorkflowManager().getTransaction().id
12074
12074
  ) && this.save();
@@ -12198,7 +12198,7 @@ class Mo {
12198
12198
  purpose: Wt.Print,
12199
12199
  region: { left: A.x, top: A.y, width: A.width, height: A.height }
12200
12200
  }
12201
- }), g = An(m);
12201
+ }), g = dn(m);
12202
12202
  await (await ca.from(h, g, {
12203
12203
  anonymousCrossOrigin: !0,
12204
12204
  ignoreDimensions: !1,
@@ -12506,8 +12506,8 @@ const To = [
12506
12506
  "tspan"
12507
12507
  ], Qo = async (r, t, e) => {
12508
12508
  const a = t.data, n = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = n.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + n);
12509
- o.searchParams.append("video", Ma(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12510
- const l = o.toString(), d = `data:image/svg+xml;base64,${Ma(await rn(l, { type: "svg" }))}`, A = (h) => {
12509
+ o.searchParams.append("video", ka(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12510
+ const l = o.toString(), d = `data:image/svg+xml;base64,${ka(await nn(l, { type: "svg" }))}`, A = (h) => {
12511
12511
  const m = r.find((f) => f.panelId === h.panelId);
12512
12512
  if (!m)
12513
12513
  throw new q(h);
@@ -12538,7 +12538,7 @@ const To = [
12538
12538
  o && (t[a.stepName] = { selectedVariants: [o] });
12539
12539
  const l = async (c) => {
12540
12540
  var g;
12541
- const d = await Rn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Me(d), u = N(), h = r.find((f) => f.panelId === c.panelId);
12541
+ const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Me(d), u = N(), h = r.find((f) => f.panelId === c.panelId);
12542
12542
  if (!h)
12543
12543
  throw new q(c);
12544
12544
  const m = Sa(
@@ -12659,7 +12659,7 @@ const To = [
12659
12659
  return console.error(B), [];
12660
12660
  }
12661
12661
  }, Oo = async (r, t, e) => {
12662
- const a = await qn(e.data.module), n = t.data, i = (o, l) => {
12662
+ const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
12663
12663
  const c = r.find((A) => A.panelId === l.panelId);
12664
12664
  if (!c)
12665
12665
  throw new q(l);
@@ -13036,7 +13036,7 @@ const jo = () => new Promise((r, t) => {
13036
13036
  }), Ho = jo();
13037
13037
  class qo {
13038
13038
  constructor(t, e, a, n) {
13039
- this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Fn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n;
13039
+ this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Pn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n;
13040
13040
  }
13041
13041
  getID() {
13042
13042
  return this.id;
@@ -13102,7 +13102,7 @@ class qo {
13102
13102
  );
13103
13103
  }
13104
13104
  }
13105
- class Yo extends Pn {
13105
+ class Yo extends Dn {
13106
13106
  // TODO: Do we need to pass this whole array in?
13107
13107
  constructor(t, e, a, n, i) {
13108
13108
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = i;
@@ -13155,7 +13155,7 @@ class Yo extends Pn {
13155
13155
  l = i.width, c = i.height;
13156
13156
  const d = wa(t.layoutState.layout, e, {
13157
13157
  renderingConfiguration: { purpose: Wt.ThreeD }
13158
- }), A = An(d), u = await ca.from(this.ctx, A, {
13158
+ }), A = dn(d), u = await ca.from(this.ctx, A, {
13159
13159
  anonymousCrossOrigin: !0,
13160
13160
  ignoreDimensions: !this.nonPOTSupport,
13161
13161
  ignoreAnimation: !0,
@@ -13186,7 +13186,7 @@ const jc = (r, t) => {
13186
13186
  serializableWorkflow: { steps: [] },
13187
13187
  layouts: {}
13188
13188
  };
13189
- n = new $(e.map((l) => new Un(l))).apply(n);
13189
+ n = new $(e.map((l) => new $n(l))).apply(n);
13190
13190
  const s = await Go(r, t, e, a);
13191
13191
  return new $(s).apply(n);
13192
13192
  };
@@ -13237,14 +13237,14 @@ class Jo {
13237
13237
  case et.FileUpload:
13238
13238
  return new Ko(this.bundle, t).initialize();
13239
13239
  case et.ColorOption:
13240
- return new qa(
13240
+ return new Ha(
13241
13241
  this.bundle,
13242
13242
  t,
13243
13243
  t.entityId ? await _.getOption(t.entityId) : void 0
13244
13244
  );
13245
13245
  case et.Option: {
13246
13246
  const e = t.entityId ? await _.getOption(t.entityId) : void 0;
13247
- return (e == null ? void 0 : e.type) === "Color" ? new qa(this.bundle, t, e) : new Xn(this.bundle, t, e);
13247
+ return (e == null ? void 0 : e.type) === "Color" ? new Ha(this.bundle, t, e) : new _n(this.bundle, t, e);
13248
13248
  }
13249
13249
  case et.Text:
13250
13250
  return new _o(this.bundle, t);
@@ -13578,7 +13578,7 @@ class _o extends Ba {
13578
13578
  await Promise.all(n);
13579
13579
  }
13580
13580
  }
13581
- class Xn extends Ba {
13581
+ class _n extends Ba {
13582
13582
  constructor(t, e, a) {
13583
13583
  super(t, e), this.optionResource = a;
13584
13584
  }
@@ -13653,7 +13653,7 @@ class Xn extends Ba {
13653
13653
  await Promise.all(n);
13654
13654
  }
13655
13655
  }
13656
- class qa extends Xn {
13656
+ class Ha extends _n {
13657
13657
  constructor(t, e, a) {
13658
13658
  super(t, e, a);
13659
13659
  }
@@ -14064,7 +14064,7 @@ class nl {
14064
14064
  }
14065
14065
  const rl = new nl();
14066
14066
  var il = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(il || {});
14067
- class Zn {
14067
+ class Xn {
14068
14068
  constructor(t) {
14069
14069
  this.fullFetched = !1, this.collection = t;
14070
14070
  const e = this.collection.productCollectionProducts;
@@ -14426,7 +14426,7 @@ const ll = y`
14426
14426
  variables: {
14427
14427
  ids: r
14428
14428
  }
14429
- })).data) == null ? void 0 : e.productCollections) == null ? void 0 : a.map((n) => new Zn(n));
14429
+ })).data) == null ? void 0 : e.productCollections) == null ? void 0 : a.map((n) => new Xn(n));
14430
14430
  };
14431
14431
  class cl {
14432
14432
  constructor() {
@@ -14635,7 +14635,7 @@ class He {
14635
14635
  return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
14636
14636
  }
14637
14637
  getProductCollection() {
14638
- return this.productCollection ? new Zn(this.productCollection) : void 0;
14638
+ return this.productCollection ? new Xn(this.productCollection) : void 0;
14639
14639
  }
14640
14640
  async initializeAdditionalRequiredColorChannels(t) {
14641
14641
  var e, a, n, i;
@@ -14896,7 +14896,7 @@ class He {
14896
14896
  }
14897
14897
  async getAllStakeholders() {
14898
14898
  const t = await b.getShadowGraphqlClient().query({
14899
- query: ja,
14899
+ query: Wa,
14900
14900
  errorPolicy: "all",
14901
14901
  fetchPolicy: "no-cache",
14902
14902
  variables: {
@@ -14913,7 +14913,7 @@ class He {
14913
14913
  }
14914
14914
  async getCurrentStakeholder() {
14915
14915
  const t = await b.getShadowGraphqlClient().query({
14916
- query: ja,
14916
+ query: Wa,
14917
14917
  errorPolicy: "all",
14918
14918
  fetchPolicy: "no-cache",
14919
14919
  variables: {
@@ -15319,9 +15319,9 @@ class Yc extends ba {
15319
15319
  super(`"${t}"`);
15320
15320
  }
15321
15321
  }
15322
- class tr extends ba {
15322
+ class Zn extends ba {
15323
15323
  constructor(t, e) {
15324
- if (e !== "Asset" && !tr.validUUID(t))
15324
+ if (e !== "Asset" && !Zn.validUUID(t))
15325
15325
  throw new Error("Invalid ID, must be a valid v4 UUID. https://www.uuidgenerator.net/");
15326
15326
  super(`{"isSpiffObject": true, "id": "${t}", "type": "${e}"}`);
15327
15327
  }
@@ -15334,7 +15334,7 @@ class Jc extends ba {
15334
15334
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15335
15335
  }
15336
15336
  }
15337
- class Ya {
15337
+ class qa {
15338
15338
  constructor(t) {
15339
15339
  this.integrationProduct = t;
15340
15340
  }
@@ -15376,7 +15376,7 @@ class Ya {
15376
15376
  return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Gt(e));
15377
15377
  }
15378
15378
  }
15379
- const Ja = y`
15379
+ const Ya = y`
15380
15380
  query GetCustomer($emailAddress: String!) {
15381
15381
  customer(emailAddress: $emailAddress) {
15382
15382
  id
@@ -15539,7 +15539,7 @@ const El = async (r, t) => {
15539
15539
  if (!a)
15540
15540
  throw new Error(`Workflow not found: ${r}`);
15541
15541
  return a;
15542
- }, er = async (r, t) => {
15542
+ }, tr = async (r, t) => {
15543
15543
  const e = r.map((o) => qt.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
15544
15544
  if (a.length === 0)
15545
15545
  return Promise.all(e);
@@ -15547,7 +15547,7 @@ const El = async (r, t) => {
15547
15547
  (o) => qt.set({ id: o, options: t }, Bl(o, n))
15548
15548
  ), s = e.filter((o) => o !== void 0);
15549
15549
  return await Promise.all(s.concat(i));
15550
- }, Kc = async (r, t) => (await er([r], t))[0], bl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15550
+ }, Kc = async (r, t) => (await tr([r], t))[0], bl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15551
15551
  id: N(),
15552
15552
  panelId: t.name,
15553
15553
  name: t.name,
@@ -15576,7 +15576,7 @@ class _c {
15576
15576
  } catch (a) {
15577
15577
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15578
15578
  }
15579
- }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.32.0-beta.fe9e1c70-b911-56f3-9a87-25507ca1edae"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15579
+ }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.32.0-beta.f75bfd7c-56a9-5d0c-ab5e-d9a1cd38130f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15580
15580
  }
15581
15581
  configure(t) {
15582
15582
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Qr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15719,7 +15719,7 @@ class _c {
15719
15719
  }
15720
15720
  async customerHasBundleTemplates(t) {
15721
15721
  const n = (await b.getShadowGraphqlClient().query({
15722
- query: Ja,
15722
+ query: Ya,
15723
15723
  errorPolicy: "all",
15724
15724
  fetchPolicy: "no-cache",
15725
15725
  variables: {
@@ -15743,7 +15743,7 @@ class _c {
15743
15743
  var s;
15744
15744
  this.customer = void 0;
15745
15745
  const e = b.getShadowGraphqlClient(), n = (await e.query({
15746
- query: Ja,
15746
+ query: Ya,
15747
15747
  errorPolicy: "all",
15748
15748
  fetchPolicy: "no-cache",
15749
15749
  variables: {
@@ -15794,7 +15794,7 @@ class _c {
15794
15794
  loginToken: n
15795
15795
  }
15796
15796
  })).data) == null ? void 0 : o.customerAuthenticate;
15797
- return s ? (this.storeCustomer(s), Ta(n), this.customer = s, !0) : !1;
15797
+ return s ? (this.storeCustomer(s), Ma(n), this.customer = s, !0) : !1;
15798
15798
  }
15799
15799
  /**
15800
15800
  * Generates a verification code for the given email address.
@@ -15829,7 +15829,7 @@ class _c {
15829
15829
  if (!((s = n.partner) != null && s.id))
15830
15830
  throw new Error(`Unable to find customer: ${t}`);
15831
15831
  const o = M.getMap("customerTokens") || /* @__PURE__ */ new Map();
15832
- return o.set(n.id, n.loginToken), M.setMap("customerTokens", o), this.storeCustomer(n), Ta(n.loginToken), this.customer = {
15832
+ return o.set(n.id, n.loginToken), M.setMap("customerTokens", o), this.storeCustomer(n), Ma(n.loginToken), this.customer = {
15833
15833
  ...n,
15834
15834
  loginToken: void 0
15835
15835
  }, !0;
@@ -16078,10 +16078,10 @@ class _c {
16078
16078
  }));
16079
16079
  }, s = t.map((S, E) => ({ option: S, index: E })), o = s.filter((S) => S.option.type === "transaction"), l = s.filter(
16080
16080
  (S) => S.option.type === "integration" || S.option.type === "external"
16081
- ), c = Pa(o, 10), d = Pa(l, 10), A = (await Promise.all([
16081
+ ), c = Da(o, 10), d = Da(l, 10), A = (await Promise.all([
16082
16082
  ...c.map(n),
16083
16083
  ...d.map(i)
16084
- ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await er(u, e), m = new Map(h.map((S) => [S.id, S])), g = M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
16084
+ ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await tr(u, e), m = new Map(h.map((S) => [S.id, S])), g = M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
16085
16085
  var Z;
16086
16086
  const { transaction: E, workflowId: B, readOnly: I, index: P } = S, F = m.get(B), k = t[P];
16087
16087
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
@@ -16106,10 +16106,10 @@ class _c {
16106
16106
  };
16107
16107
  if (k.type === "transaction" && E.workflowState) {
16108
16108
  const W = JSON.parse(E.workflowState);
16109
- R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await La(W), R.reloadedState = W;
16109
+ R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await Ua(W), R.reloadedState = W;
16110
16110
  } else if (!I && k.workflowState) {
16111
16111
  const W = JSON.parse(k.workflowState);
16112
- R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await La(W), R.reloadedState = W;
16112
+ R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await Ua(W), R.reloadedState = W;
16113
16113
  } else
16114
16114
  R.layouts = Il(
16115
16115
  R.transaction,
@@ -16142,7 +16142,7 @@ class _c {
16142
16142
  })).data) == null ? void 0 : s.integrationProducts;
16143
16143
  if (!i || i.length === 0 || !((o = i[0]) != null && o.id))
16144
16144
  throw new Error("Integration product not found.");
16145
- return new Ya(i[0]);
16145
+ return new qa(i[0]);
16146
16146
  }
16147
16147
  async getIntegrationProductFromExternalIds(t, e, a) {
16148
16148
  var o;
@@ -16157,7 +16157,7 @@ class _c {
16157
16157
  })).data) == null ? void 0 : o.integrationProductFromExternalIds;
16158
16158
  if (!(s != null && s.id))
16159
16159
  throw new Error("Integration product not found.");
16160
- return new Ya(s);
16160
+ return new qa(s);
16161
16161
  }
16162
16162
  async getIntegrationProduct(t) {
16163
16163
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
@@ -16263,7 +16263,7 @@ function de(r, t, e) {
16263
16263
  }
16264
16264
  class Fl {
16265
16265
  constructor(t, e) {
16266
- this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = on(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16266
+ this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16267
16267
  useThreshold: !1,
16268
16268
  invertThreshold: !1,
16269
16269
  threshold: 128,
@@ -16284,7 +16284,7 @@ class Fl {
16284
16284
  let i = !1;
16285
16285
  for (let s = 0; s < n.currentFrameSources.length; s++) {
16286
16286
  const o = n.currentFrameSources[s], l = await Me(o), c = this.frameData ? this.frameData[s] : void 0;
16287
- sn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16287
+ rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16288
16288
  }
16289
16289
  i && (this.onFrameDataChangeListeners.forEach(
16290
16290
  (s) => s(this.frameData)
@@ -17093,9 +17093,9 @@ J = { __e: function(r, t, e, a) {
17093
17093
  }
17094
17094
  throw r;
17095
17095
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17096
- var ot, qe, Ka, ar = [], Ye = [], _a = J.__b, Xa = J.__r, Za = J.diffed, tn = J.__c, en = J.unmount;
17096
+ var ot, qe, Ja, er = [], Ye = [], Ka = J.__b, _a = J.__r, Xa = J.diffed, Za = J.__c, tn = J.unmount;
17097
17097
  function zl() {
17098
- for (var r; r = ar.shift(); )
17098
+ for (var r; r = er.shift(); )
17099
17099
  if (r.__P && r.__H)
17100
17100
  try {
17101
17101
  r.__H.__h.forEach(me), r.__H.__h.forEach(la), r.__H.__h = [];
@@ -17104,17 +17104,17 @@ function zl() {
17104
17104
  }
17105
17105
  }
17106
17106
  J.__b = function(r) {
17107
- ot = null, _a && _a(r);
17107
+ ot = null, Ka && Ka(r);
17108
17108
  }, J.__r = function(r) {
17109
- Xa && Xa(r);
17109
+ _a && _a(r);
17110
17110
  var t = (ot = r.__c).__H;
17111
17111
  t && (qe === ot ? (t.__h = [], ot.__h = [], t.__.forEach(function(e) {
17112
17112
  e.__N && (e.__ = e.__N), e.__V = Ye, e.__N = e.i = void 0;
17113
17113
  })) : (t.__h.forEach(me), t.__h.forEach(la), t.__h = [])), qe = ot;
17114
17114
  }, J.diffed = function(r) {
17115
- Za && Za(r);
17115
+ Xa && Xa(r);
17116
17116
  var t = r.__c;
17117
- t && t.__H && (t.__H.__h.length && (ar.push(t) !== 1 && Ka === J.requestAnimationFrame || ((Ka = J.requestAnimationFrame) || Gl)(zl)), t.__H.__.forEach(function(e) {
17117
+ t && t.__H && (t.__H.__h.length && (er.push(t) !== 1 && Ja === J.requestAnimationFrame || ((Ja = J.requestAnimationFrame) || Gl)(zl)), t.__H.__.forEach(function(e) {
17118
17118
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
17119
17119
  })), qe = ot = null;
17120
17120
  }, J.__c = function(r, t) {
@@ -17128,9 +17128,9 @@ J.__b = function(r) {
17128
17128
  n.__h && (n.__h = []);
17129
17129
  }), t = [], J.__e(a, e.__v);
17130
17130
  }
17131
- }), tn && tn(r, t);
17131
+ }), Za && Za(r, t);
17132
17132
  }, J.unmount = function(r) {
17133
- en && en(r);
17133
+ tn && tn(r);
17134
17134
  var t, e = r.__c;
17135
17135
  e && e.__H && (e.__H.__.forEach(function(a) {
17136
17136
  try {
@@ -17140,12 +17140,12 @@ J.__b = function(r) {
17140
17140
  }
17141
17141
  }), e.__H = void 0, t && J.__e(t, e.__v));
17142
17142
  };
17143
- var an = typeof requestAnimationFrame == "function";
17143
+ var en = typeof requestAnimationFrame == "function";
17144
17144
  function Gl(r) {
17145
17145
  var t, e = function() {
17146
- clearTimeout(a), an && cancelAnimationFrame(t), setTimeout(r);
17146
+ clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
17147
17147
  }, a = setTimeout(e, 100);
17148
- an && (t = requestAnimationFrame(e));
17148
+ en && (t = requestAnimationFrame(e));
17149
17149
  }
17150
17150
  function me(r) {
17151
17151
  var t = ot, e = r.__c;
@@ -17155,7 +17155,7 @@ function la(r) {
17155
17155
  var t = ot;
17156
17156
  r.__c = r.__(), ot = t;
17157
17157
  }
17158
- const nr = y`
17158
+ const ar = y`
17159
17159
  fragment AddressValidationResultFields on AddressValidationResult {
17160
17160
  addressComplete
17161
17161
  address {
@@ -17177,11 +17177,10 @@ const nr = y`
17177
17177
  }
17178
17178
  missingComponentTypes
17179
17179
  }
17180
- `, Da = y`
17181
- ${nr}
17180
+ `, nr = y`
17181
+ ${ar}
17182
17182
  fragment AddressValidationJobFields on AddressValidationJob {
17183
17183
  id
17184
- entityId
17185
17184
  status
17186
17185
  createdAt
17187
17186
  updatedAt
@@ -17190,31 +17189,30 @@ const nr = y`
17190
17189
  }
17191
17190
  }
17192
17191
  `, Wl = y`
17193
- ${Da}
17192
+ ${nr}
17194
17193
  query GetAddressValidationJobs($ids: [String!]!) {
17195
17194
  addressValidationJobs(ids: $ids) {
17196
17195
  ...AddressValidationJobFields
17197
17196
  }
17198
17197
  }
17199
17198
  `, jl = y`
17200
- ${Da}
17201
17199
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17202
17200
  recipients(ids: $ids) {
17203
17201
  id
17204
17202
  addressValidationJob {
17205
- ...AddressValidationJobFields
17203
+ id
17206
17204
  }
17207
17205
  }
17208
17206
  }
17209
17207
  `, Hl = y`
17210
- ${nr}
17208
+ ${ar}
17211
17209
  mutation ValidateRecipientAddress($id: String!) {
17212
17210
  recipientValidate(id: $id) {
17213
17211
  ...AddressValidationResultFields
17214
17212
  }
17215
17213
  }
17216
17214
  `, ql = y`
17217
- ${Da}
17215
+ ${nr}
17218
17216
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17219
17217
  recipientValidateBatch(ids: $ids) {
17220
17218
  ...AddressValidationJobFields
@@ -17223,22 +17221,14 @@ const nr = y`
17223
17221
  `;
17224
17222
  var Yl = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(Yl || {}), Jl = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(Jl || {});
17225
17223
  const md = async (r) => {
17226
- const t = r.map((a) => {
17227
- var n;
17228
- return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17229
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().query({
17224
+ var e, a;
17225
+ return (a = (e = (await b.getShadowGraphqlClient().query({
17230
17226
  query: jl,
17231
17227
  errorPolicy: "all",
17232
17228
  variables: {
17233
- ids: t
17229
+ ids: r
17234
17230
  }
17235
- });
17236
- return r.map((a) => {
17237
- var i, s, o, l;
17238
- const n = (i = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : i.id;
17239
- if (n)
17240
- return (l = (o = (s = e.data) == null ? void 0 : s.recipients) == null ? void 0 : o.find((c) => c.id === n)) == null ? void 0 : l.addressValidationJob;
17241
- });
17231
+ })).data) == null ? void 0 : e.recipients) == null ? void 0 : a.map((n) => n.addressValidationJob);
17242
17232
  }, gd = async (r) => {
17243
17233
  var e;
17244
17234
  return (e = (await b.getShadowGraphqlClient().query({
@@ -17249,31 +17239,23 @@ const md = async (r) => {
17249
17239
  }
17250
17240
  })).data) == null ? void 0 : e.addressValidationJobs;
17251
17241
  }, fd = async (r) => {
17252
- var e, a;
17253
- return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await b.getShadowGraphqlClient().mutate({
17242
+ var e;
17243
+ return (e = (await b.getShadowGraphqlClient().mutate({
17254
17244
  mutation: Hl,
17255
17245
  errorPolicy: "all",
17256
17246
  variables: {
17257
- id: r.getWorkflowManager().getTransaction().recipient.id
17247
+ id: r
17258
17248
  }
17259
- })).data) == null ? void 0 : a.recipientValidate : void 0;
17249
+ })).data) == null ? void 0 : e.recipientValidate;
17260
17250
  }, pd = async (r) => {
17261
- const t = r.map((a) => {
17262
- var n;
17263
- return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17264
- }).filter((a) => !!a), e = await b.getShadowGraphqlClient().mutate({
17251
+ var e;
17252
+ return (e = (await b.getShadowGraphqlClient().mutate({
17265
17253
  mutation: ql,
17266
17254
  errorPolicy: "all",
17267
17255
  variables: {
17268
- ids: t
17256
+ ids: r
17269
17257
  }
17270
- });
17271
- return r.map((a) => {
17272
- var i, s, o;
17273
- const n = (i = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : i.id;
17274
- if (n)
17275
- return (o = (s = e.data) == null ? void 0 : s.recipientValidateBatch) == null ? void 0 : o.find((l) => l.entityId === n);
17276
- });
17258
+ })).data) == null ? void 0 : e.recipientValidateBatch;
17277
17259
  };
17278
17260
  export {
17279
17261
  da as AddonHandle,
@@ -17289,12 +17271,12 @@ export {
17289
17271
  pr as BundleDesignCreationCartAddMode,
17290
17272
  O as CanvasCommand,
17291
17273
  le as CollectionProduct,
17292
- qa as ColorOptionGlobalPropertyHandle,
17274
+ Ha as ColorOptionGlobalPropertyHandle,
17293
17275
  ts as CommandContext,
17294
17276
  Vl as ConversionDataType,
17295
17277
  Ll as ConversionLocation,
17296
17278
  G as CreateElementCommand,
17297
- Un as CreateLayoutCommand,
17279
+ $n as CreateLayoutCommand,
17298
17280
  Et as DeleteElementCommand,
17299
17281
  Co as DigitalContentStepHandle,
17300
17282
  Ko as FileUploadGlobalPropertyHandle,
@@ -17304,7 +17286,7 @@ export {
17304
17286
  rs as FontAlignmentCommand,
17305
17287
  as as FontColorCommand,
17306
17288
  ns as FontSizeCommand,
17307
- za as FontSourceCommand,
17289
+ Va as FontSourceCommand,
17308
17290
  Fl as FrameService,
17309
17291
  xl as FrameStep,
17310
17292
  kl as FrameStepHandle,
@@ -17313,7 +17295,7 @@ export {
17313
17295
  co as IllustrationStepHandle,
17314
17296
  Te as InformationMessageType,
17315
17297
  po as InformationStepHandle,
17316
- Ya as IntegrationProduct,
17298
+ qa as IntegrationProduct,
17317
17299
  wr as IntegrationType,
17318
17300
  Rc as LayoutElementFactory,
17319
17301
  T as LayoutElementType,
@@ -17325,20 +17307,20 @@ export {
17325
17307
  uo as ModelStepHandle,
17326
17308
  wo as ModuleStepHandle,
17327
17309
  Oc as MoveCommand,
17328
- tr as ObjectInput,
17310
+ Zn as ObjectInput,
17329
17311
  fl as ObjectInputType,
17330
- Xn as OptionGlobalPropertyHandle,
17312
+ _n as OptionGlobalPropertyHandle,
17331
17313
  pe as OptionNotFoundError,
17332
17314
  Pt as ParseError,
17333
17315
  ho as PictureStepHandle,
17334
17316
  yr as ProductCameraRig,
17335
- Zn as ProductCollection,
17317
+ Xn as ProductCollection,
17336
17318
  il as ProductCollectionProductSortKey,
17337
17319
  Gt as ProductWorkflow,
17338
17320
  qt as PromiseCache,
17339
- Fn as PromiseQueue,
17321
+ Pn as PromiseQueue,
17340
17322
  mo as QuestionStepHandle,
17341
- Pn as QueueablePromise,
17323
+ Dn as QueueablePromise,
17342
17324
  Uc as ResizeCommand,
17343
17325
  jt as ResourceNotFoundError,
17344
17326
  $c as RotateCommand,
@@ -17372,7 +17354,7 @@ export {
17372
17354
  wc as dataUrlFromExternalUrl,
17373
17355
  je as designService,
17374
17356
  he as determineCorrectFontSizeAndLines,
17375
- Vn as digitalContentStepService,
17357
+ Ln as digitalContentStepService,
17376
17358
  dt as domParser,
17377
17359
  id as duplicateBundle,
17378
17360
  sd as duplicateTransaction,
@@ -17402,6 +17384,7 @@ export {
17402
17384
  Zc as getOverrideThemeConfiguration,
17403
17385
  Dc as getPointOfRotation,
17404
17386
  qc as getProductCollections,
17387
+ md as getRecipientsAddressValidationJobs,
17405
17388
  xc as getSEPoint,
17406
17389
  wa as getSvgElement,
17407
17390
  hd as getTemplateBundles,
@@ -17411,48 +17394,47 @@ export {
17411
17394
  cd as getTransactionsForBundle,
17412
17395
  Ic as getTrueCoordinates,
17413
17396
  dd as getUnorderedTransactions,
17414
- md as getValidationJobsForWorkflowExperiences,
17415
17397
  Kc as getWorkflow,
17416
- er as getWorkflows,
17398
+ tr as getWorkflows,
17417
17399
  b as graphQlManager,
17418
17400
  ue as illustrationStepService,
17419
17401
  bc as isCloseToValue,
17420
17402
  Qt as loadFont,
17421
17403
  Sc as matchHexToPms,
17422
- zn as materialStepService,
17404
+ Vn as materialStepService,
17423
17405
  rl as metafieldManager,
17424
17406
  Tc as mmPerPixel,
17425
- Gn as modelStepService,
17407
+ zn as modelStepService,
17426
17408
  fa as modifySVGColors,
17427
- Wn as moduleStepService,
17409
+ Gn as moduleStepService,
17428
17410
  nd as nameBundle,
17429
17411
  rd as nameTransaction,
17430
17412
  _ as optionService,
17431
17413
  Nc as outlineFontsInSvg,
17432
17414
  At as patternImageDataCache,
17433
17415
  M as persistenceService,
17434
- jn as pictureStepService,
17416
+ Wn as pictureStepService,
17435
17417
  yc as pmsToRgb,
17436
- Hn as questionStepService,
17418
+ jn as questionStepService,
17437
17419
  Cc as registerFetchImplementation,
17438
17420
  pc as registerWindowImplementation,
17439
- La as rehydrateSerializedLayout,
17421
+ Ua as rehydrateSerializedLayout,
17440
17422
  Gr as rgbToPms,
17441
17423
  se as rotateAroundPoint,
17442
17424
  ma as sanitizeSvgTree,
17443
17425
  Qr as setBearerAuthenticationToken,
17444
- gn as setCanvasModule,
17426
+ mn as setCanvasModule,
17445
17427
  Vt as shapeStepService,
17446
17428
  cs as shortenUrl,
17447
17429
  mt as spiffCoreConfiguration,
17448
17430
  jc as stepAspectValuesToDesignInputSteps,
17449
- Na as svgColorValueToDefinition,
17450
- On as svgStringDimensions,
17431
+ Qa as svgColorValueToDefinition,
17432
+ Rn as svgStringDimensions,
17451
17433
  Aa as svgToDataUrl,
17452
17434
  H as textStepService,
17453
17435
  ws as toast,
17454
- fd as validateWorkflowExperienceRecipient,
17455
- pd as validateWorkflowExperienceRecipients,
17436
+ fd as validateRecipient,
17437
+ pd as validateRecipients,
17456
17438
  Bt as xmlSerializer
17457
17439
  };
17458
17440
  //# sourceMappingURL=index.mjs.map