@vehiclehistory/property-lib 0.1.2 → 0.1.4
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 +158 -159
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
2
|
import m from "classnames";
|
|
3
|
-
import { memo as
|
|
3
|
+
import { memo as A, useState as N, useEffect as E } from "react";
|
|
4
4
|
const G = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -545,7 +545,7 @@ const G = {
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
);
|
|
548
|
-
}, x =
|
|
548
|
+
}, x = A(Y), X = ({
|
|
549
549
|
children: d,
|
|
550
550
|
className: e,
|
|
551
551
|
clickHandler: t,
|
|
@@ -614,7 +614,7 @@ const G = {
|
|
|
614
614
|
] })
|
|
615
615
|
}
|
|
616
616
|
);
|
|
617
|
-
}, O1 =
|
|
617
|
+
}, O1 = A(X), _ = ({
|
|
618
618
|
children: d,
|
|
619
619
|
className: e,
|
|
620
620
|
messages: t = [],
|
|
@@ -645,14 +645,14 @@ const G = {
|
|
|
645
645
|
iconColor: "text-yellow-500",
|
|
646
646
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
647
647
|
}
|
|
648
|
-
}, { icon: o, iconColor:
|
|
648
|
+
}, { icon: o, iconColor: u, styles: p } = l[i];
|
|
649
649
|
return /* @__PURE__ */ c(
|
|
650
650
|
"div",
|
|
651
651
|
{
|
|
652
652
|
id: i,
|
|
653
653
|
className: m(
|
|
654
654
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
655
|
-
|
|
655
|
+
p,
|
|
656
656
|
e
|
|
657
657
|
),
|
|
658
658
|
...r,
|
|
@@ -662,7 +662,7 @@ const G = {
|
|
|
662
662
|
{
|
|
663
663
|
name: o,
|
|
664
664
|
viewBox: "0 0 24 24",
|
|
665
|
-
className:
|
|
665
|
+
className: u,
|
|
666
666
|
size: "xSmall"
|
|
667
667
|
}
|
|
668
668
|
) }),
|
|
@@ -684,7 +684,7 @@ const G = {
|
|
|
684
684
|
] })
|
|
685
685
|
}
|
|
686
686
|
);
|
|
687
|
-
}, I1 =
|
|
687
|
+
}, I1 = A(_), T1 = ({
|
|
688
688
|
autoFocus: d = !1,
|
|
689
689
|
className: e,
|
|
690
690
|
dataSearch: t = "container",
|
|
@@ -695,15 +695,15 @@ const G = {
|
|
|
695
695
|
leftIcon: i = "homeSearch",
|
|
696
696
|
leftIconProps: l = {},
|
|
697
697
|
loadingIconProps: o = {},
|
|
698
|
-
mobileBackdrop:
|
|
699
|
-
name:
|
|
698
|
+
mobileBackdrop: u = !1,
|
|
699
|
+
name: p = "",
|
|
700
700
|
options: V = [],
|
|
701
701
|
parentProps: M = {},
|
|
702
702
|
placeholder: f = "",
|
|
703
703
|
props: v = {},
|
|
704
|
-
rightIcon:
|
|
704
|
+
rightIcon: y = "",
|
|
705
705
|
required: h = !1,
|
|
706
|
-
showSearchIcon:
|
|
706
|
+
showSearchIcon: b = !0,
|
|
707
707
|
showRightIcon: w = !1,
|
|
708
708
|
size: C = "medium",
|
|
709
709
|
styles: S = null,
|
|
@@ -724,13 +724,13 @@ const G = {
|
|
|
724
724
|
style: S ? { ...S } : null,
|
|
725
725
|
...M,
|
|
726
726
|
children: [
|
|
727
|
-
|
|
727
|
+
b && /* @__PURE__ */ g(
|
|
728
728
|
"span",
|
|
729
729
|
{
|
|
730
730
|
className: m(
|
|
731
731
|
"search-icon-left absolute inset-y-0 left-0 flex items-center ",
|
|
732
732
|
{
|
|
733
|
-
"pointer-events-none":
|
|
733
|
+
"pointer-events-none": u,
|
|
734
734
|
"pl-2": C === "medium",
|
|
735
735
|
"pl-4": C === "large"
|
|
736
736
|
}
|
|
@@ -766,8 +766,8 @@ const G = {
|
|
|
766
766
|
className: m(
|
|
767
767
|
"w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
|
|
768
768
|
{
|
|
769
|
-
"pl-8":
|
|
770
|
-
"pl-10":
|
|
769
|
+
"pl-8": b === !0 && C === "medium",
|
|
770
|
+
"pl-10": b === !0 && C === "large",
|
|
771
771
|
"px-3 h-10": C === "medium",
|
|
772
772
|
"px-4 h-12": C === "large",
|
|
773
773
|
"px-5 h-[60px] sm:!text-base": C === "xLarge",
|
|
@@ -779,7 +779,7 @@ const G = {
|
|
|
779
779
|
autoComplete: "off",
|
|
780
780
|
placeholder: !f && n ? " " : f,
|
|
781
781
|
type: "search",
|
|
782
|
-
name:
|
|
782
|
+
name: p || "search-input",
|
|
783
783
|
"data-id": "search-input",
|
|
784
784
|
...U,
|
|
785
785
|
...v
|
|
@@ -791,7 +791,7 @@ const G = {
|
|
|
791
791
|
className: m(
|
|
792
792
|
"floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
|
|
793
793
|
{
|
|
794
|
-
"!left-7":
|
|
794
|
+
"!left-7": b === !0,
|
|
795
795
|
"left-2": C === "medium",
|
|
796
796
|
"left-3": C === "large",
|
|
797
797
|
"left-4": C === "xLarge"
|
|
@@ -833,12 +833,12 @@ const G = {
|
|
|
833
833
|
)
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
|
|
836
|
+
y && /* @__PURE__ */ c(
|
|
837
837
|
"span",
|
|
838
838
|
{
|
|
839
839
|
"data-id": "right-icon",
|
|
840
840
|
className: `${w ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
841
|
-
children: /* @__PURE__ */ c(x, { name:
|
|
841
|
+
children: /* @__PURE__ */ c(x, { name: y, size: "small", viewBox: "0 0 24 24" })
|
|
842
842
|
}
|
|
843
843
|
),
|
|
844
844
|
/* @__PURE__ */ g(
|
|
@@ -906,24 +906,24 @@ const G = {
|
|
|
906
906
|
outline: i = !1,
|
|
907
907
|
props: l = {},
|
|
908
908
|
rightIcon: o,
|
|
909
|
-
rightIconProps:
|
|
910
|
-
rounded:
|
|
909
|
+
rightIconProps: u = {},
|
|
910
|
+
rounded: p = !1,
|
|
911
911
|
size: V = "md",
|
|
912
912
|
type: M = "button",
|
|
913
913
|
uppercase: f = !1,
|
|
914
914
|
variation: v = "primary"
|
|
915
915
|
}) => {
|
|
916
|
-
const
|
|
916
|
+
const y = r ? "a" : "button";
|
|
917
917
|
return /* @__PURE__ */ g(
|
|
918
|
-
|
|
918
|
+
y,
|
|
919
919
|
{
|
|
920
|
-
type:
|
|
920
|
+
type: y !== "a" ? M : null,
|
|
921
921
|
className: m(
|
|
922
922
|
"button",
|
|
923
923
|
{
|
|
924
924
|
[`button--${v}`]: v,
|
|
925
925
|
[`button--${V}`]: V,
|
|
926
|
-
"button--rounded":
|
|
926
|
+
"button--rounded": p,
|
|
927
927
|
"button--disabled": s,
|
|
928
928
|
"button--outline": i,
|
|
929
929
|
"button--custom-link": r,
|
|
@@ -952,13 +952,13 @@ const G = {
|
|
|
952
952
|
name: o,
|
|
953
953
|
size: V === "md" ? "small" : "xSmall",
|
|
954
954
|
viewBox: "0 0 24 24",
|
|
955
|
-
...
|
|
955
|
+
...u
|
|
956
956
|
}
|
|
957
957
|
)
|
|
958
958
|
]
|
|
959
959
|
}
|
|
960
960
|
);
|
|
961
|
-
}, F =
|
|
961
|
+
}, F = A(K), e1 = ({
|
|
962
962
|
checked: d = !1,
|
|
963
963
|
children: e,
|
|
964
964
|
className: t,
|
|
@@ -969,11 +969,11 @@ const G = {
|
|
|
969
969
|
name: i = "",
|
|
970
970
|
props: l = {},
|
|
971
971
|
variation: o = "primary",
|
|
972
|
-
value:
|
|
972
|
+
value: u = ""
|
|
973
973
|
}) => {
|
|
974
|
-
const
|
|
974
|
+
const p = r ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
975
975
|
return /* @__PURE__ */ g(
|
|
976
|
-
|
|
976
|
+
p,
|
|
977
977
|
{
|
|
978
978
|
className: m(
|
|
979
979
|
"checkbox",
|
|
@@ -996,7 +996,7 @@ const G = {
|
|
|
996
996
|
id: s,
|
|
997
997
|
name: i,
|
|
998
998
|
type: "checkbox",
|
|
999
|
-
value:
|
|
999
|
+
value: u,
|
|
1000
1000
|
...l
|
|
1001
1001
|
}
|
|
1002
1002
|
),
|
|
@@ -1004,7 +1004,7 @@ const G = {
|
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
1006
1006
|
);
|
|
1007
|
-
}, $1 =
|
|
1007
|
+
}, $1 = A(e1), t1 = ({
|
|
1008
1008
|
activator: d,
|
|
1009
1009
|
id: e,
|
|
1010
1010
|
children: t,
|
|
@@ -1015,15 +1015,15 @@ const G = {
|
|
|
1015
1015
|
disableClose: i = !1,
|
|
1016
1016
|
footer: l,
|
|
1017
1017
|
fullMobile: o = !0,
|
|
1018
|
-
headerClass:
|
|
1019
|
-
hideClose:
|
|
1018
|
+
headerClass: u,
|
|
1019
|
+
hideClose: p = !1,
|
|
1020
1020
|
iconSize: V = "medium",
|
|
1021
1021
|
preventPageScroll: M = !0,
|
|
1022
1022
|
sheet: f = !1,
|
|
1023
1023
|
sheetDirection: v = "right",
|
|
1024
|
-
stickyHeader:
|
|
1024
|
+
stickyHeader: y = !1,
|
|
1025
1025
|
title: h = "",
|
|
1026
|
-
titleClass:
|
|
1026
|
+
titleClass: b,
|
|
1027
1027
|
variation: w = "primary",
|
|
1028
1028
|
useFormMethod: C = !0
|
|
1029
1029
|
}) => {
|
|
@@ -1060,15 +1060,15 @@ const G = {
|
|
|
1060
1060
|
className: m(
|
|
1061
1061
|
"dialog-header",
|
|
1062
1062
|
{
|
|
1063
|
-
"sticky top-0 bg-white z-10":
|
|
1063
|
+
"sticky top-0 bg-white z-10": y,
|
|
1064
1064
|
"!pb-0 border-0 justify-end": !h,
|
|
1065
1065
|
"justify-between border-b": h
|
|
1066
1066
|
},
|
|
1067
|
-
|
|
1067
|
+
u
|
|
1068
1068
|
),
|
|
1069
1069
|
children: [
|
|
1070
|
-
h && /* @__PURE__ */ c("div", { className: m("dialog-title",
|
|
1071
|
-
!
|
|
1070
|
+
h && /* @__PURE__ */ c("div", { className: m("dialog-title", b), children: h }),
|
|
1071
|
+
!p && /* @__PURE__ */ c(
|
|
1072
1072
|
"button",
|
|
1073
1073
|
{
|
|
1074
1074
|
type: "button",
|
|
@@ -1109,7 +1109,7 @@ const G = {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
)
|
|
1111
1111
|
] });
|
|
1112
|
-
}, q1 =
|
|
1112
|
+
}, q1 = A(t1), j1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: m("Dots mx-auto", d), children: [
|
|
1113
1113
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1114
1114
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1115
1115
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1121,7 +1121,7 @@ const G = {
|
|
|
1121
1121
|
] }), a1 = ({
|
|
1122
1122
|
cb: d,
|
|
1123
1123
|
onUpdate: e,
|
|
1124
|
-
className: t
|
|
1124
|
+
className: t,
|
|
1125
1125
|
selector: a = "",
|
|
1126
1126
|
size: n = "md",
|
|
1127
1127
|
timeout: s = 1e4,
|
|
@@ -1129,18 +1129,18 @@ const G = {
|
|
|
1129
1129
|
}) => {
|
|
1130
1130
|
function i({ cb: l }) {
|
|
1131
1131
|
const o = document.querySelector(
|
|
1132
|
-
`.loading-
|
|
1132
|
+
`.loading-bar--inner${a ? `.${a}` : ""}`
|
|
1133
1133
|
);
|
|
1134
1134
|
if (!o) return;
|
|
1135
|
-
let
|
|
1135
|
+
let u, p, V = !1;
|
|
1136
1136
|
function M(f) {
|
|
1137
|
-
|
|
1138
|
-
const v = f -
|
|
1139
|
-
if (
|
|
1140
|
-
const
|
|
1141
|
-
o.style.width = `${
|
|
1137
|
+
u === void 0 && (u = f);
|
|
1138
|
+
const v = f - u;
|
|
1139
|
+
if (p !== f) {
|
|
1140
|
+
const y = v / s * 101;
|
|
1141
|
+
o.style.width = `${y}%`, e && e({ elapsed: v, percentage: y }), y >= 101 && (l && l(), V = !0, window.cancelAnimationFrame(f));
|
|
1142
1142
|
}
|
|
1143
|
-
v < s && (
|
|
1143
|
+
v < s && (p = f, V || window.requestAnimationFrame(M));
|
|
1144
1144
|
}
|
|
1145
1145
|
window.requestAnimationFrame(M);
|
|
1146
1146
|
}
|
|
@@ -1151,19 +1151,19 @@ const G = {
|
|
|
1151
1151
|
{
|
|
1152
1152
|
className: m(
|
|
1153
1153
|
"loading-bar my-8",
|
|
1154
|
-
`loading-
|
|
1154
|
+
`loading-bar--${r}`,
|
|
1155
1155
|
{
|
|
1156
1156
|
"h-4": n === "md",
|
|
1157
1157
|
"h-6": n === "lg",
|
|
1158
1158
|
"h-8": n === "xl"
|
|
1159
1159
|
},
|
|
1160
|
-
`loading-
|
|
1160
|
+
`loading-bar--${n}`,
|
|
1161
1161
|
t
|
|
1162
1162
|
),
|
|
1163
|
-
children: /* @__PURE__ */ c("div", { className: `loading-
|
|
1163
|
+
children: /* @__PURE__ */ c("div", { className: `loading-bar--inner ${a}`, "data-size": "100" })
|
|
1164
1164
|
}
|
|
1165
1165
|
);
|
|
1166
|
-
}, P1 =
|
|
1166
|
+
}, P1 = A(a1), n1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), R1 = A(n1), W1 = ({
|
|
1167
1167
|
activator: d,
|
|
1168
1168
|
activatorClass: e = "",
|
|
1169
1169
|
attrs: t = {},
|
|
@@ -1227,7 +1227,7 @@ const G = {
|
|
|
1227
1227
|
rounded: l = !0,
|
|
1228
1228
|
showLabel: o = !1
|
|
1229
1229
|
}) => {
|
|
1230
|
-
const
|
|
1230
|
+
const p = ((V, M) => {
|
|
1231
1231
|
if (V) {
|
|
1232
1232
|
const f = Number(M) / V;
|
|
1233
1233
|
return f > 1 ? 100 : f * 100;
|
|
@@ -1254,7 +1254,7 @@ const G = {
|
|
|
1254
1254
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1255
1255
|
t
|
|
1256
1256
|
),
|
|
1257
|
-
style: { width: `${
|
|
1257
|
+
style: { width: `${p}%` },
|
|
1258
1258
|
children: o && /* @__PURE__ */ c(
|
|
1259
1259
|
"span",
|
|
1260
1260
|
{
|
|
@@ -1262,14 +1262,14 @@ const G = {
|
|
|
1262
1262
|
"font-bold text-white text-xs mr-2",
|
|
1263
1263
|
r
|
|
1264
1264
|
),
|
|
1265
|
-
children: s || Math.round(
|
|
1265
|
+
children: s || Math.round(p)
|
|
1266
1266
|
}
|
|
1267
1267
|
)
|
|
1268
1268
|
}
|
|
1269
1269
|
)
|
|
1270
1270
|
}
|
|
1271
1271
|
);
|
|
1272
|
-
}, U1 =
|
|
1272
|
+
}, U1 = A(s1), l1 = ({
|
|
1273
1273
|
checked: d = !1,
|
|
1274
1274
|
children: e,
|
|
1275
1275
|
className: t,
|
|
@@ -1281,16 +1281,16 @@ const G = {
|
|
|
1281
1281
|
variation: l = "primary",
|
|
1282
1282
|
value: o = ""
|
|
1283
1283
|
}) => {
|
|
1284
|
-
const
|
|
1284
|
+
const u = s ? "div" : "label", p = u === "label" ? { htmlFor: a } : {};
|
|
1285
1285
|
return /* @__PURE__ */ g(
|
|
1286
|
-
|
|
1286
|
+
u,
|
|
1287
1287
|
{
|
|
1288
1288
|
className: m(
|
|
1289
1289
|
"radio",
|
|
1290
1290
|
{ [`radio--${l}`]: l },
|
|
1291
1291
|
t
|
|
1292
1292
|
),
|
|
1293
|
-
...
|
|
1293
|
+
...p,
|
|
1294
1294
|
children: [
|
|
1295
1295
|
/* @__PURE__ */ c(
|
|
1296
1296
|
"input",
|
|
@@ -1308,7 +1308,7 @@ const G = {
|
|
|
1308
1308
|
]
|
|
1309
1309
|
}
|
|
1310
1310
|
);
|
|
1311
|
-
}, G1 =
|
|
1311
|
+
}, G1 = A(l1), r1 = ({
|
|
1312
1312
|
className: d = "",
|
|
1313
1313
|
error: e = !1,
|
|
1314
1314
|
errorMessage: t = "",
|
|
@@ -1319,16 +1319,20 @@ const G = {
|
|
|
1319
1319
|
placeholder: i = "",
|
|
1320
1320
|
props: l = {},
|
|
1321
1321
|
selectClass: o = "",
|
|
1322
|
-
styles:
|
|
1323
|
-
variation:
|
|
1322
|
+
styles: u = null,
|
|
1323
|
+
variation: p = "primary",
|
|
1324
1324
|
value: V
|
|
1325
1325
|
}) => {
|
|
1326
1326
|
const M = i ? { defaultValue: "" } : {};
|
|
1327
1327
|
return /* @__PURE__ */ g(
|
|
1328
1328
|
"label",
|
|
1329
1329
|
{
|
|
1330
|
-
className: m(
|
|
1331
|
-
|
|
1330
|
+
className: m(
|
|
1331
|
+
"relative select",
|
|
1332
|
+
{ [`select--${p}`]: p },
|
|
1333
|
+
d
|
|
1334
|
+
),
|
|
1335
|
+
style: u ? { ...u } : null,
|
|
1332
1336
|
children: [
|
|
1333
1337
|
n,
|
|
1334
1338
|
/* @__PURE__ */ g(
|
|
@@ -1337,12 +1341,9 @@ const G = {
|
|
|
1337
1341
|
className: m(
|
|
1338
1342
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1339
1343
|
{
|
|
1340
|
-
"
|
|
1344
|
+
"field-error": e
|
|
1341
1345
|
},
|
|
1342
|
-
|
|
1343
|
-
{ "!text-black-900": e && u === "blue" },
|
|
1344
|
-
o,
|
|
1345
|
-
u
|
|
1346
|
+
o
|
|
1346
1347
|
),
|
|
1347
1348
|
id: a,
|
|
1348
1349
|
name: s,
|
|
@@ -1366,7 +1367,7 @@ const G = {
|
|
|
1366
1367
|
]
|
|
1367
1368
|
}
|
|
1368
1369
|
);
|
|
1369
|
-
}, Q1 =
|
|
1370
|
+
}, Q1 = A(r1), i1 = ({ className: d }) => /* @__PURE__ */ g(
|
|
1370
1371
|
"div",
|
|
1371
1372
|
{
|
|
1372
1373
|
className: m(
|
|
@@ -1378,7 +1379,7 @@ const G = {
|
|
|
1378
1379
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1379
1380
|
]
|
|
1380
1381
|
}
|
|
1381
|
-
), J1 =
|
|
1382
|
+
), J1 = A(i1), o1 = ({
|
|
1382
1383
|
placeholderClass: d = "",
|
|
1383
1384
|
children: e,
|
|
1384
1385
|
className: t,
|
|
@@ -1413,7 +1414,7 @@ const G = {
|
|
|
1413
1414
|
children: /* @__PURE__ */ c(x, { name: "chevronRight" })
|
|
1414
1415
|
}
|
|
1415
1416
|
)
|
|
1416
|
-
] }), Y1 =
|
|
1417
|
+
] }), Y1 = A(o1), c1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1417
1418
|
x,
|
|
1418
1419
|
{
|
|
1419
1420
|
className: m("animate-spin text-black-900", e),
|
|
@@ -1422,7 +1423,7 @@ const G = {
|
|
|
1422
1423
|
viewBox: "0 0 24 24",
|
|
1423
1424
|
...t
|
|
1424
1425
|
}
|
|
1425
|
-
) }),
|
|
1426
|
+
) }), X1 = A(c1), _1 = ({
|
|
1426
1427
|
className: d,
|
|
1427
1428
|
value: e
|
|
1428
1429
|
}) => {
|
|
@@ -1450,8 +1451,8 @@ const G = {
|
|
|
1450
1451
|
placeholder: i = "",
|
|
1451
1452
|
props: l = {},
|
|
1452
1453
|
rows: o = 4,
|
|
1453
|
-
variation:
|
|
1454
|
-
}) => /* @__PURE__ */ g("div", { className: m("relative textarea",
|
|
1454
|
+
variation: u = "primary"
|
|
1455
|
+
}) => /* @__PURE__ */ g("div", { className: m("relative textarea", u, d), children: [
|
|
1455
1456
|
/* @__PURE__ */ c(
|
|
1456
1457
|
"textarea",
|
|
1457
1458
|
{
|
|
@@ -1463,7 +1464,7 @@ const G = {
|
|
|
1463
1464
|
"form-textarea min-h-[40px] pl-4",
|
|
1464
1465
|
e ? "pr-10" : "pr-4",
|
|
1465
1466
|
{
|
|
1466
|
-
"
|
|
1467
|
+
"field-error": t
|
|
1467
1468
|
},
|
|
1468
1469
|
s
|
|
1469
1470
|
),
|
|
@@ -1486,7 +1487,7 @@ const G = {
|
|
|
1486
1487
|
}
|
|
1487
1488
|
),
|
|
1488
1489
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1489
|
-
] }), h1 =
|
|
1490
|
+
] }), h1 = A(d1), u1 = ({
|
|
1490
1491
|
className: d,
|
|
1491
1492
|
clear: e = !1,
|
|
1492
1493
|
error: t = !1,
|
|
@@ -1497,15 +1498,15 @@ const G = {
|
|
|
1497
1498
|
name: i = "",
|
|
1498
1499
|
placeholder: l = "",
|
|
1499
1500
|
props: o = {},
|
|
1500
|
-
styles:
|
|
1501
|
-
type:
|
|
1501
|
+
styles: u = null,
|
|
1502
|
+
type: p = "text",
|
|
1502
1503
|
value: V,
|
|
1503
1504
|
variation: M = "primary"
|
|
1504
1505
|
}) => /* @__PURE__ */ g(
|
|
1505
1506
|
"div",
|
|
1506
1507
|
{
|
|
1507
1508
|
className: m("relative textbox", M, d),
|
|
1508
|
-
style:
|
|
1509
|
+
style: u ? { ...u } : null,
|
|
1509
1510
|
children: [
|
|
1510
1511
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1511
1512
|
x,
|
|
@@ -1522,7 +1523,7 @@ const G = {
|
|
|
1522
1523
|
placeholder: l,
|
|
1523
1524
|
id: s,
|
|
1524
1525
|
name: i,
|
|
1525
|
-
type:
|
|
1526
|
+
type: p,
|
|
1526
1527
|
value: V,
|
|
1527
1528
|
autoComplete: "off",
|
|
1528
1529
|
className: m(
|
|
@@ -1532,9 +1533,7 @@ const G = {
|
|
|
1532
1533
|
o.inputClass ?? "",
|
|
1533
1534
|
r,
|
|
1534
1535
|
{
|
|
1535
|
-
"
|
|
1536
|
-
"!border-red-500 focus:!ring-red-500 focus:!border-red-500": t,
|
|
1537
|
-
"!bg-red-500/10 placeholder:!text-red-700": t && M !== "blue"
|
|
1536
|
+
"field-error": t
|
|
1538
1537
|
}
|
|
1539
1538
|
),
|
|
1540
1539
|
...o
|
|
@@ -1558,7 +1557,7 @@ const G = {
|
|
|
1558
1557
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1559
1558
|
]
|
|
1560
1559
|
}
|
|
1561
|
-
), D =
|
|
1560
|
+
), D = A(u1), p1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(k, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
|
|
1562
1561
|
/* @__PURE__ */ c(
|
|
1563
1562
|
"input",
|
|
1564
1563
|
{
|
|
@@ -1580,7 +1579,7 @@ const G = {
|
|
|
1580
1579
|
className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
|
|
1581
1580
|
}
|
|
1582
1581
|
)
|
|
1583
|
-
] }) }) }), K1 =
|
|
1582
|
+
] }) }) }), K1 = A(p1), m1 = ({
|
|
1584
1583
|
btnClass: d,
|
|
1585
1584
|
btnProps: e = {},
|
|
1586
1585
|
btnTitle: t = "Submit",
|
|
@@ -1681,7 +1680,7 @@ const G = {
|
|
|
1681
1680
|
]
|
|
1682
1681
|
}
|
|
1683
1682
|
);
|
|
1684
|
-
}, e2 =
|
|
1683
|
+
}, e2 = A(m1), f1 = ({
|
|
1685
1684
|
block: d = !1,
|
|
1686
1685
|
children: e,
|
|
1687
1686
|
className: t,
|
|
@@ -1692,23 +1691,23 @@ const G = {
|
|
|
1692
1691
|
headerClass: i,
|
|
1693
1692
|
list: l = !1,
|
|
1694
1693
|
props: o = {},
|
|
1695
|
-
variation:
|
|
1694
|
+
variation: u = "primary"
|
|
1696
1695
|
}) => {
|
|
1697
|
-
const
|
|
1696
|
+
const p = l ? "ul" : "div";
|
|
1698
1697
|
return /* @__PURE__ */ g(
|
|
1699
1698
|
"div",
|
|
1700
1699
|
{
|
|
1701
1700
|
className: m(
|
|
1702
1701
|
"content-card",
|
|
1703
1702
|
{ "content-card--block": d },
|
|
1704
|
-
`content-card--${
|
|
1703
|
+
`content-card--${u}`,
|
|
1705
1704
|
t
|
|
1706
1705
|
),
|
|
1707
1706
|
...o,
|
|
1708
1707
|
children: [
|
|
1709
1708
|
r && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ c("h3", { children: r }) : r }),
|
|
1710
1709
|
/* @__PURE__ */ c(
|
|
1711
|
-
|
|
1710
|
+
p,
|
|
1712
1711
|
{
|
|
1713
1712
|
className: m("content-card__content", a),
|
|
1714
1713
|
role: l ? "list" : null,
|
|
@@ -1719,7 +1718,7 @@ const G = {
|
|
|
1719
1718
|
]
|
|
1720
1719
|
}
|
|
1721
1720
|
);
|
|
1722
|
-
}, t2 =
|
|
1721
|
+
}, t2 = A(f1), V1 = ({
|
|
1723
1722
|
children: d,
|
|
1724
1723
|
className: e,
|
|
1725
1724
|
colGap: t = 2,
|
|
@@ -1730,7 +1729,7 @@ const G = {
|
|
|
1730
1729
|
rowGap: i = 1,
|
|
1731
1730
|
value: l,
|
|
1732
1731
|
valueClass: o,
|
|
1733
|
-
wrap:
|
|
1732
|
+
wrap: u = !1
|
|
1734
1733
|
}) => /* @__PURE__ */ g(
|
|
1735
1734
|
"div",
|
|
1736
1735
|
{
|
|
@@ -1739,7 +1738,7 @@ const G = {
|
|
|
1739
1738
|
{
|
|
1740
1739
|
"flex-col items-start": a === "col",
|
|
1741
1740
|
"flex-row items-center": a === "row",
|
|
1742
|
-
"flex-wrap":
|
|
1741
|
+
"flex-wrap": u
|
|
1743
1742
|
},
|
|
1744
1743
|
e
|
|
1745
1744
|
),
|
|
@@ -1754,7 +1753,7 @@ const G = {
|
|
|
1754
1753
|
d
|
|
1755
1754
|
]
|
|
1756
1755
|
}
|
|
1757
|
-
), a2 =
|
|
1756
|
+
), a2 = A(V1), n2 = ({
|
|
1758
1757
|
breakPage: d = !1,
|
|
1759
1758
|
children: e,
|
|
1760
1759
|
className: t,
|
|
@@ -1794,7 +1793,7 @@ const G = {
|
|
|
1794
1793
|
),
|
|
1795
1794
|
children: n || e
|
|
1796
1795
|
}
|
|
1797
|
-
), l2 =
|
|
1796
|
+
), l2 = A(H1), C1 = {
|
|
1798
1797
|
circular: "circular 3s linear infinite",
|
|
1799
1798
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1800
1799
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1928,16 +1927,16 @@ const G = {
|
|
|
1928
1927
|
transform: "translateX(0)"
|
|
1929
1928
|
}
|
|
1930
1929
|
}
|
|
1931
|
-
},
|
|
1930
|
+
}, A1 = {
|
|
1932
1931
|
20: "5rem",
|
|
1933
1932
|
24: "6rem",
|
|
1934
1933
|
28: "7rem",
|
|
1935
1934
|
32: "8rem"
|
|
1936
|
-
},
|
|
1935
|
+
}, y1 = {
|
|
1937
1936
|
aside: "268px",
|
|
1938
1937
|
container: "724px",
|
|
1939
1938
|
page: "1200px"
|
|
1940
|
-
},
|
|
1939
|
+
}, b1 = {
|
|
1941
1940
|
"xs-max": {
|
|
1942
1941
|
max: "639px"
|
|
1943
1942
|
},
|
|
@@ -1966,9 +1965,9 @@ const G = {
|
|
|
1966
1965
|
fontSize: M1,
|
|
1967
1966
|
gridTemplateColumns: g1,
|
|
1968
1967
|
keyframes: v1,
|
|
1969
|
-
margin:
|
|
1970
|
-
maxWidth:
|
|
1971
|
-
screens:
|
|
1968
|
+
margin: A1,
|
|
1969
|
+
maxWidth: y1,
|
|
1970
|
+
screens: b1,
|
|
1972
1971
|
transitionDuration: x1,
|
|
1973
1972
|
transformOrigin: w1
|
|
1974
1973
|
}, T = {
|
|
@@ -2151,18 +2150,18 @@ const G = {
|
|
|
2151
2150
|
weightProps: i = null
|
|
2152
2151
|
}) => {
|
|
2153
2152
|
const l = {};
|
|
2154
|
-
Object.entries(s).forEach(([o,
|
|
2155
|
-
const
|
|
2156
|
-
"font-size":
|
|
2153
|
+
Object.entries(s).forEach(([o, u]) => {
|
|
2154
|
+
const p = {
|
|
2155
|
+
"font-size": u,
|
|
2157
2156
|
...a
|
|
2158
|
-
}, V = `.${e(`${t}-${o}`)}`, M = n ? n({ sizeKey: o, sizeValue:
|
|
2157
|
+
}, V = `.${e(`${t}-${o}`)}`, M = n ? n({ sizeKey: o, sizeValue: u }) : {};
|
|
2159
2158
|
l[V] = {
|
|
2160
|
-
...
|
|
2159
|
+
...p,
|
|
2161
2160
|
...M
|
|
2162
2161
|
}, Object.entries(r).forEach(([f, v]) => {
|
|
2163
|
-
const
|
|
2164
|
-
l[
|
|
2165
|
-
...
|
|
2162
|
+
const y = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: v }) : {};
|
|
2163
|
+
l[y] = {
|
|
2164
|
+
...p,
|
|
2166
2165
|
"font-weight": v,
|
|
2167
2166
|
...h
|
|
2168
2167
|
};
|
|
@@ -2309,11 +2308,11 @@ function d2(d, e = []) {
|
|
|
2309
2308
|
function h2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2310
2309
|
let s = !0;
|
|
2311
2310
|
for (const [r, i] of t.entries()) {
|
|
2312
|
-
const l = e.querySelector(`[name="${r}"]`), o = a[r],
|
|
2313
|
-
o.forEach((
|
|
2314
|
-
|
|
2315
|
-
}),
|
|
2316
|
-
|
|
2311
|
+
const l = e.querySelector(`[name="${r}"]`), o = a[r], u = [];
|
|
2312
|
+
o.forEach((p) => {
|
|
2313
|
+
p.isValid(i) || u.push(p.message);
|
|
2314
|
+
}), u.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (p) => {
|
|
2315
|
+
p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
2317
2316
|
}));
|
|
2318
2317
|
}
|
|
2319
2318
|
return s;
|
|
@@ -2467,12 +2466,12 @@ class H {
|
|
|
2467
2466
|
const {
|
|
2468
2467
|
isHeads: l = null,
|
|
2469
2468
|
isLoggedIn: o = null,
|
|
2470
|
-
url:
|
|
2471
|
-
ip:
|
|
2469
|
+
url: u = null,
|
|
2470
|
+
ip: p = null,
|
|
2472
2471
|
sessionId: V = null,
|
|
2473
2472
|
user: M = null
|
|
2474
2473
|
} = (window == null ? void 0 : window.options) ?? {}, { id: f = null } = M ?? {};
|
|
2475
|
-
t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url =
|
|
2474
|
+
t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url = u, await H.createData(
|
|
2476
2475
|
"/api/event",
|
|
2477
2476
|
{
|
|
2478
2477
|
payload: {
|
|
@@ -2481,7 +2480,7 @@ class H {
|
|
|
2481
2480
|
name: n,
|
|
2482
2481
|
userId: s ?? f,
|
|
2483
2482
|
url: window.location.href,
|
|
2484
|
-
ip:
|
|
2483
|
+
ip: p,
|
|
2485
2484
|
sessionId: V,
|
|
2486
2485
|
siteMarker: r ?? i
|
|
2487
2486
|
}
|
|
@@ -2577,8 +2576,8 @@ class H {
|
|
|
2577
2576
|
try {
|
|
2578
2577
|
const l = await fetch(i, { method: "GET" });
|
|
2579
2578
|
if (t === !0) {
|
|
2580
|
-
const
|
|
2581
|
-
return
|
|
2579
|
+
const u = await l.text();
|
|
2580
|
+
return u ? u.replace("__next", "") : null;
|
|
2582
2581
|
}
|
|
2583
2582
|
const o = l.headers.get("content-type");
|
|
2584
2583
|
return o && o.indexOf("application/json") !== -1 ? l.json() : null;
|
|
@@ -2661,7 +2660,7 @@ class H {
|
|
|
2661
2660
|
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2662
2661
|
return i;
|
|
2663
2662
|
try {
|
|
2664
|
-
const
|
|
2663
|
+
const p = await (await fetch("/api/client-headers")).json(), V = (p == null ? void 0 : p.sessionId) ?? "noSessionId", M = (p == null ? void 0 : p.ip) ?? null, f = e * 1e3;
|
|
2665
2664
|
return localStorage.setItem(
|
|
2666
2665
|
l,
|
|
2667
2666
|
JSON.stringify({
|
|
@@ -2670,8 +2669,8 @@ class H {
|
|
|
2670
2669
|
expire: (/* @__PURE__ */ new Date()).getTime() + f
|
|
2671
2670
|
})
|
|
2672
2671
|
), { tolken: V, ip: M, userAgent: a, platform: r };
|
|
2673
|
-
} catch (
|
|
2674
|
-
console.error("getHeaders",
|
|
2672
|
+
} catch (u) {
|
|
2673
|
+
console.error("getHeaders", u);
|
|
2675
2674
|
}
|
|
2676
2675
|
return i;
|
|
2677
2676
|
}
|
|
@@ -2686,11 +2685,11 @@ class H {
|
|
|
2686
2685
|
return await H.fetchData("/api/client?query=" + r);
|
|
2687
2686
|
}
|
|
2688
2687
|
static getReportUrl(e, t = null) {
|
|
2689
|
-
var l, o,
|
|
2690
|
-
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 = ((
|
|
2688
|
+
var l, o, u;
|
|
2689
|
+
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;
|
|
2691
2690
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2692
|
-
const i = [r, "-piq", t].filter((
|
|
2693
|
-
return "/" + [a, n, s].filter((
|
|
2691
|
+
const i = [r, "-piq", t].filter((p) => p).join("");
|
|
2692
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
|
|
2694
2693
|
}
|
|
2695
2694
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2696
2695
|
try {
|
|
@@ -2900,7 +2899,7 @@ class H {
|
|
|
2900
2899
|
selfClose: r = !1,
|
|
2901
2900
|
target: i = null
|
|
2902
2901
|
}) {
|
|
2903
|
-
const l = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`),
|
|
2902
|
+
const l = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), u = r ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
|
|
2904
2903
|
"closing",
|
|
2905
2904
|
"closed",
|
|
2906
2905
|
"opening",
|
|
@@ -2908,23 +2907,23 @@ class H {
|
|
|
2908
2907
|
"outside",
|
|
2909
2908
|
"removed"
|
|
2910
2909
|
].reduce(
|
|
2911
|
-
(h,
|
|
2910
|
+
(h, b) => ({
|
|
2912
2911
|
...h,
|
|
2913
|
-
[
|
|
2912
|
+
[b]: new Event(b)
|
|
2914
2913
|
}),
|
|
2915
2914
|
{}
|
|
2916
|
-
), V = new MutationObserver((h,
|
|
2915
|
+
), V = new MutationObserver((h, b) => {
|
|
2917
2916
|
h.forEach(async (w) => {
|
|
2918
2917
|
if (w.attributeName === "open") {
|
|
2919
2918
|
const C = w.target;
|
|
2920
2919
|
if (!(C == null ? void 0 : C.hasAttribute("open"))) return;
|
|
2921
|
-
C == null || C.removeAttribute("inert"), C == null || C.dispatchEvent(
|
|
2920
|
+
C == null || C.removeAttribute("inert"), C == null || C.dispatchEvent(p.opening), C && await y(C), C == null || C.dispatchEvent(p.opened);
|
|
2922
2921
|
}
|
|
2923
2922
|
});
|
|
2924
|
-
}), M = new MutationObserver((h,
|
|
2923
|
+
}), M = new MutationObserver((h, b) => {
|
|
2925
2924
|
h.forEach((w) => {
|
|
2926
2925
|
w.removedNodes.forEach((C) => {
|
|
2927
|
-
C.nodeName === "DIALOG" && (C.removeEventListener("click", v), C.removeEventListener("close", f), C.dispatchEvent(
|
|
2926
|
+
C.nodeName === "DIALOG" && (C.removeEventListener("click", v), C.removeEventListener("close", f), C.dispatchEvent(p.removed), M == null || M.disconnect(), V == null || V.disconnect());
|
|
2928
2927
|
});
|
|
2929
2928
|
});
|
|
2930
2929
|
});
|
|
@@ -2936,11 +2935,11 @@ class H {
|
|
|
2936
2935
|
childList: !0
|
|
2937
2936
|
}));
|
|
2938
2937
|
const f = async ({ target: h }) => {
|
|
2939
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(
|
|
2938
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2940
2939
|
}, v = async ({ target: h }) => {
|
|
2941
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(
|
|
2942
|
-
},
|
|
2943
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
2940
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), o == null || o.close("outside"));
|
|
2941
|
+
}, y = (h) => Promise.allSettled(
|
|
2942
|
+
h == null ? void 0 : h.getAnimations().map((b) => b == null ? void 0 : b.finished)
|
|
2944
2943
|
);
|
|
2945
2944
|
return !e && (o == null || o.addEventListener("click", v)), o == null || o.addEventListener("close", async (h) => {
|
|
2946
2945
|
await f({ target: h.target }), a && a(h, o);
|
|
@@ -2951,11 +2950,11 @@ class H {
|
|
|
2951
2950
|
})), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2952
2951
|
n(h, o);
|
|
2953
2952
|
})), l == null || l.forEach((h) => {
|
|
2954
|
-
h.addEventListener("click", (
|
|
2955
|
-
o == null || o.showModal(), s && s(
|
|
2953
|
+
h.addEventListener("click", (b) => {
|
|
2954
|
+
o == null || o.showModal(), s && s(b, o);
|
|
2956
2955
|
});
|
|
2957
|
-
}),
|
|
2958
|
-
h.addEventListener("click", async (
|
|
2956
|
+
}), u == null || u.forEach((h) => {
|
|
2957
|
+
h.addEventListener("click", async (b) => {
|
|
2959
2958
|
o == null || o.close("close");
|
|
2960
2959
|
});
|
|
2961
2960
|
}), {
|
|
@@ -3102,13 +3101,13 @@ class H {
|
|
|
3102
3101
|
max: i = null,
|
|
3103
3102
|
city: l = null,
|
|
3104
3103
|
state: o = null,
|
|
3105
|
-
vin:
|
|
3106
|
-
license:
|
|
3104
|
+
vin: u = null,
|
|
3105
|
+
license: p = null,
|
|
3107
3106
|
token: V = null,
|
|
3108
3107
|
phone: M = null
|
|
3109
|
-
} = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18",
|
|
3108
|
+
} = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18", y = i && i !== "" && r !== "99";
|
|
3110
3109
|
let h = [];
|
|
3111
|
-
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)), v &&
|
|
3110
|
+
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)), v && y ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (v && h.push("min=" + r), y && h.push("max=" + i)), M && M !== "" && h.push("phone=" + M), 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("&");
|
|
3112
3111
|
}
|
|
3113
3112
|
static padTo2Digits(e) {
|
|
3114
3113
|
return e.toString().padStart(2, "0");
|
|
@@ -3126,8 +3125,8 @@ class H {
|
|
|
3126
3125
|
useLocation: i = !0,
|
|
3127
3126
|
state: l = "",
|
|
3128
3127
|
useGoogle: o = !1,
|
|
3129
|
-
useGoogleOverride:
|
|
3130
|
-
useAmazonOverride:
|
|
3128
|
+
useGoogleOverride: u = !1,
|
|
3129
|
+
useAmazonOverride: p = !1,
|
|
3131
3130
|
isSandboxAccount: V = !1,
|
|
3132
3131
|
isOptOutSearch: M = !1
|
|
3133
3132
|
} = t ?? {}, { tolken: f = null, ip: v = null } = await H.getHeaders(), h = [
|
|
@@ -3138,13 +3137,13 @@ class H {
|
|
|
3138
3137
|
"useCityStateSearch=" + s,
|
|
3139
3138
|
"useLocation=" + i,
|
|
3140
3139
|
"useGoogle=" + o,
|
|
3141
|
-
"useGoogleOverride=" +
|
|
3142
|
-
"useAmazonOverride=" +
|
|
3140
|
+
"useGoogleOverride=" + u,
|
|
3141
|
+
"useAmazonOverride=" + p,
|
|
3143
3142
|
"isSandboxAccount=" + V,
|
|
3144
3143
|
"isOptOutSearch=" + M
|
|
3145
3144
|
];
|
|
3146
3145
|
l && l !== "" && !s && h.push("state=" + l), f && f !== "" && h.push("tolken=" + f), v && v !== "" && h.push("ip=" + v);
|
|
3147
|
-
const
|
|
3146
|
+
const b = h.join("&"), C = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
|
|
3148
3147
|
return await H.fetchData(C);
|
|
3149
3148
|
}
|
|
3150
3149
|
static removeElements(e) {
|
|
@@ -3206,9 +3205,9 @@ class H {
|
|
|
3206
3205
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3207
3206
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3208
3207
|
try {
|
|
3209
|
-
const r = e.map(({ fileName: o, initFunctionName:
|
|
3210
|
-
i.forEach((o,
|
|
3211
|
-
o && typeof o[e[
|
|
3208
|
+
const r = e.map(({ fileName: o, initFunctionName: u }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(r), l = [];
|
|
3209
|
+
i.forEach((o, u) => {
|
|
3210
|
+
o && typeof o[e[u].initFunctionName] == "function" ? l.push(o[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
|
|
3212
3211
|
}), l.length > 0 && await Promise.all(l);
|
|
3213
3212
|
} catch (r) {
|
|
3214
3213
|
console.error("Failed to load one or more search modules:", r);
|
|
@@ -3323,9 +3322,9 @@ export {
|
|
|
3323
3322
|
J1 as Skeleton,
|
|
3324
3323
|
Y1 as Slider,
|
|
3325
3324
|
n2 as Spacer,
|
|
3326
|
-
|
|
3325
|
+
X1 as Spinner,
|
|
3327
3326
|
s2 as StackedListItem,
|
|
3328
|
-
|
|
3327
|
+
_1 as Stars,
|
|
3329
3328
|
h1 as TextArea,
|
|
3330
3329
|
D as Textbox,
|
|
3331
3330
|
K1 as Toggle,
|