@spiffcommerce/core 26.20.0 → 26.21.0-beta.2845f526-56bf-53da-9e5b-d9e5b67c001a

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;
@@ -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,9 +5267,9 @@ 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((E, I) => (
5271
5271
  /* @ts-ignore */
5272
- /* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
5272
+ /* @__PURE__ */ F("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
5273
5273
  )), v = n.map((E) => ({
5274
5274
  ...E,
5275
5275
  _renderingConfiguration: a,
@@ -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,7 +5306,7 @@ 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",
@@ -5314,7 +5314,7 @@ const Q = () => {
5314
5314
  children: S.map((E) => Qn(E)).filter((E) => !!E)
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,
@@ -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;
5519
+ var w, v, S, B, E, I, P, x, M, N;
5520
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 ? {
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,
@@ -5687,8 +5687,8 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5687
5687
  parseInt(u.getAttribute("font-size") ?? "72")
5688
5688
  );
5689
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);
5690
+ const I = E.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,7 +7669,7 @@ 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,
@@ -7978,7 +7978,7 @@ class os {
7978
7978
  const S = {};
7979
7979
  (((v = o.assetConfiguration) == null ? void 0 : v.channelNumbers) || []).forEach((E) => {
7980
7980
  var P;
7981
- const I = C.find((F) => F.channelNumber === E.number);
7981
+ const I = C.find((x) => x.channelNumber === E.number);
7982
7982
  I && (S[`${E.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,
@@ -7994,7 +7994,7 @@ class os {
7994
7994
  const I = S[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]])
@@ -9174,10 +9174,10 @@ class ps {
9174
9174
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9175
9175
  );
9176
9176
  B.set(v.id, I), E.set(v.id, P);
9177
- const F = a.curved || a.vertical ? l : (P || []).join(`
9177
+ const x = a.curved || a.vertical ? l : (P || []).join(`
9178
9178
  `);
9179
9179
  S.push(
9180
- this.generateTextChangeCommandsForRegion(I, a, v.id, F)
9180
+ this.generateTextChangeCommandsForRegion(I, a, v.id, x)
9181
9181
  );
9182
9182
  const M = new W(v, h);
9183
9183
  return {
@@ -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) {
@@ -9984,12 +9984,12 @@ const Fs = y`
9984
9984
  bundleFinalizeUpdate(bundleId: $bundleId)
9985
9985
  }
9986
9986
  `, Ks = y`
9987
- mutation ApproveBundle($id: String!, $note: String) {
9988
- bundleApprove(id: $id, note: $note)
9987
+ mutation ApproveBundle($id: String!, $note: String, $stakeholderId: String) {
9988
+ bundleApprove(id: $id, note: $note, stakeholderId: $stakeholderId)
9989
9989
  }
9990
9990
  `, _s = y`
9991
- mutation RejectBundle($id: String!, $note: String) {
9992
- bundleReject(id: $id, note: $note)
9991
+ mutation RejectBundle($id: String!, $note: String, $stakeholderId: String) {
9992
+ bundleReject(id: $id, note: $note, stakeholderId: $stakeholderId)
9993
9993
  }
9994
9994
  `, Xs = y`
9995
9995
  mutation ApproveTransaction($id: String!, $note: String) {
@@ -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)])
11635
+ Object.keys(C).map((P) => [P, C[P].map((x) => x.id)])
11636
11636
  ), [v] = await p(!1), S = Object.fromEntries(
11637
11637
  Object.keys(v).map((P) => [
11638
11638
  P,
11639
- v[P].map((F) => F.id)
11639
+ v[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 = [];
11672
+ const x = [];
11673
11673
  for (const [M, N] of Object.entries(S))
11674
- F.push({ key: M, ids: N });
11675
- P.selectedVariants = F;
11674
+ x.push({ key: M, ids: N });
11675
+ P.selectedVariants = x;
11676
11676
  }
11677
11677
  return P;
11678
11678
  })(),
@@ -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,7 +12413,7 @@ const Io = [
12413
12413
  } catch (o) {
12414
12414
  return console.error(o), [];
12415
12415
  }
12416
- }, Fo = async (r, t, e, a) => {
12416
+ }, xo = async (r, t, e, a) => {
12417
12417
  var S, B;
12418
12418
  const n = e.data, i = a.option;
12419
12419
  if (!i)
@@ -12432,17 +12432,17 @@ const Io = [
12432
12432
  return console.error("Failed to read SVG."), [];
12433
12433
  ma(m);
12434
12434
  const g = {};
12435
- xt(m, (E) => {
12435
+ Ft(m, (E) => {
12436
12436
  Io.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
12437
12437
  const I = E.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
+ E.classList.add(N), g[N] = { browserValue: x };
12441
12441
  }
12442
12442
  const P = E.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
+ E.classList.add(N), g[N] = { browserValue: x };
12446
12446
  }
12447
12447
  });
12448
12448
  const p = Et().serializeToString(m), C = n.colors;
@@ -12455,7 +12455,7 @@ const Io = [
12455
12455
  }
12456
12456
  }
12457
12457
  const w = (E) => {
12458
- const I = r.find((F) => F.panelId === E.panelId);
12458
+ const I = r.find((x) => x.panelId === E.panelId);
12459
12459
  if (!I)
12460
12460
  throw new Y(E);
12461
12461
  const P = Q();
@@ -12482,7 +12482,7 @@ const Io = [
12482
12482
  } catch (E) {
12483
12483
  return console.error(E), [];
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)
@@ -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(
@@ -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
  }
@@ -14798,28 +14792,37 @@ class He {
14798
14792
  getWorkflowViewerAmendLink() {
14799
14793
  return this.workflowViewerAmendLink;
14800
14794
  }
14801
- async approve(t) {
14795
+ async approve(t, e) {
14802
14796
  await b.getShadowGraphqlClient().mutate({
14803
14797
  mutation: Ks,
14804
14798
  errorPolicy: "all",
14805
14799
  fetchPolicy: "no-cache",
14806
14800
  variables: {
14807
14801
  id: this.id,
14808
- note: t
14802
+ note: t,
14803
+ stakeholderId: e
14809
14804
  }
14810
14805
  });
14811
14806
  }
14812
- async reject(t) {
14807
+ async reject(t, e) {
14813
14808
  await b.getShadowGraphqlClient().mutate({
14814
14809
  mutation: _s,
14815
14810
  errorPolicy: "all",
14816
14811
  fetchPolicy: "no-cache",
14817
14812
  variables: {
14818
14813
  id: this.id,
14819
- note: t
14814
+ note: t,
14815
+ stakeholderId: e
14820
14816
  }
14821
14817
  });
14822
14818
  }
14819
+ getQuoteCompleteMessage() {
14820
+ return {
14821
+ bundleId: this.id,
14822
+ bundleOwnerId: this.ownerId,
14823
+ quoteId: this.quoteId || ""
14824
+ };
14825
+ }
14823
14826
  }
14824
14827
  const el = y`
14825
14828
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
@@ -14996,7 +14999,7 @@ class Xn extends ba {
14996
14999
  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
15000
  }
14998
15001
  }
14999
- class Fc extends ba {
15002
+ class xc extends ba {
15000
15003
  constructor(t) {
15001
15004
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15002
15005
  }
@@ -15184,7 +15187,7 @@ const Ya = y`
15184
15187
  (o) => Ht.set({ id: o, options: t }, Al(o, n))
15185
15188
  ), s = e.filter((o) => o !== void 0);
15186
15189
  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) => ({
15190
+ }, Fc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15188
15191
  id: Q(),
15189
15192
  panelId: t.name,
15190
15193
  name: t.name,
@@ -15212,7 +15215,7 @@ class kc {
15212
15215
  } catch (a) {
15213
15216
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15214
15217
  }
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("------------------------");
15218
+ }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.21.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15216
15219
  }
15217
15220
  configure(t) {
15218
15221
  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 +15233,7 @@ class kc {
15230
15233
  return this.currencyCode;
15231
15234
  }
15232
15235
  getFlowService() {
15233
- if (!xr())
15236
+ if (!Fr())
15234
15237
  throw new Error("Application key required to use Flow Service.");
15235
15238
  return new al();
15236
15239
  }
@@ -15519,7 +15522,7 @@ class kc {
15519
15522
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
15520
15523
  */
15521
15524
  async getExistingBundle(t, e, a, n) {
15522
- var f, p, C, w, v, S, B, E, I, P, F;
15525
+ var f, p, C, w, v, S, B, E, I, P, x;
15523
15526
  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
15527
  c && !ve(c) && (d.Authorization = `Bearer ${c}`);
15525
15528
  const A = {
@@ -15527,7 +15530,7 @@ class kc {
15527
15530
  ...d,
15528
15531
  ...(p = n == null ? void 0 : n.graphql) == null ? void 0 : p.additionalHeaders
15529
15532
  }, 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),
15533
+ query: Fs(((w = (C = n == null ? void 0 : n.graphql) == null ? void 0 : C.productCollection) == null ? void 0 : w.eagerFetchProducts) || !1),
15531
15534
  variables: {
15532
15535
  id: t
15533
15536
  },
@@ -15542,7 +15545,7 @@ class kc {
15542
15545
  m.set(h.id, h.partner.id), k.setMap("bundlePartnerIds", m);
15543
15546
  const g = new He(this, h, e, a, s, {
15544
15547
  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,
15548
+ eagerFetchProducts: (x = (P = n == null ? void 0 : n.graphql) == null ? void 0 : P.productCollection) == null ? void 0 : x.eagerFetchProducts,
15546
15549
  existingGlobalPropertyState: u.data.globalPropertyState,
15547
15550
  readonly: n == null ? void 0 : n.readonly
15548
15551
  });
@@ -15656,7 +15659,7 @@ class kc {
15656
15659
  if (t.length === 0)
15657
15660
  throw new ut("No options provided!");
15658
15661
  const a = b.getShadowGraphqlClient(), n = async (S) => {
15659
- var P, F, M;
15662
+ var P, x, M;
15660
15663
  if (S.length === 0)
15661
15664
  return [];
15662
15665
  const B = S.map((N) => N.option.transactionId), E = await a.query({
@@ -15668,7 +15671,7 @@ class kc {
15668
15671
  fetchPolicy: "no-cache"
15669
15672
  }), I = E.data.transactions;
15670
15673
  if (I.length !== S.length) {
15671
- const N = ((F = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15674
+ const N = ((x = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15672
15675
  throw new ut(`Not all transactions were found: ${N}`);
15673
15676
  }
15674
15677
  return !this.activeIntegration && ((M = I[0].integrationProduct) != null && M.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((N, V) => {
@@ -15681,7 +15684,7 @@ class kc {
15681
15684
  };
15682
15685
  });
15683
15686
  }, i = async (S) => {
15684
- var I, P, F;
15687
+ var I, P, x;
15685
15688
  if (S.length === 0)
15686
15689
  return [];
15687
15690
  const B = await a.mutate({
@@ -15702,7 +15705,7 @@ class kc {
15702
15705
  fetchPolicy: "no-cache"
15703
15706
  }), E = (I = B.data) == null ? void 0 : I.transactionCreateMany;
15704
15707
  if (!E || E.length === 0) {
15705
- const M = ((F = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
15708
+ const M = ((x = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : x.message) || "Unknown error";
15706
15709
  throw new ut(`Failed to create transactions: ${M}`);
15707
15710
  }
15708
15711
  return E.map((M, N) => ({
@@ -15718,7 +15721,7 @@ class kc {
15718
15721
  ...d.map(i)
15719
15722
  ])).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
15723
  var j;
15721
- const { transaction: B, workflowId: E, readOnly: I, index: P } = S, F = m.get(E), M = t[P];
15724
+ const { transaction: B, workflowId: E, readOnly: I, index: P } = S, x = m.get(E), M = t[P];
15722
15725
  !g.get(B.id) && B.transactionOwnerId && g.set(B.id, B.transactionOwnerId);
15723
15726
  const N = g.get(B.id) || void 0, V = {
15724
15727
  product: B.product,
@@ -15732,7 +15735,7 @@ class kc {
15732
15735
  context: { transactionOwnerId: N, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
15733
15736
  }),
15734
15737
  readOnly: I,
15735
- workflow: F,
15738
+ workflow: x,
15736
15739
  isReloadedTransaction: M.type === "transaction"
15737
15740
  };
15738
15741
  if (M.type === "transaction" && B.workflowState) {
@@ -15811,7 +15814,7 @@ class kc {
15811
15814
  }
15812
15815
  async placeOrder(t) {
15813
15816
  const e = await b.getShadowGraphqlClient().mutate({
15814
- mutation: xi,
15817
+ mutation: Fi,
15815
15818
  variables: {
15816
15819
  orderItems: t
15817
15820
  }
@@ -15862,7 +15865,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15862
15865
  }, Qc = async (r) => {
15863
15866
  var e, a, n;
15864
15867
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
15865
- query: Fi,
15868
+ query: xi,
15866
15869
  errorPolicy: "all",
15867
15870
  variables: {
15868
15871
  id: r
@@ -15914,7 +15917,7 @@ class fl {
15914
15917
  if (n.currentFrameSources) {
15915
15918
  let i = !1;
15916
15919
  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;
15920
+ const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
15918
15921
  rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15919
15922
  }
15920
15923
  i && (this.onFrameDataChangeListeners.forEach(
@@ -16722,7 +16725,7 @@ K = { __e: function(r, t, e, a) {
16722
16725
  throw r;
16723
16726
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
16724
16727
  var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16725
- function Fl() {
16728
+ function xl() {
16726
16729
  for (var r; r = tr.shift(); )
16727
16730
  if (r.__P && r.__H)
16728
16731
  try {
@@ -16742,7 +16745,7 @@ K.__b = function(r) {
16742
16745
  }, K.diffed = function(r) {
16743
16746
  Xa && Xa(r);
16744
16747
  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) {
16748
+ 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
16749
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
16747
16750
  })), qe = st = null;
16748
16751
  }, K.__c = function(r, t) {
@@ -16769,7 +16772,7 @@ K.__b = function(r) {
16769
16772
  }), e.__H = void 0, t && K.__e(t, e.__v));
16770
16773
  };
16771
16774
  var en = typeof requestAnimationFrame == "function";
16772
- function xl(r) {
16775
+ function Fl(r) {
16773
16776
  var t, e = function() {
16774
16777
  clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
16775
16778
  }, a = setTimeout(e, 100);
@@ -16785,7 +16788,7 @@ function la(r) {
16785
16788
  }
16786
16789
  export {
16787
16790
  da as AddonHandle,
16788
- Fc as ArrayInput,
16791
+ xc as ArrayInput,
16789
16792
  et as AspectType,
16790
16793
  yt as AssetNotFoundError,
16791
16794
  he as AssetType,
@@ -16898,7 +16901,7 @@ export {
16898
16901
  Vc as getCustomer,
16899
16902
  zc as getCustomerBundles,
16900
16903
  hc as getElementVertices,
16901
- Fe as getFrameData,
16904
+ xe as getFrameData,
16902
16905
  ml as getIntegration,
16903
16906
  dc as getNEPoint,
16904
16907
  cc as getNWPoint,
@@ -16914,7 +16917,7 @@ export {
16914
16917
  Gc as getTransactionsForBundle,
16915
16918
  oc as getTrueCoordinates,
16916
16919
  Wc as getUnorderedTransactions,
16917
- xc as getWorkflow,
16920
+ Fc as getWorkflow,
16918
16921
  Zn as getWorkflows,
16919
16922
  b as graphQlManager,
16920
16923
  de as illustrationStepService,