@spiffcommerce/core 40.0.0 → 40.0.1
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.cjs +69 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +640 -624
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { onError as Oi } from "@apollo/client/link/error";
|
|
|
4
4
|
import { renderToStaticMarkup as Ri } from "preact-render-to-string";
|
|
5
5
|
import { removeTypenameFromVariables as $i } from "@apollo/client/link/remove-typename";
|
|
6
6
|
import { orientation as Ui } from "exifr/dist/mini.umd.cjs";
|
|
7
|
-
import { parse as
|
|
7
|
+
import { parse as Bn } from "css";
|
|
8
8
|
import Vi from "fuse.js";
|
|
9
9
|
import { Pith as Ia } from "pith";
|
|
10
10
|
import ca from "lodash.chunk";
|
|
@@ -14,29 +14,29 @@ import { parse as da } from "opentype.js";
|
|
|
14
14
|
import { decode as Li } from "html-entities";
|
|
15
15
|
import zi from "handlebars";
|
|
16
16
|
import { dataUriToBuffer as Gi } from "data-uri-to-buffer";
|
|
17
|
-
import { CognitoIdentityProviderClient as qi, InitiateAuthCommand as
|
|
17
|
+
import { CognitoIdentityProviderClient as qi, InitiateAuthCommand as Wa, RespondToAuthChallengeCommand as Wi } from "@aws-sdk/client-cognito-identity-provider";
|
|
18
18
|
import Hi from "dinero.js";
|
|
19
|
-
import * as
|
|
20
|
-
import
|
|
19
|
+
import * as Ha from "currency-codes";
|
|
20
|
+
import Pn from "lodash.debounce";
|
|
21
21
|
import Kt from "lodash.isequal";
|
|
22
22
|
import { split as ua } from "unicode-default-word-boundary";
|
|
23
|
-
import { toString as
|
|
23
|
+
import { toString as Fn } from "qrcode";
|
|
24
24
|
import ji from "svg-path-bbox";
|
|
25
25
|
import "fs";
|
|
26
26
|
import "path";
|
|
27
27
|
import Yi from "lodash.omit";
|
|
28
|
-
var
|
|
29
|
-
class
|
|
28
|
+
var be = /* @__PURE__ */ ((i) => (i.Data = "Data", i.Font = "Font", i.Frame = "Frame", i.Illustration = "Illustration", i.Image = "Image", i.Model = "Model", i.Material = "Material", i.Color = "Color", i.QuestionnaireCollateral = "QuestionnaireCollateral", i.RequestCollateral = "RequestCollateral", i.SignupCollateral = "SignupCollateral", i.Video = "Video", i.ColorProfile = "ColorProfile", i.Environment = "Environment", i))(be || {}), xn = /* @__PURE__ */ ((i) => (i.AND = "AND", i.OR = "OR", i))(xn || {}), z = /* @__PURE__ */ ((i) => (i.FileUpload = "FileUpload", i.Option = "Option", i.ColorOption = "ColorOption", i.Text = "Text", i))(z || {}), E = /* @__PURE__ */ ((i) => (i.Information = "Information", i.Bulk = "Bulk", i.DigitalContent = "DigitalContent", i.Finish = "Finish", i.Frame = "Frame", i.Illustration = "Illustration", i.Introduction = "Introduction", i.Material = "Material", i.Model = "Model", i.Module = "Module", i.Picture = "Picture", i.Photo = "Photo", i.ProductOverlay = "ProductOverlay", i.Question = "Question", i.Shape = "Shape", i.SilentIllustration = "SilentIllustration", i.Text = "Text", i))(E || {}), Ji = /* @__PURE__ */ ((i) => (i.Color = "Color", i.Colors = "Colors", i.Selection = "Selection", i.Selections = "Selections", i.Text = "Text", i.Upload = "Upload", i))(Ji || {}), _t = /* @__PURE__ */ ((i) => (i.ThreeD = "ThreeD", i.FreeDesign = "FreeDesign", i.Print = "Print", i))(_t || {}), D = /* @__PURE__ */ ((i) => (i.Frame = "frame", i.Group = "group", i.Image = "image", i.Pattern = "pattern", i.Illustration = "illustration", i.Textbox = "textbox", i))(D || {}), Ki = /* @__PURE__ */ ((i) => (i.Default = "Default", i.FirstTransaction = "FirstTransaction", i.OneToOne = "OneToOne", i))(Ki || {}), Dn = /* @__PURE__ */ ((i) => (i.Pending = "Pending", i.Failed = "Failed", i.Validated = "Validated", i.Overridden = "Overridden", i))(Dn || {}), _i = /* @__PURE__ */ ((i) => (i.Hyperlink = "Hyperlink", i.Edit = "Edit", i.Approve = "Approve", i))(_i || {}), Xi = /* @__PURE__ */ ((i) => (i.Hub = "Hub", i.Shopify = "Shopify", i))(Xi || {}), Ba = /* @__PURE__ */ ((i) => (i.AdvancedImageManipulation = "BackgroundRemover", i.ConversionAccelerator = "Conversion Accelerator", i.ProcessBuilder = "ProcessBuilder", i))(Ba || {}), Zi = /* @__PURE__ */ ((i) => (i[i.Orbit = 0] = "Orbit", i[i.Pan = 1] = "Pan", i))(Zi || {}), kn = /* @__PURE__ */ ((i) => (i.Owner = "Owner", i.Approver = "Approver", i.Editor = "Editor", i.Viewer = "Viewer", i))(kn || {}), Tt = /* @__PURE__ */ ((i) => (i.Autosize = "Autosize", i.Traditional = "Traditional", i))(Tt || {}), Y = /* @__PURE__ */ ((i) => (i[i.North = 0] = "North", i[i.Northeast = 1] = "Northeast", i[i.East = 2] = "East", i[i.Southeast = 3] = "Southeast", i[i.South = 4] = "South", i[i.Southwest = 5] = "Southwest", i[i.West = 6] = "West", i[i.Northwest = 7] = "Northwest", i))(Y || {}), tr = /* @__PURE__ */ ((i) => (i.Pixel = "px", i.Millimeter = "mm", i.Centimeter = "cm", i))(tr || {});
|
|
29
|
+
class Mn extends Error {
|
|
30
30
|
constructor(t) {
|
|
31
31
|
super(t), this.name = this.constructor.name;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class ee extends
|
|
34
|
+
class ee extends Mn {
|
|
35
35
|
constructor(t) {
|
|
36
36
|
super(`ConfigurationError - ${t}`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
class
|
|
39
|
+
class Ie extends ee {
|
|
40
40
|
constructor(t) {
|
|
41
41
|
super(`Option not Configured: ${t.stepTitle}`), this.optionId = t?.optionId || "N/A";
|
|
42
42
|
}
|
|
@@ -61,27 +61,27 @@ class At extends ee {
|
|
|
61
61
|
super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class Ne extends Mn {
|
|
65
65
|
constructor(t) {
|
|
66
66
|
super(`ImplementationError - ${t}`);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
class O extends
|
|
69
|
+
class O extends Ne {
|
|
70
70
|
constructor(t) {
|
|
71
71
|
super(`Unhandled Behavior Encountered: ${t}`);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
class xt extends
|
|
74
|
+
class xt extends Ne {
|
|
75
75
|
constructor(t) {
|
|
76
76
|
super(`Parsing Error: ${t}`);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
class pt extends
|
|
79
|
+
class pt extends Ne {
|
|
80
80
|
constructor(t) {
|
|
81
81
|
super(`Client Error: ${t}`);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
class
|
|
84
|
+
class Qe extends Ne {
|
|
85
85
|
constructor(t) {
|
|
86
86
|
super(`Resource Generation Failed: ${t}`);
|
|
87
87
|
}
|
|
@@ -106,7 +106,7 @@ class er {
|
|
|
106
106
|
this.set(t, a);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
class
|
|
109
|
+
class ja {
|
|
110
110
|
constructor() {
|
|
111
111
|
this.storage = /* @__PURE__ */ new Map();
|
|
112
112
|
}
|
|
@@ -131,9 +131,9 @@ class Wa {
|
|
|
131
131
|
}
|
|
132
132
|
const ar = () => {
|
|
133
133
|
try {
|
|
134
|
-
return localStorage ? new er() : new
|
|
134
|
+
return localStorage ? new er() : new ja();
|
|
135
135
|
} catch {
|
|
136
|
-
return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new
|
|
136
|
+
return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new ja();
|
|
137
137
|
}
|
|
138
138
|
}, Q = ar();
|
|
139
139
|
class nr {
|
|
@@ -164,10 +164,10 @@ class nr {
|
|
|
164
164
|
}
|
|
165
165
|
const wt = new nr();
|
|
166
166
|
let Aa, ha;
|
|
167
|
-
function
|
|
167
|
+
function Ad(i) {
|
|
168
168
|
Aa = i;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function hd(i) {
|
|
171
171
|
ha = i;
|
|
172
172
|
}
|
|
173
173
|
function ae() {
|
|
@@ -185,19 +185,19 @@ function nt(i, t) {
|
|
|
185
185
|
}
|
|
186
186
|
return ha(i, t);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
const t =
|
|
188
|
+
const Tn = /* @__PURE__ */ new Map(), Ya = /* @__PURE__ */ new Map(), Ja = /* @__PURE__ */ new Map(), Nn = async (i) => {
|
|
189
|
+
const t = Ya.get(i);
|
|
190
190
|
if (t) return t;
|
|
191
191
|
const a = (async () => {
|
|
192
192
|
const n = await nt(i);
|
|
193
|
-
return
|
|
193
|
+
return Tn.set(i, n.headers?.get("content-type") || ""), await n.arrayBuffer();
|
|
194
194
|
})();
|
|
195
|
-
return
|
|
195
|
+
return Ya.set(i, a), a;
|
|
196
196
|
}, ir = async (i) => {
|
|
197
|
-
const t =
|
|
197
|
+
const t = Ja.get(i);
|
|
198
198
|
if (t) return t;
|
|
199
199
|
const a = (async () => await (await nt(i)).text())();
|
|
200
|
-
return
|
|
200
|
+
return Ja.set(i, a), a;
|
|
201
201
|
}, Nt = (i) => i.every((t) => t !== "undefined"), ce = (i) => Nt([typeof document]) ? document.createElement(i) : ae().document.createElement(i), rr = (i, t) => {
|
|
202
202
|
if (Nt([typeof document]))
|
|
203
203
|
return document.createElementNS(i, t);
|
|
@@ -208,8 +208,8 @@ const kn = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map(), ja = /* @_
|
|
|
208
208
|
return new DOMParser();
|
|
209
209
|
const i = ae();
|
|
210
210
|
return new i.DOMParser();
|
|
211
|
-
}, sr = () => Nt([typeof DOMParser]) ? DOMParser : ae().DOMParser,
|
|
212
|
-
t ?
|
|
211
|
+
}, sr = () => Nt([typeof DOMParser]) ? DOMParser : ae().DOMParser, Oe = (i, t) => new Promise((e, a) => {
|
|
212
|
+
t ? Nn(i).then(e).catch(a) : nt(i).then((n) => {
|
|
213
213
|
n.arrayBuffer().then(e).catch(a);
|
|
214
214
|
}).catch((n) => {
|
|
215
215
|
a(n);
|
|
@@ -218,21 +218,21 @@ const kn = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map(), ja = /* @_
|
|
|
218
218
|
t ? ir(i).then(e).catch(a) : nt(i).then((n) => {
|
|
219
219
|
n.text().then(e).catch(a);
|
|
220
220
|
}).catch(a);
|
|
221
|
-
}),
|
|
221
|
+
}), Qn = (i) => Ri(i), He = /* @__PURE__ */ new Map(), or = async (i, t) => {
|
|
222
222
|
if (Nt([typeof FontFace])) {
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
223
|
+
if (He.has(t))
|
|
224
|
+
return He.get(t);
|
|
225
225
|
const e = i.names.fullName.en, a = new FontFace(e, `url(${t})`);
|
|
226
226
|
document.fonts.add(a);
|
|
227
227
|
const n = a.load();
|
|
228
|
-
return
|
|
228
|
+
return He.set(t, n), n;
|
|
229
229
|
}
|
|
230
230
|
}, Pt = () => {
|
|
231
231
|
if (Nt([typeof XMLSerializer]))
|
|
232
232
|
return new XMLSerializer();
|
|
233
233
|
const i = ae();
|
|
234
234
|
return new i.XMLSerializer();
|
|
235
|
-
},
|
|
235
|
+
}, Ka = (i) => btoa(i), Re = (i) => {
|
|
236
236
|
function t() {
|
|
237
237
|
const a = new Uint8Array(i), n = 4;
|
|
238
238
|
if (a.length >= n) {
|
|
@@ -258,8 +258,8 @@ const kn = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map(), ja = /* @_
|
|
|
258
258
|
}
|
|
259
259
|
const e = t();
|
|
260
260
|
return e || "image/svg+xml";
|
|
261
|
-
},
|
|
262
|
-
const t = await
|
|
261
|
+
}, gd = async (i) => {
|
|
262
|
+
const t = await Nn(i), e = Tn.get(i) || Re(t);
|
|
263
263
|
return await dr(new Blob([t], { type: e }));
|
|
264
264
|
}, lr = (i) => {
|
|
265
265
|
let t = "";
|
|
@@ -268,9 +268,9 @@ const kn = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map(), ja = /* @_
|
|
|
268
268
|
t += String.fromCharCode(i[a]);
|
|
269
269
|
return t;
|
|
270
270
|
}, cr = async (i) => {
|
|
271
|
-
const t =
|
|
271
|
+
const t = Re(i), e = new Uint8Array(i), a = lr(e), n = btoa(a);
|
|
272
272
|
return `data:${t};base64,${n}`;
|
|
273
|
-
}, Pa = (i) => `data:image/svg+xml;base64,${btoa(i)}`,
|
|
273
|
+
}, Pa = (i) => `data:image/svg+xml;base64,${btoa(i)}`, On = (i) => {
|
|
274
274
|
const t = i.replace(/\r?\n/g, ""), e = t.indexOf(",");
|
|
275
275
|
if (e === -1 || e <= 4)
|
|
276
276
|
throw new TypeError("malformed data: URI");
|
|
@@ -293,9 +293,9 @@ let ur, Fa;
|
|
|
293
293
|
const Ar = (i) => {
|
|
294
294
|
Fa = i;
|
|
295
295
|
}, hr = () => Fa;
|
|
296
|
-
let
|
|
296
|
+
let Rn;
|
|
297
297
|
const gr = (i) => {
|
|
298
|
-
|
|
298
|
+
Rn = i;
|
|
299
299
|
}, mr = () => new Promise((i) => {
|
|
300
300
|
const t = wt.getHubUrl(), e = (a) => {
|
|
301
301
|
a.origin === t && (window.removeEventListener("message", e), i(a.data));
|
|
@@ -305,7 +305,7 @@ const gr = (i) => {
|
|
|
305
305
|
const i = {
|
|
306
306
|
applicationKey: Fa,
|
|
307
307
|
customerToken: ur,
|
|
308
|
-
bearer:
|
|
308
|
+
bearer: Rn
|
|
309
309
|
};
|
|
310
310
|
return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await mr(), ...i } : i;
|
|
311
311
|
};
|
|
@@ -376,8 +376,8 @@ const yt = (i, t, e) => {
|
|
|
376
376
|
if (ga !== void 0)
|
|
377
377
|
return ga(i, t, e);
|
|
378
378
|
try {
|
|
379
|
-
const a =
|
|
380
|
-
return
|
|
379
|
+
const a = Un(!0);
|
|
380
|
+
return $n(a), a.createCanvas(i, t, e);
|
|
381
381
|
} catch {
|
|
382
382
|
throw new Error("Canvas module not set");
|
|
383
383
|
}
|
|
@@ -385,16 +385,16 @@ const yt = (i, t, e) => {
|
|
|
385
385
|
if (ma !== void 0)
|
|
386
386
|
return ma(i, t);
|
|
387
387
|
try {
|
|
388
|
-
const e =
|
|
389
|
-
return
|
|
388
|
+
const e = Un(!0);
|
|
389
|
+
return $n(e), e.loadImage(i, t);
|
|
390
390
|
} catch {
|
|
391
391
|
throw new Error("Canvas module not set");
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
function
|
|
394
|
+
function $n(i) {
|
|
395
395
|
ga = i?.createCanvas, ma = i?.loadImage;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Un(i) {
|
|
398
398
|
try {
|
|
399
399
|
if (document.createElement("canvas").getContext("2d"))
|
|
400
400
|
return {
|
|
@@ -413,13 +413,13 @@ function Rn(i) {
|
|
|
413
413
|
throw t;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
let
|
|
416
|
+
let je;
|
|
417
417
|
function xa() {
|
|
418
|
-
return
|
|
418
|
+
return je === void 0 && (je = sr()), je;
|
|
419
419
|
}
|
|
420
420
|
let de = null;
|
|
421
421
|
const wr = (i) => new Promise((t) => {
|
|
422
|
-
if (
|
|
422
|
+
if (Re(i) !== "image/jpeg")
|
|
423
423
|
return t(1);
|
|
424
424
|
Ui(i).then((a) => t(a || 1)).catch(() => t(1));
|
|
425
425
|
}), yr = async () => {
|
|
@@ -461,9 +461,9 @@ const wr = (i) => new Promise((t) => {
|
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
463
|
return d.drawImage(e, 0, 0, o, l), c;
|
|
464
|
-
},
|
|
464
|
+
}, $e = async (i) => {
|
|
465
465
|
const t = await vr(i);
|
|
466
|
-
return
|
|
466
|
+
return Re(i) === "image/jpeg" ? {
|
|
467
467
|
dataUrl: t.toDataURL("image/jpeg", 1),
|
|
468
468
|
height: t.height,
|
|
469
469
|
width: t.width
|
|
@@ -3156,12 +3156,12 @@ const wr = (i) => new Promise((t) => {
|
|
|
3156
3156
|
"3E2B2E",
|
|
3157
3157
|
"101820",
|
|
3158
3158
|
"3D3935"
|
|
3159
|
-
],
|
|
3159
|
+
], Ye = kt.map((i) => [
|
|
3160
3160
|
parseInt(i.substring(0, 2), 16),
|
|
3161
3161
|
parseInt(i.substring(2, 4), 16),
|
|
3162
3162
|
parseInt(i.substring(4, 6), 16)
|
|
3163
3163
|
]);
|
|
3164
|
-
function
|
|
3164
|
+
function md(i) {
|
|
3165
3165
|
const t = Zt.indexOf(i);
|
|
3166
3166
|
return t >= 0 ? kt[t] : "";
|
|
3167
3167
|
}
|
|
@@ -3169,7 +3169,7 @@ function Er(i) {
|
|
|
3169
3169
|
const t = kt.indexOf(i);
|
|
3170
3170
|
return t >= 0 ? Zt[t] : "";
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function pd(i, t = 64) {
|
|
3173
3173
|
const e = [], a = [], n = Er(i);
|
|
3174
3174
|
n && e.push({
|
|
3175
3175
|
pms: n,
|
|
@@ -3179,7 +3179,7 @@ function md(i, t = 64) {
|
|
|
3179
3179
|
const r = parseInt(i.substring(0, 2), 16), s = parseInt(i.substring(2, 4), 16), o = parseInt(i.substring(4, 6), 16);
|
|
3180
3180
|
let l, c, d;
|
|
3181
3181
|
for (let u = 0; u < kt.length; u++) {
|
|
3182
|
-
l =
|
|
3182
|
+
l = Ye[u][0], c = Ye[u][1], d = Ye[u][2];
|
|
3183
3183
|
const A = Math.sqrt(Math.pow(r - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
|
|
3184
3184
|
a.push(A);
|
|
3185
3185
|
}
|
|
@@ -3188,29 +3188,29 @@ function md(i, t = 64) {
|
|
|
3188
3188
|
return e.sort((u, A) => u.distance - A.distance);
|
|
3189
3189
|
}
|
|
3190
3190
|
const br = Zt.map((i, t) => ({ pms: i, hex: kt[t] })), Ir = new Vi(br, { keys: ["pms"] });
|
|
3191
|
-
function
|
|
3191
|
+
function fd(i, t) {
|
|
3192
3192
|
return Ir.search(i, t ? { limit: t } : void 0);
|
|
3193
3193
|
}
|
|
3194
3194
|
let Rt = null;
|
|
3195
3195
|
function Br(i) {
|
|
3196
3196
|
if (i.startsWith("#"))
|
|
3197
|
-
return
|
|
3197
|
+
return _a(i);
|
|
3198
3198
|
if (!document)
|
|
3199
3199
|
throw new Error("browserColorToHex is only supported on browsers");
|
|
3200
3200
|
if (Rt || (Rt = document.createElement("canvas").getContext("2d")), !Rt)
|
|
3201
3201
|
throw new Error("Failed to create canvas context required to convert colors");
|
|
3202
3202
|
Rt.fillStyle = i;
|
|
3203
|
-
const t =
|
|
3203
|
+
const t = _a(Rt.fillStyle);
|
|
3204
3204
|
return t || console.error(`Unknown browser color ${i}`), t;
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function _a(i) {
|
|
3207
3207
|
const t = i.substring(1).toUpperCase();
|
|
3208
3208
|
return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
|
|
3209
3209
|
}
|
|
3210
3210
|
const ue = (i) => {
|
|
3211
|
-
const t =
|
|
3211
|
+
const t = Vn(i.spotColor);
|
|
3212
3212
|
return t ? `${i.browserValue} ${t}` : i.browserValue;
|
|
3213
|
-
},
|
|
3213
|
+
}, Vn = (i) => {
|
|
3214
3214
|
if (!i)
|
|
3215
3215
|
return "";
|
|
3216
3216
|
if (i.profileName.includes("/") && i.profileName.includes(".icc")) {
|
|
@@ -3218,7 +3218,7 @@ const ue = (i) => {
|
|
|
3218
3218
|
return `icc-named-color(${t.slice(e + 1).slice(0, -4)}, ${i.namedColor})`;
|
|
3219
3219
|
}
|
|
3220
3220
|
return `icc-named-color(${i.profileName}, ${i.namedColor})`;
|
|
3221
|
-
},
|
|
3221
|
+
}, Xa = (i) => {
|
|
3222
3222
|
const t = i.split(/[ ](?=[^)]*?(?:\(|$))/);
|
|
3223
3223
|
if (t.length === 0)
|
|
3224
3224
|
return { browserValue: "#000000" };
|
|
@@ -3246,13 +3246,13 @@ const ue = (i) => {
|
|
|
3246
3246
|
"tspan"
|
|
3247
3247
|
], Fr = ["fill", "stroke"], Mt = (i, t) => {
|
|
3248
3248
|
t(i), i.children.length > 0 && Array.from(i.children).forEach((e) => Mt(e, t));
|
|
3249
|
-
},
|
|
3249
|
+
}, Ln = (i, t) => {
|
|
3250
3250
|
const e = t(i);
|
|
3251
3251
|
if (e)
|
|
3252
3252
|
return e;
|
|
3253
3253
|
const a = i.parentElement;
|
|
3254
3254
|
if (a)
|
|
3255
|
-
return
|
|
3255
|
+
return Ln(a, t);
|
|
3256
3256
|
}, xr = (i, t) => {
|
|
3257
3257
|
try {
|
|
3258
3258
|
return i.matches(t);
|
|
@@ -3269,7 +3269,7 @@ const ue = (i) => {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
if (a.tagName === "style") {
|
|
3271
3271
|
try {
|
|
3272
|
-
|
|
3272
|
+
Bn(a.innerHTML).stylesheet?.rules.forEach((s) => {
|
|
3273
3273
|
e.push(s);
|
|
3274
3274
|
}), a.remove();
|
|
3275
3275
|
} catch (r) {
|
|
@@ -3301,9 +3301,9 @@ const ue = (i) => {
|
|
|
3301
3301
|
const t = /pt|pc|mm|cm|in/gm, e = i.getAttribute("viewBox"), a = i.getAttribute("width"), n = i.getAttribute("height");
|
|
3302
3302
|
if (!e) throw new Error("viewBox not specified on SVG!");
|
|
3303
3303
|
a && i.setAttribute("width", a.replace(t, "")), n && i.setAttribute("height", n.replace(t, ""));
|
|
3304
|
-
},
|
|
3304
|
+
}, zn = (i) => ht().parseFromString(i, "image/svg+xml").firstElementChild, kr = (i, t, e) => {
|
|
3305
3305
|
i.setAttribute("height", `${e}px`), i.setAttribute("width", `${t}px`);
|
|
3306
|
-
},
|
|
3306
|
+
}, Gn = (i, t, e) => {
|
|
3307
3307
|
Mt(i, (a) => {
|
|
3308
3308
|
const n = a.attributes.getNamedItem("fill");
|
|
3309
3309
|
n && n.value !== "none" && a.classList.forEach((s) => {
|
|
@@ -3343,16 +3343,16 @@ const ue = (i) => {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
});
|
|
3345
3345
|
});
|
|
3346
|
-
},
|
|
3347
|
-
const r =
|
|
3346
|
+
}, qn = (i) => Pt().serializeToString(i), ka = (i, t, e, a, n) => {
|
|
3347
|
+
const r = zn(i);
|
|
3348
3348
|
if (!r)
|
|
3349
3349
|
throw new Error("Failed to read SVG.");
|
|
3350
|
-
return kr(r, t, e),
|
|
3350
|
+
return kr(r, t, e), Gn(r, a, n), qn(r);
|
|
3351
3351
|
}, Ma = (i, t, e) => {
|
|
3352
|
-
const a =
|
|
3352
|
+
const a = zn(i);
|
|
3353
3353
|
if (!a)
|
|
3354
3354
|
throw new Error("Failed to read SVG.");
|
|
3355
|
-
return
|
|
3355
|
+
return Gn(a, t, e), qn(a);
|
|
3356
3356
|
}, Mr = (i) => {
|
|
3357
3357
|
const t = /<svg.*<\/svg>/s, e = i.match(t) || [], a = e?.length > 0 ? e[0] : "";
|
|
3358
3358
|
return ht().parseFromString(a, "image/svg+xml");
|
|
@@ -3367,7 +3367,7 @@ const ue = (i) => {
|
|
|
3367
3367
|
let c = "black";
|
|
3368
3368
|
const d = s.parentElement;
|
|
3369
3369
|
if (d) {
|
|
3370
|
-
const u =
|
|
3370
|
+
const u = Ln(d, (A) => {
|
|
3371
3371
|
const g = A.style.fill;
|
|
3372
3372
|
if (g)
|
|
3373
3373
|
return g;
|
|
@@ -3381,12 +3381,12 @@ const ue = (i) => {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
const o = s.attributes.getNamedItem("fill");
|
|
3383
3383
|
if (o && o.value !== "none" && !o.value.startsWith("url(")) {
|
|
3384
|
-
const c =
|
|
3384
|
+
const c = Xa(o.value), d = c.browserValue.replace(/\W/g, ""), u = `spiff-fill-${d}`;
|
|
3385
3385
|
s.setAttribute("fill", c.browserValue), s.classList.add(u), a[d] = c;
|
|
3386
3386
|
}
|
|
3387
3387
|
const l = s.attributes.getNamedItem("stroke");
|
|
3388
3388
|
if (l && l.value !== "none" && !l.value.startsWith("url(")) {
|
|
3389
|
-
const c =
|
|
3389
|
+
const c = Xa(l.value), d = c.browserValue.replace(/\W/g, ""), u = `spiff-stroke-${d}`;
|
|
3390
3390
|
s.classList.add(u), s.setAttribute("stroke", c.browserValue), a[d] = c;
|
|
3391
3391
|
}
|
|
3392
3392
|
});
|
|
@@ -3451,7 +3451,7 @@ const ue = (i) => {
|
|
|
3451
3451
|
${i && "...AssetMetadataFields" || ""}
|
|
3452
3452
|
|
|
3453
3453
|
}
|
|
3454
|
-
`,
|
|
3454
|
+
`, Wn = C`
|
|
3455
3455
|
fragment MaterialFields on Material {
|
|
3456
3456
|
id
|
|
3457
3457
|
name
|
|
@@ -3499,7 +3499,7 @@ const ue = (i) => {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
3501
|
`, Qr = C`
|
|
3502
|
-
${
|
|
3502
|
+
${Wn}
|
|
3503
3503
|
query GetMaterials($ids: [String]) {
|
|
3504
3504
|
materials(id: $ids) {
|
|
3505
3505
|
...MaterialFields
|
|
@@ -3533,7 +3533,7 @@ const ue = (i) => {
|
|
|
3533
3533
|
...AssetFields
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
`,
|
|
3536
|
+
`, Be = async (i, t = !0) => (await S.getShadowGraphqlClient().query({
|
|
3537
3537
|
query: C`
|
|
3538
3538
|
${ie(!1, t)}
|
|
3539
3539
|
query GetAssets($keys: [String]!) {
|
|
@@ -3568,7 +3568,7 @@ const ue = (i) => {
|
|
|
3568
3568
|
class Lr {
|
|
3569
3569
|
constructor() {
|
|
3570
3570
|
this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
|
|
3571
|
-
const e = await t.arrayBuffer(), a = await
|
|
3571
|
+
const e = await t.arrayBuffer(), a = await $e(e), n = (r, s) => {
|
|
3572
3572
|
const o = atob(r.split(",")[1]), l = [];
|
|
3573
3573
|
for (let c = 0; c < o.length; c++)
|
|
3574
3574
|
l.push(o.charCodeAt(c));
|
|
@@ -3589,14 +3589,14 @@ class Lr {
|
|
|
3589
3589
|
if (!n) throw new O("Failed to get asset from cache!");
|
|
3590
3590
|
return n;
|
|
3591
3591
|
}
|
|
3592
|
-
const a = (async () => (await
|
|
3592
|
+
const a = (async () => (await Be([t]))[0])();
|
|
3593
3593
|
return this.cache.set(t, a), a;
|
|
3594
3594
|
}
|
|
3595
3595
|
/**
|
|
3596
3596
|
* Retrieves the asset from the server, bypassing cache (but still writing the result to cache)
|
|
3597
3597
|
*/
|
|
3598
3598
|
async getFromServer(t) {
|
|
3599
|
-
const a = (async () => (await
|
|
3599
|
+
const a = (async () => (await Be([t]))[0])();
|
|
3600
3600
|
return this.cache.set(t, a), a;
|
|
3601
3601
|
}
|
|
3602
3602
|
keyFromURL(t) {
|
|
@@ -3655,7 +3655,7 @@ class Lr {
|
|
|
3655
3655
|
}, a, n);
|
|
3656
3656
|
}
|
|
3657
3657
|
async uploadFile(t, e) {
|
|
3658
|
-
const n = this.isRaster(t) ?
|
|
3658
|
+
const n = this.isRaster(t) ? be.Image : be.Illustration, r = await this.loadImageAsFileInfo(t);
|
|
3659
3659
|
return await this.uploadAssetWithProgress(r, n, e, !0);
|
|
3660
3660
|
}
|
|
3661
3661
|
async removeBackgroundFromAsset(t) {
|
|
@@ -3895,7 +3895,7 @@ class zr {
|
|
|
3895
3895
|
this.disabled = t;
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
|
-
const
|
|
3898
|
+
const Pe = new zr(), Ta = (i, t = 512, e, a) => {
|
|
3899
3899
|
const n = typeof i == "string" ? i : i.fileLink;
|
|
3900
3900
|
if (!n)
|
|
3901
3901
|
return;
|
|
@@ -3958,7 +3958,7 @@ const Fe = new zr(), Ta = (i, t = 512, e, a) => {
|
|
|
3958
3958
|
const t = await S.getShadowGraphqlClient().query({
|
|
3959
3959
|
query: C`
|
|
3960
3960
|
${ie(!1, !1)}
|
|
3961
|
-
${
|
|
3961
|
+
${Wn}
|
|
3962
3962
|
${qr}
|
|
3963
3963
|
query GetOptions($ids: [String]!) {
|
|
3964
3964
|
options(ids: $ids) {
|
|
@@ -3976,19 +3976,19 @@ const Fe = new zr(), Ta = (i, t = 512, e, a) => {
|
|
|
3976
3976
|
a.asset && W.cacheAsset(a.asset), a.thumbnail && W.cacheAsset(a.thumbnail), a.material && W.cacheMaterial(a.material);
|
|
3977
3977
|
});
|
|
3978
3978
|
}), t.data.options;
|
|
3979
|
-
}, jr = async (i, t) => (await t).find((a) => a.id === i),
|
|
3980
|
-
const t = new Map(i.map((n) => [n,
|
|
3979
|
+
}, jr = async (i, t) => (await t).find((a) => a.id === i), Je = async (i) => {
|
|
3980
|
+
const t = new Map(i.map((n) => [n, Pe.get({ id: n })])), e = i.filter((n) => t.get(n) === void 0);
|
|
3981
3981
|
if (e.length > 0) {
|
|
3982
3982
|
const n = Hr(e);
|
|
3983
3983
|
e.forEach(
|
|
3984
|
-
(r) => t.set(r,
|
|
3984
|
+
(r) => t.set(r, Pe.set({ id: r }, jr(r, n)))
|
|
3985
3985
|
);
|
|
3986
3986
|
}
|
|
3987
3987
|
return (await Promise.all(i.map((n) => t.get(n)))).filter((n) => n !== void 0);
|
|
3988
|
-
},
|
|
3988
|
+
}, Za = (i) => {
|
|
3989
3989
|
if (!(!i || !i.fileLink))
|
|
3990
3990
|
return Ta(i, 512, "webp");
|
|
3991
|
-
},
|
|
3991
|
+
}, tn = (i, t, e) => {
|
|
3992
3992
|
if (i.length === 1)
|
|
3993
3993
|
return i[0];
|
|
3994
3994
|
if (e) {
|
|
@@ -4004,10 +4004,10 @@ class Yr {
|
|
|
4004
4004
|
this.getDefaultVariant = async (t, e) => {
|
|
4005
4005
|
const a = t?.variants;
|
|
4006
4006
|
if (a)
|
|
4007
|
-
return
|
|
4007
|
+
return tn(a, t, e);
|
|
4008
4008
|
const r = (await this.getOption(t.id))?.variants;
|
|
4009
4009
|
if (r)
|
|
4010
|
-
return
|
|
4010
|
+
return tn(r, t, e);
|
|
4011
4011
|
}, this.getTagsForAssets = async (t) => {
|
|
4012
4012
|
const e = t?.map((s) => s.asset?.key) || [], a = t?.map((s) => s.material?.id) || [], n = [...e, ...a].filter((s) => !!s);
|
|
4013
4013
|
return n.length === 0 ? [] : (await S.getShadowGraphqlClient().query({
|
|
@@ -4024,10 +4024,10 @@ class Yr {
|
|
|
4024
4024
|
* @param id The option ID to be retrieved.
|
|
4025
4025
|
*/
|
|
4026
4026
|
async getOption(t) {
|
|
4027
|
-
return t ? (await
|
|
4027
|
+
return t ? (await Je([t]))[0] : void 0;
|
|
4028
4028
|
}
|
|
4029
4029
|
async getOptions(t) {
|
|
4030
|
-
return
|
|
4030
|
+
return Je(t);
|
|
4031
4031
|
}
|
|
4032
4032
|
async getOptionForStep(t) {
|
|
4033
4033
|
return this.ensureFullOption(t.option);
|
|
@@ -4038,7 +4038,7 @@ class Yr {
|
|
|
4038
4038
|
* @returns The full option resource, or `undefined` if invalid.
|
|
4039
4039
|
*/
|
|
4040
4040
|
async ensureFullOption(t) {
|
|
4041
|
-
return t?.variants ? t : t?.id ? (await
|
|
4041
|
+
return t?.variants ? t : t?.id ? (await Je([t.id]))[0] : void 0;
|
|
4042
4042
|
}
|
|
4043
4043
|
/**
|
|
4044
4044
|
* Returns the URL of the image to be used for a given variant. The priority is:
|
|
@@ -4050,11 +4050,11 @@ class Yr {
|
|
|
4050
4050
|
* @returns A promise that resolves to the URL of the image to be used for the given variant, or an empty string if no image is available.
|
|
4051
4051
|
*/
|
|
4052
4052
|
async getAssetTileImageForVariant(t) {
|
|
4053
|
-
const e =
|
|
4053
|
+
const e = Za(t.thumbnail) ?? Za(t.asset);
|
|
4054
4054
|
return e || (t.material ? t.material.id : "");
|
|
4055
4055
|
}
|
|
4056
4056
|
}
|
|
4057
|
-
const B = new Yr(),
|
|
4057
|
+
const B = new Yr(), Hn = C`
|
|
4058
4058
|
fragment ActiveIntegrationFields on Integration {
|
|
4059
4059
|
id
|
|
4060
4060
|
logo
|
|
@@ -4074,7 +4074,7 @@ const B = new Yr(), qn = C`
|
|
|
4074
4074
|
beta
|
|
4075
4075
|
}
|
|
4076
4076
|
}
|
|
4077
|
-
`,
|
|
4077
|
+
`, Ue = C`
|
|
4078
4078
|
fragment AdditionalIntegrationProductFields on IntegrationProduct {
|
|
4079
4079
|
id
|
|
4080
4080
|
product {
|
|
@@ -4092,7 +4092,7 @@ const B = new Yr(), qn = C`
|
|
|
4092
4092
|
preloadImageUrl
|
|
4093
4093
|
}
|
|
4094
4094
|
}
|
|
4095
|
-
`,
|
|
4095
|
+
`, jn = C`
|
|
4096
4096
|
fragment RecipientFields on Recipient {
|
|
4097
4097
|
id
|
|
4098
4098
|
firstName
|
|
@@ -4143,7 +4143,7 @@ const B = new Yr(), qn = C`
|
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
4145
|
`, Jr = C`
|
|
4146
|
-
${
|
|
4146
|
+
${jn}
|
|
4147
4147
|
mutation CreateTransactions(
|
|
4148
4148
|
$inputs: [TransactionCreateInput]!
|
|
4149
4149
|
$marketplaceThemeInstallId: String
|
|
@@ -4171,7 +4171,7 @@ const B = new Yr(), qn = C`
|
|
|
4171
4171
|
integrationProductId
|
|
4172
4172
|
}
|
|
4173
4173
|
}
|
|
4174
|
-
`,
|
|
4174
|
+
`, Yn = C`
|
|
4175
4175
|
fragment StakeholderFields on Stakeholder {
|
|
4176
4176
|
id
|
|
4177
4177
|
type
|
|
@@ -4179,7 +4179,7 @@ const B = new Yr(), qn = C`
|
|
|
4179
4179
|
authorizationNote
|
|
4180
4180
|
authorizationStatus
|
|
4181
4181
|
}
|
|
4182
|
-
`,
|
|
4182
|
+
`, Jn = C`
|
|
4183
4183
|
fragment TransactionShareActionFields on TransactionShareAction {
|
|
4184
4184
|
id
|
|
4185
4185
|
title
|
|
@@ -4188,10 +4188,10 @@ const B = new Yr(), qn = C`
|
|
|
4188
4188
|
precedence
|
|
4189
4189
|
url
|
|
4190
4190
|
}
|
|
4191
|
-
`,
|
|
4192
|
-
${
|
|
4191
|
+
`, Kn = C`
|
|
4192
|
+
${Ue}
|
|
4193
4193
|
${re}
|
|
4194
|
-
${
|
|
4194
|
+
${Hn}
|
|
4195
4195
|
query ReadIntegrationProducts($ids: [String!]!) {
|
|
4196
4196
|
integrationProducts(ids: $ids) {
|
|
4197
4197
|
id
|
|
@@ -4277,9 +4277,9 @@ const B = new Yr(), qn = C`
|
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
`, Kr = C`
|
|
4280
|
-
${
|
|
4280
|
+
${Yn}
|
|
4281
|
+
${Jn}
|
|
4281
4282
|
${jn}
|
|
4282
|
-
${Wn}
|
|
4283
4283
|
query ReadTransactions($ids: [String]!) {
|
|
4284
4284
|
transactions(ids: $ids) {
|
|
4285
4285
|
customLogoLink
|
|
@@ -4413,7 +4413,7 @@ const B = new Yr(), qn = C`
|
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
4415
|
`, as = C`
|
|
4416
|
-
${
|
|
4416
|
+
${Jn}
|
|
4417
4417
|
query ReadTransactionForShareActions($id: String!) {
|
|
4418
4418
|
transactions(ids: [$id]) {
|
|
4419
4419
|
id
|
|
@@ -4427,8 +4427,8 @@ const B = new Yr(), qn = C`
|
|
|
4427
4427
|
query ConfirmWorkflowStates($transactions: [TransactionConfirmInput!]!) {
|
|
4428
4428
|
transactionConfirmWorkflowStates(transactions: $transactions)
|
|
4429
4429
|
}
|
|
4430
|
-
`,
|
|
4431
|
-
${
|
|
4430
|
+
`, _n = (i) => C`
|
|
4431
|
+
${Ue}
|
|
4432
4432
|
fragment IntegrationProductFields on IntegrationProduct {
|
|
4433
4433
|
id
|
|
4434
4434
|
externalProductId
|
|
@@ -4507,14 +4507,14 @@ const B = new Yr(), qn = C`
|
|
|
4507
4507
|
}
|
|
4508
4508
|
}
|
|
4509
4509
|
`, is = (i) => C`
|
|
4510
|
-
${
|
|
4510
|
+
${_n(i)}
|
|
4511
4511
|
query GetIntegrationProducts($ids: [String!]!) {
|
|
4512
4512
|
integrationProducts(ids: $ids) {
|
|
4513
4513
|
...IntegrationProductFields
|
|
4514
4514
|
}
|
|
4515
4515
|
}
|
|
4516
4516
|
`, rs = (i) => C`
|
|
4517
|
-
${
|
|
4517
|
+
${_n(i)}
|
|
4518
4518
|
query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
|
|
4519
4519
|
integrationProductFromExternalIds(
|
|
4520
4520
|
externalIntegrationId: $externalIntegrationId
|
|
@@ -4524,7 +4524,7 @@ const B = new Yr(), qn = C`
|
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
4526
4526
|
`, ss = C`
|
|
4527
|
-
${
|
|
4527
|
+
${Yn}
|
|
4528
4528
|
query ReadTransactionForStakeholders($id: String!) {
|
|
4529
4529
|
transactions(ids: [$id]) {
|
|
4530
4530
|
stakeholders {
|
|
@@ -5065,7 +5065,7 @@ const B = new Yr(), qn = C`
|
|
|
5065
5065
|
}
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
|
-
`,
|
|
5068
|
+
`, Ve = C`
|
|
5069
5069
|
${re}
|
|
5070
5070
|
fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
|
|
5071
5071
|
id
|
|
@@ -5134,15 +5134,15 @@ const B = new Yr(), qn = C`
|
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
5136
|
`, hs = C`
|
|
5137
|
-
${
|
|
5137
|
+
${Ve}
|
|
5138
5138
|
query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
|
|
5139
5139
|
marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
|
|
5140
5140
|
...MarketplaceThemeInstallConfigurationFields
|
|
5141
5141
|
}
|
|
5142
5142
|
}
|
|
5143
5143
|
`, gs = C`
|
|
5144
|
-
${
|
|
5145
|
-
${
|
|
5144
|
+
${Hn}
|
|
5145
|
+
${Ve}
|
|
5146
5146
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
|
5147
5147
|
currentIntegration {
|
|
5148
5148
|
id
|
|
@@ -5154,7 +5154,7 @@ const B = new Yr(), qn = C`
|
|
|
5154
5154
|
}
|
|
5155
5155
|
}
|
|
5156
5156
|
`, ms = C`
|
|
5157
|
-
${
|
|
5157
|
+
${Ve}
|
|
5158
5158
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
|
5159
5159
|
transactions(ids: [$id]) {
|
|
5160
5160
|
marketplaceThemeInstallConfiguration(raw: false) {
|
|
@@ -5163,7 +5163,7 @@ const B = new Yr(), qn = C`
|
|
|
5163
5163
|
}
|
|
5164
5164
|
}
|
|
5165
5165
|
`, ps = C`
|
|
5166
|
-
${
|
|
5166
|
+
${Ve}
|
|
5167
5167
|
query ReadBundleForMarketplaceTheme($id: String!) {
|
|
5168
5168
|
bundles(ids: [$id]) {
|
|
5169
5169
|
marketplaceThemeInstallConfiguration(raw: false) {
|
|
@@ -5186,7 +5186,7 @@ const B = new Yr(), qn = C`
|
|
|
5186
5186
|
timestamp
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
5189
|
-
`,
|
|
5189
|
+
`, Ke = [E.SilentIllustration, E.ProductOverlay], en = (i) => {
|
|
5190
5190
|
const t = [];
|
|
5191
5191
|
for (const a of i.steps) {
|
|
5192
5192
|
const n = ws(a.stepName, i.stepGroups);
|
|
@@ -5195,11 +5195,11 @@ const B = new Yr(), qn = C`
|
|
|
5195
5195
|
"Workflow step does not belong to a group, all steps must belong to a group. Step: " + a.stepName
|
|
5196
5196
|
);
|
|
5197
5197
|
const r = t.find((s) => s.name === n.name);
|
|
5198
|
-
r ?
|
|
5198
|
+
r ? Ke.includes(a.type) ? r.silentSteps.push(a) : r.renderableSteps.push(a) : t.push({
|
|
5199
5199
|
name: n.name,
|
|
5200
5200
|
title: n.name,
|
|
5201
|
-
renderableSteps:
|
|
5202
|
-
silentSteps:
|
|
5201
|
+
renderableSteps: Ke.includes(a.type) ? [] : [a],
|
|
5202
|
+
silentSteps: Ke.includes(a.type) ? [a] : []
|
|
5203
5203
|
});
|
|
5204
5204
|
}
|
|
5205
5205
|
const e = "workflow.steps.finish.confirmDesign";
|
|
@@ -5258,12 +5258,12 @@ const B = new Yr(), qn = C`
|
|
|
5258
5258
|
);
|
|
5259
5259
|
return r;
|
|
5260
5260
|
};
|
|
5261
|
-
class
|
|
5261
|
+
class Na {
|
|
5262
5262
|
constructor() {
|
|
5263
5263
|
this.timestamp = Date.now();
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
5266
|
-
class
|
|
5266
|
+
class Qa {
|
|
5267
5267
|
/**
|
|
5268
5268
|
* Constructs a new promise queue.
|
|
5269
5269
|
* @param queueMaxSize An optional maximum size, when the max size is hit.
|
|
@@ -5358,7 +5358,7 @@ const N = () => {
|
|
|
5358
5358
|
...v,
|
|
5359
5359
|
_renderingConfiguration: a,
|
|
5360
5360
|
mask: l ? `url(#viewmask-${f})` : void 0
|
|
5361
|
-
})), b =
|
|
5361
|
+
})), b = Ra(x);
|
|
5362
5362
|
return /* @__PURE__ */ ut(
|
|
5363
5363
|
"svg",
|
|
5364
5364
|
{
|
|
@@ -5436,7 +5436,7 @@ const N = () => {
|
|
|
5436
5436
|
]
|
|
5437
5437
|
}
|
|
5438
5438
|
);
|
|
5439
|
-
},
|
|
5439
|
+
}, Cd = (i, t, e, a, n) => {
|
|
5440
5440
|
const r = St(n), s = e / 2, o = a / 2, l = i + s, c = t + o, d = Math.sin(r), u = Math.cos(r), A = s, h = s, g = -o, p = o, m = A * u - g * d, f = h * u - p * d, y = A * d + g * u, w = h * d + p * u, x = Math.max(Math.abs(m), Math.abs(f)), b = Math.max(Math.abs(y), Math.abs(w));
|
|
5441
5441
|
return {
|
|
5442
5442
|
minX: l - x,
|
|
@@ -5444,25 +5444,25 @@ const N = () => {
|
|
|
5444
5444
|
minY: c - b,
|
|
5445
5445
|
maxY: c + b
|
|
5446
5446
|
};
|
|
5447
|
-
},
|
|
5447
|
+
}, wd = (i, t, e) => {
|
|
5448
5448
|
const a = Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), r = Math.sqrt(Math.pow(e.x - i.x, 2) + Math.pow(e.y - i.y, 2));
|
|
5449
5449
|
return Math.acos((n * n + a * a - r * r) / (2 * n * a)) * (180 / Math.PI);
|
|
5450
|
-
}, St = (i) => i * (Math.PI / 180),
|
|
5450
|
+
}, St = (i) => i * (Math.PI / 180), yd = (i, t, e) => Math.abs(i - t) < e, Sd = (i, t, e) => {
|
|
5451
5451
|
const a = Math.sin(St(e)), n = Math.cos(St(e));
|
|
5452
5452
|
return {
|
|
5453
5453
|
x: (i.x - t.x) * n - (i.y - t.y) * a + t.x,
|
|
5454
5454
|
y: (i.x - t.x) * a + (i.y - t.y) * n + t.y
|
|
5455
5455
|
};
|
|
5456
|
-
},
|
|
5456
|
+
}, vd = (i, t) => ({
|
|
5457
5457
|
x: (i.x + t.x) / 2,
|
|
5458
5458
|
y: (i.y + t.y) / 2
|
|
5459
|
-
}),
|
|
5459
|
+
}), Ed = (i, t, e, a) => ({
|
|
5460
5460
|
x: i.x + t?.x * e,
|
|
5461
5461
|
y: i.y + t?.y * a
|
|
5462
|
-
}),
|
|
5462
|
+
}), bd = (i, t, e, a) => ({
|
|
5463
5463
|
x: i.x + (t?.x + t?.width) * e,
|
|
5464
5464
|
y: i.y + t?.y * a
|
|
5465
|
-
}),
|
|
5465
|
+
}), Id = (i, t, e, a) => ({
|
|
5466
5466
|
x: i.x + (t?.x + t?.width) * e,
|
|
5467
5467
|
y: i.y + (t?.y + t?.height) * a
|
|
5468
5468
|
}), Ft = (i) => {
|
|
@@ -5484,7 +5484,7 @@ const N = () => {
|
|
|
5484
5484
|
case Y.Southwest:
|
|
5485
5485
|
return Y.Northwest;
|
|
5486
5486
|
}
|
|
5487
|
-
},
|
|
5487
|
+
}, Bd = (i, t) => t > 45 && t <= 135 ? Ft(i) : t > 135 && t <= 225 ? Ft(Ft(i)) : t > 225 && t <= 315 ? Ft(Ft(Ft(i))) : i, Pd = (i, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5488
5488
|
const a = St(i.rotation), n = {
|
|
5489
5489
|
x: t.x + i.x * e.x,
|
|
5490
5490
|
y: t.x + i.y * e.y
|
|
@@ -5514,7 +5514,7 @@ const N = () => {
|
|
|
5514
5514
|
x: (i.x - t.x) * n - (i.y - t.y) * a + t.x,
|
|
5515
5515
|
y: (i.x - t.x) * a + (i.y - t.y) * n + t.y
|
|
5516
5516
|
};
|
|
5517
|
-
},
|
|
5517
|
+
}, Fd = 0.352778, xd = 0.035277, Xn = (i) => {
|
|
5518
5518
|
const t = i.rotation || 0, e = St(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5519
5519
|
return /* @__PURE__ */ F("g", { mask: i.stepName || i.productOverlay ? void 0 : i.mask, children: /* @__PURE__ */ F(
|
|
5520
5520
|
"g",
|
|
@@ -5537,7 +5537,7 @@ const N = () => {
|
|
|
5537
5537
|
}
|
|
5538
5538
|
) });
|
|
5539
5539
|
}, Zn = (i) => {
|
|
5540
|
-
const t = `spiff-group-clip-${i.id}`, e = i.rotation || 0, a = St(e), n = Math.cos(a), r = -Math.sin(a), s =
|
|
5540
|
+
const t = `spiff-group-clip-${i.id}`, e = i.rotation || 0, a = St(e), n = Math.cos(a), r = -Math.sin(a), s = Ra(i.children);
|
|
5541
5541
|
return /* @__PURE__ */ ut(Ht, { children: [
|
|
5542
5542
|
/* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: t, preserveAspectRatio: "none", children: i.clipPath ? /* @__PURE__ */ F("path", { d: i.clipPath }) : /* @__PURE__ */ F("rect", { x: 0, y: 0, width: i.width, height: i.height }) }) }),
|
|
5543
5543
|
/* @__PURE__ */ ut(
|
|
@@ -5708,25 +5708,25 @@ class bs {
|
|
|
5708
5708
|
}), a - n;
|
|
5709
5709
|
}
|
|
5710
5710
|
}
|
|
5711
|
-
const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:",
|
|
5712
|
-
if (
|
|
5713
|
-
return
|
|
5711
|
+
const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", _e = /* @__PURE__ */ new Map(), Qt = async (i) => {
|
|
5712
|
+
if (_e.has(i))
|
|
5713
|
+
return _e.get(i);
|
|
5714
5714
|
const e = (async () => {
|
|
5715
5715
|
try {
|
|
5716
5716
|
return vt(i).getFont();
|
|
5717
5717
|
} catch {
|
|
5718
5718
|
if (Is(i)) {
|
|
5719
|
-
const a =
|
|
5719
|
+
const a = On(i), n = da(a);
|
|
5720
5720
|
return pa(i, n), n;
|
|
5721
5721
|
} else {
|
|
5722
|
-
const a = await
|
|
5722
|
+
const a = await Oe(i, !0), n = da(a);
|
|
5723
5723
|
return pa(i, n), await or(n, i), n;
|
|
5724
5724
|
}
|
|
5725
5725
|
}
|
|
5726
5726
|
})();
|
|
5727
|
-
return
|
|
5727
|
+
return _e.set(i, e), e;
|
|
5728
5728
|
}, Bs = (i) => {
|
|
5729
|
-
const t =
|
|
5729
|
+
const t = On(i), e = da(t);
|
|
5730
5730
|
return pa(i, e), e;
|
|
5731
5731
|
}, vt = (i) => {
|
|
5732
5732
|
const t = ti.get(i);
|
|
@@ -5736,10 +5736,10 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5736
5736
|
}, pa = (i, t) => {
|
|
5737
5737
|
const e = new bs(t);
|
|
5738
5738
|
return ti.set(i, e), e;
|
|
5739
|
-
},
|
|
5739
|
+
}, Dd = async (i) => {
|
|
5740
5740
|
const t = ht(), e = t.parseFromString(i, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5741
5741
|
a.querySelectorAll("style").forEach((d) => {
|
|
5742
|
-
|
|
5742
|
+
Bn(d.innerHTML).stylesheet?.rules.forEach((A) => {
|
|
5743
5743
|
if (A.type === "font-face" && A.declarations) {
|
|
5744
5744
|
const h = A.declarations.find(
|
|
5745
5745
|
(m) => m.property === "font-family"
|
|
@@ -5770,17 +5770,17 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5770
5770
|
h.appendChild(T);
|
|
5771
5771
|
}
|
|
5772
5772
|
return e.querySelectorAll("text").forEach((d) => d.remove()), Pt().serializeToString(a);
|
|
5773
|
-
},
|
|
5774
|
-
`), e, a), t),
|
|
5773
|
+
}, Fe = (i, t, e, a) => Math.max(Ds(i.join(`
|
|
5774
|
+
`), e, a), t), an = (i, t, e, a, n, r) => {
|
|
5775
5775
|
const s = (r || ni) * n.getApproximateHeight(), o = t.split(`
|
|
5776
5776
|
`);
|
|
5777
5777
|
try {
|
|
5778
|
-
const l = o.flatMap((d) =>
|
|
5778
|
+
const l = o.flatMap((d) => we(d, i.width, a, n)), c = l.flatMap((d) => d.lines);
|
|
5779
5779
|
return {
|
|
5780
5780
|
lines: c,
|
|
5781
5781
|
requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
|
|
5782
5782
|
fontSize: e,
|
|
5783
|
-
requiredWidth:
|
|
5783
|
+
requiredWidth: Fe(c, i.width, a, n)
|
|
5784
5784
|
};
|
|
5785
5785
|
} catch {
|
|
5786
5786
|
const c = t.split("");
|
|
@@ -5788,17 +5788,17 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5788
5788
|
lines: c,
|
|
5789
5789
|
requiredHeight: c.length * (a * s),
|
|
5790
5790
|
fontSize: e,
|
|
5791
|
-
requiredWidth:
|
|
5791
|
+
requiredWidth: Fe(c, i.width, a, n)
|
|
5792
5792
|
};
|
|
5793
5793
|
}
|
|
5794
|
-
},
|
|
5794
|
+
}, we = (i, t, e, a) => {
|
|
5795
5795
|
const n = Ct(i, e, a);
|
|
5796
5796
|
if (n <= t)
|
|
5797
5797
|
return { lines: [i], width: n };
|
|
5798
5798
|
if (!(i.indexOf(" ") > -1)) {
|
|
5799
5799
|
if (i.length <= 1)
|
|
5800
5800
|
throw new Error(`Character ${i} is wider than region`);
|
|
5801
|
-
const d = Math.floor(i.length / 2), u =
|
|
5801
|
+
const d = Math.floor(i.length / 2), u = we(i.slice(0, d), t, e, a), A = we(i.slice(d), t, e, a);
|
|
5802
5802
|
return { lines: [...u.lines, ...A.lines], width: Math.max(u.width, A.width) };
|
|
5803
5803
|
}
|
|
5804
5804
|
const s = i.split(" "), o = [];
|
|
@@ -5806,7 +5806,7 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5806
5806
|
for (; c < s.length; ) {
|
|
5807
5807
|
const d = s[c];
|
|
5808
5808
|
if (Ct(d, e, a) > t) {
|
|
5809
|
-
const u =
|
|
5809
|
+
const u = we(d, t, e, a);
|
|
5810
5810
|
o.push(...u.lines), l = Math.max(l, u.width), c++;
|
|
5811
5811
|
} else {
|
|
5812
5812
|
const u = [d];
|
|
@@ -5828,7 +5828,7 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5828
5828
|
}, Fs = (i, t, e, a) => {
|
|
5829
5829
|
const n = vt(t.fontData.assetUrl), r = n.getFont(), s = t.fontSize / r.unitsPerEm;
|
|
5830
5830
|
if (!e)
|
|
5831
|
-
return
|
|
5831
|
+
return an(t, i, t.fontSize, s, n, a);
|
|
5832
5832
|
let o;
|
|
5833
5833
|
if (t.text ? o = t.text.split(`
|
|
5834
5834
|
`) : o = t.input?.split(`
|
|
@@ -5836,22 +5836,22 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5836
5836
|
return {
|
|
5837
5837
|
lines: o,
|
|
5838
5838
|
requiredHeight: t.height,
|
|
5839
|
-
requiredWidth:
|
|
5839
|
+
requiredWidth: Fe(o, t.width, s, n),
|
|
5840
5840
|
fontSize: t.fontSize
|
|
5841
5841
|
};
|
|
5842
5842
|
const l = t.width !== e.width != (t.height !== e.height);
|
|
5843
5843
|
return t.lineHeight === e.lineHeight && !l && e.input === i ? {
|
|
5844
5844
|
lines: o,
|
|
5845
5845
|
requiredHeight: t.height,
|
|
5846
|
-
requiredWidth:
|
|
5846
|
+
requiredWidth: Fe(o, t.width, s, n),
|
|
5847
5847
|
fontSize: Ps(o, n, r, t.width, t.height, a)
|
|
5848
|
-
} :
|
|
5848
|
+
} : an(t, i, t.fontSize, s, n, a);
|
|
5849
5849
|
}, xs = (i, t, e, a, n) => {
|
|
5850
5850
|
const s = vt(t.assetUrl).getFont();
|
|
5851
5851
|
let o = { ...i };
|
|
5852
5852
|
const l = { ...i }, c = ei(a, e / s.unitsPerEm, vt(t.assetUrl));
|
|
5853
5853
|
return c && c < o.width && (l.width = c, n === "left" ? (l.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), l.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : n === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && ks(a, a).every(([d, u]) => d === u) && (o = l)), o;
|
|
5854
|
-
},
|
|
5854
|
+
}, Xe = 1, Ct = (i, t, e) => {
|
|
5855
5855
|
let a = 0;
|
|
5856
5856
|
const n = e.getGlyphs(i);
|
|
5857
5857
|
return n.forEach((r, s) => {
|
|
@@ -5874,12 +5874,12 @@ const Is = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5874
5874
|
return i.forEach((n) => {
|
|
5875
5875
|
a = Math.max(a, Ct(n, t, e));
|
|
5876
5876
|
}), a;
|
|
5877
|
-
},
|
|
5877
|
+
}, nn = {
|
|
5878
5878
|
stripControlCharacters: !0,
|
|
5879
5879
|
vertical: !1,
|
|
5880
5880
|
uppercase: !1
|
|
5881
|
-
},
|
|
5882
|
-
const e = { ...
|
|
5881
|
+
}, xe = (i, t = nn) => {
|
|
5882
|
+
const e = { ...nn, ...t };
|
|
5883
5883
|
let a = i || "";
|
|
5884
5884
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
5885
5885
|
`)), a;
|
|
@@ -5918,7 +5918,7 @@ const Ts = (i) => {
|
|
|
5918
5918
|
`), u = i.strokeColor?.browserValue && i.strokeThickness ? i.strokeColor?.browserValue : void 0, A = i.strokeColor?.browserValue && i.strokeThickness ? i.strokeThickness : void 0;
|
|
5919
5919
|
if (i.curved && !i.paths || !i.fontData)
|
|
5920
5920
|
return null;
|
|
5921
|
-
const h = () => i.textFillImage ? `url("#${s}")` : i._renderingConfiguration?.spotColors && i.fillSpotColorDefinition ? `${i.fill} ${
|
|
5921
|
+
const h = () => i.textFillImage ? `url("#${s}")` : i._renderingConfiguration?.spotColors && i.fillSpotColorDefinition ? `${i.fill} ${Vn(i.fillSpotColorDefinition)}` : i.fill;
|
|
5922
5922
|
return /* @__PURE__ */ ut(Ht, { children: [
|
|
5923
5923
|
/* @__PURE__ */ ut("defs", { children: [
|
|
5924
5924
|
i.textFillImage && /* @__PURE__ */ F(
|
|
@@ -6131,7 +6131,7 @@ class Rs {
|
|
|
6131
6131
|
layout: t,
|
|
6132
6132
|
elements: e
|
|
6133
6133
|
},
|
|
6134
|
-
getComponentWithProps: (a) =>
|
|
6134
|
+
getComponentWithProps: (a) => Oa(t, e, a)
|
|
6135
6135
|
};
|
|
6136
6136
|
}
|
|
6137
6137
|
initialize(t, e) {
|
|
@@ -6156,7 +6156,7 @@ class Rs {
|
|
|
6156
6156
|
return { ...t, transaction: e.apply(a) };
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
6159
|
-
const ri = (i) => i.type === D.Image ? /* @__PURE__ */ F(Xn, { ...i }, i.id) : i.type === D.Frame ? /* @__PURE__ */ F(Es, { ...i }, i.id) : i.type === D.Illustration ? /* @__PURE__ */ F(Os, { ...i }, i.id) : i.type === D.Textbox ? /* @__PURE__ */ F(Ts, { ...i }, i.id) : i.type === D.Group ? /* @__PURE__ */ F(Zn, { ...i }, i.id) : null,
|
|
6159
|
+
const ri = (i) => i.type === D.Image ? /* @__PURE__ */ F(Xn, { ...i }, i.id) : i.type === D.Frame ? /* @__PURE__ */ F(Es, { ...i }, i.id) : i.type === D.Illustration ? /* @__PURE__ */ F(Os, { ...i }, i.id) : i.type === D.Textbox ? /* @__PURE__ */ F(Ts, { ...i }, i.id) : i.type === D.Group ? /* @__PURE__ */ F(Zn, { ...i }, i.id) : null, Oa = (i, t, e) => {
|
|
6160
6160
|
const a = e.renderingConfiguration, n = a?.removeExcludedElements ? t.filter((r) => !r.excludeFromExport) : t;
|
|
6161
6161
|
return /* @__PURE__ */ F(
|
|
6162
6162
|
vs,
|
|
@@ -6187,7 +6187,7 @@ const ri = (i) => i.type === D.Image ? /* @__PURE__ */ F(Xn, { ...i }, i.id) : i
|
|
|
6187
6187
|
}
|
|
6188
6188
|
);
|
|
6189
6189
|
};
|
|
6190
|
-
function
|
|
6190
|
+
function Ra(i) {
|
|
6191
6191
|
return i.sort((t, e) => {
|
|
6192
6192
|
const a = t.layer || 0, n = e.layer || 0;
|
|
6193
6193
|
if (a < n) return -1;
|
|
@@ -6196,7 +6196,7 @@ function Qa(i) {
|
|
|
6196
6196
|
return r < s ? -1 : r > s ? 1 : 0;
|
|
6197
6197
|
});
|
|
6198
6198
|
}
|
|
6199
|
-
const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(),
|
|
6199
|
+
const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), Ze = /* @__PURE__ */ new Map(), si = async (i, t) => {
|
|
6200
6200
|
if (!t) {
|
|
6201
6201
|
if (!i) throw new Error("No region or src supplied. Cannot construct frame!");
|
|
6202
6202
|
return fa(i);
|
|
@@ -6217,9 +6217,9 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6217
6217
|
if (!e.asset)
|
|
6218
6218
|
throw new Error(`No asset for variant with ID: ${i.frameVariantId}`);
|
|
6219
6219
|
return e;
|
|
6220
|
-
},
|
|
6221
|
-
if (
|
|
6222
|
-
return
|
|
6220
|
+
}, Le = async (i) => {
|
|
6221
|
+
if (Ze.has(i))
|
|
6222
|
+
return Ze.get(i);
|
|
6223
6223
|
const e = (async () => {
|
|
6224
6224
|
if (qt.has(i))
|
|
6225
6225
|
return qt.get(i);
|
|
@@ -6255,8 +6255,8 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6255
6255
|
}
|
|
6256
6256
|
throw new Error("Malformed frame SVG");
|
|
6257
6257
|
})();
|
|
6258
|
-
return
|
|
6259
|
-
},
|
|
6258
|
+
return Ze.set(i, e), e;
|
|
6259
|
+
}, $a = (i, t, e, a) => {
|
|
6260
6260
|
const n = t.width / t.height, r = i.width / i.height;
|
|
6261
6261
|
let s;
|
|
6262
6262
|
a ? r > n ? s = t.height / i.height : s = t.width / i.width : r > n ? s = t.width / i.width : s = t.height / i.height, e?.scale !== void 0 && (s *= e?.scale);
|
|
@@ -6279,7 +6279,7 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6279
6279
|
return mt.set(i, r), r;
|
|
6280
6280
|
}
|
|
6281
6281
|
if ((i.split(".").pop()?.toLowerCase() ?? "") === "svg") {
|
|
6282
|
-
const e = await
|
|
6282
|
+
const e = await Ua(i), a = e.width, n = e.height, r = {
|
|
6283
6283
|
src: i,
|
|
6284
6284
|
width: a,
|
|
6285
6285
|
height: n,
|
|
@@ -6287,7 +6287,7 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6287
6287
|
};
|
|
6288
6288
|
return mt.set(i, r), r;
|
|
6289
6289
|
} else {
|
|
6290
|
-
const e = await
|
|
6290
|
+
const e = await Oe(i, !0), a = await $e(e), n = {
|
|
6291
6291
|
src: i,
|
|
6292
6292
|
width: a.width,
|
|
6293
6293
|
height: a.height,
|
|
@@ -6295,14 +6295,14 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6295
6295
|
};
|
|
6296
6296
|
return mt.set(i, n), n;
|
|
6297
6297
|
}
|
|
6298
|
-
},
|
|
6298
|
+
}, Ua = async (i) => {
|
|
6299
6299
|
const t = await at(i);
|
|
6300
6300
|
return oi(t);
|
|
6301
|
-
},
|
|
6301
|
+
}, rn = (i) => i.endsWith("mm") ? Number(i.replace("mm", "")) * 3.7795275591 : i.endsWith("px") ? Number(i.replace("px", "")) : Number(i), oi = (i) => {
|
|
6302
6302
|
const a = ht().parseFromString(i, "image/svg+xml").querySelector("svg");
|
|
6303
6303
|
if (!a)
|
|
6304
6304
|
throw new Error("No svg tag found, this svg must be malformed!");
|
|
6305
|
-
const n = a.getAttribute("viewBox"), r = a.getAttribute("width"), s = a.getAttribute("height"), o = s && r ? [0, 0,
|
|
6305
|
+
const n = a.getAttribute("viewBox"), r = a.getAttribute("width"), s = a.getAttribute("height"), o = s && r ? [0, 0, rn(r), rn(s)] : n?.split(" ").map((l) => Number(l));
|
|
6306
6306
|
if (!o)
|
|
6307
6307
|
throw new Error("No viewbox or width/height values detected on SVG file!");
|
|
6308
6308
|
return {
|
|
@@ -6316,9 +6316,9 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6316
6316
|
at(i).then((e) => {
|
|
6317
6317
|
t(e);
|
|
6318
6318
|
}).catch((e) => console.error(e));
|
|
6319
|
-
}),
|
|
6320
|
-
if (
|
|
6321
|
-
return
|
|
6319
|
+
}), ta = /* @__PURE__ */ new Map(), te = async (i) => {
|
|
6320
|
+
if (ta.has(i))
|
|
6321
|
+
return ta.get(i);
|
|
6322
6322
|
const t = async (n) => new Promise((r, s) => {
|
|
6323
6323
|
try {
|
|
6324
6324
|
if (!(!!URL && !!URL.createObjectURL)) throw new Error("Environment incapable of generating ObjectURL");
|
|
@@ -6349,7 +6349,7 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6349
6349
|
u.resize(g, g);
|
|
6350
6350
|
return await u.render(), await t(c);
|
|
6351
6351
|
})();
|
|
6352
|
-
return
|
|
6352
|
+
return ta.set(i, a), a;
|
|
6353
6353
|
}, zt = async (i, t, e, a) => {
|
|
6354
6354
|
const n = i.layoutState.layout.useEditableArea && i.layoutState.layout.editableArea || {
|
|
6355
6355
|
width: i.layoutState.layout.width,
|
|
@@ -6371,7 +6371,7 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6371
6371
|
o.height = o.width / f, o.top += (h - o.height) / 2;
|
|
6372
6372
|
}
|
|
6373
6373
|
if (e && t === D.Image) {
|
|
6374
|
-
const l = o.height, c = await
|
|
6374
|
+
const l = o.height, c = await Oe(e), d = await $e(c), u = d.width / d.height;
|
|
6375
6375
|
o.height = o.width / u, o.top += (l - o.height) / 2;
|
|
6376
6376
|
}
|
|
6377
6377
|
if (e && t === D.Textbox && a?.text && a?.fontScale) {
|
|
@@ -6381,9 +6381,9 @@ const mt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6381
6381
|
}
|
|
6382
6382
|
return o;
|
|
6383
6383
|
};
|
|
6384
|
-
class
|
|
6384
|
+
class kd {
|
|
6385
6385
|
static async getFrame(t, e) {
|
|
6386
|
-
const a = await si(e.region, e.src), n = await
|
|
6386
|
+
const a = await si(e.region, e.src), n = await Le(a), r = e.region || await zt(t, D.Frame);
|
|
6387
6387
|
return {
|
|
6388
6388
|
id: N(),
|
|
6389
6389
|
x: r.left,
|
|
@@ -6429,7 +6429,7 @@ class Dd {
|
|
|
6429
6429
|
const { configuration: a, fontSrc: n, designInputStep: r } = e, s = await Qt(n), o = {
|
|
6430
6430
|
assetUrl: n,
|
|
6431
6431
|
name: s.names.fullName.en
|
|
6432
|
-
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6432
|
+
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = xe(c, {
|
|
6433
6433
|
vertical: a.vertical,
|
|
6434
6434
|
uppercase: a.uppercase
|
|
6435
6435
|
}), u = e.region || await zt(t, D.Textbox, n, {
|
|
@@ -6549,13 +6549,13 @@ const L = (i, t) => _(i, t).elements.find((n) => n.id === i), _ = (i, t) => {
|
|
|
6549
6549
|
throw new q();
|
|
6550
6550
|
return e;
|
|
6551
6551
|
}, Z = (i, t) => {
|
|
6552
|
-
const e = [...t.elements.filter((n) => n.id !== i.id), i], a =
|
|
6552
|
+
const e = [...t.elements.filter((n) => n.id !== i.id), i], a = Ra(e);
|
|
6553
6553
|
return {
|
|
6554
6554
|
layout: t.layout,
|
|
6555
6555
|
elements: a,
|
|
6556
6556
|
modificationID: N()
|
|
6557
6557
|
};
|
|
6558
|
-
},
|
|
6558
|
+
}, sn = async (i) => {
|
|
6559
6559
|
const t = [...Object.keys(i.layouts)], e = [...new Set(t)];
|
|
6560
6560
|
for (let a = 0; a < e.length; a++) {
|
|
6561
6561
|
const n = e[a], r = i.layouts[n];
|
|
@@ -6615,7 +6615,7 @@ class $ {
|
|
|
6615
6615
|
this.oldState = t;
|
|
6616
6616
|
}
|
|
6617
6617
|
}
|
|
6618
|
-
class
|
|
6618
|
+
class on extends $ {
|
|
6619
6619
|
constructor(t) {
|
|
6620
6620
|
super(), this.serializableWorkflow = t;
|
|
6621
6621
|
}
|
|
@@ -6626,7 +6626,7 @@ class rn extends $ {
|
|
|
6626
6626
|
};
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
class
|
|
6629
|
+
class Md extends $ {
|
|
6630
6630
|
constructor(t, e, a) {
|
|
6631
6631
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6632
6632
|
}
|
|
@@ -6649,7 +6649,7 @@ class kd extends $ {
|
|
|
6649
6649
|
};
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
|
-
class
|
|
6652
|
+
class Td extends $ {
|
|
6653
6653
|
constructor(t, e) {
|
|
6654
6654
|
super(), this.id = t, this.angle = e;
|
|
6655
6655
|
}
|
|
@@ -6671,7 +6671,7 @@ class Md extends $ {
|
|
|
6671
6671
|
};
|
|
6672
6672
|
}
|
|
6673
6673
|
}
|
|
6674
|
-
class
|
|
6674
|
+
class Nd extends $ {
|
|
6675
6675
|
constructor(t, e, a) {
|
|
6676
6676
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6677
6677
|
}
|
|
@@ -6833,7 +6833,7 @@ class Us extends $ {
|
|
|
6833
6833
|
};
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
|
-
class
|
|
6836
|
+
class ea extends $ {
|
|
6837
6837
|
constructor(t, e) {
|
|
6838
6838
|
super(), this.id = t, this.imageFill = e;
|
|
6839
6839
|
}
|
|
@@ -6877,7 +6877,7 @@ class Vs extends $ {
|
|
|
6877
6877
|
};
|
|
6878
6878
|
}
|
|
6879
6879
|
}
|
|
6880
|
-
class
|
|
6880
|
+
class ln extends $ {
|
|
6881
6881
|
constructor(t, e) {
|
|
6882
6882
|
super(), this.id = t, this.fontData = e;
|
|
6883
6883
|
}
|
|
@@ -6982,7 +6982,7 @@ class Gs extends $ {
|
|
|
6982
6982
|
};
|
|
6983
6983
|
}
|
|
6984
6984
|
}
|
|
6985
|
-
class
|
|
6985
|
+
class Qd extends $ {
|
|
6986
6986
|
constructor(t, e) {
|
|
6987
6987
|
super(), this.id = t, this.src = e;
|
|
6988
6988
|
}
|
|
@@ -7023,7 +7023,7 @@ class qs extends $ {
|
|
|
7023
7023
|
};
|
|
7024
7024
|
}
|
|
7025
7025
|
}
|
|
7026
|
-
class
|
|
7026
|
+
class aa extends $ {
|
|
7027
7027
|
constructor(t, e, a) {
|
|
7028
7028
|
super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
|
|
7029
7029
|
}
|
|
@@ -7101,7 +7101,7 @@ class Ws extends $ {
|
|
|
7101
7101
|
};
|
|
7102
7102
|
}
|
|
7103
7103
|
}
|
|
7104
|
-
class
|
|
7104
|
+
class Od extends $ {
|
|
7105
7105
|
/**
|
|
7106
7106
|
* @param id The targeted element to bring to the front.
|
|
7107
7107
|
*/
|
|
@@ -7130,7 +7130,7 @@ class Qd extends $ {
|
|
|
7130
7130
|
};
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
class
|
|
7133
|
+
class Rd extends $ {
|
|
7134
7134
|
/**
|
|
7135
7135
|
* @param id The targeted element to bring to the back.
|
|
7136
7136
|
*/
|
|
@@ -7161,7 +7161,7 @@ class Od extends $ {
|
|
|
7161
7161
|
};
|
|
7162
7162
|
}
|
|
7163
7163
|
}
|
|
7164
|
-
class
|
|
7164
|
+
class $d extends $ {
|
|
7165
7165
|
/**
|
|
7166
7166
|
* @param id The targeted element to bring to the front.
|
|
7167
7167
|
*/
|
|
@@ -7188,7 +7188,7 @@ class Rd extends $ {
|
|
|
7188
7188
|
};
|
|
7189
7189
|
}
|
|
7190
7190
|
}
|
|
7191
|
-
class
|
|
7191
|
+
class Ud extends $ {
|
|
7192
7192
|
/**
|
|
7193
7193
|
* @param id The targeted element to bring to the front.
|
|
7194
7194
|
*/
|
|
@@ -7215,7 +7215,7 @@ class $d extends $ {
|
|
|
7215
7215
|
};
|
|
7216
7216
|
}
|
|
7217
7217
|
}
|
|
7218
|
-
class
|
|
7218
|
+
class cn {
|
|
7219
7219
|
constructor(t, e, a) {
|
|
7220
7220
|
this.processRegion = async (n) => {
|
|
7221
7221
|
const r = this.layouts.find((l) => l.panelId === n.panelId);
|
|
@@ -7324,7 +7324,7 @@ const Hs = async (i) => {
|
|
|
7324
7324
|
}
|
|
7325
7325
|
})).json()).shortUrl;
|
|
7326
7326
|
} catch (e) {
|
|
7327
|
-
throw console.error(e), new
|
|
7327
|
+
throw console.error(e), new Qe("Failed to shorten URL, see console.");
|
|
7328
7328
|
}
|
|
7329
7329
|
};
|
|
7330
7330
|
class di {
|
|
@@ -7373,7 +7373,7 @@ class js {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
async regenerateQRCode(t, e, a, n) {
|
|
7375
7375
|
const r = async () => {
|
|
7376
|
-
const h = (await
|
|
7376
|
+
const h = (await Be([e]))[0], g = h?.versions?.find((p) => p.name === "mpeg4")?.link;
|
|
7377
7377
|
return { asset: h, link: g };
|
|
7378
7378
|
}, s = await new Promise((h, g) => {
|
|
7379
7379
|
new di(
|
|
@@ -7399,7 +7399,7 @@ class js {
|
|
|
7399
7399
|
l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
|
|
7400
7400
|
const c = l.toString();
|
|
7401
7401
|
if (c.length >= 2e3)
|
|
7402
|
-
throw new
|
|
7402
|
+
throw new Qe("Cannot create QR code, URL too long.");
|
|
7403
7403
|
const d = await Hs(c);
|
|
7404
7404
|
if (!n.data || !n.data.regions)
|
|
7405
7405
|
throw new At(n, "Missing regions.");
|
|
@@ -7416,7 +7416,7 @@ class js {
|
|
|
7416
7416
|
return t.data.regions.map(e);
|
|
7417
7417
|
}
|
|
7418
7418
|
async command(t, e, a, n) {
|
|
7419
|
-
const r = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await
|
|
7419
|
+
const r = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await Fn(t, { type: "svg" }))}`, l = e.map((c) => {
|
|
7420
7420
|
const d = c.region, u = r.find((A) => A.panelId === d?.panelId);
|
|
7421
7421
|
if (!u && d)
|
|
7422
7422
|
throw new J(d);
|
|
@@ -7446,7 +7446,7 @@ class js {
|
|
|
7446
7446
|
}
|
|
7447
7447
|
}
|
|
7448
7448
|
const ui = new js();
|
|
7449
|
-
class
|
|
7449
|
+
class De {
|
|
7450
7450
|
constructor() {
|
|
7451
7451
|
this.frameSourceSvg = async (t, e) => {
|
|
7452
7452
|
if (!t)
|
|
@@ -7562,7 +7562,7 @@ class ke {
|
|
|
7562
7562
|
})) ?? [];
|
|
7563
7563
|
}
|
|
7564
7564
|
selectImage(t, e, a, n = !0) {
|
|
7565
|
-
const r =
|
|
7565
|
+
const r = De.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
|
|
7566
7566
|
if (s && s === r)
|
|
7567
7567
|
return Promise.resolve();
|
|
7568
7568
|
a.setEditedStatus(t.stepName, !0);
|
|
@@ -7582,7 +7582,7 @@ class ke {
|
|
|
7582
7582
|
});
|
|
7583
7583
|
},
|
|
7584
7584
|
() => {
|
|
7585
|
-
throw new
|
|
7585
|
+
throw new Qe("Failed to resolve transcoded PDF");
|
|
7586
7586
|
}
|
|
7587
7587
|
)
|
|
7588
7588
|
);
|
|
@@ -7627,7 +7627,7 @@ class ke {
|
|
|
7627
7627
|
}
|
|
7628
7628
|
async loadPatternFromString(t, e, a = !0, n = void 0, r) {
|
|
7629
7629
|
if (t.endsWith("svg")) {
|
|
7630
|
-
const s = await
|
|
7630
|
+
const s = await Ua(t), o = s.width, l = s.height, c = await at(t);
|
|
7631
7631
|
if (r) {
|
|
7632
7632
|
const A = c.match(/<(image|linearGradient|radialGradient)(\s|>|\/>)/gim);
|
|
7633
7633
|
if (A && A.length > 0)
|
|
@@ -7645,7 +7645,7 @@ class ke {
|
|
|
7645
7645
|
};
|
|
7646
7646
|
mt.set(t, u), e.setPatternData(u, a);
|
|
7647
7647
|
} else {
|
|
7648
|
-
const s = await
|
|
7648
|
+
const s = await Oe(t, !0), o = await $e(s), l = {
|
|
7649
7649
|
src: t,
|
|
7650
7650
|
width: o.width,
|
|
7651
7651
|
height: o.height,
|
|
@@ -7730,7 +7730,7 @@ class ke {
|
|
|
7730
7730
|
r && r(!0);
|
|
7731
7731
|
const c = t.data.initialZoomLevel, d = await Promise.all(
|
|
7732
7732
|
t.data.regions.map(async (h, g) => {
|
|
7733
|
-
const p = await
|
|
7733
|
+
const p = await Le(l[g]), m = o.getImageData(), f = a.map((I) => new Ot(I.id)), y = m ? $a(
|
|
7734
7734
|
m,
|
|
7735
7735
|
p,
|
|
7736
7736
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
@@ -7795,7 +7795,7 @@ class ke {
|
|
|
7795
7795
|
throw new Xt(t);
|
|
7796
7796
|
}
|
|
7797
7797
|
async loadPatternFromAsset(t, e, a, n) {
|
|
7798
|
-
const r =
|
|
7798
|
+
const r = De.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
|
|
7799
7799
|
if (!o)
|
|
7800
7800
|
throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
|
|
7801
7801
|
try {
|
|
@@ -7822,7 +7822,7 @@ class ke {
|
|
|
7822
7822
|
), this.validateColorCount(e, a);
|
|
7823
7823
|
}
|
|
7824
7824
|
}
|
|
7825
|
-
const bt = new
|
|
7825
|
+
const bt = new De();
|
|
7826
7826
|
class Ys {
|
|
7827
7827
|
async getIllustrationBody(t) {
|
|
7828
7828
|
return new Promise((e) => {
|
|
@@ -8050,12 +8050,12 @@ class Ys {
|
|
|
8050
8050
|
};
|
|
8051
8051
|
}
|
|
8052
8052
|
}
|
|
8053
|
-
const
|
|
8053
|
+
const ye = new Ys();
|
|
8054
8054
|
class Js {
|
|
8055
8055
|
async init(t, e, a) {
|
|
8056
8056
|
const n = t.option;
|
|
8057
8057
|
if (!n)
|
|
8058
|
-
throw new
|
|
8058
|
+
throw new Ie(t);
|
|
8059
8059
|
if (a)
|
|
8060
8060
|
await this.reload(t, e, a);
|
|
8061
8061
|
else {
|
|
@@ -8071,7 +8071,7 @@ class Js {
|
|
|
8071
8071
|
t.stepName,
|
|
8072
8072
|
a.serializableWorkflow.steps
|
|
8073
8073
|
), o = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName), l = t.option;
|
|
8074
|
-
if (!l) throw new
|
|
8074
|
+
if (!l) throw new Ie(t);
|
|
8075
8075
|
if (n?.selectedVariants) {
|
|
8076
8076
|
const c = n.selectedVariants[0].id;
|
|
8077
8077
|
if (c) {
|
|
@@ -8132,7 +8132,7 @@ const Ai = new Js();
|
|
|
8132
8132
|
class Ks {
|
|
8133
8133
|
async init(t, e, a) {
|
|
8134
8134
|
const n = await B.getOptionForStep(t);
|
|
8135
|
-
if (!n) throw new
|
|
8135
|
+
if (!n) throw new Ie(t);
|
|
8136
8136
|
if (a)
|
|
8137
8137
|
await this.reload(t, e, a);
|
|
8138
8138
|
else {
|
|
@@ -8503,7 +8503,7 @@ class to {
|
|
|
8503
8503
|
async init(t, e, a) {
|
|
8504
8504
|
const n = await B.getOptionForStep(t);
|
|
8505
8505
|
if (!n)
|
|
8506
|
-
throw new
|
|
8506
|
+
throw new Ie(t);
|
|
8507
8507
|
if (a)
|
|
8508
8508
|
await this.reload(t, e, a);
|
|
8509
8509
|
else {
|
|
@@ -8674,7 +8674,7 @@ class eo {
|
|
|
8674
8674
|
);
|
|
8675
8675
|
}
|
|
8676
8676
|
}
|
|
8677
|
-
const ao = new eo(),
|
|
8677
|
+
const ao = new eo(), na = (i, t, e, a, n) => {
|
|
8678
8678
|
if (t.some((d) => d == null))
|
|
8679
8679
|
throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
|
|
8680
8680
|
let r = t.map((d) => d.split(`
|
|
@@ -8701,34 +8701,34 @@ const ao = new eo(), ia = (i, t, e, a, n) => {
|
|
|
8701
8701
|
g || (c = !1);
|
|
8702
8702
|
}
|
|
8703
8703
|
return [null, null];
|
|
8704
|
-
},
|
|
8704
|
+
}, Se = (i, t, e, a, n) => {
|
|
8705
8705
|
let r, s;
|
|
8706
8706
|
const o = vt(t.assetUrl), l = o.getFont();
|
|
8707
8707
|
if (n.size) {
|
|
8708
8708
|
const A = i / l.unitsPerEm;
|
|
8709
|
-
return [r, s] =
|
|
8709
|
+
return [r, s] = na(e, a, i, A, o), [n.size, r, s];
|
|
8710
8710
|
}
|
|
8711
8711
|
const c = 6;
|
|
8712
|
-
let d = c -
|
|
8712
|
+
let d = c - Xe;
|
|
8713
8713
|
if (a.length > 0) {
|
|
8714
8714
|
let A = a, h = 0;
|
|
8715
8715
|
for (; (!n.maxSize || d <= n.maxSize) && A; )
|
|
8716
|
-
d +=
|
|
8716
|
+
d += Xe, h = d / l.unitsPerEm, [A, s] = na(e, a, d, h, o);
|
|
8717
8717
|
}
|
|
8718
|
-
d > c && (d -=
|
|
8718
|
+
d > c && (d -= Xe), n.minSize && d < n.minSize && (d = n.minSize);
|
|
8719
8719
|
const u = d / l.unitsPerEm;
|
|
8720
|
-
return [r, s] =
|
|
8721
|
-
},
|
|
8722
|
-
class
|
|
8720
|
+
return [r, s] = na(e, a, d, u, o), [d, r, s];
|
|
8721
|
+
}, ia = 30;
|
|
8722
|
+
class ke extends Error {
|
|
8723
8723
|
constructor(t) {
|
|
8724
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8724
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
8727
|
const no = ["‘", "’", "“", "”", `
|
|
8728
8728
|
`];
|
|
8729
|
-
class
|
|
8729
|
+
class Me extends Error {
|
|
8730
8730
|
constructor(t) {
|
|
8731
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8731
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Me.name;
|
|
8732
8732
|
}
|
|
8733
8733
|
}
|
|
8734
8734
|
class io {
|
|
@@ -8897,7 +8897,7 @@ class io {
|
|
|
8897
8897
|
fillImage: e
|
|
8898
8898
|
});
|
|
8899
8899
|
for (const o of a) {
|
|
8900
|
-
const l = new
|
|
8900
|
+
const l = new ea(o.id, e);
|
|
8901
8901
|
r(l);
|
|
8902
8902
|
}
|
|
8903
8903
|
}
|
|
@@ -8934,13 +8934,13 @@ class io {
|
|
|
8934
8934
|
strokeColor: s
|
|
8935
8935
|
});
|
|
8936
8936
|
for (const o of a) {
|
|
8937
|
-
const l = new
|
|
8937
|
+
const l = new aa(o.id, s, t.data?.strokeThickness);
|
|
8938
8938
|
r(l);
|
|
8939
8939
|
}
|
|
8940
8940
|
}
|
|
8941
8941
|
getProcessedInput(t, e, a) {
|
|
8942
8942
|
const n = a ? t : this.injectReplaceableText(t, e);
|
|
8943
|
-
return
|
|
8943
|
+
return xe(n, {
|
|
8944
8944
|
vertical: e.vertical,
|
|
8945
8945
|
uppercase: e.uppercase
|
|
8946
8946
|
});
|
|
@@ -8957,7 +8957,7 @@ class io {
|
|
|
8957
8957
|
const c = [], d = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
8958
8958
|
for (const A of e) {
|
|
8959
8959
|
if (!A.fontData) throw new O("Failed to resolve font data for text.");
|
|
8960
|
-
const [h, g] =
|
|
8960
|
+
const [h, g] = Se(
|
|
8961
8961
|
A.fontSize,
|
|
8962
8962
|
A.fontData,
|
|
8963
8963
|
{ left: A.x, top: A.y, width: A.width, height: A.height, rotation: A.rotation },
|
|
@@ -9028,7 +9028,7 @@ class io {
|
|
|
9028
9028
|
A,
|
|
9029
9029
|
async () => {
|
|
9030
9030
|
e.updateMetadata(t.stepName, { color: h, text: g }), e.updateStorage(t.stepName, { text: g, inputText: g });
|
|
9031
|
-
const m = o.map((y) => new
|
|
9031
|
+
const m = o.map((y) => new ln(y.id, u)), f = new U(m);
|
|
9032
9032
|
e.getCommandDispatcher()(f);
|
|
9033
9033
|
}
|
|
9034
9034
|
), o.length === 0 && l) {
|
|
@@ -9141,18 +9141,18 @@ class io {
|
|
|
9141
9141
|
s(g), g && (A = !1);
|
|
9142
9142
|
};
|
|
9143
9143
|
if (n.length > 0) {
|
|
9144
|
-
const g = n.map((f) => new
|
|
9144
|
+
const g = n.map((f) => new ln(f.id, u));
|
|
9145
9145
|
if (l) {
|
|
9146
|
-
const f = n.map((y) => new
|
|
9146
|
+
const f = n.map((y) => new ea(y.id, l));
|
|
9147
9147
|
g.push(...f);
|
|
9148
9148
|
}
|
|
9149
9149
|
if (c) {
|
|
9150
|
-
const f = n.map((y) => new
|
|
9150
|
+
const f = n.map((y) => new aa(y.id, c, t.data.strokeThickness));
|
|
9151
9151
|
g.push(...f);
|
|
9152
9152
|
}
|
|
9153
9153
|
const p = await this.changeInputTextWithRegion(
|
|
9154
9154
|
t,
|
|
9155
|
-
t.data.size ||
|
|
9155
|
+
t.data.size || ia,
|
|
9156
9156
|
u,
|
|
9157
9157
|
a.text || "",
|
|
9158
9158
|
a,
|
|
@@ -9179,7 +9179,7 @@ class io {
|
|
|
9179
9179
|
r
|
|
9180
9180
|
), p = await this.changeInputTextWithRegion(
|
|
9181
9181
|
t,
|
|
9182
|
-
t.data.size ||
|
|
9182
|
+
t.data.size || ia,
|
|
9183
9183
|
u,
|
|
9184
9184
|
g[0]?.newElement.input || a.text || t.data.defaultText || "",
|
|
9185
9185
|
a,
|
|
@@ -9190,13 +9190,13 @@ class io {
|
|
|
9190
9190
|
), m = g.flatMap((y) => y.commands);
|
|
9191
9191
|
if (l) {
|
|
9192
9192
|
const y = g.map(
|
|
9193
|
-
(w) => new
|
|
9193
|
+
(w) => new ea(w.regionElement.id, l)
|
|
9194
9194
|
);
|
|
9195
9195
|
m.push(...y);
|
|
9196
9196
|
}
|
|
9197
9197
|
if (c) {
|
|
9198
9198
|
const y = g.map(
|
|
9199
|
-
(w) => new
|
|
9199
|
+
(w) => new aa(w.newElement.id, c, t.data.strokeThickness)
|
|
9200
9200
|
);
|
|
9201
9201
|
m.push(...y);
|
|
9202
9202
|
}
|
|
@@ -9225,7 +9225,7 @@ class io {
|
|
|
9225
9225
|
const p = s.getLayouts().find((f) => f.panelId === A.panelId), m = N();
|
|
9226
9226
|
try {
|
|
9227
9227
|
if (!p)
|
|
9228
|
-
throw new
|
|
9228
|
+
throw new Me("Failed to find layout for region: " + A.panelId);
|
|
9229
9229
|
const f = await B.ensureFullOption(a.colorOption);
|
|
9230
9230
|
let y;
|
|
9231
9231
|
if (f && f.variants) {
|
|
@@ -9240,7 +9240,7 @@ class io {
|
|
|
9240
9240
|
stepName: t,
|
|
9241
9241
|
align: this.textAlign(a),
|
|
9242
9242
|
fill: r.color ? r.color : x,
|
|
9243
|
-
fontSize: a.size ||
|
|
9243
|
+
fontSize: a.size || ia,
|
|
9244
9244
|
fontData: n,
|
|
9245
9245
|
id: m,
|
|
9246
9246
|
layer: A.layer,
|
|
@@ -9261,7 +9261,7 @@ class io {
|
|
|
9261
9261
|
fillSpotColorDefinition: y
|
|
9262
9262
|
}, v = [], I = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map();
|
|
9263
9263
|
if (!b.fontData) throw new O("Failed to resolve font data for text.");
|
|
9264
|
-
const [R, P] =
|
|
9264
|
+
const [R, P] = Se(
|
|
9265
9265
|
b.fontSize,
|
|
9266
9266
|
b.fontData,
|
|
9267
9267
|
{
|
|
@@ -9289,10 +9289,10 @@ class io {
|
|
|
9289
9289
|
fontData: n
|
|
9290
9290
|
};
|
|
9291
9291
|
} catch (f) {
|
|
9292
|
-
throw console.log(f), new
|
|
9292
|
+
throw console.log(f), new ke("Error adding font to region");
|
|
9293
9293
|
}
|
|
9294
9294
|
}, u = await Promise.all(a.regions.map(d)).catch((A) => {
|
|
9295
|
-
throw A instanceof
|
|
9295
|
+
throw A instanceof ke ? (ao.setLatestToast("Failed to load font.", qe.Error), A) : A instanceof Me ? A : new Error(A);
|
|
9296
9296
|
});
|
|
9297
9297
|
return await s.setSelectionsAndElements(
|
|
9298
9298
|
t,
|
|
@@ -9322,7 +9322,7 @@ class io {
|
|
|
9322
9322
|
const u = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), A = Dt(u, s), h = this.getProcessedInput(A, t.data, o), g = s.getRegionElements(t.stepName), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
9323
9323
|
for (const b of g)
|
|
9324
9324
|
if (b.region) {
|
|
9325
|
-
const [v, I] =
|
|
9325
|
+
const [v, I] = Se(
|
|
9326
9326
|
e,
|
|
9327
9327
|
a,
|
|
9328
9328
|
b.region,
|
|
@@ -9414,7 +9414,7 @@ function Ao(i, t, e, a) {
|
|
|
9414
9414
|
const n = e / i, r = a / t;
|
|
9415
9415
|
return n > 1 && r > 1 ? Math.min(n, r) : n > 1 && r < 1 ? r : n < 1 && r > 1 ? n : Math.min(n, r);
|
|
9416
9416
|
}
|
|
9417
|
-
const
|
|
9417
|
+
const dn = {
|
|
9418
9418
|
m: ["x", "y"],
|
|
9419
9419
|
z: [],
|
|
9420
9420
|
l: ["x", "y"],
|
|
@@ -9444,7 +9444,7 @@ class ho {
|
|
|
9444
9444
|
const n = (r) => {
|
|
9445
9445
|
const s = [], o = r.relative ? r.type : r.type.toUpperCase();
|
|
9446
9446
|
let l = e !== o;
|
|
9447
|
-
const c =
|
|
9447
|
+
const c = dn[r.type];
|
|
9448
9448
|
l && (s.push(o), e = o);
|
|
9449
9449
|
for (const d of c) {
|
|
9450
9450
|
const u = r[d];
|
|
@@ -9469,7 +9469,7 @@ class ho {
|
|
|
9469
9469
|
const e = /([mzlhvcsqta])([^mzlhvcsqta]*)/gi, a = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, n = [];
|
|
9470
9470
|
let r;
|
|
9471
9471
|
for (e.lastIndex = 0; r = e.exec(t); ) {
|
|
9472
|
-
const s = r[1].toLowerCase(), o = (r[2].match(a) || []).map(parseFloat), l = s === r[1], c =
|
|
9472
|
+
const s = r[1].toLowerCase(), o = (r[2].match(a) || []).map(parseFloat), l = s === r[1], c = dn[s];
|
|
9473
9473
|
if (o.length < c.length)
|
|
9474
9474
|
throw new xt(
|
|
9475
9475
|
`Path type "${s}" given ${o.length} arguments, expected ${c.length}.`
|
|
@@ -9585,8 +9585,8 @@ const mo = [
|
|
|
9585
9585
|
"tspan"
|
|
9586
9586
|
], po = async (i, t, e) => {
|
|
9587
9587
|
const a = t.data, n = e.data.baseUrl, r = a.assetUrl.replace("localhost", "localstack"), s = n.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + n);
|
|
9588
|
-
o.searchParams.append("video",
|
|
9589
|
-
const l = o.toString(), d = `data:image/svg+xml;base64,${
|
|
9588
|
+
o.searchParams.append("video", Ka(JSON.stringify([{ href: r }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
|
|
9589
|
+
const l = o.toString(), d = `data:image/svg+xml;base64,${Ka(await Fn(l, { type: "svg" }))}`, u = (h) => {
|
|
9590
9590
|
const g = i.find((m) => m.panelId === h.panelId);
|
|
9591
9591
|
if (!g)
|
|
9592
9592
|
throw new J(h);
|
|
@@ -9616,10 +9616,10 @@ const mo = [
|
|
|
9616
9616
|
const o = await $s(n, a.option);
|
|
9617
9617
|
o && (t[a.stepName] = { selectedVariants: [o] });
|
|
9618
9618
|
const l = async (c) => {
|
|
9619
|
-
const d = await si(c, o?.asset?.fileLink), u = await
|
|
9619
|
+
const d = await si(c, o?.asset?.fileLink), u = await Le(d), A = N(), h = i.find((p) => p.panelId === c.panelId);
|
|
9620
9620
|
if (!h)
|
|
9621
9621
|
throw new J(c);
|
|
9622
|
-
const g =
|
|
9622
|
+
const g = $a(
|
|
9623
9623
|
s,
|
|
9624
9624
|
u,
|
|
9625
9625
|
{
|
|
@@ -9947,7 +9947,7 @@ const mo = [
|
|
|
9947
9947
|
assetUrl: m,
|
|
9948
9948
|
name: f.names.fullName.en
|
|
9949
9949
|
};
|
|
9950
|
-
})(), u = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", A =
|
|
9950
|
+
})(), u = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", A = xe(u, {
|
|
9951
9951
|
vertical: a.data.vertical,
|
|
9952
9952
|
uppercase: a.data.uppercase
|
|
9953
9953
|
}), h = async (m) => {
|
|
@@ -9980,12 +9980,12 @@ const mo = [
|
|
|
9980
9980
|
y: m.top
|
|
9981
9981
|
};
|
|
9982
9982
|
if (d) {
|
|
9983
|
-
const [w, x] =
|
|
9983
|
+
const [w, x] = Se(
|
|
9984
9984
|
a.data.size || s,
|
|
9985
9985
|
d,
|
|
9986
9986
|
m,
|
|
9987
9987
|
[
|
|
9988
|
-
|
|
9988
|
+
xe(A, {
|
|
9989
9989
|
vertical: a.data.vertical,
|
|
9990
9990
|
uppercase: a.data.uppercase
|
|
9991
9991
|
})
|
|
@@ -10107,7 +10107,7 @@ const Bo = () => new Promise((i, t) => {
|
|
|
10107
10107
|
}), Po = Bo();
|
|
10108
10108
|
class Fo {
|
|
10109
10109
|
constructor(t, e, a, n, r) {
|
|
10110
|
-
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new
|
|
10110
|
+
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Qa(2), this.id = t, this.name = e, this.service = a, this.panelSize = n, this.getWorkflowManager = r;
|
|
10111
10111
|
}
|
|
10112
10112
|
getID() {
|
|
10113
10113
|
return this.id;
|
|
@@ -10174,7 +10174,7 @@ class Fo {
|
|
|
10174
10174
|
);
|
|
10175
10175
|
}
|
|
10176
10176
|
}
|
|
10177
|
-
class xo extends
|
|
10177
|
+
class xo extends Na {
|
|
10178
10178
|
constructor(t, e, a, n, r, s) {
|
|
10179
10179
|
super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = r, this.getWorkflowManager = s;
|
|
10180
10180
|
}
|
|
@@ -10224,12 +10224,12 @@ class xo extends Kn {
|
|
|
10224
10224
|
l = m.width, c = m.height;
|
|
10225
10225
|
} else
|
|
10226
10226
|
l = r.width, c = r.height;
|
|
10227
|
-
const d = this.getWorkflowManager?.()?.getTemplatingContext(), u =
|
|
10227
|
+
const d = this.getWorkflowManager?.()?.getTemplatingContext(), u = Oa(t.layoutState.layout, e, {
|
|
10228
10228
|
renderingConfiguration: {
|
|
10229
10229
|
purpose: _t.ThreeD,
|
|
10230
10230
|
templatingContext: d
|
|
10231
10231
|
}
|
|
10232
|
-
}), A =
|
|
10232
|
+
}), A = Qn(u), h = await Ia.from(this.ctx, A, {
|
|
10233
10233
|
anonymousCrossOrigin: !0,
|
|
10234
10234
|
ignoreDimensions: !this.nonPOTSupport,
|
|
10235
10235
|
ignoreAnimation: !0,
|
|
@@ -10244,7 +10244,7 @@ class xo extends Kn {
|
|
|
10244
10244
|
h.resize(l, c), await h.render(), this.onRender();
|
|
10245
10245
|
}
|
|
10246
10246
|
}
|
|
10247
|
-
const
|
|
10247
|
+
const Vd = (i, t) => {
|
|
10248
10248
|
const e = [];
|
|
10249
10249
|
return i.forEach((a) => {
|
|
10250
10250
|
const n = t.steps.find((r) => r.stepName === a.stepName);
|
|
@@ -10255,7 +10255,7 @@ const Ud = (i, t) => {
|
|
|
10255
10255
|
}
|
|
10256
10256
|
});
|
|
10257
10257
|
}), e;
|
|
10258
|
-
},
|
|
10258
|
+
}, Ld = async (i, t, e, a) => {
|
|
10259
10259
|
let n = {
|
|
10260
10260
|
serializableWorkflow: { steps: [] },
|
|
10261
10261
|
layouts: {}
|
|
@@ -10263,7 +10263,7 @@ const Ud = (i, t) => {
|
|
|
10263
10263
|
n = new U(e.map((l) => new ci(l))).apply(n);
|
|
10264
10264
|
const s = await bo(i, t, e, a);
|
|
10265
10265
|
return new U(s).apply(n);
|
|
10266
|
-
},
|
|
10266
|
+
}, ze = C`
|
|
10267
10267
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
10268
10268
|
name
|
|
10269
10269
|
value
|
|
@@ -10286,7 +10286,7 @@ const Ud = (i, t) => {
|
|
|
10286
10286
|
}
|
|
10287
10287
|
}
|
|
10288
10288
|
`, Do = C`
|
|
10289
|
-
${
|
|
10289
|
+
${ze}
|
|
10290
10290
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
10291
10291
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
10292
10292
|
id
|
|
@@ -10296,7 +10296,7 @@ const Ud = (i, t) => {
|
|
|
10296
10296
|
}
|
|
10297
10297
|
}
|
|
10298
10298
|
`, ko = C`
|
|
10299
|
-
${
|
|
10299
|
+
${ze}
|
|
10300
10300
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
10301
10301
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
10302
10302
|
id
|
|
@@ -10306,7 +10306,7 @@ const Ud = (i, t) => {
|
|
|
10306
10306
|
}
|
|
10307
10307
|
}
|
|
10308
10308
|
`, Mo = C`
|
|
10309
|
-
${
|
|
10309
|
+
${ze}
|
|
10310
10310
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
10311
10311
|
globalPropertyState(bundleId: $bundleId) {
|
|
10312
10312
|
id
|
|
@@ -10315,7 +10315,7 @@ const Ud = (i, t) => {
|
|
|
10315
10315
|
}
|
|
10316
10316
|
}
|
|
10317
10317
|
}
|
|
10318
|
-
`,
|
|
10318
|
+
`, zd = async (i) => (await S.getShadowGraphqlClient().query({
|
|
10319
10319
|
query: Mo,
|
|
10320
10320
|
fetchPolicy: "cache-first",
|
|
10321
10321
|
errorPolicy: "all",
|
|
@@ -10323,7 +10323,7 @@ const Ud = (i, t) => {
|
|
|
10323
10323
|
bundleId: i
|
|
10324
10324
|
}
|
|
10325
10325
|
})).data.globalPropertyState, To = (i) => C`
|
|
10326
|
-
${
|
|
10326
|
+
${Ue}
|
|
10327
10327
|
fragment ProductFields on Product {
|
|
10328
10328
|
id
|
|
10329
10329
|
basePrice
|
|
@@ -10367,7 +10367,7 @@ const Ud = (i, t) => {
|
|
|
10367
10367
|
name
|
|
10368
10368
|
}
|
|
10369
10369
|
}
|
|
10370
|
-
`,
|
|
10370
|
+
`, Va = (i) => C`
|
|
10371
10371
|
${To(i)}
|
|
10372
10372
|
fragment ProductCollectionProductFields on ProductCollectionProduct {
|
|
10373
10373
|
id
|
|
@@ -10377,8 +10377,8 @@ const Ud = (i, t) => {
|
|
|
10377
10377
|
...ProductFields
|
|
10378
10378
|
}
|
|
10379
10379
|
}
|
|
10380
|
-
`,
|
|
10381
|
-
${i ?
|
|
10380
|
+
`, Ge = (i, t = !1) => C`
|
|
10381
|
+
${i ? Va(t) : ""}
|
|
10382
10382
|
fragment ProductCollectionFields on ProductCollection {
|
|
10383
10383
|
id
|
|
10384
10384
|
name
|
|
@@ -10449,8 +10449,8 @@ const Ud = (i, t) => {
|
|
|
10449
10449
|
workflowViewerAmendLink
|
|
10450
10450
|
}
|
|
10451
10451
|
`, No = (i) => C`
|
|
10452
|
-
${
|
|
10453
|
-
${
|
|
10452
|
+
${ze}
|
|
10453
|
+
${Ge(i)}
|
|
10454
10454
|
${Ci}
|
|
10455
10455
|
query GetBundle($id: String!) {
|
|
10456
10456
|
globalPropertyState(bundleId: $id) {
|
|
@@ -10483,7 +10483,7 @@ const Ud = (i, t) => {
|
|
|
10483
10483
|
}
|
|
10484
10484
|
}
|
|
10485
10485
|
}
|
|
10486
|
-
`,
|
|
10486
|
+
`, un = C`
|
|
10487
10487
|
query GetBundleStakeholders($id: String!) {
|
|
10488
10488
|
bundles(ids: [$id]) {
|
|
10489
10489
|
id
|
|
@@ -10558,7 +10558,7 @@ const Ud = (i, t) => {
|
|
|
10558
10558
|
}
|
|
10559
10559
|
}
|
|
10560
10560
|
`, Oo = C`
|
|
10561
|
-
${
|
|
10561
|
+
${Va(!1)}
|
|
10562
10562
|
query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
|
|
10563
10563
|
productCollections(ids: [$id], productIds: $productIds) {
|
|
10564
10564
|
id
|
|
@@ -10591,7 +10591,7 @@ const Ud = (i, t) => {
|
|
|
10591
10591
|
}
|
|
10592
10592
|
}
|
|
10593
10593
|
`, $o = C`
|
|
10594
|
-
${
|
|
10594
|
+
${Va(!0)}
|
|
10595
10595
|
query GetProductCollectionForProductsFeed(
|
|
10596
10596
|
$id: String!
|
|
10597
10597
|
$limit: Int
|
|
@@ -10623,7 +10623,7 @@ const Ud = (i, t) => {
|
|
|
10623
10623
|
}
|
|
10624
10624
|
}
|
|
10625
10625
|
`, Uo = (i) => C`
|
|
10626
|
-
${
|
|
10626
|
+
${Ge(i)}
|
|
10627
10627
|
mutation CreateBundle(
|
|
10628
10628
|
$collectionId: String
|
|
10629
10629
|
$initialMetadata: [MetadataInput!]
|
|
@@ -10788,7 +10788,7 @@ const Ud = (i, t) => {
|
|
|
10788
10788
|
}
|
|
10789
10789
|
}
|
|
10790
10790
|
`, Jo = (i) => C`
|
|
10791
|
-
${
|
|
10791
|
+
${Ge(i)}
|
|
10792
10792
|
mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
|
|
10793
10793
|
bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
|
|
10794
10794
|
id
|
|
@@ -10965,11 +10965,11 @@ const Ud = (i, t) => {
|
|
|
10965
10965
|
for (const e in i)
|
|
10966
10966
|
e === t ? delete i[e] : wi(i[e], t);
|
|
10967
10967
|
};
|
|
10968
|
-
var
|
|
10968
|
+
var qe = /* @__PURE__ */ ((i) => (i.Error = "Error", i.Warning = "Warning", i.Info = "Info", i))(qe || {});
|
|
10969
10969
|
const dl = 1e3;
|
|
10970
|
-
class
|
|
10970
|
+
class An extends Na {
|
|
10971
10971
|
constructor(t) {
|
|
10972
|
-
super(), this.
|
|
10972
|
+
super(), this.update = t;
|
|
10973
10973
|
}
|
|
10974
10974
|
async execute() {
|
|
10975
10975
|
await this.update(), await new Promise((t) => {
|
|
@@ -10998,7 +10998,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
10998
10998
|
return a ? Object.values(a.layouts).map((n) => n.layout) : ul(t.panels);
|
|
10999
10999
|
}, Yt = class Yt {
|
|
11000
11000
|
constructor(t, e, a, n, r, s = !1, o, l = !1, c = !1, d = !1) {
|
|
11001
|
-
this.workflowStatePromiseQueue = new
|
|
11001
|
+
this.workflowStatePromiseQueue = new Qa(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (A) => {
|
|
11002
11002
|
this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.stepSpecificServices = {}, this.pollers = [], this.allScenes = [], this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.currentAdjustingStepId = "", this.reloadedState ? this.layouts = Object.values(this.reloadedState.layouts || {}).map((g) => g.layout) : A ? this.layouts = Al(this.experience.getTransaction(), A) : this.layouts = [], this.commandContext.initialize(this.layouts, this.reloadedState), this.renderableContextService = new Io(this.layouts), this.renderableContextService.setWorkflowManager(this), A.steps.forEach((g) => {
|
|
11003
11003
|
this.stepTags[g.stepName] = g.tags ?? [];
|
|
11004
11004
|
});
|
|
@@ -11026,7 +11026,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11026
11026
|
const t = this.experience.getTransaction().recipient, e = { recipient: t };
|
|
11027
11027
|
return this.recipientConversionConfiguration?.requestedDataItems?.forEach((a) => {
|
|
11028
11028
|
const n = a.uniqueIdentifier ?? a.title ?? "";
|
|
11029
|
-
a.type ===
|
|
11029
|
+
a.type === ve.FirstName ? e[n] = t?.firstName : a.type === ve.LastName ? e[n] = t?.lastName : a.type === ve.Custom && (a.customFieldIndex === 1 ? e[n] = t?.customField1 : a.customFieldIndex === 2 ? e[n] = t?.customField2 : a.customFieldIndex === 3 ? e[n] = t?.customField3 : a.customFieldIndex === 4 ? e[n] = t?.customField4 : a.customFieldIndex === 5 && (e[n] = t?.customField5), a.option && (e[n] = a.option.variants?.find((r) => r.id === e[n])?.name));
|
|
11030
11030
|
}), e;
|
|
11031
11031
|
}
|
|
11032
11032
|
async updateRecipient(t, e, a, n, r, s, o, l, c, d, u, A, h, g, p, m, f, y) {
|
|
@@ -11172,7 +11172,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11172
11172
|
selectedVariants: u.selectedVariants.map((A) => ({ id: A.id }))
|
|
11173
11173
|
}), d), {})
|
|
11174
11174
|
), n = B.getOptions(Array.from(a)), r = this.fetchConversionConfiguration();
|
|
11175
|
-
await Promise.all([n, r]), this.allScenes =
|
|
11175
|
+
await Promise.all([n, r]), this.allScenes = en(t);
|
|
11176
11176
|
const o = (await lt(this.allScenes, this.stepSelections)).map((d) => d.silentSteps).flat(), { stepElements: l, commands: c } = await this.stepElementsForIntroducedSilentSteps(o, !!this.reloadedState);
|
|
11177
11177
|
this.commandContext.apply(new U(c), !0), this.stepElements = { ...this.stepElements, ...l }, await this.ensureStepsAreLoaded(), this.isReloadedTransaction || this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
|
|
11178
11178
|
}
|
|
@@ -11195,7 +11195,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11195
11195
|
const e = /* @__PURE__ */ new Set(), a = this.experience.getWorkflow();
|
|
11196
11196
|
if (!a)
|
|
11197
11197
|
return e;
|
|
11198
|
-
const n =
|
|
11198
|
+
const n = en(a), r = { ...t };
|
|
11199
11199
|
let s = -1;
|
|
11200
11200
|
for (; ; ) {
|
|
11201
11201
|
const c = (await lt(n, r)).flatMap((d) => d.renderableSteps);
|
|
@@ -11445,7 +11445,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11445
11445
|
};
|
|
11446
11446
|
if (!Kt(a, this.storage)) {
|
|
11447
11447
|
this.storage = a;
|
|
11448
|
-
const n = new
|
|
11448
|
+
const n = new on(this.constructSerializableWorkflow());
|
|
11449
11449
|
this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
|
|
11450
11450
|
}
|
|
11451
11451
|
}
|
|
@@ -11464,7 +11464,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11464
11464
|
if (this.readOnly) return;
|
|
11465
11465
|
const t = this.serialize();
|
|
11466
11466
|
this.workflowStatePromiseQueue.enqueue(
|
|
11467
|
-
new
|
|
11467
|
+
new An(async () => {
|
|
11468
11468
|
await new Promise((e) => {
|
|
11469
11469
|
setTimeout(() => {
|
|
11470
11470
|
e();
|
|
@@ -11481,7 +11481,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11481
11481
|
async updateStateWithServerImmediate() {
|
|
11482
11482
|
if (this.readOnly) return;
|
|
11483
11483
|
const t = this.serialize();
|
|
11484
|
-
return new
|
|
11484
|
+
return new An(async () => {
|
|
11485
11485
|
await this.updateTransaction({
|
|
11486
11486
|
variables: {
|
|
11487
11487
|
id: this.experience.getTransaction().id,
|
|
@@ -11551,10 +11551,10 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11551
11551
|
return Promise.resolve({ stepElements: {}, commands: [] });
|
|
11552
11552
|
const n = async (c, d, u) => {
|
|
11553
11553
|
if (c.type === E.SilentIllustration) {
|
|
11554
|
-
const A = await new
|
|
11554
|
+
const A = await new cn(c, d).trigger();
|
|
11555
11555
|
return { step: c, results: A };
|
|
11556
11556
|
} else if (c.type === E.ProductOverlay) {
|
|
11557
|
-
const A = await new
|
|
11557
|
+
const A = await new cn(
|
|
11558
11558
|
c,
|
|
11559
11559
|
d,
|
|
11560
11560
|
u
|
|
@@ -11656,7 +11656,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11656
11656
|
}, this.removeElements(h);
|
|
11657
11657
|
const m = r.steps.find((v) => v.stepName === t);
|
|
11658
11658
|
m?.type === E.Frame && this.getWorkflowExperience().getStepById(m.stepName)?.frameService?.setTargetElements(a.map((I) => I.id));
|
|
11659
|
-
const f = h.map((v) => new Ot(v.id)), y = new
|
|
11659
|
+
const f = h.map((v) => new Ot(v.id)), y = new on(this.constructSerializableWorkflow()), w = [...p, ...f, y];
|
|
11660
11660
|
w.length > 0 && this.commandContext.apply(new U(w), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
11661
11661
|
const x = await this.getInvalidModelVariants(), b = this.modelContainer;
|
|
11662
11662
|
if (b) {
|
|
@@ -11705,7 +11705,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11705
11705
|
break;
|
|
11706
11706
|
case E.Illustration:
|
|
11707
11707
|
a.push(
|
|
11708
|
-
|
|
11708
|
+
ye.init(l, this, this.reloadedState)
|
|
11709
11709
|
);
|
|
11710
11710
|
break;
|
|
11711
11711
|
case E.Material:
|
|
@@ -12037,7 +12037,7 @@ class hl extends tt {
|
|
|
12037
12037
|
*/
|
|
12038
12038
|
async selectVariant(t) {
|
|
12039
12039
|
if (!this.getUpdateState() && this.getCurrentVariant() !== t)
|
|
12040
|
-
return
|
|
12040
|
+
return ye.selectVariant(
|
|
12041
12041
|
this.step,
|
|
12042
12042
|
t.getResource(),
|
|
12043
12043
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -12079,7 +12079,7 @@ class hl extends tt {
|
|
|
12079
12079
|
const c = l.id.replace(/\W/g, "");
|
|
12080
12080
|
a ? n.set(c, { browserValue: e, pmsValue: a }) : n.set(c, e);
|
|
12081
12081
|
}
|
|
12082
|
-
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e),
|
|
12082
|
+
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), ye.changeColors(
|
|
12083
12083
|
this.step,
|
|
12084
12084
|
this.manager.getRegionElements(this.step.stepName),
|
|
12085
12085
|
this.manager,
|
|
@@ -12090,7 +12090,7 @@ class hl extends tt {
|
|
|
12090
12090
|
return await B.ensureFullOption(this.step.data.colorOption);
|
|
12091
12091
|
}
|
|
12092
12092
|
getAvailableColors() {
|
|
12093
|
-
return this.step.data.colorPickerEnabled ?
|
|
12093
|
+
return this.step.data.colorPickerEnabled ? ye.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
12094
12094
|
}
|
|
12095
12095
|
isColorPickerEnabled() {
|
|
12096
12096
|
return this.step.data.colorPickerEnabled ?? !1;
|
|
@@ -12258,7 +12258,7 @@ class wl extends tt {
|
|
|
12258
12258
|
...this.manager.getInformationResults(),
|
|
12259
12259
|
{
|
|
12260
12260
|
message: e,
|
|
12261
|
-
messageType:
|
|
12261
|
+
messageType: qe.Error,
|
|
12262
12262
|
stepID: this.step.stepName
|
|
12263
12263
|
}
|
|
12264
12264
|
]);
|
|
@@ -12509,7 +12509,7 @@ class vl extends tt {
|
|
|
12509
12509
|
...this.manager.getInformationResults(),
|
|
12510
12510
|
{
|
|
12511
12511
|
message: e,
|
|
12512
|
-
messageType:
|
|
12512
|
+
messageType: qe.Error,
|
|
12513
12513
|
stepID: this.step.stepName
|
|
12514
12514
|
}
|
|
12515
12515
|
];
|
|
@@ -12543,7 +12543,7 @@ class ge {
|
|
|
12543
12543
|
case E.Model:
|
|
12544
12544
|
return new ml(t, e, t.getStepTags(e.stepName));
|
|
12545
12545
|
case E.Frame:
|
|
12546
|
-
return new
|
|
12546
|
+
return new yc(t, e, t.getStepTags(e.stepName));
|
|
12547
12547
|
case E.Module:
|
|
12548
12548
|
return new vl(t, e, t.getStepTags(e.stepName));
|
|
12549
12549
|
default:
|
|
@@ -12591,7 +12591,7 @@ const El = C`
|
|
|
12591
12591
|
}
|
|
12592
12592
|
}
|
|
12593
12593
|
`;
|
|
12594
|
-
function
|
|
12594
|
+
function Te(i) {
|
|
12595
12595
|
const t = JSON.parse(atob(i.split(".")[1])).exp;
|
|
12596
12596
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
|
12597
12597
|
}
|
|
@@ -12605,7 +12605,7 @@ const Il = async (i, t) => {
|
|
|
12605
12605
|
throw new Error();
|
|
12606
12606
|
} catch {
|
|
12607
12607
|
const s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))?.[0] || "", o = localStorage.getItem(s);
|
|
12608
|
-
o && !
|
|
12608
|
+
o && !Te(o) && (e.Authorization = `Bearer ${o}`);
|
|
12609
12609
|
}
|
|
12610
12610
|
return await t.getBetaEnabled() && (e["X-Spiff-Beta"] = "true"), (await S.getShadowGraphqlClient().mutate({
|
|
12611
12611
|
mutation: bl,
|
|
@@ -12627,7 +12627,7 @@ const Il = async (i, t) => {
|
|
|
12627
12627
|
headers: e
|
|
12628
12628
|
}
|
|
12629
12629
|
})).data?.designCreateMany;
|
|
12630
|
-
},
|
|
12630
|
+
}, hn = (i, t, e) => {
|
|
12631
12631
|
const a = (r) => {
|
|
12632
12632
|
const s = {};
|
|
12633
12633
|
if (r.type === "Frame") {
|
|
@@ -12708,7 +12708,7 @@ const Il = async (i, t) => {
|
|
|
12708
12708
|
return r && (h.metadata = r), a && (h.selectedVariants = a), n && (h.sku = n), h;
|
|
12709
12709
|
}, Fl = async (i, t, e, a, n, r, s, o, l, c) => {
|
|
12710
12710
|
c && (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(a())), await i.updateStateWithServerImmediate(a), console.log("Server state is undefined @ Workflow completion"));
|
|
12711
|
-
const d = i.getPreviewService(), u = t?.finalizeStepConfig?.lookAtAnimation, A = d && t.showModelOnFinishStep && !!u, h = l &&
|
|
12711
|
+
const d = i.getPreviewService(), u = t?.finalizeStepConfig?.lookAtAnimation, A = d && t.showModelOnFinishStep && !!u, h = l && hn(l, t, !0), g = l && hn(l, t, !1), p = async (v) => {
|
|
12712
12712
|
const I = {};
|
|
12713
12713
|
let M = 0;
|
|
12714
12714
|
if (Object.keys(r).length > 0)
|
|
@@ -12750,7 +12750,7 @@ const Il = async (i, t) => {
|
|
|
12750
12750
|
const v = await (await nt(x)).blob();
|
|
12751
12751
|
x = (await W.uploadAsset(
|
|
12752
12752
|
{ name: `${n.id}-preview-image.png`, blob: v },
|
|
12753
|
-
|
|
12753
|
+
be.Image,
|
|
12754
12754
|
!0,
|
|
12755
12755
|
!1
|
|
12756
12756
|
)).fileLink;
|
|
@@ -12912,7 +12912,7 @@ class xl {
|
|
|
12912
12912
|
throw new O("Unexpected storage method requested");
|
|
12913
12913
|
}
|
|
12914
12914
|
}
|
|
12915
|
-
const
|
|
12915
|
+
const ra = new xl(), Dl = C`
|
|
12916
12916
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
12917
12917
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
12918
12918
|
id
|
|
@@ -12954,8 +12954,8 @@ const sa = new xl(), Dl = C`
|
|
|
12954
12954
|
id
|
|
12955
12955
|
}
|
|
12956
12956
|
}
|
|
12957
|
-
`,
|
|
12958
|
-
${
|
|
12957
|
+
`, gn = C`
|
|
12958
|
+
${Ue}
|
|
12959
12959
|
${re}
|
|
12960
12960
|
mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String) {
|
|
12961
12961
|
transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
|
|
@@ -13042,8 +13042,8 @@ const sa = new xl(), Dl = C`
|
|
|
13042
13042
|
var Sa = /* @__PURE__ */ ((i) => (i.PriceBreakChanged = "PriceBreakChanged", i.ProductChanged = "ProductChanged", i.QuantityChanged = "QuantityChanged", i.RecipientChanged = "RecipientChanged", i.SelectionChanged = "SelectionChanged", i))(Sa || {});
|
|
13043
13043
|
class Tl {
|
|
13044
13044
|
constructor(t, e) {
|
|
13045
|
-
this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate =
|
|
13046
|
-
await
|
|
13045
|
+
this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = Pn(async () => {
|
|
13046
|
+
await ra.getSavedDesignByTransaction(this.getTransaction().id) && this.save();
|
|
13047
13047
|
}, 2500), this.getCanvasObjectURLAsync = async (a) => new Promise((n, r) => {
|
|
13048
13048
|
try {
|
|
13049
13049
|
a.toBlob((s) => {
|
|
@@ -13101,7 +13101,7 @@ class Tl {
|
|
|
13101
13101
|
async setProduct(t) {
|
|
13102
13102
|
this.workflow = void 0;
|
|
13103
13103
|
const e = await this.graphQlClient().mutate({
|
|
13104
|
-
mutation:
|
|
13104
|
+
mutation: gn,
|
|
13105
13105
|
variables: {
|
|
13106
13106
|
id: this.getTransaction().id,
|
|
13107
13107
|
integrationProductId: t
|
|
@@ -13127,7 +13127,7 @@ class Tl {
|
|
|
13127
13127
|
try {
|
|
13128
13128
|
const r = n?.getDefaultWorkflow();
|
|
13129
13129
|
if (r) {
|
|
13130
|
-
const s = await
|
|
13130
|
+
const s = await hc(r.getId());
|
|
13131
13131
|
await this.setWorkflow(s), console.log("Setting Product - Workflow set to default for product.");
|
|
13132
13132
|
}
|
|
13133
13133
|
} catch {
|
|
@@ -13141,7 +13141,7 @@ class Tl {
|
|
|
13141
13141
|
"ProductChanged"
|
|
13142
13142
|
/* ProductChanged */
|
|
13143
13143
|
), await this.graphQlClient().mutate({
|
|
13144
|
-
mutation:
|
|
13144
|
+
mutation: gn,
|
|
13145
13145
|
variables: {
|
|
13146
13146
|
id: this.getTransaction().id
|
|
13147
13147
|
}
|
|
@@ -13223,14 +13223,14 @@ class Tl {
|
|
|
13223
13223
|
height: d.layoutState.layout.height
|
|
13224
13224
|
}, A = this.workflowManager.getCommandContext().getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
|
|
13225
13225
|
if (!h)
|
|
13226
|
-
throw new
|
|
13227
|
-
const g = this.workflowManager.getTemplatingContext(), p =
|
|
13226
|
+
throw new Qe("Failed to obtain 2D context for preview image creation");
|
|
13227
|
+
const g = this.workflowManager.getTemplatingContext(), p = Oa(A.layoutState.layout, A.layoutState.elements, {
|
|
13228
13228
|
renderingConfiguration: {
|
|
13229
13229
|
purpose: _t.Print,
|
|
13230
13230
|
region: { left: u.x, top: u.y, width: u.width, height: u.height },
|
|
13231
13231
|
templatingContext: g
|
|
13232
13232
|
}
|
|
13233
|
-
}), m =
|
|
13233
|
+
}), m = Qn(p);
|
|
13234
13234
|
await (await Ia.from(h, m, {
|
|
13235
13235
|
anonymousCrossOrigin: !0,
|
|
13236
13236
|
ignoreDimensions: !1,
|
|
@@ -13398,7 +13398,7 @@ class Tl {
|
|
|
13398
13398
|
const s = {
|
|
13399
13399
|
title: await (async () => {
|
|
13400
13400
|
if (t) return t;
|
|
13401
|
-
const o = this.getTransaction().id, c = (await
|
|
13401
|
+
const o = this.getTransaction().id, c = (await ra.getSavedDesigns()).find((d) => d.transactionId === o)?.title;
|
|
13402
13402
|
return c || "My design";
|
|
13403
13403
|
})(),
|
|
13404
13404
|
thumbnail: await this.createPreviewImage(!1, 256),
|
|
@@ -13409,7 +13409,7 @@ class Tl {
|
|
|
13409
13409
|
workflowId: a.id,
|
|
13410
13410
|
lastEdited: /* @__PURE__ */ new Date()
|
|
13411
13411
|
};
|
|
13412
|
-
return await
|
|
13412
|
+
return await ra.addDesign(s), s;
|
|
13413
13413
|
}
|
|
13414
13414
|
async copy() {
|
|
13415
13415
|
const t = It(this.getCommandContext().getState());
|
|
@@ -13633,7 +13633,7 @@ class Ol {
|
|
|
13633
13633
|
return e ? t.filter((a) => this.aspectConditionsSatisfied(a.getRawProperty(), e)) : t;
|
|
13634
13634
|
}
|
|
13635
13635
|
aspectConditionsSatisfied(t, e) {
|
|
13636
|
-
return !t.conditions || t.conditions.length === 0 ? !0 : (t.conditionMode ===
|
|
13636
|
+
return !t.conditions || t.conditions.length === 0 ? !0 : (t.conditionMode === xn.AND ? Array.prototype.every.bind(t.conditions) : Array.prototype.some.bind(t.conditions))((n) => {
|
|
13637
13637
|
const r = e.aspects.find((s) => s.name === n.targetAspectName);
|
|
13638
13638
|
return r ? n.requiredVariantSelections.some((s) => s === r.value) : !1;
|
|
13639
13639
|
});
|
|
@@ -13643,14 +13643,14 @@ class Ol {
|
|
|
13643
13643
|
case z.FileUpload:
|
|
13644
13644
|
return new Rl(this.bundle, t).initialize();
|
|
13645
13645
|
case z.ColorOption:
|
|
13646
|
-
return new
|
|
13646
|
+
return new mn(
|
|
13647
13647
|
this.bundle,
|
|
13648
13648
|
t,
|
|
13649
13649
|
t.entityId ? await B.getOption(t.entityId) : void 0
|
|
13650
13650
|
);
|
|
13651
13651
|
case z.Option: {
|
|
13652
13652
|
const e = t.entityId ? await B.getOption(t.entityId) : void 0;
|
|
13653
|
-
return e?.type === "Color" ? new
|
|
13653
|
+
return e?.type === "Color" ? new mn(this.bundle, t, e) : new Si(this.bundle, t, e);
|
|
13654
13654
|
}
|
|
13655
13655
|
case z.Text:
|
|
13656
13656
|
return new $l(this.bundle, t);
|
|
@@ -13659,7 +13659,7 @@ class Ol {
|
|
|
13659
13659
|
}
|
|
13660
13660
|
}
|
|
13661
13661
|
}
|
|
13662
|
-
class
|
|
13662
|
+
class La {
|
|
13663
13663
|
constructor(t, e) {
|
|
13664
13664
|
this.bundle = t, this.property = e;
|
|
13665
13665
|
}
|
|
@@ -13727,7 +13727,7 @@ class Ua {
|
|
|
13727
13727
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
|
13728
13728
|
}
|
|
13729
13729
|
}
|
|
13730
|
-
class Rl extends
|
|
13730
|
+
class Rl extends La {
|
|
13731
13731
|
constructor(t, e) {
|
|
13732
13732
|
super(t, e);
|
|
13733
13733
|
}
|
|
@@ -13738,7 +13738,7 @@ class Rl extends Ua {
|
|
|
13738
13738
|
const t = await this.getImage();
|
|
13739
13739
|
if (t?.fileLink)
|
|
13740
13740
|
if (t?.fileLink.endsWith(".svg")) {
|
|
13741
|
-
const e = await at(t?.fileLink), a = await
|
|
13741
|
+
const e = await at(t?.fileLink), a = await Ua(t?.fileLink), n = a.width, r = a.height, s = await ot(e);
|
|
13742
13742
|
this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)?.colors?.forEach((c) => {
|
|
13743
13743
|
s.colors[c.key] = {
|
|
13744
13744
|
browserValue: c.browserValue,
|
|
@@ -13979,7 +13979,7 @@ class Rl extends Ua {
|
|
|
13979
13979
|
);
|
|
13980
13980
|
}
|
|
13981
13981
|
}
|
|
13982
|
-
class $l extends
|
|
13982
|
+
class $l extends La {
|
|
13983
13983
|
constructor(t, e) {
|
|
13984
13984
|
super(t, e);
|
|
13985
13985
|
}
|
|
@@ -14018,7 +14018,7 @@ class $l extends Ua {
|
|
|
14018
14018
|
await Promise.all(n);
|
|
14019
14019
|
}
|
|
14020
14020
|
}
|
|
14021
|
-
class Si extends
|
|
14021
|
+
class Si extends La {
|
|
14022
14022
|
constructor(t, e, a) {
|
|
14023
14023
|
super(t, e), this.optionResource = a;
|
|
14024
14024
|
}
|
|
@@ -14090,7 +14090,7 @@ class Si extends Ua {
|
|
|
14090
14090
|
await Promise.all(n);
|
|
14091
14091
|
}
|
|
14092
14092
|
}
|
|
14093
|
-
class
|
|
14093
|
+
class mn extends Si {
|
|
14094
14094
|
constructor(t, e, a) {
|
|
14095
14095
|
super(t, e, a);
|
|
14096
14096
|
}
|
|
@@ -14179,17 +14179,29 @@ function vi(i) {
|
|
|
14179
14179
|
e.value !== "" && t.set(e.name, !0);
|
|
14180
14180
|
}), t;
|
|
14181
14181
|
}
|
|
14182
|
-
|
|
14182
|
+
class Gl extends Na {
|
|
14183
|
+
constructor(t) {
|
|
14184
|
+
super(), this.update = t;
|
|
14185
|
+
}
|
|
14186
|
+
async execute() {
|
|
14187
|
+
await this.update(), await new Promise((t) => {
|
|
14188
|
+
window.setTimeout(() => {
|
|
14189
|
+
t();
|
|
14190
|
+
}, 1e3);
|
|
14191
|
+
});
|
|
14192
|
+
}
|
|
14193
|
+
}
|
|
14194
|
+
function sa(i) {
|
|
14183
14195
|
return va(i, ["__typename"]);
|
|
14184
14196
|
}
|
|
14185
|
-
class
|
|
14197
|
+
class ql {
|
|
14186
14198
|
constructor(t, e, a, n, r) {
|
|
14187
|
-
this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = r;
|
|
14199
|
+
this.stateUpdateQueue = new Qa(1), this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = r;
|
|
14188
14200
|
const s = r?.existingGlobalPropertyState;
|
|
14189
14201
|
this.initPromise = s ? Promise.resolve(s).then(() => {
|
|
14190
|
-
console.log("Setting global property state to existing state."), this.globalPropertyState =
|
|
14202
|
+
console.log("Setting global property state to existing state."), this.globalPropertyState = sa(s), this.recalculateMandatoryStates();
|
|
14191
14203
|
}) : this.createGlobalPropertyState().then((o) => {
|
|
14192
|
-
console.log("Setting global property state to new state."), this.globalPropertyState =
|
|
14204
|
+
console.log("Setting global property state to new state."), this.globalPropertyState = sa(o), this.recalculateMandatoryStates();
|
|
14193
14205
|
}), this.onGlobalPropertyStateChange = n;
|
|
14194
14206
|
}
|
|
14195
14207
|
async clearAspects(t) {
|
|
@@ -14219,7 +14231,7 @@ class Gl {
|
|
|
14219
14231
|
async setGlobalPropertyState(t) {
|
|
14220
14232
|
this.globalPropertyState || await this.initPromise;
|
|
14221
14233
|
const e = It(this.globalPropertyState);
|
|
14222
|
-
this.globalPropertyState = { ...
|
|
14234
|
+
this.globalPropertyState = { ...sa(t), id: e.id }, this.recalculateMandatoryStates(), this.queueGlobalPropertyStateUpdate(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
|
|
14223
14235
|
}
|
|
14224
14236
|
getAspectMandatoryFulfilled(t) {
|
|
14225
14237
|
return this.mandatoryFulfilledAspects.get(t);
|
|
@@ -14278,7 +14290,7 @@ class Gl {
|
|
|
14278
14290
|
storage: a !== null ? a : void 0,
|
|
14279
14291
|
channel: n
|
|
14280
14292
|
});
|
|
14281
|
-
Kt(s, this.globalPropertyState) || (
|
|
14293
|
+
Kt(s, this.globalPropertyState) || (this.queueGlobalPropertyStateUpdate(), await this.onGlobalPropertyStateChange(s, this.globalPropertyState));
|
|
14282
14294
|
}
|
|
14283
14295
|
async setAspectStorage(t, e, a) {
|
|
14284
14296
|
if (!this.globalPropertyState)
|
|
@@ -14305,12 +14317,19 @@ class Gl {
|
|
|
14305
14317
|
storage: e !== null ? e : void 0,
|
|
14306
14318
|
channel: a
|
|
14307
14319
|
});
|
|
14308
|
-
Kt(r, this.globalPropertyState) || (
|
|
14320
|
+
Kt(r, this.globalPropertyState) || (this.queueGlobalPropertyStateUpdate(), await this.onGlobalPropertyStateChange(r, this.globalPropertyState));
|
|
14321
|
+
}
|
|
14322
|
+
queueGlobalPropertyStateUpdate() {
|
|
14323
|
+
this.stateUpdateQueue.enqueue(
|
|
14324
|
+
new Gl(async () => {
|
|
14325
|
+
await this.updateGlobalPropertyState();
|
|
14326
|
+
})
|
|
14327
|
+
);
|
|
14309
14328
|
}
|
|
14310
14329
|
async updateGlobalPropertyState() {
|
|
14311
14330
|
if (!this.globalPropertyState)
|
|
14312
14331
|
throw new Error("Global property state not initialized");
|
|
14313
|
-
|
|
14332
|
+
if (!(await S.getShadowGraphqlClient().mutate({
|
|
14314
14333
|
mutation: ko,
|
|
14315
14334
|
variables: {
|
|
14316
14335
|
id: this.globalPropertyState.id,
|
|
@@ -14346,10 +14365,7 @@ class Gl {
|
|
|
14346
14365
|
...this.bundleOptions?.additionalHeaders
|
|
14347
14366
|
}
|
|
14348
14367
|
}
|
|
14349
|
-
})
|
|
14350
|
-
if (t.data?.globalPropertyStateUpdate)
|
|
14351
|
-
this.globalPropertyState = me(t.data.globalPropertyStateUpdate);
|
|
14352
|
-
else
|
|
14368
|
+
})).data?.globalPropertyStateUpdate)
|
|
14353
14369
|
throw new Error("Unable to update global property state");
|
|
14354
14370
|
}
|
|
14355
14371
|
async createGlobalPropertyState() {
|
|
@@ -14370,7 +14386,7 @@ class Gl {
|
|
|
14370
14386
|
throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
|
|
14371
14387
|
}
|
|
14372
14388
|
}
|
|
14373
|
-
class
|
|
14389
|
+
class Wl {
|
|
14374
14390
|
constructor(t) {
|
|
14375
14391
|
this.setState(t || '{"transactions": []}');
|
|
14376
14392
|
}
|
|
@@ -14396,7 +14412,7 @@ class ql {
|
|
|
14396
14412
|
a === e ? delete t[a] : this.deleteFieldNameFromObjectRecursive(t[a], e);
|
|
14397
14413
|
}
|
|
14398
14414
|
}
|
|
14399
|
-
const
|
|
14415
|
+
const Hl = C`
|
|
14400
14416
|
query GetManyMetafields($entityIds: [String!]!) {
|
|
14401
14417
|
metafieldsMany(entityIds: $entityIds) {
|
|
14402
14418
|
id
|
|
@@ -14409,7 +14425,7 @@ const Wl = C`
|
|
|
14409
14425
|
}
|
|
14410
14426
|
}
|
|
14411
14427
|
`;
|
|
14412
|
-
class
|
|
14428
|
+
class jl {
|
|
14413
14429
|
constructor() {
|
|
14414
14430
|
this.internalMap = /* @__PURE__ */ new Map();
|
|
14415
14431
|
}
|
|
@@ -14430,7 +14446,7 @@ class Hl {
|
|
|
14430
14446
|
async ensureIdsArePresent(t) {
|
|
14431
14447
|
if (t.every((a) => this.internalMap.has(a))) return;
|
|
14432
14448
|
const e = await S.getShadowGraphqlClient().query({
|
|
14433
|
-
query:
|
|
14449
|
+
query: Hl,
|
|
14434
14450
|
errorPolicy: "all",
|
|
14435
14451
|
variables: {
|
|
14436
14452
|
entityIds: t.filter((a) => !this.internalMap.has(a))
|
|
@@ -14479,8 +14495,8 @@ class Hl {
|
|
|
14479
14495
|
return this.internalMap.has(t) ? this.internalMap.get(t).find((r) => r.metafieldConfigurationId === e) : void 0;
|
|
14480
14496
|
}
|
|
14481
14497
|
}
|
|
14482
|
-
const Ea = new
|
|
14483
|
-
var
|
|
14498
|
+
const Ea = new jl();
|
|
14499
|
+
var Yl = /* @__PURE__ */ ((i) => (i.Default = "Default", i.Name = "Name", i.Price = "Price", i))(Yl || {});
|
|
14484
14500
|
class Ei {
|
|
14485
14501
|
constructor(t) {
|
|
14486
14502
|
this.fullFetched = !1, this.collection = t;
|
|
@@ -14533,14 +14549,14 @@ class Ei {
|
|
|
14533
14549
|
getProducts() {
|
|
14534
14550
|
if (!this.collection.productCollectionProducts)
|
|
14535
14551
|
throw new Error("Failed to find products on collection. Ensure you fetch them first!");
|
|
14536
|
-
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new
|
|
14552
|
+
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new me(t));
|
|
14537
14553
|
}
|
|
14538
14554
|
/**
|
|
14539
14555
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
14540
14556
|
*/
|
|
14541
14557
|
async fetchProducts(t) {
|
|
14542
14558
|
if (this.fullFetched)
|
|
14543
|
-
return (this.collection.productCollectionProducts ?? []).filter((n) => !!n.product).map((n) => new
|
|
14559
|
+
return (this.collection.productCollectionProducts ?? []).filter((n) => !!n.product).map((n) => new me(n));
|
|
14544
14560
|
const e = await S.getShadowGraphqlClient().query({
|
|
14545
14561
|
query: Oo,
|
|
14546
14562
|
variables: {
|
|
@@ -14554,7 +14570,7 @@ class Ei {
|
|
|
14554
14570
|
...e.data.productCollections[0].productCollectionProducts?.filter(
|
|
14555
14571
|
(n) => !a.some((r) => n.id === r.id)
|
|
14556
14572
|
) || []
|
|
14557
|
-
], this.collection.productCollectionProducts.length >= this.collection.total && (this.fullFetched = !0), this.collection.productCollectionProducts.filter((n) => !!n.product && (!t || t.includes(n.product.id))).map((n) => new
|
|
14573
|
+
], this.collection.productCollectionProducts.length >= this.collection.total && (this.fullFetched = !0), this.collection.productCollectionProducts.filter((n) => !!n.product && (!t || t.includes(n.product.id))).map((n) => new me(n));
|
|
14558
14574
|
}
|
|
14559
14575
|
/**
|
|
14560
14576
|
* Returns a list of collections products matching the associated metafield/tag filters.
|
|
@@ -14644,7 +14660,7 @@ class Ei {
|
|
|
14644
14660
|
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))
|
|
14645
14661
|
return;
|
|
14646
14662
|
c.abort(), h = !0, g.unsubscribe();
|
|
14647
|
-
const m = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new
|
|
14663
|
+
const m = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new me(It(f))) || [];
|
|
14648
14664
|
A({
|
|
14649
14665
|
items: m,
|
|
14650
14666
|
// Clone items because it could be cached data (immutable)
|
|
@@ -14664,7 +14680,7 @@ class Ei {
|
|
|
14664
14680
|
return this.collection;
|
|
14665
14681
|
}
|
|
14666
14682
|
}
|
|
14667
|
-
class
|
|
14683
|
+
class me {
|
|
14668
14684
|
constructor(t) {
|
|
14669
14685
|
this.product = t.product, this.productResource = t;
|
|
14670
14686
|
}
|
|
@@ -14808,21 +14824,21 @@ class jt {
|
|
|
14808
14824
|
return Ta(a, t * n, "webp", e);
|
|
14809
14825
|
}
|
|
14810
14826
|
}
|
|
14811
|
-
const
|
|
14812
|
-
${
|
|
14827
|
+
const Jl = C`
|
|
14828
|
+
${Ge(!1)}
|
|
14813
14829
|
query GetProductCollections($ids: [String!]!) {
|
|
14814
14830
|
productCollections(ids: $ids) {
|
|
14815
14831
|
...ProductCollectionFields
|
|
14816
14832
|
}
|
|
14817
14833
|
}
|
|
14818
|
-
`,
|
|
14819
|
-
query:
|
|
14834
|
+
`, Gd = async (i) => (await S.getShadowGraphqlClient().query({
|
|
14835
|
+
query: Jl,
|
|
14820
14836
|
errorPolicy: "all",
|
|
14821
14837
|
variables: {
|
|
14822
14838
|
ids: i
|
|
14823
14839
|
}
|
|
14824
14840
|
})).data?.productCollections?.map((e) => new Ei(e));
|
|
14825
|
-
class
|
|
14841
|
+
class Kl {
|
|
14826
14842
|
constructor() {
|
|
14827
14843
|
this.listeners = {};
|
|
14828
14844
|
}
|
|
@@ -14849,7 +14865,7 @@ class Jl {
|
|
|
14849
14865
|
delete this.listeners[e];
|
|
14850
14866
|
}
|
|
14851
14867
|
}
|
|
14852
|
-
const
|
|
14868
|
+
const _l = C`
|
|
14853
14869
|
mutation AddAddressToBundle(
|
|
14854
14870
|
$bundleId: String!
|
|
14855
14871
|
$streetAddress: String
|
|
@@ -14871,13 +14887,13 @@ const Kl = C`
|
|
|
14871
14887
|
id
|
|
14872
14888
|
}
|
|
14873
14889
|
}
|
|
14874
|
-
`,
|
|
14890
|
+
`, Xl = C`
|
|
14875
14891
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14876
14892
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14877
14893
|
id
|
|
14878
14894
|
}
|
|
14879
14895
|
}
|
|
14880
|
-
`,
|
|
14896
|
+
`, Zl = C`
|
|
14881
14897
|
mutation GenerateQuoteId($id: String!) {
|
|
14882
14898
|
bundleGenerateQuoteId(id: $id) {
|
|
14883
14899
|
id
|
|
@@ -14885,11 +14901,11 @@ const Kl = C`
|
|
|
14885
14901
|
}
|
|
14886
14902
|
}
|
|
14887
14903
|
`;
|
|
14888
|
-
class
|
|
14904
|
+
class pn {
|
|
14889
14905
|
constructor(t, e, a, n, r, s, o) {
|
|
14890
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
|
14906
|
+
this.workflowExperiences = [], this.eventEmitter = new Kl(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = r, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Wl(e.bundleStateData);
|
|
14891
14907
|
const l = this.productCollection?.globalPropertyConfiguration;
|
|
14892
|
-
this.globalConfigurationPropertyId = l?.id, this.globalPropertyStateManager = new
|
|
14908
|
+
this.globalConfigurationPropertyId = l?.id, this.globalPropertyStateManager = new ql(
|
|
14893
14909
|
this.id,
|
|
14894
14910
|
this.ownerId,
|
|
14895
14911
|
l,
|
|
@@ -14900,7 +14916,7 @@ class gn {
|
|
|
14900
14916
|
const c = this.bundleStateManager.getState();
|
|
14901
14917
|
if (c.integrationProductIds && c.integrationProductIds.length > 0) {
|
|
14902
14918
|
const d = await S.getShadowGraphqlClient().query({
|
|
14903
|
-
query:
|
|
14919
|
+
query: Kn,
|
|
14904
14920
|
variables: {
|
|
14905
14921
|
ids: c.integrationProductIds
|
|
14906
14922
|
},
|
|
@@ -15027,7 +15043,7 @@ class gn {
|
|
|
15027
15043
|
}
|
|
15028
15044
|
async generateQuoteId() {
|
|
15029
15045
|
const e = (await S.getShadowGraphqlClient().mutate({
|
|
15030
|
-
mutation:
|
|
15046
|
+
mutation: Zl,
|
|
15031
15047
|
variables: {
|
|
15032
15048
|
id: this.id
|
|
15033
15049
|
},
|
|
@@ -15039,7 +15055,7 @@ class gn {
|
|
|
15039
15055
|
}
|
|
15040
15056
|
async attachAddress(t, e, a, n, r, s) {
|
|
15041
15057
|
await S.getShadowGraphqlClient().mutate({
|
|
15042
|
-
mutation:
|
|
15058
|
+
mutation: _l,
|
|
15043
15059
|
variables: {
|
|
15044
15060
|
bundleId: this.id,
|
|
15045
15061
|
streetAddress: t || void 0,
|
|
@@ -15056,7 +15072,7 @@ class gn {
|
|
|
15056
15072
|
}
|
|
15057
15073
|
async attachOrganization(t) {
|
|
15058
15074
|
await S.getShadowGraphqlClient().mutate({
|
|
15059
|
-
mutation:
|
|
15075
|
+
mutation: Xl,
|
|
15060
15076
|
variables: {
|
|
15061
15077
|
bundleId: this.id,
|
|
15062
15078
|
organizationName: t
|
|
@@ -15139,7 +15155,7 @@ class gn {
|
|
|
15139
15155
|
if (r)
|
|
15140
15156
|
switch (a.type) {
|
|
15141
15157
|
case z.FileUpload: {
|
|
15142
|
-
const s = r, o = await
|
|
15158
|
+
const s = r, o = await Be([a.value]);
|
|
15143
15159
|
o.length > 0 && await s.selectImage(o[0]);
|
|
15144
15160
|
const l = a.storage?.colors;
|
|
15145
15161
|
if (l) {
|
|
@@ -15386,7 +15402,7 @@ class gn {
|
|
|
15386
15402
|
variables: {
|
|
15387
15403
|
id: this.id,
|
|
15388
15404
|
details: t,
|
|
15389
|
-
type: e ||
|
|
15405
|
+
type: e || kn.Owner
|
|
15390
15406
|
},
|
|
15391
15407
|
context: {
|
|
15392
15408
|
bundleOwnerId: this.ownerId
|
|
@@ -15425,7 +15441,7 @@ class gn {
|
|
|
15425
15441
|
}
|
|
15426
15442
|
async getAllStakeholders() {
|
|
15427
15443
|
const t = await S.getShadowGraphqlClient().query({
|
|
15428
|
-
query:
|
|
15444
|
+
query: un,
|
|
15429
15445
|
errorPolicy: "all",
|
|
15430
15446
|
fetchPolicy: "no-cache",
|
|
15431
15447
|
variables: {
|
|
@@ -15441,7 +15457,7 @@ class gn {
|
|
|
15441
15457
|
}
|
|
15442
15458
|
async getCurrentStakeholder() {
|
|
15443
15459
|
const t = await S.getShadowGraphqlClient().query({
|
|
15444
|
-
query:
|
|
15460
|
+
query: un,
|
|
15445
15461
|
errorPolicy: "all",
|
|
15446
15462
|
fetchPolicy: "no-cache",
|
|
15447
15463
|
variables: {
|
|
@@ -15713,14 +15729,14 @@ class gn {
|
|
|
15713
15729
|
};
|
|
15714
15730
|
}
|
|
15715
15731
|
}
|
|
15716
|
-
const
|
|
15732
|
+
const tc = C`
|
|
15717
15733
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
15718
15734
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
15719
15735
|
id
|
|
15720
15736
|
}
|
|
15721
15737
|
}
|
|
15722
15738
|
`;
|
|
15723
|
-
class
|
|
15739
|
+
class ec {
|
|
15724
15740
|
/**
|
|
15725
15741
|
*
|
|
15726
15742
|
* @param id
|
|
@@ -15730,7 +15746,7 @@ class tc {
|
|
|
15730
15746
|
*/
|
|
15731
15747
|
async execute(t, e, a) {
|
|
15732
15748
|
const r = (await S.getShadowGraphqlClient().mutate({
|
|
15733
|
-
mutation:
|
|
15749
|
+
mutation: tc,
|
|
15734
15750
|
variables: {
|
|
15735
15751
|
processFlowId: t,
|
|
15736
15752
|
inputs: [...e.map((u) => u.getValueForTransmission())]
|
|
@@ -15770,7 +15786,7 @@ class tc {
|
|
|
15770
15786
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15771
15787
|
);
|
|
15772
15788
|
if (u.completedAt) {
|
|
15773
|
-
o = !0, d = new
|
|
15789
|
+
o = !0, d = new ac(u);
|
|
15774
15790
|
break;
|
|
15775
15791
|
}
|
|
15776
15792
|
l += 1;
|
|
@@ -15782,7 +15798,7 @@ class tc {
|
|
|
15782
15798
|
return Promise.resolve(d);
|
|
15783
15799
|
}
|
|
15784
15800
|
}
|
|
15785
|
-
class
|
|
15801
|
+
class ac {
|
|
15786
15802
|
constructor(t) {
|
|
15787
15803
|
this.execution = t;
|
|
15788
15804
|
}
|
|
@@ -15796,14 +15812,14 @@ class ec {
|
|
|
15796
15812
|
* @returns The nodes contained within the execution.
|
|
15797
15813
|
*/
|
|
15798
15814
|
getNodes() {
|
|
15799
|
-
return this.execution.nodes.map((t) => new
|
|
15815
|
+
return this.execution.nodes.map((t) => new pe(t));
|
|
15800
15816
|
}
|
|
15801
15817
|
/**
|
|
15802
15818
|
* @param type The type of node to return.
|
|
15803
15819
|
* @returns A list of nodes matching the requested type.
|
|
15804
15820
|
*/
|
|
15805
15821
|
getNodesByType(t) {
|
|
15806
|
-
return this.execution.nodes.filter((e) => e.type === t).map((e) => new
|
|
15822
|
+
return this.execution.nodes.filter((e) => e.type === t).map((e) => new pe(e));
|
|
15807
15823
|
}
|
|
15808
15824
|
/**
|
|
15809
15825
|
* @returns A list of input nodes that exist in this execution.
|
|
@@ -15812,7 +15828,7 @@ class ec {
|
|
|
15812
15828
|
return this.execution.nodes.filter(
|
|
15813
15829
|
(t) => t.type === "StartTerminal"
|
|
15814
15830
|
/* StartTerminal */
|
|
15815
|
-
).map((t) => new
|
|
15831
|
+
).map((t) => new pe(t));
|
|
15816
15832
|
}
|
|
15817
15833
|
/**
|
|
15818
15834
|
* @returns A list of out put nodes that exist in this execution.
|
|
@@ -15821,7 +15837,7 @@ class ec {
|
|
|
15821
15837
|
return this.execution.nodes.filter(
|
|
15822
15838
|
(t) => t.type === "EndTerminal"
|
|
15823
15839
|
/* EndTerminal */
|
|
15824
|
-
).map((t) => new
|
|
15840
|
+
).map((t) => new pe(t));
|
|
15825
15841
|
}
|
|
15826
15842
|
/**
|
|
15827
15843
|
* @returns A date object representing the point in time this execution completed.
|
|
@@ -15838,7 +15854,7 @@ class ec {
|
|
|
15838
15854
|
return new Date(this.execution.failedAt);
|
|
15839
15855
|
}
|
|
15840
15856
|
}
|
|
15841
|
-
class
|
|
15857
|
+
class pe {
|
|
15842
15858
|
constructor(t) {
|
|
15843
15859
|
this.node = t;
|
|
15844
15860
|
}
|
|
@@ -15855,7 +15871,7 @@ class fe {
|
|
|
15855
15871
|
return this.getArtifacts().get(t);
|
|
15856
15872
|
}
|
|
15857
15873
|
}
|
|
15858
|
-
class
|
|
15874
|
+
class za {
|
|
15859
15875
|
constructor(t) {
|
|
15860
15876
|
this.value = t;
|
|
15861
15877
|
}
|
|
@@ -15867,13 +15883,13 @@ class Va {
|
|
|
15867
15883
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15868
15884
|
}
|
|
15869
15885
|
}
|
|
15870
|
-
var
|
|
15871
|
-
class
|
|
15886
|
+
var nc = /* @__PURE__ */ ((i) => (i.Transaction = "Transaction", i.Bundle = "Bundle", i.Product = "Product", i.Variant = "Variant", i.Option = "Option", i.LineItem = "LineItem", i.Asset = "Asset", i))(nc || {});
|
|
15887
|
+
class qd extends za {
|
|
15872
15888
|
constructor(t) {
|
|
15873
15889
|
super(`"${t}"`);
|
|
15874
15890
|
}
|
|
15875
15891
|
}
|
|
15876
|
-
class bi extends
|
|
15892
|
+
class bi extends za {
|
|
15877
15893
|
constructor(t, e) {
|
|
15878
15894
|
if (e !== "Asset" && !bi.validUUID(t))
|
|
15879
15895
|
throw new Error("Invalid ID, must be a valid v4 UUID. https://www.uuidgenerator.net/");
|
|
@@ -15883,12 +15899,12 @@ class bi extends Va {
|
|
|
15883
15899
|
return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
|
|
15884
15900
|
}
|
|
15885
15901
|
}
|
|
15886
|
-
class
|
|
15902
|
+
class Wd extends za {
|
|
15887
15903
|
constructor(t) {
|
|
15888
15904
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15889
15905
|
}
|
|
15890
15906
|
}
|
|
15891
|
-
class
|
|
15907
|
+
class fn {
|
|
15892
15908
|
constructor(t) {
|
|
15893
15909
|
this.integrationProduct = t;
|
|
15894
15910
|
}
|
|
@@ -15928,7 +15944,7 @@ class mn {
|
|
|
15928
15944
|
return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new jt(e));
|
|
15929
15945
|
}
|
|
15930
15946
|
}
|
|
15931
|
-
const
|
|
15947
|
+
const fe = C`
|
|
15932
15948
|
query GetCustomer($emailAddress: String!) {
|
|
15933
15949
|
customer(emailAddress: $emailAddress) {
|
|
15934
15950
|
id
|
|
@@ -15945,7 +15961,7 @@ const Ce = C`
|
|
|
15945
15961
|
}
|
|
15946
15962
|
}
|
|
15947
15963
|
}
|
|
15948
|
-
`,
|
|
15964
|
+
`, ic = C`
|
|
15949
15965
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15950
15966
|
customerCreate(details: $details) {
|
|
15951
15967
|
id
|
|
@@ -15987,7 +16003,7 @@ C`
|
|
|
15987
16003
|
}
|
|
15988
16004
|
}
|
|
15989
16005
|
`;
|
|
15990
|
-
const
|
|
16006
|
+
const rc = C`
|
|
15991
16007
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15992
16008
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15993
16009
|
}
|
|
@@ -16024,7 +16040,7 @@ C`
|
|
|
16024
16040
|
}
|
|
16025
16041
|
}
|
|
16026
16042
|
`;
|
|
16027
|
-
const
|
|
16043
|
+
const sc = C`
|
|
16028
16044
|
query CustomerMetafields($id: String!) {
|
|
16029
16045
|
metafields(entityId: $id) {
|
|
16030
16046
|
id
|
|
@@ -16043,7 +16059,7 @@ const rc = C`
|
|
|
16043
16059
|
}
|
|
16044
16060
|
}
|
|
16045
16061
|
`;
|
|
16046
|
-
class
|
|
16062
|
+
class oc {
|
|
16047
16063
|
constructor(t, e = S.getShadowGraphqlClient.bind(S)) {
|
|
16048
16064
|
this.options = t, this.client = e;
|
|
16049
16065
|
}
|
|
@@ -16070,13 +16086,13 @@ class sc {
|
|
|
16070
16086
|
});
|
|
16071
16087
|
}
|
|
16072
16088
|
}
|
|
16073
|
-
class
|
|
16089
|
+
class lc {
|
|
16074
16090
|
init(t, e, a) {
|
|
16075
16091
|
this.cognitoClient = new qi({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
|
|
16076
16092
|
}
|
|
16077
16093
|
async generateCode(t) {
|
|
16078
16094
|
const e = await this.cognitoClient?.send(
|
|
16079
|
-
new
|
|
16095
|
+
new Wa({
|
|
16080
16096
|
AuthFlow: "CUSTOM_AUTH",
|
|
16081
16097
|
ClientId: this.userPoolClientId,
|
|
16082
16098
|
AuthParameters: {
|
|
@@ -16110,7 +16126,7 @@ class oc {
|
|
|
16110
16126
|
throw new Error("Failed to find existing tokens.");
|
|
16111
16127
|
const e = JSON.parse(t);
|
|
16112
16128
|
return await this.cognitoClient?.send(
|
|
16113
|
-
new
|
|
16129
|
+
new Wa({
|
|
16114
16130
|
AuthFlow: "REFRESH_TOKEN_AUTH",
|
|
16115
16131
|
ClientId: this.userPoolClientId,
|
|
16116
16132
|
AuthParameters: {
|
|
@@ -16120,8 +16136,8 @@ class oc {
|
|
|
16120
16136
|
);
|
|
16121
16137
|
}
|
|
16122
16138
|
}
|
|
16123
|
-
const Gt = new
|
|
16124
|
-
class
|
|
16139
|
+
const Gt = new lc();
|
|
16140
|
+
class cc {
|
|
16125
16141
|
/**
|
|
16126
16142
|
* Returns a formatted string representing a given amount with desired currency.
|
|
16127
16143
|
* @param currency The currency to represent the amount in.
|
|
@@ -16140,7 +16156,7 @@ class lc {
|
|
|
16140
16156
|
* @param currency The currency to determine precision for.
|
|
16141
16157
|
*/
|
|
16142
16158
|
getPrecisionForCurrency(t) {
|
|
16143
|
-
const e = t, a =
|
|
16159
|
+
const e = t, a = Ha.code(e);
|
|
16144
16160
|
return a ? a.digits : 2;
|
|
16145
16161
|
}
|
|
16146
16162
|
/**
|
|
@@ -16151,12 +16167,12 @@ class lc {
|
|
|
16151
16167
|
*/
|
|
16152
16168
|
getSpecialFormat(t) {
|
|
16153
16169
|
const e = t;
|
|
16154
|
-
if (
|
|
16170
|
+
if (Ha.code(e)?.code === "CLP")
|
|
16155
16171
|
return "USD0,0";
|
|
16156
16172
|
}
|
|
16157
16173
|
}
|
|
16158
|
-
const
|
|
16159
|
-
class
|
|
16174
|
+
const Cn = new cc();
|
|
16175
|
+
class dc {
|
|
16160
16176
|
constructor(t, e, a, n) {
|
|
16161
16177
|
this.presentmentCurrency = void 0, this.presentmentCurrency = n, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
|
|
16162
16178
|
}
|
|
@@ -16187,16 +16203,16 @@ class cc {
|
|
|
16187
16203
|
* Converts a monetary value from the database to the units of its currency.
|
|
16188
16204
|
*/
|
|
16189
16205
|
units(t, e) {
|
|
16190
|
-
return t / Math.pow(10,
|
|
16206
|
+
return t / Math.pow(10, Cn.getPrecisionForCurrency(e));
|
|
16191
16207
|
}
|
|
16192
16208
|
/**
|
|
16193
16209
|
* Converts a monetary value in units to the subunits of its currency.
|
|
16194
16210
|
*/
|
|
16195
16211
|
subunits(t, e) {
|
|
16196
|
-
return t * Math.pow(10,
|
|
16212
|
+
return t * Math.pow(10, Cn.getPrecisionForCurrency(e));
|
|
16197
16213
|
}
|
|
16198
16214
|
}
|
|
16199
|
-
const
|
|
16215
|
+
const uc = async (i, t) => {
|
|
16200
16216
|
const e = await S.getShadowGraphqlClient().query({
|
|
16201
16217
|
query: As(t?.assets?.metadata || !1),
|
|
16202
16218
|
errorPolicy: "all",
|
|
@@ -16214,22 +16230,22 @@ const dc = async (i, t) => {
|
|
|
16214
16230
|
return a.forEach((n) => {
|
|
16215
16231
|
n.finalizeStepConfig || (n.finalizeStepConfig = {}), n.finalizeStepConfig.termsMarkdown = n.finalizeStepConfig.termsMarkdown || n.partner.termsMarkdown;
|
|
16216
16232
|
}), a;
|
|
16217
|
-
},
|
|
16233
|
+
}, Ac = async (i, t) => {
|
|
16218
16234
|
const a = (await t).find((n) => n.id === i);
|
|
16219
16235
|
if (!a)
|
|
16220
16236
|
throw new Error(`Workflow not found: ${i}`);
|
|
16221
16237
|
return a;
|
|
16222
16238
|
}, Ii = async (i, t) => {
|
|
16223
|
-
const e = i.map((o) =>
|
|
16239
|
+
const e = i.map((o) => Pe.get({ id: o, options: t })), a = i.filter((o, l) => e[l] === void 0);
|
|
16224
16240
|
if (a.length === 0)
|
|
16225
16241
|
return Promise.all(e);
|
|
16226
|
-
const n =
|
|
16227
|
-
(o) =>
|
|
16242
|
+
const n = uc(a, t), r = a.map(
|
|
16243
|
+
(o) => Pe.set({ id: o, options: t }, Ac(o, n))
|
|
16228
16244
|
), s = e.filter((o) => o !== void 0);
|
|
16229
16245
|
return await Promise.all(s.concat(r));
|
|
16230
|
-
},
|
|
16246
|
+
}, hc = async (i, t) => (await Ii([i], t))[0], gc = async (i) => {
|
|
16231
16247
|
const t = await S.getShadowGraphqlClient().query({
|
|
16232
|
-
query:
|
|
16248
|
+
query: Kn,
|
|
16233
16249
|
variables: {
|
|
16234
16250
|
ids: i
|
|
16235
16251
|
},
|
|
@@ -16238,7 +16254,7 @@ const dc = async (i, t) => {
|
|
|
16238
16254
|
});
|
|
16239
16255
|
return t.errors && console.error(t.errors), t.data.integrationProducts || [];
|
|
16240
16256
|
};
|
|
16241
|
-
class
|
|
16257
|
+
class Hd {
|
|
16242
16258
|
constructor(t) {
|
|
16243
16259
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
16244
16260
|
try {
|
|
@@ -16249,7 +16265,7 @@ class Wd {
|
|
|
16249
16265
|
} catch (a) {
|
|
16250
16266
|
throw console.error(a), new pt("Critical - Unable to synchronize workflow state with server.");
|
|
16251
16267
|
}
|
|
16252
|
-
}, this.options = t, this.options.applicationKey && Ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 40.0.
|
|
16268
|
+
}, this.options = t, this.options.applicationKey && Ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 40.0.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16253
16269
|
}
|
|
16254
16270
|
configure(t) {
|
|
16255
16271
|
wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.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 && gr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Gt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16269,7 +16285,7 @@ class Wd {
|
|
|
16269
16285
|
}
|
|
16270
16286
|
getFlowService() {
|
|
16271
16287
|
if (!hr()) throw new Error("Application key required to use Flow Service.");
|
|
16272
|
-
return new
|
|
16288
|
+
return new ec();
|
|
16273
16289
|
}
|
|
16274
16290
|
async getCurrencyContext(t) {
|
|
16275
16291
|
const a = (await this.getIntegration()).partner.currencyCode, r = await S.getShadowGraphqlClient().query({
|
|
@@ -16281,14 +16297,14 @@ class Wd {
|
|
|
16281
16297
|
to: t
|
|
16282
16298
|
}
|
|
16283
16299
|
}), { rateFrom: s, rateTo: o } = r.data.currencyConversion;
|
|
16284
|
-
return new
|
|
16300
|
+
return new dc(s, o, a, t);
|
|
16285
16301
|
}
|
|
16286
16302
|
async getIntegration() {
|
|
16287
16303
|
if (this.activeIntegration)
|
|
16288
16304
|
return this.activeIntegration;
|
|
16289
16305
|
if (!this.options.applicationKey)
|
|
16290
16306
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
16291
|
-
return this.activeIntegration =
|
|
16307
|
+
return this.activeIntegration = mc(this.options.applicationKey), this.activeIntegration;
|
|
16292
16308
|
}
|
|
16293
16309
|
async canUseAddon(t) {
|
|
16294
16310
|
try {
|
|
@@ -16306,7 +16322,7 @@ class Wd {
|
|
|
16306
16322
|
}
|
|
16307
16323
|
async customerHasBundleTemplates(t) {
|
|
16308
16324
|
const n = (await S.getShadowGraphqlClient().query({
|
|
16309
|
-
query:
|
|
16325
|
+
query: fe,
|
|
16310
16326
|
errorPolicy: "all",
|
|
16311
16327
|
fetchPolicy: "no-cache",
|
|
16312
16328
|
variables: {
|
|
@@ -16325,7 +16341,7 @@ class Wd {
|
|
|
16325
16341
|
async getOrCreateCustomer(t) {
|
|
16326
16342
|
this.customer = void 0;
|
|
16327
16343
|
const e = S.getShadowGraphqlClient(), n = (await e.query({
|
|
16328
|
-
query:
|
|
16344
|
+
query: fe,
|
|
16329
16345
|
errorPolicy: "all",
|
|
16330
16346
|
fetchPolicy: "no-cache",
|
|
16331
16347
|
variables: {
|
|
@@ -16334,7 +16350,7 @@ class Wd {
|
|
|
16334
16350
|
})).data.customer;
|
|
16335
16351
|
if (!n.id) {
|
|
16336
16352
|
const o = (await e.mutate({
|
|
16337
|
-
mutation:
|
|
16353
|
+
mutation: ic,
|
|
16338
16354
|
errorPolicy: "all",
|
|
16339
16355
|
fetchPolicy: "no-cache",
|
|
16340
16356
|
variables: {
|
|
@@ -16378,7 +16394,7 @@ class Wd {
|
|
|
16378
16394
|
return this.logOut(), console.error("Failed to refresh tokens."), !1;
|
|
16379
16395
|
}
|
|
16380
16396
|
const o = (await S.getShadowGraphqlClient().query({
|
|
16381
|
-
query:
|
|
16397
|
+
query: fe,
|
|
16382
16398
|
errorPolicy: "all",
|
|
16383
16399
|
fetchPolicy: "no-cache",
|
|
16384
16400
|
variables: {
|
|
@@ -16392,7 +16408,7 @@ class Wd {
|
|
|
16392
16408
|
*/
|
|
16393
16409
|
async generateVerificationCode(t) {
|
|
16394
16410
|
await S.getShadowGraphqlClient().mutate({
|
|
16395
|
-
mutation:
|
|
16411
|
+
mutation: rc,
|
|
16396
16412
|
variables: {
|
|
16397
16413
|
emailAddress: t
|
|
16398
16414
|
}
|
|
@@ -16407,7 +16423,7 @@ class Wd {
|
|
|
16407
16423
|
if (n?.AuthenticationResult) {
|
|
16408
16424
|
localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(n.AuthenticationResult)), localStorage.setItem("cognito-email", t);
|
|
16409
16425
|
const s = (await S.getShadowGraphqlClient().query({
|
|
16410
|
-
query:
|
|
16426
|
+
query: fe,
|
|
16411
16427
|
errorPolicy: "all",
|
|
16412
16428
|
fetchPolicy: "no-cache",
|
|
16413
16429
|
variables: {
|
|
@@ -16431,7 +16447,7 @@ class Wd {
|
|
|
16431
16447
|
const t = localStorage.getItem("last-refreshed-cognito-tokens"), e = localStorage.getItem("cognito-tokens");
|
|
16432
16448
|
if (!t || !e)
|
|
16433
16449
|
throw new Error("No token data in storage.");
|
|
16434
|
-
const a = JSON.parse(e), n = (/* @__PURE__ */ new Date()).getTime() / 1e3, r = !a?.AccessToken ||
|
|
16450
|
+
const a = JSON.parse(e), n = (/* @__PURE__ */ new Date()).getTime() / 1e3, r = !a?.AccessToken || Te(a.AccessToken);
|
|
16435
16451
|
if (!a.ExpiresIn || a.ExpiresIn < n - parseInt(t) || r) {
|
|
16436
16452
|
const s = await Gt.refreshTokens();
|
|
16437
16453
|
if (s?.AuthenticationResult)
|
|
@@ -16447,7 +16463,7 @@ class Wd {
|
|
|
16447
16463
|
if (!this.customer?.id)
|
|
16448
16464
|
throw new Error("Customer must be logged in before calling this function.");
|
|
16449
16465
|
return (await S.getShadowGraphqlClient().query({
|
|
16450
|
-
query:
|
|
16466
|
+
query: sc,
|
|
16451
16467
|
variables: {
|
|
16452
16468
|
id: this.customer.id
|
|
16453
16469
|
}
|
|
@@ -16474,7 +16490,7 @@ class Wd {
|
|
|
16474
16490
|
s.set(r.id, r.partner.id), Q.setMap("bundlePartnerIds", s);
|
|
16475
16491
|
const o = Q.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
|
|
16476
16492
|
o.set(r.id, r.bundleOwnerId), Q.setMap("bundleOwnerIds", o);
|
|
16477
|
-
const l = new
|
|
16493
|
+
const l = new pn(this, r, void 0, void 0, r.bundleOwnerId, {
|
|
16478
16494
|
eagerFetchProducts: a?.graphql?.productCollection?.eagerFetchProducts
|
|
16479
16495
|
});
|
|
16480
16496
|
return await l.getInitializationPromise(), l;
|
|
@@ -16494,7 +16510,7 @@ class Wd {
|
|
|
16494
16510
|
l.Authorization = `Bearer ${g}`;
|
|
16495
16511
|
} catch {
|
|
16496
16512
|
const m = Object.entries(localStorage).find(([y, w]) => y.startsWith("CognitoIdentityServiceProvider") && y.endsWith("idToken"))?.[0] || "", f = localStorage.getItem(m);
|
|
16497
|
-
f && !
|
|
16513
|
+
f && !Te(f) && (l.Authorization = `Bearer ${f}`);
|
|
16498
16514
|
}
|
|
16499
16515
|
const c = {
|
|
16500
16516
|
bundleOwnerId: o,
|
|
@@ -16514,7 +16530,7 @@ class Wd {
|
|
|
16514
16530
|
throw new Error(`Unable to find bundle: ${t}`);
|
|
16515
16531
|
const u = d.data?.bundles[0], A = Q.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
16516
16532
|
A.set(u.id, u.partner.id), Q.setMap("bundlePartnerIds", A);
|
|
16517
|
-
const h = new
|
|
16533
|
+
const h = new pn(
|
|
16518
16534
|
this,
|
|
16519
16535
|
u,
|
|
16520
16536
|
e,
|
|
@@ -16697,7 +16713,7 @@ class Wd {
|
|
|
16697
16713
|
].filter((P) => P !== void 0), f = [...new Set(p.map((P) => P.workflowId))].filter(
|
|
16698
16714
|
(P) => P !== void 0
|
|
16699
16715
|
), [y, w] = await Promise.all([
|
|
16700
|
-
(async () => m.length > 0 ? await
|
|
16716
|
+
(async () => m.length > 0 ? await gc(m) : [])(),
|
|
16701
16717
|
(async () => f.length > 0 ? await Ii(f, e) : [])()
|
|
16702
16718
|
]), x = new Map(y.map((P) => [P.id, P])), b = new Map(w.map((P) => [P.id, P])), v = p.map(async (P) => {
|
|
16703
16719
|
const { transaction: T, workflowId: V, readOnly: k, index: X } = P, Et = V ? b.get(V) : void 0, gt = t[X];
|
|
@@ -16707,9 +16723,9 @@ class Wd {
|
|
|
16707
16723
|
}
|
|
16708
16724
|
const oe = Q.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map();
|
|
16709
16725
|
!oe.get(T.id) && T.transactionOwnerId && (oe.set(T.id, T.transactionOwnerId), Q.setMap("transactionOwnerIds", oe));
|
|
16710
|
-
const
|
|
16711
|
-
onMutate: () => ({ context: { transactionOwnerId:
|
|
16712
|
-
onQuery: () => ({ context: { transactionOwnerId:
|
|
16726
|
+
const We = oe.get(T.id) || void 0, Di = new oc({
|
|
16727
|
+
onMutate: () => ({ context: { transactionOwnerId: We, bundleOwnerId: e?.bundleOwnerId } }),
|
|
16728
|
+
onQuery: () => ({ context: { transactionOwnerId: We, bundleOwnerId: e?.bundleOwnerId } })
|
|
16713
16729
|
}), le = {
|
|
16714
16730
|
workflow: Et,
|
|
16715
16731
|
transaction: T,
|
|
@@ -16718,7 +16734,7 @@ class Wd {
|
|
|
16718
16734
|
throw new O("State mutation is forbidden in read only mode!");
|
|
16719
16735
|
} : async (it) => this.updateTransactionState({
|
|
16720
16736
|
...it,
|
|
16721
|
-
context: { transactionOwnerId:
|
|
16737
|
+
context: { transactionOwnerId: We, bundleOwnerId: e?.bundleOwnerId }
|
|
16722
16738
|
}),
|
|
16723
16739
|
graphQlClient: () => Di,
|
|
16724
16740
|
readOnly: k,
|
|
@@ -16726,10 +16742,10 @@ class Wd {
|
|
|
16726
16742
|
};
|
|
16727
16743
|
if (gt.type === "transaction" && T.workflowState) {
|
|
16728
16744
|
const it = JSON.parse(T.workflowState);
|
|
16729
|
-
await
|
|
16745
|
+
await sn(it), le.reloadedState = it;
|
|
16730
16746
|
} else if (!k && gt.workflowState) {
|
|
16731
16747
|
const it = JSON.parse(gt.workflowState);
|
|
16732
|
-
await
|
|
16748
|
+
await sn(it), le.reloadedState = it;
|
|
16733
16749
|
}
|
|
16734
16750
|
return le.delayWorkflowStateSync = !0, { experienceOptions: le, index: X, options: gt };
|
|
16735
16751
|
}), M = (await Promise.all(v)).sort((P, T) => P.index - T.index);
|
|
@@ -16755,7 +16771,7 @@ class Wd {
|
|
|
16755
16771
|
})).data?.integrationProducts;
|
|
16756
16772
|
if (!r || r.length === 0 || !r[0]?.id)
|
|
16757
16773
|
throw new Error("Integration product not found.");
|
|
16758
|
-
return new
|
|
16774
|
+
return new fn(r[0]);
|
|
16759
16775
|
}
|
|
16760
16776
|
async getIntegrationProductFromExternalIds(t, e, a) {
|
|
16761
16777
|
const s = (await S.getShadowGraphqlClient().query({
|
|
@@ -16769,7 +16785,7 @@ class Wd {
|
|
|
16769
16785
|
})).data?.integrationProductFromExternalIds;
|
|
16770
16786
|
if (!s?.id)
|
|
16771
16787
|
throw new Error("Integration product not found.");
|
|
16772
|
-
return new
|
|
16788
|
+
return new fn(s);
|
|
16773
16789
|
}
|
|
16774
16790
|
async getIntegrationProduct(t) {
|
|
16775
16791
|
return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
|
|
@@ -16807,7 +16823,7 @@ class Wd {
|
|
|
16807
16823
|
};
|
|
16808
16824
|
}
|
|
16809
16825
|
}
|
|
16810
|
-
const
|
|
16826
|
+
const mc = async (i, t) => (await S.getShadowGraphqlClient().query({
|
|
16811
16827
|
query: gs,
|
|
16812
16828
|
errorPolicy: "all",
|
|
16813
16829
|
fetchPolicy: "no-cache",
|
|
@@ -16820,7 +16836,7 @@ const gc = async (i, t) => (await S.getShadowGraphqlClient().query({
|
|
|
16820
16836
|
variables: {
|
|
16821
16837
|
themeConfigurationId: t
|
|
16822
16838
|
}
|
|
16823
|
-
})).data.currentIntegration,
|
|
16839
|
+
})).data.currentIntegration, jd = async (i) => {
|
|
16824
16840
|
const e = await S.getShadowGraphqlClient().query({
|
|
16825
16841
|
query: es,
|
|
16826
16842
|
errorPolicy: "all",
|
|
@@ -16831,20 +16847,20 @@ const gc = async (i, t) => (await S.getShadowGraphqlClient().query({
|
|
|
16831
16847
|
});
|
|
16832
16848
|
if (e.data.transactions.length !== 0)
|
|
16833
16849
|
return e.data.transactions[0];
|
|
16834
|
-
},
|
|
16850
|
+
}, Yd = async (i, t) => (await S.getShadowGraphqlClient().query({
|
|
16835
16851
|
query: hs,
|
|
16836
16852
|
errorPolicy: "all",
|
|
16837
16853
|
variables: {
|
|
16838
16854
|
themeConfigurationId: i,
|
|
16839
16855
|
themeInstallId: t
|
|
16840
16856
|
}
|
|
16841
|
-
})).data?.marketplaceThemeInstallConfiguration,
|
|
16857
|
+
})).data?.marketplaceThemeInstallConfiguration, Jd = async (i) => (await S.getShadowGraphqlClient().query({
|
|
16842
16858
|
query: ps,
|
|
16843
16859
|
errorPolicy: "all",
|
|
16844
16860
|
variables: {
|
|
16845
16861
|
id: i
|
|
16846
16862
|
}
|
|
16847
|
-
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration,
|
|
16863
|
+
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Kd = async (i) => (await S.getShadowGraphqlClient().query({
|
|
16848
16864
|
query: ms,
|
|
16849
16865
|
errorPolicy: "all",
|
|
16850
16866
|
variables: {
|
|
@@ -16858,7 +16874,7 @@ async function Bi() {
|
|
|
16858
16874
|
i.Authorization = `Bearer ${t}`;
|
|
16859
16875
|
} catch {
|
|
16860
16876
|
const a = Object.entries(localStorage).find(([r, s]) => r.startsWith("CognitoIdentityServiceProvider") && r.endsWith("idToken"))?.[0] || "", n = localStorage.getItem(a);
|
|
16861
|
-
n && !
|
|
16877
|
+
n && !Te(n) && (i.Authorization = `Bearer ${n}`);
|
|
16862
16878
|
}
|
|
16863
16879
|
return i;
|
|
16864
16880
|
}
|
|
@@ -16869,14 +16885,14 @@ async function Pi(i) {
|
|
|
16869
16885
|
...a
|
|
16870
16886
|
};
|
|
16871
16887
|
}
|
|
16872
|
-
async function
|
|
16888
|
+
async function pc(i) {
|
|
16873
16889
|
const e = Q.getMap("transactionOwnerIds")?.get(i), a = await Bi();
|
|
16874
16890
|
return {
|
|
16875
16891
|
transactionOwnerId: e,
|
|
16876
16892
|
...a
|
|
16877
16893
|
};
|
|
16878
16894
|
}
|
|
16879
|
-
const
|
|
16895
|
+
const _d = async (i) => {
|
|
16880
16896
|
const t = await Pi(i), e = await S.getShadowGraphqlClient().mutate({
|
|
16881
16897
|
mutation: sl,
|
|
16882
16898
|
errorPolicy: "all",
|
|
@@ -16890,8 +16906,8 @@ const Kd = async (i) => {
|
|
|
16890
16906
|
});
|
|
16891
16907
|
if (e.data?.bundleDelete !== i)
|
|
16892
16908
|
throw new Error(`Failed to delete bundle: ${e.errors}`);
|
|
16893
|
-
},
|
|
16894
|
-
const t = await
|
|
16909
|
+
}, Xd = async (i) => {
|
|
16910
|
+
const t = await pc(i), e = await S.getShadowGraphqlClient().mutate({
|
|
16895
16911
|
mutation: ol,
|
|
16896
16912
|
errorPolicy: "all",
|
|
16897
16913
|
fetchPolicy: "no-cache",
|
|
@@ -16906,23 +16922,23 @@ const Kd = async (i) => {
|
|
|
16906
16922
|
throw new Error(`Failed to find transaction to read bundle id: ${JSON.stringify(e.errors)}`);
|
|
16907
16923
|
return e.data.transactions[0].bundle?.id;
|
|
16908
16924
|
};
|
|
16909
|
-
function
|
|
16925
|
+
function fc(i, t, e, a) {
|
|
16910
16926
|
const n = e.width * i.zoom, r = e.height * i.zoom;
|
|
16911
16927
|
if (a) {
|
|
16912
16928
|
const o = i, l = Math.max(t.width / e.width, t.height / e.height);
|
|
16913
16929
|
o.zoom = Math.max(l, i.zoom);
|
|
16914
16930
|
const c = e.width * o.zoom, d = e.height * o.zoom;
|
|
16915
|
-
return o.x =
|
|
16931
|
+
return o.x = Ce(i.x, t.width - c, 0), o.y = Ce(i.y, t.height - d, 0), o;
|
|
16916
16932
|
}
|
|
16917
16933
|
const s = i;
|
|
16918
|
-
return s.x =
|
|
16934
|
+
return s.x = Ce(s.x, -n, t.width), s.y = Ce(s.y, -r, t.height), s;
|
|
16919
16935
|
}
|
|
16920
|
-
function
|
|
16936
|
+
function Ce(i, t, e) {
|
|
16921
16937
|
return Math.min(Math.max(i, t), e);
|
|
16922
16938
|
}
|
|
16923
|
-
class
|
|
16939
|
+
class Cc {
|
|
16924
16940
|
constructor(t, e) {
|
|
16925
|
-
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets =
|
|
16941
|
+
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = Pn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
|
|
16926
16942
|
useThreshold: !1,
|
|
16927
16943
|
invertThreshold: !1,
|
|
16928
16944
|
threshold: 128,
|
|
@@ -16942,7 +16958,7 @@ class fc {
|
|
|
16942
16958
|
if (n.currentFrameSources) {
|
|
16943
16959
|
let r = !1;
|
|
16944
16960
|
for (let s = 0; s < n.currentFrameSources.length; s++) {
|
|
16945
|
-
const o = n.currentFrameSources[s], l = await
|
|
16961
|
+
const o = n.currentFrameSources[s], l = await Le(o), c = this.frameData ? this.frameData[s] : void 0;
|
|
16946
16962
|
Kt(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, r = !0);
|
|
16947
16963
|
}
|
|
16948
16964
|
r && (this.onFrameDataChangeListeners.forEach(
|
|
@@ -17063,7 +17079,7 @@ class fc {
|
|
|
17063
17079
|
return;
|
|
17064
17080
|
}
|
|
17065
17081
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
17066
|
-
this.offsets[o] =
|
|
17082
|
+
this.offsets[o] = fc(t[o], s, this.imageData, this.forceImageCover);
|
|
17067
17083
|
}), this._debouncedUpdateFrameOffsets(
|
|
17068
17084
|
this.offsets,
|
|
17069
17085
|
n,
|
|
@@ -17133,7 +17149,7 @@ class fc {
|
|
|
17133
17149
|
}
|
|
17134
17150
|
recalculateOffsets(t) {
|
|
17135
17151
|
this.frameData && ((!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((e, a) => {
|
|
17136
|
-
this.offsets[a] =
|
|
17152
|
+
this.offsets[a] = $a(
|
|
17137
17153
|
t,
|
|
17138
17154
|
e,
|
|
17139
17155
|
this.initialZoom && !this.forceImageCover ? { scale: this.initialZoom } : void 0,
|
|
@@ -17142,7 +17158,7 @@ class fc {
|
|
|
17142
17158
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
17143
17159
|
}
|
|
17144
17160
|
}
|
|
17145
|
-
class
|
|
17161
|
+
class Zd {
|
|
17146
17162
|
traversableScenes() {
|
|
17147
17163
|
throw new Error("Method not implemented.");
|
|
17148
17164
|
}
|
|
@@ -17307,12 +17323,12 @@ class Xd {
|
|
|
17307
17323
|
return [];
|
|
17308
17324
|
}
|
|
17309
17325
|
}
|
|
17310
|
-
var
|
|
17311
|
-
class
|
|
17326
|
+
var wc = /* @__PURE__ */ ((i) => (i.SelectFrame = "SelectFrame", i.SelectImage = "SelectImage", i.Position = "Position", i))(wc || {});
|
|
17327
|
+
class yc extends tt {
|
|
17312
17328
|
constructor(t, e, a) {
|
|
17313
17329
|
super(t, e, a);
|
|
17314
17330
|
const n = e.data;
|
|
17315
|
-
this.frameService = new
|
|
17331
|
+
this.frameService = new Cc(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
17316
17332
|
}
|
|
17317
17333
|
selectVariant(t) {
|
|
17318
17334
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -17509,13 +17525,13 @@ class wc extends tt {
|
|
|
17509
17525
|
return this.step.data.enableVariantCategories ?? !1;
|
|
17510
17526
|
}
|
|
17511
17527
|
}
|
|
17512
|
-
const
|
|
17528
|
+
const Sc = C`
|
|
17513
17529
|
query GetLoggedInCustomer($email: String!) {
|
|
17514
17530
|
customer(emailAddress: $email) {
|
|
17515
17531
|
id
|
|
17516
17532
|
}
|
|
17517
17533
|
}
|
|
17518
|
-
`,
|
|
17534
|
+
`, Ga = C`
|
|
17519
17535
|
query GetCustomerTransactions(
|
|
17520
17536
|
$id: String!
|
|
17521
17537
|
$limit: Int!
|
|
@@ -17552,21 +17568,21 @@ const yc = C`
|
|
|
17552
17568
|
total
|
|
17553
17569
|
}
|
|
17554
17570
|
}
|
|
17555
|
-
`,
|
|
17571
|
+
`, vc = C`
|
|
17556
17572
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
17557
17573
|
transactionUpdate(id: $id, designName: $name) {
|
|
17558
17574
|
id
|
|
17559
17575
|
designName
|
|
17560
17576
|
}
|
|
17561
17577
|
}
|
|
17562
|
-
`,
|
|
17578
|
+
`, Ec = C`
|
|
17563
17579
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
17564
17580
|
transactionDuplicate(id: $id, template: $template) {
|
|
17565
17581
|
id
|
|
17566
17582
|
workflowViewerLink
|
|
17567
17583
|
}
|
|
17568
17584
|
}
|
|
17569
|
-
`,
|
|
17585
|
+
`, bc = C`
|
|
17570
17586
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
17571
17587
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
17572
17588
|
items {
|
|
@@ -17581,7 +17597,7 @@ const yc = C`
|
|
|
17581
17597
|
total
|
|
17582
17598
|
}
|
|
17583
17599
|
}
|
|
17584
|
-
`,
|
|
17600
|
+
`, Ic = C`
|
|
17585
17601
|
query GetTransactionsForBundle($id: String!) {
|
|
17586
17602
|
bundles(ids: [$id]) {
|
|
17587
17603
|
id
|
|
@@ -17602,21 +17618,21 @@ const yc = C`
|
|
|
17602
17618
|
}
|
|
17603
17619
|
}
|
|
17604
17620
|
}
|
|
17605
|
-
`,
|
|
17621
|
+
`, Bc = C`
|
|
17606
17622
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
17607
17623
|
bundleUpdate(id: $id, name: $name) {
|
|
17608
17624
|
id
|
|
17609
17625
|
name
|
|
17610
17626
|
}
|
|
17611
17627
|
}
|
|
17612
|
-
`,
|
|
17628
|
+
`, Pc = C`
|
|
17613
17629
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
17614
17630
|
bundleDuplicate(id: $id, template: $template) {
|
|
17615
17631
|
id
|
|
17616
17632
|
workflowViewerLink
|
|
17617
17633
|
}
|
|
17618
17634
|
}
|
|
17619
|
-
`,
|
|
17635
|
+
`, Fc = C`
|
|
17620
17636
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
17621
17637
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
17622
17638
|
items {
|
|
@@ -17629,43 +17645,43 @@ const yc = C`
|
|
|
17629
17645
|
total
|
|
17630
17646
|
}
|
|
17631
17647
|
}
|
|
17632
|
-
`,
|
|
17633
|
-
mutation:
|
|
17648
|
+
`, tu = async (i, t, e) => await S.getShadowGraphqlClient().mutate({
|
|
17649
|
+
mutation: Bc,
|
|
17634
17650
|
errorPolicy: "all",
|
|
17635
17651
|
variables: {
|
|
17636
17652
|
id: i,
|
|
17637
17653
|
name: t
|
|
17638
17654
|
},
|
|
17639
17655
|
context: e
|
|
17640
|
-
}),
|
|
17641
|
-
mutation:
|
|
17656
|
+
}), eu = async (i, t) => await S.getShadowGraphqlClient().mutate({
|
|
17657
|
+
mutation: vc,
|
|
17642
17658
|
errorPolicy: "all",
|
|
17643
17659
|
variables: {
|
|
17644
17660
|
id: i,
|
|
17645
17661
|
name: t
|
|
17646
17662
|
}
|
|
17647
|
-
}),
|
|
17648
|
-
mutation:
|
|
17663
|
+
}), au = async (i, t) => await S.getShadowGraphqlClient().mutate({
|
|
17664
|
+
mutation: Pc,
|
|
17649
17665
|
errorPolicy: "all",
|
|
17650
17666
|
variables: {
|
|
17651
17667
|
id: i,
|
|
17652
17668
|
template: t
|
|
17653
17669
|
}
|
|
17654
|
-
}),
|
|
17655
|
-
mutation:
|
|
17670
|
+
}), nu = async (i, t) => await S.getShadowGraphqlClient().mutate({
|
|
17671
|
+
mutation: Ec,
|
|
17656
17672
|
errorPolicy: "all",
|
|
17657
17673
|
variables: {
|
|
17658
17674
|
id: i,
|
|
17659
17675
|
template: t
|
|
17660
17676
|
}
|
|
17661
|
-
}),
|
|
17662
|
-
query:
|
|
17677
|
+
}), iu = async (i) => (await S.getShadowGraphqlClient().query({
|
|
17678
|
+
query: Sc,
|
|
17663
17679
|
errorPolicy: "all",
|
|
17664
17680
|
variables: {
|
|
17665
17681
|
email: i
|
|
17666
17682
|
}
|
|
17667
|
-
})).data.customer,
|
|
17668
|
-
query:
|
|
17683
|
+
})).data.customer, ru = async (i, t, e) => await S.getShadowGraphqlClient().query({
|
|
17684
|
+
query: bc,
|
|
17669
17685
|
errorPolicy: "all",
|
|
17670
17686
|
fetchPolicy: "no-cache",
|
|
17671
17687
|
variables: {
|
|
@@ -17673,16 +17689,16 @@ const yc = C`
|
|
|
17673
17689
|
offset: e,
|
|
17674
17690
|
limit: t
|
|
17675
17691
|
}
|
|
17676
|
-
}),
|
|
17677
|
-
query:
|
|
17692
|
+
}), su = async (i, t) => await S.getShadowGraphqlClient().query({
|
|
17693
|
+
query: Ic,
|
|
17678
17694
|
errorPolicy: "all",
|
|
17679
17695
|
fetchPolicy: "no-cache",
|
|
17680
17696
|
variables: {
|
|
17681
17697
|
id: i
|
|
17682
17698
|
},
|
|
17683
17699
|
context: t
|
|
17684
|
-
}),
|
|
17685
|
-
query:
|
|
17700
|
+
}), ou = async (i, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17701
|
+
query: Ga,
|
|
17686
17702
|
errorPolicy: "all",
|
|
17687
17703
|
fetchPolicy: "no-cache",
|
|
17688
17704
|
variables: {
|
|
@@ -17701,8 +17717,8 @@ const yc = C`
|
|
|
17701
17717
|
offset: e,
|
|
17702
17718
|
limit: t
|
|
17703
17719
|
}
|
|
17704
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17705
|
-
query:
|
|
17720
|
+
}))?.data.customerTransactionsFeed?.items || [], lu = async (i, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17721
|
+
query: Ga,
|
|
17706
17722
|
errorPolicy: "all",
|
|
17707
17723
|
fetchPolicy: "no-cache",
|
|
17708
17724
|
variables: {
|
|
@@ -17721,8 +17737,8 @@ const yc = C`
|
|
|
17721
17737
|
offset: e,
|
|
17722
17738
|
limit: t
|
|
17723
17739
|
}
|
|
17724
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17725
|
-
query:
|
|
17740
|
+
}))?.data.customerTransactionsFeed?.items || [], cu = async (i, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17741
|
+
query: Ga,
|
|
17726
17742
|
errorPolicy: "all",
|
|
17727
17743
|
fetchPolicy: "no-cache",
|
|
17728
17744
|
variables: {
|
|
@@ -17737,8 +17753,8 @@ const yc = C`
|
|
|
17737
17753
|
offset: e,
|
|
17738
17754
|
limit: t
|
|
17739
17755
|
}
|
|
17740
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17741
|
-
query:
|
|
17756
|
+
}))?.data.customerTransactionsFeed?.items || [], du = async (i, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17757
|
+
query: Fc,
|
|
17742
17758
|
errorPolicy: "all",
|
|
17743
17759
|
fetchPolicy: "no-cache",
|
|
17744
17760
|
variables: {
|
|
@@ -17757,7 +17773,7 @@ const yc = C`
|
|
|
17757
17773
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
17758
17774
|
}
|
|
17759
17775
|
})();
|
|
17760
|
-
var
|
|
17776
|
+
var xc = /* @__PURE__ */ ((i) => (i.Manual = "Manual", i.OnStart = "OnStart", i.OnQuit = "OnQuit", i.OnEnd = "OnEnd", i))(xc || {}), ve = /* @__PURE__ */ ((i) => (i.Email = "Email", i.FirstName = "FirstName", i.LastName = "LastName", i.Phone = "Phone", i.Apartment = "Apartment", i.City = "City", i.Country = "Country", i.OrganizationName = "OrganizationName", i.PostCode = "PostCode", i.State = "State", i.StreetAddress = "StreetAddress", i.Custom = "Custom", i))(ve || {}), K;
|
|
17761
17777
|
K = { __e: function(i, t, e, a) {
|
|
17762
17778
|
for (var n, r, s; t = t.__; )
|
|
17763
17779
|
if ((n = t.__c) && !n.__)
|
|
@@ -17769,34 +17785,34 @@ K = { __e: function(i, t, e, a) {
|
|
|
17769
17785
|
}
|
|
17770
17786
|
throw i;
|
|
17771
17787
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
17772
|
-
var st, oa,
|
|
17773
|
-
function
|
|
17788
|
+
var st, oa, wn, Fi = [], la = [], yn = K.__b, Sn = K.__r, vn = K.diffed, En = K.__c, bn = K.unmount;
|
|
17789
|
+
function Dc() {
|
|
17774
17790
|
for (var i; i = Fi.shift(); )
|
|
17775
17791
|
if (i.__P && i.__H)
|
|
17776
17792
|
try {
|
|
17777
|
-
i.__H.__h.forEach(
|
|
17793
|
+
i.__H.__h.forEach(Ee), i.__H.__h.forEach(ba), i.__H.__h = [];
|
|
17778
17794
|
} catch (t) {
|
|
17779
17795
|
i.__H.__h = [], K.__e(t, i.__v);
|
|
17780
17796
|
}
|
|
17781
17797
|
}
|
|
17782
17798
|
K.__b = function(i) {
|
|
17783
|
-
st = null,
|
|
17799
|
+
st = null, yn && yn(i);
|
|
17784
17800
|
}, K.__r = function(i) {
|
|
17785
|
-
|
|
17801
|
+
Sn && Sn(i);
|
|
17786
17802
|
var t = (st = i.__c).__H;
|
|
17787
17803
|
t && (oa === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
|
|
17788
17804
|
e.__N && (e.__ = e.__N), e.__V = la, e.__N = e.i = void 0;
|
|
17789
|
-
})) : (t.__h.forEach(
|
|
17805
|
+
})) : (t.__h.forEach(Ee), t.__h.forEach(ba), t.__h = [])), oa = st;
|
|
17790
17806
|
}, K.diffed = function(i) {
|
|
17791
|
-
|
|
17807
|
+
vn && vn(i);
|
|
17792
17808
|
var t = i.__c;
|
|
17793
|
-
t && t.__H && (t.__H.__h.length && (Fi.push(t) !== 1 &&
|
|
17809
|
+
t && t.__H && (t.__H.__h.length && (Fi.push(t) !== 1 && wn === K.requestAnimationFrame || ((wn = K.requestAnimationFrame) || kc)(Dc)), t.__H.__.forEach(function(e) {
|
|
17794
17810
|
e.i && (e.__H = e.i), e.__V !== la && (e.__ = e.__V), e.i = void 0, e.__V = la;
|
|
17795
17811
|
})), oa = st = null;
|
|
17796
17812
|
}, K.__c = function(i, t) {
|
|
17797
17813
|
t.some(function(e) {
|
|
17798
17814
|
try {
|
|
17799
|
-
e.__h.forEach(
|
|
17815
|
+
e.__h.forEach(Ee), e.__h = e.__h.filter(function(a) {
|
|
17800
17816
|
return !a.__ || ba(a);
|
|
17801
17817
|
});
|
|
17802
17818
|
} catch (a) {
|
|
@@ -17804,26 +17820,26 @@ K.__b = function(i) {
|
|
|
17804
17820
|
n.__h && (n.__h = []);
|
|
17805
17821
|
}), t = [], K.__e(a, e.__v);
|
|
17806
17822
|
}
|
|
17807
|
-
}),
|
|
17823
|
+
}), En && En(i, t);
|
|
17808
17824
|
}, K.unmount = function(i) {
|
|
17809
|
-
|
|
17825
|
+
bn && bn(i);
|
|
17810
17826
|
var t, e = i.__c;
|
|
17811
17827
|
e && e.__H && (e.__H.__.forEach(function(a) {
|
|
17812
17828
|
try {
|
|
17813
|
-
|
|
17829
|
+
Ee(a);
|
|
17814
17830
|
} catch (n) {
|
|
17815
17831
|
t = n;
|
|
17816
17832
|
}
|
|
17817
17833
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
17818
17834
|
};
|
|
17819
|
-
var
|
|
17820
|
-
function
|
|
17835
|
+
var In = typeof requestAnimationFrame == "function";
|
|
17836
|
+
function kc(i) {
|
|
17821
17837
|
var t, e = function() {
|
|
17822
|
-
clearTimeout(a),
|
|
17838
|
+
clearTimeout(a), In && cancelAnimationFrame(t), setTimeout(i);
|
|
17823
17839
|
}, a = setTimeout(e, 100);
|
|
17824
|
-
|
|
17840
|
+
In && (t = requestAnimationFrame(e));
|
|
17825
17841
|
}
|
|
17826
|
-
function
|
|
17842
|
+
function Ee(i) {
|
|
17827
17843
|
var t = st, e = i.__c;
|
|
17828
17844
|
typeof e == "function" && (i.__c = void 0, e()), st = t;
|
|
17829
17845
|
}
|
|
@@ -17853,7 +17869,7 @@ const xi = C`
|
|
|
17853
17869
|
}
|
|
17854
17870
|
missingComponentTypes
|
|
17855
17871
|
}
|
|
17856
|
-
`,
|
|
17872
|
+
`, qa = C`
|
|
17857
17873
|
${xi}
|
|
17858
17874
|
fragment AddressValidationJobFields on AddressValidationJob {
|
|
17859
17875
|
id
|
|
@@ -17865,15 +17881,15 @@ const xi = C`
|
|
|
17865
17881
|
...AddressValidationResultFields
|
|
17866
17882
|
}
|
|
17867
17883
|
}
|
|
17868
|
-
`,
|
|
17869
|
-
${
|
|
17884
|
+
`, Mc = C`
|
|
17885
|
+
${qa}
|
|
17870
17886
|
query GetAddressValidationJobs($ids: [String!]!) {
|
|
17871
17887
|
addressValidationJobs(ids: $ids) {
|
|
17872
17888
|
...AddressValidationJobFields
|
|
17873
17889
|
}
|
|
17874
17890
|
}
|
|
17875
|
-
`,
|
|
17876
|
-
${
|
|
17891
|
+
`, Tc = C`
|
|
17892
|
+
${qa}
|
|
17877
17893
|
query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
|
|
17878
17894
|
recipients(ids: $ids) {
|
|
17879
17895
|
id
|
|
@@ -17882,31 +17898,31 @@ const xi = C`
|
|
|
17882
17898
|
}
|
|
17883
17899
|
}
|
|
17884
17900
|
}
|
|
17885
|
-
`,
|
|
17901
|
+
`, Nc = C`
|
|
17886
17902
|
${xi}
|
|
17887
17903
|
mutation ValidateRecipientAddress($id: String!) {
|
|
17888
17904
|
recipientValidate(id: $id) {
|
|
17889
17905
|
...AddressValidationResultFields
|
|
17890
17906
|
}
|
|
17891
17907
|
}
|
|
17892
|
-
`,
|
|
17893
|
-
${
|
|
17908
|
+
`, Qc = C`
|
|
17909
|
+
${qa}
|
|
17894
17910
|
mutation BatchValidateRecipientAddress($ids: [String!]!) {
|
|
17895
17911
|
recipientValidateBatch(ids: $ids) {
|
|
17896
17912
|
...AddressValidationJobFields
|
|
17897
17913
|
}
|
|
17898
17914
|
}
|
|
17899
|
-
`,
|
|
17915
|
+
`, Oc = C`
|
|
17900
17916
|
mutation OverrideRecipientAddress($id: String!) {
|
|
17901
17917
|
recipientOverrideAddress(id: $id) {
|
|
17902
17918
|
id
|
|
17903
17919
|
}
|
|
17904
17920
|
}
|
|
17905
17921
|
`;
|
|
17906
|
-
var
|
|
17907
|
-
const
|
|
17922
|
+
var Rc = /* @__PURE__ */ ((i) => (i.Confirmed = "Confirmed", i.Plausible = "Plausible", i.Unlikely = "Unlikely", i))(Rc || {}), $c = /* @__PURE__ */ ((i) => (i.Created = "Created", i.Processing = "Processing", i.Completed = "Completed", i.Failed = "Failed", i.Cancelled = "Cancelled", i))($c || {});
|
|
17923
|
+
const uu = async (i) => {
|
|
17908
17924
|
const t = i.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await S.getShadowGraphqlClient().query({
|
|
17909
|
-
query:
|
|
17925
|
+
query: Tc,
|
|
17910
17926
|
errorPolicy: "all",
|
|
17911
17927
|
fetchPolicy: "network-only",
|
|
17912
17928
|
variables: {
|
|
@@ -17918,23 +17934,23 @@ const du = async (i) => {
|
|
|
17918
17934
|
if (n)
|
|
17919
17935
|
return e.data?.recipients?.find((r) => r.id === n)?.addressValidationJob;
|
|
17920
17936
|
});
|
|
17921
|
-
},
|
|
17922
|
-
query:
|
|
17937
|
+
}, Au = async (i) => (await S.getShadowGraphqlClient().query({
|
|
17938
|
+
query: Mc,
|
|
17923
17939
|
errorPolicy: "all",
|
|
17924
17940
|
fetchPolicy: "network-only",
|
|
17925
17941
|
variables: {
|
|
17926
17942
|
ids: i
|
|
17927
17943
|
}
|
|
17928
|
-
})).data?.addressValidationJobs,
|
|
17929
|
-
mutation:
|
|
17944
|
+
})).data?.addressValidationJobs, hu = async (i) => i.getTransaction().recipient?.id ? (await S.getShadowGraphqlClient().mutate({
|
|
17945
|
+
mutation: Nc,
|
|
17930
17946
|
errorPolicy: "all",
|
|
17931
17947
|
fetchPolicy: "network-only",
|
|
17932
17948
|
variables: {
|
|
17933
17949
|
id: i.getTransaction().recipient.id
|
|
17934
17950
|
}
|
|
17935
|
-
})).data?.recipientValidate : void 0,
|
|
17951
|
+
})).data?.recipientValidate : void 0, gu = async (i) => {
|
|
17936
17952
|
const t = i.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await S.getShadowGraphqlClient().mutate({
|
|
17937
|
-
mutation:
|
|
17953
|
+
mutation: Qc,
|
|
17938
17954
|
errorPolicy: "all",
|
|
17939
17955
|
fetchPolicy: "network-only",
|
|
17940
17956
|
variables: {
|
|
@@ -17946,19 +17962,19 @@ const du = async (i) => {
|
|
|
17946
17962
|
if (n)
|
|
17947
17963
|
return e.data?.recipientValidateBatch?.find((r) => r.entityId === n);
|
|
17948
17964
|
});
|
|
17949
|
-
},
|
|
17965
|
+
}, mu = async (i) => {
|
|
17950
17966
|
const t = i.getTransaction().recipient?.id;
|
|
17951
17967
|
if (!t)
|
|
17952
17968
|
return;
|
|
17953
17969
|
(await S.getShadowGraphqlClient().mutate({
|
|
17954
|
-
mutation:
|
|
17970
|
+
mutation: Oc,
|
|
17955
17971
|
errorPolicy: "all",
|
|
17956
17972
|
fetchPolicy: "network-only",
|
|
17957
17973
|
variables: {
|
|
17958
17974
|
id: t
|
|
17959
17975
|
}
|
|
17960
|
-
})).data?.recipientOverrideAddress?.id && (i.getTransaction().addressValidationStatus =
|
|
17961
|
-
},
|
|
17976
|
+
})).data?.recipientOverrideAddress?.id && (i.getTransaction().addressValidationStatus = Dn.Overridden);
|
|
17977
|
+
}, Uc = C`
|
|
17962
17978
|
query GetIntegrationProductsForIds($ids: [String!]!) {
|
|
17963
17979
|
integrationProducts(ids: $ids) {
|
|
17964
17980
|
id
|
|
@@ -17968,197 +17984,197 @@ const du = async (i) => {
|
|
|
17968
17984
|
}
|
|
17969
17985
|
}
|
|
17970
17986
|
}
|
|
17971
|
-
`,
|
|
17972
|
-
query:
|
|
17987
|
+
`, pu = async (i) => (await S.getShadowGraphqlClient().query({
|
|
17988
|
+
query: Uc,
|
|
17973
17989
|
variables: {
|
|
17974
17990
|
ids: i
|
|
17975
17991
|
}
|
|
17976
17992
|
})).data.integrationProducts;
|
|
17977
17993
|
export {
|
|
17978
17994
|
Ba as AddonHandle,
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17995
|
+
$c as AddressValidationJobStatus,
|
|
17996
|
+
Rc as AddressValidationResultConfirmationLevel,
|
|
17997
|
+
Dn as AddressValidationStatus,
|
|
17998
|
+
Wd as ArrayInput,
|
|
17983
17999
|
z as AspectType,
|
|
17984
18000
|
Bt as AssetNotFoundError,
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
18001
|
+
be as AssetType,
|
|
18002
|
+
$d as BringForwardCommand,
|
|
18003
|
+
Rd as BringToBackCommand,
|
|
18004
|
+
Od as BringToFrontCommand,
|
|
17989
18005
|
Ki as BundleDesignCreationCartAddMode,
|
|
17990
18006
|
$ as CanvasCommand,
|
|
17991
|
-
|
|
17992
|
-
|
|
18007
|
+
me as CollectionProduct,
|
|
18008
|
+
mn as ColorOptionGlobalPropertyHandle,
|
|
17993
18009
|
Rs as CommandContext,
|
|
17994
|
-
|
|
17995
|
-
|
|
18010
|
+
ve as ConversionDataType,
|
|
18011
|
+
xc as ConversionLocation,
|
|
17996
18012
|
H as CreateElementCommand,
|
|
17997
18013
|
ci as CreateLayoutCommand,
|
|
17998
|
-
|
|
17999
|
-
|
|
18014
|
+
dc as CurrencyContext,
|
|
18015
|
+
cc as CurrencyService,
|
|
18000
18016
|
Ot as DeleteElementCommand,
|
|
18001
18017
|
Sl as DigitalContentStepHandle,
|
|
18002
18018
|
Rl as FileUploadGlobalPropertyHandle,
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
18019
|
+
pe as FlowExecutionNodeResult,
|
|
18020
|
+
ac as FlowExecutionResult,
|
|
18021
|
+
ec as FlowService,
|
|
18006
18022
|
Ls as FontAlignmentCommand,
|
|
18007
18023
|
Us as FontColorCommand,
|
|
18008
18024
|
Vs as FontSizeCommand,
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18025
|
+
ln as FontSourceCommand,
|
|
18026
|
+
Cc as FrameService,
|
|
18027
|
+
wc as FrameStep,
|
|
18028
|
+
yc as FrameStepHandle,
|
|
18029
|
+
La as GlobalPropertyHandle,
|
|
18014
18030
|
U as GroupCommand,
|
|
18015
18031
|
hl as IllustrationStepHandle,
|
|
18016
|
-
|
|
18032
|
+
qe as InformationMessageType,
|
|
18017
18033
|
yl as InformationStepHandle,
|
|
18018
|
-
|
|
18034
|
+
fn as IntegrationProduct,
|
|
18019
18035
|
Xi as IntegrationType,
|
|
18020
|
-
|
|
18036
|
+
kd as LayoutElementFactory,
|
|
18021
18037
|
D as LayoutElementType,
|
|
18022
18038
|
J as LayoutNotFoundError,
|
|
18023
18039
|
_t as LayoutRenderingPurpose,
|
|
18024
18040
|
gl as MaterialStepHandle,
|
|
18025
18041
|
At as MisconfigurationError,
|
|
18026
|
-
|
|
18042
|
+
Zd as MockWorkflowManager,
|
|
18027
18043
|
ml as ModelStepHandle,
|
|
18028
18044
|
vl as ModuleStepHandle,
|
|
18029
|
-
|
|
18045
|
+
Md as MoveCommand,
|
|
18030
18046
|
bi as ObjectInput,
|
|
18031
|
-
|
|
18047
|
+
nc as ObjectInputType,
|
|
18032
18048
|
Si as OptionGlobalPropertyHandle,
|
|
18033
|
-
|
|
18049
|
+
Ie as OptionNotFoundError,
|
|
18034
18050
|
xt as ParseError,
|
|
18035
18051
|
pl as PictureStepHandle,
|
|
18036
18052
|
Zi as ProductCameraRig,
|
|
18037
18053
|
Ei as ProductCollection,
|
|
18038
|
-
|
|
18054
|
+
Yl as ProductCollectionProductSortKey,
|
|
18039
18055
|
jt as ProductWorkflow,
|
|
18040
|
-
|
|
18041
|
-
|
|
18056
|
+
Pe as PromiseCache,
|
|
18057
|
+
Qa as PromiseQueue,
|
|
18042
18058
|
fl as QuestionStepHandle,
|
|
18043
|
-
|
|
18044
|
-
|
|
18059
|
+
Na as QueueablePromise,
|
|
18060
|
+
Nd as ResizeCommand,
|
|
18045
18061
|
Xt as ResourceNotFoundError,
|
|
18046
|
-
|
|
18062
|
+
Td as RotateCommand,
|
|
18047
18063
|
Y as ScaleAxis,
|
|
18048
|
-
|
|
18064
|
+
Ud as SendBackwardsCommand,
|
|
18049
18065
|
Cl as ShapeStepHandle,
|
|
18050
18066
|
_i as ShareActionType,
|
|
18051
|
-
|
|
18052
|
-
|
|
18067
|
+
Hd as SpiffCommerceClient,
|
|
18068
|
+
kn as StakeholderType,
|
|
18053
18069
|
Ji as StepAspectType,
|
|
18054
18070
|
tt as StepHandle,
|
|
18055
18071
|
E as StepType,
|
|
18056
18072
|
Tt as TextAlgorithm,
|
|
18057
18073
|
qs as TextChangeCommand,
|
|
18058
18074
|
$l as TextGlobalPropertyHandle,
|
|
18059
|
-
|
|
18075
|
+
qd as TextInput,
|
|
18060
18076
|
wl as TextStepHandle,
|
|
18061
18077
|
O as UnhandledBehaviorError,
|
|
18062
18078
|
tr as UnitOfMeasurement,
|
|
18063
|
-
|
|
18079
|
+
Qd as UpdateImageSourceCommand,
|
|
18064
18080
|
rt as Variant,
|
|
18065
18081
|
Sa as WorkflowExperienceEventType,
|
|
18066
18082
|
Tl as WorkflowExperienceImpl,
|
|
18067
18083
|
Vl as amtChannelsForAspect,
|
|
18068
18084
|
W as assetService,
|
|
18069
18085
|
Br as browserColorToHex,
|
|
18070
|
-
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18086
|
+
xd as cmPerPixel,
|
|
18087
|
+
Bd as currentDirection,
|
|
18088
|
+
gd as dataUrlFromExternalUrl,
|
|
18089
|
+
_d as deleteBundle,
|
|
18090
|
+
ra as designService,
|
|
18091
|
+
Se as determineCorrectFontSizeAndLines,
|
|
18076
18092
|
ui as digitalContentStepService,
|
|
18077
18093
|
ht as domParser,
|
|
18078
|
-
|
|
18079
|
-
|
|
18094
|
+
au as duplicateBundle,
|
|
18095
|
+
nu as duplicateTransaction,
|
|
18080
18096
|
at as fetchAsString,
|
|
18081
|
-
|
|
18097
|
+
wd as findAngle,
|
|
18082
18098
|
L as findElement,
|
|
18083
|
-
|
|
18099
|
+
fd as findPmsColors,
|
|
18084
18100
|
qt as frameDataCache,
|
|
18085
18101
|
bt as frameStepService,
|
|
18086
18102
|
N as generate,
|
|
18087
18103
|
bo as generateCommands,
|
|
18088
18104
|
ot as generateSVGWithUnknownColors,
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
|
|
18105
|
+
Ld as generateStateFromDesignInputSteps,
|
|
18106
|
+
Au as getAddressValidationJobs,
|
|
18107
|
+
$e as getAttributesFromArrayBuffer,
|
|
18108
|
+
Cd as getAxisAlignedBoundingBox,
|
|
18109
|
+
fc as getBoundedOffsets,
|
|
18110
|
+
Xd as getBundleIdForTransaction,
|
|
18111
|
+
Jd as getBundleThemeConfiguration,
|
|
18112
|
+
iu as getCustomer,
|
|
18113
|
+
ru as getCustomerBundles,
|
|
18114
|
+
Pd as getElementVertices,
|
|
18115
|
+
Le as getFrameData,
|
|
18116
|
+
zd as getGlobalPropertyStateForBundle,
|
|
18117
|
+
mc as getIntegration,
|
|
18118
|
+
pu as getIntegrationProducts,
|
|
18119
|
+
bd as getNEPoint,
|
|
18120
|
+
Ed as getNWPoint,
|
|
18121
|
+
lu as getOrderedTransactions,
|
|
18122
|
+
Yd as getOverrideThemeConfiguration,
|
|
18123
|
+
vd as getPointOfRotation,
|
|
18124
|
+
Gd as getProductCollections,
|
|
18125
|
+
Id as getSEPoint,
|
|
18126
|
+
Oa as getSvgElement,
|
|
18127
|
+
du as getTemplateBundles,
|
|
18128
|
+
cu as getTemplateTransactions,
|
|
18129
|
+
jd as getTransaction,
|
|
18130
|
+
Kd as getTransactionThemeConfiguration,
|
|
18131
|
+
su as getTransactionsForBundle,
|
|
18116
18132
|
Ta as getTransformedAssetURL,
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18133
|
+
Sd as getTrueCoordinates,
|
|
18134
|
+
ou as getUnorderedTransactions,
|
|
18135
|
+
uu as getValidationJobsForWorkflowExperiences,
|
|
18136
|
+
hc as getWorkflow,
|
|
18121
18137
|
Ii as getWorkflows,
|
|
18122
18138
|
S as graphQlManager,
|
|
18123
|
-
|
|
18124
|
-
|
|
18139
|
+
ye as illustrationStepService,
|
|
18140
|
+
yd as isCloseToValue,
|
|
18125
18141
|
Qt as loadFont,
|
|
18126
|
-
|
|
18142
|
+
pd as matchHexToPms,
|
|
18127
18143
|
Ai as materialStepService,
|
|
18128
18144
|
Ea as metafieldManager,
|
|
18129
|
-
|
|
18145
|
+
Fd as mmPerPixel,
|
|
18130
18146
|
hi as modelStepService,
|
|
18131
18147
|
Ma as modifySVGColors,
|
|
18132
18148
|
gi as moduleStepService,
|
|
18133
|
-
|
|
18134
|
-
|
|
18149
|
+
tu as nameBundle,
|
|
18150
|
+
eu as nameTransaction,
|
|
18135
18151
|
B as optionService,
|
|
18136
|
-
|
|
18137
|
-
|
|
18152
|
+
Dd as outlineFontsInSvg,
|
|
18153
|
+
mu as overrideWorkflowExperienceRecipientAddress,
|
|
18138
18154
|
mt as patternImageDataCache,
|
|
18139
18155
|
Q as persistenceService,
|
|
18140
18156
|
mi as pictureStepService,
|
|
18141
|
-
|
|
18157
|
+
md as pmsToRgb,
|
|
18142
18158
|
pi as questionStepService,
|
|
18143
|
-
|
|
18144
|
-
|
|
18145
|
-
|
|
18159
|
+
hd as registerFetchImplementation,
|
|
18160
|
+
Ad as registerWindowImplementation,
|
|
18161
|
+
sn as rehydrateSerializedLayout,
|
|
18146
18162
|
Er as rgbToPms,
|
|
18147
18163
|
Ae as rotateAroundPoint,
|
|
18148
18164
|
Da as sanitizeSvgTree,
|
|
18149
18165
|
gr as setBearerAuthenticationToken,
|
|
18150
|
-
|
|
18166
|
+
$n as setCanvasModule,
|
|
18151
18167
|
Wt as shapeStepService,
|
|
18152
18168
|
Hs as shortenUrl,
|
|
18153
18169
|
wt as spiffCoreConfiguration,
|
|
18154
|
-
|
|
18155
|
-
|
|
18170
|
+
Vd as stepAspectValuesToDesignInputSteps,
|
|
18171
|
+
Xa as svgColorValueToDefinition,
|
|
18156
18172
|
oi as svgStringDimensions,
|
|
18157
18173
|
Pa as svgToDataUrl,
|
|
18158
18174
|
j as textStepService,
|
|
18159
18175
|
ao as toast,
|
|
18160
|
-
|
|
18161
|
-
|
|
18176
|
+
hu as validateWorkflowExperienceRecipient,
|
|
18177
|
+
gu as validateWorkflowExperienceRecipients,
|
|
18162
18178
|
Pt as xmlSerializer
|
|
18163
18179
|
};
|
|
18164
18180
|
//# sourceMappingURL=index.mjs.map
|