@spiffcommerce/core 32.2.7-beta.8bae3361-3242-5b7e-a75c-ed03cdc03b9c → 32.2.7-beta.fe525a16-f209-5cb8-95bc-b269e8ebcfcc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +35 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +346 -335
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -163,10 +163,10 @@ class Qr {
|
|
163
163
|
}
|
164
164
|
const gt = new Qr();
|
165
165
|
let ra, ia;
|
166
|
-
function
|
166
|
+
function zc(n) {
|
167
167
|
ra = n;
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Gc(n) {
|
170
170
|
ia = n;
|
171
171
|
}
|
172
172
|
function Zt() {
|
@@ -257,7 +257,7 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
|
|
257
257
|
}
|
258
258
|
const e = t();
|
259
259
|
return e || "image/svg+xml";
|
260
|
-
},
|
260
|
+
}, Wc = async (n) => {
|
261
261
|
const t = await pn(n), e = gn.get(n) || Qe(t);
|
262
262
|
return await zr(new Blob([t], { type: e }));
|
263
263
|
}, Lr = (n) => {
|
@@ -3155,7 +3155,7 @@ const _r = (n) => new Promise((t) => {
|
|
3155
3155
|
parseInt(n.substring(2, 4), 16),
|
3156
3156
|
parseInt(n.substring(4, 6), 16)
|
3157
3157
|
]);
|
3158
|
-
function
|
3158
|
+
function qc(n) {
|
3159
3159
|
const t = Jt.indexOf(n);
|
3160
3160
|
return t >= 0 ? xt[t] : "";
|
3161
3161
|
}
|
@@ -3163,7 +3163,7 @@ function ei(n) {
|
|
3163
3163
|
const t = xt.indexOf(n);
|
3164
3164
|
return t >= 0 ? Jt[t] : "";
|
3165
3165
|
}
|
3166
|
-
function
|
3166
|
+
function Hc(n, t = 64) {
|
3167
3167
|
const e = [], a = [], r = ei(n);
|
3168
3168
|
r && e.push({
|
3169
3169
|
pms: r,
|
@@ -3182,7 +3182,7 @@ function qc(n, t = 64) {
|
|
3182
3182
|
return e.sort((A, u) => A.distance - u.distance);
|
3183
3183
|
}
|
3184
3184
|
const ai = Jt.map((n, t) => ({ pms: n, hex: xt[t] })), ni = new wr(ai, { keys: ["pms"] });
|
3185
|
-
function
|
3185
|
+
function jc(n, t) {
|
3186
3186
|
return ni.search(n, t ? { limit: t } : void 0);
|
3187
3187
|
}
|
3188
3188
|
let Qt = null;
|
@@ -5427,7 +5427,7 @@ const M = () => {
|
|
5427
5427
|
]
|
5428
5428
|
}
|
5429
5429
|
);
|
5430
|
-
},
|
5430
|
+
}, Yc = (n, t, e, a, r) => {
|
5431
5431
|
const i = ft(r), s = e / 2, o = a / 2, l = n + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, p = u * A - m * d, f = h * A - g * d, S = u * d + m * A, b = h * d + g * A, I = Math.max(Math.abs(p), Math.abs(f)), C = Math.max(Math.abs(S), Math.abs(b));
|
5432
5432
|
return {
|
5433
5433
|
minX: l - I,
|
@@ -5435,25 +5435,25 @@ const M = () => {
|
|
5435
5435
|
minY: c - C,
|
5436
5436
|
maxY: c + C
|
5437
5437
|
};
|
5438
|
-
},
|
5438
|
+
}, Jc = (n, t, e) => {
|
5439
5439
|
const a = Math.sqrt(Math.pow(t.x - n.x, 2) + Math.pow(t.y - n.y, 2)), r = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2));
|
5440
5440
|
return Math.acos((r * r + a * a - i * i) / (2 * r * a)) * (180 / Math.PI);
|
5441
|
-
}, ft = (n) => n * (Math.PI / 180),
|
5441
|
+
}, ft = (n) => n * (Math.PI / 180), Kc = (n, t, e) => Math.abs(n - t) < e, _c = (n, t, e) => {
|
5442
5442
|
const a = Math.sin(ft(e)), r = Math.cos(ft(e));
|
5443
5443
|
return {
|
5444
5444
|
x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
|
5445
5445
|
y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
|
5446
5446
|
};
|
5447
|
-
},
|
5447
|
+
}, Xc = (n, t) => ({
|
5448
5448
|
x: (n.x + t.x) / 2,
|
5449
5449
|
y: (n.y + t.y) / 2
|
5450
|
-
}),
|
5450
|
+
}), Zc = (n, t, e, a) => ({
|
5451
5451
|
x: n.x + t?.x * e,
|
5452
5452
|
y: n.y + t?.y * a
|
5453
|
-
}),
|
5453
|
+
}), td = (n, t, e, a) => ({
|
5454
5454
|
x: n.x + (t?.x + t?.width) * e,
|
5455
5455
|
y: n.y + t?.y * a
|
5456
|
-
}),
|
5456
|
+
}), ed = (n, t, e, a) => ({
|
5457
5457
|
x: n.x + (t?.x + t?.width) * e,
|
5458
5458
|
y: n.y + (t?.y + t?.height) * a
|
5459
5459
|
}), Pt = (n) => {
|
@@ -5475,7 +5475,7 @@ const M = () => {
|
|
5475
5475
|
case H.Southwest:
|
5476
5476
|
return H.Northwest;
|
5477
5477
|
}
|
5478
|
-
},
|
5478
|
+
}, ad = (n, t) => t > 45 && t <= 135 ? Pt(n) : t > 135 && t <= 225 ? Pt(Pt(n)) : t > 225 && t <= 315 ? Pt(Pt(Pt(n))) : n, nd = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
5479
5479
|
const a = ft(n.rotation), r = {
|
5480
5480
|
x: t.x + n.x * e.x,
|
5481
5481
|
y: t.x + n.y * e.y
|
@@ -5505,7 +5505,7 @@ const M = () => {
|
|
5505
5505
|
x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
|
5506
5506
|
y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
|
5507
5507
|
};
|
5508
|
-
},
|
5508
|
+
}, rd = 0.352778, id = 0.035277, Nn = (n) => {
|
5509
5509
|
const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
|
5510
5510
|
return /* @__PURE__ */ D("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ D(
|
5511
5511
|
"g",
|
@@ -5727,7 +5727,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
|
|
5727
5727
|
}, la = (n, t) => {
|
5728
5728
|
const e = new es(t);
|
5729
5729
|
return Rn.set(n, e), e;
|
5730
|
-
},
|
5730
|
+
}, sd = async (n) => {
|
5731
5731
|
const t = dt(), e = t.parseFromString(n, "image/svg+xml"), a = e.firstElementChild, r = /* @__PURE__ */ new Map();
|
5732
5732
|
a.querySelectorAll("style").forEach((d) => {
|
5733
5733
|
dn(d.innerHTML).stylesheet?.rules.forEach((u) => {
|
@@ -6380,7 +6380,7 @@ const ne = (n) => {
|
|
6380
6380
|
}
|
6381
6381
|
return o;
|
6382
6382
|
};
|
6383
|
-
class
|
6383
|
+
class od {
|
6384
6384
|
static async getFrame(t, e) {
|
6385
6385
|
const a = await zn(e.region, e.src), r = await Ue(a), i = e.region || await Ut(t, x.Frame);
|
6386
6386
|
return {
|
@@ -6623,7 +6623,7 @@ class Ha extends N {
|
|
6623
6623
|
};
|
6624
6624
|
}
|
6625
6625
|
}
|
6626
|
-
class
|
6626
|
+
class ld extends N {
|
6627
6627
|
constructor(t, e, a) {
|
6628
6628
|
super(), this.id = t, this.x = e, this.y = a;
|
6629
6629
|
}
|
@@ -6646,7 +6646,7 @@ class od extends N {
|
|
6646
6646
|
};
|
6647
6647
|
}
|
6648
6648
|
}
|
6649
|
-
class
|
6649
|
+
class cd extends N {
|
6650
6650
|
constructor(t, e) {
|
6651
6651
|
super(), this.id = t, this.angle = e;
|
6652
6652
|
}
|
@@ -6668,7 +6668,7 @@ class ld extends N {
|
|
6668
6668
|
};
|
6669
6669
|
}
|
6670
6670
|
}
|
6671
|
-
class
|
6671
|
+
class dd extends N {
|
6672
6672
|
constructor(t, e, a) {
|
6673
6673
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
6674
6674
|
}
|
@@ -6979,7 +6979,7 @@ class ys extends N {
|
|
6979
6979
|
};
|
6980
6980
|
}
|
6981
6981
|
}
|
6982
|
-
class
|
6982
|
+
class Ad extends N {
|
6983
6983
|
constructor(t, e) {
|
6984
6984
|
super(), this.id = t, this.src = e;
|
6985
6985
|
}
|
@@ -7098,7 +7098,7 @@ class vs extends N {
|
|
7098
7098
|
};
|
7099
7099
|
}
|
7100
7100
|
}
|
7101
|
-
class
|
7101
|
+
class ud extends N {
|
7102
7102
|
/**
|
7103
7103
|
* @param id The targeted element to bring to the front.
|
7104
7104
|
*/
|
@@ -7127,7 +7127,7 @@ class Ad extends N {
|
|
7127
7127
|
};
|
7128
7128
|
}
|
7129
7129
|
}
|
7130
|
-
class
|
7130
|
+
class hd extends N {
|
7131
7131
|
/**
|
7132
7132
|
* @param id The targeted element to bring to the back.
|
7133
7133
|
*/
|
@@ -7158,7 +7158,7 @@ class ud extends N {
|
|
7158
7158
|
};
|
7159
7159
|
}
|
7160
7160
|
}
|
7161
|
-
class
|
7161
|
+
class md extends N {
|
7162
7162
|
/**
|
7163
7163
|
* @param id The targeted element to bring to the front.
|
7164
7164
|
*/
|
@@ -7185,7 +7185,7 @@ class hd extends N {
|
|
7185
7185
|
};
|
7186
7186
|
}
|
7187
7187
|
}
|
7188
|
-
class
|
7188
|
+
class gd extends N {
|
7189
7189
|
/**
|
7190
7190
|
* @param id The targeted element to bring to the front.
|
7191
7191
|
*/
|
@@ -9563,7 +9563,7 @@ const re = w`
|
|
9563
9563
|
}
|
9564
9564
|
}
|
9565
9565
|
}
|
9566
|
-
`,
|
9566
|
+
`, pd = async (n) => (await y.getShadowGraphqlClient().query({
|
9567
9567
|
query: js,
|
9568
9568
|
fetchPolicy: "cache-first",
|
9569
9569
|
errorPolicy: "all",
|
@@ -10227,14 +10227,13 @@ const re = w`
|
|
10227
10227
|
id
|
10228
10228
|
}
|
10229
10229
|
}
|
10230
|
-
|
10231
|
-
w`
|
10230
|
+
`, Eo = w`
|
10232
10231
|
mutation DeleteBundle($id: String!) {
|
10233
10232
|
bundleDelete(id: $id)
|
10234
10233
|
}
|
10235
10234
|
`;
|
10236
10235
|
var Le = /* @__PURE__ */ ((n) => (n.Error = "Error", n.Warning = "Warning", n.Info = "Info", n))(Le || {});
|
10237
|
-
const
|
10236
|
+
const bo = 1e3;
|
10238
10237
|
class _a extends Mn {
|
10239
10238
|
constructor(t) {
|
10240
10239
|
super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
|
@@ -10243,11 +10242,11 @@ class _a extends Mn {
|
|
10243
10242
|
await this.update(), await new Promise((t) => {
|
10244
10243
|
window.setTimeout(() => {
|
10245
10244
|
t();
|
10246
|
-
},
|
10245
|
+
}, bo);
|
10247
10246
|
});
|
10248
10247
|
}
|
10249
10248
|
}
|
10250
|
-
class
|
10249
|
+
class Bo {
|
10251
10250
|
constructor(t, e, a, r, i, s, o, l, c, d, A, u, h, m = !1, g, p = !1, f = !1, S = !1) {
|
10252
10251
|
this.workflowStatePromiseQueue = new Tn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
10253
10252
|
if (!this.previewService) return;
|
@@ -11213,7 +11212,7 @@ const Ht = class Ht {
|
|
11213
11212
|
};
|
11214
11213
|
Ht.updateState = /* @__PURE__ */ new Map();
|
11215
11214
|
let Z = Ht;
|
11216
|
-
class
|
11215
|
+
class Io extends Z {
|
11217
11216
|
constructor(t, e, a) {
|
11218
11217
|
super(t, e, a);
|
11219
11218
|
}
|
@@ -11287,7 +11286,7 @@ class Bo extends Z {
|
|
11287
11286
|
return this.step.data.pmsPickerEnabled ?? !1;
|
11288
11287
|
}
|
11289
11288
|
}
|
11290
|
-
class
|
11289
|
+
class Po extends Z {
|
11291
11290
|
constructor(t, e, a) {
|
11292
11291
|
super(t, e, a);
|
11293
11292
|
}
|
@@ -11300,7 +11299,7 @@ class Io extends Z {
|
|
11300
11299
|
);
|
11301
11300
|
}
|
11302
11301
|
}
|
11303
|
-
class
|
11302
|
+
class Do extends Z {
|
11304
11303
|
constructor(t, e, a) {
|
11305
11304
|
super(t, e, a);
|
11306
11305
|
}
|
@@ -11313,7 +11312,7 @@ class Po extends Z {
|
|
11313
11312
|
);
|
11314
11313
|
}
|
11315
11314
|
}
|
11316
|
-
class
|
11315
|
+
class Fo extends Z {
|
11317
11316
|
constructor(t, e, a) {
|
11318
11317
|
super(t, e, a);
|
11319
11318
|
}
|
@@ -11331,7 +11330,7 @@ class Do extends Z {
|
|
11331
11330
|
);
|
11332
11331
|
}
|
11333
11332
|
}
|
11334
|
-
class
|
11333
|
+
class xo extends Z {
|
11335
11334
|
constructor(t, e, a) {
|
11336
11335
|
super(t, e, a);
|
11337
11336
|
}
|
@@ -11347,7 +11346,7 @@ class Fo extends Z {
|
|
11347
11346
|
return this.step.data.displayType || this.step.option?.displayType;
|
11348
11347
|
}
|
11349
11348
|
}
|
11350
|
-
class
|
11349
|
+
class ko extends Z {
|
11351
11350
|
constructor(t, e, a) {
|
11352
11351
|
super(t, e, a);
|
11353
11352
|
}
|
@@ -11406,7 +11405,7 @@ class xo extends Z {
|
|
11406
11405
|
return t;
|
11407
11406
|
}
|
11408
11407
|
}
|
11409
|
-
class
|
11408
|
+
class Mo extends Z {
|
11410
11409
|
constructor(t, e, a) {
|
11411
11410
|
super(t, e, a);
|
11412
11411
|
}
|
@@ -11599,7 +11598,7 @@ class ko extends Z {
|
|
11599
11598
|
await G.changeStrokeColor(this.step, t, e, this.manager);
|
11600
11599
|
}
|
11601
11600
|
}
|
11602
|
-
class
|
11601
|
+
class To extends Z {
|
11603
11602
|
constructor(t, e, a) {
|
11604
11603
|
super(t, e, a);
|
11605
11604
|
}
|
@@ -11612,7 +11611,7 @@ class Mo extends Z {
|
|
11612
11611
|
return this.step.data.content;
|
11613
11612
|
}
|
11614
11613
|
}
|
11615
|
-
class
|
11614
|
+
class No extends Z {
|
11616
11615
|
constructor(t, e, a) {
|
11617
11616
|
super(t, e, a);
|
11618
11617
|
}
|
@@ -11638,7 +11637,7 @@ class To extends Z {
|
|
11638
11637
|
);
|
11639
11638
|
}
|
11640
11639
|
}
|
11641
|
-
class
|
11640
|
+
class Qo extends Z {
|
11642
11641
|
constructor(t, e, a) {
|
11643
11642
|
super(t, e, a);
|
11644
11643
|
}
|
@@ -11689,27 +11688,27 @@ class de {
|
|
11689
11688
|
static get(t, e) {
|
11690
11689
|
switch (e.type) {
|
11691
11690
|
case v.DigitalContent:
|
11692
|
-
return new
|
11691
|
+
return new No(t, e, t.getStepTags(e.stepName));
|
11693
11692
|
case v.Information:
|
11694
|
-
return new
|
11693
|
+
return new To(t, e, t.getStepTags(e.stepName));
|
11695
11694
|
case v.Question:
|
11696
|
-
return new
|
11695
|
+
return new xo(t, e, t.getStepTags(e.stepName));
|
11697
11696
|
case v.Text:
|
11698
|
-
return new
|
11697
|
+
return new Mo(t, e, t.getStepTags(e.stepName));
|
11699
11698
|
case v.Illustration:
|
11700
|
-
return new
|
11699
|
+
return new Io(t, e, t.getStepTags(e.stepName));
|
11701
11700
|
case v.Picture:
|
11702
|
-
return new
|
11701
|
+
return new Fo(t, e, t.getStepTags(e.stepName));
|
11703
11702
|
case v.Shape:
|
11704
|
-
return new
|
11703
|
+
return new ko(t, e, t.getStepTags(e.stepName));
|
11705
11704
|
case v.Material:
|
11706
|
-
return new Io(t, e, t.getStepTags(e.stepName));
|
11707
|
-
case v.Model:
|
11708
11705
|
return new Po(t, e, t.getStepTags(e.stepName));
|
11706
|
+
case v.Model:
|
11707
|
+
return new Do(t, e, t.getStepTags(e.stepName));
|
11709
11708
|
case v.Frame:
|
11710
|
-
return new
|
11709
|
+
return new Xl(t, e, t.getStepTags(e.stepName));
|
11711
11710
|
case v.Module:
|
11712
|
-
return new
|
11711
|
+
return new Qo(t, e, t.getStepTags(e.stepName));
|
11713
11712
|
default:
|
11714
11713
|
throw new V(`Step type ${e.type} not yet supported in Core SDK`);
|
11715
11714
|
}
|
@@ -11740,7 +11739,7 @@ const tr = w`
|
|
11740
11739
|
externalProductVariantId
|
11741
11740
|
}
|
11742
11741
|
}
|
11743
|
-
`,
|
11742
|
+
`, Ro = w`
|
11744
11743
|
${tr}
|
11745
11744
|
mutation CreateDesign(
|
11746
11745
|
$name: String!
|
@@ -11772,7 +11771,7 @@ const tr = w`
|
|
11772
11771
|
}
|
11773
11772
|
}
|
11774
11773
|
}
|
11775
|
-
`,
|
11774
|
+
`, Oo = w`
|
11776
11775
|
${tr}
|
11777
11776
|
mutation CreateDesigns($inputs: [DesignCreateInput]!) {
|
11778
11777
|
designCreateMany(inputs: $inputs) {
|
@@ -11791,7 +11790,7 @@ function Wt(n) {
|
|
11791
11790
|
const t = JSON.parse(atob(n.split(".")[1])).exp;
|
11792
11791
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
11793
11792
|
}
|
11794
|
-
const
|
11793
|
+
const $o = async (n, t) => {
|
11795
11794
|
const e = {};
|
11796
11795
|
try {
|
11797
11796
|
if (!t) throw new Error();
|
@@ -11800,7 +11799,7 @@ const Oo = async (n, t) => {
|
|
11800
11799
|
o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
|
11801
11800
|
}
|
11802
11801
|
return (await y.getShadowGraphqlClient().mutate({
|
11803
|
-
mutation:
|
11802
|
+
mutation: Ro,
|
11804
11803
|
errorPolicy: "all",
|
11805
11804
|
fetchPolicy: "no-cache",
|
11806
11805
|
variables: {
|
@@ -11817,7 +11816,7 @@ const Oo = async (n, t) => {
|
|
11817
11816
|
headers: e
|
11818
11817
|
}
|
11819
11818
|
})).data?.designCreate;
|
11820
|
-
},
|
11819
|
+
}, Uo = async (n, t) => {
|
11821
11820
|
const e = {};
|
11822
11821
|
try {
|
11823
11822
|
if (!t) throw new Error();
|
@@ -11826,7 +11825,7 @@ const Oo = async (n, t) => {
|
|
11826
11825
|
o && !Wt(o) && (e.Authorization = `Bearer ${o}`);
|
11827
11826
|
}
|
11828
11827
|
return (await y.getShadowGraphqlClient().mutate({
|
11829
|
-
mutation:
|
11828
|
+
mutation: Oo,
|
11830
11829
|
errorPolicy: "all",
|
11831
11830
|
fetchPolicy: "no-cache",
|
11832
11831
|
variables: {
|
@@ -11881,7 +11880,7 @@ const Oo = async (n, t) => {
|
|
11881
11880
|
return t.steps.forEach((i) => {
|
11882
11881
|
Object.assign(r, a(i));
|
11883
11882
|
}), r;
|
11884
|
-
},
|
11883
|
+
}, Lo = (n, t, e, a) => {
|
11885
11884
|
const r = {};
|
11886
11885
|
let i = {};
|
11887
11886
|
a && (i = a);
|
@@ -11902,7 +11901,7 @@ const Oo = async (n, t) => {
|
|
11902
11901
|
}
|
11903
11902
|
return r;
|
11904
11903
|
}, er = (n, t, e, a, r, i, s, o) => {
|
11905
|
-
const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d =
|
11904
|
+
const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = Lo(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
|
11906
11905
|
additionalExternalProductId: n.integrationProduct?.additionalExternalProductId,
|
11907
11906
|
additionalExternalVariantId: n.integrationProduct?.additionalExternalVariantId,
|
11908
11907
|
baseCost: l,
|
@@ -12015,7 +12014,7 @@ const Oo = async (n, t) => {
|
|
12015
12014
|
cartSelectionsWithPrices: S,
|
12016
12015
|
cartMetadata: g
|
12017
12016
|
};
|
12018
|
-
},
|
12017
|
+
}, Vo = async (n, t, e, a, r, i, s, o, l, c, d) => {
|
12019
12018
|
l("workflow.steps.finish.finalize.buildingLayouts");
|
12020
12019
|
const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await ar(
|
12021
12020
|
n,
|
@@ -12029,7 +12028,7 @@ const Oo = async (n, t) => {
|
|
12029
12028
|
d
|
12030
12029
|
);
|
12031
12030
|
l("workflow.steps.finish.finalize.creatingDesign");
|
12032
|
-
const m = await
|
12031
|
+
const m = await $o(A), g = m?.transaction?.previewImageLink;
|
12033
12032
|
if (!m?.transaction)
|
12034
12033
|
throw new Error("Failed to create design");
|
12035
12034
|
l("workflow.steps.finish.finalize.updatingTransaction");
|
@@ -12044,7 +12043,7 @@ const Oo = async (n, t) => {
|
|
12044
12043
|
g,
|
12045
12044
|
m?.processExecution?.id
|
12046
12045
|
);
|
12047
|
-
},
|
12046
|
+
}, zo = async (n, t, e) => {
|
12048
12047
|
t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
|
12049
12048
|
n.map(async (o) => {
|
12050
12049
|
await o.workflowManager.outstandingRequestsPromise();
|
@@ -12075,7 +12074,7 @@ const Oo = async (n, t) => {
|
|
12075
12074
|
))
|
12076
12075
|
);
|
12077
12076
|
t("workflow.steps.finish.finalize.creatingDesign");
|
12078
|
-
const s = await
|
12077
|
+
const s = await Uo(i.map((o) => o.designDetails));
|
12079
12078
|
if (!s)
|
12080
12079
|
throw new Error("Failed to create designs");
|
12081
12080
|
return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
|
@@ -12092,7 +12091,7 @@ const Oo = async (n, t) => {
|
|
12092
12091
|
);
|
12093
12092
|
});
|
12094
12093
|
};
|
12095
|
-
class
|
12094
|
+
class Go {
|
12096
12095
|
constructor() {
|
12097
12096
|
this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
|
12098
12097
|
}
|
@@ -12159,7 +12158,7 @@ class zo {
|
|
12159
12158
|
throw new V("Unexpected storage method requested");
|
12160
12159
|
}
|
12161
12160
|
}
|
12162
|
-
const Xe = new
|
12161
|
+
const Xe = new Go(), Wo = w`
|
12163
12162
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
12164
12163
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
12165
12164
|
id
|
@@ -12173,7 +12172,7 @@ const Xe = new zo(), Go = w`
|
|
12173
12172
|
}
|
12174
12173
|
}
|
12175
12174
|
}
|
12176
|
-
`,
|
12175
|
+
`, qo = w`
|
12177
12176
|
mutation AddAddressToTransaction(
|
12178
12177
|
$transactionId: String!
|
12179
12178
|
$streetAddress: String
|
@@ -12195,15 +12194,15 @@ const Xe = new zo(), Go = w`
|
|
12195
12194
|
id
|
12196
12195
|
}
|
12197
12196
|
}
|
12198
|
-
`,
|
12197
|
+
`, Ho = w`
|
12199
12198
|
mutation AddOrganizationToTransaction($transactionId: String!, $organizationName: String!) {
|
12200
12199
|
organizationAttachToTransaction(transactionId: $transactionId, organizationName: $organizationName) {
|
12201
12200
|
id
|
12202
12201
|
}
|
12203
12202
|
}
|
12204
12203
|
`;
|
12205
|
-
var
|
12206
|
-
class
|
12204
|
+
var jo = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n))(jo || {});
|
12205
|
+
class Yo {
|
12207
12206
|
constructor(t, e) {
|
12208
12207
|
if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = un(async () => {
|
12209
12208
|
await Xe.getSavedDesignByTransaction(
|
@@ -12224,7 +12223,7 @@ class jo {
|
|
12224
12223
|
throw new Error("No Workflow ID provided.");
|
12225
12224
|
this.client = t;
|
12226
12225
|
const a = e.layouts;
|
12227
|
-
this.commandContext = new ms(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new
|
12226
|
+
this.commandContext = new ms(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Bo(
|
12228
12227
|
this,
|
12229
12228
|
t,
|
12230
12229
|
e.workflow,
|
@@ -12265,7 +12264,7 @@ class jo {
|
|
12265
12264
|
}
|
12266
12265
|
async attachAddress(t, e, a, r, i, s) {
|
12267
12266
|
await this.graphQlClient().mutate({
|
12268
|
-
mutation:
|
12267
|
+
mutation: qo,
|
12269
12268
|
variables: {
|
12270
12269
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
12271
12270
|
streetAddress: t || void 0,
|
@@ -12279,7 +12278,7 @@ class jo {
|
|
12279
12278
|
}
|
12280
12279
|
async attachOrganization(t) {
|
12281
12280
|
await this.graphQlClient().mutate({
|
12282
|
-
mutation:
|
12281
|
+
mutation: Ho,
|
12283
12282
|
variables: {
|
12284
12283
|
transactionId: this.getWorkflowManager().getTransaction().id,
|
12285
12284
|
organizationName: t
|
@@ -12470,7 +12469,7 @@ class jo {
|
|
12470
12469
|
}
|
12471
12470
|
async assignCustomerDetails(t) {
|
12472
12471
|
const a = (await this.graphQlClient().mutate({
|
12473
|
-
mutation:
|
12472
|
+
mutation: Wo,
|
12474
12473
|
variables: {
|
12475
12474
|
id: this.getWorkflowManager().getTransaction().id,
|
12476
12475
|
details: t,
|
@@ -12536,7 +12535,7 @@ class jo {
|
|
12536
12535
|
transactionId: a.id,
|
12537
12536
|
workflowViewerLink: "",
|
12538
12537
|
workflowViewerReadOnlyLink: ""
|
12539
|
-
}) :
|
12538
|
+
}) : Vo(
|
12540
12539
|
this.workflowManager,
|
12541
12540
|
this.workflowManager.getWorkflow(),
|
12542
12541
|
this.workflowManager.getLayouts(),
|
@@ -12567,7 +12566,7 @@ class jo {
|
|
12567
12566
|
title: i.stepTitle,
|
12568
12567
|
properties: []
|
12569
12568
|
};
|
12570
|
-
if (l &&
|
12569
|
+
if (l && Ko(i, a) && c.properties.push({
|
12571
12570
|
type: "selection",
|
12572
12571
|
value: l.name,
|
12573
12572
|
priceModifier: l.priceModifier
|
@@ -12661,7 +12660,7 @@ class jo {
|
|
12661
12660
|
(this.eventCallbacks.get(t) || []).forEach((e) => e(this));
|
12662
12661
|
}
|
12663
12662
|
}
|
12664
|
-
const
|
12663
|
+
const Jo = (n) => {
|
12665
12664
|
if ([
|
12666
12665
|
v.Question,
|
12667
12666
|
v.Frame,
|
@@ -12676,14 +12675,14 @@ const Yo = (n) => {
|
|
12676
12675
|
return !!e.displaySelectionOnFinishStep || !!e.displaySelectionsOnFinishStep;
|
12677
12676
|
}
|
12678
12677
|
return !1;
|
12679
|
-
},
|
12680
|
-
if (!
|
12678
|
+
}, Ko = (n, t) => {
|
12679
|
+
if (!Jo(n)) return !1;
|
12681
12680
|
if (n.option && (n.option.variants || []).length > 1) {
|
12682
12681
|
const e = t[n.stepName];
|
12683
12682
|
return !!(e && e.selections.length > 0);
|
12684
12683
|
}
|
12685
12684
|
return !1;
|
12686
|
-
},
|
12685
|
+
}, _o = [
|
12687
12686
|
"altGlyph",
|
12688
12687
|
"circle",
|
12689
12688
|
"ellipse",
|
@@ -12695,7 +12694,7 @@ const Yo = (n) => {
|
|
12695
12694
|
"textPath",
|
12696
12695
|
"tref",
|
12697
12696
|
"tspan"
|
12698
|
-
],
|
12697
|
+
], Xo = async (n, t, e) => {
|
12699
12698
|
const a = t.data, r = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = r.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + r);
|
12700
12699
|
o.searchParams.append("video", $a(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
|
12701
12700
|
const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await An(l, { type: "svg" }))}`, A = (h) => {
|
@@ -12722,7 +12721,7 @@ const Yo = (n) => {
|
|
12722
12721
|
} catch (h) {
|
12723
12722
|
return console.error(h), [];
|
12724
12723
|
}
|
12725
|
-
},
|
12724
|
+
}, Zo = async (n, t, e, a) => {
|
12726
12725
|
const r = e.data, i = r.assetUrl, s = await da(i);
|
12727
12726
|
try {
|
12728
12727
|
const o = gs(r, a.option);
|
@@ -12779,7 +12778,7 @@ const Yo = (n) => {
|
|
12779
12778
|
} catch (o) {
|
12780
12779
|
return console.error(o), [];
|
12781
12780
|
}
|
12782
|
-
},
|
12781
|
+
}, tl = async (n, t, e, a) => {
|
12783
12782
|
const r = e.data, i = a.option;
|
12784
12783
|
if (!i)
|
12785
12784
|
return console.error(`No option for step ${a.stepName}.`), [];
|
@@ -12798,7 +12797,7 @@ const Yo = (n) => {
|
|
12798
12797
|
wa(m);
|
12799
12798
|
const g = {};
|
12800
12799
|
kt(m, (C) => {
|
12801
|
-
|
12800
|
+
_o.includes(C.tagName) && !C.attributes.getNamedItem("fill") && C.setAttribute("fill", "#000000");
|
12802
12801
|
const E = C.attributes.getNamedItem("fill");
|
12803
12802
|
if (E && E.value !== "none") {
|
12804
12803
|
const B = E.value, Q = `spiff-fill-${B.replace(/\W/g, "")}`;
|
@@ -12847,7 +12846,7 @@ const Yo = (n) => {
|
|
12847
12846
|
} catch (C) {
|
12848
12847
|
return console.error(C), [];
|
12849
12848
|
}
|
12850
|
-
},
|
12849
|
+
}, el = async (n, t, e) => {
|
12851
12850
|
const a = await Zn(e.data.module), r = t.data, i = (o, l) => {
|
12852
12851
|
const c = n.find((A) => A.panelId === l.panelId);
|
12853
12852
|
if (!c)
|
@@ -12877,7 +12876,7 @@ const Yo = (n) => {
|
|
12877
12876
|
} catch (o) {
|
12878
12877
|
return console.error(o), [];
|
12879
12878
|
}
|
12880
|
-
},
|
12879
|
+
}, al = async (n, t, e, a) => {
|
12881
12880
|
const r = e.data, i = a.option;
|
12882
12881
|
if (!i)
|
12883
12882
|
return console.error(`No option for step ${a.stepName}.`), [];
|
@@ -12918,7 +12917,7 @@ const Yo = (n) => {
|
|
12918
12917
|
} catch (d) {
|
12919
12918
|
return console.error(d), [];
|
12920
12919
|
}
|
12921
|
-
},
|
12920
|
+
}, nl = async (n, t, e, a) => {
|
12922
12921
|
const r = e.data, i = a.option;
|
12923
12922
|
if (!i)
|
12924
12923
|
return console.error(`No option for step ${a.stepName}.`), [];
|
@@ -12974,7 +12973,7 @@ const Yo = (n) => {
|
|
12974
12973
|
} catch (c) {
|
12975
12974
|
return console.error(c), [];
|
12976
12975
|
}
|
12977
|
-
},
|
12976
|
+
}, rl = async (n, t, e) => {
|
12978
12977
|
const a = [], i = t.type === v.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", o = i.endsWith(".jpeg") || i.endsWith(".jpg") || i.endsWith(".png") ? x.Image : (i.endsWith(".svg"), x.Illustration), l = t.data.regions;
|
12979
12978
|
if (o === "image")
|
12980
12979
|
try {
|
@@ -13038,7 +13037,7 @@ const Yo = (n) => {
|
|
13038
13037
|
});
|
13039
13038
|
}
|
13040
13039
|
return a;
|
13041
|
-
},
|
13040
|
+
}, il = async (n, t, e, a) => {
|
13042
13041
|
const r = [], i = e.data, s = 30, o = (p) => p.vertical ? "center" : p.textAlign || "center", l = () => {
|
13043
13042
|
const p = a.option;
|
13044
13043
|
if (!p)
|
@@ -13123,7 +13122,7 @@ const Yo = (n) => {
|
|
13123
13122
|
r.push(new z(S, f));
|
13124
13123
|
}
|
13125
13124
|
return r;
|
13126
|
-
},
|
13125
|
+
}, sl = (n, t) => n.conditions ? n.conditions.every((e) => {
|
13127
13126
|
const a = t[e.targetStepName];
|
13128
13127
|
if (a && a.selectedVariants) {
|
13129
13128
|
const r = a.selectedVariants;
|
@@ -13132,7 +13131,7 @@ const Yo = (n) => {
|
|
13132
13131
|
);
|
13133
13132
|
}
|
13134
13133
|
return !1;
|
13135
|
-
}) : !0,
|
13134
|
+
}) : !0, ol = async (n, t, e, a) => {
|
13136
13135
|
const r = [], i = {};
|
13137
13136
|
for (const s of n) {
|
13138
13137
|
const o = t.steps.find((l) => l.stepName === s.name);
|
@@ -13140,18 +13139,18 @@ const Yo = (n) => {
|
|
13140
13139
|
switch (o.type) {
|
13141
13140
|
case v.DigitalContent:
|
13142
13141
|
r.push(
|
13143
|
-
...await
|
13142
|
+
...await Xo(e, s, o)
|
13144
13143
|
);
|
13145
13144
|
break;
|
13146
13145
|
case v.Frame:
|
13147
13146
|
case v.Photo:
|
13148
13147
|
r.push(
|
13149
|
-
...await
|
13148
|
+
...await Zo(e, i, s, o)
|
13150
13149
|
);
|
13151
13150
|
break;
|
13152
13151
|
case v.Illustration:
|
13153
13152
|
r.push(
|
13154
|
-
...await
|
13153
|
+
...await tl(
|
13155
13154
|
e,
|
13156
13155
|
i,
|
13157
13156
|
s,
|
@@ -13160,39 +13159,39 @@ const Yo = (n) => {
|
|
13160
13159
|
);
|
13161
13160
|
break;
|
13162
13161
|
case v.Module:
|
13163
|
-
r.push(...await
|
13162
|
+
r.push(...await el(e, s, o));
|
13164
13163
|
break;
|
13165
13164
|
case v.Picture:
|
13166
13165
|
r.push(
|
13167
|
-
...await
|
13166
|
+
...await al(e, i, s, o)
|
13168
13167
|
);
|
13169
13168
|
break;
|
13170
13169
|
case v.Shape:
|
13171
13170
|
r.push(
|
13172
|
-
...await
|
13171
|
+
...await nl(e, i, s, o)
|
13173
13172
|
);
|
13174
13173
|
break;
|
13175
13174
|
case v.Text:
|
13176
13175
|
r.push(
|
13177
|
-
...await
|
13176
|
+
...await il(e, i, s, o)
|
13178
13177
|
);
|
13179
13178
|
break;
|
13180
13179
|
}
|
13181
13180
|
}
|
13182
13181
|
for (const s of t.steps)
|
13183
|
-
s.type !== v.SilentIllustration && s.type !== v.ProductOverlay ||
|
13184
|
-
...await
|
13182
|
+
s.type !== v.SilentIllustration && s.type !== v.ProductOverlay || sl(s, i) && r.push(
|
13183
|
+
...await rl(e, s, a)
|
13185
13184
|
);
|
13186
13185
|
return r;
|
13187
13186
|
};
|
13188
|
-
class
|
13187
|
+
class ll {
|
13189
13188
|
constructor(t) {
|
13190
13189
|
this.handleCompleteRender = null;
|
13191
13190
|
const e = /* @__PURE__ */ new Map();
|
13192
13191
|
t.forEach(
|
13193
13192
|
(a) => e.set(
|
13194
13193
|
a.id,
|
13195
|
-
new
|
13194
|
+
new Al(
|
13196
13195
|
a.id,
|
13197
13196
|
a.name,
|
13198
13197
|
this,
|
@@ -13218,15 +13217,15 @@ class ol {
|
|
13218
13217
|
return this.workflowManager;
|
13219
13218
|
}
|
13220
13219
|
}
|
13221
|
-
const
|
13220
|
+
const cl = () => new Promise((n, t) => {
|
13222
13221
|
try {
|
13223
13222
|
const a = pt().getContext("webgl2");
|
13224
13223
|
n(!!a);
|
13225
13224
|
} catch {
|
13226
13225
|
n(!1);
|
13227
13226
|
}
|
13228
|
-
}),
|
13229
|
-
class
|
13227
|
+
}), dl = cl();
|
13228
|
+
class Al {
|
13230
13229
|
constructor(t, e, a, r, i) {
|
13231
13230
|
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Tn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
|
13232
13231
|
}
|
@@ -13282,10 +13281,10 @@ class dl {
|
|
13282
13281
|
return;
|
13283
13282
|
}
|
13284
13283
|
this.renderQueue.enqueue(
|
13285
|
-
new
|
13284
|
+
new ul(
|
13286
13285
|
this.getID(),
|
13287
13286
|
a,
|
13288
|
-
await
|
13287
|
+
await dl,
|
13289
13288
|
() => {
|
13290
13289
|
this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
|
13291
13290
|
},
|
@@ -13295,7 +13294,7 @@ class dl {
|
|
13295
13294
|
);
|
13296
13295
|
}
|
13297
13296
|
}
|
13298
|
-
class
|
13297
|
+
class ul extends Mn {
|
13299
13298
|
constructor(t, e, a, r, i, s) {
|
13300
13299
|
super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = r, this.layouts = i, this.getWorkflowManager = s;
|
13301
13300
|
}
|
@@ -13365,7 +13364,7 @@ class Al extends Mn {
|
|
13365
13364
|
h.resize(l, c), await h.render(), this.onRender();
|
13366
13365
|
}
|
13367
13366
|
}
|
13368
|
-
const
|
13367
|
+
const fd = (n, t) => {
|
13369
13368
|
const e = [];
|
13370
13369
|
return n.forEach((a) => {
|
13371
13370
|
const r = t.steps.find((i) => i.stepName === a.stepName);
|
@@ -13376,16 +13375,16 @@ const pd = (n, t) => {
|
|
13376
13375
|
}
|
13377
13376
|
});
|
13378
13377
|
}), e;
|
13379
|
-
},
|
13378
|
+
}, Cd = async (n, t, e, a) => {
|
13380
13379
|
let r = {
|
13381
13380
|
serializableWorkflow: { steps: [] },
|
13382
13381
|
layouts: {}
|
13383
13382
|
};
|
13384
13383
|
r = new R(e.map((l) => new qn(l))).apply(r);
|
13385
|
-
const s = await
|
13384
|
+
const s = await ol(n, t, e, a);
|
13386
13385
|
return new R(s).apply(r);
|
13387
13386
|
};
|
13388
|
-
class
|
13387
|
+
class hl {
|
13389
13388
|
constructor(t) {
|
13390
13389
|
this.handleCache = {}, this.bundle = t;
|
13391
13390
|
}
|
@@ -13427,7 +13426,7 @@ class ul {
|
|
13427
13426
|
async createHandle(t) {
|
13428
13427
|
switch (t.type) {
|
13429
13428
|
case U.FileUpload:
|
13430
|
-
return new
|
13429
|
+
return new ml(this.bundle, t).initialize();
|
13431
13430
|
case U.ColorOption:
|
13432
13431
|
return new Za(
|
13433
13432
|
this.bundle,
|
@@ -13439,7 +13438,7 @@ class ul {
|
|
13439
13438
|
return e?.type === "Color" ? new Za(this.bundle, t, e) : new nr(this.bundle, t, e);
|
13440
13439
|
}
|
13441
13440
|
case U.Text:
|
13442
|
-
return new
|
13441
|
+
return new gl(this.bundle, t);
|
13443
13442
|
default:
|
13444
13443
|
throw new Error("Unhandled Global Property Aspect Type");
|
13445
13444
|
}
|
@@ -13506,7 +13505,7 @@ class Da {
|
|
13506
13505
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
13507
13506
|
}
|
13508
13507
|
}
|
13509
|
-
class
|
13508
|
+
class ml extends Da {
|
13510
13509
|
constructor(t, e) {
|
13511
13510
|
super(t, e);
|
13512
13511
|
}
|
@@ -13732,7 +13731,7 @@ class hl extends Da {
|
|
13732
13731
|
);
|
13733
13732
|
}
|
13734
13733
|
}
|
13735
|
-
class
|
13734
|
+
class gl extends Da {
|
13736
13735
|
constructor(t, e) {
|
13737
13736
|
super(t, e);
|
13738
13737
|
}
|
@@ -13883,8 +13882,8 @@ class Za extends nr {
|
|
13883
13882
|
return this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)?.customColor || this.getCurrentVariant()?.getColor() || "#ffffff";
|
13884
13883
|
}
|
13885
13884
|
}
|
13886
|
-
const
|
13887
|
-
const r =
|
13885
|
+
const pl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlobalPropertyAspects(t).includes(e) && r.getType() === a), fl = (n, t, e) => {
|
13886
|
+
const r = pl(
|
13888
13887
|
n,
|
13889
13888
|
t,
|
13890
13889
|
e,
|
@@ -13897,21 +13896,21 @@ const gl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlo
|
|
13897
13896
|
};
|
13898
13897
|
function ua(n, t) {
|
13899
13898
|
function e(a) {
|
13900
|
-
if (typeof a > "u" || !Array.isArray(a) && !
|
13899
|
+
if (typeof a > "u" || !Array.isArray(a) && !wl(a))
|
13901
13900
|
return a;
|
13902
13901
|
if (Array.isArray(a))
|
13903
13902
|
return ua(a, t);
|
13904
13903
|
let r = {};
|
13905
13904
|
for (const [i, s] of Object.entries(a))
|
13906
|
-
r[i] =
|
13905
|
+
r[i] = Cl(s) ? s : ua(s, t);
|
13907
13906
|
return Ir(r, t);
|
13908
13907
|
}
|
13909
13908
|
return Array.isArray(n) ? n.map(e) : e(n);
|
13910
13909
|
}
|
13911
|
-
function
|
13910
|
+
function Cl(n) {
|
13912
13911
|
return n == null;
|
13913
13912
|
}
|
13914
|
-
function
|
13913
|
+
function wl(n) {
|
13915
13914
|
return typeof n == "object" && !Array.isArray(n) && n !== null;
|
13916
13915
|
}
|
13917
13916
|
function rr(n) {
|
@@ -13923,7 +13922,7 @@ function rr(n) {
|
|
13923
13922
|
function Ae(n) {
|
13924
13923
|
return ua(n, ["__typename"]);
|
13925
13924
|
}
|
13926
|
-
class
|
13925
|
+
class yl {
|
13927
13926
|
constructor(t, e, a, r, i) {
|
13928
13927
|
this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
|
13929
13928
|
const s = i?.existingGlobalPropertyState;
|
@@ -14105,7 +14104,7 @@ class wl {
|
|
14105
14104
|
throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
|
14106
14105
|
}
|
14107
14106
|
}
|
14108
|
-
class
|
14107
|
+
class Sl {
|
14109
14108
|
constructor(t) {
|
14110
14109
|
this.setState(t);
|
14111
14110
|
}
|
@@ -14191,7 +14190,7 @@ class yl {
|
|
14191
14190
|
};
|
14192
14191
|
}
|
14193
14192
|
}
|
14194
|
-
const
|
14193
|
+
const vl = w`
|
14195
14194
|
query GetManyMetafields($entityIds: [String!]!) {
|
14196
14195
|
metafieldsMany(entityIds: $entityIds) {
|
14197
14196
|
id
|
@@ -14203,7 +14202,7 @@ const Sl = w`
|
|
14203
14202
|
}
|
14204
14203
|
}
|
14205
14204
|
`;
|
14206
|
-
class
|
14205
|
+
class El {
|
14207
14206
|
constructor() {
|
14208
14207
|
this.internalMap = /* @__PURE__ */ new Map();
|
14209
14208
|
}
|
@@ -14224,7 +14223,7 @@ class vl {
|
|
14224
14223
|
async ensureIdsArePresent(t) {
|
14225
14224
|
if (t.every((a) => this.internalMap.has(a))) return;
|
14226
14225
|
const e = await y.getShadowGraphqlClient().query({
|
14227
|
-
query:
|
14226
|
+
query: vl,
|
14228
14227
|
errorPolicy: "all",
|
14229
14228
|
variables: {
|
14230
14229
|
entityIds: t.filter((a) => !this.internalMap.has(a))
|
@@ -14265,8 +14264,8 @@ class vl {
|
|
14265
14264
|
return JSON.parse(r.value);
|
14266
14265
|
}
|
14267
14266
|
}
|
14268
|
-
const
|
14269
|
-
var
|
14267
|
+
const bl = new El();
|
14268
|
+
var Bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(Bl || {});
|
14270
14269
|
class ir {
|
14271
14270
|
constructor(t) {
|
14272
14271
|
this.fullFetched = !1, this.collection = t;
|
@@ -14440,7 +14439,7 @@ class ir {
|
|
14440
14439
|
}
|
14441
14440
|
getTransformCollection() {
|
14442
14441
|
if (this.collection.transformCollection)
|
14443
|
-
return new
|
14442
|
+
return new Il(this.collection.transformCollection);
|
14444
14443
|
}
|
14445
14444
|
/**
|
14446
14445
|
* The raw collection resource. This is generally not needed and should be avoided.
|
@@ -14566,7 +14565,7 @@ class ue {
|
|
14566
14565
|
* @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.
|
14567
14566
|
*/
|
14568
14567
|
async requestMetafields(t) {
|
14569
|
-
return
|
14568
|
+
return bl.requestKeysForEntity(this.product.id, t);
|
14570
14569
|
}
|
14571
14570
|
}
|
14572
14571
|
class qt {
|
@@ -14593,7 +14592,7 @@ class qt {
|
|
14593
14592
|
return this.workflow.imageUrl;
|
14594
14593
|
}
|
14595
14594
|
}
|
14596
|
-
class
|
14595
|
+
class Il {
|
14597
14596
|
constructor(t) {
|
14598
14597
|
this.collection = t;
|
14599
14598
|
}
|
@@ -14613,10 +14612,10 @@ class Bl {
|
|
14613
14612
|
* @returns The transforms in this collection.
|
14614
14613
|
*/
|
14615
14614
|
getTransforms() {
|
14616
|
-
return this.collection.transforms.map((t) => new
|
14615
|
+
return this.collection.transforms.map((t) => new Pl(t));
|
14617
14616
|
}
|
14618
14617
|
}
|
14619
|
-
class
|
14618
|
+
class Pl {
|
14620
14619
|
constructor(t) {
|
14621
14620
|
this.transform = t;
|
14622
14621
|
}
|
@@ -14643,21 +14642,21 @@ class Il {
|
|
14643
14642
|
};
|
14644
14643
|
}
|
14645
14644
|
}
|
14646
|
-
const
|
14645
|
+
const Dl = w`
|
14647
14646
|
${ie(!1)}
|
14648
14647
|
query GetProductCollections($ids: [String!]!) {
|
14649
14648
|
productCollections(ids: $ids) {
|
14650
14649
|
...ProductCollectionFields
|
14651
14650
|
}
|
14652
14651
|
}
|
14653
|
-
`,
|
14654
|
-
query:
|
14652
|
+
`, wd = async (n) => (await y.getShadowGraphqlClient().query({
|
14653
|
+
query: Dl,
|
14655
14654
|
errorPolicy: "all",
|
14656
14655
|
variables: {
|
14657
14656
|
ids: n
|
14658
14657
|
}
|
14659
14658
|
})).data?.productCollections?.map((e) => new ir(e));
|
14660
|
-
class
|
14659
|
+
class Fl {
|
14661
14660
|
constructor() {
|
14662
14661
|
this.listeners = {};
|
14663
14662
|
}
|
@@ -14684,7 +14683,7 @@ class Dl {
|
|
14684
14683
|
delete this.listeners[e];
|
14685
14684
|
}
|
14686
14685
|
}
|
14687
|
-
const
|
14686
|
+
const xl = w`
|
14688
14687
|
mutation AddAddressToBundle(
|
14689
14688
|
$bundleId: String!
|
14690
14689
|
$streetAddress: String
|
@@ -14706,13 +14705,13 @@ const Fl = w`
|
|
14706
14705
|
id
|
14707
14706
|
}
|
14708
14707
|
}
|
14709
|
-
`,
|
14708
|
+
`, kl = w`
|
14710
14709
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
14711
14710
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
14712
14711
|
id
|
14713
14712
|
}
|
14714
14713
|
}
|
14715
|
-
`,
|
14714
|
+
`, Ml = w`
|
14716
14715
|
mutation GenerateQuoteId($id: String!) {
|
14717
14716
|
bundleGenerateQuoteId(id: $id) {
|
14718
14717
|
id
|
@@ -14722,15 +14721,15 @@ const Fl = w`
|
|
14722
14721
|
`;
|
14723
14722
|
class Ze {
|
14724
14723
|
constructor(t, e, a, r, i, s) {
|
14725
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
14724
|
+
this.workflowExperiences = [], this.eventEmitter = new Fl(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Sl(e.bundleStateData);
|
14726
14725
|
const o = this.productCollection?.globalPropertyConfiguration;
|
14727
|
-
this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new
|
14726
|
+
this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new yl(
|
14728
14727
|
this.id,
|
14729
14728
|
this.ownerId,
|
14730
14729
|
o,
|
14731
14730
|
this.onGlobalPropertiesChanged.bind(this),
|
14732
14731
|
s
|
14733
|
-
), this.globalPropertyHandleService = new
|
14732
|
+
), this.globalPropertyHandleService = new hl(this), this.setPreviewService(a);
|
14734
14733
|
const l = new Promise((c, d) => {
|
14735
14734
|
if (s?.readonly) {
|
14736
14735
|
c([]);
|
@@ -14766,7 +14765,7 @@ class Ze {
|
|
14766
14765
|
}
|
14767
14766
|
async generateQuoteId() {
|
14768
14767
|
const e = (await y.getShadowGraphqlClient().mutate({
|
14769
|
-
mutation:
|
14768
|
+
mutation: Ml,
|
14770
14769
|
variables: {
|
14771
14770
|
id: this.id
|
14772
14771
|
},
|
@@ -14778,7 +14777,7 @@ class Ze {
|
|
14778
14777
|
}
|
14779
14778
|
async attachAddress(t, e, a, r, i, s) {
|
14780
14779
|
await y.getShadowGraphqlClient().mutate({
|
14781
|
-
mutation:
|
14780
|
+
mutation: xl,
|
14782
14781
|
variables: {
|
14783
14782
|
bundleId: this.id,
|
14784
14783
|
streetAddress: t || void 0,
|
@@ -14795,7 +14794,7 @@ class Ze {
|
|
14795
14794
|
}
|
14796
14795
|
async attachOrganization(t) {
|
14797
14796
|
await y.getShadowGraphqlClient().mutate({
|
14798
|
-
mutation:
|
14797
|
+
mutation: kl,
|
14799
14798
|
variables: {
|
14800
14799
|
bundleId: this.id,
|
14801
14800
|
organizationName: t
|
@@ -14932,7 +14931,7 @@ class Ze {
|
|
14932
14931
|
(s) => s.name === r
|
14933
14932
|
);
|
14934
14933
|
if (i && i.type === U.ColorOption) {
|
14935
|
-
const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c =
|
14934
|
+
const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = fl(
|
14936
14935
|
this.getWorkflowExperiences(),
|
14937
14936
|
this.globalConfigurationPropertyId || "",
|
14938
14937
|
r
|
@@ -15215,7 +15214,7 @@ class Ze {
|
|
15215
15214
|
bundleId: this.id
|
15216
15215
|
}
|
15217
15216
|
});
|
15218
|
-
const a = await
|
15217
|
+
const a = await zo(
|
15219
15218
|
this.workflowExperiences.map((r) => ({
|
15220
15219
|
workflowManager: r.getWorkflowManager(),
|
15221
15220
|
workflow: r.getWorkflowManager().getWorkflow(),
|
@@ -15450,14 +15449,14 @@ class Ze {
|
|
15450
15449
|
};
|
15451
15450
|
}
|
15452
15451
|
}
|
15453
|
-
const
|
15452
|
+
const Tl = w`
|
15454
15453
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
15455
15454
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
15456
15455
|
id
|
15457
15456
|
}
|
15458
15457
|
}
|
15459
15458
|
`;
|
15460
|
-
class
|
15459
|
+
class Nl {
|
15461
15460
|
/**
|
15462
15461
|
*
|
15463
15462
|
* @param id
|
@@ -15467,7 +15466,7 @@ class Tl {
|
|
15467
15466
|
*/
|
15468
15467
|
async execute(t, e, a) {
|
15469
15468
|
const i = (await y.getShadowGraphqlClient().mutate({
|
15470
|
-
mutation:
|
15469
|
+
mutation: Tl,
|
15471
15470
|
variables: {
|
15472
15471
|
processFlowId: t,
|
15473
15472
|
inputs: [...e.map((A) => A.getValueForTransmission())]
|
@@ -15507,7 +15506,7 @@ class Tl {
|
|
15507
15506
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
15508
15507
|
);
|
15509
15508
|
if (A.completedAt) {
|
15510
|
-
o = !0, d = new
|
15509
|
+
o = !0, d = new Ql(A);
|
15511
15510
|
break;
|
15512
15511
|
}
|
15513
15512
|
l += 1;
|
@@ -15519,7 +15518,7 @@ class Tl {
|
|
15519
15518
|
return Promise.resolve(d);
|
15520
15519
|
}
|
15521
15520
|
}
|
15522
|
-
class
|
15521
|
+
class Ql {
|
15523
15522
|
constructor(t) {
|
15524
15523
|
this.execution = t;
|
15525
15524
|
}
|
@@ -15604,8 +15603,8 @@ class Fa {
|
|
15604
15603
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
15605
15604
|
}
|
15606
15605
|
}
|
15607
|
-
var
|
15608
|
-
class
|
15606
|
+
var Rl = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(Rl || {});
|
15607
|
+
class yd extends Fa {
|
15609
15608
|
constructor(t) {
|
15610
15609
|
super(`"${t}"`);
|
15611
15610
|
}
|
@@ -15620,7 +15619,7 @@ class sr extends Fa {
|
|
15620
15619
|
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);
|
15621
15620
|
}
|
15622
15621
|
}
|
15623
|
-
class
|
15622
|
+
class Sd extends Fa {
|
15624
15623
|
constructor(t) {
|
15625
15624
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
15626
15625
|
}
|
@@ -15682,7 +15681,7 @@ const me = w`
|
|
15682
15681
|
}
|
15683
15682
|
}
|
15684
15683
|
}
|
15685
|
-
`,
|
15684
|
+
`, Ol = w`
|
15686
15685
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
15687
15686
|
customerCreate(details: $details) {
|
15688
15687
|
id
|
@@ -15724,7 +15723,7 @@ w`
|
|
15724
15723
|
}
|
15725
15724
|
}
|
15726
15725
|
`;
|
15727
|
-
const
|
15726
|
+
const $l = w`
|
15728
15727
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
15729
15728
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
15730
15729
|
}
|
@@ -15761,7 +15760,7 @@ w`
|
|
15761
15760
|
}
|
15762
15761
|
}
|
15763
15762
|
`;
|
15764
|
-
const
|
15763
|
+
const Ul = w`
|
15765
15764
|
query CustomerMetafields($id: String!) {
|
15766
15765
|
metafields(entityId: $id) {
|
15767
15766
|
id
|
@@ -15780,7 +15779,7 @@ const $l = w`
|
|
15780
15779
|
}
|
15781
15780
|
}
|
15782
15781
|
`;
|
15783
|
-
class
|
15782
|
+
class Ll {
|
15784
15783
|
constructor(t, e = y.getShadowGraphqlClient.bind(y)) {
|
15785
15784
|
this.options = t, this.client = e;
|
15786
15785
|
}
|
@@ -15807,7 +15806,7 @@ class Ul {
|
|
15807
15806
|
});
|
15808
15807
|
}
|
15809
15808
|
}
|
15810
|
-
class
|
15809
|
+
class Vl {
|
15811
15810
|
init(t, e, a) {
|
15812
15811
|
this.cognitoClient = new Er({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
|
15813
15812
|
}
|
@@ -15857,8 +15856,8 @@ class Ll {
|
|
15857
15856
|
);
|
15858
15857
|
}
|
15859
15858
|
}
|
15860
|
-
const Lt = new
|
15861
|
-
class
|
15859
|
+
const Lt = new Vl();
|
15860
|
+
class zl {
|
15862
15861
|
/**
|
15863
15862
|
* Returns a formatted string representing a given amount with desired currency.
|
15864
15863
|
* @param currency The currency to represent the amount in.
|
@@ -15892,8 +15891,8 @@ class Vl {
|
|
15892
15891
|
return "USD0,0";
|
15893
15892
|
}
|
15894
15893
|
}
|
15895
|
-
const en = new
|
15896
|
-
class
|
15894
|
+
const en = new zl();
|
15895
|
+
class Gl {
|
15897
15896
|
constructor(t, e, a, r) {
|
15898
15897
|
this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
|
15899
15898
|
}
|
@@ -15933,7 +15932,7 @@ class zl {
|
|
15933
15932
|
return t * Math.pow(10, en.getPrecisionForCurrency(e));
|
15934
15933
|
}
|
15935
15934
|
}
|
15936
|
-
const
|
15935
|
+
const Wl = async (n, t) => {
|
15937
15936
|
const e = await y.getShadowGraphqlClient().query({
|
15938
15937
|
query: Li(t?.assets?.metadata || !1),
|
15939
15938
|
errorPolicy: "all",
|
@@ -15955,7 +15954,7 @@ const Gl = async (n, t) => {
|
|
15955
15954
|
}), Kt.set({ id: i.option.id }, Promise.resolve(i.option)));
|
15956
15955
|
}), r.finalizeStepConfig || (r.finalizeStepConfig = {}), r.finalizeStepConfig.termsMarkdown = r.finalizeStepConfig.termsMarkdown || r.partner.termsMarkdown;
|
15957
15956
|
}), a;
|
15958
|
-
},
|
15957
|
+
}, ql = async (n, t) => {
|
15959
15958
|
const a = (await t).find((r) => r.id === n);
|
15960
15959
|
if (!a)
|
15961
15960
|
throw new Error(`Workflow not found: ${n}`);
|
@@ -15964,11 +15963,11 @@ const Gl = async (n, t) => {
|
|
15964
15963
|
const e = n.map((o) => Kt.get({ id: o, options: t })), a = n.filter((o, l) => e[l] === void 0);
|
15965
15964
|
if (a.length === 0)
|
15966
15965
|
return Promise.all(e);
|
15967
|
-
const r =
|
15968
|
-
(o) => Kt.set({ id: o, options: t },
|
15966
|
+
const r = Wl(a, t), i = a.map(
|
15967
|
+
(o) => Kt.set({ id: o, options: t }, ql(o, r))
|
15969
15968
|
), s = e.filter((o) => o !== void 0);
|
15970
15969
|
return await Promise.all(s.concat(i));
|
15971
|
-
},
|
15970
|
+
}, vd = async (n, t) => (await or([n], t))[0], Hl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
15972
15971
|
id: M(),
|
15973
15972
|
panelId: t.name,
|
15974
15973
|
name: t.name,
|
@@ -15982,11 +15981,11 @@ const Gl = async (n, t) => {
|
|
15982
15981
|
previewRegion: t.previewRegion,
|
15983
15982
|
useEditableArea: t.useEditableArea,
|
15984
15983
|
editableArea: t.editableArea
|
15985
|
-
})),
|
15984
|
+
})), jl = (n, t) => {
|
15986
15985
|
const e = n.workflowState, a = e ? JSON.parse(e) : void 0;
|
15987
|
-
return a ? Object.values(a.layouts).map((r) => r.layout) :
|
15986
|
+
return a ? Object.values(a.layouts).map((r) => r.layout) : Hl(t.panels);
|
15988
15987
|
};
|
15989
|
-
class
|
15988
|
+
class Ed {
|
15990
15989
|
constructor(t) {
|
15991
15990
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
15992
15991
|
try {
|
@@ -15997,7 +15996,7 @@ class vd {
|
|
15997
15996
|
} catch (a) {
|
15998
15997
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
15999
15998
|
}
|
16000
|
-
}, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.7-beta.
|
15999
|
+
}, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.7-beta.8bae3361-3242-5b7e-a75c-ed03cdc03b9c"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
16001
16000
|
}
|
16002
16001
|
configure(t) {
|
16003
16002
|
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
@@ -16011,7 +16010,7 @@ class vd {
|
|
16011
16010
|
}
|
16012
16011
|
getFlowService() {
|
16013
16012
|
if (!qr()) throw new Error("Application key required to use Flow Service.");
|
16014
|
-
return new
|
16013
|
+
return new Nl();
|
16015
16014
|
}
|
16016
16015
|
async getCurrencyContext(t) {
|
16017
16016
|
const a = (await this.getIntegration()).partner.currencyCode, i = await y.getShadowGraphqlClient().query({
|
@@ -16023,14 +16022,14 @@ class vd {
|
|
16023
16022
|
to: t
|
16024
16023
|
}
|
16025
16024
|
}), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
|
16026
|
-
return new
|
16025
|
+
return new Gl(s, o, a, t);
|
16027
16026
|
}
|
16028
16027
|
async getIntegration() {
|
16029
16028
|
if (this.activeIntegration)
|
16030
16029
|
return this.activeIntegration;
|
16031
16030
|
if (!this.options.applicationKey)
|
16032
16031
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
16033
|
-
return this.activeIntegration =
|
16032
|
+
return this.activeIntegration = Yl(this.options.applicationKey), this.activeIntegration;
|
16034
16033
|
}
|
16035
16034
|
async canUseAddon(t) {
|
16036
16035
|
try {
|
@@ -16157,7 +16156,7 @@ class vd {
|
|
16157
16156
|
})).data.customer;
|
16158
16157
|
if (!r.id) {
|
16159
16158
|
const o = (await e.mutate({
|
16160
|
-
mutation:
|
16159
|
+
mutation: Ol,
|
16161
16160
|
errorPolicy: "all",
|
16162
16161
|
fetchPolicy: "no-cache",
|
16163
16162
|
variables: {
|
@@ -16215,7 +16214,7 @@ class vd {
|
|
16215
16214
|
*/
|
16216
16215
|
async generateVerificationCode(t) {
|
16217
16216
|
await y.getShadowGraphqlClient().mutate({
|
16218
|
-
mutation:
|
16217
|
+
mutation: $l,
|
16219
16218
|
variables: {
|
16220
16219
|
emailAddress: t
|
16221
16220
|
}
|
@@ -16270,7 +16269,7 @@ class vd {
|
|
16270
16269
|
if (!this.customer?.id)
|
16271
16270
|
throw new Error("Customer must be logged in before calling this function.");
|
16272
16271
|
return (await y.getShadowGraphqlClient().query({
|
16273
|
-
query:
|
16272
|
+
query: Ul,
|
16274
16273
|
variables: {
|
16275
16274
|
id: this.customer.id
|
16276
16275
|
}
|
@@ -16515,7 +16514,7 @@ class vd {
|
|
16515
16514
|
])).flat(), u = [...new Set(A.map((C) => C.workflowId))], h = await or(u, e), m = new Map(h.map((C) => [C.id, C])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), p = A.map(async (C) => {
|
16516
16515
|
const { transaction: E, workflowId: P, readOnly: B, index: F } = C, Q = m.get(P), T = t[F];
|
16517
16516
|
!g.get(E.id) && E.transactionOwnerId && g.set(E.id, E.transactionOwnerId);
|
16518
|
-
const tt = g.get(E.id) || void 0, et = new
|
16517
|
+
const tt = g.get(E.id) || void 0, et = new Ll({
|
16519
16518
|
onMutate: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } }),
|
16520
16519
|
onQuery: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } })
|
16521
16520
|
}), W = {
|
@@ -16541,17 +16540,17 @@ class vd {
|
|
16541
16540
|
const q = JSON.parse(T.workflowState);
|
16542
16541
|
W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
|
16543
16542
|
} else
|
16544
|
-
W.layouts =
|
16543
|
+
W.layouts = jl(
|
16545
16544
|
W.transaction,
|
16546
16545
|
W.workflow
|
16547
16546
|
);
|
16548
|
-
return W.renderableContextService = new
|
16547
|
+
return W.renderableContextService = new ll(
|
16549
16548
|
W.layouts
|
16550
16549
|
), W.delayWorkflowStateSync = !0, { experienceOptions: W, index: F, options: T };
|
16551
16550
|
}), f = await Promise.all(p);
|
16552
16551
|
k.setMap("transactionOwnerIds", g);
|
16553
16552
|
const b = f.sort((C, E) => C.index - E.index).map(async (C) => {
|
16554
|
-
const { experienceOptions: E, options: P } = C, B = new
|
16553
|
+
const { experienceOptions: E, options: P } = C, B = new Yo(this, E);
|
16555
16554
|
return await B.getWorkflowManager().getInitializationPromise(), P.type !== "transaction" && this.customer && await B.attachCustomerDetails({ email: this.customer.emailAddress }), B;
|
16556
16555
|
}), I = await Promise.all(b);
|
16557
16556
|
return I.forEach((C) => C.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), I;
|
@@ -16623,7 +16622,7 @@ class vd {
|
|
16623
16622
|
};
|
16624
16623
|
}
|
16625
16624
|
}
|
16626
|
-
const
|
16625
|
+
const Yl = async (n, t) => (await y.getShadowGraphqlClient().query({
|
16627
16626
|
query: Wi,
|
16628
16627
|
errorPolicy: "all",
|
16629
16628
|
fetchPolicy: "no-cache",
|
@@ -16635,7 +16634,7 @@ const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
|
|
16635
16634
|
variables: {
|
16636
16635
|
themeConfigurationId: t
|
16637
16636
|
}
|
16638
|
-
})).data.currentIntegration,
|
16637
|
+
})).data.currentIntegration, bd = async (n) => {
|
16639
16638
|
const e = await y.getShadowGraphqlClient().query({
|
16640
16639
|
query: xi,
|
16641
16640
|
errorPolicy: "all",
|
@@ -16646,27 +16645,38 @@ const jl = async (n, t) => (await y.getShadowGraphqlClient().query({
|
|
16646
16645
|
});
|
16647
16646
|
if (e.data.transactions.length !== 0)
|
16648
16647
|
return e.data.transactions[0];
|
16649
|
-
},
|
16648
|
+
}, Bd = async (n, t) => (await y.getShadowGraphqlClient().query({
|
16650
16649
|
query: Gi,
|
16651
16650
|
errorPolicy: "all",
|
16652
16651
|
variables: {
|
16653
16652
|
themeConfigurationId: n,
|
16654
16653
|
themeInstallId: t
|
16655
16654
|
}
|
16656
|
-
})).data?.marketplaceThemeInstallConfiguration,
|
16655
|
+
})).data?.marketplaceThemeInstallConfiguration, Id = async (n) => (await y.getShadowGraphqlClient().query({
|
16657
16656
|
query: Hi,
|
16658
16657
|
errorPolicy: "all",
|
16659
16658
|
variables: {
|
16660
16659
|
id: n
|
16661
16660
|
}
|
16662
|
-
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration,
|
16661
|
+
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Pd = async (n) => (await y.getShadowGraphqlClient().query({
|
16663
16662
|
query: qi,
|
16664
16663
|
errorPolicy: "all",
|
16665
16664
|
variables: {
|
16666
16665
|
id: n
|
16667
16666
|
}
|
16668
|
-
})).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration
|
16669
|
-
|
16667
|
+
})).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration, Dd = async (n) => {
|
16668
|
+
const t = await y.getShadowGraphqlClient().mutate({
|
16669
|
+
mutation: Eo,
|
16670
|
+
errorPolicy: "all",
|
16671
|
+
fetchPolicy: "no-cache",
|
16672
|
+
variables: {
|
16673
|
+
id: n
|
16674
|
+
}
|
16675
|
+
});
|
16676
|
+
if (t.data?.bundleDelete !== n)
|
16677
|
+
throw new Error(`Failed to delete bundle: ${t.errors}`);
|
16678
|
+
};
|
16679
|
+
function Jl(n, t, e, a) {
|
16670
16680
|
const r = e.width * n.zoom, i = e.height * n.zoom;
|
16671
16681
|
if (a) {
|
16672
16682
|
const o = n, l = Math.max(t.width / e.width, t.height / e.height);
|
@@ -16680,7 +16690,7 @@ function Yl(n, t, e, a) {
|
|
16680
16690
|
function ge(n, t, e) {
|
16681
16691
|
return Math.min(Math.max(n, t), e);
|
16682
16692
|
}
|
16683
|
-
class
|
16693
|
+
class Kl {
|
16684
16694
|
constructor(t, e) {
|
16685
16695
|
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = un(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
|
16686
16696
|
useThreshold: !1,
|
@@ -16823,7 +16833,7 @@ class Jl {
|
|
16823
16833
|
return;
|
16824
16834
|
}
|
16825
16835
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
16826
|
-
this.offsets[o] =
|
16836
|
+
this.offsets[o] = Jl(t[o], s, this.imageData, this.forceImageCover);
|
16827
16837
|
}), this._debouncedUpdateFrameOffsets(
|
16828
16838
|
this.offsets,
|
16829
16839
|
r,
|
@@ -16901,7 +16911,7 @@ class Jl {
|
|
16901
16911
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
16902
16912
|
}
|
16903
16913
|
}
|
16904
|
-
class
|
16914
|
+
class Fd {
|
16905
16915
|
traversableScenes() {
|
16906
16916
|
throw new Error("Method not implemented.");
|
16907
16917
|
}
|
@@ -17066,12 +17076,12 @@ class Pd {
|
|
17066
17076
|
return [];
|
17067
17077
|
}
|
17068
17078
|
}
|
17069
|
-
var
|
17070
|
-
class
|
17079
|
+
var _l = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(_l || {});
|
17080
|
+
class Xl extends Z {
|
17071
17081
|
constructor(t, e, a) {
|
17072
17082
|
super(t, e, a);
|
17073
17083
|
const r = e.data;
|
17074
|
-
this.frameService = new
|
17084
|
+
this.frameService = new Kl(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
17075
17085
|
}
|
17076
17086
|
selectVariant(t) {
|
17077
17087
|
const e = this.manager.getRegionElements(this.step.stepName);
|
@@ -17231,7 +17241,7 @@ class _l extends Z {
|
|
17231
17241
|
return this.manager.getStepStorage(this.step.stepName);
|
17232
17242
|
}
|
17233
17243
|
}
|
17234
|
-
const
|
17244
|
+
const Zl = w`
|
17235
17245
|
query GetLoggedInCustomer($email: String!) {
|
17236
17246
|
customer(emailAddress: $email) {
|
17237
17247
|
id
|
@@ -17274,21 +17284,21 @@ const Xl = w`
|
|
17274
17284
|
total
|
17275
17285
|
}
|
17276
17286
|
}
|
17277
|
-
`,
|
17287
|
+
`, tc = w`
|
17278
17288
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
17279
17289
|
transactionUpdate(id: $id, designName: $name) {
|
17280
17290
|
id
|
17281
17291
|
designName
|
17282
17292
|
}
|
17283
17293
|
}
|
17284
|
-
`,
|
17294
|
+
`, ec = w`
|
17285
17295
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
17286
17296
|
transactionDuplicate(id: $id, template: $template) {
|
17287
17297
|
id
|
17288
17298
|
workflowViewerLink
|
17289
17299
|
}
|
17290
17300
|
}
|
17291
|
-
`,
|
17301
|
+
`, ac = w`
|
17292
17302
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
17293
17303
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
17294
17304
|
items {
|
@@ -17303,7 +17313,7 @@ const Xl = w`
|
|
17303
17313
|
total
|
17304
17314
|
}
|
17305
17315
|
}
|
17306
|
-
`,
|
17316
|
+
`, nc = w`
|
17307
17317
|
query GetTransactionsForBundle($id: String!) {
|
17308
17318
|
bundles(ids: [$id]) {
|
17309
17319
|
id
|
@@ -17324,21 +17334,21 @@ const Xl = w`
|
|
17324
17334
|
}
|
17325
17335
|
}
|
17326
17336
|
}
|
17327
|
-
`,
|
17337
|
+
`, rc = w`
|
17328
17338
|
mutation SetBundleName($id: String!, $name: String!) {
|
17329
17339
|
bundleUpdate(id: $id, name: $name) {
|
17330
17340
|
id
|
17331
17341
|
name
|
17332
17342
|
}
|
17333
17343
|
}
|
17334
|
-
`,
|
17344
|
+
`, ic = w`
|
17335
17345
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
17336
17346
|
bundleDuplicate(id: $id, template: $template) {
|
17337
17347
|
id
|
17338
17348
|
workflowViewerLink
|
17339
17349
|
}
|
17340
17350
|
}
|
17341
|
-
`,
|
17351
|
+
`, sc = w`
|
17342
17352
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
17343
17353
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
17344
17354
|
items {
|
@@ -17351,43 +17361,43 @@ const Xl = w`
|
|
17351
17361
|
total
|
17352
17362
|
}
|
17353
17363
|
}
|
17354
|
-
`,
|
17355
|
-
mutation:
|
17364
|
+
`, xd = async (n, t, e) => await y.getShadowGraphqlClient().mutate({
|
17365
|
+
mutation: rc,
|
17356
17366
|
errorPolicy: "all",
|
17357
17367
|
variables: {
|
17358
17368
|
id: n,
|
17359
17369
|
name: t
|
17360
17370
|
},
|
17361
17371
|
context: e
|
17362
|
-
}),
|
17363
|
-
mutation:
|
17372
|
+
}), kd = async (n, t) => await y.getShadowGraphqlClient().mutate({
|
17373
|
+
mutation: tc,
|
17364
17374
|
errorPolicy: "all",
|
17365
17375
|
variables: {
|
17366
17376
|
id: n,
|
17367
17377
|
name: t
|
17368
17378
|
}
|
17369
|
-
}),
|
17370
|
-
mutation:
|
17379
|
+
}), Md = async (n, t) => await y.getShadowGraphqlClient().mutate({
|
17380
|
+
mutation: ic,
|
17371
17381
|
errorPolicy: "all",
|
17372
17382
|
variables: {
|
17373
17383
|
id: n,
|
17374
17384
|
template: t
|
17375
17385
|
}
|
17376
|
-
}),
|
17377
|
-
mutation:
|
17386
|
+
}), Td = async (n, t) => await y.getShadowGraphqlClient().mutate({
|
17387
|
+
mutation: ec,
|
17378
17388
|
errorPolicy: "all",
|
17379
17389
|
variables: {
|
17380
17390
|
id: n,
|
17381
17391
|
template: t
|
17382
17392
|
}
|
17383
|
-
}),
|
17384
|
-
query:
|
17393
|
+
}), Nd = async (n) => (await y.getShadowGraphqlClient().query({
|
17394
|
+
query: Zl,
|
17385
17395
|
errorPolicy: "all",
|
17386
17396
|
variables: {
|
17387
17397
|
email: n
|
17388
17398
|
}
|
17389
|
-
})).data.customer,
|
17390
|
-
query:
|
17399
|
+
})).data.customer, Qd = async (n, t, e) => await y.getShadowGraphqlClient().query({
|
17400
|
+
query: ac,
|
17391
17401
|
errorPolicy: "all",
|
17392
17402
|
fetchPolicy: "no-cache",
|
17393
17403
|
variables: {
|
@@ -17395,15 +17405,15 @@ const Xl = w`
|
|
17395
17405
|
offset: e,
|
17396
17406
|
limit: t
|
17397
17407
|
}
|
17398
|
-
}),
|
17399
|
-
query:
|
17408
|
+
}), Rd = async (n, t) => await y.getShadowGraphqlClient().query({
|
17409
|
+
query: nc,
|
17400
17410
|
errorPolicy: "all",
|
17401
17411
|
fetchPolicy: "no-cache",
|
17402
17412
|
variables: {
|
17403
17413
|
id: n
|
17404
17414
|
},
|
17405
17415
|
context: t
|
17406
|
-
}),
|
17416
|
+
}), Od = async (n, t, e) => (await y.getShadowGraphqlClient().query({
|
17407
17417
|
query: xa,
|
17408
17418
|
errorPolicy: "all",
|
17409
17419
|
fetchPolicy: "no-cache",
|
@@ -17423,7 +17433,7 @@ const Xl = w`
|
|
17423
17433
|
offset: e,
|
17424
17434
|
limit: t
|
17425
17435
|
}
|
17426
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
17436
|
+
}))?.data.customerTransactionsFeed?.items || [], $d = async (n, t, e) => (await y.getShadowGraphqlClient().query({
|
17427
17437
|
query: xa,
|
17428
17438
|
errorPolicy: "all",
|
17429
17439
|
fetchPolicy: "no-cache",
|
@@ -17443,7 +17453,7 @@ const Xl = w`
|
|
17443
17453
|
offset: e,
|
17444
17454
|
limit: t
|
17445
17455
|
}
|
17446
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
17456
|
+
}))?.data.customerTransactionsFeed?.items || [], Ud = async (n, t, e) => (await y.getShadowGraphqlClient().query({
|
17447
17457
|
query: xa,
|
17448
17458
|
errorPolicy: "all",
|
17449
17459
|
fetchPolicy: "no-cache",
|
@@ -17459,8 +17469,8 @@ const Xl = w`
|
|
17459
17469
|
offset: e,
|
17460
17470
|
limit: t
|
17461
17471
|
}
|
17462
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
17463
|
-
query:
|
17472
|
+
}))?.data.customerTransactionsFeed?.items || [], Ld = async (n, t, e) => (await y.getShadowGraphqlClient().query({
|
17473
|
+
query: sc,
|
17464
17474
|
errorPolicy: "all",
|
17465
17475
|
fetchPolicy: "no-cache",
|
17466
17476
|
variables: {
|
@@ -17479,7 +17489,7 @@ const Xl = w`
|
|
17479
17489
|
console.error("vite-plugin-css-injected-by-js", t);
|
17480
17490
|
}
|
17481
17491
|
})();
|
17482
|
-
var
|
17492
|
+
var oc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(oc || {}), we = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(we || {}), K;
|
17483
17493
|
K = { __e: function(n, t, e, a) {
|
17484
17494
|
for (var r, i, s; t = t.__; )
|
17485
17495
|
if ((r = t.__c) && !r.__)
|
@@ -17492,7 +17502,7 @@ K = { __e: function(n, t, e, a) {
|
|
17492
17502
|
throw n;
|
17493
17503
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
17494
17504
|
var st, ta, an, lr = [], ea = [], nn = K.__b, rn = K.__r, sn = K.diffed, on = K.__c, ln = K.unmount;
|
17495
|
-
function
|
17505
|
+
function lc() {
|
17496
17506
|
for (var n; n = lr.shift(); )
|
17497
17507
|
if (n.__P && n.__H)
|
17498
17508
|
try {
|
@@ -17512,7 +17522,7 @@ K.__b = function(n) {
|
|
17512
17522
|
}, K.diffed = function(n) {
|
17513
17523
|
sn && sn(n);
|
17514
17524
|
var t = n.__c;
|
17515
|
-
t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) ||
|
17525
|
+
t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) || cc)(lc)), t.__H.__.forEach(function(e) {
|
17516
17526
|
e.i && (e.__H = e.i), e.__V !== ea && (e.__ = e.__V), e.i = void 0, e.__V = ea;
|
17517
17527
|
})), ta = st = null;
|
17518
17528
|
}, K.__c = function(n, t) {
|
@@ -17539,7 +17549,7 @@ K.__b = function(n) {
|
|
17539
17549
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
17540
17550
|
};
|
17541
17551
|
var cn = typeof requestAnimationFrame == "function";
|
17542
|
-
function
|
17552
|
+
function cc(n) {
|
17543
17553
|
var t, e = function() {
|
17544
17554
|
clearTimeout(a), cn && cancelAnimationFrame(t), setTimeout(n);
|
17545
17555
|
}, a = setTimeout(e, 100);
|
@@ -17587,14 +17597,14 @@ const cr = w`
|
|
17587
17597
|
...AddressValidationResultFields
|
17588
17598
|
}
|
17589
17599
|
}
|
17590
|
-
`,
|
17600
|
+
`, dc = w`
|
17591
17601
|
${ka}
|
17592
17602
|
query GetAddressValidationJobs($ids: [String!]!) {
|
17593
17603
|
addressValidationJobs(ids: $ids) {
|
17594
17604
|
...AddressValidationJobFields
|
17595
17605
|
}
|
17596
17606
|
}
|
17597
|
-
`,
|
17607
|
+
`, Ac = w`
|
17598
17608
|
${ka}
|
17599
17609
|
query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
|
17600
17610
|
recipients(ids: $ids) {
|
@@ -17604,31 +17614,31 @@ const cr = w`
|
|
17604
17614
|
}
|
17605
17615
|
}
|
17606
17616
|
}
|
17607
|
-
`,
|
17617
|
+
`, uc = w`
|
17608
17618
|
${cr}
|
17609
17619
|
mutation ValidateRecipientAddress($id: String!) {
|
17610
17620
|
recipientValidate(id: $id) {
|
17611
17621
|
...AddressValidationResultFields
|
17612
17622
|
}
|
17613
17623
|
}
|
17614
|
-
`,
|
17624
|
+
`, hc = w`
|
17615
17625
|
${ka}
|
17616
17626
|
mutation BatchValidateRecipientAddress($ids: [String!]!) {
|
17617
17627
|
recipientValidateBatch(ids: $ids) {
|
17618
17628
|
...AddressValidationJobFields
|
17619
17629
|
}
|
17620
17630
|
}
|
17621
|
-
`,
|
17631
|
+
`, mc = w`
|
17622
17632
|
mutation OverrideRecipientAddress($id: String!) {
|
17623
17633
|
recipientOverrideAddress(id: $id) {
|
17624
17634
|
id
|
17625
17635
|
}
|
17626
17636
|
}
|
17627
17637
|
`;
|
17628
|
-
var
|
17629
|
-
const
|
17638
|
+
var gc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(gc || {}), pc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(pc || {});
|
17639
|
+
const Vd = async (n) => {
|
17630
17640
|
const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().query({
|
17631
|
-
query:
|
17641
|
+
query: Ac,
|
17632
17642
|
errorPolicy: "all",
|
17633
17643
|
fetchPolicy: "network-only",
|
17634
17644
|
variables: {
|
@@ -17640,23 +17650,23 @@ const Ud = async (n) => {
|
|
17640
17650
|
if (r)
|
17641
17651
|
return e.data?.recipients?.find((i) => i.id === r)?.addressValidationJob;
|
17642
17652
|
});
|
17643
|
-
},
|
17644
|
-
query:
|
17653
|
+
}, zd = async (n) => (await y.getShadowGraphqlClient().query({
|
17654
|
+
query: dc,
|
17645
17655
|
errorPolicy: "all",
|
17646
17656
|
fetchPolicy: "network-only",
|
17647
17657
|
variables: {
|
17648
17658
|
ids: n
|
17649
17659
|
}
|
17650
|
-
})).data?.addressValidationJobs,
|
17651
|
-
mutation:
|
17660
|
+
})).data?.addressValidationJobs, Gd = async (n) => n.getWorkflowManager().getTransaction().recipient?.id ? (await y.getShadowGraphqlClient().mutate({
|
17661
|
+
mutation: uc,
|
17652
17662
|
errorPolicy: "all",
|
17653
17663
|
fetchPolicy: "network-only",
|
17654
17664
|
variables: {
|
17655
17665
|
id: n.getWorkflowManager().getTransaction().recipient.id
|
17656
17666
|
}
|
17657
|
-
})).data?.recipientValidate : void 0,
|
17667
|
+
})).data?.recipientValidate : void 0, Wd = async (n) => {
|
17658
17668
|
const t = n.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().mutate({
|
17659
|
-
mutation:
|
17669
|
+
mutation: hc,
|
17660
17670
|
errorPolicy: "all",
|
17661
17671
|
fetchPolicy: "network-only",
|
17662
17672
|
variables: {
|
@@ -17668,12 +17678,12 @@ const Ud = async (n) => {
|
|
17668
17678
|
if (r)
|
17669
17679
|
return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
|
17670
17680
|
});
|
17671
|
-
},
|
17681
|
+
}, qd = async (n) => {
|
17672
17682
|
const t = n.getWorkflowManager().getTransaction().recipient?.id;
|
17673
17683
|
if (!t)
|
17674
17684
|
return;
|
17675
17685
|
(await y.getShadowGraphqlClient().mutate({
|
17676
|
-
mutation:
|
17686
|
+
mutation: mc,
|
17677
17687
|
errorPolicy: "all",
|
17678
17688
|
fetchPolicy: "network-only",
|
17679
17689
|
variables: {
|
@@ -17683,170 +17693,171 @@ const Ud = async (n) => {
|
|
17683
17693
|
};
|
17684
17694
|
export {
|
17685
17695
|
ga as AddonHandle,
|
17686
|
-
|
17687
|
-
|
17696
|
+
pc as AddressValidationJobStatus,
|
17697
|
+
gc as AddressValidationResultConfirmationLevel,
|
17688
17698
|
hn as AddressValidationStatus,
|
17689
|
-
|
17699
|
+
Sd as ArrayInput,
|
17690
17700
|
U as AspectType,
|
17691
17701
|
bt as AssetNotFoundError,
|
17692
17702
|
ve as AssetType,
|
17693
|
-
|
17694
|
-
|
17695
|
-
|
17703
|
+
md as BringForwardCommand,
|
17704
|
+
hd as BringToBackCommand,
|
17705
|
+
ud as BringToFrontCommand,
|
17696
17706
|
Dr as BundleDesignCreationCartAddMode,
|
17697
17707
|
N as CanvasCommand,
|
17698
17708
|
ue as CollectionProduct,
|
17699
17709
|
Za as ColorOptionGlobalPropertyHandle,
|
17700
17710
|
ms as CommandContext,
|
17701
17711
|
we as ConversionDataType,
|
17702
|
-
|
17712
|
+
oc as ConversionLocation,
|
17703
17713
|
z as CreateElementCommand,
|
17704
17714
|
qn as CreateLayoutCommand,
|
17705
|
-
|
17706
|
-
|
17715
|
+
Gl as CurrencyContext,
|
17716
|
+
zl as CurrencyService,
|
17707
17717
|
Bt as DeleteElementCommand,
|
17708
|
-
|
17709
|
-
|
17718
|
+
No as DigitalContentStepHandle,
|
17719
|
+
ml as FileUploadGlobalPropertyHandle,
|
17710
17720
|
he as FlowExecutionNodeResult,
|
17711
|
-
|
17712
|
-
|
17721
|
+
Ql as FlowExecutionResult,
|
17722
|
+
Nl as FlowService,
|
17713
17723
|
Cs as FontAlignmentCommand,
|
17714
17724
|
ps as FontColorCommand,
|
17715
17725
|
fs as FontSizeCommand,
|
17716
17726
|
ja as FontSourceCommand,
|
17717
|
-
|
17718
|
-
|
17719
|
-
|
17727
|
+
Kl as FrameService,
|
17728
|
+
_l as FrameStep,
|
17729
|
+
Xl as FrameStepHandle,
|
17720
17730
|
Da as GlobalPropertyHandle,
|
17721
17731
|
R as GroupCommand,
|
17722
|
-
|
17732
|
+
Io as IllustrationStepHandle,
|
17723
17733
|
Le as InformationMessageType,
|
17724
|
-
|
17734
|
+
To as InformationStepHandle,
|
17725
17735
|
tn as IntegrationProduct,
|
17726
17736
|
xr as IntegrationType,
|
17727
|
-
|
17737
|
+
od as LayoutElementFactory,
|
17728
17738
|
x as LayoutElementType,
|
17729
17739
|
Y as LayoutNotFoundError,
|
17730
17740
|
jt as LayoutRenderingPurpose,
|
17731
|
-
|
17741
|
+
Po as MaterialStepHandle,
|
17732
17742
|
Be as MisconfigurationError,
|
17733
|
-
|
17734
|
-
|
17735
|
-
|
17736
|
-
|
17743
|
+
Fd as MockWorkflowManager,
|
17744
|
+
Do as ModelStepHandle,
|
17745
|
+
Qo as ModuleStepHandle,
|
17746
|
+
ld as MoveCommand,
|
17737
17747
|
sr as ObjectInput,
|
17738
|
-
|
17748
|
+
Rl as ObjectInputType,
|
17739
17749
|
nr as OptionGlobalPropertyHandle,
|
17740
17750
|
be as OptionNotFoundError,
|
17741
17751
|
Dt as ParseError,
|
17742
|
-
|
17752
|
+
Fo as PictureStepHandle,
|
17743
17753
|
kr as ProductCameraRig,
|
17744
17754
|
ir as ProductCollection,
|
17745
|
-
|
17755
|
+
Bl as ProductCollectionProductSortKey,
|
17746
17756
|
qt as ProductWorkflow,
|
17747
17757
|
Kt as PromiseCache,
|
17748
17758
|
Tn as PromiseQueue,
|
17749
|
-
|
17759
|
+
xo as QuestionStepHandle,
|
17750
17760
|
Mn as QueueablePromise,
|
17751
|
-
|
17761
|
+
dd as ResizeCommand,
|
17752
17762
|
Yt as ResourceNotFoundError,
|
17753
|
-
|
17763
|
+
cd as RotateCommand,
|
17754
17764
|
H as ScaleAxis,
|
17755
|
-
|
17756
|
-
|
17765
|
+
gd as SendBackwardsCommand,
|
17766
|
+
ko as ShapeStepHandle,
|
17757
17767
|
Fr as ShareActionType,
|
17758
|
-
|
17768
|
+
Ed as SpiffCommerceClient,
|
17759
17769
|
Ee as StakeholderType,
|
17760
17770
|
Pr as StepAspectType,
|
17761
17771
|
Z as StepHandle,
|
17762
17772
|
v as StepType,
|
17763
17773
|
Mt as TextAlgorithm,
|
17764
17774
|
Ss as TextChangeCommand,
|
17765
|
-
|
17766
|
-
|
17767
|
-
|
17768
|
-
|
17769
|
-
|
17775
|
+
gl as TextGlobalPropertyHandle,
|
17776
|
+
yd as TextInput,
|
17777
|
+
Mo as TextStepHandle,
|
17778
|
+
Pl as Transform,
|
17779
|
+
Il as TransformCollection,
|
17770
17780
|
V as UnhandledBehaviorError,
|
17771
17781
|
Mr as UnitOfMeasurement,
|
17772
|
-
|
17782
|
+
Ad as UpdateImageSourceCommand,
|
17773
17783
|
it as Variant,
|
17774
|
-
|
17775
|
-
|
17784
|
+
jo as WorkflowExperienceEventType,
|
17785
|
+
Yo as WorkflowExperienceImpl,
|
17776
17786
|
O as assetService,
|
17777
17787
|
ri as browserColorToHex,
|
17778
|
-
|
17779
|
-
|
17780
|
-
|
17781
|
-
|
17788
|
+
id as cmPerPixel,
|
17789
|
+
Vo as createDesign,
|
17790
|
+
ad as currentDirection,
|
17791
|
+
Wc as dataUrlFromExternalUrl,
|
17792
|
+
Dd as deleteBundle,
|
17782
17793
|
Xe as designService,
|
17783
17794
|
Ce as determineCorrectFontSizeAndLines,
|
17784
17795
|
jn as digitalContentStepService,
|
17785
17796
|
dt as domParser,
|
17786
|
-
|
17787
|
-
|
17797
|
+
Md as duplicateBundle,
|
17798
|
+
Td as duplicateTransaction,
|
17788
17799
|
nt as fetchAsString,
|
17789
|
-
|
17800
|
+
Jc as findAngle,
|
17790
17801
|
$ as findElement,
|
17791
|
-
|
17802
|
+
jc as findPmsColors,
|
17792
17803
|
Vt as frameDataCache,
|
17793
17804
|
St as frameStepService,
|
17794
17805
|
M as generate,
|
17795
|
-
|
17806
|
+
ol as generateCommands,
|
17796
17807
|
ot as generateSVGWithUnknownColors,
|
17797
|
-
|
17798
|
-
|
17808
|
+
Cd as generateStateFromDesignInputSteps,
|
17809
|
+
zd as getAddressValidationJobs,
|
17799
17810
|
Re as getAttributesFromArrayBuffer,
|
17800
|
-
|
17801
|
-
|
17802
|
-
|
17803
|
-
|
17804
|
-
|
17805
|
-
|
17811
|
+
Yc as getAxisAlignedBoundingBox,
|
17812
|
+
Jl as getBoundedOffsets,
|
17813
|
+
Id as getBundleThemeConfiguration,
|
17814
|
+
Nd as getCustomer,
|
17815
|
+
Qd as getCustomerBundles,
|
17816
|
+
nd as getElementVertices,
|
17806
17817
|
Ue as getFrameData,
|
17807
|
-
|
17808
|
-
|
17809
|
-
|
17810
|
-
|
17811
|
-
|
17812
|
-
|
17813
|
-
|
17814
|
-
|
17815
|
-
|
17818
|
+
pd as getGlobalPropertyStateForBundle,
|
17819
|
+
Yl as getIntegration,
|
17820
|
+
td as getNEPoint,
|
17821
|
+
Zc as getNWPoint,
|
17822
|
+
$d as getOrderedTransactions,
|
17823
|
+
Bd as getOverrideThemeConfiguration,
|
17824
|
+
Xc as getPointOfRotation,
|
17825
|
+
wd as getProductCollections,
|
17826
|
+
ed as getSEPoint,
|
17816
17827
|
Ea as getSvgElement,
|
17817
|
-
|
17818
|
-
|
17819
|
-
|
17820
|
-
|
17821
|
-
|
17822
|
-
|
17823
|
-
|
17824
|
-
|
17825
|
-
|
17828
|
+
Ld as getTemplateBundles,
|
17829
|
+
Ud as getTemplateTransactions,
|
17830
|
+
bd as getTransaction,
|
17831
|
+
Pd as getTransactionThemeConfiguration,
|
17832
|
+
Rd as getTransactionsForBundle,
|
17833
|
+
_c as getTrueCoordinates,
|
17834
|
+
Od as getUnorderedTransactions,
|
17835
|
+
Vd as getValidationJobsForWorkflowExperiences,
|
17836
|
+
vd as getWorkflow,
|
17826
17837
|
or as getWorkflows,
|
17827
17838
|
y as graphQlManager,
|
17828
17839
|
fe as illustrationStepService,
|
17829
|
-
|
17840
|
+
Kc as isCloseToValue,
|
17830
17841
|
Nt as loadFont,
|
17831
|
-
|
17842
|
+
Hc as matchHexToPms,
|
17832
17843
|
Yn as materialStepService,
|
17833
|
-
|
17834
|
-
|
17844
|
+
bl as metafieldManager,
|
17845
|
+
rd as mmPerPixel,
|
17835
17846
|
Jn as modelStepService,
|
17836
17847
|
Sa as modifySVGColors,
|
17837
17848
|
Kn as moduleStepService,
|
17838
|
-
|
17839
|
-
|
17849
|
+
xd as nameBundle,
|
17850
|
+
kd as nameTransaction,
|
17840
17851
|
j as optionService,
|
17841
|
-
|
17842
|
-
|
17852
|
+
sd as outlineFontsInSvg,
|
17853
|
+
qd as overrideWorkflowExperienceRecipientAddress,
|
17843
17854
|
ut as patternImageDataCache,
|
17844
17855
|
k as persistenceService,
|
17845
17856
|
_n as pictureStepService,
|
17846
|
-
|
17857
|
+
qc as pmsToRgb,
|
17847
17858
|
Xn as questionStepService,
|
17848
|
-
|
17849
|
-
|
17859
|
+
Gc as registerFetchImplementation,
|
17860
|
+
zc as registerWindowImplementation,
|
17850
17861
|
qa as rehydrateSerializedLayout,
|
17851
17862
|
ei as rgbToPms,
|
17852
17863
|
ce as rotateAroundPoint,
|
@@ -17856,14 +17867,14 @@ export {
|
|
17856
17867
|
zt as shapeStepService,
|
17857
17868
|
Es as shortenUrl,
|
17858
17869
|
gt as spiffCoreConfiguration,
|
17859
|
-
|
17870
|
+
fd as stepAspectValuesToDesignInputSteps,
|
17860
17871
|
La as svgColorValueToDefinition,
|
17861
17872
|
Gn as svgStringDimensions,
|
17862
17873
|
pa as svgToDataUrl,
|
17863
17874
|
G as textStepService,
|
17864
17875
|
Ts as toast,
|
17865
|
-
|
17866
|
-
|
17876
|
+
Gd as validateWorkflowExperienceRecipient,
|
17877
|
+
Wd as validateWorkflowExperienceRecipients,
|
17867
17878
|
It as xmlSerializer
|
17868
17879
|
};
|
17869
17880
|
//# sourceMappingURL=index.mjs.map
|