@vehiclehistory/property-lib 0.0.75 → 0.0.77
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/components/ui/Dialog/Dialog.d.ts +1 -0
- package/dist/main.es.js +199 -192
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -10
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as g, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { memo as b, useState as Z, useEffect as N, useRef as G } from "react";
|
|
3
2
|
import m from "classnames";
|
|
3
|
+
import { memo as b, useState as Z, useEffect as N, useRef as G } from "react";
|
|
4
4
|
const Q = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -577,7 +577,7 @@ const Q = {
|
|
|
577
577
|
}
|
|
578
578
|
)
|
|
579
579
|
] }) });
|
|
580
|
-
},
|
|
580
|
+
}, O1 = b(K), X = ({
|
|
581
581
|
children: d,
|
|
582
582
|
className: e = "",
|
|
583
583
|
messages: t = [],
|
|
@@ -639,7 +639,7 @@ const Q = {
|
|
|
639
639
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
640
640
|
a
|
|
641
641
|
),
|
|
642
|
-
children: t.map((V,
|
|
642
|
+
children: t.map((V, H) => /* @__PURE__ */ c("li", { children: V }, H))
|
|
643
643
|
}
|
|
644
644
|
) : "",
|
|
645
645
|
d
|
|
@@ -647,7 +647,7 @@ const Q = {
|
|
|
647
647
|
] })
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
|
-
},
|
|
650
|
+
}, $1 = b(X), q1 = ({
|
|
651
651
|
autoFocus: d = !1,
|
|
652
652
|
className: e = "",
|
|
653
653
|
dataSearch: t = "container",
|
|
@@ -661,7 +661,7 @@ const Q = {
|
|
|
661
661
|
options: u = [],
|
|
662
662
|
placeholder: p = "",
|
|
663
663
|
props: V = {},
|
|
664
|
-
required:
|
|
664
|
+
required: H = !1,
|
|
665
665
|
showSearchIcon: M = !0,
|
|
666
666
|
size: f = "medium",
|
|
667
667
|
styles: x = null,
|
|
@@ -723,7 +723,7 @@ const Q = {
|
|
|
723
723
|
},
|
|
724
724
|
r
|
|
725
725
|
),
|
|
726
|
-
required:
|
|
726
|
+
required: H,
|
|
727
727
|
autoComplete: "off",
|
|
728
728
|
value: a,
|
|
729
729
|
placeholder: !p && n ? " " : p,
|
|
@@ -814,7 +814,7 @@ const Q = {
|
|
|
814
814
|
)
|
|
815
815
|
]
|
|
816
816
|
}
|
|
817
|
-
),
|
|
817
|
+
), j1 = ({
|
|
818
818
|
children: d,
|
|
819
819
|
className: e,
|
|
820
820
|
size: t = "sm",
|
|
@@ -833,7 +833,7 @@ const Q = {
|
|
|
833
833
|
),
|
|
834
834
|
children: d
|
|
835
835
|
}
|
|
836
|
-
),
|
|
836
|
+
), e1 = ({
|
|
837
837
|
borderless: d = !1,
|
|
838
838
|
leftIcon: e,
|
|
839
839
|
leftIconProps: t = {},
|
|
@@ -847,7 +847,7 @@ const Q = {
|
|
|
847
847
|
rounded: u = !1,
|
|
848
848
|
size: p = "md",
|
|
849
849
|
type: V = "button",
|
|
850
|
-
uppercase:
|
|
850
|
+
uppercase: H = !1,
|
|
851
851
|
variation: M = "primary"
|
|
852
852
|
}) => {
|
|
853
853
|
const f = r ? "a" : "button";
|
|
@@ -863,7 +863,7 @@ const Q = {
|
|
|
863
863
|
"button--rounded": u,
|
|
864
864
|
"button--disabled": s,
|
|
865
865
|
"button--custom-link": r,
|
|
866
|
-
"button--uppercase":
|
|
866
|
+
"button--uppercase": H,
|
|
867
867
|
"button--borderless": d || M === "link"
|
|
868
868
|
},
|
|
869
869
|
n
|
|
@@ -894,7 +894,7 @@ const Q = {
|
|
|
894
894
|
]
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
|
-
}, F = b(
|
|
897
|
+
}, F = b(e1), P1 = ({ children: d, className: e }) => /* @__PURE__ */ c("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), R1 = ({
|
|
898
898
|
block: d = !1,
|
|
899
899
|
borderless: e = !1,
|
|
900
900
|
children: t,
|
|
@@ -920,7 +920,7 @@ const Q = {
|
|
|
920
920
|
role: i,
|
|
921
921
|
children: t
|
|
922
922
|
}
|
|
923
|
-
),
|
|
923
|
+
), t1 = ({
|
|
924
924
|
checked: d = !1,
|
|
925
925
|
children: e,
|
|
926
926
|
className: t = "",
|
|
@@ -962,7 +962,7 @@ const Q = {
|
|
|
962
962
|
]
|
|
963
963
|
}
|
|
964
964
|
);
|
|
965
|
-
},
|
|
965
|
+
}, W1 = b(t1), a1 = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
966
966
|
/* @__PURE__ */ c(
|
|
967
967
|
"main",
|
|
968
968
|
{
|
|
@@ -988,25 +988,26 @@ const Q = {
|
|
|
988
988
|
children: e
|
|
989
989
|
}
|
|
990
990
|
)
|
|
991
|
-
] }),
|
|
991
|
+
] }), U1 = b(a1), n1 = ({
|
|
992
992
|
activator: d,
|
|
993
993
|
id: e = "",
|
|
994
994
|
children: t,
|
|
995
995
|
className: a = "",
|
|
996
996
|
contentClass: n = "",
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
997
|
+
customScrollbar: s = !0,
|
|
998
|
+
dark: r = !1,
|
|
999
|
+
footer: i,
|
|
1000
|
+
fullMobile: l = !0,
|
|
1001
|
+
headerClass: o = "",
|
|
1002
|
+
hideClose: u = !1,
|
|
1003
|
+
iconSize: p = "medium",
|
|
1004
|
+
preventPageScroll: V = !0,
|
|
1005
|
+
stickyHeader: H = !1,
|
|
1006
|
+
title: M = "",
|
|
1007
|
+
titleClass: f = "",
|
|
1008
|
+
useFormMethod: x = !0
|
|
1008
1009
|
}) => {
|
|
1009
|
-
const
|
|
1010
|
+
const h = x ? "form" : "div";
|
|
1010
1011
|
return /* @__PURE__ */ g(k, { children: [
|
|
1011
1012
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
1012
1013
|
/* @__PURE__ */ c(
|
|
@@ -1017,17 +1018,17 @@ const Q = {
|
|
|
1017
1018
|
className: m(
|
|
1018
1019
|
"dialog",
|
|
1019
1020
|
{
|
|
1020
|
-
"dialog-full-mobile":
|
|
1021
|
-
dark:
|
|
1022
|
-
"prevent-scroll":
|
|
1021
|
+
"dialog-full-mobile": l,
|
|
1022
|
+
dark: r,
|
|
1023
|
+
"prevent-scroll": V
|
|
1023
1024
|
},
|
|
1024
1025
|
a
|
|
1025
1026
|
),
|
|
1026
1027
|
children: /* @__PURE__ */ g(
|
|
1027
|
-
|
|
1028
|
+
h,
|
|
1028
1029
|
{
|
|
1029
1030
|
className: "dialog-container",
|
|
1030
|
-
method:
|
|
1031
|
+
method: x ? "dialog" : null,
|
|
1031
1032
|
children: [
|
|
1032
1033
|
/* @__PURE__ */ g(
|
|
1033
1034
|
"header",
|
|
@@ -1035,15 +1036,15 @@ const Q = {
|
|
|
1035
1036
|
className: m(
|
|
1036
1037
|
"dialog-header",
|
|
1037
1038
|
{
|
|
1038
|
-
"sticky top-0 bg-white z-10":
|
|
1039
|
-
"!pb-0 border-0 justify-end": !
|
|
1040
|
-
"justify-between border-b":
|
|
1039
|
+
"sticky top-0 bg-white z-10": H,
|
|
1040
|
+
"!pb-0 border-0 justify-end": !M,
|
|
1041
|
+
"justify-between border-b": M
|
|
1041
1042
|
},
|
|
1042
|
-
|
|
1043
|
+
o
|
|
1043
1044
|
),
|
|
1044
1045
|
children: [
|
|
1045
|
-
|
|
1046
|
-
!
|
|
1046
|
+
M && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: f, children: M }),
|
|
1047
|
+
!u && /* @__PURE__ */ c(
|
|
1047
1048
|
"button",
|
|
1048
1049
|
{
|
|
1049
1050
|
type: "button",
|
|
@@ -1055,7 +1056,7 @@ const Q = {
|
|
|
1055
1056
|
A,
|
|
1056
1057
|
{
|
|
1057
1058
|
name: "close",
|
|
1058
|
-
size:
|
|
1059
|
+
size: p,
|
|
1059
1060
|
className: "pointer-events-none"
|
|
1060
1061
|
}
|
|
1061
1062
|
)
|
|
@@ -1068,18 +1069,24 @@ const Q = {
|
|
|
1068
1069
|
"div",
|
|
1069
1070
|
{
|
|
1070
1071
|
id: `${e}-dialog-content`,
|
|
1071
|
-
className: m(
|
|
1072
|
+
className: m(
|
|
1073
|
+
"dialog-content",
|
|
1074
|
+
{
|
|
1075
|
+
"custom-scrollbar": s
|
|
1076
|
+
},
|
|
1077
|
+
n
|
|
1078
|
+
),
|
|
1072
1079
|
children: t
|
|
1073
1080
|
}
|
|
1074
1081
|
),
|
|
1075
|
-
|
|
1082
|
+
i && /* @__PURE__ */ c("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: i })
|
|
1076
1083
|
]
|
|
1077
1084
|
}
|
|
1078
1085
|
)
|
|
1079
1086
|
}
|
|
1080
1087
|
)
|
|
1081
1088
|
] });
|
|
1082
|
-
},
|
|
1089
|
+
}, G1 = b(n1), s1 = ({
|
|
1083
1090
|
activator: d,
|
|
1084
1091
|
id: e = "",
|
|
1085
1092
|
children: t,
|
|
@@ -1093,13 +1100,13 @@ const Q = {
|
|
|
1093
1100
|
hideClose: u = !1,
|
|
1094
1101
|
iconSize: p = "medium",
|
|
1095
1102
|
isOpen: V = !1,
|
|
1096
|
-
setDialogOpen:
|
|
1103
|
+
setDialogOpen: H,
|
|
1097
1104
|
stickyHeader: M = !1,
|
|
1098
1105
|
title: f = "",
|
|
1099
1106
|
titleClass: x = ""
|
|
1100
1107
|
}) => {
|
|
1101
1108
|
const h = G(null), y = async () => {
|
|
1102
|
-
h.current.classList.add("closing"), await E(h.current), h.current.classList.remove("closing"), s && s(),
|
|
1109
|
+
h.current.classList.add("closing"), await E(h.current), h.current.classList.remove("closing"), s && s(), H(!1);
|
|
1103
1110
|
}, S = async (w) => {
|
|
1104
1111
|
w.key === "Escape" && await y();
|
|
1105
1112
|
}, v = async ({ clientX: w, clientY: z, target: j }) => {
|
|
@@ -1112,7 +1119,7 @@ const Q = {
|
|
|
1112
1119
|
const w = h.current;
|
|
1113
1120
|
w && (V ? w.showModal() : typeof w.close == "function" && w.close());
|
|
1114
1121
|
}, [V]), /* @__PURE__ */ g(k, { children: [
|
|
1115
|
-
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, onClick: () =>
|
|
1122
|
+
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, onClick: () => H(!0), children: d }),
|
|
1116
1123
|
/* @__PURE__ */ g(
|
|
1117
1124
|
"dialog",
|
|
1118
1125
|
{
|
|
@@ -1180,7 +1187,7 @@ const Q = {
|
|
|
1180
1187
|
}
|
|
1181
1188
|
)
|
|
1182
1189
|
] });
|
|
1183
|
-
},
|
|
1190
|
+
}, Q1 = b(s1), J1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
|
|
1184
1191
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1185
1192
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1186
1193
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1189,7 +1196,7 @@ const Q = {
|
|
|
1189
1196
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.6s" } }),
|
|
1190
1197
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.7s" } }),
|
|
1191
1198
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.8s" } })
|
|
1192
|
-
] }),
|
|
1199
|
+
] }), l1 = ({
|
|
1193
1200
|
cb: d,
|
|
1194
1201
|
onUpdate: e,
|
|
1195
1202
|
className: t = "",
|
|
@@ -1201,14 +1208,14 @@ const Q = {
|
|
|
1201
1208
|
const l = document.querySelector(".loading-bar__inner");
|
|
1202
1209
|
if (!l) return;
|
|
1203
1210
|
let o, u, p = !1;
|
|
1204
|
-
function V(
|
|
1205
|
-
o === void 0 && (o =
|
|
1206
|
-
const M =
|
|
1207
|
-
if (u !==
|
|
1211
|
+
function V(H) {
|
|
1212
|
+
o === void 0 && (o = H);
|
|
1213
|
+
const M = H - o;
|
|
1214
|
+
if (u !== H) {
|
|
1208
1215
|
const f = M / n * 101;
|
|
1209
|
-
l.style.width = `${f}%`, e && e({ elapsed: M, percentage: f }), f >= 101 && (i && i(), p = !0, window.cancelAnimationFrame(
|
|
1216
|
+
l.style.width = `${f}%`, e && e({ elapsed: M, percentage: f }), f >= 101 && (i && i(), p = !0, window.cancelAnimationFrame(H));
|
|
1210
1217
|
}
|
|
1211
|
-
M < n && (u =
|
|
1218
|
+
M < n && (u = H, p || window.requestAnimationFrame(V));
|
|
1212
1219
|
}
|
|
1213
1220
|
window.requestAnimationFrame(V);
|
|
1214
1221
|
}
|
|
@@ -1231,7 +1238,7 @@ const Q = {
|
|
|
1231
1238
|
children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1232
1239
|
}
|
|
1233
1240
|
);
|
|
1234
|
-
},
|
|
1241
|
+
}, _1 = b(l1), r1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), Y1 = b(r1), K1 = ({
|
|
1235
1242
|
activator: d,
|
|
1236
1243
|
activatorClass: e = "",
|
|
1237
1244
|
attrs: t = {},
|
|
@@ -1282,7 +1289,7 @@ const Q = {
|
|
|
1282
1289
|
children: d
|
|
1283
1290
|
}
|
|
1284
1291
|
)
|
|
1285
|
-
] }),
|
|
1292
|
+
] }), i1 = ({
|
|
1286
1293
|
ariaValuemax: d = 100,
|
|
1287
1294
|
ariaValuemin: e = 0,
|
|
1288
1295
|
bgColor: t = "bg-orange-500",
|
|
@@ -1325,7 +1332,7 @@ const Q = {
|
|
|
1325
1332
|
)
|
|
1326
1333
|
}
|
|
1327
1334
|
);
|
|
1328
|
-
},
|
|
1335
|
+
}, X1 = b(i1), o1 = ({
|
|
1329
1336
|
checked: d = !1,
|
|
1330
1337
|
children: e,
|
|
1331
1338
|
className: t = "",
|
|
@@ -1364,7 +1371,7 @@ const Q = {
|
|
|
1364
1371
|
]
|
|
1365
1372
|
}
|
|
1366
1373
|
);
|
|
1367
|
-
},
|
|
1374
|
+
}, e2 = b(o1), c1 = ({
|
|
1368
1375
|
children: d,
|
|
1369
1376
|
className: e = "",
|
|
1370
1377
|
error: t = !1,
|
|
@@ -1378,7 +1385,7 @@ const Q = {
|
|
|
1378
1385
|
selectClass: u = "",
|
|
1379
1386
|
styles: p = null,
|
|
1380
1387
|
variation: V = "primary",
|
|
1381
|
-
value:
|
|
1388
|
+
value: H
|
|
1382
1389
|
}) => {
|
|
1383
1390
|
const M = l ? { defaultValue: "" } : {};
|
|
1384
1391
|
return /* @__PURE__ */ g(
|
|
@@ -1398,7 +1405,7 @@ const Q = {
|
|
|
1398
1405
|
),
|
|
1399
1406
|
id: n,
|
|
1400
1407
|
name: r,
|
|
1401
|
-
value:
|
|
1408
|
+
value: H,
|
|
1402
1409
|
...M,
|
|
1403
1410
|
...o,
|
|
1404
1411
|
children: [
|
|
@@ -1418,7 +1425,7 @@ const Q = {
|
|
|
1418
1425
|
]
|
|
1419
1426
|
}
|
|
1420
1427
|
);
|
|
1421
|
-
},
|
|
1428
|
+
}, t2 = b(c1), d1 = ({ className: d = "" }) => /* @__PURE__ */ g(
|
|
1422
1429
|
"div",
|
|
1423
1430
|
{
|
|
1424
1431
|
className: m(
|
|
@@ -1430,7 +1437,7 @@ const Q = {
|
|
|
1430
1437
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1431
1438
|
]
|
|
1432
1439
|
}
|
|
1433
|
-
),
|
|
1440
|
+
), a2 = b(d1), h1 = ({
|
|
1434
1441
|
placeholderClass: d = "",
|
|
1435
1442
|
children: e,
|
|
1436
1443
|
className: t = "",
|
|
@@ -1465,18 +1472,18 @@ const Q = {
|
|
|
1465
1472
|
children: /* @__PURE__ */ c(A, { name: "chevronRight" })
|
|
1466
1473
|
}
|
|
1467
1474
|
)
|
|
1468
|
-
] }),
|
|
1475
|
+
] }), n2 = b(h1), u1 = {
|
|
1469
1476
|
name: "spinnerDark",
|
|
1470
1477
|
color: "text-teal-700",
|
|
1471
1478
|
viewBox: "0 0 24 24"
|
|
1472
|
-
},
|
|
1479
|
+
}, p1 = ({ className: d = "" }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
|
|
1473
1480
|
A,
|
|
1474
1481
|
{
|
|
1475
1482
|
size: "xSmall",
|
|
1476
|
-
...
|
|
1483
|
+
...u1,
|
|
1477
1484
|
className: `animate-spin ${d}`
|
|
1478
1485
|
}
|
|
1479
|
-
) }),
|
|
1486
|
+
) }), s2 = b(p1), l2 = ({
|
|
1480
1487
|
className: d = "",
|
|
1481
1488
|
value: e
|
|
1482
1489
|
}) => {
|
|
@@ -1493,7 +1500,7 @@ const Q = {
|
|
|
1493
1500
|
style: t
|
|
1494
1501
|
}
|
|
1495
1502
|
);
|
|
1496
|
-
},
|
|
1503
|
+
}, m1 = ({
|
|
1497
1504
|
className: d = "",
|
|
1498
1505
|
clear: e = !1,
|
|
1499
1506
|
error: t = !1,
|
|
@@ -1538,7 +1545,7 @@ const Q = {
|
|
|
1538
1545
|
}
|
|
1539
1546
|
),
|
|
1540
1547
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1541
|
-
] }),
|
|
1548
|
+
] }), f1 = b(m1), V1 = ({
|
|
1542
1549
|
className: d = "",
|
|
1543
1550
|
clear: e = !1,
|
|
1544
1551
|
error: t = !1,
|
|
@@ -1552,11 +1559,11 @@ const Q = {
|
|
|
1552
1559
|
styles: u = null,
|
|
1553
1560
|
type: p = "text",
|
|
1554
1561
|
value: V,
|
|
1555
|
-
variation:
|
|
1562
|
+
variation: H = "primary"
|
|
1556
1563
|
}) => /* @__PURE__ */ g(
|
|
1557
1564
|
"div",
|
|
1558
1565
|
{
|
|
1559
|
-
className: m("relative textbox",
|
|
1566
|
+
className: m("relative textbox", H, d),
|
|
1560
1567
|
style: u ? { ...u } : null,
|
|
1561
1568
|
children: [
|
|
1562
1569
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
@@ -1608,7 +1615,7 @@ const Q = {
|
|
|
1608
1615
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1609
1616
|
]
|
|
1610
1617
|
}
|
|
1611
|
-
), D = b(
|
|
1618
|
+
), D = b(V1), C1 = ({
|
|
1612
1619
|
btnClass: d,
|
|
1613
1620
|
className: e = "",
|
|
1614
1621
|
containerClass: t,
|
|
@@ -1675,7 +1682,7 @@ const Q = {
|
|
|
1675
1682
|
}
|
|
1676
1683
|
),
|
|
1677
1684
|
/* @__PURE__ */ c(
|
|
1678
|
-
|
|
1685
|
+
f1,
|
|
1679
1686
|
{
|
|
1680
1687
|
id: "contact-message",
|
|
1681
1688
|
name: "contact-message",
|
|
@@ -1706,7 +1713,7 @@ const Q = {
|
|
|
1706
1713
|
]
|
|
1707
1714
|
}
|
|
1708
1715
|
);
|
|
1709
|
-
},
|
|
1716
|
+
}, r2 = b(C1), H1 = ({
|
|
1710
1717
|
block: d = !1,
|
|
1711
1718
|
children: e,
|
|
1712
1719
|
className: t,
|
|
@@ -1744,7 +1751,7 @@ const Q = {
|
|
|
1744
1751
|
]
|
|
1745
1752
|
}
|
|
1746
1753
|
);
|
|
1747
|
-
},
|
|
1754
|
+
}, i2 = b(H1), L1 = ({
|
|
1748
1755
|
children: d,
|
|
1749
1756
|
className: e,
|
|
1750
1757
|
colGap: t = 2,
|
|
@@ -1779,7 +1786,7 @@ const Q = {
|
|
|
1779
1786
|
d
|
|
1780
1787
|
]
|
|
1781
1788
|
}
|
|
1782
|
-
),
|
|
1789
|
+
), o2 = b(L1), c2 = ({
|
|
1783
1790
|
breakPage: d = !1,
|
|
1784
1791
|
children: e,
|
|
1785
1792
|
className: t,
|
|
@@ -1805,7 +1812,7 @@ const Q = {
|
|
|
1805
1812
|
e
|
|
1806
1813
|
]
|
|
1807
1814
|
}
|
|
1808
|
-
),
|
|
1815
|
+
), d2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), g1 = ({ align: d = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ c(
|
|
1809
1816
|
a,
|
|
1810
1817
|
{
|
|
1811
1818
|
className: m(
|
|
@@ -1819,7 +1826,7 @@ const Q = {
|
|
|
1819
1826
|
),
|
|
1820
1827
|
children: n || e
|
|
1821
1828
|
}
|
|
1822
|
-
),
|
|
1829
|
+
), h2 = b(g1), M1 = {
|
|
1823
1830
|
circular: "circular 3s linear infinite",
|
|
1824
1831
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1825
1832
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1831,17 +1838,17 @@ const Q = {
|
|
|
1831
1838
|
"menu-open": "menu-open 0.1s ease-out",
|
|
1832
1839
|
"menu-close": "menu-close 0.1s ease-in-out",
|
|
1833
1840
|
indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
|
|
1834
|
-
},
|
|
1841
|
+
}, v1 = {
|
|
1835
1842
|
map: "var(--map)"
|
|
1836
|
-
},
|
|
1843
|
+
}, b1 = {
|
|
1837
1844
|
"3xs": "0.5rem",
|
|
1838
1845
|
xxs: "0.625rem",
|
|
1839
1846
|
"2.5xl": "1.625rem",
|
|
1840
1847
|
"2.75xl": "1.75rem",
|
|
1841
1848
|
"3.5xl": "2rem"
|
|
1842
|
-
},
|
|
1849
|
+
}, x1 = {
|
|
1843
1850
|
17: "repeat(17, minmax(0, 1fr))"
|
|
1844
|
-
},
|
|
1851
|
+
}, y1 = {
|
|
1845
1852
|
circular: {
|
|
1846
1853
|
"100%": {
|
|
1847
1854
|
transform: "rotate(360deg)"
|
|
@@ -1931,16 +1938,16 @@ const Q = {
|
|
|
1931
1938
|
transform: "translateX(100%)"
|
|
1932
1939
|
}
|
|
1933
1940
|
}
|
|
1934
|
-
},
|
|
1941
|
+
}, A1 = {
|
|
1935
1942
|
20: "5rem",
|
|
1936
1943
|
24: "6rem",
|
|
1937
1944
|
28: "7rem",
|
|
1938
1945
|
32: "8rem"
|
|
1939
|
-
},
|
|
1946
|
+
}, w1 = {
|
|
1940
1947
|
aside: "268px",
|
|
1941
1948
|
container: "724px",
|
|
1942
1949
|
page: "1200px"
|
|
1943
|
-
},
|
|
1950
|
+
}, S1 = {
|
|
1944
1951
|
"xs-max": {
|
|
1945
1952
|
max: "639px"
|
|
1946
1953
|
},
|
|
@@ -1958,22 +1965,22 @@ const Q = {
|
|
|
1958
1965
|
max: "1199px"
|
|
1959
1966
|
},
|
|
1960
1967
|
"lg-up": "1200px"
|
|
1961
|
-
},
|
|
1968
|
+
}, k1 = {
|
|
1962
1969
|
0: "0ms",
|
|
1963
1970
|
50: "50ms"
|
|
1964
|
-
},
|
|
1971
|
+
}, z1 = {
|
|
1965
1972
|
"center-top": "center 30%"
|
|
1966
1973
|
}, B = {
|
|
1967
|
-
animation:
|
|
1968
|
-
backgroundImage:
|
|
1969
|
-
fontSize:
|
|
1970
|
-
gridTemplateColumns:
|
|
1971
|
-
keyframes:
|
|
1972
|
-
margin:
|
|
1973
|
-
maxWidth:
|
|
1974
|
-
screens:
|
|
1975
|
-
transitionDuration:
|
|
1976
|
-
transformOrigin:
|
|
1974
|
+
animation: M1,
|
|
1975
|
+
backgroundImage: v1,
|
|
1976
|
+
fontSize: b1,
|
|
1977
|
+
gridTemplateColumns: x1,
|
|
1978
|
+
keyframes: y1,
|
|
1979
|
+
margin: A1,
|
|
1980
|
+
maxWidth: w1,
|
|
1981
|
+
screens: S1,
|
|
1982
|
+
transitionDuration: k1,
|
|
1983
|
+
transformOrigin: z1
|
|
1977
1984
|
}, I = {
|
|
1978
1985
|
black: {
|
|
1979
1986
|
50: "#FCFCFC",
|
|
@@ -2065,7 +2072,7 @@ const Q = {
|
|
|
2065
2072
|
current: "currentColor",
|
|
2066
2073
|
transparent: "transparent",
|
|
2067
2074
|
white: "#fff"
|
|
2068
|
-
},
|
|
2075
|
+
}, O = {
|
|
2069
2076
|
blue: {
|
|
2070
2077
|
100: "hsl(240 42% 22%)",
|
|
2071
2078
|
60: "hsl(240 24% 34%)",
|
|
@@ -2081,10 +2088,10 @@ const Q = {
|
|
|
2081
2088
|
purple: "hsl(279 85% 57%)",
|
|
2082
2089
|
white: "hsl(0 0% 100%)",
|
|
2083
2090
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2084
|
-
},
|
|
2091
|
+
}, u2 = {
|
|
2085
2092
|
...I,
|
|
2086
|
-
|
|
2087
|
-
},
|
|
2093
|
+
...O
|
|
2094
|
+
}, N1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2088
2095
|
{
|
|
2089
2096
|
aspect: (t) => ({
|
|
2090
2097
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2105,7 +2112,7 @@ const Q = {
|
|
|
2105
2112
|
})
|
|
2106
2113
|
},
|
|
2107
2114
|
{ values: e("aspectRatio") }
|
|
2108
|
-
),
|
|
2115
|
+
), Z1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2109
2116
|
{
|
|
2110
2117
|
"animation-delay": (t) => ({
|
|
2111
2118
|
"animation-delay": t
|
|
@@ -2114,11 +2121,11 @@ const Q = {
|
|
|
2114
2121
|
{
|
|
2115
2122
|
values: e("transitionDelay")
|
|
2116
2123
|
}
|
|
2117
|
-
),
|
|
2124
|
+
), E1 = ({ matchUtilities: d }) => d({
|
|
2118
2125
|
"max-inline": (e) => ({
|
|
2119
2126
|
"max-inline-size": e
|
|
2120
2127
|
})
|
|
2121
|
-
}),
|
|
2128
|
+
}), F1 = ({ matchUtilities: d }) => d({
|
|
2122
2129
|
"max-block": (e) => ({
|
|
2123
2130
|
"max-block-size": e
|
|
2124
2131
|
})
|
|
@@ -2137,10 +2144,10 @@ const Q = {
|
|
|
2137
2144
|
const p = {
|
|
2138
2145
|
"font-size": u,
|
|
2139
2146
|
...a
|
|
2140
|
-
}, V = `.${e(`${t}-${o}`)}`,
|
|
2147
|
+
}, V = `.${e(`${t}-${o}`)}`, H = n ? n({ sizeKey: o, sizeValue: u }) : {};
|
|
2141
2148
|
l[V] = {
|
|
2142
2149
|
...p,
|
|
2143
|
-
...
|
|
2150
|
+
...H
|
|
2144
2151
|
}, Object.entries(r).forEach(([M, f]) => {
|
|
2145
2152
|
const x = `.${e(`${t}-${o}-${M}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: M, weightValue: f }) : {};
|
|
2146
2153
|
l[x] = {
|
|
@@ -2150,7 +2157,7 @@ const Q = {
|
|
|
2150
2157
|
};
|
|
2151
2158
|
});
|
|
2152
2159
|
}), d(l);
|
|
2153
|
-
},
|
|
2160
|
+
}, $ = {
|
|
2154
2161
|
aspectRatio: !1,
|
|
2155
2162
|
backdropBlur: !1,
|
|
2156
2163
|
backdropBrightness: !1,
|
|
@@ -2253,24 +2260,24 @@ const Q = {
|
|
|
2253
2260
|
classPrefix: "text-body",
|
|
2254
2261
|
sizes: i,
|
|
2255
2262
|
weights: s
|
|
2256
|
-
}),
|
|
2263
|
+
}), N1({ matchUtilities: e, theme: t }), Z1({ matchUtilities: e, theme: t }), E1({ matchUtilities: e }), F1({ matchUtilities: e });
|
|
2257
2264
|
}
|
|
2258
|
-
],
|
|
2265
|
+
], p2 = {
|
|
2259
2266
|
theme: {
|
|
2260
2267
|
extend: B,
|
|
2261
2268
|
colors: I
|
|
2262
2269
|
},
|
|
2263
2270
|
plugins: q,
|
|
2264
|
-
corePlugins:
|
|
2265
|
-
},
|
|
2271
|
+
corePlugins: $
|
|
2272
|
+
}, m2 = {
|
|
2266
2273
|
theme: {
|
|
2267
2274
|
extend: B,
|
|
2268
|
-
colors:
|
|
2275
|
+
colors: O
|
|
2269
2276
|
},
|
|
2270
2277
|
plugins: q,
|
|
2271
|
-
corePlugins:
|
|
2278
|
+
corePlugins: $
|
|
2272
2279
|
};
|
|
2273
|
-
function
|
|
2280
|
+
function D1(d, e = []) {
|
|
2274
2281
|
return new Proxy(d, {
|
|
2275
2282
|
get: function(t, a) {
|
|
2276
2283
|
return t[a];
|
|
@@ -2281,13 +2288,13 @@ function R1(d, e = []) {
|
|
|
2281
2288
|
}
|
|
2282
2289
|
});
|
|
2283
2290
|
}
|
|
2284
|
-
function
|
|
2291
|
+
function f2(d, e = []) {
|
|
2285
2292
|
e.length && (d == null || d.classList.add(...e));
|
|
2286
2293
|
}
|
|
2287
|
-
function
|
|
2294
|
+
function V2(d, e = []) {
|
|
2288
2295
|
e.length && (d == null || d.classList.remove(...e));
|
|
2289
2296
|
}
|
|
2290
|
-
function
|
|
2297
|
+
function C2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2291
2298
|
let s = !0;
|
|
2292
2299
|
for (const [r, i] of t.entries()) {
|
|
2293
2300
|
const l = e.querySelector(`[name="${r}"]`), o = a[r], u = [];
|
|
@@ -2299,21 +2306,21 @@ function A2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
|
2299
2306
|
}
|
|
2300
2307
|
return s;
|
|
2301
2308
|
}
|
|
2302
|
-
function
|
|
2309
|
+
function H2(d) {
|
|
2303
2310
|
const e = (
|
|
2304
2311
|
// eslint-disable-next-line
|
|
2305
2312
|
/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/
|
|
2306
2313
|
), t = /[^a-zA-Z]+$/;
|
|
2307
2314
|
return e.test(d.toLowerCase()) && !t.test(d);
|
|
2308
2315
|
}
|
|
2309
|
-
class
|
|
2316
|
+
class L2 {
|
|
2310
2317
|
init(e) {
|
|
2311
2318
|
this.handleSliders(e);
|
|
2312
2319
|
}
|
|
2313
2320
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
2314
2321
|
if (!document.getElementById(`slider-container-${t}`))
|
|
2315
2322
|
return;
|
|
2316
|
-
const n =
|
|
2323
|
+
const n = D1(
|
|
2317
2324
|
{
|
|
2318
2325
|
activeIndex: 0,
|
|
2319
2326
|
computedSlides: [],
|
|
@@ -2395,10 +2402,10 @@ class S2 {
|
|
|
2395
2402
|
}
|
|
2396
2403
|
}
|
|
2397
2404
|
}
|
|
2398
|
-
class
|
|
2405
|
+
class C {
|
|
2399
2406
|
static calcCrow(e, t, a, n) {
|
|
2400
|
-
const r =
|
|
2401
|
-
e =
|
|
2407
|
+
const r = C.toRad(a - e), i = C.toRad(n - t);
|
|
2408
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
2402
2409
|
const l = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2403
2410
|
return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
|
|
2404
2411
|
}
|
|
@@ -2413,9 +2420,9 @@ class H {
|
|
|
2413
2420
|
return;
|
|
2414
2421
|
window.dataLayer = window.dataLayer || [];
|
|
2415
2422
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2416
|
-
typeof
|
|
2423
|
+
typeof C == "function" && t.forEach((a) => {
|
|
2417
2424
|
a.addEventListener("click", () => {
|
|
2418
|
-
|
|
2425
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
2419
2426
|
});
|
|
2420
2427
|
});
|
|
2421
2428
|
}
|
|
@@ -2428,7 +2435,7 @@ class H {
|
|
|
2428
2435
|
static async createData(e, t = null, a = !0) {
|
|
2429
2436
|
if (window.options.isBot || !t)
|
|
2430
2437
|
return null;
|
|
2431
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2438
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, i = e + r, l = typeof t == "string" ? t : JSON.stringify(t), o = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
|
|
2432
2439
|
try {
|
|
2433
2440
|
const u = await fetch(i, {
|
|
2434
2441
|
method: "POST",
|
|
@@ -2451,7 +2458,7 @@ class H {
|
|
|
2451
2458
|
}
|
|
2452
2459
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2453
2460
|
try {
|
|
2454
|
-
return await
|
|
2461
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
2455
2462
|
} catch (t) {
|
|
2456
2463
|
console.error("deleteSearchValue", t.message);
|
|
2457
2464
|
}
|
|
@@ -2502,7 +2509,7 @@ class H {
|
|
|
2502
2509
|
static async fetchData(e, t = !1, a = !0) {
|
|
2503
2510
|
if (options.isBot)
|
|
2504
2511
|
return null;
|
|
2505
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2512
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2506
2513
|
try {
|
|
2507
2514
|
const l = await fetch(i, { method: "GET" });
|
|
2508
2515
|
if (t === !0) {
|
|
@@ -2522,8 +2529,8 @@ class H {
|
|
|
2522
2529
|
}
|
|
2523
2530
|
static formatDate(e = null) {
|
|
2524
2531
|
return e ? (e = new Date(e), [
|
|
2525
|
-
|
|
2526
|
-
|
|
2532
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
2533
|
+
C.padTo2Digits(e.getDate()),
|
|
2527
2534
|
e.getFullYear()
|
|
2528
2535
|
].join("-")) : null;
|
|
2529
2536
|
}
|
|
@@ -2620,19 +2627,19 @@ class H {
|
|
|
2620
2627
|
}[e];
|
|
2621
2628
|
}
|
|
2622
2629
|
static async getLocationData(e) {
|
|
2623
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2624
|
-
return await
|
|
2630
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2631
|
+
return await C.fetchData("/api/client?query=" + r);
|
|
2625
2632
|
}
|
|
2626
2633
|
static getReportUrl(e, t = null) {
|
|
2627
2634
|
var l, o, u;
|
|
2628
2635
|
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2629
2636
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2630
2637
|
const i = [r, "-piq", t].filter((p) => p).join("");
|
|
2631
|
-
return "/" + [a, n, s].filter((p) => p).map((p) =>
|
|
2638
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + i;
|
|
2632
2639
|
}
|
|
2633
2640
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2634
2641
|
try {
|
|
2635
|
-
return await
|
|
2642
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
2636
2643
|
} catch (t) {
|
|
2637
2644
|
console.error("getSearchValue", t.message);
|
|
2638
2645
|
}
|
|
@@ -2760,7 +2767,7 @@ class H {
|
|
|
2760
2767
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2761
2768
|
return null;
|
|
2762
2769
|
try {
|
|
2763
|
-
return await
|
|
2770
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
2764
2771
|
} catch (t) {
|
|
2765
2772
|
console.error("getUser", t.message);
|
|
2766
2773
|
}
|
|
@@ -2776,7 +2783,7 @@ class H {
|
|
|
2776
2783
|
uuid: t
|
|
2777
2784
|
}
|
|
2778
2785
|
});
|
|
2779
|
-
return await
|
|
2786
|
+
return await C.makeSearchFetchCall(
|
|
2780
2787
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2781
2788
|
);
|
|
2782
2789
|
}
|
|
@@ -2859,16 +2866,16 @@ class H {
|
|
|
2859
2866
|
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(p.opening), v && await x(v), v == null || v.dispatchEvent(p.opened);
|
|
2860
2867
|
}
|
|
2861
2868
|
});
|
|
2862
|
-
}),
|
|
2869
|
+
}), H = new MutationObserver((h, y) => {
|
|
2863
2870
|
h.forEach((S) => {
|
|
2864
2871
|
S.removedNodes.forEach((v) => {
|
|
2865
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click", f), v.removeEventListener("close", M), v.dispatchEvent(p.removed),
|
|
2872
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", f), v.removeEventListener("close", M), v.dispatchEvent(p.removed), H == null || H.disconnect(), V == null || V.disconnect());
|
|
2866
2873
|
});
|
|
2867
2874
|
});
|
|
2868
2875
|
});
|
|
2869
2876
|
o && (V.observe(o, {
|
|
2870
2877
|
attributes: !0
|
|
2871
|
-
}),
|
|
2878
|
+
}), H.observe(document.body, {
|
|
2872
2879
|
attributes: !1,
|
|
2873
2880
|
subtree: !1,
|
|
2874
2881
|
childList: !0
|
|
@@ -2898,7 +2905,7 @@ class H {
|
|
|
2898
2905
|
};
|
|
2899
2906
|
}
|
|
2900
2907
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2901
|
-
return
|
|
2908
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2902
2909
|
}
|
|
2903
2910
|
static initObserver(e, t, a = null) {
|
|
2904
2911
|
if (!e)
|
|
@@ -2957,7 +2964,7 @@ class H {
|
|
|
2957
2964
|
url: n,
|
|
2958
2965
|
data: s
|
|
2959
2966
|
};
|
|
2960
|
-
return await
|
|
2967
|
+
return await C.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2961
2968
|
}
|
|
2962
2969
|
static loadAds() {
|
|
2963
2970
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2975,7 +2982,7 @@ class H {
|
|
|
2975
2982
|
if (e) {
|
|
2976
2983
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2977
2984
|
try {
|
|
2978
|
-
return await
|
|
2985
|
+
return await C.injectScript({
|
|
2979
2986
|
src: s,
|
|
2980
2987
|
id: t || e,
|
|
2981
2988
|
async: !1,
|
|
@@ -2991,11 +2998,11 @@ class H {
|
|
|
2991
2998
|
if (window.options.googleMapsLoaded === !0)
|
|
2992
2999
|
return;
|
|
2993
3000
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2994
|
-
await
|
|
3001
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2995
3002
|
}
|
|
2996
3003
|
static async loadLeafletApi() {
|
|
2997
3004
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2998
|
-
await
|
|
3005
|
+
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({
|
|
2999
3006
|
src: a,
|
|
3000
3007
|
id: "gestureJs",
|
|
3001
3008
|
async: !1
|
|
@@ -3010,7 +3017,7 @@ class H {
|
|
|
3010
3017
|
}
|
|
3011
3018
|
static async loadSwiper() {
|
|
3012
3019
|
const e = "/slider/swiper-bundle.min.js";
|
|
3013
|
-
await
|
|
3020
|
+
await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
3014
3021
|
}
|
|
3015
3022
|
static async makeSearchFetchCall(e) {
|
|
3016
3023
|
try {
|
|
@@ -3050,10 +3057,10 @@ class H {
|
|
|
3050
3057
|
vin: u = null,
|
|
3051
3058
|
license: p = null,
|
|
3052
3059
|
token: V = null,
|
|
3053
|
-
phone:
|
|
3060
|
+
phone: H = null
|
|
3054
3061
|
} = e || {}, M = t && t !== "", f = r && r !== "" && r !== "18", x = i && i !== "" && r !== "99";
|
|
3055
3062
|
let h = [];
|
|
3056
|
-
return t && t !== "" && h.push("name=" + t), M || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), f && x ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (f && h.push("min=" + r), x && h.push("max=" + i)),
|
|
3063
|
+
return t && t !== "" && h.push("name=" + t), M || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), f && x ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (f && h.push("min=" + r), x && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), l && l !== "" && h.push("city=" + l), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3057
3064
|
}
|
|
3058
3065
|
static padTo2Digits(e) {
|
|
3059
3066
|
return e.toString().padStart(2, "0");
|
|
@@ -3071,7 +3078,7 @@ class H {
|
|
|
3071
3078
|
useLocation: i = !0,
|
|
3072
3079
|
state: l = "",
|
|
3073
3080
|
useGoogle: o = !1
|
|
3074
|
-
} = t ?? {}, { tolken: u = null, ip: p = null } = await
|
|
3081
|
+
} = t ?? {}, { tolken: u = null, ip: p = null } = await C.getHeaders(), H = [
|
|
3075
3082
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3076
3083
|
"addressesOnly=" + a,
|
|
3077
3084
|
"useSearch=" + r,
|
|
@@ -3080,9 +3087,9 @@ class H {
|
|
|
3080
3087
|
"useLocation=" + i,
|
|
3081
3088
|
"useGoogle=" + o
|
|
3082
3089
|
];
|
|
3083
|
-
l && l !== "" && !s &&
|
|
3084
|
-
const M =
|
|
3085
|
-
return await
|
|
3090
|
+
l && l !== "" && !s && H.push("state=" + l), u && u !== "" && H.push("tolken=" + u), p && p !== "" && H.push("ip=" + p);
|
|
3091
|
+
const M = H.join("&"), x = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
3092
|
+
return await C.makeSearchFetchCall(x);
|
|
3086
3093
|
}
|
|
3087
3094
|
static removeElements(e) {
|
|
3088
3095
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3101,7 +3108,7 @@ class H {
|
|
|
3101
3108
|
});
|
|
3102
3109
|
}
|
|
3103
3110
|
static searchInStates(e) {
|
|
3104
|
-
const t =
|
|
3111
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
3105
3112
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3106
3113
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3107
3114
|
}
|
|
@@ -3109,7 +3116,7 @@ class H {
|
|
|
3109
3116
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3110
3117
|
}
|
|
3111
3118
|
static setBoundsEntries(e, t = "bounds") {
|
|
3112
|
-
const a =
|
|
3119
|
+
const a = C.getBoundsEntries(t);
|
|
3113
3120
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3114
3121
|
}
|
|
3115
3122
|
static async setCityState(e = null) {
|
|
@@ -3118,7 +3125,7 @@ class H {
|
|
|
3118
3125
|
return e;
|
|
3119
3126
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3120
3127
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3121
|
-
if (
|
|
3128
|
+
if (C.getStates(), a && !n) {
|
|
3122
3129
|
const s = this.searchInStates(a);
|
|
3123
3130
|
s && (a = null, n = s.short);
|
|
3124
3131
|
}
|
|
@@ -3136,7 +3143,7 @@ class H {
|
|
|
3136
3143
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3137
3144
|
}
|
|
3138
3145
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3139
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3146
|
+
localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
|
|
3140
3147
|
}
|
|
3141
3148
|
static stickyHeader(e = ".nav") {
|
|
3142
3149
|
const t = document.querySelector(e);
|
|
@@ -3163,7 +3170,7 @@ class H {
|
|
|
3163
3170
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3164
3171
|
}
|
|
3165
3172
|
static useLayerTitle(e, t) {
|
|
3166
|
-
const a =
|
|
3173
|
+
const a = C.getLayerTitle(e);
|
|
3167
3174
|
L.tileLayer(a, {
|
|
3168
3175
|
maxNativeZoom: 19,
|
|
3169
3176
|
maxZoom: 25,
|
|
@@ -3172,7 +3179,7 @@ class H {
|
|
|
3172
3179
|
}).addTo(t);
|
|
3173
3180
|
}
|
|
3174
3181
|
static ucWords(e) {
|
|
3175
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3182
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
3176
3183
|
}
|
|
3177
3184
|
/**
|
|
3178
3185
|
* HOW TO USE EVENTS
|
|
@@ -3215,47 +3222,47 @@ class H {
|
|
|
3215
3222
|
}
|
|
3216
3223
|
}
|
|
3217
3224
|
export {
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3225
|
+
O1 as Accordion,
|
|
3226
|
+
$1 as Alert,
|
|
3227
|
+
q1 as Autocomplete,
|
|
3228
|
+
j1 as Badge,
|
|
3222
3229
|
F as Button,
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3230
|
+
P1 as ButtonGroup,
|
|
3231
|
+
R1 as Card,
|
|
3232
|
+
L2 as CardSlider,
|
|
3233
|
+
W1 as Checkbox,
|
|
3234
|
+
C as Common,
|
|
3235
|
+
r2 as ContactForm,
|
|
3236
|
+
U1 as Container,
|
|
3237
|
+
i2 as ContentCard,
|
|
3238
|
+
G1 as Dialog,
|
|
3239
|
+
Q1 as DialogOld,
|
|
3240
|
+
J1 as Dots,
|
|
3241
|
+
o2 as FlexItem,
|
|
3242
|
+
h2 as FunnelHeader,
|
|
3236
3243
|
A as Icon,
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3244
|
+
_1 as LoadingBar,
|
|
3245
|
+
K1 as Popover,
|
|
3246
|
+
Y1 as ProcessingSpinner,
|
|
3247
|
+
X1 as ProgressBar,
|
|
3248
|
+
e2 as Radio,
|
|
3249
|
+
t2 as Select,
|
|
3250
|
+
a2 as Skeleton,
|
|
3251
|
+
n2 as Slider,
|
|
3252
|
+
c2 as Spacer,
|
|
3253
|
+
s2 as Spinner,
|
|
3254
|
+
d2 as StackedListItem,
|
|
3255
|
+
l2 as Stars,
|
|
3256
|
+
f1 as TextArea,
|
|
3250
3257
|
D as Textbox,
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3258
|
+
f2 as addClass,
|
|
3259
|
+
u2 as colors,
|
|
3260
|
+
$ as corePlugins,
|
|
3261
|
+
m2 as elerisPreset,
|
|
3255
3262
|
B as extensions,
|
|
3256
3263
|
q as plugins,
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3264
|
+
p2 as propertyPreset,
|
|
3265
|
+
V2 as removeClass,
|
|
3266
|
+
H2 as validateEmail,
|
|
3267
|
+
C2 as validateForm
|
|
3261
3268
|
};
|