expedite-components 0.5.2 → 0.5.3
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.
|
@@ -12,7 +12,7 @@ const Ze = {}, Tr = [], Ht = () => {
|
|
|
12
12
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ys = (e) => e.startsWith("onUpdate:"), st = Object.assign, el = (e, n) => {
|
|
13
13
|
const t = e.indexOf(n);
|
|
14
14
|
t > -1 && e.splice(t, 1);
|
|
15
|
-
}, Zf = Object.prototype.hasOwnProperty, He = (e, n) => Zf.call(e, n), Te = Array.isArray, Br = (e) => hi(e) === "[object Map]", Mr = (e) => hi(e) === "[object Set]", Hl = (e) => hi(e) === "[object Date]",
|
|
15
|
+
}, Zf = Object.prototype.hasOwnProperty, He = (e, n) => Zf.call(e, n), Te = Array.isArray, Br = (e) => hi(e) === "[object Map]", Mr = (e) => hi(e) === "[object Set]", Hl = (e) => hi(e) === "[object Date]", Ne = (e) => typeof e == "function", it = (e) => typeof e == "string", jn = (e) => typeof e == "symbol", Qe = (e) => e !== null && typeof e == "object", Vu = (e) => (Qe(e) || Ne(e)) && Ne(e.then) && Ne(e.catch), Uu = Object.prototype.toString, hi = (e) => Uu.call(e), Qf = (e) => hi(e).slice(8, -1), zu = (e) => hi(e) === "[object Object]", tl = (e) => it(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Yr = /* @__PURE__ */ Js(
|
|
16
16
|
// the leading comma is intentional so empty string "" is also included
|
|
17
17
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
18
18
|
), Oo = (e) => {
|
|
@@ -114,7 +114,7 @@ function hr(e, n) {
|
|
|
114
114
|
function nl(e, n) {
|
|
115
115
|
return e.findIndex((t) => hr(t, n));
|
|
116
116
|
}
|
|
117
|
-
const xe = (e) => it(e) ? e : e == null ? "" : Te(e) || Qe(e) && (e.toString === Uu || !
|
|
117
|
+
const xe = (e) => it(e) ? e : e == null ? "" : Te(e) || Qe(e) && (e.toString === Uu || !Ne(e.toString)) ? JSON.stringify(e, Wu, 2) : String(e), Wu = (e, n) => n && n.__v_isRef ? Wu(e, n.value) : Br(n) ? {
|
|
118
118
|
[`Map(${n.size})`]: [...n.entries()].reduce(
|
|
119
119
|
(t, [r, i], o) => (t[Na(r, o) + " =>"] = i, t),
|
|
120
120
|
{}
|
|
@@ -714,7 +714,7 @@ class f0 {
|
|
|
714
714
|
}
|
|
715
715
|
function Td(e, n, t = !1) {
|
|
716
716
|
let r, i;
|
|
717
|
-
const o =
|
|
717
|
+
const o = Ne(e);
|
|
718
718
|
return o ? (r = e, i = Ht) : (r = e.get, i = e.set), new f0(r, i, o || !i, t);
|
|
719
719
|
}
|
|
720
720
|
function ul(e) {
|
|
@@ -756,11 +756,11 @@ class Dd {
|
|
|
756
756
|
n = t ? n : Ue(n), gn(n, this._rawValue) && (this._rawValue = n, this._value = t ? n : ai(n), ei(this, 4));
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Le(e) {
|
|
760
760
|
return lt(e) ? e.value : e;
|
|
761
761
|
}
|
|
762
762
|
const Rd = {
|
|
763
|
-
get: (e, n, t) =>
|
|
763
|
+
get: (e, n, t) => Le(Reflect.get(e, n, t)),
|
|
764
764
|
set: (e, n, t, r) => {
|
|
765
765
|
const i = e[n];
|
|
766
766
|
return lt(i) && !lt(t) ? (i.value = t, !0) : Reflect.set(e, n, t, r);
|
|
@@ -826,7 +826,7 @@ function qn(e, n, t, r) {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function Yt(e, n, t, r) {
|
|
829
|
-
if (
|
|
829
|
+
if (Ne(e)) {
|
|
830
830
|
const o = qn(e, n, t, r);
|
|
831
831
|
return o && Vu(o) && o.catch((a) => {
|
|
832
832
|
Bo(a, n, t);
|
|
@@ -988,7 +988,7 @@ function m0(e, n, t = !1) {
|
|
|
988
988
|
return i;
|
|
989
989
|
const o = e.emits;
|
|
990
990
|
let a = {}, s = !1;
|
|
991
|
-
if (!
|
|
991
|
+
if (!Ne(e)) {
|
|
992
992
|
const u = (f) => {
|
|
993
993
|
const c = m0(f, n, !0);
|
|
994
994
|
c && (s = !0, st(a, c));
|
|
@@ -1214,9 +1214,9 @@ function vl(e, n, {
|
|
|
1214
1214
|
return S.value;
|
|
1215
1215
|
if (Mn(S))
|
|
1216
1216
|
return f(S);
|
|
1217
|
-
if (
|
|
1217
|
+
if (Ne(S))
|
|
1218
1218
|
return qn(S, u, 2);
|
|
1219
|
-
})) :
|
|
1219
|
+
})) : Ne(e) ? n ? c = () => qn(e, u, 2) : c = () => (h && h(), Yt(
|
|
1220
1220
|
e,
|
|
1221
1221
|
u,
|
|
1222
1222
|
3,
|
|
@@ -1268,7 +1268,7 @@ function vl(e, n, {
|
|
|
1268
1268
|
function n1(e, n, t) {
|
|
1269
1269
|
const r = this.proxy, i = it(e) ? e.includes(".") ? x0(r, e) : () => r[e] : e.bind(r, r);
|
|
1270
1270
|
let o;
|
|
1271
|
-
|
|
1271
|
+
Ne(n) ? o = n : (o = n.handler, t = n);
|
|
1272
1272
|
const a = gi(this), s = vl(i, o.bind(r), t);
|
|
1273
1273
|
return a(), s;
|
|
1274
1274
|
}
|
|
@@ -1311,7 +1311,7 @@ function yn(e, n) {
|
|
|
1311
1311
|
const t = Ho(rt) || rt.proxy, r = e.dirs || (e.dirs = []);
|
|
1312
1312
|
for (let i = 0; i < n.length; i++) {
|
|
1313
1313
|
let [o, a, s, u = Ze] = n[i];
|
|
1314
|
-
o && (
|
|
1314
|
+
o && (Ne(o) && (o = {
|
|
1315
1315
|
mounted: o,
|
|
1316
1316
|
updated: o
|
|
1317
1317
|
}), o.deep && or(a), r.push({
|
|
@@ -1342,7 +1342,7 @@ function nr(e, n, t, r) {
|
|
|
1342
1342
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1343
1343
|
// @__NO_SIDE_EFFECTS__
|
|
1344
1344
|
function _0(e, n) {
|
|
1345
|
-
return
|
|
1345
|
+
return Ne(e) ? (
|
|
1346
1346
|
// #8326: extend call and options.name access are considered side-effects
|
|
1347
1347
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1348
1348
|
st({ name: e.name }, n, { setup: e })
|
|
@@ -1589,7 +1589,7 @@ function d1(e) {
|
|
|
1589
1589
|
if (f && h1(f, r, null), a)
|
|
1590
1590
|
for (const Y in a) {
|
|
1591
1591
|
const ne = a[Y];
|
|
1592
|
-
|
|
1592
|
+
Ne(ne) && (r[Y] = ne.bind(t));
|
|
1593
1593
|
}
|
|
1594
1594
|
if (i) {
|
|
1595
1595
|
const Y = i.call(t, t);
|
|
@@ -1597,7 +1597,7 @@ function d1(e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
if (Ps = !0, o)
|
|
1599
1599
|
for (const Y in o) {
|
|
1600
|
-
const ne = o[Y], Z =
|
|
1600
|
+
const ne = o[Y], Z = Ne(ne) ? ne.bind(t, t) : Ne(ne.get) ? ne.get.bind(t, t) : Ht, P = !Ne(ne) && Ne(ne.set) ? ne.set.bind(t) : Ht, w = me({
|
|
1601
1601
|
get: Z,
|
|
1602
1602
|
set: P
|
|
1603
1603
|
});
|
|
@@ -1612,7 +1612,7 @@ function d1(e) {
|
|
|
1612
1612
|
for (const Y in s)
|
|
1613
1613
|
A0(s[Y], r, t, Y);
|
|
1614
1614
|
if (u) {
|
|
1615
|
-
const Y =
|
|
1615
|
+
const Y = Ne(u) ? u.call(t) : u;
|
|
1616
1616
|
Reflect.ownKeys(Y).forEach((ne) => {
|
|
1617
1617
|
x1(ne, Y[ne]);
|
|
1618
1618
|
});
|
|
@@ -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
|
-
|
|
1666
|
-
} else if (
|
|
1665
|
+
Ne(o) && Ye(i, o);
|
|
1666
|
+
} else if (Ne(e))
|
|
1667
1667
|
Ye(i, e.bind(t));
|
|
1668
1668
|
else if (Qe(e))
|
|
1669
1669
|
if (Te(e))
|
|
1670
1670
|
e.forEach((o) => A0(o, n, t, r));
|
|
1671
1671
|
else {
|
|
1672
|
-
const o =
|
|
1673
|
-
|
|
1672
|
+
const o = Ne(e.handler) ? e.handler.bind(t) : n[e.handler];
|
|
1673
|
+
Ne(o) && Ye(i, o, e);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
function gl(e) {
|
|
@@ -1730,8 +1730,8 @@ const p1 = {
|
|
|
1730
1730
|
function rc(e, n) {
|
|
1731
1731
|
return n ? e ? function() {
|
|
1732
1732
|
return st(
|
|
1733
|
-
|
|
1734
|
-
|
|
1733
|
+
Ne(e) ? e.call(this, this) : e,
|
|
1734
|
+
Ne(n) ? n.call(this, this) : n
|
|
1735
1735
|
);
|
|
1736
1736
|
} : n : e;
|
|
1737
1737
|
}
|
|
@@ -1794,7 +1794,7 @@ function k0() {
|
|
|
1794
1794
|
let m1 = 0;
|
|
1795
1795
|
function y1(e, n) {
|
|
1796
1796
|
return function(r, i = null) {
|
|
1797
|
-
|
|
1797
|
+
Ne(r) || (r = st({}, r)), i != null && !Qe(i) && (i = null);
|
|
1798
1798
|
const o = k0(), a = /* @__PURE__ */ new WeakSet();
|
|
1799
1799
|
let s = !1;
|
|
1800
1800
|
const u = o.app = {
|
|
@@ -1811,7 +1811,7 @@ function y1(e, n) {
|
|
|
1811
1811
|
set config(f) {
|
|
1812
1812
|
},
|
|
1813
1813
|
use(f, ...c) {
|
|
1814
|
-
return a.has(f) || (f &&
|
|
1814
|
+
return a.has(f) || (f && Ne(f.install) ? (a.add(f), f.install(u, ...c)) : Ne(f) && (a.add(f), f(u, ...c))), u;
|
|
1815
1815
|
},
|
|
1816
1816
|
mixin(f) {
|
|
1817
1817
|
return o.mixins.includes(f) || o.mixins.push(f), u;
|
|
@@ -1862,7 +1862,7 @@ function $n(e, n, t = !1) {
|
|
|
1862
1862
|
if (i && e in i)
|
|
1863
1863
|
return i[e];
|
|
1864
1864
|
if (arguments.length > 1)
|
|
1865
|
-
return t &&
|
|
1865
|
+
return t && Ne(n) ? n.call(r && r.proxy) : n;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
1868
|
function O0() {
|
|
@@ -1969,7 +1969,7 @@ function qs(e, n, t, r, i, o) {
|
|
|
1969
1969
|
const s = He(a, "default");
|
|
1970
1970
|
if (s && r === void 0) {
|
|
1971
1971
|
const u = a.default;
|
|
1972
|
-
if (a.type !== Function && !a.skipFactory &&
|
|
1972
|
+
if (a.type !== Function && !a.skipFactory && Ne(u)) {
|
|
1973
1973
|
const { propsDefaults: f } = i;
|
|
1974
1974
|
if (t in f)
|
|
1975
1975
|
r = f[t];
|
|
@@ -1999,7 +1999,7 @@ function I0(e, n, t = !1) {
|
|
|
1999
1999
|
return i;
|
|
2000
2000
|
const o = e.props, a = {}, s = [];
|
|
2001
2001
|
let u = !1;
|
|
2002
|
-
if (!
|
|
2002
|
+
if (!Ne(e)) {
|
|
2003
2003
|
const c = (v) => {
|
|
2004
2004
|
u = !0;
|
|
2005
2005
|
const [l, h] = I0(v, n, !0);
|
|
@@ -2018,7 +2018,7 @@ function I0(e, n, t = !1) {
|
|
|
2018
2018
|
for (const c in o) {
|
|
2019
2019
|
const v = Bt(c);
|
|
2020
2020
|
if (oc(v)) {
|
|
2021
|
-
const l = o[c], h = a[v] = Te(l) ||
|
|
2021
|
+
const l = o[c], h = a[v] = Te(l) || Ne(l) ? { type: l } : st({}, l);
|
|
2022
2022
|
if (h) {
|
|
2023
2023
|
const p = lc(Boolean, h.type), g = lc(String, h.type);
|
|
2024
2024
|
h[
|
|
@@ -2044,7 +2044,7 @@ function sc(e, n) {
|
|
|
2044
2044
|
return ac(e) === ac(n);
|
|
2045
2045
|
}
|
|
2046
2046
|
function lc(e, n) {
|
|
2047
|
-
return Te(n) ? n.findIndex((t) => sc(t, e)) :
|
|
2047
|
+
return Te(n) ? n.findIndex((t) => sc(t, e)) : Ne(n) && sc(n, e) ? 0 : -1;
|
|
2048
2048
|
}
|
|
2049
2049
|
const T0 = (e) => e[0] === "_" || e === "$stable", ml = (e) => Te(e) ? e.map(fn) : [fn(e)], C1 = (e, n, t) => {
|
|
2050
2050
|
if (n._n)
|
|
@@ -2057,7 +2057,7 @@ const T0 = (e) => e[0] === "_" || e === "$stable", ml = (e) => Te(e) ? e.map(fn)
|
|
|
2057
2057
|
if (T0(i))
|
|
2058
2058
|
continue;
|
|
2059
2059
|
const o = e[i];
|
|
2060
|
-
if (
|
|
2060
|
+
if (Ne(o))
|
|
2061
2061
|
n[i] = C1(i, o, r);
|
|
2062
2062
|
else if (o != null) {
|
|
2063
2063
|
const a = ml(o);
|
|
@@ -2105,7 +2105,7 @@ function $s(e, n, t, r, i = !1) {
|
|
|
2105
2105
|
if (ti(r) && !i)
|
|
2106
2106
|
return;
|
|
2107
2107
|
const o = r.shapeFlag & 4 ? Ho(r.component) || r.component.proxy : r.el, a = i ? null : o, { i: s, r: u } = e, f = n && n.r, c = s.refs === Ze ? s.refs = {} : s.refs, v = s.setupState;
|
|
2108
|
-
if (f != null && f !== u && (it(f) ? (c[f] = null, He(v, f) && (v[f] = null)) : lt(f) && (f.value = null)),
|
|
2108
|
+
if (f != null && f !== u && (it(f) ? (c[f] = null, He(v, f) && (v[f] = null)) : lt(f) && (f.value = null)), Ne(u))
|
|
2109
2109
|
qn(u, s, 12, [a, c]);
|
|
2110
2110
|
else {
|
|
2111
2111
|
const l = it(u), h = lt(u);
|
|
@@ -3072,7 +3072,7 @@ const qo = "__vInternal", F0 = ({ key: e }) => e ?? null, to = ({
|
|
|
3072
3072
|
ref: e,
|
|
3073
3073
|
ref_key: n,
|
|
3074
3074
|
ref_for: t
|
|
3075
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? it(e) || lt(e) ||
|
|
3075
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? it(e) || lt(e) || Ne(e) ? { i: rt, r: e, k: n, f: !!t } : e : null);
|
|
3076
3076
|
function C(e, n = null, t = null, r = 0, i = null, o = e === be ? 0 : 1, a = !1, s = !1) {
|
|
3077
3077
|
const u = {
|
|
3078
3078
|
__v_isVNode: !0,
|
|
@@ -3128,7 +3128,7 @@ function B1(e, n = null, t = null, r = 0, i = null, o = !1) {
|
|
|
3128
3128
|
let { class: s, style: u } = n;
|
|
3129
3129
|
s && !it(s) && (n.class = we(s)), Qe(u) && (u0(u) && !Te(u) && (u = st({}, u)), n.style = Ke(u));
|
|
3130
3130
|
}
|
|
3131
|
-
const a = it(e) ? 1 : Qd(e) ? 128 : I1(e) ? 64 : Qe(e) ? 4 :
|
|
3131
|
+
const a = it(e) ? 1 : Qd(e) ? 128 : I1(e) ? 64 : Qe(e) ? 4 : Ne(e) ? 2 : 0;
|
|
3132
3132
|
return C(
|
|
3133
3133
|
e,
|
|
3134
3134
|
n,
|
|
@@ -3227,7 +3227,7 @@ function yl(e, n) {
|
|
|
3227
3227
|
!i && !(qo in n) ? n._ctx = rt : i === 3 && rt && (rt.slots._ === 1 ? n._ = 1 : (n._ = 2, e.patchFlag |= 1024));
|
|
3228
3228
|
}
|
|
3229
3229
|
else
|
|
3230
|
-
|
|
3230
|
+
Ne(n) ? (n = { default: n, _ctx: rt }, t = 32) : (n = String(n), r & 64 ? (t = 16, n = [Fe(n)]) : t = 8);
|
|
3231
3231
|
e.children = n, e.shapeFlag |= t;
|
|
3232
3232
|
}
|
|
3233
3233
|
function $o(...e) {
|
|
@@ -3401,7 +3401,7 @@ function P1(e, n) {
|
|
|
3401
3401
|
q0(e, n);
|
|
3402
3402
|
}
|
|
3403
3403
|
function fc(e, n, t) {
|
|
3404
|
-
|
|
3404
|
+
Ne(n) ? e.type.__ssrInlineRender ? e.ssrRender = n : e.render = n : Qe(n) && (e.setupState = d0(n)), q0(e, t);
|
|
3405
3405
|
}
|
|
3406
3406
|
let dc;
|
|
3407
3407
|
function q0(e, n, t) {
|
|
@@ -3473,10 +3473,10 @@ function Ho(e) {
|
|
|
3473
3473
|
}));
|
|
3474
3474
|
}
|
|
3475
3475
|
function $1(e, n = !0) {
|
|
3476
|
-
return
|
|
3476
|
+
return Ne(e) ? e.displayName || e.name : e.name || n && e.__name;
|
|
3477
3477
|
}
|
|
3478
3478
|
function j1(e) {
|
|
3479
|
-
return
|
|
3479
|
+
return Ne(e) && "__vccOpts" in e;
|
|
3480
3480
|
}
|
|
3481
3481
|
const me = (e, n) => Td(e, n, jo);
|
|
3482
3482
|
function H1(e, n, t = Ze) {
|
|
@@ -3752,7 +3752,7 @@ e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, c2 = (e, n, t, r, i, o, a, s, u)
|
|
|
3752
3752
|
};
|
|
3753
3753
|
function u2(e, n, t, r) {
|
|
3754
3754
|
if (r)
|
|
3755
|
-
return !!(n === "innerHTML" || n === "textContent" || n in e && xc(n) &&
|
|
3755
|
+
return !!(n === "innerHTML" || n === "textContent" || n in e && xc(n) && Ne(t));
|
|
3756
3756
|
if (n === "spellcheck" || n === "draggable" || n === "translate" || n === "form" || n === "list" && e.tagName === "INPUT" || n === "type" && e.tagName === "TEXTAREA")
|
|
3757
3757
|
return !1;
|
|
3758
3758
|
if (n === "width" || n === "height") {
|
|
@@ -4972,7 +4972,7 @@ const tn = Et("error", {
|
|
|
4972
4972
|
C("span", {
|
|
4973
4973
|
class: "toast__text",
|
|
4974
4974
|
"data-test-id": `${e.dataTestId}-message`
|
|
4975
|
-
}, xe(
|
|
4975
|
+
}, xe(Le(n).toast.message), 9, gh)
|
|
4976
4976
|
], 8, vh),
|
|
4977
4977
|
C("div", {
|
|
4978
4978
|
class: "toast no-wrap",
|
|
@@ -7206,7 +7206,7 @@ const Us = /* @__PURE__ */ Re(bh, [["render", Ah]]), Vo = (e) => (zt("data-v-47a
|
|
|
7206
7206
|
C("p", r5, xe(e.configueredProduct.Description), 1)
|
|
7207
7207
|
]),
|
|
7208
7208
|
C("div", i5, [
|
|
7209
|
-
C("div", o5, xe(
|
|
7209
|
+
C("div", o5, xe(Le(Pt)(e.configueredProduct.Price)), 1),
|
|
7210
7210
|
he(Ut, {
|
|
7211
7211
|
btype: "primary",
|
|
7212
7212
|
"button-style": "filled",
|
|
@@ -10666,6 +10666,7 @@ class u4 extends a4 {
|
|
|
10666
10666
|
}
|
|
10667
10667
|
const xn = Et("comConfigurator", () => {
|
|
10668
10668
|
const e = te(null), n = tn(), t = Cf(), r = yi(), i = te(null), o = te(null), a = te(null), s = te(null), u = te(null), f = te([]), c = te(null), v = te([]), l = te([]), h = te(null), p = te(/* @__PURE__ */ new Map()), g = te(!1), d = te({
|
|
10669
|
+
init: !1,
|
|
10669
10670
|
configuration: !1,
|
|
10670
10671
|
lineItem: !1,
|
|
10671
10672
|
productOptionsPricing: !1,
|
|
@@ -10818,7 +10819,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10818
10819
|
e.value = new u4(M, U, Q, z);
|
|
10819
10820
|
}
|
|
10820
10821
|
async function Y(M, U, Q) {
|
|
10821
|
-
console.time("CONFIGURATOR INIT CONFIGURATOR"), q(), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "1"), o.value = M, a.value = U, i.value = Q || t.quoteId;
|
|
10822
|
+
d.value.init = !0, console.time("CONFIGURATOR INIT CONFIGURATOR"), q(), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "1"), o.value = M, a.value = U, i.value = Q || t.quoteId;
|
|
10822
10823
|
const z = await ne();
|
|
10823
10824
|
console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "2"), s.value = Z(z), a.value ? (await w(), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "3"), P(s.value), s.value.categoryOptions.forEach((F) => {
|
|
10824
10825
|
F.itemTypes.forEach((j) => {
|
|
@@ -10826,7 +10827,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10826
10827
|
P(se), (I.value.has(se.itemId) || se.relationshipInfo.relationship === "Kit") && j.selected.push(se.itemId);
|
|
10827
10828
|
});
|
|
10828
10829
|
});
|
|
10829
|
-
}), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "4")) : w(), u.value = JSON.parse(JSON.stringify(s.value)), console.timeEnd("CONFIGURATOR INIT CONFIGURATOR");
|
|
10830
|
+
}), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "4")) : w(), u.value = JSON.parse(JSON.stringify(s.value)), console.timeEnd("CONFIGURATOR INIT CONFIGURATOR"), d.value.init = !1;
|
|
10830
10831
|
}
|
|
10831
10832
|
async function ne() {
|
|
10832
10833
|
try {
|
|
@@ -11191,11 +11192,11 @@ const xn = Et("comConfigurator", () => {
|
|
|
11191
11192
|
icon: "arrow",
|
|
11192
11193
|
symbol: "",
|
|
11193
11194
|
size: 12,
|
|
11194
|
-
onClick: g[0] || (g[0] = (d) =>
|
|
11195
|
+
onClick: g[0] || (g[0] = (d) => Le(n).savedScreen = !1)
|
|
11195
11196
|
}),
|
|
11196
11197
|
C("h2", h4, xe(t.value.itemName), 1)
|
|
11197
11198
|
]),
|
|
11198
|
-
|
|
11199
|
+
Le(n).loading.save ? (V(), J("div", p4, [
|
|
11199
11200
|
he(G0, { svg: "" }),
|
|
11200
11201
|
v4
|
|
11201
11202
|
])) : (V(), J("div", g4, [
|
|
@@ -11225,7 +11226,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11225
11226
|
C("p", E4, xe(d.Description), 1)
|
|
11226
11227
|
]),
|
|
11227
11228
|
C("div", A4, [
|
|
11228
|
-
C("div", k4, xe(
|
|
11229
|
+
C("div", k4, xe(Le(Pt)(d.Price)), 1),
|
|
11229
11230
|
he(Ut, {
|
|
11230
11231
|
btype: d.disabled ? "secondary" : "primary",
|
|
11231
11232
|
"button-style": d.disabled ? "normal" : "outlined",
|
|
@@ -11522,7 +11523,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11522
11523
|
C("span", {
|
|
11523
11524
|
class: we(["ect-text-left", c.highlight ? "ect-text-lg ect-font-bold ect-text-green-700" : "ect-text-sm ect-font-medium ect-text-gray-800 "]),
|
|
11524
11525
|
"data-test-id": `configurator-footer-price-value-${v}`
|
|
11525
|
-
}, xe(
|
|
11526
|
+
}, xe(Le(Pt)(c.value)), 11, e6)
|
|
11526
11527
|
], 8, J4),
|
|
11527
11528
|
v < o.value.length - 1 ? (V(), J("div", {
|
|
11528
11529
|
key: 0,
|
|
@@ -22200,7 +22201,7 @@ const Jc = {
|
|
|
22200
22201
|
class: we({ error_color: !!e.error })
|
|
22201
22202
|
}, "*", 2)) : ge("", !0)
|
|
22202
22203
|
], 10, cp)) : ge("", !0),
|
|
22203
|
-
he(
|
|
22204
|
+
he(Le(sp), {
|
|
22204
22205
|
"content-type": "html",
|
|
22205
22206
|
toolbar: e.editorOptions,
|
|
22206
22207
|
"model-value": e.modelValue,
|
|
@@ -22284,7 +22285,7 @@ const Jc = {
|
|
|
22284
22285
|
lookup: "",
|
|
22285
22286
|
search: "",
|
|
22286
22287
|
highlight: "",
|
|
22287
|
-
onSearch: f[2] || (f[2] = (c) =>
|
|
22288
|
+
onSearch: f[2] || (f[2] = (c) => Le(s)(c, i.value))
|
|
22288
22289
|
}, null, 8, ["modelValue", "data-test-id", "label", "options", "disabled", "required", "loading"])
|
|
22289
22290
|
])) : ge("", !0),
|
|
22290
22291
|
(V(!0), J(be, null, qe(e.attributes, (c, v) => (V(), J("div", {
|
|
@@ -22658,7 +22659,7 @@ const Jc = {
|
|
|
22658
22659
|
C("div", Jp, [
|
|
22659
22660
|
C("p", Yp, xe(e.item.itemName), 1),
|
|
22660
22661
|
C("p", e3, xe(e.item.qty), 1),
|
|
22661
|
-
C("p", t3, xe(
|
|
22662
|
+
C("p", t3, xe(Le(Pt)(e.item.price)), 1)
|
|
22662
22663
|
])
|
|
22663
22664
|
]),
|
|
22664
22665
|
C("main", n3, [
|
|
@@ -22672,7 +22673,7 @@ const Jc = {
|
|
|
22672
22673
|
}, [
|
|
22673
22674
|
C("p", s3, xe(d.itemName), 1),
|
|
22674
22675
|
C("p", l3, xe(d.qty), 1),
|
|
22675
|
-
C("p", c3, " + " + xe(
|
|
22676
|
+
C("p", c3, " + " + xe(Le(Pt)(d.price)), 1)
|
|
22676
22677
|
]))), 128))
|
|
22677
22678
|
])) : ge("", !0),
|
|
22678
22679
|
c.value.length > 0 ? (V(), J("div", u3, [
|
|
@@ -22683,12 +22684,12 @@ const Jc = {
|
|
|
22683
22684
|
}, [
|
|
22684
22685
|
C("p", d3, xe(d.itemName), 1),
|
|
22685
22686
|
C("p", h3, xe(d.qty), 1),
|
|
22686
|
-
C("p", p3, " - " + xe(
|
|
22687
|
+
C("p", p3, " - " + xe(Le(Pt)(d.price)), 1)
|
|
22687
22688
|
]))), 128))
|
|
22688
22689
|
])) : ge("", !0),
|
|
22689
22690
|
C("div", v3, [
|
|
22690
22691
|
g3,
|
|
22691
|
-
C("p", m3, xe(
|
|
22692
|
+
C("p", m3, xe(Le(Pt)(v.value)), 1)
|
|
22692
22693
|
])
|
|
22693
22694
|
])
|
|
22694
22695
|
]),
|
|
@@ -22705,10 +22706,10 @@ const Jc = {
|
|
|
22705
22706
|
C("p", w3, xe(d.label), 1)
|
|
22706
22707
|
]),
|
|
22707
22708
|
C("div", E3, [
|
|
22708
|
-
C("p", A3, xe(
|
|
22709
|
+
C("p", A3, xe(Le(Pt)(d.value)), 1)
|
|
22709
22710
|
]),
|
|
22710
22711
|
C("div", k3, [
|
|
22711
|
-
C("p", O3, xe(
|
|
22712
|
+
C("p", O3, xe(Le(Pt)(d.priceChange)), 1)
|
|
22712
22713
|
])
|
|
22713
22714
|
], 2))), 128))
|
|
22714
22715
|
])
|
|
@@ -22717,10 +22718,10 @@ const Jc = {
|
|
|
22717
22718
|
C("div", I3, [
|
|
22718
22719
|
T3,
|
|
22719
22720
|
C("div", B3, [
|
|
22720
|
-
C("p", D3, xe(
|
|
22721
|
+
C("p", D3, xe(Le(Pt)(a.value.value)), 1)
|
|
22721
22722
|
]),
|
|
22722
22723
|
C("div", R3, [
|
|
22723
|
-
C("p", L3, xe(
|
|
22724
|
+
C("p", L3, xe(Le(Pt)(a.value.priceChange)), 1)
|
|
22724
22725
|
])
|
|
22725
22726
|
])
|
|
22726
22727
|
])
|
|
@@ -22839,7 +22840,7 @@ const Jc = {
|
|
|
22839
22840
|
"item-type": d.itemTypeName || "",
|
|
22840
22841
|
category: d.category,
|
|
22841
22842
|
"relationship-info": m.relationshipInfo || {},
|
|
22842
|
-
option:
|
|
22843
|
+
option: Le(n).optionByItemId.get(m.itemId),
|
|
22843
22844
|
"is-attributes": m.isAttributes,
|
|
22844
22845
|
"show-attributes": d.lightboxAttributes,
|
|
22845
22846
|
disabled: m.isDisabled,
|
|
@@ -22964,7 +22965,7 @@ const Jc = {
|
|
|
22964
22965
|
]),
|
|
22965
22966
|
n7,
|
|
22966
22967
|
C("div", r7, [
|
|
22967
|
-
C("span", i7, xe(
|
|
22968
|
+
C("span", i7, xe(Le(Pt)(o.price)), 1)
|
|
22968
22969
|
])
|
|
22969
22970
|
])
|
|
22970
22971
|
]),
|
|
@@ -22980,7 +22981,7 @@ const Jc = {
|
|
|
22980
22981
|
], 64))), 128))
|
|
22981
22982
|
]))), 128)),
|
|
22982
22983
|
C("div", s7, [
|
|
22983
|
-
C("span", l7, " Total : " + xe(
|
|
22984
|
+
C("span", l7, " Total : " + xe(Le(Pt)(r.totalPrice())), 1)
|
|
22984
22985
|
])
|
|
22985
22986
|
])
|
|
22986
22987
|
]))), 128))
|
|
@@ -23059,13 +23060,13 @@ const Jc = {
|
|
|
23059
23060
|
onScroll: v
|
|
23060
23061
|
}, [
|
|
23061
23062
|
he(u7, {
|
|
23062
|
-
summary:
|
|
23063
|
+
summary: Le(t).summary
|
|
23063
23064
|
}, null, 8, ["summary"])
|
|
23064
23065
|
], 32)),
|
|
23065
23066
|
C("div", h7, [
|
|
23066
23067
|
he(n6, {
|
|
23067
23068
|
"btn-text": r.value !== "summary" ? "Continue" : "Save",
|
|
23068
|
-
item:
|
|
23069
|
+
item: Le(t).configuration,
|
|
23069
23070
|
onContinue: f
|
|
23070
23071
|
}, null, 8, ["btn-text", "item"])
|
|
23071
23072
|
])
|
|
@@ -24061,8 +24062,8 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24061
24062
|
event: "save"
|
|
24062
24063
|
});
|
|
24063
24064
|
};
|
|
24064
|
-
return (v, l) =>
|
|
24065
|
-
|
|
24065
|
+
return (v, l) => Le(t).configuration ? (V(), J("div", xv, [
|
|
24066
|
+
Le(t).savedScreen ? (V(), Ae(N4, { key: 1 })) : (V(), J(be, { key: 0 }, [
|
|
24066
24067
|
C("div", _v, [
|
|
24067
24068
|
C("div", bv, [
|
|
24068
24069
|
ge("", !0),
|
|
@@ -24071,12 +24072,12 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24071
24072
|
buttons: u.value
|
|
24072
24073
|
}, {
|
|
24073
24074
|
"before-button": Ve(() => [
|
|
24074
|
-
|
|
24075
|
+
Le(t).isYearlyPricingExist ? (V(), Ae(yv, {
|
|
24075
24076
|
key: 0,
|
|
24076
|
-
modelValue:
|
|
24077
|
+
modelValue: Le(t).showYearlyPricing,
|
|
24077
24078
|
"onUpdate:modelValue": [
|
|
24078
|
-
l[0] || (l[0] = (h) =>
|
|
24079
|
-
|
|
24079
|
+
l[0] || (l[0] = (h) => Le(t).showYearlyPricing = h),
|
|
24080
|
+
Le(t).changePricingScheme
|
|
24080
24081
|
],
|
|
24081
24082
|
"left-align": "",
|
|
24082
24083
|
class: "ect-text-nowrap",
|
|
@@ -24124,21 +24125,21 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24124
24125
|
},
|
|
24125
24126
|
emits: ["ready", "action"],
|
|
24126
24127
|
setup(e, { emit: n }) {
|
|
24127
|
-
const t = e, r = n, i =
|
|
24128
|
+
const t = e, r = n, i = xn();
|
|
24128
24129
|
return Un(async () => {
|
|
24129
|
-
|
|
24130
|
-
}), (
|
|
24130
|
+
console.time("CONFIGURATOR ON BEFORE MOUNT"), console.timeLog("CONFIGURATOR ON BEFORE MOUNT", "1"), await i.initConfigurator(t.itemId, t.qliId), console.timeLog("CONFIGURATOR ON BEFORE MOUNT", "2"), console.timeEnd("CONFIGURATOR ON BEFORE MOUNT"), r("ready");
|
|
24131
|
+
}), (o, a) => (V(), J("div", {
|
|
24131
24132
|
class: "ect-h-full ect-flex ect-flex-col",
|
|
24132
24133
|
"data-item-id": e.itemId,
|
|
24133
24134
|
"data-qli-id": e.qliId
|
|
24134
24135
|
}, [
|
|
24135
|
-
i.
|
|
24136
|
+
Le(i).loading.init ? (V(), J("div", Ov, [
|
|
24136
24137
|
he(W0)
|
|
24137
24138
|
])) : (V(), J("div", kv, [
|
|
24138
24139
|
he(Ev, {
|
|
24139
24140
|
"qli-id": e.qliId,
|
|
24140
|
-
onAction:
|
|
24141
|
-
onSave:
|
|
24141
|
+
onAction: a[0] || (a[0] = (s) => r("action", s)),
|
|
24142
|
+
onSave: o.handleSave
|
|
24142
24143
|
}, null, 8, ["qli-id", "onSave"])
|
|
24143
24144
|
]))
|
|
24144
24145
|
], 8, Av));
|
|
@@ -24178,15 +24179,15 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24178
24179
|
}), (f, c) => (V(), J(be, null, [
|
|
24179
24180
|
he(_h),
|
|
24180
24181
|
he(Us),
|
|
24181
|
-
|
|
24182
|
+
Le(i).errorPopup ? (V(), Ae(oh, {
|
|
24182
24183
|
key: 0,
|
|
24183
|
-
data:
|
|
24184
|
-
onClose: c[0] || (c[0] = (v) =>
|
|
24184
|
+
data: Le(i).errorPopup,
|
|
24185
|
+
onClose: c[0] || (c[0] = (v) => Le(i).errorPopup = null)
|
|
24185
24186
|
}, null, 8, ["data"])) : ge("", !0),
|
|
24186
|
-
|
|
24187
|
+
Le(r).unsavedChanges ? (V(), Ae(lh, {
|
|
24187
24188
|
key: 1,
|
|
24188
|
-
data:
|
|
24189
|
-
onClose: c[1] || (c[1] = (v) =>
|
|
24189
|
+
data: Le(r).unsavedChanges,
|
|
24190
|
+
onClose: c[1] || (c[1] = (v) => Le(r).unsavedChanges = null)
|
|
24190
24191
|
}, null, 8, ["data"])) : ge("", !0),
|
|
24191
24192
|
Tv,
|
|
24192
24193
|
he(Sv, {
|
|
@@ -30758,7 +30759,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
30758
30759
|
disabled: i.value,
|
|
30759
30760
|
value: e.modelValue,
|
|
30760
30761
|
step: "1",
|
|
30761
|
-
onInput: c[0] || (c[0] = (...v) =>
|
|
30762
|
+
onInput: c[0] || (c[0] = (...v) => Le(o) && Le(o)(...v)),
|
|
30762
30763
|
onKeydown: a
|
|
30763
30764
|
}, null, 40, ay)),
|
|
30764
30765
|
C("button", {
|
|
@@ -30847,7 +30848,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
30847
30848
|
}, [
|
|
30848
30849
|
C("span", null, xe(((m = e.options[0].label) == null ? void 0 : m.value) || e.options[0].name), 1)
|
|
30849
30850
|
], 8, dy)) : e.options.length > 1 ? (V(), J(be, { key: 1 }, [
|
|
30850
|
-
|
|
30851
|
+
Le(r).isMobile.value ? (V(), J(be, { key: 0 }, [
|
|
30851
30852
|
C("button", {
|
|
30852
30853
|
class: "button-menu esg-btn-primary ect-bg-primary ect-uppercase ect-whitespace-nowrap",
|
|
30853
30854
|
disabled: e.disabled,
|
|
@@ -31056,7 +31057,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
31056
31057
|
he(ey, {
|
|
31057
31058
|
src: e.thumbnail.value,
|
|
31058
31059
|
loading: e.loading,
|
|
31059
|
-
"resources-domain":
|
|
31060
|
+
"resources-domain": Le(n).storefrontDetails.resourcesDomain
|
|
31060
31061
|
}, null, 8, ["src", "loading", "resources-domain"])
|
|
31061
31062
|
], 2),
|
|
31062
31063
|
C("div", {
|
|
@@ -31762,7 +31763,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
31762
31763
|
ref_key: "product",
|
|
31763
31764
|
ref: c,
|
|
31764
31765
|
"block-id": e.id,
|
|
31765
|
-
"account-id":
|
|
31766
|
+
"account-id": Le(n).activeStorefrontInfo.accountId,
|
|
31766
31767
|
configuration: e.configuration,
|
|
31767
31768
|
"catalog-type": a.value,
|
|
31768
31769
|
request: f.value,
|
|
@@ -31985,7 +31986,7 @@ const ki = (e) => (zt("data-v-d8d63f41"), e = e(), Kt(), e), xx = { class: "ect-
|
|
|
31985
31986
|
(V(!0), J(be, null, qe(f.value, (x) => (V(), J(be, {
|
|
31986
31987
|
key: x.id
|
|
31987
31988
|
}, [
|
|
31988
|
-
|
|
31989
|
+
Le(r).useVisiblity(x.visibility) ? (V(), J("div", {
|
|
31989
31990
|
key: 0,
|
|
31990
31991
|
style: Ke(x.styleObject),
|
|
31991
31992
|
class: "ect-flex ect-flex-col md:ect-flex-row",
|