@spiffcommerce/core 16.6.0 → 16.7.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +85 -79
- package/dist/index.umd.cjs +11 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -190,7 +190,8 @@ class Kt {
|
|
|
190
190
|
uri: `${xA.getServerUrl()}/graphql`,
|
|
191
191
|
fetch: _A
|
|
192
192
|
}), e = vt(async (s, i) => {
|
|
193
|
-
|
|
193
|
+
var h, u, f, p, D, m, F;
|
|
194
|
+
const { headers: o } = i, r = o || {}, c = await zt(), B = ((h = s.context) == null ? void 0 : h.bearer) ?? c.bearer, l = ((u = s.context) == null ? void 0 : u.partnerId) ?? c.partnerId, d = ((f = s.context) == null ? void 0 : f.activeIntegration) ?? c.activeIntegration, E = ((p = s.context) == null ? void 0 : p.transactionOwnerId) ?? c.transactionOwnerId, C = ((D = s.context) == null ? void 0 : D.customerToken) ?? c.customerToken, w = ((m = s.context) == null ? void 0 : m.applicationKey) ?? c.applicationKey, Q = ((F = s.context) == null ? void 0 : F.bundleOwnerId) ?? c.bundleOwnerId;
|
|
194
195
|
return B && (r.Authorization = `Bearer ${B}`), l && (r.partnerId = l), d && (r.activeIntegration = d), E && (r.transactionOwnerId = E), C && (r.customerToken = C), w && (r["X-Application-Key"] = w), Q && (r.bundleOwnerId = Q), {
|
|
195
196
|
headers: r
|
|
196
197
|
};
|
|
@@ -3300,10 +3301,10 @@ class Ua {
|
|
|
3300
3301
|
curved: t.curved,
|
|
3301
3302
|
paths: t.paths,
|
|
3302
3303
|
fillSpotColorDefinition: h
|
|
3303
|
-
}, D = [], m = /* @__PURE__ */ new Map(),
|
|
3304
|
+
}, D = [], m = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
3304
3305
|
if (!p.fontData)
|
|
3305
3306
|
throw new v("Failed to resolve font data for text.");
|
|
3306
|
-
const [Y,
|
|
3307
|
+
const [Y, M] = IA(
|
|
3307
3308
|
p.fontSize,
|
|
3308
3309
|
p.fontData,
|
|
3309
3310
|
{
|
|
@@ -3317,8 +3318,8 @@ class Ua {
|
|
|
3317
3318
|
[r],
|
|
3318
3319
|
{ size: t.size, minSize: t.minSize, maxSize: t.maxSize }
|
|
3319
3320
|
);
|
|
3320
|
-
m.set(p.id, Y),
|
|
3321
|
-
const U = t.curved || t.vertical ? r : (
|
|
3321
|
+
m.set(p.id, Y), F.set(p.id, M);
|
|
3322
|
+
const U = t.curved || t.vertical ? r : (M || []).join(`
|
|
3322
3323
|
`);
|
|
3323
3324
|
D.push(
|
|
3324
3325
|
this.generateTextChangeCommandsForRegion(Y, t, p.id, U, i)
|
|
@@ -3379,13 +3380,13 @@ class Ua {
|
|
|
3379
3380
|
return c && c(!0), { info: "0" };
|
|
3380
3381
|
const p = s.getProfanities(), D = XA(l.toLowerCase());
|
|
3381
3382
|
for (const m of D)
|
|
3382
|
-
for (const
|
|
3383
|
-
const Y = p[
|
|
3383
|
+
for (const F in p) {
|
|
3384
|
+
const Y = p[F].toLowerCase().replace(/\s/g, "");
|
|
3384
3385
|
if (m === Y)
|
|
3385
3386
|
return o(!0), { error: "Blocked profanity." };
|
|
3386
3387
|
}
|
|
3387
3388
|
return !A.data.vertical && !A.data.allowNewlines && (l.includes(`
|
|
3388
|
-
`) || l.includes("\r")) ? (o(!0), { error: "Cannot span multiple lines." }) : !A.data.curved && !Array.from(C.values()).every((
|
|
3389
|
+
`) || l.includes("\r")) ? (o(!0), { error: "Cannot span multiple lines." }) : !A.data.curved && !Array.from(C.values()).every((F) => F) ? (o(!0), { error: "Does not fit." }) : (o(!1), { info: (A.data.maxLength - l.length).toString() });
|
|
3389
3390
|
})();
|
|
3390
3391
|
if (Q.error) {
|
|
3391
3392
|
r(Q.error);
|
|
@@ -4861,12 +4862,12 @@ class La extends ie {
|
|
|
4861
4862
|
p.appendChild(D), D.appendChild(nt(3, 7, 4, "shadow"));
|
|
4862
4863
|
const m = R("g");
|
|
4863
4864
|
p.appendChild(m), m.setAttribute("filter", "url(#shadow)"), m.innerHTML = t;
|
|
4864
|
-
const
|
|
4865
|
-
p.appendChild(
|
|
4865
|
+
const F = R("g");
|
|
4866
|
+
p.appendChild(F), F.setAttribute("fill", "red"), F.setAttribute("stroke", "red"), F.setAttribute("stroke-width", "9"), F.innerHTML = t;
|
|
4866
4867
|
const Y = R("g");
|
|
4867
4868
|
p.appendChild(Y), Y.setAttribute("fill", "#9d2621"), Y.setAttribute("transform", "translate(1,1)"), Y.innerHTML = t;
|
|
4868
|
-
const
|
|
4869
|
-
return p.appendChild(
|
|
4869
|
+
const M = R("g");
|
|
4870
|
+
return p.appendChild(M), M.setAttribute("fill", "yellow"), M.innerHTML = t, new ce(p).transform(([S, b]) => [S, b + (n / 2 - S) ** 2 / (n * 2.9)]), p;
|
|
4870
4871
|
}, [o, r, c] = tt(e);
|
|
4871
4872
|
if (!o)
|
|
4872
4873
|
return "";
|
|
@@ -4901,12 +4902,12 @@ class za extends ie {
|
|
|
4901
4902
|
}
|
|
4902
4903
|
brandSvg(A, e, t) {
|
|
4903
4904
|
const a = A.toSVG(2), n = A.getBoundingBox(), s = n.y2 - n.y1, i = n.x2 - n.x1, o = A.toPathData(3), r = () => {
|
|
4904
|
-
const m = R("g"),
|
|
4905
|
-
m.appendChild(
|
|
4905
|
+
const m = R("g"), F = R("g");
|
|
4906
|
+
m.appendChild(F), F.setAttribute("stroke", "#5C1A0D"), F.setAttribute("stroke-width", "4"), F.setAttribute("transform", "translate(1,1)"), F.innerHTML = a;
|
|
4906
4907
|
const Y = R("g");
|
|
4907
4908
|
m.appendChild(Y), Y.setAttribute("fill", "#FFE386"), Y.setAttribute("transform", "translate(1,1)"), Y.innerHTML = a;
|
|
4908
|
-
const
|
|
4909
|
-
m.appendChild(
|
|
4909
|
+
const M = R("g");
|
|
4910
|
+
m.appendChild(M), M.setAttribute("fill", "white"), M.innerHTML = a;
|
|
4910
4911
|
const U = new ce(m);
|
|
4911
4912
|
return U.transform(([S, b]) => [S, b + ((i - S) * b) ** 2 / (i * 5e4)]), U.transform(([S, b]) => [
|
|
4912
4913
|
S,
|
|
@@ -4955,8 +4956,8 @@ class ja extends ie {
|
|
|
4955
4956
|
D.classList.add("module-layer0"), u.appendChild(D), D.setAttribute("filter", "url(#shadow)"), D.innerHTML = p.outerHTML;
|
|
4956
4957
|
const m = R("g");
|
|
4957
4958
|
m.classList.add("module-layer1"), u.appendChild(m), m.setAttribute("stroke-width", "3"), m.setAttribute("stroke", "rgb(45,41,38)"), m.setAttribute("fill", "rgb(45,41,38)"), m.setAttribute("transform", "translate(0.5,0)"), m.innerHTML = i;
|
|
4958
|
-
const
|
|
4959
|
-
|
|
4959
|
+
const F = R("g");
|
|
4960
|
+
F.classList.add("module-layer2"), u.appendChild(F), F.setAttribute("fill", "rgb(255,209,0)"), F.setAttribute("transform", "translate(1,-0.1)"), F.innerHTML = i;
|
|
4960
4961
|
const Y = R("g");
|
|
4961
4962
|
return Y.classList.add("module-layer3"), u.appendChild(Y), Y.setAttribute("fill", "white"), Y.innerHTML = i, new ce(u).transform(([U, S]) => [U, S + (r / 2 - U) ** 2 / (r * 6)]), u;
|
|
4962
4963
|
}, l = R("g");
|
|
@@ -5453,7 +5454,7 @@ class Wa {
|
|
|
5453
5454
|
this.stepSelections = {
|
|
5454
5455
|
...this.stepSelections,
|
|
5455
5456
|
[A]: { selectedVariants: e }
|
|
5456
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((D, m) => D + m.selectedVariants.map((
|
|
5457
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((D, m) => D + m.selectedVariants.map((F) => F.priceModifier || 0).reduce((F, Y) => F + Y, 0), 0), this.workflow.steps.forEach((D) => {
|
|
5457
5458
|
nA(D, this.stepSelections) || (this.stepInitialised[D.stepName] = !1, delete this.stepMetadata[D.stepName], delete this.stepSelections[D.stepName], delete this.storage[D.stepName]);
|
|
5458
5459
|
});
|
|
5459
5460
|
const s = this.allScenes, i = aA(s, n), o = aA(s, this.stepSelections), r = i.map((D) => D.silentSteps).flat(), B = o.map((D) => D.silentSteps).flat().filter(
|
|
@@ -6500,24 +6501,24 @@ const ct = y`
|
|
|
6500
6501
|
i
|
|
6501
6502
|
);
|
|
6502
6503
|
}, Bt = async (g, A, e, t, a, n, s, i, o, r) => {
|
|
6503
|
-
var
|
|
6504
|
+
var F;
|
|
6504
6505
|
await (async () => {
|
|
6505
6506
|
var S;
|
|
6506
6507
|
if (r !== void 0)
|
|
6507
6508
|
return r;
|
|
6508
6509
|
await g.outstandingRequestsPromise();
|
|
6509
|
-
const
|
|
6510
|
+
const M = await N.getShadowGraphqlClient().query({
|
|
6510
6511
|
query: Ve,
|
|
6511
6512
|
variables: { ids: [a.id] },
|
|
6512
6513
|
fetchPolicy: "no-cache",
|
|
6513
6514
|
errorPolicy: "all"
|
|
6514
|
-
}), U = (S =
|
|
6515
|
-
return
|
|
6516
|
-
|
|
6515
|
+
}), U = (S = M.data) == null ? void 0 : S.transactions[0].workflowState;
|
|
6516
|
+
return M.errors ? (M.errors.forEach((b) => {
|
|
6517
|
+
M.errors && console.log("Server Error:", b.message);
|
|
6517
6518
|
}), null) : U ?? null;
|
|
6518
6519
|
})() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(t())), await g.updateStateWithServerImmediate(t), console.log("Server state is undefined @ Workflow completion"));
|
|
6519
|
-
const l = g.getPreviewService(), d = (
|
|
6520
|
-
const
|
|
6520
|
+
const l = g.getPreviewService(), d = (F = A == null ? void 0 : A.finalizeStepConfig) == null ? void 0 : F.lookAtAnimation, E = l && A.showModelOnFinishStep && !!d, C = o && $A(o, A, !0), w = o && $A(o, A, !1), Q = async (Y) => {
|
|
6521
|
+
const M = {};
|
|
6521
6522
|
let U = 0;
|
|
6522
6523
|
if (Object.keys(n).length > 0)
|
|
6523
6524
|
for (const S of Object.keys(n)) {
|
|
@@ -6526,11 +6527,11 @@ const ct = y`
|
|
|
6526
6527
|
const q = b.selections[W];
|
|
6527
6528
|
if (V && (!Y || V.option && (V.option.variants || []).length > 1 && !V.data.hideSelectionInCart && !V.data.hideSelectionsInCart)) {
|
|
6528
6529
|
const bA = V.stepTitle;
|
|
6529
|
-
|
|
6530
|
+
M[bA] ? M[bA].push({
|
|
6530
6531
|
id: q.id || "",
|
|
6531
6532
|
name: q.name,
|
|
6532
6533
|
priceModifier: q.priceModifier
|
|
6533
|
-
}) :
|
|
6534
|
+
}) : M[bA] = [
|
|
6534
6535
|
{
|
|
6535
6536
|
id: q.id || "",
|
|
6536
6537
|
name: q.name,
|
|
@@ -6541,22 +6542,22 @@ const ct = y`
|
|
|
6541
6542
|
U += q.priceModifier;
|
|
6542
6543
|
}
|
|
6543
6544
|
}
|
|
6544
|
-
return [
|
|
6545
|
+
return [M, U];
|
|
6545
6546
|
}, [h] = await Q(!0), u = Object.fromEntries(
|
|
6546
|
-
Object.keys(h).map((Y) => [Y, h[Y].map((
|
|
6547
|
+
Object.keys(h).map((Y) => [Y, h[Y].map((M) => M.id)])
|
|
6547
6548
|
), [f] = await Q(!1), p = Object.fromEntries(
|
|
6548
6549
|
Object.keys(f).map((Y) => [
|
|
6549
6550
|
Y,
|
|
6550
|
-
f[Y].map((
|
|
6551
|
+
f[Y].map((M) => M.id)
|
|
6551
6552
|
])
|
|
6552
6553
|
), D = await i(E);
|
|
6553
6554
|
return {
|
|
6554
6555
|
designDetails: (() => {
|
|
6555
6556
|
const Y = {
|
|
6556
6557
|
name: s,
|
|
6557
|
-
layouts: e.map((
|
|
6558
|
-
index:
|
|
6559
|
-
panelId:
|
|
6558
|
+
layouts: e.map((M) => ({
|
|
6559
|
+
index: M.index,
|
|
6560
|
+
panelId: M.panelId
|
|
6560
6561
|
})),
|
|
6561
6562
|
workflowId: A.id,
|
|
6562
6563
|
transactionId: a.id,
|
|
@@ -6564,16 +6565,16 @@ const ct = y`
|
|
|
6564
6565
|
previewImage: D
|
|
6565
6566
|
};
|
|
6566
6567
|
if (w) {
|
|
6567
|
-
const
|
|
6568
|
+
const M = [];
|
|
6568
6569
|
for (const [U, S] of Object.entries(w))
|
|
6569
|
-
|
|
6570
|
-
Y.metadata =
|
|
6570
|
+
M.push({ key: U, value: S });
|
|
6571
|
+
Y.metadata = M;
|
|
6571
6572
|
}
|
|
6572
6573
|
if (u) {
|
|
6573
|
-
const
|
|
6574
|
+
const M = [];
|
|
6574
6575
|
for (const [U, S] of Object.entries(p))
|
|
6575
|
-
|
|
6576
|
-
Y.selectedVariants =
|
|
6576
|
+
M.push({ key: U, ids: S });
|
|
6577
|
+
Y.selectedVariants = M;
|
|
6577
6578
|
}
|
|
6578
6579
|
return Y;
|
|
6579
6580
|
})(),
|
|
@@ -7142,29 +7143,29 @@ const En = [
|
|
|
7142
7143
|
const C = {};
|
|
7143
7144
|
Ht(E, (m) => {
|
|
7144
7145
|
En.includes(m.tagName) && !m.attributes.getNamedItem("fill") && m.setAttribute("fill", "#000000");
|
|
7145
|
-
const
|
|
7146
|
-
if (
|
|
7147
|
-
const
|
|
7148
|
-
m.classList.add(S), C[S] = { browserValue:
|
|
7146
|
+
const F = m.attributes.getNamedItem("fill");
|
|
7147
|
+
if (F && F.value !== "none") {
|
|
7148
|
+
const M = F.value, S = `spiff-fill-${M.replace(/\W/g, "")}`;
|
|
7149
|
+
m.classList.add(S), C[S] = { browserValue: M };
|
|
7149
7150
|
}
|
|
7150
7151
|
const Y = m.attributes.getNamedItem("stroke");
|
|
7151
7152
|
if (Y && Y.value !== "none") {
|
|
7152
|
-
const
|
|
7153
|
-
m.classList.add(S), C[S] = { browserValue:
|
|
7153
|
+
const M = Y.value, S = `spiff-stroke-${M.replace(/\W/g, "")}`;
|
|
7154
|
+
m.classList.add(S), C[S] = { browserValue: M };
|
|
7154
7155
|
}
|
|
7155
7156
|
});
|
|
7156
7157
|
const Q = Ue().serializeToString(E), h = a.colors;
|
|
7157
7158
|
if (h) {
|
|
7158
|
-
for (const [m,
|
|
7159
|
+
for (const [m, F] of Object.entries(C))
|
|
7159
7160
|
for (const Y of Object.keys(h))
|
|
7160
|
-
if (
|
|
7161
|
+
if (F.browserValue === Y) {
|
|
7161
7162
|
C[m] = { browserValue: h[Y] };
|
|
7162
7163
|
break;
|
|
7163
7164
|
}
|
|
7164
7165
|
}
|
|
7165
7166
|
const u = (m) => {
|
|
7166
|
-
const
|
|
7167
|
-
if (!
|
|
7167
|
+
const F = g.find((M) => M.panelId === m.panelId);
|
|
7168
|
+
if (!F)
|
|
7168
7169
|
throw new L(m);
|
|
7169
7170
|
const Y = k();
|
|
7170
7171
|
return new J(
|
|
@@ -7182,7 +7183,7 @@ const En = [
|
|
|
7182
7183
|
layerIndex: m.layerIndex,
|
|
7183
7184
|
immutable: m.immutable
|
|
7184
7185
|
},
|
|
7185
|
-
|
|
7186
|
+
F
|
|
7186
7187
|
);
|
|
7187
7188
|
}, f = t.data.regions;
|
|
7188
7189
|
try {
|
|
@@ -8811,19 +8812,22 @@ class fe {
|
|
|
8811
8812
|
return this.workflowExperiences.length;
|
|
8812
8813
|
}
|
|
8813
8814
|
async addStakeholder(A, e) {
|
|
8814
|
-
var
|
|
8815
|
-
const t = await N.getShadowGraphqlClient().mutate({
|
|
8815
|
+
var i;
|
|
8816
|
+
const t = x.getMap("bundleOwnerIds"), a = t == null ? void 0 : t.get(this.id), n = await N.getShadowGraphqlClient().mutate({
|
|
8816
8817
|
mutation: Ln,
|
|
8817
8818
|
variables: {
|
|
8818
8819
|
id: this.id,
|
|
8819
8820
|
details: A,
|
|
8820
8821
|
type: e || NA.Owner
|
|
8822
|
+
},
|
|
8823
|
+
context: {
|
|
8824
|
+
bundleOwnerId: a
|
|
8821
8825
|
}
|
|
8822
8826
|
});
|
|
8823
|
-
if (!((
|
|
8827
|
+
if (!((i = n.data) != null && i.bundleAddStakeholder))
|
|
8824
8828
|
throw new Error("Bundle not found!");
|
|
8825
|
-
const
|
|
8826
|
-
this.storeStakeholderCustomers(
|
|
8829
|
+
const s = n.data.bundleAddStakeholder.bundleStakeholders || [];
|
|
8830
|
+
this.storeStakeholderCustomers(s);
|
|
8827
8831
|
}
|
|
8828
8832
|
async updateStakeholders(A) {
|
|
8829
8833
|
var a;
|
|
@@ -9292,6 +9296,8 @@ const cs = y`
|
|
|
9292
9296
|
emissiveGlowIntensity
|
|
9293
9297
|
enableAR
|
|
9294
9298
|
environmentFile
|
|
9299
|
+
environmentIntensity
|
|
9300
|
+
environmentRotationY
|
|
9295
9301
|
idleTimeBeforeRotation
|
|
9296
9302
|
lowerAlphaLimitDeg
|
|
9297
9303
|
lowerBetaLimitDeg
|
|
@@ -10191,7 +10197,7 @@ class fs {
|
|
|
10191
10197
|
const m = a.type === "integration" ? { integrationProductId: a.integrationProductId } : {
|
|
10192
10198
|
externalIntegrationId: a.externalIntegrationId,
|
|
10193
10199
|
externalProductId: a.externalProductId
|
|
10194
|
-
},
|
|
10200
|
+
}, F = await w.mutate({
|
|
10195
10201
|
mutation: ue,
|
|
10196
10202
|
variables: {
|
|
10197
10203
|
...m,
|
|
@@ -10204,9 +10210,9 @@ class fs {
|
|
|
10204
10210
|
// TODO: this should be changed to required once the API is updated. Should this also be moved to server.ts?
|
|
10205
10211
|
context: this.options.applicationKey ? { headers: { "X-Application-Key": this.options.applicationKey } } : void 0
|
|
10206
10212
|
});
|
|
10207
|
-
if (!
|
|
10213
|
+
if (!F.data || !F.data.transactionCreate)
|
|
10208
10214
|
throw new P("Failed to create transaction!");
|
|
10209
|
-
const Y =
|
|
10215
|
+
const Y = F.data.transactionCreate;
|
|
10210
10216
|
if (!Y.product)
|
|
10211
10217
|
throw new P("Failed to create transaction, product not available.");
|
|
10212
10218
|
return Y;
|
|
@@ -10288,13 +10294,13 @@ class fs {
|
|
|
10288
10294
|
const m = ((D = (p = u.errors) == null ? void 0 : p[0]) == null ? void 0 : D.message) || "Unknown error";
|
|
10289
10295
|
throw new P(`Not all transactions were found: ${m}`);
|
|
10290
10296
|
}
|
|
10291
|
-
return f.map((m,
|
|
10297
|
+
return f.map((m, F) => {
|
|
10292
10298
|
var Y;
|
|
10293
10299
|
return {
|
|
10294
10300
|
transaction: m,
|
|
10295
10301
|
workflowId: m.workflowId,
|
|
10296
|
-
readOnly: ((Y = n.find((
|
|
10297
|
-
index: n[
|
|
10302
|
+
readOnly: ((Y = n.find((M) => M.option.transactionId === m.id)) == null ? void 0 : Y.option.readOnly) ?? !1,
|
|
10303
|
+
index: n[F].index
|
|
10298
10304
|
};
|
|
10299
10305
|
});
|
|
10300
10306
|
}, o = async () => {
|
|
@@ -10320,42 +10326,42 @@ class fs {
|
|
|
10320
10326
|
const m = ((D = (p = h.errors) == null ? void 0 : p[0]) == null ? void 0 : D.message) || "Unknown error";
|
|
10321
10327
|
throw new P(`Failed to create transactions: ${m}`);
|
|
10322
10328
|
}
|
|
10323
|
-
return u.map((m,
|
|
10329
|
+
return u.map((m, F) => ({
|
|
10324
10330
|
transaction: m,
|
|
10325
10331
|
workflowId: m.workflowId,
|
|
10326
10332
|
readOnly: !1,
|
|
10327
|
-
index: s[
|
|
10333
|
+
index: s[F].index
|
|
10328
10334
|
}));
|
|
10329
10335
|
}, r = (await Promise.all([i(), o()])).flat(), c = [...new Set(r.map((h) => h.workflowId))], B = await ht(c, e), l = new Map(B.map((h) => [h.id, h])), d = x.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), E = r.map(async (h) => {
|
|
10330
10336
|
var U;
|
|
10331
|
-
const { transaction: u, workflowId: f, readOnly: p, index: D } = h, m = l.get(f),
|
|
10337
|
+
const { transaction: u, workflowId: f, readOnly: p, index: D } = h, m = l.get(f), F = A[D];
|
|
10332
10338
|
!d.get(u.id) && u.transactionOwnerId && d.set(u.id, u.transactionOwnerId);
|
|
10333
|
-
const Y = d.get(u.id) || void 0,
|
|
10339
|
+
const Y = d.get(u.id) || void 0, M = {
|
|
10334
10340
|
product: u.product,
|
|
10335
10341
|
transaction: u,
|
|
10336
10342
|
layouts: [],
|
|
10337
|
-
singleVariantsRenderable: (U =
|
|
10343
|
+
singleVariantsRenderable: (U = F == null ? void 0 : F.workflowConfiguration) == null ? void 0 : U.singleVariantsRenderable,
|
|
10338
10344
|
stateMutationFunc: p ? async () => {
|
|
10339
10345
|
throw new v("State mutation is forbidden in read only mode!");
|
|
10340
10346
|
} : async (S) => this.updateTransactionState({ ...S, context: { transactionOwnerId: Y } }),
|
|
10341
10347
|
readOnly: p,
|
|
10342
10348
|
workflow: m,
|
|
10343
|
-
isReloadedTransaction:
|
|
10349
|
+
isReloadedTransaction: F.type === "transaction"
|
|
10344
10350
|
};
|
|
10345
|
-
if (
|
|
10351
|
+
if (F.type === "transaction" && u.workflowState) {
|
|
10346
10352
|
const S = JSON.parse(u.workflowState);
|
|
10347
|
-
|
|
10348
|
-
} else if (!p &&
|
|
10349
|
-
const S = JSON.parse(
|
|
10350
|
-
|
|
10353
|
+
M.layouts = Object.values(S.layouts).map((b) => b.layout), await AA(S), await tA(S), M.reloadedState = S;
|
|
10354
|
+
} else if (!p && F.workflowState) {
|
|
10355
|
+
const S = JSON.parse(F.workflowState);
|
|
10356
|
+
M.layouts = Object.values(S.layouts).map((b) => b.layout), await AA(S), await tA(S), M.reloadedState = S;
|
|
10351
10357
|
} else
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10358
|
+
M.layouts = KA(
|
|
10359
|
+
M.transaction,
|
|
10360
|
+
M.workflow
|
|
10355
10361
|
);
|
|
10356
|
-
return
|
|
10357
|
-
|
|
10358
|
-
), this.initialized = !0, this.experienceOptions =
|
|
10362
|
+
return M.renderableContextService = new QA(
|
|
10363
|
+
M.layouts
|
|
10364
|
+
), this.initialized = !0, this.experienceOptions = M, { experienceOptions: M, index: D, options: F };
|
|
10359
10365
|
});
|
|
10360
10366
|
x.setMap("transactionOwnerIds", d);
|
|
10361
10367
|
const Q = (await Promise.all(E)).sort((h, u) => h.index - u.index).map(async (h) => {
|