@expedite-commerce/expedite-components 0.2.25 → 0.2.26
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.
|
@@ -28772,6 +28772,10 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
28772
28772
|
id: {
|
|
28773
28773
|
type: String,
|
|
28774
28774
|
required: !1
|
|
28775
|
+
},
|
|
28776
|
+
isPreview: {
|
|
28777
|
+
type: Boolean,
|
|
28778
|
+
default: !1
|
|
28775
28779
|
}
|
|
28776
28780
|
},
|
|
28777
28781
|
emits: ["counts"],
|
|
@@ -28968,7 +28972,7 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
28968
28972
|
loading: E.value,
|
|
28969
28973
|
del: p.value,
|
|
28970
28974
|
configure: h.value,
|
|
28971
|
-
disabled: k.value,
|
|
28975
|
+
disabled: k.value || e.isPreview,
|
|
28972
28976
|
"loading-row-id": b.value,
|
|
28973
28977
|
"del-records": M.value,
|
|
28974
28978
|
attribute: c.value,
|
|
@@ -28992,7 +28996,7 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
28992
28996
|
loading: E.value,
|
|
28993
28997
|
del: p.value,
|
|
28994
28998
|
configure: h.value,
|
|
28995
|
-
disabled: k.value,
|
|
28999
|
+
disabled: k.value || e.isPreview,
|
|
28996
29000
|
"loading-row-id": b.value,
|
|
28997
29001
|
"del-records": M.value,
|
|
28998
29002
|
attribute: c.value,
|
|
@@ -29029,7 +29033,7 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
29029
29033
|
loading: E.value,
|
|
29030
29034
|
del: p.value,
|
|
29031
29035
|
configure: h.value,
|
|
29032
|
-
disabled: k.value,
|
|
29036
|
+
disabled: k.value || e.isPreview,
|
|
29033
29037
|
"loading-row-id": b.value,
|
|
29034
29038
|
"del-records": M.value,
|
|
29035
29039
|
attribute: c.value,
|
|
@@ -29083,7 +29087,7 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
29083
29087
|
loading: E.value,
|
|
29084
29088
|
del: p.value,
|
|
29085
29089
|
configure: h.value,
|
|
29086
|
-
disabled: k.value,
|
|
29090
|
+
disabled: k.value || e.isPreview,
|
|
29087
29091
|
"loading-row-id": b.value,
|
|
29088
29092
|
"del-records": M.value,
|
|
29089
29093
|
attribute: c.value,
|
|
@@ -29122,7 +29126,7 @@ const Br = /* @__PURE__ */ Ie(Vp, [["render", Jp], ["__scopeId", "data-v-888eb5f
|
|
|
29122
29126
|
]);
|
|
29123
29127
|
};
|
|
29124
29128
|
}
|
|
29125
|
-
}, U3 = /* @__PURE__ */ Ie(H3, [["__scopeId", "data-v-
|
|
29129
|
+
}, U3 = /* @__PURE__ */ Ie(H3, [["__scopeId", "data-v-be33ba29"]]), z3 = { class: "detail-section" }, X3 = {
|
|
29126
29130
|
key: 0,
|
|
29127
29131
|
class: "selectedtext sm:hidden"
|
|
29128
29132
|
}, K3 = { class: "expand material-icons-outlined" }, Q3 = {
|
|
@@ -29456,6 +29460,10 @@ const Pi = /* @__PURE__ */ Ie(lv, [["render", uv], ["__scopeId", "data-v-7428ebd
|
|
|
29456
29460
|
id: {
|
|
29457
29461
|
type: String,
|
|
29458
29462
|
required: !0
|
|
29463
|
+
},
|
|
29464
|
+
isPreview: {
|
|
29465
|
+
type: Boolean,
|
|
29466
|
+
default: !1
|
|
29459
29467
|
}
|
|
29460
29468
|
},
|
|
29461
29469
|
setup(e) {
|
|
@@ -29504,20 +29512,20 @@ const Pi = /* @__PURE__ */ Ie(lv, [["render", uv], ["__scopeId", "data-v-7428ebd
|
|
|
29504
29512
|
d[1] || (d[1] = (k) => r.value = !1)
|
|
29505
29513
|
],
|
|
29506
29514
|
class: "promocode-input_box",
|
|
29507
|
-
disabled: r.value,
|
|
29515
|
+
disabled: r.value || e.isPreview,
|
|
29508
29516
|
error: y.value
|
|
29509
29517
|
}, null, 8, ["modelValue", "disabled", "error"]),
|
|
29510
29518
|
u.value ? (N(), pe(zr, { key: 0 })) : (N(), V(ye, { key: 1 }, [
|
|
29511
29519
|
r.value ? (N(), pe(Pi, {
|
|
29512
29520
|
key: 1,
|
|
29513
29521
|
theme: (_ = e.fields.removeButton) == null ? void 0 : _.style.theme,
|
|
29514
|
-
disabled: s.value.length < 1,
|
|
29522
|
+
disabled: s.value.length < 1 || e.isPreview,
|
|
29515
29523
|
text: (E = e.fields.removeButton) == null ? void 0 : E.title,
|
|
29516
29524
|
onClick: f
|
|
29517
29525
|
}, null, 8, ["theme", "disabled", "text"])) : (N(), pe(Pi, {
|
|
29518
29526
|
key: 0,
|
|
29519
29527
|
theme: (b = e.fields.applyButton) == null ? void 0 : b.style.theme,
|
|
29520
|
-
disabled: s.value.length < 1,
|
|
29528
|
+
disabled: s.value.length < 1 || e.isPreview,
|
|
29521
29529
|
text: (x = e.fields.applyButton) == null ? void 0 : x.title,
|
|
29522
29530
|
onClick: c
|
|
29523
29531
|
}, null, 8, ["theme", "disabled", "text"]))
|
|
@@ -29527,7 +29535,7 @@ const Pi = /* @__PURE__ */ Ie(lv, [["render", uv], ["__scopeId", "data-v-7428ebd
|
|
|
29527
29535
|
], 512);
|
|
29528
29536
|
};
|
|
29529
29537
|
}
|
|
29530
|
-
}, pv = /* @__PURE__ */ Ie(hv, [["__scopeId", "data-v-
|
|
29538
|
+
}, pv = /* @__PURE__ */ Ie(hv, [["__scopeId", "data-v-788d5034"]]), qs = {
|
|
29531
29539
|
"af-ZA": "yyyy/MM/dd",
|
|
29532
29540
|
"am-ET": "dd/MM/yyyy",
|
|
29533
29541
|
"ar-AE": "dd/MM/yyyy",
|
|
@@ -30418,6 +30426,10 @@ const to = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), mv = ["data-test-id
|
|
|
30418
30426
|
id: {
|
|
30419
30427
|
type: String,
|
|
30420
30428
|
default: ""
|
|
30429
|
+
},
|
|
30430
|
+
isPreview: {
|
|
30431
|
+
type: Boolean,
|
|
30432
|
+
default: !1
|
|
30421
30433
|
}
|
|
30422
30434
|
},
|
|
30423
30435
|
setup(e) {
|
|
@@ -30428,7 +30440,7 @@ const to = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), mv = ["data-test-id
|
|
|
30428
30440
|
var h, c;
|
|
30429
30441
|
return (c = (h = r.fields) == null ? void 0 : h.actions) == null ? void 0 : c.filter((g) => s.value ? g.action !== "ACTIVATE" : g.action !== "SAVE_FOR_LATER");
|
|
30430
30442
|
}), y = async (h) => {
|
|
30431
|
-
h.spinner = !0, h.action === "CHECKOUT" || (h.action === "SAVE_FOR_LATER" ? await a.startNewCart() : h.action === "ACTIVATE" && await a.makeActiveCart()), h.spinner = !1, p(h.targetTemplateId);
|
|
30443
|
+
r.isPreview || (h.spinner = !0, h.action === "CHECKOUT" || (h.action === "SAVE_FOR_LATER" ? await a.startNewCart() : h.action === "ACTIVATE" && await a.makeActiveCart()), h.spinner = !1, p(h.targetTemplateId));
|
|
30432
30444
|
};
|
|
30433
30445
|
function p(h) {
|
|
30434
30446
|
h && n.push({ path: "/", query: Object.assign({ pageId: h }) });
|
|
@@ -30441,12 +30453,13 @@ const to = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), mv = ["data-test-id
|
|
|
30441
30453
|
key: 0,
|
|
30442
30454
|
theme: g.style.theme,
|
|
30443
30455
|
text: g.label,
|
|
30456
|
+
disabled: e.isPreview,
|
|
30444
30457
|
onClick: (f) => y(g)
|
|
30445
|
-
}, null, 8, ["theme", "text", "onClick"]))
|
|
30458
|
+
}, null, 8, ["theme", "text", "disabled", "onClick"]))
|
|
30446
30459
|
], 64))), 128))
|
|
30447
30460
|
]));
|
|
30448
30461
|
}
|
|
30449
|
-
}, cy = /* @__PURE__ */ Ie(sy, [["__scopeId", "data-v-
|
|
30462
|
+
}, cy = /* @__PURE__ */ Ie(sy, [["__scopeId", "data-v-6f38ab38"]]), Ti = function(e, a) {
|
|
30450
30463
|
const t = {};
|
|
30451
30464
|
t.sectionStyle = {}, t.blockStyle = {};
|
|
30452
30465
|
const { visiblity: n } = e;
|
|
@@ -30483,10 +30496,6 @@ function uy(e, a) {
|
|
|
30483
30496
|
const dy = ["data-sid", "data-sname"], fy = ["data-bid", "data-bname"], hy = ["page-block-id"], py = ["page-block-id"], vy = ["page-block-id"], yy = ["page-block-id"], my = ["page-block-id"], gy = ["page-block-id"], $s = {
|
|
30484
30497
|
__name: "TemplateRenderer",
|
|
30485
30498
|
props: {
|
|
30486
|
-
isPreview: {
|
|
30487
|
-
type: Object,
|
|
30488
|
-
required: !0
|
|
30489
|
-
},
|
|
30490
30499
|
onCatalogCountUpdate: {
|
|
30491
30500
|
type: Function,
|
|
30492
30501
|
default: null
|
|
@@ -30562,8 +30571,9 @@ const dy = ["data-sid", "data-sname"], fy = ["data-bid", "data-bname"], hy = ["p
|
|
|
30562
30571
|
columns: i.fields.columns,
|
|
30563
30572
|
footer: i.fields.footer,
|
|
30564
30573
|
fields: i.fields,
|
|
30565
|
-
configuration: i.configuration
|
|
30566
|
-
|
|
30574
|
+
configuration: i.configuration,
|
|
30575
|
+
"is-preview": e.isPreview
|
|
30576
|
+
}, null, 8, ["id", "header", "columns", "footer", "fields", "configuration", "is-preview"])
|
|
30567
30577
|
], 8, hy)) : i.componentName === "quoteSummary" && Oe(r).quoteId ? (N(), V("div", {
|
|
30568
30578
|
key: 1,
|
|
30569
30579
|
"page-block-id": i.Id,
|
|
@@ -30583,8 +30593,9 @@ const dy = ["data-sid", "data-sname"], fy = ["data-bid", "data-bname"], hy = ["p
|
|
|
30583
30593
|
oe(pv, {
|
|
30584
30594
|
id: i.Id,
|
|
30585
30595
|
fields: i.fields,
|
|
30586
|
-
configuration: i.configuration
|
|
30587
|
-
|
|
30596
|
+
configuration: i.configuration,
|
|
30597
|
+
"is-preview": e.isPreview
|
|
30598
|
+
}, null, 8, ["id", "fields", "configuration", "is-preview"])
|
|
30588
30599
|
], 8, vy)) : i.componentName === "customForm" && Oe(r).quoteId ? (N(), V("div", {
|
|
30589
30600
|
key: 3,
|
|
30590
30601
|
"page-block-id": i.Id,
|
|
@@ -30605,8 +30616,8 @@ const dy = ["data-sid", "data-sname"], fy = ["data-bid", "data-bname"], hy = ["p
|
|
|
30605
30616
|
id: i.Id,
|
|
30606
30617
|
configuration: i.configuration,
|
|
30607
30618
|
fields: i.fields,
|
|
30608
|
-
"
|
|
30609
|
-
}, null, 8, ["id", "configuration", "fields", "
|
|
30619
|
+
"is-preview": e.isPreview
|
|
30620
|
+
}, null, 8, ["id", "configuration", "fields", "is-preview"])
|
|
30610
30621
|
], 8, my)) : i.componentName === "catalogBlock" ? (N(), V("div", {
|
|
30611
30622
|
key: 5,
|
|
30612
30623
|
"page-block-id": i.Id,
|