@spiffcommerce/core 26.24.0 → 26.25.0

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
@@ -158,10 +158,10 @@ class Sr {
158
158
  }
159
159
  const wt = new Sr();
160
160
  let _e, Xe;
161
- function Xl(r) {
161
+ function ec(r) {
162
162
  _e = r;
163
163
  }
164
- function Zl(r) {
164
+ function ac(r) {
165
165
  Xe = r;
166
166
  }
167
167
  function Jt() {
@@ -256,7 +256,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
256
256
  }
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
- }, tc = async (r) => {
259
+ }, nc = async (r) => {
260
260
  const t = await cn(r), e = ln.get(r) || Ie(t);
261
261
  return await Pr(new Blob([t], { type: e }));
262
262
  }, Ir = (r) => {
@@ -3145,7 +3145,7 @@ const Nr = (r) => new Promise((t) => {
3145
3145
  parseInt(r.substring(2, 4), 16),
3146
3146
  parseInt(r.substring(4, 6), 16)
3147
3147
  ]);
3148
- function ec(r) {
3148
+ function rc(r) {
3149
3149
  const t = jt.indexOf(r);
3150
3150
  return t >= 0 ? Ft[t] : "";
3151
3151
  }
@@ -3153,7 +3153,7 @@ function Lr(r) {
3153
3153
  const t = Ft.indexOf(r);
3154
3154
  return t >= 0 ? jt[t] : "";
3155
3155
  }
3156
- function ac(r, t = 64) {
3156
+ function ic(r, t = 64) {
3157
3157
  const e = [], a = [], n = Lr(r);
3158
3158
  n && e.push({
3159
3159
  pms: n,
@@ -3172,7 +3172,7 @@ function ac(r, t = 64) {
3172
3172
  return e.sort((A, u) => A.distance - u.distance);
3173
3173
  }
3174
3174
  const $r = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr($r, { keys: ["pms"] });
3175
- function nc(r, t) {
3175
+ function sc(r, t) {
3176
3176
  return Vr.search(r, t ? { limit: t } : void 0);
3177
3177
  }
3178
3178
  let Qt = null;
@@ -5374,7 +5374,7 @@ const Q = () => {
5374
5374
  ]
5375
5375
  }
5376
5376
  );
5377
- }, rc = (r, t, e, a, n) => {
5377
+ }, oc = (r, t, e, a, n) => {
5378
5378
  const i = gt(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, f = u * A - m * d, p = h * A - g * d, C = u * d + m * A, w = h * d + g * A, v = Math.max(Math.abs(f), Math.abs(p)), S = Math.max(Math.abs(C), Math.abs(w));
5379
5379
  return {
5380
5380
  minX: l - v,
@@ -5382,25 +5382,25 @@ const Q = () => {
5382
5382
  minY: c - S,
5383
5383
  maxY: c + S
5384
5384
  };
5385
- }, ic = (r, t, e) => {
5385
+ }, lc = (r, t, e) => {
5386
5386
  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));
5387
5387
  return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
5388
- }, gt = (r) => r * (Math.PI / 180), sc = (r, t, e) => Math.abs(r - t) < e, oc = (r, t, e) => {
5388
+ }, gt = (r) => r * (Math.PI / 180), cc = (r, t, e) => Math.abs(r - t) < e, dc = (r, t, e) => {
5389
5389
  const a = Math.sin(gt(e)), n = Math.cos(gt(e));
5390
5390
  return {
5391
5391
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5392
5392
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5393
5393
  };
5394
- }, lc = (r, t) => ({
5394
+ }, Ac = (r, t) => ({
5395
5395
  x: (r.x + t.x) / 2,
5396
5396
  y: (r.y + t.y) / 2
5397
- }), cc = (r, t, e, a) => ({
5397
+ }), uc = (r, t, e, a) => ({
5398
5398
  x: r.x + (t == null ? void 0 : t.x) * e,
5399
5399
  y: r.y + (t == null ? void 0 : t.y) * a
5400
- }), dc = (r, t, e, a) => ({
5400
+ }), hc = (r, t, e, a) => ({
5401
5401
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5402
5402
  y: r.y + (t == null ? void 0 : t.y) * a
5403
- }), Ac = (r, t, e, a) => ({
5403
+ }), mc = (r, t, e, a) => ({
5404
5404
  x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
5405
5405
  y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
5406
5406
  }), bt = (r) => {
@@ -5422,7 +5422,7 @@ const Q = () => {
5422
5422
  case H.Southwest:
5423
5423
  return H.Northwest;
5424
5424
  }
5425
- }, uc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, hc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5425
+ }, gc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, fc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5426
5426
  const a = gt(r.rotation), n = {
5427
5427
  x: t.x + r.x * e.x,
5428
5428
  y: t.x + r.y * e.y
@@ -5452,7 +5452,7 @@ const Q = () => {
5452
5452
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5453
5453
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5454
5454
  };
5455
- }, mc = 0.352778, gc = 0.035277, Fn = (r) => {
5455
+ }, pc = 0.352778, Cc = 0.035277, Fn = (r) => {
5456
5456
  const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
5457
5457
  return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
5458
5458
  "g",
@@ -5677,7 +5677,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5677
5677
  }, aa = (r, t) => {
5678
5678
  const e = new Oi(t);
5679
5679
  return kn.set(r, e), e;
5680
- }, fc = async (r) => {
5680
+ }, wc = async (r) => {
5681
5681
  const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
5682
5682
  a.querySelectorAll("style").forEach((d) => {
5683
5683
  var u;
@@ -6329,7 +6329,7 @@ const Zt = (r) => {
6329
6329
  }
6330
6330
  return o;
6331
6331
  };
6332
- class pc {
6332
+ class yc {
6333
6333
  static async getFrame(t, e) {
6334
6334
  const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6335
6335
  return {
@@ -6575,7 +6575,7 @@ class $a extends R {
6575
6575
  };
6576
6576
  }
6577
6577
  }
6578
- class Cc extends R {
6578
+ class Sc extends R {
6579
6579
  constructor(t, e, a) {
6580
6580
  super(), this.id = t, this.x = e, this.y = a;
6581
6581
  }
@@ -6598,7 +6598,7 @@ class Cc extends R {
6598
6598
  };
6599
6599
  }
6600
6600
  }
6601
- class wc extends R {
6601
+ class vc extends R {
6602
6602
  constructor(t, e) {
6603
6603
  super(), this.id = t, this.angle = e;
6604
6604
  }
@@ -6620,7 +6620,7 @@ class wc extends R {
6620
6620
  };
6621
6621
  }
6622
6622
  }
6623
- class yc extends R {
6623
+ class Ec extends R {
6624
6624
  constructor(t, e, a) {
6625
6625
  super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
6626
6626
  }
@@ -6932,7 +6932,7 @@ class as extends R {
6932
6932
  };
6933
6933
  }
6934
6934
  }
6935
- class Sc extends R {
6935
+ class Bc extends R {
6936
6936
  constructor(t, e) {
6937
6937
  super(), this.id = t, this.src = e;
6938
6938
  }
@@ -7051,7 +7051,7 @@ class rs extends R {
7051
7051
  };
7052
7052
  }
7053
7053
  }
7054
- class vc extends R {
7054
+ class bc extends R {
7055
7055
  /**
7056
7056
  * @param id The targeted element to bring to the front.
7057
7057
  */
@@ -7080,7 +7080,7 @@ class vc extends R {
7080
7080
  };
7081
7081
  }
7082
7082
  }
7083
- class Ec extends R {
7083
+ class Ic extends R {
7084
7084
  /**
7085
7085
  * @param id The targeted element to bring to the back.
7086
7086
  */
@@ -7111,7 +7111,7 @@ class Ec extends R {
7111
7111
  };
7112
7112
  }
7113
7113
  }
7114
- class Bc extends R {
7114
+ class Dc extends R {
7115
7115
  /**
7116
7116
  * @param id The targeted element to bring to the front.
7117
7117
  */
@@ -7138,7 +7138,7 @@ class Bc extends R {
7138
7138
  };
7139
7139
  }
7140
7140
  }
7141
- class bc extends R {
7141
+ class Pc extends R {
7142
7142
  /**
7143
7143
  * @param id The targeted element to bring to the front.
7144
7144
  */
@@ -11402,7 +11402,7 @@ class ie {
11402
11402
  case D.Model:
11403
11403
  return new ro(t, e, t.getStepTags(e.stepName));
11404
11404
  case D.Frame:
11405
- return new Cl(t, e, t.getStepTags(e.stepName));
11405
+ return new Sl(t, e, t.getStepTags(e.stepName));
11406
11406
  case D.Module:
11407
11407
  return new uo(t, e, t.getStepTags(e.stepName));
11408
11408
  default:
@@ -13019,7 +13019,7 @@ class Vo extends Dn {
13019
13019
  u.resize(l, c), await u.render(), this.onRender();
13020
13020
  }
13021
13021
  }
13022
- const Ic = (r, t) => {
13022
+ const Fc = (r, t) => {
13023
13023
  const e = [];
13024
13024
  return r.forEach((a) => {
13025
13025
  const n = t.steps.find((i) => i.stepName === a.stepName);
@@ -13030,7 +13030,7 @@ const Ic = (r, t) => {
13030
13030
  }
13031
13031
  });
13032
13032
  }), e;
13033
- }, Dc = async (r, t, e, a) => {
13033
+ }, xc = async (r, t, e, a) => {
13034
13034
  let n = {
13035
13035
  serializableWorkflow: { steps: [] },
13036
13036
  layouts: {}
@@ -13825,7 +13825,83 @@ class Ho {
13825
13825
  };
13826
13826
  }
13827
13827
  }
13828
- class qo {
13828
+ const qo = y`
13829
+ query GetManyMetafields($entityIds: [String!]!) {
13830
+ metafieldsMany(entityIds: $entityIds) {
13831
+ id
13832
+ value
13833
+ metafieldConfiguration {
13834
+ id
13835
+ name
13836
+ }
13837
+ }
13838
+ }
13839
+ `;
13840
+ class Yo {
13841
+ constructor() {
13842
+ this.internalMap = /* @__PURE__ */ new Map();
13843
+ }
13844
+ /**
13845
+ * Given a specific entity, request the given keys for that entity.
13846
+ * This will first check if the keys are already present in the internal map, and if not, it will fetch them from the server.
13847
+ * @param entityId The entity to check.
13848
+ * @param keys The keys to look for.
13849
+ * @returns Returns map of keys and values for the given entity. Missing keys will not be present. Use map.has() to check if a key was present.
13850
+ */
13851
+ async requestKeysForEntity(t, e) {
13852
+ const a = /* @__PURE__ */ new Map();
13853
+ return await this.ensureIdsArePresent([t]), e.forEach((n) => {
13854
+ const i = this.requestKeyForEntityIfAvailable(t, n);
13855
+ i && a.set(n, i);
13856
+ }), a;
13857
+ }
13858
+ async ensureIdsArePresent(t) {
13859
+ if (t.every((a) => this.internalMap.has(a)))
13860
+ return;
13861
+ const e = await b.getShadowGraphqlClient().query({
13862
+ query: qo,
13863
+ errorPolicy: "all",
13864
+ variables: {
13865
+ entityIds: t.filter((a) => !this.internalMap.has(a))
13866
+ }
13867
+ });
13868
+ t.forEach((a, n) => {
13869
+ const i = e.data.metafieldsMany[n];
13870
+ this.internalMap.set(
13871
+ a,
13872
+ i.map((s) => ({ key: s.metafieldConfiguration.name, value: s.value }))
13873
+ );
13874
+ });
13875
+ }
13876
+ /**
13877
+ * Returns a metafield for this product if available. Fetching from the server if not available locally.
13878
+ * @param entityId The entity to request a field for.
13879
+ * @param key The field name to request
13880
+ * @returns A promise resolving to the field if available or undefined if not.
13881
+ */
13882
+ async requestKeyForEntity(t, e) {
13883
+ if (!this.internalMap.has(t))
13884
+ return;
13885
+ let a = this.internalMap.get(t);
13886
+ const n = a.find((i) => i.key === e);
13887
+ return n || (await this.ensureIdsArePresent([t]), a = this.internalMap.get(t)), n ? JSON.parse(n.value) : void 0;
13888
+ }
13889
+ /**
13890
+ * Returns a metafield for this product if available. Checks locally only, use ensureIdsArePresent to fetch first from the server.
13891
+ * @param entityId The entity to request a field for.
13892
+ * @param key The field name to request
13893
+ * @returns A promise resolving to the field if available or undefined if not.
13894
+ */
13895
+ requestKeyForEntityIfAvailable(t, e) {
13896
+ if (!this.internalMap.has(t))
13897
+ return;
13898
+ const n = this.internalMap.get(t).find((i) => i.key === e);
13899
+ if (n)
13900
+ return JSON.parse(n.value);
13901
+ }
13902
+ }
13903
+ const Jo = new Yo();
13904
+ class Ko {
13829
13905
  constructor(t) {
13830
13906
  this.fullFetched = !1, this.collection = t;
13831
13907
  const e = this.collection.productCollectionProducts;
@@ -13939,7 +14015,7 @@ class qo {
13939
14015
  }
13940
14016
  getTransformCollection() {
13941
14017
  if (this.collection.transformCollection)
13942
- return new Yo(this.collection.transformCollection);
14018
+ return new _o(this.collection.transformCollection);
13943
14019
  }
13944
14020
  /**
13945
14021
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14075,6 +14151,14 @@ class se {
14075
14151
  }
14076
14152
  ), (o = a == null ? void 0 : a.additionalIntegrationProduct) != null && o.product ? e + (a.additionalIntegrationProduct.product.basePrice || 0) : e;
14077
14153
  }
14154
+ /**
14155
+ * Requests a set of metafields for this product. Metafields that are not available locally will be fetched from the server.
14156
+ * @param keys The set of metafield keys to request.
14157
+ * @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.
14158
+ */
14159
+ async requestMetafields(t) {
14160
+ return Jo.requestKeysForEntity(this.product.id, t);
14161
+ }
14078
14162
  }
14079
14163
  class zt {
14080
14164
  constructor(t) {
@@ -14100,7 +14184,7 @@ class zt {
14100
14184
  return this.workflow.imageUrl;
14101
14185
  }
14102
14186
  }
14103
- class Yo {
14187
+ class _o {
14104
14188
  constructor(t) {
14105
14189
  this.collection = t;
14106
14190
  }
@@ -14120,10 +14204,10 @@ class Yo {
14120
14204
  * @returns The transforms in this collection.
14121
14205
  */
14122
14206
  getTransforms() {
14123
- return this.collection.transforms.map((t) => new Jo(t));
14207
+ return this.collection.transforms.map((t) => new Xo(t));
14124
14208
  }
14125
14209
  }
14126
- class Jo {
14210
+ class Xo {
14127
14211
  constructor(t) {
14128
14212
  this.transform = t;
14129
14213
  }
@@ -14150,7 +14234,7 @@ class Jo {
14150
14234
  };
14151
14235
  }
14152
14236
  }
14153
- const Ko = y`
14237
+ const Zo = y`
14154
14238
  mutation AddAddressToBundle(
14155
14239
  $bundleId: String!
14156
14240
  $streetAddress: String
@@ -14172,21 +14256,21 @@ const Ko = y`
14172
14256
  id
14173
14257
  }
14174
14258
  }
14175
- `, _o = y`
14259
+ `, tl = y`
14176
14260
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14177
14261
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14178
14262
  id
14179
14263
  }
14180
14264
  }
14181
- `, Xo = y`
14265
+ `, el = y`
14182
14266
  mutation GenerateQuoteId($id: String!) {
14183
14267
  bundleGenerateQuoteId(id: $id) {
14184
14268
  id
14185
14269
  quoteId
14186
14270
  }
14187
14271
  }
14188
- `, Zo = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), tl = (r, t, e) => {
14189
- const n = Zo(
14272
+ `, al = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), nl = (r, t, e) => {
14273
+ const n = al(
14190
14274
  r,
14191
14275
  t,
14192
14276
  e,
@@ -14240,7 +14324,7 @@ class He {
14240
14324
  async generateQuoteId() {
14241
14325
  var a, n;
14242
14326
  const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
14243
- mutation: Xo,
14327
+ mutation: el,
14244
14328
  variables: {
14245
14329
  id: this.id
14246
14330
  },
@@ -14252,7 +14336,7 @@ class He {
14252
14336
  }
14253
14337
  async attachAddress(t, e, a, n, i, s) {
14254
14338
  await b.getShadowGraphqlClient().mutate({
14255
- mutation: Ko,
14339
+ mutation: Zo,
14256
14340
  variables: {
14257
14341
  bundleId: this.id,
14258
14342
  streetAddress: t || void 0,
@@ -14269,7 +14353,7 @@ class He {
14269
14353
  }
14270
14354
  async attachOrganization(t) {
14271
14355
  await b.getShadowGraphqlClient().mutate({
14272
- mutation: _o,
14356
+ mutation: tl,
14273
14357
  variables: {
14274
14358
  bundleId: this.id,
14275
14359
  organizationName: t
@@ -14343,7 +14427,7 @@ class He {
14343
14427
  return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
14344
14428
  }
14345
14429
  getProductCollection() {
14346
- return this.productCollection ? new qo(this.productCollection) : void 0;
14430
+ return this.productCollection ? new Ko(this.productCollection) : void 0;
14347
14431
  }
14348
14432
  async initializeAdditionalRequiredColorChannels(t) {
14349
14433
  var e, a, n, i;
@@ -14354,7 +14438,7 @@ class He {
14354
14438
  (d) => d.name === l
14355
14439
  );
14356
14440
  if (c && c.type === et.ColorOption) {
14357
- const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = tl(
14441
+ const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = nl(
14358
14442
  this.getWorkflowExperiences(),
14359
14443
  this.globalConfigurationPropertyId || "",
14360
14444
  l
@@ -14854,14 +14938,14 @@ class He {
14854
14938
  };
14855
14939
  }
14856
14940
  }
14857
- const el = y`
14941
+ const rl = y`
14858
14942
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
14859
14943
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
14860
14944
  id
14861
14945
  }
14862
14946
  }
14863
14947
  `;
14864
- class al {
14948
+ class il {
14865
14949
  /**
14866
14950
  *
14867
14951
  * @param id
@@ -14872,7 +14956,7 @@ class al {
14872
14956
  async execute(t, e, a) {
14873
14957
  var A, u, h;
14874
14958
  const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
14875
- mutation: el,
14959
+ mutation: rl,
14876
14960
  variables: {
14877
14961
  processFlowId: t,
14878
14962
  inputs: [...e.map((m) => m.getValueForTransmission())]
@@ -14914,7 +14998,7 @@ class al {
14914
14998
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
14915
14999
  );
14916
15000
  if (m.completedAt) {
14917
- o = !0, d = new nl(m);
15001
+ o = !0, d = new sl(m);
14918
15002
  break;
14919
15003
  }
14920
15004
  l += 1;
@@ -14928,7 +15012,7 @@ class al {
14928
15012
  return Promise.resolve(d);
14929
15013
  }
14930
15014
  }
14931
- class nl {
15015
+ class sl {
14932
15016
  constructor(t) {
14933
15017
  this.execution = t;
14934
15018
  }
@@ -15013,8 +15097,8 @@ class ba {
15013
15097
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15014
15098
  }
15015
15099
  }
15016
- var rl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(rl || {});
15017
- class Pc extends ba {
15100
+ var ol = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(ol || {});
15101
+ class kc extends ba {
15018
15102
  constructor(t) {
15019
15103
  super(`"${t}"`);
15020
15104
  }
@@ -15029,7 +15113,7 @@ class Xn extends ba {
15029
15113
  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);
15030
15114
  }
15031
15115
  }
15032
- class Fc extends ba {
15116
+ class Mc extends ba {
15033
15117
  constructor(t) {
15034
15118
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15035
15119
  }
@@ -15087,7 +15171,7 @@ const Ya = y`
15087
15171
  }
15088
15172
  }
15089
15173
  }
15090
- `, il = y`
15174
+ `, ll = y`
15091
15175
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15092
15176
  customerCreate(details: $details) {
15093
15177
  id
@@ -15097,7 +15181,7 @@ const Ya = y`
15097
15181
  }
15098
15182
  }
15099
15183
  }
15100
- `, sl = y`
15184
+ `, cl = y`
15101
15185
  mutation CustomerAuthenticate($loginToken: String!) {
15102
15186
  customerAuthenticate(loginToken: $loginToken) {
15103
15187
  id
@@ -15127,11 +15211,11 @@ const Ya = y`
15127
15211
  }
15128
15212
  }
15129
15213
  }
15130
- `, ol = y`
15214
+ `, dl = y`
15131
15215
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15132
15216
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15133
15217
  }
15134
- `, ll = y`
15218
+ `, Al = y`
15135
15219
  mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
15136
15220
  customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
15137
15221
  id
@@ -15162,7 +15246,7 @@ const Ya = y`
15162
15246
  }
15163
15247
  }
15164
15248
  }
15165
- `, cl = y`
15249
+ `, ul = y`
15166
15250
  query CustomerMetafields($id: String!) {
15167
15251
  metafields(entityId: $id) {
15168
15252
  id
@@ -15180,7 +15264,7 @@ const Ya = y`
15180
15264
  }
15181
15265
  }
15182
15266
  }
15183
- `, dl = async (r, t) => {
15267
+ `, hl = async (r, t) => {
15184
15268
  var n;
15185
15269
  const e = await b.getShadowGraphqlClient().query({
15186
15270
  query: Ei(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
@@ -15204,7 +15288,7 @@ const Ya = y`
15204
15288
  }), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
15205
15289
  }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
15206
15290
  }), a;
15207
- }, Al = async (r, t) => {
15291
+ }, ml = async (r, t) => {
15208
15292
  const a = (await t).find((n) => n.id === r);
15209
15293
  if (!a)
15210
15294
  throw new Error(`Workflow not found: ${r}`);
@@ -15213,11 +15297,11 @@ const Ya = y`
15213
15297
  const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
15214
15298
  if (a.length === 0)
15215
15299
  return Promise.all(e);
15216
- const n = dl(a, t), i = a.map(
15217
- (o) => Ht.set({ id: o, options: t }, Al(o, n))
15300
+ const n = hl(a, t), i = a.map(
15301
+ (o) => Ht.set({ id: o, options: t }, ml(o, n))
15218
15302
  ), s = e.filter((o) => o !== void 0);
15219
15303
  return await Promise.all(s.concat(i));
15220
- }, xc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15304
+ }, Tc = async (r, t) => (await Zn([r], t))[0], gl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15221
15305
  id: Q(),
15222
15306
  panelId: t.name,
15223
15307
  name: t.name,
@@ -15231,11 +15315,11 @@ const Ya = y`
15231
15315
  previewRegion: t.previewRegion,
15232
15316
  useEditableArea: t.useEditableArea,
15233
15317
  editableArea: t.editableArea
15234
- })), hl = (r, t) => {
15318
+ })), fl = (r, t) => {
15235
15319
  const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
15236
- return a ? Object.values(a.layouts).map((n) => n.layout) : ul(t.panels);
15320
+ return a ? Object.values(a.layouts).map((n) => n.layout) : gl(t.panels);
15237
15321
  };
15238
- class kc {
15322
+ class Qc {
15239
15323
  constructor(t) {
15240
15324
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
15241
15325
  try {
@@ -15246,7 +15330,7 @@ class kc {
15246
15330
  } catch (a) {
15247
15331
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15248
15332
  }
15249
- }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.24.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15333
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.25.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15250
15334
  }
15251
15335
  configure(t) {
15252
15336
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15266,14 +15350,14 @@ class kc {
15266
15350
  getFlowService() {
15267
15351
  if (!xr())
15268
15352
  throw new Error("Application key required to use Flow Service.");
15269
- return new al();
15353
+ return new il();
15270
15354
  }
15271
15355
  async getIntegration() {
15272
15356
  if (this.activeIntegration)
15273
15357
  return this.activeIntegration;
15274
15358
  if (!this.options.applicationKey)
15275
15359
  throw new Error("Cannot get current Integration without specifying an Application Key.");
15276
- return this.activeIntegration = ml(this.options.applicationKey), this.activeIntegration;
15360
+ return this.activeIntegration = pl(this.options.applicationKey), this.activeIntegration;
15277
15361
  }
15278
15362
  async canUseAddon(t) {
15279
15363
  var e;
@@ -15422,7 +15506,7 @@ class kc {
15422
15506
  })).data.customer;
15423
15507
  if (!n.id) {
15424
15508
  const l = (s = (await e.mutate({
15425
- mutation: il,
15509
+ mutation: ll,
15426
15510
  errorPolicy: "all",
15427
15511
  fetchPolicy: "no-cache",
15428
15512
  variables: {
@@ -15457,7 +15541,7 @@ class kc {
15457
15541
  if (!n)
15458
15542
  return !1;
15459
15543
  const s = (o = (await e.mutate({
15460
- mutation: sl,
15544
+ mutation: cl,
15461
15545
  errorPolicy: "all",
15462
15546
  fetchPolicy: "no-cache",
15463
15547
  variables: {
@@ -15472,7 +15556,7 @@ class kc {
15472
15556
  */
15473
15557
  async generateVerificationCode(t) {
15474
15558
  await b.getShadowGraphqlClient().mutate({
15475
- mutation: ol,
15559
+ mutation: dl,
15476
15560
  variables: {
15477
15561
  emailAddress: t
15478
15562
  }
@@ -15487,7 +15571,7 @@ class kc {
15487
15571
  async verifyCode(t, e) {
15488
15572
  var i, s;
15489
15573
  const n = (i = (await b.getShadowGraphqlClient().mutate({
15490
- mutation: ll,
15574
+ mutation: Al,
15491
15575
  errorPolicy: "all",
15492
15576
  fetchPolicy: "no-cache",
15493
15577
  variables: {
@@ -15511,7 +15595,7 @@ class kc {
15511
15595
  if (!((e = this.customer) != null && e.id))
15512
15596
  throw new Error("Customer must be logged in before calling this function.");
15513
15597
  return (await b.getShadowGraphqlClient().query({
15514
- query: cl,
15598
+ query: ul,
15515
15599
  variables: {
15516
15600
  id: this.customer.id
15517
15601
  }
@@ -15777,7 +15861,7 @@ class kc {
15777
15861
  const G = JSON.parse(M.workflowState);
15778
15862
  V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await La(G), V.reloadedState = G;
15779
15863
  } else
15780
- V.layouts = hl(
15864
+ V.layouts = fl(
15781
15865
  V.transaction,
15782
15866
  V.workflow
15783
15867
  );
@@ -15861,7 +15945,7 @@ class kc {
15861
15945
  };
15862
15946
  }
15863
15947
  }
15864
- const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15948
+ const pl = async (r, t) => (await b.getShadowGraphqlClient().query({
15865
15949
  query: Di,
15866
15950
  errorPolicy: "all",
15867
15951
  fetchPolicy: "no-cache",
@@ -15873,7 +15957,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15873
15957
  variables: {
15874
15958
  themeConfigurationId: t
15875
15959
  }
15876
- })).data.currentIntegration, Mc = async (r) => {
15960
+ })).data.currentIntegration, Nc = async (r) => {
15877
15961
  const e = await b.getShadowGraphqlClient().query({
15878
15962
  query: hi,
15879
15963
  errorPolicy: "all",
@@ -15884,7 +15968,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15884
15968
  });
15885
15969
  if (e.data.transactions.length !== 0)
15886
15970
  return e.data.transactions[0];
15887
- }, Tc = async (r, t) => {
15971
+ }, Rc = async (r, t) => {
15888
15972
  var a;
15889
15973
  return (a = (await b.getShadowGraphqlClient().query({
15890
15974
  query: Ii,
@@ -15894,7 +15978,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15894
15978
  themeInstallId: t
15895
15979
  }
15896
15980
  })).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
15897
- }, Qc = async (r) => {
15981
+ }, Oc = async (r) => {
15898
15982
  var e, a, n;
15899
15983
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
15900
15984
  query: Fi,
@@ -15903,7 +15987,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15903
15987
  id: r
15904
15988
  }
15905
15989
  })).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
15906
- }, Nc = async (r) => {
15990
+ }, Uc = async (r) => {
15907
15991
  var e, a, n;
15908
15992
  return (n = (a = (e = (await b.getShadowGraphqlClient().query({
15909
15993
  query: Pi,
@@ -15913,7 +15997,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
15913
15997
  }
15914
15998
  })).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
15915
15999
  };
15916
- function gl(r, t, e, a) {
16000
+ function Cl(r, t, e, a) {
15917
16001
  const n = e.width * r.zoom, i = e.height * r.zoom;
15918
16002
  if (a) {
15919
16003
  const o = r, l = Math.max(t.width / e.width, t.height / e.height);
@@ -15927,7 +16011,7 @@ function gl(r, t, e, a) {
15927
16011
  function le(r, t, e) {
15928
16012
  return Math.min(Math.max(r, t), e);
15929
16013
  }
15930
- class fl {
16014
+ class wl {
15931
16015
  constructor(t, e) {
15932
16016
  this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
15933
16017
  useThreshold: !1,
@@ -16070,7 +16154,7 @@ class fl {
16070
16154
  return;
16071
16155
  }
16072
16156
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
16073
- this.offsets[o] = gl(t[o], s, this.imageData, this.forceImageCover);
16157
+ this.offsets[o] = Cl(t[o], s, this.imageData, this.forceImageCover);
16074
16158
  }), this._debouncedUpdateFrameOffsets(
16075
16159
  this.offsets,
16076
16160
  n,
@@ -16149,7 +16233,7 @@ class fl {
16149
16233
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
16150
16234
  }
16151
16235
  }
16152
- class Rc {
16236
+ class Lc {
16153
16237
  approveTransaction(t) {
16154
16238
  throw new Error("Method not implemented.");
16155
16239
  }
@@ -16308,12 +16392,12 @@ class Rc {
16308
16392
  return [];
16309
16393
  }
16310
16394
  }
16311
- var pl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(pl || {});
16312
- class Cl extends rt {
16395
+ var yl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(yl || {});
16396
+ class Sl extends rt {
16313
16397
  constructor(t, e, a) {
16314
16398
  super(t, e, a);
16315
16399
  const n = e.data;
16316
- this.frameService = new fl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
16400
+ this.frameService = new wl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
16317
16401
  }
16318
16402
  selectVariant(t) {
16319
16403
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -16482,7 +16566,7 @@ class Cl extends rt {
16482
16566
  return this.manager.getStepStorage(this.step.stepName);
16483
16567
  }
16484
16568
  }
16485
- const wl = y`
16569
+ const vl = y`
16486
16570
  query GetLoggedInCustomer($email: String!) {
16487
16571
  customer(emailAddress: $email) {
16488
16572
  id
@@ -16525,21 +16609,21 @@ const wl = y`
16525
16609
  total
16526
16610
  }
16527
16611
  }
16528
- `, yl = y`
16612
+ `, El = y`
16529
16613
  mutation SetTransactionDesignName($id: String!, $name: String!) {
16530
16614
  transactionUpdate(id: $id, designName: $name) {
16531
16615
  id
16532
16616
  designName
16533
16617
  }
16534
16618
  }
16535
- `, Sl = y`
16619
+ `, Bl = y`
16536
16620
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
16537
16621
  transactionDuplicate(id: $id, template: $template) {
16538
16622
  id
16539
16623
  workflowViewerLink
16540
16624
  }
16541
16625
  }
16542
- `, vl = y`
16626
+ `, bl = y`
16543
16627
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
16544
16628
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
16545
16629
  items {
@@ -16552,7 +16636,7 @@ const wl = y`
16552
16636
  total
16553
16637
  }
16554
16638
  }
16555
- `, El = y`
16639
+ `, Il = y`
16556
16640
  query GetTransactionsForBundle($id: String!) {
16557
16641
  bundles(ids: [$id]) {
16558
16642
  id
@@ -16573,21 +16657,21 @@ const wl = y`
16573
16657
  }
16574
16658
  }
16575
16659
  }
16576
- `, Bl = y`
16660
+ `, Dl = y`
16577
16661
  mutation SetBundleName($id: String!, $name: String!) {
16578
16662
  bundleUpdate(id: $id, name: $name) {
16579
16663
  id
16580
16664
  name
16581
16665
  }
16582
16666
  }
16583
- `, bl = y`
16667
+ `, Pl = y`
16584
16668
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
16585
16669
  bundleDuplicate(id: $id, template: $template) {
16586
16670
  id
16587
16671
  workflowViewerLink
16588
16672
  }
16589
16673
  }
16590
- `, Il = y`
16674
+ `, Fl = y`
16591
16675
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
16592
16676
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
16593
16677
  items {
@@ -16600,43 +16684,43 @@ const wl = y`
16600
16684
  total
16601
16685
  }
16602
16686
  }
16603
- `, Oc = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
16604
- mutation: Bl,
16687
+ `, $c = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
16688
+ mutation: Dl,
16605
16689
  errorPolicy: "all",
16606
16690
  variables: {
16607
16691
  id: r,
16608
16692
  name: t
16609
16693
  },
16610
16694
  context: e
16611
- }), Uc = async (r, t) => await b.getShadowGraphqlClient().mutate({
16612
- mutation: yl,
16695
+ }), Vc = async (r, t) => await b.getShadowGraphqlClient().mutate({
16696
+ mutation: El,
16613
16697
  errorPolicy: "all",
16614
16698
  variables: {
16615
16699
  id: r,
16616
16700
  name: t
16617
16701
  }
16618
- }), Lc = async (r, t) => await b.getShadowGraphqlClient().mutate({
16619
- mutation: bl,
16702
+ }), zc = async (r, t) => await b.getShadowGraphqlClient().mutate({
16703
+ mutation: Pl,
16620
16704
  errorPolicy: "all",
16621
16705
  variables: {
16622
16706
  id: r,
16623
16707
  template: t
16624
16708
  }
16625
- }), $c = async (r, t) => await b.getShadowGraphqlClient().mutate({
16626
- mutation: Sl,
16709
+ }), Gc = async (r, t) => await b.getShadowGraphqlClient().mutate({
16710
+ mutation: Bl,
16627
16711
  errorPolicy: "all",
16628
16712
  variables: {
16629
16713
  id: r,
16630
16714
  template: t
16631
16715
  }
16632
- }), Vc = async (r) => (await b.getShadowGraphqlClient().query({
16633
- query: wl,
16716
+ }), Wc = async (r) => (await b.getShadowGraphqlClient().query({
16717
+ query: vl,
16634
16718
  errorPolicy: "all",
16635
16719
  variables: {
16636
16720
  email: r
16637
16721
  }
16638
- })).data.customer, zc = async (r, t, e) => await b.getShadowGraphqlClient().query({
16639
- query: vl,
16722
+ })).data.customer, jc = async (r, t, e) => await b.getShadowGraphqlClient().query({
16723
+ query: bl,
16640
16724
  errorPolicy: "all",
16641
16725
  fetchPolicy: "no-cache",
16642
16726
  variables: {
@@ -16644,15 +16728,15 @@ const wl = y`
16644
16728
  offset: e,
16645
16729
  limit: t
16646
16730
  }
16647
- }), Gc = async (r, t) => await b.getShadowGraphqlClient().query({
16648
- query: El,
16731
+ }), Hc = async (r, t) => await b.getShadowGraphqlClient().query({
16732
+ query: Il,
16649
16733
  errorPolicy: "all",
16650
16734
  fetchPolicy: "no-cache",
16651
16735
  variables: {
16652
16736
  id: r
16653
16737
  },
16654
16738
  context: t
16655
- }), Wc = async (r, t, e) => {
16739
+ }), qc = async (r, t, e) => {
16656
16740
  var n;
16657
16741
  const a = await b.getShadowGraphqlClient().query({
16658
16742
  query: Ia,
@@ -16676,7 +16760,7 @@ const wl = y`
16676
16760
  }
16677
16761
  });
16678
16762
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
16679
- }, jc = async (r, t, e) => {
16763
+ }, Yc = async (r, t, e) => {
16680
16764
  var n;
16681
16765
  const a = await b.getShadowGraphqlClient().query({
16682
16766
  query: Ia,
@@ -16700,7 +16784,7 @@ const wl = y`
16700
16784
  }
16701
16785
  });
16702
16786
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
16703
- }, Hc = async (r, t, e) => {
16787
+ }, Jc = async (r, t, e) => {
16704
16788
  var n;
16705
16789
  const a = await b.getShadowGraphqlClient().query({
16706
16790
  query: Ia,
@@ -16720,10 +16804,10 @@ const wl = y`
16720
16804
  }
16721
16805
  });
16722
16806
  return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
16723
- }, qc = async (r, t, e) => {
16807
+ }, Kc = async (r, t, e) => {
16724
16808
  var n;
16725
16809
  const a = await b.getShadowGraphqlClient().query({
16726
- query: Il,
16810
+ query: Fl,
16727
16811
  errorPolicy: "all",
16728
16812
  fetchPolicy: "no-cache",
16729
16813
  variables: {
@@ -16744,7 +16828,7 @@ const wl = y`
16744
16828
  console.error("vite-plugin-css-injected-by-js", t);
16745
16829
  }
16746
16830
  })();
16747
- var Dl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Dl || {}), Pl = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(Pl || {}), K;
16831
+ var xl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(xl || {}), kl = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(kl || {}), K;
16748
16832
  K = { __e: function(r, t, e, a) {
16749
16833
  for (var n, i, s; t = t.__; )
16750
16834
  if ((n = t.__c) && !n.__)
@@ -16757,7 +16841,7 @@ K = { __e: function(r, t, e, a) {
16757
16841
  throw r;
16758
16842
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
16759
16843
  var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16760
- function Fl() {
16844
+ function Ml() {
16761
16845
  for (var r; r = tr.shift(); )
16762
16846
  if (r.__P && r.__H)
16763
16847
  try {
@@ -16777,7 +16861,7 @@ K.__b = function(r) {
16777
16861
  }, K.diffed = function(r) {
16778
16862
  Xa && Xa(r);
16779
16863
  var t = r.__c;
16780
- t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || xl)(Fl)), t.__H.__.forEach(function(e) {
16864
+ t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Tl)(Ml)), t.__H.__.forEach(function(e) {
16781
16865
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
16782
16866
  })), qe = st = null;
16783
16867
  }, K.__c = function(r, t) {
@@ -16804,7 +16888,7 @@ K.__b = function(r) {
16804
16888
  }), e.__H = void 0, t && K.__e(t, e.__v));
16805
16889
  };
16806
16890
  var en = typeof requestAnimationFrame == "function";
16807
- function xl(r) {
16891
+ function Tl(r) {
16808
16892
  var t, e = function() {
16809
16893
  clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
16810
16894
  }, a = setTimeout(e, 100);
@@ -16820,35 +16904,35 @@ function la(r) {
16820
16904
  }
16821
16905
  export {
16822
16906
  da as AddonHandle,
16823
- Fc as ArrayInput,
16907
+ Mc as ArrayInput,
16824
16908
  et as AspectType,
16825
16909
  yt as AssetNotFoundError,
16826
16910
  he as AssetType,
16827
- Bc as BringForwardCommand,
16828
- Ec as BringToBackCommand,
16829
- vc as BringToFrontCommand,
16911
+ Dc as BringForwardCommand,
16912
+ Ic as BringToBackCommand,
16913
+ bc as BringToFrontCommand,
16830
16914
  mr as BundleDesignCreationCartAddMode,
16831
16915
  R as CanvasCommand,
16832
16916
  se as CollectionProduct,
16833
16917
  Ha as ColorOptionGlobalPropertyHandle,
16834
16918
  Ki as CommandContext,
16835
- Pl as ConversionDataType,
16836
- Dl as ConversionLocation,
16919
+ kl as ConversionDataType,
16920
+ xl as ConversionLocation,
16837
16921
  W as CreateElementCommand,
16838
16922
  Un as CreateLayoutCommand,
16839
16923
  vt as DeleteElementCommand,
16840
16924
  Ao as DigitalContentStepHandle,
16841
16925
  Go as FileUploadGlobalPropertyHandle,
16842
16926
  oe as FlowExecutionNodeResult,
16843
- nl as FlowExecutionResult,
16844
- al as FlowService,
16927
+ sl as FlowExecutionResult,
16928
+ il as FlowService,
16845
16929
  ts as FontAlignmentCommand,
16846
16930
  Xi as FontColorCommand,
16847
16931
  Zi as FontSizeCommand,
16848
16932
  Va as FontSourceCommand,
16849
- fl as FrameService,
16850
- pl as FrameStep,
16851
- Cl as FrameStepHandle,
16933
+ wl as FrameService,
16934
+ yl as FrameStep,
16935
+ Sl as FrameStepHandle,
16852
16936
  Ba as GlobalPropertyHandle,
16853
16937
  O as GroupCommand,
16854
16938
  ao as IllustrationStepHandle,
@@ -16856,37 +16940,37 @@ export {
16856
16940
  co as InformationStepHandle,
16857
16941
  qa as IntegrationProduct,
16858
16942
  fr as IntegrationType,
16859
- pc as LayoutElementFactory,
16943
+ yc as LayoutElementFactory,
16860
16944
  T as LayoutElementType,
16861
16945
  Y as LayoutNotFoundError,
16862
16946
  Gt as LayoutRenderingPurpose,
16863
16947
  no as MaterialStepHandle,
16864
16948
  fe as MisconfigurationError,
16865
- Rc as MockWorkflowManager,
16949
+ Lc as MockWorkflowManager,
16866
16950
  ro as ModelStepHandle,
16867
16951
  uo as ModuleStepHandle,
16868
- Cc as MoveCommand,
16952
+ Sc as MoveCommand,
16869
16953
  Xn as ObjectInput,
16870
- rl as ObjectInputType,
16954
+ ol as ObjectInputType,
16871
16955
  _n as OptionGlobalPropertyHandle,
16872
16956
  ge as OptionNotFoundError,
16873
16957
  Dt as ParseError,
16874
16958
  io as PictureStepHandle,
16875
16959
  pr as ProductCameraRig,
16876
- qo as ProductCollection,
16960
+ Ko as ProductCollection,
16877
16961
  zt as ProductWorkflow,
16878
16962
  Ht as PromiseCache,
16879
16963
  Pn as PromiseQueue,
16880
16964
  so as QuestionStepHandle,
16881
16965
  Dn as QueueablePromise,
16882
- yc as ResizeCommand,
16966
+ Ec as ResizeCommand,
16883
16967
  Wt as ResourceNotFoundError,
16884
- wc as RotateCommand,
16968
+ vc as RotateCommand,
16885
16969
  H as ScaleAxis,
16886
- bc as SendBackwardsCommand,
16970
+ Pc as SendBackwardsCommand,
16887
16971
  oo as ShapeStepHandle,
16888
16972
  gr as ShareActionType,
16889
- kc as SpiffCommerceClient,
16973
+ Qc as SpiffCommerceClient,
16890
16974
  me as StakeholderType,
16891
16975
  hr as StepAspectType,
16892
16976
  rt as StepHandle,
@@ -16894,84 +16978,85 @@ export {
16894
16978
  kt as TextAlgorithm,
16895
16979
  ns as TextChangeCommand,
16896
16980
  Wo as TextGlobalPropertyHandle,
16897
- Pc as TextInput,
16981
+ kc as TextInput,
16898
16982
  lo as TextStepHandle,
16899
- Jo as Transform,
16900
- Yo as TransformCollection,
16983
+ Xo as Transform,
16984
+ _o as TransformCollection,
16901
16985
  z as UnhandledBehaviorError,
16902
16986
  Cr as UnitOfMeasurement,
16903
- Sc as UpdateImageSourceCommand,
16987
+ Bc as UpdateImageSourceCommand,
16904
16988
  it as Variant,
16905
16989
  Bo as WorkflowExperienceEventType,
16906
16990
  bo as WorkflowExperienceImpl,
16907
16991
  U as assetService,
16908
16992
  zr as browserColorToHex,
16909
- gc as cmPerPixel,
16993
+ Cc as cmPerPixel,
16910
16994
  Co as createDesign,
16911
- uc as currentDirection,
16912
- tc as dataUrlFromExternalUrl,
16995
+ gc as currentDirection,
16996
+ nc as dataUrlFromExternalUrl,
16913
16997
  je as designService,
16914
16998
  Ae as determineCorrectFontSizeAndLines,
16915
16999
  $n as digitalContentStepService,
16916
17000
  dt as domParser,
16917
- Lc as duplicateBundle,
16918
- $c as duplicateTransaction,
17001
+ zc as duplicateBundle,
17002
+ Gc as duplicateTransaction,
16919
17003
  at as fetchAsString,
16920
- ic as findAngle,
17004
+ lc as findAngle,
16921
17005
  L as findElement,
16922
- nc as findPmsColors,
17006
+ sc as findPmsColors,
16923
17007
  Lt as frameDataCache,
16924
17008
  pt as frameStepService,
16925
17009
  Q as generate,
16926
17010
  Ro as generateCommands,
16927
17011
  ot as generateSVGWithUnknownColors,
16928
- Dc as generateStateFromDesignInputSteps,
17012
+ xc as generateStateFromDesignInputSteps,
16929
17013
  De as getAttributesFromArrayBuffer,
16930
- rc as getAxisAlignedBoundingBox,
16931
- gl as getBoundedOffsets,
16932
- Qc as getBundleThemeConfiguration,
16933
- Vc as getCustomer,
16934
- zc as getCustomerBundles,
16935
- hc as getElementVertices,
17014
+ oc as getAxisAlignedBoundingBox,
17015
+ Cl as getBoundedOffsets,
17016
+ Oc as getBundleThemeConfiguration,
17017
+ Wc as getCustomer,
17018
+ jc as getCustomerBundles,
17019
+ fc as getElementVertices,
16936
17020
  xe as getFrameData,
16937
- ml as getIntegration,
16938
- dc as getNEPoint,
16939
- cc as getNWPoint,
16940
- jc as getOrderedTransactions,
16941
- Tc as getOverrideThemeConfiguration,
16942
- lc as getPointOfRotation,
16943
- Ac as getSEPoint,
17021
+ pl as getIntegration,
17022
+ hc as getNEPoint,
17023
+ uc as getNWPoint,
17024
+ Yc as getOrderedTransactions,
17025
+ Rc as getOverrideThemeConfiguration,
17026
+ Ac as getPointOfRotation,
17027
+ mc as getSEPoint,
16944
17028
  wa as getSvgElement,
16945
- qc as getTemplateBundles,
16946
- Hc as getTemplateTransactions,
16947
- Mc as getTransaction,
16948
- Nc as getTransactionThemeConfiguration,
16949
- Gc as getTransactionsForBundle,
16950
- oc as getTrueCoordinates,
16951
- Wc as getUnorderedTransactions,
16952
- xc as getWorkflow,
17029
+ Kc as getTemplateBundles,
17030
+ Jc as getTemplateTransactions,
17031
+ Nc as getTransaction,
17032
+ Uc as getTransactionThemeConfiguration,
17033
+ Hc as getTransactionsForBundle,
17034
+ dc as getTrueCoordinates,
17035
+ qc as getUnorderedTransactions,
17036
+ Tc as getWorkflow,
16953
17037
  Zn as getWorkflows,
16954
17038
  b as graphQlManager,
16955
17039
  de as illustrationStepService,
16956
- sc as isCloseToValue,
17040
+ cc as isCloseToValue,
16957
17041
  Tt as loadFont,
16958
- ac as matchHexToPms,
17042
+ ic as matchHexToPms,
16959
17043
  Vn as materialStepService,
16960
- mc as mmPerPixel,
17044
+ Jo as metafieldManager,
17045
+ pc as mmPerPixel,
16961
17046
  zn as modelStepService,
16962
17047
  fa as modifySVGColors,
16963
17048
  Gn as moduleStepService,
16964
- Oc as nameBundle,
16965
- Uc as nameTransaction,
17049
+ $c as nameBundle,
17050
+ Vc as nameTransaction,
16966
17051
  X as optionService,
16967
- fc as outlineFontsInSvg,
17052
+ wc as outlineFontsInSvg,
16968
17053
  At as patternImageDataCache,
16969
17054
  k as persistenceService,
16970
17055
  Wn as pictureStepService,
16971
- ec as pmsToRgb,
17056
+ rc as pmsToRgb,
16972
17057
  jn as questionStepService,
16973
- Zl as registerFetchImplementation,
16974
- Xl as registerWindowImplementation,
17058
+ ac as registerFetchImplementation,
17059
+ ec as registerWindowImplementation,
16975
17060
  La as rehydrateSerializedLayout,
16976
17061
  Lr as rgbToPms,
16977
17062
  re as rotateAroundPoint,
@@ -16981,7 +17066,7 @@ export {
16981
17066
  $t as shapeStepService,
16982
17067
  is as shortenUrl,
16983
17068
  wt as spiffCoreConfiguration,
16984
- Ic as stepAspectValuesToDesignInputSteps,
17069
+ Fc as stepAspectValuesToDesignInputSteps,
16985
17070
  Qa as svgColorValueToDefinition,
16986
17071
  Rn as svgStringDimensions,
16987
17072
  Aa as svgToDataUrl,