expedite-components 0.5.6 → 0.5.7
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.
|
@@ -1187,7 +1187,7 @@ function t1(e, n) {
|
|
|
1187
1187
|
);
|
|
1188
1188
|
}
|
|
1189
1189
|
const Vi = {};
|
|
1190
|
-
function
|
|
1190
|
+
function Je(e, n, t) {
|
|
1191
1191
|
return vl(e, n, t);
|
|
1192
1192
|
}
|
|
1193
1193
|
function vl(e, n, {
|
|
@@ -1435,7 +1435,7 @@ function qe(e, n, t, r) {
|
|
|
1435
1435
|
i = [];
|
|
1436
1436
|
return t && (t[r] = i), i;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Ye(e, n, t = {}, r, i) {
|
|
1439
1439
|
if (rt.isCE || rt.parent && ti(rt.parent) && rt.parent.isCE)
|
|
1440
1440
|
return n !== "default" && (t.name = n), he("slot", t, r && r());
|
|
1441
1441
|
let o = e[n];
|
|
@@ -1662,15 +1662,15 @@ function A0(e, n, t, r) {
|
|
|
1662
1662
|
const i = r.includes(".") ? x0(t, r) : () => t[r];
|
|
1663
1663
|
if (it(e)) {
|
|
1664
1664
|
const o = n[e];
|
|
1665
|
-
Ne(o) &&
|
|
1665
|
+
Ne(o) && Je(i, o);
|
|
1666
1666
|
} else if (Ne(e))
|
|
1667
|
-
|
|
1667
|
+
Je(i, e.bind(t));
|
|
1668
1668
|
else if (Ge(e))
|
|
1669
1669
|
if (Te(e))
|
|
1670
1670
|
e.forEach((o) => A0(o, n, t, r));
|
|
1671
1671
|
else {
|
|
1672
1672
|
const o = Ne(e.handler) ? e.handler.bind(t) : n[e.handler];
|
|
1673
|
-
Ne(o) &&
|
|
1673
|
+
Ne(o) && Je(i, o, e);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
function gl(e) {
|
|
@@ -4249,7 +4249,7 @@ function z0(e, n, t = {}, r, i, o) {
|
|
|
4249
4249
|
$patch: d,
|
|
4250
4250
|
$reset: m,
|
|
4251
4251
|
$subscribe(I, B = {}) {
|
|
4252
|
-
const O = Ac(v, I, B.detached, () => E()), E = a.run(() =>
|
|
4252
|
+
const O = Ac(v, I, B.detached, () => E()), E = a.run(() => Je(() => r.state.value[e], (k) => {
|
|
4253
4253
|
(B.flush === "sync" ? c : f) && I({
|
|
4254
4254
|
storeId: e,
|
|
4255
4255
|
type: ii.direct,
|
|
@@ -4393,7 +4393,7 @@ const Ze = /* @__PURE__ */ Re(I2, [["render", R2], ["__scopeId", "data-v-480610f
|
|
|
4393
4393
|
ref_key: "containerRef",
|
|
4394
4394
|
ref: t
|
|
4395
4395
|
}, [
|
|
4396
|
-
|
|
4396
|
+
Ye(i.$slots, "default")
|
|
4397
4397
|
], 512));
|
|
4398
4398
|
}
|
|
4399
4399
|
}, L2 = ["data-test-id"], N2 = ["data-test-id"], F2 = ["data-test-id"], P2 = ["data-test-id"], M2 = ["data-test-id"], q2 = ["data-test-id"], $2 = ["data-test-id"], j2 = ["data-test-id"], H2 = {
|
|
@@ -4461,20 +4461,20 @@ const Ze = /* @__PURE__ */ Re(I2, [["render", R2], ["__scopeId", "data-v-480610f
|
|
|
4461
4461
|
class: "widget-upload__heading",
|
|
4462
4462
|
"data-test-id": `${e.dataTestId}-title`
|
|
4463
4463
|
}, xe(e.title), 9, q2),
|
|
4464
|
-
|
|
4464
|
+
Ye(n.$slots, "header-action", {}, void 0, !0)
|
|
4465
4465
|
], 12, M2)) : ge("", !0),
|
|
4466
4466
|
C("div", {
|
|
4467
4467
|
class: "modal-container__content",
|
|
4468
4468
|
style: Ke(e.hasTabs ? "overflow: visible" : ""),
|
|
4469
4469
|
"data-test-id": `${e.dataTestId}-content`
|
|
4470
4470
|
}, [
|
|
4471
|
-
|
|
4471
|
+
Ye(n.$slots, "content", {}, void 0, !0)
|
|
4472
4472
|
], 12, $2),
|
|
4473
4473
|
C("div", {
|
|
4474
4474
|
class: "modal-container__action",
|
|
4475
4475
|
"data-test-id": `${e.dataTestId}-actions`
|
|
4476
4476
|
}, [
|
|
4477
|
-
|
|
4477
|
+
Ye(n.$slots, "action", {}, void 0, !0)
|
|
4478
4478
|
], 8, j2)
|
|
4479
4479
|
], 12, F2)
|
|
4480
4480
|
], 8, N2)
|
|
@@ -4555,12 +4555,12 @@ const Ze = /* @__PURE__ */ Re(I2, [["render", R2], ["__scopeId", "data-v-480610f
|
|
|
4555
4555
|
])
|
|
4556
4556
|
]),
|
|
4557
4557
|
r.$slots.content ? (V(), Q("div", G2, [
|
|
4558
|
-
|
|
4558
|
+
Ye(r.$slots, "content")
|
|
4559
4559
|
])) : (V(), Q("div", J2, [
|
|
4560
|
-
|
|
4560
|
+
Ye(r.$slots, "default")
|
|
4561
4561
|
])),
|
|
4562
4562
|
e.footer ? (V(), Q("div", Y2, [
|
|
4563
|
-
|
|
4563
|
+
Ye(r.$slots, "footer")
|
|
4564
4564
|
])) : ge("", !0)
|
|
4565
4565
|
])
|
|
4566
4566
|
]),
|
|
@@ -4650,7 +4650,7 @@ function nh(e, n, t, r, i, o) {
|
|
|
4650
4650
|
}), {
|
|
4651
4651
|
default: Ve(() => [
|
|
4652
4652
|
C("span", th, [
|
|
4653
|
-
|
|
4653
|
+
Ye(e.$slots, "default", {}, () => [
|
|
4654
4654
|
Fe(xe(t.text), 1)
|
|
4655
4655
|
], !0)
|
|
4656
4656
|
], 512),
|
|
@@ -8392,7 +8392,7 @@ const ja = {
|
|
|
8392
8392
|
const P = Array.from(c.value.values()).map((w) => w.sectionName);
|
|
8393
8393
|
return k5(P);
|
|
8394
8394
|
});
|
|
8395
|
-
|
|
8395
|
+
Je(a, () => {
|
|
8396
8396
|
u.value.template || A();
|
|
8397
8397
|
});
|
|
8398
8398
|
function m() {
|
|
@@ -10836,7 +10836,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10836
10836
|
w(G), (I.value.has(G.itemId) || G.relationshipInfo.relationship === "Kit") && Z.selected.push(G.itemId);
|
|
10837
10837
|
});
|
|
10838
10838
|
});
|
|
10839
|
-
}), u.value = JSON.parse(JSON.stringify(s.value));
|
|
10839
|
+
}), s.value = { ...s.value }, u.value = JSON.parse(JSON.stringify(s.value));
|
|
10840
10840
|
}
|
|
10841
10841
|
async function W() {
|
|
10842
10842
|
try {
|
|
@@ -10868,7 +10868,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10868
10868
|
}), console.info("rulesByPublishKey", Z), w(j), j.categoryOptions.forEach((G) => {
|
|
10869
10869
|
G.key = G.category.toLowerCase().replace(/\s+/g, "-").replace(/[&]/g, ""), G.itemTypes.forEach((N) => {
|
|
10870
10870
|
N.selected = [], N.numberOfColumns || (N.numberOfColumns = 1), N.numberOfColumns > 1 && (N.lightboxAttributes = !0), N.maxNumber || (N.maxNumber = 100), N.minNumber || (N.minNumber = 0), N.maxQuantity || (N.maxQuantity = 1e4), N.minQuantity || (N.minQuantity = 1), N.maxNumber === 1 ? (N.isRadio = !0, N.minMessage = "Please select 1 option", N.maxMessage = "", N.isKit = N.options.some((M) => M.relationshipInfo.relationship === "Kit")) : (N.minMessage = `Minimum of ${N.minNumber} selection${N.minNumber !== 1 ? "s" : ""} required`, N.maxMessage = `Maximum of ${N.maxNumber} selection${N.maxNumber !== 1 ? "s" : ""} allowed`), N.options.forEach((M) => {
|
|
10871
|
-
G.showImage = G.showImage || !!M.defaultImageURL, M.showAttributesModal = !1, M.calculateRules = Z.has("option." + M.publishKey),
|
|
10871
|
+
G.showImage = G.showImage || !!M.defaultImageURL, M.showAttributesModal = !1, M.calculateRules = Z.has("option." + M.publishKey), M.qty = N.minQuantity || 1, M.getTags = () => (M.attributes = M.attributes || [], M.attributes.filter((te) => te.value !== null && te.value !== "").map((te) => ({
|
|
10872
10872
|
label: te.label,
|
|
10873
10873
|
value: te.value
|
|
10874
10874
|
}))), Object.defineProperty(M, "isDisabled", {
|
|
@@ -10916,7 +10916,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10916
10916
|
}, Z = await e.value.getLineItems({ request: JSON.stringify(j) });
|
|
10917
10917
|
return (Z.data.products || []).forEach((N) => {
|
|
10918
10918
|
const M = N.productLineItem;
|
|
10919
|
-
M.Id === a.value ? c.value = N : v.value.push(M);
|
|
10919
|
+
M.Id === a.value ? c.value = { ...N } : v.value.push(M);
|
|
10920
10920
|
}), console.info("lineItem.value", c.value), console.info("configurableLineItems.value", v.value), d.value.lineItem = !1, Z;
|
|
10921
10921
|
} catch (j) {
|
|
10922
10922
|
return console.info("error", j.message), d.value.lineItem = !1, !1;
|
|
@@ -11329,7 +11329,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11329
11329
|
}]),
|
|
11330
11330
|
"data-test-id": e.dataTestId
|
|
11331
11331
|
}, [
|
|
11332
|
-
|
|
11332
|
+
Ye(n.$slots, "default", {}, void 0, !0)
|
|
11333
11333
|
], 10, F4));
|
|
11334
11334
|
}
|
|
11335
11335
|
}, M4 = /* @__PURE__ */ Re(P4, [["__scopeId", "data-v-c7f05fa0"]]), q4 = ["data-test-id"], $4 = ["data-test-id"], j4 = ["data-test-id", "onClick"], H4 = ["data-test-id"], V4 = {
|
|
@@ -11421,9 +11421,16 @@ const xn = Et("comConfigurator", () => {
|
|
|
11421
11421
|
const b = Number(x);
|
|
11422
11422
|
return Number.isFinite(b) ? b : NaN;
|
|
11423
11423
|
}, u = ne(null), f = ne(t.value ?? i.value), c = (x) => {
|
|
11424
|
-
|
|
11424
|
+
const b = a(x, i.value, o.value);
|
|
11425
|
+
f.value !== b && (f.value = b, u.value = null);
|
|
11425
11426
|
};
|
|
11426
|
-
|
|
11427
|
+
Je(
|
|
11428
|
+
() => t.value,
|
|
11429
|
+
(x) => {
|
|
11430
|
+
x != null ? c(x) : (f.value = i.value, u.value = null);
|
|
11431
|
+
},
|
|
11432
|
+
{ immediate: !0 }
|
|
11433
|
+
);
|
|
11427
11434
|
const v = me(() => f.value), l = me(() => u.value != null ? u.value : String(v.value)), h = me(() => t.disabled || v.value <= i.value), p = me(() => t.disabled || v.value >= o.value);
|
|
11428
11435
|
function g(x) {
|
|
11429
11436
|
x !== t.value && (f.value = x, r("update:value", x), r("change", x));
|
|
@@ -11605,7 +11612,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11605
11612
|
])) : ge("", !0)
|
|
11606
11613
|
]),
|
|
11607
11614
|
C("div", u6, [
|
|
11608
|
-
|
|
11615
|
+
Ye(n.$slots, "default")
|
|
11609
11616
|
])
|
|
11610
11617
|
]));
|
|
11611
11618
|
}
|
|
@@ -11622,7 +11629,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11622
11629
|
let r = null;
|
|
11623
11630
|
return qt(() => {
|
|
11624
11631
|
t.value && !r && (r = t.value.attachShadow({ mode: "open" }), r.innerHTML = n.content);
|
|
11625
|
-
}),
|
|
11632
|
+
}), Je(
|
|
11626
11633
|
() => n.content,
|
|
11627
11634
|
(i) => {
|
|
11628
11635
|
r && (r.innerHTML = i);
|
|
@@ -11783,7 +11790,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11783
11790
|
style: "currency",
|
|
11784
11791
|
currency: "USD"
|
|
11785
11792
|
}).format(parseFloat(_)), y = (_) => !_ || isNaN(_) ? "0" : new Intl.NumberFormat("en-US").format(parseFloat(_));
|
|
11786
|
-
return
|
|
11793
|
+
return Je(
|
|
11787
11794
|
() => r.modelValue,
|
|
11788
11795
|
(_) => {
|
|
11789
11796
|
o.value || (s.value = _);
|
|
@@ -11927,7 +11934,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11927
11934
|
mn(() => {
|
|
11928
11935
|
h();
|
|
11929
11936
|
});
|
|
11930
|
-
}),
|
|
11937
|
+
}), Je(
|
|
11931
11938
|
() => t.tags,
|
|
11932
11939
|
() => {
|
|
11933
11940
|
mn(() => {
|
|
@@ -11996,7 +12003,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11996
12003
|
}, null, 8, ["modelValue", "data-test-id"])
|
|
11997
12004
|
]),
|
|
11998
12005
|
C("div", q6, [
|
|
11999
|
-
|
|
12006
|
+
Ye(p.$slots, "selection-control", {}, void 0, !0)
|
|
12000
12007
|
])
|
|
12001
12008
|
])
|
|
12002
12009
|
]),
|
|
@@ -12065,7 +12072,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
12065
12072
|
C("p", J6, xe(e.item.publishKey) + " :: " + xe(e.item.calculateRules), 1)
|
|
12066
12073
|
]),
|
|
12067
12074
|
C("div", Y6, [
|
|
12068
|
-
|
|
12075
|
+
Ye(p.$slots, "selection-control", {}, void 0, !0)
|
|
12069
12076
|
])
|
|
12070
12077
|
]),
|
|
12071
12078
|
e.isAttributes && e.showAttributes && e.selected ? (V(), Q("div", e8, [
|
|
@@ -12138,7 +12145,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
12138
12145
|
])
|
|
12139
12146
|
])),
|
|
12140
12147
|
e.selected && e.isAttributes ? (V(), Q("div", s8, [
|
|
12141
|
-
|
|
12148
|
+
Ye(p.$slots, "default", {}, void 0, !0)
|
|
12142
12149
|
])) : ge("", !0)
|
|
12143
12150
|
], 10, I6));
|
|
12144
12151
|
}
|
|
@@ -22088,7 +22095,7 @@ const Jc = {
|
|
|
22088
22095
|
}, l = ne(), h = (E, k, R) => {
|
|
22089
22096
|
l.value = !!(t != null && t.hasFocus()), n.emit("selectionChange", { range: E, oldRange: k, source: R });
|
|
22090
22097
|
};
|
|
22091
|
-
|
|
22098
|
+
Je(l, (E) => {
|
|
22092
22099
|
E ? n.emit("focus", i) : n.emit("blur", i);
|
|
22093
22100
|
});
|
|
22094
22101
|
const p = (...E) => {
|
|
@@ -22136,12 +22143,12 @@ const Jc = {
|
|
|
22136
22143
|
!n.slots.toolbar && t && ((E = t.getModule("toolbar")) === null || E === void 0 || E.container.remove()), o();
|
|
22137
22144
|
});
|
|
22138
22145
|
};
|
|
22139
|
-
return
|
|
22146
|
+
return Je(() => e.content, (E) => {
|
|
22140
22147
|
if (!t || !E || c(E))
|
|
22141
22148
|
return;
|
|
22142
22149
|
const k = t.getSelection();
|
|
22143
22150
|
k && mn(() => t == null ? void 0 : t.setSelection(k)), _(E);
|
|
22144
|
-
}, { deep: !0 }),
|
|
22151
|
+
}, { deep: !0 }), Je(() => e.enable, (E) => {
|
|
22145
22152
|
t && t.enable(E);
|
|
22146
22153
|
}), {
|
|
22147
22154
|
editor: i,
|
|
@@ -22549,12 +22556,12 @@ const Jc = {
|
|
|
22549
22556
|
])
|
|
22550
22557
|
]),
|
|
22551
22558
|
r.$slots.content ? (V(), Q("div", Up, [
|
|
22552
|
-
|
|
22559
|
+
Ye(r.$slots, "content", {}, void 0, !0)
|
|
22553
22560
|
])) : (V(), Q("div", zp, [
|
|
22554
|
-
|
|
22561
|
+
Ye(r.$slots, "default", {}, void 0, !0)
|
|
22555
22562
|
])),
|
|
22556
22563
|
e.footer ? (V(), Q("div", Kp, [
|
|
22557
|
-
|
|
22564
|
+
Ye(r.$slots, "footer", {}, void 0, !0)
|
|
22558
22565
|
])) : ge("", !0)
|
|
22559
22566
|
])
|
|
22560
22567
|
], 12, Fp)
|
|
@@ -23040,7 +23047,7 @@ const Jc = {
|
|
|
23040
23047
|
} else
|
|
23041
23048
|
t.maintainQuoteConfiguration();
|
|
23042
23049
|
};
|
|
23043
|
-
|
|
23050
|
+
Je(r, (l) => {
|
|
23044
23051
|
c(l), a("scroll", 0);
|
|
23045
23052
|
});
|
|
23046
23053
|
const c = (l) => {
|
|
@@ -23449,7 +23456,7 @@ function K7(e, n, t, r, i, o) {
|
|
|
23449
23456
|
onMouseover: n[0] || (n[0] = (...s) => o.showTooltip && o.showTooltip(...s)),
|
|
23450
23457
|
onMouseleave: n[1] || (n[1] = (...s) => o.hideTooltip && o.hideTooltip(...s))
|
|
23451
23458
|
}, [
|
|
23452
|
-
|
|
23459
|
+
Ye(e.$slots, "default", {}, void 0, !0),
|
|
23453
23460
|
yn(C("div", {
|
|
23454
23461
|
class: we(o.tooltipClass),
|
|
23455
23462
|
style: Ke(o.styleObj),
|
|
@@ -23466,7 +23473,7 @@ function K7(e, n, t, r, i, o) {
|
|
|
23466
23473
|
], 14, z7), [
|
|
23467
23474
|
[j0, i.show]
|
|
23468
23475
|
])
|
|
23469
|
-
], 40, U7)) :
|
|
23476
|
+
], 40, U7)) : Ye(e.$slots, "default", { key: 1 }, void 0, !0);
|
|
23470
23477
|
}
|
|
23471
23478
|
const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc62"]]), W7 = Et("item", () => {
|
|
23472
23479
|
const e = tn(), n = ne([]), t = ne([]), r = ne(!1), i = ne(0), o = ne(1), a = ne(""), s = ne(20), u = ne(null), f = ne(!1), c = ne(null), v = ne(!1), l = ne(null), h = ne(null), p = ne(null), g = ne(null), d = ne(null), m = ne({
|
|
@@ -23794,7 +23801,7 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
23794
23801
|
i.push({ ...l });
|
|
23795
23802
|
});
|
|
23796
23803
|
};
|
|
23797
|
-
|
|
23804
|
+
Je(
|
|
23798
23805
|
() => r.buttons,
|
|
23799
23806
|
() => {
|
|
23800
23807
|
o();
|
|
@@ -23886,7 +23893,7 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
23886
23893
|
state: e.statusText.toLowerCase(),
|
|
23887
23894
|
"data-test-id": "`filter-header-status-pill`"
|
|
23888
23895
|
}, null, 8, ["text", "state"])) : ge("", !0),
|
|
23889
|
-
|
|
23896
|
+
Ye(l.$slots, "after-status", {}, void 0, !0)
|
|
23890
23897
|
])
|
|
23891
23898
|
]),
|
|
23892
23899
|
C("div", tv, [
|
|
@@ -23907,14 +23914,14 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
23907
23914
|
}, null, 8, ["modelValue", "placeholder"])
|
|
23908
23915
|
], 4)) : ge("", !0),
|
|
23909
23916
|
C("div", nv, [
|
|
23910
|
-
|
|
23917
|
+
Ye(l.$slots, "afterSearch", {}, void 0, !0)
|
|
23911
23918
|
]),
|
|
23912
23919
|
C("div", rv, [
|
|
23913
23920
|
C("div", iv, [
|
|
23914
|
-
|
|
23921
|
+
Ye(l.$slots, "before-button", {}, void 0, !0)
|
|
23915
23922
|
]),
|
|
23916
23923
|
l.$slots.buttons ? (V(), Q("div", ov, [
|
|
23917
|
-
|
|
23924
|
+
Ye(l.$slots, "buttons", {}, void 0, !0)
|
|
23918
23925
|
])) : (V(!0), Q(be, { key: 1 }, qe(i, (p, g) => (V(), Q("div", {
|
|
23919
23926
|
key: g,
|
|
23920
23927
|
class: "action-wrapper"
|
|
@@ -31026,7 +31033,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Gm], ["__scopeId", "data-v-617229a
|
|
|
31026
31033
|
var _, x, b;
|
|
31027
31034
|
return (_ = r.offer) != null && _.appliedOnField ? $f[(x = r.offer) == null ? void 0 : x.appliedOnField] === ((b = r.offerSetting.value) == null ? void 0 : b.field) : !0;
|
|
31028
31035
|
});
|
|
31029
|
-
|
|
31036
|
+
Je(
|
|
31030
31037
|
() => t.savedItems,
|
|
31031
31038
|
(_) => {
|
|
31032
31039
|
var x, b;
|
|
@@ -31218,7 +31225,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Gm], ["__scopeId", "data-v-617229a
|
|
|
31218
31225
|
var m, y, _;
|
|
31219
31226
|
return (m = t.offer) != null && m.appliedOnField ? $f[(y = t.offer) == null ? void 0 : y.appliedOnField] === ((_ = t.offerSetting.value) == null ? void 0 : _.field) : !0;
|
|
31220
31227
|
});
|
|
31221
|
-
|
|
31228
|
+
Je(
|
|
31222
31229
|
() => n.savedItems,
|
|
31223
31230
|
(m) => {
|
|
31224
31231
|
var y, _;
|
|
@@ -31571,13 +31578,13 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Gm], ["__scopeId", "data-v-617229a
|
|
|
31571
31578
|
var W;
|
|
31572
31579
|
return ((W = r.configuration.productItemOrientation) == null ? void 0 : W.toLowerCase()) || "vertical";
|
|
31573
31580
|
}), O = ne(t.includes(B.value) ? y.value || B.value : "vertical"), E = me(() => c.value.length < 1 && !f.value), k = me(() => `product-${O.value} width-${_.value ? _.value : r.configuration.displaySettings.columns || 1}`), R = me(() => r.configuration.displaySettings.enableSearch), F = ne(null), q = ne(!1), X = ne({});
|
|
31574
|
-
|
|
31581
|
+
Je(s, (W, P) => {
|
|
31575
31582
|
W !== P && (console.log("[fetchProducts] 1"), J(!0));
|
|
31576
|
-
}),
|
|
31583
|
+
}), Je(F, (W) => {
|
|
31577
31584
|
W !== null && r.onCountUpdate && r.onCountUpdate(W);
|
|
31578
|
-
}),
|
|
31585
|
+
}), Je(p, () => {
|
|
31579
31586
|
s.value = 1, console.log("[fetchProducts] 2"), J(!0);
|
|
31580
|
-
}),
|
|
31587
|
+
}), Je(
|
|
31581
31588
|
() => r.searchText,
|
|
31582
31589
|
(W, P) => {
|
|
31583
31590
|
W !== P && (p.value = W || "");
|
|
@@ -31638,7 +31645,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Gm], ["__scopeId", "data-v-617229a
|
|
|
31638
31645
|
placeholder: "Search products..."
|
|
31639
31646
|
}, null, 8, ["modelValue"])
|
|
31640
31647
|
])) : ge("", !0),
|
|
31641
|
-
|
|
31648
|
+
Ye(W.$slots, "default", {}, void 0, !0),
|
|
31642
31649
|
E.value ? (V(), Q("div", ix, [
|
|
31643
31650
|
ox,
|
|
31644
31651
|
Fe(),
|
|
@@ -31756,20 +31763,20 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Gm], ["__scopeId", "data-v-617229a
|
|
|
31756
31763
|
secondarySortOrder: (S = (b = t.configuration.sort) == null ? void 0 : b.secondary) == null ? void 0 : S.direction
|
|
31757
31764
|
// gid: route.query.gid
|
|
31758
31765
|
}), c = ne(null), v = ne(null);
|
|
31759
|
-
return
|
|
31766
|
+
return Je(
|
|
31760
31767
|
() => r.value,
|
|
31761
31768
|
(A) => {
|
|
31762
31769
|
A && window.scrollTo(0, 0);
|
|
31763
31770
|
}
|
|
31764
31771
|
), qt(() => {
|
|
31765
31772
|
f.value.searchText = t.searchTerm || "";
|
|
31766
|
-
}),
|
|
31773
|
+
}), Je(
|
|
31767
31774
|
f,
|
|
31768
31775
|
(A) => {
|
|
31769
31776
|
v.value && v.value.fetchFilterList(), c.value && (c.value.currentPage = 1, console.log("[fetchProducts] 4"), c.value.fetchProducts());
|
|
31770
31777
|
},
|
|
31771
31778
|
{ deep: !0 }
|
|
31772
|
-
),
|
|
31779
|
+
), Je(
|
|
31773
31780
|
() => t.searchTerm,
|
|
31774
31781
|
(A) => {
|
|
31775
31782
|
typeof A == "string" && (f.value.searchText = A);
|