@spiffcommerce/core 26.20.0 → 26.21.0-beta.42b9cd00-4ce1-5564-9951-337d0077061c

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
@@ -11,7 +11,7 @@ import Pt from "lodash.clonedeep";
11
11
  import { toString as nn } from "qrcode";
12
12
  import Ar from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
- import { jsx as x, jsxs as lt, Fragment as Vt } from "preact/jsx-runtime";
14
+ import { jsx as F, jsxs as lt, Fragment as Vt } from "preact/jsx-runtime";
15
15
  import { dataUriToBuffer as ur } from "data-uri-to-buffer";
16
16
  import Da from "lodash.chunk";
17
17
  import rn from "lodash.isequal";
@@ -179,8 +179,8 @@ function ct(r, t) {
179
179
  }
180
180
  return Xe(r, t);
181
181
  }
182
- const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
- const t = Fa.get(r);
182
+ const ln = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
+ const t = xa.get(r);
184
184
  if (t)
185
185
  return t;
186
186
  const a = (async () => {
@@ -188,13 +188,13 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
188
188
  const n = await ct(r);
189
189
  return ln.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
190
190
  })();
191
- return Fa.set(r, a), a;
191
+ return xa.set(r, a), a;
192
192
  }, vr = async (r) => {
193
- const t = xa.get(r);
193
+ const t = Fa.get(r);
194
194
  if (t)
195
195
  return t;
196
196
  const a = (async () => await (await ct(r)).text())();
197
- return xa.set(r, a), a;
197
+ return Fa.set(r, a), a;
198
198
  }, Mt = (r) => r.every((t) => t !== "undefined"), ee = (r) => Mt([typeof document]) ? document.createElement(r) : Jt().document.createElement(r), Er = (r, t) => {
199
199
  if (Mt([typeof document]))
200
200
  return document.createElementNS(r, t);
@@ -292,9 +292,9 @@ const Ma = (r) => {
292
292
  un = r;
293
293
  };
294
294
  let ua;
295
- const Fr = (r) => {
295
+ const xr = (r) => {
296
296
  ua = r;
297
- }, xr = () => ua;
297
+ }, Fr = () => ua;
298
298
  let hn;
299
299
  const kr = (r) => {
300
300
  hn = r;
@@ -331,8 +331,8 @@ class Qr {
331
331
  const p = window.__SENTRY__.hub;
332
332
  if (p) {
333
333
  const C = p.traceHeaders();
334
- Object.entries(C).forEach(([w, v]) => {
335
- l[w] = v;
334
+ Object.entries(C).forEach(([w, E]) => {
335
+ l[w] = E;
336
336
  });
337
337
  }
338
338
  }
@@ -1798,7 +1798,7 @@ const Nr = (r) => new Promise((t) => {
1798
1798
  "Black 5 C",
1799
1799
  "Black 6 C",
1800
1800
  "Black 7 C"
1801
- ], Ft = [
1801
+ ], xt = [
1802
1802
  "FEDD00",
1803
1803
  "FFD700",
1804
1804
  "FE5000",
@@ -3140,17 +3140,17 @@ const Nr = (r) => new Promise((t) => {
3140
3140
  "3E2B2E",
3141
3141
  "101820",
3142
3142
  "3D3935"
3143
- ], Re = Ft.map((r) => [
3143
+ ], Re = xt.map((r) => [
3144
3144
  parseInt(r.substring(0, 2), 16),
3145
3145
  parseInt(r.substring(2, 4), 16),
3146
3146
  parseInt(r.substring(4, 6), 16)
3147
3147
  ]);
3148
3148
  function ec(r) {
3149
3149
  const t = jt.indexOf(r);
3150
- return t >= 0 ? Ft[t] : "";
3150
+ return t >= 0 ? xt[t] : "";
3151
3151
  }
3152
3152
  function Lr(r) {
3153
- const t = Ft.indexOf(r);
3153
+ const t = xt.indexOf(r);
3154
3154
  return t >= 0 ? jt[t] : "";
3155
3155
  }
3156
3156
  function ac(r, t = 64) {
@@ -3162,16 +3162,16 @@ function ac(r, t = 64) {
3162
3162
  });
3163
3163
  const i = parseInt(r.substring(0, 2), 16), s = parseInt(r.substring(2, 4), 16), o = parseInt(r.substring(4, 6), 16);
3164
3164
  let l, c, d;
3165
- for (let A = 0; A < Ft.length; A++) {
3165
+ for (let A = 0; A < xt.length; A++) {
3166
3166
  l = Re[A][0], c = Re[A][1], d = Re[A][2];
3167
3167
  const u = Math.sqrt(Math.pow(i - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
3168
3168
  a.push(u);
3169
3169
  }
3170
3170
  for (let A = 0; A < a.length; A++)
3171
- a[A] <= t && !e.some((u) => u.pms === jt[A]) && e.push({ pms: jt[A], hex: Ft[A], distance: a[A] });
3171
+ a[A] <= t && !e.some((u) => u.pms === jt[A]) && e.push({ pms: jt[A], hex: xt[A], distance: a[A] });
3172
3172
  return e.sort((A, u) => A.distance - u.distance);
3173
3173
  }
3174
- const $r = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr($r, { keys: ["pms"] });
3174
+ const $r = jt.map((r, t) => ({ pms: r, hex: xt[t] })), Vr = new dr($r, { keys: ["pms"] });
3175
3175
  function nc(r, t) {
3176
3176
  return Vr.search(r, t ? { limit: t } : void 0);
3177
3177
  }
@@ -3228,8 +3228,8 @@ const ne = (r) => {
3228
3228
  "textPath",
3229
3229
  "tref",
3230
3230
  "tspan"
3231
- ], Wr = ["fill", "stroke"], xt = (r, t) => {
3232
- t(r), r.children.length > 0 && Array.from(r.children).forEach((e) => xt(e, t));
3231
+ ], Wr = ["fill", "stroke"], Ft = (r, t) => {
3232
+ t(r), r.children.length > 0 && Array.from(r.children).forEach((e) => Ft(e, t));
3233
3233
  }, jr = (r, t) => {
3234
3234
  try {
3235
3235
  return r.matches(t);
@@ -3239,7 +3239,7 @@ const ne = (r) => {
3239
3239
  }, ma = (r, t = !1) => {
3240
3240
  !t && r.setAttribute("preserveAspectRatio", "none");
3241
3241
  const e = [];
3242
- xt(r, (a) => {
3242
+ Ft(r, (a) => {
3243
3243
  var i, s, o;
3244
3244
  if (a.tagName === "script") {
3245
3245
  a.remove();
@@ -3266,7 +3266,7 @@ const ne = (r) => {
3266
3266
  }
3267
3267
  }), l.length > 0 ? a.setAttribute("style", l.join(";")) : a.removeAttribute("style");
3268
3268
  }
3269
- }), xt(r, (a) => {
3269
+ }), Ft(r, (a) => {
3270
3270
  e.forEach((n) => {
3271
3271
  var i;
3272
3272
  (i = n.selectors) == null || i.forEach((s) => {
@@ -3285,7 +3285,7 @@ const ne = (r) => {
3285
3285
  }, pn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, qr = (r, t, e) => {
3286
3286
  r.setAttribute("height", `${e}px`), r.setAttribute("width", `${t}px`);
3287
3287
  }, Cn = (r, t, e) => {
3288
- xt(r, (a) => {
3288
+ Ft(r, (a) => {
3289
3289
  const n = a.attributes.getNamedItem("fill");
3290
3290
  n && n.value !== "none" && a.classList.forEach((s) => {
3291
3291
  if (s.startsWith("spiff-fill")) {
@@ -3342,7 +3342,7 @@ const ne = (r) => {
3342
3342
  throw new Error("Failed to read SVG.");
3343
3343
  ma(e);
3344
3344
  const a = {};
3345
- xt(e, (s) => {
3345
+ Ft(e, (s) => {
3346
3346
  Gr.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3347
3347
  const o = s.attributes.getNamedItem("fill");
3348
3348
  if (o && o.value !== "none" && !o.value.startsWith("url(")) {
@@ -5068,7 +5068,7 @@ const X = new li(), vn = y`
5068
5068
  }
5069
5069
  }
5070
5070
  }
5071
- `, Fi = y`
5071
+ `, xi = y`
5072
5072
  ${Pe}
5073
5073
  query ReadBundleForMarketplaceTheme($id: String!) {
5074
5074
  bundles(ids: [$id]) {
@@ -5077,7 +5077,7 @@ const X = new li(), vn = y`
5077
5077
  }
5078
5078
  }
5079
5079
  }
5080
- `, xi = y`
5080
+ `, Fi = y`
5081
5081
  mutation CreateOrder($orderItems: [OrderItemInput]!) {
5082
5082
  orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
5083
5083
  id
@@ -5267,14 +5267,14 @@ const Q = () => {
5267
5267
  width: u
5268
5268
  }) => {
5269
5269
  var B;
5270
- 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 = Q(), C = a.purpose === Gt.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((E, I) => (
5270
+ 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 = Q(), C = a.purpose === Gt.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((S, I) => (
5271
5271
  /* @ts-ignore */
5272
- /* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
5273
- )), v = n.map((E) => ({
5274
- ...E,
5272
+ /* @__PURE__ */ F("color-profile", { name: S.name, xlinkHref: S.key, children: " " }, I)
5273
+ )), E = n.map((S) => ({
5274
+ ...S,
5275
5275
  _renderingConfiguration: a,
5276
5276
  mask: l ? `url(#viewmask-${p})` : void 0
5277
- })), S = ya(v);
5277
+ })), v = ya(E);
5278
5278
  return /* @__PURE__ */ lt(
5279
5279
  "svg",
5280
5280
  {
@@ -5296,7 +5296,7 @@ const Q = () => {
5296
5296
  children: [
5297
5297
  w,
5298
5298
  C,
5299
- !!r && /* @__PURE__ */ x(
5299
+ !!r && /* @__PURE__ */ F(
5300
5300
  "rect",
5301
5301
  {
5302
5302
  id: "layout-background",
@@ -5306,15 +5306,15 @@ const Q = () => {
5306
5306
  rx: h
5307
5307
  }
5308
5308
  ),
5309
- /* @__PURE__ */ x(
5309
+ /* @__PURE__ */ F(
5310
5310
  "g",
5311
5311
  {
5312
5312
  id: "element-group",
5313
5313
  clipPath: a.purpose === Gt.FreeDesign ? "url(#viewboxClip)" : void 0,
5314
- children: S.map((E) => Qn(E)).filter((E) => !!E)
5314
+ children: v.map((S) => Qn(S)).filter((S) => !!S)
5315
5315
  }
5316
5316
  ),
5317
- l && /* @__PURE__ */ x(
5317
+ l && /* @__PURE__ */ F(
5318
5318
  "rect",
5319
5319
  {
5320
5320
  x: l.x,
@@ -5328,7 +5328,7 @@ const Q = () => {
5328
5328
  }
5329
5329
  ),
5330
5330
  l && /* @__PURE__ */ lt("mask", { id: `viewmask-${p}`, children: [
5331
- /* @__PURE__ */ x(
5331
+ /* @__PURE__ */ F(
5332
5332
  "rect",
5333
5333
  {
5334
5334
  x: g.x,
@@ -5338,7 +5338,7 @@ const Q = () => {
5338
5338
  fill: "black"
5339
5339
  }
5340
5340
  ),
5341
- /* @__PURE__ */ x(
5341
+ /* @__PURE__ */ F(
5342
5342
  "rect",
5343
5343
  {
5344
5344
  x: l.x,
@@ -5353,12 +5353,12 @@ const Q = () => {
5353
5353
  }
5354
5354
  );
5355
5355
  }, rc = (r, t, e, a, n) => {
5356
- const i = gt(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));
5356
+ const i = gt(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, E = Math.max(Math.abs(f), Math.abs(p)), v = Math.max(Math.abs(C), Math.abs(w));
5357
5357
  return {
5358
- minX: l - v,
5359
- maxX: l + v,
5360
- minY: c - S,
5361
- maxY: c + S
5358
+ minX: l - E,
5359
+ maxX: l + E,
5360
+ minY: c - v,
5361
+ maxY: c + v
5362
5362
  };
5363
5363
  }, ic = (r, t, e) => {
5364
5364
  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));
@@ -5430,9 +5430,9 @@ const Q = () => {
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
- }, mc = 0.352778, gc = 0.035277, Fn = (r) => {
5433
+ }, mc = 0.352778, gc = 0.035277, xn = (r) => {
5434
5434
  const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
5435
- return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5435
+ return /* @__PURE__ */ F("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ F(
5436
5436
  "g",
5437
5437
  {
5438
5438
  transform: `
@@ -5441,7 +5441,7 @@ const Q = () => {
5441
5441
  matrix(${a}, ${-n}, ${n}, ${a}, 0, 0)
5442
5442
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5443
5443
  `,
5444
- children: /* @__PURE__ */ x(
5444
+ children: /* @__PURE__ */ F(
5445
5445
  "image",
5446
5446
  {
5447
5447
  xlinkHref: r.src,
@@ -5452,11 +5452,11 @@ const Q = () => {
5452
5452
  )
5453
5453
  }
5454
5454
  ) });
5455
- }, xn = (r) => {
5455
+ }, Fn = (r) => {
5456
5456
  var l;
5457
5457
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = gt(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5458
5458
  return /* @__PURE__ */ lt(Vt, { children: [
5459
- /* @__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 }) }))() }),
5459
+ /* @__PURE__ */ F("defs", { children: (() => /* @__PURE__ */ F("clipPath", { id: t, preserveAspectRatio: "none", children: r.clipPath ? /* @__PURE__ */ F("path", { d: r.clipPath }) : /* @__PURE__ */ F("rect", { x: 0, y: 0, width: r.width, height: r.height }) }))() }),
5460
5460
  /* @__PURE__ */ lt(
5461
5461
  "g",
5462
5462
  {
@@ -5467,7 +5467,7 @@ const Q = () => {
5467
5467
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5468
5468
  `,
5469
5469
  children: [
5470
- (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ x(
5470
+ (l = r._renderingConfiguration) != null && l.debug ? /* @__PURE__ */ F(
5471
5471
  "rect",
5472
5472
  {
5473
5473
  stroke: "red",
@@ -5479,7 +5479,7 @@ const Q = () => {
5479
5479
  height: r.height
5480
5480
  }
5481
5481
  ) : void 0,
5482
- s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
5482
+ s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ F("g", { clipPath: `url(#${t})`, children: c }))
5483
5483
  ]
5484
5484
  }
5485
5485
  )
@@ -5495,9 +5495,9 @@ const Q = () => {
5495
5495
  return r.pattern.src;
5496
5496
  };
5497
5497
  if (!a())
5498
- return /* @__PURE__ */ x(Vt, {});
5499
- const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ x(Vt, { children: r.useThreshold && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ lt("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5500
- /* @__PURE__ */ x(
5498
+ return /* @__PURE__ */ F(Vt, {});
5499
+ const n = () => r.threshold ? r.invertThreshold ? "1 ".repeat(r.threshold) + "0 ".repeat(256 - r.threshold) : "0 ".repeat(r.threshold) + "1 ".repeat(256 - r.threshold) : "", i = () => /* @__PURE__ */ F(Vt, { children: r.useThreshold && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ lt("filter", { id: e, "color-interpolation-filters": "sRGB", children: [
5500
+ /* @__PURE__ */ F(
5501
5501
  "feColorMatrix",
5502
5502
  {
5503
5503
  type: "matrix",
@@ -5511,14 +5511,14 @@ const Q = () => {
5511
5511
  }
5512
5512
  ),
5513
5513
  /* @__PURE__ */ lt("feComponentTransfer", { in: "greyscale", children: [
5514
- /* @__PURE__ */ x("feFuncR", { type: "discrete", tableValues: n() }),
5515
- /* @__PURE__ */ x("feFuncG", { type: "discrete", tableValues: n() }),
5516
- /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5514
+ /* @__PURE__ */ F("feFuncR", { type: "discrete", tableValues: n() }),
5515
+ /* @__PURE__ */ F("feFuncG", { type: "discrete", tableValues: n() }),
5516
+ /* @__PURE__ */ F("feFuncB", { type: "discrete", tableValues: n() })
5517
5517
  ] })
5518
5518
  ] }) }) }), s = r.rotation || 0, o = gt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5519
- var w, v, S, B, E, I, P, F, M, N;
5520
- 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 = ((B = r.pattern) == null ? void 0 : B.height) || 0, g = ((E = r.pattern) == null ? void 0 : E.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((P = r.pattern) == null ? void 0 : P.rotation) || 0;
5521
- return [(F = r.pattern) != null && F.svg ? {
5519
+ var w, E, v, B, S, I, P, x, M, N;
5520
+ const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((E = r.pattern) == null ? void 0 : E.y) || 0, h = ((v = r.pattern) == null ? void 0 : v.width) || 0, m = ((B = r.pattern) == null ? void 0 : B.height) || 0, g = ((S = r.pattern) == null ? void 0 : S.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((P = r.pattern) == null ? void 0 : P.rotation) || 0;
5521
+ return [(x = r.pattern) != null && x.svg ? {
5522
5522
  id: `${t}-contents`,
5523
5523
  type: T.Illustration,
5524
5524
  x: A,
@@ -5542,13 +5542,13 @@ const Q = () => {
5542
5542
  };
5543
5543
  return /* @__PURE__ */ lt(Vt, { children: [
5544
5544
  i(),
5545
- /* @__PURE__ */ x(
5545
+ /* @__PURE__ */ F(
5546
5546
  "g",
5547
5547
  {
5548
5548
  opacity: r.opacity,
5549
5549
  mask: r.stepName ? void 0 : r.mask,
5550
5550
  filter: r.useThreshold ? `url(#${e})` : void 0,
5551
- children: /* @__PURE__ */ x(
5551
+ children: /* @__PURE__ */ F(
5552
5552
  "g",
5553
5553
  {
5554
5554
  transform: `
@@ -5558,8 +5558,8 @@ const Q = () => {
5558
5558
  matrix(1, 0, 0, 1, ${-r.width / 2}, ${-r.height / 2})
5559
5559
  matrix(${r.scaleX}, 0, 0, ${r.scaleY}, 0, 0)
5560
5560
  `,
5561
- children: /* @__PURE__ */ x(
5562
- xn,
5561
+ children: /* @__PURE__ */ F(
5562
+ Fn,
5563
5563
  {
5564
5564
  id: t,
5565
5565
  x: 0,
@@ -5663,8 +5663,8 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5663
5663
  var m, g, f;
5664
5664
  if (h.type === "font-face" && h.declarations) {
5665
5665
  const p = (m = h.declarations.find(
5666
- (v) => v.property === "font-family"
5667
- )) == 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];
5666
+ (E) => E.property === "font-family"
5667
+ )) == null ? void 0 : m.value, C = (g = h.declarations.find((E) => E.property === "src")) == null ? void 0 : g.value, w = (f = C == null ? void 0 : C.match(/'(https.*?)'/)) == null ? void 0 : f[1];
5668
5668
  p && w && n.set(p, w);
5669
5669
  }
5670
5670
  });
@@ -5676,19 +5676,19 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5676
5676
  0,
5677
5677
  0,
5678
5678
  parseInt(u.getAttribute("font-size") ?? "72")
5679
- ), v = w.getBoundingBox().x2 - w.getBoundingBox().x1;
5680
- let S = 0;
5679
+ ), E = w.getBoundingBox().x2 - w.getBoundingBox().x1;
5680
+ let v = 0;
5681
5681
  const B = A.getAttribute("text-anchor");
5682
- B === "middle" ? S = v / 2 : B === "end" && (S = v);
5683
- const E = g.getPath(
5682
+ B === "middle" ? v = E / 2 : B === "end" && (v = E);
5683
+ const S = g.getPath(
5684
5684
  A.innerHTML,
5685
- parseFloat(A.getAttribute("x") ?? "0") - S,
5685
+ parseFloat(A.getAttribute("x") ?? "0") - v,
5686
5686
  parseFloat(A.getAttribute("y") ?? "0"),
5687
5687
  parseInt(u.getAttribute("font-size") ?? "72")
5688
5688
  );
5689
- E.fill = f, E.stroke = p, E.strokeWidth = parseFloat(C ?? "0");
5690
- const I = E.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
5691
- h.appendChild(F);
5689
+ S.fill = f, S.stroke = p, S.strokeWidth = parseFloat(C ?? "0");
5690
+ const I = S.toSVG(2), x = t.parseFromString(I, "image/svg+xml").firstElementChild;
5691
+ h.appendChild(x);
5692
5692
  }
5693
5693
  return e.querySelectorAll("text").forEach((d) => d.remove()), Et().serializeToString(a);
5694
5694
  }, pe = (r, t, e, a) => Math.max(Gi(r.join(`
@@ -5835,7 +5835,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5835
5835
  };
5836
5836
  return /* @__PURE__ */ lt(Vt, { children: [
5837
5837
  /* @__PURE__ */ lt("defs", { children: [
5838
- r.textFillImage && /* @__PURE__ */ x(
5838
+ r.textFillImage && /* @__PURE__ */ F(
5839
5839
  "pattern",
5840
5840
  {
5841
5841
  id: s,
@@ -5844,7 +5844,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5844
5844
  height: r.textFillImage.scale * r.textFillImage.height,
5845
5845
  x: 0,
5846
5846
  y: 0,
5847
- children: /* @__PURE__ */ x(
5847
+ children: /* @__PURE__ */ F(
5848
5848
  "image",
5849
5849
  {
5850
5850
  href: r.textFillImage.src,
@@ -5855,7 +5855,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5855
5855
  )
5856
5856
  }
5857
5857
  ),
5858
- /* @__PURE__ */ x(
5858
+ /* @__PURE__ */ F(
5859
5859
  "style",
5860
5860
  {
5861
5861
  type: "text/css",
@@ -5869,10 +5869,10 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5869
5869
  }
5870
5870
  }
5871
5871
  ),
5872
- r.curved && r.paths ? /* @__PURE__ */ x("path", { id: i, d: r.paths[0] }) : void 0
5872
+ r.curved && r.paths ? /* @__PURE__ */ F("path", { id: i, d: r.paths[0] }) : void 0
5873
5873
  ] }),
5874
- (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,
5875
- /* @__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(
5874
+ (f = r._renderingConfiguration) != null && f.debug ? /* @__PURE__ */ F("rect", { stroke: "blue", fill: "none", x: r.x, y: r.y, width: r.width, height: r.height }) : void 0,
5875
+ /* @__PURE__ */ F("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ F("g", { transform: `matrix(${a}, ${-n}, ${n}, ${a}, ${o}, ${l})`, children: /* @__PURE__ */ F(
5876
5876
  "text",
5877
5877
  {
5878
5878
  xmlSpace: "preserve",
@@ -5887,7 +5887,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5887
5887
  },
5888
5888
  stroke: d,
5889
5889
  strokeWidth: A,
5890
- children: r.curved ? /* @__PURE__ */ x(Yi, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ x(
5890
+ children: r.curved ? /* @__PURE__ */ F(Yi, { text: r.text || "", curvedPathId: i, align: r.align }) : c.map((p, C) => /* @__PURE__ */ F(
5891
5891
  qi,
5892
5892
  {
5893
5893
  align: r.vertical ? "center" : r.align,
@@ -5918,10 +5918,10 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5918
5918
  const s = (r.amountLines - 1) / 2;
5919
5919
  return (r.thisLineIdx - s) * n + r.fontSize / 4;
5920
5920
  };
5921
- return /* @__PURE__ */ x("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5921
+ return /* @__PURE__ */ F("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5922
5922
  }, Yi = (r) => {
5923
5923
  const t = `#${r.curvedPathId}`;
5924
- return /* @__PURE__ */ x(
5924
+ return /* @__PURE__ */ F(
5925
5925
  "textPath",
5926
5926
  {
5927
5927
  startOffset: (() => r.align === "left" ? "0%" : r.align === "right" ? "100%" : "50%")(),
@@ -5934,8 +5934,8 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5934
5934
  }, Ji = (r) => {
5935
5935
  var s, o;
5936
5936
  if (r.cachedObjectURL && !((s = r._renderingConfiguration) != null && s.omitCachedFields))
5937
- return /* @__PURE__ */ x(
5938
- Fn,
5937
+ return /* @__PURE__ */ F(
5938
+ xn,
5939
5939
  {
5940
5940
  id: r.id,
5941
5941
  src: r.cachedObjectURL,
@@ -5959,7 +5959,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5959
5959
  throw new Error(
5960
5960
  `Illustration element ${r.id} (stepName ${r.stepName}) lacked svg from src ${r.src} at render time.`
5961
5961
  );
5962
- return /* @__PURE__ */ x("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ x(
5962
+ return /* @__PURE__ */ F("g", { mask: r.stepName ? void 0 : r.mask, children: /* @__PURE__ */ F(
5963
5963
  "g",
5964
5964
  {
5965
5965
  transform: i,
@@ -6067,9 +6067,9 @@ class Ki {
6067
6067
  return { ...t, transaction: e.apply(a) };
6068
6068
  }
6069
6069
  }
6070
- const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ x(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(xn, { ...r }, r.id) : null, wa = (r, t, e) => {
6070
+ const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ F(xn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ F(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ F(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ F(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : null, wa = (r, t, e) => {
6071
6071
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6072
- return /* @__PURE__ */ x(
6072
+ return /* @__PURE__ */ F(
6073
6073
  Ni,
6074
6074
  {
6075
6075
  preserveAspectRatio: void 0,
@@ -6140,7 +6140,7 @@ const te = (r) => {
6140
6140
  if (!e.asset)
6141
6141
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6142
6142
  return e;
6143
- }, Fe = async (r) => {
6143
+ }, xe = async (r) => {
6144
6144
  if (Le.has(r))
6145
6145
  return Le.get(r);
6146
6146
  const e = (async () => {
@@ -6313,7 +6313,7 @@ const te = (r) => {
6313
6313
  };
6314
6314
  class pc {
6315
6315
  static async getFrame(t, e) {
6316
- const a = await Nn(e.region, e.src), n = await Fe(a), i = e.region || await Ut(t, T.Frame);
6316
+ const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6317
6317
  return {
6318
6318
  id: Q(),
6319
6319
  x: i.left,
@@ -7669,12 +7669,12 @@ class we {
7669
7669
  i && i(!0);
7670
7670
  const c = t.data.initialZoomLevel, d = await Promise.all(
7671
7671
  t.data.regions.map(async (m, g) => {
7672
- const f = await Fe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7672
+ const f = await xe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7673
7673
  p,
7674
7674
  f,
7675
7675
  c && !t.data.forceImageCover ? { scale: c } : void 0,
7676
7676
  t.data.forceImageCover
7677
- ) : void 0, v = p ? {
7677
+ ) : void 0, E = p ? {
7678
7678
  id: Q(),
7679
7679
  src: p.src,
7680
7680
  x: (w == null ? void 0 : w.x) || 0,
@@ -7684,18 +7684,18 @@ class we {
7684
7684
  scaleX: (w == null ? void 0 : w.zoom) || 1,
7685
7685
  scaleY: (w == null ? void 0 : w.zoom) || 1,
7686
7686
  rotation: 0
7687
- } : void 0, S = Q(), E = n.getLayouts().find((I) => I.panelId === m.panelId);
7688
- if (!E)
7687
+ } : void 0, v = Q(), S = n.getLayouts().find((I) => I.panelId === m.panelId);
7688
+ if (!S)
7689
7689
  throw new Y(m);
7690
7690
  return {
7691
- command: this.getCreateElementCommand(S, m, E, {
7691
+ command: this.getCreateElementCommand(v, m, S, {
7692
7692
  frameData: f,
7693
- pattern: v,
7693
+ pattern: E,
7694
7694
  disablePlaceholder: t.data.disablePlaceholder,
7695
7695
  stepName: t.stepName
7696
7696
  }),
7697
7697
  regionEl: {
7698
- id: S,
7698
+ id: v,
7699
7699
  region: m
7700
7700
  },
7701
7701
  removeExistingCommands: C
@@ -7940,13 +7940,13 @@ class os {
7940
7940
  if (!l)
7941
7941
  throw new Wt(o);
7942
7942
  const c = await ot(await this.getIllustrationBody(l)), d = await qt(c.svg), A = (C) => {
7943
- const w = i.getLayouts().find((S) => S.panelId === C.panelId);
7943
+ const w = i.getLayouts().find((v) => v.panelId === C.panelId);
7944
7944
  if (!w)
7945
7945
  throw new Y(C);
7946
- const v = Q();
7946
+ const E = Q();
7947
7947
  return {
7948
- regionElement: { id: v, region: C },
7949
- command: this.getCreateElementCommand(v, C, w, {
7948
+ regionElement: { id: E, region: C },
7949
+ command: this.getCreateElementCommand(E, C, w, {
7950
7950
  stepName: t.stepName,
7951
7951
  src: l,
7952
7952
  objectURL: d,
@@ -7958,49 +7958,49 @@ class os {
7958
7958
  const f = t.data.colorOption;
7959
7959
  return f && ((p = f.variants) == null || p.forEach((C) => {
7960
7960
  g = g.map((w) => {
7961
- var v;
7962
- return w.toLowerCase() === ((v = C.color) == null ? void 0 : v.toLowerCase()) ? C.name : w;
7961
+ var E;
7962
+ return w.toLowerCase() === ((E = C.color) == null ? void 0 : E.toLowerCase()) ? C.name : w;
7963
7963
  });
7964
7964
  })), i.updateMetadata(t.stepName, { colors: g }), {
7965
7965
  command: new O(m),
7966
7966
  followup: async () => {
7967
- var w, v;
7967
+ var w, E;
7968
7968
  await i.setSelectionsAndElements(
7969
7969
  t.stepName,
7970
7970
  [e],
7971
- u.map((S) => S.regionElement),
7971
+ u.map((v) => v.regionElement),
7972
7972
  async () => {
7973
7973
  i.setMandatoryFulfilled(t.stepName, !0), n(!1);
7974
7974
  }
7975
7975
  );
7976
7976
  const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
7977
7977
  if (C.length !== 0) {
7978
- const S = {};
7979
- (((v = o.assetConfiguration) == null ? void 0 : v.channelNumbers) || []).forEach((E) => {
7978
+ const v = {};
7979
+ (((E = o.assetConfiguration) == null ? void 0 : E.channelNumbers) || []).forEach((S) => {
7980
7980
  var P;
7981
- const I = C.find((F) => F.channelNumber === E.number);
7982
- I && (S[`${E.id.replace(/\W/g, "")}`] = { browserValue: ((P = I == null ? void 0 : I.variant) == null ? void 0 : P.color) || "" });
7981
+ const I = C.find((x) => x.channelNumber === S.number);
7982
+ I && (console.log(`COLOR DEBUG: selecting variant for ${S.id} and number ${S.number}`), v[`${S.id.replace(/\W/g, "")}`] = { browserValue: ((P = I == null ? void 0 : I.variant) == null ? void 0 : P.color) || "" });
7983
7983
  }), await this.changeColors(
7984
7984
  t,
7985
- u.map((E) => E.regionElement),
7985
+ u.map((S) => S.regionElement),
7986
7986
  i,
7987
7987
  () => i.getCommandContext().getAllLayouts(),
7988
- new Map(Object.entries(S))
7988
+ new Map(Object.entries(v))
7989
7989
  );
7990
7990
  }
7991
7991
  if (t.data.colorPickerEnabled) {
7992
- const S = await this.availableColors(t, i) || [], B = Object.keys(c.colors), E = S.length === 1 && B.length === 1;
7993
- if (E) {
7994
- const I = S[0], P = B[0];
7992
+ const v = await this.availableColors(t, i) || [], B = Object.keys(c.colors), S = v.length === 1 && B.length === 1;
7993
+ if (S) {
7994
+ const I = v[0], P = B[0];
7995
7995
  await this.changeColors(
7996
7996
  t,
7997
- u.map((F) => F.regionElement),
7997
+ u.map((x) => x.regionElement),
7998
7998
  i,
7999
7999
  () => i.getCommandContext().getAllLayouts(),
8000
8000
  /* @__PURE__ */ new Map([[P, I.variant.color]])
8001
8001
  );
8002
8002
  }
8003
- !E && C.length === 0 && await this.changeColors(
8003
+ !S && C.length === 0 && await this.changeColors(
8004
8004
  t,
8005
8005
  u.map((I) => I.regionElement),
8006
8006
  i,
@@ -8983,8 +8983,8 @@ class ps {
8983
8983
  g,
8984
8984
  async () => {
8985
8985
  e.updateMetadata(t.stepName, { color: f, text: p }), e.updateStorage(t.stepName, { text: p, inputText: p });
8986
- const w = o.map((S) => new Va(S.id, m)), v = new O(w);
8987
- e.getCommandDispatcher()(v);
8986
+ const w = o.map((v) => new Va(v.id, m)), E = new O(w);
8987
+ e.getCommandDispatcher()(E);
8988
8988
  }
8989
8989
  );
8990
8990
  const { command: C } = q.updateInputText(
@@ -9132,7 +9132,7 @@ class ps {
9132
9132
  colorProfileAssetKey: (g = f.colorProfile) == null ? void 0 : g.key
9133
9133
  });
9134
9134
  }
9135
- const C = await this.getDefaultColor(a), w = C || "#000000", v = {
9135
+ const C = await this.getDefaultColor(a), w = C || "#000000", E = {
9136
9136
  stepRegion: A,
9137
9137
  stepName: t,
9138
9138
  align: this.textAlign(a),
@@ -9156,34 +9156,34 @@ class ps {
9156
9156
  curved: a.curved,
9157
9157
  paths: a.paths,
9158
9158
  fillSpotColorDefinition: p
9159
- }, S = [], B = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
9160
- if (!v.fontData)
9159
+ }, v = [], B = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map();
9160
+ if (!E.fontData)
9161
9161
  throw new z("Failed to resolve font data for text.");
9162
9162
  const [I, P] = Ae(
9163
- v.fontSize,
9164
- v.fontData,
9163
+ E.fontSize,
9164
+ E.fontData,
9165
9165
  {
9166
- left: v.x,
9167
- top: v.y,
9168
- width: v.width,
9169
- height: v.height,
9170
- rotation: v.rotation,
9166
+ left: E.x,
9167
+ top: E.y,
9168
+ width: E.width,
9169
+ height: E.height,
9170
+ rotation: E.rotation,
9171
9171
  panelId: ""
9172
9172
  },
9173
9173
  [l],
9174
9174
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9175
9175
  );
9176
- B.set(v.id, I), E.set(v.id, P);
9177
- const F = a.curved || a.vertical ? l : (P || []).join(`
9176
+ B.set(E.id, I), S.set(E.id, P);
9177
+ const x = a.curved || a.vertical ? l : (P || []).join(`
9178
9178
  `);
9179
- S.push(
9180
- this.generateTextChangeCommandsForRegion(I, a, v.id, F)
9179
+ v.push(
9180
+ this.generateTextChangeCommandsForRegion(I, a, E.id, x)
9181
9181
  );
9182
- const M = new W(v, h);
9182
+ const M = new W(E, h);
9183
9183
  return {
9184
9184
  regionElement: { id: m, region: A },
9185
- commands: [M, ...S],
9186
- newElement: v,
9185
+ commands: [M, ...v],
9186
+ newElement: E,
9187
9187
  fontData: n
9188
9188
  };
9189
9189
  } catch (f) {
@@ -9218,29 +9218,29 @@ class ps {
9218
9218
  */
9219
9219
  async changeInputTextWithRegion(t, e, a, n, i, s, o, l, c, d) {
9220
9220
  const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
9221
- for (const v of h)
9222
- if (v.region) {
9223
- const [S, B] = Ae(
9221
+ for (const E of h)
9222
+ if (E.region) {
9223
+ const [v, B] = Ae(
9224
9224
  e,
9225
9225
  a,
9226
- v.region,
9226
+ E.region,
9227
9227
  [u],
9228
9228
  { size: t.data.size, minSize: t.data.minSize, maxSize: t.data.maxSize }
9229
9229
  );
9230
- m.set(v.id, S), g.set(v.id, B);
9230
+ m.set(E.id, v), g.set(E.id, B);
9231
9231
  }
9232
9232
  const p = (() => {
9233
9233
  if (t.data && t.data.maxLength && u.length > t.data.maxLength)
9234
9234
  return d && d(!0), { info: "0" };
9235
- const v = s.getProfanities(), S = Ke(u.toLowerCase());
9236
- for (const B of S)
9237
- for (const E in v) {
9238
- const I = v[E].toLowerCase().replace(/\s/g, "");
9235
+ const E = s.getProfanities(), v = Ke(u.toLowerCase());
9236
+ for (const B of v)
9237
+ for (const S in E) {
9238
+ const I = E[S].toLowerCase().replace(/\s/g, "");
9239
9239
  if (B === I)
9240
9240
  return l(!0), { error: "Blocked profanity." };
9241
9241
  }
9242
9242
  return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
9243
- `) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((E) => E) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
9243
+ `) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((S) => S) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
9244
9244
  })();
9245
9245
  if (p.error) {
9246
9246
  c(p.error);
@@ -9252,15 +9252,15 @@ class ps {
9252
9252
  text: this.injectReplaceableText(A, t.data)
9253
9253
  }), (i.defaultCleared || !t.data.deleteDefaultOnFocus) && A.trim() !== "" && s.setMandatoryFulfilled(t.stepName, !0);
9254
9254
  const C = [];
9255
- for (const v of h) {
9256
- const S = t.data.curved ? u : (g.get(v.id) || []).join(`
9255
+ for (const E of h) {
9256
+ const v = t.data.curved ? u : (g.get(E.id) || []).join(`
9257
9257
  `);
9258
9258
  C.push(
9259
9259
  this.generateTextChangeCommandsForRegion(
9260
- m.get(v.id) || 1,
9260
+ m.get(E.id) || 1,
9261
9261
  t.data,
9262
- v.id,
9263
- S
9262
+ E.id,
9263
+ v
9264
9264
  )
9265
9265
  );
9266
9266
  }
@@ -9426,14 +9426,14 @@ class Is extends Cs {
9426
9426
  const a = Li(ws), i = t !== "" ? ((w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
9427
9427
  const w = tt("g");
9428
9428
  w.classList.add("module-text-group");
9429
- const v = tt("defs");
9430
- w.appendChild(v), v.appendChild(Ss(0, 2, 2, "shadow"));
9431
- const S = tt("path");
9432
- S.setAttribute("d", d), S.setAttribute("stroke", "black"), S.setAttribute("stroke-width", "3"), v.appendChild(S);
9429
+ const E = tt("defs");
9430
+ w.appendChild(E), E.appendChild(Ss(0, 2, 2, "shadow"));
9431
+ const v = tt("path");
9432
+ v.setAttribute("d", d), v.setAttribute("stroke", "black"), v.setAttribute("stroke-width", "3"), E.appendChild(v);
9433
9433
  const B = tt("g");
9434
- B.classList.add("module-layer0"), w.appendChild(B), B.setAttribute("filter", "url(#shadow)"), B.innerHTML = S.outerHTML;
9435
- const E = tt("g");
9436
- E.classList.add("module-layer1"), w.appendChild(E), E.setAttribute("stroke-width", "3"), E.setAttribute("stroke", "rgb(45,41,38)"), E.setAttribute("fill", "rgb(45,41,38)"), E.setAttribute("transform", "translate(0.5,0)"), E.innerHTML = o;
9434
+ B.classList.add("module-layer0"), w.appendChild(B), B.setAttribute("filter", "url(#shadow)"), B.innerHTML = v.outerHTML;
9435
+ const S = tt("g");
9436
+ S.classList.add("module-layer1"), w.appendChild(S), S.setAttribute("stroke-width", "3"), S.setAttribute("stroke", "rgb(45,41,38)"), S.setAttribute("fill", "rgb(45,41,38)"), S.setAttribute("transform", "translate(0.5,0)"), S.innerHTML = o;
9437
9437
  const I = tt("g");
9438
9438
  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;
9439
9439
  const P = tt("g");
@@ -9459,7 +9459,7 @@ async function Hn(r) {
9459
9459
  return new Is();
9460
9460
  throw new z(`Failed to resolve Module, Module ${r} not found`);
9461
9461
  }
9462
- const xe = y`
9462
+ const Fe = y`
9463
9463
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9464
9464
  name
9465
9465
  value
@@ -9482,7 +9482,7 @@ const xe = y`
9482
9482
  }
9483
9483
  }
9484
9484
  `, Ds = y`
9485
- ${xe}
9485
+ ${Fe}
9486
9486
  mutation CreateGlobalPropertyState($bundleId: String!) {
9487
9487
  globalPropertyStateCreate(bundleId: $bundleId) {
9488
9488
  id
@@ -9492,7 +9492,7 @@ const xe = y`
9492
9492
  }
9493
9493
  }
9494
9494
  `, Ps = y`
9495
- ${xe}
9495
+ ${Fe}
9496
9496
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9497
9497
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
9498
9498
  id
@@ -9503,7 +9503,7 @@ const xe = y`
9503
9503
  }
9504
9504
  `;
9505
9505
  y`
9506
- ${xe}
9506
+ ${Fe}
9507
9507
  query GetGlobalPropertyState($bundleId: String!) {
9508
9508
  globalPropertyState(bundleId: $bundleId) {
9509
9509
  id
@@ -9513,7 +9513,7 @@ y`
9513
9513
  }
9514
9514
  }
9515
9515
  `;
9516
- const Fs = y`
9516
+ const xs = y`
9517
9517
  ${De}
9518
9518
  fragment ProductFields on Product {
9519
9519
  id
@@ -9559,7 +9559,7 @@ const Fs = y`
9559
9559
  }
9560
9560
  }
9561
9561
  `, Ea = y`
9562
- ${Fs}
9562
+ ${xs}
9563
9563
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9564
9564
  id
9565
9565
  productId
@@ -9626,8 +9626,8 @@ const Fs = y`
9626
9626
  }
9627
9627
  }
9628
9628
  }
9629
- `, xs = (r) => y`
9630
- ${xe}
9629
+ `, Fs = (r) => y`
9630
+ ${Fe}
9631
9631
  ${ke(r)}
9632
9632
  query GetBundle($id: String!) {
9633
9633
  globalPropertyState(bundleId: $id) {
@@ -10017,13 +10017,13 @@ class ja extends Dn {
10017
10017
  class eo {
10018
10018
  constructor(t, e, a, n, i, s, o, l, c, d, A, u, h = !1, m, g = !1, f = !1, p = !1) {
10019
10019
  this.workflowStatePromiseQueue = new Pn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10020
- var v;
10020
+ var E;
10021
10021
  if (!this.previewService)
10022
10022
  return;
10023
- const C = this.getCommandContext().getAllLayouts(), w = (v = this.getLayoutPreviewService()) == null ? void 0 : v.getAll();
10023
+ const C = this.getCommandContext().getAllLayouts(), w = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
10024
10024
  if (w)
10025
- for (const [, S] of w)
10026
- S.render(C);
10025
+ for (const [, v] of w)
10026
+ v.render(C);
10027
10027
  }, this.experience = t, this.client = e, this.updateTransaction = o, this.commandContext = s, this.reloadedState = u, this.transaction = l, this.readOnly = h, 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 = c, this.previewService = d, this.modelContainer = m, 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.currentAdjustingStepId = "", this.renderableContextService = A, this.isReloadedTransaction = g, this.workflow.steps.forEach((C) => {
10028
10028
  this.stepTags[C.stepName] = C.tags ?? [];
10029
10029
  }), p && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
@@ -10498,16 +10498,16 @@ class eo {
10498
10498
  ), this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, await this.ensureStepsAreLoaded();
10499
10499
  }
10500
10500
  async setSelectionsAndElements(t, e, a, n) {
10501
- var S;
10501
+ var v;
10502
10502
  const i = this.stepSelections;
10503
10503
  this.stepSelections = {
10504
10504
  ...this.stepSelections,
10505
10505
  [t]: { selectedVariants: e }
10506
- }, this.selectionCost = Object.values(this.stepSelections).reduce((B, E) => B + E.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, P) => I + P, 0), 0), this.workflow.steps.forEach((B) => {
10506
+ }, this.selectionCost = Object.values(this.stepSelections).reduce((B, S) => B + S.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, P) => I + P, 0), 0), this.workflow.steps.forEach((B) => {
10507
10507
  Ct(B, this.stepSelections) || (this.stepInitialised[B.stepName] = !1, delete this.stepMetadata[B.stepName], delete this.stepSelections[B.stepName], delete this.storage[B.stepName]);
10508
10508
  });
10509
10509
  const s = this.allScenes, o = It(s, i), l = It(s, this.stepSelections), c = o.map((B) => B.silentSteps).flat(), A = l.map((B) => B.silentSteps).flat().filter(
10510
- (B) => !c.some((E) => E.stepName === B.stepName)
10510
+ (B) => !c.some((S) => S.stepName === B.stepName)
10511
10511
  );
10512
10512
  c.forEach((B) => {
10513
10513
  Ct(B, this.stepSelections) || (this.stepInitialised[B.stepName] = !1);
@@ -10520,16 +10520,16 @@ class eo {
10520
10520
  }, this.removeElements(u);
10521
10521
  const g = this.workflow.steps.find((B) => B.stepName === t);
10522
10522
  if ((g == null ? void 0 : g.type) === D.Frame) {
10523
- const B = (S = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : S.frameService;
10524
- B == null || B.setTargetElements(a.map((E) => E.id));
10523
+ const B = (v = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : v.frameService;
10524
+ B == null || B.setTargetElements(a.map((S) => S.id));
10525
10525
  }
10526
10526
  const f = u.map((B) => new vt(B.id)), p = new $a(this.constructSerializableWorkflow()), C = [...m, ...f, p];
10527
10527
  C.length > 0 && this.commandContext.apply(new O(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
10528
- const w = this.getInvalidModelVariants(), v = this.modelContainer;
10529
- if (v) {
10528
+ const w = this.getInvalidModelVariants(), E = this.modelContainer;
10529
+ if (E) {
10530
10530
  const B = w.map(
10531
- (E) => v.applyModelVariant(
10532
- E,
10531
+ (S) => E.applyModelVariant(
10532
+ S,
10533
10533
  {
10534
10534
  contextService: this.getLayoutPreviewService()
10535
10535
  },
@@ -10927,7 +10927,7 @@ class ao extends rt {
10927
10927
  return ((s == null ? void 0 : s.defaultColorVariants) || []).length !== 0 ? s.channelNumbers.forEach((c) => {
10928
10928
  if (c.number.toString() === t) {
10929
10929
  const d = c.id.replace(/\W/g, "");
10930
- a ? n.set(d, { browserValue: e, pmsValue: a }) : n.set(d, e);
10930
+ a ? n.set(d, { browserValue: e, pmsValue: a }) : (n.set(d, e), console.log(`COLOR DEBUG: for item ${c.number} setting hex ${d}, value ${e}`));
10931
10931
  }
10932
10932
  }) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), de.changeColors(
10933
10933
  this.step,
@@ -11592,13 +11592,13 @@ const go = async (r) => {
11592
11592
  if (c !== void 0)
11593
11593
  return c;
11594
11594
  await r.outstandingRequestsPromise();
11595
- const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), N = await b.getShadowGraphqlClient().query({
11595
+ const x = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), N = await b.getShadowGraphqlClient().query({
11596
11596
  query: bn,
11597
11597
  variables: { ids: [n.id] },
11598
11598
  fetchPolicy: "no-cache",
11599
11599
  errorPolicy: "all",
11600
11600
  context: {
11601
- transactionOwnerId: F
11601
+ transactionOwnerId: x
11602
11602
  }
11603
11603
  }), V = (j = N.data) == null ? void 0 : j.transactions[0].workflowState;
11604
11604
  return N.errors ? (N.errors.forEach((G) => {
@@ -11606,7 +11606,7 @@ const go = async (r) => {
11606
11606
  }), null) : V ?? null;
11607
11607
  })() || (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"));
11608
11608
  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 (P) => {
11609
- const F = {};
11609
+ const x = {};
11610
11610
  let M = 0;
11611
11611
  if (Object.keys(i).length > 0)
11612
11612
  for (const N of Object.keys(i)) {
@@ -11615,11 +11615,11 @@ const go = async (r) => {
11615
11615
  const nt = V.selections[G];
11616
11616
  if (j && (!P || j.option && (j.option.variants || []).length > 1 && !j.data.hideSelectionInCart && !j.data.hideSelectionsInCart)) {
11617
11617
  const Te = j.stepTitle;
11618
- F[Te] ? F[Te].push({
11618
+ x[Te] ? x[Te].push({
11619
11619
  id: nt.id || "",
11620
11620
  name: nt.name,
11621
11621
  priceModifier: nt.priceModifier
11622
- }) : F[Te] = [
11622
+ }) : x[Te] = [
11623
11623
  {
11624
11624
  id: nt.id || "",
11625
11625
  name: nt.name,
@@ -11630,13 +11630,13 @@ const go = async (r) => {
11630
11630
  M += nt.priceModifier;
11631
11631
  }
11632
11632
  }
11633
- return [F, M];
11633
+ return [x, M];
11634
11634
  }, [C] = await p(!0), w = Object.fromEntries(
11635
- Object.keys(C).map((P) => [P, C[P].map((F) => F.id)])
11636
- ), [v] = await p(!1), S = Object.fromEntries(
11637
- Object.keys(v).map((P) => [
11635
+ Object.keys(C).map((P) => [P, C[P].map((x) => x.id)])
11636
+ ), [E] = await p(!1), v = Object.fromEntries(
11637
+ Object.keys(E).map((P) => [
11638
11638
  P,
11639
- v[P].map((F) => F.id)
11639
+ E[P].map((x) => x.id)
11640
11640
  ])
11641
11641
  );
11642
11642
  let B = await o(m, n.id);
@@ -11653,9 +11653,9 @@ const go = async (r) => {
11653
11653
  designDetails: (() => {
11654
11654
  const P = {
11655
11655
  name: s,
11656
- layouts: e.map((F) => ({
11657
- index: F.index,
11658
- panelId: F.panelId
11656
+ layouts: e.map((x) => ({
11657
+ index: x.index,
11658
+ panelId: x.panelId
11659
11659
  })),
11660
11660
  workflowId: t.id,
11661
11661
  transactionId: n.id,
@@ -11663,16 +11663,16 @@ const go = async (r) => {
11663
11663
  previewImage: B
11664
11664
  };
11665
11665
  if (f) {
11666
- const F = [];
11666
+ const x = [];
11667
11667
  for (const [M, N] of Object.entries(f))
11668
- F.push({ key: M, value: N });
11669
- P.metadata = F;
11668
+ x.push({ key: M, value: N });
11669
+ P.metadata = x;
11670
11670
  }
11671
11671
  if (w) {
11672
- const F = [];
11673
- for (const [M, N] of Object.entries(S))
11674
- F.push({ key: M, ids: N });
11675
- P.selectedVariants = F;
11672
+ const x = [];
11673
+ for (const [M, N] of Object.entries(v))
11674
+ x.push({ key: M, ids: N });
11675
+ P.selectedVariants = x;
11676
11676
  }
11677
11677
  return P;
11678
11678
  })(),
@@ -11995,9 +11995,9 @@ class bo {
11995
11995
  }
11996
11996
  let i = 2048;
11997
11997
  e && e <= 2048 && (i = e);
11998
- const s = mt(i, i), o = this.commandContext.getAllLayouts(), l = a.defaultPreviewPanelIndex || 0, c = a.panels[l], d = o.find((v) => {
11999
- var S;
12000
- return ((S = v.layoutState) == null ? void 0 : S.layout.panelId) === (c == null ? void 0 : c.name);
11998
+ const s = mt(i, i), o = this.commandContext.getAllLayouts(), l = a.defaultPreviewPanelIndex || 0, c = a.panels[l], d = o.find((E) => {
11999
+ var v;
12000
+ return ((v = E.layoutState) == null ? void 0 : v.layout.panelId) === (c == null ? void 0 : c.name);
12001
12001
  }) || o[0], A = d.layoutState.layout.previewRegion ? {
12002
12002
  x: d.layoutState.layout.previewRegion.left,
12003
12003
  y: d.layoutState.layout.previewRegion.top,
@@ -12127,7 +12127,7 @@ class bo {
12127
12127
  const p = u.getCurrentVariant();
12128
12128
  if (!p)
12129
12129
  return;
12130
- c.selectVariant(p), d.delete(JSON.stringify(m));
12130
+ console.log("COLOR DEBUG: copying starget step"), c.selectVariant(p), d.delete(JSON.stringify(m));
12131
12131
  } else if (f && (g == null ? void 0 : g.getType()) === "Text") {
12132
12132
  const p = u.getText();
12133
12133
  c.setText(p), d.delete(JSON.stringify(m));
@@ -12362,7 +12362,7 @@ const Io = [
12362
12362
  o && (t[a.stepName] = { selectedVariants: [o] });
12363
12363
  const l = async (c) => {
12364
12364
  var g;
12365
- const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Fe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12365
+ const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12366
12366
  if (!h)
12367
12367
  throw new Y(c);
12368
12368
  const m = Sa(
@@ -12413,12 +12413,12 @@ const Io = [
12413
12413
  } catch (o) {
12414
12414
  return console.error(o), [];
12415
12415
  }
12416
- }, Fo = async (r, t, e, a) => {
12417
- var S, B;
12416
+ }, xo = async (r, t, e, a) => {
12417
+ var v, B;
12418
12418
  const n = e.data, i = a.option;
12419
12419
  if (!i)
12420
12420
  return console.error(`No option for step ${a.stepName}.`), [];
12421
- const s = ((S = i.variants) == null ? void 0 : S.find((E) => E.id === n.illustrationVariantId)) || te(i);
12421
+ const s = ((v = i.variants) == null ? void 0 : v.find((S) => S.id === n.illustrationVariantId)) || te(i);
12422
12422
  if (!s)
12423
12423
  return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
12424
12424
  if (!s.asset)
@@ -12432,32 +12432,32 @@ const Io = [
12432
12432
  return console.error("Failed to read SVG."), [];
12433
12433
  ma(m);
12434
12434
  const g = {};
12435
- xt(m, (E) => {
12436
- Io.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
12437
- const I = E.attributes.getNamedItem("fill");
12435
+ Ft(m, (S) => {
12436
+ Io.includes(S.tagName) && !S.attributes.getNamedItem("fill") && S.setAttribute("fill", "#000000");
12437
+ const I = S.attributes.getNamedItem("fill");
12438
12438
  if (I && I.value !== "none") {
12439
- const F = I.value, N = `spiff-fill-${F.replace(/\W/g, "")}`;
12440
- E.classList.add(N), g[N] = { browserValue: F };
12439
+ const x = I.value, N = `spiff-fill-${x.replace(/\W/g, "")}`;
12440
+ S.classList.add(N), g[N] = { browserValue: x };
12441
12441
  }
12442
- const P = E.attributes.getNamedItem("stroke");
12442
+ const P = S.attributes.getNamedItem("stroke");
12443
12443
  if (P && P.value !== "none") {
12444
- const F = P.value, N = `spiff-stroke-${F.replace(/\W/g, "")}`;
12445
- E.classList.add(N), g[N] = { browserValue: F };
12444
+ const x = P.value, N = `spiff-stroke-${x.replace(/\W/g, "")}`;
12445
+ S.classList.add(N), g[N] = { browserValue: x };
12446
12446
  }
12447
12447
  });
12448
12448
  const p = Et().serializeToString(m), C = n.colors;
12449
12449
  if (C) {
12450
- for (const [E, I] of Object.entries(g))
12450
+ for (const [S, I] of Object.entries(g))
12451
12451
  for (const P of Object.keys(C))
12452
12452
  if (I.browserValue === P) {
12453
- g[E] = { browserValue: C[P] };
12453
+ g[S] = { browserValue: C[P] };
12454
12454
  break;
12455
12455
  }
12456
12456
  }
12457
- const w = (E) => {
12458
- const I = r.find((F) => F.panelId === E.panelId);
12457
+ const w = (S) => {
12458
+ const I = r.find((x) => x.panelId === S.panelId);
12459
12459
  if (!I)
12460
- throw new Y(E);
12460
+ throw new Y(S);
12461
12461
  const P = Q();
12462
12462
  return new W(
12463
12463
  {
@@ -12465,24 +12465,24 @@ const Io = [
12465
12465
  id: P,
12466
12466
  svg: p,
12467
12467
  type: T.Illustration,
12468
- y: E.top,
12469
- x: E.left,
12470
- rotation: E.rotation,
12471
- width: E.width,
12472
- height: E.height,
12473
- layer: E.layer,
12474
- layerIndex: E.layerIndex,
12475
- immutable: E.immutable
12468
+ y: S.top,
12469
+ x: S.left,
12470
+ rotation: S.rotation,
12471
+ width: S.width,
12472
+ height: S.height,
12473
+ layer: S.layer,
12474
+ layerIndex: S.layerIndex,
12475
+ immutable: S.immutable
12476
12476
  },
12477
12477
  I
12478
12478
  );
12479
- }, v = a.data.regions;
12479
+ }, E = a.data.regions;
12480
12480
  try {
12481
- return v.map(w);
12482
- } catch (E) {
12483
- return console.error(E), [];
12481
+ return E.map(w);
12482
+ } catch (S) {
12483
+ return console.error(S), [];
12484
12484
  }
12485
- }, xo = async (r, t, e) => {
12485
+ }, Fo = async (r, t, e) => {
12486
12486
  const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
12487
12487
  const c = r.find((A) => A.panelId === l.panelId);
12488
12488
  if (!c)
@@ -12684,7 +12684,7 @@ const Io = [
12684
12684
  const f = a.option;
12685
12685
  if (!f)
12686
12686
  return;
12687
- const p = ((w = f.variants) == null ? void 0 : w.find((v) => v.id === i.fontVariantId)) || te(f);
12687
+ const p = ((w = f.variants) == null ? void 0 : w.find((E) => E.id === i.fontVariantId)) || te(f);
12688
12688
  if (!p || !p.asset)
12689
12689
  return;
12690
12690
  t[a.stepName] = { selectedVariants: [p] };
@@ -12736,7 +12736,7 @@ const Io = [
12736
12736
  y: f.top
12737
12737
  };
12738
12738
  if (d) {
12739
- const [w, v] = Ae(
12739
+ const [w, E] = Ae(
12740
12740
  a.data.size || s,
12741
12741
  d,
12742
12742
  f,
@@ -12757,7 +12757,7 @@ const Io = [
12757
12757
  {
12758
12758
  ...C,
12759
12759
  fontSize: w,
12760
- text: C.curved ? C.text : (v || []).join(`
12760
+ text: C.curved ? C.text : (E || []).join(`
12761
12761
  `)
12762
12762
  },
12763
12763
  p
@@ -12795,7 +12795,7 @@ const Io = [
12795
12795
  break;
12796
12796
  case D.Illustration:
12797
12797
  n.push(
12798
- ...await Fo(
12798
+ ...await xo(
12799
12799
  e,
12800
12800
  i,
12801
12801
  s,
@@ -12804,7 +12804,7 @@ const Io = [
12804
12804
  );
12805
12805
  break;
12806
12806
  case D.Module:
12807
- n.push(...await xo(e, s, o));
12807
+ n.push(...await Fo(e, s, o));
12808
12808
  break;
12809
12809
  case D.Picture:
12810
12810
  n.push(
@@ -13417,7 +13417,7 @@ class _n extends Ba {
13417
13417
  return n.id === ((s = (i = this.optionResource) == null ? void 0 : i.defaultVariant) == null ? void 0 : s.id);
13418
13418
  }
13419
13419
  );
13420
- t && await this.selectVariant(new it(t));
13420
+ t && (console.log(`COLOR DEBUG: initing global default for ${JSON.stringify(t, null, 2)}`), await this.selectVariant(new it(t)));
13421
13421
  }
13422
13422
  /**
13423
13423
  * Gets the currently selected variant, or undefined if no variant is selected.
@@ -13473,7 +13473,7 @@ class _n extends Ba {
13473
13473
  return a ? (console.log(`Applying global state using variant ${a.id} for aspect ${e}`), this.applyVariantSelection(new it(a), t)) : Promise.resolve();
13474
13474
  }
13475
13475
  async applyVariantSelection(t, e) {
13476
- const n = this.getSharedSteps(e).map((i) => i.selectVariant(t));
13476
+ const n = this.getSharedSteps(e).map((i) => (console.log("COLOR DEBUG: applying variant selection"), i.selectVariant(t)));
13477
13477
  await Promise.all(n);
13478
13478
  }
13479
13479
  }
@@ -13509,7 +13509,7 @@ class Ha extends _n {
13509
13509
  const i = this.getSharedSteps(e).map((s) => {
13510
13510
  switch (s.getType()) {
13511
13511
  case D.Shape:
13512
- return s.selectVariant(t);
13512
+ return console.log("COLOR DEBUG: shape?"), s.selectVariant(t);
13513
13513
  case D.Text:
13514
13514
  return s.setFillColor({
13515
13515
  fill: t.getColor(),
@@ -13592,13 +13592,13 @@ class jo {
13592
13592
  if (n) {
13593
13593
  const l = o.find((c) => c.channel === n);
13594
13594
  if (l)
13595
- l.value = e, l.type = i.type, l.channel = n, a !== void 0 && (l.storage = a !== null ? a : void 0);
13595
+ l.value = e, l.type = i.type, l.channel = n, console.log(`COLOR DEBUG: setting value ${e} to channel ${n}, name ${t}`), a !== void 0 && (l.storage = a !== null ? a : void 0);
13596
13596
  else {
13597
13597
  if (n === 1) {
13598
13598
  const c = o.findIndex((d) => !d.channel);
13599
13599
  this.globalPropertyState.aspects.splice(c, 1);
13600
13600
  }
13601
- this.globalPropertyState.aspects.push({
13601
+ console.log(`COLOR DEBUG: adding value ${e} to channel ${n}, name ${t}`), this.globalPropertyState.aspects.push({
13602
13602
  name: t,
13603
13603
  value: e,
13604
13604
  type: i.type,
@@ -13611,7 +13611,7 @@ class jo {
13611
13611
  l.value = e, l.type = i.type, a !== void 0 && (l.storage = a !== null ? a : void 0);
13612
13612
  }
13613
13613
  else
13614
- this.globalPropertyState.aspects.push({
13614
+ console.log(`COLOR DEBUG: only value ${e} to channel ${n}, name ${t}`), this.globalPropertyState.aspects.push({
13615
13615
  name: t,
13616
13616
  value: e,
13617
13617
  type: i.type,
@@ -14143,14 +14143,8 @@ const Ko = y`
14143
14143
  }
14144
14144
  }
14145
14145
  `, _o = y`
14146
- mutation AddOrganizationToBundle(
14147
- $bundleId: String!
14148
- $organizationName: String!
14149
- ) {
14150
- organizationAttachToBundle(
14151
- bundleId: $bundleId
14152
- organizationName: $organizationName
14153
- ) {
14146
+ mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14147
+ organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14154
14148
  id
14155
14149
  }
14156
14150
  }
@@ -14820,6 +14814,13 @@ class He {
14820
14814
  }
14821
14815
  });
14822
14816
  }
14817
+ getQuoteCompleteMessage() {
14818
+ return {
14819
+ bundleId: this.id,
14820
+ bundleOwnerId: this.ownerId,
14821
+ quoteId: this.quoteId || ""
14822
+ };
14823
+ }
14823
14824
  }
14824
14825
  const el = y`
14825
14826
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
@@ -14996,7 +14997,7 @@ class Xn extends ba {
14996
14997
  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);
14997
14998
  }
14998
14999
  }
14999
- class Fc extends ba {
15000
+ class xc extends ba {
15000
15001
  constructor(t) {
15001
15002
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15002
15003
  }
@@ -15184,7 +15185,7 @@ const Ya = y`
15184
15185
  (o) => Ht.set({ id: o, options: t }, Al(o, n))
15185
15186
  ), s = e.filter((o) => o !== void 0);
15186
15187
  return await Promise.all(s.concat(i));
15187
- }, xc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15188
+ }, Fc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15188
15189
  id: Q(),
15189
15190
  panelId: t.name,
15190
15191
  name: t.name,
@@ -15212,7 +15213,7 @@ class kc {
15212
15213
  } catch (a) {
15213
15214
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15214
15215
  }
15215
- }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.20.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15216
+ }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.21.0-beta.6f310999-fed0-54d6-8925-d68e8de36a86"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15216
15217
  }
15217
15218
  configure(t) {
15218
15219
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15230,7 +15231,7 @@ class kc {
15230
15231
  return this.currencyCode;
15231
15232
  }
15232
15233
  getFlowService() {
15233
- if (!xr())
15234
+ if (!Fr())
15234
15235
  throw new Error("Application key required to use Flow Service.");
15235
15236
  return new al();
15236
15237
  }
@@ -15315,13 +15316,13 @@ class kc {
15315
15316
  if (f && await this.authenticateCustomerId(f)) {
15316
15317
  const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
15317
15318
  (w) => {
15318
- var v, S;
15319
- return (S = (v = w.bundle) == null ? void 0 : v.transactions) == null ? void 0 : S.some((B) => B.id === t);
15319
+ var E, v;
15320
+ return (v = (E = w.bundle) == null ? void 0 : E.transactions) == null ? void 0 : v.some((B) => B.id === t);
15320
15321
  }
15321
15322
  )) || ((g = (m = this.customer) == null ? void 0 : m.stakeholders) == null ? void 0 : g.find(
15322
15323
  (w) => {
15323
- var v;
15324
- return ((v = w.transaction) == null ? void 0 : v.id) === t;
15324
+ var E;
15325
+ return ((E = w.transaction) == null ? void 0 : E.id) === t;
15325
15326
  }
15326
15327
  ));
15327
15328
  if (C)
@@ -15519,7 +15520,7 @@ class kc {
15519
15520
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15520
15521
  */
15521
15522
  async getExistingBundle(t, e, a, n) {
15522
- var f, p, C, w, v, S, B, E, I, P, F;
15523
+ var f, p, C, w, E, v, B, S, I, P, x;
15523
15524
  const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M, N]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
15524
15525
  c && !ve(c) && (d.Authorization = `Bearer ${c}`);
15525
15526
  const A = {
@@ -15527,7 +15528,7 @@ class kc {
15527
15528
  ...d,
15528
15529
  ...(p = n == null ? void 0 : n.graphql) == null ? void 0 : p.additionalHeaders
15529
15530
  }, u = await b.getShadowGraphqlClient().query({
15530
- query: xs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15531
+ query: Fs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15531
15532
  variables: {
15532
15533
  id: t
15533
15534
  },
@@ -15536,13 +15537,13 @@ class kc {
15536
15537
  headers: A
15537
15538
  }
15538
15539
  });
15539
- if (!((v = u.data) != null && v.bundles) || ((S = u.data) == null ? void 0 : S.bundles.length) === 0 || !((B = u.data) != null && B.bundles[0]))
15540
+ if (!((E = u.data) != null && E.bundles) || ((v = u.data) == null ? void 0 : v.bundles.length) === 0 || !((B = u.data) != null && B.bundles[0]))
15540
15541
  throw new Error(`Unable to find bundle: ${t}`);
15541
- const h = (E = u.data) == null ? void 0 : E.bundles[0], m = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
15542
+ const h = (S = u.data) == null ? void 0 : S.bundles[0], m = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
15542
15543
  m.set(h.id, h.partner.id), k.setMap("bundlePartnerIds", m);
15543
15544
  const g = new He(this, h, e, a, s, {
15544
15545
  additionalHeaders: (I = n == null ? void 0 : n.graphql) == null ? void 0 : I.additionalHeaders,
15545
- eagerFetchProducts: (F = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : F.eagerFetchProducts,
15546
+ eagerFetchProducts: (x = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : x.eagerFetchProducts,
15546
15547
  existingGlobalPropertyState: u.data.globalPropertyState,
15547
15548
  readonly: n == null ? void 0 : n.readonly
15548
15549
  });
@@ -15555,15 +15556,15 @@ class kc {
15555
15556
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15556
15557
  */
15557
15558
  async duplicateBundle(t, e, a, n) {
15558
- var f, p, C, w, v, S, B, E;
15559
+ var f, p, C, w, E, v, B, S;
15559
15560
  const i = (f = k.getMap("bundleOwnerIds")) == null ? void 0 : f.get(t), o = ((p = Object.entries(localStorage).find(([I, P]) => I.startsWith("CognitoIdentityServiceProvider") && I.endsWith("idToken"))) == null ? void 0 : p[0]) || "", l = localStorage.getItem(o), c = {};
15560
15561
  l && !ve(l) && (c.Authorization = `Bearer ${l}`);
15561
15562
  const d = {
15562
15563
  bundleOwnerId: i,
15563
15564
  ...c,
15564
15565
  ...(C = n == null ? void 0 : n.graphql) == null ? void 0 : C.additionalHeaders
15565
- }, u = (S = (await b.getShadowGraphqlClient().mutate({
15566
- mutation: Rs(((v = (w = n == null ? void 0 : n.graphql) == null ? void 0 : w.productCollection) == null ? void 0 : v.eagerFetchProducts) || !1),
15566
+ }, u = (v = (await b.getShadowGraphqlClient().mutate({
15567
+ mutation: Rs(((E = (w = n == null ? void 0 : n.graphql) == null ? void 0 : w.productCollection) == null ? void 0 : E.eagerFetchProducts) || !1),
15567
15568
  variables: {
15568
15569
  id: t,
15569
15570
  template: e,
@@ -15575,7 +15576,7 @@ class kc {
15575
15576
  headers: d
15576
15577
  },
15577
15578
  fetchPolicy: "no-cache"
15578
- })).data) == null ? void 0 : S.bundleDuplicate;
15579
+ })).data) == null ? void 0 : v.bundleDuplicate;
15579
15580
  if (!(u != null && u.id))
15580
15581
  throw new Error("Unable to duplicate bundle");
15581
15582
  const h = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
@@ -15583,7 +15584,7 @@ class kc {
15583
15584
  const m = k.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
15584
15585
  m.set(u.id, u.bundleOwnerId), k.setMap("bundleOwnerIds", m);
15585
15586
  const g = new He(this, u, void 0, void 0, u.bundleOwnerId, {
15586
- eagerFetchProducts: (E = (B = n == null ? void 0 : n.graphql) == null ? void 0 : B.productCollection) == null ? void 0 : E.eagerFetchProducts
15587
+ eagerFetchProducts: (S = (B = n == null ? void 0 : n.graphql) == null ? void 0 : B.productCollection) == null ? void 0 : S.eagerFetchProducts
15587
15588
  });
15588
15589
  return await g.getInitializationPromise(), g;
15589
15590
  }
@@ -15655,20 +15656,20 @@ class kc {
15655
15656
  async getWorkflowExperiences(t, e) {
15656
15657
  if (t.length === 0)
15657
15658
  throw new ut("No options provided!");
15658
- const a = b.getShadowGraphqlClient(), n = async (S) => {
15659
- var P, F, M;
15660
- if (S.length === 0)
15659
+ const a = b.getShadowGraphqlClient(), n = async (v) => {
15660
+ var P, x, M;
15661
+ if (v.length === 0)
15661
15662
  return [];
15662
- const B = S.map((N) => N.option.transactionId), E = await a.query({
15663
+ const B = v.map((N) => N.option.transactionId), S = await a.query({
15663
15664
  query: di,
15664
15665
  variables: {
15665
15666
  ids: B
15666
15667
  },
15667
15668
  errorPolicy: "all",
15668
15669
  fetchPolicy: "no-cache"
15669
- }), I = E.data.transactions;
15670
- if (I.length !== S.length) {
15671
- const N = ((F = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15670
+ }), I = S.data.transactions;
15671
+ if (I.length !== v.length) {
15672
+ const N = ((x = (P = S.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15672
15673
  throw new ut(`Not all transactions were found: ${N}`);
15673
15674
  }
15674
15675
  return !this.activeIntegration && ((M = I[0].integrationProduct) != null && M.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((N, V) => {
@@ -15676,18 +15677,18 @@ class kc {
15676
15677
  return {
15677
15678
  transaction: N,
15678
15679
  workflowId: N.workflowId,
15679
- readOnly: ((j = S.find((G) => G.option.transactionId === N.id)) == null ? void 0 : j.option.readOnly) ?? !1,
15680
- index: S[V].index
15680
+ readOnly: ((j = v.find((G) => G.option.transactionId === N.id)) == null ? void 0 : j.option.readOnly) ?? !1,
15681
+ index: v[V].index
15681
15682
  };
15682
15683
  });
15683
- }, i = async (S) => {
15684
- var I, P, F;
15685
- if (S.length === 0)
15684
+ }, i = async (v) => {
15685
+ var I, P, x;
15686
+ if (v.length === 0)
15686
15687
  return [];
15687
15688
  const B = await a.mutate({
15688
15689
  mutation: ci,
15689
15690
  variables: {
15690
- inputs: S.map((M) => ({
15691
+ inputs: v.map((M) => ({
15691
15692
  integrationProductId: M.option.type === "integration" ? M.option.integrationProductId : void 0,
15692
15693
  externalIntegrationId: M.option.type === "external" ? M.option.externalIntegrationId : void 0,
15693
15694
  externalProductId: M.option.type === "external" ? M.option.externalProductId : void 0,
@@ -15700,25 +15701,25 @@ class kc {
15700
15701
  },
15701
15702
  errorPolicy: "all",
15702
15703
  fetchPolicy: "no-cache"
15703
- }), E = (I = B.data) == null ? void 0 : I.transactionCreateMany;
15704
- if (!E || E.length === 0) {
15705
- const M = ((F = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15704
+ }), S = (I = B.data) == null ? void 0 : I.transactionCreateMany;
15705
+ if (!S || S.length === 0) {
15706
+ const M = ((x = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15706
15707
  throw new ut(`Failed to create transactions: ${M}`);
15707
15708
  }
15708
- return E.map((M, N) => ({
15709
+ return S.map((M, N) => ({
15709
15710
  transaction: M,
15710
15711
  workflowId: M.workflowId,
15711
15712
  readOnly: !1,
15712
- index: S[N].index
15713
+ index: v[N].index
15713
15714
  }));
15714
- }, s = t.map((S, B) => ({ option: S, index: B })), o = s.filter((S) => S.option.type === "transaction"), l = s.filter(
15715
- (S) => S.option.type === "integration" || S.option.type === "external"
15715
+ }, s = t.map((v, B) => ({ option: v, index: B })), o = s.filter((v) => v.option.type === "transaction"), l = s.filter(
15716
+ (v) => v.option.type === "integration" || v.option.type === "external"
15716
15717
  ), c = Da(o, 10), d = Da(l, 10), A = (await Promise.all([
15717
15718
  ...c.map(n),
15718
15719
  ...d.map(i)
15719
- ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await Zn(u, e), m = new Map(h.map((S) => [S.id, S])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
15720
+ ])).flat(), u = [...new Set(A.map((v) => v.workflowId))], h = await Zn(u, e), m = new Map(h.map((v) => [v.id, v])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (v) => {
15720
15721
  var j;
15721
- const { transaction: B, workflowId: E, readOnly: I, index: P } = S, F = m.get(E), M = t[P];
15722
+ const { transaction: B, workflowId: S, readOnly: I, index: P } = v, x = m.get(S), M = t[P];
15722
15723
  !g.get(B.id) && B.transactionOwnerId && g.set(B.id, B.transactionOwnerId);
15723
15724
  const N = g.get(B.id) || void 0, V = {
15724
15725
  product: B.product,
@@ -15732,7 +15733,7 @@ class kc {
15732
15733
  context: { transactionOwnerId: N, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
15733
15734
  }),
15734
15735
  readOnly: I,
15735
- workflow: F,
15736
+ workflow: x,
15736
15737
  isReloadedTransaction: M.type === "transaction"
15737
15738
  };
15738
15739
  if (M.type === "transaction" && B.workflowState) {
@@ -15751,11 +15752,11 @@ class kc {
15751
15752
  ), V.delayWorkflowStateSync = !0, { experienceOptions: V, index: P, options: M };
15752
15753
  }), p = await Promise.all(f);
15753
15754
  k.setMap("transactionOwnerIds", g);
15754
- const w = p.sort((S, B) => S.index - B.index).map(async (S) => {
15755
- const { experienceOptions: B, options: E } = S, I = new bo(this, B);
15756
- return await I.getWorkflowManager().getInitializationPromise(), E.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
15757
- }), v = await Promise.all(w);
15758
- return v.forEach((S) => S.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), v;
15755
+ const w = p.sort((v, B) => v.index - B.index).map(async (v) => {
15756
+ const { experienceOptions: B, options: S } = v, I = new bo(this, B);
15757
+ return await I.getWorkflowManager().getInitializationPromise(), S.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
15758
+ }), E = await Promise.all(w);
15759
+ return E.forEach((v) => v.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), E;
15759
15760
  }
15760
15761
  storeCustomer(t) {
15761
15762
  const e = k.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map();
@@ -15811,7 +15812,7 @@ class kc {
15811
15812
  }
15812
15813
  async placeOrder(t) {
15813
15814
  const e = await b.getShadowGraphqlClient().mutate({
15814
- mutation: xi,
15815
+ mutation: Fi,
15815
15816
  variables: {
15816
15817
  orderItems: t
15817
15818
  }
@@ -15862,7 +15863,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15862
15863
  }, Qc = async (r) => {
15863
15864
  var e, a, n;
15864
15865
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
15865
- query: Fi,
15866
+ query: xi,
15866
15867
  errorPolicy: "all",
15867
15868
  variables: {
15868
15869
  id: r
@@ -15914,7 +15915,7 @@ class fl {
15914
15915
  if (n.currentFrameSources) {
15915
15916
  let i = !1;
15916
15917
  for (let s = 0; s < n.currentFrameSources.length; s++) {
15917
- const o = n.currentFrameSources[s], l = await Fe(o), c = this.frameData ? this.frameData[s] : void 0;
15918
+ const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
15918
15919
  rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15919
15920
  }
15920
15921
  i && (this.onFrameDataChangeListeners.forEach(
@@ -16722,7 +16723,7 @@ K = { __e: function(r, t, e, a) {
16722
16723
  throw r;
16723
16724
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
16724
16725
  var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16725
- function Fl() {
16726
+ function xl() {
16726
16727
  for (var r; r = tr.shift(); )
16727
16728
  if (r.__P && r.__H)
16728
16729
  try {
@@ -16742,7 +16743,7 @@ K.__b = function(r) {
16742
16743
  }, K.diffed = function(r) {
16743
16744
  Xa && Xa(r);
16744
16745
  var t = r.__c;
16745
- t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || xl)(Fl)), t.__H.__.forEach(function(e) {
16746
+ t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Fl)(xl)), t.__H.__.forEach(function(e) {
16746
16747
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
16747
16748
  })), qe = st = null;
16748
16749
  }, K.__c = function(r, t) {
@@ -16769,7 +16770,7 @@ K.__b = function(r) {
16769
16770
  }), e.__H = void 0, t && K.__e(t, e.__v));
16770
16771
  };
16771
16772
  var en = typeof requestAnimationFrame == "function";
16772
- function xl(r) {
16773
+ function Fl(r) {
16773
16774
  var t, e = function() {
16774
16775
  clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
16775
16776
  }, a = setTimeout(e, 100);
@@ -16785,7 +16786,7 @@ function la(r) {
16785
16786
  }
16786
16787
  export {
16787
16788
  da as AddonHandle,
16788
- Fc as ArrayInput,
16789
+ xc as ArrayInput,
16789
16790
  et as AspectType,
16790
16791
  yt as AssetNotFoundError,
16791
16792
  he as AssetType,
@@ -16898,7 +16899,7 @@ export {
16898
16899
  Vc as getCustomer,
16899
16900
  zc as getCustomerBundles,
16900
16901
  hc as getElementVertices,
16901
- Fe as getFrameData,
16902
+ xe as getFrameData,
16902
16903
  ml as getIntegration,
16903
16904
  dc as getNEPoint,
16904
16905
  cc as getNWPoint,
@@ -16914,7 +16915,7 @@ export {
16914
16915
  Gc as getTransactionsForBundle,
16915
16916
  oc as getTrueCoordinates,
16916
16917
  Wc as getUnorderedTransactions,
16917
- xc as getWorkflow,
16918
+ Fc as getWorkflow,
16918
16919
  Zn as getWorkflows,
16919
16920
  b as graphQlManager,
16920
16921
  de as illustrationStepService,