@spiffcommerce/core 32.0.1 → 32.1.0-beta.73d1cd6e-e075-58e5-8e68-0aa66f7987ce

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
@@ -162,10 +162,10 @@ class kr {
162
162
  }
163
163
  const gt = new kr();
164
164
  let aa, na;
165
- function Tc(r) {
165
+ function Nc(r) {
166
166
  aa = r;
167
167
  }
168
- function Nc(r) {
168
+ function Qc(r) {
169
169
  na = r;
170
170
  }
171
171
  function Zt() {
@@ -256,7 +256,7 @@ const un = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Na = /* @_
256
256
  }
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
- }, Qc = async (r) => {
259
+ }, Rc = async (r) => {
260
260
  const t = await hn(r), e = un.get(r) || Te(t);
261
261
  return await $r(new Blob([t], { type: e }));
262
262
  }, Rr = (r) => {
@@ -3154,7 +3154,7 @@ const Hr = (r) => new Promise((t) => {
3154
3154
  parseInt(r.substring(2, 4), 16),
3155
3155
  parseInt(r.substring(4, 6), 16)
3156
3156
  ]);
3157
- function Rc(r) {
3157
+ function Oc(r) {
3158
3158
  const t = Jt.indexOf(r);
3159
3159
  return t >= 0 ? xt[t] : "";
3160
3160
  }
@@ -3162,7 +3162,7 @@ function _r(r) {
3162
3162
  const t = xt.indexOf(r);
3163
3163
  return t >= 0 ? Jt[t] : "";
3164
3164
  }
3165
- function Oc(r, t = 64) {
3165
+ function $c(r, t = 64) {
3166
3166
  const e = [], a = [], n = _r(r);
3167
3167
  n && e.push({
3168
3168
  pms: n,
@@ -3181,7 +3181,7 @@ function Oc(r, t = 64) {
3181
3181
  return e.sort((A, u) => A.distance - u.distance);
3182
3182
  }
3183
3183
  const Xr = Jt.map((r, t) => ({ pms: r, hex: xt[t] })), Zr = new pr(Xr, { keys: ["pms"] });
3184
- function $c(r, t) {
3184
+ function Uc(r, t) {
3185
3185
  return Zr.search(r, t ? { limit: t } : void 0);
3186
3186
  }
3187
3187
  let Qt = null;
@@ -5425,7 +5425,7 @@ const M = () => {
5425
5425
  ]
5426
5426
  }
5427
5427
  );
5428
- }, Uc = (r, t, e, a, n) => {
5428
+ }, Lc = (r, t, e, a, n) => {
5429
5429
  const i = ft(n), s = e / 2, o = a / 2, l = r + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, 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));
5430
5430
  return {
5431
5431
  minX: l - I,
@@ -5433,25 +5433,25 @@ const M = () => {
5433
5433
  minY: c - C,
5434
5434
  maxY: c + C
5435
5435
  };
5436
- }, Lc = (r, t, e) => {
5436
+ }, Vc = (r, t, e) => {
5437
5437
  const a = Math.sqrt(Math.pow(t.x - r.x, 2) + Math.pow(t.y - r.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - r.x, 2) + Math.pow(e.y - r.y, 2));
5438
5438
  return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
5439
- }, ft = (r) => r * (Math.PI / 180), Vc = (r, t, e) => Math.abs(r - t) < e, zc = (r, t, e) => {
5439
+ }, ft = (r) => r * (Math.PI / 180), zc = (r, t, e) => Math.abs(r - t) < e, Gc = (r, t, e) => {
5440
5440
  const a = Math.sin(ft(e)), n = Math.cos(ft(e));
5441
5441
  return {
5442
5442
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5443
5443
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5444
5444
  };
5445
- }, Gc = (r, t) => ({
5445
+ }, Wc = (r, t) => ({
5446
5446
  x: (r.x + t.x) / 2,
5447
5447
  y: (r.y + t.y) / 2
5448
- }), Wc = (r, t, e, a) => ({
5448
+ }), qc = (r, t, e, a) => ({
5449
5449
  x: r.x + t?.x * e,
5450
5450
  y: r.y + t?.y * a
5451
- }), qc = (r, t, e, a) => ({
5451
+ }), jc = (r, t, e, a) => ({
5452
5452
  x: r.x + (t?.x + t?.width) * e,
5453
5453
  y: r.y + t?.y * a
5454
- }), jc = (r, t, e, a) => ({
5454
+ }), Hc = (r, t, e, a) => ({
5455
5455
  x: r.x + (t?.x + t?.width) * e,
5456
5456
  y: r.y + (t?.y + t?.height) * a
5457
5457
  }), Pt = (r) => {
@@ -5473,7 +5473,7 @@ const M = () => {
5473
5473
  case j.Southwest:
5474
5474
  return j.Northwest;
5475
5475
  }
5476
- }, Hc = (r, t) => t > 45 && t <= 135 ? Pt(r) : t > 135 && t <= 225 ? Pt(Pt(r)) : t > 225 && t <= 315 ? Pt(Pt(Pt(r))) : r, Yc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5476
+ }, Yc = (r, t) => t > 45 && t <= 135 ? Pt(r) : t > 135 && t <= 225 ? Pt(Pt(r)) : t > 225 && t <= 315 ? Pt(Pt(Pt(r))) : r, Jc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5477
5477
  const a = ft(r.rotation), n = {
5478
5478
  x: t.x + r.x * e.x,
5479
5479
  y: t.x + r.y * e.y
@@ -5503,7 +5503,7 @@ const M = () => {
5503
5503
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5504
5504
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5505
5505
  };
5506
- }, Jc = 0.352778, Kc = 0.035277, kn = (r) => {
5506
+ }, Kc = 0.352778, _c = 0.035277, kn = (r) => {
5507
5507
  const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
5508
5508
  return /* @__PURE__ */ D("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ D(
5509
5509
  "g",
@@ -5725,7 +5725,7 @@ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", ze = /* @_
5725
5725
  }, sa = (r, t) => {
5726
5726
  const e = new _i(t);
5727
5727
  return Tn.set(r, e), e;
5728
- }, _c = async (r) => {
5728
+ }, Xc = async (r) => {
5729
5729
  const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
5730
5730
  a.querySelectorAll("style").forEach((d) => {
5731
5731
  on(d.innerHTML).stylesheet?.rules.forEach((u) => {
@@ -6378,7 +6378,7 @@ const ne = (r) => {
6378
6378
  }
6379
6379
  return o;
6380
6380
  };
6381
- class Xc {
6381
+ class Zc {
6382
6382
  static async getFrame(t, e) {
6383
6383
  const a = await Un(e.region, e.src), n = await Oe(a), i = e.region || await Ut(t, x.Frame);
6384
6384
  return {
@@ -6621,7 +6621,7 @@ class Ga extends N {
6621
6621
  };
6622
6622
  }
6623
6623
  }
6624
- class Zc extends N {
6624
+ class td extends N {
6625
6625
  constructor(t, e, a) {
6626
6626
  super(), this.id = t, this.x = e, this.y = a;
6627
6627
  }
@@ -6644,7 +6644,7 @@ class Zc extends N {
6644
6644
  };
6645
6645
  }
6646
6646
  }
6647
- class td extends N {
6647
+ class ed extends N {
6648
6648
  constructor(t, e) {
6649
6649
  super(), this.id = t, this.angle = e;
6650
6650
  }
@@ -6666,7 +6666,7 @@ class td extends N {
6666
6666
  };
6667
6667
  }
6668
6668
  }
6669
- class ed extends N {
6669
+ class ad extends N {
6670
6670
  constructor(t, e, a) {
6671
6671
  super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
6672
6672
  }
@@ -6977,7 +6977,7 @@ class ps extends N {
6977
6977
  };
6978
6978
  }
6979
6979
  }
6980
- class ad extends N {
6980
+ class nd extends N {
6981
6981
  constructor(t, e) {
6982
6982
  super(), this.id = t, this.src = e;
6983
6983
  }
@@ -7096,7 +7096,7 @@ class Cs extends N {
7096
7096
  };
7097
7097
  }
7098
7098
  }
7099
- class nd extends N {
7099
+ class rd extends N {
7100
7100
  /**
7101
7101
  * @param id The targeted element to bring to the front.
7102
7102
  */
@@ -7125,7 +7125,7 @@ class nd extends N {
7125
7125
  };
7126
7126
  }
7127
7127
  }
7128
- class rd extends N {
7128
+ class id extends N {
7129
7129
  /**
7130
7130
  * @param id The targeted element to bring to the back.
7131
7131
  */
@@ -7156,7 +7156,7 @@ class rd extends N {
7156
7156
  };
7157
7157
  }
7158
7158
  }
7159
- class id extends N {
7159
+ class sd extends N {
7160
7160
  /**
7161
7161
  * @param id The targeted element to bring to the front.
7162
7162
  */
@@ -7183,7 +7183,7 @@ class id extends N {
7183
7183
  };
7184
7184
  }
7185
7185
  }
7186
- class sd extends N {
7186
+ class od extends N {
7187
7187
  /**
7188
7188
  * @param id The targeted element to bring to the front.
7189
7189
  */
@@ -9561,7 +9561,7 @@ const re = w`
9561
9561
  }
9562
9562
  }
9563
9563
  }
9564
- `, od = async (r) => (await y.getShadowGraphqlClient().query({
9564
+ `, ld = async (r) => (await y.getShadowGraphqlClient().query({
9565
9565
  query: Gs,
9566
9566
  fetchPolicy: "cache-first",
9567
9567
  errorPolicy: "all",
@@ -10271,22 +10271,22 @@ class yo {
10271
10271
  if (this.transaction.recipient?.id)
10272
10272
  this.transaction.recipient = {
10273
10273
  id: this.transaction.recipient.id,
10274
- firstName: t || this.transaction.recipient.firstName,
10275
- lastName: e || this.transaction.recipient.lastName,
10276
- address: a || this.transaction.recipient.address,
10277
- suburb: n || this.transaction.recipient.suburb,
10278
- state: i || this.transaction.recipient.state,
10279
- email: s || this.transaction.recipient.email,
10280
- postalCode: o || this.transaction.recipient.postalCode,
10281
- country: l || this.transaction.recipient.country,
10282
- mobile: c || this.transaction.recipient.mobile,
10283
- company: d || this.transaction.recipient.company,
10284
- apartment: A || this.transaction.recipient.apartment,
10285
- customField1: u || this.transaction.recipient.customField1,
10286
- customField2: h || this.transaction.recipient.customField2,
10287
- customField3: m || this.transaction.recipient.customField3,
10288
- customField4: g || this.transaction.recipient.customField4,
10289
- customField5: p || this.transaction.recipient.customField5,
10274
+ firstName: t ?? this.transaction.recipient.firstName,
10275
+ lastName: e ?? this.transaction.recipient.lastName,
10276
+ address: a ?? this.transaction.recipient.address,
10277
+ suburb: n ?? this.transaction.recipient.suburb,
10278
+ state: i ?? this.transaction.recipient.state,
10279
+ email: s ?? this.transaction.recipient.email,
10280
+ postalCode: o ?? this.transaction.recipient.postalCode,
10281
+ country: l ?? this.transaction.recipient.country,
10282
+ mobile: c ?? this.transaction.recipient.mobile,
10283
+ company: d ?? this.transaction.recipient.company,
10284
+ apartment: A ?? this.transaction.recipient.apartment,
10285
+ customField1: u ?? this.transaction.recipient.customField1,
10286
+ customField2: h ?? this.transaction.recipient.customField2,
10287
+ customField3: m ?? this.transaction.recipient.customField3,
10288
+ customField4: g ?? this.transaction.recipient.customField4,
10289
+ customField5: p ?? this.transaction.recipient.customField5,
10290
10290
  conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
10291
10291
  }, await this.graphQlClient().mutate({
10292
10292
  mutation: fo,
@@ -13351,7 +13351,7 @@ class ol extends Fn {
13351
13351
  h.resize(l, c), await h.render(), this.onRender();
13352
13352
  }
13353
13353
  }
13354
- const ld = (r, t) => {
13354
+ const cd = (r, t) => {
13355
13355
  const e = [];
13356
13356
  return r.forEach((a) => {
13357
13357
  const n = t.steps.find((i) => i.stepName === a.stepName);
@@ -13362,7 +13362,7 @@ const ld = (r, t) => {
13362
13362
  }
13363
13363
  });
13364
13364
  }), e;
13365
- }, cd = async (r, t, e, a) => {
13365
+ }, dd = async (r, t, e, a) => {
13366
13366
  let n = {
13367
13367
  serializableWorkflow: { steps: [] },
13368
13368
  layouts: {}
@@ -14617,7 +14617,7 @@ const Sl = w`
14617
14617
  ...ProductCollectionFields
14618
14618
  }
14619
14619
  }
14620
- `, dd = async (r) => (await y.getShadowGraphqlClient().query({
14620
+ `, Ad = async (r) => (await y.getShadowGraphqlClient().query({
14621
14621
  query: Sl,
14622
14622
  errorPolicy: "all",
14623
14623
  variables: {
@@ -15176,22 +15176,12 @@ class _e {
15176
15176
  });
15177
15177
  }
15178
15178
  async finish(t, e) {
15179
- if (this.completed)
15180
- return await y.getShadowGraphqlClient().mutate({
15181
- mutation: Ao,
15182
- variables: {
15183
- bundleId: this.id
15184
- }
15185
- }), {
15186
- bundleId: this.id,
15187
- name: this.getName(),
15188
- dispatchDate: this.getDispatchDate() || "",
15189
- purchaseOrder: this.getPurchaseOrder() || "",
15190
- collectionId: this.getProductCollection()?.getId() || "",
15191
- collectionName: this.getProductCollection()?.getName() || "",
15192
- items: [],
15193
- bundleOwnerId: this.ownerId
15194
- };
15179
+ this.completed && await y.getShadowGraphqlClient().mutate({
15180
+ mutation: Ao,
15181
+ variables: {
15182
+ bundleId: this.id
15183
+ }
15184
+ });
15195
15185
  const a = await Oo(
15196
15186
  this.workflowExperiences.map((n) => ({
15197
15187
  workflowManager: n.getWorkflowManager(),
@@ -15574,7 +15564,7 @@ class Ia {
15574
15564
  }
15575
15565
  }
15576
15566
  var Fl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(Fl || {});
15577
- class Ad extends Ia {
15567
+ class ud extends Ia {
15578
15568
  constructor(t) {
15579
15569
  super(`"${t}"`);
15580
15570
  }
@@ -15589,7 +15579,7 @@ class nr extends Ia {
15589
15579
  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);
15590
15580
  }
15591
15581
  }
15592
- class ud extends Ia {
15582
+ class hd extends Ia {
15593
15583
  constructor(t) {
15594
15584
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15595
15585
  }
@@ -15937,7 +15927,7 @@ const Ol = async (r, t) => {
15937
15927
  (o) => Kt.set({ id: o, options: t }, $l(o, n))
15938
15928
  ), s = e.filter((o) => o !== void 0);
15939
15929
  return await Promise.all(s.concat(i));
15940
- }, hd = async (r, t) => (await rr([r], t))[0], Ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15930
+ }, md = async (r, t) => (await rr([r], t))[0], Ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15941
15931
  id: M(),
15942
15932
  panelId: t.name,
15943
15933
  name: t.name,
@@ -15955,7 +15945,7 @@ const Ol = async (r, t) => {
15955
15945
  const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
15956
15946
  return a ? Object.values(a.layouts).map((n) => n.layout) : Ul(t.panels);
15957
15947
  };
15958
- class md {
15948
+ class gd {
15959
15949
  constructor(t) {
15960
15950
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15961
15951
  try {
@@ -15966,7 +15956,7 @@ class md {
15966
15956
  } catch (a) {
15967
15957
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
15968
15958
  }
15969
- }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.0.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15959
+ }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.1.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15970
15960
  }
15971
15961
  configure(t) {
15972
15962
  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 && zr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16604,7 +16594,7 @@ const Vl = async (r, t) => (await y.getShadowGraphqlClient().query({
16604
16594
  variables: {
16605
16595
  themeConfigurationId: t
16606
16596
  }
16607
- })).data.currentIntegration, gd = async (r) => {
16597
+ })).data.currentIntegration, pd = async (r) => {
16608
16598
  const e = await y.getShadowGraphqlClient().query({
16609
16599
  query: Ii,
16610
16600
  errorPolicy: "all",
@@ -16615,20 +16605,20 @@ const Vl = async (r, t) => (await y.getShadowGraphqlClient().query({
16615
16605
  });
16616
16606
  if (e.data.transactions.length !== 0)
16617
16607
  return e.data.transactions[0];
16618
- }, pd = async (r, t) => (await y.getShadowGraphqlClient().query({
16608
+ }, fd = async (r, t) => (await y.getShadowGraphqlClient().query({
16619
16609
  query: Ui,
16620
16610
  errorPolicy: "all",
16621
16611
  variables: {
16622
16612
  themeConfigurationId: r,
16623
16613
  themeInstallId: t
16624
16614
  }
16625
- })).data?.marketplaceThemeInstallConfiguration, fd = async (r) => (await y.getShadowGraphqlClient().query({
16615
+ })).data?.marketplaceThemeInstallConfiguration, Cd = async (r) => (await y.getShadowGraphqlClient().query({
16626
16616
  query: zi,
16627
16617
  errorPolicy: "all",
16628
16618
  variables: {
16629
16619
  id: r
16630
16620
  }
16631
- })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Cd = async (r) => (await y.getShadowGraphqlClient().query({
16621
+ })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, wd = async (r) => (await y.getShadowGraphqlClient().query({
16632
16622
  query: Vi,
16633
16623
  errorPolicy: "all",
16634
16624
  variables: {
@@ -16870,7 +16860,7 @@ class Gl {
16870
16860
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
16871
16861
  }
16872
16862
  }
16873
- class wd {
16863
+ class yd {
16874
16864
  traversableScenes() {
16875
16865
  throw new Error("Method not implemented.");
16876
16866
  }
@@ -17320,7 +17310,7 @@ const jl = w`
17320
17310
  total
17321
17311
  }
17322
17312
  }
17323
- `, yd = async (r, t, e) => await y.getShadowGraphqlClient().mutate({
17313
+ `, Sd = async (r, t, e) => await y.getShadowGraphqlClient().mutate({
17324
17314
  mutation: _l,
17325
17315
  errorPolicy: "all",
17326
17316
  variables: {
@@ -17328,34 +17318,34 @@ const jl = w`
17328
17318
  name: t
17329
17319
  },
17330
17320
  context: e
17331
- }), Sd = async (r, t) => await y.getShadowGraphqlClient().mutate({
17321
+ }), vd = async (r, t) => await y.getShadowGraphqlClient().mutate({
17332
17322
  mutation: Hl,
17333
17323
  errorPolicy: "all",
17334
17324
  variables: {
17335
17325
  id: r,
17336
17326
  name: t
17337
17327
  }
17338
- }), vd = async (r, t) => await y.getShadowGraphqlClient().mutate({
17328
+ }), Ed = async (r, t) => await y.getShadowGraphqlClient().mutate({
17339
17329
  mutation: Xl,
17340
17330
  errorPolicy: "all",
17341
17331
  variables: {
17342
17332
  id: r,
17343
17333
  template: t
17344
17334
  }
17345
- }), Ed = async (r, t) => await y.getShadowGraphqlClient().mutate({
17335
+ }), bd = async (r, t) => await y.getShadowGraphqlClient().mutate({
17346
17336
  mutation: Yl,
17347
17337
  errorPolicy: "all",
17348
17338
  variables: {
17349
17339
  id: r,
17350
17340
  template: t
17351
17341
  }
17352
- }), bd = async (r) => (await y.getShadowGraphqlClient().query({
17342
+ }), Bd = async (r) => (await y.getShadowGraphqlClient().query({
17353
17343
  query: jl,
17354
17344
  errorPolicy: "all",
17355
17345
  variables: {
17356
17346
  email: r
17357
17347
  }
17358
- })).data.customer, Bd = async (r, t, e) => await y.getShadowGraphqlClient().query({
17348
+ })).data.customer, Id = async (r, t, e) => await y.getShadowGraphqlClient().query({
17359
17349
  query: Jl,
17360
17350
  errorPolicy: "all",
17361
17351
  fetchPolicy: "no-cache",
@@ -17364,7 +17354,7 @@ const jl = w`
17364
17354
  offset: e,
17365
17355
  limit: t
17366
17356
  }
17367
- }), Id = async (r, t) => await y.getShadowGraphqlClient().query({
17357
+ }), Pd = async (r, t) => await y.getShadowGraphqlClient().query({
17368
17358
  query: Kl,
17369
17359
  errorPolicy: "all",
17370
17360
  fetchPolicy: "no-cache",
@@ -17372,7 +17362,7 @@ const jl = w`
17372
17362
  id: r
17373
17363
  },
17374
17364
  context: t
17375
- }), Pd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17365
+ }), Dd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17376
17366
  query: Pa,
17377
17367
  errorPolicy: "all",
17378
17368
  fetchPolicy: "no-cache",
@@ -17392,7 +17382,7 @@ const jl = w`
17392
17382
  offset: e,
17393
17383
  limit: t
17394
17384
  }
17395
- }))?.data.customerTransactionsFeed?.items || [], Dd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17385
+ }))?.data.customerTransactionsFeed?.items || [], Fd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17396
17386
  query: Pa,
17397
17387
  errorPolicy: "all",
17398
17388
  fetchPolicy: "no-cache",
@@ -17412,7 +17402,7 @@ const jl = w`
17412
17402
  offset: e,
17413
17403
  limit: t
17414
17404
  }
17415
- }))?.data.customerTransactionsFeed?.items || [], Fd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17405
+ }))?.data.customerTransactionsFeed?.items || [], xd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17416
17406
  query: Pa,
17417
17407
  errorPolicy: "all",
17418
17408
  fetchPolicy: "no-cache",
@@ -17428,7 +17418,7 @@ const jl = w`
17428
17418
  offset: e,
17429
17419
  limit: t
17430
17420
  }
17431
- }))?.data.customerTransactionsFeed?.items || [], xd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17421
+ }))?.data.customerTransactionsFeed?.items || [], kd = async (r, t, e) => (await y.getShadowGraphqlClient().query({
17432
17422
  query: Zl,
17433
17423
  errorPolicy: "all",
17434
17424
  fetchPolicy: "no-cache",
@@ -17587,9 +17577,15 @@ const sr = w`
17587
17577
  ...AddressValidationJobFields
17588
17578
  }
17589
17579
  }
17580
+ `, oc = w`
17581
+ mutation OverrideRecipientAddress($id: String!) {
17582
+ recipientOverrideAddress(id: $id) {
17583
+ id
17584
+ }
17585
+ }
17590
17586
  `;
17591
- var oc = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(oc || {}), lc = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(lc || {});
17592
- const kd = async (r) => {
17587
+ var lc = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(lc || {}), cc = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(cc || {});
17588
+ const Md = async (r) => {
17593
17589
  const t = r.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().query({
17594
17590
  query: rc,
17595
17591
  errorPolicy: "all",
@@ -17603,21 +17599,21 @@ const kd = async (r) => {
17603
17599
  if (n)
17604
17600
  return e.data?.recipients?.find((i) => i.id === n)?.addressValidationJob;
17605
17601
  });
17606
- }, Md = async (r) => (await y.getShadowGraphqlClient().query({
17602
+ }, Td = async (r) => (await y.getShadowGraphqlClient().query({
17607
17603
  query: nc,
17608
17604
  errorPolicy: "all",
17609
17605
  fetchPolicy: "network-only",
17610
17606
  variables: {
17611
17607
  ids: r
17612
17608
  }
17613
- })).data?.addressValidationJobs, Td = async (r) => r.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17609
+ })).data?.addressValidationJobs, Nd = async (r) => r.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
17614
17610
  mutation: ic,
17615
17611
  errorPolicy: "all",
17616
17612
  fetchPolicy: "network-only",
17617
17613
  variables: {
17618
17614
  id: r.getWorkflowManager().getTransaction().recipient.id
17619
17615
  }
17620
- })).data?.recipientValidate : void 0, Nd = async (r) => {
17616
+ })).data?.recipientValidate : void 0, Qd = async (r) => {
17621
17617
  const t = r.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().mutate({
17622
17618
  mutation: sc,
17623
17619
  errorPolicy: "all",
@@ -17631,18 +17627,28 @@ const kd = async (r) => {
17631
17627
  if (n)
17632
17628
  return e.data?.recipientValidateBatch?.find((i) => i.entityId === n);
17633
17629
  });
17630
+ }, Rd = async (r) => {
17631
+ const t = r.getWorkflowManager().getTransaction().recipient?.id;
17632
+ t && await y.getShadowGraphqlClient().mutate({
17633
+ mutation: oc,
17634
+ errorPolicy: "all",
17635
+ fetchPolicy: "network-only",
17636
+ variables: {
17637
+ id: t
17638
+ }
17639
+ });
17634
17640
  };
17635
17641
  export {
17636
17642
  ua as AddonHandle,
17637
- lc as AddressValidationJobStatus,
17638
- oc as AddressValidationResultConfirmationLevel,
17639
- ud as ArrayInput,
17643
+ cc as AddressValidationJobStatus,
17644
+ lc as AddressValidationResultConfirmationLevel,
17645
+ hd as ArrayInput,
17640
17646
  L as AspectType,
17641
17647
  bt as AssetNotFoundError,
17642
17648
  ye as AssetType,
17643
- id as BringForwardCommand,
17644
- rd as BringToBackCommand,
17645
- nd as BringToFrontCommand,
17649
+ sd as BringForwardCommand,
17650
+ id as BringToBackCommand,
17651
+ rd as BringToFrontCommand,
17646
17652
  br as BundleDesignCreationCartAddMode,
17647
17653
  N as CanvasCommand,
17648
17654
  Ae as CollectionProduct,
@@ -17674,16 +17680,16 @@ export {
17674
17680
  Do as InformationStepHandle,
17675
17681
  _a as IntegrationProduct,
17676
17682
  Ir as IntegrationType,
17677
- Xc as LayoutElementFactory,
17683
+ Zc as LayoutElementFactory,
17678
17684
  x as LayoutElementType,
17679
17685
  Y as LayoutNotFoundError,
17680
17686
  Ht as LayoutRenderingPurpose,
17681
17687
  vo as MaterialStepHandle,
17682
17688
  Ee as MisconfigurationError,
17683
- wd as MockWorkflowManager,
17689
+ yd as MockWorkflowManager,
17684
17690
  Eo as ModelStepHandle,
17685
17691
  xo as ModuleStepHandle,
17686
- Zc as MoveCommand,
17692
+ td as MoveCommand,
17687
17693
  nr as ObjectInput,
17688
17694
  Fl as ObjectInputType,
17689
17695
  tr as OptionGlobalPropertyHandle,
@@ -17698,14 +17704,14 @@ export {
17698
17704
  xn as PromiseQueue,
17699
17705
  Bo as QuestionStepHandle,
17700
17706
  Fn as QueueablePromise,
17701
- ed as ResizeCommand,
17707
+ ad as ResizeCommand,
17702
17708
  Yt as ResourceNotFoundError,
17703
- td as RotateCommand,
17709
+ ed as RotateCommand,
17704
17710
  j as ScaleAxis,
17705
- sd as SendBackwardsCommand,
17711
+ od as SendBackwardsCommand,
17706
17712
  Io as ShapeStepHandle,
17707
17713
  Br as ShareActionType,
17708
- md as SpiffCommerceClient,
17714
+ gd as SpiffCommerceClient,
17709
17715
  Se as StakeholderType,
17710
17716
  Er as StepAspectType,
17711
17717
  Z as StepHandle,
@@ -17713,89 +17719,90 @@ export {
17713
17719
  Mt as TextAlgorithm,
17714
17720
  fs as TextChangeCommand,
17715
17721
  dl as TextGlobalPropertyHandle,
17716
- Ad as TextInput,
17722
+ ud as TextInput,
17717
17723
  Po as TextStepHandle,
17718
17724
  yl as Transform,
17719
17725
  wl as TransformCollection,
17720
17726
  V as UnhandledBehaviorError,
17721
17727
  Dr as UnitOfMeasurement,
17722
- ad as UpdateImageSourceCommand,
17728
+ nd as UpdateImageSourceCommand,
17723
17729
  it as Variant,
17724
17730
  zo as WorkflowExperienceEventType,
17725
17731
  Go as WorkflowExperienceImpl,
17726
17732
  O as assetService,
17727
17733
  ti as browserColorToHex,
17728
- Kc as cmPerPixel,
17734
+ _c as cmPerPixel,
17729
17735
  Ro as createDesign,
17730
- Hc as currentDirection,
17731
- Qc as dataUrlFromExternalUrl,
17736
+ Yc as currentDirection,
17737
+ Rc as dataUrlFromExternalUrl,
17732
17738
  Ke as designService,
17733
17739
  fe as determineCorrectFontSizeAndLines,
17734
17740
  Wn as digitalContentStepService,
17735
17741
  dt as domParser,
17736
- vd as duplicateBundle,
17737
- Ed as duplicateTransaction,
17742
+ Ed as duplicateBundle,
17743
+ bd as duplicateTransaction,
17738
17744
  nt as fetchAsString,
17739
- Lc as findAngle,
17745
+ Vc as findAngle,
17740
17746
  $ as findElement,
17741
- $c as findPmsColors,
17747
+ Uc as findPmsColors,
17742
17748
  Vt as frameDataCache,
17743
17749
  St as frameStepService,
17744
17750
  M as generate,
17745
17751
  al as generateCommands,
17746
17752
  ot as generateSVGWithUnknownColors,
17747
- cd as generateStateFromDesignInputSteps,
17748
- Md as getAddressValidationJobs,
17753
+ dd as generateStateFromDesignInputSteps,
17754
+ Td as getAddressValidationJobs,
17749
17755
  Ne as getAttributesFromArrayBuffer,
17750
- Uc as getAxisAlignedBoundingBox,
17756
+ Lc as getAxisAlignedBoundingBox,
17751
17757
  zl as getBoundedOffsets,
17752
- fd as getBundleThemeConfiguration,
17753
- bd as getCustomer,
17754
- Bd as getCustomerBundles,
17755
- Yc as getElementVertices,
17758
+ Cd as getBundleThemeConfiguration,
17759
+ Bd as getCustomer,
17760
+ Id as getCustomerBundles,
17761
+ Jc as getElementVertices,
17756
17762
  Oe as getFrameData,
17757
- od as getGlobalPropertyStateForBundle,
17763
+ ld as getGlobalPropertyStateForBundle,
17758
17764
  Vl as getIntegration,
17759
- qc as getNEPoint,
17760
- Wc as getNWPoint,
17761
- Dd as getOrderedTransactions,
17762
- pd as getOverrideThemeConfiguration,
17763
- Gc as getPointOfRotation,
17764
- dd as getProductCollections,
17765
- jc as getSEPoint,
17765
+ jc as getNEPoint,
17766
+ qc as getNWPoint,
17767
+ Fd as getOrderedTransactions,
17768
+ fd as getOverrideThemeConfiguration,
17769
+ Wc as getPointOfRotation,
17770
+ Ad as getProductCollections,
17771
+ Hc as getSEPoint,
17766
17772
  ya as getSvgElement,
17767
- xd as getTemplateBundles,
17768
- Fd as getTemplateTransactions,
17769
- gd as getTransaction,
17770
- Cd as getTransactionThemeConfiguration,
17771
- Id as getTransactionsForBundle,
17772
- zc as getTrueCoordinates,
17773
- Pd as getUnorderedTransactions,
17774
- kd as getValidationJobsForWorkflowExperiences,
17775
- hd as getWorkflow,
17773
+ kd as getTemplateBundles,
17774
+ xd as getTemplateTransactions,
17775
+ pd as getTransaction,
17776
+ wd as getTransactionThemeConfiguration,
17777
+ Pd as getTransactionsForBundle,
17778
+ Gc as getTrueCoordinates,
17779
+ Dd as getUnorderedTransactions,
17780
+ Md as getValidationJobsForWorkflowExperiences,
17781
+ md as getWorkflow,
17776
17782
  rr as getWorkflows,
17777
17783
  y as graphQlManager,
17778
17784
  pe as illustrationStepService,
17779
- Vc as isCloseToValue,
17785
+ zc as isCloseToValue,
17780
17786
  Nt as loadFont,
17781
- Oc as matchHexToPms,
17787
+ $c as matchHexToPms,
17782
17788
  qn as materialStepService,
17783
17789
  fl as metafieldManager,
17784
- Jc as mmPerPixel,
17790
+ Kc as mmPerPixel,
17785
17791
  jn as modelStepService,
17786
17792
  Ca as modifySVGColors,
17787
17793
  Hn as moduleStepService,
17788
- yd as nameBundle,
17789
- Sd as nameTransaction,
17794
+ Sd as nameBundle,
17795
+ vd as nameTransaction,
17790
17796
  H as optionService,
17791
- _c as outlineFontsInSvg,
17797
+ Xc as outlineFontsInSvg,
17798
+ Rd as overrideWorkflowExperienceRecipientAddress,
17792
17799
  ut as patternImageDataCache,
17793
17800
  k as persistenceService,
17794
17801
  Yn as pictureStepService,
17795
- Rc as pmsToRgb,
17802
+ Oc as pmsToRgb,
17796
17803
  Jn as questionStepService,
17797
- Nc as registerFetchImplementation,
17798
- Tc as registerWindowImplementation,
17804
+ Qc as registerFetchImplementation,
17805
+ Nc as registerWindowImplementation,
17799
17806
  za as rehydrateSerializedLayout,
17800
17807
  _r as rgbToPms,
17801
17808
  ce as rotateAroundPoint,
@@ -17805,14 +17812,14 @@ export {
17805
17812
  zt as shapeStepService,
17806
17813
  ws as shortenUrl,
17807
17814
  gt as spiffCoreConfiguration,
17808
- ld as stepAspectValuesToDesignInputSteps,
17815
+ cd as stepAspectValuesToDesignInputSteps,
17809
17816
  Oa as svgColorValueToDefinition,
17810
17817
  Ln as svgStringDimensions,
17811
17818
  ha as svgToDataUrl,
17812
17819
  G as textStepService,
17813
17820
  Fs as toast,
17814
- Td as validateWorkflowExperienceRecipient,
17815
- Nd as validateWorkflowExperienceRecipients,
17821
+ Nd as validateWorkflowExperienceRecipient,
17822
+ Qd as validateWorkflowExperienceRecipients,
17816
17823
  It as xmlSerializer
17817
17824
  };
17818
17825
  //# sourceMappingURL=index.mjs.map