@vehiclehistory/property-lib 0.0.82 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.es.js +292 -272
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as M, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
|
-
import { memo as
|
|
3
|
+
import { memo as b, useState as Z, useEffect as N } from "react";
|
|
4
4
|
const W = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -494,14 +494,14 @@ const W = {
|
|
|
494
494
|
youtube: {
|
|
495
495
|
path: '<path d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />'
|
|
496
496
|
}
|
|
497
|
-
},
|
|
497
|
+
}, G = (d) => U[d], Q = ({
|
|
498
498
|
color: d = "text-current",
|
|
499
499
|
className: e,
|
|
500
500
|
name: t,
|
|
501
501
|
size: a = "medium",
|
|
502
502
|
viewBox: n = "0 0 20 20"
|
|
503
503
|
}) => {
|
|
504
|
-
const s =
|
|
504
|
+
const s = G(t), [l, i] = Z(d), [r, o] = Z(s);
|
|
505
505
|
return N(() => {
|
|
506
506
|
o(s);
|
|
507
507
|
}, [s]), N(() => {
|
|
@@ -513,27 +513,27 @@ 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 = b(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 [i,
|
|
536
|
+
const [i, r] = Z(l);
|
|
537
537
|
return /* @__PURE__ */ c(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
@@ -554,12 +554,12 @@ const W = {
|
|
|
554
554
|
),
|
|
555
555
|
title: n,
|
|
556
556
|
onClick: () => {
|
|
557
|
-
|
|
557
|
+
r(!i), t && t(!i);
|
|
558
558
|
},
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
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",
|
|
@@ -593,17 +593,17 @@ const W = {
|
|
|
593
593
|
] })
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
|
-
}, F1 =
|
|
596
|
+
}, F1 = b(J), _ = ({
|
|
597
597
|
children: d,
|
|
598
598
|
className: e,
|
|
599
599
|
messages: t = [],
|
|
600
600
|
messagesClass: a,
|
|
601
601
|
title: n = "",
|
|
602
602
|
titleClass: s = "",
|
|
603
|
-
props:
|
|
603
|
+
props: l = {},
|
|
604
604
|
type: i = "error"
|
|
605
605
|
}) => {
|
|
606
|
-
const
|
|
606
|
+
const r = {
|
|
607
607
|
error: {
|
|
608
608
|
icon: "error",
|
|
609
609
|
iconColor: "text-red-500",
|
|
@@ -624,7 +624,7 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon: o, iconColor: h, styles: p } =
|
|
627
|
+
}, { icon: o, iconColor: h, styles: p } = r[i];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
@@ -634,10 +634,10 @@ const W = {
|
|
|
634
634
|
p,
|
|
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
642
|
name: o,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
@@ -663,28 +663,28 @@ const W = {
|
|
|
663
663
|
] })
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
|
-
}, T1 =
|
|
666
|
+
}, T1 = b(_), D1 = ({
|
|
667
667
|
autoFocus: d = !1,
|
|
668
668
|
className: e,
|
|
669
669
|
dataSearch: t = "container",
|
|
670
670
|
defaultValue: a = "",
|
|
671
671
|
floatingLabel: n = "",
|
|
672
672
|
id: s = "",
|
|
673
|
-
inputClass:
|
|
673
|
+
inputClass: l,
|
|
674
674
|
leftIcon: i = "homeSearch",
|
|
675
|
-
mobileBackdrop:
|
|
675
|
+
mobileBackdrop: r = !1,
|
|
676
676
|
name: o = "",
|
|
677
677
|
options: h = [],
|
|
678
678
|
parentProps: p = {},
|
|
679
679
|
placeholder: V = "",
|
|
680
680
|
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
|
-
required:
|
|
683
|
-
showSearchIcon:
|
|
682
|
+
required: g = !1,
|
|
683
|
+
showSearchIcon: x = !0,
|
|
684
684
|
showRightIcon: u = !1,
|
|
685
|
-
size:
|
|
685
|
+
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
687
|
-
title:
|
|
687
|
+
title: A = "",
|
|
688
688
|
type: E,
|
|
689
689
|
useGoogle: j = !1,
|
|
690
690
|
useReact: P = !1
|
|
@@ -701,31 +701,31 @@ const W = {
|
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
702
|
...p,
|
|
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
718
|
name: i,
|
|
719
|
-
size:
|
|
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",
|
|
728
|
-
size:
|
|
728
|
+
size: v === "xLarge" ? "small" : "xSmall",
|
|
729
729
|
viewBox: "0 0 24 24"
|
|
730
730
|
}
|
|
731
731
|
)
|
|
@@ -740,15 +740,15 @@ 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":
|
|
744
|
-
"px-3 h-10":
|
|
745
|
-
"px-4 h-12":
|
|
746
|
-
"px-5 h-[60px] sm:!text-base":
|
|
743
|
+
"pl-8": x === !0,
|
|
744
|
+
"px-3 h-10": v === "medium",
|
|
745
|
+
"px-4 h-12": v === "large",
|
|
746
|
+
"px-5 h-[60px] sm:!text-base": v === "xLarge",
|
|
747
747
|
peer: n
|
|
748
748
|
},
|
|
749
|
-
|
|
749
|
+
l
|
|
750
750
|
),
|
|
751
|
-
required:
|
|
751
|
+
required: g,
|
|
752
752
|
autoComplete: "off",
|
|
753
753
|
placeholder: !V && n ? " " : V,
|
|
754
754
|
type: "search",
|
|
@@ -764,10 +764,10 @@ 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":
|
|
768
|
-
"left-2":
|
|
769
|
-
"left-3":
|
|
770
|
-
"left-4":
|
|
767
|
+
"!left-7": x === !0,
|
|
768
|
+
"left-2": v === "medium",
|
|
769
|
+
"left-3": v === "large",
|
|
770
|
+
"left-4": v === "xLarge"
|
|
771
771
|
}
|
|
772
772
|
),
|
|
773
773
|
children: n
|
|
@@ -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: `${u ? "" : "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(
|
|
@@ -825,7 +825,7 @@ const W = {
|
|
|
825
825
|
{
|
|
826
826
|
"data-id": "search-dropdown-body",
|
|
827
827
|
role: "listbox",
|
|
828
|
-
"data-title":
|
|
828
|
+
"data-title": A,
|
|
829
829
|
"aria-labelledby": "Label",
|
|
830
830
|
"aria-activedescendant": "search-item-0",
|
|
831
831
|
children: h.length > 0 ? h.map((S, z) => /* @__PURE__ */ c(
|
|
@@ -848,7 +848,7 @@ const W = {
|
|
|
848
848
|
]
|
|
849
849
|
}
|
|
850
850
|
);
|
|
851
|
-
},
|
|
851
|
+
}, O1 = ({
|
|
852
852
|
children: d,
|
|
853
853
|
className: e,
|
|
854
854
|
size: t = "sm",
|
|
@@ -874,9 +874,9 @@ const W = {
|
|
|
874
874
|
children: a,
|
|
875
875
|
className: n,
|
|
876
876
|
disabled: s = !1,
|
|
877
|
-
href:
|
|
877
|
+
href: l,
|
|
878
878
|
props: i = {},
|
|
879
|
-
rightIcon:
|
|
879
|
+
rightIcon: r,
|
|
880
880
|
rightIconProps: o = {},
|
|
881
881
|
rounded: h = !1,
|
|
882
882
|
size: p = "md",
|
|
@@ -884,11 +884,11 @@ const W = {
|
|
|
884
884
|
uppercase: C = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
|
-
const
|
|
887
|
+
const g = l ? "a" : "button";
|
|
888
888
|
return /* @__PURE__ */ M(
|
|
889
|
-
|
|
889
|
+
g,
|
|
890
890
|
{
|
|
891
|
-
type:
|
|
891
|
+
type: g !== "a" ? V : null,
|
|
892
892
|
className: m(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
@@ -896,18 +896,18 @@ const W = {
|
|
|
896
896
|
[`button--${p}`]: p,
|
|
897
897
|
"button--rounded": h,
|
|
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:
|
|
906
|
+
href: l,
|
|
907
907
|
...i,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
y,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
913
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -916,10 +916,10 @@ 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: p === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
925
|
...o
|
|
@@ -928,20 +928,20 @@ const W = {
|
|
|
928
928
|
]
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
}, F =
|
|
931
|
+
}, F = b(Y), K = ({
|
|
932
932
|
checked: d = !1,
|
|
933
933
|
children: e,
|
|
934
934
|
className: t,
|
|
935
935
|
error: a = !1,
|
|
936
936
|
inputClass: n,
|
|
937
937
|
id: s = "",
|
|
938
|
-
label:
|
|
938
|
+
label: l = "",
|
|
939
939
|
name: i = "",
|
|
940
|
-
props:
|
|
940
|
+
props: r = {},
|
|
941
941
|
variation: o = "primary",
|
|
942
942
|
value: h = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const p =
|
|
944
|
+
const p = l ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ M(
|
|
946
946
|
p,
|
|
947
947
|
{
|
|
@@ -963,33 +963,33 @@ const W = {
|
|
|
963
963
|
name: i,
|
|
964
964
|
type: "checkbox",
|
|
965
965
|
value: h,
|
|
966
|
-
...
|
|
966
|
+
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
969
969
|
e
|
|
970
970
|
]
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
|
-
},
|
|
973
|
+
}, B1 = b(K), X = ({
|
|
974
974
|
activator: d,
|
|
975
975
|
id: e = "",
|
|
976
976
|
children: t,
|
|
977
977
|
className: a,
|
|
978
978
|
contentClass: n,
|
|
979
979
|
customScrollbar: s = !0,
|
|
980
|
-
dark:
|
|
980
|
+
dark: l = !1,
|
|
981
981
|
footer: i,
|
|
982
|
-
fullMobile:
|
|
982
|
+
fullMobile: r = !0,
|
|
983
983
|
headerClass: o,
|
|
984
984
|
hideClose: h = !1,
|
|
985
985
|
iconSize: p = "medium",
|
|
986
986
|
preventPageScroll: V = !0,
|
|
987
987
|
stickyHeader: C = !1,
|
|
988
988
|
title: f = "",
|
|
989
|
-
titleClass:
|
|
990
|
-
useFormMethod:
|
|
989
|
+
titleClass: g,
|
|
990
|
+
useFormMethod: x = !0
|
|
991
991
|
}) => {
|
|
992
|
-
const u =
|
|
992
|
+
const u = x ? "form" : "div";
|
|
993
993
|
return /* @__PURE__ */ M(k, { children: [
|
|
994
994
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
995
995
|
/* @__PURE__ */ c(
|
|
@@ -1000,8 +1000,8 @@ const W = {
|
|
|
1000
1000
|
className: m(
|
|
1001
1001
|
"dialog",
|
|
1002
1002
|
{
|
|
1003
|
-
"dialog-full-mobile":
|
|
1004
|
-
dark:
|
|
1003
|
+
"dialog-full-mobile": r,
|
|
1004
|
+
dark: l,
|
|
1005
1005
|
"prevent-scroll": V
|
|
1006
1006
|
},
|
|
1007
1007
|
a
|
|
@@ -1010,7 +1010,7 @@ const W = {
|
|
|
1010
1010
|
u,
|
|
1011
1011
|
{
|
|
1012
1012
|
className: "dialog-container",
|
|
1013
|
-
method:
|
|
1013
|
+
method: x ? "dialog" : null,
|
|
1014
1014
|
children: [
|
|
1015
1015
|
/* @__PURE__ */ M(
|
|
1016
1016
|
"header",
|
|
@@ -1025,7 +1025,7 @@ const W = {
|
|
|
1025
1025
|
o
|
|
1026
1026
|
),
|
|
1027
1027
|
children: [
|
|
1028
|
-
f && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className:
|
|
1028
|
+
f && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: g, children: f }),
|
|
1029
1029
|
!h && /* @__PURE__ */ c(
|
|
1030
1030
|
"button",
|
|
1031
1031
|
{
|
|
@@ -1035,7 +1035,7 @@ const W = {
|
|
|
1035
1035
|
"data-dialog-close": "",
|
|
1036
1036
|
value: "close",
|
|
1037
1037
|
children: /* @__PURE__ */ c(
|
|
1038
|
-
|
|
1038
|
+
y,
|
|
1039
1039
|
{
|
|
1040
1040
|
name: "close",
|
|
1041
1041
|
size: p,
|
|
@@ -1068,7 +1068,7 @@ const W = {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
)
|
|
1070
1070
|
] });
|
|
1071
|
-
},
|
|
1071
|
+
}, I1 = b(X), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
|
|
1072
1072
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1073
1073
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1074
1074
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1085,23 +1085,23 @@ const W = {
|
|
|
1085
1085
|
timeout: n = 1e4,
|
|
1086
1086
|
variation: s = "primary"
|
|
1087
1087
|
}) => {
|
|
1088
|
-
function
|
|
1089
|
-
const
|
|
1090
|
-
if (!
|
|
1088
|
+
function l({ cb: i }) {
|
|
1089
|
+
const r = document.querySelector(".loading-bar__inner");
|
|
1090
|
+
if (!r) return;
|
|
1091
1091
|
let o, h, p = !1;
|
|
1092
1092
|
function V(C) {
|
|
1093
1093
|
o === void 0 && (o = C);
|
|
1094
1094
|
const f = C - o;
|
|
1095
1095
|
if (h !== C) {
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const g = f / n * 101;
|
|
1097
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (i && i(), p = !0, window.cancelAnimationFrame(C));
|
|
1098
1098
|
}
|
|
1099
1099
|
f < n && (h = C, p || window.requestAnimationFrame(V));
|
|
1100
1100
|
}
|
|
1101
1101
|
window.requestAnimationFrame(V);
|
|
1102
1102
|
}
|
|
1103
1103
|
return N(() => {
|
|
1104
|
-
|
|
1104
|
+
l({ cb: d });
|
|
1105
1105
|
}, []), /* @__PURE__ */ c(
|
|
1106
1106
|
"div",
|
|
1107
1107
|
{
|
|
@@ -1119,16 +1119,16 @@ const W = {
|
|
|
1119
1119
|
children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1120
1120
|
}
|
|
1121
1121
|
);
|
|
1122
|
-
}, q1 =
|
|
1122
|
+
}, q1 = b(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), j1 = b(t1), P1 = ({
|
|
1123
1123
|
activator: d,
|
|
1124
1124
|
activatorClass: e = "",
|
|
1125
1125
|
attrs: t = {},
|
|
1126
1126
|
children: a,
|
|
1127
1127
|
className: n = "",
|
|
1128
1128
|
containerClass: s = "",
|
|
1129
|
-
disabled:
|
|
1129
|
+
disabled: l = !1,
|
|
1130
1130
|
options: i = {},
|
|
1131
|
-
trigger:
|
|
1131
|
+
trigger: r = "click"
|
|
1132
1132
|
}) => /* @__PURE__ */ M(k, { children: [
|
|
1133
1133
|
/* @__PURE__ */ c(
|
|
1134
1134
|
"div",
|
|
@@ -1160,9 +1160,9 @@ const W = {
|
|
|
1160
1160
|
{
|
|
1161
1161
|
className: m(
|
|
1162
1162
|
"popover-activator",
|
|
1163
|
-
`trigger-${
|
|
1163
|
+
`trigger-${r}`,
|
|
1164
1164
|
{
|
|
1165
|
-
"is-disabled":
|
|
1165
|
+
"is-disabled": l
|
|
1166
1166
|
},
|
|
1167
1167
|
e
|
|
1168
1168
|
),
|
|
@@ -1178,9 +1178,9 @@ const W = {
|
|
|
1178
1178
|
className: a,
|
|
1179
1179
|
completed: n = 0,
|
|
1180
1180
|
customLabel: s,
|
|
1181
|
-
labelClass:
|
|
1181
|
+
labelClass: l,
|
|
1182
1182
|
maxCompleted: i = 100,
|
|
1183
|
-
rounded:
|
|
1183
|
+
rounded: r = !0,
|
|
1184
1184
|
showLabel: o = !1
|
|
1185
1185
|
}) => {
|
|
1186
1186
|
const p = ((V, C) => {
|
|
@@ -1195,7 +1195,7 @@ const W = {
|
|
|
1195
1195
|
{
|
|
1196
1196
|
className: m(
|
|
1197
1197
|
"w-full bg-gray-200",
|
|
1198
|
-
{ "rounded-full":
|
|
1198
|
+
{ "rounded-full": r },
|
|
1199
1199
|
a
|
|
1200
1200
|
),
|
|
1201
1201
|
role: "progressbar",
|
|
@@ -1216,7 +1216,7 @@ const W = {
|
|
|
1216
1216
|
{
|
|
1217
1217
|
className: m(
|
|
1218
1218
|
"font-bold text-white text-xs mr-2",
|
|
1219
|
-
|
|
1219
|
+
l
|
|
1220
1220
|
),
|
|
1221
1221
|
children: s || Math.round(p)
|
|
1222
1222
|
}
|
|
@@ -1225,16 +1225,16 @@ const W = {
|
|
|
1225
1225
|
)
|
|
1226
1226
|
}
|
|
1227
1227
|
);
|
|
1228
|
-
}, R1 =
|
|
1228
|
+
}, R1 = b(a1), n1 = ({
|
|
1229
1229
|
checked: d = !1,
|
|
1230
1230
|
children: e,
|
|
1231
1231
|
className: t,
|
|
1232
1232
|
id: a = "",
|
|
1233
1233
|
inputClass: n,
|
|
1234
1234
|
label: s = "",
|
|
1235
|
-
name:
|
|
1235
|
+
name: l = "",
|
|
1236
1236
|
props: i = {},
|
|
1237
|
-
variation:
|
|
1237
|
+
variation: r = "primary",
|
|
1238
1238
|
value: o = ""
|
|
1239
1239
|
}) => {
|
|
1240
1240
|
const h = s ? "div" : "label", p = h === "label" ? { htmlFor: a } : {};
|
|
@@ -1251,12 +1251,12 @@ const W = {
|
|
|
1251
1251
|
className: m(
|
|
1252
1252
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1253
1253
|
{
|
|
1254
|
-
"focus:ring-[#222]":
|
|
1254
|
+
"focus:ring-[#222]": r === "primary"
|
|
1255
1255
|
},
|
|
1256
1256
|
n
|
|
1257
1257
|
),
|
|
1258
1258
|
id: a,
|
|
1259
|
-
name:
|
|
1259
|
+
name: l,
|
|
1260
1260
|
type: "radio",
|
|
1261
1261
|
value: o,
|
|
1262
1262
|
...i
|
|
@@ -1266,16 +1266,16 @@ const W = {
|
|
|
1266
1266
|
]
|
|
1267
1267
|
}
|
|
1268
1268
|
);
|
|
1269
|
-
}, W1 =
|
|
1269
|
+
}, W1 = b(n1), s1 = ({
|
|
1270
1270
|
className: d = "",
|
|
1271
1271
|
error: e = !1,
|
|
1272
1272
|
errorMessage: t = "",
|
|
1273
1273
|
id: a = "",
|
|
1274
1274
|
label: n = "",
|
|
1275
1275
|
name: s = "",
|
|
1276
|
-
options:
|
|
1276
|
+
options: l = [],
|
|
1277
1277
|
placeholder: i = "",
|
|
1278
|
-
props:
|
|
1278
|
+
props: r = {},
|
|
1279
1279
|
selectClass: o = "",
|
|
1280
1280
|
styles: h = null,
|
|
1281
1281
|
variation: p = "primary",
|
|
@@ -1303,10 +1303,10 @@ const W = {
|
|
|
1303
1303
|
name: s,
|
|
1304
1304
|
value: V,
|
|
1305
1305
|
...C,
|
|
1306
|
-
...
|
|
1306
|
+
...r,
|
|
1307
1307
|
children: [
|
|
1308
1308
|
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
1309
|
-
|
|
1309
|
+
l.map((f) => /* @__PURE__ */ c(
|
|
1310
1310
|
"option",
|
|
1311
1311
|
{
|
|
1312
1312
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
@@ -1321,7 +1321,7 @@ const W = {
|
|
|
1321
1321
|
]
|
|
1322
1322
|
}
|
|
1323
1323
|
);
|
|
1324
|
-
}, U1 =
|
|
1324
|
+
}, U1 = b(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1325
1325
|
"div",
|
|
1326
1326
|
{
|
|
1327
1327
|
className: m(
|
|
@@ -1329,11 +1329,11 @@ const W = {
|
|
|
1329
1329
|
d
|
|
1330
1330
|
),
|
|
1331
1331
|
children: [
|
|
1332
|
-
/* @__PURE__ */ c(
|
|
1332
|
+
/* @__PURE__ */ c(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1333
1333
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1334
1334
|
]
|
|
1335
1335
|
}
|
|
1336
|
-
),
|
|
1336
|
+
), G1 = b(r1), l1 = ({
|
|
1337
1337
|
placeholderClass: d = "",
|
|
1338
1338
|
children: e,
|
|
1339
1339
|
className: t,
|
|
@@ -1347,16 +1347,16 @@ const W = {
|
|
|
1347
1347
|
id: `btn-left-${a}`,
|
|
1348
1348
|
type: "button",
|
|
1349
1349
|
className: "slider-button__prev ",
|
|
1350
|
-
children: /* @__PURE__ */ c(
|
|
1350
|
+
children: /* @__PURE__ */ c(y, { name: "chevronLeft" })
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s,
|
|
1353
|
+
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
|
|
1354
1354
|
"div",
|
|
1355
1355
|
{
|
|
1356
1356
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1357
1357
|
children: /* @__PURE__ */ c("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1358
1358
|
},
|
|
1359
|
-
|
|
1359
|
+
l
|
|
1360
1360
|
)) }),
|
|
1361
1361
|
/* @__PURE__ */ c(
|
|
1362
1362
|
"button",
|
|
@@ -1365,21 +1365,21 @@ const W = {
|
|
|
1365
1365
|
id: `btn-right-${a}`,
|
|
1366
1366
|
type: "button",
|
|
1367
1367
|
className: "slider-button__next",
|
|
1368
|
-
children: /* @__PURE__ */ c(
|
|
1368
|
+
children: /* @__PURE__ */ c(y, { name: "chevronRight" })
|
|
1369
1369
|
}
|
|
1370
1370
|
)
|
|
1371
|
-
] }),
|
|
1371
|
+
] }), Q1 = b(l1), i1 = {
|
|
1372
1372
|
name: "spinnerDark",
|
|
1373
1373
|
color: "text-teal-700",
|
|
1374
1374
|
viewBox: "0 0 24 24"
|
|
1375
1375
|
}, o1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
|
|
1376
|
-
|
|
1376
|
+
y,
|
|
1377
1377
|
{
|
|
1378
1378
|
className: `animate-spin ${d}`,
|
|
1379
1379
|
size: "xSmall",
|
|
1380
1380
|
...i1
|
|
1381
1381
|
}
|
|
1382
|
-
) }), J1 =
|
|
1382
|
+
) }), J1 = b(o1), _1 = ({
|
|
1383
1383
|
className: d,
|
|
1384
1384
|
value: e
|
|
1385
1385
|
}) => {
|
|
@@ -1403,9 +1403,9 @@ const W = {
|
|
|
1403
1403
|
errorMessage: a = "",
|
|
1404
1404
|
id: n = "",
|
|
1405
1405
|
inputClass: s = "",
|
|
1406
|
-
name:
|
|
1406
|
+
name: l = "",
|
|
1407
1407
|
placeholder: i = "",
|
|
1408
|
-
props:
|
|
1408
|
+
props: r = {},
|
|
1409
1409
|
rows: o = 4,
|
|
1410
1410
|
variation: h = "primary"
|
|
1411
1411
|
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", h, d), children: [
|
|
@@ -1414,7 +1414,7 @@ const W = {
|
|
|
1414
1414
|
{
|
|
1415
1415
|
placeholder: i,
|
|
1416
1416
|
id: n,
|
|
1417
|
-
name:
|
|
1417
|
+
name: l,
|
|
1418
1418
|
rows: o,
|
|
1419
1419
|
className: m(
|
|
1420
1420
|
"form-textarea min-h-[40px] pl-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",
|
|
@@ -1443,16 +1443,16 @@ const W = {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
1445
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1446
|
-
] }), d1 =
|
|
1446
|
+
] }), d1 = b(c1), h1 = ({
|
|
1447
1447
|
className: d,
|
|
1448
1448
|
clear: e = !1,
|
|
1449
1449
|
error: t = !1,
|
|
1450
1450
|
errorMessage: a = "",
|
|
1451
1451
|
iconLeft: n = "",
|
|
1452
1452
|
id: s = "",
|
|
1453
|
-
inputClass:
|
|
1453
|
+
inputClass: l,
|
|
1454
1454
|
name: i = "",
|
|
1455
|
-
placeholder:
|
|
1455
|
+
placeholder: r = "",
|
|
1456
1456
|
props: o = {},
|
|
1457
1457
|
styles: h = null,
|
|
1458
1458
|
type: p = "text",
|
|
@@ -1465,7 +1465,7 @@ const W = {
|
|
|
1465
1465
|
style: h ? { ...h } : 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,7 +1476,7 @@ const W = {
|
|
|
1476
1476
|
/* @__PURE__ */ c(
|
|
1477
1477
|
"input",
|
|
1478
1478
|
{
|
|
1479
|
-
placeholder:
|
|
1479
|
+
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
1481
|
name: i,
|
|
1482
1482
|
type: p,
|
|
@@ -1490,7 +1490,7 @@ const W = {
|
|
|
1490
1490
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1491
1491
|
},
|
|
1492
1492
|
o.inputClass ?? "",
|
|
1493
|
-
|
|
1493
|
+
l
|
|
1494
1494
|
),
|
|
1495
1495
|
...o
|
|
1496
1496
|
}
|
|
@@ -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",
|
|
@@ -1513,14 +1513,14 @@ const W = {
|
|
|
1513
1513
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1514
1514
|
]
|
|
1515
1515
|
}
|
|
1516
|
-
), T =
|
|
1516
|
+
), T = b(h1), u1 = ({
|
|
1517
1517
|
btnClass: d,
|
|
1518
1518
|
className: e = "",
|
|
1519
1519
|
containerClass: t,
|
|
1520
1520
|
customSuccessMsg: a = "",
|
|
1521
1521
|
title: n = "Send A Message",
|
|
1522
1522
|
titleClass: s,
|
|
1523
|
-
uppercase:
|
|
1523
|
+
uppercase: l = !0
|
|
1524
1524
|
}) => {
|
|
1525
1525
|
const i = a || /* @__PURE__ */ M(k, { children: [
|
|
1526
1526
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
@@ -1544,7 +1544,7 @@ const W = {
|
|
|
1544
1544
|
{
|
|
1545
1545
|
id: "contactForm",
|
|
1546
1546
|
className: m("contact-form", t, {
|
|
1547
|
-
uppercase:
|
|
1547
|
+
uppercase: l
|
|
1548
1548
|
}),
|
|
1549
1549
|
children: [
|
|
1550
1550
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
@@ -1564,7 +1564,7 @@ const W = {
|
|
|
1564
1564
|
name: "contact-name",
|
|
1565
1565
|
placeholder: "Name",
|
|
1566
1566
|
inputClass: m({
|
|
1567
|
-
"placeholder:uppercase":
|
|
1567
|
+
"placeholder:uppercase": l
|
|
1568
1568
|
})
|
|
1569
1569
|
}
|
|
1570
1570
|
),
|
|
@@ -1575,7 +1575,7 @@ const W = {
|
|
|
1575
1575
|
name: "contact-email",
|
|
1576
1576
|
placeholder: "Email",
|
|
1577
1577
|
inputClass: m({
|
|
1578
|
-
"placeholder:uppercase":
|
|
1578
|
+
"placeholder:uppercase": l
|
|
1579
1579
|
})
|
|
1580
1580
|
}
|
|
1581
1581
|
),
|
|
@@ -1586,7 +1586,7 @@ const W = {
|
|
|
1586
1586
|
name: "contact-message",
|
|
1587
1587
|
placeholder: "Message",
|
|
1588
1588
|
inputClass: m({
|
|
1589
|
-
"placeholder:uppercase":
|
|
1589
|
+
"placeholder:uppercase": l
|
|
1590
1590
|
})
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
@@ -1596,7 +1596,7 @@ const W = {
|
|
|
1596
1596
|
className: m(
|
|
1597
1597
|
"flex mx-auto items-center",
|
|
1598
1598
|
{
|
|
1599
|
-
uppercase:
|
|
1599
|
+
uppercase: l
|
|
1600
1600
|
},
|
|
1601
1601
|
d
|
|
1602
1602
|
),
|
|
@@ -1611,20 +1611,20 @@ const W = {
|
|
|
1611
1611
|
]
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
|
-
}, Y1 =
|
|
1614
|
+
}, Y1 = b(u1), p1 = ({
|
|
1615
1615
|
block: d = !1,
|
|
1616
1616
|
children: e,
|
|
1617
1617
|
className: t,
|
|
1618
1618
|
contentClass: a,
|
|
1619
1619
|
footerClass: n,
|
|
1620
1620
|
footerContent: s,
|
|
1621
|
-
headerContent:
|
|
1621
|
+
headerContent: l,
|
|
1622
1622
|
headerClass: i,
|
|
1623
|
-
list:
|
|
1623
|
+
list: r = !1,
|
|
1624
1624
|
props: o = {},
|
|
1625
1625
|
variation: h = "primary"
|
|
1626
1626
|
}) => {
|
|
1627
|
-
const p =
|
|
1627
|
+
const p = r ? "ul" : "div";
|
|
1628
1628
|
return /* @__PURE__ */ M(
|
|
1629
1629
|
"div",
|
|
1630
1630
|
{
|
|
@@ -1636,12 +1636,12 @@ const W = {
|
|
|
1636
1636
|
),
|
|
1637
1637
|
...o,
|
|
1638
1638
|
children: [
|
|
1639
|
-
|
|
1639
|
+
l && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1640
1640
|
/* @__PURE__ */ c(
|
|
1641
1641
|
p,
|
|
1642
1642
|
{
|
|
1643
1643
|
className: m("content-card__content", a),
|
|
1644
|
-
role:
|
|
1644
|
+
role: r ? "list" : null,
|
|
1645
1645
|
children: e
|
|
1646
1646
|
}
|
|
1647
1647
|
),
|
|
@@ -1649,16 +1649,16 @@ const W = {
|
|
|
1649
1649
|
]
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
|
-
}, K1 =
|
|
1652
|
+
}, K1 = b(p1), m1 = ({
|
|
1653
1653
|
children: d,
|
|
1654
1654
|
className: e,
|
|
1655
1655
|
colGap: t = 2,
|
|
1656
1656
|
direction: a = "col",
|
|
1657
1657
|
label: n,
|
|
1658
1658
|
labelClass: s,
|
|
1659
|
-
props:
|
|
1659
|
+
props: l = {},
|
|
1660
1660
|
rowGap: i = 1,
|
|
1661
|
-
value:
|
|
1661
|
+
value: r,
|
|
1662
1662
|
valueClass: o,
|
|
1663
1663
|
wrap: h = !1
|
|
1664
1664
|
}) => /* @__PURE__ */ M(
|
|
@@ -1677,21 +1677,21 @@ const W = {
|
|
|
1677
1677
|
columnGap: `${t / 4}rem`,
|
|
1678
1678
|
rowGap: `${i / 4}rem`
|
|
1679
1679
|
},
|
|
1680
|
-
...
|
|
1680
|
+
...l,
|
|
1681
1681
|
children: [
|
|
1682
1682
|
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1683
|
-
|
|
1683
|
+
r && /* @__PURE__ */ c("div", { className: m("item-value", o), children: r }),
|
|
1684
1684
|
d
|
|
1685
1685
|
]
|
|
1686
1686
|
}
|
|
1687
|
-
), X1 =
|
|
1687
|
+
), X1 = b(m1), e2 = ({
|
|
1688
1688
|
breakPage: d = !1,
|
|
1689
1689
|
children: e,
|
|
1690
1690
|
className: t,
|
|
1691
1691
|
noPrint: a = !1,
|
|
1692
1692
|
props: n = {},
|
|
1693
1693
|
title: s,
|
|
1694
|
-
titleClass:
|
|
1694
|
+
titleClass: l,
|
|
1695
1695
|
titleId: i
|
|
1696
1696
|
}) => /* @__PURE__ */ M(
|
|
1697
1697
|
"section",
|
|
@@ -1706,7 +1706,7 @@ const W = {
|
|
|
1706
1706
|
),
|
|
1707
1707
|
...n,
|
|
1708
1708
|
children: [
|
|
1709
|
-
s && /* @__PURE__ */ c("h2", { className: m("spacer-title",
|
|
1709
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id: i, children: s }),
|
|
1710
1710
|
e
|
|
1711
1711
|
]
|
|
1712
1712
|
}
|
|
@@ -1724,7 +1724,7 @@ const W = {
|
|
|
1724
1724
|
),
|
|
1725
1725
|
children: n || e
|
|
1726
1726
|
}
|
|
1727
|
-
), a2 =
|
|
1727
|
+
), a2 = b(f1), V1 = {
|
|
1728
1728
|
circular: "circular 3s linear infinite",
|
|
1729
1729
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1730
1730
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1845,7 +1845,7 @@ const W = {
|
|
|
1845
1845
|
aside: "268px",
|
|
1846
1846
|
container: "724px",
|
|
1847
1847
|
page: "1200px"
|
|
1848
|
-
},
|
|
1848
|
+
}, A1 = {
|
|
1849
1849
|
"xs-max": {
|
|
1850
1850
|
max: "639px"
|
|
1851
1851
|
},
|
|
@@ -1863,12 +1863,12 @@ const W = {
|
|
|
1863
1863
|
max: "1199px"
|
|
1864
1864
|
},
|
|
1865
1865
|
"lg-up": "1200px"
|
|
1866
|
-
},
|
|
1866
|
+
}, b1 = {
|
|
1867
1867
|
0: "0ms",
|
|
1868
1868
|
50: "50ms"
|
|
1869
|
-
},
|
|
1869
|
+
}, y1 = {
|
|
1870
1870
|
"center-top": "center 30%"
|
|
1871
|
-
},
|
|
1871
|
+
}, O = {
|
|
1872
1872
|
animation: V1,
|
|
1873
1873
|
backgroundImage: H1,
|
|
1874
1874
|
fontSize: C1,
|
|
@@ -1876,10 +1876,10 @@ const W = {
|
|
|
1876
1876
|
keyframes: M1,
|
|
1877
1877
|
margin: g1,
|
|
1878
1878
|
maxWidth: v1,
|
|
1879
|
-
screens:
|
|
1880
|
-
transitionDuration:
|
|
1881
|
-
transformOrigin:
|
|
1882
|
-
},
|
|
1879
|
+
screens: A1,
|
|
1880
|
+
transitionDuration: b1,
|
|
1881
|
+
transformOrigin: y1
|
|
1882
|
+
}, B = {
|
|
1883
1883
|
black: {
|
|
1884
1884
|
50: "#FCFCFC",
|
|
1885
1885
|
100: "#F9F9F9",
|
|
@@ -1970,7 +1970,7 @@ const W = {
|
|
|
1970
1970
|
current: "currentColor",
|
|
1971
1971
|
transparent: "transparent",
|
|
1972
1972
|
white: "#fff"
|
|
1973
|
-
},
|
|
1973
|
+
}, I = {
|
|
1974
1974
|
blue: {
|
|
1975
1975
|
100: "hsl(240 42% 22%)",
|
|
1976
1976
|
60: "hsl(240 24% 34%)",
|
|
@@ -1987,9 +1987,9 @@ const W = {
|
|
|
1987
1987
|
white: "hsl(0 0% 100%)",
|
|
1988
1988
|
transparent: "hsl(0 0% 100% / 0)"
|
|
1989
1989
|
}, n2 = {
|
|
1990
|
-
...
|
|
1991
|
-
...
|
|
1992
|
-
},
|
|
1990
|
+
...B,
|
|
1991
|
+
...I
|
|
1992
|
+
}, x1 = ({ matchUtilities: d, theme: e }) => d(
|
|
1993
1993
|
{
|
|
1994
1994
|
aspect: (t) => ({
|
|
1995
1995
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2034,27 +2034,27 @@ const W = {
|
|
|
2034
2034
|
fixedProps: a = {},
|
|
2035
2035
|
sizeProps: n = null,
|
|
2036
2036
|
sizes: s,
|
|
2037
|
-
weights:
|
|
2037
|
+
weights: l,
|
|
2038
2038
|
weightProps: i = null
|
|
2039
2039
|
}) => {
|
|
2040
|
-
const
|
|
2040
|
+
const r = {};
|
|
2041
2041
|
Object.entries(s).forEach(([o, h]) => {
|
|
2042
2042
|
const p = {
|
|
2043
2043
|
"font-size": h,
|
|
2044
2044
|
...a
|
|
2045
2045
|
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: h }) : {};
|
|
2046
|
-
|
|
2046
|
+
r[V] = {
|
|
2047
2047
|
...p,
|
|
2048
2048
|
...C
|
|
2049
|
-
}, Object.entries(
|
|
2050
|
-
const
|
|
2051
|
-
|
|
2049
|
+
}, Object.entries(l).forEach(([f, g]) => {
|
|
2050
|
+
const x = `.${e(`${t}-${o}-${f}`)}`, u = i ? i({ sizeKey: o, sizeValue: h, weightKey: f, weightValue: g }) : {};
|
|
2051
|
+
r[x] = {
|
|
2052
2052
|
...p,
|
|
2053
|
-
"font-weight":
|
|
2053
|
+
"font-weight": g,
|
|
2054
2054
|
...u
|
|
2055
2055
|
};
|
|
2056
2056
|
});
|
|
2057
|
-
}), d(
|
|
2057
|
+
}), d(r);
|
|
2058
2058
|
}, $ = {
|
|
2059
2059
|
aspectRatio: !1,
|
|
2060
2060
|
backdropBlur: !1,
|
|
@@ -2127,7 +2127,7 @@ const W = {
|
|
|
2127
2127
|
medium: "500",
|
|
2128
2128
|
semibold: "600",
|
|
2129
2129
|
bold: "700"
|
|
2130
|
-
},
|
|
2130
|
+
}, l = {
|
|
2131
2131
|
title: "2rem",
|
|
2132
2132
|
1: "1.75rem",
|
|
2133
2133
|
2: "1.625rem",
|
|
@@ -2147,10 +2147,10 @@ const W = {
|
|
|
2147
2147
|
fixedProps: {
|
|
2148
2148
|
"line-height": "1.5"
|
|
2149
2149
|
},
|
|
2150
|
-
sizeProps: ({ sizeKey:
|
|
2151
|
-
"font-weight": n.includes(
|
|
2150
|
+
sizeProps: ({ sizeKey: r }) => ({
|
|
2151
|
+
"font-weight": n.includes(r) ? s.semibold : s.bold
|
|
2152
2152
|
}),
|
|
2153
|
-
sizes:
|
|
2153
|
+
sizes: l,
|
|
2154
2154
|
weights: s
|
|
2155
2155
|
}), D({
|
|
2156
2156
|
addUtilities: d,
|
|
@@ -2158,19 +2158,19 @@ const W = {
|
|
|
2158
2158
|
classPrefix: "text-body",
|
|
2159
2159
|
sizes: i,
|
|
2160
2160
|
weights: s
|
|
2161
|
-
}),
|
|
2161
|
+
}), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
|
|
2162
2162
|
}
|
|
2163
2163
|
], s2 = {
|
|
2164
2164
|
theme: {
|
|
2165
|
-
extend:
|
|
2166
|
-
colors:
|
|
2165
|
+
extend: O,
|
|
2166
|
+
colors: B
|
|
2167
2167
|
},
|
|
2168
2168
|
plugins: q,
|
|
2169
2169
|
corePlugins: $
|
|
2170
|
-
},
|
|
2170
|
+
}, r2 = {
|
|
2171
2171
|
theme: {
|
|
2172
|
-
extend:
|
|
2173
|
-
colors:
|
|
2172
|
+
extend: O,
|
|
2173
|
+
colors: I
|
|
2174
2174
|
},
|
|
2175
2175
|
plugins: q,
|
|
2176
2176
|
corePlugins: $
|
|
@@ -2182,11 +2182,11 @@ function z1(d, e = []) {
|
|
|
2182
2182
|
},
|
|
2183
2183
|
set(t, a, n) {
|
|
2184
2184
|
const s = { ...t };
|
|
2185
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2185
|
+
return t[a] = n, e.length > 0 && e.forEach((l) => l(t, s, a)), t;
|
|
2186
2186
|
}
|
|
2187
2187
|
});
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function l2(d, e = []) {
|
|
2190
2190
|
e.length && (d == null || d.classList.add(...e));
|
|
2191
2191
|
}
|
|
2192
2192
|
function i2(d, e = []) {
|
|
@@ -2194,12 +2194,12 @@ function i2(d, e = []) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
function o2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2196
2196
|
let s = !0;
|
|
2197
|
-
for (const [
|
|
2198
|
-
const
|
|
2197
|
+
for (const [l, i] of t.entries()) {
|
|
2198
|
+
const r = e.querySelector(`[name="${l}"]`), o = a[l], h = [];
|
|
2199
2199
|
o.forEach((p) => {
|
|
2200
2200
|
p.isValid(i) || h.push(p.message);
|
|
2201
|
-
}), h.length ? (s = !1,
|
|
2202
|
-
p.preventDefault(),
|
|
2201
|
+
}), h.length ? (s = !1, r.classList.add("field-error"), d && d({ isValid: s, field: r, validations: a })) : (r.classList.remove("field-error"), d && d({ isValid: !0, field: r, validations: a })), n && (r == null || r.addEventListener("input", (p) => {
|
|
2202
|
+
p.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2203
2203
|
}));
|
|
2204
2204
|
}
|
|
2205
2205
|
return s;
|
|
@@ -2253,16 +2253,16 @@ class d2 {
|
|
|
2253
2253
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2254
2254
|
}
|
|
2255
2255
|
handleIntersect(e, t, a) {
|
|
2256
|
-
const n = e.filter((
|
|
2257
|
-
(
|
|
2256
|
+
const n = e.filter((r) => r.isIntersecting), s = n.length === a.slides.length, l = n.every(
|
|
2257
|
+
(r) => r.isIntersecting === !0
|
|
2258
2258
|
);
|
|
2259
|
-
s &&
|
|
2260
|
-
const o = [...a.slides].indexOf(
|
|
2261
|
-
|
|
2259
|
+
s && l ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
|
|
2260
|
+
const o = [...a.slides].indexOf(r.target);
|
|
2261
|
+
r.target === a.slides[0] && (a.showPrevBtn = r.isIntersecting), r.target === a.slides[a.slides.length - 1] && (a.showNextBtn = r.isIntersecting), r.target === a.slides[2] && (a.scrollToStart = r.isIntersecting), r.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = r.isIntersecting), r.isIntersecting && !a.entriesIntersected.includes(o) && (a.entriesIntersected.push(o), a.activeIndex = o, i(r));
|
|
2262
2262
|
}));
|
|
2263
|
-
function i(
|
|
2263
|
+
function i(r) {
|
|
2264
2264
|
var o;
|
|
2265
|
-
|
|
2265
|
+
r.target !== a.slides[a.slides.length - 1] && r.target !== a.slides[0] && r.target !== a.slides[2] && r.target !== a.slides[a.slides.length - 2] && ((o = a.observer) == null || o.unobserve(r.target));
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
2268
|
btnListeners(e) {
|
|
@@ -2281,7 +2281,7 @@ class d2 {
|
|
|
2281
2281
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2282
2282
|
}
|
|
2283
2283
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2284
|
-
const s = '<span class="slide-first"></span>',
|
|
2284
|
+
const s = '<span class="slide-first"></span>', l = '<span class="slide-last"></span>';
|
|
2285
2285
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2286
2286
|
return console.error(`slider-container-${a} Not Found`);
|
|
2287
2287
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2289,8 +2289,8 @@ class d2 {
|
|
|
2289
2289
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2290
2290
|
`#btn-right-${a}`
|
|
2291
2291
|
);
|
|
2292
|
-
const i = t.map((o) => n(o)).join(""),
|
|
2293
|
-
|
|
2292
|
+
const i = t.map((o) => n(o)).join(""), r = document.createElement("div");
|
|
2293
|
+
r.innerHTML = `${s}${i}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
|
|
2294
2294
|
}
|
|
2295
2295
|
showHideBtns(e, t, a) {
|
|
2296
2296
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2302,10 +2302,10 @@ class d2 {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
class H {
|
|
2304
2304
|
static calcCrow(e, t, a, n) {
|
|
2305
|
-
const
|
|
2305
|
+
const l = H.toRad(a - e), i = H.toRad(n - t);
|
|
2306
2306
|
e = H.toRad(e), a = H.toRad(a);
|
|
2307
|
-
const
|
|
2308
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2307
|
+
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2308
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2309
2309
|
}
|
|
2310
2310
|
static cleanupAddress(e) {
|
|
2311
2311
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2333,11 +2333,11 @@ class H {
|
|
|
2333
2333
|
static async createData(e, t = null, a = !0) {
|
|
2334
2334
|
if (window.options.isBot || !t)
|
|
2335
2335
|
return null;
|
|
2336
|
-
const { tolken: n = null, ip: s = null } = await H.getHeaders(),
|
|
2336
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, i = e + l, r = typeof t == "string" ? t : JSON.stringify(t), o = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2337
2337
|
try {
|
|
2338
2338
|
const h = await fetch(i, {
|
|
2339
2339
|
method: "POST",
|
|
2340
|
-
body:
|
|
2340
|
+
body: r === "null" ? null : r,
|
|
2341
2341
|
headers: {
|
|
2342
2342
|
website: o
|
|
2343
2343
|
}
|
|
@@ -2409,15 +2409,15 @@ class H {
|
|
|
2409
2409
|
return null;
|
|
2410
2410
|
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2411
2411
|
try {
|
|
2412
|
-
const
|
|
2412
|
+
const r = await fetch(i, { method: "GET" });
|
|
2413
2413
|
if (t === !0) {
|
|
2414
|
-
const h = await
|
|
2414
|
+
const h = await r.text();
|
|
2415
2415
|
return h ? h.replace("__next", "") : null;
|
|
2416
2416
|
}
|
|
2417
|
-
const o =
|
|
2418
|
-
return o && o.indexOf("application/json") !== -1 ?
|
|
2419
|
-
} catch (
|
|
2420
|
-
console.error("fetchData",
|
|
2417
|
+
const o = r.headers.get("content-type");
|
|
2418
|
+
return o && o.indexOf("application/json") !== -1 ? r.json() : null;
|
|
2419
|
+
} catch (r) {
|
|
2420
|
+
console.error("fetchData", r, e);
|
|
2421
2421
|
}
|
|
2422
2422
|
return null;
|
|
2423
2423
|
}
|
|
@@ -2445,12 +2445,12 @@ class H {
|
|
|
2445
2445
|
swLng: 0
|
|
2446
2446
|
};
|
|
2447
2447
|
const n = e.getBounds();
|
|
2448
|
-
let s = n.getSouth(),
|
|
2449
|
-
return a && (s = s - a,
|
|
2448
|
+
let s = n.getSouth(), l = n.getEast(), i = n.getNorth(), r = n.getWest();
|
|
2449
|
+
return a && (s = s - a, l = l + a, i = i + a, r = r - a), t && (s = s.toFixed(t), l = l.toFixed(t), i = i.toFixed(t), r = r.toFixed(t)), {
|
|
2450
2450
|
swLat: s,
|
|
2451
|
-
neLng:
|
|
2451
|
+
neLng: l,
|
|
2452
2452
|
neLat: i,
|
|
2453
|
-
swLng:
|
|
2453
|
+
swLng: r
|
|
2454
2454
|
};
|
|
2455
2455
|
}
|
|
2456
2456
|
static getFirstN(e, t = 5) {
|
|
@@ -2478,19 +2478,19 @@ class H {
|
|
|
2478
2478
|
return "/report/license-plate";
|
|
2479
2479
|
}
|
|
2480
2480
|
static async getHeaders(e = 300) {
|
|
2481
|
-
var
|
|
2481
|
+
var r;
|
|
2482
2482
|
const {
|
|
2483
2483
|
userAgent: t = null,
|
|
2484
2484
|
userAgentData: a = null,
|
|
2485
2485
|
platform: n = null
|
|
2486
|
-
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n,
|
|
2486
|
+
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, l = {
|
|
2487
2487
|
tolken: null,
|
|
2488
2488
|
ip: null,
|
|
2489
2489
|
userAgent: t,
|
|
2490
2490
|
platform: s
|
|
2491
2491
|
};
|
|
2492
2492
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2493
|
-
return
|
|
2493
|
+
return l;
|
|
2494
2494
|
const i = localStorage.getItem("headerTolken");
|
|
2495
2495
|
if (i) {
|
|
2496
2496
|
const o = JSON.parse(i), h = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -2501,8 +2501,8 @@ class H {
|
|
|
2501
2501
|
platform: s
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
if ((
|
|
2505
|
-
return
|
|
2504
|
+
if ((r = window == null ? void 0 : window.options) != null && r.isPdf)
|
|
2505
|
+
return l;
|
|
2506
2506
|
try {
|
|
2507
2507
|
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
|
|
2508
2508
|
return localStorage.setItem(
|
|
@@ -2516,7 +2516,7 @@ class H {
|
|
|
2516
2516
|
} catch (o) {
|
|
2517
2517
|
console.error("getHeaders", o);
|
|
2518
2518
|
}
|
|
2519
|
-
return
|
|
2519
|
+
return l;
|
|
2520
2520
|
}
|
|
2521
2521
|
static getLayerTitle(e) {
|
|
2522
2522
|
return {
|
|
@@ -2525,14 +2525,14 @@ class H {
|
|
|
2525
2525
|
}[e];
|
|
2526
2526
|
}
|
|
2527
2527
|
static async getLocationData(e) {
|
|
2528
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05),
|
|
2529
|
-
return await H.fetchData("/api/client?query=" +
|
|
2528
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2529
|
+
return await H.fetchData("/api/client?query=" + l);
|
|
2530
2530
|
}
|
|
2531
2531
|
static getReportUrl(e, t = null) {
|
|
2532
|
-
var
|
|
2533
|
-
const a = ((
|
|
2532
|
+
var r, o, h;
|
|
2533
|
+
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2534
2534
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2535
|
-
const i = [
|
|
2535
|
+
const i = [l, "-piq", t].filter((p) => p).join("");
|
|
2536
2536
|
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
|
|
2537
2537
|
}
|
|
2538
2538
|
static async getSearchValue(e = "recsSearchValue") {
|
|
@@ -2699,18 +2699,18 @@ class H {
|
|
|
2699
2699
|
static gridTest(e, t, a = 1500) {
|
|
2700
2700
|
const n = this;
|
|
2701
2701
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2702
|
-
createTile: function(s,
|
|
2702
|
+
createTile: function(s, l) {
|
|
2703
2703
|
const i = document.createElement("div");
|
|
2704
2704
|
return setTimeout(() => {
|
|
2705
|
-
|
|
2706
|
-
const { se:
|
|
2705
|
+
l(null, i);
|
|
2706
|
+
const { se: r, nw: o } = n.getGridBounds({
|
|
2707
2707
|
map: e,
|
|
2708
2708
|
tileSize: this.getTileSize(),
|
|
2709
2709
|
coords: s
|
|
2710
2710
|
});
|
|
2711
2711
|
t({
|
|
2712
|
-
swLat:
|
|
2713
|
-
neLng:
|
|
2712
|
+
swLat: r.lat,
|
|
2713
|
+
neLng: r.lng,
|
|
2714
2714
|
neLat: o.lat,
|
|
2715
2715
|
swLng: o.lng,
|
|
2716
2716
|
coords: s,
|
|
@@ -2740,10 +2740,10 @@ class H {
|
|
|
2740
2740
|
onClose: a = null,
|
|
2741
2741
|
onOpen: n = null,
|
|
2742
2742
|
onTargetClick: s = null,
|
|
2743
|
-
selfClose:
|
|
2743
|
+
selfClose: l = !1,
|
|
2744
2744
|
target: i = null
|
|
2745
2745
|
}) {
|
|
2746
|
-
const
|
|
2746
|
+
const r = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), h = l ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
|
|
2747
2747
|
"closing",
|
|
2748
2748
|
"closed",
|
|
2749
2749
|
"opening",
|
|
@@ -2751,23 +2751,23 @@ class H {
|
|
|
2751
2751
|
"outside",
|
|
2752
2752
|
"removed"
|
|
2753
2753
|
].reduce(
|
|
2754
|
-
(u,
|
|
2754
|
+
(u, v) => ({
|
|
2755
2755
|
...u,
|
|
2756
|
-
[
|
|
2756
|
+
[v]: new Event(v)
|
|
2757
2757
|
}),
|
|
2758
2758
|
{}
|
|
2759
|
-
), V = new MutationObserver((u,
|
|
2759
|
+
), V = new MutationObserver((u, v) => {
|
|
2760
2760
|
u.forEach(async (w) => {
|
|
2761
2761
|
if (w.attributeName === "open") {
|
|
2762
|
-
const
|
|
2763
|
-
if (!(
|
|
2764
|
-
|
|
2762
|
+
const A = w.target;
|
|
2763
|
+
if (!(A == null ? void 0 : A.hasAttribute("open"))) return;
|
|
2764
|
+
A == null || A.removeAttribute("inert"), A == null || A.dispatchEvent(p.opening), A && await x(A), A == null || A.dispatchEvent(p.opened);
|
|
2765
2765
|
}
|
|
2766
2766
|
});
|
|
2767
|
-
}), C = new MutationObserver((u,
|
|
2767
|
+
}), C = new MutationObserver((u, v) => {
|
|
2768
2768
|
u.forEach((w) => {
|
|
2769
|
-
w.removedNodes.forEach((
|
|
2770
|
-
|
|
2769
|
+
w.removedNodes.forEach((A) => {
|
|
2770
|
+
A.nodeName === "DIALOG" && (A.removeEventListener("click", g), A.removeEventListener("close", f), A.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2771
2771
|
});
|
|
2772
2772
|
});
|
|
2773
2773
|
});
|
|
@@ -2779,26 +2779,26 @@ class H {
|
|
|
2779
2779
|
childList: !0
|
|
2780
2780
|
}));
|
|
2781
2781
|
const f = async ({ target: u }) => {
|
|
2782
|
-
u == null || u.classList.add("closing"), u == null || u.setAttribute("inert", ""), u == null || u.dispatchEvent(p.closing), u && await
|
|
2783
|
-
},
|
|
2782
|
+
u == null || u.classList.add("closing"), u == null || u.setAttribute("inert", ""), u == null || u.dispatchEvent(p.closing), u && await x(u), u == null || u.classList.remove("closing"), u == null || u.dispatchEvent(p.closed);
|
|
2783
|
+
}, g = async ({ target: u }) => {
|
|
2784
2784
|
(u == null ? void 0 : u.nodeName) === "DIALOG" && (u == null || u.dispatchEvent(p.outside), o == null || o.close("outside"));
|
|
2785
|
-
},
|
|
2786
|
-
u == null ? void 0 : u.getAnimations().map((
|
|
2785
|
+
}, x = (u) => Promise.allSettled(
|
|
2786
|
+
u == null ? void 0 : u.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2787
2787
|
);
|
|
2788
|
-
return !e && (o == null || o.addEventListener("click",
|
|
2788
|
+
return !e && (o == null || o.addEventListener("click", g)), o == null || o.addEventListener("close", async (u) => {
|
|
2789
2789
|
await f({ target: u.target }), a && a(u, o);
|
|
2790
2790
|
}), n && (o == null || o.addEventListener("open", async (u) => {
|
|
2791
2791
|
n(u, o);
|
|
2792
|
-
})),
|
|
2793
|
-
u.addEventListener("click", (
|
|
2794
|
-
o == null || o.showModal(), s && s(
|
|
2792
|
+
})), r == null || r.forEach((u) => {
|
|
2793
|
+
u.addEventListener("click", (v) => {
|
|
2794
|
+
o == null || o.showModal(), s && s(v, o);
|
|
2795
2795
|
});
|
|
2796
2796
|
}), h == null || h.forEach((u) => {
|
|
2797
|
-
u.addEventListener("click", async (
|
|
2797
|
+
u.addEventListener("click", async (v) => {
|
|
2798
2798
|
o == null || o.close("close");
|
|
2799
2799
|
});
|
|
2800
2800
|
}), {
|
|
2801
|
-
activators:
|
|
2801
|
+
activators: r,
|
|
2802
2802
|
ref: o
|
|
2803
2803
|
};
|
|
2804
2804
|
}
|
|
@@ -2809,8 +2809,8 @@ class H {
|
|
|
2809
2809
|
if (!e)
|
|
2810
2810
|
return;
|
|
2811
2811
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2812
|
-
new IntersectionObserver(async (
|
|
2813
|
-
n ? (
|
|
2812
|
+
new IntersectionObserver(async (l, i) => {
|
|
2813
|
+
n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs: i, entry: l[0], entries: l }) : l[0].isIntersecting && t({ obs: i, entry: l[0], entries: l });
|
|
2814
2814
|
}, a).observe(e);
|
|
2815
2815
|
}
|
|
2816
2816
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2818,11 +2818,11 @@ class H {
|
|
|
2818
2818
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2819
2819
|
}
|
|
2820
2820
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2821
|
-
return new Promise(function(s,
|
|
2821
|
+
return new Promise(function(s, l) {
|
|
2822
2822
|
let i = document.getElementById(t);
|
|
2823
2823
|
if (t && i && i.dataset.loaded === "true")
|
|
2824
2824
|
return s({ alreadyLoaded: !0, id: t });
|
|
2825
|
-
i || (i = document.createElement("script"), i.src = e, i.dataset.loaded = "false", t && (i.id = t), i.type = n ? "module" : "text/javascript", i.async = a, document.body.appendChild(i), i.onload = () => (i.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), i.onerror = () =>
|
|
2825
|
+
i || (i = document.createElement("script"), i.src = e, i.dataset.loaded = "false", t && (i.id = t), i.type = n ? "module" : "text/javascript", i.async = a, document.body.appendChild(i), i.onload = () => (i.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), i.onerror = () => l(!1));
|
|
2826
2826
|
});
|
|
2827
2827
|
}
|
|
2828
2828
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2855,14 +2855,14 @@ class H {
|
|
|
2855
2855
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2856
2856
|
}
|
|
2857
2857
|
static async logRequest(e = null, t = null, a = null, n = null, s = null) {
|
|
2858
|
-
const
|
|
2858
|
+
const l = {
|
|
2859
2859
|
name: e,
|
|
2860
2860
|
uuid: t,
|
|
2861
2861
|
ip: a,
|
|
2862
2862
|
url: n,
|
|
2863
2863
|
data: s
|
|
2864
2864
|
};
|
|
2865
|
-
return await H.createData("/api/client?query=log/save&method=POST",
|
|
2865
|
+
return await H.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2866
2866
|
}
|
|
2867
2867
|
static loadAds() {
|
|
2868
2868
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2886,8 +2886,8 @@ class H {
|
|
|
2886
2886
|
async: !1,
|
|
2887
2887
|
module: a
|
|
2888
2888
|
});
|
|
2889
|
-
} catch (
|
|
2890
|
-
console.error("loadCustomScript",
|
|
2889
|
+
} catch (l) {
|
|
2890
|
+
console.error("loadCustomScript", l);
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
2893
2893
|
return null;
|
|
@@ -2948,17 +2948,17 @@ class H {
|
|
|
2948
2948
|
first: a = null,
|
|
2949
2949
|
middle: n = null,
|
|
2950
2950
|
last: s = null,
|
|
2951
|
-
min:
|
|
2951
|
+
min: l = null,
|
|
2952
2952
|
max: i = null,
|
|
2953
|
-
city:
|
|
2953
|
+
city: r = null,
|
|
2954
2954
|
state: o = null,
|
|
2955
2955
|
vin: h = null,
|
|
2956
2956
|
license: p = null,
|
|
2957
2957
|
token: V = null,
|
|
2958
2958
|
phone: C = null
|
|
2959
|
-
} = e || {}, f = t && t !== "",
|
|
2959
|
+
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
|
|
2960
2960
|
let u = [];
|
|
2961
|
-
return t && t !== "" && u.push("name=" + t), f || (a && a !== "" && u.push("first=" + a), n && n !== "" && u.push("middle=" + n), s && s !== "" && u.push("last=" + s)),
|
|
2961
|
+
return t && t !== "" && u.push("name=" + t), f || (a && a !== "" && u.push("first=" + a), n && n !== "" && u.push("middle=" + n), s && s !== "" && u.push("last=" + s)), g && x ? parseInt(l) > parseInt(i) ? (u.push("min=" + i), u.push("max=" + l)) : (u.push("min=" + l), u.push("max=" + i)) : (g && u.push("min=" + l), x && u.push("max=" + i)), C && C !== "" && u.push("phone=" + C), r && r !== "" && u.push("city=" + r), p && p !== "" && u.push("license=" + p), h && h !== "" && u.push("vin=" + h), o && o !== "" && u.push("state=" + o), V && V !== "" && u.push("token=" + V), u.join("&");
|
|
2962
2962
|
}
|
|
2963
2963
|
static padTo2Digits(e) {
|
|
2964
2964
|
return e.toString().padStart(2, "0");
|
|
@@ -2972,22 +2972,26 @@ class H {
|
|
|
2972
2972
|
addressesOnly: a = !1,
|
|
2973
2973
|
useCitySearch: n = !1,
|
|
2974
2974
|
useCityStateSearch: s = !1,
|
|
2975
|
-
useSearch:
|
|
2975
|
+
useSearch: l = !1,
|
|
2976
2976
|
useLocation: i = !0,
|
|
2977
|
-
state:
|
|
2978
|
-
useGoogle: o = !1
|
|
2979
|
-
|
|
2977
|
+
state: r = "",
|
|
2978
|
+
useGoogle: o = !1,
|
|
2979
|
+
useGoogleOverride: h = !1,
|
|
2980
|
+
useAmazonOverride: p = !1
|
|
2981
|
+
} = t ?? {}, { tolken: V = null, ip: C = null } = await H.getHeaders(), g = [
|
|
2980
2982
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2981
2983
|
"addressesOnly=" + a,
|
|
2982
|
-
"useSearch=" +
|
|
2984
|
+
"useSearch=" + l,
|
|
2983
2985
|
"useCitySearch=" + n,
|
|
2984
2986
|
"useCityStateSearch=" + s,
|
|
2985
2987
|
"useLocation=" + i,
|
|
2986
|
-
"useGoogle=" + o
|
|
2988
|
+
"useGoogle=" + o,
|
|
2989
|
+
"useGoogleOverride=" + h,
|
|
2990
|
+
"useAmazonOverride=" + p
|
|
2987
2991
|
];
|
|
2988
|
-
|
|
2989
|
-
const
|
|
2990
|
-
return await H.makeSearchFetchCall(
|
|
2992
|
+
r && r !== "" && !s && g.push("state=" + r), V && V !== "" && g.push("tolken=" + V), C && C !== "" && g.push("ip=" + C);
|
|
2993
|
+
const x = g.join("&"), v = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + x;
|
|
2994
|
+
return await H.makeSearchFetchCall(v);
|
|
2991
2995
|
}
|
|
2992
2996
|
static removeElements(e) {
|
|
2993
2997
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3032,14 +3036,30 @@ class H {
|
|
|
3032
3036
|
s && (n = s.short);
|
|
3033
3037
|
}
|
|
3034
3038
|
if (a && !n) {
|
|
3035
|
-
const s = a.split(" "),
|
|
3036
|
-
if (
|
|
3037
|
-
const i = this.searchInStates(
|
|
3039
|
+
const s = a.split(" "), l = s[s.length - 1];
|
|
3040
|
+
if (l.length) {
|
|
3041
|
+
const i = this.searchInStates(l);
|
|
3038
3042
|
i && (n = i.short, a = s.slice(0, -1).join(" "));
|
|
3039
3043
|
}
|
|
3040
3044
|
}
|
|
3041
3045
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3042
3046
|
}
|
|
3047
|
+
/**
|
|
3048
|
+
* @param {Array<{ fileName: string, initFunctionName: string }>} fileNames - Array of objects with fileName and initFunctionName properties
|
|
3049
|
+
* @param {string} subfolder - The subfolder to load the files from
|
|
3050
|
+
* @returns {Promise}
|
|
3051
|
+
*/
|
|
3052
|
+
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3053
|
+
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3054
|
+
try {
|
|
3055
|
+
const l = e.map(({ fileName: o, initFunctionName: h }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(l), r = [];
|
|
3056
|
+
i.forEach((o, h) => {
|
|
3057
|
+
o && typeof o[e[h].initFunctionName] == "function" ? r.push(o[e[h].initFunctionName]()) : console.error(`error loading ${e[h].initFunctionName}()`);
|
|
3058
|
+
}), r.length > 0 && await Promise.all(r);
|
|
3059
|
+
} catch (l) {
|
|
3060
|
+
console.error("Failed to load one or more search modules:", l);
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3043
3063
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3044
3064
|
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
3045
3065
|
}
|
|
@@ -3123,37 +3143,37 @@ export {
|
|
|
3123
3143
|
F1 as Accordion,
|
|
3124
3144
|
T1 as Alert,
|
|
3125
3145
|
D1 as Autocomplete,
|
|
3126
|
-
|
|
3146
|
+
O1 as Badge,
|
|
3127
3147
|
F as Button,
|
|
3128
3148
|
d2 as CardSlider,
|
|
3129
|
-
|
|
3149
|
+
B1 as Checkbox,
|
|
3130
3150
|
H as Common,
|
|
3131
3151
|
Y1 as ContactForm,
|
|
3132
3152
|
K1 as ContentCard,
|
|
3133
|
-
|
|
3153
|
+
I1 as Dialog,
|
|
3134
3154
|
$1 as Dots,
|
|
3135
3155
|
X1 as FlexItem,
|
|
3136
3156
|
a2 as FunnelHeader,
|
|
3137
|
-
|
|
3157
|
+
y as Icon,
|
|
3138
3158
|
q1 as LoadingBar,
|
|
3139
3159
|
P1 as Popover,
|
|
3140
3160
|
j1 as ProcessingSpinner,
|
|
3141
3161
|
R1 as ProgressBar,
|
|
3142
3162
|
W1 as Radio,
|
|
3143
3163
|
U1 as Select,
|
|
3144
|
-
|
|
3145
|
-
|
|
3164
|
+
G1 as Skeleton,
|
|
3165
|
+
Q1 as Slider,
|
|
3146
3166
|
e2 as Spacer,
|
|
3147
3167
|
J1 as Spinner,
|
|
3148
3168
|
t2 as StackedListItem,
|
|
3149
3169
|
_1 as Stars,
|
|
3150
3170
|
d1 as TextArea,
|
|
3151
3171
|
T as Textbox,
|
|
3152
|
-
|
|
3172
|
+
l2 as addClass,
|
|
3153
3173
|
n2 as colors,
|
|
3154
3174
|
$ as corePlugins,
|
|
3155
|
-
|
|
3156
|
-
|
|
3175
|
+
r2 as elerisPreset,
|
|
3176
|
+
O as extensions,
|
|
3157
3177
|
q as plugins,
|
|
3158
3178
|
s2 as propertyPreset,
|
|
3159
3179
|
i2 as removeClass,
|