@vehiclehistory/property-lib 0.1.99 → 0.1.992
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/components/ui/Dialog/Dialog.d.ts +1 -0
- package/dist/main.es.js +130 -128
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as o, jsxs as M, Fragment as
|
|
1
|
+
import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
|
-
import { memo as
|
|
3
|
+
import { memo as y, useState as F, useEffect as O } from "react";
|
|
4
4
|
const X = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -528,7 +528,7 @@ const X = {
|
|
|
528
528
|
size: a = "medium",
|
|
529
529
|
viewBox: n = "0 0 20 20"
|
|
530
530
|
}) => {
|
|
531
|
-
const s = K(t), [r, i] =
|
|
531
|
+
const s = K(t), [r, i] = F(d), [l, c] = F(s);
|
|
532
532
|
return O(() => {
|
|
533
533
|
c(s);
|
|
534
534
|
}, [s]), O(() => {
|
|
@@ -551,7 +551,7 @@ const X = {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
);
|
|
554
|
-
},
|
|
554
|
+
}, w = y(e1), t1 = ({
|
|
555
555
|
children: d,
|
|
556
556
|
className: e,
|
|
557
557
|
clickHandler: t,
|
|
@@ -560,7 +560,7 @@ const X = {
|
|
|
560
560
|
unmount: s = !0,
|
|
561
561
|
isOpen: r = !1
|
|
562
562
|
}) => {
|
|
563
|
-
const [i, l] =
|
|
563
|
+
const [i, l] = F(r);
|
|
564
564
|
return /* @__PURE__ */ o(
|
|
565
565
|
"div",
|
|
566
566
|
{
|
|
@@ -571,7 +571,7 @@ const X = {
|
|
|
571
571
|
},
|
|
572
572
|
e
|
|
573
573
|
),
|
|
574
|
-
children: /* @__PURE__ */ M(
|
|
574
|
+
children: /* @__PURE__ */ M(N, { children: [
|
|
575
575
|
/* @__PURE__ */ M(
|
|
576
576
|
"button",
|
|
577
577
|
{
|
|
@@ -586,7 +586,7 @@ const X = {
|
|
|
586
586
|
children: [
|
|
587
587
|
/* @__PURE__ */ o("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
588
588
|
/* @__PURE__ */ o("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
589
|
-
|
|
589
|
+
w,
|
|
590
590
|
{
|
|
591
591
|
name: "chevronDown",
|
|
592
592
|
size: "small",
|
|
@@ -620,7 +620,7 @@ const X = {
|
|
|
620
620
|
] })
|
|
621
621
|
}
|
|
622
622
|
);
|
|
623
|
-
}, $1 =
|
|
623
|
+
}, $1 = y(t1), a1 = ({
|
|
624
624
|
children: d,
|
|
625
625
|
className: e,
|
|
626
626
|
messages: t = [],
|
|
@@ -664,7 +664,7 @@ const X = {
|
|
|
664
664
|
...r,
|
|
665
665
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
666
666
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
667
|
-
|
|
667
|
+
w,
|
|
668
668
|
{
|
|
669
669
|
name: c,
|
|
670
670
|
viewBox: "0 0 24 24",
|
|
@@ -690,7 +690,7 @@ const X = {
|
|
|
690
690
|
] })
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
|
-
}, q1 =
|
|
693
|
+
}, q1 = y(a1), P1 = ({
|
|
694
694
|
autoFocus: d = !1,
|
|
695
695
|
className: e,
|
|
696
696
|
dataSearch: t = "container",
|
|
@@ -707,14 +707,14 @@ const X = {
|
|
|
707
707
|
options: H = [],
|
|
708
708
|
parentProps: v = {},
|
|
709
709
|
placeholder: u = "",
|
|
710
|
-
props:
|
|
710
|
+
props: b = {},
|
|
711
711
|
rightIcon: h = "",
|
|
712
|
-
required:
|
|
713
|
-
showClearIcon:
|
|
714
|
-
showDropdown:
|
|
715
|
-
showLoadingIcon:
|
|
716
|
-
showRightIcon:
|
|
717
|
-
showSearchIcon:
|
|
712
|
+
required: A = !1,
|
|
713
|
+
showClearIcon: x = !0,
|
|
714
|
+
showDropdown: g = !0,
|
|
715
|
+
showLoadingIcon: k = !0,
|
|
716
|
+
showRightIcon: Z = !1,
|
|
717
|
+
showSearchIcon: z = !0,
|
|
718
718
|
size: S = "medium",
|
|
719
719
|
styles: I = null,
|
|
720
720
|
title: U,
|
|
@@ -734,7 +734,7 @@ const X = {
|
|
|
734
734
|
style: I ? { ...I } : null,
|
|
735
735
|
...v,
|
|
736
736
|
children: [
|
|
737
|
-
|
|
737
|
+
z && /* @__PURE__ */ M(
|
|
738
738
|
"span",
|
|
739
739
|
{
|
|
740
740
|
className: m(
|
|
@@ -747,7 +747,7 @@ const X = {
|
|
|
747
747
|
),
|
|
748
748
|
children: [
|
|
749
749
|
/* @__PURE__ */ o(
|
|
750
|
-
|
|
750
|
+
w,
|
|
751
751
|
{
|
|
752
752
|
className: "home-search select-none text-gray-500",
|
|
753
753
|
name: l,
|
|
@@ -757,7 +757,7 @@ const X = {
|
|
|
757
757
|
}
|
|
758
758
|
),
|
|
759
759
|
/* @__PURE__ */ o(
|
|
760
|
-
|
|
760
|
+
w,
|
|
761
761
|
{
|
|
762
762
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
763
763
|
name: "arrowLeft",
|
|
@@ -777,8 +777,8 @@ const X = {
|
|
|
777
777
|
className: m(
|
|
778
778
|
"w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
|
|
779
779
|
{
|
|
780
|
-
"pl-8":
|
|
781
|
-
"pl-10":
|
|
780
|
+
"pl-8": z === !0 && S === "medium",
|
|
781
|
+
"pl-10": z === !0 && S === "large",
|
|
782
782
|
"px-3 h-10": S === "medium",
|
|
783
783
|
"px-4 h-12": S === "large",
|
|
784
784
|
"px-5 h-[60px] sm:!text-base": S === "xLarge",
|
|
@@ -786,14 +786,14 @@ const X = {
|
|
|
786
786
|
},
|
|
787
787
|
r
|
|
788
788
|
),
|
|
789
|
-
required:
|
|
789
|
+
required: A,
|
|
790
790
|
autoComplete: "off",
|
|
791
791
|
placeholder: !u && n ? " " : u,
|
|
792
792
|
type: "search",
|
|
793
793
|
name: V || "search-input",
|
|
794
794
|
"data-id": "search-input",
|
|
795
795
|
...Y,
|
|
796
|
-
...
|
|
796
|
+
...b
|
|
797
797
|
}
|
|
798
798
|
),
|
|
799
799
|
n && /* @__PURE__ */ o(
|
|
@@ -802,7 +802,7 @@ const X = {
|
|
|
802
802
|
className: m(
|
|
803
803
|
"floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
|
|
804
804
|
{
|
|
805
|
-
"!left-7":
|
|
805
|
+
"!left-7": z === !0,
|
|
806
806
|
"left-2": S === "medium",
|
|
807
807
|
"left-3": S === "large",
|
|
808
808
|
"left-4": S === "xLarge"
|
|
@@ -811,13 +811,13 @@ const X = {
|
|
|
811
811
|
children: n
|
|
812
812
|
}
|
|
813
813
|
),
|
|
814
|
-
|
|
814
|
+
x && /* @__PURE__ */ o(
|
|
815
815
|
"span",
|
|
816
816
|
{
|
|
817
817
|
"data-id": "search-clear",
|
|
818
818
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
819
819
|
children: /* @__PURE__ */ o(
|
|
820
|
-
|
|
820
|
+
w,
|
|
821
821
|
{
|
|
822
822
|
className: "cursor-pointer text-gray-500",
|
|
823
823
|
name: "xCircle",
|
|
@@ -827,13 +827,13 @@ const X = {
|
|
|
827
827
|
)
|
|
828
828
|
}
|
|
829
829
|
),
|
|
830
|
-
|
|
830
|
+
k && /* @__PURE__ */ o(
|
|
831
831
|
"span",
|
|
832
832
|
{
|
|
833
833
|
"data-id": "search-loading",
|
|
834
834
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
835
835
|
children: /* @__PURE__ */ o(
|
|
836
|
-
|
|
836
|
+
w,
|
|
837
837
|
{
|
|
838
838
|
className: "animate-spin text-[#222] pointer-events-none",
|
|
839
839
|
name: "spinnerDark",
|
|
@@ -848,11 +848,11 @@ const X = {
|
|
|
848
848
|
"span",
|
|
849
849
|
{
|
|
850
850
|
"data-id": "right-icon",
|
|
851
|
-
className: `${
|
|
852
|
-
children: /* @__PURE__ */ o(
|
|
851
|
+
className: `${Z ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
852
|
+
children: /* @__PURE__ */ o(w, { name: h, size: "small", viewBox: "0 0 24 24" })
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
|
-
|
|
855
|
+
g && /* @__PURE__ */ M(
|
|
856
856
|
"div",
|
|
857
857
|
{
|
|
858
858
|
"data-id": "search-dropdown",
|
|
@@ -867,7 +867,7 @@ const X = {
|
|
|
867
867
|
"data-title": U,
|
|
868
868
|
"aria-labelledby": "Label",
|
|
869
869
|
"aria-activedescendant": "search-item-0",
|
|
870
|
-
children: H.length > 0 ? H.map((
|
|
870
|
+
children: H.length > 0 ? H.map((E, D) => /* @__PURE__ */ o(
|
|
871
871
|
"li",
|
|
872
872
|
{
|
|
873
873
|
id: `search-item-${D}`,
|
|
@@ -875,7 +875,7 @@ const X = {
|
|
|
875
875
|
className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
|
|
876
876
|
"aria-selected": D === 0,
|
|
877
877
|
role: "option",
|
|
878
|
-
children: (
|
|
878
|
+
children: (E == null ? void 0 : E.name) || E
|
|
879
879
|
},
|
|
880
880
|
`search-item-${D}`
|
|
881
881
|
)) : ""
|
|
@@ -924,11 +924,11 @@ const X = {
|
|
|
924
924
|
uppercase: v = !1,
|
|
925
925
|
variation: u = "primary"
|
|
926
926
|
}) => {
|
|
927
|
-
const
|
|
927
|
+
const b = r ? "a" : "button";
|
|
928
928
|
return /* @__PURE__ */ M(
|
|
929
|
-
|
|
929
|
+
b,
|
|
930
930
|
{
|
|
931
|
-
type:
|
|
931
|
+
type: b !== "a" ? H : null,
|
|
932
932
|
className: m(
|
|
933
933
|
"button",
|
|
934
934
|
{
|
|
@@ -948,7 +948,7 @@ const X = {
|
|
|
948
948
|
...l,
|
|
949
949
|
children: [
|
|
950
950
|
e && /* @__PURE__ */ o(
|
|
951
|
-
|
|
951
|
+
w,
|
|
952
952
|
{
|
|
953
953
|
name: e,
|
|
954
954
|
size: V === "md" ? "small" : "xSmall",
|
|
@@ -958,7 +958,7 @@ const X = {
|
|
|
958
958
|
),
|
|
959
959
|
a,
|
|
960
960
|
c && /* @__PURE__ */ o(
|
|
961
|
-
|
|
961
|
+
w,
|
|
962
962
|
{
|
|
963
963
|
name: c,
|
|
964
964
|
size: V === "md" ? "small" : "xSmall",
|
|
@@ -969,7 +969,7 @@ const X = {
|
|
|
969
969
|
]
|
|
970
970
|
}
|
|
971
971
|
);
|
|
972
|
-
}, T =
|
|
972
|
+
}, T = y(n1), s1 = ({
|
|
973
973
|
checked: d = !1,
|
|
974
974
|
children: e,
|
|
975
975
|
className: t,
|
|
@@ -1014,7 +1014,7 @@ const X = {
|
|
|
1014
1014
|
e
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
|
-
), R1 =
|
|
1017
|
+
), R1 = y(s1), l1 = ({
|
|
1018
1018
|
activator: d,
|
|
1019
1019
|
ariaLabel: e,
|
|
1020
1020
|
id: t,
|
|
@@ -1030,41 +1030,43 @@ const X = {
|
|
|
1030
1030
|
hideClose: V = !1,
|
|
1031
1031
|
iconSize: H = "medium",
|
|
1032
1032
|
preventPageScroll: v = !0,
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1033
|
+
props: u = {},
|
|
1034
|
+
sheet: b = !1,
|
|
1035
|
+
sheetDirection: h = "right",
|
|
1036
|
+
stickyHeader: A = !1,
|
|
1037
|
+
title: x = "",
|
|
1038
|
+
titleClass: g,
|
|
1039
|
+
variation: k = "primary",
|
|
1040
|
+
useFormMethod: Z = !0
|
|
1040
1041
|
}) => {
|
|
1041
|
-
const
|
|
1042
|
-
return /* @__PURE__ */ M(
|
|
1042
|
+
const z = Z ? "form" : "div";
|
|
1043
|
+
return /* @__PURE__ */ M(N, { children: [
|
|
1043
1044
|
d && /* @__PURE__ */ o("span", { id: `${t}-dialog-activator`, children: d }),
|
|
1044
1045
|
/* @__PURE__ */ o(
|
|
1045
1046
|
"dialog",
|
|
1046
1047
|
{
|
|
1047
|
-
"aria-labelledby":
|
|
1048
|
-
"aria-label": !
|
|
1048
|
+
"aria-labelledby": x ? `${t}-dialog-title` : null,
|
|
1049
|
+
"aria-label": !x && e ? e : null,
|
|
1049
1050
|
...l ? { closedby: "none" } : null,
|
|
1050
1051
|
id: t ? `${t}-dialog` : null,
|
|
1051
1052
|
className: m(
|
|
1052
1053
|
"dialog",
|
|
1053
1054
|
{
|
|
1054
|
-
[`dialog-${
|
|
1055
|
+
[`dialog-${k}`]: k,
|
|
1055
1056
|
"dialog-full-mobile": p,
|
|
1056
|
-
"dialog-sheet":
|
|
1057
|
+
"dialog-sheet": b,
|
|
1057
1058
|
dark: i,
|
|
1058
|
-
"dialog-sheet--right":
|
|
1059
|
+
"dialog-sheet--right": h === "right" && b,
|
|
1059
1060
|
"prevent-scroll": v
|
|
1060
1061
|
},
|
|
1061
1062
|
n
|
|
1062
1063
|
),
|
|
1064
|
+
...u,
|
|
1063
1065
|
children: /* @__PURE__ */ M(
|
|
1064
|
-
|
|
1066
|
+
z,
|
|
1065
1067
|
{
|
|
1066
1068
|
className: "dialog-container",
|
|
1067
|
-
method:
|
|
1069
|
+
method: Z ? "dialog" : null,
|
|
1068
1070
|
children: [
|
|
1069
1071
|
/* @__PURE__ */ M(
|
|
1070
1072
|
"div",
|
|
@@ -1072,19 +1074,19 @@ const X = {
|
|
|
1072
1074
|
className: m(
|
|
1073
1075
|
"dialog-header",
|
|
1074
1076
|
{
|
|
1075
|
-
"sticky top-0 bg-white z-10":
|
|
1076
|
-
"!pb-0 border-0 justify-end": !
|
|
1077
|
-
"justify-between border-b":
|
|
1077
|
+
"sticky top-0 bg-white z-10": A,
|
|
1078
|
+
"!pb-0 border-0 justify-end": !x,
|
|
1079
|
+
"justify-between border-b": x
|
|
1078
1080
|
},
|
|
1079
1081
|
f
|
|
1080
1082
|
),
|
|
1081
1083
|
children: [
|
|
1082
|
-
|
|
1084
|
+
x && /* @__PURE__ */ o(
|
|
1083
1085
|
"div",
|
|
1084
1086
|
{
|
|
1085
1087
|
id: `${t}-dialog-title`,
|
|
1086
|
-
className: m("dialog-title",
|
|
1087
|
-
children:
|
|
1088
|
+
className: m("dialog-title", g),
|
|
1089
|
+
children: x
|
|
1088
1090
|
}
|
|
1089
1091
|
),
|
|
1090
1092
|
!V && /* @__PURE__ */ o(
|
|
@@ -1096,7 +1098,7 @@ const X = {
|
|
|
1096
1098
|
"data-dialog-close": "",
|
|
1097
1099
|
value: "close",
|
|
1098
1100
|
children: /* @__PURE__ */ o(
|
|
1099
|
-
|
|
1101
|
+
w,
|
|
1100
1102
|
{
|
|
1101
1103
|
name: "close",
|
|
1102
1104
|
size: H,
|
|
@@ -1129,7 +1131,7 @@ const X = {
|
|
|
1129
1131
|
}
|
|
1130
1132
|
)
|
|
1131
1133
|
] });
|
|
1132
|
-
}, W1 =
|
|
1134
|
+
}, W1 = y(l1), U1 = ({
|
|
1133
1135
|
ariaLabel: d,
|
|
1134
1136
|
className: e
|
|
1135
1137
|
}) => /* @__PURE__ */ M(
|
|
@@ -1159,23 +1161,23 @@ const X = {
|
|
|
1159
1161
|
timeout: r = 1e4,
|
|
1160
1162
|
variation: i = "primary"
|
|
1161
1163
|
}) => {
|
|
1162
|
-
const [l, c] =
|
|
1164
|
+
const [l, c] = F(0);
|
|
1163
1165
|
function p({ cb: f }) {
|
|
1164
1166
|
const V = document.querySelector(
|
|
1165
1167
|
`.loading-bar--inner${n ? `.${n}` : ""}`
|
|
1166
1168
|
);
|
|
1167
1169
|
if (!V) return;
|
|
1168
1170
|
let H, v, u = !1;
|
|
1169
|
-
function
|
|
1171
|
+
function b(h) {
|
|
1170
1172
|
H === void 0 && (H = h);
|
|
1171
|
-
const
|
|
1173
|
+
const A = h - H;
|
|
1172
1174
|
if (v !== h) {
|
|
1173
|
-
const
|
|
1174
|
-
V.style.width = `${
|
|
1175
|
+
const x = A / r * 101;
|
|
1176
|
+
V.style.width = `${x}%`, c(Math.min(100, Math.round(x))), t && t({ elapsed: A, percentage: x }), x >= 101 && (f && f(), u = !0, window.cancelAnimationFrame(h));
|
|
1175
1177
|
}
|
|
1176
|
-
|
|
1178
|
+
A < r && (v = h, u || window.requestAnimationFrame(b));
|
|
1177
1179
|
}
|
|
1178
|
-
window.requestAnimationFrame(
|
|
1180
|
+
window.requestAnimationFrame(b);
|
|
1179
1181
|
}
|
|
1180
1182
|
return O(() => {
|
|
1181
1183
|
p({ cb: e });
|
|
@@ -1202,7 +1204,7 @@ const X = {
|
|
|
1202
1204
|
children: /* @__PURE__ */ o("div", { className: `loading-bar--inner ${n}`, "data-size": "100" })
|
|
1203
1205
|
}
|
|
1204
1206
|
);
|
|
1205
|
-
}, G1 =
|
|
1207
|
+
}, G1 = y(r1), i1 = ({
|
|
1206
1208
|
ariaLabel: d = "Processing...",
|
|
1207
1209
|
className: e
|
|
1208
1210
|
}) => /* @__PURE__ */ o(
|
|
@@ -1212,7 +1214,7 @@ const X = {
|
|
|
1212
1214
|
"aria-label": d,
|
|
1213
1215
|
className: m("processing-spinner", e)
|
|
1214
1216
|
}
|
|
1215
|
-
), Q1 =
|
|
1217
|
+
), Q1 = y(i1), J1 = ({
|
|
1216
1218
|
activator: d,
|
|
1217
1219
|
activatorClass: e = "",
|
|
1218
1220
|
attrs: t = {},
|
|
@@ -1222,7 +1224,7 @@ const X = {
|
|
|
1222
1224
|
disabled: r = !1,
|
|
1223
1225
|
options: i = {},
|
|
1224
1226
|
trigger: l = "click"
|
|
1225
|
-
}) => /* @__PURE__ */ M(
|
|
1227
|
+
}) => /* @__PURE__ */ M(N, { children: [
|
|
1226
1228
|
/* @__PURE__ */ o(
|
|
1227
1229
|
"div",
|
|
1228
1230
|
{
|
|
@@ -1319,7 +1321,7 @@ const X = {
|
|
|
1319
1321
|
)
|
|
1320
1322
|
}
|
|
1321
1323
|
);
|
|
1322
|
-
}, Y1 =
|
|
1324
|
+
}, Y1 = y(c1), o1 = ({
|
|
1323
1325
|
checked: d = !1,
|
|
1324
1326
|
children: e,
|
|
1325
1327
|
className: t,
|
|
@@ -1357,7 +1359,7 @@ const X = {
|
|
|
1357
1359
|
e
|
|
1358
1360
|
]
|
|
1359
1361
|
}
|
|
1360
|
-
), X1 =
|
|
1362
|
+
), X1 = y(o1), d1 = ({
|
|
1361
1363
|
className: d,
|
|
1362
1364
|
error: e = !1,
|
|
1363
1365
|
errorMessage: t,
|
|
@@ -1405,7 +1407,7 @@ const X = {
|
|
|
1405
1407
|
i.map((u) => /* @__PURE__ */ o(
|
|
1406
1408
|
"option",
|
|
1407
1409
|
{
|
|
1408
|
-
"aria-label": (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u,
|
|
1410
|
+
"aria-label": (u == null ? void 0 : u.label) || (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u,
|
|
1409
1411
|
value: (u == null ? void 0 : u.id) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.name) || u,
|
|
1410
1412
|
children: (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u
|
|
1411
1413
|
},
|
|
@@ -1418,7 +1420,7 @@ const X = {
|
|
|
1418
1420
|
]
|
|
1419
1421
|
}
|
|
1420
1422
|
);
|
|
1421
|
-
}, _1 =
|
|
1423
|
+
}, _1 = y(d1), h1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1422
1424
|
"div",
|
|
1423
1425
|
{
|
|
1424
1426
|
className: m(
|
|
@@ -1426,11 +1428,11 @@ const X = {
|
|
|
1426
1428
|
d
|
|
1427
1429
|
),
|
|
1428
1430
|
children: [
|
|
1429
|
-
/* @__PURE__ */ o(
|
|
1431
|
+
/* @__PURE__ */ o(w, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1430
1432
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1431
1433
|
]
|
|
1432
1434
|
}
|
|
1433
|
-
), K1 =
|
|
1435
|
+
), K1 = y(h1), u1 = ({
|
|
1434
1436
|
placeholderClass: d = "",
|
|
1435
1437
|
children: e,
|
|
1436
1438
|
className: t,
|
|
@@ -1444,7 +1446,7 @@ const X = {
|
|
|
1444
1446
|
id: `btn-left-${a}`,
|
|
1445
1447
|
type: "button",
|
|
1446
1448
|
className: "slider-button__prev ",
|
|
1447
|
-
children: /* @__PURE__ */ o(
|
|
1449
|
+
children: /* @__PURE__ */ o(w, { name: "chevronLeft" })
|
|
1448
1450
|
}
|
|
1449
1451
|
),
|
|
1450
1452
|
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ o(
|
|
@@ -1462,17 +1464,17 @@ const X = {
|
|
|
1462
1464
|
id: `btn-right-${a}`,
|
|
1463
1465
|
type: "button",
|
|
1464
1466
|
className: "slider-button__next",
|
|
1465
|
-
children: /* @__PURE__ */ o(
|
|
1467
|
+
children: /* @__PURE__ */ o(w, { name: "chevronRight" })
|
|
1466
1468
|
}
|
|
1467
1469
|
)
|
|
1468
|
-
] }), e2 =
|
|
1470
|
+
] }), e2 = y(u1), p1 = ({ ariaLabel: d, className: e, iconClass: t, iconProps: a = {} }) => /* @__PURE__ */ o(
|
|
1469
1471
|
"div",
|
|
1470
1472
|
{
|
|
1471
1473
|
role: "status",
|
|
1472
1474
|
"aria-label": d,
|
|
1473
1475
|
className: m("rounded-r-md px-2 focus:outline-none", e),
|
|
1474
1476
|
children: /* @__PURE__ */ o(
|
|
1475
|
-
|
|
1477
|
+
w,
|
|
1476
1478
|
{
|
|
1477
1479
|
className: m(
|
|
1478
1480
|
"animate-spin text-black-900 motion-reduce:animate-none",
|
|
@@ -1485,7 +1487,7 @@ const X = {
|
|
|
1485
1487
|
}
|
|
1486
1488
|
)
|
|
1487
1489
|
}
|
|
1488
|
-
), t2 =
|
|
1490
|
+
), t2 = y(p1), a2 = ({
|
|
1489
1491
|
className: d,
|
|
1490
1492
|
value: e
|
|
1491
1493
|
}) => {
|
|
@@ -1547,7 +1549,7 @@ const X = {
|
|
|
1547
1549
|
id: `${n}-clear`,
|
|
1548
1550
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1549
1551
|
children: /* @__PURE__ */ o(
|
|
1550
|
-
|
|
1552
|
+
w,
|
|
1551
1553
|
{
|
|
1552
1554
|
size: "xSmall",
|
|
1553
1555
|
name: "xCircle",
|
|
@@ -1559,7 +1561,7 @@ const X = {
|
|
|
1559
1561
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1560
1562
|
]
|
|
1561
1563
|
}
|
|
1562
|
-
), f1 =
|
|
1564
|
+
), f1 = y(m1), V1 = ({
|
|
1563
1565
|
className: d,
|
|
1564
1566
|
clear: e = !1,
|
|
1565
1567
|
error: t = !1,
|
|
@@ -1585,7 +1587,7 @@ const X = {
|
|
|
1585
1587
|
style: p ? { ...p } : null,
|
|
1586
1588
|
children: [
|
|
1587
1589
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1588
|
-
|
|
1590
|
+
w,
|
|
1589
1591
|
{
|
|
1590
1592
|
size: "xSmall",
|
|
1591
1593
|
name: n,
|
|
@@ -1621,7 +1623,7 @@ const X = {
|
|
|
1621
1623
|
id: `${s}-clear`,
|
|
1622
1624
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1623
1625
|
children: /* @__PURE__ */ o(
|
|
1624
|
-
|
|
1626
|
+
w,
|
|
1625
1627
|
{
|
|
1626
1628
|
size: "xSmall",
|
|
1627
1629
|
name: "xCircle",
|
|
@@ -1633,7 +1635,7 @@ const X = {
|
|
|
1633
1635
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1634
1636
|
]
|
|
1635
1637
|
}
|
|
1636
|
-
), B =
|
|
1638
|
+
), B = y(V1), H1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
1637
1639
|
/* @__PURE__ */ o(
|
|
1638
1640
|
"input",
|
|
1639
1641
|
{
|
|
@@ -1655,7 +1657,7 @@ const X = {
|
|
|
1655
1657
|
className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
|
|
1656
1658
|
}
|
|
1657
1659
|
)
|
|
1658
|
-
] }) }) }), n2 =
|
|
1660
|
+
] }) }) }), n2 = y(H1), C1 = ({
|
|
1659
1661
|
btnClass: d,
|
|
1660
1662
|
btnProps: e = {},
|
|
1661
1663
|
btnTitle: t = "Submit",
|
|
@@ -1666,7 +1668,7 @@ const X = {
|
|
|
1666
1668
|
titleClass: i,
|
|
1667
1669
|
uppercase: l = !0
|
|
1668
1670
|
}) => {
|
|
1669
|
-
const c = s || /* @__PURE__ */ M(
|
|
1671
|
+
const c = s || /* @__PURE__ */ M(N, { children: [
|
|
1670
1672
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1671
1673
|
" ",
|
|
1672
1674
|
/* @__PURE__ */ o(
|
|
@@ -1756,7 +1758,7 @@ const X = {
|
|
|
1756
1758
|
]
|
|
1757
1759
|
}
|
|
1758
1760
|
);
|
|
1759
|
-
}, s2 =
|
|
1761
|
+
}, s2 = y(C1), L1 = ({
|
|
1760
1762
|
block: d = !1,
|
|
1761
1763
|
children: e,
|
|
1762
1764
|
className: t,
|
|
@@ -1794,7 +1796,7 @@ const X = {
|
|
|
1794
1796
|
]
|
|
1795
1797
|
}
|
|
1796
1798
|
);
|
|
1797
|
-
}, l2 =
|
|
1799
|
+
}, l2 = y(L1), M1 = ({
|
|
1798
1800
|
children: d,
|
|
1799
1801
|
className: e,
|
|
1800
1802
|
colGap: t = 2,
|
|
@@ -1829,7 +1831,7 @@ const X = {
|
|
|
1829
1831
|
d
|
|
1830
1832
|
]
|
|
1831
1833
|
}
|
|
1832
|
-
), r2 =
|
|
1834
|
+
), r2 = y(M1), i2 = ({
|
|
1833
1835
|
breakPage: d = !1,
|
|
1834
1836
|
children: e,
|
|
1835
1837
|
className: t,
|
|
@@ -1869,7 +1871,7 @@ const X = {
|
|
|
1869
1871
|
),
|
|
1870
1872
|
children: n || e
|
|
1871
1873
|
}
|
|
1872
|
-
), o2 =
|
|
1874
|
+
), o2 = y(v1), g1 = {
|
|
1873
1875
|
circular: "circular 3s linear infinite",
|
|
1874
1876
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1875
1877
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1883,9 +1885,9 @@ const X = {
|
|
|
1883
1885
|
"slide-out-to-right": "slide-out-to-right 0.3s ease-in forwards",
|
|
1884
1886
|
"slide-in-from-right": "slide-in-from-right 0.3s ease-out forwards",
|
|
1885
1887
|
indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
|
|
1886
|
-
}, y1 = {
|
|
1887
|
-
map: "var(--map)"
|
|
1888
1888
|
}, b1 = {
|
|
1889
|
+
map: "var(--map)"
|
|
1890
|
+
}, y1 = {
|
|
1889
1891
|
"3xs": "0.5rem",
|
|
1890
1892
|
xxs: "0.625rem",
|
|
1891
1893
|
"2.5xl": "1.625rem",
|
|
@@ -2037,8 +2039,8 @@ const X = {
|
|
|
2037
2039
|
"center-top": "center 30%"
|
|
2038
2040
|
}, q = {
|
|
2039
2041
|
animation: g1,
|
|
2040
|
-
backgroundImage:
|
|
2041
|
-
fontSize:
|
|
2042
|
+
backgroundImage: b1,
|
|
2043
|
+
fontSize: y1,
|
|
2042
2044
|
gridTemplateColumns: A1,
|
|
2043
2045
|
keyframes: x1,
|
|
2044
2046
|
margin: w1,
|
|
@@ -2235,8 +2237,8 @@ const X = {
|
|
|
2235
2237
|
...f,
|
|
2236
2238
|
...H
|
|
2237
2239
|
}, Object.entries(r).forEach(([v, u]) => {
|
|
2238
|
-
const
|
|
2239
|
-
l[
|
|
2240
|
+
const b = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: p, weightKey: v, weightValue: u }) : {};
|
|
2241
|
+
l[b] = {
|
|
2240
2242
|
...f,
|
|
2241
2243
|
"font-weight": u,
|
|
2242
2244
|
...h
|
|
@@ -2985,23 +2987,23 @@ class C {
|
|
|
2985
2987
|
"outside",
|
|
2986
2988
|
"removed"
|
|
2987
2989
|
].reduce(
|
|
2988
|
-
(h,
|
|
2990
|
+
(h, A) => ({
|
|
2989
2991
|
...h,
|
|
2990
|
-
[
|
|
2992
|
+
[A]: new Event(A)
|
|
2991
2993
|
}),
|
|
2992
2994
|
{}
|
|
2993
|
-
), V = new MutationObserver((h,
|
|
2994
|
-
h.forEach(async (
|
|
2995
|
-
if (
|
|
2996
|
-
const
|
|
2997
|
-
if (!(
|
|
2998
|
-
|
|
2995
|
+
), V = new MutationObserver((h, A) => {
|
|
2996
|
+
h.forEach(async (x) => {
|
|
2997
|
+
if (x.attributeName === "open") {
|
|
2998
|
+
const g = x.target;
|
|
2999
|
+
if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
|
|
3000
|
+
g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(f.opening), g && await b(g), g == null || g.dispatchEvent(f.opened);
|
|
2999
3001
|
}
|
|
3000
3002
|
});
|
|
3001
|
-
}), H = new MutationObserver((h,
|
|
3002
|
-
h.forEach((
|
|
3003
|
-
|
|
3004
|
-
|
|
3003
|
+
}), H = new MutationObserver((h, A) => {
|
|
3004
|
+
h.forEach((x) => {
|
|
3005
|
+
x.removedNodes.forEach((g) => {
|
|
3006
|
+
g.nodeName === "DIALOG" && (g.removeEventListener("click", u), g.removeEventListener("close", v), g.dispatchEvent(f.removed), H == null || H.disconnect(), V == null || V.disconnect());
|
|
3005
3007
|
});
|
|
3006
3008
|
});
|
|
3007
3009
|
});
|
|
@@ -3013,11 +3015,11 @@ class C {
|
|
|
3013
3015
|
childList: !0
|
|
3014
3016
|
}));
|
|
3015
3017
|
const v = async ({ target: h }) => {
|
|
3016
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(f.closing), h && await
|
|
3018
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(f.closing), h && await b(h), h == null || h.classList.remove("closing"), h == null || h.removeAttribute("inert"), h == null || h.dispatchEvent(f.closed);
|
|
3017
3019
|
}, u = async ({ target: h }) => {
|
|
3018
3020
|
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(f.outside), c == null || c.close("outside"));
|
|
3019
|
-
},
|
|
3020
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
3021
|
+
}, b = (h) => Promise.allSettled(
|
|
3022
|
+
h == null ? void 0 : h.getAnimations().map((A) => A == null ? void 0 : A.finished)
|
|
3021
3023
|
);
|
|
3022
3024
|
return !e && (c == null || c.addEventListener("click", u)), c == null || c.addEventListener("close", async (h) => {
|
|
3023
3025
|
await v({ target: h.target }), a && a(h, c);
|
|
@@ -3028,11 +3030,11 @@ class C {
|
|
|
3028
3030
|
})), n && (c == null || c.addEventListener("open", async (h) => {
|
|
3029
3031
|
n(h, c);
|
|
3030
3032
|
})), l == null || l.forEach((h) => {
|
|
3031
|
-
h.addEventListener("click", (
|
|
3032
|
-
c == null || c.showModal(), s && s(
|
|
3033
|
+
h.addEventListener("click", (A) => {
|
|
3034
|
+
c == null || c.showModal(), s && s(A, c);
|
|
3033
3035
|
});
|
|
3034
3036
|
}), p == null || p.forEach((h) => {
|
|
3035
|
-
h.addEventListener("click", async (
|
|
3037
|
+
h.addEventListener("click", async (A) => {
|
|
3036
3038
|
c == null || c.close("close");
|
|
3037
3039
|
});
|
|
3038
3040
|
}), {
|
|
@@ -3183,9 +3185,9 @@ class C {
|
|
|
3183
3185
|
license: f = null,
|
|
3184
3186
|
token: V = null,
|
|
3185
3187
|
phone: H = null
|
|
3186
|
-
} = e || {}, v = t && t !== "", u = r && r !== "" && r !== "18",
|
|
3188
|
+
} = e || {}, v = t && t !== "", u = r && r !== "" && r !== "18", b = i && i !== "" && r !== "99";
|
|
3187
3189
|
let h = [];
|
|
3188
|
-
return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), u &&
|
|
3190
|
+
return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), u && b ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (u && h.push("min=" + r), b && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), l && l !== "" && h.push("city=" + l), f && f !== "" && h.push("license=" + f), p && p !== "" && h.push("vin=" + p), c && c !== "" && h.push("state=" + c), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3189
3191
|
}
|
|
3190
3192
|
static padTo2Digits(e) {
|
|
3191
3193
|
return e.toString().padStart(2, "0");
|
|
@@ -3208,7 +3210,7 @@ class C {
|
|
|
3208
3210
|
useGoogleOverride: V = !1,
|
|
3209
3211
|
useLocation: H = !0,
|
|
3210
3212
|
useSearch: v = !1
|
|
3211
|
-
} = t ?? {},
|
|
3213
|
+
} = t ?? {}, b = [
|
|
3212
3214
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3213
3215
|
"addressesOnly=" + a,
|
|
3214
3216
|
"useSearch=" + v,
|
|
@@ -3221,9 +3223,9 @@ class C {
|
|
|
3221
3223
|
"isSandboxAccount=" + s,
|
|
3222
3224
|
"isOptOutSearch=" + n
|
|
3223
3225
|
];
|
|
3224
|
-
i && i !== "" && !p &&
|
|
3225
|
-
const h =
|
|
3226
|
-
return await C.fetchData(
|
|
3226
|
+
i && i !== "" && !p && b.push("state=" + i);
|
|
3227
|
+
const h = b.join("&"), x = (c || p ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
|
|
3228
|
+
return await C.fetchData(x, !1, r);
|
|
3227
3229
|
}
|
|
3228
3230
|
static removeElements(e) {
|
|
3229
3231
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3392,7 +3394,7 @@ export {
|
|
|
3392
3394
|
U1 as Dots,
|
|
3393
3395
|
r2 as FlexItem,
|
|
3394
3396
|
o2 as FunnelHeader,
|
|
3395
|
-
|
|
3397
|
+
w as Icon,
|
|
3396
3398
|
G1 as LoadingBar,
|
|
3397
3399
|
J1 as Popover,
|
|
3398
3400
|
Q1 as ProcessingSpinner,
|