@spiffcommerce/core 26.27.0-beta.1b0de14d-97c0-5cf1-adeb-fe67dfe6dd60 → 26.27.0-beta.3bd46806-87c5-56d2-ab3a-5867e86c509d
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 +4 -4
- package/dist/index.js +108 -108
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +180 -178
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -158,10 +158,10 @@ class Sr {
|
|
|
158
158
|
}
|
|
159
159
|
const wt = new Sr();
|
|
160
160
|
let _e, Xe;
|
|
161
|
-
function
|
|
161
|
+
function nc(r) {
|
|
162
162
|
_e = r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function rc(r) {
|
|
165
165
|
Xe = r;
|
|
166
166
|
}
|
|
167
167
|
function Jt() {
|
|
@@ -256,7 +256,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
|
|
|
256
256
|
}
|
|
257
257
|
const e = t();
|
|
258
258
|
return e || "image/svg+xml";
|
|
259
|
-
},
|
|
259
|
+
}, ic = async (r) => {
|
|
260
260
|
const t = await cn(r), e = ln.get(r) || Ie(t);
|
|
261
261
|
return await Pr(new Blob([t], { type: e }));
|
|
262
262
|
}, Ir = (r) => {
|
|
@@ -3145,7 +3145,7 @@ const Nr = (r) => new Promise((t) => {
|
|
|
3145
3145
|
parseInt(r.substring(2, 4), 16),
|
|
3146
3146
|
parseInt(r.substring(4, 6), 16)
|
|
3147
3147
|
]);
|
|
3148
|
-
function
|
|
3148
|
+
function sc(r) {
|
|
3149
3149
|
const t = jt.indexOf(r);
|
|
3150
3150
|
return t >= 0 ? Ft[t] : "";
|
|
3151
3151
|
}
|
|
@@ -3153,7 +3153,7 @@ function $r(r) {
|
|
|
3153
3153
|
const t = Ft.indexOf(r);
|
|
3154
3154
|
return t >= 0 ? jt[t] : "";
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function oc(r, t = 64) {
|
|
3157
3157
|
const e = [], a = [], n = $r(r);
|
|
3158
3158
|
n && e.push({
|
|
3159
3159
|
pms: n,
|
|
@@ -3172,7 +3172,7 @@ function sc(r, t = 64) {
|
|
|
3172
3172
|
return e.sort((A, u) => A.distance - u.distance);
|
|
3173
3173
|
}
|
|
3174
3174
|
const Lr = jt.map((r, t) => ({ pms: r, hex: Ft[t] })), Vr = new dr(Lr, { keys: ["pms"] });
|
|
3175
|
-
function
|
|
3175
|
+
function lc(r, t) {
|
|
3176
3176
|
return Vr.search(r, t ? { limit: t } : void 0);
|
|
3177
3177
|
}
|
|
3178
3178
|
let Qt = null;
|
|
@@ -5374,7 +5374,7 @@ const Q = () => {
|
|
|
5374
5374
|
]
|
|
5375
5375
|
}
|
|
5376
5376
|
);
|
|
5377
|
-
},
|
|
5377
|
+
}, cc = (r, t, e, a, n) => {
|
|
5378
5378
|
const i = gt(n), s = e / 2, o = a / 2, l = r + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, g = o, f = u * A - m * d, p = h * A - g * d, C = u * d + m * A, w = h * d + g * A, v = Math.max(Math.abs(f), Math.abs(p)), S = Math.max(Math.abs(C), Math.abs(w));
|
|
5379
5379
|
return {
|
|
5380
5380
|
minX: l - v,
|
|
@@ -5382,25 +5382,25 @@ const Q = () => {
|
|
|
5382
5382
|
minY: c - S,
|
|
5383
5383
|
maxY: c + S
|
|
5384
5384
|
};
|
|
5385
|
-
},
|
|
5385
|
+
}, dc = (r, t, e) => {
|
|
5386
5386
|
const a = Math.sqrt(Math.pow(t.x - r.x, 2) + Math.pow(t.y - r.y, 2)), n = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - r.x, 2) + Math.pow(e.y - r.y, 2));
|
|
5387
5387
|
return Math.acos((n * n + a * a - i * i) / (2 * n * a)) * (180 / Math.PI);
|
|
5388
|
-
}, gt = (r) => r * (Math.PI / 180),
|
|
5388
|
+
}, gt = (r) => r * (Math.PI / 180), Ac = (r, t, e) => Math.abs(r - t) < e, uc = (r, t, e) => {
|
|
5389
5389
|
const a = Math.sin(gt(e)), n = Math.cos(gt(e));
|
|
5390
5390
|
return {
|
|
5391
5391
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5392
5392
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5393
5393
|
};
|
|
5394
|
-
},
|
|
5394
|
+
}, hc = (r, t) => ({
|
|
5395
5395
|
x: (r.x + t.x) / 2,
|
|
5396
5396
|
y: (r.y + t.y) / 2
|
|
5397
|
-
}),
|
|
5397
|
+
}), mc = (r, t, e, a) => ({
|
|
5398
5398
|
x: r.x + (t == null ? void 0 : t.x) * e,
|
|
5399
5399
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5400
|
-
}),
|
|
5400
|
+
}), gc = (r, t, e, a) => ({
|
|
5401
5401
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5402
5402
|
y: r.y + (t == null ? void 0 : t.y) * a
|
|
5403
|
-
}),
|
|
5403
|
+
}), fc = (r, t, e, a) => ({
|
|
5404
5404
|
x: r.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5405
5405
|
y: r.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * a
|
|
5406
5406
|
}), bt = (r) => {
|
|
@@ -5422,7 +5422,7 @@ const Q = () => {
|
|
|
5422
5422
|
case H.Southwest:
|
|
5423
5423
|
return H.Northwest;
|
|
5424
5424
|
}
|
|
5425
|
-
},
|
|
5425
|
+
}, pc = (r, t) => t > 45 && t <= 135 ? bt(r) : t > 135 && t <= 225 ? bt(bt(r)) : t > 225 && t <= 315 ? bt(bt(bt(r))) : r, Cc = (r, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5426
5426
|
const a = gt(r.rotation), n = {
|
|
5427
5427
|
x: t.x + r.x * e.x,
|
|
5428
5428
|
y: t.x + r.y * e.y
|
|
@@ -5452,7 +5452,7 @@ const Q = () => {
|
|
|
5452
5452
|
x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
|
|
5453
5453
|
y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
|
|
5454
5454
|
};
|
|
5455
|
-
},
|
|
5455
|
+
}, wc = 0.352778, yc = 0.035277, Fn = (r) => {
|
|
5456
5456
|
const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
|
|
5457
5457
|
return /* @__PURE__ */ x("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ x(
|
|
5458
5458
|
"g",
|
|
@@ -5677,7 +5677,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
|
|
|
5677
5677
|
}, aa = (r, t) => {
|
|
5678
5678
|
const e = new Oi(t);
|
|
5679
5679
|
return kn.set(r, e), e;
|
|
5680
|
-
},
|
|
5680
|
+
}, Sc = async (r) => {
|
|
5681
5681
|
const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
|
|
5682
5682
|
a.querySelectorAll("style").forEach((d) => {
|
|
5683
5683
|
var u;
|
|
@@ -6329,7 +6329,7 @@ const Zt = (r) => {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
return o;
|
|
6331
6331
|
};
|
|
6332
|
-
class
|
|
6332
|
+
class vc {
|
|
6333
6333
|
static async getFrame(t, e) {
|
|
6334
6334
|
const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
|
|
6335
6335
|
return {
|
|
@@ -6575,7 +6575,7 @@ class La extends R {
|
|
|
6575
6575
|
};
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
|
-
class
|
|
6578
|
+
class Ec extends R {
|
|
6579
6579
|
constructor(t, e, a) {
|
|
6580
6580
|
super(), this.id = t, this.x = e, this.y = a;
|
|
6581
6581
|
}
|
|
@@ -6598,7 +6598,7 @@ class vc extends R {
|
|
|
6598
6598
|
};
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
|
-
class
|
|
6601
|
+
class Bc extends R {
|
|
6602
6602
|
constructor(t, e) {
|
|
6603
6603
|
super(), this.id = t, this.angle = e;
|
|
6604
6604
|
}
|
|
@@ -6620,7 +6620,7 @@ class Ec extends R {
|
|
|
6620
6620
|
};
|
|
6621
6621
|
}
|
|
6622
6622
|
}
|
|
6623
|
-
class
|
|
6623
|
+
class bc extends R {
|
|
6624
6624
|
constructor(t, e, a) {
|
|
6625
6625
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
|
|
6626
6626
|
}
|
|
@@ -6932,7 +6932,7 @@ class as extends R {
|
|
|
6932
6932
|
};
|
|
6933
6933
|
}
|
|
6934
6934
|
}
|
|
6935
|
-
class
|
|
6935
|
+
class Ic extends R {
|
|
6936
6936
|
constructor(t, e) {
|
|
6937
6937
|
super(), this.id = t, this.src = e;
|
|
6938
6938
|
}
|
|
@@ -7051,7 +7051,7 @@ class rs extends R {
|
|
|
7051
7051
|
};
|
|
7052
7052
|
}
|
|
7053
7053
|
}
|
|
7054
|
-
class
|
|
7054
|
+
class Dc extends R {
|
|
7055
7055
|
/**
|
|
7056
7056
|
* @param id The targeted element to bring to the front.
|
|
7057
7057
|
*/
|
|
@@ -7080,7 +7080,7 @@ class Ic extends R {
|
|
|
7080
7080
|
};
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
|
-
class
|
|
7083
|
+
class Pc extends R {
|
|
7084
7084
|
/**
|
|
7085
7085
|
* @param id The targeted element to bring to the back.
|
|
7086
7086
|
*/
|
|
@@ -7111,7 +7111,7 @@ class Dc extends R {
|
|
|
7111
7111
|
};
|
|
7112
7112
|
}
|
|
7113
7113
|
}
|
|
7114
|
-
class
|
|
7114
|
+
class Fc extends R {
|
|
7115
7115
|
/**
|
|
7116
7116
|
* @param id The targeted element to bring to the front.
|
|
7117
7117
|
*/
|
|
@@ -7138,7 +7138,7 @@ class Pc extends R {
|
|
|
7138
7138
|
};
|
|
7139
7139
|
}
|
|
7140
7140
|
}
|
|
7141
|
-
class
|
|
7141
|
+
class xc extends R {
|
|
7142
7142
|
/**
|
|
7143
7143
|
* @param id The targeted element to bring to the front.
|
|
7144
7144
|
*/
|
|
@@ -11423,7 +11423,7 @@ class ie {
|
|
|
11423
11423
|
case D.Model:
|
|
11424
11424
|
return new ro(t, e, t.getStepTags(e.stepName));
|
|
11425
11425
|
case D.Frame:
|
|
11426
|
-
return new
|
|
11426
|
+
return new El(t, e, t.getStepTags(e.stepName));
|
|
11427
11427
|
case D.Module:
|
|
11428
11428
|
return new uo(t, e, t.getStepTags(e.stepName));
|
|
11429
11429
|
default:
|
|
@@ -13040,7 +13040,7 @@ class Vo extends Dn {
|
|
|
13040
13040
|
u.resize(l, c), await u.render(), this.onRender();
|
|
13041
13041
|
}
|
|
13042
13042
|
}
|
|
13043
|
-
const
|
|
13043
|
+
const kc = (r, t) => {
|
|
13044
13044
|
const e = [];
|
|
13045
13045
|
return r.forEach((a) => {
|
|
13046
13046
|
const n = t.steps.find((i) => i.stepName === a.stepName);
|
|
@@ -13051,7 +13051,7 @@ const xc = (r, t) => {
|
|
|
13051
13051
|
}
|
|
13052
13052
|
});
|
|
13053
13053
|
}), e;
|
|
13054
|
-
},
|
|
13054
|
+
}, Mc = async (r, t, e, a) => {
|
|
13055
13055
|
let n = {
|
|
13056
13056
|
serializableWorkflow: { steps: [] },
|
|
13057
13057
|
layouts: {}
|
|
@@ -13933,7 +13933,8 @@ class Ko {
|
|
|
13933
13933
|
}
|
|
13934
13934
|
}
|
|
13935
13935
|
const _o = new Ko();
|
|
13936
|
-
|
|
13936
|
+
var Xo = /* @__PURE__ */ ((r) => (r.Default = "Default", r.Name = "Name", r.Price = "Price", r))(Xo || {});
|
|
13937
|
+
class Zo {
|
|
13937
13938
|
constructor(t) {
|
|
13938
13939
|
this.fullFetched = !1, this.collection = t;
|
|
13939
13940
|
const e = this.collection.productCollectionProducts;
|
|
@@ -14061,7 +14062,7 @@ class Xo {
|
|
|
14061
14062
|
}
|
|
14062
14063
|
getTransformCollection() {
|
|
14063
14064
|
if (this.collection.transformCollection)
|
|
14064
|
-
return new
|
|
14065
|
+
return new tl(this.collection.transformCollection);
|
|
14065
14066
|
}
|
|
14066
14067
|
/**
|
|
14067
14068
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -14230,7 +14231,7 @@ class zt {
|
|
|
14230
14231
|
return this.workflow.imageUrl;
|
|
14231
14232
|
}
|
|
14232
14233
|
}
|
|
14233
|
-
class
|
|
14234
|
+
class tl {
|
|
14234
14235
|
constructor(t) {
|
|
14235
14236
|
this.collection = t;
|
|
14236
14237
|
}
|
|
@@ -14250,10 +14251,10 @@ class Zo {
|
|
|
14250
14251
|
* @returns The transforms in this collection.
|
|
14251
14252
|
*/
|
|
14252
14253
|
getTransforms() {
|
|
14253
|
-
return this.collection.transforms.map((t) => new
|
|
14254
|
+
return this.collection.transforms.map((t) => new el(t));
|
|
14254
14255
|
}
|
|
14255
14256
|
}
|
|
14256
|
-
class
|
|
14257
|
+
class el {
|
|
14257
14258
|
constructor(t) {
|
|
14258
14259
|
this.transform = t;
|
|
14259
14260
|
}
|
|
@@ -14280,7 +14281,7 @@ class tl {
|
|
|
14280
14281
|
};
|
|
14281
14282
|
}
|
|
14282
14283
|
}
|
|
14283
|
-
class
|
|
14284
|
+
class al {
|
|
14284
14285
|
constructor() {
|
|
14285
14286
|
this.listeners = {};
|
|
14286
14287
|
}
|
|
@@ -14307,7 +14308,7 @@ class el {
|
|
|
14307
14308
|
delete this.listeners[e];
|
|
14308
14309
|
}
|
|
14309
14310
|
}
|
|
14310
|
-
const
|
|
14311
|
+
const nl = y`
|
|
14311
14312
|
mutation AddAddressToBundle(
|
|
14312
14313
|
$bundleId: String!
|
|
14313
14314
|
$streetAddress: String
|
|
@@ -14329,13 +14330,13 @@ const al = y`
|
|
|
14329
14330
|
id
|
|
14330
14331
|
}
|
|
14331
14332
|
}
|
|
14332
|
-
`,
|
|
14333
|
+
`, rl = y`
|
|
14333
14334
|
mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
|
|
14334
14335
|
organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
|
|
14335
14336
|
id
|
|
14336
14337
|
}
|
|
14337
14338
|
}
|
|
14338
|
-
`,
|
|
14339
|
+
`, il = y`
|
|
14339
14340
|
mutation GenerateQuoteId($id: String!) {
|
|
14340
14341
|
bundleGenerateQuoteId(id: $id) {
|
|
14341
14342
|
id
|
|
@@ -14346,7 +14347,7 @@ const al = y`
|
|
|
14346
14347
|
class He {
|
|
14347
14348
|
constructor(t, e, a, n, i, s) {
|
|
14348
14349
|
var c, d, A;
|
|
14349
|
-
this.workflowExperiences = [], this.eventEmitter = new
|
|
14350
|
+
this.workflowExperiences = [], this.eventEmitter = new al(), this.client = t, this.id = e.id, this.name = e.name || "", this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Yo(e.bundleStateData);
|
|
14350
14351
|
const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
|
|
14351
14352
|
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new qo(
|
|
14352
14353
|
this.id,
|
|
@@ -14385,7 +14386,7 @@ class He {
|
|
|
14385
14386
|
async generateQuoteId() {
|
|
14386
14387
|
var a, n;
|
|
14387
14388
|
const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
|
|
14388
|
-
mutation:
|
|
14389
|
+
mutation: il,
|
|
14389
14390
|
variables: {
|
|
14390
14391
|
id: this.id
|
|
14391
14392
|
},
|
|
@@ -14397,7 +14398,7 @@ class He {
|
|
|
14397
14398
|
}
|
|
14398
14399
|
async attachAddress(t, e, a, n, i, s) {
|
|
14399
14400
|
await b.getShadowGraphqlClient().mutate({
|
|
14400
|
-
mutation:
|
|
14401
|
+
mutation: nl,
|
|
14401
14402
|
variables: {
|
|
14402
14403
|
bundleId: this.id,
|
|
14403
14404
|
streetAddress: t || void 0,
|
|
@@ -14414,7 +14415,7 @@ class He {
|
|
|
14414
14415
|
}
|
|
14415
14416
|
async attachOrganization(t) {
|
|
14416
14417
|
await b.getShadowGraphqlClient().mutate({
|
|
14417
|
-
mutation:
|
|
14418
|
+
mutation: rl,
|
|
14418
14419
|
variables: {
|
|
14419
14420
|
bundleId: this.id,
|
|
14420
14421
|
organizationName: t
|
|
@@ -14487,7 +14488,7 @@ class He {
|
|
|
14487
14488
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
14488
14489
|
}
|
|
14489
14490
|
getProductCollection() {
|
|
14490
|
-
return this.productCollection ? new
|
|
14491
|
+
return this.productCollection ? new Zo(this.productCollection) : void 0;
|
|
14491
14492
|
}
|
|
14492
14493
|
async initializeAdditionalRequiredColorChannels(t) {
|
|
14493
14494
|
var e, a, n, i;
|
|
@@ -15006,14 +15007,14 @@ class He {
|
|
|
15006
15007
|
};
|
|
15007
15008
|
}
|
|
15008
15009
|
}
|
|
15009
|
-
const
|
|
15010
|
+
const sl = y`
|
|
15010
15011
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
15011
15012
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
15012
15013
|
id
|
|
15013
15014
|
}
|
|
15014
15015
|
}
|
|
15015
15016
|
`;
|
|
15016
|
-
class
|
|
15017
|
+
class ol {
|
|
15017
15018
|
/**
|
|
15018
15019
|
*
|
|
15019
15020
|
* @param id
|
|
@@ -15024,7 +15025,7 @@ class sl {
|
|
|
15024
15025
|
async execute(t, e, a) {
|
|
15025
15026
|
var A, u, h;
|
|
15026
15027
|
const i = (u = (A = (await b.getShadowGraphqlClient().mutate({
|
|
15027
|
-
mutation:
|
|
15028
|
+
mutation: sl,
|
|
15028
15029
|
variables: {
|
|
15029
15030
|
processFlowId: t,
|
|
15030
15031
|
inputs: [...e.map((m) => m.getValueForTransmission())]
|
|
@@ -15066,7 +15067,7 @@ class sl {
|
|
|
15066
15067
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15067
15068
|
);
|
|
15068
15069
|
if (m.completedAt) {
|
|
15069
|
-
o = !0, d = new
|
|
15070
|
+
o = !0, d = new ll(m);
|
|
15070
15071
|
break;
|
|
15071
15072
|
}
|
|
15072
15073
|
l += 1;
|
|
@@ -15080,7 +15081,7 @@ class sl {
|
|
|
15080
15081
|
return Promise.resolve(d);
|
|
15081
15082
|
}
|
|
15082
15083
|
}
|
|
15083
|
-
class
|
|
15084
|
+
class ll {
|
|
15084
15085
|
constructor(t) {
|
|
15085
15086
|
this.execution = t;
|
|
15086
15087
|
}
|
|
@@ -15165,8 +15166,8 @@ class ba {
|
|
|
15165
15166
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15166
15167
|
}
|
|
15167
15168
|
}
|
|
15168
|
-
var
|
|
15169
|
-
class
|
|
15169
|
+
var cl = /* @__PURE__ */ ((r) => (r.Transaction = "Transaction", r.Bundle = "Bundle", r.Product = "Product", r.Variant = "Variant", r.Option = "Option", r.LineItem = "LineItem", r.Asset = "Asset", r))(cl || {});
|
|
15170
|
+
class Tc extends ba {
|
|
15170
15171
|
constructor(t) {
|
|
15171
15172
|
super(`"${t}"`);
|
|
15172
15173
|
}
|
|
@@ -15181,7 +15182,7 @@ class Xn extends ba {
|
|
|
15181
15182
|
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);
|
|
15182
15183
|
}
|
|
15183
15184
|
}
|
|
15184
|
-
class
|
|
15185
|
+
class Qc extends ba {
|
|
15185
15186
|
constructor(t) {
|
|
15186
15187
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
15187
15188
|
}
|
|
@@ -15239,7 +15240,7 @@ const Ya = y`
|
|
|
15239
15240
|
}
|
|
15240
15241
|
}
|
|
15241
15242
|
}
|
|
15242
|
-
`,
|
|
15243
|
+
`, dl = y`
|
|
15243
15244
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
15244
15245
|
customerCreate(details: $details) {
|
|
15245
15246
|
id
|
|
@@ -15249,7 +15250,7 @@ const Ya = y`
|
|
|
15249
15250
|
}
|
|
15250
15251
|
}
|
|
15251
15252
|
}
|
|
15252
|
-
`,
|
|
15253
|
+
`, Al = y`
|
|
15253
15254
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
15254
15255
|
customerAuthenticate(loginToken: $loginToken) {
|
|
15255
15256
|
id
|
|
@@ -15279,11 +15280,11 @@ const Ya = y`
|
|
|
15279
15280
|
}
|
|
15280
15281
|
}
|
|
15281
15282
|
}
|
|
15282
|
-
`,
|
|
15283
|
+
`, ul = y`
|
|
15283
15284
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
15284
15285
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
15285
15286
|
}
|
|
15286
|
-
`,
|
|
15287
|
+
`, hl = y`
|
|
15287
15288
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
15288
15289
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
15289
15290
|
id
|
|
@@ -15314,7 +15315,7 @@ const Ya = y`
|
|
|
15314
15315
|
}
|
|
15315
15316
|
}
|
|
15316
15317
|
}
|
|
15317
|
-
`,
|
|
15318
|
+
`, ml = y`
|
|
15318
15319
|
query CustomerMetafields($id: String!) {
|
|
15319
15320
|
metafields(entityId: $id) {
|
|
15320
15321
|
id
|
|
@@ -15332,7 +15333,7 @@ const Ya = y`
|
|
|
15332
15333
|
}
|
|
15333
15334
|
}
|
|
15334
15335
|
}
|
|
15335
|
-
`,
|
|
15336
|
+
`, gl = async (r, t) => {
|
|
15336
15337
|
var n;
|
|
15337
15338
|
const e = await b.getShadowGraphqlClient().query({
|
|
15338
15339
|
query: Ei(((n = t == null ? void 0 : t.assets) == null ? void 0 : n.metadata) || !1),
|
|
@@ -15356,7 +15357,7 @@ const Ya = y`
|
|
|
15356
15357
|
}), Ht.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
15357
15358
|
}), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.finalizeStepConfig.termsMarkdown || i.partner.termsMarkdown;
|
|
15358
15359
|
}), a;
|
|
15359
|
-
},
|
|
15360
|
+
}, fl = async (r, t) => {
|
|
15360
15361
|
const a = (await t).find((n) => n.id === r);
|
|
15361
15362
|
if (!a)
|
|
15362
15363
|
throw new Error(`Workflow not found: ${r}`);
|
|
@@ -15365,11 +15366,11 @@ const Ya = y`
|
|
|
15365
15366
|
const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
|
|
15366
15367
|
if (a.length === 0)
|
|
15367
15368
|
return Promise.all(e);
|
|
15368
|
-
const n =
|
|
15369
|
-
(o) => Ht.set({ id: o, options: t },
|
|
15369
|
+
const n = gl(a, t), i = a.map(
|
|
15370
|
+
(o) => Ht.set({ id: o, options: t }, fl(o, n))
|
|
15370
15371
|
), s = e.filter((o) => o !== void 0);
|
|
15371
15372
|
return await Promise.all(s.concat(i));
|
|
15372
|
-
},
|
|
15373
|
+
}, Nc = async (r, t) => (await Zn([r], t))[0], pl = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
|
|
15373
15374
|
id: Q(),
|
|
15374
15375
|
panelId: t.name,
|
|
15375
15376
|
name: t.name,
|
|
@@ -15383,11 +15384,11 @@ const Ya = y`
|
|
|
15383
15384
|
previewRegion: t.previewRegion,
|
|
15384
15385
|
useEditableArea: t.useEditableArea,
|
|
15385
15386
|
editableArea: t.editableArea
|
|
15386
|
-
})),
|
|
15387
|
+
})), Cl = (r, t) => {
|
|
15387
15388
|
const e = r.workflowState, a = e ? JSON.parse(e) : void 0;
|
|
15388
|
-
return a ? Object.values(a.layouts).map((n) => n.layout) :
|
|
15389
|
+
return a ? Object.values(a.layouts).map((n) => n.layout) : pl(t.panels);
|
|
15389
15390
|
};
|
|
15390
|
-
class
|
|
15391
|
+
class Rc {
|
|
15391
15392
|
constructor(t) {
|
|
15392
15393
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
15393
15394
|
try {
|
|
@@ -15398,7 +15399,7 @@ class Nc {
|
|
|
15398
15399
|
} catch (a) {
|
|
15399
15400
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15400
15401
|
}
|
|
15401
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.27.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15402
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.27.0-beta.1b0de14d-97c0-5cf1-adeb-fe67dfe6dd60"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15402
15403
|
}
|
|
15403
15404
|
configure(t) {
|
|
15404
15405
|
wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -15418,14 +15419,14 @@ class Nc {
|
|
|
15418
15419
|
getFlowService() {
|
|
15419
15420
|
if (!xr())
|
|
15420
15421
|
throw new Error("Application key required to use Flow Service.");
|
|
15421
|
-
return new
|
|
15422
|
+
return new ol();
|
|
15422
15423
|
}
|
|
15423
15424
|
async getIntegration() {
|
|
15424
15425
|
if (this.activeIntegration)
|
|
15425
15426
|
return this.activeIntegration;
|
|
15426
15427
|
if (!this.options.applicationKey)
|
|
15427
15428
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
15428
|
-
return this.activeIntegration =
|
|
15429
|
+
return this.activeIntegration = wl(this.options.applicationKey), this.activeIntegration;
|
|
15429
15430
|
}
|
|
15430
15431
|
async canUseAddon(t) {
|
|
15431
15432
|
var e;
|
|
@@ -15574,7 +15575,7 @@ class Nc {
|
|
|
15574
15575
|
})).data.customer;
|
|
15575
15576
|
if (!n.id) {
|
|
15576
15577
|
const l = (s = (await e.mutate({
|
|
15577
|
-
mutation:
|
|
15578
|
+
mutation: dl,
|
|
15578
15579
|
errorPolicy: "all",
|
|
15579
15580
|
fetchPolicy: "no-cache",
|
|
15580
15581
|
variables: {
|
|
@@ -15609,7 +15610,7 @@ class Nc {
|
|
|
15609
15610
|
if (!n)
|
|
15610
15611
|
return !1;
|
|
15611
15612
|
const s = (o = (await e.mutate({
|
|
15612
|
-
mutation:
|
|
15613
|
+
mutation: Al,
|
|
15613
15614
|
errorPolicy: "all",
|
|
15614
15615
|
fetchPolicy: "no-cache",
|
|
15615
15616
|
variables: {
|
|
@@ -15624,7 +15625,7 @@ class Nc {
|
|
|
15624
15625
|
*/
|
|
15625
15626
|
async generateVerificationCode(t) {
|
|
15626
15627
|
await b.getShadowGraphqlClient().mutate({
|
|
15627
|
-
mutation:
|
|
15628
|
+
mutation: ul,
|
|
15628
15629
|
variables: {
|
|
15629
15630
|
emailAddress: t
|
|
15630
15631
|
}
|
|
@@ -15639,7 +15640,7 @@ class Nc {
|
|
|
15639
15640
|
async verifyCode(t, e) {
|
|
15640
15641
|
var i, s;
|
|
15641
15642
|
const n = (i = (await b.getShadowGraphqlClient().mutate({
|
|
15642
|
-
mutation:
|
|
15643
|
+
mutation: hl,
|
|
15643
15644
|
errorPolicy: "all",
|
|
15644
15645
|
fetchPolicy: "no-cache",
|
|
15645
15646
|
variables: {
|
|
@@ -15663,7 +15664,7 @@ class Nc {
|
|
|
15663
15664
|
if (!((e = this.customer) != null && e.id))
|
|
15664
15665
|
throw new Error("Customer must be logged in before calling this function.");
|
|
15665
15666
|
return (await b.getShadowGraphqlClient().query({
|
|
15666
|
-
query:
|
|
15667
|
+
query: ml,
|
|
15667
15668
|
variables: {
|
|
15668
15669
|
id: this.customer.id
|
|
15669
15670
|
}
|
|
@@ -15929,7 +15930,7 @@ class Nc {
|
|
|
15929
15930
|
const G = JSON.parse(M.workflowState);
|
|
15930
15931
|
V.layouts = Object.values(G.layouts || {}).map((nt) => nt.layout), await $a(G), V.reloadedState = G;
|
|
15931
15932
|
} else
|
|
15932
|
-
V.layouts =
|
|
15933
|
+
V.layouts = Cl(
|
|
15933
15934
|
V.transaction,
|
|
15934
15935
|
V.workflow
|
|
15935
15936
|
);
|
|
@@ -16013,7 +16014,7 @@ class Nc {
|
|
|
16013
16014
|
};
|
|
16014
16015
|
}
|
|
16015
16016
|
}
|
|
16016
|
-
const
|
|
16017
|
+
const wl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
16017
16018
|
query: Di,
|
|
16018
16019
|
errorPolicy: "all",
|
|
16019
16020
|
fetchPolicy: "no-cache",
|
|
@@ -16025,7 +16026,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16025
16026
|
variables: {
|
|
16026
16027
|
themeConfigurationId: t
|
|
16027
16028
|
}
|
|
16028
|
-
})).data.currentIntegration,
|
|
16029
|
+
})).data.currentIntegration, Oc = async (r) => {
|
|
16029
16030
|
const e = await b.getShadowGraphqlClient().query({
|
|
16030
16031
|
query: hi,
|
|
16031
16032
|
errorPolicy: "all",
|
|
@@ -16036,7 +16037,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16036
16037
|
});
|
|
16037
16038
|
if (e.data.transactions.length !== 0)
|
|
16038
16039
|
return e.data.transactions[0];
|
|
16039
|
-
},
|
|
16040
|
+
}, Uc = async (r, t) => {
|
|
16040
16041
|
var a;
|
|
16041
16042
|
return (a = (await b.getShadowGraphqlClient().query({
|
|
16042
16043
|
query: Ii,
|
|
@@ -16046,7 +16047,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16046
16047
|
themeInstallId: t
|
|
16047
16048
|
}
|
|
16048
16049
|
})).data) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16049
|
-
},
|
|
16050
|
+
}, $c = async (r) => {
|
|
16050
16051
|
var e, a, n;
|
|
16051
16052
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16052
16053
|
query: Fi,
|
|
@@ -16055,7 +16056,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16055
16056
|
id: r
|
|
16056
16057
|
}
|
|
16057
16058
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16058
|
-
},
|
|
16059
|
+
}, Lc = async (r) => {
|
|
16059
16060
|
var e, a, n;
|
|
16060
16061
|
return (n = (a = (e = (await b.getShadowGraphqlClient().query({
|
|
16061
16062
|
query: Pi,
|
|
@@ -16065,7 +16066,7 @@ const Cl = async (r, t) => (await b.getShadowGraphqlClient().query({
|
|
|
16065
16066
|
}
|
|
16066
16067
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : a[0]) == null ? void 0 : n.marketplaceThemeInstallConfiguration;
|
|
16067
16068
|
};
|
|
16068
|
-
function
|
|
16069
|
+
function yl(r, t, e, a) {
|
|
16069
16070
|
const n = e.width * r.zoom, i = e.height * r.zoom;
|
|
16070
16071
|
if (a) {
|
|
16071
16072
|
const o = r, l = Math.max(t.width / e.width, t.height / e.height);
|
|
@@ -16079,7 +16080,7 @@ function wl(r, t, e, a) {
|
|
|
16079
16080
|
function le(r, t, e) {
|
|
16080
16081
|
return Math.min(Math.max(r, t), e);
|
|
16081
16082
|
}
|
|
16082
|
-
class
|
|
16083
|
+
class Sl {
|
|
16083
16084
|
constructor(t, e) {
|
|
16084
16085
|
this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
|
|
16085
16086
|
useThreshold: !1,
|
|
@@ -16222,7 +16223,7 @@ class yl {
|
|
|
16222
16223
|
return;
|
|
16223
16224
|
}
|
|
16224
16225
|
(!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
|
|
16225
|
-
this.offsets[o] =
|
|
16226
|
+
this.offsets[o] = yl(t[o], s, this.imageData, this.forceImageCover);
|
|
16226
16227
|
}), this._debouncedUpdateFrameOffsets(
|
|
16227
16228
|
this.offsets,
|
|
16228
16229
|
n,
|
|
@@ -16301,7 +16302,7 @@ class yl {
|
|
|
16301
16302
|
}), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
|
|
16302
16303
|
}
|
|
16303
16304
|
}
|
|
16304
|
-
class
|
|
16305
|
+
class Vc {
|
|
16305
16306
|
approveTransaction(t) {
|
|
16306
16307
|
throw new Error("Method not implemented.");
|
|
16307
16308
|
}
|
|
@@ -16460,12 +16461,12 @@ class Lc {
|
|
|
16460
16461
|
return [];
|
|
16461
16462
|
}
|
|
16462
16463
|
}
|
|
16463
|
-
var
|
|
16464
|
-
class
|
|
16464
|
+
var vl = /* @__PURE__ */ ((r) => (r.SelectFrame = "SelectFrame", r.SelectImage = "SelectImage", r.Position = "Position", r))(vl || {});
|
|
16465
|
+
class El extends rt {
|
|
16465
16466
|
constructor(t, e, a) {
|
|
16466
16467
|
super(t, e, a);
|
|
16467
16468
|
const n = e.data;
|
|
16468
|
-
this.frameService = new
|
|
16469
|
+
this.frameService = new Sl(n.forceImageCover, n.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
|
|
16469
16470
|
}
|
|
16470
16471
|
selectVariant(t) {
|
|
16471
16472
|
const e = this.manager.getRegionElements(this.step.stepName);
|
|
@@ -16634,7 +16635,7 @@ class vl extends rt {
|
|
|
16634
16635
|
return this.manager.getStepStorage(this.step.stepName);
|
|
16635
16636
|
}
|
|
16636
16637
|
}
|
|
16637
|
-
const
|
|
16638
|
+
const Bl = y`
|
|
16638
16639
|
query GetLoggedInCustomer($email: String!) {
|
|
16639
16640
|
customer(emailAddress: $email) {
|
|
16640
16641
|
id
|
|
@@ -16677,21 +16678,21 @@ const El = y`
|
|
|
16677
16678
|
total
|
|
16678
16679
|
}
|
|
16679
16680
|
}
|
|
16680
|
-
`,
|
|
16681
|
+
`, bl = y`
|
|
16681
16682
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
16682
16683
|
transactionUpdate(id: $id, designName: $name) {
|
|
16683
16684
|
id
|
|
16684
16685
|
designName
|
|
16685
16686
|
}
|
|
16686
16687
|
}
|
|
16687
|
-
`,
|
|
16688
|
+
`, Il = y`
|
|
16688
16689
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
16689
16690
|
transactionDuplicate(id: $id, template: $template) {
|
|
16690
16691
|
id
|
|
16691
16692
|
workflowViewerLink
|
|
16692
16693
|
}
|
|
16693
16694
|
}
|
|
16694
|
-
`,
|
|
16695
|
+
`, Dl = y`
|
|
16695
16696
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
16696
16697
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
16697
16698
|
items {
|
|
@@ -16704,7 +16705,7 @@ const El = y`
|
|
|
16704
16705
|
total
|
|
16705
16706
|
}
|
|
16706
16707
|
}
|
|
16707
|
-
`,
|
|
16708
|
+
`, Pl = y`
|
|
16708
16709
|
query GetTransactionsForBundle($id: String!) {
|
|
16709
16710
|
bundles(ids: [$id]) {
|
|
16710
16711
|
id
|
|
@@ -16725,21 +16726,21 @@ const El = y`
|
|
|
16725
16726
|
}
|
|
16726
16727
|
}
|
|
16727
16728
|
}
|
|
16728
|
-
`,
|
|
16729
|
+
`, Fl = y`
|
|
16729
16730
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
16730
16731
|
bundleUpdate(id: $id, name: $name) {
|
|
16731
16732
|
id
|
|
16732
16733
|
name
|
|
16733
16734
|
}
|
|
16734
16735
|
}
|
|
16735
|
-
`,
|
|
16736
|
+
`, xl = y`
|
|
16736
16737
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
16737
16738
|
bundleDuplicate(id: $id, template: $template) {
|
|
16738
16739
|
id
|
|
16739
16740
|
workflowViewerLink
|
|
16740
16741
|
}
|
|
16741
16742
|
}
|
|
16742
|
-
`,
|
|
16743
|
+
`, kl = y`
|
|
16743
16744
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
16744
16745
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
16745
16746
|
items {
|
|
@@ -16752,43 +16753,43 @@ const El = y`
|
|
|
16752
16753
|
total
|
|
16753
16754
|
}
|
|
16754
16755
|
}
|
|
16755
|
-
`,
|
|
16756
|
-
mutation:
|
|
16756
|
+
`, zc = async (r, t, e) => await b.getShadowGraphqlClient().mutate({
|
|
16757
|
+
mutation: Fl,
|
|
16757
16758
|
errorPolicy: "all",
|
|
16758
16759
|
variables: {
|
|
16759
16760
|
id: r,
|
|
16760
16761
|
name: t
|
|
16761
16762
|
},
|
|
16762
16763
|
context: e
|
|
16763
|
-
}),
|
|
16764
|
-
mutation:
|
|
16764
|
+
}), Gc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16765
|
+
mutation: bl,
|
|
16765
16766
|
errorPolicy: "all",
|
|
16766
16767
|
variables: {
|
|
16767
16768
|
id: r,
|
|
16768
16769
|
name: t
|
|
16769
16770
|
}
|
|
16770
|
-
}),
|
|
16771
|
-
mutation:
|
|
16771
|
+
}), Wc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16772
|
+
mutation: xl,
|
|
16772
16773
|
errorPolicy: "all",
|
|
16773
16774
|
variables: {
|
|
16774
16775
|
id: r,
|
|
16775
16776
|
template: t
|
|
16776
16777
|
}
|
|
16777
|
-
}),
|
|
16778
|
-
mutation:
|
|
16778
|
+
}), jc = async (r, t) => await b.getShadowGraphqlClient().mutate({
|
|
16779
|
+
mutation: Il,
|
|
16779
16780
|
errorPolicy: "all",
|
|
16780
16781
|
variables: {
|
|
16781
16782
|
id: r,
|
|
16782
16783
|
template: t
|
|
16783
16784
|
}
|
|
16784
|
-
}),
|
|
16785
|
-
query:
|
|
16785
|
+
}), Hc = async (r) => (await b.getShadowGraphqlClient().query({
|
|
16786
|
+
query: Bl,
|
|
16786
16787
|
errorPolicy: "all",
|
|
16787
16788
|
variables: {
|
|
16788
16789
|
email: r
|
|
16789
16790
|
}
|
|
16790
|
-
})).data.customer,
|
|
16791
|
-
query:
|
|
16791
|
+
})).data.customer, qc = async (r, t, e) => await b.getShadowGraphqlClient().query({
|
|
16792
|
+
query: Dl,
|
|
16792
16793
|
errorPolicy: "all",
|
|
16793
16794
|
fetchPolicy: "no-cache",
|
|
16794
16795
|
variables: {
|
|
@@ -16796,15 +16797,15 @@ const El = y`
|
|
|
16796
16797
|
offset: e,
|
|
16797
16798
|
limit: t
|
|
16798
16799
|
}
|
|
16799
|
-
}),
|
|
16800
|
-
query:
|
|
16800
|
+
}), Yc = async (r, t) => await b.getShadowGraphqlClient().query({
|
|
16801
|
+
query: Pl,
|
|
16801
16802
|
errorPolicy: "all",
|
|
16802
16803
|
fetchPolicy: "no-cache",
|
|
16803
16804
|
variables: {
|
|
16804
16805
|
id: r
|
|
16805
16806
|
},
|
|
16806
16807
|
context: t
|
|
16807
|
-
}),
|
|
16808
|
+
}), Jc = async (r, t, e) => {
|
|
16808
16809
|
var n;
|
|
16809
16810
|
const a = await b.getShadowGraphqlClient().query({
|
|
16810
16811
|
query: Ia,
|
|
@@ -16828,7 +16829,7 @@ const El = y`
|
|
|
16828
16829
|
}
|
|
16829
16830
|
});
|
|
16830
16831
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16831
|
-
},
|
|
16832
|
+
}, Kc = async (r, t, e) => {
|
|
16832
16833
|
var n;
|
|
16833
16834
|
const a = await b.getShadowGraphqlClient().query({
|
|
16834
16835
|
query: Ia,
|
|
@@ -16852,7 +16853,7 @@ const El = y`
|
|
|
16852
16853
|
}
|
|
16853
16854
|
});
|
|
16854
16855
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16855
|
-
},
|
|
16856
|
+
}, _c = async (r, t, e) => {
|
|
16856
16857
|
var n;
|
|
16857
16858
|
const a = await b.getShadowGraphqlClient().query({
|
|
16858
16859
|
query: Ia,
|
|
@@ -16872,10 +16873,10 @@ const El = y`
|
|
|
16872
16873
|
}
|
|
16873
16874
|
});
|
|
16874
16875
|
return ((n = a == null ? void 0 : a.data.customerTransactionsFeed) == null ? void 0 : n.items) || [];
|
|
16875
|
-
},
|
|
16876
|
+
}, Xc = async (r, t, e) => {
|
|
16876
16877
|
var n;
|
|
16877
16878
|
const a = await b.getShadowGraphqlClient().query({
|
|
16878
|
-
query:
|
|
16879
|
+
query: kl,
|
|
16879
16880
|
errorPolicy: "all",
|
|
16880
16881
|
fetchPolicy: "no-cache",
|
|
16881
16882
|
variables: {
|
|
@@ -16896,7 +16897,7 @@ const El = y`
|
|
|
16896
16897
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
16897
16898
|
}
|
|
16898
16899
|
})();
|
|
16899
|
-
var
|
|
16900
|
+
var Ml = /* @__PURE__ */ ((r) => (r.Manual = "Manual", r.OnStart = "OnStart", r.OnQuit = "OnQuit", r.OnEnd = "OnEnd", r))(Ml || {}), Tl = /* @__PURE__ */ ((r) => (r.Email = "Email", r.FirstName = "FirstName", r.LastName = "LastName", r.Phone = "Phone", r.Apartment = "Apartment", r.City = "City", r.Country = "Country", r.OrganizationName = "OrganizationName", r.PostCode = "PostCode", r.State = "State", r.StreetAddress = "StreetAddress", r.DesignName = "DesignName", r.PurchaseOrder = "PurchaseOrder", r.DispatchDate = "DispatchDate", r.Stakeholders = "Stakeholders", r))(Tl || {}), K;
|
|
16900
16901
|
K = { __e: function(r, t, e, a) {
|
|
16901
16902
|
for (var n, i, s; t = t.__; )
|
|
16902
16903
|
if ((n = t.__c) && !n.__)
|
|
@@ -16909,7 +16910,7 @@ K = { __e: function(r, t, e, a) {
|
|
|
16909
16910
|
throw r;
|
|
16910
16911
|
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
|
|
16911
16912
|
var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
|
|
16912
|
-
function
|
|
16913
|
+
function Ql() {
|
|
16913
16914
|
for (var r; r = tr.shift(); )
|
|
16914
16915
|
if (r.__P && r.__H)
|
|
16915
16916
|
try {
|
|
@@ -16929,7 +16930,7 @@ K.__b = function(r) {
|
|
|
16929
16930
|
}, K.diffed = function(r) {
|
|
16930
16931
|
Xa && Xa(r);
|
|
16931
16932
|
var t = r.__c;
|
|
16932
|
-
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) ||
|
|
16933
|
+
t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Nl)(Ql)), t.__H.__.forEach(function(e) {
|
|
16933
16934
|
e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
|
|
16934
16935
|
})), qe = st = null;
|
|
16935
16936
|
}, K.__c = function(r, t) {
|
|
@@ -16956,7 +16957,7 @@ K.__b = function(r) {
|
|
|
16956
16957
|
}), e.__H = void 0, t && K.__e(t, e.__v));
|
|
16957
16958
|
};
|
|
16958
16959
|
var en = typeof requestAnimationFrame == "function";
|
|
16959
|
-
function
|
|
16960
|
+
function Nl(r) {
|
|
16960
16961
|
var t, e = function() {
|
|
16961
16962
|
clearTimeout(a), en && cancelAnimationFrame(t), setTimeout(r);
|
|
16962
16963
|
}, a = setTimeout(e, 100);
|
|
@@ -16972,35 +16973,35 @@ function la(r) {
|
|
|
16972
16973
|
}
|
|
16973
16974
|
export {
|
|
16974
16975
|
da as AddonHandle,
|
|
16975
|
-
|
|
16976
|
+
Qc as ArrayInput,
|
|
16976
16977
|
et as AspectType,
|
|
16977
16978
|
yt as AssetNotFoundError,
|
|
16978
16979
|
he as AssetType,
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16980
|
+
Fc as BringForwardCommand,
|
|
16981
|
+
Pc as BringToBackCommand,
|
|
16982
|
+
Dc as BringToFrontCommand,
|
|
16982
16983
|
mr as BundleDesignCreationCartAddMode,
|
|
16983
16984
|
R as CanvasCommand,
|
|
16984
16985
|
se as CollectionProduct,
|
|
16985
16986
|
Ha as ColorOptionGlobalPropertyHandle,
|
|
16986
16987
|
Ki as CommandContext,
|
|
16987
|
-
|
|
16988
|
-
|
|
16988
|
+
Tl as ConversionDataType,
|
|
16989
|
+
Ml as ConversionLocation,
|
|
16989
16990
|
W as CreateElementCommand,
|
|
16990
16991
|
Un as CreateLayoutCommand,
|
|
16991
16992
|
vt as DeleteElementCommand,
|
|
16992
16993
|
Ao as DigitalContentStepHandle,
|
|
16993
16994
|
Go as FileUploadGlobalPropertyHandle,
|
|
16994
16995
|
oe as FlowExecutionNodeResult,
|
|
16995
|
-
|
|
16996
|
-
|
|
16996
|
+
ll as FlowExecutionResult,
|
|
16997
|
+
ol as FlowService,
|
|
16997
16998
|
ts as FontAlignmentCommand,
|
|
16998
16999
|
Xi as FontColorCommand,
|
|
16999
17000
|
Zi as FontSizeCommand,
|
|
17000
17001
|
Va as FontSourceCommand,
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17002
|
+
Sl as FrameService,
|
|
17003
|
+
vl as FrameStep,
|
|
17004
|
+
El as FrameStepHandle,
|
|
17004
17005
|
Ba as GlobalPropertyHandle,
|
|
17005
17006
|
O as GroupCommand,
|
|
17006
17007
|
ao as IllustrationStepHandle,
|
|
@@ -17008,37 +17009,38 @@ export {
|
|
|
17008
17009
|
co as InformationStepHandle,
|
|
17009
17010
|
qa as IntegrationProduct,
|
|
17010
17011
|
fr as IntegrationType,
|
|
17011
|
-
|
|
17012
|
+
vc as LayoutElementFactory,
|
|
17012
17013
|
T as LayoutElementType,
|
|
17013
17014
|
Y as LayoutNotFoundError,
|
|
17014
17015
|
Gt as LayoutRenderingPurpose,
|
|
17015
17016
|
no as MaterialStepHandle,
|
|
17016
17017
|
fe as MisconfigurationError,
|
|
17017
|
-
|
|
17018
|
+
Vc as MockWorkflowManager,
|
|
17018
17019
|
ro as ModelStepHandle,
|
|
17019
17020
|
uo as ModuleStepHandle,
|
|
17020
|
-
|
|
17021
|
+
Ec as MoveCommand,
|
|
17021
17022
|
Xn as ObjectInput,
|
|
17022
|
-
|
|
17023
|
+
cl as ObjectInputType,
|
|
17023
17024
|
_n as OptionGlobalPropertyHandle,
|
|
17024
17025
|
ge as OptionNotFoundError,
|
|
17025
17026
|
Dt as ParseError,
|
|
17026
17027
|
io as PictureStepHandle,
|
|
17027
17028
|
pr as ProductCameraRig,
|
|
17028
|
-
|
|
17029
|
+
Zo as ProductCollection,
|
|
17030
|
+
Xo as ProductCollectionProductSortKey,
|
|
17029
17031
|
zt as ProductWorkflow,
|
|
17030
17032
|
Ht as PromiseCache,
|
|
17031
17033
|
Pn as PromiseQueue,
|
|
17032
17034
|
so as QuestionStepHandle,
|
|
17033
17035
|
Dn as QueueablePromise,
|
|
17034
|
-
|
|
17036
|
+
bc as ResizeCommand,
|
|
17035
17037
|
Wt as ResourceNotFoundError,
|
|
17036
|
-
|
|
17038
|
+
Bc as RotateCommand,
|
|
17037
17039
|
H as ScaleAxis,
|
|
17038
|
-
|
|
17040
|
+
xc as SendBackwardsCommand,
|
|
17039
17041
|
oo as ShapeStepHandle,
|
|
17040
17042
|
gr as ShareActionType,
|
|
17041
|
-
|
|
17043
|
+
Rc as SpiffCommerceClient,
|
|
17042
17044
|
me as StakeholderType,
|
|
17043
17045
|
hr as StepAspectType,
|
|
17044
17046
|
rt as StepHandle,
|
|
@@ -17046,85 +17048,85 @@ export {
|
|
|
17046
17048
|
kt as TextAlgorithm,
|
|
17047
17049
|
ns as TextChangeCommand,
|
|
17048
17050
|
Wo as TextGlobalPropertyHandle,
|
|
17049
|
-
|
|
17051
|
+
Tc as TextInput,
|
|
17050
17052
|
lo as TextStepHandle,
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
+
el as Transform,
|
|
17054
|
+
tl as TransformCollection,
|
|
17053
17055
|
z as UnhandledBehaviorError,
|
|
17054
17056
|
Cr as UnitOfMeasurement,
|
|
17055
|
-
|
|
17057
|
+
Ic as UpdateImageSourceCommand,
|
|
17056
17058
|
it as Variant,
|
|
17057
17059
|
Bo as WorkflowExperienceEventType,
|
|
17058
17060
|
bo as WorkflowExperienceImpl,
|
|
17059
17061
|
U as assetService,
|
|
17060
17062
|
zr as browserColorToHex,
|
|
17061
|
-
|
|
17063
|
+
yc as cmPerPixel,
|
|
17062
17064
|
Co as createDesign,
|
|
17063
|
-
|
|
17064
|
-
|
|
17065
|
+
pc as currentDirection,
|
|
17066
|
+
ic as dataUrlFromExternalUrl,
|
|
17065
17067
|
je as designService,
|
|
17066
17068
|
Ae as determineCorrectFontSizeAndLines,
|
|
17067
17069
|
Ln as digitalContentStepService,
|
|
17068
17070
|
dt as domParser,
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
+
Wc as duplicateBundle,
|
|
17072
|
+
jc as duplicateTransaction,
|
|
17071
17073
|
at as fetchAsString,
|
|
17072
|
-
|
|
17074
|
+
dc as findAngle,
|
|
17073
17075
|
$ as findElement,
|
|
17074
|
-
|
|
17076
|
+
lc as findPmsColors,
|
|
17075
17077
|
$t as frameDataCache,
|
|
17076
17078
|
pt as frameStepService,
|
|
17077
17079
|
Q as generate,
|
|
17078
17080
|
Ro as generateCommands,
|
|
17079
17081
|
ot as generateSVGWithUnknownColors,
|
|
17080
|
-
|
|
17082
|
+
Mc as generateStateFromDesignInputSteps,
|
|
17081
17083
|
De as getAttributesFromArrayBuffer,
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17084
|
+
cc as getAxisAlignedBoundingBox,
|
|
17085
|
+
yl as getBoundedOffsets,
|
|
17086
|
+
$c as getBundleThemeConfiguration,
|
|
17087
|
+
Hc as getCustomer,
|
|
17088
|
+
qc as getCustomerBundles,
|
|
17089
|
+
Cc as getElementVertices,
|
|
17088
17090
|
xe as getFrameData,
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
|
|
17095
|
-
|
|
17091
|
+
wl as getIntegration,
|
|
17092
|
+
gc as getNEPoint,
|
|
17093
|
+
mc as getNWPoint,
|
|
17094
|
+
Kc as getOrderedTransactions,
|
|
17095
|
+
Uc as getOverrideThemeConfiguration,
|
|
17096
|
+
hc as getPointOfRotation,
|
|
17097
|
+
fc as getSEPoint,
|
|
17096
17098
|
wa as getSvgElement,
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17099
|
+
Xc as getTemplateBundles,
|
|
17100
|
+
_c as getTemplateTransactions,
|
|
17101
|
+
Oc as getTransaction,
|
|
17102
|
+
Lc as getTransactionThemeConfiguration,
|
|
17103
|
+
Yc as getTransactionsForBundle,
|
|
17104
|
+
uc as getTrueCoordinates,
|
|
17105
|
+
Jc as getUnorderedTransactions,
|
|
17106
|
+
Nc as getWorkflow,
|
|
17105
17107
|
Zn as getWorkflows,
|
|
17106
17108
|
b as graphQlManager,
|
|
17107
17109
|
de as illustrationStepService,
|
|
17108
|
-
|
|
17110
|
+
Ac as isCloseToValue,
|
|
17109
17111
|
Tt as loadFont,
|
|
17110
|
-
|
|
17112
|
+
oc as matchHexToPms,
|
|
17111
17113
|
Vn as materialStepService,
|
|
17112
17114
|
_o as metafieldManager,
|
|
17113
|
-
|
|
17115
|
+
wc as mmPerPixel,
|
|
17114
17116
|
zn as modelStepService,
|
|
17115
17117
|
fa as modifySVGColors,
|
|
17116
17118
|
Gn as moduleStepService,
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
+
zc as nameBundle,
|
|
17120
|
+
Gc as nameTransaction,
|
|
17119
17121
|
X as optionService,
|
|
17120
|
-
|
|
17122
|
+
Sc as outlineFontsInSvg,
|
|
17121
17123
|
At as patternImageDataCache,
|
|
17122
17124
|
k as persistenceService,
|
|
17123
17125
|
Wn as pictureStepService,
|
|
17124
|
-
|
|
17126
|
+
sc as pmsToRgb,
|
|
17125
17127
|
jn as questionStepService,
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
+
rc as registerFetchImplementation,
|
|
17129
|
+
nc as registerWindowImplementation,
|
|
17128
17130
|
$a as rehydrateSerializedLayout,
|
|
17129
17131
|
$r as rgbToPms,
|
|
17130
17132
|
re as rotateAroundPoint,
|
|
@@ -17134,7 +17136,7 @@ export {
|
|
|
17134
17136
|
Lt as shapeStepService,
|
|
17135
17137
|
is as shortenUrl,
|
|
17136
17138
|
wt as spiffCoreConfiguration,
|
|
17137
|
-
|
|
17139
|
+
kc as stepAspectValuesToDesignInputSteps,
|
|
17138
17140
|
Qa as svgColorValueToDefinition,
|
|
17139
17141
|
Rn as svgStringDimensions,
|
|
17140
17142
|
Aa as svgToDataUrl,
|