@spiffcommerce/core 29.0.4-beta.edc66327-3ca2-53dd-ba6a-90bcc4e6b5f9 → 29.1.0-beta.3610848a-e163-58bd-968d-57b57e0094f6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -2
- package/dist/index.js +45 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +292 -232
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -219,14 +219,14 @@ const An = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
|
|
|
219
219
|
t ? xr(r).then(e).catch(a) : rt(r).then((n) => {
|
|
220
220
|
n.text().then(e).catch(a);
|
|
221
221
|
}).catch(a);
|
|
222
|
-
}), hn = (r) => Ar(r),
|
|
222
|
+
}), hn = (r) => Ar(r), $e = /* @__PURE__ */ new Map(), Tr = async (r, t) => {
|
|
223
223
|
if (Mt([typeof FontFace])) {
|
|
224
|
-
if (
|
|
225
|
-
return
|
|
224
|
+
if ($e.has(t))
|
|
225
|
+
return $e.get(t);
|
|
226
226
|
const e = r.names.fullName.en, a = new FontFace(e, `url(${t})`);
|
|
227
227
|
document.fonts.add(a);
|
|
228
228
|
const n = a.load();
|
|
229
|
-
return
|
|
229
|
+
return $e.set(t, n), n;
|
|
230
230
|
}
|
|
231
231
|
}, bt = () => {
|
|
232
232
|
if (Mt([typeof XMLSerializer]))
|
|
@@ -291,8 +291,8 @@ const An = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
|
|
|
291
291
|
!i || !i.result ? e() : t(i.result.toString());
|
|
292
292
|
}, a.readAsDataURL(r);
|
|
293
293
|
});
|
|
294
|
-
let
|
|
295
|
-
const
|
|
294
|
+
let $r, ma;
|
|
295
|
+
const Or = (r) => {
|
|
296
296
|
ma = r;
|
|
297
297
|
}, Ur = () => ma;
|
|
298
298
|
let gn;
|
|
@@ -306,7 +306,7 @@ const Lr = (r) => {
|
|
|
306
306
|
}), zr = async () => {
|
|
307
307
|
const r = {
|
|
308
308
|
applicationKey: ma,
|
|
309
|
-
customerToken:
|
|
309
|
+
customerToken: $r,
|
|
310
310
|
bearer: gn
|
|
311
311
|
};
|
|
312
312
|
return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Vr(), ...r } : r;
|
|
@@ -412,9 +412,9 @@ function fn(r) {
|
|
|
412
412
|
throw t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
let
|
|
415
|
+
let Oe;
|
|
416
416
|
function ga() {
|
|
417
|
-
return
|
|
417
|
+
return Oe === void 0 && (Oe = Mr()), Oe;
|
|
418
418
|
}
|
|
419
419
|
let se = null;
|
|
420
420
|
const qr = (r) => new Promise((t) => {
|
|
@@ -3188,22 +3188,22 @@ function Rc(r, t = 64) {
|
|
|
3188
3188
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3189
3189
|
}
|
|
3190
3190
|
const Kr = Yt.map((r, t) => ({ pms: r, hex: Ft[t] })), _r = new mr(Kr, { keys: ["pms"] });
|
|
3191
|
-
function
|
|
3191
|
+
function $c(r, t) {
|
|
3192
3192
|
return _r.search(r, t ? { limit: t } : void 0);
|
|
3193
3193
|
}
|
|
3194
3194
|
let Qt = null;
|
|
3195
3195
|
function Xr(r) {
|
|
3196
3196
|
if (r.startsWith("#"))
|
|
3197
|
-
return
|
|
3197
|
+
return $a(r);
|
|
3198
3198
|
if (!document)
|
|
3199
3199
|
throw new Error("browserColorToHex is only supported on browsers");
|
|
3200
3200
|
if (Qt || (Qt = document.createElement("canvas").getContext("2d")), !Qt)
|
|
3201
3201
|
throw new Error("Failed to create canvas context required to convert colors");
|
|
3202
3202
|
Qt.fillStyle = r;
|
|
3203
|
-
const t =
|
|
3203
|
+
const t = $a(Qt.fillStyle);
|
|
3204
3204
|
return t || console.error(`Unknown browser color ${r}`), t;
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function $a(r) {
|
|
3207
3207
|
const t = r.substring(1).toUpperCase();
|
|
3208
3208
|
return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
|
|
3209
3209
|
}
|
|
@@ -3218,7 +3218,7 @@ const oe = (r) => {
|
|
|
3218
3218
|
return `icc-named-color(${t.slice(e + 1).slice(0, -4)}, ${r.namedColor})`;
|
|
3219
3219
|
}
|
|
3220
3220
|
return `icc-named-color(${r.profileName}, ${r.namedColor})`;
|
|
3221
|
-
},
|
|
3221
|
+
}, Oa = (r) => {
|
|
3222
3222
|
const t = r.split(/[ ](?=[^)]*?(?:\(|$))/);
|
|
3223
3223
|
if (t.length === 0)
|
|
3224
3224
|
return { browserValue: "#000000" };
|
|
@@ -3362,12 +3362,12 @@ const oe = (r) => {
|
|
|
3362
3362
|
Zr.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
|
|
3363
3363
|
const o = s.attributes.getNamedItem("fill");
|
|
3364
3364
|
if (o && o.value !== "none" && !o.value.startsWith("url(")) {
|
|
3365
|
-
const c =
|
|
3365
|
+
const c = Oa(o.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
|
|
3366
3366
|
s.setAttribute("fill", c.browserValue), s.classList.add(A), a[d] = c;
|
|
3367
3367
|
}
|
|
3368
3368
|
const l = s.attributes.getNamedItem("stroke");
|
|
3369
3369
|
if (l && l.value !== "none" && !l.value.startsWith("url(")) {
|
|
3370
|
-
const c =
|
|
3370
|
+
const c = Oa(l.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-stroke-${d}`;
|
|
3371
3371
|
s.classList.add(A), s.setAttribute("stroke", c.browserValue), a[d] = c;
|
|
3372
3372
|
}
|
|
3373
3373
|
});
|
|
@@ -4050,6 +4050,7 @@ const j = new Ci(), bn = v`
|
|
|
4050
4050
|
mandatory
|
|
4051
4051
|
title
|
|
4052
4052
|
uniqueIdentifier
|
|
4053
|
+
customFieldIndex
|
|
4053
4054
|
}
|
|
4054
4055
|
mandatory
|
|
4055
4056
|
}
|
|
@@ -4222,6 +4223,7 @@ const j = new Ci(), bn = v`
|
|
|
4222
4223
|
mandatory
|
|
4223
4224
|
title
|
|
4224
4225
|
uniqueIdentifier
|
|
4226
|
+
customFieldIndex
|
|
4225
4227
|
}
|
|
4226
4228
|
mandatory
|
|
4227
4229
|
}
|
|
@@ -4291,6 +4293,7 @@ const j = new Ci(), bn = v`
|
|
|
4291
4293
|
mandatory
|
|
4292
4294
|
title
|
|
4293
4295
|
uniqueIdentifier
|
|
4296
|
+
customFieldIndex
|
|
4294
4297
|
}
|
|
4295
4298
|
mandatory
|
|
4296
4299
|
}
|
|
@@ -5052,6 +5055,7 @@ const j = new Ci(), bn = v`
|
|
|
5052
5055
|
mandatory
|
|
5053
5056
|
title
|
|
5054
5057
|
uniqueIdentifier
|
|
5058
|
+
customFieldIndex
|
|
5055
5059
|
}
|
|
5056
5060
|
mandatory
|
|
5057
5061
|
}
|
|
@@ -5111,7 +5115,7 @@ const j = new Ci(), bn = v`
|
|
|
5111
5115
|
...MarketplaceThemeInstallConfigurationFields
|
|
5112
5116
|
}
|
|
5113
5117
|
}
|
|
5114
|
-
`,
|
|
5118
|
+
`, $i = v`
|
|
5115
5119
|
${bn}
|
|
5116
5120
|
${Ne}
|
|
5117
5121
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
|
@@ -5124,7 +5128,7 @@ const j = new Ci(), bn = v`
|
|
|
5124
5128
|
...ActiveIntegrationFields
|
|
5125
5129
|
}
|
|
5126
5130
|
}
|
|
5127
|
-
`,
|
|
5131
|
+
`, Oi = v`
|
|
5128
5132
|
${Ne}
|
|
5129
5133
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
|
5130
5134
|
transactions(ids: [$id]) {
|
|
@@ -5157,7 +5161,7 @@ const j = new Ci(), bn = v`
|
|
|
5157
5161
|
timestamp
|
|
5158
5162
|
}
|
|
5159
5163
|
}
|
|
5160
|
-
`,
|
|
5164
|
+
`, $t = [I.SilentIllustration, I.ProductOverlay], zi = async (r) => {
|
|
5161
5165
|
const t = [];
|
|
5162
5166
|
r.introduction && t.push({
|
|
5163
5167
|
name: "Introduction",
|
|
@@ -5180,16 +5184,16 @@ const j = new Ci(), bn = v`
|
|
|
5180
5184
|
t.push({
|
|
5181
5185
|
name: a.stepName,
|
|
5182
5186
|
title: a.stepTitle,
|
|
5183
|
-
renderableSteps:
|
|
5184
|
-
silentSteps:
|
|
5187
|
+
renderableSteps: $t.includes(a.type) ? [] : [a],
|
|
5188
|
+
silentSteps: $t.includes(a.type) ? [a] : []
|
|
5185
5189
|
});
|
|
5186
5190
|
else {
|
|
5187
5191
|
const i = t.find((s) => s.name === n.name);
|
|
5188
|
-
i ?
|
|
5192
|
+
i ? $t.includes(a.type) ? i.silentSteps.push(a) : i.renderableSteps.push(a) : t.push({
|
|
5189
5193
|
name: n.name,
|
|
5190
5194
|
title: n.name,
|
|
5191
|
-
renderableSteps:
|
|
5192
|
-
silentSteps:
|
|
5195
|
+
renderableSteps: $t.includes(a.type) ? [] : [a],
|
|
5196
|
+
silentSteps: $t.includes(a.type) ? [a] : []
|
|
5193
5197
|
});
|
|
5194
5198
|
}
|
|
5195
5199
|
}
|
|
@@ -5339,12 +5343,12 @@ const Q = () => {
|
|
|
5339
5343
|
viewBox: A,
|
|
5340
5344
|
width: u
|
|
5341
5345
|
}) => {
|
|
5342
|
-
var
|
|
5343
|
-
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (
|
|
5346
|
+
var b;
|
|
5347
|
+
const h = e || 0, m = 2 * ((l == null ? void 0 : l.scale) || 1), g = A || { x: 0, y: 0, width: u, height: i }, p = `${g.x} ${g.y} ${g.width} ${g.height}`, f = Q(), C = a.purpose === Ht.FreeDesign && /* @__PURE__ */ x("defs", { children: /* @__PURE__ */ x("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ x("rect", { width: g.width, height: g.height, rx: h }) }) }), w = (b = a.colorProfiles) == null ? void 0 : b.map((E, P) => (
|
|
5344
5348
|
/* @ts-ignore */
|
|
5345
|
-
/* @__PURE__ */ x("color-profile", { name:
|
|
5346
|
-
)), S = n.map((
|
|
5347
|
-
...
|
|
5349
|
+
/* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, P)
|
|
5350
|
+
)), S = n.map((E) => ({
|
|
5351
|
+
...E,
|
|
5348
5352
|
_renderingConfiguration: a,
|
|
5349
5353
|
mask: l ? `url(#viewmask-${f})` : void 0
|
|
5350
5354
|
})), y = va(S);
|
|
@@ -5384,7 +5388,7 @@ const Q = () => {
|
|
|
5384
5388
|
{
|
|
5385
5389
|
id: "element-group",
|
|
5386
5390
|
clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5387
|
-
children: y.map((
|
|
5391
|
+
children: y.map((E) => Rn(E)).filter((E) => !!E)
|
|
5388
5392
|
}
|
|
5389
5393
|
),
|
|
5390
5394
|
l && /* @__PURE__ */ x(
|
|
@@ -5425,7 +5429,7 @@ const Q = () => {
|
|
|
5425
5429
|
]
|
|
5426
5430
|
}
|
|
5427
5431
|
);
|
|
5428
|
-
},
|
|
5432
|
+
}, Oc = (r, t, e, a, n) => {
|
|
5429
5433
|
const i = pt(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, p = u * A - m * d, f = h * A - g * d, C = u * d + m * A, w = h * d + g * A, S = Math.max(Math.abs(p), Math.abs(f)), y = Math.max(Math.abs(C), Math.abs(w));
|
|
5430
5434
|
return {
|
|
5431
5435
|
minX: l - S,
|
|
@@ -5589,8 +5593,8 @@ const Q = () => {
|
|
|
5589
5593
|
/* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
|
|
5590
5594
|
] })
|
|
5591
5595
|
] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
|
|
5592
|
-
var w, S, y,
|
|
5593
|
-
const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((
|
|
5596
|
+
var w, S, y, b, E, P, D, F, k, T;
|
|
5597
|
+
const A = ((w = r.pattern) == null ? void 0 : w.x) || 0, u = ((S = r.pattern) == null ? void 0 : S.y) || 0, h = ((y = r.pattern) == null ? void 0 : y.width) || 0, m = ((b = r.pattern) == null ? void 0 : b.height) || 0, g = ((E = r.pattern) == null ? void 0 : E.scaleX) || 1, p = ((P = r.pattern) == null ? void 0 : P.scaleY) || 1, f = ((D = r.pattern) == null ? void 0 : D.rotation) || 0;
|
|
5594
5598
|
return [(F = r.pattern) != null && F.svg ? {
|
|
5595
5599
|
id: `${t}-contents`,
|
|
5596
5600
|
type: M.Illustration,
|
|
@@ -5751,16 +5755,16 @@ const Ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
|
|
|
5751
5755
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5752
5756
|
), S = w.getBoundingBox().x2 - w.getBoundingBox().x1;
|
|
5753
5757
|
let y = 0;
|
|
5754
|
-
const
|
|
5755
|
-
|
|
5756
|
-
const
|
|
5758
|
+
const b = A.getAttribute("text-anchor");
|
|
5759
|
+
b === "middle" ? y = S / 2 : b === "end" && (y = S);
|
|
5760
|
+
const E = g.getPath(
|
|
5757
5761
|
A.innerHTML,
|
|
5758
5762
|
parseFloat(A.getAttribute("x") ?? "0") - y,
|
|
5759
5763
|
parseFloat(A.getAttribute("y") ?? "0"),
|
|
5760
5764
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5761
5765
|
);
|
|
5762
|
-
|
|
5763
|
-
const P =
|
|
5766
|
+
E.fill = p, E.stroke = f, E.strokeWidth = parseFloat(C ?? "0");
|
|
5767
|
+
const P = E.toSVG(2), F = t.parseFromString(P, "image/svg+xml").firstElementChild;
|
|
5764
5768
|
h.appendChild(F);
|
|
5765
5769
|
}
|
|
5766
5770
|
return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
|
|
@@ -6197,7 +6201,7 @@ const ae = (r) => {
|
|
|
6197
6201
|
if (r.defaultVariant !== void 0)
|
|
6198
6202
|
return t.find((e) => e.id === r.defaultVariant);
|
|
6199
6203
|
}
|
|
6200
|
-
}, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(),
|
|
6204
|
+
}, At = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), $n = async (r, t) => {
|
|
6201
6205
|
if (!t) {
|
|
6202
6206
|
if (!r)
|
|
6203
6207
|
throw new Error("No region or src supplied. Cannot construct frame!");
|
|
@@ -6274,7 +6278,7 @@ const ae = (r) => {
|
|
|
6274
6278
|
if (At.has(r))
|
|
6275
6279
|
return At.get(r);
|
|
6276
6280
|
if (r.startsWith("data:image/svg+xml")) {
|
|
6277
|
-
const a = fr(r), n = new TextDecoder().decode(a.buffer), i =
|
|
6281
|
+
const a = fr(r), n = new TextDecoder().decode(a.buffer), i = On(n), s = {
|
|
6278
6282
|
src: r,
|
|
6279
6283
|
width: i.width,
|
|
6280
6284
|
height: i.height,
|
|
@@ -6301,8 +6305,8 @@ const ae = (r) => {
|
|
|
6301
6305
|
}
|
|
6302
6306
|
}, ba = async (r) => {
|
|
6303
6307
|
const t = await nt(r);
|
|
6304
|
-
return
|
|
6305
|
-
}, za = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r),
|
|
6308
|
+
return On(t);
|
|
6309
|
+
}, za = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), On = (r) => {
|
|
6306
6310
|
const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
|
|
6307
6311
|
if (!a)
|
|
6308
6312
|
throw new Error("No svg tag found, this svg must be malformed!");
|
|
@@ -6313,7 +6317,7 @@ const ae = (r) => {
|
|
|
6313
6317
|
width: o[2],
|
|
6314
6318
|
height: o[3]
|
|
6315
6319
|
};
|
|
6316
|
-
},
|
|
6320
|
+
}, Ot = (r, t) => {
|
|
6317
6321
|
const e = r.layoutState.elements.filter((n) => n.layer === t), a = Math.max(...e.map((n) => n.layerIndex).filter((n) => n !== void 0));
|
|
6318
6322
|
return Math.max(a, 0) + 1;
|
|
6319
6323
|
}, Un = async (r) => new Promise((t) => {
|
|
@@ -6389,7 +6393,7 @@ const ae = (r) => {
|
|
|
6389
6393
|
};
|
|
6390
6394
|
class _c {
|
|
6391
6395
|
static async getFrame(t, e) {
|
|
6392
|
-
const a = await
|
|
6396
|
+
const a = await $n(e.region, e.src), n = await Qe(a), i = e.region || await Ut(t, M.Frame);
|
|
6393
6397
|
return {
|
|
6394
6398
|
id: Q(),
|
|
6395
6399
|
x: i.left,
|
|
@@ -6397,7 +6401,7 @@ class _c {
|
|
|
6397
6401
|
width: i.width,
|
|
6398
6402
|
height: i.height,
|
|
6399
6403
|
layer: i.layer || 0,
|
|
6400
|
-
layerIndex: i.layerIndex ||
|
|
6404
|
+
layerIndex: i.layerIndex || Ot(t, i.layer || 0),
|
|
6401
6405
|
rotation: i.rotation,
|
|
6402
6406
|
scaleX: i.width / n.width,
|
|
6403
6407
|
scaleY: i.height / n.height,
|
|
@@ -6426,7 +6430,7 @@ class _c {
|
|
|
6426
6430
|
width: a.width,
|
|
6427
6431
|
height: a.height,
|
|
6428
6432
|
layer: a.layer || 0,
|
|
6429
|
-
layerIndex: a.layerIndex ||
|
|
6433
|
+
layerIndex: a.layerIndex || Ot(t, a.layer || 0),
|
|
6430
6434
|
immutable: a.immutable,
|
|
6431
6435
|
preserveAspectRatio: "none"
|
|
6432
6436
|
};
|
|
@@ -6455,7 +6459,7 @@ class _c {
|
|
|
6455
6459
|
fill: (i == null ? void 0 : i.color) || a.colour || "#000000",
|
|
6456
6460
|
fontData: o,
|
|
6457
6461
|
layer: A.layer || 0,
|
|
6458
|
-
layerIndex: A.layerIndex ||
|
|
6462
|
+
layerIndex: A.layerIndex || Ot(t, A.layer || 0),
|
|
6459
6463
|
paths: a.paths,
|
|
6460
6464
|
rotation: A.rotation,
|
|
6461
6465
|
vertical: a.vertical,
|
|
@@ -6518,7 +6522,7 @@ class _c {
|
|
|
6518
6522
|
width: i.width,
|
|
6519
6523
|
height: i.height,
|
|
6520
6524
|
layer: i.layer || 0,
|
|
6521
|
-
layerIndex: i.layerIndex ||
|
|
6525
|
+
layerIndex: i.layerIndex || Ot(t, i.layer || 0),
|
|
6522
6526
|
immutable: i.immutable
|
|
6523
6527
|
};
|
|
6524
6528
|
}
|
|
@@ -6538,7 +6542,7 @@ class _c {
|
|
|
6538
6542
|
width: a.width,
|
|
6539
6543
|
height: a.height,
|
|
6540
6544
|
layer: a.layer || 0,
|
|
6541
|
-
layerIndex: a.layerIndex ||
|
|
6545
|
+
layerIndex: a.layerIndex || Ot(t, a.layer || 0),
|
|
6542
6546
|
immutable: a.immutable
|
|
6543
6547
|
};
|
|
6544
6548
|
}
|
|
@@ -6612,7 +6616,7 @@ const L = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
|
6612
6616
|
}
|
|
6613
6617
|
}
|
|
6614
6618
|
};
|
|
6615
|
-
class
|
|
6619
|
+
class $ {
|
|
6616
6620
|
undo() {
|
|
6617
6621
|
if (!this.oldState)
|
|
6618
6622
|
throw new Error("Cannot undo.");
|
|
@@ -6622,7 +6626,7 @@ class O {
|
|
|
6622
6626
|
this.oldState = t;
|
|
6623
6627
|
}
|
|
6624
6628
|
}
|
|
6625
|
-
class Ga extends
|
|
6629
|
+
class Ga extends $ {
|
|
6626
6630
|
constructor(t) {
|
|
6627
6631
|
super(), this.serializableWorkflow = t;
|
|
6628
6632
|
}
|
|
@@ -6633,7 +6637,7 @@ class Ga extends O {
|
|
|
6633
6637
|
};
|
|
6634
6638
|
}
|
|
6635
6639
|
}
|
|
6636
|
-
class Xc extends
|
|
6640
|
+
class Xc extends $ {
|
|
6637
6641
|
constructor(t, e, a) {
|
|
6638
6642
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6639
6643
|
}
|
|
@@ -6656,7 +6660,7 @@ class Xc extends O {
|
|
|
6656
6660
|
};
|
|
6657
6661
|
}
|
|
6658
6662
|
}
|
|
6659
|
-
class Zc extends
|
|
6663
|
+
class Zc extends $ {
|
|
6660
6664
|
constructor(t, e) {
|
|
6661
6665
|
super(), this.id = t, this.angle = e;
|
|
6662
6666
|
}
|
|
@@ -6678,7 +6682,7 @@ class Zc extends O {
|
|
|
6678
6682
|
};
|
|
6679
6683
|
}
|
|
6680
6684
|
}
|
|
6681
|
-
class td extends
|
|
6685
|
+
class td extends $ {
|
|
6682
6686
|
constructor(t, e, a) {
|
|
6683
6687
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6684
6688
|
}
|
|
@@ -6709,7 +6713,7 @@ class td extends O {
|
|
|
6709
6713
|
};
|
|
6710
6714
|
}
|
|
6711
6715
|
}
|
|
6712
|
-
class
|
|
6716
|
+
class O extends $ {
|
|
6713
6717
|
constructor(t) {
|
|
6714
6718
|
super(), this.commands = t;
|
|
6715
6719
|
}
|
|
@@ -6717,7 +6721,7 @@ class $ extends O {
|
|
|
6717
6721
|
return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
|
|
6718
6722
|
}
|
|
6719
6723
|
}
|
|
6720
|
-
class Ln extends
|
|
6724
|
+
class Ln extends $ {
|
|
6721
6725
|
constructor(t) {
|
|
6722
6726
|
super(), this.layout = t;
|
|
6723
6727
|
}
|
|
@@ -6735,7 +6739,7 @@ class Ln extends O {
|
|
|
6735
6739
|
};
|
|
6736
6740
|
}
|
|
6737
6741
|
}
|
|
6738
|
-
class W extends
|
|
6742
|
+
class W extends $ {
|
|
6739
6743
|
/**
|
|
6740
6744
|
* @param initialParams The initial parameters to be set on this new object
|
|
6741
6745
|
* @param callback An optional callback function to be notified when the object has been instantiated
|
|
@@ -6795,7 +6799,7 @@ class W extends O {
|
|
|
6795
6799
|
return a !== void 0 ? a + 1 : 0;
|
|
6796
6800
|
}
|
|
6797
6801
|
}
|
|
6798
|
-
class Et extends
|
|
6802
|
+
class Et extends $ {
|
|
6799
6803
|
constructor(t) {
|
|
6800
6804
|
super(), this.id = t;
|
|
6801
6805
|
}
|
|
@@ -6817,7 +6821,7 @@ class Et extends O {
|
|
|
6817
6821
|
};
|
|
6818
6822
|
}
|
|
6819
6823
|
}
|
|
6820
|
-
class ds extends
|
|
6824
|
+
class ds extends $ {
|
|
6821
6825
|
constructor(t, e, a) {
|
|
6822
6826
|
super(), this.id = t, this.color = e, this.textFillSpotColor = a;
|
|
6823
6827
|
}
|
|
@@ -6841,7 +6845,7 @@ class ds extends O {
|
|
|
6841
6845
|
};
|
|
6842
6846
|
}
|
|
6843
6847
|
}
|
|
6844
|
-
class We extends
|
|
6848
|
+
class We extends $ {
|
|
6845
6849
|
constructor(t, e) {
|
|
6846
6850
|
super(), this.id = t, this.imageFill = e;
|
|
6847
6851
|
}
|
|
@@ -6863,7 +6867,7 @@ class We extends O {
|
|
|
6863
6867
|
};
|
|
6864
6868
|
}
|
|
6865
6869
|
}
|
|
6866
|
-
class As extends
|
|
6870
|
+
class As extends $ {
|
|
6867
6871
|
constructor(t, e) {
|
|
6868
6872
|
super(), this.id = t, this.size = e;
|
|
6869
6873
|
}
|
|
@@ -6885,7 +6889,7 @@ class As extends O {
|
|
|
6885
6889
|
};
|
|
6886
6890
|
}
|
|
6887
6891
|
}
|
|
6888
|
-
class Wa extends
|
|
6892
|
+
class Wa extends $ {
|
|
6889
6893
|
constructor(t, e) {
|
|
6890
6894
|
super(), this.id = t, this.fontData = e;
|
|
6891
6895
|
}
|
|
@@ -6907,7 +6911,7 @@ class Wa extends O {
|
|
|
6907
6911
|
};
|
|
6908
6912
|
}
|
|
6909
6913
|
}
|
|
6910
|
-
class us extends
|
|
6914
|
+
class us extends $ {
|
|
6911
6915
|
constructor(t, e) {
|
|
6912
6916
|
super(), this.id = t, this.align = e;
|
|
6913
6917
|
}
|
|
@@ -6929,7 +6933,7 @@ class us extends O {
|
|
|
6929
6933
|
};
|
|
6930
6934
|
}
|
|
6931
6935
|
}
|
|
6932
|
-
class hs extends
|
|
6936
|
+
class hs extends $ {
|
|
6933
6937
|
constructor(t, e, a) {
|
|
6934
6938
|
super(), this.id = t, this.imageData = e, this.offsets = a;
|
|
6935
6939
|
}
|
|
@@ -6965,7 +6969,7 @@ class hs extends O {
|
|
|
6965
6969
|
};
|
|
6966
6970
|
}
|
|
6967
6971
|
}
|
|
6968
|
-
class ms extends
|
|
6972
|
+
class ms extends $ {
|
|
6969
6973
|
constructor(t, e, a, n, i) {
|
|
6970
6974
|
super(), this.id = t, this.useThreshold = e, this.invertThreshold = a, this.threshold = n, this.thresholdSaturation = i;
|
|
6971
6975
|
}
|
|
@@ -6990,7 +6994,7 @@ class ms extends O {
|
|
|
6990
6994
|
};
|
|
6991
6995
|
}
|
|
6992
6996
|
}
|
|
6993
|
-
class ed extends
|
|
6997
|
+
class ed extends $ {
|
|
6994
6998
|
constructor(t, e) {
|
|
6995
6999
|
super(), this.id = t, this.src = e;
|
|
6996
7000
|
}
|
|
@@ -7012,7 +7016,7 @@ class ed extends O {
|
|
|
7012
7016
|
};
|
|
7013
7017
|
}
|
|
7014
7018
|
}
|
|
7015
|
-
class gs extends
|
|
7019
|
+
class gs extends $ {
|
|
7016
7020
|
constructor(t, e) {
|
|
7017
7021
|
super(), this.id = t, this.text = e;
|
|
7018
7022
|
}
|
|
@@ -7031,7 +7035,7 @@ class gs extends O {
|
|
|
7031
7035
|
};
|
|
7032
7036
|
}
|
|
7033
7037
|
}
|
|
7034
|
-
class qe extends
|
|
7038
|
+
class qe extends $ {
|
|
7035
7039
|
constructor(t, e, a) {
|
|
7036
7040
|
super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
|
|
7037
7041
|
}
|
|
@@ -7054,7 +7058,7 @@ class qe extends O {
|
|
|
7054
7058
|
};
|
|
7055
7059
|
}
|
|
7056
7060
|
}
|
|
7057
|
-
class oa extends
|
|
7061
|
+
class oa extends $ {
|
|
7058
7062
|
constructor(t, e, a) {
|
|
7059
7063
|
super(), this.id = t, this.className = e, this.fill = a;
|
|
7060
7064
|
}
|
|
@@ -7086,7 +7090,7 @@ class oa extends O {
|
|
|
7086
7090
|
};
|
|
7087
7091
|
}
|
|
7088
7092
|
}
|
|
7089
|
-
class ps extends
|
|
7093
|
+
class ps extends $ {
|
|
7090
7094
|
constructor(t, e, a) {
|
|
7091
7095
|
super(), this.id = t, this.svgBody = e, this.objectURL = a;
|
|
7092
7096
|
}
|
|
@@ -7109,7 +7113,7 @@ class ps extends O {
|
|
|
7109
7113
|
};
|
|
7110
7114
|
}
|
|
7111
7115
|
}
|
|
7112
|
-
class ad extends
|
|
7116
|
+
class ad extends $ {
|
|
7113
7117
|
/**
|
|
7114
7118
|
* @param id The targeted element to bring to the front.
|
|
7115
7119
|
*/
|
|
@@ -7138,7 +7142,7 @@ class ad extends O {
|
|
|
7138
7142
|
};
|
|
7139
7143
|
}
|
|
7140
7144
|
}
|
|
7141
|
-
class nd extends
|
|
7145
|
+
class nd extends $ {
|
|
7142
7146
|
/**
|
|
7143
7147
|
* @param id The targeted element to bring to the back.
|
|
7144
7148
|
*/
|
|
@@ -7169,7 +7173,7 @@ class nd extends O {
|
|
|
7169
7173
|
};
|
|
7170
7174
|
}
|
|
7171
7175
|
}
|
|
7172
|
-
class rd extends
|
|
7176
|
+
class rd extends $ {
|
|
7173
7177
|
/**
|
|
7174
7178
|
* @param id The targeted element to bring to the front.
|
|
7175
7179
|
*/
|
|
@@ -7196,7 +7200,7 @@ class rd extends O {
|
|
|
7196
7200
|
};
|
|
7197
7201
|
}
|
|
7198
7202
|
}
|
|
7199
|
-
class id extends
|
|
7203
|
+
class id extends $ {
|
|
7200
7204
|
/**
|
|
7201
7205
|
* @param id The targeted element to bring to the front.
|
|
7202
7206
|
*/
|
|
@@ -7449,7 +7453,7 @@ class Cs {
|
|
|
7449
7453
|
A
|
|
7450
7454
|
);
|
|
7451
7455
|
});
|
|
7452
|
-
return { command: new
|
|
7456
|
+
return { command: new O(l), followup: async () => {
|
|
7453
7457
|
} };
|
|
7454
7458
|
}
|
|
7455
7459
|
}
|
|
@@ -7760,11 +7764,11 @@ class Be {
|
|
|
7760
7764
|
scaleX: (w == null ? void 0 : w.zoom) || 1,
|
|
7761
7765
|
scaleY: (w == null ? void 0 : w.zoom) || 1,
|
|
7762
7766
|
rotation: 0
|
|
7763
|
-
} : void 0, y = Q(),
|
|
7764
|
-
if (!
|
|
7767
|
+
} : void 0, y = Q(), E = n.getLayouts().find((P) => P.panelId === m.panelId);
|
|
7768
|
+
if (!E)
|
|
7765
7769
|
throw new Y(m);
|
|
7766
7770
|
return {
|
|
7767
|
-
command: this.getCreateElementCommand(y, m,
|
|
7771
|
+
command: this.getCreateElementCommand(y, m, E, {
|
|
7768
7772
|
frameData: p,
|
|
7769
7773
|
pattern: S,
|
|
7770
7774
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
@@ -7779,7 +7783,7 @@ class Be {
|
|
|
7779
7783
|
})
|
|
7780
7784
|
), A = d.map((m) => m.command), u = d.map((m) => m.removeExistingCommands).flat();
|
|
7781
7785
|
return {
|
|
7782
|
-
command: new
|
|
7786
|
+
command: new O([...A, ...u]),
|
|
7783
7787
|
followup: async () => {
|
|
7784
7788
|
i && i(!1), await n.setSelectionsAndElements(
|
|
7785
7789
|
t.stepName,
|
|
@@ -7956,7 +7960,7 @@ class ws {
|
|
|
7956
7960
|
c.push(new oa(d, A, u));
|
|
7957
7961
|
c.push(new ps(d, o, l));
|
|
7958
7962
|
}
|
|
7959
|
-
return new
|
|
7963
|
+
return new O(c);
|
|
7960
7964
|
}
|
|
7961
7965
|
async changeColors(t, e, a, n, i) {
|
|
7962
7966
|
var h, m;
|
|
@@ -8038,7 +8042,7 @@ class ws {
|
|
|
8038
8042
|
return w.toLowerCase() === ((S = C.color) == null ? void 0 : S.toLowerCase()) ? C.name : w;
|
|
8039
8043
|
});
|
|
8040
8044
|
})), i.updateMetadata(t.stepName, { colors: g }), {
|
|
8041
|
-
command: new
|
|
8045
|
+
command: new O(m),
|
|
8042
8046
|
followup: async () => {
|
|
8043
8047
|
var w, S;
|
|
8044
8048
|
await i.setSelectionsAndElements(
|
|
@@ -8052,22 +8056,22 @@ class ws {
|
|
|
8052
8056
|
const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
|
|
8053
8057
|
if (C.length !== 0) {
|
|
8054
8058
|
const y = {};
|
|
8055
|
-
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((
|
|
8059
|
+
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((E) => {
|
|
8056
8060
|
var D;
|
|
8057
|
-
const P = C.find((F) => F.channelNumber ===
|
|
8058
|
-
P && (y[`${
|
|
8061
|
+
const P = C.find((F) => F.channelNumber === E.number);
|
|
8062
|
+
P && (y[`${E.id.replace(/\W/g, "")}`] = { browserValue: ((D = P == null ? void 0 : P.variant) == null ? void 0 : D.color) || "" });
|
|
8059
8063
|
}), await this.changeColors(
|
|
8060
8064
|
t,
|
|
8061
|
-
u.map((
|
|
8065
|
+
u.map((E) => E.regionElement),
|
|
8062
8066
|
i,
|
|
8063
8067
|
() => i.getCommandContext().getAllLayouts(),
|
|
8064
8068
|
new Map(Object.entries(y))
|
|
8065
8069
|
);
|
|
8066
8070
|
}
|
|
8067
8071
|
if (t.data.colorPickerEnabled) {
|
|
8068
|
-
const y = await this.availableColors(t, i) || [],
|
|
8069
|
-
if (
|
|
8070
|
-
const P = y[0], D =
|
|
8072
|
+
const y = await this.availableColors(t, i) || [], b = Object.keys(c.colors), E = y.length === 1 && b.length === 1;
|
|
8073
|
+
if (E) {
|
|
8074
|
+
const P = y[0], D = b[0];
|
|
8071
8075
|
await this.changeColors(
|
|
8072
8076
|
t,
|
|
8073
8077
|
u.map((F) => F.regionElement),
|
|
@@ -8076,7 +8080,7 @@ class ws {
|
|
|
8076
8080
|
/* @__PURE__ */ new Map([[D, P.variant.color]])
|
|
8077
8081
|
);
|
|
8078
8082
|
}
|
|
8079
|
-
!
|
|
8083
|
+
!E && C.length === 0 && await this.changeColors(
|
|
8080
8084
|
t,
|
|
8081
8085
|
u.map((P) => P.regionElement),
|
|
8082
8086
|
i,
|
|
@@ -8315,7 +8319,7 @@ class vs {
|
|
|
8315
8319
|
), {
|
|
8316
8320
|
id: m,
|
|
8317
8321
|
region: u,
|
|
8318
|
-
command: new
|
|
8322
|
+
command: new O(f)
|
|
8319
8323
|
};
|
|
8320
8324
|
};
|
|
8321
8325
|
if (i.length > 0) {
|
|
@@ -8326,7 +8330,7 @@ class vs {
|
|
|
8326
8330
|
return c(m, h.region, h.id);
|
|
8327
8331
|
}).filter((h) => !!h).filter((h) => !!h).map((h) => h && h.command);
|
|
8328
8332
|
return {
|
|
8329
|
-
command: new
|
|
8333
|
+
command: new O(u),
|
|
8330
8334
|
followup: async () => {
|
|
8331
8335
|
}
|
|
8332
8336
|
};
|
|
@@ -8335,7 +8339,7 @@ class vs {
|
|
|
8335
8339
|
(h) => c(s.svgPrint(e, h), h)
|
|
8336
8340
|
), u = A.filter((h) => !!h).map((h) => h && h.command);
|
|
8337
8341
|
return {
|
|
8338
|
-
command: new
|
|
8342
|
+
command: new O(u),
|
|
8339
8343
|
followup: async () => {
|
|
8340
8344
|
const h = A.filter((m) => m).map((m) => m && { id: m.id, region: m.region });
|
|
8341
8345
|
await a.setSelectionsAndElements(
|
|
@@ -8443,7 +8447,7 @@ class Es {
|
|
|
8443
8447
|
};
|
|
8444
8448
|
}, d = t.data.regions.map(c);
|
|
8445
8449
|
return {
|
|
8446
|
-
command: new
|
|
8450
|
+
command: new O([...l, ...d.map((A) => A.command)]),
|
|
8447
8451
|
followup: async () => {
|
|
8448
8452
|
await a.setSelectionsAndElements(
|
|
8449
8453
|
t.stepName,
|
|
@@ -8538,7 +8542,7 @@ class Bs {
|
|
|
8538
8542
|
throw new Y(l);
|
|
8539
8543
|
return new oa(o.id, this.shapeFillId, t);
|
|
8540
8544
|
}).filter((o) => !!o);
|
|
8541
|
-
a.getCommandDispatcher()(new
|
|
8545
|
+
a.getCommandDispatcher()(new O(s)), a.updateStorage(e.stepName, { colour: t });
|
|
8542
8546
|
}
|
|
8543
8547
|
async init(t, e, a) {
|
|
8544
8548
|
const n = t.option;
|
|
@@ -8611,7 +8615,7 @@ class Bs {
|
|
|
8611
8615
|
return new oa(A.id, this.shapeFillId, m);
|
|
8612
8616
|
}, d = a.map(c).filter((A) => !!A);
|
|
8613
8617
|
return {
|
|
8614
|
-
command: new
|
|
8618
|
+
command: new O(d),
|
|
8615
8619
|
followup: async () => {
|
|
8616
8620
|
await n.setSelectionsAndElements(
|
|
8617
8621
|
t.stepName,
|
|
@@ -8674,7 +8678,7 @@ class Bs {
|
|
|
8674
8678
|
};
|
|
8675
8679
|
}, d = t.data.regions.map(c), A = d.filter((h) => !!h).map((h) => h == null ? void 0 : h.command), u = d.filter((h) => !!h).map((h) => ({ id: h.id, region: h.region }));
|
|
8676
8680
|
return {
|
|
8677
|
-
command: new
|
|
8681
|
+
command: new O(A),
|
|
8678
8682
|
followup: async () => {
|
|
8679
8683
|
await n.setSelectionsAndElements(
|
|
8680
8684
|
t.stepName,
|
|
@@ -8826,7 +8830,7 @@ class Fs {
|
|
|
8826
8830
|
if (p && t.globalPropertyAspectConfigurations) {
|
|
8827
8831
|
const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find((S) => {
|
|
8828
8832
|
var y;
|
|
8829
|
-
return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((
|
|
8833
|
+
return S.type === z.Text && ((y = t.globalPropertyAspectConfigurations) == null ? void 0 : y.map((b) => b.aspectName).includes(S.name));
|
|
8830
8834
|
});
|
|
8831
8835
|
if (w) {
|
|
8832
8836
|
const y = p.getGlobalPropertyStateManager().getAspect(w.name);
|
|
@@ -9027,7 +9031,7 @@ class Fs {
|
|
|
9027
9031
|
}
|
|
9028
9032
|
return !a.data.curved && e.length > 0 && !Array.from(d.values()).every((u) => u) ? (o.errorData || (o.errorData = {}), o.errorData.doesNotFit = !0, o) : (n.updateStorage(a.stepName, { text: t }), n.updateMetadata(a.stepName, {
|
|
9029
9033
|
text: s
|
|
9030
|
-
}), (i != null && i.defaultCleared || !a.data.deleteDefaultOnFocus) && s.trim() !== "" && n.setMandatoryFulfilled(a.stepName, !0), o.command = new
|
|
9034
|
+
}), (i != null && i.defaultCleared || !a.data.deleteDefaultOnFocus) && s.trim() !== "" && n.setMandatoryFulfilled(a.stepName, !0), o.command = new O(l), o);
|
|
9031
9035
|
}
|
|
9032
9036
|
async selectVariant(t, e, a, n, i) {
|
|
9033
9037
|
const s = await this.selectVariantCommand(
|
|
@@ -9068,12 +9072,12 @@ class Fs {
|
|
|
9068
9072
|
let w = (A = n.storage) == null ? void 0 : A.text;
|
|
9069
9073
|
const S = e.getWorkflowExperience().getBundle();
|
|
9070
9074
|
if (S && t.globalPropertyAspectConfigurations) {
|
|
9071
|
-
const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects,
|
|
9075
|
+
const y = (u = S.getGlobalPropertyConfiguration()) == null ? void 0 : u.aspects, b = y == null ? void 0 : y.find((E) => {
|
|
9072
9076
|
var P;
|
|
9073
|
-
return
|
|
9077
|
+
return E.type === z.Text && ((P = t.globalPropertyAspectConfigurations) == null ? void 0 : P.map((D) => D.aspectName).includes(E.name));
|
|
9074
9078
|
});
|
|
9075
|
-
if (
|
|
9076
|
-
const P = S.getGlobalPropertyStateManager().getAspect(
|
|
9079
|
+
if (b) {
|
|
9080
|
+
const P = S.getGlobalPropertyStateManager().getAspect(b.name);
|
|
9077
9081
|
P && (w = P);
|
|
9078
9082
|
}
|
|
9079
9083
|
}
|
|
@@ -9083,13 +9087,13 @@ class Fs {
|
|
|
9083
9087
|
f,
|
|
9084
9088
|
async () => {
|
|
9085
9089
|
e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
|
|
9086
|
-
const y = o.map((
|
|
9087
|
-
e.getCommandDispatcher()(
|
|
9090
|
+
const y = o.map((E) => new Wa(E.id, p)), b = new O(y);
|
|
9091
|
+
e.getCommandDispatcher()(b);
|
|
9088
9092
|
}
|
|
9089
9093
|
), o.length === 0 && l) {
|
|
9090
9094
|
const y = j.getDefaultVariant(l);
|
|
9091
9095
|
if (y) {
|
|
9092
|
-
const
|
|
9096
|
+
const b = await this.selectVariantCommand(
|
|
9093
9097
|
t,
|
|
9094
9098
|
y,
|
|
9095
9099
|
{ text: w },
|
|
@@ -9100,7 +9104,7 @@ class Fs {
|
|
|
9100
9104
|
() => {
|
|
9101
9105
|
}
|
|
9102
9106
|
);
|
|
9103
|
-
e.getCommandDispatcher()(
|
|
9107
|
+
e.getCommandDispatcher()(b.command);
|
|
9104
9108
|
}
|
|
9105
9109
|
} else {
|
|
9106
9110
|
const { command: y } = q.updateInputText(
|
|
@@ -9214,7 +9218,7 @@ class Fs {
|
|
|
9214
9218
|
o
|
|
9215
9219
|
);
|
|
9216
9220
|
return m && h.push(m), {
|
|
9217
|
-
command: new
|
|
9221
|
+
command: new O(h),
|
|
9218
9222
|
followup: async () => {
|
|
9219
9223
|
i.markUpdateCompleted(d), await i.setSelectionsAndElements(t.stepName, [e], n);
|
|
9220
9224
|
}
|
|
@@ -9251,7 +9255,7 @@ class Fs {
|
|
|
9251
9255
|
g.push(...f);
|
|
9252
9256
|
}
|
|
9253
9257
|
return m && g.push(m), {
|
|
9254
|
-
command: new
|
|
9258
|
+
command: new O(g),
|
|
9255
9259
|
followup: async () => {
|
|
9256
9260
|
i.markUpdateCompleted(d);
|
|
9257
9261
|
}
|
|
@@ -9310,7 +9314,7 @@ class Fs {
|
|
|
9310
9314
|
curved: a.curved,
|
|
9311
9315
|
paths: a.paths,
|
|
9312
9316
|
fillSpotColorDefinition: f
|
|
9313
|
-
}, y = [],
|
|
9317
|
+
}, y = [], b = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
|
|
9314
9318
|
if (!S.fontData)
|
|
9315
9319
|
throw new G("Failed to resolve font data for text.");
|
|
9316
9320
|
const [P, D] = pe(
|
|
@@ -9327,7 +9331,7 @@ class Fs {
|
|
|
9327
9331
|
[l],
|
|
9328
9332
|
{ size: a.size, minSize: a.minSize, maxSize: a.maxSize }
|
|
9329
9333
|
);
|
|
9330
|
-
|
|
9334
|
+
b.set(S.id, P), E.set(S.id, D);
|
|
9331
9335
|
const F = a.curved || a.vertical ? l : (D || []).join(`
|
|
9332
9336
|
`);
|
|
9333
9337
|
y.push(
|
|
@@ -9365,7 +9369,7 @@ class Fs {
|
|
|
9365
9369
|
const l = new As(a, t);
|
|
9366
9370
|
i.push(l);
|
|
9367
9371
|
}
|
|
9368
|
-
return new
|
|
9372
|
+
return new O(i);
|
|
9369
9373
|
}
|
|
9370
9374
|
/**
|
|
9371
9375
|
* @deprecated
|
|
@@ -9374,27 +9378,27 @@ class Fs {
|
|
|
9374
9378
|
const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
9375
9379
|
for (const S of h)
|
|
9376
9380
|
if (S.region) {
|
|
9377
|
-
const [y,
|
|
9381
|
+
const [y, b] = pe(
|
|
9378
9382
|
e,
|
|
9379
9383
|
a,
|
|
9380
9384
|
S.region,
|
|
9381
9385
|
[u],
|
|
9382
9386
|
{ size: t.data.size, minSize: t.data.minSize, maxSize: t.data.maxSize }
|
|
9383
9387
|
);
|
|
9384
|
-
m.set(S.id, y), g.set(S.id,
|
|
9388
|
+
m.set(S.id, y), g.set(S.id, b);
|
|
9385
9389
|
}
|
|
9386
9390
|
const f = (() => {
|
|
9387
9391
|
if (t.data && t.data.maxLength && u.length > t.data.maxLength)
|
|
9388
9392
|
return d && d(!0), { info: "0" };
|
|
9389
9393
|
const S = s.getProfanities(), y = Ze(u.toLowerCase());
|
|
9390
|
-
for (const
|
|
9391
|
-
for (const
|
|
9392
|
-
const P = S[
|
|
9393
|
-
if (
|
|
9394
|
+
for (const b of y)
|
|
9395
|
+
for (const E in S) {
|
|
9396
|
+
const P = S[E].toLowerCase().replace(/\s/g, "");
|
|
9397
|
+
if (b === P)
|
|
9394
9398
|
return l(!0), { error: "Blocked profanity." };
|
|
9395
9399
|
}
|
|
9396
9400
|
return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
|
|
9397
|
-
`) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((
|
|
9401
|
+
`) || u.includes("\r")) ? (l(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(g.values()).every((E) => E) ? (l(!0), { error: "Does not fit." }) : (l(!1), { info: (t.data.maxLength - u.length).toString() });
|
|
9398
9402
|
})();
|
|
9399
9403
|
if (f.error) {
|
|
9400
9404
|
c(f.error);
|
|
@@ -9418,7 +9422,7 @@ class Fs {
|
|
|
9418
9422
|
)
|
|
9419
9423
|
);
|
|
9420
9424
|
}
|
|
9421
|
-
return new
|
|
9425
|
+
return new O(C);
|
|
9422
9426
|
}
|
|
9423
9427
|
}
|
|
9424
9428
|
const q = new Fs();
|
|
@@ -9468,7 +9472,7 @@ const Ha = {
|
|
|
9468
9472
|
t: ["x", "y"],
|
|
9469
9473
|
a: ["rx", "ry", "xRotation", "largeArc", "sweep", "x", "y"]
|
|
9470
9474
|
};
|
|
9471
|
-
class
|
|
9475
|
+
class $s {
|
|
9472
9476
|
constructor(t) {
|
|
9473
9477
|
const e = Array.from(t.querySelectorAll("path"));
|
|
9474
9478
|
this.paths = e.map((a) => {
|
|
@@ -9566,7 +9570,7 @@ class Os {
|
|
|
9566
9570
|
}
|
|
9567
9571
|
}
|
|
9568
9572
|
}
|
|
9569
|
-
class
|
|
9573
|
+
class Os extends xs {
|
|
9570
9574
|
constructor() {
|
|
9571
9575
|
super(...arguments), this.moduleName = "Vegemite";
|
|
9572
9576
|
}
|
|
@@ -9584,14 +9588,14 @@ class $s extends xs {
|
|
|
9584
9588
|
w.appendChild(S), S.appendChild(Ts(0, 2, 2, "shadow"));
|
|
9585
9589
|
const y = at("path");
|
|
9586
9590
|
y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
|
|
9587
|
-
const E = at("g");
|
|
9588
|
-
E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
|
|
9589
9591
|
const b = at("g");
|
|
9590
|
-
b.classList.add("module-
|
|
9592
|
+
b.classList.add("module-layer0"), w.appendChild(b), b.setAttribute("filter", "url(#shadow)"), b.innerHTML = y.outerHTML;
|
|
9593
|
+
const E = at("g");
|
|
9594
|
+
E.classList.add("module-layer1"), w.appendChild(E), E.setAttribute("stroke-width", "3"), E.setAttribute("stroke", "rgb(45,41,38)"), E.setAttribute("fill", "rgb(45,41,38)"), E.setAttribute("transform", "translate(0.5,0)"), E.innerHTML = o;
|
|
9591
9595
|
const P = at("g");
|
|
9592
9596
|
P.classList.add("module-layer2"), w.appendChild(P), P.setAttribute("fill", "rgb(255,209,0)"), P.setAttribute("transform", "translate(1,-0.1)"), P.innerHTML = o;
|
|
9593
9597
|
const D = at("g");
|
|
9594
|
-
return D.classList.add("module-layer3"), w.appendChild(D), D.setAttribute("fill", "white"), D.innerHTML = o, new
|
|
9598
|
+
return D.classList.add("module-layer3"), w.appendChild(D), D.setAttribute("fill", "white"), D.innerHTML = o, new $s(w).transform(([k, T]) => [k, T + (c / 2 - k) ** 2 / (c * 6)]), w;
|
|
9595
9599
|
}, u = at("g");
|
|
9596
9600
|
u.classList.add("module-root");
|
|
9597
9601
|
const h = at("defs");
|
|
@@ -9610,7 +9614,7 @@ class $s extends xs {
|
|
|
9610
9614
|
}
|
|
9611
9615
|
async function Yn(r) {
|
|
9612
9616
|
if (r === "Vegemite")
|
|
9613
|
-
return new
|
|
9617
|
+
return new Os();
|
|
9614
9618
|
throw new G(`Failed to resolve Module, Module ${r} not found`);
|
|
9615
9619
|
}
|
|
9616
9620
|
const ne = v`
|
|
@@ -10235,6 +10239,13 @@ const ne = v`
|
|
|
10235
10239
|
$country: String
|
|
10236
10240
|
$mobile: String
|
|
10237
10241
|
$company: String
|
|
10242
|
+
$apartment: String
|
|
10243
|
+
$customField1: String
|
|
10244
|
+
$customField2: String
|
|
10245
|
+
$customField3: String
|
|
10246
|
+
$customField4: String
|
|
10247
|
+
$customField5: String
|
|
10248
|
+
$conversionConfigurationId: String
|
|
10238
10249
|
) {
|
|
10239
10250
|
recipientCreate(
|
|
10240
10251
|
firstName: $firstName
|
|
@@ -10247,6 +10258,13 @@ const ne = v`
|
|
|
10247
10258
|
country: $country
|
|
10248
10259
|
mobile: $mobile
|
|
10249
10260
|
company: $company
|
|
10261
|
+
apartment: $apartment
|
|
10262
|
+
customField1: $customField1
|
|
10263
|
+
customField2: $customField2
|
|
10264
|
+
customField3: $customField3
|
|
10265
|
+
customField4: $customField4
|
|
10266
|
+
customField5: $customField5
|
|
10267
|
+
conversionConfigurationId: $conversionConfigurationId
|
|
10250
10268
|
) {
|
|
10251
10269
|
id
|
|
10252
10270
|
}
|
|
@@ -10264,6 +10282,13 @@ const ne = v`
|
|
|
10264
10282
|
$country: String
|
|
10265
10283
|
$mobile: String
|
|
10266
10284
|
$company: String
|
|
10285
|
+
$apartment: String
|
|
10286
|
+
$customField1: String
|
|
10287
|
+
$customField2: String
|
|
10288
|
+
$customField3: String
|
|
10289
|
+
$customField4: String
|
|
10290
|
+
$customField5: String
|
|
10291
|
+
$conversionConfigurationId: String
|
|
10267
10292
|
) {
|
|
10268
10293
|
recipientUpdate(
|
|
10269
10294
|
id: $id
|
|
@@ -10277,6 +10302,13 @@ const ne = v`
|
|
|
10277
10302
|
country: $country
|
|
10278
10303
|
mobile: $mobile
|
|
10279
10304
|
company: $company
|
|
10305
|
+
apartment: $apartment
|
|
10306
|
+
customField1: $customField1
|
|
10307
|
+
customField2: $customField2
|
|
10308
|
+
customField3: $customField3
|
|
10309
|
+
customField4: $customField4
|
|
10310
|
+
customField5: $customField5
|
|
10311
|
+
conversionConfigurationId: $conversionConfigurationId
|
|
10280
10312
|
) {
|
|
10281
10313
|
id
|
|
10282
10314
|
}
|
|
@@ -10306,13 +10338,13 @@ class Co {
|
|
|
10306
10338
|
constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, C = !1) {
|
|
10307
10339
|
var w;
|
|
10308
10340
|
this.workflowStatePromiseQueue = new xn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
|
10309
|
-
var
|
|
10341
|
+
var b;
|
|
10310
10342
|
if (!this.previewService)
|
|
10311
10343
|
return;
|
|
10312
|
-
const S = this.getCommandContext().getAllLayouts(), y = (
|
|
10344
|
+
const S = this.getCommandContext().getAllLayouts(), y = (b = this.getLayoutPreviewService()) == null ? void 0 : b.getAll();
|
|
10313
10345
|
if (y)
|
|
10314
|
-
for (const [,
|
|
10315
|
-
|
|
10346
|
+
for (const [, E] of y)
|
|
10347
|
+
E.render(S);
|
|
10316
10348
|
}, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = f, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, (w = this.renderableContextService) == null || w.setWorkflowManager(this), this.isReloadedTransaction = p, this.workflow.steps.forEach((S) => {
|
|
10317
10349
|
this.stepTags[S.stepName] = S.tags ?? [];
|
|
10318
10350
|
}), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
|
|
@@ -10328,9 +10360,9 @@ class Co {
|
|
|
10328
10360
|
getTemplatingContext() {
|
|
10329
10361
|
return { recipient: this.transaction.recipient };
|
|
10330
10362
|
}
|
|
10331
|
-
async updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
10332
|
-
var
|
|
10333
|
-
if ((
|
|
10363
|
+
async updateRecipient(t, e, a, n, i, s, o, l, c, d, A, u, h, m, g, p, f) {
|
|
10364
|
+
var C, w, S, y, b;
|
|
10365
|
+
if ((C = this.transaction.recipient) != null && C.id)
|
|
10334
10366
|
this.transaction.recipient = {
|
|
10335
10367
|
id: this.transaction.recipient.id,
|
|
10336
10368
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10342,7 +10374,14 @@ class Co {
|
|
|
10342
10374
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10343
10375
|
country: l || this.transaction.recipient.country,
|
|
10344
10376
|
mobile: c || this.transaction.recipient.mobile,
|
|
10345
|
-
company: d || this.transaction.recipient.company
|
|
10377
|
+
company: d || this.transaction.recipient.company,
|
|
10378
|
+
apartment: A || this.transaction.recipient.apartment,
|
|
10379
|
+
customField1: u || this.transaction.recipient.customField1,
|
|
10380
|
+
customField2: h || this.transaction.recipient.customField2,
|
|
10381
|
+
customField3: m || this.transaction.recipient.customField3,
|
|
10382
|
+
customField4: g || this.transaction.recipient.customField4,
|
|
10383
|
+
customField5: p || this.transaction.recipient.customField5,
|
|
10384
|
+
conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
|
|
10346
10385
|
}, await this.graphQlClient().mutate({
|
|
10347
10386
|
mutation: go,
|
|
10348
10387
|
errorPolicy: "all",
|
|
@@ -10358,11 +10397,18 @@ class Co {
|
|
|
10358
10397
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10359
10398
|
country: l || this.transaction.recipient.country,
|
|
10360
10399
|
mobile: c || this.transaction.recipient.mobile,
|
|
10361
|
-
company: d || this.transaction.recipient.company
|
|
10400
|
+
company: d || this.transaction.recipient.company,
|
|
10401
|
+
apartment: A || this.transaction.recipient.apartment,
|
|
10402
|
+
customField1: u || this.transaction.recipient.customField1,
|
|
10403
|
+
customField2: h || this.transaction.recipient.customField2,
|
|
10404
|
+
customField3: m || this.transaction.recipient.customField3,
|
|
10405
|
+
customField4: g || this.transaction.recipient.customField4,
|
|
10406
|
+
customField5: p || this.transaction.recipient.customField5,
|
|
10407
|
+
conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
|
|
10362
10408
|
}
|
|
10363
10409
|
});
|
|
10364
10410
|
else {
|
|
10365
|
-
const
|
|
10411
|
+
const E = await this.graphQlClient().mutate({
|
|
10366
10412
|
mutation: mo,
|
|
10367
10413
|
errorPolicy: "all",
|
|
10368
10414
|
fetchPolicy: "no-cache",
|
|
@@ -10376,11 +10422,18 @@ class Co {
|
|
|
10376
10422
|
postalCode: o,
|
|
10377
10423
|
country: l,
|
|
10378
10424
|
mobile: c,
|
|
10379
|
-
company: d
|
|
10425
|
+
company: d,
|
|
10426
|
+
apartment: A,
|
|
10427
|
+
customField1: u,
|
|
10428
|
+
customField2: h,
|
|
10429
|
+
customField3: m,
|
|
10430
|
+
customField4: g,
|
|
10431
|
+
customField5: p,
|
|
10432
|
+
conversionConfigurationId: f
|
|
10380
10433
|
}
|
|
10381
10434
|
});
|
|
10382
10435
|
this.transaction.recipient = {
|
|
10383
|
-
id: (
|
|
10436
|
+
id: (S = (w = E == null ? void 0 : E.data) == null ? void 0 : w.recipientCreate) == null ? void 0 : S.id,
|
|
10384
10437
|
firstName: t,
|
|
10385
10438
|
lastName: e,
|
|
10386
10439
|
address: a,
|
|
@@ -10390,21 +10443,28 @@ class Co {
|
|
|
10390
10443
|
postalCode: o,
|
|
10391
10444
|
country: l,
|
|
10392
10445
|
mobile: c,
|
|
10393
|
-
company: d
|
|
10446
|
+
company: d,
|
|
10447
|
+
apartment: A,
|
|
10448
|
+
customField1: u,
|
|
10449
|
+
customField2: h,
|
|
10450
|
+
customField3: m,
|
|
10451
|
+
customField4: g,
|
|
10452
|
+
customField5: p,
|
|
10453
|
+
conversionConfigurationId: f
|
|
10394
10454
|
}, await this.graphQlClient().mutate({
|
|
10395
10455
|
mutation: po,
|
|
10396
10456
|
errorPolicy: "all",
|
|
10397
10457
|
fetchPolicy: "no-cache",
|
|
10398
10458
|
variables: {
|
|
10399
10459
|
id: this.transaction.id,
|
|
10400
|
-
recipientId: (
|
|
10460
|
+
recipientId: (b = (y = E.data) == null ? void 0 : y.recipientCreate) == null ? void 0 : b.id
|
|
10401
10461
|
},
|
|
10402
10462
|
context: {
|
|
10403
10463
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
10404
10464
|
}
|
|
10405
10465
|
});
|
|
10406
10466
|
}
|
|
10407
|
-
this.recipientCallbacks.forEach((
|
|
10467
|
+
this.recipientCallbacks.forEach((E) => E(this.transaction.recipient));
|
|
10408
10468
|
}
|
|
10409
10469
|
async initializeDefaultWorkflowState(t) {
|
|
10410
10470
|
const e = () => {
|
|
@@ -10419,7 +10479,7 @@ class Co {
|
|
|
10419
10479
|
this.storage[o.stepName] = o.storage || {};
|
|
10420
10480
|
}), this.allScenes = await zi(t);
|
|
10421
10481
|
const n = Pt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(n, !!this.reloadedState);
|
|
10422
|
-
this.commandContext.apply(new
|
|
10482
|
+
this.commandContext.apply(new O(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), !this.isReloadedTransaction && this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
|
|
10423
10483
|
}
|
|
10424
10484
|
getWorkflowExperience() {
|
|
10425
10485
|
return this.experience;
|
|
@@ -10879,14 +10939,14 @@ class Co {
|
|
|
10879
10939
|
this.stepSelections = {
|
|
10880
10940
|
...this.stepSelections,
|
|
10881
10941
|
[t]: { selectedVariants: e }
|
|
10882
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((
|
|
10883
|
-
wt(
|
|
10942
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((b, E) => b + E.selectedVariants.map((P) => P.priceModifier || 0).reduce((P, D) => P + D, 0), 0), this.workflow.steps.forEach((b) => {
|
|
10943
|
+
wt(b, this.stepSelections) || (this.stepInitialised[b.stepName] = !1, delete this.stepMetadata[b.stepName], delete this.stepSelections[b.stepName], delete this.storage[b.stepName]);
|
|
10884
10944
|
});
|
|
10885
|
-
const s = this.allScenes, o = Pt(s, i), l = Pt(s, this.stepSelections), c = o.map((
|
|
10886
|
-
(
|
|
10945
|
+
const s = this.allScenes, o = Pt(s, i), l = Pt(s, this.stepSelections), c = o.map((b) => b.silentSteps).flat(), A = l.map((b) => b.silentSteps).flat().filter(
|
|
10946
|
+
(b) => !c.some((E) => E.stepName === b.stepName)
|
|
10887
10947
|
);
|
|
10888
|
-
c.forEach((
|
|
10889
|
-
wt(
|
|
10948
|
+
c.forEach((b) => {
|
|
10949
|
+
wt(b, this.stepSelections) || (this.stepInitialised[b.stepName] = !1);
|
|
10890
10950
|
});
|
|
10891
10951
|
const u = this.getInvalidCanvasRegions(), { stepElements: h, commands: m } = await this.stepElementsForIntroducedSilentSteps(A, !1);
|
|
10892
10952
|
this.stepElements = {
|
|
@@ -10894,25 +10954,25 @@ class Co {
|
|
|
10894
10954
|
...h,
|
|
10895
10955
|
[t]: a
|
|
10896
10956
|
}, this.removeElements(u);
|
|
10897
|
-
const g = this.workflow.steps.find((
|
|
10957
|
+
const g = this.workflow.steps.find((b) => b.stepName === t);
|
|
10898
10958
|
if ((g == null ? void 0 : g.type) === I.Frame) {
|
|
10899
|
-
const
|
|
10900
|
-
|
|
10959
|
+
const b = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
|
|
10960
|
+
b == null || b.setTargetElements(a.map((E) => E.id));
|
|
10901
10961
|
}
|
|
10902
|
-
const p = u.map((
|
|
10903
|
-
C.length > 0 && this.commandContext.apply(new
|
|
10962
|
+
const p = u.map((b) => new Et(b.id)), f = new Ga(this.constructSerializableWorkflow()), C = [...m, ...p, f];
|
|
10963
|
+
C.length > 0 && this.commandContext.apply(new O(C), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
10904
10964
|
const w = this.getInvalidModelVariants(), S = this.modelContainer;
|
|
10905
10965
|
if (S) {
|
|
10906
|
-
const
|
|
10907
|
-
(
|
|
10908
|
-
|
|
10966
|
+
const b = w.map(
|
|
10967
|
+
(E) => S.applyModelVariant(
|
|
10968
|
+
E,
|
|
10909
10969
|
{
|
|
10910
10970
|
contextService: this.getLayoutPreviewService()
|
|
10911
10971
|
},
|
|
10912
10972
|
!1
|
|
10913
10973
|
)
|
|
10914
10974
|
);
|
|
10915
|
-
await Promise.all(
|
|
10975
|
+
await Promise.all(b);
|
|
10916
10976
|
}
|
|
10917
10977
|
await this.onSelectionChange(), n && await n();
|
|
10918
10978
|
}
|
|
@@ -10975,7 +11035,7 @@ class Co {
|
|
|
10975
11035
|
throw new Error(`Step initialization failed: ${l.reason}`);
|
|
10976
11036
|
return l.value;
|
|
10977
11037
|
}), s = i.filter((l) => !!l && !!l.command).map((l) => l.command), o = i.filter((l) => !!l && !!l.followup).map((l) => l.followup);
|
|
10978
|
-
s && s.length > 0 && this.commandContext.apply(new
|
|
11038
|
+
s && s.length > 0 && this.commandContext.apply(new O(s), !0);
|
|
10979
11039
|
for (const l of o)
|
|
10980
11040
|
await l();
|
|
10981
11041
|
o.length > 0 && await this.ensureStepsAreLoaded(), this.onInitChange();
|
|
@@ -12033,10 +12093,10 @@ const ko = async (r, t) => {
|
|
|
12033
12093
|
S[D].map((F) => F.id)
|
|
12034
12094
|
])
|
|
12035
12095
|
);
|
|
12036
|
-
let
|
|
12037
|
-
if (
|
|
12038
|
-
const D = await (await rt(
|
|
12039
|
-
|
|
12096
|
+
let b = await o(m, n.id);
|
|
12097
|
+
if (b) {
|
|
12098
|
+
const D = await (await rt(b)).blob();
|
|
12099
|
+
b = (await U.uploadAsset(
|
|
12040
12100
|
{ name: `${n.id}-preview-image.png`, blob: D },
|
|
12041
12101
|
Ce.Image,
|
|
12042
12102
|
!0,
|
|
@@ -12054,7 +12114,7 @@ const ko = async (r, t) => {
|
|
|
12054
12114
|
workflowId: t.id,
|
|
12055
12115
|
transactionId: n.id,
|
|
12056
12116
|
useThreeDimPreview: !!m,
|
|
12057
|
-
previewImage:
|
|
12117
|
+
previewImage: b
|
|
12058
12118
|
};
|
|
12059
12119
|
if (p) {
|
|
12060
12120
|
const F = [];
|
|
@@ -12220,7 +12280,7 @@ class Ro {
|
|
|
12220
12280
|
throw new G("Unexpected storage method requested");
|
|
12221
12281
|
}
|
|
12222
12282
|
}
|
|
12223
|
-
const Ye = new Ro(),
|
|
12283
|
+
const Ye = new Ro(), $o = v`
|
|
12224
12284
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
12225
12285
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
12226
12286
|
id
|
|
@@ -12234,7 +12294,7 @@ const Ye = new Ro(), Oo = v`
|
|
|
12234
12294
|
}
|
|
12235
12295
|
}
|
|
12236
12296
|
}
|
|
12237
|
-
`,
|
|
12297
|
+
`, Oo = v`
|
|
12238
12298
|
mutation AddAddressToTransaction(
|
|
12239
12299
|
$transactionId: String!
|
|
12240
12300
|
$streetAddress: String
|
|
@@ -12327,7 +12387,7 @@ class Vo {
|
|
|
12327
12387
|
}
|
|
12328
12388
|
async attachAddress(t, e, a, n, i, s) {
|
|
12329
12389
|
await this.graphQlClient().mutate({
|
|
12330
|
-
mutation:
|
|
12390
|
+
mutation: Oo,
|
|
12331
12391
|
variables: {
|
|
12332
12392
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
|
12333
12393
|
streetAddress: t || void 0,
|
|
@@ -12541,7 +12601,7 @@ class Vo {
|
|
|
12541
12601
|
async assignCustomerDetails(t) {
|
|
12542
12602
|
var n, i, s;
|
|
12543
12603
|
const a = (s = (i = (n = (await this.graphQlClient().mutate({
|
|
12544
|
-
mutation:
|
|
12604
|
+
mutation: $o,
|
|
12545
12605
|
variables: {
|
|
12546
12606
|
id: this.getWorkflowManager().getTransaction().id,
|
|
12547
12607
|
details: t,
|
|
@@ -12811,7 +12871,7 @@ const zo = (r) => {
|
|
|
12811
12871
|
o && (t[a.stepName] = { selectedVariants: [o] });
|
|
12812
12872
|
const l = async (c) => {
|
|
12813
12873
|
var g;
|
|
12814
|
-
const d = await
|
|
12874
|
+
const d = await $n(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Qe(d), u = Q(), h = r.find((p) => p.panelId === c.panelId);
|
|
12815
12875
|
if (!h)
|
|
12816
12876
|
throw new Y(c);
|
|
12817
12877
|
const m = Ea(
|
|
@@ -12863,17 +12923,17 @@ const zo = (r) => {
|
|
|
12863
12923
|
return console.error(o), [];
|
|
12864
12924
|
}
|
|
12865
12925
|
}, jo = async (r, t, e, a) => {
|
|
12866
|
-
var y,
|
|
12926
|
+
var y, b;
|
|
12867
12927
|
const n = e.data, i = a.option;
|
|
12868
12928
|
if (!i)
|
|
12869
12929
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12870
|
-
const s = ((y = i.variants) == null ? void 0 : y.find((
|
|
12930
|
+
const s = ((y = i.variants) == null ? void 0 : y.find((E) => E.id === n.illustrationVariantId)) || ae(i);
|
|
12871
12931
|
if (!s)
|
|
12872
12932
|
return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
|
|
12873
12933
|
if (!s.asset)
|
|
12874
12934
|
return console.error(`No asset for variant with ID: ${n.illustrationVariantId}`), [];
|
|
12875
12935
|
t[a.stepName] = { selectedVariants: [s] };
|
|
12876
|
-
const o = (
|
|
12936
|
+
const o = (b = s.asset) == null ? void 0 : b.fileLink;
|
|
12877
12937
|
if (!o)
|
|
12878
12938
|
return console.error(`No asset link for variant with ID: ${n.illustrationVariantId}`), [];
|
|
12879
12939
|
const l = await nt(o, !0), c = /<svg.*?<\/svg>/s, d = l.match(c) || [], A = (d == null ? void 0 : d.length) > 0 ? d[0] : "", m = dt().parseFromString(A, "image/svg+xml").firstElementChild;
|
|
@@ -12881,32 +12941,32 @@ const zo = (r) => {
|
|
|
12881
12941
|
return console.error("Failed to read SVG."), [];
|
|
12882
12942
|
pa(m);
|
|
12883
12943
|
const g = {};
|
|
12884
|
-
xt(m, (
|
|
12885
|
-
Wo.includes(
|
|
12886
|
-
const P =
|
|
12944
|
+
xt(m, (E) => {
|
|
12945
|
+
Wo.includes(E.tagName) && !E.attributes.getNamedItem("fill") && E.setAttribute("fill", "#000000");
|
|
12946
|
+
const P = E.attributes.getNamedItem("fill");
|
|
12887
12947
|
if (P && P.value !== "none") {
|
|
12888
12948
|
const F = P.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
|
|
12889
|
-
|
|
12949
|
+
E.classList.add(T), g[T] = { browserValue: F };
|
|
12890
12950
|
}
|
|
12891
|
-
const D =
|
|
12951
|
+
const D = E.attributes.getNamedItem("stroke");
|
|
12892
12952
|
if (D && D.value !== "none") {
|
|
12893
12953
|
const F = D.value, T = `spiff-stroke-${F.replace(/\W/g, "")}`;
|
|
12894
|
-
|
|
12954
|
+
E.classList.add(T), g[T] = { browserValue: F };
|
|
12895
12955
|
}
|
|
12896
12956
|
});
|
|
12897
12957
|
const f = bt().serializeToString(m), C = n.colors;
|
|
12898
12958
|
if (C) {
|
|
12899
|
-
for (const [
|
|
12959
|
+
for (const [E, P] of Object.entries(g))
|
|
12900
12960
|
for (const D of Object.keys(C))
|
|
12901
12961
|
if (P.browserValue === D) {
|
|
12902
|
-
g[
|
|
12962
|
+
g[E] = { browserValue: C[D] };
|
|
12903
12963
|
break;
|
|
12904
12964
|
}
|
|
12905
12965
|
}
|
|
12906
|
-
const w = (
|
|
12907
|
-
const P = r.find((F) => F.panelId ===
|
|
12966
|
+
const w = (E) => {
|
|
12967
|
+
const P = r.find((F) => F.panelId === E.panelId);
|
|
12908
12968
|
if (!P)
|
|
12909
|
-
throw new Y(
|
|
12969
|
+
throw new Y(E);
|
|
12910
12970
|
const D = Q();
|
|
12911
12971
|
return new W(
|
|
12912
12972
|
{
|
|
@@ -12914,22 +12974,22 @@ const zo = (r) => {
|
|
|
12914
12974
|
id: D,
|
|
12915
12975
|
svg: f,
|
|
12916
12976
|
type: M.Illustration,
|
|
12917
|
-
y:
|
|
12918
|
-
x:
|
|
12919
|
-
rotation:
|
|
12920
|
-
width:
|
|
12921
|
-
height:
|
|
12922
|
-
layer:
|
|
12923
|
-
layerIndex:
|
|
12924
|
-
immutable:
|
|
12977
|
+
y: E.top,
|
|
12978
|
+
x: E.left,
|
|
12979
|
+
rotation: E.rotation,
|
|
12980
|
+
width: E.width,
|
|
12981
|
+
height: E.height,
|
|
12982
|
+
layer: E.layer,
|
|
12983
|
+
layerIndex: E.layerIndex,
|
|
12984
|
+
immutable: E.immutable
|
|
12925
12985
|
},
|
|
12926
12986
|
P
|
|
12927
12987
|
);
|
|
12928
12988
|
}, S = a.data.regions;
|
|
12929
12989
|
try {
|
|
12930
12990
|
return S.map(w);
|
|
12931
|
-
} catch (
|
|
12932
|
-
return console.error(
|
|
12991
|
+
} catch (E) {
|
|
12992
|
+
return console.error(E), [];
|
|
12933
12993
|
}
|
|
12934
12994
|
}, Yo = async (r, t, e) => {
|
|
12935
12995
|
const a = await Yn(e.data.module), n = t.data, i = (o, l) => {
|
|
@@ -13475,9 +13535,9 @@ const od = (r, t) => {
|
|
|
13475
13535
|
serializableWorkflow: { steps: [] },
|
|
13476
13536
|
layouts: {}
|
|
13477
13537
|
};
|
|
13478
|
-
n = new
|
|
13538
|
+
n = new O(e.map((l) => new Ln(l))).apply(n);
|
|
13479
13539
|
const s = await tl(r, t, e, a);
|
|
13480
|
-
return new
|
|
13540
|
+
return new O(s).apply(n);
|
|
13481
13541
|
};
|
|
13482
13542
|
class sl {
|
|
13483
13543
|
constructor(t) {
|
|
@@ -16071,7 +16131,7 @@ const Ql = async (r, t) => {
|
|
|
16071
16131
|
(o) => Jt.set({ id: o, options: t }, Rl(o, n))
|
|
16072
16132
|
), s = e.filter((o) => o !== void 0);
|
|
16073
16133
|
return await Promise.all(s.concat(i));
|
|
16074
|
-
}, ud = async (r, t) => (await ar([r], t))[0],
|
|
16134
|
+
}, ud = async (r, t) => (await ar([r], t))[0], $l = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
16075
16135
|
id: Q(),
|
|
16076
16136
|
panelId: t.name,
|
|
16077
16137
|
name: t.name,
|
|
@@ -16085,9 +16145,9 @@ const Ql = async (r, t) => {
|
|
|
16085
16145
|
previewRegion: t.previewRegion,
|
|
16086
16146
|
useEditableArea: t.useEditableArea,
|
|
16087
16147
|
editableArea: t.editableArea
|
|
16088
|
-
})),
|
|
16148
|
+
})), Ol = (r, t) => {
|
|
16089
16149
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
16090
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
16150
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : $l(t.panels);
|
|
16091
16151
|
};
|
|
16092
16152
|
class hd {
|
|
16093
16153
|
constructor(t) {
|
|
@@ -16100,7 +16160,7 @@ class hd {
|
|
|
16100
16160
|
} catch (a) {
|
|
16101
16161
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
16102
16162
|
}
|
|
16103
|
-
}, this.options = t, this.options.applicationKey &&
|
|
16163
|
+
}, this.options = t, this.options.applicationKey && Or(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.1.0-beta.d9317506-22b0-55b7-8508-fbedf60b9d27"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16104
16164
|
}
|
|
16105
16165
|
configure(t) {
|
|
16106
16166
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16209,7 +16269,7 @@ class hd {
|
|
|
16209
16269
|
const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
|
|
16210
16270
|
(w) => {
|
|
16211
16271
|
var S, y;
|
|
16212
|
-
return (y = (S = w.bundle) == null ? void 0 : S.transactions) == null ? void 0 : y.some((
|
|
16272
|
+
return (y = (S = w.bundle) == null ? void 0 : S.transactions) == null ? void 0 : y.some((b) => b.id === t);
|
|
16213
16273
|
}
|
|
16214
16274
|
)) || ((g = (m = this.customer) == null ? void 0 : m.stakeholders) == null ? void 0 : g.find(
|
|
16215
16275
|
(w) => {
|
|
@@ -16436,7 +16496,7 @@ class hd {
|
|
|
16436
16496
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
16437
16497
|
*/
|
|
16438
16498
|
async getExistingBundle(t, e, a, n) {
|
|
16439
|
-
var m, g, p, f, C, w, S, y,
|
|
16499
|
+
var m, g, p, f, C, w, S, y, b, E, P;
|
|
16440
16500
|
const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
|
|
16441
16501
|
try {
|
|
16442
16502
|
const D = await this.loggedInBearerToken();
|
|
@@ -16464,8 +16524,8 @@ class hd {
|
|
|
16464
16524
|
const d = (y = c.data) == null ? void 0 : y.bundles[0], A = N.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
16465
16525
|
A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
|
|
16466
16526
|
const u = new Je(this, d, e, a, s, {
|
|
16467
|
-
additionalHeaders: (
|
|
16468
|
-
eagerFetchProducts: (P = (
|
|
16527
|
+
additionalHeaders: (b = n == null ? void 0 : n.graphql) == null ? void 0 : b.additionalHeaders,
|
|
16528
|
+
eagerFetchProducts: (P = (E = n == null ? void 0 : n.graphql) == null ? void 0 : E.productCollection) == null ? void 0 : P.eagerFetchProducts,
|
|
16469
16529
|
existingGlobalPropertyState: c.data.globalPropertyState,
|
|
16470
16530
|
readonly: n == null ? void 0 : n.readonly
|
|
16471
16531
|
});
|
|
@@ -16486,7 +16546,7 @@ class hd {
|
|
|
16486
16546
|
const C = await this.loggedInBearerToken();
|
|
16487
16547
|
s.Authorization = `Bearer ${C}`;
|
|
16488
16548
|
} catch {
|
|
16489
|
-
const S = ((h = Object.entries(localStorage).find(([
|
|
16549
|
+
const S = ((h = Object.entries(localStorage).find(([b, E]) => b.startsWith("CognitoIdentityServiceProvider") && b.endsWith("idToken"))) == null ? void 0 : h[0]) || "", y = localStorage.getItem(S);
|
|
16490
16550
|
y && !Wt(y) && (s.Authorization = `Bearer ${y}`);
|
|
16491
16551
|
}
|
|
16492
16552
|
const o = {
|
|
@@ -16593,16 +16653,16 @@ class hd {
|
|
|
16593
16653
|
var D, F, k;
|
|
16594
16654
|
if (y.length === 0)
|
|
16595
16655
|
return [];
|
|
16596
|
-
const
|
|
16656
|
+
const b = y.map((T) => T.option.transactionId), E = await a.query({
|
|
16597
16657
|
query: yi,
|
|
16598
16658
|
variables: {
|
|
16599
|
-
ids:
|
|
16659
|
+
ids: b
|
|
16600
16660
|
},
|
|
16601
16661
|
errorPolicy: "all",
|
|
16602
16662
|
fetchPolicy: "no-cache"
|
|
16603
|
-
}), P =
|
|
16663
|
+
}), P = E.data.transactions;
|
|
16604
16664
|
if (P.length !== y.length) {
|
|
16605
|
-
const T = ((F = (D =
|
|
16665
|
+
const T = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
16606
16666
|
throw new ut(`Not all transactions were found: ${T}`);
|
|
16607
16667
|
}
|
|
16608
16668
|
return !this.activeIntegration && ((k = P[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(P[0].integrationProduct.integration)), P.map((T, Z) => {
|
|
@@ -16618,7 +16678,7 @@ class hd {
|
|
|
16618
16678
|
var P, D, F;
|
|
16619
16679
|
if (y.length === 0)
|
|
16620
16680
|
return [];
|
|
16621
|
-
const
|
|
16681
|
+
const b = await a.mutate({
|
|
16622
16682
|
mutation: wi,
|
|
16623
16683
|
variables: {
|
|
16624
16684
|
inputs: y.map((k) => ({
|
|
@@ -16634,32 +16694,32 @@ class hd {
|
|
|
16634
16694
|
},
|
|
16635
16695
|
errorPolicy: "all",
|
|
16636
16696
|
fetchPolicy: "no-cache"
|
|
16637
|
-
}),
|
|
16638
|
-
if (!
|
|
16639
|
-
const k = ((F = (D =
|
|
16697
|
+
}), E = (P = b.data) == null ? void 0 : P.transactionCreateMany;
|
|
16698
|
+
if (!E || E.length === 0) {
|
|
16699
|
+
const k = ((F = (D = b.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
16640
16700
|
throw new ut(`Failed to create transactions: ${k}`);
|
|
16641
16701
|
}
|
|
16642
|
-
return
|
|
16702
|
+
return E.map((k, T) => ({
|
|
16643
16703
|
transaction: k,
|
|
16644
16704
|
workflowId: k.workflowId,
|
|
16645
16705
|
readOnly: !1,
|
|
16646
16706
|
index: y[T].index
|
|
16647
16707
|
}));
|
|
16648
|
-
}, s = t.map((y,
|
|
16708
|
+
}, s = t.map((y, b) => ({ option: y, index: b })), o = s.filter((y) => y.option.type === "transaction"), l = s.filter(
|
|
16649
16709
|
(y) => y.option.type === "integration" || y.option.type === "external"
|
|
16650
16710
|
), c = xa(o, 10), d = xa(l, 10), A = (await Promise.all([
|
|
16651
16711
|
...c.map(n),
|
|
16652
16712
|
...d.map(i)
|
|
16653
16713
|
])).flat(), u = [...new Set(A.map((y) => y.workflowId))], h = await ar(u, e), m = new Map(h.map((y) => [y.id, y])), g = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (y) => {
|
|
16654
16714
|
var et;
|
|
16655
|
-
const { transaction:
|
|
16656
|
-
!g.get(
|
|
16657
|
-
const T = g.get(
|
|
16715
|
+
const { transaction: b, workflowId: E, readOnly: P, index: D } = y, F = m.get(E), k = t[D];
|
|
16716
|
+
!g.get(b.id) && b.transactionOwnerId && g.set(b.id, b.transactionOwnerId);
|
|
16717
|
+
const T = g.get(b.id) || void 0, Z = new kl({
|
|
16658
16718
|
onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
|
|
16659
16719
|
onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
|
|
16660
16720
|
}), R = {
|
|
16661
|
-
product:
|
|
16662
|
-
transaction:
|
|
16721
|
+
product: b.product,
|
|
16722
|
+
transaction: b,
|
|
16663
16723
|
layouts: [],
|
|
16664
16724
|
singleVariantsRenderable: (et = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : et.singleVariantsRenderable,
|
|
16665
16725
|
stateMutationFunc: P ? async () => {
|
|
@@ -16677,7 +16737,7 @@ class hd {
|
|
|
16677
16737
|
const tt = JSON.parse(k.workflowState);
|
|
16678
16738
|
R.layouts = Object.values(tt.layouts || {}).map((Nt) => Nt.layout), await cs(tt), R.reloadedState = tt;
|
|
16679
16739
|
} else
|
|
16680
|
-
R.layouts =
|
|
16740
|
+
R.layouts = Ol(
|
|
16681
16741
|
R.transaction,
|
|
16682
16742
|
R.workflow
|
|
16683
16743
|
);
|
|
@@ -16686,9 +16746,9 @@ class hd {
|
|
|
16686
16746
|
), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
|
|
16687
16747
|
}), f = await Promise.all(p);
|
|
16688
16748
|
N.setMap("transactionOwnerIds", g);
|
|
16689
|
-
const w = f.sort((y,
|
|
16690
|
-
const { experienceOptions:
|
|
16691
|
-
return await P.getWorkflowManager().getInitializationPromise(),
|
|
16749
|
+
const w = f.sort((y, b) => y.index - b.index).map(async (y) => {
|
|
16750
|
+
const { experienceOptions: b, options: E } = y, P = new Vo(this, b);
|
|
16751
|
+
return await P.getWorkflowManager().getInitializationPromise(), E.type !== "transaction" && this.customer && await P.attachCustomerDetails({ email: this.customer.emailAddress }), P;
|
|
16692
16752
|
}), S = await Promise.all(w);
|
|
16693
16753
|
return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
|
|
16694
16754
|
}
|
|
@@ -16762,7 +16822,7 @@ class hd {
|
|
|
16762
16822
|
}
|
|
16763
16823
|
}
|
|
16764
16824
|
const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
|
|
16765
|
-
query:
|
|
16825
|
+
query: $i,
|
|
16766
16826
|
errorPolicy: "all",
|
|
16767
16827
|
fetchPolicy: "no-cache",
|
|
16768
16828
|
context: {
|
|
@@ -16806,7 +16866,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
|
|
|
16806
16866
|
}, fd = async (r) => {
|
|
16807
16867
|
var e, a, n;
|
|
16808
16868
|
return (n = (a = (e = (await B.getShadowGraphqlClient().query({
|
|
16809
|
-
query:
|
|
16869
|
+
query: Oi,
|
|
16810
16870
|
errorPolicy: "all",
|
|
16811
16871
|
variables: {
|
|
16812
16872
|
id: r
|
|
@@ -17012,7 +17072,7 @@ class Vl {
|
|
|
17012
17072
|
const s = this.workflowManager.getCommandDispatcher();
|
|
17013
17073
|
this.targetElements.forEach((o, l) => {
|
|
17014
17074
|
s(
|
|
17015
|
-
new
|
|
17075
|
+
new O([
|
|
17016
17076
|
new hs(o, e, t[l]),
|
|
17017
17077
|
new ms(
|
|
17018
17078
|
o,
|
|
@@ -17050,7 +17110,7 @@ class Vl {
|
|
|
17050
17110
|
}
|
|
17051
17111
|
}
|
|
17052
17112
|
class Cd {
|
|
17053
|
-
updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
17113
|
+
updateRecipient(t, e, a, n, i, s, o, l, c, d, A, u, h, m, g, p, f) {
|
|
17054
17114
|
throw new Error("Method not implemented.");
|
|
17055
17115
|
}
|
|
17056
17116
|
approveTransaction(t) {
|
|
@@ -17859,7 +17919,7 @@ export {
|
|
|
17859
17919
|
nd as BringToBackCommand,
|
|
17860
17920
|
ad as BringToFrontCommand,
|
|
17861
17921
|
vr as BundleDesignCreationCartAddMode,
|
|
17862
|
-
|
|
17922
|
+
$ as CanvasCommand,
|
|
17863
17923
|
de as CollectionProduct,
|
|
17864
17924
|
Ja as ColorOptionGlobalPropertyHandle,
|
|
17865
17925
|
os as CommandContext,
|
|
@@ -17883,7 +17943,7 @@ export {
|
|
|
17883
17943
|
zl as FrameStep,
|
|
17884
17944
|
Gl as FrameStepHandle,
|
|
17885
17945
|
Ia as GlobalPropertyHandle,
|
|
17886
|
-
|
|
17946
|
+
O as GroupCommand,
|
|
17887
17947
|
wo as IllustrationStepHandle,
|
|
17888
17948
|
Re as InformationMessageType,
|
|
17889
17949
|
Io as InformationStepHandle,
|
|
@@ -17953,7 +18013,7 @@ export {
|
|
|
17953
18013
|
nt as fetchAsString,
|
|
17954
18014
|
Uc as findAngle,
|
|
17955
18015
|
L as findElement,
|
|
17956
|
-
|
|
18016
|
+
$c as findPmsColors,
|
|
17957
18017
|
Vt as frameDataCache,
|
|
17958
18018
|
Ct as frameStepService,
|
|
17959
18019
|
Q as generate,
|
|
@@ -17962,7 +18022,7 @@ export {
|
|
|
17962
18022
|
ld as generateStateFromDesignInputSteps,
|
|
17963
18023
|
kd as getAddressValidationJobs,
|
|
17964
18024
|
Me as getAttributesFromArrayBuffer,
|
|
17965
|
-
|
|
18025
|
+
Oc as getAxisAlignedBoundingBox,
|
|
17966
18026
|
Ll as getBoundedOffsets,
|
|
17967
18027
|
pd as getBundleThemeConfiguration,
|
|
17968
18028
|
Ed as getCustomer,
|
|
@@ -18021,8 +18081,8 @@ export {
|
|
|
18021
18081
|
fs as shortenUrl,
|
|
18022
18082
|
mt as spiffCoreConfiguration,
|
|
18023
18083
|
od as stepAspectValuesToDesignInputSteps,
|
|
18024
|
-
|
|
18025
|
-
|
|
18084
|
+
Oa as svgColorValueToDefinition,
|
|
18085
|
+
On as svgStringDimensions,
|
|
18026
18086
|
ha as svgToDataUrl,
|
|
18027
18087
|
q as textStepService,
|
|
18028
18088
|
Ps as toast,
|