@spiffcommerce/core 20.4.0 → 20.4.2

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createHttpLink as Et, InMemoryCache as ht, ApolloClient as Ct, from as Qt, gql as F } from "@apollo/client/core";
2
2
  import { fetch as $e, getAttributesFromArrayBuffer as yA, AssetType as BA, StepType as D, getFrameData as _e, frameDataCache as ut, GroupCommand as G, UpdateFramePattern as YA, UpdateFrameThresholdSettingsCommand as mt, calculateOffsets as eA, LayoutElementType as v, generate as J, CreateElementCommand as L, generateSVGWithUnknownColors as SA, svgObjectURL as fe, fetchAsString as Z, DeleteElementCommand as $, generateDefaultRectangleFrameSvg as dA, GetSVGDimensions as It, patternImageDataCache as wA, fetchAsArrayBuffer as pt, findElement as De, modifySVGWithElementProperties as ft, IllustrationColorCommand as Ke, IllustrationCacheCommand as Dt, getFontMetrics as Ft, getPatternImageData as je, FontAlignmentCommand as Mt, FontColorCommand as yt, FontImageFillCommand as Je, applyTextTransformations as Ve, determineCorrectFontSizeAndLines as me, FontSourceCommand as EA, loadFont as AA, TextChangeCommand as Yt, FontSizeCommand as St, createElementNS as xt, createElement as Be, _loadFontExternalDataURL as tA, UpdateWorkflowStateCommand as hA, CommandContext as Pt, createCanvas as Fe, getSvgElement as xA, LayoutRenderingPurpose as PA, renderPapyrusComponentAsString as NA, loadImage as HA, getDomParser as RA, toBase64 as CA, getVariant as Nt, generateFrameSVG as Ht, getDefaultVariant as He, domParser as UA, sanitizeSvgTree as GA, traverse as Rt, xmlSerializer as vA, CreateLayoutCommand as Ut, AspectType as Ie, rehydrateSerializedLayout as ee } from "@spiffcommerce/papyrus";
3
- import { AssetType as Oi, BringForwardCommand as zi, BringToBackCommand as Ki, BringToFrontCommand as ji, CanvasCommand as Vi, CommandContext as Wi, CreateElementCommand as Xi, CreateLayoutCommand as qi, DeleteElementCommand as Zi, FontAlignmentCommand as $i, FontColorCommand as _i, FontSizeCommand as es, FontSourceCommand as As, GroupCommand as ts, LayoutElementFactory as ns, LayoutElementType as as, MoveCommand as is, ResizeCommand as ss, RotateCommand as os, SendBackwardsCommand as rs, StepAspectType as cs, StepType as gs, TextChangeCommand as ls, UnitOfMeasurement as Bs, dataUrlFromExternalUrl as ds, determineCorrectFontSizeAndLines as ws, findElement as Es, frameDataCache as hs, generate as Cs, generateSVGWithUnknownColors as Qs, getAttributesFromArrayBuffer as us, getAxisAlignedBoundingBox as ms, getFrameData as Is, getSvgElement as ps, loadFont as fs, patternImageDataCache as Ds, registerFetchImplementation as Fs, registerWindowImplementation as Ms, rehydrateSerializedLayout as ys, setCanvasModule as Ys } from "@spiffcommerce/papyrus";
3
+ import { AssetType as zi, BringForwardCommand as Ki, BringToBackCommand as ji, BringToFrontCommand as Vi, CanvasCommand as Wi, CommandContext as Xi, CreateElementCommand as qi, CreateLayoutCommand as Zi, DeleteElementCommand as $i, FontAlignmentCommand as _i, FontColorCommand as es, FontSizeCommand as As, FontSourceCommand as ts, GroupCommand as ns, LayoutElementFactory as as, LayoutElementType as is, MoveCommand as ss, ResizeCommand as os, RotateCommand as rs, SendBackwardsCommand as cs, StepAspectType as gs, StepType as ls, TextChangeCommand as Bs, UnitOfMeasurement as ds, dataUrlFromExternalUrl as ws, determineCorrectFontSizeAndLines as Es, findElement as hs, frameDataCache as Cs, generate as Qs, generateSVGWithUnknownColors as us, getAttributesFromArrayBuffer as ms, getAxisAlignedBoundingBox as Is, getFrameData as ps, getSvgElement as fs, loadFont as Ds, patternImageDataCache as Fs, registerFetchImplementation as Ms, registerWindowImplementation as ys, rehydrateSerializedLayout as Ys, setCanvasModule as Ss } from "@spiffcommerce/papyrus";
4
4
  import { setContext as Gt } from "@apollo/client/link/context";
5
5
  import { onError as vt } from "@apollo/client/link/error";
6
6
  import { Pith as kA } from "pith";
@@ -6068,7 +6068,7 @@ class Ee {
6068
6068
  case D.Model:
6069
6069
  return new _n(e, A);
6070
6070
  case D.Frame:
6071
- return new fi(e, A);
6071
+ return new Di(e, A);
6072
6072
  default:
6073
6073
  throw new k(`Step type ${A.type} not yet supported in Core SDK`);
6074
6074
  }
@@ -6516,6 +6516,7 @@ const Te = new Ba(), da = F`
6516
6516
  }
6517
6517
  }
6518
6518
  `;
6519
+ var wa = /* @__PURE__ */ ((c) => (c.QuantityChanged = "QuantityChanged", c))(wa || {});
6519
6520
  class he {
6520
6521
  constructor(e, A) {
6521
6522
  var n;
@@ -6769,7 +6770,7 @@ class he {
6769
6770
  const e = Re(this.getCommandContext().getState());
6770
6771
  if (!e)
6771
6772
  throw new k("Internal state is undefined! Cannot copy experience!");
6772
- const A = JSON.stringify(e.transaction), t = this.getWorkflowManager().getWorkflow(), n = new Ii({}), a = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
6773
+ const A = JSON.stringify(e.transaction), t = this.getWorkflowManager().getWorkflow(), n = new pi({}), a = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
6773
6774
  if (!a)
6774
6775
  throw new k("Integration product id is undefined!");
6775
6776
  return await n.initFromIntegrationProduct(a), await n.getWorkflowExperience(t.id, A, void 0);
@@ -6843,7 +6844,7 @@ class he {
6843
6844
  (this.eventCallbacks.get(e) || []).forEach((A) => A(this));
6844
6845
  }
6845
6846
  }
6846
- const wa = [
6847
+ const Ea = [
6847
6848
  "altGlyph",
6848
6849
  "circle",
6849
6850
  "ellipse",
@@ -6855,7 +6856,7 @@ const wa = [
6855
6856
  "textPath",
6856
6857
  "tref",
6857
6858
  "tspan"
6858
- ], Ea = async (c, e, A) => {
6859
+ ], ha = async (c, e, A) => {
6859
6860
  const t = e.data, n = A.data.baseUrl, a = t.assetUrl.replace("localhost", "localstack"), i = n.slice(0, 4) === "http" ? "" : "https://", s = new URL(i + n);
6860
6861
  s.searchParams.append("video", CA(JSON.stringify([{ href: a }]))), s.pathname = s.pathname + (s.pathname.slice(-1) === "/" ? "" : "/");
6861
6862
  const o = s.toString(), g = `data:image/svg+xml;base64,${CA(await LA(o, { type: "svg" }))}`, B = (d) => {
@@ -6882,7 +6883,7 @@ const wa = [
6882
6883
  } catch (d) {
6883
6884
  return console.error(d), [];
6884
6885
  }
6885
- }, ha = async (c, e, A, t) => {
6886
+ }, Ca = async (c, e, A, t) => {
6886
6887
  const n = A.data, a = n.assetUrl, i = await je(a);
6887
6888
  try {
6888
6889
  const s = Nt(n, t.option);
@@ -6935,7 +6936,7 @@ const wa = [
6935
6936
  } catch (s) {
6936
6937
  return console.error(s), [];
6937
6938
  }
6938
- }, Ca = async (c, e, A, t) => {
6939
+ }, Qa = async (c, e, A, t) => {
6939
6940
  var m, I;
6940
6941
  const n = A.data, a = t.option;
6941
6942
  if (!a)
@@ -6955,7 +6956,7 @@ const wa = [
6955
6956
  GA(w);
6956
6957
  const h = {};
6957
6958
  Rt(w, (p) => {
6958
- wa.includes(p.tagName) && !p.attributes.getNamedItem("fill") && p.setAttribute("fill", "#000000");
6959
+ Ea.includes(p.tagName) && !p.attributes.getNamedItem("fill") && p.setAttribute("fill", "#000000");
6959
6960
  const M = p.attributes.getNamedItem("fill");
6960
6961
  if (M && M.value !== "none") {
6961
6962
  const S = M.value, N = `spiff-fill-${S.replace(/\W/g, "")}`;
@@ -7004,7 +7005,7 @@ const wa = [
7004
7005
  } catch (p) {
7005
7006
  return console.error(p), [];
7006
7007
  }
7007
- }, Qa = async (c, e, A) => {
7008
+ }, ua = async (c, e, A) => {
7008
7009
  const t = await it(A.data.module), n = e.data, a = (s, o) => {
7009
7010
  const r = c.find((B) => B.panelId === o.panelId);
7010
7011
  if (!r)
@@ -7034,7 +7035,7 @@ const wa = [
7034
7035
  } catch (s) {
7035
7036
  return console.error(s), [];
7036
7037
  }
7037
- }, ua = async (c, e, A, t) => {
7038
+ }, ma = async (c, e, A, t) => {
7038
7039
  var g, B;
7039
7040
  const n = A.data, a = t.option;
7040
7041
  if (!a)
@@ -7076,7 +7077,7 @@ const wa = [
7076
7077
  } catch (l) {
7077
7078
  return console.error(l), [];
7078
7079
  }
7079
- }, ma = async (c, e, A, t) => {
7080
+ }, Ia = async (c, e, A, t) => {
7080
7081
  var r;
7081
7082
  const n = A.data, a = t.option;
7082
7083
  if (!a)
@@ -7133,7 +7134,7 @@ const wa = [
7133
7134
  } catch (g) {
7134
7135
  return console.error(g), [];
7135
7136
  }
7136
- }, Ia = async (c, e, A) => {
7137
+ }, pa = async (c, e, A) => {
7137
7138
  const t = [], a = (() => {
7138
7139
  var r, g;
7139
7140
  return e.type === D.ProductOverlay ? A || ((r = e.data.asset) == null ? void 0 : r.fileLink) || "" : ((g = e.data.asset) == null ? void 0 : g.fileLink) || "";
@@ -7200,7 +7201,7 @@ const wa = [
7200
7201
  });
7201
7202
  }
7202
7203
  return t;
7203
- }, pa = async (c, e, A, t) => {
7204
+ }, fa = async (c, e, A, t) => {
7204
7205
  const n = [], a = A.data, i = 30, s = (E) => E.vertical ? "center" : E.textAlign || "center", o = () => {
7205
7206
  var f;
7206
7207
  const E = t.option;
@@ -7289,7 +7290,7 @@ const wa = [
7289
7290
  n.push(new L(C, Q));
7290
7291
  }
7291
7292
  return n;
7292
- }, fa = (c, e) => c.conditions ? c.conditions.every((A) => {
7293
+ }, Da = (c, e) => c.conditions ? c.conditions.every((A) => {
7293
7294
  const t = e[A.targetStepName];
7294
7295
  if (t && t.selectedVariants) {
7295
7296
  const n = t.selectedVariants;
@@ -7298,7 +7299,7 @@ const wa = [
7298
7299
  );
7299
7300
  }
7300
7301
  return !1;
7301
- }) : !0, Da = async (c, e, A, t) => {
7302
+ }) : !0, Fa = async (c, e, A, t) => {
7302
7303
  const n = [], a = {};
7303
7304
  for (const i of c) {
7304
7305
  const s = e.steps.find((o) => o.stepName === i.name);
@@ -7306,18 +7307,18 @@ const wa = [
7306
7307
  switch (s.type) {
7307
7308
  case D.DigitalContent:
7308
7309
  n.push(
7309
- ...await Ea(A, i, s)
7310
+ ...await ha(A, i, s)
7310
7311
  );
7311
7312
  break;
7312
7313
  case D.Frame:
7313
7314
  case D.Photo:
7314
7315
  n.push(
7315
- ...await ha(A, a, i, s)
7316
+ ...await Ca(A, a, i, s)
7316
7317
  );
7317
7318
  break;
7318
7319
  case D.Illustration:
7319
7320
  n.push(
7320
- ...await Ca(
7321
+ ...await Qa(
7321
7322
  A,
7322
7323
  a,
7323
7324
  i,
@@ -7326,28 +7327,28 @@ const wa = [
7326
7327
  );
7327
7328
  break;
7328
7329
  case D.Module:
7329
- n.push(...await Qa(A, i, s));
7330
+ n.push(...await ua(A, i, s));
7330
7331
  break;
7331
7332
  case D.Picture:
7332
7333
  n.push(
7333
- ...await ua(A, a, i, s)
7334
+ ...await ma(A, a, i, s)
7334
7335
  );
7335
7336
  break;
7336
7337
  case D.Shape:
7337
7338
  n.push(
7338
- ...await ma(A, a, i, s)
7339
+ ...await Ia(A, a, i, s)
7339
7340
  );
7340
7341
  break;
7341
7342
  case D.Text:
7342
7343
  n.push(
7343
- ...await pa(A, a, i, s)
7344
+ ...await fa(A, a, i, s)
7344
7345
  );
7345
7346
  break;
7346
7347
  }
7347
7348
  }
7348
7349
  for (const i of e.steps)
7349
- i.type !== D.SilentIllustration && i.type !== D.ProductOverlay || fa(i, a) && n.push(
7350
- ...await Ia(A, i, t)
7350
+ i.type !== D.SilentIllustration && i.type !== D.ProductOverlay || Da(i, a) && n.push(
7351
+ ...await pa(A, i, t)
7351
7352
  );
7352
7353
  return n;
7353
7354
  };
@@ -7355,7 +7356,7 @@ class Ce {
7355
7356
  constructor(e) {
7356
7357
  this.handleCompleteRender = null;
7357
7358
  const A = /* @__PURE__ */ new Map();
7358
- e.forEach((t) => A.set(t.id, new ya(t.id, t.name, this))), this.layouts = A;
7359
+ e.forEach((t) => A.set(t.id, new Ya(t.id, t.name, this))), this.layouts = A;
7359
7360
  }
7360
7361
  setCompleteRenderCallback(e) {
7361
7362
  this.handleCompleteRender = e, e(Array.from(this.layouts.values()));
@@ -7367,11 +7368,11 @@ class Ce {
7367
7368
  return this.layouts;
7368
7369
  }
7369
7370
  }
7370
- const Fa = () => new Promise((c, e) => {
7371
+ const Ma = () => new Promise((c, e) => {
7371
7372
  const t = Fe().getContext("webgl2");
7372
7373
  c(!!t);
7373
- }), Ma = Fa();
7374
- class ya {
7374
+ }), ya = Ma();
7375
+ class Ya {
7375
7376
  constructor(e, A, t) {
7376
7377
  this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.lastModificationID = void 0, this.renderQueue = new XA(2), this.id = e, this.name = A, this.service = t;
7377
7378
  }
@@ -7434,10 +7435,10 @@ class ya {
7434
7435
  return;
7435
7436
  }
7436
7437
  this.renderQueue.enqueue(
7437
- new Ya(
7438
+ new Sa(
7438
7439
  this.getID(),
7439
7440
  a,
7440
- await Ma,
7441
+ await ya,
7441
7442
  () => {
7442
7443
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
7443
7444
  },
@@ -7448,7 +7449,7 @@ class ya {
7448
7449
  );
7449
7450
  }
7450
7451
  }
7451
- class Ya extends WA {
7452
+ class Sa extends WA {
7452
7453
  constructor(e, A, t, n, a, i, s) {
7453
7454
  super(), this.layoutId = e, this.ctx = A, this.nonPOTSupport = t, this.onRender = n, this.workflow = a, this.layouts = i, this.productOverlayImageUrl = s;
7454
7455
  }
@@ -7514,7 +7515,7 @@ class Ya extends WA {
7514
7515
  B.resize(s, o), await B.render(), this.onRender();
7515
7516
  }
7516
7517
  }
7517
- const Gi = (c, e) => {
7518
+ const vi = (c, e) => {
7518
7519
  const A = [];
7519
7520
  return c.forEach((t) => {
7520
7521
  const n = e.steps.find((a) => a.stepName === t.stepName);
@@ -7525,15 +7526,15 @@ const Gi = (c, e) => {
7525
7526
  }
7526
7527
  });
7527
7528
  }), A;
7528
- }, vi = async (c, e, A, t) => {
7529
+ }, ki = async (c, e, A, t) => {
7529
7530
  let n = {
7530
7531
  serializableWorkflow: { steps: [] },
7531
7532
  layouts: {}
7532
7533
  };
7533
7534
  n = new G(A.map((o) => new Ut(o))).apply(n);
7534
- const i = await Da(c, e, A, t);
7535
+ const i = await Fa(c, e, A, t);
7535
7536
  return new G(i).apply(n);
7536
- }, Sa = F`
7537
+ }, xa = F`
7537
7538
  ${ae}
7538
7539
  fragment ProductFields on Product {
7539
7540
  id
@@ -7577,7 +7578,7 @@ const Gi = (c, e) => {
7577
7578
  }
7578
7579
  }
7579
7580
  `, gt = F`
7580
- ${Sa}
7581
+ ${xa}
7581
7582
  fragment ProductCollectionProductFields on ProductCollectionProduct {
7582
7583
  id
7583
7584
  productId
@@ -7631,7 +7632,7 @@ const Gi = (c, e) => {
7631
7632
  }
7632
7633
  }
7633
7634
  }
7634
- `, xa = (c) => F`
7635
+ `, Pa = (c) => F`
7635
7636
  ${lt(c)}
7636
7637
  query GetBundle($id: String!) {
7637
7638
  bundles(ids: [$id]) {
@@ -7653,7 +7654,7 @@ const Gi = (c, e) => {
7653
7654
  }
7654
7655
  }
7655
7656
  }
7656
- `, Pa = F`
7657
+ `, Na = F`
7657
7658
  query GetBundleStakeholders($id: String!) {
7658
7659
  bundles(ids: [$id]) {
7659
7660
  id
@@ -7673,7 +7674,7 @@ const Gi = (c, e) => {
7673
7674
  }
7674
7675
  }
7675
7676
  }
7676
- `, Na = F`
7677
+ `, Ha = F`
7677
7678
  query GetBundlesForCustomer($id: String!) {
7678
7679
  customers(ids: [$id]) {
7679
7680
  bundleStakeholders {
@@ -7694,7 +7695,7 @@ const Gi = (c, e) => {
7694
7695
  }
7695
7696
  }
7696
7697
  }
7697
- `, Ha = F`
7698
+ `, Ra = F`
7698
7699
  ${gt}
7699
7700
  query GetProductCollectionProducts($id: String!) {
7700
7701
  productCollections(ids: [$id]) {
@@ -7704,7 +7705,7 @@ const Gi = (c, e) => {
7704
7705
  }
7705
7706
  }
7706
7707
  }
7707
- `, Ra = (c) => F`
7708
+ `, Ua = (c) => F`
7708
7709
  ${lt(c)}
7709
7710
  mutation CreateBundle($collectionId: String, $initialMetadata: [MetadataInput!]) {
7710
7711
  bundleCreate(collectionId: $collectionId, metadata: $initialMetadata) {
@@ -7723,25 +7724,25 @@ const Gi = (c, e) => {
7723
7724
  }
7724
7725
  }
7725
7726
  }
7726
- `, Ua = F`
7727
+ `, Ga = F`
7727
7728
  mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
7728
7729
  bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
7729
7730
  id
7730
7731
  }
7731
7732
  }
7732
- `, Ga = F`
7733
+ `, va = F`
7733
7734
  mutation BundleAddTransaction($id: String!, $transactionId: String!) {
7734
7735
  bundleAddTransaction(id: $id, transactionId: $transactionId) {
7735
7736
  id
7736
7737
  }
7737
7738
  }
7738
- `, va = F`
7739
+ `, ka = F`
7739
7740
  mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
7740
7741
  bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
7741
7742
  id
7742
7743
  }
7743
7744
  }
7744
- `, ka = F`
7745
+ `, Ja = F`
7745
7746
  mutation BundleRemoveTransaction(
7746
7747
  $id: String!
7747
7748
  $transactionId: String!
@@ -7756,7 +7757,7 @@ const Gi = (c, e) => {
7756
7757
  id
7757
7758
  }
7758
7759
  }
7759
- `, Ja = F`
7760
+ `, ba = F`
7760
7761
  mutation BundleRemoveTransactions(
7761
7762
  $id: String!
7762
7763
  $transactionIds: [String!]!
@@ -7771,7 +7772,7 @@ const Gi = (c, e) => {
7771
7772
  id
7772
7773
  }
7773
7774
  }
7774
- `, ba = F`
7775
+ `, La = F`
7775
7776
  mutation BundleAddStakeholder($id: String!, $details: CustomerDetailsInput!, $type: String!) {
7776
7777
  bundleAddStakeholder(id: $id, details: $details, type: $type) {
7777
7778
  id
@@ -7791,7 +7792,7 @@ const Gi = (c, e) => {
7791
7792
  }
7792
7793
  }
7793
7794
  }
7794
- `, La = F`
7795
+ `, Ta = F`
7795
7796
  mutation BundleUpdateStakeholders($id: String!, $input: [BundleStakeholderInput!]!) {
7796
7797
  bundleUpdateStakeholders(id: $id, input: $input) {
7797
7798
  id
@@ -7811,14 +7812,14 @@ const Gi = (c, e) => {
7811
7812
  }
7812
7813
  }
7813
7814
  }
7814
- `, Ta = F`
7815
+ `, Oa = F`
7815
7816
  mutation BundleUpdateTransactionOrder($id: String!, $transactionIds: [String!]!) {
7816
7817
  bundleUpdateTransactionOrder(id: $id, transactionIds: $transactionIds) {
7817
7818
  id
7818
7819
  }
7819
7820
  }
7820
7821
  `;
7821
- class Oa {
7822
+ class za {
7822
7823
  constructor(e) {
7823
7824
  this.handleCache = {}, this.bundle = e;
7824
7825
  }
@@ -7862,13 +7863,13 @@ class Oa {
7862
7863
  async createHandle(e) {
7863
7864
  switch (e.type) {
7864
7865
  case Ie.FileUpload:
7865
- return new za(this.bundle, e);
7866
+ return new Ka(this.bundle, e);
7866
7867
  case Ie.Option: {
7867
7868
  const A = e.entityId ? await j.getOption(e.entityId) : void 0;
7868
- return (A == null ? void 0 : A.type) === "Color" ? new ja(this.bundle, e, A) : new Bt(this.bundle, e, A);
7869
+ return (A == null ? void 0 : A.type) === "Color" ? new Va(this.bundle, e, A) : new Bt(this.bundle, e, A);
7869
7870
  }
7870
7871
  case Ie.Text:
7871
- return new Ka(this.bundle, e);
7872
+ return new ja(this.bundle, e);
7872
7873
  }
7873
7874
  }
7874
7875
  }
@@ -7924,7 +7925,7 @@ class gA {
7924
7925
  );
7925
7926
  }
7926
7927
  }
7927
- class za extends gA {
7928
+ class Ka extends gA {
7928
7929
  constructor(e, A) {
7929
7930
  super(e, A);
7930
7931
  }
@@ -7951,7 +7952,7 @@ class za extends gA {
7951
7952
  await Promise.all(n);
7952
7953
  }
7953
7954
  }
7954
- class Ka extends gA {
7955
+ class ja extends gA {
7955
7956
  constructor(e, A) {
7956
7957
  super(e, A);
7957
7958
  }
@@ -8046,7 +8047,7 @@ class Bt extends gA {
8046
8047
  await Promise.all(n);
8047
8048
  }
8048
8049
  }
8049
- class ja extends Bt {
8050
+ class Va extends Bt {
8050
8051
  constructor(e, A, t) {
8051
8052
  super(e, A, t);
8052
8053
  }
@@ -8063,7 +8064,7 @@ class ja extends Bt {
8063
8064
  return this.getSharedSteps()[0].getCustomColor();
8064
8065
  }
8065
8066
  }
8066
- const Va = F`
8067
+ const Wa = F`
8067
8068
  mutation CreateGlobalPropertyState($bundleId: String!) {
8068
8069
  globalPropertyStateCreate(bundleId: $bundleId) {
8069
8070
  id
@@ -8073,7 +8074,7 @@ const Va = F`
8073
8074
  }
8074
8075
  }
8075
8076
  }
8076
- `, Wa = F`
8077
+ `, Xa = F`
8077
8078
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
8078
8079
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
8079
8080
  id
@@ -8083,7 +8084,7 @@ const Va = F`
8083
8084
  }
8084
8085
  }
8085
8086
  }
8086
- `, Xa = F`
8087
+ `, qa = F`
8087
8088
  query GetGlobalPropertyState($bundleId: String!) {
8088
8089
  globalPropertyState(bundleId: $bundleId) {
8089
8090
  id
@@ -8094,7 +8095,7 @@ const Va = F`
8094
8095
  }
8095
8096
  }
8096
8097
  `;
8097
- class qa {
8098
+ class Za {
8098
8099
  constructor(e, A, t) {
8099
8100
  this.bundleId = e, this.bundleOwnerId = A, this.initPromise = this.getOrCreateGlobalPropertyState().then((n) => {
8100
8101
  this.globalPropertyState = n;
@@ -8124,7 +8125,7 @@ class qa {
8124
8125
  if (!this.globalPropertyState)
8125
8126
  throw new Error("Global property state not initialized");
8126
8127
  const e = await P.getShadowGraphqlClient().mutate({
8127
- mutation: Wa,
8128
+ mutation: Xa,
8128
8129
  variables: {
8129
8130
  id: this.globalPropertyState.id,
8130
8131
  aspects: this.globalPropertyState.aspects
@@ -8141,7 +8142,7 @@ class qa {
8141
8142
  async getOrCreateGlobalPropertyState() {
8142
8143
  var t;
8143
8144
  const e = await P.getShadowGraphqlClient().query({
8144
- query: Xa,
8145
+ query: qa,
8145
8146
  errorPolicy: "all",
8146
8147
  fetchPolicy: "no-cache",
8147
8148
  variables: {
@@ -8154,7 +8155,7 @@ class qa {
8154
8155
  if (e.data.globalPropertyState && e.data.globalPropertyState.id)
8155
8156
  return e.data.globalPropertyState;
8156
8157
  const A = await P.getShadowGraphqlClient().mutate({
8157
- mutation: Va,
8158
+ mutation: Wa,
8158
8159
  variables: {
8159
8160
  bundleId: this.bundleId
8160
8161
  },
@@ -8167,7 +8168,7 @@ class qa {
8167
8168
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
8168
8169
  }
8169
8170
  }
8170
- class Za {
8171
+ class $a {
8171
8172
  constructor(e) {
8172
8173
  this.setState(e);
8173
8174
  }
@@ -8250,7 +8251,7 @@ class Za {
8250
8251
  };
8251
8252
  }
8252
8253
  }
8253
- class $a {
8254
+ class _a {
8254
8255
  constructor(e) {
8255
8256
  this.collection = e;
8256
8257
  }
@@ -8281,7 +8282,7 @@ class $a {
8281
8282
  if (this.collection.productCollectionProducts)
8282
8283
  return this.collection.productCollectionProducts.map((A) => new Oe(A));
8283
8284
  const e = await P.getShadowGraphqlClient().query({
8284
- query: Ha,
8285
+ query: Ra,
8285
8286
  variables: {
8286
8287
  id: this.getId()
8287
8288
  },
@@ -8292,7 +8293,7 @@ class $a {
8292
8293
  }
8293
8294
  getTransformCollection() {
8294
8295
  if (this.collection.transformCollection)
8295
- return new _a(this.collection.transformCollection);
8296
+ return new ei(this.collection.transformCollection);
8296
8297
  }
8297
8298
  /**
8298
8299
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -8434,7 +8435,7 @@ class Ne {
8434
8435
  return this.workflow.imageUrl;
8435
8436
  }
8436
8437
  }
8437
- class _a {
8438
+ class ei {
8438
8439
  constructor(e) {
8439
8440
  this.collection = e;
8440
8441
  }
@@ -8454,10 +8455,10 @@ class _a {
8454
8455
  * @returns The transforms in this collection.
8455
8456
  */
8456
8457
  getTransforms() {
8457
- return this.collection.transforms.map((e) => new ei(e));
8458
+ return this.collection.transforms.map((e) => new Ai(e));
8458
8459
  }
8459
8460
  }
8460
- class ei {
8461
+ class Ai {
8461
8462
  constructor(e) {
8462
8463
  this.transform = e;
8463
8464
  }
@@ -8487,11 +8488,11 @@ class ei {
8487
8488
  class FA {
8488
8489
  constructor(e, A, t, n, a) {
8489
8490
  var i, s;
8490
- this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = e, this.id = A.id, this.name = A.name || "", this.ownerId = a, this.metadata = new Map(((i = A.metadata) == null ? void 0 : i.map((o) => [o.key, o.value])) || []), this.productCollection = A.productCollection, this.bundleStateManager = new Za(A.bundleStateData), this.globalPropertyStateManager = new qa(
8491
+ this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = e, this.id = A.id, this.name = A.name || "", this.ownerId = a, this.metadata = new Map(((i = A.metadata) == null ? void 0 : i.map((o) => [o.key, o.value])) || []), this.productCollection = A.productCollection, this.bundleStateManager = new $a(A.bundleStateData), this.globalPropertyStateManager = new Za(
8491
8492
  this.id,
8492
8493
  this.ownerId,
8493
8494
  this.checkConditionalHandlesChanged.bind(this)
8494
- ), this.globalPropertyHandleService = new Oa(this), this.setPreviewService(t), this.initializationPromise = this.loadExistingWorkflowExperiences(
8495
+ ), this.globalPropertyHandleService = new za(this), this.setPreviewService(t), this.initializationPromise = this.loadExistingWorkflowExperiences(
8495
8496
  ((s = A.transactions) == null ? void 0 : s.map((o) => o.id)) || [],
8496
8497
  n
8497
8498
  );
@@ -8546,7 +8547,7 @@ class FA {
8546
8547
  return this.workflowExperiences.map((e) => e.getTotalPriceSubunits()).reduce((e, A) => e + A, 0);
8547
8548
  }
8548
8549
  getProductCollection() {
8549
- return this.productCollection ? new $a(this.productCollection) : void 0;
8550
+ return this.productCollection ? new _a(this.productCollection) : void 0;
8550
8551
  }
8551
8552
  async addWorkflowExperience(e) {
8552
8553
  await this.appendWorkflowExperience(e), await this.injectExperienceIntoPreviewService(e);
@@ -8563,7 +8564,7 @@ class FA {
8563
8564
  );
8564
8565
  const n = x.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), a = A.map((i) => n.get(i));
8565
8566
  await P.getShadowGraphqlClient().mutate({
8566
- mutation: va,
8567
+ mutation: ka,
8567
8568
  variables: {
8568
8569
  id: this.id,
8569
8570
  transactionIds: A,
@@ -8592,7 +8593,7 @@ class FA {
8592
8593
  throw new Error("Unable to add transaction to bundle - Already Exists!");
8593
8594
  const i = (x.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t);
8594
8595
  await P.getShadowGraphqlClient().mutate({
8595
- mutation: Ga,
8596
+ mutation: va,
8596
8597
  variables: {
8597
8598
  id: this.id,
8598
8599
  transactionId: t
@@ -8625,7 +8626,7 @@ class FA {
8625
8626
  (a) => a.getWorkflowManager().getTransaction().id === A.id
8626
8627
  );
8627
8628
  this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(A.id), await P.getShadowGraphqlClient().mutate({
8628
- mutation: ka,
8629
+ mutation: Ja,
8629
8630
  variables: {
8630
8631
  id: this.id,
8631
8632
  transactionId: A.id,
@@ -8655,7 +8656,7 @@ class FA {
8655
8656
  )[0]
8656
8657
  );
8657
8658
  this.previewService && t.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), e.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await P.getShadowGraphqlClient().mutate({
8658
- mutation: Ja,
8659
+ mutation: ba,
8659
8660
  variables: {
8660
8661
  id: this.id,
8661
8662
  transactionIds: e.map((n) => n.id),
@@ -8716,7 +8717,7 @@ class FA {
8716
8717
  async addStakeholder(e, A) {
8717
8718
  var a;
8718
8719
  const t = await P.getShadowGraphqlClient().mutate({
8719
- mutation: ba,
8720
+ mutation: La,
8720
8721
  variables: {
8721
8722
  id: this.id,
8722
8723
  details: e,
@@ -8734,7 +8735,7 @@ class FA {
8734
8735
  async updateStakeholders(e) {
8735
8736
  var n;
8736
8737
  const A = await P.getShadowGraphqlClient().mutate({
8737
- mutation: La,
8738
+ mutation: Ta,
8738
8739
  variables: {
8739
8740
  id: this.id,
8740
8741
  input: e
@@ -8750,7 +8751,7 @@ class FA {
8750
8751
  }
8751
8752
  async getAllStakeholders() {
8752
8753
  const e = await P.getShadowGraphqlClient().query({
8753
- query: Pa,
8754
+ query: Na,
8754
8755
  errorPolicy: "all",
8755
8756
  variables: {
8756
8757
  id: this.id
@@ -8850,7 +8851,7 @@ class FA {
8850
8851
  async updateBundle() {
8851
8852
  var A;
8852
8853
  if (!((A = (await P.getShadowGraphqlClient().mutate({
8853
- mutation: Ua,
8854
+ mutation: Ga,
8854
8855
  variables: {
8855
8856
  id: this.id,
8856
8857
  name: this.name,
@@ -8865,7 +8866,7 @@ class FA {
8865
8866
  }
8866
8867
  async updateTransactionOrder() {
8867
8868
  await P.getShadowGraphqlClient().mutate({
8868
- mutation: Ta,
8869
+ mutation: Oa,
8869
8870
  variables: {
8870
8871
  id: this.id,
8871
8872
  transactionIds: this.workflowExperiences.map((e) => e.getWorkflowManager().getTransaction().id)
@@ -8898,14 +8899,14 @@ class FA {
8898
8899
  );
8899
8900
  }
8900
8901
  }
8901
- const Ai = F`
8902
+ const ti = F`
8902
8903
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
8903
8904
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
8904
8905
  id
8905
8906
  }
8906
8907
  }
8907
8908
  `;
8908
- class ti {
8909
+ class ni {
8909
8910
  /**
8910
8911
  *
8911
8912
  * @param id
@@ -8916,7 +8917,7 @@ class ti {
8916
8917
  async execute(e, A, t) {
8917
8918
  var B, l, d;
8918
8919
  const a = (l = (B = (await P.getShadowGraphqlClient().mutate({
8919
- mutation: Ai,
8920
+ mutation: ti,
8920
8921
  variables: {
8921
8922
  processFlowId: e,
8922
8923
  inputs: [...A.map((w) => w.getValueForTransmission())]
@@ -8958,7 +8959,7 @@ class ti {
8958
8959
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
8959
8960
  );
8960
8961
  if (w.completedAt) {
8961
- s = !0, g = new ni(w);
8962
+ s = !0, g = new ai(w);
8962
8963
  break;
8963
8964
  }
8964
8965
  o += 1;
@@ -8972,7 +8973,7 @@ class ti {
8972
8973
  return Promise.resolve(g);
8973
8974
  }
8974
8975
  }
8975
- class ni {
8976
+ class ai {
8976
8977
  constructor(e) {
8977
8978
  this.execution = e;
8978
8979
  }
@@ -9057,8 +9058,8 @@ class lA {
9057
9058
  return e.startsWith("[") ? JSON.stringify(JSON.parse(e)) : e;
9058
9059
  }
9059
9060
  }
9060
- var ai = /* @__PURE__ */ ((c) => (c.Transaction = "Transaction", c.Bundle = "Bundle", c.Product = "Product", c.Variant = "Variant", c.Option = "Option", c.LineItem = "LineItem", c.Asset = "Asset", c))(ai || {});
9061
- class ki extends lA {
9061
+ var ii = /* @__PURE__ */ ((c) => (c.Transaction = "Transaction", c.Bundle = "Bundle", c.Product = "Product", c.Variant = "Variant", c.Option = "Option", c.LineItem = "LineItem", c.Asset = "Asset", c))(ii || {});
9062
+ class Ji extends lA {
9062
9063
  constructor(e) {
9063
9064
  super(`"${e}"`);
9064
9065
  }
@@ -9073,7 +9074,7 @@ class dt extends lA {
9073
9074
  return e.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);
9074
9075
  }
9075
9076
  }
9076
- class Ji extends lA {
9077
+ class bi extends lA {
9077
9078
  constructor(e) {
9078
9079
  super(`[${e.map((A) => A.getRaw()).join(",")}]`);
9079
9080
  }
@@ -9120,7 +9121,7 @@ class MA {
9120
9121
  return e.sort((A, t) => (A.index ?? 0) - (t.index ?? 0)).map((A) => new Ne(A));
9121
9122
  }
9122
9123
  }
9123
- const ii = F`
9124
+ const si = F`
9124
9125
  fragment RegionFields on Region {
9125
9126
  width
9126
9127
  top
@@ -9138,7 +9139,7 @@ const ii = F`
9138
9139
  height
9139
9140
  }
9140
9141
  }
9141
- `, si = F`
9142
+ `, oi = F`
9142
9143
  fragment LookAtAnimationFields on LookAtAnimation {
9143
9144
  latDeg
9144
9145
  lonDeg
@@ -9149,7 +9150,7 @@ const ii = F`
9149
9150
  z
9150
9151
  }
9151
9152
  }
9152
- `, oi = F`
9153
+ `, ri = F`
9153
9154
  fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
9154
9155
  antiAliasing {
9155
9156
  samples
@@ -9233,21 +9234,21 @@ const ii = F`
9233
9234
  weight
9234
9235
  }
9235
9236
  }
9236
- `, ri = F`
9237
+ `, ci = F`
9237
9238
  fragment ModelAnimationFields on ModelAnimation {
9238
9239
  from
9239
9240
  to
9240
9241
  loop
9241
9242
  name
9242
9243
  }
9243
- `, ci = (c) => F`
9244
+ `, gi = (c) => F`
9244
9245
  ${ve(c)}
9245
9246
  ${iA}
9246
9247
  ${KA}
9247
- ${ii}
9248
9248
  ${si}
9249
9249
  ${oi}
9250
9250
  ${ri}
9251
+ ${ci}
9251
9252
  query GetWorkflows($ids: [String!]!) {
9252
9253
  workflows(ids: $ids) {
9253
9254
  allowProofDownload
@@ -9625,7 +9626,7 @@ const ii = F`
9625
9626
  }
9626
9627
  }
9627
9628
  }
9628
- `, gi = F`
9629
+ `, li = F`
9629
9630
  query GetTransactionForPartner($id: String!) {
9630
9631
  transactions(ids: [$id]) {
9631
9632
  id
@@ -9642,7 +9643,7 @@ const ii = F`
9642
9643
  }
9643
9644
  }
9644
9645
  }
9645
- `, li = F`
9646
+ `, Bi = F`
9646
9647
  query GetIntegrationWithPartnerAndLogo {
9647
9648
  currentIntegration {
9648
9649
  id
@@ -9660,7 +9661,7 @@ const ii = F`
9660
9661
  }
9661
9662
  }
9662
9663
  }
9663
- `, Bi = F`
9664
+ `, di = F`
9664
9665
  ${ve(!1)}
9665
9666
  query GetWorkflowForTheme($id: String!) {
9666
9667
  workflow(id: $id) {
@@ -9682,7 +9683,7 @@ const ii = F`
9682
9683
  }
9683
9684
  }
9684
9685
  }
9685
- `, di = F`
9686
+ `, wi = F`
9686
9687
  query GetCustomer($emailAddress: String!) {
9687
9688
  customer(emailAddress: $emailAddress) {
9688
9689
  id
@@ -9692,7 +9693,7 @@ const ii = F`
9692
9693
  }
9693
9694
  }
9694
9695
  }
9695
- `, wi = F`
9696
+ `, Ei = F`
9696
9697
  mutation CustomerCreate($details: CustomerDetailsInput!) {
9697
9698
  customerCreate(details: $details) {
9698
9699
  id
@@ -9702,7 +9703,7 @@ const ii = F`
9702
9703
  }
9703
9704
  }
9704
9705
  }
9705
- `, Ei = F`
9706
+ `, hi = F`
9706
9707
  mutation CustomerAuthenticate($loginToken: String!) {
9707
9708
  customerAuthenticate(loginToken: $loginToken) {
9708
9709
  id
@@ -9729,11 +9730,11 @@ const ii = F`
9729
9730
  }
9730
9731
  }
9731
9732
  }
9732
- `, hi = F`
9733
+ `, Ci = F`
9733
9734
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
9734
9735
  customerGenerateVerificationCode(emailAddress: $emailAddress)
9735
9736
  }
9736
- `, Ci = F`
9737
+ `, Qi = F`
9737
9738
  mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
9738
9739
  customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
9739
9740
  id
@@ -9777,10 +9778,10 @@ const ii = F`
9777
9778
  (e = i.fontData) != null && e.assetUrl && await AA(i.fontData.assetUrl);
9778
9779
  }
9779
9780
  }
9780
- }, Qi = async (c, e) => {
9781
+ }, ui = async (c, e) => {
9781
9782
  var n;
9782
9783
  const A = await P.getShadowGraphqlClient().query({
9783
- query: ci(((n = e == null ? void 0 : e.assets) == null ? void 0 : n.metadata) || !1),
9784
+ query: gi(((n = e == null ? void 0 : e.assets) == null ? void 0 : n.metadata) || !1),
9784
9785
  errorPolicy: "all",
9785
9786
  fetchPolicy: "no-cache",
9786
9787
  variables: {
@@ -9797,7 +9798,7 @@ const ii = F`
9797
9798
  }), ge.set({ id: i.option.id }, Promise.resolve(i.option)));
9798
9799
  });
9799
9800
  }), t;
9800
- }, ui = async (c, e) => {
9801
+ }, mi = async (c, e) => {
9801
9802
  const t = (await e).find((n) => n.id === c);
9802
9803
  if (!t)
9803
9804
  throw new Error(`Workflow not found: ${c}`);
@@ -9806,11 +9807,11 @@ const ii = F`
9806
9807
  const A = c.map((s) => ge.get({ id: s, options: e })), t = c.filter((s, o) => A[o] === void 0);
9807
9808
  if (t.length === 0)
9808
9809
  return Promise.all(A);
9809
- const n = Qi(t, e), a = t.map(
9810
- (s) => ge.set({ id: s, options: e }, ui(s, n))
9810
+ const n = ui(t, e), a = t.map(
9811
+ (s) => ge.set({ id: s, options: e }, mi(s, n))
9811
9812
  ), i = A.filter((s) => s !== void 0);
9812
9813
  return await Promise.all(i.concat(a));
9813
- }, ue = async (c, e) => (await wt([c], e))[0], mi = (c) => c.sort((e, A) => e.index - A.index).map((e) => ({
9814
+ }, ue = async (c, e) => (await wt([c], e))[0], Ii = (c) => c.sort((e, A) => e.index - A.index).map((e) => ({
9814
9815
  id: J(),
9815
9816
  panelId: e.name,
9816
9817
  name: e.name,
@@ -9825,9 +9826,9 @@ const ii = F`
9825
9826
  editableArea: e.editableArea
9826
9827
  })), ze = (c, e) => {
9827
9828
  const A = c.workflowState, t = A ? JSON.parse(A) : void 0;
9828
- return t ? Object.values(t.layouts).map((n) => n.layout) : mi(e.panels);
9829
+ return t ? Object.values(t.layouts).map((n) => n.layout) : Ii(e.panels);
9829
9830
  };
9830
- class Ii {
9831
+ class pi {
9831
9832
  constructor(e) {
9832
9833
  this.updateTransactionState = async (A) => {
9833
9834
  try {
@@ -9855,11 +9856,11 @@ class Ii {
9855
9856
  getFlowService() {
9856
9857
  if (!Tt())
9857
9858
  throw new Error("Application key required to use Flow Service.");
9858
- return new ti();
9859
+ return new ni();
9859
9860
  }
9860
9861
  async getIntegration() {
9861
9862
  return (await P.getShadowGraphqlClient().query({
9862
- query: li,
9863
+ query: Bi,
9863
9864
  errorPolicy: "all"
9864
9865
  })).data.currentIntegration;
9865
9866
  }
@@ -9906,7 +9907,7 @@ class Ii {
9906
9907
  async authenticateTransactionFromLocalStorage(e) {
9907
9908
  var g, B, l, d, w, h;
9908
9909
  const A = P.getShadowGraphqlClient(), t = await A.query({
9909
- query: gi,
9910
+ query: li,
9910
9911
  errorPolicy: "all",
9911
9912
  fetchPolicy: "no-cache",
9912
9913
  variables: {
@@ -9946,7 +9947,7 @@ class Ii {
9946
9947
  }
9947
9948
  }
9948
9949
  const r = (await A.query({
9949
- query: Bi,
9950
+ query: di,
9950
9951
  errorPolicy: "all",
9951
9952
  variables: {
9952
9953
  id: n.workflowId
@@ -9982,7 +9983,7 @@ class Ii {
9982
9983
  var i;
9983
9984
  this.customer = void 0;
9984
9985
  const A = P.getShadowGraphqlClient(), n = (await A.query({
9985
- query: di,
9986
+ query: wi,
9986
9987
  errorPolicy: "all",
9987
9988
  fetchPolicy: "no-cache",
9988
9989
  variables: {
@@ -9991,7 +9992,7 @@ class Ii {
9991
9992
  })).data.customer;
9992
9993
  if (!n.id) {
9993
9994
  const o = (i = (await A.mutate({
9994
- mutation: wi,
9995
+ mutation: Ei,
9995
9996
  errorPolicy: "all",
9996
9997
  fetchPolicy: "no-cache",
9997
9998
  variables: {
@@ -10023,7 +10024,7 @@ class Ii {
10023
10024
  if (!n)
10024
10025
  return !1;
10025
10026
  const i = (s = (await A.mutate({
10026
- mutation: Ei,
10027
+ mutation: hi,
10027
10028
  errorPolicy: "all",
10028
10029
  fetchPolicy: "no-cache",
10029
10030
  variables: {
@@ -10038,7 +10039,7 @@ class Ii {
10038
10039
  */
10039
10040
  async generateVerificationCode(e) {
10040
10041
  await P.getShadowGraphqlClient().mutate({
10041
- mutation: hi,
10042
+ mutation: Ci,
10042
10043
  variables: {
10043
10044
  emailAddress: e
10044
10045
  }
@@ -10053,7 +10054,7 @@ class Ii {
10053
10054
  async verifyCode(e, A) {
10054
10055
  var a, i;
10055
10056
  const n = (a = (await P.getShadowGraphqlClient().mutate({
10056
- mutation: Ci,
10057
+ mutation: Qi,
10057
10058
  errorPolicy: "all",
10058
10059
  fetchPolicy: "no-cache",
10059
10060
  variables: {
@@ -10079,7 +10080,7 @@ class Ii {
10079
10080
  async getNewBundle(e, A, t) {
10080
10081
  var o, r, g;
10081
10082
  const a = (g = (await P.getShadowGraphqlClient().mutate({
10082
- mutation: Ra(((r = (o = t == null ? void 0 : t.graphql) == null ? void 0 : o.productCollection) == null ? void 0 : r.eagerFetchProducts) || !1),
10083
+ mutation: Ua(((r = (o = t == null ? void 0 : t.graphql) == null ? void 0 : o.productCollection) == null ? void 0 : r.eagerFetchProducts) || !1),
10083
10084
  variables: {
10084
10085
  collectionId: e,
10085
10086
  initialMetadata: A ? Object.entries(A).map((B, l) => ({ key: B[0], value: B[1] })) : void 0
@@ -10103,7 +10104,7 @@ class Ii {
10103
10104
  async getExistingBundle(e, A, t, n) {
10104
10105
  var B, l, d, w, h, E;
10105
10106
  const a = x.getMap("bundleOwnerIds"), i = a == null ? void 0 : a.get(e), s = await P.getShadowGraphqlClient().query({
10106
- query: xa(((l = (B = n == null ? void 0 : n.graphql) == null ? void 0 : B.productCollection) == null ? void 0 : l.eagerFetchProducts) || !1),
10107
+ query: Pa(((l = (B = n == null ? void 0 : n.graphql) == null ? void 0 : B.productCollection) == null ? void 0 : l.eagerFetchProducts) || !1),
10107
10108
  variables: {
10108
10109
  id: e
10109
10110
  },
@@ -10128,7 +10129,7 @@ class Ii {
10128
10129
  if (!this.customer)
10129
10130
  throw new Error("Customer not authenticated.");
10130
10131
  const e = await P.getShadowGraphqlClient().query({
10131
- query: Na,
10132
+ query: Ha,
10132
10133
  variables: {
10133
10134
  id: this.customer.id
10134
10135
  },
@@ -10584,7 +10585,7 @@ class Ii {
10584
10585
  return e.type === "integration" ? this.getIntegrationProductById(e.integrationProductId) : this.getIntegrationProductFromExternalIds(e.externalIntegrationId, e.externalProductId);
10585
10586
  }
10586
10587
  }
10587
- class bi {
10588
+ class Li {
10588
10589
  getInitializationPromise() {
10589
10590
  return Promise.resolve();
10590
10591
  }
@@ -10709,8 +10710,8 @@ class bi {
10709
10710
  setWorkflowStateSyncEnabled(e) {
10710
10711
  }
10711
10712
  }
10712
- var pi = /* @__PURE__ */ ((c) => (c.SelectFrame = "SelectFrame", c.SelectImage = "SelectImage", c.Position = "Position", c))(pi || {});
10713
- class fi extends W {
10713
+ var fi = /* @__PURE__ */ ((c) => (c.SelectFrame = "SelectFrame", c.SelectImage = "SelectImage", c.Position = "Position", c))(fi || {});
10714
+ class Di extends W {
10714
10715
  constructor(e, A) {
10715
10716
  var t;
10716
10717
  super(e, A), this.frameService = (t = this.manager.getStepSpecificServices(this.getId())) == null ? void 0 : t.frameService;
@@ -10751,115 +10752,116 @@ class fi extends W {
10751
10752
  }
10752
10753
  }
10753
10754
  export {
10754
- Ji as ArrayInput,
10755
+ bi as ArrayInput,
10755
10756
  _ as AssetNotFoundError,
10756
- Oi as AssetType,
10757
- zi as BringForwardCommand,
10758
- Ki as BringToBackCommand,
10759
- ji as BringToFrontCommand,
10760
- Vi as CanvasCommand,
10757
+ zi as AssetType,
10758
+ Ki as BringForwardCommand,
10759
+ ji as BringToBackCommand,
10760
+ Vi as BringToFrontCommand,
10761
+ Wi as CanvasCommand,
10761
10762
  Oe as CollectionProduct,
10762
- Wi as CommandContext,
10763
+ Xi as CommandContext,
10763
10764
  cn as ConversionDataType,
10764
10765
  rn as ConversionLocation,
10765
- Xi as CreateElementCommand,
10766
- qi as CreateLayoutCommand,
10767
- Zi as DeleteElementCommand,
10766
+ qi as CreateElementCommand,
10767
+ Zi as CreateLayoutCommand,
10768
+ $i as DeleteElementCommand,
10768
10769
  Qe as FlowExecutionNodeResult,
10769
- ni as FlowExecutionResult,
10770
- ti as FlowService,
10771
- $i as FontAlignmentCommand,
10772
- _i as FontColorCommand,
10773
- es as FontSizeCommand,
10774
- As as FontSourceCommand,
10770
+ ai as FlowExecutionResult,
10771
+ ni as FlowService,
10772
+ _i as FontAlignmentCommand,
10773
+ es as FontColorCommand,
10774
+ As as FontSizeCommand,
10775
+ ts as FontSourceCommand,
10775
10776
  In as FrameService,
10776
- pi as FrameStep,
10777
- fi as FrameStepHandle,
10777
+ fi as FrameStep,
10778
+ Di as FrameStepHandle,
10778
10779
  gA as GlobalPropertyHandle,
10779
- ts as GroupCommand,
10780
+ ns as GroupCommand,
10780
10781
  Zn as IllustrationStepHandle,
10781
10782
  Pe as InformationMessageType,
10782
10783
  aa as InformationStepHandle,
10783
10784
  MA as IntegrationProduct,
10784
10785
  sn as IntegrationType,
10785
- ns as LayoutElementFactory,
10786
- as as LayoutElementType,
10786
+ as as LayoutElementFactory,
10787
+ is as LayoutElementType,
10787
10788
  z as LayoutNotFoundError,
10788
10789
  $n as MaterialStepHandle,
10789
10790
  ye as MisconfigurationError,
10790
- bi as MockWorkflowManager,
10791
+ Li as MockWorkflowManager,
10791
10792
  _n as ModelStepHandle,
10792
- is as MoveCommand,
10793
+ ss as MoveCommand,
10793
10794
  dt as ObjectInput,
10794
- ai as ObjectInputType,
10795
+ ii as ObjectInputType,
10795
10796
  Me as OptionNotFoundError,
10796
10797
  oe as ParseError,
10797
10798
  ea as PictureStepHandle,
10798
10799
  on as ProductCameraRig,
10799
- $a as ProductCollection,
10800
+ _a as ProductCollection,
10800
10801
  Ne as ProductWorkflow,
10801
10802
  ge as PromiseCache,
10802
10803
  XA as PromiseQueue,
10803
10804
  Aa as QuestionStepHandle,
10804
10805
  WA as QueueablePromise,
10805
- ss as ResizeCommand,
10806
+ os as ResizeCommand,
10806
10807
  ce as ResourceNotFoundError,
10807
- os as RotateCommand,
10808
- rs as SendBackwardsCommand,
10808
+ rs as RotateCommand,
10809
+ cs as SendBackwardsCommand,
10809
10810
  ta as ShapeStepHandle,
10810
- Ii as SpiffCommerceClient,
10811
+ pi as SpiffCommerceClient,
10811
10812
  Ye as StakeholderType,
10812
- cs as StepAspectType,
10813
+ gs as StepAspectType,
10813
10814
  W as StepHandle,
10814
- gs as StepType,
10815
- ls as TextChangeCommand,
10816
- ki as TextInput,
10815
+ ls as StepType,
10816
+ Bs as TextChangeCommand,
10817
+ Ji as TextInput,
10817
10818
  na as TextStepHandle,
10818
- ei as Transform,
10819
- _a as TransformCollection,
10819
+ Ai as Transform,
10820
+ ei as TransformCollection,
10820
10821
  k as UnhandledBehaviorError,
10821
- Bs as UnitOfMeasurement,
10822
+ ds as UnitOfMeasurement,
10822
10823
  X as Variant,
10824
+ wa as WorkflowExperienceEventType,
10823
10825
  he as WorkflowExperienceImpl,
10824
10826
  O as assetService,
10825
10827
  ga as createDesign,
10826
- ds as dataUrlFromExternalUrl,
10828
+ ws as dataUrlFromExternalUrl,
10827
10829
  Te as designService,
10828
- ws as determineCorrectFontSizeAndLines,
10830
+ Es as determineCorrectFontSizeAndLines,
10829
10831
  Dn as digitalContentStepService,
10830
- Es as findElement,
10831
- hs as frameDataCache,
10832
+ hs as findElement,
10833
+ Cs as frameDataCache,
10832
10834
  Xe as frameStepService,
10833
- Cs as generate,
10834
- Da as generateCommands,
10835
- Qs as generateSVGWithUnknownColors,
10836
- vi as generateStateFromDesignInputSteps,
10837
- us as getAttributesFromArrayBuffer,
10838
- ms as getAxisAlignedBoundingBox,
10835
+ Qs as generate,
10836
+ Fa as generateCommands,
10837
+ us as generateSVGWithUnknownColors,
10838
+ ki as generateStateFromDesignInputSteps,
10839
+ ms as getAttributesFromArrayBuffer,
10840
+ Is as getAxisAlignedBoundingBox,
10839
10841
  mn as getBoundedOffsets,
10840
- Is as getFrameData,
10841
- ps as getSvgElement,
10842
+ ps as getFrameData,
10843
+ fs as getSvgElement,
10842
10844
  ue as getWorkflow,
10843
10845
  wt as getWorkflows,
10844
10846
  P as graphQlManager,
10845
10847
  pe as illustrationStepService,
10846
- fs as loadFont,
10848
+ Ds as loadFont,
10847
10849
  ZA as materialStepService,
10848
10850
  $A as modelStepService,
10849
10851
  xn as moduleStepService,
10850
10852
  j as optionService,
10851
- Ds as patternImageDataCache,
10853
+ Fs as patternImageDataCache,
10852
10854
  x as persistenceService,
10853
10855
  _A as pictureStepService,
10854
10856
  et as questionStepService,
10855
- Fs as registerFetchImplementation,
10856
- Ms as registerWindowImplementation,
10857
- ys as rehydrateSerializedLayout,
10858
- Ys as setCanvasModule,
10857
+ Ms as registerFetchImplementation,
10858
+ ys as registerWindowImplementation,
10859
+ Ys as rehydrateSerializedLayout,
10860
+ Ss as setCanvasModule,
10859
10861
  re as shapeStepService,
10860
10862
  pn as shortenUrl,
10861
10863
  q as spiffCoreConfiguration,
10862
- Gi as stepAspectValuesToDesignInputSteps,
10864
+ vi as stepAspectValuesToDesignInputSteps,
10863
10865
  K as textStepService,
10864
10866
  Un as toast
10865
10867
  };