@vehiclehistory/property-lib 0.0.70 → 0.0.72
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/main.es.js +201 -162
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as M, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { memo as x, useState as
|
|
2
|
+
import { memo as x, useState as Z, useEffect as N, useRef as G } from "react";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
const
|
|
4
|
+
const Q = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
7
7
|
small: "w-6 h-6",
|
|
@@ -491,23 +491,23 @@ const U = {
|
|
|
491
491
|
youtube: {
|
|
492
492
|
path: '<path d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />'
|
|
493
493
|
}
|
|
494
|
-
},
|
|
494
|
+
}, _ = (c) => J[c], Y = ({
|
|
495
495
|
color: c = "text-current",
|
|
496
496
|
className: e,
|
|
497
497
|
name: t,
|
|
498
498
|
size: a = "medium",
|
|
499
499
|
viewBox: n = "0 0 20 20"
|
|
500
500
|
}) => {
|
|
501
|
-
const s =
|
|
502
|
-
return
|
|
501
|
+
const s = _(t), [r, l] = Z(c), [i, d] = Z(s);
|
|
502
|
+
return N(() => {
|
|
503
503
|
d(s);
|
|
504
|
-
}, [s]),
|
|
504
|
+
}, [s]), N(() => {
|
|
505
505
|
l(c);
|
|
506
506
|
}, [c]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
507
507
|
"svg",
|
|
508
508
|
{
|
|
509
509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
510
|
-
className: `${
|
|
510
|
+
className: `${Q[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
|
|
511
511
|
style: { maxWidth: "4em" },
|
|
512
512
|
role: "presentation",
|
|
513
513
|
viewBox: n,
|
|
@@ -516,7 +516,7 @@ const U = {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
},
|
|
519
|
+
}, A = x(Y), K = ({
|
|
520
520
|
children: c,
|
|
521
521
|
className: e,
|
|
522
522
|
clickHandler: t,
|
|
@@ -525,7 +525,7 @@ const U = {
|
|
|
525
525
|
unmount: s = !0,
|
|
526
526
|
isOpen: r = !1
|
|
527
527
|
}) => {
|
|
528
|
-
const [l, i] =
|
|
528
|
+
const [l, i] = Z(r);
|
|
529
529
|
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(k, { children: [
|
|
530
530
|
/* @__PURE__ */ M(
|
|
531
531
|
"button",
|
|
@@ -545,7 +545,7 @@ const U = {
|
|
|
545
545
|
children: [
|
|
546
546
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
547
547
|
/* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
548
|
-
|
|
548
|
+
A,
|
|
549
549
|
{
|
|
550
550
|
name: "chevronDown",
|
|
551
551
|
size: "small",
|
|
@@ -577,7 +577,7 @@ const U = {
|
|
|
577
577
|
}
|
|
578
578
|
)
|
|
579
579
|
] }) });
|
|
580
|
-
},
|
|
580
|
+
}, Q1 = x(K), X = ({
|
|
581
581
|
children: c,
|
|
582
582
|
className: e = "",
|
|
583
583
|
messages: t = [],
|
|
@@ -621,7 +621,7 @@ const U = {
|
|
|
621
621
|
...r,
|
|
622
622
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
623
623
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
624
|
-
|
|
624
|
+
A,
|
|
625
625
|
{
|
|
626
626
|
name: d,
|
|
627
627
|
viewBox: "0 0 24 24",
|
|
@@ -639,7 +639,7 @@ const U = {
|
|
|
639
639
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
640
640
|
a
|
|
641
641
|
),
|
|
642
|
-
children: t.map((
|
|
642
|
+
children: t.map((C, H) => /* @__PURE__ */ o("li", { children: C }, H))
|
|
643
643
|
}
|
|
644
644
|
) : "",
|
|
645
645
|
c
|
|
@@ -647,7 +647,7 @@ const U = {
|
|
|
647
647
|
] })
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
|
-
}, J1 = x(
|
|
650
|
+
}, J1 = x(X), e1 = ({
|
|
651
651
|
autoFocus: c = !1,
|
|
652
652
|
className: e = "",
|
|
653
653
|
dataSearch: t = "container",
|
|
@@ -660,8 +660,8 @@ const U = {
|
|
|
660
660
|
name: d = "",
|
|
661
661
|
options: h = [],
|
|
662
662
|
placeholder: p = "",
|
|
663
|
-
props:
|
|
664
|
-
required:
|
|
663
|
+
props: C = {},
|
|
664
|
+
required: H = !1,
|
|
665
665
|
showSearchIcon: v = !0,
|
|
666
666
|
size: f = "medium",
|
|
667
667
|
styles: m = null,
|
|
@@ -687,7 +687,7 @@ const U = {
|
|
|
687
687
|
),
|
|
688
688
|
children: [
|
|
689
689
|
/* @__PURE__ */ o(
|
|
690
|
-
|
|
690
|
+
A,
|
|
691
691
|
{
|
|
692
692
|
className: "home-search select-none text-gray-500",
|
|
693
693
|
name: l,
|
|
@@ -696,7 +696,7 @@ const U = {
|
|
|
696
696
|
}
|
|
697
697
|
),
|
|
698
698
|
/* @__PURE__ */ o(
|
|
699
|
-
|
|
699
|
+
A,
|
|
700
700
|
{
|
|
701
701
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
702
702
|
name: "arrowLeft",
|
|
@@ -723,14 +723,14 @@ const U = {
|
|
|
723
723
|
},
|
|
724
724
|
r
|
|
725
725
|
),
|
|
726
|
-
required:
|
|
726
|
+
required: H,
|
|
727
727
|
autoComplete: "off",
|
|
728
728
|
value: a,
|
|
729
729
|
placeholder: !p && n ? " " : p,
|
|
730
730
|
type: "search",
|
|
731
731
|
name: d || "search-input",
|
|
732
732
|
"data-id": "search-input",
|
|
733
|
-
...
|
|
733
|
+
...C
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
736
|
n && /* @__PURE__ */ o(
|
|
@@ -754,7 +754,7 @@ const U = {
|
|
|
754
754
|
"data-id": "search-clear",
|
|
755
755
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
756
756
|
children: /* @__PURE__ */ o(
|
|
757
|
-
|
|
757
|
+
A,
|
|
758
758
|
{
|
|
759
759
|
className: "cursor-pointer text-gray-500",
|
|
760
760
|
name: "xCircle",
|
|
@@ -770,7 +770,7 @@ const U = {
|
|
|
770
770
|
"data-id": "search-loading",
|
|
771
771
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
772
772
|
children: /* @__PURE__ */ o(
|
|
773
|
-
|
|
773
|
+
A,
|
|
774
774
|
{
|
|
775
775
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
776
776
|
name: "spinnerDark",
|
|
@@ -814,7 +814,7 @@ const U = {
|
|
|
814
814
|
)
|
|
815
815
|
]
|
|
816
816
|
}
|
|
817
|
-
),
|
|
817
|
+
), _1 = e1, t1 = ({
|
|
818
818
|
children: c,
|
|
819
819
|
className: e,
|
|
820
820
|
size: t = "sm",
|
|
@@ -833,7 +833,7 @@ const U = {
|
|
|
833
833
|
),
|
|
834
834
|
children: c
|
|
835
835
|
}
|
|
836
|
-
),
|
|
836
|
+
), Y1 = t1, a1 = ({
|
|
837
837
|
borderless: c = !1,
|
|
838
838
|
leftIcon: e,
|
|
839
839
|
leftIconProps: t = {},
|
|
@@ -846,15 +846,15 @@ const U = {
|
|
|
846
846
|
rightIconProps: d = {},
|
|
847
847
|
rounded: h = !1,
|
|
848
848
|
size: p = "md",
|
|
849
|
-
type:
|
|
850
|
-
uppercase:
|
|
849
|
+
type: C = "button",
|
|
850
|
+
uppercase: H = !1,
|
|
851
851
|
variation: v = "primary"
|
|
852
852
|
}) => {
|
|
853
853
|
const f = r ? "a" : "button";
|
|
854
854
|
return /* @__PURE__ */ M(
|
|
855
855
|
f,
|
|
856
856
|
{
|
|
857
|
-
type: f !== "a" ?
|
|
857
|
+
type: f !== "a" ? C : null,
|
|
858
858
|
className: u(
|
|
859
859
|
"button",
|
|
860
860
|
{
|
|
@@ -863,7 +863,7 @@ const U = {
|
|
|
863
863
|
"button--rounded": h,
|
|
864
864
|
"button--disabled": s,
|
|
865
865
|
"button--custom-link": r,
|
|
866
|
-
"button--uppercase":
|
|
866
|
+
"button--uppercase": H,
|
|
867
867
|
"button--borderless": c || v === "link"
|
|
868
868
|
},
|
|
869
869
|
n
|
|
@@ -873,7 +873,7 @@ const U = {
|
|
|
873
873
|
...l,
|
|
874
874
|
children: [
|
|
875
875
|
e && /* @__PURE__ */ o(
|
|
876
|
-
|
|
876
|
+
A,
|
|
877
877
|
{
|
|
878
878
|
name: e,
|
|
879
879
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -883,7 +883,7 @@ const U = {
|
|
|
883
883
|
),
|
|
884
884
|
a,
|
|
885
885
|
i && /* @__PURE__ */ o(
|
|
886
|
-
|
|
886
|
+
A,
|
|
887
887
|
{
|
|
888
888
|
name: i,
|
|
889
889
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -894,7 +894,7 @@ const U = {
|
|
|
894
894
|
]
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
|
-
}, E = x(a1), n1 = ({ children: c, className: e }) => /* @__PURE__ */ o("div", { className: u("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: c }),
|
|
897
|
+
}, E = x(a1), n1 = ({ children: c, className: e }) => /* @__PURE__ */ o("div", { className: u("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: c }), K1 = n1, s1 = ({
|
|
898
898
|
block: c = !1,
|
|
899
899
|
borderless: e = !1,
|
|
900
900
|
children: t,
|
|
@@ -920,7 +920,7 @@ const U = {
|
|
|
920
920
|
role: l,
|
|
921
921
|
children: t
|
|
922
922
|
}
|
|
923
|
-
),
|
|
923
|
+
), X1 = s1, l1 = ({
|
|
924
924
|
checked: c = !1,
|
|
925
925
|
children: e,
|
|
926
926
|
className: t = "",
|
|
@@ -933,12 +933,12 @@ const U = {
|
|
|
933
933
|
variation: d = "primary",
|
|
934
934
|
value: h = ""
|
|
935
935
|
}) => {
|
|
936
|
-
const p = r ? "div" : "label",
|
|
936
|
+
const p = r ? "div" : "label", C = p === "label" ? { htmlFor: s } : {};
|
|
937
937
|
return /* @__PURE__ */ M(
|
|
938
938
|
p,
|
|
939
939
|
{
|
|
940
940
|
className: u("checkbox flex items-center", d, t),
|
|
941
|
-
...
|
|
941
|
+
...C,
|
|
942
942
|
children: [
|
|
943
943
|
/* @__PURE__ */ o(
|
|
944
944
|
"input",
|
|
@@ -1001,8 +1001,8 @@ const U = {
|
|
|
1001
1001
|
hideClose: d = !1,
|
|
1002
1002
|
iconSize: h = "medium",
|
|
1003
1003
|
preventPageScroll: p = !0,
|
|
1004
|
-
stickyHeader:
|
|
1005
|
-
title:
|
|
1004
|
+
stickyHeader: C = !1,
|
|
1005
|
+
title: H = "",
|
|
1006
1006
|
titleClass: v = ""
|
|
1007
1007
|
}) => /* @__PURE__ */ M(k, { children: [
|
|
1008
1008
|
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: c }),
|
|
@@ -1027,14 +1027,14 @@ const U = {
|
|
|
1027
1027
|
className: u(
|
|
1028
1028
|
"dialog-header",
|
|
1029
1029
|
{
|
|
1030
|
-
"sticky top-0 bg-white z-10":
|
|
1031
|
-
"!pb-0 border-0 justify-end": !
|
|
1032
|
-
"justify-between border-b":
|
|
1030
|
+
"sticky top-0 bg-white z-10": C,
|
|
1031
|
+
"!pb-0 border-0 justify-end": !H,
|
|
1032
|
+
"justify-between border-b": H
|
|
1033
1033
|
},
|
|
1034
1034
|
i
|
|
1035
1035
|
),
|
|
1036
1036
|
children: [
|
|
1037
|
-
|
|
1037
|
+
H && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: v, children: H }),
|
|
1038
1038
|
!d && /* @__PURE__ */ o(
|
|
1039
1039
|
"button",
|
|
1040
1040
|
{
|
|
@@ -1044,7 +1044,7 @@ const U = {
|
|
|
1044
1044
|
"data-dialog-close": "",
|
|
1045
1045
|
value: "close",
|
|
1046
1046
|
children: /* @__PURE__ */ o(
|
|
1047
|
-
|
|
1047
|
+
A,
|
|
1048
1048
|
{
|
|
1049
1049
|
name: "close",
|
|
1050
1050
|
size: h,
|
|
@@ -1081,27 +1081,27 @@ const U = {
|
|
|
1081
1081
|
headerClass: d = "",
|
|
1082
1082
|
hideClose: h = !1,
|
|
1083
1083
|
iconSize: p = "medium",
|
|
1084
|
-
isOpen:
|
|
1085
|
-
setDialogOpen:
|
|
1084
|
+
isOpen: C = !1,
|
|
1085
|
+
setDialogOpen: H,
|
|
1086
1086
|
stickyHeader: v = !1,
|
|
1087
1087
|
title: f = "",
|
|
1088
1088
|
titleClass: m = ""
|
|
1089
1089
|
}) => {
|
|
1090
|
-
const V =
|
|
1091
|
-
V.current.classList.add("closing"), await q(V.current), V.current.classList.remove("closing"), s && s(),
|
|
1092
|
-
}, b = async (
|
|
1093
|
-
|
|
1094
|
-
}, S = async ({ clientX:
|
|
1095
|
-
const { left: P, right: R, top: W, bottom:
|
|
1096
|
-
(!V.current.contains(j) ||
|
|
1097
|
-
}, q = (
|
|
1098
|
-
|
|
1090
|
+
const V = G(null), w = async () => {
|
|
1091
|
+
V.current.classList.add("closing"), await q(V.current), V.current.classList.remove("closing"), s && s(), H(!1);
|
|
1092
|
+
}, b = async (y) => {
|
|
1093
|
+
y.key === "Escape" && await w();
|
|
1094
|
+
}, S = async ({ clientX: y, clientY: z, target: j }) => {
|
|
1095
|
+
const { left: P, right: R, top: W, bottom: U } = V.current.getBoundingClientRect() ?? {};
|
|
1096
|
+
(!V.current.contains(j) || y < P || y > R || z < W || z > U) && await w();
|
|
1097
|
+
}, q = (y) => Promise.allSettled(
|
|
1098
|
+
y.getAnimations().map((z) => z.finished)
|
|
1099
1099
|
);
|
|
1100
|
-
return
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
}, [
|
|
1104
|
-
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () =>
|
|
1100
|
+
return N(() => {
|
|
1101
|
+
const y = V.current;
|
|
1102
|
+
y && (C ? y.showModal() : typeof y.close == "function" && y.close());
|
|
1103
|
+
}, [C]), /* @__PURE__ */ M(k, { children: [
|
|
1104
|
+
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => H(!0), children: c }),
|
|
1105
1105
|
/* @__PURE__ */ M(
|
|
1106
1106
|
"dialog",
|
|
1107
1107
|
{
|
|
@@ -1110,13 +1110,13 @@ const U = {
|
|
|
1110
1110
|
className: u(
|
|
1111
1111
|
"dialog",
|
|
1112
1112
|
{
|
|
1113
|
-
hidden: !
|
|
1113
|
+
hidden: !C,
|
|
1114
1114
|
"xs-max:h-full xs-max:max-h-full": i
|
|
1115
1115
|
},
|
|
1116
1116
|
a
|
|
1117
1117
|
),
|
|
1118
1118
|
onKeyDown: b,
|
|
1119
|
-
onClick: (
|
|
1119
|
+
onClick: (y) => r ? null : S(y),
|
|
1120
1120
|
children: [
|
|
1121
1121
|
/* @__PURE__ */ M(
|
|
1122
1122
|
"header",
|
|
@@ -1137,7 +1137,7 @@ const U = {
|
|
|
1137
1137
|
"data-dialog-close": "",
|
|
1138
1138
|
onClick: w,
|
|
1139
1139
|
children: /* @__PURE__ */ o(
|
|
1140
|
-
|
|
1140
|
+
A,
|
|
1141
1141
|
{
|
|
1142
1142
|
name: "close",
|
|
1143
1143
|
size: p,
|
|
@@ -1190,18 +1190,18 @@ const U = {
|
|
|
1190
1190
|
const i = document.querySelector(".loading-bar__inner");
|
|
1191
1191
|
if (!i) return;
|
|
1192
1192
|
let d, h, p = !1;
|
|
1193
|
-
function H
|
|
1194
|
-
d === void 0 && (d =
|
|
1195
|
-
const v =
|
|
1196
|
-
if (h !==
|
|
1193
|
+
function C(H) {
|
|
1194
|
+
d === void 0 && (d = H);
|
|
1195
|
+
const v = H - d;
|
|
1196
|
+
if (h !== H) {
|
|
1197
1197
|
const f = v / n * 101;
|
|
1198
|
-
i.style.width = `${f}%`, e && e({ elapsed: v, percentage: f }), f >= 101 && (l && l(), p = !0, window.cancelAnimationFrame(
|
|
1198
|
+
i.style.width = `${f}%`, e && e({ elapsed: v, percentage: f }), f >= 101 && (l && l(), p = !0, window.cancelAnimationFrame(H));
|
|
1199
1199
|
}
|
|
1200
|
-
v < n && (h =
|
|
1200
|
+
v < n && (h = H, p || window.requestAnimationFrame(C));
|
|
1201
1201
|
}
|
|
1202
|
-
window.requestAnimationFrame(
|
|
1202
|
+
window.requestAnimationFrame(C);
|
|
1203
1203
|
}
|
|
1204
|
-
return
|
|
1204
|
+
return N(() => {
|
|
1205
1205
|
r({ cb: c });
|
|
1206
1206
|
}, []), /* @__PURE__ */ o(
|
|
1207
1207
|
"div",
|
|
@@ -1283,8 +1283,8 @@ const U = {
|
|
|
1283
1283
|
}) => {
|
|
1284
1284
|
const d = ((h, p) => {
|
|
1285
1285
|
if (h) {
|
|
1286
|
-
const
|
|
1287
|
-
return
|
|
1286
|
+
const C = Number(p) / h;
|
|
1287
|
+
return C > 1 ? 100 : C * 100;
|
|
1288
1288
|
}
|
|
1289
1289
|
return n;
|
|
1290
1290
|
})(s, n);
|
|
@@ -1366,14 +1366,14 @@ const U = {
|
|
|
1366
1366
|
props: d = {},
|
|
1367
1367
|
selectClass: h = "",
|
|
1368
1368
|
styles: p = null,
|
|
1369
|
-
variation:
|
|
1370
|
-
value:
|
|
1369
|
+
variation: C = "primary",
|
|
1370
|
+
value: H
|
|
1371
1371
|
}) => {
|
|
1372
1372
|
const v = i ? { defaultValue: "" } : {};
|
|
1373
1373
|
return /* @__PURE__ */ M(
|
|
1374
1374
|
"label",
|
|
1375
1375
|
{
|
|
1376
|
-
className: u("relative select", e,
|
|
1376
|
+
className: u("relative select", e, C),
|
|
1377
1377
|
style: p ? { ...p } : null,
|
|
1378
1378
|
children: [
|
|
1379
1379
|
s,
|
|
@@ -1387,7 +1387,7 @@ const U = {
|
|
|
1387
1387
|
),
|
|
1388
1388
|
id: n,
|
|
1389
1389
|
name: r,
|
|
1390
|
-
value:
|
|
1390
|
+
value: H,
|
|
1391
1391
|
...v,
|
|
1392
1392
|
...d,
|
|
1393
1393
|
children: [
|
|
@@ -1415,11 +1415,11 @@ const U = {
|
|
|
1415
1415
|
c
|
|
1416
1416
|
),
|
|
1417
1417
|
children: [
|
|
1418
|
-
/* @__PURE__ */ o(
|
|
1418
|
+
/* @__PURE__ */ o(A, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1419
1419
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1420
1420
|
]
|
|
1421
1421
|
}
|
|
1422
|
-
), h2 = x(V1),
|
|
1422
|
+
), h2 = x(V1), C1 = ({
|
|
1423
1423
|
placeholderClass: c = "",
|
|
1424
1424
|
children: e,
|
|
1425
1425
|
className: t = "",
|
|
@@ -1433,7 +1433,7 @@ const U = {
|
|
|
1433
1433
|
id: `btn-left-${a}`,
|
|
1434
1434
|
type: "button",
|
|
1435
1435
|
className: "slider-button__prev ",
|
|
1436
|
-
children: /* @__PURE__ */ o(
|
|
1436
|
+
children: /* @__PURE__ */ o(A, { name: "chevronLeft" })
|
|
1437
1437
|
}
|
|
1438
1438
|
),
|
|
1439
1439
|
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ o(
|
|
@@ -1451,18 +1451,18 @@ const U = {
|
|
|
1451
1451
|
id: `btn-right-${a}`,
|
|
1452
1452
|
type: "button",
|
|
1453
1453
|
className: "slider-button__next",
|
|
1454
|
-
children: /* @__PURE__ */ o(
|
|
1454
|
+
children: /* @__PURE__ */ o(A, { name: "chevronRight" })
|
|
1455
1455
|
}
|
|
1456
1456
|
)
|
|
1457
|
-
] }), u2 = x(
|
|
1457
|
+
] }), u2 = x(C1), H1 = {
|
|
1458
1458
|
name: "spinnerDark",
|
|
1459
1459
|
color: "text-teal-700",
|
|
1460
1460
|
viewBox: "0 0 24 24"
|
|
1461
1461
|
}, L1 = ({ className: c = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
|
|
1462
|
-
|
|
1462
|
+
A,
|
|
1463
1463
|
{
|
|
1464
1464
|
size: "xSmall",
|
|
1465
|
-
...
|
|
1465
|
+
...H1,
|
|
1466
1466
|
className: `animate-spin ${c}`
|
|
1467
1467
|
}
|
|
1468
1468
|
) }), p2 = x(L1), g1 = ({
|
|
@@ -1517,7 +1517,7 @@ const U = {
|
|
|
1517
1517
|
id: `${n}-clear`,
|
|
1518
1518
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1519
1519
|
children: /* @__PURE__ */ o(
|
|
1520
|
-
|
|
1520
|
+
A,
|
|
1521
1521
|
{
|
|
1522
1522
|
size: "xSmall",
|
|
1523
1523
|
name: "xCircle",
|
|
@@ -1540,16 +1540,16 @@ const U = {
|
|
|
1540
1540
|
props: d = {},
|
|
1541
1541
|
styles: h = null,
|
|
1542
1542
|
type: p = "text",
|
|
1543
|
-
value:
|
|
1544
|
-
variation:
|
|
1543
|
+
value: C,
|
|
1544
|
+
variation: H = "primary"
|
|
1545
1545
|
}) => /* @__PURE__ */ M(
|
|
1546
1546
|
"div",
|
|
1547
1547
|
{
|
|
1548
|
-
className: u("relative textbox",
|
|
1548
|
+
className: u("relative textbox", H, c),
|
|
1549
1549
|
style: h ? { ...h } : null,
|
|
1550
1550
|
children: [
|
|
1551
1551
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1552
|
-
|
|
1552
|
+
A,
|
|
1553
1553
|
{
|
|
1554
1554
|
size: "xSmall",
|
|
1555
1555
|
name: n,
|
|
@@ -1564,7 +1564,7 @@ const U = {
|
|
|
1564
1564
|
id: s,
|
|
1565
1565
|
name: l,
|
|
1566
1566
|
type: p,
|
|
1567
|
-
value:
|
|
1567
|
+
value: C,
|
|
1568
1568
|
autoComplete: "off",
|
|
1569
1569
|
className: u(
|
|
1570
1570
|
"form-input",
|
|
@@ -1585,7 +1585,7 @@ const U = {
|
|
|
1585
1585
|
id: `${s}-clear`,
|
|
1586
1586
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1587
1587
|
children: /* @__PURE__ */ o(
|
|
1588
|
-
|
|
1588
|
+
A,
|
|
1589
1589
|
{
|
|
1590
1590
|
size: "xSmall",
|
|
1591
1591
|
name: "xCircle",
|
|
@@ -1695,7 +1695,7 @@ const U = {
|
|
|
1695
1695
|
]
|
|
1696
1696
|
}
|
|
1697
1697
|
);
|
|
1698
|
-
}, f2 = x(x1),
|
|
1698
|
+
}, f2 = x(x1), A1 = ({
|
|
1699
1699
|
block: c = !1,
|
|
1700
1700
|
children: e,
|
|
1701
1701
|
className: t,
|
|
@@ -1733,7 +1733,7 @@ const U = {
|
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
1735
1735
|
);
|
|
1736
|
-
}, V2 = x(
|
|
1736
|
+
}, V2 = x(A1), y1 = ({
|
|
1737
1737
|
children: c,
|
|
1738
1738
|
className: e,
|
|
1739
1739
|
colGap: t = 2,
|
|
@@ -1768,7 +1768,7 @@ const U = {
|
|
|
1768
1768
|
c
|
|
1769
1769
|
]
|
|
1770
1770
|
}
|
|
1771
|
-
),
|
|
1771
|
+
), C2 = x(y1), w1 = ({
|
|
1772
1772
|
breakPage: c = !1,
|
|
1773
1773
|
children: e,
|
|
1774
1774
|
className: t,
|
|
@@ -1794,7 +1794,7 @@ const U = {
|
|
|
1794
1794
|
e
|
|
1795
1795
|
]
|
|
1796
1796
|
}
|
|
1797
|
-
),
|
|
1797
|
+
), H2 = w1, S1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: u("stacked-list", e), children: c }), L2 = S1, k1 = ({ align: c = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ o(
|
|
1798
1798
|
a,
|
|
1799
1799
|
{
|
|
1800
1800
|
className: u(
|
|
@@ -1820,9 +1820,9 @@ const U = {
|
|
|
1820
1820
|
"menu-open": "menu-open 0.1s ease-out",
|
|
1821
1821
|
"menu-close": "menu-close 0.1s ease-in-out",
|
|
1822
1822
|
indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
|
|
1823
|
-
}, Z1 = {
|
|
1824
|
-
map: "var(--map)"
|
|
1825
1823
|
}, N1 = {
|
|
1824
|
+
map: "var(--map)"
|
|
1825
|
+
}, Z1 = {
|
|
1826
1826
|
"3xs": "0.5rem",
|
|
1827
1827
|
xxs: "0.625rem",
|
|
1828
1828
|
"2.5xl": "1.625rem",
|
|
@@ -1920,16 +1920,16 @@ const U = {
|
|
|
1920
1920
|
transform: "translateX(100%)"
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
},
|
|
1923
|
+
}, D1 = {
|
|
1924
1924
|
20: "5rem",
|
|
1925
1925
|
24: "6rem",
|
|
1926
1926
|
28: "7rem",
|
|
1927
1927
|
32: "8rem"
|
|
1928
|
-
},
|
|
1928
|
+
}, T1 = {
|
|
1929
1929
|
aside: "268px",
|
|
1930
1930
|
container: "724px",
|
|
1931
1931
|
page: "1200px"
|
|
1932
|
-
},
|
|
1932
|
+
}, B1 = {
|
|
1933
1933
|
"xs-max": {
|
|
1934
1934
|
max: "639px"
|
|
1935
1935
|
},
|
|
@@ -1947,23 +1947,23 @@ const U = {
|
|
|
1947
1947
|
max: "1199px"
|
|
1948
1948
|
},
|
|
1949
1949
|
"lg-up": "1200px"
|
|
1950
|
-
},
|
|
1950
|
+
}, I1 = {
|
|
1951
1951
|
0: "0ms",
|
|
1952
1952
|
50: "50ms"
|
|
1953
|
-
},
|
|
1953
|
+
}, O1 = {
|
|
1954
1954
|
"center-top": "center 30%"
|
|
1955
|
-
},
|
|
1955
|
+
}, T = {
|
|
1956
1956
|
animation: z1,
|
|
1957
|
-
backgroundImage:
|
|
1958
|
-
fontSize:
|
|
1957
|
+
backgroundImage: N1,
|
|
1958
|
+
fontSize: Z1,
|
|
1959
1959
|
gridTemplateColumns: E1,
|
|
1960
1960
|
keyframes: F1,
|
|
1961
|
-
margin:
|
|
1962
|
-
maxWidth:
|
|
1963
|
-
screens:
|
|
1964
|
-
transitionDuration:
|
|
1965
|
-
transformOrigin:
|
|
1966
|
-
},
|
|
1961
|
+
margin: D1,
|
|
1962
|
+
maxWidth: T1,
|
|
1963
|
+
screens: B1,
|
|
1964
|
+
transitionDuration: I1,
|
|
1965
|
+
transformOrigin: O1
|
|
1966
|
+
}, B = {
|
|
1967
1967
|
black: {
|
|
1968
1968
|
50: "#FCFCFC",
|
|
1969
1969
|
100: "#F9F9F9",
|
|
@@ -2054,7 +2054,7 @@ const U = {
|
|
|
2054
2054
|
current: "currentColor",
|
|
2055
2055
|
transparent: "transparent",
|
|
2056
2056
|
white: "#fff"
|
|
2057
|
-
},
|
|
2057
|
+
}, I = {
|
|
2058
2058
|
blue: {
|
|
2059
2059
|
100: "hsl(240 42% 22%)",
|
|
2060
2060
|
60: "hsl(240 24% 34%)",
|
|
@@ -2071,9 +2071,9 @@ const U = {
|
|
|
2071
2071
|
white: "hsl(0 0% 100%)",
|
|
2072
2072
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2073
2073
|
}, M2 = {
|
|
2074
|
-
|
|
2075
|
-
...
|
|
2076
|
-
},
|
|
2074
|
+
...B,
|
|
2075
|
+
...I
|
|
2076
|
+
}, $1 = ({ matchUtilities: c, theme: e }) => c(
|
|
2077
2077
|
{
|
|
2078
2078
|
aspect: (t) => ({
|
|
2079
2079
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2111,7 +2111,7 @@ const U = {
|
|
|
2111
2111
|
"max-block": (e) => ({
|
|
2112
2112
|
"max-block-size": e
|
|
2113
2113
|
})
|
|
2114
|
-
}),
|
|
2114
|
+
}), D = ({
|
|
2115
2115
|
addUtilities: c,
|
|
2116
2116
|
e,
|
|
2117
2117
|
classPrefix: t = "",
|
|
@@ -2126,10 +2126,10 @@ const U = {
|
|
|
2126
2126
|
const p = {
|
|
2127
2127
|
"font-size": h,
|
|
2128
2128
|
...a
|
|
2129
|
-
},
|
|
2130
|
-
i[
|
|
2129
|
+
}, C = `.${e(`${t}-${d}`)}`, H = n ? n({ sizeKey: d, sizeValue: h }) : {};
|
|
2130
|
+
i[C] = {
|
|
2131
2131
|
...p,
|
|
2132
|
-
...
|
|
2132
|
+
...H
|
|
2133
2133
|
}, Object.entries(r).forEach(([v, f]) => {
|
|
2134
2134
|
const m = `.${e(`${t}-${d}-${v}`)}`, V = l ? l({ sizeKey: d, sizeValue: h, weightKey: v, weightValue: f }) : {};
|
|
2135
2135
|
i[m] = {
|
|
@@ -2139,7 +2139,7 @@ const U = {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
});
|
|
2141
2141
|
}), c(i);
|
|
2142
|
-
},
|
|
2142
|
+
}, O = {
|
|
2143
2143
|
aspectRatio: !1,
|
|
2144
2144
|
backdropBlur: !1,
|
|
2145
2145
|
backdropBrightness: !1,
|
|
@@ -2203,7 +2203,7 @@ const U = {
|
|
|
2203
2203
|
textOpacity: !1,
|
|
2204
2204
|
textUnderlineOffset: !1,
|
|
2205
2205
|
touchAction: !1
|
|
2206
|
-
},
|
|
2206
|
+
}, $ = [
|
|
2207
2207
|
({ addUtilities: c, matchUtilities: e, theme: t, e: a }) => {
|
|
2208
2208
|
const n = ["2", "5"], s = {
|
|
2209
2209
|
light: "300",
|
|
@@ -2224,7 +2224,7 @@ const U = {
|
|
|
2224
2224
|
2: "0.813rem",
|
|
2225
2225
|
3: "0.75rem"
|
|
2226
2226
|
};
|
|
2227
|
-
|
|
2227
|
+
D({
|
|
2228
2228
|
addUtilities: c,
|
|
2229
2229
|
e: a,
|
|
2230
2230
|
classPrefix: "header",
|
|
@@ -2236,28 +2236,28 @@ const U = {
|
|
|
2236
2236
|
}),
|
|
2237
2237
|
sizes: r,
|
|
2238
2238
|
weights: s
|
|
2239
|
-
}),
|
|
2239
|
+
}), D({
|
|
2240
2240
|
addUtilities: c,
|
|
2241
2241
|
e: a,
|
|
2242
2242
|
classPrefix: "text-body",
|
|
2243
2243
|
sizes: l,
|
|
2244
2244
|
weights: s
|
|
2245
|
-
}),
|
|
2245
|
+
}), $1({ matchUtilities: e, theme: t }), q1({ matchUtilities: e, theme: t }), j1({ matchUtilities: e }), P1({ matchUtilities: e });
|
|
2246
2246
|
}
|
|
2247
2247
|
], v2 = {
|
|
2248
2248
|
theme: {
|
|
2249
|
-
extend:
|
|
2250
|
-
colors:
|
|
2249
|
+
extend: T,
|
|
2250
|
+
colors: B
|
|
2251
2251
|
},
|
|
2252
|
-
plugins:
|
|
2253
|
-
corePlugins:
|
|
2252
|
+
plugins: $,
|
|
2253
|
+
corePlugins: O
|
|
2254
2254
|
}, b2 = {
|
|
2255
2255
|
theme: {
|
|
2256
|
-
extend:
|
|
2257
|
-
colors:
|
|
2256
|
+
extend: T,
|
|
2257
|
+
colors: I
|
|
2258
2258
|
},
|
|
2259
|
-
plugins:
|
|
2260
|
-
corePlugins:
|
|
2259
|
+
plugins: $,
|
|
2260
|
+
corePlugins: O
|
|
2261
2261
|
};
|
|
2262
2262
|
function R1(c, e = []) {
|
|
2263
2263
|
return new Proxy(c, {
|
|
@@ -2273,10 +2273,10 @@ function R1(c, e = []) {
|
|
|
2273
2273
|
function x2(c, e = []) {
|
|
2274
2274
|
e.length && (c == null || c.classList.add(...e));
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function A2(c, e = []) {
|
|
2277
2277
|
e.length && (c == null || c.classList.remove(...e));
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function y2({ cb: c, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2280
2280
|
let s = !0;
|
|
2281
2281
|
for (const [r, l] of t.entries()) {
|
|
2282
2282
|
const i = e.querySelector(`[name="${r}"]`), d = a[r], h = [];
|
|
@@ -2428,8 +2428,8 @@ class g {
|
|
|
2428
2428
|
}), p = h.headers.get("content-type");
|
|
2429
2429
|
if (p && p.indexOf("application/json") !== -1)
|
|
2430
2430
|
return h.json();
|
|
2431
|
-
const
|
|
2432
|
-
return
|
|
2431
|
+
const C = await h.text();
|
|
2432
|
+
return C ? C.replace("__next", "") : null;
|
|
2433
2433
|
} catch (h) {
|
|
2434
2434
|
console.error("createData", h);
|
|
2435
2435
|
}
|
|
@@ -2588,15 +2588,15 @@ class g {
|
|
|
2588
2588
|
if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
|
|
2589
2589
|
return r;
|
|
2590
2590
|
try {
|
|
2591
|
-
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null,
|
|
2591
|
+
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, C = (h == null ? void 0 : h.ip) ?? null;
|
|
2592
2592
|
return localStorage.setItem(
|
|
2593
2593
|
"headerTolken",
|
|
2594
2594
|
JSON.stringify({
|
|
2595
2595
|
tolken: p,
|
|
2596
|
-
ip:
|
|
2596
|
+
ip: C,
|
|
2597
2597
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2598
2598
|
})
|
|
2599
|
-
), { tolken: p, ip:
|
|
2599
|
+
), { tolken: p, ip: C, userAgent: t, platform: s };
|
|
2600
2600
|
} catch (d) {
|
|
2601
2601
|
console.error("getHeaders", d);
|
|
2602
2602
|
}
|
|
@@ -2847,7 +2847,7 @@ class g {
|
|
|
2847
2847
|
}), p = new MutationObserver((m, V) => {
|
|
2848
2848
|
m.forEach((w) => {
|
|
2849
2849
|
w.removedNodes.forEach((b) => {
|
|
2850
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click", v), b.removeEventListener("close",
|
|
2850
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", v), b.removeEventListener("close", H), b.dispatchEvent(d.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
2851
2851
|
});
|
|
2852
2852
|
});
|
|
2853
2853
|
});
|
|
@@ -2858,18 +2858,18 @@ class g {
|
|
|
2858
2858
|
subtree: !1,
|
|
2859
2859
|
childList: !0
|
|
2860
2860
|
}));
|
|
2861
|
-
const
|
|
2861
|
+
const C = () => {
|
|
2862
2862
|
l == null || l.showModal();
|
|
2863
|
-
},
|
|
2863
|
+
}, H = async ({ target: m }) => {
|
|
2864
2864
|
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(d.closing), m && await f(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(d.closed);
|
|
2865
2865
|
}, v = async ({ target: m }) => {
|
|
2866
2866
|
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(d.outside), l == null || l.close("outside"));
|
|
2867
2867
|
}, f = (m) => Promise.allSettled(
|
|
2868
2868
|
m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
2869
2869
|
);
|
|
2870
|
-
return !s && (l == null || l.addEventListener("click", v)), l == null || l.addEventListener("close",
|
|
2870
|
+
return !s && (l == null || l.addEventListener("click", v)), l == null || l.addEventListener("close", H), r == null || r.forEach((m) => {
|
|
2871
2871
|
m.addEventListener("click", (V) => {
|
|
2872
|
-
|
|
2872
|
+
C(), a && a(V, l);
|
|
2873
2873
|
});
|
|
2874
2874
|
}), i == null || i.forEach((m) => {
|
|
2875
2875
|
m.addEventListener("click", async (V) => {
|
|
@@ -2878,8 +2878,8 @@ class g {
|
|
|
2878
2878
|
}), {
|
|
2879
2879
|
activators: r,
|
|
2880
2880
|
ref: l,
|
|
2881
|
-
handleOpen:
|
|
2882
|
-
handleClose:
|
|
2881
|
+
handleOpen: C,
|
|
2882
|
+
handleClose: H
|
|
2883
2883
|
};
|
|
2884
2884
|
}
|
|
2885
2885
|
static hasBoundsEntry(e, t = "bounds") {
|
|
@@ -3034,11 +3034,11 @@ class g {
|
|
|
3034
3034
|
state: d = null,
|
|
3035
3035
|
vin: h = null,
|
|
3036
3036
|
license: p = null,
|
|
3037
|
-
token:
|
|
3038
|
-
phone:
|
|
3037
|
+
token: C = null,
|
|
3038
|
+
phone: H = null
|
|
3039
3039
|
} = e || {}, v = t && t !== "", f = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
|
|
3040
3040
|
let V = [];
|
|
3041
|
-
return t && t !== "" && V.push("name=" + t), v || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), f && m ? parseInt(r) > parseInt(l) ? (V.push("min=" + l), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + l)) : (f && V.push("min=" + r), m && V.push("max=" + l)),
|
|
3041
|
+
return t && t !== "" && V.push("name=" + t), v || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), f && m ? parseInt(r) > parseInt(l) ? (V.push("min=" + l), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + l)) : (f && V.push("min=" + r), m && V.push("max=" + l)), H && H !== "" && V.push("phone=" + H), i && i !== "" && V.push("city=" + i), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), d && d !== "" && V.push("state=" + d), C && C !== "" && V.push("token=" + C), V.join("&");
|
|
3042
3042
|
}
|
|
3043
3043
|
static padTo2Digits(e) {
|
|
3044
3044
|
return e.toString().padStart(2, "0");
|
|
@@ -3056,7 +3056,7 @@ class g {
|
|
|
3056
3056
|
useLocation: l = !0,
|
|
3057
3057
|
state: i = "",
|
|
3058
3058
|
useGoogle: d = !1
|
|
3059
|
-
} = t ?? {}, { tolken: h = null, ip: p = null } = await g.getHeaders(),
|
|
3059
|
+
} = t ?? {}, { tolken: h = null, ip: p = null } = await g.getHeaders(), H = [
|
|
3060
3060
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3061
3061
|
"addressesOnly=" + a,
|
|
3062
3062
|
"useSearch=" + r,
|
|
@@ -3065,8 +3065,8 @@ class g {
|
|
|
3065
3065
|
"useLocation=" + l,
|
|
3066
3066
|
"useGoogle=" + d
|
|
3067
3067
|
];
|
|
3068
|
-
i && i !== "" && !s &&
|
|
3069
|
-
const v =
|
|
3068
|
+
i && i !== "" && !s && H.push("state=" + i), h && h !== "" && H.push("tolken=" + h), p && p !== "" && H.push("ip=" + p);
|
|
3069
|
+
const v = H.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3070
3070
|
return await g.makeSearchFetchCall(m);
|
|
3071
3071
|
}
|
|
3072
3072
|
static removeElements(e) {
|
|
@@ -3159,15 +3159,54 @@ class g {
|
|
|
3159
3159
|
static ucWords(e) {
|
|
3160
3160
|
return e ? e.toString().split(" ").map((t) => g.ucFirst(t)).join(" ") : null;
|
|
3161
3161
|
}
|
|
3162
|
+
/**
|
|
3163
|
+
* HOW TO USE EVENTS
|
|
3164
|
+
*
|
|
3165
|
+
* Trigger event:
|
|
3166
|
+
* window.app.dispatchEvent(window.app.SEARCH.PROPERTY, { some data ... });
|
|
3167
|
+
*
|
|
3168
|
+
* Listen to event
|
|
3169
|
+
* const handleEvent = (event) => {
|
|
3170
|
+
* console.log(event.detail);
|
|
3171
|
+
* };
|
|
3172
|
+
*
|
|
3173
|
+
* window.app.eventTarget.addEventListener(window.app.SEARCH.PROPERTY, handleEvent);
|
|
3174
|
+
*
|
|
3175
|
+
* Remove Event
|
|
3176
|
+
* window.app.eventTarget.removeEventListener(window.app.SEARCH.PROPERTY, handleEvent);
|
|
3177
|
+
*/
|
|
3178
|
+
static initEvents(e) {
|
|
3179
|
+
this.eventTarget = new EventTarget();
|
|
3180
|
+
const { props: t = null } = e ?? {};
|
|
3181
|
+
this.FORM_EVENTS = {
|
|
3182
|
+
CC_VALIDATION_FAILED: "CCValidationFailed",
|
|
3183
|
+
CC_VALIDATION_SUCCESSFUL: "CCValidationSuccessful",
|
|
3184
|
+
FORM_SUBMITTED: "formSubmitted",
|
|
3185
|
+
PAYMENT_SUCCESSFUL: "paymentSuccessful",
|
|
3186
|
+
PAYMENT_FAILED: "paymentFailed",
|
|
3187
|
+
LOADING_STARTED: "loadingStarted",
|
|
3188
|
+
LOADING_ENDED: "loadingEnded",
|
|
3189
|
+
...t ?? {}
|
|
3190
|
+
}, this.SEARCH_EVENTS = {
|
|
3191
|
+
PROPERTY: "property",
|
|
3192
|
+
PEOPLE: "property",
|
|
3193
|
+
VIN: "vin",
|
|
3194
|
+
...t ?? {}
|
|
3195
|
+
};
|
|
3196
|
+
}
|
|
3197
|
+
static dispatchEvent(e, t = null) {
|
|
3198
|
+
const a = new CustomEvent(e, { detail: t });
|
|
3199
|
+
this.eventTarget.dispatchEvent(a);
|
|
3200
|
+
}
|
|
3162
3201
|
}
|
|
3163
3202
|
export {
|
|
3164
|
-
|
|
3203
|
+
Q1 as Accordion,
|
|
3165
3204
|
J1 as Alert,
|
|
3166
|
-
|
|
3167
|
-
|
|
3205
|
+
_1 as Autocomplete,
|
|
3206
|
+
Y1 as Badge,
|
|
3168
3207
|
E as Button,
|
|
3169
|
-
|
|
3170
|
-
|
|
3208
|
+
K1 as ButtonGroup,
|
|
3209
|
+
X1 as Card,
|
|
3171
3210
|
S2 as CardSlider,
|
|
3172
3211
|
e2 as Checkbox,
|
|
3173
3212
|
g as Common,
|
|
@@ -3177,9 +3216,9 @@ export {
|
|
|
3177
3216
|
a2 as Dialog,
|
|
3178
3217
|
n2 as DialogOld,
|
|
3179
3218
|
s2 as Dots,
|
|
3180
|
-
|
|
3219
|
+
C2 as FlexItem,
|
|
3181
3220
|
g2 as FunnelHeader,
|
|
3182
|
-
|
|
3221
|
+
A as Icon,
|
|
3183
3222
|
l2 as LoadingBar,
|
|
3184
3223
|
i2 as Popover,
|
|
3185
3224
|
r2 as ProcessingSpinner,
|
|
@@ -3188,7 +3227,7 @@ export {
|
|
|
3188
3227
|
d2 as Select,
|
|
3189
3228
|
h2 as Skeleton,
|
|
3190
3229
|
u2 as Slider,
|
|
3191
|
-
|
|
3230
|
+
H2 as Spacer,
|
|
3192
3231
|
p2 as Spinner,
|
|
3193
3232
|
L2 as StackedListItem,
|
|
3194
3233
|
m2 as Stars,
|
|
@@ -3196,12 +3235,12 @@ export {
|
|
|
3196
3235
|
F as Textbox,
|
|
3197
3236
|
x2 as addClass,
|
|
3198
3237
|
M2 as colors,
|
|
3199
|
-
|
|
3238
|
+
O as corePlugins,
|
|
3200
3239
|
b2 as elerisPreset,
|
|
3201
|
-
|
|
3202
|
-
|
|
3240
|
+
T as extensions,
|
|
3241
|
+
$ as plugins,
|
|
3203
3242
|
v2 as propertyPreset,
|
|
3204
|
-
|
|
3243
|
+
A2 as removeClass,
|
|
3205
3244
|
w2 as validateEmail,
|
|
3206
|
-
|
|
3245
|
+
y2 as validateForm
|
|
3207
3246
|
};
|