@spiffcommerce/core 32.2.6 → 32.2.7-beta.25f931c6-ae18-5ac4-a721-e801a472f301

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
@@ -163,10 +163,10 @@ class Qr {
163
163
  }
164
164
  const gt = new Qr();
165
165
  let ra, ia;
166
- function Vc(n) {
166
+ function zc(n) {
167
167
  ra = n;
168
168
  }
169
- function zc(n) {
169
+ function Gc(n) {
170
170
  ia = n;
171
171
  }
172
172
  function Zt() {
@@ -257,7 +257,7 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
257
257
  }
258
258
  const e = t();
259
259
  return e || "image/svg+xml";
260
- }, Gc = async (n) => {
260
+ }, Wc = async (n) => {
261
261
  const t = await pn(n), e = gn.get(n) || Qe(t);
262
262
  return await zr(new Blob([t], { type: e }));
263
263
  }, Lr = (n) => {
@@ -458,7 +458,7 @@ const _r = (n) => new Promise((t) => {
458
458
  }, Re = async (n) => {
459
459
  const t = await ti(n);
460
460
  return Qe(n) === "image/jpeg" ? {
461
- dataUrl: t.toDataURL("image/jpeg", 1),
461
+ dataUrl: t.toDataURL("image/jpeg", 0.75),
462
462
  height: t.height,
463
463
  width: t.width
464
464
  } : {
@@ -3155,7 +3155,7 @@ const _r = (n) => new Promise((t) => {
3155
3155
  parseInt(n.substring(2, 4), 16),
3156
3156
  parseInt(n.substring(4, 6), 16)
3157
3157
  ]);
3158
- function Wc(n) {
3158
+ function qc(n) {
3159
3159
  const t = Jt.indexOf(n);
3160
3160
  return t >= 0 ? xt[t] : "";
3161
3161
  }
@@ -3163,7 +3163,7 @@ function ei(n) {
3163
3163
  const t = xt.indexOf(n);
3164
3164
  return t >= 0 ? Jt[t] : "";
3165
3165
  }
3166
- function qc(n, t = 64) {
3166
+ function Hc(n, t = 64) {
3167
3167
  const e = [], a = [], r = ei(n);
3168
3168
  r && e.push({
3169
3169
  pms: r,
@@ -3182,7 +3182,7 @@ function qc(n, t = 64) {
3182
3182
  return e.sort((A, u) => A.distance - u.distance);
3183
3183
  }
3184
3184
  const ai = Jt.map((n, t) => ({ pms: n, hex: xt[t] })), ni = new wr(ai, { keys: ["pms"] });
3185
- function Hc(n, t) {
3185
+ function jc(n, t) {
3186
3186
  return ni.search(n, t ? { limit: t } : void 0);
3187
3187
  }
3188
3188
  let Qt = null;
@@ -5427,7 +5427,7 @@ const M = () => {
5427
5427
  ]
5428
5428
  }
5429
5429
  );
5430
- }, jc = (n, t, e, a, r) => {
5430
+ }, Yc = (n, t, e, a, r) => {
5431
5431
  const i = ft(r), s = e / 2, o = a / 2, l = n + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, p = u * A - m * d, f = h * A - g * d, S = u * d + m * A, b = h * d + g * A, I = Math.max(Math.abs(p), Math.abs(f)), C = Math.max(Math.abs(S), Math.abs(b));
5432
5432
  return {
5433
5433
  minX: l - I,
@@ -5435,25 +5435,25 @@ const M = () => {
5435
5435
  minY: c - C,
5436
5436
  maxY: c + C
5437
5437
  };
5438
- }, Yc = (n, t, e) => {
5438
+ }, Jc = (n, t, e) => {
5439
5439
  const a = Math.sqrt(Math.pow(t.x - n.x, 2) + Math.pow(t.y - n.y, 2)), r = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2));
5440
5440
  return Math.acos((r * r + a * a - i * i) / (2 * r * a)) * (180 / Math.PI);
5441
- }, ft = (n) => n * (Math.PI / 180), Jc = (n, t, e) => Math.abs(n - t) < e, Kc = (n, t, e) => {
5441
+ }, ft = (n) => n * (Math.PI / 180), Kc = (n, t, e) => Math.abs(n - t) < e, _c = (n, t, e) => {
5442
5442
  const a = Math.sin(ft(e)), r = Math.cos(ft(e));
5443
5443
  return {
5444
5444
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5445
5445
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5446
5446
  };
5447
- }, _c = (n, t) => ({
5447
+ }, Xc = (n, t) => ({
5448
5448
  x: (n.x + t.x) / 2,
5449
5449
  y: (n.y + t.y) / 2
5450
- }), Xc = (n, t, e, a) => ({
5450
+ }), Zc = (n, t, e, a) => ({
5451
5451
  x: n.x + t?.x * e,
5452
5452
  y: n.y + t?.y * a
5453
- }), Zc = (n, t, e, a) => ({
5453
+ }), td = (n, t, e, a) => ({
5454
5454
  x: n.x + (t?.x + t?.width) * e,
5455
5455
  y: n.y + t?.y * a
5456
- }), td = (n, t, e, a) => ({
5456
+ }), ed = (n, t, e, a) => ({
5457
5457
  x: n.x + (t?.x + t?.width) * e,
5458
5458
  y: n.y + (t?.y + t?.height) * a
5459
5459
  }), Pt = (n) => {
@@ -5475,7 +5475,7 @@ const M = () => {
5475
5475
  case H.Southwest:
5476
5476
  return H.Northwest;
5477
5477
  }
5478
- }, ed = (n, t) => t > 45 && t <= 135 ? Pt(n) : t > 135 && t <= 225 ? Pt(Pt(n)) : t > 225 && t <= 315 ? Pt(Pt(Pt(n))) : n, ad = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5478
+ }, ad = (n, t) => t > 45 && t <= 135 ? Pt(n) : t > 135 && t <= 225 ? Pt(Pt(n)) : t > 225 && t <= 315 ? Pt(Pt(Pt(n))) : n, nd = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5479
5479
  const a = ft(n.rotation), r = {
5480
5480
  x: t.x + n.x * e.x,
5481
5481
  y: t.x + n.y * e.y
@@ -5505,7 +5505,7 @@ const M = () => {
5505
5505
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5506
5506
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5507
5507
  };
5508
- }, nd = 0.352778, rd = 0.035277, Nn = (n) => {
5508
+ }, rd = 0.352778, id = 0.035277, Nn = (n) => {
5509
5509
  const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
5510
5510
  return /* @__PURE__ */ D("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ D(
5511
5511
  "g",
@@ -5727,7 +5727,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5727
5727
  }, la = (n, t) => {
5728
5728
  const e = new es(t);
5729
5729
  return Rn.set(n, e), e;
5730
- }, id = async (n) => {
5730
+ }, sd = async (n) => {
5731
5731
  const t = dt(), e = t.parseFromString(n, "image/svg+xml"), a = e.firstElementChild, r = /* @__PURE__ */ new Map();
5732
5732
  a.querySelectorAll("style").forEach((d) => {
5733
5733
  dn(d.innerHTML).stylesheet?.rules.forEach((u) => {
@@ -6380,7 +6380,7 @@ const ne = (n) => {
6380
6380
  }
6381
6381
  return o;
6382
6382
  };
6383
- class sd {
6383
+ class od {
6384
6384
  static async getFrame(t, e) {
6385
6385
  const a = await zn(e.region, e.src), r = await Ue(a), i = e.region || await Ut(t, x.Frame);
6386
6386
  return {
@@ -6623,7 +6623,7 @@ class Ha extends N {
6623
6623
  };
6624
6624
  }
6625
6625
  }
6626
- class od extends N {
6626
+ class ld extends N {
6627
6627
  constructor(t, e, a) {
6628
6628
  super(), this.id = t, this.x = e, this.y = a;
6629
6629
  }
@@ -6646,7 +6646,7 @@ class od extends N {
6646
6646
  };
6647
6647
  }
6648
6648
  }
6649
- class ld extends N {
6649
+ class cd extends N {
6650
6650
  constructor(t, e) {
6651
6651
  super(), this.id = t, this.angle = e;
6652
6652
  }
@@ -6668,7 +6668,7 @@ class ld extends N {
6668
6668
  };
6669
6669
  }
6670
6670
  }
6671
- class cd extends N {
6671
+ class dd extends N {
6672
6672
  constructor(t, e, a) {
6673
6673
  super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
6674
6674
  }
@@ -6979,7 +6979,7 @@ class ys extends N {
6979
6979
  };
6980
6980
  }
6981
6981
  }
6982
- class dd extends N {
6982
+ class Ad extends N {
6983
6983
  constructor(t, e) {
6984
6984
  super(), this.id = t, this.src = e;
6985
6985
  }
@@ -7098,7 +7098,7 @@ class vs extends N {
7098
7098
  };
7099
7099
  }
7100
7100
  }
7101
- class Ad extends N {
7101
+ class ud extends N {
7102
7102
  /**
7103
7103
  * @param id The targeted element to bring to the front.
7104
7104
  */
@@ -7127,7 +7127,7 @@ class Ad extends N {
7127
7127
  };
7128
7128
  }
7129
7129
  }
7130
- class ud extends N {
7130
+ class hd extends N {
7131
7131
  /**
7132
7132
  * @param id The targeted element to bring to the back.
7133
7133
  */
@@ -7158,7 +7158,7 @@ class ud extends N {
7158
7158
  };
7159
7159
  }
7160
7160
  }
7161
- class hd extends N {
7161
+ class md extends N {
7162
7162
  /**
7163
7163
  * @param id The targeted element to bring to the front.
7164
7164
  */
@@ -7185,7 +7185,7 @@ class hd extends N {
7185
7185
  };
7186
7186
  }
7187
7187
  }
7188
- class md extends N {
7188
+ class gd extends N {
7189
7189
  /**
7190
7190
  * @param id The targeted element to bring to the front.
7191
7191
  */
@@ -9563,7 +9563,7 @@ const re = w`
9563
9563
  }
9564
9564
  }
9565
9565
  }
9566
- `, gd = async (n) => (await y.getShadowGraphqlClient().query({
9566
+ `, pd = async (n) => (await y.getShadowGraphqlClient().query({
9567
9567
  query: js,
9568
9568
  fetchPolicy: "cache-first",
9569
9569
  errorPolicy: "all",
@@ -10227,9 +10227,13 @@ const re = w`
10227
10227
  id
10228
10228
  }
10229
10229
  }
10230
+ `, Eo = w`
10231
+ mutation DeleteBundle($id: String!) {
10232
+ bundleDelete(id: $id)
10233
+ }
10230
10234
  `;
10231
10235
  var Le = /* @__PURE__ */ ((n) => (n.Error = "Error", n.Warning = "Warning", n.Info = "Info", n))(Le || {});
10232
- const Eo = 1e3;
10236
+ const bo = 1e3;
10233
10237
  class _a extends Mn {
10234
10238
  constructor(t) {
10235
10239
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
@@ -10238,11 +10242,11 @@ class _a extends Mn {
10238
10242
  await this.update(), await new Promise((t) => {
10239
10243
  window.setTimeout(() => {
10240
10244
  t();
10241
- }, Eo);
10245
+ }, bo);
10242
10246
  });
10243
10247
  }
10244
10248
  }
10245
- class bo {
10249
+ class Bo {
10246
10250
  constructor(t, e, a, r, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, S = !1) {
10247
10251
  this.workflowStatePromiseQueue = new Tn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10248
10252
  if (!this.previewService) return;
@@ -11208,7 +11212,7 @@ const Ht = class Ht {
11208
11212
  };
11209
11213
  Ht.updateState = /* @__PURE__ */ new Map();
11210
11214
  let Z = Ht;
11211
- class Bo extends Z {
11215
+ class Io extends Z {
11212
11216
  constructor(t, e, a) {
11213
11217
  super(t, e, a);
11214
11218
  }
@@ -11282,7 +11286,7 @@ class Bo extends Z {
11282
11286
  return this.step.data.pmsPickerEnabled ?? !1;
11283
11287
  }
11284
11288
  }
11285
- class Io extends Z {
11289
+ class Po extends Z {
11286
11290
  constructor(t, e, a) {
11287
11291
  super(t, e, a);
11288
11292
  }
@@ -11295,7 +11299,7 @@ class Io extends Z {
11295
11299
  );
11296
11300
  }
11297
11301
  }
11298
- class Po extends Z {
11302
+ class Do extends Z {
11299
11303
  constructor(t, e, a) {
11300
11304
  super(t, e, a);
11301
11305
  }
@@ -11308,7 +11312,7 @@ class Po extends Z {
11308
11312
  );
11309
11313
  }
11310
11314
  }
11311
- class Do extends Z {
11315
+ class Fo extends Z {
11312
11316
  constructor(t, e, a) {
11313
11317
  super(t, e, a);
11314
11318
  }
@@ -11326,7 +11330,7 @@ class Do extends Z {
11326
11330
  );
11327
11331
  }
11328
11332
  }
11329
- class Fo extends Z {
11333
+ class xo extends Z {
11330
11334
  constructor(t, e, a) {
11331
11335
  super(t, e, a);
11332
11336
  }
@@ -11342,7 +11346,7 @@ class Fo extends Z {
11342
11346
  return this.step.data.displayType || this.step.option?.displayType;
11343
11347
  }
11344
11348
  }
11345
- class xo extends Z {
11349
+ class ko extends Z {
11346
11350
  constructor(t, e, a) {
11347
11351
  super(t, e, a);
11348
11352
  }
@@ -11401,7 +11405,7 @@ class xo extends Z {
11401
11405
  return t;
11402
11406
  }
11403
11407
  }
11404
- class ko extends Z {
11408
+ class Mo extends Z {
11405
11409
  constructor(t, e, a) {
11406
11410
  super(t, e, a);
11407
11411
  }
@@ -11594,7 +11598,7 @@ class ko extends Z {
11594
11598
  await G.changeStrokeColor(this.step, t, e, this.manager);
11595
11599
  }
11596
11600
  }
11597
- class Mo extends Z {
11601
+ class To extends Z {
11598
11602
  constructor(t, e, a) {
11599
11603
  super(t, e, a);
11600
11604
  }
@@ -11607,7 +11611,7 @@ class Mo extends Z {
11607
11611
  return this.step.data.content;
11608
11612
  }
11609
11613
  }
11610
- class To extends Z {
11614
+ class No extends Z {
11611
11615
  constructor(t, e, a) {
11612
11616
  super(t, e, a);
11613
11617
  }
@@ -11633,7 +11637,7 @@ class To extends Z {
11633
11637
  );
11634
11638
  }
11635
11639
  }
11636
- class No extends Z {
11640
+ class Qo extends Z {
11637
11641
  constructor(t, e, a) {
11638
11642
  super(t, e, a);
11639
11643
  }
@@ -11684,27 +11688,27 @@ class de {
11684
11688
  static get(t, e) {
11685
11689
  switch (e.type) {
11686
11690
  case v.DigitalContent:
11687
- return new To(t, e, t.getStepTags(e.stepName));
11691
+ return new No(t, e, t.getStepTags(e.stepName));
11688
11692
  case v.Information:
11689
- return new Mo(t, e, t.getStepTags(e.stepName));
11693
+ return new To(t, e, t.getStepTags(e.stepName));
11690
11694
  case v.Question:
11691
- return new Fo(t, e, t.getStepTags(e.stepName));
11695
+ return new xo(t, e, t.getStepTags(e.stepName));
11692
11696
  case v.Text:
11693
- return new ko(t, e, t.getStepTags(e.stepName));
11697
+ return new Mo(t, e, t.getStepTags(e.stepName));
11694
11698
  case v.Illustration:
11695
- return new Bo(t, e, t.getStepTags(e.stepName));
11699
+ return new Io(t, e, t.getStepTags(e.stepName));
11696
11700
  case v.Picture:
11697
- return new Do(t, e, t.getStepTags(e.stepName));
11701
+ return new Fo(t, e, t.getStepTags(e.stepName));
11698
11702
  case v.Shape:
11699
- return new xo(t, e, t.getStepTags(e.stepName));
11703
+ return new ko(t, e, t.getStepTags(e.stepName));
11700
11704
  case v.Material:
11701
- return new Io(t, e, t.getStepTags(e.stepName));
11702
- case v.Model:
11703
11705
  return new Po(t, e, t.getStepTags(e.stepName));
11706
+ case v.Model:
11707
+ return new Do(t, e, t.getStepTags(e.stepName));
11704
11708
  case v.Frame:
11705
- return new _l(t, e, t.getStepTags(e.stepName));
11709
+ return new Xl(t, e, t.getStepTags(e.stepName));
11706
11710
  case v.Module:
11707
- return new No(t, e, t.getStepTags(e.stepName));
11711
+ return new Qo(t, e, t.getStepTags(e.stepName));
11708
11712
  default:
11709
11713
  throw new V(`Step type ${e.type} not yet supported in Core SDK`);
11710
11714
  }
@@ -11735,7 +11739,7 @@ const tr = w`
11735
11739
  externalProductVariantId
11736
11740
  }
11737
11741
  }
11738
- `, Qo = w`
11742
+ `, Ro = w`
11739
11743
  ${tr}
11740
11744
  mutation CreateDesign(
11741
11745
  $name: String!
@@ -11767,7 +11771,7 @@ const tr = w`
11767
11771
  }
11768
11772
  }
11769
11773
  }
11770
- `, Ro = w`
11774
+ `, Oo = w`
11771
11775
  ${tr}
11772
11776
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11773
11777
  designCreateMany(inputs: $inputs) {
@@ -11786,7 +11790,7 @@ function Wt(n) {
11786
11790
  const t = JSON.parse(atob(n.split(".")[1])).exp;
11787
11791
  return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
11788
11792
  }
11789
- const Oo = async (n, t) => {
11793
+ const $o = async (n, t) => {
11790
11794
  const e = {};
11791
11795
  try {
11792
11796
  if (!t) throw new Error();
@@ -11795,7 +11799,7 @@ const Oo = async (n, t) => {
11795
11799
  o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
11796
11800
  }
11797
11801
  return (await y.getShadowGraphqlClient().mutate({
11798
- mutation: Qo,
11802
+ mutation: Ro,
11799
11803
  errorPolicy: "all",
11800
11804
  fetchPolicy: "no-cache",
11801
11805
  variables: {
@@ -11812,7 +11816,7 @@ const Oo = async (n, t) => {
11812
11816
  headers: e
11813
11817
  }
11814
11818
  })).data?.designCreate;
11815
- }, $o = async (n, t) => {
11819
+ }, Uo = async (n, t) => {
11816
11820
  const e = {};
11817
11821
  try {
11818
11822
  if (!t) throw new Error();
@@ -11821,7 +11825,7 @@ const Oo = async (n, t) => {
11821
11825
  o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
11822
11826
  }
11823
11827
  return (await y.getShadowGraphqlClient().mutate({
11824
- mutation: Ro,
11828
+ mutation: Oo,
11825
11829
  errorPolicy: "all",
11826
11830
  fetchPolicy: "no-cache",
11827
11831
  variables: {
@@ -11876,7 +11880,7 @@ const Oo = async (n, t) => {
11876
11880
  return t.steps.forEach((i) => {
11877
11881
  Object.assign(r, a(i));
11878
11882
  }), r;
11879
- }, Uo = (n, t, e, a) => {
11883
+ }, Lo = (n, t, e, a) => {
11880
11884
  const r = {};
11881
11885
  let i = {};
11882
11886
  a && (i = a);
@@ -11897,7 +11901,7 @@ const Oo = async (n, t) => {
11897
11901
  }
11898
11902
  return r;
11899
11903
  }, er = (n, t, e, a, r, i, s, o) => {
11900
- const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = Uo(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
11904
+ const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = Lo(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
11901
11905
  additionalExternalProductId: n.integrationProduct?.additionalExternalProductId,
11902
11906
  additionalExternalVariantId: n.integrationProduct?.additionalExternalVariantId,
11903
11907
  baseCost: l,
@@ -12010,7 +12014,7 @@ const Oo = async (n, t) => {
12010
12014
  cartSelectionsWithPrices: S,
12011
12015
  cartMetadata: g
12012
12016
  };
12013
- }, Lo = async (n, t, e, a, r, i, s, o, l, c, d) => {
12017
+ }, Vo = async (n, t, e, a, r, i, s, o, l, c, d) => {
12014
12018
  l("workflow.steps.finish.finalize.buildingLayouts");
12015
12019
  const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await ar(
12016
12020
  n,
@@ -12024,7 +12028,7 @@ const Oo = async (n, t) => {
12024
12028
  d
12025
12029
  );
12026
12030
  l("workflow.steps.finish.finalize.creatingDesign");
12027
- const m = await Oo(A), g = m?.transaction?.previewImageLink;
12031
+ const m = await $o(A), g = m?.transaction?.previewImageLink;
12028
12032
  if (!m?.transaction)
12029
12033
  throw new Error("Failed to create design");
12030
12034
  l("workflow.steps.finish.finalize.updatingTransaction");
@@ -12039,7 +12043,7 @@ const Oo = async (n, t) => {
12039
12043
  g,
12040
12044
  m?.processExecution?.id
12041
12045
  );
12042
- }, Vo = async (n, t, e) => {
12046
+ }, zo = async (n, t, e) => {
12043
12047
  t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
12044
12048
  n.map(async (o) => {
12045
12049
  await o.workflowManager.outstandingRequestsPromise();
@@ -12070,7 +12074,7 @@ const Oo = async (n, t) => {
12070
12074
  ))
12071
12075
  );
12072
12076
  t("workflow.steps.finish.finalize.creatingDesign");
12073
- const s = await $o(i.map((o) => o.designDetails));
12077
+ const s = await Uo(i.map((o) => o.designDetails));
12074
12078
  if (!s)
12075
12079
  throw new Error("Failed to create designs");
12076
12080
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
@@ -12087,7 +12091,7 @@ const Oo = async (n, t) => {
12087
12091
  );
12088
12092
  });
12089
12093
  };
12090
- class zo {
12094
+ class Go {
12091
12095
  constructor() {
12092
12096
  this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
12093
12097
  }
@@ -12154,7 +12158,7 @@ class zo {
12154
12158
  throw new V("Unexpected storage method requested");
12155
12159
  }
12156
12160
  }
12157
- const Xe = new zo(), Go = w`
12161
+ const Xe = new Go(), Wo = w`
12158
12162
  mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
12159
12163
  transactionAddStakeholder(id: $id, details: $details, type: $type) {
12160
12164
  id
@@ -12168,7 +12172,7 @@ const Xe = new zo(), Go = w`
12168
12172
  }
12169
12173
  }
12170
12174
  }
12171
- `, Wo = w`
12175
+ `, qo = w`
12172
12176
  mutation AddAddressToTransaction(
12173
12177
  $transactionId: String!
12174
12178
  $streetAddress: String
@@ -12190,15 +12194,15 @@ const Xe = new zo(), Go = w`
12190
12194
  id
12191
12195
  }
12192
12196
  }
12193
- `, qo = w`
12197
+ `, Ho = w`
12194
12198
  mutation AddOrganizationToTransaction($transactionId: String!, $organizationName: String!) {
12195
12199
  organizationAttachToTransaction(transactionId: $transactionId, organizationName: $organizationName) {
12196
12200
  id
12197
12201
  }
12198
12202
  }
12199
12203
  `;
12200
- var Ho = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n))(Ho || {});
12201
- class jo {
12204
+ var jo = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n))(jo || {});
12205
+ class Yo {
12202
12206
  constructor(t, e) {
12203
12207
  if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = un(async () => {
12204
12208
  await Xe.getSavedDesignByTransaction(
@@ -12219,7 +12223,7 @@ class jo {
12219
12223
  throw new Error("No Workflow ID provided.");
12220
12224
  this.client = t;
12221
12225
  const a = e.layouts;
12222
- this.commandContext = new ms(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new bo(
12226
+ this.commandContext = new ms(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Bo(
12223
12227
  this,
12224
12228
  t,
12225
12229
  e.workflow,
@@ -12260,7 +12264,7 @@ class jo {
12260
12264
  }
12261
12265
  async attachAddress(t, e, a, r, i, s) {
12262
12266
  await this.graphQlClient().mutate({
12263
- mutation: Wo,
12267
+ mutation: qo,
12264
12268
  variables: {
12265
12269
  transactionId: this.getWorkflowManager().getTransaction().id,
12266
12270
  streetAddress: t || void 0,
@@ -12274,7 +12278,7 @@ class jo {
12274
12278
  }
12275
12279
  async attachOrganization(t) {
12276
12280
  await this.graphQlClient().mutate({
12277
- mutation: qo,
12281
+ mutation: Ho,
12278
12282
  variables: {
12279
12283
  transactionId: this.getWorkflowManager().getTransaction().id,
12280
12284
  organizationName: t
@@ -12465,7 +12469,7 @@ class jo {
12465
12469
  }
12466
12470
  async assignCustomerDetails(t) {
12467
12471
  const a = (await this.graphQlClient().mutate({
12468
- mutation: Go,
12472
+ mutation: Wo,
12469
12473
  variables: {
12470
12474
  id: this.getWorkflowManager().getTransaction().id,
12471
12475
  details: t,
@@ -12531,7 +12535,7 @@ class jo {
12531
12535
  transactionId: a.id,
12532
12536
  workflowViewerLink: "",
12533
12537
  workflowViewerReadOnlyLink: ""
12534
- }) : Lo(
12538
+ }) : Vo(
12535
12539
  this.workflowManager,
12536
12540
  this.workflowManager.getWorkflow(),
12537
12541
  this.workflowManager.getLayouts(),
@@ -12562,7 +12566,7 @@ class jo {
12562
12566
  title: i.stepTitle,
12563
12567
  properties: []
12564
12568
  };
12565
- if (l && Jo(i, a) && c.properties.push({
12569
+ if (l && Ko(i, a) && c.properties.push({
12566
12570
  type: "selection",
12567
12571
  value: l.name,
12568
12572
  priceModifier: l.priceModifier
@@ -12656,7 +12660,7 @@ class jo {
12656
12660
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
12657
12661
  }
12658
12662
  }
12659
- const Yo = (n) => {
12663
+ const Jo = (n) => {
12660
12664
  if ([
12661
12665
  v.Question,
12662
12666
  v.Frame,
@@ -12671,14 +12675,14 @@ const Yo = (n) => {
12671
12675
  return !!e.displaySelectionOnFinishStep || !!e.displaySelectionsOnFinishStep;
12672
12676
  }
12673
12677
  return !1;
12674
- }, Jo = (n, t) => {
12675
- if (!Yo(n)) return !1;
12678
+ }, Ko = (n, t) => {
12679
+ if (!Jo(n)) return !1;
12676
12680
  if (n.option && (n.option.variants || []).length > 1) {
12677
12681
  const e = t[n.stepName];
12678
12682
  return !!(e && e.selections.length > 0);
12679
12683
  }
12680
12684
  return !1;
12681
- }, Ko = [
12685
+ }, _o = [
12682
12686
  "altGlyph",
12683
12687
  "circle",
12684
12688
  "ellipse",
@@ -12690,7 +12694,7 @@ const Yo = (n) => {
12690
12694
  "textPath",
12691
12695
  "tref",
12692
12696
  "tspan"
12693
- ], _o = async (n, t, e) => {
12697
+ ], Xo = async (n, t, e) => {
12694
12698
  const a = t.data, r = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = r.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + r);
12695
12699
  o.searchParams.append("video", $a(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12696
12700
  const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await An(l, { type: "svg" }))}`, A = (h) => {
@@ -12717,7 +12721,7 @@ const Yo = (n) => {
12717
12721
  } catch (h) {
12718
12722
  return console.error(h), [];
12719
12723
  }
12720
- }, Xo = async (n, t, e, a) => {
12724
+ }, Zo = async (n, t, e, a) => {
12721
12725
  const r = e.data, i = r.assetUrl, s = await da(i);
12722
12726
  try {
12723
12727
  const o = gs(r, a.option);
@@ -12774,7 +12778,7 @@ const Yo = (n) => {
12774
12778
  } catch (o) {
12775
12779
  return console.error(o), [];
12776
12780
  }
12777
- }, Zo = async (n, t, e, a) => {
12781
+ }, tl = async (n, t, e, a) => {
12778
12782
  const r = e.data, i = a.option;
12779
12783
  if (!i)
12780
12784
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12793,7 +12797,7 @@ const Yo = (n) => {
12793
12797
  wa(m);
12794
12798
  const g = {};
12795
12799
  kt(m, (C) => {
12796
- Ko.includes(C.tagName) && !C.attributes.getNamedItem("fill") && C.setAttribute("fill", "#000000");
12800
+ _o.includes(C.tagName) && !C.attributes.getNamedItem("fill") && C.setAttribute("fill", "#000000");
12797
12801
  const E = C.attributes.getNamedItem("fill");
12798
12802
  if (E && E.value !== "none") {
12799
12803
  const B = E.value, Q = `spiff-fill-${B.replace(/\W/g, "")}`;
@@ -12842,7 +12846,7 @@ const Yo = (n) => {
12842
12846
  } catch (C) {
12843
12847
  return console.error(C), [];
12844
12848
  }
12845
- }, tl = async (n, t, e) => {
12849
+ }, el = async (n, t, e) => {
12846
12850
  const a = await Zn(e.data.module), r = t.data, i = (o, l) => {
12847
12851
  const c = n.find((A) => A.panelId === l.panelId);
12848
12852
  if (!c)
@@ -12872,7 +12876,7 @@ const Yo = (n) => {
12872
12876
  } catch (o) {
12873
12877
  return console.error(o), [];
12874
12878
  }
12875
- }, el = async (n, t, e, a) => {
12879
+ }, al = async (n, t, e, a) => {
12876
12880
  const r = e.data, i = a.option;
12877
12881
  if (!i)
12878
12882
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12913,7 +12917,7 @@ const Yo = (n) => {
12913
12917
  } catch (d) {
12914
12918
  return console.error(d), [];
12915
12919
  }
12916
- }, al = async (n, t, e, a) => {
12920
+ }, nl = async (n, t, e, a) => {
12917
12921
  const r = e.data, i = a.option;
12918
12922
  if (!i)
12919
12923
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12969,7 +12973,7 @@ const Yo = (n) => {
12969
12973
  } catch (c) {
12970
12974
  return console.error(c), [];
12971
12975
  }
12972
- }, nl = async (n, t, e) => {
12976
+ }, rl = async (n, t, e) => {
12973
12977
  const a = [], i = t.type === v.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", o = i.endsWith(".jpeg") || i.endsWith(".jpg") || i.endsWith(".png") ? x.Image : (i.endsWith(".svg"), x.Illustration), l = t.data.regions;
12974
12978
  if (o === "image")
12975
12979
  try {
@@ -13033,7 +13037,7 @@ const Yo = (n) => {
13033
13037
  });
13034
13038
  }
13035
13039
  return a;
13036
- }, rl = async (n, t, e, a) => {
13040
+ }, il = async (n, t, e, a) => {
13037
13041
  const r = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
13038
13042
  const p = a.option;
13039
13043
  if (!p)
@@ -13118,7 +13122,7 @@ const Yo = (n) => {
13118
13122
  r.push(new z(S, f));
13119
13123
  }
13120
13124
  return r;
13121
- }, il = (n, t) => n.conditions ? n.conditions.every((e) => {
13125
+ }, sl = (n, t) => n.conditions ? n.conditions.every((e) => {
13122
13126
  const a = t[e.targetStepName];
13123
13127
  if (a && a.selectedVariants) {
13124
13128
  const r = a.selectedVariants;
@@ -13127,7 +13131,7 @@ const Yo = (n) => {
13127
13131
  );
13128
13132
  }
13129
13133
  return !1;
13130
- }) : !0, sl = async (n, t, e, a) => {
13134
+ }) : !0, ol = async (n, t, e, a) => {
13131
13135
  const r = [], i = {};
13132
13136
  for (const s of n) {
13133
13137
  const o = t.steps.find((l) => l.stepName === s.name);
@@ -13135,18 +13139,18 @@ const Yo = (n) => {
13135
13139
  switch (o.type) {
13136
13140
  case v.DigitalContent:
13137
13141
  r.push(
13138
- ...await _o(e, s, o)
13142
+ ...await Xo(e, s, o)
13139
13143
  );
13140
13144
  break;
13141
13145
  case v.Frame:
13142
13146
  case v.Photo:
13143
13147
  r.push(
13144
- ...await Xo(e, i, s, o)
13148
+ ...await Zo(e, i, s, o)
13145
13149
  );
13146
13150
  break;
13147
13151
  case v.Illustration:
13148
13152
  r.push(
13149
- ...await Zo(
13153
+ ...await tl(
13150
13154
  e,
13151
13155
  i,
13152
13156
  s,
@@ -13155,39 +13159,39 @@ const Yo = (n) => {
13155
13159
  );
13156
13160
  break;
13157
13161
  case v.Module:
13158
- r.push(...await tl(e, s, o));
13162
+ r.push(...await el(e, s, o));
13159
13163
  break;
13160
13164
  case v.Picture:
13161
13165
  r.push(
13162
- ...await el(e, i, s, o)
13166
+ ...await al(e, i, s, o)
13163
13167
  );
13164
13168
  break;
13165
13169
  case v.Shape:
13166
13170
  r.push(
13167
- ...await al(e, i, s, o)
13171
+ ...await nl(e, i, s, o)
13168
13172
  );
13169
13173
  break;
13170
13174
  case v.Text:
13171
13175
  r.push(
13172
- ...await rl(e, i, s, o)
13176
+ ...await il(e, i, s, o)
13173
13177
  );
13174
13178
  break;
13175
13179
  }
13176
13180
  }
13177
13181
  for (const s of t.steps)
13178
- s.type !== v.SilentIllustration && s.type !== v.ProductOverlay || il(s, i) && r.push(
13179
- ...await nl(e, s, a)
13182
+ s.type !== v.SilentIllustration && s.type !== v.ProductOverlay || sl(s, i) && r.push(
13183
+ ...await rl(e, s, a)
13180
13184
  );
13181
13185
  return r;
13182
13186
  };
13183
- class ol {
13187
+ class ll {
13184
13188
  constructor(t) {
13185
13189
  this.handleCompleteRender = null;
13186
13190
  const e = /* @__PURE__ */ new Map();
13187
13191
  t.forEach(
13188
13192
  (a) => e.set(
13189
13193
  a.id,
13190
- new dl(
13194
+ new Al(
13191
13195
  a.id,
13192
13196
  a.name,
13193
13197
  this,
@@ -13213,15 +13217,15 @@ class ol {
13213
13217
  return this.workflowManager;
13214
13218
  }
13215
13219
  }
13216
- const ll = () => new Promise((n, t) => {
13220
+ const cl = () => new Promise((n, t) => {
13217
13221
  try {
13218
13222
  const a = pt().getContext("webgl2");
13219
13223
  n(!!a);
13220
13224
  } catch {
13221
13225
  n(!1);
13222
13226
  }
13223
- }), cl = ll();
13224
- class dl {
13227
+ }), dl = cl();
13228
+ class Al {
13225
13229
  constructor(t, e, a, r, i) {
13226
13230
  this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Tn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
13227
13231
  }
@@ -13277,10 +13281,10 @@ class dl {
13277
13281
  return;
13278
13282
  }
13279
13283
  this.renderQueue.enqueue(
13280
- new Al(
13284
+ new ul(
13281
13285
  this.getID(),
13282
13286
  a,
13283
- await cl,
13287
+ await dl,
13284
13288
  () => {
13285
13289
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
13286
13290
  },
@@ -13290,7 +13294,7 @@ class dl {
13290
13294
  );
13291
13295
  }
13292
13296
  }
13293
- class Al extends Mn {
13297
+ class ul extends Mn {
13294
13298
  constructor(t, e, a, r, i, s) {
13295
13299
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = r, this.layouts = i, this.getWorkflowManager = s;
13296
13300
  }
@@ -13360,7 +13364,7 @@ class Al extends Mn {
13360
13364
  h.resize(l, c), await h.render(), this.onRender();
13361
13365
  }
13362
13366
  }
13363
- const pd = (n, t) => {
13367
+ const fd = (n, t) => {
13364
13368
  const e = [];
13365
13369
  return n.forEach((a) => {
13366
13370
  const r = t.steps.find((i) => i.stepName === a.stepName);
@@ -13371,16 +13375,16 @@ const pd = (n, t) => {
13371
13375
  }
13372
13376
  });
13373
13377
  }), e;
13374
- }, fd = async (n, t, e, a) => {
13378
+ }, Cd = async (n, t, e, a) => {
13375
13379
  let r = {
13376
13380
  serializableWorkflow: { steps: [] },
13377
13381
  layouts: {}
13378
13382
  };
13379
13383
  r = new R(e.map((l) => new qn(l))).apply(r);
13380
- const s = await sl(n, t, e, a);
13384
+ const s = await ol(n, t, e, a);
13381
13385
  return new R(s).apply(r);
13382
13386
  };
13383
- class ul {
13387
+ class hl {
13384
13388
  constructor(t) {
13385
13389
  this.handleCache = {}, this.bundle = t;
13386
13390
  }
@@ -13422,7 +13426,7 @@ class ul {
13422
13426
  async createHandle(t) {
13423
13427
  switch (t.type) {
13424
13428
  case U.FileUpload:
13425
- return new hl(this.bundle, t).initialize();
13429
+ return new ml(this.bundle, t).initialize();
13426
13430
  case U.ColorOption:
13427
13431
  return new Za(
13428
13432
  this.bundle,
@@ -13434,7 +13438,7 @@ class ul {
13434
13438
  return e?.type === "Color" ? new Za(this.bundle, t, e) : new nr(this.bundle, t, e);
13435
13439
  }
13436
13440
  case U.Text:
13437
- return new ml(this.bundle, t);
13441
+ return new gl(this.bundle, t);
13438
13442
  default:
13439
13443
  throw new Error("Unhandled Global Property Aspect Type");
13440
13444
  }
@@ -13501,7 +13505,7 @@ class Da {
13501
13505
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
13502
13506
  }
13503
13507
  }
13504
- class hl extends Da {
13508
+ class ml extends Da {
13505
13509
  constructor(t, e) {
13506
13510
  super(t, e);
13507
13511
  }
@@ -13727,7 +13731,7 @@ class hl extends Da {
13727
13731
  );
13728
13732
  }
13729
13733
  }
13730
- class ml extends Da {
13734
+ class gl extends Da {
13731
13735
  constructor(t, e) {
13732
13736
  super(t, e);
13733
13737
  }
@@ -13878,8 +13882,8 @@ class Za extends nr {
13878
13882
  return this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)?.customColor || this.getCurrentVariant()?.getColor() || "#ffffff";
13879
13883
  }
13880
13884
  }
13881
- const gl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlobalPropertyAspects(t).includes(e) && r.getType() === a), pl = (n, t, e) => {
13882
- const r = gl(
13885
+ const pl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlobalPropertyAspects(t).includes(e) && r.getType() === a), fl = (n, t, e) => {
13886
+ const r = pl(
13883
13887
  n,
13884
13888
  t,
13885
13889
  e,
@@ -13892,21 +13896,21 @@ const gl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlo
13892
13896
  };
13893
13897
  function ua(n, t) {
13894
13898
  function e(a) {
13895
- if (typeof a > "u" || !Array.isArray(a) && !Cl(a))
13899
+ if (typeof a > "u" || !Array.isArray(a) && !wl(a))
13896
13900
  return a;
13897
13901
  if (Array.isArray(a))
13898
13902
  return ua(a, t);
13899
13903
  let r = {};
13900
13904
  for (const [i, s] of Object.entries(a))
13901
- r[i] = fl(s) ? s : ua(s, t);
13905
+ r[i] = Cl(s) ? s : ua(s, t);
13902
13906
  return Ir(r, t);
13903
13907
  }
13904
13908
  return Array.isArray(n) ? n.map(e) : e(n);
13905
13909
  }
13906
- function fl(n) {
13910
+ function Cl(n) {
13907
13911
  return n == null;
13908
13912
  }
13909
- function Cl(n) {
13913
+ function wl(n) {
13910
13914
  return typeof n == "object" && !Array.isArray(n) && n !== null;
13911
13915
  }
13912
13916
  function rr(n) {
@@ -13918,7 +13922,7 @@ function rr(n) {
13918
13922
  function Ae(n) {
13919
13923
  return ua(n, ["__typename"]);
13920
13924
  }
13921
- class wl {
13925
+ class yl {
13922
13926
  constructor(t, e, a, r, i) {
13923
13927
  this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
13924
13928
  const s = i?.existingGlobalPropertyState;
@@ -14100,7 +14104,7 @@ class wl {
14100
14104
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
14101
14105
  }
14102
14106
  }
14103
- class yl {
14107
+ class Sl {
14104
14108
  constructor(t) {
14105
14109
  this.setState(t);
14106
14110
  }
@@ -14186,7 +14190,7 @@ class yl {
14186
14190
  };
14187
14191
  }
14188
14192
  }
14189
- const Sl = w`
14193
+ const vl = w`
14190
14194
  query GetManyMetafields($entityIds: [String!]!) {
14191
14195
  metafieldsMany(entityIds: $entityIds) {
14192
14196
  id
@@ -14198,7 +14202,7 @@ const Sl = w`
14198
14202
  }
14199
14203
  }
14200
14204
  `;
14201
- class vl {
14205
+ class El {
14202
14206
  constructor() {
14203
14207
  this.internalMap = /* @__PURE__ */ new Map();
14204
14208
  }
@@ -14219,7 +14223,7 @@ class vl {
14219
14223
  async ensureIdsArePresent(t) {
14220
14224
  if (t.every((a) => this.internalMap.has(a))) return;
14221
14225
  const e = await y.getShadowGraphqlClient().query({
14222
- query: Sl,
14226
+ query: vl,
14223
14227
  errorPolicy: "all",
14224
14228
  variables: {
14225
14229
  entityIds: t.filter((a) => !this.internalMap.has(a))
@@ -14260,8 +14264,8 @@ class vl {
14260
14264
  return JSON.parse(r.value);
14261
14265
  }
14262
14266
  }
14263
- const El = new vl();
14264
- var bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(bl || {});
14267
+ const bl = new El();
14268
+ var Bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(Bl || {});
14265
14269
  class ir {
14266
14270
  constructor(t) {
14267
14271
  this.fullFetched = !1, this.collection = t;
@@ -14435,7 +14439,7 @@ class ir {
14435
14439
  }
14436
14440
  getTransformCollection() {
14437
14441
  if (this.collection.transformCollection)
14438
- return new Bl(this.collection.transformCollection);
14442
+ return new Il(this.collection.transformCollection);
14439
14443
  }
14440
14444
  /**
14441
14445
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14561,7 +14565,7 @@ class ue {
14561
14565
  * @returns A map of metafield key to value. Any unavailable keys will not be present in the map. use map.has() to check if a key is present.
14562
14566
  */
14563
14567
  async requestMetafields(t) {
14564
- return El.requestKeysForEntity(this.product.id, t);
14568
+ return bl.requestKeysForEntity(this.product.id, t);
14565
14569
  }
14566
14570
  }
14567
14571
  class qt {
@@ -14588,7 +14592,7 @@ class qt {
14588
14592
  return this.workflow.imageUrl;
14589
14593
  }
14590
14594
  }
14591
- class Bl {
14595
+ class Il {
14592
14596
  constructor(t) {
14593
14597
  this.collection = t;
14594
14598
  }
@@ -14608,10 +14612,10 @@ class Bl {
14608
14612
  * @returns The transforms in this collection.
14609
14613
  */
14610
14614
  getTransforms() {
14611
- return this.collection.transforms.map((t) => new Il(t));
14615
+ return this.collection.transforms.map((t) => new Pl(t));
14612
14616
  }
14613
14617
  }
14614
- class Il {
14618
+ class Pl {
14615
14619
  constructor(t) {
14616
14620
  this.transform = t;
14617
14621
  }
@@ -14638,21 +14642,21 @@ class Il {
14638
14642
  };
14639
14643
  }
14640
14644
  }
14641
- const Pl = w`
14645
+ const Dl = w`
14642
14646
  ${ie(!1)}
14643
14647
  query GetProductCollections($ids: [String!]!) {
14644
14648
  productCollections(ids: $ids) {
14645
14649
  ...ProductCollectionFields
14646
14650
  }
14647
14651
  }
14648
- `, Cd = async (n) => (await y.getShadowGraphqlClient().query({
14649
- query: Pl,
14652
+ `, wd = async (n) => (await y.getShadowGraphqlClient().query({
14653
+ query: Dl,
14650
14654
  errorPolicy: "all",
14651
14655
  variables: {
14652
14656
  ids: n
14653
14657
  }
14654
14658
  })).data?.productCollections?.map((e) => new ir(e));
14655
- class Dl {
14659
+ class Fl {
14656
14660
  constructor() {
14657
14661
  this.listeners = {};
14658
14662
  }
@@ -14679,7 +14683,7 @@ class Dl {
14679
14683
  delete this.listeners[e];
14680
14684
  }
14681
14685
  }
14682
- const Fl = w`
14686
+ const xl = w`
14683
14687
  mutation AddAddressToBundle(
14684
14688
  $bundleId: String!
14685
14689
  $streetAddress: String
@@ -14701,13 +14705,13 @@ const Fl = w`
14701
14705
  id
14702
14706
  }
14703
14707
  }
14704
- `, xl = w`
14708
+ `, kl = w`
14705
14709
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14706
14710
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14707
14711
  id
14708
14712
  }
14709
14713
  }
14710
- `, kl = w`
14714
+ `, Ml = w`
14711
14715
  mutation GenerateQuoteId($id: String!) {
14712
14716
  bundleGenerateQuoteId(id: $id) {
14713
14717
  id
@@ -14717,15 +14721,15 @@ const Fl = w`
14717
14721
  `;
14718
14722
  class Ze {
14719
14723
  constructor(t, e, a, r, i, s) {
14720
- this.workflowExperiences = [], this.eventEmitter = new Dl(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new yl(e.bundleStateData);
14724
+ this.workflowExperiences = [], this.eventEmitter = new Fl(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Sl(e.bundleStateData);
14721
14725
  const o = this.productCollection?.globalPropertyConfiguration;
14722
- this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new wl(
14726
+ this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new yl(
14723
14727
  this.id,
14724
14728
  this.ownerId,
14725
14729
  o,
14726
14730
  this.onGlobalPropertiesChanged.bind(this),
14727
14731
  s
14728
- ), this.globalPropertyHandleService = new ul(this), this.setPreviewService(a);
14732
+ ), this.globalPropertyHandleService = new hl(this), this.setPreviewService(a);
14729
14733
  const l = new Promise((c, d) => {
14730
14734
  if (s?.readonly) {
14731
14735
  c([]);
@@ -14761,7 +14765,7 @@ class Ze {
14761
14765
  }
14762
14766
  async generateQuoteId() {
14763
14767
  const e = (await y.getShadowGraphqlClient().mutate({
14764
- mutation: kl,
14768
+ mutation: Ml,
14765
14769
  variables: {
14766
14770
  id: this.id
14767
14771
  },
@@ -14773,7 +14777,7 @@ class Ze {
14773
14777
  }
14774
14778
  async attachAddress(t, e, a, r, i, s) {
14775
14779
  await y.getShadowGraphqlClient().mutate({
14776
- mutation: Fl,
14780
+ mutation: xl,
14777
14781
  variables: {
14778
14782
  bundleId: this.id,
14779
14783
  streetAddress: t || void 0,
@@ -14790,7 +14794,7 @@ class Ze {
14790
14794
  }
14791
14795
  async attachOrganization(t) {
14792
14796
  await y.getShadowGraphqlClient().mutate({
14793
- mutation: xl,
14797
+ mutation: kl,
14794
14798
  variables: {
14795
14799
  bundleId: this.id,
14796
14800
  organizationName: t
@@ -14927,7 +14931,7 @@ class Ze {
14927
14931
  (s) => s.name === r
14928
14932
  );
14929
14933
  if (i && i.type === U.ColorOption) {
14930
- const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = pl(
14934
+ const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = fl(
14931
14935
  this.getWorkflowExperiences(),
14932
14936
  this.globalConfigurationPropertyId || "",
14933
14937
  r
@@ -15204,23 +15208,13 @@ class Ze {
15204
15208
  });
15205
15209
  }
15206
15210
  async finish(t, e) {
15207
- if (this.completed)
15208
- return await y.getShadowGraphqlClient().mutate({
15209
- mutation: go,
15210
- variables: {
15211
- bundleId: this.id
15212
- }
15213
- }), {
15214
- bundleId: this.id,
15215
- name: this.getName(),
15216
- dispatchDate: this.getDispatchDate() || "",
15217
- purchaseOrder: this.getPurchaseOrder() || "",
15218
- collectionId: this.getProductCollection()?.getId() || "",
15219
- collectionName: this.getProductCollection()?.getName() || "",
15220
- items: [],
15221
- bundleOwnerId: this.ownerId
15222
- };
15223
- const a = await Vo(
15211
+ this.completed && await y.getShadowGraphqlClient().mutate({
15212
+ mutation: go,
15213
+ variables: {
15214
+ bundleId: this.id
15215
+ }
15216
+ });
15217
+ const a = await zo(
15224
15218
  this.workflowExperiences.map((r) => ({
15225
15219
  workflowManager: r.getWorkflowManager(),
15226
15220
  workflow: r.getWorkflowManager().getWorkflow(),
@@ -15454,15 +15448,27 @@ class Ze {
15454
15448
  quoteId: this.quoteId || ""
15455
15449
  };
15456
15450
  }
15451
+ async delete() {
15452
+ const t = await y.getShadowGraphqlClient().mutate({
15453
+ mutation: Eo,
15454
+ errorPolicy: "all",
15455
+ fetchPolicy: "no-cache",
15456
+ variables: {
15457
+ id: this.id
15458
+ }
15459
+ });
15460
+ if (t.data?.bundleDelete !== this.id)
15461
+ throw new Error(`failed to delete bundle: ${t.errors}`);
15462
+ }
15457
15463
  }
15458
- const Ml = w`
15464
+ const Tl = w`
15459
15465
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15460
15466
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15461
15467
  id
15462
15468
  }
15463
15469
  }
15464
15470
  `;
15465
- class Tl {
15471
+ class Nl {
15466
15472
  /**
15467
15473
  *
15468
15474
  * @param id
@@ -15472,7 +15478,7 @@ class Tl {
15472
15478
  */
15473
15479
  async execute(t, e, a) {
15474
15480
  const i = (await y.getShadowGraphqlClient().mutate({
15475
- mutation: Ml,
15481
+ mutation: Tl,
15476
15482
  variables: {
15477
15483
  processFlowId: t,
15478
15484
  inputs: [...e.map((A) => A.getValueForTransmission())]
@@ -15512,7 +15518,7 @@ class Tl {
15512
15518
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15513
15519
  );
15514
15520
  if (A.completedAt) {
15515
- o = !0, d = new Nl(A);
15521
+ o = !0, d = new Ql(A);
15516
15522
  break;
15517
15523
  }
15518
15524
  l += 1;
@@ -15524,7 +15530,7 @@ class Tl {
15524
15530
  return Promise.resolve(d);
15525
15531
  }
15526
15532
  }
15527
- class Nl {
15533
+ class Ql {
15528
15534
  constructor(t) {
15529
15535
  this.execution = t;
15530
15536
  }
@@ -15609,8 +15615,8 @@ class Fa {
15609
15615
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15610
15616
  }
15611
15617
  }
15612
- var Ql = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(Ql || {});
15613
- class wd extends Fa {
15618
+ var Rl = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(Rl || {});
15619
+ class yd extends Fa {
15614
15620
  constructor(t) {
15615
15621
  super(`"${t}"`);
15616
15622
  }
@@ -15625,7 +15631,7 @@ class sr extends Fa {
15625
15631
  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);
15626
15632
  }
15627
15633
  }
15628
- class yd extends Fa {
15634
+ class Sd extends Fa {
15629
15635
  constructor(t) {
15630
15636
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15631
15637
  }
@@ -15687,7 +15693,7 @@ const me = w`
15687
15693
  }
15688
15694
  }
15689
15695
  }
15690
- `, Rl = w`
15696
+ `, Ol = w`
15691
15697
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15692
15698
  customerCreate(details: $details) {
15693
15699
  id
@@ -15729,7 +15735,7 @@ w`
15729
15735
  }
15730
15736
  }
15731
15737
  `;
15732
- const Ol = w`
15738
+ const $l = w`
15733
15739
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15734
15740
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15735
15741
  }
@@ -15766,7 +15772,7 @@ w`
15766
15772
  }
15767
15773
  }
15768
15774
  `;
15769
- const $l = w`
15775
+ const Ul = w`
15770
15776
  query CustomerMetafields($id: String!) {
15771
15777
  metafields(entityId: $id) {
15772
15778
  id
@@ -15785,7 +15791,7 @@ const $l = w`
15785
15791
  }
15786
15792
  }
15787
15793
  `;
15788
- class Ul {
15794
+ class Ll {
15789
15795
  constructor(t, e = y.getShadowGraphqlClient.bind(y)) {
15790
15796
  this.options = t, this.client = e;
15791
15797
  }
@@ -15812,7 +15818,7 @@ class Ul {
15812
15818
  });
15813
15819
  }
15814
15820
  }
15815
- class Ll {
15821
+ class Vl {
15816
15822
  init(t, e, a) {
15817
15823
  this.cognitoClient = new Er({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15818
15824
  }
@@ -15862,8 +15868,8 @@ class Ll {
15862
15868
  );
15863
15869
  }
15864
15870
  }
15865
- const Lt = new Ll();
15866
- class Vl {
15871
+ const Lt = new Vl();
15872
+ class zl {
15867
15873
  /**
15868
15874
  * Returns a formatted string representing a given amount with desired currency.
15869
15875
  * @param currency The currency to represent the amount in.
@@ -15897,8 +15903,8 @@ class Vl {
15897
15903
  return "USD0,0";
15898
15904
  }
15899
15905
  }
15900
- const en = new Vl();
15901
- class zl {
15906
+ const en = new zl();
15907
+ class Gl {
15902
15908
  constructor(t, e, a, r) {
15903
15909
  this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
15904
15910
  }
@@ -15938,7 +15944,7 @@ class zl {
15938
15944
  return t * Math.pow(10, en.getPrecisionForCurrency(e));
15939
15945
  }
15940
15946
  }
15941
- const Gl = async (n, t) => {
15947
+ const Wl = async (n, t) => {
15942
15948
  const e = await y.getShadowGraphqlClient().query({
15943
15949
  query: Li(t?.assets?.metadata || !1),
15944
15950
  errorPolicy: "all",
@@ -15960,7 +15966,7 @@ const Gl = async (n, t) => {
15960
15966
  }), Kt.set({ id: i.option.id }, Promise.resolve(i.option)));
15961
15967
  }), r.finalizeStepConfig || (r.finalizeStepConfig = {}), r.finalizeStepConfig.termsMarkdown = r.finalizeStepConfig.termsMarkdown || r.partner.termsMarkdown;
15962
15968
  }), a;
15963
- }, Wl = async (n, t) => {
15969
+ }, ql = async (n, t) => {
15964
15970
  const a = (await t).find((r) => r.id === n);
15965
15971
  if (!a)
15966
15972
  throw new Error(`Workflow not found: ${n}`);
@@ -15969,11 +15975,11 @@ const Gl = async (n, t) => {
15969
15975
  const e = n.map((o) => Kt.get({ id: o, options: t })), a = n.filter((o, l) => e[l] === void 0);
15970
15976
  if (a.length === 0)
15971
15977
  return Promise.all(e);
15972
- const r = Gl(a, t), i = a.map(
15973
- (o) => Kt.set({ id: o, options: t }, Wl(o, r))
15978
+ const r = Wl(a, t), i = a.map(
15979
+ (o) => Kt.set({ id: o, options: t }, ql(o, r))
15974
15980
  ), s = e.filter((o) => o !== void 0);
15975
15981
  return await Promise.all(s.concat(i));
15976
- }, Sd = async (n, t) => (await or([n], t))[0], ql = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
15982
+ }, vd = async (n, t) => (await or([n], t))[0], Hl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
15977
15983
  id: M(),
15978
15984
  panelId: t.name,
15979
15985
  name: t.name,
@@ -15987,11 +15993,11 @@ const Gl = async (n, t) => {
15987
15993
  previewRegion: t.previewRegion,
15988
15994
  useEditableArea: t.useEditableArea,
15989
15995
  editableArea: t.editableArea
15990
- })), Hl = (n, t) => {
15996
+ })), jl = (n, t) => {
15991
15997
  const e = n.workflowState, a = e ? JSON.parse(e) : void 0;
15992
- return a ? Object.values(a.layouts).map((r) => r.layout) : ql(t.panels);
15998
+ return a ? Object.values(a.layouts).map((r) => r.layout) : Hl(t.panels);
15993
15999
  };
15994
- class vd {
16000
+ class Ed {
15995
16001
  constructor(t) {
15996
16002
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15997
16003
  try {
@@ -16002,7 +16008,7 @@ class vd {
16002
16008
  } catch (a) {
16003
16009
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16004
16010
  }
16005
- }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.6"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16011
+ }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.7-beta.8530dff0-4b30-5129-81b6-266d32fa7e3f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16006
16012
  }
16007
16013
  configure(t) {
16008
16014
  gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16016,7 +16022,7 @@ class vd {
16016
16022
  }
16017
16023
  getFlowService() {
16018
16024
  if (!qr()) throw new Error("Application key required to use Flow Service.");
16019
- return new Tl();
16025
+ return new Nl();
16020
16026
  }
16021
16027
  async getCurrencyContext(t) {
16022
16028
  const a = (await this.getIntegration()).partner.currencyCode, i = await y.getShadowGraphqlClient().query({
@@ -16028,14 +16034,14 @@ class vd {
16028
16034
  to: t
16029
16035
  }
16030
16036
  }), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
16031
- return new zl(s, o, a, t);
16037
+ return new Gl(s, o, a, t);
16032
16038
  }
16033
16039
  async getIntegration() {
16034
16040
  if (this.activeIntegration)
16035
16041
  return this.activeIntegration;
16036
16042
  if (!this.options.applicationKey)
16037
16043
  throw new Error("Cannot get current Integration without specifying an Application Key.");
16038
- return this.activeIntegration = jl(this.options.applicationKey), this.activeIntegration;
16044
+ return this.activeIntegration = Yl(this.options.applicationKey), this.activeIntegration;
16039
16045
  }
16040
16046
  async canUseAddon(t) {
16041
16047
  try {
@@ -16162,7 +16168,7 @@ class vd {
16162
16168
  })).data.customer;
16163
16169
  if (!r.id) {
16164
16170
  const o = (await e.mutate({
16165
- mutation: Rl,
16171
+ mutation: Ol,
16166
16172
  errorPolicy: "all",
16167
16173
  fetchPolicy: "no-cache",
16168
16174
  variables: {
@@ -16220,7 +16226,7 @@ class vd {
16220
16226
  */
16221
16227
  async generateVerificationCode(t) {
16222
16228
  await y.getShadowGraphqlClient().mutate({
16223
- mutation: Ol,
16229
+ mutation: $l,
16224
16230
  variables: {
16225
16231
  emailAddress: t
16226
16232
  }
@@ -16275,7 +16281,7 @@ class vd {
16275
16281
  if (!this.customer?.id)
16276
16282
  throw new Error("Customer must be logged in before calling this function.");
16277
16283
  return (await y.getShadowGraphqlClient().query({
16278
- query: $l,
16284
+ query: Ul,
16279
16285
  variables: {
16280
16286
  id: this.customer.id
16281
16287
  }
@@ -16520,7 +16526,7 @@ class vd {
16520
16526
  ])).flat(), u = [...new Set(A.map((C) => C.workflowId))], h = await or(u, e), m = new Map(h.map((C) => [C.id, C])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (C) => {
16521
16527
  const { transaction: E, workflowId: P, readOnly: B, index: F } = C, Q = m.get(P), T = t[F];
16522
16528
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16523
- const tt = g.get(E.id) || void 0, et = new Ul({
16529
+ const tt = g.get(E.id) || void 0, et = new Ll({
16524
16530
  onMutate: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } }),
16525
16531
  onQuery: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } })
16526
16532
  }), W = {
@@ -16546,17 +16552,17 @@ class vd {
16546
16552
  const q = JSON.parse(T.workflowState);
16547
16553
  W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16548
16554
  } else
16549
- W.layouts = Hl(
16555
+ W.layouts = jl(
16550
16556
  W.transaction,
16551
16557
  W.workflow
16552
16558
  );
16553
- return W.renderableContextService = new ol(
16559
+ return W.renderableContextService = new ll(
16554
16560
  W.layouts
16555
16561
  ), W.delayWorkflowStateSync = !0, { experienceOptions: W, index: F, options: T };
16556
16562
  }), f = await Promise.all(p);
16557
16563
  k.setMap("transactionOwnerIds", g);
16558
16564
  const b = f.sort((C, E) => C.index - E.index).map(async (C) => {
16559
- const { experienceOptions: E, options: P } = C, B = new jo(this, E);
16565
+ const { experienceOptions: E, options: P } = C, B = new Yo(this, E);
16560
16566
  return await B.getWorkflowManager().getInitializationPromise(), P.type !== "transaction" && this.customer && await B.attachCustomerDetails({ email: this.customer.emailAddress }), B;
16561
16567
  }), I = await Promise.all(b);
16562
16568
  return I.forEach((C) => C.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), I;
@@ -16628,7 +16634,7 @@ class vd {
16628
16634
  };
16629
16635
  }
16630
16636
  }
16631
- const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
16637
+ const Yl = async (n, t) => (await y.getShadowGraphqlClient().query({
16632
16638
  query: Wi,
16633
16639
  errorPolicy: "all",
16634
16640
  fetchPolicy: "no-cache",
@@ -16640,7 +16646,7 @@ const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
16640
16646
  variables: {
16641
16647
  themeConfigurationId: t
16642
16648
  }
16643
- })).data.currentIntegration, Ed = async (n) => {
16649
+ })).data.currentIntegration, bd = async (n) => {
16644
16650
  const e = await y.getShadowGraphqlClient().query({
16645
16651
  query: xi,
16646
16652
  errorPolicy: "all",
@@ -16651,27 +16657,27 @@ const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
16651
16657
  });
16652
16658
  if (e.data.transactions.length !== 0)
16653
16659
  return e.data.transactions[0];
16654
- }, bd = async (n, t) => (await y.getShadowGraphqlClient().query({
16660
+ }, Bd = async (n, t) => (await y.getShadowGraphqlClient().query({
16655
16661
  query: Gi,
16656
16662
  errorPolicy: "all",
16657
16663
  variables: {
16658
16664
  themeConfigurationId: n,
16659
16665
  themeInstallId: t
16660
16666
  }
16661
- })).data?.marketplaceThemeInstallConfiguration, Bd = async (n) => (await y.getShadowGraphqlClient().query({
16667
+ })).data?.marketplaceThemeInstallConfiguration, Id = async (n) => (await y.getShadowGraphqlClient().query({
16662
16668
  query: Hi,
16663
16669
  errorPolicy: "all",
16664
16670
  variables: {
16665
16671
  id: n
16666
16672
  }
16667
- })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Id = async (n) => (await y.getShadowGraphqlClient().query({
16673
+ })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Pd = async (n) => (await y.getShadowGraphqlClient().query({
16668
16674
  query: qi,
16669
16675
  errorPolicy: "all",
16670
16676
  variables: {
16671
16677
  id: n
16672
16678
  }
16673
16679
  })).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration;
16674
- function Yl(n, t, e, a) {
16680
+ function Jl(n, t, e, a) {
16675
16681
  const r = e.width * n.zoom, i = e.height * n.zoom;
16676
16682
  if (a) {
16677
16683
  const o = n, l = Math.max(t.width / e.width, t.height / e.height);
@@ -16685,7 +16691,7 @@ function Yl(n, t, e, a) {
16685
16691
  function ge(n, t, e) {
16686
16692
  return Math.min(Math.max(n, t), e);
16687
16693
  }
16688
- class Jl {
16694
+ class Kl {
16689
16695
  constructor(t, e) {
16690
16696
  this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = un(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16691
16697
  useThreshold: !1,
@@ -16828,7 +16834,7 @@ class Jl {
16828
16834
  return;
16829
16835
  }
16830
16836
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
16831
- this.offsets[o] = Yl(t[o], s, this.imageData, this.forceImageCover);
16837
+ this.offsets[o] = Jl(t[o], s, this.imageData, this.forceImageCover);
16832
16838
  }), this._debouncedUpdateFrameOffsets(
16833
16839
  this.offsets,
16834
16840
  r,
@@ -16906,7 +16912,7 @@ class Jl {
16906
16912
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
16907
16913
  }
16908
16914
  }
16909
- class Pd {
16915
+ class Dd {
16910
16916
  traversableScenes() {
16911
16917
  throw new Error("Method not implemented.");
16912
16918
  }
@@ -17071,12 +17077,12 @@ class Pd {
17071
17077
  return [];
17072
17078
  }
17073
17079
  }
17074
- var Kl = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(Kl || {});
17075
- class _l extends Z {
17080
+ var _l = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(_l || {});
17081
+ class Xl extends Z {
17076
17082
  constructor(t, e, a) {
17077
17083
  super(t, e, a);
17078
17084
  const r = e.data;
17079
- this.frameService = new Jl(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17085
+ this.frameService = new Kl(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17080
17086
  }
17081
17087
  selectVariant(t) {
17082
17088
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -17236,7 +17242,7 @@ class _l extends Z {
17236
17242
  return this.manager.getStepStorage(this.step.stepName);
17237
17243
  }
17238
17244
  }
17239
- const Xl = w`
17245
+ const Zl = w`
17240
17246
  query GetLoggedInCustomer($email: String!) {
17241
17247
  customer(emailAddress: $email) {
17242
17248
  id
@@ -17279,21 +17285,21 @@ const Xl = w`
17279
17285
  total
17280
17286
  }
17281
17287
  }
17282
- `, Zl = w`
17288
+ `, tc = w`
17283
17289
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17284
17290
  transactionUpdate(id: $id, designName: $name) {
17285
17291
  id
17286
17292
  designName
17287
17293
  }
17288
17294
  }
17289
- `, tc = w`
17295
+ `, ec = w`
17290
17296
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17291
17297
  transactionDuplicate(id: $id, template: $template) {
17292
17298
  id
17293
17299
  workflowViewerLink
17294
17300
  }
17295
17301
  }
17296
- `, ec = w`
17302
+ `, ac = w`
17297
17303
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17298
17304
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17299
17305
  items {
@@ -17308,7 +17314,7 @@ const Xl = w`
17308
17314
  total
17309
17315
  }
17310
17316
  }
17311
- `, ac = w`
17317
+ `, nc = w`
17312
17318
  query GetTransactionsForBundle($id: String!) {
17313
17319
  bundles(ids: [$id]) {
17314
17320
  id
@@ -17329,21 +17335,21 @@ const Xl = w`
17329
17335
  }
17330
17336
  }
17331
17337
  }
17332
- `, nc = w`
17338
+ `, rc = w`
17333
17339
  mutation SetBundleName($id: String!, $name: String!) {
17334
17340
  bundleUpdate(id: $id, name: $name) {
17335
17341
  id
17336
17342
  name
17337
17343
  }
17338
17344
  }
17339
- `, rc = w`
17345
+ `, ic = w`
17340
17346
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17341
17347
  bundleDuplicate(id: $id, template: $template) {
17342
17348
  id
17343
17349
  workflowViewerLink
17344
17350
  }
17345
17351
  }
17346
- `, ic = w`
17352
+ `, sc = w`
17347
17353
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17348
17354
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17349
17355
  items {
@@ -17356,43 +17362,43 @@ const Xl = w`
17356
17362
  total
17357
17363
  }
17358
17364
  }
17359
- `, Dd = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
17360
- mutation: nc,
17365
+ `, Fd = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
17366
+ mutation: rc,
17361
17367
  errorPolicy: "all",
17362
17368
  variables: {
17363
17369
  id: n,
17364
17370
  name: t
17365
17371
  },
17366
17372
  context: e
17367
- }), Fd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17368
- mutation: Zl,
17373
+ }), xd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17374
+ mutation: tc,
17369
17375
  errorPolicy: "all",
17370
17376
  variables: {
17371
17377
  id: n,
17372
17378
  name: t
17373
17379
  }
17374
- }), xd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17375
- mutation: rc,
17380
+ }), kd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17381
+ mutation: ic,
17376
17382
  errorPolicy: "all",
17377
17383
  variables: {
17378
17384
  id: n,
17379
17385
  template: t
17380
17386
  }
17381
- }), kd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17382
- mutation: tc,
17387
+ }), Md = async (n, t) => await y.getShadowGraphqlClient().mutate({
17388
+ mutation: ec,
17383
17389
  errorPolicy: "all",
17384
17390
  variables: {
17385
17391
  id: n,
17386
17392
  template: t
17387
17393
  }
17388
- }), Md = async (n) => (await y.getShadowGraphqlClient().query({
17389
- query: Xl,
17394
+ }), Td = async (n) => (await y.getShadowGraphqlClient().query({
17395
+ query: Zl,
17390
17396
  errorPolicy: "all",
17391
17397
  variables: {
17392
17398
  email: n
17393
17399
  }
17394
- })).data.customer, Td = async (n, t, e) => await y.getShadowGraphqlClient().query({
17395
- query: ec,
17400
+ })).data.customer, Nd = async (n, t, e) => await y.getShadowGraphqlClient().query({
17401
+ query: ac,
17396
17402
  errorPolicy: "all",
17397
17403
  fetchPolicy: "no-cache",
17398
17404
  variables: {
@@ -17400,15 +17406,15 @@ const Xl = w`
17400
17406
  offset: e,
17401
17407
  limit: t
17402
17408
  }
17403
- }), Nd = async (n, t) => await y.getShadowGraphqlClient().query({
17404
- query: ac,
17409
+ }), Qd = async (n, t) => await y.getShadowGraphqlClient().query({
17410
+ query: nc,
17405
17411
  errorPolicy: "all",
17406
17412
  fetchPolicy: "no-cache",
17407
17413
  variables: {
17408
17414
  id: n
17409
17415
  },
17410
17416
  context: t
17411
- }), Qd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17417
+ }), Rd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17412
17418
  query: xa,
17413
17419
  errorPolicy: "all",
17414
17420
  fetchPolicy: "no-cache",
@@ -17428,7 +17434,7 @@ const Xl = w`
17428
17434
  offset: e,
17429
17435
  limit: t
17430
17436
  }
17431
- }))?.data.customerTransactionsFeed?.items || [], Rd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17437
+ }))?.data.customerTransactionsFeed?.items || [], Od = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17432
17438
  query: xa,
17433
17439
  errorPolicy: "all",
17434
17440
  fetchPolicy: "no-cache",
@@ -17448,7 +17454,7 @@ const Xl = w`
17448
17454
  offset: e,
17449
17455
  limit: t
17450
17456
  }
17451
- }))?.data.customerTransactionsFeed?.items || [], Od = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17457
+ }))?.data.customerTransactionsFeed?.items || [], $d = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17452
17458
  query: xa,
17453
17459
  errorPolicy: "all",
17454
17460
  fetchPolicy: "no-cache",
@@ -17464,8 +17470,8 @@ const Xl = w`
17464
17470
  offset: e,
17465
17471
  limit: t
17466
17472
  }
17467
- }))?.data.customerTransactionsFeed?.items || [], $d = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17468
- query: ic,
17473
+ }))?.data.customerTransactionsFeed?.items || [], Ud = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17474
+ query: sc,
17469
17475
  errorPolicy: "all",
17470
17476
  fetchPolicy: "no-cache",
17471
17477
  variables: {
@@ -17484,7 +17490,7 @@ const Xl = w`
17484
17490
  console.error("vite-plugin-css-injected-by-js", t);
17485
17491
  }
17486
17492
  })();
17487
- var sc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(sc || {}), we = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(we || {}), K;
17493
+ var oc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(oc || {}), we = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(we || {}), K;
17488
17494
  K = { __e: function(n, t, e, a) {
17489
17495
  for (var r, i, s; t = t.__; )
17490
17496
  if ((r = t.__c) && !r.__)
@@ -17497,7 +17503,7 @@ K = { __e: function(n, t, e, a) {
17497
17503
  throw n;
17498
17504
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17499
17505
  var st, ta, an, lr = [], ea = [], nn = K.__b, rn = K.__r, sn = K.diffed, on = K.__c, ln = K.unmount;
17500
- function oc() {
17506
+ function lc() {
17501
17507
  for (var n; n = lr.shift(); )
17502
17508
  if (n.__P && n.__H)
17503
17509
  try {
@@ -17517,7 +17523,7 @@ K.__b = function(n) {
17517
17523
  }, K.diffed = function(n) {
17518
17524
  sn && sn(n);
17519
17525
  var t = n.__c;
17520
- t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) || lc)(oc)), t.__H.__.forEach(function(e) {
17526
+ t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) || cc)(lc)), t.__H.__.forEach(function(e) {
17521
17527
  e.i && (e.__H = e.i), e.__V !== ea && (e.__ = e.__V), e.i = void 0, e.__V = ea;
17522
17528
  })), ta = st = null;
17523
17529
  }, K.__c = function(n, t) {
@@ -17544,7 +17550,7 @@ K.__b = function(n) {
17544
17550
  }), e.__H = void 0, t && K.__e(t, e.__v));
17545
17551
  };
17546
17552
  var cn = typeof requestAnimationFrame == "function";
17547
- function lc(n) {
17553
+ function cc(n) {
17548
17554
  var t, e = function() {
17549
17555
  clearTimeout(a), cn && cancelAnimationFrame(t), setTimeout(n);
17550
17556
  }, a = setTimeout(e, 100);
@@ -17592,14 +17598,14 @@ const cr = w`
17592
17598
  ...AddressValidationResultFields
17593
17599
  }
17594
17600
  }
17595
- `, cc = w`
17601
+ `, dc = w`
17596
17602
  ${ka}
17597
17603
  query GetAddressValidationJobs($ids: [String!]!) {
17598
17604
  addressValidationJobs(ids: $ids) {
17599
17605
  ...AddressValidationJobFields
17600
17606
  }
17601
17607
  }
17602
- `, dc = w`
17608
+ `, Ac = w`
17603
17609
  ${ka}
17604
17610
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17605
17611
  recipients(ids: $ids) {
@@ -17609,31 +17615,31 @@ const cr = w`
17609
17615
  }
17610
17616
  }
17611
17617
  }
17612
- `, Ac = w`
17618
+ `, uc = w`
17613
17619
  ${cr}
17614
17620
  mutation ValidateRecipientAddress($id: String!) {
17615
17621
  recipientValidate(id: $id) {
17616
17622
  ...AddressValidationResultFields
17617
17623
  }
17618
17624
  }
17619
- `, uc = w`
17625
+ `, hc = w`
17620
17626
  ${ka}
17621
17627
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17622
17628
  recipientValidateBatch(ids: $ids) {
17623
17629
  ...AddressValidationJobFields
17624
17630
  }
17625
17631
  }
17626
- `, hc = w`
17632
+ `, mc = w`
17627
17633
  mutation OverrideRecipientAddress($id: String!) {
17628
17634
  recipientOverrideAddress(id: $id) {
17629
17635
  id
17630
17636
  }
17631
17637
  }
17632
17638
  `;
17633
- var mc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(mc || {}), gc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(gc || {});
17634
- const Ud = async (n) => {
17639
+ var gc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(gc || {}), pc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(pc || {});
17640
+ const Ld = async (n) => {
17635
17641
  const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().query({
17636
- query: dc,
17642
+ query: Ac,
17637
17643
  errorPolicy: "all",
17638
17644
  fetchPolicy: "network-only",
17639
17645
  variables: {
@@ -17645,23 +17651,23 @@ const Ud = async (n) => {
17645
17651
  if (r)
17646
17652
  return e.data?.recipients?.find((i) => i.id === r)?.addressValidationJob;
17647
17653
  });
17648
- }, Ld = async (n) => (await y.getShadowGraphqlClient().query({
17649
- query: cc,
17654
+ }, Vd = async (n) => (await y.getShadowGraphqlClient().query({
17655
+ query: dc,
17650
17656
  errorPolicy: "all",
17651
17657
  fetchPolicy: "network-only",
17652
17658
  variables: {
17653
17659
  ids: n
17654
17660
  }
17655
- })).data?.addressValidationJobs, Vd = async (n) => n.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17656
- mutation: Ac,
17661
+ })).data?.addressValidationJobs, zd = async (n) => n.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17662
+ mutation: uc,
17657
17663
  errorPolicy: "all",
17658
17664
  fetchPolicy: "network-only",
17659
17665
  variables: {
17660
17666
  id: n.getWorkflowManager().getTransaction().recipient.id
17661
17667
  }
17662
- })).data?.recipientValidate : void 0, zd = async (n) => {
17668
+ })).data?.recipientValidate : void 0, Gd = async (n) => {
17663
17669
  const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().mutate({
17664
- mutation: uc,
17670
+ mutation: hc,
17665
17671
  errorPolicy: "all",
17666
17672
  fetchPolicy: "network-only",
17667
17673
  variables: {
@@ -17673,12 +17679,12 @@ const Ud = async (n) => {
17673
17679
  if (r)
17674
17680
  return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
17675
17681
  });
17676
- }, Gd = async (n) => {
17682
+ }, Wd = async (n) => {
17677
17683
  const t = n.getWorkflowManager().getTransaction().recipient?.id;
17678
17684
  if (!t)
17679
17685
  return;
17680
17686
  (await y.getShadowGraphqlClient().mutate({
17681
- mutation: hc,
17687
+ mutation: mc,
17682
17688
  errorPolicy: "all",
17683
17689
  fetchPolicy: "network-only",
17684
17690
  variables: {
@@ -17688,170 +17694,170 @@ const Ud = async (n) => {
17688
17694
  };
17689
17695
  export {
17690
17696
  ga as AddonHandle,
17691
- gc as AddressValidationJobStatus,
17692
- mc as AddressValidationResultConfirmationLevel,
17697
+ pc as AddressValidationJobStatus,
17698
+ gc as AddressValidationResultConfirmationLevel,
17693
17699
  hn as AddressValidationStatus,
17694
- yd as ArrayInput,
17700
+ Sd as ArrayInput,
17695
17701
  U as AspectType,
17696
17702
  bt as AssetNotFoundError,
17697
17703
  ve as AssetType,
17698
- hd as BringForwardCommand,
17699
- ud as BringToBackCommand,
17700
- Ad as BringToFrontCommand,
17704
+ md as BringForwardCommand,
17705
+ hd as BringToBackCommand,
17706
+ ud as BringToFrontCommand,
17701
17707
  Dr as BundleDesignCreationCartAddMode,
17702
17708
  N as CanvasCommand,
17703
17709
  ue as CollectionProduct,
17704
17710
  Za as ColorOptionGlobalPropertyHandle,
17705
17711
  ms as CommandContext,
17706
17712
  we as ConversionDataType,
17707
- sc as ConversionLocation,
17713
+ oc as ConversionLocation,
17708
17714
  z as CreateElementCommand,
17709
17715
  qn as CreateLayoutCommand,
17710
- zl as CurrencyContext,
17711
- Vl as CurrencyService,
17716
+ Gl as CurrencyContext,
17717
+ zl as CurrencyService,
17712
17718
  Bt as DeleteElementCommand,
17713
- To as DigitalContentStepHandle,
17714
- hl as FileUploadGlobalPropertyHandle,
17719
+ No as DigitalContentStepHandle,
17720
+ ml as FileUploadGlobalPropertyHandle,
17715
17721
  he as FlowExecutionNodeResult,
17716
- Nl as FlowExecutionResult,
17717
- Tl as FlowService,
17722
+ Ql as FlowExecutionResult,
17723
+ Nl as FlowService,
17718
17724
  Cs as FontAlignmentCommand,
17719
17725
  ps as FontColorCommand,
17720
17726
  fs as FontSizeCommand,
17721
17727
  ja as FontSourceCommand,
17722
- Jl as FrameService,
17723
- Kl as FrameStep,
17724
- _l as FrameStepHandle,
17728
+ Kl as FrameService,
17729
+ _l as FrameStep,
17730
+ Xl as FrameStepHandle,
17725
17731
  Da as GlobalPropertyHandle,
17726
17732
  R as GroupCommand,
17727
- Bo as IllustrationStepHandle,
17733
+ Io as IllustrationStepHandle,
17728
17734
  Le as InformationMessageType,
17729
- Mo as InformationStepHandle,
17735
+ To as InformationStepHandle,
17730
17736
  tn as IntegrationProduct,
17731
17737
  xr as IntegrationType,
17732
- sd as LayoutElementFactory,
17738
+ od as LayoutElementFactory,
17733
17739
  x as LayoutElementType,
17734
17740
  Y as LayoutNotFoundError,
17735
17741
  jt as LayoutRenderingPurpose,
17736
- Io as MaterialStepHandle,
17742
+ Po as MaterialStepHandle,
17737
17743
  Be as MisconfigurationError,
17738
- Pd as MockWorkflowManager,
17739
- Po as ModelStepHandle,
17740
- No as ModuleStepHandle,
17741
- od as MoveCommand,
17744
+ Dd as MockWorkflowManager,
17745
+ Do as ModelStepHandle,
17746
+ Qo as ModuleStepHandle,
17747
+ ld as MoveCommand,
17742
17748
  sr as ObjectInput,
17743
- Ql as ObjectInputType,
17749
+ Rl as ObjectInputType,
17744
17750
  nr as OptionGlobalPropertyHandle,
17745
17751
  be as OptionNotFoundError,
17746
17752
  Dt as ParseError,
17747
- Do as PictureStepHandle,
17753
+ Fo as PictureStepHandle,
17748
17754
  kr as ProductCameraRig,
17749
17755
  ir as ProductCollection,
17750
- bl as ProductCollectionProductSortKey,
17756
+ Bl as ProductCollectionProductSortKey,
17751
17757
  qt as ProductWorkflow,
17752
17758
  Kt as PromiseCache,
17753
17759
  Tn as PromiseQueue,
17754
- Fo as QuestionStepHandle,
17760
+ xo as QuestionStepHandle,
17755
17761
  Mn as QueueablePromise,
17756
- cd as ResizeCommand,
17762
+ dd as ResizeCommand,
17757
17763
  Yt as ResourceNotFoundError,
17758
- ld as RotateCommand,
17764
+ cd as RotateCommand,
17759
17765
  H as ScaleAxis,
17760
- md as SendBackwardsCommand,
17761
- xo as ShapeStepHandle,
17766
+ gd as SendBackwardsCommand,
17767
+ ko as ShapeStepHandle,
17762
17768
  Fr as ShareActionType,
17763
- vd as SpiffCommerceClient,
17769
+ Ed as SpiffCommerceClient,
17764
17770
  Ee as StakeholderType,
17765
17771
  Pr as StepAspectType,
17766
17772
  Z as StepHandle,
17767
17773
  v as StepType,
17768
17774
  Mt as TextAlgorithm,
17769
17775
  Ss as TextChangeCommand,
17770
- ml as TextGlobalPropertyHandle,
17771
- wd as TextInput,
17772
- ko as TextStepHandle,
17773
- Il as Transform,
17774
- Bl as TransformCollection,
17776
+ gl as TextGlobalPropertyHandle,
17777
+ yd as TextInput,
17778
+ Mo as TextStepHandle,
17779
+ Pl as Transform,
17780
+ Il as TransformCollection,
17775
17781
  V as UnhandledBehaviorError,
17776
17782
  Mr as UnitOfMeasurement,
17777
- dd as UpdateImageSourceCommand,
17783
+ Ad as UpdateImageSourceCommand,
17778
17784
  it as Variant,
17779
- Ho as WorkflowExperienceEventType,
17780
- jo as WorkflowExperienceImpl,
17785
+ jo as WorkflowExperienceEventType,
17786
+ Yo as WorkflowExperienceImpl,
17781
17787
  O as assetService,
17782
17788
  ri as browserColorToHex,
17783
- rd as cmPerPixel,
17784
- Lo as createDesign,
17785
- ed as currentDirection,
17786
- Gc as dataUrlFromExternalUrl,
17789
+ id as cmPerPixel,
17790
+ Vo as createDesign,
17791
+ ad as currentDirection,
17792
+ Wc as dataUrlFromExternalUrl,
17787
17793
  Xe as designService,
17788
17794
  Ce as determineCorrectFontSizeAndLines,
17789
17795
  jn as digitalContentStepService,
17790
17796
  dt as domParser,
17791
- xd as duplicateBundle,
17792
- kd as duplicateTransaction,
17797
+ kd as duplicateBundle,
17798
+ Md as duplicateTransaction,
17793
17799
  nt as fetchAsString,
17794
- Yc as findAngle,
17800
+ Jc as findAngle,
17795
17801
  $ as findElement,
17796
- Hc as findPmsColors,
17802
+ jc as findPmsColors,
17797
17803
  Vt as frameDataCache,
17798
17804
  St as frameStepService,
17799
17805
  M as generate,
17800
- sl as generateCommands,
17806
+ ol as generateCommands,
17801
17807
  ot as generateSVGWithUnknownColors,
17802
- fd as generateStateFromDesignInputSteps,
17803
- Ld as getAddressValidationJobs,
17808
+ Cd as generateStateFromDesignInputSteps,
17809
+ Vd as getAddressValidationJobs,
17804
17810
  Re as getAttributesFromArrayBuffer,
17805
- jc as getAxisAlignedBoundingBox,
17806
- Yl as getBoundedOffsets,
17807
- Bd as getBundleThemeConfiguration,
17808
- Md as getCustomer,
17809
- Td as getCustomerBundles,
17810
- ad as getElementVertices,
17811
+ Yc as getAxisAlignedBoundingBox,
17812
+ Jl as getBoundedOffsets,
17813
+ Id as getBundleThemeConfiguration,
17814
+ Td as getCustomer,
17815
+ Nd as getCustomerBundles,
17816
+ nd as getElementVertices,
17811
17817
  Ue as getFrameData,
17812
- gd as getGlobalPropertyStateForBundle,
17813
- jl as getIntegration,
17814
- Zc as getNEPoint,
17815
- Xc as getNWPoint,
17816
- Rd as getOrderedTransactions,
17817
- bd as getOverrideThemeConfiguration,
17818
- _c as getPointOfRotation,
17819
- Cd as getProductCollections,
17820
- td as getSEPoint,
17818
+ pd as getGlobalPropertyStateForBundle,
17819
+ Yl as getIntegration,
17820
+ td as getNEPoint,
17821
+ Zc as getNWPoint,
17822
+ Od as getOrderedTransactions,
17823
+ Bd as getOverrideThemeConfiguration,
17824
+ Xc as getPointOfRotation,
17825
+ wd as getProductCollections,
17826
+ ed as getSEPoint,
17821
17827
  Ea as getSvgElement,
17822
- $d as getTemplateBundles,
17823
- Od as getTemplateTransactions,
17824
- Ed as getTransaction,
17825
- Id as getTransactionThemeConfiguration,
17826
- Nd as getTransactionsForBundle,
17827
- Kc as getTrueCoordinates,
17828
- Qd as getUnorderedTransactions,
17829
- Ud as getValidationJobsForWorkflowExperiences,
17830
- Sd as getWorkflow,
17828
+ Ud as getTemplateBundles,
17829
+ $d as getTemplateTransactions,
17830
+ bd as getTransaction,
17831
+ Pd as getTransactionThemeConfiguration,
17832
+ Qd as getTransactionsForBundle,
17833
+ _c as getTrueCoordinates,
17834
+ Rd as getUnorderedTransactions,
17835
+ Ld as getValidationJobsForWorkflowExperiences,
17836
+ vd as getWorkflow,
17831
17837
  or as getWorkflows,
17832
17838
  y as graphQlManager,
17833
17839
  fe as illustrationStepService,
17834
- Jc as isCloseToValue,
17840
+ Kc as isCloseToValue,
17835
17841
  Nt as loadFont,
17836
- qc as matchHexToPms,
17842
+ Hc as matchHexToPms,
17837
17843
  Yn as materialStepService,
17838
- El as metafieldManager,
17839
- nd as mmPerPixel,
17844
+ bl as metafieldManager,
17845
+ rd as mmPerPixel,
17840
17846
  Jn as modelStepService,
17841
17847
  Sa as modifySVGColors,
17842
17848
  Kn as moduleStepService,
17843
- Dd as nameBundle,
17844
- Fd as nameTransaction,
17849
+ Fd as nameBundle,
17850
+ xd as nameTransaction,
17845
17851
  j as optionService,
17846
- id as outlineFontsInSvg,
17847
- Gd as overrideWorkflowExperienceRecipientAddress,
17852
+ sd as outlineFontsInSvg,
17853
+ Wd as overrideWorkflowExperienceRecipientAddress,
17848
17854
  ut as patternImageDataCache,
17849
17855
  k as persistenceService,
17850
17856
  _n as pictureStepService,
17851
- Wc as pmsToRgb,
17857
+ qc as pmsToRgb,
17852
17858
  Xn as questionStepService,
17853
- zc as registerFetchImplementation,
17854
- Vc as registerWindowImplementation,
17859
+ Gc as registerFetchImplementation,
17860
+ zc as registerWindowImplementation,
17855
17861
  qa as rehydrateSerializedLayout,
17856
17862
  ei as rgbToPms,
17857
17863
  ce as rotateAroundPoint,
@@ -17861,14 +17867,14 @@ export {
17861
17867
  zt as shapeStepService,
17862
17868
  Es as shortenUrl,
17863
17869
  gt as spiffCoreConfiguration,
17864
- pd as stepAspectValuesToDesignInputSteps,
17870
+ fd as stepAspectValuesToDesignInputSteps,
17865
17871
  La as svgColorValueToDefinition,
17866
17872
  Gn as svgStringDimensions,
17867
17873
  pa as svgToDataUrl,
17868
17874
  G as textStepService,
17869
17875
  Ts as toast,
17870
- Vd as validateWorkflowExperienceRecipient,
17871
- zd as validateWorkflowExperienceRecipients,
17876
+ zd as validateWorkflowExperienceRecipient,
17877
+ Gd as validateWorkflowExperienceRecipients,
17872
17878
  It as xmlSerializer
17873
17879
  };
17874
17880
  //# sourceMappingURL=index.mjs.map