@vehiclehistory/property-lib 0.0.91 → 0.0.93
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 +108 -108
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -524,7 +524,7 @@ const W = {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
},
|
|
527
|
+
}, y = A(Q), J = ({
|
|
528
528
|
children: d,
|
|
529
529
|
className: e,
|
|
530
530
|
clickHandler: t,
|
|
@@ -559,7 +559,7 @@ const W = {
|
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
561
561
|
/* @__PURE__ */ c("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ c(
|
|
562
|
-
|
|
562
|
+
y,
|
|
563
563
|
{
|
|
564
564
|
name: "chevronDown",
|
|
565
565
|
size: "small",
|
|
@@ -637,7 +637,7 @@ const W = {
|
|
|
637
637
|
...l,
|
|
638
638
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
639
639
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
|
-
|
|
640
|
+
y,
|
|
641
641
|
{
|
|
642
642
|
name: i,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
@@ -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((V,
|
|
658
|
+
children: t.map((V, C) => /* @__PURE__ */ c("li", { children: V }, C))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -677,10 +677,10 @@ const W = {
|
|
|
677
677
|
options: u = [],
|
|
678
678
|
parentProps: p = {},
|
|
679
679
|
placeholder: V = "",
|
|
680
|
-
props:
|
|
680
|
+
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
682
|
required: g = !1,
|
|
683
|
-
showSearchIcon:
|
|
683
|
+
showSearchIcon: x = !0,
|
|
684
684
|
showRightIcon: h = !1,
|
|
685
685
|
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
@@ -701,7 +701,7 @@ const W = {
|
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
702
|
...p,
|
|
703
703
|
children: [
|
|
704
|
-
|
|
704
|
+
x && /* @__PURE__ */ M(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
707
|
className: m(
|
|
@@ -712,7 +712,7 @@ const W = {
|
|
|
712
712
|
),
|
|
713
713
|
children: [
|
|
714
714
|
/* @__PURE__ */ c(
|
|
715
|
-
|
|
715
|
+
y,
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
718
|
name: o,
|
|
@@ -721,7 +721,7 @@ const W = {
|
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
723
|
/* @__PURE__ */ c(
|
|
724
|
-
|
|
724
|
+
y,
|
|
725
725
|
{
|
|
726
726
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
727
727
|
name: "arrowLeft",
|
|
@@ -740,7 +740,7 @@ const W = {
|
|
|
740
740
|
className: m(
|
|
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
|
-
"pl-8":
|
|
743
|
+
"pl-8": x === !0,
|
|
744
744
|
"px-3 h-10": v === "medium",
|
|
745
745
|
"px-4 h-12": v === "large",
|
|
746
746
|
"px-5 h-[60px] sm:!text-base": v === "xLarge",
|
|
@@ -755,7 +755,7 @@ const W = {
|
|
|
755
755
|
name: i || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
|
-
...
|
|
758
|
+
...C
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
n && /* @__PURE__ */ c(
|
|
@@ -764,7 +764,7 @@ const W = {
|
|
|
764
764
|
className: m(
|
|
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
|
-
"!left-7":
|
|
767
|
+
"!left-7": x === !0,
|
|
768
768
|
"left-2": v === "medium",
|
|
769
769
|
"left-3": v === "large",
|
|
770
770
|
"left-4": v === "xLarge"
|
|
@@ -779,7 +779,7 @@ const W = {
|
|
|
779
779
|
"data-id": "search-clear",
|
|
780
780
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
781
781
|
children: /* @__PURE__ */ c(
|
|
782
|
-
|
|
782
|
+
y,
|
|
783
783
|
{
|
|
784
784
|
className: "cursor-pointer text-gray-500",
|
|
785
785
|
name: "xCircle",
|
|
@@ -795,7 +795,7 @@ const W = {
|
|
|
795
795
|
"data-id": "search-loading",
|
|
796
796
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
797
797
|
children: /* @__PURE__ */ c(
|
|
798
|
-
|
|
798
|
+
y,
|
|
799
799
|
{
|
|
800
800
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
801
801
|
name: "spinnerDark",
|
|
@@ -810,7 +810,7 @@ const W = {
|
|
|
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(
|
|
813
|
+
children: /* @__PURE__ */ c(y, { name: f, size: "small", viewBox: "0 0 24 24" })
|
|
814
814
|
}
|
|
815
815
|
),
|
|
816
816
|
/* @__PURE__ */ M(
|
|
@@ -881,7 +881,7 @@ const W = {
|
|
|
881
881
|
rounded: u = !1,
|
|
882
882
|
size: p = "md",
|
|
883
883
|
type: V = "button",
|
|
884
|
-
uppercase:
|
|
884
|
+
uppercase: C = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
887
|
const g = l ? "a" : "button";
|
|
@@ -897,7 +897,7 @@ const W = {
|
|
|
897
897
|
"button--rounded": u,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
|
-
"button--uppercase":
|
|
900
|
+
"button--uppercase": C,
|
|
901
901
|
"button--borderless": d || f === "link"
|
|
902
902
|
},
|
|
903
903
|
n
|
|
@@ -907,7 +907,7 @@ const W = {
|
|
|
907
907
|
...o,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
y,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
913
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -917,7 +917,7 @@ const W = {
|
|
|
917
917
|
),
|
|
918
918
|
a,
|
|
919
919
|
r && /* @__PURE__ */ c(
|
|
920
|
-
|
|
920
|
+
y,
|
|
921
921
|
{
|
|
922
922
|
name: r,
|
|
923
923
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -970,7 +970,7 @@ const W = {
|
|
|
970
970
|
]
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
|
-
},
|
|
973
|
+
}, I1 = A(K), X = ({
|
|
974
974
|
activator: d,
|
|
975
975
|
id: e = "",
|
|
976
976
|
children: t,
|
|
@@ -984,10 +984,10 @@ const W = {
|
|
|
984
984
|
headerClass: u,
|
|
985
985
|
hideClose: p = !1,
|
|
986
986
|
iconSize: V = "medium",
|
|
987
|
-
preventPageScroll:
|
|
987
|
+
preventPageScroll: C = !0,
|
|
988
988
|
stickyHeader: f = !1,
|
|
989
989
|
title: g = "",
|
|
990
|
-
titleClass:
|
|
990
|
+
titleClass: x,
|
|
991
991
|
useFormMethod: h = !0
|
|
992
992
|
}) => {
|
|
993
993
|
const v = h ? "form" : "div";
|
|
@@ -1004,7 +1004,7 @@ const W = {
|
|
|
1004
1004
|
{
|
|
1005
1005
|
"dialog-full-mobile": i,
|
|
1006
1006
|
dark: l,
|
|
1007
|
-
"prevent-scroll":
|
|
1007
|
+
"prevent-scroll": C
|
|
1008
1008
|
},
|
|
1009
1009
|
a
|
|
1010
1010
|
),
|
|
@@ -1027,7 +1027,7 @@ const W = {
|
|
|
1027
1027
|
u
|
|
1028
1028
|
),
|
|
1029
1029
|
children: [
|
|
1030
|
-
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className:
|
|
1030
|
+
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: x, children: g }),
|
|
1031
1031
|
!p && /* @__PURE__ */ c(
|
|
1032
1032
|
"button",
|
|
1033
1033
|
{
|
|
@@ -1037,7 +1037,7 @@ const W = {
|
|
|
1037
1037
|
"data-dialog-close": "",
|
|
1038
1038
|
value: "close",
|
|
1039
1039
|
children: /* @__PURE__ */ c(
|
|
1040
|
-
|
|
1040
|
+
y,
|
|
1041
1041
|
{
|
|
1042
1042
|
name: "close",
|
|
1043
1043
|
size: V,
|
|
@@ -1070,7 +1070,7 @@ const W = {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
)
|
|
1072
1072
|
] });
|
|
1073
|
-
},
|
|
1073
|
+
}, B1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
|
|
1074
1074
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1075
1075
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1076
1076
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1091,14 +1091,14 @@ const W = {
|
|
|
1091
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1092
1092
|
if (!r) return;
|
|
1093
1093
|
let i, u, p = !1;
|
|
1094
|
-
function V(
|
|
1095
|
-
i === void 0 && (i =
|
|
1096
|
-
const f =
|
|
1097
|
-
if (u !==
|
|
1094
|
+
function V(C) {
|
|
1095
|
+
i === void 0 && (i = C);
|
|
1096
|
+
const f = C - i;
|
|
1097
|
+
if (u !== C) {
|
|
1098
1098
|
const g = f / n * 101;
|
|
1099
|
-
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(
|
|
1099
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(C));
|
|
1100
1100
|
}
|
|
1101
|
-
f < n && (u =
|
|
1101
|
+
f < n && (u = C, p || window.requestAnimationFrame(V));
|
|
1102
1102
|
}
|
|
1103
1103
|
window.requestAnimationFrame(V);
|
|
1104
1104
|
}
|
|
@@ -1185,9 +1185,9 @@ const W = {
|
|
|
1185
1185
|
rounded: r = !0,
|
|
1186
1186
|
showLabel: i = !1
|
|
1187
1187
|
}) => {
|
|
1188
|
-
const p = ((V,
|
|
1188
|
+
const p = ((V, C) => {
|
|
1189
1189
|
if (V) {
|
|
1190
|
-
const f = Number(
|
|
1190
|
+
const f = Number(C) / V;
|
|
1191
1191
|
return f > 1 ? 100 : f * 100;
|
|
1192
1192
|
}
|
|
1193
1193
|
return n;
|
|
@@ -1283,7 +1283,7 @@ const W = {
|
|
|
1283
1283
|
variation: p = "primary",
|
|
1284
1284
|
value: V
|
|
1285
1285
|
}) => {
|
|
1286
|
-
const
|
|
1286
|
+
const C = o ? { defaultValue: "" } : {};
|
|
1287
1287
|
return /* @__PURE__ */ M(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
@@ -1304,7 +1304,7 @@ const W = {
|
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
1306
1306
|
value: V,
|
|
1307
|
-
...
|
|
1307
|
+
...C,
|
|
1308
1308
|
...r,
|
|
1309
1309
|
children: [
|
|
1310
1310
|
o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
|
|
@@ -1331,7 +1331,7 @@ const W = {
|
|
|
1331
1331
|
d
|
|
1332
1332
|
),
|
|
1333
1333
|
children: [
|
|
1334
|
-
/* @__PURE__ */ c(
|
|
1334
|
+
/* @__PURE__ */ c(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1335
1335
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1336
1336
|
]
|
|
1337
1337
|
}
|
|
@@ -1349,7 +1349,7 @@ const W = {
|
|
|
1349
1349
|
id: `btn-left-${a}`,
|
|
1350
1350
|
type: "button",
|
|
1351
1351
|
className: "slider-button__prev ",
|
|
1352
|
-
children: /* @__PURE__ */ c(
|
|
1352
|
+
children: /* @__PURE__ */ c(y, { name: "chevronLeft" })
|
|
1353
1353
|
}
|
|
1354
1354
|
),
|
|
1355
1355
|
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
|
|
@@ -1367,11 +1367,11 @@ const W = {
|
|
|
1367
1367
|
id: `btn-right-${a}`,
|
|
1368
1368
|
type: "button",
|
|
1369
1369
|
className: "slider-button__next",
|
|
1370
|
-
children: /* @__PURE__ */ c(
|
|
1370
|
+
children: /* @__PURE__ */ c(y, { name: "chevronRight" })
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
1373
|
] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1374
|
-
|
|
1374
|
+
y,
|
|
1375
1375
|
{
|
|
1376
1376
|
className: m("animate-spin text-black-900", e),
|
|
1377
1377
|
size: "xSmall",
|
|
@@ -1433,7 +1433,7 @@ const W = {
|
|
|
1433
1433
|
id: `${n}-clear`,
|
|
1434
1434
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1435
1435
|
children: /* @__PURE__ */ c(
|
|
1436
|
-
|
|
1436
|
+
y,
|
|
1437
1437
|
{
|
|
1438
1438
|
size: "xSmall",
|
|
1439
1439
|
name: "xCircle",
|
|
@@ -1457,15 +1457,15 @@ const W = {
|
|
|
1457
1457
|
styles: u = null,
|
|
1458
1458
|
type: p = "text",
|
|
1459
1459
|
value: V,
|
|
1460
|
-
variation:
|
|
1460
|
+
variation: C = "primary"
|
|
1461
1461
|
}) => /* @__PURE__ */ M(
|
|
1462
1462
|
"div",
|
|
1463
1463
|
{
|
|
1464
|
-
className: m("relative textbox",
|
|
1464
|
+
className: m("relative textbox", C, d),
|
|
1465
1465
|
style: u ? { ...u } : null,
|
|
1466
1466
|
children: [
|
|
1467
1467
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1468
|
-
|
|
1468
|
+
y,
|
|
1469
1469
|
{
|
|
1470
1470
|
size: "xSmall",
|
|
1471
1471
|
name: n,
|
|
@@ -1501,7 +1501,7 @@ const W = {
|
|
|
1501
1501
|
id: `${s}-clear`,
|
|
1502
1502
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1503
1503
|
children: /* @__PURE__ */ c(
|
|
1504
|
-
|
|
1504
|
+
y,
|
|
1505
1505
|
{
|
|
1506
1506
|
size: "xSmall",
|
|
1507
1507
|
name: "xCircle",
|
|
@@ -1901,7 +1901,7 @@ const W = {
|
|
|
1901
1901
|
screens: b1,
|
|
1902
1902
|
transitionDuration: A1,
|
|
1903
1903
|
transformOrigin: y1
|
|
1904
|
-
},
|
|
1904
|
+
}, I = {
|
|
1905
1905
|
black: {
|
|
1906
1906
|
50: "#FCFCFC",
|
|
1907
1907
|
100: "#F9F9F9",
|
|
@@ -1992,7 +1992,7 @@ const W = {
|
|
|
1992
1992
|
current: "currentColor",
|
|
1993
1993
|
transparent: "transparent",
|
|
1994
1994
|
white: "#fff"
|
|
1995
|
-
},
|
|
1995
|
+
}, B = {
|
|
1996
1996
|
blue: {
|
|
1997
1997
|
100: "hsl(240 42% 22%)",
|
|
1998
1998
|
60: "hsl(240 24% 34%)",
|
|
@@ -2009,8 +2009,8 @@ const W = {
|
|
|
2009
2009
|
white: "hsl(0 0% 100%)",
|
|
2010
2010
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2011
2011
|
}, s2 = {
|
|
2012
|
-
...
|
|
2013
|
-
...
|
|
2012
|
+
...I,
|
|
2013
|
+
...B
|
|
2014
2014
|
}, x1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2015
2015
|
{
|
|
2016
2016
|
aspect: (t) => ({
|
|
@@ -2064,13 +2064,13 @@ const W = {
|
|
|
2064
2064
|
const p = {
|
|
2065
2065
|
"font-size": u,
|
|
2066
2066
|
...a
|
|
2067
|
-
}, V = `.${e(`${t}-${i}`)}`,
|
|
2067
|
+
}, V = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: u }) : {};
|
|
2068
2068
|
r[V] = {
|
|
2069
2069
|
...p,
|
|
2070
|
-
...
|
|
2070
|
+
...C
|
|
2071
2071
|
}, Object.entries(l).forEach(([f, g]) => {
|
|
2072
|
-
const
|
|
2073
|
-
r[
|
|
2072
|
+
const x = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: g }) : {};
|
|
2073
|
+
r[x] = {
|
|
2074
2074
|
...p,
|
|
2075
2075
|
"font-weight": g,
|
|
2076
2076
|
...h
|
|
@@ -2186,14 +2186,14 @@ const W = {
|
|
|
2186
2186
|
], r2 = {
|
|
2187
2187
|
theme: {
|
|
2188
2188
|
extend: O,
|
|
2189
|
-
colors:
|
|
2189
|
+
colors: I
|
|
2190
2190
|
},
|
|
2191
2191
|
plugins: q,
|
|
2192
2192
|
corePlugins: $
|
|
2193
2193
|
}, l2 = {
|
|
2194
2194
|
theme: {
|
|
2195
2195
|
extend: O,
|
|
2196
|
-
colors:
|
|
2196
|
+
colors: B
|
|
2197
2197
|
},
|
|
2198
2198
|
plugins: q,
|
|
2199
2199
|
corePlugins: $
|
|
@@ -2323,10 +2323,10 @@ class h2 {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class H {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const l =
|
|
2329
|
-
e =
|
|
2328
|
+
const l = H.toRad(a - e), o = H.toRad(n - t);
|
|
2329
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
2330
2330
|
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
|
|
2331
2331
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2332
2332
|
}
|
|
@@ -2341,9 +2341,9 @@ class C {
|
|
|
2341
2341
|
return;
|
|
2342
2342
|
window.dataLayer = window.dataLayer || [];
|
|
2343
2343
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2344
|
-
typeof
|
|
2344
|
+
typeof H == "function" && t.forEach((a) => {
|
|
2345
2345
|
a.addEventListener("click", () => {
|
|
2346
|
-
|
|
2346
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
2347
2347
|
});
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
@@ -2354,9 +2354,9 @@ class C {
|
|
|
2354
2354
|
});
|
|
2355
2355
|
}
|
|
2356
2356
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2357
|
-
if (
|
|
2357
|
+
if (!t)
|
|
2358
2358
|
return null;
|
|
2359
|
-
const { tolken: s = null, ip: l = null } = await
|
|
2359
|
+
const { tolken: s = null, ip: l = null } = await H.getHeaders(), o = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + o, i = typeof t == "string" ? t : JSON.stringify(t), u = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2360
2360
|
try {
|
|
2361
2361
|
const p = await fetch(r, {
|
|
2362
2362
|
method: "POST",
|
|
@@ -2368,8 +2368,8 @@ class C {
|
|
|
2368
2368
|
}), V = p.headers.get("content-type");
|
|
2369
2369
|
if (V && V.indexOf("application/json") !== -1)
|
|
2370
2370
|
return p.json();
|
|
2371
|
-
const
|
|
2372
|
-
return
|
|
2371
|
+
const C = await p.text();
|
|
2372
|
+
return C ? C.replace("__next", "") : null;
|
|
2373
2373
|
} catch (p) {
|
|
2374
2374
|
console.error("createData", p);
|
|
2375
2375
|
}
|
|
@@ -2380,7 +2380,7 @@ class C {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2382
2382
|
try {
|
|
2383
|
-
return await
|
|
2383
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
2384
2384
|
} catch (t) {
|
|
2385
2385
|
console.error("deleteSearchValue", t.message);
|
|
2386
2386
|
}
|
|
@@ -2429,9 +2429,7 @@ class C {
|
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
2431
|
static async fetchData(e, t = !1, a = !0) {
|
|
2432
|
-
|
|
2433
|
-
return null;
|
|
2434
|
-
const { tolken: n = null, ip: s = null } = await C.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2432
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2435
2433
|
try {
|
|
2436
2434
|
const r = await fetch(o, { method: "GET" });
|
|
2437
2435
|
if (t === !0) {
|
|
@@ -2451,8 +2449,8 @@ class C {
|
|
|
2451
2449
|
}
|
|
2452
2450
|
static formatDate(e = null) {
|
|
2453
2451
|
return e ? (e = new Date(e), [
|
|
2454
|
-
|
|
2455
|
-
|
|
2452
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
2453
|
+
H.padTo2Digits(e.getDate()),
|
|
2456
2454
|
e.getFullYear()
|
|
2457
2455
|
].join("-")) : null;
|
|
2458
2456
|
}
|
|
@@ -2513,7 +2511,7 @@ class C {
|
|
|
2513
2511
|
userAgent: t,
|
|
2514
2512
|
platform: s
|
|
2515
2513
|
};
|
|
2516
|
-
if (
|
|
2514
|
+
if (typeof window.localStorage > "u")
|
|
2517
2515
|
return l;
|
|
2518
2516
|
const o = localStorage.getItem("headerTolken");
|
|
2519
2517
|
if (o) {
|
|
@@ -2549,19 +2547,19 @@ class C {
|
|
|
2549
2547
|
}[e];
|
|
2550
2548
|
}
|
|
2551
2549
|
static async getLocationData(e) {
|
|
2552
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2553
|
-
return await
|
|
2550
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2551
|
+
return await H.fetchData("/api/client?query=" + l);
|
|
2554
2552
|
}
|
|
2555
2553
|
static getReportUrl(e, t = null) {
|
|
2556
2554
|
var r, i, u;
|
|
2557
2555
|
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2558
2556
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2559
2557
|
const o = [l, "-piq", t].filter((p) => p).join("");
|
|
2560
|
-
return "/" + [a, n, s].filter((p) => p).map((p) =>
|
|
2558
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + o;
|
|
2561
2559
|
}
|
|
2562
2560
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2563
2561
|
try {
|
|
2564
|
-
return await
|
|
2562
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
2565
2563
|
} catch (t) {
|
|
2566
2564
|
console.error("getSearchValue", t.message);
|
|
2567
2565
|
}
|
|
@@ -2689,7 +2687,7 @@ class C {
|
|
|
2689
2687
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2690
2688
|
return null;
|
|
2691
2689
|
try {
|
|
2692
|
-
return await
|
|
2690
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
2693
2691
|
} catch (t) {
|
|
2694
2692
|
console.error("getUser", t.message);
|
|
2695
2693
|
}
|
|
@@ -2705,7 +2703,7 @@ class C {
|
|
|
2705
2703
|
uuid: t
|
|
2706
2704
|
}
|
|
2707
2705
|
});
|
|
2708
|
-
return await
|
|
2706
|
+
return await H.makeSearchFetchCall(
|
|
2709
2707
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2710
2708
|
);
|
|
2711
2709
|
}
|
|
@@ -2785,28 +2783,28 @@ class C {
|
|
|
2785
2783
|
if (w.attributeName === "open") {
|
|
2786
2784
|
const b = w.target;
|
|
2787
2785
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2788
|
-
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await
|
|
2786
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await x(b), b == null || b.dispatchEvent(p.opened);
|
|
2789
2787
|
}
|
|
2790
2788
|
});
|
|
2791
|
-
}),
|
|
2789
|
+
}), C = new MutationObserver((h, v) => {
|
|
2792
2790
|
h.forEach((w) => {
|
|
2793
2791
|
w.removedNodes.forEach((b) => {
|
|
2794
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed),
|
|
2792
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2795
2793
|
});
|
|
2796
2794
|
});
|
|
2797
2795
|
});
|
|
2798
2796
|
i && (V.observe(i, {
|
|
2799
2797
|
attributes: !0
|
|
2800
|
-
}),
|
|
2798
|
+
}), C.observe(document.body, {
|
|
2801
2799
|
attributes: !1,
|
|
2802
2800
|
subtree: !1,
|
|
2803
2801
|
childList: !0
|
|
2804
2802
|
}));
|
|
2805
2803
|
const f = async ({ target: h }) => {
|
|
2806
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await
|
|
2804
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2807
2805
|
}, g = async ({ target: h }) => {
|
|
2808
2806
|
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), i == null || i.close("outside"));
|
|
2809
|
-
},
|
|
2807
|
+
}, x = (h) => Promise.allSettled(
|
|
2810
2808
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2811
2809
|
);
|
|
2812
2810
|
return !e && (i == null || i.addEventListener("click", g)), i == null || i.addEventListener("close", async (h) => {
|
|
@@ -2831,7 +2829,7 @@ class C {
|
|
|
2831
2829
|
};
|
|
2832
2830
|
}
|
|
2833
2831
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2834
|
-
return
|
|
2832
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2835
2833
|
}
|
|
2836
2834
|
static initObserver(e, t, a = null) {
|
|
2837
2835
|
if (!e)
|
|
@@ -2890,7 +2888,7 @@ class C {
|
|
|
2890
2888
|
url: n,
|
|
2891
2889
|
data: s
|
|
2892
2890
|
};
|
|
2893
|
-
return await
|
|
2891
|
+
return await H.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2894
2892
|
}
|
|
2895
2893
|
static loadAds() {
|
|
2896
2894
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2908,7 +2906,7 @@ class C {
|
|
|
2908
2906
|
if (e) {
|
|
2909
2907
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2910
2908
|
try {
|
|
2911
|
-
return await
|
|
2909
|
+
return await H.injectScript({
|
|
2912
2910
|
src: s,
|
|
2913
2911
|
id: t || e,
|
|
2914
2912
|
async: !1,
|
|
@@ -2924,11 +2922,11 @@ class C {
|
|
|
2924
2922
|
if (window.options.googleMapsLoaded === !0)
|
|
2925
2923
|
return;
|
|
2926
2924
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2927
|
-
await
|
|
2925
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2928
2926
|
}
|
|
2929
2927
|
static async loadLeafletApi() {
|
|
2930
2928
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2931
|
-
await
|
|
2929
|
+
await H.injectLink({ href: t, id: "leafletCss" }), await H.injectLink({ href: n, id: "gestureCss" }), await H.injectScript({ src: e, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2932
2930
|
src: a,
|
|
2933
2931
|
id: "gestureJs",
|
|
2934
2932
|
async: !1
|
|
@@ -2943,7 +2941,7 @@ class C {
|
|
|
2943
2941
|
}
|
|
2944
2942
|
static async loadSwiper() {
|
|
2945
2943
|
const e = "/slider/swiper-bundle.min.js";
|
|
2946
|
-
await
|
|
2944
|
+
await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2947
2945
|
}
|
|
2948
2946
|
static async makeSearchFetchCall(e) {
|
|
2949
2947
|
try {
|
|
@@ -2983,10 +2981,10 @@ class C {
|
|
|
2983
2981
|
vin: u = null,
|
|
2984
2982
|
license: p = null,
|
|
2985
2983
|
token: V = null,
|
|
2986
|
-
phone:
|
|
2987
|
-
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18",
|
|
2984
|
+
phone: C = null
|
|
2985
|
+
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = o && o !== "" && l !== "99";
|
|
2988
2986
|
let h = [];
|
|
2989
|
-
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)), g &&
|
|
2987
|
+
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)), g && x ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (g && h.push("min=" + l), x && h.push("max=" + o)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
2990
2988
|
}
|
|
2991
2989
|
static padTo2Digits(e) {
|
|
2992
2990
|
return e.toString().padStart(2, "0");
|
|
@@ -3006,8 +3004,9 @@ class C {
|
|
|
3006
3004
|
useGoogle: i = !1,
|
|
3007
3005
|
useGoogleOverride: u = !1,
|
|
3008
3006
|
useAmazonOverride: p = !1,
|
|
3009
|
-
isSandboxAccount: V = !1
|
|
3010
|
-
|
|
3007
|
+
isSandboxAccount: V = !1,
|
|
3008
|
+
isOptOutSearch: C = !1
|
|
3009
|
+
} = t ?? {}, { tolken: f = null, ip: g = null } = await H.getHeaders(), h = [
|
|
3011
3010
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3012
3011
|
"addressesOnly=" + a,
|
|
3013
3012
|
"useSearch=" + l,
|
|
@@ -3017,11 +3016,12 @@ class C {
|
|
|
3017
3016
|
"useGoogle=" + i,
|
|
3018
3017
|
"useGoogleOverride=" + u,
|
|
3019
3018
|
"useAmazonOverride=" + p,
|
|
3020
|
-
"isSandboxAccount=" + V
|
|
3019
|
+
"isSandboxAccount=" + V,
|
|
3020
|
+
"isOptOutSearch=" + C
|
|
3021
3021
|
];
|
|
3022
|
-
r && r !== "" && !s &&
|
|
3023
|
-
const
|
|
3024
|
-
return await
|
|
3022
|
+
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), g && g !== "" && h.push("ip=" + g);
|
|
3023
|
+
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3024
|
+
return await H.makeSearchFetchCall(b);
|
|
3025
3025
|
}
|
|
3026
3026
|
static removeElements(e) {
|
|
3027
3027
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3040,7 +3040,7 @@ class C {
|
|
|
3040
3040
|
});
|
|
3041
3041
|
}
|
|
3042
3042
|
static searchInStates(e) {
|
|
3043
|
-
const t =
|
|
3043
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
3044
3044
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3045
3045
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3046
3046
|
}
|
|
@@ -3048,7 +3048,7 @@ class C {
|
|
|
3048
3048
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3049
3049
|
}
|
|
3050
3050
|
static setBoundsEntries(e, t = "bounds") {
|
|
3051
|
-
const a =
|
|
3051
|
+
const a = H.getBoundsEntries(t);
|
|
3052
3052
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3053
3053
|
}
|
|
3054
3054
|
static async setCityState(e = null) {
|
|
@@ -3057,7 +3057,7 @@ class C {
|
|
|
3057
3057
|
return e;
|
|
3058
3058
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3059
3059
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3060
|
-
if (
|
|
3060
|
+
if (H.getStates(), a && !n) {
|
|
3061
3061
|
const s = this.searchInStates(a);
|
|
3062
3062
|
s && (a = null, n = s.short);
|
|
3063
3063
|
}
|
|
@@ -3091,7 +3091,7 @@ class C {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3094
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3094
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(
|
|
3095
3095
|
`/api/cookie/create?name=${t}`,
|
|
3096
3096
|
e,
|
|
3097
3097
|
!0,
|
|
@@ -3123,7 +3123,7 @@ class C {
|
|
|
3123
3123
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3124
3124
|
}
|
|
3125
3125
|
static useLayerTitle(e, t) {
|
|
3126
|
-
const a =
|
|
3126
|
+
const a = H.getLayerTitle(e);
|
|
3127
3127
|
L.tileLayer(a, {
|
|
3128
3128
|
maxNativeZoom: 19,
|
|
3129
3129
|
maxZoom: 25,
|
|
@@ -3132,7 +3132,7 @@ class C {
|
|
|
3132
3132
|
}).addTo(t);
|
|
3133
3133
|
}
|
|
3134
3134
|
static ucWords(e) {
|
|
3135
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3135
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
3136
3136
|
}
|
|
3137
3137
|
/**
|
|
3138
3138
|
* HOW TO USE EVENTS
|
|
@@ -3181,15 +3181,15 @@ export {
|
|
|
3181
3181
|
O1 as Badge,
|
|
3182
3182
|
F as Button,
|
|
3183
3183
|
h2 as CardSlider,
|
|
3184
|
-
|
|
3185
|
-
|
|
3184
|
+
I1 as Checkbox,
|
|
3185
|
+
H as Common,
|
|
3186
3186
|
K1 as ContactForm,
|
|
3187
3187
|
X1 as ContentCard,
|
|
3188
|
-
|
|
3188
|
+
B1 as Dialog,
|
|
3189
3189
|
$1 as Dots,
|
|
3190
3190
|
e2 as FlexItem,
|
|
3191
3191
|
n2 as FunnelHeader,
|
|
3192
|
-
|
|
3192
|
+
y as Icon,
|
|
3193
3193
|
q1 as LoadingBar,
|
|
3194
3194
|
P1 as Popover,
|
|
3195
3195
|
j1 as ProcessingSpinner,
|