@spiffcommerce/core 26.23.4-beta.9a6b3f77-3bf6-52ad-a823-41cd49720f64 → 26.24.0-beta.45f6b2c8-5de9-523b-a94d-3ea63326d3a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/index.d.ts +40 -3
- package/dist/index.js +154 -123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +453 -348
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import { split as Ke } from "unicode-default-word-boundary";
|
|
|
19
19
|
import sn from "lodash.debounce";
|
|
20
20
|
import "fs";
|
|
21
21
|
import "path";
|
|
22
|
-
var
|
|
22
|
+
var he = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(he || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(D || {}), hr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(hr || {}), Gt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Gt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), mr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(mr || {}), gr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(gr || {}), fr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(fr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(pr || {}), me = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(me || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Cr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Cr || {});
|
|
23
23
|
class on extends Error {
|
|
24
24
|
constructor(t) {
|
|
25
25
|
super(t), this.name = this.constructor.name;
|
|
@@ -30,7 +30,7 @@ class Yt extends on {
|
|
|
30
30
|
super(`ConfigurationError - ${t}`);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class ge extends Yt {
|
|
34
34
|
constructor(t) {
|
|
35
35
|
super(`Option not Configured: ${t.stepTitle}`), this.optionId = (t == null ? void 0 : t.optionId) || "N/A";
|
|
36
36
|
}
|
|
@@ -50,32 +50,32 @@ class Wt extends Yt {
|
|
|
50
50
|
super(`Resource not found for asset: ${t.name}`), this.asset = t;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
class
|
|
53
|
+
class fe extends Yt {
|
|
54
54
|
constructor(t, e) {
|
|
55
55
|
super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
class
|
|
58
|
+
class Ee extends on {
|
|
59
59
|
constructor(t) {
|
|
60
60
|
super(`ImplementationError - ${t}`);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
class z extends
|
|
63
|
+
class z extends Ee {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
super(`Unhandled Behavior Encountered: ${t}`);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
class Dt extends
|
|
68
|
+
class Dt extends Ee {
|
|
69
69
|
constructor(t) {
|
|
70
70
|
super(`Parsing Error: ${t}`);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
class ut extends
|
|
73
|
+
class ut extends Ee {
|
|
74
74
|
constructor(t) {
|
|
75
75
|
super(`Client Error: ${t}`);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
class
|
|
78
|
+
class Be extends Ee {
|
|
79
79
|
constructor(t) {
|
|
80
80
|
super(`Resource Generation Failed: ${t}`);
|
|
81
81
|
}
|
|
@@ -158,10 +158,10 @@ class Sr {
|
|
|
158
158
|
}
|
|
159
159
|
const wt = new Sr();
|
|
160
160
|
let _e, Xe;
|
|
161
|
-
function
|
|
161
|
+
function ec(r) {
|
|
162
162
|
_e = r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ac(r) {
|
|
165
165
|
Xe = r;
|
|
166
166
|
}
|
|
167
167
|
function Jt() {
|
|
@@ -195,7 +195,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
195
195
|
return t;
|
|
196
196
|
const a = (async () => await (await ct(r)).text())();
|
|
197
197
|
return xa.set(r, a), a;
|
|
198
|
-
}, Mt = (r) => r.every((t) => t !== "undefined"),
|
|
198
|
+
}, Mt = (r) => r.every((t) => t !== "undefined"), ee = (r) => Mt([typeof document]) ? document.createElement(r) : Jt().document.createElement(r), Er = (r, t) => {
|
|
199
199
|
if (Mt([typeof document]))
|
|
200
200
|
return document.createElementNS(r, t);
|
|
201
201
|
const a = Jt().document.createElement(t);
|
|
@@ -205,7 +205,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
205
205
|
return new DOMParser();
|
|
206
206
|
const r = Jt();
|
|
207
207
|
return new r.DOMParser();
|
|
208
|
-
}, Br = () => Mt([typeof DOMParser]) ? DOMParser : Jt().DOMParser,
|
|
208
|
+
}, Br = () => Mt([typeof DOMParser]) ? DOMParser : Jt().DOMParser, be = (r, t) => new Promise((e, a) => {
|
|
209
209
|
t ? cn(r).then(e).catch(a) : ct(r).then((n) => {
|
|
210
210
|
n.arrayBuffer().then(e).catch(a);
|
|
211
211
|
}).catch((n) => {
|
|
@@ -229,7 +229,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
229
229
|
return new XMLSerializer();
|
|
230
230
|
const r = Jt();
|
|
231
231
|
return new r.XMLSerializer();
|
|
232
|
-
}, ka = (r) => btoa(r),
|
|
232
|
+
}, ka = (r) => btoa(r), Ie = (r) => {
|
|
233
233
|
function t() {
|
|
234
234
|
const a = new Uint8Array(r), n = 4;
|
|
235
235
|
if (a.length >= n) {
|
|
@@ -256,8 +256,8 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
256
256
|
}
|
|
257
257
|
const e = t();
|
|
258
258
|
return e || "image/svg+xml";
|
|
259
|
-
},
|
|
260
|
-
const t = await cn(r), e = ln.get(r) ||
|
|
259
|
+
}, nc = async (r) => {
|
|
260
|
+
const t = await cn(r), e = ln.get(r) || Ie(t);
|
|
261
261
|
return await Pr(new Blob([t], { type: e }));
|
|
262
262
|
}, Ir = (r) => {
|
|
263
263
|
let t = "";
|
|
@@ -266,7 +266,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
266
266
|
t += String.fromCharCode(r[a]);
|
|
267
267
|
return t;
|
|
268
268
|
}, Dr = async (r) => {
|
|
269
|
-
const t =
|
|
269
|
+
const t = Ie(r), e = new Uint8Array(r), a = Ir(e), n = btoa(a);
|
|
270
270
|
return `data:${t};base64,${n}`;
|
|
271
271
|
}, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, An = (r) => {
|
|
272
272
|
const t = r.replace(/\r?\n/g, ""), e = t.indexOf(",");
|
|
@@ -400,16 +400,16 @@ let Ne;
|
|
|
400
400
|
function ha() {
|
|
401
401
|
return Ne === void 0 && (Ne = Br()), Ne;
|
|
402
402
|
}
|
|
403
|
-
let
|
|
403
|
+
let ae = null;
|
|
404
404
|
const Nr = (r) => new Promise((t) => {
|
|
405
|
-
if (
|
|
405
|
+
if (Ie(r) !== "image/jpeg")
|
|
406
406
|
return t(1);
|
|
407
407
|
cr(r).then((a) => t(a || 1)).catch(() => t(1));
|
|
408
408
|
}), Rr = async () => {
|
|
409
|
-
if (
|
|
410
|
-
return !
|
|
409
|
+
if (ae !== null)
|
|
410
|
+
return !ae;
|
|
411
411
|
const t = await Kt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
|
|
412
|
-
return
|
|
412
|
+
return ae = t.width === 2 && t.height === 3, !ae;
|
|
413
413
|
}, Or = (r) => {
|
|
414
414
|
const e = r.naturalWidth / r.naturalHeight;
|
|
415
415
|
return r.naturalHeight <= 8192 && r.naturalWidth <= 8192 ? [r.naturalWidth, r.naturalHeight] : r.naturalHeight > r.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
|
|
@@ -445,9 +445,9 @@ const Nr = (r) => new Promise((t) => {
|
|
|
445
445
|
break;
|
|
446
446
|
}
|
|
447
447
|
return d.drawImage(e, 0, 0, o, l), c;
|
|
448
|
-
},
|
|
448
|
+
}, De = async (r) => {
|
|
449
449
|
const t = await Ur(r);
|
|
450
|
-
return
|
|
450
|
+
return Ie(r) === "image/jpeg" ? {
|
|
451
451
|
dataUrl: t.toDataURL("image/jpeg", 1),
|
|
452
452
|
height: t.height,
|
|
453
453
|
width: t.width
|
|
@@ -3145,7 +3145,7 @@ const Nr = (r) => new Promise((t) => {
|
|
|
3145
3145
|
parseInt(r.substring(2, 4), 16),
|
|
3146
3146
|
parseInt(r.substring(4, 6), 16)
|
|
3147
3147
|
]);
|
|
3148
|
-
function
|
|
3148
|
+
function rc(r) {
|
|
3149
3149
|
const t = jt.indexOf(r);
|
|
3150
3150
|
return t >= 0 ? Ft[t] : "";
|
|
3151
3151
|
}
|
|
@@ -3153,7 +3153,7 @@ function Lr(r) {
|
|
|
3153
3153
|
const t = Ft.indexOf(r);
|
|
3154
3154
|
return t >= 0 ? jt[t] : "";
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function ic(r, t = 64) {
|
|
3157
3157
|
const e = [], a = [], n = Lr(r);
|
|
3158
3158
|
n && e.push({
|
|
3159
3159
|
pms: n,
|
|
@@ -3172,7 +3172,7 @@ function ac(r, t = 64) {
|
|
|
3172
3172
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3173
3173
|
}
|
|
3174
3174
|
const $r = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr($r, { keys: ["pms"] });
|
|
3175
|
-
function
|
|
3175
|
+
function sc(r, t) {
|
|
3176
3176
|
return Vr.search(r, t ? { limit: t } : void 0);
|
|
3177
3177
|
}
|
|
3178
3178
|
let Qt = null;
|
|
@@ -3191,7 +3191,7 @@ function Ta(r) {
|
|
|
3191
3191
|
const t = r.substring(1).toUpperCase();
|
|
3192
3192
|
return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
|
|
3193
3193
|
}
|
|
3194
|
-
const
|
|
3194
|
+
const ne = (r) => {
|
|
3195
3195
|
const t = fn(r.spotColor);
|
|
3196
3196
|
return t ? `${r.browserValue} ${t}` : r.browserValue;
|
|
3197
3197
|
}, fn = (r) => {
|
|
@@ -3293,13 +3293,13 @@ const ae = (r) => {
|
|
|
3293
3293
|
if (o)
|
|
3294
3294
|
a.setAttribute(
|
|
3295
3295
|
"fill",
|
|
3296
|
-
e ?
|
|
3296
|
+
e ? ne(o) : o.browserValue
|
|
3297
3297
|
);
|
|
3298
3298
|
else {
|
|
3299
3299
|
const l = t[s];
|
|
3300
3300
|
l && a.setAttribute(
|
|
3301
3301
|
"fill",
|
|
3302
|
-
e ?
|
|
3302
|
+
e ? ne(l) : l.browserValue
|
|
3303
3303
|
);
|
|
3304
3304
|
}
|
|
3305
3305
|
}
|
|
@@ -3311,13 +3311,13 @@ const ae = (r) => {
|
|
|
3311
3311
|
if (o)
|
|
3312
3312
|
a.setAttribute(
|
|
3313
3313
|
"stroke",
|
|
3314
|
-
e ?
|
|
3314
|
+
e ? ne(o) : o.browserValue
|
|
3315
3315
|
);
|
|
3316
3316
|
else {
|
|
3317
3317
|
const l = t[s];
|
|
3318
3318
|
l && a.setAttribute(
|
|
3319
3319
|
"fill",
|
|
3320
|
-
e ?
|
|
3320
|
+
e ? ne(l) : l.browserValue
|
|
3321
3321
|
);
|
|
3322
3322
|
}
|
|
3323
3323
|
}
|
|
@@ -3523,7 +3523,7 @@ const ae = (r) => {
|
|
|
3523
3523
|
class ai {
|
|
3524
3524
|
constructor() {
|
|
3525
3525
|
this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
|
|
3526
|
-
const e = await t.arrayBuffer(), a = await
|
|
3526
|
+
const e = await t.arrayBuffer(), a = await De(e), n = (i, s) => {
|
|
3527
3527
|
const o = atob(i.split(",")[1]), l = [];
|
|
3528
3528
|
for (let c = 0; c < o.length; c++)
|
|
3529
3529
|
l.push(o.charCodeAt(c));
|
|
@@ -3613,7 +3613,7 @@ class ai {
|
|
|
3613
3613
|
}, a, n);
|
|
3614
3614
|
}
|
|
3615
3615
|
async uploadFile(t, e) {
|
|
3616
|
-
const n = this.isRaster(t) ?
|
|
3616
|
+
const n = this.isRaster(t) ? he.Image : he.Illustration, i = await this.loadImageAsFileInfo(t);
|
|
3617
3617
|
return await this.uploadAssetWithProgress(i, n, e, !0);
|
|
3618
3618
|
}
|
|
3619
3619
|
async removeBackgroundFromAsset(t) {
|
|
@@ -3949,7 +3949,7 @@ const X = new li(), vn = y`
|
|
|
3949
3949
|
activeAddons
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
|
-
`,
|
|
3952
|
+
`, Pe = y`
|
|
3953
3953
|
fragment AdditionalIntegrationProductFields on IntegrationProduct {
|
|
3954
3954
|
id
|
|
3955
3955
|
product {
|
|
@@ -3968,7 +3968,7 @@ const X = new li(), vn = y`
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
`, ci = y`
|
|
3971
|
-
${
|
|
3971
|
+
${Pe}
|
|
3972
3972
|
mutation CreateTransactions(
|
|
3973
3973
|
$inputs: [TransactionCreateInput]!
|
|
3974
3974
|
$marketplaceThemeInstallId: String
|
|
@@ -4072,7 +4072,7 @@ const X = new li(), vn = y`
|
|
|
4072
4072
|
url
|
|
4073
4073
|
}
|
|
4074
4074
|
`, di = y`
|
|
4075
|
-
${
|
|
4075
|
+
${Pe}
|
|
4076
4076
|
${En}
|
|
4077
4077
|
${Bn}
|
|
4078
4078
|
${vn}
|
|
@@ -4309,8 +4309,8 @@ const X = new li(), vn = y`
|
|
|
4309
4309
|
workflowState
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
|
-
`, In = y`
|
|
4313
|
-
${
|
|
4312
|
+
`, In = (r) => y`
|
|
4313
|
+
${Pe}
|
|
4314
4314
|
fragment IntegrationProductFields on IntegrationProduct {
|
|
4315
4315
|
id
|
|
4316
4316
|
externalProductId
|
|
@@ -4371,17 +4371,36 @@ const X = new li(), vn = y`
|
|
|
4371
4371
|
minQty
|
|
4372
4372
|
percentage
|
|
4373
4373
|
}
|
|
4374
|
+
${r ? `
|
|
4375
|
+
integrationProducts {
|
|
4376
|
+
id
|
|
4377
|
+
externalProductId
|
|
4378
|
+
externalVariantId
|
|
4379
|
+
additionalExternalProductId
|
|
4380
|
+
additionalExternalVariantId
|
|
4381
|
+
additionalIntegrationProduct {
|
|
4382
|
+
...AdditionalIntegrationProductFields
|
|
4383
|
+
}
|
|
4384
|
+
integration {
|
|
4385
|
+
id
|
|
4386
|
+
enabled
|
|
4387
|
+
externalIntegrationId
|
|
4388
|
+
type
|
|
4389
|
+
isCurrent
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
` : ""}
|
|
4374
4393
|
}
|
|
4375
4394
|
}
|
|
4376
|
-
`, gi = y`
|
|
4377
|
-
${In}
|
|
4395
|
+
`, gi = (r) => y`
|
|
4396
|
+
${In(r)}
|
|
4378
4397
|
query GetIntegrationProducts($ids: [String!]!) {
|
|
4379
4398
|
integrationProducts(ids: $ids) {
|
|
4380
4399
|
...IntegrationProductFields
|
|
4381
4400
|
}
|
|
4382
4401
|
}
|
|
4383
|
-
`, fi = y`
|
|
4384
|
-
${In}
|
|
4402
|
+
`, fi = (r) => y`
|
|
4403
|
+
${In(r)}
|
|
4385
4404
|
query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
|
|
4386
4405
|
integrationProductFromExternalIds(
|
|
4387
4406
|
externalIntegrationId: $externalIntegrationId
|
|
@@ -4968,7 +4987,7 @@ const X = new li(), vn = y`
|
|
|
4968
4987
|
}
|
|
4969
4988
|
}
|
|
4970
4989
|
}
|
|
4971
|
-
`,
|
|
4990
|
+
`, Fe = y`
|
|
4972
4991
|
fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
|
|
4973
4992
|
id
|
|
4974
4993
|
themeInstallId
|
|
@@ -5043,7 +5062,7 @@ const X = new li(), vn = y`
|
|
|
5043
5062
|
}
|
|
5044
5063
|
}
|
|
5045
5064
|
`, Ii = y`
|
|
5046
|
-
${
|
|
5065
|
+
${Fe}
|
|
5047
5066
|
query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
|
|
5048
5067
|
marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
|
|
5049
5068
|
...MarketplaceThemeInstallConfigurationFields
|
|
@@ -5051,7 +5070,7 @@ const X = new li(), vn = y`
|
|
|
5051
5070
|
}
|
|
5052
5071
|
`, Di = y`
|
|
5053
5072
|
${vn}
|
|
5054
|
-
${
|
|
5073
|
+
${Fe}
|
|
5055
5074
|
query GetCurrentIntegration($themeConfigurationId: String) {
|
|
5056
5075
|
currentIntegration {
|
|
5057
5076
|
id
|
|
@@ -5063,7 +5082,7 @@ const X = new li(), vn = y`
|
|
|
5063
5082
|
}
|
|
5064
5083
|
}
|
|
5065
5084
|
`, Pi = y`
|
|
5066
|
-
${
|
|
5085
|
+
${Fe}
|
|
5067
5086
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
|
5068
5087
|
transactions(ids: [$id]) {
|
|
5069
5088
|
marketplaceThemeInstallConfiguration(raw: false) {
|
|
@@ -5072,7 +5091,7 @@ const X = new li(), vn = y`
|
|
|
5072
5091
|
}
|
|
5073
5092
|
}
|
|
5074
5093
|
`, Fi = y`
|
|
5075
|
-
${
|
|
5094
|
+
${Fe}
|
|
5076
5095
|
query ReadBundleForMarketplaceTheme($id: String!) {
|
|
5077
5096
|
bundles(ids: [$id]) {
|
|
5078
5097
|
marketplaceThemeInstallConfiguration(raw: false) {
|
|
@@ -5355,7 +5374,7 @@ const Q = () => {
|
|
|
5355
5374
|
]
|
|
5356
5375
|
}
|
|
5357
5376
|
);
|
|
5358
|
-
},
|
|
5377
|
+
}, oc = (r, t, e, a, n) => {
|
|
5359
5378
|
const i = gt(n), s = e / 2, o = a / 2, l = r + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, f = u * A - m * d, p = h * A - g * d, C = u * d + m * A, w = h * d + g * A, v = Math.max(Math.abs(f), Math.abs(p)), S = Math.max(Math.abs(C), Math.abs(w));
|
|
5360
5379
|
return {
|
|
5361
5380
|
minX: l - v,
|
|
@@ -5363,25 +5382,25 @@ const Q = () => {
|
|
|
5363
5382
|
minY: c - S,
|
|
5364
5383
|
maxY: c + S
|
|
5365
5384
|
};
|
|
5366
|
-
},
|
|
5385
|
+
}, lc = (r, t, e) => {
|
|
5367
5386
|
const a = Math.sqrt(Math.pow(t.x - r.x, 2) + Math.pow(t.y - r.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - r.x, 2) + Math.pow(e.y - r.y, 2));
|
|
5368
5387
|
return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
|
|
5369
|
-
}, gt = (r) => r * (Math.PI / 180),
|
|
5388
|
+
}, gt = (r) => r * (Math.PI / 180), cc = (r, t, e) => Math.abs(r - t) < e, dc = (r, t, e) => {
|
|
5370
5389
|
const a = Math.sin(gt(e)), n = Math.cos(gt(e));
|
|
5371
5390
|
return {
|
|
5372
5391
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5373
5392
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5374
5393
|
};
|
|
5375
|
-
},
|
|
5394
|
+
}, Ac = (r, t) => ({
|
|
5376
5395
|
x: (r.x + t.x) / 2,
|
|
5377
5396
|
y: (r.y + t.y) / 2
|
|
5378
|
-
}),
|
|
5397
|
+
}), uc = (r, t, e, a) => ({
|
|
5379
5398
|
x: r.x + (t == null ? void 0 : t.x) * e,
|
|
5380
5399
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5381
|
-
}),
|
|
5400
|
+
}), hc = (r, t, e, a) => ({
|
|
5382
5401
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5383
5402
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5384
|
-
}),
|
|
5403
|
+
}), mc = (r, t, e, a) => ({
|
|
5385
5404
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5386
5405
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5387
5406
|
}), bt = (r) => {
|
|
@@ -5403,7 +5422,7 @@ const Q = () => {
|
|
|
5403
5422
|
case H.Southwest:
|
|
5404
5423
|
return H.Northwest;
|
|
5405
5424
|
}
|
|
5406
|
-
},
|
|
5425
|
+
}, gc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, fc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5407
5426
|
const a = gt(r.rotation), n = {
|
|
5408
5427
|
x: t.x + r.x * e.x,
|
|
5409
5428
|
y: t.x + r.y * e.y
|
|
@@ -5421,19 +5440,19 @@ const Q = () => {
|
|
|
5421
5440
|
y: o.y - r.height * e.y / 2
|
|
5422
5441
|
};
|
|
5423
5442
|
return {
|
|
5424
|
-
a:
|
|
5425
|
-
b:
|
|
5426
|
-
c:
|
|
5427
|
-
d:
|
|
5443
|
+
a: re(n, l, a),
|
|
5444
|
+
b: re(i, l, a),
|
|
5445
|
+
c: re(s, l, a),
|
|
5446
|
+
d: re(o, l, a),
|
|
5428
5447
|
center: l
|
|
5429
5448
|
};
|
|
5430
|
-
},
|
|
5449
|
+
}, re = (r, t, e) => {
|
|
5431
5450
|
const a = Math.sin(e), n = Math.cos(e);
|
|
5432
5451
|
return {
|
|
5433
5452
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5434
5453
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5435
5454
|
};
|
|
5436
|
-
},
|
|
5455
|
+
}, pc = 0.352778, Cc = 0.035277, Fn = (r) => {
|
|
5437
5456
|
const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5438
5457
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5439
5458
|
"g",
|
|
@@ -5641,7 +5660,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5641
5660
|
const a = An(r), n = Je(a);
|
|
5642
5661
|
return aa(r, n), n;
|
|
5643
5662
|
} else {
|
|
5644
|
-
const a = await
|
|
5663
|
+
const a = await be(r, !0), n = Je(a);
|
|
5645
5664
|
return aa(r, n), await br(n, r), n;
|
|
5646
5665
|
}
|
|
5647
5666
|
}
|
|
@@ -5658,7 +5677,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5658
5677
|
}, aa = (r, t) => {
|
|
5659
5678
|
const e = new Oi(t);
|
|
5660
5679
|
return kn.set(r, e), e;
|
|
5661
|
-
},
|
|
5680
|
+
}, wc = async (r) => {
|
|
5662
5681
|
const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5663
5682
|
a.querySelectorAll("style").forEach((d) => {
|
|
5664
5683
|
var u;
|
|
@@ -5694,17 +5713,17 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5694
5713
|
h.appendChild(F);
|
|
5695
5714
|
}
|
|
5696
5715
|
return e.querySelectorAll("text").forEach((d) => d.remove()), Et().serializeToString(a);
|
|
5697
|
-
},
|
|
5716
|
+
}, pe = (r, t, e, a) => Math.max(Gi(r.join(`
|
|
5698
5717
|
`), e, a), t), Ra = (r, t, e, a, n, i) => {
|
|
5699
5718
|
const s = (i || Ca) * n.getApproximateHeight(), o = t.split(`
|
|
5700
5719
|
`);
|
|
5701
5720
|
try {
|
|
5702
|
-
const l = o.flatMap((d) =>
|
|
5721
|
+
const l = o.flatMap((d) => ce(d, r.width, a, n)), c = l.flatMap((d) => d.lines);
|
|
5703
5722
|
return {
|
|
5704
5723
|
lines: c,
|
|
5705
5724
|
requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
|
|
5706
5725
|
fontSize: e,
|
|
5707
|
-
requiredWidth:
|
|
5726
|
+
requiredWidth: pe(c, r.width, a, n)
|
|
5708
5727
|
};
|
|
5709
5728
|
} catch {
|
|
5710
5729
|
const c = t.split("");
|
|
@@ -5712,17 +5731,17 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5712
5731
|
lines: c,
|
|
5713
5732
|
requiredHeight: c.length * (a * s),
|
|
5714
5733
|
fontSize: e,
|
|
5715
|
-
requiredWidth:
|
|
5734
|
+
requiredWidth: pe(c, r.width, a, n)
|
|
5716
5735
|
};
|
|
5717
5736
|
}
|
|
5718
|
-
},
|
|
5737
|
+
}, ce = (r, t, e, a) => {
|
|
5719
5738
|
const n = ht(r, e, a);
|
|
5720
5739
|
if (n <= t)
|
|
5721
5740
|
return { lines: [r], width: n };
|
|
5722
5741
|
if (!(r.indexOf(" ") > -1)) {
|
|
5723
5742
|
if (r.length <= 1)
|
|
5724
5743
|
throw new Error(`Character ${r} is wider than region`);
|
|
5725
|
-
const d = Math.floor(r.length / 2), A =
|
|
5744
|
+
const d = Math.floor(r.length / 2), A = ce(r.slice(0, d), t, e, a), u = ce(r.slice(d), t, e, a);
|
|
5726
5745
|
return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
|
|
5727
5746
|
}
|
|
5728
5747
|
const s = r.split(" "), o = [];
|
|
@@ -5730,7 +5749,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5730
5749
|
for (; c < s.length; ) {
|
|
5731
5750
|
const d = s[c];
|
|
5732
5751
|
if (ht(d, e, a) > t) {
|
|
5733
|
-
const A =
|
|
5752
|
+
const A = ce(d, t, e, a);
|
|
5734
5753
|
o.push(...A.lines), l = Math.max(l, A.width), c++;
|
|
5735
5754
|
} else {
|
|
5736
5755
|
const A = [d];
|
|
@@ -5761,14 +5780,14 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5761
5780
|
return {
|
|
5762
5781
|
lines: o,
|
|
5763
5782
|
requiredHeight: t.height,
|
|
5764
|
-
requiredWidth:
|
|
5783
|
+
requiredWidth: pe(o, t.width, s, n),
|
|
5765
5784
|
fontSize: t.fontSize
|
|
5766
5785
|
};
|
|
5767
5786
|
const l = t.width !== e.width != (t.height !== e.height);
|
|
5768
5787
|
return t.lineHeight === e.lineHeight && !l && e.input === r ? {
|
|
5769
5788
|
lines: o,
|
|
5770
5789
|
requiredHeight: t.height,
|
|
5771
|
-
requiredWidth:
|
|
5790
|
+
requiredWidth: pe(o, t.width, s, n),
|
|
5772
5791
|
fontSize: $i(o, n, i, t.width, t.height, a)
|
|
5773
5792
|
} : Ra(t, r, t.fontSize, s, n, a);
|
|
5774
5793
|
}, zi = (r, t, e, a, n) => {
|
|
@@ -5803,7 +5822,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5803
5822
|
stripControlCharacters: !0,
|
|
5804
5823
|
vertical: !1,
|
|
5805
5824
|
uppercase: !1
|
|
5806
|
-
},
|
|
5825
|
+
}, Ce = (r, t = Oa) => {
|
|
5807
5826
|
const e = { ...Oa, ...t };
|
|
5808
5827
|
let a = r || "";
|
|
5809
5828
|
return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
|
|
@@ -6143,7 +6162,7 @@ const Zt = (r) => {
|
|
|
6143
6162
|
if (!e.asset)
|
|
6144
6163
|
throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
|
|
6145
6164
|
return e;
|
|
6146
|
-
},
|
|
6165
|
+
}, xe = async (r) => {
|
|
6147
6166
|
if (Le.has(r))
|
|
6148
6167
|
return Le.get(r);
|
|
6149
6168
|
const e = (async () => {
|
|
@@ -6214,7 +6233,7 @@ const Zt = (r) => {
|
|
|
6214
6233
|
};
|
|
6215
6234
|
return At.set(r, s), s;
|
|
6216
6235
|
} else {
|
|
6217
|
-
const a = await
|
|
6236
|
+
const a = await be(r, !0), n = await De(a), i = {
|
|
6218
6237
|
src: r,
|
|
6219
6238
|
width: n.width,
|
|
6220
6239
|
height: n.height,
|
|
@@ -6300,7 +6319,7 @@ const Zt = (r) => {
|
|
|
6300
6319
|
o.height = o.width / p, o.top += (h - o.height) / 2;
|
|
6301
6320
|
}
|
|
6302
6321
|
if (e && t === T.Image) {
|
|
6303
|
-
const l = o.height, c = await
|
|
6322
|
+
const l = o.height, c = await be(e), d = await De(c), A = d.width / d.height;
|
|
6304
6323
|
o.height = o.width / A, o.top += (l - o.height) / 2;
|
|
6305
6324
|
}
|
|
6306
6325
|
if (e && t === T.Textbox && (a != null && a.text) && (a != null && a.fontScale)) {
|
|
@@ -6310,9 +6329,9 @@ const Zt = (r) => {
|
|
|
6310
6329
|
}
|
|
6311
6330
|
return o;
|
|
6312
6331
|
};
|
|
6313
|
-
class
|
|
6332
|
+
class yc {
|
|
6314
6333
|
static async getFrame(t, e) {
|
|
6315
|
-
const a = await Nn(e.region, e.src), n = await
|
|
6334
|
+
const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
|
|
6316
6335
|
return {
|
|
6317
6336
|
id: Q(),
|
|
6318
6337
|
x: i.left,
|
|
@@ -6359,7 +6378,7 @@ class pc {
|
|
|
6359
6378
|
const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Tt(n), o = {
|
|
6360
6379
|
assetUrl: n,
|
|
6361
6380
|
name: s.names.fullName.en
|
|
6362
|
-
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d =
|
|
6381
|
+
}, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Ce(c, {
|
|
6363
6382
|
vertical: a.vertical,
|
|
6364
6383
|
uppercase: a.uppercase
|
|
6365
6384
|
}), A = e.region || await Ut(t, T.Textbox, n, {
|
|
@@ -6556,7 +6575,7 @@ class $a extends R {
|
|
|
6556
6575
|
};
|
|
6557
6576
|
}
|
|
6558
6577
|
}
|
|
6559
|
-
class
|
|
6578
|
+
class Sc extends R {
|
|
6560
6579
|
constructor(t, e, a) {
|
|
6561
6580
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6562
6581
|
}
|
|
@@ -6579,7 +6598,7 @@ class Cc extends R {
|
|
|
6579
6598
|
};
|
|
6580
6599
|
}
|
|
6581
6600
|
}
|
|
6582
|
-
class
|
|
6601
|
+
class vc extends R {
|
|
6583
6602
|
constructor(t, e) {
|
|
6584
6603
|
super(), this.id = t, this.angle = e;
|
|
6585
6604
|
}
|
|
@@ -6601,7 +6620,7 @@ class wc extends R {
|
|
|
6601
6620
|
};
|
|
6602
6621
|
}
|
|
6603
6622
|
}
|
|
6604
|
-
class
|
|
6623
|
+
class Ec extends R {
|
|
6605
6624
|
constructor(t, e, a) {
|
|
6606
6625
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6607
6626
|
}
|
|
@@ -6913,7 +6932,7 @@ class as extends R {
|
|
|
6913
6932
|
};
|
|
6914
6933
|
}
|
|
6915
6934
|
}
|
|
6916
|
-
class
|
|
6935
|
+
class Bc extends R {
|
|
6917
6936
|
constructor(t, e) {
|
|
6918
6937
|
super(), this.id = t, this.src = e;
|
|
6919
6938
|
}
|
|
@@ -7032,7 +7051,7 @@ class rs extends R {
|
|
|
7032
7051
|
};
|
|
7033
7052
|
}
|
|
7034
7053
|
}
|
|
7035
|
-
class
|
|
7054
|
+
class bc extends R {
|
|
7036
7055
|
/**
|
|
7037
7056
|
* @param id The targeted element to bring to the front.
|
|
7038
7057
|
*/
|
|
@@ -7061,7 +7080,7 @@ class vc extends R {
|
|
|
7061
7080
|
};
|
|
7062
7081
|
}
|
|
7063
7082
|
}
|
|
7064
|
-
class
|
|
7083
|
+
class Ic extends R {
|
|
7065
7084
|
/**
|
|
7066
7085
|
* @param id The targeted element to bring to the back.
|
|
7067
7086
|
*/
|
|
@@ -7092,7 +7111,7 @@ class Ec extends R {
|
|
|
7092
7111
|
};
|
|
7093
7112
|
}
|
|
7094
7113
|
}
|
|
7095
|
-
class
|
|
7114
|
+
class Dc extends R {
|
|
7096
7115
|
/**
|
|
7097
7116
|
* @param id The targeted element to bring to the front.
|
|
7098
7117
|
*/
|
|
@@ -7119,7 +7138,7 @@ class Bc extends R {
|
|
|
7119
7138
|
};
|
|
7120
7139
|
}
|
|
7121
7140
|
}
|
|
7122
|
-
class
|
|
7141
|
+
class Pc extends R {
|
|
7123
7142
|
/**
|
|
7124
7143
|
* @param id The targeted element to bring to the front.
|
|
7125
7144
|
*/
|
|
@@ -7157,7 +7176,7 @@ class za {
|
|
|
7157
7176
|
if (this.configuration.type === D.ProductOverlay) {
|
|
7158
7177
|
let u = "";
|
|
7159
7178
|
if ((l = this.product) != null && l.overlayImageUrl && (u = this.product.overlayImageUrl), s = u, !u)
|
|
7160
|
-
throw new
|
|
7179
|
+
throw new fe(this.configuration, "Couldn't find an asset for product overlay step");
|
|
7161
7180
|
}
|
|
7162
7181
|
const o = this.evaluateAssetType();
|
|
7163
7182
|
if (o === T.Image) {
|
|
@@ -7228,7 +7247,7 @@ class za {
|
|
|
7228
7247
|
}
|
|
7229
7248
|
async trigger() {
|
|
7230
7249
|
if (!this.configuration.data.regions)
|
|
7231
|
-
throw new
|
|
7250
|
+
throw new fe(this.configuration, "Missing regions.");
|
|
7232
7251
|
if (this.configuration.type === D.SilentIllustration) {
|
|
7233
7252
|
const t = this.configuration.data.regions.map(this.processRegion);
|
|
7234
7253
|
return Promise.all(t);
|
|
@@ -7258,7 +7277,7 @@ const is = async (r) => {
|
|
|
7258
7277
|
}
|
|
7259
7278
|
})).json()).shortUrl;
|
|
7260
7279
|
} catch (e) {
|
|
7261
|
-
throw console.error(e), new
|
|
7280
|
+
throw console.error(e), new Be("Failed to shorten URL, see console.");
|
|
7262
7281
|
}
|
|
7263
7282
|
};
|
|
7264
7283
|
class Ln {
|
|
@@ -7331,10 +7350,10 @@ class ss {
|
|
|
7331
7350
|
l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
|
|
7332
7351
|
const c = l.toString();
|
|
7333
7352
|
if (c.length >= 2e3)
|
|
7334
|
-
throw new
|
|
7353
|
+
throw new Be("Cannot create QR code, URL too long.");
|
|
7335
7354
|
const d = await is(c);
|
|
7336
7355
|
if (!n.data || !n.data.regions)
|
|
7337
|
-
throw new
|
|
7356
|
+
throw new fe(n, "Missing regions.");
|
|
7338
7357
|
const A = await this.regionElements(n), u = await this.command(d, A, a, n.stepName);
|
|
7339
7358
|
return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(n.stepName, [], A, async () => {
|
|
7340
7359
|
a.updateStorage(n.stepName, {
|
|
@@ -7377,7 +7396,7 @@ class ss {
|
|
|
7377
7396
|
}
|
|
7378
7397
|
}
|
|
7379
7398
|
const $n = new ss();
|
|
7380
|
-
class
|
|
7399
|
+
class we {
|
|
7381
7400
|
constructor() {
|
|
7382
7401
|
this.frameSourceSvg = async (t, e) => {
|
|
7383
7402
|
if (!t)
|
|
@@ -7491,7 +7510,7 @@ class Ce {
|
|
|
7491
7510
|
}
|
|
7492
7511
|
selectImage(t, e, a, n = !0) {
|
|
7493
7512
|
var l;
|
|
7494
|
-
const i =
|
|
7513
|
+
const i = we.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
|
|
7495
7514
|
if (s && s === i)
|
|
7496
7515
|
return Promise.resolve();
|
|
7497
7516
|
a.setEditedStatus(t.stepName, !0);
|
|
@@ -7512,7 +7531,7 @@ class Ce {
|
|
|
7512
7531
|
});
|
|
7513
7532
|
},
|
|
7514
7533
|
() => {
|
|
7515
|
-
throw new
|
|
7534
|
+
throw new Be("Failed to resolve transcoded PDF");
|
|
7516
7535
|
}
|
|
7517
7536
|
)
|
|
7518
7537
|
);
|
|
@@ -7574,7 +7593,7 @@ class Ce {
|
|
|
7574
7593
|
};
|
|
7575
7594
|
At.set(t, A), e.setPatternData(A, a);
|
|
7576
7595
|
} else {
|
|
7577
|
-
const s = await
|
|
7596
|
+
const s = await be(t, !0), o = await De(s), l = {
|
|
7578
7597
|
src: t,
|
|
7579
7598
|
width: o.width,
|
|
7580
7599
|
height: o.height,
|
|
@@ -7668,7 +7687,7 @@ class Ce {
|
|
|
7668
7687
|
i && i(!0);
|
|
7669
7688
|
const c = t.data.initialZoomLevel, d = await Promise.all(
|
|
7670
7689
|
t.data.regions.map(async (m, g) => {
|
|
7671
|
-
const f = await
|
|
7690
|
+
const f = await xe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
|
|
7672
7691
|
p,
|
|
7673
7692
|
f,
|
|
7674
7693
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
@@ -7736,7 +7755,7 @@ class Ce {
|
|
|
7736
7755
|
}
|
|
7737
7756
|
async loadPatternFromAsset(t, e, a, n) {
|
|
7738
7757
|
var c, d;
|
|
7739
|
-
const i =
|
|
7758
|
+
const i = we.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
|
|
7740
7759
|
if (!o)
|
|
7741
7760
|
throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
|
|
7742
7761
|
try {
|
|
@@ -7763,7 +7782,7 @@ class Ce {
|
|
|
7763
7782
|
), this.validateColorCount(e, a);
|
|
7764
7783
|
}
|
|
7765
7784
|
}
|
|
7766
|
-
const pt = new
|
|
7785
|
+
const pt = new we();
|
|
7767
7786
|
class os {
|
|
7768
7787
|
async getIllustrationBody(t) {
|
|
7769
7788
|
return new Promise((e) => {
|
|
@@ -7928,7 +7947,7 @@ class os {
|
|
|
7928
7947
|
async selectVariantCommand(t, e, a, n, i) {
|
|
7929
7948
|
var p;
|
|
7930
7949
|
if (!t.data || !t.data.regions)
|
|
7931
|
-
throw new
|
|
7950
|
+
throw new fe(t, "Missing regions.");
|
|
7932
7951
|
n(!0);
|
|
7933
7952
|
const s = a.map((C) => new vt(C.id));
|
|
7934
7953
|
t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
|
|
@@ -8011,12 +8030,12 @@ class os {
|
|
|
8011
8030
|
};
|
|
8012
8031
|
}
|
|
8013
8032
|
}
|
|
8014
|
-
const
|
|
8033
|
+
const de = new os();
|
|
8015
8034
|
class ls {
|
|
8016
8035
|
async init(t, e, a) {
|
|
8017
8036
|
const n = t.option;
|
|
8018
8037
|
if (!n)
|
|
8019
|
-
throw new
|
|
8038
|
+
throw new ge(t);
|
|
8020
8039
|
if (a)
|
|
8021
8040
|
await this.reload(t, e, a);
|
|
8022
8041
|
else {
|
|
@@ -8034,7 +8053,7 @@ class ls {
|
|
|
8034
8053
|
a.serializableWorkflow.steps
|
|
8035
8054
|
), o = Object.values(a.layouts).map((d) => d.elements).flat().filter((d) => d.stepName === t.stepName), l = t.option;
|
|
8036
8055
|
if (!l)
|
|
8037
|
-
throw new
|
|
8056
|
+
throw new ge(t);
|
|
8038
8057
|
if (n != null && n.selectedVariants) {
|
|
8039
8058
|
const d = n.selectedVariants[0].id;
|
|
8040
8059
|
if (d) {
|
|
@@ -8094,7 +8113,7 @@ class cs {
|
|
|
8094
8113
|
async init(t, e, a) {
|
|
8095
8114
|
const n = t.option;
|
|
8096
8115
|
if (!n)
|
|
8097
|
-
throw new
|
|
8116
|
+
throw new ge(t);
|
|
8098
8117
|
if (a)
|
|
8099
8118
|
await this.reload(t, e, a);
|
|
8100
8119
|
else {
|
|
@@ -8466,7 +8485,7 @@ class hs {
|
|
|
8466
8485
|
async init(t, e, a) {
|
|
8467
8486
|
const n = t.option;
|
|
8468
8487
|
if (!n)
|
|
8469
|
-
throw new
|
|
8488
|
+
throw new ge(t);
|
|
8470
8489
|
if (a)
|
|
8471
8490
|
await this.reload(t, e, a);
|
|
8472
8491
|
else {
|
|
@@ -8665,7 +8684,7 @@ const gs = new ms(), Ge = (r, t, e, a, n) => {
|
|
|
8665
8684
|
m || (c = !1);
|
|
8666
8685
|
}
|
|
8667
8686
|
return [null, null];
|
|
8668
|
-
},
|
|
8687
|
+
}, Ae = (r, t, e, a, n) => {
|
|
8669
8688
|
let i, s;
|
|
8670
8689
|
const o = St(t.assetUrl), l = o.getFont();
|
|
8671
8690
|
if (n.size) {
|
|
@@ -8683,16 +8702,16 @@ const gs = new ms(), Ge = (r, t, e, a, n) => {
|
|
|
8683
8702
|
const A = d / l.unitsPerEm;
|
|
8684
8703
|
return [i, s] = Ge(e, a, d, A, o), [d, i, s];
|
|
8685
8704
|
}, We = 30;
|
|
8686
|
-
class
|
|
8705
|
+
class ye extends Error {
|
|
8687
8706
|
constructor(t) {
|
|
8688
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8707
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ye.name;
|
|
8689
8708
|
}
|
|
8690
8709
|
}
|
|
8691
8710
|
const fs = ["‘", "’", "“", "”", `
|
|
8692
8711
|
`];
|
|
8693
|
-
class
|
|
8712
|
+
class Se extends Error {
|
|
8694
8713
|
constructor(t) {
|
|
8695
|
-
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name =
|
|
8714
|
+
super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Se.name;
|
|
8696
8715
|
}
|
|
8697
8716
|
}
|
|
8698
8717
|
class ps {
|
|
@@ -8906,7 +8925,7 @@ class ps {
|
|
|
8906
8925
|
}
|
|
8907
8926
|
getProcessedInput(t, e, a) {
|
|
8908
8927
|
const n = a ? t : this.injectReplaceableText(t, e);
|
|
8909
|
-
return
|
|
8928
|
+
return Ce(n, {
|
|
8910
8929
|
vertical: e.vertical,
|
|
8911
8930
|
uppercase: e.uppercase
|
|
8912
8931
|
});
|
|
@@ -8924,7 +8943,7 @@ class ps {
|
|
|
8924
8943
|
for (const A of e) {
|
|
8925
8944
|
if (!A.fontData)
|
|
8926
8945
|
throw new z("Failed to resolve font data for text.");
|
|
8927
|
-
const [u, h] =
|
|
8946
|
+
const [u, h] = Ae(
|
|
8928
8947
|
A.fontSize,
|
|
8929
8948
|
A.fontData,
|
|
8930
8949
|
{ left: A.x, top: A.y, width: A.width, height: A.height, rotation: A.rotation, panelId: "" },
|
|
@@ -9119,7 +9138,7 @@ class ps {
|
|
|
9119
9138
|
const h = s.getLayouts().find((f) => f.panelId === A.panelId), m = Q();
|
|
9120
9139
|
try {
|
|
9121
9140
|
if (!h)
|
|
9122
|
-
throw new
|
|
9141
|
+
throw new Se("Failed to find layout for region: " + A.panelId);
|
|
9123
9142
|
const f = a.colorOption;
|
|
9124
9143
|
let p;
|
|
9125
9144
|
if (f && f.variants) {
|
|
@@ -9158,7 +9177,7 @@ class ps {
|
|
|
9158
9177
|
}, S = [], B = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
|
|
9159
9178
|
if (!v.fontData)
|
|
9160
9179
|
throw new z("Failed to resolve font data for text.");
|
|
9161
|
-
const [I, P] =
|
|
9180
|
+
const [I, P] = Ae(
|
|
9162
9181
|
v.fontSize,
|
|
9163
9182
|
v.fontData,
|
|
9164
9183
|
{
|
|
@@ -9186,10 +9205,10 @@ class ps {
|
|
|
9186
9205
|
fontData: n
|
|
9187
9206
|
};
|
|
9188
9207
|
} catch (f) {
|
|
9189
|
-
throw console.log(f), new
|
|
9208
|
+
throw console.log(f), new ye("Error adding font to region");
|
|
9190
9209
|
}
|
|
9191
9210
|
}, d = await Promise.all(a.regions.map(c)).catch((A) => {
|
|
9192
|
-
throw A instanceof
|
|
9211
|
+
throw A instanceof ye ? (gs.setLatestToast("Failed to load font.", Me.Error), A) : A instanceof Se ? A : new Error(A);
|
|
9193
9212
|
});
|
|
9194
9213
|
return await s.setSelectionsAndElements(
|
|
9195
9214
|
t,
|
|
@@ -9219,7 +9238,7 @@ class ps {
|
|
|
9219
9238
|
const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
9220
9239
|
for (const v of h)
|
|
9221
9240
|
if (v.region) {
|
|
9222
|
-
const [S, B] =
|
|
9241
|
+
const [S, B] = Ae(
|
|
9223
9242
|
e,
|
|
9224
9243
|
a,
|
|
9225
9244
|
v.region,
|
|
@@ -9273,13 +9292,13 @@ const ws = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAEl
|
|
|
9273
9292
|
const e = tt("rect");
|
|
9274
9293
|
return e.setAttribute("height", `${r}`), e.setAttribute("width", `${t}`), e;
|
|
9275
9294
|
}, Ss = (r, t, e, a) => {
|
|
9276
|
-
const n =
|
|
9295
|
+
const n = ee("filter");
|
|
9277
9296
|
n.setAttribute("id", a), n.setAttribute("height", "200%"), n.setAttribute("width", "200%"), n.setAttribute("x", "-50%"), n.setAttribute("y", "-50%");
|
|
9278
|
-
const i =
|
|
9297
|
+
const i = ee("feOffset");
|
|
9279
9298
|
n.appendChild(i), i.setAttribute("result", "offOut"), i.setAttribute("in", "SourceAlpha"), i.setAttribute("dx", `${r}`), i.setAttribute("dy", `${t}`);
|
|
9280
|
-
const s =
|
|
9299
|
+
const s = ee("feGaussianBlur");
|
|
9281
9300
|
n.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
|
|
9282
|
-
const o =
|
|
9301
|
+
const o = ee("feBlend");
|
|
9283
9302
|
return n.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), n;
|
|
9284
9303
|
}, vs = (r) => {
|
|
9285
9304
|
let t = r;
|
|
@@ -9458,7 +9477,7 @@ async function Hn(r) {
|
|
|
9458
9477
|
return new Is();
|
|
9459
9478
|
throw new z(`Failed to resolve Module, Module ${r} not found`);
|
|
9460
9479
|
}
|
|
9461
|
-
const
|
|
9480
|
+
const te = y`
|
|
9462
9481
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
9463
9482
|
name
|
|
9464
9483
|
value
|
|
@@ -9481,7 +9500,7 @@ const xe = y`
|
|
|
9481
9500
|
}
|
|
9482
9501
|
}
|
|
9483
9502
|
`, Ds = y`
|
|
9484
|
-
${
|
|
9503
|
+
${te}
|
|
9485
9504
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
9486
9505
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
9487
9506
|
id
|
|
@@ -9491,7 +9510,7 @@ const xe = y`
|
|
|
9491
9510
|
}
|
|
9492
9511
|
}
|
|
9493
9512
|
`, Ps = y`
|
|
9494
|
-
${
|
|
9513
|
+
${te}
|
|
9495
9514
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
9496
9515
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
9497
9516
|
id
|
|
@@ -9502,7 +9521,7 @@ const xe = y`
|
|
|
9502
9521
|
}
|
|
9503
9522
|
`;
|
|
9504
9523
|
y`
|
|
9505
|
-
${
|
|
9524
|
+
${te}
|
|
9506
9525
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
9507
9526
|
globalPropertyState(bundleId: $bundleId) {
|
|
9508
9527
|
id
|
|
@@ -9513,7 +9532,7 @@ y`
|
|
|
9513
9532
|
}
|
|
9514
9533
|
`;
|
|
9515
9534
|
const Fs = y`
|
|
9516
|
-
${
|
|
9535
|
+
${Pe}
|
|
9517
9536
|
fragment ProductFields on Product {
|
|
9518
9537
|
id
|
|
9519
9538
|
basePrice
|
|
@@ -9626,7 +9645,7 @@ const Fs = y`
|
|
|
9626
9645
|
}
|
|
9627
9646
|
}
|
|
9628
9647
|
`, xs = (r) => y`
|
|
9629
|
-
${
|
|
9648
|
+
${te}
|
|
9630
9649
|
${ke(r)}
|
|
9631
9650
|
query GetBundle($id: String!) {
|
|
9632
9651
|
globalPropertyState(bundleId: $id) {
|
|
@@ -9806,6 +9825,7 @@ const Fs = y`
|
|
|
9806
9825
|
}
|
|
9807
9826
|
}
|
|
9808
9827
|
`, Rs = (r) => y`
|
|
9828
|
+
${te}
|
|
9809
9829
|
${ke(r)}
|
|
9810
9830
|
mutation DuplicateBundle(
|
|
9811
9831
|
$id: String!
|
|
@@ -10566,7 +10586,7 @@ class eo {
|
|
|
10566
10586
|
break;
|
|
10567
10587
|
case D.Illustration:
|
|
10568
10588
|
a.push(
|
|
10569
|
-
|
|
10589
|
+
de.init(l, this, this.reloadedState)
|
|
10570
10590
|
);
|
|
10571
10591
|
break;
|
|
10572
10592
|
case D.Material:
|
|
@@ -10888,7 +10908,7 @@ class ao extends rt {
|
|
|
10888
10908
|
*/
|
|
10889
10909
|
async selectVariant(t) {
|
|
10890
10910
|
if (!this.getUpdateState() && this.getCurrentVariant() !== t)
|
|
10891
|
-
return
|
|
10911
|
+
return de.selectVariant(
|
|
10892
10912
|
this.step,
|
|
10893
10913
|
t.getResource(),
|
|
10894
10914
|
this.manager.getRegionElements(this.step.stepName) || [],
|
|
@@ -10934,7 +10954,7 @@ class ao extends rt {
|
|
|
10934
10954
|
const d = c.id.replace(/\W/g, "");
|
|
10935
10955
|
a ? n.set(d, { browserValue: e, pmsValue: a }) : n.set(d, e);
|
|
10936
10956
|
}
|
|
10937
|
-
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e),
|
|
10957
|
+
}) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), de.changeColors(
|
|
10938
10958
|
this.step,
|
|
10939
10959
|
this.manager.getRegionElements(this.step.stepName),
|
|
10940
10960
|
this.manager,
|
|
@@ -10946,7 +10966,7 @@ class ao extends rt {
|
|
|
10946
10966
|
return this.step.data.colorOption;
|
|
10947
10967
|
}
|
|
10948
10968
|
getAvailableColors() {
|
|
10949
|
-
return this.step.data.colorPickerEnabled ?
|
|
10969
|
+
return this.step.data.colorPickerEnabled ? de.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
10950
10970
|
}
|
|
10951
10971
|
isColorPickerEnabled() {
|
|
10952
10972
|
return this.step.data.colorPickerEnabled ?? !1;
|
|
@@ -11360,7 +11380,7 @@ class uo extends rt {
|
|
|
11360
11380
|
});
|
|
11361
11381
|
}
|
|
11362
11382
|
}
|
|
11363
|
-
class
|
|
11383
|
+
class ie {
|
|
11364
11384
|
static get(t, e) {
|
|
11365
11385
|
switch (e.type) {
|
|
11366
11386
|
case D.DigitalContent:
|
|
@@ -11382,7 +11402,7 @@ class re {
|
|
|
11382
11402
|
case D.Model:
|
|
11383
11403
|
return new ro(t, e, t.getStepTags(e.stepName));
|
|
11384
11404
|
case D.Frame:
|
|
11385
|
-
return new
|
|
11405
|
+
return new Sl(t, e, t.getStepTags(e.stepName));
|
|
11386
11406
|
case D.Module:
|
|
11387
11407
|
return new uo(t, e, t.getStepTags(e.stepName));
|
|
11388
11408
|
default:
|
|
@@ -11462,14 +11482,14 @@ const Yn = y`
|
|
|
11462
11482
|
}
|
|
11463
11483
|
}
|
|
11464
11484
|
`;
|
|
11465
|
-
function
|
|
11485
|
+
function ve(r) {
|
|
11466
11486
|
const t = JSON.parse(atob(r.split(".")[1])).exp;
|
|
11467
11487
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
|
11468
11488
|
}
|
|
11469
11489
|
const go = async (r) => {
|
|
11470
11490
|
var s, o;
|
|
11471
11491
|
const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
|
|
11472
|
-
return a && !
|
|
11492
|
+
return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
|
|
11473
11493
|
mutation: ho,
|
|
11474
11494
|
errorPolicy: "all",
|
|
11475
11495
|
fetchPolicy: "no-cache",
|
|
@@ -11490,7 +11510,7 @@ const go = async (r) => {
|
|
|
11490
11510
|
}, fo = async (r) => {
|
|
11491
11511
|
var s, o;
|
|
11492
11512
|
const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
|
|
11493
|
-
return a && !
|
|
11513
|
+
return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
|
|
11494
11514
|
mutation: mo,
|
|
11495
11515
|
errorPolicy: "all",
|
|
11496
11516
|
fetchPolicy: "no-cache",
|
|
@@ -11649,7 +11669,7 @@ const go = async (r) => {
|
|
|
11649
11669
|
const P = await (await ct(B)).blob();
|
|
11650
11670
|
B = (await U.uploadAsset(
|
|
11651
11671
|
{ name: `${n.id}-preview-image.png`, blob: P },
|
|
11652
|
-
|
|
11672
|
+
he.Image,
|
|
11653
11673
|
!0,
|
|
11654
11674
|
!1
|
|
11655
11675
|
)).fileLink;
|
|
@@ -12015,7 +12035,7 @@ class bo {
|
|
|
12015
12035
|
height: d.layoutState.layout.height
|
|
12016
12036
|
}, u = this.commandContext.getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
|
|
12017
12037
|
if (!h)
|
|
12018
|
-
throw new
|
|
12038
|
+
throw new Be("Failed to obtain 2D context for preview image creation");
|
|
12019
12039
|
const m = wa(u.layoutState.layout, u.layoutState.elements, {
|
|
12020
12040
|
renderingConfiguration: {
|
|
12021
12041
|
purpose: Gt.Print,
|
|
@@ -12040,7 +12060,7 @@ class bo {
|
|
|
12040
12060
|
const a = this.cachedStepHandles.get(e.stepName);
|
|
12041
12061
|
if (a)
|
|
12042
12062
|
return a;
|
|
12043
|
-
const n =
|
|
12063
|
+
const n = ie.get(this.getWorkflowManager(), e);
|
|
12044
12064
|
return this.cachedStepHandles.set(e.stepName, n), n;
|
|
12045
12065
|
}
|
|
12046
12066
|
getSteps() {
|
|
@@ -12144,10 +12164,10 @@ class bo {
|
|
|
12144
12164
|
getStepByName(t) {
|
|
12145
12165
|
const e = this.getWorkflowManager().getWorkflow().steps.find((a) => a.stepTitle === t);
|
|
12146
12166
|
if (!(!e || !this.stepHasHandle(e)))
|
|
12147
|
-
return
|
|
12167
|
+
return ie.get(this.getWorkflowManager(), e);
|
|
12148
12168
|
}
|
|
12149
12169
|
getStepsByType(t) {
|
|
12150
|
-
return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) =>
|
|
12170
|
+
return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) => ie.get(this.getWorkflowManager(), e));
|
|
12151
12171
|
}
|
|
12152
12172
|
getStepsByScene(t) {
|
|
12153
12173
|
if (!this.getWorkflowManager().getWorkflow().stepGroups.find((a) => a.name === t.name))
|
|
@@ -12156,7 +12176,7 @@ class bo {
|
|
|
12156
12176
|
);
|
|
12157
12177
|
return t.stepIds.map(
|
|
12158
12178
|
(a) => this.getWorkflowManager().getWorkflow().steps.find((n) => n.stepName === a)
|
|
12159
|
-
).filter((a) => this.stepHasHandle(a)).map((a) =>
|
|
12179
|
+
).filter((a) => this.stepHasHandle(a)).map((a) => ie.get(this.getWorkflowManager(), a));
|
|
12160
12180
|
}
|
|
12161
12181
|
async attachCustomerDetails(t) {
|
|
12162
12182
|
return this.assignCustomerDetails({ emailAddress: t.email });
|
|
@@ -12367,7 +12387,7 @@ const Io = [
|
|
|
12367
12387
|
o && (t[a.stepName] = { selectedVariants: [o] });
|
|
12368
12388
|
const l = async (c) => {
|
|
12369
12389
|
var g;
|
|
12370
|
-
const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await
|
|
12390
|
+
const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
|
|
12371
12391
|
if (!h)
|
|
12372
12392
|
throw new Y(c);
|
|
12373
12393
|
const m = Sa(
|
|
@@ -12705,7 +12725,7 @@ const Io = [
|
|
|
12705
12725
|
assetUrl: f,
|
|
12706
12726
|
name: p.names.fullName.en
|
|
12707
12727
|
};
|
|
12708
|
-
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u =
|
|
12728
|
+
})(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Ce(A, {
|
|
12709
12729
|
vertical: a.data.vertical,
|
|
12710
12730
|
uppercase: a.data.uppercase
|
|
12711
12731
|
}), h = async (f) => {
|
|
@@ -12741,12 +12761,12 @@ const Io = [
|
|
|
12741
12761
|
y: f.top
|
|
12742
12762
|
};
|
|
12743
12763
|
if (d) {
|
|
12744
|
-
const [w, v] =
|
|
12764
|
+
const [w, v] = Ae(
|
|
12745
12765
|
a.data.size || s,
|
|
12746
12766
|
d,
|
|
12747
12767
|
f,
|
|
12748
12768
|
[
|
|
12749
|
-
|
|
12769
|
+
Ce(u, {
|
|
12750
12770
|
vertical: a.data.vertical,
|
|
12751
12771
|
uppercase: a.data.uppercase
|
|
12752
12772
|
})
|
|
@@ -12999,7 +13019,7 @@ class Vo extends Dn {
|
|
|
12999
13019
|
u.resize(l, c), await u.render(), this.onRender();
|
|
13000
13020
|
}
|
|
13001
13021
|
}
|
|
13002
|
-
const
|
|
13022
|
+
const Fc = (r, t) => {
|
|
13003
13023
|
const e = [];
|
|
13004
13024
|
return r.forEach((a) => {
|
|
13005
13025
|
const n = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -13010,7 +13030,7 @@ const Ic = (r, t) => {
|
|
|
13010
13030
|
}
|
|
13011
13031
|
});
|
|
13012
13032
|
}), e;
|
|
13013
|
-
},
|
|
13033
|
+
}, xc = async (r, t, e, a) => {
|
|
13014
13034
|
let n = {
|
|
13015
13035
|
serializableWorkflow: { steps: [] },
|
|
13016
13036
|
layouts: {}
|
|
@@ -13805,7 +13825,83 @@ class Ho {
|
|
|
13805
13825
|
};
|
|
13806
13826
|
}
|
|
13807
13827
|
}
|
|
13808
|
-
|
|
13828
|
+
const qo = y`
|
|
13829
|
+
query GetManyMetafields($entityIds: [String!]!) {
|
|
13830
|
+
metafieldsMany(entityIds: $entityIds) {
|
|
13831
|
+
id
|
|
13832
|
+
value
|
|
13833
|
+
metafieldConfiguration {
|
|
13834
|
+
id
|
|
13835
|
+
name
|
|
13836
|
+
}
|
|
13837
|
+
}
|
|
13838
|
+
}
|
|
13839
|
+
`;
|
|
13840
|
+
class Yo {
|
|
13841
|
+
constructor() {
|
|
13842
|
+
this.internalMap = /* @__PURE__ */ new Map();
|
|
13843
|
+
}
|
|
13844
|
+
/**
|
|
13845
|
+
* Givena specific entity, request the given keys for that entity.
|
|
13846
|
+
* This will first check if the keys are already present in the internal map, and if not, it will fetch them from the server.
|
|
13847
|
+
* @param entityId The entity to check.
|
|
13848
|
+
* @param keys The keys to look for.
|
|
13849
|
+
* @returns Returns map of keys and values for the given entity. Missing keys will not be present. Use map.has() to check if a key was present.
|
|
13850
|
+
*/
|
|
13851
|
+
async requestKeysForEntity(t, e) {
|
|
13852
|
+
const a = /* @__PURE__ */ new Map();
|
|
13853
|
+
return await this.ensureIdsArePresent(e), e.forEach((n) => {
|
|
13854
|
+
const i = this.requestKeyForEntityIfAvailable(t, n);
|
|
13855
|
+
i && a.set(n, i);
|
|
13856
|
+
}), a;
|
|
13857
|
+
}
|
|
13858
|
+
async ensureIdsArePresent(t) {
|
|
13859
|
+
if (t.every((a) => this.internalMap.has(a)))
|
|
13860
|
+
return;
|
|
13861
|
+
const e = await b.getShadowGraphqlClient().query({
|
|
13862
|
+
query: qo,
|
|
13863
|
+
errorPolicy: "all",
|
|
13864
|
+
variables: {
|
|
13865
|
+
entityIds: t.filter((a) => !this.internalMap.has(a))
|
|
13866
|
+
}
|
|
13867
|
+
});
|
|
13868
|
+
t.forEach((a, n) => {
|
|
13869
|
+
const i = e.data.metafieldsMany[n];
|
|
13870
|
+
this.internalMap.set(
|
|
13871
|
+
a,
|
|
13872
|
+
i.map((s) => ({ key: s.metafieldConfiguration.name, value: s.value }))
|
|
13873
|
+
);
|
|
13874
|
+
});
|
|
13875
|
+
}
|
|
13876
|
+
/**
|
|
13877
|
+
* Returns a metafield for this product if available. Fetching from the server if not available locally.
|
|
13878
|
+
* @param entityId The entity to request a field for.
|
|
13879
|
+
* @param key The field name to request
|
|
13880
|
+
* @returns A promise resolving to the field if available or undefined if not.
|
|
13881
|
+
*/
|
|
13882
|
+
async requestKeyForEntity(t, e) {
|
|
13883
|
+
if (!this.internalMap.has(t))
|
|
13884
|
+
return;
|
|
13885
|
+
let a = this.internalMap.get(t);
|
|
13886
|
+
const n = a.find((i) => i.key === e);
|
|
13887
|
+
return n || (await this.ensureIdsArePresent([t]), a = this.internalMap.get(t)), n ? JSON.parse(n.value) : void 0;
|
|
13888
|
+
}
|
|
13889
|
+
/**
|
|
13890
|
+
* Returns a metafield for this product if available. Checks locally only, use ensureIdsArePresent to fetch first from the server.
|
|
13891
|
+
* @param entityId The entity to request a field for.
|
|
13892
|
+
* @param key The field name to request
|
|
13893
|
+
* @returns A promise resolving to the field if available or undefined if not.
|
|
13894
|
+
*/
|
|
13895
|
+
requestKeyForEntityIfAvailable(t, e) {
|
|
13896
|
+
if (!this.internalMap.has(t))
|
|
13897
|
+
return;
|
|
13898
|
+
const n = this.internalMap.get(t).find((i) => i.key === e);
|
|
13899
|
+
if (n)
|
|
13900
|
+
return JSON.parse(n.value);
|
|
13901
|
+
}
|
|
13902
|
+
}
|
|
13903
|
+
const Jo = new Yo();
|
|
13904
|
+
class Ko {
|
|
13809
13905
|
constructor(t) {
|
|
13810
13906
|
this.fullFetched = !1, this.collection = t;
|
|
13811
13907
|
const e = this.collection.productCollectionProducts;
|
|
@@ -13841,14 +13937,14 @@ class qo {
|
|
|
13841
13937
|
getProducts() {
|
|
13842
13938
|
if (!this.collection.productCollectionProducts)
|
|
13843
13939
|
throw new Error("Failed to find products on collection. Ensure you fetch them first!");
|
|
13844
|
-
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new
|
|
13940
|
+
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new se(t));
|
|
13845
13941
|
}
|
|
13846
13942
|
/**
|
|
13847
13943
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
13848
13944
|
*/
|
|
13849
13945
|
async fetchProducts(t) {
|
|
13850
13946
|
if (this.fullFetched)
|
|
13851
|
-
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
13947
|
+
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
|
|
13852
13948
|
const e = await b.getShadowGraphqlClient().query({
|
|
13853
13949
|
query: Ms,
|
|
13854
13950
|
variables: {
|
|
@@ -13857,7 +13953,7 @@ class qo {
|
|
|
13857
13953
|
},
|
|
13858
13954
|
errorPolicy: "all"
|
|
13859
13955
|
});
|
|
13860
|
-
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new
|
|
13956
|
+
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
|
|
13861
13957
|
}
|
|
13862
13958
|
/**
|
|
13863
13959
|
* Returns a list of collections products matching the associated metafield filters.
|
|
@@ -13913,13 +14009,13 @@ class qo {
|
|
|
13913
14009
|
errorPolicy: "all"
|
|
13914
14010
|
});
|
|
13915
14011
|
return {
|
|
13916
|
-
items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new
|
|
14012
|
+
items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new se(u))) || [],
|
|
13917
14013
|
total: ((A = (d = (c = n == null ? void 0 : n.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.total) ?? 0
|
|
13918
14014
|
};
|
|
13919
14015
|
}
|
|
13920
14016
|
getTransformCollection() {
|
|
13921
14017
|
if (this.collection.transformCollection)
|
|
13922
|
-
return new
|
|
14018
|
+
return new _o(this.collection.transformCollection);
|
|
13923
14019
|
}
|
|
13924
14020
|
/**
|
|
13925
14021
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -13928,7 +14024,7 @@ class qo {
|
|
|
13928
14024
|
return this.collection;
|
|
13929
14025
|
}
|
|
13930
14026
|
}
|
|
13931
|
-
class
|
|
14027
|
+
class se {
|
|
13932
14028
|
constructor(t) {
|
|
13933
14029
|
this.product = t.product, this.productResource = t;
|
|
13934
14030
|
}
|
|
@@ -14055,6 +14151,14 @@ class ie {
|
|
|
14055
14151
|
}
|
|
14056
14152
|
), (o = a == null ? void 0 : a.additionalIntegrationProduct) != null && o.product ? e + (a.additionalIntegrationProduct.product.basePrice || 0) : e;
|
|
14057
14153
|
}
|
|
14154
|
+
/**
|
|
14155
|
+
* Requests a set of metafields for this product. Metafields that are not available locally will be fetched from the server.
|
|
14156
|
+
* @param keys The set of metafield keys to request.
|
|
14157
|
+
* @returns A map of metafield key to value. Any unavailable keys will not be present in the map. use map.has() to check if a key is present.
|
|
14158
|
+
*/
|
|
14159
|
+
async RequestMetafields(t) {
|
|
14160
|
+
return Jo.requestKeysForEntity(this.product.id, t);
|
|
14161
|
+
}
|
|
14058
14162
|
}
|
|
14059
14163
|
class zt {
|
|
14060
14164
|
constructor(t) {
|
|
@@ -14080,7 +14184,7 @@ class zt {
|
|
|
14080
14184
|
return this.workflow.imageUrl;
|
|
14081
14185
|
}
|
|
14082
14186
|
}
|
|
14083
|
-
class
|
|
14187
|
+
class _o {
|
|
14084
14188
|
constructor(t) {
|
|
14085
14189
|
this.collection = t;
|
|
14086
14190
|
}
|
|
@@ -14100,10 +14204,10 @@ class Yo {
|
|
|
14100
14204
|
* @returns The transforms in this collection.
|
|
14101
14205
|
*/
|
|
14102
14206
|
getTransforms() {
|
|
14103
|
-
return this.collection.transforms.map((t) => new
|
|
14207
|
+
return this.collection.transforms.map((t) => new Xo(t));
|
|
14104
14208
|
}
|
|
14105
14209
|
}
|
|
14106
|
-
class
|
|
14210
|
+
class Xo {
|
|
14107
14211
|
constructor(t) {
|
|
14108
14212
|
this.transform = t;
|
|
14109
14213
|
}
|
|
@@ -14130,7 +14234,7 @@ class Jo {
|
|
|
14130
14234
|
};
|
|
14131
14235
|
}
|
|
14132
14236
|
}
|
|
14133
|
-
const
|
|
14237
|
+
const Zo = y`
|
|
14134
14238
|
mutation AddAddressToBundle(
|
|
14135
14239
|
$bundleId: String!
|
|
14136
14240
|
$streetAddress: String
|
|
@@ -14152,21 +14256,21 @@ const Ko = y`
|
|
|
14152
14256
|
id
|
|
14153
14257
|
}
|
|
14154
14258
|
}
|
|
14155
|
-
`,
|
|
14259
|
+
`, tl = y`
|
|
14156
14260
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14157
14261
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14158
14262
|
id
|
|
14159
14263
|
}
|
|
14160
14264
|
}
|
|
14161
|
-
`,
|
|
14265
|
+
`, el = y`
|
|
14162
14266
|
mutation GenerateQuoteId($id: String!) {
|
|
14163
14267
|
bundleGenerateQuoteId(id: $id) {
|
|
14164
14268
|
id
|
|
14165
14269
|
quoteId
|
|
14166
14270
|
}
|
|
14167
14271
|
}
|
|
14168
|
-
`,
|
|
14169
|
-
const n =
|
|
14272
|
+
`, al = (r, t, e, a) => r.flatMap((n) => n.getSteps()).filter((n) => n.getGlobalPropertyAspects(t).includes(e) && n.getType() === a), nl = (r, t, e) => {
|
|
14273
|
+
const n = al(
|
|
14170
14274
|
r,
|
|
14171
14275
|
t,
|
|
14172
14276
|
e,
|
|
@@ -14220,7 +14324,7 @@ class He {
|
|
|
14220
14324
|
async generateQuoteId() {
|
|
14221
14325
|
var a, n;
|
|
14222
14326
|
const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
|
|
14223
|
-
mutation:
|
|
14327
|
+
mutation: el,
|
|
14224
14328
|
variables: {
|
|
14225
14329
|
id: this.id
|
|
14226
14330
|
},
|
|
@@ -14232,7 +14336,7 @@ class He {
|
|
|
14232
14336
|
}
|
|
14233
14337
|
async attachAddress(t, e, a, n, i, s) {
|
|
14234
14338
|
await b.getShadowGraphqlClient().mutate({
|
|
14235
|
-
mutation:
|
|
14339
|
+
mutation: Zo,
|
|
14236
14340
|
variables: {
|
|
14237
14341
|
bundleId: this.id,
|
|
14238
14342
|
streetAddress: t || void 0,
|
|
@@ -14249,7 +14353,7 @@ class He {
|
|
|
14249
14353
|
}
|
|
14250
14354
|
async attachOrganization(t) {
|
|
14251
14355
|
await b.getShadowGraphqlClient().mutate({
|
|
14252
|
-
mutation:
|
|
14356
|
+
mutation: tl,
|
|
14253
14357
|
variables: {
|
|
14254
14358
|
bundleId: this.id,
|
|
14255
14359
|
organizationName: t
|
|
@@ -14323,7 +14427,7 @@ class He {
|
|
|
14323
14427
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
14324
14428
|
}
|
|
14325
14429
|
getProductCollection() {
|
|
14326
|
-
return this.productCollection ? new
|
|
14430
|
+
return this.productCollection ? new Ko(this.productCollection) : void 0;
|
|
14327
14431
|
}
|
|
14328
14432
|
async initializeAdditionalRequiredColorChannels(t) {
|
|
14329
14433
|
var e, a, n, i;
|
|
@@ -14334,7 +14438,7 @@ class He {
|
|
|
14334
14438
|
(d) => d.name === l
|
|
14335
14439
|
);
|
|
14336
14440
|
if (c && c.type === et.ColorOption) {
|
|
14337
|
-
const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h =
|
|
14441
|
+
const d = (a = s.getCurrentVariant()) == null ? void 0 : a.getAssetResource(), A = ((n = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : n.channelNumbers) || [], u = ((i = d == null ? void 0 : d.assetConfiguration) == null ? void 0 : i.defaultColorVariants) || [], h = nl(
|
|
14338
14442
|
this.getWorkflowExperiences(),
|
|
14339
14443
|
this.globalConfigurationPropertyId || "",
|
|
14340
14444
|
l
|
|
@@ -14526,7 +14630,7 @@ class He {
|
|
|
14526
14630
|
variables: {
|
|
14527
14631
|
id: this.id,
|
|
14528
14632
|
details: t,
|
|
14529
|
-
type: e ||
|
|
14633
|
+
type: e || me.Owner
|
|
14530
14634
|
},
|
|
14531
14635
|
context: {
|
|
14532
14636
|
bundleOwnerId: this.ownerId
|
|
@@ -14834,14 +14938,14 @@ class He {
|
|
|
14834
14938
|
};
|
|
14835
14939
|
}
|
|
14836
14940
|
}
|
|
14837
|
-
const
|
|
14941
|
+
const rl = y`
|
|
14838
14942
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
14839
14943
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
14840
14944
|
id
|
|
14841
14945
|
}
|
|
14842
14946
|
}
|
|
14843
14947
|
`;
|
|
14844
|
-
class
|
|
14948
|
+
class il {
|
|
14845
14949
|
/**
|
|
14846
14950
|
*
|
|
14847
14951
|
* @param id
|
|
@@ -14852,7 +14956,7 @@ class al {
|
|
|
14852
14956
|
async execute(t, e, a) {
|
|
14853
14957
|
var A, u, h;
|
|
14854
14958
|
const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
|
|
14855
|
-
mutation:
|
|
14959
|
+
mutation: rl,
|
|
14856
14960
|
variables: {
|
|
14857
14961
|
processFlowId: t,
|
|
14858
14962
|
inputs: [...e.map((m) => m.getValueForTransmission())]
|
|
@@ -14894,7 +14998,7 @@ class al {
|
|
|
14894
14998
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
14895
14999
|
);
|
|
14896
15000
|
if (m.completedAt) {
|
|
14897
|
-
o = !0, d = new
|
|
15001
|
+
o = !0, d = new sl(m);
|
|
14898
15002
|
break;
|
|
14899
15003
|
}
|
|
14900
15004
|
l += 1;
|
|
@@ -14908,7 +15012,7 @@ class al {
|
|
|
14908
15012
|
return Promise.resolve(d);
|
|
14909
15013
|
}
|
|
14910
15014
|
}
|
|
14911
|
-
class
|
|
15015
|
+
class sl {
|
|
14912
15016
|
constructor(t) {
|
|
14913
15017
|
this.execution = t;
|
|
14914
15018
|
}
|
|
@@ -14922,14 +15026,14 @@ class nl {
|
|
|
14922
15026
|
* @returns The nodes contained within the execution.
|
|
14923
15027
|
*/
|
|
14924
15028
|
getNodes() {
|
|
14925
|
-
return this.execution.nodes.map((t) => new
|
|
15029
|
+
return this.execution.nodes.map((t) => new oe(t));
|
|
14926
15030
|
}
|
|
14927
15031
|
/**
|
|
14928
15032
|
* @param type The type of node to return.
|
|
14929
15033
|
* @returns A list of nodes matching the requested type.
|
|
14930
15034
|
*/
|
|
14931
15035
|
getNodesByType(t) {
|
|
14932
|
-
return this.execution.nodes.filter((e) => e.type === t).map((e) => new
|
|
15036
|
+
return this.execution.nodes.filter((e) => e.type === t).map((e) => new oe(e));
|
|
14933
15037
|
}
|
|
14934
15038
|
/**
|
|
14935
15039
|
* @returns A list of input nodes that exist in this execution.
|
|
@@ -14938,7 +15042,7 @@ class nl {
|
|
|
14938
15042
|
return this.execution.nodes.filter(
|
|
14939
15043
|
(t) => t.type === "StartTerminal"
|
|
14940
15044
|
/* StartTerminal */
|
|
14941
|
-
).map((t) => new
|
|
15045
|
+
).map((t) => new oe(t));
|
|
14942
15046
|
}
|
|
14943
15047
|
/**
|
|
14944
15048
|
* @returns A list of out put nodes that exist in this execution.
|
|
@@ -14947,7 +15051,7 @@ class nl {
|
|
|
14947
15051
|
return this.execution.nodes.filter(
|
|
14948
15052
|
(t) => t.type === "EndTerminal"
|
|
14949
15053
|
/* EndTerminal */
|
|
14950
|
-
).map((t) => new
|
|
15054
|
+
).map((t) => new oe(t));
|
|
14951
15055
|
}
|
|
14952
15056
|
/**
|
|
14953
15057
|
* @returns A date object representing the point in time this execution completed.
|
|
@@ -14964,7 +15068,7 @@ class nl {
|
|
|
14964
15068
|
return new Date(this.execution.failedAt);
|
|
14965
15069
|
}
|
|
14966
15070
|
}
|
|
14967
|
-
class
|
|
15071
|
+
class oe {
|
|
14968
15072
|
constructor(t) {
|
|
14969
15073
|
this.node = t;
|
|
14970
15074
|
}
|
|
@@ -14993,8 +15097,8 @@ class ba {
|
|
|
14993
15097
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
14994
15098
|
}
|
|
14995
15099
|
}
|
|
14996
|
-
var
|
|
14997
|
-
class
|
|
15100
|
+
var ol = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(ol || {});
|
|
15101
|
+
class kc extends ba {
|
|
14998
15102
|
constructor(t) {
|
|
14999
15103
|
super(`"${t}"`);
|
|
15000
15104
|
}
|
|
@@ -15009,7 +15113,7 @@ class Xn extends ba {
|
|
|
15009
15113
|
return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
|
|
15010
15114
|
}
|
|
15011
15115
|
}
|
|
15012
|
-
class
|
|
15116
|
+
class Mc extends ba {
|
|
15013
15117
|
constructor(t) {
|
|
15014
15118
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15015
15119
|
}
|
|
@@ -15067,7 +15171,7 @@ const Ya = y`
|
|
|
15067
15171
|
}
|
|
15068
15172
|
}
|
|
15069
15173
|
}
|
|
15070
|
-
`,
|
|
15174
|
+
`, ll = y`
|
|
15071
15175
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15072
15176
|
customerCreate(details: $details) {
|
|
15073
15177
|
id
|
|
@@ -15077,7 +15181,7 @@ const Ya = y`
|
|
|
15077
15181
|
}
|
|
15078
15182
|
}
|
|
15079
15183
|
}
|
|
15080
|
-
`,
|
|
15184
|
+
`, cl = y`
|
|
15081
15185
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
15082
15186
|
customerAuthenticate(loginToken: $loginToken) {
|
|
15083
15187
|
id
|
|
@@ -15107,11 +15211,11 @@ const Ya = y`
|
|
|
15107
15211
|
}
|
|
15108
15212
|
}
|
|
15109
15213
|
}
|
|
15110
|
-
`,
|
|
15214
|
+
`, dl = y`
|
|
15111
15215
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15112
15216
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15113
15217
|
}
|
|
15114
|
-
`,
|
|
15218
|
+
`, Al = y`
|
|
15115
15219
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
15116
15220
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
15117
15221
|
id
|
|
@@ -15142,7 +15246,7 @@ const Ya = y`
|
|
|
15142
15246
|
}
|
|
15143
15247
|
}
|
|
15144
15248
|
}
|
|
15145
|
-
`,
|
|
15249
|
+
`, ul = y`
|
|
15146
15250
|
query CustomerMetafields($id: String!) {
|
|
15147
15251
|
metafields(entityId: $id) {
|
|
15148
15252
|
id
|
|
@@ -15160,7 +15264,7 @@ const Ya = y`
|
|
|
15160
15264
|
}
|
|
15161
15265
|
}
|
|
15162
15266
|
}
|
|
15163
|
-
`,
|
|
15267
|
+
`, hl = async (r, t) => {
|
|
15164
15268
|
var n;
|
|
15165
15269
|
const e = await b.getShadowGraphqlClient().query({
|
|
15166
15270
|
query: Ei(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
@@ -15184,7 +15288,7 @@ const Ya = y`
|
|
|
15184
15288
|
}), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15185
15289
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15186
15290
|
}), a;
|
|
15187
|
-
},
|
|
15291
|
+
}, ml = async (r, t) => {
|
|
15188
15292
|
const a = (await t).find((n) => n.id === r);
|
|
15189
15293
|
if (!a)
|
|
15190
15294
|
throw new Error(`Workflow not found: ${r}`);
|
|
@@ -15193,11 +15297,11 @@ const Ya = y`
|
|
|
15193
15297
|
const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15194
15298
|
if (a.length === 0)
|
|
15195
15299
|
return Promise.all(e);
|
|
15196
|
-
const n =
|
|
15197
|
-
(o) => Ht.set({ id: o, options: t },
|
|
15300
|
+
const n = hl(a, t), i = a.map(
|
|
15301
|
+
(o) => Ht.set({ id: o, options: t }, ml(o, n))
|
|
15198
15302
|
), s = e.filter((o) => o !== void 0);
|
|
15199
15303
|
return await Promise.all(s.concat(i));
|
|
15200
|
-
},
|
|
15304
|
+
}, Tc = async (r, t) => (await Zn([r], t))[0], gl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
15201
15305
|
id: Q(),
|
|
15202
15306
|
panelId: t.name,
|
|
15203
15307
|
name: t.name,
|
|
@@ -15211,11 +15315,11 @@ const Ya = y`
|
|
|
15211
15315
|
previewRegion: t.previewRegion,
|
|
15212
15316
|
useEditableArea: t.useEditableArea,
|
|
15213
15317
|
editableArea: t.editableArea
|
|
15214
|
-
})),
|
|
15318
|
+
})), fl = (r, t) => {
|
|
15215
15319
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
15216
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
15320
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : gl(t.panels);
|
|
15217
15321
|
};
|
|
15218
|
-
class
|
|
15322
|
+
class Qc {
|
|
15219
15323
|
constructor(t) {
|
|
15220
15324
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15221
15325
|
try {
|
|
@@ -15226,7 +15330,7 @@ class kc {
|
|
|
15226
15330
|
} catch (a) {
|
|
15227
15331
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15228
15332
|
}
|
|
15229
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15333
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.24.0-beta.81d49647-fa95-50b2-8ba8-0f5dc6ba986f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15230
15334
|
}
|
|
15231
15335
|
configure(t) {
|
|
15232
15336
|
wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -15246,14 +15350,14 @@ class kc {
|
|
|
15246
15350
|
getFlowService() {
|
|
15247
15351
|
if (!xr())
|
|
15248
15352
|
throw new Error("Application key required to use Flow Service.");
|
|
15249
|
-
return new
|
|
15353
|
+
return new il();
|
|
15250
15354
|
}
|
|
15251
15355
|
async getIntegration() {
|
|
15252
15356
|
if (this.activeIntegration)
|
|
15253
15357
|
return this.activeIntegration;
|
|
15254
15358
|
if (!this.options.applicationKey)
|
|
15255
15359
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
15256
|
-
return this.activeIntegration =
|
|
15360
|
+
return this.activeIntegration = pl(this.options.applicationKey), this.activeIntegration;
|
|
15257
15361
|
}
|
|
15258
15362
|
async canUseAddon(t) {
|
|
15259
15363
|
var e;
|
|
@@ -15273,7 +15377,7 @@ class kc {
|
|
|
15273
15377
|
var n, i;
|
|
15274
15378
|
const e = k.getMap("bundleOwnerIds");
|
|
15275
15379
|
if (e != null && e.has(t))
|
|
15276
|
-
return Promise.resolve({ success: !0, stakeholderType:
|
|
15380
|
+
return Promise.resolve({ success: !0, stakeholderType: me.Owner });
|
|
15277
15381
|
const a = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
15278
15382
|
if (a.has(t)) {
|
|
15279
15383
|
const s = a.get(t), l = (k.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map()).get(s);
|
|
@@ -15322,7 +15426,7 @@ class kc {
|
|
|
15322
15426
|
return Promise.resolve({ success: !1, transactionReadOnly: !0 });
|
|
15323
15427
|
const s = k.getMap("transactionOwnerIds");
|
|
15324
15428
|
if (s != null && s.has(t))
|
|
15325
|
-
return Promise.resolve({ success: !0, stakeholderType:
|
|
15429
|
+
return Promise.resolve({ success: !0, stakeholderType: me.Owner });
|
|
15326
15430
|
const o = k.getMap("transactionCustomerIds");
|
|
15327
15431
|
if (o != null && o.has(t)) {
|
|
15328
15432
|
const f = o.get(t);
|
|
@@ -15402,7 +15506,7 @@ class kc {
|
|
|
15402
15506
|
})).data.customer;
|
|
15403
15507
|
if (!n.id) {
|
|
15404
15508
|
const l = (s = (await e.mutate({
|
|
15405
|
-
mutation:
|
|
15509
|
+
mutation: ll,
|
|
15406
15510
|
errorPolicy: "all",
|
|
15407
15511
|
fetchPolicy: "no-cache",
|
|
15408
15512
|
variables: {
|
|
@@ -15437,7 +15541,7 @@ class kc {
|
|
|
15437
15541
|
if (!n)
|
|
15438
15542
|
return !1;
|
|
15439
15543
|
const s = (o = (await e.mutate({
|
|
15440
|
-
mutation:
|
|
15544
|
+
mutation: cl,
|
|
15441
15545
|
errorPolicy: "all",
|
|
15442
15546
|
fetchPolicy: "no-cache",
|
|
15443
15547
|
variables: {
|
|
@@ -15452,7 +15556,7 @@ class kc {
|
|
|
15452
15556
|
*/
|
|
15453
15557
|
async generateVerificationCode(t) {
|
|
15454
15558
|
await b.getShadowGraphqlClient().mutate({
|
|
15455
|
-
mutation:
|
|
15559
|
+
mutation: dl,
|
|
15456
15560
|
variables: {
|
|
15457
15561
|
emailAddress: t
|
|
15458
15562
|
}
|
|
@@ -15467,7 +15571,7 @@ class kc {
|
|
|
15467
15571
|
async verifyCode(t, e) {
|
|
15468
15572
|
var i, s;
|
|
15469
15573
|
const n = (i = (await b.getShadowGraphqlClient().mutate({
|
|
15470
|
-
mutation:
|
|
15574
|
+
mutation: Al,
|
|
15471
15575
|
errorPolicy: "all",
|
|
15472
15576
|
fetchPolicy: "no-cache",
|
|
15473
15577
|
variables: {
|
|
@@ -15491,7 +15595,7 @@ class kc {
|
|
|
15491
15595
|
if (!((e = this.customer) != null && e.id))
|
|
15492
15596
|
throw new Error("Customer must be logged in before calling this function.");
|
|
15493
15597
|
return (await b.getShadowGraphqlClient().query({
|
|
15494
|
-
query:
|
|
15598
|
+
query: ul,
|
|
15495
15599
|
variables: {
|
|
15496
15600
|
id: this.customer.id
|
|
15497
15601
|
}
|
|
@@ -15535,7 +15639,7 @@ class kc {
|
|
|
15535
15639
|
async getExistingBundle(t, e, a, n) {
|
|
15536
15640
|
var f, p, C, w, v, S, B, E, I, P, F;
|
|
15537
15641
|
const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M, N]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
|
|
15538
|
-
c && !
|
|
15642
|
+
c && !ve(c) && (d.Authorization = `Bearer ${c}`);
|
|
15539
15643
|
const A = {
|
|
15540
15644
|
bundleOwnerId: s,
|
|
15541
15645
|
...d,
|
|
@@ -15571,7 +15675,7 @@ class kc {
|
|
|
15571
15675
|
async duplicateBundle(t, e, a, n) {
|
|
15572
15676
|
var f, p, C, w, v, S, B, E;
|
|
15573
15677
|
const i = (f = k.getMap("bundleOwnerIds")) == null ? void 0 : f.get(t), o = ((p = Object.entries(localStorage).find(([I, P]) => I.startsWith("CognitoIdentityServiceProvider") && I.endsWith("idToken"))) == null ? void 0 : p[0]) || "", l = localStorage.getItem(o), c = {};
|
|
15574
|
-
l && !
|
|
15678
|
+
l && !ve(l) && (c.Authorization = `Bearer ${l}`);
|
|
15575
15679
|
const d = {
|
|
15576
15680
|
bundleOwnerId: i,
|
|
15577
15681
|
...c,
|
|
@@ -15757,7 +15861,7 @@ class kc {
|
|
|
15757
15861
|
const G = JSON.parse(M.workflowState);
|
|
15758
15862
|
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await La(G), V.reloadedState = G;
|
|
15759
15863
|
} else
|
|
15760
|
-
V.layouts =
|
|
15864
|
+
V.layouts = fl(
|
|
15761
15865
|
V.transaction,
|
|
15762
15866
|
V.workflow
|
|
15763
15867
|
);
|
|
@@ -15776,34 +15880,34 @@ class kc {
|
|
|
15776
15880
|
const e = k.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map();
|
|
15777
15881
|
e.set(t.partner.id, t.id), k.setMap("partnerCustomerIds", e);
|
|
15778
15882
|
}
|
|
15779
|
-
async getIntegrationProductById(t) {
|
|
15780
|
-
var
|
|
15781
|
-
const
|
|
15782
|
-
query: gi,
|
|
15883
|
+
async getIntegrationProductById(t, e) {
|
|
15884
|
+
var s, o;
|
|
15885
|
+
const i = (s = (await b.getShadowGraphqlClient().query({
|
|
15886
|
+
query: gi(e),
|
|
15783
15887
|
variables: {
|
|
15784
15888
|
ids: [t]
|
|
15785
15889
|
},
|
|
15786
15890
|
fetchPolicy: "no-cache",
|
|
15787
15891
|
errorPolicy: "all"
|
|
15788
|
-
})).data) == null ? void 0 :
|
|
15789
|
-
if (!
|
|
15892
|
+
})).data) == null ? void 0 : s.integrationProducts;
|
|
15893
|
+
if (!i || i.length === 0 || !((o = i[0]) != null && o.id))
|
|
15790
15894
|
throw new Error("Integration product not found.");
|
|
15791
|
-
return new qa(
|
|
15895
|
+
return new qa(i[0]);
|
|
15792
15896
|
}
|
|
15793
|
-
async getIntegrationProductFromExternalIds(t, e) {
|
|
15794
|
-
var
|
|
15795
|
-
const
|
|
15796
|
-
query: fi,
|
|
15897
|
+
async getIntegrationProductFromExternalIds(t, e, a) {
|
|
15898
|
+
var o;
|
|
15899
|
+
const s = (o = (await b.getShadowGraphqlClient().query({
|
|
15900
|
+
query: fi(a),
|
|
15797
15901
|
variables: {
|
|
15798
15902
|
externalProductId: e,
|
|
15799
15903
|
externalIntegrationId: t
|
|
15800
15904
|
},
|
|
15801
15905
|
fetchPolicy: "no-cache",
|
|
15802
15906
|
errorPolicy: "all"
|
|
15803
|
-
})).data) == null ? void 0 :
|
|
15804
|
-
if (!(
|
|
15907
|
+
})).data) == null ? void 0 : o.integrationProductFromExternalIds;
|
|
15908
|
+
if (!(s != null && s.id))
|
|
15805
15909
|
throw new Error("Integration product not found.");
|
|
15806
|
-
return new qa(
|
|
15910
|
+
return new qa(s);
|
|
15807
15911
|
}
|
|
15808
15912
|
async getIntegrationProduct(t) {
|
|
15809
15913
|
return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
|
|
@@ -15841,7 +15945,7 @@ class kc {
|
|
|
15841
15945
|
};
|
|
15842
15946
|
}
|
|
15843
15947
|
}
|
|
15844
|
-
const
|
|
15948
|
+
const pl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
15845
15949
|
query: Di,
|
|
15846
15950
|
errorPolicy: "all",
|
|
15847
15951
|
fetchPolicy: "no-cache",
|
|
@@ -15853,7 +15957,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
15853
15957
|
variables: {
|
|
15854
15958
|
themeConfigurationId: t
|
|
15855
15959
|
}
|
|
15856
|
-
})).data.currentIntegration,
|
|
15960
|
+
})).data.currentIntegration, Nc = async (r) => {
|
|
15857
15961
|
const e = await b.getShadowGraphqlClient().query({
|
|
15858
15962
|
query: hi,
|
|
15859
15963
|
errorPolicy: "all",
|
|
@@ -15864,7 +15968,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
15864
15968
|
});
|
|
15865
15969
|
if (e.data.transactions.length !== 0)
|
|
15866
15970
|
return e.data.transactions[0];
|
|
15867
|
-
},
|
|
15971
|
+
}, Rc = async (r, t) => {
|
|
15868
15972
|
var a;
|
|
15869
15973
|
return (a = (await b.getShadowGraphqlClient().query({
|
|
15870
15974
|
query: Ii,
|
|
@@ -15874,7 +15978,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
15874
15978
|
themeInstallId: t
|
|
15875
15979
|
}
|
|
15876
15980
|
})).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
15877
|
-
},
|
|
15981
|
+
}, Oc = async (r) => {
|
|
15878
15982
|
var e, a, n;
|
|
15879
15983
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
15880
15984
|
query: Fi,
|
|
@@ -15883,7 +15987,7 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
15883
15987
|
id: r
|
|
15884
15988
|
}
|
|
15885
15989
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
15886
|
-
},
|
|
15990
|
+
}, Uc = async (r) => {
|
|
15887
15991
|
var e, a, n;
|
|
15888
15992
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
15889
15993
|
query: Pi,
|
|
@@ -15893,21 +15997,21 @@ const ml = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
15893
15997
|
}
|
|
15894
15998
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
15895
15999
|
};
|
|
15896
|
-
function
|
|
16000
|
+
function Cl(r, t, e, a) {
|
|
15897
16001
|
const n = e.width * r.zoom, i = e.height * r.zoom;
|
|
15898
16002
|
if (a) {
|
|
15899
16003
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
15900
16004
|
o.zoom = Math.max(l, r.zoom);
|
|
15901
16005
|
const c = e.width * o.zoom, d = e.height * o.zoom;
|
|
15902
|
-
return o.x =
|
|
16006
|
+
return o.x = le(r.x, t.width - c, 0), o.y = le(r.y, t.height - d, 0), o;
|
|
15903
16007
|
}
|
|
15904
16008
|
const s = r;
|
|
15905
|
-
return s.x =
|
|
16009
|
+
return s.x = le(s.x, -n, t.width), s.y = le(s.y, -i, t.height), s;
|
|
15906
16010
|
}
|
|
15907
|
-
function
|
|
16011
|
+
function le(r, t, e) {
|
|
15908
16012
|
return Math.min(Math.max(r, t), e);
|
|
15909
16013
|
}
|
|
15910
|
-
class
|
|
16014
|
+
class wl {
|
|
15911
16015
|
constructor(t, e) {
|
|
15912
16016
|
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
|
|
15913
16017
|
useThreshold: !1,
|
|
@@ -15929,7 +16033,7 @@ class fl {
|
|
|
15929
16033
|
if (n.currentFrameSources) {
|
|
15930
16034
|
let i = !1;
|
|
15931
16035
|
for (let s = 0; s < n.currentFrameSources.length; s++) {
|
|
15932
|
-
const o = n.currentFrameSources[s], l = await
|
|
16036
|
+
const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
|
|
15933
16037
|
rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
|
|
15934
16038
|
}
|
|
15935
16039
|
i && (this.onFrameDataChangeListeners.forEach(
|
|
@@ -16050,7 +16154,7 @@ class fl {
|
|
|
16050
16154
|
return;
|
|
16051
16155
|
}
|
|
16052
16156
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
16053
|
-
this.offsets[o] =
|
|
16157
|
+
this.offsets[o] = Cl(t[o], s, this.imageData, this.forceImageCover);
|
|
16054
16158
|
}), this._debouncedUpdateFrameOffsets(
|
|
16055
16159
|
this.offsets,
|
|
16056
16160
|
n,
|
|
@@ -16129,7 +16233,7 @@ class fl {
|
|
|
16129
16233
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
16130
16234
|
}
|
|
16131
16235
|
}
|
|
16132
|
-
class
|
|
16236
|
+
class Lc {
|
|
16133
16237
|
approveTransaction(t) {
|
|
16134
16238
|
throw new Error("Method not implemented.");
|
|
16135
16239
|
}
|
|
@@ -16288,12 +16392,12 @@ class Rc {
|
|
|
16288
16392
|
return [];
|
|
16289
16393
|
}
|
|
16290
16394
|
}
|
|
16291
|
-
var
|
|
16292
|
-
class
|
|
16395
|
+
var yl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(yl || {});
|
|
16396
|
+
class Sl extends rt {
|
|
16293
16397
|
constructor(t, e, a) {
|
|
16294
16398
|
super(t, e, a);
|
|
16295
16399
|
const n = e.data;
|
|
16296
|
-
this.frameService = new
|
|
16400
|
+
this.frameService = new wl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
16297
16401
|
}
|
|
16298
16402
|
selectVariant(t) {
|
|
16299
16403
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -16462,7 +16566,7 @@ class Cl extends rt {
|
|
|
16462
16566
|
return this.manager.getStepStorage(this.step.stepName);
|
|
16463
16567
|
}
|
|
16464
16568
|
}
|
|
16465
|
-
const
|
|
16569
|
+
const vl = y`
|
|
16466
16570
|
query GetLoggedInCustomer($email: String!) {
|
|
16467
16571
|
customer(emailAddress: $email) {
|
|
16468
16572
|
id
|
|
@@ -16505,21 +16609,21 @@ const wl = y`
|
|
|
16505
16609
|
total
|
|
16506
16610
|
}
|
|
16507
16611
|
}
|
|
16508
|
-
`,
|
|
16612
|
+
`, El = y`
|
|
16509
16613
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
16510
16614
|
transactionUpdate(id: $id, designName: $name) {
|
|
16511
16615
|
id
|
|
16512
16616
|
designName
|
|
16513
16617
|
}
|
|
16514
16618
|
}
|
|
16515
|
-
`,
|
|
16619
|
+
`, Bl = y`
|
|
16516
16620
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
16517
16621
|
transactionDuplicate(id: $id, template: $template) {
|
|
16518
16622
|
id
|
|
16519
16623
|
workflowViewerLink
|
|
16520
16624
|
}
|
|
16521
16625
|
}
|
|
16522
|
-
`,
|
|
16626
|
+
`, bl = y`
|
|
16523
16627
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
16524
16628
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
16525
16629
|
items {
|
|
@@ -16532,7 +16636,7 @@ const wl = y`
|
|
|
16532
16636
|
total
|
|
16533
16637
|
}
|
|
16534
16638
|
}
|
|
16535
|
-
`,
|
|
16639
|
+
`, Il = y`
|
|
16536
16640
|
query GetTransactionsForBundle($id: String!) {
|
|
16537
16641
|
bundles(ids: [$id]) {
|
|
16538
16642
|
id
|
|
@@ -16553,21 +16657,21 @@ const wl = y`
|
|
|
16553
16657
|
}
|
|
16554
16658
|
}
|
|
16555
16659
|
}
|
|
16556
|
-
`,
|
|
16660
|
+
`, Dl = y`
|
|
16557
16661
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
16558
16662
|
bundleUpdate(id: $id, name: $name) {
|
|
16559
16663
|
id
|
|
16560
16664
|
name
|
|
16561
16665
|
}
|
|
16562
16666
|
}
|
|
16563
|
-
`,
|
|
16667
|
+
`, Pl = y`
|
|
16564
16668
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
16565
16669
|
bundleDuplicate(id: $id, template: $template) {
|
|
16566
16670
|
id
|
|
16567
16671
|
workflowViewerLink
|
|
16568
16672
|
}
|
|
16569
16673
|
}
|
|
16570
|
-
`,
|
|
16674
|
+
`, Fl = y`
|
|
16571
16675
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
16572
16676
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
16573
16677
|
items {
|
|
@@ -16580,43 +16684,43 @@ const wl = y`
|
|
|
16580
16684
|
total
|
|
16581
16685
|
}
|
|
16582
16686
|
}
|
|
16583
|
-
`,
|
|
16584
|
-
mutation:
|
|
16687
|
+
`, $c = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
|
|
16688
|
+
mutation: Dl,
|
|
16585
16689
|
errorPolicy: "all",
|
|
16586
16690
|
variables: {
|
|
16587
16691
|
id: r,
|
|
16588
16692
|
name: t
|
|
16589
16693
|
},
|
|
16590
16694
|
context: e
|
|
16591
|
-
}),
|
|
16592
|
-
mutation:
|
|
16695
|
+
}), Vc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16696
|
+
mutation: El,
|
|
16593
16697
|
errorPolicy: "all",
|
|
16594
16698
|
variables: {
|
|
16595
16699
|
id: r,
|
|
16596
16700
|
name: t
|
|
16597
16701
|
}
|
|
16598
|
-
}),
|
|
16599
|
-
mutation:
|
|
16702
|
+
}), zc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16703
|
+
mutation: Pl,
|
|
16600
16704
|
errorPolicy: "all",
|
|
16601
16705
|
variables: {
|
|
16602
16706
|
id: r,
|
|
16603
16707
|
template: t
|
|
16604
16708
|
}
|
|
16605
|
-
}),
|
|
16606
|
-
mutation:
|
|
16709
|
+
}), Gc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16710
|
+
mutation: Bl,
|
|
16607
16711
|
errorPolicy: "all",
|
|
16608
16712
|
variables: {
|
|
16609
16713
|
id: r,
|
|
16610
16714
|
template: t
|
|
16611
16715
|
}
|
|
16612
|
-
}),
|
|
16613
|
-
query:
|
|
16716
|
+
}), Wc = async (r) => (await b.getShadowGraphqlClient().query({
|
|
16717
|
+
query: vl,
|
|
16614
16718
|
errorPolicy: "all",
|
|
16615
16719
|
variables: {
|
|
16616
16720
|
email: r
|
|
16617
16721
|
}
|
|
16618
|
-
})).data.customer,
|
|
16619
|
-
query:
|
|
16722
|
+
})).data.customer, jc = async (r, t, e) => await b.getShadowGraphqlClient().query({
|
|
16723
|
+
query: bl,
|
|
16620
16724
|
errorPolicy: "all",
|
|
16621
16725
|
fetchPolicy: "no-cache",
|
|
16622
16726
|
variables: {
|
|
@@ -16624,15 +16728,15 @@ const wl = y`
|
|
|
16624
16728
|
offset: e,
|
|
16625
16729
|
limit: t
|
|
16626
16730
|
}
|
|
16627
|
-
}),
|
|
16628
|
-
query:
|
|
16731
|
+
}), Hc = async (r, t) => await b.getShadowGraphqlClient().query({
|
|
16732
|
+
query: Il,
|
|
16629
16733
|
errorPolicy: "all",
|
|
16630
16734
|
fetchPolicy: "no-cache",
|
|
16631
16735
|
variables: {
|
|
16632
16736
|
id: r
|
|
16633
16737
|
},
|
|
16634
16738
|
context: t
|
|
16635
|
-
}),
|
|
16739
|
+
}), qc = async (r, t, e) => {
|
|
16636
16740
|
var n;
|
|
16637
16741
|
const a = await b.getShadowGraphqlClient().query({
|
|
16638
16742
|
query: Ia,
|
|
@@ -16656,7 +16760,7 @@ const wl = y`
|
|
|
16656
16760
|
}
|
|
16657
16761
|
});
|
|
16658
16762
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16659
|
-
},
|
|
16763
|
+
}, Yc = async (r, t, e) => {
|
|
16660
16764
|
var n;
|
|
16661
16765
|
const a = await b.getShadowGraphqlClient().query({
|
|
16662
16766
|
query: Ia,
|
|
@@ -16680,7 +16784,7 @@ const wl = y`
|
|
|
16680
16784
|
}
|
|
16681
16785
|
});
|
|
16682
16786
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16683
|
-
},
|
|
16787
|
+
}, Jc = async (r, t, e) => {
|
|
16684
16788
|
var n;
|
|
16685
16789
|
const a = await b.getShadowGraphqlClient().query({
|
|
16686
16790
|
query: Ia,
|
|
@@ -16700,10 +16804,10 @@ const wl = y`
|
|
|
16700
16804
|
}
|
|
16701
16805
|
});
|
|
16702
16806
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16703
|
-
},
|
|
16807
|
+
}, Kc = async (r, t, e) => {
|
|
16704
16808
|
var n;
|
|
16705
16809
|
const a = await b.getShadowGraphqlClient().query({
|
|
16706
|
-
query:
|
|
16810
|
+
query: Fl,
|
|
16707
16811
|
errorPolicy: "all",
|
|
16708
16812
|
fetchPolicy: "no-cache",
|
|
16709
16813
|
variables: {
|
|
@@ -16724,7 +16828,7 @@ const wl = y`
|
|
|
16724
16828
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
16725
16829
|
}
|
|
16726
16830
|
})();
|
|
16727
|
-
var
|
|
16831
|
+
var xl = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(xl || {}), kl = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(kl || {}), K;
|
|
16728
16832
|
K = { __e: function(r, t, e, a) {
|
|
16729
16833
|
for (var n, i, s; t = t.__; )
|
|
16730
16834
|
if ((n = t.__c) && !n.__)
|
|
@@ -16737,11 +16841,11 @@ K = { __e: function(r, t, e, a) {
|
|
|
16737
16841
|
throw r;
|
|
16738
16842
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
16739
16843
|
var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
|
|
16740
|
-
function
|
|
16844
|
+
function Ml() {
|
|
16741
16845
|
for (var r; r = tr.shift(); )
|
|
16742
16846
|
if (r.__P && r.__H)
|
|
16743
16847
|
try {
|
|
16744
|
-
r.__H.__h.forEach(
|
|
16848
|
+
r.__H.__h.forEach(ue), r.__H.__h.forEach(la), r.__H.__h = [];
|
|
16745
16849
|
} catch (t) {
|
|
16746
16850
|
r.__H.__h = [], K.__e(t, r.__v);
|
|
16747
16851
|
}
|
|
@@ -16753,17 +16857,17 @@ K.__b = function(r) {
|
|
|
16753
16857
|
var t = (st = r.__c).__H;
|
|
16754
16858
|
t && (qe === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
|
|
16755
16859
|
e.__N && (e.__ = e.__N), e.__V = Ye, e.__N = e.i = void 0;
|
|
16756
|
-
})) : (t.__h.forEach(
|
|
16860
|
+
})) : (t.__h.forEach(ue), t.__h.forEach(la), t.__h = [])), qe = st;
|
|
16757
16861
|
}, K.diffed = function(r) {
|
|
16758
16862
|
Xa && Xa(r);
|
|
16759
16863
|
var t = r.__c;
|
|
16760
|
-
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) ||
|
|
16864
|
+
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Tl)(Ml)), t.__H.__.forEach(function(e) {
|
|
16761
16865
|
e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
|
|
16762
16866
|
})), qe = st = null;
|
|
16763
16867
|
}, K.__c = function(r, t) {
|
|
16764
16868
|
t.some(function(e) {
|
|
16765
16869
|
try {
|
|
16766
|
-
e.__h.forEach(
|
|
16870
|
+
e.__h.forEach(ue), e.__h = e.__h.filter(function(a) {
|
|
16767
16871
|
return !a.__ || la(a);
|
|
16768
16872
|
});
|
|
16769
16873
|
} catch (a) {
|
|
@@ -16777,20 +16881,20 @@ K.__b = function(r) {
|
|
|
16777
16881
|
var t, e = r.__c;
|
|
16778
16882
|
e && e.__H && (e.__H.__.forEach(function(a) {
|
|
16779
16883
|
try {
|
|
16780
|
-
|
|
16884
|
+
ue(a);
|
|
16781
16885
|
} catch (n) {
|
|
16782
16886
|
t = n;
|
|
16783
16887
|
}
|
|
16784
16888
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
16785
16889
|
};
|
|
16786
16890
|
var en = typeof requestAnimationFrame == "function";
|
|
16787
|
-
function
|
|
16891
|
+
function Tl(r) {
|
|
16788
16892
|
var t, e = function() {
|
|
16789
16893
|
clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
|
|
16790
16894
|
}, a = setTimeout(e, 100);
|
|
16791
16895
|
en && (t = requestAnimationFrame(e));
|
|
16792
16896
|
}
|
|
16793
|
-
function
|
|
16897
|
+
function ue(r) {
|
|
16794
16898
|
var t = st, e = r.__c;
|
|
16795
16899
|
typeof e == "function" && (r.__c = void 0, e()), st = t;
|
|
16796
16900
|
}
|
|
@@ -16800,35 +16904,35 @@ function la(r) {
|
|
|
16800
16904
|
}
|
|
16801
16905
|
export {
|
|
16802
16906
|
da as AddonHandle,
|
|
16803
|
-
|
|
16907
|
+
Mc as ArrayInput,
|
|
16804
16908
|
et as AspectType,
|
|
16805
16909
|
yt as AssetNotFoundError,
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16910
|
+
he as AssetType,
|
|
16911
|
+
Dc as BringForwardCommand,
|
|
16912
|
+
Ic as BringToBackCommand,
|
|
16913
|
+
bc as BringToFrontCommand,
|
|
16810
16914
|
mr as BundleDesignCreationCartAddMode,
|
|
16811
16915
|
R as CanvasCommand,
|
|
16812
|
-
|
|
16916
|
+
se as CollectionProduct,
|
|
16813
16917
|
Ha as ColorOptionGlobalPropertyHandle,
|
|
16814
16918
|
Ki as CommandContext,
|
|
16815
|
-
|
|
16816
|
-
|
|
16919
|
+
kl as ConversionDataType,
|
|
16920
|
+
xl as ConversionLocation,
|
|
16817
16921
|
W as CreateElementCommand,
|
|
16818
16922
|
Un as CreateLayoutCommand,
|
|
16819
16923
|
vt as DeleteElementCommand,
|
|
16820
16924
|
Ao as DigitalContentStepHandle,
|
|
16821
16925
|
Go as FileUploadGlobalPropertyHandle,
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
16926
|
+
oe as FlowExecutionNodeResult,
|
|
16927
|
+
sl as FlowExecutionResult,
|
|
16928
|
+
il as FlowService,
|
|
16825
16929
|
ts as FontAlignmentCommand,
|
|
16826
16930
|
Xi as FontColorCommand,
|
|
16827
16931
|
Zi as FontSizeCommand,
|
|
16828
16932
|
Va as FontSourceCommand,
|
|
16829
|
-
|
|
16830
|
-
|
|
16831
|
-
|
|
16933
|
+
wl as FrameService,
|
|
16934
|
+
yl as FrameStep,
|
|
16935
|
+
Sl as FrameStepHandle,
|
|
16832
16936
|
Ba as GlobalPropertyHandle,
|
|
16833
16937
|
O as GroupCommand,
|
|
16834
16938
|
ao as IllustrationStepHandle,
|
|
@@ -16836,132 +16940,133 @@ export {
|
|
|
16836
16940
|
co as InformationStepHandle,
|
|
16837
16941
|
qa as IntegrationProduct,
|
|
16838
16942
|
fr as IntegrationType,
|
|
16839
|
-
|
|
16943
|
+
yc as LayoutElementFactory,
|
|
16840
16944
|
T as LayoutElementType,
|
|
16841
16945
|
Y as LayoutNotFoundError,
|
|
16842
16946
|
Gt as LayoutRenderingPurpose,
|
|
16843
16947
|
no as MaterialStepHandle,
|
|
16844
|
-
|
|
16845
|
-
|
|
16948
|
+
fe as MisconfigurationError,
|
|
16949
|
+
Lc as MockWorkflowManager,
|
|
16846
16950
|
ro as ModelStepHandle,
|
|
16847
16951
|
uo as ModuleStepHandle,
|
|
16848
|
-
|
|
16952
|
+
Sc as MoveCommand,
|
|
16849
16953
|
Xn as ObjectInput,
|
|
16850
|
-
|
|
16954
|
+
ol as ObjectInputType,
|
|
16851
16955
|
_n as OptionGlobalPropertyHandle,
|
|
16852
|
-
|
|
16956
|
+
ge as OptionNotFoundError,
|
|
16853
16957
|
Dt as ParseError,
|
|
16854
16958
|
io as PictureStepHandle,
|
|
16855
16959
|
pr as ProductCameraRig,
|
|
16856
|
-
|
|
16960
|
+
Ko as ProductCollection,
|
|
16857
16961
|
zt as ProductWorkflow,
|
|
16858
16962
|
Ht as PromiseCache,
|
|
16859
16963
|
Pn as PromiseQueue,
|
|
16860
16964
|
so as QuestionStepHandle,
|
|
16861
16965
|
Dn as QueueablePromise,
|
|
16862
|
-
|
|
16966
|
+
Ec as ResizeCommand,
|
|
16863
16967
|
Wt as ResourceNotFoundError,
|
|
16864
|
-
|
|
16968
|
+
vc as RotateCommand,
|
|
16865
16969
|
H as ScaleAxis,
|
|
16866
|
-
|
|
16970
|
+
Pc as SendBackwardsCommand,
|
|
16867
16971
|
oo as ShapeStepHandle,
|
|
16868
16972
|
gr as ShareActionType,
|
|
16869
|
-
|
|
16870
|
-
|
|
16973
|
+
Qc as SpiffCommerceClient,
|
|
16974
|
+
me as StakeholderType,
|
|
16871
16975
|
hr as StepAspectType,
|
|
16872
16976
|
rt as StepHandle,
|
|
16873
16977
|
D as StepType,
|
|
16874
16978
|
kt as TextAlgorithm,
|
|
16875
16979
|
ns as TextChangeCommand,
|
|
16876
16980
|
Wo as TextGlobalPropertyHandle,
|
|
16877
|
-
|
|
16981
|
+
kc as TextInput,
|
|
16878
16982
|
lo as TextStepHandle,
|
|
16879
|
-
|
|
16880
|
-
|
|
16983
|
+
Xo as Transform,
|
|
16984
|
+
_o as TransformCollection,
|
|
16881
16985
|
z as UnhandledBehaviorError,
|
|
16882
16986
|
Cr as UnitOfMeasurement,
|
|
16883
|
-
|
|
16987
|
+
Bc as UpdateImageSourceCommand,
|
|
16884
16988
|
it as Variant,
|
|
16885
16989
|
Bo as WorkflowExperienceEventType,
|
|
16886
16990
|
bo as WorkflowExperienceImpl,
|
|
16887
16991
|
U as assetService,
|
|
16888
16992
|
zr as browserColorToHex,
|
|
16889
|
-
|
|
16993
|
+
Cc as cmPerPixel,
|
|
16890
16994
|
Co as createDesign,
|
|
16891
|
-
|
|
16892
|
-
|
|
16995
|
+
gc as currentDirection,
|
|
16996
|
+
nc as dataUrlFromExternalUrl,
|
|
16893
16997
|
je as designService,
|
|
16894
|
-
|
|
16998
|
+
Ae as determineCorrectFontSizeAndLines,
|
|
16895
16999
|
$n as digitalContentStepService,
|
|
16896
17000
|
dt as domParser,
|
|
16897
|
-
|
|
16898
|
-
|
|
17001
|
+
zc as duplicateBundle,
|
|
17002
|
+
Gc as duplicateTransaction,
|
|
16899
17003
|
at as fetchAsString,
|
|
16900
|
-
|
|
17004
|
+
lc as findAngle,
|
|
16901
17005
|
L as findElement,
|
|
16902
|
-
|
|
17006
|
+
sc as findPmsColors,
|
|
16903
17007
|
Lt as frameDataCache,
|
|
16904
17008
|
pt as frameStepService,
|
|
16905
17009
|
Q as generate,
|
|
16906
17010
|
Ro as generateCommands,
|
|
16907
17011
|
ot as generateSVGWithUnknownColors,
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
17012
|
+
xc as generateStateFromDesignInputSteps,
|
|
17013
|
+
De as getAttributesFromArrayBuffer,
|
|
17014
|
+
oc as getAxisAlignedBoundingBox,
|
|
17015
|
+
Cl as getBoundedOffsets,
|
|
17016
|
+
Oc as getBundleThemeConfiguration,
|
|
17017
|
+
Wc as getCustomer,
|
|
17018
|
+
jc as getCustomerBundles,
|
|
17019
|
+
fc as getElementVertices,
|
|
17020
|
+
xe as getFrameData,
|
|
17021
|
+
pl as getIntegration,
|
|
17022
|
+
hc as getNEPoint,
|
|
17023
|
+
uc as getNWPoint,
|
|
17024
|
+
Yc as getOrderedTransactions,
|
|
17025
|
+
Rc as getOverrideThemeConfiguration,
|
|
17026
|
+
Ac as getPointOfRotation,
|
|
17027
|
+
mc as getSEPoint,
|
|
16924
17028
|
wa as getSvgElement,
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
17029
|
+
Kc as getTemplateBundles,
|
|
17030
|
+
Jc as getTemplateTransactions,
|
|
17031
|
+
Nc as getTransaction,
|
|
17032
|
+
Uc as getTransactionThemeConfiguration,
|
|
17033
|
+
Hc as getTransactionsForBundle,
|
|
17034
|
+
dc as getTrueCoordinates,
|
|
17035
|
+
qc as getUnorderedTransactions,
|
|
17036
|
+
Tc as getWorkflow,
|
|
16933
17037
|
Zn as getWorkflows,
|
|
16934
17038
|
b as graphQlManager,
|
|
16935
|
-
|
|
16936
|
-
|
|
17039
|
+
de as illustrationStepService,
|
|
17040
|
+
cc as isCloseToValue,
|
|
16937
17041
|
Tt as loadFont,
|
|
16938
|
-
|
|
17042
|
+
ic as matchHexToPms,
|
|
16939
17043
|
Vn as materialStepService,
|
|
16940
|
-
|
|
17044
|
+
Jo as metafieldManager,
|
|
17045
|
+
pc as mmPerPixel,
|
|
16941
17046
|
zn as modelStepService,
|
|
16942
17047
|
fa as modifySVGColors,
|
|
16943
17048
|
Gn as moduleStepService,
|
|
16944
|
-
|
|
16945
|
-
|
|
17049
|
+
$c as nameBundle,
|
|
17050
|
+
Vc as nameTransaction,
|
|
16946
17051
|
X as optionService,
|
|
16947
|
-
|
|
17052
|
+
wc as outlineFontsInSvg,
|
|
16948
17053
|
At as patternImageDataCache,
|
|
16949
17054
|
k as persistenceService,
|
|
16950
17055
|
Wn as pictureStepService,
|
|
16951
|
-
|
|
17056
|
+
rc as pmsToRgb,
|
|
16952
17057
|
jn as questionStepService,
|
|
16953
|
-
|
|
16954
|
-
|
|
17058
|
+
ac as registerFetchImplementation,
|
|
17059
|
+
ec as registerWindowImplementation,
|
|
16955
17060
|
La as rehydrateSerializedLayout,
|
|
16956
17061
|
Lr as rgbToPms,
|
|
16957
|
-
|
|
17062
|
+
re as rotateAroundPoint,
|
|
16958
17063
|
ma as sanitizeSvgTree,
|
|
16959
17064
|
kr as setBearerAuthenticationToken,
|
|
16960
17065
|
mn as setCanvasModule,
|
|
16961
17066
|
$t as shapeStepService,
|
|
16962
17067
|
is as shortenUrl,
|
|
16963
17068
|
wt as spiffCoreConfiguration,
|
|
16964
|
-
|
|
17069
|
+
Fc as stepAspectValuesToDesignInputSteps,
|
|
16965
17070
|
Qa as svgColorValueToDefinition,
|
|
16966
17071
|
Rn as svgStringDimensions,
|
|
16967
17072
|
Aa as svgToDataUrl,
|