@spiffcommerce/core 28.0.2-beta.b15c5a10-0813-5e03-bc2d-aaa4050d46ab → 28.0.2

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 || {}), 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 || {});
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 || {});
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 Mc(r) {
165
+ function xc(r) {
166
166
  ta = r;
167
167
  }
168
- function Tc(r) {
168
+ function kc(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
- }, Nc = async (r) => {
263
+ }, Mc = 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 Hr = (r) => new Promise((t) => {
420
+ const jr = (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
- }), jr = async () => {
424
+ }), Hr = 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 Hr = (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 jr()) {
435
+ if (!await Hr()) {
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 Hr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
439
+ const s = await jr(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 Hr = (r) => new Promise((t) => {
3161
3161
  parseInt(r.substring(2, 4), 16),
3162
3162
  parseInt(r.substring(4, 6), 16)
3163
3163
  ]);
3164
- function Qc(r) {
3164
+ function Tc(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 Rc(r, t = 64) {
3172
+ function Nc(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 Rc(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 Oc(r, t) {
3191
+ function Qc(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 = [I.SilentIllustration, I.ProductOverlay], zi = async (r) => {
5148
+ `, Ot = [P.SilentIllustration, P.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: I.Introduction,
5155
+ type: P.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: I.Finish,
5190
+ type: P.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), Hi = async (r, t, e = !1) => {
5220
+ }, Pt = (r, t) => r.map((e) => Wi(e, t)).filter((e) => e !== null), ji = 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 === 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));
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));
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
- }, ji = ({
5315
+ }, Hi = ({
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 === 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) => (
5331
+ const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((b, I) => (
5332
5332
  /* @ts-ignore */
5333
- /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, P)
5333
+ /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, I)
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 === jt.FreeDesign ? "url(#viewboxClip)" : void 0,
5374
+ clipPath: a.purpose === Ht.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
- }, $c = (r, t, e, a, n) => {
5416
+ }, Rc = (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
- }, Uc = (r, t, e) => {
5424
+ }, Oc = (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), Lc = (r, t, e) => Math.abs(r - t) < e, Vc = (r, t, e) => {
5427
+ }, pt = (r) => r * (Math.PI / 180), $c = (r, t, e) => Math.abs(r - t) < e, Uc = (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
- }, zc = (r, t) => ({
5433
+ }, Lc = (r, t) => ({
5434
5434
  x: (r.x + t.x) / 2,
5435
5435
  y: (r.y + t.y) / 2
5436
- }), Gc = (r, t, e, a) => ({
5436
+ }), Vc = (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
- }), Wc = (r, t, e, a) => ({
5439
+ }), zc = (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
- }), Hc = (r, t, e, a) => ({
5442
+ }), Gc = (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 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 }) => {
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 }) => {
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
- }, Yc = 0.352778, Jc = 0.035277, kn = (r) => {
5494
+ }, Hc = 0.352778, qc = 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, 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;
5580
+ var w, S, y, E, b, I, D, F, k, T;
5581
+ const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((b = r.pattern) == null ? void 0 : b.scaleX) || 1, p = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5582
5582
  return [(F = r.pattern) != null && F.svg ? {
5583
5583
  id: `${t}-contents`,
5584
5584
  type: M.Illustration,
@@ -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
- }, Kc = async (r) => {
5719
+ }, Yc = 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 P = b.toSVG(2), F = t.parseFromString(P, "image/svg+xml").firstElementChild;
5751
+ const I = b.toSVG(2), F = t.parseFromString(I, "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
- ji,
6141
+ Hi,
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 _c {
6378
+ class Jc {
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 Xc extends O {
6624
+ class Kc 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 Xc extends O {
6644
6644
  };
6645
6645
  }
6646
6646
  }
6647
- class Zc extends O {
6647
+ class _c extends O {
6648
6648
  constructor(t, e) {
6649
6649
  super(), this.id = t, this.angle = e;
6650
6650
  }
@@ -6666,7 +6666,7 @@ class Zc extends O {
6666
6666
  };
6667
6667
  }
6668
6668
  }
6669
- class td extends O {
6669
+ class Xc 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 ed extends O {
6981
+ class Zc 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 He extends O {
7022
+ class je 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 ad extends O {
7100
+ class td extends O {
7101
7101
  /**
7102
7102
  * @param id The targeted element to bring to the front.
7103
7103
  */
@@ -7126,7 +7126,7 @@ class ad extends O {
7126
7126
  };
7127
7127
  }
7128
7128
  }
7129
- class nd extends O {
7129
+ class ed extends O {
7130
7130
  /**
7131
7131
  * @param id The targeted element to bring to the back.
7132
7132
  */
@@ -7157,7 +7157,7 @@ class nd extends O {
7157
7157
  };
7158
7158
  }
7159
7159
  }
7160
- class rd extends O {
7160
+ class ad extends O {
7161
7161
  /**
7162
7162
  * @param id The targeted element to bring to the front.
7163
7163
  */
@@ -7184,7 +7184,7 @@ class rd extends O {
7184
7184
  };
7185
7185
  }
7186
7186
  }
7187
- class id extends O {
7187
+ class nd extends O {
7188
7188
  /**
7189
7189
  * @param id The targeted element to bring to the front.
7190
7190
  */
@@ -7211,7 +7211,7 @@ class id extends O {
7211
7211
  };
7212
7212
  }
7213
7213
  }
7214
- class Ha {
7214
+ class ja {
7215
7215
  constructor(t, e, a) {
7216
7216
  this.processRegion = async (n) => {
7217
7217
  var l, c, d, A;
@@ -7219,14 +7219,14 @@ class Ha {
7219
7219
  if (!i)
7220
7220
  throw new Y(n);
7221
7221
  let s = "";
7222
- if (this.configuration.type === I.ProductOverlay) {
7222
+ if (this.configuration.type === P.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 === I.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 === P.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 Ha {
7241
7241
  layer: n.layer,
7242
7242
  layerIndex: n.layerIndex,
7243
7243
  immutable: n.immutable,
7244
- productOverlay: this.configuration.type === I.ProductOverlay ? !0 : void 0,
7244
+ productOverlay: this.configuration.type === P.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 Ha {
7254
7254
  command: new W(h, i)
7255
7255
  };
7256
7256
  } else {
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) => {
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) => {
7258
7258
  if (!u) {
7259
7259
  f("Undefined vector silent step source");
7260
7260
  return;
@@ -7278,7 +7278,7 @@ class Ha {
7278
7278
  layerIndex: n.layerIndex,
7279
7279
  rotation: n.rotation,
7280
7280
  immutable: n.immutable,
7281
- productOverlay: this.configuration.type === I.ProductOverlay ? !0 : void 0,
7281
+ productOverlay: this.configuration.type === P.ProductOverlay ? !0 : void 0,
7282
7282
  excludeFromExport: this.configuration.data.excludeFromPrint
7283
7283
  };
7284
7284
  return {
@@ -7294,11 +7294,11 @@ class Ha {
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 === I.SilentIllustration) {
7297
+ if (this.configuration.type === P.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 === I.ProductOverlay ? Promise.all(
7301
+ return this.configuration.type === P.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 Ha {
7308
7308
  }
7309
7309
  evaluateAssetType() {
7310
7310
  var e, a, n;
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];
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];
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((P) => new Et(P.id)), w = f ? Ea(
7736
+ const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new Et(I.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((P) => P.panelId === m.panelId);
7751
+ } : void 0, y = Q(), b = n.getLayouts().find((I) => I.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 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) || "" });
8045
+ const I = C.find((F) => F.channelNumber === b.number);
8046
+ I && (y[`${b.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
8047
8047
  }), await this.changeColors(
8048
8048
  t,
8049
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 P = y[0], D = E[0];
8058
+ const I = 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, P.variant.color]])
8064
+ /* @__PURE__ */ new Map([[D, I.variant.color]])
8065
8065
  );
8066
8066
  }
8067
8067
  !b && C.length === 0 && await this.changeColors(
8068
8068
  t,
8069
- u.map((P) => P.regionElement),
8069
+ u.map((I) => I.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 Hn = new vs();
8356
+ const jn = 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 jn = new Es();
8448
+ const Hn = 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(), je = (r, t, e, a, n) => {
8706
+ const Ps = new Is(), He = (r, t, e, a, n) => {
8707
8707
  if (t.some((d) => d == null))
8708
8708
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8709
8709
  let i = t.map((d) => d.split(`
@@ -8735,18 +8735,18 @@ const Ps = new Is(), je = (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] = je(e, a, r, u, o), [n.size, i, s];
8738
+ return [i, s] = He(e, a, r, u, o), [n.size, i, s];
8739
8739
  }
8740
8740
  const c = 6;
8741
8741
  let d = c - Ve;
8742
8742
  if (a.length > 0) {
8743
8743
  let u = a, h = 0;
8744
8744
  for (; (!n.maxSize || d <= n.maxSize) && u; )
8745
- d += Ve, h = d / l.unitsPerEm, [u, s] = je(e, a, d, h, o);
8745
+ d += Ve, h = d / l.unitsPerEm, [u, s] = He(e, a, d, h, o);
8746
8746
  }
8747
8747
  d > c && (d -= Ve), n.minSize && d < n.minSize && (d = n.minSize);
8748
8748
  const A = d / l.unitsPerEm;
8749
- return [i, s] = je(e, a, d, A, o), [d, i, s];
8749
+ return [i, s] = He(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 He(l.id, s, (o = t.data) == null ? void 0 : o.strokeThickness);
8980
+ const c = new je(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 P;
9061
- return b.type === z.Text && ((P = t.globalPropertyAspectConfigurations) == null ? void 0 : P.map((D) => D.aspectName).includes(b.name));
9060
+ var I;
9061
+ return b.type === z.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(b.name));
9062
9062
  });
9063
9063
  if (E) {
9064
- const P = S.getGlobalPropertyStateManager().getAspect(E.name);
9065
- P && (w = P);
9064
+ const I = S.getGlobalPropertyStateManager().getAspect(E.name);
9065
+ I && (w = I);
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 } = H.updateInputText(
9094
+ const { command: y } = j.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 } = H.updateInputText(
9131
+ const { command: w } = j.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 He(f.id, c, t.data.strokeThickness)
9189
+ (f) => new je(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 He(C.id, c, t.data.strokeThickness)
9237
+ (C) => new je(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 [P, D] = pe(
9304
+ const [I, 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, P), b.set(S.id, D);
9318
+ E.set(S.id, I), b.set(S.id, D);
9319
9319
  const F = a.curved || a.vertical ? l : (D || []).join(`
9320
9320
  `);
9321
9321
  y.push(
9322
- this.generateTextChangeCommandsForRegion(P, a, S.id, F)
9322
+ this.generateTextChangeCommandsForRegion(I, 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 P = S[b].toLowerCase().replace(/\s/g, "");
9381
- if (E === P)
9380
+ const I = S[b].toLowerCase().replace(/\s/g, "");
9381
+ if (E === I)
9382
9382
  return l(!0), { error: "Blocked profanity." };
9383
9383
  }
9384
9384
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
@@ -9409,7 +9409,7 @@ class Fs {
9409
9409
  return new $(C);
9410
9410
  }
9411
9411
  }
9412
- const H = new Fs();
9412
+ const j = new Fs();
9413
9413
  class xs {
9414
9414
  }
9415
9415
  const ks = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtd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L/90ADP/lAA3/zgAO/90AD//dABD/7AAR/+IAEv/iABP/2AAU/+IAFf/JABb/5wAx/90AMv/EADP/6wA0/+EANf/wADb/8AA4/9wAOf/dADr/7AA7/9gAPP/sAD3/5wA+/+wAP//iAED/0wBB/+IAQv/YAEP/4gBE/84ARf/JAEb/4gBH/8kASP/OAEn/vwBK/8kAS//TACwABv/7AAf/3wAI/+cACf+wAAr/4wAL/8kADP/dAA3/xwAO/+cAD//dABD/7AAR/+cAEv/iABP/yQAU/9cAFf+/ABb/4gAa/+kAMf/YADL/uwAz/+EANP/dADb/6wA3//MAOP/lADn/8QA6//IAO//eADz/5wA9/+4APv/zAD//8ABA/+IAQf/2AEL/6gBD//YARP/kAEX/zABG/+8AR/+0AEj/uwBJ/64ASv+vAEv/5QAsAAb/+wAH/90ACP/nAAn/4gAK/9MAC//nAAz/3QAN//YADv/eAA//3QAQ/7AAEf/OABL/sAAT//sAFP/dABX/0wAW/9MAMf/iADL/iAAz//YANP/OADX/9gA2//EAN//xADj/0wA5//YAOv/zADv/gAA8//EAPf/7AD7/+wA///YAQP/OAEH/7gBC/84AQ//2AET/2ABF//sARv/2AEf/5wBI/+cASf/TAEr/4gBL/+wALAAG//sAB//2AAj/8QAJ/9gACv/nAAv/3QAM/+IADf/dAA7/4gAP/+IAEP/nABH/5wAS/9gAE//YABT/3QAV/84AFv/sADH/5wAy/78AM//nADT/2AA1/+cANv/nADf/7AA4/90AOf/sADr/7AA7/+cAPP/sAD3/8QA+/+wAP//xAED/4gBB//EAQv/dAEP/5wBE/+IARf/YAEb/5wBH/78ASP/HAEn/sABK/7UAS//dACsABv/xAAf/8QAI/+IACf/dAAr/0wAL/+IADP/iAA3/3QAO/+cAD//dABD/zgAR/9MAEv/EABP/0wAU/84AFv/dADH/4gAy/6EAM//jADT/3QA1/+wANv/sADf/5wA4/90AOf/nADr/8QA7/78APP/xAD3/9gA+/+wAP//nAED/3QBB/+cAQv/nAEP/5wBE/+IARf/OAEb/3QBH/8QASP/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A9//4APv/7AED/7ABB//4AQv/nAEP/+QBE//kARf/7AEb/+QBH//MASP/rAEn/4gBK/+8AS//7AB0ABv/2ABf/zgAl/+8AMv+3ADP/9wA0/+sANf/3ADb/8QA3//kAOP/uADn/8wA6//sAO//YADz/8wA9/+4APv/3AD//8wBA/+MAQf/3AEL/6QBD/+8ARP/nAEX/1ABG/+8AR//JAEj/zABJ/6YASv/JAEv/3AAcAAb/+wAX//MAJf/7ADL/6wAz//4ANP/uADX/+wA2//4AN//+ADj/8wA5//0AOv/+ADv/7gA8//4APf/+AD7/+wA///4AQP/uAEL/9wBD//4ARP/+AEX/+QBG//4AR//uAEj/9wBJ/+4ASv/zAEv//gAYAAb/+wAx//YAMv/rADP//wA0//MANf//ADYAAQA3//8AOP/zADv/6AA8//4APf/+AD4AAQBA/+4AQf//AEL/8wBD//4ARP/4AEX//QBH/+wASP/3AEn/7ABK//EASwABABwABv/2ABf/4QAy/8oAM//9ADT/+QA1//4ANv/7ADf//gA4//MAOf/+ADr//wA7/+EAPP/7AD3//gA+//4AP//+AED/7wBB//4AQv/zAEP//gBE//sARf/7AEb//gBH/+8ASP/5AEn/2gBK//oAS//+AB0ABv/nABf/5wAx/7AAMv/hADP/7gA0/7QANf/rADb/5wA3/+4AOP+sADn/6wA6//kAO/+3ADz/6gA9/+8APv/nAD//5wBA/6wAQf/uAEL/rgBD/+cARP+8AEX/3ABG/9oAR//cAEj/0QBJ/9oASv/RAEv/7wAeAAb/9gAX//cAI//9ADH/vwAy/+4AM//5ADT/2gA1//4ANv/3ADf/+wA4/9oAOf/3ADr/+wA7/+cAPP/7AD3/+QA+//cAP//5AED/1ABB//sAQv/cAEP/9wBE/+8ARf/JAEb/6wBH/8QASP++AEn/5wBK/8EAS//+ABwAF//7ADH/7AAy/+QAM//+ADT/7gA1//4ANgAAADf//QA4//cAOf/7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vAEn/6wBK/+gAS//+AB4ABv/7ABf/8wAa//4AHf/3ACX/9wAq//4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAPP/5AD3/+gA+//EAP//6AED/2gBB/+8AQv/aAET/7wBF/9cARv/qAEf/xgBI/7sASf/qAEr/tABL//sAHQAG/+cAF//oACT/+gAy/+IAM//xADT/zAA1/+8ANv/sADf/+gA4/8wAOf/3ADr/8wA7/8kAPP/uAD3/7wA+/+wAP//rAED/yQBB//cAQv/MAEP/+ABE/9QARf/KAEb/2gBH/8EASP/EAEn/4gBK/7cAS//vAB0ABv/xABv/+QAl/+4AMv+8ADP/7wA0/9wANf/zADb/6AA3//cAOP/hADn/5gA6//MAO//aADz/6QA9//MAPv/pAD//6wBA/+MAQf/3AEL/2gBD/+kARP/rAEX/1ABG/+kAR//JAEj/zABJ/7QASv+7AEv/5wAbAAb/9gAy/6YAM//9ADT/0wA1//oANv/+ADf//QA4/9UAOf/3ADr//wA7/7kAPP/6AD3//g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uAD//8QBA/+cAQf/vAEL/4wBD/+sARP/cAEX/0ABG/+sAR//CAEj/xABJ/7QASv+6AEv/6AAmAAf/9gAI//EACf/sAAr/9gAM/+cADv/6AA//8QAQ//EAEf/vABL/4QAT//EAFP/iABX/5wAy/+kAM//9ADT/5wA1//sANv/9ADf//gA4/+sAOf/+ADoAAQA7/+gAPP/9AD3/9wA+//0AP//9AED/6wBBAAEAQv/pAEP/+QBE/+wARgACAEf/6QBI/+8ASf/nAEr/6wBL//sAKQAH//sACP/xAAn/5wAK/+4AC//2AAz/4gAN//sADv/1AA//8QAQ/90AEf/kABL/4gAT/+wAFP/YABX/3QAx//YAMv+5ADP/+AA0/+MANf/3ADb/+AA3//kAOP/iADn/+gA6//0AO//OADz//QA9//4APv/5AD///ABA/+YAQv/jAEP/9wBE/+YARf/vAEb//gBH/+cASP/vAEn/0QBK/+YAS//9ACgAB//2AAj/4gAJ/90ACv/sAAv/4gAM/+gADf/iAA7/9QAP/+gAEP/dABH/4AAS/+YAE//OABT/4gAV/90AJP/7ADH/9gAy/8EAM//vADT/3wA2//QAN//4ADj/4wA5/+kAOv/6ADv/0QA8/+YAPf/zAD7/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//7ACkAB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AQf/zAEL/uQBD/+sARP/OAEX/3wBG/+EAR//aAEj/2ABJ/9gASv/MAEv/7gAsAAf/yQAI/84ACf/JAAr/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", at = (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 ja = {
9447
+ const Ha = {
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 = ja[i.type];
9477
+ const c = Ha[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 = ja[s];
9502
+ const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Ha[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 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;
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;
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
- `, sd = async (r) => (await B.getShadowGraphqlClient().query({
9656
+ `, rd = async (r) => (await B.getShadowGraphqlClient().query({
9657
9657
  query: Vs,
9658
9658
  fetchPolicy: "cache-first",
9659
9659
  errorPolicy: "all",
@@ -9891,7 +9891,7 @@ const ne = v`
9891
9891
  }
9892
9892
  }
9893
9893
  }
9894
- `, Hs = v`
9894
+ `, js = 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
- `, js = v`
9904
+ `, Hs = 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 === I.Model || s.type === I.Material).forEach((s) => {
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) => {
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 === I.Model) {
10621
+ if (s.type === P.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 === I.Model && !wt(e, this.stepSelections) && t.push(e.stepName), t), []);
10765
+ return this.workflow.steps.reduce((t, e) => (e.type === P.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 === I.SilentIllustration) {
10773
- const u = await new Ha(c, d).trigger();
10772
+ if (c.type === P.SilentIllustration) {
10773
+ const u = await new ja(c, d).trigger();
10774
10774
  return { step: c, results: u };
10775
- } else if (c.type === I.ProductOverlay) {
10776
- const u = await new Ha(
10775
+ } else if (c.type === P.ProductOverlay) {
10776
+ const u = await new ja(
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((P) => P.priceModifier || 0).reduce((P, D) => P + D, 0), 0), this.workflow.steps.forEach((E) => {
10866
+ }, this.selectionCost = Object.values(this.stepSelections).reduce((E, b) => E + b.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, D) => I + D, 0), 0), this.workflow.steps.forEach((E) => {
10867
10867
  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) === I.Frame) {
10882
+ if ((g == null ? void 0 : g.type) === P.Frame) {
10883
10883
  const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
10884
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 I.DigitalContent:
10908
+ case P.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 I.Frame:
10917
+ case P.Frame:
10918
10918
  a.push(Ct.init(l, this, this.reloadedState));
10919
10919
  break;
10920
- case I.Illustration:
10920
+ case P.Illustration:
10921
10921
  a.push(
10922
10922
  ge.init(l, this, this.reloadedState)
10923
10923
  );
10924
10924
  break;
10925
- case I.Material:
10925
+ case P.Material:
10926
10926
  a.push(
10927
10927
  Gn.init(l, this, this.reloadedState)
10928
10928
  );
10929
10929
  break;
10930
- case I.Model:
10930
+ case P.Model:
10931
10931
  a.push(Wn.init(l, this, this.reloadedState));
10932
10932
  break;
10933
- case I.Module:
10933
+ case P.Module:
10934
10934
  this.stepSpecificServices[l.stepName] = {
10935
10935
  module: await Yn(l.data.module)
10936
10936
  }, a.push(
10937
- Hn.init(l, this, this.reloadedState)
10937
+ jn.init(l, this, this.reloadedState)
10938
10938
  );
10939
10939
  break;
10940
- case I.Picture:
10940
+ case P.Picture:
10941
10941
  a.push(
10942
- jn.init(l, this, this.reloadedState)
10942
+ Hn.init(l, this, this.reloadedState)
10943
10943
  );
10944
10944
  break;
10945
- case I.Question:
10945
+ case P.Question:
10946
10946
  a.push(
10947
10947
  qn.init(l, this, this.reloadedState)
10948
10948
  );
10949
10949
  break;
10950
- case I.Shape:
10950
+ case P.Shape:
10951
10951
  a.push(zt.init(l, this, this.reloadedState));
10952
10952
  break;
10953
- case I.Text:
10954
- a.push(H.init(l, this, this.reloadedState));
10953
+ case P.Text:
10954
+ a.push(j.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 Hi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11014
+ return ji(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 jn.selectVariant(
11347
+ return Hn.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
- H.selectVariant(
11436
+ j.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 ? H.availableFillColors(this.step) : [];
11463
+ return this.step.data.colorPickerEnabled ? j.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 H.changeFillColor(this.step, t, e, this.manager);
11471
+ await j.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 H.availableFillImages(this.step);
11481
+ return j.availableFillImages(this.step);
11482
11482
  }
11483
11483
  async setFillImage(t) {
11484
11484
  const e = this.manager.getRegionElements(this.step.stepName);
11485
- await H.changeFillImage(this.step, t, e, this.manager);
11485
+ await j.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 = H.findLayoutElements(this.manager, this.step);
11492
+ const t = j.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
- H.changeAlignment(this.step, t, e, this.manager);
11497
+ j.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 = 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;
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;
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 = H.getProcessedInput(
11526
+ const l = this.manager.getStepStorage(this.step.stepName), c = j.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 } = H.updateInputText(
11536
+ const { command: A, errorData: u, helperData: h } = j.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 = H.findLayoutElements(this.manager, this.step);
11576
- return H.updateInputText("", a, this.step, this.manager), e;
11575
+ const a = j.findLayoutElements(this.manager, this.step);
11576
+ return j.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 ? H.availableStrokeColors(this.step) : [];
11613
+ return this.step.data.strokeEnabled ? j.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 H.changeStrokeColor(this.step, t, e, this.manager);
11625
+ await j.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
- Hn.changeText(this.step, t, this.manager, (e) => {
11698
+ jn.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 I.DigitalContent:
11719
+ case P.DigitalContent:
11720
11720
  return new Po(t, e, t.getStepTags(e.stepName));
11721
- case I.Information:
11721
+ case P.Information:
11722
11722
  return new Io(t, e, t.getStepTags(e.stepName));
11723
- case I.Question:
11723
+ case P.Question:
11724
11724
  return new Eo(t, e, t.getStepTags(e.stepName));
11725
- case I.Text:
11725
+ case P.Text:
11726
11726
  return new Bo(t, e, t.getStepTags(e.stepName));
11727
- case I.Illustration:
11727
+ case P.Illustration:
11728
11728
  return new wo(t, e, t.getStepTags(e.stepName));
11729
- case I.Picture:
11729
+ case P.Picture:
11730
11730
  return new vo(t, e, t.getStepTags(e.stepName));
11731
- case I.Shape:
11731
+ case P.Shape:
11732
11732
  return new bo(t, e, t.getStepTags(e.stepName));
11733
- case I.Material:
11733
+ case P.Material:
11734
11734
  return new yo(t, e, t.getStepTags(e.stepName));
11735
- case I.Model:
11735
+ case P.Model:
11736
11736
  return new So(t, e, t.getStepTags(e.stepName));
11737
- case I.Frame:
11738
- return new Gl(t, e, t.getStepTags(e.stepName));
11739
- case I.Module:
11737
+ case P.Frame:
11738
+ return new Vl(t, e, t.getStepTags(e.stepName));
11739
+ case P.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 P;
11967
+ var I;
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 = (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) => {
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) => {
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: jt.Print,
12381
+ purpose: Ht.Print,
12382
12382
  region: { left: A.x, top: A.y, width: A.width, height: A.height },
12383
12383
  templatingContext: this.workflowManager.getTemplatingContext()
12384
12384
  }
@@ -12621,74 +12621,24 @@ 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 !== I.SilentIllustration && t.type !== I.ProductOverlay;
12624
+ return t.type !== P.SilentIllustration && t.type !== P.ProductOverlay;
12625
12625
  }
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);
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)
12641
12632
  return;
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;
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;
12692
12642
  }
12693
12643
  getQuantity() {
12694
12644
  return this.getWorkflowManager().getTransaction().quantity || 1;
@@ -12726,30 +12676,7 @@ class Vo {
12726
12676
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
12727
12677
  }
12728
12678
  }
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 = [
12679
+ const zo = [
12753
12680
  "altGlyph",
12754
12681
  "circle",
12755
12682
  "ellipse",
@@ -12761,7 +12688,7 @@ const zo = (r) => {
12761
12688
  "textPath",
12762
12689
  "tref",
12763
12690
  "tspan"
12764
- ], Ho = async (r, t, e) => {
12691
+ ], Go = async (r, t, e) => {
12765
12692
  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);
12766
12693
  o.searchParams.append("video", Ra(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12767
12694
  const l = o.toString(), d = `data:image/svg+xml;base64,${Ra(await on(l, { type: "svg" }))}`, A = (h) => {
@@ -12788,7 +12715,7 @@ const zo = (r) => {
12788
12715
  } catch (h) {
12789
12716
  return console.error(h), [];
12790
12717
  }
12791
- }, jo = async (r, t, e, a) => {
12718
+ }, Wo = async (r, t, e, a) => {
12792
12719
  const n = e.data, i = n.assetUrl, s = await sa(i);
12793
12720
  try {
12794
12721
  const o = ls(n, a.option);
@@ -12846,7 +12773,7 @@ const zo = (r) => {
12846
12773
  } catch (o) {
12847
12774
  return console.error(o), [];
12848
12775
  }
12849
- }, qo = async (r, t, e, a) => {
12776
+ }, jo = async (r, t, e, a) => {
12850
12777
  var y, E;
12851
12778
  const n = e.data, i = a.option;
12852
12779
  if (!i)
@@ -12866,10 +12793,10 @@ const zo = (r) => {
12866
12793
  pa(m);
12867
12794
  const g = {};
12868
12795
  xt(m, (b) => {
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, "")}`;
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, "")}`;
12873
12800
  b.classList.add(T), g[T] = { browserValue: F };
12874
12801
  }
12875
12802
  const D = b.attributes.getNamedItem("stroke");
@@ -12880,16 +12807,16 @@ const zo = (r) => {
12880
12807
  });
12881
12808
  const f = bt().serializeToString(m), C = n.colors;
12882
12809
  if (C) {
12883
- for (const [b, P] of Object.entries(g))
12810
+ for (const [b, I] of Object.entries(g))
12884
12811
  for (const D of Object.keys(C))
12885
- if (P.browserValue === D) {
12812
+ if (I.browserValue === D) {
12886
12813
  g[b] = { browserValue: C[D] };
12887
12814
  break;
12888
12815
  }
12889
12816
  }
12890
12817
  const w = (b) => {
12891
- const P = r.find((F) => F.panelId === b.panelId);
12892
- if (!P)
12818
+ const I = r.find((F) => F.panelId === b.panelId);
12819
+ if (!I)
12893
12820
  throw new Y(b);
12894
12821
  const D = Q();
12895
12822
  return new W(
@@ -12907,7 +12834,7 @@ const zo = (r) => {
12907
12834
  layerIndex: b.layerIndex,
12908
12835
  immutable: b.immutable
12909
12836
  },
12910
- P
12837
+ I
12911
12838
  );
12912
12839
  }, S = a.data.regions;
12913
12840
  try {
@@ -12915,7 +12842,7 @@ const zo = (r) => {
12915
12842
  } catch (b) {
12916
12843
  return console.error(b), [];
12917
12844
  }
12918
- }, Yo = async (r, t, e) => {
12845
+ }, Ho = async (r, t, e) => {
12919
12846
  const a = await Yn(e.data.module), n = t.data, i = (o, l) => {
12920
12847
  const c = r.find((A) => A.panelId === l.panelId);
12921
12848
  if (!c)
@@ -12945,7 +12872,7 @@ const zo = (r) => {
12945
12872
  } catch (o) {
12946
12873
  return console.error(o), [];
12947
12874
  }
12948
- }, Jo = async (r, t, e, a) => {
12875
+ }, qo = async (r, t, e, a) => {
12949
12876
  var d, A;
12950
12877
  const n = e.data, i = a.option;
12951
12878
  if (!i)
@@ -12987,7 +12914,7 @@ const zo = (r) => {
12987
12914
  } catch (u) {
12988
12915
  return console.error(u), [];
12989
12916
  }
12990
- }, Ko = async (r, t, e, a) => {
12917
+ }, Yo = async (r, t, e, a) => {
12991
12918
  var c;
12992
12919
  const n = e.data, i = a.option;
12993
12920
  if (!i)
@@ -13044,10 +12971,10 @@ const zo = (r) => {
13044
12971
  } catch (d) {
13045
12972
  return console.error(d), [];
13046
12973
  }
13047
- }, _o = async (r, t, e) => {
12974
+ }, Jo = async (r, t, e) => {
13048
12975
  const a = [], i = (() => {
13049
12976
  var c, d;
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) || "";
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) || "";
13051
12978
  })(), o = (() => i.endsWith(".jpeg") || i.endsWith(".jpg") || i.endsWith(".png") ? M.Image : (i.endsWith(".svg"), M.Illustration))(), l = t.data.regions;
13052
12979
  if (o === "image")
13053
12980
  try {
@@ -13065,7 +12992,7 @@ const zo = (r) => {
13065
12992
  height: c.height,
13066
12993
  layer: c.layer,
13067
12994
  layerIndex: c.layerIndex,
13068
- productOverlay: t.type === I.ProductOverlay ? !0 : void 0,
12995
+ productOverlay: t.type === P.ProductOverlay ? !0 : void 0,
13069
12996
  scaleX: 1,
13070
12997
  scaleY: 1,
13071
12998
  rotation: c.rotation,
@@ -13104,14 +13031,14 @@ const zo = (r) => {
13104
13031
  scaleX: 1,
13105
13032
  scaleY: 1,
13106
13033
  rotation: A.rotation,
13107
- productOverlay: t.type === I.ProductOverlay ? !0 : void 0,
13034
+ productOverlay: t.type === P.ProductOverlay ? !0 : void 0,
13108
13035
  excludeFromExport: t.data.excludeFromPrint
13109
13036
  };
13110
13037
  a.push(new W(h, u));
13111
13038
  });
13112
13039
  }
13113
13040
  return a;
13114
- }, Xo = async (r, t, e, a) => {
13041
+ }, Ko = async (r, t, e, a) => {
13115
13042
  const n = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
13116
13043
  var w;
13117
13044
  const p = a.option;
@@ -13200,7 +13127,7 @@ const zo = (r) => {
13200
13127
  n.push(new W(C, f));
13201
13128
  }
13202
13129
  return n;
13203
- }, Zo = (r, t) => r.conditions ? r.conditions.every((e) => {
13130
+ }, _o = (r, t) => r.conditions ? r.conditions.every((e) => {
13204
13131
  const a = t[e.targetStepName];
13205
13132
  if (a && a.selectedVariants) {
13206
13133
  const n = a.selectedVariants;
@@ -13209,26 +13136,26 @@ const zo = (r) => {
13209
13136
  );
13210
13137
  }
13211
13138
  return !1;
13212
- }) : !0, tl = async (r, t, e, a) => {
13139
+ }) : !0, Xo = async (r, t, e, a) => {
13213
13140
  const n = [], i = {};
13214
13141
  for (const s of r) {
13215
13142
  const o = t.steps.find((l) => l.stepName === s.name);
13216
13143
  if (o)
13217
13144
  switch (o.type) {
13218
- case I.DigitalContent:
13145
+ case P.DigitalContent:
13219
13146
  n.push(
13220
- ...await Ho(e, s, o)
13147
+ ...await Go(e, s, o)
13221
13148
  );
13222
13149
  break;
13223
- case I.Frame:
13224
- case I.Photo:
13150
+ case P.Frame:
13151
+ case P.Photo:
13225
13152
  n.push(
13226
- ...await jo(e, i, s, o)
13153
+ ...await Wo(e, i, s, o)
13227
13154
  );
13228
13155
  break;
13229
- case I.Illustration:
13156
+ case P.Illustration:
13230
13157
  n.push(
13231
- ...await qo(
13158
+ ...await jo(
13232
13159
  e,
13233
13160
  i,
13234
13161
  s,
@@ -13236,40 +13163,40 @@ const zo = (r) => {
13236
13163
  )
13237
13164
  );
13238
13165
  break;
13239
- case I.Module:
13240
- n.push(...await Yo(e, s, o));
13166
+ case P.Module:
13167
+ n.push(...await Ho(e, s, o));
13241
13168
  break;
13242
- case I.Picture:
13169
+ case P.Picture:
13243
13170
  n.push(
13244
- ...await Jo(e, i, s, o)
13171
+ ...await qo(e, i, s, o)
13245
13172
  );
13246
13173
  break;
13247
- case I.Shape:
13174
+ case P.Shape:
13248
13175
  n.push(
13249
- ...await Ko(e, i, s, o)
13176
+ ...await Yo(e, i, s, o)
13250
13177
  );
13251
13178
  break;
13252
- case I.Text:
13179
+ case P.Text:
13253
13180
  n.push(
13254
- ...await Xo(e, i, s, o)
13181
+ ...await Ko(e, i, s, o)
13255
13182
  );
13256
13183
  break;
13257
13184
  }
13258
13185
  }
13259
13186
  for (const s of t.steps)
13260
- s.type !== I.SilentIllustration && s.type !== I.ProductOverlay || Zo(s, i) && n.push(
13261
- ...await _o(e, s, a)
13187
+ s.type !== P.SilentIllustration && s.type !== P.ProductOverlay || _o(s, i) && n.push(
13188
+ ...await Jo(e, s, a)
13262
13189
  );
13263
13190
  return n;
13264
13191
  };
13265
- class el {
13192
+ class Zo {
13266
13193
  constructor(t) {
13267
13194
  this.handleCompleteRender = null;
13268
13195
  const e = /* @__PURE__ */ new Map();
13269
13196
  t.forEach(
13270
13197
  (a) => e.set(
13271
13198
  a.id,
13272
- new rl(
13199
+ new al(
13273
13200
  a.id,
13274
13201
  a.name,
13275
13202
  this,
@@ -13295,15 +13222,15 @@ class el {
13295
13222
  return this.workflowManager;
13296
13223
  }
13297
13224
  }
13298
- const al = () => new Promise((r, t) => {
13225
+ const tl = () => new Promise((r, t) => {
13299
13226
  try {
13300
13227
  const a = gt().getContext("webgl2");
13301
13228
  r(!!a);
13302
13229
  } catch {
13303
13230
  r(!1);
13304
13231
  }
13305
- }), nl = al();
13306
- class rl {
13232
+ }), el = tl();
13233
+ class al {
13307
13234
  constructor(t, e, a, n, i) {
13308
13235
  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;
13309
13236
  }
@@ -13359,10 +13286,10 @@ class rl {
13359
13286
  return;
13360
13287
  }
13361
13288
  this.renderQueue.enqueue(
13362
- new il(
13289
+ new nl(
13363
13290
  this.getID(),
13364
13291
  a,
13365
- await nl,
13292
+ await el,
13366
13293
  () => {
13367
13294
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
13368
13295
  },
@@ -13372,7 +13299,7 @@ class rl {
13372
13299
  );
13373
13300
  }
13374
13301
  }
13375
- class il extends Fn {
13302
+ class nl extends Fn {
13376
13303
  constructor(t, e, a, n, i, s) {
13377
13304
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = i, this.getWorkflowManager = s;
13378
13305
  }
@@ -13425,7 +13352,7 @@ class il extends Fn {
13425
13352
  l = i.width, c = i.height;
13426
13353
  const d = Sa(t.layoutState.layout, e, {
13427
13354
  renderingConfiguration: {
13428
- purpose: jt.ThreeD,
13355
+ purpose: Ht.ThreeD,
13429
13356
  templatingContext: (m = (h = this.getWorkflowManager) == null ? void 0 : h.call(this)) == null ? void 0 : m.getTemplatingContext()
13430
13357
  }
13431
13358
  }), A = hn(d), u = await Aa.from(this.ctx, A, {
@@ -13443,27 +13370,27 @@ class il extends Fn {
13443
13370
  u.resize(l, c), await u.render(), this.onRender();
13444
13371
  }
13445
13372
  }
13446
- const od = (r, t) => {
13373
+ const id = (r, t) => {
13447
13374
  const e = [];
13448
13375
  return r.forEach((a) => {
13449
13376
  const n = t.steps.find((i) => i.stepName === a.stepName);
13450
- (n == null ? void 0 : n.type) === I.Text && a.stepAspectType === "Text" && e.push({
13377
+ (n == null ? void 0 : n.type) === P.Text && a.stepAspectType === "Text" && e.push({
13451
13378
  name: n.stepName,
13452
13379
  data: {
13453
13380
  text: a.value
13454
13381
  }
13455
13382
  });
13456
13383
  }), e;
13457
- }, ld = async (r, t, e, a) => {
13384
+ }, sd = async (r, t, e, a) => {
13458
13385
  let n = {
13459
13386
  serializableWorkflow: { steps: [] },
13460
13387
  layouts: {}
13461
13388
  };
13462
13389
  n = new $(e.map((l) => new Ln(l))).apply(n);
13463
- const s = await tl(r, t, e, a);
13390
+ const s = await Xo(r, t, e, a);
13464
13391
  return new $(s).apply(n);
13465
13392
  };
13466
- class sl {
13393
+ class rl {
13467
13394
  constructor(t) {
13468
13395
  this.handleCache = {}, this.bundle = t;
13469
13396
  }
@@ -13508,7 +13435,7 @@ class sl {
13508
13435
  async createHandle(t) {
13509
13436
  switch (t.type) {
13510
13437
  case z.FileUpload:
13511
- return new ol(this.bundle, t).initialize();
13438
+ return new il(this.bundle, t).initialize();
13512
13439
  case z.ColorOption:
13513
13440
  return new Ja(
13514
13441
  this.bundle,
@@ -13520,7 +13447,7 @@ class sl {
13520
13447
  return (e == null ? void 0 : e.type) === "Color" ? new Ja(this.bundle, t, e) : new Zn(this.bundle, t, e);
13521
13448
  }
13522
13449
  case z.Text:
13523
- return new ll(this.bundle, t);
13450
+ return new sl(this.bundle, t);
13524
13451
  default:
13525
13452
  throw new Error("Unhandled Global Property Aspect Type");
13526
13453
  }
@@ -13581,7 +13508,7 @@ class Ia {
13581
13508
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
13582
13509
  }
13583
13510
  }
13584
- class ol extends Ia {
13511
+ class il extends Ia {
13585
13512
  constructor(t, e) {
13586
13513
  super(t, e);
13587
13514
  }
@@ -13818,7 +13745,7 @@ class ol extends Ia {
13818
13745
  );
13819
13746
  }
13820
13747
  }
13821
- class ll extends Ia {
13748
+ class sl extends Ia {
13822
13749
  constructor(t, e) {
13823
13750
  super(t, e);
13824
13751
  }
@@ -13955,15 +13882,15 @@ class Ja extends Zn {
13955
13882
  async applyColorVariant(t, e, a) {
13956
13883
  const i = this.getSharedSteps(e).map((s) => {
13957
13884
  switch (s.getType()) {
13958
- case I.Shape:
13885
+ case P.Shape:
13959
13886
  return s.selectVariant(t);
13960
- case I.Text:
13887
+ case P.Text:
13961
13888
  return s.setFillColor({
13962
13889
  fill: t.getColor(),
13963
13890
  stroke: t.getColor(),
13964
13891
  variant: t.getResource()
13965
13892
  });
13966
- case I.Illustration:
13893
+ case P.Illustration:
13967
13894
  return s.setColor((a == null ? void 0 : a.toString()) || "", t.getColor() || "");
13968
13895
  }
13969
13896
  });
@@ -13983,12 +13910,12 @@ class Ja extends Zn {
13983
13910
  return ((t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)) == null ? void 0 : t.customColor) || ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) || "#ffffff";
13984
13911
  }
13985
13912
  }
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(
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(
13988
13915
  r,
13989
13916
  t,
13990
13917
  e,
13991
- I.Illustration
13918
+ P.Illustration
13992
13919
  ).map((i) => {
13993
13920
  var l;
13994
13921
  const s = (l = i.getCurrentVariant()) == null ? void 0 : l.getAssetResource(), o = i.getColors();
@@ -13996,7 +13923,7 @@ const cl = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlo
13996
13923
  });
13997
13924
  return Math.max(...n);
13998
13925
  };
13999
- class Al {
13926
+ class cl {
14000
13927
  constructor(t, e, a, n, i) {
14001
13928
  this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
14002
13929
  const s = i == null ? void 0 : i.existingGlobalPropertyState;
@@ -14172,7 +14099,7 @@ class Al {
14172
14099
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
14173
14100
  }
14174
14101
  }
14175
- class ul {
14102
+ class dl {
14176
14103
  constructor(t) {
14177
14104
  this.setState(t);
14178
14105
  }
@@ -14260,7 +14187,7 @@ class ul {
14260
14187
  };
14261
14188
  }
14262
14189
  }
14263
- const hl = v`
14190
+ const Al = v`
14264
14191
  query GetManyMetafields($entityIds: [String!]!) {
14265
14192
  metafieldsMany(entityIds: $entityIds) {
14266
14193
  id
@@ -14272,7 +14199,7 @@ const hl = v`
14272
14199
  }
14273
14200
  }
14274
14201
  `;
14275
- class ml {
14202
+ class ul {
14276
14203
  constructor() {
14277
14204
  this.internalMap = /* @__PURE__ */ new Map();
14278
14205
  }
@@ -14294,7 +14221,7 @@ class ml {
14294
14221
  if (t.every((a) => this.internalMap.has(a)))
14295
14222
  return;
14296
14223
  const e = await B.getShadowGraphqlClient().query({
14297
- query: hl,
14224
+ query: Al,
14298
14225
  errorPolicy: "all",
14299
14226
  variables: {
14300
14227
  entityIds: t.filter((a) => !this.internalMap.has(a))
@@ -14335,8 +14262,8 @@ class ml {
14335
14262
  return JSON.parse(n.value);
14336
14263
  }
14337
14264
  }
14338
- const gl = new ml();
14339
- var pl = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(pl || {});
14265
+ const hl = new ul();
14266
+ var ml = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(ml || {});
14340
14267
  class tr {
14341
14268
  constructor(t) {
14342
14269
  this.fullFetched = !1, this.collection = t;
@@ -14382,7 +14309,7 @@ class tr {
14382
14309
  if (this.fullFetched)
14383
14310
  return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
14384
14311
  const e = await B.getShadowGraphqlClient().query({
14385
- query: Hs,
14312
+ query: js,
14386
14313
  variables: {
14387
14314
  id: this.getId(),
14388
14315
  productIds: t
@@ -14399,7 +14326,7 @@ class tr {
14399
14326
  async filterProducts(t, e, a, n) {
14400
14327
  var l, c;
14401
14328
  const i = await B.getShadowGraphqlClient().query({
14402
- query: js,
14329
+ query: Hs,
14403
14330
  errorPolicy: "all",
14404
14331
  variables: {
14405
14332
  id: this.getId(),
@@ -14487,7 +14414,7 @@ class tr {
14487
14414
  }
14488
14415
  getTransformCollection() {
14489
14416
  if (this.collection.transformCollection)
14490
- return new fl(this.collection.transformCollection);
14417
+ return new gl(this.collection.transformCollection);
14491
14418
  }
14492
14419
  /**
14493
14420
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14559,12 +14486,12 @@ class de {
14559
14486
  if (e) {
14560
14487
  const a = t.find((n) => n.workflowName === e);
14561
14488
  if (a)
14562
- return new Ht(a);
14489
+ return new jt(a);
14563
14490
  }
14564
14491
  if (t.length === 1)
14565
14492
  return console.warn(
14566
14493
  "Called getDefaultWorkflow() but no default was configured. There is only one workflow available so we will fall back to using this!"
14567
- ), new Ht(t[0]);
14494
+ ), new jt(t[0]);
14568
14495
  throw new ut(
14569
14496
  "Called getDefaultWorkflow() but no default workflow is configured for the requested product. Multiple workflows exist so we can't assume!"
14570
14497
  );
@@ -14577,7 +14504,7 @@ class de {
14577
14504
  throw new ut(
14578
14505
  "No workflows on configured product. Ensure at least 1 workflow is assigned to this product."
14579
14506
  );
14580
- return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Ht(e));
14507
+ return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
14581
14508
  }
14582
14509
  /**
14583
14510
  * A list of all integrations this product is connected to.
@@ -14629,10 +14556,10 @@ class de {
14629
14556
  * @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.
14630
14557
  */
14631
14558
  async requestMetafields(t) {
14632
- return gl.requestKeysForEntity(this.product.id, t);
14559
+ return hl.requestKeysForEntity(this.product.id, t);
14633
14560
  }
14634
14561
  }
14635
- class Ht {
14562
+ class jt {
14636
14563
  constructor(t) {
14637
14564
  this.workflow = t;
14638
14565
  }
@@ -14656,7 +14583,7 @@ class Ht {
14656
14583
  return this.workflow.imageUrl;
14657
14584
  }
14658
14585
  }
14659
- class fl {
14586
+ class gl {
14660
14587
  constructor(t) {
14661
14588
  this.collection = t;
14662
14589
  }
@@ -14676,10 +14603,10 @@ class fl {
14676
14603
  * @returns The transforms in this collection.
14677
14604
  */
14678
14605
  getTransforms() {
14679
- return this.collection.transforms.map((t) => new Cl(t));
14606
+ return this.collection.transforms.map((t) => new pl(t));
14680
14607
  }
14681
14608
  }
14682
- class Cl {
14609
+ class pl {
14683
14610
  constructor(t) {
14684
14611
  this.transform = t;
14685
14612
  }
@@ -14706,24 +14633,24 @@ class Cl {
14706
14633
  };
14707
14634
  }
14708
14635
  }
14709
- const wl = v`
14636
+ const fl = v`
14710
14637
  ${re(!1)}
14711
14638
  query GetProductCollections($ids: [String!]!) {
14712
14639
  productCollections(ids: $ids) {
14713
14640
  ...ProductCollectionFields
14714
14641
  }
14715
14642
  }
14716
- `, cd = async (r) => {
14643
+ `, od = async (r) => {
14717
14644
  var e, a;
14718
14645
  return (a = (e = (await B.getShadowGraphqlClient().query({
14719
- query: wl,
14646
+ query: fl,
14720
14647
  errorPolicy: "all",
14721
14648
  variables: {
14722
14649
  ids: r
14723
14650
  }
14724
14651
  })).data) == null ? void 0 : e.productCollections) == null ? void 0 : a.map((n) => new tr(n));
14725
14652
  };
14726
- class yl {
14653
+ class Cl {
14727
14654
  constructor() {
14728
14655
  this.listeners = {};
14729
14656
  }
@@ -14750,7 +14677,7 @@ class yl {
14750
14677
  delete this.listeners[e];
14751
14678
  }
14752
14679
  }
14753
- const Sl = v`
14680
+ const wl = v`
14754
14681
  mutation AddAddressToBundle(
14755
14682
  $bundleId: String!
14756
14683
  $streetAddress: String
@@ -14772,13 +14699,13 @@ const Sl = v`
14772
14699
  id
14773
14700
  }
14774
14701
  }
14775
- `, vl = v`
14702
+ `, yl = v`
14776
14703
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14777
14704
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14778
14705
  id
14779
14706
  }
14780
14707
  }
14781
- `, El = v`
14708
+ `, Sl = v`
14782
14709
  mutation GenerateQuoteId($id: String!) {
14783
14710
  bundleGenerateQuoteId(id: $id) {
14784
14711
  id
@@ -14789,15 +14716,15 @@ const Sl = v`
14789
14716
  class Je {
14790
14717
  constructor(t, e, a, n, i, s) {
14791
14718
  var c, d, A;
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);
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);
14793
14720
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14794
- this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new Al(
14721
+ this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new cl(
14795
14722
  this.id,
14796
14723
  this.ownerId,
14797
14724
  o,
14798
14725
  this.checkConditionalHandlesChanged.bind(this),
14799
14726
  s
14800
- ), this.globalPropertyHandleService = new sl(this), this.setPreviewService(a);
14727
+ ), this.globalPropertyHandleService = new rl(this), this.setPreviewService(a);
14801
14728
  const l = new Promise((u, h) => {
14802
14729
  if (s != null && s.readonly) {
14803
14730
  u([]);
@@ -14832,7 +14759,7 @@ class Je {
14832
14759
  async generateQuoteId() {
14833
14760
  var a, n;
14834
14761
  const e = (n = (a = (await B.getShadowGraphqlClient().mutate({
14835
- mutation: El,
14762
+ mutation: Sl,
14836
14763
  variables: {
14837
14764
  id: this.id
14838
14765
  },
@@ -14844,7 +14771,7 @@ class Je {
14844
14771
  }
14845
14772
  async attachAddress(t, e, a, n, i, s) {
14846
14773
  await B.getShadowGraphqlClient().mutate({
14847
- mutation: Sl,
14774
+ mutation: wl,
14848
14775
  variables: {
14849
14776
  bundleId: this.id,
14850
14777
  streetAddress: t || void 0,
@@ -14861,7 +14788,7 @@ class Je {
14861
14788
  }
14862
14789
  async attachOrganization(t) {
14863
14790
  await B.getShadowGraphqlClient().mutate({
14864
- mutation: vl,
14791
+ mutation: yl,
14865
14792
  variables: {
14866
14793
  bundleId: this.id,
14867
14794
  organizationName: t
@@ -14994,14 +14921,14 @@ class Je {
14994
14921
  }
14995
14922
  async initializeAdditionalRequiredColorChannels(t) {
14996
14923
  var e, a, n, i;
14997
- for (const s of t.getStepsByType(I.Illustration)) {
14924
+ for (const s of t.getStepsByType(P.Illustration)) {
14998
14925
  const o = s.getGlobalPropertyAspects(this.globalConfigurationPropertyId || "");
14999
14926
  for (const l of o) {
15000
14927
  const c = (e = this.getGlobalPropertyConfiguration()) == null ? void 0 : e.aspects.find(
15001
14928
  (d) => d.name === l
15002
14929
  );
15003
14930
  if (c && c.type === z.ColorOption) {
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(
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(
15005
14932
  this.getWorkflowExperiences(),
15006
14933
  this.globalConfigurationPropertyId || "",
15007
14934
  l
@@ -15511,14 +15438,14 @@ class Je {
15511
15438
  };
15512
15439
  }
15513
15440
  }
15514
- const bl = v`
15441
+ const vl = v`
15515
15442
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15516
15443
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15517
15444
  id
15518
15445
  }
15519
15446
  }
15520
15447
  `;
15521
- class Bl {
15448
+ class El {
15522
15449
  /**
15523
15450
  *
15524
15451
  * @param id
@@ -15529,7 +15456,7 @@ class Bl {
15529
15456
  async execute(t, e, a) {
15530
15457
  var A, u, h;
15531
15458
  const i = (u = (A = (await B.getShadowGraphqlClient().mutate({
15532
- mutation: bl,
15459
+ mutation: vl,
15533
15460
  variables: {
15534
15461
  processFlowId: t,
15535
15462
  inputs: [...e.map((m) => m.getValueForTransmission())]
@@ -15571,7 +15498,7 @@ class Bl {
15571
15498
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15572
15499
  );
15573
15500
  if (m.completedAt) {
15574
- o = !0, d = new Il(m);
15501
+ o = !0, d = new bl(m);
15575
15502
  break;
15576
15503
  }
15577
15504
  l += 1;
@@ -15585,7 +15512,7 @@ class Bl {
15585
15512
  return Promise.resolve(d);
15586
15513
  }
15587
15514
  }
15588
- class Il {
15515
+ class bl {
15589
15516
  constructor(t) {
15590
15517
  this.execution = t;
15591
15518
  }
@@ -15670,8 +15597,8 @@ class Pa {
15670
15597
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15671
15598
  }
15672
15599
  }
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 {
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 {
15675
15602
  constructor(t) {
15676
15603
  super(`"${t}"`);
15677
15604
  }
@@ -15686,7 +15613,7 @@ class er extends Pa {
15686
15613
  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);
15687
15614
  }
15688
15615
  }
15689
- class Ad extends Pa {
15616
+ class cd extends Pa {
15690
15617
  constructor(t) {
15691
15618
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15692
15619
  }
@@ -15720,7 +15647,7 @@ class Ka {
15720
15647
  throw new Error(
15721
15648
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
15722
15649
  );
15723
- return new Ht(t[0]);
15650
+ return new jt(t[0]);
15724
15651
  }
15725
15652
  getAllWorkflows() {
15726
15653
  if (!this.integrationProduct.product)
@@ -15730,7 +15657,7 @@ class Ka {
15730
15657
  throw new Error(
15731
15658
  "No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
15732
15659
  );
15733
- return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Ht(e));
15660
+ return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
15734
15661
  }
15735
15662
  }
15736
15663
  const ue = v`
@@ -15744,7 +15671,7 @@ const ue = v`
15744
15671
  }
15745
15672
  }
15746
15673
  }
15747
- `, Dl = v`
15674
+ `, Il = v`
15748
15675
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15749
15676
  customerCreate(details: $details) {
15750
15677
  id
@@ -15786,7 +15713,7 @@ v`
15786
15713
  }
15787
15714
  }
15788
15715
  `;
15789
- const Fl = v`
15716
+ const Pl = v`
15790
15717
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15791
15718
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15792
15719
  }
@@ -15823,7 +15750,7 @@ v`
15823
15750
  }
15824
15751
  }
15825
15752
  `;
15826
- const xl = v`
15753
+ const Dl = v`
15827
15754
  query CustomerMetafields($id: String!) {
15828
15755
  metafields(entityId: $id) {
15829
15756
  id
@@ -15842,7 +15769,7 @@ const xl = v`
15842
15769
  }
15843
15770
  }
15844
15771
  `;
15845
- class kl {
15772
+ class Fl {
15846
15773
  constructor(t, e = B.getShadowGraphqlClient.bind(B)) {
15847
15774
  this.options = t, this.client = e;
15848
15775
  }
@@ -15871,7 +15798,7 @@ class kl {
15871
15798
  });
15872
15799
  }
15873
15800
  }
15874
- class Ml {
15801
+ class xl {
15875
15802
  init(t, e, a) {
15876
15803
  this.cognitoClient = new Cr({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15877
15804
  }
@@ -15923,8 +15850,8 @@ class Ml {
15923
15850
  ));
15924
15851
  }
15925
15852
  }
15926
- const Lt = new Ml();
15927
- class Tl {
15853
+ const Lt = new xl();
15854
+ class kl {
15928
15855
  /**
15929
15856
  * Returns a formatted string representing a given amount with desired currency.
15930
15857
  * @param currency The currency to represent the amount in.
@@ -15958,8 +15885,8 @@ class Tl {
15958
15885
  return "USD0,0";
15959
15886
  }
15960
15887
  }
15961
- const _a = new Tl();
15962
- class Nl {
15888
+ const _a = new kl();
15889
+ class Ml {
15963
15890
  constructor(t, e, a, n) {
15964
15891
  this.presentmentCurrency = void 0, this.presentmentCurrency = n, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
15965
15892
  }
@@ -15999,7 +15926,7 @@ class Nl {
15999
15926
  return t * Math.pow(10, _a.getPrecisionForCurrency(e));
16000
15927
  }
16001
15928
  }
16002
- const Ql = async (r, t) => {
15929
+ const Tl = async (r, t) => {
16003
15930
  var n;
16004
15931
  const e = await B.getShadowGraphqlClient().query({
16005
15932
  query: Ti(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
@@ -16023,7 +15950,7 @@ const Ql = async (r, t) => {
16023
15950
  }), Jt.set({ id: s.option.id }, Promise.resolve(s.option)));
16024
15951
  }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
16025
15952
  }), a;
16026
- }, Rl = async (r, t) => {
15953
+ }, Nl = async (r, t) => {
16027
15954
  const a = (await t).find((n) => n.id === r);
16028
15955
  if (!a)
16029
15956
  throw new Error(`Workflow not found: ${r}`);
@@ -16032,11 +15959,11 @@ const Ql = async (r, t) => {
16032
15959
  const e = r.map((o) => Jt.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
16033
15960
  if (a.length === 0)
16034
15961
  return Promise.all(e);
16035
- const n = Ql(a, t), i = a.map(
16036
- (o) => Jt.set({ id: o, options: t }, Rl(o, n))
15962
+ const n = Tl(a, t), i = a.map(
15963
+ (o) => Jt.set({ id: o, options: t }, Nl(o, n))
16037
15964
  ), s = e.filter((o) => o !== void 0);
16038
15965
  return await Promise.all(s.concat(i));
16039
- }, ud = async (r, t) => (await ar([r], t))[0], Ol = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15966
+ }, dd = async (r, t) => (await ar([r], t))[0], Ql = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
16040
15967
  id: Q(),
16041
15968
  panelId: t.name,
16042
15969
  name: t.name,
@@ -16050,11 +15977,11 @@ const Ql = async (r, t) => {
16050
15977
  previewRegion: t.previewRegion,
16051
15978
  useEditableArea: t.useEditableArea,
16052
15979
  editableArea: t.editableArea
16053
- })), $l = (r, t) => {
15980
+ })), Rl = (r, t) => {
16054
15981
  const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
16055
- return a ? Object.values(a.layouts).map((n) => n.layout) : Ol(t.panels);
15982
+ return a ? Object.values(a.layouts).map((n) => n.layout) : Ql(t.panels);
16056
15983
  };
16057
- class hd {
15984
+ class Ad {
16058
15985
  constructor(t) {
16059
15986
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
16060
15987
  try {
@@ -16080,7 +16007,7 @@ class hd {
16080
16007
  getFlowService() {
16081
16008
  if (!Ur())
16082
16009
  throw new Error("Application key required to use Flow Service.");
16083
- return new Bl();
16010
+ return new El();
16084
16011
  }
16085
16012
  async getCurrencyContext(t) {
16086
16013
  const a = (await this.getIntegration()).partner.currencyCode, i = await B.getShadowGraphqlClient().query({
@@ -16092,14 +16019,14 @@ class hd {
16092
16019
  to: t
16093
16020
  }
16094
16021
  }), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
16095
- return new Nl(s, o, a, t);
16022
+ return new Ml(s, o, a, t);
16096
16023
  }
16097
16024
  async getIntegration() {
16098
16025
  if (this.activeIntegration)
16099
16026
  return this.activeIntegration;
16100
16027
  if (!this.options.applicationKey)
16101
16028
  throw new Error("Cannot get current Integration without specifying an Application Key.");
16102
- return this.activeIntegration = Ul(this.options.applicationKey), this.activeIntegration;
16029
+ return this.activeIntegration = Ol(this.options.applicationKey), this.activeIntegration;
16103
16030
  }
16104
16031
  async canUseAddon(t) {
16105
16032
  var e;
@@ -16245,7 +16172,7 @@ class hd {
16245
16172
  })).data.customer;
16246
16173
  if (!n.id) {
16247
16174
  const l = (s = (await e.mutate({
16248
- mutation: Dl,
16175
+ mutation: Il,
16249
16176
  errorPolicy: "all",
16250
16177
  fetchPolicy: "no-cache",
16251
16178
  variables: {
@@ -16303,7 +16230,7 @@ class hd {
16303
16230
  */
16304
16231
  async generateVerificationCode(t) {
16305
16232
  await B.getShadowGraphqlClient().mutate({
16306
- mutation: Fl,
16233
+ mutation: Pl,
16307
16234
  variables: {
16308
16235
  emailAddress: t
16309
16236
  }
@@ -16359,7 +16286,7 @@ class hd {
16359
16286
  if (!((e = this.customer) != null && e.id))
16360
16287
  throw new Error("Customer must be logged in before calling this function.");
16361
16288
  return (await B.getShadowGraphqlClient().query({
16362
- query: xl,
16289
+ query: Dl,
16363
16290
  variables: {
16364
16291
  id: this.customer.id
16365
16292
  }
@@ -16401,7 +16328,7 @@ class hd {
16401
16328
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16402
16329
  */
16403
16330
  async getExistingBundle(t, e, a, n) {
16404
- var m, g, p, f, C, w, S, y, E, b, P;
16331
+ var m, g, p, f, C, w, S, y, E, b, I;
16405
16332
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
16406
16333
  try {
16407
16334
  const D = await this.loggedInBearerToken();
@@ -16430,7 +16357,7 @@ class hd {
16430
16357
  A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
16431
16358
  const u = new Je(this, d, e, a, s, {
16432
16359
  additionalHeaders: (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.additionalHeaders,
16433
- eagerFetchProducts: (P = (b = n == null ? void 0 : n.graphql) == null ? void 0 : b.productCollection) == null ? void 0 : P.eagerFetchProducts,
16360
+ eagerFetchProducts: (I = (b = n == null ? void 0 : n.graphql) == null ? void 0 : b.productCollection) == null ? void 0 : I.eagerFetchProducts,
16434
16361
  existingGlobalPropertyState: c.data.globalPropertyState,
16435
16362
  readonly: n == null ? void 0 : n.readonly
16436
16363
  });
@@ -16565,12 +16492,12 @@ class hd {
16565
16492
  },
16566
16493
  errorPolicy: "all",
16567
16494
  fetchPolicy: "no-cache"
16568
- }), P = b.data.transactions;
16569
- if (P.length !== y.length) {
16495
+ }), I = b.data.transactions;
16496
+ if (I.length !== y.length) {
16570
16497
  const T = ((F = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16571
16498
  throw new ut(`Not all transactions were found: ${T}`);
16572
16499
  }
16573
- return !this.activeIntegration && ((k = P[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(P[0].integrationProduct.integration)), P.map((T, Z) => {
16500
+ return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((T, Z) => {
16574
16501
  var R;
16575
16502
  return {
16576
16503
  transaction: T,
@@ -16580,7 +16507,7 @@ class hd {
16580
16507
  };
16581
16508
  });
16582
16509
  }, i = async (y) => {
16583
- var P, D, F;
16510
+ var I, D, F;
16584
16511
  if (y.length === 0)
16585
16512
  return [];
16586
16513
  const E = await a.mutate({
@@ -16599,7 +16526,7 @@ class hd {
16599
16526
  },
16600
16527
  errorPolicy: "all",
16601
16528
  fetchPolicy: "no-cache"
16602
- }), b = (P = E.data) == null ? void 0 : P.transactionCreateMany;
16529
+ }), b = (I = E.data) == null ? void 0 : I.transactionCreateMany;
16603
16530
  if (!b || b.length === 0) {
16604
16531
  const k = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16605
16532
  throw new ut(`Failed to create transactions: ${k}`);
@@ -16617,9 +16544,9 @@ class hd {
16617
16544
  ...d.map(i)
16618
16545
  ])).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) => {
16619
16546
  var et;
16620
- const { transaction: E, workflowId: b, readOnly: P, index: D } = y, F = m.get(b), k = t[D];
16547
+ const { transaction: E, workflowId: b, readOnly: I, index: D } = y, F = m.get(b), k = t[D];
16621
16548
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16622
- const T = g.get(E.id) || void 0, Z = new kl({
16549
+ const T = g.get(E.id) || void 0, Z = new Fl({
16623
16550
  onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
16624
16551
  onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
16625
16552
  }), R = {
@@ -16627,33 +16554,33 @@ class hd {
16627
16554
  transaction: E,
16628
16555
  layouts: [],
16629
16556
  singleVariantsRenderable: (et = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : et.singleVariantsRenderable,
16630
- stateMutationFunc: P ? async () => {
16557
+ stateMutationFunc: I ? async () => {
16631
16558
  throw new G("State mutation is forbidden in read only mode!");
16632
16559
  } : async (tt) => this.updateTransactionState({
16633
16560
  ...tt,
16634
16561
  context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
16635
16562
  }),
16636
16563
  graphQlClient: () => Z,
16637
- readOnly: P,
16564
+ readOnly: I,
16638
16565
  workflow: F,
16639
16566
  isReloadedTransaction: k.type === "transaction"
16640
16567
  };
16641
- if (!P && k.workflowState) {
16568
+ if (!I && k.workflowState) {
16642
16569
  const tt = JSON.parse(k.workflowState);
16643
16570
  R.layouts = Object.values(tt.layouts || {}).map((Nt) => Nt.layout), await cs(tt), R.reloadedState = tt;
16644
16571
  } else
16645
- R.layouts = $l(
16572
+ R.layouts = Rl(
16646
16573
  R.transaction,
16647
16574
  R.workflow
16648
16575
  );
16649
- return R.renderableContextService = new el(
16576
+ return R.renderableContextService = new Zo(
16650
16577
  R.layouts
16651
16578
  ), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
16652
16579
  }), f = await Promise.all(p);
16653
16580
  N.setMap("transactionOwnerIds", g);
16654
16581
  const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
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;
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;
16657
16584
  }), S = await Promise.all(w);
16658
16585
  return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
16659
16586
  }
@@ -16726,7 +16653,7 @@ class hd {
16726
16653
  };
16727
16654
  }
16728
16655
  }
16729
- const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16656
+ const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
16730
16657
  query: Oi,
16731
16658
  errorPolicy: "all",
16732
16659
  fetchPolicy: "no-cache",
@@ -16738,7 +16665,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16738
16665
  variables: {
16739
16666
  themeConfigurationId: t
16740
16667
  }
16741
- })).data.currentIntegration, md = async (r) => {
16668
+ })).data.currentIntegration, ud = async (r) => {
16742
16669
  const e = await B.getShadowGraphqlClient().query({
16743
16670
  query: Ei,
16744
16671
  errorPolicy: "all",
@@ -16749,7 +16676,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16749
16676
  });
16750
16677
  if (e.data.transactions.length !== 0)
16751
16678
  return e.data.transactions[0];
16752
- }, gd = async (r, t) => {
16679
+ }, hd = async (r, t) => {
16753
16680
  var a;
16754
16681
  return (a = (await B.getShadowGraphqlClient().query({
16755
16682
  query: Ri,
@@ -16759,7 +16686,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16759
16686
  themeInstallId: t
16760
16687
  }
16761
16688
  })).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
16762
- }, pd = async (r) => {
16689
+ }, md = async (r) => {
16763
16690
  var e, a, n;
16764
16691
  return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16765
16692
  query: Ui,
@@ -16768,7 +16695,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16768
16695
  id: r
16769
16696
  }
16770
16697
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16771
- }, fd = async (r) => {
16698
+ }, gd = async (r) => {
16772
16699
  var e, a, n;
16773
16700
  return (n = (a = (e = (await B.getShadowGraphqlClient().query({
16774
16701
  query: $i,
@@ -16778,7 +16705,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
16778
16705
  }
16779
16706
  })).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
16780
16707
  };
16781
- function Ll(r, t, e, a) {
16708
+ function $l(r, t, e, a) {
16782
16709
  const n = e.width * r.zoom, i = e.height * r.zoom;
16783
16710
  if (a) {
16784
16711
  const o = r, l = Math.max(t.width / e.width, t.height / e.height);
@@ -16792,7 +16719,7 @@ function Ll(r, t, e, a) {
16792
16719
  function he(r, t, e) {
16793
16720
  return Math.min(Math.max(r, t), e);
16794
16721
  }
16795
- class Vl {
16722
+ class Ul {
16796
16723
  constructor(t, e) {
16797
16724
  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 = {
16798
16725
  useThreshold: !1,
@@ -16935,7 +16862,7 @@ class Vl {
16935
16862
  return;
16936
16863
  }
16937
16864
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
16938
- this.offsets[o] = Ll(t[o], s, this.imageData, this.forceImageCover);
16865
+ this.offsets[o] = $l(t[o], s, this.imageData, this.forceImageCover);
16939
16866
  }), this._debouncedUpdateFrameOffsets(
16940
16867
  this.offsets,
16941
16868
  n,
@@ -17014,7 +16941,7 @@ class Vl {
17014
16941
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
17015
16942
  }
17016
16943
  }
17017
- class Cd {
16944
+ class pd {
17018
16945
  updateRecipient(t, e, a, n, i, s, o, l, c, d) {
17019
16946
  throw new Error("Method not implemented.");
17020
16947
  }
@@ -17176,12 +17103,12 @@ class Cd {
17176
17103
  return [];
17177
17104
  }
17178
17105
  }
17179
- var zl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(zl || {});
17180
- class Gl extends it {
17106
+ var Ll = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(Ll || {});
17107
+ class Vl extends it {
17181
17108
  constructor(t, e, a) {
17182
17109
  super(t, e, a);
17183
17110
  const n = e.data;
17184
- this.frameService = new Vl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17111
+ this.frameService = new Ul(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17185
17112
  }
17186
17113
  selectVariant(t) {
17187
17114
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -17350,7 +17277,7 @@ class Gl extends it {
17350
17277
  return this.manager.getStepStorage(this.step.stepName);
17351
17278
  }
17352
17279
  }
17353
- const Wl = v`
17280
+ const zl = v`
17354
17281
  query GetLoggedInCustomer($email: String!) {
17355
17282
  customer(emailAddress: $email) {
17356
17283
  id
@@ -17393,21 +17320,21 @@ const Wl = v`
17393
17320
  total
17394
17321
  }
17395
17322
  }
17396
- `, Hl = v`
17323
+ `, Gl = v`
17397
17324
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17398
17325
  transactionUpdate(id: $id, designName: $name) {
17399
17326
  id
17400
17327
  designName
17401
17328
  }
17402
17329
  }
17403
- `, jl = v`
17330
+ `, Wl = v`
17404
17331
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17405
17332
  transactionDuplicate(id: $id, template: $template) {
17406
17333
  id
17407
17334
  workflowViewerLink
17408
17335
  }
17409
17336
  }
17410
- `, ql = v`
17337
+ `, jl = v`
17411
17338
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17412
17339
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17413
17340
  items {
@@ -17422,7 +17349,7 @@ const Wl = v`
17422
17349
  total
17423
17350
  }
17424
17351
  }
17425
- `, Yl = v`
17352
+ `, Hl = v`
17426
17353
  query GetTransactionsForBundle($id: String!) {
17427
17354
  bundles(ids: [$id]) {
17428
17355
  id
@@ -17443,21 +17370,21 @@ const Wl = v`
17443
17370
  }
17444
17371
  }
17445
17372
  }
17446
- `, Jl = v`
17373
+ `, ql = v`
17447
17374
  mutation SetBundleName($id: String!, $name: String!) {
17448
17375
  bundleUpdate(id: $id, name: $name) {
17449
17376
  id
17450
17377
  name
17451
17378
  }
17452
17379
  }
17453
- `, Kl = v`
17380
+ `, Yl = v`
17454
17381
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17455
17382
  bundleDuplicate(id: $id, template: $template) {
17456
17383
  id
17457
17384
  workflowViewerLink
17458
17385
  }
17459
17386
  }
17460
- `, _l = v`
17387
+ `, Jl = v`
17461
17388
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17462
17389
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17463
17390
  items {
@@ -17470,43 +17397,43 @@ const Wl = v`
17470
17397
  total
17471
17398
  }
17472
17399
  }
17473
- `, wd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17474
- mutation: Jl,
17400
+ `, fd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
17401
+ mutation: ql,
17475
17402
  errorPolicy: "all",
17476
17403
  variables: {
17477
17404
  id: r,
17478
17405
  name: t
17479
17406
  },
17480
17407
  context: e
17481
- }), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17482
- mutation: Hl,
17408
+ }), Cd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17409
+ mutation: Gl,
17483
17410
  errorPolicy: "all",
17484
17411
  variables: {
17485
17412
  id: r,
17486
17413
  name: t
17487
17414
  }
17488
- }), Sd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17489
- mutation: Kl,
17415
+ }), wd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17416
+ mutation: Yl,
17490
17417
  errorPolicy: "all",
17491
17418
  variables: {
17492
17419
  id: r,
17493
17420
  template: t
17494
17421
  }
17495
- }), vd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17496
- mutation: jl,
17422
+ }), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
17423
+ mutation: Wl,
17497
17424
  errorPolicy: "all",
17498
17425
  variables: {
17499
17426
  id: r,
17500
17427
  template: t
17501
17428
  }
17502
- }), Ed = async (r) => (await B.getShadowGraphqlClient().query({
17503
- query: Wl,
17429
+ }), Sd = async (r) => (await B.getShadowGraphqlClient().query({
17430
+ query: zl,
17504
17431
  errorPolicy: "all",
17505
17432
  variables: {
17506
17433
  email: r
17507
17434
  }
17508
- })).data.customer, bd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17509
- query: ql,
17435
+ })).data.customer, vd = async (r, t, e) => await B.getShadowGraphqlClient().query({
17436
+ query: jl,
17510
17437
  errorPolicy: "all",
17511
17438
  fetchPolicy: "no-cache",
17512
17439
  variables: {
@@ -17514,15 +17441,15 @@ const Wl = v`
17514
17441
  offset: e,
17515
17442
  limit: t
17516
17443
  }
17517
- }), Bd = async (r, t) => await B.getShadowGraphqlClient().query({
17518
- query: Yl,
17444
+ }), Ed = async (r, t) => await B.getShadowGraphqlClient().query({
17445
+ query: Hl,
17519
17446
  errorPolicy: "all",
17520
17447
  fetchPolicy: "no-cache",
17521
17448
  variables: {
17522
17449
  id: r
17523
17450
  },
17524
17451
  context: t
17525
- }), Id = async (r, t, e) => {
17452
+ }), bd = async (r, t, e) => {
17526
17453
  var n;
17527
17454
  const a = await B.getShadowGraphqlClient().query({
17528
17455
  query: Da,
@@ -17546,7 +17473,7 @@ const Wl = v`
17546
17473
  }
17547
17474
  });
17548
17475
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17549
- }, Pd = async (r, t, e) => {
17476
+ }, Bd = async (r, t, e) => {
17550
17477
  var n;
17551
17478
  const a = await B.getShadowGraphqlClient().query({
17552
17479
  query: Da,
@@ -17570,7 +17497,7 @@ const Wl = v`
17570
17497
  }
17571
17498
  });
17572
17499
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17573
- }, Dd = async (r, t, e) => {
17500
+ }, Id = async (r, t, e) => {
17574
17501
  var n;
17575
17502
  const a = await B.getShadowGraphqlClient().query({
17576
17503
  query: Da,
@@ -17590,10 +17517,10 @@ const Wl = v`
17590
17517
  }
17591
17518
  });
17592
17519
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
17593
- }, Fd = async (r, t, e) => {
17520
+ }, Pd = async (r, t, e) => {
17594
17521
  var n;
17595
17522
  const a = await B.getShadowGraphqlClient().query({
17596
- query: _l,
17523
+ query: Jl,
17597
17524
  errorPolicy: "all",
17598
17525
  fetchPolicy: "no-cache",
17599
17526
  variables: {
@@ -17614,7 +17541,7 @@ const Wl = v`
17614
17541
  console.error("vite-plugin-css-injected-by-js", t);
17615
17542
  }
17616
17543
  })();
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;
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;
17618
17545
  K = { __e: function(r, t, e, a) {
17619
17546
  for (var n, i, s; t = t.__; )
17620
17547
  if ((n = t.__c) && !n.__)
@@ -17627,7 +17554,7 @@ K = { __e: function(r, t, e, a) {
17627
17554
  throw r;
17628
17555
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17629
17556
  var ot, Ke, Xa, nr = [], _e = [], Za = K.__b, tn = K.__r, en = K.diffed, an = K.__c, nn = K.unmount;
17630
- function tc() {
17557
+ function Xl() {
17631
17558
  for (var r; r = nr.shift(); )
17632
17559
  if (r.__P && r.__H)
17633
17560
  try {
@@ -17647,7 +17574,7 @@ K.__b = function(r) {
17647
17574
  }, K.diffed = function(r) {
17648
17575
  en && en(r);
17649
17576
  var t = r.__c;
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) {
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) {
17651
17578
  e.i && (e.__H = e.i), e.__V !== _e && (e.__ = e.__V), e.i = void 0, e.__V = _e;
17652
17579
  })), Ke = ot = null;
17653
17580
  }, K.__c = function(r, t) {
@@ -17674,7 +17601,7 @@ K.__b = function(r) {
17674
17601
  }), e.__H = void 0, t && K.__e(t, e.__v));
17675
17602
  };
17676
17603
  var rn = typeof requestAnimationFrame == "function";
17677
- function ec(r) {
17604
+ function Zl(r) {
17678
17605
  var t, e = function() {
17679
17606
  clearTimeout(a), rn && cancelAnimationFrame(t), setTimeout(r);
17680
17607
  }, a = setTimeout(e, 100);
@@ -17722,14 +17649,14 @@ const rr = v`
17722
17649
  ...AddressValidationResultFields
17723
17650
  }
17724
17651
  }
17725
- `, ac = v`
17652
+ `, tc = v`
17726
17653
  ${Fa}
17727
17654
  query GetAddressValidationJobs($ids: [String!]!) {
17728
17655
  addressValidationJobs(ids: $ids) {
17729
17656
  ...AddressValidationJobFields
17730
17657
  }
17731
17658
  }
17732
- `, nc = v`
17659
+ `, ec = v`
17733
17660
  ${Fa}
17734
17661
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17735
17662
  recipients(ids: $ids) {
@@ -17739,14 +17666,14 @@ const rr = v`
17739
17666
  }
17740
17667
  }
17741
17668
  }
17742
- `, rc = v`
17669
+ `, ac = v`
17743
17670
  ${rr}
17744
17671
  mutation ValidateRecipientAddress($id: String!) {
17745
17672
  recipientValidate(id: $id) {
17746
17673
  ...AddressValidationResultFields
17747
17674
  }
17748
17675
  }
17749
- `, ic = v`
17676
+ `, nc = v`
17750
17677
  ${Fa}
17751
17678
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17752
17679
  recipientValidateBatch(ids: $ids) {
@@ -17754,13 +17681,13 @@ const rr = v`
17754
17681
  }
17755
17682
  }
17756
17683
  `;
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) => {
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) => {
17759
17686
  const t = r.map((a) => {
17760
17687
  var n;
17761
17688
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17762
17689
  }).filter((a) => !!a), e = await B.getShadowGraphqlClient().query({
17763
- query: nc,
17690
+ query: ec,
17764
17691
  errorPolicy: "all",
17765
17692
  fetchPolicy: "network-only",
17766
17693
  variables: {
@@ -17773,32 +17700,32 @@ const xd = async (r) => {
17773
17700
  if (n)
17774
17701
  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;
17775
17702
  });
17776
- }, kd = async (r) => {
17703
+ }, Fd = async (r) => {
17777
17704
  var e;
17778
17705
  return (e = (await B.getShadowGraphqlClient().query({
17779
- query: ac,
17706
+ query: tc,
17780
17707
  errorPolicy: "all",
17781
17708
  fetchPolicy: "network-only",
17782
17709
  variables: {
17783
17710
  ids: r
17784
17711
  }
17785
17712
  })).data) == null ? void 0 : e.addressValidationJobs;
17786
- }, Md = async (r) => {
17713
+ }, xd = async (r) => {
17787
17714
  var e, a;
17788
17715
  return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await B.getShadowGraphqlClient().mutate({
17789
- mutation: rc,
17716
+ mutation: ac,
17790
17717
  errorPolicy: "all",
17791
17718
  fetchPolicy: "network-only",
17792
17719
  variables: {
17793
17720
  id: r.getWorkflowManager().getTransaction().recipient.id
17794
17721
  }
17795
17722
  })).data) == null ? void 0 : a.recipientValidate : void 0;
17796
- }, Td = async (r) => {
17723
+ }, kd = async (r) => {
17797
17724
  const t = r.map((a) => {
17798
17725
  var n;
17799
17726
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
17800
17727
  }).filter((a) => !!a), e = await B.getShadowGraphqlClient().mutate({
17801
- mutation: ic,
17728
+ mutation: nc,
17802
17729
  errorPolicy: "all",
17803
17730
  fetchPolicy: "network-only",
17804
17731
  variables: {
@@ -17814,39 +17741,39 @@ const xd = async (r) => {
17814
17741
  };
17815
17742
  export {
17816
17743
  ua as AddonHandle,
17817
- oc as AddressValidationJobStatus,
17818
- sc as AddressValidationResultConfirmationLevel,
17819
- Ad as ArrayInput,
17744
+ ic as AddressValidationJobStatus,
17745
+ rc as AddressValidationResultConfirmationLevel,
17746
+ cd as ArrayInput,
17820
17747
  z as AspectType,
17821
17748
  St as AssetNotFoundError,
17822
17749
  Ce as AssetType,
17823
- rd as BringForwardCommand,
17824
- nd as BringToBackCommand,
17825
- ad as BringToFrontCommand,
17750
+ ad as BringForwardCommand,
17751
+ ed as BringToBackCommand,
17752
+ td as BringToFrontCommand,
17826
17753
  vr as BundleDesignCreationCartAddMode,
17827
17754
  O as CanvasCommand,
17828
17755
  de as CollectionProduct,
17829
17756
  Ja as ColorOptionGlobalPropertyHandle,
17830
17757
  os as CommandContext,
17831
- Zl as ConversionDataType,
17832
- Xl as ConversionLocation,
17758
+ _l as ConversionDataType,
17759
+ Kl as ConversionLocation,
17833
17760
  W as CreateElementCommand,
17834
17761
  Ln as CreateLayoutCommand,
17835
- Nl as CurrencyContext,
17836
- Tl as CurrencyService,
17762
+ Ml as CurrencyContext,
17763
+ kl as CurrencyService,
17837
17764
  Et as DeleteElementCommand,
17838
17765
  Po as DigitalContentStepHandle,
17839
- ol as FileUploadGlobalPropertyHandle,
17766
+ il as FileUploadGlobalPropertyHandle,
17840
17767
  Ae as FlowExecutionNodeResult,
17841
- Il as FlowExecutionResult,
17842
- Bl as FlowService,
17768
+ bl as FlowExecutionResult,
17769
+ El as FlowService,
17843
17770
  us as FontAlignmentCommand,
17844
17771
  ds as FontColorCommand,
17845
17772
  As as FontSizeCommand,
17846
17773
  Wa as FontSourceCommand,
17847
- Vl as FrameService,
17848
- zl as FrameStep,
17849
- Gl as FrameStepHandle,
17774
+ Ul as FrameService,
17775
+ Ll as FrameStep,
17776
+ Vl as FrameStepHandle,
17850
17777
  Ia as GlobalPropertyHandle,
17851
17778
  $ as GroupCommand,
17852
17779
  wo as IllustrationStepHandle,
@@ -17854,128 +17781,128 @@ export {
17854
17781
  Io as InformationStepHandle,
17855
17782
  Ka as IntegrationProduct,
17856
17783
  br as IntegrationType,
17857
- _c as LayoutElementFactory,
17784
+ Jc as LayoutElementFactory,
17858
17785
  M as LayoutElementType,
17859
17786
  Y as LayoutNotFoundError,
17860
- jt as LayoutRenderingPurpose,
17787
+ Ht as LayoutRenderingPurpose,
17861
17788
  yo as MaterialStepHandle,
17862
17789
  Se as MisconfigurationError,
17863
- Cd as MockWorkflowManager,
17790
+ pd as MockWorkflowManager,
17864
17791
  So as ModelStepHandle,
17865
17792
  Do as ModuleStepHandle,
17866
- Xc as MoveCommand,
17793
+ Kc as MoveCommand,
17867
17794
  er as ObjectInput,
17868
- Pl as ObjectInputType,
17795
+ Bl as ObjectInputType,
17869
17796
  Zn as OptionGlobalPropertyHandle,
17870
17797
  ye as OptionNotFoundError,
17871
17798
  Dt as ParseError,
17872
17799
  vo as PictureStepHandle,
17873
17800
  Br as ProductCameraRig,
17874
17801
  tr as ProductCollection,
17875
- pl as ProductCollectionProductSortKey,
17876
- Ht as ProductWorkflow,
17802
+ ml as ProductCollectionProductSortKey,
17803
+ jt as ProductWorkflow,
17877
17804
  Jt as PromiseCache,
17878
17805
  xn as PromiseQueue,
17879
17806
  Eo as QuestionStepHandle,
17880
17807
  Fn as QueueablePromise,
17881
- td as ResizeCommand,
17808
+ Xc as ResizeCommand,
17882
17809
  qt as ResourceNotFoundError,
17883
- Zc as RotateCommand,
17884
- j as ScaleAxis,
17885
- id as SendBackwardsCommand,
17810
+ _c as RotateCommand,
17811
+ H as ScaleAxis,
17812
+ nd as SendBackwardsCommand,
17886
17813
  bo as ShapeStepHandle,
17887
17814
  Er as ShareActionType,
17888
- hd as SpiffCommerceClient,
17815
+ Ad as SpiffCommerceClient,
17889
17816
  we as StakeholderType,
17890
17817
  Sr as StepAspectType,
17891
17818
  it as StepHandle,
17892
- I as StepType,
17819
+ P as StepType,
17893
17820
  kt as TextAlgorithm,
17894
17821
  gs as TextChangeCommand,
17895
- ll as TextGlobalPropertyHandle,
17896
- dd as TextInput,
17822
+ sl as TextGlobalPropertyHandle,
17823
+ ld as TextInput,
17897
17824
  Bo as TextStepHandle,
17898
- Cl as Transform,
17899
- fl as TransformCollection,
17825
+ pl as Transform,
17826
+ gl as TransformCollection,
17900
17827
  G as UnhandledBehaviorError,
17901
17828
  Ir as UnitOfMeasurement,
17902
- ed as UpdateImageSourceCommand,
17829
+ Zc as UpdateImageSourceCommand,
17903
17830
  st as Variant,
17904
17831
  Lo as WorkflowExperienceEventType,
17905
17832
  Vo as WorkflowExperienceImpl,
17906
17833
  U as assetService,
17907
17834
  Xr as browserColorToHex,
17908
- Jc as cmPerPixel,
17835
+ qc as cmPerPixel,
17909
17836
  No as createDesign,
17910
- jc as currentDirection,
17911
- Nc as dataUrlFromExternalUrl,
17837
+ Wc as currentDirection,
17838
+ Mc as dataUrlFromExternalUrl,
17912
17839
  Ye as designService,
17913
17840
  pe as determineCorrectFontSizeAndLines,
17914
17841
  zn as digitalContentStepService,
17915
17842
  dt as domParser,
17916
- Sd as duplicateBundle,
17917
- vd as duplicateTransaction,
17843
+ wd as duplicateBundle,
17844
+ yd as duplicateTransaction,
17918
17845
  nt as fetchAsString,
17919
- Uc as findAngle,
17846
+ Oc as findAngle,
17920
17847
  L as findElement,
17921
- Oc as findPmsColors,
17848
+ Qc as findPmsColors,
17922
17849
  Vt as frameDataCache,
17923
17850
  Ct as frameStepService,
17924
17851
  Q as generate,
17925
- tl as generateCommands,
17852
+ Xo as generateCommands,
17926
17853
  lt as generateSVGWithUnknownColors,
17927
- ld as generateStateFromDesignInputSteps,
17928
- kd as getAddressValidationJobs,
17854
+ sd as generateStateFromDesignInputSteps,
17855
+ Fd as getAddressValidationJobs,
17929
17856
  Me as getAttributesFromArrayBuffer,
17930
- $c as getAxisAlignedBoundingBox,
17931
- Ll as getBoundedOffsets,
17932
- pd as getBundleThemeConfiguration,
17933
- Ed as getCustomer,
17934
- bd as getCustomerBundles,
17935
- qc as getElementVertices,
17857
+ Rc as getAxisAlignedBoundingBox,
17858
+ $l as getBoundedOffsets,
17859
+ md as getBundleThemeConfiguration,
17860
+ Sd as getCustomer,
17861
+ vd as getCustomerBundles,
17862
+ jc as getElementVertices,
17936
17863
  Qe as getFrameData,
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,
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,
17946
17873
  Sa as getSvgElement,
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,
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,
17956
17883
  ar as getWorkflows,
17957
17884
  B as graphQlManager,
17958
17885
  ge as illustrationStepService,
17959
- Lc as isCloseToValue,
17886
+ $c as isCloseToValue,
17960
17887
  Tt as loadFont,
17961
- Rc as matchHexToPms,
17888
+ Nc as matchHexToPms,
17962
17889
  Gn as materialStepService,
17963
- gl as metafieldManager,
17964
- Yc as mmPerPixel,
17890
+ hl as metafieldManager,
17891
+ Hc as mmPerPixel,
17965
17892
  Wn as modelStepService,
17966
17893
  Ca as modifySVGColors,
17967
- Hn as moduleStepService,
17968
- wd as nameBundle,
17969
- yd as nameTransaction,
17894
+ jn as moduleStepService,
17895
+ fd as nameBundle,
17896
+ Cd as nameTransaction,
17970
17897
  q as optionService,
17971
- Kc as outlineFontsInSvg,
17898
+ Yc as outlineFontsInSvg,
17972
17899
  At as patternImageDataCache,
17973
17900
  N as persistenceService,
17974
- jn as pictureStepService,
17975
- Qc as pmsToRgb,
17901
+ Hn as pictureStepService,
17902
+ Tc as pmsToRgb,
17976
17903
  qn as questionStepService,
17977
- Tc as registerFetchImplementation,
17978
- Mc as registerWindowImplementation,
17904
+ kc as registerFetchImplementation,
17905
+ xc as registerWindowImplementation,
17979
17906
  cs as rehydrateSerializedLayout,
17980
17907
  Jr as rgbToPms,
17981
17908
  le as rotateAroundPoint,
@@ -17985,14 +17912,14 @@ export {
17985
17912
  zt as shapeStepService,
17986
17913
  fs as shortenUrl,
17987
17914
  mt as spiffCoreConfiguration,
17988
- od as stepAspectValuesToDesignInputSteps,
17915
+ id as stepAspectValuesToDesignInputSteps,
17989
17916
  $a as svgColorValueToDefinition,
17990
17917
  $n as svgStringDimensions,
17991
17918
  ha as svgToDataUrl,
17992
- H as textStepService,
17919
+ j as textStepService,
17993
17920
  Ps as toast,
17994
- Md as validateWorkflowExperienceRecipient,
17995
- Td as validateWorkflowExperienceRecipients,
17921
+ xd as validateWorkflowExperienceRecipient,
17922
+ kd as validateWorkflowExperienceRecipients,
17996
17923
  bt as xmlSerializer
17997
17924
  };
17998
17925
  //# sourceMappingURL=index.mjs.map