@spiffcommerce/core 33.5.2 → 33.5.3-beta.e445bb2b-32da-5cdc-9e3d-759fa9b763fa
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 +3 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +130 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -163,10 +163,10 @@ class Lr {
|
|
|
163
163
|
}
|
|
164
164
|
const gt = new Lr();
|
|
165
165
|
let ra, ia;
|
|
166
|
-
function
|
|
166
|
+
function Jc(n) {
|
|
167
167
|
ra = n;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Kc(n) {
|
|
170
170
|
ia = n;
|
|
171
171
|
}
|
|
172
172
|
function te() {
|
|
@@ -257,7 +257,7 @@ const fn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
|
|
|
257
257
|
}
|
|
258
258
|
const e = t();
|
|
259
259
|
return e || "image/svg+xml";
|
|
260
|
-
},
|
|
260
|
+
}, _c = async (n) => {
|
|
261
261
|
const t = await Cn(n), e = fn.get(n) || Re(t);
|
|
262
262
|
return await jr(new Blob([t], { type: e }));
|
|
263
263
|
}, qr = (n) => {
|
|
@@ -3155,7 +3155,7 @@ const ai = (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 Xc(n) {
|
|
3159
3159
|
const t = Jt.indexOf(n);
|
|
3160
3160
|
return t >= 0 ? Ft[t] : "";
|
|
3161
3161
|
}
|
|
@@ -3163,7 +3163,7 @@ function si(n) {
|
|
|
3163
3163
|
const t = Ft.indexOf(n);
|
|
3164
3164
|
return t >= 0 ? Jt[t] : "";
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Zc(n, t = 64) {
|
|
3167
3167
|
const e = [], a = [], r = si(n);
|
|
3168
3168
|
r && e.push({
|
|
3169
3169
|
pms: r,
|
|
@@ -3182,7 +3182,7 @@ function Xc(n, t = 64) {
|
|
|
3182
3182
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3183
3183
|
}
|
|
3184
3184
|
const oi = Jt.map((n, t) => ({ pms: n, hex: Ft[t] })), li = new br(oi, { keys: ["pms"] });
|
|
3185
|
-
function
|
|
3185
|
+
function td(n, t) {
|
|
3186
3186
|
return li.search(n, t ? { limit: t } : void 0);
|
|
3187
3187
|
}
|
|
3188
3188
|
let Qt = null;
|
|
@@ -5430,7 +5430,7 @@ const M = () => {
|
|
|
5430
5430
|
]
|
|
5431
5431
|
}
|
|
5432
5432
|
);
|
|
5433
|
-
},
|
|
5433
|
+
}, ed = (n, t, e, a, r) => {
|
|
5434
5434
|
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, p = o, g = u * A - m * d, f = h * A - p * d, w = u * d + m * A, b = h * d + p * A, D = Math.max(Math.abs(g), Math.abs(f)), E = Math.max(Math.abs(w), Math.abs(b));
|
|
5435
5435
|
return {
|
|
5436
5436
|
minX: l - D,
|
|
@@ -5438,25 +5438,25 @@ const M = () => {
|
|
|
5438
5438
|
minY: c - E,
|
|
5439
5439
|
maxY: c + E
|
|
5440
5440
|
};
|
|
5441
|
-
},
|
|
5441
|
+
}, ad = (n, t, e) => {
|
|
5442
5442
|
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));
|
|
5443
5443
|
return Math.acos((r * r + a * a - i * i) / (2 * r * a)) * (180 / Math.PI);
|
|
5444
|
-
}, ft = (n) => n * (Math.PI / 180),
|
|
5444
|
+
}, ft = (n) => n * (Math.PI / 180), nd = (n, t, e) => Math.abs(n - t) < e, rd = (n, t, e) => {
|
|
5445
5445
|
const a = Math.sin(ft(e)), r = Math.cos(ft(e));
|
|
5446
5446
|
return {
|
|
5447
5447
|
x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
|
|
5448
5448
|
y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
|
|
5449
5449
|
};
|
|
5450
|
-
},
|
|
5450
|
+
}, id = (n, t) => ({
|
|
5451
5451
|
x: (n.x + t.x) / 2,
|
|
5452
5452
|
y: (n.y + t.y) / 2
|
|
5453
|
-
}),
|
|
5453
|
+
}), sd = (n, t, e, a) => ({
|
|
5454
5454
|
x: n.x + t?.x * e,
|
|
5455
5455
|
y: n.y + t?.y * a
|
|
5456
|
-
}),
|
|
5456
|
+
}), od = (n, t, e, a) => ({
|
|
5457
5457
|
x: n.x + (t?.x + t?.width) * e,
|
|
5458
5458
|
y: n.y + t?.y * a
|
|
5459
|
-
}),
|
|
5459
|
+
}), ld = (n, t, e, a) => ({
|
|
5460
5460
|
x: n.x + (t?.x + t?.width) * e,
|
|
5461
5461
|
y: n.y + (t?.y + t?.height) * a
|
|
5462
5462
|
}), Bt = (n) => {
|
|
@@ -5478,7 +5478,7 @@ const M = () => {
|
|
|
5478
5478
|
case q.Southwest:
|
|
5479
5479
|
return q.Northwest;
|
|
5480
5480
|
}
|
|
5481
|
-
},
|
|
5481
|
+
}, cd = (n, t) => t > 45 && t <= 135 ? Bt(n) : t > 135 && t <= 225 ? Bt(Bt(n)) : t > 225 && t <= 315 ? Bt(Bt(Bt(n))) : n, dd = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5482
5482
|
const a = ft(n.rotation), r = {
|
|
5483
5483
|
x: t.x + n.x * e.x,
|
|
5484
5484
|
y: t.x + n.y * e.y
|
|
@@ -5508,7 +5508,7 @@ const M = () => {
|
|
|
5508
5508
|
x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
|
|
5509
5509
|
y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
|
|
5510
5510
|
};
|
|
5511
|
-
},
|
|
5511
|
+
}, Ad = 0.352778, ud = 0.035277, On = (n) => {
|
|
5512
5512
|
const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
|
|
5513
5513
|
return /* @__PURE__ */ F("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ F(
|
|
5514
5514
|
"g",
|
|
@@ -5730,7 +5730,7 @@ const os = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
|
|
|
5730
5730
|
}, la = (n, t) => {
|
|
5731
5731
|
const e = new ss(t);
|
|
5732
5732
|
return Un.set(n, e), e;
|
|
5733
|
-
},
|
|
5733
|
+
}, hd = async (n) => {
|
|
5734
5734
|
const t = dt(), e = t.parseFromString(n, "image/svg+xml"), a = e.firstElementChild, r = /* @__PURE__ */ new Map();
|
|
5735
5735
|
a.querySelectorAll("style").forEach((d) => {
|
|
5736
5736
|
An(d.innerHTML).stylesheet?.rules.forEach((u) => {
|
|
@@ -6383,7 +6383,7 @@ const ie = (n) => {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
return o;
|
|
6385
6385
|
};
|
|
6386
|
-
class
|
|
6386
|
+
class md {
|
|
6387
6387
|
static async getFrame(t, e) {
|
|
6388
6388
|
const a = await qn(e.region, e.src), r = await Ue(a), i = e.region || await Ut(t, x.Frame);
|
|
6389
6389
|
return {
|
|
@@ -6626,7 +6626,7 @@ class Ha extends Q {
|
|
|
6626
6626
|
};
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
class
|
|
6629
|
+
class gd extends Q {
|
|
6630
6630
|
constructor(t, e, a) {
|
|
6631
6631
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6632
6632
|
}
|
|
@@ -6649,7 +6649,7 @@ class md extends Q {
|
|
|
6649
6649
|
};
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
|
-
class
|
|
6652
|
+
class pd extends Q {
|
|
6653
6653
|
constructor(t, e) {
|
|
6654
6654
|
super(), this.id = t, this.angle = e;
|
|
6655
6655
|
}
|
|
@@ -6671,7 +6671,7 @@ class gd extends Q {
|
|
|
6671
6671
|
};
|
|
6672
6672
|
}
|
|
6673
6673
|
}
|
|
6674
|
-
class
|
|
6674
|
+
class fd extends Q {
|
|
6675
6675
|
constructor(t, e, a) {
|
|
6676
6676
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6677
6677
|
}
|
|
@@ -6982,7 +6982,7 @@ class Is extends Q {
|
|
|
6982
6982
|
};
|
|
6983
6983
|
}
|
|
6984
6984
|
}
|
|
6985
|
-
class
|
|
6985
|
+
class Cd extends Q {
|
|
6986
6986
|
constructor(t, e) {
|
|
6987
6987
|
super(), this.id = t, this.src = e;
|
|
6988
6988
|
}
|
|
@@ -7101,7 +7101,7 @@ class Ps extends Q {
|
|
|
7101
7101
|
};
|
|
7102
7102
|
}
|
|
7103
7103
|
}
|
|
7104
|
-
class
|
|
7104
|
+
class wd extends Q {
|
|
7105
7105
|
/**
|
|
7106
7106
|
* @param id The targeted element to bring to the front.
|
|
7107
7107
|
*/
|
|
@@ -7130,7 +7130,7 @@ class Cd extends Q {
|
|
|
7130
7130
|
};
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
class
|
|
7133
|
+
class yd extends Q {
|
|
7134
7134
|
/**
|
|
7135
7135
|
* @param id The targeted element to bring to the back.
|
|
7136
7136
|
*/
|
|
@@ -7161,7 +7161,7 @@ class wd extends Q {
|
|
|
7161
7161
|
};
|
|
7162
7162
|
}
|
|
7163
7163
|
}
|
|
7164
|
-
class
|
|
7164
|
+
class Sd extends Q {
|
|
7165
7165
|
/**
|
|
7166
7166
|
* @param id The targeted element to bring to the front.
|
|
7167
7167
|
*/
|
|
@@ -7188,7 +7188,7 @@ class yd extends Q {
|
|
|
7188
7188
|
};
|
|
7189
7189
|
}
|
|
7190
7190
|
}
|
|
7191
|
-
class
|
|
7191
|
+
class vd extends Q {
|
|
7192
7192
|
/**
|
|
7193
7193
|
* @param id The targeted element to bring to the front.
|
|
7194
7194
|
*/
|
|
@@ -10196,7 +10196,7 @@ class uo extends Qn {
|
|
|
10196
10196
|
h.resize(l, c), await h.render(), this.onRender();
|
|
10197
10197
|
}
|
|
10198
10198
|
}
|
|
10199
|
-
const
|
|
10199
|
+
const Ed = (n, t) => {
|
|
10200
10200
|
const e = [];
|
|
10201
10201
|
return n.forEach((a) => {
|
|
10202
10202
|
const r = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -10207,7 +10207,7 @@ const vd = (n, t) => {
|
|
|
10207
10207
|
}
|
|
10208
10208
|
});
|
|
10209
10209
|
}), e;
|
|
10210
|
-
},
|
|
10210
|
+
}, bd = async (n, t, e, a) => {
|
|
10211
10211
|
let r = {
|
|
10212
10212
|
serializableWorkflow: { steps: [] },
|
|
10213
10213
|
layouts: {}
|
|
@@ -10267,7 +10267,7 @@ const vd = (n, t) => {
|
|
|
10267
10267
|
}
|
|
10268
10268
|
}
|
|
10269
10269
|
}
|
|
10270
|
-
`,
|
|
10270
|
+
`, Id = async (n) => (await S.getShadowGraphqlClient().query({
|
|
10271
10271
|
query: go,
|
|
10272
10272
|
fetchPolicy: "cache-first",
|
|
10273
10273
|
errorPolicy: "all",
|
|
@@ -14820,7 +14820,7 @@ const Ql = C`
|
|
|
14820
14820
|
...ProductCollectionFields
|
|
14821
14821
|
}
|
|
14822
14822
|
}
|
|
14823
|
-
`,
|
|
14823
|
+
`, Bd = async (n) => (await S.getShadowGraphqlClient().query({
|
|
14824
14824
|
query: Ql,
|
|
14825
14825
|
errorPolicy: "all",
|
|
14826
14826
|
variables: {
|
|
@@ -15063,7 +15063,7 @@ class Ze {
|
|
|
15063
15063
|
try {
|
|
15064
15064
|
for (const a of t.aspects) {
|
|
15065
15065
|
const r = a?.name;
|
|
15066
|
-
this.getGlobalPropertyStateManager().setAspect(r, a.value);
|
|
15066
|
+
await this.getGlobalPropertyStateManager().setAspect(r, a.value);
|
|
15067
15067
|
}
|
|
15068
15068
|
for (const a of t.aspects) {
|
|
15069
15069
|
const r = a?.name, i = e.find((s) => s.getName() === r);
|
|
@@ -15802,7 +15802,7 @@ class Fa {
|
|
|
15802
15802
|
}
|
|
15803
15803
|
}
|
|
15804
15804
|
var Gl = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(Gl || {});
|
|
15805
|
-
class
|
|
15805
|
+
class Pd extends Fa {
|
|
15806
15806
|
constructor(t) {
|
|
15807
15807
|
super(`"${t}"`);
|
|
15808
15808
|
}
|
|
@@ -15817,7 +15817,7 @@ class dr extends Fa {
|
|
|
15817
15817
|
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);
|
|
15818
15818
|
}
|
|
15819
15819
|
}
|
|
15820
|
-
class
|
|
15820
|
+
class Dd extends Fa {
|
|
15821
15821
|
constructor(t) {
|
|
15822
15822
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15823
15823
|
}
|
|
@@ -16166,7 +16166,7 @@ const _l = async (n, t) => {
|
|
|
16166
16166
|
), s = e.filter((o) => o !== void 0);
|
|
16167
16167
|
return await Promise.all(s.concat(i));
|
|
16168
16168
|
}, Zl = async (n, t) => (await Ar([n], t))[0];
|
|
16169
|
-
class
|
|
16169
|
+
class Fd {
|
|
16170
16170
|
constructor(t) {
|
|
16171
16171
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
16172
16172
|
try {
|
|
@@ -16177,7 +16177,7 @@ class Dd {
|
|
|
16177
16177
|
} catch (a) {
|
|
16178
16178
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
|
16179
16179
|
}
|
|
16180
|
-
}, this.options = t, this.options.applicationKey && Jr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.5.
|
|
16180
|
+
}, this.options = t, this.options.applicationKey && Jr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.5.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16181
16181
|
}
|
|
16182
16182
|
configure(t) {
|
|
16183
16183
|
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 && _r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16804,7 +16804,7 @@ const tc = async (n, t) => (await S.getShadowGraphqlClient().query({
|
|
|
16804
16804
|
variables: {
|
|
16805
16805
|
themeConfigurationId: t
|
|
16806
16806
|
}
|
|
16807
|
-
})).data.currentIntegration,
|
|
16807
|
+
})).data.currentIntegration, xd = async (n) => {
|
|
16808
16808
|
const e = await S.getShadowGraphqlClient().query({
|
|
16809
16809
|
query: Qi,
|
|
16810
16810
|
errorPolicy: "all",
|
|
@@ -16815,20 +16815,20 @@ const tc = async (n, t) => (await S.getShadowGraphqlClient().query({
|
|
|
16815
16815
|
});
|
|
16816
16816
|
if (e.data.transactions.length !== 0)
|
|
16817
16817
|
return e.data.transactions[0];
|
|
16818
|
-
},
|
|
16818
|
+
}, kd = async (n, t) => (await S.getShadowGraphqlClient().query({
|
|
16819
16819
|
query: Yi,
|
|
16820
16820
|
errorPolicy: "all",
|
|
16821
16821
|
variables: {
|
|
16822
16822
|
themeConfigurationId: n,
|
|
16823
16823
|
themeInstallId: t
|
|
16824
16824
|
}
|
|
16825
|
-
})).data?.marketplaceThemeInstallConfiguration,
|
|
16825
|
+
})).data?.marketplaceThemeInstallConfiguration, Md = async (n) => (await S.getShadowGraphqlClient().query({
|
|
16826
16826
|
query: _i,
|
|
16827
16827
|
errorPolicy: "all",
|
|
16828
16828
|
variables: {
|
|
16829
16829
|
id: n
|
|
16830
16830
|
}
|
|
16831
|
-
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration,
|
|
16831
|
+
})).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Td = async (n) => (await S.getShadowGraphqlClient().query({
|
|
16832
16832
|
query: Ki,
|
|
16833
16833
|
errorPolicy: "all",
|
|
16834
16834
|
variables: {
|
|
@@ -16849,7 +16849,7 @@ async function ur(n) {
|
|
|
16849
16849
|
...a
|
|
16850
16850
|
};
|
|
16851
16851
|
}
|
|
16852
|
-
const
|
|
16852
|
+
const Nd = async (n) => {
|
|
16853
16853
|
const t = await ur(n), e = await S.getShadowGraphqlClient().mutate({
|
|
16854
16854
|
mutation: Go,
|
|
16855
16855
|
errorPolicy: "all",
|
|
@@ -17099,7 +17099,7 @@ class ac {
|
|
|
17099
17099
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
17100
17100
|
}
|
|
17101
17101
|
}
|
|
17102
|
-
class
|
|
17102
|
+
class Qd {
|
|
17103
17103
|
traversableScenes() {
|
|
17104
17104
|
throw new Error("Method not implemented.");
|
|
17105
17105
|
}
|
|
@@ -17546,7 +17546,7 @@ const ic = C`
|
|
|
17546
17546
|
total
|
|
17547
17547
|
}
|
|
17548
17548
|
}
|
|
17549
|
-
`,
|
|
17549
|
+
`, Rd = async (n, t, e) => await S.getShadowGraphqlClient().mutate({
|
|
17550
17550
|
mutation: dc,
|
|
17551
17551
|
errorPolicy: "all",
|
|
17552
17552
|
variables: {
|
|
@@ -17554,34 +17554,34 @@ const ic = C`
|
|
|
17554
17554
|
name: t
|
|
17555
17555
|
},
|
|
17556
17556
|
context: e
|
|
17557
|
-
}),
|
|
17557
|
+
}), Od = async (n, t) => await S.getShadowGraphqlClient().mutate({
|
|
17558
17558
|
mutation: sc,
|
|
17559
17559
|
errorPolicy: "all",
|
|
17560
17560
|
variables: {
|
|
17561
17561
|
id: n,
|
|
17562
17562
|
name: t
|
|
17563
17563
|
}
|
|
17564
|
-
}),
|
|
17564
|
+
}), $d = async (n, t) => await S.getShadowGraphqlClient().mutate({
|
|
17565
17565
|
mutation: Ac,
|
|
17566
17566
|
errorPolicy: "all",
|
|
17567
17567
|
variables: {
|
|
17568
17568
|
id: n,
|
|
17569
17569
|
template: t
|
|
17570
17570
|
}
|
|
17571
|
-
}),
|
|
17571
|
+
}), Ud = async (n, t) => await S.getShadowGraphqlClient().mutate({
|
|
17572
17572
|
mutation: oc,
|
|
17573
17573
|
errorPolicy: "all",
|
|
17574
17574
|
variables: {
|
|
17575
17575
|
id: n,
|
|
17576
17576
|
template: t
|
|
17577
17577
|
}
|
|
17578
|
-
}),
|
|
17578
|
+
}), Ld = async (n) => (await S.getShadowGraphqlClient().query({
|
|
17579
17579
|
query: ic,
|
|
17580
17580
|
errorPolicy: "all",
|
|
17581
17581
|
variables: {
|
|
17582
17582
|
email: n
|
|
17583
17583
|
}
|
|
17584
|
-
})).data.customer,
|
|
17584
|
+
})).data.customer, Vd = async (n, t, e) => await S.getShadowGraphqlClient().query({
|
|
17585
17585
|
query: lc,
|
|
17586
17586
|
errorPolicy: "all",
|
|
17587
17587
|
fetchPolicy: "no-cache",
|
|
@@ -17590,7 +17590,7 @@ const ic = C`
|
|
|
17590
17590
|
offset: e,
|
|
17591
17591
|
limit: t
|
|
17592
17592
|
}
|
|
17593
|
-
}),
|
|
17593
|
+
}), zd = async (n, t) => await S.getShadowGraphqlClient().query({
|
|
17594
17594
|
query: cc,
|
|
17595
17595
|
errorPolicy: "all",
|
|
17596
17596
|
fetchPolicy: "no-cache",
|
|
@@ -17598,7 +17598,7 @@ const ic = C`
|
|
|
17598
17598
|
id: n
|
|
17599
17599
|
},
|
|
17600
17600
|
context: t
|
|
17601
|
-
}),
|
|
17601
|
+
}), Gd = async (n, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17602
17602
|
query: xa,
|
|
17603
17603
|
errorPolicy: "all",
|
|
17604
17604
|
fetchPolicy: "no-cache",
|
|
@@ -17618,7 +17618,7 @@ const ic = C`
|
|
|
17618
17618
|
offset: e,
|
|
17619
17619
|
limit: t
|
|
17620
17620
|
}
|
|
17621
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17621
|
+
}))?.data.customerTransactionsFeed?.items || [], Wd = async (n, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17622
17622
|
query: xa,
|
|
17623
17623
|
errorPolicy: "all",
|
|
17624
17624
|
fetchPolicy: "no-cache",
|
|
@@ -17638,7 +17638,7 @@ const ic = C`
|
|
|
17638
17638
|
offset: e,
|
|
17639
17639
|
limit: t
|
|
17640
17640
|
}
|
|
17641
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17641
|
+
}))?.data.customerTransactionsFeed?.items || [], qd = async (n, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17642
17642
|
query: xa,
|
|
17643
17643
|
errorPolicy: "all",
|
|
17644
17644
|
fetchPolicy: "no-cache",
|
|
@@ -17654,7 +17654,7 @@ const ic = C`
|
|
|
17654
17654
|
offset: e,
|
|
17655
17655
|
limit: t
|
|
17656
17656
|
}
|
|
17657
|
-
}))?.data.customerTransactionsFeed?.items || [],
|
|
17657
|
+
}))?.data.customerTransactionsFeed?.items || [], Hd = async (n, t, e) => (await S.getShadowGraphqlClient().query({
|
|
17658
17658
|
query: uc,
|
|
17659
17659
|
errorPolicy: "all",
|
|
17660
17660
|
fetchPolicy: "no-cache",
|
|
@@ -17821,7 +17821,7 @@ const mr = C`
|
|
|
17821
17821
|
}
|
|
17822
17822
|
`;
|
|
17823
17823
|
var Sc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(Sc || {}), vc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(vc || {});
|
|
17824
|
-
const
|
|
17824
|
+
const jd = async (n) => {
|
|
17825
17825
|
const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await S.getShadowGraphqlClient().query({
|
|
17826
17826
|
query: fc,
|
|
17827
17827
|
errorPolicy: "all",
|
|
@@ -17835,21 +17835,21 @@ const Hd = async (n) => {
|
|
|
17835
17835
|
if (r)
|
|
17836
17836
|
return e.data?.recipients?.find((i) => i.id === r)?.addressValidationJob;
|
|
17837
17837
|
});
|
|
17838
|
-
},
|
|
17838
|
+
}, Yd = async (n) => (await S.getShadowGraphqlClient().query({
|
|
17839
17839
|
query: pc,
|
|
17840
17840
|
errorPolicy: "all",
|
|
17841
17841
|
fetchPolicy: "network-only",
|
|
17842
17842
|
variables: {
|
|
17843
17843
|
ids: n
|
|
17844
17844
|
}
|
|
17845
|
-
})).data?.addressValidationJobs,
|
|
17845
|
+
})).data?.addressValidationJobs, Jd = async (n) => n.getTransaction().recipient?.id ? (await S.getShadowGraphqlClient().mutate({
|
|
17846
17846
|
mutation: Cc,
|
|
17847
17847
|
errorPolicy: "all",
|
|
17848
17848
|
fetchPolicy: "network-only",
|
|
17849
17849
|
variables: {
|
|
17850
17850
|
id: n.getTransaction().recipient.id
|
|
17851
17851
|
}
|
|
17852
|
-
})).data?.recipientValidate : void 0,
|
|
17852
|
+
})).data?.recipientValidate : void 0, Kd = async (n) => {
|
|
17853
17853
|
const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await S.getShadowGraphqlClient().mutate({
|
|
17854
17854
|
mutation: wc,
|
|
17855
17855
|
errorPolicy: "all",
|
|
@@ -17863,7 +17863,7 @@ const Hd = async (n) => {
|
|
|
17863
17863
|
if (r)
|
|
17864
17864
|
return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
|
|
17865
17865
|
});
|
|
17866
|
-
},
|
|
17866
|
+
}, _d = async (n) => {
|
|
17867
17867
|
const t = n.getTransaction().recipient?.id;
|
|
17868
17868
|
if (!t)
|
|
17869
17869
|
return;
|
|
@@ -17875,19 +17875,34 @@ const Hd = async (n) => {
|
|
|
17875
17875
|
id: t
|
|
17876
17876
|
}
|
|
17877
17877
|
})).data?.recipientOverrideAddress?.id && (n.getTransaction().addressValidationStatus = gn.Overridden);
|
|
17878
|
-
}
|
|
17878
|
+
}, Ec = C`
|
|
17879
|
+
query GetIntegrationProductsForIds($ids: [String!]!) {
|
|
17880
|
+
integrationProducts(ids: $ids) {
|
|
17881
|
+
id
|
|
17882
|
+
product {
|
|
17883
|
+
id
|
|
17884
|
+
name
|
|
17885
|
+
}
|
|
17886
|
+
}
|
|
17887
|
+
}
|
|
17888
|
+
`, Xd = async (n) => (await S.getShadowGraphqlClient().query({
|
|
17889
|
+
query: Ec,
|
|
17890
|
+
variables: {
|
|
17891
|
+
ids: n
|
|
17892
|
+
}
|
|
17893
|
+
})).data.integrationProducts;
|
|
17879
17894
|
export {
|
|
17880
17895
|
ga as AddonHandle,
|
|
17881
17896
|
vc as AddressValidationJobStatus,
|
|
17882
17897
|
Sc as AddressValidationResultConfirmationLevel,
|
|
17883
17898
|
gn as AddressValidationStatus,
|
|
17884
|
-
|
|
17899
|
+
Dd as ArrayInput,
|
|
17885
17900
|
U as AspectType,
|
|
17886
17901
|
bt as AssetNotFoundError,
|
|
17887
17902
|
Ee as AssetType,
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17903
|
+
Sd as BringForwardCommand,
|
|
17904
|
+
yd as BringToBackCommand,
|
|
17905
|
+
wd as BringToFrontCommand,
|
|
17891
17906
|
Tr as BundleDesignCreationCartAddMode,
|
|
17892
17907
|
Q as CanvasCommand,
|
|
17893
17908
|
me as CollectionProduct,
|
|
@@ -17919,16 +17934,16 @@ export {
|
|
|
17919
17934
|
el as InformationStepHandle,
|
|
17920
17935
|
en as IntegrationProduct,
|
|
17921
17936
|
Qr as IntegrationType,
|
|
17922
|
-
|
|
17937
|
+
md as LayoutElementFactory,
|
|
17923
17938
|
x as LayoutElementType,
|
|
17924
17939
|
j as LayoutNotFoundError,
|
|
17925
17940
|
jt as LayoutRenderingPurpose,
|
|
17926
17941
|
Jo as MaterialStepHandle,
|
|
17927
17942
|
Be as MisconfigurationError,
|
|
17928
|
-
|
|
17943
|
+
Qd as MockWorkflowManager,
|
|
17929
17944
|
Ko as ModelStepHandle,
|
|
17930
17945
|
nl as ModuleStepHandle,
|
|
17931
|
-
|
|
17946
|
+
gd as MoveCommand,
|
|
17932
17947
|
dr as ObjectInput,
|
|
17933
17948
|
Gl as ObjectInputType,
|
|
17934
17949
|
or as OptionGlobalPropertyHandle,
|
|
@@ -17943,14 +17958,14 @@ export {
|
|
|
17943
17958
|
Rn as PromiseQueue,
|
|
17944
17959
|
Xo as QuestionStepHandle,
|
|
17945
17960
|
Qn as QueueablePromise,
|
|
17946
|
-
|
|
17961
|
+
fd as ResizeCommand,
|
|
17947
17962
|
Yt as ResourceNotFoundError,
|
|
17948
|
-
|
|
17963
|
+
pd as RotateCommand,
|
|
17949
17964
|
q as ScaleAxis,
|
|
17950
|
-
|
|
17965
|
+
vd as SendBackwardsCommand,
|
|
17951
17966
|
Zo as ShapeStepHandle,
|
|
17952
17967
|
Nr as ShareActionType,
|
|
17953
|
-
|
|
17968
|
+
Fd as SpiffCommerceClient,
|
|
17954
17969
|
be as StakeholderType,
|
|
17955
17970
|
Mr as StepAspectType,
|
|
17956
17971
|
Z as StepHandle,
|
|
@@ -17958,91 +17973,92 @@ export {
|
|
|
17958
17973
|
kt as TextAlgorithm,
|
|
17959
17974
|
Bs as TextChangeCommand,
|
|
17960
17975
|
vl as TextGlobalPropertyHandle,
|
|
17961
|
-
|
|
17976
|
+
Pd as TextInput,
|
|
17962
17977
|
tl as TextStepHandle,
|
|
17963
17978
|
Nl as Transform,
|
|
17964
17979
|
Tl as TransformCollection,
|
|
17965
17980
|
N as UnhandledBehaviorError,
|
|
17966
17981
|
Or as UnitOfMeasurement,
|
|
17967
|
-
|
|
17982
|
+
Cd as UpdateImageSourceCommand,
|
|
17968
17983
|
it as Variant,
|
|
17969
17984
|
pl as WorkflowExperienceEventType,
|
|
17970
17985
|
fl as WorkflowExperienceImpl,
|
|
17971
17986
|
O as assetService,
|
|
17972
17987
|
ci as browserColorToHex,
|
|
17973
|
-
|
|
17988
|
+
ud as cmPerPixel,
|
|
17974
17989
|
cl as createDesign,
|
|
17975
|
-
|
|
17976
|
-
|
|
17977
|
-
|
|
17990
|
+
cd as currentDirection,
|
|
17991
|
+
_c as dataUrlFromExternalUrl,
|
|
17992
|
+
Nd as deleteBundle,
|
|
17978
17993
|
Xe as designService,
|
|
17979
17994
|
ye as determineCorrectFontSizeAndLines,
|
|
17980
17995
|
Kn as digitalContentStepService,
|
|
17981
17996
|
dt as domParser,
|
|
17982
|
-
|
|
17983
|
-
|
|
17997
|
+
$d as duplicateBundle,
|
|
17998
|
+
Ud as duplicateTransaction,
|
|
17984
17999
|
at as fetchAsString,
|
|
17985
|
-
|
|
18000
|
+
ad as findAngle,
|
|
17986
18001
|
$ as findElement,
|
|
17987
|
-
|
|
18002
|
+
td as findPmsColors,
|
|
17988
18003
|
Vt as frameDataCache,
|
|
17989
18004
|
St as frameStepService,
|
|
17990
18005
|
M as generate,
|
|
17991
18006
|
so as generateCommands,
|
|
17992
18007
|
ot as generateSVGWithUnknownColors,
|
|
17993
|
-
|
|
17994
|
-
|
|
18008
|
+
bd as generateStateFromDesignInputSteps,
|
|
18009
|
+
Yd as getAddressValidationJobs,
|
|
17995
18010
|
Oe as getAttributesFromArrayBuffer,
|
|
17996
|
-
|
|
18011
|
+
ed as getAxisAlignedBoundingBox,
|
|
17997
18012
|
ec as getBoundedOffsets,
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
|
|
18013
|
+
Md as getBundleThemeConfiguration,
|
|
18014
|
+
Ld as getCustomer,
|
|
18015
|
+
Vd as getCustomerBundles,
|
|
18016
|
+
dd as getElementVertices,
|
|
18002
18017
|
Ue as getFrameData,
|
|
18003
|
-
|
|
18018
|
+
Id as getGlobalPropertyStateForBundle,
|
|
18004
18019
|
tc as getIntegration,
|
|
18005
|
-
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18020
|
+
Xd as getIntegrationProducts,
|
|
18021
|
+
od as getNEPoint,
|
|
18022
|
+
sd as getNWPoint,
|
|
18023
|
+
Wd as getOrderedTransactions,
|
|
18024
|
+
kd as getOverrideThemeConfiguration,
|
|
18025
|
+
id as getPointOfRotation,
|
|
18026
|
+
Bd as getProductCollections,
|
|
18027
|
+
ld as getSEPoint,
|
|
18012
18028
|
Ea as getSvgElement,
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18029
|
+
Hd as getTemplateBundles,
|
|
18030
|
+
qd as getTemplateTransactions,
|
|
18031
|
+
xd as getTransaction,
|
|
18032
|
+
Td as getTransactionThemeConfiguration,
|
|
18033
|
+
zd as getTransactionsForBundle,
|
|
18034
|
+
rd as getTrueCoordinates,
|
|
18035
|
+
Gd as getUnorderedTransactions,
|
|
18036
|
+
jd as getValidationJobsForWorkflowExperiences,
|
|
18021
18037
|
Zl as getWorkflow,
|
|
18022
18038
|
Ar as getWorkflows,
|
|
18023
18039
|
S as graphQlManager,
|
|
18024
18040
|
we as illustrationStepService,
|
|
18025
|
-
|
|
18041
|
+
nd as isCloseToValue,
|
|
18026
18042
|
Tt as loadFont,
|
|
18027
|
-
|
|
18043
|
+
Zc as matchHexToPms,
|
|
18028
18044
|
_n as materialStepService,
|
|
18029
18045
|
kl as metafieldManager,
|
|
18030
|
-
|
|
18046
|
+
Ad as mmPerPixel,
|
|
18031
18047
|
Xn as modelStepService,
|
|
18032
18048
|
Sa as modifySVGColors,
|
|
18033
18049
|
Zn as moduleStepService,
|
|
18034
|
-
|
|
18035
|
-
|
|
18050
|
+
Rd as nameBundle,
|
|
18051
|
+
Od as nameTransaction,
|
|
18036
18052
|
H as optionService,
|
|
18037
|
-
|
|
18038
|
-
|
|
18053
|
+
hd as outlineFontsInSvg,
|
|
18054
|
+
_d as overrideWorkflowExperienceRecipientAddress,
|
|
18039
18055
|
ut as patternImageDataCache,
|
|
18040
18056
|
k as persistenceService,
|
|
18041
18057
|
tr as pictureStepService,
|
|
18042
|
-
|
|
18058
|
+
Xc as pmsToRgb,
|
|
18043
18059
|
er as questionStepService,
|
|
18044
|
-
|
|
18045
|
-
|
|
18060
|
+
Kc as registerFetchImplementation,
|
|
18061
|
+
Jc as registerWindowImplementation,
|
|
18046
18062
|
qa as rehydrateSerializedLayout,
|
|
18047
18063
|
si as rgbToPms,
|
|
18048
18064
|
Ae as rotateAroundPoint,
|
|
@@ -18052,14 +18068,14 @@ export {
|
|
|
18052
18068
|
zt as shapeStepService,
|
|
18053
18069
|
Ds as shortenUrl,
|
|
18054
18070
|
gt as spiffCoreConfiguration,
|
|
18055
|
-
|
|
18071
|
+
Ed as stepAspectValuesToDesignInputSteps,
|
|
18056
18072
|
La as svgColorValueToDefinition,
|
|
18057
18073
|
Hn as svgStringDimensions,
|
|
18058
18074
|
pa as svgToDataUrl,
|
|
18059
18075
|
G as textStepService,
|
|
18060
18076
|
$s as toast,
|
|
18061
|
-
|
|
18062
|
-
|
|
18077
|
+
Jd as validateWorkflowExperienceRecipient,
|
|
18078
|
+
Kd as validateWorkflowExperienceRecipients,
|
|
18063
18079
|
It as xmlSerializer
|
|
18064
18080
|
};
|
|
18065
18081
|
//# sourceMappingURL=index.mjs.map
|