@vehiclehistory/property-lib 0.0.996 → 0.0.997
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 +71 -70
- 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,4 +1,4 @@
|
|
|
1
|
-
import { jsx as c, jsxs as g, Fragment as
|
|
1
|
+
import { jsx as c, jsxs as g, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import { memo as b, useState as N, useEffect as E } from "react";
|
|
4
4
|
const G = {
|
|
@@ -562,7 +562,7 @@ const G = {
|
|
|
562
562
|
},
|
|
563
563
|
e
|
|
564
564
|
),
|
|
565
|
-
children: /* @__PURE__ */ g(
|
|
565
|
+
children: /* @__PURE__ */ g(k, { children: [
|
|
566
566
|
/* @__PURE__ */ g(
|
|
567
567
|
"button",
|
|
568
568
|
{
|
|
@@ -673,7 +673,7 @@ const G = {
|
|
|
673
673
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
674
674
|
a
|
|
675
675
|
),
|
|
676
|
-
children: t.map((V,
|
|
676
|
+
children: t.map((V, M) => /* @__PURE__ */ c("li", { children: V }, M))
|
|
677
677
|
}
|
|
678
678
|
) : "",
|
|
679
679
|
d
|
|
@@ -695,15 +695,15 @@ const G = {
|
|
|
695
695
|
mobileBackdrop: p = !1,
|
|
696
696
|
name: u = "",
|
|
697
697
|
options: V = [],
|
|
698
|
-
parentProps:
|
|
698
|
+
parentProps: M = {},
|
|
699
699
|
placeholder: f = "",
|
|
700
700
|
props: v = {},
|
|
701
701
|
rightIcon: A = "",
|
|
702
702
|
required: h = !1,
|
|
703
703
|
showSearchIcon: y = !0,
|
|
704
704
|
showRightIcon: w = !1,
|
|
705
|
-
size:
|
|
706
|
-
styles:
|
|
705
|
+
size: C = "medium",
|
|
706
|
+
styles: S = null,
|
|
707
707
|
title: j = "",
|
|
708
708
|
type: P,
|
|
709
709
|
useGoogle: R = !1,
|
|
@@ -718,8 +718,8 @@ const G = {
|
|
|
718
718
|
"data-search-type": P,
|
|
719
719
|
"data-use-google": R,
|
|
720
720
|
className: m("Autocomplete", e),
|
|
721
|
-
style:
|
|
722
|
-
...
|
|
721
|
+
style: S ? { ...S } : null,
|
|
722
|
+
...M,
|
|
723
723
|
children: [
|
|
724
724
|
y && /* @__PURE__ */ g(
|
|
725
725
|
"span",
|
|
@@ -728,8 +728,8 @@ const G = {
|
|
|
728
728
|
"search-icon-left absolute inset-y-0 left-0 flex items-center ",
|
|
729
729
|
{
|
|
730
730
|
"pointer-events-none": p,
|
|
731
|
-
"pl-2":
|
|
732
|
-
"pl-4":
|
|
731
|
+
"pl-2": C === "medium",
|
|
732
|
+
"pl-4": C === "large"
|
|
733
733
|
}
|
|
734
734
|
),
|
|
735
735
|
children: [
|
|
@@ -738,7 +738,7 @@ const G = {
|
|
|
738
738
|
{
|
|
739
739
|
className: "home-search select-none text-gray-500",
|
|
740
740
|
name: i,
|
|
741
|
-
size:
|
|
741
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
742
742
|
viewBox: "0 0 24 24",
|
|
743
743
|
...l
|
|
744
744
|
}
|
|
@@ -748,7 +748,7 @@ const G = {
|
|
|
748
748
|
{
|
|
749
749
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
750
750
|
name: "arrowLeft",
|
|
751
|
-
size:
|
|
751
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
752
752
|
viewBox: "0 0 24 24"
|
|
753
753
|
}
|
|
754
754
|
)
|
|
@@ -763,11 +763,11 @@ const G = {
|
|
|
763
763
|
className: m(
|
|
764
764
|
"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",
|
|
765
765
|
{
|
|
766
|
-
"pl-8": y === !0 &&
|
|
767
|
-
"pl-10": y === !0 &&
|
|
768
|
-
"px-3 h-10":
|
|
769
|
-
"px-4 h-12":
|
|
770
|
-
"px-5 h-[60px] sm:!text-base":
|
|
766
|
+
"pl-8": y === !0 && C === "medium",
|
|
767
|
+
"pl-10": y === !0 && C === "large",
|
|
768
|
+
"px-3 h-10": C === "medium",
|
|
769
|
+
"px-4 h-12": C === "large",
|
|
770
|
+
"px-5 h-[60px] sm:!text-base": C === "xLarge",
|
|
771
771
|
peer: n
|
|
772
772
|
},
|
|
773
773
|
r
|
|
@@ -789,9 +789,9 @@ const G = {
|
|
|
789
789
|
"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",
|
|
790
790
|
{
|
|
791
791
|
"!left-7": y === !0,
|
|
792
|
-
"left-2":
|
|
793
|
-
"left-3":
|
|
794
|
-
"left-4":
|
|
792
|
+
"left-2": C === "medium",
|
|
793
|
+
"left-3": C === "large",
|
|
794
|
+
"left-4": C === "xLarge"
|
|
795
795
|
}
|
|
796
796
|
),
|
|
797
797
|
children: n
|
|
@@ -853,7 +853,7 @@ const G = {
|
|
|
853
853
|
"data-title": j,
|
|
854
854
|
"aria-labelledby": "Label",
|
|
855
855
|
"aria-activedescendant": "search-item-0",
|
|
856
|
-
children: V.length > 0 ? V.map((
|
|
856
|
+
children: V.length > 0 ? V.map((z, Z) => /* @__PURE__ */ c(
|
|
857
857
|
"li",
|
|
858
858
|
{
|
|
859
859
|
id: `search-item-${Z}`,
|
|
@@ -861,7 +861,7 @@ const G = {
|
|
|
861
861
|
className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
|
|
862
862
|
"aria-selected": Z === 0,
|
|
863
863
|
role: "option",
|
|
864
|
-
children: (
|
|
864
|
+
children: (z == null ? void 0 : z.name) || z
|
|
865
865
|
},
|
|
866
866
|
`search-item-${Z}`
|
|
867
867
|
)) : ""
|
|
@@ -906,7 +906,7 @@ const G = {
|
|
|
906
906
|
rightIconProps: p = {},
|
|
907
907
|
rounded: u = !1,
|
|
908
908
|
size: V = "md",
|
|
909
|
-
type:
|
|
909
|
+
type: M = "button",
|
|
910
910
|
uppercase: f = !1,
|
|
911
911
|
variation: v = "primary"
|
|
912
912
|
}) => {
|
|
@@ -914,7 +914,7 @@ const G = {
|
|
|
914
914
|
return /* @__PURE__ */ g(
|
|
915
915
|
A,
|
|
916
916
|
{
|
|
917
|
-
type: A !== "a" ?
|
|
917
|
+
type: A !== "a" ? M : null,
|
|
918
918
|
className: m(
|
|
919
919
|
"button",
|
|
920
920
|
{
|
|
@@ -999,7 +999,7 @@ const G = {
|
|
|
999
999
|
);
|
|
1000
1000
|
}, $1 = b(e1), t1 = ({
|
|
1001
1001
|
activator: d,
|
|
1002
|
-
id: e
|
|
1002
|
+
id: e,
|
|
1003
1003
|
children: t,
|
|
1004
1004
|
className: a,
|
|
1005
1005
|
contentClass: n,
|
|
@@ -1011,39 +1011,41 @@ const G = {
|
|
|
1011
1011
|
headerClass: p,
|
|
1012
1012
|
hideClose: u = !1,
|
|
1013
1013
|
iconSize: V = "medium",
|
|
1014
|
-
preventPageScroll:
|
|
1014
|
+
preventPageScroll: M = !0,
|
|
1015
1015
|
sheet: f = !1,
|
|
1016
1016
|
sheetDirection: v = "right",
|
|
1017
1017
|
stickyHeader: A = !1,
|
|
1018
1018
|
title: h = "",
|
|
1019
1019
|
titleClass: y,
|
|
1020
|
-
|
|
1020
|
+
variation: w = "primary",
|
|
1021
|
+
useFormMethod: C = !0
|
|
1021
1022
|
}) => {
|
|
1022
|
-
const
|
|
1023
|
-
return /* @__PURE__ */ g(
|
|
1023
|
+
const S = C ? "form" : "div";
|
|
1024
|
+
return /* @__PURE__ */ g(k, { children: [
|
|
1024
1025
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
1025
1026
|
/* @__PURE__ */ c(
|
|
1026
1027
|
"dialog",
|
|
1027
1028
|
{
|
|
1028
1029
|
inert: "",
|
|
1029
1030
|
...i ? { closedby: "none" } : null,
|
|
1030
|
-
id: `${e}-dialog
|
|
1031
|
+
id: e ? `${e}-dialog` : null,
|
|
1031
1032
|
className: m(
|
|
1032
1033
|
"dialog",
|
|
1033
1034
|
{
|
|
1035
|
+
[`dialog-${w}`]: w,
|
|
1034
1036
|
"dialog-full-mobile": o,
|
|
1035
1037
|
"dialog-sheet": f,
|
|
1036
1038
|
dark: r,
|
|
1037
1039
|
"dialog-sheet--right": v === "right" && f,
|
|
1038
|
-
"prevent-scroll":
|
|
1040
|
+
"prevent-scroll": M
|
|
1039
1041
|
},
|
|
1040
1042
|
a
|
|
1041
1043
|
),
|
|
1042
1044
|
children: /* @__PURE__ */ g(
|
|
1043
|
-
|
|
1045
|
+
S,
|
|
1044
1046
|
{
|
|
1045
1047
|
className: "dialog-container",
|
|
1046
|
-
method:
|
|
1048
|
+
method: C ? "dialog" : null,
|
|
1047
1049
|
children: [
|
|
1048
1050
|
/* @__PURE__ */ g(
|
|
1049
1051
|
"header",
|
|
@@ -1058,7 +1060,7 @@ const G = {
|
|
|
1058
1060
|
p
|
|
1059
1061
|
),
|
|
1060
1062
|
children: [
|
|
1061
|
-
h && /* @__PURE__ */ c("h3", {
|
|
1063
|
+
h && /* @__PURE__ */ c("h3", { className: y, children: h }),
|
|
1062
1064
|
!u && /* @__PURE__ */ c(
|
|
1063
1065
|
"button",
|
|
1064
1066
|
{
|
|
@@ -1083,7 +1085,6 @@ const G = {
|
|
|
1083
1085
|
/* @__PURE__ */ c(
|
|
1084
1086
|
"div",
|
|
1085
1087
|
{
|
|
1086
|
-
id: `${e}-dialog-content`,
|
|
1087
1088
|
className: m(
|
|
1088
1089
|
"dialog-content",
|
|
1089
1090
|
{
|
|
@@ -1094,7 +1095,7 @@ const G = {
|
|
|
1094
1095
|
children: t
|
|
1095
1096
|
}
|
|
1096
1097
|
),
|
|
1097
|
-
l && /* @__PURE__ */ c("footer", {
|
|
1098
|
+
l && /* @__PURE__ */ c("footer", { className: "dialog-footer", children: l })
|
|
1098
1099
|
]
|
|
1099
1100
|
}
|
|
1100
1101
|
)
|
|
@@ -1125,16 +1126,16 @@ const G = {
|
|
|
1125
1126
|
);
|
|
1126
1127
|
if (!o) return;
|
|
1127
1128
|
let p, u, V = !1;
|
|
1128
|
-
function
|
|
1129
|
+
function M(f) {
|
|
1129
1130
|
p === void 0 && (p = f);
|
|
1130
1131
|
const v = f - p;
|
|
1131
1132
|
if (u !== f) {
|
|
1132
1133
|
const A = v / s * 101;
|
|
1133
1134
|
o.style.width = `${A}%`, e && e({ elapsed: v, percentage: A }), A >= 101 && (l && l(), V = !0, window.cancelAnimationFrame(f));
|
|
1134
1135
|
}
|
|
1135
|
-
v < s && (u = f, V || window.requestAnimationFrame(
|
|
1136
|
+
v < s && (u = f, V || window.requestAnimationFrame(M));
|
|
1136
1137
|
}
|
|
1137
|
-
window.requestAnimationFrame(
|
|
1138
|
+
window.requestAnimationFrame(M);
|
|
1138
1139
|
}
|
|
1139
1140
|
return E(() => {
|
|
1140
1141
|
i({ cb: d });
|
|
@@ -1165,7 +1166,7 @@ const G = {
|
|
|
1165
1166
|
disabled: r = !1,
|
|
1166
1167
|
options: i = {},
|
|
1167
1168
|
trigger: l = "click"
|
|
1168
|
-
}) => /* @__PURE__ */ g(
|
|
1169
|
+
}) => /* @__PURE__ */ g(k, { children: [
|
|
1169
1170
|
/* @__PURE__ */ c(
|
|
1170
1171
|
"div",
|
|
1171
1172
|
{
|
|
@@ -1219,9 +1220,9 @@ const G = {
|
|
|
1219
1220
|
rounded: l = !0,
|
|
1220
1221
|
showLabel: o = !1
|
|
1221
1222
|
}) => {
|
|
1222
|
-
const u = ((V,
|
|
1223
|
+
const u = ((V, M) => {
|
|
1223
1224
|
if (V) {
|
|
1224
|
-
const f = Number(
|
|
1225
|
+
const f = Number(M) / V;
|
|
1225
1226
|
return f > 1 ? 100 : f * 100;
|
|
1226
1227
|
}
|
|
1227
1228
|
return n;
|
|
@@ -1317,7 +1318,7 @@ const G = {
|
|
|
1317
1318
|
variation: u = "primary",
|
|
1318
1319
|
value: V
|
|
1319
1320
|
}) => {
|
|
1320
|
-
const
|
|
1321
|
+
const M = i ? { defaultValue: "" } : {};
|
|
1321
1322
|
return /* @__PURE__ */ g(
|
|
1322
1323
|
"label",
|
|
1323
1324
|
{
|
|
@@ -1341,7 +1342,7 @@ const G = {
|
|
|
1341
1342
|
id: a,
|
|
1342
1343
|
name: s,
|
|
1343
1344
|
value: V,
|
|
1344
|
-
...
|
|
1345
|
+
...M,
|
|
1345
1346
|
...l,
|
|
1346
1347
|
children: [
|
|
1347
1348
|
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
@@ -1494,11 +1495,11 @@ const G = {
|
|
|
1494
1495
|
styles: p = null,
|
|
1495
1496
|
type: u = "text",
|
|
1496
1497
|
value: V,
|
|
1497
|
-
variation:
|
|
1498
|
+
variation: M = "primary"
|
|
1498
1499
|
}) => /* @__PURE__ */ g(
|
|
1499
1500
|
"div",
|
|
1500
1501
|
{
|
|
1501
|
-
className: m("relative textbox",
|
|
1502
|
+
className: m("relative textbox", M, d),
|
|
1502
1503
|
style: p ? { ...p } : null,
|
|
1503
1504
|
children: [
|
|
1504
1505
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
@@ -1528,9 +1529,9 @@ const G = {
|
|
|
1528
1529
|
},
|
|
1529
1530
|
o.inputClass ?? "",
|
|
1530
1531
|
r,
|
|
1531
|
-
{ "placeholder:!text-black-900": t &&
|
|
1532
|
+
{ "placeholder:!text-black-900": t && M === "blue" },
|
|
1532
1533
|
{
|
|
1533
|
-
"!bg-red-500/10 placeholder:!text-red-700": t &&
|
|
1534
|
+
"!bg-red-500/10 placeholder:!text-red-700": t && M !== "blue"
|
|
1534
1535
|
}
|
|
1535
1536
|
),
|
|
1536
1537
|
...o
|
|
@@ -1554,7 +1555,7 @@ const G = {
|
|
|
1554
1555
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1555
1556
|
]
|
|
1556
1557
|
}
|
|
1557
|
-
), D = b(u1), p1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(
|
|
1558
|
+
), D = b(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: [
|
|
1558
1559
|
/* @__PURE__ */ c(
|
|
1559
1560
|
"input",
|
|
1560
1561
|
{
|
|
@@ -1585,7 +1586,7 @@ const G = {
|
|
|
1585
1586
|
titleClass: s,
|
|
1586
1587
|
uppercase: r = !0
|
|
1587
1588
|
}) => {
|
|
1588
|
-
const i = a || /* @__PURE__ */ g(
|
|
1589
|
+
const i = a || /* @__PURE__ */ g(k, { children: [
|
|
1589
1590
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1590
1591
|
" ",
|
|
1591
1592
|
/* @__PURE__ */ c(
|
|
@@ -2148,10 +2149,10 @@ const G = {
|
|
|
2148
2149
|
const u = {
|
|
2149
2150
|
"font-size": p,
|
|
2150
2151
|
...a
|
|
2151
|
-
}, V = `.${e(`${t}-${o}`)}`,
|
|
2152
|
+
}, V = `.${e(`${t}-${o}`)}`, M = n ? n({ sizeKey: o, sizeValue: p }) : {};
|
|
2152
2153
|
l[V] = {
|
|
2153
2154
|
...u,
|
|
2154
|
-
...
|
|
2155
|
+
...M
|
|
2155
2156
|
}, Object.entries(r).forEach(([f, v]) => {
|
|
2156
2157
|
const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: v }) : {};
|
|
2157
2158
|
l[A] = {
|
|
@@ -2463,8 +2464,8 @@ class H {
|
|
|
2463
2464
|
url: p = null,
|
|
2464
2465
|
ip: u = null,
|
|
2465
2466
|
sessionId: V = null,
|
|
2466
|
-
user:
|
|
2467
|
-
} = (window == null ? void 0 : window.options) ?? {}, { id: f = null } =
|
|
2467
|
+
user: M = null
|
|
2468
|
+
} = (window == null ? void 0 : window.options) ?? {}, { id: f = null } = M ?? {};
|
|
2468
2469
|
t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url = p, await H.createData(
|
|
2469
2470
|
"/api/event",
|
|
2470
2471
|
{
|
|
@@ -2654,15 +2655,15 @@ class H {
|
|
|
2654
2655
|
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2655
2656
|
return i;
|
|
2656
2657
|
try {
|
|
2657
|
-
const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId",
|
|
2658
|
+
const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", M = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
|
|
2658
2659
|
return localStorage.setItem(
|
|
2659
2660
|
l,
|
|
2660
2661
|
JSON.stringify({
|
|
2661
2662
|
tolken: V,
|
|
2662
|
-
ip:
|
|
2663
|
+
ip: M,
|
|
2663
2664
|
expire: (/* @__PURE__ */ new Date()).getTime() + f
|
|
2664
2665
|
})
|
|
2665
|
-
), { tolken: V, ip:
|
|
2666
|
+
), { tolken: V, ip: M, userAgent: a, platform: r };
|
|
2666
2667
|
} catch (p) {
|
|
2667
2668
|
console.error("getHeaders", p);
|
|
2668
2669
|
}
|
|
@@ -2909,21 +2910,21 @@ class H {
|
|
|
2909
2910
|
), V = new MutationObserver((h, y) => {
|
|
2910
2911
|
h.forEach(async (w) => {
|
|
2911
2912
|
if (w.attributeName === "open") {
|
|
2912
|
-
const
|
|
2913
|
-
if (!(
|
|
2914
|
-
|
|
2913
|
+
const C = w.target;
|
|
2914
|
+
if (!(C == null ? void 0 : C.hasAttribute("open"))) return;
|
|
2915
|
+
C == null || C.removeAttribute("inert"), C == null || C.dispatchEvent(u.opening), C && await A(C), C == null || C.dispatchEvent(u.opened);
|
|
2915
2916
|
}
|
|
2916
2917
|
});
|
|
2917
|
-
}),
|
|
2918
|
+
}), M = new MutationObserver((h, y) => {
|
|
2918
2919
|
h.forEach((w) => {
|
|
2919
|
-
w.removedNodes.forEach((
|
|
2920
|
-
|
|
2920
|
+
w.removedNodes.forEach((C) => {
|
|
2921
|
+
C.nodeName === "DIALOG" && (C.removeEventListener("click", v), C.removeEventListener("close", f), C.dispatchEvent(u.removed), M == null || M.disconnect(), V == null || V.disconnect());
|
|
2921
2922
|
});
|
|
2922
2923
|
});
|
|
2923
2924
|
});
|
|
2924
2925
|
o && (V.observe(o, {
|
|
2925
2926
|
attributes: !0
|
|
2926
|
-
}),
|
|
2927
|
+
}), M.observe(document.body, {
|
|
2927
2928
|
attributes: !1,
|
|
2928
2929
|
subtree: !1,
|
|
2929
2930
|
childList: !0
|
|
@@ -3098,10 +3099,10 @@ class H {
|
|
|
3098
3099
|
vin: p = null,
|
|
3099
3100
|
license: u = null,
|
|
3100
3101
|
token: V = null,
|
|
3101
|
-
phone:
|
|
3102
|
+
phone: M = null
|
|
3102
3103
|
} = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
|
|
3103
3104
|
let h = [];
|
|
3104
|
-
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 && A ? 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), A && h.push("max=" + i)),
|
|
3105
|
+
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 && A ? 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), A && h.push("max=" + i)), M && M !== "" && h.push("phone=" + M), l && l !== "" && h.push("city=" + l), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3105
3106
|
}
|
|
3106
3107
|
static padTo2Digits(e) {
|
|
3107
3108
|
return e.toString().padStart(2, "0");
|
|
@@ -3122,7 +3123,7 @@ class H {
|
|
|
3122
3123
|
useGoogleOverride: p = !1,
|
|
3123
3124
|
useAmazonOverride: u = !1,
|
|
3124
3125
|
isSandboxAccount: V = !1,
|
|
3125
|
-
isOptOutSearch:
|
|
3126
|
+
isOptOutSearch: M = !1
|
|
3126
3127
|
} = t ?? {}, { tolken: f = null, ip: v = null } = await H.getHeaders(), h = [
|
|
3127
3128
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3128
3129
|
"addressesOnly=" + a,
|
|
@@ -3134,11 +3135,11 @@ class H {
|
|
|
3134
3135
|
"useGoogleOverride=" + p,
|
|
3135
3136
|
"useAmazonOverride=" + u,
|
|
3136
3137
|
"isSandboxAccount=" + V,
|
|
3137
|
-
"isOptOutSearch=" +
|
|
3138
|
+
"isOptOutSearch=" + M
|
|
3138
3139
|
];
|
|
3139
3140
|
l && l !== "" && !s && h.push("state=" + l), f && f !== "" && h.push("tolken=" + f), v && v !== "" && h.push("ip=" + v);
|
|
3140
|
-
const y = h.join("&"),
|
|
3141
|
-
return await H.fetchData(
|
|
3141
|
+
const y = h.join("&"), C = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + y;
|
|
3142
|
+
return await H.fetchData(C);
|
|
3142
3143
|
}
|
|
3143
3144
|
static removeElements(e) {
|
|
3144
3145
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|