expedite-components 0.5.2 → 0.5.4
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,
|
|
@@ -10739,8 +10740,12 @@ const xn = Et("comConfigurator", () => {
|
|
|
10739
10740
|
}), O = me(() => {
|
|
10740
10741
|
if (!s.value)
|
|
10741
10742
|
return {};
|
|
10742
|
-
const M = (z) => !z || !Array.isArray(z) ? [] : z.
|
|
10743
|
-
|
|
10743
|
+
const M = (z) => !z || !Array.isArray(z) ? [] : z.map((F) => ({
|
|
10744
|
+
field: F.apiName,
|
|
10745
|
+
dataType: F.dataType,
|
|
10746
|
+
picklistValues: F.picklistValues,
|
|
10747
|
+
isEditable: F.editable,
|
|
10748
|
+
defaultValue: F.defaultValue,
|
|
10744
10749
|
value: F.dataType === "BOOLEAN" ? F.value ? "true" : "false" : F.dataType === "REFERENCE" ? F.referenceRecordId || F.value || "" : F.value || ""
|
|
10745
10750
|
})), U = {
|
|
10746
10751
|
itemId: s.value.itemId,
|
|
@@ -10818,7 +10823,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10818
10823
|
e.value = new u4(M, U, Q, z);
|
|
10819
10824
|
}
|
|
10820
10825
|
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;
|
|
10826
|
+
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
10827
|
const z = await ne();
|
|
10823
10828
|
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
10829
|
F.itemTypes.forEach((j) => {
|
|
@@ -10826,7 +10831,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
10826
10831
|
P(se), (I.value.has(se.itemId) || se.relationshipInfo.relationship === "Kit") && j.selected.push(se.itemId);
|
|
10827
10832
|
});
|
|
10828
10833
|
});
|
|
10829
|
-
}), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "4")) : w(), u.value = JSON.parse(JSON.stringify(s.value)), console.timeEnd("CONFIGURATOR INIT CONFIGURATOR");
|
|
10834
|
+
}), 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
10835
|
}
|
|
10831
10836
|
async function ne() {
|
|
10832
10837
|
try {
|
|
@@ -11191,11 +11196,11 @@ const xn = Et("comConfigurator", () => {
|
|
|
11191
11196
|
icon: "arrow",
|
|
11192
11197
|
symbol: "",
|
|
11193
11198
|
size: 12,
|
|
11194
|
-
onClick: g[0] || (g[0] = (d) =>
|
|
11199
|
+
onClick: g[0] || (g[0] = (d) => Le(n).savedScreen = !1)
|
|
11195
11200
|
}),
|
|
11196
11201
|
C("h2", h4, xe(t.value.itemName), 1)
|
|
11197
11202
|
]),
|
|
11198
|
-
|
|
11203
|
+
Le(n).loading.save ? (V(), J("div", p4, [
|
|
11199
11204
|
he(G0, { svg: "" }),
|
|
11200
11205
|
v4
|
|
11201
11206
|
])) : (V(), J("div", g4, [
|
|
@@ -11225,7 +11230,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11225
11230
|
C("p", E4, xe(d.Description), 1)
|
|
11226
11231
|
]),
|
|
11227
11232
|
C("div", A4, [
|
|
11228
|
-
C("div", k4, xe(
|
|
11233
|
+
C("div", k4, xe(Le(Pt)(d.Price)), 1),
|
|
11229
11234
|
he(Ut, {
|
|
11230
11235
|
btype: d.disabled ? "secondary" : "primary",
|
|
11231
11236
|
"button-style": d.disabled ? "normal" : "outlined",
|
|
@@ -11522,7 +11527,7 @@ const xn = Et("comConfigurator", () => {
|
|
|
11522
11527
|
C("span", {
|
|
11523
11528
|
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
11529
|
"data-test-id": `configurator-footer-price-value-${v}`
|
|
11525
|
-
}, xe(
|
|
11530
|
+
}, xe(Le(Pt)(c.value)), 11, e6)
|
|
11526
11531
|
], 8, J4),
|
|
11527
11532
|
v < o.value.length - 1 ? (V(), J("div", {
|
|
11528
11533
|
key: 0,
|
|
@@ -22200,7 +22205,7 @@ const Jc = {
|
|
|
22200
22205
|
class: we({ error_color: !!e.error })
|
|
22201
22206
|
}, "*", 2)) : ge("", !0)
|
|
22202
22207
|
], 10, cp)) : ge("", !0),
|
|
22203
|
-
he(
|
|
22208
|
+
he(Le(sp), {
|
|
22204
22209
|
"content-type": "html",
|
|
22205
22210
|
toolbar: e.editorOptions,
|
|
22206
22211
|
"model-value": e.modelValue,
|
|
@@ -22284,7 +22289,7 @@ const Jc = {
|
|
|
22284
22289
|
lookup: "",
|
|
22285
22290
|
search: "",
|
|
22286
22291
|
highlight: "",
|
|
22287
|
-
onSearch: f[2] || (f[2] = (c) =>
|
|
22292
|
+
onSearch: f[2] || (f[2] = (c) => Le(s)(c, i.value))
|
|
22288
22293
|
}, null, 8, ["modelValue", "data-test-id", "label", "options", "disabled", "required", "loading"])
|
|
22289
22294
|
])) : ge("", !0),
|
|
22290
22295
|
(V(!0), J(be, null, qe(e.attributes, (c, v) => (V(), J("div", {
|
|
@@ -22658,7 +22663,7 @@ const Jc = {
|
|
|
22658
22663
|
C("div", Jp, [
|
|
22659
22664
|
C("p", Yp, xe(e.item.itemName), 1),
|
|
22660
22665
|
C("p", e3, xe(e.item.qty), 1),
|
|
22661
|
-
C("p", t3, xe(
|
|
22666
|
+
C("p", t3, xe(Le(Pt)(e.item.price)), 1)
|
|
22662
22667
|
])
|
|
22663
22668
|
]),
|
|
22664
22669
|
C("main", n3, [
|
|
@@ -22672,7 +22677,7 @@ const Jc = {
|
|
|
22672
22677
|
}, [
|
|
22673
22678
|
C("p", s3, xe(d.itemName), 1),
|
|
22674
22679
|
C("p", l3, xe(d.qty), 1),
|
|
22675
|
-
C("p", c3, " + " + xe(
|
|
22680
|
+
C("p", c3, " + " + xe(Le(Pt)(d.price)), 1)
|
|
22676
22681
|
]))), 128))
|
|
22677
22682
|
])) : ge("", !0),
|
|
22678
22683
|
c.value.length > 0 ? (V(), J("div", u3, [
|
|
@@ -22683,12 +22688,12 @@ const Jc = {
|
|
|
22683
22688
|
}, [
|
|
22684
22689
|
C("p", d3, xe(d.itemName), 1),
|
|
22685
22690
|
C("p", h3, xe(d.qty), 1),
|
|
22686
|
-
C("p", p3, " - " + xe(
|
|
22691
|
+
C("p", p3, " - " + xe(Le(Pt)(d.price)), 1)
|
|
22687
22692
|
]))), 128))
|
|
22688
22693
|
])) : ge("", !0),
|
|
22689
22694
|
C("div", v3, [
|
|
22690
22695
|
g3,
|
|
22691
|
-
C("p", m3, xe(
|
|
22696
|
+
C("p", m3, xe(Le(Pt)(v.value)), 1)
|
|
22692
22697
|
])
|
|
22693
22698
|
])
|
|
22694
22699
|
]),
|
|
@@ -22705,10 +22710,10 @@ const Jc = {
|
|
|
22705
22710
|
C("p", w3, xe(d.label), 1)
|
|
22706
22711
|
]),
|
|
22707
22712
|
C("div", E3, [
|
|
22708
|
-
C("p", A3, xe(
|
|
22713
|
+
C("p", A3, xe(Le(Pt)(d.value)), 1)
|
|
22709
22714
|
]),
|
|
22710
22715
|
C("div", k3, [
|
|
22711
|
-
C("p", O3, xe(
|
|
22716
|
+
C("p", O3, xe(Le(Pt)(d.priceChange)), 1)
|
|
22712
22717
|
])
|
|
22713
22718
|
], 2))), 128))
|
|
22714
22719
|
])
|
|
@@ -22717,10 +22722,10 @@ const Jc = {
|
|
|
22717
22722
|
C("div", I3, [
|
|
22718
22723
|
T3,
|
|
22719
22724
|
C("div", B3, [
|
|
22720
|
-
C("p", D3, xe(
|
|
22725
|
+
C("p", D3, xe(Le(Pt)(a.value.value)), 1)
|
|
22721
22726
|
]),
|
|
22722
22727
|
C("div", R3, [
|
|
22723
|
-
C("p", L3, xe(
|
|
22728
|
+
C("p", L3, xe(Le(Pt)(a.value.priceChange)), 1)
|
|
22724
22729
|
])
|
|
22725
22730
|
])
|
|
22726
22731
|
])
|
|
@@ -22839,7 +22844,7 @@ const Jc = {
|
|
|
22839
22844
|
"item-type": d.itemTypeName || "",
|
|
22840
22845
|
category: d.category,
|
|
22841
22846
|
"relationship-info": m.relationshipInfo || {},
|
|
22842
|
-
option:
|
|
22847
|
+
option: Le(n).optionByItemId.get(m.itemId),
|
|
22843
22848
|
"is-attributes": m.isAttributes,
|
|
22844
22849
|
"show-attributes": d.lightboxAttributes,
|
|
22845
22850
|
disabled: m.isDisabled,
|
|
@@ -22964,7 +22969,7 @@ const Jc = {
|
|
|
22964
22969
|
]),
|
|
22965
22970
|
n7,
|
|
22966
22971
|
C("div", r7, [
|
|
22967
|
-
C("span", i7, xe(
|
|
22972
|
+
C("span", i7, xe(Le(Pt)(o.price)), 1)
|
|
22968
22973
|
])
|
|
22969
22974
|
])
|
|
22970
22975
|
]),
|
|
@@ -22980,7 +22985,7 @@ const Jc = {
|
|
|
22980
22985
|
], 64))), 128))
|
|
22981
22986
|
]))), 128)),
|
|
22982
22987
|
C("div", s7, [
|
|
22983
|
-
C("span", l7, " Total : " + xe(
|
|
22988
|
+
C("span", l7, " Total : " + xe(Le(Pt)(r.totalPrice())), 1)
|
|
22984
22989
|
])
|
|
22985
22990
|
])
|
|
22986
22991
|
]))), 128))
|
|
@@ -23059,13 +23064,13 @@ const Jc = {
|
|
|
23059
23064
|
onScroll: v
|
|
23060
23065
|
}, [
|
|
23061
23066
|
he(u7, {
|
|
23062
|
-
summary:
|
|
23067
|
+
summary: Le(t).summary
|
|
23063
23068
|
}, null, 8, ["summary"])
|
|
23064
23069
|
], 32)),
|
|
23065
23070
|
C("div", h7, [
|
|
23066
23071
|
he(n6, {
|
|
23067
23072
|
"btn-text": r.value !== "summary" ? "Continue" : "Save",
|
|
23068
|
-
item:
|
|
23073
|
+
item: Le(t).configuration,
|
|
23069
23074
|
onContinue: f
|
|
23070
23075
|
}, null, 8, ["btn-text", "item"])
|
|
23071
23076
|
])
|
|
@@ -24061,8 +24066,8 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24061
24066
|
event: "save"
|
|
24062
24067
|
});
|
|
24063
24068
|
};
|
|
24064
|
-
return (v, l) =>
|
|
24065
|
-
|
|
24069
|
+
return (v, l) => Le(t).configuration ? (V(), J("div", xv, [
|
|
24070
|
+
Le(t).savedScreen ? (V(), Ae(N4, { key: 1 })) : (V(), J(be, { key: 0 }, [
|
|
24066
24071
|
C("div", _v, [
|
|
24067
24072
|
C("div", bv, [
|
|
24068
24073
|
ge("", !0),
|
|
@@ -24071,12 +24076,12 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24071
24076
|
buttons: u.value
|
|
24072
24077
|
}, {
|
|
24073
24078
|
"before-button": Ve(() => [
|
|
24074
|
-
|
|
24079
|
+
Le(t).isYearlyPricingExist ? (V(), Ae(yv, {
|
|
24075
24080
|
key: 0,
|
|
24076
|
-
modelValue:
|
|
24081
|
+
modelValue: Le(t).showYearlyPricing,
|
|
24077
24082
|
"onUpdate:modelValue": [
|
|
24078
|
-
l[0] || (l[0] = (h) =>
|
|
24079
|
-
|
|
24083
|
+
l[0] || (l[0] = (h) => Le(t).showYearlyPricing = h),
|
|
24084
|
+
Le(t).changePricingScheme
|
|
24080
24085
|
],
|
|
24081
24086
|
"left-align": "",
|
|
24082
24087
|
class: "ect-text-nowrap",
|
|
@@ -24124,21 +24129,21 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24124
24129
|
},
|
|
24125
24130
|
emits: ["ready", "action"],
|
|
24126
24131
|
setup(e, { emit: n }) {
|
|
24127
|
-
const t = e, r = n, i =
|
|
24132
|
+
const t = e, r = n, i = xn();
|
|
24128
24133
|
return Un(async () => {
|
|
24129
|
-
|
|
24130
|
-
}), (
|
|
24134
|
+
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");
|
|
24135
|
+
}), (o, a) => (V(), J("div", {
|
|
24131
24136
|
class: "ect-h-full ect-flex ect-flex-col",
|
|
24132
24137
|
"data-item-id": e.itemId,
|
|
24133
24138
|
"data-qli-id": e.qliId
|
|
24134
24139
|
}, [
|
|
24135
|
-
i.
|
|
24140
|
+
Le(i).loading.init ? (V(), J("div", Ov, [
|
|
24136
24141
|
he(W0)
|
|
24137
24142
|
])) : (V(), J("div", kv, [
|
|
24138
24143
|
he(Ev, {
|
|
24139
24144
|
"qli-id": e.qliId,
|
|
24140
|
-
onAction:
|
|
24141
|
-
onSave:
|
|
24145
|
+
onAction: a[0] || (a[0] = (s) => r("action", s)),
|
|
24146
|
+
onSave: o.handleSave
|
|
24142
24147
|
}, null, 8, ["qli-id", "onSave"])
|
|
24143
24148
|
]))
|
|
24144
24149
|
], 8, Av));
|
|
@@ -24178,15 +24183,15 @@ const X7 = /* @__PURE__ */ Re(V7, [["render", K7], ["__scopeId", "data-v-b36acc6
|
|
|
24178
24183
|
}), (f, c) => (V(), J(be, null, [
|
|
24179
24184
|
he(_h),
|
|
24180
24185
|
he(Us),
|
|
24181
|
-
|
|
24186
|
+
Le(i).errorPopup ? (V(), Ae(oh, {
|
|
24182
24187
|
key: 0,
|
|
24183
|
-
data:
|
|
24184
|
-
onClose: c[0] || (c[0] = (v) =>
|
|
24188
|
+
data: Le(i).errorPopup,
|
|
24189
|
+
onClose: c[0] || (c[0] = (v) => Le(i).errorPopup = null)
|
|
24185
24190
|
}, null, 8, ["data"])) : ge("", !0),
|
|
24186
|
-
|
|
24191
|
+
Le(r).unsavedChanges ? (V(), Ae(lh, {
|
|
24187
24192
|
key: 1,
|
|
24188
|
-
data:
|
|
24189
|
-
onClose: c[1] || (c[1] = (v) =>
|
|
24193
|
+
data: Le(r).unsavedChanges,
|
|
24194
|
+
onClose: c[1] || (c[1] = (v) => Le(r).unsavedChanges = null)
|
|
24190
24195
|
}, null, 8, ["data"])) : ge("", !0),
|
|
24191
24196
|
Tv,
|
|
24192
24197
|
he(Sv, {
|
|
@@ -30758,7 +30763,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
30758
30763
|
disabled: i.value,
|
|
30759
30764
|
value: e.modelValue,
|
|
30760
30765
|
step: "1",
|
|
30761
|
-
onInput: c[0] || (c[0] = (...v) =>
|
|
30766
|
+
onInput: c[0] || (c[0] = (...v) => Le(o) && Le(o)(...v)),
|
|
30762
30767
|
onKeydown: a
|
|
30763
30768
|
}, null, 40, ay)),
|
|
30764
30769
|
C("button", {
|
|
@@ -30847,7 +30852,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
30847
30852
|
}, [
|
|
30848
30853
|
C("span", null, xe(((m = e.options[0].label) == null ? void 0 : m.value) || e.options[0].name), 1)
|
|
30849
30854
|
], 8, dy)) : e.options.length > 1 ? (V(), J(be, { key: 1 }, [
|
|
30850
|
-
|
|
30855
|
+
Le(r).isMobile.value ? (V(), J(be, { key: 0 }, [
|
|
30851
30856
|
C("button", {
|
|
30852
30857
|
class: "button-menu esg-btn-primary ect-bg-primary ect-uppercase ect-whitespace-nowrap",
|
|
30853
30858
|
disabled: e.disabled,
|
|
@@ -31056,7 +31061,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
31056
31061
|
he(ey, {
|
|
31057
31062
|
src: e.thumbnail.value,
|
|
31058
31063
|
loading: e.loading,
|
|
31059
|
-
"resources-domain":
|
|
31064
|
+
"resources-domain": Le(n).storefrontDetails.resourcesDomain
|
|
31060
31065
|
}, null, 8, ["src", "loading", "resources-domain"])
|
|
31061
31066
|
], 2),
|
|
31062
31067
|
C("div", {
|
|
@@ -31762,7 +31767,7 @@ const Jm = /* @__PURE__ */ Re(dm, [["render", Qm], ["__scopeId", "data-v-617229a
|
|
|
31762
31767
|
ref_key: "product",
|
|
31763
31768
|
ref: c,
|
|
31764
31769
|
"block-id": e.id,
|
|
31765
|
-
"account-id":
|
|
31770
|
+
"account-id": Le(n).activeStorefrontInfo.accountId,
|
|
31766
31771
|
configuration: e.configuration,
|
|
31767
31772
|
"catalog-type": a.value,
|
|
31768
31773
|
request: f.value,
|
|
@@ -31985,7 +31990,7 @@ const ki = (e) => (zt("data-v-d8d63f41"), e = e(), Kt(), e), xx = { class: "ect-
|
|
|
31985
31990
|
(V(!0), J(be, null, qe(f.value, (x) => (V(), J(be, {
|
|
31986
31991
|
key: x.id
|
|
31987
31992
|
}, [
|
|
31988
|
-
|
|
31993
|
+
Le(r).useVisiblity(x.visibility) ? (V(), J("div", {
|
|
31989
31994
|
key: 0,
|
|
31990
31995
|
style: Ke(x.styleObject),
|
|
31991
31996
|
class: "ect-flex ect-flex-col md:ect-flex-row",
|