@vehiclehistory/property-lib 0.0.44 → 0.0.46
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/Autocomplete/Autocomplete.d.ts +5 -4
- package/dist/main.es.js +293 -306
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as o, jsxs as g, Fragment as
|
|
2
|
-
import { memo as x, useState as
|
|
1
|
+
import { jsx as o, jsxs as g, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { memo as x, useState as Z, useEffect as N, useRef as q } from "react";
|
|
3
3
|
import u from "classnames";
|
|
4
4
|
const j = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
@@ -480,21 +480,21 @@ const j = {
|
|
|
480
480
|
size: a = "medium",
|
|
481
481
|
viewBox: n = "0 0 20 20"
|
|
482
482
|
}) => {
|
|
483
|
-
const s = R(t), [
|
|
484
|
-
return
|
|
483
|
+
const s = R(t), [i, r] = Z(d), [l, c] = Z(s);
|
|
484
|
+
return N(() => {
|
|
485
485
|
c(s);
|
|
486
|
-
}, [s]),
|
|
487
|
-
|
|
486
|
+
}, [s]), N(() => {
|
|
487
|
+
r(d);
|
|
488
488
|
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
489
489
|
"svg",
|
|
490
490
|
{
|
|
491
491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
492
|
-
className: `${j[a]} fill-current flex-shrink-0 ${
|
|
492
|
+
className: `${j[a]} fill-current flex-shrink-0 ${i}${e ? ` ${e}` : ""}`,
|
|
493
493
|
style: { maxWidth: "4em" },
|
|
494
494
|
role: "presentation",
|
|
495
495
|
viewBox: n,
|
|
496
496
|
dangerouslySetInnerHTML: {
|
|
497
|
-
__html:
|
|
497
|
+
__html: l && l.path
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
);
|
|
@@ -505,10 +505,10 @@ const j = {
|
|
|
505
505
|
panelClass: a,
|
|
506
506
|
title: n,
|
|
507
507
|
unmount: s = !0,
|
|
508
|
-
isOpen:
|
|
508
|
+
isOpen: i = !1
|
|
509
509
|
}) => {
|
|
510
|
-
const [
|
|
511
|
-
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ g(
|
|
510
|
+
const [r, l] = Z(i);
|
|
511
|
+
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ g(S, { children: [
|
|
512
512
|
/* @__PURE__ */ g(
|
|
513
513
|
"button",
|
|
514
514
|
{
|
|
@@ -517,12 +517,12 @@ const j = {
|
|
|
517
517
|
className: u(
|
|
518
518
|
"acc-a flex w-full justify-between items-center bg-gray-50 px-4 py-2 text-left font-medium text-slate-700 border border-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75",
|
|
519
519
|
{
|
|
520
|
-
"acc-o":
|
|
520
|
+
"acc-o": r
|
|
521
521
|
}
|
|
522
522
|
),
|
|
523
523
|
title: n,
|
|
524
524
|
onClick: () => {
|
|
525
|
-
|
|
525
|
+
l(!r), t && t(!r);
|
|
526
526
|
},
|
|
527
527
|
children: [
|
|
528
528
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
@@ -537,7 +537,7 @@ const j = {
|
|
|
537
537
|
]
|
|
538
538
|
}
|
|
539
539
|
),
|
|
540
|
-
s &&
|
|
540
|
+
s && r && /* @__PURE__ */ o(
|
|
541
541
|
"div",
|
|
542
542
|
{
|
|
543
543
|
className: u(
|
|
@@ -553,7 +553,7 @@ const j = {
|
|
|
553
553
|
className: u(
|
|
554
554
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
555
555
|
a,
|
|
556
|
-
{ hidden: !
|
|
556
|
+
{ hidden: !r }
|
|
557
557
|
),
|
|
558
558
|
children: d
|
|
559
559
|
}
|
|
@@ -566,9 +566,9 @@ const j = {
|
|
|
566
566
|
title: a = "",
|
|
567
567
|
titleClass: n = "",
|
|
568
568
|
props: s = {},
|
|
569
|
-
type:
|
|
569
|
+
type: i = "error"
|
|
570
570
|
}) => {
|
|
571
|
-
const
|
|
571
|
+
const r = {
|
|
572
572
|
error: {
|
|
573
573
|
icon: "error",
|
|
574
574
|
iconColor: "text-red-500",
|
|
@@ -589,11 +589,11 @@ const j = {
|
|
|
589
589
|
iconColor: "text-yellow-500",
|
|
590
590
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
591
591
|
}
|
|
592
|
-
}, { icon:
|
|
592
|
+
}, { icon: l, iconColor: c, styles: h } = r[i];
|
|
593
593
|
return /* @__PURE__ */ o(
|
|
594
594
|
"div",
|
|
595
595
|
{
|
|
596
|
-
id:
|
|
596
|
+
id: i,
|
|
597
597
|
className: u(
|
|
598
598
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
599
599
|
h,
|
|
@@ -604,7 +604,7 @@ const j = {
|
|
|
604
604
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
605
605
|
y,
|
|
606
606
|
{
|
|
607
|
-
name:
|
|
607
|
+
name: l,
|
|
608
608
|
viewBox: "0 0 24 24",
|
|
609
609
|
className: c,
|
|
610
610
|
size: "xSmall"
|
|
@@ -619,39 +619,40 @@ const j = {
|
|
|
619
619
|
);
|
|
620
620
|
}, k1 = x(U), G = ({
|
|
621
621
|
autoFocus: d = !1,
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
className: e = "",
|
|
623
|
+
dataSearch: t = "container",
|
|
624
624
|
defaultValue: a = "",
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
625
|
+
floatingLabel: n = "",
|
|
626
|
+
id: s = "",
|
|
627
|
+
inputClass: i = "",
|
|
628
|
+
leftIcon: r = "homeSearch",
|
|
629
|
+
mobileBackdrop: l = !1,
|
|
630
|
+
name: c = "",
|
|
631
|
+
options: h = [],
|
|
632
|
+
placeholder: p = "",
|
|
633
|
+
props: f = {},
|
|
634
|
+
required: M = !1,
|
|
635
|
+
showSearchIcon: b = !0,
|
|
636
636
|
size: H = "medium",
|
|
637
637
|
styles: m = null,
|
|
638
|
-
title: V = ""
|
|
638
|
+
title: V = "",
|
|
639
|
+
type: w
|
|
639
640
|
}) => /* @__PURE__ */ g(
|
|
640
641
|
"div",
|
|
641
642
|
{
|
|
642
|
-
id:
|
|
643
|
-
"data-search":
|
|
644
|
-
"data-search-type":
|
|
645
|
-
className: u("Autocomplete",
|
|
643
|
+
id: s,
|
|
644
|
+
"data-search": t,
|
|
645
|
+
"data-search-type": w,
|
|
646
|
+
className: u("Autocomplete", e),
|
|
646
647
|
style: m ? { ...m } : null,
|
|
647
648
|
children: [
|
|
648
|
-
|
|
649
|
+
b && /* @__PURE__ */ g(
|
|
649
650
|
"span",
|
|
650
651
|
{
|
|
651
652
|
className: u(
|
|
652
653
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
653
654
|
{
|
|
654
|
-
"pointer-events-none":
|
|
655
|
+
"pointer-events-none": l
|
|
655
656
|
}
|
|
656
657
|
),
|
|
657
658
|
children: [
|
|
@@ -659,7 +660,7 @@ const j = {
|
|
|
659
660
|
y,
|
|
660
661
|
{
|
|
661
662
|
className: "home-search select-none text-gray-500",
|
|
662
|
-
name:
|
|
663
|
+
name: r,
|
|
663
664
|
size: H === "xLarge" ? "small" : "xSmall",
|
|
664
665
|
viewBox: "0 0 24 24"
|
|
665
666
|
}
|
|
@@ -684,37 +685,37 @@ const j = {
|
|
|
684
685
|
className: u(
|
|
685
686
|
"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",
|
|
686
687
|
{
|
|
687
|
-
"pl-8":
|
|
688
|
+
"pl-8": b === !0,
|
|
688
689
|
"px-3 h-10": H === "medium",
|
|
689
690
|
"px-4 h-12": H === "large",
|
|
690
691
|
"px-5 h-[60px] sm:!text-base": H === "xLarge",
|
|
691
|
-
peer:
|
|
692
|
+
peer: n
|
|
692
693
|
},
|
|
693
|
-
|
|
694
|
+
i
|
|
694
695
|
),
|
|
695
|
-
required:
|
|
696
|
+
required: M,
|
|
696
697
|
autoComplete: "off",
|
|
697
698
|
value: a,
|
|
698
|
-
placeholder: !
|
|
699
|
+
placeholder: !p && n ? " " : p,
|
|
699
700
|
type: "search",
|
|
700
|
-
name:
|
|
701
|
+
name: c || "search-input",
|
|
701
702
|
"data-id": "search-input",
|
|
702
|
-
...
|
|
703
|
+
...f
|
|
703
704
|
}
|
|
704
705
|
),
|
|
705
|
-
|
|
706
|
+
n && /* @__PURE__ */ o(
|
|
706
707
|
"label",
|
|
707
708
|
{
|
|
708
709
|
className: u(
|
|
709
710
|
"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",
|
|
710
711
|
{
|
|
711
|
-
"!left-7":
|
|
712
|
+
"!left-7": b === !0,
|
|
712
713
|
"left-2": H === "medium",
|
|
713
714
|
"left-3": H === "large",
|
|
714
715
|
"left-4": H === "xLarge"
|
|
715
716
|
}
|
|
716
717
|
),
|
|
717
|
-
children:
|
|
718
|
+
children: n
|
|
718
719
|
}
|
|
719
720
|
),
|
|
720
721
|
/* @__PURE__ */ o(
|
|
@@ -764,17 +765,17 @@ const j = {
|
|
|
764
765
|
"data-title": V,
|
|
765
766
|
"aria-labelledby": "Label",
|
|
766
767
|
"aria-activedescendant": "search-item-0",
|
|
767
|
-
children:
|
|
768
|
+
children: h.length > 0 ? h.map((v, k) => /* @__PURE__ */ o(
|
|
768
769
|
"li",
|
|
769
770
|
{
|
|
770
|
-
id: `search-item-${
|
|
771
|
+
id: `search-item-${k}`,
|
|
771
772
|
tabIndex: -1,
|
|
772
773
|
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",
|
|
773
|
-
"aria-selected":
|
|
774
|
+
"aria-selected": k === 0,
|
|
774
775
|
role: "option",
|
|
775
|
-
children: (
|
|
776
|
+
children: (v == null ? void 0 : v.name) || v
|
|
776
777
|
},
|
|
777
|
-
`search-item-${
|
|
778
|
+
`search-item-${k}`
|
|
778
779
|
)) : ""
|
|
779
780
|
}
|
|
780
781
|
)
|
|
@@ -809,9 +810,9 @@ const j = {
|
|
|
809
810
|
children: a,
|
|
810
811
|
className: n = "",
|
|
811
812
|
disabled: s = !1,
|
|
812
|
-
href:
|
|
813
|
-
props:
|
|
814
|
-
rightIcon:
|
|
813
|
+
href: i,
|
|
814
|
+
props: r = {},
|
|
815
|
+
rightIcon: l,
|
|
815
816
|
rightIconProps: c = {},
|
|
816
817
|
rounded: h = !1,
|
|
817
818
|
size: p = "md",
|
|
@@ -819,7 +820,7 @@ const j = {
|
|
|
819
820
|
uppercase: M = !1,
|
|
820
821
|
variation: b = "primary"
|
|
821
822
|
}) => {
|
|
822
|
-
const H =
|
|
823
|
+
const H = i ? "a" : "button";
|
|
823
824
|
return /* @__PURE__ */ g(
|
|
824
825
|
H,
|
|
825
826
|
{
|
|
@@ -831,15 +832,15 @@ const j = {
|
|
|
831
832
|
[`button--${p}`]: p,
|
|
832
833
|
"button--rounded": h,
|
|
833
834
|
"button--disabled": s,
|
|
834
|
-
"button--custom-link":
|
|
835
|
+
"button--custom-link": i,
|
|
835
836
|
"button--uppercase": M,
|
|
836
837
|
"button--borderless": d || b === "link"
|
|
837
838
|
},
|
|
838
839
|
n
|
|
839
840
|
),
|
|
840
841
|
disabled: s,
|
|
841
|
-
href:
|
|
842
|
-
...
|
|
842
|
+
href: i,
|
|
843
|
+
...r,
|
|
843
844
|
children: [
|
|
844
845
|
e && /* @__PURE__ */ o(
|
|
845
846
|
y,
|
|
@@ -851,10 +852,10 @@ const j = {
|
|
|
851
852
|
}
|
|
852
853
|
),
|
|
853
854
|
a,
|
|
854
|
-
|
|
855
|
+
l && /* @__PURE__ */ o(
|
|
855
856
|
y,
|
|
856
857
|
{
|
|
857
|
-
name:
|
|
858
|
+
name: l,
|
|
858
859
|
size: p === "md" ? "small" : "xSmall",
|
|
859
860
|
viewBox: "0 0 24 24",
|
|
860
861
|
...c
|
|
@@ -870,8 +871,8 @@ const j = {
|
|
|
870
871
|
className: a = "",
|
|
871
872
|
divider: n = !0,
|
|
872
873
|
inset: s = !0,
|
|
873
|
-
id:
|
|
874
|
-
role:
|
|
874
|
+
id: i = null,
|
|
875
|
+
role: r = null
|
|
875
876
|
}) => /* @__PURE__ */ o(
|
|
876
877
|
"div",
|
|
877
878
|
{
|
|
@@ -885,8 +886,8 @@ const j = {
|
|
|
885
886
|
},
|
|
886
887
|
a
|
|
887
888
|
),
|
|
888
|
-
id:
|
|
889
|
-
role:
|
|
889
|
+
id: i,
|
|
890
|
+
role: r,
|
|
890
891
|
children: t
|
|
891
892
|
}
|
|
892
893
|
), Z1 = X, _ = ({
|
|
@@ -896,13 +897,13 @@ const j = {
|
|
|
896
897
|
error: a = !1,
|
|
897
898
|
inputClass: n,
|
|
898
899
|
id: s = "",
|
|
899
|
-
label:
|
|
900
|
-
name:
|
|
901
|
-
props:
|
|
900
|
+
label: i = "",
|
|
901
|
+
name: r = "",
|
|
902
|
+
props: l = {},
|
|
902
903
|
variation: c = "primary",
|
|
903
904
|
value: h = ""
|
|
904
905
|
}) => {
|
|
905
|
-
const p =
|
|
906
|
+
const p = i ? "div" : "label", f = p === "label" ? { htmlFor: s } : {};
|
|
906
907
|
return /* @__PURE__ */ g(
|
|
907
908
|
p,
|
|
908
909
|
{
|
|
@@ -921,10 +922,10 @@ const j = {
|
|
|
921
922
|
n
|
|
922
923
|
),
|
|
923
924
|
id: s,
|
|
924
|
-
name:
|
|
925
|
+
name: r,
|
|
925
926
|
type: "checkbox",
|
|
926
927
|
value: h,
|
|
927
|
-
...
|
|
928
|
+
...l
|
|
928
929
|
}
|
|
929
930
|
),
|
|
930
931
|
e
|
|
@@ -964,16 +965,16 @@ const j = {
|
|
|
964
965
|
className: a = "",
|
|
965
966
|
contentClass: n = "",
|
|
966
967
|
dark: s = !1,
|
|
967
|
-
footer:
|
|
968
|
-
fullMobile:
|
|
969
|
-
headerClass:
|
|
968
|
+
footer: i,
|
|
969
|
+
fullMobile: r = !0,
|
|
970
|
+
headerClass: l = "",
|
|
970
971
|
hideClose: c = !1,
|
|
971
972
|
iconSize: h = "medium",
|
|
972
973
|
preventPageScroll: p = !0,
|
|
973
974
|
stickyHeader: f = !1,
|
|
974
975
|
title: M = "",
|
|
975
976
|
titleClass: b = ""
|
|
976
|
-
}) => /* @__PURE__ */ g(
|
|
977
|
+
}) => /* @__PURE__ */ g(S, { children: [
|
|
977
978
|
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
|
|
978
979
|
/* @__PURE__ */ o(
|
|
979
980
|
"dialog",
|
|
@@ -983,7 +984,7 @@ const j = {
|
|
|
983
984
|
className: u(
|
|
984
985
|
"dialog",
|
|
985
986
|
{
|
|
986
|
-
"dialog-full-mobile":
|
|
987
|
+
"dialog-full-mobile": r,
|
|
987
988
|
dark: s,
|
|
988
989
|
"prevent-scroll": p
|
|
989
990
|
},
|
|
@@ -1000,7 +1001,7 @@ const j = {
|
|
|
1000
1001
|
"!pb-0 border-0 justify-end": !M,
|
|
1001
1002
|
"justify-between border-b": M
|
|
1002
1003
|
},
|
|
1003
|
-
|
|
1004
|
+
l
|
|
1004
1005
|
),
|
|
1005
1006
|
children: [
|
|
1006
1007
|
M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: b, children: M }),
|
|
@@ -1033,7 +1034,7 @@ const j = {
|
|
|
1033
1034
|
children: t
|
|
1034
1035
|
}
|
|
1035
1036
|
),
|
|
1036
|
-
|
|
1037
|
+
i && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: i })
|
|
1037
1038
|
] })
|
|
1038
1039
|
}
|
|
1039
1040
|
)
|
|
@@ -1044,9 +1045,9 @@ const j = {
|
|
|
1044
1045
|
className: a = "",
|
|
1045
1046
|
contentClass: n = "",
|
|
1046
1047
|
onClose: s,
|
|
1047
|
-
disableOutsideClick:
|
|
1048
|
-
footer:
|
|
1049
|
-
fullMobile:
|
|
1048
|
+
disableOutsideClick: i = !1,
|
|
1049
|
+
footer: r,
|
|
1050
|
+
fullMobile: l = !0,
|
|
1050
1051
|
headerClass: c = "",
|
|
1051
1052
|
hideClose: h = !1,
|
|
1052
1053
|
iconSize: p = "medium",
|
|
@@ -1056,20 +1057,20 @@ const j = {
|
|
|
1056
1057
|
title: H = "",
|
|
1057
1058
|
titleClass: m = ""
|
|
1058
1059
|
}) => {
|
|
1059
|
-
const V = q(null),
|
|
1060
|
+
const V = q(null), w = async () => {
|
|
1060
1061
|
V.current.classList.add("closing"), await B(V.current), V.current.classList.remove("closing"), s && s(), M(!1);
|
|
1061
|
-
}, v = async (
|
|
1062
|
-
|
|
1063
|
-
},
|
|
1062
|
+
}, v = async (A) => {
|
|
1063
|
+
A.key === "Escape" && await w();
|
|
1064
|
+
}, k = async ({ clientX: A, clientY: z, target: D }) => {
|
|
1064
1065
|
const { left: $, right: T, top: I, bottom: O } = V.current.getBoundingClientRect() ?? {};
|
|
1065
|
-
(!V.current.contains(D) ||
|
|
1066
|
-
}, B = (
|
|
1067
|
-
|
|
1066
|
+
(!V.current.contains(D) || A < $ || A > T || z < I || z > O) && await w();
|
|
1067
|
+
}, B = (A) => Promise.allSettled(
|
|
1068
|
+
A.getAnimations().map((z) => z.finished)
|
|
1068
1069
|
);
|
|
1069
|
-
return
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
}, [f]), /* @__PURE__ */ g(
|
|
1070
|
+
return N(() => {
|
|
1071
|
+
const A = V.current;
|
|
1072
|
+
A && (f ? A.showModal() : typeof A.close == "function" && A.close());
|
|
1073
|
+
}, [f]), /* @__PURE__ */ g(S, { children: [
|
|
1073
1074
|
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
|
|
1074
1075
|
/* @__PURE__ */ g(
|
|
1075
1076
|
"dialog",
|
|
@@ -1080,12 +1081,12 @@ const j = {
|
|
|
1080
1081
|
"dialog",
|
|
1081
1082
|
{
|
|
1082
1083
|
hidden: !f,
|
|
1083
|
-
"xs-max:h-full xs-max:max-h-full":
|
|
1084
|
+
"xs-max:h-full xs-max:max-h-full": l
|
|
1084
1085
|
},
|
|
1085
1086
|
a
|
|
1086
1087
|
),
|
|
1087
1088
|
onKeyDown: v,
|
|
1088
|
-
onClick: (
|
|
1089
|
+
onClick: (A) => i ? null : k(A),
|
|
1089
1090
|
children: [
|
|
1090
1091
|
/* @__PURE__ */ g(
|
|
1091
1092
|
"header",
|
|
@@ -1104,7 +1105,7 @@ const j = {
|
|
|
1104
1105
|
title: "Close",
|
|
1105
1106
|
className: "dialog-close",
|
|
1106
1107
|
"data-dialog-close": "",
|
|
1107
|
-
onClick:
|
|
1108
|
+
onClick: w,
|
|
1108
1109
|
children: /* @__PURE__ */ o(
|
|
1109
1110
|
y,
|
|
1110
1111
|
{
|
|
@@ -1126,12 +1127,12 @@ const j = {
|
|
|
1126
1127
|
children: t
|
|
1127
1128
|
}
|
|
1128
1129
|
),
|
|
1129
|
-
|
|
1130
|
+
r && /* @__PURE__ */ o(
|
|
1130
1131
|
"footer",
|
|
1131
1132
|
{
|
|
1132
1133
|
id: `${e}-dialog-footer`,
|
|
1133
1134
|
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1134
|
-
children:
|
|
1135
|
+
children: r
|
|
1135
1136
|
}
|
|
1136
1137
|
)
|
|
1137
1138
|
]
|
|
@@ -1154,22 +1155,22 @@ const j = {
|
|
|
1154
1155
|
timeout: a = 1e4,
|
|
1155
1156
|
variation: n = "primary"
|
|
1156
1157
|
}) => {
|
|
1157
|
-
function s({ cb:
|
|
1158
|
-
const
|
|
1159
|
-
if (!
|
|
1160
|
-
let
|
|
1158
|
+
function s({ cb: i }) {
|
|
1159
|
+
const r = document.querySelector(".loading-bar__inner");
|
|
1160
|
+
if (!r) return;
|
|
1161
|
+
let l, c, h = !1;
|
|
1161
1162
|
function p(f) {
|
|
1162
|
-
|
|
1163
|
-
const M = f -
|
|
1163
|
+
l === void 0 && (l = f);
|
|
1164
|
+
const M = f - l;
|
|
1164
1165
|
if (c !== f) {
|
|
1165
1166
|
const b = M / a * 101;
|
|
1166
|
-
|
|
1167
|
+
r.style.width = `${b}%`, b >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(f));
|
|
1167
1168
|
}
|
|
1168
1169
|
M < a && (c = f, h || window.requestAnimationFrame(p));
|
|
1169
1170
|
}
|
|
1170
1171
|
window.requestAnimationFrame(p);
|
|
1171
1172
|
}
|
|
1172
|
-
return
|
|
1173
|
+
return N(() => {
|
|
1173
1174
|
s({ cb: d });
|
|
1174
1175
|
}, []), /* @__PURE__ */ o(
|
|
1175
1176
|
"div",
|
|
@@ -1206,11 +1207,11 @@ const j = {
|
|
|
1206
1207
|
options: a = {},
|
|
1207
1208
|
children: n,
|
|
1208
1209
|
className: s = "",
|
|
1209
|
-
containerClass:
|
|
1210
|
-
disabled:
|
|
1211
|
-
id:
|
|
1210
|
+
containerClass: i = "",
|
|
1211
|
+
disabled: r = !1,
|
|
1212
|
+
id: l = "",
|
|
1212
1213
|
trigger: c = "click"
|
|
1213
|
-
}) => /* @__PURE__ */ g(
|
|
1214
|
+
}) => /* @__PURE__ */ g(S, { children: [
|
|
1214
1215
|
/* @__PURE__ */ o(
|
|
1215
1216
|
"div",
|
|
1216
1217
|
{
|
|
@@ -1220,7 +1221,7 @@ const j = {
|
|
|
1220
1221
|
{
|
|
1221
1222
|
className: u(
|
|
1222
1223
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1223
|
-
|
|
1224
|
+
i
|
|
1224
1225
|
),
|
|
1225
1226
|
children: [
|
|
1226
1227
|
n,
|
|
@@ -1242,7 +1243,7 @@ const j = {
|
|
|
1242
1243
|
className: u(
|
|
1243
1244
|
"popover-activator",
|
|
1244
1245
|
`trigger-${c}`,
|
|
1245
|
-
|
|
1246
|
+
r ? "is-disabled" : "",
|
|
1246
1247
|
e
|
|
1247
1248
|
),
|
|
1248
1249
|
...t,
|
|
@@ -1257,8 +1258,8 @@ const j = {
|
|
|
1257
1258
|
className: a,
|
|
1258
1259
|
completed: n = 0,
|
|
1259
1260
|
maxCompleted: s = 100,
|
|
1260
|
-
rounded:
|
|
1261
|
-
showLabel:
|
|
1261
|
+
rounded: i = !0,
|
|
1262
|
+
showLabel: r = !1
|
|
1262
1263
|
}) => {
|
|
1263
1264
|
const c = ((h, p) => {
|
|
1264
1265
|
if (h) {
|
|
@@ -1272,7 +1273,7 @@ const j = {
|
|
|
1272
1273
|
{
|
|
1273
1274
|
className: u(
|
|
1274
1275
|
"w-full bg-gray-200",
|
|
1275
|
-
{ "rounded-full":
|
|
1276
|
+
{ "rounded-full": i },
|
|
1276
1277
|
a
|
|
1277
1278
|
),
|
|
1278
1279
|
role: "progressbar",
|
|
@@ -1288,7 +1289,7 @@ const j = {
|
|
|
1288
1289
|
t
|
|
1289
1290
|
),
|
|
1290
1291
|
style: { width: `${c}%` },
|
|
1291
|
-
children:
|
|
1292
|
+
children: r && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
|
|
1292
1293
|
}
|
|
1293
1294
|
)
|
|
1294
1295
|
}
|
|
@@ -1300,9 +1301,9 @@ const j = {
|
|
|
1300
1301
|
id: a = "",
|
|
1301
1302
|
label: n = "",
|
|
1302
1303
|
name: s = "",
|
|
1303
|
-
props:
|
|
1304
|
-
variation:
|
|
1305
|
-
value:
|
|
1304
|
+
props: i = {},
|
|
1305
|
+
variation: r = "primary",
|
|
1306
|
+
value: l = ""
|
|
1306
1307
|
}) => {
|
|
1307
1308
|
const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1308
1309
|
return /* @__PURE__ */ g(
|
|
@@ -1318,14 +1319,14 @@ const j = {
|
|
|
1318
1319
|
className: u(
|
|
1319
1320
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1320
1321
|
{
|
|
1321
|
-
"focus:ring-[#222]":
|
|
1322
|
+
"focus:ring-[#222]": r === "primary"
|
|
1322
1323
|
}
|
|
1323
1324
|
),
|
|
1324
1325
|
id: a,
|
|
1325
1326
|
name: s,
|
|
1326
1327
|
type: "radio",
|
|
1327
|
-
value:
|
|
1328
|
-
...
|
|
1328
|
+
value: l,
|
|
1329
|
+
...i
|
|
1329
1330
|
}
|
|
1330
1331
|
),
|
|
1331
1332
|
e
|
|
@@ -1339,16 +1340,16 @@ const j = {
|
|
|
1339
1340
|
errorMessage: a = "",
|
|
1340
1341
|
id: n = "",
|
|
1341
1342
|
label: s = "",
|
|
1342
|
-
name:
|
|
1343
|
-
options:
|
|
1344
|
-
placeholder:
|
|
1343
|
+
name: i = "",
|
|
1344
|
+
options: r = [],
|
|
1345
|
+
placeholder: l = "",
|
|
1345
1346
|
props: c = {},
|
|
1346
1347
|
selectClass: h = "",
|
|
1347
1348
|
styles: p = null,
|
|
1348
1349
|
variation: f = "primary",
|
|
1349
1350
|
value: M
|
|
1350
1351
|
}) => {
|
|
1351
|
-
const b =
|
|
1352
|
+
const b = l ? { defaultValue: "" } : {};
|
|
1352
1353
|
return /* @__PURE__ */ g(
|
|
1353
1354
|
"label",
|
|
1354
1355
|
{
|
|
@@ -1365,13 +1366,13 @@ const j = {
|
|
|
1365
1366
|
h
|
|
1366
1367
|
),
|
|
1367
1368
|
id: n,
|
|
1368
|
-
name:
|
|
1369
|
+
name: i,
|
|
1369
1370
|
value: M,
|
|
1370
1371
|
...b,
|
|
1371
1372
|
...c,
|
|
1372
1373
|
children: [
|
|
1373
|
-
|
|
1374
|
-
|
|
1374
|
+
l && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: l }),
|
|
1375
|
+
r.map((H, m) => /* @__PURE__ */ o(
|
|
1375
1376
|
"option",
|
|
1376
1377
|
{
|
|
1377
1378
|
value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
|
|
@@ -1415,13 +1416,13 @@ const j = {
|
|
|
1415
1416
|
children: /* @__PURE__ */ o(y, { name: "chevronLeft" })
|
|
1416
1417
|
}
|
|
1417
1418
|
),
|
|
1418
|
-
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s,
|
|
1419
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, i) => /* @__PURE__ */ o(
|
|
1419
1420
|
"div",
|
|
1420
1421
|
{
|
|
1421
1422
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1422
1423
|
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1423
1424
|
},
|
|
1424
|
-
|
|
1425
|
+
i
|
|
1425
1426
|
)) }),
|
|
1426
1427
|
/* @__PURE__ */ o(
|
|
1427
1428
|
"button",
|
|
@@ -1457,18 +1458,18 @@ const j = {
|
|
|
1457
1458
|
errorMessage: a = "",
|
|
1458
1459
|
id: n = "",
|
|
1459
1460
|
inputClass: s = "",
|
|
1460
|
-
name:
|
|
1461
|
-
placeholder:
|
|
1462
|
-
props:
|
|
1461
|
+
name: i = "",
|
|
1462
|
+
placeholder: r = "",
|
|
1463
|
+
props: l = {},
|
|
1463
1464
|
rows: c = 4,
|
|
1464
1465
|
variation: h = "primary"
|
|
1465
1466
|
}) => /* @__PURE__ */ g("div", { className: u("relative textarea", h, d), children: [
|
|
1466
1467
|
/* @__PURE__ */ o(
|
|
1467
1468
|
"textarea",
|
|
1468
1469
|
{
|
|
1469
|
-
placeholder:
|
|
1470
|
+
placeholder: r,
|
|
1470
1471
|
id: n,
|
|
1471
|
-
name:
|
|
1472
|
+
name: i,
|
|
1472
1473
|
rows: c,
|
|
1473
1474
|
className: u(
|
|
1474
1475
|
"form-textarea min-h-[40px] pl-4",
|
|
@@ -1476,7 +1477,7 @@ const j = {
|
|
|
1476
1477
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1477
1478
|
s
|
|
1478
1479
|
),
|
|
1479
|
-
...
|
|
1480
|
+
...l
|
|
1480
1481
|
}
|
|
1481
1482
|
),
|
|
1482
1483
|
e && /* @__PURE__ */ o(
|
|
@@ -1502,9 +1503,9 @@ const j = {
|
|
|
1502
1503
|
errorMessage: a = "",
|
|
1503
1504
|
iconLeft: n = "",
|
|
1504
1505
|
id: s = "",
|
|
1505
|
-
inputClass:
|
|
1506
|
-
name:
|
|
1507
|
-
placeholder:
|
|
1506
|
+
inputClass: i = "",
|
|
1507
|
+
name: r = "",
|
|
1508
|
+
placeholder: l = "",
|
|
1508
1509
|
props: c = {},
|
|
1509
1510
|
styles: h = null,
|
|
1510
1511
|
type: p = "text",
|
|
@@ -1528,9 +1529,9 @@ const j = {
|
|
|
1528
1529
|
/* @__PURE__ */ o(
|
|
1529
1530
|
"input",
|
|
1530
1531
|
{
|
|
1531
|
-
placeholder:
|
|
1532
|
+
placeholder: l,
|
|
1532
1533
|
id: s,
|
|
1533
|
-
name:
|
|
1534
|
+
name: r,
|
|
1534
1535
|
type: p,
|
|
1535
1536
|
value: f,
|
|
1536
1537
|
autoComplete: "off",
|
|
@@ -1542,7 +1543,7 @@ const j = {
|
|
|
1542
1543
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1543
1544
|
},
|
|
1544
1545
|
c.inputClass ?? "",
|
|
1545
|
-
|
|
1546
|
+
i
|
|
1546
1547
|
),
|
|
1547
1548
|
...c
|
|
1548
1549
|
}
|
|
@@ -1572,9 +1573,9 @@ const j = {
|
|
|
1572
1573
|
customSuccessMsg: a = "",
|
|
1573
1574
|
title: n = "Send A Message",
|
|
1574
1575
|
titleClass: s,
|
|
1575
|
-
uppercase:
|
|
1576
|
+
uppercase: i = !0
|
|
1576
1577
|
}) => {
|
|
1577
|
-
const
|
|
1578
|
+
const r = a || /* @__PURE__ */ g(S, { children: [
|
|
1578
1579
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1579
1580
|
" ",
|
|
1580
1581
|
/* @__PURE__ */ o(
|
|
@@ -1596,11 +1597,11 @@ const j = {
|
|
|
1596
1597
|
{
|
|
1597
1598
|
id: "contactForm",
|
|
1598
1599
|
className: u("contact-form", t, {
|
|
1599
|
-
uppercase:
|
|
1600
|
+
uppercase: i
|
|
1600
1601
|
}),
|
|
1601
1602
|
children: [
|
|
1602
1603
|
/* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", s), children: n }),
|
|
1603
|
-
/* @__PURE__ */ o("p", { className: "contact-form__msg", children:
|
|
1604
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: r }),
|
|
1604
1605
|
/* @__PURE__ */ g(
|
|
1605
1606
|
"div",
|
|
1606
1607
|
{
|
|
@@ -1616,7 +1617,7 @@ const j = {
|
|
|
1616
1617
|
name: "contact-name",
|
|
1617
1618
|
placeholder: "Name",
|
|
1618
1619
|
inputClass: u({
|
|
1619
|
-
"placeholder:uppercase":
|
|
1620
|
+
"placeholder:uppercase": i
|
|
1620
1621
|
})
|
|
1621
1622
|
}
|
|
1622
1623
|
),
|
|
@@ -1627,7 +1628,7 @@ const j = {
|
|
|
1627
1628
|
name: "contact-email",
|
|
1628
1629
|
placeholder: "Email",
|
|
1629
1630
|
inputClass: u({
|
|
1630
|
-
"placeholder:uppercase":
|
|
1631
|
+
"placeholder:uppercase": i
|
|
1631
1632
|
})
|
|
1632
1633
|
}
|
|
1633
1634
|
),
|
|
@@ -1638,7 +1639,7 @@ const j = {
|
|
|
1638
1639
|
name: "contact-message",
|
|
1639
1640
|
placeholder: "Message",
|
|
1640
1641
|
inputClass: u({
|
|
1641
|
-
"placeholder:uppercase":
|
|
1642
|
+
"placeholder:uppercase": i
|
|
1642
1643
|
})
|
|
1643
1644
|
}
|
|
1644
1645
|
),
|
|
@@ -1648,7 +1649,7 @@ const j = {
|
|
|
1648
1649
|
className: u(
|
|
1649
1650
|
"flex mx-auto items-center",
|
|
1650
1651
|
{
|
|
1651
|
-
uppercase:
|
|
1652
|
+
uppercase: i
|
|
1652
1653
|
},
|
|
1653
1654
|
d
|
|
1654
1655
|
),
|
|
@@ -1670,13 +1671,13 @@ const j = {
|
|
|
1670
1671
|
contentClass: a,
|
|
1671
1672
|
footerClass: n,
|
|
1672
1673
|
footerContent: s,
|
|
1673
|
-
headerContent:
|
|
1674
|
-
headerClass:
|
|
1675
|
-
list:
|
|
1674
|
+
headerContent: i,
|
|
1675
|
+
headerClass: r,
|
|
1676
|
+
list: l = !1,
|
|
1676
1677
|
props: c = {},
|
|
1677
1678
|
variation: h = "primary"
|
|
1678
1679
|
}) => {
|
|
1679
|
-
const p =
|
|
1680
|
+
const p = l ? "ul" : "div";
|
|
1680
1681
|
return /* @__PURE__ */ g(
|
|
1681
1682
|
"div",
|
|
1682
1683
|
{
|
|
@@ -1688,12 +1689,12 @@ const j = {
|
|
|
1688
1689
|
),
|
|
1689
1690
|
...c,
|
|
1690
1691
|
children: [
|
|
1691
|
-
|
|
1692
|
+
i && /* @__PURE__ */ o("div", { className: u("content-card__header", r), children: typeof i == "string" ? /* @__PURE__ */ o("h3", { children: i }) : i }),
|
|
1692
1693
|
/* @__PURE__ */ o(
|
|
1693
1694
|
p,
|
|
1694
1695
|
{
|
|
1695
1696
|
className: u("content-card__content", a),
|
|
1696
|
-
role:
|
|
1697
|
+
role: l ? "list" : null,
|
|
1697
1698
|
children: e
|
|
1698
1699
|
}
|
|
1699
1700
|
),
|
|
@@ -1708,9 +1709,9 @@ const j = {
|
|
|
1708
1709
|
direction: a = "col",
|
|
1709
1710
|
label: n,
|
|
1710
1711
|
labelClass: s,
|
|
1711
|
-
props:
|
|
1712
|
-
rowGap:
|
|
1713
|
-
value:
|
|
1712
|
+
props: i = {},
|
|
1713
|
+
rowGap: r = 1,
|
|
1714
|
+
value: l,
|
|
1714
1715
|
valueClass: c,
|
|
1715
1716
|
wrap: h = !1
|
|
1716
1717
|
}) => /* @__PURE__ */ g(
|
|
@@ -1727,12 +1728,12 @@ const j = {
|
|
|
1727
1728
|
),
|
|
1728
1729
|
style: {
|
|
1729
1730
|
columnGap: `${t / 4}rem`,
|
|
1730
|
-
rowGap: `${
|
|
1731
|
+
rowGap: `${r / 4}rem`
|
|
1731
1732
|
},
|
|
1732
|
-
...
|
|
1733
|
+
...i,
|
|
1733
1734
|
children: [
|
|
1734
1735
|
n && /* @__PURE__ */ o("div", { className: u("item-label", s), children: n }),
|
|
1735
|
-
|
|
1736
|
+
l && /* @__PURE__ */ o("div", { className: u("item-value", c), children: l }),
|
|
1736
1737
|
d
|
|
1737
1738
|
]
|
|
1738
1739
|
}
|
|
@@ -1743,8 +1744,8 @@ const j = {
|
|
|
1743
1744
|
noPrint: a = !1,
|
|
1744
1745
|
props: n = {},
|
|
1745
1746
|
title: s,
|
|
1746
|
-
titleClass:
|
|
1747
|
-
titleId:
|
|
1747
|
+
titleClass: i,
|
|
1748
|
+
titleId: r
|
|
1748
1749
|
}) => /* @__PURE__ */ g(
|
|
1749
1750
|
"section",
|
|
1750
1751
|
{
|
|
@@ -1758,7 +1759,7 @@ const j = {
|
|
|
1758
1759
|
),
|
|
1759
1760
|
...n,
|
|
1760
1761
|
children: [
|
|
1761
|
-
s && /* @__PURE__ */ o("h2", { className: u("spacer-title",
|
|
1762
|
+
s && /* @__PURE__ */ o("h2", { className: u("spacer-title", i), id: r, children: s }),
|
|
1762
1763
|
e
|
|
1763
1764
|
]
|
|
1764
1765
|
}
|
|
@@ -2018,8 +2019,8 @@ const j = {
|
|
|
2018
2019
|
}
|
|
2019
2020
|
},
|
|
2020
2021
|
plugins: [
|
|
2021
|
-
({
|
|
2022
|
-
const
|
|
2022
|
+
({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
|
|
2023
|
+
const n = {}, s = ["2", "5"], i = {
|
|
2023
2024
|
light: "300",
|
|
2024
2025
|
normal: "400",
|
|
2025
2026
|
medium: "500",
|
|
@@ -2032,46 +2033,32 @@ const j = {
|
|
|
2032
2033
|
3: "1.25rem",
|
|
2033
2034
|
4: "1.125rem",
|
|
2034
2035
|
5: "1rem"
|
|
2035
|
-
}).forEach(([
|
|
2036
|
-
const
|
|
2037
|
-
"font-size":
|
|
2036
|
+
}).forEach(([l, c]) => {
|
|
2037
|
+
const h = {
|
|
2038
|
+
"font-size": c,
|
|
2038
2039
|
"line-height": "1.5"
|
|
2039
|
-
},
|
|
2040
|
-
|
|
2041
|
-
...
|
|
2042
|
-
"font-weight":
|
|
2043
|
-
}, Object.entries(
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2046
|
-
...
|
|
2047
|
-
"font-weight":
|
|
2040
|
+
}, p = `.${a(`header-${l}`)}`;
|
|
2041
|
+
n[p] = {
|
|
2042
|
+
...h,
|
|
2043
|
+
"font-weight": s.includes(l) ? i.semibold : i.bold
|
|
2044
|
+
}, Object.entries(i).forEach(([f, M]) => {
|
|
2045
|
+
const b = `.${a(`header-${l}-${f}`)}`;
|
|
2046
|
+
n[b] = {
|
|
2047
|
+
...h,
|
|
2048
|
+
"font-weight": M
|
|
2048
2049
|
};
|
|
2049
2050
|
});
|
|
2050
|
-
}), d(
|
|
2051
|
-
".Autocomplete": {
|
|
2052
|
-
position: "relative",
|
|
2053
|
-
"&:has(.animate-listbox-open) .search-icon-left": {
|
|
2054
|
-
cursor: "pointer"
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
".Stars": {
|
|
2058
|
-
"&::before": {
|
|
2059
|
-
background: "linear-gradient(90deg, #ff8945 var(--value), #d1d5db var(--value))",
|
|
2060
|
-
"-webkit-background-clip": "text",
|
|
2061
|
-
"-webkit-text-fill-color": "transparent"
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
}), e(s), t(
|
|
2051
|
+
}), d(n), e(
|
|
2065
2052
|
{
|
|
2066
|
-
aspect: (
|
|
2053
|
+
aspect: (l) => ({
|
|
2067
2054
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
2068
|
-
aspectRatio:
|
|
2055
|
+
aspectRatio: l
|
|
2069
2056
|
},
|
|
2070
2057
|
"@supports not (aspect-ratio: 1 / 1)": {
|
|
2071
2058
|
"&::before": {
|
|
2072
2059
|
content: '""',
|
|
2073
2060
|
float: "left",
|
|
2074
|
-
paddingTop: `calc(100% / (${
|
|
2061
|
+
paddingTop: `calc(100% / (${l}))`
|
|
2075
2062
|
},
|
|
2076
2063
|
"&::after": {
|
|
2077
2064
|
clear: "left",
|
|
@@ -2081,23 +2068,23 @@ const j = {
|
|
|
2081
2068
|
}
|
|
2082
2069
|
})
|
|
2083
2070
|
},
|
|
2084
|
-
{ values:
|
|
2085
|
-
),
|
|
2071
|
+
{ values: t("aspectRatio") }
|
|
2072
|
+
), e(
|
|
2086
2073
|
{
|
|
2087
|
-
"animation-delay": (
|
|
2088
|
-
"animation-delay":
|
|
2074
|
+
"animation-delay": (l) => ({
|
|
2075
|
+
"animation-delay": l
|
|
2089
2076
|
})
|
|
2090
2077
|
},
|
|
2091
2078
|
{
|
|
2092
|
-
values:
|
|
2079
|
+
values: t("transitionDelay")
|
|
2093
2080
|
}
|
|
2094
|
-
),
|
|
2095
|
-
"max-block": (
|
|
2096
|
-
"max-block-size":
|
|
2081
|
+
), e({
|
|
2082
|
+
"max-block": (l) => ({
|
|
2083
|
+
"max-block-size": l
|
|
2097
2084
|
})
|
|
2098
|
-
}),
|
|
2099
|
-
"max-inline": (
|
|
2100
|
-
"max-inline-size":
|
|
2085
|
+
}), e({
|
|
2086
|
+
"max-inline": (l) => ({
|
|
2087
|
+
"max-inline-size": l
|
|
2101
2088
|
})
|
|
2102
2089
|
});
|
|
2103
2090
|
}
|
|
@@ -2175,7 +2162,7 @@ function b1(d, e = []) {
|
|
|
2175
2162
|
},
|
|
2176
2163
|
set(t, a, n) {
|
|
2177
2164
|
const s = { ...t };
|
|
2178
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2165
|
+
return t[a] = n, e.length > 0 && e.forEach((i) => i(t, s, a)), t;
|
|
2179
2166
|
}
|
|
2180
2167
|
});
|
|
2181
2168
|
}
|
|
@@ -2187,12 +2174,12 @@ function t2(d, e = []) {
|
|
|
2187
2174
|
}
|
|
2188
2175
|
function a2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2189
2176
|
let s = !0;
|
|
2190
|
-
for (const [
|
|
2191
|
-
const
|
|
2177
|
+
for (const [i, r] of t.entries()) {
|
|
2178
|
+
const l = e.querySelector(`[name="${i}"]`), c = a[i], h = [];
|
|
2192
2179
|
c.forEach((p) => {
|
|
2193
|
-
p.isValid(
|
|
2194
|
-
}), h.length ? (s = !1,
|
|
2195
|
-
p.preventDefault(),
|
|
2180
|
+
p.isValid(r) || h.push(p.message);
|
|
2181
|
+
}), h.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) => {
|
|
2182
|
+
p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
2196
2183
|
}));
|
|
2197
2184
|
}
|
|
2198
2185
|
return s;
|
|
@@ -2246,16 +2233,16 @@ class s2 {
|
|
|
2246
2233
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2247
2234
|
}
|
|
2248
2235
|
handleIntersect(e, t, a) {
|
|
2249
|
-
const n = e.filter((
|
|
2250
|
-
(
|
|
2236
|
+
const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, i = n.every(
|
|
2237
|
+
(l) => l.isIntersecting === !0
|
|
2251
2238
|
);
|
|
2252
|
-
s &&
|
|
2253
|
-
const c = [...a.slides].indexOf(
|
|
2254
|
-
|
|
2239
|
+
s && i ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
|
|
2240
|
+
const c = [...a.slides].indexOf(l.target);
|
|
2241
|
+
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, r(l));
|
|
2255
2242
|
}));
|
|
2256
|
-
function l
|
|
2243
|
+
function r(l) {
|
|
2257
2244
|
var c;
|
|
2258
|
-
|
|
2245
|
+
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(l.target));
|
|
2259
2246
|
}
|
|
2260
2247
|
}
|
|
2261
2248
|
btnListeners(e) {
|
|
@@ -2274,7 +2261,7 @@ class s2 {
|
|
|
2274
2261
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2275
2262
|
}
|
|
2276
2263
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2277
|
-
const s = '<span class="slide-first"></span>',
|
|
2264
|
+
const s = '<span class="slide-first"></span>', i = '<span class="slide-last"></span>';
|
|
2278
2265
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2279
2266
|
return console.error(`slider-container-${a} Not Found`);
|
|
2280
2267
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2282,8 +2269,8 @@ class s2 {
|
|
|
2282
2269
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2283
2270
|
`#btn-right-${a}`
|
|
2284
2271
|
);
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2272
|
+
const r = t.map((c) => n(c)).join(""), l = document.createElement("div");
|
|
2273
|
+
l.innerHTML = `${s}${r}${i}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
|
|
2287
2274
|
}
|
|
2288
2275
|
showHideBtns(e, t, a) {
|
|
2289
2276
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2295,10 +2282,10 @@ class s2 {
|
|
|
2295
2282
|
}
|
|
2296
2283
|
class C {
|
|
2297
2284
|
static calcCrow(e, t, a, n) {
|
|
2298
|
-
const
|
|
2285
|
+
const i = C.toRad(a - e), r = C.toRad(n - t);
|
|
2299
2286
|
e = C.toRad(e), a = C.toRad(a);
|
|
2300
|
-
const
|
|
2301
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2287
|
+
const l = Math.sin(i / 2) * Math.sin(i / 2) + Math.sin(r / 2) * Math.sin(r / 2) * Math.cos(e) * Math.cos(a);
|
|
2288
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
|
|
2302
2289
|
}
|
|
2303
2290
|
static cleanupAddress(e) {
|
|
2304
2291
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2326,11 +2313,11 @@ class C {
|
|
|
2326
2313
|
static async createData(e, t = null, a = !0) {
|
|
2327
2314
|
if (window.options.isBot || !t)
|
|
2328
2315
|
return null;
|
|
2329
|
-
const { tolken: n = null, ip: s = null } = await C.getHeaders(),
|
|
2316
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, r = e + i, l = typeof t == "string" ? t : JSON.stringify(t);
|
|
2330
2317
|
try {
|
|
2331
|
-
const c = await fetch(
|
|
2318
|
+
const c = await fetch(r, {
|
|
2332
2319
|
method: "POST",
|
|
2333
|
-
body:
|
|
2320
|
+
body: l === "null" ? null : l,
|
|
2334
2321
|
headers: {
|
|
2335
2322
|
website: C.getWebsiteHeaderName()
|
|
2336
2323
|
}
|
|
@@ -2400,17 +2387,17 @@ class C {
|
|
|
2400
2387
|
static async fetchData(e, t = !1, a = !0) {
|
|
2401
2388
|
if (options.isBot)
|
|
2402
2389
|
return null;
|
|
2403
|
-
const { tolken: n = null, ip: s = null } = await C.getHeaders(),
|
|
2390
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2404
2391
|
try {
|
|
2405
|
-
const
|
|
2392
|
+
const l = await fetch(r, { method: "GET" });
|
|
2406
2393
|
if (t === !0) {
|
|
2407
|
-
const h = await
|
|
2394
|
+
const h = await l.text();
|
|
2408
2395
|
return h ? h.replace("__next", "") : null;
|
|
2409
2396
|
}
|
|
2410
|
-
const c =
|
|
2411
|
-
return c && c.indexOf("application/json") !== -1 ?
|
|
2412
|
-
} catch (
|
|
2413
|
-
console.error("fetchData",
|
|
2397
|
+
const c = l.headers.get("content-type");
|
|
2398
|
+
return c && c.indexOf("application/json") !== -1 ? l.json() : null;
|
|
2399
|
+
} catch (l) {
|
|
2400
|
+
console.error("fetchData", l, e);
|
|
2414
2401
|
}
|
|
2415
2402
|
return null;
|
|
2416
2403
|
}
|
|
@@ -2438,12 +2425,12 @@ class C {
|
|
|
2438
2425
|
swLng: 0
|
|
2439
2426
|
};
|
|
2440
2427
|
const n = e.getBounds();
|
|
2441
|
-
let s = n.getSouth(),
|
|
2442
|
-
return a && (s = s - a,
|
|
2428
|
+
let s = n.getSouth(), i = n.getEast(), r = n.getNorth(), l = n.getWest();
|
|
2429
|
+
return a && (s = s - a, i = i + a, r = r + a, l = l - a), t && (s = s.toFixed(t), i = i.toFixed(t), r = r.toFixed(t), l = l.toFixed(t)), {
|
|
2443
2430
|
swLat: s,
|
|
2444
|
-
neLng:
|
|
2445
|
-
neLat:
|
|
2446
|
-
swLng:
|
|
2431
|
+
neLng: i,
|
|
2432
|
+
neLat: r,
|
|
2433
|
+
swLng: l
|
|
2447
2434
|
};
|
|
2448
2435
|
}
|
|
2449
2436
|
static getFirstN(e, t = 5) {
|
|
@@ -2471,22 +2458,22 @@ class C {
|
|
|
2471
2458
|
return "/report/license-plate";
|
|
2472
2459
|
}
|
|
2473
2460
|
static async getHeaders(e = 300) {
|
|
2474
|
-
var
|
|
2461
|
+
var l;
|
|
2475
2462
|
const {
|
|
2476
2463
|
userAgent: t = null,
|
|
2477
2464
|
userAgentData: a = null,
|
|
2478
2465
|
platform: n = null
|
|
2479
|
-
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n,
|
|
2466
|
+
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, i = {
|
|
2480
2467
|
tolken: null,
|
|
2481
2468
|
ip: null,
|
|
2482
2469
|
userAgent: t,
|
|
2483
2470
|
platform: s
|
|
2484
2471
|
};
|
|
2485
2472
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2486
|
-
return
|
|
2487
|
-
const
|
|
2488
|
-
if (
|
|
2489
|
-
const c = JSON.parse(
|
|
2473
|
+
return i;
|
|
2474
|
+
const r = localStorage.getItem("headerTolken");
|
|
2475
|
+
if (r) {
|
|
2476
|
+
const c = JSON.parse(r), h = (/* @__PURE__ */ new Date()).getTime();
|
|
2490
2477
|
return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
2491
2478
|
tolken: c.tolken,
|
|
2492
2479
|
ip: c.ip,
|
|
@@ -2494,8 +2481,8 @@ class C {
|
|
|
2494
2481
|
platform: s
|
|
2495
2482
|
};
|
|
2496
2483
|
}
|
|
2497
|
-
if ((
|
|
2498
|
-
return
|
|
2484
|
+
if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
|
|
2485
|
+
return i;
|
|
2499
2486
|
try {
|
|
2500
2487
|
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, f = (h == null ? void 0 : h.ip) ?? null;
|
|
2501
2488
|
return localStorage.setItem(
|
|
@@ -2509,7 +2496,7 @@ class C {
|
|
|
2509
2496
|
} catch (c) {
|
|
2510
2497
|
console.error("getHeaders", c);
|
|
2511
2498
|
}
|
|
2512
|
-
return
|
|
2499
|
+
return i;
|
|
2513
2500
|
}
|
|
2514
2501
|
static getLayerTitle(e) {
|
|
2515
2502
|
return {
|
|
@@ -2518,15 +2505,15 @@ class C {
|
|
|
2518
2505
|
}[e];
|
|
2519
2506
|
}
|
|
2520
2507
|
static async getLocationData(e) {
|
|
2521
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05),
|
|
2522
|
-
return await C.fetchData("/api/client?query=" +
|
|
2508
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), i = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2509
|
+
return await C.fetchData("/api/client?query=" + i);
|
|
2523
2510
|
}
|
|
2524
2511
|
static getReportUrl(e, t = null) {
|
|
2525
|
-
var
|
|
2526
|
-
const a = ((
|
|
2512
|
+
var l, c, h;
|
|
2513
|
+
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, i = (e == null ? void 0 : e.zip) ?? null;
|
|
2527
2514
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2528
|
-
const
|
|
2529
|
-
return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" +
|
|
2515
|
+
const r = [i, "-piq", t].filter((p) => p).join("");
|
|
2516
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + r;
|
|
2530
2517
|
}
|
|
2531
2518
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2532
2519
|
try {
|
|
@@ -2692,24 +2679,24 @@ class C {
|
|
|
2692
2679
|
static gridTest(e, t, a = 1500) {
|
|
2693
2680
|
const n = this;
|
|
2694
2681
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2695
|
-
createTile: function(s,
|
|
2696
|
-
const
|
|
2682
|
+
createTile: function(s, i) {
|
|
2683
|
+
const r = document.createElement("div");
|
|
2697
2684
|
return setTimeout(() => {
|
|
2698
|
-
|
|
2699
|
-
const { se:
|
|
2685
|
+
i(null, r);
|
|
2686
|
+
const { se: l, nw: c } = n.getGridBounds({
|
|
2700
2687
|
map: e,
|
|
2701
2688
|
tileSize: this.getTileSize(),
|
|
2702
2689
|
coords: s
|
|
2703
2690
|
});
|
|
2704
2691
|
t({
|
|
2705
|
-
swLat:
|
|
2706
|
-
neLng:
|
|
2692
|
+
swLat: l.lat,
|
|
2693
|
+
neLng: l.lng,
|
|
2707
2694
|
neLat: c.lat,
|
|
2708
2695
|
swLng: c.lng,
|
|
2709
2696
|
coords: s,
|
|
2710
2697
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2711
2698
|
});
|
|
2712
|
-
}, a),
|
|
2699
|
+
}, a), r;
|
|
2713
2700
|
}
|
|
2714
2701
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2715
2702
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2732,7 +2719,7 @@ class C {
|
|
|
2732
2719
|
onClose: n = null,
|
|
2733
2720
|
disableOutsideClick: s = !1
|
|
2734
2721
|
}) {
|
|
2735
|
-
const
|
|
2722
|
+
const i = e ? document.querySelectorAll(e) : [], r = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2736
2723
|
"closing",
|
|
2737
2724
|
"closed",
|
|
2738
2725
|
"opening",
|
|
@@ -2746,21 +2733,21 @@ class C {
|
|
|
2746
2733
|
}),
|
|
2747
2734
|
{}
|
|
2748
2735
|
), h = new MutationObserver((m, V) => {
|
|
2749
|
-
m.forEach(async (
|
|
2750
|
-
if (
|
|
2751
|
-
const v =
|
|
2736
|
+
m.forEach(async (w) => {
|
|
2737
|
+
if (w.attributeName === "open") {
|
|
2738
|
+
const v = w.target;
|
|
2752
2739
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2753
2740
|
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await H(v), v == null || v.dispatchEvent(c.opened);
|
|
2754
2741
|
}
|
|
2755
2742
|
});
|
|
2756
2743
|
}), p = new MutationObserver((m, V) => {
|
|
2757
|
-
m.forEach((
|
|
2758
|
-
|
|
2744
|
+
m.forEach((w) => {
|
|
2745
|
+
w.removedNodes.forEach((v) => {
|
|
2759
2746
|
v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", M), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
2760
2747
|
});
|
|
2761
2748
|
});
|
|
2762
2749
|
});
|
|
2763
|
-
|
|
2750
|
+
r && (h.observe(r, {
|
|
2764
2751
|
attributes: !0
|
|
2765
2752
|
}), p.observe(document.body, {
|
|
2766
2753
|
attributes: !1,
|
|
@@ -2768,25 +2755,25 @@ class C {
|
|
|
2768
2755
|
childList: !0
|
|
2769
2756
|
}));
|
|
2770
2757
|
const f = () => {
|
|
2771
|
-
|
|
2758
|
+
r == null || r.showModal();
|
|
2772
2759
|
}, M = async ({ target: m }) => {
|
|
2773
2760
|
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await H(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
|
|
2774
2761
|
}, b = async ({ target: m }) => {
|
|
2775
|
-
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside),
|
|
2762
|
+
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), r == null || r.close("outside"));
|
|
2776
2763
|
}, H = (m) => Promise.allSettled(
|
|
2777
2764
|
m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
2778
2765
|
);
|
|
2779
|
-
return !s && (
|
|
2766
|
+
return !s && (r == null || r.addEventListener("click", b)), r == null || r.addEventListener("close", M), i == null || i.forEach((m) => {
|
|
2780
2767
|
m.addEventListener("click", (V) => {
|
|
2781
|
-
f(), a && a(V,
|
|
2768
|
+
f(), a && a(V, r);
|
|
2782
2769
|
});
|
|
2783
|
-
}),
|
|
2770
|
+
}), l == null || l.forEach((m) => {
|
|
2784
2771
|
m.addEventListener("click", async (V) => {
|
|
2785
|
-
|
|
2772
|
+
r == null || r.close("close"), n && n(V, r);
|
|
2786
2773
|
});
|
|
2787
2774
|
}), {
|
|
2788
|
-
activators:
|
|
2789
|
-
ref:
|
|
2775
|
+
activators: i,
|
|
2776
|
+
ref: r,
|
|
2790
2777
|
handleOpen: f,
|
|
2791
2778
|
handleClose: M
|
|
2792
2779
|
};
|
|
@@ -2798,8 +2785,8 @@ class C {
|
|
|
2798
2785
|
if (!e)
|
|
2799
2786
|
return;
|
|
2800
2787
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2801
|
-
new IntersectionObserver(async (
|
|
2802
|
-
n ? (
|
|
2788
|
+
new IntersectionObserver(async (i, r) => {
|
|
2789
|
+
n ? (i[0].isIntersecting || i[0].boundingClientRect.y < 0) && t({ obs: r, entry: i[0], entries: i }) : i[0].isIntersecting && t({ obs: r, entry: i[0], entries: i });
|
|
2803
2790
|
}, a).observe(e);
|
|
2804
2791
|
}
|
|
2805
2792
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2807,11 +2794,11 @@ class C {
|
|
|
2807
2794
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2808
2795
|
}
|
|
2809
2796
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2810
|
-
return new Promise(function(s,
|
|
2811
|
-
let
|
|
2812
|
-
if (t &&
|
|
2797
|
+
return new Promise(function(s, i) {
|
|
2798
|
+
let r = document.getElementById(t);
|
|
2799
|
+
if (t && r && r.dataset.loaded === "true")
|
|
2813
2800
|
return s({ alreadyLoaded: !0, id: t });
|
|
2814
|
-
|
|
2801
|
+
r || (r = document.createElement("script"), r.src = e, r.dataset.loaded = "false", t && (r.id = t), r.type = n ? "module" : "text/javascript", r.async = a, document.body.appendChild(r), r.onload = () => (r.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), r.onerror = () => i(!1));
|
|
2815
2802
|
});
|
|
2816
2803
|
}
|
|
2817
2804
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2844,14 +2831,14 @@ class C {
|
|
|
2844
2831
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2845
2832
|
}
|
|
2846
2833
|
static async logRequest(e = null, t = null, a = null, n = null, s = null) {
|
|
2847
|
-
const
|
|
2834
|
+
const i = {
|
|
2848
2835
|
name: e,
|
|
2849
2836
|
uuid: t,
|
|
2850
2837
|
ip: a,
|
|
2851
2838
|
url: n,
|
|
2852
2839
|
data: s
|
|
2853
2840
|
};
|
|
2854
|
-
return await C.createData("/api/client?query=log/save&method=POST",
|
|
2841
|
+
return await C.createData("/api/client?query=log/save&method=POST", i), null;
|
|
2855
2842
|
}
|
|
2856
2843
|
static loadAds() {
|
|
2857
2844
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2936,17 +2923,17 @@ class C {
|
|
|
2936
2923
|
first: a = null,
|
|
2937
2924
|
middle: n = null,
|
|
2938
2925
|
last: s = null,
|
|
2939
|
-
min:
|
|
2940
|
-
max:
|
|
2941
|
-
city:
|
|
2926
|
+
min: i = null,
|
|
2927
|
+
max: r = null,
|
|
2928
|
+
city: l = null,
|
|
2942
2929
|
state: c = null,
|
|
2943
2930
|
vin: h = null,
|
|
2944
2931
|
license: p = null,
|
|
2945
2932
|
token: f = null,
|
|
2946
2933
|
phone: M = null
|
|
2947
|
-
} = e || {}, b = t && t !== "", H =
|
|
2934
|
+
} = e || {}, b = t && t !== "", H = i && i !== "" && i !== "18", m = r && r !== "" && i !== "99";
|
|
2948
2935
|
let V = [];
|
|
2949
|
-
return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), H && m ? parseInt(
|
|
2936
|
+
return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), H && m ? parseInt(i) > parseInt(r) ? (V.push("min=" + r), V.push("max=" + i)) : (V.push("min=" + i), V.push("max=" + r)) : (H && V.push("min=" + i), m && V.push("max=" + r)), M && M !== "" && V.push("phone=" + M), l && l !== "" && V.push("city=" + l), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
|
|
2950
2937
|
}
|
|
2951
2938
|
static padTo2Digits(e) {
|
|
2952
2939
|
return e.toString().padStart(2, "0");
|
|
@@ -2960,18 +2947,18 @@ class C {
|
|
|
2960
2947
|
addressesOnly: a = !1,
|
|
2961
2948
|
useCitySearch: n = !1,
|
|
2962
2949
|
useCityStateSearch: s = !1,
|
|
2963
|
-
useSearch:
|
|
2964
|
-
useLocation:
|
|
2965
|
-
state:
|
|
2950
|
+
useSearch: i = !1,
|
|
2951
|
+
useLocation: r = !0,
|
|
2952
|
+
state: l = ""
|
|
2966
2953
|
} = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
|
|
2967
2954
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2968
2955
|
"addressesOnly=" + a,
|
|
2969
|
-
"useSearch=" +
|
|
2956
|
+
"useSearch=" + i,
|
|
2970
2957
|
"useCitySearch=" + n,
|
|
2971
2958
|
"useCityStateSearch=" + s,
|
|
2972
|
-
"useLocation=" +
|
|
2959
|
+
"useLocation=" + r
|
|
2973
2960
|
];
|
|
2974
|
-
|
|
2961
|
+
l && l !== "" && !s && f.push("state=" + l), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
|
|
2975
2962
|
const M = f.join("&"), H = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
2976
2963
|
return await C.makeSearchFetchCall(H);
|
|
2977
2964
|
}
|
|
@@ -3018,10 +3005,10 @@ class C {
|
|
|
3018
3005
|
s && (n = s.short);
|
|
3019
3006
|
}
|
|
3020
3007
|
if (a && !n) {
|
|
3021
|
-
const s = a.split(" "),
|
|
3022
|
-
if (
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3008
|
+
const s = a.split(" "), i = s[s.length - 1];
|
|
3009
|
+
if (i.length) {
|
|
3010
|
+
const r = this.searchInStates(i);
|
|
3011
|
+
r && (n = r.short, a = s.slice(0, -1).join(" "));
|
|
3025
3012
|
}
|
|
3026
3013
|
}
|
|
3027
3014
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|