@spiffcommerce/core 32.4.0-beta.1204c273-027e-50de-b005-abfcd12ed374 → 32.4.0-beta.14c36723-271f-57c6-a353-2f8323e5450a
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 +0 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +127 -112
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -24,7 +24,7 @@ import hn from "lodash.debounce";
|
|
24
24
|
import "fs";
|
25
25
|
import "path";
|
26
26
|
import Pr from "lodash.omit";
|
27
|
-
var ve = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(ve || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Dr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Dr || {}),
|
27
|
+
var ve = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(ve || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Dr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Dr || {}), jt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(jt || {}), x = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(x || {}), Fr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Fr || {}), mn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(mn || {}), xr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(xr || {}), kr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(kr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Mr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Mr || {}), Ee = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Ee || {}), xt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(xt || {}), W = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(W || {}), Tr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Tr || {});
|
28
28
|
class gn extends Error {
|
29
29
|
constructor(t) {
|
30
30
|
super(t), this.name = this.constructor.name;
|
@@ -40,7 +40,7 @@ class be extends _t {
|
|
40
40
|
super(`Option not Configured: ${t.stepTitle}`), this.optionId = t?.optionId || "N/A";
|
41
41
|
}
|
42
42
|
}
|
43
|
-
class
|
43
|
+
class j extends _t {
|
44
44
|
constructor(t) {
|
45
45
|
super(`Panel not Found: ${t.panelId}`), this.panelId = t?.panelId || "N/A";
|
46
46
|
}
|
@@ -50,7 +50,7 @@ class Et extends _t {
|
|
50
50
|
super(`Asset not found for variant: ${t.name}`), this.variant = t;
|
51
51
|
}
|
52
52
|
}
|
53
|
-
class
|
53
|
+
class Ht extends _t {
|
54
54
|
constructor(t) {
|
55
55
|
super(`Resource not found for asset: ${t.name}`), this.asset = t;
|
56
56
|
}
|
@@ -166,7 +166,7 @@ let ra, ia;
|
|
166
166
|
function qc(n) {
|
167
167
|
ra = n;
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function jc(n) {
|
170
170
|
ia = n;
|
171
171
|
}
|
172
172
|
function Xt() {
|
@@ -257,7 +257,7 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
|
|
257
257
|
}
|
258
258
|
const e = t();
|
259
259
|
return e || "image/svg+xml";
|
260
|
-
},
|
260
|
+
}, Hc = async (n) => {
|
261
261
|
const t = await fn(n), e = pn.get(n) || Qe(t);
|
262
262
|
return await Gr(new Blob([t], { type: e }));
|
263
263
|
}, Vr = (n) => {
|
@@ -291,9 +291,9 @@ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
|
|
291
291
|
let Wr, fa;
|
292
292
|
const qr = (n) => {
|
293
293
|
fa = n;
|
294
|
-
},
|
294
|
+
}, jr = () => fa;
|
295
295
|
let yn;
|
296
|
-
const
|
296
|
+
const Hr = (n) => {
|
297
297
|
yn = n;
|
298
298
|
}, Yr = () => new Promise((n) => {
|
299
299
|
const t = gt.getHubUrl(), e = (a) => {
|
@@ -3620,8 +3620,8 @@ class wi {
|
|
3620
3620
|
const e = t.key;
|
3621
3621
|
if (this.bgrmProcessCache.has(e))
|
3622
3622
|
return this.bgrmProcessCache.get(e);
|
3623
|
-
if (
|
3624
|
-
const i = this.getLocalOrFromServer(
|
3623
|
+
if (H.has(e)) {
|
3624
|
+
const i = this.getLocalOrFromServer(H.get(e));
|
3625
3625
|
return this.bgrmProcessCache.set(e, i), i;
|
3626
3626
|
}
|
3627
3627
|
const r = (async () => {
|
@@ -3635,7 +3635,7 @@ class wi {
|
|
3635
3635
|
});
|
3636
3636
|
if (this.bgrmProcessCache.delete(e), !i.data?.assetRemoveBackground?.key)
|
3637
3637
|
throw new Error("Failed to remove background from image");
|
3638
|
-
return At.add(i.data.assetRemoveBackground),
|
3638
|
+
return At.add(i.data.assetRemoveBackground), H.add(e, i.data.assetRemoveBackground.key), this.cache.set(
|
3639
3639
|
i.data.assetRemoveBackground.key,
|
3640
3640
|
Promise.resolve(i.data.assetRemoveBackground)
|
3641
3641
|
), i.data.assetRemoveBackground;
|
@@ -3643,7 +3643,7 @@ class wi {
|
|
3643
3643
|
return this.bgrmProcessCache.set(e, r), r;
|
3644
3644
|
}
|
3645
3645
|
removePersistedAsset(t) {
|
3646
|
-
At.remove(t),
|
3646
|
+
At.remove(t), H.delete(t), H.deleteForBgRemovedKey(t);
|
3647
3647
|
}
|
3648
3648
|
getPersistedAssets() {
|
3649
3649
|
return At.list();
|
@@ -3750,30 +3750,30 @@ const Qt = "persistentAssets", lt = class lt {
|
|
3750
3750
|
lt.callbacks = [];
|
3751
3751
|
let At = lt;
|
3752
3752
|
const Va = "bgrmPersistentAssets";
|
3753
|
-
class
|
3753
|
+
class H {
|
3754
3754
|
static has(t) {
|
3755
|
-
return
|
3755
|
+
return H.getMap().has(t);
|
3756
3756
|
}
|
3757
3757
|
static get(t) {
|
3758
|
-
return
|
3758
|
+
return H.getMap().get(t);
|
3759
3759
|
}
|
3760
3760
|
static keys() {
|
3761
|
-
return
|
3761
|
+
return H.getMap().keys();
|
3762
3762
|
}
|
3763
3763
|
static values() {
|
3764
|
-
return
|
3764
|
+
return H.getMap().values();
|
3765
3765
|
}
|
3766
3766
|
static add(t, e) {
|
3767
|
-
const a =
|
3768
|
-
a.set(t, e),
|
3767
|
+
const a = H.getMap();
|
3768
|
+
a.set(t, e), H.setMap(a);
|
3769
3769
|
}
|
3770
3770
|
static delete(t) {
|
3771
|
-
const e =
|
3772
|
-
e.delete(t),
|
3771
|
+
const e = H.getMap();
|
3772
|
+
e.delete(t), H.setMap(e);
|
3773
3773
|
}
|
3774
3774
|
static deleteForBgRemovedKey(t) {
|
3775
|
-
const e =
|
3776
|
-
a && (e.delete(a),
|
3775
|
+
const e = H.getMap(), a = Array.from(e.keys()).find((r) => e.get(r) === t);
|
3776
|
+
a && (e.delete(a), H.setMap(e));
|
3777
3777
|
}
|
3778
3778
|
static getMap() {
|
3779
3779
|
return k.getMap(Va) || /* @__PURE__ */ new Map();
|
@@ -5121,7 +5121,7 @@ const q = new Ii(), Dn = C`
|
|
5121
5121
|
...MarketplaceThemeInstallConfigurationFields
|
5122
5122
|
}
|
5123
5123
|
}
|
5124
|
-
`,
|
5124
|
+
`, ji = C`
|
5125
5125
|
${Dn}
|
5126
5126
|
${Oe}
|
5127
5127
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
@@ -5134,7 +5134,7 @@ const q = new Ii(), Dn = C`
|
|
5134
5134
|
...ActiveIntegrationFields
|
5135
5135
|
}
|
5136
5136
|
}
|
5137
|
-
`,
|
5137
|
+
`, Hi = C`
|
5138
5138
|
${Oe}
|
5139
5139
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
5140
5140
|
transactions(ids: [$id]) {
|
@@ -5348,7 +5348,7 @@ const M = () => {
|
|
5348
5348
|
viewBox: A,
|
5349
5349
|
width: u
|
5350
5350
|
}) => {
|
5351
|
-
const h = e || 0, m = 2 * (l?.scale || 1), p = A || { x: 0, y: 0, width: u, height: i }, g = `${p.x} ${p.y} ${p.width} ${p.height}`, f = M(), w = a.purpose ===
|
5351
|
+
const h = e || 0, m = 2 * (l?.scale || 1), p = A || { x: 0, y: 0, width: u, height: i }, g = `${p.x} ${p.y} ${p.width} ${p.height}`, f = M(), w = a.purpose === jt.FreeDesign && /* @__PURE__ */ D("defs", { children: /* @__PURE__ */ D("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ D("rect", { width: p.width, height: p.height, rx: h }) }) }), I = a.colorProfiles?.map((S, B) => (
|
5352
5352
|
/* @ts-ignore */
|
5353
5353
|
/* @__PURE__ */ D("color-profile", { name: S.name, xlinkHref: S.key, children: " " }, B)
|
5354
5354
|
)), P = r.map((S) => ({
|
@@ -5391,7 +5391,7 @@ const M = () => {
|
|
5391
5391
|
"g",
|
5392
5392
|
{
|
5393
5393
|
id: "element-group",
|
5394
|
-
clipPath: a.purpose ===
|
5394
|
+
clipPath: a.purpose === jt.FreeDesign ? "url(#viewboxClip)" : void 0,
|
5395
5395
|
children: y.map((S) => zn(S)).filter((S) => !!S)
|
5396
5396
|
}
|
5397
5397
|
),
|
@@ -6143,7 +6143,7 @@ class fo {
|
|
6143
6143
|
layouts: {}
|
6144
6144
|
};
|
6145
6145
|
t.forEach((r) => {
|
6146
|
-
a = new
|
6146
|
+
a = new jn(r).apply(a);
|
6147
6147
|
}), this.runStateCallbacks(), this.state = {
|
6148
6148
|
transaction: a
|
6149
6149
|
};
|
@@ -6201,7 +6201,7 @@ const ne = (n) => {
|
|
6201
6201
|
if (n.defaultVariant !== void 0)
|
6202
6202
|
return t.find((e) => e.id === n.defaultVariant);
|
6203
6203
|
}
|
6204
|
-
}, ut = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(),
|
6204
|
+
}, ut = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map(), Gn = async (n, t) => {
|
6205
6205
|
if (!t) {
|
6206
6206
|
if (!n) throw new Error("No region or src supplied. Cannot construct frame!");
|
6207
6207
|
return ca(n);
|
@@ -6223,8 +6223,8 @@ const ne = (n) => {
|
|
6223
6223
|
throw new Error(`No asset for variant with ID: ${n.frameVariantId}`);
|
6224
6224
|
return e;
|
6225
6225
|
}, $e = async (n) => {
|
6226
|
-
if (
|
6227
|
-
return
|
6226
|
+
if (je.has(n))
|
6227
|
+
return je.get(n);
|
6228
6228
|
const e = (async () => {
|
6229
6229
|
if (Lt.has(n))
|
6230
6230
|
return Lt.get(n);
|
@@ -6260,7 +6260,7 @@ const ne = (n) => {
|
|
6260
6260
|
}
|
6261
6261
|
throw new Error("Malformed frame SVG");
|
6262
6262
|
})();
|
6263
|
-
return
|
6263
|
+
return je.set(n, e), e;
|
6264
6264
|
}, Ia = (n, t, e, a) => {
|
6265
6265
|
const r = t.width / t.height, i = n.width / n.height;
|
6266
6266
|
let o;
|
@@ -6321,9 +6321,9 @@ const ne = (n) => {
|
|
6321
6321
|
at(n).then((e) => {
|
6322
6322
|
t(e);
|
6323
6323
|
}).catch((e) => console.error(e));
|
6324
|
-
}),
|
6325
|
-
if (
|
6326
|
-
return
|
6324
|
+
}), He = /* @__PURE__ */ new Map(), Kt = async (n) => {
|
6325
|
+
if (He.has(n))
|
6326
|
+
return He.get(n);
|
6327
6327
|
const t = async (r) => new Promise((i, o) => {
|
6328
6328
|
try {
|
6329
6329
|
if (!(!!URL && !!URL.createObjectURL)) throw new Error("Environment incapable of generating ObjectURL");
|
@@ -6354,7 +6354,7 @@ const ne = (n) => {
|
|
6354
6354
|
A.resize(m, m);
|
6355
6355
|
return await A.render(), await t(c);
|
6356
6356
|
})();
|
6357
|
-
return
|
6357
|
+
return He.set(n, a), a;
|
6358
6358
|
}, $t = async (n, t, e, a) => {
|
6359
6359
|
const r = n.layoutState.layout.useEditableArea && n.layoutState.layout.editableArea || {
|
6360
6360
|
width: n.layoutState.layout.width,
|
@@ -6618,7 +6618,7 @@ class Q {
|
|
6618
6618
|
this.oldState = t;
|
6619
6619
|
}
|
6620
6620
|
}
|
6621
|
-
class
|
6621
|
+
class ja extends Q {
|
6622
6622
|
constructor(t) {
|
6623
6623
|
super(), this.serializableWorkflow = t;
|
6624
6624
|
}
|
@@ -6713,7 +6713,7 @@ class O extends Q {
|
|
6713
6713
|
return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
|
6714
6714
|
}
|
6715
6715
|
}
|
6716
|
-
class
|
6716
|
+
class jn extends Q {
|
6717
6717
|
constructor(t) {
|
6718
6718
|
super(), this.layout = t;
|
6719
6719
|
}
|
@@ -6880,7 +6880,7 @@ class yo extends Q {
|
|
6880
6880
|
};
|
6881
6881
|
}
|
6882
6882
|
}
|
6883
|
-
class
|
6883
|
+
class Ha extends Q {
|
6884
6884
|
constructor(t, e) {
|
6885
6885
|
super(), this.id = t, this.fontData = e;
|
6886
6886
|
}
|
@@ -7223,7 +7223,7 @@ class Ya {
|
|
7223
7223
|
this.processRegion = async (r) => {
|
7224
7224
|
const i = this.layouts.find((l) => l.panelId === r.panelId);
|
7225
7225
|
if (!i)
|
7226
|
-
throw new
|
7226
|
+
throw new j(r);
|
7227
7227
|
let o = "";
|
7228
7228
|
if (this.configuration.type === E.ProductOverlay) {
|
7229
7229
|
let l = "";
|
@@ -7306,7 +7306,7 @@ class Ya {
|
|
7306
7306
|
} else return this.configuration.type === E.ProductOverlay ? Promise.all(
|
7307
7307
|
this.configuration.data.regions.map((t) => {
|
7308
7308
|
if (!this.layouts.find((a) => t.panelId === a.panelId))
|
7309
|
-
throw new
|
7309
|
+
throw new j(t);
|
7310
7310
|
return this.processRegion(t);
|
7311
7311
|
})
|
7312
7312
|
) : Promise.reject("Unknown silent step. This is a bug");
|
@@ -7330,7 +7330,7 @@ const Bo = async (n) => {
|
|
7330
7330
|
throw console.error(e), new Te("Failed to shorten URL, see console.");
|
7331
7331
|
}
|
7332
7332
|
};
|
7333
|
-
class
|
7333
|
+
class Hn {
|
7334
7334
|
async poll() {
|
7335
7335
|
try {
|
7336
7336
|
if (await this.predicate()) {
|
@@ -7375,12 +7375,12 @@ class Po {
|
|
7375
7375
|
const h = (await Be([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
|
7376
7376
|
return { asset: h, link: m };
|
7377
7377
|
}, o = await new Promise((h, m) => {
|
7378
|
-
new
|
7378
|
+
new Hn(
|
7379
7379
|
async () => !!(await i()).link,
|
7380
7380
|
async () => {
|
7381
7381
|
const p = await i();
|
7382
7382
|
if (!p.link || !p.link)
|
7383
|
-
throw new
|
7383
|
+
throw new Ht(p.asset);
|
7384
7384
|
h({
|
7385
7385
|
rel: "mpeg4",
|
7386
7386
|
href: p.link
|
@@ -7418,7 +7418,7 @@ class Po {
|
|
7418
7418
|
const i = a.getLayouts(), s = `data:image/svg+xml;base64,${btoa(await un(t, { type: "svg" }))}`, l = e.map((c) => {
|
7419
7419
|
const d = c.region, A = i.find((u) => u.panelId === d?.panelId);
|
7420
7420
|
if (!A && d)
|
7421
|
-
throw new
|
7421
|
+
throw new j(d);
|
7422
7422
|
if (A && !d)
|
7423
7423
|
throw new Error("Region not found");
|
7424
7424
|
if (!A || !d)
|
@@ -7455,7 +7455,7 @@ class Fe {
|
|
7455
7455
|
const r = a.fileLink;
|
7456
7456
|
if (r)
|
7457
7457
|
return at(r, !0);
|
7458
|
-
throw new
|
7458
|
+
throw new Ht(a);
|
7459
7459
|
};
|
7460
7460
|
}
|
7461
7461
|
async init(t, e, a) {
|
@@ -7558,7 +7558,7 @@ class Fe {
|
|
7558
7558
|
const s = e.fileLink || "";
|
7559
7559
|
return s.endsWith(".pdf") || s.endsWith(".eps") || s.endsWith(".ai") ? new Promise((l) => {
|
7560
7560
|
a.addPoller(
|
7561
|
-
new
|
7561
|
+
new Hn(
|
7562
7562
|
async () => {
|
7563
7563
|
const d = (await $.getFromServer(e.key || "")).versions?.find((u) => u.name === "svg");
|
7564
7564
|
return d ? (await nt(d.link)).status === 200 : !1;
|
@@ -7735,7 +7735,7 @@ class Fe {
|
|
7735
7735
|
rotation: 0
|
7736
7736
|
} : void 0, P = M(), S = r.getLayouts().find((B) => B.panelId === h.panelId);
|
7737
7737
|
if (!S)
|
7738
|
-
throw new
|
7738
|
+
throw new j(h);
|
7739
7739
|
return {
|
7740
7740
|
command: this.getCreateElementCommand(P, h, S, {
|
7741
7741
|
frameData: p,
|
@@ -7779,7 +7779,7 @@ class Fe {
|
|
7779
7779
|
const a = t.fileLink;
|
7780
7780
|
if (a)
|
7781
7781
|
return a;
|
7782
|
-
throw new
|
7782
|
+
throw new Ht(t);
|
7783
7783
|
}
|
7784
7784
|
async loadPatternFromAsset(t, e, a, r) {
|
7785
7785
|
const i = Fe.patternSource(t), o = a.markUpdatePending(), s = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
|
@@ -7973,11 +7973,11 @@ class Do {
|
|
7973
7973
|
throw new Et(e);
|
7974
7974
|
const l = s.fileLink;
|
7975
7975
|
if (!l)
|
7976
|
-
throw new
|
7976
|
+
throw new Ht(s);
|
7977
7977
|
const c = await st(await this.getIllustrationBody(l)), d = await Kt(c.svg), A = (f) => {
|
7978
7978
|
const w = i.getLayouts().find((P) => P.panelId === f.panelId);
|
7979
7979
|
if (!w)
|
7980
|
-
throw new
|
7980
|
+
throw new j(f);
|
7981
7981
|
const I = M();
|
7982
7982
|
return {
|
7983
7983
|
regionElement: { id: I, region: f },
|
@@ -8361,7 +8361,7 @@ class Mo {
|
|
8361
8361
|
const l = a.getRegionElements(t.stepName).map((A) => new Tt(A.id)), c = (A) => {
|
8362
8362
|
const h = a.getLayouts().find((p) => p.panelId === A.panelId);
|
8363
8363
|
if (!h)
|
8364
|
-
throw new
|
8364
|
+
throw new j(A);
|
8365
8365
|
const m = M();
|
8366
8366
|
return {
|
8367
8367
|
regionElement: { id: m, region: A },
|
@@ -8473,7 +8473,7 @@ class No {
|
|
8473
8473
|
setCustomColor(t, e, a) {
|
8474
8474
|
const r = a.getLayouts(), o = (a.getRegionElements(e.stepName) || []).map((s) => {
|
8475
8475
|
const l = s.region;
|
8476
|
-
if (!r.find((d) => d.panelId === l?.panelId)) throw new
|
8476
|
+
if (!r.find((d) => d.panelId === l?.panelId)) throw new j(l);
|
8477
8477
|
return new Aa(s.id, this.shapeFillId, t);
|
8478
8478
|
}).filter((s) => !!s);
|
8479
8479
|
a.getCommandDispatcher()(new O(o)), a.updateStorage(e.stepName, { colour: t });
|
@@ -8538,7 +8538,7 @@ class No {
|
|
8538
8538
|
const l = (d) => {
|
8539
8539
|
const A = d.region;
|
8540
8540
|
if (!i.find((m) => m.panelId === A?.panelId))
|
8541
|
-
throw new
|
8541
|
+
throw new j(A);
|
8542
8542
|
const h = s();
|
8543
8543
|
return new Aa(d.id, this.shapeFillId, h);
|
8544
8544
|
}, c = a.map(l).filter((d) => !!d);
|
@@ -8556,7 +8556,7 @@ class No {
|
|
8556
8556
|
const l = (u) => {
|
8557
8557
|
const h = i.find((w) => w.panelId === u.panelId);
|
8558
8558
|
if (!h)
|
8559
|
-
throw new
|
8559
|
+
throw new j(u);
|
8560
8560
|
const m = s(), p = `
|
8561
8561
|
<svg
|
8562
8562
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -8997,7 +8997,7 @@ class $o {
|
|
8997
8997
|
u,
|
8998
8998
|
async () => {
|
8999
8999
|
e.updateMetadata(t.stepName, { color: h, text: m }), e.updateStorage(t.stepName, { text: m, inputText: m });
|
9000
|
-
const g = s.map((w) => new
|
9000
|
+
const g = s.map((w) => new Ha(w.id, A)), f = new O(g);
|
9001
9001
|
e.getCommandDispatcher()(f);
|
9002
9002
|
}
|
9003
9003
|
), s.length === 0 && l) {
|
@@ -9090,7 +9090,7 @@ class $o {
|
|
9090
9090
|
throw new Et(t);
|
9091
9091
|
const a = e.fileLink;
|
9092
9092
|
if (!a)
|
9093
|
-
throw new
|
9093
|
+
throw new Ht(e);
|
9094
9094
|
const r = await Mt(a);
|
9095
9095
|
return {
|
9096
9096
|
assetUrl: a,
|
@@ -9100,7 +9100,7 @@ class $o {
|
|
9100
9100
|
async selectVariantCommand(t, e, a, r, i, o, s, l, c) {
|
9101
9101
|
const d = i.markUpdatePending(), A = await this.fontDataFromVariant(e);
|
9102
9102
|
if (r.length > 0) {
|
9103
|
-
const u = r.map((p) => new
|
9103
|
+
const u = r.map((p) => new Ha(p.id, A));
|
9104
9104
|
if (l) {
|
9105
9105
|
const p = r.map((g) => new Ye(g.id, l));
|
9106
9106
|
u.push(...p);
|
@@ -9372,7 +9372,7 @@ const Ja = {
|
|
9372
9372
|
t: ["x", "y"],
|
9373
9373
|
a: ["rx", "ry", "xRotation", "largeArc", "sweep", "x", "y"]
|
9374
9374
|
};
|
9375
|
-
class
|
9375
|
+
class jo {
|
9376
9376
|
constructor(t) {
|
9377
9377
|
const e = Array.from(t.querySelectorAll("path"));
|
9378
9378
|
this.paths = e.map((a) => {
|
@@ -9470,7 +9470,7 @@ class Ho {
|
|
9470
9470
|
}
|
9471
9471
|
}
|
9472
9472
|
}
|
9473
|
-
class
|
9473
|
+
class Ho extends Uo {
|
9474
9474
|
constructor() {
|
9475
9475
|
super(...arguments), this.moduleName = "Vegemite";
|
9476
9476
|
}
|
@@ -9495,7 +9495,7 @@ class jo extends Uo {
|
|
9495
9495
|
const b = et("g");
|
9496
9496
|
b.classList.add("module-layer2"), I.appendChild(b), b.setAttribute("fill", "rgb(255,209,0)"), b.setAttribute("transform", "translate(1,-0.1)"), b.innerHTML = s;
|
9497
9497
|
const F = et("g");
|
9498
|
-
return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = s, new
|
9498
|
+
return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = s, new jo(I).transform(([N, Z]) => [N, Z + (c / 2 - N) ** 2 / (c * 6)]), I;
|
9499
9499
|
}, u = et("g");
|
9500
9500
|
u.classList.add("module-root");
|
9501
9501
|
const h = et("defs");
|
@@ -9514,7 +9514,7 @@ class jo extends Uo {
|
|
9514
9514
|
}
|
9515
9515
|
async function tr(n) {
|
9516
9516
|
if (n === "Vegemite")
|
9517
|
-
return new
|
9517
|
+
return new Ho();
|
9518
9518
|
throw new T(`Failed to resolve Module, Module ${n} not found`);
|
9519
9519
|
}
|
9520
9520
|
const Yo = [
|
@@ -9535,7 +9535,7 @@ const Yo = [
|
|
9535
9535
|
const l = s.toString(), d = `data:image/svg+xml;base64,${$a(await un(l, { type: "svg" }))}`, A = (h) => {
|
9536
9536
|
const m = n.find((g) => g.panelId === h.panelId);
|
9537
9537
|
if (!m)
|
9538
|
-
throw new
|
9538
|
+
throw new j(h);
|
9539
9539
|
const p = M();
|
9540
9540
|
return new z(
|
9541
9541
|
{
|
@@ -9564,7 +9564,7 @@ const Yo = [
|
|
9564
9564
|
const l = async (c) => {
|
9565
9565
|
const d = await Gn(c, s?.asset?.fileLink), A = await $e(d), u = M(), h = n.find((p) => p.panelId === c.panelId);
|
9566
9566
|
if (!h)
|
9567
|
-
throw new
|
9567
|
+
throw new j(c);
|
9568
9568
|
const m = Ia(
|
9569
9569
|
o,
|
9570
9570
|
A,
|
@@ -9656,7 +9656,7 @@ const Yo = [
|
|
9656
9656
|
const I = (y) => {
|
9657
9657
|
const S = n.find((b) => b.panelId === y.panelId);
|
9658
9658
|
if (!S)
|
9659
|
-
throw new
|
9659
|
+
throw new j(y);
|
9660
9660
|
const B = M();
|
9661
9661
|
return new z(
|
9662
9662
|
{
|
@@ -9685,7 +9685,7 @@ const Yo = [
|
|
9685
9685
|
const a = await tr(e.data.module), r = t.data, i = (s, l) => {
|
9686
9686
|
const c = n.find((A) => A.panelId === l.panelId);
|
9687
9687
|
if (!c)
|
9688
|
-
throw new
|
9688
|
+
throw new j(l);
|
9689
9689
|
const d = M();
|
9690
9690
|
return new z(
|
9691
9691
|
{
|
@@ -9727,7 +9727,7 @@ const Yo = [
|
|
9727
9727
|
const l = (d) => {
|
9728
9728
|
const A = n.find((h) => h.panelId === d.panelId);
|
9729
9729
|
if (!A)
|
9730
|
-
throw new
|
9730
|
+
throw new j(d);
|
9731
9731
|
const u = M();
|
9732
9732
|
return new z(
|
9733
9733
|
{
|
@@ -9763,7 +9763,7 @@ const Yo = [
|
|
9763
9763
|
const s = (c) => {
|
9764
9764
|
const d = n.find((p) => p.panelId === c.panelId);
|
9765
9765
|
if (!d)
|
9766
|
-
throw new
|
9766
|
+
throw new j(c);
|
9767
9767
|
const A = `
|
9768
9768
|
<svg
|
9769
9769
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -9815,7 +9815,7 @@ const Yo = [
|
|
9815
9815
|
l.forEach((c) => {
|
9816
9816
|
const d = n.find((u) => u.panelId === c.panelId);
|
9817
9817
|
if (!d)
|
9818
|
-
throw new
|
9818
|
+
throw new j(c);
|
9819
9819
|
const A = {
|
9820
9820
|
id: M(),
|
9821
9821
|
src: i,
|
@@ -9848,7 +9848,7 @@ const Yo = [
|
|
9848
9848
|
l.forEach((A) => {
|
9849
9849
|
const u = n.find((m) => m.panelId === A.panelId);
|
9850
9850
|
if (!u)
|
9851
|
-
throw new
|
9851
|
+
throw new j(A);
|
9852
9852
|
const h = {
|
9853
9853
|
id: M(),
|
9854
9854
|
src: i,
|
@@ -10181,7 +10181,7 @@ class cs extends Tn {
|
|
10181
10181
|
l = i.width, c = i.height;
|
10182
10182
|
const d = this.getWorkflowManager?.()?.getTemplatingContext(), A = Ea(t.layoutState.layout, e, {
|
10183
10183
|
renderingConfiguration: {
|
10184
|
-
purpose:
|
10184
|
+
purpose: jt.ThreeD,
|
10185
10185
|
templatingContext: d
|
10186
10186
|
}
|
10187
10187
|
}), u = Cn(A), h = await ma.from(this.ctx, u, {
|
@@ -10215,7 +10215,7 @@ const wd = (n, t) => {
|
|
10215
10215
|
serializableWorkflow: { steps: [] },
|
10216
10216
|
layouts: {}
|
10217
10217
|
};
|
10218
|
-
r = new O(e.map((l) => new
|
10218
|
+
r = new O(e.map((l) => new jn(l))).apply(r);
|
10219
10219
|
const o = await rs(n, t, e, a);
|
10220
10220
|
return new O(o).apply(r);
|
10221
10221
|
}, re = C`
|
@@ -10974,17 +10974,19 @@ const zs = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
10974
10974
|
class Ws {
|
10975
10975
|
constructor(t, e, a, r, i, o = !1, s, l = !1, c = !1, d = !1) {
|
10976
10976
|
this.workflowStatePromiseQueue = new Nn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (u) => {
|
10977
|
-
this.reloadedState ? this.layouts = Object.values(this.reloadedState.layouts || {}).map((
|
10978
|
-
this.stepTags[
|
10977
|
+
this.reloadedState ? this.layouts = Object.values(this.reloadedState.layouts || {}).map((m) => m.layout) : u ? this.layouts = Gs(this.experience.getTransaction(), u) : this.layouts = [], this.commandContext.initialize(this.layouts, this.reloadedState), this.renderableContextService = new is(this.layouts), this.renderableContextService.setWorkflowManager(this), u.steps.forEach((m) => {
|
10978
|
+
this.stepTags[m.stepName] = m.tags ?? [];
|
10979
10979
|
}), this.initializationPromise = this.initializeDefaultWorkflowState(u), this.initializationPromise.then(() => {
|
10980
10980
|
this.initialized = !0;
|
10981
|
-
}), this.initializationPromise.catch((
|
10982
|
-
throw console.error(
|
10981
|
+
}), this.initializationPromise.catch((m) => {
|
10982
|
+
throw console.error(m), this.initialized = !1, new Error("Workflow initialization failed due to an error. See console.");
|
10983
10983
|
}), this.initializationPromise.finally(
|
10984
10984
|
() => this.commandContext.registerStateCallback(() => {
|
10985
10985
|
this.updateStateWithServer(), this.renderLayouts();
|
10986
10986
|
})
|
10987
10987
|
);
|
10988
|
+
const h = this.previewService;
|
10989
|
+
h && (this.ejectFromPreviewService(), await this.injectIntoPreviewService(h, !0));
|
10988
10990
|
}, this.renderLayouts = () => {
|
10989
10991
|
if (!this.previewService) return;
|
10990
10992
|
const u = this.getCommandContext().getAllLayouts(), h = this.getLayoutPreviewService()?.getAll();
|
@@ -11380,7 +11382,7 @@ class Ws {
|
|
11380
11382
|
};
|
11381
11383
|
if (!Se(a, this.storage)) {
|
11382
11384
|
this.storage = a;
|
11383
|
-
const r = new
|
11385
|
+
const r = new ja(this.constructSerializableWorkflow());
|
11384
11386
|
this.commandContext.apply(r, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
|
11385
11387
|
}
|
11386
11388
|
}
|
@@ -11584,7 +11586,7 @@ class Ws {
|
|
11584
11586
|
}, this.removeElements(h);
|
11585
11587
|
const g = i.steps.find((S) => S.stepName === t);
|
11586
11588
|
g?.type === E.Frame && this.getWorkflowExperience().getStepById(g.stepName)?.frameService?.setTargetElements(a.map((B) => B.id));
|
11587
|
-
const f = h.map((S) => new Tt(S.id)), w = new
|
11589
|
+
const f = h.map((S) => new Tt(S.id)), w = new ja(this.constructSerializableWorkflow()), I = [...p, ...f, w];
|
11588
11590
|
I.length > 0 && this.commandContext.apply(new O(I), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
11589
11591
|
const P = this.getInvalidModelVariants(), y = this.modelContainer;
|
11590
11592
|
if (y) {
|
@@ -12001,7 +12003,7 @@ class qs extends X {
|
|
12001
12003
|
return this.step.data.pmsPickerEnabled ?? !1;
|
12002
12004
|
}
|
12003
12005
|
}
|
12004
|
-
class
|
12006
|
+
class js extends X {
|
12005
12007
|
constructor(t, e, a) {
|
12006
12008
|
super(t, e, a);
|
12007
12009
|
}
|
@@ -12014,7 +12016,7 @@ class Hs extends X {
|
|
12014
12016
|
);
|
12015
12017
|
}
|
12016
12018
|
}
|
12017
|
-
class
|
12019
|
+
class Hs extends X {
|
12018
12020
|
constructor(t, e, a) {
|
12019
12021
|
super(t, e, a);
|
12020
12022
|
}
|
@@ -12417,9 +12419,9 @@ class de {
|
|
12417
12419
|
case E.Shape:
|
12418
12420
|
return new Ks(t, e, t.getStepTags(e.stepName));
|
12419
12421
|
case E.Material:
|
12420
|
-
return new Hs(t, e, t.getStepTags(e.stepName));
|
12421
|
-
case E.Model:
|
12422
12422
|
return new js(t, e, t.getStepTags(e.stepName));
|
12423
|
+
case E.Model:
|
12424
|
+
return new Hs(t, e, t.getStepTags(e.stepName));
|
12423
12425
|
case E.Frame:
|
12424
12426
|
return new ec(t, e, t.getStepTags(e.stepName));
|
12425
12427
|
case E.Module:
|
@@ -12920,6 +12922,13 @@ const Xe = new ll(), cl = C`
|
|
12920
12922
|
mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String!) {
|
12921
12923
|
transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
|
12922
12924
|
id
|
12925
|
+
integrationProduct {
|
12926
|
+
id
|
12927
|
+
externalProductId
|
12928
|
+
externalVariantId
|
12929
|
+
additionalExternalProductId
|
12930
|
+
additionalExternalVariantId
|
12931
|
+
}
|
12923
12932
|
product {
|
12924
12933
|
id
|
12925
12934
|
basePrice
|
@@ -13024,7 +13033,7 @@ class ml {
|
|
13024
13033
|
} catch (o) {
|
13025
13034
|
i(o);
|
13026
13035
|
}
|
13027
|
-
}), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.
|
13036
|
+
}), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.profanityList = this.transaction.product?.profanities?.map((a) => a.word) || [], this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Ws(
|
13028
13037
|
this,
|
13029
13038
|
t,
|
13030
13039
|
(a) => {
|
@@ -13062,20 +13071,20 @@ class ml {
|
|
13062
13071
|
return this.transaction;
|
13063
13072
|
}
|
13064
13073
|
getProduct() {
|
13065
|
-
return this.product;
|
13074
|
+
return this.transaction.product;
|
13066
13075
|
}
|
13067
13076
|
getProfanityList() {
|
13068
13077
|
return this.profanityList;
|
13069
13078
|
}
|
13070
13079
|
async setProduct(t) {
|
13071
13080
|
this.workflow = void 0;
|
13072
|
-
const
|
13081
|
+
const e = await this.graphQlClient().mutate({
|
13073
13082
|
mutation: ul,
|
13074
13083
|
variables: {
|
13075
13084
|
id: this.getTransaction().id,
|
13076
13085
|
integrationProductId: t
|
13077
13086
|
}
|
13078
|
-
})
|
13087
|
+
}), a = e.data?.transactionUpdateIntegrationProduct.product;
|
13079
13088
|
if (!a)
|
13080
13089
|
throw new T("Failed to set product. No product returned from server.");
|
13081
13090
|
if (!this.bundle)
|
@@ -13083,7 +13092,13 @@ class ml {
|
|
13083
13092
|
const r = (await this.bundle.getProductCollection().fetchProducts()).find(
|
13084
13093
|
(i) => i.getId() === a.id
|
13085
13094
|
);
|
13086
|
-
this.product =
|
13095
|
+
this.transaction.product = {
|
13096
|
+
...this.transaction.product,
|
13097
|
+
...e.data?.transactionUpdateIntegrationProduct.product
|
13098
|
+
}, this.transaction.integrationProduct = {
|
13099
|
+
...this.transaction.integrationProduct,
|
13100
|
+
...e.data?.transactionUpdateIntegrationProduct.integrationProduct
|
13101
|
+
}, this.currentPriceBreak = this.priceBreakToBeApplied();
|
13087
13102
|
try {
|
13088
13103
|
const i = r?.getDefaultWorkflow();
|
13089
13104
|
if (i) {
|
@@ -13173,7 +13188,7 @@ class ml {
|
|
13173
13188
|
throw new Te("Failed to obtain 2D context for preview image creation");
|
13174
13189
|
const m = this.workflowManager.getTemplatingContext(), p = Ea(u.layoutState.layout, u.layoutState.elements, {
|
13175
13190
|
renderingConfiguration: {
|
13176
|
-
purpose:
|
13191
|
+
purpose: jt.Print,
|
13177
13192
|
region: { left: A.x, top: A.y, width: A.width, height: A.height },
|
13178
13193
|
templatingContext: m
|
13179
13194
|
}
|
@@ -16026,7 +16041,7 @@ class ql {
|
|
16026
16041
|
}
|
16027
16042
|
}
|
16028
16043
|
const Ut = new ql();
|
16029
|
-
class
|
16044
|
+
class jl {
|
16030
16045
|
/**
|
16031
16046
|
* Returns a formatted string representing a given amount with desired currency.
|
16032
16047
|
* @param currency The currency to represent the amount in.
|
@@ -16060,8 +16075,8 @@ class Hl {
|
|
16060
16075
|
return "USD0,0";
|
16061
16076
|
}
|
16062
16077
|
}
|
16063
|
-
const an = new
|
16064
|
-
class
|
16078
|
+
const an = new jl();
|
16079
|
+
class Hl {
|
16065
16080
|
constructor(t, e, a, r) {
|
16066
16081
|
this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
|
16067
16082
|
}
|
@@ -16148,10 +16163,10 @@ class Id {
|
|
16148
16163
|
} catch (a) {
|
16149
16164
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
16150
16165
|
}
|
16151
|
-
}, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.
|
16166
|
+
}, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.21fa002f-4770-5f05-ae6c-96bf3f93735d"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
16152
16167
|
}
|
16153
16168
|
configure(t) {
|
16154
|
-
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 &&
|
16169
|
+
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
16155
16170
|
}
|
16156
16171
|
/**
|
16157
16172
|
* @returns The asset manager allows for common operations related to assets
|
@@ -16161,7 +16176,7 @@ class Id {
|
|
16161
16176
|
return $;
|
16162
16177
|
}
|
16163
16178
|
getFlowService() {
|
16164
|
-
if (!
|
16179
|
+
if (!jr()) throw new Error("Application key required to use Flow Service.");
|
16165
16180
|
return new $l();
|
16166
16181
|
}
|
16167
16182
|
async getCurrencyContext(t) {
|
@@ -16174,7 +16189,7 @@ class Id {
|
|
16174
16189
|
to: t
|
16175
16190
|
}
|
16176
16191
|
}), { rateFrom: o, rateTo: s } = i.data.currencyConversion;
|
16177
|
-
return new
|
16192
|
+
return new Hl(o, s, a, t);
|
16178
16193
|
}
|
16179
16194
|
async getIntegration() {
|
16180
16195
|
if (this.activeIntegration)
|
@@ -16773,7 +16788,7 @@ class Id {
|
|
16773
16788
|
}
|
16774
16789
|
}
|
16775
16790
|
const _l = async (n, t) => (await v.getShadowGraphqlClient().query({
|
16776
|
-
query:
|
16791
|
+
query: ji,
|
16777
16792
|
errorPolicy: "all",
|
16778
16793
|
fetchPolicy: "no-cache",
|
16779
16794
|
context: {
|
@@ -16809,7 +16824,7 @@ const _l = async (n, t) => (await v.getShadowGraphqlClient().query({
|
|
16809
16824
|
id: n
|
16810
16825
|
}
|
16811
16826
|
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Fd = async (n) => (await v.getShadowGraphqlClient().query({
|
16812
|
-
query:
|
16827
|
+
query: Hi,
|
16813
16828
|
errorPolicy: "all",
|
16814
16829
|
variables: {
|
16815
16830
|
id: n
|
@@ -17811,7 +17826,7 @@ const Gd = async (n) => {
|
|
17811
17826
|
variables: {
|
17812
17827
|
id: n.getTransaction().recipient.id
|
17813
17828
|
}
|
17814
|
-
})).data?.recipientValidate : void 0,
|
17829
|
+
})).data?.recipientValidate : void 0, jd = async (n) => {
|
17815
17830
|
const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await v.getShadowGraphqlClient().mutate({
|
17816
17831
|
mutation: pc,
|
17817
17832
|
errorPolicy: "all",
|
@@ -17825,7 +17840,7 @@ const Gd = async (n) => {
|
|
17825
17840
|
if (r)
|
17826
17841
|
return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
|
17827
17842
|
});
|
17828
|
-
},
|
17843
|
+
}, Hd = async (n) => {
|
17829
17844
|
const t = n.getTransaction().recipient?.id;
|
17830
17845
|
if (!t)
|
17831
17846
|
return;
|
@@ -17858,9 +17873,9 @@ export {
|
|
17858
17873
|
we as ConversionDataType,
|
17859
17874
|
dc as ConversionLocation,
|
17860
17875
|
z as CreateElementCommand,
|
17861
|
-
|
17862
|
-
|
17863
|
-
|
17876
|
+
jn as CreateLayoutCommand,
|
17877
|
+
Hl as CurrencyContext,
|
17878
|
+
jl as CurrencyService,
|
17864
17879
|
Tt as DeleteElementCommand,
|
17865
17880
|
Zs as DigitalContentStepHandle,
|
17866
17881
|
Cl as FileUploadGlobalPropertyHandle,
|
@@ -17870,7 +17885,7 @@ export {
|
|
17870
17885
|
So as FontAlignmentCommand,
|
17871
17886
|
wo as FontColorCommand,
|
17872
17887
|
yo as FontSizeCommand,
|
17873
|
-
|
17888
|
+
Ha as FontSourceCommand,
|
17874
17889
|
Zl as FrameService,
|
17875
17890
|
tc as FrameStep,
|
17876
17891
|
ec as FrameStepHandle,
|
@@ -17883,12 +17898,12 @@ export {
|
|
17883
17898
|
kr as IntegrationType,
|
17884
17899
|
dd as LayoutElementFactory,
|
17885
17900
|
x as LayoutElementType,
|
17886
|
-
|
17887
|
-
|
17888
|
-
|
17901
|
+
j as LayoutNotFoundError,
|
17902
|
+
jt as LayoutRenderingPurpose,
|
17903
|
+
js as MaterialStepHandle,
|
17889
17904
|
Ie as MisconfigurationError,
|
17890
17905
|
kd as MockWorkflowManager,
|
17891
|
-
|
17906
|
+
Hs as ModelStepHandle,
|
17892
17907
|
tl as ModuleStepHandle,
|
17893
17908
|
Ad as MoveCommand,
|
17894
17909
|
sr as ObjectInput,
|
@@ -17906,7 +17921,7 @@ export {
|
|
17906
17921
|
Js as QuestionStepHandle,
|
17907
17922
|
Tn as QueueablePromise,
|
17908
17923
|
hd as ResizeCommand,
|
17909
|
-
|
17924
|
+
Ht as ResourceNotFoundError,
|
17910
17925
|
ud as RotateCommand,
|
17911
17926
|
W as ScaleAxis,
|
17912
17927
|
Cd as SendBackwardsCommand,
|
@@ -17935,7 +17950,7 @@ export {
|
|
17935
17950
|
ld as cmPerPixel,
|
17936
17951
|
ol as createDesign,
|
17937
17952
|
id as currentDirection,
|
17938
|
-
|
17953
|
+
Hc as dataUrlFromExternalUrl,
|
17939
17954
|
xd as deleteBundle,
|
17940
17955
|
Xe as designService,
|
17941
17956
|
Ce as determineCorrectFontSizeAndLines,
|
@@ -17997,19 +18012,19 @@ export {
|
|
17997
18012
|
Td as nameTransaction,
|
17998
18013
|
q as optionService,
|
17999
18014
|
cd as outlineFontsInSvg,
|
18000
|
-
|
18015
|
+
Hd as overrideWorkflowExperienceRecipientAddress,
|
18001
18016
|
ut as patternImageDataCache,
|
18002
18017
|
k as persistenceService,
|
18003
18018
|
Xn as pictureStepService,
|
18004
18019
|
Yc as pmsToRgb,
|
18005
18020
|
Zn as questionStepService,
|
18006
|
-
|
18021
|
+
jc as registerFetchImplementation,
|
18007
18022
|
qc as registerWindowImplementation,
|
18008
18023
|
qa as rehydrateSerializedLayout,
|
18009
18024
|
ai as rgbToPms,
|
18010
18025
|
ce as rotateAroundPoint,
|
18011
18026
|
wa as sanitizeSvgTree,
|
18012
|
-
|
18027
|
+
Hr as setBearerAuthenticationToken,
|
18013
18028
|
Sn as setCanvasModule,
|
18014
18029
|
Vt as shapeStepService,
|
18015
18030
|
Bo as shortenUrl,
|
@@ -18021,7 +18036,7 @@ export {
|
|
18021
18036
|
G as textStepService,
|
18022
18037
|
Ro as toast,
|
18023
18038
|
qd as validateWorkflowExperienceRecipient,
|
18024
|
-
|
18039
|
+
jd as validateWorkflowExperienceRecipients,
|
18025
18040
|
bt as xmlSerializer
|
18026
18041
|
};
|
18027
18042
|
//# sourceMappingURL=index.mjs.map
|