@spiffcommerce/core 29.1.0-beta.be9b52a9-054d-58f7-b480-9008a072743f → 29.1.0-beta.d9317506-22b0-55b7-8508-fbedf60b9d27
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 +41 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +288 -232
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
});
|
|
@@ -5115,7 +5115,7 @@ const j = new Ci(), bn = v`
|
|
|
5115
5115
|
...MarketplaceThemeInstallConfigurationFields
|
|
5116
5116
|
}
|
|
5117
5117
|
}
|
|
5118
|
-
`,
|
|
5118
|
+
`, $i = v`
|
|
5119
5119
|
${bn}
|
|
5120
5120
|
${Ne}
|
|
5121
5121
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
|
@@ -5128,7 +5128,7 @@ const j = new Ci(), bn = v`
|
|
|
5128
5128
|
...ActiveIntegrationFields
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
`,
|
|
5131
|
+
`, Oi = v`
|
|
5132
5132
|
${Ne}
|
|
5133
5133
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
|
5134
5134
|
transactions(ids: [$id]) {
|
|
@@ -5161,7 +5161,7 @@ const j = new Ci(), bn = v`
|
|
|
5161
5161
|
timestamp
|
|
5162
5162
|
}
|
|
5163
5163
|
}
|
|
5164
|
-
`,
|
|
5164
|
+
`, $t = [I.SilentIllustration, I.ProductOverlay], zi = async (r) => {
|
|
5165
5165
|
const t = [];
|
|
5166
5166
|
r.introduction && t.push({
|
|
5167
5167
|
name: "Introduction",
|
|
@@ -5184,16 +5184,16 @@ const j = new Ci(), bn = v`
|
|
|
5184
5184
|
t.push({
|
|
5185
5185
|
name: a.stepName,
|
|
5186
5186
|
title: a.stepTitle,
|
|
5187
|
-
renderableSteps:
|
|
5188
|
-
silentSteps:
|
|
5187
|
+
renderableSteps: $t.includes(a.type) ? [] : [a],
|
|
5188
|
+
silentSteps: $t.includes(a.type) ? [a] : []
|
|
5189
5189
|
});
|
|
5190
5190
|
else {
|
|
5191
5191
|
const i = t.find((s) => s.name === n.name);
|
|
5192
|
-
i ?
|
|
5192
|
+
i ? $t.includes(a.type) ? i.silentSteps.push(a) : i.renderableSteps.push(a) : t.push({
|
|
5193
5193
|
name: n.name,
|
|
5194
5194
|
title: n.name,
|
|
5195
|
-
renderableSteps:
|
|
5196
|
-
silentSteps:
|
|
5195
|
+
renderableSteps: $t.includes(a.type) ? [] : [a],
|
|
5196
|
+
silentSteps: $t.includes(a.type) ? [a] : []
|
|
5197
5197
|
});
|
|
5198
5198
|
}
|
|
5199
5199
|
}
|
|
@@ -5343,12 +5343,12 @@ const Q = () => {
|
|
|
5343
5343
|
viewBox: A,
|
|
5344
5344
|
width: u
|
|
5345
5345
|
}) => {
|
|
5346
|
-
var
|
|
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 = (
|
|
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) => (
|
|
5348
5348
|
/* @ts-ignore */
|
|
5349
|
-
/* @__PURE__ */ x("color-profile", { name:
|
|
5350
|
-
)), S = n.map((
|
|
5351
|
-
...
|
|
5349
|
+
/* @__PURE__ */ x("color-profile", { name: E.name, xlinkHref: E.key, children: " " }, P)
|
|
5350
|
+
)), S = n.map((E) => ({
|
|
5351
|
+
...E,
|
|
5352
5352
|
_renderingConfiguration: a,
|
|
5353
5353
|
mask: l ? `url(#viewmask-${f})` : void 0
|
|
5354
5354
|
})), y = va(S);
|
|
@@ -5388,7 +5388,7 @@ const Q = () => {
|
|
|
5388
5388
|
{
|
|
5389
5389
|
id: "element-group",
|
|
5390
5390
|
clipPath: a.purpose === Ht.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5391
|
-
children: y.map((
|
|
5391
|
+
children: y.map((E) => Rn(E)).filter((E) => !!E)
|
|
5392
5392
|
}
|
|
5393
5393
|
),
|
|
5394
5394
|
l && /* @__PURE__ */ x(
|
|
@@ -5429,7 +5429,7 @@ const Q = () => {
|
|
|
5429
5429
|
]
|
|
5430
5430
|
}
|
|
5431
5431
|
);
|
|
5432
|
-
},
|
|
5432
|
+
}, Oc = (r, t, e, a, n) => {
|
|
5433
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));
|
|
5434
5434
|
return {
|
|
5435
5435
|
minX: l - S,
|
|
@@ -5593,8 +5593,8 @@ const Q = () => {
|
|
|
5593
5593
|
/* @__PURE__ */ x("feFuncB", { type: "discrete", tableValues: n() })
|
|
5594
5594
|
] })
|
|
5595
5595
|
] }) }) }), s = r.rotation || 0, o = pt(s), l = Math.cos(o), c = -Math.sin(o), d = () => {
|
|
5596
|
-
var w, S, y,
|
|
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 = ((
|
|
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;
|
|
5598
5598
|
return [(F = r.pattern) != null && F.svg ? {
|
|
5599
5599
|
id: `${t}-contents`,
|
|
5600
5600
|
type: M.Illustration,
|
|
@@ -5755,16 +5755,16 @@ const Ji = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Le = /* @_
|
|
|
5755
5755
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5756
5756
|
), S = w.getBoundingBox().x2 - w.getBoundingBox().x1;
|
|
5757
5757
|
let y = 0;
|
|
5758
|
-
const
|
|
5759
|
-
|
|
5760
|
-
const
|
|
5758
|
+
const b = A.getAttribute("text-anchor");
|
|
5759
|
+
b === "middle" ? y = S / 2 : b === "end" && (y = S);
|
|
5760
|
+
const E = g.getPath(
|
|
5761
5761
|
A.innerHTML,
|
|
5762
5762
|
parseFloat(A.getAttribute("x") ?? "0") - y,
|
|
5763
5763
|
parseFloat(A.getAttribute("y") ?? "0"),
|
|
5764
5764
|
parseInt(u.getAttribute("font-size") ?? "72")
|
|
5765
5765
|
);
|
|
5766
|
-
|
|
5767
|
-
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;
|
|
5768
5768
|
h.appendChild(F);
|
|
5769
5769
|
}
|
|
5770
5770
|
return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
|
|
@@ -6201,7 +6201,7 @@ const ae = (r) => {
|
|
|
6201
6201
|
if (r.defaultVariant !== void 0)
|
|
6202
6202
|
return t.find((e) => e.id === r.defaultVariant);
|
|
6203
6203
|
}
|
|
6204
|
-
}, 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) => {
|
|
6205
6205
|
if (!t) {
|
|
6206
6206
|
if (!r)
|
|
6207
6207
|
throw new Error("No region or src supplied. Cannot construct frame!");
|
|
@@ -6278,7 +6278,7 @@ const ae = (r) => {
|
|
|
6278
6278
|
if (At.has(r))
|
|
6279
6279
|
return At.get(r);
|
|
6280
6280
|
if (r.startsWith("data:image/svg+xml")) {
|
|
6281
|
-
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 = {
|
|
6282
6282
|
src: r,
|
|
6283
6283
|
width: i.width,
|
|
6284
6284
|
height: i.height,
|
|
@@ -6305,8 +6305,8 @@ const ae = (r) => {
|
|
|
6305
6305
|
}
|
|
6306
6306
|
}, ba = async (r) => {
|
|
6307
6307
|
const t = await nt(r);
|
|
6308
|
-
return
|
|
6309
|
-
}, 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) => {
|
|
6310
6310
|
const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
|
|
6311
6311
|
if (!a)
|
|
6312
6312
|
throw new Error("No svg tag found, this svg must be malformed!");
|
|
@@ -6317,7 +6317,7 @@ const ae = (r) => {
|
|
|
6317
6317
|
width: o[2],
|
|
6318
6318
|
height: o[3]
|
|
6319
6319
|
};
|
|
6320
|
-
},
|
|
6320
|
+
}, Ot = (r, t) => {
|
|
6321
6321
|
const e = r.layoutState.elements.filter((n) => n.layer === t), a = Math.max(...e.map((n) => n.layerIndex).filter((n) => n !== void 0));
|
|
6322
6322
|
return Math.max(a, 0) + 1;
|
|
6323
6323
|
}, Un = async (r) => new Promise((t) => {
|
|
@@ -6393,7 +6393,7 @@ const ae = (r) => {
|
|
|
6393
6393
|
};
|
|
6394
6394
|
class _c {
|
|
6395
6395
|
static async getFrame(t, e) {
|
|
6396
|
-
const a = await
|
|
6396
|
+
const a = await $n(e.region, e.src), n = await Qe(a), i = e.region || await Ut(t, M.Frame);
|
|
6397
6397
|
return {
|
|
6398
6398
|
id: Q(),
|
|
6399
6399
|
x: i.left,
|
|
@@ -6401,7 +6401,7 @@ class _c {
|
|
|
6401
6401
|
width: i.width,
|
|
6402
6402
|
height: i.height,
|
|
6403
6403
|
layer: i.layer || 0,
|
|
6404
|
-
layerIndex: i.layerIndex ||
|
|
6404
|
+
layerIndex: i.layerIndex || Ot(t, i.layer || 0),
|
|
6405
6405
|
rotation: i.rotation,
|
|
6406
6406
|
scaleX: i.width / n.width,
|
|
6407
6407
|
scaleY: i.height / n.height,
|
|
@@ -6430,7 +6430,7 @@ class _c {
|
|
|
6430
6430
|
width: a.width,
|
|
6431
6431
|
height: a.height,
|
|
6432
6432
|
layer: a.layer || 0,
|
|
6433
|
-
layerIndex: a.layerIndex ||
|
|
6433
|
+
layerIndex: a.layerIndex || Ot(t, a.layer || 0),
|
|
6434
6434
|
immutable: a.immutable,
|
|
6435
6435
|
preserveAspectRatio: "none"
|
|
6436
6436
|
};
|
|
@@ -6459,7 +6459,7 @@ class _c {
|
|
|
6459
6459
|
fill: (i == null ? void 0 : i.color) || a.colour || "#000000",
|
|
6460
6460
|
fontData: o,
|
|
6461
6461
|
layer: A.layer || 0,
|
|
6462
|
-
layerIndex: A.layerIndex ||
|
|
6462
|
+
layerIndex: A.layerIndex || Ot(t, A.layer || 0),
|
|
6463
6463
|
paths: a.paths,
|
|
6464
6464
|
rotation: A.rotation,
|
|
6465
6465
|
vertical: a.vertical,
|
|
@@ -6522,7 +6522,7 @@ class _c {
|
|
|
6522
6522
|
width: i.width,
|
|
6523
6523
|
height: i.height,
|
|
6524
6524
|
layer: i.layer || 0,
|
|
6525
|
-
layerIndex: i.layerIndex ||
|
|
6525
|
+
layerIndex: i.layerIndex || Ot(t, i.layer || 0),
|
|
6526
6526
|
immutable: i.immutable
|
|
6527
6527
|
};
|
|
6528
6528
|
}
|
|
@@ -6542,7 +6542,7 @@ class _c {
|
|
|
6542
6542
|
width: a.width,
|
|
6543
6543
|
height: a.height,
|
|
6544
6544
|
layer: a.layer || 0,
|
|
6545
|
-
layerIndex: a.layerIndex ||
|
|
6545
|
+
layerIndex: a.layerIndex || Ot(t, a.layer || 0),
|
|
6546
6546
|
immutable: a.immutable
|
|
6547
6547
|
};
|
|
6548
6548
|
}
|
|
@@ -6616,7 +6616,7 @@ const L = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
|
|
|
6616
6616
|
}
|
|
6617
6617
|
}
|
|
6618
6618
|
};
|
|
6619
|
-
class
|
|
6619
|
+
class $ {
|
|
6620
6620
|
undo() {
|
|
6621
6621
|
if (!this.oldState)
|
|
6622
6622
|
throw new Error("Cannot undo.");
|
|
@@ -6626,7 +6626,7 @@ class O {
|
|
|
6626
6626
|
this.oldState = t;
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
class Ga extends
|
|
6629
|
+
class Ga extends $ {
|
|
6630
6630
|
constructor(t) {
|
|
6631
6631
|
super(), this.serializableWorkflow = t;
|
|
6632
6632
|
}
|
|
@@ -6637,7 +6637,7 @@ class Ga extends O {
|
|
|
6637
6637
|
};
|
|
6638
6638
|
}
|
|
6639
6639
|
}
|
|
6640
|
-
class Xc extends
|
|
6640
|
+
class Xc extends $ {
|
|
6641
6641
|
constructor(t, e, a) {
|
|
6642
6642
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6643
6643
|
}
|
|
@@ -6660,7 +6660,7 @@ class Xc extends O {
|
|
|
6660
6660
|
};
|
|
6661
6661
|
}
|
|
6662
6662
|
}
|
|
6663
|
-
class Zc extends
|
|
6663
|
+
class Zc extends $ {
|
|
6664
6664
|
constructor(t, e) {
|
|
6665
6665
|
super(), this.id = t, this.angle = e;
|
|
6666
6666
|
}
|
|
@@ -6682,7 +6682,7 @@ class Zc extends O {
|
|
|
6682
6682
|
};
|
|
6683
6683
|
}
|
|
6684
6684
|
}
|
|
6685
|
-
class td extends
|
|
6685
|
+
class td extends $ {
|
|
6686
6686
|
constructor(t, e, a) {
|
|
6687
6687
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6688
6688
|
}
|
|
@@ -6713,7 +6713,7 @@ class td extends O {
|
|
|
6713
6713
|
};
|
|
6714
6714
|
}
|
|
6715
6715
|
}
|
|
6716
|
-
class
|
|
6716
|
+
class O extends $ {
|
|
6717
6717
|
constructor(t) {
|
|
6718
6718
|
super(), this.commands = t;
|
|
6719
6719
|
}
|
|
@@ -6721,7 +6721,7 @@ class $ extends O {
|
|
|
6721
6721
|
return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
|
|
6722
6722
|
}
|
|
6723
6723
|
}
|
|
6724
|
-
class Ln extends
|
|
6724
|
+
class Ln extends $ {
|
|
6725
6725
|
constructor(t) {
|
|
6726
6726
|
super(), this.layout = t;
|
|
6727
6727
|
}
|
|
@@ -6739,7 +6739,7 @@ class Ln extends O {
|
|
|
6739
6739
|
};
|
|
6740
6740
|
}
|
|
6741
6741
|
}
|
|
6742
|
-
class W extends
|
|
6742
|
+
class W extends $ {
|
|
6743
6743
|
/**
|
|
6744
6744
|
* @param initialParams The initial parameters to be set on this new object
|
|
6745
6745
|
* @param callback An optional callback function to be notified when the object has been instantiated
|
|
@@ -6799,7 +6799,7 @@ class W extends O {
|
|
|
6799
6799
|
return a !== void 0 ? a + 1 : 0;
|
|
6800
6800
|
}
|
|
6801
6801
|
}
|
|
6802
|
-
class Et extends
|
|
6802
|
+
class Et extends $ {
|
|
6803
6803
|
constructor(t) {
|
|
6804
6804
|
super(), this.id = t;
|
|
6805
6805
|
}
|
|
@@ -6821,7 +6821,7 @@ class Et extends O {
|
|
|
6821
6821
|
};
|
|
6822
6822
|
}
|
|
6823
6823
|
}
|
|
6824
|
-
class ds extends
|
|
6824
|
+
class ds extends $ {
|
|
6825
6825
|
constructor(t, e, a) {
|
|
6826
6826
|
super(), this.id = t, this.color = e, this.textFillSpotColor = a;
|
|
6827
6827
|
}
|
|
@@ -6845,7 +6845,7 @@ class ds extends O {
|
|
|
6845
6845
|
};
|
|
6846
6846
|
}
|
|
6847
6847
|
}
|
|
6848
|
-
class We extends
|
|
6848
|
+
class We extends $ {
|
|
6849
6849
|
constructor(t, e) {
|
|
6850
6850
|
super(), this.id = t, this.imageFill = e;
|
|
6851
6851
|
}
|
|
@@ -6867,7 +6867,7 @@ class We extends O {
|
|
|
6867
6867
|
};
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
|
-
class As extends
|
|
6870
|
+
class As extends $ {
|
|
6871
6871
|
constructor(t, e) {
|
|
6872
6872
|
super(), this.id = t, this.size = e;
|
|
6873
6873
|
}
|
|
@@ -6889,7 +6889,7 @@ class As extends O {
|
|
|
6889
6889
|
};
|
|
6890
6890
|
}
|
|
6891
6891
|
}
|
|
6892
|
-
class Wa extends
|
|
6892
|
+
class Wa extends $ {
|
|
6893
6893
|
constructor(t, e) {
|
|
6894
6894
|
super(), this.id = t, this.fontData = e;
|
|
6895
6895
|
}
|
|
@@ -6911,7 +6911,7 @@ class Wa extends O {
|
|
|
6911
6911
|
};
|
|
6912
6912
|
}
|
|
6913
6913
|
}
|
|
6914
|
-
class us extends
|
|
6914
|
+
class us extends $ {
|
|
6915
6915
|
constructor(t, e) {
|
|
6916
6916
|
super(), this.id = t, this.align = e;
|
|
6917
6917
|
}
|
|
@@ -6933,7 +6933,7 @@ class us extends O {
|
|
|
6933
6933
|
};
|
|
6934
6934
|
}
|
|
6935
6935
|
}
|
|
6936
|
-
class hs extends
|
|
6936
|
+
class hs extends $ {
|
|
6937
6937
|
constructor(t, e, a) {
|
|
6938
6938
|
super(), this.id = t, this.imageData = e, this.offsets = a;
|
|
6939
6939
|
}
|
|
@@ -6969,7 +6969,7 @@ class hs extends O {
|
|
|
6969
6969
|
};
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
|
-
class ms extends
|
|
6972
|
+
class ms extends $ {
|
|
6973
6973
|
constructor(t, e, a, n, i) {
|
|
6974
6974
|
super(), this.id = t, this.useThreshold = e, this.invertThreshold = a, this.threshold = n, this.thresholdSaturation = i;
|
|
6975
6975
|
}
|
|
@@ -6994,7 +6994,7 @@ class ms extends O {
|
|
|
6994
6994
|
};
|
|
6995
6995
|
}
|
|
6996
6996
|
}
|
|
6997
|
-
class ed extends
|
|
6997
|
+
class ed extends $ {
|
|
6998
6998
|
constructor(t, e) {
|
|
6999
6999
|
super(), this.id = t, this.src = e;
|
|
7000
7000
|
}
|
|
@@ -7016,7 +7016,7 @@ class ed extends O {
|
|
|
7016
7016
|
};
|
|
7017
7017
|
}
|
|
7018
7018
|
}
|
|
7019
|
-
class gs extends
|
|
7019
|
+
class gs extends $ {
|
|
7020
7020
|
constructor(t, e) {
|
|
7021
7021
|
super(), this.id = t, this.text = e;
|
|
7022
7022
|
}
|
|
@@ -7035,7 +7035,7 @@ class gs extends O {
|
|
|
7035
7035
|
};
|
|
7036
7036
|
}
|
|
7037
7037
|
}
|
|
7038
|
-
class qe extends
|
|
7038
|
+
class qe extends $ {
|
|
7039
7039
|
constructor(t, e, a) {
|
|
7040
7040
|
super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
|
|
7041
7041
|
}
|
|
@@ -7058,7 +7058,7 @@ class qe extends O {
|
|
|
7058
7058
|
};
|
|
7059
7059
|
}
|
|
7060
7060
|
}
|
|
7061
|
-
class oa extends
|
|
7061
|
+
class oa extends $ {
|
|
7062
7062
|
constructor(t, e, a) {
|
|
7063
7063
|
super(), this.id = t, this.className = e, this.fill = a;
|
|
7064
7064
|
}
|
|
@@ -7090,7 +7090,7 @@ class oa extends O {
|
|
|
7090
7090
|
};
|
|
7091
7091
|
}
|
|
7092
7092
|
}
|
|
7093
|
-
class ps extends
|
|
7093
|
+
class ps extends $ {
|
|
7094
7094
|
constructor(t, e, a) {
|
|
7095
7095
|
super(), this.id = t, this.svgBody = e, this.objectURL = a;
|
|
7096
7096
|
}
|
|
@@ -7113,7 +7113,7 @@ class ps extends O {
|
|
|
7113
7113
|
};
|
|
7114
7114
|
}
|
|
7115
7115
|
}
|
|
7116
|
-
class ad extends
|
|
7116
|
+
class ad extends $ {
|
|
7117
7117
|
/**
|
|
7118
7118
|
* @param id The targeted element to bring to the front.
|
|
7119
7119
|
*/
|
|
@@ -7142,7 +7142,7 @@ class ad extends O {
|
|
|
7142
7142
|
};
|
|
7143
7143
|
}
|
|
7144
7144
|
}
|
|
7145
|
-
class nd extends
|
|
7145
|
+
class nd extends $ {
|
|
7146
7146
|
/**
|
|
7147
7147
|
* @param id The targeted element to bring to the back.
|
|
7148
7148
|
*/
|
|
@@ -7173,7 +7173,7 @@ class nd extends O {
|
|
|
7173
7173
|
};
|
|
7174
7174
|
}
|
|
7175
7175
|
}
|
|
7176
|
-
class rd extends
|
|
7176
|
+
class rd extends $ {
|
|
7177
7177
|
/**
|
|
7178
7178
|
* @param id The targeted element to bring to the front.
|
|
7179
7179
|
*/
|
|
@@ -7200,7 +7200,7 @@ class rd extends O {
|
|
|
7200
7200
|
};
|
|
7201
7201
|
}
|
|
7202
7202
|
}
|
|
7203
|
-
class id extends
|
|
7203
|
+
class id extends $ {
|
|
7204
7204
|
/**
|
|
7205
7205
|
* @param id The targeted element to bring to the front.
|
|
7206
7206
|
*/
|
|
@@ -7453,7 +7453,7 @@ class Cs {
|
|
|
7453
7453
|
A
|
|
7454
7454
|
);
|
|
7455
7455
|
});
|
|
7456
|
-
return { command: new
|
|
7456
|
+
return { command: new O(l), followup: async () => {
|
|
7457
7457
|
} };
|
|
7458
7458
|
}
|
|
7459
7459
|
}
|
|
@@ -7764,11 +7764,11 @@ class Be {
|
|
|
7764
7764
|
scaleX: (w == null ? void 0 : w.zoom) || 1,
|
|
7765
7765
|
scaleY: (w == null ? void 0 : w.zoom) || 1,
|
|
7766
7766
|
rotation: 0
|
|
7767
|
-
} : void 0, y = Q(),
|
|
7768
|
-
if (!
|
|
7767
|
+
} : void 0, y = Q(), E = n.getLayouts().find((P) => P.panelId === m.panelId);
|
|
7768
|
+
if (!E)
|
|
7769
7769
|
throw new Y(m);
|
|
7770
7770
|
return {
|
|
7771
|
-
command: this.getCreateElementCommand(y, m,
|
|
7771
|
+
command: this.getCreateElementCommand(y, m, E, {
|
|
7772
7772
|
frameData: p,
|
|
7773
7773
|
pattern: S,
|
|
7774
7774
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
@@ -7783,7 +7783,7 @@ class Be {
|
|
|
7783
7783
|
})
|
|
7784
7784
|
), A = d.map((m) => m.command), u = d.map((m) => m.removeExistingCommands).flat();
|
|
7785
7785
|
return {
|
|
7786
|
-
command: new
|
|
7786
|
+
command: new O([...A, ...u]),
|
|
7787
7787
|
followup: async () => {
|
|
7788
7788
|
i && i(!1), await n.setSelectionsAndElements(
|
|
7789
7789
|
t.stepName,
|
|
@@ -7960,7 +7960,7 @@ class ws {
|
|
|
7960
7960
|
c.push(new oa(d, A, u));
|
|
7961
7961
|
c.push(new ps(d, o, l));
|
|
7962
7962
|
}
|
|
7963
|
-
return new
|
|
7963
|
+
return new O(c);
|
|
7964
7964
|
}
|
|
7965
7965
|
async changeColors(t, e, a, n, i) {
|
|
7966
7966
|
var h, m;
|
|
@@ -8042,7 +8042,7 @@ class ws {
|
|
|
8042
8042
|
return w.toLowerCase() === ((S = C.color) == null ? void 0 : S.toLowerCase()) ? C.name : w;
|
|
8043
8043
|
});
|
|
8044
8044
|
})), i.updateMetadata(t.stepName, { colors: g }), {
|
|
8045
|
-
command: new
|
|
8045
|
+
command: new O(m),
|
|
8046
8046
|
followup: async () => {
|
|
8047
8047
|
var w, S;
|
|
8048
8048
|
await i.setSelectionsAndElements(
|
|
@@ -8056,22 +8056,22 @@ class ws {
|
|
|
8056
8056
|
const C = ((w = o.assetConfiguration) == null ? void 0 : w.defaultColorVariants) || [];
|
|
8057
8057
|
if (C.length !== 0) {
|
|
8058
8058
|
const y = {};
|
|
8059
|
-
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((
|
|
8059
|
+
(((S = o.assetConfiguration) == null ? void 0 : S.channelNumbers) || []).forEach((E) => {
|
|
8060
8060
|
var D;
|
|
8061
|
-
const P = C.find((F) => F.channelNumber ===
|
|
8062
|
-
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) || "" });
|
|
8063
8063
|
}), await this.changeColors(
|
|
8064
8064
|
t,
|
|
8065
|
-
u.map((
|
|
8065
|
+
u.map((E) => E.regionElement),
|
|
8066
8066
|
i,
|
|
8067
8067
|
() => i.getCommandContext().getAllLayouts(),
|
|
8068
8068
|
new Map(Object.entries(y))
|
|
8069
8069
|
);
|
|
8070
8070
|
}
|
|
8071
8071
|
if (t.data.colorPickerEnabled) {
|
|
8072
|
-
const y = await this.availableColors(t, i) || [],
|
|
8073
|
-
if (
|
|
8074
|
-
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];
|
|
8075
8075
|
await this.changeColors(
|
|
8076
8076
|
t,
|
|
8077
8077
|
u.map((F) => F.regionElement),
|
|
@@ -8080,7 +8080,7 @@ class ws {
|
|
|
8080
8080
|
/* @__PURE__ */ new Map([[D, P.variant.color]])
|
|
8081
8081
|
);
|
|
8082
8082
|
}
|
|
8083
|
-
!
|
|
8083
|
+
!E && C.length === 0 && await this.changeColors(
|
|
8084
8084
|
t,
|
|
8085
8085
|
u.map((P) => P.regionElement),
|
|
8086
8086
|
i,
|
|
@@ -8319,7 +8319,7 @@ class vs {
|
|
|
8319
8319
|
), {
|
|
8320
8320
|
id: m,
|
|
8321
8321
|
region: u,
|
|
8322
|
-
command: new
|
|
8322
|
+
command: new O(f)
|
|
8323
8323
|
};
|
|
8324
8324
|
};
|
|
8325
8325
|
if (i.length > 0) {
|
|
@@ -8330,7 +8330,7 @@ class vs {
|
|
|
8330
8330
|
return c(m, h.region, h.id);
|
|
8331
8331
|
}).filter((h) => !!h).filter((h) => !!h).map((h) => h && h.command);
|
|
8332
8332
|
return {
|
|
8333
|
-
command: new
|
|
8333
|
+
command: new O(u),
|
|
8334
8334
|
followup: async () => {
|
|
8335
8335
|
}
|
|
8336
8336
|
};
|
|
@@ -8339,7 +8339,7 @@ class vs {
|
|
|
8339
8339
|
(h) => c(s.svgPrint(e, h), h)
|
|
8340
8340
|
), u = A.filter((h) => !!h).map((h) => h && h.command);
|
|
8341
8341
|
return {
|
|
8342
|
-
command: new
|
|
8342
|
+
command: new O(u),
|
|
8343
8343
|
followup: async () => {
|
|
8344
8344
|
const h = A.filter((m) => m).map((m) => m && { id: m.id, region: m.region });
|
|
8345
8345
|
await a.setSelectionsAndElements(
|
|
@@ -8447,7 +8447,7 @@ class Es {
|
|
|
8447
8447
|
};
|
|
8448
8448
|
}, d = t.data.regions.map(c);
|
|
8449
8449
|
return {
|
|
8450
|
-
command: new
|
|
8450
|
+
command: new O([...l, ...d.map((A) => A.command)]),
|
|
8451
8451
|
followup: async () => {
|
|
8452
8452
|
await a.setSelectionsAndElements(
|
|
8453
8453
|
t.stepName,
|
|
@@ -8542,7 +8542,7 @@ class Bs {
|
|
|
8542
8542
|
throw new Y(l);
|
|
8543
8543
|
return new oa(o.id, this.shapeFillId, t);
|
|
8544
8544
|
}).filter((o) => !!o);
|
|
8545
|
-
a.getCommandDispatcher()(new
|
|
8545
|
+
a.getCommandDispatcher()(new O(s)), a.updateStorage(e.stepName, { colour: t });
|
|
8546
8546
|
}
|
|
8547
8547
|
async init(t, e, a) {
|
|
8548
8548
|
const n = t.option;
|
|
@@ -8615,7 +8615,7 @@ class Bs {
|
|
|
8615
8615
|
return new oa(A.id, this.shapeFillId, m);
|
|
8616
8616
|
}, d = a.map(c).filter((A) => !!A);
|
|
8617
8617
|
return {
|
|
8618
|
-
command: new
|
|
8618
|
+
command: new O(d),
|
|
8619
8619
|
followup: async () => {
|
|
8620
8620
|
await n.setSelectionsAndElements(
|
|
8621
8621
|
t.stepName,
|
|
@@ -8678,7 +8678,7 @@ class Bs {
|
|
|
8678
8678
|
};
|
|
8679
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 }));
|
|
8680
8680
|
return {
|
|
8681
|
-
command: new
|
|
8681
|
+
command: new O(A),
|
|
8682
8682
|
followup: async () => {
|
|
8683
8683
|
await n.setSelectionsAndElements(
|
|
8684
8684
|
t.stepName,
|
|
@@ -8830,7 +8830,7 @@ class Fs {
|
|
|
8830
8830
|
if (p && t.globalPropertyAspectConfigurations) {
|
|
8831
8831
|
const C = (s = p.getGlobalPropertyConfiguration()) == null ? void 0 : s.aspects, w = C == null ? void 0 : C.find((S) => {
|
|
8832
8832
|
var y;
|
|
8833
|
-
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));
|
|
8834
8834
|
});
|
|
8835
8835
|
if (w) {
|
|
8836
8836
|
const y = p.getGlobalPropertyStateManager().getAspect(w.name);
|
|
@@ -9031,7 +9031,7 @@ class Fs {
|
|
|
9031
9031
|
}
|
|
9032
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, {
|
|
9033
9033
|
text: s
|
|
9034
|
-
}), (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);
|
|
9035
9035
|
}
|
|
9036
9036
|
async selectVariant(t, e, a, n, i) {
|
|
9037
9037
|
const s = await this.selectVariantCommand(
|
|
@@ -9072,12 +9072,12 @@ class Fs {
|
|
|
9072
9072
|
let w = (A = n.storage) == null ? void 0 : A.text;
|
|
9073
9073
|
const S = e.getWorkflowExperience().getBundle();
|
|
9074
9074
|
if (S && t.globalPropertyAspectConfigurations) {
|
|
9075
|
-
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) => {
|
|
9076
9076
|
var P;
|
|
9077
|
-
return
|
|
9077
|
+
return E.type === z.Text && ((P = t.globalPropertyAspectConfigurations) == null ? void 0 : P.map((D) => D.aspectName).includes(E.name));
|
|
9078
9078
|
});
|
|
9079
|
-
if (
|
|
9080
|
-
const P = S.getGlobalPropertyStateManager().getAspect(
|
|
9079
|
+
if (b) {
|
|
9080
|
+
const P = S.getGlobalPropertyStateManager().getAspect(b.name);
|
|
9081
9081
|
P && (w = P);
|
|
9082
9082
|
}
|
|
9083
9083
|
}
|
|
@@ -9087,13 +9087,13 @@ class Fs {
|
|
|
9087
9087
|
f,
|
|
9088
9088
|
async () => {
|
|
9089
9089
|
e.updateMetadata(t.stepName, { color: C, text: w }), e.updateStorage(t.stepName, { text: w, inputText: w });
|
|
9090
|
-
const y = o.map((
|
|
9091
|
-
e.getCommandDispatcher()(
|
|
9090
|
+
const y = o.map((E) => new Wa(E.id, p)), b = new O(y);
|
|
9091
|
+
e.getCommandDispatcher()(b);
|
|
9092
9092
|
}
|
|
9093
9093
|
), o.length === 0 && l) {
|
|
9094
9094
|
const y = j.getDefaultVariant(l);
|
|
9095
9095
|
if (y) {
|
|
9096
|
-
const
|
|
9096
|
+
const b = await this.selectVariantCommand(
|
|
9097
9097
|
t,
|
|
9098
9098
|
y,
|
|
9099
9099
|
{ text: w },
|
|
@@ -9104,7 +9104,7 @@ class Fs {
|
|
|
9104
9104
|
() => {
|
|
9105
9105
|
}
|
|
9106
9106
|
);
|
|
9107
|
-
e.getCommandDispatcher()(
|
|
9107
|
+
e.getCommandDispatcher()(b.command);
|
|
9108
9108
|
}
|
|
9109
9109
|
} else {
|
|
9110
9110
|
const { command: y } = q.updateInputText(
|
|
@@ -9218,7 +9218,7 @@ class Fs {
|
|
|
9218
9218
|
o
|
|
9219
9219
|
);
|
|
9220
9220
|
return m && h.push(m), {
|
|
9221
|
-
command: new
|
|
9221
|
+
command: new O(h),
|
|
9222
9222
|
followup: async () => {
|
|
9223
9223
|
i.markUpdateCompleted(d), await i.setSelectionsAndElements(t.stepName, [e], n);
|
|
9224
9224
|
}
|
|
@@ -9255,7 +9255,7 @@ class Fs {
|
|
|
9255
9255
|
g.push(...f);
|
|
9256
9256
|
}
|
|
9257
9257
|
return m && g.push(m), {
|
|
9258
|
-
command: new
|
|
9258
|
+
command: new O(g),
|
|
9259
9259
|
followup: async () => {
|
|
9260
9260
|
i.markUpdateCompleted(d);
|
|
9261
9261
|
}
|
|
@@ -9314,7 +9314,7 @@ class Fs {
|
|
|
9314
9314
|
curved: a.curved,
|
|
9315
9315
|
paths: a.paths,
|
|
9316
9316
|
fillSpotColorDefinition: f
|
|
9317
|
-
}, y = [],
|
|
9317
|
+
}, y = [], b = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
|
|
9318
9318
|
if (!S.fontData)
|
|
9319
9319
|
throw new G("Failed to resolve font data for text.");
|
|
9320
9320
|
const [P, D] = pe(
|
|
@@ -9331,7 +9331,7 @@ class Fs {
|
|
|
9331
9331
|
[l],
|
|
9332
9332
|
{ size: a.size, minSize: a.minSize, maxSize: a.maxSize }
|
|
9333
9333
|
);
|
|
9334
|
-
|
|
9334
|
+
b.set(S.id, P), E.set(S.id, D);
|
|
9335
9335
|
const F = a.curved || a.vertical ? l : (D || []).join(`
|
|
9336
9336
|
`);
|
|
9337
9337
|
y.push(
|
|
@@ -9369,7 +9369,7 @@ class Fs {
|
|
|
9369
9369
|
const l = new As(a, t);
|
|
9370
9370
|
i.push(l);
|
|
9371
9371
|
}
|
|
9372
|
-
return new
|
|
9372
|
+
return new O(i);
|
|
9373
9373
|
}
|
|
9374
9374
|
/**
|
|
9375
9375
|
* @deprecated
|
|
@@ -9378,27 +9378,27 @@ class Fs {
|
|
|
9378
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();
|
|
9379
9379
|
for (const S of h)
|
|
9380
9380
|
if (S.region) {
|
|
9381
|
-
const [y,
|
|
9381
|
+
const [y, b] = pe(
|
|
9382
9382
|
e,
|
|
9383
9383
|
a,
|
|
9384
9384
|
S.region,
|
|
9385
9385
|
[u],
|
|
9386
9386
|
{ size: t.data.size, minSize: t.data.minSize, maxSize: t.data.maxSize }
|
|
9387
9387
|
);
|
|
9388
|
-
m.set(S.id, y), g.set(S.id,
|
|
9388
|
+
m.set(S.id, y), g.set(S.id, b);
|
|
9389
9389
|
}
|
|
9390
9390
|
const f = (() => {
|
|
9391
9391
|
if (t.data && t.data.maxLength && u.length > t.data.maxLength)
|
|
9392
9392
|
return d && d(!0), { info: "0" };
|
|
9393
9393
|
const S = s.getProfanities(), y = Ze(u.toLowerCase());
|
|
9394
|
-
for (const
|
|
9395
|
-
for (const
|
|
9396
|
-
const P = S[
|
|
9397
|
-
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)
|
|
9398
9398
|
return l(!0), { error: "Blocked profanity." };
|
|
9399
9399
|
}
|
|
9400
9400
|
return !t.data.vertical && !t.data.allowNewlines && (u.includes(`
|
|
9401
|
-
`) || 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() });
|
|
9402
9402
|
})();
|
|
9403
9403
|
if (f.error) {
|
|
9404
9404
|
c(f.error);
|
|
@@ -9422,7 +9422,7 @@ class Fs {
|
|
|
9422
9422
|
)
|
|
9423
9423
|
);
|
|
9424
9424
|
}
|
|
9425
|
-
return new
|
|
9425
|
+
return new O(C);
|
|
9426
9426
|
}
|
|
9427
9427
|
}
|
|
9428
9428
|
const q = new Fs();
|
|
@@ -9472,7 +9472,7 @@ const Ha = {
|
|
|
9472
9472
|
t: ["x", "y"],
|
|
9473
9473
|
a: ["rx", "ry", "xRotation", "largeArc", "sweep", "x", "y"]
|
|
9474
9474
|
};
|
|
9475
|
-
class
|
|
9475
|
+
class $s {
|
|
9476
9476
|
constructor(t) {
|
|
9477
9477
|
const e = Array.from(t.querySelectorAll("path"));
|
|
9478
9478
|
this.paths = e.map((a) => {
|
|
@@ -9570,7 +9570,7 @@ class Os {
|
|
|
9570
9570
|
}
|
|
9571
9571
|
}
|
|
9572
9572
|
}
|
|
9573
|
-
class
|
|
9573
|
+
class Os extends xs {
|
|
9574
9574
|
constructor() {
|
|
9575
9575
|
super(...arguments), this.moduleName = "Vegemite";
|
|
9576
9576
|
}
|
|
@@ -9588,14 +9588,14 @@ class $s extends xs {
|
|
|
9588
9588
|
w.appendChild(S), S.appendChild(Ts(0, 2, 2, "shadow"));
|
|
9589
9589
|
const y = at("path");
|
|
9590
9590
|
y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), S.appendChild(y);
|
|
9591
|
-
const E = at("g");
|
|
9592
|
-
E.classList.add("module-layer0"), w.appendChild(E), E.setAttribute("filter", "url(#shadow)"), E.innerHTML = y.outerHTML;
|
|
9593
9591
|
const b = at("g");
|
|
9594
|
-
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;
|
|
9595
9595
|
const P = at("g");
|
|
9596
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;
|
|
9597
9597
|
const D = at("g");
|
|
9598
|
-
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;
|
|
9599
9599
|
}, u = at("g");
|
|
9600
9600
|
u.classList.add("module-root");
|
|
9601
9601
|
const h = at("defs");
|
|
@@ -9614,7 +9614,7 @@ class $s extends xs {
|
|
|
9614
9614
|
}
|
|
9615
9615
|
async function Yn(r) {
|
|
9616
9616
|
if (r === "Vegemite")
|
|
9617
|
-
return new
|
|
9617
|
+
return new Os();
|
|
9618
9618
|
throw new G(`Failed to resolve Module, Module ${r} not found`);
|
|
9619
9619
|
}
|
|
9620
9620
|
const ne = v`
|
|
@@ -10239,6 +10239,13 @@ const ne = v`
|
|
|
10239
10239
|
$country: String
|
|
10240
10240
|
$mobile: String
|
|
10241
10241
|
$company: String
|
|
10242
|
+
$apartment: String
|
|
10243
|
+
$customField1: String
|
|
10244
|
+
$customField2: String
|
|
10245
|
+
$customField3: String
|
|
10246
|
+
$customField4: String
|
|
10247
|
+
$customField5: String
|
|
10248
|
+
$conversionConfigurationId: String
|
|
10242
10249
|
) {
|
|
10243
10250
|
recipientCreate(
|
|
10244
10251
|
firstName: $firstName
|
|
@@ -10251,6 +10258,13 @@ const ne = v`
|
|
|
10251
10258
|
country: $country
|
|
10252
10259
|
mobile: $mobile
|
|
10253
10260
|
company: $company
|
|
10261
|
+
apartment: $apartment
|
|
10262
|
+
customField1: $customField1
|
|
10263
|
+
customField2: $customField2
|
|
10264
|
+
customField3: $customField3
|
|
10265
|
+
customField4: $customField4
|
|
10266
|
+
customField5: $customField5
|
|
10267
|
+
conversionConfigurationId: $conversionConfigurationId
|
|
10254
10268
|
) {
|
|
10255
10269
|
id
|
|
10256
10270
|
}
|
|
@@ -10268,6 +10282,13 @@ const ne = v`
|
|
|
10268
10282
|
$country: String
|
|
10269
10283
|
$mobile: String
|
|
10270
10284
|
$company: String
|
|
10285
|
+
$apartment: String
|
|
10286
|
+
$customField1: String
|
|
10287
|
+
$customField2: String
|
|
10288
|
+
$customField3: String
|
|
10289
|
+
$customField4: String
|
|
10290
|
+
$customField5: String
|
|
10291
|
+
$conversionConfigurationId: String
|
|
10271
10292
|
) {
|
|
10272
10293
|
recipientUpdate(
|
|
10273
10294
|
id: $id
|
|
@@ -10281,6 +10302,13 @@ const ne = v`
|
|
|
10281
10302
|
country: $country
|
|
10282
10303
|
mobile: $mobile
|
|
10283
10304
|
company: $company
|
|
10305
|
+
apartment: $apartment
|
|
10306
|
+
customField1: $customField1
|
|
10307
|
+
customField2: $customField2
|
|
10308
|
+
customField3: $customField3
|
|
10309
|
+
customField4: $customField4
|
|
10310
|
+
customField5: $customField5
|
|
10311
|
+
conversionConfigurationId: $conversionConfigurationId
|
|
10284
10312
|
) {
|
|
10285
10313
|
id
|
|
10286
10314
|
}
|
|
@@ -10310,13 +10338,13 @@ class Co {
|
|
|
10310
10338
|
constructor(t, e, a, n, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, C = !1) {
|
|
10311
10339
|
var w;
|
|
10312
10340
|
this.workflowStatePromiseQueue = new xn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
|
10313
|
-
var
|
|
10341
|
+
var b;
|
|
10314
10342
|
if (!this.previewService)
|
|
10315
10343
|
return;
|
|
10316
|
-
const S = this.getCommandContext().getAllLayouts(), y = (
|
|
10344
|
+
const S = this.getCommandContext().getAllLayouts(), y = (b = this.getLayoutPreviewService()) == null ? void 0 : b.getAll();
|
|
10317
10345
|
if (y)
|
|
10318
|
-
for (const [,
|
|
10319
|
-
|
|
10346
|
+
for (const [, E] of y)
|
|
10347
|
+
E.render(S);
|
|
10320
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) => {
|
|
10321
10349
|
this.stepTags[S.stepName] = S.tags ?? [];
|
|
10322
10350
|
}), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
|
|
@@ -10332,9 +10360,9 @@ class Co {
|
|
|
10332
10360
|
getTemplatingContext() {
|
|
10333
10361
|
return { recipient: this.transaction.recipient };
|
|
10334
10362
|
}
|
|
10335
|
-
async updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
10336
|
-
var
|
|
10337
|
-
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)
|
|
10338
10366
|
this.transaction.recipient = {
|
|
10339
10367
|
id: this.transaction.recipient.id,
|
|
10340
10368
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10346,7 +10374,14 @@ class Co {
|
|
|
10346
10374
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10347
10375
|
country: l || this.transaction.recipient.country,
|
|
10348
10376
|
mobile: c || this.transaction.recipient.mobile,
|
|
10349
|
-
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: u || this.transaction.recipient.customField2,
|
|
10381
|
+
customField3: u || this.transaction.recipient.customField3,
|
|
10382
|
+
customField4: u || this.transaction.recipient.customField4,
|
|
10383
|
+
customField5: u || this.transaction.recipient.customField5,
|
|
10384
|
+
conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
|
|
10350
10385
|
}, await this.graphQlClient().mutate({
|
|
10351
10386
|
mutation: go,
|
|
10352
10387
|
errorPolicy: "all",
|
|
@@ -10362,11 +10397,18 @@ class Co {
|
|
|
10362
10397
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10363
10398
|
country: l || this.transaction.recipient.country,
|
|
10364
10399
|
mobile: c || this.transaction.recipient.mobile,
|
|
10365
|
-
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: u || this.transaction.recipient.customField2,
|
|
10404
|
+
customField3: u || this.transaction.recipient.customField3,
|
|
10405
|
+
customField4: u || this.transaction.recipient.customField4,
|
|
10406
|
+
customField5: u || this.transaction.recipient.customField5,
|
|
10407
|
+
conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
|
|
10366
10408
|
}
|
|
10367
10409
|
});
|
|
10368
10410
|
else {
|
|
10369
|
-
const
|
|
10411
|
+
const E = await this.graphQlClient().mutate({
|
|
10370
10412
|
mutation: mo,
|
|
10371
10413
|
errorPolicy: "all",
|
|
10372
10414
|
fetchPolicy: "no-cache",
|
|
@@ -10380,11 +10422,18 @@ class Co {
|
|
|
10380
10422
|
postalCode: o,
|
|
10381
10423
|
country: l,
|
|
10382
10424
|
mobile: c,
|
|
10383
|
-
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
|
|
10384
10433
|
}
|
|
10385
10434
|
});
|
|
10386
10435
|
this.transaction.recipient = {
|
|
10387
|
-
id: (
|
|
10436
|
+
id: (S = (w = E == null ? void 0 : E.data) == null ? void 0 : w.recipientCreate) == null ? void 0 : S.id,
|
|
10388
10437
|
firstName: t,
|
|
10389
10438
|
lastName: e,
|
|
10390
10439
|
address: a,
|
|
@@ -10394,21 +10443,28 @@ class Co {
|
|
|
10394
10443
|
postalCode: o,
|
|
10395
10444
|
country: l,
|
|
10396
10445
|
mobile: c,
|
|
10397
|
-
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
|
|
10398
10454
|
}, await this.graphQlClient().mutate({
|
|
10399
10455
|
mutation: po,
|
|
10400
10456
|
errorPolicy: "all",
|
|
10401
10457
|
fetchPolicy: "no-cache",
|
|
10402
10458
|
variables: {
|
|
10403
10459
|
id: this.transaction.id,
|
|
10404
|
-
recipientId: (
|
|
10460
|
+
recipientId: (b = (y = E.data) == null ? void 0 : y.recipientCreate) == null ? void 0 : b.id
|
|
10405
10461
|
},
|
|
10406
10462
|
context: {
|
|
10407
10463
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
10408
10464
|
}
|
|
10409
10465
|
});
|
|
10410
10466
|
}
|
|
10411
|
-
this.recipientCallbacks.forEach((
|
|
10467
|
+
this.recipientCallbacks.forEach((E) => E(this.transaction.recipient));
|
|
10412
10468
|
}
|
|
10413
10469
|
async initializeDefaultWorkflowState(t) {
|
|
10414
10470
|
const e = () => {
|
|
@@ -10423,7 +10479,7 @@ class Co {
|
|
|
10423
10479
|
this.storage[o.stepName] = o.storage || {};
|
|
10424
10480
|
}), this.allScenes = await zi(t);
|
|
10425
10481
|
const n = Pt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(n, !!this.reloadedState);
|
|
10426
|
-
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();
|
|
10427
10483
|
}
|
|
10428
10484
|
getWorkflowExperience() {
|
|
10429
10485
|
return this.experience;
|
|
@@ -10883,14 +10939,14 @@ class Co {
|
|
|
10883
10939
|
this.stepSelections = {
|
|
10884
10940
|
...this.stepSelections,
|
|
10885
10941
|
[t]: { selectedVariants: e }
|
|
10886
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((
|
|
10887
|
-
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]);
|
|
10888
10944
|
});
|
|
10889
|
-
const s = this.allScenes, o = Pt(s, i), l = Pt(s, this.stepSelections), c = o.map((
|
|
10890
|
-
(
|
|
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)
|
|
10891
10947
|
);
|
|
10892
|
-
c.forEach((
|
|
10893
|
-
wt(
|
|
10948
|
+
c.forEach((b) => {
|
|
10949
|
+
wt(b, this.stepSelections) || (this.stepInitialised[b.stepName] = !1);
|
|
10894
10950
|
});
|
|
10895
10951
|
const u = this.getInvalidCanvasRegions(), { stepElements: h, commands: m } = await this.stepElementsForIntroducedSilentSteps(A, !1);
|
|
10896
10952
|
this.stepElements = {
|
|
@@ -10898,25 +10954,25 @@ class Co {
|
|
|
10898
10954
|
...h,
|
|
10899
10955
|
[t]: a
|
|
10900
10956
|
}, this.removeElements(u);
|
|
10901
|
-
const g = this.workflow.steps.find((
|
|
10957
|
+
const g = this.workflow.steps.find((b) => b.stepName === t);
|
|
10902
10958
|
if ((g == null ? void 0 : g.type) === I.Frame) {
|
|
10903
|
-
const
|
|
10904
|
-
|
|
10959
|
+
const b = (y = this.getWorkflowExperience().getStepById(g.stepName)) == null ? void 0 : y.frameService;
|
|
10960
|
+
b == null || b.setTargetElements(a.map((E) => E.id));
|
|
10905
10961
|
}
|
|
10906
|
-
const p = u.map((
|
|
10907
|
-
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();
|
|
10908
10964
|
const w = this.getInvalidModelVariants(), S = this.modelContainer;
|
|
10909
10965
|
if (S) {
|
|
10910
|
-
const
|
|
10911
|
-
(
|
|
10912
|
-
|
|
10966
|
+
const b = w.map(
|
|
10967
|
+
(E) => S.applyModelVariant(
|
|
10968
|
+
E,
|
|
10913
10969
|
{
|
|
10914
10970
|
contextService: this.getLayoutPreviewService()
|
|
10915
10971
|
},
|
|
10916
10972
|
!1
|
|
10917
10973
|
)
|
|
10918
10974
|
);
|
|
10919
|
-
await Promise.all(
|
|
10975
|
+
await Promise.all(b);
|
|
10920
10976
|
}
|
|
10921
10977
|
await this.onSelectionChange(), n && await n();
|
|
10922
10978
|
}
|
|
@@ -10979,7 +11035,7 @@ class Co {
|
|
|
10979
11035
|
throw new Error(`Step initialization failed: ${l.reason}`);
|
|
10980
11036
|
return l.value;
|
|
10981
11037
|
}), s = i.filter((l) => !!l && !!l.command).map((l) => l.command), o = i.filter((l) => !!l && !!l.followup).map((l) => l.followup);
|
|
10982
|
-
s && s.length > 0 && this.commandContext.apply(new
|
|
11038
|
+
s && s.length > 0 && this.commandContext.apply(new O(s), !0);
|
|
10983
11039
|
for (const l of o)
|
|
10984
11040
|
await l();
|
|
10985
11041
|
o.length > 0 && await this.ensureStepsAreLoaded(), this.onInitChange();
|
|
@@ -12037,10 +12093,10 @@ const ko = async (r, t) => {
|
|
|
12037
12093
|
S[D].map((F) => F.id)
|
|
12038
12094
|
])
|
|
12039
12095
|
);
|
|
12040
|
-
let
|
|
12041
|
-
if (
|
|
12042
|
-
const D = await (await rt(
|
|
12043
|
-
|
|
12096
|
+
let b = await o(m, n.id);
|
|
12097
|
+
if (b) {
|
|
12098
|
+
const D = await (await rt(b)).blob();
|
|
12099
|
+
b = (await U.uploadAsset(
|
|
12044
12100
|
{ name: `${n.id}-preview-image.png`, blob: D },
|
|
12045
12101
|
Ce.Image,
|
|
12046
12102
|
!0,
|
|
@@ -12058,7 +12114,7 @@ const ko = async (r, t) => {
|
|
|
12058
12114
|
workflowId: t.id,
|
|
12059
12115
|
transactionId: n.id,
|
|
12060
12116
|
useThreeDimPreview: !!m,
|
|
12061
|
-
previewImage:
|
|
12117
|
+
previewImage: b
|
|
12062
12118
|
};
|
|
12063
12119
|
if (p) {
|
|
12064
12120
|
const F = [];
|
|
@@ -12224,7 +12280,7 @@ class Ro {
|
|
|
12224
12280
|
throw new G("Unexpected storage method requested");
|
|
12225
12281
|
}
|
|
12226
12282
|
}
|
|
12227
|
-
const Ye = new Ro(),
|
|
12283
|
+
const Ye = new Ro(), $o = v`
|
|
12228
12284
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
12229
12285
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
12230
12286
|
id
|
|
@@ -12238,7 +12294,7 @@ const Ye = new Ro(), Oo = v`
|
|
|
12238
12294
|
}
|
|
12239
12295
|
}
|
|
12240
12296
|
}
|
|
12241
|
-
`,
|
|
12297
|
+
`, Oo = v`
|
|
12242
12298
|
mutation AddAddressToTransaction(
|
|
12243
12299
|
$transactionId: String!
|
|
12244
12300
|
$streetAddress: String
|
|
@@ -12331,7 +12387,7 @@ class Vo {
|
|
|
12331
12387
|
}
|
|
12332
12388
|
async attachAddress(t, e, a, n, i, s) {
|
|
12333
12389
|
await this.graphQlClient().mutate({
|
|
12334
|
-
mutation:
|
|
12390
|
+
mutation: Oo,
|
|
12335
12391
|
variables: {
|
|
12336
12392
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
|
12337
12393
|
streetAddress: t || void 0,
|
|
@@ -12545,7 +12601,7 @@ class Vo {
|
|
|
12545
12601
|
async assignCustomerDetails(t) {
|
|
12546
12602
|
var n, i, s;
|
|
12547
12603
|
const a = (s = (i = (n = (await this.graphQlClient().mutate({
|
|
12548
|
-
mutation:
|
|
12604
|
+
mutation: $o,
|
|
12549
12605
|
variables: {
|
|
12550
12606
|
id: this.getWorkflowManager().getTransaction().id,
|
|
12551
12607
|
details: t,
|
|
@@ -12815,7 +12871,7 @@ const zo = (r) => {
|
|
|
12815
12871
|
o && (t[a.stepName] = { selectedVariants: [o] });
|
|
12816
12872
|
const l = async (c) => {
|
|
12817
12873
|
var g;
|
|
12818
|
-
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);
|
|
12819
12875
|
if (!h)
|
|
12820
12876
|
throw new Y(c);
|
|
12821
12877
|
const m = Ea(
|
|
@@ -12867,17 +12923,17 @@ const zo = (r) => {
|
|
|
12867
12923
|
return console.error(o), [];
|
|
12868
12924
|
}
|
|
12869
12925
|
}, jo = async (r, t, e, a) => {
|
|
12870
|
-
var y,
|
|
12926
|
+
var y, b;
|
|
12871
12927
|
const n = e.data, i = a.option;
|
|
12872
12928
|
if (!i)
|
|
12873
12929
|
return console.error(`No option for step ${a.stepName}.`), [];
|
|
12874
|
-
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);
|
|
12875
12931
|
if (!s)
|
|
12876
12932
|
return console.error(`No variant with ID: ${n.illustrationVariantId}`), [];
|
|
12877
12933
|
if (!s.asset)
|
|
12878
12934
|
return console.error(`No asset for variant with ID: ${n.illustrationVariantId}`), [];
|
|
12879
12935
|
t[a.stepName] = { selectedVariants: [s] };
|
|
12880
|
-
const o = (
|
|
12936
|
+
const o = (b = s.asset) == null ? void 0 : b.fileLink;
|
|
12881
12937
|
if (!o)
|
|
12882
12938
|
return console.error(`No asset link for variant with ID: ${n.illustrationVariantId}`), [];
|
|
12883
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;
|
|
@@ -12885,32 +12941,32 @@ const zo = (r) => {
|
|
|
12885
12941
|
return console.error("Failed to read SVG."), [];
|
|
12886
12942
|
pa(m);
|
|
12887
12943
|
const g = {};
|
|
12888
|
-
xt(m, (
|
|
12889
|
-
Wo.includes(
|
|
12890
|
-
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");
|
|
12891
12947
|
if (P && P.value !== "none") {
|
|
12892
12948
|
const F = P.value, T = `spiff-fill-${F.replace(/\W/g, "")}`;
|
|
12893
|
-
|
|
12949
|
+
E.classList.add(T), g[T] = { browserValue: F };
|
|
12894
12950
|
}
|
|
12895
|
-
const D =
|
|
12951
|
+
const D = E.attributes.getNamedItem("stroke");
|
|
12896
12952
|
if (D && D.value !== "none") {
|
|
12897
12953
|
const F = D.value, T = `spiff-stroke-${F.replace(/\W/g, "")}`;
|
|
12898
|
-
|
|
12954
|
+
E.classList.add(T), g[T] = { browserValue: F };
|
|
12899
12955
|
}
|
|
12900
12956
|
});
|
|
12901
12957
|
const f = bt().serializeToString(m), C = n.colors;
|
|
12902
12958
|
if (C) {
|
|
12903
|
-
for (const [
|
|
12959
|
+
for (const [E, P] of Object.entries(g))
|
|
12904
12960
|
for (const D of Object.keys(C))
|
|
12905
12961
|
if (P.browserValue === D) {
|
|
12906
|
-
g[
|
|
12962
|
+
g[E] = { browserValue: C[D] };
|
|
12907
12963
|
break;
|
|
12908
12964
|
}
|
|
12909
12965
|
}
|
|
12910
|
-
const w = (
|
|
12911
|
-
const P = r.find((F) => F.panelId ===
|
|
12966
|
+
const w = (E) => {
|
|
12967
|
+
const P = r.find((F) => F.panelId === E.panelId);
|
|
12912
12968
|
if (!P)
|
|
12913
|
-
throw new Y(
|
|
12969
|
+
throw new Y(E);
|
|
12914
12970
|
const D = Q();
|
|
12915
12971
|
return new W(
|
|
12916
12972
|
{
|
|
@@ -12918,22 +12974,22 @@ const zo = (r) => {
|
|
|
12918
12974
|
id: D,
|
|
12919
12975
|
svg: f,
|
|
12920
12976
|
type: M.Illustration,
|
|
12921
|
-
y:
|
|
12922
|
-
x:
|
|
12923
|
-
rotation:
|
|
12924
|
-
width:
|
|
12925
|
-
height:
|
|
12926
|
-
layer:
|
|
12927
|
-
layerIndex:
|
|
12928
|
-
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
|
|
12929
12985
|
},
|
|
12930
12986
|
P
|
|
12931
12987
|
);
|
|
12932
12988
|
}, S = a.data.regions;
|
|
12933
12989
|
try {
|
|
12934
12990
|
return S.map(w);
|
|
12935
|
-
} catch (
|
|
12936
|
-
return console.error(
|
|
12991
|
+
} catch (E) {
|
|
12992
|
+
return console.error(E), [];
|
|
12937
12993
|
}
|
|
12938
12994
|
}, Yo = async (r, t, e) => {
|
|
12939
12995
|
const a = await Yn(e.data.module), n = t.data, i = (o, l) => {
|
|
@@ -13479,9 +13535,9 @@ const od = (r, t) => {
|
|
|
13479
13535
|
serializableWorkflow: { steps: [] },
|
|
13480
13536
|
layouts: {}
|
|
13481
13537
|
};
|
|
13482
|
-
n = new
|
|
13538
|
+
n = new O(e.map((l) => new Ln(l))).apply(n);
|
|
13483
13539
|
const s = await tl(r, t, e, a);
|
|
13484
|
-
return new
|
|
13540
|
+
return new O(s).apply(n);
|
|
13485
13541
|
};
|
|
13486
13542
|
class sl {
|
|
13487
13543
|
constructor(t) {
|
|
@@ -16075,7 +16131,7 @@ const Ql = async (r, t) => {
|
|
|
16075
16131
|
(o) => Jt.set({ id: o, options: t }, Rl(o, n))
|
|
16076
16132
|
), s = e.filter((o) => o !== void 0);
|
|
16077
16133
|
return await Promise.all(s.concat(i));
|
|
16078
|
-
}, 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) => ({
|
|
16079
16135
|
id: Q(),
|
|
16080
16136
|
panelId: t.name,
|
|
16081
16137
|
name: t.name,
|
|
@@ -16089,9 +16145,9 @@ const Ql = async (r, t) => {
|
|
|
16089
16145
|
previewRegion: t.previewRegion,
|
|
16090
16146
|
useEditableArea: t.useEditableArea,
|
|
16091
16147
|
editableArea: t.editableArea
|
|
16092
|
-
})),
|
|
16148
|
+
})), Ol = (r, t) => {
|
|
16093
16149
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
16094
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
16150
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : $l(t.panels);
|
|
16095
16151
|
};
|
|
16096
16152
|
class hd {
|
|
16097
16153
|
constructor(t) {
|
|
@@ -16104,7 +16160,7 @@ class hd {
|
|
|
16104
16160
|
} catch (a) {
|
|
16105
16161
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
16106
16162
|
}
|
|
16107
|
-
}, 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.be9b52a9-054d-58f7-b480-9008a072743f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16108
16164
|
}
|
|
16109
16165
|
configure(t) {
|
|
16110
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);
|
|
@@ -16213,7 +16269,7 @@ class hd {
|
|
|
16213
16269
|
const C = ((h = (u = this.customer) == null ? void 0 : u.bundleStakeholders) == null ? void 0 : h.find(
|
|
16214
16270
|
(w) => {
|
|
16215
16271
|
var S, y;
|
|
16216
|
-
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);
|
|
16217
16273
|
}
|
|
16218
16274
|
)) || ((g = (m = this.customer) == null ? void 0 : m.stakeholders) == null ? void 0 : g.find(
|
|
16219
16275
|
(w) => {
|
|
@@ -16440,7 +16496,7 @@ class hd {
|
|
|
16440
16496
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
16441
16497
|
*/
|
|
16442
16498
|
async getExistingBundle(t, e, a, n) {
|
|
16443
|
-
var m, g, p, f, C, w, S, y,
|
|
16499
|
+
var m, g, p, f, C, w, S, y, b, E, P;
|
|
16444
16500
|
const i = N.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), o = {};
|
|
16445
16501
|
try {
|
|
16446
16502
|
const D = await this.loggedInBearerToken();
|
|
@@ -16468,8 +16524,8 @@ class hd {
|
|
|
16468
16524
|
const d = (y = c.data) == null ? void 0 : y.bundles[0], A = N.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
16469
16525
|
A.set(d.id, d.partner.id), N.setMap("bundlePartnerIds", A);
|
|
16470
16526
|
const u = new Je(this, d, e, a, s, {
|
|
16471
|
-
additionalHeaders: (
|
|
16472
|
-
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,
|
|
16473
16529
|
existingGlobalPropertyState: c.data.globalPropertyState,
|
|
16474
16530
|
readonly: n == null ? void 0 : n.readonly
|
|
16475
16531
|
});
|
|
@@ -16490,7 +16546,7 @@ class hd {
|
|
|
16490
16546
|
const C = await this.loggedInBearerToken();
|
|
16491
16547
|
s.Authorization = `Bearer ${C}`;
|
|
16492
16548
|
} catch {
|
|
16493
|
-
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);
|
|
16494
16550
|
y && !Wt(y) && (s.Authorization = `Bearer ${y}`);
|
|
16495
16551
|
}
|
|
16496
16552
|
const o = {
|
|
@@ -16597,16 +16653,16 @@ class hd {
|
|
|
16597
16653
|
var D, F, k;
|
|
16598
16654
|
if (y.length === 0)
|
|
16599
16655
|
return [];
|
|
16600
|
-
const
|
|
16656
|
+
const b = y.map((T) => T.option.transactionId), E = await a.query({
|
|
16601
16657
|
query: yi,
|
|
16602
16658
|
variables: {
|
|
16603
|
-
ids:
|
|
16659
|
+
ids: b
|
|
16604
16660
|
},
|
|
16605
16661
|
errorPolicy: "all",
|
|
16606
16662
|
fetchPolicy: "no-cache"
|
|
16607
|
-
}), P =
|
|
16663
|
+
}), P = E.data.transactions;
|
|
16608
16664
|
if (P.length !== y.length) {
|
|
16609
|
-
const T = ((F = (D =
|
|
16665
|
+
const T = ((F = (D = E.errors) == null ? void 0 : D[0]) == null ? void 0 : F.message) || "Unknown error";
|
|
16610
16666
|
throw new ut(`Not all transactions were found: ${T}`);
|
|
16611
16667
|
}
|
|
16612
16668
|
return !this.activeIntegration && ((k = P[0].integrationProduct) != null && k.integration) && (this.activeIntegration = Promise.resolve(P[0].integrationProduct.integration)), P.map((T, Z) => {
|
|
@@ -16622,7 +16678,7 @@ class hd {
|
|
|
16622
16678
|
var P, D, F;
|
|
16623
16679
|
if (y.length === 0)
|
|
16624
16680
|
return [];
|
|
16625
|
-
const
|
|
16681
|
+
const b = await a.mutate({
|
|
16626
16682
|
mutation: wi,
|
|
16627
16683
|
variables: {
|
|
16628
16684
|
inputs: y.map((k) => ({
|
|
@@ -16638,32 +16694,32 @@ class hd {
|
|
|
16638
16694
|
},
|
|
16639
16695
|
errorPolicy: "all",
|
|
16640
16696
|
fetchPolicy: "no-cache"
|
|
16641
|
-
}),
|
|
16642
|
-
if (!
|
|
16643
|
-
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";
|
|
16644
16700
|
throw new ut(`Failed to create transactions: ${k}`);
|
|
16645
16701
|
}
|
|
16646
|
-
return
|
|
16702
|
+
return E.map((k, T) => ({
|
|
16647
16703
|
transaction: k,
|
|
16648
16704
|
workflowId: k.workflowId,
|
|
16649
16705
|
readOnly: !1,
|
|
16650
16706
|
index: y[T].index
|
|
16651
16707
|
}));
|
|
16652
|
-
}, 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(
|
|
16653
16709
|
(y) => y.option.type === "integration" || y.option.type === "external"
|
|
16654
16710
|
), c = xa(o, 10), d = xa(l, 10), A = (await Promise.all([
|
|
16655
16711
|
...c.map(n),
|
|
16656
16712
|
...d.map(i)
|
|
16657
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) => {
|
|
16658
16714
|
var et;
|
|
16659
|
-
const { transaction:
|
|
16660
|
-
!g.get(
|
|
16661
|
-
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({
|
|
16662
16718
|
onMutate: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } }),
|
|
16663
16719
|
onQuery: () => ({ context: { transactionOwnerId: T, bundleOwnerId: e == null ? void 0 : e.bundleOwnerId } })
|
|
16664
16720
|
}), R = {
|
|
16665
|
-
product:
|
|
16666
|
-
transaction:
|
|
16721
|
+
product: b.product,
|
|
16722
|
+
transaction: b,
|
|
16667
16723
|
layouts: [],
|
|
16668
16724
|
singleVariantsRenderable: (et = k == null ? void 0 : k.workflowConfiguration) == null ? void 0 : et.singleVariantsRenderable,
|
|
16669
16725
|
stateMutationFunc: P ? async () => {
|
|
@@ -16681,7 +16737,7 @@ class hd {
|
|
|
16681
16737
|
const tt = JSON.parse(k.workflowState);
|
|
16682
16738
|
R.layouts = Object.values(tt.layouts || {}).map((Nt) => Nt.layout), await cs(tt), R.reloadedState = tt;
|
|
16683
16739
|
} else
|
|
16684
|
-
R.layouts =
|
|
16740
|
+
R.layouts = Ol(
|
|
16685
16741
|
R.transaction,
|
|
16686
16742
|
R.workflow
|
|
16687
16743
|
);
|
|
@@ -16690,9 +16746,9 @@ class hd {
|
|
|
16690
16746
|
), R.delayWorkflowStateSync = !0, { experienceOptions: R, index: D, options: k };
|
|
16691
16747
|
}), f = await Promise.all(p);
|
|
16692
16748
|
N.setMap("transactionOwnerIds", g);
|
|
16693
|
-
const w = f.sort((y,
|
|
16694
|
-
const { experienceOptions:
|
|
16695
|
-
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;
|
|
16696
16752
|
}), S = await Promise.all(w);
|
|
16697
16753
|
return S.forEach((y) => y.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), S;
|
|
16698
16754
|
}
|
|
@@ -16766,7 +16822,7 @@ class hd {
|
|
|
16766
16822
|
}
|
|
16767
16823
|
}
|
|
16768
16824
|
const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
|
|
16769
|
-
query:
|
|
16825
|
+
query: $i,
|
|
16770
16826
|
errorPolicy: "all",
|
|
16771
16827
|
fetchPolicy: "no-cache",
|
|
16772
16828
|
context: {
|
|
@@ -16810,7 +16866,7 @@ const Ul = async (r, t) => (await B.getShadowGraphqlClient().query({
|
|
|
16810
16866
|
}, fd = async (r) => {
|
|
16811
16867
|
var e, a, n;
|
|
16812
16868
|
return (n = (a = (e = (await B.getShadowGraphqlClient().query({
|
|
16813
|
-
query:
|
|
16869
|
+
query: Oi,
|
|
16814
16870
|
errorPolicy: "all",
|
|
16815
16871
|
variables: {
|
|
16816
16872
|
id: r
|
|
@@ -17016,7 +17072,7 @@ class Vl {
|
|
|
17016
17072
|
const s = this.workflowManager.getCommandDispatcher();
|
|
17017
17073
|
this.targetElements.forEach((o, l) => {
|
|
17018
17074
|
s(
|
|
17019
|
-
new
|
|
17075
|
+
new O([
|
|
17020
17076
|
new hs(o, e, t[l]),
|
|
17021
17077
|
new ms(
|
|
17022
17078
|
o,
|
|
@@ -17054,7 +17110,7 @@ class Vl {
|
|
|
17054
17110
|
}
|
|
17055
17111
|
}
|
|
17056
17112
|
class Cd {
|
|
17057
|
-
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) {
|
|
17058
17114
|
throw new Error("Method not implemented.");
|
|
17059
17115
|
}
|
|
17060
17116
|
approveTransaction(t) {
|
|
@@ -17863,7 +17919,7 @@ export {
|
|
|
17863
17919
|
nd as BringToBackCommand,
|
|
17864
17920
|
ad as BringToFrontCommand,
|
|
17865
17921
|
vr as BundleDesignCreationCartAddMode,
|
|
17866
|
-
|
|
17922
|
+
$ as CanvasCommand,
|
|
17867
17923
|
de as CollectionProduct,
|
|
17868
17924
|
Ja as ColorOptionGlobalPropertyHandle,
|
|
17869
17925
|
os as CommandContext,
|
|
@@ -17887,7 +17943,7 @@ export {
|
|
|
17887
17943
|
zl as FrameStep,
|
|
17888
17944
|
Gl as FrameStepHandle,
|
|
17889
17945
|
Ia as GlobalPropertyHandle,
|
|
17890
|
-
|
|
17946
|
+
O as GroupCommand,
|
|
17891
17947
|
wo as IllustrationStepHandle,
|
|
17892
17948
|
Re as InformationMessageType,
|
|
17893
17949
|
Io as InformationStepHandle,
|
|
@@ -17957,7 +18013,7 @@ export {
|
|
|
17957
18013
|
nt as fetchAsString,
|
|
17958
18014
|
Uc as findAngle,
|
|
17959
18015
|
L as findElement,
|
|
17960
|
-
|
|
18016
|
+
$c as findPmsColors,
|
|
17961
18017
|
Vt as frameDataCache,
|
|
17962
18018
|
Ct as frameStepService,
|
|
17963
18019
|
Q as generate,
|
|
@@ -17966,7 +18022,7 @@ export {
|
|
|
17966
18022
|
ld as generateStateFromDesignInputSteps,
|
|
17967
18023
|
kd as getAddressValidationJobs,
|
|
17968
18024
|
Me as getAttributesFromArrayBuffer,
|
|
17969
|
-
|
|
18025
|
+
Oc as getAxisAlignedBoundingBox,
|
|
17970
18026
|
Ll as getBoundedOffsets,
|
|
17971
18027
|
pd as getBundleThemeConfiguration,
|
|
17972
18028
|
Ed as getCustomer,
|
|
@@ -18025,8 +18081,8 @@ export {
|
|
|
18025
18081
|
fs as shortenUrl,
|
|
18026
18082
|
mt as spiffCoreConfiguration,
|
|
18027
18083
|
od as stepAspectValuesToDesignInputSteps,
|
|
18028
|
-
|
|
18029
|
-
|
|
18084
|
+
Oa as svgColorValueToDefinition,
|
|
18085
|
+
On as svgStringDimensions,
|
|
18030
18086
|
ha as svgToDataUrl,
|
|
18031
18087
|
q as textStepService,
|
|
18032
18088
|
Ps as toast,
|