@spiffcommerce/core 32.2.7-beta.25f931c6-ae18-5ac4-a721-e801a472f301 → 32.2.7-beta.8bae3361-3242-5b7e-a75c-ed03cdc03b9c

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 zc(n) {
166
+ function Vc(n) {
167
167
  ra = n;
168
168
  }
169
- function Gc(n) {
169
+ function zc(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
- }, Wc = async (n) => {
260
+ }, Gc = 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) => {
@@ -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 qc(n) {
3158
+ function Wc(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 Hc(n, t = 64) {
3166
+ function qc(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 Hc(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 jc(n, t) {
3185
+ function Hc(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
- }, Yc = (n, t, e, a, r) => {
5430
+ }, jc = (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
- }, Jc = (n, t, e) => {
5438
+ }, Yc = (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), Kc = (n, t, e) => Math.abs(n - t) < e, _c = (n, t, e) => {
5441
+ }, ft = (n) => n * (Math.PI / 180), Jc = (n, t, e) => Math.abs(n - t) < e, Kc = (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
- }, Xc = (n, t) => ({
5447
+ }, _c = (n, t) => ({
5448
5448
  x: (n.x + t.x) / 2,
5449
5449
  y: (n.y + t.y) / 2
5450
- }), Zc = (n, t, e, a) => ({
5450
+ }), Xc = (n, t, e, a) => ({
5451
5451
  x: n.x + t?.x * e,
5452
5452
  y: n.y + t?.y * a
5453
- }), td = (n, t, e, a) => ({
5453
+ }), Zc = (n, t, e, a) => ({
5454
5454
  x: n.x + (t?.x + t?.width) * e,
5455
5455
  y: n.y + t?.y * a
5456
- }), ed = (n, t, e, a) => ({
5456
+ }), td = (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
- }, 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 }) => {
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 }) => {
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
- }, rd = 0.352778, id = 0.035277, Nn = (n) => {
5508
+ }, nd = 0.352778, rd = 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
- }, sd = async (n) => {
5730
+ }, id = 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 od {
6383
+ class sd {
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 ld extends N {
6626
+ class od 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 ld extends N {
6646
6646
  };
6647
6647
  }
6648
6648
  }
6649
- class cd extends N {
6649
+ class ld extends N {
6650
6650
  constructor(t, e) {
6651
6651
  super(), this.id = t, this.angle = e;
6652
6652
  }
@@ -6668,7 +6668,7 @@ class cd extends N {
6668
6668
  };
6669
6669
  }
6670
6670
  }
6671
- class dd extends N {
6671
+ class cd 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 Ad extends N {
6982
+ class dd 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 ud extends N {
7101
+ class Ad extends N {
7102
7102
  /**
7103
7103
  * @param id The targeted element to bring to the front.
7104
7104
  */
@@ -7127,7 +7127,7 @@ class ud extends N {
7127
7127
  };
7128
7128
  }
7129
7129
  }
7130
- class hd extends N {
7130
+ class ud extends N {
7131
7131
  /**
7132
7132
  * @param id The targeted element to bring to the back.
7133
7133
  */
@@ -7158,7 +7158,7 @@ class hd extends N {
7158
7158
  };
7159
7159
  }
7160
7160
  }
7161
- class md extends N {
7161
+ class hd extends N {
7162
7162
  /**
7163
7163
  * @param id The targeted element to bring to the front.
7164
7164
  */
@@ -7185,7 +7185,7 @@ class md extends N {
7185
7185
  };
7186
7186
  }
7187
7187
  }
7188
- class gd extends N {
7188
+ class md 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
- `, pd = async (n) => (await y.getShadowGraphqlClient().query({
9566
+ `, gd = async (n) => (await y.getShadowGraphqlClient().query({
9567
9567
  query: js,
9568
9568
  fetchPolicy: "cache-first",
9569
9569
  errorPolicy: "all",
@@ -10227,13 +10227,14 @@ const re = w`
10227
10227
  id
10228
10228
  }
10229
10229
  }
10230
- `, Eo = w`
10230
+ `;
10231
+ w`
10231
10232
  mutation DeleteBundle($id: String!) {
10232
10233
  bundleDelete(id: $id)
10233
10234
  }
10234
10235
  `;
10235
10236
  var Le = /* @__PURE__ */ ((n) => (n.Error = "Error", n.Warning = "Warning", n.Info = "Info", n))(Le || {});
10236
- const bo = 1e3;
10237
+ const Eo = 1e3;
10237
10238
  class _a extends Mn {
10238
10239
  constructor(t) {
10239
10240
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
@@ -10242,11 +10243,11 @@ class _a extends Mn {
10242
10243
  await this.update(), await new Promise((t) => {
10243
10244
  window.setTimeout(() => {
10244
10245
  t();
10245
- }, bo);
10246
+ }, Eo);
10246
10247
  });
10247
10248
  }
10248
10249
  }
10249
- class Bo {
10250
+ class bo {
10250
10251
  constructor(t, e, a, r, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, S = !1) {
10251
10252
  this.workflowStatePromiseQueue = new Tn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10252
10253
  if (!this.previewService) return;
@@ -11212,7 +11213,7 @@ const Ht = class Ht {
11212
11213
  };
11213
11214
  Ht.updateState = /* @__PURE__ */ new Map();
11214
11215
  let Z = Ht;
11215
- class Io extends Z {
11216
+ class Bo extends Z {
11216
11217
  constructor(t, e, a) {
11217
11218
  super(t, e, a);
11218
11219
  }
@@ -11286,7 +11287,7 @@ class Io extends Z {
11286
11287
  return this.step.data.pmsPickerEnabled ?? !1;
11287
11288
  }
11288
11289
  }
11289
- class Po extends Z {
11290
+ class Io extends Z {
11290
11291
  constructor(t, e, a) {
11291
11292
  super(t, e, a);
11292
11293
  }
@@ -11299,7 +11300,7 @@ class Po extends Z {
11299
11300
  );
11300
11301
  }
11301
11302
  }
11302
- class Do extends Z {
11303
+ class Po extends Z {
11303
11304
  constructor(t, e, a) {
11304
11305
  super(t, e, a);
11305
11306
  }
@@ -11312,7 +11313,7 @@ class Do extends Z {
11312
11313
  );
11313
11314
  }
11314
11315
  }
11315
- class Fo extends Z {
11316
+ class Do extends Z {
11316
11317
  constructor(t, e, a) {
11317
11318
  super(t, e, a);
11318
11319
  }
@@ -11330,7 +11331,7 @@ class Fo extends Z {
11330
11331
  );
11331
11332
  }
11332
11333
  }
11333
- class xo extends Z {
11334
+ class Fo extends Z {
11334
11335
  constructor(t, e, a) {
11335
11336
  super(t, e, a);
11336
11337
  }
@@ -11346,7 +11347,7 @@ class xo extends Z {
11346
11347
  return this.step.data.displayType || this.step.option?.displayType;
11347
11348
  }
11348
11349
  }
11349
- class ko extends Z {
11350
+ class xo extends Z {
11350
11351
  constructor(t, e, a) {
11351
11352
  super(t, e, a);
11352
11353
  }
@@ -11405,7 +11406,7 @@ class ko extends Z {
11405
11406
  return t;
11406
11407
  }
11407
11408
  }
11408
- class Mo extends Z {
11409
+ class ko extends Z {
11409
11410
  constructor(t, e, a) {
11410
11411
  super(t, e, a);
11411
11412
  }
@@ -11598,7 +11599,7 @@ class Mo extends Z {
11598
11599
  await G.changeStrokeColor(this.step, t, e, this.manager);
11599
11600
  }
11600
11601
  }
11601
- class To extends Z {
11602
+ class Mo extends Z {
11602
11603
  constructor(t, e, a) {
11603
11604
  super(t, e, a);
11604
11605
  }
@@ -11611,7 +11612,7 @@ class To extends Z {
11611
11612
  return this.step.data.content;
11612
11613
  }
11613
11614
  }
11614
- class No extends Z {
11615
+ class To extends Z {
11615
11616
  constructor(t, e, a) {
11616
11617
  super(t, e, a);
11617
11618
  }
@@ -11637,7 +11638,7 @@ class No extends Z {
11637
11638
  );
11638
11639
  }
11639
11640
  }
11640
- class Qo extends Z {
11641
+ class No extends Z {
11641
11642
  constructor(t, e, a) {
11642
11643
  super(t, e, a);
11643
11644
  }
@@ -11688,27 +11689,27 @@ class de {
11688
11689
  static get(t, e) {
11689
11690
  switch (e.type) {
11690
11691
  case v.DigitalContent:
11691
- return new No(t, e, t.getStepTags(e.stepName));
11692
- case v.Information:
11693
11692
  return new To(t, e, t.getStepTags(e.stepName));
11693
+ case v.Information:
11694
+ return new Mo(t, e, t.getStepTags(e.stepName));
11694
11695
  case v.Question:
11695
- return new xo(t, e, t.getStepTags(e.stepName));
11696
+ return new Fo(t, e, t.getStepTags(e.stepName));
11696
11697
  case v.Text:
11697
- return new Mo(t, e, t.getStepTags(e.stepName));
11698
+ return new ko(t, e, t.getStepTags(e.stepName));
11698
11699
  case v.Illustration:
11699
- return new Io(t, e, t.getStepTags(e.stepName));
11700
+ return new Bo(t, e, t.getStepTags(e.stepName));
11700
11701
  case v.Picture:
11701
- return new Fo(t, e, t.getStepTags(e.stepName));
11702
+ return new Do(t, e, t.getStepTags(e.stepName));
11702
11703
  case v.Shape:
11703
- return new ko(t, e, t.getStepTags(e.stepName));
11704
+ return new xo(t, e, t.getStepTags(e.stepName));
11704
11705
  case v.Material:
11705
- return new Po(t, e, t.getStepTags(e.stepName));
11706
+ return new Io(t, e, t.getStepTags(e.stepName));
11706
11707
  case v.Model:
11707
- return new Do(t, e, t.getStepTags(e.stepName));
11708
+ return new Po(t, e, t.getStepTags(e.stepName));
11708
11709
  case v.Frame:
11709
- return new Xl(t, e, t.getStepTags(e.stepName));
11710
+ return new _l(t, e, t.getStepTags(e.stepName));
11710
11711
  case v.Module:
11711
- return new Qo(t, e, t.getStepTags(e.stepName));
11712
+ return new No(t, e, t.getStepTags(e.stepName));
11712
11713
  default:
11713
11714
  throw new V(`Step type ${e.type} not yet supported in Core SDK`);
11714
11715
  }
@@ -11739,7 +11740,7 @@ const tr = w`
11739
11740
  externalProductVariantId
11740
11741
  }
11741
11742
  }
11742
- `, Ro = w`
11743
+ `, Qo = w`
11743
11744
  ${tr}
11744
11745
  mutation CreateDesign(
11745
11746
  $name: String!
@@ -11771,7 +11772,7 @@ const tr = w`
11771
11772
  }
11772
11773
  }
11773
11774
  }
11774
- `, Oo = w`
11775
+ `, Ro = w`
11775
11776
  ${tr}
11776
11777
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11777
11778
  designCreateMany(inputs: $inputs) {
@@ -11790,7 +11791,7 @@ function Wt(n) {
11790
11791
  const t = JSON.parse(atob(n.split(".")[1])).exp;
11791
11792
  return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
11792
11793
  }
11793
- const $o = async (n, t) => {
11794
+ const Oo = async (n, t) => {
11794
11795
  const e = {};
11795
11796
  try {
11796
11797
  if (!t) throw new Error();
@@ -11799,7 +11800,7 @@ const $o = async (n, t) => {
11799
11800
  o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
11800
11801
  }
11801
11802
  return (await y.getShadowGraphqlClient().mutate({
11802
- mutation: Ro,
11803
+ mutation: Qo,
11803
11804
  errorPolicy: "all",
11804
11805
  fetchPolicy: "no-cache",
11805
11806
  variables: {
@@ -11816,7 +11817,7 @@ const $o = async (n, t) => {
11816
11817
  headers: e
11817
11818
  }
11818
11819
  })).data?.designCreate;
11819
- }, Uo = async (n, t) => {
11820
+ }, $o = async (n, t) => {
11820
11821
  const e = {};
11821
11822
  try {
11822
11823
  if (!t) throw new Error();
@@ -11825,7 +11826,7 @@ const $o = async (n, t) => {
11825
11826
  o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
11826
11827
  }
11827
11828
  return (await y.getShadowGraphqlClient().mutate({
11828
- mutation: Oo,
11829
+ mutation: Ro,
11829
11830
  errorPolicy: "all",
11830
11831
  fetchPolicy: "no-cache",
11831
11832
  variables: {
@@ -11880,7 +11881,7 @@ const $o = async (n, t) => {
11880
11881
  return t.steps.forEach((i) => {
11881
11882
  Object.assign(r, a(i));
11882
11883
  }), r;
11883
- }, Lo = (n, t, e, a) => {
11884
+ }, Uo = (n, t, e, a) => {
11884
11885
  const r = {};
11885
11886
  let i = {};
11886
11887
  a && (i = a);
@@ -11901,7 +11902,7 @@ const $o = async (n, t) => {
11901
11902
  }
11902
11903
  return r;
11903
11904
  }, er = (n, t, e, a, r, i, s, o) => {
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 = {
11905
+ 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 = {
11905
11906
  additionalExternalProductId: n.integrationProduct?.additionalExternalProductId,
11906
11907
  additionalExternalVariantId: n.integrationProduct?.additionalExternalVariantId,
11907
11908
  baseCost: l,
@@ -12014,7 +12015,7 @@ const $o = async (n, t) => {
12014
12015
  cartSelectionsWithPrices: S,
12015
12016
  cartMetadata: g
12016
12017
  };
12017
- }, Vo = async (n, t, e, a, r, i, s, o, l, c, d) => {
12018
+ }, Lo = async (n, t, e, a, r, i, s, o, l, c, d) => {
12018
12019
  l("workflow.steps.finish.finalize.buildingLayouts");
12019
12020
  const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await ar(
12020
12021
  n,
@@ -12028,7 +12029,7 @@ const $o = async (n, t) => {
12028
12029
  d
12029
12030
  );
12030
12031
  l("workflow.steps.finish.finalize.creatingDesign");
12031
- const m = await $o(A), g = m?.transaction?.previewImageLink;
12032
+ const m = await Oo(A), g = m?.transaction?.previewImageLink;
12032
12033
  if (!m?.transaction)
12033
12034
  throw new Error("Failed to create design");
12034
12035
  l("workflow.steps.finish.finalize.updatingTransaction");
@@ -12043,7 +12044,7 @@ const $o = async (n, t) => {
12043
12044
  g,
12044
12045
  m?.processExecution?.id
12045
12046
  );
12046
- }, zo = async (n, t, e) => {
12047
+ }, Vo = async (n, t, e) => {
12047
12048
  t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
12048
12049
  n.map(async (o) => {
12049
12050
  await o.workflowManager.outstandingRequestsPromise();
@@ -12074,7 +12075,7 @@ const $o = async (n, t) => {
12074
12075
  ))
12075
12076
  );
12076
12077
  t("workflow.steps.finish.finalize.creatingDesign");
12077
- const s = await Uo(i.map((o) => o.designDetails));
12078
+ const s = await $o(i.map((o) => o.designDetails));
12078
12079
  if (!s)
12079
12080
  throw new Error("Failed to create designs");
12080
12081
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
@@ -12091,7 +12092,7 @@ const $o = async (n, t) => {
12091
12092
  );
12092
12093
  });
12093
12094
  };
12094
- class Go {
12095
+ class zo {
12095
12096
  constructor() {
12096
12097
  this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
12097
12098
  }
@@ -12158,7 +12159,7 @@ class Go {
12158
12159
  throw new V("Unexpected storage method requested");
12159
12160
  }
12160
12161
  }
12161
- const Xe = new Go(), Wo = w`
12162
+ const Xe = new zo(), Go = w`
12162
12163
  mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
12163
12164
  transactionAddStakeholder(id: $id, details: $details, type: $type) {
12164
12165
  id
@@ -12172,7 +12173,7 @@ const Xe = new Go(), Wo = w`
12172
12173
  }
12173
12174
  }
12174
12175
  }
12175
- `, qo = w`
12176
+ `, Wo = w`
12176
12177
  mutation AddAddressToTransaction(
12177
12178
  $transactionId: String!
12178
12179
  $streetAddress: String
@@ -12194,15 +12195,15 @@ const Xe = new Go(), Wo = w`
12194
12195
  id
12195
12196
  }
12196
12197
  }
12197
- `, Ho = w`
12198
+ `, qo = w`
12198
12199
  mutation AddOrganizationToTransaction($transactionId: String!, $organizationName: String!) {
12199
12200
  organizationAttachToTransaction(transactionId: $transactionId, organizationName: $organizationName) {
12200
12201
  id
12201
12202
  }
12202
12203
  }
12203
12204
  `;
12204
- var jo = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n))(jo || {});
12205
- class Yo {
12205
+ var Ho = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n))(Ho || {});
12206
+ class jo {
12206
12207
  constructor(t, e) {
12207
12208
  if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = un(async () => {
12208
12209
  await Xe.getSavedDesignByTransaction(
@@ -12223,7 +12224,7 @@ class Yo {
12223
12224
  throw new Error("No Workflow ID provided.");
12224
12225
  this.client = t;
12225
12226
  const a = e.layouts;
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(
12227
+ 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(
12227
12228
  this,
12228
12229
  t,
12229
12230
  e.workflow,
@@ -12264,7 +12265,7 @@ class Yo {
12264
12265
  }
12265
12266
  async attachAddress(t, e, a, r, i, s) {
12266
12267
  await this.graphQlClient().mutate({
12267
- mutation: qo,
12268
+ mutation: Wo,
12268
12269
  variables: {
12269
12270
  transactionId: this.getWorkflowManager().getTransaction().id,
12270
12271
  streetAddress: t || void 0,
@@ -12278,7 +12279,7 @@ class Yo {
12278
12279
  }
12279
12280
  async attachOrganization(t) {
12280
12281
  await this.graphQlClient().mutate({
12281
- mutation: Ho,
12282
+ mutation: qo,
12282
12283
  variables: {
12283
12284
  transactionId: this.getWorkflowManager().getTransaction().id,
12284
12285
  organizationName: t
@@ -12469,7 +12470,7 @@ class Yo {
12469
12470
  }
12470
12471
  async assignCustomerDetails(t) {
12471
12472
  const a = (await this.graphQlClient().mutate({
12472
- mutation: Wo,
12473
+ mutation: Go,
12473
12474
  variables: {
12474
12475
  id: this.getWorkflowManager().getTransaction().id,
12475
12476
  details: t,
@@ -12535,7 +12536,7 @@ class Yo {
12535
12536
  transactionId: a.id,
12536
12537
  workflowViewerLink: "",
12537
12538
  workflowViewerReadOnlyLink: ""
12538
- }) : Vo(
12539
+ }) : Lo(
12539
12540
  this.workflowManager,
12540
12541
  this.workflowManager.getWorkflow(),
12541
12542
  this.workflowManager.getLayouts(),
@@ -12566,7 +12567,7 @@ class Yo {
12566
12567
  title: i.stepTitle,
12567
12568
  properties: []
12568
12569
  };
12569
- if (l && Ko(i, a) && c.properties.push({
12570
+ if (l && Jo(i, a) && c.properties.push({
12570
12571
  type: "selection",
12571
12572
  value: l.name,
12572
12573
  priceModifier: l.priceModifier
@@ -12660,7 +12661,7 @@ class Yo {
12660
12661
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
12661
12662
  }
12662
12663
  }
12663
- const Jo = (n) => {
12664
+ const Yo = (n) => {
12664
12665
  if ([
12665
12666
  v.Question,
12666
12667
  v.Frame,
@@ -12675,14 +12676,14 @@ const Jo = (n) => {
12675
12676
  return !!e.displaySelectionOnFinishStep || !!e.displaySelectionsOnFinishStep;
12676
12677
  }
12677
12678
  return !1;
12678
- }, Ko = (n, t) => {
12679
- if (!Jo(n)) return !1;
12679
+ }, Jo = (n, t) => {
12680
+ if (!Yo(n)) return !1;
12680
12681
  if (n.option && (n.option.variants || []).length > 1) {
12681
12682
  const e = t[n.stepName];
12682
12683
  return !!(e && e.selections.length > 0);
12683
12684
  }
12684
12685
  return !1;
12685
- }, _o = [
12686
+ }, Ko = [
12686
12687
  "altGlyph",
12687
12688
  "circle",
12688
12689
  "ellipse",
@@ -12694,7 +12695,7 @@ const Jo = (n) => {
12694
12695
  "textPath",
12695
12696
  "tref",
12696
12697
  "tspan"
12697
- ], Xo = async (n, t, e) => {
12698
+ ], _o = async (n, t, e) => {
12698
12699
  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);
12699
12700
  o.searchParams.append("video", $a(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12700
12701
  const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await An(l, { type: "svg" }))}`, A = (h) => {
@@ -12721,7 +12722,7 @@ const Jo = (n) => {
12721
12722
  } catch (h) {
12722
12723
  return console.error(h), [];
12723
12724
  }
12724
- }, Zo = async (n, t, e, a) => {
12725
+ }, Xo = async (n, t, e, a) => {
12725
12726
  const r = e.data, i = r.assetUrl, s = await da(i);
12726
12727
  try {
12727
12728
  const o = gs(r, a.option);
@@ -12778,7 +12779,7 @@ const Jo = (n) => {
12778
12779
  } catch (o) {
12779
12780
  return console.error(o), [];
12780
12781
  }
12781
- }, tl = async (n, t, e, a) => {
12782
+ }, Zo = async (n, t, e, a) => {
12782
12783
  const r = e.data, i = a.option;
12783
12784
  if (!i)
12784
12785
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12797,7 +12798,7 @@ const Jo = (n) => {
12797
12798
  wa(m);
12798
12799
  const g = {};
12799
12800
  kt(m, (C) => {
12800
- _o.includes(C.tagName) && !C.attributes.getNamedItem("fill") && C.setAttribute("fill", "#000000");
12801
+ Ko.includes(C.tagName) && !C.attributes.getNamedItem("fill") && C.setAttribute("fill", "#000000");
12801
12802
  const E = C.attributes.getNamedItem("fill");
12802
12803
  if (E && E.value !== "none") {
12803
12804
  const B = E.value, Q = `spiff-fill-${B.replace(/\W/g, "")}`;
@@ -12846,7 +12847,7 @@ const Jo = (n) => {
12846
12847
  } catch (C) {
12847
12848
  return console.error(C), [];
12848
12849
  }
12849
- }, el = async (n, t, e) => {
12850
+ }, tl = async (n, t, e) => {
12850
12851
  const a = await Zn(e.data.module), r = t.data, i = (o, l) => {
12851
12852
  const c = n.find((A) => A.panelId === l.panelId);
12852
12853
  if (!c)
@@ -12876,7 +12877,7 @@ const Jo = (n) => {
12876
12877
  } catch (o) {
12877
12878
  return console.error(o), [];
12878
12879
  }
12879
- }, al = async (n, t, e, a) => {
12880
+ }, el = async (n, t, e, a) => {
12880
12881
  const r = e.data, i = a.option;
12881
12882
  if (!i)
12882
12883
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12917,7 +12918,7 @@ const Jo = (n) => {
12917
12918
  } catch (d) {
12918
12919
  return console.error(d), [];
12919
12920
  }
12920
- }, nl = async (n, t, e, a) => {
12921
+ }, al = async (n, t, e, a) => {
12921
12922
  const r = e.data, i = a.option;
12922
12923
  if (!i)
12923
12924
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12973,7 +12974,7 @@ const Jo = (n) => {
12973
12974
  } catch (c) {
12974
12975
  return console.error(c), [];
12975
12976
  }
12976
- }, rl = async (n, t, e) => {
12977
+ }, nl = async (n, t, e) => {
12977
12978
  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;
12978
12979
  if (o === "image")
12979
12980
  try {
@@ -13037,7 +13038,7 @@ const Jo = (n) => {
13037
13038
  });
13038
13039
  }
13039
13040
  return a;
13040
- }, il = async (n, t, e, a) => {
13041
+ }, rl = async (n, t, e, a) => {
13041
13042
  const r = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
13042
13043
  const p = a.option;
13043
13044
  if (!p)
@@ -13122,7 +13123,7 @@ const Jo = (n) => {
13122
13123
  r.push(new z(S, f));
13123
13124
  }
13124
13125
  return r;
13125
- }, sl = (n, t) => n.conditions ? n.conditions.every((e) => {
13126
+ }, il = (n, t) => n.conditions ? n.conditions.every((e) => {
13126
13127
  const a = t[e.targetStepName];
13127
13128
  if (a && a.selectedVariants) {
13128
13129
  const r = a.selectedVariants;
@@ -13131,7 +13132,7 @@ const Jo = (n) => {
13131
13132
  );
13132
13133
  }
13133
13134
  return !1;
13134
- }) : !0, ol = async (n, t, e, a) => {
13135
+ }) : !0, sl = async (n, t, e, a) => {
13135
13136
  const r = [], i = {};
13136
13137
  for (const s of n) {
13137
13138
  const o = t.steps.find((l) => l.stepName === s.name);
@@ -13139,18 +13140,18 @@ const Jo = (n) => {
13139
13140
  switch (o.type) {
13140
13141
  case v.DigitalContent:
13141
13142
  r.push(
13142
- ...await Xo(e, s, o)
13143
+ ...await _o(e, s, o)
13143
13144
  );
13144
13145
  break;
13145
13146
  case v.Frame:
13146
13147
  case v.Photo:
13147
13148
  r.push(
13148
- ...await Zo(e, i, s, o)
13149
+ ...await Xo(e, i, s, o)
13149
13150
  );
13150
13151
  break;
13151
13152
  case v.Illustration:
13152
13153
  r.push(
13153
- ...await tl(
13154
+ ...await Zo(
13154
13155
  e,
13155
13156
  i,
13156
13157
  s,
@@ -13159,39 +13160,39 @@ const Jo = (n) => {
13159
13160
  );
13160
13161
  break;
13161
13162
  case v.Module:
13162
- r.push(...await el(e, s, o));
13163
+ r.push(...await tl(e, s, o));
13163
13164
  break;
13164
13165
  case v.Picture:
13165
13166
  r.push(
13166
- ...await al(e, i, s, o)
13167
+ ...await el(e, i, s, o)
13167
13168
  );
13168
13169
  break;
13169
13170
  case v.Shape:
13170
13171
  r.push(
13171
- ...await nl(e, i, s, o)
13172
+ ...await al(e, i, s, o)
13172
13173
  );
13173
13174
  break;
13174
13175
  case v.Text:
13175
13176
  r.push(
13176
- ...await il(e, i, s, o)
13177
+ ...await rl(e, i, s, o)
13177
13178
  );
13178
13179
  break;
13179
13180
  }
13180
13181
  }
13181
13182
  for (const s of t.steps)
13182
- s.type !== v.SilentIllustration && s.type !== v.ProductOverlay || sl(s, i) && r.push(
13183
- ...await rl(e, s, a)
13183
+ s.type !== v.SilentIllustration && s.type !== v.ProductOverlay || il(s, i) && r.push(
13184
+ ...await nl(e, s, a)
13184
13185
  );
13185
13186
  return r;
13186
13187
  };
13187
- class ll {
13188
+ class ol {
13188
13189
  constructor(t) {
13189
13190
  this.handleCompleteRender = null;
13190
13191
  const e = /* @__PURE__ */ new Map();
13191
13192
  t.forEach(
13192
13193
  (a) => e.set(
13193
13194
  a.id,
13194
- new Al(
13195
+ new dl(
13195
13196
  a.id,
13196
13197
  a.name,
13197
13198
  this,
@@ -13217,15 +13218,15 @@ class ll {
13217
13218
  return this.workflowManager;
13218
13219
  }
13219
13220
  }
13220
- const cl = () => new Promise((n, t) => {
13221
+ const ll = () => new Promise((n, t) => {
13221
13222
  try {
13222
13223
  const a = pt().getContext("webgl2");
13223
13224
  n(!!a);
13224
13225
  } catch {
13225
13226
  n(!1);
13226
13227
  }
13227
- }), dl = cl();
13228
- class Al {
13228
+ }), cl = ll();
13229
+ class dl {
13229
13230
  constructor(t, e, a, r, i) {
13230
13231
  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;
13231
13232
  }
@@ -13281,10 +13282,10 @@ class Al {
13281
13282
  return;
13282
13283
  }
13283
13284
  this.renderQueue.enqueue(
13284
- new ul(
13285
+ new Al(
13285
13286
  this.getID(),
13286
13287
  a,
13287
- await dl,
13288
+ await cl,
13288
13289
  () => {
13289
13290
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
13290
13291
  },
@@ -13294,7 +13295,7 @@ class Al {
13294
13295
  );
13295
13296
  }
13296
13297
  }
13297
- class ul extends Mn {
13298
+ class Al extends Mn {
13298
13299
  constructor(t, e, a, r, i, s) {
13299
13300
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = r, this.layouts = i, this.getWorkflowManager = s;
13300
13301
  }
@@ -13364,7 +13365,7 @@ class ul extends Mn {
13364
13365
  h.resize(l, c), await h.render(), this.onRender();
13365
13366
  }
13366
13367
  }
13367
- const fd = (n, t) => {
13368
+ const pd = (n, t) => {
13368
13369
  const e = [];
13369
13370
  return n.forEach((a) => {
13370
13371
  const r = t.steps.find((i) => i.stepName === a.stepName);
@@ -13375,16 +13376,16 @@ const fd = (n, t) => {
13375
13376
  }
13376
13377
  });
13377
13378
  }), e;
13378
- }, Cd = async (n, t, e, a) => {
13379
+ }, fd = async (n, t, e, a) => {
13379
13380
  let r = {
13380
13381
  serializableWorkflow: { steps: [] },
13381
13382
  layouts: {}
13382
13383
  };
13383
13384
  r = new R(e.map((l) => new qn(l))).apply(r);
13384
- const s = await ol(n, t, e, a);
13385
+ const s = await sl(n, t, e, a);
13385
13386
  return new R(s).apply(r);
13386
13387
  };
13387
- class hl {
13388
+ class ul {
13388
13389
  constructor(t) {
13389
13390
  this.handleCache = {}, this.bundle = t;
13390
13391
  }
@@ -13426,7 +13427,7 @@ class hl {
13426
13427
  async createHandle(t) {
13427
13428
  switch (t.type) {
13428
13429
  case U.FileUpload:
13429
- return new ml(this.bundle, t).initialize();
13430
+ return new hl(this.bundle, t).initialize();
13430
13431
  case U.ColorOption:
13431
13432
  return new Za(
13432
13433
  this.bundle,
@@ -13438,7 +13439,7 @@ class hl {
13438
13439
  return e?.type === "Color" ? new Za(this.bundle, t, e) : new nr(this.bundle, t, e);
13439
13440
  }
13440
13441
  case U.Text:
13441
- return new gl(this.bundle, t);
13442
+ return new ml(this.bundle, t);
13442
13443
  default:
13443
13444
  throw new Error("Unhandled Global Property Aspect Type");
13444
13445
  }
@@ -13505,7 +13506,7 @@ class Da {
13505
13506
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
13506
13507
  }
13507
13508
  }
13508
- class ml extends Da {
13509
+ class hl extends Da {
13509
13510
  constructor(t, e) {
13510
13511
  super(t, e);
13511
13512
  }
@@ -13731,7 +13732,7 @@ class ml extends Da {
13731
13732
  );
13732
13733
  }
13733
13734
  }
13734
- class gl extends Da {
13735
+ class ml extends Da {
13735
13736
  constructor(t, e) {
13736
13737
  super(t, e);
13737
13738
  }
@@ -13882,8 +13883,8 @@ class Za extends nr {
13882
13883
  return this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)?.customColor || this.getCurrentVariant()?.getColor() || "#ffffff";
13883
13884
  }
13884
13885
  }
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(
13886
+ 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) => {
13887
+ const r = gl(
13887
13888
  n,
13888
13889
  t,
13889
13890
  e,
@@ -13896,21 +13897,21 @@ const pl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlo
13896
13897
  };
13897
13898
  function ua(n, t) {
13898
13899
  function e(a) {
13899
- if (typeof a > "u" || !Array.isArray(a) && !wl(a))
13900
+ if (typeof a > "u" || !Array.isArray(a) && !Cl(a))
13900
13901
  return a;
13901
13902
  if (Array.isArray(a))
13902
13903
  return ua(a, t);
13903
13904
  let r = {};
13904
13905
  for (const [i, s] of Object.entries(a))
13905
- r[i] = Cl(s) ? s : ua(s, t);
13906
+ r[i] = fl(s) ? s : ua(s, t);
13906
13907
  return Ir(r, t);
13907
13908
  }
13908
13909
  return Array.isArray(n) ? n.map(e) : e(n);
13909
13910
  }
13910
- function Cl(n) {
13911
+ function fl(n) {
13911
13912
  return n == null;
13912
13913
  }
13913
- function wl(n) {
13914
+ function Cl(n) {
13914
13915
  return typeof n == "object" && !Array.isArray(n) && n !== null;
13915
13916
  }
13916
13917
  function rr(n) {
@@ -13922,7 +13923,7 @@ function rr(n) {
13922
13923
  function Ae(n) {
13923
13924
  return ua(n, ["__typename"]);
13924
13925
  }
13925
- class yl {
13926
+ class wl {
13926
13927
  constructor(t, e, a, r, i) {
13927
13928
  this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
13928
13929
  const s = i?.existingGlobalPropertyState;
@@ -14104,7 +14105,7 @@ class yl {
14104
14105
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
14105
14106
  }
14106
14107
  }
14107
- class Sl {
14108
+ class yl {
14108
14109
  constructor(t) {
14109
14110
  this.setState(t);
14110
14111
  }
@@ -14190,7 +14191,7 @@ class Sl {
14190
14191
  };
14191
14192
  }
14192
14193
  }
14193
- const vl = w`
14194
+ const Sl = w`
14194
14195
  query GetManyMetafields($entityIds: [String!]!) {
14195
14196
  metafieldsMany(entityIds: $entityIds) {
14196
14197
  id
@@ -14202,7 +14203,7 @@ const vl = w`
14202
14203
  }
14203
14204
  }
14204
14205
  `;
14205
- class El {
14206
+ class vl {
14206
14207
  constructor() {
14207
14208
  this.internalMap = /* @__PURE__ */ new Map();
14208
14209
  }
@@ -14223,7 +14224,7 @@ class El {
14223
14224
  async ensureIdsArePresent(t) {
14224
14225
  if (t.every((a) => this.internalMap.has(a))) return;
14225
14226
  const e = await y.getShadowGraphqlClient().query({
14226
- query: vl,
14227
+ query: Sl,
14227
14228
  errorPolicy: "all",
14228
14229
  variables: {
14229
14230
  entityIds: t.filter((a) => !this.internalMap.has(a))
@@ -14264,8 +14265,8 @@ class El {
14264
14265
  return JSON.parse(r.value);
14265
14266
  }
14266
14267
  }
14267
- const bl = new El();
14268
- var Bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(Bl || {});
14268
+ const El = new vl();
14269
+ var bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(bl || {});
14269
14270
  class ir {
14270
14271
  constructor(t) {
14271
14272
  this.fullFetched = !1, this.collection = t;
@@ -14439,7 +14440,7 @@ class ir {
14439
14440
  }
14440
14441
  getTransformCollection() {
14441
14442
  if (this.collection.transformCollection)
14442
- return new Il(this.collection.transformCollection);
14443
+ return new Bl(this.collection.transformCollection);
14443
14444
  }
14444
14445
  /**
14445
14446
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14565,7 +14566,7 @@ class ue {
14565
14566
  * @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.
14566
14567
  */
14567
14568
  async requestMetafields(t) {
14568
- return bl.requestKeysForEntity(this.product.id, t);
14569
+ return El.requestKeysForEntity(this.product.id, t);
14569
14570
  }
14570
14571
  }
14571
14572
  class qt {
@@ -14592,7 +14593,7 @@ class qt {
14592
14593
  return this.workflow.imageUrl;
14593
14594
  }
14594
14595
  }
14595
- class Il {
14596
+ class Bl {
14596
14597
  constructor(t) {
14597
14598
  this.collection = t;
14598
14599
  }
@@ -14612,10 +14613,10 @@ class Il {
14612
14613
  * @returns The transforms in this collection.
14613
14614
  */
14614
14615
  getTransforms() {
14615
- return this.collection.transforms.map((t) => new Pl(t));
14616
+ return this.collection.transforms.map((t) => new Il(t));
14616
14617
  }
14617
14618
  }
14618
- class Pl {
14619
+ class Il {
14619
14620
  constructor(t) {
14620
14621
  this.transform = t;
14621
14622
  }
@@ -14642,21 +14643,21 @@ class Pl {
14642
14643
  };
14643
14644
  }
14644
14645
  }
14645
- const Dl = w`
14646
+ const Pl = w`
14646
14647
  ${ie(!1)}
14647
14648
  query GetProductCollections($ids: [String!]!) {
14648
14649
  productCollections(ids: $ids) {
14649
14650
  ...ProductCollectionFields
14650
14651
  }
14651
14652
  }
14652
- `, wd = async (n) => (await y.getShadowGraphqlClient().query({
14653
- query: Dl,
14653
+ `, Cd = async (n) => (await y.getShadowGraphqlClient().query({
14654
+ query: Pl,
14654
14655
  errorPolicy: "all",
14655
14656
  variables: {
14656
14657
  ids: n
14657
14658
  }
14658
14659
  })).data?.productCollections?.map((e) => new ir(e));
14659
- class Fl {
14660
+ class Dl {
14660
14661
  constructor() {
14661
14662
  this.listeners = {};
14662
14663
  }
@@ -14683,7 +14684,7 @@ class Fl {
14683
14684
  delete this.listeners[e];
14684
14685
  }
14685
14686
  }
14686
- const xl = w`
14687
+ const Fl = w`
14687
14688
  mutation AddAddressToBundle(
14688
14689
  $bundleId: String!
14689
14690
  $streetAddress: String
@@ -14705,13 +14706,13 @@ const xl = w`
14705
14706
  id
14706
14707
  }
14707
14708
  }
14708
- `, kl = w`
14709
+ `, xl = w`
14709
14710
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14710
14711
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14711
14712
  id
14712
14713
  }
14713
14714
  }
14714
- `, Ml = w`
14715
+ `, kl = w`
14715
14716
  mutation GenerateQuoteId($id: String!) {
14716
14717
  bundleGenerateQuoteId(id: $id) {
14717
14718
  id
@@ -14721,15 +14722,15 @@ const xl = w`
14721
14722
  `;
14722
14723
  class Ze {
14723
14724
  constructor(t, e, a, r, i, s) {
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);
14725
+ 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);
14725
14726
  const o = this.productCollection?.globalPropertyConfiguration;
14726
- this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new yl(
14727
+ this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new wl(
14727
14728
  this.id,
14728
14729
  this.ownerId,
14729
14730
  o,
14730
14731
  this.onGlobalPropertiesChanged.bind(this),
14731
14732
  s
14732
- ), this.globalPropertyHandleService = new hl(this), this.setPreviewService(a);
14733
+ ), this.globalPropertyHandleService = new ul(this), this.setPreviewService(a);
14733
14734
  const l = new Promise((c, d) => {
14734
14735
  if (s?.readonly) {
14735
14736
  c([]);
@@ -14765,7 +14766,7 @@ class Ze {
14765
14766
  }
14766
14767
  async generateQuoteId() {
14767
14768
  const e = (await y.getShadowGraphqlClient().mutate({
14768
- mutation: Ml,
14769
+ mutation: kl,
14769
14770
  variables: {
14770
14771
  id: this.id
14771
14772
  },
@@ -14777,7 +14778,7 @@ class Ze {
14777
14778
  }
14778
14779
  async attachAddress(t, e, a, r, i, s) {
14779
14780
  await y.getShadowGraphqlClient().mutate({
14780
- mutation: xl,
14781
+ mutation: Fl,
14781
14782
  variables: {
14782
14783
  bundleId: this.id,
14783
14784
  streetAddress: t || void 0,
@@ -14794,7 +14795,7 @@ class Ze {
14794
14795
  }
14795
14796
  async attachOrganization(t) {
14796
14797
  await y.getShadowGraphqlClient().mutate({
14797
- mutation: kl,
14798
+ mutation: xl,
14798
14799
  variables: {
14799
14800
  bundleId: this.id,
14800
14801
  organizationName: t
@@ -14931,7 +14932,7 @@ class Ze {
14931
14932
  (s) => s.name === r
14932
14933
  );
14933
14934
  if (i && i.type === U.ColorOption) {
14934
- const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = fl(
14935
+ const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = pl(
14935
14936
  this.getWorkflowExperiences(),
14936
14937
  this.globalConfigurationPropertyId || "",
14937
14938
  r
@@ -15214,7 +15215,7 @@ class Ze {
15214
15215
  bundleId: this.id
15215
15216
  }
15216
15217
  });
15217
- const a = await zo(
15218
+ const a = await Vo(
15218
15219
  this.workflowExperiences.map((r) => ({
15219
15220
  workflowManager: r.getWorkflowManager(),
15220
15221
  workflow: r.getWorkflowManager().getWorkflow(),
@@ -15448,27 +15449,15 @@ class Ze {
15448
15449
  quoteId: this.quoteId || ""
15449
15450
  };
15450
15451
  }
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
- }
15463
15452
  }
15464
- const Tl = w`
15453
+ const Ml = w`
15465
15454
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15466
15455
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15467
15456
  id
15468
15457
  }
15469
15458
  }
15470
15459
  `;
15471
- class Nl {
15460
+ class Tl {
15472
15461
  /**
15473
15462
  *
15474
15463
  * @param id
@@ -15478,7 +15467,7 @@ class Nl {
15478
15467
  */
15479
15468
  async execute(t, e, a) {
15480
15469
  const i = (await y.getShadowGraphqlClient().mutate({
15481
- mutation: Tl,
15470
+ mutation: Ml,
15482
15471
  variables: {
15483
15472
  processFlowId: t,
15484
15473
  inputs: [...e.map((A) => A.getValueForTransmission())]
@@ -15518,7 +15507,7 @@ class Nl {
15518
15507
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15519
15508
  );
15520
15509
  if (A.completedAt) {
15521
- o = !0, d = new Ql(A);
15510
+ o = !0, d = new Nl(A);
15522
15511
  break;
15523
15512
  }
15524
15513
  l += 1;
@@ -15530,7 +15519,7 @@ class Nl {
15530
15519
  return Promise.resolve(d);
15531
15520
  }
15532
15521
  }
15533
- class Ql {
15522
+ class Nl {
15534
15523
  constructor(t) {
15535
15524
  this.execution = t;
15536
15525
  }
@@ -15615,8 +15604,8 @@ class Fa {
15615
15604
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15616
15605
  }
15617
15606
  }
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 {
15607
+ 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 || {});
15608
+ class wd extends Fa {
15620
15609
  constructor(t) {
15621
15610
  super(`"${t}"`);
15622
15611
  }
@@ -15631,7 +15620,7 @@ class sr extends Fa {
15631
15620
  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);
15632
15621
  }
15633
15622
  }
15634
- class Sd extends Fa {
15623
+ class yd extends Fa {
15635
15624
  constructor(t) {
15636
15625
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15637
15626
  }
@@ -15693,7 +15682,7 @@ const me = w`
15693
15682
  }
15694
15683
  }
15695
15684
  }
15696
- `, Ol = w`
15685
+ `, Rl = w`
15697
15686
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15698
15687
  customerCreate(details: $details) {
15699
15688
  id
@@ -15735,7 +15724,7 @@ w`
15735
15724
  }
15736
15725
  }
15737
15726
  `;
15738
- const $l = w`
15727
+ const Ol = w`
15739
15728
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15740
15729
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15741
15730
  }
@@ -15772,7 +15761,7 @@ w`
15772
15761
  }
15773
15762
  }
15774
15763
  `;
15775
- const Ul = w`
15764
+ const $l = w`
15776
15765
  query CustomerMetafields($id: String!) {
15777
15766
  metafields(entityId: $id) {
15778
15767
  id
@@ -15791,7 +15780,7 @@ const Ul = w`
15791
15780
  }
15792
15781
  }
15793
15782
  `;
15794
- class Ll {
15783
+ class Ul {
15795
15784
  constructor(t, e = y.getShadowGraphqlClient.bind(y)) {
15796
15785
  this.options = t, this.client = e;
15797
15786
  }
@@ -15818,7 +15807,7 @@ class Ll {
15818
15807
  });
15819
15808
  }
15820
15809
  }
15821
- class Vl {
15810
+ class Ll {
15822
15811
  init(t, e, a) {
15823
15812
  this.cognitoClient = new Er({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15824
15813
  }
@@ -15868,8 +15857,8 @@ class Vl {
15868
15857
  );
15869
15858
  }
15870
15859
  }
15871
- const Lt = new Vl();
15872
- class zl {
15860
+ const Lt = new Ll();
15861
+ class Vl {
15873
15862
  /**
15874
15863
  * Returns a formatted string representing a given amount with desired currency.
15875
15864
  * @param currency The currency to represent the amount in.
@@ -15903,8 +15892,8 @@ class zl {
15903
15892
  return "USD0,0";
15904
15893
  }
15905
15894
  }
15906
- const en = new zl();
15907
- class Gl {
15895
+ const en = new Vl();
15896
+ class zl {
15908
15897
  constructor(t, e, a, r) {
15909
15898
  this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
15910
15899
  }
@@ -15944,7 +15933,7 @@ class Gl {
15944
15933
  return t * Math.pow(10, en.getPrecisionForCurrency(e));
15945
15934
  }
15946
15935
  }
15947
- const Wl = async (n, t) => {
15936
+ const Gl = async (n, t) => {
15948
15937
  const e = await y.getShadowGraphqlClient().query({
15949
15938
  query: Li(t?.assets?.metadata || !1),
15950
15939
  errorPolicy: "all",
@@ -15966,7 +15955,7 @@ const Wl = async (n, t) => {
15966
15955
  }), Kt.set({ id: i.option.id }, Promise.resolve(i.option)));
15967
15956
  }), r.finalizeStepConfig || (r.finalizeStepConfig = {}), r.finalizeStepConfig.termsMarkdown = r.finalizeStepConfig.termsMarkdown || r.partner.termsMarkdown;
15968
15957
  }), a;
15969
- }, ql = async (n, t) => {
15958
+ }, Wl = async (n, t) => {
15970
15959
  const a = (await t).find((r) => r.id === n);
15971
15960
  if (!a)
15972
15961
  throw new Error(`Workflow not found: ${n}`);
@@ -15975,11 +15964,11 @@ const Wl = async (n, t) => {
15975
15964
  const e = n.map((o) => Kt.get({ id: o, options: t })), a = n.filter((o, l) => e[l] === void 0);
15976
15965
  if (a.length === 0)
15977
15966
  return Promise.all(e);
15978
- const r = Wl(a, t), i = a.map(
15979
- (o) => Kt.set({ id: o, options: t }, ql(o, r))
15967
+ const r = Gl(a, t), i = a.map(
15968
+ (o) => Kt.set({ id: o, options: t }, Wl(o, r))
15980
15969
  ), s = e.filter((o) => o !== void 0);
15981
15970
  return await Promise.all(s.concat(i));
15982
- }, vd = async (n, t) => (await or([n], t))[0], Hl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
15971
+ }, Sd = async (n, t) => (await or([n], t))[0], ql = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
15983
15972
  id: M(),
15984
15973
  panelId: t.name,
15985
15974
  name: t.name,
@@ -15993,11 +15982,11 @@ const Wl = async (n, t) => {
15993
15982
  previewRegion: t.previewRegion,
15994
15983
  useEditableArea: t.useEditableArea,
15995
15984
  editableArea: t.editableArea
15996
- })), jl = (n, t) => {
15985
+ })), Hl = (n, t) => {
15997
15986
  const e = n.workflowState, a = e ? JSON.parse(e) : void 0;
15998
- return a ? Object.values(a.layouts).map((r) => r.layout) : Hl(t.panels);
15987
+ return a ? Object.values(a.layouts).map((r) => r.layout) : ql(t.panels);
15999
15988
  };
16000
- class Ed {
15989
+ class vd {
16001
15990
  constructor(t) {
16002
15991
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
16003
15992
  try {
@@ -16008,7 +15997,7 @@ class Ed {
16008
15997
  } catch (a) {
16009
15998
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16010
15999
  }
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("------------------------");
16000
+ }, 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.25f931c6-ae18-5ac4-a721-e801a472f301"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16012
16001
  }
16013
16002
  configure(t) {
16014
16003
  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);
@@ -16022,7 +16011,7 @@ class Ed {
16022
16011
  }
16023
16012
  getFlowService() {
16024
16013
  if (!qr()) throw new Error("Application key required to use Flow Service.");
16025
- return new Nl();
16014
+ return new Tl();
16026
16015
  }
16027
16016
  async getCurrencyContext(t) {
16028
16017
  const a = (await this.getIntegration()).partner.currencyCode, i = await y.getShadowGraphqlClient().query({
@@ -16034,14 +16023,14 @@ class Ed {
16034
16023
  to: t
16035
16024
  }
16036
16025
  }), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
16037
- return new Gl(s, o, a, t);
16026
+ return new zl(s, o, a, t);
16038
16027
  }
16039
16028
  async getIntegration() {
16040
16029
  if (this.activeIntegration)
16041
16030
  return this.activeIntegration;
16042
16031
  if (!this.options.applicationKey)
16043
16032
  throw new Error("Cannot get current Integration without specifying an Application Key.");
16044
- return this.activeIntegration = Yl(this.options.applicationKey), this.activeIntegration;
16033
+ return this.activeIntegration = jl(this.options.applicationKey), this.activeIntegration;
16045
16034
  }
16046
16035
  async canUseAddon(t) {
16047
16036
  try {
@@ -16168,7 +16157,7 @@ class Ed {
16168
16157
  })).data.customer;
16169
16158
  if (!r.id) {
16170
16159
  const o = (await e.mutate({
16171
- mutation: Ol,
16160
+ mutation: Rl,
16172
16161
  errorPolicy: "all",
16173
16162
  fetchPolicy: "no-cache",
16174
16163
  variables: {
@@ -16226,7 +16215,7 @@ class Ed {
16226
16215
  */
16227
16216
  async generateVerificationCode(t) {
16228
16217
  await y.getShadowGraphqlClient().mutate({
16229
- mutation: $l,
16218
+ mutation: Ol,
16230
16219
  variables: {
16231
16220
  emailAddress: t
16232
16221
  }
@@ -16281,7 +16270,7 @@ class Ed {
16281
16270
  if (!this.customer?.id)
16282
16271
  throw new Error("Customer must be logged in before calling this function.");
16283
16272
  return (await y.getShadowGraphqlClient().query({
16284
- query: Ul,
16273
+ query: $l,
16285
16274
  variables: {
16286
16275
  id: this.customer.id
16287
16276
  }
@@ -16526,7 +16515,7 @@ class Ed {
16526
16515
  ])).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) => {
16527
16516
  const { transaction: E, workflowId: P, readOnly: B, index: F } = C, Q = m.get(P), T = t[F];
16528
16517
  !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16529
- const tt = g.get(E.id) || void 0, et = new Ll({
16518
+ const tt = g.get(E.id) || void 0, et = new Ul({
16530
16519
  onMutate: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } }),
16531
16520
  onQuery: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } })
16532
16521
  }), W = {
@@ -16552,17 +16541,17 @@ class Ed {
16552
16541
  const q = JSON.parse(T.workflowState);
16553
16542
  W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16554
16543
  } else
16555
- W.layouts = jl(
16544
+ W.layouts = Hl(
16556
16545
  W.transaction,
16557
16546
  W.workflow
16558
16547
  );
16559
- return W.renderableContextService = new ll(
16548
+ return W.renderableContextService = new ol(
16560
16549
  W.layouts
16561
16550
  ), W.delayWorkflowStateSync = !0, { experienceOptions: W, index: F, options: T };
16562
16551
  }), f = await Promise.all(p);
16563
16552
  k.setMap("transactionOwnerIds", g);
16564
16553
  const b = f.sort((C, E) => C.index - E.index).map(async (C) => {
16565
- const { experienceOptions: E, options: P } = C, B = new Yo(this, E);
16554
+ const { experienceOptions: E, options: P } = C, B = new jo(this, E);
16566
16555
  return await B.getWorkflowManager().getInitializationPromise(), P.type !== "transaction" && this.customer && await B.attachCustomerDetails({ email: this.customer.emailAddress }), B;
16567
16556
  }), I = await Promise.all(b);
16568
16557
  return I.forEach((C) => C.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), I;
@@ -16634,7 +16623,7 @@ class Ed {
16634
16623
  };
16635
16624
  }
16636
16625
  }
16637
- const Yl = async (n, t) => (await y.getShadowGraphqlClient().query({
16626
+ const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
16638
16627
  query: Wi,
16639
16628
  errorPolicy: "all",
16640
16629
  fetchPolicy: "no-cache",
@@ -16646,7 +16635,7 @@ const Yl = async (n, t) => (await y.getShadowGraphqlClient().query({
16646
16635
  variables: {
16647
16636
  themeConfigurationId: t
16648
16637
  }
16649
- })).data.currentIntegration, bd = async (n) => {
16638
+ })).data.currentIntegration, Ed = async (n) => {
16650
16639
  const e = await y.getShadowGraphqlClient().query({
16651
16640
  query: xi,
16652
16641
  errorPolicy: "all",
@@ -16657,27 +16646,27 @@ const Yl = async (n, t) => (await y.getShadowGraphqlClient().query({
16657
16646
  });
16658
16647
  if (e.data.transactions.length !== 0)
16659
16648
  return e.data.transactions[0];
16660
- }, Bd = async (n, t) => (await y.getShadowGraphqlClient().query({
16649
+ }, bd = async (n, t) => (await y.getShadowGraphqlClient().query({
16661
16650
  query: Gi,
16662
16651
  errorPolicy: "all",
16663
16652
  variables: {
16664
16653
  themeConfigurationId: n,
16665
16654
  themeInstallId: t
16666
16655
  }
16667
- })).data?.marketplaceThemeInstallConfiguration, Id = async (n) => (await y.getShadowGraphqlClient().query({
16656
+ })).data?.marketplaceThemeInstallConfiguration, Bd = async (n) => (await y.getShadowGraphqlClient().query({
16668
16657
  query: Hi,
16669
16658
  errorPolicy: "all",
16670
16659
  variables: {
16671
16660
  id: n
16672
16661
  }
16673
- })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Pd = async (n) => (await y.getShadowGraphqlClient().query({
16662
+ })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Id = async (n) => (await y.getShadowGraphqlClient().query({
16674
16663
  query: qi,
16675
16664
  errorPolicy: "all",
16676
16665
  variables: {
16677
16666
  id: n
16678
16667
  }
16679
16668
  })).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration;
16680
- function Jl(n, t, e, a) {
16669
+ function Yl(n, t, e, a) {
16681
16670
  const r = e.width * n.zoom, i = e.height * n.zoom;
16682
16671
  if (a) {
16683
16672
  const o = n, l = Math.max(t.width / e.width, t.height / e.height);
@@ -16691,7 +16680,7 @@ function Jl(n, t, e, a) {
16691
16680
  function ge(n, t, e) {
16692
16681
  return Math.min(Math.max(n, t), e);
16693
16682
  }
16694
- class Kl {
16683
+ class Jl {
16695
16684
  constructor(t, e) {
16696
16685
  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 = {
16697
16686
  useThreshold: !1,
@@ -16834,7 +16823,7 @@ class Kl {
16834
16823
  return;
16835
16824
  }
16836
16825
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
16837
- this.offsets[o] = Jl(t[o], s, this.imageData, this.forceImageCover);
16826
+ this.offsets[o] = Yl(t[o], s, this.imageData, this.forceImageCover);
16838
16827
  }), this._debouncedUpdateFrameOffsets(
16839
16828
  this.offsets,
16840
16829
  r,
@@ -16912,7 +16901,7 @@ class Kl {
16912
16901
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
16913
16902
  }
16914
16903
  }
16915
- class Dd {
16904
+ class Pd {
16916
16905
  traversableScenes() {
16917
16906
  throw new Error("Method not implemented.");
16918
16907
  }
@@ -17077,12 +17066,12 @@ class Dd {
17077
17066
  return [];
17078
17067
  }
17079
17068
  }
17080
- var _l = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(_l || {});
17081
- class Xl extends Z {
17069
+ var Kl = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(Kl || {});
17070
+ class _l extends Z {
17082
17071
  constructor(t, e, a) {
17083
17072
  super(t, e, a);
17084
17073
  const r = e.data;
17085
- this.frameService = new Kl(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17074
+ this.frameService = new Jl(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17086
17075
  }
17087
17076
  selectVariant(t) {
17088
17077
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -17242,7 +17231,7 @@ class Xl extends Z {
17242
17231
  return this.manager.getStepStorage(this.step.stepName);
17243
17232
  }
17244
17233
  }
17245
- const Zl = w`
17234
+ const Xl = w`
17246
17235
  query GetLoggedInCustomer($email: String!) {
17247
17236
  customer(emailAddress: $email) {
17248
17237
  id
@@ -17285,21 +17274,21 @@ const Zl = w`
17285
17274
  total
17286
17275
  }
17287
17276
  }
17288
- `, tc = w`
17277
+ `, Zl = w`
17289
17278
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17290
17279
  transactionUpdate(id: $id, designName: $name) {
17291
17280
  id
17292
17281
  designName
17293
17282
  }
17294
17283
  }
17295
- `, ec = w`
17284
+ `, tc = w`
17296
17285
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17297
17286
  transactionDuplicate(id: $id, template: $template) {
17298
17287
  id
17299
17288
  workflowViewerLink
17300
17289
  }
17301
17290
  }
17302
- `, ac = w`
17291
+ `, ec = w`
17303
17292
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17304
17293
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17305
17294
  items {
@@ -17314,7 +17303,7 @@ const Zl = w`
17314
17303
  total
17315
17304
  }
17316
17305
  }
17317
- `, nc = w`
17306
+ `, ac = w`
17318
17307
  query GetTransactionsForBundle($id: String!) {
17319
17308
  bundles(ids: [$id]) {
17320
17309
  id
@@ -17335,21 +17324,21 @@ const Zl = w`
17335
17324
  }
17336
17325
  }
17337
17326
  }
17338
- `, rc = w`
17327
+ `, nc = w`
17339
17328
  mutation SetBundleName($id: String!, $name: String!) {
17340
17329
  bundleUpdate(id: $id, name: $name) {
17341
17330
  id
17342
17331
  name
17343
17332
  }
17344
17333
  }
17345
- `, ic = w`
17334
+ `, rc = w`
17346
17335
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17347
17336
  bundleDuplicate(id: $id, template: $template) {
17348
17337
  id
17349
17338
  workflowViewerLink
17350
17339
  }
17351
17340
  }
17352
- `, sc = w`
17341
+ `, ic = w`
17353
17342
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17354
17343
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17355
17344
  items {
@@ -17362,43 +17351,43 @@ const Zl = w`
17362
17351
  total
17363
17352
  }
17364
17353
  }
17365
- `, Fd = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
17366
- mutation: rc,
17354
+ `, Dd = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
17355
+ mutation: nc,
17367
17356
  errorPolicy: "all",
17368
17357
  variables: {
17369
17358
  id: n,
17370
17359
  name: t
17371
17360
  },
17372
17361
  context: e
17373
- }), xd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17374
- mutation: tc,
17362
+ }), Fd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17363
+ mutation: Zl,
17375
17364
  errorPolicy: "all",
17376
17365
  variables: {
17377
17366
  id: n,
17378
17367
  name: t
17379
17368
  }
17380
- }), kd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17381
- mutation: ic,
17369
+ }), xd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17370
+ mutation: rc,
17382
17371
  errorPolicy: "all",
17383
17372
  variables: {
17384
17373
  id: n,
17385
17374
  template: t
17386
17375
  }
17387
- }), Md = async (n, t) => await y.getShadowGraphqlClient().mutate({
17388
- mutation: ec,
17376
+ }), kd = async (n, t) => await y.getShadowGraphqlClient().mutate({
17377
+ mutation: tc,
17389
17378
  errorPolicy: "all",
17390
17379
  variables: {
17391
17380
  id: n,
17392
17381
  template: t
17393
17382
  }
17394
- }), Td = async (n) => (await y.getShadowGraphqlClient().query({
17395
- query: Zl,
17383
+ }), Md = async (n) => (await y.getShadowGraphqlClient().query({
17384
+ query: Xl,
17396
17385
  errorPolicy: "all",
17397
17386
  variables: {
17398
17387
  email: n
17399
17388
  }
17400
- })).data.customer, Nd = async (n, t, e) => await y.getShadowGraphqlClient().query({
17401
- query: ac,
17389
+ })).data.customer, Td = async (n, t, e) => await y.getShadowGraphqlClient().query({
17390
+ query: ec,
17402
17391
  errorPolicy: "all",
17403
17392
  fetchPolicy: "no-cache",
17404
17393
  variables: {
@@ -17406,15 +17395,15 @@ const Zl = w`
17406
17395
  offset: e,
17407
17396
  limit: t
17408
17397
  }
17409
- }), Qd = async (n, t) => await y.getShadowGraphqlClient().query({
17410
- query: nc,
17398
+ }), Nd = async (n, t) => await y.getShadowGraphqlClient().query({
17399
+ query: ac,
17411
17400
  errorPolicy: "all",
17412
17401
  fetchPolicy: "no-cache",
17413
17402
  variables: {
17414
17403
  id: n
17415
17404
  },
17416
17405
  context: t
17417
- }), Rd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17406
+ }), Qd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17418
17407
  query: xa,
17419
17408
  errorPolicy: "all",
17420
17409
  fetchPolicy: "no-cache",
@@ -17434,7 +17423,7 @@ const Zl = w`
17434
17423
  offset: e,
17435
17424
  limit: t
17436
17425
  }
17437
- }))?.data.customerTransactionsFeed?.items || [], Od = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17426
+ }))?.data.customerTransactionsFeed?.items || [], Rd = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17438
17427
  query: xa,
17439
17428
  errorPolicy: "all",
17440
17429
  fetchPolicy: "no-cache",
@@ -17454,7 +17443,7 @@ const Zl = w`
17454
17443
  offset: e,
17455
17444
  limit: t
17456
17445
  }
17457
- }))?.data.customerTransactionsFeed?.items || [], $d = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17446
+ }))?.data.customerTransactionsFeed?.items || [], Od = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17458
17447
  query: xa,
17459
17448
  errorPolicy: "all",
17460
17449
  fetchPolicy: "no-cache",
@@ -17470,8 +17459,8 @@ const Zl = w`
17470
17459
  offset: e,
17471
17460
  limit: t
17472
17461
  }
17473
- }))?.data.customerTransactionsFeed?.items || [], Ud = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17474
- query: sc,
17462
+ }))?.data.customerTransactionsFeed?.items || [], $d = async (n, t, e) => (await y.getShadowGraphqlClient().query({
17463
+ query: ic,
17475
17464
  errorPolicy: "all",
17476
17465
  fetchPolicy: "no-cache",
17477
17466
  variables: {
@@ -17490,7 +17479,7 @@ const Zl = w`
17490
17479
  console.error("vite-plugin-css-injected-by-js", t);
17491
17480
  }
17492
17481
  })();
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;
17482
+ 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;
17494
17483
  K = { __e: function(n, t, e, a) {
17495
17484
  for (var r, i, s; t = t.__; )
17496
17485
  if ((r = t.__c) && !r.__)
@@ -17503,7 +17492,7 @@ K = { __e: function(n, t, e, a) {
17503
17492
  throw n;
17504
17493
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17505
17494
  var st, ta, an, lr = [], ea = [], nn = K.__b, rn = K.__r, sn = K.diffed, on = K.__c, ln = K.unmount;
17506
- function lc() {
17495
+ function oc() {
17507
17496
  for (var n; n = lr.shift(); )
17508
17497
  if (n.__P && n.__H)
17509
17498
  try {
@@ -17523,7 +17512,7 @@ K.__b = function(n) {
17523
17512
  }, K.diffed = function(n) {
17524
17513
  sn && sn(n);
17525
17514
  var t = n.__c;
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) {
17515
+ t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) || lc)(oc)), t.__H.__.forEach(function(e) {
17527
17516
  e.i && (e.__H = e.i), e.__V !== ea && (e.__ = e.__V), e.i = void 0, e.__V = ea;
17528
17517
  })), ta = st = null;
17529
17518
  }, K.__c = function(n, t) {
@@ -17550,7 +17539,7 @@ K.__b = function(n) {
17550
17539
  }), e.__H = void 0, t && K.__e(t, e.__v));
17551
17540
  };
17552
17541
  var cn = typeof requestAnimationFrame == "function";
17553
- function cc(n) {
17542
+ function lc(n) {
17554
17543
  var t, e = function() {
17555
17544
  clearTimeout(a), cn && cancelAnimationFrame(t), setTimeout(n);
17556
17545
  }, a = setTimeout(e, 100);
@@ -17598,14 +17587,14 @@ const cr = w`
17598
17587
  ...AddressValidationResultFields
17599
17588
  }
17600
17589
  }
17601
- `, dc = w`
17590
+ `, cc = w`
17602
17591
  ${ka}
17603
17592
  query GetAddressValidationJobs($ids: [String!]!) {
17604
17593
  addressValidationJobs(ids: $ids) {
17605
17594
  ...AddressValidationJobFields
17606
17595
  }
17607
17596
  }
17608
- `, Ac = w`
17597
+ `, dc = w`
17609
17598
  ${ka}
17610
17599
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17611
17600
  recipients(ids: $ids) {
@@ -17615,31 +17604,31 @@ const cr = w`
17615
17604
  }
17616
17605
  }
17617
17606
  }
17618
- `, uc = w`
17607
+ `, Ac = w`
17619
17608
  ${cr}
17620
17609
  mutation ValidateRecipientAddress($id: String!) {
17621
17610
  recipientValidate(id: $id) {
17622
17611
  ...AddressValidationResultFields
17623
17612
  }
17624
17613
  }
17625
- `, hc = w`
17614
+ `, uc = w`
17626
17615
  ${ka}
17627
17616
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17628
17617
  recipientValidateBatch(ids: $ids) {
17629
17618
  ...AddressValidationJobFields
17630
17619
  }
17631
17620
  }
17632
- `, mc = w`
17621
+ `, hc = w`
17633
17622
  mutation OverrideRecipientAddress($id: String!) {
17634
17623
  recipientOverrideAddress(id: $id) {
17635
17624
  id
17636
17625
  }
17637
17626
  }
17638
17627
  `;
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) => {
17628
+ 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 || {});
17629
+ const Ud = async (n) => {
17641
17630
  const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().query({
17642
- query: Ac,
17631
+ query: dc,
17643
17632
  errorPolicy: "all",
17644
17633
  fetchPolicy: "network-only",
17645
17634
  variables: {
@@ -17651,23 +17640,23 @@ const Ld = async (n) => {
17651
17640
  if (r)
17652
17641
  return e.data?.recipients?.find((i) => i.id === r)?.addressValidationJob;
17653
17642
  });
17654
- }, Vd = async (n) => (await y.getShadowGraphqlClient().query({
17655
- query: dc,
17643
+ }, Ld = async (n) => (await y.getShadowGraphqlClient().query({
17644
+ query: cc,
17656
17645
  errorPolicy: "all",
17657
17646
  fetchPolicy: "network-only",
17658
17647
  variables: {
17659
17648
  ids: n
17660
17649
  }
17661
- })).data?.addressValidationJobs, zd = async (n) => n.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17662
- mutation: uc,
17650
+ })).data?.addressValidationJobs, Vd = async (n) => n.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17651
+ mutation: Ac,
17663
17652
  errorPolicy: "all",
17664
17653
  fetchPolicy: "network-only",
17665
17654
  variables: {
17666
17655
  id: n.getWorkflowManager().getTransaction().recipient.id
17667
17656
  }
17668
- })).data?.recipientValidate : void 0, Gd = async (n) => {
17657
+ })).data?.recipientValidate : void 0, zd = async (n) => {
17669
17658
  const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().mutate({
17670
- mutation: hc,
17659
+ mutation: uc,
17671
17660
  errorPolicy: "all",
17672
17661
  fetchPolicy: "network-only",
17673
17662
  variables: {
@@ -17679,12 +17668,12 @@ const Ld = async (n) => {
17679
17668
  if (r)
17680
17669
  return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
17681
17670
  });
17682
- }, Wd = async (n) => {
17671
+ }, Gd = async (n) => {
17683
17672
  const t = n.getWorkflowManager().getTransaction().recipient?.id;
17684
17673
  if (!t)
17685
17674
  return;
17686
17675
  (await y.getShadowGraphqlClient().mutate({
17687
- mutation: mc,
17676
+ mutation: hc,
17688
17677
  errorPolicy: "all",
17689
17678
  fetchPolicy: "network-only",
17690
17679
  variables: {
@@ -17694,170 +17683,170 @@ const Ld = async (n) => {
17694
17683
  };
17695
17684
  export {
17696
17685
  ga as AddonHandle,
17697
- pc as AddressValidationJobStatus,
17698
- gc as AddressValidationResultConfirmationLevel,
17686
+ gc as AddressValidationJobStatus,
17687
+ mc as AddressValidationResultConfirmationLevel,
17699
17688
  hn as AddressValidationStatus,
17700
- Sd as ArrayInput,
17689
+ yd as ArrayInput,
17701
17690
  U as AspectType,
17702
17691
  bt as AssetNotFoundError,
17703
17692
  ve as AssetType,
17704
- md as BringForwardCommand,
17705
- hd as BringToBackCommand,
17706
- ud as BringToFrontCommand,
17693
+ hd as BringForwardCommand,
17694
+ ud as BringToBackCommand,
17695
+ Ad as BringToFrontCommand,
17707
17696
  Dr as BundleDesignCreationCartAddMode,
17708
17697
  N as CanvasCommand,
17709
17698
  ue as CollectionProduct,
17710
17699
  Za as ColorOptionGlobalPropertyHandle,
17711
17700
  ms as CommandContext,
17712
17701
  we as ConversionDataType,
17713
- oc as ConversionLocation,
17702
+ sc as ConversionLocation,
17714
17703
  z as CreateElementCommand,
17715
17704
  qn as CreateLayoutCommand,
17716
- Gl as CurrencyContext,
17717
- zl as CurrencyService,
17705
+ zl as CurrencyContext,
17706
+ Vl as CurrencyService,
17718
17707
  Bt as DeleteElementCommand,
17719
- No as DigitalContentStepHandle,
17720
- ml as FileUploadGlobalPropertyHandle,
17708
+ To as DigitalContentStepHandle,
17709
+ hl as FileUploadGlobalPropertyHandle,
17721
17710
  he as FlowExecutionNodeResult,
17722
- Ql as FlowExecutionResult,
17723
- Nl as FlowService,
17711
+ Nl as FlowExecutionResult,
17712
+ Tl as FlowService,
17724
17713
  Cs as FontAlignmentCommand,
17725
17714
  ps as FontColorCommand,
17726
17715
  fs as FontSizeCommand,
17727
17716
  ja as FontSourceCommand,
17728
- Kl as FrameService,
17729
- _l as FrameStep,
17730
- Xl as FrameStepHandle,
17717
+ Jl as FrameService,
17718
+ Kl as FrameStep,
17719
+ _l as FrameStepHandle,
17731
17720
  Da as GlobalPropertyHandle,
17732
17721
  R as GroupCommand,
17733
- Io as IllustrationStepHandle,
17722
+ Bo as IllustrationStepHandle,
17734
17723
  Le as InformationMessageType,
17735
- To as InformationStepHandle,
17724
+ Mo as InformationStepHandle,
17736
17725
  tn as IntegrationProduct,
17737
17726
  xr as IntegrationType,
17738
- od as LayoutElementFactory,
17727
+ sd as LayoutElementFactory,
17739
17728
  x as LayoutElementType,
17740
17729
  Y as LayoutNotFoundError,
17741
17730
  jt as LayoutRenderingPurpose,
17742
- Po as MaterialStepHandle,
17731
+ Io as MaterialStepHandle,
17743
17732
  Be as MisconfigurationError,
17744
- Dd as MockWorkflowManager,
17745
- Do as ModelStepHandle,
17746
- Qo as ModuleStepHandle,
17747
- ld as MoveCommand,
17733
+ Pd as MockWorkflowManager,
17734
+ Po as ModelStepHandle,
17735
+ No as ModuleStepHandle,
17736
+ od as MoveCommand,
17748
17737
  sr as ObjectInput,
17749
- Rl as ObjectInputType,
17738
+ Ql as ObjectInputType,
17750
17739
  nr as OptionGlobalPropertyHandle,
17751
17740
  be as OptionNotFoundError,
17752
17741
  Dt as ParseError,
17753
- Fo as PictureStepHandle,
17742
+ Do as PictureStepHandle,
17754
17743
  kr as ProductCameraRig,
17755
17744
  ir as ProductCollection,
17756
- Bl as ProductCollectionProductSortKey,
17745
+ bl as ProductCollectionProductSortKey,
17757
17746
  qt as ProductWorkflow,
17758
17747
  Kt as PromiseCache,
17759
17748
  Tn as PromiseQueue,
17760
- xo as QuestionStepHandle,
17749
+ Fo as QuestionStepHandle,
17761
17750
  Mn as QueueablePromise,
17762
- dd as ResizeCommand,
17751
+ cd as ResizeCommand,
17763
17752
  Yt as ResourceNotFoundError,
17764
- cd as RotateCommand,
17753
+ ld as RotateCommand,
17765
17754
  H as ScaleAxis,
17766
- gd as SendBackwardsCommand,
17767
- ko as ShapeStepHandle,
17755
+ md as SendBackwardsCommand,
17756
+ xo as ShapeStepHandle,
17768
17757
  Fr as ShareActionType,
17769
- Ed as SpiffCommerceClient,
17758
+ vd as SpiffCommerceClient,
17770
17759
  Ee as StakeholderType,
17771
17760
  Pr as StepAspectType,
17772
17761
  Z as StepHandle,
17773
17762
  v as StepType,
17774
17763
  Mt as TextAlgorithm,
17775
17764
  Ss as TextChangeCommand,
17776
- gl as TextGlobalPropertyHandle,
17777
- yd as TextInput,
17778
- Mo as TextStepHandle,
17779
- Pl as Transform,
17780
- Il as TransformCollection,
17765
+ ml as TextGlobalPropertyHandle,
17766
+ wd as TextInput,
17767
+ ko as TextStepHandle,
17768
+ Il as Transform,
17769
+ Bl as TransformCollection,
17781
17770
  V as UnhandledBehaviorError,
17782
17771
  Mr as UnitOfMeasurement,
17783
- Ad as UpdateImageSourceCommand,
17772
+ dd as UpdateImageSourceCommand,
17784
17773
  it as Variant,
17785
- jo as WorkflowExperienceEventType,
17786
- Yo as WorkflowExperienceImpl,
17774
+ Ho as WorkflowExperienceEventType,
17775
+ jo as WorkflowExperienceImpl,
17787
17776
  O as assetService,
17788
17777
  ri as browserColorToHex,
17789
- id as cmPerPixel,
17790
- Vo as createDesign,
17791
- ad as currentDirection,
17792
- Wc as dataUrlFromExternalUrl,
17778
+ rd as cmPerPixel,
17779
+ Lo as createDesign,
17780
+ ed as currentDirection,
17781
+ Gc as dataUrlFromExternalUrl,
17793
17782
  Xe as designService,
17794
17783
  Ce as determineCorrectFontSizeAndLines,
17795
17784
  jn as digitalContentStepService,
17796
17785
  dt as domParser,
17797
- kd as duplicateBundle,
17798
- Md as duplicateTransaction,
17786
+ xd as duplicateBundle,
17787
+ kd as duplicateTransaction,
17799
17788
  nt as fetchAsString,
17800
- Jc as findAngle,
17789
+ Yc as findAngle,
17801
17790
  $ as findElement,
17802
- jc as findPmsColors,
17791
+ Hc as findPmsColors,
17803
17792
  Vt as frameDataCache,
17804
17793
  St as frameStepService,
17805
17794
  M as generate,
17806
- ol as generateCommands,
17795
+ sl as generateCommands,
17807
17796
  ot as generateSVGWithUnknownColors,
17808
- Cd as generateStateFromDesignInputSteps,
17809
- Vd as getAddressValidationJobs,
17797
+ fd as generateStateFromDesignInputSteps,
17798
+ Ld as getAddressValidationJobs,
17810
17799
  Re as getAttributesFromArrayBuffer,
17811
- Yc as getAxisAlignedBoundingBox,
17812
- Jl as getBoundedOffsets,
17813
- Id as getBundleThemeConfiguration,
17814
- Td as getCustomer,
17815
- Nd as getCustomerBundles,
17816
- nd as getElementVertices,
17800
+ jc as getAxisAlignedBoundingBox,
17801
+ Yl as getBoundedOffsets,
17802
+ Bd as getBundleThemeConfiguration,
17803
+ Md as getCustomer,
17804
+ Td as getCustomerBundles,
17805
+ ad as getElementVertices,
17817
17806
  Ue as getFrameData,
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,
17807
+ gd as getGlobalPropertyStateForBundle,
17808
+ jl as getIntegration,
17809
+ Zc as getNEPoint,
17810
+ Xc as getNWPoint,
17811
+ Rd as getOrderedTransactions,
17812
+ bd as getOverrideThemeConfiguration,
17813
+ _c as getPointOfRotation,
17814
+ Cd as getProductCollections,
17815
+ td as getSEPoint,
17827
17816
  Ea as getSvgElement,
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,
17817
+ $d as getTemplateBundles,
17818
+ Od as getTemplateTransactions,
17819
+ Ed as getTransaction,
17820
+ Id as getTransactionThemeConfiguration,
17821
+ Nd as getTransactionsForBundle,
17822
+ Kc as getTrueCoordinates,
17823
+ Qd as getUnorderedTransactions,
17824
+ Ud as getValidationJobsForWorkflowExperiences,
17825
+ Sd as getWorkflow,
17837
17826
  or as getWorkflows,
17838
17827
  y as graphQlManager,
17839
17828
  fe as illustrationStepService,
17840
- Kc as isCloseToValue,
17829
+ Jc as isCloseToValue,
17841
17830
  Nt as loadFont,
17842
- Hc as matchHexToPms,
17831
+ qc as matchHexToPms,
17843
17832
  Yn as materialStepService,
17844
- bl as metafieldManager,
17845
- rd as mmPerPixel,
17833
+ El as metafieldManager,
17834
+ nd as mmPerPixel,
17846
17835
  Jn as modelStepService,
17847
17836
  Sa as modifySVGColors,
17848
17837
  Kn as moduleStepService,
17849
- Fd as nameBundle,
17850
- xd as nameTransaction,
17838
+ Dd as nameBundle,
17839
+ Fd as nameTransaction,
17851
17840
  j as optionService,
17852
- sd as outlineFontsInSvg,
17853
- Wd as overrideWorkflowExperienceRecipientAddress,
17841
+ id as outlineFontsInSvg,
17842
+ Gd as overrideWorkflowExperienceRecipientAddress,
17854
17843
  ut as patternImageDataCache,
17855
17844
  k as persistenceService,
17856
17845
  _n as pictureStepService,
17857
- qc as pmsToRgb,
17846
+ Wc as pmsToRgb,
17858
17847
  Xn as questionStepService,
17859
- Gc as registerFetchImplementation,
17860
- zc as registerWindowImplementation,
17848
+ zc as registerFetchImplementation,
17849
+ Vc as registerWindowImplementation,
17861
17850
  qa as rehydrateSerializedLayout,
17862
17851
  ei as rgbToPms,
17863
17852
  ce as rotateAroundPoint,
@@ -17867,14 +17856,14 @@ export {
17867
17856
  zt as shapeStepService,
17868
17857
  Es as shortenUrl,
17869
17858
  gt as spiffCoreConfiguration,
17870
- fd as stepAspectValuesToDesignInputSteps,
17859
+ pd as stepAspectValuesToDesignInputSteps,
17871
17860
  La as svgColorValueToDefinition,
17872
17861
  Gn as svgStringDimensions,
17873
17862
  pa as svgToDataUrl,
17874
17863
  G as textStepService,
17875
17864
  Ts as toast,
17876
- zd as validateWorkflowExperienceRecipient,
17877
- Gd as validateWorkflowExperienceRecipients,
17865
+ Vd as validateWorkflowExperienceRecipient,
17866
+ zd as validateWorkflowExperienceRecipients,
17878
17867
  It as xmlSerializer
17879
17868
  };
17880
17869
  //# sourceMappingURL=index.mjs.map