@spiffcommerce/core 28.0.2 → 29.0.1

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 cn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), z = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(z || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), Sr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Sr || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), vr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(vr || {}), Er = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Br = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Br || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Ir = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Ir || {});
26
+ var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), z = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(z || {}), I = /* @__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))(I || {}), Sr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Sr || {}), jt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(jt || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), vr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(vr || {}), Er = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Br = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Br || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), 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 || {}), Ir = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Ir || {});
27
27
  class dn extends Error {
28
28
  constructor(t) {
29
29
  super(t), this.name = this.constructor.name;
@@ -162,10 +162,10 @@ class Fr {
162
162
  }
163
163
  const mt = new Fr();
164
164
  let ta, ea;
165
- function xc(r) {
165
+ function Mc(r) {
166
166
  ta = r;
167
167
  }
168
- function kc(r) {
168
+ function Tc(r) {
169
169
  ea = r;
170
170
  }
171
171
  function Xt() {
@@ -260,7 +260,7 @@ const An = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
260
260
  }
261
261
  const e = t();
262
262
  return e || "image/svg+xml";
263
- }, Mc = async (r) => {
263
+ }, Nc = async (r) => {
264
264
  const t = await un(r), e = An.get(r) || ke(t);
265
265
  return await Rr(new Blob([t], { type: e }));
266
266
  }, Nr = (r) => {
@@ -417,11 +417,11 @@ function ga() {
417
417
  return $e === void 0 && ($e = Mr()), $e;
418
418
  }
419
419
  let se = null;
420
- const jr = (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
  hr(r).then((a) => t(a || 1)).catch(() => t(1));
424
- }), Hr = async () => {
424
+ }), jr = 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 jr = (r) => new Promise((t) => {
432
432
  }, Yr = async (r) => {
433
433
  var A;
434
434
  const t = await Qr(r), e = await Zt(t), [a, n] = qr(e);
435
- if (!await Hr()) {
435
+ if (!await jr()) {
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 jr(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);
@@ -3161,7 +3161,7 @@ const jr = (r) => new Promise((t) => {
3161
3161
  parseInt(r.substring(2, 4), 16),
3162
3162
  parseInt(r.substring(4, 6), 16)
3163
3163
  ]);
3164
- function Tc(r) {
3164
+ function Qc(r) {
3165
3165
  const t = Yt.indexOf(r);
3166
3166
  return t >= 0 ? Ft[t] : "";
3167
3167
  }
@@ -3169,7 +3169,7 @@ function Jr(r) {
3169
3169
  const t = Ft.indexOf(r);
3170
3170
  return t >= 0 ? Yt[t] : "";
3171
3171
  }
3172
- function Nc(r, t = 64) {
3172
+ function Rc(r, t = 64) {
3173
3173
  const e = [], a = [], n = Jr(r);
3174
3174
  n && e.push({
3175
3175
  pms: n,
@@ -3188,7 +3188,7 @@ function Nc(r, t = 64) {
3188
3188
  return e.sort((A, u) => A.distance - u.distance);
3189
3189
  }
3190
3190
  const Kr = Yt.map((r, t) => ({ pms: r, hex: Ft[t] })), _r = new mr(Kr, { keys: ["pms"] });
3191
- function Qc(r, t) {
3191
+ function Oc(r, t) {
3192
3192
  return _r.search(r, t ? { limit: t } : void 0);
3193
3193
  }
3194
3194
  let Qt = null;
@@ -5145,14 +5145,14 @@ const q = new Ci(), bn = v`
5145
5145
  timestamp
5146
5146
  }
5147
5147
  }
5148
- `, Ot = [P.SilentIllustration, P.ProductOverlay], zi = async (r) => {
5148
+ `, Ot = [I.SilentIllustration, I.ProductOverlay], zi = async (r) => {
5149
5149
  const t = [];
5150
5150
  r.introduction && t.push({
5151
5151
  name: "Introduction",
5152
5152
  title: r.name,
5153
5153
  renderableSteps: [
5154
5154
  {
5155
- type: P.Introduction,
5155
+ type: I.Introduction,
5156
5156
  stepName: "Introduction",
5157
5157
  stepTitle: r.name,
5158
5158
  helpText: r.introduction,
@@ -5187,7 +5187,7 @@ const q = new Ci(), bn = v`
5187
5187
  title: e,
5188
5188
  renderableSteps: [
5189
5189
  {
5190
- type: P.Finish,
5190
+ type: I.Finish,
5191
5191
  stepName: "Finish",
5192
5192
  stepTitle: e,
5193
5193
  helpText: "",
@@ -5217,13 +5217,13 @@ const q = new Ci(), bn = v`
5217
5217
  silentSteps: r.silentSteps.filter((a) => wt(a, t))
5218
5218
  };
5219
5219
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5220
- }, Pt = (r, t) => r.map((e) => Wi(e, t)).filter((e) => e !== null), ji = async (r, t, e = !1) => {
5220
+ }, Pt = (r, t) => r.map((e) => Wi(e, t)).filter((e) => e !== null), Hi = async (r, t, e = !1) => {
5221
5221
  var s;
5222
5222
  const a = Pt(r, t), n = [];
5223
5223
  for (const o of a)
5224
5224
  for (const l of o.renderableSteps) {
5225
5225
  const c = (((s = l.option) == null ? void 0 : s.variants) || []).length;
5226
- l.silent || (l.type === P.Model || l.type === P.Material || l.type === P.Picture || l.type === P.Shape ? (c > 1 || e) && n.push(l.stepName) : n.push(l.stepName));
5226
+ l.silent || (l.type === I.Model || l.type === I.Material || l.type === I.Picture || l.type === I.Shape ? (c > 1 || e) && n.push(l.stepName) : n.push(l.stepName));
5227
5227
  }
5228
5228
  const i = a.filter((o) => o.renderableSteps.filter(
5229
5229
  (c) => n.includes(c.stepName)
@@ -5312,7 +5312,7 @@ class xn {
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
+ }, ji = ({
5316
5316
  backgroundColor: r,
5317
5317
  outlineColor: t,
5318
5318
  borderRadius: e,
@@ -5328,9 +5328,9 @@ 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 === 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) => (
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 === jt.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, P) => (
5332
5332
  /* @ts-ignore */
5333
- /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, I)
5333
+ /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, P)
5334
5334
  )), S = n.map((b) => ({
5335
5335
  ...b,
5336
5336
  _renderingConfiguration: a,
@@ -5371,7 +5371,7 @@ const Q = () => {
5371
5371
  "g",
5372
5372
  {
5373
5373
  id: "element-group",
5374
- clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
5374
+ clipPath: a.purpose === jt.FreeDesign ? "url(#viewboxClip)" : void 0,
5375
5375
  children: y.map((b) => Rn(b)).filter((b) => !!b)
5376
5376
  }
5377
5377
  ),
@@ -5413,7 +5413,7 @@ const Q = () => {
5413
5413
  ]
5414
5414
  }
5415
5415
  );
5416
- }, Rc = (r, t, e, a, n) => {
5416
+ }, $c = (r, t, e, a, n) => {
5417
5417
  const i = pt(n), s = e / 2, o = a / 2, l = r + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, p = u * A - m * d, f = h * A - g * d, C = u * d + m * A, w = h * d + g * A, S = Math.max(Math.abs(p), Math.abs(f)), y = Math.max(Math.abs(C), Math.abs(w));
5418
5418
  return {
5419
5419
  minX: l - S,
@@ -5421,47 +5421,47 @@ const Q = () => {
5421
5421
  minY: c - y,
5422
5422
  maxY: c + y
5423
5423
  };
5424
- }, Oc = (r, t, e) => {
5424
+ }, Uc = (r, t, e) => {
5425
5425
  const a = Math.sqrt(Math.pow(t.x - r.x, 2) + Math.pow(t.y - r.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - r.x, 2) + Math.pow(e.y - r.y, 2));
5426
5426
  return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
5427
- }, pt = (r) => r * (Math.PI / 180), $c = (r, t, e) => Math.abs(r - t) < e, Uc = (r, t, e) => {
5427
+ }, pt = (r) => r * (Math.PI / 180), Lc = (r, t, e) => Math.abs(r - t) < e, Vc = (r, t, e) => {
5428
5428
  const a = Math.sin(pt(e)), n = Math.cos(pt(e));
5429
5429
  return {
5430
5430
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5431
5431
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5432
5432
  };
5433
- }, Lc = (r, t) => ({
5433
+ }, zc = (r, t) => ({
5434
5434
  x: (r.x + t.x) / 2,
5435
5435
  y: (r.y + t.y) / 2
5436
- }), Vc = (r, t, e, a) => ({
5436
+ }), Gc = (r, t, e, a) => ({
5437
5437
  x: r.x + (t == null ? void 0 : t.x) * e,
5438
5438
  y: r.y + (t == null ? void 0 : t.y) * a
5439
- }), zc = (r, t, e, a) => ({
5439
+ }), Wc = (r, t, e, a) => ({
5440
5440
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5441
5441
  y: r.y + (t == null ? void 0 : t.y) * a
5442
- }), Gc = (r, t, e, a) => ({
5442
+ }), Hc = (r, t, e, a) => ({
5443
5443
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5444
5444
  y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
5445
5445
  }), It = (r) => {
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;
5463
- }
5464
- }, Wc = (r, t) => t > 45 && t <= 135 ? It(r) : t > 135 && t <= 225 ? It(It(r)) : t > 225 && t <= 315 ? It(It(It(r))) : r, jc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5447
+ case j.North:
5448
+ return j.East;
5449
+ case j.East:
5450
+ return j.South;
5451
+ case j.South:
5452
+ return j.West;
5453
+ case j.West:
5454
+ return j.North;
5455
+ case j.Northwest:
5456
+ return j.Northeast;
5457
+ case j.Northeast:
5458
+ return j.Southeast;
5459
+ case j.Southeast:
5460
+ return j.Southwest;
5461
+ case j.Southwest:
5462
+ return j.Northwest;
5463
+ }
5464
+ }, jc = (r, t) => t > 45 && t <= 135 ? It(r) : t > 135 && t <= 225 ? It(It(r)) : t > 225 && t <= 315 ? It(It(It(r))) : r, qc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5465
5465
  const a = pt(r.rotation), n = {
5466
5466
  x: t.x + r.x * e.x,
5467
5467
  y: t.x + r.y * e.y
@@ -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
- }, Hc = 0.352778, qc = 0.035277, kn = (r) => {
5494
+ }, Yc = 0.352778, Jc = 0.035277, kn = (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, P, 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 = ((P = r.pattern) == null ? void 0 : P.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,
@@ -5716,7 +5716,7 @@ const Ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5716
5716
  }, ra = (r, t) => {
5717
5717
  const e = new Yi(t);
5718
5718
  return Tn.set(r, e), e;
5719
- }, Yc = async (r) => {
5719
+ }, Kc = async (r) => {
5720
5720
  const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
5721
5721
  a.querySelectorAll("style").forEach((d) => {
5722
5722
  var u;
@@ -5748,7 +5748,7 @@ const Ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
5748
5748
  parseInt(u.getAttribute("font-size") ?? "72")
5749
5749
  );
5750
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;
5751
+ const P = b.toSVG(2), F = t.parseFromString(P, "image/svg+xml").firstElementChild;
5752
5752
  h.appendChild(F);
5753
5753
  }
5754
5754
  return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
@@ -6138,7 +6138,7 @@ class os {
6138
6138
  const Rn = (r) => r.type === M.Image ? /* @__PURE__ */ x(kn, { ...r }, r.id) : r.type === M.Frame ? /* @__PURE__ */ x(qi, { ...r }, r.id) : r.type === M.Illustration ? /* @__PURE__ */ x(ss, { ...r }, r.id) : r.type === M.Textbox ? /* @__PURE__ */ x(ns, { ...r }, r.id) : r.type === M.Group ? /* @__PURE__ */ x(Mn, { ...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
+ ji,
6142
6142
  {
6143
6143
  preserveAspectRatio: void 0,
6144
6144
  elements: n,
@@ -6375,7 +6375,7 @@ const ae = (r) => {
6375
6375
  }
6376
6376
  return o;
6377
6377
  };
6378
- class Jc {
6378
+ class _c {
6379
6379
  static async getFrame(t, e) {
6380
6380
  const a = await On(e.region, e.src), n = await Qe(a), i = e.region || await Ut(t, M.Frame);
6381
6381
  return {
@@ -6621,7 +6621,7 @@ class Ga extends O {
6621
6621
  };
6622
6622
  }
6623
6623
  }
6624
- class Kc extends O {
6624
+ class Xc extends O {
6625
6625
  constructor(t, e, a) {
6626
6626
  super(), this.id = t, this.x = e, this.y = a;
6627
6627
  }
@@ -6644,7 +6644,7 @@ class Kc extends O {
6644
6644
  };
6645
6645
  }
6646
6646
  }
6647
- class _c extends O {
6647
+ class Zc extends O {
6648
6648
  constructor(t, e) {
6649
6649
  super(), this.id = t, this.angle = e;
6650
6650
  }
@@ -6666,7 +6666,7 @@ class _c extends O {
6666
6666
  };
6667
6667
  }
6668
6668
  }
6669
- class Xc extends O {
6669
+ class td extends O {
6670
6670
  constructor(t, e, a) {
6671
6671
  super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
6672
6672
  }
@@ -6978,7 +6978,7 @@ class ms extends O {
6978
6978
  };
6979
6979
  }
6980
6980
  }
6981
- class Zc extends O {
6981
+ class ed extends O {
6982
6982
  constructor(t, e) {
6983
6983
  super(), this.id = t, this.src = e;
6984
6984
  }
@@ -7019,7 +7019,7 @@ class gs extends O {
7019
7019
  };
7020
7020
  }
7021
7021
  }
7022
- class je extends O {
7022
+ class He extends O {
7023
7023
  constructor(t, e, a) {
7024
7024
  super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
7025
7025
  }
@@ -7097,7 +7097,7 @@ class ps extends O {
7097
7097
  };
7098
7098
  }
7099
7099
  }
7100
- class td extends O {
7100
+ class ad extends O {
7101
7101
  /**
7102
7102
  * @param id The targeted element to bring to the front.
7103
7103
  */
@@ -7126,7 +7126,7 @@ class td extends O {
7126
7126
  };
7127
7127
  }
7128
7128
  }
7129
- class ed extends O {
7129
+ class nd extends O {
7130
7130
  /**
7131
7131
  * @param id The targeted element to bring to the back.
7132
7132
  */
@@ -7157,7 +7157,7 @@ class ed extends O {
7157
7157
  };
7158
7158
  }
7159
7159
  }
7160
- class ad extends O {
7160
+ class rd extends O {
7161
7161
  /**
7162
7162
  * @param id The targeted element to bring to the front.
7163
7163
  */
@@ -7184,7 +7184,7 @@ class ad extends O {
7184
7184
  };
7185
7185
  }
7186
7186
  }
7187
- class nd extends O {
7187
+ class id extends O {
7188
7188
  /**
7189
7189
  * @param id The targeted element to bring to the front.
7190
7190
  */
@@ -7211,7 +7211,7 @@ class nd extends O {
7211
7211
  };
7212
7212
  }
7213
7213
  }
7214
- class ja {
7214
+ class Ha {
7215
7215
  constructor(t, e, a) {
7216
7216
  this.processRegion = async (n) => {
7217
7217
  var l, c, d, A;
@@ -7219,14 +7219,14 @@ class ja {
7219
7219
  if (!i)
7220
7220
  throw new Y(n);
7221
7221
  let s = "";
7222
- if (this.configuration.type === P.ProductOverlay) {
7222
+ if (this.configuration.type === I.ProductOverlay) {
7223
7223
  let u = "";
7224
7224
  if ((l = this.product) != null && l.overlayImageUrl && (u = this.product.overlayImageUrl), s = u, !u)
7225
7225
  throw new Se(this.configuration, "Couldn't find an asset for product overlay step");
7226
7226
  }
7227
7227
  const o = this.evaluateAssetType();
7228
7228
  if (o === M.Image) {
7229
- const u = this.configuration.type === P.SilentIllustration ? (c = this.configuration.data.asset) == null ? void 0 : c.fileLink : (d = this.product) == null ? void 0 : d.overlayImageUrl;
7229
+ const u = this.configuration.type === I.SilentIllustration ? (c = this.configuration.data.asset) == null ? void 0 : c.fileLink : (d = this.product) == null ? void 0 : d.overlayImageUrl;
7230
7230
  if (!u)
7231
7231
  throw new Error("Undefined raster silent step source");
7232
7232
  const h = {
@@ -7241,7 +7241,7 @@ class ja {
7241
7241
  layer: n.layer,
7242
7242
  layerIndex: n.layerIndex,
7243
7243
  immutable: n.immutable,
7244
- productOverlay: this.configuration.type === P.ProductOverlay ? !0 : void 0,
7244
+ productOverlay: this.configuration.type === I.ProductOverlay ? !0 : void 0,
7245
7245
  rotation: n.rotation,
7246
7246
  excludeFromExport: this.configuration.data.excludeFromPrint,
7247
7247
  preserveAspectRatio: "none"
@@ -7254,7 +7254,7 @@ class ja {
7254
7254
  command: new W(h, i)
7255
7255
  };
7256
7256
  } else {
7257
- const u = this.configuration.type === P.SilentIllustration ? (A = this.configuration.data.asset) == null ? void 0 : A.fileLink : s, m = await lt(await (async () => new Promise((p, f) => {
7257
+ const u = this.configuration.type === I.SilentIllustration ? (A = this.configuration.data.asset) == null ? void 0 : A.fileLink : s, m = await lt(await (async () => new Promise((p, f) => {
7258
7258
  if (!u) {
7259
7259
  f("Undefined vector silent step source");
7260
7260
  return;
@@ -7278,7 +7278,7 @@ class ja {
7278
7278
  layerIndex: n.layerIndex,
7279
7279
  rotation: n.rotation,
7280
7280
  immutable: n.immutable,
7281
- productOverlay: this.configuration.type === P.ProductOverlay ? !0 : void 0,
7281
+ productOverlay: this.configuration.type === I.ProductOverlay ? !0 : void 0,
7282
7282
  excludeFromExport: this.configuration.data.excludeFromPrint
7283
7283
  };
7284
7284
  return {
@@ -7294,11 +7294,11 @@ class ja {
7294
7294
  async trigger() {
7295
7295
  if (!this.configuration.data.regions)
7296
7296
  throw new Se(this.configuration, "Missing regions.");
7297
- if (this.configuration.type === P.SilentIllustration) {
7297
+ if (this.configuration.type === I.SilentIllustration) {
7298
7298
  const t = this.configuration.data.regions.map(this.processRegion);
7299
7299
  return Promise.all(t);
7300
7300
  } else
7301
- return this.configuration.type === P.ProductOverlay ? Promise.all(
7301
+ return this.configuration.type === I.ProductOverlay ? Promise.all(
7302
7302
  this.configuration.data.regions.map((t) => {
7303
7303
  if (!this.layouts.find((a) => t.panelId === a.panelId))
7304
7304
  throw new Y(t);
@@ -7308,7 +7308,7 @@ class ja {
7308
7308
  }
7309
7309
  evaluateAssetType() {
7310
7310
  var e, a, n;
7311
- const t = this.configuration.type === P.ProductOverlay && ((e = this.product) != null && e.overlayImageUrl) ? this.product.overlayImageUrl.toLowerCase() : (n = (a = this.configuration.data.asset) == null ? void 0 : a.fileLink) == null ? void 0 : n.toLowerCase().split("?")[0];
7311
+ const t = this.configuration.type === I.ProductOverlay && ((e = this.product) != null && e.overlayImageUrl) ? this.product.overlayImageUrl.toLowerCase() : (n = (a = this.configuration.data.asset) == null ? void 0 : a.fileLink) == null ? void 0 : n.toLowerCase().split("?")[0];
7312
7312
  return t != null && t.startsWith("data:image/png") || t != null && t.endsWith(".jpeg") || t != null && t.endsWith(".jpg") || t != null && t.endsWith(".png") ? M.Image : (t != null && t.endsWith(".svg") || t != null && t.startsWith("image/svg+xml"), M.Illustration);
7313
7313
  }
7314
7314
  }
@@ -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 Et(I.id)), w = f ? Ea(
7736
+ const p = await Qe(l[g]), f = o.getImageData(), C = a.map((P) => new Et(P.id)), w = f ? Ea(
7737
7737
  f,
7738
7738
  p,
7739
7739
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7748,7 +7748,7 @@ 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);
7751
+ } : void 0, y = Q(), b = n.getLayouts().find((P) => P.panelId === m.panelId);
7752
7752
  if (!b)
7753
7753
  throw new Y(m);
7754
7754
  return {
@@ -8042,8 +8042,8 @@ class ws {
8042
8042
  const y = {};
8043
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 P = C.find((F) => F.channelNumber === b.number);
8046
+ P && (y[`${b.id.replace(/\W/g, "")}`] = { browserValue: ((D = P == null ? void 0 : P.variant) == null ? void 0 : D.color) || "" });
8047
8047
  }), await this.changeColors(
8048
8048
  t,
8049
8049
  u.map((b) => b.regionElement),
@@ -8055,18 +8055,18 @@ class ws {
8055
8055
  if (t.data.colorPickerEnabled) {
8056
8056
  const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), b = y.length === 1 && E.length === 1;
8057
8057
  if (b) {
8058
- const I = y[0], D = E[0];
8058
+ const P = y[0], D = E[0];
8059
8059
  await this.changeColors(
8060
8060
  t,
8061
8061
  u.map((F) => F.regionElement),
8062
8062
  i,
8063
8063
  () => i.getCommandContext().getAllLayouts(),
8064
- /* @__PURE__ */ new Map([[D, I.variant.color]])
8064
+ /* @__PURE__ */ new Map([[D, P.variant.color]])
8065
8065
  );
8066
8066
  }
8067
8067
  !b && C.length === 0 && await this.changeColors(
8068
8068
  t,
8069
- u.map((I) => I.regionElement),
8069
+ u.map((P) => P.regionElement),
8070
8070
  i,
8071
8071
  () => i.getCommandContext().getAllLayouts(),
8072
8072
  /* @__PURE__ */ new Map()
@@ -8353,7 +8353,7 @@ class vs {
8353
8353
  return n(""), { input: e, helperData: {} };
8354
8354
  }
8355
8355
  }
8356
- const jn = new vs();
8356
+ const Hn = new vs();
8357
8357
  class Es {
8358
8358
  async init(t, e, a) {
8359
8359
  const n = t.option;
@@ -8445,7 +8445,7 @@ class Es {
8445
8445
  };
8446
8446
  }
8447
8447
  }
8448
- const Hn = new Es();
8448
+ const jn = new Es();
8449
8449
  class bs {
8450
8450
  async init(t, e, a) {
8451
8451
  const n = t.option;
@@ -8703,7 +8703,7 @@ class Is {
8703
8703
  );
8704
8704
  }
8705
8705
  }
8706
- const Ps = new Is(), He = (r, t, e, a, n) => {
8706
+ const Ps = new Is(), je = (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,18 +8735,18 @@ const Ps = new Is(), He = (r, t, e, a, n) => {
8735
8735
  const o = vt(t.assetUrl), l = o.getFont();
8736
8736
  if (n.size) {
8737
8737
  const u = r / l.unitsPerEm;
8738
- return [i, s] = He(e, a, r, u, o), [n.size, i, s];
8738
+ return [i, s] = je(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] = He(e, a, d, h, o);
8745
+ d += Ve, h = d / l.unitsPerEm, [u, s] = je(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] = He(e, a, d, A, o), [d, i, s];
8749
+ return [i, s] = je(e, a, d, A, o), [d, i, s];
8750
8750
  }, qe = 30;
8751
8751
  class Ie extends Error {
8752
8752
  constructor(t) {
@@ -8977,7 +8977,7 @@ class Fs {
8977
8977
  strokeColor: s
8978
8978
  });
8979
8979
  for (const l of a) {
8980
- const c = new je(l.id, s, (o = t.data) == null ? void 0 : o.strokeThickness);
8980
+ const c = new He(l.id, s, (o = t.data) == null ? void 0 : o.strokeThickness);
8981
8981
  i(c);
8982
8982
  }
8983
8983
  }
@@ -9057,12 +9057,12 @@ class Fs {
9057
9057
  const S = e.getWorkflowExperience().getBundle();
9058
9058
  if (S && t.globalPropertyAspectConfigurations) {
9059
9059
  const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((b) => {
9060
- var I;
9061
- return b.type === z.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(b.name));
9060
+ var P;
9061
+ return b.type === z.Text && ((P = t.globalPropertyAspectConfigurations) == null ? void 0 : P.map((D) => D.aspectName).includes(b.name));
9062
9062
  });
9063
9063
  if (E) {
9064
- const I = S.getGlobalPropertyStateManager().getAspect(E.name);
9065
- I && (w = I);
9064
+ const P = S.getGlobalPropertyStateManager().getAspect(E.name);
9065
+ P && (w = P);
9066
9066
  }
9067
9067
  }
9068
9068
  if (await e.setSelectionsAndElements(
@@ -9091,7 +9091,7 @@ class Fs {
9091
9091
  e.getCommandDispatcher()(E.command);
9092
9092
  }
9093
9093
  } else {
9094
- const { command: y } = j.updateInputText(
9094
+ const { command: y } = H.updateInputText(
9095
9095
  w || "",
9096
9096
  o,
9097
9097
  t,
@@ -9128,7 +9128,7 @@ class Fs {
9128
9128
  e.getCommandDispatcher()(S.command);
9129
9129
  }
9130
9130
  } else {
9131
- const { command: w } = j.updateInputText(
9131
+ const { command: w } = H.updateInputText(
9132
9132
  C,
9133
9133
  o,
9134
9134
  t,
@@ -9186,7 +9186,7 @@ class Fs {
9186
9186
  }
9187
9187
  if (c) {
9188
9188
  const p = n.map(
9189
- (f) => new je(f.id, c, t.data.strokeThickness)
9189
+ (f) => new He(f.id, c, t.data.strokeThickness)
9190
9190
  );
9191
9191
  h.push(...p);
9192
9192
  }
@@ -9234,7 +9234,7 @@ class Fs {
9234
9234
  }
9235
9235
  if (c) {
9236
9236
  const f = n.map(
9237
- (C) => new je(C.id, c, t.data.strokeThickness)
9237
+ (C) => new He(C.id, c, t.data.strokeThickness)
9238
9238
  );
9239
9239
  g.push(...f);
9240
9240
  }
@@ -9301,7 +9301,7 @@ class Fs {
9301
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
- const [I, D] = pe(
9304
+ const [P, D] = pe(
9305
9305
  S.fontSize,
9306
9306
  S.fontData,
9307
9307
  {
@@ -9315,11 +9315,11 @@ 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, P), b.set(S.id, D);
9319
9319
  const F = a.curved || a.vertical ? l : (D || []).join(`
9320
9320
  `);
9321
9321
  y.push(
9322
- this.generateTextChangeCommandsForRegion(I, a, S.id, F)
9322
+ this.generateTextChangeCommandsForRegion(P, a, S.id, F)
9323
9323
  );
9324
9324
  const k = new W(S, h);
9325
9325
  return {
@@ -9377,8 +9377,8 @@ class Fs {
9377
9377
  const S = s.getProfanities(), y = Ze(u.toLowerCase());
9378
9378
  for (const E of y)
9379
9379
  for (const b in S) {
9380
- const I = S[b].toLowerCase().replace(/\s/g, "");
9381
- if (E === I)
9380
+ const P = S[b].toLowerCase().replace(/\s/g, "");
9381
+ if (E === P)
9382
9382
  return l(!0), { error: "Blocked profanity." };
9383
9383
  }
9384
9384
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
@@ -9409,7 +9409,7 @@ class Fs {
9409
9409
  return new $(C);
9410
9410
  }
9411
9411
  }
9412
- const j = new Fs();
9412
+ const H = new Fs();
9413
9413
  class xs {
9414
9414
  }
9415
9415
  const ks = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtdHiADw6qAAAB2AAAAThsb2Nh5CzfJAAABWgAAACebWF4c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2AAU/+IAFf/JABb/5wAx/90AMv/EADP/6wA0/+EANf/wADb/8AA4/9wAOf/dADr/7AA7/9gAPP/sAD3/5wA+/+wAP//iAED/0wBB/+IAQv/YAEP/4gBE/84ARf/JAEb/4gBH/8kASP/OAEn/vwBK/8kAS//TACwABv/7AAf/3wAI/+cACf+wAAr/4wAL/8kADP/dAA3/xwAO/+cAD//dABD/7AAR/+cAEv/iABP/yQAU/9cAFf+/ABb/4gAa/+kAMf/YADL/uwAz/+EANP/dADb/6wA3//MAOP/lADn/8QA6//IAO//eADz/5wA9/+4APv/zAD//8ABA/+IAQf/2AEL/6gBD//YARP/kAEX/zABG/+8AR/+0AEj/uwBJ/64ASv+vAEv/5QAsAAb/+wAH/90ACP/nAAn/4gAK/9MAC//nAAz/3QAN//YADv/eAA//3QAQ/7AAEf/OABL/sAAT//sAFP/dABX/0wAW/9MAMf/iADL/iAAz//YANP/OADX/9gA2//EAN//xADj/0wA5//YAOv/zADv/gAA8//EAPf/7AD7/+wA///YAQP/OAEH/7gBC/84AQ//2AET/2ABF//sARv/2AEf/5wBI/+cASf/TAEr/4gBL/+wALAAG//sAB//2AAj/8QAJ/9gACv/nAAv/3QAM/+IADf/dAA7/4gAP/+IAEP/nABH/5wAS/9gAE//YABT/3QAV/84AFv/sADH/5wAy/78AM//nADT/2AA1/+cANv/nADf/7AA4/90AOf/sADr/7AA7/+cAPP/sAD3/8QA+/+wAP//xAED/4gBB//EAQv/dAEP/5wBE/+IARf/YAEb/5wBH/78ASP/HAEn/sABK/7UAS//dACsABv/xAAf/8QAI/+IACf/dAAr/0wAL/+IADP/iAA3/3QAO/+cAD//dABD/zgAR/9MAEv/EABP/0wAU/84AFv/dADH/4gAy/6EAM//jADT/3QA1/+wANv/sADf/5wA4/90AOf/nADr/8QA7/78APP/xAD3/9gA+/+wAP//nAED/3QBB/+cAQv/nAEP/5wBE/+IARf/OAEb/3QBH/8QASP/JAEn/lwBK/7oAS//YACkABv/sAAf/0wAI/90ACf/OAAr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4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAPP/5AD3/+gA+//EAP//6AED/2gBB/+8AQv/aAET/7wBF/9cARv/qAEf/xgBI/7sASf/qAEr/tABL//sAHQAG/+cAF//oACT/+gAy/+IAM//xADT/zAA1/+8ANv/sADf/+gA4/8wAOf/3ADr/8wA7/8kAPP/uAD3/7wA+/+wAP//rAED/yQBB//cAQv/MAEP/+ABE/9QARf/KAEb/2gBH/8EASP/EAEn/4gBK/7cAS//vAB0ABv/xABv/+QAl/+4AMv+8ADP/7wA0/9wANf/zADb/6AA3//cAOP/hADn/5gA6//MAO//aADz/6QA9//MAPv/pAD//6wBA/+MAQf/3AEL/2gBD/+kARP/rAEX/1ABG/+kAR//JAEj/zABJ/7QASv+7AEv/5wAbAAb/9gAy/6YAM//9ADT/0wA1//oANv/+ADf//QA4/9UAOf/3ADr//wA7/7kAPP/6AD3//gA+//sAP//7AED/0ABB//oAQv/XAEP/+QBE/+IARf/zAEb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+sAR//CAEj/xABJ/7QASv+6AEv/6AAmAAf/9gAI//EACf/sAAr/9gAM/+cADv/6AA//8QAQ//EAEf/vABL/4QAT//EAFP/iABX/5wAy/+kAM//9ADT/5wA1//sANv/9ADf//gA4/+sAOf/+ADoAAQA7/+gAPP/9AD3/9wA+//0AP//9AED/6wBBAAEAQv/pAEP/+QBE/+wARgACAEf/6QBI/+8ASf/nAEr/6wBL//sAKQAH//sACP/xAAn/5wAK/+4AC//2AAz/4gAN//sADv/1AA//8QAQ/90AEf/kABL/4gAT/+wAFP/YABX/3QAx//YAMv+5ADP/+AA0/+MANf/3ADb/+AA3//kAOP/iADn/+gA6//0AO//OADz//QA9//4APv/5AD///ABA/+YAQv/jAEP/9wBE/+YARf/vAEb//gBH/+cASP/vAEn/0QBK/+YAS//9ACgAB//2AAj/4gAJ/90ACv/sAAv/4gAM/+gADf/iAA7/9QAP/+gAEP/dABH/4AAS/+YAE//OABT/4gAV/90AJP/7ADH/9gAy/8EAM//vADT/3wA2//QAN//4ADj/4wA5/+kAOv/6ADv/0QA8/+YAPf/zAD7/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//7ACkAB//2AAj/9gAJ/90ACv/yAAz/8QAO//EAD//wABD/6gAR/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ABJ/9gASv/MAEv/7gAsAAf/yQAI/84ACf/JAAr/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", at = (r) => kr("http://www.w3.org/2000/svg", r), Ms = (r, t) => {
@@ -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 ja = {
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 = ja[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 = ja[s];
9503
9503
  if (o.length < c.length)
9504
9504
  throw new Dt(
9505
9505
  `Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
@@ -9576,8 +9576,8 @@ class $s extends xs {
9576
9576
  E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
9577
9577
  const b = at("g");
9578
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
- const I = at("g");
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;
9579
+ const P = at("g");
9580
+ P.classList.add("module-layer2"), w.appendChild(P), P.setAttribute("fill", "rgb(255,209,0)"), P.setAttribute("transform", "translate(1,-0.1)"), P.innerHTML = o;
9581
9581
  const D = at("g");
9582
9582
  return D.classList.add("module-layer3"), w.appendChild(D), D.setAttribute("fill", "white"), D.innerHTML = o, new Os(w).transform(([k, T]) => [k, T + (c / 2 - k) ** 2 / (c * 6)]), w;
9583
9583
  }, u = at("g");
@@ -9653,7 +9653,7 @@ const ne = v`
9653
9653
  }
9654
9654
  }
9655
9655
  }
9656
- `, rd = async (r) => (await B.getShadowGraphqlClient().query({
9656
+ `, sd = async (r) => (await B.getShadowGraphqlClient().query({
9657
9657
  query: Vs,
9658
9658
  fetchPolicy: "cache-first",
9659
9659
  errorPolicy: "all",
@@ -9891,7 +9891,7 @@ const ne = v`
9891
9891
  }
9892
9892
  }
9893
9893
  }
9894
- `, js = v`
9894
+ `, Hs = v`
9895
9895
  ${Ba}
9896
9896
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
9897
9897
  productCollections(ids: [$id], productIds: $productIds) {
@@ -9901,7 +9901,7 @@ const ne = v`
9901
9901
  }
9902
9902
  }
9903
9903
  }
9904
- `, Hs = v`
9904
+ `, js = v`
9905
9905
  query GetProductCollectionForFilteredProducts(
9906
9906
  $id: String!
9907
9907
  $filters: ProductCollectionProductFilterInput
@@ -10608,7 +10608,7 @@ class Co {
10608
10608
  },
10609
10609
  { refocusCamera: e }
10610
10610
  );
10611
- this.setModelContainer(a), Pt(this.allScenes, this.stepSelections).filter((s) => s).map((s) => s.renderableSteps).flat().filter((s) => s.type === P.Model || s.type === P.Material).forEach((s) => {
10611
+ this.setModelContainer(a), Pt(this.allScenes, this.stepSelections).filter((s) => s).map((s) => s.renderableSteps).flat().filter((s) => s.type === I.Model || s.type === I.Material).forEach((s) => {
10612
10612
  var c, d, A;
10613
10613
  if (!((c = s.option) != null && c.id)) {
10614
10614
  console.error(`Failed to read option id from step: ${s.stepName}`);
@@ -10618,7 +10618,7 @@ class Co {
10618
10618
  if (o.length === 0)
10619
10619
  return;
10620
10620
  const l = o[0];
10621
- if (s.type === P.Model) {
10621
+ if (s.type === I.Model) {
10622
10622
  if (!this.modelContainer)
10623
10623
  throw new G(
10624
10624
  "We should always have a model container when injecting a preview!"
@@ -10762,18 +10762,18 @@ class Co {
10762
10762
  ), t), []);
10763
10763
  }
10764
10764
  getInvalidModelVariants() {
10765
- return this.workflow.steps.reduce((t, e) => (e.type === P.Model && !wt(e, this.stepSelections) && t.push(e.stepName), t), []);
10765
+ return this.workflow.steps.reduce((t, e) => (e.type === I.Model && !wt(e, this.stepSelections) && t.push(e.stepName), t), []);
10766
10766
  }
10767
10767
  async stepElementsForIntroducedSilentSteps(t, e) {
10768
10768
  const a = this.product;
10769
10769
  if (!a)
10770
10770
  return Promise.resolve({ stepElements: {}, commands: [] });
10771
10771
  const n = async (c, d, A) => {
10772
- if (c.type === P.SilentIllustration) {
10773
- const u = await new ja(c, d).trigger();
10772
+ if (c.type === I.SilentIllustration) {
10773
+ const u = await new Ha(c, d).trigger();
10774
10774
  return { step: c, results: u };
10775
- } else if (c.type === P.ProductOverlay) {
10776
- const u = await new ja(
10775
+ } else if (c.type === I.ProductOverlay) {
10776
+ const u = await new Ha(
10777
10777
  c,
10778
10778
  d,
10779
10779
  A
@@ -10863,7 +10863,7 @@ 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((P) => P.priceModifier || 0).reduce((P, D) => P + D, 0), 0), this.workflow.steps.forEach((E) => {
10867
10867
  wt(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 = Pt(s, i), l = Pt(s, this.stepSelections), c = o.map((E) => E.silentSteps).flat(), A = l.map((E) => E.silentSteps).flat().filter(
@@ -10879,7 +10879,7 @@ class Co {
10879
10879
  [t]: a
10880
10880
  }, this.removeElements(u);
10881
10881
  const g = this.workflow.steps.find((E) => E.stepName === t);
10882
- if ((g == null ? void 0 : g.type) === P.Frame) {
10882
+ if ((g == null ? void 0 : g.type) === I.Frame) {
10883
10883
  const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
10884
10884
  E == null || E.setTargetElements(a.map((b) => b.id));
10885
10885
  }
@@ -10905,7 +10905,7 @@ class Co {
10905
10905
  for (const l of n)
10906
10906
  if (!this.stepInitialised[l.stepName])
10907
10907
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10908
- case P.DigitalContent:
10908
+ case I.DigitalContent:
10909
10909
  a.push(
10910
10910
  zn.init(
10911
10911
  l,
@@ -10914,44 +10914,44 @@ class Co {
10914
10914
  )
10915
10915
  );
10916
10916
  break;
10917
- case P.Frame:
10917
+ case I.Frame:
10918
10918
  a.push(Ct.init(l, this, this.reloadedState));
10919
10919
  break;
10920
- case P.Illustration:
10920
+ case I.Illustration:
10921
10921
  a.push(
10922
10922
  ge.init(l, this, this.reloadedState)
10923
10923
  );
10924
10924
  break;
10925
- case P.Material:
10925
+ case I.Material:
10926
10926
  a.push(
10927
10927
  Gn.init(l, this, this.reloadedState)
10928
10928
  );
10929
10929
  break;
10930
- case P.Model:
10930
+ case I.Model:
10931
10931
  a.push(Wn.init(l, this, this.reloadedState));
10932
10932
  break;
10933
- case P.Module:
10933
+ case I.Module:
10934
10934
  this.stepSpecificServices[l.stepName] = {
10935
10935
  module: await Yn(l.data.module)
10936
10936
  }, a.push(
10937
- jn.init(l, this, this.reloadedState)
10937
+ Hn.init(l, this, this.reloadedState)
10938
10938
  );
10939
10939
  break;
10940
- case P.Picture:
10940
+ case I.Picture:
10941
10941
  a.push(
10942
- Hn.init(l, this, this.reloadedState)
10942
+ jn.init(l, this, this.reloadedState)
10943
10943
  );
10944
10944
  break;
10945
- case P.Question:
10945
+ case I.Question:
10946
10946
  a.push(
10947
10947
  qn.init(l, this, this.reloadedState)
10948
10948
  );
10949
10949
  break;
10950
- case P.Shape:
10950
+ case I.Shape:
10951
10951
  a.push(zt.init(l, this, this.reloadedState));
10952
10952
  break;
10953
- case P.Text:
10954
- a.push(j.init(l, this, this.reloadedState));
10953
+ case I.Text:
10954
+ a.push(H.init(l, this, this.reloadedState));
10955
10955
  break;
10956
10956
  }
10957
10957
  const i = (await Promise.allSettled(a)).map((l) => {
@@ -11011,7 +11011,7 @@ class Co {
11011
11011
  this.validationCallbacks.forEach((t) => t(this.validationErrors));
11012
11012
  }
11013
11013
  traversableScenes() {
11014
- return ji(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 jn.selectVariant(
11348
11348
  this.step,
11349
11349
  t.getResource(),
11350
11350
  this.manager,
@@ -11433,7 +11433,7 @@ class Bo extends it {
11433
11433
  * @param variant The font variant to use.
11434
11434
  */
11435
11435
  async selectVariant(t) {
11436
- j.selectVariant(
11436
+ H.selectVariant(
11437
11437
  this.step,
11438
11438
  t.getResource(),
11439
11439
  this.manager,
@@ -11460,7 +11460,7 @@ class Bo extends it {
11460
11460
  * @returns A list of colors that can be used to fill the text.
11461
11461
  */
11462
11462
  getAvailableFillColors() {
11463
- return this.step.data.colorPickerEnabled ? j.availableFillColors(this.step) : [];
11463
+ return this.step.data.colorPickerEnabled ? H.availableFillColors(this.step) : [];
11464
11464
  }
11465
11465
  /**
11466
11466
  * Changes the fill of text related to this step to the new fill value.
@@ -11468,7 +11468,7 @@ class Bo extends it {
11468
11468
  */
11469
11469
  async setFillColor(t) {
11470
11470
  const e = this.manager.getRegionElements(this.step.stepName);
11471
- await j.changeFillColor(this.step, t, e, this.manager);
11471
+ await H.changeFillColor(this.step, t, e, this.manager);
11472
11472
  }
11473
11473
  /**
11474
11474
  * Gets the color currently applied to the element.
@@ -11478,23 +11478,23 @@ class Bo extends it {
11478
11478
  return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.color) || "#000000";
11479
11479
  }
11480
11480
  getAvailableFillImages() {
11481
- return j.availableFillImages(this.step);
11481
+ return H.availableFillImages(this.step);
11482
11482
  }
11483
11483
  async setFillImage(t) {
11484
11484
  const e = this.manager.getRegionElements(this.step.stepName);
11485
- await j.changeFillImage(this.step, t, e, this.manager);
11485
+ await H.changeFillImage(this.step, t, e, this.manager);
11486
11486
  }
11487
11487
  getFillImage() {
11488
11488
  var t;
11489
11489
  return (t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.fillImage;
11490
11490
  }
11491
11491
  getAlignment() {
11492
- const t = j.findLayoutElements(this.manager, this.step);
11492
+ const t = H.findLayoutElements(this.manager, this.step);
11493
11493
  return t == null ? void 0 : t[0].align;
11494
11494
  }
11495
11495
  setAlignment(t) {
11496
11496
  const e = this.manager.getRegionElements(this.step.stepName);
11497
- j.changeAlignment(this.step, t, e, this.manager);
11497
+ H.changeAlignment(this.step, t, e, this.manager);
11498
11498
  }
11499
11499
  /**
11500
11500
  * When true & the step has replaceable text configured the user will be
@@ -11519,11 +11519,11 @@ class Bo extends it {
11519
11519
  const e = {
11520
11520
  input: t,
11521
11521
  helperData: {}
11522
- }, a = j.findLayoutElements(this.manager, this.step), n = j.filterUnsupportedCharacters(t, (d = a[0]) == null ? void 0 : d.fontData), i = !!this.step.data && !!this.step.data.maxLength && n.length > this.step.data.maxLength;
11522
+ }, a = H.findLayoutElements(this.manager, this.step), n = H.filterUnsupportedCharacters(t, (d = a[0]) == null ? void 0 : d.fontData), i = !!this.step.data && !!this.step.data.maxLength && n.length > this.step.data.maxLength;
11523
11523
  i || (e.input = n);
11524
11524
  const s = a.length <= 0, o = s ? { inputText: n, text: n } : { inputText: n };
11525
11525
  this.manager.updateStorage(this.step.stepName, o);
11526
- const l = this.manager.getStepStorage(this.step.stepName), c = j.getProcessedInput(
11526
+ const l = this.manager.getStepStorage(this.step.stepName), c = H.getProcessedInput(
11527
11527
  n,
11528
11528
  this.step.data,
11529
11529
  (l == null ? void 0 : l.customiseAllText) ?? !1
@@ -11533,7 +11533,7 @@ class Bo extends it {
11533
11533
  text: c
11534
11534
  });
11535
11535
  else {
11536
- const { command: A, errorData: u, helperData: h } = j.updateInputText(
11536
+ const { command: A, errorData: u, helperData: h } = H.updateInputText(
11537
11537
  n,
11538
11538
  a,
11539
11539
  this.step,
@@ -11572,8 +11572,8 @@ class Bo extends it {
11572
11572
  if (!(t != null && t.defaultCleared) && this.step.data.deleteDefaultOnFocus) {
11573
11573
  const e = this.setText("");
11574
11574
  this.manager.updateStorage(this.step.stepName, { defaultCleared: !0, inputText: "" });
11575
- const a = j.findLayoutElements(this.manager, this.step);
11576
- return j.updateInputText("", a, this.step, this.manager), e;
11575
+ const a = H.findLayoutElements(this.manager, this.step);
11576
+ return H.updateInputText("", a, this.step, this.manager), e;
11577
11577
  }
11578
11578
  }
11579
11579
  hasColorPicker() {
@@ -11610,7 +11610,7 @@ class Bo extends it {
11610
11610
  * @returns A list of colors that can be used for the text's outline.
11611
11611
  */
11612
11612
  getAvailableStrokeColors() {
11613
- return this.step.data.strokeEnabled ? j.availableStrokeColors(this.step) : [];
11613
+ return this.step.data.strokeEnabled ? H.availableStrokeColors(this.step) : [];
11614
11614
  }
11615
11615
  getStrokeColor() {
11616
11616
  var t, e;
@@ -11622,7 +11622,7 @@ class Bo extends it {
11622
11622
  */
11623
11623
  async setStrokeColor(t) {
11624
11624
  const e = this.manager.getRegionElements(this.step.stepName);
11625
- await j.changeStrokeColor(this.step, t, e, this.manager);
11625
+ await H.changeStrokeColor(this.step, t, e, this.manager);
11626
11626
  }
11627
11627
  }
11628
11628
  class Io extends it {
@@ -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
- jn.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(),
@@ -11716,27 +11716,27 @@ class Do extends it {
11716
11716
  class ce {
11717
11717
  static get(t, e) {
11718
11718
  switch (e.type) {
11719
- case P.DigitalContent:
11719
+ case I.DigitalContent:
11720
11720
  return new Po(t, e, t.getStepTags(e.stepName));
11721
- case P.Information:
11721
+ case I.Information:
11722
11722
  return new Io(t, e, t.getStepTags(e.stepName));
11723
- case P.Question:
11723
+ case I.Question:
11724
11724
  return new Eo(t, e, t.getStepTags(e.stepName));
11725
- case P.Text:
11725
+ case I.Text:
11726
11726
  return new Bo(t, e, t.getStepTags(e.stepName));
11727
- case P.Illustration:
11727
+ case I.Illustration:
11728
11728
  return new wo(t, e, t.getStepTags(e.stepName));
11729
- case P.Picture:
11729
+ case I.Picture:
11730
11730
  return new vo(t, e, t.getStepTags(e.stepName));
11731
- case P.Shape:
11731
+ case I.Shape:
11732
11732
  return new bo(t, e, t.getStepTags(e.stepName));
11733
- case P.Material:
11733
+ case I.Material:
11734
11734
  return new yo(t, e, t.getStepTags(e.stepName));
11735
- case P.Model:
11735
+ case I.Model:
11736
11736
  return new So(t, e, t.getStepTags(e.stepName));
11737
- case P.Frame:
11738
- return new Vl(t, e, t.getStepTags(e.stepName));
11739
- case P.Module:
11737
+ case I.Frame:
11738
+ return new Gl(t, e, t.getStepTags(e.stepName));
11739
+ case I.Module:
11740
11740
  return new Do(t, e, t.getStepTags(e.stepName));
11741
11741
  default:
11742
11742
  throw new G(`Step type ${e.type} not yet supported in Core SDK`);
@@ -11964,7 +11964,7 @@ const ko = async (r, t) => {
11964
11964
  };
11965
11965
  return i && (h.metadata = i), a && (h.selectedVariants = a), n && (h.sku = n), h;
11966
11966
  }, Xn = async (r, t, e, a, n, i, s, o, l, c) => {
11967
- var I;
11967
+ var P;
11968
11968
  await (async () => {
11969
11969
  var R;
11970
11970
  if (c !== void 0)
@@ -11983,7 +11983,7 @@ const ko = async (r, t) => {
11983
11983
  T.errors && console.log("Server Error:", et.message);
11984
11984
  }), null) : Z ?? null;
11985
11985
  })() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(a())), await r.updateStateWithServerImmediate(a), console.log("Server state is undefined @ Workflow completion"));
11986
- const u = r.getPreviewService(), h = (I = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : I.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && ca(l, t, !0), p = l && ca(l, t, !1), f = async (D) => {
11986
+ const u = r.getPreviewService(), h = (P = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : P.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && ca(l, t, !0), p = l && ca(l, t, !1), f = async (D) => {
11987
11987
  const F = {};
11988
11988
  let k = 0;
11989
11989
  if (Object.keys(i).length > 0)
@@ -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: Ht.Print,
12381
+ purpose: jt.Print,
12382
12382
  region: { left: A.x, top: A.y, width: A.width, height: A.height },
12383
12383
  templatingContext: this.workflowManager.getTemplatingContext()
12384
12384
  }
@@ -12621,24 +12621,74 @@ class Vo {
12621
12621
  * @returns Returns true when a valid handle is implemented for a given step type. Certain steps don't support handles, such as silent illustrations.
12622
12622
  */
12623
12623
  stepHasHandle(t) {
12624
- return t.type !== P.SilentIllustration && t.type !== P.ProductOverlay;
12624
+ return t.type !== I.SilentIllustration && t.type !== I.ProductOverlay;
12625
12625
  }
12626
- getExportedData() {
12627
- var n;
12628
- const t = /* @__PURE__ */ new Map(), e = this.getWorkflowManager().getWorkflowMetadata(), a = this.getWorkflowManager().getWorkflowSelections();
12629
- return Object.keys(e).forEach((i) => {
12630
- const s = this.workflowManager.getWorkflow().steps.find((l) => l.stepName === i);
12631
- if (!s)
12626
+ getExportedStepData() {
12627
+ const t = this.getWorkflowManager().getWorkflow(), e = this.getWorkflowManager().getWorkflowMetadata(), a = this.getWorkflowManager().getWorkflowSelections(), n = [];
12628
+ return t.steps.forEach((i) => {
12629
+ var d;
12630
+ const s = i.stepName, o = e[s], l = (d = a[s]) == null ? void 0 : d.selections[0], c = {
12631
+ stepId: s,
12632
+ title: i.stepTitle,
12633
+ properties: []
12634
+ };
12635
+ if (l && Go(i, a) && c.properties.push({
12636
+ type: "selection",
12637
+ value: l.name,
12638
+ priceModifier: l.priceModifier
12639
+ }), !o) {
12640
+ n.push(c);
12632
12641
  return;
12633
- t.has(s.stepTitle) || t.set(s.stepTitle, {});
12634
- const o = e[i];
12635
- Object.keys(o).forEach((l) => {
12636
- t.get(s.stepTitle)[l] = o[l];
12637
- });
12638
- }), (n = Object.keys(a)) == null || n.forEach((i) => {
12639
- const s = this.workflowManager.getWorkflow().steps.find((o) => o.stepName === i);
12640
- s && (t.has(s.stepTitle) || t.set(s.stepTitle, {}), t.get(s.stepTitle).selection = a[i].selections[0].name);
12641
- }), t;
12642
+ }
12643
+ switch (i.type) {
12644
+ case I.Frame:
12645
+ {
12646
+ const A = i.data, u = o;
12647
+ u.image && A.displayImageOnFinishStep && c.properties.push({
12648
+ type: "image",
12649
+ value: u.image,
12650
+ priceModifier: 0
12651
+ });
12652
+ }
12653
+ break;
12654
+ case I.Illustration:
12655
+ {
12656
+ const A = i.data, u = o;
12657
+ if (u && u.colors && u.colors.length > 0 && A.displayColorsOnFinishStep) {
12658
+ const h = u.colors.join(", ").toUpperCase();
12659
+ c.properties.push({
12660
+ type: "color",
12661
+ value: h,
12662
+ priceModifier: 0
12663
+ });
12664
+ }
12665
+ }
12666
+ break;
12667
+ case I.Module:
12668
+ {
12669
+ const A = i.data, u = o;
12670
+ u && u.text && A.displayTextOnFinishStep && c.properties.push({
12671
+ type: "text",
12672
+ value: u.text,
12673
+ priceModifier: 0
12674
+ });
12675
+ }
12676
+ break;
12677
+ case I.Text: {
12678
+ const A = i.data, u = o;
12679
+ u && u.text && A.displayTextOnFinishStep && c.properties.push({
12680
+ type: "text",
12681
+ value: u.text,
12682
+ priceModifier: 0
12683
+ }), u && u.color && A.displayColorOnFinishStep && c.properties.push({
12684
+ type: "color",
12685
+ value: u.color,
12686
+ priceModifier: 0
12687
+ });
12688
+ }
12689
+ }
12690
+ n.push(c);
12691
+ }), n;
12642
12692
  }
12643
12693
  getQuantity() {
12644
12694
  return this.getWorkflowManager().getTransaction().quantity || 1;
@@ -12676,7 +12726,30 @@ class Vo {
12676
12726
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
12677
12727
  }
12678
12728
  }
12679
- const zo = [
12729
+ const zo = (r) => {
12730
+ if ([
12731
+ I.Question,
12732
+ I.Frame,
12733
+ I.Illustration,
12734
+ I.Material,
12735
+ I.Model,
12736
+ I.Picture,
12737
+ I.Shape,
12738
+ I.Text
12739
+ ].includes(r.type)) {
12740
+ const e = r.data;
12741
+ return !!e.displaySelectionOnFinishStep || !!e.displaySelectionsOnFinishStep;
12742
+ }
12743
+ return !1;
12744
+ }, Go = (r, t) => {
12745
+ if (!zo(r))
12746
+ return !1;
12747
+ if (r.option && (r.option.variants || []).length > 1) {
12748
+ const e = t[r.stepName];
12749
+ return !!(e && e.selections.length > 0);
12750
+ }
12751
+ return !1;
12752
+ }, Wo = [
12680
12753
  "altGlyph",
12681
12754
  "circle",
12682
12755
  "ellipse",
@@ -12688,7 +12761,7 @@ const zo = [
12688
12761
  "textPath",
12689
12762
  "tref",
12690
12763
  "tspan"
12691
- ], Go = async (r, t, e) => {
12764
+ ], Ho = async (r, t, e) => {
12692
12765
  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);
12693
12766
  o.searchParams.append("video", Ra(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12694
12767
  const l = o.toString(), d = `data:image/svg+xml;base64,${Ra(await on(l, { type: "svg" }))}`, A = (h) => {
@@ -12715,7 +12788,7 @@ const zo = [
12715
12788
  } catch (h) {
12716
12789
  return console.error(h), [];
12717
12790
  }
12718
- }, Wo = async (r, t, e, a) => {
12791
+ }, jo = async (r, t, e, a) => {
12719
12792
  const n = e.data, i = n.assetUrl, s = await sa(i);
12720
12793
  try {
12721
12794
  const o = ls(n, a.option);
@@ -12773,7 +12846,7 @@ const zo = [
12773
12846
  } catch (o) {
12774
12847
  return console.error(o), [];
12775
12848
  }
12776
- }, jo = async (r, t, e, a) => {
12849
+ }, qo = async (r, t, e, a) => {
12777
12850
  var y, E;
12778
12851
  const n = e.data, i = a.option;
12779
12852
  if (!i)
@@ -12793,10 +12866,10 @@ const zo = [
12793
12866
  pa(m);
12794
12867
  const g = {};
12795
12868
  xt(m, (b) => {
12796
- zo.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12797
- const I = b.attributes.getNamedItem("fill");
12798
- if (I && I.value !== "none") {
12799
- const F = I.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
12869
+ Wo.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
12870
+ const P = b.attributes.getNamedItem("fill");
12871
+ if (P && P.value !== "none") {
12872
+ const F = P.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
12800
12873
  b.classList.add(T), g[T] = { browserValue: F };
12801
12874
  }
12802
12875
  const D = b.attributes.getNamedItem("stroke");
@@ -12807,16 +12880,16 @@ const zo = [
12807
12880
  });
12808
12881
  const f = bt().serializeToString(m), C = n.colors;
12809
12882
  if (C) {
12810
- for (const [b, I] of Object.entries(g))
12883
+ for (const [b, P] of Object.entries(g))
12811
12884
  for (const D of Object.keys(C))
12812
- if (I.browserValue === D) {
12885
+ if (P.browserValue === D) {
12813
12886
  g[b] = { browserValue: C[D] };
12814
12887
  break;
12815
12888
  }
12816
12889
  }
12817
12890
  const w = (b) => {
12818
- const I = r.find((F) => F.panelId === b.panelId);
12819
- if (!I)
12891
+ const P = r.find((F) => F.panelId === b.panelId);
12892
+ if (!P)
12820
12893
  throw new Y(b);
12821
12894
  const D = Q();
12822
12895
  return new W(
@@ -12834,7 +12907,7 @@ const zo = [
12834
12907
  layerIndex: b.layerIndex,
12835
12908
  immutable: b.immutable
12836
12909
  },
12837
- I
12910
+ P
12838
12911
  );
12839
12912
  }, S = a.data.regions;
12840
12913
  try {
@@ -12842,7 +12915,7 @@ const zo = [
12842
12915
  } catch (b) {
12843
12916
  return console.error(b), [];
12844
12917
  }
12845
- }, Ho = async (r, t, e) => {
12918
+ }, Yo = async (r, t, e) => {
12846
12919
  const a = await Yn(e.data.module), n = t.data, i = (o, l) => {
12847
12920
  const c = r.find((A) => A.panelId === l.panelId);
12848
12921
  if (!c)
@@ -12872,7 +12945,7 @@ const zo = [
12872
12945
  } catch (o) {
12873
12946
  return console.error(o), [];
12874
12947
  }
12875
- }, qo = async (r, t, e, a) => {
12948
+ }, Jo = async (r, t, e, a) => {
12876
12949
  var d, A;
12877
12950
  const n = e.data, i = a.option;
12878
12951
  if (!i)
@@ -12914,7 +12987,7 @@ const zo = [
12914
12987
  } catch (u) {
12915
12988
  return console.error(u), [];
12916
12989
  }
12917
- }, Yo = async (r, t, e, a) => {
12990
+ }, Ko = async (r, t, e, a) => {
12918
12991
  var c;
12919
12992
  const n = e.data, i = a.option;
12920
12993
  if (!i)
@@ -12971,10 +13044,10 @@ const zo = [
12971
13044
  } catch (d) {
12972
13045
  return console.error(d), [];
12973
13046
  }
12974
- }, Jo = async (r, t, e) => {
13047
+ }, _o = async (r, t, e) => {
12975
13048
  const a = [], i = (() => {
12976
13049
  var c, d;
12977
- return t.type === P.ProductOverlay ? e || ((c = t.data.asset) == null ? void 0 : c.fileLink) || "" : ((d = t.data.asset) == null ? void 0 : d.fileLink) || "";
13050
+ return t.type === I.ProductOverlay ? e || ((c = t.data.asset) == null ? void 0 : c.fileLink) || "" : ((d = t.data.asset) == null ? void 0 : d.fileLink) || "";
12978
13051
  })(), o = (() => i.endsWith(".jpeg") || i.endsWith(".jpg") || i.endsWith(".png") ? M.Image : (i.endsWith(".svg"), M.Illustration))(), l = t.data.regions;
12979
13052
  if (o === "image")
12980
13053
  try {
@@ -12992,7 +13065,7 @@ const zo = [
12992
13065
  height: c.height,
12993
13066
  layer: c.layer,
12994
13067
  layerIndex: c.layerIndex,
12995
- productOverlay: t.type === P.ProductOverlay ? !0 : void 0,
13068
+ productOverlay: t.type === I.ProductOverlay ? !0 : void 0,
12996
13069
  scaleX: 1,
12997
13070
  scaleY: 1,
12998
13071
  rotation: c.rotation,
@@ -13031,14 +13104,14 @@ const zo = [
13031
13104
  scaleX: 1,
13032
13105
  scaleY: 1,
13033
13106
  rotation: A.rotation,
13034
- productOverlay: t.type === P.ProductOverlay ? !0 : void 0,
13107
+ productOverlay: t.type === I.ProductOverlay ? !0 : void 0,
13035
13108
  excludeFromExport: t.data.excludeFromPrint
13036
13109
  };
13037
13110
  a.push(new W(h, u));
13038
13111
  });
13039
13112
  }
13040
13113
  return a;
13041
- }, Ko = async (r, t, e, a) => {
13114
+ }, Xo = async (r, t, e, a) => {
13042
13115
  const n = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
13043
13116
  var w;
13044
13117
  const p = a.option;
@@ -13127,7 +13200,7 @@ const zo = [
13127
13200
  n.push(new W(C, f));
13128
13201
  }
13129
13202
  return n;
13130
- }, _o = (r, t) => r.conditions ? r.conditions.every((e) => {
13203
+ }, Zo = (r, t) => r.conditions ? r.conditions.every((e) => {
13131
13204
  const a = t[e.targetStepName];
13132
13205
  if (a && a.selectedVariants) {
13133
13206
  const n = a.selectedVariants;
@@ -13136,26 +13209,26 @@ const zo = [
13136
13209
  );
13137
13210
  }
13138
13211
  return !1;
13139
- }) : !0, Xo = async (r, t, e, a) => {
13212
+ }) : !0, tl = async (r, t, e, a) => {
13140
13213
  const n = [], i = {};
13141
13214
  for (const s of r) {
13142
13215
  const o = t.steps.find((l) => l.stepName === s.name);
13143
13216
  if (o)
13144
13217
  switch (o.type) {
13145
- case P.DigitalContent:
13218
+ case I.DigitalContent:
13146
13219
  n.push(
13147
- ...await Go(e, s, o)
13220
+ ...await Ho(e, s, o)
13148
13221
  );
13149
13222
  break;
13150
- case P.Frame:
13151
- case P.Photo:
13223
+ case I.Frame:
13224
+ case I.Photo:
13152
13225
  n.push(
13153
- ...await Wo(e, i, s, o)
13226
+ ...await jo(e, i, s, o)
13154
13227
  );
13155
13228
  break;
13156
- case P.Illustration:
13229
+ case I.Illustration:
13157
13230
  n.push(
13158
- ...await jo(
13231
+ ...await qo(
13159
13232
  e,
13160
13233
  i,
13161
13234
  s,
@@ -13163,40 +13236,40 @@ const zo = [
13163
13236
  )
13164
13237
  );
13165
13238
  break;
13166
- case P.Module:
13167
- n.push(...await Ho(e, s, o));
13239
+ case I.Module:
13240
+ n.push(...await Yo(e, s, o));
13168
13241
  break;
13169
- case P.Picture:
13242
+ case I.Picture:
13170
13243
  n.push(
13171
- ...await qo(e, i, s, o)
13244
+ ...await Jo(e, i, s, o)
13172
13245
  );
13173
13246
  break;
13174
- case P.Shape:
13247
+ case I.Shape:
13175
13248
  n.push(
13176
- ...await Yo(e, i, s, o)
13249
+ ...await Ko(e, i, s, o)
13177
13250
  );
13178
13251
  break;
13179
- case P.Text:
13252
+ case I.Text:
13180
13253
  n.push(
13181
- ...await Ko(e, i, s, o)
13254
+ ...await Xo(e, i, s, o)
13182
13255
  );
13183
13256
  break;
13184
13257
  }
13185
13258
  }
13186
13259
  for (const s of t.steps)
13187
- s.type !== P.SilentIllustration && s.type !== P.ProductOverlay || _o(s, i) && n.push(
13188
- ...await Jo(e, s, a)
13260
+ s.type !== I.SilentIllustration && s.type !== I.ProductOverlay || Zo(s, i) && n.push(
13261
+ ...await _o(e, s, a)
13189
13262
  );
13190
13263
  return n;
13191
13264
  };
13192
- class Zo {
13265
+ class el {
13193
13266
  constructor(t) {
13194
13267
  this.handleCompleteRender = null;
13195
13268
  const e = /* @__PURE__ */ new Map();
13196
13269
  t.forEach(
13197
13270
  (a) => e.set(
13198
13271
  a.id,
13199
- new al(
13272
+ new rl(
13200
13273
  a.id,
13201
13274
  a.name,
13202
13275
  this,
@@ -13222,15 +13295,15 @@ class Zo {
13222
13295
  return this.workflowManager;
13223
13296
  }
13224
13297
  }
13225
- const tl = () => new Promise((r, t) => {
13298
+ const al = () => new Promise((r, t) => {
13226
13299
  try {
13227
13300
  const a = gt().getContext("webgl2");
13228
13301
  r(!!a);
13229
13302
  } catch {
13230
13303
  r(!1);
13231
13304
  }
13232
- }), el = tl();
13233
- class al {
13305
+ }), nl = al();
13306
+ class rl {
13234
13307
  constructor(t, e, a, n, i) {
13235
13308
  this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new xn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n, this.getWorkflowManager = i;
13236
13309
  }
@@ -13286,10 +13359,10 @@ class al {
13286
13359
  return;
13287
13360
  }
13288
13361
  this.renderQueue.enqueue(
13289
- new nl(
13362
+ new il(
13290
13363
  this.getID(),
13291
13364
  a,
13292
- await el,
13365
+ await nl,
13293
13366
  () => {
13294
13367
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
13295
13368
  },
@@ -13299,7 +13372,7 @@ class al {
13299
13372
  );
13300
13373
  }
13301
13374
  }
13302
- class nl extends Fn {
13375
+ class il extends Fn {
13303
13376
  constructor(t, e, a, n, i, s) {
13304
13377
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = i, this.getWorkflowManager = s;
13305
13378
  }
@@ -13352,7 +13425,7 @@ class nl extends Fn {
13352
13425
  l = i.width, c = i.height;
13353
13426
  const d = Sa(t.layoutState.layout, e, {
13354
13427
  renderingConfiguration: {
13355
- purpose: Ht.ThreeD,
13428
+ purpose: jt.ThreeD,
13356
13429
  templatingContext: (m = (h = this.getWorkflowManager) == null ? void 0 : h.call(this)) == null ? void 0 : m.getTemplatingContext()
13357
13430
  }
13358
13431
  }), A = hn(d), u = await Aa.from(this.ctx, A, {
@@ -13370,27 +13443,27 @@ class nl extends Fn {
13370
13443
  u.resize(l, c), await u.render(), this.onRender();
13371
13444
  }
13372
13445
  }
13373
- const id = (r, t) => {
13446
+ const od = (r, t) => {
13374
13447
  const e = [];
13375
13448
  return r.forEach((a) => {
13376
13449
  const n = t.steps.find((i) => i.stepName === a.stepName);
13377
- (n == null ? void 0 : n.type) === P.Text && a.stepAspectType === "Text" && e.push({
13450
+ (n == null ? void 0 : n.type) === I.Text && a.stepAspectType === "Text" && e.push({
13378
13451
  name: n.stepName,
13379
13452
  data: {
13380
13453
  text: a.value
13381
13454
  }
13382
13455
  });
13383
13456
  }), e;
13384
- }, sd = async (r, t, e, a) => {
13457
+ }, ld = async (r, t, e, a) => {
13385
13458
  let n = {
13386
13459
  serializableWorkflow: { steps: [] },
13387
13460
  layouts: {}
13388
13461
  };
13389
13462
  n = new $(e.map((l) => new Ln(l))).apply(n);
13390
- const s = await Xo(r, t, e, a);
13463
+ const s = await tl(r, t, e, a);
13391
13464
  return new $(s).apply(n);
13392
13465
  };
13393
- class rl {
13466
+ class sl {
13394
13467
  constructor(t) {
13395
13468
  this.handleCache = {}, this.bundle = t;
13396
13469
  }
@@ -13435,7 +13508,7 @@ class rl {
13435
13508
  async createHandle(t) {
13436
13509
  switch (t.type) {
13437
13510
  case z.FileUpload:
13438
- return new il(this.bundle, t).initialize();
13511
+ return new ol(this.bundle, t).initialize();
13439
13512
  case z.ColorOption:
13440
13513
  return new Ja(
13441
13514
  this.bundle,
@@ -13447,7 +13520,7 @@ class rl {
13447
13520
  return (e == null ? void 0 : e.type) === "Color" ? new Ja(this.bundle, t, e) : new Zn(this.bundle, t, e);
13448
13521
  }
13449
13522
  case z.Text:
13450
- return new sl(this.bundle, t);
13523
+ return new ll(this.bundle, t);
13451
13524
  default:
13452
13525
  throw new Error("Unhandled Global Property Aspect Type");
13453
13526
  }
@@ -13508,7 +13581,7 @@ class Ia {
13508
13581
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
13509
13582
  }
13510
13583
  }
13511
- class il extends Ia {
13584
+ class ol extends Ia {
13512
13585
  constructor(t, e) {
13513
13586
  super(t, e);
13514
13587
  }
@@ -13745,7 +13818,7 @@ class il extends Ia {
13745
13818
  );
13746
13819
  }
13747
13820
  }
13748
- class sl extends Ia {
13821
+ class ll extends Ia {
13749
13822
  constructor(t, e) {
13750
13823
  super(t, e);
13751
13824
  }
@@ -13882,15 +13955,15 @@ class Ja extends Zn {
13882
13955
  async applyColorVariant(t, e, a) {
13883
13956
  const i = this.getSharedSteps(e).map((s) => {
13884
13957
  switch (s.getType()) {
13885
- case P.Shape:
13958
+ case I.Shape:
13886
13959
  return s.selectVariant(t);
13887
- case P.Text:
13960
+ case I.Text:
13888
13961
  return s.setFillColor({
13889
13962
  fill: t.getColor(),
13890
13963
  stroke: t.getColor(),
13891
13964
  variant: t.getResource()
13892
13965
  });
13893
- case P.Illustration:
13966
+ case I.Illustration:
13894
13967
  return s.setColor((a == null ? void 0 : a.toString()) || "", t.getColor() || "");
13895
13968
  }
13896
13969
  });
@@ -13910,12 +13983,12 @@ class Ja extends Zn {
13910
13983
  return ((t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)) == null ? void 0 : t.customColor) || ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) || "#ffffff";
13911
13984
  }
13912
13985
  }
13913
- const ol = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), ll = (r, t, e) => {
13914
- const n = ol(
13986
+ const cl = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), dl = (r, t, e) => {
13987
+ const n = cl(
13915
13988
  r,
13916
13989
  t,
13917
13990
  e,
13918
- P.Illustration
13991
+ I.Illustration
13919
13992
  ).map((i) => {
13920
13993
  var l;
13921
13994
  const s = (l = i.getCurrentVariant()) == null ? void 0 : l.getAssetResource(), o = i.getColors();
@@ -13923,7 +13996,7 @@ const ol = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlo
13923
13996
  });
13924
13997
  return Math.max(...n);
13925
13998
  };
13926
- class cl {
13999
+ class Al {
13927
14000
  constructor(t, e, a, n, i) {
13928
14001
  this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
13929
14002
  const s = i == null ? void 0 : i.existingGlobalPropertyState;
@@ -14099,7 +14172,7 @@ class cl {
14099
14172
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
14100
14173
  }
14101
14174
  }
14102
- class dl {
14175
+ class ul {
14103
14176
  constructor(t) {
14104
14177
  this.setState(t);
14105
14178
  }
@@ -14187,7 +14260,7 @@ class dl {
14187
14260
  };
14188
14261
  }
14189
14262
  }
14190
- const Al = v`
14263
+ const hl = v`
14191
14264
  query GetManyMetafields($entityIds: [String!]!) {
14192
14265
  metafieldsMany(entityIds: $entityIds) {
14193
14266
  id
@@ -14199,7 +14272,7 @@ const Al = v`
14199
14272
  }
14200
14273
  }
14201
14274
  `;
14202
- class ul {
14275
+ class ml {
14203
14276
  constructor() {
14204
14277
  this.internalMap = /* @__PURE__ */ new Map();
14205
14278
  }
@@ -14221,7 +14294,7 @@ class ul {
14221
14294
  if (t.every((a) => this.internalMap.has(a)))
14222
14295
  return;
14223
14296
  const e = await B.getShadowGraphqlClient().query({
14224
- query: Al,
14297
+ query: hl,
14225
14298
  errorPolicy: "all",
14226
14299
  variables: {
14227
14300
  entityIds: t.filter((a) => !this.internalMap.has(a))
@@ -14262,8 +14335,8 @@ class ul {
14262
14335
  return JSON.parse(n.value);
14263
14336
  }
14264
14337
  }
14265
- const hl = new ul();
14266
- var ml = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(ml || {});
14338
+ const gl = new ml();
14339
+ var pl = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(pl || {});
14267
14340
  class tr {
14268
14341
  constructor(t) {
14269
14342
  this.fullFetched = !1, this.collection = t;
@@ -14309,7 +14382,7 @@ class tr {
14309
14382
  if (this.fullFetched)
14310
14383
  return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
14311
14384
  const e = await B.getShadowGraphqlClient().query({
14312
- query: js,
14385
+ query: Hs,
14313
14386
  variables: {
14314
14387
  id: this.getId(),
14315
14388
  productIds: t
@@ -14326,7 +14399,7 @@ class tr {
14326
14399
  async filterProducts(t, e, a, n) {
14327
14400
  var l, c;
14328
14401
  const i = await B.getShadowGraphqlClient().query({
14329
- query: Hs,
14402
+ query: js,
14330
14403
  errorPolicy: "all",
14331
14404
  variables: {
14332
14405
  id: this.getId(),
@@ -14414,7 +14487,7 @@ class tr {
14414
14487
  }
14415
14488
  getTransformCollection() {
14416
14489
  if (this.collection.transformCollection)
14417
- return new gl(this.collection.transformCollection);
14490
+ return new fl(this.collection.transformCollection);
14418
14491
  }
14419
14492
  /**
14420
14493
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14486,12 +14559,12 @@ class de {
14486
14559
  if (e) {
14487
14560
  const a = t.find((n) => n.workflowName === e);
14488
14561
  if (a)
14489
- return new jt(a);
14562
+ return new Ht(a);
14490
14563
  }
14491
14564
  if (t.length === 1)
14492
14565
  return console.warn(
14493
14566
  "Called getDefaultWorkflow() but no default was configured. There is only one workflow available so we will fall back to using this!"
14494
- ), new jt(t[0]);
14567
+ ), new Ht(t[0]);
14495
14568
  throw new ut(
14496
14569
  "Called getDefaultWorkflow() but no default workflow is configured for the requested product. Multiple workflows exist so we can't assume!"
14497
14570
  );
@@ -14504,7 +14577,7 @@ class de {
14504
14577
  throw new ut(
14505
14578
  "No workflows on configured product. Ensure at least 1 workflow is assigned to this product."
14506
14579
  );
14507
- return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
14580
+ return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Ht(e));
14508
14581
  }
14509
14582
  /**
14510
14583
  * A list of all integrations this product is connected to.
@@ -14556,10 +14629,10 @@ class de {
14556
14629
  * @returns A map of metafield key to value. Any unavailable keys will not be present in the map. use map.has() to check if a key is present.
14557
14630
  */
14558
14631
  async requestMetafields(t) {
14559
- return hl.requestKeysForEntity(this.product.id, t);
14632
+ return gl.requestKeysForEntity(this.product.id, t);
14560
14633
  }
14561
14634
  }
14562
- class jt {
14635
+ class Ht {
14563
14636
  constructor(t) {
14564
14637
  this.workflow = t;
14565
14638
  }
@@ -14583,7 +14656,7 @@ class jt {
14583
14656
  return this.workflow.imageUrl;
14584
14657
  }
14585
14658
  }
14586
- class gl {
14659
+ class fl {
14587
14660
  constructor(t) {
14588
14661
  this.collection = t;
14589
14662
  }
@@ -14603,10 +14676,10 @@ class gl {
14603
14676
  * @returns The transforms in this collection.
14604
14677
  */
14605
14678
  getTransforms() {
14606
- return this.collection.transforms.map((t) => new pl(t));
14679
+ return this.collection.transforms.map((t) => new Cl(t));
14607
14680
  }
14608
14681
  }
14609
- class pl {
14682
+ class Cl {
14610
14683
  constructor(t) {
14611
14684
  this.transform = t;
14612
14685
  }
@@ -14633,24 +14706,24 @@ class pl {
14633
14706
  };
14634
14707
  }
14635
14708
  }
14636
- const fl = v`
14709
+ const wl = v`
14637
14710
  ${re(!1)}
14638
14711
  query GetProductCollections($ids: [String!]!) {
14639
14712
  productCollections(ids: $ids) {
14640
14713
  ...ProductCollectionFields
14641
14714
  }
14642
14715
  }
14643
- `, od = async (r) => {
14716
+ `, cd = async (r) => {
14644
14717
  var e, a;
14645
14718
  return (a = (e = (await B.getShadowGraphqlClient().query({
14646
- query: fl,
14719
+ query: wl,
14647
14720
  errorPolicy: "all",
14648
14721
  variables: {
14649
14722
  ids: r
14650
14723
  }
14651
14724
  })).data) == null ? void 0 : e.productCollections) == null ? void 0 : a.map((n) => new tr(n));
14652
14725
  };
14653
- class Cl {
14726
+ class yl {
14654
14727
  constructor() {
14655
14728
  this.listeners = {};
14656
14729
  }
@@ -14677,7 +14750,7 @@ class Cl {
14677
14750
  delete this.listeners[e];
14678
14751
  }
14679
14752
  }
14680
- const wl = v`
14753
+ const Sl = v`
14681
14754
  mutation AddAddressToBundle(
14682
14755
  $bundleId: String!
14683
14756
  $streetAddress: String
@@ -14699,13 +14772,13 @@ const wl = v`
14699
14772
  id
14700
14773
  }
14701
14774
  }
14702
- `, yl = v`
14775
+ `, vl = v`
14703
14776
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14704
14777
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14705
14778
  id
14706
14779
  }
14707
14780
  }
14708
- `, Sl = v`
14781
+ `, El = v`
14709
14782
  mutation GenerateQuoteId($id: String!) {
14710
14783
  bundleGenerateQuoteId(id: $id) {
14711
14784
  id
@@ -14716,15 +14789,15 @@ const wl = v`
14716
14789
  class Je {
14717
14790
  constructor(t, e, a, n, i, s) {
14718
14791
  var c, d, A;
14719
- this.workflowExperiences = [], this.eventEmitter = new Cl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new dl(e.bundleStateData);
14792
+ this.workflowExperiences = [], this.eventEmitter = new yl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new ul(e.bundleStateData);
14720
14793
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14721
- this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new cl(
14794
+ this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new Al(
14722
14795
  this.id,
14723
14796
  this.ownerId,
14724
14797
  o,
14725
14798
  this.checkConditionalHandlesChanged.bind(this),
14726
14799
  s
14727
- ), this.globalPropertyHandleService = new rl(this), this.setPreviewService(a);
14800
+ ), this.globalPropertyHandleService = new sl(this), this.setPreviewService(a);
14728
14801
  const l = new Promise((u, h) => {
14729
14802
  if (s != null && s.readonly) {
14730
14803
  u([]);
@@ -14759,7 +14832,7 @@ class Je {
14759
14832
  async generateQuoteId() {
14760
14833
  var a, n;
14761
14834
  const e = (n = (a = (await B.getShadowGraphqlClient().mutate({
14762
- mutation: Sl,
14835
+ mutation: El,
14763
14836
  variables: {
14764
14837
  id: this.id
14765
14838
  },
@@ -14771,7 +14844,7 @@ class Je {
14771
14844
  }
14772
14845
  async attachAddress(t, e, a, n, i, s) {
14773
14846
  await B.getShadowGraphqlClient().mutate({
14774
- mutation: wl,
14847
+ mutation: Sl,
14775
14848
  variables: {
14776
14849
  bundleId: this.id,
14777
14850
  streetAddress: t || void 0,
@@ -14788,7 +14861,7 @@ class Je {
14788
14861
  }
14789
14862
  async attachOrganization(t) {
14790
14863
  await B.getShadowGraphqlClient().mutate({
14791
- mutation: yl,
14864
+ mutation: vl,
14792
14865
  variables: {
14793
14866
  bundleId: this.id,
14794
14867
  organizationName: t
@@ -14921,14 +14994,14 @@ class Je {
14921
14994
  }
14922
14995
  async initializeAdditionalRequiredColorChannels(t) {
14923
14996
  var e, a, n, i;
14924
- for (const s of t.getStepsByType(P.Illustration)) {
14997
+ for (const s of t.getStepsByType(I.Illustration)) {
14925
14998
  const o = s.getGlobalPropertyAspects(this.globalConfigurationPropertyId || "");
14926
14999
  for (const l of o) {
14927
15000
  const c = (e = this.getGlobalPropertyConfiguration()) == null ? void 0 : e.aspects.find(
14928
15001
  (d) => d.name === l
14929
15002
  );
14930
15003
  if (c && c.type === z.ColorOption) {
14931
- const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = ll(
15004
+ const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = dl(
14932
15005
  this.getWorkflowExperiences(),
14933
15006
  this.globalConfigurationPropertyId || "",
14934
15007
  l
@@ -15438,14 +15511,14 @@ class Je {
15438
15511
  };
15439
15512
  }
15440
15513
  }
15441
- const vl = v`
15514
+ const bl = v`
15442
15515
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15443
15516
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15444
15517
  id
15445
15518
  }
15446
15519
  }
15447
15520
  `;
15448
- class El {
15521
+ class Bl {
15449
15522
  /**
15450
15523
  *
15451
15524
  * @param id
@@ -15456,7 +15529,7 @@ class El {
15456
15529
  async execute(t, e, a) {
15457
15530
  var A, u, h;
15458
15531
  const i = (u = (A = (await B.getShadowGraphqlClient().mutate({
15459
- mutation: vl,
15532
+ mutation: bl,
15460
15533
  variables: {
15461
15534
  processFlowId: t,
15462
15535
  inputs: [...e.map((m) => m.getValueForTransmission())]
@@ -15498,7 +15571,7 @@ class El {
15498
15571
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15499
15572
  );
15500
15573
  if (m.completedAt) {
15501
- o = !0, d = new bl(m);
15574
+ o = !0, d = new Il(m);
15502
15575
  break;
15503
15576
  }
15504
15577
  l += 1;
@@ -15512,7 +15585,7 @@ class El {
15512
15585
  return Promise.resolve(d);
15513
15586
  }
15514
15587
  }
15515
- class bl {
15588
+ class Il {
15516
15589
  constructor(t) {
15517
15590
  this.execution = t;
15518
15591
  }
@@ -15597,8 +15670,8 @@ class Pa {
15597
15670
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15598
15671
  }
15599
15672
  }
15600
- 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 || {});
15601
- class ld extends Pa {
15673
+ var Pl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(Pl || {});
15674
+ class dd extends Pa {
15602
15675
  constructor(t) {
15603
15676
  super(`"${t}"`);
15604
15677
  }
@@ -15613,7 +15686,7 @@ class er extends Pa {
15613
15686
  return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
15614
15687
  }
15615
15688
  }
15616
- class cd extends Pa {
15689
+ class Ad extends Pa {
15617
15690
  constructor(t) {
15618
15691
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15619
15692
  }
@@ -15647,7 +15720,7 @@ class Ka {
15647
15720
  throw new Error(
15648
15721
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
15649
15722
  );
15650
- return new jt(t[0]);
15723
+ return new Ht(t[0]);
15651
15724
  }
15652
15725
  getAllWorkflows() {
15653
15726
  if (!this.integrationProduct.product)
@@ -15657,7 +15730,7 @@ class Ka {
15657
15730
  throw new Error(
15658
15731
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
15659
15732
  );
15660
- return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
15733
+ return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Ht(e));
15661
15734
  }
15662
15735
  }
15663
15736
  const ue = v`
@@ -15671,7 +15744,7 @@ const ue = v`
15671
15744
  }
15672
15745
  }
15673
15746
  }
15674
- `, Il = v`
15747
+ `, Dl = v`
15675
15748
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15676
15749
  customerCreate(details: $details) {
15677
15750
  id
@@ -15713,7 +15786,7 @@ v`
15713
15786
  }
15714
15787
  }
15715
15788
  `;
15716
- const Pl = v`
15789
+ const Fl = v`
15717
15790
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15718
15791
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15719
15792
  }
@@ -15750,7 +15823,7 @@ v`
15750
15823
  }
15751
15824
  }
15752
15825
  `;
15753
- const Dl = v`
15826
+ const xl = v`
15754
15827
  query CustomerMetafields($id: String!) {
15755
15828
  metafields(entityId: $id) {
15756
15829
  id
@@ -15769,7 +15842,7 @@ const Dl = v`
15769
15842
  }
15770
15843
  }
15771
15844
  `;
15772
- class Fl {
15845
+ class kl {
15773
15846
  constructor(t, e = B.getShadowGraphqlClient.bind(B)) {
15774
15847
  this.options = t, this.client = e;
15775
15848
  }
@@ -15798,7 +15871,7 @@ class Fl {
15798
15871
  });
15799
15872
  }
15800
15873
  }
15801
- class xl {
15874
+ class Ml {
15802
15875
  init(t, e, a) {
15803
15876
  this.cognitoClient = new Cr({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15804
15877
  }
@@ -15850,8 +15923,8 @@ class xl {
15850
15923
  ));
15851
15924
  }
15852
15925
  }
15853
- const Lt = new xl();
15854
- class kl {
15926
+ const Lt = new Ml();
15927
+ class Tl {
15855
15928
  /**
15856
15929
  * Returns a formatted string representing a given amount with desired currency.
15857
15930
  * @param currency The currency to represent the amount in.
@@ -15885,8 +15958,8 @@ class kl {
15885
15958
  return "USD0,0";
15886
15959
  }
15887
15960
  }
15888
- const _a = new kl();
15889
- class Ml {
15961
+ const _a = new Tl();
15962
+ class Nl {
15890
15963
  constructor(t, e, a, n) {
15891
15964
  this.presentmentCurrency = void 0, this.presentmentCurrency = n, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
15892
15965
  }
@@ -15926,7 +15999,7 @@ class Ml {
15926
15999
  return t * Math.pow(10, _a.getPrecisionForCurrency(e));
15927
16000
  }
15928
16001
  }
15929
- const Tl = async (r, t) => {
16002
+ const Ql = async (r, t) => {
15930
16003
  var n;
15931
16004
  const e = await B.getShadowGraphqlClient().query({
15932
16005
  query: Ti(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
@@ -15950,7 +16023,7 @@ const Tl = async (r, t) => {
15950
16023
  }), Jt.set({ id: s.option.id }, Promise.resolve(s.option)));
15951
16024
  }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
15952
16025
  }), a;
15953
- }, Nl = async (r, t) => {
16026
+ }, Rl = async (r, t) => {
15954
16027
  const a = (await t).find((n) => n.id === r);
15955
16028
  if (!a)
15956
16029
  throw new Error(`Workflow not found: ${r}`);
@@ -15959,11 +16032,11 @@ const Tl = async (r, t) => {
15959
16032
  const e = r.map((o) => Jt.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
15960
16033
  if (a.length === 0)
15961
16034
  return Promise.all(e);
15962
- const n = Tl(a, t), i = a.map(
15963
- (o) => Jt.set({ id: o, options: t }, Nl(o, n))
16035
+ const n = Ql(a, t), i = a.map(
16036
+ (o) => Jt.set({ id: o, options: t }, Rl(o, n))
15964
16037
  ), s = e.filter((o) => o !== void 0);
15965
16038
  return await Promise.all(s.concat(i));
15966
- }, dd = async (r, t) => (await ar([r], t))[0], Ql = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
16039
+ }, ud = async (r, t) => (await ar([r], t))[0], Ol = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15967
16040
  id: Q(),
15968
16041
  panelId: t.name,
15969
16042
  name: t.name,
@@ -15977,11 +16050,11 @@ const Tl = async (r, t) => {
15977
16050
  previewRegion: t.previewRegion,
15978
16051
  useEditableArea: t.useEditableArea,
15979
16052
  editableArea: t.editableArea
15980
- })), Rl = (r, t) => {
16053
+ })), $l = (r, t) => {
15981
16054
  const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
15982
- return a ? Object.values(a.layouts).map((n) => n.layout) : Ql(t.panels);
16055
+ return a ? Object.values(a.layouts).map((n) => n.layout) : Ol(t.panels);
15983
16056
  };
15984
- class Ad {
16057
+ class hd {
15985
16058
  constructor(t) {
15986
16059
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15987
16060
  try {
@@ -15992,7 +16065,7 @@ class Ad {
15992
16065
  } catch (a) {
15993
16066
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15994
16067
  }
15995
- }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16068
+ }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.0.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15996
16069
  }
15997
16070
  configure(t) {
15998
16071
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16007,7 +16080,7 @@ class Ad {
16007
16080
  getFlowService() {
16008
16081
  if (!Ur())
16009
16082
  throw new Error("Application key required to use Flow Service.");
16010
- return new El();
16083
+ return new Bl();
16011
16084
  }
16012
16085
  async getCurrencyContext(t) {
16013
16086
  const a = (await this.getIntegration()).partner.currencyCode, i = await B.getShadowGraphqlClient().query({
@@ -16019,14 +16092,14 @@ class Ad {
16019
16092
  to: t
16020
16093
  }
16021
16094
  }), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
16022
- return new Ml(s, o, a, t);
16095
+ return new Nl(s, o, a, t);
16023
16096
  }
16024
16097
  async getIntegration() {
16025
16098
  if (this.activeIntegration)
16026
16099
  return this.activeIntegration;
16027
16100
  if (!this.options.applicationKey)
16028
16101
  throw new Error("Cannot get current Integration without specifying an Application Key.");
16029
- return this.activeIntegration = Ol(this.options.applicationKey), this.activeIntegration;
16102
+ return this.activeIntegration = Ul(this.options.applicationKey), this.activeIntegration;
16030
16103
  }
16031
16104
  async canUseAddon(t) {
16032
16105
  var e;
@@ -16172,7 +16245,7 @@ class Ad {
16172
16245
  })).data.customer;
16173
16246
  if (!n.id) {
16174
16247
  const l = (s = (await e.mutate({
16175
- mutation: Il,
16248
+ mutation: Dl,
16176
16249
  errorPolicy: "all",
16177
16250
  fetchPolicy: "no-cache",
16178
16251
  variables: {
@@ -16230,7 +16303,7 @@ class Ad {
16230
16303
  */
16231
16304
  async generateVerificationCode(t) {
16232
16305
  await B.getShadowGraphqlClient().mutate({
16233
- mutation: Pl,
16306
+ mutation: Fl,
16234
16307
  variables: {
16235
16308
  emailAddress: t
16236
16309
  }
@@ -16286,7 +16359,7 @@ class Ad {
16286
16359
  if (!((e = this.customer) != null && e.id))
16287
16360
  throw new Error("Customer must be logged in before calling this function.");
16288
16361
  return (await B.getShadowGraphqlClient().query({
16289
- query: Dl,
16362
+ query: xl,
16290
16363
  variables: {
16291
16364
  id: this.customer.id
16292
16365
  }
@@ -16328,7 +16401,7 @@ class Ad {
16328
16401
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16329
16402
  */
16330
16403
  async getExistingBundle(t, e, a, n) {
16331
- var m, g, p, f, C, w, S, y, E, b, I;
16404
+ var m, g, p, f, C, w, S, y, E, b, P;
16332
16405
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
16333
16406
  try {
16334
16407
  const D = await this.loggedInBearerToken();
@@ -16357,7 +16430,7 @@ class Ad {
16357
16430
  A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
16358
16431
  const u = new Je(this, d, e, a, s, {
16359
16432
  additionalHeaders: (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.additionalHeaders,
16360
- eagerFetchProducts: (I = (b = n == null ? void 0 : n.graphql) == null ? void 0 : b.productCollection) == null ? void 0 : I.eagerFetchProducts,
16433
+ eagerFetchProducts: (P = (b = n == null ? void 0 : n.graphql) == null ? void 0 : b.productCollection) == null ? void 0 : P.eagerFetchProducts,
16361
16434
  existingGlobalPropertyState: c.data.globalPropertyState,
16362
16435
  readonly: n == null ? void 0 : n.readonly
16363
16436
  });
@@ -16492,12 +16565,12 @@ class Ad {
16492
16565
  },
16493
16566
  errorPolicy: "all",
16494
16567
  fetchPolicy: "no-cache"
16495
- }), I = b.data.transactions;
16496
- if (I.length !== y.length) {
16568
+ }), P = b.data.transactions;
16569
+ if (P.length !== y.length) {
16497
16570
  const T = ((F = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16498
16571
  throw new ut(`Not all transactions were found: ${T}`);
16499
16572
  }
16500
- return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((T, Z) => {
16573
+ return !this.activeIntegration && ((k = P[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(P[0].integrationProduct.integration)), P.map((T, Z) => {
16501
16574
  var R;
16502
16575
  return {
16503
16576
  transaction: T,
@@ -16507,7 +16580,7 @@ class Ad {
16507
16580
  };
16508
16581
  });
16509
16582
  }, i = async (y) => {
16510
- var I, D, F;
16583
+ var P, D, F;
16511
16584
  if (y.length === 0)
16512
16585
  return [];
16513
16586
  const E = await a.mutate({
@@ -16526,7 +16599,7 @@ class Ad {
16526
16599
  },
16527
16600
  errorPolicy: "all",
16528
16601
  fetchPolicy: "no-cache"
16529
- }), b = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16602
+ }), b = (P = E.data) == null ? void 0 : P.transactionCreateMany;
16530
16603
  if (!b || b.length === 0) {
16531
16604
  const k = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16532
16605
  throw new ut(`Failed to create transactions: ${k}`);
@@ -16544,9 +16617,9 @@ class Ad {
16544
16617
  ...d.map(i)
16545
16618
  ])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await ar(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
16546
16619
  var et;
16547
- const { transaction: E, workflowId: b, readOnly: I, index: D } = y, F = m.get(b), k = t[D];
16620
+ const { transaction: E, workflowId: b, readOnly: P, index: D } = y, F = m.get(b), k = t[D];
16548
16621
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16549
- const T = g.get(E.id) || void 0, Z = new Fl({
16622
+ const T = g.get(E.id) || void 0, Z = new kl({
16550
16623
  onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
16551
16624
  onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
16552
16625
  }), R = {
@@ -16554,33 +16627,33 @@ class Ad {
16554
16627
  transaction: E,
16555
16628
  layouts: [],
16556
16629
  singleVariantsRenderable: (et = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : et.singleVariantsRenderable,
16557
- stateMutationFunc: I ? async () => {
16630
+ stateMutationFunc: P ? async () => {
16558
16631
  throw new G("State mutation is forbidden in read only mode!");
16559
16632
  } : async (tt) => this.updateTransactionState({
16560
16633
  ...tt,
16561
16634
  context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
16562
16635
  }),
16563
16636
  graphQlClient: () => Z,
16564
- readOnly: I,
16637
+ readOnly: P,
16565
16638
  workflow: F,
16566
16639
  isReloadedTransaction: k.type === "transaction"
16567
16640
  };
16568
- if (!I && k.workflowState) {
16641
+ if (!P && k.workflowState) {
16569
16642
  const tt = JSON.parse(k.workflowState);
16570
16643
  R.layouts = Object.values(tt.layouts || {}).map((Nt) => Nt.layout), await cs(tt), R.reloadedState = tt;
16571
16644
  } else
16572
- R.layouts = Rl(
16645
+ R.layouts = $l(
16573
16646
  R.transaction,
16574
16647
  R.workflow
16575
16648
  );
16576
- return R.renderableContextService = new Zo(
16649
+ return R.renderableContextService = new el(
16577
16650
  R.layouts
16578
16651
  ), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
16579
16652
  }), f = await Promise.all(p);
16580
16653
  N.setMap("transactionOwnerIds", g);
16581
16654
  const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
16582
- const { experienceOptions: E, options: b } = y, I = new Vo(this, E);
16583
- return await I.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16655
+ const { experienceOptions: E, options: b } = y, P = new Vo(this, E);
16656
+ return await P.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await P.attachCustomerDetails({ email: this.customer.emailAddress }), P;
16584
16657
  }), S = await Promise.all(w);
16585
16658
  return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
16586
16659
  }
@@ -16653,7 +16726,7 @@ class Ad {
16653
16726
  };
16654
16727
  }
16655
16728
  }
16656
- const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16729
+ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16657
16730
  query: Oi,
16658
16731
  errorPolicy: "all",
16659
16732
  fetchPolicy: "no-cache",
@@ -16665,7 +16738,7 @@ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16665
16738
  variables: {
16666
16739
  themeConfigurationId: t
16667
16740
  }
16668
- })).data.currentIntegration, ud = async (r) => {
16741
+ })).data.currentIntegration, md = async (r) => {
16669
16742
  const e = await B.getShadowGraphqlClient().query({
16670
16743
  query: Ei,
16671
16744
  errorPolicy: "all",
@@ -16676,7 +16749,7 @@ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16676
16749
  });
16677
16750
  if (e.data.transactions.length !== 0)
16678
16751
  return e.data.transactions[0];
16679
- }, hd = async (r, t) => {
16752
+ }, gd = async (r, t) => {
16680
16753
  var a;
16681
16754
  return (a = (await B.getShadowGraphqlClient().query({
16682
16755
  query: Ri,
@@ -16686,7 +16759,7 @@ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16686
16759
  themeInstallId: t
16687
16760
  }
16688
16761
  })).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
16689
- }, md = async (r) => {
16762
+ }, pd = async (r) => {
16690
16763
  var e, a, n;
16691
16764
  return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16692
16765
  query: Ui,
@@ -16695,7 +16768,7 @@ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16695
16768
  id: r
16696
16769
  }
16697
16770
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16698
- }, gd = async (r) => {
16771
+ }, fd = async (r) => {
16699
16772
  var e, a, n;
16700
16773
  return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16701
16774
  query: $i,
@@ -16705,7 +16778,7 @@ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16705
16778
  }
16706
16779
  })).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16707
16780
  };
16708
- function $l(r, t, e, a) {
16781
+ function Ll(r, t, e, a) {
16709
16782
  const n = e.width * r.zoom, i = e.height * r.zoom;
16710
16783
  if (a) {
16711
16784
  const o = r, l = Math.max(t.width / e.width, t.height / e.height);
@@ -16719,7 +16792,7 @@ function $l(r, t, e, a) {
16719
16792
  function he(r, t, e) {
16720
16793
  return Math.min(Math.max(r, t), e);
16721
16794
  }
16722
- class Ul {
16795
+ class Vl {
16723
16796
  constructor(t, e) {
16724
16797
  this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = cn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16725
16798
  useThreshold: !1,
@@ -16862,7 +16935,7 @@ class Ul {
16862
16935
  return;
16863
16936
  }
16864
16937
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
16865
- this.offsets[o] = $l(t[o], s, this.imageData, this.forceImageCover);
16938
+ this.offsets[o] = Ll(t[o], s, this.imageData, this.forceImageCover);
16866
16939
  }), this._debouncedUpdateFrameOffsets(
16867
16940
  this.offsets,
16868
16941
  n,
@@ -16941,7 +17014,7 @@ class Ul {
16941
17014
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
16942
17015
  }
16943
17016
  }
16944
- class pd {
17017
+ class Cd {
16945
17018
  updateRecipient(t, e, a, n, i, s, o, l, c, d) {
16946
17019
  throw new Error("Method not implemented.");
16947
17020
  }
@@ -17103,12 +17176,12 @@ class pd {
17103
17176
  return [];
17104
17177
  }
17105
17178
  }
17106
- var Ll = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(Ll || {});
17107
- class Vl extends it {
17179
+ var zl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(zl || {});
17180
+ class Gl extends it {
17108
17181
  constructor(t, e, a) {
17109
17182
  super(t, e, a);
17110
17183
  const n = e.data;
17111
- this.frameService = new Ul(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17184
+ this.frameService = new Vl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17112
17185
  }
17113
17186
  selectVariant(t) {
17114
17187
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -17277,7 +17350,7 @@ class Vl extends it {
17277
17350
  return this.manager.getStepStorage(this.step.stepName);
17278
17351
  }
17279
17352
  }
17280
- const zl = v`
17353
+ const Wl = v`
17281
17354
  query GetLoggedInCustomer($email: String!) {
17282
17355
  customer(emailAddress: $email) {
17283
17356
  id
@@ -17320,21 +17393,21 @@ const zl = v`
17320
17393
  total
17321
17394
  }
17322
17395
  }
17323
- `, Gl = v`
17396
+ `, Hl = v`
17324
17397
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17325
17398
  transactionUpdate(id: $id, designName: $name) {
17326
17399
  id
17327
17400
  designName
17328
17401
  }
17329
17402
  }
17330
- `, Wl = v`
17403
+ `, jl = v`
17331
17404
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17332
17405
  transactionDuplicate(id: $id, template: $template) {
17333
17406
  id
17334
17407
  workflowViewerLink
17335
17408
  }
17336
17409
  }
17337
- `, jl = v`
17410
+ `, ql = v`
17338
17411
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17339
17412
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17340
17413
  items {
@@ -17349,7 +17422,7 @@ const zl = v`
17349
17422
  total
17350
17423
  }
17351
17424
  }
17352
- `, Hl = v`
17425
+ `, Yl = v`
17353
17426
  query GetTransactionsForBundle($id: String!) {
17354
17427
  bundles(ids: [$id]) {
17355
17428
  id
@@ -17370,21 +17443,21 @@ const zl = v`
17370
17443
  }
17371
17444
  }
17372
17445
  }
17373
- `, ql = v`
17446
+ `, Jl = v`
17374
17447
  mutation SetBundleName($id: String!, $name: String!) {
17375
17448
  bundleUpdate(id: $id, name: $name) {
17376
17449
  id
17377
17450
  name
17378
17451
  }
17379
17452
  }
17380
- `, Yl = v`
17453
+ `, Kl = v`
17381
17454
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17382
17455
  bundleDuplicate(id: $id, template: $template) {
17383
17456
  id
17384
17457
  workflowViewerLink
17385
17458
  }
17386
17459
  }
17387
- `, Jl = v`
17460
+ `, _l = v`
17388
17461
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17389
17462
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17390
17463
  items {
@@ -17397,43 +17470,43 @@ const zl = v`
17397
17470
  total
17398
17471
  }
17399
17472
  }
17400
- `, fd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17401
- mutation: ql,
17473
+ `, wd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17474
+ mutation: Jl,
17402
17475
  errorPolicy: "all",
17403
17476
  variables: {
17404
17477
  id: r,
17405
17478
  name: t
17406
17479
  },
17407
17480
  context: e
17408
- }), Cd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17409
- mutation: Gl,
17481
+ }), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17482
+ mutation: Hl,
17410
17483
  errorPolicy: "all",
17411
17484
  variables: {
17412
17485
  id: r,
17413
17486
  name: t
17414
17487
  }
17415
- }), wd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17416
- mutation: Yl,
17488
+ }), Sd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17489
+ mutation: Kl,
17417
17490
  errorPolicy: "all",
17418
17491
  variables: {
17419
17492
  id: r,
17420
17493
  template: t
17421
17494
  }
17422
- }), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17423
- mutation: Wl,
17495
+ }), vd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17496
+ mutation: jl,
17424
17497
  errorPolicy: "all",
17425
17498
  variables: {
17426
17499
  id: r,
17427
17500
  template: t
17428
17501
  }
17429
- }), Sd = async (r) => (await B.getShadowGraphqlClient().query({
17430
- query: zl,
17502
+ }), Ed = async (r) => (await B.getShadowGraphqlClient().query({
17503
+ query: Wl,
17431
17504
  errorPolicy: "all",
17432
17505
  variables: {
17433
17506
  email: r
17434
17507
  }
17435
- })).data.customer, vd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17436
- query: jl,
17508
+ })).data.customer, bd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17509
+ query: ql,
17437
17510
  errorPolicy: "all",
17438
17511
  fetchPolicy: "no-cache",
17439
17512
  variables: {
@@ -17441,15 +17514,15 @@ const zl = v`
17441
17514
  offset: e,
17442
17515
  limit: t
17443
17516
  }
17444
- }), Ed = async (r, t) => await B.getShadowGraphqlClient().query({
17445
- query: Hl,
17517
+ }), Bd = async (r, t) => await B.getShadowGraphqlClient().query({
17518
+ query: Yl,
17446
17519
  errorPolicy: "all",
17447
17520
  fetchPolicy: "no-cache",
17448
17521
  variables: {
17449
17522
  id: r
17450
17523
  },
17451
17524
  context: t
17452
- }), bd = async (r, t, e) => {
17525
+ }), Id = async (r, t, e) => {
17453
17526
  var n;
17454
17527
  const a = await B.getShadowGraphqlClient().query({
17455
17528
  query: Da,
@@ -17473,7 +17546,7 @@ const zl = v`
17473
17546
  }
17474
17547
  });
17475
17548
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17476
- }, Bd = async (r, t, e) => {
17549
+ }, Pd = async (r, t, e) => {
17477
17550
  var n;
17478
17551
  const a = await B.getShadowGraphqlClient().query({
17479
17552
  query: Da,
@@ -17497,7 +17570,7 @@ const zl = v`
17497
17570
  }
17498
17571
  });
17499
17572
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17500
- }, Id = async (r, t, e) => {
17573
+ }, Dd = async (r, t, e) => {
17501
17574
  var n;
17502
17575
  const a = await B.getShadowGraphqlClient().query({
17503
17576
  query: Da,
@@ -17517,10 +17590,10 @@ const zl = v`
17517
17590
  }
17518
17591
  });
17519
17592
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17520
- }, Pd = async (r, t, e) => {
17593
+ }, Fd = async (r, t, e) => {
17521
17594
  var n;
17522
17595
  const a = await B.getShadowGraphqlClient().query({
17523
- query: Jl,
17596
+ query: _l,
17524
17597
  errorPolicy: "all",
17525
17598
  fetchPolicy: "no-cache",
17526
17599
  variables: {
@@ -17541,7 +17614,7 @@ const zl = v`
17541
17614
  console.error("vite-plugin-css-injected-by-js", t);
17542
17615
  }
17543
17616
  })();
17544
- var Kl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Kl || {}), _l = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(_l || {}), K;
17617
+ var Xl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Xl || {}), Zl = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(Zl || {}), K;
17545
17618
  K = { __e: function(r, t, e, a) {
17546
17619
  for (var n, i, s; t = t.__; )
17547
17620
  if ((n = t.__c) && !n.__)
@@ -17554,7 +17627,7 @@ K = { __e: function(r, t, e, a) {
17554
17627
  throw r;
17555
17628
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17556
17629
  var ot, Ke, Xa, nr = [], _e = [], Za = K.__b, tn = K.__r, en = K.diffed, an = K.__c, nn = K.unmount;
17557
- function Xl() {
17630
+ function tc() {
17558
17631
  for (var r; r = nr.shift(); )
17559
17632
  if (r.__P && r.__H)
17560
17633
  try {
@@ -17574,7 +17647,7 @@ K.__b = function(r) {
17574
17647
  }, K.diffed = function(r) {
17575
17648
  en && en(r);
17576
17649
  var t = r.__c;
17577
- t && t.__H && (t.__H.__h.length && (nr.push(t) !== 1 && Xa === K.requestAnimationFrame || ((Xa = K.requestAnimationFrame) || Zl)(Xl)), t.__H.__.forEach(function(e) {
17650
+ t && t.__H && (t.__H.__h.length && (nr.push(t) !== 1 && Xa === K.requestAnimationFrame || ((Xa = K.requestAnimationFrame) || ec)(tc)), t.__H.__.forEach(function(e) {
17578
17651
  e.i && (e.__H = e.i), e.__V !== _e && (e.__ = e.__V), e.i = void 0, e.__V = _e;
17579
17652
  })), Ke = ot = null;
17580
17653
  }, K.__c = function(r, t) {
@@ -17601,7 +17674,7 @@ K.__b = function(r) {
17601
17674
  }), e.__H = void 0, t && K.__e(t, e.__v));
17602
17675
  };
17603
17676
  var rn = typeof requestAnimationFrame == "function";
17604
- function Zl(r) {
17677
+ function ec(r) {
17605
17678
  var t, e = function() {
17606
17679
  clearTimeout(a), rn && cancelAnimationFrame(t), setTimeout(r);
17607
17680
  }, a = setTimeout(e, 100);
@@ -17649,14 +17722,14 @@ const rr = v`
17649
17722
  ...AddressValidationResultFields
17650
17723
  }
17651
17724
  }
17652
- `, tc = v`
17725
+ `, ac = v`
17653
17726
  ${Fa}
17654
17727
  query GetAddressValidationJobs($ids: [String!]!) {
17655
17728
  addressValidationJobs(ids: $ids) {
17656
17729
  ...AddressValidationJobFields
17657
17730
  }
17658
17731
  }
17659
- `, ec = v`
17732
+ `, nc = v`
17660
17733
  ${Fa}
17661
17734
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17662
17735
  recipients(ids: $ids) {
@@ -17666,14 +17739,14 @@ const rr = v`
17666
17739
  }
17667
17740
  }
17668
17741
  }
17669
- `, ac = v`
17742
+ `, rc = v`
17670
17743
  ${rr}
17671
17744
  mutation ValidateRecipientAddress($id: String!) {
17672
17745
  recipientValidate(id: $id) {
17673
17746
  ...AddressValidationResultFields
17674
17747
  }
17675
17748
  }
17676
- `, nc = v`
17749
+ `, ic = v`
17677
17750
  ${Fa}
17678
17751
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17679
17752
  recipientValidateBatch(ids: $ids) {
@@ -17681,13 +17754,13 @@ const rr = v`
17681
17754
  }
17682
17755
  }
17683
17756
  `;
17684
- var rc = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(rc || {}), ic = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(ic || {});
17685
- const Dd = async (r) => {
17757
+ var sc = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(sc || {}), oc = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(oc || {});
17758
+ const xd = async (r) => {
17686
17759
  const t = r.map((a) => {
17687
17760
  var n;
17688
17761
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17689
17762
  }).filter((a) => !!a), e = await B.getShadowGraphqlClient().query({
17690
- query: ec,
17763
+ query: nc,
17691
17764
  errorPolicy: "all",
17692
17765
  fetchPolicy: "network-only",
17693
17766
  variables: {
@@ -17700,32 +17773,32 @@ const Dd = async (r) => {
17700
17773
  if (n)
17701
17774
  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;
17702
17775
  });
17703
- }, Fd = async (r) => {
17776
+ }, kd = async (r) => {
17704
17777
  var e;
17705
17778
  return (e = (await B.getShadowGraphqlClient().query({
17706
- query: tc,
17779
+ query: ac,
17707
17780
  errorPolicy: "all",
17708
17781
  fetchPolicy: "network-only",
17709
17782
  variables: {
17710
17783
  ids: r
17711
17784
  }
17712
17785
  })).data) == null ? void 0 : e.addressValidationJobs;
17713
- }, xd = async (r) => {
17786
+ }, Md = async (r) => {
17714
17787
  var e, a;
17715
17788
  return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await B.getShadowGraphqlClient().mutate({
17716
- mutation: ac,
17789
+ mutation: rc,
17717
17790
  errorPolicy: "all",
17718
17791
  fetchPolicy: "network-only",
17719
17792
  variables: {
17720
17793
  id: r.getWorkflowManager().getTransaction().recipient.id
17721
17794
  }
17722
17795
  })).data) == null ? void 0 : a.recipientValidate : void 0;
17723
- }, kd = async (r) => {
17796
+ }, Td = async (r) => {
17724
17797
  const t = r.map((a) => {
17725
17798
  var n;
17726
17799
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17727
17800
  }).filter((a) => !!a), e = await B.getShadowGraphqlClient().mutate({
17728
- mutation: nc,
17801
+ mutation: ic,
17729
17802
  errorPolicy: "all",
17730
17803
  fetchPolicy: "network-only",
17731
17804
  variables: {
@@ -17741,39 +17814,39 @@ const Dd = async (r) => {
17741
17814
  };
17742
17815
  export {
17743
17816
  ua as AddonHandle,
17744
- ic as AddressValidationJobStatus,
17745
- rc as AddressValidationResultConfirmationLevel,
17746
- cd as ArrayInput,
17817
+ oc as AddressValidationJobStatus,
17818
+ sc as AddressValidationResultConfirmationLevel,
17819
+ Ad as ArrayInput,
17747
17820
  z as AspectType,
17748
17821
  St as AssetNotFoundError,
17749
17822
  Ce as AssetType,
17750
- ad as BringForwardCommand,
17751
- ed as BringToBackCommand,
17752
- td as BringToFrontCommand,
17823
+ rd as BringForwardCommand,
17824
+ nd as BringToBackCommand,
17825
+ ad as BringToFrontCommand,
17753
17826
  vr as BundleDesignCreationCartAddMode,
17754
17827
  O as CanvasCommand,
17755
17828
  de as CollectionProduct,
17756
17829
  Ja as ColorOptionGlobalPropertyHandle,
17757
17830
  os as CommandContext,
17758
- _l as ConversionDataType,
17759
- Kl as ConversionLocation,
17831
+ Zl as ConversionDataType,
17832
+ Xl as ConversionLocation,
17760
17833
  W as CreateElementCommand,
17761
17834
  Ln as CreateLayoutCommand,
17762
- Ml as CurrencyContext,
17763
- kl as CurrencyService,
17835
+ Nl as CurrencyContext,
17836
+ Tl as CurrencyService,
17764
17837
  Et as DeleteElementCommand,
17765
17838
  Po as DigitalContentStepHandle,
17766
- il as FileUploadGlobalPropertyHandle,
17839
+ ol as FileUploadGlobalPropertyHandle,
17767
17840
  Ae as FlowExecutionNodeResult,
17768
- bl as FlowExecutionResult,
17769
- El as FlowService,
17841
+ Il as FlowExecutionResult,
17842
+ Bl as FlowService,
17770
17843
  us as FontAlignmentCommand,
17771
17844
  ds as FontColorCommand,
17772
17845
  As as FontSizeCommand,
17773
17846
  Wa as FontSourceCommand,
17774
- Ul as FrameService,
17775
- Ll as FrameStep,
17776
- Vl as FrameStepHandle,
17847
+ Vl as FrameService,
17848
+ zl as FrameStep,
17849
+ Gl as FrameStepHandle,
17777
17850
  Ia as GlobalPropertyHandle,
17778
17851
  $ as GroupCommand,
17779
17852
  wo as IllustrationStepHandle,
@@ -17781,128 +17854,128 @@ export {
17781
17854
  Io as InformationStepHandle,
17782
17855
  Ka as IntegrationProduct,
17783
17856
  br as IntegrationType,
17784
- Jc as LayoutElementFactory,
17857
+ _c as LayoutElementFactory,
17785
17858
  M as LayoutElementType,
17786
17859
  Y as LayoutNotFoundError,
17787
- Ht as LayoutRenderingPurpose,
17860
+ jt as LayoutRenderingPurpose,
17788
17861
  yo as MaterialStepHandle,
17789
17862
  Se as MisconfigurationError,
17790
- pd as MockWorkflowManager,
17863
+ Cd as MockWorkflowManager,
17791
17864
  So as ModelStepHandle,
17792
17865
  Do as ModuleStepHandle,
17793
- Kc as MoveCommand,
17866
+ Xc as MoveCommand,
17794
17867
  er as ObjectInput,
17795
- Bl as ObjectInputType,
17868
+ Pl as ObjectInputType,
17796
17869
  Zn as OptionGlobalPropertyHandle,
17797
17870
  ye as OptionNotFoundError,
17798
17871
  Dt as ParseError,
17799
17872
  vo as PictureStepHandle,
17800
17873
  Br as ProductCameraRig,
17801
17874
  tr as ProductCollection,
17802
- ml as ProductCollectionProductSortKey,
17803
- jt as ProductWorkflow,
17875
+ pl as ProductCollectionProductSortKey,
17876
+ Ht as ProductWorkflow,
17804
17877
  Jt as PromiseCache,
17805
17878
  xn as PromiseQueue,
17806
17879
  Eo as QuestionStepHandle,
17807
17880
  Fn as QueueablePromise,
17808
- Xc as ResizeCommand,
17881
+ td as ResizeCommand,
17809
17882
  qt as ResourceNotFoundError,
17810
- _c as RotateCommand,
17811
- H as ScaleAxis,
17812
- nd as SendBackwardsCommand,
17883
+ Zc as RotateCommand,
17884
+ j as ScaleAxis,
17885
+ id as SendBackwardsCommand,
17813
17886
  bo as ShapeStepHandle,
17814
17887
  Er as ShareActionType,
17815
- Ad as SpiffCommerceClient,
17888
+ hd as SpiffCommerceClient,
17816
17889
  we as StakeholderType,
17817
17890
  Sr as StepAspectType,
17818
17891
  it as StepHandle,
17819
- P as StepType,
17892
+ I as StepType,
17820
17893
  kt as TextAlgorithm,
17821
17894
  gs as TextChangeCommand,
17822
- sl as TextGlobalPropertyHandle,
17823
- ld as TextInput,
17895
+ ll as TextGlobalPropertyHandle,
17896
+ dd as TextInput,
17824
17897
  Bo as TextStepHandle,
17825
- pl as Transform,
17826
- gl as TransformCollection,
17898
+ Cl as Transform,
17899
+ fl as TransformCollection,
17827
17900
  G as UnhandledBehaviorError,
17828
17901
  Ir as UnitOfMeasurement,
17829
- Zc as UpdateImageSourceCommand,
17902
+ ed as UpdateImageSourceCommand,
17830
17903
  st as Variant,
17831
17904
  Lo as WorkflowExperienceEventType,
17832
17905
  Vo as WorkflowExperienceImpl,
17833
17906
  U as assetService,
17834
17907
  Xr as browserColorToHex,
17835
- qc as cmPerPixel,
17908
+ Jc as cmPerPixel,
17836
17909
  No as createDesign,
17837
- Wc as currentDirection,
17838
- Mc as dataUrlFromExternalUrl,
17910
+ jc as currentDirection,
17911
+ Nc as dataUrlFromExternalUrl,
17839
17912
  Ye as designService,
17840
17913
  pe as determineCorrectFontSizeAndLines,
17841
17914
  zn as digitalContentStepService,
17842
17915
  dt as domParser,
17843
- wd as duplicateBundle,
17844
- yd as duplicateTransaction,
17916
+ Sd as duplicateBundle,
17917
+ vd as duplicateTransaction,
17845
17918
  nt as fetchAsString,
17846
- Oc as findAngle,
17919
+ Uc as findAngle,
17847
17920
  L as findElement,
17848
- Qc as findPmsColors,
17921
+ Oc as findPmsColors,
17849
17922
  Vt as frameDataCache,
17850
17923
  Ct as frameStepService,
17851
17924
  Q as generate,
17852
- Xo as generateCommands,
17925
+ tl as generateCommands,
17853
17926
  lt as generateSVGWithUnknownColors,
17854
- sd as generateStateFromDesignInputSteps,
17855
- Fd as getAddressValidationJobs,
17927
+ ld as generateStateFromDesignInputSteps,
17928
+ kd as getAddressValidationJobs,
17856
17929
  Me as getAttributesFromArrayBuffer,
17857
- Rc as getAxisAlignedBoundingBox,
17858
- $l as getBoundedOffsets,
17859
- md as getBundleThemeConfiguration,
17860
- Sd as getCustomer,
17861
- vd as getCustomerBundles,
17862
- jc as getElementVertices,
17930
+ $c as getAxisAlignedBoundingBox,
17931
+ Ll as getBoundedOffsets,
17932
+ pd as getBundleThemeConfiguration,
17933
+ Ed as getCustomer,
17934
+ bd as getCustomerBundles,
17935
+ qc as getElementVertices,
17863
17936
  Qe as getFrameData,
17864
- rd as getGlobalPropertyStateForBundle,
17865
- Ol as getIntegration,
17866
- zc as getNEPoint,
17867
- Vc as getNWPoint,
17868
- Bd as getOrderedTransactions,
17869
- hd as getOverrideThemeConfiguration,
17870
- Lc as getPointOfRotation,
17871
- od as getProductCollections,
17872
- Gc as getSEPoint,
17937
+ sd as getGlobalPropertyStateForBundle,
17938
+ Ul as getIntegration,
17939
+ Wc as getNEPoint,
17940
+ Gc as getNWPoint,
17941
+ Pd as getOrderedTransactions,
17942
+ gd as getOverrideThemeConfiguration,
17943
+ zc as getPointOfRotation,
17944
+ cd as getProductCollections,
17945
+ Hc as getSEPoint,
17873
17946
  Sa as getSvgElement,
17874
- Pd as getTemplateBundles,
17875
- Id as getTemplateTransactions,
17876
- ud as getTransaction,
17877
- gd as getTransactionThemeConfiguration,
17878
- Ed as getTransactionsForBundle,
17879
- Uc as getTrueCoordinates,
17880
- bd as getUnorderedTransactions,
17881
- Dd as getValidationJobsForWorkflowExperiences,
17882
- dd as getWorkflow,
17947
+ Fd as getTemplateBundles,
17948
+ Dd as getTemplateTransactions,
17949
+ md as getTransaction,
17950
+ fd as getTransactionThemeConfiguration,
17951
+ Bd as getTransactionsForBundle,
17952
+ Vc as getTrueCoordinates,
17953
+ Id as getUnorderedTransactions,
17954
+ xd as getValidationJobsForWorkflowExperiences,
17955
+ ud as getWorkflow,
17883
17956
  ar as getWorkflows,
17884
17957
  B as graphQlManager,
17885
17958
  ge as illustrationStepService,
17886
- $c as isCloseToValue,
17959
+ Lc as isCloseToValue,
17887
17960
  Tt as loadFont,
17888
- Nc as matchHexToPms,
17961
+ Rc as matchHexToPms,
17889
17962
  Gn as materialStepService,
17890
- hl as metafieldManager,
17891
- Hc as mmPerPixel,
17963
+ gl as metafieldManager,
17964
+ Yc as mmPerPixel,
17892
17965
  Wn as modelStepService,
17893
17966
  Ca as modifySVGColors,
17894
- jn as moduleStepService,
17895
- fd as nameBundle,
17896
- Cd as nameTransaction,
17967
+ Hn as moduleStepService,
17968
+ wd as nameBundle,
17969
+ yd as nameTransaction,
17897
17970
  q as optionService,
17898
- Yc as outlineFontsInSvg,
17971
+ Kc as outlineFontsInSvg,
17899
17972
  At as patternImageDataCache,
17900
17973
  N as persistenceService,
17901
- Hn as pictureStepService,
17902
- Tc as pmsToRgb,
17974
+ jn as pictureStepService,
17975
+ Qc as pmsToRgb,
17903
17976
  qn as questionStepService,
17904
- kc as registerFetchImplementation,
17905
- xc as registerWindowImplementation,
17977
+ Tc as registerFetchImplementation,
17978
+ Mc as registerWindowImplementation,
17906
17979
  cs as rehydrateSerializedLayout,
17907
17980
  Jr as rgbToPms,
17908
17981
  le as rotateAroundPoint,
@@ -17912,14 +17985,14 @@ export {
17912
17985
  zt as shapeStepService,
17913
17986
  fs as shortenUrl,
17914
17987
  mt as spiffCoreConfiguration,
17915
- id as stepAspectValuesToDesignInputSteps,
17988
+ od as stepAspectValuesToDesignInputSteps,
17916
17989
  $a as svgColorValueToDefinition,
17917
17990
  $n as svgStringDimensions,
17918
17991
  ha as svgToDataUrl,
17919
- j as textStepService,
17992
+ H as textStepService,
17920
17993
  Ps as toast,
17921
- xd as validateWorkflowExperienceRecipient,
17922
- kd as validateWorkflowExperienceRecipients,
17994
+ Md as validateWorkflowExperienceRecipient,
17995
+ Td as validateWorkflowExperienceRecipients,
17923
17996
  bt as xmlSerializer
17924
17997
  };
17925
17998
  //# sourceMappingURL=index.mjs.map