@spiffcommerce/core 26.27.1 → 26.28.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 +8 -3
- package/dist/index.js +122 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +313 -291
- 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 rc(r) {
|
|
162
162
|
_e = r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ic(r) {
|
|
165
165
|
Xe = r;
|
|
166
166
|
}
|
|
167
167
|
function Jt() {
|
|
@@ -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
|
+
}, sc = 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) => {
|
|
@@ -418,7 +418,7 @@ const Rr = (r) => new Promise((t) => {
|
|
|
418
418
|
}, Ur = (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
|
+
}, $r = async (r) => {
|
|
422
422
|
var A;
|
|
423
423
|
const t = await Dr(r), e = await Kt(t), [a, n] = Ur(e);
|
|
424
424
|
if (!await Or()) {
|
|
@@ -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 $r(r);
|
|
455
455
|
return Ie(r) === "image/jpeg" ? {
|
|
456
456
|
dataUrl: t.toDataURL("image/jpeg", 1),
|
|
457
457
|
height: t.height,
|
|
@@ -3150,16 +3150,16 @@ 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 oc(r) {
|
|
3154
3154
|
const t = jt.indexOf(r);
|
|
3155
3155
|
return t >= 0 ? Ft[t] : "";
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3157
|
+
function Lr(r) {
|
|
3158
3158
|
const t = Ft.indexOf(r);
|
|
3159
3159
|
return t >= 0 ? jt[t] : "";
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3162
|
-
const e = [], a = [], n =
|
|
3161
|
+
function lc(r, t = 64) {
|
|
3162
|
+
const e = [], a = [], n = Lr(r);
|
|
3163
3163
|
n && e.push({
|
|
3164
3164
|
pms: n,
|
|
3165
3165
|
hex: r,
|
|
@@ -3177,7 +3177,7 @@ function oc(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 cc(r, t) {
|
|
3181
3181
|
return zr.search(r, t ? { limit: t } : void 0);
|
|
3182
3182
|
}
|
|
3183
3183
|
let Qt = null;
|
|
@@ -5379,7 +5379,7 @@ const Q = () => {
|
|
|
5379
5379
|
]
|
|
5380
5380
|
}
|
|
5381
5381
|
);
|
|
5382
|
-
},
|
|
5382
|
+
}, dc = (r, t, e, a, n) => {
|
|
5383
5383
|
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
5384
|
return {
|
|
5385
5385
|
minX: l - v,
|
|
@@ -5387,25 +5387,25 @@ const Q = () => {
|
|
|
5387
5387
|
minY: c - S,
|
|
5388
5388
|
maxY: c + S
|
|
5389
5389
|
};
|
|
5390
|
-
},
|
|
5390
|
+
}, Ac = (r, t, e) => {
|
|
5391
5391
|
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
5392
|
return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
|
|
5393
|
-
}, ft = (r) => r * (Math.PI / 180),
|
|
5393
|
+
}, ft = (r) => r * (Math.PI / 180), uc = (r, t, e) => Math.abs(r - t) < e, hc = (r, t, e) => {
|
|
5394
5394
|
const a = Math.sin(ft(e)), n = Math.cos(ft(e));
|
|
5395
5395
|
return {
|
|
5396
5396
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5397
5397
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5398
5398
|
};
|
|
5399
|
-
},
|
|
5399
|
+
}, mc = (r, t) => ({
|
|
5400
5400
|
x: (r.x + t.x) / 2,
|
|
5401
5401
|
y: (r.y + t.y) / 2
|
|
5402
|
-
}),
|
|
5402
|
+
}), gc = (r, t, e, a) => ({
|
|
5403
5403
|
x: r.x + (t == null ? void 0 : t.x) * e,
|
|
5404
5404
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5405
|
-
}),
|
|
5405
|
+
}), fc = (r, t, e, a) => ({
|
|
5406
5406
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5407
5407
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5408
|
-
}),
|
|
5408
|
+
}), pc = (r, t, e, a) => ({
|
|
5409
5409
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5410
5410
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5411
5411
|
}), bt = (r) => {
|
|
@@ -5427,7 +5427,7 @@ const Q = () => {
|
|
|
5427
5427
|
case H.Southwest:
|
|
5428
5428
|
return H.Northwest;
|
|
5429
5429
|
}
|
|
5430
|
-
},
|
|
5430
|
+
}, Cc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, wc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5431
5431
|
const a = ft(r.rotation), n = {
|
|
5432
5432
|
x: t.x + r.x * e.x,
|
|
5433
5433
|
y: t.x + r.y * e.y
|
|
@@ -5457,7 +5457,7 @@ const Q = () => {
|
|
|
5457
5457
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5458
5458
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5459
5459
|
};
|
|
5460
|
-
},
|
|
5460
|
+
}, yc = 0.352778, Sc = 0.035277, Fn = (r) => {
|
|
5461
5461
|
const t = r.rotation || 0, e = ft(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5462
5462
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5463
5463
|
"g",
|
|
@@ -5654,14 +5654,14 @@ class Ui {
|
|
|
5654
5654
|
}), a - n;
|
|
5655
5655
|
}
|
|
5656
5656
|
}
|
|
5657
|
-
const
|
|
5657
|
+
const $i = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @__PURE__ */ new Map(), Tt = async (r) => {
|
|
5658
5658
|
if (Oe.has(r))
|
|
5659
5659
|
return Oe.get(r);
|
|
5660
5660
|
const e = (async () => {
|
|
5661
5661
|
try {
|
|
5662
5662
|
return St(r).getFont();
|
|
5663
5663
|
} catch {
|
|
5664
|
-
if (
|
|
5664
|
+
if ($i(r)) {
|
|
5665
5665
|
const a = An(r), n = Je(a);
|
|
5666
5666
|
return aa(r, n), n;
|
|
5667
5667
|
} else {
|
|
@@ -5671,7 +5671,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5671
5671
|
}
|
|
5672
5672
|
})();
|
|
5673
5673
|
return Oe.set(r, e), e;
|
|
5674
|
-
},
|
|
5674
|
+
}, Li = (r) => {
|
|
5675
5675
|
const t = An(r), e = Je(t);
|
|
5676
5676
|
return aa(r, e), e;
|
|
5677
5677
|
}, St = (r) => {
|
|
@@ -5682,7 +5682,7 @@ const Li = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5682
5682
|
}, aa = (r, t) => {
|
|
5683
5683
|
const e = new Ui(t);
|
|
5684
5684
|
return kn.set(r, e), e;
|
|
5685
|
-
},
|
|
5685
|
+
}, vc = async (r) => {
|
|
5686
5686
|
const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5687
5687
|
a.querySelectorAll("style").forEach((d) => {
|
|
5688
5688
|
var u;
|
|
@@ -6144,7 +6144,7 @@ const Zt = (r) => {
|
|
|
6144
6144
|
if (r.defaultVariant !== void 0)
|
|
6145
6145
|
return t.find((e) => e.id === r.defaultVariant);
|
|
6146
6146
|
}
|
|
6147
|
-
}, At = /* @__PURE__ */ new Map(),
|
|
6147
|
+
}, At = /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map(), Nn = async (r, t) => {
|
|
6148
6148
|
if (!t) {
|
|
6149
6149
|
if (!r)
|
|
6150
6150
|
throw new Error("No region or src supplied. Cannot construct frame!");
|
|
@@ -6168,11 +6168,11 @@ const Zt = (r) => {
|
|
|
6168
6168
|
throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
|
|
6169
6169
|
return e;
|
|
6170
6170
|
}, xe = async (r) => {
|
|
6171
|
-
if (
|
|
6172
|
-
return
|
|
6171
|
+
if ($e.has(r))
|
|
6172
|
+
return $e.get(r);
|
|
6173
6173
|
const e = (async () => {
|
|
6174
|
-
if (
|
|
6175
|
-
return
|
|
6174
|
+
if ($t.has(r))
|
|
6175
|
+
return $t.get(r);
|
|
6176
6176
|
await new Promise((u) => setTimeout(u, 0));
|
|
6177
6177
|
const n = dt().parseFromString(r, "image/svg+xml"), i = n.querySelector("svg");
|
|
6178
6178
|
if (!i)
|
|
@@ -6190,7 +6190,7 @@ const Zt = (r) => {
|
|
|
6190
6190
|
width: c,
|
|
6191
6191
|
height: l
|
|
6192
6192
|
};
|
|
6193
|
-
return
|
|
6193
|
+
return $t.set(u, h), h;
|
|
6194
6194
|
}
|
|
6195
6195
|
if (A) {
|
|
6196
6196
|
const u = A.getAttribute("d");
|
|
@@ -6201,11 +6201,11 @@ const Zt = (r) => {
|
|
|
6201
6201
|
width: c,
|
|
6202
6202
|
height: l
|
|
6203
6203
|
};
|
|
6204
|
-
return
|
|
6204
|
+
return $t.set(u, h), h;
|
|
6205
6205
|
}
|
|
6206
6206
|
throw new Error("Malformed frame SVG");
|
|
6207
6207
|
})();
|
|
6208
|
-
return
|
|
6208
|
+
return $e.set(r, e), e;
|
|
6209
6209
|
}, Sa = (r, t, e, a) => {
|
|
6210
6210
|
const n = t.width / t.height, i = r.width / r.height;
|
|
6211
6211
|
let s;
|
|
@@ -6267,9 +6267,9 @@ const Zt = (r) => {
|
|
|
6267
6267
|
at(r).then((e) => {
|
|
6268
6268
|
t(e);
|
|
6269
6269
|
}).catch((e) => console.error(e));
|
|
6270
|
-
}),
|
|
6271
|
-
if (
|
|
6272
|
-
return
|
|
6270
|
+
}), Le = /* @__PURE__ */ new Map(), qt = async (r) => {
|
|
6271
|
+
if (Le.has(r))
|
|
6272
|
+
return Le.get(r);
|
|
6273
6273
|
const t = async (n) => new Promise((i, s) => {
|
|
6274
6274
|
try {
|
|
6275
6275
|
if (!(!!URL && !!URL.createObjectURL))
|
|
@@ -6301,7 +6301,7 @@ const Zt = (r) => {
|
|
|
6301
6301
|
A.resize(m, m);
|
|
6302
6302
|
return await A.render(), await t(c);
|
|
6303
6303
|
})();
|
|
6304
|
-
return
|
|
6304
|
+
return Le.set(r, a), a;
|
|
6305
6305
|
}, Ut = async (r, t, e, a) => {
|
|
6306
6306
|
const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
|
|
6307
6307
|
width: r.layoutState.layout.width,
|
|
@@ -6334,7 +6334,7 @@ const Zt = (r) => {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
return o;
|
|
6336
6336
|
};
|
|
6337
|
-
class
|
|
6337
|
+
class Ec {
|
|
6338
6338
|
static async getFrame(t, e) {
|
|
6339
6339
|
const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
|
|
6340
6340
|
return {
|
|
@@ -6490,15 +6490,15 @@ class vc {
|
|
|
6490
6490
|
};
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
|
-
class
|
|
6493
|
+
class L extends Error {
|
|
6494
6494
|
constructor() {
|
|
6495
|
-
super("Element not found!"), Object.setPrototypeOf(this,
|
|
6495
|
+
super("Element not found!"), Object.setPrototypeOf(this, L.prototype);
|
|
6496
6496
|
}
|
|
6497
6497
|
}
|
|
6498
|
-
const
|
|
6498
|
+
const $ = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
6499
6499
|
const e = Object.values(t).find((a) => a.elements.some((n) => n.id === r));
|
|
6500
6500
|
if (!e)
|
|
6501
|
-
throw new
|
|
6501
|
+
throw new L();
|
|
6502
6502
|
return e;
|
|
6503
6503
|
}, Z = (r, t) => {
|
|
6504
6504
|
const e = [...t.elements.filter((n) => n.id !== r.id), r], a = ya(e);
|
|
@@ -6507,7 +6507,7 @@ const L = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
|
6507
6507
|
elements: a,
|
|
6508
6508
|
modificationID: Q()
|
|
6509
6509
|
};
|
|
6510
|
-
},
|
|
6510
|
+
}, $a = async (r) => {
|
|
6511
6511
|
var a;
|
|
6512
6512
|
const t = [...Object.keys(r.layouts)], e = [...new Set(t)];
|
|
6513
6513
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -6569,7 +6569,7 @@ class R {
|
|
|
6569
6569
|
this.oldState = t;
|
|
6570
6570
|
}
|
|
6571
6571
|
}
|
|
6572
|
-
class
|
|
6572
|
+
class La extends R {
|
|
6573
6573
|
constructor(t) {
|
|
6574
6574
|
super(), this.serializableWorkflow = t;
|
|
6575
6575
|
}
|
|
@@ -6580,15 +6580,15 @@ class $a extends R {
|
|
|
6580
6580
|
};
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
|
-
class
|
|
6583
|
+
class Bc extends R {
|
|
6584
6584
|
constructor(t, e, a) {
|
|
6585
6585
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6586
6586
|
}
|
|
6587
6587
|
apply(t) {
|
|
6588
6588
|
this.oldState = t;
|
|
6589
|
-
const e =
|
|
6589
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6590
6590
|
if (!e.id)
|
|
6591
|
-
throw new
|
|
6591
|
+
throw new L();
|
|
6592
6592
|
const a = {
|
|
6593
6593
|
...e,
|
|
6594
6594
|
x: this.x,
|
|
@@ -6603,15 +6603,15 @@ class Ec extends R {
|
|
|
6603
6603
|
};
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
|
-
class
|
|
6606
|
+
class bc extends R {
|
|
6607
6607
|
constructor(t, e) {
|
|
6608
6608
|
super(), this.id = t, this.angle = e;
|
|
6609
6609
|
}
|
|
6610
6610
|
apply(t) {
|
|
6611
6611
|
this.oldState = t;
|
|
6612
|
-
const e =
|
|
6612
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6613
6613
|
if (!e.id)
|
|
6614
|
-
throw new
|
|
6614
|
+
throw new L();
|
|
6615
6615
|
const a = {
|
|
6616
6616
|
...e,
|
|
6617
6617
|
rotation: this.angle
|
|
@@ -6625,15 +6625,15 @@ class Bc extends R {
|
|
|
6625
6625
|
};
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
|
-
class
|
|
6628
|
+
class Ic extends R {
|
|
6629
6629
|
constructor(t, e, a) {
|
|
6630
6630
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6631
6631
|
}
|
|
6632
6632
|
apply(t) {
|
|
6633
6633
|
this.oldState = t;
|
|
6634
|
-
const e =
|
|
6634
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6635
6635
|
if (!e.id)
|
|
6636
|
-
throw new
|
|
6636
|
+
throw new L();
|
|
6637
6637
|
let a = {
|
|
6638
6638
|
...e,
|
|
6639
6639
|
width: this.width,
|
|
@@ -6770,9 +6770,9 @@ class Zi extends R {
|
|
|
6770
6770
|
}
|
|
6771
6771
|
apply(t) {
|
|
6772
6772
|
this.oldState = t;
|
|
6773
|
-
const e =
|
|
6773
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6774
6774
|
if (!e.id)
|
|
6775
|
-
throw new
|
|
6775
|
+
throw new L();
|
|
6776
6776
|
const a = {
|
|
6777
6777
|
...e,
|
|
6778
6778
|
fill: this.color,
|
|
@@ -6794,9 +6794,9 @@ class Ve extends R {
|
|
|
6794
6794
|
}
|
|
6795
6795
|
apply(t) {
|
|
6796
6796
|
this.oldState = t;
|
|
6797
|
-
const e =
|
|
6797
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6798
6798
|
if (!e.id)
|
|
6799
|
-
throw new
|
|
6799
|
+
throw new L();
|
|
6800
6800
|
const a = {
|
|
6801
6801
|
...e,
|
|
6802
6802
|
textFillImage: this.imageFill
|
|
@@ -6816,9 +6816,9 @@ class ts extends R {
|
|
|
6816
6816
|
}
|
|
6817
6817
|
apply(t) {
|
|
6818
6818
|
this.oldState = t;
|
|
6819
|
-
const e =
|
|
6819
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6820
6820
|
if (!e.id)
|
|
6821
|
-
throw new
|
|
6821
|
+
throw new L();
|
|
6822
6822
|
const a = {
|
|
6823
6823
|
...e,
|
|
6824
6824
|
fontSize: this.size
|
|
@@ -6838,9 +6838,9 @@ class Va extends R {
|
|
|
6838
6838
|
}
|
|
6839
6839
|
apply(t) {
|
|
6840
6840
|
this.oldState = t;
|
|
6841
|
-
const e =
|
|
6841
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6842
6842
|
if (!e.id)
|
|
6843
|
-
throw new
|
|
6843
|
+
throw new L();
|
|
6844
6844
|
const a = {
|
|
6845
6845
|
...e,
|
|
6846
6846
|
fontData: this.fontData
|
|
@@ -6860,9 +6860,9 @@ class es extends R {
|
|
|
6860
6860
|
}
|
|
6861
6861
|
apply(t) {
|
|
6862
6862
|
this.oldState = t;
|
|
6863
|
-
const e =
|
|
6863
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6864
6864
|
if (!e.id)
|
|
6865
|
-
throw new
|
|
6865
|
+
throw new L();
|
|
6866
6866
|
const a = {
|
|
6867
6867
|
...e,
|
|
6868
6868
|
align: this.align
|
|
@@ -6918,9 +6918,9 @@ class ns extends R {
|
|
|
6918
6918
|
}
|
|
6919
6919
|
apply(t) {
|
|
6920
6920
|
this.oldState = t;
|
|
6921
|
-
const e =
|
|
6921
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6922
6922
|
if (!e.id)
|
|
6923
|
-
throw new
|
|
6923
|
+
throw new L();
|
|
6924
6924
|
const a = {
|
|
6925
6925
|
...e,
|
|
6926
6926
|
useThreshold: this.useThreshold,
|
|
@@ -6937,15 +6937,15 @@ class ns extends R {
|
|
|
6937
6937
|
};
|
|
6938
6938
|
}
|
|
6939
6939
|
}
|
|
6940
|
-
class
|
|
6940
|
+
class Dc extends R {
|
|
6941
6941
|
constructor(t, e) {
|
|
6942
6942
|
super(), this.id = t, this.src = e;
|
|
6943
6943
|
}
|
|
6944
6944
|
apply(t) {
|
|
6945
6945
|
this.oldState = t;
|
|
6946
|
-
const e =
|
|
6946
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6947
6947
|
if (!e.id)
|
|
6948
|
-
throw new
|
|
6948
|
+
throw new L();
|
|
6949
6949
|
const a = {
|
|
6950
6950
|
...e,
|
|
6951
6951
|
src: this.src
|
|
@@ -6965,9 +6965,9 @@ class rs extends R {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
apply(t) {
|
|
6967
6967
|
this.oldState = t;
|
|
6968
|
-
const e =
|
|
6968
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6969
6969
|
if (!e.id)
|
|
6970
|
-
throw new
|
|
6970
|
+
throw new L();
|
|
6971
6971
|
const a = _(e.id, Object.values(t.layouts)), n = Z(Xt(e, this.text, e), a);
|
|
6972
6972
|
return {
|
|
6973
6973
|
...t,
|
|
@@ -6984,9 +6984,9 @@ class ze extends R {
|
|
|
6984
6984
|
}
|
|
6985
6985
|
apply(t) {
|
|
6986
6986
|
this.oldState = t;
|
|
6987
|
-
const e =
|
|
6987
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6988
6988
|
if (!e.id)
|
|
6989
|
-
throw new
|
|
6989
|
+
throw new L();
|
|
6990
6990
|
const a = {
|
|
6991
6991
|
...e,
|
|
6992
6992
|
strokeColor: this.strokeColor,
|
|
@@ -7007,9 +7007,9 @@ class ia extends R {
|
|
|
7007
7007
|
}
|
|
7008
7008
|
apply(t) {
|
|
7009
7009
|
this.oldState = t;
|
|
7010
|
-
const e =
|
|
7010
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7011
7011
|
if (!e.id)
|
|
7012
|
-
throw new
|
|
7012
|
+
throw new L();
|
|
7013
7013
|
const a = e.colors || {}, n = a[this.className];
|
|
7014
7014
|
typeof this.fill == "string" ? a[this.className] = {
|
|
7015
7015
|
browserValue: this.fill,
|
|
@@ -7039,9 +7039,9 @@ class is extends R {
|
|
|
7039
7039
|
}
|
|
7040
7040
|
apply(t) {
|
|
7041
7041
|
this.oldState = t;
|
|
7042
|
-
const e =
|
|
7042
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7043
7043
|
if (!e.id)
|
|
7044
|
-
throw new
|
|
7044
|
+
throw new L();
|
|
7045
7045
|
const a = {
|
|
7046
7046
|
...e,
|
|
7047
7047
|
svg: this.svgBody,
|
|
@@ -7056,7 +7056,7 @@ class is extends R {
|
|
|
7056
7056
|
};
|
|
7057
7057
|
}
|
|
7058
7058
|
}
|
|
7059
|
-
class
|
|
7059
|
+
class Pc extends R {
|
|
7060
7060
|
/**
|
|
7061
7061
|
* @param id The targeted element to bring to the front.
|
|
7062
7062
|
*/
|
|
@@ -7064,8 +7064,8 @@ class Dc extends R {
|
|
|
7064
7064
|
super(), this.id = t;
|
|
7065
7065
|
}
|
|
7066
7066
|
apply(t) {
|
|
7067
|
-
if (this.oldState = t,
|
|
7068
|
-
throw new
|
|
7067
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7068
|
+
throw new L();
|
|
7069
7069
|
const a = Object.values(t.layouts).find((s) => s.elements.find((o) => o.id === this.id));
|
|
7070
7070
|
if (!a)
|
|
7071
7071
|
throw new Error("Layout missing from state!");
|
|
@@ -7085,7 +7085,7 @@ class Dc extends R {
|
|
|
7085
7085
|
};
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
|
-
class
|
|
7088
|
+
class Fc extends R {
|
|
7089
7089
|
/**
|
|
7090
7090
|
* @param id The targeted element to bring to the back.
|
|
7091
7091
|
*/
|
|
@@ -7094,9 +7094,9 @@ class Pc extends R {
|
|
|
7094
7094
|
}
|
|
7095
7095
|
apply(t) {
|
|
7096
7096
|
this.oldState = t;
|
|
7097
|
-
const e =
|
|
7097
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7098
7098
|
if (!e.id)
|
|
7099
|
-
throw new
|
|
7099
|
+
throw new L();
|
|
7100
7100
|
const a = Object.values(t.layouts).find((o) => o.elements.find((l) => l.id === this.id));
|
|
7101
7101
|
if (!a)
|
|
7102
7102
|
throw new Error("Layout missing from state!");
|
|
@@ -7116,7 +7116,7 @@ class Pc extends R {
|
|
|
7116
7116
|
};
|
|
7117
7117
|
}
|
|
7118
7118
|
}
|
|
7119
|
-
class
|
|
7119
|
+
class xc extends R {
|
|
7120
7120
|
/**
|
|
7121
7121
|
* @param id The targeted element to bring to the front.
|
|
7122
7122
|
*/
|
|
@@ -7124,8 +7124,8 @@ class Fc extends R {
|
|
|
7124
7124
|
super(), this.id = t;
|
|
7125
7125
|
}
|
|
7126
7126
|
apply(t) {
|
|
7127
|
-
if (this.oldState = t,
|
|
7128
|
-
throw new
|
|
7127
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7128
|
+
throw new L();
|
|
7129
7129
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7130
7130
|
if (!a)
|
|
7131
7131
|
throw new Error("Layout missing from state!");
|
|
@@ -7143,7 +7143,7 @@ class Fc extends R {
|
|
|
7143
7143
|
};
|
|
7144
7144
|
}
|
|
7145
7145
|
}
|
|
7146
|
-
class
|
|
7146
|
+
class kc extends R {
|
|
7147
7147
|
/**
|
|
7148
7148
|
* @param id The targeted element to bring to the front.
|
|
7149
7149
|
*/
|
|
@@ -7151,8 +7151,8 @@ class xc extends R {
|
|
|
7151
7151
|
super(), this.id = t;
|
|
7152
7152
|
}
|
|
7153
7153
|
apply(t) {
|
|
7154
|
-
if (this.oldState = t,
|
|
7155
|
-
throw new
|
|
7154
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7155
|
+
throw new L();
|
|
7156
7156
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7157
7157
|
if (!a)
|
|
7158
7158
|
throw new Error("Layout missing from state!");
|
|
@@ -7285,7 +7285,7 @@ const ss = async (r) => {
|
|
|
7285
7285
|
throw console.error(e), new Be("Failed to shorten URL, see console.");
|
|
7286
7286
|
}
|
|
7287
7287
|
};
|
|
7288
|
-
class
|
|
7288
|
+
class $n {
|
|
7289
7289
|
async poll() {
|
|
7290
7290
|
try {
|
|
7291
7291
|
if (await this.predicate()) {
|
|
@@ -7332,7 +7332,7 @@ class os {
|
|
|
7332
7332
|
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
7333
|
return { asset: h, link: m };
|
|
7334
7334
|
}, s = await new Promise((h, m) => {
|
|
7335
|
-
new
|
|
7335
|
+
new $n(
|
|
7336
7336
|
async () => !!(await i()).link,
|
|
7337
7337
|
async () => {
|
|
7338
7338
|
const g = await i();
|
|
@@ -7400,7 +7400,7 @@ class os {
|
|
|
7400
7400
|
} };
|
|
7401
7401
|
}
|
|
7402
7402
|
}
|
|
7403
|
-
const
|
|
7403
|
+
const Ln = new os();
|
|
7404
7404
|
class we {
|
|
7405
7405
|
constructor() {
|
|
7406
7406
|
this.frameSourceSvg = async (t, e) => {
|
|
@@ -7522,7 +7522,7 @@ class we {
|
|
|
7522
7522
|
const o = e.fileLink || "";
|
|
7523
7523
|
return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
|
|
7524
7524
|
a.addPoller(
|
|
7525
|
-
new
|
|
7525
|
+
new $n(
|
|
7526
7526
|
async () => {
|
|
7527
7527
|
var h;
|
|
7528
7528
|
const A = (h = (await U.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
|
|
@@ -7824,7 +7824,7 @@ class ls {
|
|
|
7824
7824
|
if (a.length === 0)
|
|
7825
7825
|
return [];
|
|
7826
7826
|
try {
|
|
7827
|
-
return
|
|
7827
|
+
return $(
|
|
7828
7828
|
a[0].id,
|
|
7829
7829
|
e.getAllLayoutData()
|
|
7830
7830
|
).colors;
|
|
@@ -7909,7 +7909,7 @@ class ls {
|
|
|
7909
7909
|
var h, m;
|
|
7910
7910
|
if (e.length === 0)
|
|
7911
7911
|
return;
|
|
7912
|
-
const s =
|
|
7912
|
+
const s = $(
|
|
7913
7913
|
e[0].id,
|
|
7914
7914
|
n().map((g) => g.layoutState)
|
|
7915
7915
|
), o = { ...s.colors }, l = {};
|
|
@@ -8636,7 +8636,7 @@ class ms {
|
|
|
8636
8636
|
}
|
|
8637
8637
|
}
|
|
8638
8638
|
}
|
|
8639
|
-
const
|
|
8639
|
+
const Lt = new ms();
|
|
8640
8640
|
class gs {
|
|
8641
8641
|
constructor() {
|
|
8642
8642
|
this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
|
|
@@ -8799,7 +8799,7 @@ class Cs {
|
|
|
8799
8799
|
return null;
|
|
8800
8800
|
}
|
|
8801
8801
|
findLayoutElements(t, e) {
|
|
8802
|
-
return t.getRegionElements(e.stepName).map((i) =>
|
|
8802
|
+
return t.getRegionElements(e.stepName).map((i) => $(i.id, t.getAllLayoutData()));
|
|
8803
8803
|
}
|
|
8804
8804
|
/**
|
|
8805
8805
|
* Get the colors that can be used for a given text step.
|
|
@@ -9446,7 +9446,7 @@ class Ds extends ws {
|
|
|
9446
9446
|
return this.svgElement(t, e);
|
|
9447
9447
|
}
|
|
9448
9448
|
svgElement(t, e) {
|
|
9449
|
-
const a =
|
|
9449
|
+
const a = Li(ys), i = t !== "" ? ((w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
|
|
9450
9450
|
const w = tt("g");
|
|
9451
9451
|
w.classList.add("module-text-group");
|
|
9452
9452
|
const v = tt("defs");
|
|
@@ -9775,10 +9775,17 @@ const xs = y`
|
|
|
9775
9775
|
$id: String!
|
|
9776
9776
|
$filters: ProductCollectionProductFilterInput
|
|
9777
9777
|
$tags: ProductCollectionProductTagFilterInput
|
|
9778
|
+
$sortKey: ProductCollectionProductSortKey
|
|
9779
|
+
$sortDescending: Boolean
|
|
9778
9780
|
) {
|
|
9779
9781
|
productCollections(ids: [$id]) {
|
|
9780
9782
|
id
|
|
9781
|
-
productCollectionProducts(
|
|
9783
|
+
productCollectionProducts(
|
|
9784
|
+
filters: $filters
|
|
9785
|
+
tags: $tags
|
|
9786
|
+
sortKey: $sortKey
|
|
9787
|
+
sortDescending: $sortDescending
|
|
9788
|
+
) {
|
|
9782
9789
|
id
|
|
9783
9790
|
product {
|
|
9784
9791
|
id
|
|
@@ -9794,10 +9801,19 @@ const xs = y`
|
|
|
9794
9801
|
$offset: Int
|
|
9795
9802
|
$filters: ProductCollectionProductFilterInput
|
|
9796
9803
|
$tags: ProductCollectionProductTagFilterInput
|
|
9804
|
+
$sortKey: ProductCollectionProductSortKey
|
|
9805
|
+
$sortDescending: Boolean
|
|
9797
9806
|
) {
|
|
9798
9807
|
productCollections(ids: [$id]) {
|
|
9799
9808
|
id
|
|
9800
|
-
productCollectionProductsFeed(
|
|
9809
|
+
productCollectionProductsFeed(
|
|
9810
|
+
filters: $filters
|
|
9811
|
+
tags: $tags
|
|
9812
|
+
limit: $limit
|
|
9813
|
+
offset: $offset
|
|
9814
|
+
sortKey: $sortKey
|
|
9815
|
+
sortDescending: $sortDescending
|
|
9816
|
+
) {
|
|
9801
9817
|
items {
|
|
9802
9818
|
...ProductCollectionProductFields
|
|
9803
9819
|
}
|
|
@@ -9881,13 +9897,13 @@ const xs = y`
|
|
|
9881
9897
|
id
|
|
9882
9898
|
}
|
|
9883
9899
|
}
|
|
9884
|
-
`,
|
|
9900
|
+
`, $s = y`
|
|
9885
9901
|
mutation BundleAddTransaction($id: String!, $transactionId: String!) {
|
|
9886
9902
|
bundleAddTransaction(id: $id, transactionId: $transactionId) {
|
|
9887
9903
|
id
|
|
9888
9904
|
}
|
|
9889
9905
|
}
|
|
9890
|
-
`,
|
|
9906
|
+
`, Ls = y`
|
|
9891
9907
|
mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
|
|
9892
9908
|
bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
|
|
9893
9909
|
id
|
|
@@ -10343,7 +10359,7 @@ class ao {
|
|
|
10343
10359
|
};
|
|
10344
10360
|
if (!rn(a, this.storage)) {
|
|
10345
10361
|
this.storage = a;
|
|
10346
|
-
const n = new
|
|
10362
|
+
const n = new La(this.constructSerializableWorkflow());
|
|
10347
10363
|
this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
|
|
10348
10364
|
}
|
|
10349
10365
|
}
|
|
@@ -10558,7 +10574,7 @@ class ao {
|
|
|
10558
10574
|
const B = (S = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : S.frameService;
|
|
10559
10575
|
B == null || B.setTargetElements(a.map((E) => E.id));
|
|
10560
10576
|
}
|
|
10561
|
-
const f = u.map((B) => new vt(B.id)), p = new
|
|
10577
|
+
const f = u.map((B) => new vt(B.id)), p = new La(this.constructSerializableWorkflow()), C = [...m, ...f, p];
|
|
10562
10578
|
C.length > 0 && this.commandContext.apply(new O(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
10563
10579
|
const w = this.getInvalidModelVariants(), v = this.modelContainer;
|
|
10564
10580
|
if (v) {
|
|
@@ -10582,7 +10598,7 @@ class ao {
|
|
|
10582
10598
|
switch (this.stepInitialised[l.stepName] = !0, l.type) {
|
|
10583
10599
|
case D.DigitalContent:
|
|
10584
10600
|
a.push(
|
|
10585
|
-
|
|
10601
|
+
Ln.init(
|
|
10586
10602
|
l,
|
|
10587
10603
|
this,
|
|
10588
10604
|
this.reloadedState
|
|
@@ -10625,7 +10641,7 @@ class ao {
|
|
|
10625
10641
|
);
|
|
10626
10642
|
break;
|
|
10627
10643
|
case D.Shape:
|
|
10628
|
-
a.push(
|
|
10644
|
+
a.push(Lt.init(l, this, this.reloadedState));
|
|
10629
10645
|
break;
|
|
10630
10646
|
case D.Text:
|
|
10631
10647
|
a.push(q.init(l, this, this.reloadedState));
|
|
@@ -10935,7 +10951,7 @@ class no extends it {
|
|
|
10935
10951
|
const t = this.manager.getRegionElements(this.step.stepName) || [];
|
|
10936
10952
|
if (t.length === 0)
|
|
10937
10953
|
return;
|
|
10938
|
-
const a =
|
|
10954
|
+
const a = $(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) || [];
|
|
10939
10955
|
if (s.length !== 0) {
|
|
10940
10956
|
const l = {};
|
|
10941
10957
|
return s.forEach((c) => {
|
|
@@ -11052,7 +11068,7 @@ class lo extends it {
|
|
|
11052
11068
|
}
|
|
11053
11069
|
selectVariant(t) {
|
|
11054
11070
|
const e = t.getResource();
|
|
11055
|
-
return
|
|
11071
|
+
return Lt.selectVariant(
|
|
11056
11072
|
this.step,
|
|
11057
11073
|
{
|
|
11058
11074
|
fill: e.color,
|
|
@@ -11070,7 +11086,7 @@ class lo extends it {
|
|
|
11070
11086
|
* @deprecated The shape step can now pass through colors returned by getColors via selectVariant. Please swap setColor for selectVariant.
|
|
11071
11087
|
*/
|
|
11072
11088
|
setColor(t) {
|
|
11073
|
-
return
|
|
11089
|
+
return Lt.selectVariant(
|
|
11074
11090
|
this.step,
|
|
11075
11091
|
t,
|
|
11076
11092
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -11082,7 +11098,7 @@ class lo extends it {
|
|
|
11082
11098
|
* @returns A list of color definitions that are currently applied to the illustration.
|
|
11083
11099
|
*/
|
|
11084
11100
|
getColors() {
|
|
11085
|
-
return
|
|
11101
|
+
return Lt.availableColours(this.step);
|
|
11086
11102
|
}
|
|
11087
11103
|
/**
|
|
11088
11104
|
* Allows for setting a custom color when the custom variant is selected. Will
|
|
@@ -11090,7 +11106,7 @@ class lo extends it {
|
|
|
11090
11106
|
*/
|
|
11091
11107
|
setCustomColor(t) {
|
|
11092
11108
|
var e, a;
|
|
11093
|
-
return ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) !== "#custom" && console.warn(`setting custom color for step ${this.step.stepName} but color is ${(a = this.getCurrentVariant()) == null ? void 0 : a.getColor()}`),
|
|
11109
|
+
return ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) !== "#custom" && console.warn(`setting custom color for step ${this.step.stepName} but color is ${(a = this.getCurrentVariant()) == null ? void 0 : a.getColor()}`), Lt.setCustomColor(t, this.step, this.manager);
|
|
11094
11110
|
}
|
|
11095
11111
|
getCustomColor() {
|
|
11096
11112
|
var e, a, n;
|
|
@@ -11334,7 +11350,7 @@ class uo extends it {
|
|
|
11334
11350
|
* @returns The final URL string for the QR code.
|
|
11335
11351
|
*/
|
|
11336
11352
|
async selectVideo(t) {
|
|
11337
|
-
return
|
|
11353
|
+
return Ln.regenerateQRCode(
|
|
11338
11354
|
this.manager.getRegionElements(this.step.stepName),
|
|
11339
11355
|
t.key,
|
|
11340
11356
|
this.manager,
|
|
@@ -11412,7 +11428,7 @@ class ie {
|
|
|
11412
11428
|
case D.Model:
|
|
11413
11429
|
return new io(t, e, t.getStepTags(e.stepName));
|
|
11414
11430
|
case D.Frame:
|
|
11415
|
-
return new
|
|
11431
|
+
return new Bl(t, e, t.getStepTags(e.stepName));
|
|
11416
11432
|
case D.Module:
|
|
11417
11433
|
return new ho(t, e, t.getStepTags(e.stepName));
|
|
11418
11434
|
default:
|
|
@@ -12885,14 +12901,14 @@ class Uo {
|
|
|
12885
12901
|
return this.layouts;
|
|
12886
12902
|
}
|
|
12887
12903
|
}
|
|
12888
|
-
const
|
|
12904
|
+
const $o = () => new Promise((r, t) => {
|
|
12889
12905
|
try {
|
|
12890
12906
|
const a = gt().getContext("webgl2");
|
|
12891
12907
|
r(!!a);
|
|
12892
12908
|
} catch {
|
|
12893
12909
|
r(!1);
|
|
12894
12910
|
}
|
|
12895
|
-
}),
|
|
12911
|
+
}), Lo = $o();
|
|
12896
12912
|
class Vo {
|
|
12897
12913
|
constructor(t, e, a, n) {
|
|
12898
12914
|
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;
|
|
@@ -12952,7 +12968,7 @@ class Vo {
|
|
|
12952
12968
|
new zo(
|
|
12953
12969
|
this.getID(),
|
|
12954
12970
|
a,
|
|
12955
|
-
await
|
|
12971
|
+
await Lo,
|
|
12956
12972
|
() => {
|
|
12957
12973
|
this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
|
|
12958
12974
|
},
|
|
@@ -13029,7 +13045,7 @@ class zo extends Dn {
|
|
|
13029
13045
|
u.resize(l, c), await u.render(), this.onRender();
|
|
13030
13046
|
}
|
|
13031
13047
|
}
|
|
13032
|
-
const
|
|
13048
|
+
const Mc = (r, t) => {
|
|
13033
13049
|
const e = [];
|
|
13034
13050
|
return r.forEach((a) => {
|
|
13035
13051
|
const n = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -13040,7 +13056,7 @@ const kc = (r, t) => {
|
|
|
13040
13056
|
}
|
|
13041
13057
|
});
|
|
13042
13058
|
}), e;
|
|
13043
|
-
},
|
|
13059
|
+
}, Tc = async (r, t, e, a) => {
|
|
13044
13060
|
let n = {
|
|
13045
13061
|
serializableWorkflow: { steps: [] },
|
|
13046
13062
|
layouts: {}
|
|
@@ -13922,7 +13938,8 @@ class _o {
|
|
|
13922
13938
|
}
|
|
13923
13939
|
}
|
|
13924
13940
|
const Xo = new _o();
|
|
13925
|
-
|
|
13941
|
+
var Zo = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(Zo || {});
|
|
13942
|
+
class tl {
|
|
13926
13943
|
constructor(t) {
|
|
13927
13944
|
this.fullFetched = !1, this.collection = t;
|
|
13928
13945
|
const e = this.collection.productCollectionProducts;
|
|
@@ -13981,9 +13998,9 @@ class Zo {
|
|
|
13981
13998
|
* @param filters A list of metafield filters to apply.
|
|
13982
13999
|
* @param tags An object of tag filters to apply.
|
|
13983
14000
|
*/
|
|
13984
|
-
async filterProducts(t, e) {
|
|
13985
|
-
var
|
|
13986
|
-
const
|
|
14001
|
+
async filterProducts(t, e, a, n) {
|
|
14002
|
+
var l, c;
|
|
14003
|
+
const i = await b.getShadowGraphqlClient().query({
|
|
13987
14004
|
query: Qs,
|
|
13988
14005
|
errorPolicy: "all",
|
|
13989
14006
|
variables: {
|
|
@@ -13995,15 +14012,17 @@ class Zo {
|
|
|
13995
14012
|
tags: e ? {
|
|
13996
14013
|
include: e.include ?? [],
|
|
13997
14014
|
exclude: e.exclude ?? []
|
|
13998
|
-
} : void 0
|
|
14015
|
+
} : void 0,
|
|
14016
|
+
sortKey: a,
|
|
14017
|
+
sortDescending: n
|
|
13999
14018
|
}
|
|
14000
14019
|
});
|
|
14001
|
-
if (!((
|
|
14020
|
+
if (!((l = i.data) != null && l.productCollections) || ((c = i.data) == null ? void 0 : c.productCollections.length) === 0)
|
|
14002
14021
|
throw new Error("Failed to filter product collection products.");
|
|
14003
|
-
const
|
|
14004
|
-
(
|
|
14022
|
+
const s = this.getProducts(), o = i.data.productCollections[0].productCollectionProducts.map(
|
|
14023
|
+
(d) => d.product.id
|
|
14005
14024
|
);
|
|
14006
|
-
return
|
|
14025
|
+
return s.filter((d) => o.includes(d.getId()));
|
|
14007
14026
|
}
|
|
14008
14027
|
/**
|
|
14009
14028
|
* Fetches a paginated feed of products.
|
|
@@ -14013,16 +14032,16 @@ class Zo {
|
|
|
14013
14032
|
* @param tags Optional object of tag filters to apply.
|
|
14014
14033
|
* @returns
|
|
14015
14034
|
*/
|
|
14016
|
-
async fetchProductsFeed(t, e, a, n) {
|
|
14017
|
-
var
|
|
14035
|
+
async fetchProductsFeed(t, e, a, n, i, s) {
|
|
14036
|
+
var c, d, A, u, h, m;
|
|
14018
14037
|
if (this.fullFetched) {
|
|
14019
|
-
const
|
|
14038
|
+
const g = await (a ? this.filterProducts(a) : this.fetchProducts());
|
|
14020
14039
|
return {
|
|
14021
|
-
total:
|
|
14022
|
-
items:
|
|
14040
|
+
total: g.length,
|
|
14041
|
+
items: g.slice(t, t + e)
|
|
14023
14042
|
};
|
|
14024
14043
|
}
|
|
14025
|
-
const
|
|
14044
|
+
const o = await b.getShadowGraphqlClient().query({
|
|
14026
14045
|
query: Ns,
|
|
14027
14046
|
variables: {
|
|
14028
14047
|
id: this.getId(),
|
|
@@ -14035,18 +14054,20 @@ class Zo {
|
|
|
14035
14054
|
tags: n ? {
|
|
14036
14055
|
include: n.include ?? [],
|
|
14037
14056
|
exclude: n.exclude ?? []
|
|
14038
|
-
} : void 0
|
|
14057
|
+
} : void 0,
|
|
14058
|
+
sortKey: i,
|
|
14059
|
+
sortDescending: s
|
|
14039
14060
|
},
|
|
14040
14061
|
errorPolicy: "all"
|
|
14041
14062
|
});
|
|
14042
14063
|
return {
|
|
14043
|
-
items: ((
|
|
14044
|
-
total: ((
|
|
14064
|
+
items: ((A = (d = (c = o == null ? void 0 : o.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.items.filter((g) => !!g.product).map((g) => new se(g))) || [],
|
|
14065
|
+
total: ((m = (h = (u = o == null ? void 0 : o.data) == null ? void 0 : u.productCollections) == null ? void 0 : h[0].productCollectionProductsFeed) == null ? void 0 : m.total) ?? 0
|
|
14045
14066
|
};
|
|
14046
14067
|
}
|
|
14047
14068
|
getTransformCollection() {
|
|
14048
14069
|
if (this.collection.transformCollection)
|
|
14049
|
-
return new
|
|
14070
|
+
return new el(this.collection.transformCollection);
|
|
14050
14071
|
}
|
|
14051
14072
|
/**
|
|
14052
14073
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -14215,7 +14236,7 @@ class zt {
|
|
|
14215
14236
|
return this.workflow.imageUrl;
|
|
14216
14237
|
}
|
|
14217
14238
|
}
|
|
14218
|
-
class
|
|
14239
|
+
class el {
|
|
14219
14240
|
constructor(t) {
|
|
14220
14241
|
this.collection = t;
|
|
14221
14242
|
}
|
|
@@ -14235,10 +14256,10 @@ class tl {
|
|
|
14235
14256
|
* @returns The transforms in this collection.
|
|
14236
14257
|
*/
|
|
14237
14258
|
getTransforms() {
|
|
14238
|
-
return this.collection.transforms.map((t) => new
|
|
14259
|
+
return this.collection.transforms.map((t) => new al(t));
|
|
14239
14260
|
}
|
|
14240
14261
|
}
|
|
14241
|
-
class
|
|
14262
|
+
class al {
|
|
14242
14263
|
constructor(t) {
|
|
14243
14264
|
this.transform = t;
|
|
14244
14265
|
}
|
|
@@ -14265,7 +14286,7 @@ class el {
|
|
|
14265
14286
|
};
|
|
14266
14287
|
}
|
|
14267
14288
|
}
|
|
14268
|
-
class
|
|
14289
|
+
class nl {
|
|
14269
14290
|
constructor() {
|
|
14270
14291
|
this.listeners = {};
|
|
14271
14292
|
}
|
|
@@ -14292,7 +14313,7 @@ class al {
|
|
|
14292
14313
|
delete this.listeners[e];
|
|
14293
14314
|
}
|
|
14294
14315
|
}
|
|
14295
|
-
const
|
|
14316
|
+
const rl = y`
|
|
14296
14317
|
mutation AddAddressToBundle(
|
|
14297
14318
|
$bundleId: String!
|
|
14298
14319
|
$streetAddress: String
|
|
@@ -14314,13 +14335,13 @@ const nl = y`
|
|
|
14314
14335
|
id
|
|
14315
14336
|
}
|
|
14316
14337
|
}
|
|
14317
|
-
`,
|
|
14338
|
+
`, il = y`
|
|
14318
14339
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14319
14340
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14320
14341
|
id
|
|
14321
14342
|
}
|
|
14322
14343
|
}
|
|
14323
|
-
`,
|
|
14344
|
+
`, sl = y`
|
|
14324
14345
|
mutation GenerateQuoteId($id: String!) {
|
|
14325
14346
|
bundleGenerateQuoteId(id: $id) {
|
|
14326
14347
|
id
|
|
@@ -14331,7 +14352,7 @@ const nl = y`
|
|
|
14331
14352
|
class He {
|
|
14332
14353
|
constructor(t, e, a, n, i, s) {
|
|
14333
14354
|
var c, d, A;
|
|
14334
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
|
14355
|
+
this.workflowExperiences = [], this.eventEmitter = new nl(), 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 Jo(e.bundleStateData);
|
|
14335
14356
|
const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
|
|
14336
14357
|
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new Yo(
|
|
14337
14358
|
this.id,
|
|
@@ -14370,7 +14391,7 @@ class He {
|
|
|
14370
14391
|
async generateQuoteId() {
|
|
14371
14392
|
var a, n;
|
|
14372
14393
|
const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
|
|
14373
|
-
mutation:
|
|
14394
|
+
mutation: sl,
|
|
14374
14395
|
variables: {
|
|
14375
14396
|
id: this.id
|
|
14376
14397
|
},
|
|
@@ -14382,7 +14403,7 @@ class He {
|
|
|
14382
14403
|
}
|
|
14383
14404
|
async attachAddress(t, e, a, n, i, s) {
|
|
14384
14405
|
await b.getShadowGraphqlClient().mutate({
|
|
14385
|
-
mutation:
|
|
14406
|
+
mutation: rl,
|
|
14386
14407
|
variables: {
|
|
14387
14408
|
bundleId: this.id,
|
|
14388
14409
|
streetAddress: t || void 0,
|
|
@@ -14399,7 +14420,7 @@ class He {
|
|
|
14399
14420
|
}
|
|
14400
14421
|
async attachOrganization(t) {
|
|
14401
14422
|
await b.getShadowGraphqlClient().mutate({
|
|
14402
|
-
mutation:
|
|
14423
|
+
mutation: il,
|
|
14403
14424
|
variables: {
|
|
14404
14425
|
bundleId: this.id,
|
|
14405
14426
|
organizationName: t
|
|
@@ -14472,7 +14493,7 @@ class He {
|
|
|
14472
14493
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
14473
14494
|
}
|
|
14474
14495
|
getProductCollection() {
|
|
14475
|
-
return this.productCollection ? new
|
|
14496
|
+
return this.productCollection ? new tl(this.productCollection) : void 0;
|
|
14476
14497
|
}
|
|
14477
14498
|
async initializeAdditionalRequiredColorChannels(t) {
|
|
14478
14499
|
var e, a, n, i;
|
|
@@ -14518,7 +14539,7 @@ class He {
|
|
|
14518
14539
|
);
|
|
14519
14540
|
const n = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => n.get(o));
|
|
14520
14541
|
await b.getShadowGraphqlClient().mutate({
|
|
14521
|
-
mutation:
|
|
14542
|
+
mutation: Ls,
|
|
14522
14543
|
variables: {
|
|
14523
14544
|
id: this.id,
|
|
14524
14545
|
transactionIds: e,
|
|
@@ -14550,7 +14571,7 @@ class He {
|
|
|
14550
14571
|
throw new Error("Unable to add transaction to bundle - Already Exists!");
|
|
14551
14572
|
const s = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
|
|
14552
14573
|
await b.getShadowGraphqlClient().mutate({
|
|
14553
|
-
mutation:
|
|
14574
|
+
mutation: $s,
|
|
14554
14575
|
variables: {
|
|
14555
14576
|
id: this.id,
|
|
14556
14577
|
transactionId: a
|
|
@@ -14991,14 +15012,14 @@ class He {
|
|
|
14991
15012
|
};
|
|
14992
15013
|
}
|
|
14993
15014
|
}
|
|
14994
|
-
const
|
|
15015
|
+
const ol = y`
|
|
14995
15016
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
14996
15017
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
14997
15018
|
id
|
|
14998
15019
|
}
|
|
14999
15020
|
}
|
|
15000
15021
|
`;
|
|
15001
|
-
class
|
|
15022
|
+
class ll {
|
|
15002
15023
|
/**
|
|
15003
15024
|
*
|
|
15004
15025
|
* @param id
|
|
@@ -15009,7 +15030,7 @@ class ol {
|
|
|
15009
15030
|
async execute(t, e, a) {
|
|
15010
15031
|
var A, u, h;
|
|
15011
15032
|
const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
|
|
15012
|
-
mutation:
|
|
15033
|
+
mutation: ol,
|
|
15013
15034
|
variables: {
|
|
15014
15035
|
processFlowId: t,
|
|
15015
15036
|
inputs: [...e.map((m) => m.getValueForTransmission())]
|
|
@@ -15051,7 +15072,7 @@ class ol {
|
|
|
15051
15072
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15052
15073
|
);
|
|
15053
15074
|
if (m.completedAt) {
|
|
15054
|
-
o = !0, d = new
|
|
15075
|
+
o = !0, d = new cl(m);
|
|
15055
15076
|
break;
|
|
15056
15077
|
}
|
|
15057
15078
|
l += 1;
|
|
@@ -15065,7 +15086,7 @@ class ol {
|
|
|
15065
15086
|
return Promise.resolve(d);
|
|
15066
15087
|
}
|
|
15067
15088
|
}
|
|
15068
|
-
class
|
|
15089
|
+
class cl {
|
|
15069
15090
|
constructor(t) {
|
|
15070
15091
|
this.execution = t;
|
|
15071
15092
|
}
|
|
@@ -15150,8 +15171,8 @@ class ba {
|
|
|
15150
15171
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15151
15172
|
}
|
|
15152
15173
|
}
|
|
15153
|
-
var
|
|
15154
|
-
class
|
|
15174
|
+
var dl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(dl || {});
|
|
15175
|
+
class Qc extends ba {
|
|
15155
15176
|
constructor(t) {
|
|
15156
15177
|
super(`"${t}"`);
|
|
15157
15178
|
}
|
|
@@ -15166,7 +15187,7 @@ class Xn extends ba {
|
|
|
15166
15187
|
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);
|
|
15167
15188
|
}
|
|
15168
15189
|
}
|
|
15169
|
-
class
|
|
15190
|
+
class Nc extends ba {
|
|
15170
15191
|
constructor(t) {
|
|
15171
15192
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15172
15193
|
}
|
|
@@ -15224,7 +15245,7 @@ const Ya = y`
|
|
|
15224
15245
|
}
|
|
15225
15246
|
}
|
|
15226
15247
|
}
|
|
15227
|
-
`,
|
|
15248
|
+
`, Al = y`
|
|
15228
15249
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15229
15250
|
customerCreate(details: $details) {
|
|
15230
15251
|
id
|
|
@@ -15234,7 +15255,7 @@ const Ya = y`
|
|
|
15234
15255
|
}
|
|
15235
15256
|
}
|
|
15236
15257
|
}
|
|
15237
|
-
`,
|
|
15258
|
+
`, ul = y`
|
|
15238
15259
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
15239
15260
|
customerAuthenticate(loginToken: $loginToken) {
|
|
15240
15261
|
id
|
|
@@ -15264,11 +15285,11 @@ const Ya = y`
|
|
|
15264
15285
|
}
|
|
15265
15286
|
}
|
|
15266
15287
|
}
|
|
15267
|
-
`,
|
|
15288
|
+
`, hl = y`
|
|
15268
15289
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15269
15290
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15270
15291
|
}
|
|
15271
|
-
`,
|
|
15292
|
+
`, ml = y`
|
|
15272
15293
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
15273
15294
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
15274
15295
|
id
|
|
@@ -15299,7 +15320,7 @@ const Ya = y`
|
|
|
15299
15320
|
}
|
|
15300
15321
|
}
|
|
15301
15322
|
}
|
|
15302
|
-
`,
|
|
15323
|
+
`, gl = y`
|
|
15303
15324
|
query CustomerMetafields($id: String!) {
|
|
15304
15325
|
metafields(entityId: $id) {
|
|
15305
15326
|
id
|
|
@@ -15317,7 +15338,7 @@ const Ya = y`
|
|
|
15317
15338
|
}
|
|
15318
15339
|
}
|
|
15319
15340
|
}
|
|
15320
|
-
`,
|
|
15341
|
+
`, fl = async (r, t) => {
|
|
15321
15342
|
var n;
|
|
15322
15343
|
const e = await b.getShadowGraphqlClient().query({
|
|
15323
15344
|
query: Bi(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
@@ -15341,7 +15362,7 @@ const Ya = y`
|
|
|
15341
15362
|
}), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15342
15363
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15343
15364
|
}), a;
|
|
15344
|
-
},
|
|
15365
|
+
}, pl = async (r, t) => {
|
|
15345
15366
|
const a = (await t).find((n) => n.id === r);
|
|
15346
15367
|
if (!a)
|
|
15347
15368
|
throw new Error(`Workflow not found: ${r}`);
|
|
@@ -15350,11 +15371,11 @@ const Ya = y`
|
|
|
15350
15371
|
const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15351
15372
|
if (a.length === 0)
|
|
15352
15373
|
return Promise.all(e);
|
|
15353
|
-
const n =
|
|
15354
|
-
(o) => Ht.set({ id: o, options: t },
|
|
15374
|
+
const n = fl(a, t), i = a.map(
|
|
15375
|
+
(o) => Ht.set({ id: o, options: t }, pl(o, n))
|
|
15355
15376
|
), s = e.filter((o) => o !== void 0);
|
|
15356
15377
|
return await Promise.all(s.concat(i));
|
|
15357
|
-
},
|
|
15378
|
+
}, Rc = async (r, t) => (await Zn([r], t))[0], Cl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
15358
15379
|
id: Q(),
|
|
15359
15380
|
panelId: t.name,
|
|
15360
15381
|
name: t.name,
|
|
@@ -15368,11 +15389,11 @@ const Ya = y`
|
|
|
15368
15389
|
previewRegion: t.previewRegion,
|
|
15369
15390
|
useEditableArea: t.useEditableArea,
|
|
15370
15391
|
editableArea: t.editableArea
|
|
15371
|
-
})),
|
|
15392
|
+
})), wl = (r, t) => {
|
|
15372
15393
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
15373
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
15394
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : Cl(t.panels);
|
|
15374
15395
|
};
|
|
15375
|
-
class
|
|
15396
|
+
class Oc {
|
|
15376
15397
|
constructor(t) {
|
|
15377
15398
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15378
15399
|
try {
|
|
@@ -15383,7 +15404,7 @@ class Rc {
|
|
|
15383
15404
|
} catch (a) {
|
|
15384
15405
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15385
15406
|
}
|
|
15386
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15407
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.28.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15387
15408
|
}
|
|
15388
15409
|
configure(t) {
|
|
15389
15410
|
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();
|
|
@@ -15403,14 +15424,14 @@ class Rc {
|
|
|
15403
15424
|
getFlowService() {
|
|
15404
15425
|
if (!xr())
|
|
15405
15426
|
throw new Error("Application key required to use Flow Service.");
|
|
15406
|
-
return new
|
|
15427
|
+
return new ll();
|
|
15407
15428
|
}
|
|
15408
15429
|
async getIntegration() {
|
|
15409
15430
|
if (this.activeIntegration)
|
|
15410
15431
|
return this.activeIntegration;
|
|
15411
15432
|
if (!this.options.applicationKey)
|
|
15412
15433
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
15413
|
-
return this.activeIntegration =
|
|
15434
|
+
return this.activeIntegration = yl(this.options.applicationKey), this.activeIntegration;
|
|
15414
15435
|
}
|
|
15415
15436
|
async canUseAddon(t) {
|
|
15416
15437
|
var e;
|
|
@@ -15559,7 +15580,7 @@ class Rc {
|
|
|
15559
15580
|
})).data.customer;
|
|
15560
15581
|
if (!n.id) {
|
|
15561
15582
|
const l = (s = (await e.mutate({
|
|
15562
|
-
mutation:
|
|
15583
|
+
mutation: Al,
|
|
15563
15584
|
errorPolicy: "all",
|
|
15564
15585
|
fetchPolicy: "no-cache",
|
|
15565
15586
|
variables: {
|
|
@@ -15594,7 +15615,7 @@ class Rc {
|
|
|
15594
15615
|
if (!n)
|
|
15595
15616
|
return !1;
|
|
15596
15617
|
const s = (o = (await e.mutate({
|
|
15597
|
-
mutation:
|
|
15618
|
+
mutation: ul,
|
|
15598
15619
|
errorPolicy: "all",
|
|
15599
15620
|
fetchPolicy: "no-cache",
|
|
15600
15621
|
variables: {
|
|
@@ -15609,7 +15630,7 @@ class Rc {
|
|
|
15609
15630
|
*/
|
|
15610
15631
|
async generateVerificationCode(t) {
|
|
15611
15632
|
await b.getShadowGraphqlClient().mutate({
|
|
15612
|
-
mutation:
|
|
15633
|
+
mutation: hl,
|
|
15613
15634
|
variables: {
|
|
15614
15635
|
emailAddress: t
|
|
15615
15636
|
}
|
|
@@ -15624,7 +15645,7 @@ class Rc {
|
|
|
15624
15645
|
async verifyCode(t, e) {
|
|
15625
15646
|
var i, s;
|
|
15626
15647
|
const n = (i = (await b.getShadowGraphqlClient().mutate({
|
|
15627
|
-
mutation:
|
|
15648
|
+
mutation: ml,
|
|
15628
15649
|
errorPolicy: "all",
|
|
15629
15650
|
fetchPolicy: "no-cache",
|
|
15630
15651
|
variables: {
|
|
@@ -15648,7 +15669,7 @@ class Rc {
|
|
|
15648
15669
|
if (!((e = this.customer) != null && e.id))
|
|
15649
15670
|
throw new Error("Customer must be logged in before calling this function.");
|
|
15650
15671
|
return (await b.getShadowGraphqlClient().query({
|
|
15651
|
-
query:
|
|
15672
|
+
query: gl,
|
|
15652
15673
|
variables: {
|
|
15653
15674
|
id: this.customer.id
|
|
15654
15675
|
}
|
|
@@ -15909,12 +15930,12 @@ class Rc {
|
|
|
15909
15930
|
};
|
|
15910
15931
|
if (M.type === "transaction" && B.workflowState) {
|
|
15911
15932
|
const G = JSON.parse(B.workflowState);
|
|
15912
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
15933
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await $a(G), V.reloadedState = G;
|
|
15913
15934
|
} else if (!I && M.workflowState) {
|
|
15914
15935
|
const G = JSON.parse(M.workflowState);
|
|
15915
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
15936
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await $a(G), V.reloadedState = G;
|
|
15916
15937
|
} else
|
|
15917
|
-
V.layouts =
|
|
15938
|
+
V.layouts = wl(
|
|
15918
15939
|
V.transaction,
|
|
15919
15940
|
V.workflow
|
|
15920
15941
|
);
|
|
@@ -15998,7 +16019,7 @@ class Rc {
|
|
|
15998
16019
|
};
|
|
15999
16020
|
}
|
|
16000
16021
|
}
|
|
16001
|
-
const
|
|
16022
|
+
const yl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
16002
16023
|
query: Pi,
|
|
16003
16024
|
errorPolicy: "all",
|
|
16004
16025
|
fetchPolicy: "no-cache",
|
|
@@ -16010,7 +16031,7 @@ const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16010
16031
|
variables: {
|
|
16011
16032
|
themeConfigurationId: t
|
|
16012
16033
|
}
|
|
16013
|
-
})).data.currentIntegration,
|
|
16034
|
+
})).data.currentIntegration, Uc = async (r) => {
|
|
16014
16035
|
const e = await b.getShadowGraphqlClient().query({
|
|
16015
16036
|
query: mi,
|
|
16016
16037
|
errorPolicy: "all",
|
|
@@ -16021,7 +16042,7 @@ const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16021
16042
|
});
|
|
16022
16043
|
if (e.data.transactions.length !== 0)
|
|
16023
16044
|
return e.data.transactions[0];
|
|
16024
|
-
},
|
|
16045
|
+
}, $c = async (r, t) => {
|
|
16025
16046
|
var a;
|
|
16026
16047
|
return (a = (await b.getShadowGraphqlClient().query({
|
|
16027
16048
|
query: Di,
|
|
@@ -16040,7 +16061,7 @@ const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16040
16061
|
id: r
|
|
16041
16062
|
}
|
|
16042
16063
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16043
|
-
},
|
|
16064
|
+
}, Vc = async (r) => {
|
|
16044
16065
|
var e, a, n;
|
|
16045
16066
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16046
16067
|
query: Fi,
|
|
@@ -16050,7 +16071,7 @@ const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16050
16071
|
}
|
|
16051
16072
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16052
16073
|
};
|
|
16053
|
-
function
|
|
16074
|
+
function Sl(r, t, e, a) {
|
|
16054
16075
|
const n = e.width * r.zoom, i = e.height * r.zoom;
|
|
16055
16076
|
if (a) {
|
|
16056
16077
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
@@ -16064,7 +16085,7 @@ function yl(r, t, e, a) {
|
|
|
16064
16085
|
function le(r, t, e) {
|
|
16065
16086
|
return Math.min(Math.max(r, t), e);
|
|
16066
16087
|
}
|
|
16067
|
-
class
|
|
16088
|
+
class vl {
|
|
16068
16089
|
constructor(t, e) {
|
|
16069
16090
|
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 = {
|
|
16070
16091
|
useThreshold: !1,
|
|
@@ -16121,7 +16142,7 @@ class Sl {
|
|
|
16121
16142
|
return;
|
|
16122
16143
|
}
|
|
16123
16144
|
t.forEach((e, a) => {
|
|
16124
|
-
const n =
|
|
16145
|
+
const n = $t.get(e);
|
|
16125
16146
|
n && (this.frameData || (this.frameData = new Array(t.length)), this.frameData[a] = n);
|
|
16126
16147
|
});
|
|
16127
16148
|
}
|
|
@@ -16207,7 +16228,7 @@ class Sl {
|
|
|
16207
16228
|
return;
|
|
16208
16229
|
}
|
|
16209
16230
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
16210
|
-
this.offsets[o] =
|
|
16231
|
+
this.offsets[o] = Sl(t[o], s, this.imageData, this.forceImageCover);
|
|
16211
16232
|
}), this._debouncedUpdateFrameOffsets(
|
|
16212
16233
|
this.offsets,
|
|
16213
16234
|
n,
|
|
@@ -16286,7 +16307,7 @@ class Sl {
|
|
|
16286
16307
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
16287
16308
|
}
|
|
16288
16309
|
}
|
|
16289
|
-
class
|
|
16310
|
+
class zc {
|
|
16290
16311
|
approveTransaction(t) {
|
|
16291
16312
|
throw new Error("Method not implemented.");
|
|
16292
16313
|
}
|
|
@@ -16445,12 +16466,12 @@ class Vc {
|
|
|
16445
16466
|
return [];
|
|
16446
16467
|
}
|
|
16447
16468
|
}
|
|
16448
|
-
var
|
|
16449
|
-
class
|
|
16469
|
+
var El = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(El || {});
|
|
16470
|
+
class Bl extends it {
|
|
16450
16471
|
constructor(t, e, a) {
|
|
16451
16472
|
super(t, e, a);
|
|
16452
16473
|
const n = e.data;
|
|
16453
|
-
this.frameService = new
|
|
16474
|
+
this.frameService = new vl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
16454
16475
|
}
|
|
16455
16476
|
selectVariant(t) {
|
|
16456
16477
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -16619,7 +16640,7 @@ class El extends it {
|
|
|
16619
16640
|
return this.manager.getStepStorage(this.step.stepName);
|
|
16620
16641
|
}
|
|
16621
16642
|
}
|
|
16622
|
-
const
|
|
16643
|
+
const bl = y`
|
|
16623
16644
|
query GetLoggedInCustomer($email: String!) {
|
|
16624
16645
|
customer(emailAddress: $email) {
|
|
16625
16646
|
id
|
|
@@ -16662,21 +16683,21 @@ const Bl = y`
|
|
|
16662
16683
|
total
|
|
16663
16684
|
}
|
|
16664
16685
|
}
|
|
16665
|
-
`,
|
|
16686
|
+
`, Il = y`
|
|
16666
16687
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
16667
16688
|
transactionUpdate(id: $id, designName: $name) {
|
|
16668
16689
|
id
|
|
16669
16690
|
designName
|
|
16670
16691
|
}
|
|
16671
16692
|
}
|
|
16672
|
-
`,
|
|
16693
|
+
`, Dl = y`
|
|
16673
16694
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
16674
16695
|
transactionDuplicate(id: $id, template: $template) {
|
|
16675
16696
|
id
|
|
16676
16697
|
workflowViewerLink
|
|
16677
16698
|
}
|
|
16678
16699
|
}
|
|
16679
|
-
`,
|
|
16700
|
+
`, Pl = y`
|
|
16680
16701
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
16681
16702
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
16682
16703
|
items {
|
|
@@ -16689,7 +16710,7 @@ const Bl = y`
|
|
|
16689
16710
|
total
|
|
16690
16711
|
}
|
|
16691
16712
|
}
|
|
16692
|
-
`,
|
|
16713
|
+
`, Fl = y`
|
|
16693
16714
|
query GetTransactionsForBundle($id: String!) {
|
|
16694
16715
|
bundles(ids: [$id]) {
|
|
16695
16716
|
id
|
|
@@ -16710,21 +16731,21 @@ const Bl = y`
|
|
|
16710
16731
|
}
|
|
16711
16732
|
}
|
|
16712
16733
|
}
|
|
16713
|
-
`,
|
|
16734
|
+
`, xl = y`
|
|
16714
16735
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
16715
16736
|
bundleUpdate(id: $id, name: $name) {
|
|
16716
16737
|
id
|
|
16717
16738
|
name
|
|
16718
16739
|
}
|
|
16719
16740
|
}
|
|
16720
|
-
`,
|
|
16741
|
+
`, kl = y`
|
|
16721
16742
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
16722
16743
|
bundleDuplicate(id: $id, template: $template) {
|
|
16723
16744
|
id
|
|
16724
16745
|
workflowViewerLink
|
|
16725
16746
|
}
|
|
16726
16747
|
}
|
|
16727
|
-
`,
|
|
16748
|
+
`, Ml = y`
|
|
16728
16749
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
16729
16750
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
16730
16751
|
items {
|
|
@@ -16737,43 +16758,43 @@ const Bl = y`
|
|
|
16737
16758
|
total
|
|
16738
16759
|
}
|
|
16739
16760
|
}
|
|
16740
|
-
`,
|
|
16741
|
-
mutation:
|
|
16761
|
+
`, Gc = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
|
|
16762
|
+
mutation: xl,
|
|
16742
16763
|
errorPolicy: "all",
|
|
16743
16764
|
variables: {
|
|
16744
16765
|
id: r,
|
|
16745
16766
|
name: t
|
|
16746
16767
|
},
|
|
16747
16768
|
context: e
|
|
16748
|
-
}),
|
|
16749
|
-
mutation:
|
|
16769
|
+
}), Wc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16770
|
+
mutation: Il,
|
|
16750
16771
|
errorPolicy: "all",
|
|
16751
16772
|
variables: {
|
|
16752
16773
|
id: r,
|
|
16753
16774
|
name: t
|
|
16754
16775
|
}
|
|
16755
|
-
}),
|
|
16756
|
-
mutation:
|
|
16776
|
+
}), jc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16777
|
+
mutation: kl,
|
|
16757
16778
|
errorPolicy: "all",
|
|
16758
16779
|
variables: {
|
|
16759
16780
|
id: r,
|
|
16760
16781
|
template: t
|
|
16761
16782
|
}
|
|
16762
|
-
}),
|
|
16763
|
-
mutation:
|
|
16783
|
+
}), Hc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16784
|
+
mutation: Dl,
|
|
16764
16785
|
errorPolicy: "all",
|
|
16765
16786
|
variables: {
|
|
16766
16787
|
id: r,
|
|
16767
16788
|
template: t
|
|
16768
16789
|
}
|
|
16769
|
-
}),
|
|
16770
|
-
query:
|
|
16790
|
+
}), qc = async (r) => (await b.getShadowGraphqlClient().query({
|
|
16791
|
+
query: bl,
|
|
16771
16792
|
errorPolicy: "all",
|
|
16772
16793
|
variables: {
|
|
16773
16794
|
email: r
|
|
16774
16795
|
}
|
|
16775
|
-
})).data.customer,
|
|
16776
|
-
query:
|
|
16796
|
+
})).data.customer, Yc = async (r, t, e) => await b.getShadowGraphqlClient().query({
|
|
16797
|
+
query: Pl,
|
|
16777
16798
|
errorPolicy: "all",
|
|
16778
16799
|
fetchPolicy: "no-cache",
|
|
16779
16800
|
variables: {
|
|
@@ -16781,15 +16802,15 @@ const Bl = y`
|
|
|
16781
16802
|
offset: e,
|
|
16782
16803
|
limit: t
|
|
16783
16804
|
}
|
|
16784
|
-
}),
|
|
16785
|
-
query:
|
|
16805
|
+
}), Jc = async (r, t) => await b.getShadowGraphqlClient().query({
|
|
16806
|
+
query: Fl,
|
|
16786
16807
|
errorPolicy: "all",
|
|
16787
16808
|
fetchPolicy: "no-cache",
|
|
16788
16809
|
variables: {
|
|
16789
16810
|
id: r
|
|
16790
16811
|
},
|
|
16791
16812
|
context: t
|
|
16792
|
-
}),
|
|
16813
|
+
}), Kc = async (r, t, e) => {
|
|
16793
16814
|
var n;
|
|
16794
16815
|
const a = await b.getShadowGraphqlClient().query({
|
|
16795
16816
|
query: Ia,
|
|
@@ -16813,7 +16834,7 @@ const Bl = y`
|
|
|
16813
16834
|
}
|
|
16814
16835
|
});
|
|
16815
16836
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16816
|
-
},
|
|
16837
|
+
}, _c = async (r, t, e) => {
|
|
16817
16838
|
var n;
|
|
16818
16839
|
const a = await b.getShadowGraphqlClient().query({
|
|
16819
16840
|
query: Ia,
|
|
@@ -16837,7 +16858,7 @@ const Bl = y`
|
|
|
16837
16858
|
}
|
|
16838
16859
|
});
|
|
16839
16860
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16840
|
-
},
|
|
16861
|
+
}, Xc = async (r, t, e) => {
|
|
16841
16862
|
var n;
|
|
16842
16863
|
const a = await b.getShadowGraphqlClient().query({
|
|
16843
16864
|
query: Ia,
|
|
@@ -16857,10 +16878,10 @@ const Bl = y`
|
|
|
16857
16878
|
}
|
|
16858
16879
|
});
|
|
16859
16880
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16860
|
-
},
|
|
16881
|
+
}, Zc = async (r, t, e) => {
|
|
16861
16882
|
var n;
|
|
16862
16883
|
const a = await b.getShadowGraphqlClient().query({
|
|
16863
|
-
query:
|
|
16884
|
+
query: Ml,
|
|
16864
16885
|
errorPolicy: "all",
|
|
16865
16886
|
fetchPolicy: "no-cache",
|
|
16866
16887
|
variables: {
|
|
@@ -16881,7 +16902,7 @@ const Bl = y`
|
|
|
16881
16902
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
16882
16903
|
}
|
|
16883
16904
|
})();
|
|
16884
|
-
var
|
|
16905
|
+
var Tl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Tl || {}), Ql = /* @__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))(Ql || {}), K;
|
|
16885
16906
|
K = { __e: function(r, t, e, a) {
|
|
16886
16907
|
for (var n, i, s; t = t.__; )
|
|
16887
16908
|
if ((n = t.__c) && !n.__)
|
|
@@ -16894,7 +16915,7 @@ K = { __e: function(r, t, e, a) {
|
|
|
16894
16915
|
throw r;
|
|
16895
16916
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
16896
16917
|
var ot, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
|
|
16897
|
-
function
|
|
16918
|
+
function Nl() {
|
|
16898
16919
|
for (var r; r = tr.shift(); )
|
|
16899
16920
|
if (r.__P && r.__H)
|
|
16900
16921
|
try {
|
|
@@ -16914,7 +16935,7 @@ K.__b = function(r) {
|
|
|
16914
16935
|
}, K.diffed = function(r) {
|
|
16915
16936
|
Xa && Xa(r);
|
|
16916
16937
|
var t = r.__c;
|
|
16917
|
-
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) ||
|
|
16938
|
+
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Rl)(Nl)), t.__H.__.forEach(function(e) {
|
|
16918
16939
|
e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
|
|
16919
16940
|
})), qe = ot = null;
|
|
16920
16941
|
}, K.__c = function(r, t) {
|
|
@@ -16941,7 +16962,7 @@ K.__b = function(r) {
|
|
|
16941
16962
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
16942
16963
|
};
|
|
16943
16964
|
var en = typeof requestAnimationFrame == "function";
|
|
16944
|
-
function
|
|
16965
|
+
function Rl(r) {
|
|
16945
16966
|
var t, e = function() {
|
|
16946
16967
|
clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
|
|
16947
16968
|
}, a = setTimeout(e, 100);
|
|
@@ -16957,35 +16978,35 @@ function la(r) {
|
|
|
16957
16978
|
}
|
|
16958
16979
|
export {
|
|
16959
16980
|
da as AddonHandle,
|
|
16960
|
-
|
|
16981
|
+
Nc as ArrayInput,
|
|
16961
16982
|
et as AspectType,
|
|
16962
16983
|
yt as AssetNotFoundError,
|
|
16963
16984
|
he as AssetType,
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16985
|
+
xc as BringForwardCommand,
|
|
16986
|
+
Fc as BringToBackCommand,
|
|
16987
|
+
Pc as BringToFrontCommand,
|
|
16967
16988
|
mr as BundleDesignCreationCartAddMode,
|
|
16968
16989
|
R as CanvasCommand,
|
|
16969
16990
|
se as CollectionProduct,
|
|
16970
16991
|
Ha as ColorOptionGlobalPropertyHandle,
|
|
16971
16992
|
_i as CommandContext,
|
|
16972
|
-
|
|
16973
|
-
|
|
16993
|
+
Ql as ConversionDataType,
|
|
16994
|
+
Tl as ConversionLocation,
|
|
16974
16995
|
W as CreateElementCommand,
|
|
16975
16996
|
Un as CreateLayoutCommand,
|
|
16976
16997
|
vt as DeleteElementCommand,
|
|
16977
16998
|
uo as DigitalContentStepHandle,
|
|
16978
16999
|
Wo as FileUploadGlobalPropertyHandle,
|
|
16979
17000
|
oe as FlowExecutionNodeResult,
|
|
16980
|
-
|
|
16981
|
-
|
|
17001
|
+
cl as FlowExecutionResult,
|
|
17002
|
+
ll as FlowService,
|
|
16982
17003
|
es as FontAlignmentCommand,
|
|
16983
17004
|
Zi as FontColorCommand,
|
|
16984
17005
|
ts as FontSizeCommand,
|
|
16985
17006
|
Va as FontSourceCommand,
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
17007
|
+
vl as FrameService,
|
|
17008
|
+
El as FrameStep,
|
|
17009
|
+
Bl as FrameStepHandle,
|
|
16989
17010
|
Ba as GlobalPropertyHandle,
|
|
16990
17011
|
O as GroupCommand,
|
|
16991
17012
|
no as IllustrationStepHandle,
|
|
@@ -16993,37 +17014,38 @@ export {
|
|
|
16993
17014
|
Ao as InformationStepHandle,
|
|
16994
17015
|
qa as IntegrationProduct,
|
|
16995
17016
|
fr as IntegrationType,
|
|
16996
|
-
|
|
17017
|
+
Ec as LayoutElementFactory,
|
|
16997
17018
|
T as LayoutElementType,
|
|
16998
17019
|
Y as LayoutNotFoundError,
|
|
16999
17020
|
Gt as LayoutRenderingPurpose,
|
|
17000
17021
|
ro as MaterialStepHandle,
|
|
17001
17022
|
fe as MisconfigurationError,
|
|
17002
|
-
|
|
17023
|
+
zc as MockWorkflowManager,
|
|
17003
17024
|
io as ModelStepHandle,
|
|
17004
17025
|
ho as ModuleStepHandle,
|
|
17005
|
-
|
|
17026
|
+
Bc as MoveCommand,
|
|
17006
17027
|
Xn as ObjectInput,
|
|
17007
|
-
|
|
17028
|
+
dl as ObjectInputType,
|
|
17008
17029
|
_n as OptionGlobalPropertyHandle,
|
|
17009
17030
|
ge as OptionNotFoundError,
|
|
17010
17031
|
Dt as ParseError,
|
|
17011
17032
|
so as PictureStepHandle,
|
|
17012
17033
|
pr as ProductCameraRig,
|
|
17013
|
-
|
|
17034
|
+
tl as ProductCollection,
|
|
17035
|
+
Zo as ProductCollectionProductSortKey,
|
|
17014
17036
|
zt as ProductWorkflow,
|
|
17015
17037
|
Ht as PromiseCache,
|
|
17016
17038
|
Pn as PromiseQueue,
|
|
17017
17039
|
oo as QuestionStepHandle,
|
|
17018
17040
|
Dn as QueueablePromise,
|
|
17019
|
-
|
|
17041
|
+
Ic as ResizeCommand,
|
|
17020
17042
|
Wt as ResourceNotFoundError,
|
|
17021
|
-
|
|
17043
|
+
bc as RotateCommand,
|
|
17022
17044
|
H as ScaleAxis,
|
|
17023
|
-
|
|
17045
|
+
kc as SendBackwardsCommand,
|
|
17024
17046
|
lo as ShapeStepHandle,
|
|
17025
17047
|
gr as ShareActionType,
|
|
17026
|
-
|
|
17048
|
+
Oc as SpiffCommerceClient,
|
|
17027
17049
|
me as StakeholderType,
|
|
17028
17050
|
hr as StepAspectType,
|
|
17029
17051
|
it as StepHandle,
|
|
@@ -17031,95 +17053,95 @@ export {
|
|
|
17031
17053
|
kt as TextAlgorithm,
|
|
17032
17054
|
rs as TextChangeCommand,
|
|
17033
17055
|
jo as TextGlobalPropertyHandle,
|
|
17034
|
-
|
|
17056
|
+
Qc as TextInput,
|
|
17035
17057
|
co as TextStepHandle,
|
|
17036
|
-
|
|
17037
|
-
|
|
17058
|
+
al as Transform,
|
|
17059
|
+
el as TransformCollection,
|
|
17038
17060
|
z as UnhandledBehaviorError,
|
|
17039
17061
|
Cr as UnitOfMeasurement,
|
|
17040
|
-
|
|
17062
|
+
Dc as UpdateImageSourceCommand,
|
|
17041
17063
|
st as Variant,
|
|
17042
17064
|
bo as WorkflowExperienceEventType,
|
|
17043
17065
|
Io as WorkflowExperienceImpl,
|
|
17044
17066
|
U as assetService,
|
|
17045
17067
|
Gr as browserColorToHex,
|
|
17046
|
-
|
|
17068
|
+
Sc as cmPerPixel,
|
|
17047
17069
|
wo as createDesign,
|
|
17048
|
-
|
|
17049
|
-
|
|
17070
|
+
Cc as currentDirection,
|
|
17071
|
+
sc as dataUrlFromExternalUrl,
|
|
17050
17072
|
je as designService,
|
|
17051
17073
|
Ae as determineCorrectFontSizeAndLines,
|
|
17052
|
-
|
|
17074
|
+
Ln as digitalContentStepService,
|
|
17053
17075
|
dt as domParser,
|
|
17054
|
-
|
|
17055
|
-
|
|
17076
|
+
jc as duplicateBundle,
|
|
17077
|
+
Hc as duplicateTransaction,
|
|
17056
17078
|
at as fetchAsString,
|
|
17057
|
-
|
|
17058
|
-
|
|
17059
|
-
|
|
17060
|
-
|
|
17079
|
+
Ac as findAngle,
|
|
17080
|
+
$ as findElement,
|
|
17081
|
+
cc as findPmsColors,
|
|
17082
|
+
$t as frameDataCache,
|
|
17061
17083
|
Ct as frameStepService,
|
|
17062
17084
|
Q as generate,
|
|
17063
17085
|
Oo as generateCommands,
|
|
17064
17086
|
lt as generateSVGWithUnknownColors,
|
|
17065
|
-
|
|
17087
|
+
Tc as generateStateFromDesignInputSteps,
|
|
17066
17088
|
De as getAttributesFromArrayBuffer,
|
|
17067
|
-
|
|
17068
|
-
|
|
17089
|
+
dc as getAxisAlignedBoundingBox,
|
|
17090
|
+
Sl as getBoundedOffsets,
|
|
17069
17091
|
Lc as getBundleThemeConfiguration,
|
|
17070
|
-
|
|
17071
|
-
|
|
17072
|
-
|
|
17092
|
+
qc as getCustomer,
|
|
17093
|
+
Yc as getCustomerBundles,
|
|
17094
|
+
wc as getElementVertices,
|
|
17073
17095
|
xe as getFrameData,
|
|
17074
|
-
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17096
|
+
yl as getIntegration,
|
|
17097
|
+
fc as getNEPoint,
|
|
17098
|
+
gc as getNWPoint,
|
|
17099
|
+
_c as getOrderedTransactions,
|
|
17100
|
+
$c as getOverrideThemeConfiguration,
|
|
17101
|
+
mc as getPointOfRotation,
|
|
17102
|
+
pc as getSEPoint,
|
|
17081
17103
|
wa as getSvgElement,
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
|
|
17104
|
+
Zc as getTemplateBundles,
|
|
17105
|
+
Xc as getTemplateTransactions,
|
|
17106
|
+
Uc as getTransaction,
|
|
17107
|
+
Vc as getTransactionThemeConfiguration,
|
|
17108
|
+
Jc as getTransactionsForBundle,
|
|
17109
|
+
hc as getTrueCoordinates,
|
|
17110
|
+
Kc as getUnorderedTransactions,
|
|
17111
|
+
Rc as getWorkflow,
|
|
17090
17112
|
Zn as getWorkflows,
|
|
17091
17113
|
b as graphQlManager,
|
|
17092
17114
|
de as illustrationStepService,
|
|
17093
|
-
|
|
17115
|
+
uc as isCloseToValue,
|
|
17094
17116
|
Tt as loadFont,
|
|
17095
|
-
|
|
17117
|
+
lc as matchHexToPms,
|
|
17096
17118
|
Vn as materialStepService,
|
|
17097
17119
|
Xo as metafieldManager,
|
|
17098
|
-
|
|
17120
|
+
yc as mmPerPixel,
|
|
17099
17121
|
zn as modelStepService,
|
|
17100
17122
|
fa as modifySVGColors,
|
|
17101
17123
|
Gn as moduleStepService,
|
|
17102
|
-
|
|
17103
|
-
|
|
17124
|
+
Gc as nameBundle,
|
|
17125
|
+
Wc as nameTransaction,
|
|
17104
17126
|
X as optionService,
|
|
17105
|
-
|
|
17127
|
+
vc as outlineFontsInSvg,
|
|
17106
17128
|
At as patternImageDataCache,
|
|
17107
17129
|
k as persistenceService,
|
|
17108
17130
|
Wn as pictureStepService,
|
|
17109
|
-
|
|
17131
|
+
oc as pmsToRgb,
|
|
17110
17132
|
jn as questionStepService,
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17133
|
+
ic as registerFetchImplementation,
|
|
17134
|
+
rc as registerWindowImplementation,
|
|
17135
|
+
$a as rehydrateSerializedLayout,
|
|
17136
|
+
Lr as rgbToPms,
|
|
17115
17137
|
re as rotateAroundPoint,
|
|
17116
17138
|
ma as sanitizeSvgTree,
|
|
17117
17139
|
kr as setBearerAuthenticationToken,
|
|
17118
17140
|
mn as setCanvasModule,
|
|
17119
|
-
|
|
17141
|
+
Lt as shapeStepService,
|
|
17120
17142
|
ss as shortenUrl,
|
|
17121
17143
|
mt as spiffCoreConfiguration,
|
|
17122
|
-
|
|
17144
|
+
Mc as stepAspectValuesToDesignInputSteps,
|
|
17123
17145
|
Qa as svgColorValueToDefinition,
|
|
17124
17146
|
Rn as svgStringDimensions,
|
|
17125
17147
|
Aa as svgToDataUrl,
|