@spiffcommerce/core 39.1.1 → 39.1.2
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +146 -146
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHttpLink as
|
|
1
|
+
import { createHttpLink as Di, ApolloClient as ki, InMemoryCache as Mi, from as Ti, gql as C } from "@apollo/client/core";
|
|
2
2
|
import { setContext as Ni } from "@apollo/client/link/context";
|
|
3
3
|
import { onError as Qi } from "@apollo/client/link/error";
|
|
4
4
|
import { renderToStaticMarkup as Ri } from "preact-render-to-string";
|
|
@@ -25,13 +25,13 @@ import Hi from "svg-path-bbox";
|
|
|
25
25
|
import "fs";
|
|
26
26
|
import "path";
|
|
27
27
|
import ji from "lodash.omit";
|
|
28
|
-
var Ie = /* @__PURE__ */ ((i) => (i.Data = "Data", i.Font = "Font", i.Frame = "Frame", i.Illustration = "Illustration", i.Image = "Image", i.Model = "Model", i.Material = "Material", i.Color = "Color", i.QuestionnaireCollateral = "QuestionnaireCollateral", i.RequestCollateral = "RequestCollateral", i.SignupCollateral = "SignupCollateral", i.Video = "Video", i.ColorProfile = "ColorProfile", i.Environment = "Environment", i))(Ie || {}), Bn = /* @__PURE__ */ ((i) => (i.AND = "AND", i.OR = "OR", i))(Bn || {}), z = /* @__PURE__ */ ((i) => (i.FileUpload = "FileUpload", i.Option = "Option", i.ColorOption = "ColorOption", i.Text = "Text", i))(z || {}), E = /* @__PURE__ */ ((i) => (i.Information = "Information", i.Bulk = "Bulk", i.DigitalContent = "DigitalContent", i.Finish = "Finish", i.Frame = "Frame", i.Illustration = "Illustration", i.Introduction = "Introduction", i.Material = "Material", i.Model = "Model", i.Module = "Module", i.Picture = "Picture", i.Photo = "Photo", i.ProductOverlay = "ProductOverlay", i.Question = "Question", i.Shape = "Shape", i.SilentIllustration = "SilentIllustration", i.Text = "Text", i))(E || {}), Yi = /* @__PURE__ */ ((i) => (i.Color = "Color", i.Colors = "Colors", i.Selection = "Selection", i.Selections = "Selections", i.Text = "Text", i.Upload = "Upload", i))(Yi || {}), _t = /* @__PURE__ */ ((i) => (i.ThreeD = "ThreeD", i.FreeDesign = "FreeDesign", i.Print = "Print", i))(_t || {}),
|
|
29
|
-
class
|
|
28
|
+
var Ie = /* @__PURE__ */ ((i) => (i.Data = "Data", i.Font = "Font", i.Frame = "Frame", i.Illustration = "Illustration", i.Image = "Image", i.Model = "Model", i.Material = "Material", i.Color = "Color", i.QuestionnaireCollateral = "QuestionnaireCollateral", i.RequestCollateral = "RequestCollateral", i.SignupCollateral = "SignupCollateral", i.Video = "Video", i.ColorProfile = "ColorProfile", i.Environment = "Environment", i))(Ie || {}), Bn = /* @__PURE__ */ ((i) => (i.AND = "AND", i.OR = "OR", i))(Bn || {}), z = /* @__PURE__ */ ((i) => (i.FileUpload = "FileUpload", i.Option = "Option", i.ColorOption = "ColorOption", i.Text = "Text", i))(z || {}), E = /* @__PURE__ */ ((i) => (i.Information = "Information", i.Bulk = "Bulk", i.DigitalContent = "DigitalContent", i.Finish = "Finish", i.Frame = "Frame", i.Illustration = "Illustration", i.Introduction = "Introduction", i.Material = "Material", i.Model = "Model", i.Module = "Module", i.Picture = "Picture", i.Photo = "Photo", i.ProductOverlay = "ProductOverlay", i.Question = "Question", i.Shape = "Shape", i.SilentIllustration = "SilentIllustration", i.Text = "Text", i))(E || {}), Yi = /* @__PURE__ */ ((i) => (i.Color = "Color", i.Colors = "Colors", i.Selection = "Selection", i.Selections = "Selections", i.Text = "Text", i.Upload = "Upload", i))(Yi || {}), _t = /* @__PURE__ */ ((i) => (i.ThreeD = "ThreeD", i.FreeDesign = "FreeDesign", i.Print = "Print", i))(_t || {}), D = /* @__PURE__ */ ((i) => (i.Frame = "frame", i.Group = "group", i.Image = "image", i.Pattern = "pattern", i.Illustration = "illustration", i.Textbox = "textbox", i))(D || {}), Ji = /* @__PURE__ */ ((i) => (i.Default = "Default", i.FirstTransaction = "FirstTransaction", i.OneToOne = "OneToOne", i))(Ji || {}), Pn = /* @__PURE__ */ ((i) => (i.Pending = "Pending", i.Failed = "Failed", i.Validated = "Validated", i.Overridden = "Overridden", i))(Pn || {}), Ki = /* @__PURE__ */ ((i) => (i.Hyperlink = "Hyperlink", i.Edit = "Edit", i.Approve = "Approve", i))(Ki || {}), _i = /* @__PURE__ */ ((i) => (i.Hub = "Hub", i.Shopify = "Shopify", i))(_i || {}), Ba = /* @__PURE__ */ ((i) => (i.BackgroundRemover = "BackgroundRemover", i.ConversionAccelerator = "Conversion Accelerator", i.ProcessBuilder = "ProcessBuilder", i))(Ba || {}), Xi = /* @__PURE__ */ ((i) => (i[i.Orbit = 0] = "Orbit", i[i.Pan = 1] = "Pan", i))(Xi || {}), Fn = /* @__PURE__ */ ((i) => (i.Owner = "Owner", i.Approver = "Approver", i.Editor = "Editor", i.Viewer = "Viewer", i))(Fn || {}), Tt = /* @__PURE__ */ ((i) => (i.Autosize = "Autosize", i.Traditional = "Traditional", i))(Tt || {}), Y = /* @__PURE__ */ ((i) => (i[i.North = 0] = "North", i[i.Northeast = 1] = "Northeast", i[i.East = 2] = "East", i[i.Southeast = 3] = "Southeast", i[i.South = 4] = "South", i[i.Southwest = 5] = "Southwest", i[i.West = 6] = "West", i[i.Northwest = 7] = "Northwest", i))(Y || {}), Zi = /* @__PURE__ */ ((i) => (i.Pixel = "px", i.Millimeter = "mm", i.Centimeter = "cm", i))(Zi || {});
|
|
29
|
+
class xn extends Error {
|
|
30
30
|
constructor(t) {
|
|
31
31
|
super(t), this.name = this.constructor.name;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class ee extends
|
|
34
|
+
class ee extends xn {
|
|
35
35
|
constructor(t) {
|
|
36
36
|
super(`ConfigurationError - ${t}`);
|
|
37
37
|
}
|
|
@@ -61,7 +61,7 @@ class At extends ee {
|
|
|
61
61
|
super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class Qe extends
|
|
64
|
+
class Qe extends xn {
|
|
65
65
|
constructor(t) {
|
|
66
66
|
super(`ImplementationError - ${t}`);
|
|
67
67
|
}
|
|
@@ -71,7 +71,7 @@ class R extends Qe {
|
|
|
71
71
|
super(`Unhandled Behavior Encountered: ${t}`);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
class
|
|
74
|
+
class xt extends Qe {
|
|
75
75
|
constructor(t) {
|
|
76
76
|
super(`Parsing Error: ${t}`);
|
|
77
77
|
}
|
|
@@ -185,12 +185,12 @@ function nt(i, t) {
|
|
|
185
185
|
}
|
|
186
186
|
return ha(i, t);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const Dn = /* @__PURE__ */ new Map(), Wa = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map(), kn = async (i) => {
|
|
189
189
|
const t = Wa.get(i);
|
|
190
190
|
if (t) return t;
|
|
191
191
|
const a = (async () => {
|
|
192
192
|
const n = await nt(i);
|
|
193
|
-
return
|
|
193
|
+
return Dn.set(i, n.headers?.get("content-type") || ""), await n.arrayBuffer();
|
|
194
194
|
})();
|
|
195
195
|
return Wa.set(i, a), a;
|
|
196
196
|
}, nr = async (i) => {
|
|
@@ -259,7 +259,7 @@ const xn = /* @__PURE__ */ new Map(), Wa = /* @__PURE__ */ new Map(), Ha = /* @_
|
|
|
259
259
|
const e = t();
|
|
260
260
|
return e || "image/svg+xml";
|
|
261
261
|
}, hd = async (i) => {
|
|
262
|
-
const t = await kn(i), e =
|
|
262
|
+
const t = await kn(i), e = Dn.get(i) || $e(t);
|
|
263
263
|
return await cr(new Blob([t], { type: e }));
|
|
264
264
|
}, sr = (i) => {
|
|
265
265
|
let t = "";
|
|
@@ -327,7 +327,7 @@ class fr {
|
|
|
327
327
|
return this.shadowGraphqlClient;
|
|
328
328
|
}
|
|
329
329
|
constructShadowGraphqlClient() {
|
|
330
|
-
const t =
|
|
330
|
+
const t = Di({
|
|
331
331
|
uri: `${yt.getServerUrl()}/graphql`,
|
|
332
332
|
fetch: pr
|
|
333
333
|
}), e = Ni(async (r, o) => {
|
|
@@ -349,8 +349,8 @@ class fr {
|
|
|
349
349
|
const y = window.__SENTRY__.hub;
|
|
350
350
|
if (y) {
|
|
351
351
|
const w = y.traceHeaders();
|
|
352
|
-
Object.entries(w).forEach(([
|
|
353
|
-
l[
|
|
352
|
+
Object.entries(w).forEach(([x, b]) => {
|
|
353
|
+
l[x] = b;
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -414,7 +414,7 @@ function Rn(i) {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
let Ye;
|
|
417
|
-
function
|
|
417
|
+
function xa() {
|
|
418
418
|
return Ye === void 0 && (Ye = rr()), Ye;
|
|
419
419
|
}
|
|
420
420
|
let de = null;
|
|
@@ -3259,7 +3259,7 @@ const ue = (i) => {
|
|
|
3259
3259
|
} catch {
|
|
3260
3260
|
return i.classList.contains(t.substring(1));
|
|
3261
3261
|
}
|
|
3262
|
-
},
|
|
3262
|
+
}, Da = (i, t = !1) => {
|
|
3263
3263
|
!t && i.setAttribute("preserveAspectRatio", "none");
|
|
3264
3264
|
const e = [];
|
|
3265
3265
|
Mt(i, (a) => {
|
|
@@ -3297,11 +3297,11 @@ const ue = (i) => {
|
|
|
3297
3297
|
});
|
|
3298
3298
|
});
|
|
3299
3299
|
});
|
|
3300
|
-
},
|
|
3300
|
+
}, xr = (i) => {
|
|
3301
3301
|
const t = /pt|pc|mm|cm|in/gm, e = i.getAttribute("viewBox"), a = i.getAttribute("width"), n = i.getAttribute("height");
|
|
3302
3302
|
if (!e) throw new Error("viewBox not specified on SVG!");
|
|
3303
3303
|
a && i.setAttribute("width", a.replace(t, "")), n && i.setAttribute("height", n.replace(t, ""));
|
|
3304
|
-
}, Vn = (i) => ht().parseFromString(i, "image/svg+xml").firstElementChild,
|
|
3304
|
+
}, Vn = (i) => ht().parseFromString(i, "image/svg+xml").firstElementChild, Dr = (i, t, e) => {
|
|
3305
3305
|
i.setAttribute("height", `${e}px`), i.setAttribute("width", `${t}px`);
|
|
3306
3306
|
}, Un = (i, t, e) => {
|
|
3307
3307
|
Mt(i, (a) => {
|
|
@@ -3347,7 +3347,7 @@ const ue = (i) => {
|
|
|
3347
3347
|
const r = Vn(i);
|
|
3348
3348
|
if (!r)
|
|
3349
3349
|
throw new Error("Failed to read SVG.");
|
|
3350
|
-
return
|
|
3350
|
+
return Dr(r, t, e), Un(r, a, n), Ln(r);
|
|
3351
3351
|
}, Ma = (i, t, e) => {
|
|
3352
3352
|
const a = Vn(i);
|
|
3353
3353
|
if (!a)
|
|
@@ -3360,7 +3360,7 @@ const ue = (i) => {
|
|
|
3360
3360
|
const e = kr(i).firstElementChild;
|
|
3361
3361
|
if (!e)
|
|
3362
3362
|
throw new Error("Failed to read SVG.");
|
|
3363
|
-
|
|
3363
|
+
Da(e);
|
|
3364
3364
|
const a = {};
|
|
3365
3365
|
Mt(e, (o) => {
|
|
3366
3366
|
if (Br.includes(o.tagName) && !o.attributes.getNamedItem("fill")) {
|
|
@@ -3734,8 +3734,8 @@ class Ur {
|
|
|
3734
3734
|
async postProcessFileUpload(t, e) {
|
|
3735
3735
|
if (e === "image/svg+xml") {
|
|
3736
3736
|
const a = await t.blob.text(), o = new window.DOMParser().parseFromString(a, "image/svg+xml").documentElement;
|
|
3737
|
-
if (!o) throw new
|
|
3738
|
-
|
|
3737
|
+
if (!o) throw new xt("Failed to read SVG.");
|
|
3738
|
+
xr(o);
|
|
3739
3739
|
const l = Pt().serializeToString(o);
|
|
3740
3740
|
return {
|
|
3741
3741
|
name: t.name,
|
|
@@ -5344,11 +5344,11 @@ const N = () => {
|
|
|
5344
5344
|
const h = e || 0, g = 2 * (l?.scale || 1), p = u || { x: 0, y: 0, width: A, height: r }, m = `${p.x} ${p.y} ${p.width} ${p.height}`, f = N(), y = a.purpose === _t.FreeDesign && /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ F("rect", { width: p.width, height: p.height, rx: h }) }) }), w = a.colorProfiles?.map((v, I) => (
|
|
5345
5345
|
/* @ts-ignore */
|
|
5346
5346
|
/* @__PURE__ */ F("color-profile", { name: v.name, xlinkHref: v.key, children: " " }, I)
|
|
5347
|
-
)),
|
|
5347
|
+
)), x = n.map((v) => ({
|
|
5348
5348
|
...v,
|
|
5349
5349
|
_renderingConfiguration: a,
|
|
5350
5350
|
mask: l ? `url(#viewmask-${f})` : void 0
|
|
5351
|
-
})), b = Na(
|
|
5351
|
+
})), b = Na(x);
|
|
5352
5352
|
return /* @__PURE__ */ ut(
|
|
5353
5353
|
"svg",
|
|
5354
5354
|
{
|
|
@@ -5427,10 +5427,10 @@ const N = () => {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
);
|
|
5429
5429
|
}, fd = (i, t, e, a, n) => {
|
|
5430
|
-
const r = vt(n), o = e / 2, s = a / 2, l = i + o, c = t + s, d = Math.sin(r), u = Math.cos(r), A = o, h = o, g = -s, p = s, m = A * u - g * d, f = h * u - p * d, y = A * d + g * u, w = h * d + p * u,
|
|
5430
|
+
const r = vt(n), o = e / 2, s = a / 2, l = i + o, c = t + s, d = Math.sin(r), u = Math.cos(r), A = o, h = o, g = -s, p = s, m = A * u - g * d, f = h * u - p * d, y = A * d + g * u, w = h * d + p * u, x = Math.max(Math.abs(m), Math.abs(f)), b = Math.max(Math.abs(y), Math.abs(w));
|
|
5431
5431
|
return {
|
|
5432
|
-
minX: l -
|
|
5433
|
-
maxX: l +
|
|
5432
|
+
minX: l - x,
|
|
5433
|
+
maxX: l + x,
|
|
5434
5434
|
minY: c - b,
|
|
5435
5435
|
maxY: c + b
|
|
5436
5436
|
};
|
|
@@ -5592,7 +5592,7 @@ const N = () => {
|
|
|
5592
5592
|
const u = i.pattern?.x || 0, A = i.pattern?.y || 0, h = i.pattern?.width || 0, g = i.pattern?.height || 0, p = i.pattern?.scaleX || 1, m = i.pattern?.scaleY || 1, f = i.pattern?.rotation || 0;
|
|
5593
5593
|
return [i.pattern?.svg ? {
|
|
5594
5594
|
id: `${t}-contents`,
|
|
5595
|
-
type:
|
|
5595
|
+
type: D.Illustration,
|
|
5596
5596
|
x: u,
|
|
5597
5597
|
y: A,
|
|
5598
5598
|
rotation: f,
|
|
@@ -5603,7 +5603,7 @@ const N = () => {
|
|
|
5603
5603
|
colors: i.pattern?.colors
|
|
5604
5604
|
} : {
|
|
5605
5605
|
id: `${t}-contents`,
|
|
5606
|
-
type:
|
|
5606
|
+
type: D.Image,
|
|
5607
5607
|
x: u,
|
|
5608
5608
|
y: A,
|
|
5609
5609
|
rotation: f,
|
|
@@ -5726,7 +5726,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5726
5726
|
}, pa = (i, t) => {
|
|
5727
5727
|
const e = new Io(t);
|
|
5728
5728
|
return Zn.set(i, e), e;
|
|
5729
|
-
},
|
|
5729
|
+
}, xd = async (i) => {
|
|
5730
5730
|
const t = ht(), e = t.parseFromString(i, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5731
5731
|
a.querySelectorAll("style").forEach((d) => {
|
|
5732
5732
|
En(d.innerHTML).stylesheet?.rules.forEach((A) => {
|
|
@@ -5740,12 +5740,12 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5740
5740
|
});
|
|
5741
5741
|
const o = e.querySelectorAll("tspan");
|
|
5742
5742
|
for (let d = 0; d < o.length; d++) {
|
|
5743
|
-
const u = o.item(d), A = u.closest("text"), h = u.closest("g"), g = A.getAttribute("font-family"), p = await Qt(n.get(g)), m = Ui(u.innerHTML), f = A.getAttribute("fill"), y = A.getAttribute("stroke"), w = A.getAttribute("stroke-width"),
|
|
5743
|
+
const u = o.item(d), A = u.closest("text"), h = u.closest("g"), g = A.getAttribute("font-family"), p = await Qt(n.get(g)), m = Ui(u.innerHTML), f = A.getAttribute("fill"), y = A.getAttribute("stroke"), w = A.getAttribute("stroke-width"), x = p.getPath(
|
|
5744
5744
|
m,
|
|
5745
5745
|
0,
|
|
5746
5746
|
0,
|
|
5747
5747
|
parseInt(A.getAttribute("font-size") ?? "72")
|
|
5748
|
-
), b =
|
|
5748
|
+
), b = x.getBoundingBox().x2 - x.getBoundingBox().x1;
|
|
5749
5749
|
let v = 0;
|
|
5750
5750
|
const I = u.getAttribute("text-anchor");
|
|
5751
5751
|
I === "middle" ? v = b / 2 : I === "end" && (v = b);
|
|
@@ -5760,7 +5760,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5760
5760
|
h.appendChild(T);
|
|
5761
5761
|
}
|
|
5762
5762
|
return e.querySelectorAll("text").forEach((d) => d.remove()), Pt().serializeToString(a);
|
|
5763
|
-
},
|
|
5763
|
+
}, xe = (i, t, e, a) => Math.max(ko(i.join(`
|
|
5764
5764
|
`), e, a), t), Za = (i, t, e, a, n, r) => {
|
|
5765
5765
|
const o = (r || ai) * n.getApproximateHeight(), s = t.split(`
|
|
5766
5766
|
`);
|
|
@@ -5770,7 +5770,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5770
5770
|
lines: c,
|
|
5771
5771
|
requiredHeight: l.flatMap((d) => d.lines).length * (a * o),
|
|
5772
5772
|
fontSize: e,
|
|
5773
|
-
requiredWidth:
|
|
5773
|
+
requiredWidth: xe(c, i.width, a, n)
|
|
5774
5774
|
};
|
|
5775
5775
|
} catch {
|
|
5776
5776
|
const c = t.split("");
|
|
@@ -5778,7 +5778,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5778
5778
|
lines: c,
|
|
5779
5779
|
requiredHeight: c.length * (a * o),
|
|
5780
5780
|
fontSize: e,
|
|
5781
|
-
requiredWidth:
|
|
5781
|
+
requiredWidth: xe(c, i.width, a, n)
|
|
5782
5782
|
};
|
|
5783
5783
|
}
|
|
5784
5784
|
}, ye = (i, t, e, a) => {
|
|
@@ -5815,7 +5815,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5815
5815
|
}, Fo = (i, t, e, a, n, r) => {
|
|
5816
5816
|
const o = (r ?? ai) * t.getApproximateHeight(), s = 1 / e.unitsPerEm, l = ti(i, s, t), c = i.length * o * s, d = a / l, u = n / c;
|
|
5817
5817
|
return Math.min(u, d);
|
|
5818
|
-
},
|
|
5818
|
+
}, xo = (i, t, e, a) => {
|
|
5819
5819
|
const n = Et(t.fontData.assetUrl), r = n.getFont(), o = t.fontSize / r.unitsPerEm;
|
|
5820
5820
|
if (!e)
|
|
5821
5821
|
return Za(t, i, t.fontSize, o, n, a);
|
|
@@ -5826,17 +5826,17 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5826
5826
|
return {
|
|
5827
5827
|
lines: s,
|
|
5828
5828
|
requiredHeight: t.height,
|
|
5829
|
-
requiredWidth:
|
|
5829
|
+
requiredWidth: xe(s, t.width, o, n),
|
|
5830
5830
|
fontSize: t.fontSize
|
|
5831
5831
|
};
|
|
5832
5832
|
const l = t.width !== e.width != (t.height !== e.height);
|
|
5833
5833
|
return t.lineHeight === e.lineHeight && !l && e.input === i ? {
|
|
5834
5834
|
lines: s,
|
|
5835
5835
|
requiredHeight: t.height,
|
|
5836
|
-
requiredWidth:
|
|
5836
|
+
requiredWidth: xe(s, t.width, o, n),
|
|
5837
5837
|
fontSize: Fo(s, n, r, t.width, t.height, a)
|
|
5838
5838
|
} : Za(t, i, t.fontSize, o, n, a);
|
|
5839
|
-
},
|
|
5839
|
+
}, Do = (i, t, e, a, n) => {
|
|
5840
5840
|
const o = Et(t.assetUrl).getFont();
|
|
5841
5841
|
let s = { ...i };
|
|
5842
5842
|
const l = { ...i }, c = ti(a, e / o.unitsPerEm, Et(t.assetUrl));
|
|
@@ -5868,7 +5868,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5868
5868
|
stripControlCharacters: !0,
|
|
5869
5869
|
vertical: !1,
|
|
5870
5870
|
uppercase: !1
|
|
5871
|
-
},
|
|
5871
|
+
}, De = (i, t = tn) => {
|
|
5872
5872
|
const e = { ...tn, ...t };
|
|
5873
5873
|
let a = i || "";
|
|
5874
5874
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
@@ -5877,7 +5877,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5877
5877
|
...i,
|
|
5878
5878
|
...(() => {
|
|
5879
5879
|
if (i.algorithm === Tt.Traditional) {
|
|
5880
|
-
const n =
|
|
5880
|
+
const n = xo(t, i, e, i.lineHeight);
|
|
5881
5881
|
return {
|
|
5882
5882
|
text: n.lines.join(`
|
|
5883
5883
|
`),
|
|
@@ -5892,7 +5892,7 @@ const Bo = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", Xe = /* @_
|
|
|
5892
5892
|
};
|
|
5893
5893
|
})()
|
|
5894
5894
|
} : i, ai = 1.1;
|
|
5895
|
-
function
|
|
5895
|
+
function Dt(i, t) {
|
|
5896
5896
|
return ni(i, t.getTemplatingContext());
|
|
5897
5897
|
}
|
|
5898
5898
|
function ni(i, t) {
|
|
@@ -6146,7 +6146,7 @@ class $o {
|
|
|
6146
6146
|
return { ...t, transaction: e.apply(a) };
|
|
6147
6147
|
}
|
|
6148
6148
|
}
|
|
6149
|
-
const ii = (i) => i.type ===
|
|
6149
|
+
const ii = (i) => i.type === D.Image ? /* @__PURE__ */ F(_n, { ...i }, i.id) : i.type === D.Frame ? /* @__PURE__ */ F(bo, { ...i }, i.id) : i.type === D.Illustration ? /* @__PURE__ */ F(Oo, { ...i }, i.id) : i.type === D.Textbox ? /* @__PURE__ */ F(No, { ...i }, i.id) : i.type === D.Group ? /* @__PURE__ */ F(Xn, { ...i }, i.id) : null, Ta = (i, t, e) => {
|
|
6150
6150
|
const a = e.renderingConfiguration, n = a?.removeExcludedElements ? t.filter((r) => !r.excludeFromExport) : t;
|
|
6151
6151
|
return /* @__PURE__ */ F(
|
|
6152
6152
|
Eo,
|
|
@@ -6329,7 +6329,7 @@ const pt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6329
6329
|
ignoreDimensions: !1,
|
|
6330
6330
|
createCanvas: St,
|
|
6331
6331
|
createImage: ne,
|
|
6332
|
-
DOMParser:
|
|
6332
|
+
DOMParser: xa(),
|
|
6333
6333
|
fetch: nt
|
|
6334
6334
|
}), A = o.getAttribute("width"), h = o.getAttribute("height"), g = 2048;
|
|
6335
6335
|
if (h && A) {
|
|
@@ -6354,26 +6354,26 @@ const pt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Map(), ta = /* @_
|
|
|
6354
6354
|
rotation: 0,
|
|
6355
6355
|
panelId: i.layoutState.layout.panelId
|
|
6356
6356
|
};
|
|
6357
|
-
if (e && t ===
|
|
6357
|
+
if (e && t === D.Illustration) {
|
|
6358
6358
|
const l = await st(await si(e)), A = ht().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
|
|
6359
6359
|
if (!A) throw new Error("SVG missing viewBox.");
|
|
6360
6360
|
const h = s.height, g = A.split(" "), p = parseFloat(g[2]) || 1, m = parseFloat(g[3]) || 1, f = p / m;
|
|
6361
6361
|
s.height = s.width / f, s.top += (h - s.height) / 2;
|
|
6362
6362
|
}
|
|
6363
|
-
if (e && t ===
|
|
6363
|
+
if (e && t === D.Image) {
|
|
6364
6364
|
const l = s.height, c = await Oe(e), d = await Ve(c), u = d.width / d.height;
|
|
6365
6365
|
s.height = s.width / u, s.top += (l - s.height) / 2;
|
|
6366
6366
|
}
|
|
6367
|
-
if (e && t ===
|
|
6367
|
+
if (e && t === D.Textbox && a?.text && a?.fontScale) {
|
|
6368
6368
|
await Qt(e);
|
|
6369
6369
|
const l = Et(e), c = wt(a.text, a?.fontScale, l);
|
|
6370
6370
|
s.width = Math.min(c, n.width * 0.85), s.left = n.x + n.width / 2 - s.width / 2;
|
|
6371
6371
|
}
|
|
6372
6372
|
return s;
|
|
6373
6373
|
};
|
|
6374
|
-
class
|
|
6374
|
+
class Dd {
|
|
6375
6375
|
static async getFrame(t, e) {
|
|
6376
|
-
const a = await ri(e.region, e.src), n = await ze(a), r = e.region || await zt(t,
|
|
6376
|
+
const a = await ri(e.region, e.src), n = await ze(a), r = e.region || await zt(t, D.Frame);
|
|
6377
6377
|
return {
|
|
6378
6378
|
id: N(),
|
|
6379
6379
|
x: r.left,
|
|
@@ -6388,7 +6388,7 @@ class xd {
|
|
|
6388
6388
|
path: n.path,
|
|
6389
6389
|
dataWidth: n.width,
|
|
6390
6390
|
dataHeight: n.height,
|
|
6391
|
-
type:
|
|
6391
|
+
type: D.Frame,
|
|
6392
6392
|
disablePlaceholder: e.configuration.disablePlaceholder,
|
|
6393
6393
|
focalBlur: e.configuration.focalBlur,
|
|
6394
6394
|
focalBlurStrength: e.configuration.focalBlurStrength,
|
|
@@ -6399,11 +6399,11 @@ class xd {
|
|
|
6399
6399
|
};
|
|
6400
6400
|
}
|
|
6401
6401
|
static async getImage(t, e) {
|
|
6402
|
-
const a = e.region || await zt(t,
|
|
6402
|
+
const a = e.region || await zt(t, D.Image, e.src);
|
|
6403
6403
|
return {
|
|
6404
6404
|
id: N(),
|
|
6405
6405
|
src: e.src,
|
|
6406
|
-
type:
|
|
6406
|
+
type: D.Image,
|
|
6407
6407
|
y: a.top,
|
|
6408
6408
|
x: a.left,
|
|
6409
6409
|
rotation: a.rotation,
|
|
@@ -6419,16 +6419,16 @@ class xd {
|
|
|
6419
6419
|
const { configuration: a, fontSrc: n, designInputStep: r } = e, o = await Qt(n), s = {
|
|
6420
6420
|
assetUrl: n,
|
|
6421
6421
|
name: o.names.fullName.en
|
|
6422
|
-
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6422
|
+
}, l = r?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = De(c, {
|
|
6423
6423
|
vertical: a.vertical,
|
|
6424
6424
|
uppercase: a.uppercase
|
|
6425
|
-
}), u = e.region || await zt(t,
|
|
6425
|
+
}), u = e.region || await zt(t, D.Textbox, n, {
|
|
6426
6426
|
text: d,
|
|
6427
6427
|
fontScale: a.size ? a.size / o.unitsPerEm : void 0
|
|
6428
6428
|
}), A = oe(
|
|
6429
6429
|
{
|
|
6430
6430
|
id: N(),
|
|
6431
|
-
type:
|
|
6431
|
+
type: D.Textbox,
|
|
6432
6432
|
x: u.left,
|
|
6433
6433
|
y: u.top,
|
|
6434
6434
|
width: u.width,
|
|
@@ -6449,7 +6449,7 @@ class xd {
|
|
|
6449
6449
|
input: l
|
|
6450
6450
|
},
|
|
6451
6451
|
d
|
|
6452
|
-
), h =
|
|
6452
|
+
), h = Do(
|
|
6453
6453
|
{ ...u, height: A.height },
|
|
6454
6454
|
s,
|
|
6455
6455
|
A.fontSize,
|
|
@@ -6488,14 +6488,14 @@ class xd {
|
|
|
6488
6488
|
</svg>
|
|
6489
6489
|
`, n = {};
|
|
6490
6490
|
n["spiff-fill-shape"] = { browserValue: e.color };
|
|
6491
|
-
const r = e.region?.item || await zt(t,
|
|
6491
|
+
const r = e.region?.item || await zt(t, D.Illustration), o = N();
|
|
6492
6492
|
return {
|
|
6493
6493
|
stepRegion: e.region?.item,
|
|
6494
6494
|
stepRegionIndex: e.region?.index,
|
|
6495
6495
|
colors: n,
|
|
6496
6496
|
id: o,
|
|
6497
6497
|
svg: a,
|
|
6498
|
-
type:
|
|
6498
|
+
type: D.Illustration,
|
|
6499
6499
|
y: r.top,
|
|
6500
6500
|
x: r.left,
|
|
6501
6501
|
rotation: r.rotation,
|
|
@@ -6507,7 +6507,7 @@ class xd {
|
|
|
6507
6507
|
};
|
|
6508
6508
|
}
|
|
6509
6509
|
static async getIllustration(t, e) {
|
|
6510
|
-
const a = e.region?.item || await zt(t,
|
|
6510
|
+
const a = e.region?.item || await zt(t, D.Illustration, e.src), n = await st(await si(e.src)), r = await te(n.svg), o = N();
|
|
6511
6511
|
return {
|
|
6512
6512
|
cachedObjectURL: r,
|
|
6513
6513
|
stepRegion: e.region?.item,
|
|
@@ -6516,7 +6516,7 @@ class xd {
|
|
|
6516
6516
|
id: o,
|
|
6517
6517
|
src: e.src,
|
|
6518
6518
|
svg: n.svg,
|
|
6519
|
-
type:
|
|
6519
|
+
type: D.Illustration,
|
|
6520
6520
|
y: a.top,
|
|
6521
6521
|
x: a.left,
|
|
6522
6522
|
rotation: a.rotation,
|
|
@@ -6575,7 +6575,7 @@ const L = (i, t) => _(i, t).elements.find((n) => n.id === i), _ = (i, t) => {
|
|
|
6575
6575
|
}
|
|
6576
6576
|
for (const a in i.layouts) {
|
|
6577
6577
|
const n = i.layouts[a].elements.filter(
|
|
6578
|
-
(o) => o.type ===
|
|
6578
|
+
(o) => o.type === D.Illustration
|
|
6579
6579
|
);
|
|
6580
6580
|
for (let o = 0; o < n.length; ++o) {
|
|
6581
6581
|
const s = n[o];
|
|
@@ -6587,7 +6587,7 @@ const L = (i, t) => _(i, t).elements.find((n) => n.id === i), _ = (i, t) => {
|
|
|
6587
6587
|
}
|
|
6588
6588
|
}
|
|
6589
6589
|
const r = i.layouts[a].elements.filter(
|
|
6590
|
-
(o) => o.type ===
|
|
6590
|
+
(o) => o.type === D.Textbox
|
|
6591
6591
|
);
|
|
6592
6592
|
for (let o = 0; o < r.length; ++o) {
|
|
6593
6593
|
const s = r[o];
|
|
@@ -7218,7 +7218,7 @@ class on {
|
|
|
7218
7218
|
throw new At(this.configuration, "Couldn't find an asset for product overlay step");
|
|
7219
7219
|
}
|
|
7220
7220
|
const s = this.evaluateAssetType();
|
|
7221
|
-
if (s ===
|
|
7221
|
+
if (s === D.Image) {
|
|
7222
7222
|
const l = this.configuration.type === E.SilentIllustration ? this.configuration.data.asset?.fileLink : this.product?.overlayImageUrl;
|
|
7223
7223
|
if (!l)
|
|
7224
7224
|
throw new Error("Undefined raster silent step source");
|
|
@@ -7300,7 +7300,7 @@ class on {
|
|
|
7300
7300
|
}
|
|
7301
7301
|
evaluateAssetType() {
|
|
7302
7302
|
const t = this.configuration.type === E.ProductOverlay && this.product?.overlayImageUrl ? this.product.overlayImageUrl.toLowerCase() : this.configuration.data.asset?.fileLink?.toLowerCase().split("?")[0];
|
|
7303
|
-
return t?.startsWith("data:image/png") || t?.endsWith(".jpeg") || t?.endsWith(".jpg") || t?.endsWith(".png") ?
|
|
7303
|
+
return t?.startsWith("data:image/png") || t?.endsWith(".jpeg") || t?.endsWith(".jpg") || t?.endsWith(".png") ? D.Image : (t?.endsWith(".svg") || t?.startsWith("image/svg+xml"), D.Illustration);
|
|
7304
7304
|
}
|
|
7305
7305
|
}
|
|
7306
7306
|
const jo = async (i) => {
|
|
@@ -7421,7 +7421,7 @@ class Yo {
|
|
|
7421
7421
|
stepName: n,
|
|
7422
7422
|
id: c.id,
|
|
7423
7423
|
src: s,
|
|
7424
|
-
type:
|
|
7424
|
+
type: D.Image,
|
|
7425
7425
|
y: d.top,
|
|
7426
7426
|
x: d.left,
|
|
7427
7427
|
width: d.width,
|
|
@@ -7477,7 +7477,7 @@ class ke {
|
|
|
7477
7477
|
void 0,
|
|
7478
7478
|
r || t.data.placeholderImageUrl
|
|
7479
7479
|
);
|
|
7480
|
-
if (t.option.variants?.length !== 0) return null;
|
|
7480
|
+
if (t.option.variants && t.option.variants?.length !== 0) return null;
|
|
7481
7481
|
}
|
|
7482
7482
|
return this.selectVariantCommand(
|
|
7483
7483
|
t,
|
|
@@ -7592,7 +7592,7 @@ class ke {
|
|
|
7592
7592
|
return new H(
|
|
7593
7593
|
{
|
|
7594
7594
|
id: t,
|
|
7595
|
-
type:
|
|
7595
|
+
type: D.Frame,
|
|
7596
7596
|
x: e.left,
|
|
7597
7597
|
y: e.top,
|
|
7598
7598
|
width: e.width,
|
|
@@ -7735,18 +7735,18 @@ class ke {
|
|
|
7735
7735
|
scaleX: y?.zoom || 1,
|
|
7736
7736
|
scaleY: y?.zoom || 1,
|
|
7737
7737
|
rotation: 0
|
|
7738
|
-
} : void 0,
|
|
7738
|
+
} : void 0, x = N(), v = n.getLayouts().find((I) => I.panelId === h.panelId);
|
|
7739
7739
|
if (!v)
|
|
7740
7740
|
throw new J(h);
|
|
7741
7741
|
return {
|
|
7742
|
-
command: this.getCreateElementCommand(
|
|
7742
|
+
command: this.getCreateElementCommand(x, h, g, v, {
|
|
7743
7743
|
frameData: p,
|
|
7744
7744
|
pattern: w,
|
|
7745
7745
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
7746
7746
|
stepName: t.stepName
|
|
7747
7747
|
}),
|
|
7748
7748
|
regionEl: {
|
|
7749
|
-
id:
|
|
7749
|
+
id: x,
|
|
7750
7750
|
region: h,
|
|
7751
7751
|
regionIndex: g
|
|
7752
7752
|
},
|
|
@@ -7832,7 +7832,7 @@ class Jo {
|
|
|
7832
7832
|
src: r.src,
|
|
7833
7833
|
svg: r.svg.svg,
|
|
7834
7834
|
cachedObjectURL: r.objectURL,
|
|
7835
|
-
type:
|
|
7835
|
+
type: D.Illustration,
|
|
7836
7836
|
y: e.top,
|
|
7837
7837
|
x: e.left,
|
|
7838
7838
|
rotation: e.rotation,
|
|
@@ -7987,7 +7987,7 @@ class Jo {
|
|
|
7987
7987
|
throw new Xt(r);
|
|
7988
7988
|
t.mandatory && n.setMandatoryFulfilled(t.stepName, !1);
|
|
7989
7989
|
const s = a.map((m) => new Rt(m.id)), l = await st(await this.getIllustrationBody(o)), c = await te(l.svg), d = (m, f) => {
|
|
7990
|
-
const y = n.getLayouts().find((
|
|
7990
|
+
const y = n.getLayouts().find((x) => x.panelId === m.panelId);
|
|
7991
7991
|
if (!y)
|
|
7992
7992
|
throw new J(m);
|
|
7993
7993
|
const w = N();
|
|
@@ -8013,9 +8013,9 @@ class Jo {
|
|
|
8013
8013
|
const f = r.assetConfiguration?.defaultColorVariants || [];
|
|
8014
8014
|
if (f.length !== 0) {
|
|
8015
8015
|
const y = {};
|
|
8016
|
-
(r.assetConfiguration?.channelNumbers || []).forEach((
|
|
8017
|
-
const b = f.find((v) => v.channelNumber ===
|
|
8018
|
-
b && (y[`${
|
|
8016
|
+
(r.assetConfiguration?.channelNumbers || []).forEach((x) => {
|
|
8017
|
+
const b = f.find((v) => v.channelNumber === x.number);
|
|
8018
|
+
b && (y[`${x.id.replace(/\W/g, "")}`] = { browserValue: b?.variant?.color || "" });
|
|
8019
8019
|
}), await this.changeColors(
|
|
8020
8020
|
t,
|
|
8021
8021
|
m,
|
|
@@ -8024,8 +8024,8 @@ class Jo {
|
|
|
8024
8024
|
);
|
|
8025
8025
|
}
|
|
8026
8026
|
if (t.data.colorPickerEnabled) {
|
|
8027
|
-
const y = await this.availableColors(t, n) || [], w = Object.keys(l.colors),
|
|
8028
|
-
if (
|
|
8027
|
+
const y = await this.availableColors(t, n) || [], w = Object.keys(l.colors), x = y.length === 1 && w.length === 1;
|
|
8028
|
+
if (x) {
|
|
8029
8029
|
const b = y[0], v = w[0];
|
|
8030
8030
|
await this.changeColors(
|
|
8031
8031
|
t,
|
|
@@ -8034,7 +8034,7 @@ class Jo {
|
|
|
8034
8034
|
/* @__PURE__ */ new Map([[v, b.variant.color]])
|
|
8035
8035
|
);
|
|
8036
8036
|
}
|
|
8037
|
-
!
|
|
8037
|
+
!x && f.length === 0 && await this.changeColors(t, m, n, /* @__PURE__ */ new Map());
|
|
8038
8038
|
}
|
|
8039
8039
|
}
|
|
8040
8040
|
};
|
|
@@ -8254,7 +8254,7 @@ class Xo {
|
|
|
8254
8254
|
colors: {},
|
|
8255
8255
|
id: g,
|
|
8256
8256
|
svg: d,
|
|
8257
|
-
type:
|
|
8257
|
+
type: D.Illustration,
|
|
8258
8258
|
y: u.top,
|
|
8259
8259
|
x: u.left,
|
|
8260
8260
|
rotation: u.rotation,
|
|
@@ -8386,7 +8386,7 @@ class Zo {
|
|
|
8386
8386
|
stepRegionIndex: A,
|
|
8387
8387
|
id: p,
|
|
8388
8388
|
src: o,
|
|
8389
|
-
type:
|
|
8389
|
+
type: D.Image,
|
|
8390
8390
|
y: u.top,
|
|
8391
8391
|
x: u.left,
|
|
8392
8392
|
rotation: u.rotation,
|
|
@@ -8607,7 +8607,7 @@ class es {
|
|
|
8607
8607
|
colors: f,
|
|
8608
8608
|
id: y,
|
|
8609
8609
|
svg: m,
|
|
8610
|
-
type:
|
|
8610
|
+
type: D.Illustration,
|
|
8611
8611
|
y: A.top,
|
|
8612
8612
|
x: A.left,
|
|
8613
8613
|
rotation: A.rotation,
|
|
@@ -8930,13 +8930,13 @@ class rs {
|
|
|
8930
8930
|
}
|
|
8931
8931
|
getProcessedInput(t, e, a) {
|
|
8932
8932
|
const n = a ? t : this.injectReplaceableText(t, e);
|
|
8933
|
-
return
|
|
8933
|
+
return De(n, {
|
|
8934
8934
|
vertical: e.vertical,
|
|
8935
8935
|
uppercase: e.uppercase
|
|
8936
8936
|
});
|
|
8937
8937
|
}
|
|
8938
8938
|
updateInputText(t, e, a, n) {
|
|
8939
|
-
const r = n.getStepStorage(a.stepName), o =
|
|
8939
|
+
const r = n.getStepStorage(a.stepName), o = Dt(t, n), s = this.getProcessedInput(o, a.data, r?.customiseAllText ?? !1), l = {
|
|
8940
8940
|
command: void 0,
|
|
8941
8941
|
helperData: {},
|
|
8942
8942
|
errorData: this.getErrorsForText(t, s, a, n)
|
|
@@ -9211,7 +9211,7 @@ class rs {
|
|
|
9211
9211
|
async createTextboxRegions(t, e, a, n, r, o) {
|
|
9212
9212
|
if (!a || !a.regions)
|
|
9213
9213
|
throw new Error("Step data not supplied");
|
|
9214
|
-
const s = r.text || a.defaultText || "", l =
|
|
9214
|
+
const s = r.text || a.defaultText || "", l = Dt(s, o), c = this.getProcessedInput(l, a, !1), d = async (A, h) => {
|
|
9215
9215
|
const p = o.getLayouts().find((f) => f.panelId === A.panelId), m = N();
|
|
9216
9216
|
try {
|
|
9217
9217
|
if (!p)
|
|
@@ -9224,12 +9224,12 @@ class rs {
|
|
|
9224
9224
|
colorProfileAssetKey: f.colorProfile?.key
|
|
9225
9225
|
}));
|
|
9226
9226
|
}
|
|
9227
|
-
const w = await this.getDefaultColor(a),
|
|
9227
|
+
const w = await this.getDefaultColor(a), x = w || "#000000", b = {
|
|
9228
9228
|
stepRegion: A,
|
|
9229
9229
|
stepRegionIndex: h,
|
|
9230
9230
|
stepName: t,
|
|
9231
9231
|
align: this.textAlign(a),
|
|
9232
|
-
fill: r.color ? r.color :
|
|
9232
|
+
fill: r.color ? r.color : x,
|
|
9233
9233
|
fontSize: a.size || ra,
|
|
9234
9234
|
fontData: n,
|
|
9235
9235
|
id: m,
|
|
@@ -9238,7 +9238,7 @@ class rs {
|
|
|
9238
9238
|
rotation: A.rotation,
|
|
9239
9239
|
text: c,
|
|
9240
9240
|
input: s,
|
|
9241
|
-
type:
|
|
9241
|
+
type: D.Textbox,
|
|
9242
9242
|
vertical: a.vertical,
|
|
9243
9243
|
x: A.left,
|
|
9244
9244
|
y: A.top,
|
|
@@ -9309,7 +9309,7 @@ class rs {
|
|
|
9309
9309
|
* @deprecated
|
|
9310
9310
|
*/
|
|
9311
9311
|
async changeInputTextWithRegion(t, e, a, n, r, o, s, l, c, d) {
|
|
9312
|
-
const u = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), A =
|
|
9312
|
+
const u = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), A = Dt(u, o), h = this.getProcessedInput(A, t.data, s), g = o.getRegionElements(t.stepName), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
9313
9313
|
for (const b of g)
|
|
9314
9314
|
if (b.region) {
|
|
9315
9315
|
const [v, I] = ve(
|
|
@@ -9447,7 +9447,7 @@ class hs {
|
|
|
9447
9447
|
A = (u * 100 | 0) / 100;
|
|
9448
9448
|
break;
|
|
9449
9449
|
default:
|
|
9450
|
-
throw new
|
|
9450
|
+
throw new xt("Failed to encode path.");
|
|
9451
9451
|
}
|
|
9452
9452
|
l || o.push(" "), o.push(A), l = !1;
|
|
9453
9453
|
}
|
|
@@ -9461,12 +9461,12 @@ class hs {
|
|
|
9461
9461
|
for (e.lastIndex = 0; r = e.exec(t); ) {
|
|
9462
9462
|
const o = r[1].toLowerCase(), s = (r[2].match(a) || []).map(parseFloat), l = o === r[1], c = sn[o];
|
|
9463
9463
|
if (s.length < c.length)
|
|
9464
|
-
throw new
|
|
9464
|
+
throw new xt(
|
|
9465
9465
|
`Path type "${o}" given ${s.length} arguments, expected ${c.length}.`
|
|
9466
9466
|
);
|
|
9467
9467
|
if (c.length > 0) {
|
|
9468
9468
|
if (s.length % c.length !== 0)
|
|
9469
|
-
throw new
|
|
9469
|
+
throw new xt(
|
|
9470
9470
|
`Path type "${o}" given ${s.length} arguments, not divisible by ${c.length}`
|
|
9471
9471
|
);
|
|
9472
9472
|
for (let d = 0; d < s.length / c.length; d++) {
|
|
@@ -9491,7 +9491,7 @@ class hs {
|
|
|
9491
9491
|
if (s in r && l in r) {
|
|
9492
9492
|
const c = [r[s], r[l]], d = e(c);
|
|
9493
9493
|
if (d.length < 2)
|
|
9494
|
-
throw new
|
|
9494
|
+
throw new xt("Transformer must return at least 2 points.");
|
|
9495
9495
|
r[s] = d[0], r[l] = d[1];
|
|
9496
9496
|
}
|
|
9497
9497
|
}
|
|
@@ -9528,10 +9528,10 @@ class gs extends os {
|
|
|
9528
9528
|
const a = Po(ss), r = t !== "" ? ((w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase())(t) : "", o = a.getPath(r, 0, 72, 72), s = o.toSVG(2), l = o.getBoundingBox(), c = l.x2 - l.x1, d = o.toPathData(3), u = () => {
|
|
9529
9529
|
const w = et("g");
|
|
9530
9530
|
w.classList.add("module-text-group");
|
|
9531
|
-
const
|
|
9532
|
-
w.appendChild(
|
|
9531
|
+
const x = et("defs");
|
|
9532
|
+
w.appendChild(x), x.appendChild(cs(0, 2, 2, "shadow"));
|
|
9533
9533
|
const b = et("path");
|
|
9534
|
-
b.setAttribute("d", d), b.setAttribute("stroke", "black"), b.setAttribute("stroke-width", "3"),
|
|
9534
|
+
b.setAttribute("d", d), b.setAttribute("stroke", "black"), b.setAttribute("stroke-width", "3"), x.appendChild(b);
|
|
9535
9535
|
const v = et("g");
|
|
9536
9536
|
v.classList.add("module-layer0"), w.appendChild(v), v.setAttribute("filter", "url(#shadow)"), v.innerHTML = b.outerHTML;
|
|
9537
9537
|
const I = et("g");
|
|
@@ -9585,7 +9585,7 @@ const ms = [
|
|
|
9585
9585
|
{
|
|
9586
9586
|
id: p,
|
|
9587
9587
|
src: d,
|
|
9588
|
-
type:
|
|
9588
|
+
type: D.Image,
|
|
9589
9589
|
y: h.top,
|
|
9590
9590
|
x: h.left,
|
|
9591
9591
|
width: h.width,
|
|
@@ -9624,7 +9624,7 @@ const ms = [
|
|
|
9624
9624
|
{
|
|
9625
9625
|
id: A,
|
|
9626
9626
|
path: u.path,
|
|
9627
|
-
type:
|
|
9627
|
+
type: D.Frame,
|
|
9628
9628
|
forceImageCover: a.data.forceImageCover,
|
|
9629
9629
|
x: c.left,
|
|
9630
9630
|
y: c.top,
|
|
@@ -9673,7 +9673,7 @@ const ms = [
|
|
|
9673
9673
|
const l = await at(s, !0), c = /<svg.*?<\/svg>/s, d = l.match(c) || [], u = d?.length > 0 ? d[0] : "", g = ht().parseFromString(u, "image/svg+xml").firstElementChild;
|
|
9674
9674
|
if (!g)
|
|
9675
9675
|
return console.error("Failed to read SVG."), [];
|
|
9676
|
-
|
|
9676
|
+
Da(g);
|
|
9677
9677
|
const p = {};
|
|
9678
9678
|
Mt(g, (b) => {
|
|
9679
9679
|
ms.includes(b.tagName) && !b.attributes.getNamedItem("fill") && b.setAttribute("fill", "#000000");
|
|
@@ -9707,7 +9707,7 @@ const ms = [
|
|
|
9707
9707
|
colors: p,
|
|
9708
9708
|
id: I,
|
|
9709
9709
|
svg: f,
|
|
9710
|
-
type:
|
|
9710
|
+
type: D.Illustration,
|
|
9711
9711
|
y: b.top,
|
|
9712
9712
|
x: b.left,
|
|
9713
9713
|
rotation: b.rotation,
|
|
@@ -9719,9 +9719,9 @@ const ms = [
|
|
|
9719
9719
|
},
|
|
9720
9720
|
v
|
|
9721
9721
|
);
|
|
9722
|
-
},
|
|
9722
|
+
}, x = a.data.regions;
|
|
9723
9723
|
try {
|
|
9724
|
-
return
|
|
9724
|
+
return x.map(w);
|
|
9725
9725
|
} catch (b) {
|
|
9726
9726
|
return console.error(b), [];
|
|
9727
9727
|
}
|
|
@@ -9736,7 +9736,7 @@ const ms = [
|
|
|
9736
9736
|
colors: {},
|
|
9737
9737
|
id: d,
|
|
9738
9738
|
svg: s,
|
|
9739
|
-
type:
|
|
9739
|
+
type: D.Illustration,
|
|
9740
9740
|
y: l.top,
|
|
9741
9741
|
x: l.left,
|
|
9742
9742
|
rotation: l.rotation,
|
|
@@ -9777,7 +9777,7 @@ const ms = [
|
|
|
9777
9777
|
{
|
|
9778
9778
|
id: A,
|
|
9779
9779
|
src: s,
|
|
9780
|
-
type:
|
|
9780
|
+
type: D.Image,
|
|
9781
9781
|
y: d.top,
|
|
9782
9782
|
x: d.left,
|
|
9783
9783
|
rotation: d.rotation,
|
|
@@ -9834,7 +9834,7 @@ const ms = [
|
|
|
9834
9834
|
colors: h,
|
|
9835
9835
|
id: g,
|
|
9836
9836
|
svg: u,
|
|
9837
|
-
type:
|
|
9837
|
+
type: D.Illustration,
|
|
9838
9838
|
y: c.top,
|
|
9839
9839
|
x: c.left,
|
|
9840
9840
|
rotation: c.rotation,
|
|
@@ -9853,7 +9853,7 @@ const ms = [
|
|
|
9853
9853
|
return console.error(c), [];
|
|
9854
9854
|
}
|
|
9855
9855
|
}, vs = async (i, t, e) => {
|
|
9856
|
-
const a = [], r = t.type === E.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", s = r.endsWith(".jpeg") || r.endsWith(".jpg") || r.endsWith(".png") ?
|
|
9856
|
+
const a = [], r = t.type === E.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", s = r.endsWith(".jpeg") || r.endsWith(".jpg") || r.endsWith(".png") ? D.Image : (r.endsWith(".svg"), D.Illustration), l = t.data.regions;
|
|
9857
9857
|
if (s === "image")
|
|
9858
9858
|
try {
|
|
9859
9859
|
l.forEach((c) => {
|
|
@@ -9886,8 +9886,8 @@ const ms = [
|
|
|
9886
9886
|
const c = await at(r, !0), d = (u) => {
|
|
9887
9887
|
const A = /<svg.*?<\/svg>/s, h = u.match(A) || [], g = h?.length > 0 ? h[0] : "", f = ht().parseFromString(g, "image/svg+xml").firstElementChild;
|
|
9888
9888
|
if (!f)
|
|
9889
|
-
throw new
|
|
9890
|
-
return
|
|
9889
|
+
throw new xt("Failed to read SVG.");
|
|
9890
|
+
return Da(f), Pt().serializeToString(f);
|
|
9891
9891
|
};
|
|
9892
9892
|
l.forEach((u) => {
|
|
9893
9893
|
const A = i.find((g) => g.panelId === u.panelId);
|
|
@@ -9937,7 +9937,7 @@ const ms = [
|
|
|
9937
9937
|
assetUrl: m,
|
|
9938
9938
|
name: f.names.fullName.en
|
|
9939
9939
|
};
|
|
9940
|
-
})(), u = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", A =
|
|
9940
|
+
})(), u = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", r.text) : r.text) || "", A = De(u, {
|
|
9941
9941
|
vertical: a.data.vertical,
|
|
9942
9942
|
uppercase: a.data.uppercase
|
|
9943
9943
|
}), h = async (m) => {
|
|
@@ -9962,7 +9962,7 @@ const ms = [
|
|
|
9962
9962
|
paths: a.data.paths,
|
|
9963
9963
|
rotation: m.rotation,
|
|
9964
9964
|
text: A,
|
|
9965
|
-
type:
|
|
9965
|
+
type: D.Textbox,
|
|
9966
9966
|
vertical: a.data.vertical,
|
|
9967
9967
|
verticalAlign: a.data.verticalAlign || "middle",
|
|
9968
9968
|
width: m.width,
|
|
@@ -9970,12 +9970,12 @@ const ms = [
|
|
|
9970
9970
|
y: m.top
|
|
9971
9971
|
};
|
|
9972
9972
|
if (d) {
|
|
9973
|
-
const [w,
|
|
9973
|
+
const [w, x] = ve(
|
|
9974
9974
|
a.data.size || o,
|
|
9975
9975
|
d,
|
|
9976
9976
|
m,
|
|
9977
9977
|
[
|
|
9978
|
-
|
|
9978
|
+
De(A, {
|
|
9979
9979
|
vertical: a.data.vertical,
|
|
9980
9980
|
uppercase: a.data.uppercase
|
|
9981
9981
|
})
|
|
@@ -9991,7 +9991,7 @@ const ms = [
|
|
|
9991
9991
|
{
|
|
9992
9992
|
...y,
|
|
9993
9993
|
fontSize: w,
|
|
9994
|
-
text: y.curved ? y.text : (
|
|
9994
|
+
text: y.curved ? y.text : (x || []).join(`
|
|
9995
9995
|
`)
|
|
9996
9996
|
},
|
|
9997
9997
|
f
|
|
@@ -10151,7 +10151,7 @@ class Fs {
|
|
|
10151
10151
|
return;
|
|
10152
10152
|
}
|
|
10153
10153
|
this.renderQueue.enqueue(
|
|
10154
|
-
new
|
|
10154
|
+
new xs(
|
|
10155
10155
|
this.getID(),
|
|
10156
10156
|
a,
|
|
10157
10157
|
await Ps,
|
|
@@ -10164,7 +10164,7 @@ class Fs {
|
|
|
10164
10164
|
);
|
|
10165
10165
|
}
|
|
10166
10166
|
}
|
|
10167
|
-
class
|
|
10167
|
+
class xs extends Jn {
|
|
10168
10168
|
constructor(t, e, a, n, r, o) {
|
|
10169
10169
|
super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = r, this.getWorkflowManager = o;
|
|
10170
10170
|
}
|
|
@@ -10228,7 +10228,7 @@ class Ds extends Jn {
|
|
|
10228
10228
|
enableRedraw: !1,
|
|
10229
10229
|
createCanvas: St,
|
|
10230
10230
|
createImage: ne,
|
|
10231
|
-
DOMParser:
|
|
10231
|
+
DOMParser: xa(),
|
|
10232
10232
|
fetch
|
|
10233
10233
|
});
|
|
10234
10234
|
h.resize(l, c), await h.render(), this.onRender();
|
|
@@ -10275,7 +10275,7 @@ const Vd = (i, t) => {
|
|
|
10275
10275
|
}
|
|
10276
10276
|
}
|
|
10277
10277
|
}
|
|
10278
|
-
`,
|
|
10278
|
+
`, Ds = C`
|
|
10279
10279
|
${Ge}
|
|
10280
10280
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
10281
10281
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
@@ -11068,7 +11068,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11068
11068
|
}
|
|
11069
11069
|
});
|
|
11070
11070
|
else {
|
|
11071
|
-
const
|
|
11071
|
+
const x = await this.graphQlClient().mutate({
|
|
11072
11072
|
mutation: nl,
|
|
11073
11073
|
errorPolicy: "all",
|
|
11074
11074
|
fetchPolicy: "no-cache",
|
|
@@ -11093,7 +11093,7 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11093
11093
|
}
|
|
11094
11094
|
});
|
|
11095
11095
|
w.recipient = {
|
|
11096
|
-
id:
|
|
11096
|
+
id: x?.data?.recipientCreate?.id,
|
|
11097
11097
|
firstName: t,
|
|
11098
11098
|
lastName: e,
|
|
11099
11099
|
address: a,
|
|
@@ -11117,14 +11117,14 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11117
11117
|
fetchPolicy: "no-cache",
|
|
11118
11118
|
variables: {
|
|
11119
11119
|
id: this.experience.getTransaction().id,
|
|
11120
|
-
recipientId:
|
|
11120
|
+
recipientId: x.data?.recipientCreate?.id
|
|
11121
11121
|
},
|
|
11122
11122
|
context: {
|
|
11123
11123
|
transactionOwnerId: this.experience.getTransaction().transactionOwnerId
|
|
11124
11124
|
}
|
|
11125
11125
|
});
|
|
11126
11126
|
}
|
|
11127
|
-
await this.fetchConversionConfiguration(), this.recipientCallbacks.forEach((
|
|
11127
|
+
await this.fetchConversionConfiguration(), this.recipientCallbacks.forEach((x) => x(this.experience.getTransaction().recipient));
|
|
11128
11128
|
}
|
|
11129
11129
|
async fetchConversionConfiguration() {
|
|
11130
11130
|
const t = this.experience.getTransaction().recipient;
|
|
@@ -11648,9 +11648,9 @@ const ul = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11648
11648
|
m?.type === E.Frame && this.getWorkflowExperience().getStepById(m.stepName)?.frameService?.setTargetElements(a.map((I) => I.id));
|
|
11649
11649
|
const f = h.map((v) => new Rt(v.id)), y = new nn(this.constructSerializableWorkflow()), w = [...p, ...f, y];
|
|
11650
11650
|
w.length > 0 && this.commandContext.apply(new V(w), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
11651
|
-
const
|
|
11651
|
+
const x = await this.getInvalidModelVariants(), b = this.modelContainer;
|
|
11652
11652
|
if (b) {
|
|
11653
|
-
const v =
|
|
11653
|
+
const v = x.map(
|
|
11654
11654
|
(I) => b.applyModelVariant(
|
|
11655
11655
|
I,
|
|
11656
11656
|
{
|
|
@@ -12318,7 +12318,7 @@ class wl extends tt {
|
|
|
12318
12318
|
const e = {
|
|
12319
12319
|
input: t,
|
|
12320
12320
|
helperData: {}
|
|
12321
|
-
}, a = j.findLayoutElements(this.manager, this.step), n = j.filterUnsupportedCharacters(t, a[0]?.fontData), r =
|
|
12321
|
+
}, a = j.findLayoutElements(this.manager, this.step), n = j.filterUnsupportedCharacters(t, a[0]?.fontData), r = Dt(n, this.manager).length, o = !!this.step.data && !!this.step.data.maxLength && r > this.step.data.maxLength;
|
|
12322
12322
|
o || (e.input = n);
|
|
12323
12323
|
const s = a.length <= 0, l = s ? { inputText: n, text: n } : { inputText: n };
|
|
12324
12324
|
this.manager.updateStorage(this.step.stepName, l);
|
|
@@ -12394,7 +12394,7 @@ class wl extends tt {
|
|
|
12394
12394
|
const t = this.step.data.maxLength;
|
|
12395
12395
|
if (t === void 0)
|
|
12396
12396
|
return;
|
|
12397
|
-
const e =
|
|
12397
|
+
const e = Dt(this.getText(), this.manager);
|
|
12398
12398
|
return t - e.length;
|
|
12399
12399
|
}
|
|
12400
12400
|
setCustomColor(t) {
|
|
@@ -12478,7 +12478,7 @@ class vl extends tt {
|
|
|
12478
12478
|
const t = this.step.data.maxLength;
|
|
12479
12479
|
if (t === void 0)
|
|
12480
12480
|
return;
|
|
12481
|
-
const e =
|
|
12481
|
+
const e = Dt(this.getText(), this.manager);
|
|
12482
12482
|
return t - e.length;
|
|
12483
12483
|
}
|
|
12484
12484
|
/**
|
|
@@ -12734,10 +12734,10 @@ const Il = async (i, t) => {
|
|
|
12734
12734
|
y[v].map((I) => I.id)
|
|
12735
12735
|
])
|
|
12736
12736
|
);
|
|
12737
|
-
let
|
|
12738
|
-
if (
|
|
12739
|
-
const v = await (await nt(
|
|
12740
|
-
|
|
12737
|
+
let x = await s(A, n.id);
|
|
12738
|
+
if (x) {
|
|
12739
|
+
const v = await (await nt(x)).blob();
|
|
12740
|
+
x = (await W.uploadAsset(
|
|
12741
12741
|
{ name: `${n.id}-preview-image.png`, blob: v },
|
|
12742
12742
|
Ie.Image,
|
|
12743
12743
|
!0,
|
|
@@ -12755,7 +12755,7 @@ const Il = async (i, t) => {
|
|
|
12755
12755
|
workflowId: t.id,
|
|
12756
12756
|
transactionId: n.id,
|
|
12757
12757
|
useThreeDimPreview: !!A,
|
|
12758
|
-
previewImage:
|
|
12758
|
+
previewImage: x
|
|
12759
12759
|
};
|
|
12760
12760
|
if (g) {
|
|
12761
12761
|
const I = [];
|
|
@@ -12834,7 +12834,7 @@ const Il = async (i, t) => {
|
|
|
12834
12834
|
);
|
|
12835
12835
|
});
|
|
12836
12836
|
};
|
|
12837
|
-
class
|
|
12837
|
+
class xl {
|
|
12838
12838
|
constructor() {
|
|
12839
12839
|
this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
|
|
12840
12840
|
}
|
|
@@ -12901,7 +12901,7 @@ class Dl {
|
|
|
12901
12901
|
throw new R("Unexpected storage method requested");
|
|
12902
12902
|
}
|
|
12903
12903
|
}
|
|
12904
|
-
const oa = new
|
|
12904
|
+
const oa = new xl(), Dl = C`
|
|
12905
12905
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
12906
12906
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
12907
12907
|
id
|
|
@@ -13229,7 +13229,7 @@ class Tl {
|
|
|
13229
13229
|
ignoreDimensions: !1,
|
|
13230
13230
|
createCanvas: St,
|
|
13231
13231
|
createImage: ne,
|
|
13232
|
-
DOMParser:
|
|
13232
|
+
DOMParser: xa(),
|
|
13233
13233
|
fetch
|
|
13234
13234
|
})).render();
|
|
13235
13235
|
const y = await this.getCanvasObjectURLAsync(o);
|
|
@@ -13356,7 +13356,7 @@ class Tl {
|
|
|
13356
13356
|
}
|
|
13357
13357
|
async assignCustomerDetails(t) {
|
|
13358
13358
|
const a = (await this.graphQlClient().mutate({
|
|
13359
|
-
mutation:
|
|
13359
|
+
mutation: Dl,
|
|
13360
13360
|
variables: {
|
|
13361
13361
|
id: this.getTransaction().id,
|
|
13362
13362
|
details: t,
|
|
@@ -14337,7 +14337,7 @@ class Gl {
|
|
|
14337
14337
|
}
|
|
14338
14338
|
async createGlobalPropertyState() {
|
|
14339
14339
|
const t = await S.getShadowGraphqlClient().mutate({
|
|
14340
|
-
mutation:
|
|
14340
|
+
mutation: Ds,
|
|
14341
14341
|
variables: {
|
|
14342
14342
|
bundleId: this.bundleId
|
|
14343
14343
|
},
|
|
@@ -16228,7 +16228,7 @@ class Wd {
|
|
|
16228
16228
|
} catch (a) {
|
|
16229
16229
|
throw console.error(a), new ft("Critical - Unable to synchronize workflow state with server.");
|
|
16230
16230
|
}
|
|
16231
|
-
}, this.options = t, this.options.applicationKey && ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 39.1.
|
|
16231
|
+
}, this.options = t, this.options.applicationKey && ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 39.1.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16232
16232
|
}
|
|
16233
16233
|
configure(t) {
|
|
16234
16234
|
yt.setHubUrl(t.hubUrl), yt.setServerUrl(t.serverUrl), yt.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 && hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Gt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16678,15 +16678,15 @@ class Wd {
|
|
|
16678
16678
|
), [y, w] = await Promise.all([
|
|
16679
16679
|
(async () => m.length > 0 ? await hc(m) : [])(),
|
|
16680
16680
|
(async () => f.length > 0 ? await bi(f, e) : [])()
|
|
16681
|
-
]),
|
|
16681
|
+
]), x = new Map(y.map((P) => [P.id, P])), b = new Map(w.map((P) => [P.id, P])), v = p.map(async (P) => {
|
|
16682
16682
|
const { transaction: T, workflowId: U, readOnly: k, index: X } = P, bt = U ? b.get(U) : void 0, gt = t[X];
|
|
16683
16683
|
if (T.integrationProductId) {
|
|
16684
|
-
const it =
|
|
16684
|
+
const it = x.get(T.integrationProductId);
|
|
16685
16685
|
T.integrationProduct = it, T.product = it?.product, T.integrationProduct || console.error("failed to find transaction's product");
|
|
16686
16686
|
}
|
|
16687
16687
|
const se = Q.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map();
|
|
16688
16688
|
!se.get(T.id) && T.transactionOwnerId && (se.set(T.id, T.transactionOwnerId), Q.setMap("transactionOwnerIds", se));
|
|
16689
|
-
const He = se.get(T.id) || void 0,
|
|
16689
|
+
const He = se.get(T.id) || void 0, xi = new oc({
|
|
16690
16690
|
onMutate: () => ({ context: { transactionOwnerId: He, bundleOwnerId: e?.bundleOwnerId } }),
|
|
16691
16691
|
onQuery: () => ({ context: { transactionOwnerId: He, bundleOwnerId: e?.bundleOwnerId } })
|
|
16692
16692
|
}), le = {
|
|
@@ -16699,7 +16699,7 @@ class Wd {
|
|
|
16699
16699
|
...it,
|
|
16700
16700
|
context: { transactionOwnerId: He, bundleOwnerId: e?.bundleOwnerId }
|
|
16701
16701
|
}),
|
|
16702
|
-
graphQlClient: () =>
|
|
16702
|
+
graphQlClient: () => xi,
|
|
16703
16703
|
readOnly: k,
|
|
16704
16704
|
isReloadedTransaction: gt.type === "transaction"
|
|
16705
16705
|
};
|
|
@@ -17744,7 +17744,7 @@ K = { __e: function(i, t, e, a) {
|
|
|
17744
17744
|
throw i;
|
|
17745
17745
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
17746
17746
|
var ot, sa, pn, Pi = [], la = [], fn = K.__b, Cn = K.__r, wn = K.diffed, yn = K.__c, Sn = K.unmount;
|
|
17747
|
-
function
|
|
17747
|
+
function xc() {
|
|
17748
17748
|
for (var i; i = Pi.shift(); )
|
|
17749
17749
|
if (i.__P && i.__H)
|
|
17750
17750
|
try {
|
|
@@ -17764,7 +17764,7 @@ K.__b = function(i) {
|
|
|
17764
17764
|
}, K.diffed = function(i) {
|
|
17765
17765
|
wn && wn(i);
|
|
17766
17766
|
var t = i.__c;
|
|
17767
|
-
t && t.__H && (t.__H.__h.length && (Pi.push(t) !== 1 && pn === K.requestAnimationFrame || ((pn = K.requestAnimationFrame) ||
|
|
17767
|
+
t && t.__H && (t.__H.__h.length && (Pi.push(t) !== 1 && pn === K.requestAnimationFrame || ((pn = K.requestAnimationFrame) || Dc)(xc)), t.__H.__.forEach(function(e) {
|
|
17768
17768
|
e.i && (e.__H = e.i), e.__V !== la && (e.__ = e.__V), e.i = void 0, e.__V = la;
|
|
17769
17769
|
})), sa = ot = null;
|
|
17770
17770
|
}, K.__c = function(i, t) {
|
|
@@ -17791,7 +17791,7 @@ K.__b = function(i) {
|
|
|
17791
17791
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
17792
17792
|
};
|
|
17793
17793
|
var vn = typeof requestAnimationFrame == "function";
|
|
17794
|
-
function
|
|
17794
|
+
function Dc(i) {
|
|
17795
17795
|
var t, e = function() {
|
|
17796
17796
|
clearTimeout(a), vn && cancelAnimationFrame(t), setTimeout(i);
|
|
17797
17797
|
}, a = setTimeout(e, 100);
|
|
@@ -17991,8 +17991,8 @@ export {
|
|
|
17991
17991
|
yl as InformationStepHandle,
|
|
17992
17992
|
gn as IntegrationProduct,
|
|
17993
17993
|
_i as IntegrationType,
|
|
17994
|
-
|
|
17995
|
-
|
|
17994
|
+
Dd as LayoutElementFactory,
|
|
17995
|
+
D as LayoutElementType,
|
|
17996
17996
|
J as LayoutNotFoundError,
|
|
17997
17997
|
_t as LayoutRenderingPurpose,
|
|
17998
17998
|
gl as MaterialStepHandle,
|
|
@@ -18005,7 +18005,7 @@ export {
|
|
|
18005
18005
|
ac as ObjectInputType,
|
|
18006
18006
|
yi as OptionGlobalPropertyHandle,
|
|
18007
18007
|
Be as OptionNotFoundError,
|
|
18008
|
-
|
|
18008
|
+
xt as ParseError,
|
|
18009
18009
|
pl as PictureStepHandle,
|
|
18010
18010
|
Xi as ProductCameraRig,
|
|
18011
18011
|
vi as ProductCollection,
|
|
@@ -18106,7 +18106,7 @@ export {
|
|
|
18106
18106
|
Zd as nameBundle,
|
|
18107
18107
|
tu as nameTransaction,
|
|
18108
18108
|
B as optionService,
|
|
18109
|
-
|
|
18109
|
+
xd as outlineFontsInSvg,
|
|
18110
18110
|
gu as overrideWorkflowExperienceRecipientAddress,
|
|
18111
18111
|
pt as patternImageDataCache,
|
|
18112
18112
|
Q as persistenceService,
|
|
@@ -18118,7 +18118,7 @@ export {
|
|
|
18118
18118
|
an as rehydrateSerializedLayout,
|
|
18119
18119
|
vr as rgbToPms,
|
|
18120
18120
|
Ae as rotateAroundPoint,
|
|
18121
|
-
|
|
18121
|
+
Da as sanitizeSvgTree,
|
|
18122
18122
|
hr as setBearerAuthenticationToken,
|
|
18123
18123
|
Qn as setCanvasModule,
|
|
18124
18124
|
Wt as shapeStepService,
|