@spiffcommerce/core 26.26.1-beta.5514dc7e-680a-53bf-8556-17b54be9d2ae → 26.27.0-beta.176e93f6-6744-565a-908b-e1616c48500c
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 +15 -6
- package/dist/index.js +127 -111
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +321 -297
- 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 wt = new Sr();
|
|
160
160
|
let _e, Xe;
|
|
161
|
-
function
|
|
161
|
+
function nc(r) {
|
|
162
162
|
_e = r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function rc(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
|
+
}, ic = 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) => {
|
|
@@ -3145,16 +3145,16 @@ const Nr = (r) => new Promise((t) => {
|
|
|
3145
3145
|
parseInt(r.substring(2, 4), 16),
|
|
3146
3146
|
parseInt(r.substring(4, 6), 16)
|
|
3147
3147
|
]);
|
|
3148
|
-
function
|
|
3148
|
+
function sc(r) {
|
|
3149
3149
|
const t = jt.indexOf(r);
|
|
3150
3150
|
return t >= 0 ? Ft[t] : "";
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function $r(r) {
|
|
3153
3153
|
const t = Ft.indexOf(r);
|
|
3154
3154
|
return t >= 0 ? jt[t] : "";
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3157
|
-
const e = [], a = [], n =
|
|
3156
|
+
function oc(r, t = 64) {
|
|
3157
|
+
const e = [], a = [], n = $r(r);
|
|
3158
3158
|
n && e.push({
|
|
3159
3159
|
pms: n,
|
|
3160
3160
|
hex: r,
|
|
@@ -3171,8 +3171,8 @@ function sc(r, t = 64) {
|
|
|
3171
3171
|
a[A] <= t && !e.some((u) => u.pms === jt[A]) && e.push({ pms: jt[A], hex: Ft[A], distance: a[A] });
|
|
3172
3172
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3173
3173
|
}
|
|
3174
|
-
const
|
|
3175
|
-
function
|
|
3174
|
+
const Lr = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr(Lr, { keys: ["pms"] });
|
|
3175
|
+
function lc(r, t) {
|
|
3176
3176
|
return Vr.search(r, t ? { limit: t } : void 0);
|
|
3177
3177
|
}
|
|
3178
3178
|
let Qt = null;
|
|
@@ -5374,7 +5374,7 @@ const Q = () => {
|
|
|
5374
5374
|
]
|
|
5375
5375
|
}
|
|
5376
5376
|
);
|
|
5377
|
-
},
|
|
5377
|
+
}, cc = (r, t, e, a, n) => {
|
|
5378
5378
|
const i = gt(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));
|
|
5379
5379
|
return {
|
|
5380
5380
|
minX: l - v,
|
|
@@ -5382,25 +5382,25 @@ const Q = () => {
|
|
|
5382
5382
|
minY: c - S,
|
|
5383
5383
|
maxY: c + S
|
|
5384
5384
|
};
|
|
5385
|
-
},
|
|
5385
|
+
}, dc = (r, t, e) => {
|
|
5386
5386
|
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));
|
|
5387
5387
|
return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
|
|
5388
|
-
}, gt = (r) => r * (Math.PI / 180),
|
|
5388
|
+
}, gt = (r) => r * (Math.PI / 180), Ac = (r, t, e) => Math.abs(r - t) < e, uc = (r, t, e) => {
|
|
5389
5389
|
const a = Math.sin(gt(e)), n = Math.cos(gt(e));
|
|
5390
5390
|
return {
|
|
5391
5391
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5392
5392
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5393
5393
|
};
|
|
5394
|
-
},
|
|
5394
|
+
}, hc = (r, t) => ({
|
|
5395
5395
|
x: (r.x + t.x) / 2,
|
|
5396
5396
|
y: (r.y + t.y) / 2
|
|
5397
|
-
}),
|
|
5397
|
+
}), mc = (r, t, e, a) => ({
|
|
5398
5398
|
x: r.x + (t == null ? void 0 : t.x) * e,
|
|
5399
5399
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5400
|
-
}),
|
|
5400
|
+
}), gc = (r, t, e, a) => ({
|
|
5401
5401
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5402
5402
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5403
|
-
}),
|
|
5403
|
+
}), fc = (r, t, e, a) => ({
|
|
5404
5404
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5405
5405
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5406
5406
|
}), bt = (r) => {
|
|
@@ -5422,7 +5422,7 @@ const Q = () => {
|
|
|
5422
5422
|
case H.Southwest:
|
|
5423
5423
|
return H.Northwest;
|
|
5424
5424
|
}
|
|
5425
|
-
},
|
|
5425
|
+
}, pc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, Cc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5426
5426
|
const a = gt(r.rotation), n = {
|
|
5427
5427
|
x: t.x + r.x * e.x,
|
|
5428
5428
|
y: t.x + r.y * e.y
|
|
@@ -5452,7 +5452,7 @@ const Q = () => {
|
|
|
5452
5452
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5453
5453
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5454
5454
|
};
|
|
5455
|
-
},
|
|
5455
|
+
}, wc = 0.352778, yc = 0.035277, Fn = (r) => {
|
|
5456
5456
|
const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5457
5457
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5458
5458
|
"g",
|
|
@@ -5666,7 +5666,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5666
5666
|
}
|
|
5667
5667
|
})();
|
|
5668
5668
|
return Oe.set(r, e), e;
|
|
5669
|
-
},
|
|
5669
|
+
}, $i = (r) => {
|
|
5670
5670
|
const t = An(r), e = Je(t);
|
|
5671
5671
|
return aa(r, e), e;
|
|
5672
5672
|
}, St = (r) => {
|
|
@@ -5677,7 +5677,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5677
5677
|
}, aa = (r, t) => {
|
|
5678
5678
|
const e = new Oi(t);
|
|
5679
5679
|
return kn.set(r, e), e;
|
|
5680
|
-
},
|
|
5680
|
+
}, Sc = async (r) => {
|
|
5681
5681
|
const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5682
5682
|
a.querySelectorAll("style").forEach((d) => {
|
|
5683
5683
|
var u;
|
|
@@ -5765,7 +5765,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5765
5765
|
if (l < 0)
|
|
5766
5766
|
throw new Error(`No max width calculated for text: ${o}.`);
|
|
5767
5767
|
return { lines: o, width: l };
|
|
5768
|
-
},
|
|
5768
|
+
}, Li = (r, t, e, a, n, i) => {
|
|
5769
5769
|
const s = (i ?? Ca) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Mn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
|
|
5770
5770
|
return Math.min(A, d);
|
|
5771
5771
|
}, Vi = (r, t, e, a) => {
|
|
@@ -5788,7 +5788,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5788
5788
|
lines: o,
|
|
5789
5789
|
requiredHeight: t.height,
|
|
5790
5790
|
requiredWidth: pe(o, t.width, s, n),
|
|
5791
|
-
fontSize:
|
|
5791
|
+
fontSize: Li(o, n, i, t.width, t.height, a)
|
|
5792
5792
|
} : Ra(t, r, t.fontSize, s, n, a);
|
|
5793
5793
|
}, zi = (r, t, e, a, n) => {
|
|
5794
5794
|
const s = St(t.assetUrl).getFont();
|
|
@@ -6139,7 +6139,7 @@ const Zt = (r) => {
|
|
|
6139
6139
|
if (r.defaultVariant !== void 0)
|
|
6140
6140
|
return t.find((e) => e.id === r.defaultVariant);
|
|
6141
6141
|
}
|
|
6142
|
-
}, At = /* @__PURE__ */ new Map(),
|
|
6142
|
+
}, At = /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map(), Nn = async (r, t) => {
|
|
6143
6143
|
if (!t) {
|
|
6144
6144
|
if (!r)
|
|
6145
6145
|
throw new Error("No region or src supplied. Cannot construct frame!");
|
|
@@ -6163,11 +6163,11 @@ const Zt = (r) => {
|
|
|
6163
6163
|
throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
|
|
6164
6164
|
return e;
|
|
6165
6165
|
}, xe = async (r) => {
|
|
6166
|
-
if (
|
|
6167
|
-
return
|
|
6166
|
+
if ($e.has(r))
|
|
6167
|
+
return $e.get(r);
|
|
6168
6168
|
const e = (async () => {
|
|
6169
|
-
if (
|
|
6170
|
-
return
|
|
6169
|
+
if ($t.has(r))
|
|
6170
|
+
return $t.get(r);
|
|
6171
6171
|
await new Promise((u) => setTimeout(u, 0));
|
|
6172
6172
|
const n = dt().parseFromString(r, "image/svg+xml"), i = n.querySelector("svg");
|
|
6173
6173
|
if (!i)
|
|
@@ -6185,7 +6185,7 @@ const Zt = (r) => {
|
|
|
6185
6185
|
width: c,
|
|
6186
6186
|
height: l
|
|
6187
6187
|
};
|
|
6188
|
-
return
|
|
6188
|
+
return $t.set(u, h), h;
|
|
6189
6189
|
}
|
|
6190
6190
|
if (A) {
|
|
6191
6191
|
const u = A.getAttribute("d");
|
|
@@ -6196,11 +6196,11 @@ const Zt = (r) => {
|
|
|
6196
6196
|
width: c,
|
|
6197
6197
|
height: l
|
|
6198
6198
|
};
|
|
6199
|
-
return
|
|
6199
|
+
return $t.set(u, h), h;
|
|
6200
6200
|
}
|
|
6201
6201
|
throw new Error("Malformed frame SVG");
|
|
6202
6202
|
})();
|
|
6203
|
-
return
|
|
6203
|
+
return $e.set(r, e), e;
|
|
6204
6204
|
}, Sa = (r, t, e, a) => {
|
|
6205
6205
|
const n = t.width / t.height, i = r.width / r.height;
|
|
6206
6206
|
let s;
|
|
@@ -6262,9 +6262,9 @@ const Zt = (r) => {
|
|
|
6262
6262
|
at(r).then((e) => {
|
|
6263
6263
|
t(e);
|
|
6264
6264
|
}).catch((e) => console.error(e));
|
|
6265
|
-
}),
|
|
6266
|
-
if (
|
|
6267
|
-
return
|
|
6265
|
+
}), Le = /* @__PURE__ */ new Map(), qt = async (r) => {
|
|
6266
|
+
if (Le.has(r))
|
|
6267
|
+
return Le.get(r);
|
|
6268
6268
|
const t = async (n) => new Promise((i, s) => {
|
|
6269
6269
|
try {
|
|
6270
6270
|
if (!(!!URL && !!URL.createObjectURL))
|
|
@@ -6296,7 +6296,7 @@ const Zt = (r) => {
|
|
|
6296
6296
|
A.resize(m, m);
|
|
6297
6297
|
return await A.render(), await t(c);
|
|
6298
6298
|
})();
|
|
6299
|
-
return
|
|
6299
|
+
return Le.set(r, a), a;
|
|
6300
6300
|
}, Ut = async (r, t, e, a) => {
|
|
6301
6301
|
const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
|
|
6302
6302
|
width: r.layoutState.layout.width,
|
|
@@ -6329,7 +6329,7 @@ const Zt = (r) => {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
return o;
|
|
6331
6331
|
};
|
|
6332
|
-
class
|
|
6332
|
+
class vc {
|
|
6333
6333
|
static async getFrame(t, e) {
|
|
6334
6334
|
const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
|
|
6335
6335
|
return {
|
|
@@ -6485,15 +6485,15 @@ class Sc {
|
|
|
6485
6485
|
};
|
|
6486
6486
|
}
|
|
6487
6487
|
}
|
|
6488
|
-
class
|
|
6488
|
+
class L extends Error {
|
|
6489
6489
|
constructor() {
|
|
6490
|
-
super("Element not found!"), Object.setPrototypeOf(this,
|
|
6490
|
+
super("Element not found!"), Object.setPrototypeOf(this, L.prototype);
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
|
-
const
|
|
6493
|
+
const $ = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
6494
6494
|
const e = Object.values(t).find((a) => a.elements.some((n) => n.id === r));
|
|
6495
6495
|
if (!e)
|
|
6496
|
-
throw new
|
|
6496
|
+
throw new L();
|
|
6497
6497
|
return e;
|
|
6498
6498
|
}, Z = (r, t) => {
|
|
6499
6499
|
const e = [...t.elements.filter((n) => n.id !== r.id), r], a = ya(e);
|
|
@@ -6502,7 +6502,7 @@ const L = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
|
6502
6502
|
elements: a,
|
|
6503
6503
|
modificationID: Q()
|
|
6504
6504
|
};
|
|
6505
|
-
},
|
|
6505
|
+
}, $a = async (r) => {
|
|
6506
6506
|
var a;
|
|
6507
6507
|
const t = [...Object.keys(r.layouts)], e = [...new Set(t)];
|
|
6508
6508
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -6564,7 +6564,7 @@ class R {
|
|
|
6564
6564
|
this.oldState = t;
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
|
-
class
|
|
6567
|
+
class La extends R {
|
|
6568
6568
|
constructor(t) {
|
|
6569
6569
|
super(), this.serializableWorkflow = t;
|
|
6570
6570
|
}
|
|
@@ -6575,15 +6575,15 @@ class $a extends R {
|
|
|
6575
6575
|
};
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
|
-
class
|
|
6578
|
+
class Ec extends R {
|
|
6579
6579
|
constructor(t, e, a) {
|
|
6580
6580
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6581
6581
|
}
|
|
6582
6582
|
apply(t) {
|
|
6583
6583
|
this.oldState = t;
|
|
6584
|
-
const e =
|
|
6584
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6585
6585
|
if (!e.id)
|
|
6586
|
-
throw new
|
|
6586
|
+
throw new L();
|
|
6587
6587
|
const a = {
|
|
6588
6588
|
...e,
|
|
6589
6589
|
x: this.x,
|
|
@@ -6598,15 +6598,15 @@ class vc extends R {
|
|
|
6598
6598
|
};
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
|
-
class
|
|
6601
|
+
class Bc extends R {
|
|
6602
6602
|
constructor(t, e) {
|
|
6603
6603
|
super(), this.id = t, this.angle = e;
|
|
6604
6604
|
}
|
|
6605
6605
|
apply(t) {
|
|
6606
6606
|
this.oldState = t;
|
|
6607
|
-
const e =
|
|
6607
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6608
6608
|
if (!e.id)
|
|
6609
|
-
throw new
|
|
6609
|
+
throw new L();
|
|
6610
6610
|
const a = {
|
|
6611
6611
|
...e,
|
|
6612
6612
|
rotation: this.angle
|
|
@@ -6620,15 +6620,15 @@ class Ec extends R {
|
|
|
6620
6620
|
};
|
|
6621
6621
|
}
|
|
6622
6622
|
}
|
|
6623
|
-
class
|
|
6623
|
+
class bc extends R {
|
|
6624
6624
|
constructor(t, e, a) {
|
|
6625
6625
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6626
6626
|
}
|
|
6627
6627
|
apply(t) {
|
|
6628
6628
|
this.oldState = t;
|
|
6629
|
-
const e =
|
|
6629
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6630
6630
|
if (!e.id)
|
|
6631
|
-
throw new
|
|
6631
|
+
throw new L();
|
|
6632
6632
|
let a = {
|
|
6633
6633
|
...e,
|
|
6634
6634
|
width: this.width,
|
|
@@ -6765,9 +6765,9 @@ class Xi extends R {
|
|
|
6765
6765
|
}
|
|
6766
6766
|
apply(t) {
|
|
6767
6767
|
this.oldState = t;
|
|
6768
|
-
const e =
|
|
6768
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6769
6769
|
if (!e.id)
|
|
6770
|
-
throw new
|
|
6770
|
+
throw new L();
|
|
6771
6771
|
const a = {
|
|
6772
6772
|
...e,
|
|
6773
6773
|
fill: this.color,
|
|
@@ -6789,9 +6789,9 @@ class Ve extends R {
|
|
|
6789
6789
|
}
|
|
6790
6790
|
apply(t) {
|
|
6791
6791
|
this.oldState = t;
|
|
6792
|
-
const e =
|
|
6792
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6793
6793
|
if (!e.id)
|
|
6794
|
-
throw new
|
|
6794
|
+
throw new L();
|
|
6795
6795
|
const a = {
|
|
6796
6796
|
...e,
|
|
6797
6797
|
textFillImage: this.imageFill
|
|
@@ -6811,9 +6811,9 @@ class Zi extends R {
|
|
|
6811
6811
|
}
|
|
6812
6812
|
apply(t) {
|
|
6813
6813
|
this.oldState = t;
|
|
6814
|
-
const e =
|
|
6814
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6815
6815
|
if (!e.id)
|
|
6816
|
-
throw new
|
|
6816
|
+
throw new L();
|
|
6817
6817
|
const a = {
|
|
6818
6818
|
...e,
|
|
6819
6819
|
fontSize: this.size
|
|
@@ -6833,9 +6833,9 @@ class Va extends R {
|
|
|
6833
6833
|
}
|
|
6834
6834
|
apply(t) {
|
|
6835
6835
|
this.oldState = t;
|
|
6836
|
-
const e =
|
|
6836
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6837
6837
|
if (!e.id)
|
|
6838
|
-
throw new
|
|
6838
|
+
throw new L();
|
|
6839
6839
|
const a = {
|
|
6840
6840
|
...e,
|
|
6841
6841
|
fontData: this.fontData
|
|
@@ -6855,9 +6855,9 @@ class ts extends R {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
apply(t) {
|
|
6857
6857
|
this.oldState = t;
|
|
6858
|
-
const e =
|
|
6858
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6859
6859
|
if (!e.id)
|
|
6860
|
-
throw new
|
|
6860
|
+
throw new L();
|
|
6861
6861
|
const a = {
|
|
6862
6862
|
...e,
|
|
6863
6863
|
align: this.align
|
|
@@ -6913,9 +6913,9 @@ class as extends R {
|
|
|
6913
6913
|
}
|
|
6914
6914
|
apply(t) {
|
|
6915
6915
|
this.oldState = t;
|
|
6916
|
-
const e =
|
|
6916
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6917
6917
|
if (!e.id)
|
|
6918
|
-
throw new
|
|
6918
|
+
throw new L();
|
|
6919
6919
|
const a = {
|
|
6920
6920
|
...e,
|
|
6921
6921
|
useThreshold: this.useThreshold,
|
|
@@ -6932,15 +6932,15 @@ class as extends R {
|
|
|
6932
6932
|
};
|
|
6933
6933
|
}
|
|
6934
6934
|
}
|
|
6935
|
-
class
|
|
6935
|
+
class Ic extends R {
|
|
6936
6936
|
constructor(t, e) {
|
|
6937
6937
|
super(), this.id = t, this.src = e;
|
|
6938
6938
|
}
|
|
6939
6939
|
apply(t) {
|
|
6940
6940
|
this.oldState = t;
|
|
6941
|
-
const e =
|
|
6941
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6942
6942
|
if (!e.id)
|
|
6943
|
-
throw new
|
|
6943
|
+
throw new L();
|
|
6944
6944
|
const a = {
|
|
6945
6945
|
...e,
|
|
6946
6946
|
src: this.src
|
|
@@ -6960,9 +6960,9 @@ class ns extends R {
|
|
|
6960
6960
|
}
|
|
6961
6961
|
apply(t) {
|
|
6962
6962
|
this.oldState = t;
|
|
6963
|
-
const e =
|
|
6963
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6964
6964
|
if (!e.id)
|
|
6965
|
-
throw new
|
|
6965
|
+
throw new L();
|
|
6966
6966
|
const a = _(e.id, Object.values(t.layouts)), n = Z(Xt(e, this.text, e), a);
|
|
6967
6967
|
return {
|
|
6968
6968
|
...t,
|
|
@@ -6979,9 +6979,9 @@ class ze extends R {
|
|
|
6979
6979
|
}
|
|
6980
6980
|
apply(t) {
|
|
6981
6981
|
this.oldState = t;
|
|
6982
|
-
const e =
|
|
6982
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
6983
6983
|
if (!e.id)
|
|
6984
|
-
throw new
|
|
6984
|
+
throw new L();
|
|
6985
6985
|
const a = {
|
|
6986
6986
|
...e,
|
|
6987
6987
|
strokeColor: this.strokeColor,
|
|
@@ -7002,9 +7002,9 @@ class ia extends R {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
apply(t) {
|
|
7004
7004
|
this.oldState = t;
|
|
7005
|
-
const e =
|
|
7005
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7006
7006
|
if (!e.id)
|
|
7007
|
-
throw new
|
|
7007
|
+
throw new L();
|
|
7008
7008
|
const a = e.colors || {}, n = a[this.className];
|
|
7009
7009
|
typeof this.fill == "string" ? a[this.className] = {
|
|
7010
7010
|
browserValue: this.fill,
|
|
@@ -7034,9 +7034,9 @@ class rs extends R {
|
|
|
7034
7034
|
}
|
|
7035
7035
|
apply(t) {
|
|
7036
7036
|
this.oldState = t;
|
|
7037
|
-
const e =
|
|
7037
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7038
7038
|
if (!e.id)
|
|
7039
|
-
throw new
|
|
7039
|
+
throw new L();
|
|
7040
7040
|
const a = {
|
|
7041
7041
|
...e,
|
|
7042
7042
|
svg: this.svgBody,
|
|
@@ -7051,7 +7051,7 @@ class rs extends R {
|
|
|
7051
7051
|
};
|
|
7052
7052
|
}
|
|
7053
7053
|
}
|
|
7054
|
-
class
|
|
7054
|
+
class Dc extends R {
|
|
7055
7055
|
/**
|
|
7056
7056
|
* @param id The targeted element to bring to the front.
|
|
7057
7057
|
*/
|
|
@@ -7059,8 +7059,8 @@ class Ic extends R {
|
|
|
7059
7059
|
super(), this.id = t;
|
|
7060
7060
|
}
|
|
7061
7061
|
apply(t) {
|
|
7062
|
-
if (this.oldState = t,
|
|
7063
|
-
throw new
|
|
7062
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7063
|
+
throw new L();
|
|
7064
7064
|
const a = Object.values(t.layouts).find((s) => s.elements.find((o) => o.id === this.id));
|
|
7065
7065
|
if (!a)
|
|
7066
7066
|
throw new Error("Layout missing from state!");
|
|
@@ -7080,7 +7080,7 @@ class Ic extends R {
|
|
|
7080
7080
|
};
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
|
-
class
|
|
7083
|
+
class Pc extends R {
|
|
7084
7084
|
/**
|
|
7085
7085
|
* @param id The targeted element to bring to the back.
|
|
7086
7086
|
*/
|
|
@@ -7089,9 +7089,9 @@ class Dc extends R {
|
|
|
7089
7089
|
}
|
|
7090
7090
|
apply(t) {
|
|
7091
7091
|
this.oldState = t;
|
|
7092
|
-
const e =
|
|
7092
|
+
const e = $(this.id, Object.values(t.layouts));
|
|
7093
7093
|
if (!e.id)
|
|
7094
|
-
throw new
|
|
7094
|
+
throw new L();
|
|
7095
7095
|
const a = Object.values(t.layouts).find((o) => o.elements.find((l) => l.id === this.id));
|
|
7096
7096
|
if (!a)
|
|
7097
7097
|
throw new Error("Layout missing from state!");
|
|
@@ -7111,7 +7111,7 @@ class Dc extends R {
|
|
|
7111
7111
|
};
|
|
7112
7112
|
}
|
|
7113
7113
|
}
|
|
7114
|
-
class
|
|
7114
|
+
class Fc extends R {
|
|
7115
7115
|
/**
|
|
7116
7116
|
* @param id The targeted element to bring to the front.
|
|
7117
7117
|
*/
|
|
@@ -7119,8 +7119,8 @@ class Pc extends R {
|
|
|
7119
7119
|
super(), this.id = t;
|
|
7120
7120
|
}
|
|
7121
7121
|
apply(t) {
|
|
7122
|
-
if (this.oldState = t,
|
|
7123
|
-
throw new
|
|
7122
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7123
|
+
throw new L();
|
|
7124
7124
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7125
7125
|
if (!a)
|
|
7126
7126
|
throw new Error("Layout missing from state!");
|
|
@@ -7138,7 +7138,7 @@ class Pc extends R {
|
|
|
7138
7138
|
};
|
|
7139
7139
|
}
|
|
7140
7140
|
}
|
|
7141
|
-
class
|
|
7141
|
+
class xc extends R {
|
|
7142
7142
|
/**
|
|
7143
7143
|
* @param id The targeted element to bring to the front.
|
|
7144
7144
|
*/
|
|
@@ -7146,8 +7146,8 @@ class Fc extends R {
|
|
|
7146
7146
|
super(), this.id = t;
|
|
7147
7147
|
}
|
|
7148
7148
|
apply(t) {
|
|
7149
|
-
if (this.oldState = t,
|
|
7150
|
-
throw new
|
|
7149
|
+
if (this.oldState = t, !$(this.id, Object.values(t.layouts)).id)
|
|
7150
|
+
throw new L();
|
|
7151
7151
|
const a = Object.values(t.layouts).find((l) => l.elements.find((c) => c.id === this.id));
|
|
7152
7152
|
if (!a)
|
|
7153
7153
|
throw new Error("Layout missing from state!");
|
|
@@ -7280,7 +7280,7 @@ const is = async (r) => {
|
|
|
7280
7280
|
throw console.error(e), new Be("Failed to shorten URL, see console.");
|
|
7281
7281
|
}
|
|
7282
7282
|
};
|
|
7283
|
-
class
|
|
7283
|
+
class $n {
|
|
7284
7284
|
async poll() {
|
|
7285
7285
|
try {
|
|
7286
7286
|
if (await this.predicate()) {
|
|
@@ -7327,7 +7327,7 @@ class ss {
|
|
|
7327
7327
|
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;
|
|
7328
7328
|
return { asset: h, link: m };
|
|
7329
7329
|
}, s = await new Promise((h, m) => {
|
|
7330
|
-
new
|
|
7330
|
+
new $n(
|
|
7331
7331
|
async () => !!(await i()).link,
|
|
7332
7332
|
async () => {
|
|
7333
7333
|
const g = await i();
|
|
@@ -7395,7 +7395,7 @@ class ss {
|
|
|
7395
7395
|
} };
|
|
7396
7396
|
}
|
|
7397
7397
|
}
|
|
7398
|
-
const
|
|
7398
|
+
const Ln = new ss();
|
|
7399
7399
|
class we {
|
|
7400
7400
|
constructor() {
|
|
7401
7401
|
this.frameSourceSvg = async (t, e) => {
|
|
@@ -7517,7 +7517,7 @@ class we {
|
|
|
7517
7517
|
const o = e.fileLink || "";
|
|
7518
7518
|
return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
|
|
7519
7519
|
a.addPoller(
|
|
7520
|
-
new
|
|
7520
|
+
new $n(
|
|
7521
7521
|
async () => {
|
|
7522
7522
|
var h;
|
|
7523
7523
|
const A = (h = (await U.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
|
|
@@ -7819,7 +7819,7 @@ class os {
|
|
|
7819
7819
|
if (a.length === 0)
|
|
7820
7820
|
return [];
|
|
7821
7821
|
try {
|
|
7822
|
-
return
|
|
7822
|
+
return $(
|
|
7823
7823
|
a[0].id,
|
|
7824
7824
|
e.getAllLayoutData()
|
|
7825
7825
|
).colors;
|
|
@@ -7904,7 +7904,7 @@ class os {
|
|
|
7904
7904
|
var h, m;
|
|
7905
7905
|
if (e.length === 0)
|
|
7906
7906
|
return;
|
|
7907
|
-
const s =
|
|
7907
|
+
const s = $(
|
|
7908
7908
|
e[0].id,
|
|
7909
7909
|
n().map((g) => g.layoutState)
|
|
7910
7910
|
), o = { ...s.colors }, l = {};
|
|
@@ -8631,7 +8631,7 @@ class hs {
|
|
|
8631
8631
|
}
|
|
8632
8632
|
}
|
|
8633
8633
|
}
|
|
8634
|
-
const
|
|
8634
|
+
const Lt = new hs();
|
|
8635
8635
|
class ms {
|
|
8636
8636
|
constructor() {
|
|
8637
8637
|
this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
|
|
@@ -8794,7 +8794,7 @@ class ps {
|
|
|
8794
8794
|
return null;
|
|
8795
8795
|
}
|
|
8796
8796
|
findLayoutElements(t, e) {
|
|
8797
|
-
return t.getRegionElements(e.stepName).map((i) =>
|
|
8797
|
+
return t.getRegionElements(e.stepName).map((i) => $(i.id, t.getAllLayoutData()));
|
|
8798
8798
|
}
|
|
8799
8799
|
/**
|
|
8800
8800
|
* Get the colors that can be used for a given text step.
|
|
@@ -9441,7 +9441,7 @@ class Is extends Cs {
|
|
|
9441
9441
|
return this.svgElement(t, e);
|
|
9442
9442
|
}
|
|
9443
9443
|
svgElement(t, e) {
|
|
9444
|
-
const a =
|
|
9444
|
+
const a = $i(ws), 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 = () => {
|
|
9445
9445
|
const w = tt("g");
|
|
9446
9446
|
w.classList.add("module-text-group");
|
|
9447
9447
|
const v = tt("defs");
|
|
@@ -9768,12 +9768,19 @@ const Fs = y`
|
|
|
9768
9768
|
`, Ts = y`
|
|
9769
9769
|
query GetProductCollectionForFilteredProducts(
|
|
9770
9770
|
$id: String!
|
|
9771
|
-
$filters: ProductCollectionProductFilterInput
|
|
9771
|
+
$filters: ProductCollectionProductFilterInput
|
|
9772
9772
|
$tags: ProductCollectionProductTagFilterInput
|
|
9773
|
+
$sortKey: ProductCollectionProductSortKey
|
|
9774
|
+
$sortDescending: Boolean
|
|
9773
9775
|
) {
|
|
9774
9776
|
productCollections(ids: [$id]) {
|
|
9775
9777
|
id
|
|
9776
|
-
productCollectionProducts(
|
|
9778
|
+
productCollectionProducts(
|
|
9779
|
+
filters: $filters
|
|
9780
|
+
tags: $tags
|
|
9781
|
+
sortKey: $sortKey
|
|
9782
|
+
sortDescending: $sortDescending
|
|
9783
|
+
) {
|
|
9777
9784
|
id
|
|
9778
9785
|
product {
|
|
9779
9786
|
id
|
|
@@ -9789,10 +9796,19 @@ const Fs = y`
|
|
|
9789
9796
|
$offset: Int
|
|
9790
9797
|
$filters: ProductCollectionProductFilterInput
|
|
9791
9798
|
$tags: ProductCollectionProductTagFilterInput
|
|
9799
|
+
$sortKey: ProductCollectionProductSortKey
|
|
9800
|
+
$sortDescending: Boolean
|
|
9792
9801
|
) {
|
|
9793
9802
|
productCollections(ids: [$id]) {
|
|
9794
9803
|
id
|
|
9795
|
-
productCollectionProductsFeed(
|
|
9804
|
+
productCollectionProductsFeed(
|
|
9805
|
+
filters: $filters
|
|
9806
|
+
tags: $tags
|
|
9807
|
+
limit: $limit
|
|
9808
|
+
offset: $offset
|
|
9809
|
+
sortKey: $sortKey
|
|
9810
|
+
sortDescending: $sortDescending
|
|
9811
|
+
) {
|
|
9796
9812
|
items {
|
|
9797
9813
|
...ProductCollectionProductFields
|
|
9798
9814
|
}
|
|
@@ -9882,13 +9898,13 @@ const Fs = y`
|
|
|
9882
9898
|
id
|
|
9883
9899
|
}
|
|
9884
9900
|
}
|
|
9885
|
-
`,
|
|
9901
|
+
`, $s = y`
|
|
9886
9902
|
mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
|
|
9887
9903
|
bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
|
|
9888
9904
|
id
|
|
9889
9905
|
}
|
|
9890
9906
|
}
|
|
9891
|
-
`,
|
|
9907
|
+
`, Ls = y`
|
|
9892
9908
|
mutation BundleRemoveTransaction(
|
|
9893
9909
|
$id: String!
|
|
9894
9910
|
$transactionId: String!
|
|
@@ -10338,7 +10354,7 @@ class eo {
|
|
|
10338
10354
|
};
|
|
10339
10355
|
if (!rn(a, this.storage)) {
|
|
10340
10356
|
this.storage = a;
|
|
10341
|
-
const n = new
|
|
10357
|
+
const n = new La(this.constructSerializableWorkflow());
|
|
10342
10358
|
this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
|
|
10343
10359
|
}
|
|
10344
10360
|
}
|
|
@@ -10553,7 +10569,7 @@ class eo {
|
|
|
10553
10569
|
const B = (S = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : S.frameService;
|
|
10554
10570
|
B == null || B.setTargetElements(a.map((E) => E.id));
|
|
10555
10571
|
}
|
|
10556
|
-
const f = u.map((B) => new vt(B.id)), p = new
|
|
10572
|
+
const f = u.map((B) => new vt(B.id)), p = new La(this.constructSerializableWorkflow()), C = [...m, ...f, p];
|
|
10557
10573
|
C.length > 0 && this.commandContext.apply(new O(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
10558
10574
|
const w = this.getInvalidModelVariants(), v = this.modelContainer;
|
|
10559
10575
|
if (v) {
|
|
@@ -10577,7 +10593,7 @@ class eo {
|
|
|
10577
10593
|
switch (this.stepInitialised[l.stepName] = !0, l.type) {
|
|
10578
10594
|
case D.DigitalContent:
|
|
10579
10595
|
a.push(
|
|
10580
|
-
|
|
10596
|
+
Ln.init(
|
|
10581
10597
|
l,
|
|
10582
10598
|
this,
|
|
10583
10599
|
this.reloadedState
|
|
@@ -10620,7 +10636,7 @@ class eo {
|
|
|
10620
10636
|
);
|
|
10621
10637
|
break;
|
|
10622
10638
|
case D.Shape:
|
|
10623
|
-
a.push(
|
|
10639
|
+
a.push(Lt.init(l, this, this.reloadedState));
|
|
10624
10640
|
break;
|
|
10625
10641
|
case D.Text:
|
|
10626
10642
|
a.push(q.init(l, this, this.reloadedState));
|
|
@@ -10930,7 +10946,7 @@ class ao extends rt {
|
|
|
10930
10946
|
const t = this.manager.getRegionElements(this.step.stepName) || [];
|
|
10931
10947
|
if (t.length === 0)
|
|
10932
10948
|
return;
|
|
10933
|
-
const a =
|
|
10949
|
+
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) || [];
|
|
10934
10950
|
if (s.length !== 0) {
|
|
10935
10951
|
const l = {};
|
|
10936
10952
|
return s.forEach((c) => {
|
|
@@ -11047,7 +11063,7 @@ class oo extends rt {
|
|
|
11047
11063
|
}
|
|
11048
11064
|
selectVariant(t) {
|
|
11049
11065
|
const e = t.getResource();
|
|
11050
|
-
return
|
|
11066
|
+
return Lt.selectVariant(
|
|
11051
11067
|
this.step,
|
|
11052
11068
|
{
|
|
11053
11069
|
fill: e.color,
|
|
@@ -11065,7 +11081,7 @@ class oo extends rt {
|
|
|
11065
11081
|
* @deprecated The shape step can now pass through colors returned by getColors via selectVariant. Please swap setColor for selectVariant.
|
|
11066
11082
|
*/
|
|
11067
11083
|
setColor(t) {
|
|
11068
|
-
return
|
|
11084
|
+
return Lt.selectVariant(
|
|
11069
11085
|
this.step,
|
|
11070
11086
|
t,
|
|
11071
11087
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -11077,7 +11093,7 @@ class oo extends rt {
|
|
|
11077
11093
|
* @returns A list of color definitions that are currently applied to the illustration.
|
|
11078
11094
|
*/
|
|
11079
11095
|
getColors() {
|
|
11080
|
-
return
|
|
11096
|
+
return Lt.availableColours(this.step);
|
|
11081
11097
|
}
|
|
11082
11098
|
/**
|
|
11083
11099
|
* Allows for setting a custom color when the custom variant is selected. Will
|
|
@@ -11085,7 +11101,7 @@ class oo extends rt {
|
|
|
11085
11101
|
*/
|
|
11086
11102
|
setCustomColor(t) {
|
|
11087
11103
|
var e, a;
|
|
11088
|
-
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()}`),
|
|
11104
|
+
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);
|
|
11089
11105
|
}
|
|
11090
11106
|
getCustomColor() {
|
|
11091
11107
|
var e, a, n;
|
|
@@ -11329,7 +11345,7 @@ class Ao extends rt {
|
|
|
11329
11345
|
* @returns The final URL string for the QR code.
|
|
11330
11346
|
*/
|
|
11331
11347
|
async selectVideo(t) {
|
|
11332
|
-
return
|
|
11348
|
+
return Ln.regenerateQRCode(
|
|
11333
11349
|
this.manager.getRegionElements(this.step.stepName),
|
|
11334
11350
|
t.key,
|
|
11335
11351
|
this.manager,
|
|
@@ -11407,7 +11423,7 @@ class ie {
|
|
|
11407
11423
|
case D.Model:
|
|
11408
11424
|
return new ro(t, e, t.getStepTags(e.stepName));
|
|
11409
11425
|
case D.Frame:
|
|
11410
|
-
return new
|
|
11426
|
+
return new El(t, e, t.getStepTags(e.stepName));
|
|
11411
11427
|
case D.Module:
|
|
11412
11428
|
return new uo(t, e, t.getStepTags(e.stepName));
|
|
11413
11429
|
default:
|
|
@@ -12866,7 +12882,7 @@ class Oo {
|
|
|
12866
12882
|
t.forEach(
|
|
12867
12883
|
(a) => e.set(
|
|
12868
12884
|
a.id,
|
|
12869
|
-
new
|
|
12885
|
+
new Lo(a.id, a.name, this, { width: a.width, height: a.height })
|
|
12870
12886
|
)
|
|
12871
12887
|
), this.layouts = e;
|
|
12872
12888
|
}
|
|
@@ -12887,8 +12903,8 @@ const Uo = () => new Promise((r, t) => {
|
|
|
12887
12903
|
} catch {
|
|
12888
12904
|
r(!1);
|
|
12889
12905
|
}
|
|
12890
|
-
}),
|
|
12891
|
-
class
|
|
12906
|
+
}), $o = Uo();
|
|
12907
|
+
class Lo {
|
|
12892
12908
|
constructor(t, e, a, n) {
|
|
12893
12909
|
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;
|
|
12894
12910
|
}
|
|
@@ -12947,7 +12963,7 @@ class $o {
|
|
|
12947
12963
|
new Vo(
|
|
12948
12964
|
this.getID(),
|
|
12949
12965
|
a,
|
|
12950
|
-
await
|
|
12966
|
+
await $o,
|
|
12951
12967
|
() => {
|
|
12952
12968
|
this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
|
|
12953
12969
|
},
|
|
@@ -13024,7 +13040,7 @@ class Vo extends Dn {
|
|
|
13024
13040
|
u.resize(l, c), await u.render(), this.onRender();
|
|
13025
13041
|
}
|
|
13026
13042
|
}
|
|
13027
|
-
const
|
|
13043
|
+
const kc = (r, t) => {
|
|
13028
13044
|
const e = [];
|
|
13029
13045
|
return r.forEach((a) => {
|
|
13030
13046
|
const n = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -13035,7 +13051,7 @@ const xc = (r, t) => {
|
|
|
13035
13051
|
}
|
|
13036
13052
|
});
|
|
13037
13053
|
}), e;
|
|
13038
|
-
},
|
|
13054
|
+
}, Mc = async (r, t, e, a) => {
|
|
13039
13055
|
let n = {
|
|
13040
13056
|
serializableWorkflow: { steps: [] },
|
|
13041
13057
|
layouts: {}
|
|
@@ -13917,7 +13933,8 @@ class Ko {
|
|
|
13917
13933
|
}
|
|
13918
13934
|
}
|
|
13919
13935
|
const _o = new Ko();
|
|
13920
|
-
|
|
13936
|
+
var Xo = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(Xo || {});
|
|
13937
|
+
class Zo {
|
|
13921
13938
|
constructor(t) {
|
|
13922
13939
|
this.fullFetched = !1, this.collection = t;
|
|
13923
13940
|
const e = this.collection.productCollectionProducts;
|
|
@@ -13972,50 +13989,54 @@ class Xo {
|
|
|
13972
13989
|
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
|
|
13973
13990
|
}
|
|
13974
13991
|
/**
|
|
13975
|
-
* Returns a list of collections products matching the associated metafield filters.
|
|
13976
|
-
* @param filters A list of filters to apply.
|
|
13992
|
+
* Returns a list of collections products matching the associated metafield/tag filters.
|
|
13993
|
+
* @param filters A list of metafield filters to apply.
|
|
13994
|
+
* @param tags An object of tag filters to apply.
|
|
13977
13995
|
*/
|
|
13978
|
-
async filterProducts(t, e) {
|
|
13979
|
-
var
|
|
13980
|
-
const
|
|
13996
|
+
async filterProducts(t, e, a, n) {
|
|
13997
|
+
var l, c;
|
|
13998
|
+
const i = await b.getShadowGraphqlClient().query({
|
|
13981
13999
|
query: Ts,
|
|
13982
14000
|
errorPolicy: "all",
|
|
13983
14001
|
variables: {
|
|
13984
14002
|
id: this.getId(),
|
|
13985
|
-
filters: {
|
|
14003
|
+
filters: t ? {
|
|
13986
14004
|
link: "And",
|
|
13987
14005
|
metafields: t
|
|
13988
|
-
},
|
|
14006
|
+
} : void 0,
|
|
13989
14007
|
tags: e ? {
|
|
13990
14008
|
include: e.include ?? [],
|
|
13991
14009
|
exclude: e.exclude ?? []
|
|
13992
|
-
} : void 0
|
|
14010
|
+
} : void 0,
|
|
14011
|
+
sortKey: a,
|
|
14012
|
+
sortDescending: n
|
|
13993
14013
|
}
|
|
13994
14014
|
});
|
|
13995
|
-
if (!((
|
|
14015
|
+
if (!((l = i.data) != null && l.productCollections) || ((c = i.data) == null ? void 0 : c.productCollections.length) === 0)
|
|
13996
14016
|
throw new Error("Failed to filter product collection products.");
|
|
13997
|
-
const
|
|
13998
|
-
(
|
|
14017
|
+
const s = this.getProducts(), o = i.data.productCollections[0].productCollectionProducts.map(
|
|
14018
|
+
(d) => d.product.id
|
|
13999
14019
|
);
|
|
14000
|
-
return
|
|
14020
|
+
return s.filter((d) => o.includes(d.getId()));
|
|
14001
14021
|
}
|
|
14002
14022
|
/**
|
|
14003
14023
|
* Fetches a paginated feed of products.
|
|
14004
14024
|
* @param offset The zero-based start index.
|
|
14005
14025
|
* @param limit The maximum number of products to return.
|
|
14006
|
-
* @param filters Optional filters to apply to the query.
|
|
14026
|
+
* @param filters Optional metafield filters to apply to the query.
|
|
14027
|
+
* @param tags Optional object of tag filters to apply.
|
|
14007
14028
|
* @returns
|
|
14008
14029
|
*/
|
|
14009
|
-
async fetchProductsFeed(t, e, a, n) {
|
|
14010
|
-
var
|
|
14030
|
+
async fetchProductsFeed(t, e, a, n, i, s) {
|
|
14031
|
+
var c, d, A, u, h, m;
|
|
14011
14032
|
if (this.fullFetched) {
|
|
14012
|
-
const
|
|
14033
|
+
const g = await (a ? this.filterProducts(a) : this.fetchProducts());
|
|
14013
14034
|
return {
|
|
14014
|
-
total:
|
|
14015
|
-
items:
|
|
14035
|
+
total: g.length,
|
|
14036
|
+
items: g.slice(t, t + e)
|
|
14016
14037
|
};
|
|
14017
14038
|
}
|
|
14018
|
-
const
|
|
14039
|
+
const o = await b.getShadowGraphqlClient().query({
|
|
14019
14040
|
query: Qs,
|
|
14020
14041
|
variables: {
|
|
14021
14042
|
id: this.getId(),
|
|
@@ -14028,18 +14049,20 @@ class Xo {
|
|
|
14028
14049
|
tags: n ? {
|
|
14029
14050
|
include: n.include ?? [],
|
|
14030
14051
|
exclude: n.exclude ?? []
|
|
14031
|
-
} : void 0
|
|
14052
|
+
} : void 0,
|
|
14053
|
+
sortKey: i,
|
|
14054
|
+
sortDescending: s
|
|
14032
14055
|
},
|
|
14033
14056
|
errorPolicy: "all"
|
|
14034
14057
|
});
|
|
14035
14058
|
return {
|
|
14036
|
-
items: ((
|
|
14037
|
-
total: ((
|
|
14059
|
+
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))) || [],
|
|
14060
|
+
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
|
|
14038
14061
|
};
|
|
14039
14062
|
}
|
|
14040
14063
|
getTransformCollection() {
|
|
14041
14064
|
if (this.collection.transformCollection)
|
|
14042
|
-
return new
|
|
14065
|
+
return new tl(this.collection.transformCollection);
|
|
14043
14066
|
}
|
|
14044
14067
|
/**
|
|
14045
14068
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -14208,7 +14231,7 @@ class zt {
|
|
|
14208
14231
|
return this.workflow.imageUrl;
|
|
14209
14232
|
}
|
|
14210
14233
|
}
|
|
14211
|
-
class
|
|
14234
|
+
class tl {
|
|
14212
14235
|
constructor(t) {
|
|
14213
14236
|
this.collection = t;
|
|
14214
14237
|
}
|
|
@@ -14228,10 +14251,10 @@ class Zo {
|
|
|
14228
14251
|
* @returns The transforms in this collection.
|
|
14229
14252
|
*/
|
|
14230
14253
|
getTransforms() {
|
|
14231
|
-
return this.collection.transforms.map((t) => new
|
|
14254
|
+
return this.collection.transforms.map((t) => new el(t));
|
|
14232
14255
|
}
|
|
14233
14256
|
}
|
|
14234
|
-
class
|
|
14257
|
+
class el {
|
|
14235
14258
|
constructor(t) {
|
|
14236
14259
|
this.transform = t;
|
|
14237
14260
|
}
|
|
@@ -14258,7 +14281,7 @@ class tl {
|
|
|
14258
14281
|
};
|
|
14259
14282
|
}
|
|
14260
14283
|
}
|
|
14261
|
-
class
|
|
14284
|
+
class al {
|
|
14262
14285
|
constructor() {
|
|
14263
14286
|
this.listeners = {};
|
|
14264
14287
|
}
|
|
@@ -14285,7 +14308,7 @@ class el {
|
|
|
14285
14308
|
delete this.listeners[e];
|
|
14286
14309
|
}
|
|
14287
14310
|
}
|
|
14288
|
-
const
|
|
14311
|
+
const nl = y`
|
|
14289
14312
|
mutation AddAddressToBundle(
|
|
14290
14313
|
$bundleId: String!
|
|
14291
14314
|
$streetAddress: String
|
|
@@ -14307,13 +14330,13 @@ const al = y`
|
|
|
14307
14330
|
id
|
|
14308
14331
|
}
|
|
14309
14332
|
}
|
|
14310
|
-
`,
|
|
14333
|
+
`, rl = y`
|
|
14311
14334
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14312
14335
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14313
14336
|
id
|
|
14314
14337
|
}
|
|
14315
14338
|
}
|
|
14316
|
-
`,
|
|
14339
|
+
`, il = y`
|
|
14317
14340
|
mutation GenerateQuoteId($id: String!) {
|
|
14318
14341
|
bundleGenerateQuoteId(id: $id) {
|
|
14319
14342
|
id
|
|
@@ -14324,7 +14347,7 @@ const al = y`
|
|
|
14324
14347
|
class He {
|
|
14325
14348
|
constructor(t, e, a, n, i, s) {
|
|
14326
14349
|
var c, d, A;
|
|
14327
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
|
14350
|
+
this.workflowExperiences = [], this.eventEmitter = new al(), 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 Yo(e.bundleStateData);
|
|
14328
14351
|
const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
|
|
14329
14352
|
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new qo(
|
|
14330
14353
|
this.id,
|
|
@@ -14363,7 +14386,7 @@ class He {
|
|
|
14363
14386
|
async generateQuoteId() {
|
|
14364
14387
|
var a, n;
|
|
14365
14388
|
const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
|
|
14366
|
-
mutation:
|
|
14389
|
+
mutation: il,
|
|
14367
14390
|
variables: {
|
|
14368
14391
|
id: this.id
|
|
14369
14392
|
},
|
|
@@ -14375,7 +14398,7 @@ class He {
|
|
|
14375
14398
|
}
|
|
14376
14399
|
async attachAddress(t, e, a, n, i, s) {
|
|
14377
14400
|
await b.getShadowGraphqlClient().mutate({
|
|
14378
|
-
mutation:
|
|
14401
|
+
mutation: nl,
|
|
14379
14402
|
variables: {
|
|
14380
14403
|
bundleId: this.id,
|
|
14381
14404
|
streetAddress: t || void 0,
|
|
@@ -14392,7 +14415,7 @@ class He {
|
|
|
14392
14415
|
}
|
|
14393
14416
|
async attachOrganization(t) {
|
|
14394
14417
|
await b.getShadowGraphqlClient().mutate({
|
|
14395
|
-
mutation:
|
|
14418
|
+
mutation: rl,
|
|
14396
14419
|
variables: {
|
|
14397
14420
|
bundleId: this.id,
|
|
14398
14421
|
organizationName: t
|
|
@@ -14465,7 +14488,7 @@ class He {
|
|
|
14465
14488
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
14466
14489
|
}
|
|
14467
14490
|
getProductCollection() {
|
|
14468
|
-
return this.productCollection ? new
|
|
14491
|
+
return this.productCollection ? new Zo(this.productCollection) : void 0;
|
|
14469
14492
|
}
|
|
14470
14493
|
async initializeAdditionalRequiredColorChannels(t) {
|
|
14471
14494
|
var e, a, n, i;
|
|
@@ -14511,7 +14534,7 @@ class He {
|
|
|
14511
14534
|
);
|
|
14512
14535
|
const n = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => n.get(o));
|
|
14513
14536
|
await b.getShadowGraphqlClient().mutate({
|
|
14514
|
-
mutation:
|
|
14537
|
+
mutation: $s,
|
|
14515
14538
|
variables: {
|
|
14516
14539
|
id: this.id,
|
|
14517
14540
|
transactionIds: e,
|
|
@@ -14578,7 +14601,7 @@ class He {
|
|
|
14578
14601
|
(i) => i.getWorkflowManager().getTransaction().id === e.id
|
|
14579
14602
|
);
|
|
14580
14603
|
if (n.setBundle(void 0), this.previewService && n.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await b.getShadowGraphqlClient().mutate({
|
|
14581
|
-
mutation:
|
|
14604
|
+
mutation: Ls,
|
|
14582
14605
|
variables: {
|
|
14583
14606
|
id: this.id,
|
|
14584
14607
|
transactionId: e.id,
|
|
@@ -14984,14 +15007,14 @@ class He {
|
|
|
14984
15007
|
};
|
|
14985
15008
|
}
|
|
14986
15009
|
}
|
|
14987
|
-
const
|
|
15010
|
+
const sl = y`
|
|
14988
15011
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
14989
15012
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
14990
15013
|
id
|
|
14991
15014
|
}
|
|
14992
15015
|
}
|
|
14993
15016
|
`;
|
|
14994
|
-
class
|
|
15017
|
+
class ol {
|
|
14995
15018
|
/**
|
|
14996
15019
|
*
|
|
14997
15020
|
* @param id
|
|
@@ -15002,7 +15025,7 @@ class sl {
|
|
|
15002
15025
|
async execute(t, e, a) {
|
|
15003
15026
|
var A, u, h;
|
|
15004
15027
|
const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
|
|
15005
|
-
mutation:
|
|
15028
|
+
mutation: sl,
|
|
15006
15029
|
variables: {
|
|
15007
15030
|
processFlowId: t,
|
|
15008
15031
|
inputs: [...e.map((m) => m.getValueForTransmission())]
|
|
@@ -15044,7 +15067,7 @@ class sl {
|
|
|
15044
15067
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15045
15068
|
);
|
|
15046
15069
|
if (m.completedAt) {
|
|
15047
|
-
o = !0, d = new
|
|
15070
|
+
o = !0, d = new ll(m);
|
|
15048
15071
|
break;
|
|
15049
15072
|
}
|
|
15050
15073
|
l += 1;
|
|
@@ -15058,7 +15081,7 @@ class sl {
|
|
|
15058
15081
|
return Promise.resolve(d);
|
|
15059
15082
|
}
|
|
15060
15083
|
}
|
|
15061
|
-
class
|
|
15084
|
+
class ll {
|
|
15062
15085
|
constructor(t) {
|
|
15063
15086
|
this.execution = t;
|
|
15064
15087
|
}
|
|
@@ -15143,8 +15166,8 @@ class ba {
|
|
|
15143
15166
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15144
15167
|
}
|
|
15145
15168
|
}
|
|
15146
|
-
var
|
|
15147
|
-
class
|
|
15169
|
+
var cl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(cl || {});
|
|
15170
|
+
class Tc extends ba {
|
|
15148
15171
|
constructor(t) {
|
|
15149
15172
|
super(`"${t}"`);
|
|
15150
15173
|
}
|
|
@@ -15159,7 +15182,7 @@ class Xn extends ba {
|
|
|
15159
15182
|
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);
|
|
15160
15183
|
}
|
|
15161
15184
|
}
|
|
15162
|
-
class
|
|
15185
|
+
class Qc extends ba {
|
|
15163
15186
|
constructor(t) {
|
|
15164
15187
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15165
15188
|
}
|
|
@@ -15217,7 +15240,7 @@ const Ya = y`
|
|
|
15217
15240
|
}
|
|
15218
15241
|
}
|
|
15219
15242
|
}
|
|
15220
|
-
`,
|
|
15243
|
+
`, dl = y`
|
|
15221
15244
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15222
15245
|
customerCreate(details: $details) {
|
|
15223
15246
|
id
|
|
@@ -15227,7 +15250,7 @@ const Ya = y`
|
|
|
15227
15250
|
}
|
|
15228
15251
|
}
|
|
15229
15252
|
}
|
|
15230
|
-
`,
|
|
15253
|
+
`, Al = y`
|
|
15231
15254
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
15232
15255
|
customerAuthenticate(loginToken: $loginToken) {
|
|
15233
15256
|
id
|
|
@@ -15257,11 +15280,11 @@ const Ya = y`
|
|
|
15257
15280
|
}
|
|
15258
15281
|
}
|
|
15259
15282
|
}
|
|
15260
|
-
`,
|
|
15283
|
+
`, ul = y`
|
|
15261
15284
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15262
15285
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15263
15286
|
}
|
|
15264
|
-
`,
|
|
15287
|
+
`, hl = y`
|
|
15265
15288
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
15266
15289
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
15267
15290
|
id
|
|
@@ -15292,7 +15315,7 @@ const Ya = y`
|
|
|
15292
15315
|
}
|
|
15293
15316
|
}
|
|
15294
15317
|
}
|
|
15295
|
-
`,
|
|
15318
|
+
`, ml = y`
|
|
15296
15319
|
query CustomerMetafields($id: String!) {
|
|
15297
15320
|
metafields(entityId: $id) {
|
|
15298
15321
|
id
|
|
@@ -15310,7 +15333,7 @@ const Ya = y`
|
|
|
15310
15333
|
}
|
|
15311
15334
|
}
|
|
15312
15335
|
}
|
|
15313
|
-
`,
|
|
15336
|
+
`, gl = async (r, t) => {
|
|
15314
15337
|
var n;
|
|
15315
15338
|
const e = await b.getShadowGraphqlClient().query({
|
|
15316
15339
|
query: Ei(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
@@ -15334,7 +15357,7 @@ const Ya = y`
|
|
|
15334
15357
|
}), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15335
15358
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15336
15359
|
}), a;
|
|
15337
|
-
},
|
|
15360
|
+
}, fl = async (r, t) => {
|
|
15338
15361
|
const a = (await t).find((n) => n.id === r);
|
|
15339
15362
|
if (!a)
|
|
15340
15363
|
throw new Error(`Workflow not found: ${r}`);
|
|
@@ -15343,11 +15366,11 @@ const Ya = y`
|
|
|
15343
15366
|
const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15344
15367
|
if (a.length === 0)
|
|
15345
15368
|
return Promise.all(e);
|
|
15346
|
-
const n =
|
|
15347
|
-
(o) => Ht.set({ id: o, options: t },
|
|
15369
|
+
const n = gl(a, t), i = a.map(
|
|
15370
|
+
(o) => Ht.set({ id: o, options: t }, fl(o, n))
|
|
15348
15371
|
), s = e.filter((o) => o !== void 0);
|
|
15349
15372
|
return await Promise.all(s.concat(i));
|
|
15350
|
-
},
|
|
15373
|
+
}, Nc = async (r, t) => (await Zn([r], t))[0], pl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
15351
15374
|
id: Q(),
|
|
15352
15375
|
panelId: t.name,
|
|
15353
15376
|
name: t.name,
|
|
@@ -15361,11 +15384,11 @@ const Ya = y`
|
|
|
15361
15384
|
previewRegion: t.previewRegion,
|
|
15362
15385
|
useEditableArea: t.useEditableArea,
|
|
15363
15386
|
editableArea: t.editableArea
|
|
15364
|
-
})),
|
|
15387
|
+
})), Cl = (r, t) => {
|
|
15365
15388
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
15366
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
15389
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : pl(t.panels);
|
|
15367
15390
|
};
|
|
15368
|
-
class
|
|
15391
|
+
class Rc {
|
|
15369
15392
|
constructor(t) {
|
|
15370
15393
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15371
15394
|
try {
|
|
@@ -15376,7 +15399,7 @@ class Nc {
|
|
|
15376
15399
|
} catch (a) {
|
|
15377
15400
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15378
15401
|
}
|
|
15379
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15402
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.27.0-beta.3bd46806-87c5-56d2-ab3a-5867e86c509d"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15380
15403
|
}
|
|
15381
15404
|
configure(t) {
|
|
15382
15405
|
wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -15396,14 +15419,14 @@ class Nc {
|
|
|
15396
15419
|
getFlowService() {
|
|
15397
15420
|
if (!xr())
|
|
15398
15421
|
throw new Error("Application key required to use Flow Service.");
|
|
15399
|
-
return new
|
|
15422
|
+
return new ol();
|
|
15400
15423
|
}
|
|
15401
15424
|
async getIntegration() {
|
|
15402
15425
|
if (this.activeIntegration)
|
|
15403
15426
|
return this.activeIntegration;
|
|
15404
15427
|
if (!this.options.applicationKey)
|
|
15405
15428
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
15406
|
-
return this.activeIntegration =
|
|
15429
|
+
return this.activeIntegration = wl(this.options.applicationKey), this.activeIntegration;
|
|
15407
15430
|
}
|
|
15408
15431
|
async canUseAddon(t) {
|
|
15409
15432
|
var e;
|
|
@@ -15552,7 +15575,7 @@ class Nc {
|
|
|
15552
15575
|
})).data.customer;
|
|
15553
15576
|
if (!n.id) {
|
|
15554
15577
|
const l = (s = (await e.mutate({
|
|
15555
|
-
mutation:
|
|
15578
|
+
mutation: dl,
|
|
15556
15579
|
errorPolicy: "all",
|
|
15557
15580
|
fetchPolicy: "no-cache",
|
|
15558
15581
|
variables: {
|
|
@@ -15587,7 +15610,7 @@ class Nc {
|
|
|
15587
15610
|
if (!n)
|
|
15588
15611
|
return !1;
|
|
15589
15612
|
const s = (o = (await e.mutate({
|
|
15590
|
-
mutation:
|
|
15613
|
+
mutation: Al,
|
|
15591
15614
|
errorPolicy: "all",
|
|
15592
15615
|
fetchPolicy: "no-cache",
|
|
15593
15616
|
variables: {
|
|
@@ -15602,7 +15625,7 @@ class Nc {
|
|
|
15602
15625
|
*/
|
|
15603
15626
|
async generateVerificationCode(t) {
|
|
15604
15627
|
await b.getShadowGraphqlClient().mutate({
|
|
15605
|
-
mutation:
|
|
15628
|
+
mutation: ul,
|
|
15606
15629
|
variables: {
|
|
15607
15630
|
emailAddress: t
|
|
15608
15631
|
}
|
|
@@ -15617,7 +15640,7 @@ class Nc {
|
|
|
15617
15640
|
async verifyCode(t, e) {
|
|
15618
15641
|
var i, s;
|
|
15619
15642
|
const n = (i = (await b.getShadowGraphqlClient().mutate({
|
|
15620
|
-
mutation:
|
|
15643
|
+
mutation: hl,
|
|
15621
15644
|
errorPolicy: "all",
|
|
15622
15645
|
fetchPolicy: "no-cache",
|
|
15623
15646
|
variables: {
|
|
@@ -15641,7 +15664,7 @@ class Nc {
|
|
|
15641
15664
|
if (!((e = this.customer) != null && e.id))
|
|
15642
15665
|
throw new Error("Customer must be logged in before calling this function.");
|
|
15643
15666
|
return (await b.getShadowGraphqlClient().query({
|
|
15644
|
-
query:
|
|
15667
|
+
query: ml,
|
|
15645
15668
|
variables: {
|
|
15646
15669
|
id: this.customer.id
|
|
15647
15670
|
}
|
|
@@ -15902,12 +15925,12 @@ class Nc {
|
|
|
15902
15925
|
};
|
|
15903
15926
|
if (M.type === "transaction" && B.workflowState) {
|
|
15904
15927
|
const G = JSON.parse(B.workflowState);
|
|
15905
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
15928
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await $a(G), V.reloadedState = G;
|
|
15906
15929
|
} else if (!I && M.workflowState) {
|
|
15907
15930
|
const G = JSON.parse(M.workflowState);
|
|
15908
|
-
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await
|
|
15931
|
+
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await $a(G), V.reloadedState = G;
|
|
15909
15932
|
} else
|
|
15910
|
-
V.layouts =
|
|
15933
|
+
V.layouts = Cl(
|
|
15911
15934
|
V.transaction,
|
|
15912
15935
|
V.workflow
|
|
15913
15936
|
);
|
|
@@ -15991,7 +16014,7 @@ class Nc {
|
|
|
15991
16014
|
};
|
|
15992
16015
|
}
|
|
15993
16016
|
}
|
|
15994
|
-
const
|
|
16017
|
+
const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
15995
16018
|
query: Di,
|
|
15996
16019
|
errorPolicy: "all",
|
|
15997
16020
|
fetchPolicy: "no-cache",
|
|
@@ -16003,7 +16026,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16003
16026
|
variables: {
|
|
16004
16027
|
themeConfigurationId: t
|
|
16005
16028
|
}
|
|
16006
|
-
})).data.currentIntegration,
|
|
16029
|
+
})).data.currentIntegration, Oc = async (r) => {
|
|
16007
16030
|
const e = await b.getShadowGraphqlClient().query({
|
|
16008
16031
|
query: hi,
|
|
16009
16032
|
errorPolicy: "all",
|
|
@@ -16014,7 +16037,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16014
16037
|
});
|
|
16015
16038
|
if (e.data.transactions.length !== 0)
|
|
16016
16039
|
return e.data.transactions[0];
|
|
16017
|
-
},
|
|
16040
|
+
}, Uc = async (r, t) => {
|
|
16018
16041
|
var a;
|
|
16019
16042
|
return (a = (await b.getShadowGraphqlClient().query({
|
|
16020
16043
|
query: Ii,
|
|
@@ -16024,7 +16047,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16024
16047
|
themeInstallId: t
|
|
16025
16048
|
}
|
|
16026
16049
|
})).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16027
|
-
},
|
|
16050
|
+
}, $c = async (r) => {
|
|
16028
16051
|
var e, a, n;
|
|
16029
16052
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16030
16053
|
query: Fi,
|
|
@@ -16043,7 +16066,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16043
16066
|
}
|
|
16044
16067
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16045
16068
|
};
|
|
16046
|
-
function
|
|
16069
|
+
function yl(r, t, e, a) {
|
|
16047
16070
|
const n = e.width * r.zoom, i = e.height * r.zoom;
|
|
16048
16071
|
if (a) {
|
|
16049
16072
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
@@ -16057,7 +16080,7 @@ function wl(r, t, e, a) {
|
|
|
16057
16080
|
function le(r, t, e) {
|
|
16058
16081
|
return Math.min(Math.max(r, t), e);
|
|
16059
16082
|
}
|
|
16060
|
-
class
|
|
16083
|
+
class Sl {
|
|
16061
16084
|
constructor(t, e) {
|
|
16062
16085
|
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 = {
|
|
16063
16086
|
useThreshold: !1,
|
|
@@ -16114,7 +16137,7 @@ class yl {
|
|
|
16114
16137
|
return;
|
|
16115
16138
|
}
|
|
16116
16139
|
t.forEach((e, a) => {
|
|
16117
|
-
const n =
|
|
16140
|
+
const n = $t.get(e);
|
|
16118
16141
|
n && (this.frameData || (this.frameData = new Array(t.length)), this.frameData[a] = n);
|
|
16119
16142
|
});
|
|
16120
16143
|
}
|
|
@@ -16200,7 +16223,7 @@ class yl {
|
|
|
16200
16223
|
return;
|
|
16201
16224
|
}
|
|
16202
16225
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
16203
|
-
this.offsets[o] =
|
|
16226
|
+
this.offsets[o] = yl(t[o], s, this.imageData, this.forceImageCover);
|
|
16204
16227
|
}), this._debouncedUpdateFrameOffsets(
|
|
16205
16228
|
this.offsets,
|
|
16206
16229
|
n,
|
|
@@ -16279,7 +16302,7 @@ class yl {
|
|
|
16279
16302
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
16280
16303
|
}
|
|
16281
16304
|
}
|
|
16282
|
-
class
|
|
16305
|
+
class Vc {
|
|
16283
16306
|
approveTransaction(t) {
|
|
16284
16307
|
throw new Error("Method not implemented.");
|
|
16285
16308
|
}
|
|
@@ -16438,12 +16461,12 @@ class $c {
|
|
|
16438
16461
|
return [];
|
|
16439
16462
|
}
|
|
16440
16463
|
}
|
|
16441
|
-
var
|
|
16442
|
-
class
|
|
16464
|
+
var vl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(vl || {});
|
|
16465
|
+
class El extends rt {
|
|
16443
16466
|
constructor(t, e, a) {
|
|
16444
16467
|
super(t, e, a);
|
|
16445
16468
|
const n = e.data;
|
|
16446
|
-
this.frameService = new
|
|
16469
|
+
this.frameService = new Sl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
16447
16470
|
}
|
|
16448
16471
|
selectVariant(t) {
|
|
16449
16472
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -16612,7 +16635,7 @@ class vl extends rt {
|
|
|
16612
16635
|
return this.manager.getStepStorage(this.step.stepName);
|
|
16613
16636
|
}
|
|
16614
16637
|
}
|
|
16615
|
-
const
|
|
16638
|
+
const Bl = y`
|
|
16616
16639
|
query GetLoggedInCustomer($email: String!) {
|
|
16617
16640
|
customer(emailAddress: $email) {
|
|
16618
16641
|
id
|
|
@@ -16655,21 +16678,21 @@ const El = y`
|
|
|
16655
16678
|
total
|
|
16656
16679
|
}
|
|
16657
16680
|
}
|
|
16658
|
-
`,
|
|
16681
|
+
`, bl = y`
|
|
16659
16682
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
16660
16683
|
transactionUpdate(id: $id, designName: $name) {
|
|
16661
16684
|
id
|
|
16662
16685
|
designName
|
|
16663
16686
|
}
|
|
16664
16687
|
}
|
|
16665
|
-
`,
|
|
16688
|
+
`, Il = y`
|
|
16666
16689
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
16667
16690
|
transactionDuplicate(id: $id, template: $template) {
|
|
16668
16691
|
id
|
|
16669
16692
|
workflowViewerLink
|
|
16670
16693
|
}
|
|
16671
16694
|
}
|
|
16672
|
-
`,
|
|
16695
|
+
`, Dl = y`
|
|
16673
16696
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
16674
16697
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
16675
16698
|
items {
|
|
@@ -16682,7 +16705,7 @@ const El = y`
|
|
|
16682
16705
|
total
|
|
16683
16706
|
}
|
|
16684
16707
|
}
|
|
16685
|
-
`,
|
|
16708
|
+
`, Pl = y`
|
|
16686
16709
|
query GetTransactionsForBundle($id: String!) {
|
|
16687
16710
|
bundles(ids: [$id]) {
|
|
16688
16711
|
id
|
|
@@ -16703,21 +16726,21 @@ const El = y`
|
|
|
16703
16726
|
}
|
|
16704
16727
|
}
|
|
16705
16728
|
}
|
|
16706
|
-
`,
|
|
16729
|
+
`, Fl = y`
|
|
16707
16730
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
16708
16731
|
bundleUpdate(id: $id, name: $name) {
|
|
16709
16732
|
id
|
|
16710
16733
|
name
|
|
16711
16734
|
}
|
|
16712
16735
|
}
|
|
16713
|
-
`,
|
|
16736
|
+
`, xl = y`
|
|
16714
16737
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
16715
16738
|
bundleDuplicate(id: $id, template: $template) {
|
|
16716
16739
|
id
|
|
16717
16740
|
workflowViewerLink
|
|
16718
16741
|
}
|
|
16719
16742
|
}
|
|
16720
|
-
`,
|
|
16743
|
+
`, kl = y`
|
|
16721
16744
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
16722
16745
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
16723
16746
|
items {
|
|
@@ -16730,43 +16753,43 @@ const El = y`
|
|
|
16730
16753
|
total
|
|
16731
16754
|
}
|
|
16732
16755
|
}
|
|
16733
|
-
`,
|
|
16734
|
-
mutation:
|
|
16756
|
+
`, zc = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
|
|
16757
|
+
mutation: Fl,
|
|
16735
16758
|
errorPolicy: "all",
|
|
16736
16759
|
variables: {
|
|
16737
16760
|
id: r,
|
|
16738
16761
|
name: t
|
|
16739
16762
|
},
|
|
16740
16763
|
context: e
|
|
16741
|
-
}),
|
|
16742
|
-
mutation:
|
|
16764
|
+
}), Gc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16765
|
+
mutation: bl,
|
|
16743
16766
|
errorPolicy: "all",
|
|
16744
16767
|
variables: {
|
|
16745
16768
|
id: r,
|
|
16746
16769
|
name: t
|
|
16747
16770
|
}
|
|
16748
|
-
}),
|
|
16749
|
-
mutation:
|
|
16771
|
+
}), Wc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16772
|
+
mutation: xl,
|
|
16750
16773
|
errorPolicy: "all",
|
|
16751
16774
|
variables: {
|
|
16752
16775
|
id: r,
|
|
16753
16776
|
template: t
|
|
16754
16777
|
}
|
|
16755
|
-
}),
|
|
16756
|
-
mutation:
|
|
16778
|
+
}), jc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16779
|
+
mutation: Il,
|
|
16757
16780
|
errorPolicy: "all",
|
|
16758
16781
|
variables: {
|
|
16759
16782
|
id: r,
|
|
16760
16783
|
template: t
|
|
16761
16784
|
}
|
|
16762
|
-
}),
|
|
16763
|
-
query:
|
|
16785
|
+
}), Hc = async (r) => (await b.getShadowGraphqlClient().query({
|
|
16786
|
+
query: Bl,
|
|
16764
16787
|
errorPolicy: "all",
|
|
16765
16788
|
variables: {
|
|
16766
16789
|
email: r
|
|
16767
16790
|
}
|
|
16768
|
-
})).data.customer,
|
|
16769
|
-
query:
|
|
16791
|
+
})).data.customer, qc = async (r, t, e) => await b.getShadowGraphqlClient().query({
|
|
16792
|
+
query: Dl,
|
|
16770
16793
|
errorPolicy: "all",
|
|
16771
16794
|
fetchPolicy: "no-cache",
|
|
16772
16795
|
variables: {
|
|
@@ -16774,15 +16797,15 @@ const El = y`
|
|
|
16774
16797
|
offset: e,
|
|
16775
16798
|
limit: t
|
|
16776
16799
|
}
|
|
16777
|
-
}),
|
|
16778
|
-
query:
|
|
16800
|
+
}), Yc = async (r, t) => await b.getShadowGraphqlClient().query({
|
|
16801
|
+
query: Pl,
|
|
16779
16802
|
errorPolicy: "all",
|
|
16780
16803
|
fetchPolicy: "no-cache",
|
|
16781
16804
|
variables: {
|
|
16782
16805
|
id: r
|
|
16783
16806
|
},
|
|
16784
16807
|
context: t
|
|
16785
|
-
}),
|
|
16808
|
+
}), Jc = async (r, t, e) => {
|
|
16786
16809
|
var n;
|
|
16787
16810
|
const a = await b.getShadowGraphqlClient().query({
|
|
16788
16811
|
query: Ia,
|
|
@@ -16806,7 +16829,7 @@ const El = y`
|
|
|
16806
16829
|
}
|
|
16807
16830
|
});
|
|
16808
16831
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16809
|
-
},
|
|
16832
|
+
}, Kc = async (r, t, e) => {
|
|
16810
16833
|
var n;
|
|
16811
16834
|
const a = await b.getShadowGraphqlClient().query({
|
|
16812
16835
|
query: Ia,
|
|
@@ -16830,7 +16853,7 @@ const El = y`
|
|
|
16830
16853
|
}
|
|
16831
16854
|
});
|
|
16832
16855
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16833
|
-
},
|
|
16856
|
+
}, _c = async (r, t, e) => {
|
|
16834
16857
|
var n;
|
|
16835
16858
|
const a = await b.getShadowGraphqlClient().query({
|
|
16836
16859
|
query: Ia,
|
|
@@ -16850,10 +16873,10 @@ const El = y`
|
|
|
16850
16873
|
}
|
|
16851
16874
|
});
|
|
16852
16875
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16853
|
-
},
|
|
16876
|
+
}, Xc = async (r, t, e) => {
|
|
16854
16877
|
var n;
|
|
16855
16878
|
const a = await b.getShadowGraphqlClient().query({
|
|
16856
|
-
query:
|
|
16879
|
+
query: kl,
|
|
16857
16880
|
errorPolicy: "all",
|
|
16858
16881
|
fetchPolicy: "no-cache",
|
|
16859
16882
|
variables: {
|
|
@@ -16874,7 +16897,7 @@ const El = y`
|
|
|
16874
16897
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
16875
16898
|
}
|
|
16876
16899
|
})();
|
|
16877
|
-
var
|
|
16900
|
+
var Ml = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Ml || {}), Tl = /* @__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))(Tl || {}), K;
|
|
16878
16901
|
K = { __e: function(r, t, e, a) {
|
|
16879
16902
|
for (var n, i, s; t = t.__; )
|
|
16880
16903
|
if ((n = t.__c) && !n.__)
|
|
@@ -16887,7 +16910,7 @@ K = { __e: function(r, t, e, a) {
|
|
|
16887
16910
|
throw r;
|
|
16888
16911
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
16889
16912
|
var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
|
|
16890
|
-
function
|
|
16913
|
+
function Ql() {
|
|
16891
16914
|
for (var r; r = tr.shift(); )
|
|
16892
16915
|
if (r.__P && r.__H)
|
|
16893
16916
|
try {
|
|
@@ -16907,7 +16930,7 @@ K.__b = function(r) {
|
|
|
16907
16930
|
}, K.diffed = function(r) {
|
|
16908
16931
|
Xa && Xa(r);
|
|
16909
16932
|
var t = r.__c;
|
|
16910
|
-
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) ||
|
|
16933
|
+
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Nl)(Ql)), t.__H.__.forEach(function(e) {
|
|
16911
16934
|
e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
|
|
16912
16935
|
})), qe = st = null;
|
|
16913
16936
|
}, K.__c = function(r, t) {
|
|
@@ -16934,7 +16957,7 @@ K.__b = function(r) {
|
|
|
16934
16957
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
16935
16958
|
};
|
|
16936
16959
|
var en = typeof requestAnimationFrame == "function";
|
|
16937
|
-
function
|
|
16960
|
+
function Nl(r) {
|
|
16938
16961
|
var t, e = function() {
|
|
16939
16962
|
clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
|
|
16940
16963
|
}, a = setTimeout(e, 100);
|
|
@@ -16950,35 +16973,35 @@ function la(r) {
|
|
|
16950
16973
|
}
|
|
16951
16974
|
export {
|
|
16952
16975
|
da as AddonHandle,
|
|
16953
|
-
|
|
16976
|
+
Qc as ArrayInput,
|
|
16954
16977
|
et as AspectType,
|
|
16955
16978
|
yt as AssetNotFoundError,
|
|
16956
16979
|
he as AssetType,
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16980
|
+
Fc as BringForwardCommand,
|
|
16981
|
+
Pc as BringToBackCommand,
|
|
16982
|
+
Dc as BringToFrontCommand,
|
|
16960
16983
|
mr as BundleDesignCreationCartAddMode,
|
|
16961
16984
|
R as CanvasCommand,
|
|
16962
16985
|
se as CollectionProduct,
|
|
16963
16986
|
Ha as ColorOptionGlobalPropertyHandle,
|
|
16964
16987
|
Ki as CommandContext,
|
|
16965
|
-
|
|
16966
|
-
|
|
16988
|
+
Tl as ConversionDataType,
|
|
16989
|
+
Ml as ConversionLocation,
|
|
16967
16990
|
W as CreateElementCommand,
|
|
16968
16991
|
Un as CreateLayoutCommand,
|
|
16969
16992
|
vt as DeleteElementCommand,
|
|
16970
16993
|
Ao as DigitalContentStepHandle,
|
|
16971
16994
|
Go as FileUploadGlobalPropertyHandle,
|
|
16972
16995
|
oe as FlowExecutionNodeResult,
|
|
16973
|
-
|
|
16974
|
-
|
|
16996
|
+
ll as FlowExecutionResult,
|
|
16997
|
+
ol as FlowService,
|
|
16975
16998
|
ts as FontAlignmentCommand,
|
|
16976
16999
|
Xi as FontColorCommand,
|
|
16977
17000
|
Zi as FontSizeCommand,
|
|
16978
17001
|
Va as FontSourceCommand,
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
17002
|
+
Sl as FrameService,
|
|
17003
|
+
vl as FrameStep,
|
|
17004
|
+
El as FrameStepHandle,
|
|
16982
17005
|
Ba as GlobalPropertyHandle,
|
|
16983
17006
|
O as GroupCommand,
|
|
16984
17007
|
ao as IllustrationStepHandle,
|
|
@@ -16986,37 +17009,38 @@ export {
|
|
|
16986
17009
|
co as InformationStepHandle,
|
|
16987
17010
|
qa as IntegrationProduct,
|
|
16988
17011
|
fr as IntegrationType,
|
|
16989
|
-
|
|
17012
|
+
vc as LayoutElementFactory,
|
|
16990
17013
|
T as LayoutElementType,
|
|
16991
17014
|
Y as LayoutNotFoundError,
|
|
16992
17015
|
Gt as LayoutRenderingPurpose,
|
|
16993
17016
|
no as MaterialStepHandle,
|
|
16994
17017
|
fe as MisconfigurationError,
|
|
16995
|
-
|
|
17018
|
+
Vc as MockWorkflowManager,
|
|
16996
17019
|
ro as ModelStepHandle,
|
|
16997
17020
|
uo as ModuleStepHandle,
|
|
16998
|
-
|
|
17021
|
+
Ec as MoveCommand,
|
|
16999
17022
|
Xn as ObjectInput,
|
|
17000
|
-
|
|
17023
|
+
cl as ObjectInputType,
|
|
17001
17024
|
_n as OptionGlobalPropertyHandle,
|
|
17002
17025
|
ge as OptionNotFoundError,
|
|
17003
17026
|
Dt as ParseError,
|
|
17004
17027
|
io as PictureStepHandle,
|
|
17005
17028
|
pr as ProductCameraRig,
|
|
17006
|
-
|
|
17029
|
+
Zo as ProductCollection,
|
|
17030
|
+
Xo as ProductCollectionProductSortKey,
|
|
17007
17031
|
zt as ProductWorkflow,
|
|
17008
17032
|
Ht as PromiseCache,
|
|
17009
17033
|
Pn as PromiseQueue,
|
|
17010
17034
|
so as QuestionStepHandle,
|
|
17011
17035
|
Dn as QueueablePromise,
|
|
17012
|
-
|
|
17036
|
+
bc as ResizeCommand,
|
|
17013
17037
|
Wt as ResourceNotFoundError,
|
|
17014
|
-
|
|
17038
|
+
Bc as RotateCommand,
|
|
17015
17039
|
H as ScaleAxis,
|
|
17016
|
-
|
|
17040
|
+
xc as SendBackwardsCommand,
|
|
17017
17041
|
oo as ShapeStepHandle,
|
|
17018
17042
|
gr as ShareActionType,
|
|
17019
|
-
|
|
17043
|
+
Rc as SpiffCommerceClient,
|
|
17020
17044
|
me as StakeholderType,
|
|
17021
17045
|
hr as StepAspectType,
|
|
17022
17046
|
rt as StepHandle,
|
|
@@ -17024,95 +17048,95 @@ export {
|
|
|
17024
17048
|
kt as TextAlgorithm,
|
|
17025
17049
|
ns as TextChangeCommand,
|
|
17026
17050
|
Wo as TextGlobalPropertyHandle,
|
|
17027
|
-
|
|
17051
|
+
Tc as TextInput,
|
|
17028
17052
|
lo as TextStepHandle,
|
|
17029
|
-
|
|
17030
|
-
|
|
17053
|
+
el as Transform,
|
|
17054
|
+
tl as TransformCollection,
|
|
17031
17055
|
z as UnhandledBehaviorError,
|
|
17032
17056
|
Cr as UnitOfMeasurement,
|
|
17033
|
-
|
|
17057
|
+
Ic as UpdateImageSourceCommand,
|
|
17034
17058
|
it as Variant,
|
|
17035
17059
|
Bo as WorkflowExperienceEventType,
|
|
17036
17060
|
bo as WorkflowExperienceImpl,
|
|
17037
17061
|
U as assetService,
|
|
17038
17062
|
zr as browserColorToHex,
|
|
17039
|
-
|
|
17063
|
+
yc as cmPerPixel,
|
|
17040
17064
|
Co as createDesign,
|
|
17041
|
-
|
|
17042
|
-
|
|
17065
|
+
pc as currentDirection,
|
|
17066
|
+
ic as dataUrlFromExternalUrl,
|
|
17043
17067
|
je as designService,
|
|
17044
17068
|
Ae as determineCorrectFontSizeAndLines,
|
|
17045
|
-
|
|
17069
|
+
Ln as digitalContentStepService,
|
|
17046
17070
|
dt as domParser,
|
|
17047
|
-
|
|
17048
|
-
|
|
17071
|
+
Wc as duplicateBundle,
|
|
17072
|
+
jc as duplicateTransaction,
|
|
17049
17073
|
at as fetchAsString,
|
|
17050
|
-
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
|
|
17074
|
+
dc as findAngle,
|
|
17075
|
+
$ as findElement,
|
|
17076
|
+
lc as findPmsColors,
|
|
17077
|
+
$t as frameDataCache,
|
|
17054
17078
|
pt as frameStepService,
|
|
17055
17079
|
Q as generate,
|
|
17056
17080
|
Ro as generateCommands,
|
|
17057
17081
|
ot as generateSVGWithUnknownColors,
|
|
17058
|
-
|
|
17082
|
+
Mc as generateStateFromDesignInputSteps,
|
|
17059
17083
|
De as getAttributesFromArrayBuffer,
|
|
17060
|
-
|
|
17061
|
-
|
|
17062
|
-
|
|
17063
|
-
|
|
17064
|
-
|
|
17065
|
-
|
|
17084
|
+
cc as getAxisAlignedBoundingBox,
|
|
17085
|
+
yl as getBoundedOffsets,
|
|
17086
|
+
$c as getBundleThemeConfiguration,
|
|
17087
|
+
Hc as getCustomer,
|
|
17088
|
+
qc as getCustomerBundles,
|
|
17089
|
+
Cc as getElementVertices,
|
|
17066
17090
|
xe as getFrameData,
|
|
17067
|
-
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17072
|
-
|
|
17073
|
-
|
|
17091
|
+
wl as getIntegration,
|
|
17092
|
+
gc as getNEPoint,
|
|
17093
|
+
mc as getNWPoint,
|
|
17094
|
+
Kc as getOrderedTransactions,
|
|
17095
|
+
Uc as getOverrideThemeConfiguration,
|
|
17096
|
+
hc as getPointOfRotation,
|
|
17097
|
+
fc as getSEPoint,
|
|
17074
17098
|
wa as getSvgElement,
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17099
|
+
Xc as getTemplateBundles,
|
|
17100
|
+
_c as getTemplateTransactions,
|
|
17101
|
+
Oc as getTransaction,
|
|
17078
17102
|
Lc as getTransactionThemeConfiguration,
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17103
|
+
Yc as getTransactionsForBundle,
|
|
17104
|
+
uc as getTrueCoordinates,
|
|
17105
|
+
Jc as getUnorderedTransactions,
|
|
17106
|
+
Nc as getWorkflow,
|
|
17083
17107
|
Zn as getWorkflows,
|
|
17084
17108
|
b as graphQlManager,
|
|
17085
17109
|
de as illustrationStepService,
|
|
17086
|
-
|
|
17110
|
+
Ac as isCloseToValue,
|
|
17087
17111
|
Tt as loadFont,
|
|
17088
|
-
|
|
17112
|
+
oc as matchHexToPms,
|
|
17089
17113
|
Vn as materialStepService,
|
|
17090
17114
|
_o as metafieldManager,
|
|
17091
|
-
|
|
17115
|
+
wc as mmPerPixel,
|
|
17092
17116
|
zn as modelStepService,
|
|
17093
17117
|
fa as modifySVGColors,
|
|
17094
17118
|
Gn as moduleStepService,
|
|
17095
|
-
|
|
17096
|
-
|
|
17119
|
+
zc as nameBundle,
|
|
17120
|
+
Gc as nameTransaction,
|
|
17097
17121
|
X as optionService,
|
|
17098
|
-
|
|
17122
|
+
Sc as outlineFontsInSvg,
|
|
17099
17123
|
At as patternImageDataCache,
|
|
17100
17124
|
k as persistenceService,
|
|
17101
17125
|
Wn as pictureStepService,
|
|
17102
|
-
|
|
17126
|
+
sc as pmsToRgb,
|
|
17103
17127
|
jn as questionStepService,
|
|
17104
|
-
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17128
|
+
rc as registerFetchImplementation,
|
|
17129
|
+
nc as registerWindowImplementation,
|
|
17130
|
+
$a as rehydrateSerializedLayout,
|
|
17131
|
+
$r as rgbToPms,
|
|
17108
17132
|
re as rotateAroundPoint,
|
|
17109
17133
|
ma as sanitizeSvgTree,
|
|
17110
17134
|
kr as setBearerAuthenticationToken,
|
|
17111
17135
|
mn as setCanvasModule,
|
|
17112
|
-
|
|
17136
|
+
Lt as shapeStepService,
|
|
17113
17137
|
is as shortenUrl,
|
|
17114
17138
|
wt as spiffCoreConfiguration,
|
|
17115
|
-
|
|
17139
|
+
kc as stepAspectValuesToDesignInputSteps,
|
|
17116
17140
|
Qa as svgColorValueToDefinition,
|
|
17117
17141
|
Rn as svgStringDimensions,
|
|
17118
17142
|
Aa as svgToDataUrl,
|