@spiffcommerce/core 27.3.0-beta.03158811-571a-5ee0-a571-7a626071de03 → 27.3.0-beta.12659d34-cdc8-572e-8445-7a8328757a54
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 +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +402 -417
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import { split as Ze } from "unicode-default-word-boundary";
|
|
|
23
23
|
import dn from "lodash.debounce";
|
|
24
24
|
import "fs";
|
|
25
25
|
import "path";
|
|
26
|
-
var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}),
|
|
26
|
+
var Ce = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(Ce || {}), j = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(j || {}), P = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(P || {}), vr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(vr || {}), qt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(qt || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), Er = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(Er || {}), br = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(br || {}), Br = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(Br || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Ir = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Ir || {}), we = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(we || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Pr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Pr || {});
|
|
27
27
|
class An extends Error {
|
|
28
28
|
constructor(t) {
|
|
29
29
|
super(t), this.name = this.constructor.name;
|
|
@@ -49,7 +49,7 @@ class vt extends _t {
|
|
|
49
49
|
super(`Asset not found for variant: ${t.name}`), this.variant = t;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class Ht extends _t {
|
|
53
53
|
constructor(t) {
|
|
54
54
|
super(`Resource not found for asset: ${t.name}`), this.asset = t;
|
|
55
55
|
}
|
|
@@ -64,7 +64,7 @@ class De extends An {
|
|
|
64
64
|
super(`ImplementationError - ${t}`);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
class
|
|
67
|
+
class z extends De {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(`Unhandled Behavior Encountered: ${t}`);
|
|
70
70
|
}
|
|
@@ -228,7 +228,7 @@ const un = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
|
|
|
228
228
|
const n = a.load();
|
|
229
229
|
return Oe.set(t, n), n;
|
|
230
230
|
}
|
|
231
|
-
},
|
|
231
|
+
}, Bt = () => {
|
|
232
232
|
if (Tt([typeof XMLSerializer]))
|
|
233
233
|
return new XMLSerializer();
|
|
234
234
|
const r = Xt();
|
|
@@ -368,7 +368,7 @@ class jr {
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const B = new jr();
|
|
372
372
|
let aa, na;
|
|
373
373
|
const gt = (r, t, e) => {
|
|
374
374
|
if (aa !== void 0)
|
|
@@ -417,11 +417,11 @@ function ga() {
|
|
|
417
417
|
return $e === void 0 && ($e = Tr()), $e;
|
|
418
418
|
}
|
|
419
419
|
let se = null;
|
|
420
|
-
const
|
|
420
|
+
const qr = (r) => new Promise((t) => {
|
|
421
421
|
if (ke(r) !== "image/jpeg")
|
|
422
422
|
return t(1);
|
|
423
423
|
mr(r).then((a) => t(a || 1)).catch(() => t(1));
|
|
424
|
-
}),
|
|
424
|
+
}), Hr = async () => {
|
|
425
425
|
if (se !== null)
|
|
426
426
|
return !se;
|
|
427
427
|
const t = await Zt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
|
|
@@ -432,11 +432,11 @@ const Hr = (r) => new Promise((t) => {
|
|
|
432
432
|
}, Jr = async (r) => {
|
|
433
433
|
var A;
|
|
434
434
|
const t = await Rr(r), e = await Zt(t), [a, n] = Yr(e);
|
|
435
|
-
if (!await
|
|
435
|
+
if (!await Hr()) {
|
|
436
436
|
const u = gt(a, n);
|
|
437
437
|
return (A = u.getContext("2d")) == null || A.drawImage(e, 0, 0, a, n), u;
|
|
438
438
|
}
|
|
439
|
-
const s = await
|
|
439
|
+
const s = await qr(r), [o, l] = s > 4 ? [n, a] : [a, n], c = gt(o, l), d = c.getContext("2d");
|
|
440
440
|
switch (s) {
|
|
441
441
|
case 2:
|
|
442
442
|
d.translate(o, 0), d.scale(-1, 1);
|
|
@@ -3339,7 +3339,7 @@ const oe = (r) => {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
});
|
|
3341
3341
|
});
|
|
3342
|
-
}, vn = (r) =>
|
|
3342
|
+
}, vn = (r) => Bt().serializeToString(r), fa = (r, t, e, a, n) => {
|
|
3343
3343
|
const i = yn(r);
|
|
3344
3344
|
if (!i)
|
|
3345
3345
|
throw new Error("Failed to read SVG.");
|
|
@@ -3371,7 +3371,7 @@ const oe = (r) => {
|
|
|
3371
3371
|
s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
|
|
3372
3372
|
}
|
|
3373
3373
|
});
|
|
3374
|
-
const i =
|
|
3374
|
+
const i = Bt().serializeToString(e);
|
|
3375
3375
|
return {
|
|
3376
3376
|
colors: a,
|
|
3377
3377
|
svg: i
|
|
@@ -3508,14 +3508,14 @@ const oe = (r) => {
|
|
|
3508
3508
|
...AssetFields
|
|
3509
3509
|
}
|
|
3510
3510
|
}
|
|
3511
|
-
`, ve = async (r) => (await
|
|
3511
|
+
`, ve = async (r) => (await B.getShadowGraphqlClient().query({
|
|
3512
3512
|
query: oi,
|
|
3513
3513
|
errorPolicy: "all",
|
|
3514
3514
|
fetchPolicy: "no-cache",
|
|
3515
3515
|
variables: {
|
|
3516
3516
|
keys: r
|
|
3517
3517
|
}
|
|
3518
|
-
})).data.assets, Ai = async (r) => (await
|
|
3518
|
+
})).data.assets, Ai = async (r) => (await B.getShadowGraphqlClient().query({
|
|
3519
3519
|
query: li,
|
|
3520
3520
|
errorPolicy: "all",
|
|
3521
3521
|
variables: {
|
|
@@ -3523,7 +3523,7 @@ const oe = (r) => {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
})).data.materials, ui = async (r, t, e, a, n) => {
|
|
3525
3525
|
var s;
|
|
3526
|
-
return (s = (await
|
|
3526
|
+
return (s = (await B.getShadowGraphqlClient().mutate({
|
|
3527
3527
|
mutation: ci,
|
|
3528
3528
|
errorPolicy: "all",
|
|
3529
3529
|
fetchPolicy: "no-cache",
|
|
@@ -3558,7 +3558,7 @@ class hi {
|
|
|
3558
3558
|
if (this.cache.has(t)) {
|
|
3559
3559
|
const n = this.cache.get(t);
|
|
3560
3560
|
if (!n)
|
|
3561
|
-
throw new
|
|
3561
|
+
throw new z("Failed to get asset from cache!");
|
|
3562
3562
|
return n;
|
|
3563
3563
|
}
|
|
3564
3564
|
const a = (async () => (await ve([t]))[0])();
|
|
@@ -3585,7 +3585,7 @@ class hi {
|
|
|
3585
3585
|
*/
|
|
3586
3586
|
cacheAsset(t) {
|
|
3587
3587
|
if (!t.key)
|
|
3588
|
-
throw new
|
|
3588
|
+
throw new z("Asset has no key!");
|
|
3589
3589
|
this.cache.has(t.key) || this.cache.set(t.key, Promise.resolve(t));
|
|
3590
3590
|
}
|
|
3591
3591
|
/**
|
|
@@ -3593,7 +3593,7 @@ class hi {
|
|
|
3593
3593
|
*/
|
|
3594
3594
|
cacheMaterial(t) {
|
|
3595
3595
|
if (!t.id)
|
|
3596
|
-
throw new
|
|
3596
|
+
throw new z("Material has no id!");
|
|
3597
3597
|
this.materialCache.has(t.id) || this.materialCache.set(t.id, Promise.resolve(t));
|
|
3598
3598
|
}
|
|
3599
3599
|
/**
|
|
@@ -3642,7 +3642,7 @@ class hi {
|
|
|
3642
3642
|
}
|
|
3643
3643
|
const n = (async () => {
|
|
3644
3644
|
var s, o;
|
|
3645
|
-
const i = await
|
|
3645
|
+
const i = await B.getShadowGraphqlClient().mutate({
|
|
3646
3646
|
mutation: di,
|
|
3647
3647
|
fetchPolicy: "no-cache",
|
|
3648
3648
|
errorPolicy: "all",
|
|
@@ -3680,7 +3680,7 @@ class hi {
|
|
|
3680
3680
|
if (!s)
|
|
3681
3681
|
throw new Ft("Failed to read SVG.");
|
|
3682
3682
|
ni(s);
|
|
3683
|
-
const l =
|
|
3683
|
+
const l = Bt().serializeToString(s);
|
|
3684
3684
|
return {
|
|
3685
3685
|
name: t.name,
|
|
3686
3686
|
blob: new Blob([l], { type: "image/svg+xml" })
|
|
@@ -3711,7 +3711,7 @@ class hi {
|
|
|
3711
3711
|
case "mkv":
|
|
3712
3712
|
return "video/x-matroska";
|
|
3713
3713
|
default:
|
|
3714
|
-
throw new
|
|
3714
|
+
throw new z("Unexpected mimetype: " + e);
|
|
3715
3715
|
}
|
|
3716
3716
|
}
|
|
3717
3717
|
}
|
|
@@ -3833,7 +3833,7 @@ class mi {
|
|
|
3833
3833
|
this.disabled = t;
|
|
3834
3834
|
}
|
|
3835
3835
|
}
|
|
3836
|
-
const Jt = new mi(),
|
|
3836
|
+
const Jt = new mi(), bn = v`
|
|
3837
3837
|
fragment OptionFields on Option {
|
|
3838
3838
|
id
|
|
3839
3839
|
name
|
|
@@ -3873,14 +3873,14 @@ const Jt = new mi(), Bn = v`
|
|
|
3873
3873
|
`, gi = v`
|
|
3874
3874
|
${te(!1)}
|
|
3875
3875
|
${wa}
|
|
3876
|
-
${
|
|
3876
|
+
${bn}
|
|
3877
3877
|
query GetOptions($ids: [String]!) {
|
|
3878
3878
|
options(ids: $ids) {
|
|
3879
3879
|
...OptionFields
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
3882
|
`, pi = async (r) => {
|
|
3883
|
-
const t = await
|
|
3883
|
+
const t = await B.getShadowGraphqlClient().query({
|
|
3884
3884
|
query: gi,
|
|
3885
3885
|
errorPolicy: "all",
|
|
3886
3886
|
variables: {
|
|
@@ -3948,7 +3948,7 @@ class wi {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
|
-
const Y = new wi(),
|
|
3951
|
+
const Y = new wi(), Bn = v`
|
|
3952
3952
|
fragment ActiveIntegrationFields on Integration {
|
|
3953
3953
|
id
|
|
3954
3954
|
logo
|
|
@@ -4093,7 +4093,7 @@ const Y = new wi(), bn = v`
|
|
|
4093
4093
|
${Te}
|
|
4094
4094
|
${In}
|
|
4095
4095
|
${Pn}
|
|
4096
|
-
${
|
|
4096
|
+
${Bn}
|
|
4097
4097
|
query ReadTransactions($ids: [String]!) {
|
|
4098
4098
|
transactions(ids: $ids) {
|
|
4099
4099
|
customLogoLink
|
|
@@ -4256,7 +4256,7 @@ const Y = new wi(), bn = v`
|
|
|
4256
4256
|
id
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
`,
|
|
4259
|
+
`, bi = v`
|
|
4260
4260
|
query ReadTransactionForDesignCreation($id: String!) {
|
|
4261
4261
|
transactions(ids: [$id]) {
|
|
4262
4262
|
id
|
|
@@ -4322,7 +4322,7 @@ const Y = new wi(), bn = v`
|
|
|
4322
4322
|
workflowViewerReadOnlyLink
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
|
-
`,
|
|
4325
|
+
`, Bi = v`
|
|
4326
4326
|
${Pn}
|
|
4327
4327
|
query ReadTransactionForShareActions($id: String!) {
|
|
4328
4328
|
transactions(ids: [$id]) {
|
|
@@ -4579,7 +4579,7 @@ const Y = new wi(), bn = v`
|
|
|
4579
4579
|
`, Ni = (r) => v`
|
|
4580
4580
|
${te(r)}
|
|
4581
4581
|
${wa}
|
|
4582
|
-
${
|
|
4582
|
+
${bn}
|
|
4583
4583
|
${xi}
|
|
4584
4584
|
${ki}
|
|
4585
4585
|
${Mi}
|
|
@@ -5100,7 +5100,7 @@ const Y = new wi(), bn = v`
|
|
|
5100
5100
|
}
|
|
5101
5101
|
}
|
|
5102
5102
|
`, $i = v`
|
|
5103
|
-
${
|
|
5103
|
+
${Bn}
|
|
5104
5104
|
${Ne}
|
|
5105
5105
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
|
5106
5106
|
currentIntegration {
|
|
@@ -5217,7 +5217,7 @@ const Y = new wi(), bn = v`
|
|
|
5217
5217
|
silentSteps: r.silentSteps.filter((a) => yt(a, t))
|
|
5218
5218
|
};
|
|
5219
5219
|
return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
|
|
5220
|
-
}, Dt = (r, t) => r.map((e) => ji(e, t)).filter((e) => e !== null),
|
|
5220
|
+
}, Dt = (r, t) => r.map((e) => ji(e, t)).filter((e) => e !== null), qi = async (r, t, e = !1) => {
|
|
5221
5221
|
var s;
|
|
5222
5222
|
const a = Dt(r, t), n = [];
|
|
5223
5223
|
for (const o of a)
|
|
@@ -5312,7 +5312,7 @@ class kn {
|
|
|
5312
5312
|
const Q = () => {
|
|
5313
5313
|
const r = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
5314
5314
|
return r() + r() + "-" + r() + "-" + r() + "-" + r() + "-" + r() + r() + r();
|
|
5315
|
-
},
|
|
5315
|
+
}, Hi = ({
|
|
5316
5316
|
backgroundColor: r,
|
|
5317
5317
|
outlineColor: t,
|
|
5318
5318
|
borderRadius: e,
|
|
@@ -5328,11 +5328,11 @@ const Q = () => {
|
|
|
5328
5328
|
width: u
|
|
5329
5329
|
}) => {
|
|
5330
5330
|
var E;
|
|
5331
|
-
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose ===
|
|
5331
|
+
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === qt.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (E = a.colorProfiles) == null ? void 0 : E.map((b, I) => (
|
|
5332
5332
|
/* @ts-ignore */
|
|
5333
|
-
/* @__PURE__ */ x("color-profile", { name:
|
|
5334
|
-
)), S = n.map((
|
|
5335
|
-
...
|
|
5333
|
+
/* @__PURE__ */ x("color-profile", { name: b.name, xlinkHref: b.key, children: " " }, I)
|
|
5334
|
+
)), S = n.map((b) => ({
|
|
5335
|
+
...b,
|
|
5336
5336
|
_renderingConfiguration: a,
|
|
5337
5337
|
mask: l ? `url(#viewmask-${f})` : void 0
|
|
5338
5338
|
})), y = va(S);
|
|
@@ -5371,8 +5371,8 @@ const Q = () => {
|
|
|
5371
5371
|
"g",
|
|
5372
5372
|
{
|
|
5373
5373
|
id: "element-group",
|
|
5374
|
-
clipPath: a.purpose ===
|
|
5375
|
-
children: y.map((
|
|
5374
|
+
clipPath: a.purpose === qt.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5375
|
+
children: y.map((b) => On(b)).filter((b) => !!b)
|
|
5376
5376
|
}
|
|
5377
5377
|
),
|
|
5378
5378
|
l && /* @__PURE__ */ x(
|
|
@@ -5444,22 +5444,22 @@ const Q = () => {
|
|
|
5444
5444
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5445
5445
|
}), Pt = (r) => {
|
|
5446
5446
|
switch (r) {
|
|
5447
|
-
case
|
|
5448
|
-
return
|
|
5449
|
-
case
|
|
5450
|
-
return
|
|
5451
|
-
case
|
|
5452
|
-
return
|
|
5453
|
-
case
|
|
5454
|
-
return
|
|
5455
|
-
case
|
|
5456
|
-
return
|
|
5457
|
-
case
|
|
5458
|
-
return
|
|
5459
|
-
case
|
|
5460
|
-
return
|
|
5461
|
-
case
|
|
5462
|
-
return
|
|
5447
|
+
case H.North:
|
|
5448
|
+
return H.East;
|
|
5449
|
+
case H.East:
|
|
5450
|
+
return H.South;
|
|
5451
|
+
case H.South:
|
|
5452
|
+
return H.West;
|
|
5453
|
+
case H.West:
|
|
5454
|
+
return H.North;
|
|
5455
|
+
case H.Northwest:
|
|
5456
|
+
return H.Northeast;
|
|
5457
|
+
case H.Northeast:
|
|
5458
|
+
return H.Southeast;
|
|
5459
|
+
case H.Southeast:
|
|
5460
|
+
return H.Southwest;
|
|
5461
|
+
case H.Southwest:
|
|
5462
|
+
return H.Northwest;
|
|
5463
5463
|
}
|
|
5464
5464
|
}, Wc = (r, t) => t > 45 && t <= 135 ? Pt(r) : t > 135 && t <= 225 ? Pt(Pt(r)) : t > 225 && t <= 315 ? Pt(Pt(Pt(r))) : r, jc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5465
5465
|
const a = pt(r.rotation), n = {
|
|
@@ -5491,7 +5491,7 @@ const Q = () => {
|
|
|
5491
5491
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5492
5492
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5493
5493
|
};
|
|
5494
|
-
},
|
|
5494
|
+
}, qc = 0.352778, Hc = 0.035277, Mn = (r) => {
|
|
5495
5495
|
const t = r.rotation || 0, e = pt(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5496
5496
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5497
5497
|
"g",
|
|
@@ -5577,8 +5577,8 @@ const Q = () => {
|
|
|
5577
5577
|
/* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
|
|
5578
5578
|
] })
|
|
5579
5579
|
] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
|
|
5580
|
-
var w, S, y, E,
|
|
5581
|
-
const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((
|
|
5580
|
+
var w, S, y, E, b, I, D, F, k, T;
|
|
5581
|
+
const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((E = r.pattern) == null ? void 0 : E.height) || 0, g = ((b = r.pattern) == null ? void 0 : b.scaleX) || 1, p = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
|
|
5582
5582
|
return [(F = r.pattern) != null && F.svg ? {
|
|
5583
5583
|
id: `${t}-contents`,
|
|
5584
5584
|
type: M.Illustration,
|
|
@@ -5741,17 +5741,17 @@ const Ki = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
|
|
|
5741
5741
|
let y = 0;
|
|
5742
5742
|
const E = A.getAttribute("text-anchor");
|
|
5743
5743
|
E === "middle" ? y = S / 2 : E === "end" && (y = S);
|
|
5744
|
-
const
|
|
5744
|
+
const b = g.getPath(
|
|
5745
5745
|
A.innerHTML,
|
|
5746
5746
|
parseFloat(A.getAttribute("x") ?? "0") - y,
|
|
5747
5747
|
parseFloat(A.getAttribute("y") ?? "0"),
|
|
5748
5748
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5749
5749
|
);
|
|
5750
|
-
|
|
5751
|
-
const I =
|
|
5750
|
+
b.fill = p, b.stroke = f, b.strokeWidth = parseFloat(C ?? "0");
|
|
5751
|
+
const I = b.toSVG(2), F = t.parseFromString(I, "image/svg+xml").firstElementChild;
|
|
5752
5752
|
h.appendChild(F);
|
|
5753
5753
|
}
|
|
5754
|
-
return e.querySelectorAll("text").forEach((d) => d.remove()),
|
|
5754
|
+
return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
|
|
5755
5755
|
}, Ee = (r, t, e, a) => Math.max(es(r.join(`
|
|
5756
5756
|
`), e, a), t), La = (r, t, e, a, n, i) => {
|
|
5757
5757
|
const s = (i || ya) * n.getApproximateHeight(), o = t.split(`
|
|
@@ -5861,7 +5861,7 @@ const Ki = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
|
|
|
5861
5861
|
stripControlCharacters: !0,
|
|
5862
5862
|
vertical: !1,
|
|
5863
5863
|
uppercase: !1
|
|
5864
|
-
},
|
|
5864
|
+
}, be = (r, t = Va) => {
|
|
5865
5865
|
const e = { ...Va, ...t };
|
|
5866
5866
|
let a = r || "";
|
|
5867
5867
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
@@ -6138,7 +6138,7 @@ class ls {
|
|
|
6138
6138
|
const On = (r) => r.type === M.Image ? /* @__PURE__ */ x(Mn, { ...r }, r.id) : r.type === M.Frame ? /* @__PURE__ */ x(Yi, { ...r }, r.id) : r.type === M.Illustration ? /* @__PURE__ */ x(os, { ...r }, r.id) : r.type === M.Textbox ? /* @__PURE__ */ x(rs, { ...r }, r.id) : r.type === M.Group ? /* @__PURE__ */ x(Tn, { ...r }, r.id) : null, Sa = (r, t, e) => {
|
|
6139
6139
|
const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
|
|
6140
6140
|
return /* @__PURE__ */ x(
|
|
6141
|
-
|
|
6141
|
+
Hi,
|
|
6142
6142
|
{
|
|
6143
6143
|
preserveAspectRatio: void 0,
|
|
6144
6144
|
elements: n,
|
|
@@ -6271,7 +6271,7 @@ const ae = (r) => {
|
|
|
6271
6271
|
return At.set(r, s), s;
|
|
6272
6272
|
}
|
|
6273
6273
|
if ((((e = r.split(".").pop()) == null ? void 0 : e.toLowerCase()) ?? "") === "svg") {
|
|
6274
|
-
const a = await
|
|
6274
|
+
const a = await ba(r), n = a.width, i = a.height, s = {
|
|
6275
6275
|
src: r,
|
|
6276
6276
|
width: n,
|
|
6277
6277
|
height: i,
|
|
@@ -6287,7 +6287,7 @@ const ae = (r) => {
|
|
|
6287
6287
|
};
|
|
6288
6288
|
return At.set(r, i), i;
|
|
6289
6289
|
}
|
|
6290
|
-
},
|
|
6290
|
+
}, ba = async (r) => {
|
|
6291
6291
|
const t = await at(r);
|
|
6292
6292
|
return Un(t);
|
|
6293
6293
|
}, za = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), Un = (r) => {
|
|
@@ -6327,7 +6327,7 @@ const ae = (r) => {
|
|
|
6327
6327
|
const s = dt().parseFromString(r, "image/svg+xml").firstElementChild;
|
|
6328
6328
|
if (!s)
|
|
6329
6329
|
throw new Error("Failed to read SVG");
|
|
6330
|
-
const l =
|
|
6330
|
+
const l = Bt().serializeToString(s), c = gt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
|
|
6331
6331
|
anonymousCrossOrigin: !0,
|
|
6332
6332
|
ignoreDimensions: !1,
|
|
6333
6333
|
createCanvas: gt,
|
|
@@ -6424,7 +6424,7 @@ class Jc {
|
|
|
6424
6424
|
const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Nt(n), o = {
|
|
6425
6425
|
assetUrl: n,
|
|
6426
6426
|
name: s.names.fullName.en
|
|
6427
|
-
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6427
|
+
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = be(c, {
|
|
6428
6428
|
vertical: a.vertical,
|
|
6429
6429
|
uppercase: a.uppercase
|
|
6430
6430
|
}), A = e.region || await Ut(t, M.Textbox, n, {
|
|
@@ -6723,7 +6723,7 @@ class Vn extends O {
|
|
|
6723
6723
|
};
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
|
-
class
|
|
6726
|
+
class G extends O {
|
|
6727
6727
|
/**
|
|
6728
6728
|
* @param initialParams The initial parameters to be set on this new object
|
|
6729
6729
|
* @param callback An optional callback function to be notified when the object has been instantiated
|
|
@@ -6783,7 +6783,7 @@ class W extends O {
|
|
|
6783
6783
|
return a !== void 0 ? a + 1 : 0;
|
|
6784
6784
|
}
|
|
6785
6785
|
}
|
|
6786
|
-
class
|
|
6786
|
+
class bt extends O {
|
|
6787
6787
|
constructor(t) {
|
|
6788
6788
|
super(), this.id = t;
|
|
6789
6789
|
}
|
|
@@ -7211,7 +7211,7 @@ class nd extends O {
|
|
|
7211
7211
|
};
|
|
7212
7212
|
}
|
|
7213
7213
|
}
|
|
7214
|
-
class
|
|
7214
|
+
class qa {
|
|
7215
7215
|
constructor(t, e, a) {
|
|
7216
7216
|
this.processRegion = async (n) => {
|
|
7217
7217
|
var l, c, d, A;
|
|
@@ -7251,7 +7251,7 @@ class Ha {
|
|
|
7251
7251
|
id: h.id,
|
|
7252
7252
|
region: n
|
|
7253
7253
|
},
|
|
7254
|
-
command: new
|
|
7254
|
+
command: new G(h, i)
|
|
7255
7255
|
};
|
|
7256
7256
|
} else {
|
|
7257
7257
|
const u = this.configuration.type === P.SilentIllustration ? (A = this.configuration.data.asset) == null ? void 0 : A.fileLink : s, m = await lt(await (async () => new Promise((p, f) => {
|
|
@@ -7286,7 +7286,7 @@ class Ha {
|
|
|
7286
7286
|
id: g.id,
|
|
7287
7287
|
region: n
|
|
7288
7288
|
},
|
|
7289
|
-
command: new
|
|
7289
|
+
command: new G(g, i)
|
|
7290
7290
|
};
|
|
7291
7291
|
}
|
|
7292
7292
|
}, this.configuration = t, this.layouts = e, this.product = a || void 0;
|
|
@@ -7378,7 +7378,7 @@ class Cs {
|
|
|
7378
7378
|
async () => {
|
|
7379
7379
|
const g = await i();
|
|
7380
7380
|
if (!g.link || !g.link)
|
|
7381
|
-
throw new
|
|
7381
|
+
throw new Ht(g.asset);
|
|
7382
7382
|
h({
|
|
7383
7383
|
rel: "mpeg4",
|
|
7384
7384
|
href: g.link
|
|
@@ -7391,7 +7391,7 @@ class Cs {
|
|
|
7391
7391
|
40
|
|
7392
7392
|
);
|
|
7393
7393
|
});
|
|
7394
|
-
t.forEach((h) => a.getCommandDispatcher()(new
|
|
7394
|
+
t.forEach((h) => a.getCommandDispatcher()(new bt(h.id)));
|
|
7395
7395
|
const o = n.data.baseUrl.slice(0, 4) === "http" ? "" : "https://", l = new URL(o + n.data.baseUrl);
|
|
7396
7396
|
l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
|
|
7397
7397
|
const c = l.toString();
|
|
@@ -7421,7 +7421,7 @@ class Cs {
|
|
|
7421
7421
|
throw new Error("Region not found");
|
|
7422
7422
|
if (!A || !d)
|
|
7423
7423
|
throw new Error("Neither a region or layout found!");
|
|
7424
|
-
return new
|
|
7424
|
+
return new G(
|
|
7425
7425
|
{
|
|
7426
7426
|
stepRegion: d,
|
|
7427
7427
|
stepName: n,
|
|
@@ -7442,7 +7442,7 @@ class Cs {
|
|
|
7442
7442
|
}
|
|
7443
7443
|
}
|
|
7444
7444
|
const Gn = new Cs();
|
|
7445
|
-
class
|
|
7445
|
+
class Be {
|
|
7446
7446
|
constructor() {
|
|
7447
7447
|
this.frameSourceSvg = async (t, e) => {
|
|
7448
7448
|
if (!t)
|
|
@@ -7453,7 +7453,7 @@ class be {
|
|
|
7453
7453
|
const n = a.fileLink;
|
|
7454
7454
|
if (n)
|
|
7455
7455
|
return at(n, !0);
|
|
7456
|
-
throw new
|
|
7456
|
+
throw new Ht(a);
|
|
7457
7457
|
};
|
|
7458
7458
|
}
|
|
7459
7459
|
async init(t, e, a) {
|
|
@@ -7556,7 +7556,7 @@ class be {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
selectImage(t, e, a, n = !0) {
|
|
7558
7558
|
var l;
|
|
7559
|
-
const i =
|
|
7559
|
+
const i = Be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
|
|
7560
7560
|
if (s && s === i)
|
|
7561
7561
|
return Promise.resolve();
|
|
7562
7562
|
a.setEditedStatus(t.stepName, !0);
|
|
@@ -7594,7 +7594,7 @@ class be {
|
|
|
7594
7594
|
s && (s.command && n.getCommandDispatcher()(s.command), s.followup && await s.followup());
|
|
7595
7595
|
}
|
|
7596
7596
|
getCreateElementCommand(t, e, a, n) {
|
|
7597
|
-
return new
|
|
7597
|
+
return new G(
|
|
7598
7598
|
{
|
|
7599
7599
|
id: t,
|
|
7600
7600
|
type: M.Frame,
|
|
@@ -7621,7 +7621,7 @@ class be {
|
|
|
7621
7621
|
}
|
|
7622
7622
|
async loadPatternFromString(t, e, a = !0, n = void 0, i) {
|
|
7623
7623
|
if (t.endsWith("svg")) {
|
|
7624
|
-
const s = await
|
|
7624
|
+
const s = await ba(t), o = s.width, l = s.height, c = await at(t);
|
|
7625
7625
|
if (i) {
|
|
7626
7626
|
const u = c.match(/<(image|linearGradient|radialGradient)(\s|>|\/>)/gim);
|
|
7627
7627
|
if (u && u.length > 0)
|
|
@@ -7733,7 +7733,7 @@ class be {
|
|
|
7733
7733
|
i && i(!0);
|
|
7734
7734
|
const c = t.data.initialZoomLevel, d = await Promise.all(
|
|
7735
7735
|
t.data.regions.map(async (m, g) => {
|
|
7736
|
-
const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new
|
|
7736
|
+
const p = await Qe(l[g]), f = o.getImageData(), C = a.map((I) => new bt(I.id)), w = f ? Ea(
|
|
7737
7737
|
f,
|
|
7738
7738
|
p,
|
|
7739
7739
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
@@ -7748,11 +7748,11 @@ class be {
|
|
|
7748
7748
|
scaleX: (w == null ? void 0 : w.zoom) || 1,
|
|
7749
7749
|
scaleY: (w == null ? void 0 : w.zoom) || 1,
|
|
7750
7750
|
rotation: 0
|
|
7751
|
-
} : void 0, y = Q(),
|
|
7752
|
-
if (!
|
|
7751
|
+
} : void 0, y = Q(), b = n.getLayouts().find((I) => I.panelId === m.panelId);
|
|
7752
|
+
if (!b)
|
|
7753
7753
|
throw new J(m);
|
|
7754
7754
|
return {
|
|
7755
|
-
command: this.getCreateElementCommand(y, m,
|
|
7755
|
+
command: this.getCreateElementCommand(y, m, b, {
|
|
7756
7756
|
frameData: p,
|
|
7757
7757
|
pattern: S,
|
|
7758
7758
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
@@ -7797,11 +7797,11 @@ class be {
|
|
|
7797
7797
|
const a = t.fileLink;
|
|
7798
7798
|
if (a)
|
|
7799
7799
|
return a;
|
|
7800
|
-
throw new
|
|
7800
|
+
throw new Ht(t);
|
|
7801
7801
|
}
|
|
7802
7802
|
async loadPatternFromAsset(t, e, a, n) {
|
|
7803
7803
|
var c, d;
|
|
7804
|
-
const i =
|
|
7804
|
+
const i = Be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
|
|
7805
7805
|
if (!o)
|
|
7806
7806
|
throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
|
|
7807
7807
|
try {
|
|
@@ -7828,7 +7828,7 @@ class be {
|
|
|
7828
7828
|
), this.validateColorCount(e, a);
|
|
7829
7829
|
}
|
|
7830
7830
|
}
|
|
7831
|
-
const wt = new
|
|
7831
|
+
const wt = new Be();
|
|
7832
7832
|
class ws {
|
|
7833
7833
|
async getIllustrationBody(t) {
|
|
7834
7834
|
return new Promise((e) => {
|
|
@@ -7838,7 +7838,7 @@ class ws {
|
|
|
7838
7838
|
});
|
|
7839
7839
|
}
|
|
7840
7840
|
getCreateElementCommand(t, e, a, n) {
|
|
7841
|
-
return new
|
|
7841
|
+
return new G(
|
|
7842
7842
|
{
|
|
7843
7843
|
stepRegion: e,
|
|
7844
7844
|
stepName: n.stepName,
|
|
@@ -7995,14 +7995,14 @@ class ws {
|
|
|
7995
7995
|
if (!t.data || !t.data.regions)
|
|
7996
7996
|
throw new Se(t, "Missing regions.");
|
|
7997
7997
|
n(!0);
|
|
7998
|
-
const s = a.map((C) => new
|
|
7998
|
+
const s = a.map((C) => new bt(C.id));
|
|
7999
7999
|
t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
|
|
8000
8000
|
const o = e.asset;
|
|
8001
8001
|
if (!o)
|
|
8002
8002
|
throw new vt(e);
|
|
8003
8003
|
const l = o.fileLink;
|
|
8004
8004
|
if (!l)
|
|
8005
|
-
throw new
|
|
8005
|
+
throw new Ht(o);
|
|
8006
8006
|
const c = await lt(await this.getIllustrationBody(l)), d = await Kt(c.svg), A = (C) => {
|
|
8007
8007
|
const w = i.getLayouts().find((y) => y.panelId === C.panelId);
|
|
8008
8008
|
if (!w)
|
|
@@ -8040,21 +8040,21 @@ class ws {
|
|
|
8040
8040
|
const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
|
|
8041
8041
|
if (C.length !== 0) {
|
|
8042
8042
|
const y = {};
|
|
8043
|
-
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((
|
|
8043
|
+
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((b) => {
|
|
8044
8044
|
var D;
|
|
8045
|
-
const I = C.find((F) => F.channelNumber ===
|
|
8046
|
-
I && (y[`${
|
|
8045
|
+
const I = C.find((F) => F.channelNumber === b.number);
|
|
8046
|
+
I && (y[`${b.id.replace(/\W/g, "")}`] = { browserValue: ((D = I == null ? void 0 : I.variant) == null ? void 0 : D.color) || "" });
|
|
8047
8047
|
}), await this.changeColors(
|
|
8048
8048
|
t,
|
|
8049
|
-
u.map((
|
|
8049
|
+
u.map((b) => b.regionElement),
|
|
8050
8050
|
i,
|
|
8051
8051
|
() => i.getCommandContext().getAllLayouts(),
|
|
8052
8052
|
new Map(Object.entries(y))
|
|
8053
8053
|
);
|
|
8054
8054
|
}
|
|
8055
8055
|
if (t.data.colorPickerEnabled) {
|
|
8056
|
-
const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors),
|
|
8057
|
-
if (
|
|
8056
|
+
const y = await this.availableColors(t, i) || [], E = Object.keys(c.colors), b = y.length === 1 && E.length === 1;
|
|
8057
|
+
if (b) {
|
|
8058
8058
|
const I = y[0], D = E[0];
|
|
8059
8059
|
await this.changeColors(
|
|
8060
8060
|
t,
|
|
@@ -8064,7 +8064,7 @@ class ws {
|
|
|
8064
8064
|
/* @__PURE__ */ new Map([[D, I.variant.color]])
|
|
8065
8065
|
);
|
|
8066
8066
|
}
|
|
8067
|
-
!
|
|
8067
|
+
!b && C.length === 0 && await this.changeColors(
|
|
8068
8068
|
t,
|
|
8069
8069
|
u.map((I) => I.regionElement),
|
|
8070
8070
|
i,
|
|
@@ -8280,8 +8280,8 @@ class vs {
|
|
|
8280
8280
|
if (!p)
|
|
8281
8281
|
return console.error(`Can not find layout for region: ${u.panelId}`), null;
|
|
8282
8282
|
const f = [];
|
|
8283
|
-
return h && f.push(new
|
|
8284
|
-
new
|
|
8283
|
+
return h && f.push(new bt(m)), f.push(
|
|
8284
|
+
new G(
|
|
8285
8285
|
{
|
|
8286
8286
|
stepRegion: u,
|
|
8287
8287
|
stepName: t.stepName,
|
|
@@ -8353,7 +8353,7 @@ class vs {
|
|
|
8353
8353
|
return n(""), { input: e, helperData: {} };
|
|
8354
8354
|
}
|
|
8355
8355
|
}
|
|
8356
|
-
const
|
|
8356
|
+
const qn = new vs();
|
|
8357
8357
|
class Es {
|
|
8358
8358
|
async init(t, e, a) {
|
|
8359
8359
|
const n = t.option;
|
|
@@ -8402,14 +8402,14 @@ class Es {
|
|
|
8402
8402
|
if (!s)
|
|
8403
8403
|
return console.error("No URL for picture!"), null;
|
|
8404
8404
|
n(!0), t.mandatory && a.setMandatoryFulfilled(t.stepName, !1);
|
|
8405
|
-
const l = a.getRegionElements(t.stepName).map((A) => new
|
|
8405
|
+
const l = a.getRegionElements(t.stepName).map((A) => new bt(A.id)), c = (A) => {
|
|
8406
8406
|
const h = a.getLayouts().find((g) => g.panelId === A.panelId);
|
|
8407
8407
|
if (!h)
|
|
8408
8408
|
throw new J(A);
|
|
8409
8409
|
const m = Q();
|
|
8410
8410
|
return {
|
|
8411
8411
|
regionElement: { id: m, region: A },
|
|
8412
|
-
command: new
|
|
8412
|
+
command: new G(
|
|
8413
8413
|
{
|
|
8414
8414
|
stepName: t.stepName,
|
|
8415
8415
|
stepRegion: A,
|
|
@@ -8445,8 +8445,8 @@ class Es {
|
|
|
8445
8445
|
};
|
|
8446
8446
|
}
|
|
8447
8447
|
}
|
|
8448
|
-
const
|
|
8449
|
-
class
|
|
8448
|
+
const Hn = new Es();
|
|
8449
|
+
class bs {
|
|
8450
8450
|
async init(t, e, a) {
|
|
8451
8451
|
const n = t.option;
|
|
8452
8452
|
if (!n)
|
|
@@ -8504,8 +8504,8 @@ class Bs {
|
|
|
8504
8504
|
};
|
|
8505
8505
|
}
|
|
8506
8506
|
}
|
|
8507
|
-
const Yn = new
|
|
8508
|
-
class
|
|
8507
|
+
const Yn = new bs();
|
|
8508
|
+
class Bs {
|
|
8509
8509
|
constructor() {
|
|
8510
8510
|
this.shapeFillId = "spiff-fill-shape";
|
|
8511
8511
|
}
|
|
@@ -8639,7 +8639,7 @@ class bs {
|
|
|
8639
8639
|
return {
|
|
8640
8640
|
id: C,
|
|
8641
8641
|
region: h,
|
|
8642
|
-
command: new
|
|
8642
|
+
command: new G(
|
|
8643
8643
|
{
|
|
8644
8644
|
stepRegion: h,
|
|
8645
8645
|
stepName: t.stepName,
|
|
@@ -8677,7 +8677,7 @@ class bs {
|
|
|
8677
8677
|
}
|
|
8678
8678
|
}
|
|
8679
8679
|
}
|
|
8680
|
-
const zt = new
|
|
8680
|
+
const zt = new Bs();
|
|
8681
8681
|
class Is {
|
|
8682
8682
|
constructor() {
|
|
8683
8683
|
this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
|
|
@@ -8703,7 +8703,7 @@ class Is {
|
|
|
8703
8703
|
);
|
|
8704
8704
|
}
|
|
8705
8705
|
}
|
|
8706
|
-
const Ps = new Is(),
|
|
8706
|
+
const Ps = new Is(), qe = (r, t, e, a, n) => {
|
|
8707
8707
|
if (t.some((d) => d == null))
|
|
8708
8708
|
throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
|
|
8709
8709
|
let i = t.map((d) => d.split(`
|
|
@@ -8735,19 +8735,19 @@ const Ps = new Is(), He = (r, t, e, a, n) => {
|
|
|
8735
8735
|
const o = Et(t.assetUrl), l = o.getFont();
|
|
8736
8736
|
if (n.size) {
|
|
8737
8737
|
const u = r / l.unitsPerEm;
|
|
8738
|
-
return [i, s] =
|
|
8738
|
+
return [i, s] = qe(e, a, r, u, o), [n.size, i, s];
|
|
8739
8739
|
}
|
|
8740
8740
|
const c = 6;
|
|
8741
8741
|
let d = c - Ve;
|
|
8742
8742
|
if (a.length > 0) {
|
|
8743
8743
|
let u = a, h = 0;
|
|
8744
8744
|
for (; (!n.maxSize || d <= n.maxSize) && u; )
|
|
8745
|
-
d += Ve, h = d / l.unitsPerEm, [u, s] =
|
|
8745
|
+
d += Ve, h = d / l.unitsPerEm, [u, s] = qe(e, a, d, h, o);
|
|
8746
8746
|
}
|
|
8747
8747
|
d > c && (d -= Ve), n.minSize && d < n.minSize && (d = n.minSize);
|
|
8748
8748
|
const A = d / l.unitsPerEm;
|
|
8749
|
-
return [i, s] =
|
|
8750
|
-
},
|
|
8749
|
+
return [i, s] = qe(e, a, d, A, o), [d, i, s];
|
|
8750
|
+
}, He = 30;
|
|
8751
8751
|
class Ie extends Error {
|
|
8752
8752
|
constructor(t) {
|
|
8753
8753
|
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Ie.name;
|
|
@@ -8814,7 +8814,7 @@ class Fs {
|
|
|
8814
8814
|
if (p && t.globalPropertyAspectConfigurations) {
|
|
8815
8815
|
const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find((S) => {
|
|
8816
8816
|
var y;
|
|
8817
|
-
return S.type ===
|
|
8817
|
+
return S.type === j.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((E) => E.aspectName).includes(S.name));
|
|
8818
8818
|
});
|
|
8819
8819
|
if (w) {
|
|
8820
8820
|
const y = p.getGlobalPropertyStateManager().getAspect(w.name);
|
|
@@ -8983,7 +8983,7 @@ class Fs {
|
|
|
8983
8983
|
}
|
|
8984
8984
|
getProcessedInput(t, e, a) {
|
|
8985
8985
|
const n = a ? t : this.injectReplaceableText(t, e);
|
|
8986
|
-
return
|
|
8986
|
+
return be(n, {
|
|
8987
8987
|
vertical: e.vertical,
|
|
8988
8988
|
uppercase: e.uppercase
|
|
8989
8989
|
});
|
|
@@ -9000,7 +9000,7 @@ class Fs {
|
|
|
9000
9000
|
const l = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
9001
9001
|
for (const A of e) {
|
|
9002
9002
|
if (!A.fontData)
|
|
9003
|
-
throw new
|
|
9003
|
+
throw new z("Failed to resolve font data for text.");
|
|
9004
9004
|
const [u, h] = pe(
|
|
9005
9005
|
A.fontSize,
|
|
9006
9006
|
A.fontData,
|
|
@@ -9056,9 +9056,9 @@ class Fs {
|
|
|
9056
9056
|
let w = (A = n.storage) == null ? void 0 : A.text;
|
|
9057
9057
|
const S = e.getWorkflowExperience().getBundle();
|
|
9058
9058
|
if (S && t.globalPropertyAspectConfigurations) {
|
|
9059
|
-
const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((
|
|
9059
|
+
const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, E = y == null ? void 0 : y.find((b) => {
|
|
9060
9060
|
var I;
|
|
9061
|
-
return
|
|
9061
|
+
return b.type === j.Text && ((I = t.globalPropertyAspectConfigurations) == null ? void 0 : I.map((D) => D.aspectName).includes(b.name));
|
|
9062
9062
|
});
|
|
9063
9063
|
if (E) {
|
|
9064
9064
|
const I = S.getGlobalPropertyStateManager().getAspect(E.name);
|
|
@@ -9071,7 +9071,7 @@ class Fs {
|
|
|
9071
9071
|
f,
|
|
9072
9072
|
async () => {
|
|
9073
9073
|
e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
|
|
9074
|
-
const y = o.map((
|
|
9074
|
+
const y = o.map((b) => new ja(b.id, p)), E = new $(y);
|
|
9075
9075
|
e.getCommandDispatcher()(E);
|
|
9076
9076
|
}
|
|
9077
9077
|
), o.length === 0 && l) {
|
|
@@ -9091,7 +9091,7 @@ class Fs {
|
|
|
9091
9091
|
e.getCommandDispatcher()(E.command);
|
|
9092
9092
|
}
|
|
9093
9093
|
} else {
|
|
9094
|
-
const { command: y } =
|
|
9094
|
+
const { command: y } = W.updateInputText(
|
|
9095
9095
|
w || "",
|
|
9096
9096
|
o,
|
|
9097
9097
|
t,
|
|
@@ -9106,7 +9106,7 @@ class Fs {
|
|
|
9106
9106
|
if (m && t.globalPropertyAspectConfigurations) {
|
|
9107
9107
|
const g = (h = m.getGlobalPropertyConfiguration()) == null ? void 0 : h.aspects, p = g == null ? void 0 : g.find((f) => {
|
|
9108
9108
|
var C;
|
|
9109
|
-
return f.type ===
|
|
9109
|
+
return f.type === j.Text && ((C = t.globalPropertyAspectConfigurations) == null ? void 0 : C.map((w) => w.aspectName).includes(f.name));
|
|
9110
9110
|
});
|
|
9111
9111
|
if (p) {
|
|
9112
9112
|
const C = m.getGlobalPropertyStateManager().getAspect(p.name);
|
|
@@ -9128,7 +9128,7 @@ class Fs {
|
|
|
9128
9128
|
e.getCommandDispatcher()(S.command);
|
|
9129
9129
|
}
|
|
9130
9130
|
} else {
|
|
9131
|
-
const { command: w } =
|
|
9131
|
+
const { command: w } = W.updateInputText(
|
|
9132
9132
|
C,
|
|
9133
9133
|
o,
|
|
9134
9134
|
t,
|
|
@@ -9168,7 +9168,7 @@ class Fs {
|
|
|
9168
9168
|
throw new vt(t);
|
|
9169
9169
|
const a = e.fileLink;
|
|
9170
9170
|
if (!a)
|
|
9171
|
-
throw new
|
|
9171
|
+
throw new Ht(e);
|
|
9172
9172
|
const n = await Nt(a);
|
|
9173
9173
|
return {
|
|
9174
9174
|
assetUrl: a,
|
|
@@ -9192,7 +9192,7 @@ class Fs {
|
|
|
9192
9192
|
}
|
|
9193
9193
|
const m = await this.changeInputTextWithRegion(
|
|
9194
9194
|
t,
|
|
9195
|
-
t.data.size ||
|
|
9195
|
+
t.data.size || He,
|
|
9196
9196
|
A,
|
|
9197
9197
|
a.text || "",
|
|
9198
9198
|
a,
|
|
@@ -9217,7 +9217,7 @@ class Fs {
|
|
|
9217
9217
|
i
|
|
9218
9218
|
), m = await this.changeInputTextWithRegion(
|
|
9219
9219
|
t,
|
|
9220
|
-
t.data.size ||
|
|
9220
|
+
t.data.size || He,
|
|
9221
9221
|
A,
|
|
9222
9222
|
((u = h[0]) == null ? void 0 : u.newElement.input) || a.text || t.data.defaultText || "",
|
|
9223
9223
|
a,
|
|
@@ -9279,7 +9279,7 @@ class Fs {
|
|
|
9279
9279
|
stepName: t,
|
|
9280
9280
|
align: this.textAlign(a),
|
|
9281
9281
|
fill: i.color ? i.color : w,
|
|
9282
|
-
fontSize: a.size ||
|
|
9282
|
+
fontSize: a.size || He,
|
|
9283
9283
|
fontData: n,
|
|
9284
9284
|
id: m,
|
|
9285
9285
|
layer: A.layer,
|
|
@@ -9298,9 +9298,9 @@ class Fs {
|
|
|
9298
9298
|
curved: a.curved,
|
|
9299
9299
|
paths: a.paths,
|
|
9300
9300
|
fillSpotColorDefinition: f
|
|
9301
|
-
}, y = [], E = /* @__PURE__ */ new Map(),
|
|
9301
|
+
}, y = [], E = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
9302
9302
|
if (!S.fontData)
|
|
9303
|
-
throw new
|
|
9303
|
+
throw new z("Failed to resolve font data for text.");
|
|
9304
9304
|
const [I, D] = pe(
|
|
9305
9305
|
S.fontSize,
|
|
9306
9306
|
S.fontData,
|
|
@@ -9315,13 +9315,13 @@ class Fs {
|
|
|
9315
9315
|
[l],
|
|
9316
9316
|
{ size: a.size, minSize: a.minSize, maxSize: a.maxSize }
|
|
9317
9317
|
);
|
|
9318
|
-
E.set(S.id, I),
|
|
9318
|
+
E.set(S.id, I), b.set(S.id, D);
|
|
9319
9319
|
const F = a.curved || a.vertical ? l : (D || []).join(`
|
|
9320
9320
|
`);
|
|
9321
9321
|
y.push(
|
|
9322
9322
|
this.generateTextChangeCommandsForRegion(I, a, S.id, F)
|
|
9323
9323
|
);
|
|
9324
|
-
const k = new
|
|
9324
|
+
const k = new G(S, h);
|
|
9325
9325
|
return {
|
|
9326
9326
|
regionElement: { id: m, region: A },
|
|
9327
9327
|
commands: [k, ...y],
|
|
@@ -9376,13 +9376,13 @@ class Fs {
|
|
|
9376
9376
|
return d && d(!0), { info: "0" };
|
|
9377
9377
|
const S = s.getProfanities(), y = Ze(u.toLowerCase());
|
|
9378
9378
|
for (const E of y)
|
|
9379
|
-
for (const
|
|
9380
|
-
const I = S[
|
|
9379
|
+
for (const b in S) {
|
|
9380
|
+
const I = S[b].toLowerCase().replace(/\s/g, "");
|
|
9381
9381
|
if (E === I)
|
|
9382
9382
|
return l(!0), { error: "Blocked profanity." };
|
|
9383
9383
|
}
|
|
9384
9384
|
return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
|
|
9385
|
-
`) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((
|
|
9385
|
+
`) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((b) => b) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
|
|
9386
9386
|
})();
|
|
9387
9387
|
if (f.error) {
|
|
9388
9388
|
c(f.error);
|
|
@@ -9409,7 +9409,7 @@ class Fs {
|
|
|
9409
9409
|
return new $(C);
|
|
9410
9410
|
}
|
|
9411
9411
|
}
|
|
9412
|
-
const
|
|
9412
|
+
const W = new Fs();
|
|
9413
9413
|
class xs {
|
|
9414
9414
|
}
|
|
9415
9415
|
const ks = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtdHiADw6qAAAB2AAAAThsb2Nh5CzfJAAABWgAAACebWF4cACVAEwAAAFYAAAAIG5hbWXeIPPyAAAbzAAAAiJ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4gAsAAb/+wAH//sACP/xAAn/zgAK/+cAC//dAAz/9gAN/9gADv/tAA//7AAQ/+kAEf/rABL/3QAT/90AFP/hABX/3QAW/90AMf/nADL/vwAz/+cANP/nADX/8QA2//EAN//sADj/5wA5//YAOv/2ADv/4gA8//EAPf/2AD7/+wA///sAQP/2AEH/+wBC/+wAQ//7AET/7ABF/9MARv/7AEf/yQBI/84ASf+wAEr/xABL/+cADgAG//sACf/xAAv/7AAN//sADv/7AA8AAAAR//EAEv/0ABP/9gAU//EAFf/xABb/7AAx//YAQP/2ACkABv/7AAf/9gAI//sACf/iAAr/5wAL/+wADP/vAA3/3QAO//sAD//qABD/8QAR/+wAEv/nABP/8QAU/+cAFf/iABb/7AAx/+cAMv/vADP//AA0/+cANf/7ADb//gA4//EAOf/8ADr//AA7/+kAPP/6AD3//QA+//4AP//7AEL/6gBD//0ARP/2AEX/7ABG//EAR//YAEj/4gBJ/+wASv/LAEv//AAsAAb/+wAH//EACP/2AAn/0wAK/+IAC//JAAz/5wAN/90ADv/iAA//7AAQ/+cAEf/sABL/3QAT/9MAFP/iABX/zgAW/+cAMf/YADL/xAAz/+wANP/dADX/6AA2//EAN//xADj/4wA5//EAOv/2ADv/7AA8/+wAPf/sAD7/9gA//+wAQP/iAEH/8QBC/90AQ//nAET/5wBF/8QARv/mAEf/xABI/8kASf+1AEr/rQBL/+IALAAG//sAB//7AAj/9gAJ/9MACv/2AAv/ugAM/+kADf/dAA7/9gAP/+wAEP/2ABH/8AAS//EAE//2ABT/5wAV/9gAFv/sADH/vwAy/9UAM//eADT/3wA1//EANv/xADf/9gA4/+IAOf/xADr/9gA7/+wAPP/xAD3/9gA+//EAP//2AED/2ABB//EAQv/nAEP/9gBE/+cARf/TAEb/8QBH/9gASP/YAEn/xgBK/78AS//xACsABv/7AAf/9gAI/+wACf/TAAr/5wAL/90ADP/lAA3/zgAO/90AD//dABD/7AAR/+IAEv/iABP/2AAU/+IAFf/JABb/5wAx/90AMv/EADP/6wA0/+EAN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zgAl/+8AMv+3ADP/9wA0/+sANf/3ADb/8QA3//kAOP/uADn/8wA6//sAO//YADz/8wA9/+4APv/3AD//8wBA/+MAQf/3AEL/6QBD/+8ARP/nAEX/1ABG/+8AR//JAEj/zABJ/6YASv/JAEv/3AAcAAb/+wAX//MAJf/7ADL/6wAz//4ANP/uADX/+wA2//4AN//+ADj/8wA5//0AOv/+ADv/7gA8//4APf/+AD7/+wA///4AQP/uAEL/9wBD//4ARP/+AEX/+QBG//4AR//uAEj/9wBJ/+4ASv/zAEv//gAYAAb/+wAx//YAMv/rADP//wA0//MANf//ADYAAQA3//8AOP/zADv/6AA8//4APf/+AD4AAQBA/+4AQf//AEL/8wBD//4ARP/4AEX//QBH/+wASP/3AEn/7ABK//EASwABABwABv/2ABf/4QAy/8oAM//9ADT/+QA1//4ANv/7ADf//gA4//MAOf/+ADr//wA7/+EAPP/7AD3//gA+//4AP//+AED/7wBB//4AQv/zAEP//gBE//sARf/7AEb//gBH/+8ASP/5AEn/2gBK//oAS//+AB0ABv/nABf/5wAx/7AAMv/hADP/7gA0/7QANf/rADb/5wA3/+4AOP+sADn/6wA6//kAO/+3ADz/6gA9/+8APv/nAD//5wBA/6wAQf/uAEL/rgBD/+cARP+8AEX/3ABG/9oAR//cAEj/0QBJ/9oASv/RAEv/7wAeAAb/9gAX//cAI//9ADH/vwAy/+4AM//5ADT/2gA1//4ANv/3ADf/+wA4/9oAOf/3ADr/+wA7/+cAPP/7AD3/+QA+//cAP//5AED/1ABB//sAQv/cAEP/9wBE/+8ARf/JAEb/6wBH/8QASP++AEn/5wBK/8EAS//+ABwAF//7ADH/7AAy/+QAM//+ADT/7gA1//4ANgAAADf//QA4//cAOf/7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vAEn/6wBK/+gAS//+AB4ABv/7ABf/8wAa//4AHf/3ACX/9wAq//4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAPP/5AD3/+gA+//EAP//6AED/2gBB/+8AQv/aAET/7wBF/9cARv/qAEf/xgBI/7sASf/qAEr/tABL//sAHQAG/+cAF//oACT/+gAy/+IAM//xADT/zAA1/+8ANv/sADf/+gA4/8wAOf/3ADr/8wA7/8kAPP/uAD3/7wA+/+wAP//rAED/yQBB//cAQv/MAEP/+ABE/9QARf/KAEb/2gBH/8EASP/EAEn/4gBK/7cAS//vAB0ABv/xABv/+QAl/+4AMv+8ADP/7wA0/9wANf/zADb/6AA3//cAOP/hADn/5gA6//MAO//aADz/6QA9//MAPv/pAD//6wBA/+MAQf/3AEL/2gBD/+kARP/rAEX/1ABG/+kAR//JAEj/zABJ/7QASv+7AEv/5wAbAAb/9gAy/6YAM//9ADT/0wA1//oANv/+ADf//QA4/9UAOf/3ADr//wA7/7kAPP/6AD3//gA+//sAP//7AED/0ABB//oAQv/XAEP/+QBE/+IARf/zAEb/9wBH/+8ASP/vAEn/6gBK/+cAS//6ABwABv/7AC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//EACf/sAAr/9gAM/+cADv/6AA//8QAQ//EAEf/vABL/4QAT//EAFP/iABX/5wAy/+kAM//9ADT/5wA1//sANv/9ADf//gA4/+sAOf/+ADoAAQA7/+gAPP/9AD3/9wA+//0AP//9AED/6wBBAAEAQv/pAEP/+QBE/+wARgACAEf/6QBI/+8ASf/nAEr/6wBL//sAKQAH//sACP/xAAn/5wAK/+4AC//2AAz/4gAN//sADv/1AA//8QAQ/90AEf/kABL/4gAT/+wAFP/YABX/3QAx//YAMv+5ADP/+AA0/+MANf/3ADb/+AA3//kAOP/iADn/+gA6//0AO//OADz//QA9//4APv/5AD///ABA/+YAQv/jAEP/9wBE/+YARf/vAEb//gBH/+cASP/vAEn/0QBK/+YAS//9ACgAB//2AAj/4gAJ/90ACv/sAAv/4gAM/+gADf/iAA7/9QAP/+gAEP/dABH/4AAS/+YAE//OABT/4gAV/90AJP/7ADH/9gAy/8EAM//vADT/3wA2//QAN//4ADj/4wA5/+kAOv/6ADv/0QA8/+YAPf/zAD7/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//7ACkAB//2AAj/9gAJ/90ACv/yAAz/8QAO//EAD//wABD/6gAR/+wAEv/mABP/9AAU/+wAFf/rABf/zgAx//YAMv/OAD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/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", et = (r) => Mr("http://www.w3.org/2000/svg", r), Ms = (r, t) => {
|
|
@@ -9444,7 +9444,7 @@ function Rs(r, t, e, a) {
|
|
|
9444
9444
|
const n = e / r, i = a / t;
|
|
9445
9445
|
return n > 1 && i > 1 ? Math.min(n, i) : n > 1 && i < 1 ? i : n < 1 && i > 1 ? n : Math.min(n, i);
|
|
9446
9446
|
}
|
|
9447
|
-
const
|
|
9447
|
+
const Ha = {
|
|
9448
9448
|
m: ["x", "y"],
|
|
9449
9449
|
z: [],
|
|
9450
9450
|
l: ["x", "y"],
|
|
@@ -9474,7 +9474,7 @@ class Os {
|
|
|
9474
9474
|
const n = (i) => {
|
|
9475
9475
|
const s = [], o = i.relative ? i.type : i.type.toUpperCase();
|
|
9476
9476
|
let l = e !== o;
|
|
9477
|
-
const c =
|
|
9477
|
+
const c = Ha[i.type];
|
|
9478
9478
|
l && (s.push(o), e = o);
|
|
9479
9479
|
for (const d of c) {
|
|
9480
9480
|
const A = i[d];
|
|
@@ -9499,7 +9499,7 @@ class Os {
|
|
|
9499
9499
|
const e = /([mzlhvcsqta])([^mzlhvcsqta]*)/gi, a = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, n = [];
|
|
9500
9500
|
let i;
|
|
9501
9501
|
for (e.lastIndex = 0; i = e.exec(t); ) {
|
|
9502
|
-
const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c =
|
|
9502
|
+
const s = i[1].toLowerCase(), o = (i[2].match(a) || []).map(parseFloat), l = s === i[1], c = Ha[s];
|
|
9503
9503
|
if (o.length < c.length)
|
|
9504
9504
|
throw new Ft(
|
|
9505
9505
|
`Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
|
|
@@ -9574,8 +9574,8 @@ class $s extends xs {
|
|
|
9574
9574
|
y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
|
|
9575
9575
|
const E = et("g");
|
|
9576
9576
|
E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
|
|
9577
|
-
const
|
|
9578
|
-
|
|
9577
|
+
const b = et("g");
|
|
9578
|
+
b.classList.add("module-layer1"), w.appendChild(b), b.setAttribute("stroke-width", "3"), b.setAttribute("stroke", "rgb(45,41,38)"), b.setAttribute("fill", "rgb(45,41,38)"), b.setAttribute("transform", "translate(0.5,0)"), b.innerHTML = o;
|
|
9579
9579
|
const I = et("g");
|
|
9580
9580
|
I.classList.add("module-layer2"), w.appendChild(I), I.setAttribute("fill", "rgb(255,209,0)"), I.setAttribute("transform", "translate(1,-0.1)"), I.innerHTML = o;
|
|
9581
9581
|
const D = et("g");
|
|
@@ -9599,7 +9599,7 @@ class $s extends xs {
|
|
|
9599
9599
|
async function Jn(r) {
|
|
9600
9600
|
if (r === "Vegemite")
|
|
9601
9601
|
return new $s();
|
|
9602
|
-
throw new
|
|
9602
|
+
throw new z(`Failed to resolve Module, Module ${r} not found`);
|
|
9603
9603
|
}
|
|
9604
9604
|
const ne = v`
|
|
9605
9605
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
@@ -9653,7 +9653,7 @@ const ne = v`
|
|
|
9653
9653
|
}
|
|
9654
9654
|
}
|
|
9655
9655
|
}
|
|
9656
|
-
`, rd = async (r) => (await
|
|
9656
|
+
`, rd = async (r) => (await B.getShadowGraphqlClient().query({
|
|
9657
9657
|
query: Vs,
|
|
9658
9658
|
fetchPolicy: "cache-first",
|
|
9659
9659
|
errorPolicy: "all",
|
|
@@ -9705,7 +9705,7 @@ const ne = v`
|
|
|
9705
9705
|
name
|
|
9706
9706
|
}
|
|
9707
9707
|
}
|
|
9708
|
-
`,
|
|
9708
|
+
`, Ba = v`
|
|
9709
9709
|
${zs}
|
|
9710
9710
|
fragment ProductCollectionProductFields on ProductCollectionProduct {
|
|
9711
9711
|
id
|
|
@@ -9716,7 +9716,7 @@ const ne = v`
|
|
|
9716
9716
|
}
|
|
9717
9717
|
}
|
|
9718
9718
|
`, re = (r) => v`
|
|
9719
|
-
${r ?
|
|
9719
|
+
${r ? Ba : ""}
|
|
9720
9720
|
fragment ProductCollectionFields on ProductCollection {
|
|
9721
9721
|
id
|
|
9722
9722
|
name
|
|
@@ -9892,7 +9892,7 @@ const ne = v`
|
|
|
9892
9892
|
}
|
|
9893
9893
|
}
|
|
9894
9894
|
`, js = v`
|
|
9895
|
-
${
|
|
9895
|
+
${Ba}
|
|
9896
9896
|
query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
|
|
9897
9897
|
productCollections(ids: [$id], productIds: $productIds) {
|
|
9898
9898
|
id
|
|
@@ -9901,7 +9901,7 @@ const ne = v`
|
|
|
9901
9901
|
}
|
|
9902
9902
|
}
|
|
9903
9903
|
}
|
|
9904
|
-
`,
|
|
9904
|
+
`, qs = v`
|
|
9905
9905
|
query GetProductCollectionForFilteredProducts(
|
|
9906
9906
|
$id: String!
|
|
9907
9907
|
$filters: ProductCollectionProductFilterInput
|
|
@@ -9924,8 +9924,8 @@ const ne = v`
|
|
|
9924
9924
|
}
|
|
9925
9925
|
}
|
|
9926
9926
|
}
|
|
9927
|
-
`,
|
|
9928
|
-
${
|
|
9927
|
+
`, Hs = v`
|
|
9928
|
+
${Ba}
|
|
9929
9929
|
query GetProductCollectionForProductsFeed(
|
|
9930
9930
|
$id: String!
|
|
9931
9931
|
$limit: Int
|
|
@@ -10291,12 +10291,14 @@ class Co {
|
|
|
10291
10291
|
var w;
|
|
10292
10292
|
this.workflowStatePromiseQueue = new kn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
|
10293
10293
|
var E;
|
|
10294
|
-
if (!this.previewService)
|
|
10294
|
+
if (console.log("rendering layouts"), !this.previewService)
|
|
10295
10295
|
return;
|
|
10296
10296
|
const S = this.getCommandContext().getAllLayouts(), y = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
|
|
10297
|
-
if (y)
|
|
10298
|
-
|
|
10299
|
-
|
|
10297
|
+
if (y) {
|
|
10298
|
+
console.log(`${y.size} layouts to render`);
|
|
10299
|
+
for (const [, b] of y)
|
|
10300
|
+
b.render(S);
|
|
10301
|
+
}
|
|
10300
10302
|
}, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = f, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, (w = this.renderableContextService) == null || w.setWorkflowManager(this), this.isReloadedTransaction = p, this.workflow.steps.forEach((S) => {
|
|
10301
10303
|
this.stepTags[S.stepName] = S.tags ?? [];
|
|
10302
10304
|
}), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
|
|
@@ -10620,7 +10622,7 @@ class Co {
|
|
|
10620
10622
|
const l = o[0];
|
|
10621
10623
|
if (s.type === P.Model) {
|
|
10622
10624
|
if (!this.modelContainer)
|
|
10623
|
-
throw new
|
|
10625
|
+
throw new z(
|
|
10624
10626
|
"We should always have a model container when injecting a preview!"
|
|
10625
10627
|
);
|
|
10626
10628
|
const u = (A = l.asset) == null ? void 0 : A.fileLink;
|
|
@@ -10645,7 +10647,7 @@ class Co {
|
|
|
10645
10647
|
}
|
|
10646
10648
|
s.data.targetMaterials.forEach((m) => {
|
|
10647
10649
|
if (!this.modelContainer)
|
|
10648
|
-
throw new
|
|
10650
|
+
throw new z(
|
|
10649
10651
|
"We should always have a model container when injecting a preview!"
|
|
10650
10652
|
);
|
|
10651
10653
|
this.modelContainer.applyMaterialVariant(m, s.option.id, u);
|
|
@@ -10719,7 +10721,7 @@ class Co {
|
|
|
10719
10721
|
serialize() {
|
|
10720
10722
|
const t = this.getCommandContext().getState();
|
|
10721
10723
|
if (!t)
|
|
10722
|
-
throw new
|
|
10724
|
+
throw new z("Attempted to serialize state before it was initialized.");
|
|
10723
10725
|
const e = St(t.transaction), a = this.dehydrateState(e);
|
|
10724
10726
|
return JSON.stringify(a);
|
|
10725
10727
|
}
|
|
@@ -10770,10 +10772,10 @@ class Co {
|
|
|
10770
10772
|
return Promise.resolve({ stepElements: {}, commands: [] });
|
|
10771
10773
|
const n = async (c, d, A) => {
|
|
10772
10774
|
if (c.type === P.SilentIllustration) {
|
|
10773
|
-
const u = await new
|
|
10775
|
+
const u = await new qa(c, d).trigger();
|
|
10774
10776
|
return { step: c, results: u };
|
|
10775
10777
|
} else if (c.type === P.ProductOverlay) {
|
|
10776
|
-
const u = await new
|
|
10778
|
+
const u = await new qa(
|
|
10777
10779
|
c,
|
|
10778
10780
|
d,
|
|
10779
10781
|
A
|
|
@@ -10818,7 +10820,7 @@ class Co {
|
|
|
10818
10820
|
}
|
|
10819
10821
|
async updateTransactionStakeholders() {
|
|
10820
10822
|
var e;
|
|
10821
|
-
const t = await
|
|
10823
|
+
const t = await B.getShadowGraphqlClient().query({
|
|
10822
10824
|
query: Di,
|
|
10823
10825
|
errorPolicy: "all",
|
|
10824
10826
|
fetchPolicy: "no-cache",
|
|
@@ -10829,7 +10831,7 @@ class Co {
|
|
|
10829
10831
|
!((e = t == null ? void 0 : t.data) != null && e.transactions) || t.data.transactions.length !== 1 ? (this.transaction.currentStakeholder = void 0, this.transaction.stakeholders = void 0) : (this.transaction.stakeholders = t.data.transactions[0].stakeholders, this.transaction.currentStakeholder = t.data.transactions[0].currentStakeholder);
|
|
10830
10832
|
}
|
|
10831
10833
|
async approveTransaction(t) {
|
|
10832
|
-
await
|
|
10834
|
+
await B.getShadowGraphqlClient().mutate({
|
|
10833
10835
|
mutation: uo,
|
|
10834
10836
|
errorPolicy: "all",
|
|
10835
10837
|
fetchPolicy: "no-cache",
|
|
@@ -10840,7 +10842,7 @@ class Co {
|
|
|
10840
10842
|
});
|
|
10841
10843
|
}
|
|
10842
10844
|
async rejectTransaction(t) {
|
|
10843
|
-
await
|
|
10845
|
+
await B.getShadowGraphqlClient().mutate({
|
|
10844
10846
|
mutation: ho,
|
|
10845
10847
|
errorPolicy: "all",
|
|
10846
10848
|
fetchPolicy: "no-cache",
|
|
@@ -10853,7 +10855,7 @@ class Co {
|
|
|
10853
10855
|
async reset() {
|
|
10854
10856
|
this.commandContext.getAllLayouts().forEach(
|
|
10855
10857
|
(e) => e.layoutState.elements.forEach((a) => {
|
|
10856
|
-
this.getCommandDispatcher()(new
|
|
10858
|
+
this.getCommandDispatcher()(new bt(a.id));
|
|
10857
10859
|
})
|
|
10858
10860
|
), this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, await this.ensureStepsAreLoaded();
|
|
10859
10861
|
}
|
|
@@ -10863,11 +10865,11 @@ class Co {
|
|
|
10863
10865
|
this.stepSelections = {
|
|
10864
10866
|
...this.stepSelections,
|
|
10865
10867
|
[t]: { selectedVariants: e }
|
|
10866
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((E,
|
|
10868
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((E, b) => E + b.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, D) => I + D, 0), 0), this.workflow.steps.forEach((E) => {
|
|
10867
10869
|
yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
|
|
10868
10870
|
});
|
|
10869
10871
|
const s = this.allScenes, o = Dt(s, i), l = Dt(s, this.stepSelections), c = o.map((E) => E.silentSteps).flat(), A = l.map((E) => E.silentSteps).flat().filter(
|
|
10870
|
-
(E) => !c.some((
|
|
10872
|
+
(E) => !c.some((b) => b.stepName === E.stepName)
|
|
10871
10873
|
);
|
|
10872
10874
|
c.forEach((E) => {
|
|
10873
10875
|
yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1);
|
|
@@ -10881,15 +10883,15 @@ class Co {
|
|
|
10881
10883
|
const g = this.workflow.steps.find((E) => E.stepName === t);
|
|
10882
10884
|
if ((g == null ? void 0 : g.type) === P.Frame) {
|
|
10883
10885
|
const E = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
|
|
10884
|
-
E == null || E.setTargetElements(a.map((
|
|
10886
|
+
E == null || E.setTargetElements(a.map((b) => b.id));
|
|
10885
10887
|
}
|
|
10886
|
-
const p = u.map((E) => new
|
|
10888
|
+
const p = u.map((E) => new bt(E.id)), f = new Wa(this.constructSerializableWorkflow()), C = [...m, ...p, f];
|
|
10887
10889
|
C.length > 0 && this.commandContext.apply(new $(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
10888
10890
|
const w = this.getInvalidModelVariants(), S = this.modelContainer;
|
|
10889
10891
|
if (S) {
|
|
10890
10892
|
const E = w.map(
|
|
10891
|
-
(
|
|
10892
|
-
|
|
10893
|
+
(b) => S.applyModelVariant(
|
|
10894
|
+
b,
|
|
10893
10895
|
{
|
|
10894
10896
|
contextService: this.getLayoutPreviewService()
|
|
10895
10897
|
},
|
|
@@ -10934,12 +10936,12 @@ class Co {
|
|
|
10934
10936
|
this.stepSpecificServices[l.stepName] = {
|
|
10935
10937
|
module: await Jn(l.data.module)
|
|
10936
10938
|
}, a.push(
|
|
10937
|
-
|
|
10939
|
+
qn.init(l, this, this.reloadedState)
|
|
10938
10940
|
);
|
|
10939
10941
|
break;
|
|
10940
10942
|
case P.Picture:
|
|
10941
10943
|
a.push(
|
|
10942
|
-
|
|
10944
|
+
Hn.init(l, this, this.reloadedState)
|
|
10943
10945
|
);
|
|
10944
10946
|
break;
|
|
10945
10947
|
case P.Question:
|
|
@@ -10951,7 +10953,7 @@ class Co {
|
|
|
10951
10953
|
a.push(zt.init(l, this, this.reloadedState));
|
|
10952
10954
|
break;
|
|
10953
10955
|
case P.Text:
|
|
10954
|
-
a.push(
|
|
10956
|
+
a.push(W.init(l, this, this.reloadedState));
|
|
10955
10957
|
break;
|
|
10956
10958
|
}
|
|
10957
10959
|
const i = (await Promise.allSettled(a)).map((l) => {
|
|
@@ -11011,7 +11013,7 @@ class Co {
|
|
|
11011
11013
|
this.validationCallbacks.forEach((t) => t(this.validationErrors));
|
|
11012
11014
|
}
|
|
11013
11015
|
traversableScenes() {
|
|
11014
|
-
return
|
|
11016
|
+
return qi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
|
|
11015
11017
|
}
|
|
11016
11018
|
}
|
|
11017
11019
|
class st {
|
|
@@ -11344,7 +11346,7 @@ class vo extends it {
|
|
|
11344
11346
|
* @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
|
|
11345
11347
|
*/
|
|
11346
11348
|
selectVariant(t) {
|
|
11347
|
-
return
|
|
11349
|
+
return Hn.selectVariant(
|
|
11348
11350
|
this.step,
|
|
11349
11351
|
t.getResource(),
|
|
11350
11352
|
this.manager,
|
|
@@ -11369,7 +11371,7 @@ class Eo extends it {
|
|
|
11369
11371
|
return this.step.data.displayType || ((t = this.step.option) == null ? void 0 : t.displayType);
|
|
11370
11372
|
}
|
|
11371
11373
|
}
|
|
11372
|
-
class
|
|
11374
|
+
class bo extends it {
|
|
11373
11375
|
constructor(t, e, a) {
|
|
11374
11376
|
super(t, e, a);
|
|
11375
11377
|
}
|
|
@@ -11424,7 +11426,7 @@ class Bo extends it {
|
|
|
11424
11426
|
return t;
|
|
11425
11427
|
}
|
|
11426
11428
|
}
|
|
11427
|
-
class
|
|
11429
|
+
class Bo extends it {
|
|
11428
11430
|
constructor(t, e, a) {
|
|
11429
11431
|
super(t, e, a);
|
|
11430
11432
|
}
|
|
@@ -11433,7 +11435,7 @@ class bo extends it {
|
|
|
11433
11435
|
* @param variant The font variant to use.
|
|
11434
11436
|
*/
|
|
11435
11437
|
async selectVariant(t) {
|
|
11436
|
-
|
|
11438
|
+
W.selectVariant(
|
|
11437
11439
|
this.step,
|
|
11438
11440
|
t.getResource(),
|
|
11439
11441
|
this.manager,
|
|
@@ -11460,7 +11462,7 @@ class bo extends it {
|
|
|
11460
11462
|
* @returns A list of colors that can be used to fill the text.
|
|
11461
11463
|
*/
|
|
11462
11464
|
getAvailableFillColors() {
|
|
11463
|
-
return this.step.data.colorPickerEnabled ?
|
|
11465
|
+
return this.step.data.colorPickerEnabled ? W.availableFillColors(this.step) : [];
|
|
11464
11466
|
}
|
|
11465
11467
|
/**
|
|
11466
11468
|
* Changes the fill of text related to this step to the new fill value.
|
|
@@ -11468,7 +11470,7 @@ class bo extends it {
|
|
|
11468
11470
|
*/
|
|
11469
11471
|
async setFillColor(t) {
|
|
11470
11472
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
11471
|
-
await
|
|
11473
|
+
await W.changeFillColor(this.step, t, e, this.manager);
|
|
11472
11474
|
}
|
|
11473
11475
|
/**
|
|
11474
11476
|
* Gets the color currently applied to the element.
|
|
@@ -11478,23 +11480,23 @@ class bo extends it {
|
|
|
11478
11480
|
return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.color) || "#000000";
|
|
11479
11481
|
}
|
|
11480
11482
|
getAvailableFillImages() {
|
|
11481
|
-
return
|
|
11483
|
+
return W.availableFillImages(this.step);
|
|
11482
11484
|
}
|
|
11483
11485
|
async setFillImage(t) {
|
|
11484
11486
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
11485
|
-
await
|
|
11487
|
+
await W.changeFillImage(this.step, t, e, this.manager);
|
|
11486
11488
|
}
|
|
11487
11489
|
getFillImage() {
|
|
11488
11490
|
var t;
|
|
11489
11491
|
return (t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.fillImage;
|
|
11490
11492
|
}
|
|
11491
11493
|
getAlignment() {
|
|
11492
|
-
const t =
|
|
11494
|
+
const t = W.findLayoutElements(this.manager, this.step);
|
|
11493
11495
|
return t == null ? void 0 : t[0].align;
|
|
11494
11496
|
}
|
|
11495
11497
|
setAlignment(t) {
|
|
11496
11498
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
11497
|
-
|
|
11499
|
+
W.changeAlignment(this.step, t, e, this.manager);
|
|
11498
11500
|
}
|
|
11499
11501
|
/**
|
|
11500
11502
|
* When true & the step has replaceable text configured the user will be
|
|
@@ -11519,11 +11521,11 @@ class bo extends it {
|
|
|
11519
11521
|
const e = {
|
|
11520
11522
|
input: t,
|
|
11521
11523
|
helperData: {}
|
|
11522
|
-
}, a =
|
|
11524
|
+
}, a = W.findLayoutElements(this.manager, this.step), n = W.filterUnsupportedCharacters(t, (d = a[0]) == null ? void 0 : d.fontData), i = !!this.step.data && !!this.step.data.maxLength && n.length > this.step.data.maxLength;
|
|
11523
11525
|
i || (e.input = n);
|
|
11524
11526
|
const s = a.length <= 0, o = s ? { inputText: n, text: n } : { inputText: n };
|
|
11525
11527
|
this.manager.updateStorage(this.step.stepName, o);
|
|
11526
|
-
const l = this.manager.getStepStorage(this.step.stepName), c =
|
|
11528
|
+
const l = this.manager.getStepStorage(this.step.stepName), c = W.getProcessedInput(
|
|
11527
11529
|
n,
|
|
11528
11530
|
this.step.data,
|
|
11529
11531
|
(l == null ? void 0 : l.customiseAllText) ?? !1
|
|
@@ -11533,7 +11535,7 @@ class bo extends it {
|
|
|
11533
11535
|
text: c
|
|
11534
11536
|
});
|
|
11535
11537
|
else {
|
|
11536
|
-
const { command: A, errorData: u, helperData: h } =
|
|
11538
|
+
const { command: A, errorData: u, helperData: h } = W.updateInputText(
|
|
11537
11539
|
n,
|
|
11538
11540
|
a,
|
|
11539
11541
|
this.step,
|
|
@@ -11572,8 +11574,8 @@ class bo extends it {
|
|
|
11572
11574
|
if (!(t != null && t.defaultCleared) && this.step.data.deleteDefaultOnFocus) {
|
|
11573
11575
|
const e = this.setText("");
|
|
11574
11576
|
this.manager.updateStorage(this.step.stepName, { defaultCleared: !0, inputText: "" });
|
|
11575
|
-
const a =
|
|
11576
|
-
return
|
|
11577
|
+
const a = W.findLayoutElements(this.manager, this.step);
|
|
11578
|
+
return W.updateInputText("", a, this.step, this.manager), e;
|
|
11577
11579
|
}
|
|
11578
11580
|
}
|
|
11579
11581
|
hasColorPicker() {
|
|
@@ -11610,7 +11612,7 @@ class bo extends it {
|
|
|
11610
11612
|
* @returns A list of colors that can be used for the text's outline.
|
|
11611
11613
|
*/
|
|
11612
11614
|
getAvailableStrokeColors() {
|
|
11613
|
-
return this.step.data.strokeEnabled ?
|
|
11615
|
+
return this.step.data.strokeEnabled ? W.availableStrokeColors(this.step) : [];
|
|
11614
11616
|
}
|
|
11615
11617
|
getStrokeColor() {
|
|
11616
11618
|
var t, e;
|
|
@@ -11622,7 +11624,7 @@ class bo extends it {
|
|
|
11622
11624
|
*/
|
|
11623
11625
|
async setStrokeColor(t) {
|
|
11624
11626
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
11625
|
-
await
|
|
11627
|
+
await W.changeStrokeColor(this.step, t, e, this.manager);
|
|
11626
11628
|
}
|
|
11627
11629
|
}
|
|
11628
11630
|
class Io extends it {
|
|
@@ -11695,7 +11697,7 @@ class Do extends it {
|
|
|
11695
11697
|
return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.text) || "";
|
|
11696
11698
|
}
|
|
11697
11699
|
setText(t) {
|
|
11698
|
-
|
|
11700
|
+
qn.changeText(this.step, t, this.manager, (e) => {
|
|
11699
11701
|
if (e) {
|
|
11700
11702
|
const a = [
|
|
11701
11703
|
...this.manager.getInformationResults(),
|
|
@@ -11723,13 +11725,13 @@ class ce {
|
|
|
11723
11725
|
case P.Question:
|
|
11724
11726
|
return new Eo(t, e, t.getStepTags(e.stepName));
|
|
11725
11727
|
case P.Text:
|
|
11726
|
-
return new
|
|
11728
|
+
return new Bo(t, e, t.getStepTags(e.stepName));
|
|
11727
11729
|
case P.Illustration:
|
|
11728
11730
|
return new wo(t, e, t.getStepTags(e.stepName));
|
|
11729
11731
|
case P.Picture:
|
|
11730
11732
|
return new vo(t, e, t.getStepTags(e.stepName));
|
|
11731
11733
|
case P.Shape:
|
|
11732
|
-
return new
|
|
11734
|
+
return new bo(t, e, t.getStepTags(e.stepName));
|
|
11733
11735
|
case P.Material:
|
|
11734
11736
|
return new yo(t, e, t.getStepTags(e.stepName));
|
|
11735
11737
|
case P.Model:
|
|
@@ -11739,7 +11741,7 @@ class ce {
|
|
|
11739
11741
|
case P.Module:
|
|
11740
11742
|
return new Do(t, e, t.getStepTags(e.stepName));
|
|
11741
11743
|
default:
|
|
11742
|
-
throw new
|
|
11744
|
+
throw new z(`Step type ${e.type} not yet supported in Core SDK`);
|
|
11743
11745
|
}
|
|
11744
11746
|
}
|
|
11745
11747
|
}
|
|
@@ -11832,7 +11834,7 @@ const ko = async (r, t) => {
|
|
|
11832
11834
|
const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
|
|
11833
11835
|
c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
|
|
11834
11836
|
}
|
|
11835
|
-
return (i = (await
|
|
11837
|
+
return (i = (await B.getShadowGraphqlClient().mutate({
|
|
11836
11838
|
mutation: Fo,
|
|
11837
11839
|
errorPolicy: "all",
|
|
11838
11840
|
fetchPolicy: "no-cache",
|
|
@@ -11863,7 +11865,7 @@ const ko = async (r, t) => {
|
|
|
11863
11865
|
const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
|
|
11864
11866
|
c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
|
|
11865
11867
|
}
|
|
11866
|
-
return (i = (await
|
|
11868
|
+
return (i = (await B.getShadowGraphqlClient().mutate({
|
|
11867
11869
|
mutation: xo,
|
|
11868
11870
|
errorPolicy: "all",
|
|
11869
11871
|
fetchPolicy: "no-cache",
|
|
@@ -11970,7 +11972,7 @@ const ko = async (r, t) => {
|
|
|
11970
11972
|
if (c !== void 0)
|
|
11971
11973
|
return c;
|
|
11972
11974
|
await r.outstandingRequestsPromise();
|
|
11973
|
-
const F = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await
|
|
11975
|
+
const F = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), T = await B.getShadowGraphqlClient().query({
|
|
11974
11976
|
query: Dn,
|
|
11975
11977
|
variables: { ids: [n.id] },
|
|
11976
11978
|
fetchPolicy: "no-cache",
|
|
@@ -11990,22 +11992,22 @@ const ko = async (r, t) => {
|
|
|
11990
11992
|
for (const T of Object.keys(i)) {
|
|
11991
11993
|
const nt = i[T], R = t.steps.find((tt) => tt.stepName === T);
|
|
11992
11994
|
for (let tt = 0; tt < nt.selections.length; ++tt) {
|
|
11993
|
-
const
|
|
11995
|
+
const q = nt.selections[tt];
|
|
11994
11996
|
if (R && (!D || R.option && (R.option.variants || []).length > 1 && !R.data.hideSelectionInCart && !R.data.hideSelectionsInCart)) {
|
|
11995
11997
|
const ft = R.stepTitle;
|
|
11996
11998
|
F[ft] ? F[ft].push({
|
|
11997
|
-
id:
|
|
11998
|
-
name:
|
|
11999
|
-
priceModifier:
|
|
11999
|
+
id: q.id || "",
|
|
12000
|
+
name: q.name,
|
|
12001
|
+
priceModifier: q.priceModifier
|
|
12000
12002
|
}) : F[ft] = [
|
|
12001
12003
|
{
|
|
12002
|
-
id:
|
|
12003
|
-
name:
|
|
12004
|
-
priceModifier:
|
|
12004
|
+
id: q.id || "",
|
|
12005
|
+
name: q.name,
|
|
12006
|
+
priceModifier: q.priceModifier
|
|
12005
12007
|
}
|
|
12006
12008
|
];
|
|
12007
12009
|
}
|
|
12008
|
-
k +=
|
|
12010
|
+
k += q.priceModifier;
|
|
12009
12011
|
}
|
|
12010
12012
|
}
|
|
12011
12013
|
return [F, k];
|
|
@@ -12095,7 +12097,7 @@ const ko = async (r, t) => {
|
|
|
12095
12097
|
);
|
|
12096
12098
|
const n = await (async () => {
|
|
12097
12099
|
var c;
|
|
12098
|
-
const l = await
|
|
12100
|
+
const l = await B.getShadowGraphqlClient().query({
|
|
12099
12101
|
query: Dn,
|
|
12100
12102
|
variables: { ids: r.map((d) => d.transaction.id) },
|
|
12101
12103
|
fetchPolicy: "no-cache",
|
|
@@ -12161,7 +12163,7 @@ class Ro {
|
|
|
12161
12163
|
const t = N.get(this.localPersistenceKey);
|
|
12162
12164
|
return t ? JSON.parse(t) : [];
|
|
12163
12165
|
}
|
|
12164
|
-
throw new
|
|
12166
|
+
throw new z("Unexpected storage method requested");
|
|
12165
12167
|
}
|
|
12166
12168
|
/**
|
|
12167
12169
|
* Search for a transaction that has been saved.
|
|
@@ -12201,7 +12203,7 @@ class Ro {
|
|
|
12201
12203
|
N.set(this.localPersistenceKey, JSON.stringify(t));
|
|
12202
12204
|
return;
|
|
12203
12205
|
}
|
|
12204
|
-
throw new
|
|
12206
|
+
throw new z("Unexpected storage method requested");
|
|
12205
12207
|
}
|
|
12206
12208
|
}
|
|
12207
12209
|
const Ye = new Ro(), Oo = v`
|
|
@@ -12378,7 +12380,7 @@ class Vo {
|
|
|
12378
12380
|
throw new Fe("Failed to obtain 2D context for preview image creation");
|
|
12379
12381
|
const m = Sa(u.layoutState.layout, u.layoutState.elements, {
|
|
12380
12382
|
renderingConfiguration: {
|
|
12381
|
-
purpose:
|
|
12383
|
+
purpose: qt.Print,
|
|
12382
12384
|
region: { left: A.x, top: A.y, width: A.width, height: A.height },
|
|
12383
12385
|
templatingContext: this.workflowManager.getTemplatingContext()
|
|
12384
12386
|
}
|
|
@@ -12551,7 +12553,7 @@ class Vo {
|
|
|
12551
12553
|
}
|
|
12552
12554
|
async save(t) {
|
|
12553
12555
|
if (!this.getCommandContext().getState())
|
|
12554
|
-
throw new
|
|
12556
|
+
throw new z("State undefined!");
|
|
12555
12557
|
const n = {
|
|
12556
12558
|
title: await (async () => {
|
|
12557
12559
|
var l;
|
|
@@ -12574,10 +12576,10 @@ class Vo {
|
|
|
12574
12576
|
var s;
|
|
12575
12577
|
const t = St(this.getCommandContext().getState());
|
|
12576
12578
|
if (!t)
|
|
12577
|
-
throw new
|
|
12579
|
+
throw new z("Internal state is undefined! Cannot copy experience!");
|
|
12578
12580
|
const e = JSON.stringify(t.transaction), a = this.getWorkflowManager().getWorkflow(), n = (s = this.getWorkflowManager().getTransaction().integrationProduct) == null ? void 0 : s.id;
|
|
12579
12581
|
if (!n)
|
|
12580
|
-
throw new
|
|
12582
|
+
throw new z("Integration product id is undefined!");
|
|
12581
12583
|
return await this.getClient().getWorkflowExperience({
|
|
12582
12584
|
type: "integration",
|
|
12583
12585
|
integrationProductId: n,
|
|
@@ -12696,7 +12698,7 @@ const zo = [
|
|
|
12696
12698
|
if (!m)
|
|
12697
12699
|
throw new J(h);
|
|
12698
12700
|
const g = Q();
|
|
12699
|
-
return new
|
|
12701
|
+
return new G(
|
|
12700
12702
|
{
|
|
12701
12703
|
id: g,
|
|
12702
12704
|
src: d,
|
|
@@ -12736,7 +12738,7 @@ const zo = [
|
|
|
12736
12738
|
a.data.forceImageCover
|
|
12737
12739
|
);
|
|
12738
12740
|
return [
|
|
12739
|
-
new
|
|
12741
|
+
new G(
|
|
12740
12742
|
{
|
|
12741
12743
|
id: u,
|
|
12742
12744
|
path: A.path,
|
|
@@ -12778,7 +12780,7 @@ const zo = [
|
|
|
12778
12780
|
const n = e.data, i = a.option;
|
|
12779
12781
|
if (!i)
|
|
12780
12782
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12781
|
-
const s = ((y = i.variants) == null ? void 0 : y.find((
|
|
12783
|
+
const s = ((y = i.variants) == null ? void 0 : y.find((b) => b.id === n.illustrationVariantId)) || ae(i);
|
|
12782
12784
|
if (!s)
|
|
12783
12785
|
return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
|
|
12784
12786
|
if (!s.asset)
|
|
@@ -12792,63 +12794,63 @@ const zo = [
|
|
|
12792
12794
|
return console.error("Failed to read SVG."), [];
|
|
12793
12795
|
pa(m);
|
|
12794
12796
|
const g = {};
|
|
12795
|
-
kt(m, (
|
|
12796
|
-
zo.includes(
|
|
12797
|
-
const I =
|
|
12797
|
+
kt(m, (b) => {
|
|
12798
|
+
zo.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
|
|
12799
|
+
const I = b.attributes.getNamedItem("fill");
|
|
12798
12800
|
if (I && I.value !== "none") {
|
|
12799
12801
|
const F = I.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
|
|
12800
|
-
|
|
12802
|
+
b.classList.add(T), g[T] = { browserValue: F };
|
|
12801
12803
|
}
|
|
12802
|
-
const D =
|
|
12804
|
+
const D = b.attributes.getNamedItem("stroke");
|
|
12803
12805
|
if (D && D.value !== "none") {
|
|
12804
12806
|
const F = D.value, T = `spiff-stroke-${F.replace(/\W/g, "")}`;
|
|
12805
|
-
|
|
12807
|
+
b.classList.add(T), g[T] = { browserValue: F };
|
|
12806
12808
|
}
|
|
12807
12809
|
});
|
|
12808
|
-
const f =
|
|
12810
|
+
const f = Bt().serializeToString(m), C = n.colors;
|
|
12809
12811
|
if (C) {
|
|
12810
|
-
for (const [
|
|
12812
|
+
for (const [b, I] of Object.entries(g))
|
|
12811
12813
|
for (const D of Object.keys(C))
|
|
12812
12814
|
if (I.browserValue === D) {
|
|
12813
|
-
g[
|
|
12815
|
+
g[b] = { browserValue: C[D] };
|
|
12814
12816
|
break;
|
|
12815
12817
|
}
|
|
12816
12818
|
}
|
|
12817
|
-
const w = (
|
|
12818
|
-
const I = r.find((F) => F.panelId ===
|
|
12819
|
+
const w = (b) => {
|
|
12820
|
+
const I = r.find((F) => F.panelId === b.panelId);
|
|
12819
12821
|
if (!I)
|
|
12820
|
-
throw new J(
|
|
12822
|
+
throw new J(b);
|
|
12821
12823
|
const D = Q();
|
|
12822
|
-
return new
|
|
12824
|
+
return new G(
|
|
12823
12825
|
{
|
|
12824
12826
|
colors: g,
|
|
12825
12827
|
id: D,
|
|
12826
12828
|
svg: f,
|
|
12827
12829
|
type: M.Illustration,
|
|
12828
|
-
y:
|
|
12829
|
-
x:
|
|
12830
|
-
rotation:
|
|
12831
|
-
width:
|
|
12832
|
-
height:
|
|
12833
|
-
layer:
|
|
12834
|
-
layerIndex:
|
|
12835
|
-
immutable:
|
|
12830
|
+
y: b.top,
|
|
12831
|
+
x: b.left,
|
|
12832
|
+
rotation: b.rotation,
|
|
12833
|
+
width: b.width,
|
|
12834
|
+
height: b.height,
|
|
12835
|
+
layer: b.layer,
|
|
12836
|
+
layerIndex: b.layerIndex,
|
|
12837
|
+
immutable: b.immutable
|
|
12836
12838
|
},
|
|
12837
12839
|
I
|
|
12838
12840
|
);
|
|
12839
12841
|
}, S = a.data.regions;
|
|
12840
12842
|
try {
|
|
12841
12843
|
return S.map(w);
|
|
12842
|
-
} catch (
|
|
12843
|
-
return console.error(
|
|
12844
|
+
} catch (b) {
|
|
12845
|
+
return console.error(b), [];
|
|
12844
12846
|
}
|
|
12845
|
-
},
|
|
12847
|
+
}, qo = async (r, t, e) => {
|
|
12846
12848
|
const a = await Jn(e.data.module), n = t.data, i = (o, l) => {
|
|
12847
12849
|
const c = r.find((A) => A.panelId === l.panelId);
|
|
12848
12850
|
if (!c)
|
|
12849
12851
|
throw new J(l);
|
|
12850
12852
|
const d = Q();
|
|
12851
|
-
return new
|
|
12853
|
+
return new G(
|
|
12852
12854
|
{
|
|
12853
12855
|
colors: {},
|
|
12854
12856
|
id: d,
|
|
@@ -12872,7 +12874,7 @@ const zo = [
|
|
|
12872
12874
|
} catch (o) {
|
|
12873
12875
|
return console.error(o), [];
|
|
12874
12876
|
}
|
|
12875
|
-
},
|
|
12877
|
+
}, Ho = async (r, t, e, a) => {
|
|
12876
12878
|
var d, A;
|
|
12877
12879
|
const n = e.data, i = a.option;
|
|
12878
12880
|
if (!i)
|
|
@@ -12891,7 +12893,7 @@ const zo = [
|
|
|
12891
12893
|
if (!h)
|
|
12892
12894
|
throw new J(u);
|
|
12893
12895
|
const m = Q();
|
|
12894
|
-
return new
|
|
12896
|
+
return new G(
|
|
12895
12897
|
{
|
|
12896
12898
|
id: m,
|
|
12897
12899
|
src: o,
|
|
@@ -12948,7 +12950,7 @@ const zo = [
|
|
|
12948
12950
|
/>
|
|
12949
12951
|
</svg>
|
|
12950
12952
|
`, m = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, g = Q();
|
|
12951
|
-
return new
|
|
12953
|
+
return new G(
|
|
12952
12954
|
{
|
|
12953
12955
|
colors: m,
|
|
12954
12956
|
id: g,
|
|
@@ -12999,7 +13001,7 @@ const zo = [
|
|
|
12999
13001
|
excludeFromExport: t.data.excludeFromPrint,
|
|
13000
13002
|
preserveAspectRatio: "none"
|
|
13001
13003
|
};
|
|
13002
|
-
a.push(new
|
|
13004
|
+
a.push(new G(A, d));
|
|
13003
13005
|
});
|
|
13004
13006
|
} catch (c) {
|
|
13005
13007
|
console.error(c);
|
|
@@ -13009,7 +13011,7 @@ const zo = [
|
|
|
13009
13011
|
const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = (h == null ? void 0 : h.length) > 0 ? h[0] : "", f = dt().parseFromString(m, "image/svg+xml").firstElementChild;
|
|
13010
13012
|
if (!f)
|
|
13011
13013
|
throw new Ft("Failed to read SVG.");
|
|
13012
|
-
return pa(f),
|
|
13014
|
+
return pa(f), Bt().serializeToString(f);
|
|
13013
13015
|
};
|
|
13014
13016
|
l.forEach((A) => {
|
|
13015
13017
|
const u = r.find((m) => m.panelId === A.panelId);
|
|
@@ -13034,7 +13036,7 @@ const zo = [
|
|
|
13034
13036
|
productOverlay: t.type === P.ProductOverlay ? !0 : void 0,
|
|
13035
13037
|
excludeFromExport: t.data.excludeFromPrint
|
|
13036
13038
|
};
|
|
13037
|
-
a.push(new
|
|
13039
|
+
a.push(new G(h, u));
|
|
13038
13040
|
});
|
|
13039
13041
|
}
|
|
13040
13042
|
return a;
|
|
@@ -13060,7 +13062,7 @@ const zo = [
|
|
|
13060
13062
|
assetUrl: p,
|
|
13061
13063
|
name: f.names.fullName.en
|
|
13062
13064
|
};
|
|
13063
|
-
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u =
|
|
13065
|
+
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = be(A, {
|
|
13064
13066
|
vertical: a.data.vertical,
|
|
13065
13067
|
uppercase: a.data.uppercase
|
|
13066
13068
|
}), h = async (p) => {
|
|
@@ -13101,7 +13103,7 @@ const zo = [
|
|
|
13101
13103
|
d,
|
|
13102
13104
|
p,
|
|
13103
13105
|
[
|
|
13104
|
-
|
|
13106
|
+
be(u, {
|
|
13105
13107
|
vertical: a.data.vertical,
|
|
13106
13108
|
uppercase: a.data.uppercase
|
|
13107
13109
|
})
|
|
@@ -13113,7 +13115,7 @@ const zo = [
|
|
|
13113
13115
|
}
|
|
13114
13116
|
);
|
|
13115
13117
|
n.push(
|
|
13116
|
-
new
|
|
13118
|
+
new G(
|
|
13117
13119
|
{
|
|
13118
13120
|
...C,
|
|
13119
13121
|
fontSize: w,
|
|
@@ -13124,7 +13126,7 @@ const zo = [
|
|
|
13124
13126
|
)
|
|
13125
13127
|
);
|
|
13126
13128
|
} else
|
|
13127
|
-
n.push(new
|
|
13129
|
+
n.push(new G(C, f));
|
|
13128
13130
|
}
|
|
13129
13131
|
return n;
|
|
13130
13132
|
}, _o = (r, t) => r.conditions ? r.conditions.every((e) => {
|
|
@@ -13164,11 +13166,11 @@ const zo = [
|
|
|
13164
13166
|
);
|
|
13165
13167
|
break;
|
|
13166
13168
|
case P.Module:
|
|
13167
|
-
n.push(...await
|
|
13169
|
+
n.push(...await qo(e, s, o));
|
|
13168
13170
|
break;
|
|
13169
13171
|
case P.Picture:
|
|
13170
13172
|
n.push(
|
|
13171
|
-
...await
|
|
13173
|
+
...await Ho(e, i, s, o)
|
|
13172
13174
|
);
|
|
13173
13175
|
break;
|
|
13174
13176
|
case P.Shape:
|
|
@@ -13352,7 +13354,7 @@ class nl extends xn {
|
|
|
13352
13354
|
l = i.width, c = i.height;
|
|
13353
13355
|
const d = Sa(t.layoutState.layout, e, {
|
|
13354
13356
|
renderingConfiguration: {
|
|
13355
|
-
purpose:
|
|
13357
|
+
purpose: qt.ThreeD,
|
|
13356
13358
|
templatingContext: (m = (h = this.getWorkflowManager) == null ? void 0 : h.call(this)) == null ? void 0 : m.getTemplatingContext()
|
|
13357
13359
|
}
|
|
13358
13360
|
}), A = mn(d), u = await Aa.from(this.ctx, A, {
|
|
@@ -13434,19 +13436,19 @@ class rl {
|
|
|
13434
13436
|
}
|
|
13435
13437
|
async createHandle(t) {
|
|
13436
13438
|
switch (t.type) {
|
|
13437
|
-
case
|
|
13439
|
+
case j.FileUpload:
|
|
13438
13440
|
return new il(this.bundle, t).initialize();
|
|
13439
|
-
case
|
|
13441
|
+
case j.ColorOption:
|
|
13440
13442
|
return new Ka(
|
|
13441
13443
|
this.bundle,
|
|
13442
13444
|
t,
|
|
13443
13445
|
t.entityId ? await Y.getOption(t.entityId) : void 0
|
|
13444
13446
|
);
|
|
13445
|
-
case
|
|
13447
|
+
case j.Option: {
|
|
13446
13448
|
const e = t.entityId ? await Y.getOption(t.entityId) : void 0;
|
|
13447
13449
|
return (e == null ? void 0 : e.type) === "Color" ? new Ka(this.bundle, t, e) : new tr(this.bundle, t, e);
|
|
13448
13450
|
}
|
|
13449
|
-
case
|
|
13451
|
+
case j.Text:
|
|
13450
13452
|
return new sl(this.bundle, t);
|
|
13451
13453
|
default:
|
|
13452
13454
|
throw new Error("Unhandled Global Property Aspect Type");
|
|
@@ -13521,7 +13523,7 @@ class il extends Ia {
|
|
|
13521
13523
|
const t = await this.getImage();
|
|
13522
13524
|
if (t != null && t.fileLink)
|
|
13523
13525
|
if (t != null && t.fileLink.endsWith(".svg")) {
|
|
13524
|
-
const a = await at(t == null ? void 0 : t.fileLink), n = await
|
|
13526
|
+
const a = await at(t == null ? void 0 : t.fileLink), n = await ba(t == null ? void 0 : t.fileLink), i = n.width, s = n.height, o = await lt(a), l = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
|
|
13525
13527
|
(e = l == null ? void 0 : l.colors) == null || e.forEach((d) => {
|
|
13526
13528
|
o.colors[d.key] = {
|
|
13527
13529
|
browserValue: d.browserValue,
|
|
@@ -13793,7 +13795,7 @@ class tr extends Ia {
|
|
|
13793
13795
|
return n.id === ((s = (i = this.optionResource) == null ? void 0 : i.defaultVariant) == null ? void 0 : s.id);
|
|
13794
13796
|
}
|
|
13795
13797
|
);
|
|
13796
|
-
t && await this.selectVariant(new st(t));
|
|
13798
|
+
console.log("Checking for default variant"), t && (console.log("Found default variant"), await this.selectVariant(new st(t)));
|
|
13797
13799
|
}
|
|
13798
13800
|
/**
|
|
13799
13801
|
* Gets the currently selected variant, or undefined if no variant is selected.
|
|
@@ -14038,7 +14040,8 @@ class cl {
|
|
|
14038
14040
|
var e, a;
|
|
14039
14041
|
if (!this.globalPropertyState)
|
|
14040
14042
|
throw new Error("Global property state not initialized");
|
|
14041
|
-
|
|
14043
|
+
console.log(`LOG: setting state ${this.globalPropertyState.id} with ${this.globalPropertyState.aspects.length} aspects`), console.trace();
|
|
14044
|
+
const t = await B.getShadowGraphqlClient().mutate({
|
|
14042
14045
|
mutation: Ls,
|
|
14043
14046
|
variables: {
|
|
14044
14047
|
id: this.globalPropertyState.id,
|
|
@@ -14046,15 +14049,15 @@ class cl {
|
|
|
14046
14049
|
let i = n.type && n.storage ? {} : void 0;
|
|
14047
14050
|
if (i)
|
|
14048
14051
|
switch (n.type) {
|
|
14049
|
-
case
|
|
14052
|
+
case j.FileUpload: {
|
|
14050
14053
|
i.fileUpload = n.storage;
|
|
14051
14054
|
break;
|
|
14052
14055
|
}
|
|
14053
|
-
case
|
|
14056
|
+
case j.Option: {
|
|
14054
14057
|
i.option = n.storage;
|
|
14055
14058
|
break;
|
|
14056
14059
|
}
|
|
14057
|
-
case
|
|
14060
|
+
case j.ColorOption: {
|
|
14058
14061
|
i = n.storage;
|
|
14059
14062
|
break;
|
|
14060
14063
|
}
|
|
@@ -14082,7 +14085,7 @@ class cl {
|
|
|
14082
14085
|
}
|
|
14083
14086
|
async createGlobalPropertyState() {
|
|
14084
14087
|
var e, a;
|
|
14085
|
-
const t = await
|
|
14088
|
+
const t = await B.getShadowGraphqlClient().mutate({
|
|
14086
14089
|
mutation: Us,
|
|
14087
14090
|
variables: {
|
|
14088
14091
|
bundleId: this.bundleId
|
|
@@ -14220,7 +14223,7 @@ class ul {
|
|
|
14220
14223
|
async ensureIdsArePresent(t) {
|
|
14221
14224
|
if (t.every((a) => this.internalMap.has(a)))
|
|
14222
14225
|
return;
|
|
14223
|
-
const e = await
|
|
14226
|
+
const e = await B.getShadowGraphqlClient().query({
|
|
14224
14227
|
query: Al,
|
|
14225
14228
|
errorPolicy: "all",
|
|
14226
14229
|
variables: {
|
|
@@ -14308,7 +14311,7 @@ class er {
|
|
|
14308
14311
|
async fetchProducts(t) {
|
|
14309
14312
|
if (this.fullFetched)
|
|
14310
14313
|
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
|
|
14311
|
-
const e = await
|
|
14314
|
+
const e = await B.getShadowGraphqlClient().query({
|
|
14312
14315
|
query: js,
|
|
14313
14316
|
variables: {
|
|
14314
14317
|
id: this.getId(),
|
|
@@ -14325,8 +14328,8 @@ class er {
|
|
|
14325
14328
|
*/
|
|
14326
14329
|
async filterProducts(t, e, a, n) {
|
|
14327
14330
|
var l, c;
|
|
14328
|
-
const i = await
|
|
14329
|
-
query:
|
|
14331
|
+
const i = await B.getShadowGraphqlClient().query({
|
|
14332
|
+
query: qs,
|
|
14330
14333
|
errorPolicy: "all",
|
|
14331
14334
|
variables: {
|
|
14332
14335
|
id: this.getId(),
|
|
@@ -14365,8 +14368,8 @@ class er {
|
|
|
14365
14368
|
items: d.slice(t, t + e)
|
|
14366
14369
|
};
|
|
14367
14370
|
}
|
|
14368
|
-
const o = new AbortController(), { signal: l } = o, c =
|
|
14369
|
-
query:
|
|
14371
|
+
const o = new AbortController(), { signal: l } = o, c = B.getShadowGraphqlClient().watchQuery({
|
|
14372
|
+
query: Hs,
|
|
14370
14373
|
variables: {
|
|
14371
14374
|
id: this.getId(),
|
|
14372
14375
|
limit: e,
|
|
@@ -14642,7 +14645,7 @@ const fl = v`
|
|
|
14642
14645
|
}
|
|
14643
14646
|
`, od = async (r) => {
|
|
14644
14647
|
var e, a;
|
|
14645
|
-
return (a = (e = (await
|
|
14648
|
+
return (a = (e = (await B.getShadowGraphqlClient().query({
|
|
14646
14649
|
query: fl,
|
|
14647
14650
|
errorPolicy: "all",
|
|
14648
14651
|
variables: {
|
|
@@ -14715,41 +14718,23 @@ const wl = v`
|
|
|
14715
14718
|
`;
|
|
14716
14719
|
class Je {
|
|
14717
14720
|
constructor(t, e, a, n, i, s) {
|
|
14718
|
-
var c, d
|
|
14719
|
-
this.workflowExperiences = [], this.eventEmitter = new Cl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((
|
|
14720
|
-
const o = (
|
|
14721
|
+
var l, c, d;
|
|
14722
|
+
this.workflowExperiences = [], this.eventEmitter = new Cl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((l = e.metadata) == null ? void 0 : l.map((A) => [A.key, A.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new dl(e.bundleStateData);
|
|
14723
|
+
const o = (c = this.productCollection) == null ? void 0 : c.globalPropertyConfiguration;
|
|
14721
14724
|
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new cl(
|
|
14722
14725
|
this.id,
|
|
14723
14726
|
this.ownerId,
|
|
14724
14727
|
o,
|
|
14725
14728
|
this.checkConditionalHandlesChanged.bind(this),
|
|
14726
14729
|
s
|
|
14727
|
-
), this.globalPropertyHandleService = new rl(this), this.setPreviewService(a)
|
|
14728
|
-
|
|
14729
|
-
if (s != null && s.readonly) {
|
|
14730
|
-
u([]);
|
|
14731
|
-
return;
|
|
14732
|
-
}
|
|
14733
|
-
console.log("Setting default global variants."), this.globalPropertyHandleService.getHandles().then((m) => {
|
|
14734
|
-
const g = m.map((p) => {
|
|
14735
|
-
if (p.getType() === z.ColorOption || p.getType() === z.Option) {
|
|
14736
|
-
const f = p;
|
|
14737
|
-
if (this.globalPropertyStateManager.getGlobalPropertyState())
|
|
14738
|
-
return f.initDefaultVariant();
|
|
14739
|
-
console.log("Attempted to set global default variant before state was initialized.");
|
|
14740
|
-
}
|
|
14741
|
-
});
|
|
14742
|
-
Promise.all(g).then(u).catch(h);
|
|
14743
|
-
});
|
|
14744
|
-
});
|
|
14745
|
-
this.initializationPromise = Promise.all([
|
|
14746
|
-
this.loadExistingWorkflowExperiences(((A = e.transactions) == null ? void 0 : A.map((u) => u.id)) || [], {
|
|
14730
|
+
), this.globalPropertyHandleService = new rl(this), this.setPreviewService(a), this.initializationPromise = Promise.all([
|
|
14731
|
+
this.loadExistingWorkflowExperiences(((d = e.transactions) == null ? void 0 : d.map((A) => A.id)) || [], {
|
|
14747
14732
|
...n,
|
|
14748
14733
|
bundleOwnerId: i
|
|
14749
14734
|
}),
|
|
14750
14735
|
this.globalPropertyStateManager.getInitializationPromise()
|
|
14751
|
-
])
|
|
14752
|
-
console.error(`Bundle initialization failed: ${
|
|
14736
|
+
]), this.initializationPromise.catch((A) => {
|
|
14737
|
+
console.error(`Bundle initialization failed: ${A}`);
|
|
14753
14738
|
});
|
|
14754
14739
|
}
|
|
14755
14740
|
getTemplate() {
|
|
@@ -14757,7 +14742,7 @@ class Je {
|
|
|
14757
14742
|
}
|
|
14758
14743
|
async generateQuoteId() {
|
|
14759
14744
|
var a, n;
|
|
14760
|
-
const e = (n = (a = (await
|
|
14745
|
+
const e = (n = (a = (await B.getShadowGraphqlClient().mutate({
|
|
14761
14746
|
mutation: Sl,
|
|
14762
14747
|
variables: {
|
|
14763
14748
|
id: this.id
|
|
@@ -14769,7 +14754,7 @@ class Je {
|
|
|
14769
14754
|
return this.quoteId = e, e || "";
|
|
14770
14755
|
}
|
|
14771
14756
|
async attachAddress(t, e, a, n, i, s) {
|
|
14772
|
-
await
|
|
14757
|
+
await B.getShadowGraphqlClient().mutate({
|
|
14773
14758
|
mutation: wl,
|
|
14774
14759
|
variables: {
|
|
14775
14760
|
bundleId: this.id,
|
|
@@ -14786,7 +14771,7 @@ class Je {
|
|
|
14786
14771
|
});
|
|
14787
14772
|
}
|
|
14788
14773
|
async attachOrganization(t) {
|
|
14789
|
-
await
|
|
14774
|
+
await B.getShadowGraphqlClient().mutate({
|
|
14790
14775
|
mutation: yl,
|
|
14791
14776
|
variables: {
|
|
14792
14777
|
bundleId: this.id,
|
|
@@ -14866,7 +14851,7 @@ class Je {
|
|
|
14866
14851
|
const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
|
|
14867
14852
|
if (s)
|
|
14868
14853
|
switch (n.type) {
|
|
14869
|
-
case
|
|
14854
|
+
case j.FileUpload: {
|
|
14870
14855
|
const o = s, l = await ve([n.value]);
|
|
14871
14856
|
l.length > 0 && await o.selectImage(l[0]);
|
|
14872
14857
|
const c = (a = n.storage) == null ? void 0 : a.colors;
|
|
@@ -14878,21 +14863,21 @@ class Je {
|
|
|
14878
14863
|
}
|
|
14879
14864
|
break;
|
|
14880
14865
|
}
|
|
14881
|
-
case
|
|
14866
|
+
case j.ColorOption: {
|
|
14882
14867
|
const o = s;
|
|
14883
|
-
if (n.type ===
|
|
14868
|
+
if (n.type === j.ColorOption) {
|
|
14884
14869
|
const c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14885
14870
|
c && await o.selectVariant(c);
|
|
14886
14871
|
} else
|
|
14887
14872
|
o.setCustomColor(n.value);
|
|
14888
14873
|
break;
|
|
14889
14874
|
}
|
|
14890
|
-
case
|
|
14875
|
+
case j.Option: {
|
|
14891
14876
|
const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14892
14877
|
c && await o.selectVariant(c);
|
|
14893
14878
|
break;
|
|
14894
14879
|
}
|
|
14895
|
-
case
|
|
14880
|
+
case j.Text: {
|
|
14896
14881
|
await s.setText(n.value);
|
|
14897
14882
|
break;
|
|
14898
14883
|
}
|
|
@@ -14903,7 +14888,7 @@ class Je {
|
|
|
14903
14888
|
return this.globalPropertyStateManager;
|
|
14904
14889
|
}
|
|
14905
14890
|
async getGlobalPropertyTotalSubunits() {
|
|
14906
|
-
return (await this.globalPropertyHandleService.getHandles()).filter((a) => a.getType() ===
|
|
14891
|
+
return (await this.globalPropertyHandleService.getHandles()).filter((a) => a.getType() === j.Option).map((a) => {
|
|
14907
14892
|
var n;
|
|
14908
14893
|
return ((n = a.getCurrentVariant()) == null ? void 0 : n.getPrice()) || 0;
|
|
14909
14894
|
}).reduce((a, n) => a + n, 0);
|
|
@@ -14922,7 +14907,7 @@ class Je {
|
|
|
14922
14907
|
const c = (e = this.getGlobalPropertyConfiguration()) == null ? void 0 : e.aspects.find(
|
|
14923
14908
|
(d) => d.name === l
|
|
14924
14909
|
);
|
|
14925
|
-
if (c && c.type ===
|
|
14910
|
+
if (c && c.type === j.ColorOption) {
|
|
14926
14911
|
const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = ll(
|
|
14927
14912
|
this.getWorkflowExperiences(),
|
|
14928
14913
|
this.globalConfigurationPropertyId || "",
|
|
@@ -14957,7 +14942,7 @@ class Je {
|
|
|
14957
14942
|
"Unable to add transaction to bundle - Already Exists: " + a.filter((o) => !!o).map((o) => o == null ? void 0 : o.getWorkflowManager().getTransaction().id).join(", ")
|
|
14958
14943
|
);
|
|
14959
14944
|
const n = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => n.get(o));
|
|
14960
|
-
await
|
|
14945
|
+
await B.getShadowGraphqlClient().mutate({
|
|
14961
14946
|
mutation: Xs,
|
|
14962
14947
|
variables: {
|
|
14963
14948
|
id: this.id,
|
|
@@ -14989,7 +14974,7 @@ class Je {
|
|
|
14989
14974
|
))
|
|
14990
14975
|
throw new Error("Unable to add transaction to bundle - Already Exists!");
|
|
14991
14976
|
const s = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
|
|
14992
|
-
await
|
|
14977
|
+
await B.getShadowGraphqlClient().mutate({
|
|
14993
14978
|
mutation: _s,
|
|
14994
14979
|
variables: {
|
|
14995
14980
|
id: this.id,
|
|
@@ -15024,7 +15009,7 @@ class Je {
|
|
|
15024
15009
|
const n = this.workflowExperiences.find(
|
|
15025
15010
|
(i) => i.getWorkflowManager().getTransaction().id === e.id
|
|
15026
15011
|
);
|
|
15027
|
-
if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await
|
|
15012
|
+
if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await B.getShadowGraphqlClient().mutate({
|
|
15028
15013
|
mutation: Zs,
|
|
15029
15014
|
variables: {
|
|
15030
15015
|
id: this.id,
|
|
@@ -15061,7 +15046,7 @@ class Je {
|
|
|
15061
15046
|
);
|
|
15062
15047
|
a.forEach((n) => n.setBundle(void 0)), [...this.workflowExperiences, ...a].forEach(
|
|
15063
15048
|
(n) => n.checkForPriceBreakChanges()
|
|
15064
|
-
), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await
|
|
15049
|
+
), this.previewService && a.forEach((n) => n.getWorkflowManager().ejectFromPreviewService()), t.forEach((n) => this.bundleStateManager.removeStateForTransaction(n.id)), await B.getShadowGraphqlClient().mutate({
|
|
15065
15050
|
mutation: to,
|
|
15066
15051
|
variables: {
|
|
15067
15052
|
id: this.id,
|
|
@@ -15124,7 +15109,7 @@ class Je {
|
|
|
15124
15109
|
}
|
|
15125
15110
|
async addStakeholder(t, e) {
|
|
15126
15111
|
var i;
|
|
15127
|
-
const a = await
|
|
15112
|
+
const a = await B.getShadowGraphqlClient().mutate({
|
|
15128
15113
|
mutation: eo,
|
|
15129
15114
|
variables: {
|
|
15130
15115
|
id: this.id,
|
|
@@ -15142,7 +15127,7 @@ class Je {
|
|
|
15142
15127
|
}
|
|
15143
15128
|
async removeStakeholder(t) {
|
|
15144
15129
|
var a;
|
|
15145
|
-
if (!((a = (await
|
|
15130
|
+
if (!((a = (await B.getShadowGraphqlClient().mutate({
|
|
15146
15131
|
mutation: ao,
|
|
15147
15132
|
variables: {
|
|
15148
15133
|
id: this.id,
|
|
@@ -15156,7 +15141,7 @@ class Je {
|
|
|
15156
15141
|
}
|
|
15157
15142
|
async updateStakeholders(t) {
|
|
15158
15143
|
var n;
|
|
15159
|
-
const e = await
|
|
15144
|
+
const e = await B.getShadowGraphqlClient().mutate({
|
|
15160
15145
|
mutation: no,
|
|
15161
15146
|
variables: {
|
|
15162
15147
|
id: this.id,
|
|
@@ -15172,7 +15157,7 @@ class Je {
|
|
|
15172
15157
|
this.storeStakeholderCustomers(a);
|
|
15173
15158
|
}
|
|
15174
15159
|
async getAllStakeholders() {
|
|
15175
|
-
const t = await
|
|
15160
|
+
const t = await B.getShadowGraphqlClient().query({
|
|
15176
15161
|
query: Ya,
|
|
15177
15162
|
errorPolicy: "all",
|
|
15178
15163
|
fetchPolicy: "no-cache",
|
|
@@ -15189,7 +15174,7 @@ class Je {
|
|
|
15189
15174
|
return this.storeStakeholderCustomers(e), e;
|
|
15190
15175
|
}
|
|
15191
15176
|
async getCurrentStakeholder() {
|
|
15192
|
-
const t = await
|
|
15177
|
+
const t = await B.getShadowGraphqlClient().query({
|
|
15193
15178
|
query: Ya,
|
|
15194
15179
|
errorPolicy: "all",
|
|
15195
15180
|
fetchPolicy: "no-cache",
|
|
@@ -15211,7 +15196,7 @@ class Je {
|
|
|
15211
15196
|
}
|
|
15212
15197
|
async finish(t, e) {
|
|
15213
15198
|
if (this.completed)
|
|
15214
|
-
return await
|
|
15199
|
+
return await B.getShadowGraphqlClient().mutate({
|
|
15215
15200
|
mutation: lo,
|
|
15216
15201
|
variables: {
|
|
15217
15202
|
bundleId: this.id
|
|
@@ -15273,7 +15258,7 @@ class Je {
|
|
|
15273
15258
|
return this.bundleStateManager.activateWorkflowExperienceTransform(t, e), this.updateBundle();
|
|
15274
15259
|
}
|
|
15275
15260
|
async assignGlobalPropertyConfiguration(t) {
|
|
15276
|
-
await
|
|
15261
|
+
await B.getShadowGraphqlClient().mutate({
|
|
15277
15262
|
mutation: so,
|
|
15278
15263
|
variables: {
|
|
15279
15264
|
bundleId: this.id,
|
|
@@ -15286,7 +15271,7 @@ class Je {
|
|
|
15286
15271
|
}
|
|
15287
15272
|
async assignProductCollection(t) {
|
|
15288
15273
|
var a, n;
|
|
15289
|
-
const e = await
|
|
15274
|
+
const e = await B.getShadowGraphqlClient().mutate({
|
|
15290
15275
|
mutation: io(
|
|
15291
15276
|
((a = this.globalPropertyStateManager.getBundleOptions()) == null ? void 0 : a.eagerFetchProducts) ?? !1
|
|
15292
15277
|
),
|
|
@@ -15344,7 +15329,7 @@ class Je {
|
|
|
15344
15329
|
}
|
|
15345
15330
|
async updateBundle() {
|
|
15346
15331
|
var e;
|
|
15347
|
-
if (!((e = (await
|
|
15332
|
+
if (!((e = (await B.getShadowGraphqlClient().mutate({
|
|
15348
15333
|
mutation: Ks,
|
|
15349
15334
|
variables: {
|
|
15350
15335
|
id: this.id,
|
|
@@ -15361,7 +15346,7 @@ class Je {
|
|
|
15361
15346
|
throw new Error("Bundle not found!");
|
|
15362
15347
|
}
|
|
15363
15348
|
async updateTransactionOrder() {
|
|
15364
|
-
await
|
|
15349
|
+
await B.getShadowGraphqlClient().mutate({
|
|
15365
15350
|
mutation: ro,
|
|
15366
15351
|
variables: {
|
|
15367
15352
|
id: this.id,
|
|
@@ -15402,7 +15387,7 @@ class Je {
|
|
|
15402
15387
|
return this.workflowViewerAmendLink;
|
|
15403
15388
|
}
|
|
15404
15389
|
async approve(t, e) {
|
|
15405
|
-
await
|
|
15390
|
+
await B.getShadowGraphqlClient().mutate({
|
|
15406
15391
|
mutation: co,
|
|
15407
15392
|
errorPolicy: "all",
|
|
15408
15393
|
fetchPolicy: "no-cache",
|
|
@@ -15414,7 +15399,7 @@ class Je {
|
|
|
15414
15399
|
});
|
|
15415
15400
|
}
|
|
15416
15401
|
async reject(t, e) {
|
|
15417
|
-
await
|
|
15402
|
+
await B.getShadowGraphqlClient().mutate({
|
|
15418
15403
|
mutation: Ao,
|
|
15419
15404
|
errorPolicy: "all",
|
|
15420
15405
|
fetchPolicy: "no-cache",
|
|
@@ -15450,7 +15435,7 @@ class El {
|
|
|
15450
15435
|
*/
|
|
15451
15436
|
async execute(t, e, a) {
|
|
15452
15437
|
var A, u, h;
|
|
15453
|
-
const i = (u = (A = (await
|
|
15438
|
+
const i = (u = (A = (await B.getShadowGraphqlClient().mutate({
|
|
15454
15439
|
mutation: vl,
|
|
15455
15440
|
variables: {
|
|
15456
15441
|
processFlowId: t,
|
|
@@ -15466,7 +15451,7 @@ class El {
|
|
|
15466
15451
|
}
|
|
15467
15452
|
let o = !1, l = 0, c, d;
|
|
15468
15453
|
for (; !o; ) {
|
|
15469
|
-
c = await
|
|
15454
|
+
c = await B.getShadowGraphqlClient().query({
|
|
15470
15455
|
query: v`
|
|
15471
15456
|
query getProcessFlowExecution($ids: [String]!) {
|
|
15472
15457
|
processExecutions(ids: $ids) {
|
|
@@ -15493,7 +15478,7 @@ class El {
|
|
|
15493
15478
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15494
15479
|
);
|
|
15495
15480
|
if (m.completedAt) {
|
|
15496
|
-
o = !0, d = new
|
|
15481
|
+
o = !0, d = new bl(m);
|
|
15497
15482
|
break;
|
|
15498
15483
|
}
|
|
15499
15484
|
l += 1;
|
|
@@ -15507,7 +15492,7 @@ class El {
|
|
|
15507
15492
|
return Promise.resolve(d);
|
|
15508
15493
|
}
|
|
15509
15494
|
}
|
|
15510
|
-
class
|
|
15495
|
+
class bl {
|
|
15511
15496
|
constructor(t) {
|
|
15512
15497
|
this.execution = t;
|
|
15513
15498
|
}
|
|
@@ -15592,7 +15577,7 @@ class Pa {
|
|
|
15592
15577
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15593
15578
|
}
|
|
15594
15579
|
}
|
|
15595
|
-
var
|
|
15580
|
+
var Bl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(Bl || {});
|
|
15596
15581
|
class ld extends Pa {
|
|
15597
15582
|
constructor(t) {
|
|
15598
15583
|
super(`"${t}"`);
|
|
@@ -15765,7 +15750,7 @@ const Dl = v`
|
|
|
15765
15750
|
}
|
|
15766
15751
|
`;
|
|
15767
15752
|
class Fl {
|
|
15768
|
-
constructor(t, e =
|
|
15753
|
+
constructor(t, e = B.getShadowGraphqlClient.bind(B)) {
|
|
15769
15754
|
this.options = t, this.client = e;
|
|
15770
15755
|
}
|
|
15771
15756
|
query(t) {
|
|
@@ -15923,7 +15908,7 @@ class Ml {
|
|
|
15923
15908
|
}
|
|
15924
15909
|
const Tl = async (r, t) => {
|
|
15925
15910
|
var n;
|
|
15926
|
-
const e = await
|
|
15911
|
+
const e = await B.getShadowGraphqlClient().query({
|
|
15927
15912
|
query: Ni(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
15928
15913
|
errorPolicy: "all",
|
|
15929
15914
|
variables: {
|
|
@@ -15980,14 +15965,14 @@ class Ad {
|
|
|
15980
15965
|
constructor(t) {
|
|
15981
15966
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15982
15967
|
try {
|
|
15983
|
-
return
|
|
15968
|
+
return B.getShadowGraphqlClient().mutate({
|
|
15984
15969
|
...e,
|
|
15985
15970
|
mutation: vi
|
|
15986
15971
|
});
|
|
15987
15972
|
} catch (a) {
|
|
15988
15973
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15989
15974
|
}
|
|
15990
|
-
}, this.options = t, this.options.applicationKey && Ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0-beta.
|
|
15975
|
+
}, this.options = t, this.options.applicationKey && Ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0-beta.d1bf733e-18e9-59ae-9db5-784cf3676f5f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15991
15976
|
}
|
|
15992
15977
|
configure(t) {
|
|
15993
15978
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Vr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16005,7 +15990,7 @@ class Ad {
|
|
|
16005
15990
|
return new El();
|
|
16006
15991
|
}
|
|
16007
15992
|
async getCurrencyContext(t) {
|
|
16008
|
-
const a = (await this.getIntegration()).partner.currencyCode, i = await
|
|
15993
|
+
const a = (await this.getIntegration()).partner.currencyCode, i = await B.getShadowGraphqlClient().query({
|
|
16009
15994
|
query: zi,
|
|
16010
15995
|
errorPolicy: "all",
|
|
16011
15996
|
fetchPolicy: "cache-first",
|
|
@@ -16073,7 +16058,7 @@ class Ad {
|
|
|
16073
16058
|
*/
|
|
16074
16059
|
async authenticateTransactionFromLocalStorage(t) {
|
|
16075
16060
|
var d, A, u, h, m, g;
|
|
16076
|
-
const e =
|
|
16061
|
+
const e = B.getShadowGraphqlClient(), a = await e.query({
|
|
16077
16062
|
query: Qi,
|
|
16078
16063
|
errorPolicy: "all",
|
|
16079
16064
|
fetchPolicy: "no-cache",
|
|
@@ -16133,7 +16118,7 @@ class Ad {
|
|
|
16133
16118
|
e != null && e.has(t) && (e.delete(t), N.setMap("transactionCustomerIds", e));
|
|
16134
16119
|
}
|
|
16135
16120
|
async customerHasBundleTemplates(t) {
|
|
16136
|
-
const n = (await
|
|
16121
|
+
const n = (await B.getShadowGraphqlClient().query({
|
|
16137
16122
|
query: ue,
|
|
16138
16123
|
errorPolicy: "all",
|
|
16139
16124
|
fetchPolicy: "no-cache",
|
|
@@ -16157,7 +16142,7 @@ class Ad {
|
|
|
16157
16142
|
async getOrCreateCustomer(t) {
|
|
16158
16143
|
var s;
|
|
16159
16144
|
this.customer = void 0;
|
|
16160
|
-
const e =
|
|
16145
|
+
const e = B.getShadowGraphqlClient(), n = (await e.query({
|
|
16161
16146
|
query: ue,
|
|
16162
16147
|
errorPolicy: "all",
|
|
16163
16148
|
fetchPolicy: "no-cache",
|
|
@@ -16210,7 +16195,7 @@ class Ad {
|
|
|
16210
16195
|
else
|
|
16211
16196
|
return this.logOut(), console.error("Failed to refresh tokens."), !1;
|
|
16212
16197
|
}
|
|
16213
|
-
const o = (await
|
|
16198
|
+
const o = (await B.getShadowGraphqlClient().query({
|
|
16214
16199
|
query: ue,
|
|
16215
16200
|
errorPolicy: "all",
|
|
16216
16201
|
fetchPolicy: "no-cache",
|
|
@@ -16224,7 +16209,7 @@ class Ad {
|
|
|
16224
16209
|
* Generate an email code to allow logging in as a Spiff user.
|
|
16225
16210
|
*/
|
|
16226
16211
|
async generateVerificationCode(t) {
|
|
16227
|
-
await
|
|
16212
|
+
await B.getShadowGraphqlClient().mutate({
|
|
16228
16213
|
mutation: Pl,
|
|
16229
16214
|
variables: {
|
|
16230
16215
|
emailAddress: t
|
|
@@ -16239,7 +16224,7 @@ class Ad {
|
|
|
16239
16224
|
const a = (await this.getIntegration()).partner.id || "", n = await Lt.verifyCode(t, e, a);
|
|
16240
16225
|
if (n != null && n.AuthenticationResult) {
|
|
16241
16226
|
localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(n.AuthenticationResult)), localStorage.setItem("cognito-email", t);
|
|
16242
|
-
const s = (await
|
|
16227
|
+
const s = (await B.getShadowGraphqlClient().query({
|
|
16243
16228
|
query: ue,
|
|
16244
16229
|
errorPolicy: "all",
|
|
16245
16230
|
fetchPolicy: "no-cache",
|
|
@@ -16280,7 +16265,7 @@ class Ad {
|
|
|
16280
16265
|
var e;
|
|
16281
16266
|
if (!((e = this.customer) != null && e.id))
|
|
16282
16267
|
throw new Error("Customer must be logged in before calling this function.");
|
|
16283
|
-
return (await
|
|
16268
|
+
return (await B.getShadowGraphqlClient().query({
|
|
16284
16269
|
query: Dl,
|
|
16285
16270
|
variables: {
|
|
16286
16271
|
id: this.customer.id
|
|
@@ -16293,7 +16278,7 @@ class Ad {
|
|
|
16293
16278
|
*/
|
|
16294
16279
|
async getNewBundle(t, e, a) {
|
|
16295
16280
|
var c, d, A, u, h;
|
|
16296
|
-
const i = (A = (await
|
|
16281
|
+
const i = (A = (await B.getShadowGraphqlClient().mutate({
|
|
16297
16282
|
mutation: Ys(((d = (c = a == null ? void 0 : a.graphql) == null ? void 0 : c.productCollection) == null ? void 0 : d.eagerFetchProducts) || !1),
|
|
16298
16283
|
variables: {
|
|
16299
16284
|
collectionId: t,
|
|
@@ -16323,7 +16308,7 @@ class Ad {
|
|
|
16323
16308
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
16324
16309
|
*/
|
|
16325
16310
|
async getExistingBundle(t, e, a, n) {
|
|
16326
|
-
var h, m, g, p, f, C, w, S, y, E,
|
|
16311
|
+
var h, m, g, p, f, C, w, S, y, E, b;
|
|
16327
16312
|
const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
|
|
16328
16313
|
try {
|
|
16329
16314
|
const I = await this.loggedInBearerToken();
|
|
@@ -16336,7 +16321,7 @@ class Ad {
|
|
|
16336
16321
|
bundleOwnerId: s,
|
|
16337
16322
|
...o,
|
|
16338
16323
|
...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
|
|
16339
|
-
}, c = await
|
|
16324
|
+
}, c = await B.getShadowGraphqlClient().query({
|
|
16340
16325
|
query: Gs(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
|
|
16341
16326
|
variables: {
|
|
16342
16327
|
id: t
|
|
@@ -16352,7 +16337,7 @@ class Ad {
|
|
|
16352
16337
|
A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
|
|
16353
16338
|
const u = new Je(this, d, e, a, s, {
|
|
16354
16339
|
additionalHeaders: (y = n == null ? void 0 : n.graphql) == null ? void 0 : y.additionalHeaders,
|
|
16355
|
-
eagerFetchProducts: (
|
|
16340
|
+
eagerFetchProducts: (b = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : b.eagerFetchProducts,
|
|
16356
16341
|
existingGlobalPropertyState: c.data.globalPropertyState,
|
|
16357
16342
|
readonly: n == null ? void 0 : n.readonly
|
|
16358
16343
|
});
|
|
@@ -16371,14 +16356,14 @@ class Ad {
|
|
|
16371
16356
|
const C = await this.loggedInBearerToken();
|
|
16372
16357
|
s.Authorization = `Bearer ${C}`;
|
|
16373
16358
|
} catch {
|
|
16374
|
-
const S = ((h = Object.entries(localStorage).find(([E,
|
|
16359
|
+
const S = ((h = Object.entries(localStorage).find(([E, b]) => E.startsWith("CognitoIdentityServiceProvider") && E.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
|
|
16375
16360
|
y && !Wt(y) && (s.Authorization = `Bearer ${y}`);
|
|
16376
16361
|
}
|
|
16377
16362
|
const o = {
|
|
16378
16363
|
bundleOwnerId: i,
|
|
16379
16364
|
...s,
|
|
16380
16365
|
...(m = n == null ? void 0 : n.graphql) == null ? void 0 : m.additionalHeaders
|
|
16381
|
-
}, c = (f = (await
|
|
16366
|
+
}, c = (f = (await B.getShadowGraphqlClient().mutate({
|
|
16382
16367
|
mutation: Js(((p = (g = n == null ? void 0 : n.graphql) == null ? void 0 : g.productCollection) == null ? void 0 : p.eagerFetchProducts) || !1),
|
|
16383
16368
|
variables: {
|
|
16384
16369
|
id: t,
|
|
@@ -16420,7 +16405,7 @@ class Ad {
|
|
|
16420
16405
|
if (!((i = this.customer) != null && i.id))
|
|
16421
16406
|
throw new Error("Customer not authenticated.");
|
|
16422
16407
|
const { includeMetadata: e, ...a } = t;
|
|
16423
|
-
return (await
|
|
16408
|
+
return (await B.getShadowGraphqlClient().query({
|
|
16424
16409
|
query: oo(e ?? !1),
|
|
16425
16410
|
variables: {
|
|
16426
16411
|
...a,
|
|
@@ -16437,7 +16422,7 @@ class Ad {
|
|
|
16437
16422
|
var i;
|
|
16438
16423
|
if (!this.customer)
|
|
16439
16424
|
throw new Error("Customer not authenticated.");
|
|
16440
|
-
const t = await
|
|
16425
|
+
const t = await B.getShadowGraphqlClient().query({
|
|
16441
16426
|
query: Ws,
|
|
16442
16427
|
variables: {
|
|
16443
16428
|
id: this.customer.id
|
|
@@ -16474,20 +16459,20 @@ class Ad {
|
|
|
16474
16459
|
async getWorkflowExperiences(t, e) {
|
|
16475
16460
|
if (t.length === 0)
|
|
16476
16461
|
throw new ut("No options provided!");
|
|
16477
|
-
const a =
|
|
16462
|
+
const a = B.getShadowGraphqlClient(), n = async (y) => {
|
|
16478
16463
|
var D, F, k;
|
|
16479
16464
|
if (y.length === 0)
|
|
16480
16465
|
return [];
|
|
16481
|
-
const E = y.map((T) => T.option.transactionId),
|
|
16466
|
+
const E = y.map((T) => T.option.transactionId), b = await a.query({
|
|
16482
16467
|
query: Si,
|
|
16483
16468
|
variables: {
|
|
16484
16469
|
ids: E
|
|
16485
16470
|
},
|
|
16486
16471
|
errorPolicy: "all",
|
|
16487
16472
|
fetchPolicy: "no-cache"
|
|
16488
|
-
}), I =
|
|
16473
|
+
}), I = b.data.transactions;
|
|
16489
16474
|
if (I.length !== y.length) {
|
|
16490
|
-
const T = ((F = (D =
|
|
16475
|
+
const T = ((F = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
16491
16476
|
throw new ut(`Not all transactions were found: ${T}`);
|
|
16492
16477
|
}
|
|
16493
16478
|
return !this.activeIntegration && ((k = I[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((T, nt) => {
|
|
@@ -16519,12 +16504,12 @@ class Ad {
|
|
|
16519
16504
|
},
|
|
16520
16505
|
errorPolicy: "all",
|
|
16521
16506
|
fetchPolicy: "no-cache"
|
|
16522
|
-
}),
|
|
16523
|
-
if (!
|
|
16507
|
+
}), b = (I = E.data) == null ? void 0 : I.transactionCreateMany;
|
|
16508
|
+
if (!b || b.length === 0) {
|
|
16524
16509
|
const k = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
16525
16510
|
throw new ut(`Failed to create transactions: ${k}`);
|
|
16526
16511
|
}
|
|
16527
|
-
return
|
|
16512
|
+
return b.map((k, T) => ({
|
|
16528
16513
|
transaction: k,
|
|
16529
16514
|
workflowId: k.workflowId,
|
|
16530
16515
|
readOnly: !1,
|
|
@@ -16537,7 +16522,7 @@ class Ad {
|
|
|
16537
16522
|
...d.map(i)
|
|
16538
16523
|
])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await nr(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
|
|
16539
16524
|
var tt;
|
|
16540
|
-
const { transaction: E, workflowId:
|
|
16525
|
+
const { transaction: E, workflowId: b, readOnly: I, index: D } = y, F = m.get(b), k = t[D];
|
|
16541
16526
|
!g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
|
|
16542
16527
|
const T = g.get(E.id) || void 0, nt = new Fl({
|
|
16543
16528
|
onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
|
|
@@ -16548,9 +16533,9 @@ class Ad {
|
|
|
16548
16533
|
layouts: [],
|
|
16549
16534
|
singleVariantsRenderable: (tt = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : tt.singleVariantsRenderable,
|
|
16550
16535
|
stateMutationFunc: I ? async () => {
|
|
16551
|
-
throw new
|
|
16552
|
-
} : async (
|
|
16553
|
-
...
|
|
16536
|
+
throw new z("State mutation is forbidden in read only mode!");
|
|
16537
|
+
} : async (q) => this.updateTransactionState({
|
|
16538
|
+
...q,
|
|
16554
16539
|
context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
|
|
16555
16540
|
}),
|
|
16556
16541
|
graphQlClient: () => nt,
|
|
@@ -16559,11 +16544,11 @@ class Ad {
|
|
|
16559
16544
|
isReloadedTransaction: k.type === "transaction"
|
|
16560
16545
|
};
|
|
16561
16546
|
if (k.type === "transaction" && E.workflowState) {
|
|
16562
|
-
const
|
|
16563
|
-
R.layouts = Object.values(
|
|
16547
|
+
const q = JSON.parse(E.workflowState);
|
|
16548
|
+
R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
|
|
16564
16549
|
} else if (!I && k.workflowState) {
|
|
16565
|
-
const
|
|
16566
|
-
R.layouts = Object.values(
|
|
16550
|
+
const q = JSON.parse(k.workflowState);
|
|
16551
|
+
R.layouts = Object.values(q.layouts || {}).map((ft) => ft.layout), await Ga(q), R.reloadedState = q;
|
|
16567
16552
|
} else
|
|
16568
16553
|
R.layouts = Rl(
|
|
16569
16554
|
R.transaction,
|
|
@@ -16575,8 +16560,8 @@ class Ad {
|
|
|
16575
16560
|
}), f = await Promise.all(p);
|
|
16576
16561
|
N.setMap("transactionOwnerIds", g);
|
|
16577
16562
|
const w = f.sort((y, E) => y.index - E.index).map(async (y) => {
|
|
16578
|
-
const { experienceOptions: E, options:
|
|
16579
|
-
return await I.getWorkflowManager().getInitializationPromise(),
|
|
16563
|
+
const { experienceOptions: E, options: b } = y, I = new Vo(this, E);
|
|
16564
|
+
return await I.getWorkflowManager().getInitializationPromise(), b.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
|
|
16580
16565
|
}), S = await Promise.all(w);
|
|
16581
16566
|
return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
|
|
16582
16567
|
}
|
|
@@ -16586,7 +16571,7 @@ class Ad {
|
|
|
16586
16571
|
}
|
|
16587
16572
|
async getIntegrationProductById(t, e) {
|
|
16588
16573
|
var s, o;
|
|
16589
|
-
const i = (s = (await
|
|
16574
|
+
const i = (s = (await B.getShadowGraphqlClient().query({
|
|
16590
16575
|
query: Ii(e),
|
|
16591
16576
|
variables: {
|
|
16592
16577
|
ids: [t]
|
|
@@ -16600,7 +16585,7 @@ class Ad {
|
|
|
16600
16585
|
}
|
|
16601
16586
|
async getIntegrationProductFromExternalIds(t, e, a) {
|
|
16602
16587
|
var o;
|
|
16603
|
-
const s = (o = (await
|
|
16588
|
+
const s = (o = (await B.getShadowGraphqlClient().query({
|
|
16604
16589
|
query: Pi(a),
|
|
16605
16590
|
variables: {
|
|
16606
16591
|
externalProductId: e,
|
|
@@ -16617,8 +16602,8 @@ class Ad {
|
|
|
16617
16602
|
return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
|
|
16618
16603
|
}
|
|
16619
16604
|
async getShareActionsForTransaction(t) {
|
|
16620
|
-
const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await
|
|
16621
|
-
query:
|
|
16605
|
+
const a = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, n = await B.getShadowGraphqlClient().query({
|
|
16606
|
+
query: Bi,
|
|
16622
16607
|
errorPolicy: "all",
|
|
16623
16608
|
fetchPolicy: "no-cache",
|
|
16624
16609
|
variables: {
|
|
@@ -16633,7 +16618,7 @@ class Ad {
|
|
|
16633
16618
|
return n.data.transactions[0].transactionShareActions;
|
|
16634
16619
|
}
|
|
16635
16620
|
async placeOrder(t) {
|
|
16636
|
-
const e = await
|
|
16621
|
+
const e = await B.getShadowGraphqlClient().mutate({
|
|
16637
16622
|
mutation: Vi,
|
|
16638
16623
|
variables: {
|
|
16639
16624
|
orderItems: t
|
|
@@ -16649,7 +16634,7 @@ class Ad {
|
|
|
16649
16634
|
};
|
|
16650
16635
|
}
|
|
16651
16636
|
}
|
|
16652
|
-
const Ol = async (r, t) => (await
|
|
16637
|
+
const Ol = async (r, t) => (await B.getShadowGraphqlClient().query({
|
|
16653
16638
|
query: $i,
|
|
16654
16639
|
errorPolicy: "all",
|
|
16655
16640
|
fetchPolicy: "no-cache",
|
|
@@ -16662,8 +16647,8 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16662
16647
|
themeConfigurationId: t
|
|
16663
16648
|
}
|
|
16664
16649
|
})).data.currentIntegration, ud = async (r) => {
|
|
16665
|
-
const e = await
|
|
16666
|
-
query:
|
|
16650
|
+
const e = await B.getShadowGraphqlClient().query({
|
|
16651
|
+
query: bi,
|
|
16667
16652
|
errorPolicy: "all",
|
|
16668
16653
|
fetchPolicy: "network-only",
|
|
16669
16654
|
variables: {
|
|
@@ -16674,7 +16659,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16674
16659
|
return e.data.transactions[0];
|
|
16675
16660
|
}, hd = async (r, t) => {
|
|
16676
16661
|
var a;
|
|
16677
|
-
return (a = (await
|
|
16662
|
+
return (a = (await B.getShadowGraphqlClient().query({
|
|
16678
16663
|
query: Oi,
|
|
16679
16664
|
errorPolicy: "all",
|
|
16680
16665
|
variables: {
|
|
@@ -16684,7 +16669,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16684
16669
|
})).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16685
16670
|
}, md = async (r) => {
|
|
16686
16671
|
var e, a, n;
|
|
16687
|
-
return (n = (a = (e = (await
|
|
16672
|
+
return (n = (a = (e = (await B.getShadowGraphqlClient().query({
|
|
16688
16673
|
query: Li,
|
|
16689
16674
|
errorPolicy: "all",
|
|
16690
16675
|
variables: {
|
|
@@ -16693,7 +16678,7 @@ const Ol = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16693
16678
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16694
16679
|
}, gd = async (r) => {
|
|
16695
16680
|
var e, a, n;
|
|
16696
|
-
return (n = (a = (e = (await
|
|
16681
|
+
return (n = (a = (e = (await B.getShadowGraphqlClient().query({
|
|
16697
16682
|
query: Ui,
|
|
16698
16683
|
errorPolicy: "all",
|
|
16699
16684
|
variables: {
|
|
@@ -16850,7 +16835,7 @@ class Ul {
|
|
|
16850
16835
|
if (!n || !this.frameData)
|
|
16851
16836
|
return;
|
|
16852
16837
|
if (this.frameData.length !== t.length)
|
|
16853
|
-
throw new
|
|
16838
|
+
throw new z(
|
|
16854
16839
|
"Frame data and offsets are not the same length. This is a bug. Please report it."
|
|
16855
16840
|
);
|
|
16856
16841
|
if (!this.offsets.some((s, o) => !(t[o].x === s.x && t[o].y === s.y && t[o].zoom === s.zoom)) && !a) {
|
|
@@ -16894,9 +16879,9 @@ class Ul {
|
|
|
16894
16879
|
*/
|
|
16895
16880
|
updateFrameOffsets(t, e, a, n, i) {
|
|
16896
16881
|
if (!a || a.length === 0 || a.some((o) => !o))
|
|
16897
|
-
throw new
|
|
16882
|
+
throw new z("Frame data not set. This is a bug");
|
|
16898
16883
|
if (!this.workflowManager)
|
|
16899
|
-
throw new
|
|
16884
|
+
throw new z("No workflow manager set, cannot update offsets.");
|
|
16900
16885
|
const s = this.workflowManager.getCommandDispatcher();
|
|
16901
16886
|
this.targetElements.forEach((o, l) => {
|
|
16902
16887
|
s(
|
|
@@ -17345,7 +17330,7 @@ const zl = v`
|
|
|
17345
17330
|
total
|
|
17346
17331
|
}
|
|
17347
17332
|
}
|
|
17348
|
-
`,
|
|
17333
|
+
`, ql = v`
|
|
17349
17334
|
query GetTransactionsForBundle($id: String!) {
|
|
17350
17335
|
bundles(ids: [$id]) {
|
|
17351
17336
|
id
|
|
@@ -17366,7 +17351,7 @@ const zl = v`
|
|
|
17366
17351
|
}
|
|
17367
17352
|
}
|
|
17368
17353
|
}
|
|
17369
|
-
`,
|
|
17354
|
+
`, Hl = v`
|
|
17370
17355
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
17371
17356
|
bundleUpdate(id: $id, name: $name) {
|
|
17372
17357
|
id
|
|
@@ -17393,42 +17378,42 @@ const zl = v`
|
|
|
17393
17378
|
total
|
|
17394
17379
|
}
|
|
17395
17380
|
}
|
|
17396
|
-
`, fd = async (r, t, e) => await
|
|
17397
|
-
mutation:
|
|
17381
|
+
`, fd = async (r, t, e) => await B.getShadowGraphqlClient().mutate({
|
|
17382
|
+
mutation: Hl,
|
|
17398
17383
|
errorPolicy: "all",
|
|
17399
17384
|
variables: {
|
|
17400
17385
|
id: r,
|
|
17401
17386
|
name: t
|
|
17402
17387
|
},
|
|
17403
17388
|
context: e
|
|
17404
|
-
}), Cd = async (r, t) => await
|
|
17389
|
+
}), Cd = async (r, t) => await B.getShadowGraphqlClient().mutate({
|
|
17405
17390
|
mutation: Gl,
|
|
17406
17391
|
errorPolicy: "all",
|
|
17407
17392
|
variables: {
|
|
17408
17393
|
id: r,
|
|
17409
17394
|
name: t
|
|
17410
17395
|
}
|
|
17411
|
-
}), wd = async (r, t) => await
|
|
17396
|
+
}), wd = async (r, t) => await B.getShadowGraphqlClient().mutate({
|
|
17412
17397
|
mutation: Yl,
|
|
17413
17398
|
errorPolicy: "all",
|
|
17414
17399
|
variables: {
|
|
17415
17400
|
id: r,
|
|
17416
17401
|
template: t
|
|
17417
17402
|
}
|
|
17418
|
-
}), yd = async (r, t) => await
|
|
17403
|
+
}), yd = async (r, t) => await B.getShadowGraphqlClient().mutate({
|
|
17419
17404
|
mutation: Wl,
|
|
17420
17405
|
errorPolicy: "all",
|
|
17421
17406
|
variables: {
|
|
17422
17407
|
id: r,
|
|
17423
17408
|
template: t
|
|
17424
17409
|
}
|
|
17425
|
-
}), Sd = async (r) => (await
|
|
17410
|
+
}), Sd = async (r) => (await B.getShadowGraphqlClient().query({
|
|
17426
17411
|
query: zl,
|
|
17427
17412
|
errorPolicy: "all",
|
|
17428
17413
|
variables: {
|
|
17429
17414
|
email: r
|
|
17430
17415
|
}
|
|
17431
|
-
})).data.customer, vd = async (r, t, e) => await
|
|
17416
|
+
})).data.customer, vd = async (r, t, e) => await B.getShadowGraphqlClient().query({
|
|
17432
17417
|
query: jl,
|
|
17433
17418
|
errorPolicy: "all",
|
|
17434
17419
|
fetchPolicy: "no-cache",
|
|
@@ -17437,17 +17422,17 @@ const zl = v`
|
|
|
17437
17422
|
offset: e,
|
|
17438
17423
|
limit: t
|
|
17439
17424
|
}
|
|
17440
|
-
}), Ed = async (r, t) => await
|
|
17441
|
-
query:
|
|
17425
|
+
}), Ed = async (r, t) => await B.getShadowGraphqlClient().query({
|
|
17426
|
+
query: ql,
|
|
17442
17427
|
errorPolicy: "all",
|
|
17443
17428
|
fetchPolicy: "no-cache",
|
|
17444
17429
|
variables: {
|
|
17445
17430
|
id: r
|
|
17446
17431
|
},
|
|
17447
17432
|
context: t
|
|
17448
|
-
}),
|
|
17433
|
+
}), bd = async (r, t, e) => {
|
|
17449
17434
|
var n;
|
|
17450
|
-
const a = await
|
|
17435
|
+
const a = await B.getShadowGraphqlClient().query({
|
|
17451
17436
|
query: Da,
|
|
17452
17437
|
errorPolicy: "all",
|
|
17453
17438
|
fetchPolicy: "no-cache",
|
|
@@ -17469,9 +17454,9 @@ const zl = v`
|
|
|
17469
17454
|
}
|
|
17470
17455
|
});
|
|
17471
17456
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
17472
|
-
},
|
|
17457
|
+
}, Bd = async (r, t, e) => {
|
|
17473
17458
|
var n;
|
|
17474
|
-
const a = await
|
|
17459
|
+
const a = await B.getShadowGraphqlClient().query({
|
|
17475
17460
|
query: Da,
|
|
17476
17461
|
errorPolicy: "all",
|
|
17477
17462
|
fetchPolicy: "no-cache",
|
|
@@ -17495,7 +17480,7 @@ const zl = v`
|
|
|
17495
17480
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
17496
17481
|
}, Id = async (r, t, e) => {
|
|
17497
17482
|
var n;
|
|
17498
|
-
const a = await
|
|
17483
|
+
const a = await B.getShadowGraphqlClient().query({
|
|
17499
17484
|
query: Da,
|
|
17500
17485
|
errorPolicy: "all",
|
|
17501
17486
|
fetchPolicy: "no-cache",
|
|
@@ -17515,7 +17500,7 @@ const zl = v`
|
|
|
17515
17500
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
17516
17501
|
}, Pd = async (r, t, e) => {
|
|
17517
17502
|
var n;
|
|
17518
|
-
const a = await
|
|
17503
|
+
const a = await B.getShadowGraphqlClient().query({
|
|
17519
17504
|
query: Jl,
|
|
17520
17505
|
errorPolicy: "all",
|
|
17521
17506
|
fetchPolicy: "no-cache",
|
|
@@ -17682,7 +17667,7 @@ const Dd = async (r) => {
|
|
|
17682
17667
|
const t = r.map((a) => {
|
|
17683
17668
|
var n;
|
|
17684
17669
|
return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
|
|
17685
|
-
}).filter((a) => !!a), e = await
|
|
17670
|
+
}).filter((a) => !!a), e = await B.getShadowGraphqlClient().query({
|
|
17686
17671
|
query: ec,
|
|
17687
17672
|
errorPolicy: "all",
|
|
17688
17673
|
fetchPolicy: "network-only",
|
|
@@ -17698,7 +17683,7 @@ const Dd = async (r) => {
|
|
|
17698
17683
|
});
|
|
17699
17684
|
}, Fd = async (r) => {
|
|
17700
17685
|
var e;
|
|
17701
|
-
return (e = (await
|
|
17686
|
+
return (e = (await B.getShadowGraphqlClient().query({
|
|
17702
17687
|
query: tc,
|
|
17703
17688
|
errorPolicy: "all",
|
|
17704
17689
|
fetchPolicy: "network-only",
|
|
@@ -17708,7 +17693,7 @@ const Dd = async (r) => {
|
|
|
17708
17693
|
})).data) == null ? void 0 : e.addressValidationJobs;
|
|
17709
17694
|
}, xd = async (r) => {
|
|
17710
17695
|
var e, a;
|
|
17711
|
-
return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await
|
|
17696
|
+
return (e = r.getWorkflowManager().getTransaction().recipient) != null && e.id ? (a = (await B.getShadowGraphqlClient().mutate({
|
|
17712
17697
|
mutation: ac,
|
|
17713
17698
|
errorPolicy: "all",
|
|
17714
17699
|
fetchPolicy: "network-only",
|
|
@@ -17720,7 +17705,7 @@ const Dd = async (r) => {
|
|
|
17720
17705
|
const t = r.map((a) => {
|
|
17721
17706
|
var n;
|
|
17722
17707
|
return (n = a.getWorkflowManager().getTransaction().recipient) == null ? void 0 : n.id;
|
|
17723
|
-
}).filter((a) => !!a), e = await
|
|
17708
|
+
}).filter((a) => !!a), e = await B.getShadowGraphqlClient().mutate({
|
|
17724
17709
|
mutation: nc,
|
|
17725
17710
|
errorPolicy: "all",
|
|
17726
17711
|
fetchPolicy: "network-only",
|
|
@@ -17740,7 +17725,7 @@ export {
|
|
|
17740
17725
|
ic as AddressValidationJobStatus,
|
|
17741
17726
|
rc as AddressValidationResultConfirmationLevel,
|
|
17742
17727
|
cd as ArrayInput,
|
|
17743
|
-
|
|
17728
|
+
j as AspectType,
|
|
17744
17729
|
vt as AssetNotFoundError,
|
|
17745
17730
|
Ce as AssetType,
|
|
17746
17731
|
ad as BringForwardCommand,
|
|
@@ -17753,15 +17738,15 @@ export {
|
|
|
17753
17738
|
ls as CommandContext,
|
|
17754
17739
|
_l as ConversionDataType,
|
|
17755
17740
|
Kl as ConversionLocation,
|
|
17756
|
-
|
|
17741
|
+
G as CreateElementCommand,
|
|
17757
17742
|
Vn as CreateLayoutCommand,
|
|
17758
17743
|
Ml as CurrencyContext,
|
|
17759
17744
|
kl as CurrencyService,
|
|
17760
|
-
|
|
17745
|
+
bt as DeleteElementCommand,
|
|
17761
17746
|
Po as DigitalContentStepHandle,
|
|
17762
17747
|
il as FileUploadGlobalPropertyHandle,
|
|
17763
17748
|
Ae as FlowExecutionNodeResult,
|
|
17764
|
-
|
|
17749
|
+
bl as FlowExecutionResult,
|
|
17765
17750
|
El as FlowService,
|
|
17766
17751
|
us as FontAlignmentCommand,
|
|
17767
17752
|
ds as FontColorCommand,
|
|
@@ -17776,11 +17761,11 @@ export {
|
|
|
17776
17761
|
Re as InformationMessageType,
|
|
17777
17762
|
Io as InformationStepHandle,
|
|
17778
17763
|
_a as IntegrationProduct,
|
|
17779
|
-
|
|
17764
|
+
Br as IntegrationType,
|
|
17780
17765
|
Jc as LayoutElementFactory,
|
|
17781
17766
|
M as LayoutElementType,
|
|
17782
17767
|
J as LayoutNotFoundError,
|
|
17783
|
-
|
|
17768
|
+
qt as LayoutRenderingPurpose,
|
|
17784
17769
|
yo as MaterialStepHandle,
|
|
17785
17770
|
Se as MisconfigurationError,
|
|
17786
17771
|
pd as MockWorkflowManager,
|
|
@@ -17788,7 +17773,7 @@ export {
|
|
|
17788
17773
|
Do as ModuleStepHandle,
|
|
17789
17774
|
Kc as MoveCommand,
|
|
17790
17775
|
ar as ObjectInput,
|
|
17791
|
-
|
|
17776
|
+
Bl as ObjectInputType,
|
|
17792
17777
|
tr as OptionGlobalPropertyHandle,
|
|
17793
17778
|
ye as OptionNotFoundError,
|
|
17794
17779
|
Ft as ParseError,
|
|
@@ -17802,12 +17787,12 @@ export {
|
|
|
17802
17787
|
Eo as QuestionStepHandle,
|
|
17803
17788
|
xn as QueueablePromise,
|
|
17804
17789
|
Xc as ResizeCommand,
|
|
17805
|
-
|
|
17790
|
+
Ht as ResourceNotFoundError,
|
|
17806
17791
|
_c as RotateCommand,
|
|
17807
|
-
|
|
17792
|
+
H as ScaleAxis,
|
|
17808
17793
|
nd as SendBackwardsCommand,
|
|
17809
|
-
|
|
17810
|
-
|
|
17794
|
+
bo as ShapeStepHandle,
|
|
17795
|
+
br as ShareActionType,
|
|
17811
17796
|
Ad as SpiffCommerceClient,
|
|
17812
17797
|
we as StakeholderType,
|
|
17813
17798
|
vr as StepAspectType,
|
|
@@ -17817,10 +17802,10 @@ export {
|
|
|
17817
17802
|
gs as TextChangeCommand,
|
|
17818
17803
|
sl as TextGlobalPropertyHandle,
|
|
17819
17804
|
ld as TextInput,
|
|
17820
|
-
|
|
17805
|
+
Bo as TextStepHandle,
|
|
17821
17806
|
pl as Transform,
|
|
17822
17807
|
gl as TransformCollection,
|
|
17823
|
-
|
|
17808
|
+
z as UnhandledBehaviorError,
|
|
17824
17809
|
Pr as UnitOfMeasurement,
|
|
17825
17810
|
Zc as UpdateImageSourceCommand,
|
|
17826
17811
|
st as Variant,
|
|
@@ -17828,7 +17813,7 @@ export {
|
|
|
17828
17813
|
Vo as WorkflowExperienceImpl,
|
|
17829
17814
|
U as assetService,
|
|
17830
17815
|
Zr as browserColorToHex,
|
|
17831
|
-
|
|
17816
|
+
Hc as cmPerPixel,
|
|
17832
17817
|
No as createDesign,
|
|
17833
17818
|
Wc as currentDirection,
|
|
17834
17819
|
Mc as dataUrlFromExternalUrl,
|
|
@@ -17861,7 +17846,7 @@ export {
|
|
|
17861
17846
|
Ol as getIntegration,
|
|
17862
17847
|
zc as getNEPoint,
|
|
17863
17848
|
Vc as getNWPoint,
|
|
17864
|
-
|
|
17849
|
+
Bd as getOrderedTransactions,
|
|
17865
17850
|
hd as getOverrideThemeConfiguration,
|
|
17866
17851
|
Lc as getPointOfRotation,
|
|
17867
17852
|
od as getProductCollections,
|
|
@@ -17873,28 +17858,28 @@ export {
|
|
|
17873
17858
|
gd as getTransactionThemeConfiguration,
|
|
17874
17859
|
Ed as getTransactionsForBundle,
|
|
17875
17860
|
Uc as getTrueCoordinates,
|
|
17876
|
-
|
|
17861
|
+
bd as getUnorderedTransactions,
|
|
17877
17862
|
Dd as getValidationJobsForWorkflowExperiences,
|
|
17878
17863
|
dd as getWorkflow,
|
|
17879
17864
|
nr as getWorkflows,
|
|
17880
|
-
|
|
17865
|
+
B as graphQlManager,
|
|
17881
17866
|
ge as illustrationStepService,
|
|
17882
17867
|
$c as isCloseToValue,
|
|
17883
17868
|
Nt as loadFont,
|
|
17884
17869
|
Nc as matchHexToPms,
|
|
17885
17870
|
Wn as materialStepService,
|
|
17886
17871
|
hl as metafieldManager,
|
|
17887
|
-
|
|
17872
|
+
qc as mmPerPixel,
|
|
17888
17873
|
jn as modelStepService,
|
|
17889
17874
|
Ca as modifySVGColors,
|
|
17890
|
-
|
|
17875
|
+
qn as moduleStepService,
|
|
17891
17876
|
fd as nameBundle,
|
|
17892
17877
|
Cd as nameTransaction,
|
|
17893
17878
|
Y as optionService,
|
|
17894
17879
|
Yc as outlineFontsInSvg,
|
|
17895
17880
|
At as patternImageDataCache,
|
|
17896
17881
|
N as persistenceService,
|
|
17897
|
-
|
|
17882
|
+
Hn as pictureStepService,
|
|
17898
17883
|
Tc as pmsToRgb,
|
|
17899
17884
|
Yn as questionStepService,
|
|
17900
17885
|
kc as registerFetchImplementation,
|
|
@@ -17912,10 +17897,10 @@ export {
|
|
|
17912
17897
|
$a as svgColorValueToDefinition,
|
|
17913
17898
|
Un as svgStringDimensions,
|
|
17914
17899
|
ha as svgToDataUrl,
|
|
17915
|
-
|
|
17900
|
+
W as textStepService,
|
|
17916
17901
|
Ps as toast,
|
|
17917
17902
|
xd as validateWorkflowExperienceRecipient,
|
|
17918
17903
|
kd as validateWorkflowExperienceRecipients,
|
|
17919
|
-
|
|
17904
|
+
Bt as xmlSerializer
|
|
17920
17905
|
};
|
|
17921
17906
|
//# sourceMappingURL=index.mjs.map
|