@spiffcommerce/core 21.23.2 → 21.24.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.d.ts +12 -2
- package/dist/index.js +364 -344
- package/dist/index.umd.cjs +83 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHttpLink as MA, InMemoryCache as SA, ApolloClient as YA, from as PA, gql as f } from "@apollo/client/core";
|
|
2
|
-
import { fetch as st, getAttributesFromArrayBuffer as bt, AssetType as $e, StepType as
|
|
3
|
-
import { AspectType as
|
|
2
|
+
import { fetch as st, getAttributesFromArrayBuffer as bt, AssetType as $e, StepType as F, getFrameData as ot, frameDataCache as xA, modifySVGColors as NA, svgToDataUrl as RA, GroupCommand as G, UpdateFramePattern as Jt, UpdateFrameThresholdSettingsCommand as HA, calculateOffsets as rt, LayoutElementType as k, generate as J, CreateElementCommand as T, generateSVGWithUnknownColors as Te, svgObjectURL as Ne, fetchAsString as Z, DeleteElementCommand as ee, generateDefaultRectangleFrameSvg as It, GetSVGDimensions as vA, patternImageDataCache as ft, fetchAsArrayBuffer as UA, findElement as Re, modifySVGWithElementProperties as GA, IllustrationColorCommand as _e, IllustrationCacheCommand as kA, getFontMetrics as bA, getPatternImageData as et, FontAlignmentCommand as JA, FontColorCommand as OA, FontImageFillCommand as Ve, applyTextTransformations as tt, determineCorrectFontSizeAndLines as Pe, FontSourceCommand as Ft, loadFont as ct, TextChangeCommand as TA, FontSizeCommand as LA, createElementNS as zA, createElement as De, _loadFontExternalDataURL as gt, UpdateWorkflowStateCommand as yt, CommandContext as KA, createCanvas as He, getSvgElement as Ot, LayoutRenderingPurpose as Tt, renderPapyrusComponentAsString as Lt, loadImage as zt, getDomParser as Kt, toBase64 as Mt, getVariant as jA, generateFrameSVG as VA, getDefaultVariant as Le, domParser as jt, sanitizeSvgTree as Vt, traverse as WA, xmlSerializer as Wt, CreateLayoutCommand as XA, AspectType as we, rehydrateSerializedLayout as Ae } from "@spiffcommerce/papyrus";
|
|
3
|
+
import { AspectType as hs, AssetType as us, BringForwardCommand as Qs, BringToBackCommand as ms, BringToFrontCommand as ps, CanvasCommand as Ds, CommandContext as Is, CreateElementCommand as fs, CreateLayoutCommand as Fs, DeleteElementCommand as ys, FontAlignmentCommand as Ms, FontColorCommand as Ss, FontSizeCommand as Ys, FontSourceCommand as Ps, GroupCommand as xs, LayoutElementFactory as Ns, LayoutElementType as Rs, MoveCommand as Hs, ResizeCommand as vs, RotateCommand as Us, SendBackwardsCommand as Gs, StepAspectType as ks, StepType as bs, TextChangeCommand as Js, UnitOfMeasurement as Os, UpdateImageSourceCommand as Ts, dataUrlFromExternalUrl as Ls, determineCorrectFontSizeAndLines as zs, findElement as Ks, frameDataCache as js, generate as Vs, generateSVGWithUnknownColors as Ws, getAttributesFromArrayBuffer as Xs, getAxisAlignedBoundingBox as qs, getFrameData as Zs, getSvgElement as $s, loadFont as _s, patternImageDataCache as eo, registerFetchImplementation as to, registerWindowImplementation as Ao, rehydrateSerializedLayout as ao, setCanvasModule as no, svgToDataUrl as io } from "@spiffcommerce/papyrus";
|
|
4
4
|
import { setContext as qA } from "@apollo/client/link/context";
|
|
5
5
|
import { onError as ZA } from "@apollo/client/link/error";
|
|
6
6
|
import { Pith as Xt } from "pith";
|
|
@@ -157,7 +157,7 @@ const ta = (c) => {
|
|
|
157
157
|
Bt = c;
|
|
158
158
|
}, Aa = () => Bt;
|
|
159
159
|
let tA;
|
|
160
|
-
const
|
|
160
|
+
const ss = (c) => {
|
|
161
161
|
tA = c;
|
|
162
162
|
}, aa = () => new Promise((c) => {
|
|
163
163
|
const e = _.getHubUrl(), t = (A) => {
|
|
@@ -1376,14 +1376,14 @@ const Pa = f`
|
|
|
1376
1376
|
...IntegrationProductFields
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
`, le = [
|
|
1379
|
+
`, le = [F.SilentIllustration, F.ProductOverlay], Ra = async (c) => {
|
|
1380
1380
|
const e = [];
|
|
1381
1381
|
c.introduction && e.push({
|
|
1382
1382
|
name: "Introduction",
|
|
1383
1383
|
title: c.name,
|
|
1384
1384
|
renderableSteps: [
|
|
1385
1385
|
{
|
|
1386
|
-
type:
|
|
1386
|
+
type: F.Introduction,
|
|
1387
1387
|
stepName: "Introduction",
|
|
1388
1388
|
stepTitle: c.name,
|
|
1389
1389
|
helpText: c.introduction,
|
|
@@ -1418,7 +1418,7 @@ const Pa = f`
|
|
|
1418
1418
|
title: t,
|
|
1419
1419
|
renderableSteps: [
|
|
1420
1420
|
{
|
|
1421
|
-
type:
|
|
1421
|
+
type: F.Finish,
|
|
1422
1422
|
stepName: "Finish",
|
|
1423
1423
|
stepTitle: t,
|
|
1424
1424
|
helpText: "",
|
|
@@ -1454,7 +1454,7 @@ const Pa = f`
|
|
|
1454
1454
|
for (const s of A)
|
|
1455
1455
|
for (const o of s.renderableSteps) {
|
|
1456
1456
|
const r = (((i = o.option) == null ? void 0 : i.variants) || []).length;
|
|
1457
|
-
o.silent || (o.type ===
|
|
1457
|
+
o.silent || (o.type === F.Model || o.type === F.Material || o.type === F.Picture || o.type === F.Shape ? (r > 1 || t) && a.push(o.stepName) : a.push(o.stepName));
|
|
1458
1458
|
}
|
|
1459
1459
|
const n = A.filter((s) => s.renderableSteps.filter(
|
|
1460
1460
|
(r) => a.includes(r.stepName)
|
|
@@ -1792,14 +1792,14 @@ class Rt {
|
|
|
1792
1792
|
if (!n)
|
|
1793
1793
|
throw new z(a);
|
|
1794
1794
|
let i = "";
|
|
1795
|
-
if (this.configuration.type ===
|
|
1795
|
+
if (this.configuration.type === F.ProductOverlay) {
|
|
1796
1796
|
let l = "";
|
|
1797
1797
|
if ((o = this.product) != null && o.overlayImageUrl && (l = this.product.overlayImageUrl), i = l, !l)
|
|
1798
1798
|
throw new Ue(this.configuration, "Couldn't find an asset for product overlay step");
|
|
1799
1799
|
}
|
|
1800
1800
|
const s = this.evaluateAssetType();
|
|
1801
1801
|
if (s === k.Image) {
|
|
1802
|
-
const l = this.configuration.type ===
|
|
1802
|
+
const l = this.configuration.type === F.SilentIllustration ? (r = this.configuration.data.asset) == null ? void 0 : r.fileLink : (g = this.product) == null ? void 0 : g.overlayImageUrl;
|
|
1803
1803
|
if (!l)
|
|
1804
1804
|
throw new Error("Undefined raster silent step source");
|
|
1805
1805
|
const C = {
|
|
@@ -1814,7 +1814,7 @@ class Rt {
|
|
|
1814
1814
|
layer: a.layer,
|
|
1815
1815
|
layerIndex: a.layerIndex,
|
|
1816
1816
|
immutable: a.immutable,
|
|
1817
|
-
productOverlay: this.configuration.type ===
|
|
1817
|
+
productOverlay: this.configuration.type === F.ProductOverlay ? !0 : void 0,
|
|
1818
1818
|
rotation: a.rotation,
|
|
1819
1819
|
excludeFromExport: this.configuration.data.excludeFromPrint,
|
|
1820
1820
|
preserveAspectRatio: "none"
|
|
@@ -1827,7 +1827,7 @@ class Rt {
|
|
|
1827
1827
|
command: new T(C, n)
|
|
1828
1828
|
};
|
|
1829
1829
|
} else {
|
|
1830
|
-
const l = this.configuration.type ===
|
|
1830
|
+
const l = this.configuration.type === F.SilentIllustration ? (B = this.configuration.data.asset) == null ? void 0 : B.fileLink : i, d = await Te(await (async () => new Promise((w, u) => {
|
|
1831
1831
|
if (!l) {
|
|
1832
1832
|
u("Undefined vector silent step source");
|
|
1833
1833
|
return;
|
|
@@ -1851,7 +1851,7 @@ class Rt {
|
|
|
1851
1851
|
layerIndex: a.layerIndex,
|
|
1852
1852
|
rotation: a.rotation,
|
|
1853
1853
|
immutable: a.immutable,
|
|
1854
|
-
productOverlay: this.configuration.type ===
|
|
1854
|
+
productOverlay: this.configuration.type === F.ProductOverlay ? !0 : void 0,
|
|
1855
1855
|
excludeFromExport: this.configuration.data.excludeFromPrint
|
|
1856
1856
|
};
|
|
1857
1857
|
return {
|
|
@@ -1867,11 +1867,11 @@ class Rt {
|
|
|
1867
1867
|
async trigger() {
|
|
1868
1868
|
if (!this.configuration.data.regions)
|
|
1869
1869
|
throw new Ue(this.configuration, "Missing regions.");
|
|
1870
|
-
if (this.configuration.type ===
|
|
1870
|
+
if (this.configuration.type === F.SilentIllustration) {
|
|
1871
1871
|
const e = this.configuration.data.regions.map(this.processRegion);
|
|
1872
1872
|
return Promise.all(e);
|
|
1873
1873
|
} else
|
|
1874
|
-
return this.configuration.type ===
|
|
1874
|
+
return this.configuration.type === F.ProductOverlay ? Promise.all(
|
|
1875
1875
|
this.configuration.data.regions.map((e) => {
|
|
1876
1876
|
if (!this.layouts.find((A) => e.panelId === A.panelId))
|
|
1877
1877
|
throw new z(e);
|
|
@@ -1881,7 +1881,7 @@ class Rt {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
evaluateAssetType() {
|
|
1883
1883
|
var t, A, a;
|
|
1884
|
-
const e = this.configuration.type ===
|
|
1884
|
+
const e = this.configuration.type === F.ProductOverlay && ((t = this.product) != null && t.overlayImageUrl) ? this.product.overlayImageUrl.toLowerCase() : (a = (A = this.configuration.data.asset) == null ? void 0 : A.fileLink) == null ? void 0 : a.toLowerCase().split("?")[0];
|
|
1885
1885
|
return e != null && e.startsWith("data:image/png") || e != null && e.endsWith(".jpeg") || e != null && e.endsWith(".jpg") || e != null && e.endsWith(".png") ? k.Image : e != null && e.endsWith(".svg") || e != null && e.startsWith("image/svg+xml") ? k.Illustration : k.Illustration;
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
@@ -3601,7 +3601,7 @@ class en {
|
|
|
3601
3601
|
}, p = [], Q = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
|
|
3602
3602
|
if (!m.fontData)
|
|
3603
3603
|
throw new b("Failed to resolve font data for text.");
|
|
3604
|
-
const [
|
|
3604
|
+
const [y, M] = Pe(
|
|
3605
3605
|
m.fontSize,
|
|
3606
3606
|
m.fontData,
|
|
3607
3607
|
{
|
|
@@ -3615,11 +3615,11 @@ class en {
|
|
|
3615
3615
|
[o],
|
|
3616
3616
|
{ size: A.size, minSize: A.minSize, maxSize: A.maxSize }
|
|
3617
3617
|
);
|
|
3618
|
-
Q.set(m.id,
|
|
3619
|
-
const P = A.curved || A.vertical ? o : (
|
|
3618
|
+
Q.set(m.id, y), I.set(m.id, M);
|
|
3619
|
+
const P = A.curved || A.vertical ? o : (M || []).join(`
|
|
3620
3620
|
`);
|
|
3621
3621
|
p.push(
|
|
3622
|
-
this.generateTextChangeCommandsForRegion(
|
|
3622
|
+
this.generateTextChangeCommandsForRegion(y, A, m.id, P)
|
|
3623
3623
|
);
|
|
3624
3624
|
const S = new T(m, C);
|
|
3625
3625
|
return {
|
|
@@ -3677,8 +3677,8 @@ class en {
|
|
|
3677
3677
|
const m = i.getProfanities(), p = At(l.toLowerCase());
|
|
3678
3678
|
for (const Q of p)
|
|
3679
3679
|
for (const I in m) {
|
|
3680
|
-
const
|
|
3681
|
-
if (Q ===
|
|
3680
|
+
const y = m[I].toLowerCase().replace(/\s/g, "");
|
|
3681
|
+
if (Q === y)
|
|
3682
3682
|
return o(!0), { error: "Blocked profanity." };
|
|
3683
3683
|
}
|
|
3684
3684
|
return !e.data.vertical && !e.data.allowNewlines && (l.includes(`
|
|
@@ -5154,10 +5154,10 @@ class rn extends wt {
|
|
|
5154
5154
|
p.appendChild(Q), Q.appendChild(wA(3, 7, 4, "shadow"));
|
|
5155
5155
|
const I = H("g");
|
|
5156
5156
|
p.appendChild(I), I.setAttribute("filter", "url(#shadow)"), I.innerHTML = A;
|
|
5157
|
-
const F = H("g");
|
|
5158
|
-
p.appendChild(F), F.setAttribute("fill", "red"), F.setAttribute("stroke", "red"), F.setAttribute("stroke-width", "9"), F.innerHTML = A;
|
|
5159
5157
|
const y = H("g");
|
|
5160
|
-
p.appendChild(y), y.setAttribute("fill", "
|
|
5158
|
+
p.appendChild(y), y.setAttribute("fill", "red"), y.setAttribute("stroke", "red"), y.setAttribute("stroke-width", "9"), y.innerHTML = A;
|
|
5159
|
+
const M = H("g");
|
|
5160
|
+
p.appendChild(M), M.setAttribute("fill", "#9d2621"), M.setAttribute("transform", "translate(1,1)"), M.innerHTML = A;
|
|
5161
5161
|
const P = H("g");
|
|
5162
5162
|
return p.appendChild(P), P.setAttribute("fill", "yellow"), P.innerHTML = A, new ut(p).transform(([N, R]) => [N, R + (n / 2 - N) ** 2 / (n * 2.9)]), p;
|
|
5163
5163
|
}, [o, r, g] = CA(t);
|
|
@@ -5194,10 +5194,10 @@ class gn extends wt {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
brandSvg(e, t, A) {
|
|
5196
5196
|
const a = e.toSVG(2), n = e.getBoundingBox(), i = n.y2 - n.y1, s = n.x2 - n.x1, o = e.toPathData(3), r = () => {
|
|
5197
|
-
const I = H("g"),
|
|
5198
|
-
I.appendChild(
|
|
5199
|
-
const
|
|
5200
|
-
I.appendChild(
|
|
5197
|
+
const I = H("g"), y = H("g");
|
|
5198
|
+
I.appendChild(y), y.setAttribute("stroke", "#5C1A0D"), y.setAttribute("stroke-width", "4"), y.setAttribute("transform", "translate(1,1)"), y.innerHTML = a;
|
|
5199
|
+
const M = H("g");
|
|
5200
|
+
I.appendChild(M), M.setAttribute("fill", "#FFE386"), M.setAttribute("transform", "translate(1,1)"), M.innerHTML = a;
|
|
5201
5201
|
const P = H("g");
|
|
5202
5202
|
I.appendChild(P), P.setAttribute("fill", "white"), P.innerHTML = a;
|
|
5203
5203
|
const S = new ut(I);
|
|
@@ -5248,10 +5248,10 @@ class Bn extends wt {
|
|
|
5248
5248
|
Q.classList.add("module-layer0"), D.appendChild(Q), Q.setAttribute("filter", "url(#shadow)"), Q.innerHTML = p.outerHTML;
|
|
5249
5249
|
const I = H("g");
|
|
5250
5250
|
I.classList.add("module-layer1"), D.appendChild(I), I.setAttribute("stroke-width", "3"), I.setAttribute("stroke", "rgb(45,41,38)"), I.setAttribute("fill", "rgb(45,41,38)"), I.setAttribute("transform", "translate(0.5,0)"), I.innerHTML = s;
|
|
5251
|
-
const F = H("g");
|
|
5252
|
-
F.classList.add("module-layer2"), D.appendChild(F), F.setAttribute("fill", "rgb(255,209,0)"), F.setAttribute("transform", "translate(1,-0.1)"), F.innerHTML = s;
|
|
5253
5251
|
const y = H("g");
|
|
5254
|
-
|
|
5252
|
+
y.classList.add("module-layer2"), D.appendChild(y), y.setAttribute("fill", "rgb(255,209,0)"), y.setAttribute("transform", "translate(1,-0.1)"), y.innerHTML = s;
|
|
5253
|
+
const M = H("g");
|
|
5254
|
+
return M.classList.add("module-layer3"), D.appendChild(M), M.setAttribute("fill", "white"), M.innerHTML = s, new ut(D).transform(([S, N]) => [S, N + (r / 2 - S) ** 2 / (r * 6)]), D;
|
|
5255
5255
|
}, l = H("g");
|
|
5256
5256
|
l.classList.add("module-root");
|
|
5257
5257
|
const C = H("defs");
|
|
@@ -5500,7 +5500,7 @@ class dn {
|
|
|
5500
5500
|
},
|
|
5501
5501
|
{ refocusCamera: t }
|
|
5502
5502
|
);
|
|
5503
|
-
this.setModelContainer(A), ie(this.allScenes, this.stepSelections).filter((i) => i).map((i) => i.renderableSteps).flat().filter((i) => i.type ===
|
|
5503
|
+
this.setModelContainer(A), ie(this.allScenes, this.stepSelections).filter((i) => i).map((i) => i.renderableSteps).flat().filter((i) => i.type === F.Model || i.type === F.Material).forEach((i) => {
|
|
5504
5504
|
var r, g, B;
|
|
5505
5505
|
if (!((r = i.option) != null && r.id)) {
|
|
5506
5506
|
console.error(`Failed to read option id from step: ${i.stepName}`);
|
|
@@ -5510,7 +5510,7 @@ class dn {
|
|
|
5510
5510
|
if (s.length === 0)
|
|
5511
5511
|
return;
|
|
5512
5512
|
const o = s[0];
|
|
5513
|
-
if (i.type ===
|
|
5513
|
+
if (i.type === F.Model) {
|
|
5514
5514
|
if (!this.modelContainer)
|
|
5515
5515
|
throw new b(
|
|
5516
5516
|
"We should always have a model container when injecting a preview!"
|
|
@@ -5645,17 +5645,17 @@ class dn {
|
|
|
5645
5645
|
), e), []);
|
|
5646
5646
|
}
|
|
5647
5647
|
getInvalidModelVariants() {
|
|
5648
|
-
return this.workflow.steps.reduce((e, t) => (t.type ===
|
|
5648
|
+
return this.workflow.steps.reduce((e, t) => (t.type === F.Model && !oe(t, this.stepSelections) && e.push(t.stepName), e), []);
|
|
5649
5649
|
}
|
|
5650
5650
|
async stepElementsForIntroducedSilentSteps(e, t) {
|
|
5651
5651
|
const A = this.product;
|
|
5652
5652
|
if (!A)
|
|
5653
5653
|
return Promise.resolve({ stepElements: {}, commands: [] });
|
|
5654
5654
|
const a = async (r, g, B) => {
|
|
5655
|
-
if (r.type ===
|
|
5655
|
+
if (r.type === F.SilentIllustration) {
|
|
5656
5656
|
const l = await new Rt(r, g).trigger();
|
|
5657
5657
|
return { step: r, results: l };
|
|
5658
|
-
} else if (r.type ===
|
|
5658
|
+
} else if (r.type === F.ProductOverlay) {
|
|
5659
5659
|
const l = await new Rt(
|
|
5660
5660
|
r,
|
|
5661
5661
|
g,
|
|
@@ -5709,7 +5709,7 @@ class dn {
|
|
|
5709
5709
|
this.stepSelections = {
|
|
5710
5710
|
...this.stepSelections,
|
|
5711
5711
|
[e]: { selectedVariants: t }
|
|
5712
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((Q, I) => Q + I.selectedVariants.map((
|
|
5712
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((Q, I) => Q + I.selectedVariants.map((y) => y.priceModifier || 0).reduce((y, M) => y + M, 0), 0), this.workflow.steps.forEach((Q) => {
|
|
5713
5713
|
oe(Q, this.stepSelections) || (this.stepInitialised[Q.stepName] = !1, delete this.stepMetadata[Q.stepName], delete this.stepSelections[Q.stepName], delete this.storage[Q.stepName]);
|
|
5714
5714
|
});
|
|
5715
5715
|
const i = this.allScenes, s = ie(i, n), o = ie(i, this.stepSelections), r = s.map((Q) => Q.silentSteps).flat(), B = o.map((Q) => Q.silentSteps).flat().filter(
|
|
@@ -5725,7 +5725,7 @@ class dn {
|
|
|
5725
5725
|
[e]: A
|
|
5726
5726
|
}, this.removeElements(l);
|
|
5727
5727
|
const E = this.workflow.steps.find((Q) => Q.stepName === e);
|
|
5728
|
-
if ((E == null ? void 0 : E.type) ===
|
|
5728
|
+
if ((E == null ? void 0 : E.type) === F.Frame) {
|
|
5729
5729
|
const Q = this.getStepSpecificServices(e);
|
|
5730
5730
|
(p = Q == null ? void 0 : Q.frameService) == null || p.setTargetElements(A.map((I) => I.id));
|
|
5731
5731
|
}
|
|
@@ -5751,7 +5751,7 @@ class dn {
|
|
|
5751
5751
|
for (const o of a)
|
|
5752
5752
|
if (!this.stepInitialised[o.stepName])
|
|
5753
5753
|
switch (this.stepInitialised[o.stepName] = !0, o.type) {
|
|
5754
|
-
case
|
|
5754
|
+
case F.DigitalContent:
|
|
5755
5755
|
A.push(
|
|
5756
5756
|
Oa.init(
|
|
5757
5757
|
o,
|
|
@@ -5760,8 +5760,8 @@ class dn {
|
|
|
5760
5760
|
)
|
|
5761
5761
|
);
|
|
5762
5762
|
break;
|
|
5763
|
-
case
|
|
5764
|
-
case
|
|
5763
|
+
case F.Frame:
|
|
5764
|
+
case F.Photo:
|
|
5765
5765
|
{
|
|
5766
5766
|
const r = new ka(o.data.forceImageCover);
|
|
5767
5767
|
r.connectWorkflowManager(this, o.stepName), this.stepSpecificServices[o.stepName] = {
|
|
@@ -5771,40 +5771,40 @@ class dn {
|
|
|
5771
5771
|
);
|
|
5772
5772
|
}
|
|
5773
5773
|
break;
|
|
5774
|
-
case
|
|
5774
|
+
case F.Illustration:
|
|
5775
5775
|
A.push(
|
|
5776
5776
|
xe.init(o, this, this.reloadedState)
|
|
5777
5777
|
);
|
|
5778
5778
|
break;
|
|
5779
|
-
case
|
|
5779
|
+
case F.Material:
|
|
5780
5780
|
A.push(
|
|
5781
5781
|
cA.init(o, this, this.reloadedState)
|
|
5782
5782
|
);
|
|
5783
5783
|
break;
|
|
5784
|
-
case
|
|
5784
|
+
case F.Model:
|
|
5785
5785
|
A.push(gA.init(o, this, this.reloadedState));
|
|
5786
5786
|
break;
|
|
5787
|
-
case
|
|
5787
|
+
case F.Module:
|
|
5788
5788
|
this.stepSpecificServices[o.stepName] = {
|
|
5789
5789
|
module: await hA(o.data.module)
|
|
5790
5790
|
}, A.push(
|
|
5791
5791
|
Va.init(o, this, this.reloadedState)
|
|
5792
5792
|
);
|
|
5793
5793
|
break;
|
|
5794
|
-
case
|
|
5794
|
+
case F.Picture:
|
|
5795
5795
|
A.push(
|
|
5796
5796
|
lA.init(o, this, this.reloadedState)
|
|
5797
5797
|
);
|
|
5798
5798
|
break;
|
|
5799
|
-
case
|
|
5799
|
+
case F.Question:
|
|
5800
5800
|
A.push(
|
|
5801
5801
|
BA.init(o, this, this.reloadedState)
|
|
5802
5802
|
);
|
|
5803
5803
|
break;
|
|
5804
|
-
case
|
|
5804
|
+
case F.Shape:
|
|
5805
5805
|
A.push(de.init(o, this, this.reloadedState));
|
|
5806
5806
|
break;
|
|
5807
|
-
case
|
|
5807
|
+
case F.Text:
|
|
5808
5808
|
A.push(j.init(o, this, this.reloadedState));
|
|
5809
5809
|
break;
|
|
5810
5810
|
}
|
|
@@ -6440,27 +6440,45 @@ class Dn extends X {
|
|
|
6440
6440
|
return this.step.data.content;
|
|
6441
6441
|
}
|
|
6442
6442
|
}
|
|
6443
|
+
class In extends X {
|
|
6444
|
+
constructor(e, t) {
|
|
6445
|
+
super(e, t);
|
|
6446
|
+
}
|
|
6447
|
+
async selectVariant() {
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
6450
|
+
class fn extends X {
|
|
6451
|
+
constructor(e, t) {
|
|
6452
|
+
super(e, t);
|
|
6453
|
+
}
|
|
6454
|
+
async selectVariant() {
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6443
6457
|
class Fe {
|
|
6444
6458
|
static get(e, t) {
|
|
6445
6459
|
switch (t.type) {
|
|
6446
|
-
case
|
|
6460
|
+
case F.DigitalContent:
|
|
6461
|
+
return new In(e, t);
|
|
6462
|
+
case F.Information:
|
|
6447
6463
|
return new Dn(e, t);
|
|
6448
|
-
case
|
|
6464
|
+
case F.Question:
|
|
6449
6465
|
return new Qn(e, t);
|
|
6450
|
-
case
|
|
6466
|
+
case F.Text:
|
|
6451
6467
|
return new pn(e, t);
|
|
6452
|
-
case
|
|
6468
|
+
case F.Illustration:
|
|
6453
6469
|
return new wn(e, t);
|
|
6454
|
-
case
|
|
6470
|
+
case F.Picture:
|
|
6455
6471
|
return new un(e, t);
|
|
6456
|
-
case
|
|
6472
|
+
case F.Shape:
|
|
6457
6473
|
return new mn(e, t);
|
|
6458
|
-
case
|
|
6474
|
+
case F.Material:
|
|
6459
6475
|
return new En(e, t);
|
|
6460
|
-
case
|
|
6476
|
+
case F.Model:
|
|
6461
6477
|
return new hn(e, t);
|
|
6462
|
-
case
|
|
6463
|
-
return new
|
|
6478
|
+
case F.Frame:
|
|
6479
|
+
return new Ki(e, t);
|
|
6480
|
+
case F.Module:
|
|
6481
|
+
return new fn(e, t);
|
|
6464
6482
|
default:
|
|
6465
6483
|
throw new b(`Step type ${t.type} not yet supported in Core SDK`);
|
|
6466
6484
|
}
|
|
@@ -6491,7 +6509,7 @@ const QA = f`
|
|
|
6491
6509
|
externalProductVariantId
|
|
6492
6510
|
}
|
|
6493
6511
|
}
|
|
6494
|
-
`,
|
|
6512
|
+
`, Fn = f`
|
|
6495
6513
|
${QA}
|
|
6496
6514
|
mutation CreateDesign(
|
|
6497
6515
|
$name: String!
|
|
@@ -6523,7 +6541,7 @@ const QA = f`
|
|
|
6523
6541
|
}
|
|
6524
6542
|
}
|
|
6525
6543
|
}
|
|
6526
|
-
`,
|
|
6544
|
+
`, yn = f`
|
|
6527
6545
|
${QA}
|
|
6528
6546
|
mutation CreateDesigns($inputs: [DesignCreateInput]!) {
|
|
6529
6547
|
designCreateMany(inputs: $inputs) {
|
|
@@ -6542,11 +6560,11 @@ function Qt(c) {
|
|
|
6542
6560
|
const e = JSON.parse(atob(c.split(".")[1])).exp;
|
|
6543
6561
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= e;
|
|
6544
6562
|
}
|
|
6545
|
-
const
|
|
6563
|
+
const Mn = async (c) => {
|
|
6546
6564
|
var i, s;
|
|
6547
6565
|
const t = ((i = Object.entries(localStorage).find(([o, r]) => o.startsWith("CognitoIdentityServiceProvider") && o.endsWith("idToken"))) == null ? void 0 : i[0]) || "", A = localStorage.getItem(t), a = {};
|
|
6548
6566
|
return A && !Qt(A) && (a.Authorization = `Bearer ${A}`), (s = (await x.getShadowGraphqlClient().mutate({
|
|
6549
|
-
mutation:
|
|
6567
|
+
mutation: Fn,
|
|
6550
6568
|
errorPolicy: "all",
|
|
6551
6569
|
fetchPolicy: "no-cache",
|
|
6552
6570
|
variables: {
|
|
@@ -6563,11 +6581,11 @@ const Fn = async (c) => {
|
|
|
6563
6581
|
headers: a
|
|
6564
6582
|
}
|
|
6565
6583
|
})).data) == null ? void 0 : s.designCreate;
|
|
6566
|
-
},
|
|
6584
|
+
}, Sn = async (c) => {
|
|
6567
6585
|
var i, s;
|
|
6568
6586
|
const t = ((i = Object.entries(localStorage).find(([o, r]) => o.startsWith("CognitoIdentityServiceProvider") && o.endsWith("idToken"))) == null ? void 0 : i[0]) || "", A = localStorage.getItem(t), a = {};
|
|
6569
6587
|
return A && !Qt(A) && (a.Authorization = `Bearer ${A}`), (s = (await x.getShadowGraphqlClient().mutate({
|
|
6570
|
-
mutation:
|
|
6588
|
+
mutation: yn,
|
|
6571
6589
|
errorPolicy: "all",
|
|
6572
6590
|
fetchPolicy: "no-cache",
|
|
6573
6591
|
variables: {
|
|
@@ -6622,7 +6640,7 @@ const Fn = async (c) => {
|
|
|
6622
6640
|
return e.steps.forEach((n) => {
|
|
6623
6641
|
Object.assign(a, A(n));
|
|
6624
6642
|
}), a;
|
|
6625
|
-
},
|
|
6643
|
+
}, Yn = (c, e, t, A) => {
|
|
6626
6644
|
const a = {};
|
|
6627
6645
|
let n;
|
|
6628
6646
|
if (t) {
|
|
@@ -6657,7 +6675,7 @@ const Fn = async (c) => {
|
|
|
6657
6675
|
return a;
|
|
6658
6676
|
}, mA = (c, e, t, A, a, n, i, s) => {
|
|
6659
6677
|
var d, E;
|
|
6660
|
-
const o = e.basePrice || 0, r = c.priceModifierTotal || 0, g =
|
|
6678
|
+
const o = e.basePrice || 0, r = c.priceModifierTotal || 0, g = Yn(A, t, void 0, n), l = (Y.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(c.id), C = {
|
|
6661
6679
|
additionalExternalProductId: (d = c.integrationProduct) == null ? void 0 : d.additionalExternalProductId,
|
|
6662
6680
|
additionalExternalVariantId: (E = c.integrationProduct) == null ? void 0 : E.additionalExternalVariantId,
|
|
6663
6681
|
baseCost: o,
|
|
@@ -6680,7 +6698,7 @@ const Fn = async (c) => {
|
|
|
6680
6698
|
};
|
|
6681
6699
|
return n && (C.metadata = n), A && (C.selectedVariants = A), a && (C.sku = a), C;
|
|
6682
6700
|
}, pA = async (c, e, t, A, a, n, i, s, o, r) => {
|
|
6683
|
-
var
|
|
6701
|
+
var y;
|
|
6684
6702
|
await (async () => {
|
|
6685
6703
|
var L;
|
|
6686
6704
|
if (r !== void 0)
|
|
@@ -6699,7 +6717,7 @@ const Fn = async (c) => {
|
|
|
6699
6717
|
N.errors && console.log("Server Error:", O.message);
|
|
6700
6718
|
}), null) : R ?? null;
|
|
6701
6719
|
})() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(A())), await c.updateStateWithServerImmediate(A), console.log("Server state is undefined @ Workflow completion"));
|
|
6702
|
-
const l = c.getPreviewService(), C = (
|
|
6720
|
+
const l = c.getPreviewService(), C = (y = e == null ? void 0 : e.finalizeStepConfig) == null ? void 0 : y.lookAtAnimation, d = l && e.showModelOnFinishStep && !!C, E = o && it(o, e, !0), w = o && it(o, e, !1), u = async (M) => {
|
|
6703
6721
|
const P = {};
|
|
6704
6722
|
let S = 0;
|
|
6705
6723
|
if (Object.keys(n).length > 0)
|
|
@@ -6707,7 +6725,7 @@ const Fn = async (c) => {
|
|
|
6707
6725
|
const R = n[N], L = e.steps.find((O) => O.stepName === N);
|
|
6708
6726
|
for (let O = 0; O < R.selections.length; ++O) {
|
|
6709
6727
|
const W = R.selections[O];
|
|
6710
|
-
if (L && (!
|
|
6728
|
+
if (L && (!M || L.option && (L.option.variants || []).length > 1 && !L.data.hideSelectionInCart && !L.data.hideSelectionsInCart)) {
|
|
6711
6729
|
const je = L.stepTitle;
|
|
6712
6730
|
P[je] ? P[je].push({
|
|
6713
6731
|
id: W.id || "",
|
|
@@ -6726,18 +6744,18 @@ const Fn = async (c) => {
|
|
|
6726
6744
|
}
|
|
6727
6745
|
return [P, S];
|
|
6728
6746
|
}, [h] = await u(!0), D = Object.fromEntries(
|
|
6729
|
-
Object.keys(h).map((
|
|
6747
|
+
Object.keys(h).map((M) => [M, h[M].map((P) => P.id)])
|
|
6730
6748
|
), [m] = await u(!1), p = Object.fromEntries(
|
|
6731
|
-
Object.keys(m).map((
|
|
6732
|
-
|
|
6733
|
-
m[
|
|
6749
|
+
Object.keys(m).map((M) => [
|
|
6750
|
+
M,
|
|
6751
|
+
m[M].map((P) => P.id)
|
|
6734
6752
|
])
|
|
6735
6753
|
);
|
|
6736
6754
|
let Q = await s(d, a.id);
|
|
6737
6755
|
if (Q) {
|
|
6738
|
-
const
|
|
6756
|
+
const M = await (await fetch(Q)).blob();
|
|
6739
6757
|
Q = (await U.uploadAsset(
|
|
6740
|
-
{ name: `${a.id}-preview-image.png`, blob:
|
|
6758
|
+
{ name: `${a.id}-preview-image.png`, blob: M },
|
|
6741
6759
|
$e.Image,
|
|
6742
6760
|
!0,
|
|
6743
6761
|
!1
|
|
@@ -6745,7 +6763,7 @@ const Fn = async (c) => {
|
|
|
6745
6763
|
}
|
|
6746
6764
|
return {
|
|
6747
6765
|
designDetails: (() => {
|
|
6748
|
-
const
|
|
6766
|
+
const M = {
|
|
6749
6767
|
name: i,
|
|
6750
6768
|
layouts: t.map((P) => ({
|
|
6751
6769
|
index: P.index,
|
|
@@ -6760,20 +6778,20 @@ const Fn = async (c) => {
|
|
|
6760
6778
|
const P = [];
|
|
6761
6779
|
for (const [S, N] of Object.entries(w))
|
|
6762
6780
|
P.push({ key: S, value: N });
|
|
6763
|
-
|
|
6781
|
+
M.metadata = P;
|
|
6764
6782
|
}
|
|
6765
6783
|
if (D) {
|
|
6766
6784
|
const P = [];
|
|
6767
6785
|
for (const [S, N] of Object.entries(p))
|
|
6768
6786
|
P.push({ key: S, ids: N });
|
|
6769
|
-
|
|
6787
|
+
M.selectedVariants = P;
|
|
6770
6788
|
}
|
|
6771
|
-
return
|
|
6789
|
+
return M;
|
|
6772
6790
|
})(),
|
|
6773
6791
|
cartSelectionsWithPrices: h,
|
|
6774
6792
|
cartMetadata: E
|
|
6775
6793
|
};
|
|
6776
|
-
},
|
|
6794
|
+
}, Pn = async (c, e, t, A, a, n, i, s, o, r, g) => {
|
|
6777
6795
|
var u, h;
|
|
6778
6796
|
o("workflow.steps.finish.finalize.buildingLayouts");
|
|
6779
6797
|
const { designDetails: B, cartSelectionsWithPrices: l, cartMetadata: C } = await pA(
|
|
@@ -6788,7 +6806,7 @@ const Fn = async (c) => {
|
|
|
6788
6806
|
g
|
|
6789
6807
|
);
|
|
6790
6808
|
o("workflow.steps.finish.finalize.creatingDesign");
|
|
6791
|
-
const d = await
|
|
6809
|
+
const d = await Mn(B), E = (u = d == null ? void 0 : d.transaction) == null ? void 0 : u.previewImageLink;
|
|
6792
6810
|
if (!(d != null && d.transaction))
|
|
6793
6811
|
throw new Error("Failed to create design");
|
|
6794
6812
|
o("workflow.steps.finish.finalize.updatingTransaction");
|
|
@@ -6803,7 +6821,7 @@ const Fn = async (c) => {
|
|
|
6803
6821
|
E,
|
|
6804
6822
|
(h = d == null ? void 0 : d.processExecution) == null ? void 0 : h.id
|
|
6805
6823
|
);
|
|
6806
|
-
},
|
|
6824
|
+
}, xn = async (c, e, t) => {
|
|
6807
6825
|
e("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
|
|
6808
6826
|
c.map(async (s) => {
|
|
6809
6827
|
await s.workflowManager.outstandingRequestsPromise();
|
|
@@ -6835,7 +6853,7 @@ const Fn = async (c) => {
|
|
|
6835
6853
|
))
|
|
6836
6854
|
);
|
|
6837
6855
|
e("workflow.steps.finish.finalize.creatingDesign");
|
|
6838
|
-
const i = await
|
|
6856
|
+
const i = await Sn(n.map((s) => s.designDetails));
|
|
6839
6857
|
if (!i)
|
|
6840
6858
|
throw new Error("Failed to create designs");
|
|
6841
6859
|
return e("workflow.steps.finish.finalize.updatingTransaction"), i.map((s, o) => {
|
|
@@ -6854,7 +6872,7 @@ const Fn = async (c) => {
|
|
|
6854
6872
|
);
|
|
6855
6873
|
});
|
|
6856
6874
|
};
|
|
6857
|
-
class
|
|
6875
|
+
class Nn {
|
|
6858
6876
|
constructor() {
|
|
6859
6877
|
this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
|
|
6860
6878
|
}
|
|
@@ -6921,7 +6939,7 @@ class Pn {
|
|
|
6921
6939
|
throw new b("Unexpected storage method requested");
|
|
6922
6940
|
}
|
|
6923
6941
|
}
|
|
6924
|
-
const Xe = new
|
|
6942
|
+
const Xe = new Nn(), Rn = f`
|
|
6925
6943
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
6926
6944
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
6927
6945
|
id
|
|
@@ -6936,7 +6954,7 @@ const Xe = new Pn(), xn = f`
|
|
|
6936
6954
|
}
|
|
6937
6955
|
}
|
|
6938
6956
|
`;
|
|
6939
|
-
var
|
|
6957
|
+
var Hn = /* @__PURE__ */ ((c) => (c.QuantityChanged = "QuantityChanged", c.PriceBreakChanged = "PriceBreakChanged", c))(Hn || {});
|
|
6940
6958
|
class ye {
|
|
6941
6959
|
constructor(e, t) {
|
|
6942
6960
|
var a;
|
|
@@ -7181,7 +7199,7 @@ class ye {
|
|
|
7181
7199
|
async assignCustomerDetails(e) {
|
|
7182
7200
|
var i, s, o;
|
|
7183
7201
|
const A = (Y.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id), n = (o = (s = (i = (await x.getShadowGraphqlClient().mutate({
|
|
7184
|
-
mutation:
|
|
7202
|
+
mutation: Rn,
|
|
7185
7203
|
variables: {
|
|
7186
7204
|
id: this.getWorkflowManager().getTransaction().id,
|
|
7187
7205
|
details: e,
|
|
@@ -7234,13 +7252,13 @@ class ye {
|
|
|
7234
7252
|
const e = he(this.getCommandContext().getState());
|
|
7235
7253
|
if (!e)
|
|
7236
7254
|
throw new b("Internal state is undefined! Cannot copy experience!");
|
|
7237
|
-
const t = JSON.stringify(e.transaction), A = this.getWorkflowManager().getWorkflow(), a = new
|
|
7255
|
+
const t = JSON.stringify(e.transaction), A = this.getWorkflowManager().getWorkflow(), a = new Li({}), n = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
|
|
7238
7256
|
if (!n)
|
|
7239
7257
|
throw new b("Integration product id is undefined!");
|
|
7240
7258
|
return await a.initFromIntegrationProduct(n), await a.getWorkflowExperience(A.id, t, void 0);
|
|
7241
7259
|
}
|
|
7242
7260
|
async onDesignFinished(e, t = !0) {
|
|
7243
|
-
return
|
|
7261
|
+
return Pn(
|
|
7244
7262
|
this.workflowManager,
|
|
7245
7263
|
this.workflowManager.getWorkflow(),
|
|
7246
7264
|
this.workflowManager.getLayouts(),
|
|
@@ -7261,7 +7279,7 @@ class ye {
|
|
|
7261
7279
|
* @returns Returns true when a valid handle is implemented for a given step type. Certain steps don't support handles, such as silent illustrations.
|
|
7262
7280
|
*/
|
|
7263
7281
|
stepHasHandle(e) {
|
|
7264
|
-
return e.type !==
|
|
7282
|
+
return e.type !== F.SilentIllustration && e.type !== F.ProductOverlay;
|
|
7265
7283
|
}
|
|
7266
7284
|
getExportedData() {
|
|
7267
7285
|
var a;
|
|
@@ -7319,7 +7337,7 @@ class ye {
|
|
|
7319
7337
|
(this.eventCallbacks.get(e) || []).forEach((t) => t(this));
|
|
7320
7338
|
}
|
|
7321
7339
|
}
|
|
7322
|
-
const
|
|
7340
|
+
const vn = [
|
|
7323
7341
|
"altGlyph",
|
|
7324
7342
|
"circle",
|
|
7325
7343
|
"ellipse",
|
|
@@ -7331,7 +7349,7 @@ const Rn = [
|
|
|
7331
7349
|
"textPath",
|
|
7332
7350
|
"tref",
|
|
7333
7351
|
"tspan"
|
|
7334
|
-
],
|
|
7352
|
+
], Un = async (c, e, t) => {
|
|
7335
7353
|
const A = e.data, a = t.data.baseUrl, n = A.assetUrl.replace("localhost", "localstack"), i = a.slice(0, 4) === "http" ? "" : "https://", s = new URL(i + a);
|
|
7336
7354
|
s.searchParams.append("video", Mt(JSON.stringify([{ href: n }]))), s.pathname = s.pathname + (s.pathname.slice(-1) === "/" ? "" : "/");
|
|
7337
7355
|
const o = s.toString(), g = `data:image/svg+xml;base64,${Mt(await $t(o, { type: "svg" }))}`, B = (C) => {
|
|
@@ -7358,7 +7376,7 @@ const Rn = [
|
|
|
7358
7376
|
} catch (C) {
|
|
7359
7377
|
return console.error(C), [];
|
|
7360
7378
|
}
|
|
7361
|
-
},
|
|
7379
|
+
}, Gn = async (c, e, t, A) => {
|
|
7362
7380
|
const a = t.data, n = a.assetUrl, i = await et(n);
|
|
7363
7381
|
try {
|
|
7364
7382
|
const s = jA(a, A.option);
|
|
@@ -7411,7 +7429,7 @@ const Rn = [
|
|
|
7411
7429
|
} catch (s) {
|
|
7412
7430
|
return console.error(s), [];
|
|
7413
7431
|
}
|
|
7414
|
-
},
|
|
7432
|
+
}, kn = async (c, e, t, A) => {
|
|
7415
7433
|
var p, Q;
|
|
7416
7434
|
const a = t.data, n = A.option;
|
|
7417
7435
|
if (!n)
|
|
@@ -7431,36 +7449,36 @@ const Rn = [
|
|
|
7431
7449
|
Vt(d);
|
|
7432
7450
|
const E = {};
|
|
7433
7451
|
WA(d, (I) => {
|
|
7434
|
-
|
|
7435
|
-
const
|
|
7436
|
-
if (
|
|
7437
|
-
const P =
|
|
7452
|
+
vn.includes(I.tagName) && !I.attributes.getNamedItem("fill") && I.setAttribute("fill", "#000000");
|
|
7453
|
+
const y = I.attributes.getNamedItem("fill");
|
|
7454
|
+
if (y && y.value !== "none") {
|
|
7455
|
+
const P = y.value, N = `spiff-fill-${P.replace(/\W/g, "")}`;
|
|
7438
7456
|
I.classList.add(N), E[N] = { browserValue: P };
|
|
7439
7457
|
}
|
|
7440
|
-
const
|
|
7441
|
-
if (
|
|
7442
|
-
const P =
|
|
7458
|
+
const M = I.attributes.getNamedItem("stroke");
|
|
7459
|
+
if (M && M.value !== "none") {
|
|
7460
|
+
const P = M.value, N = `spiff-stroke-${P.replace(/\W/g, "")}`;
|
|
7443
7461
|
I.classList.add(N), E[N] = { browserValue: P };
|
|
7444
7462
|
}
|
|
7445
7463
|
});
|
|
7446
7464
|
const u = Wt().serializeToString(d), h = a.colors;
|
|
7447
7465
|
if (h) {
|
|
7448
|
-
for (const [I,
|
|
7449
|
-
for (const
|
|
7450
|
-
if (
|
|
7451
|
-
E[I] = { browserValue: h[
|
|
7466
|
+
for (const [I, y] of Object.entries(E))
|
|
7467
|
+
for (const M of Object.keys(h))
|
|
7468
|
+
if (y.browserValue === M) {
|
|
7469
|
+
E[I] = { browserValue: h[M] };
|
|
7452
7470
|
break;
|
|
7453
7471
|
}
|
|
7454
7472
|
}
|
|
7455
7473
|
const D = (I) => {
|
|
7456
|
-
const
|
|
7457
|
-
if (!
|
|
7474
|
+
const y = c.find((P) => P.panelId === I.panelId);
|
|
7475
|
+
if (!y)
|
|
7458
7476
|
throw new z(I);
|
|
7459
|
-
const
|
|
7477
|
+
const M = J();
|
|
7460
7478
|
return new T(
|
|
7461
7479
|
{
|
|
7462
7480
|
colors: E,
|
|
7463
|
-
id:
|
|
7481
|
+
id: M,
|
|
7464
7482
|
svg: u,
|
|
7465
7483
|
type: k.Illustration,
|
|
7466
7484
|
y: I.top,
|
|
@@ -7472,7 +7490,7 @@ const Rn = [
|
|
|
7472
7490
|
layerIndex: I.layerIndex,
|
|
7473
7491
|
immutable: I.immutable
|
|
7474
7492
|
},
|
|
7475
|
-
|
|
7493
|
+
y
|
|
7476
7494
|
);
|
|
7477
7495
|
}, m = A.data.regions;
|
|
7478
7496
|
try {
|
|
@@ -7480,7 +7498,7 @@ const Rn = [
|
|
|
7480
7498
|
} catch (I) {
|
|
7481
7499
|
return console.error(I), [];
|
|
7482
7500
|
}
|
|
7483
|
-
},
|
|
7501
|
+
}, bn = async (c, e, t) => {
|
|
7484
7502
|
const A = await hA(t.data.module), a = e.data, n = (s, o) => {
|
|
7485
7503
|
const r = c.find((B) => B.panelId === o.panelId);
|
|
7486
7504
|
if (!r)
|
|
@@ -7510,7 +7528,7 @@ const Rn = [
|
|
|
7510
7528
|
} catch (s) {
|
|
7511
7529
|
return console.error(s), [];
|
|
7512
7530
|
}
|
|
7513
|
-
},
|
|
7531
|
+
}, Jn = async (c, e, t, A) => {
|
|
7514
7532
|
var g, B;
|
|
7515
7533
|
const a = t.data, n = A.option;
|
|
7516
7534
|
if (!n)
|
|
@@ -7552,7 +7570,7 @@ const Rn = [
|
|
|
7552
7570
|
} catch (l) {
|
|
7553
7571
|
return console.error(l), [];
|
|
7554
7572
|
}
|
|
7555
|
-
},
|
|
7573
|
+
}, On = async (c, e, t, A) => {
|
|
7556
7574
|
var r;
|
|
7557
7575
|
const a = t.data, n = A.option;
|
|
7558
7576
|
if (!n)
|
|
@@ -7609,10 +7627,10 @@ const Rn = [
|
|
|
7609
7627
|
} catch (g) {
|
|
7610
7628
|
return console.error(g), [];
|
|
7611
7629
|
}
|
|
7612
|
-
},
|
|
7630
|
+
}, Tn = async (c, e, t) => {
|
|
7613
7631
|
const A = [], n = (() => {
|
|
7614
7632
|
var r, g;
|
|
7615
|
-
return e.type ===
|
|
7633
|
+
return e.type === F.ProductOverlay ? t || ((r = e.data.asset) == null ? void 0 : r.fileLink) || "" : ((g = e.data.asset) == null ? void 0 : g.fileLink) || "";
|
|
7616
7634
|
})(), s = (() => n.endsWith(".jpeg") || n.endsWith(".jpg") || n.endsWith(".png") ? k.Image : n.endsWith(".svg") ? k.Illustration : k.Illustration)(), o = e.data.regions;
|
|
7617
7635
|
if (s === "image")
|
|
7618
7636
|
try {
|
|
@@ -7630,7 +7648,7 @@ const Rn = [
|
|
|
7630
7648
|
height: r.height,
|
|
7631
7649
|
layer: r.layer,
|
|
7632
7650
|
layerIndex: r.layerIndex,
|
|
7633
|
-
productOverlay: e.type ===
|
|
7651
|
+
productOverlay: e.type === F.ProductOverlay ? !0 : void 0,
|
|
7634
7652
|
scaleX: 1,
|
|
7635
7653
|
scaleY: 1,
|
|
7636
7654
|
rotation: r.rotation,
|
|
@@ -7669,14 +7687,14 @@ const Rn = [
|
|
|
7669
7687
|
scaleX: 1,
|
|
7670
7688
|
scaleY: 1,
|
|
7671
7689
|
rotation: B.rotation,
|
|
7672
|
-
productOverlay: e.type ===
|
|
7690
|
+
productOverlay: e.type === F.ProductOverlay ? !0 : void 0,
|
|
7673
7691
|
excludeFromExport: e.data.excludeFromPrint
|
|
7674
7692
|
};
|
|
7675
7693
|
A.push(new T(C, l));
|
|
7676
7694
|
});
|
|
7677
7695
|
}
|
|
7678
7696
|
return A;
|
|
7679
|
-
},
|
|
7697
|
+
}, Ln = async (c, e, t, A) => {
|
|
7680
7698
|
const a = [], n = t.data, i = 30, s = (w) => w.vertical ? "center" : w.textAlign || "center", o = () => {
|
|
7681
7699
|
var D;
|
|
7682
7700
|
const w = A.option;
|
|
@@ -7765,7 +7783,7 @@ const Rn = [
|
|
|
7765
7783
|
a.push(new T(h, u));
|
|
7766
7784
|
}
|
|
7767
7785
|
return a;
|
|
7768
|
-
},
|
|
7786
|
+
}, zn = (c, e) => c.conditions ? c.conditions.every((t) => {
|
|
7769
7787
|
const A = e[t.targetStepName];
|
|
7770
7788
|
if (A && A.selectedVariants) {
|
|
7771
7789
|
const a = A.selectedVariants;
|
|
@@ -7774,26 +7792,26 @@ const Rn = [
|
|
|
7774
7792
|
);
|
|
7775
7793
|
}
|
|
7776
7794
|
return !1;
|
|
7777
|
-
}) : !0,
|
|
7795
|
+
}) : !0, Kn = async (c, e, t, A) => {
|
|
7778
7796
|
const a = [], n = {};
|
|
7779
7797
|
for (const i of c) {
|
|
7780
7798
|
const s = e.steps.find((o) => o.stepName === i.name);
|
|
7781
7799
|
if (s)
|
|
7782
7800
|
switch (s.type) {
|
|
7783
|
-
case
|
|
7801
|
+
case F.DigitalContent:
|
|
7784
7802
|
a.push(
|
|
7785
|
-
...await
|
|
7803
|
+
...await Un(t, i, s)
|
|
7786
7804
|
);
|
|
7787
7805
|
break;
|
|
7788
|
-
case
|
|
7789
|
-
case
|
|
7806
|
+
case F.Frame:
|
|
7807
|
+
case F.Photo:
|
|
7790
7808
|
a.push(
|
|
7791
|
-
...await
|
|
7809
|
+
...await Gn(t, n, i, s)
|
|
7792
7810
|
);
|
|
7793
7811
|
break;
|
|
7794
|
-
case
|
|
7812
|
+
case F.Illustration:
|
|
7795
7813
|
a.push(
|
|
7796
|
-
...await
|
|
7814
|
+
...await kn(
|
|
7797
7815
|
t,
|
|
7798
7816
|
n,
|
|
7799
7817
|
i,
|
|
@@ -7801,29 +7819,29 @@ const Rn = [
|
|
|
7801
7819
|
)
|
|
7802
7820
|
);
|
|
7803
7821
|
break;
|
|
7804
|
-
case
|
|
7805
|
-
a.push(...await
|
|
7822
|
+
case F.Module:
|
|
7823
|
+
a.push(...await bn(t, i, s));
|
|
7806
7824
|
break;
|
|
7807
|
-
case
|
|
7825
|
+
case F.Picture:
|
|
7808
7826
|
a.push(
|
|
7809
|
-
...await
|
|
7827
|
+
...await Jn(t, n, i, s)
|
|
7810
7828
|
);
|
|
7811
7829
|
break;
|
|
7812
|
-
case
|
|
7830
|
+
case F.Shape:
|
|
7813
7831
|
a.push(
|
|
7814
|
-
...await
|
|
7832
|
+
...await On(t, n, i, s)
|
|
7815
7833
|
);
|
|
7816
7834
|
break;
|
|
7817
|
-
case
|
|
7835
|
+
case F.Text:
|
|
7818
7836
|
a.push(
|
|
7819
|
-
...await
|
|
7837
|
+
...await Ln(t, n, i, s)
|
|
7820
7838
|
);
|
|
7821
7839
|
break;
|
|
7822
7840
|
}
|
|
7823
7841
|
}
|
|
7824
7842
|
for (const i of e.steps)
|
|
7825
|
-
i.type !==
|
|
7826
|
-
...await
|
|
7843
|
+
i.type !== F.SilentIllustration && i.type !== F.ProductOverlay || zn(i, n) && a.push(
|
|
7844
|
+
...await Tn(t, i, A)
|
|
7827
7845
|
);
|
|
7828
7846
|
return a;
|
|
7829
7847
|
};
|
|
@@ -7834,7 +7852,7 @@ class Me {
|
|
|
7834
7852
|
e.forEach(
|
|
7835
7853
|
(A) => t.set(
|
|
7836
7854
|
A.id,
|
|
7837
|
-
new
|
|
7855
|
+
new Wn(A.id, A.name, this, { width: A.width, height: A.height })
|
|
7838
7856
|
)
|
|
7839
7857
|
), this.layouts = t;
|
|
7840
7858
|
}
|
|
@@ -7848,15 +7866,15 @@ class Me {
|
|
|
7848
7866
|
return this.layouts;
|
|
7849
7867
|
}
|
|
7850
7868
|
}
|
|
7851
|
-
const
|
|
7869
|
+
const jn = () => new Promise((c, e) => {
|
|
7852
7870
|
try {
|
|
7853
7871
|
const A = He().getContext("webgl2");
|
|
7854
7872
|
c(!!A);
|
|
7855
7873
|
} catch {
|
|
7856
7874
|
c(!1);
|
|
7857
7875
|
}
|
|
7858
|
-
}),
|
|
7859
|
-
class
|
|
7876
|
+
}), Vn = jn();
|
|
7877
|
+
class Wn {
|
|
7860
7878
|
constructor(e, t, A, a) {
|
|
7861
7879
|
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new oA(2), this.id = e, this.name = t, this.service = A, this.panelSize = a;
|
|
7862
7880
|
}
|
|
@@ -7912,10 +7930,10 @@ class jn {
|
|
|
7912
7930
|
return;
|
|
7913
7931
|
}
|
|
7914
7932
|
this.renderQueue.enqueue(
|
|
7915
|
-
new
|
|
7933
|
+
new Xn(
|
|
7916
7934
|
this.getID(),
|
|
7917
7935
|
A,
|
|
7918
|
-
await
|
|
7936
|
+
await Vn,
|
|
7919
7937
|
() => {
|
|
7920
7938
|
this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
|
|
7921
7939
|
},
|
|
@@ -7924,7 +7942,7 @@ class jn {
|
|
|
7924
7942
|
);
|
|
7925
7943
|
}
|
|
7926
7944
|
}
|
|
7927
|
-
class
|
|
7945
|
+
class Xn extends sA {
|
|
7928
7946
|
// TODO: Do we need to pass this whole array in?
|
|
7929
7947
|
constructor(e, t, A, a, n) {
|
|
7930
7948
|
super(), this.layoutId = e, this.ctx = t, this.nonPOTSupport = A, this.onRender = a, this.layouts = n;
|
|
@@ -7992,26 +8010,26 @@ class Vn extends sA {
|
|
|
7992
8010
|
l.resize(o, r), await l.render(), this.onRender();
|
|
7993
8011
|
}
|
|
7994
8012
|
}
|
|
7995
|
-
const
|
|
8013
|
+
const os = (c, e) => {
|
|
7996
8014
|
const t = [];
|
|
7997
8015
|
return c.forEach((A) => {
|
|
7998
8016
|
const a = e.steps.find((n) => n.stepName === A.stepName);
|
|
7999
|
-
(a == null ? void 0 : a.type) ===
|
|
8017
|
+
(a == null ? void 0 : a.type) === F.Text && A.stepAspectType === "Text" && t.push({
|
|
8000
8018
|
name: a.stepName,
|
|
8001
8019
|
data: {
|
|
8002
8020
|
text: A.value
|
|
8003
8021
|
}
|
|
8004
8022
|
});
|
|
8005
8023
|
}), t;
|
|
8006
|
-
},
|
|
8024
|
+
}, rs = async (c, e, t, A) => {
|
|
8007
8025
|
let a = {
|
|
8008
8026
|
serializableWorkflow: { steps: [] },
|
|
8009
8027
|
layouts: {}
|
|
8010
8028
|
};
|
|
8011
8029
|
a = new G(t.map((o) => new XA(o))).apply(a);
|
|
8012
|
-
const i = await
|
|
8030
|
+
const i = await Kn(c, e, t, A);
|
|
8013
8031
|
return new G(i).apply(a);
|
|
8014
|
-
},
|
|
8032
|
+
}, qn = f`
|
|
8015
8033
|
${ce}
|
|
8016
8034
|
fragment ProductFields on Product {
|
|
8017
8035
|
id
|
|
@@ -8056,7 +8074,7 @@ const is = (c, e) => {
|
|
|
8056
8074
|
}
|
|
8057
8075
|
}
|
|
8058
8076
|
`, DA = f`
|
|
8059
|
-
${
|
|
8077
|
+
${qn}
|
|
8060
8078
|
fragment ProductCollectionProductFields on ProductCollectionProduct {
|
|
8061
8079
|
id
|
|
8062
8080
|
productId
|
|
@@ -8110,7 +8128,7 @@ const is = (c, e) => {
|
|
|
8110
8128
|
}
|
|
8111
8129
|
}
|
|
8112
8130
|
}
|
|
8113
|
-
`,
|
|
8131
|
+
`, Zn = (c) => f`
|
|
8114
8132
|
${IA(c)}
|
|
8115
8133
|
query GetBundle($id: String!) {
|
|
8116
8134
|
bundles(ids: [$id]) {
|
|
@@ -8132,7 +8150,7 @@ const is = (c, e) => {
|
|
|
8132
8150
|
}
|
|
8133
8151
|
}
|
|
8134
8152
|
}
|
|
8135
|
-
`,
|
|
8153
|
+
`, $n = f`
|
|
8136
8154
|
query GetBundleStakeholders($id: String!) {
|
|
8137
8155
|
bundles(ids: [$id]) {
|
|
8138
8156
|
id
|
|
@@ -8152,7 +8170,7 @@ const is = (c, e) => {
|
|
|
8152
8170
|
}
|
|
8153
8171
|
}
|
|
8154
8172
|
}
|
|
8155
|
-
`,
|
|
8173
|
+
`, _n = f`
|
|
8156
8174
|
query GetBundlesForCustomer($id: String!) {
|
|
8157
8175
|
customers(ids: [$id]) {
|
|
8158
8176
|
bundleStakeholders {
|
|
@@ -8173,7 +8191,7 @@ const is = (c, e) => {
|
|
|
8173
8191
|
}
|
|
8174
8192
|
}
|
|
8175
8193
|
}
|
|
8176
|
-
`,
|
|
8194
|
+
`, ei = f`
|
|
8177
8195
|
${DA}
|
|
8178
8196
|
query GetProductCollectionProducts($id: String!) {
|
|
8179
8197
|
productCollections(ids: [$id]) {
|
|
@@ -8183,7 +8201,7 @@ const is = (c, e) => {
|
|
|
8183
8201
|
}
|
|
8184
8202
|
}
|
|
8185
8203
|
}
|
|
8186
|
-
`,
|
|
8204
|
+
`, ti = (c) => f`
|
|
8187
8205
|
${IA(c)}
|
|
8188
8206
|
mutation CreateBundle($collectionId: String, $initialMetadata: [MetadataInput!]) {
|
|
8189
8207
|
bundleCreate(collectionId: $collectionId, metadata: $initialMetadata) {
|
|
@@ -8202,25 +8220,25 @@ const is = (c, e) => {
|
|
|
8202
8220
|
}
|
|
8203
8221
|
}
|
|
8204
8222
|
}
|
|
8205
|
-
`,
|
|
8223
|
+
`, Ai = f`
|
|
8206
8224
|
mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
|
|
8207
8225
|
bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
|
|
8208
8226
|
id
|
|
8209
8227
|
}
|
|
8210
8228
|
}
|
|
8211
|
-
`,
|
|
8229
|
+
`, ai = f`
|
|
8212
8230
|
mutation BundleAddTransaction($id: String!, $transactionId: String!) {
|
|
8213
8231
|
bundleAddTransaction(id: $id, transactionId: $transactionId) {
|
|
8214
8232
|
id
|
|
8215
8233
|
}
|
|
8216
8234
|
}
|
|
8217
|
-
`,
|
|
8235
|
+
`, ni = f`
|
|
8218
8236
|
mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
|
|
8219
8237
|
bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
|
|
8220
8238
|
id
|
|
8221
8239
|
}
|
|
8222
8240
|
}
|
|
8223
|
-
`,
|
|
8241
|
+
`, ii = f`
|
|
8224
8242
|
mutation BundleRemoveTransaction(
|
|
8225
8243
|
$id: String!
|
|
8226
8244
|
$transactionId: String!
|
|
@@ -8235,7 +8253,7 @@ const is = (c, e) => {
|
|
|
8235
8253
|
id
|
|
8236
8254
|
}
|
|
8237
8255
|
}
|
|
8238
|
-
`,
|
|
8256
|
+
`, si = f`
|
|
8239
8257
|
mutation BundleRemoveTransactions(
|
|
8240
8258
|
$id: String!
|
|
8241
8259
|
$transactionIds: [String!]!
|
|
@@ -8250,7 +8268,7 @@ const is = (c, e) => {
|
|
|
8250
8268
|
id
|
|
8251
8269
|
}
|
|
8252
8270
|
}
|
|
8253
|
-
`,
|
|
8271
|
+
`, oi = f`
|
|
8254
8272
|
mutation BundleAddStakeholder($id: String!, $details: CustomerDetailsInput!, $type: String!) {
|
|
8255
8273
|
bundleAddStakeholder(id: $id, details: $details, type: $type) {
|
|
8256
8274
|
id
|
|
@@ -8270,13 +8288,13 @@ const is = (c, e) => {
|
|
|
8270
8288
|
}
|
|
8271
8289
|
}
|
|
8272
8290
|
}
|
|
8273
|
-
`,
|
|
8291
|
+
`, ri = f`
|
|
8274
8292
|
mutation BundleAddStakeholder($id: String!, $emailAddress: String!) {
|
|
8275
8293
|
bundleRemoveStakeholder(id: $id, emailAddress: $emailAddress) {
|
|
8276
8294
|
id
|
|
8277
8295
|
}
|
|
8278
8296
|
}
|
|
8279
|
-
`,
|
|
8297
|
+
`, ci = f`
|
|
8280
8298
|
mutation BundleUpdateStakeholders($id: String!, $input: [BundleStakeholderInput!]!) {
|
|
8281
8299
|
bundleUpdateStakeholders(id: $id, input: $input) {
|
|
8282
8300
|
id
|
|
@@ -8296,14 +8314,14 @@ const is = (c, e) => {
|
|
|
8296
8314
|
}
|
|
8297
8315
|
}
|
|
8298
8316
|
}
|
|
8299
|
-
`,
|
|
8317
|
+
`, gi = f`
|
|
8300
8318
|
mutation BundleUpdateTransactionOrder($id: String!, $transactionIds: [String!]!) {
|
|
8301
8319
|
bundleUpdateTransactionOrder(id: $id, transactionIds: $transactionIds) {
|
|
8302
8320
|
id
|
|
8303
8321
|
}
|
|
8304
8322
|
}
|
|
8305
8323
|
`;
|
|
8306
|
-
class
|
|
8324
|
+
class li {
|
|
8307
8325
|
constructor(e) {
|
|
8308
8326
|
this.handleCache = {}, this.bundle = e;
|
|
8309
8327
|
}
|
|
@@ -8347,13 +8365,13 @@ class ci {
|
|
|
8347
8365
|
async createHandle(e) {
|
|
8348
8366
|
switch (e.type) {
|
|
8349
8367
|
case we.FileUpload:
|
|
8350
|
-
return new
|
|
8368
|
+
return new Bi(this.bundle, e);
|
|
8351
8369
|
case we.Option: {
|
|
8352
8370
|
const t = e.entityId ? await V.getOption(e.entityId) : void 0;
|
|
8353
|
-
return (t == null ? void 0 : t.type) === "Color" ? new
|
|
8371
|
+
return (t == null ? void 0 : t.type) === "Color" ? new di(this.bundle, e, t) : new fA(this.bundle, e, t);
|
|
8354
8372
|
}
|
|
8355
8373
|
case we.Text:
|
|
8356
|
-
return new
|
|
8374
|
+
return new Ci(this.bundle, e);
|
|
8357
8375
|
}
|
|
8358
8376
|
}
|
|
8359
8377
|
}
|
|
@@ -8412,7 +8430,7 @@ class mt {
|
|
|
8412
8430
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
|
8413
8431
|
}
|
|
8414
8432
|
}
|
|
8415
|
-
class
|
|
8433
|
+
class Bi extends mt {
|
|
8416
8434
|
constructor(e, t) {
|
|
8417
8435
|
super(e, t);
|
|
8418
8436
|
}
|
|
@@ -8549,7 +8567,7 @@ class gi extends mt {
|
|
|
8549
8567
|
);
|
|
8550
8568
|
}
|
|
8551
8569
|
}
|
|
8552
|
-
class
|
|
8570
|
+
class Ci extends mt {
|
|
8553
8571
|
constructor(e, t) {
|
|
8554
8572
|
super(e, t);
|
|
8555
8573
|
}
|
|
@@ -8644,7 +8662,7 @@ class fA extends mt {
|
|
|
8644
8662
|
await Promise.all(a);
|
|
8645
8663
|
}
|
|
8646
8664
|
}
|
|
8647
|
-
class
|
|
8665
|
+
class di extends fA {
|
|
8648
8666
|
constructor(e, t, A) {
|
|
8649
8667
|
super(e, t, A);
|
|
8650
8668
|
}
|
|
@@ -8674,7 +8692,7 @@ const pt = f`
|
|
|
8674
8692
|
}
|
|
8675
8693
|
}
|
|
8676
8694
|
}
|
|
8677
|
-
`,
|
|
8695
|
+
`, wi = f`
|
|
8678
8696
|
${pt}
|
|
8679
8697
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
8680
8698
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
@@ -8684,7 +8702,7 @@ const pt = f`
|
|
|
8684
8702
|
}
|
|
8685
8703
|
}
|
|
8686
8704
|
}
|
|
8687
|
-
`,
|
|
8705
|
+
`, Ei = f`
|
|
8688
8706
|
${pt}
|
|
8689
8707
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
8690
8708
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
@@ -8694,7 +8712,7 @@ const pt = f`
|
|
|
8694
8712
|
}
|
|
8695
8713
|
}
|
|
8696
8714
|
}
|
|
8697
|
-
`,
|
|
8715
|
+
`, hi = f`
|
|
8698
8716
|
${pt}
|
|
8699
8717
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
8700
8718
|
globalPropertyState(bundleId: $bundleId) {
|
|
@@ -8705,7 +8723,7 @@ const pt = f`
|
|
|
8705
8723
|
}
|
|
8706
8724
|
}
|
|
8707
8725
|
`;
|
|
8708
|
-
class
|
|
8726
|
+
class ui {
|
|
8709
8727
|
constructor(e, t, A, a, n) {
|
|
8710
8728
|
this.bundleId = e, this.bundleOwnerId = t, this.configuration = A, this.bundleOptions = n, this.initPromise = this.getOrCreateGlobalPropertyState().then((i) => {
|
|
8711
8729
|
this.globalPropertyState = i;
|
|
@@ -8769,7 +8787,7 @@ class Ei {
|
|
|
8769
8787
|
if (!this.globalPropertyState)
|
|
8770
8788
|
throw new Error("Global property state not initialized");
|
|
8771
8789
|
const e = await x.getShadowGraphqlClient().mutate({
|
|
8772
|
-
mutation:
|
|
8790
|
+
mutation: Ei,
|
|
8773
8791
|
variables: {
|
|
8774
8792
|
id: this.globalPropertyState.id,
|
|
8775
8793
|
aspects: this.globalPropertyState.aspects.map((a) => {
|
|
@@ -8804,7 +8822,7 @@ class Ei {
|
|
|
8804
8822
|
async getOrCreateGlobalPropertyState() {
|
|
8805
8823
|
var A, a, n;
|
|
8806
8824
|
const e = await x.getShadowGraphqlClient().query({
|
|
8807
|
-
query:
|
|
8825
|
+
query: hi,
|
|
8808
8826
|
errorPolicy: "all",
|
|
8809
8827
|
fetchPolicy: "no-cache",
|
|
8810
8828
|
variables: {
|
|
@@ -8820,7 +8838,7 @@ class Ei {
|
|
|
8820
8838
|
if (e.data.globalPropertyState && e.data.globalPropertyState.id)
|
|
8821
8839
|
return e.data.globalPropertyState;
|
|
8822
8840
|
const t = await x.getShadowGraphqlClient().mutate({
|
|
8823
|
-
mutation:
|
|
8841
|
+
mutation: wi,
|
|
8824
8842
|
variables: {
|
|
8825
8843
|
bundleId: this.bundleId
|
|
8826
8844
|
},
|
|
@@ -8836,7 +8854,7 @@ class Ei {
|
|
|
8836
8854
|
throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
|
|
8837
8855
|
}
|
|
8838
8856
|
}
|
|
8839
|
-
class
|
|
8857
|
+
class Qi {
|
|
8840
8858
|
constructor(e) {
|
|
8841
8859
|
this.setState(e);
|
|
8842
8860
|
}
|
|
@@ -8919,7 +8937,7 @@ class hi {
|
|
|
8919
8937
|
};
|
|
8920
8938
|
}
|
|
8921
8939
|
}
|
|
8922
|
-
class
|
|
8940
|
+
class mi {
|
|
8923
8941
|
constructor(e) {
|
|
8924
8942
|
this.collection = e;
|
|
8925
8943
|
}
|
|
@@ -8950,7 +8968,7 @@ class ui {
|
|
|
8950
8968
|
if (this.collection.productCollectionProducts)
|
|
8951
8969
|
return this.collection.productCollectionProducts.map((t) => new qe(t));
|
|
8952
8970
|
const e = await x.getShadowGraphqlClient().query({
|
|
8953
|
-
query:
|
|
8971
|
+
query: ei,
|
|
8954
8972
|
variables: {
|
|
8955
8973
|
id: this.getId()
|
|
8956
8974
|
},
|
|
@@ -8961,7 +8979,7 @@ class ui {
|
|
|
8961
8979
|
}
|
|
8962
8980
|
getTransformCollection() {
|
|
8963
8981
|
if (this.collection.transformCollection)
|
|
8964
|
-
return new
|
|
8982
|
+
return new pi(this.collection.transformCollection);
|
|
8965
8983
|
}
|
|
8966
8984
|
/**
|
|
8967
8985
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -9113,7 +9131,7 @@ class Ee {
|
|
|
9113
9131
|
return this.workflow.imageUrl;
|
|
9114
9132
|
}
|
|
9115
9133
|
}
|
|
9116
|
-
class
|
|
9134
|
+
class pi {
|
|
9117
9135
|
constructor(e) {
|
|
9118
9136
|
this.collection = e;
|
|
9119
9137
|
}
|
|
@@ -9133,10 +9151,10 @@ class Qi {
|
|
|
9133
9151
|
* @returns The transforms in this collection.
|
|
9134
9152
|
*/
|
|
9135
9153
|
getTransforms() {
|
|
9136
|
-
return this.collection.transforms.map((e) => new
|
|
9154
|
+
return this.collection.transforms.map((e) => new Di(e));
|
|
9137
9155
|
}
|
|
9138
9156
|
}
|
|
9139
|
-
class
|
|
9157
|
+
class Di {
|
|
9140
9158
|
constructor(e) {
|
|
9141
9159
|
this.transform = e;
|
|
9142
9160
|
}
|
|
@@ -9166,13 +9184,13 @@ class mi {
|
|
|
9166
9184
|
class Ut {
|
|
9167
9185
|
constructor(e, t, A, a, n, i) {
|
|
9168
9186
|
var s, o, r;
|
|
9169
|
-
this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = e, this.id = t.id, this.name = t.name || "", this.ownerId = n, this.metadata = new Map(((s = t.metadata) == null ? void 0 : s.map((g) => [g.key, g.value])) || []), this.productCollection = t.productCollection, this.bundleStateManager = new
|
|
9187
|
+
this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = e, this.id = t.id, this.name = t.name || "", this.ownerId = n, this.metadata = new Map(((s = t.metadata) == null ? void 0 : s.map((g) => [g.key, g.value])) || []), this.productCollection = t.productCollection, this.bundleStateManager = new Qi(t.bundleStateData), this.globalPropertyStateManager = new ui(
|
|
9170
9188
|
this.id,
|
|
9171
9189
|
this.ownerId,
|
|
9172
9190
|
(o = this.productCollection) == null ? void 0 : o.globalPropertyConfiguration,
|
|
9173
9191
|
this.checkConditionalHandlesChanged.bind(this),
|
|
9174
9192
|
i
|
|
9175
|
-
), this.globalPropertyHandleService = new
|
|
9193
|
+
), this.globalPropertyHandleService = new li(this), this.setPreviewService(A), this.initializationPromise = this.loadExistingWorkflowExperiences(
|
|
9176
9194
|
((r = t.transactions) == null ? void 0 : r.map((g) => g.id)) || [],
|
|
9177
9195
|
a
|
|
9178
9196
|
);
|
|
@@ -9238,7 +9256,7 @@ class Ut {
|
|
|
9238
9256
|
return this.workflowExperiences.map((e) => e.getTotalPriceSubunits()).reduce((e, t) => e + t, 0);
|
|
9239
9257
|
}
|
|
9240
9258
|
getProductCollection() {
|
|
9241
|
-
return this.productCollection ? new
|
|
9259
|
+
return this.productCollection ? new mi(this.productCollection) : void 0;
|
|
9242
9260
|
}
|
|
9243
9261
|
async addWorkflowExperience(e) {
|
|
9244
9262
|
e.setBundle(this), await this.appendWorkflowExperience(e), await this.injectExperienceIntoPreviewService(e);
|
|
@@ -9255,7 +9273,7 @@ class Ut {
|
|
|
9255
9273
|
);
|
|
9256
9274
|
const a = Y.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), n = t.map((i) => a.get(i));
|
|
9257
9275
|
await x.getShadowGraphqlClient().mutate({
|
|
9258
|
-
mutation:
|
|
9276
|
+
mutation: ni,
|
|
9259
9277
|
variables: {
|
|
9260
9278
|
id: this.id,
|
|
9261
9279
|
transactionIds: t,
|
|
@@ -9284,7 +9302,7 @@ class Ut {
|
|
|
9284
9302
|
throw new Error("Unable to add transaction to bundle - Already Exists!");
|
|
9285
9303
|
const i = (Y.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(A);
|
|
9286
9304
|
await x.getShadowGraphqlClient().mutate({
|
|
9287
|
-
mutation:
|
|
9305
|
+
mutation: ai,
|
|
9288
9306
|
variables: {
|
|
9289
9307
|
id: this.id,
|
|
9290
9308
|
transactionId: A
|
|
@@ -9317,7 +9335,7 @@ class Ut {
|
|
|
9317
9335
|
(n) => n.getWorkflowManager().getTransaction().id === t.id
|
|
9318
9336
|
);
|
|
9319
9337
|
a.setBundle(void 0), this.previewService && a.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(t.id), await x.getShadowGraphqlClient().mutate({
|
|
9320
|
-
mutation:
|
|
9338
|
+
mutation: ii,
|
|
9321
9339
|
variables: {
|
|
9322
9340
|
id: this.id,
|
|
9323
9341
|
transactionId: t.id,
|
|
@@ -9349,7 +9367,7 @@ class Ut {
|
|
|
9349
9367
|
A.forEach((a) => a.setBundle(void 0)), [...this.workflowExperiences, ...A].forEach(
|
|
9350
9368
|
(a) => a.checkForPriceBreakChanges()
|
|
9351
9369
|
), this.previewService && A.forEach((a) => a.getWorkflowManager().ejectFromPreviewService()), e.forEach((a) => this.bundleStateManager.removeStateForTransaction(a.id)), await x.getShadowGraphqlClient().mutate({
|
|
9352
|
-
mutation:
|
|
9370
|
+
mutation: si,
|
|
9353
9371
|
variables: {
|
|
9354
9372
|
id: this.id,
|
|
9355
9373
|
transactionIds: e.map((a) => a.id),
|
|
@@ -9410,7 +9428,7 @@ class Ut {
|
|
|
9410
9428
|
async addStakeholder(e, t) {
|
|
9411
9429
|
var n;
|
|
9412
9430
|
const A = await x.getShadowGraphqlClient().mutate({
|
|
9413
|
-
mutation:
|
|
9431
|
+
mutation: oi,
|
|
9414
9432
|
variables: {
|
|
9415
9433
|
id: this.id,
|
|
9416
9434
|
details: e,
|
|
@@ -9428,7 +9446,7 @@ class Ut {
|
|
|
9428
9446
|
async removeStakeholder(e) {
|
|
9429
9447
|
var A;
|
|
9430
9448
|
if (!((A = (await x.getShadowGraphqlClient().mutate({
|
|
9431
|
-
mutation:
|
|
9449
|
+
mutation: ri,
|
|
9432
9450
|
variables: {
|
|
9433
9451
|
id: this.id,
|
|
9434
9452
|
emailAddress: e
|
|
@@ -9442,7 +9460,7 @@ class Ut {
|
|
|
9442
9460
|
async updateStakeholders(e) {
|
|
9443
9461
|
var a;
|
|
9444
9462
|
const t = await x.getShadowGraphqlClient().mutate({
|
|
9445
|
-
mutation:
|
|
9463
|
+
mutation: ci,
|
|
9446
9464
|
variables: {
|
|
9447
9465
|
id: this.id,
|
|
9448
9466
|
input: e
|
|
@@ -9458,7 +9476,7 @@ class Ut {
|
|
|
9458
9476
|
}
|
|
9459
9477
|
async getAllStakeholders() {
|
|
9460
9478
|
const e = await x.getShadowGraphqlClient().query({
|
|
9461
|
-
query:
|
|
9479
|
+
query: $n,
|
|
9462
9480
|
errorPolicy: "all",
|
|
9463
9481
|
fetchPolicy: "no-cache",
|
|
9464
9482
|
variables: {
|
|
@@ -9479,7 +9497,7 @@ class Ut {
|
|
|
9479
9497
|
});
|
|
9480
9498
|
}
|
|
9481
9499
|
async finish(e, t) {
|
|
9482
|
-
const A = await
|
|
9500
|
+
const A = await xn(
|
|
9483
9501
|
this.workflowExperiences.map((a) => ({
|
|
9484
9502
|
workflowManager: a.getWorkflowManager(),
|
|
9485
9503
|
workflow: a.getWorkflowManager().getWorkflow(),
|
|
@@ -9563,7 +9581,7 @@ class Ut {
|
|
|
9563
9581
|
async updateBundle() {
|
|
9564
9582
|
var t;
|
|
9565
9583
|
if (!((t = (await x.getShadowGraphqlClient().mutate({
|
|
9566
|
-
mutation:
|
|
9584
|
+
mutation: Ai,
|
|
9567
9585
|
variables: {
|
|
9568
9586
|
id: this.id,
|
|
9569
9587
|
name: this.name,
|
|
@@ -9578,7 +9596,7 @@ class Ut {
|
|
|
9578
9596
|
}
|
|
9579
9597
|
async updateTransactionOrder() {
|
|
9580
9598
|
await x.getShadowGraphqlClient().mutate({
|
|
9581
|
-
mutation:
|
|
9599
|
+
mutation: gi,
|
|
9582
9600
|
variables: {
|
|
9583
9601
|
id: this.id,
|
|
9584
9602
|
transactionIds: this.workflowExperiences.map((e) => e.getWorkflowManager().getTransaction().id)
|
|
@@ -9611,14 +9629,14 @@ class Ut {
|
|
|
9611
9629
|
);
|
|
9612
9630
|
}
|
|
9613
9631
|
}
|
|
9614
|
-
const
|
|
9632
|
+
const Ii = f`
|
|
9615
9633
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
9616
9634
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
9617
9635
|
id
|
|
9618
9636
|
}
|
|
9619
9637
|
}
|
|
9620
9638
|
`;
|
|
9621
|
-
class
|
|
9639
|
+
class fi {
|
|
9622
9640
|
/**
|
|
9623
9641
|
*
|
|
9624
9642
|
* @param id
|
|
@@ -9629,7 +9647,7 @@ class Di {
|
|
|
9629
9647
|
async execute(e, t, A) {
|
|
9630
9648
|
var B, l, C;
|
|
9631
9649
|
const n = (l = (B = (await x.getShadowGraphqlClient().mutate({
|
|
9632
|
-
mutation:
|
|
9650
|
+
mutation: Ii,
|
|
9633
9651
|
variables: {
|
|
9634
9652
|
processFlowId: e,
|
|
9635
9653
|
inputs: [...t.map((d) => d.getValueForTransmission())]
|
|
@@ -9671,7 +9689,7 @@ class Di {
|
|
|
9671
9689
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
9672
9690
|
);
|
|
9673
9691
|
if (d.completedAt) {
|
|
9674
|
-
s = !0, g = new
|
|
9692
|
+
s = !0, g = new Fi(d);
|
|
9675
9693
|
break;
|
|
9676
9694
|
}
|
|
9677
9695
|
o += 1;
|
|
@@ -9685,7 +9703,7 @@ class Di {
|
|
|
9685
9703
|
return Promise.resolve(g);
|
|
9686
9704
|
}
|
|
9687
9705
|
}
|
|
9688
|
-
class
|
|
9706
|
+
class Fi {
|
|
9689
9707
|
constructor(e) {
|
|
9690
9708
|
this.execution = e;
|
|
9691
9709
|
}
|
|
@@ -9770,8 +9788,8 @@ class Dt {
|
|
|
9770
9788
|
return e.startsWith("[") ? JSON.stringify(JSON.parse(e)) : e;
|
|
9771
9789
|
}
|
|
9772
9790
|
}
|
|
9773
|
-
var
|
|
9774
|
-
class
|
|
9791
|
+
var yi = /* @__PURE__ */ ((c) => (c.Transaction = "Transaction", c.Bundle = "Bundle", c.Product = "Product", c.Variant = "Variant", c.Option = "Option", c.LineItem = "LineItem", c.Asset = "Asset", c))(yi || {});
|
|
9792
|
+
class cs extends Dt {
|
|
9775
9793
|
constructor(e) {
|
|
9776
9794
|
super(`"${e}"`);
|
|
9777
9795
|
}
|
|
@@ -9786,7 +9804,7 @@ class FA extends Dt {
|
|
|
9786
9804
|
return e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
|
|
9787
9805
|
}
|
|
9788
9806
|
}
|
|
9789
|
-
class
|
|
9807
|
+
class gs extends Dt {
|
|
9790
9808
|
constructor(e) {
|
|
9791
9809
|
super(`[${e.map((t) => t.getRaw()).join(",")}]`);
|
|
9792
9810
|
}
|
|
@@ -9833,7 +9851,7 @@ class Gt {
|
|
|
9833
9851
|
return e.sort((t, A) => (t.index ?? 0) - (A.index ?? 0)).map((t) => new Ee(t));
|
|
9834
9852
|
}
|
|
9835
9853
|
}
|
|
9836
|
-
const
|
|
9854
|
+
const Mi = f`
|
|
9837
9855
|
fragment RegionFields on Region {
|
|
9838
9856
|
width
|
|
9839
9857
|
top
|
|
@@ -9851,7 +9869,7 @@ const Fi = f`
|
|
|
9851
9869
|
height
|
|
9852
9870
|
}
|
|
9853
9871
|
}
|
|
9854
|
-
`,
|
|
9872
|
+
`, Si = f`
|
|
9855
9873
|
fragment LookAtAnimationFields on LookAtAnimation {
|
|
9856
9874
|
latDeg
|
|
9857
9875
|
lonDeg
|
|
@@ -9862,7 +9880,7 @@ const Fi = f`
|
|
|
9862
9880
|
z
|
|
9863
9881
|
}
|
|
9864
9882
|
}
|
|
9865
|
-
`,
|
|
9883
|
+
`, Yi = f`
|
|
9866
9884
|
fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
|
|
9867
9885
|
antiAliasing {
|
|
9868
9886
|
samples
|
|
@@ -9946,21 +9964,21 @@ const Fi = f`
|
|
|
9946
9964
|
weight
|
|
9947
9965
|
}
|
|
9948
9966
|
}
|
|
9949
|
-
`,
|
|
9967
|
+
`, Pi = f`
|
|
9950
9968
|
fragment ModelAnimationFields on ModelAnimation {
|
|
9951
9969
|
from
|
|
9952
9970
|
to
|
|
9953
9971
|
loop
|
|
9954
9972
|
name
|
|
9955
9973
|
}
|
|
9956
|
-
`,
|
|
9974
|
+
`, xi = (c) => f`
|
|
9957
9975
|
${pe(c)}
|
|
9958
9976
|
${Ct}
|
|
9959
9977
|
${aA}
|
|
9960
|
-
${Fi}
|
|
9961
|
-
${yi}
|
|
9962
9978
|
${Mi}
|
|
9963
9979
|
${Si}
|
|
9980
|
+
${Yi}
|
|
9981
|
+
${Pi}
|
|
9964
9982
|
query GetWorkflows($ids: [String!]!) {
|
|
9965
9983
|
workflows(ids: $ids) {
|
|
9966
9984
|
partner {
|
|
@@ -10347,7 +10365,7 @@ const Fi = f`
|
|
|
10347
10365
|
}
|
|
10348
10366
|
}
|
|
10349
10367
|
}
|
|
10350
|
-
`,
|
|
10368
|
+
`, Ni = f`
|
|
10351
10369
|
query GetTransactionForPartner($id: String!) {
|
|
10352
10370
|
transactions(ids: [$id]) {
|
|
10353
10371
|
id
|
|
@@ -10364,7 +10382,7 @@ const Fi = f`
|
|
|
10364
10382
|
}
|
|
10365
10383
|
}
|
|
10366
10384
|
}
|
|
10367
|
-
`,
|
|
10385
|
+
`, Ri = f`
|
|
10368
10386
|
query GetCurrentIntegration {
|
|
10369
10387
|
currentIntegration {
|
|
10370
10388
|
id
|
|
@@ -10383,7 +10401,7 @@ const Fi = f`
|
|
|
10383
10401
|
}
|
|
10384
10402
|
}
|
|
10385
10403
|
}
|
|
10386
|
-
`,
|
|
10404
|
+
`, Hi = f`
|
|
10387
10405
|
${pe(!1)}
|
|
10388
10406
|
query GetWorkflowForTheme($id: String!) {
|
|
10389
10407
|
workflow(id: $id) {
|
|
@@ -10405,7 +10423,7 @@ const Fi = f`
|
|
|
10405
10423
|
}
|
|
10406
10424
|
}
|
|
10407
10425
|
}
|
|
10408
|
-
`,
|
|
10426
|
+
`, vi = f`
|
|
10409
10427
|
query GetCustomer($emailAddress: String!) {
|
|
10410
10428
|
customer(emailAddress: $emailAddress) {
|
|
10411
10429
|
id
|
|
@@ -10415,7 +10433,7 @@ const Fi = f`
|
|
|
10415
10433
|
}
|
|
10416
10434
|
}
|
|
10417
10435
|
}
|
|
10418
|
-
`,
|
|
10436
|
+
`, Ui = f`
|
|
10419
10437
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
10420
10438
|
customerCreate(details: $details) {
|
|
10421
10439
|
id
|
|
@@ -10425,7 +10443,7 @@ const Fi = f`
|
|
|
10425
10443
|
}
|
|
10426
10444
|
}
|
|
10427
10445
|
}
|
|
10428
|
-
`,
|
|
10446
|
+
`, Gi = f`
|
|
10429
10447
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
10430
10448
|
customerAuthenticate(loginToken: $loginToken) {
|
|
10431
10449
|
id
|
|
@@ -10452,11 +10470,11 @@ const Fi = f`
|
|
|
10452
10470
|
}
|
|
10453
10471
|
}
|
|
10454
10472
|
}
|
|
10455
|
-
`,
|
|
10473
|
+
`, ki = f`
|
|
10456
10474
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
10457
10475
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
10458
10476
|
}
|
|
10459
|
-
`,
|
|
10477
|
+
`, bi = f`
|
|
10460
10478
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
10461
10479
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
10462
10480
|
id
|
|
@@ -10500,10 +10518,10 @@ const Fi = f`
|
|
|
10500
10518
|
(e = i.fontData) != null && e.assetUrl && await ct(i.fontData.assetUrl);
|
|
10501
10519
|
}
|
|
10502
10520
|
}
|
|
10503
|
-
},
|
|
10521
|
+
}, Ji = async (c, e) => {
|
|
10504
10522
|
var a;
|
|
10505
10523
|
const t = await x.getShadowGraphqlClient().query({
|
|
10506
|
-
query:
|
|
10524
|
+
query: xi(((a = e == null ? void 0 : e.assets) == null ? void 0 : a.metadata) || !1),
|
|
10507
10525
|
errorPolicy: "all",
|
|
10508
10526
|
fetchPolicy: "no-cache",
|
|
10509
10527
|
variables: {
|
|
@@ -10520,7 +10538,7 @@ const Fi = f`
|
|
|
10520
10538
|
}), Qe.set({ id: i.option.id }, Promise.resolve(i.option)));
|
|
10521
10539
|
}), n.finalizeStepConfig || (n.finalizeStepConfig = {}), n.finalizeStepConfig.termsMarkdown = n.partner.termsMarkdown;
|
|
10522
10540
|
}), A;
|
|
10523
|
-
},
|
|
10541
|
+
}, Oi = async (c, e) => {
|
|
10524
10542
|
const A = (await e).find((a) => a.id === c);
|
|
10525
10543
|
if (!A)
|
|
10526
10544
|
throw new Error(`Workflow not found: ${c}`);
|
|
@@ -10529,11 +10547,11 @@ const Fi = f`
|
|
|
10529
10547
|
const t = c.map((s) => Qe.get({ id: s, options: e })), A = c.filter((s, o) => t[o] === void 0);
|
|
10530
10548
|
if (A.length === 0)
|
|
10531
10549
|
return Promise.all(t);
|
|
10532
|
-
const a =
|
|
10533
|
-
(s) => Qe.set({ id: s, options: e },
|
|
10550
|
+
const a = Ji(A, e), n = A.map(
|
|
10551
|
+
(s) => Qe.set({ id: s, options: e }, Oi(s, a))
|
|
10534
10552
|
), i = t.filter((s) => s !== void 0);
|
|
10535
10553
|
return await Promise.all(i.concat(n));
|
|
10536
|
-
}, Ye = async (c, e) => (await yA([c], e))[0],
|
|
10554
|
+
}, Ye = async (c, e) => (await yA([c], e))[0], Ti = (c) => c.sort((e, t) => e.index - t.index).map((e) => ({
|
|
10537
10555
|
id: J(),
|
|
10538
10556
|
panelId: e.name,
|
|
10539
10557
|
name: e.name,
|
|
@@ -10548,9 +10566,9 @@ const Fi = f`
|
|
|
10548
10566
|
editableArea: e.editableArea
|
|
10549
10567
|
})), Ze = (c, e) => {
|
|
10550
10568
|
const t = c.workflowState, A = t ? JSON.parse(t) : void 0;
|
|
10551
|
-
return A ? Object.values(A.layouts).map((a) => a.layout) :
|
|
10569
|
+
return A ? Object.values(A.layouts).map((a) => a.layout) : Ti(e.panels);
|
|
10552
10570
|
};
|
|
10553
|
-
class
|
|
10571
|
+
class Li {
|
|
10554
10572
|
constructor(e) {
|
|
10555
10573
|
this.activeIntegration = void 0, this.updateTransactionState = async (t) => {
|
|
10556
10574
|
try {
|
|
@@ -10578,7 +10596,7 @@ class Oi {
|
|
|
10578
10596
|
getFlowService() {
|
|
10579
10597
|
if (!Aa())
|
|
10580
10598
|
throw new Error("Application key required to use Flow Service.");
|
|
10581
|
-
return new
|
|
10599
|
+
return new fi();
|
|
10582
10600
|
}
|
|
10583
10601
|
async getIntegration() {
|
|
10584
10602
|
if (!this.options.applicationKey)
|
|
@@ -10586,7 +10604,7 @@ class Oi {
|
|
|
10586
10604
|
if (this.activeIntegration)
|
|
10587
10605
|
return this.activeIntegration;
|
|
10588
10606
|
const e = async () => (await x.getShadowGraphqlClient().query({
|
|
10589
|
-
query:
|
|
10607
|
+
query: Ri,
|
|
10590
10608
|
errorPolicy: "all",
|
|
10591
10609
|
fetchPolicy: "no-cache"
|
|
10592
10610
|
})).data.currentIntegration;
|
|
@@ -10643,7 +10661,7 @@ class Oi {
|
|
|
10643
10661
|
async authenticateTransactionFromLocalStorage(e) {
|
|
10644
10662
|
var g, B, l, C, d, E;
|
|
10645
10663
|
const t = x.getShadowGraphqlClient(), A = await t.query({
|
|
10646
|
-
query:
|
|
10664
|
+
query: Ni,
|
|
10647
10665
|
errorPolicy: "all",
|
|
10648
10666
|
fetchPolicy: "no-cache",
|
|
10649
10667
|
variables: {
|
|
@@ -10683,7 +10701,7 @@ class Oi {
|
|
|
10683
10701
|
}
|
|
10684
10702
|
}
|
|
10685
10703
|
const r = (await t.query({
|
|
10686
|
-
query:
|
|
10704
|
+
query: Hi,
|
|
10687
10705
|
errorPolicy: "all",
|
|
10688
10706
|
variables: {
|
|
10689
10707
|
id: a.workflowId
|
|
@@ -10719,7 +10737,7 @@ class Oi {
|
|
|
10719
10737
|
var i;
|
|
10720
10738
|
this.customer = void 0;
|
|
10721
10739
|
const t = x.getShadowGraphqlClient(), a = (await t.query({
|
|
10722
|
-
query:
|
|
10740
|
+
query: vi,
|
|
10723
10741
|
errorPolicy: "all",
|
|
10724
10742
|
fetchPolicy: "no-cache",
|
|
10725
10743
|
variables: {
|
|
@@ -10728,7 +10746,7 @@ class Oi {
|
|
|
10728
10746
|
})).data.customer;
|
|
10729
10747
|
if (!a.id) {
|
|
10730
10748
|
const o = (i = (await t.mutate({
|
|
10731
|
-
mutation:
|
|
10749
|
+
mutation: Ui,
|
|
10732
10750
|
errorPolicy: "all",
|
|
10733
10751
|
fetchPolicy: "no-cache",
|
|
10734
10752
|
variables: {
|
|
@@ -10760,7 +10778,7 @@ class Oi {
|
|
|
10760
10778
|
if (!a)
|
|
10761
10779
|
return !1;
|
|
10762
10780
|
const i = (s = (await t.mutate({
|
|
10763
|
-
mutation:
|
|
10781
|
+
mutation: Gi,
|
|
10764
10782
|
errorPolicy: "all",
|
|
10765
10783
|
fetchPolicy: "no-cache",
|
|
10766
10784
|
variables: {
|
|
@@ -10775,7 +10793,7 @@ class Oi {
|
|
|
10775
10793
|
*/
|
|
10776
10794
|
async generateVerificationCode(e) {
|
|
10777
10795
|
await x.getShadowGraphqlClient().mutate({
|
|
10778
|
-
mutation:
|
|
10796
|
+
mutation: ki,
|
|
10779
10797
|
variables: {
|
|
10780
10798
|
emailAddress: e
|
|
10781
10799
|
}
|
|
@@ -10790,7 +10808,7 @@ class Oi {
|
|
|
10790
10808
|
async verifyCode(e, t) {
|
|
10791
10809
|
var n, i;
|
|
10792
10810
|
const a = (n = (await x.getShadowGraphqlClient().mutate({
|
|
10793
|
-
mutation:
|
|
10811
|
+
mutation: bi,
|
|
10794
10812
|
errorPolicy: "all",
|
|
10795
10813
|
fetchPolicy: "no-cache",
|
|
10796
10814
|
variables: {
|
|
@@ -10816,7 +10834,7 @@ class Oi {
|
|
|
10816
10834
|
async getNewBundle(e, t, A) {
|
|
10817
10835
|
var o, r, g;
|
|
10818
10836
|
const n = (g = (await x.getShadowGraphqlClient().mutate({
|
|
10819
|
-
mutation:
|
|
10837
|
+
mutation: ti(((r = (o = A == null ? void 0 : A.graphql) == null ? void 0 : o.productCollection) == null ? void 0 : r.eagerFetchProducts) || !1),
|
|
10820
10838
|
variables: {
|
|
10821
10839
|
collectionId: e,
|
|
10822
10840
|
initialMetadata: t ? Object.entries(t).map((B, l) => ({ key: B[0], value: B[1] })) : void 0
|
|
@@ -10838,15 +10856,15 @@ class Oi {
|
|
|
10838
10856
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
10839
10857
|
*/
|
|
10840
10858
|
async getExistingBundle(e, t, A, a) {
|
|
10841
|
-
var w, u, h, D, m, p, Q, I,
|
|
10842
|
-
const n = Y.getMap("bundleOwnerIds"), i = n == null ? void 0 : n.get(e), o = ((w = Object.entries(localStorage).find(([
|
|
10859
|
+
var w, u, h, D, m, p, Q, I, y;
|
|
10860
|
+
const n = Y.getMap("bundleOwnerIds"), i = n == null ? void 0 : n.get(e), o = ((w = Object.entries(localStorage).find(([M, P]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : w[0]) || "", r = localStorage.getItem(o), g = {};
|
|
10843
10861
|
r && !Qt(r) && (g.Authorization = `Bearer ${r}`);
|
|
10844
10862
|
const B = {
|
|
10845
10863
|
bundleOwnerId: i,
|
|
10846
10864
|
...g,
|
|
10847
10865
|
...(u = a == null ? void 0 : a.graphql) == null ? void 0 : u.additionalHeaders
|
|
10848
10866
|
}, l = await x.getShadowGraphqlClient().query({
|
|
10849
|
-
query:
|
|
10867
|
+
query: Zn(((D = (h = a == null ? void 0 : a.graphql) == null ? void 0 : h.productCollection) == null ? void 0 : D.eagerFetchProducts) || !1),
|
|
10850
10868
|
variables: {
|
|
10851
10869
|
id: e
|
|
10852
10870
|
},
|
|
@@ -10860,7 +10878,7 @@ class Oi {
|
|
|
10860
10878
|
const C = (I = l.data) == null ? void 0 : I.bundles[0], d = Y.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
10861
10879
|
d.set(C.id, C.partner.id), Y.setMap("bundlePartnerIds", d);
|
|
10862
10880
|
const E = new Ut(this, C, t, A, i, {
|
|
10863
|
-
additionalHeaders: (
|
|
10881
|
+
additionalHeaders: (y = a == null ? void 0 : a.graphql) == null ? void 0 : y.additionalHeaders
|
|
10864
10882
|
});
|
|
10865
10883
|
return await E.getInitializationPromise(), E;
|
|
10866
10884
|
}
|
|
@@ -10873,7 +10891,7 @@ class Oi {
|
|
|
10873
10891
|
if (!this.customer)
|
|
10874
10892
|
throw new Error("Customer not authenticated.");
|
|
10875
10893
|
const e = await x.getShadowGraphqlClient().query({
|
|
10876
|
-
query:
|
|
10894
|
+
query: _n,
|
|
10877
10895
|
variables: {
|
|
10878
10896
|
id: this.customer.id
|
|
10879
10897
|
},
|
|
@@ -10926,7 +10944,7 @@ class Oi {
|
|
|
10926
10944
|
const I = a.type === "integration" ? { integrationProductId: a.integrationProductId } : {
|
|
10927
10945
|
externalIntegrationId: a.externalIntegrationId,
|
|
10928
10946
|
externalProductId: a.externalProductId
|
|
10929
|
-
},
|
|
10947
|
+
}, y = await w.mutate({
|
|
10930
10948
|
mutation: Nt,
|
|
10931
10949
|
variables: {
|
|
10932
10950
|
...I,
|
|
@@ -10939,12 +10957,12 @@ class Oi {
|
|
|
10939
10957
|
// TODO: this should be changed to required once the API is updated. Should this also be moved to server.ts?
|
|
10940
10958
|
context: this.options.applicationKey ? { headers: { "X-Application-Key": this.options.applicationKey } } : void 0
|
|
10941
10959
|
});
|
|
10942
|
-
if (!
|
|
10960
|
+
if (!y.data || !y.data.transactionCreate)
|
|
10943
10961
|
throw new v("Failed to create transaction!");
|
|
10944
|
-
const
|
|
10945
|
-
if (!
|
|
10962
|
+
const M = y.data.transactionCreate;
|
|
10963
|
+
if (!M.product)
|
|
10946
10964
|
throw new v("Failed to create transaction, product not available.");
|
|
10947
|
-
return
|
|
10965
|
+
return M;
|
|
10948
10966
|
}, m = Ye(a.workflowId, a == null ? void 0 : a.graphql), [p, Q] = await Promise.all([D(), m]);
|
|
10949
10967
|
return { transaction: p, workflow: Q };
|
|
10950
10968
|
}
|
|
@@ -11004,7 +11022,7 @@ class Oi {
|
|
|
11004
11022
|
if (e.length === 0)
|
|
11005
11023
|
throw new v("No options provided!");
|
|
11006
11024
|
const A = x.getShadowGraphqlClient(), a = async (p) => {
|
|
11007
|
-
var
|
|
11025
|
+
var M, P;
|
|
11008
11026
|
if (p.length === 0)
|
|
11009
11027
|
return [];
|
|
11010
11028
|
const Q = p.map((S) => S.option.transactionId), I = await A.query({
|
|
@@ -11014,12 +11032,12 @@ class Oi {
|
|
|
11014
11032
|
},
|
|
11015
11033
|
errorPolicy: "all",
|
|
11016
11034
|
fetchPolicy: "no-cache"
|
|
11017
|
-
}),
|
|
11018
|
-
if (
|
|
11019
|
-
const S = ((P = (
|
|
11035
|
+
}), y = I.data.transactions;
|
|
11036
|
+
if (y.length !== p.length) {
|
|
11037
|
+
const S = ((P = (M = I.errors) == null ? void 0 : M[0]) == null ? void 0 : P.message) || "Unknown error";
|
|
11020
11038
|
throw new v(`Not all transactions were found: ${S}`);
|
|
11021
11039
|
}
|
|
11022
|
-
return
|
|
11040
|
+
return y.map((S, N) => {
|
|
11023
11041
|
var R;
|
|
11024
11042
|
return {
|
|
11025
11043
|
transaction: S,
|
|
@@ -11029,7 +11047,7 @@ class Oi {
|
|
|
11029
11047
|
};
|
|
11030
11048
|
});
|
|
11031
11049
|
}, n = async (p) => {
|
|
11032
|
-
var
|
|
11050
|
+
var y, M, P;
|
|
11033
11051
|
if (p.length === 0)
|
|
11034
11052
|
return [];
|
|
11035
11053
|
const Q = await A.mutate({
|
|
@@ -11046,9 +11064,9 @@ class Oi {
|
|
|
11046
11064
|
},
|
|
11047
11065
|
errorPolicy: "all",
|
|
11048
11066
|
fetchPolicy: "no-cache"
|
|
11049
|
-
}), I = (
|
|
11067
|
+
}), I = (y = Q.data) == null ? void 0 : y.transactionCreateMany;
|
|
11050
11068
|
if (!I || I.length === 0) {
|
|
11051
|
-
const S = ((P = (
|
|
11069
|
+
const S = ((P = (M = Q.errors) == null ? void 0 : M[0]) == null ? void 0 : P.message) || "Unknown error";
|
|
11052
11070
|
throw new v(`Failed to create transactions: ${S}`);
|
|
11053
11071
|
}
|
|
11054
11072
|
return I.map((S, N) => ({
|
|
@@ -11064,24 +11082,24 @@ class Oi {
|
|
|
11064
11082
|
...g.map(n)
|
|
11065
11083
|
])).flat(), l = [...new Set(B.map((p) => p.workflowId))], C = await yA(l, t), d = new Map(C.map((p) => [p.id, p])), E = Y.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), w = B.map(async (p) => {
|
|
11066
11084
|
var L;
|
|
11067
|
-
const { transaction: Q, workflowId: I, readOnly:
|
|
11085
|
+
const { transaction: Q, workflowId: I, readOnly: y, index: M } = p, P = d.get(I), S = e[M];
|
|
11068
11086
|
!E.get(Q.id) && Q.transactionOwnerId && E.set(Q.id, Q.transactionOwnerId);
|
|
11069
11087
|
const N = E.get(Q.id) || void 0, R = {
|
|
11070
11088
|
product: Q.product,
|
|
11071
11089
|
transaction: Q,
|
|
11072
11090
|
layouts: [],
|
|
11073
11091
|
singleVariantsRenderable: (L = S == null ? void 0 : S.workflowConfiguration) == null ? void 0 : L.singleVariantsRenderable,
|
|
11074
|
-
stateMutationFunc:
|
|
11092
|
+
stateMutationFunc: y ? async () => {
|
|
11075
11093
|
throw new b("State mutation is forbidden in read only mode!");
|
|
11076
11094
|
} : async (O) => this.updateTransactionState({ ...O, context: { transactionOwnerId: N } }),
|
|
11077
|
-
readOnly:
|
|
11095
|
+
readOnly: y,
|
|
11078
11096
|
workflow: P,
|
|
11079
11097
|
isReloadedTransaction: S.type === "transaction"
|
|
11080
11098
|
};
|
|
11081
11099
|
if (S.type === "transaction" && Q.workflowState) {
|
|
11082
11100
|
const O = JSON.parse(Q.workflowState);
|
|
11083
11101
|
R.layouts = Object.values(O.layouts || {}).map((W) => W.layout), await Ae(O), await ne(O), R.reloadedState = O;
|
|
11084
|
-
} else if (!
|
|
11102
|
+
} else if (!y && S.workflowState) {
|
|
11085
11103
|
const O = JSON.parse(S.workflowState);
|
|
11086
11104
|
R.layouts = Object.values(O.layouts || {}).map((W) => W.layout), await Ae(O), await ne(O), R.reloadedState = O;
|
|
11087
11105
|
} else
|
|
@@ -11091,12 +11109,12 @@ class Oi {
|
|
|
11091
11109
|
);
|
|
11092
11110
|
return R.renderableContextService = new Me(
|
|
11093
11111
|
R.layouts
|
|
11094
|
-
), R.delayWorkflowStateSync = !0, this.initialized = !0, this.experienceOptions = R, { experienceOptions: R, index:
|
|
11112
|
+
), R.delayWorkflowStateSync = !0, this.initialized = !0, this.experienceOptions = R, { experienceOptions: R, index: M, options: S };
|
|
11095
11113
|
});
|
|
11096
11114
|
Y.setMap("transactionOwnerIds", E);
|
|
11097
11115
|
const D = (await Promise.all(w)).sort((p, Q) => p.index - Q.index).map(async (p) => {
|
|
11098
|
-
const { experienceOptions: Q, options: I } = p,
|
|
11099
|
-
return await
|
|
11116
|
+
const { experienceOptions: Q, options: I } = p, y = new ye(this, Q);
|
|
11117
|
+
return await y.getWorkflowManager().getInitializationPromise(), I.type !== "transaction" && this.customer && await y.attachCustomerDetails({ email: this.customer.emailAddress }), y;
|
|
11100
11118
|
}), m = await Promise.all(D);
|
|
11101
11119
|
return m.forEach((p) => p.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), m;
|
|
11102
11120
|
}
|
|
@@ -11347,7 +11365,7 @@ class Oi {
|
|
|
11347
11365
|
return a.data.transactions[0].transactionShareActions;
|
|
11348
11366
|
}
|
|
11349
11367
|
}
|
|
11350
|
-
class
|
|
11368
|
+
class ls {
|
|
11351
11369
|
getClient() {
|
|
11352
11370
|
return this.client ?? {};
|
|
11353
11371
|
}
|
|
@@ -11480,8 +11498,8 @@ class cs {
|
|
|
11480
11498
|
async updateTransactionShareActions() {
|
|
11481
11499
|
}
|
|
11482
11500
|
}
|
|
11483
|
-
var
|
|
11484
|
-
class
|
|
11501
|
+
var zi = /* @__PURE__ */ ((c) => (c.SelectFrame = "SelectFrame", c.SelectImage = "SelectImage", c.Position = "Position", c))(zi || {});
|
|
11502
|
+
class Ki extends X {
|
|
11485
11503
|
constructor(e, t) {
|
|
11486
11504
|
var A;
|
|
11487
11505
|
super(e, t), this.frameService = (A = this.manager.getStepSpecificServices(this.getId())) == null ? void 0 : A.frameService;
|
|
@@ -14332,15 +14350,15 @@ const Oe = [
|
|
|
14332
14350
|
"101820",
|
|
14333
14351
|
"3D3935"
|
|
14334
14352
|
];
|
|
14335
|
-
function
|
|
14353
|
+
function Bs(c) {
|
|
14336
14354
|
const e = Oe.indexOf(c);
|
|
14337
14355
|
return e >= 0 ? re[e] : "";
|
|
14338
14356
|
}
|
|
14339
|
-
function
|
|
14357
|
+
function ji(c) {
|
|
14340
14358
|
const e = re.indexOf(c);
|
|
14341
14359
|
return e >= 0 ? Oe[e] : "";
|
|
14342
14360
|
}
|
|
14343
|
-
function
|
|
14361
|
+
function Vi(c, e, t) {
|
|
14344
14362
|
let A = 0, a = c.length;
|
|
14345
14363
|
for (; A < a; ) {
|
|
14346
14364
|
const n = A + a >>> 1;
|
|
@@ -14348,8 +14366,8 @@ function Ki(c, e, t) {
|
|
|
14348
14366
|
}
|
|
14349
14367
|
return A;
|
|
14350
14368
|
}
|
|
14351
|
-
function
|
|
14352
|
-
const t = [], A = [], a =
|
|
14369
|
+
function Cs(c, e = 32) {
|
|
14370
|
+
const t = [], A = [], a = ji(c);
|
|
14353
14371
|
a && (t[a] = 0);
|
|
14354
14372
|
const n = parseInt(c.substring(0, 2), 16), i = parseInt(c.substring(2, 4), 16), s = parseInt(c.substring(4, 6), 16);
|
|
14355
14373
|
let o, r, g;
|
|
@@ -14360,13 +14378,13 @@ function ls(c, e = 32) {
|
|
|
14360
14378
|
}
|
|
14361
14379
|
for (let B = 0; B < A.length; B++)
|
|
14362
14380
|
if (A[B] <= e && !t.some((l) => l.pms === Oe[B])) {
|
|
14363
|
-
const l =
|
|
14381
|
+
const l = Vi(t, A[B], "distance");
|
|
14364
14382
|
t.splice(l, 0, { pms: Oe[B], distance: A[B] });
|
|
14365
14383
|
}
|
|
14366
14384
|
return t.map((B) => B.pms);
|
|
14367
14385
|
}
|
|
14368
14386
|
let Be = null;
|
|
14369
|
-
function
|
|
14387
|
+
function ds(c) {
|
|
14370
14388
|
if (c.startsWith("#"))
|
|
14371
14389
|
return kt(c);
|
|
14372
14390
|
if (!document)
|
|
@@ -14383,129 +14401,131 @@ function kt(c) {
|
|
|
14383
14401
|
}
|
|
14384
14402
|
export {
|
|
14385
14403
|
dt as AddonHandle,
|
|
14386
|
-
|
|
14387
|
-
|
|
14404
|
+
gs as ArrayInput,
|
|
14405
|
+
hs as AspectType,
|
|
14388
14406
|
te as AssetNotFoundError,
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14407
|
+
us as AssetType,
|
|
14408
|
+
Qs as BringForwardCommand,
|
|
14409
|
+
ms as BringToBackCommand,
|
|
14410
|
+
ps as BringToFrontCommand,
|
|
14411
|
+
Ds as CanvasCommand,
|
|
14394
14412
|
qe as CollectionProduct,
|
|
14395
|
-
|
|
14396
|
-
|
|
14413
|
+
di as ColorOptionGlobalPropertyHandle,
|
|
14414
|
+
Is as CommandContext,
|
|
14397
14415
|
fa as ConversionDataType,
|
|
14398
14416
|
Ia as ConversionLocation,
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14417
|
+
fs as CreateElementCommand,
|
|
14418
|
+
Fs as CreateLayoutCommand,
|
|
14419
|
+
ys as DeleteElementCommand,
|
|
14420
|
+
In as DigitalContentStepHandle,
|
|
14421
|
+
Bi as FileUploadGlobalPropertyHandle,
|
|
14403
14422
|
Se as FlowExecutionNodeResult,
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14423
|
+
Fi as FlowExecutionResult,
|
|
14424
|
+
fi as FlowService,
|
|
14425
|
+
Ms as FontAlignmentCommand,
|
|
14426
|
+
Ss as FontColorCommand,
|
|
14427
|
+
Ys as FontSizeCommand,
|
|
14428
|
+
Ps as FontSourceCommand,
|
|
14410
14429
|
ka as FrameService,
|
|
14411
|
-
|
|
14412
|
-
|
|
14430
|
+
zi as FrameStep,
|
|
14431
|
+
Ki as FrameStepHandle,
|
|
14413
14432
|
mt as GlobalPropertyHandle,
|
|
14414
|
-
|
|
14433
|
+
xs as GroupCommand,
|
|
14415
14434
|
wn as IllustrationStepHandle,
|
|
14416
14435
|
Je as InformationMessageType,
|
|
14417
14436
|
Dn as InformationStepHandle,
|
|
14418
14437
|
Gt as IntegrationProduct,
|
|
14419
14438
|
pa as IntegrationType,
|
|
14420
|
-
|
|
14421
|
-
|
|
14439
|
+
Ns as LayoutElementFactory,
|
|
14440
|
+
Rs as LayoutElementType,
|
|
14422
14441
|
z as LayoutNotFoundError,
|
|
14423
14442
|
En as MaterialStepHandle,
|
|
14424
14443
|
Ue as MisconfigurationError,
|
|
14425
|
-
|
|
14444
|
+
ls as MockWorkflowManager,
|
|
14426
14445
|
hn as ModelStepHandle,
|
|
14427
|
-
|
|
14446
|
+
fn as ModuleStepHandle,
|
|
14447
|
+
Hs as MoveCommand,
|
|
14428
14448
|
FA as ObjectInput,
|
|
14429
|
-
|
|
14449
|
+
yi as ObjectInputType,
|
|
14430
14450
|
fA as OptionGlobalPropertyHandle,
|
|
14431
14451
|
ve as OptionNotFoundError,
|
|
14432
14452
|
Ce as ParseError,
|
|
14433
14453
|
un as PictureStepHandle,
|
|
14434
14454
|
Da as ProductCameraRig,
|
|
14435
|
-
|
|
14455
|
+
mi as ProductCollection,
|
|
14436
14456
|
Ee as ProductWorkflow,
|
|
14437
14457
|
Qe as PromiseCache,
|
|
14438
14458
|
oA as PromiseQueue,
|
|
14439
14459
|
Qn as QuestionStepHandle,
|
|
14440
14460
|
sA as QueueablePromise,
|
|
14441
|
-
|
|
14461
|
+
vs as ResizeCommand,
|
|
14442
14462
|
ue as ResourceNotFoundError,
|
|
14443
|
-
|
|
14444
|
-
|
|
14463
|
+
Us as RotateCommand,
|
|
14464
|
+
Gs as SendBackwardsCommand,
|
|
14445
14465
|
mn as ShapeStepHandle,
|
|
14446
|
-
|
|
14466
|
+
Li as SpiffCommerceClient,
|
|
14447
14467
|
Ge as StakeholderType,
|
|
14448
|
-
|
|
14468
|
+
ks as StepAspectType,
|
|
14449
14469
|
X as StepHandle,
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14470
|
+
bs as StepType,
|
|
14471
|
+
Js as TextChangeCommand,
|
|
14472
|
+
Ci as TextGlobalPropertyHandle,
|
|
14473
|
+
cs as TextInput,
|
|
14454
14474
|
pn as TextStepHandle,
|
|
14455
14475
|
ma as TransactionShareActionType,
|
|
14456
|
-
|
|
14457
|
-
|
|
14476
|
+
Di as Transform,
|
|
14477
|
+
pi as TransformCollection,
|
|
14458
14478
|
b as UnhandledBehaviorError,
|
|
14459
|
-
|
|
14460
|
-
|
|
14479
|
+
Os as UnitOfMeasurement,
|
|
14480
|
+
Ts as UpdateImageSourceCommand,
|
|
14461
14481
|
q as Variant,
|
|
14462
|
-
|
|
14482
|
+
Hn as WorkflowExperienceEventType,
|
|
14463
14483
|
ye as WorkflowExperienceImpl,
|
|
14464
14484
|
U as assetService,
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14485
|
+
ds as browserColorToHex,
|
|
14486
|
+
Pn as createDesign,
|
|
14487
|
+
Ls as dataUrlFromExternalUrl,
|
|
14468
14488
|
Xe as designService,
|
|
14469
|
-
|
|
14489
|
+
zs as determineCorrectFontSizeAndLines,
|
|
14470
14490
|
Oa as digitalContentStepService,
|
|
14471
|
-
|
|
14472
|
-
|
|
14491
|
+
Ks as findElement,
|
|
14492
|
+
js as frameDataCache,
|
|
14473
14493
|
se as frameStepService,
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14494
|
+
Vs as generate,
|
|
14495
|
+
Kn as generateCommands,
|
|
14496
|
+
Ws as generateSVGWithUnknownColors,
|
|
14497
|
+
rs as generateStateFromDesignInputSteps,
|
|
14498
|
+
Xs as getAttributesFromArrayBuffer,
|
|
14499
|
+
qs as getAxisAlignedBoundingBox,
|
|
14480
14500
|
Ga as getBoundedOffsets,
|
|
14481
|
-
|
|
14482
|
-
|
|
14501
|
+
Zs as getFrameData,
|
|
14502
|
+
$s as getSvgElement,
|
|
14483
14503
|
Ye as getWorkflow,
|
|
14484
14504
|
yA as getWorkflows,
|
|
14485
14505
|
x as graphQlManager,
|
|
14486
14506
|
xe as illustrationStepService,
|
|
14487
|
-
|
|
14488
|
-
|
|
14507
|
+
_s as loadFont,
|
|
14508
|
+
Cs as matchHexToPms,
|
|
14489
14509
|
cA as materialStepService,
|
|
14490
14510
|
gA as modelStepService,
|
|
14491
14511
|
Va as moduleStepService,
|
|
14492
14512
|
V as optionService,
|
|
14493
|
-
|
|
14513
|
+
eo as patternImageDataCache,
|
|
14494
14514
|
Y as persistenceService,
|
|
14495
14515
|
lA as pictureStepService,
|
|
14496
|
-
|
|
14516
|
+
Bs as pmsToRgb,
|
|
14497
14517
|
BA as questionStepService,
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14518
|
+
to as registerFetchImplementation,
|
|
14519
|
+
Ao as registerWindowImplementation,
|
|
14520
|
+
ao as rehydrateSerializedLayout,
|
|
14521
|
+
ji as rgbToPms,
|
|
14522
|
+
ss as setBearerAuthenticationToken,
|
|
14523
|
+
no as setCanvasModule,
|
|
14504
14524
|
de as shapeStepService,
|
|
14505
14525
|
ba as shortenUrl,
|
|
14506
14526
|
_ as spiffCoreConfiguration,
|
|
14507
|
-
|
|
14508
|
-
|
|
14527
|
+
os as stepAspectValuesToDesignInputSteps,
|
|
14528
|
+
io as svgToDataUrl,
|
|
14509
14529
|
j as textStepService,
|
|
14510
14530
|
$a as toast
|
|
14511
14531
|
};
|