@vehiclehistory/property-lib 0.0.92 → 0.0.94
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 +168 -189
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -624,14 +624,14 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon: i, iconColor:
|
|
627
|
+
}, { icon: i, iconColor: p, styles: u } = r[o];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
631
|
id: o,
|
|
632
632
|
className: m(
|
|
633
633
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
|
-
|
|
634
|
+
u,
|
|
635
635
|
e
|
|
636
636
|
),
|
|
637
637
|
...l,
|
|
@@ -641,7 +641,7 @@ const W = {
|
|
|
641
641
|
{
|
|
642
642
|
name: i,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
|
-
className:
|
|
644
|
+
className: p,
|
|
645
645
|
size: "xSmall"
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
@@ -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((H, C) => /* @__PURE__ */ c("li", { children: H }, C))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -663,7 +663,7 @@ const W = {
|
|
|
663
663
|
] })
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
|
-
},
|
|
666
|
+
}, D1 = A(_), T1 = ({
|
|
667
667
|
autoFocus: d = !1,
|
|
668
668
|
className: e,
|
|
669
669
|
dataSearch: t = "container",
|
|
@@ -674,9 +674,9 @@ const W = {
|
|
|
674
674
|
leftIcon: o = "homeSearch",
|
|
675
675
|
mobileBackdrop: r = !1,
|
|
676
676
|
name: i = "",
|
|
677
|
-
options:
|
|
678
|
-
parentProps:
|
|
679
|
-
placeholder:
|
|
677
|
+
options: p = [],
|
|
678
|
+
parentProps: u = {},
|
|
679
|
+
placeholder: H = "",
|
|
680
680
|
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
682
|
required: g = !1,
|
|
@@ -699,7 +699,7 @@ const W = {
|
|
|
699
699
|
"data-use-google": j,
|
|
700
700
|
className: m("Autocomplete", e),
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
|
-
...
|
|
702
|
+
...u,
|
|
703
703
|
children: [
|
|
704
704
|
x && /* @__PURE__ */ M(
|
|
705
705
|
"span",
|
|
@@ -750,7 +750,7 @@ const W = {
|
|
|
750
750
|
),
|
|
751
751
|
required: g,
|
|
752
752
|
autoComplete: "off",
|
|
753
|
-
placeholder: !
|
|
753
|
+
placeholder: !H && n ? " " : H,
|
|
754
754
|
type: "search",
|
|
755
755
|
name: i || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
@@ -828,7 +828,7 @@ const W = {
|
|
|
828
828
|
"data-title": b,
|
|
829
829
|
"aria-labelledby": "Label",
|
|
830
830
|
"aria-activedescendant": "search-item-0",
|
|
831
|
-
children:
|
|
831
|
+
children: p.length > 0 ? p.map((k, z) => /* @__PURE__ */ c(
|
|
832
832
|
"li",
|
|
833
833
|
{
|
|
834
834
|
id: `search-item-${z}`,
|
|
@@ -878,9 +878,9 @@ const W = {
|
|
|
878
878
|
props: o = {},
|
|
879
879
|
rightIcon: r,
|
|
880
880
|
rightIconProps: i = {},
|
|
881
|
-
rounded:
|
|
882
|
-
size:
|
|
883
|
-
type:
|
|
881
|
+
rounded: p = !1,
|
|
882
|
+
size: u = "md",
|
|
883
|
+
type: H = "button",
|
|
884
884
|
uppercase: C = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
@@ -888,13 +888,13 @@ const W = {
|
|
|
888
888
|
return /* @__PURE__ */ M(
|
|
889
889
|
g,
|
|
890
890
|
{
|
|
891
|
-
type: g !== "a" ?
|
|
891
|
+
type: g !== "a" ? H : null,
|
|
892
892
|
className: m(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
895
895
|
[`button--${f}`]: f,
|
|
896
|
-
[`button--${
|
|
897
|
-
"button--rounded":
|
|
896
|
+
[`button--${u}`]: u,
|
|
897
|
+
"button--rounded": p,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
900
|
"button--uppercase": C,
|
|
@@ -910,7 +910,7 @@ const W = {
|
|
|
910
910
|
y,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
|
-
size:
|
|
913
|
+
size: u === "md" ? "small" : "xSmall",
|
|
914
914
|
viewBox: "0 0 24 24",
|
|
915
915
|
...t
|
|
916
916
|
}
|
|
@@ -920,7 +920,7 @@ const W = {
|
|
|
920
920
|
y,
|
|
921
921
|
{
|
|
922
922
|
name: r,
|
|
923
|
-
size:
|
|
923
|
+
size: u === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
925
|
...i
|
|
926
926
|
}
|
|
@@ -939,14 +939,14 @@ const W = {
|
|
|
939
939
|
name: o = "",
|
|
940
940
|
props: r = {},
|
|
941
941
|
variation: i = "primary",
|
|
942
|
-
value:
|
|
942
|
+
value: p = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const
|
|
944
|
+
const u = l ? "div" : "label", H = u === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ M(
|
|
946
|
-
|
|
946
|
+
u,
|
|
947
947
|
{
|
|
948
948
|
className: m("checkbox flex items-center", i, t),
|
|
949
|
-
...
|
|
949
|
+
...H,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
952
952
|
"input",
|
|
@@ -962,7 +962,7 @@ const W = {
|
|
|
962
962
|
id: s,
|
|
963
963
|
name: o,
|
|
964
964
|
type: "checkbox",
|
|
965
|
-
value:
|
|
965
|
+
value: p,
|
|
966
966
|
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
@@ -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,
|
|
@@ -981,9 +981,9 @@ const W = {
|
|
|
981
981
|
disableClose: o = !1,
|
|
982
982
|
footer: r,
|
|
983
983
|
fullMobile: i = !0,
|
|
984
|
-
headerClass:
|
|
985
|
-
hideClose:
|
|
986
|
-
iconSize:
|
|
984
|
+
headerClass: p,
|
|
985
|
+
hideClose: u = !1,
|
|
986
|
+
iconSize: H = "medium",
|
|
987
987
|
preventPageScroll: C = !0,
|
|
988
988
|
stickyHeader: f = !1,
|
|
989
989
|
title: g = "",
|
|
@@ -1024,11 +1024,11 @@ const W = {
|
|
|
1024
1024
|
"!pb-0 border-0 justify-end": !g,
|
|
1025
1025
|
"justify-between border-b": g
|
|
1026
1026
|
},
|
|
1027
|
-
|
|
1027
|
+
p
|
|
1028
1028
|
),
|
|
1029
1029
|
children: [
|
|
1030
1030
|
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: x, children: g }),
|
|
1031
|
-
!
|
|
1031
|
+
!u && /* @__PURE__ */ c(
|
|
1032
1032
|
"button",
|
|
1033
1033
|
{
|
|
1034
1034
|
type: "button",
|
|
@@ -1040,7 +1040,7 @@ const W = {
|
|
|
1040
1040
|
y,
|
|
1041
1041
|
{
|
|
1042
1042
|
name: "close",
|
|
1043
|
-
size:
|
|
1043
|
+
size: H,
|
|
1044
1044
|
className: "pointer-events-none"
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
@@ -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" } }),
|
|
@@ -1090,17 +1090,17 @@ const W = {
|
|
|
1090
1090
|
function l({ cb: o }) {
|
|
1091
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1092
1092
|
if (!r) return;
|
|
1093
|
-
let i,
|
|
1094
|
-
function
|
|
1093
|
+
let i, p, u = !1;
|
|
1094
|
+
function H(C) {
|
|
1095
1095
|
i === void 0 && (i = C);
|
|
1096
1096
|
const f = C - i;
|
|
1097
|
-
if (
|
|
1097
|
+
if (p !== C) {
|
|
1098
1098
|
const g = f / n * 101;
|
|
1099
|
-
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(),
|
|
1099
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), u = !0, window.cancelAnimationFrame(C));
|
|
1100
1100
|
}
|
|
1101
|
-
f < n && (
|
|
1101
|
+
f < n && (p = C, u || window.requestAnimationFrame(H));
|
|
1102
1102
|
}
|
|
1103
|
-
window.requestAnimationFrame(
|
|
1103
|
+
window.requestAnimationFrame(H);
|
|
1104
1104
|
}
|
|
1105
1105
|
return N(() => {
|
|
1106
1106
|
l({ cb: d });
|
|
@@ -1185,9 +1185,9 @@ const W = {
|
|
|
1185
1185
|
rounded: r = !0,
|
|
1186
1186
|
showLabel: i = !1
|
|
1187
1187
|
}) => {
|
|
1188
|
-
const
|
|
1189
|
-
if (
|
|
1190
|
-
const f = Number(C) /
|
|
1188
|
+
const u = ((H, C) => {
|
|
1189
|
+
if (H) {
|
|
1190
|
+
const f = Number(C) / H;
|
|
1191
1191
|
return f > 1 ? 100 : f * 100;
|
|
1192
1192
|
}
|
|
1193
1193
|
return n;
|
|
@@ -1212,7 +1212,7 @@ const W = {
|
|
|
1212
1212
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1213
1213
|
t
|
|
1214
1214
|
),
|
|
1215
|
-
style: { width: `${
|
|
1215
|
+
style: { width: `${u}%` },
|
|
1216
1216
|
children: i && /* @__PURE__ */ c(
|
|
1217
1217
|
"span",
|
|
1218
1218
|
{
|
|
@@ -1220,7 +1220,7 @@ const W = {
|
|
|
1220
1220
|
"font-bold text-white text-xs mr-2",
|
|
1221
1221
|
l
|
|
1222
1222
|
),
|
|
1223
|
-
children: s || Math.round(
|
|
1223
|
+
children: s || Math.round(u)
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
}
|
|
@@ -1239,12 +1239,12 @@ const W = {
|
|
|
1239
1239
|
variation: r = "primary",
|
|
1240
1240
|
value: i = ""
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const
|
|
1242
|
+
const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
|
|
1243
1243
|
return /* @__PURE__ */ M(
|
|
1244
|
-
|
|
1244
|
+
p,
|
|
1245
1245
|
{
|
|
1246
1246
|
className: m("radio flex items-center", t),
|
|
1247
|
-
...
|
|
1247
|
+
...u,
|
|
1248
1248
|
children: [
|
|
1249
1249
|
/* @__PURE__ */ c(
|
|
1250
1250
|
"input",
|
|
@@ -1279,16 +1279,16 @@ const W = {
|
|
|
1279
1279
|
placeholder: o = "",
|
|
1280
1280
|
props: r = {},
|
|
1281
1281
|
selectClass: i = "",
|
|
1282
|
-
styles:
|
|
1283
|
-
variation:
|
|
1284
|
-
value:
|
|
1282
|
+
styles: p = null,
|
|
1283
|
+
variation: u = "primary",
|
|
1284
|
+
value: H
|
|
1285
1285
|
}) => {
|
|
1286
1286
|
const C = o ? { defaultValue: "" } : {};
|
|
1287
1287
|
return /* @__PURE__ */ M(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
1290
|
-
className: m("relative select", d,
|
|
1291
|
-
style:
|
|
1290
|
+
className: m("relative select", d, u),
|
|
1291
|
+
style: p ? { ...p } : null,
|
|
1292
1292
|
children: [
|
|
1293
1293
|
n,
|
|
1294
1294
|
/* @__PURE__ */ M(
|
|
@@ -1303,7 +1303,7 @@ const W = {
|
|
|
1303
1303
|
),
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
1306
|
-
value:
|
|
1306
|
+
value: H,
|
|
1307
1307
|
...C,
|
|
1308
1308
|
...r,
|
|
1309
1309
|
children: [
|
|
@@ -1407,8 +1407,8 @@ const W = {
|
|
|
1407
1407
|
placeholder: o = "",
|
|
1408
1408
|
props: r = {},
|
|
1409
1409
|
rows: i = 4,
|
|
1410
|
-
variation:
|
|
1411
|
-
}) => /* @__PURE__ */ M("div", { className: m("relative textarea",
|
|
1410
|
+
variation: p = "primary"
|
|
1411
|
+
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", p, d), children: [
|
|
1412
1412
|
/* @__PURE__ */ c(
|
|
1413
1413
|
"textarea",
|
|
1414
1414
|
{
|
|
@@ -1454,15 +1454,15 @@ const W = {
|
|
|
1454
1454
|
name: o = "",
|
|
1455
1455
|
placeholder: r = "",
|
|
1456
1456
|
props: i = {},
|
|
1457
|
-
styles:
|
|
1458
|
-
type:
|
|
1459
|
-
value:
|
|
1457
|
+
styles: p = null,
|
|
1458
|
+
type: u = "text",
|
|
1459
|
+
value: H,
|
|
1460
1460
|
variation: C = "primary"
|
|
1461
1461
|
}) => /* @__PURE__ */ M(
|
|
1462
1462
|
"div",
|
|
1463
1463
|
{
|
|
1464
1464
|
className: m("relative textbox", C, d),
|
|
1465
|
-
style:
|
|
1465
|
+
style: p ? { ...p } : 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,
|
|
@@ -1479,8 +1479,8 @@ const W = {
|
|
|
1479
1479
|
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
1481
|
name: o,
|
|
1482
|
-
type:
|
|
1483
|
-
value:
|
|
1482
|
+
type: u,
|
|
1483
|
+
value: H,
|
|
1484
1484
|
autoComplete: "off",
|
|
1485
1485
|
className: m(
|
|
1486
1486
|
"form-input",
|
|
@@ -1513,7 +1513,7 @@ const W = {
|
|
|
1513
1513
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1514
1514
|
]
|
|
1515
1515
|
}
|
|
1516
|
-
),
|
|
1516
|
+
), D = A(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: [
|
|
1517
1517
|
/* @__PURE__ */ c(
|
|
1518
1518
|
"input",
|
|
1519
1519
|
{
|
|
@@ -1580,7 +1580,7 @@ const W = {
|
|
|
1580
1580
|
),
|
|
1581
1581
|
children: [
|
|
1582
1582
|
/* @__PURE__ */ c(
|
|
1583
|
-
|
|
1583
|
+
D,
|
|
1584
1584
|
{
|
|
1585
1585
|
id: "contact-name",
|
|
1586
1586
|
name: "contact-name",
|
|
@@ -1591,7 +1591,7 @@ const W = {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
1593
|
/* @__PURE__ */ c(
|
|
1594
|
-
|
|
1594
|
+
D,
|
|
1595
1595
|
{
|
|
1596
1596
|
id: "contact-email",
|
|
1597
1597
|
name: "contact-email",
|
|
@@ -1644,23 +1644,23 @@ const W = {
|
|
|
1644
1644
|
headerClass: o,
|
|
1645
1645
|
list: r = !1,
|
|
1646
1646
|
props: i = {},
|
|
1647
|
-
variation:
|
|
1647
|
+
variation: p = "primary"
|
|
1648
1648
|
}) => {
|
|
1649
|
-
const
|
|
1649
|
+
const u = r ? "ul" : "div";
|
|
1650
1650
|
return /* @__PURE__ */ M(
|
|
1651
1651
|
"div",
|
|
1652
1652
|
{
|
|
1653
1653
|
className: m(
|
|
1654
1654
|
"content-card",
|
|
1655
1655
|
{ "content-card--block": d },
|
|
1656
|
-
`content-card--${
|
|
1656
|
+
`content-card--${p}`,
|
|
1657
1657
|
t
|
|
1658
1658
|
),
|
|
1659
1659
|
...i,
|
|
1660
1660
|
children: [
|
|
1661
1661
|
l && /* @__PURE__ */ c("div", { className: m("content-card__header", o), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1662
1662
|
/* @__PURE__ */ c(
|
|
1663
|
-
|
|
1663
|
+
u,
|
|
1664
1664
|
{
|
|
1665
1665
|
className: m("content-card__content", a),
|
|
1666
1666
|
role: r ? "list" : null,
|
|
@@ -1682,7 +1682,7 @@ const W = {
|
|
|
1682
1682
|
rowGap: o = 1,
|
|
1683
1683
|
value: r,
|
|
1684
1684
|
valueClass: i,
|
|
1685
|
-
wrap:
|
|
1685
|
+
wrap: p = !1
|
|
1686
1686
|
}) => /* @__PURE__ */ M(
|
|
1687
1687
|
"div",
|
|
1688
1688
|
{
|
|
@@ -1691,7 +1691,7 @@ const W = {
|
|
|
1691
1691
|
{
|
|
1692
1692
|
"flex-col items-start": a === "col",
|
|
1693
1693
|
"flex-row items-center": a === "row",
|
|
1694
|
-
"flex-wrap":
|
|
1694
|
+
"flex-wrap": p
|
|
1695
1695
|
},
|
|
1696
1696
|
e
|
|
1697
1697
|
),
|
|
@@ -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) => ({
|
|
@@ -2049,7 +2049,7 @@ const W = {
|
|
|
2049
2049
|
"max-block": (e) => ({
|
|
2050
2050
|
"max-block-size": e
|
|
2051
2051
|
})
|
|
2052
|
-
}),
|
|
2052
|
+
}), T = ({
|
|
2053
2053
|
addUtilities: d,
|
|
2054
2054
|
e,
|
|
2055
2055
|
classPrefix: t = "",
|
|
@@ -2060,18 +2060,18 @@ const W = {
|
|
|
2060
2060
|
weightProps: o = null
|
|
2061
2061
|
}) => {
|
|
2062
2062
|
const r = {};
|
|
2063
|
-
Object.entries(s).forEach(([i,
|
|
2064
|
-
const
|
|
2065
|
-
"font-size":
|
|
2063
|
+
Object.entries(s).forEach(([i, p]) => {
|
|
2064
|
+
const u = {
|
|
2065
|
+
"font-size": p,
|
|
2066
2066
|
...a
|
|
2067
|
-
},
|
|
2068
|
-
r[
|
|
2069
|
-
...
|
|
2067
|
+
}, H = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: p }) : {};
|
|
2068
|
+
r[H] = {
|
|
2069
|
+
...u,
|
|
2070
2070
|
...C
|
|
2071
2071
|
}, Object.entries(l).forEach(([f, g]) => {
|
|
2072
|
-
const x = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue:
|
|
2072
|
+
const x = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: p, weightKey: f, weightValue: g }) : {};
|
|
2073
2073
|
r[x] = {
|
|
2074
|
-
...
|
|
2074
|
+
...u,
|
|
2075
2075
|
"font-weight": g,
|
|
2076
2076
|
...h
|
|
2077
2077
|
};
|
|
@@ -2163,7 +2163,7 @@ const W = {
|
|
|
2163
2163
|
2: "0.813rem",
|
|
2164
2164
|
3: "0.75rem"
|
|
2165
2165
|
};
|
|
2166
|
-
|
|
2166
|
+
T({
|
|
2167
2167
|
addUtilities: d,
|
|
2168
2168
|
e: a,
|
|
2169
2169
|
classPrefix: "header",
|
|
@@ -2175,7 +2175,7 @@ const W = {
|
|
|
2175
2175
|
}),
|
|
2176
2176
|
sizes: l,
|
|
2177
2177
|
weights: s
|
|
2178
|
-
}),
|
|
2178
|
+
}), T({
|
|
2179
2179
|
addUtilities: d,
|
|
2180
2180
|
e: a,
|
|
2181
2181
|
classPrefix: "text-body",
|
|
@@ -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: $
|
|
@@ -2218,11 +2218,11 @@ function o2(d, e = []) {
|
|
|
2218
2218
|
function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2219
2219
|
let s = !0;
|
|
2220
2220
|
for (const [l, o] of t.entries()) {
|
|
2221
|
-
const r = e.querySelector(`[name="${l}"]`), i = a[l],
|
|
2222
|
-
i.forEach((
|
|
2223
|
-
|
|
2224
|
-
}),
|
|
2225
|
-
|
|
2221
|
+
const r = e.querySelector(`[name="${l}"]`), i = a[l], p = [];
|
|
2222
|
+
i.forEach((u) => {
|
|
2223
|
+
u.isValid(o) || p.push(u.message);
|
|
2224
|
+
}), p.length ? (s = !1, r.classList.add("field-error"), d && d({ isValid: s, field: r, validations: a })) : (r.classList.remove("field-error"), d && d({ isValid: !0, field: r, validations: a })), n && (r == null || r.addEventListener("input", (u) => {
|
|
2225
|
+
u.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2226
2226
|
}));
|
|
2227
2227
|
}
|
|
2228
2228
|
return s;
|
|
@@ -2323,10 +2323,10 @@ class h2 {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class V {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const l =
|
|
2329
|
-
e =
|
|
2328
|
+
const l = V.toRad(a - e), o = V.toRad(n - t);
|
|
2329
|
+
e = V.toRad(e), a = V.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 H {
|
|
|
2341
2341
|
return;
|
|
2342
2342
|
window.dataLayer = window.dataLayer || [];
|
|
2343
2343
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2344
|
-
typeof
|
|
2344
|
+
typeof V == "function" && t.forEach((a) => {
|
|
2345
2345
|
a.addEventListener("click", () => {
|
|
2346
|
-
|
|
2346
|
+
V.clickTrackEvent(a.dataset.divTrack);
|
|
2347
2347
|
});
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
@@ -2354,24 +2354,24 @@ class H {
|
|
|
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 V.getHeaders(), o = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + o, i = typeof t == "string" ? t : JSON.stringify(t), p = (t == null ? void 0 : t.website) ?? V.getWebsiteHeaderName();
|
|
2360
2360
|
try {
|
|
2361
|
-
const
|
|
2361
|
+
const u = await fetch(r, {
|
|
2362
2362
|
method: "POST",
|
|
2363
2363
|
body: i === "null" ? null : i,
|
|
2364
2364
|
headers: {
|
|
2365
|
-
website:
|
|
2365
|
+
website: p
|
|
2366
2366
|
},
|
|
2367
2367
|
...n
|
|
2368
|
-
}),
|
|
2369
|
-
if (
|
|
2370
|
-
return
|
|
2371
|
-
const C = await
|
|
2368
|
+
}), H = u.headers.get("content-type");
|
|
2369
|
+
if (H && H.indexOf("application/json") !== -1)
|
|
2370
|
+
return u.json();
|
|
2371
|
+
const C = await u.text();
|
|
2372
2372
|
return C ? C.replace("__next", "") : null;
|
|
2373
|
-
} catch (
|
|
2374
|
-
console.error("createData",
|
|
2373
|
+
} catch (u) {
|
|
2374
|
+
console.error("createData", u);
|
|
2375
2375
|
}
|
|
2376
2376
|
return null;
|
|
2377
2377
|
}
|
|
@@ -2380,7 +2380,7 @@ class H {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2382
2382
|
try {
|
|
2383
|
-
return await
|
|
2383
|
+
return await V.createData(`/api/cookie/remove?name=${e}`);
|
|
2384
2384
|
} catch (t) {
|
|
2385
2385
|
console.error("deleteSearchValue", t.message);
|
|
2386
2386
|
}
|
|
@@ -2429,14 +2429,12 @@ class H {
|
|
|
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 H.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2432
|
+
const { tolken: n = null, ip: s = null } = await V.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) {
|
|
2438
|
-
const
|
|
2439
|
-
return
|
|
2436
|
+
const p = await r.text();
|
|
2437
|
+
return p ? p.replace("__next", "") : null;
|
|
2440
2438
|
}
|
|
2441
2439
|
const i = r.headers.get("content-type");
|
|
2442
2440
|
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
@@ -2451,8 +2449,8 @@ class H {
|
|
|
2451
2449
|
}
|
|
2452
2450
|
static formatDate(e = null) {
|
|
2453
2451
|
return e ? (e = new Date(e), [
|
|
2454
|
-
|
|
2455
|
-
|
|
2452
|
+
V.padTo2Digits(e.getMonth() + 1),
|
|
2453
|
+
V.padTo2Digits(e.getDate()),
|
|
2456
2454
|
e.getFullYear()
|
|
2457
2455
|
].join("-")) : null;
|
|
2458
2456
|
}
|
|
@@ -2502,7 +2500,7 @@ class H {
|
|
|
2502
2500
|
return "/report/license-plate";
|
|
2503
2501
|
}
|
|
2504
2502
|
static async getHeaders(e = 300) {
|
|
2505
|
-
var
|
|
2503
|
+
var o;
|
|
2506
2504
|
const {
|
|
2507
2505
|
userAgent: t = null,
|
|
2508
2506
|
userAgentData: a = null,
|
|
@@ -2513,32 +2511,13 @@ class H {
|
|
|
2513
2511
|
userAgent: t,
|
|
2514
2512
|
platform: s
|
|
2515
2513
|
};
|
|
2516
|
-
if (
|
|
2517
|
-
return l;
|
|
2518
|
-
const o = localStorage.getItem("headerTolken");
|
|
2519
|
-
if (o) {
|
|
2520
|
-
const i = JSON.parse(o), u = (/* @__PURE__ */ new Date()).getTime();
|
|
2521
|
-
return i.expire - u < 0 && localStorage.removeItem("headerTolken"), {
|
|
2522
|
-
tolken: i.tolken,
|
|
2523
|
-
ip: i.ip,
|
|
2524
|
-
userAgent: t,
|
|
2525
|
-
platform: s
|
|
2526
|
-
};
|
|
2527
|
-
}
|
|
2528
|
-
if ((r = window == null ? void 0 : window.options) != null && r.isPdf)
|
|
2514
|
+
if (typeof window.localStorage > "u" || (o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2529
2515
|
return l;
|
|
2530
2516
|
try {
|
|
2531
|
-
const
|
|
2532
|
-
return
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
tolken: p,
|
|
2536
|
-
ip: V,
|
|
2537
|
-
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2538
|
-
})
|
|
2539
|
-
), { tolken: p, ip: V, userAgent: t, platform: s };
|
|
2540
|
-
} catch (i) {
|
|
2541
|
-
console.error("getHeaders", i);
|
|
2517
|
+
const i = await (await fetch("/api/headers")).json(), p = (i == null ? void 0 : i.sessionId) ?? null, u = (i == null ? void 0 : i.ip) ?? null;
|
|
2518
|
+
return { tolken: p, ip: u, userAgent: t, platform: s };
|
|
2519
|
+
} catch (r) {
|
|
2520
|
+
console.error("getHeaders", r);
|
|
2542
2521
|
}
|
|
2543
2522
|
return l;
|
|
2544
2523
|
}
|
|
@@ -2549,19 +2528,19 @@ class H {
|
|
|
2549
2528
|
}[e];
|
|
2550
2529
|
}
|
|
2551
2530
|
static async getLocationData(e) {
|
|
2552
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2553
|
-
return await
|
|
2531
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = V.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2532
|
+
return await V.fetchData("/api/client?query=" + l);
|
|
2554
2533
|
}
|
|
2555
2534
|
static getReportUrl(e, t = null) {
|
|
2556
|
-
var r, i,
|
|
2557
|
-
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 = ((
|
|
2535
|
+
var r, i, p;
|
|
2536
|
+
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 = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2558
2537
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2559
|
-
const o = [l, "-piq", t].filter((
|
|
2560
|
-
return "/" + [a, n, s].filter((
|
|
2538
|
+
const o = [l, "-piq", t].filter((u) => u).join("");
|
|
2539
|
+
return "/" + [a, n, s].filter((u) => u).map((u) => V.toSlug(u)).join("/") + "/" + o;
|
|
2561
2540
|
}
|
|
2562
2541
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2563
2542
|
try {
|
|
2564
|
-
return await
|
|
2543
|
+
return await V.createData(`/api/cookie/fetch?name=${e}`);
|
|
2565
2544
|
} catch (t) {
|
|
2566
2545
|
console.error("getSearchValue", t.message);
|
|
2567
2546
|
}
|
|
@@ -2689,7 +2668,7 @@ class H {
|
|
|
2689
2668
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2690
2669
|
return null;
|
|
2691
2670
|
try {
|
|
2692
|
-
return await
|
|
2671
|
+
return await V.createData("/api/cookie/fetch?name=odrUser");
|
|
2693
2672
|
} catch (t) {
|
|
2694
2673
|
console.error("getUser", t.message);
|
|
2695
2674
|
}
|
|
@@ -2705,7 +2684,7 @@ class H {
|
|
|
2705
2684
|
uuid: t
|
|
2706
2685
|
}
|
|
2707
2686
|
});
|
|
2708
|
-
return await
|
|
2687
|
+
return await V.makeSearchFetchCall(
|
|
2709
2688
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2710
2689
|
);
|
|
2711
2690
|
}
|
|
@@ -2767,7 +2746,7 @@ class H {
|
|
|
2767
2746
|
selfClose: l = !1,
|
|
2768
2747
|
target: o = null
|
|
2769
2748
|
}) {
|
|
2770
|
-
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`),
|
|
2749
|
+
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`), p = l ? i == null ? void 0 : i.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), u = [
|
|
2771
2750
|
"closing",
|
|
2772
2751
|
"closed",
|
|
2773
2752
|
"opening",
|
|
@@ -2780,22 +2759,22 @@ class H {
|
|
|
2780
2759
|
[v]: new Event(v)
|
|
2781
2760
|
}),
|
|
2782
2761
|
{}
|
|
2783
|
-
),
|
|
2762
|
+
), H = new MutationObserver((h, v) => {
|
|
2784
2763
|
h.forEach(async (w) => {
|
|
2785
2764
|
if (w.attributeName === "open") {
|
|
2786
2765
|
const b = w.target;
|
|
2787
2766
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2788
|
-
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(
|
|
2767
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(u.opening), b && await x(b), b == null || b.dispatchEvent(u.opened);
|
|
2789
2768
|
}
|
|
2790
2769
|
});
|
|
2791
2770
|
}), C = new MutationObserver((h, v) => {
|
|
2792
2771
|
h.forEach((w) => {
|
|
2793
2772
|
w.removedNodes.forEach((b) => {
|
|
2794
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(
|
|
2773
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(u.removed), C == null || C.disconnect(), H == null || H.disconnect());
|
|
2795
2774
|
});
|
|
2796
2775
|
});
|
|
2797
2776
|
});
|
|
2798
|
-
i && (
|
|
2777
|
+
i && (H.observe(i, {
|
|
2799
2778
|
attributes: !0
|
|
2800
2779
|
}), C.observe(document.body, {
|
|
2801
2780
|
attributes: !1,
|
|
@@ -2803,9 +2782,9 @@ class H {
|
|
|
2803
2782
|
childList: !0
|
|
2804
2783
|
}));
|
|
2805
2784
|
const f = async ({ target: h }) => {
|
|
2806
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(
|
|
2785
|
+
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);
|
|
2807
2786
|
}, g = async ({ target: h }) => {
|
|
2808
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(
|
|
2787
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), i == null || i.close("outside"));
|
|
2809
2788
|
}, x = (h) => Promise.allSettled(
|
|
2810
2789
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2811
2790
|
);
|
|
@@ -2821,7 +2800,7 @@ class H {
|
|
|
2821
2800
|
h.addEventListener("click", (v) => {
|
|
2822
2801
|
i == null || i.showModal(), s && s(v, i);
|
|
2823
2802
|
});
|
|
2824
|
-
}),
|
|
2803
|
+
}), p == null || p.forEach((h) => {
|
|
2825
2804
|
h.addEventListener("click", async (v) => {
|
|
2826
2805
|
i == null || i.close("close");
|
|
2827
2806
|
});
|
|
@@ -2831,7 +2810,7 @@ class H {
|
|
|
2831
2810
|
};
|
|
2832
2811
|
}
|
|
2833
2812
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2834
|
-
return
|
|
2813
|
+
return V.getBoundsEntries(t).includes(e);
|
|
2835
2814
|
}
|
|
2836
2815
|
static initObserver(e, t, a = null) {
|
|
2837
2816
|
if (!e)
|
|
@@ -2890,7 +2869,7 @@ class H {
|
|
|
2890
2869
|
url: n,
|
|
2891
2870
|
data: s
|
|
2892
2871
|
};
|
|
2893
|
-
return await
|
|
2872
|
+
return await V.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2894
2873
|
}
|
|
2895
2874
|
static loadAds() {
|
|
2896
2875
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2908,7 +2887,7 @@ class H {
|
|
|
2908
2887
|
if (e) {
|
|
2909
2888
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2910
2889
|
try {
|
|
2911
|
-
return await
|
|
2890
|
+
return await V.injectScript({
|
|
2912
2891
|
src: s,
|
|
2913
2892
|
id: t || e,
|
|
2914
2893
|
async: !1,
|
|
@@ -2924,11 +2903,11 @@ class H {
|
|
|
2924
2903
|
if (window.options.googleMapsLoaded === !0)
|
|
2925
2904
|
return;
|
|
2926
2905
|
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
|
|
2906
|
+
await V.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2928
2907
|
}
|
|
2929
2908
|
static async loadLeafletApi() {
|
|
2930
2909
|
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
|
|
2910
|
+
await V.injectLink({ href: t, id: "leafletCss" }), await V.injectLink({ href: n, id: "gestureCss" }), await V.injectScript({ src: e, id: "leafletJs", async: !1 }), await V.injectScript({
|
|
2932
2911
|
src: a,
|
|
2933
2912
|
id: "gestureJs",
|
|
2934
2913
|
async: !1
|
|
@@ -2943,7 +2922,7 @@ class H {
|
|
|
2943
2922
|
}
|
|
2944
2923
|
static async loadSwiper() {
|
|
2945
2924
|
const e = "/slider/swiper-bundle.min.js";
|
|
2946
|
-
await
|
|
2925
|
+
await V.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await V.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2947
2926
|
}
|
|
2948
2927
|
static async makeSearchFetchCall(e) {
|
|
2949
2928
|
try {
|
|
@@ -2980,13 +2959,13 @@ class H {
|
|
|
2980
2959
|
max: o = null,
|
|
2981
2960
|
city: r = null,
|
|
2982
2961
|
state: i = null,
|
|
2983
|
-
vin:
|
|
2984
|
-
license:
|
|
2985
|
-
token:
|
|
2962
|
+
vin: p = null,
|
|
2963
|
+
license: u = null,
|
|
2964
|
+
token: H = null,
|
|
2986
2965
|
phone: C = null
|
|
2987
2966
|
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = o && o !== "" && l !== "99";
|
|
2988
2967
|
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 && 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),
|
|
2968
|
+
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), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), i && i !== "" && h.push("state=" + i), H && H !== "" && h.push("token=" + H), h.join("&");
|
|
2990
2969
|
}
|
|
2991
2970
|
static padTo2Digits(e) {
|
|
2992
2971
|
return e.toString().padStart(2, "0");
|
|
@@ -3004,11 +2983,11 @@ class H {
|
|
|
3004
2983
|
useLocation: o = !0,
|
|
3005
2984
|
state: r = "",
|
|
3006
2985
|
useGoogle: i = !1,
|
|
3007
|
-
useGoogleOverride:
|
|
3008
|
-
useAmazonOverride:
|
|
3009
|
-
isSandboxAccount:
|
|
2986
|
+
useGoogleOverride: p = !1,
|
|
2987
|
+
useAmazonOverride: u = !1,
|
|
2988
|
+
isSandboxAccount: H = !1,
|
|
3010
2989
|
isOptOutSearch: C = !1
|
|
3011
|
-
} = t ?? {}, { tolken: f = null, ip: g = null } = await
|
|
2990
|
+
} = t ?? {}, { tolken: f = null, ip: g = null } = await V.getHeaders(), h = [
|
|
3012
2991
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3013
2992
|
"addressesOnly=" + a,
|
|
3014
2993
|
"useSearch=" + l,
|
|
@@ -3016,14 +2995,14 @@ class H {
|
|
|
3016
2995
|
"useCityStateSearch=" + s,
|
|
3017
2996
|
"useLocation=" + o,
|
|
3018
2997
|
"useGoogle=" + i,
|
|
3019
|
-
"useGoogleOverride=" +
|
|
3020
|
-
"useAmazonOverride=" +
|
|
3021
|
-
"isSandboxAccount=" +
|
|
2998
|
+
"useGoogleOverride=" + p,
|
|
2999
|
+
"useAmazonOverride=" + u,
|
|
3000
|
+
"isSandboxAccount=" + H,
|
|
3022
3001
|
"isOptOutSearch=" + C
|
|
3023
3002
|
];
|
|
3024
3003
|
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), g && g !== "" && h.push("ip=" + g);
|
|
3025
3004
|
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3026
|
-
return await
|
|
3005
|
+
return await V.makeSearchFetchCall(b);
|
|
3027
3006
|
}
|
|
3028
3007
|
static removeElements(e) {
|
|
3029
3008
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3042,7 +3021,7 @@ class H {
|
|
|
3042
3021
|
});
|
|
3043
3022
|
}
|
|
3044
3023
|
static searchInStates(e) {
|
|
3045
|
-
const t =
|
|
3024
|
+
const t = V.getStates(), a = e.toLowerCase();
|
|
3046
3025
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3047
3026
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3048
3027
|
}
|
|
@@ -3050,7 +3029,7 @@ class H {
|
|
|
3050
3029
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3051
3030
|
}
|
|
3052
3031
|
static setBoundsEntries(e, t = "bounds") {
|
|
3053
|
-
const a =
|
|
3032
|
+
const a = V.getBoundsEntries(t);
|
|
3054
3033
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3055
3034
|
}
|
|
3056
3035
|
static async setCityState(e = null) {
|
|
@@ -3059,7 +3038,7 @@ class H {
|
|
|
3059
3038
|
return e;
|
|
3060
3039
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3061
3040
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3062
|
-
if (
|
|
3041
|
+
if (V.getStates(), a && !n) {
|
|
3063
3042
|
const s = this.searchInStates(a);
|
|
3064
3043
|
s && (a = null, n = s.short);
|
|
3065
3044
|
}
|
|
@@ -3084,16 +3063,16 @@ class H {
|
|
|
3084
3063
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3085
3064
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3086
3065
|
try {
|
|
3087
|
-
const l = e.map(({ fileName: i, initFunctionName:
|
|
3088
|
-
o.forEach((i,
|
|
3089
|
-
i && typeof i[e[
|
|
3066
|
+
const l = e.map(({ fileName: i, initFunctionName: p }) => import(`${n}${s}${i}?v=${a}`)), o = await Promise.all(l), r = [];
|
|
3067
|
+
o.forEach((i, p) => {
|
|
3068
|
+
i && typeof i[e[p].initFunctionName] == "function" ? r.push(i[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
|
|
3090
3069
|
}), r.length > 0 && await Promise.all(r);
|
|
3091
3070
|
} catch (l) {
|
|
3092
3071
|
console.error("Failed to load one or more search modules:", l);
|
|
3093
3072
|
}
|
|
3094
3073
|
}
|
|
3095
3074
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3096
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3075
|
+
localStorage.setItem(t, JSON.stringify(e)), await V.createData(
|
|
3097
3076
|
`/api/cookie/create?name=${t}`,
|
|
3098
3077
|
e,
|
|
3099
3078
|
!0,
|
|
@@ -3125,7 +3104,7 @@ class H {
|
|
|
3125
3104
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3126
3105
|
}
|
|
3127
3106
|
static useLayerTitle(e, t) {
|
|
3128
|
-
const a =
|
|
3107
|
+
const a = V.getLayerTitle(e);
|
|
3129
3108
|
L.tileLayer(a, {
|
|
3130
3109
|
maxNativeZoom: 19,
|
|
3131
3110
|
maxZoom: 25,
|
|
@@ -3134,7 +3113,7 @@ class H {
|
|
|
3134
3113
|
}).addTo(t);
|
|
3135
3114
|
}
|
|
3136
3115
|
static ucWords(e) {
|
|
3137
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3116
|
+
return e ? e.toString().split(" ").map((t) => V.ucFirst(t)).join(" ") : null;
|
|
3138
3117
|
}
|
|
3139
3118
|
/**
|
|
3140
3119
|
* HOW TO USE EVENTS
|
|
@@ -3178,16 +3157,16 @@ class H {
|
|
|
3178
3157
|
}
|
|
3179
3158
|
export {
|
|
3180
3159
|
F1 as Accordion,
|
|
3181
|
-
|
|
3182
|
-
|
|
3160
|
+
D1 as Alert,
|
|
3161
|
+
T1 as Autocomplete,
|
|
3183
3162
|
O1 as Badge,
|
|
3184
3163
|
F as Button,
|
|
3185
3164
|
h2 as CardSlider,
|
|
3186
|
-
|
|
3187
|
-
|
|
3165
|
+
I1 as Checkbox,
|
|
3166
|
+
V as Common,
|
|
3188
3167
|
K1 as ContactForm,
|
|
3189
3168
|
X1 as ContentCard,
|
|
3190
|
-
|
|
3169
|
+
B1 as Dialog,
|
|
3191
3170
|
$1 as Dots,
|
|
3192
3171
|
e2 as FlexItem,
|
|
3193
3172
|
n2 as FunnelHeader,
|
|
@@ -3205,7 +3184,7 @@ export {
|
|
|
3205
3184
|
a2 as StackedListItem,
|
|
3206
3185
|
_1 as Stars,
|
|
3207
3186
|
c1 as TextArea,
|
|
3208
|
-
|
|
3187
|
+
D as Textbox,
|
|
3209
3188
|
Y1 as Toggle,
|
|
3210
3189
|
i2 as addClass,
|
|
3211
3190
|
s2 as colors,
|