@vehiclehistory/property-lib 0.0.979 → 0.0.981
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 +204 -210
- 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, H) => /* @__PURE__ */ c("li", { children: V }, H))
|
|
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:
|
|
680
|
-
props:
|
|
681
|
-
rightIcon:
|
|
682
|
-
required:
|
|
679
|
+
placeholder: V = "",
|
|
680
|
+
props: H = {},
|
|
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,21 +741,21 @@ 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",
|
|
757
757
|
...R,
|
|
758
|
-
...
|
|
758
|
+
...H
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
n && /* @__PURE__ */ c(
|
|
@@ -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:
|
|
884
|
-
uppercase:
|
|
885
|
-
variation:
|
|
883
|
+
type: V = "button",
|
|
884
|
+
uppercase: H = !1,
|
|
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
|
-
"button--uppercase":
|
|
901
|
-
"button--borderless": d ||
|
|
900
|
+
"button--uppercase": H,
|
|
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:
|
|
987
|
-
preventPageScroll:
|
|
988
|
-
sheet:
|
|
989
|
-
sheetDirection:
|
|
986
|
+
iconSize: V = "medium",
|
|
987
|
+
preventPageScroll: H = !0,
|
|
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":
|
|
1011
|
-
"prevent-scroll":
|
|
1010
|
+
"dialog-sheet--right": b === "right" && f,
|
|
1011
|
+
"prevent-scroll": H
|
|
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
|
|
1099
|
-
o === void 0 && (o =
|
|
1100
|
-
const
|
|
1101
|
-
if (p !==
|
|
1102
|
-
const
|
|
1103
|
-
r.style.width = `${
|
|
1098
|
+
function V(H) {
|
|
1099
|
+
o === void 0 && (o = H);
|
|
1100
|
+
const f = H - o;
|
|
1101
|
+
if (p !== H) {
|
|
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(H));
|
|
1104
1104
|
}
|
|
1105
|
-
|
|
1105
|
+
f < n && (p = H, 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, H) => {
|
|
1193
|
+
if (V) {
|
|
1194
|
+
const f = Number(H) / 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
|
-
const
|
|
1291
|
-
return /* @__PURE__ */
|
|
1290
|
+
const H = i ? { defaultValue: "" } : {};
|
|
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:
|
|
1311
|
-
...
|
|
1310
|
+
value: V,
|
|
1311
|
+
...H,
|
|
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,12 +1460,12 @@ const W = {
|
|
|
1460
1460
|
props: o = {},
|
|
1461
1461
|
styles: p = null,
|
|
1462
1462
|
type: u = "text",
|
|
1463
|
-
value:
|
|
1464
|
-
variation:
|
|
1465
|
-
}) => /* @__PURE__ */
|
|
1463
|
+
value: V,
|
|
1464
|
+
variation: H = "primary"
|
|
1465
|
+
}) => /* @__PURE__ */ M(
|
|
1466
1466
|
"div",
|
|
1467
1467
|
{
|
|
1468
|
-
className: m("relative textbox",
|
|
1468
|
+
className: m("relative textbox", H, d),
|
|
1469
1469
|
style: p ? { ...p } : null,
|
|
1470
1470
|
children: [
|
|
1471
1471
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
@@ -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}`)}`, H = n ? n({ sizeKey: o, sizeValue: p }) : {};
|
|
2094
|
+
r[V] = {
|
|
2095
2095
|
...u,
|
|
2096
|
-
...
|
|
2097
|
-
}, Object.entries(l).forEach(([
|
|
2098
|
-
const x = `.${e(`${t}-${o}-${
|
|
2096
|
+
...H
|
|
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
|
});
|
|
@@ -2349,10 +2349,10 @@ class h2 {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
|
-
class
|
|
2352
|
+
class C {
|
|
2353
2353
|
static calcCrow(e, t, a, n) {
|
|
2354
|
-
const l =
|
|
2355
|
-
e =
|
|
2354
|
+
const l = C.toRad(a - e), i = C.toRad(n - t);
|
|
2355
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
2356
2356
|
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2357
2357
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2358
2358
|
}
|
|
@@ -2367,9 +2367,9 @@ class H {
|
|
|
2367
2367
|
return;
|
|
2368
2368
|
window.dataLayer = window.dataLayer || [];
|
|
2369
2369
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2370
|
-
typeof
|
|
2370
|
+
typeof C == "function" && t.forEach((a) => {
|
|
2371
2371
|
a.addEventListener("click", () => {
|
|
2372
|
-
|
|
2372
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
2373
2373
|
});
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
@@ -2387,7 +2387,8 @@ class H {
|
|
|
2387
2387
|
data: t = null,
|
|
2388
2388
|
type: a = null,
|
|
2389
2389
|
name: n = null,
|
|
2390
|
-
userId: s = null
|
|
2390
|
+
userId: s = null,
|
|
2391
|
+
website: l = null
|
|
2391
2392
|
} = e ?? {};
|
|
2392
2393
|
if (!t) {
|
|
2393
2394
|
console.log("trackEvent: no data sent");
|
|
@@ -2398,29 +2399,34 @@ class H {
|
|
|
2398
2399
|
return;
|
|
2399
2400
|
}
|
|
2400
2401
|
const {
|
|
2401
|
-
isHeads:
|
|
2402
|
-
isLoggedIn:
|
|
2403
|
-
url:
|
|
2404
|
-
ip:
|
|
2405
|
-
sessionId:
|
|
2406
|
-
user:
|
|
2407
|
-
} = (window == null ? void 0 : window.options) ?? {}, { id:
|
|
2408
|
-
t.userId = s ??
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2402
|
+
isHeads: i = null,
|
|
2403
|
+
isLoggedIn: r = null,
|
|
2404
|
+
url: o = null,
|
|
2405
|
+
ip: p = null,
|
|
2406
|
+
sessionId: u = null,
|
|
2407
|
+
user: V = null
|
|
2408
|
+
} = (window == null ? void 0 : window.options) ?? {}, { id: H = null } = V ?? {};
|
|
2409
|
+
t.userId = s ?? H, t.isHeads = i, t.isLoggedIn = r, t.url = o, await C.createData(
|
|
2410
|
+
"/api/event",
|
|
2411
|
+
{
|
|
2412
|
+
payload: {
|
|
2413
|
+
data: t,
|
|
2414
|
+
type: a,
|
|
2415
|
+
name: n,
|
|
2416
|
+
userId: s ?? H,
|
|
2417
|
+
url: window.location.href,
|
|
2418
|
+
ip: p,
|
|
2419
|
+
sessionId: u,
|
|
2420
|
+
siteMarker: l
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
!1
|
|
2424
|
+
);
|
|
2419
2425
|
}
|
|
2420
2426
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2421
2427
|
if (!t)
|
|
2422
2428
|
return null;
|
|
2423
|
-
const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ??
|
|
2429
|
+
const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
|
|
2424
2430
|
try {
|
|
2425
2431
|
const r = await fetch(e + s, {
|
|
2426
2432
|
method: "POST",
|
|
@@ -2437,7 +2443,7 @@ class H {
|
|
|
2437
2443
|
return null;
|
|
2438
2444
|
}
|
|
2439
2445
|
static async createDataGetExtra({ useExtra: e }) {
|
|
2440
|
-
const { tolken: t = null, ip: a = null } = await
|
|
2446
|
+
const { tolken: t = null, ip: a = null } = await C.getHeaders();
|
|
2441
2447
|
return e === !1 ? "" : "&tolken=" + t + "&ip=" + a;
|
|
2442
2448
|
}
|
|
2443
2449
|
static async createDataReturn(e) {
|
|
@@ -2452,7 +2458,7 @@ class H {
|
|
|
2452
2458
|
}
|
|
2453
2459
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2454
2460
|
try {
|
|
2455
|
-
return await
|
|
2461
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
2456
2462
|
} catch (t) {
|
|
2457
2463
|
console.error("deleteSearchValue", t.message);
|
|
2458
2464
|
}
|
|
@@ -2501,7 +2507,7 @@ class H {
|
|
|
2501
2507
|
});
|
|
2502
2508
|
}
|
|
2503
2509
|
static async fetchData(e, t = !1, a = !0) {
|
|
2504
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2510
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2505
2511
|
try {
|
|
2506
2512
|
const r = await fetch(i, { method: "GET" });
|
|
2507
2513
|
if (t === !0) {
|
|
@@ -2521,8 +2527,8 @@ class H {
|
|
|
2521
2527
|
}
|
|
2522
2528
|
static formatDate(e = null) {
|
|
2523
2529
|
return e ? (e = new Date(e), [
|
|
2524
|
-
|
|
2525
|
-
|
|
2530
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
2531
|
+
C.padTo2Digits(e.getDate()),
|
|
2526
2532
|
e.getFullYear()
|
|
2527
2533
|
].join("-")) : null;
|
|
2528
2534
|
}
|
|
@@ -2572,7 +2578,7 @@ class H {
|
|
|
2572
2578
|
return "/report/license-plate";
|
|
2573
2579
|
}
|
|
2574
2580
|
static async getHeaders({ ttl: e = 600, bypassSession: t = !1 } = {}) {
|
|
2575
|
-
var
|
|
2581
|
+
var o;
|
|
2576
2582
|
const {
|
|
2577
2583
|
userAgent: a = null,
|
|
2578
2584
|
userAgentData: n = null,
|
|
@@ -2585,33 +2591,21 @@ class H {
|
|
|
2585
2591
|
};
|
|
2586
2592
|
if (typeof window.localStorage > "u")
|
|
2587
2593
|
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)
|
|
2594
|
+
const r = "headerSessionData";
|
|
2595
|
+
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2602
2596
|
return i;
|
|
2603
2597
|
try {
|
|
2604
|
-
const
|
|
2598
|
+
const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", H = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
|
|
2605
2599
|
return localStorage.setItem(
|
|
2606
2600
|
r,
|
|
2607
2601
|
JSON.stringify({
|
|
2608
|
-
tolken:
|
|
2609
|
-
ip:
|
|
2610
|
-
expire: (/* @__PURE__ */ new Date()).getTime() +
|
|
2602
|
+
tolken: V,
|
|
2603
|
+
ip: H,
|
|
2604
|
+
expire: (/* @__PURE__ */ new Date()).getTime() + f
|
|
2611
2605
|
})
|
|
2612
|
-
), { tolken:
|
|
2613
|
-
} catch (
|
|
2614
|
-
console.error("getHeaders",
|
|
2606
|
+
), { tolken: V, ip: H, userAgent: a, platform: l };
|
|
2607
|
+
} catch (p) {
|
|
2608
|
+
console.error("getHeaders", p);
|
|
2615
2609
|
}
|
|
2616
2610
|
return i;
|
|
2617
2611
|
}
|
|
@@ -2622,19 +2616,19 @@ class H {
|
|
|
2622
2616
|
}[e];
|
|
2623
2617
|
}
|
|
2624
2618
|
static async getLocationData(e) {
|
|
2625
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2626
|
-
return await
|
|
2619
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2620
|
+
return await C.fetchData("/api/client?query=" + l);
|
|
2627
2621
|
}
|
|
2628
2622
|
static getReportUrl(e, t = null) {
|
|
2629
2623
|
var r, o, p;
|
|
2630
2624
|
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2631
2625
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2632
2626
|
const i = [l, "-piq", t].filter((u) => u).join("");
|
|
2633
|
-
return "/" + [a, n, s].filter((u) => u).map((u) =>
|
|
2627
|
+
return "/" + [a, n, s].filter((u) => u).map((u) => C.toSlug(u)).join("/") + "/" + i;
|
|
2634
2628
|
}
|
|
2635
2629
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2636
2630
|
try {
|
|
2637
|
-
return await
|
|
2631
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
2638
2632
|
} catch (t) {
|
|
2639
2633
|
console.error("getSearchValue", t.message);
|
|
2640
2634
|
}
|
|
@@ -2762,7 +2756,7 @@ class H {
|
|
|
2762
2756
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2763
2757
|
return null;
|
|
2764
2758
|
try {
|
|
2765
|
-
return await
|
|
2759
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
2766
2760
|
} catch (t) {
|
|
2767
2761
|
console.error("getUser", t.message);
|
|
2768
2762
|
}
|
|
@@ -2778,7 +2772,7 @@ class H {
|
|
|
2778
2772
|
uuid: t
|
|
2779
2773
|
}
|
|
2780
2774
|
});
|
|
2781
|
-
return await
|
|
2775
|
+
return await C.fetchData(
|
|
2782
2776
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2783
2777
|
);
|
|
2784
2778
|
}
|
|
@@ -2848,42 +2842,42 @@ class H {
|
|
|
2848
2842
|
"outside",
|
|
2849
2843
|
"removed"
|
|
2850
2844
|
].reduce(
|
|
2851
|
-
(h,
|
|
2845
|
+
(h, v) => ({
|
|
2852
2846
|
...h,
|
|
2853
|
-
[
|
|
2847
|
+
[v]: new Event(v)
|
|
2854
2848
|
}),
|
|
2855
2849
|
{}
|
|
2856
|
-
),
|
|
2850
|
+
), V = new MutationObserver((h, v) => {
|
|
2857
2851
|
h.forEach(async (w) => {
|
|
2858
2852
|
if (w.attributeName === "open") {
|
|
2859
|
-
const
|
|
2860
|
-
if (!(
|
|
2861
|
-
|
|
2853
|
+
const g = w.target;
|
|
2854
|
+
if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
|
|
2855
|
+
g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(u.opening), g && await x(g), g == null || g.dispatchEvent(u.opened);
|
|
2862
2856
|
}
|
|
2863
2857
|
});
|
|
2864
|
-
}),
|
|
2858
|
+
}), H = new MutationObserver((h, v) => {
|
|
2865
2859
|
h.forEach((w) => {
|
|
2866
|
-
w.removedNodes.forEach((
|
|
2867
|
-
|
|
2860
|
+
w.removedNodes.forEach((g) => {
|
|
2861
|
+
g.nodeName === "DIALOG" && (g.removeEventListener("click", b), g.removeEventListener("close", f), g.dispatchEvent(u.removed), H == null || H.disconnect(), V == null || V.disconnect());
|
|
2868
2862
|
});
|
|
2869
2863
|
});
|
|
2870
2864
|
});
|
|
2871
|
-
o && (
|
|
2865
|
+
o && (V.observe(o, {
|
|
2872
2866
|
attributes: !0
|
|
2873
|
-
}),
|
|
2867
|
+
}), H.observe(document.body, {
|
|
2874
2868
|
attributes: !1,
|
|
2875
2869
|
subtree: !1,
|
|
2876
2870
|
childList: !0
|
|
2877
2871
|
}));
|
|
2878
|
-
const
|
|
2872
|
+
const f = async ({ target: h }) => {
|
|
2879
2873
|
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
|
-
},
|
|
2874
|
+
}, b = async ({ target: h }) => {
|
|
2881
2875
|
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
|
|
2882
2876
|
}, x = (h) => Promise.allSettled(
|
|
2883
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
2877
|
+
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2884
2878
|
);
|
|
2885
|
-
return !e && (o == null || o.addEventListener("click",
|
|
2886
|
-
await
|
|
2879
|
+
return !e && (o == null || o.addEventListener("click", b)), o == null || o.addEventListener("close", async (h) => {
|
|
2880
|
+
await f({ target: h.target }), a && a(h, o);
|
|
2887
2881
|
}), e && (o == null || o.addEventListener("cancel", async (h) => {
|
|
2888
2882
|
h.key === "Escape" && h.preventDefault();
|
|
2889
2883
|
})), e && (o == null || o.addEventListener("keydown", (h) => {
|
|
@@ -2891,11 +2885,11 @@ class H {
|
|
|
2891
2885
|
})), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2892
2886
|
n(h, o);
|
|
2893
2887
|
})), r == null || r.forEach((h) => {
|
|
2894
|
-
h.addEventListener("click", (
|
|
2895
|
-
o == null || o.showModal(), s && s(
|
|
2888
|
+
h.addEventListener("click", (v) => {
|
|
2889
|
+
o == null || o.showModal(), s && s(v, o);
|
|
2896
2890
|
});
|
|
2897
2891
|
}), p == null || p.forEach((h) => {
|
|
2898
|
-
h.addEventListener("click", async (
|
|
2892
|
+
h.addEventListener("click", async (v) => {
|
|
2899
2893
|
o == null || o.close("close");
|
|
2900
2894
|
});
|
|
2901
2895
|
}), {
|
|
@@ -2904,7 +2898,7 @@ class H {
|
|
|
2904
2898
|
};
|
|
2905
2899
|
}
|
|
2906
2900
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2907
|
-
return
|
|
2901
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2908
2902
|
}
|
|
2909
2903
|
static initObserver(e, t, a = null) {
|
|
2910
2904
|
if (!e)
|
|
@@ -2963,7 +2957,7 @@ class H {
|
|
|
2963
2957
|
url: n,
|
|
2964
2958
|
data: s
|
|
2965
2959
|
};
|
|
2966
|
-
return await
|
|
2960
|
+
return await C.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2967
2961
|
}
|
|
2968
2962
|
static loadAds() {
|
|
2969
2963
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2981,7 +2975,7 @@ class H {
|
|
|
2981
2975
|
if (e) {
|
|
2982
2976
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2983
2977
|
try {
|
|
2984
|
-
return await
|
|
2978
|
+
return await C.injectScript({
|
|
2985
2979
|
src: s,
|
|
2986
2980
|
id: t || e,
|
|
2987
2981
|
async: !1,
|
|
@@ -2997,11 +2991,11 @@ class H {
|
|
|
2997
2991
|
if (window.options.googleMapsLoaded === !0)
|
|
2998
2992
|
return;
|
|
2999
2993
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
3000
|
-
await
|
|
2994
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
3001
2995
|
}
|
|
3002
2996
|
static async loadLeafletApi() {
|
|
3003
2997
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
3004
|
-
await
|
|
2998
|
+
await C.injectLink({ href: t, id: "leafletCss" }), await C.injectLink({ href: n, id: "gestureCss" }), await C.injectScript({ src: e, id: "leafletJs", async: !1 }), await C.injectScript({
|
|
3005
2999
|
src: a,
|
|
3006
3000
|
id: "gestureJs",
|
|
3007
3001
|
async: !1
|
|
@@ -3016,7 +3010,7 @@ class H {
|
|
|
3016
3010
|
}
|
|
3017
3011
|
static async loadSwiper() {
|
|
3018
3012
|
const e = "/slider/swiper-bundle.min.js";
|
|
3019
|
-
await
|
|
3013
|
+
await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
3020
3014
|
}
|
|
3021
3015
|
static money(e, t = "", a = 0) {
|
|
3022
3016
|
return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
|
|
@@ -3044,11 +3038,11 @@ class H {
|
|
|
3044
3038
|
state: o = null,
|
|
3045
3039
|
vin: p = null,
|
|
3046
3040
|
license: u = null,
|
|
3047
|
-
token:
|
|
3048
|
-
phone:
|
|
3049
|
-
} = e || {},
|
|
3041
|
+
token: V = null,
|
|
3042
|
+
phone: H = null
|
|
3043
|
+
} = e || {}, f = t && t !== "", b = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
|
|
3050
3044
|
let h = [];
|
|
3051
|
-
return t && t !== "" && h.push("name=" + t),
|
|
3045
|
+
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)), H && H !== "" && h.push("phone=" + H), 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
3046
|
}
|
|
3053
3047
|
static padTo2Digits(e) {
|
|
3054
3048
|
return e.toString().padStart(2, "0");
|
|
@@ -3068,9 +3062,9 @@ class H {
|
|
|
3068
3062
|
useGoogle: o = !1,
|
|
3069
3063
|
useGoogleOverride: p = !1,
|
|
3070
3064
|
useAmazonOverride: u = !1,
|
|
3071
|
-
isSandboxAccount:
|
|
3072
|
-
isOptOutSearch:
|
|
3073
|
-
} = t ?? {}, { tolken:
|
|
3065
|
+
isSandboxAccount: V = !1,
|
|
3066
|
+
isOptOutSearch: H = !1
|
|
3067
|
+
} = t ?? {}, { tolken: f = null, ip: b = null } = await C.getHeaders(), h = [
|
|
3074
3068
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3075
3069
|
"addressesOnly=" + a,
|
|
3076
3070
|
"useSearch=" + l,
|
|
@@ -3080,12 +3074,12 @@ class H {
|
|
|
3080
3074
|
"useGoogle=" + o,
|
|
3081
3075
|
"useGoogleOverride=" + p,
|
|
3082
3076
|
"useAmazonOverride=" + u,
|
|
3083
|
-
"isSandboxAccount=" +
|
|
3084
|
-
"isOptOutSearch=" +
|
|
3077
|
+
"isSandboxAccount=" + V,
|
|
3078
|
+
"isOptOutSearch=" + H
|
|
3085
3079
|
];
|
|
3086
|
-
r && r !== "" && !s && h.push("state=" + r),
|
|
3087
|
-
const
|
|
3088
|
-
return await
|
|
3080
|
+
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), b && b !== "" && h.push("ip=" + b);
|
|
3081
|
+
const v = h.join("&"), g = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3082
|
+
return await C.fetchData(g);
|
|
3089
3083
|
}
|
|
3090
3084
|
static removeElements(e) {
|
|
3091
3085
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3104,7 +3098,7 @@ class H {
|
|
|
3104
3098
|
});
|
|
3105
3099
|
}
|
|
3106
3100
|
static searchInStates(e) {
|
|
3107
|
-
const t =
|
|
3101
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
3108
3102
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3109
3103
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3110
3104
|
}
|
|
@@ -3112,7 +3106,7 @@ class H {
|
|
|
3112
3106
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3113
3107
|
}
|
|
3114
3108
|
static setBoundsEntries(e, t = "bounds") {
|
|
3115
|
-
const a =
|
|
3109
|
+
const a = C.getBoundsEntries(t);
|
|
3116
3110
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3117
3111
|
}
|
|
3118
3112
|
static async setCityState(e = null) {
|
|
@@ -3121,7 +3115,7 @@ class H {
|
|
|
3121
3115
|
return e;
|
|
3122
3116
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3123
3117
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3124
|
-
if (
|
|
3118
|
+
if (C.getStates(), a && !n) {
|
|
3125
3119
|
const s = this.searchInStates(a);
|
|
3126
3120
|
s && (a = null, n = s.short);
|
|
3127
3121
|
}
|
|
@@ -3155,7 +3149,7 @@ class H {
|
|
|
3155
3149
|
}
|
|
3156
3150
|
}
|
|
3157
3151
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3158
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3152
|
+
localStorage.setItem(t, JSON.stringify(e)), await C.createData(
|
|
3159
3153
|
`/api/cookie/create?name=${t}`,
|
|
3160
3154
|
e,
|
|
3161
3155
|
!0,
|
|
@@ -3187,7 +3181,7 @@ class H {
|
|
|
3187
3181
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3188
3182
|
}
|
|
3189
3183
|
static useLayerTitle(e, t) {
|
|
3190
|
-
const a =
|
|
3184
|
+
const a = C.getLayerTitle(e);
|
|
3191
3185
|
L.tileLayer(a, {
|
|
3192
3186
|
maxNativeZoom: 19,
|
|
3193
3187
|
maxZoom: 25,
|
|
@@ -3196,7 +3190,7 @@ class H {
|
|
|
3196
3190
|
}).addTo(t);
|
|
3197
3191
|
}
|
|
3198
3192
|
static ucWords(e) {
|
|
3199
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3193
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
3200
3194
|
}
|
|
3201
3195
|
/**
|
|
3202
3196
|
* HOW TO USE EVENTS
|
|
@@ -3246,7 +3240,7 @@ export {
|
|
|
3246
3240
|
F as Button,
|
|
3247
3241
|
h2 as CardSlider,
|
|
3248
3242
|
O1 as Checkbox,
|
|
3249
|
-
|
|
3243
|
+
C as Common,
|
|
3250
3244
|
X1 as ContactForm,
|
|
3251
3245
|
K1 as ContentCard,
|
|
3252
3246
|
B1 as Dialog,
|