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