@vehiclehistory/property-lib 0.0.979 → 0.0.980
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 +148 -156
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
1
|
+
import { jsx as c, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import { memo as y, useState as Z, useEffect as N } from "react";
|
|
4
4
|
const W = {
|
|
@@ -544,8 +544,8 @@ const W = {
|
|
|
544
544
|
},
|
|
545
545
|
e
|
|
546
546
|
),
|
|
547
|
-
children: /* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
547
|
+
children: /* @__PURE__ */ M(S, { children: [
|
|
548
|
+
/* @__PURE__ */ M(
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
551
551
|
type: "button",
|
|
@@ -635,7 +635,7 @@ const W = {
|
|
|
635
635
|
e
|
|
636
636
|
),
|
|
637
637
|
...l,
|
|
638
|
-
children: /* @__PURE__ */
|
|
638
|
+
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
639
639
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
640
|
A,
|
|
641
641
|
{
|
|
@@ -645,7 +645,7 @@ const W = {
|
|
|
645
645
|
size: "xSmall"
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
648
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ M("div", { className: "ml-3", children: [
|
|
649
649
|
/* @__PURE__ */ c("div", { className: m("font-medium text-sm", s), children: n }),
|
|
650
650
|
t.length > 0 ? /* @__PURE__ */ c(
|
|
651
651
|
"ul",
|
|
@@ -655,7 +655,7 @@ const W = {
|
|
|
655
655
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
656
656
|
a
|
|
657
657
|
),
|
|
658
|
-
children: t.map((
|
|
658
|
+
children: t.map((V, C) => /* @__PURE__ */ c("li", { children: V }, C))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -676,21 +676,21 @@ const W = {
|
|
|
676
676
|
name: o = "",
|
|
677
677
|
options: p = [],
|
|
678
678
|
parentProps: u = {},
|
|
679
|
-
placeholder:
|
|
679
|
+
placeholder: V = "",
|
|
680
680
|
props: C = {},
|
|
681
|
-
rightIcon:
|
|
682
|
-
required:
|
|
681
|
+
rightIcon: f = "",
|
|
682
|
+
required: b = !1,
|
|
683
683
|
showSearchIcon: x = !0,
|
|
684
684
|
showRightIcon: h = !1,
|
|
685
|
-
size:
|
|
685
|
+
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
687
|
-
title:
|
|
687
|
+
title: g = "",
|
|
688
688
|
type: E,
|
|
689
689
|
useGoogle: j = !1,
|
|
690
690
|
useReact: P = !1
|
|
691
691
|
}) => {
|
|
692
692
|
const R = P ? { defaultValue: a } : { value: a };
|
|
693
|
-
return /* @__PURE__ */
|
|
693
|
+
return /* @__PURE__ */ M(
|
|
694
694
|
"div",
|
|
695
695
|
{
|
|
696
696
|
id: s,
|
|
@@ -701,7 +701,7 @@ const W = {
|
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
702
|
...u,
|
|
703
703
|
children: [
|
|
704
|
-
x && /* @__PURE__ */
|
|
704
|
+
x && /* @__PURE__ */ M(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
707
|
className: m(
|
|
@@ -716,7 +716,7 @@ const W = {
|
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
718
|
name: i,
|
|
719
|
-
size:
|
|
719
|
+
size: v === "xLarge" ? "small" : "xSmall",
|
|
720
720
|
viewBox: "0 0 24 24"
|
|
721
721
|
}
|
|
722
722
|
),
|
|
@@ -725,7 +725,7 @@ const W = {
|
|
|
725
725
|
{
|
|
726
726
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
727
727
|
name: "arrowLeft",
|
|
728
|
-
size:
|
|
728
|
+
size: v === "xLarge" ? "small" : "xSmall",
|
|
729
729
|
viewBox: "0 0 24 24"
|
|
730
730
|
}
|
|
731
731
|
)
|
|
@@ -741,16 +741,16 @@ const W = {
|
|
|
741
741
|
"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",
|
|
742
742
|
{
|
|
743
743
|
"pl-8": x === !0,
|
|
744
|
-
"px-3 h-10":
|
|
745
|
-
"px-4 h-12":
|
|
746
|
-
"px-5 h-[60px] sm:!text-base":
|
|
744
|
+
"px-3 h-10": v === "medium",
|
|
745
|
+
"px-4 h-12": v === "large",
|
|
746
|
+
"px-5 h-[60px] sm:!text-base": v === "xLarge",
|
|
747
747
|
peer: n
|
|
748
748
|
},
|
|
749
749
|
l
|
|
750
750
|
),
|
|
751
|
-
required:
|
|
751
|
+
required: b,
|
|
752
752
|
autoComplete: "off",
|
|
753
|
-
placeholder: !
|
|
753
|
+
placeholder: !V && n ? " " : V,
|
|
754
754
|
type: "search",
|
|
755
755
|
name: o || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
@@ -765,9 +765,9 @@ const W = {
|
|
|
765
765
|
"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",
|
|
766
766
|
{
|
|
767
767
|
"!left-7": x === !0,
|
|
768
|
-
"left-2":
|
|
769
|
-
"left-3":
|
|
770
|
-
"left-4":
|
|
768
|
+
"left-2": v === "medium",
|
|
769
|
+
"left-3": v === "large",
|
|
770
|
+
"left-4": v === "xLarge"
|
|
771
771
|
}
|
|
772
772
|
),
|
|
773
773
|
children: n
|
|
@@ -805,15 +805,15 @@ const W = {
|
|
|
805
805
|
)
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
|
-
|
|
808
|
+
f && /* @__PURE__ */ c(
|
|
809
809
|
"span",
|
|
810
810
|
{
|
|
811
811
|
"data-id": "right-icon",
|
|
812
812
|
className: `${h ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
813
|
-
children: /* @__PURE__ */ c(A, { name:
|
|
813
|
+
children: /* @__PURE__ */ c(A, { name: f, size: "small", viewBox: "0 0 24 24" })
|
|
814
814
|
}
|
|
815
815
|
),
|
|
816
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ M(
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
819
|
"data-id": "search-dropdown",
|
|
@@ -825,7 +825,7 @@ const W = {
|
|
|
825
825
|
{
|
|
826
826
|
"data-id": "search-dropdown-body",
|
|
827
827
|
role: "listbox",
|
|
828
|
-
"data-title":
|
|
828
|
+
"data-title": g,
|
|
829
829
|
"aria-labelledby": "Label",
|
|
830
830
|
"aria-activedescendant": "search-item-0",
|
|
831
831
|
children: p.length > 0 ? p.map((k, z) => /* @__PURE__ */ c(
|
|
@@ -880,25 +880,25 @@ const W = {
|
|
|
880
880
|
rightIconProps: o = {},
|
|
881
881
|
rounded: p = !1,
|
|
882
882
|
size: u = "md",
|
|
883
|
-
type:
|
|
883
|
+
type: V = "button",
|
|
884
884
|
uppercase: C = !1,
|
|
885
|
-
variation:
|
|
885
|
+
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
|
-
const
|
|
888
|
-
return /* @__PURE__ */
|
|
889
|
-
|
|
887
|
+
const b = l ? "a" : "button";
|
|
888
|
+
return /* @__PURE__ */ M(
|
|
889
|
+
b,
|
|
890
890
|
{
|
|
891
|
-
type:
|
|
891
|
+
type: b !== "a" ? V : null,
|
|
892
892
|
className: m(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
895
|
-
[`button--${
|
|
895
|
+
[`button--${f}`]: f,
|
|
896
896
|
[`button--${u}`]: u,
|
|
897
897
|
"button--rounded": p,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
900
|
"button--uppercase": C,
|
|
901
|
-
"button--borderless": d ||
|
|
901
|
+
"button--borderless": d || f === "link"
|
|
902
902
|
},
|
|
903
903
|
n
|
|
904
904
|
),
|
|
@@ -941,12 +941,12 @@ const W = {
|
|
|
941
941
|
variation: o = "primary",
|
|
942
942
|
value: p = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const u = l ? "div" : "label",
|
|
945
|
-
return /* @__PURE__ */
|
|
944
|
+
const u = l ? "div" : "label", V = u === "label" ? { htmlFor: s } : {};
|
|
945
|
+
return /* @__PURE__ */ M(
|
|
946
946
|
u,
|
|
947
947
|
{
|
|
948
948
|
className: m("checkbox flex items-center", o, t),
|
|
949
|
-
...
|
|
949
|
+
...V,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
952
952
|
"input",
|
|
@@ -983,17 +983,17 @@ const W = {
|
|
|
983
983
|
fullMobile: o = !0,
|
|
984
984
|
headerClass: p,
|
|
985
985
|
hideClose: u = !1,
|
|
986
|
-
iconSize:
|
|
986
|
+
iconSize: V = "medium",
|
|
987
987
|
preventPageScroll: C = !0,
|
|
988
|
-
sheet:
|
|
989
|
-
sheetDirection:
|
|
988
|
+
sheet: f = !1,
|
|
989
|
+
sheetDirection: b = "right",
|
|
990
990
|
stickyHeader: x = !1,
|
|
991
991
|
title: h = "",
|
|
992
|
-
titleClass:
|
|
992
|
+
titleClass: v,
|
|
993
993
|
useFormMethod: w = !0
|
|
994
994
|
}) => {
|
|
995
|
-
const
|
|
996
|
-
return /* @__PURE__ */
|
|
995
|
+
const g = w ? "form" : "div";
|
|
996
|
+
return /* @__PURE__ */ M(S, { children: [
|
|
997
997
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
998
998
|
/* @__PURE__ */ c(
|
|
999
999
|
"dialog",
|
|
@@ -1005,20 +1005,20 @@ const W = {
|
|
|
1005
1005
|
"dialog",
|
|
1006
1006
|
{
|
|
1007
1007
|
"dialog-full-mobile": o,
|
|
1008
|
-
"dialog-sheet":
|
|
1008
|
+
"dialog-sheet": f,
|
|
1009
1009
|
dark: l,
|
|
1010
|
-
"dialog-sheet--right":
|
|
1010
|
+
"dialog-sheet--right": b === "right" && f,
|
|
1011
1011
|
"prevent-scroll": C
|
|
1012
1012
|
},
|
|
1013
1013
|
a
|
|
1014
1014
|
),
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1016
|
-
|
|
1015
|
+
children: /* @__PURE__ */ M(
|
|
1016
|
+
g,
|
|
1017
1017
|
{
|
|
1018
1018
|
className: "dialog-container",
|
|
1019
1019
|
method: w ? "dialog" : null,
|
|
1020
1020
|
children: [
|
|
1021
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ M(
|
|
1022
1022
|
"header",
|
|
1023
1023
|
{
|
|
1024
1024
|
className: m(
|
|
@@ -1031,7 +1031,7 @@ const W = {
|
|
|
1031
1031
|
p
|
|
1032
1032
|
),
|
|
1033
1033
|
children: [
|
|
1034
|
-
h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className:
|
|
1034
|
+
h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: v, children: h }),
|
|
1035
1035
|
!u && /* @__PURE__ */ c(
|
|
1036
1036
|
"button",
|
|
1037
1037
|
{
|
|
@@ -1044,7 +1044,7 @@ const W = {
|
|
|
1044
1044
|
A,
|
|
1045
1045
|
{
|
|
1046
1046
|
name: "close",
|
|
1047
|
-
size:
|
|
1047
|
+
size: V,
|
|
1048
1048
|
className: "pointer-events-none"
|
|
1049
1049
|
}
|
|
1050
1050
|
)
|
|
@@ -1074,7 +1074,7 @@ const W = {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
)
|
|
1076
1076
|
] });
|
|
1077
|
-
}, B1 = y(K), $1 = ({ className: d }) => /* @__PURE__ */
|
|
1077
|
+
}, B1 = y(K), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
|
|
1078
1078
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1079
1079
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1080
1080
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1095,16 +1095,16 @@ const W = {
|
|
|
1095
1095
|
const r = document.querySelector(".loading-bar__inner");
|
|
1096
1096
|
if (!r) return;
|
|
1097
1097
|
let o, p, u = !1;
|
|
1098
|
-
function
|
|
1098
|
+
function V(C) {
|
|
1099
1099
|
o === void 0 && (o = C);
|
|
1100
|
-
const
|
|
1100
|
+
const f = C - o;
|
|
1101
1101
|
if (p !== C) {
|
|
1102
|
-
const
|
|
1103
|
-
r.style.width = `${
|
|
1102
|
+
const b = f / n * 101;
|
|
1103
|
+
r.style.width = `${b}%`, e && e({ elapsed: f, percentage: b }), b >= 101 && (i && i(), u = !0, window.cancelAnimationFrame(C));
|
|
1104
1104
|
}
|
|
1105
|
-
|
|
1105
|
+
f < n && (p = C, u || window.requestAnimationFrame(V));
|
|
1106
1106
|
}
|
|
1107
|
-
window.requestAnimationFrame(
|
|
1107
|
+
window.requestAnimationFrame(V);
|
|
1108
1108
|
}
|
|
1109
1109
|
return N(() => {
|
|
1110
1110
|
l({ cb: d });
|
|
@@ -1135,12 +1135,12 @@ const W = {
|
|
|
1135
1135
|
disabled: l = !1,
|
|
1136
1136
|
options: i = {},
|
|
1137
1137
|
trigger: r = "click"
|
|
1138
|
-
}) => /* @__PURE__ */
|
|
1138
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
1139
1139
|
/* @__PURE__ */ c(
|
|
1140
1140
|
"div",
|
|
1141
1141
|
{
|
|
1142
1142
|
className: m("popover z-10 max-w-[350px] hidden", n),
|
|
1143
|
-
children: /* @__PURE__ */
|
|
1143
|
+
children: /* @__PURE__ */ M(
|
|
1144
1144
|
"div",
|
|
1145
1145
|
{
|
|
1146
1146
|
className: m(
|
|
@@ -1189,10 +1189,10 @@ const W = {
|
|
|
1189
1189
|
rounded: r = !0,
|
|
1190
1190
|
showLabel: o = !1
|
|
1191
1191
|
}) => {
|
|
1192
|
-
const u = ((
|
|
1193
|
-
if (
|
|
1194
|
-
const
|
|
1195
|
-
return
|
|
1192
|
+
const u = ((V, C) => {
|
|
1193
|
+
if (V) {
|
|
1194
|
+
const f = Number(C) / V;
|
|
1195
|
+
return f > 1 ? 100 : f * 100;
|
|
1196
1196
|
}
|
|
1197
1197
|
return n;
|
|
1198
1198
|
})(i, n);
|
|
@@ -1244,7 +1244,7 @@ const W = {
|
|
|
1244
1244
|
value: o = ""
|
|
1245
1245
|
}) => {
|
|
1246
1246
|
const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
|
|
1247
|
-
return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ M(
|
|
1248
1248
|
p,
|
|
1249
1249
|
{
|
|
1250
1250
|
className: m("radio flex items-center", t),
|
|
@@ -1285,17 +1285,17 @@ const W = {
|
|
|
1285
1285
|
selectClass: o = "",
|
|
1286
1286
|
styles: p = null,
|
|
1287
1287
|
variation: u = "primary",
|
|
1288
|
-
value:
|
|
1288
|
+
value: V
|
|
1289
1289
|
}) => {
|
|
1290
1290
|
const C = i ? { defaultValue: "" } : {};
|
|
1291
|
-
return /* @__PURE__ */
|
|
1291
|
+
return /* @__PURE__ */ M(
|
|
1292
1292
|
"label",
|
|
1293
1293
|
{
|
|
1294
1294
|
className: m("relative select", d, u),
|
|
1295
1295
|
style: p ? { ...p } : null,
|
|
1296
1296
|
children: [
|
|
1297
1297
|
n,
|
|
1298
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ M(
|
|
1299
1299
|
"select",
|
|
1300
1300
|
{
|
|
1301
1301
|
className: m(
|
|
@@ -1307,18 +1307,18 @@ const W = {
|
|
|
1307
1307
|
),
|
|
1308
1308
|
id: a,
|
|
1309
1309
|
name: s,
|
|
1310
|
-
value:
|
|
1310
|
+
value: V,
|
|
1311
1311
|
...C,
|
|
1312
1312
|
...r,
|
|
1313
1313
|
children: [
|
|
1314
1314
|
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
1315
|
-
l.map((
|
|
1315
|
+
l.map((f) => /* @__PURE__ */ c(
|
|
1316
1316
|
"option",
|
|
1317
1317
|
{
|
|
1318
|
-
value: (
|
|
1319
|
-
children: (
|
|
1318
|
+
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
1319
|
+
children: (f == null ? void 0 : f.name) || f
|
|
1320
1320
|
},
|
|
1321
|
-
(
|
|
1321
|
+
(f == null ? void 0 : f.name) || f
|
|
1322
1322
|
))
|
|
1323
1323
|
]
|
|
1324
1324
|
}
|
|
@@ -1327,7 +1327,7 @@ const W = {
|
|
|
1327
1327
|
]
|
|
1328
1328
|
}
|
|
1329
1329
|
);
|
|
1330
|
-
}, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */
|
|
1330
|
+
}, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1331
1331
|
"div",
|
|
1332
1332
|
{
|
|
1333
1333
|
className: m(
|
|
@@ -1345,7 +1345,7 @@ const W = {
|
|
|
1345
1345
|
className: t,
|
|
1346
1346
|
id: a = 1,
|
|
1347
1347
|
padding: n = !0
|
|
1348
|
-
}) => /* @__PURE__ */
|
|
1348
|
+
}) => /* @__PURE__ */ M("div", { className: m("slider", t), id: `slider-${a}`, children: [
|
|
1349
1349
|
/* @__PURE__ */ c(
|
|
1350
1350
|
"button",
|
|
1351
1351
|
{
|
|
@@ -1412,7 +1412,7 @@ const W = {
|
|
|
1412
1412
|
props: r = {},
|
|
1413
1413
|
rows: o = 4,
|
|
1414
1414
|
variation: p = "primary"
|
|
1415
|
-
}) => /* @__PURE__ */
|
|
1415
|
+
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", p, d), children: [
|
|
1416
1416
|
/* @__PURE__ */ c(
|
|
1417
1417
|
"textarea",
|
|
1418
1418
|
{
|
|
@@ -1460,9 +1460,9 @@ const W = {
|
|
|
1460
1460
|
props: o = {},
|
|
1461
1461
|
styles: p = null,
|
|
1462
1462
|
type: u = "text",
|
|
1463
|
-
value:
|
|
1463
|
+
value: V,
|
|
1464
1464
|
variation: C = "primary"
|
|
1465
|
-
}) => /* @__PURE__ */
|
|
1465
|
+
}) => /* @__PURE__ */ M(
|
|
1466
1466
|
"div",
|
|
1467
1467
|
{
|
|
1468
1468
|
className: m("relative textbox", C, d),
|
|
@@ -1484,7 +1484,7 @@ const W = {
|
|
|
1484
1484
|
id: s,
|
|
1485
1485
|
name: i,
|
|
1486
1486
|
type: u,
|
|
1487
|
-
value:
|
|
1487
|
+
value: V,
|
|
1488
1488
|
autoComplete: "off",
|
|
1489
1489
|
className: m(
|
|
1490
1490
|
"form-input",
|
|
@@ -1517,7 +1517,7 @@ const W = {
|
|
|
1517
1517
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1518
1518
|
]
|
|
1519
1519
|
}
|
|
1520
|
-
), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */
|
|
1520
|
+
), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
1521
1521
|
/* @__PURE__ */ c(
|
|
1522
1522
|
"input",
|
|
1523
1523
|
{
|
|
@@ -1548,7 +1548,7 @@ const W = {
|
|
|
1548
1548
|
titleClass: s,
|
|
1549
1549
|
uppercase: l = !0
|
|
1550
1550
|
}) => {
|
|
1551
|
-
const i = a || /* @__PURE__ */
|
|
1551
|
+
const i = a || /* @__PURE__ */ M(S, { children: [
|
|
1552
1552
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1553
1553
|
" ",
|
|
1554
1554
|
/* @__PURE__ */ c(
|
|
@@ -1565,7 +1565,7 @@ const W = {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
)
|
|
1567
1567
|
] });
|
|
1568
|
-
return /* @__PURE__ */
|
|
1568
|
+
return /* @__PURE__ */ M(
|
|
1569
1569
|
"form",
|
|
1570
1570
|
{
|
|
1571
1571
|
id: "contactForm",
|
|
@@ -1575,7 +1575,7 @@ const W = {
|
|
|
1575
1575
|
children: [
|
|
1576
1576
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1577
1577
|
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
|
|
1578
|
-
/* @__PURE__ */
|
|
1578
|
+
/* @__PURE__ */ M(
|
|
1579
1579
|
"div",
|
|
1580
1580
|
{
|
|
1581
1581
|
className: m(
|
|
@@ -1651,7 +1651,7 @@ const W = {
|
|
|
1651
1651
|
variation: p = "primary"
|
|
1652
1652
|
}) => {
|
|
1653
1653
|
const u = r ? "ul" : "div";
|
|
1654
|
-
return /* @__PURE__ */
|
|
1654
|
+
return /* @__PURE__ */ M(
|
|
1655
1655
|
"div",
|
|
1656
1656
|
{
|
|
1657
1657
|
className: m(
|
|
@@ -1687,7 +1687,7 @@ const W = {
|
|
|
1687
1687
|
value: r,
|
|
1688
1688
|
valueClass: o,
|
|
1689
1689
|
wrap: p = !1
|
|
1690
|
-
}) => /* @__PURE__ */
|
|
1690
|
+
}) => /* @__PURE__ */ M(
|
|
1691
1691
|
"div",
|
|
1692
1692
|
{
|
|
1693
1693
|
className: m(
|
|
@@ -1719,7 +1719,7 @@ const W = {
|
|
|
1719
1719
|
title: s,
|
|
1720
1720
|
titleClass: l,
|
|
1721
1721
|
titleId: i
|
|
1722
|
-
}) => /* @__PURE__ */
|
|
1722
|
+
}) => /* @__PURE__ */ M(
|
|
1723
1723
|
"section",
|
|
1724
1724
|
{
|
|
1725
1725
|
className: m(
|
|
@@ -1774,7 +1774,7 @@ const W = {
|
|
|
1774
1774
|
"3.5xl": "2rem"
|
|
1775
1775
|
}, L1 = {
|
|
1776
1776
|
17: "repeat(17, minmax(0, 1fr))"
|
|
1777
|
-
},
|
|
1777
|
+
}, M1 = {
|
|
1778
1778
|
circular: {
|
|
1779
1779
|
"100%": {
|
|
1780
1780
|
transform: "rotate(360deg)"
|
|
@@ -1884,7 +1884,7 @@ const W = {
|
|
|
1884
1884
|
transform: "translateX(0)"
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
},
|
|
1887
|
+
}, g1 = {
|
|
1888
1888
|
20: "5rem",
|
|
1889
1889
|
24: "6rem",
|
|
1890
1890
|
28: "7rem",
|
|
@@ -1921,8 +1921,8 @@ const W = {
|
|
|
1921
1921
|
backgroundImage: H1,
|
|
1922
1922
|
fontSize: C1,
|
|
1923
1923
|
gridTemplateColumns: L1,
|
|
1924
|
-
keyframes:
|
|
1925
|
-
margin:
|
|
1924
|
+
keyframes: M1,
|
|
1925
|
+
margin: g1,
|
|
1926
1926
|
maxWidth: v1,
|
|
1927
1927
|
screens: b1,
|
|
1928
1928
|
transitionDuration: y1,
|
|
@@ -2090,15 +2090,15 @@ const W = {
|
|
|
2090
2090
|
const u = {
|
|
2091
2091
|
"font-size": p,
|
|
2092
2092
|
...a
|
|
2093
|
-
},
|
|
2094
|
-
r[
|
|
2093
|
+
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: p }) : {};
|
|
2094
|
+
r[V] = {
|
|
2095
2095
|
...u,
|
|
2096
2096
|
...C
|
|
2097
|
-
}, Object.entries(l).forEach(([
|
|
2098
|
-
const x = `.${e(`${t}-${o}-${
|
|
2097
|
+
}, Object.entries(l).forEach(([f, b]) => {
|
|
2098
|
+
const x = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: b }) : {};
|
|
2099
2099
|
r[x] = {
|
|
2100
2100
|
...u,
|
|
2101
|
-
"font-weight":
|
|
2101
|
+
"font-weight": b,
|
|
2102
2102
|
...h
|
|
2103
2103
|
};
|
|
2104
2104
|
});
|
|
@@ -2404,18 +2404,22 @@ class H {
|
|
|
2404
2404
|
ip: o = null,
|
|
2405
2405
|
sessionId: p = null,
|
|
2406
2406
|
user: u = null
|
|
2407
|
-
} = (window == null ? void 0 : window.options) ?? {}, { id:
|
|
2408
|
-
t.userId = s ??
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2407
|
+
} = (window == null ? void 0 : window.options) ?? {}, { id: V = null } = u ?? {};
|
|
2408
|
+
t.userId = s ?? V, t.isHeads = l, t.isLoggedIn = i, t.url = r, await H.createData(
|
|
2409
|
+
"/api/event",
|
|
2410
|
+
{
|
|
2411
|
+
payload: {
|
|
2412
|
+
data: t,
|
|
2413
|
+
type: a,
|
|
2414
|
+
name: n,
|
|
2415
|
+
userId: s ?? V,
|
|
2416
|
+
url: window.location.href,
|
|
2417
|
+
ip: o,
|
|
2418
|
+
sessionId: p
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
!1
|
|
2422
|
+
);
|
|
2419
2423
|
}
|
|
2420
2424
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2421
2425
|
if (!t)
|
|
@@ -2572,7 +2576,7 @@ class H {
|
|
|
2572
2576
|
return "/report/license-plate";
|
|
2573
2577
|
}
|
|
2574
2578
|
static async getHeaders({ ttl: e = 600, bypassSession: t = !1 } = {}) {
|
|
2575
|
-
var
|
|
2579
|
+
var o;
|
|
2576
2580
|
const {
|
|
2577
2581
|
userAgent: a = null,
|
|
2578
2582
|
userAgentData: n = null,
|
|
@@ -2585,33 +2589,21 @@ class H {
|
|
|
2585
2589
|
};
|
|
2586
2590
|
if (typeof window.localStorage > "u")
|
|
2587
2591
|
return i;
|
|
2588
|
-
const r = "headerSessionData"
|
|
2589
|
-
if (o &&
|
|
2590
|
-
const u = JSON.parse(o), f = (/* @__PURE__ */ new Date()).getTime();
|
|
2591
|
-
if (u.expire - f <= 0)
|
|
2592
|
-
console.log(`expire localStorage & continue to call headers - ${r}`), localStorage.removeItem(r);
|
|
2593
|
-
else
|
|
2594
|
-
return {
|
|
2595
|
-
tolken: u.tolken,
|
|
2596
|
-
ip: (u == null ? void 0 : u.ip) ?? null,
|
|
2597
|
-
userAgent: a,
|
|
2598
|
-
platform: l
|
|
2599
|
-
};
|
|
2600
|
-
}
|
|
2601
|
-
if ((p = window == null ? void 0 : window.options) != null && p.isPdf)
|
|
2592
|
+
const r = "headerSessionData";
|
|
2593
|
+
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2602
2594
|
return i;
|
|
2603
2595
|
try {
|
|
2604
|
-
const
|
|
2596
|
+
const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", C = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
|
|
2605
2597
|
return localStorage.setItem(
|
|
2606
2598
|
r,
|
|
2607
2599
|
JSON.stringify({
|
|
2608
|
-
tolken:
|
|
2609
|
-
ip:
|
|
2610
|
-
expire: (/* @__PURE__ */ new Date()).getTime() +
|
|
2600
|
+
tolken: V,
|
|
2601
|
+
ip: C,
|
|
2602
|
+
expire: (/* @__PURE__ */ new Date()).getTime() + f
|
|
2611
2603
|
})
|
|
2612
|
-
), { tolken:
|
|
2613
|
-
} catch (
|
|
2614
|
-
console.error("getHeaders",
|
|
2604
|
+
), { tolken: V, ip: C, userAgent: a, platform: l };
|
|
2605
|
+
} catch (p) {
|
|
2606
|
+
console.error("getHeaders", p);
|
|
2615
2607
|
}
|
|
2616
2608
|
return i;
|
|
2617
2609
|
}
|
|
@@ -2848,42 +2840,42 @@ class H {
|
|
|
2848
2840
|
"outside",
|
|
2849
2841
|
"removed"
|
|
2850
2842
|
].reduce(
|
|
2851
|
-
(h,
|
|
2843
|
+
(h, v) => ({
|
|
2852
2844
|
...h,
|
|
2853
|
-
[
|
|
2845
|
+
[v]: new Event(v)
|
|
2854
2846
|
}),
|
|
2855
2847
|
{}
|
|
2856
|
-
),
|
|
2848
|
+
), V = new MutationObserver((h, v) => {
|
|
2857
2849
|
h.forEach(async (w) => {
|
|
2858
2850
|
if (w.attributeName === "open") {
|
|
2859
|
-
const
|
|
2860
|
-
if (!(
|
|
2861
|
-
|
|
2851
|
+
const g = w.target;
|
|
2852
|
+
if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
|
|
2853
|
+
g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(u.opening), g && await x(g), g == null || g.dispatchEvent(u.opened);
|
|
2862
2854
|
}
|
|
2863
2855
|
});
|
|
2864
|
-
}), C = new MutationObserver((h,
|
|
2856
|
+
}), C = new MutationObserver((h, v) => {
|
|
2865
2857
|
h.forEach((w) => {
|
|
2866
|
-
w.removedNodes.forEach((
|
|
2867
|
-
|
|
2858
|
+
w.removedNodes.forEach((g) => {
|
|
2859
|
+
g.nodeName === "DIALOG" && (g.removeEventListener("click", b), g.removeEventListener("close", f), g.dispatchEvent(u.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2868
2860
|
});
|
|
2869
2861
|
});
|
|
2870
2862
|
});
|
|
2871
|
-
o && (
|
|
2863
|
+
o && (V.observe(o, {
|
|
2872
2864
|
attributes: !0
|
|
2873
2865
|
}), C.observe(document.body, {
|
|
2874
2866
|
attributes: !1,
|
|
2875
2867
|
subtree: !1,
|
|
2876
2868
|
childList: !0
|
|
2877
2869
|
}));
|
|
2878
|
-
const
|
|
2870
|
+
const f = async ({ target: h }) => {
|
|
2879
2871
|
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
|
|
2880
|
-
},
|
|
2872
|
+
}, b = async ({ target: h }) => {
|
|
2881
2873
|
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
|
|
2882
2874
|
}, x = (h) => Promise.allSettled(
|
|
2883
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
2875
|
+
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2884
2876
|
);
|
|
2885
|
-
return !e && (o == null || o.addEventListener("click",
|
|
2886
|
-
await
|
|
2877
|
+
return !e && (o == null || o.addEventListener("click", b)), o == null || o.addEventListener("close", async (h) => {
|
|
2878
|
+
await f({ target: h.target }), a && a(h, o);
|
|
2887
2879
|
}), e && (o == null || o.addEventListener("cancel", async (h) => {
|
|
2888
2880
|
h.key === "Escape" && h.preventDefault();
|
|
2889
2881
|
})), e && (o == null || o.addEventListener("keydown", (h) => {
|
|
@@ -2891,11 +2883,11 @@ class H {
|
|
|
2891
2883
|
})), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2892
2884
|
n(h, o);
|
|
2893
2885
|
})), r == null || r.forEach((h) => {
|
|
2894
|
-
h.addEventListener("click", (
|
|
2895
|
-
o == null || o.showModal(), s && s(
|
|
2886
|
+
h.addEventListener("click", (v) => {
|
|
2887
|
+
o == null || o.showModal(), s && s(v, o);
|
|
2896
2888
|
});
|
|
2897
2889
|
}), p == null || p.forEach((h) => {
|
|
2898
|
-
h.addEventListener("click", async (
|
|
2890
|
+
h.addEventListener("click", async (v) => {
|
|
2899
2891
|
o == null || o.close("close");
|
|
2900
2892
|
});
|
|
2901
2893
|
}), {
|
|
@@ -3044,11 +3036,11 @@ class H {
|
|
|
3044
3036
|
state: o = null,
|
|
3045
3037
|
vin: p = null,
|
|
3046
3038
|
license: u = null,
|
|
3047
|
-
token:
|
|
3039
|
+
token: V = null,
|
|
3048
3040
|
phone: C = null
|
|
3049
|
-
} = e || {},
|
|
3041
|
+
} = e || {}, f = t && t !== "", b = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
|
|
3050
3042
|
let h = [];
|
|
3051
|
-
return t && t !== "" && h.push("name=" + t),
|
|
3043
|
+
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), b && x ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (b && h.push("min=" + l), x && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3052
3044
|
}
|
|
3053
3045
|
static padTo2Digits(e) {
|
|
3054
3046
|
return e.toString().padStart(2, "0");
|
|
@@ -3068,9 +3060,9 @@ class H {
|
|
|
3068
3060
|
useGoogle: o = !1,
|
|
3069
3061
|
useGoogleOverride: p = !1,
|
|
3070
3062
|
useAmazonOverride: u = !1,
|
|
3071
|
-
isSandboxAccount:
|
|
3063
|
+
isSandboxAccount: V = !1,
|
|
3072
3064
|
isOptOutSearch: C = !1
|
|
3073
|
-
} = t ?? {}, { tolken:
|
|
3065
|
+
} = t ?? {}, { tolken: f = null, ip: b = null } = await H.getHeaders(), h = [
|
|
3074
3066
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3075
3067
|
"addressesOnly=" + a,
|
|
3076
3068
|
"useSearch=" + l,
|
|
@@ -3080,12 +3072,12 @@ class H {
|
|
|
3080
3072
|
"useGoogle=" + o,
|
|
3081
3073
|
"useGoogleOverride=" + p,
|
|
3082
3074
|
"useAmazonOverride=" + u,
|
|
3083
|
-
"isSandboxAccount=" +
|
|
3075
|
+
"isSandboxAccount=" + V,
|
|
3084
3076
|
"isOptOutSearch=" + C
|
|
3085
3077
|
];
|
|
3086
|
-
r && r !== "" && !s && h.push("state=" + r),
|
|
3087
|
-
const
|
|
3088
|
-
return await H.fetchData(
|
|
3078
|
+
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), b && b !== "" && h.push("ip=" + b);
|
|
3079
|
+
const v = h.join("&"), g = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3080
|
+
return await H.fetchData(g);
|
|
3089
3081
|
}
|
|
3090
3082
|
static removeElements(e) {
|
|
3091
3083
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|