@spiffcommerce/core 26.42.1-beta.796f341b-bc66-5f7a-8f69-b0df71fff691 → 26.42.1-beta.a2be3530-7f45-5bf8-9e1b-7442ff43c402
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 +42 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +199 -199
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20,38 +20,38 @@ import { split as Xe } from "unicode-default-word-boundary";
|
|
|
20
20
|
import ln from "lodash.debounce";
|
|
21
21
|
import "fs";
|
|
22
22
|
import "path";
|
|
23
|
-
var
|
|
23
|
+
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 || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__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))(D || {}), Cr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Cr || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), M = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(M || {}), wr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(wr || {}), yr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(yr || {}), Sr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(Sr || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Er = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Er || {}), 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 || {}), j = /* @__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))(j || {}), vr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(vr || {});
|
|
24
24
|
class cn extends Error {
|
|
25
25
|
constructor(t) {
|
|
26
26
|
super(t), this.name = this.constructor.name;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
class
|
|
29
|
+
class _t extends cn {
|
|
30
30
|
constructor(t) {
|
|
31
31
|
super(`ConfigurationError - ${t}`);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class ye extends _t {
|
|
35
35
|
constructor(t) {
|
|
36
36
|
super(`Option not Configured: ${t.stepTitle}`), this.optionId = (t == null ? void 0 : t.optionId) || "N/A";
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
class q extends
|
|
39
|
+
class q extends _t {
|
|
40
40
|
constructor(t) {
|
|
41
41
|
super(`Panel not Found: ${t.panelId}`), this.panelId = (t == null ? void 0 : t.panelId) || "N/A";
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
class Et extends
|
|
44
|
+
class Et extends _t {
|
|
45
45
|
constructor(t) {
|
|
46
46
|
super(`Asset not found for variant: ${t.name}`), this.variant = t;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class qt extends _t {
|
|
50
50
|
constructor(t) {
|
|
51
51
|
super(`Resource not found for asset: ${t.name}`), this.asset = t;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
class
|
|
54
|
+
class Se extends _t {
|
|
55
55
|
constructor(t, e) {
|
|
56
56
|
super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
|
|
57
57
|
}
|
|
@@ -165,7 +165,7 @@ function Sc(r) {
|
|
|
165
165
|
function Ec(r) {
|
|
166
166
|
ta = r;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Xt() {
|
|
169
169
|
return Ze ? new Ze().window : (console.log(
|
|
170
170
|
"DOM constructor is not registered. Assuming browser environment. If not, please register DOM constructor before calling this function."
|
|
171
171
|
), window);
|
|
@@ -196,17 +196,17 @@ const dn = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Na = /* @_
|
|
|
196
196
|
return t;
|
|
197
197
|
const a = (async () => await (await rt(r)).text())();
|
|
198
198
|
return Na.set(r, a), a;
|
|
199
|
-
}, Tt = (r) => r.every((t) => t !== "undefined"),
|
|
199
|
+
}, Tt = (r) => r.every((t) => t !== "undefined"), ie = (r) => Tt([typeof document]) ? document.createElement(r) : Xt().document.createElement(r), Pr = (r, t) => {
|
|
200
200
|
if (Tt([typeof document]))
|
|
201
201
|
return document.createElementNS(r, t);
|
|
202
|
-
const a =
|
|
202
|
+
const a = Xt().document.createElement(t);
|
|
203
203
|
return a.setAttribute("xmlns", r), a;
|
|
204
204
|
}, dt = () => {
|
|
205
205
|
if (Tt([typeof DOMParser]))
|
|
206
206
|
return new DOMParser();
|
|
207
|
-
const r =
|
|
207
|
+
const r = Xt();
|
|
208
208
|
return new r.DOMParser();
|
|
209
|
-
}, Fr = () => Tt([typeof DOMParser]) ? DOMParser :
|
|
209
|
+
}, Fr = () => Tt([typeof DOMParser]) ? DOMParser : Xt().DOMParser, Fe = (r, t) => new Promise((e, a) => {
|
|
210
210
|
t ? An(r).then(e).catch(a) : rt(r).then((n) => {
|
|
211
211
|
n.arrayBuffer().then(e).catch(a);
|
|
212
212
|
}).catch((n) => {
|
|
@@ -228,7 +228,7 @@ const dn = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Na = /* @_
|
|
|
228
228
|
}, bt = () => {
|
|
229
229
|
if (Tt([typeof XMLSerializer]))
|
|
230
230
|
return new XMLSerializer();
|
|
231
|
-
const r =
|
|
231
|
+
const r = Xt();
|
|
232
232
|
return new r.XMLSerializer();
|
|
233
233
|
}, Qa = (r) => btoa(r), xe = (r) => {
|
|
234
234
|
function t() {
|
|
@@ -376,7 +376,7 @@ const gt = (r, t, e) => {
|
|
|
376
376
|
} catch {
|
|
377
377
|
throw new Error("Canvas module not set");
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, Zt = (r, t) => {
|
|
380
380
|
if (aa !== void 0)
|
|
381
381
|
return aa(r, t);
|
|
382
382
|
try {
|
|
@@ -413,22 +413,22 @@ let Oe;
|
|
|
413
413
|
function ga() {
|
|
414
414
|
return Oe === void 0 && (Oe = Fr()), Oe;
|
|
415
415
|
}
|
|
416
|
-
let
|
|
416
|
+
let se = null;
|
|
417
417
|
const zr = (r) => new Promise((t) => {
|
|
418
418
|
if (xe(r) !== "image/jpeg")
|
|
419
419
|
return t(1);
|
|
420
420
|
ur(r).then((a) => t(a || 1)).catch(() => t(1));
|
|
421
421
|
}), Gr = async () => {
|
|
422
|
-
if (
|
|
423
|
-
return !
|
|
424
|
-
const t = await
|
|
425
|
-
return
|
|
422
|
+
if (se !== null)
|
|
423
|
+
return !se;
|
|
424
|
+
const t = await Zt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
|
|
425
|
+
return se = t.width === 2 && t.height === 3, !se;
|
|
426
426
|
}, Wr = (r) => {
|
|
427
427
|
const e = r.naturalWidth / r.naturalHeight;
|
|
428
428
|
return r.naturalHeight <= 8192 && r.naturalWidth <= 8192 ? [r.naturalWidth, r.naturalHeight] : r.naturalHeight > r.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
|
|
429
429
|
}, jr = async (r) => {
|
|
430
430
|
var A;
|
|
431
|
-
const t = await Mr(r), e = await
|
|
431
|
+
const t = await Mr(r), e = await Zt(t), [a, n] = Wr(e);
|
|
432
432
|
if (!await Gr()) {
|
|
433
433
|
const u = gt(a, n);
|
|
434
434
|
return (A = u.getContext("2d")) == null || A.drawImage(e, 0, 0, a, n), u;
|
|
@@ -469,7 +469,7 @@ const zr = (r) => new Promise((t) => {
|
|
|
469
469
|
height: t.height,
|
|
470
470
|
width: t.width
|
|
471
471
|
};
|
|
472
|
-
},
|
|
472
|
+
}, Yt = [
|
|
473
473
|
"Yellow C",
|
|
474
474
|
"Yellow 012 C",
|
|
475
475
|
"Orange 021 C",
|
|
@@ -3159,12 +3159,12 @@ const zr = (r) => new Promise((t) => {
|
|
|
3159
3159
|
parseInt(r.substring(4, 6), 16)
|
|
3160
3160
|
]);
|
|
3161
3161
|
function Bc(r) {
|
|
3162
|
-
const t =
|
|
3162
|
+
const t = Yt.indexOf(r);
|
|
3163
3163
|
return t >= 0 ? xt[t] : "";
|
|
3164
3164
|
}
|
|
3165
3165
|
function Hr(r) {
|
|
3166
3166
|
const t = xt.indexOf(r);
|
|
3167
|
-
return t >= 0 ?
|
|
3167
|
+
return t >= 0 ? Yt[t] : "";
|
|
3168
3168
|
}
|
|
3169
3169
|
function bc(r, t = 64) {
|
|
3170
3170
|
const e = [], a = [], n = Hr(r);
|
|
@@ -3181,10 +3181,10 @@ function bc(r, t = 64) {
|
|
|
3181
3181
|
a.push(u);
|
|
3182
3182
|
}
|
|
3183
3183
|
for (let A = 0; A < a.length; A++)
|
|
3184
|
-
a[A] <= t && !e.some((u) => u.pms ===
|
|
3184
|
+
a[A] <= t && !e.some((u) => u.pms === Yt[A]) && e.push({ pms: Yt[A], hex: xt[A], distance: a[A] });
|
|
3185
3185
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3186
3186
|
}
|
|
3187
|
-
const qr =
|
|
3187
|
+
const qr = Yt.map((r, t) => ({ pms: r, hex: xt[t] })), Yr = new hr(qr, { keys: ["pms"] });
|
|
3188
3188
|
function Ic(r, t) {
|
|
3189
3189
|
return Yr.search(r, t ? { limit: t } : void 0);
|
|
3190
3190
|
}
|
|
@@ -3204,7 +3204,7 @@ function Ra(r) {
|
|
|
3204
3204
|
const t = r.substring(1).toUpperCase();
|
|
3205
3205
|
return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
|
|
3206
3206
|
}
|
|
3207
|
-
const
|
|
3207
|
+
const oe = (r) => {
|
|
3208
3208
|
const t = fn(r.spotColor);
|
|
3209
3209
|
return t ? `${r.browserValue} ${t}` : r.browserValue;
|
|
3210
3210
|
}, fn = (r) => {
|
|
@@ -3306,13 +3306,13 @@ const se = (r) => {
|
|
|
3306
3306
|
if (o)
|
|
3307
3307
|
a.setAttribute(
|
|
3308
3308
|
"fill",
|
|
3309
|
-
e ?
|
|
3309
|
+
e ? oe(o) : o.browserValue
|
|
3310
3310
|
);
|
|
3311
3311
|
else {
|
|
3312
3312
|
const l = t[s];
|
|
3313
3313
|
l && a.setAttribute(
|
|
3314
3314
|
"fill",
|
|
3315
|
-
e ?
|
|
3315
|
+
e ? oe(l) : l.browserValue
|
|
3316
3316
|
);
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
@@ -3324,13 +3324,13 @@ const se = (r) => {
|
|
|
3324
3324
|
if (o)
|
|
3325
3325
|
a.setAttribute(
|
|
3326
3326
|
"stroke",
|
|
3327
|
-
e ?
|
|
3327
|
+
e ? oe(o) : o.browserValue
|
|
3328
3328
|
);
|
|
3329
3329
|
else {
|
|
3330
3330
|
const l = t[s];
|
|
3331
3331
|
l && a.setAttribute(
|
|
3332
3332
|
"fill",
|
|
3333
|
-
e ?
|
|
3333
|
+
e ? oe(l) : l.browserValue
|
|
3334
3334
|
);
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
@@ -3380,7 +3380,7 @@ const se = (r) => {
|
|
|
3380
3380
|
value
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
|
-
`,
|
|
3383
|
+
`, te = (r) => y`
|
|
3384
3384
|
${r && ai || ""}
|
|
3385
3385
|
fragment AssetFields on Asset {
|
|
3386
3386
|
name
|
|
@@ -3424,7 +3424,7 @@ const se = (r) => {
|
|
|
3424
3424
|
${r && "...AssetMetadataFields" || ""}
|
|
3425
3425
|
}
|
|
3426
3426
|
`, ni = y`
|
|
3427
|
-
${
|
|
3427
|
+
${te(!1)}
|
|
3428
3428
|
query GetAssets($keys: [String]!) {
|
|
3429
3429
|
assets(keys: $keys) {
|
|
3430
3430
|
...AssetFields
|
|
@@ -3499,7 +3499,7 @@ const se = (r) => {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
3501
|
`, si = y`
|
|
3502
|
-
${
|
|
3502
|
+
${te(!1)}
|
|
3503
3503
|
mutation RemoveBackgroundFromAsset($key: String!) {
|
|
3504
3504
|
assetRemoveBackground(key: $key) {
|
|
3505
3505
|
...AssetFields
|
|
@@ -3626,7 +3626,7 @@ class ci {
|
|
|
3626
3626
|
}, a, n);
|
|
3627
3627
|
}
|
|
3628
3628
|
async uploadFile(t, e) {
|
|
3629
|
-
const n = this.isRaster(t) ?
|
|
3629
|
+
const n = this.isRaster(t) ? Ce.Image : Ce.Illustration, i = await this.loadImageAsFileInfo(t);
|
|
3630
3630
|
return await this.uploadAssetWithProgress(i, n, e, !0);
|
|
3631
3631
|
}
|
|
3632
3632
|
async removeBackgroundFromAsset(t) {
|
|
@@ -3830,7 +3830,7 @@ class di {
|
|
|
3830
3830
|
this.disabled = t;
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
|
-
const
|
|
3833
|
+
const Jt = new di(), En = y`
|
|
3834
3834
|
fragment OptionFields on Option {
|
|
3835
3835
|
id
|
|
3836
3836
|
name
|
|
@@ -3868,7 +3868,7 @@ const Yt = new di(), En = y`
|
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
3870
|
`, Ai = y`
|
|
3871
|
-
${
|
|
3871
|
+
${te(!1)}
|
|
3872
3872
|
${wa}
|
|
3873
3873
|
${En}
|
|
3874
3874
|
query GetOptions($ids: [String]!) {
|
|
@@ -3891,11 +3891,11 @@ const Yt = new di(), En = y`
|
|
|
3891
3891
|
});
|
|
3892
3892
|
}), t.data.options;
|
|
3893
3893
|
}, hi = async (r, t) => (await t).find((a) => a.id === r), mi = async (r) => {
|
|
3894
|
-
const t = r.map((s) =>
|
|
3894
|
+
const t = r.map((s) => Jt.get({ id: s })), e = r.filter((s, o) => t[o] === void 0);
|
|
3895
3895
|
if (e.length === 0)
|
|
3896
3896
|
return Promise.all(t);
|
|
3897
3897
|
const a = ui(e), n = e.map(
|
|
3898
|
-
(s) =>
|
|
3898
|
+
(s) => Jt.set({ id: s }, hi(s, a))
|
|
3899
3899
|
), i = t.filter((s) => s !== void 0);
|
|
3900
3900
|
return await Promise.all(i.concat(n));
|
|
3901
3901
|
};
|
|
@@ -4573,7 +4573,7 @@ const _ = new gi(), vn = y`
|
|
|
4573
4573
|
name
|
|
4574
4574
|
}
|
|
4575
4575
|
`, xi = (r) => y`
|
|
4576
|
-
${
|
|
4576
|
+
${te(r)}
|
|
4577
4577
|
${wa}
|
|
4578
4578
|
${En}
|
|
4579
4579
|
${Ii}
|
|
@@ -4993,7 +4993,7 @@ const _ = new gi(), vn = y`
|
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
4995
|
`, Mi = y`
|
|
4996
|
-
${
|
|
4996
|
+
${te(!1)}
|
|
4997
4997
|
query GetWorkflowForTheme($id: String!) {
|
|
4998
4998
|
workflow(id: $id) {
|
|
4999
4999
|
id
|
|
@@ -5316,7 +5316,7 @@ const Q = () => {
|
|
|
5316
5316
|
width: u
|
|
5317
5317
|
}) => {
|
|
5318
5318
|
var B;
|
|
5319
|
-
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 ===
|
|
5319
|
+
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((v, I) => (
|
|
5320
5320
|
/* @ts-ignore */
|
|
5321
5321
|
/* @__PURE__ */ x("color-profile", { name: v.name, xlinkHref: v.key, children: " " }, I)
|
|
5322
5322
|
)), E = n.map((v) => ({
|
|
@@ -5359,7 +5359,7 @@ const Q = () => {
|
|
|
5359
5359
|
"g",
|
|
5360
5360
|
{
|
|
5361
5361
|
id: "element-group",
|
|
5362
|
-
clipPath: a.purpose ===
|
|
5362
|
+
clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5363
5363
|
children: S.map((v) => Qn(v)).filter((v) => !!v)
|
|
5364
5364
|
}
|
|
5365
5365
|
),
|
|
@@ -5467,13 +5467,13 @@ const Q = () => {
|
|
|
5467
5467
|
y: o.y - r.height * e.y / 2
|
|
5468
5468
|
};
|
|
5469
5469
|
return {
|
|
5470
|
-
a:
|
|
5471
|
-
b:
|
|
5472
|
-
c:
|
|
5473
|
-
d:
|
|
5470
|
+
a: le(n, l, a),
|
|
5471
|
+
b: le(i, l, a),
|
|
5472
|
+
c: le(s, l, a),
|
|
5473
|
+
d: le(o, l, a),
|
|
5474
5474
|
center: l
|
|
5475
5475
|
};
|
|
5476
|
-
},
|
|
5476
|
+
}, le = (r, t, e) => {
|
|
5477
5477
|
const a = Math.sin(e), n = Math.cos(e);
|
|
5478
5478
|
return {
|
|
5479
5479
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
@@ -5740,17 +5740,17 @@ const ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @_
|
|
|
5740
5740
|
h.appendChild(F);
|
|
5741
5741
|
}
|
|
5742
5742
|
return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
|
|
5743
|
-
},
|
|
5743
|
+
}, Ee = (r, t, e, a) => Math.max(Ki(r.join(`
|
|
5744
5744
|
`), e, a), t), Ua = (r, t, e, a, n, i) => {
|
|
5745
5745
|
const s = (i || ya) * n.getApproximateHeight(), o = t.split(`
|
|
5746
5746
|
`);
|
|
5747
5747
|
try {
|
|
5748
|
-
const l = o.flatMap((d) =>
|
|
5748
|
+
const l = o.flatMap((d) => me(d, r.width, a, n)), c = l.flatMap((d) => d.lines);
|
|
5749
5749
|
return {
|
|
5750
5750
|
lines: c,
|
|
5751
5751
|
requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
|
|
5752
5752
|
fontSize: e,
|
|
5753
|
-
requiredWidth:
|
|
5753
|
+
requiredWidth: Ee(c, r.width, a, n)
|
|
5754
5754
|
};
|
|
5755
5755
|
} catch {
|
|
5756
5756
|
const c = t.split("");
|
|
@@ -5758,17 +5758,17 @@ const ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @_
|
|
|
5758
5758
|
lines: c,
|
|
5759
5759
|
requiredHeight: c.length * (a * s),
|
|
5760
5760
|
fontSize: e,
|
|
5761
|
-
requiredWidth:
|
|
5761
|
+
requiredWidth: Ee(c, r.width, a, n)
|
|
5762
5762
|
};
|
|
5763
5763
|
}
|
|
5764
|
-
},
|
|
5764
|
+
}, me = (r, t, e, a) => {
|
|
5765
5765
|
const n = ht(r, e, a);
|
|
5766
5766
|
if (n <= t)
|
|
5767
5767
|
return { lines: [r], width: n };
|
|
5768
5768
|
if (!(r.indexOf(" ") > -1)) {
|
|
5769
5769
|
if (r.length <= 1)
|
|
5770
5770
|
throw new Error(`Character ${r} is wider than region`);
|
|
5771
|
-
const d = Math.floor(r.length / 2), A =
|
|
5771
|
+
const d = Math.floor(r.length / 2), A = me(r.slice(0, d), t, e, a), u = me(r.slice(d), t, e, a);
|
|
5772
5772
|
return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
|
|
5773
5773
|
}
|
|
5774
5774
|
const s = r.split(" "), o = [];
|
|
@@ -5776,7 +5776,7 @@ const ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @_
|
|
|
5776
5776
|
for (; c < s.length; ) {
|
|
5777
5777
|
const d = s[c];
|
|
5778
5778
|
if (ht(d, e, a) > t) {
|
|
5779
|
-
const A =
|
|
5779
|
+
const A = me(d, t, e, a);
|
|
5780
5780
|
o.push(...A.lines), l = Math.max(l, A.width), c++;
|
|
5781
5781
|
} else {
|
|
5782
5782
|
const A = [d];
|
|
@@ -5807,14 +5807,14 @@ const ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @_
|
|
|
5807
5807
|
return {
|
|
5808
5808
|
lines: o,
|
|
5809
5809
|
requiredHeight: t.height,
|
|
5810
|
-
requiredWidth:
|
|
5810
|
+
requiredWidth: Ee(o, t.width, s, n),
|
|
5811
5811
|
fontSize: t.fontSize
|
|
5812
5812
|
};
|
|
5813
5813
|
const l = t.width !== e.width != (t.height !== e.height);
|
|
5814
5814
|
return t.lineHeight === e.lineHeight && !l && e.input === r ? {
|
|
5815
5815
|
lines: o,
|
|
5816
5816
|
requiredHeight: t.height,
|
|
5817
|
-
requiredWidth:
|
|
5817
|
+
requiredWidth: Ee(o, t.width, s, n),
|
|
5818
5818
|
fontSize: qi(o, n, i, t.width, t.height, a)
|
|
5819
5819
|
} : Ua(t, r, t.fontSize, s, n, a);
|
|
5820
5820
|
}, Ji = (r, t, e, a, n) => {
|
|
@@ -5849,12 +5849,12 @@ const ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ue = /* @_
|
|
|
5849
5849
|
stripControlCharacters: !0,
|
|
5850
5850
|
vertical: !1,
|
|
5851
5851
|
uppercase: !1
|
|
5852
|
-
},
|
|
5852
|
+
}, ve = (r, t = La) => {
|
|
5853
5853
|
const e = { ...La, ...t };
|
|
5854
5854
|
let a = r || "";
|
|
5855
5855
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
5856
5856
|
`)), a;
|
|
5857
|
-
}, _i = (r, t) => r.map((e, a) => [e, t[a]]), Xi = (r = "center", t = !1) => t ? "center" : r, Nn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle",
|
|
5857
|
+
}, _i = (r, t) => r.map((e, a) => [e, t[a]]), Xi = (r = "center", t = !1) => t ? "center" : r, Nn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle", ee = (r, t, e) => r.fontData ? {
|
|
5858
5858
|
...r,
|
|
5859
5859
|
...(() => {
|
|
5860
5860
|
if (r.algorithm === Mt.Traditional) {
|
|
@@ -6158,7 +6158,7 @@ function Ea(r) {
|
|
|
6158
6158
|
return i < s ? -1 : i > s ? 1 : 0;
|
|
6159
6159
|
});
|
|
6160
6160
|
}
|
|
6161
|
-
const
|
|
6161
|
+
const ae = (r) => {
|
|
6162
6162
|
const t = r.variants;
|
|
6163
6163
|
if (t) {
|
|
6164
6164
|
if (t.length === 1)
|
|
@@ -6183,7 +6183,7 @@ const ee = (r) => {
|
|
|
6183
6183
|
var a;
|
|
6184
6184
|
if (!t)
|
|
6185
6185
|
return;
|
|
6186
|
-
const e = ((a = t.variants) == null ? void 0 : a.find((n) => n.id === r.frameVariantId)) ||
|
|
6186
|
+
const e = ((a = t.variants) == null ? void 0 : a.find((n) => n.id === r.frameVariantId)) || ae(t);
|
|
6187
6187
|
if (!e)
|
|
6188
6188
|
throw new Error(`No variant with ID: ${r.frameVariantId}`);
|
|
6189
6189
|
if (!e.asset)
|
|
@@ -6289,7 +6289,7 @@ const ee = (r) => {
|
|
|
6289
6289
|
at(r).then((e) => {
|
|
6290
6290
|
t(e);
|
|
6291
6291
|
}).catch((e) => console.error(e));
|
|
6292
|
-
}), ze = /* @__PURE__ */ new Map(),
|
|
6292
|
+
}), ze = /* @__PURE__ */ new Map(), Kt = async (r) => {
|
|
6293
6293
|
if (ze.has(r))
|
|
6294
6294
|
return ze.get(r);
|
|
6295
6295
|
const t = async (n) => new Promise((i, s) => {
|
|
@@ -6312,7 +6312,7 @@ const ee = (r) => {
|
|
|
6312
6312
|
anonymousCrossOrigin: !0,
|
|
6313
6313
|
ignoreDimensions: !1,
|
|
6314
6314
|
createCanvas: gt,
|
|
6315
|
-
createImage:
|
|
6315
|
+
createImage: Zt,
|
|
6316
6316
|
DOMParser: ga(),
|
|
6317
6317
|
fetch: rt
|
|
6318
6318
|
}), u = s.getAttribute("width"), h = s.getAttribute("height"), m = 2048;
|
|
@@ -6405,13 +6405,13 @@ class Lc {
|
|
|
6405
6405
|
const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Nt(n), o = {
|
|
6406
6406
|
assetUrl: n,
|
|
6407
6407
|
name: s.names.fullName.en
|
|
6408
|
-
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6408
|
+
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = ve(c, {
|
|
6409
6409
|
vertical: a.vertical,
|
|
6410
6410
|
uppercase: a.uppercase
|
|
6411
6411
|
}), A = e.region || await Ut(t, M.Textbox, n, {
|
|
6412
6412
|
text: d,
|
|
6413
6413
|
fontScale: a.size ? a.size / s.unitsPerEm : void 0
|
|
6414
|
-
}), u =
|
|
6414
|
+
}), u = ee(
|
|
6415
6415
|
{
|
|
6416
6416
|
id: Q(),
|
|
6417
6417
|
type: M.Textbox,
|
|
@@ -6492,7 +6492,7 @@ class Lc {
|
|
|
6492
6492
|
};
|
|
6493
6493
|
}
|
|
6494
6494
|
static async getIllustration(t, e) {
|
|
6495
|
-
const a = e.region || await Ut(t, M.Illustration, e.src), n = await lt(await $n(e.src)), i = await
|
|
6495
|
+
const a = e.region || await Ut(t, M.Illustration, e.src), n = await lt(await $n(e.src)), i = await Kt(n.svg), s = Q();
|
|
6496
6496
|
return {
|
|
6497
6497
|
cachedObjectURL: i,
|
|
6498
6498
|
stepRegion: e.region,
|
|
@@ -6567,7 +6567,7 @@ const L = (r, t) => K(r, t).elements.find((n) => n.id === r), K = (r, t) => {
|
|
|
6567
6567
|
const l = i[o];
|
|
6568
6568
|
if (l.src && l.svg)
|
|
6569
6569
|
try {
|
|
6570
|
-
l.cachedObjectURL = await
|
|
6570
|
+
l.cachedObjectURL = await Kt(l.svg);
|
|
6571
6571
|
} catch (c) {
|
|
6572
6572
|
console.log(c);
|
|
6573
6573
|
}
|
|
@@ -6666,7 +6666,7 @@ class Gc extends O {
|
|
|
6666
6666
|
s.scaleX = s.scaleX * this.width / e.width, s.scaleY = s.scaleY * this.height / e.height;
|
|
6667
6667
|
} else if (e.type === "textbox") {
|
|
6668
6668
|
const s = a, o = (!s.algorithm || s.algorithm === Mt.Autosize ? s.text : s.input) ?? "";
|
|
6669
|
-
a =
|
|
6669
|
+
a = ee(s, o, e);
|
|
6670
6670
|
}
|
|
6671
6671
|
const n = K(e.id, Object.values(t.layouts)), i = X(a, n);
|
|
6672
6672
|
return {
|
|
@@ -6844,7 +6844,7 @@ class ss extends O {
|
|
|
6844
6844
|
const a = {
|
|
6845
6845
|
...e,
|
|
6846
6846
|
fontSize: this.size
|
|
6847
|
-
}, n = K(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(
|
|
6847
|
+
}, n = K(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ee(a, i), n);
|
|
6848
6848
|
return {
|
|
6849
6849
|
...t,
|
|
6850
6850
|
layouts: {
|
|
@@ -6866,7 +6866,7 @@ class Wa extends O {
|
|
|
6866
6866
|
const a = {
|
|
6867
6867
|
...e,
|
|
6868
6868
|
fontData: this.fontData
|
|
6869
|
-
}, n = K(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(
|
|
6869
|
+
}, n = K(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ee(a, i), n);
|
|
6870
6870
|
return {
|
|
6871
6871
|
...t,
|
|
6872
6872
|
layouts: {
|
|
@@ -6990,7 +6990,7 @@ class ds extends O {
|
|
|
6990
6990
|
const e = L(this.id, Object.values(t.layouts));
|
|
6991
6991
|
if (!e.id)
|
|
6992
6992
|
throw new V();
|
|
6993
|
-
const a = K(e.id, Object.values(t.layouts)), n = X(
|
|
6993
|
+
const a = K(e.id, Object.values(t.layouts)), n = X(ee(e, this.text, e), a);
|
|
6994
6994
|
return {
|
|
6995
6995
|
...t,
|
|
6996
6996
|
layouts: {
|
|
@@ -7203,7 +7203,7 @@ class ja {
|
|
|
7203
7203
|
if (this.configuration.type === D.ProductOverlay) {
|
|
7204
7204
|
let u = "";
|
|
7205
7205
|
if ((l = this.product) != null && l.overlayImageUrl && (u = this.product.overlayImageUrl), s = u, !u)
|
|
7206
|
-
throw new
|
|
7206
|
+
throw new Se(this.configuration, "Couldn't find an asset for product overlay step");
|
|
7207
7207
|
}
|
|
7208
7208
|
const o = this.evaluateAssetType();
|
|
7209
7209
|
if (o === M.Image) {
|
|
@@ -7246,7 +7246,7 @@ class ja {
|
|
|
7246
7246
|
}))()), g = {
|
|
7247
7247
|
stepName: this.configuration.stepName,
|
|
7248
7248
|
id: Q(),
|
|
7249
|
-
cachedObjectURL: await
|
|
7249
|
+
cachedObjectURL: await Kt(m.svg),
|
|
7250
7250
|
src: u,
|
|
7251
7251
|
svg: m.svg,
|
|
7252
7252
|
colors: m.colors,
|
|
@@ -7274,7 +7274,7 @@ class ja {
|
|
|
7274
7274
|
}
|
|
7275
7275
|
async trigger() {
|
|
7276
7276
|
if (!this.configuration.data.regions)
|
|
7277
|
-
throw new
|
|
7277
|
+
throw new Se(this.configuration, "Missing regions.");
|
|
7278
7278
|
if (this.configuration.type === D.SilentIllustration) {
|
|
7279
7279
|
const t = this.configuration.data.regions.map(this.processRegion);
|
|
7280
7280
|
return Promise.all(t);
|
|
@@ -7359,7 +7359,7 @@ class hs {
|
|
|
7359
7359
|
async () => {
|
|
7360
7360
|
const g = await i();
|
|
7361
7361
|
if (!g.link || !g.link)
|
|
7362
|
-
throw new
|
|
7362
|
+
throw new qt(g.asset);
|
|
7363
7363
|
h({
|
|
7364
7364
|
rel: "mpeg4",
|
|
7365
7365
|
href: g.link
|
|
@@ -7380,7 +7380,7 @@ class hs {
|
|
|
7380
7380
|
throw new Pe("Cannot create QR code, URL too long.");
|
|
7381
7381
|
const d = await us(c);
|
|
7382
7382
|
if (!n.data || !n.data.regions)
|
|
7383
|
-
throw new
|
|
7383
|
+
throw new Se(n, "Missing regions.");
|
|
7384
7384
|
const A = await this.regionElements(n), u = await this.command(d, A, a, n.stepName);
|
|
7385
7385
|
return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(n.stepName, [], A, async () => {
|
|
7386
7386
|
a.updateStorage(n.stepName, {
|
|
@@ -7423,7 +7423,7 @@ class hs {
|
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
7425
|
const Vn = new hs();
|
|
7426
|
-
class
|
|
7426
|
+
class Be {
|
|
7427
7427
|
constructor() {
|
|
7428
7428
|
this.frameSourceSvg = async (t, e) => {
|
|
7429
7429
|
if (!t)
|
|
@@ -7434,7 +7434,7 @@ class ve {
|
|
|
7434
7434
|
const n = a.fileLink;
|
|
7435
7435
|
if (n)
|
|
7436
7436
|
return at(n, !0);
|
|
7437
|
-
throw new
|
|
7437
|
+
throw new qt(a);
|
|
7438
7438
|
};
|
|
7439
7439
|
}
|
|
7440
7440
|
async init(t, e, a) {
|
|
@@ -7537,7 +7537,7 @@ class ve {
|
|
|
7537
7537
|
}
|
|
7538
7538
|
selectImage(t, e, a, n = !0) {
|
|
7539
7539
|
var l;
|
|
7540
|
-
const i =
|
|
7540
|
+
const i = Be.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
|
|
7541
7541
|
if (s && s === i)
|
|
7542
7542
|
return Promise.resolve();
|
|
7543
7543
|
a.setEditedStatus(t.stepName, !0);
|
|
@@ -7778,11 +7778,11 @@ class ve {
|
|
|
7778
7778
|
const a = t.fileLink;
|
|
7779
7779
|
if (a)
|
|
7780
7780
|
return a;
|
|
7781
|
-
throw new
|
|
7781
|
+
throw new qt(t);
|
|
7782
7782
|
}
|
|
7783
7783
|
async loadPatternFromAsset(t, e, a, n) {
|
|
7784
7784
|
var c, d;
|
|
7785
|
-
const i =
|
|
7785
|
+
const i = Be.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
|
|
7786
7786
|
if (!o)
|
|
7787
7787
|
throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
|
|
7788
7788
|
try {
|
|
@@ -7809,7 +7809,7 @@ class ve {
|
|
|
7809
7809
|
), this.validateColorCount(e, a);
|
|
7810
7810
|
}
|
|
7811
7811
|
}
|
|
7812
|
-
const wt = new
|
|
7812
|
+
const wt = new Be();
|
|
7813
7813
|
class ms {
|
|
7814
7814
|
async getIllustrationBody(t) {
|
|
7815
7815
|
return new Promise((e) => {
|
|
@@ -7919,7 +7919,7 @@ class ms {
|
|
|
7919
7919
|
spotColor: A.spotColor,
|
|
7920
7920
|
pmsValue: A.pmsValue
|
|
7921
7921
|
};
|
|
7922
|
-
const o = fa(t, e, a, s), l = await
|
|
7922
|
+
const o = fa(t, e, a, s), l = await Kt(o), c = [];
|
|
7923
7923
|
for (const d of n) {
|
|
7924
7924
|
for (const [A, u] of i.entries())
|
|
7925
7925
|
c.push(new oa(d, A, u));
|
|
@@ -7974,7 +7974,7 @@ class ms {
|
|
|
7974
7974
|
async selectVariantCommand(t, e, a, n, i) {
|
|
7975
7975
|
var f;
|
|
7976
7976
|
if (!t.data || !t.data.regions)
|
|
7977
|
-
throw new
|
|
7977
|
+
throw new Se(t, "Missing regions.");
|
|
7978
7978
|
n(!0);
|
|
7979
7979
|
const s = a.map((C) => new Bt(C.id));
|
|
7980
7980
|
t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
|
|
@@ -7983,8 +7983,8 @@ class ms {
|
|
|
7983
7983
|
throw new Et(e);
|
|
7984
7984
|
const l = o.fileLink;
|
|
7985
7985
|
if (!l)
|
|
7986
|
-
throw new
|
|
7987
|
-
const c = await lt(await this.getIllustrationBody(l)), d = await
|
|
7986
|
+
throw new qt(o);
|
|
7987
|
+
const c = await lt(await this.getIllustrationBody(l)), d = await Kt(c.svg), A = (C) => {
|
|
7988
7988
|
const w = i.getLayouts().find((S) => S.panelId === C.panelId);
|
|
7989
7989
|
if (!w)
|
|
7990
7990
|
throw new q(C);
|
|
@@ -8057,12 +8057,12 @@ class ms {
|
|
|
8057
8057
|
};
|
|
8058
8058
|
}
|
|
8059
8059
|
}
|
|
8060
|
-
const
|
|
8060
|
+
const ge = new ms();
|
|
8061
8061
|
class gs {
|
|
8062
8062
|
async init(t, e, a) {
|
|
8063
8063
|
const n = t.option;
|
|
8064
8064
|
if (!n)
|
|
8065
|
-
throw new
|
|
8065
|
+
throw new ye(t);
|
|
8066
8066
|
if (a)
|
|
8067
8067
|
await this.reload(t, e, a);
|
|
8068
8068
|
else {
|
|
@@ -8080,7 +8080,7 @@ class gs {
|
|
|
8080
8080
|
a.serializableWorkflow.steps
|
|
8081
8081
|
), o = Object.values(a.layouts).map((d) => d.elements).flat().filter((d) => d.stepName === t.stepName), l = t.option;
|
|
8082
8082
|
if (!l)
|
|
8083
|
-
throw new
|
|
8083
|
+
throw new ye(t);
|
|
8084
8084
|
if (n != null && n.selectedVariants) {
|
|
8085
8085
|
const d = n.selectedVariants[0].id;
|
|
8086
8086
|
if (d) {
|
|
@@ -8140,7 +8140,7 @@ class ps {
|
|
|
8140
8140
|
async init(t, e, a) {
|
|
8141
8141
|
const n = t.option;
|
|
8142
8142
|
if (!n)
|
|
8143
|
-
throw new
|
|
8143
|
+
throw new ye(t);
|
|
8144
8144
|
if (a)
|
|
8145
8145
|
await this.reload(t, e, a);
|
|
8146
8146
|
else {
|
|
@@ -8512,7 +8512,7 @@ class ys {
|
|
|
8512
8512
|
async init(t, e, a) {
|
|
8513
8513
|
const n = t.option;
|
|
8514
8514
|
if (!n)
|
|
8515
|
-
throw new
|
|
8515
|
+
throw new ye(t);
|
|
8516
8516
|
if (a)
|
|
8517
8517
|
await this.reload(t, e, a);
|
|
8518
8518
|
else {
|
|
@@ -8711,7 +8711,7 @@ const Es = new Ss(), je = (r, t, e, a, n) => {
|
|
|
8711
8711
|
m || (c = !1);
|
|
8712
8712
|
}
|
|
8713
8713
|
return [null, null];
|
|
8714
|
-
},
|
|
8714
|
+
}, pe = (r, t, e, a, n) => {
|
|
8715
8715
|
let i, s;
|
|
8716
8716
|
const o = vt(t.assetUrl), l = o.getFont();
|
|
8717
8717
|
if (n.size) {
|
|
@@ -8729,16 +8729,16 @@ const Es = new Ss(), je = (r, t, e, a, n) => {
|
|
|
8729
8729
|
const A = d / l.unitsPerEm;
|
|
8730
8730
|
return [i, s] = je(e, a, d, A, o), [d, i, s];
|
|
8731
8731
|
}, He = 30;
|
|
8732
|
-
class
|
|
8732
|
+
class be extends Error {
|
|
8733
8733
|
constructor(t) {
|
|
8734
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8734
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = be.name;
|
|
8735
8735
|
}
|
|
8736
8736
|
}
|
|
8737
8737
|
const vs = ["‘", "’", "“", "”", `
|
|
8738
8738
|
`];
|
|
8739
|
-
class
|
|
8739
|
+
class Ie extends Error {
|
|
8740
8740
|
constructor(t) {
|
|
8741
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8741
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Ie.name;
|
|
8742
8742
|
}
|
|
8743
8743
|
}
|
|
8744
8744
|
class Bs {
|
|
@@ -8952,7 +8952,7 @@ class Bs {
|
|
|
8952
8952
|
}
|
|
8953
8953
|
getProcessedInput(t, e, a) {
|
|
8954
8954
|
const n = a ? t : this.injectReplaceableText(t, e);
|
|
8955
|
-
return
|
|
8955
|
+
return ve(n, {
|
|
8956
8956
|
vertical: e.vertical,
|
|
8957
8957
|
uppercase: e.uppercase
|
|
8958
8958
|
});
|
|
@@ -8970,7 +8970,7 @@ class Bs {
|
|
|
8970
8970
|
for (const A of e) {
|
|
8971
8971
|
if (!A.fontData)
|
|
8972
8972
|
throw new z("Failed to resolve font data for text.");
|
|
8973
|
-
const [u, h] =
|
|
8973
|
+
const [u, h] = pe(
|
|
8974
8974
|
A.fontSize,
|
|
8975
8975
|
A.fontData,
|
|
8976
8976
|
{ left: A.x, top: A.y, width: A.width, height: A.height, rotation: A.rotation, panelId: "" },
|
|
@@ -9071,7 +9071,7 @@ class Bs {
|
|
|
9071
9071
|
throw new Et(t);
|
|
9072
9072
|
const a = e.fileLink;
|
|
9073
9073
|
if (!a)
|
|
9074
|
-
throw new
|
|
9074
|
+
throw new qt(e);
|
|
9075
9075
|
const n = await Nt(a);
|
|
9076
9076
|
return {
|
|
9077
9077
|
assetUrl: a,
|
|
@@ -9165,7 +9165,7 @@ class Bs {
|
|
|
9165
9165
|
const h = s.getLayouts().find((p) => p.panelId === A.panelId), m = Q();
|
|
9166
9166
|
try {
|
|
9167
9167
|
if (!h)
|
|
9168
|
-
throw new
|
|
9168
|
+
throw new Ie("Failed to find layout for region: " + A.panelId);
|
|
9169
9169
|
const p = a.colorOption;
|
|
9170
9170
|
let f;
|
|
9171
9171
|
if (p && p.variants) {
|
|
@@ -9204,7 +9204,7 @@ class Bs {
|
|
|
9204
9204
|
}, S = [], B = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
9205
9205
|
if (!E.fontData)
|
|
9206
9206
|
throw new z("Failed to resolve font data for text.");
|
|
9207
|
-
const [I, P] =
|
|
9207
|
+
const [I, P] = pe(
|
|
9208
9208
|
E.fontSize,
|
|
9209
9209
|
E.fontData,
|
|
9210
9210
|
{
|
|
@@ -9232,10 +9232,10 @@ class Bs {
|
|
|
9232
9232
|
fontData: n
|
|
9233
9233
|
};
|
|
9234
9234
|
} catch (p) {
|
|
9235
|
-
throw console.log(p), new
|
|
9235
|
+
throw console.log(p), new be("Error adding font to region");
|
|
9236
9236
|
}
|
|
9237
9237
|
}, d = await Promise.all(a.regions.map(c)).catch((A) => {
|
|
9238
|
-
throw A instanceof
|
|
9238
|
+
throw A instanceof be ? (Es.setLatestToast("Failed to load font.", Qe.Error), A) : A instanceof Ie ? A : new Error(A);
|
|
9239
9239
|
});
|
|
9240
9240
|
return await s.setSelectionsAndElements(
|
|
9241
9241
|
t,
|
|
@@ -9265,7 +9265,7 @@ class Bs {
|
|
|
9265
9265
|
const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
9266
9266
|
for (const E of h)
|
|
9267
9267
|
if (E.region) {
|
|
9268
|
-
const [S, B] =
|
|
9268
|
+
const [S, B] = pe(
|
|
9269
9269
|
e,
|
|
9270
9270
|
a,
|
|
9271
9271
|
E.region,
|
|
@@ -9319,13 +9319,13 @@ const Is = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAEl
|
|
|
9319
9319
|
const e = tt("rect");
|
|
9320
9320
|
return e.setAttribute("height", `${r}`), e.setAttribute("width", `${t}`), e;
|
|
9321
9321
|
}, Ps = (r, t, e, a) => {
|
|
9322
|
-
const n =
|
|
9322
|
+
const n = ie("filter");
|
|
9323
9323
|
n.setAttribute("id", a), n.setAttribute("height", "200%"), n.setAttribute("width", "200%"), n.setAttribute("x", "-50%"), n.setAttribute("y", "-50%");
|
|
9324
|
-
const i =
|
|
9324
|
+
const i = ie("feOffset");
|
|
9325
9325
|
n.appendChild(i), i.setAttribute("result", "offOut"), i.setAttribute("in", "SourceAlpha"), i.setAttribute("dx", `${r}`), i.setAttribute("dy", `${t}`);
|
|
9326
|
-
const s =
|
|
9326
|
+
const s = ie("feGaussianBlur");
|
|
9327
9327
|
n.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
|
|
9328
|
-
const o =
|
|
9328
|
+
const o = ie("feBlend");
|
|
9329
9329
|
return n.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), n;
|
|
9330
9330
|
}, Fs = (r) => {
|
|
9331
9331
|
let t = r;
|
|
@@ -9504,7 +9504,7 @@ async function qn(r) {
|
|
|
9504
9504
|
return new Ts();
|
|
9505
9505
|
throw new z(`Failed to resolve Module, Module ${r} not found`);
|
|
9506
9506
|
}
|
|
9507
|
-
const
|
|
9507
|
+
const ne = y`
|
|
9508
9508
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
9509
9509
|
name
|
|
9510
9510
|
value
|
|
@@ -9527,7 +9527,7 @@ const ae = y`
|
|
|
9527
9527
|
}
|
|
9528
9528
|
}
|
|
9529
9529
|
`, Ns = y`
|
|
9530
|
-
${
|
|
9530
|
+
${ne}
|
|
9531
9531
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
9532
9532
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
9533
9533
|
id
|
|
@@ -9537,7 +9537,7 @@ const ae = y`
|
|
|
9537
9537
|
}
|
|
9538
9538
|
}
|
|
9539
9539
|
`, Qs = y`
|
|
9540
|
-
${
|
|
9540
|
+
${ne}
|
|
9541
9541
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
9542
9542
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
9543
9543
|
id
|
|
@@ -9547,7 +9547,7 @@ const ae = y`
|
|
|
9547
9547
|
}
|
|
9548
9548
|
}
|
|
9549
9549
|
`, Rs = y`
|
|
9550
|
-
${
|
|
9550
|
+
${ne}
|
|
9551
9551
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
9552
9552
|
globalPropertyState(bundleId: $bundleId) {
|
|
9553
9553
|
id
|
|
@@ -9618,7 +9618,7 @@ const ae = y`
|
|
|
9618
9618
|
...ProductFields
|
|
9619
9619
|
}
|
|
9620
9620
|
}
|
|
9621
|
-
`,
|
|
9621
|
+
`, re = (r) => y`
|
|
9622
9622
|
${r ? ba : ""}
|
|
9623
9623
|
fragment ProductCollectionFields on ProductCollection {
|
|
9624
9624
|
id
|
|
@@ -9677,8 +9677,8 @@ const ae = y`
|
|
|
9677
9677
|
}
|
|
9678
9678
|
}
|
|
9679
9679
|
`, $s = (r) => y`
|
|
9680
|
-
${
|
|
9681
|
-
${
|
|
9680
|
+
${ne}
|
|
9681
|
+
${re(r)}
|
|
9682
9682
|
query GetBundle($id: String!) {
|
|
9683
9683
|
globalPropertyState(bundleId: $id) {
|
|
9684
9684
|
id
|
|
@@ -9856,7 +9856,7 @@ const ae = y`
|
|
|
9856
9856
|
}
|
|
9857
9857
|
}
|
|
9858
9858
|
`, Gs = (r) => y`
|
|
9859
|
-
${
|
|
9859
|
+
${re(r)}
|
|
9860
9860
|
mutation CreateBundle(
|
|
9861
9861
|
$collectionId: String
|
|
9862
9862
|
$initialMetadata: [MetadataInput!]
|
|
@@ -9885,8 +9885,8 @@ const ae = y`
|
|
|
9885
9885
|
}
|
|
9886
9886
|
}
|
|
9887
9887
|
`, Ws = (r) => y`
|
|
9888
|
-
${
|
|
9889
|
-
${
|
|
9888
|
+
${ne}
|
|
9889
|
+
${re(r)}
|
|
9890
9890
|
mutation DuplicateBundle(
|
|
9891
9891
|
$id: String!
|
|
9892
9892
|
$template: Boolean
|
|
@@ -10041,7 +10041,7 @@ const ae = y`
|
|
|
10041
10041
|
}
|
|
10042
10042
|
}
|
|
10043
10043
|
`, to = (r) => y`
|
|
10044
|
-
${
|
|
10044
|
+
${re(r)}
|
|
10045
10045
|
mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
|
|
10046
10046
|
bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
|
|
10047
10047
|
id
|
|
@@ -10818,7 +10818,7 @@ class ho {
|
|
|
10818
10818
|
break;
|
|
10819
10819
|
case D.Illustration:
|
|
10820
10820
|
a.push(
|
|
10821
|
-
|
|
10821
|
+
ge.init(l, this, this.reloadedState)
|
|
10822
10822
|
);
|
|
10823
10823
|
break;
|
|
10824
10824
|
case D.Material:
|
|
@@ -11140,7 +11140,7 @@ class mo extends it {
|
|
|
11140
11140
|
*/
|
|
11141
11141
|
async selectVariant(t) {
|
|
11142
11142
|
if (!this.getUpdateState() && this.getCurrentVariant() !== t)
|
|
11143
|
-
return
|
|
11143
|
+
return ge.selectVariant(
|
|
11144
11144
|
this.step,
|
|
11145
11145
|
t.getResource(),
|
|
11146
11146
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -11186,7 +11186,7 @@ class mo extends it {
|
|
|
11186
11186
|
const d = c.id.replace(/\W/g, "");
|
|
11187
11187
|
a ? n.set(d, { browserValue: e, pmsValue: a }) : n.set(d, e);
|
|
11188
11188
|
}
|
|
11189
|
-
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e),
|
|
11189
|
+
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), ge.changeColors(
|
|
11190
11190
|
this.step,
|
|
11191
11191
|
this.manager.getRegionElements(this.step.stepName),
|
|
11192
11192
|
this.manager,
|
|
@@ -11198,7 +11198,7 @@ class mo extends it {
|
|
|
11198
11198
|
return this.step.data.colorOption;
|
|
11199
11199
|
}
|
|
11200
11200
|
getAvailableColors() {
|
|
11201
|
-
return this.step.data.colorPickerEnabled ?
|
|
11201
|
+
return this.step.data.colorPickerEnabled ? ge.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
11202
11202
|
}
|
|
11203
11203
|
isColorPickerEnabled() {
|
|
11204
11204
|
return this.step.data.colorPickerEnabled ?? !1;
|
|
@@ -11612,7 +11612,7 @@ class vo extends it {
|
|
|
11612
11612
|
});
|
|
11613
11613
|
}
|
|
11614
11614
|
}
|
|
11615
|
-
class
|
|
11615
|
+
class ce {
|
|
11616
11616
|
static get(t, e) {
|
|
11617
11617
|
switch (e.type) {
|
|
11618
11618
|
case D.DigitalContent:
|
|
@@ -11714,7 +11714,7 @@ const Jn = y`
|
|
|
11714
11714
|
}
|
|
11715
11715
|
}
|
|
11716
11716
|
`;
|
|
11717
|
-
function
|
|
11717
|
+
function Wt(r) {
|
|
11718
11718
|
const t = JSON.parse(atob(r.split(".")[1])).exp;
|
|
11719
11719
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
|
11720
11720
|
}
|
|
@@ -11729,7 +11729,7 @@ const Io = async (r, t) => {
|
|
|
11729
11729
|
throw new Error();
|
|
11730
11730
|
} catch {
|
|
11731
11731
|
const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
|
|
11732
|
-
c && !
|
|
11732
|
+
c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
|
|
11733
11733
|
}
|
|
11734
11734
|
return (i = (await b.getShadowGraphqlClient().mutate({
|
|
11735
11735
|
mutation: Bo,
|
|
@@ -11760,7 +11760,7 @@ const Io = async (r, t) => {
|
|
|
11760
11760
|
throw new Error();
|
|
11761
11761
|
} catch {
|
|
11762
11762
|
const l = ((n = Object.entries(localStorage).find(([d, A]) => d.startsWith("CognitoIdentityServiceProvider") && d.endsWith("idToken"))) == null ? void 0 : n[0]) || "", c = localStorage.getItem(l);
|
|
11763
|
-
c && !
|
|
11763
|
+
c && !Wt(c) && (e.Authorization = `Bearer ${c}`);
|
|
11764
11764
|
}
|
|
11765
11765
|
return (i = (await b.getShadowGraphqlClient().mutate({
|
|
11766
11766
|
mutation: bo,
|
|
@@ -11921,7 +11921,7 @@ const Io = async (r, t) => {
|
|
|
11921
11921
|
const P = await (await rt(B)).blob();
|
|
11922
11922
|
B = (await U.uploadAsset(
|
|
11923
11923
|
{ name: `${n.id}-preview-image.png`, blob: P },
|
|
11924
|
-
|
|
11924
|
+
Ce.Image,
|
|
11925
11925
|
!0,
|
|
11926
11926
|
!1
|
|
11927
11927
|
)).fileLink;
|
|
@@ -12277,7 +12277,7 @@ class Ro {
|
|
|
12277
12277
|
throw new Pe("Failed to obtain 2D context for preview image creation");
|
|
12278
12278
|
const m = Sa(u.layoutState.layout, u.layoutState.elements, {
|
|
12279
12279
|
renderingConfiguration: {
|
|
12280
|
-
purpose:
|
|
12280
|
+
purpose: Ht.Print,
|
|
12281
12281
|
region: { left: A.x, top: A.y, width: A.width, height: A.height }
|
|
12282
12282
|
}
|
|
12283
12283
|
}), g = un(m);
|
|
@@ -12285,7 +12285,7 @@ class Ro {
|
|
|
12285
12285
|
anonymousCrossOrigin: !0,
|
|
12286
12286
|
ignoreDimensions: !1,
|
|
12287
12287
|
createCanvas: gt,
|
|
12288
|
-
createImage:
|
|
12288
|
+
createImage: Zt,
|
|
12289
12289
|
DOMParser: ga(),
|
|
12290
12290
|
fetch
|
|
12291
12291
|
})).render();
|
|
@@ -12299,7 +12299,7 @@ class Ro {
|
|
|
12299
12299
|
const a = this.cachedStepHandles.get(e.stepName);
|
|
12300
12300
|
if (a)
|
|
12301
12301
|
return a;
|
|
12302
|
-
const n =
|
|
12302
|
+
const n = ce.get(this.getWorkflowManager(), e);
|
|
12303
12303
|
return this.cachedStepHandles.set(e.stepName, n), n;
|
|
12304
12304
|
}
|
|
12305
12305
|
getSteps() {
|
|
@@ -12403,10 +12403,10 @@ class Ro {
|
|
|
12403
12403
|
getStepByName(t) {
|
|
12404
12404
|
const e = this.getWorkflowManager().getWorkflow().steps.find((a) => a.stepTitle === t);
|
|
12405
12405
|
if (!(!e || !this.stepHasHandle(e)))
|
|
12406
|
-
return
|
|
12406
|
+
return ce.get(this.getWorkflowManager(), e);
|
|
12407
12407
|
}
|
|
12408
12408
|
getStepsByType(t) {
|
|
12409
|
-
return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) =>
|
|
12409
|
+
return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) => ce.get(this.getWorkflowManager(), e));
|
|
12410
12410
|
}
|
|
12411
12411
|
getStepsByScene(t) {
|
|
12412
12412
|
if (!this.getWorkflowManager().getWorkflow().stepGroups.find((a) => a.name === t.name))
|
|
@@ -12415,7 +12415,7 @@ class Ro {
|
|
|
12415
12415
|
);
|
|
12416
12416
|
return t.stepIds.map(
|
|
12417
12417
|
(a) => this.getWorkflowManager().getWorkflow().steps.find((n) => n.stepName === a)
|
|
12418
|
-
).filter((a) => this.stepHasHandle(a)).map((a) =>
|
|
12418
|
+
).filter((a) => this.stepHasHandle(a)).map((a) => ce.get(this.getWorkflowManager(), a));
|
|
12419
12419
|
}
|
|
12420
12420
|
async attachCustomerDetails(t) {
|
|
12421
12421
|
return this.assignCustomerDetails({ emailAddress: t.email });
|
|
@@ -12676,7 +12676,7 @@ const Oo = [
|
|
|
12676
12676
|
const n = e.data, i = a.option;
|
|
12677
12677
|
if (!i)
|
|
12678
12678
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12679
|
-
const s = ((S = i.variants) == null ? void 0 : S.find((v) => v.id === n.illustrationVariantId)) ||
|
|
12679
|
+
const s = ((S = i.variants) == null ? void 0 : S.find((v) => v.id === n.illustrationVariantId)) || ae(i);
|
|
12680
12680
|
if (!s)
|
|
12681
12681
|
return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
|
|
12682
12682
|
if (!s.asset)
|
|
@@ -12775,7 +12775,7 @@ const Oo = [
|
|
|
12775
12775
|
const n = e.data, i = a.option;
|
|
12776
12776
|
if (!i)
|
|
12777
12777
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12778
|
-
const s = ((d = i.variants) == null ? void 0 : d.find((u) => u.id === n.pictureVariantId)) ||
|
|
12778
|
+
const s = ((d = i.variants) == null ? void 0 : d.find((u) => u.id === n.pictureVariantId)) || ae(i);
|
|
12779
12779
|
if (!s)
|
|
12780
12780
|
return console.error(`No variant with ID: ${n.pictureVariantId}`), [];
|
|
12781
12781
|
if (!s.asset)
|
|
@@ -12817,7 +12817,7 @@ const Oo = [
|
|
|
12817
12817
|
const n = e.data, i = a.option;
|
|
12818
12818
|
if (!i)
|
|
12819
12819
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12820
|
-
const s = ((c = i.variants) == null ? void 0 : c.find((d) => d.id === n.colorVariantId)) ||
|
|
12820
|
+
const s = ((c = i.variants) == null ? void 0 : c.find((d) => d.id === n.colorVariantId)) || ae(i);
|
|
12821
12821
|
if (!s)
|
|
12822
12822
|
return console.error(`No variant with ID: ${n.colorVariantId}`), [];
|
|
12823
12823
|
t[a.stepName] = { selectedVariants: [s] };
|
|
@@ -12942,7 +12942,7 @@ const Oo = [
|
|
|
12942
12942
|
const p = a.option;
|
|
12943
12943
|
if (!p)
|
|
12944
12944
|
return;
|
|
12945
|
-
const f = ((w = p.variants) == null ? void 0 : w.find((E) => E.id === i.fontVariantId)) ||
|
|
12945
|
+
const f = ((w = p.variants) == null ? void 0 : w.find((E) => E.id === i.fontVariantId)) || ae(p);
|
|
12946
12946
|
if (!f || !f.asset)
|
|
12947
12947
|
return;
|
|
12948
12948
|
t[a.stepName] = { selectedVariants: [f] };
|
|
@@ -12958,7 +12958,7 @@ const Oo = [
|
|
|
12958
12958
|
assetUrl: p,
|
|
12959
12959
|
name: f.names.fullName.en
|
|
12960
12960
|
};
|
|
12961
|
-
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u =
|
|
12961
|
+
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = ve(A, {
|
|
12962
12962
|
vertical: a.data.vertical,
|
|
12963
12963
|
uppercase: a.data.uppercase
|
|
12964
12964
|
}), h = async (p) => {
|
|
@@ -12994,12 +12994,12 @@ const Oo = [
|
|
|
12994
12994
|
y: p.top
|
|
12995
12995
|
};
|
|
12996
12996
|
if (d) {
|
|
12997
|
-
const [w, E] =
|
|
12997
|
+
const [w, E] = pe(
|
|
12998
12998
|
a.data.size || s,
|
|
12999
12999
|
d,
|
|
13000
13000
|
p,
|
|
13001
13001
|
[
|
|
13002
|
-
|
|
13002
|
+
ve(u, {
|
|
13003
13003
|
vertical: a.data.vertical,
|
|
13004
13004
|
uppercase: a.data.uppercase
|
|
13005
13005
|
})
|
|
@@ -13236,7 +13236,7 @@ class Xo extends Pn {
|
|
|
13236
13236
|
} else
|
|
13237
13237
|
l = i.width, c = i.height;
|
|
13238
13238
|
const d = Sa(t.layoutState.layout, e, {
|
|
13239
|
-
renderingConfiguration: { purpose:
|
|
13239
|
+
renderingConfiguration: { purpose: Ht.ThreeD }
|
|
13240
13240
|
}), A = un(d), u = await Aa.from(this.ctx, A, {
|
|
13241
13241
|
anonymousCrossOrigin: !0,
|
|
13242
13242
|
ignoreDimensions: !this.nonPOTSupport,
|
|
@@ -13245,7 +13245,7 @@ class Xo extends Pn {
|
|
|
13245
13245
|
ignoreMouse: !0,
|
|
13246
13246
|
enableRedraw: !1,
|
|
13247
13247
|
createCanvas: gt,
|
|
13248
|
-
createImage:
|
|
13248
|
+
createImage: Zt,
|
|
13249
13249
|
DOMParser: ga(),
|
|
13250
13250
|
fetch
|
|
13251
13251
|
});
|
|
@@ -14182,14 +14182,14 @@ class Zn {
|
|
|
14182
14182
|
getProducts() {
|
|
14183
14183
|
if (!this.collection.productCollectionProducts)
|
|
14184
14184
|
throw new Error("Failed to find products on collection. Ensure you fetch them first!");
|
|
14185
|
-
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new
|
|
14185
|
+
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new de(t));
|
|
14186
14186
|
}
|
|
14187
14187
|
/**
|
|
14188
14188
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
14189
14189
|
*/
|
|
14190
14190
|
async fetchProducts(t) {
|
|
14191
14191
|
if (this.fullFetched)
|
|
14192
|
-
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
14192
|
+
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
|
|
14193
14193
|
const e = await b.getShadowGraphqlClient().query({
|
|
14194
14194
|
query: Ls,
|
|
14195
14195
|
variables: {
|
|
@@ -14198,7 +14198,7 @@ class Zn {
|
|
|
14198
14198
|
},
|
|
14199
14199
|
errorPolicy: "all"
|
|
14200
14200
|
});
|
|
14201
|
-
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
14201
|
+
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new de(a));
|
|
14202
14202
|
}
|
|
14203
14203
|
/**
|
|
14204
14204
|
* Returns a list of collections products matching the associated metafield/tag filters.
|
|
@@ -14281,7 +14281,7 @@ class Zn {
|
|
|
14281
14281
|
if (A || h.partial && (!h.data.productCollections || h.data.productCollections.length === 0 || !((g = h.data.productCollections[0].productCollectionProductsFeed) != null && g.items) || ((p = h.data.productCollections[0].productCollectionProductsFeed) == null ? void 0 : p.items.length) === 0))
|
|
14282
14282
|
return;
|
|
14283
14283
|
o.abort(), A = !0, u.unsubscribe();
|
|
14284
|
-
const m = ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.items.filter((S) => !!S.product).map((S) => new
|
|
14284
|
+
const m = ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.items.filter((S) => !!S.product).map((S) => new de(St(S)))) || [];
|
|
14285
14285
|
d({
|
|
14286
14286
|
items: m,
|
|
14287
14287
|
// Clone items because it could be cached data (immutable)
|
|
@@ -14305,7 +14305,7 @@ class Zn {
|
|
|
14305
14305
|
return this.collection;
|
|
14306
14306
|
}
|
|
14307
14307
|
}
|
|
14308
|
-
class
|
|
14308
|
+
class de {
|
|
14309
14309
|
constructor(t) {
|
|
14310
14310
|
this.product = t.product, this.productResource = t;
|
|
14311
14311
|
}
|
|
@@ -14368,12 +14368,12 @@ class ce {
|
|
|
14368
14368
|
if (e) {
|
|
14369
14369
|
const a = t.find((n) => n.workflowName === e);
|
|
14370
14370
|
if (a)
|
|
14371
|
-
return new
|
|
14371
|
+
return new jt(a);
|
|
14372
14372
|
}
|
|
14373
14373
|
if (t.length === 1)
|
|
14374
14374
|
return console.warn(
|
|
14375
14375
|
"Called getDefaultWorkflow() but no default was configured. There is only one workflow available so we will fall back to using this!"
|
|
14376
|
-
), new
|
|
14376
|
+
), new jt(t[0]);
|
|
14377
14377
|
throw new ut(
|
|
14378
14378
|
"Called getDefaultWorkflow() but no default workflow is configured for the requested product. Multiple workflows exist so we can't assume!"
|
|
14379
14379
|
);
|
|
@@ -14386,7 +14386,7 @@ class ce {
|
|
|
14386
14386
|
throw new ut(
|
|
14387
14387
|
"No workflows on configured product. Ensure at least 1 workflow is assigned to this product."
|
|
14388
14388
|
);
|
|
14389
|
-
return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new
|
|
14389
|
+
return this.product.workflows.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
|
|
14390
14390
|
}
|
|
14391
14391
|
/**
|
|
14392
14392
|
* A list of all integrations this product is connected to.
|
|
@@ -14441,7 +14441,7 @@ class ce {
|
|
|
14441
14441
|
return ll.requestKeysForEntity(this.product.id, t);
|
|
14442
14442
|
}
|
|
14443
14443
|
}
|
|
14444
|
-
class
|
|
14444
|
+
class jt {
|
|
14445
14445
|
constructor(t) {
|
|
14446
14446
|
this.workflow = t;
|
|
14447
14447
|
}
|
|
@@ -14516,7 +14516,7 @@ class Al {
|
|
|
14516
14516
|
}
|
|
14517
14517
|
}
|
|
14518
14518
|
const ul = y`
|
|
14519
|
-
${
|
|
14519
|
+
${re(!1)}
|
|
14520
14520
|
query GetProductCollections($ids: [String!]!) {
|
|
14521
14521
|
productCollections(ids: $ids) {
|
|
14522
14522
|
...ProductCollectionFields
|
|
@@ -14971,7 +14971,7 @@ class Ye {
|
|
|
14971
14971
|
variables: {
|
|
14972
14972
|
id: this.id,
|
|
14973
14973
|
details: t,
|
|
14974
|
-
type: e ||
|
|
14974
|
+
type: e || we.Owner
|
|
14975
14975
|
},
|
|
14976
14976
|
context: {
|
|
14977
14977
|
bundleOwnerId: this.ownerId
|
|
@@ -15363,14 +15363,14 @@ class wl {
|
|
|
15363
15363
|
* @returns The nodes contained within the execution.
|
|
15364
15364
|
*/
|
|
15365
15365
|
getNodes() {
|
|
15366
|
-
return this.execution.nodes.map((t) => new
|
|
15366
|
+
return this.execution.nodes.map((t) => new Ae(t));
|
|
15367
15367
|
}
|
|
15368
15368
|
/**
|
|
15369
15369
|
* @param type The type of node to return.
|
|
15370
15370
|
* @returns A list of nodes matching the requested type.
|
|
15371
15371
|
*/
|
|
15372
15372
|
getNodesByType(t) {
|
|
15373
|
-
return this.execution.nodes.filter((e) => e.type === t).map((e) => new
|
|
15373
|
+
return this.execution.nodes.filter((e) => e.type === t).map((e) => new Ae(e));
|
|
15374
15374
|
}
|
|
15375
15375
|
/**
|
|
15376
15376
|
* @returns A list of input nodes that exist in this execution.
|
|
@@ -15379,7 +15379,7 @@ class wl {
|
|
|
15379
15379
|
return this.execution.nodes.filter(
|
|
15380
15380
|
(t) => t.type === "StartTerminal"
|
|
15381
15381
|
/* StartTerminal */
|
|
15382
|
-
).map((t) => new
|
|
15382
|
+
).map((t) => new Ae(t));
|
|
15383
15383
|
}
|
|
15384
15384
|
/**
|
|
15385
15385
|
* @returns A list of out put nodes that exist in this execution.
|
|
@@ -15388,7 +15388,7 @@ class wl {
|
|
|
15388
15388
|
return this.execution.nodes.filter(
|
|
15389
15389
|
(t) => t.type === "EndTerminal"
|
|
15390
15390
|
/* EndTerminal */
|
|
15391
|
-
).map((t) => new
|
|
15391
|
+
).map((t) => new Ae(t));
|
|
15392
15392
|
}
|
|
15393
15393
|
/**
|
|
15394
15394
|
* @returns A date object representing the point in time this execution completed.
|
|
@@ -15405,7 +15405,7 @@ class wl {
|
|
|
15405
15405
|
return new Date(this.execution.failedAt);
|
|
15406
15406
|
}
|
|
15407
15407
|
}
|
|
15408
|
-
class
|
|
15408
|
+
class Ae {
|
|
15409
15409
|
constructor(t) {
|
|
15410
15410
|
this.node = t;
|
|
15411
15411
|
}
|
|
@@ -15484,7 +15484,7 @@ class Ka {
|
|
|
15484
15484
|
throw new Error(
|
|
15485
15485
|
"No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
|
|
15486
15486
|
);
|
|
15487
|
-
return new
|
|
15487
|
+
return new jt(t[0]);
|
|
15488
15488
|
}
|
|
15489
15489
|
getAllWorkflows() {
|
|
15490
15490
|
if (!this.integrationProduct.product)
|
|
@@ -15494,10 +15494,10 @@ class Ka {
|
|
|
15494
15494
|
throw new Error(
|
|
15495
15495
|
"No workflows found on product. This is generally due to a configuration error. Please confirm at least one workflow is configured for this product."
|
|
15496
15496
|
);
|
|
15497
|
-
return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new
|
|
15497
|
+
return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
|
|
15498
15498
|
}
|
|
15499
15499
|
}
|
|
15500
|
-
const
|
|
15500
|
+
const ue = y`
|
|
15501
15501
|
query GetCustomer($emailAddress: String!) {
|
|
15502
15502
|
customer(emailAddress: $emailAddress) {
|
|
15503
15503
|
id
|
|
@@ -15708,7 +15708,7 @@ const Lt = new bl(), Il = async (r, t) => {
|
|
|
15708
15708
|
var o, l, c;
|
|
15709
15709
|
delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset && U.cacheAsset(s.option.defaultVariant.asset), s.option.colorProfile && U.cacheAsset(s.option.colorProfile), (c = s.option.variants) == null || c.forEach((d) => {
|
|
15710
15710
|
d.asset && U.cacheAsset(d.asset), d.thumbnail && U.cacheAsset(d.thumbnail), d.material && U.cacheMaterial(d.material);
|
|
15711
|
-
}),
|
|
15711
|
+
}), Jt.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15712
15712
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15713
15713
|
}), a;
|
|
15714
15714
|
}, Dl = async (r, t) => {
|
|
@@ -15717,11 +15717,11 @@ const Lt = new bl(), Il = async (r, t) => {
|
|
|
15717
15717
|
throw new Error(`Workflow not found: ${r}`);
|
|
15718
15718
|
return a;
|
|
15719
15719
|
}, er = async (r, t) => {
|
|
15720
|
-
const e = r.map((o) =>
|
|
15720
|
+
const e = r.map((o) => Jt.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15721
15721
|
if (a.length === 0)
|
|
15722
15722
|
return Promise.all(e);
|
|
15723
15723
|
const n = Il(a, t), i = a.map(
|
|
15724
|
-
(o) =>
|
|
15724
|
+
(o) => Jt.set({ id: o, options: t }, Dl(o, n))
|
|
15725
15725
|
), s = e.filter((o) => o !== void 0);
|
|
15726
15726
|
return await Promise.all(s.concat(i));
|
|
15727
15727
|
}, ed = async (r, t) => (await er([r], t))[0], Pl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
@@ -15753,7 +15753,7 @@ class ad {
|
|
|
15753
15753
|
} catch (a) {
|
|
15754
15754
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15755
15755
|
}
|
|
15756
|
-
}, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.42.1-beta.
|
|
15756
|
+
}, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.42.1-beta.796f341b-bc66-5f7a-8f69-b0df71fff691"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15757
15757
|
}
|
|
15758
15758
|
configure(t) {
|
|
15759
15759
|
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 && Or(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -15800,7 +15800,7 @@ class ad {
|
|
|
15800
15800
|
var n, i;
|
|
15801
15801
|
const e = N.getMap("bundleOwnerIds");
|
|
15802
15802
|
if (e != null && e.has(t))
|
|
15803
|
-
return Promise.resolve({ success: !0, stakeholderType:
|
|
15803
|
+
return Promise.resolve({ success: !0, stakeholderType: we.Owner });
|
|
15804
15804
|
const a = N.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
15805
15805
|
if (a.has(t)) {
|
|
15806
15806
|
const s = a.get(t);
|
|
@@ -15849,7 +15849,7 @@ class ad {
|
|
|
15849
15849
|
return Promise.resolve({ success: !1, transactionReadOnly: !0 });
|
|
15850
15850
|
const s = N.getMap("transactionOwnerIds");
|
|
15851
15851
|
if (s != null && s.has(t))
|
|
15852
|
-
return Promise.resolve({ success: !0, stakeholderType:
|
|
15852
|
+
return Promise.resolve({ success: !0, stakeholderType: we.Owner });
|
|
15853
15853
|
const o = N.getMap("transactionCustomerIds");
|
|
15854
15854
|
if (o != null && o.has(t) && o.get(t) && await this.reloadLoggedInCustomer()) {
|
|
15855
15855
|
const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
|
|
@@ -15893,7 +15893,7 @@ class ad {
|
|
|
15893
15893
|
}
|
|
15894
15894
|
async customerHasBundleTemplates(t) {
|
|
15895
15895
|
const n = (await b.getShadowGraphqlClient().query({
|
|
15896
|
-
query:
|
|
15896
|
+
query: ue,
|
|
15897
15897
|
errorPolicy: "all",
|
|
15898
15898
|
fetchPolicy: "no-cache",
|
|
15899
15899
|
variables: {
|
|
@@ -15917,7 +15917,7 @@ class ad {
|
|
|
15917
15917
|
var s;
|
|
15918
15918
|
this.customer = void 0;
|
|
15919
15919
|
const e = b.getShadowGraphqlClient(), n = (await e.query({
|
|
15920
|
-
query:
|
|
15920
|
+
query: ue,
|
|
15921
15921
|
errorPolicy: "all",
|
|
15922
15922
|
fetchPolicy: "no-cache",
|
|
15923
15923
|
variables: {
|
|
@@ -15970,7 +15970,7 @@ class ad {
|
|
|
15970
15970
|
return this.logOut(), console.error("Failed to refresh tokens."), !1;
|
|
15971
15971
|
}
|
|
15972
15972
|
const o = (await b.getShadowGraphqlClient().query({
|
|
15973
|
-
query:
|
|
15973
|
+
query: ue,
|
|
15974
15974
|
errorPolicy: "all",
|
|
15975
15975
|
fetchPolicy: "no-cache",
|
|
15976
15976
|
variables: {
|
|
@@ -15999,7 +15999,7 @@ class ad {
|
|
|
15999
15999
|
if (n != null && n.AuthenticationResult) {
|
|
16000
16000
|
localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(n.AuthenticationResult)), localStorage.setItem("cognito-email", t);
|
|
16001
16001
|
const s = (await b.getShadowGraphqlClient().query({
|
|
16002
|
-
query:
|
|
16002
|
+
query: ue,
|
|
16003
16003
|
errorPolicy: "all",
|
|
16004
16004
|
fetchPolicy: "no-cache",
|
|
16005
16005
|
variables: {
|
|
@@ -16024,11 +16024,11 @@ class ad {
|
|
|
16024
16024
|
const t = localStorage.getItem("last-refreshed-cognito-tokens"), e = localStorage.getItem("cognito-tokens");
|
|
16025
16025
|
if (!t || !e)
|
|
16026
16026
|
throw console.log("TOKEN DEBUG: bailing"), new Error("No token data in storage.");
|
|
16027
|
-
const a = JSON.parse(e), n = (/* @__PURE__ */ new Date()).getTime() / 1e3;
|
|
16028
|
-
if (console.log(`TOKEN DEBUG: tokens are ${JSON.stringify(a, null, 2)}, now: ${n}, was: ${t}, diff: ${n - parseInt(t)}`), !a.ExpiresIn || a.ExpiresIn < n - parseInt(t)) {
|
|
16029
|
-
const
|
|
16030
|
-
if (console.log("TOKEN DEBUG: doing a refresh"),
|
|
16031
|
-
console.log(`TOKEN DEBUG: refresh result ${JSON.stringify(
|
|
16027
|
+
const a = JSON.parse(e), n = (/* @__PURE__ */ new Date()).getTime() / 1e3, i = !(a != null && a.AccessToken) || Wt(a.AccessToken);
|
|
16028
|
+
if (console.log(`TOKEN DEBUG: tokens are ${JSON.stringify(a, null, 2)}, now: ${n}, was: ${t}, diff: ${n - parseInt(t)}, exp: ${i}`), !a.ExpiresIn || a.ExpiresIn < n - parseInt(t) || i) {
|
|
16029
|
+
const s = await Lt.refreshTokens();
|
|
16030
|
+
if (console.log("TOKEN DEBUG: doing a refresh"), s != null && s.AuthenticationResult)
|
|
16031
|
+
console.log(`TOKEN DEBUG: refresh result ${JSON.stringify(s.AuthenticationResult, null, 2)}`), localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`);
|
|
16032
16032
|
else
|
|
16033
16033
|
throw console.log("TOKEN DEBUG: logging out"), this.logOut(), new Error("Failed to refresh tokens.");
|
|
16034
16034
|
}
|
|
@@ -16090,7 +16090,7 @@ class ad {
|
|
|
16090
16090
|
o.Authorization = `Bearer ${I}`;
|
|
16091
16091
|
} catch {
|
|
16092
16092
|
const F = ((h = Object.entries(localStorage).find(([T, nt]) => T.startsWith("CognitoIdentityServiceProvider") && T.endsWith("idToken"))) == null ? void 0 : h[0]) || "", k = localStorage.getItem(F);
|
|
16093
|
-
k && !
|
|
16093
|
+
k && !Wt(k) && (o.Authorization = `Bearer ${k}`);
|
|
16094
16094
|
}
|
|
16095
16095
|
const l = {
|
|
16096
16096
|
bundleOwnerId: s,
|
|
@@ -16132,7 +16132,7 @@ class ad {
|
|
|
16132
16132
|
s.Authorization = `Bearer ${S}`;
|
|
16133
16133
|
} catch {
|
|
16134
16134
|
const v = ((m = Object.entries(localStorage).find(([P, F]) => P.startsWith("CognitoIdentityServiceProvider") && P.endsWith("idToken"))) == null ? void 0 : m[0]) || "", I = localStorage.getItem(v);
|
|
16135
|
-
I && !
|
|
16135
|
+
I && !Wt(I) && (s.Authorization = `Bearer ${I}`);
|
|
16136
16136
|
}
|
|
16137
16137
|
const o = {
|
|
16138
16138
|
bundleOwnerId: i,
|
|
@@ -16465,12 +16465,12 @@ function kl(r, t, e, a) {
|
|
|
16465
16465
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
16466
16466
|
o.zoom = Math.max(l, r.zoom);
|
|
16467
16467
|
const c = e.width * o.zoom, d = e.height * o.zoom;
|
|
16468
|
-
return o.x =
|
|
16468
|
+
return o.x = he(r.x, t.width - c, 0), o.y = he(r.y, t.height - d, 0), o;
|
|
16469
16469
|
}
|
|
16470
16470
|
const s = r;
|
|
16471
|
-
return s.x =
|
|
16471
|
+
return s.x = he(s.x, -n, t.width), s.y = he(s.y, -i, t.height), s;
|
|
16472
16472
|
}
|
|
16473
|
-
function
|
|
16473
|
+
function he(r, t, e) {
|
|
16474
16474
|
return Math.min(Math.max(r, t), e);
|
|
16475
16475
|
}
|
|
16476
16476
|
class Ml {
|
|
@@ -17312,7 +17312,7 @@ function jl() {
|
|
|
17312
17312
|
for (var r; r = ar.shift(); )
|
|
17313
17313
|
if (r.__P && r.__H)
|
|
17314
17314
|
try {
|
|
17315
|
-
r.__H.__h.forEach(
|
|
17315
|
+
r.__H.__h.forEach(fe), r.__H.__h.forEach(da), r.__H.__h = [];
|
|
17316
17316
|
} catch (t) {
|
|
17317
17317
|
r.__H.__h = [], J.__e(t, r.__v);
|
|
17318
17318
|
}
|
|
@@ -17324,7 +17324,7 @@ J.__b = function(r) {
|
|
|
17324
17324
|
var t = (ot = r.__c).__H;
|
|
17325
17325
|
t && (Je === ot ? (t.__h = [], ot.__h = [], t.__.forEach(function(e) {
|
|
17326
17326
|
e.__N && (e.__ = e.__N), e.__V = Ke, e.__N = e.i = void 0;
|
|
17327
|
-
})) : (t.__h.forEach(
|
|
17327
|
+
})) : (t.__h.forEach(fe), t.__h.forEach(da), t.__h = [])), Je = ot;
|
|
17328
17328
|
}, J.diffed = function(r) {
|
|
17329
17329
|
tn && tn(r);
|
|
17330
17330
|
var t = r.__c;
|
|
@@ -17334,7 +17334,7 @@ J.__b = function(r) {
|
|
|
17334
17334
|
}, J.__c = function(r, t) {
|
|
17335
17335
|
t.some(function(e) {
|
|
17336
17336
|
try {
|
|
17337
|
-
e.__h.forEach(
|
|
17337
|
+
e.__h.forEach(fe), e.__h = e.__h.filter(function(a) {
|
|
17338
17338
|
return !a.__ || da(a);
|
|
17339
17339
|
});
|
|
17340
17340
|
} catch (a) {
|
|
@@ -17348,7 +17348,7 @@ J.__b = function(r) {
|
|
|
17348
17348
|
var t, e = r.__c;
|
|
17349
17349
|
e && e.__H && (e.__H.__.forEach(function(a) {
|
|
17350
17350
|
try {
|
|
17351
|
-
|
|
17351
|
+
fe(a);
|
|
17352
17352
|
} catch (n) {
|
|
17353
17353
|
t = n;
|
|
17354
17354
|
}
|
|
@@ -17361,7 +17361,7 @@ function Hl(r) {
|
|
|
17361
17361
|
}, a = setTimeout(e, 100);
|
|
17362
17362
|
nn && (t = requestAnimationFrame(e));
|
|
17363
17363
|
}
|
|
17364
|
-
function
|
|
17364
|
+
function fe(r) {
|
|
17365
17365
|
var t = ot, e = r.__c;
|
|
17366
17366
|
typeof e == "function" && (r.__c = void 0, e()), ot = t;
|
|
17367
17367
|
}
|
|
@@ -17500,13 +17500,13 @@ export {
|
|
|
17500
17500
|
td as ArrayInput,
|
|
17501
17501
|
et as AspectType,
|
|
17502
17502
|
Et as AssetNotFoundError,
|
|
17503
|
-
|
|
17503
|
+
Ce as AssetType,
|
|
17504
17504
|
qc as BringForwardCommand,
|
|
17505
17505
|
Hc as BringToBackCommand,
|
|
17506
17506
|
jc as BringToFrontCommand,
|
|
17507
17507
|
wr as BundleDesignCreationCartAddMode,
|
|
17508
17508
|
O as CanvasCommand,
|
|
17509
|
-
|
|
17509
|
+
de as CollectionProduct,
|
|
17510
17510
|
Ja as ColorOptionGlobalPropertyHandle,
|
|
17511
17511
|
ns as CommandContext,
|
|
17512
17512
|
Wl as ConversionDataType,
|
|
@@ -17516,7 +17516,7 @@ export {
|
|
|
17516
17516
|
Bt as DeleteElementCommand,
|
|
17517
17517
|
Eo as DigitalContentStepHandle,
|
|
17518
17518
|
tl as FileUploadGlobalPropertyHandle,
|
|
17519
|
-
|
|
17519
|
+
Ae as FlowExecutionNodeResult,
|
|
17520
17520
|
wl as FlowExecutionResult,
|
|
17521
17521
|
Cl as FlowService,
|
|
17522
17522
|
os as FontAlignmentCommand,
|
|
@@ -17536,9 +17536,9 @@ export {
|
|
|
17536
17536
|
Lc as LayoutElementFactory,
|
|
17537
17537
|
M as LayoutElementType,
|
|
17538
17538
|
q as LayoutNotFoundError,
|
|
17539
|
-
|
|
17539
|
+
Ht as LayoutRenderingPurpose,
|
|
17540
17540
|
go as MaterialStepHandle,
|
|
17541
|
-
|
|
17541
|
+
Se as MisconfigurationError,
|
|
17542
17542
|
od as MockWorkflowManager,
|
|
17543
17543
|
po as ModelStepHandle,
|
|
17544
17544
|
vo as ModuleStepHandle,
|
|
@@ -17546,26 +17546,26 @@ export {
|
|
|
17546
17546
|
tr as ObjectInput,
|
|
17547
17547
|
yl as ObjectInputType,
|
|
17548
17548
|
Xn as OptionGlobalPropertyHandle,
|
|
17549
|
-
|
|
17549
|
+
ye as OptionNotFoundError,
|
|
17550
17550
|
Ft as ParseError,
|
|
17551
17551
|
fo as PictureStepHandle,
|
|
17552
17552
|
Er as ProductCameraRig,
|
|
17553
17553
|
Zn as ProductCollection,
|
|
17554
17554
|
cl as ProductCollectionProductSortKey,
|
|
17555
|
-
|
|
17556
|
-
|
|
17555
|
+
jt as ProductWorkflow,
|
|
17556
|
+
Jt as PromiseCache,
|
|
17557
17557
|
Fn as PromiseQueue,
|
|
17558
17558
|
Co as QuestionStepHandle,
|
|
17559
17559
|
Pn as QueueablePromise,
|
|
17560
17560
|
Gc as ResizeCommand,
|
|
17561
|
-
|
|
17561
|
+
qt as ResourceNotFoundError,
|
|
17562
17562
|
zc as RotateCommand,
|
|
17563
17563
|
j as ScaleAxis,
|
|
17564
17564
|
Yc as SendBackwardsCommand,
|
|
17565
17565
|
wo as ShapeStepHandle,
|
|
17566
17566
|
yr as ShareActionType,
|
|
17567
17567
|
ad as SpiffCommerceClient,
|
|
17568
|
-
|
|
17568
|
+
we as StakeholderType,
|
|
17569
17569
|
Cr as StepAspectType,
|
|
17570
17570
|
it as StepHandle,
|
|
17571
17571
|
D as StepType,
|
|
@@ -17589,7 +17589,7 @@ export {
|
|
|
17589
17589
|
Qc as currentDirection,
|
|
17590
17590
|
vc as dataUrlFromExternalUrl,
|
|
17591
17591
|
qe as designService,
|
|
17592
|
-
|
|
17592
|
+
pe as determineCorrectFontSizeAndLines,
|
|
17593
17593
|
Vn as digitalContentStepService,
|
|
17594
17594
|
dt as domParser,
|
|
17595
17595
|
dd as duplicateBundle,
|
|
@@ -17634,7 +17634,7 @@ export {
|
|
|
17634
17634
|
ed as getWorkflow,
|
|
17635
17635
|
er as getWorkflows,
|
|
17636
17636
|
b as graphQlManager,
|
|
17637
|
-
|
|
17637
|
+
ge as illustrationStepService,
|
|
17638
17638
|
Fc as isCloseToValue,
|
|
17639
17639
|
Nt as loadFont,
|
|
17640
17640
|
bc as matchHexToPms,
|
|
@@ -17657,7 +17657,7 @@ export {
|
|
|
17657
17657
|
Sc as registerWindowImplementation,
|
|
17658
17658
|
za as rehydrateSerializedLayout,
|
|
17659
17659
|
Hr as rgbToPms,
|
|
17660
|
-
|
|
17660
|
+
le as rotateAroundPoint,
|
|
17661
17661
|
pa as sanitizeSvgTree,
|
|
17662
17662
|
Or as setBearerAuthenticationToken,
|
|
17663
17663
|
gn as setCanvasModule,
|