@spiffcommerce/core 26.38.0-beta.d98620d3-59a9-5edf-b33f-1e6356cd6536 → 26.38.0-beta.dee44cf8-0a6e-500b-b49b-8c367d7deed0

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
@@ -12,14 +12,14 @@ import { toString as rn } from "qrcode";
12
12
  import gr from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
14
  import { jsx as x, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
15
- import { dataUriToBuffer as fr } from "data-uri-to-buffer";
15
+ import { dataUriToBuffer as pr } from "data-uri-to-buffer";
16
16
  import Da from "lodash.chunk";
17
17
  import sn from "lodash.isequal";
18
18
  import { split as Ke } from "unicode-default-word-boundary";
19
19
  import on from "lodash.debounce";
20
20
  import "fs";
21
21
  import "path";
22
- var ge = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(ge || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), 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 || {}), pr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(pr || {}), Wt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Wt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), Cr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(Cr || {}), wr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(wr || {}), yr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(yr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), Sr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Sr || {}), fe = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(fe || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), j = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(j || {}), vr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(vr || {});
22
+ var ge = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(ge || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), 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 || {}), fr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(fr || {}), Wt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Wt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), Cr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(Cr || {}), wr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(wr || {}), yr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(yr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), Sr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Sr || {}), pe = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(pe || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), j = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(j || {}), vr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(vr || {});
23
23
  class ln extends Error {
24
24
  constructor(t) {
25
25
  super(t), this.name = this.constructor.name;
@@ -30,7 +30,7 @@ class Jt extends ln {
30
30
  super(`ConfigurationError - ${t}`);
31
31
  }
32
32
  }
33
- class pe extends Jt {
33
+ class fe extends Jt {
34
34
  constructor(t) {
35
35
  super(`Option not Configured: ${t.stepTitle}`), this.optionId = (t == null ? void 0 : t.optionId) || "N/A";
36
36
  }
@@ -334,12 +334,12 @@ class Lr {
334
334
  uri: `${mt.getServerUrl()}/graphql`,
335
335
  fetch: Ur
336
336
  }), e = cr(async (i, s) => {
337
- const { headers: o } = s, l = o || {}, c = await $r(), d = s.bearer ?? c.bearer, A = s.partnerId ?? c.partnerId, u = s.activeIntegration ?? c.activeIntegration, h = s.transactionOwnerId, m = s.customerToken ?? c.customerToken, g = s.applicationKey ?? c.applicationKey, f = s.bundleOwnerId;
337
+ const { headers: o } = s, l = o || {}, c = await $r(), d = s.bearer ?? c.bearer, A = s.partnerId ?? c.partnerId, u = s.activeIntegration ?? c.activeIntegration, h = s.transactionOwnerId, m = s.customerToken ?? c.customerToken, g = s.applicationKey ?? c.applicationKey, p = s.bundleOwnerId;
338
338
  try {
339
339
  if (window && window.__SENTRY__) {
340
- const p = window.__SENTRY__.hub;
341
- if (p) {
342
- const C = p.traceHeaders();
340
+ const f = window.__SENTRY__.hub;
341
+ if (f) {
342
+ const C = f.traceHeaders();
343
343
  Object.entries(C).forEach(([w, v]) => {
344
344
  l[w] = v;
345
345
  });
@@ -347,7 +347,7 @@ class Lr {
347
347
  }
348
348
  } catch {
349
349
  }
350
- return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), g && (l["X-Application-Key"] = g), f && (l.bundleOwnerId = f), l["Allow-Moonlight-Redirect"] = "true", {
350
+ return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), g && (l["X-Application-Key"] = g), p && (l.bundleOwnerId = p), l["Allow-Moonlight-Redirect"] = "true", {
351
351
  headers: l
352
352
  };
353
353
  }), a = dr(({ operation: i, graphQLErrors: s, networkError: o }) => {
@@ -370,7 +370,7 @@ const gt = (r, t, e) => {
370
370
  if (Ze !== void 0)
371
371
  return Ze(r, t, e);
372
372
  try {
373
- const a = fn(!0);
373
+ const a = pn(!0);
374
374
  return gn(a), a.createCanvas(r, t, e);
375
375
  } catch {
376
376
  throw new Error("Canvas module not set");
@@ -379,7 +379,7 @@ const gt = (r, t, e) => {
379
379
  if (ta !== void 0)
380
380
  return ta(r, t);
381
381
  try {
382
- const e = fn(!0);
382
+ const e = pn(!0);
383
383
  return gn(e), e.loadImage(r, t);
384
384
  } catch {
385
385
  throw new Error("Canvas module not set");
@@ -388,7 +388,7 @@ const gt = (r, t, e) => {
388
388
  function gn(r) {
389
389
  Ze = r == null ? void 0 : r.createCanvas, ta = r == null ? void 0 : r.loadImage;
390
390
  }
391
- function fn(r) {
391
+ function pn(r) {
392
392
  try {
393
393
  if (document.createElement("canvas").getContext("2d"))
394
394
  return {
@@ -3204,9 +3204,9 @@ function Qa(r) {
3204
3204
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3205
3205
  }
3206
3206
  const ie = (r) => {
3207
- const t = pn(r.spotColor);
3207
+ const t = fn(r.spotColor);
3208
3208
  return t ? `${r.browserValue} ${t}` : r.browserValue;
3209
- }, pn = (r) => {
3209
+ }, fn = (r) => {
3210
3210
  if (!r)
3211
3211
  return "";
3212
3212
  if (r.profileName.includes("/") && r.profileName.includes(".icc")) {
@@ -3340,7 +3340,7 @@ const ie = (r) => {
3340
3340
  if (!i)
3341
3341
  throw new Error("Failed to read SVG.");
3342
3342
  return Zr(i, t, e), wn(i, a, n), yn(i);
3343
- }, fa = (r, t, e) => {
3343
+ }, pa = (r, t, e) => {
3344
3344
  const a = Cn(r);
3345
3345
  if (!a)
3346
3346
  throw new Error("Failed to read SVG.");
@@ -3429,7 +3429,7 @@ const ie = (r) => {
3429
3429
  ...AssetFields
3430
3430
  }
3431
3431
  }
3432
- `, pa = y`
3432
+ `, fa = y`
3433
3433
  fragment MaterialFields on Material {
3434
3434
  id
3435
3435
  name
@@ -3477,7 +3477,7 @@ const ie = (r) => {
3477
3477
  }
3478
3478
  }
3479
3479
  `, ni = y`
3480
- ${pa}
3480
+ ${fa}
3481
3481
  query GetMaterials($ids: [String]) {
3482
3482
  materials(id: $ids) {
3483
3483
  ...MaterialFields
@@ -3868,7 +3868,7 @@ const qt = new ci(), vn = y`
3868
3868
  }
3869
3869
  `, di = y`
3870
3870
  ${Xt(!1)}
3871
- ${pa}
3871
+ ${fa}
3872
3872
  ${vn}
3873
3873
  query GetOptions($ids: [String]!) {
3874
3874
  options(ids: $ids) {
@@ -4084,7 +4084,7 @@ const _ = new mi(), En = y`
4084
4084
  precedence
4085
4085
  url
4086
4086
  }
4087
- `, fi = y`
4087
+ `, pi = y`
4088
4088
  ${xe}
4089
4089
  ${Bn}
4090
4090
  ${bn}
@@ -4239,7 +4239,7 @@ const _ = new mi(), En = y`
4239
4239
  }
4240
4240
  }
4241
4241
  }
4242
- `, pi = y`
4242
+ `, fi = y`
4243
4243
  mutation UpdateTransactionWorkflowState($id: String!, $workflowState: String!) {
4244
4244
  transactionUpdate(id: $id, workflowState: $workflowState) {
4245
4245
  id
@@ -4573,7 +4573,7 @@ const _ = new mi(), En = y`
4573
4573
  }
4574
4574
  `, Fi = (r) => y`
4575
4575
  ${Xt(r)}
4576
- ${pa}
4576
+ ${fa}
4577
4577
  ${vn}
4578
4578
  ${bi}
4579
4579
  ${Ii}
@@ -5315,13 +5315,13 @@ const N = () => {
5315
5315
  width: u
5316
5316
  }) => {
5317
5317
  var E;
5318
- const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, f = `${g.x} ${g.y} ${g.width} ${g.height}`, p = N(), C = a.purpose === Wt.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) => (
5318
+ 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 = N(), C = a.purpose === Wt.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) => (
5319
5319
  /* @ts-ignore */
5320
5320
  /* @__PURE__ */ x("color-profile", { name: B.name, xlinkHref: B.key, children: " " }, I)
5321
5321
  )), v = n.map((B) => ({
5322
5322
  ...B,
5323
5323
  _renderingConfiguration: a,
5324
- mask: l ? `url(#viewmask-${p})` : void 0
5324
+ mask: l ? `url(#viewmask-${f})` : void 0
5325
5325
  })), S = ya(v);
5326
5326
  return /* @__PURE__ */ ct(
5327
5327
  "svg",
@@ -5340,7 +5340,7 @@ const N = () => {
5340
5340
  maxHeight: s,
5341
5341
  position: c
5342
5342
  },
5343
- viewBox: f,
5343
+ viewBox: p,
5344
5344
  children: [
5345
5345
  w,
5346
5346
  C,
@@ -5375,7 +5375,7 @@ const N = () => {
5375
5375
  strokeDasharray: `${m * 2} ${m}`
5376
5376
  }
5377
5377
  ),
5378
- l && /* @__PURE__ */ ct("mask", { id: `viewmask-${p}`, children: [
5378
+ l && /* @__PURE__ */ ct("mask", { id: `viewmask-${f}`, children: [
5379
5379
  /* @__PURE__ */ x(
5380
5380
  "rect",
5381
5381
  {
@@ -5401,7 +5401,7 @@ const N = () => {
5401
5401
  }
5402
5402
  );
5403
5403
  }, bc = (r, t, e, a, n) => {
5404
- const i = ft(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, f = u * A - m * d, p = h * A - g * d, C = u * d + m * A, w = h * d + g * A, v = Math.max(Math.abs(f), Math.abs(p)), S = Math.max(Math.abs(C), Math.abs(w));
5404
+ 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, v = Math.max(Math.abs(p), Math.abs(f)), S = Math.max(Math.abs(C), Math.abs(w));
5405
5405
  return {
5406
5406
  minX: l - v,
5407
5407
  maxX: l + v,
@@ -5411,8 +5411,8 @@ const N = () => {
5411
5411
  }, Ic = (r, t, e) => {
5412
5412
  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));
5413
5413
  return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
5414
- }, ft = (r) => r * (Math.PI / 180), Pc = (r, t, e) => Math.abs(r - t) < e, Dc = (r, t, e) => {
5415
- const a = Math.sin(ft(e)), n = Math.cos(ft(e));
5414
+ }, pt = (r) => r * (Math.PI / 180), Pc = (r, t, e) => Math.abs(r - t) < e, Dc = (r, t, e) => {
5415
+ const a = Math.sin(pt(e)), n = Math.cos(pt(e));
5416
5416
  return {
5417
5417
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5418
5418
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
@@ -5449,7 +5449,7 @@ const N = () => {
5449
5449
  return j.Northwest;
5450
5450
  }
5451
5451
  }, Tc = (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 }) => {
5452
- const a = ft(r.rotation), n = {
5452
+ const a = pt(r.rotation), n = {
5453
5453
  x: t.x + r.x * e.x,
5454
5454
  y: t.x + r.y * e.y
5455
5455
  }, i = {
@@ -5479,7 +5479,7 @@ const N = () => {
5479
5479
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5480
5480
  };
5481
5481
  }, Nc = 0.352778, Rc = 0.035277, xn = (r) => {
5482
- const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
5482
+ const t = r.rotation || 0, e = pt(t), a = Math.cos(e), n = -Math.sin(e);
5483
5483
  return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5484
5484
  "g",
5485
5485
  {
@@ -5502,7 +5502,7 @@ const N = () => {
5502
5502
  ) });
5503
5503
  }, kn = (r) => {
5504
5504
  var l;
5505
- const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = ft(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5505
+ const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = pt(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5506
5506
  return /* @__PURE__ */ ct(zt, { children: [
5507
5507
  /* @__PURE__ */ x("defs", { children: (() => /* @__PURE__ */ x("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ x("path", { d: r.clipPath }) : /* @__PURE__ */ x("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5508
5508
  /* @__PURE__ */ ct(
@@ -5537,7 +5537,7 @@ const N = () => {
5537
5537
  if (!r.pattern)
5538
5538
  return "";
5539
5539
  if (r.pattern.svg) {
5540
- const A = fa(r.pattern.svg, r.pattern.colors || {}, !1);
5540
+ const A = pa(r.pattern.svg, r.pattern.colors || {}, !1);
5541
5541
  return Aa(A);
5542
5542
  }
5543
5543
  return r.pattern.src;
@@ -5563,17 +5563,17 @@ const N = () => {
5563
5563
  /* @__PURE__ */ x("feFuncG", { type: "discrete", tableValues: n() }),
5564
5564
  /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5565
5565
  ] })
5566
- ] }) }) }), s = r.rotation || 0, o = ft(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5566
+ ] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5567
5567
  var w, v, S, E, B, I, D, F, k, Q;
5568
- const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((v = r.pattern) == null ? void 0 : v.y) || 0, h = ((S = r.pattern) == null ? void 0 : S.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((B = r.pattern) == null ? void 0 : B.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5568
+ const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((v = r.pattern) == null ? void 0 : v.y) || 0, h = ((S = r.pattern) == null ? void 0 : S.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((B = r.pattern) == null ? void 0 : B.scaleX) || 1, p = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5569
5569
  return [(F = r.pattern) != null && F.svg ? {
5570
5570
  id: `${t}-contents`,
5571
5571
  type: T.Illustration,
5572
5572
  x: A,
5573
5573
  y: u,
5574
- rotation: p,
5574
+ rotation: f,
5575
5575
  width: h * g,
5576
- height: m * f,
5576
+ height: m * p,
5577
5577
  src: a(),
5578
5578
  svg: (k = r.pattern) == null ? void 0 : k.svg,
5579
5579
  colors: (Q = r.pattern) == null ? void 0 : Q.colors
@@ -5582,9 +5582,9 @@ const N = () => {
5582
5582
  type: T.Image,
5583
5583
  x: A,
5584
5584
  y: u,
5585
- rotation: p,
5585
+ rotation: f,
5586
5586
  width: h * g,
5587
- height: m * f,
5587
+ height: m * p,
5588
5588
  src: a()
5589
5589
  }];
5590
5590
  };
@@ -5708,18 +5708,18 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5708
5708
  a.querySelectorAll("style").forEach((d) => {
5709
5709
  var u;
5710
5710
  (u = nn(d.innerHTML).stylesheet) == null || u.rules.forEach((h) => {
5711
- var m, g, f;
5711
+ var m, g, p;
5712
5712
  if (h.type === "font-face" && h.declarations) {
5713
- const p = (m = h.declarations.find(
5713
+ const f = (m = h.declarations.find(
5714
5714
  (v) => v.property === "font-family"
5715
- )) == null ? void 0 : m.value, C = (g = h.declarations.find((v) => v.property === "src")) == null ? void 0 : g.value, w = (f = C == null ? void 0 : C.match(/'(https.*?)'/)) == null ? void 0 : f[1];
5716
- p && w && n.set(p, w);
5715
+ )) == null ? void 0 : m.value, C = (g = h.declarations.find((v) => v.property === "src")) == null ? void 0 : g.value, w = (p = C == null ? void 0 : C.match(/'(https.*?)'/)) == null ? void 0 : p[1];
5716
+ f && w && n.set(f, w);
5717
5717
  }
5718
5718
  });
5719
5719
  });
5720
5720
  const s = e.querySelectorAll("tspan");
5721
5721
  for (let d = 0; d < s.length; d++) {
5722
- const A = s.item(d), u = A.closest("text"), h = A.closest("g"), m = u.getAttribute("font-family"), g = await Qt(n.get(m)), f = u.getAttribute("fill"), p = u.getAttribute("stroke"), C = u.getAttribute("stroke-width"), w = g.getPath(
5722
+ const A = s.item(d), u = A.closest("text"), h = A.closest("g"), m = u.getAttribute("font-family"), g = await Qt(n.get(m)), p = u.getAttribute("fill"), f = u.getAttribute("stroke"), C = u.getAttribute("stroke-width"), w = g.getPath(
5723
5723
  A.innerHTML,
5724
5724
  0,
5725
5725
  0,
@@ -5734,7 +5734,7 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5734
5734
  parseFloat(A.getAttribute("y") ?? "0"),
5735
5735
  parseInt(u.getAttribute("font-size") ?? "72")
5736
5736
  );
5737
- B.fill = f, B.stroke = p, B.strokeWidth = parseFloat(C ?? "0");
5737
+ B.fill = p, B.stroke = f, B.strokeWidth = parseFloat(C ?? "0");
5738
5738
  const I = B.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5739
5739
  h.appendChild(F);
5740
5740
  }
@@ -5872,14 +5872,14 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5872
5872
  };
5873
5873
  })()
5874
5874
  } : r, Ca = 1.1, Xi = (r) => {
5875
- var h, m, g, f;
5875
+ var h, m, g, p;
5876
5876
  const e = (r.rotation || 0) * Math.PI / 180, a = Math.cos(e), n = -Math.sin(e), i = `text-path-${r.id}`, s = `text-fill-${r.id}`, o = r.x + (r.curved ? 0 : r.width / 2), l = r.y + (r.curved ? 0 : r.height / 2), c = (r.text || "").split(`
5877
5877
  `), d = (h = r.strokeColor) != null && h.browserValue && r.strokeThickness ? (m = r.strokeColor) == null ? void 0 : m.browserValue : void 0, A = (g = r.strokeColor) != null && g.browserValue && r.strokeThickness ? r.strokeThickness : void 0;
5878
5878
  if (r.curved && !r.paths || !r.fontData)
5879
5879
  return null;
5880
5880
  const u = () => {
5881
- var p;
5882
- return r.textFillImage ? `url("#${s}")` : (p = r._renderingConfiguration) != null && p.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${pn(r.fillSpotColorDefinition)}` : r.fill;
5881
+ var f;
5882
+ return r.textFillImage ? `url("#${s}")` : (f = r._renderingConfiguration) != null && f.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${fn(r.fillSpotColorDefinition)}` : r.fill;
5883
5883
  };
5884
5884
  return /* @__PURE__ */ ct(zt, { children: [
5885
5885
  /* @__PURE__ */ ct("defs", { children: [
@@ -5919,7 +5919,7 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5919
5919
  ),
5920
5920
  r.curved && r.paths ? /* @__PURE__ */ x("path", { id: i, d: r.paths[0] }) : void 0
5921
5921
  ] }),
5922
- (f = r._renderingConfiguration) != null && f.debug ? /* @__PURE__ */ x("rect", { stroke: "blue", fill: "none", x: r.x, y: r.y, width: r.width, height: r.height }) : void 0,
5922
+ (p = r._renderingConfiguration) != null && p.debug ? /* @__PURE__ */ x("rect", { stroke: "blue", fill: "none", x: r.x, y: r.y, width: r.width, height: r.height }) : void 0,
5923
5923
  /* @__PURE__ */ x("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ x("g", { transform: `matrix(${a}, ${-n}, ${n}, ${a}, ${o}, ${l})`, children: /* @__PURE__ */ x(
5924
5924
  "text",
5925
5925
  {
@@ -5935,14 +5935,14 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5935
5935
  },
5936
5936
  stroke: d,
5937
5937
  strokeWidth: A,
5938
- children: r.curved ? /* @__PURE__ */ x(ts, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ x(
5938
+ children: r.curved ? /* @__PURE__ */ x(ts, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((f, C) => /* @__PURE__ */ x(
5939
5939
  Zi,
5940
5940
  {
5941
5941
  align: r.vertical ? "center" : r.align,
5942
5942
  fontSize: r.fontSize,
5943
5943
  thisLineIdx: C,
5944
5944
  amountLines: c.length,
5945
- text: p,
5945
+ text: f,
5946
5946
  textboxHeight: r.height,
5947
5947
  textboxWidth: r.width,
5948
5948
  lineHeight: r.lineHeight,
@@ -5997,7 +5997,7 @@ const Wi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5997
5997
  mask: r.stepName ? void 0 : r.mask
5998
5998
  }
5999
5999
  );
6000
- const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e), i = `
6000
+ const t = r.rotation || 0, e = pt(t), a = Math.cos(e), n = -Math.sin(e), i = `
6001
6001
  matrix(1, 0, 0, 1, ${r.x}, ${r.y})
6002
6002
  matrix(1, 0, 0, 1, ${r.width / 2}, ${r.height / 2})
6003
6003
  matrix(${a}, ${-n}, ${n}, ${a}, 0, 0)
@@ -6242,7 +6242,7 @@ const te = (r) => {
6242
6242
  if (At.has(r))
6243
6243
  return At.get(r);
6244
6244
  if (r.startsWith("data:image/svg+xml")) {
6245
- const a = fr(r), n = new TextDecoder().decode(a.buffer), i = On(n), s = {
6245
+ const a = pr(r), n = new TextDecoder().decode(a.buffer), i = On(n), s = {
6246
6246
  src: r,
6247
6247
  width: i.width,
6248
6248
  height: i.height,
@@ -6316,8 +6316,8 @@ const te = (r) => {
6316
6316
  fetch: nt
6317
6317
  }), u = s.getAttribute("width"), h = s.getAttribute("height"), m = 2048;
6318
6318
  if (h && u) {
6319
- const g = parseFloat(h), p = parseFloat(u) / g;
6320
- p > 1 ? A.resize(m, m / p) : A.resize(m * p, m);
6319
+ const g = parseFloat(h), f = parseFloat(u) / g;
6320
+ f > 1 ? A.resize(m, m / f) : A.resize(m * f, m);
6321
6321
  } else
6322
6322
  A.resize(m, m);
6323
6323
  return await A.render(), await t(c);
@@ -6341,8 +6341,8 @@ const te = (r) => {
6341
6341
  const l = await lt(await $n(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6342
6342
  if (!u)
6343
6343
  throw new Error("SVG missing viewBox.");
6344
- const h = o.height, m = u.split(" "), g = parseFloat(m[2]) || 1, f = parseFloat(m[3]) || 1, p = g / f;
6345
- o.height = o.width / p, o.top += (h - o.height) / 2;
6344
+ const h = o.height, m = u.split(" "), g = parseFloat(m[2]) || 1, p = parseFloat(m[3]) || 1, f = g / p;
6345
+ o.height = o.width / f, o.top += (h - o.height) / 2;
6346
6346
  }
6347
6347
  if (e && t === T.Image) {
6348
6348
  const l = o.height, c = await Pe(e), d = await Fe(c), A = d.width / d.height;
@@ -7234,13 +7234,13 @@ class Ga {
7234
7234
  command: new G(h, i)
7235
7235
  };
7236
7236
  } else {
7237
- 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((f, p) => {
7237
+ 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) => {
7238
7238
  if (!u) {
7239
- p("Undefined vector silent step source");
7239
+ f("Undefined vector silent step source");
7240
7240
  return;
7241
7241
  }
7242
7242
  at(u, !0).then((C) => {
7243
- f(C);
7243
+ p(C);
7244
7244
  }).catch((C) => console.error(C));
7245
7245
  }))()), g = {
7246
7246
  stepName: this.configuration.stepName,
@@ -7349,8 +7349,8 @@ class us {
7349
7349
  }
7350
7350
  async regenerateQRCode(t, e, a, n) {
7351
7351
  const i = async () => {
7352
- var g, f;
7353
- const h = (await ea([e]))[0], m = (f = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((p) => p.name === "mpeg4")) == null ? void 0 : f.link;
7352
+ var g, p;
7353
+ const h = (await ea([e]))[0], m = (p = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((f) => f.name === "mpeg4")) == null ? void 0 : p.link;
7354
7354
  return { asset: h, link: m };
7355
7355
  }, s = await new Promise((h, m) => {
7356
7356
  new Ln(
@@ -7483,13 +7483,13 @@ class Se {
7483
7483
  }
7484
7484
  if (n) {
7485
7485
  const d = async () => {
7486
- var m, g, f, p, C;
7487
- const A = (m = n.storage) == null ? void 0 : m.colors, u = (g = n.storage) == null ? void 0 : g.framePatternSrc, h = (f = n.storage) == null ? void 0 : f.frameOffsetsList;
7486
+ var m, g, p, f, C;
7487
+ const A = (m = n.storage) == null ? void 0 : m.colors, u = (g = n.storage) == null ? void 0 : g.framePatternSrc, h = (p = n.storage) == null ? void 0 : p.frameOffsetsList;
7488
7488
  if (e.updateMetadata(t.stepName, {
7489
7489
  frameOffsetsList: h,
7490
7490
  framePatternSrc: u
7491
7491
  }), u) {
7492
- const w = (p = e.getWorkflowExperience().getStepById(t.stepName)) == null ? void 0 : p.frameService;
7492
+ const w = (f = e.getWorkflowExperience().getStepById(t.stepName)) == null ? void 0 : f.frameService;
7493
7493
  if (!w)
7494
7494
  throw new Error("Frame service unavailable, cannot load pattern!");
7495
7495
  await this.loadPatternFromString(u, w, !0, A), e.updateMetadata(t.stepName, { image: u }), e.updateStorage(t.stepName, {
@@ -7713,18 +7713,18 @@ class Se {
7713
7713
  i && i(!0);
7714
7714
  const c = t.data.initialZoomLevel, d = await Promise.all(
7715
7715
  t.data.regions.map(async (m, g) => {
7716
- const f = await Me(l[g]), p = o.getImageData(), C = a.map((I) => new Et(I.id)), w = p ? Sa(
7717
- p,
7716
+ const p = await Me(l[g]), f = o.getImageData(), C = a.map((I) => new Et(I.id)), w = f ? Sa(
7718
7717
  f,
7718
+ p,
7719
7719
  c && !t.data.forceImageCover ? { scale: c } : void 0,
7720
7720
  t.data.forceImageCover
7721
- ) : void 0, v = p ? {
7721
+ ) : void 0, v = f ? {
7722
7722
  id: N(),
7723
- src: p.src,
7723
+ src: f.src,
7724
7724
  x: (w == null ? void 0 : w.x) || 0,
7725
7725
  y: (w == null ? void 0 : w.y) || 0,
7726
- width: p.width,
7727
- height: p.height,
7726
+ width: f.width,
7727
+ height: f.height,
7728
7728
  scaleX: (w == null ? void 0 : w.zoom) || 1,
7729
7729
  scaleY: (w == null ? void 0 : w.zoom) || 1,
7730
7730
  rotation: 0
@@ -7733,7 +7733,7 @@ class Se {
7733
7733
  throw new q(m);
7734
7734
  return {
7735
7735
  command: this.getCreateElementCommand(S, m, B, {
7736
- frameData: f,
7736
+ frameData: p,
7737
7737
  pattern: v,
7738
7738
  disablePlaceholder: t.data.disablePlaceholder,
7739
7739
  stepName: t.stepName
@@ -7934,25 +7934,25 @@ class hs {
7934
7934
  e[0].id,
7935
7935
  n().map((g) => g.layoutState)
7936
7936
  ), o = { ...s.colors }, l = {};
7937
- Object.entries(o).forEach(([g, f]) => {
7938
- const p = { browserValue: f.browserValue, pmsValue: f.pmsValue }, C = f.spotColor;
7939
- C && (p.spotColor = { profileName: C.profileName, namedColor: C.namedColor }), l[g] = p;
7937
+ Object.entries(o).forEach(([g, p]) => {
7938
+ const f = { browserValue: p.browserValue, pmsValue: p.pmsValue }, C = p.spotColor;
7939
+ C && (f.spotColor = { profileName: C.profileName, namedColor: C.namedColor }), l[g] = f;
7940
7940
  });
7941
- for (const [g, f] of i.entries()) {
7942
- const p = typeof f == "string" ? f : f.browserValue, C = typeof f == "string" ? void 0 : f.pmsValue;
7943
- o[g] = { browserValue: p, spotColor: (h = o[g]) == null ? void 0 : h.spotColor, pmsValue: C }, l[g] = { browserValue: p };
7941
+ for (const [g, p] of i.entries()) {
7942
+ const f = typeof p == "string" ? p : p.browserValue, C = typeof p == "string" ? void 0 : p.pmsValue;
7943
+ o[g] = { browserValue: f, spotColor: (h = o[g]) == null ? void 0 : h.spotColor, pmsValue: C }, l[g] = { browserValue: f };
7944
7944
  }
7945
7945
  let c = Array.from(Object.values(o)).map((g) => g.browserValue);
7946
7946
  const d = t.data.colorOption;
7947
7947
  d && ((m = d.variants) == null || m.forEach((g) => {
7948
- c = c.map((f) => {
7949
- var p;
7950
- return f.toLowerCase() === ((p = g.color) == null ? void 0 : p.toLowerCase()) ? g.name : f;
7948
+ c = c.map((p) => {
7949
+ var f;
7950
+ return p.toLowerCase() === ((f = g.color) == null ? void 0 : f.toLowerCase()) ? g.name : p;
7951
7951
  });
7952
7952
  })), a.updateMetadata(t.stepName, { colors: c });
7953
7953
  const A = /* @__PURE__ */ new Map();
7954
- if (Object.entries(o).forEach(([g, f]) => {
7955
- A.set(g, f);
7954
+ if (Object.entries(o).forEach(([g, p]) => {
7955
+ A.set(g, p);
7956
7956
  }), !s.svg)
7957
7957
  throw new Error("Colors changed before SVG loaded. This should never happen!");
7958
7958
  const u = await this.changeColorsCommand(
@@ -7971,7 +7971,7 @@ class hs {
7971
7971
  s && (s.command && i.getCommandDispatcher()(s.command), s.followup && await s.followup());
7972
7972
  }
7973
7973
  async selectVariantCommand(t, e, a, n, i) {
7974
- var p;
7974
+ var f;
7975
7975
  if (!t.data || !t.data.regions)
7976
7976
  throw new Ce(t, "Missing regions.");
7977
7977
  n(!0);
@@ -7999,8 +7999,8 @@ class hs {
7999
7999
  };
8000
8000
  }, u = t.data.regions.map(A), m = [...u.map((C) => C.command), ...s];
8001
8001
  let g = Array.from(Object.values(c.colors)).map((C) => C.browserValue);
8002
- const f = t.data.colorOption;
8003
- return f && ((p = f.variants) == null || p.forEach((C) => {
8002
+ const p = t.data.colorOption;
8003
+ return p && ((f = p.variants) == null || f.forEach((C) => {
8004
8004
  g = g.map((w) => {
8005
8005
  var v;
8006
8006
  return w.toLowerCase() === ((v = C.color) == null ? void 0 : v.toLowerCase()) ? C.name : w;
@@ -8061,7 +8061,7 @@ class ms {
8061
8061
  async init(t, e, a) {
8062
8062
  const n = t.option;
8063
8063
  if (!n)
8064
- throw new pe(t);
8064
+ throw new fe(t);
8065
8065
  if (a)
8066
8066
  await this.reload(t, e, a);
8067
8067
  else {
@@ -8079,7 +8079,7 @@ class ms {
8079
8079
  a.serializableWorkflow.steps
8080
8080
  ), o = Object.values(a.layouts).map((d) => d.elements).flat().filter((d) => d.stepName === t.stepName), l = t.option;
8081
8081
  if (!l)
8082
- throw new pe(t);
8082
+ throw new fe(t);
8083
8083
  if (n != null && n.selectedVariants) {
8084
8084
  const d = n.selectedVariants[0].id;
8085
8085
  if (d) {
@@ -8093,8 +8093,8 @@ class ms {
8093
8093
  async () => {
8094
8094
  const m = e.getModelContainer();
8095
8095
  if (m) {
8096
- const g = t.data.targetMaterials.map((f) => m.applyMaterialVariant(
8097
- f,
8096
+ const g = t.data.targetMaterials.map((p) => m.applyMaterialVariant(
8097
+ p,
8098
8098
  l.id || "",
8099
8099
  u || {}
8100
8100
  ));
@@ -8139,7 +8139,7 @@ class gs {
8139
8139
  async init(t, e, a) {
8140
8140
  const n = t.option;
8141
8141
  if (!n)
8142
- throw new pe(t);
8142
+ throw new fe(t);
8143
8143
  if (a)
8144
8144
  await this.reload(t, e, a);
8145
8145
  else {
@@ -8221,7 +8221,7 @@ class gs {
8221
8221
  }
8222
8222
  }
8223
8223
  const Gn = new gs();
8224
- class fs {
8224
+ class ps {
8225
8225
  async init(t, e, a) {
8226
8226
  if (a)
8227
8227
  await this.reload(t, e, a);
@@ -8256,11 +8256,11 @@ class fs {
8256
8256
  return console.error("Missing configuration."), null;
8257
8257
  a.updateStorage(t.stepName, { text: e }), a.updateMetadata(t.stepName, { text: e });
8258
8258
  const c = (A, u, h) => {
8259
- const m = h || N(), f = a.getLayouts().find((C) => C.panelId === u.panelId);
8260
- if (!f)
8259
+ const m = h || N(), p = a.getLayouts().find((C) => C.panelId === u.panelId);
8260
+ if (!p)
8261
8261
  return console.error(`Can not find layout for region: ${u.panelId}`), null;
8262
- const p = [];
8263
- return h && p.push(new Et(m)), p.push(
8262
+ const f = [];
8263
+ return h && f.push(new Et(m)), f.push(
8264
8264
  new G(
8265
8265
  {
8266
8266
  stepRegion: u,
@@ -8278,12 +8278,12 @@ class fs {
8278
8278
  layerIndex: u.layerIndex,
8279
8279
  immutable: u.immutable
8280
8280
  },
8281
- f
8281
+ p
8282
8282
  )
8283
8283
  ), {
8284
8284
  id: m,
8285
8285
  region: u,
8286
- command: new $(p)
8286
+ command: new $(f)
8287
8287
  };
8288
8288
  };
8289
8289
  if (i.length > 0) {
@@ -8333,8 +8333,8 @@ class fs {
8333
8333
  return n(""), { input: e, helperData: {} };
8334
8334
  }
8335
8335
  }
8336
- const Wn = new fs();
8337
- class ps {
8336
+ const Wn = new ps();
8337
+ class fs {
8338
8338
  async init(t, e, a) {
8339
8339
  const n = t.option;
8340
8340
  if (!n)
@@ -8425,7 +8425,7 @@ class ps {
8425
8425
  };
8426
8426
  }
8427
8427
  }
8428
- const jn = new ps();
8428
+ const jn = new fs();
8429
8429
  class Cs {
8430
8430
  async init(t, e, a) {
8431
8431
  const n = t.option;
@@ -8511,7 +8511,7 @@ class ws {
8511
8511
  async init(t, e, a) {
8512
8512
  const n = t.option;
8513
8513
  if (!n)
8514
- throw new pe(t);
8514
+ throw new fe(t);
8515
8515
  if (a)
8516
8516
  await this.reload(t, e, a);
8517
8517
  else {
@@ -8593,7 +8593,7 @@ class ws {
8593
8593
  const m = i.find((w) => w.panelId === h.panelId);
8594
8594
  if (!m)
8595
8595
  throw new q(h);
8596
- const g = o(), f = `
8596
+ const g = o(), p = `
8597
8597
  <svg
8598
8598
  xmlns="http://www.w3.org/2000/svg"
8599
8599
  xmlnsXlink="http://www.w3.org/1999/xlink"
@@ -8613,8 +8613,8 @@ class ws {
8613
8613
  fill="${g}"
8614
8614
  />
8615
8615
  </svg>
8616
- `, p = {};
8617
- p[this.shapeFillId] = { browserValue: g };
8616
+ `, f = {};
8617
+ f[this.shapeFillId] = { browserValue: g };
8618
8618
  const C = N();
8619
8619
  return {
8620
8620
  id: C,
@@ -8623,9 +8623,9 @@ class ws {
8623
8623
  {
8624
8624
  stepRegion: h,
8625
8625
  stepName: t.stepName,
8626
- colors: p,
8626
+ colors: f,
8627
8627
  id: C,
8628
- svg: f,
8628
+ svg: p,
8629
8629
  type: T.Illustration,
8630
8630
  y: h.top,
8631
8631
  x: h.left,
@@ -8696,14 +8696,14 @@ const Ss = new ys(), Ge = (r, t, e, a, n) => {
8696
8696
  const A = Math.max(...o);
8697
8697
  if (A <= r.width)
8698
8698
  return [i, A];
8699
- const u = o.reduce((f, p, C, w) => p > w[f] ? C : f, 0), h = i[u];
8699
+ const u = o.reduce((p, f, C, w) => f > w[p] ? C : p, 0), h = i[u];
8700
8700
  let m = !1, g = h.length;
8701
8701
  for (; !m && g > -1; ) {
8702
8702
  g = h.lastIndexOf(" ", g - 1);
8703
- const f = [h.slice(0, g), h.slice(g + 1)], p = f.map((w) => ht(w, a, n));
8704
- p[0] <= r.width && (i = [...i.slice(0, u), ...f, ...i.slice(u + 1)], o = [
8703
+ const p = [h.slice(0, g), h.slice(g + 1)], f = p.map((w) => ht(w, a, n));
8704
+ f[0] <= r.width && (i = [...i.slice(0, u), ...p, ...i.slice(u + 1)], o = [
8705
8705
  ...o.slice(0, u),
8706
- ...p,
8706
+ ...f,
8707
8707
  ...o.slice(u + 1)
8708
8708
  ], s += 1, m = !0);
8709
8709
  }
@@ -9020,19 +9020,19 @@ class Es {
9020
9020
  if (l && u) {
9021
9021
  const h = (c = l.variants) == null ? void 0 : c.find((m) => m.id === u);
9022
9022
  if (h) {
9023
- const m = await this.fontDataFromVariant(h), g = o.map((w) => ({ id: w.id, region: w.stepRegion })), f = (d = n.storage) == null ? void 0 : d.color, p = (A = n.storage) == null ? void 0 : A.text;
9023
+ const m = await this.fontDataFromVariant(h), g = o.map((w) => ({ id: w.id, region: w.stepRegion })), p = (d = n.storage) == null ? void 0 : d.color, f = (A = n.storage) == null ? void 0 : A.text;
9024
9024
  await e.setSelectionsAndElements(
9025
9025
  t.stepName,
9026
9026
  [h],
9027
9027
  g,
9028
9028
  async () => {
9029
- e.updateMetadata(t.stepName, { color: f, text: p }), e.updateStorage(t.stepName, { text: p, inputText: p });
9029
+ e.updateMetadata(t.stepName, { color: p, text: f }), e.updateStorage(t.stepName, { text: f, inputText: f });
9030
9030
  const w = o.map((S) => new za(S.id, m)), v = new $(w);
9031
9031
  e.getCommandDispatcher()(v);
9032
9032
  }
9033
9033
  );
9034
9034
  const { command: C } = H.updateInputText(
9035
- p || "",
9035
+ f || "",
9036
9036
  o,
9037
9037
  t,
9038
9038
  e
@@ -9081,16 +9081,16 @@ class Es {
9081
9081
  var u;
9082
9082
  const d = i.markUpdatePending(), A = await this.fontDataFromVariant(e);
9083
9083
  if (n.length > 0) {
9084
- const h = n.map((f) => new za(f.id, A));
9084
+ const h = n.map((p) => new za(p.id, A));
9085
9085
  if (l) {
9086
- const f = n.map((p) => new Ve(p.id, l));
9087
- h.push(...f);
9086
+ const p = n.map((f) => new Ve(f.id, l));
9087
+ h.push(...p);
9088
9088
  }
9089
9089
  if (c) {
9090
- const f = n.map(
9091
- (p) => new ze(p.id, c, t.data.strokeThickness)
9090
+ const p = n.map(
9091
+ (f) => new ze(f.id, c, t.data.strokeThickness)
9092
9092
  );
9093
- h.push(...f);
9093
+ h.push(...p);
9094
9094
  }
9095
9095
  const m = await this.changeInputTextWithRegion(
9096
9096
  t,
@@ -9127,18 +9127,18 @@ class Es {
9127
9127
  !!a.customiseAllText,
9128
9128
  s,
9129
9129
  o
9130
- ), g = h.flatMap((p) => p.commands);
9130
+ ), g = h.flatMap((f) => f.commands);
9131
9131
  if (l) {
9132
- const p = h.map(
9132
+ const f = h.map(
9133
9133
  (C) => new Ve(C.regionElement.id, l)
9134
9134
  );
9135
- g.push(...p);
9135
+ g.push(...f);
9136
9136
  }
9137
9137
  if (c) {
9138
- const p = n.map(
9138
+ const f = n.map(
9139
9139
  (C) => new ze(C.id, c, t.data.strokeThickness)
9140
9140
  );
9141
- g.push(...p);
9141
+ g.push(...f);
9142
9142
  }
9143
9143
  return m && g.push(m), {
9144
9144
  command: new $(g),
@@ -9161,19 +9161,19 @@ class Es {
9161
9161
  throw new Error("Step data not supplied");
9162
9162
  const o = i.text || a.defaultText || "", l = this.getProcessedInput(o, a, !1), c = async (A) => {
9163
9163
  var g;
9164
- const h = s.getLayouts().find((f) => f.panelId === A.panelId), m = N();
9164
+ const h = s.getLayouts().find((p) => p.panelId === A.panelId), m = N();
9165
9165
  try {
9166
9166
  if (!h)
9167
9167
  throw new Ee("Failed to find layout for region: " + A.panelId);
9168
- const f = a.colorOption;
9169
- let p;
9170
- if (f && f.variants) {
9171
- const Q = f.variants.find((it) => {
9168
+ const p = a.colorOption;
9169
+ let f;
9170
+ if (p && p.variants) {
9171
+ const Q = p.variants.find((it) => {
9172
9172
  var R;
9173
- return it.id === ((R = f.defaultVariant) == null ? void 0 : R.id);
9174
- }) || f.variants[0];
9175
- p = this.createTextFillSpotColor(f, Q), s.updateStorage(t, {
9176
- colorProfileAssetKey: (g = f.colorProfile) == null ? void 0 : g.key
9173
+ return it.id === ((R = p.defaultVariant) == null ? void 0 : R.id);
9174
+ }) || p.variants[0];
9175
+ f = this.createTextFillSpotColor(p, Q), s.updateStorage(t, {
9176
+ colorProfileAssetKey: (g = p.colorProfile) == null ? void 0 : g.key
9177
9177
  });
9178
9178
  }
9179
9179
  const C = await this.getDefaultColor(a), w = C || "#000000", v = {
@@ -9199,7 +9199,7 @@ class Es {
9199
9199
  verticalAlign: a.verticalAlign || "middle",
9200
9200
  curved: a.curved,
9201
9201
  paths: a.paths,
9202
- fillSpotColorDefinition: p
9202
+ fillSpotColorDefinition: f
9203
9203
  }, S = [], E = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
9204
9204
  if (!v.fontData)
9205
9205
  throw new z("Failed to resolve font data for text.");
@@ -9230,8 +9230,8 @@ class Es {
9230
9230
  newElement: v,
9231
9231
  fontData: n
9232
9232
  };
9233
- } catch (f) {
9234
- throw console.log(f), new ve("Error adding font to region");
9233
+ } catch (p) {
9234
+ throw console.log(p), new ve("Error adding font to region");
9235
9235
  }
9236
9236
  }, d = await Promise.all(a.regions.map(c)).catch((A) => {
9237
9237
  throw A instanceof ve ? (Ss.setLatestToast("Failed to load font.", Te.Error), A) : A instanceof Ee ? A : new Error(A);
@@ -9273,7 +9273,7 @@ class Es {
9273
9273
  );
9274
9274
  m.set(v.id, S), g.set(v.id, E);
9275
9275
  }
9276
- const p = (() => {
9276
+ const f = (() => {
9277
9277
  if (t.data && t.data.maxLength && u.length > t.data.maxLength)
9278
9278
  return d && d(!0), { info: "0" };
9279
9279
  const v = s.getProfanities(), S = Ke(u.toLowerCase());
@@ -9286,11 +9286,11 @@ class Es {
9286
9286
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
9287
9287
  `) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((B) => B) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
9288
9288
  })();
9289
- if (p.error) {
9290
- c(p.error);
9289
+ if (f.error) {
9290
+ c(f.error);
9291
9291
  return;
9292
9292
  }
9293
- if (c(`${p.info} characters remaining` || ""), d)
9293
+ if (c(`${f.info} characters remaining` || ""), d)
9294
9294
  return;
9295
9295
  s.updateStorage(t.stepName, { text: A }), s.updateMetadata(t.stepName, {
9296
9296
  text: this.injectReplaceableText(A, t.data)
@@ -9490,12 +9490,12 @@ class Ms extends Bs {
9490
9490
  m.classList.add("module-bounds"), u.appendChild(m);
9491
9491
  const g = Is(e.height, e.width);
9492
9492
  g.setAttribute("opacity", "0"), m.appendChild(g);
9493
- const f = tt("g");
9494
- f.classList.add("module-text-enclosure"), u.appendChild(f);
9495
- const p = A();
9496
- f.appendChild(p);
9493
+ const p = tt("g");
9494
+ p.classList.add("module-text-enclosure"), u.appendChild(p);
9495
+ const f = A();
9496
+ p.appendChild(f);
9497
9497
  const C = gr(d);
9498
- return Fs(f, C, e.height, e.width, 0.35, 0.65), Ds(u.outerHTML);
9498
+ return Fs(p, C, e.height, e.width, 0.35, 0.65), Ds(u.outerHTML);
9499
9499
  }
9500
9500
  }
9501
9501
  async function qn(r) {
@@ -10157,7 +10157,7 @@ class Ha extends Dn {
10157
10157
  }
10158
10158
  }
10159
10159
  class Ao {
10160
- constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, f = !1, p = !1, C = !1) {
10160
+ constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, C = !1) {
10161
10161
  this.workflowStatePromiseQueue = new Fn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10162
10162
  var S;
10163
10163
  if (!this.previewService)
@@ -10166,7 +10166,7 @@ class Ao {
10166
10166
  if (v)
10167
10167
  for (const [, E] of v)
10168
10168
  E.render(w);
10169
- }, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = p, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, this.isReloadedTransaction = f, this.workflow.steps.forEach((w) => {
10169
+ }, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = f, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, this.isReloadedTransaction = p, this.workflow.steps.forEach((w) => {
10170
10170
  this.stepTags[w.stepName] = w.tags ?? [];
10171
10171
  }), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
10172
10172
  this.initialized = !0;
@@ -10212,7 +10212,7 @@ class Ao {
10212
10212
  }
10213
10213
  });
10214
10214
  else {
10215
- const f = await this.graphQlClient().mutate({
10215
+ const p = await this.graphQlClient().mutate({
10216
10216
  mutation: so,
10217
10217
  errorPolicy: "all",
10218
10218
  fetchPolicy: "no-cache",
@@ -10230,7 +10230,7 @@ class Ao {
10230
10230
  }
10231
10231
  });
10232
10232
  this.transaction.recipient = {
10233
- id: (h = (u = f == null ? void 0 : f.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id,
10233
+ id: (h = (u = p == null ? void 0 : p.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id,
10234
10234
  firstName: t,
10235
10235
  lastName: e,
10236
10236
  address: a,
@@ -10247,14 +10247,14 @@ class Ao {
10247
10247
  fetchPolicy: "no-cache",
10248
10248
  variables: {
10249
10249
  id: this.transaction.id,
10250
- recipientId: (g = (m = f.data) == null ? void 0 : m.recipientCreate) == null ? void 0 : g.id
10250
+ recipientId: (g = (m = p.data) == null ? void 0 : m.recipientCreate) == null ? void 0 : g.id
10251
10251
  },
10252
10252
  context: {
10253
10253
  transactionOwnerId: this.transaction.transactionOwnerId
10254
10254
  }
10255
10255
  });
10256
10256
  }
10257
- this.recipientCallbacks.forEach((f) => f(this.transaction.recipient));
10257
+ this.recipientCallbacks.forEach((p) => p(this.transaction.recipient));
10258
10258
  }
10259
10259
  async initializeDefaultWorkflowState(t) {
10260
10260
  const e = () => {
@@ -10749,7 +10749,7 @@ class Ao {
10749
10749
  const E = (S = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : S.frameService;
10750
10750
  E == null || E.setTargetElements(a.map((B) => B.id));
10751
10751
  }
10752
- const f = u.map((E) => new Et(E.id)), p = new Va(this.constructSerializableWorkflow()), C = [...m, ...f, p];
10752
+ const p = u.map((E) => new Et(E.id)), f = new Va(this.constructSerializableWorkflow()), C = [...m, ...p, f];
10753
10753
  C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10754
10754
  const w = this.getInvalidModelVariants(), v = this.modelContainer;
10755
10755
  if (v) {
@@ -11218,7 +11218,7 @@ class go extends rt {
11218
11218
  );
11219
11219
  }
11220
11220
  }
11221
- class fo extends rt {
11221
+ class po extends rt {
11222
11222
  constructor(t, e, a) {
11223
11223
  super(t, e, a);
11224
11224
  }
@@ -11235,7 +11235,7 @@ class fo extends rt {
11235
11235
  return this.step.data.displayType || ((t = this.step.option) == null ? void 0 : t.displayType);
11236
11236
  }
11237
11237
  }
11238
- class po extends rt {
11238
+ class fo extends rt {
11239
11239
  constructor(t, e, a) {
11240
11240
  super(t, e, a);
11241
11241
  }
@@ -11587,7 +11587,7 @@ class oe {
11587
11587
  case P.Information:
11588
11588
  return new wo(t, e, t.getStepTags(e.stepName));
11589
11589
  case P.Question:
11590
- return new fo(t, e, t.getStepTags(e.stepName));
11590
+ return new po(t, e, t.getStepTags(e.stepName));
11591
11591
  case P.Text:
11592
11592
  return new Co(t, e, t.getStepTags(e.stepName));
11593
11593
  case P.Illustration:
@@ -11595,7 +11595,7 @@ class oe {
11595
11595
  case P.Picture:
11596
11596
  return new go(t, e, t.getStepTags(e.stepName));
11597
11597
  case P.Shape:
11598
- return new po(t, e, t.getStepTags(e.stepName));
11598
+ return new fo(t, e, t.getStepTags(e.stepName));
11599
11599
  case P.Material:
11600
11600
  return new ho(t, e, t.getStepTags(e.stepName));
11601
11601
  case P.Model:
@@ -11829,7 +11829,7 @@ const Bo = async (r) => {
11829
11829
  Q.errors && console.log("Server Error:", Z.message);
11830
11830
  }), null) : it ?? null;
11831
11831
  })() || (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"));
11832
- const u = r.getPreviewService(), h = (I = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : I.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && oa(l, t, !0), f = l && oa(l, t, !1), p = async (D) => {
11832
+ const u = r.getPreviewService(), h = (I = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : I.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && oa(l, t, !0), p = l && oa(l, t, !1), f = async (D) => {
11833
11833
  const F = {};
11834
11834
  let k = 0;
11835
11835
  if (Object.keys(i).length > 0)
@@ -11838,12 +11838,12 @@ const Bo = async (r) => {
11838
11838
  for (let Z = 0; Z < it.selections.length; ++Z) {
11839
11839
  const W = it.selections[Z];
11840
11840
  if (R && (!D || R.option && (R.option.variants || []).length > 1 && !R.data.hideSelectionInCart && !R.data.hideSelectionsInCart)) {
11841
- const pt = R.stepTitle;
11842
- F[pt] ? F[pt].push({
11841
+ const ft = R.stepTitle;
11842
+ F[ft] ? F[ft].push({
11843
11843
  id: W.id || "",
11844
11844
  name: W.name,
11845
11845
  priceModifier: W.priceModifier
11846
- }) : F[pt] = [
11846
+ }) : F[ft] = [
11847
11847
  {
11848
11848
  id: W.id || "",
11849
11849
  name: W.name,
@@ -11855,9 +11855,9 @@ const Bo = async (r) => {
11855
11855
  }
11856
11856
  }
11857
11857
  return [F, k];
11858
- }, [C] = await p(!0), w = Object.fromEntries(
11858
+ }, [C] = await f(!0), w = Object.fromEntries(
11859
11859
  Object.keys(C).map((D) => [D, C[D].map((F) => F.id)])
11860
- ), [v] = await p(!1), S = Object.fromEntries(
11860
+ ), [v] = await f(!1), S = Object.fromEntries(
11861
11861
  Object.keys(v).map((D) => [
11862
11862
  D,
11863
11863
  v[D].map((F) => F.id)
@@ -11886,9 +11886,9 @@ const Bo = async (r) => {
11886
11886
  useThreeDimPreview: !!m,
11887
11887
  previewImage: E
11888
11888
  };
11889
- if (f) {
11889
+ if (p) {
11890
11890
  const F = [];
11891
- for (const [k, Q] of Object.entries(f))
11891
+ for (const [k, Q] of Object.entries(p))
11892
11892
  F.push({ key: k, value: Q });
11893
11893
  D.metadata = F;
11894
11894
  }
@@ -11904,7 +11904,7 @@ const Bo = async (r) => {
11904
11904
  cartMetadata: g
11905
11905
  };
11906
11906
  }, Po = async (r, t, e, a, n, i, s, o, l, c, d) => {
11907
- var p, C;
11907
+ var f, C;
11908
11908
  l("workflow.steps.finish.finalize.buildingLayouts");
11909
11909
  const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await _n(
11910
11910
  r,
@@ -11918,13 +11918,13 @@ const Bo = async (r) => {
11918
11918
  d
11919
11919
  );
11920
11920
  l("workflow.steps.finish.finalize.creatingDesign");
11921
- const m = await Bo(A), g = (p = m == null ? void 0 : m.transaction) == null ? void 0 : p.previewImageLink;
11921
+ const m = await Bo(A), g = (f = m == null ? void 0 : m.transaction) == null ? void 0 : f.previewImageLink;
11922
11922
  if (!(m != null && m.transaction))
11923
11923
  throw new Error("Failed to create design");
11924
11924
  l("workflow.steps.finish.finalize.updatingTransaction");
11925
- const f = m.transaction;
11925
+ const p = m.transaction;
11926
11926
  return Kn(
11927
- f,
11927
+ p,
11928
11928
  n,
11929
11929
  t,
11930
11930
  u,
@@ -12236,8 +12236,8 @@ class Qo {
12236
12236
  DOMParser: ha(),
12237
12237
  fetch
12238
12238
  })).render();
12239
- const p = await this.getCanvasObjectURLAsync(s);
12240
- return s.toDataURL(p);
12239
+ const f = await this.getCanvasObjectURLAsync(s);
12240
+ return s.toDataURL(f);
12241
12241
  }
12242
12242
  getStepById(t) {
12243
12243
  const e = this.getWorkflowManager().getWorkflow().steps.find((i) => i.stepName === t);
@@ -12333,15 +12333,15 @@ class Qo {
12333
12333
  A !== void 0 && (A.forEach((u) => d.add(JSON.stringify(u))), o.forEach((u) => {
12334
12334
  const h = u.getRaw().globalPropertyAspectConfigurations;
12335
12335
  h !== void 0 && h.forEach((m) => {
12336
- const g = l(m), f = d.has(JSON.stringify(m));
12337
- if (f && (g == null ? void 0 : g.getType()) === "Option") {
12338
- const p = u.getCurrentVariant();
12339
- if (!p)
12336
+ const g = l(m), p = d.has(JSON.stringify(m));
12337
+ if (p && (g == null ? void 0 : g.getType()) === "Option") {
12338
+ const f = u.getCurrentVariant();
12339
+ if (!f)
12340
12340
  return;
12341
- c.selectVariant(p), d.delete(JSON.stringify(m));
12342
- } else if (f && (g == null ? void 0 : g.getType()) === "Text") {
12343
- const p = u.getText();
12344
- c.setText(p), d.delete(JSON.stringify(m));
12341
+ c.selectVariant(f), d.delete(JSON.stringify(m));
12342
+ } else if (p && (g == null ? void 0 : g.getType()) === "Text") {
12343
+ const f = u.getText();
12344
+ c.setText(f), d.delete(JSON.stringify(m));
12345
12345
  }
12346
12346
  });
12347
12347
  }));
@@ -12537,7 +12537,7 @@ const No = [
12537
12537
  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);
12538
12538
  o.searchParams.append("video", Ma(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12539
12539
  const l = o.toString(), d = `data:image/svg+xml;base64,${Ma(await rn(l, { type: "svg" }))}`, A = (h) => {
12540
- const m = r.find((f) => f.panelId === h.panelId);
12540
+ const m = r.find((p) => p.panelId === h.panelId);
12541
12541
  if (!m)
12542
12542
  throw new q(h);
12543
12543
  const g = N();
@@ -12567,7 +12567,7 @@ const No = [
12567
12567
  o && (t[a.stepName] = { selectedVariants: [o] });
12568
12568
  const l = async (c) => {
12569
12569
  var g;
12570
- const d = await Rn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Me(d), u = N(), h = r.find((f) => f.panelId === c.panelId);
12570
+ const d = await Rn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Me(d), u = N(), h = r.find((p) => p.panelId === c.panelId);
12571
12571
  if (!h)
12572
12572
  throw new q(c);
12573
12573
  const m = Sa(
@@ -12650,7 +12650,7 @@ const No = [
12650
12650
  B.classList.add(Q), g[Q] = { browserValue: F };
12651
12651
  }
12652
12652
  });
12653
- const p = Bt().serializeToString(m), C = n.colors;
12653
+ const f = Bt().serializeToString(m), C = n.colors;
12654
12654
  if (C) {
12655
12655
  for (const [B, I] of Object.entries(g))
12656
12656
  for (const D of Object.keys(C))
@@ -12668,7 +12668,7 @@ const No = [
12668
12668
  {
12669
12669
  colors: g,
12670
12670
  id: D,
12671
- svg: p,
12671
+ svg: f,
12672
12672
  type: T.Illustration,
12673
12673
  y: B.top,
12674
12674
  x: B.left,
@@ -12769,7 +12769,7 @@ const No = [
12769
12769
  return console.error(`No variant with ID: ${n.colorVariantId}`), [];
12770
12770
  t[a.stepName] = { selectedVariants: [s] };
12771
12771
  const o = (d) => {
12772
- const A = r.find((f) => f.panelId === d.panelId);
12772
+ const A = r.find((p) => p.panelId === d.panelId);
12773
12773
  if (!A)
12774
12774
  throw new q(d);
12775
12775
  const u = `
@@ -12851,10 +12851,10 @@ const No = [
12851
12851
  }
12852
12852
  else {
12853
12853
  const c = await at(i, !0), d = (A) => {
12854
- const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = (h == null ? void 0 : h.length) > 0 ? h[0] : "", p = dt().parseFromString(m, "image/svg+xml").firstElementChild;
12855
- if (!p)
12854
+ const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = (h == null ? void 0 : h.length) > 0 ? h[0] : "", f = dt().parseFromString(m, "image/svg+xml").firstElementChild;
12855
+ if (!f)
12856
12856
  throw new Dt("Failed to read SVG.");
12857
- return ma(p), Bt().serializeToString(p);
12857
+ return ma(f), Bt().serializeToString(f);
12858
12858
  };
12859
12859
  l.forEach((A) => {
12860
12860
  const u = r.find((m) => m.panelId === A.panelId);
@@ -12884,40 +12884,40 @@ const No = [
12884
12884
  }
12885
12885
  return a;
12886
12886
  }, Go = async (r, t, e, a) => {
12887
- const n = [], i = e.data, s = 30, o = (f) => f.vertical ? "center" : f.textAlign || "center", l = () => {
12887
+ const n = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
12888
12888
  var w;
12889
- const f = a.option;
12890
- if (!f)
12889
+ const p = a.option;
12890
+ if (!p)
12891
12891
  return;
12892
- const p = ((w = f.variants) == null ? void 0 : w.find((v) => v.id === i.fontVariantId)) || te(f);
12893
- if (!p || !p.asset)
12892
+ const f = ((w = p.variants) == null ? void 0 : w.find((v) => v.id === i.fontVariantId)) || te(p);
12893
+ if (!f || !f.asset)
12894
12894
  return;
12895
- t[a.stepName] = { selectedVariants: [p] };
12896
- const C = p.asset.fileLink;
12895
+ t[a.stepName] = { selectedVariants: [f] };
12896
+ const C = f.asset.fileLink;
12897
12897
  if (C)
12898
12898
  return C;
12899
12899
  }, d = await (async () => {
12900
- const f = l();
12901
- if (!f)
12900
+ const p = l();
12901
+ if (!p)
12902
12902
  return;
12903
- const p = await Qt(f);
12903
+ const f = await Qt(p);
12904
12904
  return {
12905
- assetUrl: f,
12906
- name: p.names.fullName.en
12905
+ assetUrl: p,
12906
+ name: f.names.fullName.en
12907
12907
  };
12908
12908
  })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = ye(A, {
12909
12909
  vertical: a.data.vertical,
12910
12910
  uppercase: a.data.uppercase
12911
- }), h = async (f) => {
12912
- const p = f.colorOption;
12913
- if (!p)
12911
+ }), h = async (p) => {
12912
+ const f = p.colorOption;
12913
+ if (!f)
12914
12914
  return;
12915
- const C = _.getDefaultVariant(p);
12915
+ const C = _.getDefaultVariant(f);
12916
12916
  return C == null ? void 0 : C.color;
12917
12917
  }, m = i.color || await h(a.data), g = a.data.regions;
12918
- for (const f of g) {
12919
- const p = r.find((w) => w.panelId === f.panelId);
12920
- if (!p)
12918
+ for (const p of g) {
12919
+ const f = r.find((w) => w.panelId === p.panelId);
12920
+ if (!f)
12921
12921
  continue;
12922
12922
  const C = {
12923
12923
  stepName: e.name,
@@ -12927,24 +12927,24 @@ const No = [
12927
12927
  fill: i.color || m || "#000000",
12928
12928
  fontData: d,
12929
12929
  fontSize: a.data.size || s,
12930
- height: f.height,
12931
- layer: f.layer,
12932
- layerIndex: f.layerIndex,
12930
+ height: p.height,
12931
+ layer: p.layer,
12932
+ layerIndex: p.layerIndex,
12933
12933
  paths: a.data.paths,
12934
- rotation: f.rotation,
12934
+ rotation: p.rotation,
12935
12935
  text: u,
12936
12936
  type: T.Textbox,
12937
12937
  vertical: a.data.vertical,
12938
12938
  verticalAlign: a.data.verticalAlign || "middle",
12939
- width: f.width,
12940
- x: f.left,
12941
- y: f.top
12939
+ width: p.width,
12940
+ x: p.left,
12941
+ y: p.top
12942
12942
  };
12943
12943
  if (d) {
12944
12944
  const [w, v] = he(
12945
12945
  a.data.size || s,
12946
12946
  d,
12947
- f,
12947
+ p,
12948
12948
  [
12949
12949
  ye(u, {
12950
12950
  vertical: a.data.vertical,
@@ -12965,11 +12965,11 @@ const No = [
12965
12965
  text: C.curved ? C.text : (v || []).join(`
12966
12966
  `)
12967
12967
  },
12968
- p
12968
+ f
12969
12969
  )
12970
12970
  );
12971
12971
  } else
12972
- n.push(new G(C, p));
12972
+ n.push(new G(C, f));
12973
12973
  }
12974
12974
  return n;
12975
12975
  }, Wo = (r, t) => r.conditions ? r.conditions.every((e) => {
@@ -13427,7 +13427,7 @@ class Xo extends Ba {
13427
13427
  }
13428
13428
  async getImageWithColors() {
13429
13429
  var t, e;
13430
- return await this.loadImageData(), (t = this.imageData) != null && t.svg ? Aa(fa(this.imageData.svg, this.imageData.colors ?? {}, !1)) : (e = this.imageData) == null ? void 0 : e.src;
13430
+ return await this.loadImageData(), (t = this.imageData) != null && t.svg ? Aa(pa(this.imageData.svg, this.imageData.colors ?? {}, !1)) : (e = this.imageData) == null ? void 0 : e.src;
13431
13431
  }
13432
13432
  /**
13433
13433
  * Retrieves the original, unmodified image selection, if one exists.
@@ -14187,15 +14187,17 @@ class Zn {
14187
14187
  * @returns
14188
14188
  */
14189
14189
  async fetchProductsFeed(t, e, a, n, i, s) {
14190
- var c, d, A, u, h, m;
14190
+ var d, A, u, h, m, g;
14191
14191
  if (this.fullFetched) {
14192
- const g = await (a ? this.filterProducts(a) : this.fetchProducts());
14192
+ const p = await (a ? this.filterProducts(a) : this.fetchProducts());
14193
14193
  return {
14194
- total: g.length,
14195
- items: g.slice(t, t + e)
14194
+ total: p.length,
14195
+ items: p.slice(t, t + e)
14196
14196
  };
14197
14197
  }
14198
- const o = await b.getShadowGraphqlClient().query({
14198
+ const o = b.getShadowGraphqlClient();
14199
+ console.log({ client: o });
14200
+ const l = await b.getShadowGraphqlClient().query({
14199
14201
  query: Ls,
14200
14202
  variables: {
14201
14203
  id: this.getId(),
@@ -14216,8 +14218,8 @@ class Zn {
14216
14218
  fetchPolicy: this.fetched ? "cache-only" : "cache-first"
14217
14219
  });
14218
14220
  return this.fetched = !0, {
14219
- items: ((A = (d = (c = o == null ? void 0 : o.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.items.filter((g) => !!g.product).map((g) => new le(g))) || [],
14220
- total: ((m = (h = (u = o == null ? void 0 : o.data) == null ? void 0 : u.productCollections) == null ? void 0 : h[0].productCollectionProductsFeed) == null ? void 0 : m.total) ?? 0
14221
+ items: ((u = (A = (d = l == null ? void 0 : l.data) == null ? void 0 : d.productCollections) == null ? void 0 : A[0].productCollectionProductsFeed) == null ? void 0 : u.items.filter((p) => !!p.product).map((p) => new le(p))) || [],
14222
+ total: ((g = (m = (h = l == null ? void 0 : l.data) == null ? void 0 : h.productCollections) == null ? void 0 : m[0].productCollectionProductsFeed) == null ? void 0 : g.total) ?? 0
14221
14223
  };
14222
14224
  }
14223
14225
  getTransformCollection() {
@@ -14539,11 +14541,11 @@ class He {
14539
14541
  return;
14540
14542
  }
14541
14543
  console.log("Setting default global variants."), this.globalPropertyHandleService.getHandles().then((m) => {
14542
- const g = m.map((f) => {
14543
- if (f.getType() === et.ColorOption || f.getType() === et.Option) {
14544
- const p = f;
14544
+ const g = m.map((p) => {
14545
+ if (p.getType() === et.ColorOption || p.getType() === et.Option) {
14546
+ const f = p;
14545
14547
  if (this.globalPropertyStateManager.getGlobalPropertyState())
14546
- return p.initDefaultVariant();
14548
+ return f.initDefaultVariant();
14547
14549
  console.log("Attempted to set global default variant before state was initialized.");
14548
14550
  }
14549
14551
  });
@@ -14680,11 +14682,11 @@ class He {
14680
14682
  this.getWorkflowExperiences(),
14681
14683
  this.globalConfigurationPropertyId || "",
14682
14684
  l
14683
- ), m = [...new Set(A.map((f) => f.number))];
14685
+ ), m = [...new Set(A.map((p) => p.number))];
14684
14686
  if (m.length > h)
14685
- for (const f of m) {
14686
- const p = this.getGlobalPropertyStateManager(), C = u.find((w) => w.channelNumber === f);
14687
- C && await p.setAspect(l, C.variant.id || "", void 0, C.channelNumber);
14687
+ for (const p of m) {
14688
+ const f = this.getGlobalPropertyStateManager(), C = u.find((w) => w.channelNumber === p);
14689
+ C && await f.setAspect(l, C.variant.id || "", void 0, C.channelNumber);
14688
14690
  }
14689
14691
  }
14690
14692
  }
@@ -14882,7 +14884,7 @@ class He {
14882
14884
  variables: {
14883
14885
  id: this.id,
14884
14886
  details: t,
14885
- type: e || fe.Owner
14887
+ type: e || pe.Owner
14886
14888
  },
14887
14889
  context: {
14888
14890
  bundleOwnerId: this.ownerId
@@ -15191,7 +15193,7 @@ const gl = y`
15191
15193
  }
15192
15194
  }
15193
15195
  `;
15194
- class fl {
15196
+ class pl {
15195
15197
  /**
15196
15198
  *
15197
15199
  * @param id
@@ -15244,7 +15246,7 @@ class fl {
15244
15246
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15245
15247
  );
15246
15248
  if (m.completedAt) {
15247
- o = !0, d = new pl(m);
15249
+ o = !0, d = new fl(m);
15248
15250
  break;
15249
15251
  }
15250
15252
  l += 1;
@@ -15258,7 +15260,7 @@ class fl {
15258
15260
  return Promise.resolve(d);
15259
15261
  }
15260
15262
  }
15261
- class pl {
15263
+ class fl {
15262
15264
  constructor(t) {
15263
15265
  this.execution = t;
15264
15266
  }
@@ -15601,12 +15603,12 @@ class Zc {
15601
15603
  try {
15602
15604
  return b.getShadowGraphqlClient().mutate({
15603
15605
  ...e,
15604
- mutation: pi
15606
+ mutation: fi
15605
15607
  });
15606
15608
  } catch (a) {
15607
15609
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15608
15610
  }
15609
- }, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.38.0-beta.67ad5dcf-77a2-51da-a7de-ffed9137f36a"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15611
+ }, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.38.0-beta.d98620d3-59a9-5edf-b33f-1e6356cd6536"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15610
15612
  }
15611
15613
  configure(t) {
15612
15614
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15626,7 +15628,7 @@ class Zc {
15626
15628
  getFlowService() {
15627
15629
  if (!Nr())
15628
15630
  throw new Error("Application key required to use Flow Service.");
15629
- return new fl();
15631
+ return new pl();
15630
15632
  }
15631
15633
  async getIntegration() {
15632
15634
  if (this.activeIntegration)
@@ -15653,7 +15655,7 @@ class Zc {
15653
15655
  var n, i;
15654
15656
  const e = M.getMap("bundleOwnerIds");
15655
15657
  if (e != null && e.has(t))
15656
- return Promise.resolve({ success: !0, stakeholderType: fe.Owner });
15658
+ return Promise.resolve({ success: !0, stakeholderType: pe.Owner });
15657
15659
  const a = M.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
15658
15660
  if (a.has(t)) {
15659
15661
  const s = a.get(t), l = (M.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map()).get(s);
@@ -15702,11 +15704,11 @@ class Zc {
15702
15704
  return Promise.resolve({ success: !1, transactionReadOnly: !0 });
15703
15705
  const s = M.getMap("transactionOwnerIds");
15704
15706
  if (s != null && s.has(t))
15705
- return Promise.resolve({ success: !0, stakeholderType: fe.Owner });
15707
+ return Promise.resolve({ success: !0, stakeholderType: pe.Owner });
15706
15708
  const o = M.getMap("transactionCustomerIds");
15707
15709
  if (o != null && o.has(t)) {
15708
- const f = o.get(t);
15709
- if (f && await this.authenticateCustomerId(f)) {
15710
+ const p = o.get(t);
15711
+ if (p && await this.authenticateCustomerId(p)) {
15710
15712
  const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
15711
15713
  (w) => {
15712
15714
  var v, S;
@@ -15913,13 +15915,13 @@ class Zc {
15913
15915
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15914
15916
  */
15915
15917
  async getExistingBundle(t, e, a, n) {
15916
- var f, p, C, w, v, S, E, B, I, D, F;
15917
- const i = M.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([k, Q]) => k.startsWith("CognitoIdentityServiceProvider") && k.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
15918
+ var p, f, C, w, v, S, E, B, I, D, F;
15919
+ const i = M.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((p = Object.entries(localStorage).find(([k, Q]) => k.startsWith("CognitoIdentityServiceProvider") && k.endsWith("idToken"))) == null ? void 0 : p[0]) || "", c = localStorage.getItem(l), d = {};
15918
15920
  c && !Be(c) && (d.Authorization = `Bearer ${c}`);
15919
15921
  const A = {
15920
15922
  bundleOwnerId: s,
15921
15923
  ...d,
15922
- ...(p = n == null ? void 0 : n.graphql) == null ? void 0 : p.additionalHeaders
15924
+ ...(f = n == null ? void 0 : n.graphql) == null ? void 0 : f.additionalHeaders
15923
15925
  }, u = await b.getShadowGraphqlClient().query({
15924
15926
  query: Rs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15925
15927
  variables: {
@@ -15949,8 +15951,8 @@ class Zc {
15949
15951
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15950
15952
  */
15951
15953
  async duplicateBundle(t, e, a, n) {
15952
- var f, p, C, w, v, S, E, B;
15953
- const i = (f = M.getMap("bundleOwnerIds")) == null ? void 0 : f.get(t), o = ((p = Object.entries(localStorage).find(([I, D]) => I.startsWith("CognitoIdentityServiceProvider") && I.endsWith("idToken"))) == null ? void 0 : p[0]) || "", l = localStorage.getItem(o), c = {};
15954
+ var p, f, C, w, v, S, E, B;
15955
+ const i = (p = M.getMap("bundleOwnerIds")) == null ? void 0 : p.get(t), o = ((f = Object.entries(localStorage).find(([I, D]) => I.startsWith("CognitoIdentityServiceProvider") && I.endsWith("idToken"))) == null ? void 0 : f[0]) || "", l = localStorage.getItem(o), c = {};
15954
15956
  l && !Be(l) && (c.Authorization = `Bearer ${l}`);
15955
15957
  const d = {
15956
15958
  bundleOwnerId: i,
@@ -16055,7 +16057,7 @@ class Zc {
16055
16057
  if (S.length === 0)
16056
16058
  return [];
16057
16059
  const E = S.map((Q) => Q.option.transactionId), B = await a.query({
16058
- query: fi,
16060
+ query: pi,
16059
16061
  variables: {
16060
16062
  ids: E
16061
16063
  },
@@ -16111,7 +16113,7 @@ class Zc {
16111
16113
  ), c = Da(o, 10), d = Da(l, 10), A = (await Promise.all([
16112
16114
  ...c.map(n),
16113
16115
  ...d.map(i)
16114
- ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await er(u, e), m = new Map(h.map((S) => [S.id, S])), g = M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
16116
+ ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await er(u, e), m = new Map(h.map((S) => [S.id, S])), g = M.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (S) => {
16115
16117
  var Z;
16116
16118
  const { transaction: E, workflowId: B, readOnly: I, index: D } = S, F = m.get(B), k = t[D];
16117
16119
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
@@ -16136,10 +16138,10 @@ class Zc {
16136
16138
  };
16137
16139
  if (k.type === "transaction" && E.workflowState) {
16138
16140
  const W = JSON.parse(E.workflowState);
16139
- R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await La(W), R.reloadedState = W;
16141
+ R.layouts = Object.values(W.layouts || {}).map((ft) => ft.layout), await La(W), R.reloadedState = W;
16140
16142
  } else if (!I && k.workflowState) {
16141
16143
  const W = JSON.parse(k.workflowState);
16142
- R.layouts = Object.values(W.layouts || {}).map((pt) => pt.layout), await La(W), R.reloadedState = W;
16144
+ R.layouts = Object.values(W.layouts || {}).map((ft) => ft.layout), await La(W), R.reloadedState = W;
16143
16145
  } else
16144
16146
  R.layouts = Dl(
16145
16147
  R.transaction,
@@ -16148,9 +16150,9 @@ class Zc {
16148
16150
  return R.renderableContextService = new Ho(
16149
16151
  R.layouts
16150
16152
  ), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
16151
- }), p = await Promise.all(f);
16153
+ }), f = await Promise.all(p);
16152
16154
  M.setMap("transactionOwnerIds", g);
16153
- const w = p.sort((S, E) => S.index - E.index).map(async (S) => {
16155
+ const w = f.sort((S, E) => S.index - E.index).map(async (S) => {
16154
16156
  const { experienceOptions: E, options: B } = S, I = new Qo(this, E);
16155
16157
  return await I.getWorkflowManager().getInitializationPromise(), B.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
16156
16158
  }), v = await Promise.all(w);
@@ -16366,7 +16368,7 @@ class kl {
16366
16368
  getImageSrc() {
16367
16369
  if (this.imageData) {
16368
16370
  if (this.imageData.svg) {
16369
- const t = fa(this.imageData.svg, this.imageData.colors || {}, !1);
16371
+ const t = pa(this.imageData.svg, this.imageData.colors || {}, !1);
16370
16372
  return Aa(t);
16371
16373
  }
16372
16374
  return this.imageData.src;
@@ -17252,7 +17254,7 @@ const nr = y`
17252
17254
  }
17253
17255
  `;
17254
17256
  var Kl = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(Kl || {}), _l = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(_l || {});
17255
- const fd = async (r) => {
17257
+ const pd = async (r) => {
17256
17258
  const t = r.map((a) => {
17257
17259
  var n;
17258
17260
  return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
@@ -17270,7 +17272,7 @@ const fd = async (r) => {
17270
17272
  if (n)
17271
17273
  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;
17272
17274
  });
17273
- }, pd = async (r) => {
17275
+ }, fd = async (r) => {
17274
17276
  var e;
17275
17277
  return (e = (await b.getShadowGraphqlClient().query({
17276
17278
  query: Hl,
@@ -17333,8 +17335,8 @@ export {
17333
17335
  yo as DigitalContentStepHandle,
17334
17336
  Xo as FileUploadGlobalPropertyHandle,
17335
17337
  ce as FlowExecutionNodeResult,
17336
- pl as FlowExecutionResult,
17337
- fl as FlowService,
17338
+ fl as FlowExecutionResult,
17339
+ pl as FlowService,
17338
17340
  ss as FontAlignmentCommand,
17339
17341
  rs as FontColorCommand,
17340
17342
  is as FontSizeCommand,
@@ -17362,7 +17364,7 @@ export {
17362
17364
  tr as ObjectInput,
17363
17365
  Cl as ObjectInputType,
17364
17366
  Xn as OptionGlobalPropertyHandle,
17365
- pe as OptionNotFoundError,
17367
+ fe as OptionNotFoundError,
17366
17368
  Dt as ParseError,
17367
17369
  go as PictureStepHandle,
17368
17370
  Sr as ProductCameraRig,
@@ -17371,18 +17373,18 @@ export {
17371
17373
  Gt as ProductWorkflow,
17372
17374
  qt as PromiseCache,
17373
17375
  Fn as PromiseQueue,
17374
- fo as QuestionStepHandle,
17376
+ po as QuestionStepHandle,
17375
17377
  Dn as QueueablePromise,
17376
17378
  Vc as ResizeCommand,
17377
17379
  jt as ResourceNotFoundError,
17378
17380
  Lc as RotateCommand,
17379
17381
  j as ScaleAxis,
17380
17382
  Hc as SendBackwardsCommand,
17381
- po as ShapeStepHandle,
17383
+ fo as ShapeStepHandle,
17382
17384
  wr as ShareActionType,
17383
17385
  Zc as SpiffCommerceClient,
17384
- fe as StakeholderType,
17385
- pr as StepAspectType,
17386
+ pe as StakeholderType,
17387
+ fr as StepAspectType,
17386
17388
  rt as StepHandle,
17387
17389
  P as StepType,
17388
17390
  Mt as TextAlgorithm,
@@ -17420,7 +17422,7 @@ export {
17420
17422
  jo as generateCommands,
17421
17423
  lt as generateSVGWithUnknownColors,
17422
17424
  Yc as generateStateFromDesignInputSteps,
17423
- pd as getAddressValidationJobs,
17425
+ fd as getAddressValidationJobs,
17424
17426
  Fe as getAttributesFromArrayBuffer,
17425
17427
  bc as getAxisAlignedBoundingBox,
17426
17428
  xl as getBoundedOffsets,
@@ -17445,7 +17447,7 @@ export {
17445
17447
  Ad as getTransactionsForBundle,
17446
17448
  Dc as getTrueCoordinates,
17447
17449
  ud as getUnorderedTransactions,
17448
- fd as getValidationJobsForWorkflowExperiences,
17450
+ pd as getValidationJobsForWorkflowExperiences,
17449
17451
  Xc as getWorkflow,
17450
17452
  er as getWorkflows,
17451
17453
  b as graphQlManager,
@@ -17457,7 +17459,7 @@ export {
17457
17459
  sl as metafieldManager,
17458
17460
  Nc as mmPerPixel,
17459
17461
  Gn as modelStepService,
17460
- fa as modifySVGColors,
17462
+ pa as modifySVGColors,
17461
17463
  Wn as moduleStepService,
17462
17464
  id as nameBundle,
17463
17465
  sd as nameTransaction,