@spiffcommerce/core 26.28.0 → 26.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +158 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +565 -487
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -158,10 +158,10 @@ class Sr {
|
|
|
158
158
|
}
|
|
159
159
|
const mt = new Sr();
|
|
160
160
|
let _e, Xe;
|
|
161
|
-
function
|
|
161
|
+
function oc(r) {
|
|
162
162
|
_e = r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function lc(r) {
|
|
165
165
|
Xe = r;
|
|
166
166
|
}
|
|
167
167
|
function Jt() {
|
|
@@ -215,14 +215,14 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
215
215
|
t ? vr(r).then(e).catch(a) : rt(r).then((n) => {
|
|
216
216
|
n.text().then(e).catch(a);
|
|
217
217
|
}).catch(a);
|
|
218
|
-
}), dn = (r) => or(r),
|
|
218
|
+
}), dn = (r) => or(r), Ne = /* @__PURE__ */ new Map(), br = async (r, t) => {
|
|
219
219
|
if (Mt([typeof FontFace])) {
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
220
|
+
if (Ne.has(t))
|
|
221
|
+
return Ne.get(t);
|
|
222
222
|
const e = r.names.fullName.en, a = new FontFace(e, `url(${t})`);
|
|
223
223
|
document.fonts.add(a);
|
|
224
224
|
const n = a.load();
|
|
225
|
-
return
|
|
225
|
+
return Ne.set(t, n), n;
|
|
226
226
|
}
|
|
227
227
|
}, Et = () => {
|
|
228
228
|
if (Mt([typeof XMLSerializer]))
|
|
@@ -256,7 +256,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
256
256
|
}
|
|
257
257
|
const e = t();
|
|
258
258
|
return e || "image/svg+xml";
|
|
259
|
-
},
|
|
259
|
+
}, cc = async (r) => {
|
|
260
260
|
const t = await cn(r), e = ln.get(r) || Ie(t);
|
|
261
261
|
return await Pr(new Blob([t], { type: e }));
|
|
262
262
|
}, Ir = (r) => {
|
|
@@ -311,12 +311,12 @@ const kr = (r) => {
|
|
|
311
311
|
};
|
|
312
312
|
return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Mr(), ...r } : r;
|
|
313
313
|
};
|
|
314
|
-
async function
|
|
314
|
+
async function Nr(r, t) {
|
|
315
315
|
const e = mt.getServerUrl(), a = e.includes(".aumelbdev.spiffcommerce.com") ? "https://moonlight.aumelbdev.spiffcommerce.com" : e.includes(".us.spiffcommerce.com") ? "https://moonlight.us.spiffcommerce.com" : "https://moonlight.au.spiffcommerce.com";
|
|
316
316
|
let n = await rt(r, { ...t, redirect: "manual" });
|
|
317
317
|
return n.type === "opaqueredirect" && (typeof r != "string" && "url" in r ? n = await rt({ ...r, url: `${a}/graphql` }, t) : n = await rt(`${a}/graphql`, t)), n;
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Qr {
|
|
320
320
|
constructor() {
|
|
321
321
|
this.shadowGraphqlClient = this.constructShadowGraphqlClient(), mt.addServerUrlCallback(() => {
|
|
322
322
|
this.shadowGraphqlClient = this.constructShadowGraphqlClient();
|
|
@@ -328,7 +328,7 @@ class Nr {
|
|
|
328
328
|
constructShadowGraphqlClient() {
|
|
329
329
|
const t = er({
|
|
330
330
|
uri: `${mt.getServerUrl()}/graphql`,
|
|
331
|
-
fetch:
|
|
331
|
+
fetch: Nr
|
|
332
332
|
}), e = ir(async (i, s) => {
|
|
333
333
|
const { headers: o } = s, l = o || {}, c = await Tr(), d = s.bearer ?? c.bearer, A = s.partnerId ?? c.partnerId, u = s.activeIntegration ?? c.activeIntegration, h = s.transactionOwnerId, m = s.customerToken ?? c.customerToken, g = s.applicationKey ?? c.applicationKey, f = s.bundleOwnerId;
|
|
334
334
|
try {
|
|
@@ -357,7 +357,7 @@ class Nr {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
const b = new
|
|
360
|
+
const b = new Qr();
|
|
361
361
|
let Ze, ta;
|
|
362
362
|
const gt = (r, t, e) => {
|
|
363
363
|
if (Ze !== void 0)
|
|
@@ -401,9 +401,9 @@ function gn(r) {
|
|
|
401
401
|
throw t;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
let
|
|
404
|
+
let Qe;
|
|
405
405
|
function ha() {
|
|
406
|
-
return
|
|
406
|
+
return Qe === void 0 && (Qe = Br()), Qe;
|
|
407
407
|
}
|
|
408
408
|
let ae = null;
|
|
409
409
|
const Rr = (r) => new Promise((t) => {
|
|
@@ -415,12 +415,12 @@ const Rr = (r) => new Promise((t) => {
|
|
|
415
415
|
return !ae;
|
|
416
416
|
const t = await Kt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
|
|
417
417
|
return ae = t.width === 2 && t.height === 3, !ae;
|
|
418
|
-
},
|
|
418
|
+
}, $r = (r) => {
|
|
419
419
|
const e = r.naturalWidth / r.naturalHeight;
|
|
420
420
|
return r.naturalHeight <= 8192 && r.naturalWidth <= 8192 ? [r.naturalWidth, r.naturalHeight] : r.naturalHeight > r.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
|
|
421
|
-
},
|
|
421
|
+
}, Ur = async (r) => {
|
|
422
422
|
var A;
|
|
423
|
-
const t = await Dr(r), e = await Kt(t), [a, n] =
|
|
423
|
+
const t = await Dr(r), e = await Kt(t), [a, n] = $r(e);
|
|
424
424
|
if (!await Or()) {
|
|
425
425
|
const u = gt(a, n);
|
|
426
426
|
return (A = u.getContext("2d")) == null || A.drawImage(e, 0, 0, a, n), u;
|
|
@@ -451,7 +451,7 @@ const Rr = (r) => new Promise((t) => {
|
|
|
451
451
|
}
|
|
452
452
|
return d.drawImage(e, 0, 0, o, l), c;
|
|
453
453
|
}, De = async (r) => {
|
|
454
|
-
const t = await
|
|
454
|
+
const t = await Ur(r);
|
|
455
455
|
return Ie(r) === "image/jpeg" ? {
|
|
456
456
|
dataUrl: t.toDataURL("image/jpeg", 1),
|
|
457
457
|
height: t.height,
|
|
@@ -3150,7 +3150,7 @@ const Rr = (r) => new Promise((t) => {
|
|
|
3150
3150
|
parseInt(r.substring(2, 4), 16),
|
|
3151
3151
|
parseInt(r.substring(4, 6), 16)
|
|
3152
3152
|
]);
|
|
3153
|
-
function
|
|
3153
|
+
function dc(r) {
|
|
3154
3154
|
const t = jt.indexOf(r);
|
|
3155
3155
|
return t >= 0 ? Ft[t] : "";
|
|
3156
3156
|
}
|
|
@@ -3158,7 +3158,7 @@ function Lr(r) {
|
|
|
3158
3158
|
const t = Ft.indexOf(r);
|
|
3159
3159
|
return t >= 0 ? jt[t] : "";
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3161
|
+
function Ac(r, t = 64) {
|
|
3162
3162
|
const e = [], a = [], n = Lr(r);
|
|
3163
3163
|
n && e.push({
|
|
3164
3164
|
pms: n,
|
|
@@ -3177,19 +3177,19 @@ function lc(r, t = 64) {
|
|
|
3177
3177
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3178
3178
|
}
|
|
3179
3179
|
const Vr = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), zr = new dr(Vr, { keys: ["pms"] });
|
|
3180
|
-
function
|
|
3180
|
+
function uc(r, t) {
|
|
3181
3181
|
return zr.search(r, t ? { limit: t } : void 0);
|
|
3182
3182
|
}
|
|
3183
|
-
let
|
|
3183
|
+
let Nt = null;
|
|
3184
3184
|
function Gr(r) {
|
|
3185
3185
|
if (r.startsWith("#"))
|
|
3186
3186
|
return Ta(r);
|
|
3187
3187
|
if (!document)
|
|
3188
3188
|
throw new Error("browserColorToHex is only supported on browsers");
|
|
3189
|
-
if (
|
|
3189
|
+
if (Nt || (Nt = document.createElement("canvas").getContext("2d")), !Nt)
|
|
3190
3190
|
throw new Error("Failed to create canvas context required to convert colors");
|
|
3191
|
-
|
|
3192
|
-
const t = Ta(
|
|
3191
|
+
Nt.fillStyle = r;
|
|
3192
|
+
const t = Ta(Nt.fillStyle);
|
|
3193
3193
|
return t || console.error(`Unknown browser color ${r}`), t;
|
|
3194
3194
|
}
|
|
3195
3195
|
function Ta(r) {
|
|
@@ -3207,7 +3207,7 @@ const ne = (r) => {
|
|
|
3207
3207
|
return `icc-named-color(${t.slice(e + 1).slice(0, -4)}, ${r.namedColor})`;
|
|
3208
3208
|
}
|
|
3209
3209
|
return `icc-named-color(${r.profileName}, ${r.namedColor})`;
|
|
3210
|
-
},
|
|
3210
|
+
}, Na = (r) => {
|
|
3211
3211
|
const t = r.split(/[ ](?=[^)]*?(?:\(|$))/);
|
|
3212
3212
|
if (t.length === 0)
|
|
3213
3213
|
return { browserValue: "#000000" };
|
|
@@ -3351,12 +3351,12 @@ const ne = (r) => {
|
|
|
3351
3351
|
Wr.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
|
|
3352
3352
|
const o = s.attributes.getNamedItem("fill");
|
|
3353
3353
|
if (o && o.value !== "none" && !o.value.startsWith("url(")) {
|
|
3354
|
-
const c =
|
|
3354
|
+
const c = Na(o.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
|
|
3355
3355
|
s.setAttribute("fill", c.browserValue), s.classList.add(A), a[d] = c;
|
|
3356
3356
|
}
|
|
3357
3357
|
const l = s.attributes.getNamedItem("stroke");
|
|
3358
3358
|
if (l && l.value !== "none" && !l.value.startsWith("url(")) {
|
|
3359
|
-
const c =
|
|
3359
|
+
const c = Na(l.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-stroke-${d}`;
|
|
3360
3360
|
s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
|
|
3361
3361
|
}
|
|
3362
3362
|
});
|
|
@@ -3704,7 +3704,7 @@ class ni {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
|
-
const
|
|
3707
|
+
const Qt = "persistentAssets", yn = class pt {
|
|
3708
3708
|
/**
|
|
3709
3709
|
* Add a new asset to persistence
|
|
3710
3710
|
* @param asset The asset to add.
|
|
@@ -3716,27 +3716,27 @@ const Nt = "persistentAssets", yn = class pt {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
const e = /* @__PURE__ */ new Map();
|
|
3718
3718
|
e.set(t.key || "", t.fileLink);
|
|
3719
|
-
const a = k.getMap(
|
|
3719
|
+
const a = k.getMap(Qt);
|
|
3720
3720
|
a && a.forEach((n, i) => {
|
|
3721
3721
|
e.set(i, n);
|
|
3722
|
-
}), k.setMap(
|
|
3722
|
+
}), k.setMap(Qt, e), pt.executeCallbacks();
|
|
3723
3723
|
}
|
|
3724
3724
|
/**
|
|
3725
3725
|
* Remove an existing asset from persistence. Noop if the asset doesn't exist.
|
|
3726
3726
|
* @param assetKey The key to remove.
|
|
3727
3727
|
*/
|
|
3728
3728
|
static remove(t) {
|
|
3729
|
-
const e = k.getMap(
|
|
3729
|
+
const e = k.getMap(Qt);
|
|
3730
3730
|
if (!e)
|
|
3731
3731
|
return;
|
|
3732
3732
|
const a = Array.from(e.entries()).find((n) => n[0] === t);
|
|
3733
|
-
a && (e.delete(a[0]), k.setMap(
|
|
3733
|
+
a && (e.delete(a[0]), k.setMap(Qt, e), pt.executeCallbacks());
|
|
3734
3734
|
}
|
|
3735
3735
|
/**
|
|
3736
3736
|
* Get a list of all persisted assets.
|
|
3737
3737
|
*/
|
|
3738
3738
|
static list() {
|
|
3739
|
-
const t = k.getMap(
|
|
3739
|
+
const t = k.getMap(Qt);
|
|
3740
3740
|
return t ? Array.from(t.entries()).map((e) => ({ assetKey: e[0], src: e[1] })) : [];
|
|
3741
3741
|
}
|
|
3742
3742
|
/**
|
|
@@ -3757,7 +3757,7 @@ const Nt = "persistentAssets", yn = class pt {
|
|
|
3757
3757
|
};
|
|
3758
3758
|
yn.callbacks = [];
|
|
3759
3759
|
let Bt = yn;
|
|
3760
|
-
const
|
|
3760
|
+
const Qa = "bgrmPersistentAssets";
|
|
3761
3761
|
class J {
|
|
3762
3762
|
static has(t) {
|
|
3763
3763
|
return J.getMap().has(t);
|
|
@@ -3784,13 +3784,13 @@ class J {
|
|
|
3784
3784
|
a && (e.delete(a), J.setMap(e));
|
|
3785
3785
|
}
|
|
3786
3786
|
static getMap() {
|
|
3787
|
-
return k.getMap(
|
|
3787
|
+
return k.getMap(Qa) || /* @__PURE__ */ new Map();
|
|
3788
3788
|
}
|
|
3789
3789
|
static setMap(t) {
|
|
3790
|
-
k.setMap(
|
|
3790
|
+
k.setMap(Qa, t);
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
|
-
const
|
|
3793
|
+
const $ = new ni();
|
|
3794
3794
|
class ri {
|
|
3795
3795
|
constructor() {
|
|
3796
3796
|
this.cache = {}, this.disabled = !1;
|
|
@@ -3878,8 +3878,8 @@ const Ht = new ri(), Sn = y`
|
|
|
3878
3878
|
});
|
|
3879
3879
|
return t.data.options.forEach((e) => {
|
|
3880
3880
|
var a, n;
|
|
3881
|
-
(a = e.defaultVariant) != null && a.asset &&
|
|
3882
|
-
i.asset &&
|
|
3881
|
+
(a = e.defaultVariant) != null && a.asset && $.cacheAsset(e.defaultVariant.asset), e.colorProfile && $.cacheAsset(e.colorProfile), (n = e.variants) == null || n.forEach((i) => {
|
|
3882
|
+
i.asset && $.cacheAsset(i.asset), i.thumbnail && $.cacheAsset(i.thumbnail), i.material && $.cacheMaterial(i.material);
|
|
3883
3883
|
});
|
|
3884
3884
|
}), t.data.options;
|
|
3885
3885
|
}, oi = async (r, t) => (await t).find((a) => a.id === r), li = async (r) => {
|
|
@@ -4122,6 +4122,17 @@ const X = new ci(), vn = y`
|
|
|
4122
4122
|
transactionShareActions {
|
|
4123
4123
|
...TransactionShareActionFields
|
|
4124
4124
|
}
|
|
4125
|
+
recipient {
|
|
4126
|
+
id
|
|
4127
|
+
firstName
|
|
4128
|
+
lastName
|
|
4129
|
+
address
|
|
4130
|
+
suburb
|
|
4131
|
+
state
|
|
4132
|
+
email
|
|
4133
|
+
postalCode
|
|
4134
|
+
country
|
|
4135
|
+
}
|
|
4125
4136
|
product {
|
|
4126
4137
|
id
|
|
4127
4138
|
basePrice
|
|
@@ -5175,7 +5186,7 @@ const X = new ci(), vn = y`
|
|
|
5175
5186
|
);
|
|
5176
5187
|
}
|
|
5177
5188
|
return !1;
|
|
5178
|
-
}),
|
|
5189
|
+
}), Ni = (r, t) => {
|
|
5179
5190
|
const e = {
|
|
5180
5191
|
name: r.name,
|
|
5181
5192
|
title: r.title,
|
|
@@ -5183,7 +5194,7 @@ const X = new ci(), vn = y`
|
|
|
5183
5194
|
silentSteps: r.silentSteps.filter((a) => wt(a, t))
|
|
5184
5195
|
};
|
|
5185
5196
|
return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
|
|
5186
|
-
}, It = (r, t) => r.map((e) =>
|
|
5197
|
+
}, It = (r, t) => r.map((e) => Ni(e, t)).filter((e) => e !== null), Qi = async (r, t, e = !1) => {
|
|
5187
5198
|
var s;
|
|
5188
5199
|
const a = It(r, t), n = [];
|
|
5189
5200
|
for (const o of a)
|
|
@@ -5275,7 +5286,7 @@ class Pn {
|
|
|
5275
5286
|
}
|
|
5276
5287
|
}
|
|
5277
5288
|
}
|
|
5278
|
-
const
|
|
5289
|
+
const N = () => {
|
|
5279
5290
|
const r = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
5280
5291
|
return r() + r() + "-" + r() + "-" + r() + "-" + r() + "-" + r() + r() + r();
|
|
5281
5292
|
}, Ri = ({
|
|
@@ -5294,7 +5305,7 @@ const Q = () => {
|
|
|
5294
5305
|
width: u
|
|
5295
5306
|
}) => {
|
|
5296
5307
|
var B;
|
|
5297
|
-
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, f = `${g.x} ${g.y} ${g.width} ${g.height}`, p =
|
|
5308
|
+
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, f = `${g.x} ${g.y} ${g.width} ${g.height}`, p = N(), C = a.purpose === Gt.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (B = a.colorProfiles) == null ? void 0 : B.map((E, I) => (
|
|
5298
5309
|
/* @ts-ignore */
|
|
5299
5310
|
/* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, I)
|
|
5300
5311
|
)), v = n.map((E) => ({
|
|
@@ -5338,7 +5349,7 @@ const Q = () => {
|
|
|
5338
5349
|
{
|
|
5339
5350
|
id: "element-group",
|
|
5340
5351
|
clipPath: a.purpose === Gt.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5341
|
-
children: S.map((E) =>
|
|
5352
|
+
children: S.map((E) => Nn(E)).filter((E) => !!E)
|
|
5342
5353
|
}
|
|
5343
5354
|
),
|
|
5344
5355
|
l && /* @__PURE__ */ x(
|
|
@@ -5379,7 +5390,7 @@ const Q = () => {
|
|
|
5379
5390
|
]
|
|
5380
5391
|
}
|
|
5381
5392
|
);
|
|
5382
|
-
},
|
|
5393
|
+
}, hc = (r, t, e, a, n) => {
|
|
5383
5394
|
const i = ft(n), s = e / 2, o = a / 2, l = r + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, f = u * A - m * d, p = h * A - g * d, C = u * d + m * A, w = h * d + g * A, v = Math.max(Math.abs(f), Math.abs(p)), S = Math.max(Math.abs(C), Math.abs(w));
|
|
5384
5395
|
return {
|
|
5385
5396
|
minX: l - v,
|
|
@@ -5387,25 +5398,25 @@ const Q = () => {
|
|
|
5387
5398
|
minY: c - S,
|
|
5388
5399
|
maxY: c + S
|
|
5389
5400
|
};
|
|
5390
|
-
},
|
|
5401
|
+
}, mc = (r, t, e) => {
|
|
5391
5402
|
const a = Math.sqrt(Math.pow(t.x - r.x, 2) + Math.pow(t.y - r.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - r.x, 2) + Math.pow(e.y - r.y, 2));
|
|
5392
5403
|
return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
|
|
5393
|
-
}, ft = (r) => r * (Math.PI / 180),
|
|
5404
|
+
}, ft = (r) => r * (Math.PI / 180), gc = (r, t, e) => Math.abs(r - t) < e, fc = (r, t, e) => {
|
|
5394
5405
|
const a = Math.sin(ft(e)), n = Math.cos(ft(e));
|
|
5395
5406
|
return {
|
|
5396
5407
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5397
5408
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5398
5409
|
};
|
|
5399
|
-
},
|
|
5410
|
+
}, pc = (r, t) => ({
|
|
5400
5411
|
x: (r.x + t.x) / 2,
|
|
5401
5412
|
y: (r.y + t.y) / 2
|
|
5402
|
-
}),
|
|
5413
|
+
}), Cc = (r, t, e, a) => ({
|
|
5403
5414
|
x: r.x + (t == null ? void 0 : t.x) * e,
|
|
5404
5415
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5405
|
-
}),
|
|
5416
|
+
}), wc = (r, t, e, a) => ({
|
|
5406
5417
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5407
5418
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5408
|
-
}),
|
|
5419
|
+
}), yc = (r, t, e, a) => ({
|
|
5409
5420
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5410
5421
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5411
5422
|
}), bt = (r) => {
|
|
@@ -5427,7 +5438,7 @@ const Q = () => {
|
|
|
5427
5438
|
case H.Southwest:
|
|
5428
5439
|
return H.Northwest;
|
|
5429
5440
|
}
|
|
5430
|
-
},
|
|
5441
|
+
}, Sc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, vc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5431
5442
|
const a = ft(r.rotation), n = {
|
|
5432
5443
|
x: t.x + r.x * e.x,
|
|
5433
5444
|
y: t.x + r.y * e.y
|
|
@@ -5457,7 +5468,7 @@ const Q = () => {
|
|
|
5457
5468
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5458
5469
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5459
5470
|
};
|
|
5460
|
-
},
|
|
5471
|
+
}, Ec = 0.352778, Bc = 0.035277, Fn = (r) => {
|
|
5461
5472
|
const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5462
5473
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5463
5474
|
"g",
|
|
@@ -5506,7 +5517,7 @@ const Q = () => {
|
|
|
5506
5517
|
height: r.height
|
|
5507
5518
|
}
|
|
5508
5519
|
) : void 0,
|
|
5509
|
-
s.map((c) =>
|
|
5520
|
+
s.map((c) => Nn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ x("g", { clipPath: `url(#${t})`, children: c }))
|
|
5510
5521
|
]
|
|
5511
5522
|
}
|
|
5512
5523
|
)
|
|
@@ -5543,7 +5554,7 @@ const Q = () => {
|
|
|
5543
5554
|
/* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
|
|
5544
5555
|
] })
|
|
5545
5556
|
] }) }) }), s = r.rotation || 0, o = ft(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
|
|
5546
|
-
var w, v, S, B, E, I, P, F, M,
|
|
5557
|
+
var w, v, S, B, E, I, P, F, M, Q;
|
|
5547
5558
|
const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((v = r.pattern) == null ? void 0 : v.y) || 0, h = ((S = r.pattern) == null ? void 0 : S.width) || 0, m = ((B = r.pattern) == null ? void 0 : B.height) || 0, g = ((E = r.pattern) == null ? void 0 : E.scaleX) || 1, f = ((I = r.pattern) == null ? void 0 : I.scaleY) || 1, p = ((P = r.pattern) == null ? void 0 : P.rotation) || 0;
|
|
5548
5559
|
return [(F = r.pattern) != null && F.svg ? {
|
|
5549
5560
|
id: `${t}-contents`,
|
|
@@ -5555,7 +5566,7 @@ const Q = () => {
|
|
|
5555
5566
|
height: m * f,
|
|
5556
5567
|
src: a(),
|
|
5557
5568
|
svg: (M = r.pattern) == null ? void 0 : M.svg,
|
|
5558
|
-
colors: (
|
|
5569
|
+
colors: (Q = r.pattern) == null ? void 0 : Q.colors
|
|
5559
5570
|
} : {
|
|
5560
5571
|
id: `${t}-contents`,
|
|
5561
5572
|
type: T.Image,
|
|
@@ -5604,7 +5615,7 @@ const Q = () => {
|
|
|
5604
5615
|
)
|
|
5605
5616
|
] });
|
|
5606
5617
|
}, kn = /* @__PURE__ */ new Map();
|
|
5607
|
-
class
|
|
5618
|
+
class $i {
|
|
5608
5619
|
constructor(t) {
|
|
5609
5620
|
this.font = t, this.glyphsFromText = /* @__PURE__ */ new Map(), this.kerningValues = /* @__PURE__ */ new Map(), this.height = this.calculateApproximateHeight();
|
|
5610
5621
|
}
|
|
@@ -5654,14 +5665,14 @@ class Ui {
|
|
|
5654
5665
|
}), a - n;
|
|
5655
5666
|
}
|
|
5656
5667
|
}
|
|
5657
|
-
const
|
|
5668
|
+
const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @__PURE__ */ new Map(), Tt = async (r) => {
|
|
5658
5669
|
if (Oe.has(r))
|
|
5659
5670
|
return Oe.get(r);
|
|
5660
5671
|
const e = (async () => {
|
|
5661
5672
|
try {
|
|
5662
5673
|
return St(r).getFont();
|
|
5663
5674
|
} catch {
|
|
5664
|
-
if (
|
|
5675
|
+
if (Ui(r)) {
|
|
5665
5676
|
const a = An(r), n = Je(a);
|
|
5666
5677
|
return aa(r, n), n;
|
|
5667
5678
|
} else {
|
|
@@ -5680,9 +5691,9 @@ const $i = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5680
5691
|
return t;
|
|
5681
5692
|
throw new Error("Font metrics unavailable for font");
|
|
5682
5693
|
}, aa = (r, t) => {
|
|
5683
|
-
const e = new
|
|
5694
|
+
const e = new $i(t);
|
|
5684
5695
|
return kn.set(r, e), e;
|
|
5685
|
-
},
|
|
5696
|
+
}, bc = async (r) => {
|
|
5686
5697
|
const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5687
5698
|
a.querySelectorAll("style").forEach((d) => {
|
|
5688
5699
|
var u;
|
|
@@ -5800,7 +5811,7 @@ const $i = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5800
5811
|
let o = { ...r };
|
|
5801
5812
|
const l = { ...r }, c = Mn(a, e / s.unitsPerEm, St(t.assetUrl));
|
|
5802
5813
|
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 && ji(a, a).every(([d, A]) => d === A) && (o = l)), o;
|
|
5803
|
-
},
|
|
5814
|
+
}, $e = 1, ht = (r, t, e) => {
|
|
5804
5815
|
let a = 0;
|
|
5805
5816
|
const n = e.getGlyphs(r);
|
|
5806
5817
|
return n.forEach((i, s) => {
|
|
@@ -6004,7 +6015,7 @@ const $i = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
6004
6015
|
};
|
|
6005
6016
|
class _i {
|
|
6006
6017
|
constructor() {
|
|
6007
|
-
this.id =
|
|
6018
|
+
this.id = N(), this.stateCallbacks = [], this.prevCommands = [], this.nextCommands = [];
|
|
6008
6019
|
}
|
|
6009
6020
|
registerStateCallback(t) {
|
|
6010
6021
|
this.stateCallbacks.push(t);
|
|
@@ -6084,7 +6095,7 @@ class _i {
|
|
|
6084
6095
|
layouts: {}
|
|
6085
6096
|
};
|
|
6086
6097
|
t.forEach((n) => {
|
|
6087
|
-
a = new
|
|
6098
|
+
a = new $n(n).apply(a);
|
|
6088
6099
|
}), this.runStateCallbacks(), this.state = {
|
|
6089
6100
|
transaction: a
|
|
6090
6101
|
};
|
|
@@ -6094,7 +6105,7 @@ class _i {
|
|
|
6094
6105
|
return { ...t, transaction: e.apply(a) };
|
|
6095
6106
|
}
|
|
6096
6107
|
}
|
|
6097
|
-
const
|
|
6108
|
+
const Nn = (r) => r.type === T.Image ? /* @__PURE__ */ x(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ x(Oi, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ x(Ki, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ x(qi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ x(xn, { ...r }, r.id) : null, wa = (r, t, e) => {
|
|
6098
6109
|
const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
|
|
6099
6110
|
return /* @__PURE__ */ x(
|
|
6100
6111
|
Ri,
|
|
@@ -6144,7 +6155,7 @@ const Zt = (r) => {
|
|
|
6144
6155
|
if (r.defaultVariant !== void 0)
|
|
6145
6156
|
return t.find((e) => e.id === r.defaultVariant);
|
|
6146
6157
|
}
|
|
6147
|
-
}, At = /* @__PURE__ */ new Map(),
|
|
6158
|
+
}, At = /* @__PURE__ */ new Map(), Ut = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), Qn = async (r, t) => {
|
|
6148
6159
|
if (!t) {
|
|
6149
6160
|
if (!r)
|
|
6150
6161
|
throw new Error("No region or src supplied. Cannot construct frame!");
|
|
@@ -6168,11 +6179,11 @@ const Zt = (r) => {
|
|
|
6168
6179
|
throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
|
|
6169
6180
|
return e;
|
|
6170
6181
|
}, xe = async (r) => {
|
|
6171
|
-
if (
|
|
6172
|
-
return
|
|
6182
|
+
if (Ue.has(r))
|
|
6183
|
+
return Ue.get(r);
|
|
6173
6184
|
const e = (async () => {
|
|
6174
|
-
if (
|
|
6175
|
-
return
|
|
6185
|
+
if (Ut.has(r))
|
|
6186
|
+
return Ut.get(r);
|
|
6176
6187
|
await new Promise((u) => setTimeout(u, 0));
|
|
6177
6188
|
const n = dt().parseFromString(r, "image/svg+xml"), i = n.querySelector("svg");
|
|
6178
6189
|
if (!i)
|
|
@@ -6190,7 +6201,7 @@ const Zt = (r) => {
|
|
|
6190
6201
|
width: c,
|
|
6191
6202
|
height: l
|
|
6192
6203
|
};
|
|
6193
|
-
return
|
|
6204
|
+
return Ut.set(u, h), h;
|
|
6194
6205
|
}
|
|
6195
6206
|
if (A) {
|
|
6196
6207
|
const u = A.getAttribute("d");
|
|
@@ -6201,11 +6212,11 @@ const Zt = (r) => {
|
|
|
6201
6212
|
width: c,
|
|
6202
6213
|
height: l
|
|
6203
6214
|
};
|
|
6204
|
-
return
|
|
6215
|
+
return Ut.set(u, h), h;
|
|
6205
6216
|
}
|
|
6206
6217
|
throw new Error("Malformed frame SVG");
|
|
6207
6218
|
})();
|
|
6208
|
-
return
|
|
6219
|
+
return Ue.set(r, e), e;
|
|
6209
6220
|
}, Sa = (r, t, e, a) => {
|
|
6210
6221
|
const n = t.width / t.height, i = r.width / r.height;
|
|
6211
6222
|
let s;
|
|
@@ -6249,11 +6260,11 @@ const Zt = (r) => {
|
|
|
6249
6260
|
}, va = async (r) => {
|
|
6250
6261
|
const t = await at(r);
|
|
6251
6262
|
return Rn(t);
|
|
6252
|
-
},
|
|
6263
|
+
}, $a = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), Rn = (r) => {
|
|
6253
6264
|
const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
|
|
6254
6265
|
if (!a)
|
|
6255
6266
|
throw new Error("No svg tag found, this svg must be malformed!");
|
|
6256
|
-
const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0,
|
|
6267
|
+
const n = a.getAttribute("viewBox"), i = a.getAttribute("width"), s = a.getAttribute("height"), o = s && i ? [0, 0, $a(i), $a(s)] : n == null ? void 0 : n.split(" ").map((l) => Number(l));
|
|
6257
6268
|
if (!o)
|
|
6258
6269
|
throw new Error("No viewbox or width/height values detected on SVG file!");
|
|
6259
6270
|
return {
|
|
@@ -6302,7 +6313,7 @@ const Zt = (r) => {
|
|
|
6302
6313
|
return await A.render(), await t(c);
|
|
6303
6314
|
})();
|
|
6304
6315
|
return Le.set(r, a), a;
|
|
6305
|
-
},
|
|
6316
|
+
}, $t = async (r, t, e, a) => {
|
|
6306
6317
|
const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
|
|
6307
6318
|
width: r.layoutState.layout.width,
|
|
6308
6319
|
height: r.layoutState.layout.height,
|
|
@@ -6334,11 +6345,11 @@ const Zt = (r) => {
|
|
|
6334
6345
|
}
|
|
6335
6346
|
return o;
|
|
6336
6347
|
};
|
|
6337
|
-
class
|
|
6348
|
+
class Ic {
|
|
6338
6349
|
static async getFrame(t, e) {
|
|
6339
|
-
const a = await
|
|
6350
|
+
const a = await Qn(e.region, e.src), n = await xe(a), i = e.region || await $t(t, T.Frame);
|
|
6340
6351
|
return {
|
|
6341
|
-
id:
|
|
6352
|
+
id: N(),
|
|
6342
6353
|
x: i.left,
|
|
6343
6354
|
y: i.top,
|
|
6344
6355
|
width: i.width,
|
|
@@ -6362,9 +6373,9 @@ class Ec {
|
|
|
6362
6373
|
};
|
|
6363
6374
|
}
|
|
6364
6375
|
static async getImage(t, e) {
|
|
6365
|
-
const a = e.region || await
|
|
6376
|
+
const a = e.region || await $t(t, T.Image, e.src);
|
|
6366
6377
|
return {
|
|
6367
|
-
id:
|
|
6378
|
+
id: N(),
|
|
6368
6379
|
src: e.src,
|
|
6369
6380
|
type: T.Image,
|
|
6370
6381
|
y: a.top,
|
|
@@ -6386,12 +6397,12 @@ class Ec {
|
|
|
6386
6397
|
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Ce(c, {
|
|
6387
6398
|
vertical: a.vertical,
|
|
6388
6399
|
uppercase: a.uppercase
|
|
6389
|
-
}), A = e.region || await
|
|
6400
|
+
}), A = e.region || await $t(t, T.Textbox, n, {
|
|
6390
6401
|
text: d,
|
|
6391
6402
|
fontScale: a.size ? a.size / s.unitsPerEm : void 0
|
|
6392
6403
|
}), u = Xt(
|
|
6393
6404
|
{
|
|
6394
|
-
id:
|
|
6405
|
+
id: N(),
|
|
6395
6406
|
type: T.Textbox,
|
|
6396
6407
|
x: A.left,
|
|
6397
6408
|
y: A.top,
|
|
@@ -6452,7 +6463,7 @@ class Ec {
|
|
|
6452
6463
|
</svg>
|
|
6453
6464
|
`, n = {};
|
|
6454
6465
|
n["spiff-fill-shape"] = { browserValue: e.color };
|
|
6455
|
-
const i = e.region || await
|
|
6466
|
+
const i = e.region || await $t(t, T.Illustration), s = N();
|
|
6456
6467
|
return {
|
|
6457
6468
|
stepRegion: e.region,
|
|
6458
6469
|
colors: n,
|
|
@@ -6470,7 +6481,7 @@ class Ec {
|
|
|
6470
6481
|
};
|
|
6471
6482
|
}
|
|
6472
6483
|
static async getIllustration(t, e) {
|
|
6473
|
-
const a = e.region || await
|
|
6484
|
+
const a = e.region || await $t(t, T.Illustration, e.src), n = await lt(await On(e.src)), i = await qt(n.svg), s = N();
|
|
6474
6485
|
return {
|
|
6475
6486
|
cachedObjectURL: i,
|
|
6476
6487
|
stepRegion: e.region,
|
|
@@ -6495,7 +6506,7 @@ class L extends Error {
|
|
|
6495
6506
|
super("Element not found!"), Object.setPrototypeOf(this, L.prototype);
|
|
6496
6507
|
}
|
|
6497
6508
|
}
|
|
6498
|
-
const
|
|
6509
|
+
const U = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
6499
6510
|
const e = Object.values(t).find((a) => a.elements.some((n) => n.id === r));
|
|
6500
6511
|
if (!e)
|
|
6501
6512
|
throw new L();
|
|
@@ -6505,9 +6516,9 @@ const $ = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
|
6505
6516
|
return {
|
|
6506
6517
|
layout: t.layout,
|
|
6507
6518
|
elements: a,
|
|
6508
|
-
modificationID:
|
|
6519
|
+
modificationID: N()
|
|
6509
6520
|
};
|
|
6510
|
-
},
|
|
6521
|
+
}, Ua = async (r) => {
|
|
6511
6522
|
var a;
|
|
6512
6523
|
const t = [...Object.keys(r.layouts)], e = [...new Set(t)];
|
|
6513
6524
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -6580,13 +6591,13 @@ class La extends R {
|
|
|
6580
6591
|
};
|
|
6581
6592
|
}
|
|
6582
6593
|
}
|
|
6583
|
-
class
|
|
6594
|
+
class Dc extends R {
|
|
6584
6595
|
constructor(t, e, a) {
|
|
6585
6596
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6586
6597
|
}
|
|
6587
6598
|
apply(t) {
|
|
6588
6599
|
this.oldState = t;
|
|
6589
|
-
const e =
|
|
6600
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6590
6601
|
if (!e.id)
|
|
6591
6602
|
throw new L();
|
|
6592
6603
|
const a = {
|
|
@@ -6603,13 +6614,13 @@ class Bc extends R {
|
|
|
6603
6614
|
};
|
|
6604
6615
|
}
|
|
6605
6616
|
}
|
|
6606
|
-
class
|
|
6617
|
+
class Pc extends R {
|
|
6607
6618
|
constructor(t, e) {
|
|
6608
6619
|
super(), this.id = t, this.angle = e;
|
|
6609
6620
|
}
|
|
6610
6621
|
apply(t) {
|
|
6611
6622
|
this.oldState = t;
|
|
6612
|
-
const e =
|
|
6623
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6613
6624
|
if (!e.id)
|
|
6614
6625
|
throw new L();
|
|
6615
6626
|
const a = {
|
|
@@ -6625,13 +6636,13 @@ class bc extends R {
|
|
|
6625
6636
|
};
|
|
6626
6637
|
}
|
|
6627
6638
|
}
|
|
6628
|
-
class
|
|
6639
|
+
class Fc extends R {
|
|
6629
6640
|
constructor(t, e, a) {
|
|
6630
6641
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6631
6642
|
}
|
|
6632
6643
|
apply(t) {
|
|
6633
6644
|
this.oldState = t;
|
|
6634
|
-
const e =
|
|
6645
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6635
6646
|
if (!e.id)
|
|
6636
6647
|
throw new L();
|
|
6637
6648
|
let a = {
|
|
@@ -6664,7 +6675,7 @@ class O extends R {
|
|
|
6664
6675
|
return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
|
|
6665
6676
|
}
|
|
6666
6677
|
}
|
|
6667
|
-
class
|
|
6678
|
+
class $n extends R {
|
|
6668
6679
|
constructor(t) {
|
|
6669
6680
|
super(), this.layout = t;
|
|
6670
6681
|
}
|
|
@@ -6676,7 +6687,7 @@ class Un extends R {
|
|
|
6676
6687
|
[this.layout.id]: {
|
|
6677
6688
|
elements: [],
|
|
6678
6689
|
layout: { ...this.layout },
|
|
6679
|
-
modificationID:
|
|
6690
|
+
modificationID: N()
|
|
6680
6691
|
}
|
|
6681
6692
|
}
|
|
6682
6693
|
};
|
|
@@ -6707,7 +6718,7 @@ class W extends R {
|
|
|
6707
6718
|
[this.layout.id]: {
|
|
6708
6719
|
...t.layouts[this.layout.id],
|
|
6709
6720
|
elements: o,
|
|
6710
|
-
modificationID:
|
|
6721
|
+
modificationID: N()
|
|
6711
6722
|
}
|
|
6712
6723
|
}
|
|
6713
6724
|
};
|
|
@@ -6728,7 +6739,7 @@ class W extends R {
|
|
|
6728
6739
|
[this.layout.id]: {
|
|
6729
6740
|
...t.layouts[this.layout.id],
|
|
6730
6741
|
elements: s,
|
|
6731
|
-
modificationID:
|
|
6742
|
+
modificationID: N()
|
|
6732
6743
|
}
|
|
6733
6744
|
}
|
|
6734
6745
|
};
|
|
@@ -6752,7 +6763,7 @@ class vt extends R {
|
|
|
6752
6763
|
const a = Object.values(t.layouts).map((i) => (i.elements.filter((o) => o.id !== this.id).length !== i.elements.length && (e = !0), {
|
|
6753
6764
|
...i,
|
|
6754
6765
|
elements: i.elements.filter((o) => o.id !== this.id),
|
|
6755
|
-
modificationID:
|
|
6766
|
+
modificationID: N()
|
|
6756
6767
|
}));
|
|
6757
6768
|
e || console.log(`Failed to delete element ${this.id}`);
|
|
6758
6769
|
const n = {};
|
|
@@ -6770,7 +6781,7 @@ class Zi extends R {
|
|
|
6770
6781
|
}
|
|
6771
6782
|
apply(t) {
|
|
6772
6783
|
this.oldState = t;
|
|
6773
|
-
const e =
|
|
6784
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6774
6785
|
if (!e.id)
|
|
6775
6786
|
throw new L();
|
|
6776
6787
|
const a = {
|
|
@@ -6794,7 +6805,7 @@ class Ve extends R {
|
|
|
6794
6805
|
}
|
|
6795
6806
|
apply(t) {
|
|
6796
6807
|
this.oldState = t;
|
|
6797
|
-
const e =
|
|
6808
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6798
6809
|
if (!e.id)
|
|
6799
6810
|
throw new L();
|
|
6800
6811
|
const a = {
|
|
@@ -6816,7 +6827,7 @@ class ts extends R {
|
|
|
6816
6827
|
}
|
|
6817
6828
|
apply(t) {
|
|
6818
6829
|
this.oldState = t;
|
|
6819
|
-
const e =
|
|
6830
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6820
6831
|
if (!e.id)
|
|
6821
6832
|
throw new L();
|
|
6822
6833
|
const a = {
|
|
@@ -6838,7 +6849,7 @@ class Va extends R {
|
|
|
6838
6849
|
}
|
|
6839
6850
|
apply(t) {
|
|
6840
6851
|
this.oldState = t;
|
|
6841
|
-
const e =
|
|
6852
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6842
6853
|
if (!e.id)
|
|
6843
6854
|
throw new L();
|
|
6844
6855
|
const a = {
|
|
@@ -6860,7 +6871,7 @@ class es extends R {
|
|
|
6860
6871
|
}
|
|
6861
6872
|
apply(t) {
|
|
6862
6873
|
this.oldState = t;
|
|
6863
|
-
const e =
|
|
6874
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6864
6875
|
if (!e.id)
|
|
6865
6876
|
throw new L();
|
|
6866
6877
|
const a = {
|
|
@@ -6901,7 +6912,7 @@ class as extends R {
|
|
|
6901
6912
|
const s = {
|
|
6902
6913
|
...e,
|
|
6903
6914
|
elements: i,
|
|
6904
|
-
modificationID:
|
|
6915
|
+
modificationID: N()
|
|
6905
6916
|
};
|
|
6906
6917
|
return {
|
|
6907
6918
|
...t,
|
|
@@ -6918,7 +6929,7 @@ class ns extends R {
|
|
|
6918
6929
|
}
|
|
6919
6930
|
apply(t) {
|
|
6920
6931
|
this.oldState = t;
|
|
6921
|
-
const e =
|
|
6932
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6922
6933
|
if (!e.id)
|
|
6923
6934
|
throw new L();
|
|
6924
6935
|
const a = {
|
|
@@ -6937,13 +6948,13 @@ class ns extends R {
|
|
|
6937
6948
|
};
|
|
6938
6949
|
}
|
|
6939
6950
|
}
|
|
6940
|
-
class
|
|
6951
|
+
class xc extends R {
|
|
6941
6952
|
constructor(t, e) {
|
|
6942
6953
|
super(), this.id = t, this.src = e;
|
|
6943
6954
|
}
|
|
6944
6955
|
apply(t) {
|
|
6945
6956
|
this.oldState = t;
|
|
6946
|
-
const e =
|
|
6957
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6947
6958
|
if (!e.id)
|
|
6948
6959
|
throw new L();
|
|
6949
6960
|
const a = {
|
|
@@ -6965,7 +6976,7 @@ class rs extends R {
|
|
|
6965
6976
|
}
|
|
6966
6977
|
apply(t) {
|
|
6967
6978
|
this.oldState = t;
|
|
6968
|
-
const e =
|
|
6979
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6969
6980
|
if (!e.id)
|
|
6970
6981
|
throw new L();
|
|
6971
6982
|
const a = _(e.id, Object.values(t.layouts)), n = Z(Xt(e, this.text, e), a);
|
|
@@ -6984,7 +6995,7 @@ class ze extends R {
|
|
|
6984
6995
|
}
|
|
6985
6996
|
apply(t) {
|
|
6986
6997
|
this.oldState = t;
|
|
6987
|
-
const e =
|
|
6998
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
6988
6999
|
if (!e.id)
|
|
6989
7000
|
throw new L();
|
|
6990
7001
|
const a = {
|
|
@@ -7007,7 +7018,7 @@ class ia extends R {
|
|
|
7007
7018
|
}
|
|
7008
7019
|
apply(t) {
|
|
7009
7020
|
this.oldState = t;
|
|
7010
|
-
const e =
|
|
7021
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
7011
7022
|
if (!e.id)
|
|
7012
7023
|
throw new L();
|
|
7013
7024
|
const a = e.colors || {}, n = a[this.className];
|
|
@@ -7039,7 +7050,7 @@ class is extends R {
|
|
|
7039
7050
|
}
|
|
7040
7051
|
apply(t) {
|
|
7041
7052
|
this.oldState = t;
|
|
7042
|
-
const e =
|
|
7053
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
7043
7054
|
if (!e.id)
|
|
7044
7055
|
throw new L();
|
|
7045
7056
|
const a = {
|
|
@@ -7056,7 +7067,7 @@ class is extends R {
|
|
|
7056
7067
|
};
|
|
7057
7068
|
}
|
|
7058
7069
|
}
|
|
7059
|
-
class
|
|
7070
|
+
class kc extends R {
|
|
7060
7071
|
/**
|
|
7061
7072
|
* @param id The targeted element to bring to the front.
|
|
7062
7073
|
*/
|
|
@@ -7064,7 +7075,7 @@ class Pc extends R {
|
|
|
7064
7075
|
super(), this.id = t;
|
|
7065
7076
|
}
|
|
7066
7077
|
apply(t) {
|
|
7067
|
-
if (this.oldState = t,
|
|
7078
|
+
if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
|
|
7068
7079
|
throw new L();
|
|
7069
7080
|
const a = Object.values(t.layouts).find((s) => s.elements.find((o) => o.id === this.id));
|
|
7070
7081
|
if (!a)
|
|
@@ -7079,13 +7090,13 @@ class Pc extends R {
|
|
|
7079
7090
|
[a.layout.id]: {
|
|
7080
7091
|
...t.layouts[a.layout.id],
|
|
7081
7092
|
elements: i,
|
|
7082
|
-
modificationID:
|
|
7093
|
+
modificationID: N()
|
|
7083
7094
|
}
|
|
7084
7095
|
}
|
|
7085
7096
|
};
|
|
7086
7097
|
}
|
|
7087
7098
|
}
|
|
7088
|
-
class
|
|
7099
|
+
class Mc extends R {
|
|
7089
7100
|
/**
|
|
7090
7101
|
* @param id The targeted element to bring to the back.
|
|
7091
7102
|
*/
|
|
@@ -7094,7 +7105,7 @@ class Fc extends R {
|
|
|
7094
7105
|
}
|
|
7095
7106
|
apply(t) {
|
|
7096
7107
|
this.oldState = t;
|
|
7097
|
-
const e =
|
|
7108
|
+
const e = U(this.id, Object.values(t.layouts));
|
|
7098
7109
|
if (!e.id)
|
|
7099
7110
|
throw new L();
|
|
7100
7111
|
const a = Object.values(t.layouts).find((o) => o.elements.find((l) => l.id === this.id));
|
|
@@ -7110,13 +7121,13 @@ class Fc extends R {
|
|
|
7110
7121
|
[a.layout.id]: {
|
|
7111
7122
|
...t.layouts[a.layout.id],
|
|
7112
7123
|
elements: i,
|
|
7113
|
-
modificationID:
|
|
7124
|
+
modificationID: N()
|
|
7114
7125
|
}
|
|
7115
7126
|
}
|
|
7116
7127
|
};
|
|
7117
7128
|
}
|
|
7118
7129
|
}
|
|
7119
|
-
class
|
|
7130
|
+
class Tc extends R {
|
|
7120
7131
|
/**
|
|
7121
7132
|
* @param id The targeted element to bring to the front.
|
|
7122
7133
|
*/
|
|
@@ -7124,7 +7135,7 @@ class xc extends R {
|
|
|
7124
7135
|
super(), this.id = t;
|
|
7125
7136
|
}
|
|
7126
7137
|
apply(t) {
|
|
7127
|
-
if (this.oldState = t,
|
|
7138
|
+
if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
|
|
7128
7139
|
throw new L();
|
|
7129
7140
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7130
7141
|
if (!a)
|
|
@@ -7137,13 +7148,13 @@ class xc extends R {
|
|
|
7137
7148
|
[a.layout.id]: {
|
|
7138
7149
|
...t.layouts[a.layout.id],
|
|
7139
7150
|
elements: s,
|
|
7140
|
-
modificationID:
|
|
7151
|
+
modificationID: N()
|
|
7141
7152
|
}
|
|
7142
7153
|
}
|
|
7143
7154
|
};
|
|
7144
7155
|
}
|
|
7145
7156
|
}
|
|
7146
|
-
class
|
|
7157
|
+
class Nc extends R {
|
|
7147
7158
|
/**
|
|
7148
7159
|
* @param id The targeted element to bring to the front.
|
|
7149
7160
|
*/
|
|
@@ -7151,7 +7162,7 @@ class kc extends R {
|
|
|
7151
7162
|
super(), this.id = t;
|
|
7152
7163
|
}
|
|
7153
7164
|
apply(t) {
|
|
7154
|
-
if (this.oldState = t,
|
|
7165
|
+
if (this.oldState = t, !U(this.id, Object.values(t.layouts)).id)
|
|
7155
7166
|
throw new L();
|
|
7156
7167
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7157
7168
|
if (!a)
|
|
@@ -7164,7 +7175,7 @@ class kc extends R {
|
|
|
7164
7175
|
[a.layout.id]: {
|
|
7165
7176
|
...t.layouts[a.layout.id],
|
|
7166
7177
|
elements: s,
|
|
7167
|
-
modificationID:
|
|
7178
|
+
modificationID: N()
|
|
7168
7179
|
}
|
|
7169
7180
|
}
|
|
7170
7181
|
};
|
|
@@ -7190,7 +7201,7 @@ class za {
|
|
|
7190
7201
|
throw new Error("Undefined raster silent step source");
|
|
7191
7202
|
const h = {
|
|
7192
7203
|
stepName: this.configuration.stepName,
|
|
7193
|
-
id:
|
|
7204
|
+
id: N(),
|
|
7194
7205
|
src: u,
|
|
7195
7206
|
type: o,
|
|
7196
7207
|
y: n.top,
|
|
@@ -7223,7 +7234,7 @@ class za {
|
|
|
7223
7234
|
}).catch((C) => console.error(C));
|
|
7224
7235
|
}))()), g = {
|
|
7225
7236
|
stepName: this.configuration.stepName,
|
|
7226
|
-
id:
|
|
7237
|
+
id: N(),
|
|
7227
7238
|
cachedObjectURL: await qt(m.svg),
|
|
7228
7239
|
src: u,
|
|
7229
7240
|
svg: m.svg,
|
|
@@ -7285,7 +7296,7 @@ const ss = async (r) => {
|
|
|
7285
7296
|
throw console.error(e), new Be("Failed to shorten URL, see console.");
|
|
7286
7297
|
}
|
|
7287
7298
|
};
|
|
7288
|
-
class
|
|
7299
|
+
class Un {
|
|
7289
7300
|
async poll() {
|
|
7290
7301
|
try {
|
|
7291
7302
|
if (await this.predicate()) {
|
|
@@ -7332,7 +7343,7 @@ class os {
|
|
|
7332
7343
|
const h = (await ea([e]))[0], m = (f = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((p) => p.name === "mpeg4")) == null ? void 0 : f.link;
|
|
7333
7344
|
return { asset: h, link: m };
|
|
7334
7345
|
}, s = await new Promise((h, m) => {
|
|
7335
|
-
new
|
|
7346
|
+
new Un(
|
|
7336
7347
|
async () => !!(await i()).link,
|
|
7337
7348
|
async () => {
|
|
7338
7349
|
const g = await i();
|
|
@@ -7368,7 +7379,7 @@ class os {
|
|
|
7368
7379
|
}), d;
|
|
7369
7380
|
}
|
|
7370
7381
|
async regionElements(t) {
|
|
7371
|
-
const e = (a) => ({ id:
|
|
7382
|
+
const e = (a) => ({ id: N(), region: a });
|
|
7372
7383
|
return t.data.regions.map(e);
|
|
7373
7384
|
}
|
|
7374
7385
|
async command(t, e, a, n) {
|
|
@@ -7426,7 +7437,7 @@ class we {
|
|
|
7426
7437
|
const s = e.getWorkflowExperience().getBundle();
|
|
7427
7438
|
if (s && t.globalPropertyAspectConfigurations) {
|
|
7428
7439
|
const o = s.getGlobalPropertyStateManager(), l = t.globalPropertyAspectConfigurations[0], c = o.getAspectStorage(l.aspectName);
|
|
7429
|
-
c && c.originalAssetKey && (i = (await
|
|
7440
|
+
c && c.originalAssetKey && (i = (await $.getLocalOrFromServer(c.originalAssetKey)).fileLink);
|
|
7430
7441
|
}
|
|
7431
7442
|
if (t.option && t.option.variants && t.option.variants.length > 0) {
|
|
7432
7443
|
const o = t.option, l = X.getDefaultVariant(o);
|
|
@@ -7522,14 +7533,14 @@ class we {
|
|
|
7522
7533
|
const o = e.fileLink || "";
|
|
7523
7534
|
return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
|
|
7524
7535
|
a.addPoller(
|
|
7525
|
-
new
|
|
7536
|
+
new Un(
|
|
7526
7537
|
async () => {
|
|
7527
7538
|
var h;
|
|
7528
|
-
const A = (h = (await
|
|
7539
|
+
const A = (h = (await $.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
|
|
7529
7540
|
return A ? (await rt(A.link)).status === 200 : !1;
|
|
7530
7541
|
},
|
|
7531
7542
|
() => {
|
|
7532
|
-
|
|
7543
|
+
$.getLocalOrFromServer(e.key || "").then((d) => {
|
|
7533
7544
|
this.loadPatternFromAsset(d, t, a, n).then(
|
|
7534
7545
|
c
|
|
7535
7546
|
);
|
|
@@ -7698,7 +7709,7 @@ class we {
|
|
|
7698
7709
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
7699
7710
|
t.data.forceImageCover
|
|
7700
7711
|
) : void 0, v = p ? {
|
|
7701
|
-
id:
|
|
7712
|
+
id: N(),
|
|
7702
7713
|
src: p.src,
|
|
7703
7714
|
x: (w == null ? void 0 : w.x) || 0,
|
|
7704
7715
|
y: (w == null ? void 0 : w.y) || 0,
|
|
@@ -7707,7 +7718,7 @@ class we {
|
|
|
7707
7718
|
scaleX: (w == null ? void 0 : w.zoom) || 1,
|
|
7708
7719
|
scaleY: (w == null ? void 0 : w.zoom) || 1,
|
|
7709
7720
|
rotation: 0
|
|
7710
|
-
} : void 0, S =
|
|
7721
|
+
} : void 0, S = N(), E = n.getLayouts().find((I) => I.panelId === m.panelId);
|
|
7711
7722
|
if (!E)
|
|
7712
7723
|
throw new Y(m);
|
|
7713
7724
|
return {
|
|
@@ -7824,7 +7835,7 @@ class ls {
|
|
|
7824
7835
|
if (a.length === 0)
|
|
7825
7836
|
return [];
|
|
7826
7837
|
try {
|
|
7827
|
-
return
|
|
7838
|
+
return U(
|
|
7828
7839
|
a[0].id,
|
|
7829
7840
|
e.getAllLayoutData()
|
|
7830
7841
|
).colors;
|
|
@@ -7909,7 +7920,7 @@ class ls {
|
|
|
7909
7920
|
var h, m;
|
|
7910
7921
|
if (e.length === 0)
|
|
7911
7922
|
return;
|
|
7912
|
-
const s =
|
|
7923
|
+
const s = U(
|
|
7913
7924
|
e[0].id,
|
|
7914
7925
|
n().map((g) => g.layoutState)
|
|
7915
7926
|
), o = { ...s.colors }, l = {};
|
|
@@ -7966,7 +7977,7 @@ class ls {
|
|
|
7966
7977
|
const w = i.getLayouts().find((S) => S.panelId === C.panelId);
|
|
7967
7978
|
if (!w)
|
|
7968
7979
|
throw new Y(C);
|
|
7969
|
-
const v =
|
|
7980
|
+
const v = N();
|
|
7970
7981
|
return {
|
|
7971
7982
|
regionElement: { id: v, region: C },
|
|
7972
7983
|
command: this.getCreateElementCommand(v, C, w, {
|
|
@@ -8235,7 +8246,7 @@ class As {
|
|
|
8235
8246
|
return console.error("Missing configuration."), null;
|
|
8236
8247
|
a.updateStorage(t.stepName, { text: e }), a.updateMetadata(t.stepName, { text: e });
|
|
8237
8248
|
const c = (A, u, h) => {
|
|
8238
|
-
const m = h ||
|
|
8249
|
+
const m = h || N(), f = a.getLayouts().find((C) => C.panelId === u.panelId);
|
|
8239
8250
|
if (!f)
|
|
8240
8251
|
return console.error(`Can not find layout for region: ${u.panelId}`), null;
|
|
8241
8252
|
const p = [];
|
|
@@ -8365,7 +8376,7 @@ class us {
|
|
|
8365
8376
|
const h = a.getLayouts().find((g) => g.panelId === A.panelId);
|
|
8366
8377
|
if (!h)
|
|
8367
8378
|
throw new Y(A);
|
|
8368
|
-
const m =
|
|
8379
|
+
const m = N();
|
|
8369
8380
|
return {
|
|
8370
8381
|
regionElement: { id: m, region: A },
|
|
8371
8382
|
command: new W(
|
|
@@ -8594,7 +8605,7 @@ class ms {
|
|
|
8594
8605
|
</svg>
|
|
8595
8606
|
`, p = {};
|
|
8596
8607
|
p[this.shapeFillId] = { browserValue: g };
|
|
8597
|
-
const C =
|
|
8608
|
+
const C = N();
|
|
8598
8609
|
return {
|
|
8599
8610
|
id: C,
|
|
8600
8611
|
region: h,
|
|
@@ -8697,13 +8708,13 @@ const fs = new gs(), Ge = (r, t, e, a, n) => {
|
|
|
8697
8708
|
return [i, s] = Ge(e, a, r, u, o), [n.size, i, s];
|
|
8698
8709
|
}
|
|
8699
8710
|
const c = 6;
|
|
8700
|
-
let d = c -
|
|
8711
|
+
let d = c - $e;
|
|
8701
8712
|
if (a.length > 0) {
|
|
8702
8713
|
let u = a, h = 0;
|
|
8703
8714
|
for (; (!n.maxSize || d <= n.maxSize) && u; )
|
|
8704
|
-
d +=
|
|
8715
|
+
d += $e, h = d / l.unitsPerEm, [u, s] = Ge(e, a, d, h, o);
|
|
8705
8716
|
}
|
|
8706
|
-
d > c && (d -=
|
|
8717
|
+
d > c && (d -= $e), n.minSize && d < n.minSize && (d = n.minSize);
|
|
8707
8718
|
const A = d / l.unitsPerEm;
|
|
8708
8719
|
return [i, s] = Ge(e, a, d, A, o), [d, i, s];
|
|
8709
8720
|
}, We = 30;
|
|
@@ -8799,7 +8810,7 @@ class Cs {
|
|
|
8799
8810
|
return null;
|
|
8800
8811
|
}
|
|
8801
8812
|
findLayoutElements(t, e) {
|
|
8802
|
-
return t.getRegionElements(e.stepName).map((i) =>
|
|
8813
|
+
return t.getRegionElements(e.stepName).map((i) => U(i.id, t.getAllLayoutData()));
|
|
8803
8814
|
}
|
|
8804
8815
|
/**
|
|
8805
8816
|
* Get the colors that can be used for a given text step.
|
|
@@ -9140,18 +9151,18 @@ class Cs {
|
|
|
9140
9151
|
throw new Error("Step data not supplied");
|
|
9141
9152
|
const o = i.text || a.defaultText || "", l = this.getProcessedInput(o, a, !1), c = async (A) => {
|
|
9142
9153
|
var g;
|
|
9143
|
-
const h = s.getLayouts().find((f) => f.panelId === A.panelId), m =
|
|
9154
|
+
const h = s.getLayouts().find((f) => f.panelId === A.panelId), m = N();
|
|
9144
9155
|
try {
|
|
9145
9156
|
if (!h)
|
|
9146
9157
|
throw new Se("Failed to find layout for region: " + A.panelId);
|
|
9147
9158
|
const f = a.colorOption;
|
|
9148
9159
|
let p;
|
|
9149
9160
|
if (f && f.variants) {
|
|
9150
|
-
const
|
|
9161
|
+
const Q = f.variants.find((V) => {
|
|
9151
9162
|
var j;
|
|
9152
9163
|
return V.id === ((j = f.defaultVariant) == null ? void 0 : j.id);
|
|
9153
9164
|
}) || f.variants[0];
|
|
9154
|
-
p = this.createTextFillSpotColor(f,
|
|
9165
|
+
p = this.createTextFillSpotColor(f, Q), s.updateStorage(t, {
|
|
9155
9166
|
colorProfileAssetKey: (g = f.colorProfile) == null ? void 0 : g.key
|
|
9156
9167
|
});
|
|
9157
9168
|
}
|
|
@@ -9460,7 +9471,7 @@ class Ds extends ws {
|
|
|
9460
9471
|
const I = tt("g");
|
|
9461
9472
|
I.classList.add("module-layer2"), w.appendChild(I), I.setAttribute("fill", "rgb(255,209,0)"), I.setAttribute("transform", "translate(1,-0.1)"), I.innerHTML = o;
|
|
9462
9473
|
const P = tt("g");
|
|
9463
|
-
return P.classList.add("module-layer3"), w.appendChild(P), P.setAttribute("fill", "white"), P.innerHTML = o, new Is(w).transform(([M,
|
|
9474
|
+
return P.classList.add("module-layer3"), w.appendChild(P), P.setAttribute("fill", "white"), P.innerHTML = o, new Is(w).transform(([M, Q]) => [M, Q + (c / 2 - M) ** 2 / (c * 6)]), w;
|
|
9464
9475
|
}, u = tt("g");
|
|
9465
9476
|
u.classList.add("module-root");
|
|
9466
9477
|
const h = tt("defs");
|
|
@@ -9770,7 +9781,7 @@ const xs = y`
|
|
|
9770
9781
|
}
|
|
9771
9782
|
}
|
|
9772
9783
|
}
|
|
9773
|
-
`,
|
|
9784
|
+
`, Ns = y`
|
|
9774
9785
|
query GetProductCollectionForFilteredProducts(
|
|
9775
9786
|
$id: String!
|
|
9776
9787
|
$filters: ProductCollectionProductFilterInput
|
|
@@ -9793,7 +9804,7 @@ const xs = y`
|
|
|
9793
9804
|
}
|
|
9794
9805
|
}
|
|
9795
9806
|
}
|
|
9796
|
-
`,
|
|
9807
|
+
`, Qs = y`
|
|
9797
9808
|
${Ea}
|
|
9798
9809
|
query GetProductCollectionForProductsFeed(
|
|
9799
9810
|
$id: String!
|
|
@@ -9891,13 +9902,13 @@ const xs = y`
|
|
|
9891
9902
|
}
|
|
9892
9903
|
}
|
|
9893
9904
|
}
|
|
9894
|
-
`,
|
|
9905
|
+
`, $s = y`
|
|
9895
9906
|
mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
|
|
9896
9907
|
bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
|
|
9897
9908
|
id
|
|
9898
9909
|
}
|
|
9899
9910
|
}
|
|
9900
|
-
`,
|
|
9911
|
+
`, Us = y`
|
|
9901
9912
|
mutation BundleAddTransaction($id: String!, $transactionId: String!) {
|
|
9902
9913
|
bundleAddTransaction(id: $id, transactionId: $transactionId) {
|
|
9903
9914
|
id
|
|
@@ -10050,9 +10061,27 @@ const xs = y`
|
|
|
10050
10061
|
mutation RejectTransaction($id: String!, $note: String) {
|
|
10051
10062
|
transactionReject(id: $id, note: $note)
|
|
10052
10063
|
}
|
|
10064
|
+
`, eo = y`
|
|
10065
|
+
mutation CreateRecipient($firstName: String, $lastName: String, $address: String, $suburb: String, $state: String, $email: String, $postalCode: String, $country: String) {
|
|
10066
|
+
recipientCreate(firstName: $firstName, lastName: $lastName, address: $address, suburb: $suburb, state: $state, email: $email, postalCode: $postalCode, country: $country) {
|
|
10067
|
+
id
|
|
10068
|
+
}
|
|
10069
|
+
}
|
|
10070
|
+
`, ao = y`
|
|
10071
|
+
mutation UpdateRecipient($id: String!, $firstName: String, $lastName: String, $address: String, $suburb: String, $state: String, $email: String, $postalCode: String, $country: String) {
|
|
10072
|
+
recipientUpdate(id: $id, firstName: $firstName, lastName: $lastName, address: $address, suburb: $suburb, state: $state, email: $email, postalCode: $postalCode, country: $country) {
|
|
10073
|
+
id
|
|
10074
|
+
}
|
|
10075
|
+
}
|
|
10076
|
+
`, no = y`
|
|
10077
|
+
mutation AtttachRecipient($id: String!, $recipientId: String!) {
|
|
10078
|
+
transactionAttachRecipient(id: $id, recipientId: $recipientId) {
|
|
10079
|
+
id
|
|
10080
|
+
}
|
|
10081
|
+
}
|
|
10053
10082
|
`;
|
|
10054
10083
|
var Me = /* @__PURE__ */ ((r) => (r.Error = "Error", r.Warning = "Warning", r.Info = "Info", r))(Me || {});
|
|
10055
|
-
const
|
|
10084
|
+
const ro = 1e3;
|
|
10056
10085
|
class ja extends Dn {
|
|
10057
10086
|
constructor(t) {
|
|
10058
10087
|
super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
|
|
@@ -10061,11 +10090,11 @@ class ja extends Dn {
|
|
|
10061
10090
|
await this.update(), await new Promise((t) => {
|
|
10062
10091
|
window.setTimeout(() => {
|
|
10063
10092
|
t();
|
|
10064
|
-
},
|
|
10093
|
+
}, ro);
|
|
10065
10094
|
});
|
|
10066
10095
|
}
|
|
10067
10096
|
}
|
|
10068
|
-
class
|
|
10097
|
+
class io {
|
|
10069
10098
|
constructor(t, e, a, n, i, s, o, l, c, d, A, u, h = !1, m, g = !1, f = !1, p = !1) {
|
|
10070
10099
|
this.workflowStatePromiseQueue = new Pn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
|
10071
10100
|
var v;
|
|
@@ -10087,6 +10116,52 @@ class ao {
|
|
|
10087
10116
|
})
|
|
10088
10117
|
);
|
|
10089
10118
|
}
|
|
10119
|
+
async updateRecipient(t, e, a, n, i, s, o, l) {
|
|
10120
|
+
var c, d;
|
|
10121
|
+
if (this.transaction.recipient)
|
|
10122
|
+
await b.getShadowGraphqlClient().mutate({
|
|
10123
|
+
mutation: ao,
|
|
10124
|
+
errorPolicy: "all",
|
|
10125
|
+
fetchPolicy: "no-cache",
|
|
10126
|
+
variables: {
|
|
10127
|
+
id: this.transaction.recipient.id,
|
|
10128
|
+
firstName: t,
|
|
10129
|
+
lastName: e,
|
|
10130
|
+
address: a,
|
|
10131
|
+
suburb: n,
|
|
10132
|
+
state: i,
|
|
10133
|
+
email: s,
|
|
10134
|
+
postalCode: o,
|
|
10135
|
+
country: l
|
|
10136
|
+
}
|
|
10137
|
+
});
|
|
10138
|
+
else {
|
|
10139
|
+
const A = await b.getShadowGraphqlClient().mutate({
|
|
10140
|
+
mutation: eo,
|
|
10141
|
+
errorPolicy: "all",
|
|
10142
|
+
fetchPolicy: "no-cache",
|
|
10143
|
+
variables: {
|
|
10144
|
+
firstName: t,
|
|
10145
|
+
lastName: e,
|
|
10146
|
+
address: a,
|
|
10147
|
+
suburb: n,
|
|
10148
|
+
state: i,
|
|
10149
|
+
email: s,
|
|
10150
|
+
postalCode: o,
|
|
10151
|
+
country: l
|
|
10152
|
+
}
|
|
10153
|
+
});
|
|
10154
|
+
await b.getShadowGraphqlClient().mutate({
|
|
10155
|
+
mutation: no,
|
|
10156
|
+
errorPolicy: "all",
|
|
10157
|
+
fetchPolicy: "no-cache",
|
|
10158
|
+
variables: {
|
|
10159
|
+
id: this.transaction.id,
|
|
10160
|
+
recipientId: (d = (c = A.data) == null ? void 0 : c.recipientCreate) == null ? void 0 : d.id
|
|
10161
|
+
}
|
|
10162
|
+
});
|
|
10163
|
+
}
|
|
10164
|
+
}
|
|
10090
10165
|
async initializeDefaultWorkflowState(t) {
|
|
10091
10166
|
const e = () => {
|
|
10092
10167
|
var d, A;
|
|
@@ -10250,7 +10325,7 @@ class ao {
|
|
|
10250
10325
|
this.pendingUpdates = this.pendingUpdates.filter((e) => e !== t);
|
|
10251
10326
|
}
|
|
10252
10327
|
markUpdatePending() {
|
|
10253
|
-
const t =
|
|
10328
|
+
const t = N();
|
|
10254
10329
|
return this.pendingUpdates = [...this.pendingUpdates, t], t;
|
|
10255
10330
|
}
|
|
10256
10331
|
setEditedStatus(t, e) {
|
|
@@ -10704,7 +10779,7 @@ class ao {
|
|
|
10704
10779
|
this.validationCallbacks.forEach((t) => t(this.validationErrors));
|
|
10705
10780
|
}
|
|
10706
10781
|
traversableScenes() {
|
|
10707
|
-
return
|
|
10782
|
+
return Qi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
|
|
10708
10783
|
}
|
|
10709
10784
|
}
|
|
10710
10785
|
class st {
|
|
@@ -10923,7 +10998,7 @@ const qn = class sa {
|
|
|
10923
10998
|
};
|
|
10924
10999
|
qn.updateState = /* @__PURE__ */ new Map();
|
|
10925
11000
|
let it = qn;
|
|
10926
|
-
class
|
|
11001
|
+
class so extends it {
|
|
10927
11002
|
constructor(t, e, a) {
|
|
10928
11003
|
super(t, e, a);
|
|
10929
11004
|
}
|
|
@@ -10951,7 +11026,7 @@ class no extends it {
|
|
|
10951
11026
|
const t = this.manager.getRegionElements(this.step.stepName) || [];
|
|
10952
11027
|
if (t.length === 0)
|
|
10953
11028
|
return;
|
|
10954
|
-
const a =
|
|
11029
|
+
const a = U(t[0].id, this.manager.getAllLayoutData()).colors, n = (o = this.getCurrentVariant()) == null ? void 0 : o.getAssetResource(), i = n == null ? void 0 : n.assetConfiguration, s = (i == null ? void 0 : i.defaultColorVariants) || [];
|
|
10955
11030
|
if (s.length !== 0) {
|
|
10956
11031
|
const l = {};
|
|
10957
11032
|
return s.forEach((c) => {
|
|
@@ -11001,7 +11076,7 @@ class no extends it {
|
|
|
11001
11076
|
return this.step.data.pmsPickerEnabled ?? !1;
|
|
11002
11077
|
}
|
|
11003
11078
|
}
|
|
11004
|
-
class
|
|
11079
|
+
class oo extends it {
|
|
11005
11080
|
constructor(t, e, a) {
|
|
11006
11081
|
super(t, e, a);
|
|
11007
11082
|
}
|
|
@@ -11014,7 +11089,7 @@ class ro extends it {
|
|
|
11014
11089
|
);
|
|
11015
11090
|
}
|
|
11016
11091
|
}
|
|
11017
|
-
class
|
|
11092
|
+
class lo extends it {
|
|
11018
11093
|
constructor(t, e, a) {
|
|
11019
11094
|
super(t, e, a);
|
|
11020
11095
|
}
|
|
@@ -11027,7 +11102,7 @@ class io extends it {
|
|
|
11027
11102
|
);
|
|
11028
11103
|
}
|
|
11029
11104
|
}
|
|
11030
|
-
class
|
|
11105
|
+
class co extends it {
|
|
11031
11106
|
constructor(t, e, a) {
|
|
11032
11107
|
super(t, e, a);
|
|
11033
11108
|
}
|
|
@@ -11045,7 +11120,7 @@ class so extends it {
|
|
|
11045
11120
|
);
|
|
11046
11121
|
}
|
|
11047
11122
|
}
|
|
11048
|
-
class
|
|
11123
|
+
class Ao extends it {
|
|
11049
11124
|
constructor(t, e, a) {
|
|
11050
11125
|
super(t, e, a);
|
|
11051
11126
|
}
|
|
@@ -11062,7 +11137,7 @@ class oo extends it {
|
|
|
11062
11137
|
return this.step.data.displayType || ((t = this.step.option) == null ? void 0 : t.displayType);
|
|
11063
11138
|
}
|
|
11064
11139
|
}
|
|
11065
|
-
class
|
|
11140
|
+
class uo extends it {
|
|
11066
11141
|
constructor(t, e, a) {
|
|
11067
11142
|
super(t, e, a);
|
|
11068
11143
|
}
|
|
@@ -11117,7 +11192,7 @@ class lo extends it {
|
|
|
11117
11192
|
return t;
|
|
11118
11193
|
}
|
|
11119
11194
|
}
|
|
11120
|
-
class
|
|
11195
|
+
class ho extends it {
|
|
11121
11196
|
constructor(t, e, a) {
|
|
11122
11197
|
super(t, e, a);
|
|
11123
11198
|
}
|
|
@@ -11318,7 +11393,7 @@ class co extends it {
|
|
|
11318
11393
|
await q.changeStrokeColor(this.step, t, e, this.manager);
|
|
11319
11394
|
}
|
|
11320
11395
|
}
|
|
11321
|
-
class
|
|
11396
|
+
class mo extends it {
|
|
11322
11397
|
constructor(t, e, a) {
|
|
11323
11398
|
super(t, e, a);
|
|
11324
11399
|
}
|
|
@@ -11331,7 +11406,7 @@ class Ao extends it {
|
|
|
11331
11406
|
return this.step.data.content;
|
|
11332
11407
|
}
|
|
11333
11408
|
}
|
|
11334
|
-
class
|
|
11409
|
+
class go extends it {
|
|
11335
11410
|
constructor(t, e, a) {
|
|
11336
11411
|
super(t, e, a);
|
|
11337
11412
|
}
|
|
@@ -11358,7 +11433,7 @@ class uo extends it {
|
|
|
11358
11433
|
);
|
|
11359
11434
|
}
|
|
11360
11435
|
}
|
|
11361
|
-
class
|
|
11436
|
+
class fo extends it {
|
|
11362
11437
|
constructor(t, e, a) {
|
|
11363
11438
|
super(t, e, a);
|
|
11364
11439
|
}
|
|
@@ -11410,27 +11485,27 @@ class ie {
|
|
|
11410
11485
|
static get(t, e) {
|
|
11411
11486
|
switch (e.type) {
|
|
11412
11487
|
case D.DigitalContent:
|
|
11413
|
-
return new
|
|
11488
|
+
return new go(t, e, t.getStepTags(e.stepName));
|
|
11414
11489
|
case D.Information:
|
|
11415
|
-
return new
|
|
11490
|
+
return new mo(t, e, t.getStepTags(e.stepName));
|
|
11416
11491
|
case D.Question:
|
|
11417
|
-
return new
|
|
11492
|
+
return new Ao(t, e, t.getStepTags(e.stepName));
|
|
11418
11493
|
case D.Text:
|
|
11419
|
-
return new
|
|
11494
|
+
return new ho(t, e, t.getStepTags(e.stepName));
|
|
11420
11495
|
case D.Illustration:
|
|
11421
|
-
return new no(t, e, t.getStepTags(e.stepName));
|
|
11422
|
-
case D.Picture:
|
|
11423
11496
|
return new so(t, e, t.getStepTags(e.stepName));
|
|
11497
|
+
case D.Picture:
|
|
11498
|
+
return new co(t, e, t.getStepTags(e.stepName));
|
|
11424
11499
|
case D.Shape:
|
|
11425
|
-
return new
|
|
11500
|
+
return new uo(t, e, t.getStepTags(e.stepName));
|
|
11426
11501
|
case D.Material:
|
|
11427
|
-
return new
|
|
11502
|
+
return new oo(t, e, t.getStepTags(e.stepName));
|
|
11428
11503
|
case D.Model:
|
|
11429
|
-
return new
|
|
11504
|
+
return new lo(t, e, t.getStepTags(e.stepName));
|
|
11430
11505
|
case D.Frame:
|
|
11431
|
-
return new
|
|
11506
|
+
return new Dl(t, e, t.getStepTags(e.stepName));
|
|
11432
11507
|
case D.Module:
|
|
11433
|
-
return new
|
|
11508
|
+
return new fo(t, e, t.getStepTags(e.stepName));
|
|
11434
11509
|
default:
|
|
11435
11510
|
throw new z(`Step type ${e.type} not yet supported in Core SDK`);
|
|
11436
11511
|
}
|
|
@@ -11461,7 +11536,7 @@ const Yn = y`
|
|
|
11461
11536
|
externalProductVariantId
|
|
11462
11537
|
}
|
|
11463
11538
|
}
|
|
11464
|
-
`,
|
|
11539
|
+
`, po = y`
|
|
11465
11540
|
${Yn}
|
|
11466
11541
|
mutation CreateDesign(
|
|
11467
11542
|
$name: String!
|
|
@@ -11493,7 +11568,7 @@ const Yn = y`
|
|
|
11493
11568
|
}
|
|
11494
11569
|
}
|
|
11495
11570
|
}
|
|
11496
|
-
`,
|
|
11571
|
+
`, Co = y`
|
|
11497
11572
|
${Yn}
|
|
11498
11573
|
mutation CreateDesigns($inputs: [DesignCreateInput]!) {
|
|
11499
11574
|
designCreateMany(inputs: $inputs) {
|
|
@@ -11512,11 +11587,11 @@ function ve(r) {
|
|
|
11512
11587
|
const t = JSON.parse(atob(r.split(".")[1])).exp;
|
|
11513
11588
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
|
11514
11589
|
}
|
|
11515
|
-
const
|
|
11590
|
+
const wo = async (r) => {
|
|
11516
11591
|
var s, o;
|
|
11517
11592
|
const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
|
|
11518
11593
|
return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
|
|
11519
|
-
mutation:
|
|
11594
|
+
mutation: po,
|
|
11520
11595
|
errorPolicy: "all",
|
|
11521
11596
|
fetchPolicy: "no-cache",
|
|
11522
11597
|
variables: {
|
|
@@ -11533,11 +11608,11 @@ const fo = async (r) => {
|
|
|
11533
11608
|
headers: n
|
|
11534
11609
|
}
|
|
11535
11610
|
})).data) == null ? void 0 : o.designCreate;
|
|
11536
|
-
},
|
|
11611
|
+
}, yo = async (r) => {
|
|
11537
11612
|
var s, o;
|
|
11538
11613
|
const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
|
|
11539
11614
|
return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
|
|
11540
|
-
mutation:
|
|
11615
|
+
mutation: Co,
|
|
11541
11616
|
errorPolicy: "all",
|
|
11542
11617
|
fetchPolicy: "no-cache",
|
|
11543
11618
|
variables: {
|
|
@@ -11592,7 +11667,7 @@ const fo = async (r) => {
|
|
|
11592
11667
|
return t.steps.forEach((i) => {
|
|
11593
11668
|
Object.assign(n, a(i));
|
|
11594
11669
|
}), n;
|
|
11595
|
-
},
|
|
11670
|
+
}, So = (r, t, e, a) => {
|
|
11596
11671
|
const n = {};
|
|
11597
11672
|
let i = {};
|
|
11598
11673
|
e ? i = oa(e, t, !1) : a && (i = a);
|
|
@@ -11614,7 +11689,7 @@ const fo = async (r) => {
|
|
|
11614
11689
|
return n;
|
|
11615
11690
|
}, Jn = (r, t, e, a, n, i, s, o) => {
|
|
11616
11691
|
var m, g;
|
|
11617
|
-
const l = t.basePrice || 0, c = r.priceModifierTotal || 0, d =
|
|
11692
|
+
const l = t.basePrice || 0, c = r.priceModifierTotal || 0, d = So(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(r.id), h = {
|
|
11618
11693
|
additionalExternalProductId: (m = r.integrationProduct) == null ? void 0 : m.additionalExternalProductId,
|
|
11619
11694
|
additionalExternalVariantId: (g = r.integrationProduct) == null ? void 0 : g.additionalExternalVariantId,
|
|
11620
11695
|
baseCost: l,
|
|
@@ -11643,7 +11718,7 @@ const fo = async (r) => {
|
|
|
11643
11718
|
if (c !== void 0)
|
|
11644
11719
|
return c;
|
|
11645
11720
|
await r.outstandingRequestsPromise();
|
|
11646
|
-
const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id),
|
|
11721
|
+
const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), Q = await b.getShadowGraphqlClient().query({
|
|
11647
11722
|
query: bn,
|
|
11648
11723
|
variables: { ids: [n.id] },
|
|
11649
11724
|
fetchPolicy: "no-cache",
|
|
@@ -11651,17 +11726,17 @@ const fo = async (r) => {
|
|
|
11651
11726
|
context: {
|
|
11652
11727
|
transactionOwnerId: F
|
|
11653
11728
|
}
|
|
11654
|
-
}), V = (j =
|
|
11655
|
-
return
|
|
11656
|
-
|
|
11729
|
+
}), V = (j = Q.data) == null ? void 0 : j.transactions[0].workflowState;
|
|
11730
|
+
return Q.errors ? (Q.errors.forEach((G) => {
|
|
11731
|
+
Q.errors && console.log("Server Error:", G.message);
|
|
11657
11732
|
}), null) : V ?? null;
|
|
11658
11733
|
})() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(a())), await r.updateStateWithServerImmediate(a), console.log("Server state is undefined @ Workflow completion"));
|
|
11659
11734
|
const u = r.getPreviewService(), h = (I = t == null ? void 0 : t.finalizeStepConfig) == null ? void 0 : I.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, g = l && oa(l, t, !0), f = l && oa(l, t, !1), p = async (P) => {
|
|
11660
11735
|
const F = {};
|
|
11661
11736
|
let M = 0;
|
|
11662
11737
|
if (Object.keys(i).length > 0)
|
|
11663
|
-
for (const
|
|
11664
|
-
const V = i[
|
|
11738
|
+
for (const Q of Object.keys(i)) {
|
|
11739
|
+
const V = i[Q], j = t.steps.find((G) => G.stepName === Q);
|
|
11665
11740
|
for (let G = 0; G < V.selections.length; ++G) {
|
|
11666
11741
|
const nt = V.selections[G];
|
|
11667
11742
|
if (j && (!P || j.option && (j.option.variants || []).length > 1 && !j.data.hideSelectionInCart && !j.data.hideSelectionsInCart)) {
|
|
@@ -11693,7 +11768,7 @@ const fo = async (r) => {
|
|
|
11693
11768
|
let B = await o(m, n.id);
|
|
11694
11769
|
if (B) {
|
|
11695
11770
|
const P = await (await rt(B)).blob();
|
|
11696
|
-
B = (await
|
|
11771
|
+
B = (await $.uploadAsset(
|
|
11697
11772
|
{ name: `${n.id}-preview-image.png`, blob: P },
|
|
11698
11773
|
he.Image,
|
|
11699
11774
|
!0,
|
|
@@ -11715,14 +11790,14 @@ const fo = async (r) => {
|
|
|
11715
11790
|
};
|
|
11716
11791
|
if (f) {
|
|
11717
11792
|
const F = [];
|
|
11718
|
-
for (const [M,
|
|
11719
|
-
F.push({ key: M, value:
|
|
11793
|
+
for (const [M, Q] of Object.entries(f))
|
|
11794
|
+
F.push({ key: M, value: Q });
|
|
11720
11795
|
P.metadata = F;
|
|
11721
11796
|
}
|
|
11722
11797
|
if (w) {
|
|
11723
11798
|
const F = [];
|
|
11724
|
-
for (const [M,
|
|
11725
|
-
F.push({ key: M, ids:
|
|
11799
|
+
for (const [M, Q] of Object.entries(S))
|
|
11800
|
+
F.push({ key: M, ids: Q });
|
|
11726
11801
|
P.selectedVariants = F;
|
|
11727
11802
|
}
|
|
11728
11803
|
return P;
|
|
@@ -11730,7 +11805,7 @@ const fo = async (r) => {
|
|
|
11730
11805
|
cartSelectionsWithPrices: C,
|
|
11731
11806
|
cartMetadata: g
|
|
11732
11807
|
};
|
|
11733
|
-
},
|
|
11808
|
+
}, vo = async (r, t, e, a, n, i, s, o, l, c, d) => {
|
|
11734
11809
|
var p, C;
|
|
11735
11810
|
l("workflow.steps.finish.finalize.buildingLayouts");
|
|
11736
11811
|
const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await Kn(
|
|
@@ -11745,7 +11820,7 @@ const fo = async (r) => {
|
|
|
11745
11820
|
d
|
|
11746
11821
|
);
|
|
11747
11822
|
l("workflow.steps.finish.finalize.creatingDesign");
|
|
11748
|
-
const m = await
|
|
11823
|
+
const m = await wo(A), g = (p = m == null ? void 0 : m.transaction) == null ? void 0 : p.previewImageLink;
|
|
11749
11824
|
if (!(m != null && m.transaction))
|
|
11750
11825
|
throw new Error("Failed to create design");
|
|
11751
11826
|
l("workflow.steps.finish.finalize.updatingTransaction");
|
|
@@ -11760,7 +11835,7 @@ const fo = async (r) => {
|
|
|
11760
11835
|
g,
|
|
11761
11836
|
(C = m == null ? void 0 : m.processExecution) == null ? void 0 : C.id
|
|
11762
11837
|
);
|
|
11763
|
-
},
|
|
11838
|
+
}, Eo = async (r, t, e) => {
|
|
11764
11839
|
t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
|
|
11765
11840
|
r.map(async (o) => {
|
|
11766
11841
|
await o.workflowManager.outstandingRequestsPromise();
|
|
@@ -11792,7 +11867,7 @@ const fo = async (r) => {
|
|
|
11792
11867
|
))
|
|
11793
11868
|
);
|
|
11794
11869
|
t("workflow.steps.finish.finalize.creatingDesign");
|
|
11795
|
-
const s = await
|
|
11870
|
+
const s = await yo(i.map((o) => o.designDetails));
|
|
11796
11871
|
if (!s)
|
|
11797
11872
|
throw new Error("Failed to create designs");
|
|
11798
11873
|
return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
|
|
@@ -11810,7 +11885,7 @@ const fo = async (r) => {
|
|
|
11810
11885
|
);
|
|
11811
11886
|
});
|
|
11812
11887
|
};
|
|
11813
|
-
class
|
|
11888
|
+
class Bo {
|
|
11814
11889
|
constructor() {
|
|
11815
11890
|
this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
|
|
11816
11891
|
}
|
|
@@ -11877,7 +11952,7 @@ class So {
|
|
|
11877
11952
|
throw new z("Unexpected storage method requested");
|
|
11878
11953
|
}
|
|
11879
11954
|
}
|
|
11880
|
-
const je = new
|
|
11955
|
+
const je = new Bo(), bo = y`
|
|
11881
11956
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
11882
11957
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
11883
11958
|
id
|
|
@@ -11891,7 +11966,7 @@ const je = new So(), vo = y`
|
|
|
11891
11966
|
}
|
|
11892
11967
|
}
|
|
11893
11968
|
}
|
|
11894
|
-
`,
|
|
11969
|
+
`, Io = y`
|
|
11895
11970
|
mutation AddAddressToTransaction(
|
|
11896
11971
|
$transactionId: String!
|
|
11897
11972
|
$streetAddress: String
|
|
@@ -11913,7 +11988,7 @@ const je = new So(), vo = y`
|
|
|
11913
11988
|
id
|
|
11914
11989
|
}
|
|
11915
11990
|
}
|
|
11916
|
-
`,
|
|
11991
|
+
`, Do = y`
|
|
11917
11992
|
mutation AddOrganizationToTransaction(
|
|
11918
11993
|
$transactionId: String!
|
|
11919
11994
|
$organizationName: String!
|
|
@@ -11926,8 +12001,8 @@ const je = new So(), vo = y`
|
|
|
11926
12001
|
}
|
|
11927
12002
|
}
|
|
11928
12003
|
`;
|
|
11929
|
-
var
|
|
11930
|
-
class
|
|
12004
|
+
var Po = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.PriceBreakChanged = "PriceBreakChanged", r))(Po || {});
|
|
12005
|
+
class Fo {
|
|
11931
12006
|
constructor(t, e) {
|
|
11932
12007
|
var n;
|
|
11933
12008
|
if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = sn(async () => {
|
|
@@ -11949,7 +12024,7 @@ class Io {
|
|
|
11949
12024
|
throw new Error("No Workflow ID provided.");
|
|
11950
12025
|
this.client = t;
|
|
11951
12026
|
const a = e.layouts;
|
|
11952
|
-
this.commandContext = new _i(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.workflowManager = new
|
|
12027
|
+
this.commandContext = new _i(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.workflowManager = new io(
|
|
11953
12028
|
this,
|
|
11954
12029
|
t,
|
|
11955
12030
|
e.workflow,
|
|
@@ -11990,7 +12065,7 @@ class Io {
|
|
|
11990
12065
|
async attachAddress(t, e, a, n, i, s) {
|
|
11991
12066
|
const l = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id);
|
|
11992
12067
|
await b.getShadowGraphqlClient().mutate({
|
|
11993
|
-
mutation:
|
|
12068
|
+
mutation: Io,
|
|
11994
12069
|
variables: {
|
|
11995
12070
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
|
11996
12071
|
streetAddress: t || void 0,
|
|
@@ -12008,7 +12083,7 @@ class Io {
|
|
|
12008
12083
|
async attachOrganization(t) {
|
|
12009
12084
|
const a = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id);
|
|
12010
12085
|
await b.getShadowGraphqlClient().mutate({
|
|
12011
|
-
mutation:
|
|
12086
|
+
mutation: Do,
|
|
12012
12087
|
variables: {
|
|
12013
12088
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
|
12014
12089
|
organizationName: t
|
|
@@ -12210,7 +12285,7 @@ class Io {
|
|
|
12210
12285
|
async assignCustomerDetails(t) {
|
|
12211
12286
|
var s, o, l;
|
|
12212
12287
|
const a = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id), i = (l = (o = (s = (await b.getShadowGraphqlClient().mutate({
|
|
12213
|
-
mutation:
|
|
12288
|
+
mutation: bo,
|
|
12214
12289
|
variables: {
|
|
12215
12290
|
id: this.getWorkflowManager().getTransaction().id,
|
|
12216
12291
|
details: t,
|
|
@@ -12288,7 +12363,7 @@ class Io {
|
|
|
12288
12363
|
transactionId: a.id,
|
|
12289
12364
|
workflowViewerLink: "",
|
|
12290
12365
|
workflowViewerReadOnlyLink: ""
|
|
12291
|
-
}) :
|
|
12366
|
+
}) : vo(
|
|
12292
12367
|
this.workflowManager,
|
|
12293
12368
|
this.workflowManager.getWorkflow(),
|
|
12294
12369
|
this.workflowManager.getLayouts(),
|
|
@@ -12367,7 +12442,7 @@ class Io {
|
|
|
12367
12442
|
(this.eventCallbacks.get(t) || []).forEach((e) => e(this));
|
|
12368
12443
|
}
|
|
12369
12444
|
}
|
|
12370
|
-
const
|
|
12445
|
+
const xo = [
|
|
12371
12446
|
"altGlyph",
|
|
12372
12447
|
"circle",
|
|
12373
12448
|
"ellipse",
|
|
@@ -12379,14 +12454,14 @@ const Do = [
|
|
|
12379
12454
|
"textPath",
|
|
12380
12455
|
"tref",
|
|
12381
12456
|
"tspan"
|
|
12382
|
-
],
|
|
12457
|
+
], ko = async (r, t, e) => {
|
|
12383
12458
|
const a = t.data, n = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = n.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + n);
|
|
12384
12459
|
o.searchParams.append("video", ka(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
|
|
12385
12460
|
const l = o.toString(), d = `data:image/svg+xml;base64,${ka(await nn(l, { type: "svg" }))}`, A = (h) => {
|
|
12386
12461
|
const m = r.find((f) => f.panelId === h.panelId);
|
|
12387
12462
|
if (!m)
|
|
12388
12463
|
throw new Y(h);
|
|
12389
|
-
const g =
|
|
12464
|
+
const g = N();
|
|
12390
12465
|
return new W(
|
|
12391
12466
|
{
|
|
12392
12467
|
id: g,
|
|
@@ -12406,14 +12481,14 @@ const Do = [
|
|
|
12406
12481
|
} catch (h) {
|
|
12407
12482
|
return console.error(h), [];
|
|
12408
12483
|
}
|
|
12409
|
-
},
|
|
12484
|
+
}, Mo = async (r, t, e, a) => {
|
|
12410
12485
|
const n = e.data, i = n.assetUrl, s = await ra(i);
|
|
12411
12486
|
try {
|
|
12412
12487
|
const o = Xi(n, a.option);
|
|
12413
12488
|
o && (t[a.stepName] = { selectedVariants: [o] });
|
|
12414
12489
|
const l = async (c) => {
|
|
12415
12490
|
var g;
|
|
12416
|
-
const d = await
|
|
12491
|
+
const d = await Qn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = N(), h = r.find((f) => f.panelId === c.panelId);
|
|
12417
12492
|
if (!h)
|
|
12418
12493
|
throw new Y(c);
|
|
12419
12494
|
const m = Sa(
|
|
@@ -12464,7 +12539,7 @@ const Do = [
|
|
|
12464
12539
|
} catch (o) {
|
|
12465
12540
|
return console.error(o), [];
|
|
12466
12541
|
}
|
|
12467
|
-
},
|
|
12542
|
+
}, To = async (r, t, e, a) => {
|
|
12468
12543
|
var S, B;
|
|
12469
12544
|
const n = e.data, i = a.option;
|
|
12470
12545
|
if (!i)
|
|
@@ -12484,16 +12559,16 @@ const Do = [
|
|
|
12484
12559
|
ma(m);
|
|
12485
12560
|
const g = {};
|
|
12486
12561
|
xt(m, (E) => {
|
|
12487
|
-
|
|
12562
|
+
xo.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
|
|
12488
12563
|
const I = E.attributes.getNamedItem("fill");
|
|
12489
12564
|
if (I && I.value !== "none") {
|
|
12490
|
-
const F = I.value,
|
|
12491
|
-
E.classList.add(
|
|
12565
|
+
const F = I.value, Q = `spiff-fill-${F.replace(/\W/g, "")}`;
|
|
12566
|
+
E.classList.add(Q), g[Q] = { browserValue: F };
|
|
12492
12567
|
}
|
|
12493
12568
|
const P = E.attributes.getNamedItem("stroke");
|
|
12494
12569
|
if (P && P.value !== "none") {
|
|
12495
|
-
const F = P.value,
|
|
12496
|
-
E.classList.add(
|
|
12570
|
+
const F = P.value, Q = `spiff-stroke-${F.replace(/\W/g, "")}`;
|
|
12571
|
+
E.classList.add(Q), g[Q] = { browserValue: F };
|
|
12497
12572
|
}
|
|
12498
12573
|
});
|
|
12499
12574
|
const p = Et().serializeToString(m), C = n.colors;
|
|
@@ -12509,7 +12584,7 @@ const Do = [
|
|
|
12509
12584
|
const I = r.find((F) => F.panelId === E.panelId);
|
|
12510
12585
|
if (!I)
|
|
12511
12586
|
throw new Y(E);
|
|
12512
|
-
const P =
|
|
12587
|
+
const P = N();
|
|
12513
12588
|
return new W(
|
|
12514
12589
|
{
|
|
12515
12590
|
colors: g,
|
|
@@ -12533,12 +12608,12 @@ const Do = [
|
|
|
12533
12608
|
} catch (E) {
|
|
12534
12609
|
return console.error(E), [];
|
|
12535
12610
|
}
|
|
12536
|
-
},
|
|
12611
|
+
}, No = async (r, t, e) => {
|
|
12537
12612
|
const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
|
|
12538
12613
|
const c = r.find((A) => A.panelId === l.panelId);
|
|
12539
12614
|
if (!c)
|
|
12540
12615
|
throw new Y(l);
|
|
12541
|
-
const d =
|
|
12616
|
+
const d = N();
|
|
12542
12617
|
return new W(
|
|
12543
12618
|
{
|
|
12544
12619
|
colors: {},
|
|
@@ -12563,7 +12638,7 @@ const Do = [
|
|
|
12563
12638
|
} catch (o) {
|
|
12564
12639
|
return console.error(o), [];
|
|
12565
12640
|
}
|
|
12566
|
-
},
|
|
12641
|
+
}, Qo = async (r, t, e, a) => {
|
|
12567
12642
|
var d, A;
|
|
12568
12643
|
const n = e.data, i = a.option;
|
|
12569
12644
|
if (!i)
|
|
@@ -12581,7 +12656,7 @@ const Do = [
|
|
|
12581
12656
|
const h = r.find((g) => g.panelId === u.panelId);
|
|
12582
12657
|
if (!h)
|
|
12583
12658
|
throw new Y(u);
|
|
12584
|
-
const m =
|
|
12659
|
+
const m = N();
|
|
12585
12660
|
return new W(
|
|
12586
12661
|
{
|
|
12587
12662
|
id: m,
|
|
@@ -12605,7 +12680,7 @@ const Do = [
|
|
|
12605
12680
|
} catch (u) {
|
|
12606
12681
|
return console.error(u), [];
|
|
12607
12682
|
}
|
|
12608
|
-
},
|
|
12683
|
+
}, Ro = async (r, t, e, a) => {
|
|
12609
12684
|
var c;
|
|
12610
12685
|
const n = e.data, i = a.option;
|
|
12611
12686
|
if (!i)
|
|
@@ -12638,7 +12713,7 @@ const Do = [
|
|
|
12638
12713
|
fill="${s == null ? void 0 : s.color}"
|
|
12639
12714
|
/>
|
|
12640
12715
|
</svg>
|
|
12641
|
-
`, m = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, g =
|
|
12716
|
+
`, m = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, g = N();
|
|
12642
12717
|
return new W(
|
|
12643
12718
|
{
|
|
12644
12719
|
colors: m,
|
|
@@ -12662,7 +12737,7 @@ const Do = [
|
|
|
12662
12737
|
} catch (d) {
|
|
12663
12738
|
return console.error(d), [];
|
|
12664
12739
|
}
|
|
12665
|
-
},
|
|
12740
|
+
}, Oo = async (r, t, e) => {
|
|
12666
12741
|
const a = [], i = (() => {
|
|
12667
12742
|
var c, d;
|
|
12668
12743
|
return t.type === D.ProductOverlay ? e || ((c = t.data.asset) == null ? void 0 : c.fileLink) || "" : ((d = t.data.asset) == null ? void 0 : d.fileLink) || "";
|
|
@@ -12674,7 +12749,7 @@ const Do = [
|
|
|
12674
12749
|
if (!d)
|
|
12675
12750
|
throw new Y(c);
|
|
12676
12751
|
const A = {
|
|
12677
|
-
id:
|
|
12752
|
+
id: N(),
|
|
12678
12753
|
src: i,
|
|
12679
12754
|
type: o,
|
|
12680
12755
|
y: c.top,
|
|
@@ -12707,7 +12782,7 @@ const Do = [
|
|
|
12707
12782
|
if (!u)
|
|
12708
12783
|
throw new Y(A);
|
|
12709
12784
|
const h = {
|
|
12710
|
-
id:
|
|
12785
|
+
id: N(),
|
|
12711
12786
|
src: i,
|
|
12712
12787
|
asset_key: i,
|
|
12713
12788
|
svg: d(c),
|
|
@@ -12729,7 +12804,7 @@ const Do = [
|
|
|
12729
12804
|
});
|
|
12730
12805
|
}
|
|
12731
12806
|
return a;
|
|
12732
|
-
},
|
|
12807
|
+
}, $o = async (r, t, e, a) => {
|
|
12733
12808
|
const n = [], i = e.data, s = 30, o = (f) => f.vertical ? "center" : f.textAlign || "center", l = () => {
|
|
12734
12809
|
var w;
|
|
12735
12810
|
const f = a.option;
|
|
@@ -12767,7 +12842,7 @@ const Do = [
|
|
|
12767
12842
|
continue;
|
|
12768
12843
|
const C = {
|
|
12769
12844
|
stepName: e.name,
|
|
12770
|
-
id:
|
|
12845
|
+
id: N(),
|
|
12771
12846
|
align: o(a.data),
|
|
12772
12847
|
curved: a.data.curved,
|
|
12773
12848
|
fill: i.color || m || "#000000",
|
|
@@ -12818,7 +12893,7 @@ const Do = [
|
|
|
12818
12893
|
n.push(new W(C, p));
|
|
12819
12894
|
}
|
|
12820
12895
|
return n;
|
|
12821
|
-
},
|
|
12896
|
+
}, Uo = (r, t) => r.conditions ? r.conditions.every((e) => {
|
|
12822
12897
|
const a = t[e.targetStepName];
|
|
12823
12898
|
if (a && a.selectedVariants) {
|
|
12824
12899
|
const n = a.selectedVariants;
|
|
@@ -12827,7 +12902,7 @@ const Do = [
|
|
|
12827
12902
|
);
|
|
12828
12903
|
}
|
|
12829
12904
|
return !1;
|
|
12830
|
-
}) : !0,
|
|
12905
|
+
}) : !0, Lo = async (r, t, e, a) => {
|
|
12831
12906
|
const n = [], i = {};
|
|
12832
12907
|
for (const s of r) {
|
|
12833
12908
|
const o = t.steps.find((l) => l.stepName === s.name);
|
|
@@ -12835,18 +12910,18 @@ const Do = [
|
|
|
12835
12910
|
switch (o.type) {
|
|
12836
12911
|
case D.DigitalContent:
|
|
12837
12912
|
n.push(
|
|
12838
|
-
...await
|
|
12913
|
+
...await ko(e, s, o)
|
|
12839
12914
|
);
|
|
12840
12915
|
break;
|
|
12841
12916
|
case D.Frame:
|
|
12842
12917
|
case D.Photo:
|
|
12843
12918
|
n.push(
|
|
12844
|
-
...await
|
|
12919
|
+
...await Mo(e, i, s, o)
|
|
12845
12920
|
);
|
|
12846
12921
|
break;
|
|
12847
12922
|
case D.Illustration:
|
|
12848
12923
|
n.push(
|
|
12849
|
-
...await
|
|
12924
|
+
...await To(
|
|
12850
12925
|
e,
|
|
12851
12926
|
i,
|
|
12852
12927
|
s,
|
|
@@ -12855,39 +12930,39 @@ const Do = [
|
|
|
12855
12930
|
);
|
|
12856
12931
|
break;
|
|
12857
12932
|
case D.Module:
|
|
12858
|
-
n.push(...await
|
|
12933
|
+
n.push(...await No(e, s, o));
|
|
12859
12934
|
break;
|
|
12860
12935
|
case D.Picture:
|
|
12861
12936
|
n.push(
|
|
12862
|
-
...await
|
|
12937
|
+
...await Qo(e, i, s, o)
|
|
12863
12938
|
);
|
|
12864
12939
|
break;
|
|
12865
12940
|
case D.Shape:
|
|
12866
12941
|
n.push(
|
|
12867
|
-
...await
|
|
12942
|
+
...await Ro(e, i, s, o)
|
|
12868
12943
|
);
|
|
12869
12944
|
break;
|
|
12870
12945
|
case D.Text:
|
|
12871
12946
|
n.push(
|
|
12872
|
-
...await
|
|
12947
|
+
...await $o(e, i, s, o)
|
|
12873
12948
|
);
|
|
12874
12949
|
break;
|
|
12875
12950
|
}
|
|
12876
12951
|
}
|
|
12877
12952
|
for (const s of t.steps)
|
|
12878
|
-
s.type !== D.SilentIllustration && s.type !== D.ProductOverlay ||
|
|
12879
|
-
...await
|
|
12953
|
+
s.type !== D.SilentIllustration && s.type !== D.ProductOverlay || Uo(s, i) && n.push(
|
|
12954
|
+
...await Oo(e, s, a)
|
|
12880
12955
|
);
|
|
12881
12956
|
return n;
|
|
12882
12957
|
};
|
|
12883
|
-
class
|
|
12958
|
+
class Vo {
|
|
12884
12959
|
constructor(t) {
|
|
12885
12960
|
this.handleCompleteRender = null;
|
|
12886
12961
|
const e = /* @__PURE__ */ new Map();
|
|
12887
12962
|
t.forEach(
|
|
12888
12963
|
(a) => e.set(
|
|
12889
12964
|
a.id,
|
|
12890
|
-
new
|
|
12965
|
+
new Wo(a.id, a.name, this, { width: a.width, height: a.height })
|
|
12891
12966
|
)
|
|
12892
12967
|
), this.layouts = e;
|
|
12893
12968
|
}
|
|
@@ -12901,15 +12976,15 @@ class Uo {
|
|
|
12901
12976
|
return this.layouts;
|
|
12902
12977
|
}
|
|
12903
12978
|
}
|
|
12904
|
-
const
|
|
12979
|
+
const zo = () => new Promise((r, t) => {
|
|
12905
12980
|
try {
|
|
12906
12981
|
const a = gt().getContext("webgl2");
|
|
12907
12982
|
r(!!a);
|
|
12908
12983
|
} catch {
|
|
12909
12984
|
r(!1);
|
|
12910
12985
|
}
|
|
12911
|
-
}),
|
|
12912
|
-
class
|
|
12986
|
+
}), Go = zo();
|
|
12987
|
+
class Wo {
|
|
12913
12988
|
constructor(t, e, a, n) {
|
|
12914
12989
|
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Pn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n;
|
|
12915
12990
|
}
|
|
@@ -12965,10 +13040,10 @@ class Vo {
|
|
|
12965
13040
|
return;
|
|
12966
13041
|
}
|
|
12967
13042
|
this.renderQueue.enqueue(
|
|
12968
|
-
new
|
|
13043
|
+
new jo(
|
|
12969
13044
|
this.getID(),
|
|
12970
13045
|
a,
|
|
12971
|
-
await
|
|
13046
|
+
await Go,
|
|
12972
13047
|
() => {
|
|
12973
13048
|
this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
|
|
12974
13049
|
},
|
|
@@ -12977,7 +13052,7 @@ class Vo {
|
|
|
12977
13052
|
);
|
|
12978
13053
|
}
|
|
12979
13054
|
}
|
|
12980
|
-
class
|
|
13055
|
+
class jo extends Dn {
|
|
12981
13056
|
// TODO: Do we need to pass this whole array in?
|
|
12982
13057
|
constructor(t, e, a, n, i) {
|
|
12983
13058
|
super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = i;
|
|
@@ -13045,7 +13120,7 @@ class zo extends Dn {
|
|
|
13045
13120
|
u.resize(l, c), await u.render(), this.onRender();
|
|
13046
13121
|
}
|
|
13047
13122
|
}
|
|
13048
|
-
const
|
|
13123
|
+
const Qc = (r, t) => {
|
|
13049
13124
|
const e = [];
|
|
13050
13125
|
return r.forEach((a) => {
|
|
13051
13126
|
const n = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -13056,16 +13131,16 @@ const Mc = (r, t) => {
|
|
|
13056
13131
|
}
|
|
13057
13132
|
});
|
|
13058
13133
|
}), e;
|
|
13059
|
-
},
|
|
13134
|
+
}, Rc = async (r, t, e, a) => {
|
|
13060
13135
|
let n = {
|
|
13061
13136
|
serializableWorkflow: { steps: [] },
|
|
13062
13137
|
layouts: {}
|
|
13063
13138
|
};
|
|
13064
|
-
n = new O(e.map((l) => new
|
|
13065
|
-
const s = await
|
|
13139
|
+
n = new O(e.map((l) => new $n(l))).apply(n);
|
|
13140
|
+
const s = await Lo(r, t, e, a);
|
|
13066
13141
|
return new O(s).apply(n);
|
|
13067
13142
|
};
|
|
13068
|
-
class
|
|
13143
|
+
class Ho {
|
|
13069
13144
|
constructor(t) {
|
|
13070
13145
|
this.handleCache = {}, this.bundle = t;
|
|
13071
13146
|
}
|
|
@@ -13110,7 +13185,7 @@ class Go {
|
|
|
13110
13185
|
async createHandle(t) {
|
|
13111
13186
|
switch (t.type) {
|
|
13112
13187
|
case et.FileUpload:
|
|
13113
|
-
return new
|
|
13188
|
+
return new qo(this.bundle, t).initialize();
|
|
13114
13189
|
case et.ColorOption:
|
|
13115
13190
|
return new Ha(
|
|
13116
13191
|
this.bundle,
|
|
@@ -13122,7 +13197,7 @@ class Go {
|
|
|
13122
13197
|
return (e == null ? void 0 : e.type) === "Color" ? new Ha(this.bundle, t, e) : new _n(this.bundle, t, e);
|
|
13123
13198
|
}
|
|
13124
13199
|
case et.Text:
|
|
13125
|
-
return new
|
|
13200
|
+
return new Yo(this.bundle, t);
|
|
13126
13201
|
default:
|
|
13127
13202
|
throw new Error("Unhandled Global Property Aspect Type");
|
|
13128
13203
|
}
|
|
@@ -13183,7 +13258,7 @@ class Ba {
|
|
|
13183
13258
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
|
13184
13259
|
}
|
|
13185
13260
|
}
|
|
13186
|
-
class
|
|
13261
|
+
class qo extends Ba {
|
|
13187
13262
|
constructor(t, e) {
|
|
13188
13263
|
super(t, e);
|
|
13189
13264
|
}
|
|
@@ -13249,7 +13324,7 @@ class Wo extends Ba {
|
|
|
13249
13324
|
const e = await this.getOriginalImage();
|
|
13250
13325
|
if (!e)
|
|
13251
13326
|
throw new Error("You must supply an image selection before attempting to remove the background.");
|
|
13252
|
-
const a = this.bundle.getGlobalPropertyStateManager(), n = await
|
|
13327
|
+
const a = this.bundle.getGlobalPropertyStateManager(), n = await $.removeBackgroundFromAsset(e), s = {
|
|
13253
13328
|
...a.getAspectStorage(this.property.name),
|
|
13254
13329
|
backgroundRemovedAssetKey: n.key,
|
|
13255
13330
|
useOriginalAsset: !t
|
|
@@ -13269,7 +13344,7 @@ class Wo extends Ba {
|
|
|
13269
13344
|
async getImage() {
|
|
13270
13345
|
const t = this.getStateValue();
|
|
13271
13346
|
if (t)
|
|
13272
|
-
return
|
|
13347
|
+
return $.getLocalOrFromServer(t);
|
|
13273
13348
|
}
|
|
13274
13349
|
async getImageWithColors() {
|
|
13275
13350
|
var t, e;
|
|
@@ -13282,7 +13357,7 @@ class Wo extends Ba {
|
|
|
13282
13357
|
async getOriginalImage() {
|
|
13283
13358
|
const t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
|
|
13284
13359
|
if (t != null && t.originalAssetKey)
|
|
13285
|
-
return
|
|
13360
|
+
return $.getLocalOrFromServer(t.originalAssetKey);
|
|
13286
13361
|
}
|
|
13287
13362
|
/**
|
|
13288
13363
|
* Retrieves the version of the image selection that has the background removed, if one exists.
|
|
@@ -13291,7 +13366,7 @@ class Wo extends Ba {
|
|
|
13291
13366
|
async getBackgroundRemovedImage() {
|
|
13292
13367
|
const t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name);
|
|
13293
13368
|
if (t != null && t.backgroundRemovedAssetKey)
|
|
13294
|
-
return
|
|
13369
|
+
return $.getLocalOrFromServer(t.backgroundRemovedAssetKey);
|
|
13295
13370
|
}
|
|
13296
13371
|
getUseOriginalImage() {
|
|
13297
13372
|
var t;
|
|
@@ -13327,7 +13402,7 @@ class Wo extends Ba {
|
|
|
13327
13402
|
const e = this.getStateValue();
|
|
13328
13403
|
if (!e)
|
|
13329
13404
|
return;
|
|
13330
|
-
const a = await
|
|
13405
|
+
const a = await $.getLocalOrFromServer(e);
|
|
13331
13406
|
if (!a)
|
|
13332
13407
|
return;
|
|
13333
13408
|
await this.applyImageSelection(a, t, !1, !0);
|
|
@@ -13420,7 +13495,7 @@ class Wo extends Ba {
|
|
|
13420
13495
|
);
|
|
13421
13496
|
}
|
|
13422
13497
|
}
|
|
13423
|
-
class
|
|
13498
|
+
class Yo extends Ba {
|
|
13424
13499
|
constructor(t, e) {
|
|
13425
13500
|
super(t, e);
|
|
13426
13501
|
}
|
|
@@ -13585,8 +13660,8 @@ class Ha extends _n {
|
|
|
13585
13660
|
return ((t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)) == null ? void 0 : t.customColor) || ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) || "#ffffff";
|
|
13586
13661
|
}
|
|
13587
13662
|
}
|
|
13588
|
-
const
|
|
13589
|
-
const n =
|
|
13663
|
+
const Jo = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), Ko = (r, t, e) => {
|
|
13664
|
+
const n = Jo(
|
|
13590
13665
|
r,
|
|
13591
13666
|
t,
|
|
13592
13667
|
e,
|
|
@@ -13598,7 +13673,7 @@ const Ho = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlo
|
|
|
13598
13673
|
});
|
|
13599
13674
|
return Math.max(...n);
|
|
13600
13675
|
};
|
|
13601
|
-
class
|
|
13676
|
+
class _o {
|
|
13602
13677
|
constructor(t, e, a, n, i) {
|
|
13603
13678
|
this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
|
|
13604
13679
|
const s = i == null ? void 0 : i.existingGlobalPropertyState;
|
|
@@ -13774,7 +13849,7 @@ class Yo {
|
|
|
13774
13849
|
throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
|
|
13775
13850
|
}
|
|
13776
13851
|
}
|
|
13777
|
-
class
|
|
13852
|
+
class Xo {
|
|
13778
13853
|
constructor(t) {
|
|
13779
13854
|
this.setState(t);
|
|
13780
13855
|
}
|
|
@@ -13862,7 +13937,7 @@ class Jo {
|
|
|
13862
13937
|
};
|
|
13863
13938
|
}
|
|
13864
13939
|
}
|
|
13865
|
-
const
|
|
13940
|
+
const Zo = y`
|
|
13866
13941
|
query GetManyMetafields($entityIds: [String!]!) {
|
|
13867
13942
|
metafieldsMany(entityIds: $entityIds) {
|
|
13868
13943
|
id
|
|
@@ -13874,7 +13949,7 @@ const Ko = y`
|
|
|
13874
13949
|
}
|
|
13875
13950
|
}
|
|
13876
13951
|
`;
|
|
13877
|
-
class
|
|
13952
|
+
class tl {
|
|
13878
13953
|
constructor() {
|
|
13879
13954
|
this.internalMap = /* @__PURE__ */ new Map();
|
|
13880
13955
|
}
|
|
@@ -13896,7 +13971,7 @@ class _o {
|
|
|
13896
13971
|
if (t.every((a) => this.internalMap.has(a)))
|
|
13897
13972
|
return;
|
|
13898
13973
|
const e = await b.getShadowGraphqlClient().query({
|
|
13899
|
-
query:
|
|
13974
|
+
query: Zo,
|
|
13900
13975
|
errorPolicy: "all",
|
|
13901
13976
|
variables: {
|
|
13902
13977
|
entityIds: t.filter((a) => !this.internalMap.has(a))
|
|
@@ -13937,9 +14012,9 @@ class _o {
|
|
|
13937
14012
|
return JSON.parse(n.value);
|
|
13938
14013
|
}
|
|
13939
14014
|
}
|
|
13940
|
-
const
|
|
13941
|
-
var
|
|
13942
|
-
class
|
|
14015
|
+
const el = new tl();
|
|
14016
|
+
var al = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(al || {});
|
|
14017
|
+
class nl {
|
|
13943
14018
|
constructor(t) {
|
|
13944
14019
|
this.fullFetched = !1, this.collection = t;
|
|
13945
14020
|
const e = this.collection.productCollectionProducts;
|
|
@@ -14001,7 +14076,7 @@ class tl {
|
|
|
14001
14076
|
async filterProducts(t, e, a, n) {
|
|
14002
14077
|
var l, c;
|
|
14003
14078
|
const i = await b.getShadowGraphqlClient().query({
|
|
14004
|
-
query:
|
|
14079
|
+
query: Ns,
|
|
14005
14080
|
errorPolicy: "all",
|
|
14006
14081
|
variables: {
|
|
14007
14082
|
id: this.getId(),
|
|
@@ -14042,7 +14117,7 @@ class tl {
|
|
|
14042
14117
|
};
|
|
14043
14118
|
}
|
|
14044
14119
|
const o = await b.getShadowGraphqlClient().query({
|
|
14045
|
-
query:
|
|
14120
|
+
query: Qs,
|
|
14046
14121
|
variables: {
|
|
14047
14122
|
id: this.getId(),
|
|
14048
14123
|
limit: e,
|
|
@@ -14067,7 +14142,7 @@ class tl {
|
|
|
14067
14142
|
}
|
|
14068
14143
|
getTransformCollection() {
|
|
14069
14144
|
if (this.collection.transformCollection)
|
|
14070
|
-
return new
|
|
14145
|
+
return new rl(this.collection.transformCollection);
|
|
14071
14146
|
}
|
|
14072
14147
|
/**
|
|
14073
14148
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -14209,7 +14284,7 @@ class se {
|
|
|
14209
14284
|
* @returns A map of metafield key to value. Any unavailable keys will not be present in the map. use map.has() to check if a key is present.
|
|
14210
14285
|
*/
|
|
14211
14286
|
async requestMetafields(t) {
|
|
14212
|
-
return
|
|
14287
|
+
return el.requestKeysForEntity(this.product.id, t);
|
|
14213
14288
|
}
|
|
14214
14289
|
}
|
|
14215
14290
|
class zt {
|
|
@@ -14236,7 +14311,7 @@ class zt {
|
|
|
14236
14311
|
return this.workflow.imageUrl;
|
|
14237
14312
|
}
|
|
14238
14313
|
}
|
|
14239
|
-
class
|
|
14314
|
+
class rl {
|
|
14240
14315
|
constructor(t) {
|
|
14241
14316
|
this.collection = t;
|
|
14242
14317
|
}
|
|
@@ -14256,10 +14331,10 @@ class el {
|
|
|
14256
14331
|
* @returns The transforms in this collection.
|
|
14257
14332
|
*/
|
|
14258
14333
|
getTransforms() {
|
|
14259
|
-
return this.collection.transforms.map((t) => new
|
|
14334
|
+
return this.collection.transforms.map((t) => new il(t));
|
|
14260
14335
|
}
|
|
14261
14336
|
}
|
|
14262
|
-
class
|
|
14337
|
+
class il {
|
|
14263
14338
|
constructor(t) {
|
|
14264
14339
|
this.transform = t;
|
|
14265
14340
|
}
|
|
@@ -14286,7 +14361,7 @@ class al {
|
|
|
14286
14361
|
};
|
|
14287
14362
|
}
|
|
14288
14363
|
}
|
|
14289
|
-
class
|
|
14364
|
+
class sl {
|
|
14290
14365
|
constructor() {
|
|
14291
14366
|
this.listeners = {};
|
|
14292
14367
|
}
|
|
@@ -14313,7 +14388,7 @@ class nl {
|
|
|
14313
14388
|
delete this.listeners[e];
|
|
14314
14389
|
}
|
|
14315
14390
|
}
|
|
14316
|
-
const
|
|
14391
|
+
const ol = y`
|
|
14317
14392
|
mutation AddAddressToBundle(
|
|
14318
14393
|
$bundleId: String!
|
|
14319
14394
|
$streetAddress: String
|
|
@@ -14335,13 +14410,13 @@ const rl = y`
|
|
|
14335
14410
|
id
|
|
14336
14411
|
}
|
|
14337
14412
|
}
|
|
14338
|
-
`,
|
|
14413
|
+
`, ll = y`
|
|
14339
14414
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14340
14415
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14341
14416
|
id
|
|
14342
14417
|
}
|
|
14343
14418
|
}
|
|
14344
|
-
`,
|
|
14419
|
+
`, cl = y`
|
|
14345
14420
|
mutation GenerateQuoteId($id: String!) {
|
|
14346
14421
|
bundleGenerateQuoteId(id: $id) {
|
|
14347
14422
|
id
|
|
@@ -14352,15 +14427,15 @@ const rl = y`
|
|
|
14352
14427
|
class He {
|
|
14353
14428
|
constructor(t, e, a, n, i, s) {
|
|
14354
14429
|
var c, d, A;
|
|
14355
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
|
14430
|
+
this.workflowExperiences = [], this.eventEmitter = new sl(), this.client = t, this.id = e.id, this.name = e.name || "", this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Xo(e.bundleStateData);
|
|
14356
14431
|
const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
|
|
14357
|
-
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new
|
|
14432
|
+
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new _o(
|
|
14358
14433
|
this.id,
|
|
14359
14434
|
this.ownerId,
|
|
14360
14435
|
o,
|
|
14361
14436
|
this.checkConditionalHandlesChanged.bind(this),
|
|
14362
14437
|
s
|
|
14363
|
-
), this.globalPropertyHandleService = new
|
|
14438
|
+
), this.globalPropertyHandleService = new Ho(this), this.setPreviewService(a);
|
|
14364
14439
|
const l = new Promise((u, h) => {
|
|
14365
14440
|
if (s != null && s.readonly) {
|
|
14366
14441
|
u([]);
|
|
@@ -14391,7 +14466,7 @@ class He {
|
|
|
14391
14466
|
async generateQuoteId() {
|
|
14392
14467
|
var a, n;
|
|
14393
14468
|
const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
|
|
14394
|
-
mutation:
|
|
14469
|
+
mutation: cl,
|
|
14395
14470
|
variables: {
|
|
14396
14471
|
id: this.id
|
|
14397
14472
|
},
|
|
@@ -14403,7 +14478,7 @@ class He {
|
|
|
14403
14478
|
}
|
|
14404
14479
|
async attachAddress(t, e, a, n, i, s) {
|
|
14405
14480
|
await b.getShadowGraphqlClient().mutate({
|
|
14406
|
-
mutation:
|
|
14481
|
+
mutation: ol,
|
|
14407
14482
|
variables: {
|
|
14408
14483
|
bundleId: this.id,
|
|
14409
14484
|
streetAddress: t || void 0,
|
|
@@ -14420,7 +14495,7 @@ class He {
|
|
|
14420
14495
|
}
|
|
14421
14496
|
async attachOrganization(t) {
|
|
14422
14497
|
await b.getShadowGraphqlClient().mutate({
|
|
14423
|
-
mutation:
|
|
14498
|
+
mutation: ll,
|
|
14424
14499
|
variables: {
|
|
14425
14500
|
bundleId: this.id,
|
|
14426
14501
|
organizationName: t
|
|
@@ -14493,7 +14568,7 @@ class He {
|
|
|
14493
14568
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
14494
14569
|
}
|
|
14495
14570
|
getProductCollection() {
|
|
14496
|
-
return this.productCollection ? new
|
|
14571
|
+
return this.productCollection ? new nl(this.productCollection) : void 0;
|
|
14497
14572
|
}
|
|
14498
14573
|
async initializeAdditionalRequiredColorChannels(t) {
|
|
14499
14574
|
var e, a, n, i;
|
|
@@ -14504,7 +14579,7 @@ class He {
|
|
|
14504
14579
|
(d) => d.name === l
|
|
14505
14580
|
);
|
|
14506
14581
|
if (c && c.type === et.ColorOption) {
|
|
14507
|
-
const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h =
|
|
14582
|
+
const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = Ko(
|
|
14508
14583
|
this.getWorkflowExperiences(),
|
|
14509
14584
|
this.globalConfigurationPropertyId || "",
|
|
14510
14585
|
l
|
|
@@ -14571,7 +14646,7 @@ class He {
|
|
|
14571
14646
|
throw new Error("Unable to add transaction to bundle - Already Exists!");
|
|
14572
14647
|
const s = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
|
|
14573
14648
|
await b.getShadowGraphqlClient().mutate({
|
|
14574
|
-
mutation:
|
|
14649
|
+
mutation: Us,
|
|
14575
14650
|
variables: {
|
|
14576
14651
|
id: this.id,
|
|
14577
14652
|
transactionId: a
|
|
@@ -14802,7 +14877,7 @@ class He {
|
|
|
14802
14877
|
items: [],
|
|
14803
14878
|
bundleOwnerId: this.ownerId
|
|
14804
14879
|
};
|
|
14805
|
-
const a = await
|
|
14880
|
+
const a = await Eo(
|
|
14806
14881
|
this.workflowExperiences.map((n) => ({
|
|
14807
14882
|
workflowManager: n.getWorkflowManager(),
|
|
14808
14883
|
workflow: n.getWorkflowManager().getWorkflow(),
|
|
@@ -14926,7 +15001,7 @@ class He {
|
|
|
14926
15001
|
async updateBundle() {
|
|
14927
15002
|
var e;
|
|
14928
15003
|
if (!((e = (await b.getShadowGraphqlClient().mutate({
|
|
14929
|
-
mutation:
|
|
15004
|
+
mutation: $s,
|
|
14930
15005
|
variables: {
|
|
14931
15006
|
id: this.id,
|
|
14932
15007
|
name: this.name,
|
|
@@ -15012,14 +15087,14 @@ class He {
|
|
|
15012
15087
|
};
|
|
15013
15088
|
}
|
|
15014
15089
|
}
|
|
15015
|
-
const
|
|
15090
|
+
const dl = y`
|
|
15016
15091
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
15017
15092
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
15018
15093
|
id
|
|
15019
15094
|
}
|
|
15020
15095
|
}
|
|
15021
15096
|
`;
|
|
15022
|
-
class
|
|
15097
|
+
class Al {
|
|
15023
15098
|
/**
|
|
15024
15099
|
*
|
|
15025
15100
|
* @param id
|
|
@@ -15030,7 +15105,7 @@ class ll {
|
|
|
15030
15105
|
async execute(t, e, a) {
|
|
15031
15106
|
var A, u, h;
|
|
15032
15107
|
const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
|
|
15033
|
-
mutation:
|
|
15108
|
+
mutation: dl,
|
|
15034
15109
|
variables: {
|
|
15035
15110
|
processFlowId: t,
|
|
15036
15111
|
inputs: [...e.map((m) => m.getValueForTransmission())]
|
|
@@ -15072,7 +15147,7 @@ class ll {
|
|
|
15072
15147
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15073
15148
|
);
|
|
15074
15149
|
if (m.completedAt) {
|
|
15075
|
-
o = !0, d = new
|
|
15150
|
+
o = !0, d = new ul(m);
|
|
15076
15151
|
break;
|
|
15077
15152
|
}
|
|
15078
15153
|
l += 1;
|
|
@@ -15086,7 +15161,7 @@ class ll {
|
|
|
15086
15161
|
return Promise.resolve(d);
|
|
15087
15162
|
}
|
|
15088
15163
|
}
|
|
15089
|
-
class
|
|
15164
|
+
class ul {
|
|
15090
15165
|
constructor(t) {
|
|
15091
15166
|
this.execution = t;
|
|
15092
15167
|
}
|
|
@@ -15171,8 +15246,8 @@ class ba {
|
|
|
15171
15246
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15172
15247
|
}
|
|
15173
15248
|
}
|
|
15174
|
-
var
|
|
15175
|
-
class
|
|
15249
|
+
var hl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(hl || {});
|
|
15250
|
+
class Oc extends ba {
|
|
15176
15251
|
constructor(t) {
|
|
15177
15252
|
super(`"${t}"`);
|
|
15178
15253
|
}
|
|
@@ -15187,7 +15262,7 @@ class Xn extends ba {
|
|
|
15187
15262
|
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);
|
|
15188
15263
|
}
|
|
15189
15264
|
}
|
|
15190
|
-
class
|
|
15265
|
+
class $c extends ba {
|
|
15191
15266
|
constructor(t) {
|
|
15192
15267
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15193
15268
|
}
|
|
@@ -15245,7 +15320,7 @@ const Ya = y`
|
|
|
15245
15320
|
}
|
|
15246
15321
|
}
|
|
15247
15322
|
}
|
|
15248
|
-
`,
|
|
15323
|
+
`, ml = y`
|
|
15249
15324
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15250
15325
|
customerCreate(details: $details) {
|
|
15251
15326
|
id
|
|
@@ -15255,7 +15330,7 @@ const Ya = y`
|
|
|
15255
15330
|
}
|
|
15256
15331
|
}
|
|
15257
15332
|
}
|
|
15258
|
-
`,
|
|
15333
|
+
`, gl = y`
|
|
15259
15334
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
15260
15335
|
customerAuthenticate(loginToken: $loginToken) {
|
|
15261
15336
|
id
|
|
@@ -15285,11 +15360,11 @@ const Ya = y`
|
|
|
15285
15360
|
}
|
|
15286
15361
|
}
|
|
15287
15362
|
}
|
|
15288
|
-
`,
|
|
15363
|
+
`, fl = y`
|
|
15289
15364
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15290
15365
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15291
15366
|
}
|
|
15292
|
-
`,
|
|
15367
|
+
`, pl = y`
|
|
15293
15368
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
15294
15369
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
15295
15370
|
id
|
|
@@ -15320,7 +15395,7 @@ const Ya = y`
|
|
|
15320
15395
|
}
|
|
15321
15396
|
}
|
|
15322
15397
|
}
|
|
15323
|
-
`,
|
|
15398
|
+
`, Cl = y`
|
|
15324
15399
|
query CustomerMetafields($id: String!) {
|
|
15325
15400
|
metafields(entityId: $id) {
|
|
15326
15401
|
id
|
|
@@ -15338,7 +15413,7 @@ const Ya = y`
|
|
|
15338
15413
|
}
|
|
15339
15414
|
}
|
|
15340
15415
|
}
|
|
15341
|
-
`,
|
|
15416
|
+
`, wl = async (r, t) => {
|
|
15342
15417
|
var n;
|
|
15343
15418
|
const e = await b.getShadowGraphqlClient().query({
|
|
15344
15419
|
query: Bi(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
@@ -15357,12 +15432,12 @@ const Ya = y`
|
|
|
15357
15432
|
return a.forEach((i) => {
|
|
15358
15433
|
i.steps.forEach((s) => {
|
|
15359
15434
|
var o, l, c;
|
|
15360
|
-
delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset &&
|
|
15361
|
-
d.asset &&
|
|
15435
|
+
delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset && $.cacheAsset(s.option.defaultVariant.asset), s.option.colorProfile && $.cacheAsset(s.option.colorProfile), (c = s.option.variants) == null || c.forEach((d) => {
|
|
15436
|
+
d.asset && $.cacheAsset(d.asset), d.thumbnail && $.cacheAsset(d.thumbnail), d.material && $.cacheMaterial(d.material);
|
|
15362
15437
|
}), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15363
15438
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15364
15439
|
}), a;
|
|
15365
|
-
},
|
|
15440
|
+
}, yl = async (r, t) => {
|
|
15366
15441
|
const a = (await t).find((n) => n.id === r);
|
|
15367
15442
|
if (!a)
|
|
15368
15443
|
throw new Error(`Workflow not found: ${r}`);
|
|
@@ -15371,12 +15446,12 @@ const Ya = y`
|
|
|
15371
15446
|
const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15372
15447
|
if (a.length === 0)
|
|
15373
15448
|
return Promise.all(e);
|
|
15374
|
-
const n =
|
|
15375
|
-
(o) => Ht.set({ id: o, options: t },
|
|
15449
|
+
const n = wl(a, t), i = a.map(
|
|
15450
|
+
(o) => Ht.set({ id: o, options: t }, yl(o, n))
|
|
15376
15451
|
), s = e.filter((o) => o !== void 0);
|
|
15377
15452
|
return await Promise.all(s.concat(i));
|
|
15378
|
-
},
|
|
15379
|
-
id:
|
|
15453
|
+
}, Uc = async (r, t) => (await Zn([r], t))[0], Sl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
15454
|
+
id: N(),
|
|
15380
15455
|
panelId: t.name,
|
|
15381
15456
|
name: t.name,
|
|
15382
15457
|
title: t.title,
|
|
@@ -15389,11 +15464,11 @@ const Ya = y`
|
|
|
15389
15464
|
previewRegion: t.previewRegion,
|
|
15390
15465
|
useEditableArea: t.useEditableArea,
|
|
15391
15466
|
editableArea: t.editableArea
|
|
15392
|
-
})),
|
|
15467
|
+
})), vl = (r, t) => {
|
|
15393
15468
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
15394
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
15469
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : Sl(t.panels);
|
|
15395
15470
|
};
|
|
15396
|
-
class
|
|
15471
|
+
class Lc {
|
|
15397
15472
|
constructor(t) {
|
|
15398
15473
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15399
15474
|
try {
|
|
@@ -15404,7 +15479,7 @@ class Oc {
|
|
|
15404
15479
|
} catch (a) {
|
|
15405
15480
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15406
15481
|
}
|
|
15407
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15482
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15408
15483
|
}
|
|
15409
15484
|
configure(t) {
|
|
15410
15485
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -15414,7 +15489,7 @@ class Oc {
|
|
|
15414
15489
|
* and the Spiff Commerce platform.
|
|
15415
15490
|
*/
|
|
15416
15491
|
getAssetManager() {
|
|
15417
|
-
return
|
|
15492
|
+
return $;
|
|
15418
15493
|
}
|
|
15419
15494
|
getCurrencyCode() {
|
|
15420
15495
|
if (this.currencyCode === void 0)
|
|
@@ -15424,14 +15499,14 @@ class Oc {
|
|
|
15424
15499
|
getFlowService() {
|
|
15425
15500
|
if (!xr())
|
|
15426
15501
|
throw new Error("Application key required to use Flow Service.");
|
|
15427
|
-
return new
|
|
15502
|
+
return new Al();
|
|
15428
15503
|
}
|
|
15429
15504
|
async getIntegration() {
|
|
15430
15505
|
if (this.activeIntegration)
|
|
15431
15506
|
return this.activeIntegration;
|
|
15432
15507
|
if (!this.options.applicationKey)
|
|
15433
15508
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
15434
|
-
return this.activeIntegration =
|
|
15509
|
+
return this.activeIntegration = El(this.options.applicationKey), this.activeIntegration;
|
|
15435
15510
|
}
|
|
15436
15511
|
async canUseAddon(t) {
|
|
15437
15512
|
var e;
|
|
@@ -15580,7 +15655,7 @@ class Oc {
|
|
|
15580
15655
|
})).data.customer;
|
|
15581
15656
|
if (!n.id) {
|
|
15582
15657
|
const l = (s = (await e.mutate({
|
|
15583
|
-
mutation:
|
|
15658
|
+
mutation: ml,
|
|
15584
15659
|
errorPolicy: "all",
|
|
15585
15660
|
fetchPolicy: "no-cache",
|
|
15586
15661
|
variables: {
|
|
@@ -15615,7 +15690,7 @@ class Oc {
|
|
|
15615
15690
|
if (!n)
|
|
15616
15691
|
return !1;
|
|
15617
15692
|
const s = (o = (await e.mutate({
|
|
15618
|
-
mutation:
|
|
15693
|
+
mutation: gl,
|
|
15619
15694
|
errorPolicy: "all",
|
|
15620
15695
|
fetchPolicy: "no-cache",
|
|
15621
15696
|
variables: {
|
|
@@ -15630,7 +15705,7 @@ class Oc {
|
|
|
15630
15705
|
*/
|
|
15631
15706
|
async generateVerificationCode(t) {
|
|
15632
15707
|
await b.getShadowGraphqlClient().mutate({
|
|
15633
|
-
mutation:
|
|
15708
|
+
mutation: fl,
|
|
15634
15709
|
variables: {
|
|
15635
15710
|
emailAddress: t
|
|
15636
15711
|
}
|
|
@@ -15645,7 +15720,7 @@ class Oc {
|
|
|
15645
15720
|
async verifyCode(t, e) {
|
|
15646
15721
|
var i, s;
|
|
15647
15722
|
const n = (i = (await b.getShadowGraphqlClient().mutate({
|
|
15648
|
-
mutation:
|
|
15723
|
+
mutation: pl,
|
|
15649
15724
|
errorPolicy: "all",
|
|
15650
15725
|
fetchPolicy: "no-cache",
|
|
15651
15726
|
variables: {
|
|
@@ -15669,7 +15744,7 @@ class Oc {
|
|
|
15669
15744
|
if (!((e = this.customer) != null && e.id))
|
|
15670
15745
|
throw new Error("Customer must be logged in before calling this function.");
|
|
15671
15746
|
return (await b.getShadowGraphqlClient().query({
|
|
15672
|
-
query:
|
|
15747
|
+
query: Cl,
|
|
15673
15748
|
variables: {
|
|
15674
15749
|
id: this.customer.id
|
|
15675
15750
|
}
|
|
@@ -15712,7 +15787,7 @@ class Oc {
|
|
|
15712
15787
|
*/
|
|
15713
15788
|
async getExistingBundle(t, e, a, n) {
|
|
15714
15789
|
var f, p, C, w, v, S, B, E, I, P, F;
|
|
15715
|
-
const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M,
|
|
15790
|
+
const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M, Q]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
|
|
15716
15791
|
c && !ve(c) && (d.Authorization = `Bearer ${c}`);
|
|
15717
15792
|
const A = {
|
|
15718
15793
|
bundleOwnerId: s,
|
|
@@ -15852,7 +15927,7 @@ class Oc {
|
|
|
15852
15927
|
var P, F, M;
|
|
15853
15928
|
if (S.length === 0)
|
|
15854
15929
|
return [];
|
|
15855
|
-
const B = S.map((
|
|
15930
|
+
const B = S.map((Q) => Q.option.transactionId), E = await a.query({
|
|
15856
15931
|
query: Ai,
|
|
15857
15932
|
variables: {
|
|
15858
15933
|
ids: B
|
|
@@ -15861,15 +15936,15 @@ class Oc {
|
|
|
15861
15936
|
fetchPolicy: "no-cache"
|
|
15862
15937
|
}), I = E.data.transactions;
|
|
15863
15938
|
if (I.length !== S.length) {
|
|
15864
|
-
const
|
|
15865
|
-
throw new ut(`Not all transactions were found: ${
|
|
15939
|
+
const Q = ((F = (P = E.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
15940
|
+
throw new ut(`Not all transactions were found: ${Q}`);
|
|
15866
15941
|
}
|
|
15867
|
-
return !this.activeIntegration && ((M = I[0].integrationProduct) != null && M.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((
|
|
15942
|
+
return !this.activeIntegration && ((M = I[0].integrationProduct) != null && M.integration) && (this.activeIntegration = Promise.resolve(I[0].integrationProduct.integration)), I.map((Q, V) => {
|
|
15868
15943
|
var j;
|
|
15869
15944
|
return {
|
|
15870
|
-
transaction:
|
|
15871
|
-
workflowId:
|
|
15872
|
-
readOnly: ((j = S.find((G) => G.option.transactionId ===
|
|
15945
|
+
transaction: Q,
|
|
15946
|
+
workflowId: Q.workflowId,
|
|
15947
|
+
readOnly: ((j = S.find((G) => G.option.transactionId === Q.id)) == null ? void 0 : j.option.readOnly) ?? !1,
|
|
15873
15948
|
index: S[V].index
|
|
15874
15949
|
};
|
|
15875
15950
|
});
|
|
@@ -15898,11 +15973,11 @@ class Oc {
|
|
|
15898
15973
|
const M = ((F = (P = B.errors) == null ? void 0 : P[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
15899
15974
|
throw new ut(`Failed to create transactions: ${M}`);
|
|
15900
15975
|
}
|
|
15901
|
-
return E.map((M,
|
|
15976
|
+
return E.map((M, Q) => ({
|
|
15902
15977
|
transaction: M,
|
|
15903
15978
|
workflowId: M.workflowId,
|
|
15904
15979
|
readOnly: !1,
|
|
15905
|
-
index: S[
|
|
15980
|
+
index: S[Q].index
|
|
15906
15981
|
}));
|
|
15907
15982
|
}, s = t.map((S, B) => ({ option: S, index: B })), o = s.filter((S) => S.option.type === "transaction"), l = s.filter(
|
|
15908
15983
|
(S) => S.option.type === "integration" || S.option.type === "external"
|
|
@@ -15913,7 +15988,7 @@ class Oc {
|
|
|
15913
15988
|
var j;
|
|
15914
15989
|
const { transaction: B, workflowId: E, readOnly: I, index: P } = S, F = m.get(E), M = t[P];
|
|
15915
15990
|
!g.get(B.id) && B.transactionOwnerId && g.set(B.id, B.transactionOwnerId);
|
|
15916
|
-
const
|
|
15991
|
+
const Q = g.get(B.id) || void 0, V = {
|
|
15917
15992
|
product: B.product,
|
|
15918
15993
|
transaction: B,
|
|
15919
15994
|
layouts: [],
|
|
@@ -15922,7 +15997,7 @@ class Oc {
|
|
|
15922
15997
|
throw new z("State mutation is forbidden in read only mode!");
|
|
15923
15998
|
} : async (G) => this.updateTransactionState({
|
|
15924
15999
|
...G,
|
|
15925
|
-
context: { transactionOwnerId:
|
|
16000
|
+
context: { transactionOwnerId: Q, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId }
|
|
15926
16001
|
}),
|
|
15927
16002
|
readOnly: I,
|
|
15928
16003
|
workflow: F,
|
|
@@ -15930,22 +16005,22 @@ class Oc {
|
|
|
15930
16005
|
};
|
|
15931
16006
|
if (M.type === "transaction" && B.workflowState) {
|
|
15932
16007
|
const G = JSON.parse(B.workflowState);
|
|
15933
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
16008
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await Ua(G), V.reloadedState = G;
|
|
15934
16009
|
} else if (!I && M.workflowState) {
|
|
15935
16010
|
const G = JSON.parse(M.workflowState);
|
|
15936
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
16011
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await Ua(G), V.reloadedState = G;
|
|
15937
16012
|
} else
|
|
15938
|
-
V.layouts =
|
|
16013
|
+
V.layouts = vl(
|
|
15939
16014
|
V.transaction,
|
|
15940
16015
|
V.workflow
|
|
15941
16016
|
);
|
|
15942
|
-
return V.renderableContextService = new
|
|
16017
|
+
return V.renderableContextService = new Vo(
|
|
15943
16018
|
V.layouts
|
|
15944
16019
|
), V.delayWorkflowStateSync = !0, { experienceOptions: V, index: P, options: M };
|
|
15945
16020
|
}), p = await Promise.all(f);
|
|
15946
16021
|
k.setMap("transactionOwnerIds", g);
|
|
15947
16022
|
const w = p.sort((S, B) => S.index - B.index).map(async (S) => {
|
|
15948
|
-
const { experienceOptions: B, options: E } = S, I = new
|
|
16023
|
+
const { experienceOptions: B, options: E } = S, I = new Fo(this, B);
|
|
15949
16024
|
return await I.getWorkflowManager().getInitializationPromise(), E.type !== "transaction" && this.customer && await I.attachCustomerDetails({ email: this.customer.emailAddress }), I;
|
|
15950
16025
|
}), v = await Promise.all(w);
|
|
15951
16026
|
return v.forEach((S) => S.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), v;
|
|
@@ -16019,7 +16094,7 @@ class Oc {
|
|
|
16019
16094
|
};
|
|
16020
16095
|
}
|
|
16021
16096
|
}
|
|
16022
|
-
const
|
|
16097
|
+
const El = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
16023
16098
|
query: Pi,
|
|
16024
16099
|
errorPolicy: "all",
|
|
16025
16100
|
fetchPolicy: "no-cache",
|
|
@@ -16031,7 +16106,7 @@ const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16031
16106
|
variables: {
|
|
16032
16107
|
themeConfigurationId: t
|
|
16033
16108
|
}
|
|
16034
|
-
})).data.currentIntegration,
|
|
16109
|
+
})).data.currentIntegration, Vc = async (r) => {
|
|
16035
16110
|
const e = await b.getShadowGraphqlClient().query({
|
|
16036
16111
|
query: mi,
|
|
16037
16112
|
errorPolicy: "all",
|
|
@@ -16042,7 +16117,7 @@ const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16042
16117
|
});
|
|
16043
16118
|
if (e.data.transactions.length !== 0)
|
|
16044
16119
|
return e.data.transactions[0];
|
|
16045
|
-
},
|
|
16120
|
+
}, zc = async (r, t) => {
|
|
16046
16121
|
var a;
|
|
16047
16122
|
return (a = (await b.getShadowGraphqlClient().query({
|
|
16048
16123
|
query: Di,
|
|
@@ -16052,7 +16127,7 @@ const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16052
16127
|
themeInstallId: t
|
|
16053
16128
|
}
|
|
16054
16129
|
})).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16055
|
-
},
|
|
16130
|
+
}, Gc = async (r) => {
|
|
16056
16131
|
var e, a, n;
|
|
16057
16132
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16058
16133
|
query: xi,
|
|
@@ -16061,7 +16136,7 @@ const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16061
16136
|
id: r
|
|
16062
16137
|
}
|
|
16063
16138
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16064
|
-
},
|
|
16139
|
+
}, Wc = async (r) => {
|
|
16065
16140
|
var e, a, n;
|
|
16066
16141
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16067
16142
|
query: Fi,
|
|
@@ -16071,7 +16146,7 @@ const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16071
16146
|
}
|
|
16072
16147
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16073
16148
|
};
|
|
16074
|
-
function
|
|
16149
|
+
function Bl(r, t, e, a) {
|
|
16075
16150
|
const n = e.width * r.zoom, i = e.height * r.zoom;
|
|
16076
16151
|
if (a) {
|
|
16077
16152
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
@@ -16085,7 +16160,7 @@ function Sl(r, t, e, a) {
|
|
|
16085
16160
|
function le(r, t, e) {
|
|
16086
16161
|
return Math.min(Math.max(r, t), e);
|
|
16087
16162
|
}
|
|
16088
|
-
class
|
|
16163
|
+
class bl {
|
|
16089
16164
|
constructor(t, e) {
|
|
16090
16165
|
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
|
|
16091
16166
|
useThreshold: !1,
|
|
@@ -16142,7 +16217,7 @@ class vl {
|
|
|
16142
16217
|
return;
|
|
16143
16218
|
}
|
|
16144
16219
|
t.forEach((e, a) => {
|
|
16145
|
-
const n =
|
|
16220
|
+
const n = Ut.get(e);
|
|
16146
16221
|
n && (this.frameData || (this.frameData = new Array(t.length)), this.frameData[a] = n);
|
|
16147
16222
|
});
|
|
16148
16223
|
}
|
|
@@ -16228,7 +16303,7 @@ class vl {
|
|
|
16228
16303
|
return;
|
|
16229
16304
|
}
|
|
16230
16305
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
16231
|
-
this.offsets[o] =
|
|
16306
|
+
this.offsets[o] = Bl(t[o], s, this.imageData, this.forceImageCover);
|
|
16232
16307
|
}), this._debouncedUpdateFrameOffsets(
|
|
16233
16308
|
this.offsets,
|
|
16234
16309
|
n,
|
|
@@ -16307,7 +16382,10 @@ class vl {
|
|
|
16307
16382
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
16308
16383
|
}
|
|
16309
16384
|
}
|
|
16310
|
-
class
|
|
16385
|
+
class jc {
|
|
16386
|
+
updateRecipient(t, e, a, n, i, s, o, l) {
|
|
16387
|
+
throw new Error("Method not implemented.");
|
|
16388
|
+
}
|
|
16311
16389
|
approveTransaction(t) {
|
|
16312
16390
|
throw new Error("Method not implemented.");
|
|
16313
16391
|
}
|
|
@@ -16466,12 +16544,12 @@ class zc {
|
|
|
16466
16544
|
return [];
|
|
16467
16545
|
}
|
|
16468
16546
|
}
|
|
16469
|
-
var
|
|
16470
|
-
class
|
|
16547
|
+
var Il = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(Il || {});
|
|
16548
|
+
class Dl extends it {
|
|
16471
16549
|
constructor(t, e, a) {
|
|
16472
16550
|
super(t, e, a);
|
|
16473
16551
|
const n = e.data;
|
|
16474
|
-
this.frameService = new
|
|
16552
|
+
this.frameService = new bl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
16475
16553
|
}
|
|
16476
16554
|
selectVariant(t) {
|
|
16477
16555
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -16535,7 +16613,7 @@ class Bl extends it {
|
|
|
16535
16613
|
const e = await this.getOriginalImageSelection();
|
|
16536
16614
|
if (!e)
|
|
16537
16615
|
throw new Error("You must supply an image selection before attempting to remove the background.");
|
|
16538
|
-
const a = await
|
|
16616
|
+
const a = await $.removeBackgroundFromAsset(e);
|
|
16539
16617
|
t && await Ct.selectImage(this.step, a, this.manager, !1);
|
|
16540
16618
|
const n = ((i = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : i.framePatternData) || {};
|
|
16541
16619
|
return this.manager.updateStorage(this.step.stepName, {
|
|
@@ -16594,13 +16672,13 @@ class Bl extends it {
|
|
|
16594
16672
|
var e, a;
|
|
16595
16673
|
const t = (a = (e = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : e.framePatternData) == null ? void 0 : a.originalAssetKey;
|
|
16596
16674
|
if (t)
|
|
16597
|
-
return
|
|
16675
|
+
return $.getLocalOrFromServer(t);
|
|
16598
16676
|
}
|
|
16599
16677
|
async getBackgroundRemovedImageSelection() {
|
|
16600
16678
|
var e, a;
|
|
16601
16679
|
const t = (a = (e = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : e.framePatternData) == null ? void 0 : a.backgroundRemovedAssetKey;
|
|
16602
16680
|
if (t)
|
|
16603
|
-
return
|
|
16681
|
+
return $.getLocalOrFromServer(t);
|
|
16604
16682
|
}
|
|
16605
16683
|
hasOriginalImageSelection() {
|
|
16606
16684
|
var t, e;
|
|
@@ -16640,7 +16718,7 @@ class Bl extends it {
|
|
|
16640
16718
|
return this.manager.getStepStorage(this.step.stepName);
|
|
16641
16719
|
}
|
|
16642
16720
|
}
|
|
16643
|
-
const
|
|
16721
|
+
const Pl = y`
|
|
16644
16722
|
query GetLoggedInCustomer($email: String!) {
|
|
16645
16723
|
customer(emailAddress: $email) {
|
|
16646
16724
|
id
|
|
@@ -16683,21 +16761,21 @@ const bl = y`
|
|
|
16683
16761
|
total
|
|
16684
16762
|
}
|
|
16685
16763
|
}
|
|
16686
|
-
`,
|
|
16764
|
+
`, Fl = y`
|
|
16687
16765
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
16688
16766
|
transactionUpdate(id: $id, designName: $name) {
|
|
16689
16767
|
id
|
|
16690
16768
|
designName
|
|
16691
16769
|
}
|
|
16692
16770
|
}
|
|
16693
|
-
`,
|
|
16771
|
+
`, xl = y`
|
|
16694
16772
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
16695
16773
|
transactionDuplicate(id: $id, template: $template) {
|
|
16696
16774
|
id
|
|
16697
16775
|
workflowViewerLink
|
|
16698
16776
|
}
|
|
16699
16777
|
}
|
|
16700
|
-
`,
|
|
16778
|
+
`, kl = y`
|
|
16701
16779
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
16702
16780
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
16703
16781
|
items {
|
|
@@ -16710,7 +16788,7 @@ const bl = y`
|
|
|
16710
16788
|
total
|
|
16711
16789
|
}
|
|
16712
16790
|
}
|
|
16713
|
-
`,
|
|
16791
|
+
`, Ml = y`
|
|
16714
16792
|
query GetTransactionsForBundle($id: String!) {
|
|
16715
16793
|
bundles(ids: [$id]) {
|
|
16716
16794
|
id
|
|
@@ -16731,21 +16809,21 @@ const bl = y`
|
|
|
16731
16809
|
}
|
|
16732
16810
|
}
|
|
16733
16811
|
}
|
|
16734
|
-
`,
|
|
16812
|
+
`, Tl = y`
|
|
16735
16813
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
16736
16814
|
bundleUpdate(id: $id, name: $name) {
|
|
16737
16815
|
id
|
|
16738
16816
|
name
|
|
16739
16817
|
}
|
|
16740
16818
|
}
|
|
16741
|
-
`,
|
|
16819
|
+
`, Nl = y`
|
|
16742
16820
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
16743
16821
|
bundleDuplicate(id: $id, template: $template) {
|
|
16744
16822
|
id
|
|
16745
16823
|
workflowViewerLink
|
|
16746
16824
|
}
|
|
16747
16825
|
}
|
|
16748
|
-
`,
|
|
16826
|
+
`, Ql = y`
|
|
16749
16827
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
16750
16828
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
16751
16829
|
items {
|
|
@@ -16758,43 +16836,43 @@ const bl = y`
|
|
|
16758
16836
|
total
|
|
16759
16837
|
}
|
|
16760
16838
|
}
|
|
16761
|
-
`,
|
|
16762
|
-
mutation:
|
|
16839
|
+
`, Hc = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
|
|
16840
|
+
mutation: Tl,
|
|
16763
16841
|
errorPolicy: "all",
|
|
16764
16842
|
variables: {
|
|
16765
16843
|
id: r,
|
|
16766
16844
|
name: t
|
|
16767
16845
|
},
|
|
16768
16846
|
context: e
|
|
16769
|
-
}),
|
|
16770
|
-
mutation:
|
|
16847
|
+
}), qc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16848
|
+
mutation: Fl,
|
|
16771
16849
|
errorPolicy: "all",
|
|
16772
16850
|
variables: {
|
|
16773
16851
|
id: r,
|
|
16774
16852
|
name: t
|
|
16775
16853
|
}
|
|
16776
|
-
}),
|
|
16777
|
-
mutation:
|
|
16854
|
+
}), Yc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16855
|
+
mutation: Nl,
|
|
16778
16856
|
errorPolicy: "all",
|
|
16779
16857
|
variables: {
|
|
16780
16858
|
id: r,
|
|
16781
16859
|
template: t
|
|
16782
16860
|
}
|
|
16783
|
-
}),
|
|
16784
|
-
mutation:
|
|
16861
|
+
}), Jc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16862
|
+
mutation: xl,
|
|
16785
16863
|
errorPolicy: "all",
|
|
16786
16864
|
variables: {
|
|
16787
16865
|
id: r,
|
|
16788
16866
|
template: t
|
|
16789
16867
|
}
|
|
16790
|
-
}),
|
|
16791
|
-
query:
|
|
16868
|
+
}), Kc = async (r) => (await b.getShadowGraphqlClient().query({
|
|
16869
|
+
query: Pl,
|
|
16792
16870
|
errorPolicy: "all",
|
|
16793
16871
|
variables: {
|
|
16794
16872
|
email: r
|
|
16795
16873
|
}
|
|
16796
|
-
})).data.customer,
|
|
16797
|
-
query:
|
|
16874
|
+
})).data.customer, _c = async (r, t, e) => await b.getShadowGraphqlClient().query({
|
|
16875
|
+
query: kl,
|
|
16798
16876
|
errorPolicy: "all",
|
|
16799
16877
|
fetchPolicy: "no-cache",
|
|
16800
16878
|
variables: {
|
|
@@ -16802,15 +16880,15 @@ const bl = y`
|
|
|
16802
16880
|
offset: e,
|
|
16803
16881
|
limit: t
|
|
16804
16882
|
}
|
|
16805
|
-
}),
|
|
16806
|
-
query:
|
|
16883
|
+
}), Xc = async (r, t) => await b.getShadowGraphqlClient().query({
|
|
16884
|
+
query: Ml,
|
|
16807
16885
|
errorPolicy: "all",
|
|
16808
16886
|
fetchPolicy: "no-cache",
|
|
16809
16887
|
variables: {
|
|
16810
16888
|
id: r
|
|
16811
16889
|
},
|
|
16812
16890
|
context: t
|
|
16813
|
-
}),
|
|
16891
|
+
}), Zc = async (r, t, e) => {
|
|
16814
16892
|
var n;
|
|
16815
16893
|
const a = await b.getShadowGraphqlClient().query({
|
|
16816
16894
|
query: Ia,
|
|
@@ -16834,7 +16912,7 @@ const bl = y`
|
|
|
16834
16912
|
}
|
|
16835
16913
|
});
|
|
16836
16914
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16837
|
-
},
|
|
16915
|
+
}, td = async (r, t, e) => {
|
|
16838
16916
|
var n;
|
|
16839
16917
|
const a = await b.getShadowGraphqlClient().query({
|
|
16840
16918
|
query: Ia,
|
|
@@ -16858,7 +16936,7 @@ const bl = y`
|
|
|
16858
16936
|
}
|
|
16859
16937
|
});
|
|
16860
16938
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16861
|
-
},
|
|
16939
|
+
}, ed = async (r, t, e) => {
|
|
16862
16940
|
var n;
|
|
16863
16941
|
const a = await b.getShadowGraphqlClient().query({
|
|
16864
16942
|
query: Ia,
|
|
@@ -16878,10 +16956,10 @@ const bl = y`
|
|
|
16878
16956
|
}
|
|
16879
16957
|
});
|
|
16880
16958
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16881
|
-
},
|
|
16959
|
+
}, ad = async (r, t, e) => {
|
|
16882
16960
|
var n;
|
|
16883
16961
|
const a = await b.getShadowGraphqlClient().query({
|
|
16884
|
-
query:
|
|
16962
|
+
query: Ql,
|
|
16885
16963
|
errorPolicy: "all",
|
|
16886
16964
|
fetchPolicy: "no-cache",
|
|
16887
16965
|
variables: {
|
|
@@ -16902,7 +16980,7 @@ const bl = y`
|
|
|
16902
16980
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
16903
16981
|
}
|
|
16904
16982
|
})();
|
|
16905
|
-
var
|
|
16983
|
+
var Rl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Rl || {}), Ol = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(Ol || {}), K;
|
|
16906
16984
|
K = { __e: function(r, t, e, a) {
|
|
16907
16985
|
for (var n, i, s; t = t.__; )
|
|
16908
16986
|
if ((n = t.__c) && !n.__)
|
|
@@ -16915,7 +16993,7 @@ K = { __e: function(r, t, e, a) {
|
|
|
16915
16993
|
throw r;
|
|
16916
16994
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
16917
16995
|
var ot, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
|
|
16918
|
-
function
|
|
16996
|
+
function $l() {
|
|
16919
16997
|
for (var r; r = tr.shift(); )
|
|
16920
16998
|
if (r.__P && r.__H)
|
|
16921
16999
|
try {
|
|
@@ -16935,7 +17013,7 @@ K.__b = function(r) {
|
|
|
16935
17013
|
}, K.diffed = function(r) {
|
|
16936
17014
|
Xa && Xa(r);
|
|
16937
17015
|
var t = r.__c;
|
|
16938
|
-
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) ||
|
|
17016
|
+
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Ul)($l)), t.__H.__.forEach(function(e) {
|
|
16939
17017
|
e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
|
|
16940
17018
|
})), qe = ot = null;
|
|
16941
17019
|
}, K.__c = function(r, t) {
|
|
@@ -16962,7 +17040,7 @@ K.__b = function(r) {
|
|
|
16962
17040
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
16963
17041
|
};
|
|
16964
17042
|
var en = typeof requestAnimationFrame == "function";
|
|
16965
|
-
function
|
|
17043
|
+
function Ul(r) {
|
|
16966
17044
|
var t, e = function() {
|
|
16967
17045
|
clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
|
|
16968
17046
|
}, a = setTimeout(e, 100);
|
|
@@ -16978,161 +17056,161 @@ function la(r) {
|
|
|
16978
17056
|
}
|
|
16979
17057
|
export {
|
|
16980
17058
|
da as AddonHandle,
|
|
16981
|
-
|
|
17059
|
+
$c as ArrayInput,
|
|
16982
17060
|
et as AspectType,
|
|
16983
17061
|
yt as AssetNotFoundError,
|
|
16984
17062
|
he as AssetType,
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
17063
|
+
Tc as BringForwardCommand,
|
|
17064
|
+
Mc as BringToBackCommand,
|
|
17065
|
+
kc as BringToFrontCommand,
|
|
16988
17066
|
mr as BundleDesignCreationCartAddMode,
|
|
16989
17067
|
R as CanvasCommand,
|
|
16990
17068
|
se as CollectionProduct,
|
|
16991
17069
|
Ha as ColorOptionGlobalPropertyHandle,
|
|
16992
17070
|
_i as CommandContext,
|
|
16993
|
-
|
|
16994
|
-
|
|
17071
|
+
Ol as ConversionDataType,
|
|
17072
|
+
Rl as ConversionLocation,
|
|
16995
17073
|
W as CreateElementCommand,
|
|
16996
|
-
|
|
17074
|
+
$n as CreateLayoutCommand,
|
|
16997
17075
|
vt as DeleteElementCommand,
|
|
16998
|
-
|
|
16999
|
-
|
|
17076
|
+
go as DigitalContentStepHandle,
|
|
17077
|
+
qo as FileUploadGlobalPropertyHandle,
|
|
17000
17078
|
oe as FlowExecutionNodeResult,
|
|
17001
|
-
|
|
17002
|
-
|
|
17079
|
+
ul as FlowExecutionResult,
|
|
17080
|
+
Al as FlowService,
|
|
17003
17081
|
es as FontAlignmentCommand,
|
|
17004
17082
|
Zi as FontColorCommand,
|
|
17005
17083
|
ts as FontSizeCommand,
|
|
17006
17084
|
Va as FontSourceCommand,
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17085
|
+
bl as FrameService,
|
|
17086
|
+
Il as FrameStep,
|
|
17087
|
+
Dl as FrameStepHandle,
|
|
17010
17088
|
Ba as GlobalPropertyHandle,
|
|
17011
17089
|
O as GroupCommand,
|
|
17012
|
-
|
|
17090
|
+
so as IllustrationStepHandle,
|
|
17013
17091
|
Me as InformationMessageType,
|
|
17014
|
-
|
|
17092
|
+
mo as InformationStepHandle,
|
|
17015
17093
|
qa as IntegrationProduct,
|
|
17016
17094
|
fr as IntegrationType,
|
|
17017
|
-
|
|
17095
|
+
Ic as LayoutElementFactory,
|
|
17018
17096
|
T as LayoutElementType,
|
|
17019
17097
|
Y as LayoutNotFoundError,
|
|
17020
17098
|
Gt as LayoutRenderingPurpose,
|
|
17021
|
-
|
|
17099
|
+
oo as MaterialStepHandle,
|
|
17022
17100
|
fe as MisconfigurationError,
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17101
|
+
jc as MockWorkflowManager,
|
|
17102
|
+
lo as ModelStepHandle,
|
|
17103
|
+
fo as ModuleStepHandle,
|
|
17104
|
+
Dc as MoveCommand,
|
|
17027
17105
|
Xn as ObjectInput,
|
|
17028
|
-
|
|
17106
|
+
hl as ObjectInputType,
|
|
17029
17107
|
_n as OptionGlobalPropertyHandle,
|
|
17030
17108
|
ge as OptionNotFoundError,
|
|
17031
17109
|
Dt as ParseError,
|
|
17032
|
-
|
|
17110
|
+
co as PictureStepHandle,
|
|
17033
17111
|
pr as ProductCameraRig,
|
|
17034
|
-
|
|
17035
|
-
|
|
17112
|
+
nl as ProductCollection,
|
|
17113
|
+
al as ProductCollectionProductSortKey,
|
|
17036
17114
|
zt as ProductWorkflow,
|
|
17037
17115
|
Ht as PromiseCache,
|
|
17038
17116
|
Pn as PromiseQueue,
|
|
17039
|
-
|
|
17117
|
+
Ao as QuestionStepHandle,
|
|
17040
17118
|
Dn as QueueablePromise,
|
|
17041
|
-
|
|
17119
|
+
Fc as ResizeCommand,
|
|
17042
17120
|
Wt as ResourceNotFoundError,
|
|
17043
|
-
|
|
17121
|
+
Pc as RotateCommand,
|
|
17044
17122
|
H as ScaleAxis,
|
|
17045
|
-
|
|
17046
|
-
|
|
17123
|
+
Nc as SendBackwardsCommand,
|
|
17124
|
+
uo as ShapeStepHandle,
|
|
17047
17125
|
gr as ShareActionType,
|
|
17048
|
-
|
|
17126
|
+
Lc as SpiffCommerceClient,
|
|
17049
17127
|
me as StakeholderType,
|
|
17050
17128
|
hr as StepAspectType,
|
|
17051
17129
|
it as StepHandle,
|
|
17052
17130
|
D as StepType,
|
|
17053
17131
|
kt as TextAlgorithm,
|
|
17054
17132
|
rs as TextChangeCommand,
|
|
17055
|
-
|
|
17056
|
-
|
|
17057
|
-
|
|
17058
|
-
|
|
17059
|
-
|
|
17133
|
+
Yo as TextGlobalPropertyHandle,
|
|
17134
|
+
Oc as TextInput,
|
|
17135
|
+
ho as TextStepHandle,
|
|
17136
|
+
il as Transform,
|
|
17137
|
+
rl as TransformCollection,
|
|
17060
17138
|
z as UnhandledBehaviorError,
|
|
17061
17139
|
Cr as UnitOfMeasurement,
|
|
17062
|
-
|
|
17140
|
+
xc as UpdateImageSourceCommand,
|
|
17063
17141
|
st as Variant,
|
|
17064
|
-
|
|
17065
|
-
|
|
17066
|
-
|
|
17142
|
+
Po as WorkflowExperienceEventType,
|
|
17143
|
+
Fo as WorkflowExperienceImpl,
|
|
17144
|
+
$ as assetService,
|
|
17067
17145
|
Gr as browserColorToHex,
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17146
|
+
Bc as cmPerPixel,
|
|
17147
|
+
vo as createDesign,
|
|
17148
|
+
Sc as currentDirection,
|
|
17149
|
+
cc as dataUrlFromExternalUrl,
|
|
17072
17150
|
je as designService,
|
|
17073
17151
|
Ae as determineCorrectFontSizeAndLines,
|
|
17074
17152
|
Ln as digitalContentStepService,
|
|
17075
17153
|
dt as domParser,
|
|
17076
|
-
|
|
17077
|
-
|
|
17154
|
+
Yc as duplicateBundle,
|
|
17155
|
+
Jc as duplicateTransaction,
|
|
17078
17156
|
at as fetchAsString,
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17157
|
+
mc as findAngle,
|
|
17158
|
+
U as findElement,
|
|
17159
|
+
uc as findPmsColors,
|
|
17160
|
+
Ut as frameDataCache,
|
|
17083
17161
|
Ct as frameStepService,
|
|
17084
|
-
|
|
17085
|
-
|
|
17162
|
+
N as generate,
|
|
17163
|
+
Lo as generateCommands,
|
|
17086
17164
|
lt as generateSVGWithUnknownColors,
|
|
17087
|
-
|
|
17165
|
+
Rc as generateStateFromDesignInputSteps,
|
|
17088
17166
|
De as getAttributesFromArrayBuffer,
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
|
|
17167
|
+
hc as getAxisAlignedBoundingBox,
|
|
17168
|
+
Bl as getBoundedOffsets,
|
|
17169
|
+
Gc as getBundleThemeConfiguration,
|
|
17170
|
+
Kc as getCustomer,
|
|
17171
|
+
_c as getCustomerBundles,
|
|
17172
|
+
vc as getElementVertices,
|
|
17095
17173
|
xe as getFrameData,
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17174
|
+
El as getIntegration,
|
|
17175
|
+
wc as getNEPoint,
|
|
17176
|
+
Cc as getNWPoint,
|
|
17177
|
+
td as getOrderedTransactions,
|
|
17178
|
+
zc as getOverrideThemeConfiguration,
|
|
17179
|
+
pc as getPointOfRotation,
|
|
17180
|
+
yc as getSEPoint,
|
|
17103
17181
|
wa as getSvgElement,
|
|
17104
|
-
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17182
|
+
ad as getTemplateBundles,
|
|
17183
|
+
ed as getTemplateTransactions,
|
|
17184
|
+
Vc as getTransaction,
|
|
17185
|
+
Wc as getTransactionThemeConfiguration,
|
|
17186
|
+
Xc as getTransactionsForBundle,
|
|
17187
|
+
fc as getTrueCoordinates,
|
|
17188
|
+
Zc as getUnorderedTransactions,
|
|
17189
|
+
Uc as getWorkflow,
|
|
17112
17190
|
Zn as getWorkflows,
|
|
17113
17191
|
b as graphQlManager,
|
|
17114
17192
|
de as illustrationStepService,
|
|
17115
|
-
|
|
17193
|
+
gc as isCloseToValue,
|
|
17116
17194
|
Tt as loadFont,
|
|
17117
|
-
|
|
17195
|
+
Ac as matchHexToPms,
|
|
17118
17196
|
Vn as materialStepService,
|
|
17119
|
-
|
|
17120
|
-
|
|
17197
|
+
el as metafieldManager,
|
|
17198
|
+
Ec as mmPerPixel,
|
|
17121
17199
|
zn as modelStepService,
|
|
17122
17200
|
fa as modifySVGColors,
|
|
17123
17201
|
Gn as moduleStepService,
|
|
17124
|
-
|
|
17125
|
-
|
|
17202
|
+
Hc as nameBundle,
|
|
17203
|
+
qc as nameTransaction,
|
|
17126
17204
|
X as optionService,
|
|
17127
|
-
|
|
17205
|
+
bc as outlineFontsInSvg,
|
|
17128
17206
|
At as patternImageDataCache,
|
|
17129
17207
|
k as persistenceService,
|
|
17130
17208
|
Wn as pictureStepService,
|
|
17131
|
-
|
|
17209
|
+
dc as pmsToRgb,
|
|
17132
17210
|
jn as questionStepService,
|
|
17133
|
-
|
|
17134
|
-
|
|
17135
|
-
|
|
17211
|
+
lc as registerFetchImplementation,
|
|
17212
|
+
oc as registerWindowImplementation,
|
|
17213
|
+
Ua as rehydrateSerializedLayout,
|
|
17136
17214
|
Lr as rgbToPms,
|
|
17137
17215
|
re as rotateAroundPoint,
|
|
17138
17216
|
ma as sanitizeSvgTree,
|
|
@@ -17141,8 +17219,8 @@ export {
|
|
|
17141
17219
|
Lt as shapeStepService,
|
|
17142
17220
|
ss as shortenUrl,
|
|
17143
17221
|
mt as spiffCoreConfiguration,
|
|
17144
|
-
|
|
17145
|
-
|
|
17222
|
+
Qc as stepAspectValuesToDesignInputSteps,
|
|
17223
|
+
Na as svgColorValueToDefinition,
|
|
17146
17224
|
Rn as svgStringDimensions,
|
|
17147
17225
|
Aa as svgToDataUrl,
|
|
17148
17226
|
q as textStepService,
|