@vehiclehistory/property-lib 0.0.86 → 0.0.88
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as c, jsxs as M, Fragment as
|
|
1
|
+
import { jsx as c, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import m from "classnames";
|
|
3
|
-
import { memo as
|
|
3
|
+
import { memo as A, 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",
|
|
@@ -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), [l,
|
|
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
|
{
|
|
@@ -524,7 +524,7 @@ const W = {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
},
|
|
527
|
+
}, x = A(Q), J = ({
|
|
528
528
|
children: d,
|
|
529
529
|
className: e,
|
|
530
530
|
clickHandler: t,
|
|
@@ -533,18 +533,18 @@ const W = {
|
|
|
533
533
|
unmount: s = !0,
|
|
534
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
|
),
|
|
547
|
-
children: /* @__PURE__ */ M(
|
|
547
|
+
children: /* @__PURE__ */ M(S, { children: [
|
|
548
548
|
/* @__PURE__ */ M(
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
@@ -554,12 +554,12 @@ const W = {
|
|
|
554
554
|
),
|
|
555
555
|
title: n,
|
|
556
556
|
onClick: () => {
|
|
557
|
-
r(!
|
|
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
|
+
x,
|
|
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
|
}
|
|
@@ -593,7 +593,7 @@ const W = {
|
|
|
593
593
|
] })
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
|
-
},
|
|
596
|
+
}, T1 = A(J), _ = ({
|
|
597
597
|
children: d,
|
|
598
598
|
className: e,
|
|
599
599
|
messages: t = [],
|
|
@@ -601,7 +601,7 @@ const W = {
|
|
|
601
601
|
title: n = "",
|
|
602
602
|
titleClass: s = "",
|
|
603
603
|
props: l = {},
|
|
604
|
-
type:
|
|
604
|
+
type: o = "error"
|
|
605
605
|
}) => {
|
|
606
606
|
const r = {
|
|
607
607
|
error: {
|
|
@@ -624,11 +624,11 @@ 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: u, styles: p } = 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
|
p,
|
|
@@ -637,11 +637,11 @@ const W = {
|
|
|
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
|
+
x,
|
|
641
641
|
{
|
|
642
|
-
name:
|
|
642
|
+
name: i,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
|
-
className:
|
|
644
|
+
className: u,
|
|
645
645
|
size: "xSmall"
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
@@ -663,7 +663,7 @@ const W = {
|
|
|
663
663
|
] })
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
|
-
},
|
|
666
|
+
}, D1 = A(_), O1 = ({
|
|
667
667
|
autoFocus: d = !1,
|
|
668
668
|
className: e,
|
|
669
669
|
dataSearch: t = "container",
|
|
@@ -671,20 +671,20 @@ const W = {
|
|
|
671
671
|
floatingLabel: n = "",
|
|
672
672
|
id: s = "",
|
|
673
673
|
inputClass: l,
|
|
674
|
-
leftIcon:
|
|
674
|
+
leftIcon: o = "homeSearch",
|
|
675
675
|
mobileBackdrop: r = !1,
|
|
676
|
-
name:
|
|
677
|
-
options:
|
|
676
|
+
name: i = "",
|
|
677
|
+
options: u = [],
|
|
678
678
|
parentProps: p = {},
|
|
679
679
|
placeholder: V = "",
|
|
680
680
|
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
|
-
required:
|
|
683
|
-
showSearchIcon:
|
|
684
|
-
showRightIcon:
|
|
685
|
-
size:
|
|
682
|
+
required: g = !1,
|
|
683
|
+
showSearchIcon: y = !0,
|
|
684
|
+
showRightIcon: h = !1,
|
|
685
|
+
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
687
|
-
title:
|
|
687
|
+
title: b = "",
|
|
688
688
|
type: E,
|
|
689
689
|
useGoogle: j = !1,
|
|
690
690
|
useReact: P = !1
|
|
@@ -701,7 +701,7 @@ const W = {
|
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
702
|
...p,
|
|
703
703
|
children: [
|
|
704
|
-
|
|
704
|
+
y && /* @__PURE__ */ M(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
707
|
className: m(
|
|
@@ -712,20 +712,20 @@ const W = {
|
|
|
712
712
|
),
|
|
713
713
|
children: [
|
|
714
714
|
/* @__PURE__ */ c(
|
|
715
|
-
|
|
715
|
+
x,
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
|
-
name:
|
|
719
|
-
size:
|
|
718
|
+
name: o,
|
|
719
|
+
size: v === "xLarge" ? "small" : "xSmall",
|
|
720
720
|
viewBox: "0 0 24 24"
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
723
|
/* @__PURE__ */ c(
|
|
724
|
-
|
|
724
|
+
x,
|
|
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,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":
|
|
744
|
-
"px-3 h-10":
|
|
745
|
-
"px-4 h-12":
|
|
746
|
-
"px-5 h-[60px] sm:!text-base":
|
|
743
|
+
"pl-8": y === !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",
|
|
755
|
-
name:
|
|
755
|
+
name: i || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
758
|
...C
|
|
@@ -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": y === !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
|
+
x,
|
|
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
|
+
x,
|
|
799
799
|
{
|
|
800
800
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
801
801
|
name: "spinnerDark",
|
|
@@ -809,8 +809,8 @@ const W = {
|
|
|
809
809
|
"span",
|
|
810
810
|
{
|
|
811
811
|
"data-id": "right-icon",
|
|
812
|
-
className: `${
|
|
813
|
-
children: /* @__PURE__ */ c(
|
|
812
|
+
className: `${h ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
813
|
+
children: /* @__PURE__ */ c(x, { name: f, size: "small", viewBox: "0 0 24 24" })
|
|
814
814
|
}
|
|
815
815
|
),
|
|
816
816
|
/* @__PURE__ */ M(
|
|
@@ -825,10 +825,10 @@ const W = {
|
|
|
825
825
|
{
|
|
826
826
|
"data-id": "search-dropdown-body",
|
|
827
827
|
role: "listbox",
|
|
828
|
-
"data-title":
|
|
828
|
+
"data-title": b,
|
|
829
829
|
"aria-labelledby": "Label",
|
|
830
830
|
"aria-activedescendant": "search-item-0",
|
|
831
|
-
children:
|
|
831
|
+
children: u.length > 0 ? u.map((k, z) => /* @__PURE__ */ c(
|
|
832
832
|
"li",
|
|
833
833
|
{
|
|
834
834
|
id: `search-item-${z}`,
|
|
@@ -836,7 +836,7 @@ const W = {
|
|
|
836
836
|
className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
|
|
837
837
|
"aria-selected": z === 0,
|
|
838
838
|
role: "option",
|
|
839
|
-
children: (
|
|
839
|
+
children: (k == null ? void 0 : k.name) || k
|
|
840
840
|
},
|
|
841
841
|
`search-item-${z}`
|
|
842
842
|
)) : ""
|
|
@@ -848,7 +848,7 @@ const W = {
|
|
|
848
848
|
]
|
|
849
849
|
}
|
|
850
850
|
);
|
|
851
|
-
},
|
|
851
|
+
}, B1 = ({
|
|
852
852
|
children: d,
|
|
853
853
|
className: e,
|
|
854
854
|
size: t = "sm",
|
|
@@ -875,26 +875,26 @@ const W = {
|
|
|
875
875
|
className: n,
|
|
876
876
|
disabled: s = !1,
|
|
877
877
|
href: l,
|
|
878
|
-
props:
|
|
878
|
+
props: o = {},
|
|
879
879
|
rightIcon: r,
|
|
880
|
-
rightIconProps:
|
|
881
|
-
rounded:
|
|
880
|
+
rightIconProps: i = {},
|
|
881
|
+
rounded: u = !1,
|
|
882
882
|
size: p = "md",
|
|
883
883
|
type: V = "button",
|
|
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
|
{
|
|
895
895
|
[`button--${f}`]: f,
|
|
896
896
|
[`button--${p}`]: p,
|
|
897
|
-
"button--rounded":
|
|
897
|
+
"button--rounded": u,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
900
|
"button--uppercase": C,
|
|
@@ -904,10 +904,10 @@ const W = {
|
|
|
904
904
|
),
|
|
905
905
|
disabled: s,
|
|
906
906
|
href: l,
|
|
907
|
-
...
|
|
907
|
+
...o,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
x,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
913
|
size: p === "md" ? "small" : "xSmall",
|
|
@@ -917,18 +917,18 @@ const W = {
|
|
|
917
917
|
),
|
|
918
918
|
a,
|
|
919
919
|
r && /* @__PURE__ */ c(
|
|
920
|
-
|
|
920
|
+
x,
|
|
921
921
|
{
|
|
922
922
|
name: r,
|
|
923
923
|
size: p === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
|
-
...
|
|
925
|
+
...i
|
|
926
926
|
}
|
|
927
927
|
)
|
|
928
928
|
]
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
}, F =
|
|
931
|
+
}, F = A(Y), K = ({
|
|
932
932
|
checked: d = !1,
|
|
933
933
|
children: e,
|
|
934
934
|
className: t,
|
|
@@ -936,16 +936,16 @@ const W = {
|
|
|
936
936
|
inputClass: n,
|
|
937
937
|
id: s = "",
|
|
938
938
|
label: l = "",
|
|
939
|
-
name:
|
|
939
|
+
name: o = "",
|
|
940
940
|
props: r = {},
|
|
941
|
-
variation:
|
|
942
|
-
value:
|
|
941
|
+
variation: i = "primary",
|
|
942
|
+
value: u = ""
|
|
943
943
|
}) => {
|
|
944
944
|
const p = l ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ M(
|
|
946
946
|
p,
|
|
947
947
|
{
|
|
948
|
-
className: m("checkbox flex items-center",
|
|
948
|
+
className: m("checkbox flex items-center", i, t),
|
|
949
949
|
...V,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
@@ -960,9 +960,9 @@ const W = {
|
|
|
960
960
|
n
|
|
961
961
|
),
|
|
962
962
|
id: s,
|
|
963
|
-
name:
|
|
963
|
+
name: o,
|
|
964
964
|
type: "checkbox",
|
|
965
|
-
value:
|
|
965
|
+
value: u,
|
|
966
966
|
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
@@ -970,7 +970,7 @@ const W = {
|
|
|
970
970
|
]
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
|
-
},
|
|
973
|
+
}, I1 = A(K), X = ({
|
|
974
974
|
activator: d,
|
|
975
975
|
id: e = "",
|
|
976
976
|
children: t,
|
|
@@ -978,39 +978,41 @@ const W = {
|
|
|
978
978
|
contentClass: n,
|
|
979
979
|
customScrollbar: s = !0,
|
|
980
980
|
dark: l = !1,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
981
|
+
disableClose: o = !1,
|
|
982
|
+
footer: r,
|
|
983
|
+
fullMobile: i = !0,
|
|
984
|
+
headerClass: u,
|
|
985
|
+
hideClose: p = !1,
|
|
986
|
+
iconSize: V = "medium",
|
|
987
|
+
preventPageScroll: C = !0,
|
|
988
|
+
stickyHeader: f = !1,
|
|
989
|
+
title: g = "",
|
|
990
|
+
titleClass: y,
|
|
991
|
+
useFormMethod: h = !0
|
|
991
992
|
}) => {
|
|
992
|
-
const
|
|
993
|
-
return /* @__PURE__ */ M(
|
|
993
|
+
const v = h ? "form" : "div";
|
|
994
|
+
return /* @__PURE__ */ M(S, { children: [
|
|
994
995
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
995
996
|
/* @__PURE__ */ c(
|
|
996
997
|
"dialog",
|
|
997
998
|
{
|
|
998
999
|
inert: "",
|
|
1000
|
+
...o ? { closedby: "none" } : null,
|
|
999
1001
|
id: `${e}-dialog`,
|
|
1000
1002
|
className: m(
|
|
1001
1003
|
"dialog",
|
|
1002
1004
|
{
|
|
1003
|
-
"dialog-full-mobile":
|
|
1005
|
+
"dialog-full-mobile": i,
|
|
1004
1006
|
dark: l,
|
|
1005
|
-
"prevent-scroll":
|
|
1007
|
+
"prevent-scroll": C
|
|
1006
1008
|
},
|
|
1007
1009
|
a
|
|
1008
1010
|
),
|
|
1009
1011
|
children: /* @__PURE__ */ M(
|
|
1010
|
-
|
|
1012
|
+
v,
|
|
1011
1013
|
{
|
|
1012
1014
|
className: "dialog-container",
|
|
1013
|
-
method:
|
|
1015
|
+
method: h ? "dialog" : null,
|
|
1014
1016
|
children: [
|
|
1015
1017
|
/* @__PURE__ */ M(
|
|
1016
1018
|
"header",
|
|
@@ -1018,15 +1020,15 @@ const W = {
|
|
|
1018
1020
|
className: m(
|
|
1019
1021
|
"dialog-header",
|
|
1020
1022
|
{
|
|
1021
|
-
"sticky top-0 bg-white z-10":
|
|
1022
|
-
"!pb-0 border-0 justify-end": !
|
|
1023
|
-
"justify-between border-b":
|
|
1023
|
+
"sticky top-0 bg-white z-10": f,
|
|
1024
|
+
"!pb-0 border-0 justify-end": !g,
|
|
1025
|
+
"justify-between border-b": g
|
|
1024
1026
|
},
|
|
1025
|
-
|
|
1027
|
+
u
|
|
1026
1028
|
),
|
|
1027
1029
|
children: [
|
|
1028
|
-
|
|
1029
|
-
!
|
|
1030
|
+
g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: y, children: g }),
|
|
1031
|
+
!p && /* @__PURE__ */ c(
|
|
1030
1032
|
"button",
|
|
1031
1033
|
{
|
|
1032
1034
|
type: "button",
|
|
@@ -1035,10 +1037,10 @@ const W = {
|
|
|
1035
1037
|
"data-dialog-close": "",
|
|
1036
1038
|
value: "close",
|
|
1037
1039
|
children: /* @__PURE__ */ c(
|
|
1038
|
-
|
|
1040
|
+
x,
|
|
1039
1041
|
{
|
|
1040
1042
|
name: "close",
|
|
1041
|
-
size:
|
|
1043
|
+
size: V,
|
|
1042
1044
|
className: "pointer-events-none"
|
|
1043
1045
|
}
|
|
1044
1046
|
)
|
|
@@ -1061,14 +1063,14 @@ const W = {
|
|
|
1061
1063
|
children: t
|
|
1062
1064
|
}
|
|
1063
1065
|
),
|
|
1064
|
-
|
|
1066
|
+
r && /* @__PURE__ */ c("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1065
1067
|
]
|
|
1066
1068
|
}
|
|
1067
1069
|
)
|
|
1068
1070
|
}
|
|
1069
1071
|
)
|
|
1070
1072
|
] });
|
|
1071
|
-
},
|
|
1073
|
+
}, $1 = A(X), q1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
|
|
1072
1074
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1073
1075
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1074
1076
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1085,18 +1087,18 @@ const W = {
|
|
|
1085
1087
|
timeout: n = 1e4,
|
|
1086
1088
|
variation: s = "primary"
|
|
1087
1089
|
}) => {
|
|
1088
|
-
function l({ cb:
|
|
1090
|
+
function l({ cb: o }) {
|
|
1089
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1090
1092
|
if (!r) return;
|
|
1091
|
-
let
|
|
1093
|
+
let i, u, p = !1;
|
|
1092
1094
|
function V(C) {
|
|
1093
|
-
|
|
1094
|
-
const f = C -
|
|
1095
|
-
if (
|
|
1096
|
-
const
|
|
1097
|
-
r.style.width = `${
|
|
1095
|
+
i === void 0 && (i = C);
|
|
1096
|
+
const f = C - i;
|
|
1097
|
+
if (u !== C) {
|
|
1098
|
+
const g = f / n * 101;
|
|
1099
|
+
r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(C));
|
|
1098
1100
|
}
|
|
1099
|
-
f < n && (
|
|
1101
|
+
f < n && (u = C, p || window.requestAnimationFrame(V));
|
|
1100
1102
|
}
|
|
1101
1103
|
window.requestAnimationFrame(V);
|
|
1102
1104
|
}
|
|
@@ -1119,7 +1121,7 @@ const W = {
|
|
|
1119
1121
|
children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1120
1122
|
}
|
|
1121
1123
|
);
|
|
1122
|
-
},
|
|
1124
|
+
}, j1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), P1 = A(t1), R1 = ({
|
|
1123
1125
|
activator: d,
|
|
1124
1126
|
activatorClass: e = "",
|
|
1125
1127
|
attrs: t = {},
|
|
@@ -1127,9 +1129,9 @@ const W = {
|
|
|
1127
1129
|
className: n = "",
|
|
1128
1130
|
containerClass: s = "",
|
|
1129
1131
|
disabled: l = !1,
|
|
1130
|
-
options:
|
|
1132
|
+
options: o = {},
|
|
1131
1133
|
trigger: r = "click"
|
|
1132
|
-
}) => /* @__PURE__ */ M(
|
|
1134
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
1133
1135
|
/* @__PURE__ */ c(
|
|
1134
1136
|
"div",
|
|
1135
1137
|
{
|
|
@@ -1167,7 +1169,7 @@ const W = {
|
|
|
1167
1169
|
e
|
|
1168
1170
|
),
|
|
1169
1171
|
...t,
|
|
1170
|
-
"data-options": JSON.stringify(
|
|
1172
|
+
"data-options": JSON.stringify(o),
|
|
1171
1173
|
children: d
|
|
1172
1174
|
}
|
|
1173
1175
|
)
|
|
@@ -1179,9 +1181,9 @@ const W = {
|
|
|
1179
1181
|
completed: n = 0,
|
|
1180
1182
|
customLabel: s,
|
|
1181
1183
|
labelClass: l,
|
|
1182
|
-
maxCompleted:
|
|
1184
|
+
maxCompleted: o = 100,
|
|
1183
1185
|
rounded: r = !0,
|
|
1184
|
-
showLabel:
|
|
1186
|
+
showLabel: i = !1
|
|
1185
1187
|
}) => {
|
|
1186
1188
|
const p = ((V, C) => {
|
|
1187
1189
|
if (V) {
|
|
@@ -1189,7 +1191,7 @@ const W = {
|
|
|
1189
1191
|
return f > 1 ? 100 : f * 100;
|
|
1190
1192
|
}
|
|
1191
1193
|
return n;
|
|
1192
|
-
})(
|
|
1194
|
+
})(o, n);
|
|
1193
1195
|
return /* @__PURE__ */ c(
|
|
1194
1196
|
"div",
|
|
1195
1197
|
{
|
|
@@ -1211,7 +1213,7 @@ const W = {
|
|
|
1211
1213
|
t
|
|
1212
1214
|
),
|
|
1213
1215
|
style: { width: `${p}%` },
|
|
1214
|
-
children:
|
|
1216
|
+
children: i && /* @__PURE__ */ c(
|
|
1215
1217
|
"span",
|
|
1216
1218
|
{
|
|
1217
1219
|
className: m(
|
|
@@ -1225,7 +1227,7 @@ const W = {
|
|
|
1225
1227
|
)
|
|
1226
1228
|
}
|
|
1227
1229
|
);
|
|
1228
|
-
},
|
|
1230
|
+
}, W1 = A(a1), n1 = ({
|
|
1229
1231
|
checked: d = !1,
|
|
1230
1232
|
children: e,
|
|
1231
1233
|
className: t,
|
|
@@ -1233,13 +1235,13 @@ const W = {
|
|
|
1233
1235
|
inputClass: n,
|
|
1234
1236
|
label: s = "",
|
|
1235
1237
|
name: l = "",
|
|
1236
|
-
props:
|
|
1238
|
+
props: o = {},
|
|
1237
1239
|
variation: r = "primary",
|
|
1238
|
-
value:
|
|
1240
|
+
value: i = ""
|
|
1239
1241
|
}) => {
|
|
1240
|
-
const
|
|
1242
|
+
const u = s ? "div" : "label", p = u === "label" ? { htmlFor: a } : {};
|
|
1241
1243
|
return /* @__PURE__ */ M(
|
|
1242
|
-
|
|
1244
|
+
u,
|
|
1243
1245
|
{
|
|
1244
1246
|
className: m("radio flex items-center", t),
|
|
1245
1247
|
...p,
|
|
@@ -1258,15 +1260,15 @@ const W = {
|
|
|
1258
1260
|
id: a,
|
|
1259
1261
|
name: l,
|
|
1260
1262
|
type: "radio",
|
|
1261
|
-
value:
|
|
1262
|
-
...
|
|
1263
|
+
value: i,
|
|
1264
|
+
...o
|
|
1263
1265
|
}
|
|
1264
1266
|
),
|
|
1265
1267
|
e
|
|
1266
1268
|
]
|
|
1267
1269
|
}
|
|
1268
1270
|
);
|
|
1269
|
-
},
|
|
1271
|
+
}, U1 = A(n1), s1 = ({
|
|
1270
1272
|
className: d = "",
|
|
1271
1273
|
error: e = !1,
|
|
1272
1274
|
errorMessage: t = "",
|
|
@@ -1274,19 +1276,19 @@ const W = {
|
|
|
1274
1276
|
label: n = "",
|
|
1275
1277
|
name: s = "",
|
|
1276
1278
|
options: l = [],
|
|
1277
|
-
placeholder:
|
|
1279
|
+
placeholder: o = "",
|
|
1278
1280
|
props: r = {},
|
|
1279
|
-
selectClass:
|
|
1280
|
-
styles:
|
|
1281
|
+
selectClass: i = "",
|
|
1282
|
+
styles: u = null,
|
|
1281
1283
|
variation: p = "primary",
|
|
1282
1284
|
value: V
|
|
1283
1285
|
}) => {
|
|
1284
|
-
const C =
|
|
1286
|
+
const C = o ? { defaultValue: "" } : {};
|
|
1285
1287
|
return /* @__PURE__ */ M(
|
|
1286
1288
|
"label",
|
|
1287
1289
|
{
|
|
1288
1290
|
className: m("relative select", d, p),
|
|
1289
|
-
style:
|
|
1291
|
+
style: u ? { ...u } : null,
|
|
1290
1292
|
children: [
|
|
1291
1293
|
n,
|
|
1292
1294
|
/* @__PURE__ */ M(
|
|
@@ -1297,7 +1299,7 @@ const W = {
|
|
|
1297
1299
|
{
|
|
1298
1300
|
"!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500": e
|
|
1299
1301
|
},
|
|
1300
|
-
|
|
1302
|
+
i
|
|
1301
1303
|
),
|
|
1302
1304
|
id: a,
|
|
1303
1305
|
name: s,
|
|
@@ -1305,7 +1307,7 @@ const W = {
|
|
|
1305
1307
|
...C,
|
|
1306
1308
|
...r,
|
|
1307
1309
|
children: [
|
|
1308
|
-
|
|
1310
|
+
o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
|
|
1309
1311
|
l.map((f) => /* @__PURE__ */ c(
|
|
1310
1312
|
"option",
|
|
1311
1313
|
{
|
|
@@ -1321,7 +1323,7 @@ const W = {
|
|
|
1321
1323
|
]
|
|
1322
1324
|
}
|
|
1323
1325
|
);
|
|
1324
|
-
},
|
|
1326
|
+
}, G1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1325
1327
|
"div",
|
|
1326
1328
|
{
|
|
1327
1329
|
className: m(
|
|
@@ -1329,11 +1331,11 @@ const W = {
|
|
|
1329
1331
|
d
|
|
1330
1332
|
),
|
|
1331
1333
|
children: [
|
|
1332
|
-
/* @__PURE__ */ c(
|
|
1334
|
+
/* @__PURE__ */ c(x, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1333
1335
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1334
1336
|
]
|
|
1335
1337
|
}
|
|
1336
|
-
),
|
|
1338
|
+
), Q1 = A(r1), l1 = ({
|
|
1337
1339
|
placeholderClass: d = "",
|
|
1338
1340
|
children: e,
|
|
1339
1341
|
className: t,
|
|
@@ -1347,7 +1349,7 @@ const W = {
|
|
|
1347
1349
|
id: `btn-left-${a}`,
|
|
1348
1350
|
type: "button",
|
|
1349
1351
|
className: "slider-button__prev ",
|
|
1350
|
-
children: /* @__PURE__ */ c(
|
|
1352
|
+
children: /* @__PURE__ */ c(x, { name: "chevronLeft" })
|
|
1351
1353
|
}
|
|
1352
1354
|
),
|
|
1353
1355
|
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
|
|
@@ -1365,21 +1367,21 @@ const W = {
|
|
|
1365
1367
|
id: `btn-right-${a}`,
|
|
1366
1368
|
type: "button",
|
|
1367
1369
|
className: "slider-button__next",
|
|
1368
|
-
children: /* @__PURE__ */ c(
|
|
1370
|
+
children: /* @__PURE__ */ c(x, { name: "chevronRight" })
|
|
1369
1371
|
}
|
|
1370
1372
|
)
|
|
1371
|
-
] }),
|
|
1373
|
+
] }), J1 = A(l1), i1 = {
|
|
1372
1374
|
name: "spinnerDark",
|
|
1373
1375
|
color: "text-teal-700",
|
|
1374
1376
|
viewBox: "0 0 24 24"
|
|
1375
1377
|
}, o1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
|
|
1376
|
-
|
|
1378
|
+
x,
|
|
1377
1379
|
{
|
|
1378
1380
|
className: `animate-spin ${d}`,
|
|
1379
1381
|
size: "xSmall",
|
|
1380
1382
|
...i1
|
|
1381
1383
|
}
|
|
1382
|
-
) }),
|
|
1384
|
+
) }), _1 = A(o1), Y1 = ({
|
|
1383
1385
|
className: d,
|
|
1384
1386
|
value: e
|
|
1385
1387
|
}) => {
|
|
@@ -1404,18 +1406,18 @@ const W = {
|
|
|
1404
1406
|
id: n = "",
|
|
1405
1407
|
inputClass: s = "",
|
|
1406
1408
|
name: l = "",
|
|
1407
|
-
placeholder:
|
|
1409
|
+
placeholder: o = "",
|
|
1408
1410
|
props: r = {},
|
|
1409
|
-
rows:
|
|
1410
|
-
variation:
|
|
1411
|
-
}) => /* @__PURE__ */ M("div", { className: m("relative textarea",
|
|
1411
|
+
rows: i = 4,
|
|
1412
|
+
variation: u = "primary"
|
|
1413
|
+
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", u, d), children: [
|
|
1412
1414
|
/* @__PURE__ */ c(
|
|
1413
1415
|
"textarea",
|
|
1414
1416
|
{
|
|
1415
|
-
placeholder:
|
|
1417
|
+
placeholder: o,
|
|
1416
1418
|
id: n,
|
|
1417
1419
|
name: l,
|
|
1418
|
-
rows:
|
|
1420
|
+
rows: i,
|
|
1419
1421
|
className: m(
|
|
1420
1422
|
"form-textarea min-h-[40px] pl-4",
|
|
1421
1423
|
e ? "pr-10" : "pr-4",
|
|
@@ -1433,7 +1435,7 @@ const W = {
|
|
|
1433
1435
|
id: `${n}-clear`,
|
|
1434
1436
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1435
1437
|
children: /* @__PURE__ */ c(
|
|
1436
|
-
|
|
1438
|
+
x,
|
|
1437
1439
|
{
|
|
1438
1440
|
size: "xSmall",
|
|
1439
1441
|
name: "xCircle",
|
|
@@ -1443,7 +1445,7 @@ const W = {
|
|
|
1443
1445
|
}
|
|
1444
1446
|
),
|
|
1445
1447
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1446
|
-
] }), d1 =
|
|
1448
|
+
] }), d1 = A(c1), h1 = ({
|
|
1447
1449
|
className: d,
|
|
1448
1450
|
clear: e = !1,
|
|
1449
1451
|
error: t = !1,
|
|
@@ -1451,10 +1453,10 @@ const W = {
|
|
|
1451
1453
|
iconLeft: n = "",
|
|
1452
1454
|
id: s = "",
|
|
1453
1455
|
inputClass: l,
|
|
1454
|
-
name:
|
|
1456
|
+
name: o = "",
|
|
1455
1457
|
placeholder: r = "",
|
|
1456
|
-
props:
|
|
1457
|
-
styles:
|
|
1458
|
+
props: i = {},
|
|
1459
|
+
styles: u = null,
|
|
1458
1460
|
type: p = "text",
|
|
1459
1461
|
value: V,
|
|
1460
1462
|
variation: C = "primary"
|
|
@@ -1462,10 +1464,10 @@ const W = {
|
|
|
1462
1464
|
"div",
|
|
1463
1465
|
{
|
|
1464
1466
|
className: m("relative textbox", C, d),
|
|
1465
|
-
style:
|
|
1467
|
+
style: u ? { ...u } : null,
|
|
1466
1468
|
children: [
|
|
1467
1469
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1468
|
-
|
|
1470
|
+
x,
|
|
1469
1471
|
{
|
|
1470
1472
|
size: "xSmall",
|
|
1471
1473
|
name: n,
|
|
@@ -1478,7 +1480,7 @@ const W = {
|
|
|
1478
1480
|
{
|
|
1479
1481
|
placeholder: r,
|
|
1480
1482
|
id: s,
|
|
1481
|
-
name:
|
|
1483
|
+
name: o,
|
|
1482
1484
|
type: p,
|
|
1483
1485
|
value: V,
|
|
1484
1486
|
autoComplete: "off",
|
|
@@ -1489,10 +1491,10 @@ const W = {
|
|
|
1489
1491
|
{
|
|
1490
1492
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1491
1493
|
},
|
|
1492
|
-
|
|
1494
|
+
i.inputClass ?? "",
|
|
1493
1495
|
l
|
|
1494
1496
|
),
|
|
1495
|
-
...
|
|
1497
|
+
...i
|
|
1496
1498
|
}
|
|
1497
1499
|
),
|
|
1498
1500
|
e && /* @__PURE__ */ c(
|
|
@@ -1501,7 +1503,7 @@ const W = {
|
|
|
1501
1503
|
id: `${s}-clear`,
|
|
1502
1504
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1503
1505
|
children: /* @__PURE__ */ c(
|
|
1504
|
-
|
|
1506
|
+
x,
|
|
1505
1507
|
{
|
|
1506
1508
|
size: "xSmall",
|
|
1507
1509
|
name: "xCircle",
|
|
@@ -1513,7 +1515,29 @@ const W = {
|
|
|
1513
1515
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1514
1516
|
]
|
|
1515
1517
|
}
|
|
1516
|
-
), T =
|
|
1518
|
+
), T = A(h1), u1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
1519
|
+
/* @__PURE__ */ c(
|
|
1520
|
+
"input",
|
|
1521
|
+
{
|
|
1522
|
+
type: "checkbox",
|
|
1523
|
+
checked: d,
|
|
1524
|
+
className: "sr-only",
|
|
1525
|
+
...e
|
|
1526
|
+
}
|
|
1527
|
+
),
|
|
1528
|
+
/* @__PURE__ */ c(
|
|
1529
|
+
"div",
|
|
1530
|
+
{
|
|
1531
|
+
className: `box block h-8 w-14 rounded-full ${d ? "bg-[#365487]" : "bg-black-250"}`
|
|
1532
|
+
}
|
|
1533
|
+
),
|
|
1534
|
+
/* @__PURE__ */ c(
|
|
1535
|
+
"div",
|
|
1536
|
+
{
|
|
1537
|
+
className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
|
|
1538
|
+
}
|
|
1539
|
+
)
|
|
1540
|
+
] }) }) }), K1 = A(u1), p1 = ({
|
|
1517
1541
|
btnClass: d,
|
|
1518
1542
|
className: e = "",
|
|
1519
1543
|
containerClass: t,
|
|
@@ -1522,7 +1546,7 @@ const W = {
|
|
|
1522
1546
|
titleClass: s,
|
|
1523
1547
|
uppercase: l = !0
|
|
1524
1548
|
}) => {
|
|
1525
|
-
const
|
|
1549
|
+
const o = a || /* @__PURE__ */ M(S, { children: [
|
|
1526
1550
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1527
1551
|
" ",
|
|
1528
1552
|
/* @__PURE__ */ c(
|
|
@@ -1548,7 +1572,7 @@ const W = {
|
|
|
1548
1572
|
}),
|
|
1549
1573
|
children: [
|
|
1550
1574
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1551
|
-
/* @__PURE__ */ c("p", { className: "contact-form__msg", children:
|
|
1575
|
+
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: o }),
|
|
1552
1576
|
/* @__PURE__ */ M(
|
|
1553
1577
|
"div",
|
|
1554
1578
|
{
|
|
@@ -1611,7 +1635,7 @@ const W = {
|
|
|
1611
1635
|
]
|
|
1612
1636
|
}
|
|
1613
1637
|
);
|
|
1614
|
-
},
|
|
1638
|
+
}, X1 = A(p1), m1 = ({
|
|
1615
1639
|
block: d = !1,
|
|
1616
1640
|
children: e,
|
|
1617
1641
|
className: t,
|
|
@@ -1619,10 +1643,10 @@ const W = {
|
|
|
1619
1643
|
footerClass: n,
|
|
1620
1644
|
footerContent: s,
|
|
1621
1645
|
headerContent: l,
|
|
1622
|
-
headerClass:
|
|
1646
|
+
headerClass: o,
|
|
1623
1647
|
list: r = !1,
|
|
1624
|
-
props:
|
|
1625
|
-
variation:
|
|
1648
|
+
props: i = {},
|
|
1649
|
+
variation: u = "primary"
|
|
1626
1650
|
}) => {
|
|
1627
1651
|
const p = r ? "ul" : "div";
|
|
1628
1652
|
return /* @__PURE__ */ M(
|
|
@@ -1631,12 +1655,12 @@ const W = {
|
|
|
1631
1655
|
className: m(
|
|
1632
1656
|
"content-card",
|
|
1633
1657
|
{ "content-card--block": d },
|
|
1634
|
-
`content-card--${
|
|
1658
|
+
`content-card--${u}`,
|
|
1635
1659
|
t
|
|
1636
1660
|
),
|
|
1637
|
-
...
|
|
1661
|
+
...i,
|
|
1638
1662
|
children: [
|
|
1639
|
-
l && /* @__PURE__ */ c("div", { className: m("content-card__header",
|
|
1663
|
+
l && /* @__PURE__ */ c("div", { className: m("content-card__header", o), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1640
1664
|
/* @__PURE__ */ c(
|
|
1641
1665
|
p,
|
|
1642
1666
|
{
|
|
@@ -1649,7 +1673,7 @@ const W = {
|
|
|
1649
1673
|
]
|
|
1650
1674
|
}
|
|
1651
1675
|
);
|
|
1652
|
-
},
|
|
1676
|
+
}, e2 = A(m1), f1 = ({
|
|
1653
1677
|
children: d,
|
|
1654
1678
|
className: e,
|
|
1655
1679
|
colGap: t = 2,
|
|
@@ -1657,10 +1681,10 @@ const W = {
|
|
|
1657
1681
|
label: n,
|
|
1658
1682
|
labelClass: s,
|
|
1659
1683
|
props: l = {},
|
|
1660
|
-
rowGap:
|
|
1684
|
+
rowGap: o = 1,
|
|
1661
1685
|
value: r,
|
|
1662
|
-
valueClass:
|
|
1663
|
-
wrap:
|
|
1686
|
+
valueClass: i,
|
|
1687
|
+
wrap: u = !1
|
|
1664
1688
|
}) => /* @__PURE__ */ M(
|
|
1665
1689
|
"div",
|
|
1666
1690
|
{
|
|
@@ -1669,22 +1693,22 @@ const W = {
|
|
|
1669
1693
|
{
|
|
1670
1694
|
"flex-col items-start": a === "col",
|
|
1671
1695
|
"flex-row items-center": a === "row",
|
|
1672
|
-
"flex-wrap":
|
|
1696
|
+
"flex-wrap": u
|
|
1673
1697
|
},
|
|
1674
1698
|
e
|
|
1675
1699
|
),
|
|
1676
1700
|
style: {
|
|
1677
1701
|
columnGap: `${t / 4}rem`,
|
|
1678
|
-
rowGap: `${
|
|
1702
|
+
rowGap: `${o / 4}rem`
|
|
1679
1703
|
},
|
|
1680
1704
|
...l,
|
|
1681
1705
|
children: [
|
|
1682
1706
|
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1683
|
-
r && /* @__PURE__ */ c("div", { className: m("item-value",
|
|
1707
|
+
r && /* @__PURE__ */ c("div", { className: m("item-value", i), children: r }),
|
|
1684
1708
|
d
|
|
1685
1709
|
]
|
|
1686
1710
|
}
|
|
1687
|
-
),
|
|
1711
|
+
), t2 = A(f1), a2 = ({
|
|
1688
1712
|
breakPage: d = !1,
|
|
1689
1713
|
children: e,
|
|
1690
1714
|
className: t,
|
|
@@ -1692,7 +1716,7 @@ const W = {
|
|
|
1692
1716
|
props: n = {},
|
|
1693
1717
|
title: s,
|
|
1694
1718
|
titleClass: l,
|
|
1695
|
-
titleId:
|
|
1719
|
+
titleId: o
|
|
1696
1720
|
}) => /* @__PURE__ */ M(
|
|
1697
1721
|
"section",
|
|
1698
1722
|
{
|
|
@@ -1706,11 +1730,11 @@ const W = {
|
|
|
1706
1730
|
),
|
|
1707
1731
|
...n,
|
|
1708
1732
|
children: [
|
|
1709
|
-
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id:
|
|
1733
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id: o, children: s }),
|
|
1710
1734
|
e
|
|
1711
1735
|
]
|
|
1712
1736
|
}
|
|
1713
|
-
),
|
|
1737
|
+
), n2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), V1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
|
|
1714
1738
|
a,
|
|
1715
1739
|
{
|
|
1716
1740
|
className: m(
|
|
@@ -1724,7 +1748,7 @@ const W = {
|
|
|
1724
1748
|
),
|
|
1725
1749
|
children: n || e
|
|
1726
1750
|
}
|
|
1727
|
-
),
|
|
1751
|
+
), s2 = A(V1), H1 = {
|
|
1728
1752
|
circular: "circular 3s linear infinite",
|
|
1729
1753
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1730
1754
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1736,17 +1760,17 @@ const W = {
|
|
|
1736
1760
|
"menu-open": "menu-open 0.1s ease-out",
|
|
1737
1761
|
"menu-close": "menu-close 0.1s ease-in-out",
|
|
1738
1762
|
indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
|
|
1739
|
-
}, H1 = {
|
|
1740
|
-
map: "var(--map)"
|
|
1741
1763
|
}, C1 = {
|
|
1764
|
+
map: "var(--map)"
|
|
1765
|
+
}, L1 = {
|
|
1742
1766
|
"3xs": "0.5rem",
|
|
1743
1767
|
xxs: "0.625rem",
|
|
1744
1768
|
"2.5xl": "1.625rem",
|
|
1745
1769
|
"2.75xl": "1.75rem",
|
|
1746
1770
|
"3.5xl": "2rem"
|
|
1747
|
-
}, L1 = {
|
|
1748
|
-
17: "repeat(17, minmax(0, 1fr))"
|
|
1749
1771
|
}, M1 = {
|
|
1772
|
+
17: "repeat(17, minmax(0, 1fr))"
|
|
1773
|
+
}, g1 = {
|
|
1750
1774
|
circular: {
|
|
1751
1775
|
"100%": {
|
|
1752
1776
|
transform: "rotate(360deg)"
|
|
@@ -1836,12 +1860,12 @@ const W = {
|
|
|
1836
1860
|
transform: "translateX(100%)"
|
|
1837
1861
|
}
|
|
1838
1862
|
}
|
|
1839
|
-
},
|
|
1863
|
+
}, v1 = {
|
|
1840
1864
|
20: "5rem",
|
|
1841
1865
|
24: "6rem",
|
|
1842
1866
|
28: "7rem",
|
|
1843
1867
|
32: "8rem"
|
|
1844
|
-
},
|
|
1868
|
+
}, b1 = {
|
|
1845
1869
|
aside: "268px",
|
|
1846
1870
|
container: "724px",
|
|
1847
1871
|
page: "1200px"
|
|
@@ -1863,21 +1887,21 @@ const W = {
|
|
|
1863
1887
|
max: "1199px"
|
|
1864
1888
|
},
|
|
1865
1889
|
"lg-up": "1200px"
|
|
1866
|
-
},
|
|
1890
|
+
}, y1 = {
|
|
1867
1891
|
0: "0ms",
|
|
1868
1892
|
50: "50ms"
|
|
1869
1893
|
}, x1 = {
|
|
1870
1894
|
"center-top": "center 30%"
|
|
1871
1895
|
}, O = {
|
|
1872
|
-
animation:
|
|
1873
|
-
backgroundImage:
|
|
1874
|
-
fontSize:
|
|
1875
|
-
gridTemplateColumns:
|
|
1876
|
-
keyframes:
|
|
1877
|
-
margin:
|
|
1878
|
-
maxWidth:
|
|
1896
|
+
animation: H1,
|
|
1897
|
+
backgroundImage: C1,
|
|
1898
|
+
fontSize: L1,
|
|
1899
|
+
gridTemplateColumns: M1,
|
|
1900
|
+
keyframes: g1,
|
|
1901
|
+
margin: v1,
|
|
1902
|
+
maxWidth: b1,
|
|
1879
1903
|
screens: A1,
|
|
1880
|
-
transitionDuration:
|
|
1904
|
+
transitionDuration: y1,
|
|
1881
1905
|
transformOrigin: x1
|
|
1882
1906
|
}, B = {
|
|
1883
1907
|
black: {
|
|
@@ -1986,10 +2010,10 @@ const W = {
|
|
|
1986
2010
|
purple: "hsl(279 85% 57%)",
|
|
1987
2011
|
white: "hsl(0 0% 100%)",
|
|
1988
2012
|
transparent: "hsl(0 0% 100% / 0)"
|
|
1989
|
-
},
|
|
2013
|
+
}, r2 = {
|
|
1990
2014
|
...B,
|
|
1991
2015
|
...I
|
|
1992
|
-
},
|
|
2016
|
+
}, w1 = ({ matchUtilities: d, theme: e }) => d(
|
|
1993
2017
|
{
|
|
1994
2018
|
aspect: (t) => ({
|
|
1995
2019
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2010,7 +2034,7 @@ const W = {
|
|
|
2010
2034
|
})
|
|
2011
2035
|
},
|
|
2012
2036
|
{ values: e("aspectRatio") }
|
|
2013
|
-
),
|
|
2037
|
+
), S1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2014
2038
|
{
|
|
2015
2039
|
"animation-delay": (t) => ({
|
|
2016
2040
|
"animation-delay": t
|
|
@@ -2019,11 +2043,11 @@ const W = {
|
|
|
2019
2043
|
{
|
|
2020
2044
|
values: e("transitionDelay")
|
|
2021
2045
|
}
|
|
2022
|
-
),
|
|
2046
|
+
), k1 = ({ matchUtilities: d }) => d({
|
|
2023
2047
|
"max-inline": (e) => ({
|
|
2024
2048
|
"max-inline-size": e
|
|
2025
2049
|
})
|
|
2026
|
-
}),
|
|
2050
|
+
}), z1 = ({ matchUtilities: d }) => d({
|
|
2027
2051
|
"max-block": (e) => ({
|
|
2028
2052
|
"max-block-size": e
|
|
2029
2053
|
})
|
|
@@ -2035,23 +2059,23 @@ const W = {
|
|
|
2035
2059
|
sizeProps: n = null,
|
|
2036
2060
|
sizes: s,
|
|
2037
2061
|
weights: l,
|
|
2038
|
-
weightProps:
|
|
2062
|
+
weightProps: o = null
|
|
2039
2063
|
}) => {
|
|
2040
2064
|
const r = {};
|
|
2041
|
-
Object.entries(s).forEach(([
|
|
2065
|
+
Object.entries(s).forEach(([i, u]) => {
|
|
2042
2066
|
const p = {
|
|
2043
|
-
"font-size":
|
|
2067
|
+
"font-size": u,
|
|
2044
2068
|
...a
|
|
2045
|
-
}, V = `.${e(`${t}-${
|
|
2069
|
+
}, V = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: u }) : {};
|
|
2046
2070
|
r[V] = {
|
|
2047
2071
|
...p,
|
|
2048
2072
|
...C
|
|
2049
|
-
}, Object.entries(l).forEach(([f,
|
|
2050
|
-
const
|
|
2051
|
-
r[
|
|
2073
|
+
}, Object.entries(l).forEach(([f, g]) => {
|
|
2074
|
+
const y = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: g }) : {};
|
|
2075
|
+
r[y] = {
|
|
2052
2076
|
...p,
|
|
2053
|
-
"font-weight":
|
|
2054
|
-
...
|
|
2077
|
+
"font-weight": g,
|
|
2078
|
+
...h
|
|
2055
2079
|
};
|
|
2056
2080
|
});
|
|
2057
2081
|
}), d(r);
|
|
@@ -2135,7 +2159,7 @@ const W = {
|
|
|
2135
2159
|
4: "1.25rem",
|
|
2136
2160
|
5: "1.125rem",
|
|
2137
2161
|
6: "1rem"
|
|
2138
|
-
},
|
|
2162
|
+
}, o = {
|
|
2139
2163
|
1: "0.938rem",
|
|
2140
2164
|
2: "0.813rem",
|
|
2141
2165
|
3: "0.75rem"
|
|
@@ -2156,18 +2180,18 @@ const W = {
|
|
|
2156
2180
|
addUtilities: d,
|
|
2157
2181
|
e: a,
|
|
2158
2182
|
classPrefix: "text-body",
|
|
2159
|
-
sizes:
|
|
2183
|
+
sizes: o,
|
|
2160
2184
|
weights: s
|
|
2161
|
-
}),
|
|
2185
|
+
}), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e, theme: t }), k1({ matchUtilities: e }), z1({ matchUtilities: e });
|
|
2162
2186
|
}
|
|
2163
|
-
],
|
|
2187
|
+
], l2 = {
|
|
2164
2188
|
theme: {
|
|
2165
2189
|
extend: O,
|
|
2166
2190
|
colors: B
|
|
2167
2191
|
},
|
|
2168
2192
|
plugins: q,
|
|
2169
2193
|
corePlugins: $
|
|
2170
|
-
},
|
|
2194
|
+
}, i2 = {
|
|
2171
2195
|
theme: {
|
|
2172
2196
|
extend: O,
|
|
2173
2197
|
colors: I
|
|
@@ -2175,7 +2199,7 @@ const W = {
|
|
|
2175
2199
|
plugins: q,
|
|
2176
2200
|
corePlugins: $
|
|
2177
2201
|
};
|
|
2178
|
-
function
|
|
2202
|
+
function Z1(d, e = []) {
|
|
2179
2203
|
return new Proxy(d, {
|
|
2180
2204
|
get: function(t, a) {
|
|
2181
2205
|
return t[a];
|
|
@@ -2186,39 +2210,39 @@ function z1(d, e = []) {
|
|
|
2186
2210
|
}
|
|
2187
2211
|
});
|
|
2188
2212
|
}
|
|
2189
|
-
function
|
|
2213
|
+
function o2(d, e = []) {
|
|
2190
2214
|
e.length && (d == null || d.classList.add(...e));
|
|
2191
2215
|
}
|
|
2192
|
-
function
|
|
2216
|
+
function c2(d, e = []) {
|
|
2193
2217
|
e.length && (d == null || d.classList.remove(...e));
|
|
2194
2218
|
}
|
|
2195
|
-
function
|
|
2219
|
+
function d2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2196
2220
|
let s = !0;
|
|
2197
|
-
for (const [l,
|
|
2198
|
-
const r = e.querySelector(`[name="${l}"]`),
|
|
2199
|
-
|
|
2200
|
-
p.isValid(
|
|
2201
|
-
}),
|
|
2221
|
+
for (const [l, o] of t.entries()) {
|
|
2222
|
+
const r = e.querySelector(`[name="${l}"]`), i = a[l], u = [];
|
|
2223
|
+
i.forEach((p) => {
|
|
2224
|
+
p.isValid(o) || u.push(p.message);
|
|
2225
|
+
}), u.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
2226
|
p.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2203
2227
|
}));
|
|
2204
2228
|
}
|
|
2205
2229
|
return s;
|
|
2206
2230
|
}
|
|
2207
|
-
function
|
|
2231
|
+
function h2(d) {
|
|
2208
2232
|
const e = (
|
|
2209
2233
|
// eslint-disable-next-line
|
|
2210
2234
|
/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/
|
|
2211
2235
|
), t = /[^a-zA-Z]+$/;
|
|
2212
2236
|
return e.test(d.toLowerCase()) && !t.test(d);
|
|
2213
2237
|
}
|
|
2214
|
-
class
|
|
2238
|
+
class u2 {
|
|
2215
2239
|
init(e) {
|
|
2216
2240
|
this.handleSliders(e);
|
|
2217
2241
|
}
|
|
2218
2242
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
2219
2243
|
if (!document.getElementById(`slider-container-${t}`))
|
|
2220
2244
|
return;
|
|
2221
|
-
const n =
|
|
2245
|
+
const n = Z1(
|
|
2222
2246
|
{
|
|
2223
2247
|
activeIndex: 0,
|
|
2224
2248
|
computedSlides: [],
|
|
@@ -2257,12 +2281,12 @@ class d2 {
|
|
|
2257
2281
|
(r) => r.isIntersecting === !0
|
|
2258
2282
|
);
|
|
2259
2283
|
s && l ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
|
|
2260
|
-
const
|
|
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(
|
|
2284
|
+
const i = [...a.slides].indexOf(r.target);
|
|
2285
|
+
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));
|
|
2262
2286
|
}));
|
|
2263
|
-
function
|
|
2264
|
-
var
|
|
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] && ((
|
|
2287
|
+
function o(r) {
|
|
2288
|
+
var i;
|
|
2289
|
+
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));
|
|
2266
2290
|
}
|
|
2267
2291
|
}
|
|
2268
2292
|
btnListeners(e) {
|
|
@@ -2289,8 +2313,8 @@ class d2 {
|
|
|
2289
2313
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2290
2314
|
`#btn-right-${a}`
|
|
2291
2315
|
);
|
|
2292
|
-
const
|
|
2293
|
-
r.innerHTML = `${s}${
|
|
2316
|
+
const o = t.map((i) => n(i)).join(""), r = document.createElement("div");
|
|
2317
|
+
r.innerHTML = `${s}${o}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
|
|
2294
2318
|
}
|
|
2295
2319
|
showHideBtns(e, t, a) {
|
|
2296
2320
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2302,9 +2326,9 @@ class d2 {
|
|
|
2302
2326
|
}
|
|
2303
2327
|
class H {
|
|
2304
2328
|
static calcCrow(e, t, a, n) {
|
|
2305
|
-
const l = H.toRad(a - e),
|
|
2329
|
+
const l = H.toRad(a - e), o = H.toRad(n - t);
|
|
2306
2330
|
e = H.toRad(e), a = H.toRad(a);
|
|
2307
|
-
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(
|
|
2331
|
+
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
|
|
2308
2332
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2309
2333
|
}
|
|
2310
2334
|
static cleanupAddress(e) {
|
|
@@ -2333,21 +2357,21 @@ class H {
|
|
|
2333
2357
|
static async createData(e, t = null, a = !0) {
|
|
2334
2358
|
if (window.options.isBot || !t)
|
|
2335
2359
|
return null;
|
|
2336
|
-
const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = a === !1 ? "" : "&tolken=" + n + "&ip=" + s,
|
|
2360
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, o = e + l, r = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2337
2361
|
try {
|
|
2338
|
-
const
|
|
2362
|
+
const u = await fetch(o, {
|
|
2339
2363
|
method: "POST",
|
|
2340
2364
|
body: r === "null" ? null : r,
|
|
2341
2365
|
headers: {
|
|
2342
|
-
website:
|
|
2366
|
+
website: i
|
|
2343
2367
|
}
|
|
2344
|
-
}), p =
|
|
2368
|
+
}), p = u.headers.get("content-type");
|
|
2345
2369
|
if (p && p.indexOf("application/json") !== -1)
|
|
2346
|
-
return
|
|
2347
|
-
const V = await
|
|
2370
|
+
return u.json();
|
|
2371
|
+
const V = await u.text();
|
|
2348
2372
|
return V ? V.replace("__next", "") : null;
|
|
2349
|
-
} catch (
|
|
2350
|
-
console.error("createData",
|
|
2373
|
+
} catch (u) {
|
|
2374
|
+
console.error("createData", u);
|
|
2351
2375
|
}
|
|
2352
2376
|
return null;
|
|
2353
2377
|
}
|
|
@@ -2407,15 +2431,15 @@ class H {
|
|
|
2407
2431
|
static async fetchData(e, t = !1, a = !0) {
|
|
2408
2432
|
if (options.isBot)
|
|
2409
2433
|
return null;
|
|
2410
|
-
const { tolken: n = null, ip: s = null } = await H.getHeaders(),
|
|
2434
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2411
2435
|
try {
|
|
2412
|
-
const r = await fetch(
|
|
2436
|
+
const r = await fetch(o, { method: "GET" });
|
|
2413
2437
|
if (t === !0) {
|
|
2414
|
-
const
|
|
2415
|
-
return
|
|
2438
|
+
const u = await r.text();
|
|
2439
|
+
return u ? u.replace("__next", "") : null;
|
|
2416
2440
|
}
|
|
2417
|
-
const
|
|
2418
|
-
return
|
|
2441
|
+
const i = r.headers.get("content-type");
|
|
2442
|
+
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
2419
2443
|
} catch (r) {
|
|
2420
2444
|
console.error("fetchData", r, e);
|
|
2421
2445
|
}
|
|
@@ -2445,11 +2469,11 @@ class H {
|
|
|
2445
2469
|
swLng: 0
|
|
2446
2470
|
};
|
|
2447
2471
|
const n = e.getBounds();
|
|
2448
|
-
let s = n.getSouth(), l = n.getEast(),
|
|
2449
|
-
return a && (s = s - a, l = l + a,
|
|
2472
|
+
let s = n.getSouth(), l = n.getEast(), o = n.getNorth(), r = n.getWest();
|
|
2473
|
+
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)), {
|
|
2450
2474
|
swLat: s,
|
|
2451
2475
|
neLng: l,
|
|
2452
|
-
neLat:
|
|
2476
|
+
neLat: o,
|
|
2453
2477
|
swLng: r
|
|
2454
2478
|
};
|
|
2455
2479
|
}
|
|
@@ -2491,12 +2515,12 @@ class H {
|
|
|
2491
2515
|
};
|
|
2492
2516
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2493
2517
|
return l;
|
|
2494
|
-
const
|
|
2495
|
-
if (
|
|
2496
|
-
const
|
|
2497
|
-
return
|
|
2498
|
-
tolken:
|
|
2499
|
-
ip:
|
|
2518
|
+
const o = localStorage.getItem("headerTolken");
|
|
2519
|
+
if (o) {
|
|
2520
|
+
const i = JSON.parse(o), u = (/* @__PURE__ */ new Date()).getTime();
|
|
2521
|
+
return i.expire - u < 0 && localStorage.removeItem("headerTolken"), {
|
|
2522
|
+
tolken: i.tolken,
|
|
2523
|
+
ip: i.ip,
|
|
2500
2524
|
userAgent: t,
|
|
2501
2525
|
platform: s
|
|
2502
2526
|
};
|
|
@@ -2504,7 +2528,7 @@ class H {
|
|
|
2504
2528
|
if ((r = window == null ? void 0 : window.options) != null && r.isPdf)
|
|
2505
2529
|
return l;
|
|
2506
2530
|
try {
|
|
2507
|
-
const
|
|
2531
|
+
const u = await (await fetch("/api/headers")).json(), p = (u == null ? void 0 : u.token) ?? null, V = (u == null ? void 0 : u.ip) ?? null;
|
|
2508
2532
|
return localStorage.setItem(
|
|
2509
2533
|
"headerTolken",
|
|
2510
2534
|
JSON.stringify({
|
|
@@ -2513,8 +2537,8 @@ class H {
|
|
|
2513
2537
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2514
2538
|
})
|
|
2515
2539
|
), { tolken: p, ip: V, userAgent: t, platform: s };
|
|
2516
|
-
} catch (
|
|
2517
|
-
console.error("getHeaders",
|
|
2540
|
+
} catch (i) {
|
|
2541
|
+
console.error("getHeaders", i);
|
|
2518
2542
|
}
|
|
2519
2543
|
return l;
|
|
2520
2544
|
}
|
|
@@ -2529,11 +2553,11 @@ class H {
|
|
|
2529
2553
|
return await H.fetchData("/api/client?query=" + l);
|
|
2530
2554
|
}
|
|
2531
2555
|
static getReportUrl(e, t = null) {
|
|
2532
|
-
var r,
|
|
2533
|
-
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((
|
|
2556
|
+
var r, i, u;
|
|
2557
|
+
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 = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2534
2558
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2535
|
-
const
|
|
2536
|
-
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" +
|
|
2559
|
+
const o = [l, "-piq", t].filter((p) => p).join("");
|
|
2560
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + o;
|
|
2537
2561
|
}
|
|
2538
2562
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2539
2563
|
try {
|
|
@@ -2700,10 +2724,10 @@ class H {
|
|
|
2700
2724
|
const n = this;
|
|
2701
2725
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2702
2726
|
createTile: function(s, l) {
|
|
2703
|
-
const
|
|
2727
|
+
const o = document.createElement("div");
|
|
2704
2728
|
return setTimeout(() => {
|
|
2705
|
-
l(null,
|
|
2706
|
-
const { se: r, nw:
|
|
2729
|
+
l(null, o);
|
|
2730
|
+
const { se: r, nw: i } = n.getGridBounds({
|
|
2707
2731
|
map: e,
|
|
2708
2732
|
tileSize: this.getTileSize(),
|
|
2709
2733
|
coords: s
|
|
@@ -2711,12 +2735,12 @@ class H {
|
|
|
2711
2735
|
t({
|
|
2712
2736
|
swLat: r.lat,
|
|
2713
2737
|
neLng: r.lng,
|
|
2714
|
-
neLat:
|
|
2715
|
-
swLng:
|
|
2738
|
+
neLat: i.lat,
|
|
2739
|
+
swLng: i.lng,
|
|
2716
2740
|
coords: s,
|
|
2717
2741
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2718
2742
|
});
|
|
2719
|
-
}, a),
|
|
2743
|
+
}, a), o;
|
|
2720
2744
|
}
|
|
2721
2745
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2722
2746
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2741,9 +2765,9 @@ class H {
|
|
|
2741
2765
|
onOpen: n = null,
|
|
2742
2766
|
onTargetClick: s = null,
|
|
2743
2767
|
selfClose: l = !1,
|
|
2744
|
-
target:
|
|
2768
|
+
target: o = null
|
|
2745
2769
|
}) {
|
|
2746
|
-
const r =
|
|
2770
|
+
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`), u = l ? i == null ? void 0 : i.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
|
|
2747
2771
|
"closing",
|
|
2748
2772
|
"closed",
|
|
2749
2773
|
"opening",
|
|
@@ -2751,55 +2775,59 @@ class H {
|
|
|
2751
2775
|
"outside",
|
|
2752
2776
|
"removed"
|
|
2753
2777
|
].reduce(
|
|
2754
|
-
(
|
|
2755
|
-
...
|
|
2756
|
-
[
|
|
2778
|
+
(h, v) => ({
|
|
2779
|
+
...h,
|
|
2780
|
+
[v]: new Event(v)
|
|
2757
2781
|
}),
|
|
2758
2782
|
{}
|
|
2759
|
-
), V = new MutationObserver((
|
|
2760
|
-
|
|
2783
|
+
), V = new MutationObserver((h, v) => {
|
|
2784
|
+
h.forEach(async (w) => {
|
|
2761
2785
|
if (w.attributeName === "open") {
|
|
2762
|
-
const
|
|
2763
|
-
if (!(
|
|
2764
|
-
|
|
2786
|
+
const b = w.target;
|
|
2787
|
+
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2788
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await y(b), b == null || b.dispatchEvent(p.opened);
|
|
2765
2789
|
}
|
|
2766
2790
|
});
|
|
2767
|
-
}), C = new MutationObserver((
|
|
2768
|
-
|
|
2769
|
-
w.removedNodes.forEach((
|
|
2770
|
-
|
|
2791
|
+
}), C = new MutationObserver((h, v) => {
|
|
2792
|
+
h.forEach((w) => {
|
|
2793
|
+
w.removedNodes.forEach((b) => {
|
|
2794
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2771
2795
|
});
|
|
2772
2796
|
});
|
|
2773
2797
|
});
|
|
2774
|
-
|
|
2798
|
+
i && (V.observe(i, {
|
|
2775
2799
|
attributes: !0
|
|
2776
2800
|
}), C.observe(document.body, {
|
|
2777
2801
|
attributes: !1,
|
|
2778
2802
|
subtree: !1,
|
|
2779
2803
|
childList: !0
|
|
2780
2804
|
}));
|
|
2781
|
-
const f = async ({ target:
|
|
2782
|
-
|
|
2783
|
-
},
|
|
2784
|
-
(
|
|
2785
|
-
},
|
|
2786
|
-
|
|
2805
|
+
const f = async ({ target: h }) => {
|
|
2806
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2807
|
+
}, g = async ({ target: h }) => {
|
|
2808
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), i == null || i.close("outside"));
|
|
2809
|
+
}, y = (h) => Promise.allSettled(
|
|
2810
|
+
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2787
2811
|
);
|
|
2788
|
-
return !e && (
|
|
2789
|
-
await f({ target:
|
|
2790
|
-
}),
|
|
2791
|
-
|
|
2792
|
-
})),
|
|
2793
|
-
|
|
2794
|
-
|
|
2812
|
+
return !e && (i == null || i.addEventListener("click", g)), i == null || i.addEventListener("close", async (h) => {
|
|
2813
|
+
await f({ target: h.target }), a && a(h, i);
|
|
2814
|
+
}), e && (i == null || i.addEventListener("cancel", async (h) => {
|
|
2815
|
+
h.key === "Escape" && h.preventDefault();
|
|
2816
|
+
})), e && (i == null || i.addEventListener("keydown", (h) => {
|
|
2817
|
+
h.key === "Escape" && h.preventDefault();
|
|
2818
|
+
})), n && (i == null || i.addEventListener("open", async (h) => {
|
|
2819
|
+
n(h, i);
|
|
2820
|
+
})), r == null || r.forEach((h) => {
|
|
2821
|
+
h.addEventListener("click", (v) => {
|
|
2822
|
+
i == null || i.showModal(), s && s(v, i);
|
|
2795
2823
|
});
|
|
2796
|
-
}),
|
|
2797
|
-
|
|
2798
|
-
|
|
2824
|
+
}), u == null || u.forEach((h) => {
|
|
2825
|
+
h.addEventListener("click", async (v) => {
|
|
2826
|
+
i == null || i.close("close");
|
|
2799
2827
|
});
|
|
2800
2828
|
}), {
|
|
2801
2829
|
activators: r,
|
|
2802
|
-
ref:
|
|
2830
|
+
ref: i
|
|
2803
2831
|
};
|
|
2804
2832
|
}
|
|
2805
2833
|
static hasBoundsEntry(e, t = "bounds") {
|
|
@@ -2809,8 +2837,8 @@ class H {
|
|
|
2809
2837
|
if (!e)
|
|
2810
2838
|
return;
|
|
2811
2839
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2812
|
-
new IntersectionObserver(async (l,
|
|
2813
|
-
n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs:
|
|
2840
|
+
new IntersectionObserver(async (l, o) => {
|
|
2841
|
+
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 });
|
|
2814
2842
|
}, a).observe(e);
|
|
2815
2843
|
}
|
|
2816
2844
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2819,10 +2847,10 @@ class H {
|
|
|
2819
2847
|
}
|
|
2820
2848
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2821
2849
|
return new Promise(function(s, l) {
|
|
2822
|
-
let
|
|
2823
|
-
if (t &&
|
|
2850
|
+
let o = document.getElementById(t);
|
|
2851
|
+
if (t && o && o.dataset.loaded === "true")
|
|
2824
2852
|
return s({ alreadyLoaded: !0, id: t });
|
|
2825
|
-
|
|
2853
|
+
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));
|
|
2826
2854
|
});
|
|
2827
2855
|
}
|
|
2828
2856
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2949,16 +2977,16 @@ class H {
|
|
|
2949
2977
|
middle: n = null,
|
|
2950
2978
|
last: s = null,
|
|
2951
2979
|
min: l = null,
|
|
2952
|
-
max:
|
|
2980
|
+
max: o = null,
|
|
2953
2981
|
city: r = null,
|
|
2954
|
-
state:
|
|
2955
|
-
vin:
|
|
2982
|
+
state: i = null,
|
|
2983
|
+
vin: u = null,
|
|
2956
2984
|
license: p = null,
|
|
2957
2985
|
token: V = null,
|
|
2958
2986
|
phone: C = null
|
|
2959
|
-
} = e || {}, f = t && t !== "",
|
|
2960
|
-
let
|
|
2961
|
-
return t && t !== "" &&
|
|
2987
|
+
} = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", y = o && o !== "" && l !== "99";
|
|
2988
|
+
let h = [];
|
|
2989
|
+
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 && y ? 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), y && h.push("max=" + o)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
2962
2990
|
}
|
|
2963
2991
|
static padTo2Digits(e) {
|
|
2964
2992
|
return e.toString().padStart(2, "0");
|
|
@@ -2973,26 +3001,26 @@ class H {
|
|
|
2973
3001
|
useCitySearch: n = !1,
|
|
2974
3002
|
useCityStateSearch: s = !1,
|
|
2975
3003
|
useSearch: l = !1,
|
|
2976
|
-
useLocation:
|
|
3004
|
+
useLocation: o = !0,
|
|
2977
3005
|
state: r = "",
|
|
2978
|
-
useGoogle:
|
|
2979
|
-
useGoogleOverride:
|
|
3006
|
+
useGoogle: i = !1,
|
|
3007
|
+
useGoogleOverride: u = !1,
|
|
2980
3008
|
useAmazonOverride: p = !1,
|
|
2981
3009
|
isSandboxAccount: V = !1
|
|
2982
|
-
} = t ?? {}, { tolken: C = null, ip: f = null } = await H.getHeaders(),
|
|
3010
|
+
} = t ?? {}, { tolken: C = null, ip: f = null } = await H.getHeaders(), y = [
|
|
2983
3011
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2984
3012
|
"addressesOnly=" + a,
|
|
2985
3013
|
"useSearch=" + l,
|
|
2986
3014
|
"useCitySearch=" + n,
|
|
2987
3015
|
"useCityStateSearch=" + s,
|
|
2988
|
-
"useLocation=" +
|
|
2989
|
-
"useGoogle=" +
|
|
2990
|
-
"useGoogleOverride=" +
|
|
3016
|
+
"useLocation=" + o,
|
|
3017
|
+
"useGoogle=" + i,
|
|
3018
|
+
"useGoogleOverride=" + u,
|
|
2991
3019
|
"useAmazonOverride=" + p,
|
|
2992
3020
|
"isSandboxAccount=" + V
|
|
2993
3021
|
];
|
|
2994
|
-
r && r !== "" && !s &&
|
|
2995
|
-
const
|
|
3022
|
+
r && r !== "" && !s && y.push("state=" + r), C && C !== "" && y.push("tolken=" + C), f && f !== "" && y.push("ip=" + f);
|
|
3023
|
+
const h = y.join("&"), w = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
|
|
2996
3024
|
return await H.makeSearchFetchCall(w);
|
|
2997
3025
|
}
|
|
2998
3026
|
static removeElements(e) {
|
|
@@ -3040,8 +3068,8 @@ class H {
|
|
|
3040
3068
|
if (a && !n) {
|
|
3041
3069
|
const s = a.split(" "), l = s[s.length - 1];
|
|
3042
3070
|
if (l.length) {
|
|
3043
|
-
const
|
|
3044
|
-
|
|
3071
|
+
const o = this.searchInStates(l);
|
|
3072
|
+
o && (n = o.short, a = s.slice(0, -1).join(" "));
|
|
3045
3073
|
}
|
|
3046
3074
|
}
|
|
3047
3075
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
@@ -3054,9 +3082,9 @@ class H {
|
|
|
3054
3082
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3055
3083
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3056
3084
|
try {
|
|
3057
|
-
const l = e.map(({ fileName:
|
|
3058
|
-
|
|
3059
|
-
|
|
3085
|
+
const l = e.map(({ fileName: i, initFunctionName: u }) => import(`${n}${s}${i}?v=${a}`)), o = await Promise.all(l), r = [];
|
|
3086
|
+
o.forEach((i, u) => {
|
|
3087
|
+
i && typeof i[e[u].initFunctionName] == "function" ? r.push(i[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
|
|
3060
3088
|
}), r.length > 0 && await Promise.all(r);
|
|
3061
3089
|
} catch (l) {
|
|
3062
3090
|
console.error("Failed to load one or more search modules:", l);
|
|
@@ -3142,43 +3170,44 @@ class H {
|
|
|
3142
3170
|
}
|
|
3143
3171
|
}
|
|
3144
3172
|
export {
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3173
|
+
T1 as Accordion,
|
|
3174
|
+
D1 as Alert,
|
|
3175
|
+
O1 as Autocomplete,
|
|
3176
|
+
B1 as Badge,
|
|
3149
3177
|
F as Button,
|
|
3150
|
-
|
|
3151
|
-
|
|
3178
|
+
u2 as CardSlider,
|
|
3179
|
+
I1 as Checkbox,
|
|
3152
3180
|
H as Common,
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3181
|
+
X1 as ContactForm,
|
|
3182
|
+
e2 as ContentCard,
|
|
3183
|
+
$1 as Dialog,
|
|
3184
|
+
q1 as Dots,
|
|
3185
|
+
t2 as FlexItem,
|
|
3186
|
+
s2 as FunnelHeader,
|
|
3187
|
+
x as Icon,
|
|
3188
|
+
j1 as LoadingBar,
|
|
3189
|
+
R1 as Popover,
|
|
3190
|
+
P1 as ProcessingSpinner,
|
|
3191
|
+
W1 as ProgressBar,
|
|
3192
|
+
U1 as Radio,
|
|
3193
|
+
G1 as Select,
|
|
3194
|
+
Q1 as Skeleton,
|
|
3195
|
+
J1 as Slider,
|
|
3196
|
+
a2 as Spacer,
|
|
3197
|
+
_1 as Spinner,
|
|
3198
|
+
n2 as StackedListItem,
|
|
3199
|
+
Y1 as Stars,
|
|
3172
3200
|
d1 as TextArea,
|
|
3173
3201
|
T as Textbox,
|
|
3174
|
-
|
|
3175
|
-
|
|
3202
|
+
K1 as Toggle,
|
|
3203
|
+
o2 as addClass,
|
|
3204
|
+
r2 as colors,
|
|
3176
3205
|
$ as corePlugins,
|
|
3177
|
-
|
|
3206
|
+
i2 as elerisPreset,
|
|
3178
3207
|
O as extensions,
|
|
3179
3208
|
q as plugins,
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3209
|
+
l2 as propertyPreset,
|
|
3210
|
+
c2 as removeClass,
|
|
3211
|
+
h2 as validateEmail,
|
|
3212
|
+
d2 as validateForm
|
|
3184
3213
|
};
|