@vehiclehistory/property-lib 0.0.97 → 0.0.951
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/README.md +0 -1
- package/dist/main.es.js +374 -392
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -501,11 +501,11 @@ const W = {
|
|
|
501
501
|
size: a = "medium",
|
|
502
502
|
viewBox: n = "0 0 20 20"
|
|
503
503
|
}) => {
|
|
504
|
-
const s = G(t), [
|
|
504
|
+
const s = G(t), [l, o] = Z(d), [r, i] = Z(s);
|
|
505
505
|
return N(() => {
|
|
506
|
-
|
|
506
|
+
i(s);
|
|
507
507
|
}, [s]), N(() => {
|
|
508
|
-
|
|
508
|
+
o(d);
|
|
509
509
|
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
|
|
510
510
|
"svg",
|
|
511
511
|
{
|
|
@@ -513,34 +513,34 @@ const W = {
|
|
|
513
513
|
className: m(
|
|
514
514
|
"fill-current flex-shrink-0",
|
|
515
515
|
W[a],
|
|
516
|
-
|
|
516
|
+
l,
|
|
517
517
|
e
|
|
518
518
|
),
|
|
519
519
|
style: { maxWidth: "4em" },
|
|
520
520
|
role: "presentation",
|
|
521
521
|
viewBox: n,
|
|
522
522
|
dangerouslySetInnerHTML: {
|
|
523
|
-
__html:
|
|
523
|
+
__html: r && r.path
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
},
|
|
527
|
+
}, y = A(Q), J = ({
|
|
528
528
|
children: d,
|
|
529
529
|
className: e,
|
|
530
530
|
clickHandler: t,
|
|
531
531
|
panelClass: a,
|
|
532
532
|
title: n,
|
|
533
533
|
unmount: s = !0,
|
|
534
|
-
isOpen:
|
|
534
|
+
isOpen: l = !1
|
|
535
535
|
}) => {
|
|
536
|
-
const [
|
|
536
|
+
const [o, r] = Z(l);
|
|
537
537
|
return /* @__PURE__ */ c(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
540
|
className: m(
|
|
541
541
|
"accordion shadow rounded-lg",
|
|
542
542
|
{
|
|
543
|
-
"accordion--open":
|
|
543
|
+
"accordion--open": o
|
|
544
544
|
},
|
|
545
545
|
e
|
|
546
546
|
),
|
|
@@ -554,12 +554,12 @@ const W = {
|
|
|
554
554
|
),
|
|
555
555
|
title: n,
|
|
556
556
|
onClick: () => {
|
|
557
|
-
|
|
557
|
+
r(!o), t && t(!o);
|
|
558
558
|
},
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
561
561
|
/* @__PURE__ */ c("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ c(
|
|
562
|
-
|
|
562
|
+
y,
|
|
563
563
|
{
|
|
564
564
|
name: "chevronDown",
|
|
565
565
|
size: "small",
|
|
@@ -569,7 +569,7 @@ const W = {
|
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
|
-
s &&
|
|
572
|
+
s && o && /* @__PURE__ */ c(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
575
|
className: m(
|
|
@@ -585,7 +585,7 @@ const W = {
|
|
|
585
585
|
className: m(
|
|
586
586
|
"accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
587
587
|
a,
|
|
588
|
-
{ hidden: !
|
|
588
|
+
{ hidden: !o }
|
|
589
589
|
),
|
|
590
590
|
children: d
|
|
591
591
|
}
|
|
@@ -600,10 +600,10 @@ const W = {
|
|
|
600
600
|
messagesClass: a,
|
|
601
601
|
title: n = "",
|
|
602
602
|
titleClass: s = "",
|
|
603
|
-
props:
|
|
604
|
-
type:
|
|
603
|
+
props: l = {},
|
|
604
|
+
type: o = "error"
|
|
605
605
|
}) => {
|
|
606
|
-
const
|
|
606
|
+
const r = {
|
|
607
607
|
error: {
|
|
608
608
|
icon: "error",
|
|
609
609
|
iconColor: "text-red-500",
|
|
@@ -624,22 +624,22 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon:
|
|
627
|
+
}, { icon: i, iconColor: p, styles: u } = r[o];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
|
-
id:
|
|
631
|
+
id: o,
|
|
632
632
|
className: m(
|
|
633
633
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
634
|
u,
|
|
635
635
|
e
|
|
636
636
|
),
|
|
637
|
-
...
|
|
637
|
+
...l,
|
|
638
638
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
639
639
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
|
-
|
|
640
|
+
y,
|
|
641
641
|
{
|
|
642
|
-
name:
|
|
642
|
+
name: i,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
644
|
className: p,
|
|
645
645
|
size: "xSmall"
|
|
@@ -655,7 +655,7 @@ const W = {
|
|
|
655
655
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
656
656
|
a
|
|
657
657
|
),
|
|
658
|
-
children: t.map((
|
|
658
|
+
children: t.map((H, C) => /* @__PURE__ */ c("li", { children: H }, C))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -670,17 +670,17 @@ const W = {
|
|
|
670
670
|
defaultValue: a = "",
|
|
671
671
|
floatingLabel: n = "",
|
|
672
672
|
id: s = "",
|
|
673
|
-
inputClass:
|
|
674
|
-
leftIcon:
|
|
675
|
-
mobileBackdrop:
|
|
676
|
-
name:
|
|
673
|
+
inputClass: l,
|
|
674
|
+
leftIcon: o = "homeSearch",
|
|
675
|
+
mobileBackdrop: r = !1,
|
|
676
|
+
name: i = "",
|
|
677
677
|
options: p = [],
|
|
678
678
|
parentProps: u = {},
|
|
679
|
-
placeholder:
|
|
679
|
+
placeholder: H = "",
|
|
680
680
|
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
682
|
required: g = !1,
|
|
683
|
-
showSearchIcon:
|
|
683
|
+
showSearchIcon: x = !0,
|
|
684
684
|
showRightIcon: h = !1,
|
|
685
685
|
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
@@ -701,27 +701,27 @@ const W = {
|
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
702
|
...u,
|
|
703
703
|
children: [
|
|
704
|
-
|
|
704
|
+
x && /* @__PURE__ */ M(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
707
|
className: m(
|
|
708
708
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
709
709
|
{
|
|
710
|
-
"pointer-events-none":
|
|
710
|
+
"pointer-events-none": r
|
|
711
711
|
}
|
|
712
712
|
),
|
|
713
713
|
children: [
|
|
714
714
|
/* @__PURE__ */ c(
|
|
715
|
-
|
|
715
|
+
y,
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
|
-
name:
|
|
718
|
+
name: o,
|
|
719
719
|
size: v === "xLarge" ? "small" : "xSmall",
|
|
720
720
|
viewBox: "0 0 24 24"
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
723
|
/* @__PURE__ */ c(
|
|
724
|
-
|
|
724
|
+
y,
|
|
725
725
|
{
|
|
726
726
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
727
727
|
name: "arrowLeft",
|
|
@@ -740,19 +740,19 @@ const W = {
|
|
|
740
740
|
className: m(
|
|
741
741
|
"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",
|
|
742
742
|
{
|
|
743
|
-
"pl-8":
|
|
743
|
+
"pl-8": x === !0,
|
|
744
744
|
"px-3 h-10": v === "medium",
|
|
745
745
|
"px-4 h-12": v === "large",
|
|
746
746
|
"px-5 h-[60px] sm:!text-base": v === "xLarge",
|
|
747
747
|
peer: n
|
|
748
748
|
},
|
|
749
|
-
|
|
749
|
+
l
|
|
750
750
|
),
|
|
751
751
|
required: g,
|
|
752
752
|
autoComplete: "off",
|
|
753
|
-
placeholder: !
|
|
753
|
+
placeholder: !H && n ? " " : H,
|
|
754
754
|
type: "search",
|
|
755
|
-
name:
|
|
755
|
+
name: i || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
758
|
...C
|
|
@@ -764,7 +764,7 @@ const W = {
|
|
|
764
764
|
className: m(
|
|
765
765
|
"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",
|
|
766
766
|
{
|
|
767
|
-
"!left-7":
|
|
767
|
+
"!left-7": x === !0,
|
|
768
768
|
"left-2": v === "medium",
|
|
769
769
|
"left-3": v === "large",
|
|
770
770
|
"left-4": v === "xLarge"
|
|
@@ -779,7 +779,7 @@ const W = {
|
|
|
779
779
|
"data-id": "search-clear",
|
|
780
780
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
781
781
|
children: /* @__PURE__ */ c(
|
|
782
|
-
|
|
782
|
+
y,
|
|
783
783
|
{
|
|
784
784
|
className: "cursor-pointer text-gray-500",
|
|
785
785
|
name: "xCircle",
|
|
@@ -795,7 +795,7 @@ const W = {
|
|
|
795
795
|
"data-id": "search-loading",
|
|
796
796
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
797
797
|
children: /* @__PURE__ */ c(
|
|
798
|
-
|
|
798
|
+
y,
|
|
799
799
|
{
|
|
800
800
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
801
801
|
name: "spinnerDark",
|
|
@@ -810,7 +810,7 @@ const W = {
|
|
|
810
810
|
{
|
|
811
811
|
"data-id": "right-icon",
|
|
812
812
|
className: `${h ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
813
|
-
children: /* @__PURE__ */ c(
|
|
813
|
+
children: /* @__PURE__ */ c(y, { name: f, size: "small", viewBox: "0 0 24 24" })
|
|
814
814
|
}
|
|
815
815
|
),
|
|
816
816
|
/* @__PURE__ */ M(
|
|
@@ -874,21 +874,21 @@ const W = {
|
|
|
874
874
|
children: a,
|
|
875
875
|
className: n,
|
|
876
876
|
disabled: s = !1,
|
|
877
|
-
href:
|
|
878
|
-
props:
|
|
879
|
-
rightIcon:
|
|
880
|
-
rightIconProps:
|
|
877
|
+
href: l,
|
|
878
|
+
props: o = {},
|
|
879
|
+
rightIcon: r,
|
|
880
|
+
rightIconProps: i = {},
|
|
881
881
|
rounded: p = !1,
|
|
882
882
|
size: u = "md",
|
|
883
|
-
type:
|
|
883
|
+
type: H = "button",
|
|
884
884
|
uppercase: C = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
|
-
const g =
|
|
887
|
+
const g = l ? "a" : "button";
|
|
888
888
|
return /* @__PURE__ */ M(
|
|
889
889
|
g,
|
|
890
890
|
{
|
|
891
|
-
type: g !== "a" ?
|
|
891
|
+
type: g !== "a" ? H : null,
|
|
892
892
|
className: m(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
@@ -896,18 +896,18 @@ const W = {
|
|
|
896
896
|
[`button--${u}`]: u,
|
|
897
897
|
"button--rounded": p,
|
|
898
898
|
"button--disabled": s,
|
|
899
|
-
"button--custom-link":
|
|
899
|
+
"button--custom-link": l,
|
|
900
900
|
"button--uppercase": C,
|
|
901
901
|
"button--borderless": d || f === "link"
|
|
902
902
|
},
|
|
903
903
|
n
|
|
904
904
|
),
|
|
905
905
|
disabled: s,
|
|
906
|
-
href:
|
|
907
|
-
...
|
|
906
|
+
href: l,
|
|
907
|
+
...o,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
y,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
913
|
size: u === "md" ? "small" : "xSmall",
|
|
@@ -916,13 +916,13 @@ const W = {
|
|
|
916
916
|
}
|
|
917
917
|
),
|
|
918
918
|
a,
|
|
919
|
-
|
|
920
|
-
|
|
919
|
+
r && /* @__PURE__ */ c(
|
|
920
|
+
y,
|
|
921
921
|
{
|
|
922
|
-
name:
|
|
922
|
+
name: r,
|
|
923
923
|
size: u === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
|
-
...
|
|
925
|
+
...i
|
|
926
926
|
}
|
|
927
927
|
)
|
|
928
928
|
]
|
|
@@ -935,18 +935,18 @@ const W = {
|
|
|
935
935
|
error: a = !1,
|
|
936
936
|
inputClass: n,
|
|
937
937
|
id: s = "",
|
|
938
|
-
label:
|
|
939
|
-
name:
|
|
940
|
-
props:
|
|
941
|
-
variation:
|
|
938
|
+
label: l = "",
|
|
939
|
+
name: o = "",
|
|
940
|
+
props: r = {},
|
|
941
|
+
variation: i = "primary",
|
|
942
942
|
value: p = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const u =
|
|
944
|
+
const u = l ? "div" : "label", H = u === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ M(
|
|
946
946
|
u,
|
|
947
947
|
{
|
|
948
|
-
className: m("checkbox flex items-center",
|
|
949
|
-
...
|
|
948
|
+
className: m("checkbox flex items-center", i, t),
|
|
949
|
+
...H,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
952
952
|
"input",
|
|
@@ -960,10 +960,10 @@ const W = {
|
|
|
960
960
|
n
|
|
961
961
|
),
|
|
962
962
|
id: s,
|
|
963
|
-
name:
|
|
963
|
+
name: o,
|
|
964
964
|
type: "checkbox",
|
|
965
965
|
value: p,
|
|
966
|
-
...
|
|
966
|
+
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
969
969
|
e
|
|
@@ -977,17 +977,17 @@ const W = {
|
|
|
977
977
|
className: a,
|
|
978
978
|
contentClass: n,
|
|
979
979
|
customScrollbar: s = !0,
|
|
980
|
-
dark:
|
|
981
|
-
disableClose:
|
|
982
|
-
footer:
|
|
983
|
-
fullMobile:
|
|
980
|
+
dark: l = !1,
|
|
981
|
+
disableClose: o = !1,
|
|
982
|
+
footer: r,
|
|
983
|
+
fullMobile: i = !0,
|
|
984
984
|
headerClass: p,
|
|
985
985
|
hideClose: u = !1,
|
|
986
|
-
iconSize:
|
|
986
|
+
iconSize: H = "medium",
|
|
987
987
|
preventPageScroll: C = !0,
|
|
988
988
|
stickyHeader: f = !1,
|
|
989
989
|
title: g = "",
|
|
990
|
-
titleClass:
|
|
990
|
+
titleClass: x,
|
|
991
991
|
useFormMethod: h = !0
|
|
992
992
|
}) => {
|
|
993
993
|
const v = h ? "form" : "div";
|
|
@@ -997,13 +997,13 @@ const W = {
|
|
|
997
997
|
"dialog",
|
|
998
998
|
{
|
|
999
999
|
inert: "",
|
|
1000
|
-
...
|
|
1000
|
+
...o ? { closedby: "none" } : null,
|
|
1001
1001
|
id: `${e}-dialog`,
|
|
1002
1002
|
className: m(
|
|
1003
1003
|
"dialog",
|
|
1004
1004
|
{
|
|
1005
|
-
"dialog-full-mobile":
|
|
1006
|
-
dark:
|
|
1005
|
+
"dialog-full-mobile": i,
|
|
1006
|
+
dark: l,
|
|
1007
1007
|
"prevent-scroll": C
|
|
1008
1008
|
},
|
|
1009
1009
|
a
|
|
@@ -1027,7 +1027,7 @@ const W = {
|
|
|
1027
1027
|
p
|
|
1028
1028
|
),
|
|
1029
1029
|
children: [
|
|
1030
|
-
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className:
|
|
1030
|
+
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: x, children: g }),
|
|
1031
1031
|
!u && /* @__PURE__ */ c(
|
|
1032
1032
|
"button",
|
|
1033
1033
|
{
|
|
@@ -1037,10 +1037,10 @@ const W = {
|
|
|
1037
1037
|
"data-dialog-close": "",
|
|
1038
1038
|
value: "close",
|
|
1039
1039
|
children: /* @__PURE__ */ c(
|
|
1040
|
-
|
|
1040
|
+
y,
|
|
1041
1041
|
{
|
|
1042
1042
|
name: "close",
|
|
1043
|
-
size:
|
|
1043
|
+
size: H,
|
|
1044
1044
|
className: "pointer-events-none"
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
@@ -1063,7 +1063,7 @@ const W = {
|
|
|
1063
1063
|
children: t
|
|
1064
1064
|
}
|
|
1065
1065
|
),
|
|
1066
|
-
|
|
1066
|
+
r && /* @__PURE__ */ c("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1067
1067
|
]
|
|
1068
1068
|
}
|
|
1069
1069
|
)
|
|
@@ -1087,23 +1087,23 @@ const W = {
|
|
|
1087
1087
|
timeout: n = 1e4,
|
|
1088
1088
|
variation: s = "primary"
|
|
1089
1089
|
}) => {
|
|
1090
|
-
function
|
|
1091
|
-
const
|
|
1092
|
-
if (!
|
|
1093
|
-
let
|
|
1094
|
-
function
|
|
1095
|
-
|
|
1096
|
-
const f = C -
|
|
1090
|
+
function l({ cb: o }) {
|
|
1091
|
+
const r = document.querySelector(".loading-bar__inner");
|
|
1092
|
+
if (!r) return;
|
|
1093
|
+
let i, p, u = !1;
|
|
1094
|
+
function H(C) {
|
|
1095
|
+
i === void 0 && (i = C);
|
|
1096
|
+
const f = C - i;
|
|
1097
1097
|
if (p !== C) {
|
|
1098
1098
|
const g = f / n * 101;
|
|
1099
|
-
|
|
1099
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), u = !0, window.cancelAnimationFrame(C));
|
|
1100
1100
|
}
|
|
1101
|
-
f < n && (p = C, u || window.requestAnimationFrame(
|
|
1101
|
+
f < n && (p = C, u || window.requestAnimationFrame(H));
|
|
1102
1102
|
}
|
|
1103
|
-
window.requestAnimationFrame(
|
|
1103
|
+
window.requestAnimationFrame(H);
|
|
1104
1104
|
}
|
|
1105
1105
|
return N(() => {
|
|
1106
|
-
|
|
1106
|
+
l({ cb: d });
|
|
1107
1107
|
}, []), /* @__PURE__ */ c(
|
|
1108
1108
|
"div",
|
|
1109
1109
|
{
|
|
@@ -1128,9 +1128,9 @@ const W = {
|
|
|
1128
1128
|
children: a,
|
|
1129
1129
|
className: n = "",
|
|
1130
1130
|
containerClass: s = "",
|
|
1131
|
-
disabled:
|
|
1132
|
-
options:
|
|
1133
|
-
trigger:
|
|
1131
|
+
disabled: l = !1,
|
|
1132
|
+
options: o = {},
|
|
1133
|
+
trigger: r = "click"
|
|
1134
1134
|
}) => /* @__PURE__ */ M(S, { children: [
|
|
1135
1135
|
/* @__PURE__ */ c(
|
|
1136
1136
|
"div",
|
|
@@ -1162,14 +1162,14 @@ const W = {
|
|
|
1162
1162
|
{
|
|
1163
1163
|
className: m(
|
|
1164
1164
|
"popover-activator",
|
|
1165
|
-
`trigger-${
|
|
1165
|
+
`trigger-${r}`,
|
|
1166
1166
|
{
|
|
1167
|
-
"is-disabled":
|
|
1167
|
+
"is-disabled": l
|
|
1168
1168
|
},
|
|
1169
1169
|
e
|
|
1170
1170
|
),
|
|
1171
1171
|
...t,
|
|
1172
|
-
"data-options": JSON.stringify(
|
|
1172
|
+
"data-options": JSON.stringify(o),
|
|
1173
1173
|
children: d
|
|
1174
1174
|
}
|
|
1175
1175
|
)
|
|
@@ -1180,24 +1180,24 @@ const W = {
|
|
|
1180
1180
|
className: a,
|
|
1181
1181
|
completed: n = 0,
|
|
1182
1182
|
customLabel: s,
|
|
1183
|
-
labelClass:
|
|
1184
|
-
maxCompleted:
|
|
1185
|
-
rounded:
|
|
1186
|
-
showLabel:
|
|
1183
|
+
labelClass: l,
|
|
1184
|
+
maxCompleted: o = 100,
|
|
1185
|
+
rounded: r = !0,
|
|
1186
|
+
showLabel: i = !1
|
|
1187
1187
|
}) => {
|
|
1188
|
-
const u = ((
|
|
1189
|
-
if (
|
|
1190
|
-
const f = Number(C) /
|
|
1188
|
+
const u = ((H, C) => {
|
|
1189
|
+
if (H) {
|
|
1190
|
+
const f = Number(C) / H;
|
|
1191
1191
|
return f > 1 ? 100 : f * 100;
|
|
1192
1192
|
}
|
|
1193
1193
|
return n;
|
|
1194
|
-
})(
|
|
1194
|
+
})(o, n);
|
|
1195
1195
|
return /* @__PURE__ */ c(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
1198
|
className: m(
|
|
1199
1199
|
"w-full bg-gray-200",
|
|
1200
|
-
{ "rounded-full":
|
|
1200
|
+
{ "rounded-full": r },
|
|
1201
1201
|
a
|
|
1202
1202
|
),
|
|
1203
1203
|
role: "progressbar",
|
|
@@ -1213,12 +1213,12 @@ const W = {
|
|
|
1213
1213
|
t
|
|
1214
1214
|
),
|
|
1215
1215
|
style: { width: `${u}%` },
|
|
1216
|
-
children:
|
|
1216
|
+
children: i && /* @__PURE__ */ c(
|
|
1217
1217
|
"span",
|
|
1218
1218
|
{
|
|
1219
1219
|
className: m(
|
|
1220
1220
|
"font-bold text-white text-xs mr-2",
|
|
1221
|
-
|
|
1221
|
+
l
|
|
1222
1222
|
),
|
|
1223
1223
|
children: s || Math.round(u)
|
|
1224
1224
|
}
|
|
@@ -1234,10 +1234,10 @@ const W = {
|
|
|
1234
1234
|
id: a = "",
|
|
1235
1235
|
inputClass: n,
|
|
1236
1236
|
label: s = "",
|
|
1237
|
-
name:
|
|
1238
|
-
props:
|
|
1239
|
-
variation:
|
|
1240
|
-
value:
|
|
1237
|
+
name: l = "",
|
|
1238
|
+
props: o = {},
|
|
1239
|
+
variation: r = "primary",
|
|
1240
|
+
value: i = ""
|
|
1241
1241
|
}) => {
|
|
1242
1242
|
const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
|
|
1243
1243
|
return /* @__PURE__ */ M(
|
|
@@ -1253,15 +1253,15 @@ const W = {
|
|
|
1253
1253
|
className: m(
|
|
1254
1254
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1255
1255
|
{
|
|
1256
|
-
"focus:ring-[#222]":
|
|
1256
|
+
"focus:ring-[#222]": r === "primary"
|
|
1257
1257
|
},
|
|
1258
1258
|
n
|
|
1259
1259
|
),
|
|
1260
1260
|
id: a,
|
|
1261
|
-
name:
|
|
1261
|
+
name: l,
|
|
1262
1262
|
type: "radio",
|
|
1263
|
-
value:
|
|
1264
|
-
...
|
|
1263
|
+
value: i,
|
|
1264
|
+
...o
|
|
1265
1265
|
}
|
|
1266
1266
|
),
|
|
1267
1267
|
e
|
|
@@ -1275,15 +1275,15 @@ const W = {
|
|
|
1275
1275
|
id: a = "",
|
|
1276
1276
|
label: n = "",
|
|
1277
1277
|
name: s = "",
|
|
1278
|
-
options:
|
|
1279
|
-
placeholder:
|
|
1280
|
-
props:
|
|
1281
|
-
selectClass:
|
|
1278
|
+
options: l = [],
|
|
1279
|
+
placeholder: o = "",
|
|
1280
|
+
props: r = {},
|
|
1281
|
+
selectClass: i = "",
|
|
1282
1282
|
styles: p = null,
|
|
1283
1283
|
variation: u = "primary",
|
|
1284
|
-
value:
|
|
1284
|
+
value: H
|
|
1285
1285
|
}) => {
|
|
1286
|
-
const C =
|
|
1286
|
+
const C = o ? { defaultValue: "" } : {};
|
|
1287
1287
|
return /* @__PURE__ */ M(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
@@ -1299,16 +1299,16 @@ const W = {
|
|
|
1299
1299
|
{
|
|
1300
1300
|
"!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500": e
|
|
1301
1301
|
},
|
|
1302
|
-
|
|
1302
|
+
i
|
|
1303
1303
|
),
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
1306
|
-
value:
|
|
1306
|
+
value: H,
|
|
1307
1307
|
...C,
|
|
1308
|
-
...
|
|
1308
|
+
...r,
|
|
1309
1309
|
children: [
|
|
1310
|
-
|
|
1311
|
-
|
|
1310
|
+
o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
|
|
1311
|
+
l.map((f) => /* @__PURE__ */ c(
|
|
1312
1312
|
"option",
|
|
1313
1313
|
{
|
|
1314
1314
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
@@ -1323,7 +1323,7 @@ const W = {
|
|
|
1323
1323
|
]
|
|
1324
1324
|
}
|
|
1325
1325
|
);
|
|
1326
|
-
}, U1 = A(s1),
|
|
1326
|
+
}, U1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
1329
1329
|
className: m(
|
|
@@ -1331,11 +1331,11 @@ const W = {
|
|
|
1331
1331
|
d
|
|
1332
1332
|
),
|
|
1333
1333
|
children: [
|
|
1334
|
-
/* @__PURE__ */ c(
|
|
1334
|
+
/* @__PURE__ */ c(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1335
1335
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1336
1336
|
]
|
|
1337
1337
|
}
|
|
1338
|
-
), G1 = A(
|
|
1338
|
+
), G1 = A(r1), l1 = ({
|
|
1339
1339
|
placeholderClass: d = "",
|
|
1340
1340
|
children: e,
|
|
1341
1341
|
className: t,
|
|
@@ -1349,16 +1349,16 @@ const W = {
|
|
|
1349
1349
|
id: `btn-left-${a}`,
|
|
1350
1350
|
type: "button",
|
|
1351
1351
|
className: "slider-button__prev ",
|
|
1352
|
-
children: /* @__PURE__ */ c(
|
|
1352
|
+
children: /* @__PURE__ */ c(y, { name: "chevronLeft" })
|
|
1353
1353
|
}
|
|
1354
1354
|
),
|
|
1355
|
-
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s,
|
|
1355
|
+
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
|
|
1356
1356
|
"div",
|
|
1357
1357
|
{
|
|
1358
1358
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1359
1359
|
children: /* @__PURE__ */ c("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1360
1360
|
},
|
|
1361
|
-
|
|
1361
|
+
l
|
|
1362
1362
|
)) }),
|
|
1363
1363
|
/* @__PURE__ */ c(
|
|
1364
1364
|
"button",
|
|
@@ -1367,11 +1367,11 @@ const W = {
|
|
|
1367
1367
|
id: `btn-right-${a}`,
|
|
1368
1368
|
type: "button",
|
|
1369
1369
|
className: "slider-button__next",
|
|
1370
|
-
children: /* @__PURE__ */ c(
|
|
1370
|
+
children: /* @__PURE__ */ c(y, { name: "chevronRight" })
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
|
-
] }), Q1 = A(
|
|
1374
|
-
|
|
1373
|
+
] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1374
|
+
y,
|
|
1375
1375
|
{
|
|
1376
1376
|
className: m("animate-spin text-black-900", e),
|
|
1377
1377
|
size: "xSmall",
|
|
@@ -1403,19 +1403,19 @@ const W = {
|
|
|
1403
1403
|
errorMessage: a = "",
|
|
1404
1404
|
id: n = "",
|
|
1405
1405
|
inputClass: s = "",
|
|
1406
|
-
name:
|
|
1407
|
-
placeholder:
|
|
1408
|
-
props:
|
|
1409
|
-
rows:
|
|
1406
|
+
name: l = "",
|
|
1407
|
+
placeholder: o = "",
|
|
1408
|
+
props: r = {},
|
|
1409
|
+
rows: i = 4,
|
|
1410
1410
|
variation: p = "primary"
|
|
1411
1411
|
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", p, d), children: [
|
|
1412
1412
|
/* @__PURE__ */ c(
|
|
1413
1413
|
"textarea",
|
|
1414
1414
|
{
|
|
1415
|
-
placeholder:
|
|
1415
|
+
placeholder: o,
|
|
1416
1416
|
id: n,
|
|
1417
|
-
name:
|
|
1418
|
-
rows:
|
|
1417
|
+
name: l,
|
|
1418
|
+
rows: i,
|
|
1419
1419
|
className: m(
|
|
1420
1420
|
"form-textarea min-h-[40px] pl-4",
|
|
1421
1421
|
e ? "pr-10" : "pr-4",
|
|
@@ -1424,7 +1424,7 @@ const W = {
|
|
|
1424
1424
|
},
|
|
1425
1425
|
s
|
|
1426
1426
|
),
|
|
1427
|
-
...
|
|
1427
|
+
...r
|
|
1428
1428
|
}
|
|
1429
1429
|
),
|
|
1430
1430
|
e && /* @__PURE__ */ c(
|
|
@@ -1433,7 +1433,7 @@ const W = {
|
|
|
1433
1433
|
id: `${n}-clear`,
|
|
1434
1434
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1435
1435
|
children: /* @__PURE__ */ c(
|
|
1436
|
-
|
|
1436
|
+
y,
|
|
1437
1437
|
{
|
|
1438
1438
|
size: "xSmall",
|
|
1439
1439
|
name: "xCircle",
|
|
@@ -1450,13 +1450,13 @@ const W = {
|
|
|
1450
1450
|
errorMessage: a = "",
|
|
1451
1451
|
iconLeft: n = "",
|
|
1452
1452
|
id: s = "",
|
|
1453
|
-
inputClass:
|
|
1454
|
-
name:
|
|
1455
|
-
placeholder:
|
|
1456
|
-
props:
|
|
1453
|
+
inputClass: l,
|
|
1454
|
+
name: o = "",
|
|
1455
|
+
placeholder: r = "",
|
|
1456
|
+
props: i = {},
|
|
1457
1457
|
styles: p = null,
|
|
1458
1458
|
type: u = "text",
|
|
1459
|
-
value:
|
|
1459
|
+
value: H,
|
|
1460
1460
|
variation: C = "primary"
|
|
1461
1461
|
}) => /* @__PURE__ */ M(
|
|
1462
1462
|
"div",
|
|
@@ -1465,7 +1465,7 @@ const W = {
|
|
|
1465
1465
|
style: p ? { ...p } : null,
|
|
1466
1466
|
children: [
|
|
1467
1467
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1468
|
-
|
|
1468
|
+
y,
|
|
1469
1469
|
{
|
|
1470
1470
|
size: "xSmall",
|
|
1471
1471
|
name: n,
|
|
@@ -1476,11 +1476,11 @@ const W = {
|
|
|
1476
1476
|
/* @__PURE__ */ c(
|
|
1477
1477
|
"input",
|
|
1478
1478
|
{
|
|
1479
|
-
placeholder:
|
|
1479
|
+
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
|
-
name:
|
|
1481
|
+
name: o,
|
|
1482
1482
|
type: u,
|
|
1483
|
-
value:
|
|
1483
|
+
value: H,
|
|
1484
1484
|
autoComplete: "off",
|
|
1485
1485
|
className: m(
|
|
1486
1486
|
"form-input",
|
|
@@ -1489,10 +1489,10 @@ const W = {
|
|
|
1489
1489
|
{
|
|
1490
1490
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1491
1491
|
},
|
|
1492
|
-
|
|
1493
|
-
|
|
1492
|
+
i.inputClass ?? "",
|
|
1493
|
+
l
|
|
1494
1494
|
),
|
|
1495
|
-
...
|
|
1495
|
+
...i
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
1498
|
e && /* @__PURE__ */ c(
|
|
@@ -1501,7 +1501,7 @@ const W = {
|
|
|
1501
1501
|
id: `${s}-clear`,
|
|
1502
1502
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1503
1503
|
children: /* @__PURE__ */ c(
|
|
1504
|
-
|
|
1504
|
+
y,
|
|
1505
1505
|
{
|
|
1506
1506
|
size: "xSmall",
|
|
1507
1507
|
name: "xCircle",
|
|
@@ -1542,9 +1542,9 @@ const W = {
|
|
|
1542
1542
|
customSuccessMsg: a = "",
|
|
1543
1543
|
title: n = "Send A Message",
|
|
1544
1544
|
titleClass: s,
|
|
1545
|
-
uppercase:
|
|
1545
|
+
uppercase: l = !0
|
|
1546
1546
|
}) => {
|
|
1547
|
-
const
|
|
1547
|
+
const o = a || /* @__PURE__ */ M(S, { children: [
|
|
1548
1548
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1549
1549
|
" ",
|
|
1550
1550
|
/* @__PURE__ */ c(
|
|
@@ -1566,11 +1566,11 @@ const W = {
|
|
|
1566
1566
|
{
|
|
1567
1567
|
id: "contactForm",
|
|
1568
1568
|
className: m("contact-form", t, {
|
|
1569
|
-
uppercase:
|
|
1569
|
+
uppercase: l
|
|
1570
1570
|
}),
|
|
1571
1571
|
children: [
|
|
1572
1572
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1573
|
-
/* @__PURE__ */ c("p", { className: "contact-form__msg", children:
|
|
1573
|
+
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: o }),
|
|
1574
1574
|
/* @__PURE__ */ M(
|
|
1575
1575
|
"div",
|
|
1576
1576
|
{
|
|
@@ -1586,7 +1586,7 @@ const W = {
|
|
|
1586
1586
|
name: "contact-name",
|
|
1587
1587
|
placeholder: "Name",
|
|
1588
1588
|
inputClass: m({
|
|
1589
|
-
"placeholder:uppercase":
|
|
1589
|
+
"placeholder:uppercase": l
|
|
1590
1590
|
})
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
@@ -1597,7 +1597,7 @@ const W = {
|
|
|
1597
1597
|
name: "contact-email",
|
|
1598
1598
|
placeholder: "Email",
|
|
1599
1599
|
inputClass: m({
|
|
1600
|
-
"placeholder:uppercase":
|
|
1600
|
+
"placeholder:uppercase": l
|
|
1601
1601
|
})
|
|
1602
1602
|
}
|
|
1603
1603
|
),
|
|
@@ -1608,7 +1608,7 @@ const W = {
|
|
|
1608
1608
|
name: "contact-message",
|
|
1609
1609
|
placeholder: "Message",
|
|
1610
1610
|
inputClass: m({
|
|
1611
|
-
"placeholder:uppercase":
|
|
1611
|
+
"placeholder:uppercase": l
|
|
1612
1612
|
})
|
|
1613
1613
|
}
|
|
1614
1614
|
),
|
|
@@ -1618,7 +1618,7 @@ const W = {
|
|
|
1618
1618
|
className: m(
|
|
1619
1619
|
"flex mx-auto items-center",
|
|
1620
1620
|
{
|
|
1621
|
-
uppercase:
|
|
1621
|
+
uppercase: l
|
|
1622
1622
|
},
|
|
1623
1623
|
d
|
|
1624
1624
|
),
|
|
@@ -1640,13 +1640,13 @@ const W = {
|
|
|
1640
1640
|
contentClass: a,
|
|
1641
1641
|
footerClass: n,
|
|
1642
1642
|
footerContent: s,
|
|
1643
|
-
headerContent:
|
|
1644
|
-
headerClass:
|
|
1645
|
-
list:
|
|
1646
|
-
props:
|
|
1643
|
+
headerContent: l,
|
|
1644
|
+
headerClass: o,
|
|
1645
|
+
list: r = !1,
|
|
1646
|
+
props: i = {},
|
|
1647
1647
|
variation: p = "primary"
|
|
1648
1648
|
}) => {
|
|
1649
|
-
const u =
|
|
1649
|
+
const u = r ? "ul" : "div";
|
|
1650
1650
|
return /* @__PURE__ */ M(
|
|
1651
1651
|
"div",
|
|
1652
1652
|
{
|
|
@@ -1656,14 +1656,14 @@ const W = {
|
|
|
1656
1656
|
`content-card--${p}`,
|
|
1657
1657
|
t
|
|
1658
1658
|
),
|
|
1659
|
-
...
|
|
1659
|
+
...i,
|
|
1660
1660
|
children: [
|
|
1661
|
-
|
|
1661
|
+
l && /* @__PURE__ */ c("div", { className: m("content-card__header", o), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1662
1662
|
/* @__PURE__ */ c(
|
|
1663
1663
|
u,
|
|
1664
1664
|
{
|
|
1665
1665
|
className: m("content-card__content", a),
|
|
1666
|
-
role:
|
|
1666
|
+
role: r ? "list" : null,
|
|
1667
1667
|
children: e
|
|
1668
1668
|
}
|
|
1669
1669
|
),
|
|
@@ -1678,10 +1678,10 @@ const W = {
|
|
|
1678
1678
|
direction: a = "col",
|
|
1679
1679
|
label: n,
|
|
1680
1680
|
labelClass: s,
|
|
1681
|
-
props:
|
|
1682
|
-
rowGap:
|
|
1683
|
-
value:
|
|
1684
|
-
valueClass:
|
|
1681
|
+
props: l = {},
|
|
1682
|
+
rowGap: o = 1,
|
|
1683
|
+
value: r,
|
|
1684
|
+
valueClass: i,
|
|
1685
1685
|
wrap: p = !1
|
|
1686
1686
|
}) => /* @__PURE__ */ M(
|
|
1687
1687
|
"div",
|
|
@@ -1697,12 +1697,12 @@ const W = {
|
|
|
1697
1697
|
),
|
|
1698
1698
|
style: {
|
|
1699
1699
|
columnGap: `${t / 4}rem`,
|
|
1700
|
-
rowGap: `${
|
|
1700
|
+
rowGap: `${o / 4}rem`
|
|
1701
1701
|
},
|
|
1702
|
-
...
|
|
1702
|
+
...l,
|
|
1703
1703
|
children: [
|
|
1704
1704
|
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1705
|
-
|
|
1705
|
+
r && /* @__PURE__ */ c("div", { className: m("item-value", i), children: r }),
|
|
1706
1706
|
d
|
|
1707
1707
|
]
|
|
1708
1708
|
}
|
|
@@ -1713,8 +1713,8 @@ const W = {
|
|
|
1713
1713
|
noPrint: a = !1,
|
|
1714
1714
|
props: n = {},
|
|
1715
1715
|
title: s,
|
|
1716
|
-
titleClass:
|
|
1717
|
-
titleId:
|
|
1716
|
+
titleClass: l,
|
|
1717
|
+
titleId: o
|
|
1718
1718
|
}) => /* @__PURE__ */ M(
|
|
1719
1719
|
"section",
|
|
1720
1720
|
{
|
|
@@ -1728,7 +1728,7 @@ const W = {
|
|
|
1728
1728
|
),
|
|
1729
1729
|
...n,
|
|
1730
1730
|
children: [
|
|
1731
|
-
s && /* @__PURE__ */ c("h2", { className: m("spacer-title",
|
|
1731
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id: o, children: s }),
|
|
1732
1732
|
e
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
@@ -1888,7 +1888,7 @@ const W = {
|
|
|
1888
1888
|
}, A1 = {
|
|
1889
1889
|
0: "0ms",
|
|
1890
1890
|
50: "50ms"
|
|
1891
|
-
},
|
|
1891
|
+
}, y1 = {
|
|
1892
1892
|
"center-top": "center 30%"
|
|
1893
1893
|
}, O = {
|
|
1894
1894
|
animation: V1,
|
|
@@ -1900,7 +1900,7 @@ const W = {
|
|
|
1900
1900
|
maxWidth: v1,
|
|
1901
1901
|
screens: b1,
|
|
1902
1902
|
transitionDuration: A1,
|
|
1903
|
-
transformOrigin:
|
|
1903
|
+
transformOrigin: y1
|
|
1904
1904
|
}, I = {
|
|
1905
1905
|
black: {
|
|
1906
1906
|
50: "#FCFCFC",
|
|
@@ -2011,7 +2011,7 @@ const W = {
|
|
|
2011
2011
|
}, s2 = {
|
|
2012
2012
|
...I,
|
|
2013
2013
|
...B
|
|
2014
|
-
},
|
|
2014
|
+
}, x1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2015
2015
|
{
|
|
2016
2016
|
aspect: (t) => ({
|
|
2017
2017
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2056,27 +2056,27 @@ const W = {
|
|
|
2056
2056
|
fixedProps: a = {},
|
|
2057
2057
|
sizeProps: n = null,
|
|
2058
2058
|
sizes: s,
|
|
2059
|
-
weights:
|
|
2060
|
-
weightProps:
|
|
2059
|
+
weights: l,
|
|
2060
|
+
weightProps: o = null
|
|
2061
2061
|
}) => {
|
|
2062
|
-
const
|
|
2063
|
-
Object.entries(s).forEach(([
|
|
2062
|
+
const r = {};
|
|
2063
|
+
Object.entries(s).forEach(([i, p]) => {
|
|
2064
2064
|
const u = {
|
|
2065
2065
|
"font-size": p,
|
|
2066
2066
|
...a
|
|
2067
|
-
},
|
|
2068
|
-
|
|
2067
|
+
}, H = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: p }) : {};
|
|
2068
|
+
r[H] = {
|
|
2069
2069
|
...u,
|
|
2070
2070
|
...C
|
|
2071
|
-
}, Object.entries(
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2071
|
+
}, Object.entries(l).forEach(([f, g]) => {
|
|
2072
|
+
const x = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: p, weightKey: f, weightValue: g }) : {};
|
|
2073
|
+
r[x] = {
|
|
2074
2074
|
...u,
|
|
2075
2075
|
"font-weight": g,
|
|
2076
2076
|
...h
|
|
2077
2077
|
};
|
|
2078
2078
|
});
|
|
2079
|
-
}), d(
|
|
2079
|
+
}), d(r);
|
|
2080
2080
|
}, $ = {
|
|
2081
2081
|
aspectRatio: !1,
|
|
2082
2082
|
backdropBlur: !1,
|
|
@@ -2149,7 +2149,7 @@ const W = {
|
|
|
2149
2149
|
medium: "500",
|
|
2150
2150
|
semibold: "600",
|
|
2151
2151
|
bold: "700"
|
|
2152
|
-
},
|
|
2152
|
+
}, l = {
|
|
2153
2153
|
title: "2rem",
|
|
2154
2154
|
1: "1.75rem",
|
|
2155
2155
|
2: "1.625rem",
|
|
@@ -2157,7 +2157,7 @@ const W = {
|
|
|
2157
2157
|
4: "1.25rem",
|
|
2158
2158
|
5: "1.125rem",
|
|
2159
2159
|
6: "1rem"
|
|
2160
|
-
},
|
|
2160
|
+
}, o = {
|
|
2161
2161
|
1: "0.938rem",
|
|
2162
2162
|
"1.5": "0.875rem",
|
|
2163
2163
|
2: "0.813rem",
|
|
@@ -2170,27 +2170,27 @@ const W = {
|
|
|
2170
2170
|
fixedProps: {
|
|
2171
2171
|
"line-height": "1.5"
|
|
2172
2172
|
},
|
|
2173
|
-
sizeProps: ({ sizeKey:
|
|
2174
|
-
"font-weight": n.includes(
|
|
2173
|
+
sizeProps: ({ sizeKey: r }) => ({
|
|
2174
|
+
"font-weight": n.includes(r) ? s.semibold : s.bold
|
|
2175
2175
|
}),
|
|
2176
|
-
sizes:
|
|
2176
|
+
sizes: l,
|
|
2177
2177
|
weights: s
|
|
2178
2178
|
}), T({
|
|
2179
2179
|
addUtilities: d,
|
|
2180
2180
|
e: a,
|
|
2181
2181
|
classPrefix: "text-body",
|
|
2182
|
-
sizes:
|
|
2182
|
+
sizes: o,
|
|
2183
2183
|
weights: s
|
|
2184
|
-
}),
|
|
2184
|
+
}), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
|
|
2185
2185
|
}
|
|
2186
|
-
],
|
|
2186
|
+
], r2 = {
|
|
2187
2187
|
theme: {
|
|
2188
2188
|
extend: O,
|
|
2189
2189
|
colors: I
|
|
2190
2190
|
},
|
|
2191
2191
|
plugins: q,
|
|
2192
2192
|
corePlugins: $
|
|
2193
|
-
},
|
|
2193
|
+
}, l2 = {
|
|
2194
2194
|
theme: {
|
|
2195
2195
|
extend: O,
|
|
2196
2196
|
colors: B
|
|
@@ -2205,7 +2205,7 @@ function z1(d, e = []) {
|
|
|
2205
2205
|
},
|
|
2206
2206
|
set(t, a, n) {
|
|
2207
2207
|
const s = { ...t };
|
|
2208
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2208
|
+
return t[a] = n, e.length > 0 && e.forEach((l) => l(t, s, a)), t;
|
|
2209
2209
|
}
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
@@ -2217,12 +2217,12 @@ function o2(d, e = []) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2219
2219
|
let s = !0;
|
|
2220
|
-
for (const [
|
|
2221
|
-
const
|
|
2222
|
-
|
|
2223
|
-
u.isValid(
|
|
2224
|
-
}), p.length ? (s = !1,
|
|
2225
|
-
u.preventDefault(),
|
|
2220
|
+
for (const [l, o] of t.entries()) {
|
|
2221
|
+
const r = e.querySelector(`[name="${l}"]`), i = a[l], p = [];
|
|
2222
|
+
i.forEach((u) => {
|
|
2223
|
+
u.isValid(o) || p.push(u.message);
|
|
2224
|
+
}), p.length ? (s = !1, r.classList.add("field-error"), d && d({ isValid: s, field: r, validations: a })) : (r.classList.remove("field-error"), d && d({ isValid: !0, field: r, validations: a })), n && (r == null || r.addEventListener("input", (u) => {
|
|
2225
|
+
u.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2226
2226
|
}));
|
|
2227
2227
|
}
|
|
2228
2228
|
return s;
|
|
@@ -2276,16 +2276,16 @@ class h2 {
|
|
|
2276
2276
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2277
2277
|
}
|
|
2278
2278
|
handleIntersect(e, t, a) {
|
|
2279
|
-
const n = e.filter((
|
|
2280
|
-
(
|
|
2279
|
+
const n = e.filter((r) => r.isIntersecting), s = n.length === a.slides.length, l = n.every(
|
|
2280
|
+
(r) => r.isIntersecting === !0
|
|
2281
2281
|
);
|
|
2282
|
-
s &&
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2282
|
+
s && l ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
|
|
2283
|
+
const i = [...a.slides].indexOf(r.target);
|
|
2284
|
+
r.target === a.slides[0] && (a.showPrevBtn = r.isIntersecting), r.target === a.slides[a.slides.length - 1] && (a.showNextBtn = r.isIntersecting), r.target === a.slides[2] && (a.scrollToStart = r.isIntersecting), r.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = r.isIntersecting), r.isIntersecting && !a.entriesIntersected.includes(i) && (a.entriesIntersected.push(i), a.activeIndex = i, o(r));
|
|
2285
2285
|
}));
|
|
2286
|
-
function
|
|
2287
|
-
var
|
|
2288
|
-
|
|
2286
|
+
function o(r) {
|
|
2287
|
+
var i;
|
|
2288
|
+
r.target !== a.slides[a.slides.length - 1] && r.target !== a.slides[0] && r.target !== a.slides[2] && r.target !== a.slides[a.slides.length - 2] && ((i = a.observer) == null || i.unobserve(r.target));
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
btnListeners(e) {
|
|
@@ -2304,7 +2304,7 @@ class h2 {
|
|
|
2304
2304
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2305
2305
|
}
|
|
2306
2306
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2307
|
-
const s = '<span class="slide-first"></span>',
|
|
2307
|
+
const s = '<span class="slide-first"></span>', l = '<span class="slide-last"></span>';
|
|
2308
2308
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2309
2309
|
return console.error(`slider-container-${a} Not Found`);
|
|
2310
2310
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2312,8 +2312,8 @@ class h2 {
|
|
|
2312
2312
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2313
2313
|
`#btn-right-${a}`
|
|
2314
2314
|
);
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2315
|
+
const o = t.map((i) => n(i)).join(""), r = document.createElement("div");
|
|
2316
|
+
r.innerHTML = `${s}${o}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
|
|
2317
2317
|
}
|
|
2318
2318
|
showHideBtns(e, t, a) {
|
|
2319
2319
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2323,12 +2323,12 @@ class h2 {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class V {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const
|
|
2329
|
-
e =
|
|
2330
|
-
const
|
|
2331
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2328
|
+
const l = V.toRad(a - e), o = V.toRad(n - t);
|
|
2329
|
+
e = V.toRad(e), a = V.toRad(a);
|
|
2330
|
+
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
|
|
2331
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2332
2332
|
}
|
|
2333
2333
|
static cleanupAddress(e) {
|
|
2334
2334
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2341,9 +2341,9 @@ class H {
|
|
|
2341
2341
|
return;
|
|
2342
2342
|
window.dataLayer = window.dataLayer || [];
|
|
2343
2343
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2344
|
-
typeof
|
|
2344
|
+
typeof V == "function" && t.forEach((a) => {
|
|
2345
2345
|
a.addEventListener("click", () => {
|
|
2346
|
-
|
|
2346
|
+
V.clickTrackEvent(a.dataset.divTrack);
|
|
2347
2347
|
});
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
@@ -2356,39 +2356,31 @@ class H {
|
|
|
2356
2356
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2357
2357
|
if (!t)
|
|
2358
2358
|
return null;
|
|
2359
|
-
const s = await
|
|
2359
|
+
const { tolken: s = null, ip: l = null } = await V.getHeaders(), o = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + o, i = typeof t == "string" ? t : JSON.stringify(t), p = (t == null ? void 0 : t.website) ?? V.getWebsiteHeaderName();
|
|
2360
2360
|
try {
|
|
2361
|
-
const
|
|
2361
|
+
const u = await fetch(r, {
|
|
2362
2362
|
method: "POST",
|
|
2363
|
-
body:
|
|
2363
|
+
body: i === "null" ? null : i,
|
|
2364
2364
|
headers: {
|
|
2365
|
-
website:
|
|
2365
|
+
website: p
|
|
2366
2366
|
},
|
|
2367
2367
|
...n
|
|
2368
|
-
});
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2368
|
+
}), H = u.headers.get("content-type");
|
|
2369
|
+
if (H && H.indexOf("application/json") !== -1)
|
|
2370
|
+
return u.json();
|
|
2371
|
+
const C = await u.text();
|
|
2372
|
+
return C ? C.replace("__next", "") : null;
|
|
2373
|
+
} catch (u) {
|
|
2374
|
+
console.error("createData", u);
|
|
2372
2375
|
}
|
|
2373
2376
|
return null;
|
|
2374
2377
|
}
|
|
2375
|
-
static async createDataGetExtra({ useExtra: e }) {
|
|
2376
|
-
const { tolken: t = null, ip: a = null } = await H.getHeaders();
|
|
2377
|
-
return e === !1 ? "" : "&tolken=" + t + "&ip=" + a;
|
|
2378
|
-
}
|
|
2379
|
-
static async createDataReturn(e) {
|
|
2380
|
-
const t = e.headers.get("content-type");
|
|
2381
|
-
if (t && t.indexOf("application/json") !== -1)
|
|
2382
|
-
return e.json();
|
|
2383
|
-
const a = await e.text();
|
|
2384
|
-
return a ? a.replace("__next", "") : null;
|
|
2385
|
-
}
|
|
2386
2378
|
static dataLayer({ type: e = null, data: t = null }) {
|
|
2387
2379
|
typeof dataLayer.push > "u" || typeof dataLayer.push > "u" || (e === "custom" && t && this.dlvCustom(t), e === "login" && t && this.dlvUserLogin(t), e === "userData" && t && this.dlvUserData(t));
|
|
2388
2380
|
}
|
|
2389
2381
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2390
2382
|
try {
|
|
2391
|
-
return await
|
|
2383
|
+
return await V.createData(`/api/cookie/remove?name=${e}`);
|
|
2392
2384
|
} catch (t) {
|
|
2393
2385
|
console.error("deleteSearchValue", t.message);
|
|
2394
2386
|
}
|
|
@@ -2437,17 +2429,17 @@ class H {
|
|
|
2437
2429
|
});
|
|
2438
2430
|
}
|
|
2439
2431
|
static async fetchData(e, t = !1, a = !0) {
|
|
2440
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2432
|
+
const { tolken: n = null, ip: s = null } = await V.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2441
2433
|
try {
|
|
2442
|
-
const
|
|
2434
|
+
const r = await fetch(o, { method: "GET" });
|
|
2443
2435
|
if (t === !0) {
|
|
2444
|
-
const p = await
|
|
2436
|
+
const p = await r.text();
|
|
2445
2437
|
return p ? p.replace("__next", "") : null;
|
|
2446
2438
|
}
|
|
2447
|
-
const
|
|
2448
|
-
return
|
|
2449
|
-
} catch (
|
|
2450
|
-
console.error("fetchData",
|
|
2439
|
+
const i = r.headers.get("content-type");
|
|
2440
|
+
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
2441
|
+
} catch (r) {
|
|
2442
|
+
console.error("fetchData", r, e);
|
|
2451
2443
|
}
|
|
2452
2444
|
return null;
|
|
2453
2445
|
}
|
|
@@ -2457,8 +2449,8 @@ class H {
|
|
|
2457
2449
|
}
|
|
2458
2450
|
static formatDate(e = null) {
|
|
2459
2451
|
return e ? (e = new Date(e), [
|
|
2460
|
-
|
|
2461
|
-
|
|
2452
|
+
V.padTo2Digits(e.getMonth() + 1),
|
|
2453
|
+
V.padTo2Digits(e.getDate()),
|
|
2462
2454
|
e.getFullYear()
|
|
2463
2455
|
].join("-")) : null;
|
|
2464
2456
|
}
|
|
@@ -2475,12 +2467,12 @@ class H {
|
|
|
2475
2467
|
swLng: 0
|
|
2476
2468
|
};
|
|
2477
2469
|
const n = e.getBounds();
|
|
2478
|
-
let s = n.getSouth(),
|
|
2479
|
-
return a && (s = s - a,
|
|
2470
|
+
let s = n.getSouth(), l = n.getEast(), o = n.getNorth(), r = n.getWest();
|
|
2471
|
+
return a && (s = s - a, l = l + a, o = o + a, r = r - a), t && (s = s.toFixed(t), l = l.toFixed(t), o = o.toFixed(t), r = r.toFixed(t)), {
|
|
2480
2472
|
swLat: s,
|
|
2481
|
-
neLng:
|
|
2482
|
-
neLat:
|
|
2483
|
-
swLng:
|
|
2473
|
+
neLng: l,
|
|
2474
|
+
neLat: o,
|
|
2475
|
+
swLng: r
|
|
2484
2476
|
};
|
|
2485
2477
|
}
|
|
2486
2478
|
static getFirstN(e, t = 5) {
|
|
@@ -2507,48 +2499,27 @@ class H {
|
|
|
2507
2499
|
if (t === "license" || t === "license-plate")
|
|
2508
2500
|
return "/report/license-plate";
|
|
2509
2501
|
}
|
|
2510
|
-
static async getHeaders(
|
|
2511
|
-
var
|
|
2502
|
+
static async getHeaders(e = 300) {
|
|
2503
|
+
var o;
|
|
2512
2504
|
const {
|
|
2513
|
-
userAgent:
|
|
2514
|
-
userAgentData:
|
|
2515
|
-
platform:
|
|
2516
|
-
} = navigator || {},
|
|
2505
|
+
userAgent: t = null,
|
|
2506
|
+
userAgentData: a = null,
|
|
2507
|
+
platform: n = null
|
|
2508
|
+
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, l = {
|
|
2517
2509
|
tolken: null,
|
|
2518
2510
|
ip: null,
|
|
2519
|
-
userAgent:
|
|
2520
|
-
platform:
|
|
2511
|
+
userAgent: t,
|
|
2512
|
+
platform: s
|
|
2521
2513
|
};
|
|
2522
|
-
if (
|
|
2523
|
-
return
|
|
2524
|
-
const l = "headerSessionIdData", o = localStorage.getItem(l);
|
|
2525
|
-
if (o && !t) {
|
|
2526
|
-
const u = JSON.parse(o), V = (/* @__PURE__ */ new Date()).getTime();
|
|
2527
|
-
if (console.log(`localStorage - ${u.expire - V}`), u.expire - V <= 0)
|
|
2528
|
-
console.log(`expire localStorage & continue to call headers - ${l}`), localStorage.removeItem(l);
|
|
2529
|
-
else
|
|
2530
|
-
return {
|
|
2531
|
-
tolken: u.tolken,
|
|
2532
|
-
ip: null,
|
|
2533
|
-
userAgent: a,
|
|
2534
|
-
platform: r
|
|
2535
|
-
};
|
|
2536
|
-
}
|
|
2537
|
-
if ((p = window == null ? void 0 : window.options) != null && p.isPdf)
|
|
2538
|
-
return i;
|
|
2514
|
+
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2515
|
+
return l;
|
|
2539
2516
|
try {
|
|
2540
|
-
const
|
|
2541
|
-
return
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
tolken: C,
|
|
2545
|
-
expire: (/* @__PURE__ */ new Date()).getTime() + g
|
|
2546
|
-
})
|
|
2547
|
-
), { tolken: C, ip: f, userAgent: a, platform: r };
|
|
2548
|
-
} catch (u) {
|
|
2549
|
-
console.error("getHeaders", u);
|
|
2517
|
+
const i = await (await fetch("/api/headers")).json(), p = (i == null ? void 0 : i.sessionId) ?? null, u = (i == null ? void 0 : i.ip) ?? null;
|
|
2518
|
+
return { tolken: p, ip: u, userAgent: t, platform: s };
|
|
2519
|
+
} catch (r) {
|
|
2520
|
+
console.error("getHeaders", r);
|
|
2550
2521
|
}
|
|
2551
|
-
return
|
|
2522
|
+
return l;
|
|
2552
2523
|
}
|
|
2553
2524
|
static getLayerTitle(e) {
|
|
2554
2525
|
return {
|
|
@@ -2557,19 +2528,19 @@ class H {
|
|
|
2557
2528
|
}[e];
|
|
2558
2529
|
}
|
|
2559
2530
|
static async getLocationData(e) {
|
|
2560
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2561
|
-
return await
|
|
2531
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = V.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2532
|
+
return await V.fetchData("/api/client?query=" + l);
|
|
2562
2533
|
}
|
|
2563
2534
|
static getReportUrl(e, t = null) {
|
|
2564
|
-
var
|
|
2565
|
-
const a = ((
|
|
2535
|
+
var r, i, p;
|
|
2536
|
+
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2566
2537
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2567
|
-
const
|
|
2568
|
-
return "/" + [a, n, s].filter((u) => u).map((u) =>
|
|
2538
|
+
const o = [l, "-piq", t].filter((u) => u).join("");
|
|
2539
|
+
return "/" + [a, n, s].filter((u) => u).map((u) => V.toSlug(u)).join("/") + "/" + o;
|
|
2569
2540
|
}
|
|
2570
2541
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2571
2542
|
try {
|
|
2572
|
-
return await
|
|
2543
|
+
return await V.createData(`/api/cookie/fetch?name=${e}`);
|
|
2573
2544
|
} catch (t) {
|
|
2574
2545
|
console.error("getSearchValue", t.message);
|
|
2575
2546
|
}
|
|
@@ -2697,7 +2668,7 @@ class H {
|
|
|
2697
2668
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2698
2669
|
return null;
|
|
2699
2670
|
try {
|
|
2700
|
-
return await
|
|
2671
|
+
return await V.createData("/api/cookie/fetch?name=odrUser");
|
|
2701
2672
|
} catch (t) {
|
|
2702
2673
|
console.error("getUser", t.message);
|
|
2703
2674
|
}
|
|
@@ -2713,7 +2684,7 @@ class H {
|
|
|
2713
2684
|
uuid: t
|
|
2714
2685
|
}
|
|
2715
2686
|
});
|
|
2716
|
-
return await
|
|
2687
|
+
return await V.makeSearchFetchCall(
|
|
2717
2688
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2718
2689
|
);
|
|
2719
2690
|
}
|
|
@@ -2731,24 +2702,24 @@ class H {
|
|
|
2731
2702
|
static gridTest(e, t, a = 1500) {
|
|
2732
2703
|
const n = this;
|
|
2733
2704
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2734
|
-
createTile: function(s,
|
|
2735
|
-
const
|
|
2705
|
+
createTile: function(s, l) {
|
|
2706
|
+
const o = document.createElement("div");
|
|
2736
2707
|
return setTimeout(() => {
|
|
2737
|
-
|
|
2738
|
-
const { se:
|
|
2708
|
+
l(null, o);
|
|
2709
|
+
const { se: r, nw: i } = n.getGridBounds({
|
|
2739
2710
|
map: e,
|
|
2740
2711
|
tileSize: this.getTileSize(),
|
|
2741
2712
|
coords: s
|
|
2742
2713
|
});
|
|
2743
2714
|
t({
|
|
2744
|
-
swLat:
|
|
2745
|
-
neLng:
|
|
2746
|
-
neLat:
|
|
2747
|
-
swLng:
|
|
2715
|
+
swLat: r.lat,
|
|
2716
|
+
neLng: r.lng,
|
|
2717
|
+
neLat: i.lat,
|
|
2718
|
+
swLng: i.lng,
|
|
2748
2719
|
coords: s,
|
|
2749
2720
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2750
2721
|
});
|
|
2751
|
-
}, a),
|
|
2722
|
+
}, a), o;
|
|
2752
2723
|
}
|
|
2753
2724
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2754
2725
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2772,10 +2743,10 @@ class H {
|
|
|
2772
2743
|
onClose: a = null,
|
|
2773
2744
|
onOpen: n = null,
|
|
2774
2745
|
onTargetClick: s = null,
|
|
2775
|
-
selfClose:
|
|
2776
|
-
target:
|
|
2746
|
+
selfClose: l = !1,
|
|
2747
|
+
target: o = null
|
|
2777
2748
|
}) {
|
|
2778
|
-
const
|
|
2749
|
+
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`), p = l ? i == null ? void 0 : i.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), u = [
|
|
2779
2750
|
"closing",
|
|
2780
2751
|
"closed",
|
|
2781
2752
|
"opening",
|
|
@@ -2788,22 +2759,22 @@ class H {
|
|
|
2788
2759
|
[v]: new Event(v)
|
|
2789
2760
|
}),
|
|
2790
2761
|
{}
|
|
2791
|
-
),
|
|
2762
|
+
), H = new MutationObserver((h, v) => {
|
|
2792
2763
|
h.forEach(async (w) => {
|
|
2793
2764
|
if (w.attributeName === "open") {
|
|
2794
2765
|
const b = w.target;
|
|
2795
2766
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2796
|
-
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(u.opening), b && await
|
|
2767
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(u.opening), b && await x(b), b == null || b.dispatchEvent(u.opened);
|
|
2797
2768
|
}
|
|
2798
2769
|
});
|
|
2799
2770
|
}), C = new MutationObserver((h, v) => {
|
|
2800
2771
|
h.forEach((w) => {
|
|
2801
2772
|
w.removedNodes.forEach((b) => {
|
|
2802
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(u.removed), C == null || C.disconnect(),
|
|
2773
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(u.removed), C == null || C.disconnect(), H == null || H.disconnect());
|
|
2803
2774
|
});
|
|
2804
2775
|
});
|
|
2805
2776
|
});
|
|
2806
|
-
|
|
2777
|
+
i && (H.observe(i, {
|
|
2807
2778
|
attributes: !0
|
|
2808
2779
|
}), C.observe(document.body, {
|
|
2809
2780
|
attributes: !1,
|
|
@@ -2811,42 +2782,42 @@ class H {
|
|
|
2811
2782
|
childList: !0
|
|
2812
2783
|
}));
|
|
2813
2784
|
const f = async ({ target: h }) => {
|
|
2814
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await
|
|
2785
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
|
|
2815
2786
|
}, g = async ({ target: h }) => {
|
|
2816
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside),
|
|
2817
|
-
},
|
|
2787
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), i == null || i.close("outside"));
|
|
2788
|
+
}, x = (h) => Promise.allSettled(
|
|
2818
2789
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2819
2790
|
);
|
|
2820
|
-
return !e && (
|
|
2821
|
-
await f({ target: h.target }), a && a(h,
|
|
2822
|
-
}), e && (
|
|
2791
|
+
return !e && (i == null || i.addEventListener("click", g)), i == null || i.addEventListener("close", async (h) => {
|
|
2792
|
+
await f({ target: h.target }), a && a(h, i);
|
|
2793
|
+
}), e && (i == null || i.addEventListener("cancel", async (h) => {
|
|
2823
2794
|
h.key === "Escape" && h.preventDefault();
|
|
2824
|
-
})), e && (
|
|
2795
|
+
})), e && (i == null || i.addEventListener("keydown", (h) => {
|
|
2825
2796
|
h.key === "Escape" && h.preventDefault();
|
|
2826
|
-
})), n && (
|
|
2827
|
-
n(h,
|
|
2828
|
-
})),
|
|
2797
|
+
})), n && (i == null || i.addEventListener("open", async (h) => {
|
|
2798
|
+
n(h, i);
|
|
2799
|
+
})), r == null || r.forEach((h) => {
|
|
2829
2800
|
h.addEventListener("click", (v) => {
|
|
2830
|
-
|
|
2801
|
+
i == null || i.showModal(), s && s(v, i);
|
|
2831
2802
|
});
|
|
2832
2803
|
}), p == null || p.forEach((h) => {
|
|
2833
2804
|
h.addEventListener("click", async (v) => {
|
|
2834
|
-
|
|
2805
|
+
i == null || i.close("close");
|
|
2835
2806
|
});
|
|
2836
2807
|
}), {
|
|
2837
|
-
activators:
|
|
2838
|
-
ref:
|
|
2808
|
+
activators: r,
|
|
2809
|
+
ref: i
|
|
2839
2810
|
};
|
|
2840
2811
|
}
|
|
2841
2812
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2842
|
-
return
|
|
2813
|
+
return V.getBoundsEntries(t).includes(e);
|
|
2843
2814
|
}
|
|
2844
2815
|
static initObserver(e, t, a = null) {
|
|
2845
2816
|
if (!e)
|
|
2846
2817
|
return;
|
|
2847
2818
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2848
|
-
new IntersectionObserver(async (
|
|
2849
|
-
n ? (
|
|
2819
|
+
new IntersectionObserver(async (l, o) => {
|
|
2820
|
+
n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs: o, entry: l[0], entries: l }) : l[0].isIntersecting && t({ obs: o, entry: l[0], entries: l });
|
|
2850
2821
|
}, a).observe(e);
|
|
2851
2822
|
}
|
|
2852
2823
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2854,11 +2825,11 @@ class H {
|
|
|
2854
2825
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2855
2826
|
}
|
|
2856
2827
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2857
|
-
return new Promise(function(s,
|
|
2858
|
-
let
|
|
2859
|
-
if (t &&
|
|
2828
|
+
return new Promise(function(s, l) {
|
|
2829
|
+
let o = document.getElementById(t);
|
|
2830
|
+
if (t && o && o.dataset.loaded === "true")
|
|
2860
2831
|
return s({ alreadyLoaded: !0, id: t });
|
|
2861
|
-
|
|
2832
|
+
o || (o = document.createElement("script"), o.src = e, o.dataset.loaded = "false", t && (o.id = t), o.type = n ? "module" : "text/javascript", o.async = a, document.body.appendChild(o), o.onload = () => (o.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), o.onerror = () => l(!1));
|
|
2862
2833
|
});
|
|
2863
2834
|
}
|
|
2864
2835
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2891,14 +2862,14 @@ class H {
|
|
|
2891
2862
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2892
2863
|
}
|
|
2893
2864
|
static async logRequest(e = null, t = null, a = null, n = null, s = null) {
|
|
2894
|
-
const
|
|
2865
|
+
const l = {
|
|
2895
2866
|
name: e,
|
|
2896
2867
|
uuid: t,
|
|
2897
2868
|
ip: a,
|
|
2898
2869
|
url: n,
|
|
2899
2870
|
data: s
|
|
2900
2871
|
};
|
|
2901
|
-
return await
|
|
2872
|
+
return await V.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2902
2873
|
}
|
|
2903
2874
|
static loadAds() {
|
|
2904
2875
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2916,14 +2887,14 @@ class H {
|
|
|
2916
2887
|
if (e) {
|
|
2917
2888
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2918
2889
|
try {
|
|
2919
|
-
return await
|
|
2890
|
+
return await V.injectScript({
|
|
2920
2891
|
src: s,
|
|
2921
2892
|
id: t || e,
|
|
2922
2893
|
async: !1,
|
|
2923
2894
|
module: a
|
|
2924
2895
|
});
|
|
2925
|
-
} catch (
|
|
2926
|
-
console.error("loadCustomScript",
|
|
2896
|
+
} catch (l) {
|
|
2897
|
+
console.error("loadCustomScript", l);
|
|
2927
2898
|
}
|
|
2928
2899
|
}
|
|
2929
2900
|
return null;
|
|
@@ -2932,11 +2903,11 @@ class H {
|
|
|
2932
2903
|
if (window.options.googleMapsLoaded === !0)
|
|
2933
2904
|
return;
|
|
2934
2905
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2935
|
-
await
|
|
2906
|
+
await V.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2936
2907
|
}
|
|
2937
2908
|
static async loadLeafletApi() {
|
|
2938
2909
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2939
|
-
await
|
|
2910
|
+
await V.injectLink({ href: t, id: "leafletCss" }), await V.injectLink({ href: n, id: "gestureCss" }), await V.injectScript({ src: e, id: "leafletJs", async: !1 }), await V.injectScript({
|
|
2940
2911
|
src: a,
|
|
2941
2912
|
id: "gestureJs",
|
|
2942
2913
|
async: !1
|
|
@@ -2951,7 +2922,18 @@ class H {
|
|
|
2951
2922
|
}
|
|
2952
2923
|
static async loadSwiper() {
|
|
2953
2924
|
const e = "/slider/swiper-bundle.min.js";
|
|
2954
|
-
await
|
|
2925
|
+
await V.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await V.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2926
|
+
}
|
|
2927
|
+
static async makeSearchFetchCall(e) {
|
|
2928
|
+
try {
|
|
2929
|
+
return (await fetch(e, {
|
|
2930
|
+
method: "GET",
|
|
2931
|
+
headers: { "Content-Type": "application/json" }
|
|
2932
|
+
})).json();
|
|
2933
|
+
} catch (t) {
|
|
2934
|
+
console.error("performSearch", t, { url: e });
|
|
2935
|
+
}
|
|
2936
|
+
return [];
|
|
2955
2937
|
}
|
|
2956
2938
|
static money(e, t = "", a = 0) {
|
|
2957
2939
|
return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
|
|
@@ -2973,17 +2955,17 @@ class H {
|
|
|
2973
2955
|
first: a = null,
|
|
2974
2956
|
middle: n = null,
|
|
2975
2957
|
last: s = null,
|
|
2976
|
-
min:
|
|
2977
|
-
max:
|
|
2978
|
-
city:
|
|
2979
|
-
state:
|
|
2958
|
+
min: l = null,
|
|
2959
|
+
max: o = null,
|
|
2960
|
+
city: r = null,
|
|
2961
|
+
state: i = null,
|
|
2980
2962
|
vin: p = null,
|
|
2981
2963
|
license: u = null,
|
|
2982
|
-
token:
|
|
2964
|
+
token: H = null,
|
|
2983
2965
|
phone: C = null
|
|
2984
|
-
} = e || {}, f = t && t !== "", g =
|
|
2966
|
+
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = o && o !== "" && l !== "99";
|
|
2985
2967
|
let h = [];
|
|
2986
|
-
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), g &&
|
|
2968
|
+
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), g && x ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (g && h.push("min=" + l), x && h.push("max=" + o)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), i && i !== "" && h.push("state=" + i), H && H !== "" && h.push("token=" + H), h.join("&");
|
|
2987
2969
|
}
|
|
2988
2970
|
static padTo2Digits(e) {
|
|
2989
2971
|
return e.toString().padStart(2, "0");
|
|
@@ -2997,30 +2979,30 @@ class H {
|
|
|
2997
2979
|
addressesOnly: a = !1,
|
|
2998
2980
|
useCitySearch: n = !1,
|
|
2999
2981
|
useCityStateSearch: s = !1,
|
|
3000
|
-
useSearch:
|
|
3001
|
-
useLocation:
|
|
3002
|
-
state:
|
|
3003
|
-
useGoogle:
|
|
2982
|
+
useSearch: l = !1,
|
|
2983
|
+
useLocation: o = !0,
|
|
2984
|
+
state: r = "",
|
|
2985
|
+
useGoogle: i = !1,
|
|
3004
2986
|
useGoogleOverride: p = !1,
|
|
3005
2987
|
useAmazonOverride: u = !1,
|
|
3006
|
-
isSandboxAccount:
|
|
2988
|
+
isSandboxAccount: H = !1,
|
|
3007
2989
|
isOptOutSearch: C = !1
|
|
3008
|
-
} = t ?? {}, { tolken: f = null, ip: g = null } = await
|
|
2990
|
+
} = t ?? {}, { tolken: f = null, ip: g = null } = await V.getHeaders(), h = [
|
|
3009
2991
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3010
2992
|
"addressesOnly=" + a,
|
|
3011
|
-
"useSearch=" +
|
|
2993
|
+
"useSearch=" + l,
|
|
3012
2994
|
"useCitySearch=" + n,
|
|
3013
2995
|
"useCityStateSearch=" + s,
|
|
3014
|
-
"useLocation=" +
|
|
3015
|
-
"useGoogle=" +
|
|
2996
|
+
"useLocation=" + o,
|
|
2997
|
+
"useGoogle=" + i,
|
|
3016
2998
|
"useGoogleOverride=" + p,
|
|
3017
2999
|
"useAmazonOverride=" + u,
|
|
3018
|
-
"isSandboxAccount=" +
|
|
3000
|
+
"isSandboxAccount=" + H,
|
|
3019
3001
|
"isOptOutSearch=" + C
|
|
3020
3002
|
];
|
|
3021
|
-
|
|
3003
|
+
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), g && g !== "" && h.push("ip=" + g);
|
|
3022
3004
|
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3023
|
-
return await
|
|
3005
|
+
return await V.makeSearchFetchCall(b);
|
|
3024
3006
|
}
|
|
3025
3007
|
static removeElements(e) {
|
|
3026
3008
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3039,7 +3021,7 @@ class H {
|
|
|
3039
3021
|
});
|
|
3040
3022
|
}
|
|
3041
3023
|
static searchInStates(e) {
|
|
3042
|
-
const t =
|
|
3024
|
+
const t = V.getStates(), a = e.toLowerCase();
|
|
3043
3025
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3044
3026
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3045
3027
|
}
|
|
@@ -3047,7 +3029,7 @@ class H {
|
|
|
3047
3029
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3048
3030
|
}
|
|
3049
3031
|
static setBoundsEntries(e, t = "bounds") {
|
|
3050
|
-
const a =
|
|
3032
|
+
const a = V.getBoundsEntries(t);
|
|
3051
3033
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3052
3034
|
}
|
|
3053
3035
|
static async setCityState(e = null) {
|
|
@@ -3056,7 +3038,7 @@ class H {
|
|
|
3056
3038
|
return e;
|
|
3057
3039
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3058
3040
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3059
|
-
if (
|
|
3041
|
+
if (V.getStates(), a && !n) {
|
|
3060
3042
|
const s = this.searchInStates(a);
|
|
3061
3043
|
s && (a = null, n = s.short);
|
|
3062
3044
|
}
|
|
@@ -3065,10 +3047,10 @@ class H {
|
|
|
3065
3047
|
s && (n = s.short);
|
|
3066
3048
|
}
|
|
3067
3049
|
if (a && !n) {
|
|
3068
|
-
const s = a.split(" "),
|
|
3069
|
-
if (
|
|
3070
|
-
const
|
|
3071
|
-
|
|
3050
|
+
const s = a.split(" "), l = s[s.length - 1];
|
|
3051
|
+
if (l.length) {
|
|
3052
|
+
const o = this.searchInStates(l);
|
|
3053
|
+
o && (n = o.short, a = s.slice(0, -1).join(" "));
|
|
3072
3054
|
}
|
|
3073
3055
|
}
|
|
3074
3056
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
@@ -3081,16 +3063,16 @@ class H {
|
|
|
3081
3063
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3082
3064
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3083
3065
|
try {
|
|
3084
|
-
const
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
}),
|
|
3088
|
-
} catch (
|
|
3089
|
-
console.error("Failed to load one or more search modules:",
|
|
3066
|
+
const l = e.map(({ fileName: i, initFunctionName: p }) => import(`${n}${s}${i}?v=${a}`)), o = await Promise.all(l), r = [];
|
|
3067
|
+
o.forEach((i, p) => {
|
|
3068
|
+
i && typeof i[e[p].initFunctionName] == "function" ? r.push(i[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
|
|
3069
|
+
}), r.length > 0 && await Promise.all(r);
|
|
3070
|
+
} catch (l) {
|
|
3071
|
+
console.error("Failed to load one or more search modules:", l);
|
|
3090
3072
|
}
|
|
3091
3073
|
}
|
|
3092
3074
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3093
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3075
|
+
localStorage.setItem(t, JSON.stringify(e)), await V.createData(
|
|
3094
3076
|
`/api/cookie/create?name=${t}`,
|
|
3095
3077
|
e,
|
|
3096
3078
|
!0,
|
|
@@ -3122,7 +3104,7 @@ class H {
|
|
|
3122
3104
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3123
3105
|
}
|
|
3124
3106
|
static useLayerTitle(e, t) {
|
|
3125
|
-
const a =
|
|
3107
|
+
const a = V.getLayerTitle(e);
|
|
3126
3108
|
L.tileLayer(a, {
|
|
3127
3109
|
maxNativeZoom: 19,
|
|
3128
3110
|
maxZoom: 25,
|
|
@@ -3131,7 +3113,7 @@ class H {
|
|
|
3131
3113
|
}).addTo(t);
|
|
3132
3114
|
}
|
|
3133
3115
|
static ucWords(e) {
|
|
3134
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3116
|
+
return e ? e.toString().split(" ").map((t) => V.ucFirst(t)).join(" ") : null;
|
|
3135
3117
|
}
|
|
3136
3118
|
/**
|
|
3137
3119
|
* HOW TO USE EVENTS
|
|
@@ -3181,14 +3163,14 @@ export {
|
|
|
3181
3163
|
F as Button,
|
|
3182
3164
|
h2 as CardSlider,
|
|
3183
3165
|
I1 as Checkbox,
|
|
3184
|
-
|
|
3166
|
+
V as Common,
|
|
3185
3167
|
K1 as ContactForm,
|
|
3186
3168
|
X1 as ContentCard,
|
|
3187
3169
|
B1 as Dialog,
|
|
3188
3170
|
$1 as Dots,
|
|
3189
3171
|
e2 as FlexItem,
|
|
3190
3172
|
n2 as FunnelHeader,
|
|
3191
|
-
|
|
3173
|
+
y as Icon,
|
|
3192
3174
|
q1 as LoadingBar,
|
|
3193
3175
|
P1 as Popover,
|
|
3194
3176
|
j1 as ProcessingSpinner,
|
|
@@ -3207,10 +3189,10 @@ export {
|
|
|
3207
3189
|
i2 as addClass,
|
|
3208
3190
|
s2 as colors,
|
|
3209
3191
|
$ as corePlugins,
|
|
3210
|
-
|
|
3192
|
+
l2 as elerisPreset,
|
|
3211
3193
|
O as extensions,
|
|
3212
3194
|
q as plugins,
|
|
3213
|
-
|
|
3195
|
+
r2 as propertyPreset,
|
|
3214
3196
|
o2 as removeClass,
|
|
3215
3197
|
d2 as validateEmail,
|
|
3216
3198
|
c2 as validateForm
|