@vehiclehistory/property-lib 0.0.93 → 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 +157 -176
- 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
|
),
|
|
@@ -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
|
)
|
|
@@ -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
|
),
|
|
@@ -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",
|
|
@@ -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
|
}
|
|
@@ -2356,22 +2356,22 @@ class H {
|
|
|
2356
2356
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2357
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,12 +2429,12 @@ class H {
|
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
2431
|
static async fetchData(e, t = !1, a = !0) {
|
|
2432
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2432
|
+
const { tolken: n = null, ip: s = null } = await V.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2433
2433
|
try {
|
|
2434
2434
|
const r = await fetch(o, { method: "GET" });
|
|
2435
2435
|
if (t === !0) {
|
|
2436
|
-
const
|
|
2437
|
-
return
|
|
2436
|
+
const p = await r.text();
|
|
2437
|
+
return p ? p.replace("__next", "") : null;
|
|
2438
2438
|
}
|
|
2439
2439
|
const i = r.headers.get("content-type");
|
|
2440
2440
|
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
@@ -2449,8 +2449,8 @@ class H {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
static formatDate(e = null) {
|
|
2451
2451
|
return e ? (e = new Date(e), [
|
|
2452
|
-
|
|
2453
|
-
|
|
2452
|
+
V.padTo2Digits(e.getMonth() + 1),
|
|
2453
|
+
V.padTo2Digits(e.getDate()),
|
|
2454
2454
|
e.getFullYear()
|
|
2455
2455
|
].join("-")) : null;
|
|
2456
2456
|
}
|
|
@@ -2500,7 +2500,7 @@ class H {
|
|
|
2500
2500
|
return "/report/license-plate";
|
|
2501
2501
|
}
|
|
2502
2502
|
static async getHeaders(e = 300) {
|
|
2503
|
-
var
|
|
2503
|
+
var o;
|
|
2504
2504
|
const {
|
|
2505
2505
|
userAgent: t = null,
|
|
2506
2506
|
userAgentData: a = null,
|
|
@@ -2511,32 +2511,13 @@ class H {
|
|
|
2511
2511
|
userAgent: t,
|
|
2512
2512
|
platform: s
|
|
2513
2513
|
};
|
|
2514
|
-
if (typeof window.localStorage > "u")
|
|
2515
|
-
return l;
|
|
2516
|
-
const o = localStorage.getItem("headerTolken");
|
|
2517
|
-
if (o) {
|
|
2518
|
-
const i = JSON.parse(o), u = (/* @__PURE__ */ new Date()).getTime();
|
|
2519
|
-
return i.expire - u < 0 && localStorage.removeItem("headerTolken"), {
|
|
2520
|
-
tolken: i.tolken,
|
|
2521
|
-
ip: i.ip,
|
|
2522
|
-
userAgent: t,
|
|
2523
|
-
platform: s
|
|
2524
|
-
};
|
|
2525
|
-
}
|
|
2526
|
-
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)
|
|
2527
2515
|
return l;
|
|
2528
2516
|
try {
|
|
2529
|
-
const
|
|
2530
|
-
return
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
tolken: p,
|
|
2534
|
-
ip: V,
|
|
2535
|
-
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2536
|
-
})
|
|
2537
|
-
), { tolken: p, ip: V, userAgent: t, platform: s };
|
|
2538
|
-
} catch (i) {
|
|
2539
|
-
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);
|
|
2540
2521
|
}
|
|
2541
2522
|
return l;
|
|
2542
2523
|
}
|
|
@@ -2547,19 +2528,19 @@ class H {
|
|
|
2547
2528
|
}[e];
|
|
2548
2529
|
}
|
|
2549
2530
|
static async getLocationData(e) {
|
|
2550
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2551
|
-
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);
|
|
2552
2533
|
}
|
|
2553
2534
|
static getReportUrl(e, t = null) {
|
|
2554
|
-
var r, i,
|
|
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 = ((
|
|
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;
|
|
2556
2537
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2557
|
-
const o = [l, "-piq", t].filter((
|
|
2558
|
-
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;
|
|
2559
2540
|
}
|
|
2560
2541
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2561
2542
|
try {
|
|
2562
|
-
return await
|
|
2543
|
+
return await V.createData(`/api/cookie/fetch?name=${e}`);
|
|
2563
2544
|
} catch (t) {
|
|
2564
2545
|
console.error("getSearchValue", t.message);
|
|
2565
2546
|
}
|
|
@@ -2687,7 +2668,7 @@ class H {
|
|
|
2687
2668
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2688
2669
|
return null;
|
|
2689
2670
|
try {
|
|
2690
|
-
return await
|
|
2671
|
+
return await V.createData("/api/cookie/fetch?name=odrUser");
|
|
2691
2672
|
} catch (t) {
|
|
2692
2673
|
console.error("getUser", t.message);
|
|
2693
2674
|
}
|
|
@@ -2703,7 +2684,7 @@ class H {
|
|
|
2703
2684
|
uuid: t
|
|
2704
2685
|
}
|
|
2705
2686
|
});
|
|
2706
|
-
return await
|
|
2687
|
+
return await V.makeSearchFetchCall(
|
|
2707
2688
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2708
2689
|
);
|
|
2709
2690
|
}
|
|
@@ -2765,7 +2746,7 @@ class H {
|
|
|
2765
2746
|
selfClose: l = !1,
|
|
2766
2747
|
target: o = null
|
|
2767
2748
|
}) {
|
|
2768
|
-
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 = [
|
|
2769
2750
|
"closing",
|
|
2770
2751
|
"closed",
|
|
2771
2752
|
"opening",
|
|
@@ -2778,22 +2759,22 @@ class H {
|
|
|
2778
2759
|
[v]: new Event(v)
|
|
2779
2760
|
}),
|
|
2780
2761
|
{}
|
|
2781
|
-
),
|
|
2762
|
+
), H = new MutationObserver((h, v) => {
|
|
2782
2763
|
h.forEach(async (w) => {
|
|
2783
2764
|
if (w.attributeName === "open") {
|
|
2784
2765
|
const b = w.target;
|
|
2785
2766
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2786
|
-
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);
|
|
2787
2768
|
}
|
|
2788
2769
|
});
|
|
2789
2770
|
}), C = new MutationObserver((h, v) => {
|
|
2790
2771
|
h.forEach((w) => {
|
|
2791
2772
|
w.removedNodes.forEach((b) => {
|
|
2792
|
-
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());
|
|
2793
2774
|
});
|
|
2794
2775
|
});
|
|
2795
2776
|
});
|
|
2796
|
-
i && (
|
|
2777
|
+
i && (H.observe(i, {
|
|
2797
2778
|
attributes: !0
|
|
2798
2779
|
}), C.observe(document.body, {
|
|
2799
2780
|
attributes: !1,
|
|
@@ -2801,9 +2782,9 @@ class H {
|
|
|
2801
2782
|
childList: !0
|
|
2802
2783
|
}));
|
|
2803
2784
|
const f = async ({ target: h }) => {
|
|
2804
|
-
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);
|
|
2805
2786
|
}, g = async ({ target: h }) => {
|
|
2806
|
-
(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"));
|
|
2807
2788
|
}, x = (h) => Promise.allSettled(
|
|
2808
2789
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2809
2790
|
);
|
|
@@ -2819,7 +2800,7 @@ class H {
|
|
|
2819
2800
|
h.addEventListener("click", (v) => {
|
|
2820
2801
|
i == null || i.showModal(), s && s(v, i);
|
|
2821
2802
|
});
|
|
2822
|
-
}),
|
|
2803
|
+
}), p == null || p.forEach((h) => {
|
|
2823
2804
|
h.addEventListener("click", async (v) => {
|
|
2824
2805
|
i == null || i.close("close");
|
|
2825
2806
|
});
|
|
@@ -2829,7 +2810,7 @@ class H {
|
|
|
2829
2810
|
};
|
|
2830
2811
|
}
|
|
2831
2812
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2832
|
-
return
|
|
2813
|
+
return V.getBoundsEntries(t).includes(e);
|
|
2833
2814
|
}
|
|
2834
2815
|
static initObserver(e, t, a = null) {
|
|
2835
2816
|
if (!e)
|
|
@@ -2888,7 +2869,7 @@ class H {
|
|
|
2888
2869
|
url: n,
|
|
2889
2870
|
data: s
|
|
2890
2871
|
};
|
|
2891
|
-
return await
|
|
2872
|
+
return await V.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2892
2873
|
}
|
|
2893
2874
|
static loadAds() {
|
|
2894
2875
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2906,7 +2887,7 @@ class H {
|
|
|
2906
2887
|
if (e) {
|
|
2907
2888
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2908
2889
|
try {
|
|
2909
|
-
return await
|
|
2890
|
+
return await V.injectScript({
|
|
2910
2891
|
src: s,
|
|
2911
2892
|
id: t || e,
|
|
2912
2893
|
async: !1,
|
|
@@ -2922,11 +2903,11 @@ class H {
|
|
|
2922
2903
|
if (window.options.googleMapsLoaded === !0)
|
|
2923
2904
|
return;
|
|
2924
2905
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2925
|
-
await
|
|
2906
|
+
await V.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2926
2907
|
}
|
|
2927
2908
|
static async loadLeafletApi() {
|
|
2928
2909
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2929
|
-
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({
|
|
2930
2911
|
src: a,
|
|
2931
2912
|
id: "gestureJs",
|
|
2932
2913
|
async: !1
|
|
@@ -2941,7 +2922,7 @@ class H {
|
|
|
2941
2922
|
}
|
|
2942
2923
|
static async loadSwiper() {
|
|
2943
2924
|
const e = "/slider/swiper-bundle.min.js";
|
|
2944
|
-
await
|
|
2925
|
+
await V.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await V.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2945
2926
|
}
|
|
2946
2927
|
static async makeSearchFetchCall(e) {
|
|
2947
2928
|
try {
|
|
@@ -2978,13 +2959,13 @@ class H {
|
|
|
2978
2959
|
max: o = null,
|
|
2979
2960
|
city: r = null,
|
|
2980
2961
|
state: i = null,
|
|
2981
|
-
vin:
|
|
2982
|
-
license:
|
|
2983
|
-
token:
|
|
2962
|
+
vin: p = null,
|
|
2963
|
+
license: u = null,
|
|
2964
|
+
token: H = null,
|
|
2984
2965
|
phone: C = null
|
|
2985
2966
|
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = o && o !== "" && l !== "99";
|
|
2986
2967
|
let h = [];
|
|
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),
|
|
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("&");
|
|
2988
2969
|
}
|
|
2989
2970
|
static padTo2Digits(e) {
|
|
2990
2971
|
return e.toString().padStart(2, "0");
|
|
@@ -3002,11 +2983,11 @@ class H {
|
|
|
3002
2983
|
useLocation: o = !0,
|
|
3003
2984
|
state: r = "",
|
|
3004
2985
|
useGoogle: i = !1,
|
|
3005
|
-
useGoogleOverride:
|
|
3006
|
-
useAmazonOverride:
|
|
3007
|
-
isSandboxAccount:
|
|
2986
|
+
useGoogleOverride: p = !1,
|
|
2987
|
+
useAmazonOverride: u = !1,
|
|
2988
|
+
isSandboxAccount: H = !1,
|
|
3008
2989
|
isOptOutSearch: C = !1
|
|
3009
|
-
} = t ?? {}, { tolken: f = null, ip: g = null } = await
|
|
2990
|
+
} = t ?? {}, { tolken: f = null, ip: g = null } = await V.getHeaders(), h = [
|
|
3010
2991
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3011
2992
|
"addressesOnly=" + a,
|
|
3012
2993
|
"useSearch=" + l,
|
|
@@ -3014,14 +2995,14 @@ class H {
|
|
|
3014
2995
|
"useCityStateSearch=" + s,
|
|
3015
2996
|
"useLocation=" + o,
|
|
3016
2997
|
"useGoogle=" + i,
|
|
3017
|
-
"useGoogleOverride=" +
|
|
3018
|
-
"useAmazonOverride=" +
|
|
3019
|
-
"isSandboxAccount=" +
|
|
2998
|
+
"useGoogleOverride=" + p,
|
|
2999
|
+
"useAmazonOverride=" + u,
|
|
3000
|
+
"isSandboxAccount=" + H,
|
|
3020
3001
|
"isOptOutSearch=" + C
|
|
3021
3002
|
];
|
|
3022
3003
|
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), g && g !== "" && h.push("ip=" + g);
|
|
3023
3004
|
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3024
|
-
return await
|
|
3005
|
+
return await V.makeSearchFetchCall(b);
|
|
3025
3006
|
}
|
|
3026
3007
|
static removeElements(e) {
|
|
3027
3008
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3040,7 +3021,7 @@ class H {
|
|
|
3040
3021
|
});
|
|
3041
3022
|
}
|
|
3042
3023
|
static searchInStates(e) {
|
|
3043
|
-
const t =
|
|
3024
|
+
const t = V.getStates(), a = e.toLowerCase();
|
|
3044
3025
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3045
3026
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3046
3027
|
}
|
|
@@ -3048,7 +3029,7 @@ class H {
|
|
|
3048
3029
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3049
3030
|
}
|
|
3050
3031
|
static setBoundsEntries(e, t = "bounds") {
|
|
3051
|
-
const a =
|
|
3032
|
+
const a = V.getBoundsEntries(t);
|
|
3052
3033
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3053
3034
|
}
|
|
3054
3035
|
static async setCityState(e = null) {
|
|
@@ -3057,7 +3038,7 @@ class H {
|
|
|
3057
3038
|
return e;
|
|
3058
3039
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3059
3040
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3060
|
-
if (
|
|
3041
|
+
if (V.getStates(), a && !n) {
|
|
3061
3042
|
const s = this.searchInStates(a);
|
|
3062
3043
|
s && (a = null, n = s.short);
|
|
3063
3044
|
}
|
|
@@ -3082,16 +3063,16 @@ class H {
|
|
|
3082
3063
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3083
3064
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3084
3065
|
try {
|
|
3085
|
-
const l = e.map(({ fileName: i, initFunctionName:
|
|
3086
|
-
o.forEach((i,
|
|
3087
|
-
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}()`);
|
|
3088
3069
|
}), r.length > 0 && await Promise.all(r);
|
|
3089
3070
|
} catch (l) {
|
|
3090
3071
|
console.error("Failed to load one or more search modules:", l);
|
|
3091
3072
|
}
|
|
3092
3073
|
}
|
|
3093
3074
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3094
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3075
|
+
localStorage.setItem(t, JSON.stringify(e)), await V.createData(
|
|
3095
3076
|
`/api/cookie/create?name=${t}`,
|
|
3096
3077
|
e,
|
|
3097
3078
|
!0,
|
|
@@ -3123,7 +3104,7 @@ class H {
|
|
|
3123
3104
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3124
3105
|
}
|
|
3125
3106
|
static useLayerTitle(e, t) {
|
|
3126
|
-
const a =
|
|
3107
|
+
const a = V.getLayerTitle(e);
|
|
3127
3108
|
L.tileLayer(a, {
|
|
3128
3109
|
maxNativeZoom: 19,
|
|
3129
3110
|
maxZoom: 25,
|
|
@@ -3132,7 +3113,7 @@ class H {
|
|
|
3132
3113
|
}).addTo(t);
|
|
3133
3114
|
}
|
|
3134
3115
|
static ucWords(e) {
|
|
3135
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3116
|
+
return e ? e.toString().split(" ").map((t) => V.ucFirst(t)).join(" ") : null;
|
|
3136
3117
|
}
|
|
3137
3118
|
/**
|
|
3138
3119
|
* HOW TO USE EVENTS
|
|
@@ -3176,13 +3157,13 @@ class H {
|
|
|
3176
3157
|
}
|
|
3177
3158
|
export {
|
|
3178
3159
|
F1 as Accordion,
|
|
3179
|
-
|
|
3180
|
-
|
|
3160
|
+
D1 as Alert,
|
|
3161
|
+
T1 as Autocomplete,
|
|
3181
3162
|
O1 as Badge,
|
|
3182
3163
|
F as Button,
|
|
3183
3164
|
h2 as CardSlider,
|
|
3184
3165
|
I1 as Checkbox,
|
|
3185
|
-
|
|
3166
|
+
V as Common,
|
|
3186
3167
|
K1 as ContactForm,
|
|
3187
3168
|
X1 as ContentCard,
|
|
3188
3169
|
B1 as Dialog,
|
|
@@ -3203,7 +3184,7 @@ export {
|
|
|
3203
3184
|
a2 as StackedListItem,
|
|
3204
3185
|
_1 as Stars,
|
|
3205
3186
|
c1 as TextArea,
|
|
3206
|
-
|
|
3187
|
+
D as Textbox,
|
|
3207
3188
|
Y1 as Toggle,
|
|
3208
3189
|
i2 as addClass,
|
|
3209
3190
|
s2 as colors,
|