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