@vehiclehistory/property-lib 0.0.93 → 0.0.95
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 +154 -173
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -501,11 +501,11 @@ const W = {
|
|
|
501
501
|
size: a = "medium",
|
|
502
502
|
viewBox: n = "0 0 20 20"
|
|
503
503
|
}) => {
|
|
504
|
-
const s = G(t), [l,
|
|
504
|
+
const s = G(t), [l, i] = Z(d), [r, o] = Z(s);
|
|
505
505
|
return N(() => {
|
|
506
|
-
|
|
506
|
+
o(s);
|
|
507
507
|
}, [s]), N(() => {
|
|
508
|
-
|
|
508
|
+
i(d);
|
|
509
509
|
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
|
|
510
510
|
"svg",
|
|
511
511
|
{
|
|
@@ -533,14 +533,14 @@ const W = {
|
|
|
533
533
|
unmount: s = !0,
|
|
534
534
|
isOpen: l = !1
|
|
535
535
|
}) => {
|
|
536
|
-
const [
|
|
536
|
+
const [i, r] = Z(l);
|
|
537
537
|
return /* @__PURE__ */ c(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
540
|
className: m(
|
|
541
541
|
"accordion shadow rounded-lg",
|
|
542
542
|
{
|
|
543
|
-
"accordion--open":
|
|
543
|
+
"accordion--open": i
|
|
544
544
|
},
|
|
545
545
|
e
|
|
546
546
|
),
|
|
@@ -554,7 +554,7 @@ const W = {
|
|
|
554
554
|
),
|
|
555
555
|
title: n,
|
|
556
556
|
onClick: () => {
|
|
557
|
-
r(!
|
|
557
|
+
r(!i), t && t(!i);
|
|
558
558
|
},
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
@@ -569,7 +569,7 @@ const W = {
|
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
|
-
s &&
|
|
572
|
+
s && i && /* @__PURE__ */ c(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
575
|
className: m(
|
|
@@ -585,7 +585,7 @@ const W = {
|
|
|
585
585
|
className: m(
|
|
586
586
|
"accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
587
587
|
a,
|
|
588
|
-
{ hidden: !
|
|
588
|
+
{ hidden: !i }
|
|
589
589
|
),
|
|
590
590
|
children: d
|
|
591
591
|
}
|
|
@@ -601,7 +601,7 @@ const W = {
|
|
|
601
601
|
title: n = "",
|
|
602
602
|
titleClass: s = "",
|
|
603
603
|
props: l = {},
|
|
604
|
-
type:
|
|
604
|
+
type: i = "error"
|
|
605
605
|
}) => {
|
|
606
606
|
const r = {
|
|
607
607
|
error: {
|
|
@@ -624,11 +624,11 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon:
|
|
627
|
+
}, { icon: o, iconColor: u, styles: p } = r[i];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
|
-
id:
|
|
631
|
+
id: i,
|
|
632
632
|
className: m(
|
|
633
633
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
634
|
p,
|
|
@@ -639,7 +639,7 @@ const W = {
|
|
|
639
639
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
640
|
y,
|
|
641
641
|
{
|
|
642
|
-
name:
|
|
642
|
+
name: o,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
644
|
className: u,
|
|
645
645
|
size: "xSmall"
|
|
@@ -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",
|
|
@@ -671,9 +671,9 @@ const W = {
|
|
|
671
671
|
floatingLabel: n = "",
|
|
672
672
|
id: s = "",
|
|
673
673
|
inputClass: l,
|
|
674
|
-
leftIcon:
|
|
674
|
+
leftIcon: i = "homeSearch",
|
|
675
675
|
mobileBackdrop: r = !1,
|
|
676
|
-
name:
|
|
676
|
+
name: o = "",
|
|
677
677
|
options: u = [],
|
|
678
678
|
parentProps: p = {},
|
|
679
679
|
placeholder: V = "",
|
|
@@ -715,7 +715,7 @@ const W = {
|
|
|
715
715
|
y,
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
|
-
name:
|
|
718
|
+
name: i,
|
|
719
719
|
size: v === "xLarge" ? "small" : "xSmall",
|
|
720
720
|
viewBox: "0 0 24 24"
|
|
721
721
|
}
|
|
@@ -752,7 +752,7 @@ const W = {
|
|
|
752
752
|
autoComplete: "off",
|
|
753
753
|
placeholder: !V && n ? " " : V,
|
|
754
754
|
type: "search",
|
|
755
|
-
name:
|
|
755
|
+
name: o || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
758
|
...C
|
|
@@ -875,9 +875,9 @@ const W = {
|
|
|
875
875
|
className: n,
|
|
876
876
|
disabled: s = !1,
|
|
877
877
|
href: l,
|
|
878
|
-
props:
|
|
878
|
+
props: i = {},
|
|
879
879
|
rightIcon: r,
|
|
880
|
-
rightIconProps:
|
|
880
|
+
rightIconProps: o = {},
|
|
881
881
|
rounded: u = !1,
|
|
882
882
|
size: p = "md",
|
|
883
883
|
type: V = "button",
|
|
@@ -904,7 +904,7 @@ const W = {
|
|
|
904
904
|
),
|
|
905
905
|
disabled: s,
|
|
906
906
|
href: l,
|
|
907
|
-
...
|
|
907
|
+
...i,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
910
|
y,
|
|
@@ -922,7 +922,7 @@ const W = {
|
|
|
922
922
|
name: r,
|
|
923
923
|
size: p === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
|
-
...
|
|
925
|
+
...o
|
|
926
926
|
}
|
|
927
927
|
)
|
|
928
928
|
]
|
|
@@ -936,16 +936,16 @@ const W = {
|
|
|
936
936
|
inputClass: n,
|
|
937
937
|
id: s = "",
|
|
938
938
|
label: l = "",
|
|
939
|
-
name:
|
|
939
|
+
name: i = "",
|
|
940
940
|
props: r = {},
|
|
941
|
-
variation:
|
|
941
|
+
variation: o = "primary",
|
|
942
942
|
value: u = ""
|
|
943
943
|
}) => {
|
|
944
944
|
const p = l ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ M(
|
|
946
946
|
p,
|
|
947
947
|
{
|
|
948
|
-
className: m("checkbox flex items-center",
|
|
948
|
+
className: m("checkbox flex items-center", o, t),
|
|
949
949
|
...V,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
@@ -960,7 +960,7 @@ const W = {
|
|
|
960
960
|
n
|
|
961
961
|
),
|
|
962
962
|
id: s,
|
|
963
|
-
name:
|
|
963
|
+
name: i,
|
|
964
964
|
type: "checkbox",
|
|
965
965
|
value: u,
|
|
966
966
|
...r
|
|
@@ -978,9 +978,9 @@ const W = {
|
|
|
978
978
|
contentClass: n,
|
|
979
979
|
customScrollbar: s = !0,
|
|
980
980
|
dark: l = !1,
|
|
981
|
-
disableClose:
|
|
981
|
+
disableClose: i = !1,
|
|
982
982
|
footer: r,
|
|
983
|
-
fullMobile:
|
|
983
|
+
fullMobile: o = !0,
|
|
984
984
|
headerClass: u,
|
|
985
985
|
hideClose: p = !1,
|
|
986
986
|
iconSize: V = "medium",
|
|
@@ -997,12 +997,12 @@ const W = {
|
|
|
997
997
|
"dialog",
|
|
998
998
|
{
|
|
999
999
|
inert: "",
|
|
1000
|
-
...
|
|
1000
|
+
...i ? { closedby: "none" } : null,
|
|
1001
1001
|
id: `${e}-dialog`,
|
|
1002
1002
|
className: m(
|
|
1003
1003
|
"dialog",
|
|
1004
1004
|
{
|
|
1005
|
-
"dialog-full-mobile":
|
|
1005
|
+
"dialog-full-mobile": o,
|
|
1006
1006
|
dark: l,
|
|
1007
1007
|
"prevent-scroll": C
|
|
1008
1008
|
},
|
|
@@ -1087,16 +1087,16 @@ const W = {
|
|
|
1087
1087
|
timeout: n = 1e4,
|
|
1088
1088
|
variation: s = "primary"
|
|
1089
1089
|
}) => {
|
|
1090
|
-
function l({ cb:
|
|
1090
|
+
function l({ cb: i }) {
|
|
1091
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1092
1092
|
if (!r) return;
|
|
1093
|
-
let
|
|
1093
|
+
let o, u, p = !1;
|
|
1094
1094
|
function V(C) {
|
|
1095
|
-
|
|
1096
|
-
const f = C -
|
|
1095
|
+
o === void 0 && (o = C);
|
|
1096
|
+
const f = C - o;
|
|
1097
1097
|
if (u !== C) {
|
|
1098
1098
|
const g = f / n * 101;
|
|
1099
|
-
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (
|
|
1099
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (i && i(), p = !0, window.cancelAnimationFrame(C));
|
|
1100
1100
|
}
|
|
1101
1101
|
f < n && (u = C, p || window.requestAnimationFrame(V));
|
|
1102
1102
|
}
|
|
@@ -1129,7 +1129,7 @@ const W = {
|
|
|
1129
1129
|
className: n = "",
|
|
1130
1130
|
containerClass: s = "",
|
|
1131
1131
|
disabled: l = !1,
|
|
1132
|
-
options:
|
|
1132
|
+
options: i = {},
|
|
1133
1133
|
trigger: r = "click"
|
|
1134
1134
|
}) => /* @__PURE__ */ M(S, { children: [
|
|
1135
1135
|
/* @__PURE__ */ c(
|
|
@@ -1169,7 +1169,7 @@ const W = {
|
|
|
1169
1169
|
e
|
|
1170
1170
|
),
|
|
1171
1171
|
...t,
|
|
1172
|
-
"data-options": JSON.stringify(
|
|
1172
|
+
"data-options": JSON.stringify(i),
|
|
1173
1173
|
children: d
|
|
1174
1174
|
}
|
|
1175
1175
|
)
|
|
@@ -1181,9 +1181,9 @@ const W = {
|
|
|
1181
1181
|
completed: n = 0,
|
|
1182
1182
|
customLabel: s,
|
|
1183
1183
|
labelClass: l,
|
|
1184
|
-
maxCompleted:
|
|
1184
|
+
maxCompleted: i = 100,
|
|
1185
1185
|
rounded: r = !0,
|
|
1186
|
-
showLabel:
|
|
1186
|
+
showLabel: o = !1
|
|
1187
1187
|
}) => {
|
|
1188
1188
|
const p = ((V, C) => {
|
|
1189
1189
|
if (V) {
|
|
@@ -1191,7 +1191,7 @@ const W = {
|
|
|
1191
1191
|
return f > 1 ? 100 : f * 100;
|
|
1192
1192
|
}
|
|
1193
1193
|
return n;
|
|
1194
|
-
})(
|
|
1194
|
+
})(i, n);
|
|
1195
1195
|
return /* @__PURE__ */ c(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
@@ -1213,7 +1213,7 @@ const W = {
|
|
|
1213
1213
|
t
|
|
1214
1214
|
),
|
|
1215
1215
|
style: { width: `${p}%` },
|
|
1216
|
-
children:
|
|
1216
|
+
children: o && /* @__PURE__ */ c(
|
|
1217
1217
|
"span",
|
|
1218
1218
|
{
|
|
1219
1219
|
className: m(
|
|
@@ -1235,9 +1235,9 @@ const W = {
|
|
|
1235
1235
|
inputClass: n,
|
|
1236
1236
|
label: s = "",
|
|
1237
1237
|
name: l = "",
|
|
1238
|
-
props:
|
|
1238
|
+
props: i = {},
|
|
1239
1239
|
variation: r = "primary",
|
|
1240
|
-
value:
|
|
1240
|
+
value: o = ""
|
|
1241
1241
|
}) => {
|
|
1242
1242
|
const u = s ? "div" : "label", p = u === "label" ? { htmlFor: a } : {};
|
|
1243
1243
|
return /* @__PURE__ */ M(
|
|
@@ -1260,8 +1260,8 @@ const W = {
|
|
|
1260
1260
|
id: a,
|
|
1261
1261
|
name: l,
|
|
1262
1262
|
type: "radio",
|
|
1263
|
-
value:
|
|
1264
|
-
...
|
|
1263
|
+
value: o,
|
|
1264
|
+
...i
|
|
1265
1265
|
}
|
|
1266
1266
|
),
|
|
1267
1267
|
e
|
|
@@ -1276,14 +1276,14 @@ const W = {
|
|
|
1276
1276
|
label: n = "",
|
|
1277
1277
|
name: s = "",
|
|
1278
1278
|
options: l = [],
|
|
1279
|
-
placeholder:
|
|
1279
|
+
placeholder: i = "",
|
|
1280
1280
|
props: r = {},
|
|
1281
|
-
selectClass:
|
|
1281
|
+
selectClass: o = "",
|
|
1282
1282
|
styles: u = null,
|
|
1283
1283
|
variation: p = "primary",
|
|
1284
1284
|
value: V
|
|
1285
1285
|
}) => {
|
|
1286
|
-
const C =
|
|
1286
|
+
const C = i ? { defaultValue: "" } : {};
|
|
1287
1287
|
return /* @__PURE__ */ M(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
@@ -1299,7 +1299,7 @@ const W = {
|
|
|
1299
1299
|
{
|
|
1300
1300
|
"!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500": e
|
|
1301
1301
|
},
|
|
1302
|
-
|
|
1302
|
+
o
|
|
1303
1303
|
),
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
@@ -1307,7 +1307,7 @@ const W = {
|
|
|
1307
1307
|
...C,
|
|
1308
1308
|
...r,
|
|
1309
1309
|
children: [
|
|
1310
|
-
|
|
1310
|
+
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
1311
1311
|
l.map((f) => /* @__PURE__ */ c(
|
|
1312
1312
|
"option",
|
|
1313
1313
|
{
|
|
@@ -1404,18 +1404,18 @@ const W = {
|
|
|
1404
1404
|
id: n = "",
|
|
1405
1405
|
inputClass: s = "",
|
|
1406
1406
|
name: l = "",
|
|
1407
|
-
placeholder:
|
|
1407
|
+
placeholder: i = "",
|
|
1408
1408
|
props: r = {},
|
|
1409
|
-
rows:
|
|
1409
|
+
rows: o = 4,
|
|
1410
1410
|
variation: u = "primary"
|
|
1411
1411
|
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", u, d), children: [
|
|
1412
1412
|
/* @__PURE__ */ c(
|
|
1413
1413
|
"textarea",
|
|
1414
1414
|
{
|
|
1415
|
-
placeholder:
|
|
1415
|
+
placeholder: i,
|
|
1416
1416
|
id: n,
|
|
1417
1417
|
name: l,
|
|
1418
|
-
rows:
|
|
1418
|
+
rows: o,
|
|
1419
1419
|
className: m(
|
|
1420
1420
|
"form-textarea min-h-[40px] pl-4",
|
|
1421
1421
|
e ? "pr-10" : "pr-4",
|
|
@@ -1451,9 +1451,9 @@ const W = {
|
|
|
1451
1451
|
iconLeft: n = "",
|
|
1452
1452
|
id: s = "",
|
|
1453
1453
|
inputClass: l,
|
|
1454
|
-
name:
|
|
1454
|
+
name: i = "",
|
|
1455
1455
|
placeholder: r = "",
|
|
1456
|
-
props:
|
|
1456
|
+
props: o = {},
|
|
1457
1457
|
styles: u = null,
|
|
1458
1458
|
type: p = "text",
|
|
1459
1459
|
value: V,
|
|
@@ -1478,7 +1478,7 @@ const W = {
|
|
|
1478
1478
|
{
|
|
1479
1479
|
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
|
-
name:
|
|
1481
|
+
name: i,
|
|
1482
1482
|
type: p,
|
|
1483
1483
|
value: V,
|
|
1484
1484
|
autoComplete: "off",
|
|
@@ -1489,10 +1489,10 @@ const W = {
|
|
|
1489
1489
|
{
|
|
1490
1490
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1491
1491
|
},
|
|
1492
|
-
|
|
1492
|
+
o.inputClass ?? "",
|
|
1493
1493
|
l
|
|
1494
1494
|
),
|
|
1495
|
-
...
|
|
1495
|
+
...o
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
1498
|
e && /* @__PURE__ */ c(
|
|
@@ -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
|
{
|
|
@@ -1544,7 +1544,7 @@ const W = {
|
|
|
1544
1544
|
titleClass: s,
|
|
1545
1545
|
uppercase: l = !0
|
|
1546
1546
|
}) => {
|
|
1547
|
-
const
|
|
1547
|
+
const i = a || /* @__PURE__ */ M(S, { children: [
|
|
1548
1548
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1549
1549
|
" ",
|
|
1550
1550
|
/* @__PURE__ */ c(
|
|
@@ -1570,7 +1570,7 @@ const W = {
|
|
|
1570
1570
|
}),
|
|
1571
1571
|
children: [
|
|
1572
1572
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1573
|
-
/* @__PURE__ */ c("p", { className: "contact-form__msg", children:
|
|
1573
|
+
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
|
|
1574
1574
|
/* @__PURE__ */ M(
|
|
1575
1575
|
"div",
|
|
1576
1576
|
{
|
|
@@ -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",
|
|
@@ -1641,9 +1641,9 @@ const W = {
|
|
|
1641
1641
|
footerClass: n,
|
|
1642
1642
|
footerContent: s,
|
|
1643
1643
|
headerContent: l,
|
|
1644
|
-
headerClass:
|
|
1644
|
+
headerClass: i,
|
|
1645
1645
|
list: r = !1,
|
|
1646
|
-
props:
|
|
1646
|
+
props: o = {},
|
|
1647
1647
|
variation: u = "primary"
|
|
1648
1648
|
}) => {
|
|
1649
1649
|
const p = r ? "ul" : "div";
|
|
@@ -1656,9 +1656,9 @@ const W = {
|
|
|
1656
1656
|
`content-card--${u}`,
|
|
1657
1657
|
t
|
|
1658
1658
|
),
|
|
1659
|
-
...
|
|
1659
|
+
...o,
|
|
1660
1660
|
children: [
|
|
1661
|
-
l && /* @__PURE__ */ c("div", { className: m("content-card__header",
|
|
1661
|
+
l && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1662
1662
|
/* @__PURE__ */ c(
|
|
1663
1663
|
p,
|
|
1664
1664
|
{
|
|
@@ -1679,9 +1679,9 @@ const W = {
|
|
|
1679
1679
|
label: n,
|
|
1680
1680
|
labelClass: s,
|
|
1681
1681
|
props: l = {},
|
|
1682
|
-
rowGap:
|
|
1682
|
+
rowGap: i = 1,
|
|
1683
1683
|
value: r,
|
|
1684
|
-
valueClass:
|
|
1684
|
+
valueClass: o,
|
|
1685
1685
|
wrap: u = !1
|
|
1686
1686
|
}) => /* @__PURE__ */ M(
|
|
1687
1687
|
"div",
|
|
@@ -1697,12 +1697,12 @@ const W = {
|
|
|
1697
1697
|
),
|
|
1698
1698
|
style: {
|
|
1699
1699
|
columnGap: `${t / 4}rem`,
|
|
1700
|
-
rowGap: `${
|
|
1700
|
+
rowGap: `${i / 4}rem`
|
|
1701
1701
|
},
|
|
1702
1702
|
...l,
|
|
1703
1703
|
children: [
|
|
1704
1704
|
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1705
|
-
r && /* @__PURE__ */ c("div", { className: m("item-value",
|
|
1705
|
+
r && /* @__PURE__ */ c("div", { className: m("item-value", o), children: r }),
|
|
1706
1706
|
d
|
|
1707
1707
|
]
|
|
1708
1708
|
}
|
|
@@ -1714,7 +1714,7 @@ const W = {
|
|
|
1714
1714
|
props: n = {},
|
|
1715
1715
|
title: s,
|
|
1716
1716
|
titleClass: l,
|
|
1717
|
-
titleId:
|
|
1717
|
+
titleId: i
|
|
1718
1718
|
}) => /* @__PURE__ */ M(
|
|
1719
1719
|
"section",
|
|
1720
1720
|
{
|
|
@@ -1728,7 +1728,7 @@ const W = {
|
|
|
1728
1728
|
),
|
|
1729
1729
|
...n,
|
|
1730
1730
|
children: [
|
|
1731
|
-
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id:
|
|
1731
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id: i, children: s }),
|
|
1732
1732
|
e
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
@@ -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 = "",
|
|
@@ -2057,19 +2057,19 @@ const W = {
|
|
|
2057
2057
|
sizeProps: n = null,
|
|
2058
2058
|
sizes: s,
|
|
2059
2059
|
weights: l,
|
|
2060
|
-
weightProps:
|
|
2060
|
+
weightProps: i = null
|
|
2061
2061
|
}) => {
|
|
2062
2062
|
const r = {};
|
|
2063
|
-
Object.entries(s).forEach(([
|
|
2063
|
+
Object.entries(s).forEach(([o, u]) => {
|
|
2064
2064
|
const p = {
|
|
2065
2065
|
"font-size": u,
|
|
2066
2066
|
...a
|
|
2067
|
-
}, V = `.${e(`${t}-${
|
|
2067
|
+
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: u }) : {};
|
|
2068
2068
|
r[V] = {
|
|
2069
2069
|
...p,
|
|
2070
2070
|
...C
|
|
2071
2071
|
}, Object.entries(l).forEach(([f, g]) => {
|
|
2072
|
-
const x = `.${e(`${t}-${
|
|
2072
|
+
const x = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: g }) : {};
|
|
2073
2073
|
r[x] = {
|
|
2074
2074
|
...p,
|
|
2075
2075
|
"font-weight": g,
|
|
@@ -2157,13 +2157,13 @@ const W = {
|
|
|
2157
2157
|
4: "1.25rem",
|
|
2158
2158
|
5: "1.125rem",
|
|
2159
2159
|
6: "1rem"
|
|
2160
|
-
},
|
|
2160
|
+
}, i = {
|
|
2161
2161
|
1: "0.938rem",
|
|
2162
2162
|
"1.5": "0.875rem",
|
|
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,11 +2175,11 @@ 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",
|
|
2182
|
-
sizes:
|
|
2182
|
+
sizes: i,
|
|
2183
2183
|
weights: s
|
|
2184
2184
|
}), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
|
|
2185
2185
|
}
|
|
@@ -2217,10 +2217,10 @@ function o2(d, e = []) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2219
2219
|
let s = !0;
|
|
2220
|
-
for (const [l,
|
|
2221
|
-
const r = e.querySelector(`[name="${l}"]`),
|
|
2222
|
-
|
|
2223
|
-
p.isValid(
|
|
2220
|
+
for (const [l, i] of t.entries()) {
|
|
2221
|
+
const r = e.querySelector(`[name="${l}"]`), o = a[l], u = [];
|
|
2222
|
+
o.forEach((p) => {
|
|
2223
|
+
p.isValid(i) || u.push(p.message);
|
|
2224
2224
|
}), u.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", (p) => {
|
|
2225
2225
|
p.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2226
2226
|
}));
|
|
@@ -2280,12 +2280,12 @@ class h2 {
|
|
|
2280
2280
|
(r) => r.isIntersecting === !0
|
|
2281
2281
|
);
|
|
2282
2282
|
s && l ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
|
|
2283
|
-
const
|
|
2284
|
-
r.target === a.slides[0] && (a.showPrevBtn = r.isIntersecting), r.target === a.slides[a.slides.length - 1] && (a.showNextBtn = r.isIntersecting), r.target === a.slides[2] && (a.scrollToStart = r.isIntersecting), r.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = r.isIntersecting), r.isIntersecting && !a.entriesIntersected.includes(
|
|
2283
|
+
const o = [...a.slides].indexOf(r.target);
|
|
2284
|
+
r.target === a.slides[0] && (a.showPrevBtn = r.isIntersecting), r.target === a.slides[a.slides.length - 1] && (a.showNextBtn = r.isIntersecting), r.target === a.slides[2] && (a.scrollToStart = r.isIntersecting), r.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = r.isIntersecting), r.isIntersecting && !a.entriesIntersected.includes(o) && (a.entriesIntersected.push(o), a.activeIndex = o, i(r));
|
|
2285
2285
|
}));
|
|
2286
|
-
function
|
|
2287
|
-
var
|
|
2288
|
-
r.target !== a.slides[a.slides.length - 1] && r.target !== a.slides[0] && r.target !== a.slides[2] && r.target !== a.slides[a.slides.length - 2] && ((
|
|
2286
|
+
function i(r) {
|
|
2287
|
+
var o;
|
|
2288
|
+
r.target !== a.slides[a.slides.length - 1] && r.target !== a.slides[0] && r.target !== a.slides[2] && r.target !== a.slides[a.slides.length - 2] && ((o = a.observer) == null || o.unobserve(r.target));
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
btnListeners(e) {
|
|
@@ -2312,8 +2312,8 @@ class h2 {
|
|
|
2312
2312
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2313
2313
|
`#btn-right-${a}`
|
|
2314
2314
|
);
|
|
2315
|
-
const
|
|
2316
|
-
r.innerHTML = `${s}${
|
|
2315
|
+
const i = t.map((o) => n(o)).join(""), r = document.createElement("div");
|
|
2316
|
+
r.innerHTML = `${s}${i}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
|
|
2317
2317
|
}
|
|
2318
2318
|
showHideBtns(e, t, a) {
|
|
2319
2319
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2325,9 +2325,9 @@ class h2 {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
class H {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const l = H.toRad(a - e),
|
|
2328
|
+
const l = H.toRad(a - e), i = H.toRad(n - t);
|
|
2329
2329
|
e = H.toRad(e), a = H.toRad(a);
|
|
2330
|
-
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(
|
|
2330
|
+
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2331
2331
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2332
2332
|
}
|
|
2333
2333
|
static cleanupAddress(e) {
|
|
@@ -2356,11 +2356,11 @@ 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 H.getHeaders(),
|
|
2359
|
+
const { tolken: s = null, ip: l = null } = await H.getHeaders(), i = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + i, o = typeof t == "string" ? t : JSON.stringify(t), u = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2360
2360
|
try {
|
|
2361
2361
|
const p = await fetch(r, {
|
|
2362
2362
|
method: "POST",
|
|
2363
|
-
body:
|
|
2363
|
+
body: o === "null" ? null : o,
|
|
2364
2364
|
headers: {
|
|
2365
2365
|
website: u
|
|
2366
2366
|
},
|
|
@@ -2429,15 +2429,15 @@ 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 H.getHeaders(),
|
|
2432
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2433
2433
|
try {
|
|
2434
|
-
const r = await fetch(
|
|
2434
|
+
const r = await fetch(i, { method: "GET" });
|
|
2435
2435
|
if (t === !0) {
|
|
2436
2436
|
const u = await r.text();
|
|
2437
2437
|
return u ? u.replace("__next", "") : null;
|
|
2438
2438
|
}
|
|
2439
|
-
const
|
|
2440
|
-
return
|
|
2439
|
+
const o = r.headers.get("content-type");
|
|
2440
|
+
return o && o.indexOf("application/json") !== -1 ? r.json() : null;
|
|
2441
2441
|
} catch (r) {
|
|
2442
2442
|
console.error("fetchData", r, e);
|
|
2443
2443
|
}
|
|
@@ -2467,11 +2467,11 @@ class H {
|
|
|
2467
2467
|
swLng: 0
|
|
2468
2468
|
};
|
|
2469
2469
|
const n = e.getBounds();
|
|
2470
|
-
let s = n.getSouth(), l = n.getEast(),
|
|
2471
|
-
return a && (s = s - a, l = l + a,
|
|
2470
|
+
let s = n.getSouth(), l = n.getEast(), i = n.getNorth(), r = n.getWest();
|
|
2471
|
+
return a && (s = s - a, l = l + a, i = i + a, r = r - a), t && (s = s.toFixed(t), l = l.toFixed(t), i = i.toFixed(t), r = r.toFixed(t)), {
|
|
2472
2472
|
swLat: s,
|
|
2473
2473
|
neLng: l,
|
|
2474
|
-
neLat:
|
|
2474
|
+
neLat: i,
|
|
2475
2475
|
swLng: r
|
|
2476
2476
|
};
|
|
2477
2477
|
}
|
|
@@ -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 i;
|
|
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 (
|
|
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 ((i = window == null ? void 0 : window.options) != null && i.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 o = await (await fetch("/api/headers")).json(), { headers: u } = o, p = u["x-forwarded-for"] ?? null, V = p ? p.split(/, /)[0] : null;
|
|
2518
|
+
return { tolken: (u == null ? void 0 : u.sessionId) ?? null, ip: V, userAgent: t, platform: s };
|
|
2519
|
+
} catch (r) {
|
|
2520
|
+
console.error("getHeaders", r);
|
|
2540
2521
|
}
|
|
2541
2522
|
return l;
|
|
2542
2523
|
}
|
|
@@ -2551,11 +2532,11 @@ class H {
|
|
|
2551
2532
|
return await H.fetchData("/api/client?query=" + l);
|
|
2552
2533
|
}
|
|
2553
2534
|
static getReportUrl(e, t = null) {
|
|
2554
|
-
var r,
|
|
2555
|
-
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((
|
|
2535
|
+
var r, o, u;
|
|
2536
|
+
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2556
2537
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2557
|
-
const
|
|
2558
|
-
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" +
|
|
2538
|
+
const i = [l, "-piq", t].filter((p) => p).join("");
|
|
2539
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
|
|
2559
2540
|
}
|
|
2560
2541
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2561
2542
|
try {
|
|
@@ -2722,10 +2703,10 @@ class H {
|
|
|
2722
2703
|
const n = this;
|
|
2723
2704
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2724
2705
|
createTile: function(s, l) {
|
|
2725
|
-
const
|
|
2706
|
+
const i = document.createElement("div");
|
|
2726
2707
|
return setTimeout(() => {
|
|
2727
|
-
l(null,
|
|
2728
|
-
const { se: r, nw:
|
|
2708
|
+
l(null, i);
|
|
2709
|
+
const { se: r, nw: o } = n.getGridBounds({
|
|
2729
2710
|
map: e,
|
|
2730
2711
|
tileSize: this.getTileSize(),
|
|
2731
2712
|
coords: s
|
|
@@ -2733,12 +2714,12 @@ class H {
|
|
|
2733
2714
|
t({
|
|
2734
2715
|
swLat: r.lat,
|
|
2735
2716
|
neLng: r.lng,
|
|
2736
|
-
neLat:
|
|
2737
|
-
swLng:
|
|
2717
|
+
neLat: o.lat,
|
|
2718
|
+
swLng: o.lng,
|
|
2738
2719
|
coords: s,
|
|
2739
2720
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2740
2721
|
});
|
|
2741
|
-
}, a),
|
|
2722
|
+
}, a), i;
|
|
2742
2723
|
}
|
|
2743
2724
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2744
2725
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2763,9 +2744,9 @@ class H {
|
|
|
2763
2744
|
onOpen: n = null,
|
|
2764
2745
|
onTargetClick: s = null,
|
|
2765
2746
|
selfClose: l = !1,
|
|
2766
|
-
target:
|
|
2747
|
+
target: i = null
|
|
2767
2748
|
}) {
|
|
2768
|
-
const r =
|
|
2749
|
+
const r = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), u = l ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
|
|
2769
2750
|
"closing",
|
|
2770
2751
|
"closed",
|
|
2771
2752
|
"opening",
|
|
@@ -2793,7 +2774,7 @@ class H {
|
|
|
2793
2774
|
});
|
|
2794
2775
|
});
|
|
2795
2776
|
});
|
|
2796
|
-
|
|
2777
|
+
o && (V.observe(o, {
|
|
2797
2778
|
attributes: !0
|
|
2798
2779
|
}), C.observe(document.body, {
|
|
2799
2780
|
attributes: !1,
|
|
@@ -2803,29 +2784,29 @@ class H {
|
|
|
2803
2784
|
const f = async ({ target: h }) => {
|
|
2804
2785
|
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2805
2786
|
}, g = async ({ target: h }) => {
|
|
2806
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside),
|
|
2787
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), o == null || o.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
|
);
|
|
2810
|
-
return !e && (
|
|
2811
|
-
await f({ target: h.target }), a && a(h,
|
|
2812
|
-
}), e && (
|
|
2791
|
+
return !e && (o == null || o.addEventListener("click", g)), o == null || o.addEventListener("close", async (h) => {
|
|
2792
|
+
await f({ target: h.target }), a && a(h, o);
|
|
2793
|
+
}), e && (o == null || o.addEventListener("cancel", async (h) => {
|
|
2813
2794
|
h.key === "Escape" && h.preventDefault();
|
|
2814
|
-
})), e && (
|
|
2795
|
+
})), e && (o == null || o.addEventListener("keydown", (h) => {
|
|
2815
2796
|
h.key === "Escape" && h.preventDefault();
|
|
2816
|
-
})), n && (
|
|
2817
|
-
n(h,
|
|
2797
|
+
})), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2798
|
+
n(h, o);
|
|
2818
2799
|
})), r == null || r.forEach((h) => {
|
|
2819
2800
|
h.addEventListener("click", (v) => {
|
|
2820
|
-
|
|
2801
|
+
o == null || o.showModal(), s && s(v, o);
|
|
2821
2802
|
});
|
|
2822
2803
|
}), u == null || u.forEach((h) => {
|
|
2823
2804
|
h.addEventListener("click", async (v) => {
|
|
2824
|
-
|
|
2805
|
+
o == null || o.close("close");
|
|
2825
2806
|
});
|
|
2826
2807
|
}), {
|
|
2827
2808
|
activators: r,
|
|
2828
|
-
ref:
|
|
2809
|
+
ref: o
|
|
2829
2810
|
};
|
|
2830
2811
|
}
|
|
2831
2812
|
static hasBoundsEntry(e, t = "bounds") {
|
|
@@ -2835,8 +2816,8 @@ class H {
|
|
|
2835
2816
|
if (!e)
|
|
2836
2817
|
return;
|
|
2837
2818
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2838
|
-
new IntersectionObserver(async (l,
|
|
2839
|
-
n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs:
|
|
2819
|
+
new IntersectionObserver(async (l, i) => {
|
|
2820
|
+
n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs: i, entry: l[0], entries: l }) : l[0].isIntersecting && t({ obs: i, entry: l[0], entries: l });
|
|
2840
2821
|
}, a).observe(e);
|
|
2841
2822
|
}
|
|
2842
2823
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2845,10 +2826,10 @@ class H {
|
|
|
2845
2826
|
}
|
|
2846
2827
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2847
2828
|
return new Promise(function(s, l) {
|
|
2848
|
-
let
|
|
2849
|
-
if (t &&
|
|
2829
|
+
let i = document.getElementById(t);
|
|
2830
|
+
if (t && i && i.dataset.loaded === "true")
|
|
2850
2831
|
return s({ alreadyLoaded: !0, id: t });
|
|
2851
|
-
|
|
2832
|
+
i || (i = document.createElement("script"), i.src = e, i.dataset.loaded = "false", t && (i.id = t), i.type = n ? "module" : "text/javascript", i.async = a, document.body.appendChild(i), i.onload = () => (i.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), i.onerror = () => l(!1));
|
|
2852
2833
|
});
|
|
2853
2834
|
}
|
|
2854
2835
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2975,16 +2956,16 @@ class H {
|
|
|
2975
2956
|
middle: n = null,
|
|
2976
2957
|
last: s = null,
|
|
2977
2958
|
min: l = null,
|
|
2978
|
-
max:
|
|
2959
|
+
max: i = null,
|
|
2979
2960
|
city: r = null,
|
|
2980
|
-
state:
|
|
2961
|
+
state: o = null,
|
|
2981
2962
|
vin: u = null,
|
|
2982
2963
|
license: p = null,
|
|
2983
2964
|
token: V = null,
|
|
2984
2965
|
phone: C = null
|
|
2985
|
-
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x =
|
|
2966
|
+
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = i && i !== "" && 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(
|
|
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(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (g && h.push("min=" + l), x && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), 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("&");
|
|
2988
2969
|
}
|
|
2989
2970
|
static padTo2Digits(e) {
|
|
2990
2971
|
return e.toString().padStart(2, "0");
|
|
@@ -2999,9 +2980,9 @@ class H {
|
|
|
2999
2980
|
useCitySearch: n = !1,
|
|
3000
2981
|
useCityStateSearch: s = !1,
|
|
3001
2982
|
useSearch: l = !1,
|
|
3002
|
-
useLocation:
|
|
2983
|
+
useLocation: i = !0,
|
|
3003
2984
|
state: r = "",
|
|
3004
|
-
useGoogle:
|
|
2985
|
+
useGoogle: o = !1,
|
|
3005
2986
|
useGoogleOverride: u = !1,
|
|
3006
2987
|
useAmazonOverride: p = !1,
|
|
3007
2988
|
isSandboxAccount: V = !1,
|
|
@@ -3012,8 +2993,8 @@ class H {
|
|
|
3012
2993
|
"useSearch=" + l,
|
|
3013
2994
|
"useCitySearch=" + n,
|
|
3014
2995
|
"useCityStateSearch=" + s,
|
|
3015
|
-
"useLocation=" +
|
|
3016
|
-
"useGoogle=" +
|
|
2996
|
+
"useLocation=" + i,
|
|
2997
|
+
"useGoogle=" + o,
|
|
3017
2998
|
"useGoogleOverride=" + u,
|
|
3018
2999
|
"useAmazonOverride=" + p,
|
|
3019
3000
|
"isSandboxAccount=" + V,
|
|
@@ -3068,8 +3049,8 @@ class H {
|
|
|
3068
3049
|
if (a && !n) {
|
|
3069
3050
|
const s = a.split(" "), l = s[s.length - 1];
|
|
3070
3051
|
if (l.length) {
|
|
3071
|
-
const
|
|
3072
|
-
|
|
3052
|
+
const i = this.searchInStates(l);
|
|
3053
|
+
i && (n = i.short, a = s.slice(0, -1).join(" "));
|
|
3073
3054
|
}
|
|
3074
3055
|
}
|
|
3075
3056
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
@@ -3082,9 +3063,9 @@ 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:
|
|
3086
|
-
|
|
3087
|
-
|
|
3066
|
+
const l = e.map(({ fileName: o, initFunctionName: u }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(l), r = [];
|
|
3067
|
+
i.forEach((o, u) => {
|
|
3068
|
+
o && typeof o[e[u].initFunctionName] == "function" ? r.push(o[e[u].initFunctionName]()) : console.error(`error loading ${e[u].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);
|
|
@@ -3176,8 +3157,8 @@ 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,
|
|
@@ -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,
|