@spiffcommerce/core 33.11.0-beta.1c20a63b-d01f-59c6-8e14-8e80cf12cee4 → 33.11.0-beta.585a4a5e-6602-5230-ad16-e88c28697011
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 +50 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +299 -297
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createHttpLink as Ii, ApolloClient as Bi, InMemoryCache as Pi, from as
|
|
2
|
-
import { setContext as
|
|
1
|
+
import { createHttpLink as Ii, ApolloClient as Bi, InMemoryCache as Pi, from as Fi, gql as C } from "@apollo/client/core";
|
|
2
|
+
import { setContext as Di } from "@apollo/client/link/context";
|
|
3
3
|
import { onError as xi } from "@apollo/client/link/error";
|
|
4
4
|
import { renderToStaticMarkup as ki } from "preact-render-to-string";
|
|
5
5
|
import { removeTypenameFromVariables as Mi } from "@apollo/client/link/remove-typename";
|
|
@@ -24,7 +24,7 @@ import vn from "lodash.debounce";
|
|
|
24
24
|
import "fs";
|
|
25
25
|
import "path";
|
|
26
26
|
import Vi from "lodash.omit";
|
|
27
|
-
var
|
|
27
|
+
var Pe = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(Pe || {}), En = /* @__PURE__ */ ((n) => (n.AND = "AND", n.OR = "OR", n))(En || {}), G = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(G || {}), S = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(S || {}), zi = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(zi || {}), Kt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(Kt || {}), D = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(D || {}), Gi = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Gi || {}), bn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(bn || {}), Wi = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(Wi || {}), qi = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(qi || {}), ba = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ba || {}), Hi = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Hi || {}), Fe = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Fe || {}), Tt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(Tt || {}), Y = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(Y || {}), ji = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(ji || {});
|
|
28
28
|
class In extends Error {
|
|
29
29
|
constructor(t) {
|
|
30
30
|
super(t), this.name = this.constructor.name;
|
|
@@ -35,7 +35,7 @@ class ae extends In {
|
|
|
35
35
|
super(`ConfigurationError - ${t}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
class
|
|
38
|
+
class De extends ae {
|
|
39
39
|
constructor(t) {
|
|
40
40
|
super(`Option not Configured: ${t.stepTitle}`), this.optionId = t?.optionId || "N/A";
|
|
41
41
|
}
|
|
@@ -55,32 +55,32 @@ class _t extends ae {
|
|
|
55
55
|
super(`Resource not found for asset: ${t.name}`), this.asset = t;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
class
|
|
58
|
+
class xe extends ae {
|
|
59
59
|
constructor(t, e) {
|
|
60
60
|
super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
class
|
|
63
|
+
class Oe extends In {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
super(`ImplementationError - ${t}`);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
class R extends
|
|
68
|
+
class R extends Oe {
|
|
69
69
|
constructor(t) {
|
|
70
70
|
super(`Unhandled Behavior Encountered: ${t}`);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
class
|
|
73
|
+
class Dt extends Oe {
|
|
74
74
|
constructor(t) {
|
|
75
75
|
super(`Parsing Error: ${t}`);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
class gt extends
|
|
78
|
+
class gt extends Oe {
|
|
79
79
|
constructor(t) {
|
|
80
80
|
super(`Client Error: ${t}`);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class $e extends Oe {
|
|
84
84
|
constructor(t) {
|
|
85
85
|
super(`Resource Generation Failed: ${t}`);
|
|
86
86
|
}
|
|
@@ -197,7 +197,7 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
197
197
|
if (t) return t;
|
|
198
198
|
const a = (async () => await (await it(n)).text())();
|
|
199
199
|
return Ha.set(n, a), a;
|
|
200
|
-
}, Nt = (n) => n.every((t) => t !== "undefined"),
|
|
200
|
+
}, Nt = (n) => n.every((t) => t !== "undefined"), ue = (n) => Nt([typeof document]) ? document.createElement(n) : ne().document.createElement(n), Xi = (n, t) => {
|
|
201
201
|
if (Nt([typeof document]))
|
|
202
202
|
return document.createElementNS(n, t);
|
|
203
203
|
const a = ne().document.createElement(t);
|
|
@@ -207,7 +207,7 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
207
207
|
return new DOMParser();
|
|
208
208
|
const n = ne();
|
|
209
209
|
return new n.DOMParser();
|
|
210
|
-
}, Zi = () => Nt([typeof DOMParser]) ? DOMParser : ne().DOMParser,
|
|
210
|
+
}, Zi = () => Nt([typeof DOMParser]) ? DOMParser : ne().DOMParser, Ue = (n, t) => new Promise((e, a) => {
|
|
211
211
|
t ? Pn(n).then(e).catch(a) : it(n).then((i) => {
|
|
212
212
|
i.arrayBuffer().then(e).catch(a);
|
|
213
213
|
}).catch((i) => {
|
|
@@ -217,7 +217,7 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
217
217
|
t ? _i(n).then(e).catch(a) : it(n).then((i) => {
|
|
218
218
|
i.text().then(e).catch(a);
|
|
219
219
|
}).catch(a);
|
|
220
|
-
}),
|
|
220
|
+
}), Fn = (n) => ki(n), je = /* @__PURE__ */ new Map(), tr = async (n, t) => {
|
|
221
221
|
if (Nt([typeof FontFace])) {
|
|
222
222
|
if (je.has(t))
|
|
223
223
|
return je.get(t);
|
|
@@ -231,7 +231,7 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
231
231
|
return new XMLSerializer();
|
|
232
232
|
const n = ne();
|
|
233
233
|
return new n.XMLSerializer();
|
|
234
|
-
}, ja = (n) => btoa(n),
|
|
234
|
+
}, ja = (n) => btoa(n), Le = (n) => {
|
|
235
235
|
function t() {
|
|
236
236
|
const a = new Uint8Array(n), i = 4;
|
|
237
237
|
if (a.length >= i) {
|
|
@@ -258,7 +258,7 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
258
258
|
const e = t();
|
|
259
259
|
return e || "image/svg+xml";
|
|
260
260
|
}, od = async (n) => {
|
|
261
|
-
const t = await Pn(n), e = Bn.get(n) ||
|
|
261
|
+
const t = await Pn(n), e = Bn.get(n) || Le(t);
|
|
262
262
|
return await nr(new Blob([t], { type: e }));
|
|
263
263
|
}, er = (n) => {
|
|
264
264
|
let t = "";
|
|
@@ -267,9 +267,9 @@ const Bn = /* @__PURE__ */ new Map(), qa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
267
267
|
t += String.fromCharCode(n[a]);
|
|
268
268
|
return t;
|
|
269
269
|
}, ar = async (n) => {
|
|
270
|
-
const t =
|
|
270
|
+
const t = Le(n), e = new Uint8Array(n), a = er(e), i = btoa(a);
|
|
271
271
|
return `data:${t};base64,${i}`;
|
|
272
|
-
}, Ia = (n) => `data:image/svg+xml;base64,${btoa(n)}`,
|
|
272
|
+
}, Ia = (n) => `data:image/svg+xml;base64,${btoa(n)}`, Dn = (n) => {
|
|
273
273
|
const t = n.replace(/\r?\n/g, ""), e = t.indexOf(",");
|
|
274
274
|
if (e === -1 || e <= 4)
|
|
275
275
|
throw new TypeError("malformed data: URI");
|
|
@@ -329,7 +329,7 @@ class Ar {
|
|
|
329
329
|
const t = Ii({
|
|
330
330
|
uri: `${ft.getServerUrl()}/graphql`,
|
|
331
331
|
fetch: dr
|
|
332
|
-
}), e =
|
|
332
|
+
}), e = Di(async (r, o) => {
|
|
333
333
|
const { headers: s } = o, l = s || {}, c = await cr();
|
|
334
334
|
let d = o.bearer ?? c.bearer;
|
|
335
335
|
if (this.spiffClient)
|
|
@@ -358,7 +358,7 @@ class Ar {
|
|
|
358
358
|
s && !c?.fetchOptions?.signal?.aborted && console.log("GraphQL Network error"), l.forEach(() => console.log("GraphQL Error: " + r.operationName));
|
|
359
359
|
}), i = Mi();
|
|
360
360
|
return new Bi({
|
|
361
|
-
link:
|
|
361
|
+
link: Fi([i, a, e, t]),
|
|
362
362
|
cache: new Pi(),
|
|
363
363
|
name: "Core"
|
|
364
364
|
});
|
|
@@ -411,16 +411,16 @@ let Ye;
|
|
|
411
411
|
function Pa() {
|
|
412
412
|
return Ye === void 0 && (Ye = Zi()), Ye;
|
|
413
413
|
}
|
|
414
|
-
let
|
|
414
|
+
let he = null;
|
|
415
415
|
const ur = (n) => new Promise((t) => {
|
|
416
|
-
if (
|
|
416
|
+
if (Le(n) !== "image/jpeg")
|
|
417
417
|
return t(1);
|
|
418
418
|
Ti(n).then((a) => t(a || 1)).catch(() => t(1));
|
|
419
419
|
}), hr = async () => {
|
|
420
|
-
if (
|
|
421
|
-
return !
|
|
420
|
+
if (he !== null)
|
|
421
|
+
return !he;
|
|
422
422
|
const t = await ie("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
|
|
423
|
-
return
|
|
423
|
+
return he = t.width === 2 && t.height === 3, !he;
|
|
424
424
|
}, mr = (n) => {
|
|
425
425
|
const e = n.naturalWidth / n.naturalHeight;
|
|
426
426
|
return n.naturalHeight <= 8192 && n.naturalWidth <= 8192 ? [n.naturalWidth, n.naturalHeight] : n.naturalHeight > n.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
|
|
@@ -455,9 +455,9 @@ const ur = (n) => new Promise((t) => {
|
|
|
455
455
|
break;
|
|
456
456
|
}
|
|
457
457
|
return d.drawImage(e, 0, 0, s, l), c;
|
|
458
|
-
},
|
|
458
|
+
}, Ve = async (n) => {
|
|
459
459
|
const t = await gr(n);
|
|
460
|
-
return
|
|
460
|
+
return Le(n) === "image/jpeg" ? {
|
|
461
461
|
dataUrl: t.toDataURL("image/jpeg", 1),
|
|
462
462
|
height: t.height,
|
|
463
463
|
width: t.width
|
|
@@ -3201,7 +3201,7 @@ function Ya(n) {
|
|
|
3201
3201
|
const t = n.substring(1).toUpperCase();
|
|
3202
3202
|
return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
|
|
3203
3203
|
}
|
|
3204
|
-
const
|
|
3204
|
+
const me = (n) => {
|
|
3205
3205
|
const t = Tn(n.spotColor);
|
|
3206
3206
|
return t ? `${n.browserValue} ${t}` : n.browserValue;
|
|
3207
3207
|
}, Tn = (n) => {
|
|
@@ -3234,7 +3234,7 @@ const ge = (n) => {
|
|
|
3234
3234
|
} catch {
|
|
3235
3235
|
return n.classList.contains(t.substring(1));
|
|
3236
3236
|
}
|
|
3237
|
-
},
|
|
3237
|
+
}, Fa = (n, t = !1) => {
|
|
3238
3238
|
!t && n.setAttribute("preserveAspectRatio", "none");
|
|
3239
3239
|
const e = [];
|
|
3240
3240
|
Mt(n, (a) => {
|
|
@@ -3287,13 +3287,13 @@ const ge = (n) => {
|
|
|
3287
3287
|
if (s)
|
|
3288
3288
|
a.setAttribute(
|
|
3289
3289
|
"fill",
|
|
3290
|
-
e ?
|
|
3290
|
+
e ? me(s) : s.browserValue
|
|
3291
3291
|
);
|
|
3292
3292
|
else {
|
|
3293
3293
|
const l = t[o];
|
|
3294
3294
|
l && a.setAttribute(
|
|
3295
3295
|
"fill",
|
|
3296
|
-
e ?
|
|
3296
|
+
e ? me(l) : l.browserValue
|
|
3297
3297
|
);
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
@@ -3305,19 +3305,19 @@ const ge = (n) => {
|
|
|
3305
3305
|
if (s)
|
|
3306
3306
|
a.setAttribute(
|
|
3307
3307
|
"stroke",
|
|
3308
|
-
e ?
|
|
3308
|
+
e ? me(s) : s.browserValue
|
|
3309
3309
|
);
|
|
3310
3310
|
else {
|
|
3311
3311
|
const l = t[o];
|
|
3312
3312
|
l && a.setAttribute(
|
|
3313
3313
|
"fill",
|
|
3314
|
-
e ?
|
|
3314
|
+
e ? me(l) : l.browserValue
|
|
3315
3315
|
);
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
3318
|
});
|
|
3319
3319
|
});
|
|
3320
|
-
}, Rn = (n) => Pt().serializeToString(n),
|
|
3320
|
+
}, Rn = (n) => Pt().serializeToString(n), Da = (n, t, e, a, i) => {
|
|
3321
3321
|
const r = Nn(n);
|
|
3322
3322
|
if (!r)
|
|
3323
3323
|
throw new Error("Failed to read SVG.");
|
|
@@ -3334,7 +3334,7 @@ const ge = (n) => {
|
|
|
3334
3334
|
const e = br(n).firstElementChild;
|
|
3335
3335
|
if (!e)
|
|
3336
3336
|
throw new Error("Failed to read SVG.");
|
|
3337
|
-
|
|
3337
|
+
Fa(e);
|
|
3338
3338
|
const a = {};
|
|
3339
3339
|
Mt(e, (o) => {
|
|
3340
3340
|
const s = o.attributes.getNamedItem("fill");
|
|
@@ -3464,7 +3464,7 @@ const ge = (n) => {
|
|
|
3464
3464
|
...MaterialFields
|
|
3465
3465
|
}
|
|
3466
3466
|
}
|
|
3467
|
-
`,
|
|
3467
|
+
`, Fr = C`
|
|
3468
3468
|
mutation CreateAsset($name: String!, $type: String!, $mimeType: String!, $anonymous: Boolean, $temporary: Boolean) {
|
|
3469
3469
|
assetCreate(name: $name, type: $type, mimeType: $mimeType, anonymous: $anonymous, temporary: $temporary) {
|
|
3470
3470
|
uploadUrl
|
|
@@ -3478,14 +3478,14 @@ const ge = (n) => {
|
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
3481
|
-
`,
|
|
3481
|
+
`, Dr = C`
|
|
3482
3482
|
${re(!1)}
|
|
3483
3483
|
mutation RemoveBackgroundFromAsset($key: String!) {
|
|
3484
3484
|
assetRemoveBackground(key: $key) {
|
|
3485
3485
|
...AssetFields
|
|
3486
3486
|
}
|
|
3487
3487
|
}
|
|
3488
|
-
`,
|
|
3488
|
+
`, ke = async (n) => (await y.getShadowGraphqlClient().query({
|
|
3489
3489
|
query: Br,
|
|
3490
3490
|
errorPolicy: "all",
|
|
3491
3491
|
fetchPolicy: "no-cache",
|
|
@@ -3499,7 +3499,7 @@ const ge = (n) => {
|
|
|
3499
3499
|
ids: n
|
|
3500
3500
|
}
|
|
3501
3501
|
})).data.materials, kr = async (n, t, e, a, i) => (await y.getShadowGraphqlClient().mutate({
|
|
3502
|
-
mutation:
|
|
3502
|
+
mutation: Fr,
|
|
3503
3503
|
errorPolicy: "all",
|
|
3504
3504
|
fetchPolicy: "no-cache",
|
|
3505
3505
|
variables: {
|
|
@@ -3513,7 +3513,7 @@ const ge = (n) => {
|
|
|
3513
3513
|
class Mr {
|
|
3514
3514
|
constructor() {
|
|
3515
3515
|
this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
|
|
3516
|
-
const e = await t.arrayBuffer(), a = await
|
|
3516
|
+
const e = await t.arrayBuffer(), a = await Ve(e), i = (r, o) => {
|
|
3517
3517
|
const s = atob(r.split(",")[1]), l = [];
|
|
3518
3518
|
for (let c = 0; c < s.length; c++)
|
|
3519
3519
|
l.push(s.charCodeAt(c));
|
|
@@ -3534,14 +3534,14 @@ class Mr {
|
|
|
3534
3534
|
if (!i) throw new R("Failed to get asset from cache!");
|
|
3535
3535
|
return i;
|
|
3536
3536
|
}
|
|
3537
|
-
const a = (async () => (await
|
|
3537
|
+
const a = (async () => (await ke([t]))[0])();
|
|
3538
3538
|
return this.cache.set(t, a), a;
|
|
3539
3539
|
}
|
|
3540
3540
|
/**
|
|
3541
3541
|
* Retrieves the asset from the server, bypassing cache (but still writing the result to cache)
|
|
3542
3542
|
*/
|
|
3543
3543
|
async getFromServer(t) {
|
|
3544
|
-
const a = (async () => (await
|
|
3544
|
+
const a = (async () => (await ke([t]))[0])();
|
|
3545
3545
|
return this.cache.set(t, a), a;
|
|
3546
3546
|
}
|
|
3547
3547
|
keyFromURL(t) {
|
|
@@ -3600,7 +3600,7 @@ class Mr {
|
|
|
3600
3600
|
}, a, i);
|
|
3601
3601
|
}
|
|
3602
3602
|
async uploadFile(t, e) {
|
|
3603
|
-
const i = this.isRaster(t) ?
|
|
3603
|
+
const i = this.isRaster(t) ? Pe.Image : Pe.Illustration, r = await this.loadImageAsFileInfo(t);
|
|
3604
3604
|
return await this.uploadAssetWithProgress(r, i, e, !0);
|
|
3605
3605
|
}
|
|
3606
3606
|
async removeBackgroundFromAsset(t) {
|
|
@@ -3613,7 +3613,7 @@ class Mr {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
const i = (async () => {
|
|
3615
3615
|
const r = await y.getShadowGraphqlClient().mutate({
|
|
3616
|
-
mutation:
|
|
3616
|
+
mutation: Dr,
|
|
3617
3617
|
fetchPolicy: "no-cache",
|
|
3618
3618
|
errorPolicy: "all",
|
|
3619
3619
|
variables: {
|
|
@@ -3647,7 +3647,7 @@ class Mr {
|
|
|
3647
3647
|
async postProcessFileUpload(t, e) {
|
|
3648
3648
|
if (e === "image/svg+xml") {
|
|
3649
3649
|
const a = await t.blob.text(), o = new window.DOMParser().parseFromString(a, "image/svg+xml").documentElement;
|
|
3650
|
-
if (!o) throw new
|
|
3650
|
+
if (!o) throw new Dt("Failed to read SVG.");
|
|
3651
3651
|
vr(o);
|
|
3652
3652
|
const l = Pt().serializeToString(o);
|
|
3653
3653
|
return {
|
|
@@ -3931,7 +3931,7 @@ const J = new $r(), $n = C`
|
|
|
3931
3931
|
currencyCode
|
|
3932
3932
|
}
|
|
3933
3933
|
}
|
|
3934
|
-
`,
|
|
3934
|
+
`, ze = C`
|
|
3935
3935
|
fragment AdditionalIntegrationProductFields on IntegrationProduct {
|
|
3936
3936
|
id
|
|
3937
3937
|
product {
|
|
@@ -3970,7 +3970,7 @@ const J = new $r(), $n = C`
|
|
|
3970
3970
|
customField5
|
|
3971
3971
|
conversionConfigurationId
|
|
3972
3972
|
}
|
|
3973
|
-
`,
|
|
3973
|
+
`, oe = C`
|
|
3974
3974
|
fragment ConversionConfigurationFields on ConversionConfiguration {
|
|
3975
3975
|
id
|
|
3976
3976
|
partnerId
|
|
@@ -4046,8 +4046,9 @@ const J = new $r(), $n = C`
|
|
|
4046
4046
|
url
|
|
4047
4047
|
}
|
|
4048
4048
|
`, Lr = C`
|
|
4049
|
+
${ze}
|
|
4049
4050
|
${oe}
|
|
4050
|
-
${
|
|
4051
|
+
${$n}
|
|
4051
4052
|
query ReadIntegrationProducts($ids: [String!]!) {
|
|
4052
4053
|
integrationProducts(ids: $ids) {
|
|
4053
4054
|
id
|
|
@@ -4131,13 +4132,14 @@ const J = new $r(), $n = C`
|
|
|
4131
4132
|
percentage
|
|
4132
4133
|
}
|
|
4133
4134
|
}
|
|
4135
|
+
integration {
|
|
4136
|
+
...ActiveIntegrationFields
|
|
4137
|
+
}
|
|
4134
4138
|
}
|
|
4135
4139
|
}
|
|
4136
4140
|
`, Vr = C`
|
|
4137
|
-
${oe}
|
|
4138
4141
|
${Ln}
|
|
4139
4142
|
${Vn}
|
|
4140
|
-
${$n}
|
|
4141
4143
|
${Un}
|
|
4142
4144
|
query ReadTransactions($ids: [String]!) {
|
|
4143
4145
|
transactions(ids: $ids) {
|
|
@@ -4206,14 +4208,14 @@ const J = new $r(), $n = C`
|
|
|
4206
4208
|
}
|
|
4207
4209
|
}
|
|
4208
4210
|
`, qr = C`
|
|
4209
|
-
${
|
|
4211
|
+
${oe}
|
|
4210
4212
|
query ReadConversionConfigurationQuery($id: String!) {
|
|
4211
4213
|
conversionConfiguration(id: $id) {
|
|
4212
4214
|
...ConversionConfigurationFields
|
|
4213
4215
|
}
|
|
4214
4216
|
}
|
|
4215
4217
|
`, Hr = C`
|
|
4216
|
-
${
|
|
4218
|
+
${oe}
|
|
4217
4219
|
query ReadTransactionForDesignCreation($id: String!) {
|
|
4218
4220
|
transactions(ids: [$id]) {
|
|
4219
4221
|
id
|
|
@@ -4290,7 +4292,7 @@ const J = new $r(), $n = C`
|
|
|
4290
4292
|
}
|
|
4291
4293
|
}
|
|
4292
4294
|
`, Gn = (n) => C`
|
|
4293
|
-
${
|
|
4295
|
+
${ze}
|
|
4294
4296
|
fragment IntegrationProductFields on IntegrationProduct {
|
|
4295
4297
|
id
|
|
4296
4298
|
externalProductId
|
|
@@ -4972,7 +4974,7 @@ const J = new $r(), $n = C`
|
|
|
4972
4974
|
}
|
|
4973
4975
|
}
|
|
4974
4976
|
`, Ge = C`
|
|
4975
|
-
${
|
|
4977
|
+
${oe}
|
|
4976
4978
|
fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
|
|
4977
4979
|
id
|
|
4978
4980
|
themeInstallId
|
|
@@ -5273,9 +5275,9 @@ const M = () => {
|
|
|
5273
5275
|
viewBox: A,
|
|
5274
5276
|
width: u
|
|
5275
5277
|
}) => {
|
|
5276
|
-
const h = e || 0, m = 2 * (l?.scale || 1), p = A || { x: 0, y: 0, width: u, height: r }, g = `${p.x} ${p.y} ${p.width} ${p.height}`, f = M(), w = a.purpose === Kt.FreeDesign && /* @__PURE__ */ P("defs", { children: /* @__PURE__ */ P("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ P("rect", { width: p.width, height: p.height, rx: h }) }) }), b = a.colorProfiles?.map((v,
|
|
5278
|
+
const h = e || 0, m = 2 * (l?.scale || 1), p = A || { x: 0, y: 0, width: u, height: r }, g = `${p.x} ${p.y} ${p.width} ${p.height}`, f = M(), w = a.purpose === Kt.FreeDesign && /* @__PURE__ */ P("defs", { children: /* @__PURE__ */ P("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ P("rect", { width: p.width, height: p.height, rx: h }) }) }), b = a.colorProfiles?.map((v, F) => (
|
|
5277
5279
|
/* @ts-ignore */
|
|
5278
|
-
/* @__PURE__ */ P("color-profile", { name: v.name, xlinkHref: v.key, children: " " },
|
|
5280
|
+
/* @__PURE__ */ P("color-profile", { name: v.name, xlinkHref: v.key, children: " " }, F)
|
|
5279
5281
|
)), B = i.map((v) => ({
|
|
5280
5282
|
...v,
|
|
5281
5283
|
_renderingConfiguration: a,
|
|
@@ -5387,7 +5389,7 @@ const M = () => {
|
|
|
5387
5389
|
}), fd = (n, t, e, a) => ({
|
|
5388
5390
|
x: n.x + (t?.x + t?.width) * e,
|
|
5389
5391
|
y: n.y + (t?.y + t?.height) * a
|
|
5390
|
-
}),
|
|
5392
|
+
}), Ft = (n) => {
|
|
5391
5393
|
switch (n) {
|
|
5392
5394
|
case Y.North:
|
|
5393
5395
|
return Y.East;
|
|
@@ -5406,7 +5408,7 @@ const M = () => {
|
|
|
5406
5408
|
case Y.Southwest:
|
|
5407
5409
|
return Y.Northwest;
|
|
5408
5410
|
}
|
|
5409
|
-
}, Cd = (n, t) => t > 45 && t <= 135 ?
|
|
5411
|
+
}, Cd = (n, t) => t > 45 && t <= 135 ? Ft(n) : t > 135 && t <= 225 ? Ft(Ft(n)) : t > 225 && t <= 315 ? Ft(Ft(Ft(n))) : n, wd = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5410
5412
|
const a = wt(n.rotation), i = {
|
|
5411
5413
|
x: t.x + n.x * e.x,
|
|
5412
5414
|
y: t.x + n.y * e.y
|
|
@@ -5424,13 +5426,13 @@ const M = () => {
|
|
|
5424
5426
|
y: s.y - n.height * e.y / 2
|
|
5425
5427
|
};
|
|
5426
5428
|
return {
|
|
5427
|
-
a:
|
|
5428
|
-
b:
|
|
5429
|
-
c:
|
|
5430
|
-
d:
|
|
5429
|
+
a: ge(i, l, a),
|
|
5430
|
+
b: ge(r, l, a),
|
|
5431
|
+
c: ge(o, l, a),
|
|
5432
|
+
d: ge(s, l, a),
|
|
5431
5433
|
center: l
|
|
5432
5434
|
};
|
|
5433
|
-
},
|
|
5435
|
+
}, ge = (n, t, e) => {
|
|
5434
5436
|
const a = Math.sin(e), i = Math.cos(e);
|
|
5435
5437
|
return {
|
|
5436
5438
|
x: (n.x - t.x) * i - (n.y - t.y) * a + t.x,
|
|
@@ -5524,7 +5526,7 @@ const M = () => {
|
|
|
5524
5526
|
const A = n.pattern?.x || 0, u = n.pattern?.y || 0, h = n.pattern?.width || 0, m = n.pattern?.height || 0, p = n.pattern?.scaleX || 1, g = n.pattern?.scaleY || 1, f = n.pattern?.rotation || 0;
|
|
5525
5527
|
return [n.pattern?.svg ? {
|
|
5526
5528
|
id: `${t}-contents`,
|
|
5527
|
-
type:
|
|
5529
|
+
type: D.Illustration,
|
|
5528
5530
|
x: A,
|
|
5529
5531
|
y: u,
|
|
5530
5532
|
rotation: f,
|
|
@@ -5535,7 +5537,7 @@ const M = () => {
|
|
|
5535
5537
|
colors: n.pattern?.colors
|
|
5536
5538
|
} : {
|
|
5537
5539
|
id: `${t}-contents`,
|
|
5538
|
-
type:
|
|
5540
|
+
type: D.Image,
|
|
5539
5541
|
x: A,
|
|
5540
5542
|
y: u,
|
|
5541
5543
|
rotation: f,
|
|
@@ -5638,17 +5640,17 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5638
5640
|
return yt(n).getFont();
|
|
5639
5641
|
} catch {
|
|
5640
5642
|
if (wo(n)) {
|
|
5641
|
-
const a =
|
|
5643
|
+
const a = Dn(n), i = ca(a);
|
|
5642
5644
|
return ga(n, i), i;
|
|
5643
5645
|
} else {
|
|
5644
|
-
const a = await
|
|
5646
|
+
const a = await Ue(n, !0), i = ca(a);
|
|
5645
5647
|
return ga(n, i), await tr(i, n), i;
|
|
5646
5648
|
}
|
|
5647
5649
|
}
|
|
5648
5650
|
})();
|
|
5649
5651
|
return Ke.set(n, e), e;
|
|
5650
5652
|
}, yo = (n) => {
|
|
5651
|
-
const t =
|
|
5653
|
+
const t = Dn(n), e = ca(t);
|
|
5652
5654
|
return ga(n, e), e;
|
|
5653
5655
|
}, yt = (n) => {
|
|
5654
5656
|
const t = Yn.get(n);
|
|
@@ -5681,28 +5683,28 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5681
5683
|
let E = 0;
|
|
5682
5684
|
const v = A.getAttribute("text-anchor");
|
|
5683
5685
|
v === "middle" ? E = B / 2 : v === "end" && (E = B);
|
|
5684
|
-
const
|
|
5686
|
+
const F = p.getPath(
|
|
5685
5687
|
A.innerHTML,
|
|
5686
5688
|
parseFloat(A.getAttribute("x") ?? "0") - E,
|
|
5687
5689
|
parseFloat(A.getAttribute("y") ?? "0"),
|
|
5688
5690
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5689
5691
|
);
|
|
5690
|
-
|
|
5691
|
-
const x =
|
|
5692
|
+
F.fill = g, F.stroke = f, F.strokeWidth = parseFloat(w ?? "0");
|
|
5693
|
+
const x = F.toSVG(2), $ = t.parseFromString(x, "image/svg+xml").firstElementChild;
|
|
5692
5694
|
h.appendChild($);
|
|
5693
5695
|
}
|
|
5694
5696
|
return e.querySelectorAll("text").forEach((d) => d.remove()), Pt().serializeToString(a);
|
|
5695
|
-
},
|
|
5697
|
+
}, Me = (n, t, e, a) => Math.max(bo(n.join(`
|
|
5696
5698
|
`), e, a), t), _a = (n, t, e, a, i, r) => {
|
|
5697
5699
|
const o = (r || _n) * i.getApproximateHeight(), s = t.split(`
|
|
5698
5700
|
`);
|
|
5699
5701
|
try {
|
|
5700
|
-
const l = s.flatMap((d) =>
|
|
5702
|
+
const l = s.flatMap((d) => ve(d, n.width, a, i)), c = l.flatMap((d) => d.lines);
|
|
5701
5703
|
return {
|
|
5702
5704
|
lines: c,
|
|
5703
5705
|
requiredHeight: l.flatMap((d) => d.lines).length * (a * o),
|
|
5704
5706
|
fontSize: e,
|
|
5705
|
-
requiredWidth:
|
|
5707
|
+
requiredWidth: Me(c, n.width, a, i)
|
|
5706
5708
|
};
|
|
5707
5709
|
} catch {
|
|
5708
5710
|
const c = t.split("");
|
|
@@ -5710,17 +5712,17 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5710
5712
|
lines: c,
|
|
5711
5713
|
requiredHeight: c.length * (a * o),
|
|
5712
5714
|
fontSize: e,
|
|
5713
|
-
requiredWidth:
|
|
5715
|
+
requiredWidth: Me(c, n.width, a, i)
|
|
5714
5716
|
};
|
|
5715
5717
|
}
|
|
5716
|
-
},
|
|
5718
|
+
}, ve = (n, t, e, a) => {
|
|
5717
5719
|
const i = pt(n, e, a);
|
|
5718
5720
|
if (i <= t)
|
|
5719
5721
|
return { lines: [n], width: i };
|
|
5720
5722
|
if (!(n.indexOf(" ") > -1)) {
|
|
5721
5723
|
if (n.length <= 1)
|
|
5722
5724
|
throw new Error(`Character ${n} is wider than region`);
|
|
5723
|
-
const d = Math.floor(n.length / 2), A =
|
|
5725
|
+
const d = Math.floor(n.length / 2), A = ve(n.slice(0, d), t, e, a), u = ve(n.slice(d), t, e, a);
|
|
5724
5726
|
return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
|
|
5725
5727
|
}
|
|
5726
5728
|
const o = n.split(" "), s = [];
|
|
@@ -5728,7 +5730,7 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5728
5730
|
for (; c < o.length; ) {
|
|
5729
5731
|
const d = o[c];
|
|
5730
5732
|
if (pt(d, e, a) > t) {
|
|
5731
|
-
const A =
|
|
5733
|
+
const A = ve(d, t, e, a);
|
|
5732
5734
|
s.push(...A.lines), l = Math.max(l, A.width), c++;
|
|
5733
5735
|
} else {
|
|
5734
5736
|
const A = [d];
|
|
@@ -5758,14 +5760,14 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5758
5760
|
return {
|
|
5759
5761
|
lines: s,
|
|
5760
5762
|
requiredHeight: t.height,
|
|
5761
|
-
requiredWidth:
|
|
5763
|
+
requiredWidth: Me(s, t.width, o, i),
|
|
5762
5764
|
fontSize: t.fontSize
|
|
5763
5765
|
};
|
|
5764
5766
|
const l = t.width !== e.width != (t.height !== e.height);
|
|
5765
5767
|
return t.lineHeight === e.lineHeight && !l && e.input === n ? {
|
|
5766
5768
|
lines: s,
|
|
5767
5769
|
requiredHeight: t.height,
|
|
5768
|
-
requiredWidth:
|
|
5770
|
+
requiredWidth: Me(s, t.width, o, i),
|
|
5769
5771
|
fontSize: So(s, i, r, t.width, t.height, a)
|
|
5770
5772
|
} : _a(t, n, t.fontSize, o, i, a);
|
|
5771
5773
|
}, Eo = (n, t, e, a, i) => {
|
|
@@ -5800,12 +5802,12 @@ const wo = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", Ke = /* @_
|
|
|
5800
5802
|
stripControlCharacters: !0,
|
|
5801
5803
|
vertical: !1,
|
|
5802
5804
|
uppercase: !1
|
|
5803
|
-
},
|
|
5805
|
+
}, Te = (n, t = Xa) => {
|
|
5804
5806
|
const e = { ...Xa, ...t };
|
|
5805
5807
|
let a = n || "";
|
|
5806
5808
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
5807
5809
|
`)), a;
|
|
5808
|
-
}, Io = (n, t) => n.map((e, a) => [e, t[a]]), Bo = (n = "center", t = !1) => t ? "center" : n, Kn = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle",
|
|
5810
|
+
}, Io = (n, t) => n.map((e, a) => [e, t[a]]), Bo = (n = "center", t = !1) => t ? "center" : n, Kn = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", se = (n, t, e) => n.fontData ? {
|
|
5809
5811
|
...n,
|
|
5810
5812
|
...(() => {
|
|
5811
5813
|
if (n.algorithm === Tt.Traditional) {
|
|
@@ -5895,8 +5897,8 @@ const Po = (n) => {
|
|
|
5895
5897
|
},
|
|
5896
5898
|
stroke: A,
|
|
5897
5899
|
strokeWidth: u,
|
|
5898
|
-
children: n.curved ? /* @__PURE__ */ P(
|
|
5899
|
-
|
|
5900
|
+
children: n.curved ? /* @__PURE__ */ P(Do, { text: c, curvedPathId: r, align: n.align }) : d.map((m, p) => /* @__PURE__ */ P(
|
|
5901
|
+
Fo,
|
|
5900
5902
|
{
|
|
5901
5903
|
align: n.vertical ? "center" : n.align,
|
|
5902
5904
|
fontSize: n.fontSize,
|
|
@@ -5915,7 +5917,7 @@ const Po = (n) => {
|
|
|
5915
5917
|
}
|
|
5916
5918
|
) }) })
|
|
5917
5919
|
] });
|
|
5918
|
-
},
|
|
5920
|
+
}, Fo = (n) => {
|
|
5919
5921
|
const t = () => {
|
|
5920
5922
|
if (n.lineHeight !== void 0)
|
|
5921
5923
|
return n.lineHeight * n.fontSize;
|
|
@@ -5933,7 +5935,7 @@ const Po = (n) => {
|
|
|
5933
5935
|
return (n.thisLineIdx - o) * i + n.fontSize / 4;
|
|
5934
5936
|
};
|
|
5935
5937
|
return /* @__PURE__ */ P("tspan", { textAnchor: Kn(n.align), x: e(), y: `${a()}px`, children: n.text });
|
|
5936
|
-
},
|
|
5938
|
+
}, Do = (n) => {
|
|
5937
5939
|
const t = `#${n.curvedPathId}`;
|
|
5938
5940
|
return /* @__PURE__ */ P(
|
|
5939
5941
|
"textPath",
|
|
@@ -5977,7 +5979,7 @@ const Po = (n) => {
|
|
|
5977
5979
|
{
|
|
5978
5980
|
transform: r,
|
|
5979
5981
|
dangerouslySetInnerHTML: {
|
|
5980
|
-
__html:
|
|
5982
|
+
__html: Da(
|
|
5981
5983
|
n.svg,
|
|
5982
5984
|
n.width,
|
|
5983
5985
|
n.height,
|
|
@@ -6078,7 +6080,7 @@ class ko {
|
|
|
6078
6080
|
return { ...t, transaction: e.apply(a) };
|
|
6079
6081
|
}
|
|
6080
6082
|
}
|
|
6081
|
-
const Zn = (n) => n.type ===
|
|
6083
|
+
const Zn = (n) => n.type === D.Image ? /* @__PURE__ */ P(Hn, { ...n }, n.id) : n.type === D.Frame ? /* @__PURE__ */ P(fo, { ...n }, n.id) : n.type === D.Illustration ? /* @__PURE__ */ P(xo, { ...n }, n.id) : n.type === D.Textbox ? /* @__PURE__ */ P(Po, { ...n }, n.id) : n.type === D.Group ? /* @__PURE__ */ P(jn, { ...n }, n.id) : null, Ma = (n, t, e) => {
|
|
6082
6084
|
const a = e.renderingConfiguration, i = a?.removeExcludedElements ? t.filter((r) => !r.excludeFromExport) : t;
|
|
6083
6085
|
return /* @__PURE__ */ P(
|
|
6084
6086
|
po,
|
|
@@ -6118,7 +6120,7 @@ function Ta(n) {
|
|
|
6118
6120
|
return r < o ? -1 : r > o ? 1 : 0;
|
|
6119
6121
|
});
|
|
6120
6122
|
}
|
|
6121
|
-
const
|
|
6123
|
+
const le = (n) => {
|
|
6122
6124
|
const t = n.variants;
|
|
6123
6125
|
if (t) {
|
|
6124
6126
|
if (t.length === 1)
|
|
@@ -6141,7 +6143,7 @@ const ce = (n) => {
|
|
|
6141
6143
|
}, Mo = (n, t) => {
|
|
6142
6144
|
if (!t)
|
|
6143
6145
|
return;
|
|
6144
|
-
const e = t.variants?.find((a) => a.id === n.frameVariantId) ||
|
|
6146
|
+
const e = t.variants?.find((a) => a.id === n.frameVariantId) || le(t);
|
|
6145
6147
|
if (!e)
|
|
6146
6148
|
throw new Error(`No variant with ID: ${n.frameVariantId}`);
|
|
6147
6149
|
if (!e.asset)
|
|
@@ -6217,7 +6219,7 @@ const ce = (n) => {
|
|
|
6217
6219
|
};
|
|
6218
6220
|
return mt.set(n, r), r;
|
|
6219
6221
|
} else {
|
|
6220
|
-
const e = await
|
|
6222
|
+
const e = await Ue(n, !0), a = await Ve(e), i = {
|
|
6221
6223
|
src: n,
|
|
6222
6224
|
width: a.width,
|
|
6223
6225
|
height: a.height,
|
|
@@ -6294,17 +6296,17 @@ const ce = (n) => {
|
|
|
6294
6296
|
rotation: 0,
|
|
6295
6297
|
panelId: n.layoutState.layout.panelId
|
|
6296
6298
|
};
|
|
6297
|
-
if (e && t ===
|
|
6299
|
+
if (e && t === D.Illustration) {
|
|
6298
6300
|
const l = await lt(await ai(e)), u = At().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
|
|
6299
6301
|
if (!u) throw new Error("SVG missing viewBox.");
|
|
6300
6302
|
const h = s.height, m = u.split(" "), p = parseFloat(m[2]) || 1, g = parseFloat(m[3]) || 1, f = p / g;
|
|
6301
6303
|
s.height = s.width / f, s.top += (h - s.height) / 2;
|
|
6302
6304
|
}
|
|
6303
|
-
if (e && t ===
|
|
6304
|
-
const l = s.height, c = await
|
|
6305
|
+
if (e && t === D.Image) {
|
|
6306
|
+
const l = s.height, c = await Ue(e), d = await Ve(c), A = d.width / d.height;
|
|
6305
6307
|
s.height = s.width / A, s.top += (l - s.height) / 2;
|
|
6306
6308
|
}
|
|
6307
|
-
if (e && t ===
|
|
6309
|
+
if (e && t === D.Textbox && a?.text && a?.fontScale) {
|
|
6308
6310
|
await Qt(e);
|
|
6309
6311
|
const l = yt(e), c = pt(a.text, a?.fontScale, l);
|
|
6310
6312
|
s.width = Math.min(c, i.width * 0.85), s.left = i.x + i.width / 2 - s.width / 2;
|
|
@@ -6313,7 +6315,7 @@ const ce = (n) => {
|
|
|
6313
6315
|
};
|
|
6314
6316
|
class Ed {
|
|
6315
6317
|
static async getFrame(t, e) {
|
|
6316
|
-
const a = await ti(e.region, e.src), i = await We(a), r = e.region || await Vt(t,
|
|
6318
|
+
const a = await ti(e.region, e.src), i = await We(a), r = e.region || await Vt(t, D.Frame);
|
|
6317
6319
|
return {
|
|
6318
6320
|
id: M(),
|
|
6319
6321
|
x: r.left,
|
|
@@ -6328,7 +6330,7 @@ class Ed {
|
|
|
6328
6330
|
path: i.path,
|
|
6329
6331
|
dataWidth: i.width,
|
|
6330
6332
|
dataHeight: i.height,
|
|
6331
|
-
type:
|
|
6333
|
+
type: D.Frame,
|
|
6332
6334
|
disablePlaceholder: e.configuration.disablePlaceholder,
|
|
6333
6335
|
focalBlur: e.configuration.focalBlur,
|
|
6334
6336
|
focalBlurStrength: e.configuration.focalBlurStrength,
|
|
@@ -6339,11 +6341,11 @@ class Ed {
|
|
|
6339
6341
|
};
|
|
6340
6342
|
}
|
|
6341
6343
|
static async getImage(t, e) {
|
|
6342
|
-
const a = e.region || await Vt(t,
|
|
6344
|
+
const a = e.region || await Vt(t, D.Image, e.src);
|
|
6343
6345
|
return {
|
|
6344
6346
|
id: M(),
|
|
6345
6347
|
src: e.src,
|
|
6346
|
-
type:
|
|
6348
|
+
type: D.Image,
|
|
6347
6349
|
y: a.top,
|
|
6348
6350
|
x: a.left,
|
|
6349
6351
|
rotation: a.rotation,
|
|
@@ -6359,16 +6361,16 @@ class Ed {
|
|
|
6359
6361
|
const { configuration: a, fontSrc: i, designInputStep: r } = e, o = await Qt(i), s = {
|
|
6360
6362
|
assetUrl: i,
|
|
6361
6363
|
name: o.names.fullName.en
|
|
6362
|
-
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6364
|
+
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Te(c, {
|
|
6363
6365
|
vertical: a.vertical,
|
|
6364
6366
|
uppercase: a.uppercase
|
|
6365
|
-
}), A = e.region || await Vt(t,
|
|
6367
|
+
}), A = e.region || await Vt(t, D.Textbox, i, {
|
|
6366
6368
|
text: d,
|
|
6367
6369
|
fontScale: a.size ? a.size / o.unitsPerEm : void 0
|
|
6368
|
-
}), u =
|
|
6370
|
+
}), u = se(
|
|
6369
6371
|
{
|
|
6370
6372
|
id: M(),
|
|
6371
|
-
type:
|
|
6373
|
+
type: D.Textbox,
|
|
6372
6374
|
x: A.left,
|
|
6373
6375
|
y: A.top,
|
|
6374
6376
|
width: A.width,
|
|
@@ -6428,13 +6430,13 @@ class Ed {
|
|
|
6428
6430
|
</svg>
|
|
6429
6431
|
`, i = {};
|
|
6430
6432
|
i["spiff-fill-shape"] = { browserValue: e.color };
|
|
6431
|
-
const r = e.region || await Vt(t,
|
|
6433
|
+
const r = e.region || await Vt(t, D.Illustration), o = M();
|
|
6432
6434
|
return {
|
|
6433
6435
|
stepRegion: e.region,
|
|
6434
6436
|
colors: i,
|
|
6435
6437
|
id: o,
|
|
6436
6438
|
svg: a,
|
|
6437
|
-
type:
|
|
6439
|
+
type: D.Illustration,
|
|
6438
6440
|
y: r.top,
|
|
6439
6441
|
x: r.left,
|
|
6440
6442
|
rotation: r.rotation,
|
|
@@ -6446,7 +6448,7 @@ class Ed {
|
|
|
6446
6448
|
};
|
|
6447
6449
|
}
|
|
6448
6450
|
static async getIllustration(t, e) {
|
|
6449
|
-
const a = e.region || await Vt(t,
|
|
6451
|
+
const a = e.region || await Vt(t, D.Illustration, e.src), i = await lt(await ai(e.src)), r = await te(i.svg), o = M();
|
|
6450
6452
|
return {
|
|
6451
6453
|
cachedObjectURL: r,
|
|
6452
6454
|
stepRegion: e.region,
|
|
@@ -6454,7 +6456,7 @@ class Ed {
|
|
|
6454
6456
|
id: o,
|
|
6455
6457
|
src: e.src,
|
|
6456
6458
|
svg: i.svg,
|
|
6457
|
-
type:
|
|
6459
|
+
type: D.Illustration,
|
|
6458
6460
|
y: a.top,
|
|
6459
6461
|
x: a.left,
|
|
6460
6462
|
rotation: a.rotation,
|
|
@@ -6493,7 +6495,7 @@ const z = (n, t) => Z(n, t).elements.find((i) => i.id === n), Z = (n, t) => {
|
|
|
6493
6495
|
const s = o;
|
|
6494
6496
|
if (s.src && !s.svg) {
|
|
6495
6497
|
const l = await nt(s.src), c = await lt(l);
|
|
6496
|
-
s.svg =
|
|
6498
|
+
s.svg = Da(
|
|
6497
6499
|
c.svg,
|
|
6498
6500
|
s.width,
|
|
6499
6501
|
s.height,
|
|
@@ -6513,7 +6515,7 @@ const z = (n, t) => Z(n, t).elements.find((i) => i.id === n), Z = (n, t) => {
|
|
|
6513
6515
|
}
|
|
6514
6516
|
for (const a in n.layouts) {
|
|
6515
6517
|
const i = n.layouts[a].elements.filter(
|
|
6516
|
-
(o) => o.type ===
|
|
6518
|
+
(o) => o.type === D.Illustration
|
|
6517
6519
|
);
|
|
6518
6520
|
for (let o = 0; o < i.length; ++o) {
|
|
6519
6521
|
const s = i[o];
|
|
@@ -6525,7 +6527,7 @@ const z = (n, t) => Z(n, t).elements.find((i) => i.id === n), Z = (n, t) => {
|
|
|
6525
6527
|
}
|
|
6526
6528
|
}
|
|
6527
6529
|
const r = n.layouts[a].elements.filter(
|
|
6528
|
-
(o) => o.type ===
|
|
6530
|
+
(o) => o.type === D.Textbox
|
|
6529
6531
|
);
|
|
6530
6532
|
for (let o = 0; o < r.length; ++o) {
|
|
6531
6533
|
const s = r[o];
|
|
@@ -6618,7 +6620,7 @@ class Bd extends O {
|
|
|
6618
6620
|
o.scaleX = o.scaleX * this.width / e.width, o.scaleY = o.scaleY * this.height / e.height;
|
|
6619
6621
|
} else if (e.type === "textbox") {
|
|
6620
6622
|
const o = a, s = (!o.algorithm || o.algorithm === Tt.Autosize ? o.text : o.input) ?? "";
|
|
6621
|
-
a =
|
|
6623
|
+
a = se(o, s, e);
|
|
6622
6624
|
}
|
|
6623
6625
|
const i = Z(e.id, Object.values(t.layouts)), r = tt(a, i);
|
|
6624
6626
|
return {
|
|
@@ -6795,7 +6797,7 @@ class No extends O {
|
|
|
6795
6797
|
const a = {
|
|
6796
6798
|
...e,
|
|
6797
6799
|
fontSize: this.size
|
|
6798
|
-
}, i = Z(e.id, Object.values(t.layouts)), r = (!e.algorithm || e.algorithm === Tt.Autosize ? e.text : e.input) ?? "", o = tt(
|
|
6800
|
+
}, i = Z(e.id, Object.values(t.layouts)), r = (!e.algorithm || e.algorithm === Tt.Autosize ? e.text : e.input) ?? "", o = tt(se(a, r), i);
|
|
6799
6801
|
return {
|
|
6800
6802
|
...t,
|
|
6801
6803
|
layouts: {
|
|
@@ -6817,7 +6819,7 @@ class an extends O {
|
|
|
6817
6819
|
const a = {
|
|
6818
6820
|
...e,
|
|
6819
6821
|
fontData: this.fontData
|
|
6820
|
-
}, i = Z(e.id, Object.values(t.layouts)), r = (!e.algorithm || e.algorithm === Tt.Autosize ? e.text : e.input) ?? "", o = tt(
|
|
6822
|
+
}, i = Z(e.id, Object.values(t.layouts)), r = (!e.algorithm || e.algorithm === Tt.Autosize ? e.text : e.input) ?? "", o = tt(se(a, r), i);
|
|
6821
6823
|
return {
|
|
6822
6824
|
...t,
|
|
6823
6825
|
layouts: {
|
|
@@ -6941,7 +6943,7 @@ class $o extends O {
|
|
|
6941
6943
|
const e = z(this.id, Object.values(t.layouts));
|
|
6942
6944
|
if (!e.id)
|
|
6943
6945
|
throw new W();
|
|
6944
|
-
const a = Z(e.id, Object.values(t.layouts)), i = tt(
|
|
6946
|
+
const a = Z(e.id, Object.values(t.layouts)), i = tt(se(e, this.text, e), a);
|
|
6945
6947
|
return {
|
|
6946
6948
|
...t,
|
|
6947
6949
|
layouts: {
|
|
@@ -7029,7 +7031,7 @@ class Uo extends O {
|
|
|
7029
7031
|
};
|
|
7030
7032
|
}
|
|
7031
7033
|
}
|
|
7032
|
-
class
|
|
7034
|
+
class Fd extends O {
|
|
7033
7035
|
/**
|
|
7034
7036
|
* @param id The targeted element to bring to the front.
|
|
7035
7037
|
*/
|
|
@@ -7058,7 +7060,7 @@ class Dd extends O {
|
|
|
7058
7060
|
};
|
|
7059
7061
|
}
|
|
7060
7062
|
}
|
|
7061
|
-
class
|
|
7063
|
+
class Dd extends O {
|
|
7062
7064
|
/**
|
|
7063
7065
|
* @param id The targeted element to bring to the back.
|
|
7064
7066
|
*/
|
|
@@ -7153,10 +7155,10 @@ class nn {
|
|
|
7153
7155
|
if (this.configuration.type === S.ProductOverlay) {
|
|
7154
7156
|
let l = "";
|
|
7155
7157
|
if (this.product?.overlayImageUrl && (l = this.product.overlayImageUrl), o = l, !l)
|
|
7156
|
-
throw new
|
|
7158
|
+
throw new xe(this.configuration, "Couldn't find an asset for product overlay step");
|
|
7157
7159
|
}
|
|
7158
7160
|
const s = this.evaluateAssetType();
|
|
7159
|
-
if (s ===
|
|
7161
|
+
if (s === D.Image) {
|
|
7160
7162
|
const l = this.configuration.type === S.SilentIllustration ? this.configuration.data.asset?.fileLink : this.product?.overlayImageUrl;
|
|
7161
7163
|
if (!l)
|
|
7162
7164
|
throw new Error("Undefined raster silent step source");
|
|
@@ -7224,7 +7226,7 @@ class nn {
|
|
|
7224
7226
|
}
|
|
7225
7227
|
async trigger() {
|
|
7226
7228
|
if (!this.configuration.data.regions)
|
|
7227
|
-
throw new
|
|
7229
|
+
throw new xe(this.configuration, "Missing regions.");
|
|
7228
7230
|
if (this.configuration.type === S.SilentIllustration) {
|
|
7229
7231
|
const t = this.configuration.data.regions.map(this.processRegion);
|
|
7230
7232
|
return Promise.all(t);
|
|
@@ -7238,7 +7240,7 @@ class nn {
|
|
|
7238
7240
|
}
|
|
7239
7241
|
evaluateAssetType() {
|
|
7240
7242
|
const t = this.configuration.type === S.ProductOverlay && this.product?.overlayImageUrl ? this.product.overlayImageUrl.toLowerCase() : this.configuration.data.asset?.fileLink?.toLowerCase().split("?")[0];
|
|
7241
|
-
return t?.startsWith("data:image/png") || t?.endsWith(".jpeg") || t?.endsWith(".jpg") || t?.endsWith(".png") ?
|
|
7243
|
+
return t?.startsWith("data:image/png") || t?.endsWith(".jpeg") || t?.endsWith(".jpg") || t?.endsWith(".png") ? D.Image : (t?.endsWith(".svg") || t?.startsWith("image/svg+xml"), D.Illustration);
|
|
7242
7244
|
}
|
|
7243
7245
|
}
|
|
7244
7246
|
const Lo = async (n) => {
|
|
@@ -7252,7 +7254,7 @@ const Lo = async (n) => {
|
|
|
7252
7254
|
}
|
|
7253
7255
|
})).json()).shortUrl;
|
|
7254
7256
|
} catch (e) {
|
|
7255
|
-
throw console.error(e), new
|
|
7257
|
+
throw console.error(e), new $e("Failed to shorten URL, see console.");
|
|
7256
7258
|
}
|
|
7257
7259
|
};
|
|
7258
7260
|
class ii {
|
|
@@ -7297,7 +7299,7 @@ class Vo {
|
|
|
7297
7299
|
}
|
|
7298
7300
|
async regenerateQRCode(t, e, a, i) {
|
|
7299
7301
|
const r = async () => {
|
|
7300
|
-
const h = (await
|
|
7302
|
+
const h = (await ke([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
|
|
7301
7303
|
return { asset: h, link: m };
|
|
7302
7304
|
}, o = await new Promise((h, m) => {
|
|
7303
7305
|
new ii(
|
|
@@ -7323,10 +7325,10 @@ class Vo {
|
|
|
7323
7325
|
l.searchParams.append("video", btoa(JSON.stringify([o]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
|
|
7324
7326
|
const c = l.toString();
|
|
7325
7327
|
if (c.length >= 2e3)
|
|
7326
|
-
throw new
|
|
7328
|
+
throw new $e("Cannot create QR code, URL too long.");
|
|
7327
7329
|
const d = await Lo(c);
|
|
7328
7330
|
if (!i.data || !i.data.regions)
|
|
7329
|
-
throw new
|
|
7331
|
+
throw new xe(i, "Missing regions.");
|
|
7330
7332
|
const A = await this.regionElements(i), u = await this.command(d, A, a, i.stepName);
|
|
7331
7333
|
return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(i.stepName, [], A, async () => {
|
|
7332
7334
|
a.updateStorage(i.stepName, {
|
|
@@ -7354,7 +7356,7 @@ class Vo {
|
|
|
7354
7356
|
stepName: i,
|
|
7355
7357
|
id: c.id,
|
|
7356
7358
|
src: s,
|
|
7357
|
-
type:
|
|
7359
|
+
type: D.Image,
|
|
7358
7360
|
y: d.top,
|
|
7359
7361
|
x: d.left,
|
|
7360
7362
|
width: d.width,
|
|
@@ -7369,7 +7371,7 @@ class Vo {
|
|
|
7369
7371
|
}
|
|
7370
7372
|
}
|
|
7371
7373
|
const ri = new Vo();
|
|
7372
|
-
class
|
|
7374
|
+
class Ne {
|
|
7373
7375
|
constructor() {
|
|
7374
7376
|
this.frameSourceSvg = async (t, e) => {
|
|
7375
7377
|
if (!t)
|
|
@@ -7476,7 +7478,7 @@ class Qe {
|
|
|
7476
7478
|
})) ?? [];
|
|
7477
7479
|
}
|
|
7478
7480
|
selectImage(t, e, a, i = !0) {
|
|
7479
|
-
const r =
|
|
7481
|
+
const r = Ne.patternSource(e), o = a.getStepStorage(t.stepName)?.framePatternSrc;
|
|
7480
7482
|
if (o && o === r)
|
|
7481
7483
|
return Promise.resolve();
|
|
7482
7484
|
a.setEditedStatus(t.stepName, !0);
|
|
@@ -7496,7 +7498,7 @@ class Qe {
|
|
|
7496
7498
|
});
|
|
7497
7499
|
},
|
|
7498
7500
|
() => {
|
|
7499
|
-
throw new
|
|
7501
|
+
throw new $e("Failed to resolve transcoded PDF");
|
|
7500
7502
|
}
|
|
7501
7503
|
)
|
|
7502
7504
|
);
|
|
@@ -7516,7 +7518,7 @@ class Qe {
|
|
|
7516
7518
|
return new H(
|
|
7517
7519
|
{
|
|
7518
7520
|
id: t,
|
|
7519
|
-
type:
|
|
7521
|
+
type: D.Frame,
|
|
7520
7522
|
x: e.left,
|
|
7521
7523
|
y: e.top,
|
|
7522
7524
|
width: e.width,
|
|
@@ -7558,7 +7560,7 @@ class Qe {
|
|
|
7558
7560
|
};
|
|
7559
7561
|
mt.set(t, A), e.setPatternData(A, a);
|
|
7560
7562
|
} else {
|
|
7561
|
-
const o = await
|
|
7563
|
+
const o = await Ue(t, !0), s = await Ve(o), l = {
|
|
7562
7564
|
src: t,
|
|
7563
7565
|
width: s.width,
|
|
7564
7566
|
height: s.height,
|
|
@@ -7643,7 +7645,7 @@ class Qe {
|
|
|
7643
7645
|
r && r(!0);
|
|
7644
7646
|
const c = t.data.initialZoomLevel, d = await Promise.all(
|
|
7645
7647
|
t.data.regions.map(async (h, m) => {
|
|
7646
|
-
const p = await We(l[m]), g = s.getImageData(), f = a.map((
|
|
7648
|
+
const p = await We(l[m]), g = s.getImageData(), f = a.map((F) => new Rt(F.id)), w = g ? Na(
|
|
7647
7649
|
g,
|
|
7648
7650
|
p,
|
|
7649
7651
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
@@ -7658,7 +7660,7 @@ class Qe {
|
|
|
7658
7660
|
scaleX: w?.zoom || 1,
|
|
7659
7661
|
scaleY: w?.zoom || 1,
|
|
7660
7662
|
rotation: 0
|
|
7661
|
-
} : void 0, B = M(), v = i.getLayouts().find((
|
|
7663
|
+
} : void 0, B = M(), v = i.getLayouts().find((F) => F.panelId === h.panelId);
|
|
7662
7664
|
if (!v)
|
|
7663
7665
|
throw new K(h);
|
|
7664
7666
|
return {
|
|
@@ -7707,7 +7709,7 @@ class Qe {
|
|
|
7707
7709
|
throw new _t(t);
|
|
7708
7710
|
}
|
|
7709
7711
|
async loadPatternFromAsset(t, e, a, i) {
|
|
7710
|
-
const r =
|
|
7712
|
+
const r = Ne.patternSource(t), o = a.markUpdatePending(), s = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
|
|
7711
7713
|
if (!s)
|
|
7712
7714
|
throw a.markUpdateCompleted(o), new Error("Frame service unavailable, cannot load pattern!");
|
|
7713
7715
|
try {
|
|
@@ -7734,7 +7736,7 @@ class Qe {
|
|
|
7734
7736
|
), this.validateColorCount(e, a);
|
|
7735
7737
|
}
|
|
7736
7738
|
}
|
|
7737
|
-
const Et = new
|
|
7739
|
+
const Et = new Ne();
|
|
7738
7740
|
class zo {
|
|
7739
7741
|
async getIllustrationBody(t) {
|
|
7740
7742
|
return new Promise((e) => {
|
|
@@ -7753,7 +7755,7 @@ class zo {
|
|
|
7753
7755
|
src: i.src,
|
|
7754
7756
|
svg: i.svg.svg,
|
|
7755
7757
|
cachedObjectURL: i.objectURL,
|
|
7756
|
-
type:
|
|
7758
|
+
type: D.Illustration,
|
|
7757
7759
|
y: e.top,
|
|
7758
7760
|
x: e.left,
|
|
7759
7761
|
rotation: e.rotation,
|
|
@@ -7839,7 +7841,7 @@ class zo {
|
|
|
7839
7841
|
spotColor: A.spotColor,
|
|
7840
7842
|
pmsValue: A.pmsValue
|
|
7841
7843
|
};
|
|
7842
|
-
const s =
|
|
7844
|
+
const s = Da(t, e, a, o), l = await te(s), c = [];
|
|
7843
7845
|
for (const d of i) {
|
|
7844
7846
|
for (const [A, u] of r.entries())
|
|
7845
7847
|
c.push(new Ca(d, A, u));
|
|
@@ -7889,7 +7891,7 @@ class zo {
|
|
|
7889
7891
|
}
|
|
7890
7892
|
async selectVariantCommand(t, e, a, i, r) {
|
|
7891
7893
|
if (!t.data || !t.data.regions)
|
|
7892
|
-
throw new
|
|
7894
|
+
throw new xe(t, "Missing regions.");
|
|
7893
7895
|
i(!0);
|
|
7894
7896
|
const o = a.map((f) => new Rt(f.id));
|
|
7895
7897
|
t.mandatory && r.setMandatoryFulfilled(t.stepName, !1);
|
|
@@ -7949,7 +7951,7 @@ class zo {
|
|
|
7949
7951
|
const E = w[0], v = b[0];
|
|
7950
7952
|
await this.changeColors(
|
|
7951
7953
|
t,
|
|
7952
|
-
u.map((
|
|
7954
|
+
u.map((F) => F.regionElement),
|
|
7953
7955
|
r,
|
|
7954
7956
|
() => r.getCommandContext().getAllLayouts(),
|
|
7955
7957
|
/* @__PURE__ */ new Map([[v, E.variant.color]])
|
|
@@ -7967,12 +7969,12 @@ class zo {
|
|
|
7967
7969
|
};
|
|
7968
7970
|
}
|
|
7969
7971
|
}
|
|
7970
|
-
const
|
|
7972
|
+
const Ee = new zo();
|
|
7971
7973
|
class Go {
|
|
7972
7974
|
async init(t, e, a) {
|
|
7973
7975
|
const i = t.option;
|
|
7974
7976
|
if (!i)
|
|
7975
|
-
throw new
|
|
7977
|
+
throw new De(t);
|
|
7976
7978
|
if (a)
|
|
7977
7979
|
await this.reload(t, e, a);
|
|
7978
7980
|
else {
|
|
@@ -7988,7 +7990,7 @@ class Go {
|
|
|
7988
7990
|
t.stepName,
|
|
7989
7991
|
a.serializableWorkflow.steps
|
|
7990
7992
|
), s = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName), l = t.option;
|
|
7991
|
-
if (!l) throw new
|
|
7993
|
+
if (!l) throw new De(t);
|
|
7992
7994
|
if (i?.selectedVariants) {
|
|
7993
7995
|
const c = i.selectedVariants[0].id;
|
|
7994
7996
|
if (c) {
|
|
@@ -8047,7 +8049,7 @@ const oi = new Go();
|
|
|
8047
8049
|
class Wo {
|
|
8048
8050
|
async init(t, e, a) {
|
|
8049
8051
|
const i = t.option;
|
|
8050
|
-
if (!i) throw new
|
|
8052
|
+
if (!i) throw new De(t);
|
|
8051
8053
|
if (a)
|
|
8052
8054
|
await this.reload(t, e, a);
|
|
8053
8055
|
else {
|
|
@@ -8170,7 +8172,7 @@ class qo {
|
|
|
8170
8172
|
colors: {},
|
|
8171
8173
|
id: h,
|
|
8172
8174
|
svg: d,
|
|
8173
|
-
type:
|
|
8175
|
+
type: D.Illustration,
|
|
8174
8176
|
y: A.top,
|
|
8175
8177
|
x: A.left,
|
|
8176
8178
|
rotation: A.rotation,
|
|
@@ -8296,7 +8298,7 @@ class Ho {
|
|
|
8296
8298
|
stepRegion: A,
|
|
8297
8299
|
id: m,
|
|
8298
8300
|
src: o,
|
|
8299
|
-
type:
|
|
8301
|
+
type: D.Image,
|
|
8300
8302
|
y: A.top,
|
|
8301
8303
|
x: A.left,
|
|
8302
8304
|
rotation: A.rotation,
|
|
@@ -8406,7 +8408,7 @@ class Yo {
|
|
|
8406
8408
|
async init(t, e, a) {
|
|
8407
8409
|
const i = t.option;
|
|
8408
8410
|
if (!i)
|
|
8409
|
-
throw new
|
|
8411
|
+
throw new De(t);
|
|
8410
8412
|
if (a)
|
|
8411
8413
|
await this.reload(t, e, a);
|
|
8412
8414
|
else {
|
|
@@ -8515,7 +8517,7 @@ class Yo {
|
|
|
8515
8517
|
colors: g,
|
|
8516
8518
|
id: f,
|
|
8517
8519
|
svg: p,
|
|
8518
|
-
type:
|
|
8520
|
+
type: D.Illustration,
|
|
8519
8521
|
y: u.top,
|
|
8520
8522
|
x: u.left,
|
|
8521
8523
|
rotation: u.rotation,
|
|
@@ -8599,7 +8601,7 @@ const Ko = new Jo(), aa = (n, t, e, a, i) => {
|
|
|
8599
8601
|
m || (c = !1);
|
|
8600
8602
|
}
|
|
8601
8603
|
return [null, null];
|
|
8602
|
-
},
|
|
8604
|
+
}, be = (n, t, e, a, i) => {
|
|
8603
8605
|
let r, o;
|
|
8604
8606
|
const s = yt(t.assetUrl), l = s.getFont();
|
|
8605
8607
|
if (i.size) {
|
|
@@ -8617,16 +8619,16 @@ const Ko = new Jo(), aa = (n, t, e, a, i) => {
|
|
|
8617
8619
|
const A = d / l.unitsPerEm;
|
|
8618
8620
|
return [r, o] = aa(e, a, d, A, s), [d, r, o];
|
|
8619
8621
|
}, na = 30;
|
|
8620
|
-
class
|
|
8622
|
+
class Qe extends Error {
|
|
8621
8623
|
constructor(t) {
|
|
8622
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8624
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Qe.name;
|
|
8623
8625
|
}
|
|
8624
8626
|
}
|
|
8625
8627
|
const _o = ["‘", "’", "“", "”", `
|
|
8626
8628
|
`];
|
|
8627
|
-
class
|
|
8629
|
+
class Re extends Error {
|
|
8628
8630
|
constructor(t) {
|
|
8629
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8631
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Re.name;
|
|
8630
8632
|
}
|
|
8631
8633
|
}
|
|
8632
8634
|
class Xo {
|
|
@@ -8838,7 +8840,7 @@ class Xo {
|
|
|
8838
8840
|
}
|
|
8839
8841
|
getProcessedInput(t, e, a) {
|
|
8840
8842
|
const i = a ? t : this.injectReplaceableText(t, e);
|
|
8841
|
-
return
|
|
8843
|
+
return Te(i, {
|
|
8842
8844
|
vertical: e.vertical,
|
|
8843
8845
|
uppercase: e.uppercase
|
|
8844
8846
|
});
|
|
@@ -8855,7 +8857,7 @@ class Xo {
|
|
|
8855
8857
|
const c = [], d = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
|
|
8856
8858
|
for (const u of e) {
|
|
8857
8859
|
if (!u.fontData) throw new R("Failed to resolve font data for text.");
|
|
8858
|
-
const [h, m] =
|
|
8860
|
+
const [h, m] = be(
|
|
8859
8861
|
u.fontSize,
|
|
8860
8862
|
u.fontData,
|
|
8861
8863
|
{ left: u.x, top: u.y, width: u.width, height: u.height, rotation: u.rotation },
|
|
@@ -9107,7 +9109,7 @@ class Xo {
|
|
|
9107
9109
|
const m = o.getLayouts().find((g) => g.panelId === u.panelId), p = M();
|
|
9108
9110
|
try {
|
|
9109
9111
|
if (!m)
|
|
9110
|
-
throw new
|
|
9112
|
+
throw new Re("Failed to find layout for region: " + u.panelId);
|
|
9111
9113
|
const g = a.colorOption;
|
|
9112
9114
|
let f;
|
|
9113
9115
|
if (g && g.variants) {
|
|
@@ -9129,7 +9131,7 @@ class Xo {
|
|
|
9129
9131
|
rotation: u.rotation,
|
|
9130
9132
|
text: c,
|
|
9131
9133
|
input: s,
|
|
9132
|
-
type:
|
|
9134
|
+
type: D.Textbox,
|
|
9133
9135
|
vertical: a.vertical,
|
|
9134
9136
|
x: u.left,
|
|
9135
9137
|
y: u.top,
|
|
@@ -9140,9 +9142,9 @@ class Xo {
|
|
|
9140
9142
|
curved: a.curved,
|
|
9141
9143
|
paths: a.paths,
|
|
9142
9144
|
fillSpotColorDefinition: f
|
|
9143
|
-
}, E = [], v = /* @__PURE__ */ new Map(),
|
|
9145
|
+
}, E = [], v = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
9144
9146
|
if (!B.fontData) throw new R("Failed to resolve font data for text.");
|
|
9145
|
-
const [x, T] =
|
|
9147
|
+
const [x, T] = be(
|
|
9146
9148
|
B.fontSize,
|
|
9147
9149
|
B.fontData,
|
|
9148
9150
|
{
|
|
@@ -9156,7 +9158,7 @@ class Xo {
|
|
|
9156
9158
|
[c],
|
|
9157
9159
|
{ size: a.size, minSize: a.minSize, maxSize: a.maxSize }
|
|
9158
9160
|
);
|
|
9159
|
-
v.set(B.id, x),
|
|
9161
|
+
v.set(B.id, x), F.set(B.id, T);
|
|
9160
9162
|
const $ = a.curved || a.vertical ? c : (T || []).join(`
|
|
9161
9163
|
`);
|
|
9162
9164
|
E.push(
|
|
@@ -9170,10 +9172,10 @@ class Xo {
|
|
|
9170
9172
|
fontData: i
|
|
9171
9173
|
};
|
|
9172
9174
|
} catch (g) {
|
|
9173
|
-
throw console.log(g), new
|
|
9175
|
+
throw console.log(g), new Qe("Error adding font to region");
|
|
9174
9176
|
}
|
|
9175
9177
|
}, A = await Promise.all(a.regions.map(d)).catch((u) => {
|
|
9176
|
-
throw u instanceof
|
|
9178
|
+
throw u instanceof Qe ? (Ko.setLatestToast("Failed to load font.", qe.Error), u) : u instanceof Re ? u : new Error(u);
|
|
9177
9179
|
});
|
|
9178
9180
|
return await o.setSelectionsAndElements(
|
|
9179
9181
|
t,
|
|
@@ -9203,23 +9205,23 @@ class Xo {
|
|
|
9203
9205
|
const A = (i || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = xt(A, o), h = this.getProcessedInput(u, t.data, s), m = o.getRegionElements(t.stepName), p = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
9204
9206
|
for (const E of m)
|
|
9205
9207
|
if (E.region) {
|
|
9206
|
-
const [v,
|
|
9208
|
+
const [v, F] = be(
|
|
9207
9209
|
e,
|
|
9208
9210
|
a,
|
|
9209
9211
|
E.region,
|
|
9210
9212
|
[h],
|
|
9211
9213
|
{ size: t.data.size, minSize: t.data.minSize, maxSize: t.data.maxSize }
|
|
9212
9214
|
);
|
|
9213
|
-
p.set(E.id, v), g.set(E.id,
|
|
9215
|
+
p.set(E.id, v), g.set(E.id, F);
|
|
9214
9216
|
}
|
|
9215
9217
|
const w = (() => {
|
|
9216
9218
|
if (t.data && t.data.maxLength && h.length > t.data.maxLength)
|
|
9217
9219
|
return d && d(!0), { info: "0" };
|
|
9218
9220
|
const E = o.getWorkflowExperience().getProfanityList(), v = da(h.toLowerCase());
|
|
9219
|
-
for (const
|
|
9221
|
+
for (const F of v)
|
|
9220
9222
|
for (const x in E) {
|
|
9221
9223
|
const T = E[x].toLowerCase().replace(/\s/g, "");
|
|
9222
|
-
if (
|
|
9224
|
+
if (F === T)
|
|
9223
9225
|
return l(!0), { error: "Blocked profanity." };
|
|
9224
9226
|
}
|
|
9225
9227
|
return !t.data.vertical && !t.data.allowNewlines && (h.includes(`
|
|
@@ -9257,13 +9259,13 @@ const ts = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAEl
|
|
|
9257
9259
|
const e = at("rect");
|
|
9258
9260
|
return e.setAttribute("height", `${n}`), e.setAttribute("width", `${t}`), e;
|
|
9259
9261
|
}, as = (n, t, e, a) => {
|
|
9260
|
-
const i =
|
|
9262
|
+
const i = ue("filter");
|
|
9261
9263
|
i.setAttribute("id", a), i.setAttribute("height", "200%"), i.setAttribute("width", "200%"), i.setAttribute("x", "-50%"), i.setAttribute("y", "-50%");
|
|
9262
|
-
const r =
|
|
9264
|
+
const r = ue("feOffset");
|
|
9263
9265
|
i.appendChild(r), r.setAttribute("result", "offOut"), r.setAttribute("in", "SourceAlpha"), r.setAttribute("dx", `${n}`), r.setAttribute("dy", `${t}`);
|
|
9264
|
-
const o =
|
|
9266
|
+
const o = ue("feGaussianBlur");
|
|
9265
9267
|
i.appendChild(o), o.setAttribute("result", "blurOut"), o.setAttribute("in", "offOut"), o.setAttribute("stdDeviation", `${e}`);
|
|
9266
|
-
const s =
|
|
9268
|
+
const s = ue("feBlend");
|
|
9267
9269
|
return i.appendChild(s), s.setAttribute("in", "SourceGraphic"), s.setAttribute("in2", "blurOut"), s.setAttribute("mode", "normal"), i;
|
|
9268
9270
|
}, ns = (n) => {
|
|
9269
9271
|
let t = n;
|
|
@@ -9328,7 +9330,7 @@ class os {
|
|
|
9328
9330
|
u = (A * 100 | 0) / 100;
|
|
9329
9331
|
break;
|
|
9330
9332
|
default:
|
|
9331
|
-
throw new
|
|
9333
|
+
throw new Dt("Failed to encode path.");
|
|
9332
9334
|
}
|
|
9333
9335
|
l || o.push(" "), o.push(u), l = !1;
|
|
9334
9336
|
}
|
|
@@ -9342,12 +9344,12 @@ class os {
|
|
|
9342
9344
|
for (e.lastIndex = 0; r = e.exec(t); ) {
|
|
9343
9345
|
const o = r[1].toLowerCase(), s = (r[2].match(a) || []).map(parseFloat), l = o === r[1], c = rn[o];
|
|
9344
9346
|
if (s.length < c.length)
|
|
9345
|
-
throw new
|
|
9347
|
+
throw new Dt(
|
|
9346
9348
|
`Path type "${o}" given ${s.length} arguments, expected ${c.length}.`
|
|
9347
9349
|
);
|
|
9348
9350
|
if (c.length > 0) {
|
|
9349
9351
|
if (s.length % c.length !== 0)
|
|
9350
|
-
throw new
|
|
9352
|
+
throw new Dt(
|
|
9351
9353
|
`Path type "${o}" given ${s.length} arguments, not divisible by ${c.length}`
|
|
9352
9354
|
);
|
|
9353
9355
|
for (let d = 0; d < s.length / c.length; d++) {
|
|
@@ -9372,7 +9374,7 @@ class os {
|
|
|
9372
9374
|
if (s in r && l in r) {
|
|
9373
9375
|
const c = [r[s], r[l]], d = e(c);
|
|
9374
9376
|
if (d.length < 2)
|
|
9375
|
-
throw new
|
|
9377
|
+
throw new Dt("Transformer must return at least 2 points.");
|
|
9376
9378
|
r[s] = d[0], r[l] = d[1];
|
|
9377
9379
|
}
|
|
9378
9380
|
}
|
|
@@ -9415,8 +9417,8 @@ class ss extends Zo {
|
|
|
9415
9417
|
E.setAttribute("d", d), E.setAttribute("stroke", "black"), E.setAttribute("stroke-width", "3"), B.appendChild(E);
|
|
9416
9418
|
const v = at("g");
|
|
9417
9419
|
v.classList.add("module-layer0"), b.appendChild(v), v.setAttribute("filter", "url(#shadow)"), v.innerHTML = E.outerHTML;
|
|
9418
|
-
const
|
|
9419
|
-
|
|
9420
|
+
const F = at("g");
|
|
9421
|
+
F.classList.add("module-layer1"), b.appendChild(F), F.setAttribute("stroke-width", "3"), F.setAttribute("stroke", "rgb(45,41,38)"), F.setAttribute("fill", "rgb(45,41,38)"), F.setAttribute("transform", "translate(0.5,0)"), F.innerHTML = s;
|
|
9420
9422
|
const x = at("g");
|
|
9421
9423
|
x.classList.add("module-layer2"), b.appendChild(x), x.setAttribute("fill", "rgb(255,209,0)"), x.setAttribute("transform", "translate(1,-0.1)"), x.innerHTML = s;
|
|
9422
9424
|
const T = at("g");
|
|
@@ -9466,7 +9468,7 @@ const ls = [
|
|
|
9466
9468
|
{
|
|
9467
9469
|
id: p,
|
|
9468
9470
|
src: d,
|
|
9469
|
-
type:
|
|
9471
|
+
type: D.Image,
|
|
9470
9472
|
y: h.top,
|
|
9471
9473
|
x: h.left,
|
|
9472
9474
|
width: h.width,
|
|
@@ -9505,7 +9507,7 @@ const ls = [
|
|
|
9505
9507
|
{
|
|
9506
9508
|
id: u,
|
|
9507
9509
|
path: A.path,
|
|
9508
|
-
type:
|
|
9510
|
+
type: D.Frame,
|
|
9509
9511
|
forceImageCover: a.data.forceImageCover,
|
|
9510
9512
|
x: c.left,
|
|
9511
9513
|
y: c.top,
|
|
@@ -9542,7 +9544,7 @@ const ls = [
|
|
|
9542
9544
|
const i = e.data, r = a.option;
|
|
9543
9545
|
if (!r)
|
|
9544
9546
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
9545
|
-
const o = r.variants?.find((E) => E.id === i.illustrationVariantId) ||
|
|
9547
|
+
const o = r.variants?.find((E) => E.id === i.illustrationVariantId) || le(r);
|
|
9546
9548
|
if (!o)
|
|
9547
9549
|
return console.error(`No variant with ID: ${i.illustrationVariantId}`), [];
|
|
9548
9550
|
if (!o.asset)
|
|
@@ -9554,7 +9556,7 @@ const ls = [
|
|
|
9554
9556
|
const l = await nt(s, !0), c = /<svg.*?<\/svg>/s, d = l.match(c) || [], A = d?.length > 0 ? d[0] : "", m = At().parseFromString(A, "image/svg+xml").firstElementChild;
|
|
9555
9557
|
if (!m)
|
|
9556
9558
|
return console.error("Failed to read SVG."), [];
|
|
9557
|
-
|
|
9559
|
+
Fa(m);
|
|
9558
9560
|
const p = {};
|
|
9559
9561
|
Mt(m, (E) => {
|
|
9560
9562
|
ls.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
|
|
@@ -9563,18 +9565,18 @@ const ls = [
|
|
|
9563
9565
|
const x = v.value, $ = `spiff-fill-${x.replace(/\W/g, "")}`;
|
|
9564
9566
|
E.classList.add($), p[$] = { browserValue: x };
|
|
9565
9567
|
}
|
|
9566
|
-
const
|
|
9567
|
-
if (
|
|
9568
|
-
const x =
|
|
9568
|
+
const F = E.attributes.getNamedItem("stroke");
|
|
9569
|
+
if (F && F.value !== "none") {
|
|
9570
|
+
const x = F.value, $ = `spiff-stroke-${x.replace(/\W/g, "")}`;
|
|
9569
9571
|
E.classList.add($), p[$] = { browserValue: x };
|
|
9570
9572
|
}
|
|
9571
9573
|
});
|
|
9572
9574
|
const f = Pt().serializeToString(m), w = i.colors;
|
|
9573
9575
|
if (w) {
|
|
9574
9576
|
for (const [E, v] of Object.entries(p))
|
|
9575
|
-
for (const
|
|
9576
|
-
if (v.browserValue ===
|
|
9577
|
-
p[E] = { browserValue: w[
|
|
9577
|
+
for (const F of Object.keys(w))
|
|
9578
|
+
if (v.browserValue === F) {
|
|
9579
|
+
p[E] = { browserValue: w[F] };
|
|
9578
9580
|
break;
|
|
9579
9581
|
}
|
|
9580
9582
|
}
|
|
@@ -9582,13 +9584,13 @@ const ls = [
|
|
|
9582
9584
|
const v = n.find((x) => x.panelId === E.panelId);
|
|
9583
9585
|
if (!v)
|
|
9584
9586
|
throw new K(E);
|
|
9585
|
-
const
|
|
9587
|
+
const F = M();
|
|
9586
9588
|
return new H(
|
|
9587
9589
|
{
|
|
9588
9590
|
colors: p,
|
|
9589
|
-
id:
|
|
9591
|
+
id: F,
|
|
9590
9592
|
svg: f,
|
|
9591
|
-
type:
|
|
9593
|
+
type: D.Illustration,
|
|
9592
9594
|
y: E.top,
|
|
9593
9595
|
x: E.left,
|
|
9594
9596
|
rotation: E.rotation,
|
|
@@ -9617,7 +9619,7 @@ const ls = [
|
|
|
9617
9619
|
colors: {},
|
|
9618
9620
|
id: d,
|
|
9619
9621
|
svg: s,
|
|
9620
|
-
type:
|
|
9622
|
+
type: D.Illustration,
|
|
9621
9623
|
y: l.top,
|
|
9622
9624
|
x: l.left,
|
|
9623
9625
|
rotation: l.rotation,
|
|
@@ -9640,7 +9642,7 @@ const ls = [
|
|
|
9640
9642
|
const i = e.data, r = a.option;
|
|
9641
9643
|
if (!r)
|
|
9642
9644
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
9643
|
-
const o = r.variants?.find((d) => d.id === i.pictureVariantId) ||
|
|
9645
|
+
const o = r.variants?.find((d) => d.id === i.pictureVariantId) || le(r);
|
|
9644
9646
|
if (!o)
|
|
9645
9647
|
return console.error(`No variant with ID: ${i.pictureVariantId}`), [];
|
|
9646
9648
|
if (!o.asset)
|
|
@@ -9658,7 +9660,7 @@ const ls = [
|
|
|
9658
9660
|
{
|
|
9659
9661
|
id: u,
|
|
9660
9662
|
src: s,
|
|
9661
|
-
type:
|
|
9663
|
+
type: D.Image,
|
|
9662
9664
|
y: d.top,
|
|
9663
9665
|
x: d.left,
|
|
9664
9666
|
rotation: d.rotation,
|
|
@@ -9681,7 +9683,7 @@ const ls = [
|
|
|
9681
9683
|
const i = e.data, r = a.option;
|
|
9682
9684
|
if (!r)
|
|
9683
9685
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
9684
|
-
const o = r.variants?.find((c) => c.id === i.colorVariantId) ||
|
|
9686
|
+
const o = r.variants?.find((c) => c.id === i.colorVariantId) || le(r);
|
|
9685
9687
|
if (!o)
|
|
9686
9688
|
return console.error(`No variant with ID: ${i.colorVariantId}`), [];
|
|
9687
9689
|
t[a.stepName] = { selectedVariants: [o] };
|
|
@@ -9715,7 +9717,7 @@ const ls = [
|
|
|
9715
9717
|
colors: h,
|
|
9716
9718
|
id: m,
|
|
9717
9719
|
svg: A,
|
|
9718
|
-
type:
|
|
9720
|
+
type: D.Illustration,
|
|
9719
9721
|
y: c.top,
|
|
9720
9722
|
x: c.left,
|
|
9721
9723
|
rotation: c.rotation,
|
|
@@ -9734,7 +9736,7 @@ const ls = [
|
|
|
9734
9736
|
return console.error(c), [];
|
|
9735
9737
|
}
|
|
9736
9738
|
}, gs = async (n, t, e) => {
|
|
9737
|
-
const a = [], r = t.type === S.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", s = r.endsWith(".jpeg") || r.endsWith(".jpg") || r.endsWith(".png") ?
|
|
9739
|
+
const a = [], r = t.type === S.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", s = r.endsWith(".jpeg") || r.endsWith(".jpg") || r.endsWith(".png") ? D.Image : (r.endsWith(".svg"), D.Illustration), l = t.data.regions;
|
|
9738
9740
|
if (s === "image")
|
|
9739
9741
|
try {
|
|
9740
9742
|
l.forEach((c) => {
|
|
@@ -9767,8 +9769,8 @@ const ls = [
|
|
|
9767
9769
|
const c = await nt(r, !0), d = (A) => {
|
|
9768
9770
|
const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = h?.length > 0 ? h[0] : "", f = At().parseFromString(m, "image/svg+xml").firstElementChild;
|
|
9769
9771
|
if (!f)
|
|
9770
|
-
throw new
|
|
9771
|
-
return
|
|
9772
|
+
throw new Dt("Failed to read SVG.");
|
|
9773
|
+
return Fa(f), Pt().serializeToString(f);
|
|
9772
9774
|
};
|
|
9773
9775
|
l.forEach((A) => {
|
|
9774
9776
|
const u = n.find((m) => m.panelId === A.panelId);
|
|
@@ -9802,7 +9804,7 @@ const ls = [
|
|
|
9802
9804
|
const g = a.option;
|
|
9803
9805
|
if (!g)
|
|
9804
9806
|
return;
|
|
9805
|
-
const f = g.variants?.find((b) => b.id === r.fontVariantId) ||
|
|
9807
|
+
const f = g.variants?.find((b) => b.id === r.fontVariantId) || le(g);
|
|
9806
9808
|
if (!f || !f.asset)
|
|
9807
9809
|
return;
|
|
9808
9810
|
t[a.stepName] = { selectedVariants: [f] };
|
|
@@ -9818,7 +9820,7 @@ const ls = [
|
|
|
9818
9820
|
assetUrl: g,
|
|
9819
9821
|
name: f.names.fullName.en
|
|
9820
9822
|
};
|
|
9821
|
-
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", u =
|
|
9823
|
+
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", u = Te(A, {
|
|
9822
9824
|
vertical: a.data.vertical,
|
|
9823
9825
|
uppercase: a.data.uppercase
|
|
9824
9826
|
}), h = async (g) => {
|
|
@@ -9843,7 +9845,7 @@ const ls = [
|
|
|
9843
9845
|
paths: a.data.paths,
|
|
9844
9846
|
rotation: g.rotation,
|
|
9845
9847
|
text: u,
|
|
9846
|
-
type:
|
|
9848
|
+
type: D.Textbox,
|
|
9847
9849
|
vertical: a.data.vertical,
|
|
9848
9850
|
verticalAlign: a.data.verticalAlign || "middle",
|
|
9849
9851
|
width: g.width,
|
|
@@ -9851,12 +9853,12 @@ const ls = [
|
|
|
9851
9853
|
y: g.top
|
|
9852
9854
|
};
|
|
9853
9855
|
if (d) {
|
|
9854
|
-
const [b, B] =
|
|
9856
|
+
const [b, B] = be(
|
|
9855
9857
|
a.data.size || o,
|
|
9856
9858
|
d,
|
|
9857
9859
|
g,
|
|
9858
9860
|
[
|
|
9859
|
-
|
|
9861
|
+
Te(u, {
|
|
9860
9862
|
vertical: a.data.vertical,
|
|
9861
9863
|
uppercase: a.data.uppercase
|
|
9862
9864
|
})
|
|
@@ -10109,7 +10111,7 @@ class Es extends Wn {
|
|
|
10109
10111
|
purpose: Kt.ThreeD,
|
|
10110
10112
|
templatingContext: d
|
|
10111
10113
|
}
|
|
10112
|
-
}), u =
|
|
10114
|
+
}), u = Fn(A), h = await Ea.from(this.ctx, u, {
|
|
10113
10115
|
anonymousCrossOrigin: !0,
|
|
10114
10116
|
ignoreDimensions: !this.nonPOTSupport,
|
|
10115
10117
|
ignoreAnimation: !0,
|
|
@@ -10143,7 +10145,7 @@ const Md = (n, t) => {
|
|
|
10143
10145
|
i = new L(e.map((l) => new ni(l))).apply(i);
|
|
10144
10146
|
const o = await Cs(n, t, e, a);
|
|
10145
10147
|
return new L(o).apply(i);
|
|
10146
|
-
},
|
|
10148
|
+
}, ce = C`
|
|
10147
10149
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
10148
10150
|
name
|
|
10149
10151
|
value
|
|
@@ -10166,7 +10168,7 @@ const Md = (n, t) => {
|
|
|
10166
10168
|
}
|
|
10167
10169
|
}
|
|
10168
10170
|
`, bs = C`
|
|
10169
|
-
${
|
|
10171
|
+
${ce}
|
|
10170
10172
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
10171
10173
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
10172
10174
|
id
|
|
@@ -10176,7 +10178,7 @@ const Md = (n, t) => {
|
|
|
10176
10178
|
}
|
|
10177
10179
|
}
|
|
10178
10180
|
`, Is = C`
|
|
10179
|
-
${
|
|
10181
|
+
${ce}
|
|
10180
10182
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
10181
10183
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
10182
10184
|
id
|
|
@@ -10186,7 +10188,7 @@ const Md = (n, t) => {
|
|
|
10186
10188
|
}
|
|
10187
10189
|
}
|
|
10188
10190
|
`, Bs = C`
|
|
10189
|
-
${
|
|
10191
|
+
${ce}
|
|
10190
10192
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
10191
10193
|
globalPropertyState(bundleId: $bundleId) {
|
|
10192
10194
|
id
|
|
@@ -10203,7 +10205,7 @@ const Md = (n, t) => {
|
|
|
10203
10205
|
bundleId: n
|
|
10204
10206
|
}
|
|
10205
10207
|
})).data.globalPropertyState, Ps = (n) => C`
|
|
10206
|
-
${
|
|
10208
|
+
${ze}
|
|
10207
10209
|
fragment ProductFields on Product {
|
|
10208
10210
|
id
|
|
10209
10211
|
basePrice
|
|
@@ -10257,7 +10259,7 @@ const Md = (n, t) => {
|
|
|
10257
10259
|
...ProductFields
|
|
10258
10260
|
}
|
|
10259
10261
|
}
|
|
10260
|
-
`,
|
|
10262
|
+
`, de = (n, t = !1) => C`
|
|
10261
10263
|
${n ? Ra(t) : ""}
|
|
10262
10264
|
fragment ProductCollectionFields on ProductCollection {
|
|
10263
10265
|
id
|
|
@@ -10347,9 +10349,9 @@ const Md = (n, t) => {
|
|
|
10347
10349
|
workflowViewerLink
|
|
10348
10350
|
workflowViewerAmendLink
|
|
10349
10351
|
}
|
|
10350
|
-
`,
|
|
10351
|
-
${
|
|
10352
|
-
${
|
|
10352
|
+
`, Fs = (n) => C`
|
|
10353
|
+
${ce}
|
|
10354
|
+
${de(n)}
|
|
10353
10355
|
${ui}
|
|
10354
10356
|
query GetBundle($id: String!) {
|
|
10355
10357
|
globalPropertyState(bundleId: $id) {
|
|
@@ -10427,7 +10429,7 @@ const Md = (n, t) => {
|
|
|
10427
10429
|
}
|
|
10428
10430
|
}
|
|
10429
10431
|
}
|
|
10430
|
-
`,
|
|
10432
|
+
`, Ds = C`
|
|
10431
10433
|
query GetBundlesForCustomer($id: String!) {
|
|
10432
10434
|
customers(ids: [$id]) {
|
|
10433
10435
|
bundleStakeholders {
|
|
@@ -10522,7 +10524,7 @@ const Md = (n, t) => {
|
|
|
10522
10524
|
}
|
|
10523
10525
|
}
|
|
10524
10526
|
`, Ts = (n) => C`
|
|
10525
|
-
${
|
|
10527
|
+
${de(n)}
|
|
10526
10528
|
mutation CreateBundle(
|
|
10527
10529
|
$collectionId: String
|
|
10528
10530
|
$initialMetadata: [MetadataInput!]
|
|
@@ -10551,8 +10553,8 @@ const Md = (n, t) => {
|
|
|
10551
10553
|
}
|
|
10552
10554
|
}
|
|
10553
10555
|
`, Ns = (n) => C`
|
|
10554
|
-
${
|
|
10555
|
-
${
|
|
10556
|
+
${ce}
|
|
10557
|
+
${de(n)}
|
|
10556
10558
|
mutation DuplicateBundle(
|
|
10557
10559
|
$id: String!
|
|
10558
10560
|
$template: Boolean
|
|
@@ -10708,7 +10710,7 @@ const Md = (n, t) => {
|
|
|
10708
10710
|
}
|
|
10709
10711
|
}
|
|
10710
10712
|
`, Gs = (n) => C`
|
|
10711
|
-
${
|
|
10713
|
+
${de(n)}
|
|
10712
10714
|
mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
|
|
10713
10715
|
bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
|
|
10714
10716
|
id
|
|
@@ -10927,7 +10929,7 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
10927
10929
|
const t = this.experience.getTransaction().recipient, e = { recipient: t };
|
|
10928
10930
|
return this.recipientConversionConfiguration?.requestedDataItems?.forEach((a) => {
|
|
10929
10931
|
const i = a.uniqueIdentifier ?? a.title ?? "";
|
|
10930
|
-
a.type ===
|
|
10932
|
+
a.type === Ie.FirstName ? e[i] = t?.firstName : a.type === Ie.LastName ? e[i] = t?.lastName : a.type === Ie.Custom && (a.customFieldIndex === 1 ? e[i] = t?.customField1 : a.customFieldIndex === 2 ? e[i] = t?.customField2 : a.customFieldIndex === 3 ? e[i] = t?.customField3 : a.customFieldIndex === 4 ? e[i] = t?.customField4 : a.customFieldIndex === 5 && (e[i] = t?.customField5), a.option && (e[i] = a.option.variants?.find((r) => r.id === e[i])?.name));
|
|
10931
10933
|
}), e;
|
|
10932
10934
|
}
|
|
10933
10935
|
async updateRecipient(t, e, a, i, r, o, s, l, c, d, A, u, h, m, p, g, f) {
|
|
@@ -11502,11 +11504,11 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11502
11504
|
this.stepSelections = {
|
|
11503
11505
|
...this.stepSelections,
|
|
11504
11506
|
[t]: { selectedVariants: e }
|
|
11505
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((v,
|
|
11507
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((v, F) => v + F.selectedVariants.map((x) => x.priceModifier || 0).reduce((x, T) => x + T, 0), 0), r.steps.forEach((v) => {
|
|
11506
11508
|
bt(v, this.stepSelections) || (this.stepInitialised[v.stepName] = !1, delete this.stepMetadata[v.stepName], delete this.stepSelections[v.stepName], delete this.storage[v.stepName]);
|
|
11507
11509
|
});
|
|
11508
11510
|
const s = this.allScenes, l = vt(s, o), c = vt(s, this.stepSelections), d = l.map((v) => v.silentSteps).flat(), u = c.map((v) => v.silentSteps).flat().filter(
|
|
11509
|
-
(v) => !d.some((
|
|
11511
|
+
(v) => !d.some((F) => F.stepName === v.stepName)
|
|
11510
11512
|
);
|
|
11511
11513
|
d.forEach((v) => {
|
|
11512
11514
|
bt(v, this.stepSelections) || (this.stepInitialised[v.stepName] = !1);
|
|
@@ -11518,14 +11520,14 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11518
11520
|
[t]: a
|
|
11519
11521
|
}, this.removeElements(h);
|
|
11520
11522
|
const g = r.steps.find((v) => v.stepName === t);
|
|
11521
|
-
g?.type === S.Frame && this.getWorkflowExperience().getStepById(g.stepName)?.frameService?.setTargetElements(a.map((
|
|
11523
|
+
g?.type === S.Frame && this.getWorkflowExperience().getStepById(g.stepName)?.frameService?.setTargetElements(a.map((F) => F.id));
|
|
11522
11524
|
const f = h.map((v) => new Rt(v.id)), w = new en(this.constructSerializableWorkflow()), b = [...p, ...f, w];
|
|
11523
11525
|
b.length > 0 && this.commandContext.apply(new L(b), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
11524
11526
|
const B = this.getInvalidModelVariants(), E = this.modelContainer;
|
|
11525
11527
|
if (E) {
|
|
11526
11528
|
const v = B.map(
|
|
11527
|
-
(
|
|
11528
|
-
|
|
11529
|
+
(F) => E.applyModelVariant(
|
|
11530
|
+
F,
|
|
11529
11531
|
{
|
|
11530
11532
|
contextService: this.getLayoutPreviewService()
|
|
11531
11533
|
},
|
|
@@ -11555,7 +11557,7 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11555
11557
|
break;
|
|
11556
11558
|
case S.Illustration:
|
|
11557
11559
|
a.push(
|
|
11558
|
-
|
|
11560
|
+
Ee.init(l, this, this.reloadedState)
|
|
11559
11561
|
);
|
|
11560
11562
|
break;
|
|
11561
11563
|
case S.Material:
|
|
@@ -11875,7 +11877,7 @@ class il extends et {
|
|
|
11875
11877
|
*/
|
|
11876
11878
|
async selectVariant(t) {
|
|
11877
11879
|
if (!this.getUpdateState() && this.getCurrentVariant() !== t)
|
|
11878
|
-
return
|
|
11880
|
+
return Ee.selectVariant(
|
|
11879
11881
|
this.step,
|
|
11880
11882
|
t.getResource(),
|
|
11881
11883
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -11917,7 +11919,7 @@ class il extends et {
|
|
|
11917
11919
|
const c = l.id.replace(/\W/g, "");
|
|
11918
11920
|
a ? i.set(c, { browserValue: e, pmsValue: a }) : i.set(c, e);
|
|
11919
11921
|
}
|
|
11920
|
-
}) : a ? i.set(t, { browserValue: e, pmsValue: a }) : i.set(t, e),
|
|
11922
|
+
}) : a ? i.set(t, { browserValue: e, pmsValue: a }) : i.set(t, e), Ee.changeColors(
|
|
11921
11923
|
this.step,
|
|
11922
11924
|
this.manager.getRegionElements(this.step.stepName),
|
|
11923
11925
|
this.manager,
|
|
@@ -11929,7 +11931,7 @@ class il extends et {
|
|
|
11929
11931
|
return this.step.data.colorOption;
|
|
11930
11932
|
}
|
|
11931
11933
|
getAvailableColors() {
|
|
11932
|
-
return this.step.data.colorPickerEnabled ?
|
|
11934
|
+
return this.step.data.colorPickerEnabled ? Ee.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
11933
11935
|
}
|
|
11934
11936
|
isColorPickerEnabled() {
|
|
11935
11937
|
return this.step.data.colorPickerEnabled ?? !1;
|
|
@@ -12336,7 +12338,7 @@ class hl extends et {
|
|
|
12336
12338
|
});
|
|
12337
12339
|
}
|
|
12338
12340
|
}
|
|
12339
|
-
class
|
|
12341
|
+
class pe {
|
|
12340
12342
|
static get(t, e) {
|
|
12341
12343
|
switch (e.type) {
|
|
12342
12344
|
case S.DigitalContent:
|
|
@@ -12631,7 +12633,7 @@ const pl = async (n, t) => {
|
|
|
12631
12633
|
const x = await (await it(v)).blob();
|
|
12632
12634
|
v = (await V.uploadAsset(
|
|
12633
12635
|
{ name: `${i.id}-preview-image.png`, blob: x },
|
|
12634
|
-
|
|
12636
|
+
Pe.Image,
|
|
12635
12637
|
!0,
|
|
12636
12638
|
!1
|
|
12637
12639
|
)).fileLink;
|
|
@@ -12853,8 +12855,8 @@ const ra = new Sl(), vl = C`
|
|
|
12853
12855
|
}
|
|
12854
12856
|
}
|
|
12855
12857
|
`, cn = C`
|
|
12858
|
+
${ze}
|
|
12856
12859
|
${oe}
|
|
12857
|
-
${se}
|
|
12858
12860
|
mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String) {
|
|
12859
12861
|
transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
|
|
12860
12862
|
id
|
|
@@ -13125,14 +13127,14 @@ class Il {
|
|
|
13125
13127
|
height: d.layoutState.layout.height
|
|
13126
13128
|
}, u = this.workflowManager.getCommandContext().getLayoutById(d.layoutState.layout.id), h = o.getContext("2d");
|
|
13127
13129
|
if (!h)
|
|
13128
|
-
throw new
|
|
13130
|
+
throw new $e("Failed to obtain 2D context for preview image creation");
|
|
13129
13131
|
const m = this.workflowManager.getTemplatingContext(), p = Ma(u.layoutState.layout, u.layoutState.elements, {
|
|
13130
13132
|
renderingConfiguration: {
|
|
13131
13133
|
purpose: Kt.Print,
|
|
13132
13134
|
region: { left: A.x, top: A.y, width: A.width, height: A.height },
|
|
13133
13135
|
templatingContext: m
|
|
13134
13136
|
}
|
|
13135
|
-
}), g =
|
|
13137
|
+
}), g = Fn(p);
|
|
13136
13138
|
await (await Ea.from(h, g, {
|
|
13137
13139
|
anonymousCrossOrigin: !0,
|
|
13138
13140
|
ignoreDimensions: !1,
|
|
@@ -13150,7 +13152,7 @@ class Il {
|
|
|
13150
13152
|
const a = this.cachedStepHandles.get(e.stepName);
|
|
13151
13153
|
if (a)
|
|
13152
13154
|
return a;
|
|
13153
|
-
const i =
|
|
13155
|
+
const i = pe.get(this.getWorkflowManager(), e);
|
|
13154
13156
|
return this.cachedStepHandles.set(e.stepName, i), i;
|
|
13155
13157
|
}
|
|
13156
13158
|
getSteps() {
|
|
@@ -13247,17 +13249,17 @@ class Il {
|
|
|
13247
13249
|
getStepByName(t) {
|
|
13248
13250
|
const e = this.getWorkflow()?.steps.find((a) => a.stepTitle === t);
|
|
13249
13251
|
if (!(!e || !this.stepHasHandle(e)))
|
|
13250
|
-
return
|
|
13252
|
+
return pe.get(this.getWorkflowManager(), e);
|
|
13251
13253
|
}
|
|
13252
13254
|
getStepsByType(t) {
|
|
13253
|
-
return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) =>
|
|
13255
|
+
return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) => pe.get(this.getWorkflowManager(), e)) || [];
|
|
13254
13256
|
}
|
|
13255
13257
|
getStepsByScene(t) {
|
|
13256
13258
|
if (!this.getWorkflow()?.stepGroups.find((a) => a.name === t.name))
|
|
13257
13259
|
throw new Error(
|
|
13258
13260
|
"Given scene is not present on workflow! Be careful when persisting scenes that you only use them with the relevant workflow."
|
|
13259
13261
|
);
|
|
13260
|
-
return t.stepIds.map((a) => this.getWorkflow()?.steps.find((i) => i.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) =>
|
|
13262
|
+
return t.stepIds.map((a) => this.getWorkflow()?.steps.find((i) => i.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) => pe.get(this.getWorkflowManager(), a));
|
|
13261
13263
|
}
|
|
13262
13264
|
async attachCustomerDetails(t) {
|
|
13263
13265
|
return this.assignCustomerDetails({ emailAddress: t.email });
|
|
@@ -13487,7 +13489,7 @@ const Bl = (n) => {
|
|
|
13487
13489
|
}
|
|
13488
13490
|
return !1;
|
|
13489
13491
|
};
|
|
13490
|
-
class
|
|
13492
|
+
class Fl {
|
|
13491
13493
|
constructor(t) {
|
|
13492
13494
|
this.handleCache = {}, this.bundle = t;
|
|
13493
13495
|
}
|
|
@@ -13529,7 +13531,7 @@ class Dl {
|
|
|
13529
13531
|
async createHandle(t) {
|
|
13530
13532
|
switch (t.type) {
|
|
13531
13533
|
case G.FileUpload:
|
|
13532
|
-
return new
|
|
13534
|
+
return new Dl(this.bundle, t).initialize();
|
|
13533
13535
|
case G.ColorOption:
|
|
13534
13536
|
return new dn(
|
|
13535
13537
|
this.bundle,
|
|
@@ -13608,7 +13610,7 @@ class Oa {
|
|
|
13608
13610
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
|
13609
13611
|
}
|
|
13610
13612
|
}
|
|
13611
|
-
class
|
|
13613
|
+
class Dl extends Oa {
|
|
13612
13614
|
constructor(t, e) {
|
|
13613
13615
|
super(t, e);
|
|
13614
13616
|
}
|
|
@@ -14022,7 +14024,7 @@ function fi(n) {
|
|
|
14022
14024
|
e.value !== "" && t.set(e.name, !0);
|
|
14023
14025
|
}), t;
|
|
14024
14026
|
}
|
|
14025
|
-
function
|
|
14027
|
+
function fe(n) {
|
|
14026
14028
|
return Sa(n, ["__typename"]);
|
|
14027
14029
|
}
|
|
14028
14030
|
class Ql {
|
|
@@ -14030,9 +14032,9 @@ class Ql {
|
|
|
14030
14032
|
this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = r;
|
|
14031
14033
|
const o = r?.existingGlobalPropertyState;
|
|
14032
14034
|
this.initPromise = o ? Promise.resolve(o).then(() => {
|
|
14033
|
-
console.log("Setting global property state to existing state."), this.globalPropertyState =
|
|
14035
|
+
console.log("Setting global property state to existing state."), this.globalPropertyState = fe(o), this.recalculateMandatoryStates();
|
|
14034
14036
|
}) : this.createGlobalPropertyState().then((s) => {
|
|
14035
|
-
console.log("Setting global property state to new state."), this.globalPropertyState =
|
|
14037
|
+
console.log("Setting global property state to new state."), this.globalPropertyState = fe(s), this.recalculateMandatoryStates();
|
|
14036
14038
|
}), this.onGlobalPropertyStateChange = i;
|
|
14037
14039
|
}
|
|
14038
14040
|
async clearAspects(t) {
|
|
@@ -14062,7 +14064,7 @@ class Ql {
|
|
|
14062
14064
|
async setGlobalPropertyState(t) {
|
|
14063
14065
|
this.globalPropertyState || await this.initPromise;
|
|
14064
14066
|
const e = It(this.globalPropertyState);
|
|
14065
|
-
this.globalPropertyState = { ...
|
|
14067
|
+
this.globalPropertyState = { ...fe(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
|
|
14066
14068
|
}
|
|
14067
14069
|
getAspectMandatoryFulfilled(t) {
|
|
14068
14070
|
return this.mandatoryFulfilledAspects.get(t);
|
|
@@ -14191,7 +14193,7 @@ class Ql {
|
|
|
14191
14193
|
}
|
|
14192
14194
|
});
|
|
14193
14195
|
if (t.data?.globalPropertyStateUpdate)
|
|
14194
|
-
this.globalPropertyState =
|
|
14196
|
+
this.globalPropertyState = fe(t.data.globalPropertyStateUpdate);
|
|
14195
14197
|
else
|
|
14196
14198
|
throw new Error("Unable to update global property state");
|
|
14197
14199
|
}
|
|
@@ -14430,14 +14432,14 @@ class Ci {
|
|
|
14430
14432
|
getProducts() {
|
|
14431
14433
|
if (!this.collection.productCollectionProducts)
|
|
14432
14434
|
throw new Error("Failed to find products on collection. Ensure you fetch them first!");
|
|
14433
|
-
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new
|
|
14435
|
+
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new Ce(t));
|
|
14434
14436
|
}
|
|
14435
14437
|
/**
|
|
14436
14438
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
14437
14439
|
*/
|
|
14438
14440
|
async fetchProducts(t) {
|
|
14439
14441
|
if (this.fullFetched)
|
|
14440
|
-
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
14442
|
+
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new Ce(a));
|
|
14441
14443
|
const e = await y.getShadowGraphqlClient().query({
|
|
14442
14444
|
query: xs,
|
|
14443
14445
|
variables: {
|
|
@@ -14446,7 +14448,7 @@ class Ci {
|
|
|
14446
14448
|
},
|
|
14447
14449
|
errorPolicy: "all"
|
|
14448
14450
|
});
|
|
14449
|
-
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
14451
|
+
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new Ce(a));
|
|
14450
14452
|
}
|
|
14451
14453
|
/**
|
|
14452
14454
|
* Returns a list of collections products matching the associated metafield/tag filters.
|
|
@@ -14536,7 +14538,7 @@ class Ci {
|
|
|
14536
14538
|
if (h || p.partial && (!p.data.productCollections || p.data.productCollections.length === 0 || !p.data.productCollections[0].productCollectionProductsFeed?.items || p.data.productCollections[0].productCollectionProductsFeed?.items.length === 0))
|
|
14537
14539
|
return;
|
|
14538
14540
|
c.abort(), h = !0, m.unsubscribe();
|
|
14539
|
-
const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new
|
|
14541
|
+
const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new Ce(It(f))) || [];
|
|
14540
14542
|
u({
|
|
14541
14543
|
items: g,
|
|
14542
14544
|
// Clone items because it could be cached data (immutable)
|
|
@@ -14560,7 +14562,7 @@ class Ci {
|
|
|
14560
14562
|
return this.collection;
|
|
14561
14563
|
}
|
|
14562
14564
|
}
|
|
14563
|
-
class
|
|
14565
|
+
class Ce {
|
|
14564
14566
|
constructor(t) {
|
|
14565
14567
|
this.product = t.product, this.productResource = t;
|
|
14566
14568
|
}
|
|
@@ -14753,7 +14755,7 @@ class zl {
|
|
|
14753
14755
|
}
|
|
14754
14756
|
}
|
|
14755
14757
|
const Gl = C`
|
|
14756
|
-
${
|
|
14758
|
+
${de(!1)}
|
|
14757
14759
|
query GetProductCollections($ids: [String!]!) {
|
|
14758
14760
|
productCollections(ids: $ids) {
|
|
14759
14761
|
...ProductCollectionFields
|
|
@@ -14839,7 +14841,7 @@ class oa {
|
|
|
14839
14841
|
l,
|
|
14840
14842
|
this.onGlobalPropertiesChanged.bind(this),
|
|
14841
14843
|
o
|
|
14842
|
-
), this.globalPropertyHandleService = new
|
|
14844
|
+
), this.globalPropertyHandleService = new Fl(this), this.setPreviewService(a);
|
|
14843
14845
|
const c = new Promise((d, A) => {
|
|
14844
14846
|
if (o?.readonly) {
|
|
14845
14847
|
d([]);
|
|
@@ -15043,7 +15045,7 @@ class oa {
|
|
|
15043
15045
|
if (r)
|
|
15044
15046
|
switch (a.type) {
|
|
15045
15047
|
case G.FileUpload: {
|
|
15046
|
-
const o = r, s = await
|
|
15048
|
+
const o = r, s = await ke([a.value]);
|
|
15047
15049
|
s.length > 0 && await o.selectImage(s[0]);
|
|
15048
15050
|
const l = a.storage?.colors;
|
|
15049
15051
|
if (l) {
|
|
@@ -15705,14 +15707,14 @@ class Kl {
|
|
|
15705
15707
|
* @returns The nodes contained within the execution.
|
|
15706
15708
|
*/
|
|
15707
15709
|
getNodes() {
|
|
15708
|
-
return this.execution.nodes.map((t) => new
|
|
15710
|
+
return this.execution.nodes.map((t) => new we(t));
|
|
15709
15711
|
}
|
|
15710
15712
|
/**
|
|
15711
15713
|
* @param type The type of node to return.
|
|
15712
15714
|
* @returns A list of nodes matching the requested type.
|
|
15713
15715
|
*/
|
|
15714
15716
|
getNodesByType(t) {
|
|
15715
|
-
return this.execution.nodes.filter((e) => e.type === t).map((e) => new
|
|
15717
|
+
return this.execution.nodes.filter((e) => e.type === t).map((e) => new we(e));
|
|
15716
15718
|
}
|
|
15717
15719
|
/**
|
|
15718
15720
|
* @returns A list of input nodes that exist in this execution.
|
|
@@ -15721,7 +15723,7 @@ class Kl {
|
|
|
15721
15723
|
return this.execution.nodes.filter(
|
|
15722
15724
|
(t) => t.type === "StartTerminal"
|
|
15723
15725
|
/* StartTerminal */
|
|
15724
|
-
).map((t) => new
|
|
15726
|
+
).map((t) => new we(t));
|
|
15725
15727
|
}
|
|
15726
15728
|
/**
|
|
15727
15729
|
* @returns A list of out put nodes that exist in this execution.
|
|
@@ -15730,7 +15732,7 @@ class Kl {
|
|
|
15730
15732
|
return this.execution.nodes.filter(
|
|
15731
15733
|
(t) => t.type === "EndTerminal"
|
|
15732
15734
|
/* EndTerminal */
|
|
15733
|
-
).map((t) => new
|
|
15735
|
+
).map((t) => new we(t));
|
|
15734
15736
|
}
|
|
15735
15737
|
/**
|
|
15736
15738
|
* @returns A date object representing the point in time this execution completed.
|
|
@@ -15747,7 +15749,7 @@ class Kl {
|
|
|
15747
15749
|
return new Date(this.execution.failedAt);
|
|
15748
15750
|
}
|
|
15749
15751
|
}
|
|
15750
|
-
class
|
|
15752
|
+
class we {
|
|
15751
15753
|
constructor(t) {
|
|
15752
15754
|
this.node = t;
|
|
15753
15755
|
}
|
|
@@ -15837,7 +15839,7 @@ class An {
|
|
|
15837
15839
|
return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new Ht(e));
|
|
15838
15840
|
}
|
|
15839
15841
|
}
|
|
15840
|
-
const
|
|
15842
|
+
const ye = C`
|
|
15841
15843
|
query GetCustomer($emailAddress: String!) {
|
|
15842
15844
|
customer(emailAddress: $emailAddress) {
|
|
15843
15845
|
id
|
|
@@ -16162,7 +16164,7 @@ class $d {
|
|
|
16162
16164
|
} catch (a) {
|
|
16163
16165
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16164
16166
|
}
|
|
16165
|
-
}, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.11.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16167
|
+
}, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.11.0-beta.1c20a63b-d01f-59c6-8e14-8e80cf12cee4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16166
16168
|
}
|
|
16167
16169
|
configure(t) {
|
|
16168
16170
|
ft.setHubUrl(t.hubUrl), ft.setServerUrl(t.serverUrl), ft.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 && sr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && zt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16294,7 +16296,7 @@ class $d {
|
|
|
16294
16296
|
}
|
|
16295
16297
|
async customerHasBundleTemplates(t) {
|
|
16296
16298
|
const i = (await y.getShadowGraphqlClient().query({
|
|
16297
|
-
query:
|
|
16299
|
+
query: ye,
|
|
16298
16300
|
errorPolicy: "all",
|
|
16299
16301
|
fetchPolicy: "no-cache",
|
|
16300
16302
|
variables: {
|
|
@@ -16313,7 +16315,7 @@ class $d {
|
|
|
16313
16315
|
async getOrCreateCustomer(t) {
|
|
16314
16316
|
this.customer = void 0;
|
|
16315
16317
|
const e = y.getShadowGraphqlClient(), i = (await e.query({
|
|
16316
|
-
query:
|
|
16318
|
+
query: ye,
|
|
16317
16319
|
errorPolicy: "all",
|
|
16318
16320
|
fetchPolicy: "no-cache",
|
|
16319
16321
|
variables: {
|
|
@@ -16366,7 +16368,7 @@ class $d {
|
|
|
16366
16368
|
return this.logOut(), console.error("Failed to refresh tokens."), !1;
|
|
16367
16369
|
}
|
|
16368
16370
|
const s = (await y.getShadowGraphqlClient().query({
|
|
16369
|
-
query:
|
|
16371
|
+
query: ye,
|
|
16370
16372
|
errorPolicy: "all",
|
|
16371
16373
|
fetchPolicy: "no-cache",
|
|
16372
16374
|
variables: {
|
|
@@ -16395,7 +16397,7 @@ class $d {
|
|
|
16395
16397
|
if (i?.AuthenticationResult) {
|
|
16396
16398
|
localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(i.AuthenticationResult)), localStorage.setItem("cognito-email", t);
|
|
16397
16399
|
const o = (await y.getShadowGraphqlClient().query({
|
|
16398
|
-
query:
|
|
16400
|
+
query: ye,
|
|
16399
16401
|
errorPolicy: "all",
|
|
16400
16402
|
fetchPolicy: "no-cache",
|
|
16401
16403
|
variables: {
|
|
@@ -16489,7 +16491,7 @@ class $d {
|
|
|
16489
16491
|
...l,
|
|
16490
16492
|
...i?.graphql?.additionalHeaders
|
|
16491
16493
|
}, d = await y.getShadowGraphqlClient().query({
|
|
16492
|
-
query:
|
|
16494
|
+
query: Fs(i?.graphql?.productCollection?.eagerFetchProducts || !1),
|
|
16493
16495
|
variables: {
|
|
16494
16496
|
id: t
|
|
16495
16497
|
},
|
|
@@ -16585,7 +16587,7 @@ class $d {
|
|
|
16585
16587
|
if (!this.customer)
|
|
16586
16588
|
throw new Error("Customer not authenticated.");
|
|
16587
16589
|
const t = await y.getShadowGraphqlClient().query({
|
|
16588
|
-
query:
|
|
16590
|
+
query: Ds,
|
|
16589
16591
|
variables: {
|
|
16590
16592
|
id: this.customer.id
|
|
16591
16593
|
},
|
|
@@ -16687,7 +16689,7 @@ class $d {
|
|
|
16687
16689
|
), [w, b] = await Promise.all([
|
|
16688
16690
|
(async () => g.length > 0 ? await lc(g) : [])(),
|
|
16689
16691
|
(async () => f.length > 0 ? await yi(f, e) : [])()
|
|
16690
|
-
]), B = new Map(w.map((I) => [I.id, I])), E = new Map(b.map((I) => [I.id, I])), v = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(),
|
|
16692
|
+
]), B = new Map(w.map((I) => [I.id, I])), E = new Map(b.map((I) => [I.id, I])), v = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), F = p.map(async (I) => {
|
|
16691
16693
|
const { transaction: Q, workflowId: U, readOnly: N, index: q } = I, St = U ? E.get(U) : void 0, ut = t[q];
|
|
16692
16694
|
if (Q.integrationProductId) {
|
|
16693
16695
|
const rt = B.get(Q.integrationProductId);
|
|
@@ -16697,7 +16699,7 @@ class $d {
|
|
|
16697
16699
|
const He = v.get(Q.id) || void 0, bi = new ec({
|
|
16698
16700
|
onMutate: () => ({ context: { transactionOwnerId: He, bundleOwnerId: e?.bundleOwnerId } }),
|
|
16699
16701
|
onQuery: () => ({ context: { transactionOwnerId: He, bundleOwnerId: e?.bundleOwnerId } })
|
|
16700
|
-
}),
|
|
16702
|
+
}), Ae = {
|
|
16701
16703
|
workflow: St,
|
|
16702
16704
|
transaction: Q,
|
|
16703
16705
|
singleVariantsRenderable: ut?.workflowConfiguration?.singleVariantsRenderable,
|
|
@@ -16713,13 +16715,13 @@ class $d {
|
|
|
16713
16715
|
};
|
|
16714
16716
|
if (ut.type === "transaction" && Q.workflowState) {
|
|
16715
16717
|
const rt = JSON.parse(Q.workflowState);
|
|
16716
|
-
await tn(rt),
|
|
16718
|
+
await tn(rt), Ae.reloadedState = rt;
|
|
16717
16719
|
} else if (!N && ut.workflowState) {
|
|
16718
16720
|
const rt = JSON.parse(ut.workflowState);
|
|
16719
|
-
await tn(rt),
|
|
16721
|
+
await tn(rt), Ae.reloadedState = rt;
|
|
16720
16722
|
}
|
|
16721
|
-
return
|
|
16722
|
-
}), x = await Promise.all(
|
|
16723
|
+
return Ae.delayWorkflowStateSync = !0, { experienceOptions: Ae, index: q, options: ut };
|
|
16724
|
+
}), x = await Promise.all(F);
|
|
16723
16725
|
k.setMap("transactionOwnerIds", v);
|
|
16724
16726
|
const T = x.sort((I, Q) => I.index - Q.index);
|
|
16725
16727
|
let $ = [];
|
|
@@ -16874,12 +16876,12 @@ function dc(n, t, e, a) {
|
|
|
16874
16876
|
const s = n, l = Math.max(t.width / e.width, t.height / e.height);
|
|
16875
16877
|
s.zoom = Math.max(l, n.zoom);
|
|
16876
16878
|
const c = e.width * s.zoom, d = e.height * s.zoom;
|
|
16877
|
-
return s.x =
|
|
16879
|
+
return s.x = Se(n.x, t.width - c, 0), s.y = Se(n.y, t.height - d, 0), s;
|
|
16878
16880
|
}
|
|
16879
16881
|
const o = n;
|
|
16880
|
-
return o.x =
|
|
16882
|
+
return o.x = Se(o.x, -i, t.width), o.y = Se(o.y, -r, t.height), o;
|
|
16881
16883
|
}
|
|
16882
|
-
function
|
|
16884
|
+
function Se(n, t, e) {
|
|
16883
16885
|
return Math.min(Math.max(n, t), e);
|
|
16884
16886
|
}
|
|
16885
16887
|
class Ac {
|
|
@@ -17678,7 +17680,7 @@ const mc = C`
|
|
|
17678
17680
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
17679
17681
|
}
|
|
17680
17682
|
})();
|
|
17681
|
-
var vc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(vc || {}),
|
|
17683
|
+
var vc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(vc || {}), Ie = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(Ie || {}), X;
|
|
17682
17684
|
X = { __e: function(n, t, e, a) {
|
|
17683
17685
|
for (var i, r, o; t = t.__; )
|
|
17684
17686
|
if ((i = t.__c) && !i.__)
|
|
@@ -17695,7 +17697,7 @@ function Ec() {
|
|
|
17695
17697
|
for (var n; n = vi.shift(); )
|
|
17696
17698
|
if (n.__P && n.__H)
|
|
17697
17699
|
try {
|
|
17698
|
-
n.__H.__h.forEach(
|
|
17700
|
+
n.__H.__h.forEach(Be), n.__H.__h.forEach(va), n.__H.__h = [];
|
|
17699
17701
|
} catch (t) {
|
|
17700
17702
|
n.__H.__h = [], X.__e(t, n.__v);
|
|
17701
17703
|
}
|
|
@@ -17707,7 +17709,7 @@ X.__b = function(n) {
|
|
|
17707
17709
|
var t = (st = n.__c).__H;
|
|
17708
17710
|
t && (sa === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
|
|
17709
17711
|
e.__N && (e.__ = e.__N), e.__V = la, e.__N = e.i = void 0;
|
|
17710
|
-
})) : (t.__h.forEach(
|
|
17712
|
+
})) : (t.__h.forEach(Be), t.__h.forEach(va), t.__h = [])), sa = st;
|
|
17711
17713
|
}, X.diffed = function(n) {
|
|
17712
17714
|
pn && pn(n);
|
|
17713
17715
|
var t = n.__c;
|
|
@@ -17717,7 +17719,7 @@ X.__b = function(n) {
|
|
|
17717
17719
|
}, X.__c = function(n, t) {
|
|
17718
17720
|
t.some(function(e) {
|
|
17719
17721
|
try {
|
|
17720
|
-
e.__h.forEach(
|
|
17722
|
+
e.__h.forEach(Be), e.__h = e.__h.filter(function(a) {
|
|
17721
17723
|
return !a.__ || va(a);
|
|
17722
17724
|
});
|
|
17723
17725
|
} catch (a) {
|
|
@@ -17731,7 +17733,7 @@ X.__b = function(n) {
|
|
|
17731
17733
|
var t, e = n.__c;
|
|
17732
17734
|
e && e.__H && (e.__H.__.forEach(function(a) {
|
|
17733
17735
|
try {
|
|
17734
|
-
|
|
17736
|
+
Be(a);
|
|
17735
17737
|
} catch (i) {
|
|
17736
17738
|
t = i;
|
|
17737
17739
|
}
|
|
@@ -17744,7 +17746,7 @@ function bc(n) {
|
|
|
17744
17746
|
}, a = setTimeout(e, 100);
|
|
17745
17747
|
wn && (t = requestAnimationFrame(e));
|
|
17746
17748
|
}
|
|
17747
|
-
function
|
|
17749
|
+
function Be(n) {
|
|
17748
17750
|
var t = st, e = n.__c;
|
|
17749
17751
|
typeof e == "function" && (n.__c = void 0, e()), st = t;
|
|
17750
17752
|
}
|
|
@@ -17810,14 +17812,14 @@ const Ei = C`
|
|
|
17810
17812
|
...AddressValidationResultFields
|
|
17811
17813
|
}
|
|
17812
17814
|
}
|
|
17813
|
-
`,
|
|
17815
|
+
`, Fc = C`
|
|
17814
17816
|
${La}
|
|
17815
17817
|
mutation BatchValidateRecipientAddress($ids: [String!]!) {
|
|
17816
17818
|
recipientValidateBatch(ids: $ids) {
|
|
17817
17819
|
...AddressValidationJobFields
|
|
17818
17820
|
}
|
|
17819
17821
|
}
|
|
17820
|
-
`,
|
|
17822
|
+
`, Dc = C`
|
|
17821
17823
|
mutation OverrideRecipientAddress($id: String!) {
|
|
17822
17824
|
recipientOverrideAddress(id: $id) {
|
|
17823
17825
|
id
|
|
@@ -17855,7 +17857,7 @@ const aA = async (n) => {
|
|
|
17855
17857
|
}
|
|
17856
17858
|
})).data?.recipientValidate : void 0, rA = async (n) => {
|
|
17857
17859
|
const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().mutate({
|
|
17858
|
-
mutation:
|
|
17860
|
+
mutation: Fc,
|
|
17859
17861
|
errorPolicy: "all",
|
|
17860
17862
|
fetchPolicy: "network-only",
|
|
17861
17863
|
variables: {
|
|
@@ -17872,7 +17874,7 @@ const aA = async (n) => {
|
|
|
17872
17874
|
if (!t)
|
|
17873
17875
|
return;
|
|
17874
17876
|
(await y.getShadowGraphqlClient().mutate({
|
|
17875
|
-
mutation:
|
|
17877
|
+
mutation: Dc,
|
|
17876
17878
|
errorPolicy: "all",
|
|
17877
17879
|
fetchPolicy: "network-only",
|
|
17878
17880
|
variables: {
|
|
@@ -17903,16 +17905,16 @@ export {
|
|
|
17903
17905
|
Od as ArrayInput,
|
|
17904
17906
|
G as AspectType,
|
|
17905
17907
|
Bt as AssetNotFoundError,
|
|
17906
|
-
|
|
17908
|
+
Pe as AssetType,
|
|
17907
17909
|
xd as BringForwardCommand,
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
+
Dd as BringToBackCommand,
|
|
17911
|
+
Fd as BringToFrontCommand,
|
|
17910
17912
|
Gi as BundleDesignCreationCartAddMode,
|
|
17911
17913
|
O as CanvasCommand,
|
|
17912
|
-
|
|
17914
|
+
Ce as CollectionProduct,
|
|
17913
17915
|
dn as ColorOptionGlobalPropertyHandle,
|
|
17914
17916
|
ko as CommandContext,
|
|
17915
|
-
|
|
17917
|
+
Ie as ConversionDataType,
|
|
17916
17918
|
vc as ConversionLocation,
|
|
17917
17919
|
H as CreateElementCommand,
|
|
17918
17920
|
ni as CreateLayoutCommand,
|
|
@@ -17920,8 +17922,8 @@ export {
|
|
|
17920
17922
|
nc as CurrencyService,
|
|
17921
17923
|
Rt as DeleteElementCommand,
|
|
17922
17924
|
ul as DigitalContentStepHandle,
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
+
Dl as FileUploadGlobalPropertyHandle,
|
|
17926
|
+
we as FlowExecutionNodeResult,
|
|
17925
17927
|
Kl as FlowExecutionResult,
|
|
17926
17928
|
Jl as FlowService,
|
|
17927
17929
|
Qo as FontAlignmentCommand,
|
|
@@ -17939,11 +17941,11 @@ export {
|
|
|
17939
17941
|
An as IntegrationProduct,
|
|
17940
17942
|
qi as IntegrationType,
|
|
17941
17943
|
Ed as LayoutElementFactory,
|
|
17942
|
-
|
|
17944
|
+
D as LayoutElementType,
|
|
17943
17945
|
K as LayoutNotFoundError,
|
|
17944
17946
|
Kt as LayoutRenderingPurpose,
|
|
17945
17947
|
rl as MaterialStepHandle,
|
|
17946
|
-
|
|
17948
|
+
xe as MisconfigurationError,
|
|
17947
17949
|
Wd as MockWorkflowManager,
|
|
17948
17950
|
ol as ModelStepHandle,
|
|
17949
17951
|
hl as ModuleStepHandle,
|
|
@@ -17951,8 +17953,8 @@ export {
|
|
|
17951
17953
|
wi as ObjectInput,
|
|
17952
17954
|
_l as ObjectInputType,
|
|
17953
17955
|
pi as OptionGlobalPropertyHandle,
|
|
17954
|
-
|
|
17955
|
-
|
|
17956
|
+
De as OptionNotFoundError,
|
|
17957
|
+
Dt as ParseError,
|
|
17956
17958
|
sl as PictureStepHandle,
|
|
17957
17959
|
Hi as ProductCameraRig,
|
|
17958
17960
|
Ci as ProductCollection,
|
|
@@ -17995,7 +17997,7 @@ export {
|
|
|
17995
17997
|
od as dataUrlFromExternalUrl,
|
|
17996
17998
|
Gd as deleteBundle,
|
|
17997
17999
|
ra as designService,
|
|
17998
|
-
|
|
18000
|
+
be as determineCorrectFontSizeAndLines,
|
|
17999
18001
|
ri as digitalContentStepService,
|
|
18000
18002
|
At as domParser,
|
|
18001
18003
|
jd as duplicateBundle,
|
|
@@ -18011,7 +18013,7 @@ export {
|
|
|
18011
18013
|
lt as generateSVGWithUnknownColors,
|
|
18012
18014
|
Td as generateStateFromDesignInputSteps,
|
|
18013
18015
|
nA as getAddressValidationJobs,
|
|
18014
|
-
|
|
18016
|
+
Ve as getAttributesFromArrayBuffer,
|
|
18015
18017
|
dd as getAxisAlignedBoundingBox,
|
|
18016
18018
|
dc as getBoundedOffsets,
|
|
18017
18019
|
Vd as getBundleThemeConfiguration,
|
|
@@ -18041,7 +18043,7 @@ export {
|
|
|
18041
18043
|
sc as getWorkflow,
|
|
18042
18044
|
yi as getWorkflows,
|
|
18043
18045
|
y as graphQlManager,
|
|
18044
|
-
|
|
18046
|
+
Ee as illustrationStepService,
|
|
18045
18047
|
ud as isCloseToValue,
|
|
18046
18048
|
Qt as loadFont,
|
|
18047
18049
|
ld as matchHexToPms,
|
|
@@ -18065,8 +18067,8 @@ export {
|
|
|
18065
18067
|
id as registerWindowImplementation,
|
|
18066
18068
|
tn as rehydrateSerializedLayout,
|
|
18067
18069
|
pr as rgbToPms,
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
+
ge as rotateAroundPoint,
|
|
18071
|
+
Fa as sanitizeSvgTree,
|
|
18070
18072
|
sr as setBearerAuthenticationToken,
|
|
18071
18073
|
kn as setCanvasModule,
|
|
18072
18074
|
Wt as shapeStepService,
|