@spiffcommerce/core 30.0.1-beta.d8ca7f5f-c09f-5948-929d-d01551394c73 → 30.0.1

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
@@ -1,4 +1,4 @@
1
- import { createHttpLink as dr, ApolloClient as Ar, from as ur, InMemoryCache as hr, gql as E } from "@apollo/client/core";
1
+ import { createHttpLink as dr, ApolloClient as Ar, from as ur, InMemoryCache as hr, gql as v } from "@apollo/client/core";
2
2
  import { setContext as mr } from "@apollo/client/link/context";
3
3
  import { onError as gr } from "@apollo/client/link/error";
4
4
  import { renderToStaticMarkup as pr } from "preact-render-to-string";
@@ -3376,14 +3376,14 @@ const le = (r) => {
3376
3376
  colors: a,
3377
3377
  svg: i
3378
3378
  };
3379
- }, di = E`
3379
+ }, di = v`
3380
3380
  fragment AssetMetadataFields on Asset {
3381
3381
  metadata {
3382
3382
  key
3383
3383
  value
3384
3384
  }
3385
3385
  }
3386
- `, ee = (r) => E`
3386
+ `, ee = (r) => v`
3387
3387
  ${r && di || ""}
3388
3388
  fragment AssetFields on Asset {
3389
3389
  name
@@ -3426,14 +3426,14 @@ const le = (r) => {
3426
3426
  }
3427
3427
  ${r && "...AssetMetadataFields" || ""}
3428
3428
  }
3429
- `, Ai = E`
3429
+ `, Ai = v`
3430
3430
  ${ee(!1)}
3431
3431
  query GetAssets($keys: [String]!) {
3432
3432
  assets(keys: $keys) {
3433
3433
  ...AssetFields
3434
3434
  }
3435
3435
  }
3436
- `, ya = E`
3436
+ `, ya = v`
3437
3437
  fragment MaterialFields on Material {
3438
3438
  id
3439
3439
  name
@@ -3480,14 +3480,14 @@ const le = (r) => {
3480
3480
  fileLink
3481
3481
  }
3482
3482
  }
3483
- `, ui = E`
3483
+ `, ui = v`
3484
3484
  ${ya}
3485
3485
  query GetMaterials($ids: [String]) {
3486
3486
  materials(id: $ids) {
3487
3487
  ...MaterialFields
3488
3488
  }
3489
3489
  }
3490
- `, hi = E`
3490
+ `, hi = v`
3491
3491
  mutation CreateAsset($name: String!, $type: String!, $mimeType: String!, $anonymous: Boolean, $temporary: Boolean) {
3492
3492
  assetCreate(name: $name, type: $type, mimeType: $mimeType, anonymous: $anonymous, temporary: $temporary) {
3493
3493
  uploadUrl
@@ -3501,7 +3501,7 @@ const le = (r) => {
3501
3501
  }
3502
3502
  }
3503
3503
  }
3504
- `, mi = E`
3504
+ `, mi = v`
3505
3505
  ${ee(!1)}
3506
3506
  mutation RemoveBackgroundFromAsset($key: String!) {
3507
3507
  assetRemoveBackground(key: $key) {
@@ -3833,7 +3833,7 @@ class Ci {
3833
3833
  this.disabled = t;
3834
3834
  }
3835
3835
  }
3836
- const Jt = new Ci(), Bn = E`
3836
+ const Jt = new Ci(), Bn = v`
3837
3837
  fragment OptionFields on Option {
3838
3838
  id
3839
3839
  name
@@ -3870,7 +3870,7 @@ const Jt = new Ci(), Bn = E`
3870
3870
  ...AssetFields
3871
3871
  }
3872
3872
  }
3873
- `, wi = E`
3873
+ `, wi = v`
3874
3874
  ${ee(!1)}
3875
3875
  ${ya}
3876
3876
  ${Bn}
@@ -3948,7 +3948,7 @@ class Ei {
3948
3948
  }
3949
3949
  }
3950
3950
  }
3951
- const Y = new Ei(), In = E`
3951
+ const Y = new Ei(), In = v`
3952
3952
  fragment ActiveIntegrationFields on Integration {
3953
3953
  id
3954
3954
  logo
@@ -3967,7 +3967,7 @@ const Y = new Ei(), In = E`
3967
3967
  currencyCode
3968
3968
  }
3969
3969
  }
3970
- `, Ne = E`
3970
+ `, Ne = v`
3971
3971
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3972
3972
  id
3973
3973
  product {
@@ -3985,7 +3985,7 @@ const Y = new Ei(), In = E`
3985
3985
  preloadImageUrl
3986
3986
  }
3987
3987
  }
3988
- `, bi = E`
3988
+ `, bi = v`
3989
3989
  ${Ne}
3990
3990
  mutation CreateTransactions(
3991
3991
  $inputs: [TransactionCreateInput]!
@@ -4076,7 +4076,7 @@ const Y = new Ei(), In = E`
4076
4076
  }
4077
4077
  }
4078
4078
  }
4079
- `, Pn = E`
4079
+ `, Pn = v`
4080
4080
  fragment StakeholderFields on Stakeholder {
4081
4081
  id
4082
4082
  type
@@ -4084,7 +4084,7 @@ const Y = new Ei(), In = E`
4084
4084
  authorizationNote
4085
4085
  authorizationStatus
4086
4086
  }
4087
- `, Dn = E`
4087
+ `, Dn = v`
4088
4088
  fragment TransactionShareActionFields on TransactionShareAction {
4089
4089
  id
4090
4090
  title
@@ -4093,7 +4093,7 @@ const Y = new Ei(), In = E`
4093
4093
  precedence
4094
4094
  url
4095
4095
  }
4096
- `, Bi = E`
4096
+ `, Bi = v`
4097
4097
  ${Ne}
4098
4098
  ${Pn}
4099
4099
  ${Dn}
@@ -4259,19 +4259,19 @@ const Y = new Ei(), In = E`
4259
4259
  }
4260
4260
  }
4261
4261
  }
4262
- `, Ii = E`
4262
+ `, Ii = v`
4263
4263
  mutation UpdateTransactionWorkflowState($id: String!, $workflowState: String!) {
4264
4264
  transactionUpdate(id: $id, workflowState: $workflowState) {
4265
4265
  id
4266
4266
  }
4267
4267
  }
4268
- `, Pi = E`
4268
+ `, Pi = v`
4269
4269
  mutation UpdateTransactionQuantity($id: String!, $quantity: Int) {
4270
4270
  transactionUpdate(id: $id, quantity: $quantity) {
4271
4271
  id
4272
4272
  }
4273
4273
  }
4274
- `, Di = E`
4274
+ `, Di = v`
4275
4275
  query ReadConversionConfigurationQuery($id: String!) {
4276
4276
  conversionConfiguration(id: $id) {
4277
4277
  id
@@ -4289,7 +4289,7 @@ const Y = new Ei(), In = E`
4289
4289
  mandatory
4290
4290
  }
4291
4291
  }
4292
- `, Fi = E`
4292
+ `, Fi = v`
4293
4293
  query ReadTransactionForDesignCreation($id: String!) {
4294
4294
  transactions(ids: [$id]) {
4295
4295
  id
@@ -4359,7 +4359,7 @@ const Y = new Ei(), In = E`
4359
4359
  workflowViewerReadOnlyLink
4360
4360
  }
4361
4361
  }
4362
- `, xi = E`
4362
+ `, xi = v`
4363
4363
  ${Dn}
4364
4364
  query ReadTransactionForShareActions($id: String!) {
4365
4365
  transactions(ids: [$id]) {
@@ -4370,14 +4370,14 @@ const Y = new Ei(), In = E`
4370
4370
  }
4371
4371
  }
4372
4372
  }
4373
- `, Fn = E`
4373
+ `, Fn = v`
4374
4374
  query ReadWorkflowStates($ids: [String]!) {
4375
4375
  transactions(ids: $ids) {
4376
4376
  id
4377
4377
  workflowState
4378
4378
  }
4379
4379
  }
4380
- `, xn = (r) => E`
4380
+ `, xn = (r) => v`
4381
4381
  ${Ne}
4382
4382
  fragment IntegrationProductFields on IntegrationProduct {
4383
4383
  id
@@ -4460,14 +4460,14 @@ const Y = new Ei(), In = E`
4460
4460
  ` : ""}
4461
4461
  }
4462
4462
  }
4463
- `, ki = (r) => E`
4463
+ `, ki = (r) => v`
4464
4464
  ${xn(r)}
4465
4465
  query GetIntegrationProducts($ids: [String!]!) {
4466
4466
  integrationProducts(ids: $ids) {
4467
4467
  ...IntegrationProductFields
4468
4468
  }
4469
4469
  }
4470
- `, Mi = (r) => E`
4470
+ `, Mi = (r) => v`
4471
4471
  ${xn(r)}
4472
4472
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4473
4473
  integrationProductFromExternalIds(
@@ -4477,7 +4477,7 @@ const Y = new Ei(), In = E`
4477
4477
  ...IntegrationProductFields
4478
4478
  }
4479
4479
  }
4480
- `, Ti = E`
4480
+ `, Ti = v`
4481
4481
  ${Pn}
4482
4482
  query ReadTransactionForStakeholders($id: String!) {
4483
4483
  transactions(ids: [$id]) {
@@ -4489,11 +4489,11 @@ const Y = new Ei(), In = E`
4489
4489
  }
4490
4490
  }
4491
4491
  }
4492
- `, Ni = E`
4492
+ `, Ni = v`
4493
4493
  mutation FinalizeUpdateTransaction($transactionId: String!) {
4494
4494
  transactionFinalizeUpdate(transactionId: $transactionId)
4495
4495
  }
4496
- `, Qi = E`
4496
+ `, Qi = v`
4497
4497
  fragment RegionFields on Region {
4498
4498
  width
4499
4499
  top
@@ -4511,7 +4511,7 @@ const Y = new Ei(), In = E`
4511
4511
  height
4512
4512
  }
4513
4513
  }
4514
- `, Ri = E`
4514
+ `, Ri = v`
4515
4515
  fragment LookAtAnimationFields on LookAtAnimation {
4516
4516
  latDeg
4517
4517
  lonDeg
@@ -4522,7 +4522,7 @@ const Y = new Ei(), In = E`
4522
4522
  z
4523
4523
  }
4524
4524
  }
4525
- `, $i = E`
4525
+ `, $i = v`
4526
4526
  fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
4527
4527
  antiAliasing {
4528
4528
  samples
@@ -4606,14 +4606,14 @@ const Y = new Ei(), In = E`
4606
4606
  weight
4607
4607
  }
4608
4608
  }
4609
- `, Oi = E`
4609
+ `, Oi = v`
4610
4610
  fragment ModelAnimationFields on ModelAnimation {
4611
4611
  from
4612
4612
  to
4613
4613
  loop
4614
4614
  name
4615
4615
  }
4616
- `, Ui = (r) => E`
4616
+ `, Ui = (r) => v`
4617
4617
  ${ee(r)}
4618
4618
  ${ya}
4619
4619
  ${Bn}
@@ -5015,7 +5015,7 @@ const Y = new Ei(), In = E`
5015
5015
  }
5016
5016
  }
5017
5017
  }
5018
- `, Li = E`
5018
+ `, Li = v`
5019
5019
  query GetTransactionForPartner($id: String!) {
5020
5020
  transactions(ids: [$id]) {
5021
5021
  id
@@ -5033,7 +5033,7 @@ const Y = new Ei(), In = E`
5033
5033
  }
5034
5034
  }
5035
5035
  }
5036
- `, Vi = E`
5036
+ `, Vi = v`
5037
5037
  ${ee(!1)}
5038
5038
  query GetWorkflowForTheme($id: String!) {
5039
5039
  workflow(id: $id) {
@@ -5055,7 +5055,7 @@ const Y = new Ei(), In = E`
5055
5055
  }
5056
5056
  }
5057
5057
  }
5058
- `, Qe = E`
5058
+ `, Qe = v`
5059
5059
  fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
5060
5060
  id
5061
5061
  themeInstallId
@@ -5133,14 +5133,14 @@ const Y = new Ei(), In = E`
5133
5133
  }
5134
5134
  }
5135
5135
  }
5136
- `, zi = E`
5136
+ `, zi = v`
5137
5137
  ${Qe}
5138
5138
  query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
5139
5139
  marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
5140
5140
  ...MarketplaceThemeInstallConfigurationFields
5141
5141
  }
5142
5142
  }
5143
- `, Gi = E`
5143
+ `, Gi = v`
5144
5144
  ${In}
5145
5145
  ${Qe}
5146
5146
  query GetCurrentIntegration($themeConfigurationId: String) {
@@ -5153,7 +5153,7 @@ const Y = new Ei(), In = E`
5153
5153
  ...ActiveIntegrationFields
5154
5154
  }
5155
5155
  }
5156
- `, Wi = E`
5156
+ `, Wi = v`
5157
5157
  ${Qe}
5158
5158
  query ReadTransactionForMarketplaceTheme($id: String!) {
5159
5159
  transactions(ids: [$id]) {
@@ -5162,7 +5162,7 @@ const Y = new Ei(), In = E`
5162
5162
  }
5163
5163
  }
5164
5164
  }
5165
- `, qi = E`
5165
+ `, qi = v`
5166
5166
  ${Qe}
5167
5167
  query ReadBundleForMarketplaceTheme($id: String!) {
5168
5168
  bundles(ids: [$id]) {
@@ -5171,14 +5171,14 @@ const Y = new Ei(), In = E`
5171
5171
  }
5172
5172
  }
5173
5173
  }
5174
- `, Hi = E`
5174
+ `, Hi = v`
5175
5175
  mutation CreateOrder($orderItems: [OrderItemInput]!) {
5176
5176
  orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
5177
5177
  id
5178
5178
  internalId
5179
5179
  }
5180
5180
  }
5181
- `, ji = E`
5181
+ `, ji = v`
5182
5182
  query CurrencyConversion($from: String!, $to: String!) {
5183
5183
  currencyConversion(from: $from, to: $to) {
5184
5184
  rateFrom
@@ -5368,8 +5368,8 @@ const Q = () => {
5368
5368
  viewBox: A,
5369
5369
  width: u
5370
5370
  }) => {
5371
- var v;
5372
- const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (v = a.colorProfiles) == null ? void 0 : v.map((b, P) => (
5371
+ var E;
5372
+ const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((b, P) => (
5373
5373
  /* @ts-ignore */
5374
5374
  /* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, P)
5375
5375
  )), S = n.map((b) => ({
@@ -5618,8 +5618,8 @@ const Q = () => {
5618
5618
  /* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
5619
5619
  ] })
5620
5620
  ] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
5621
- var w, S, y, v, b, P, D, F, k, T;
5622
- const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((v = r.pattern) == null ? void 0 : v.height) || 0, g = ((b = r.pattern) == null ? void 0 : b.scaleX) || 1, p = ((P = r.pattern) == null ? void 0 : P.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5621
+ var w, S, y, E, b, P, D, F, k, T;
5622
+ const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((b = r.pattern) == null ? void 0 : b.scaleX) || 1, p = ((P = r.pattern) == null ? void 0 : P.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
5623
5623
  return [(F = r.pattern) != null && F.svg ? {
5624
5624
  id: `${t}-contents`,
5625
5625
  type: M.Illustration,
@@ -5780,8 +5780,8 @@ const es = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ve = /* @_
5780
5780
  parseInt(u.getAttribute("font-size") ?? "72")
5781
5781
  ), S = w.getBoundingBox().x2 - w.getBoundingBox().x1;
5782
5782
  let y = 0;
5783
- const v = A.getAttribute("text-anchor");
5784
- v === "middle" ? y = S / 2 : v === "end" && (y = S);
5783
+ const E = A.getAttribute("text-anchor");
5784
+ E === "middle" ? y = S / 2 : E === "end" && (y = S);
5785
5785
  const b = g.getPath(
5786
5786
  A.innerHTML,
5787
5787
  parseFloat(A.getAttribute("x") ?? "0") - y,
@@ -8099,9 +8099,9 @@ class bs {
8099
8099
  );
8100
8100
  }
8101
8101
  if (t.data.colorPickerEnabled) {
8102
- const y = await this.availableColors(t, i) || [], v = Object.keys(c.colors), b = y.length === 1 && v.length === 1;
8102
+ const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), b = y.length === 1 && E.length === 1;
8103
8103
  if (b) {
8104
- const P = y[0], D = v[0];
8104
+ const P = y[0], D = E[0];
8105
8105
  await this.changeColors(
8106
8106
  t,
8107
8107
  u.map((F) => F.regionElement),
@@ -8861,7 +8861,7 @@ class Ns {
8861
8861
  const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find(
8862
8862
  (S) => {
8863
8863
  var y;
8864
- return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((v) => v.aspectName).includes(S.name));
8864
+ return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((E) => E.aspectName).includes(S.name));
8865
8865
  }
8866
8866
  );
8867
8867
  if (w) {
@@ -9104,14 +9104,14 @@ class Ns {
9104
9104
  let w = (A = n.storage) == null ? void 0 : A.text;
9105
9105
  const S = e.getWorkflowExperience().getBundle();
9106
9106
  if (S && t.globalPropertyAspectConfigurations) {
9107
- const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, v = y == null ? void 0 : y.find(
9107
+ const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find(
9108
9108
  (b) => {
9109
9109
  var P;
9110
9110
  return b.type === z.Text && ((P = t.globalPropertyAspectConfigurations) == null ? void 0 : P.map((D) => D.aspectName).includes(b.name));
9111
9111
  }
9112
9112
  );
9113
- if (v) {
9114
- const P = S.getGlobalPropertyStateManager().getAspect(v.name);
9113
+ if (E) {
9114
+ const P = S.getGlobalPropertyStateManager().getAspect(E.name);
9115
9115
  P && (w = P);
9116
9116
  }
9117
9117
  }
@@ -9121,13 +9121,13 @@ class Ns {
9121
9121
  f,
9122
9122
  async () => {
9123
9123
  e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
9124
- const y = o.map((b) => new Ha(b.id, p)), v = new O(y);
9125
- e.getCommandDispatcher()(v);
9124
+ const y = o.map((b) => new Ha(b.id, p)), E = new O(y);
9125
+ e.getCommandDispatcher()(E);
9126
9126
  }
9127
9127
  ), o.length === 0 && l) {
9128
9128
  const y = Y.getDefaultVariant(l);
9129
9129
  if (y) {
9130
- const v = await this.selectVariantCommand(
9130
+ const E = await this.selectVariantCommand(
9131
9131
  t,
9132
9132
  y,
9133
9133
  { text: w },
@@ -9138,7 +9138,7 @@ class Ns {
9138
9138
  () => {
9139
9139
  }
9140
9140
  );
9141
- e.getCommandDispatcher()(v.command);
9141
+ e.getCommandDispatcher()(E.command);
9142
9142
  }
9143
9143
  } else {
9144
9144
  const { command: y } = q.updateInputText(
@@ -9350,7 +9350,7 @@ class Ns {
9350
9350
  curved: a.curved,
9351
9351
  paths: a.paths,
9352
9352
  fillSpotColorDefinition: f
9353
- }, y = [], v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
9353
+ }, y = [], E = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
9354
9354
  if (!S.fontData)
9355
9355
  throw new G("Failed to resolve font data for text.");
9356
9356
  const [P, D] = fe(
@@ -9367,7 +9367,7 @@ class Ns {
9367
9367
  [l],
9368
9368
  { size: a.size, minSize: a.minSize, maxSize: a.maxSize }
9369
9369
  );
9370
- v.set(S.id, P), b.set(S.id, D);
9370
+ E.set(S.id, P), b.set(S.id, D);
9371
9371
  const F = a.curved || a.vertical ? l : (D || []).join(`
9372
9372
  `);
9373
9373
  y.push(
@@ -9414,21 +9414,21 @@ class Ns {
9414
9414
  const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
9415
9415
  for (const S of h)
9416
9416
  if (S.region) {
9417
- const [y, v] = fe(
9417
+ const [y, E] = fe(
9418
9418
  e,
9419
9419
  a,
9420
9420
  S.region,
9421
9421
  [u],
9422
9422
  { size: t.data.size, minSize: t.data.minSize, maxSize: t.data.maxSize }
9423
9423
  );
9424
- m.set(S.id, y), g.set(S.id, v);
9424
+ m.set(S.id, y), g.set(S.id, E);
9425
9425
  }
9426
9426
  const f = (() => {
9427
9427
  const S = Kt(u, s);
9428
9428
  if (t.data && t.data.maxLength && S.length > t.data.maxLength)
9429
9429
  return d && d(!0), { info: "0" };
9430
- const y = s.getProfanities(), v = ta(u.toLowerCase());
9431
- for (const b of v)
9430
+ const y = s.getProfanities(), E = ta(u.toLowerCase());
9431
+ for (const b of E)
9432
9432
  for (const P in y) {
9433
9433
  const D = y[P].toLowerCase().replace(/\s/g, "");
9434
9434
  if (b === D)
@@ -9625,8 +9625,8 @@ class Gs extends Qs {
9625
9625
  w.appendChild(S), S.appendChild(Os(0, 2, 2, "shadow"));
9626
9626
  const y = et("path");
9627
9627
  y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
9628
- const v = et("g");
9629
- v.classList.add("module-layer0"), w.appendChild(v), v.setAttribute("filter", "url(#shadow)"), v.innerHTML = y.outerHTML;
9628
+ const E = et("g");
9629
+ E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
9630
9630
  const b = et("g");
9631
9631
  b.classList.add("module-layer1"), w.appendChild(b), b.setAttribute("stroke-width", "3"), b.setAttribute("stroke", "rgb(45,41,38)"), b.setAttribute("fill", "rgb(45,41,38)"), b.setAttribute("transform", "translate(0.5,0)"), b.innerHTML = o;
9632
9632
  const P = et("g");
@@ -9654,7 +9654,7 @@ async function _n(r) {
9654
9654
  return new Gs();
9655
9655
  throw new G(`Failed to resolve Module, Module ${r} not found`);
9656
9656
  }
9657
- const re = E`
9657
+ const re = v`
9658
9658
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9659
9659
  name
9660
9660
  value
@@ -9676,7 +9676,7 @@ const re = E`
9676
9676
  }
9677
9677
  }
9678
9678
  }
9679
- `, Ws = E`
9679
+ `, Ws = v`
9680
9680
  ${re}
9681
9681
  mutation CreateGlobalPropertyState($bundleId: String!) {
9682
9682
  globalPropertyStateCreate(bundleId: $bundleId) {
@@ -9686,7 +9686,7 @@ const re = E`
9686
9686
  }
9687
9687
  }
9688
9688
  }
9689
- `, qs = E`
9689
+ `, qs = v`
9690
9690
  ${re}
9691
9691
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9692
9692
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
@@ -9696,7 +9696,7 @@ const re = E`
9696
9696
  }
9697
9697
  }
9698
9698
  }
9699
- `, Hs = E`
9699
+ `, Hs = v`
9700
9700
  ${re}
9701
9701
  query GetGlobalPropertyState($bundleId: String!) {
9702
9702
  globalPropertyState(bundleId: $bundleId) {
@@ -9713,7 +9713,7 @@ const re = E`
9713
9713
  variables: {
9714
9714
  bundleId: r
9715
9715
  }
9716
- })).data.globalPropertyState, js = E`
9716
+ })).data.globalPropertyState, js = v`
9717
9717
  ${Ne}
9718
9718
  fragment ProductFields on Product {
9719
9719
  id
@@ -9758,7 +9758,7 @@ const re = E`
9758
9758
  name
9759
9759
  }
9760
9760
  }
9761
- `, Ia = E`
9761
+ `, Ia = v`
9762
9762
  ${js}
9763
9763
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9764
9764
  id
@@ -9768,7 +9768,7 @@ const re = E`
9768
9768
  ...ProductFields
9769
9769
  }
9770
9770
  }
9771
- `, ie = (r) => E`
9771
+ `, ie = (r) => v`
9772
9772
  ${r ? Ia : ""}
9773
9773
  fragment ProductCollectionFields on ProductCollection {
9774
9774
  id
@@ -9832,7 +9832,7 @@ const re = E`
9832
9832
  }
9833
9833
  }
9834
9834
  }
9835
- `, Ys = (r) => E`
9835
+ `, Ys = (r) => v`
9836
9836
  ${re}
9837
9837
  ${ie(r)}
9838
9838
  query GetBundle($id: String!) {
@@ -9876,7 +9876,7 @@ const re = E`
9876
9876
  quoteId
9877
9877
  }
9878
9878
  }
9879
- `, Ja = E`
9879
+ `, Ja = v`
9880
9880
  query GetBundleStakeholders($id: String!) {
9881
9881
  bundles(ids: [$id]) {
9882
9882
  id
@@ -9921,7 +9921,7 @@ const re = E`
9921
9921
  }
9922
9922
  }
9923
9923
  }
9924
- `, Js = E`
9924
+ `, Js = v`
9925
9925
  query GetBundlesForCustomer($id: String!) {
9926
9926
  customers(ids: [$id]) {
9927
9927
  bundleStakeholders {
@@ -9950,7 +9950,7 @@ const re = E`
9950
9950
  }
9951
9951
  }
9952
9952
  }
9953
- `, Ks = E`
9953
+ `, Ks = v`
9954
9954
  ${Ia}
9955
9955
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
9956
9956
  productCollections(ids: [$id], productIds: $productIds) {
@@ -9960,7 +9960,7 @@ const re = E`
9960
9960
  }
9961
9961
  }
9962
9962
  }
9963
- `, _s = E`
9963
+ `, _s = v`
9964
9964
  query GetProductCollectionForFilteredProducts(
9965
9965
  $id: String!
9966
9966
  $filters: ProductCollectionProductFilterInput
@@ -9983,7 +9983,7 @@ const re = E`
9983
9983
  }
9984
9984
  }
9985
9985
  }
9986
- `, Xs = E`
9986
+ `, Xs = v`
9987
9987
  ${Ia}
9988
9988
  query GetProductCollectionForProductsFeed(
9989
9989
  $id: String!
@@ -9993,7 +9993,6 @@ const re = E`
9993
9993
  $tags: ProductCollectionProductTagFilterInput
9994
9994
  $sortKey: ProductCollectionProductSortKey
9995
9995
  $sortDescending: Boolean
9996
- $quickSearch: String
9997
9996
  ) {
9998
9997
  productCollections(ids: [$id]) {
9999
9998
  id
@@ -10004,7 +10003,6 @@ const re = E`
10004
10003
  offset: $offset
10005
10004
  sortKey: $sortKey
10006
10005
  sortDescending: $sortDescending
10007
- quickSearch: $quickSearch
10008
10006
  ) {
10009
10007
  items {
10010
10008
  ...ProductCollectionProductFields
@@ -10013,7 +10011,7 @@ const re = E`
10013
10011
  }
10014
10012
  }
10015
10013
  }
10016
- `, Zs = (r) => E`
10014
+ `, Zs = (r) => v`
10017
10015
  ${ie(r)}
10018
10016
  mutation CreateBundle(
10019
10017
  $collectionId: String
@@ -10042,7 +10040,7 @@ const re = E`
10042
10040
  }
10043
10041
  }
10044
10042
  }
10045
- `, to = (r) => E`
10043
+ `, to = (r) => v`
10046
10044
  ${re}
10047
10045
  ${ie(r)}
10048
10046
  mutation DuplicateBundle(
@@ -10084,7 +10082,7 @@ const re = E`
10084
10082
  }
10085
10083
  }
10086
10084
  }
10087
- `, eo = E`
10085
+ `, eo = v`
10088
10086
  mutation UpdateBundle(
10089
10087
  $id: String!
10090
10088
  $name: String
@@ -10104,19 +10102,19 @@ const re = E`
10104
10102
  id
10105
10103
  }
10106
10104
  }
10107
- `, ao = E`
10105
+ `, ao = v`
10108
10106
  mutation BundleAddTransaction($id: String!, $transactionId: String!) {
10109
10107
  bundleAddTransaction(id: $id, transactionId: $transactionId) {
10110
10108
  id
10111
10109
  }
10112
10110
  }
10113
- `, no = E`
10111
+ `, no = v`
10114
10112
  mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
10115
10113
  bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
10116
10114
  id
10117
10115
  }
10118
10116
  }
10119
- `, ro = E`
10117
+ `, ro = v`
10120
10118
  mutation BundleRemoveTransaction(
10121
10119
  $id: String!
10122
10120
  $transactionId: String!
@@ -10131,7 +10129,7 @@ const re = E`
10131
10129
  id
10132
10130
  }
10133
10131
  }
10134
- `, io = E`
10132
+ `, io = v`
10135
10133
  mutation BundleRemoveTransactions(
10136
10134
  $id: String!
10137
10135
  $transactionIds: [String!]!
@@ -10146,7 +10144,7 @@ const re = E`
10146
10144
  id
10147
10145
  }
10148
10146
  }
10149
- `, so = E`
10147
+ `, so = v`
10150
10148
  mutation BundleAddStakeholder($id: String!, $details: CustomerDetailsInput!, $type: String!) {
10151
10149
  bundleAddStakeholder(id: $id, details: $details, type: $type) {
10152
10150
  id
@@ -10166,13 +10164,13 @@ const re = E`
10166
10164
  }
10167
10165
  }
10168
10166
  }
10169
- `, oo = E`
10167
+ `, oo = v`
10170
10168
  mutation BundleAddStakeholder($id: String!, $emailAddress: String!) {
10171
10169
  bundleRemoveStakeholder(id: $id, emailAddress: $emailAddress) {
10172
10170
  id
10173
10171
  }
10174
10172
  }
10175
- `, lo = E`
10173
+ `, lo = v`
10176
10174
  mutation BundleUpdateStakeholders($id: String!, $input: [BundleStakeholderInput!]!) {
10177
10175
  bundleUpdateStakeholders(id: $id, input: $input) {
10178
10176
  id
@@ -10192,13 +10190,13 @@ const re = E`
10192
10190
  }
10193
10191
  }
10194
10192
  }
10195
- `, co = E`
10193
+ `, co = v`
10196
10194
  mutation BundleUpdateTransactionOrder($id: String!, $transactionIds: [String!]!) {
10197
10195
  bundleUpdateTransactionOrder(id: $id, transactionIds: $transactionIds) {
10198
10196
  id
10199
10197
  }
10200
10198
  }
10201
- `, Ao = (r) => E`
10199
+ `, Ao = (r) => v`
10202
10200
  ${ie(r)}
10203
10201
  mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
10204
10202
  bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
@@ -10208,13 +10206,13 @@ const re = E`
10208
10206
  }
10209
10207
  }
10210
10208
  }
10211
- `, uo = E`
10209
+ `, uo = v`
10212
10210
  mutation AssignGlobalPropertyConfiguration($bundleId: String!, $globalPropertyConfigurationId: String!) {
10213
10211
  bundleUpdate(id: $bundleId, globalPropertyConfigurationId: $globalPropertyConfigurationId) {
10214
10212
  id
10215
10213
  }
10216
10214
  }
10217
- `, ho = (r) => E`
10215
+ `, ho = (r) => v`
10218
10216
  query CustomerBundlesFeed($id: String!, $limit: Int!, $offset: Int!, $template: Boolean, $templateStatus: BundleTemplateStatus, $ordered: Boolean) {
10219
10217
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: $template, templateStatus: $templateStatus, ordered: $ordered) {
10220
10218
  items {
@@ -10250,27 +10248,27 @@ const re = E`
10250
10248
  total
10251
10249
  }
10252
10250
  }
10253
- `, mo = E`
10251
+ `, mo = v`
10254
10252
  mutation FinalizeUpdateBundle($bundleId: String!) {
10255
10253
  bundleFinalizeUpdate(bundleId: $bundleId)
10256
10254
  }
10257
- `, go = E`
10255
+ `, go = v`
10258
10256
  mutation ApproveBundle($id: String!, $note: String, $stakeholderId: String) {
10259
10257
  bundleApprove(id: $id, note: $note, stakeholderId: $stakeholderId)
10260
10258
  }
10261
- `, po = E`
10259
+ `, po = v`
10262
10260
  mutation RejectBundle($id: String!, $note: String, $stakeholderId: String) {
10263
10261
  bundleReject(id: $id, note: $note, stakeholderId: $stakeholderId)
10264
10262
  }
10265
- `, fo = E`
10263
+ `, fo = v`
10266
10264
  mutation ApproveTransaction($id: String!, $note: String) {
10267
10265
  transactionApprove(id: $id, note: $note)
10268
10266
  }
10269
- `, Co = E`
10267
+ `, Co = v`
10270
10268
  mutation RejectTransaction($id: String!, $note: String) {
10271
10269
  transactionReject(id: $id, note: $note)
10272
10270
  }
10273
- `, wo = E`
10271
+ `, wo = v`
10274
10272
  mutation CreateRecipient(
10275
10273
  $firstName: String
10276
10274
  $lastName: String
@@ -10312,7 +10310,7 @@ const re = E`
10312
10310
  id
10313
10311
  }
10314
10312
  }
10315
- `, yo = E`
10313
+ `, yo = v`
10316
10314
  mutation UpdateRecipient(
10317
10315
  $id: String!
10318
10316
  $firstName: String
@@ -10356,7 +10354,7 @@ const re = E`
10356
10354
  id
10357
10355
  }
10358
10356
  }
10359
- `, So = E`
10357
+ `, So = v`
10360
10358
  mutation AtttachRecipient($id: String!, $recipientId: String!) {
10361
10359
  transactionAttachRecipient(id: $id, recipientId: $recipientId) {
10362
10360
  id
@@ -10381,10 +10379,10 @@ class Eo {
10381
10379
  constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, C = !1) {
10382
10380
  var w;
10383
10381
  this.workflowStatePromiseQueue = new Mn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10384
- var v;
10382
+ var E;
10385
10383
  if (!this.previewService)
10386
10384
  return;
10387
- const S = this.getCommandContext().getAllLayouts(), y = (v = this.getLayoutPreviewService()) == null ? void 0 : v.getAll();
10385
+ const S = this.getCommandContext().getAllLayouts(), y = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
10388
10386
  if (y)
10389
10387
  for (const [, b] of y)
10390
10388
  b.render(S);
@@ -10423,7 +10421,7 @@ class Eo {
10423
10421
  }), e;
10424
10422
  }
10425
10423
  async updateRecipient(t, e, a, n, i, s, o, l, c, d, A, u, h, m, g, p, f) {
10426
- var C, w, S, y, v;
10424
+ var C, w, S, y, E;
10427
10425
  if ((C = this.transaction.recipient) != null && C.id)
10428
10426
  this.transaction.recipient = {
10429
10427
  id: this.transaction.recipient.id,
@@ -10519,7 +10517,7 @@ class Eo {
10519
10517
  fetchPolicy: "no-cache",
10520
10518
  variables: {
10521
10519
  id: this.transaction.id,
10522
- recipientId: (v = (y = b.data) == null ? void 0 : y.recipientCreate) == null ? void 0 : v.id
10520
+ recipientId: (E = (y = b.data) == null ? void 0 : y.recipientCreate) == null ? void 0 : E.id
10523
10521
  },
10524
10522
  context: {
10525
10523
  transactionOwnerId: this.transaction.transactionOwnerId
@@ -11001,14 +10999,14 @@ class Eo {
11001
10999
  this.stepSelections = {
11002
11000
  ...this.stepSelections,
11003
11001
  [t]: { selectedVariants: e }
11004
- }, this.selectionCost = Object.values(this.stepSelections).reduce((v, b) => v + b.selectedVariants.map((P) => P.priceModifier || 0).reduce((P, D) => P + D, 0), 0), this.workflow.steps.forEach((v) => {
11005
- yt(v, this.stepSelections) || (this.stepInitialised[v.stepName] = !1, delete this.stepMetadata[v.stepName], delete this.stepSelections[v.stepName], delete this.storage[v.stepName]);
11002
+ }, this.selectionCost = Object.values(this.stepSelections).reduce((E, b) => E + b.selectedVariants.map((P) => P.priceModifier || 0).reduce((P, D) => P + D, 0), 0), this.workflow.steps.forEach((E) => {
11003
+ yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
11006
11004
  });
11007
- const s = this.allScenes, o = Dt(s, i), l = Dt(s, this.stepSelections), c = o.map((v) => v.silentSteps).flat(), A = l.map((v) => v.silentSteps).flat().filter(
11008
- (v) => !c.some((b) => b.stepName === v.stepName)
11005
+ const s = this.allScenes, o = Dt(s, i), l = Dt(s, this.stepSelections), c = o.map((E) => E.silentSteps).flat(), A = l.map((E) => E.silentSteps).flat().filter(
11006
+ (E) => !c.some((b) => b.stepName === E.stepName)
11009
11007
  );
11010
- c.forEach((v) => {
11011
- yt(v, this.stepSelections) || (this.stepInitialised[v.stepName] = !1);
11008
+ c.forEach((E) => {
11009
+ yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1);
11012
11010
  });
11013
11011
  const u = this.getInvalidCanvasRegions(), { stepElements: h, commands: m } = await this.stepElementsForIntroducedSilentSteps(A, !1);
11014
11012
  this.stepElements = {
@@ -11016,16 +11014,16 @@ class Eo {
11016
11014
  ...h,
11017
11015
  [t]: a
11018
11016
  }, this.removeElements(u);
11019
- const g = this.workflow.steps.find((v) => v.stepName === t);
11017
+ const g = this.workflow.steps.find((E) => E.stepName === t);
11020
11018
  if ((g == null ? void 0 : g.type) === I.Frame) {
11021
- const v = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
11022
- v == null || v.setTargetElements(a.map((b) => b.id));
11019
+ const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
11020
+ E == null || E.setTargetElements(a.map((b) => b.id));
11023
11021
  }
11024
- const p = u.map((v) => new bt(v.id)), f = new qa(this.constructSerializableWorkflow()), C = [...m, ...p, f];
11022
+ const p = u.map((E) => new bt(E.id)), f = new qa(this.constructSerializableWorkflow()), C = [...m, ...p, f];
11025
11023
  C.length > 0 && this.commandContext.apply(new O(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
11026
11024
  const w = this.getInvalidModelVariants(), S = this.modelContainer;
11027
11025
  if (S) {
11028
- const v = w.map(
11026
+ const E = w.map(
11029
11027
  (b) => S.applyModelVariant(
11030
11028
  b,
11031
11029
  {
@@ -11034,7 +11032,7 @@ class Eo {
11034
11032
  !1
11035
11033
  )
11036
11034
  );
11037
- await Promise.all(v);
11035
+ await Promise.all(E);
11038
11036
  }
11039
11037
  await this.onSelectionChange(), n && await n();
11040
11038
  }
@@ -11881,7 +11879,7 @@ class de {
11881
11879
  }
11882
11880
  }
11883
11881
  }
11884
- const Zn = E`
11882
+ const Zn = v`
11885
11883
  fragment CreateDesignTransaction on Transaction {
11886
11884
  id
11887
11885
  designName
@@ -11906,7 +11904,7 @@ const Zn = E`
11906
11904
  externalProductVariantId
11907
11905
  }
11908
11906
  }
11909
- `, No = E`
11907
+ `, No = v`
11910
11908
  ${Zn}
11911
11909
  mutation CreateDesign(
11912
11910
  $name: String!
@@ -11938,7 +11936,7 @@ const Zn = E`
11938
11936
  }
11939
11937
  }
11940
11938
  }
11941
- `, Qo = E`
11939
+ `, Qo = v`
11942
11940
  ${Zn}
11943
11941
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11944
11942
  designCreateMany(inputs: $inputs) {
@@ -12155,10 +12153,10 @@ const Ro = async (r, t) => {
12155
12153
  S[D].map((F) => F.id)
12156
12154
  ])
12157
12155
  );
12158
- let v = await o(m, n.id);
12159
- if (v) {
12160
- const D = await (await rt(v)).blob();
12161
- v = (await U.uploadAsset(
12156
+ let E = await o(m, n.id);
12157
+ if (E) {
12158
+ const D = await (await rt(E)).blob();
12159
+ E = (await U.uploadAsset(
12162
12160
  { name: `${n.id}-preview-image.png`, blob: D },
12163
12161
  we.Image,
12164
12162
  !0,
@@ -12176,7 +12174,7 @@ const Ro = async (r, t) => {
12176
12174
  workflowId: t.id,
12177
12175
  transactionId: n.id,
12178
12176
  useThreeDimPreview: !!m,
12179
- previewImage: v
12177
+ previewImage: E
12180
12178
  };
12181
12179
  if (p) {
12182
12180
  const F = [];
@@ -12342,7 +12340,7 @@ class Vo {
12342
12340
  throw new G("Unexpected storage method requested");
12343
12341
  }
12344
12342
  }
12345
- const Je = new Vo(), zo = E`
12343
+ const Je = new Vo(), zo = v`
12346
12344
  mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
12347
12345
  transactionAddStakeholder(id: $id, details: $details, type: $type) {
12348
12346
  id
@@ -12356,7 +12354,7 @@ const Je = new Vo(), zo = E`
12356
12354
  }
12357
12355
  }
12358
12356
  }
12359
- `, Go = E`
12357
+ `, Go = v`
12360
12358
  mutation AddAddressToTransaction(
12361
12359
  $transactionId: String!
12362
12360
  $streetAddress: String
@@ -12378,7 +12376,7 @@ const Je = new Vo(), zo = E`
12378
12376
  id
12379
12377
  }
12380
12378
  }
12381
- `, Wo = E`
12379
+ `, Wo = v`
12382
12380
  mutation AddOrganizationToTransaction($transactionId: String!, $organizationName: String!) {
12383
12381
  organizationAttachToTransaction(transactionId: $transactionId, organizationName: $organizationName) {
12384
12382
  id
@@ -12499,8 +12497,8 @@ class Ho {
12499
12497
  let i = 2048;
12500
12498
  e && e <= 2048 && (i = e);
12501
12499
  const s = gt(i, i), o = this.commandContext.getAllLayouts(), l = a.defaultPreviewPanelIndex || 0, c = a.panels[l], d = o.find((y) => {
12502
- var v;
12503
- return ((v = y.layoutState) == null ? void 0 : v.layout.panelId) === (c == null ? void 0 : c.name);
12500
+ var E;
12501
+ return ((E = y.layoutState) == null ? void 0 : E.layout.panelId) === (c == null ? void 0 : c.name);
12504
12502
  }) || o[0], A = d.layoutState.layout.previewRegion ? {
12505
12503
  x: d.layoutState.layout.previewRegion.left,
12506
12504
  y: d.layoutState.layout.previewRegion.top,
@@ -12985,7 +12983,7 @@ const jo = (r) => {
12985
12983
  return console.error(o), [];
12986
12984
  }
12987
12985
  }, Xo = async (r, t, e, a) => {
12988
- var y, v;
12986
+ var y, E;
12989
12987
  const n = e.data, i = a.option;
12990
12988
  if (!i)
12991
12989
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -12995,7 +12993,7 @@ const jo = (r) => {
12995
12993
  if (!s.asset)
12996
12994
  return console.error(`No asset for variant with ID: ${n.illustrationVariantId}`), [];
12997
12995
  t[a.stepName] = { selectedVariants: [s] };
12998
- const o = (v = s.asset) == null ? void 0 : v.fileLink;
12996
+ const o = (E = s.asset) == null ? void 0 : E.fileLink;
12999
12997
  if (!o)
13000
12998
  return console.error(`No asset link for variant with ID: ${n.illustrationVariantId}`), [];
13001
12999
  const l = await at(o, !0), c = /<svg.*?<\/svg>/s, d = l.match(c) || [], A = (d == null ? void 0 : d.length) > 0 ? d[0] : "", m = dt().parseFromString(A, "image/svg+xml").firstElementChild;
@@ -14439,7 +14437,7 @@ class fl {
14439
14437
  };
14440
14438
  }
14441
14439
  }
14442
- const Cl = E`
14440
+ const Cl = v`
14443
14441
  query GetManyMetafields($entityIds: [String!]!) {
14444
14442
  metafieldsMany(entityIds: $entityIds) {
14445
14443
  id
@@ -14623,20 +14621,17 @@ class rr {
14623
14621
  * @param limit The maximum number of products to return.
14624
14622
  * @param filters Optional metafield filters to apply to the query.
14625
14623
  * @param tags Optional object of tag filters to apply.
14626
- * @param sortKey Optional field of the products to sort by.
14627
- * @param sortDescending Optional boolean to indicate if the sort should be in descending order.
14628
- * @param quickSearch Optional string to filter products by name.
14629
14624
  * @returns
14630
14625
  */
14631
- async fetchProductsFeed(t, e, a, n, i, s, o) {
14626
+ async fetchProductsFeed(t, e, a, n, i, s) {
14632
14627
  if (this.fullFetched) {
14633
- const A = await (a ? this.filterProducts(a) : this.fetchProducts());
14628
+ const d = await (a ? this.filterProducts(a) : this.fetchProducts());
14634
14629
  return {
14635
- total: A.length,
14636
- items: A.slice(t, t + e)
14630
+ total: d.length,
14631
+ items: d.slice(t, t + e)
14637
14632
  };
14638
14633
  }
14639
- const l = new AbortController(), { signal: c } = l, d = B.getShadowGraphqlClient().watchQuery({
14634
+ const o = new AbortController(), { signal: l } = o, c = B.getShadowGraphqlClient().watchQuery({
14640
14635
  query: Xs,
14641
14636
  variables: {
14642
14637
  id: this.getId(),
@@ -14651,35 +14646,34 @@ class rr {
14651
14646
  exclude: n.exclude ?? []
14652
14647
  } : void 0,
14653
14648
  sortKey: i,
14654
- sortDescending: s,
14655
- quickSearch: o
14649
+ sortDescending: s
14656
14650
  },
14657
14651
  errorPolicy: "all",
14658
14652
  fetchPolicy: "cache-first",
14659
14653
  returnPartialData: !0,
14660
14654
  context: {
14661
14655
  fetchOptions: {
14662
- signal: c
14656
+ signal: l
14663
14657
  }
14664
14658
  }
14665
14659
  });
14666
- return new Promise((A) => {
14667
- let u = !1;
14668
- const h = d.subscribe({
14669
- next(m) {
14670
- var p, f, C, w, S, y;
14671
- if (u || m.partial && (!m.data.productCollections || m.data.productCollections.length === 0 || !((p = m.data.productCollections[0].productCollectionProductsFeed) != null && p.items) || ((f = m.data.productCollections[0].productCollectionProductsFeed) == null ? void 0 : f.items.length) === 0))
14660
+ return new Promise((d) => {
14661
+ let A = !1;
14662
+ const u = c.subscribe({
14663
+ next(h) {
14664
+ var g, p, f, C, w, S;
14665
+ if (A || h.partial && (!h.data.productCollections || h.data.productCollections.length === 0 || !((g = h.data.productCollections[0].productCollectionProductsFeed) != null && g.items) || ((p = h.data.productCollections[0].productCollectionProductsFeed) == null ? void 0 : p.items.length) === 0))
14672
14666
  return;
14673
- l.abort(), u = !0, h.unsubscribe();
14674
- const g = ((w = (C = m.data.productCollections) == null ? void 0 : C[0].productCollectionProductsFeed) == null ? void 0 : w.items.filter((v) => !!v.product).map((v) => new Ae(St(v)))) || [];
14675
- A({
14676
- items: g,
14667
+ o.abort(), A = !0, u.unsubscribe();
14668
+ const m = ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.items.filter((y) => !!y.product).map((y) => new Ae(St(y)))) || [];
14669
+ d({
14670
+ items: m,
14677
14671
  // Clone items because it could be cached data (immutable)
14678
- total: ((y = (S = m.data.productCollections) == null ? void 0 : S[0].productCollectionProductsFeed) == null ? void 0 : y.total) ?? 0
14672
+ total: ((S = (w = h.data.productCollections) == null ? void 0 : w[0].productCollectionProductsFeed) == null ? void 0 : S.total) ?? 0
14679
14673
  });
14680
14674
  },
14681
14675
  error() {
14682
- u || (u = !0, h.unsubscribe(), A({ items: [], total: 0 }));
14676
+ A || (A = !0, u.unsubscribe(), d({ items: [], total: 0 }));
14683
14677
  }
14684
14678
  });
14685
14679
  });
@@ -14905,7 +14899,7 @@ class El {
14905
14899
  };
14906
14900
  }
14907
14901
  }
14908
- const bl = E`
14902
+ const bl = v`
14909
14903
  ${ie(!1)}
14910
14904
  query GetProductCollections($ids: [String!]!) {
14911
14905
  productCollections(ids: $ids) {
@@ -14949,7 +14943,7 @@ class Bl {
14949
14943
  delete this.listeners[e];
14950
14944
  }
14951
14945
  }
14952
- const Il = E`
14946
+ const Il = v`
14953
14947
  mutation AddAddressToBundle(
14954
14948
  $bundleId: String!
14955
14949
  $streetAddress: String
@@ -14971,13 +14965,13 @@ const Il = E`
14971
14965
  id
14972
14966
  }
14973
14967
  }
14974
- `, Pl = E`
14968
+ `, Pl = v`
14975
14969
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14976
14970
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14977
14971
  id
14978
14972
  }
14979
14973
  }
14980
- `, Dl = E`
14974
+ `, Dl = v`
14981
14975
  mutation GenerateQuoteId($id: String!) {
14982
14976
  bundleGenerateQuoteId(id: $id) {
14983
14977
  id
@@ -15732,7 +15726,7 @@ class Ke {
15732
15726
  };
15733
15727
  }
15734
15728
  }
15735
- const Fl = E`
15729
+ const Fl = v`
15736
15730
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15737
15731
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15738
15732
  id
@@ -15766,7 +15760,7 @@ class xl {
15766
15760
  let o = !1, l = 0, c, d;
15767
15761
  for (; !o; ) {
15768
15762
  c = await B.getShadowGraphqlClient().query({
15769
- query: E`
15763
+ query: v`
15770
15764
  query getProcessFlowExecution($ids: [String]!) {
15771
15765
  processExecutions(ids: $ids) {
15772
15766
  id
@@ -15954,7 +15948,7 @@ class Xa {
15954
15948
  return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new qt(e));
15955
15949
  }
15956
15950
  }
15957
- const he = E`
15951
+ const he = v`
15958
15952
  query GetCustomer($emailAddress: String!) {
15959
15953
  customer(emailAddress: $emailAddress) {
15960
15954
  id
@@ -15965,7 +15959,7 @@ const he = E`
15965
15959
  }
15966
15960
  }
15967
15961
  }
15968
- `, Tl = E`
15962
+ `, Tl = v`
15969
15963
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15970
15964
  customerCreate(details: $details) {
15971
15965
  id
@@ -15976,7 +15970,7 @@ const he = E`
15976
15970
  }
15977
15971
  }
15978
15972
  `;
15979
- E`
15973
+ v`
15980
15974
  mutation CustomerAuthenticate($loginToken: String!) {
15981
15975
  customerAuthenticate(loginToken: $loginToken) {
15982
15976
  id
@@ -16007,12 +16001,12 @@ E`
16007
16001
  }
16008
16002
  }
16009
16003
  `;
16010
- const Nl = E`
16004
+ const Nl = v`
16011
16005
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
16012
16006
  customerGenerateVerificationCode(emailAddress: $emailAddress)
16013
16007
  }
16014
16008
  `;
16015
- E`
16009
+ v`
16016
16010
  mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
16017
16011
  customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
16018
16012
  id
@@ -16044,7 +16038,7 @@ E`
16044
16038
  }
16045
16039
  }
16046
16040
  `;
16047
- const Ql = E`
16041
+ const Ql = v`
16048
16042
  query CustomerMetafields($id: String!) {
16049
16043
  metafields(entityId: $id) {
16050
16044
  id
@@ -16396,7 +16390,7 @@ class fd {
16396
16390
  const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
16397
16391
  (w) => {
16398
16392
  var S, y;
16399
- return (y = (S = w.bundle) == null ? void 0 : S.transactions) == null ? void 0 : y.some((v) => v.id === t);
16393
+ return (y = (S = w.bundle) == null ? void 0 : S.transactions) == null ? void 0 : y.some((E) => E.id === t);
16400
16394
  }
16401
16395
  )) || ((g = (m = this.customer) == null ? void 0 : m.stakeholders) == null ? void 0 : g.find(
16402
16396
  (w) => {
@@ -16623,7 +16617,7 @@ class fd {
16623
16617
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
16624
16618
  */
16625
16619
  async getExistingBundle(t, e, a, n) {
16626
- var h, m, g, p, f, C, w, S, y, v, b;
16620
+ var h, m, g, p, f, C, w, S, y, E, b;
16627
16621
  const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
16628
16622
  try {
16629
16623
  const P = await this.loggedInBearerToken();
@@ -16652,7 +16646,7 @@ class fd {
16652
16646
  A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
16653
16647
  const u = new Ke(this, d, e, a, s, {
16654
16648
  additionalHeaders: (y = n == null ? void 0 : n.graphql) == null ? void 0 : y.additionalHeaders,
16655
- eagerFetchProducts: (b = (v = n == null ? void 0 : n.graphql) == null ? void 0 : v.productCollection) == null ? void 0 : b.eagerFetchProducts,
16649
+ eagerFetchProducts: (b = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : b.eagerFetchProducts,
16656
16650
  existingGlobalPropertyState: c.data.globalPropertyState,
16657
16651
  readonly: n == null ? void 0 : n.readonly
16658
16652
  });
@@ -16671,7 +16665,7 @@ class fd {
16671
16665
  const C = await this.loggedInBearerToken();
16672
16666
  s.Authorization = `Bearer ${C}`;
16673
16667
  } catch {
16674
- const S = ((h = Object.entries(localStorage).find(([v, b]) => v.startsWith("CognitoIdentityServiceProvider") && v.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
16668
+ const S = ((h = Object.entries(localStorage).find(([E, b]) => E.startsWith("CognitoIdentityServiceProvider") && E.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
16675
16669
  y && !Wt(y) && (s.Authorization = `Bearer ${y}`);
16676
16670
  }
16677
16671
  const o = {
@@ -16778,10 +16772,10 @@ class fd {
16778
16772
  var D, F, k;
16779
16773
  if (y.length === 0)
16780
16774
  return [];
16781
- const v = y.map((T) => T.option.transactionId), b = await a.query({
16775
+ const E = y.map((T) => T.option.transactionId), b = await a.query({
16782
16776
  query: Bi,
16783
16777
  variables: {
16784
- ids: v
16778
+ ids: E
16785
16779
  },
16786
16780
  errorPolicy: "all",
16787
16781
  fetchPolicy: "no-cache"
@@ -16803,7 +16797,7 @@ class fd {
16803
16797
  var P, D, F;
16804
16798
  if (y.length === 0)
16805
16799
  return [];
16806
- const v = await a.mutate({
16800
+ const E = await a.mutate({
16807
16801
  mutation: bi,
16808
16802
  variables: {
16809
16803
  inputs: y.map((k) => ({
@@ -16819,9 +16813,9 @@ class fd {
16819
16813
  },
16820
16814
  errorPolicy: "all",
16821
16815
  fetchPolicy: "no-cache"
16822
- }), b = (P = v.data) == null ? void 0 : P.transactionCreateMany;
16816
+ }), b = (P = E.data) == null ? void 0 : P.transactionCreateMany;
16823
16817
  if (!b || b.length === 0) {
16824
- const k = ((F = (D = v.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16818
+ const k = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
16825
16819
  throw new ut(`Failed to create transactions: ${k}`);
16826
16820
  }
16827
16821
  return b.map((k, T) => ({
@@ -16830,21 +16824,21 @@ class fd {
16830
16824
  readOnly: !1,
16831
16825
  index: y[T].index
16832
16826
  }));
16833
- }, s = t.map((y, v) => ({ option: y, index: v })), o = s.filter((y) => y.option.type === "transaction"), l = s.filter(
16827
+ }, s = t.map((y, E) => ({ option: y, index: E })), o = s.filter((y) => y.option.type === "transaction"), l = s.filter(
16834
16828
  (y) => y.option.type === "integration" || y.option.type === "external"
16835
16829
  ), c = ka(o, 10), d = ka(l, 10), A = (await Promise.all([
16836
16830
  ...c.map(n),
16837
16831
  ...d.map(i)
16838
16832
  ])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await sr(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
16839
16833
  var tt;
16840
- const { transaction: v, workflowId: b, readOnly: P, index: D } = y, F = m.get(b), k = t[D];
16841
- !g.get(v.id) && v.transactionOwnerId && g.set(v.id, v.transactionOwnerId);
16842
- const T = g.get(v.id) || void 0, nt = new Rl({
16834
+ const { transaction: E, workflowId: b, readOnly: P, index: D } = y, F = m.get(b), k = t[D];
16835
+ !g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
16836
+ const T = g.get(E.id) || void 0, nt = new Rl({
16843
16837
  onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
16844
16838
  onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
16845
16839
  }), R = {
16846
- product: v.product,
16847
- transaction: v,
16840
+ product: E.product,
16841
+ transaction: E,
16848
16842
  layouts: [],
16849
16843
  singleVariantsRenderable: (tt = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : tt.singleVariantsRenderable,
16850
16844
  stateMutationFunc: P ? async () => {
@@ -16858,8 +16852,8 @@ class fd {
16858
16852
  workflow: F,
16859
16853
  isReloadedTransaction: k.type === "transaction"
16860
16854
  };
16861
- if (k.type === "transaction" && v.workflowState) {
16862
- const H = JSON.parse(v.workflowState);
16855
+ if (k.type === "transaction" && E.workflowState) {
16856
+ const H = JSON.parse(E.workflowState);
16863
16857
  R.layouts = Object.values(H.layouts || {}).map((ft) => ft.layout), await Wa(H), R.reloadedState = H;
16864
16858
  } else if (!P && k.workflowState) {
16865
16859
  const H = JSON.parse(k.workflowState);
@@ -16874,8 +16868,8 @@ class fd {
16874
16868
  ), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
16875
16869
  }), f = await Promise.all(p);
16876
16870
  N.setMap("transactionOwnerIds", g);
16877
- const w = f.sort((y, v) => y.index - v.index).map(async (y) => {
16878
- const { experienceOptions: v, options: b } = y, P = new Ho(this, v);
16871
+ const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
16872
+ const { experienceOptions: E, options: b } = y, P = new Ho(this, E);
16879
16873
  return await P.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await P.attachCustomerDetails({ email: this.customer.emailAddress }), P;
16880
16874
  }), S = await Promise.all(w);
16881
16875
  return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
@@ -17573,13 +17567,13 @@ class Yl extends it {
17573
17567
  return this.manager.getStepStorage(this.step.stepName);
17574
17568
  }
17575
17569
  }
17576
- const Jl = E`
17570
+ const Jl = v`
17577
17571
  query GetLoggedInCustomer($email: String!) {
17578
17572
  customer(emailAddress: $email) {
17579
17573
  id
17580
17574
  }
17581
17575
  }
17582
- `, Fa = E`
17576
+ `, Fa = v`
17583
17577
  query GetCustomerTransactions(
17584
17578
  $id: String!
17585
17579
  $limit: Int!
@@ -17616,21 +17610,21 @@ const Jl = E`
17616
17610
  total
17617
17611
  }
17618
17612
  }
17619
- `, Kl = E`
17613
+ `, Kl = v`
17620
17614
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17621
17615
  transactionUpdate(id: $id, designName: $name) {
17622
17616
  id
17623
17617
  designName
17624
17618
  }
17625
17619
  }
17626
- `, _l = E`
17620
+ `, _l = v`
17627
17621
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17628
17622
  transactionDuplicate(id: $id, template: $template) {
17629
17623
  id
17630
17624
  workflowViewerLink
17631
17625
  }
17632
17626
  }
17633
- `, Xl = E`
17627
+ `, Xl = v`
17634
17628
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17635
17629
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17636
17630
  items {
@@ -17645,7 +17639,7 @@ const Jl = E`
17645
17639
  total
17646
17640
  }
17647
17641
  }
17648
- `, Zl = E`
17642
+ `, Zl = v`
17649
17643
  query GetTransactionsForBundle($id: String!) {
17650
17644
  bundles(ids: [$id]) {
17651
17645
  id
@@ -17666,21 +17660,21 @@ const Jl = E`
17666
17660
  }
17667
17661
  }
17668
17662
  }
17669
- `, tc = E`
17663
+ `, tc = v`
17670
17664
  mutation SetBundleName($id: String!, $name: String!) {
17671
17665
  bundleUpdate(id: $id, name: $name) {
17672
17666
  id
17673
17667
  name
17674
17668
  }
17675
17669
  }
17676
- `, ec = E`
17670
+ `, ec = v`
17677
17671
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17678
17672
  bundleDuplicate(id: $id, template: $template) {
17679
17673
  id
17680
17674
  workflowViewerLink
17681
17675
  }
17682
17676
  }
17683
- `, ac = E`
17677
+ `, ac = v`
17684
17678
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17685
17679
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17686
17680
  items {
@@ -17911,7 +17905,7 @@ function Aa(r) {
17911
17905
  var t = ot;
17912
17906
  r.__c = r.__(), ot = t;
17913
17907
  }
17914
- const cr = E`
17908
+ const cr = v`
17915
17909
  fragment AddressValidationResultFields on AddressValidationResult {
17916
17910
  addressComplete
17917
17911
  address {
@@ -17933,7 +17927,7 @@ const cr = E`
17933
17927
  }
17934
17928
  missingComponentTypes
17935
17929
  }
17936
- `, xa = E`
17930
+ `, xa = v`
17937
17931
  ${cr}
17938
17932
  fragment AddressValidationJobFields on AddressValidationJob {
17939
17933
  id
@@ -17945,14 +17939,14 @@ const cr = E`
17945
17939
  ...AddressValidationResultFields
17946
17940
  }
17947
17941
  }
17948
- `, sc = E`
17942
+ `, sc = v`
17949
17943
  ${xa}
17950
17944
  query GetAddressValidationJobs($ids: [String!]!) {
17951
17945
  addressValidationJobs(ids: $ids) {
17952
17946
  ...AddressValidationJobFields
17953
17947
  }
17954
17948
  }
17955
- `, oc = E`
17949
+ `, oc = v`
17956
17950
  ${xa}
17957
17951
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17958
17952
  recipients(ids: $ids) {
@@ -17962,14 +17956,14 @@ const cr = E`
17962
17956
  }
17963
17957
  }
17964
17958
  }
17965
- `, lc = E`
17959
+ `, lc = v`
17966
17960
  ${cr}
17967
17961
  mutation ValidateRecipientAddress($id: String!) {
17968
17962
  recipientValidate(id: $id) {
17969
17963
  ...AddressValidationResultFields
17970
17964
  }
17971
17965
  }
17972
- `, cc = E`
17966
+ `, cc = v`
17973
17967
  ${xa}
17974
17968
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17975
17969
  recipientValidateBatch(ids: $ids) {