@vehiclehistory/property-lib 0.1.95 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/Autocomplete/Autocomplete.d.ts +1 -0
- package/dist/components/ui/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +1 -0
- package/dist/components/ui/Dots/Dots.d.ts +1 -0
- package/dist/components/ui/Loading/LoadingBar.d.ts +1 -0
- package/dist/components/ui/Loading/ProcessingSpinner.d.ts +1 -0
- package/dist/components/ui/Loading/Spinner.d.ts +1 -0
- package/dist/components/ui/Progress/ProgressBar.d.ts +1 -0
- package/dist/components/ui/Radio/Radio.d.ts +1 -0
- package/dist/components/ui/Select/Select.d.ts +1 -0
- package/dist/main.es.js +664 -615
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as M, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import { memo as y, useState as
|
|
4
|
-
const
|
|
3
|
+
import { memo as y, useState as E, useEffect as O } from "react";
|
|
4
|
+
const X = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
7
7
|
small: "w-6 h-6",
|
|
@@ -10,7 +10,7 @@ const Y = {
|
|
|
10
10
|
mediumPlus: "w-9 h-9",
|
|
11
11
|
large: "w-10 h-10",
|
|
12
12
|
xLarge: "w-12 h-12"
|
|
13
|
-
},
|
|
13
|
+
}, _ = {
|
|
14
14
|
account: {
|
|
15
15
|
path: '<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />'
|
|
16
16
|
},
|
|
@@ -521,25 +521,25 @@ const Y = {
|
|
|
521
521
|
youtube: {
|
|
522
522
|
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" />'
|
|
523
523
|
}
|
|
524
|
-
},
|
|
524
|
+
}, K = (d) => _[d], e1 = ({
|
|
525
525
|
color: d = "text-current",
|
|
526
526
|
className: e,
|
|
527
527
|
name: t,
|
|
528
528
|
size: a = "medium",
|
|
529
529
|
viewBox: n = "0 0 20 20"
|
|
530
530
|
}) => {
|
|
531
|
-
const s =
|
|
532
|
-
return
|
|
533
|
-
|
|
534
|
-
}, [s]),
|
|
531
|
+
const s = K(t), [r, i] = E(d), [l, c] = E(s);
|
|
532
|
+
return O(() => {
|
|
533
|
+
c(s);
|
|
534
|
+
}, [s]), O(() => {
|
|
535
535
|
i(d);
|
|
536
|
-
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */
|
|
536
|
+
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
537
537
|
"svg",
|
|
538
538
|
{
|
|
539
539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
540
540
|
className: p(
|
|
541
541
|
"fill-current flex-shrink-0",
|
|
542
|
-
|
|
542
|
+
X[a],
|
|
543
543
|
r,
|
|
544
544
|
e
|
|
545
545
|
),
|
|
@@ -551,7 +551,7 @@ const Y = {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
);
|
|
554
|
-
}, x = y(
|
|
554
|
+
}, x = y(e1), t1 = ({
|
|
555
555
|
children: d,
|
|
556
556
|
className: e,
|
|
557
557
|
clickHandler: t,
|
|
@@ -560,8 +560,8 @@ const Y = {
|
|
|
560
560
|
unmount: s = !0,
|
|
561
561
|
isOpen: r = !1
|
|
562
562
|
}) => {
|
|
563
|
-
const [i, l] =
|
|
564
|
-
return /* @__PURE__ */
|
|
563
|
+
const [i, l] = E(r);
|
|
564
|
+
return /* @__PURE__ */ o(
|
|
565
565
|
"div",
|
|
566
566
|
{
|
|
567
567
|
className: p(
|
|
@@ -571,7 +571,7 @@ const Y = {
|
|
|
571
571
|
},
|
|
572
572
|
e
|
|
573
573
|
),
|
|
574
|
-
children: /* @__PURE__ */ M(
|
|
574
|
+
children: /* @__PURE__ */ M(k, { children: [
|
|
575
575
|
/* @__PURE__ */ M(
|
|
576
576
|
"button",
|
|
577
577
|
{
|
|
@@ -584,8 +584,8 @@ const Y = {
|
|
|
584
584
|
l(!i), t && t(!i);
|
|
585
585
|
},
|
|
586
586
|
children: [
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ o("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
588
|
+
/* @__PURE__ */ o("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
589
589
|
x,
|
|
590
590
|
{
|
|
591
591
|
name: "chevronDown",
|
|
@@ -596,7 +596,7 @@ const Y = {
|
|
|
596
596
|
]
|
|
597
597
|
}
|
|
598
598
|
),
|
|
599
|
-
s && i && /* @__PURE__ */
|
|
599
|
+
s && i && /* @__PURE__ */ o(
|
|
600
600
|
"div",
|
|
601
601
|
{
|
|
602
602
|
className: p(
|
|
@@ -606,7 +606,7 @@ const Y = {
|
|
|
606
606
|
children: d
|
|
607
607
|
}
|
|
608
608
|
),
|
|
609
|
-
!s && /* @__PURE__ */
|
|
609
|
+
!s && /* @__PURE__ */ o(
|
|
610
610
|
"div",
|
|
611
611
|
{
|
|
612
612
|
className: p(
|
|
@@ -620,7 +620,7 @@ const Y = {
|
|
|
620
620
|
] })
|
|
621
621
|
}
|
|
622
622
|
);
|
|
623
|
-
},
|
|
623
|
+
}, $1 = y(t1), a1 = ({
|
|
624
624
|
children: d,
|
|
625
625
|
className: e,
|
|
626
626
|
messages: t = [],
|
|
@@ -651,8 +651,8 @@ const Y = {
|
|
|
651
651
|
iconColor: "text-yellow-500",
|
|
652
652
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
653
653
|
}
|
|
654
|
-
}, { icon:
|
|
655
|
-
return /* @__PURE__ */
|
|
654
|
+
}, { icon: c, iconColor: u, styles: m } = l[i];
|
|
655
|
+
return /* @__PURE__ */ o(
|
|
656
656
|
"div",
|
|
657
657
|
{
|
|
658
658
|
id: i,
|
|
@@ -663,18 +663,18 @@ const Y = {
|
|
|
663
663
|
),
|
|
664
664
|
...r,
|
|
665
665
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
666
|
-
/* @__PURE__ */
|
|
666
|
+
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
667
667
|
x,
|
|
668
668
|
{
|
|
669
|
-
name:
|
|
669
|
+
name: c,
|
|
670
670
|
viewBox: "0 0 24 24",
|
|
671
671
|
className: u,
|
|
672
672
|
size: "xSmall"
|
|
673
673
|
}
|
|
674
674
|
) }),
|
|
675
675
|
/* @__PURE__ */ M("div", { className: "ml-3", children: [
|
|
676
|
-
/* @__PURE__ */
|
|
677
|
-
t.length > 0 ? /* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ o("div", { className: p("font-medium text-sm", s), children: n }),
|
|
677
|
+
t.length > 0 ? /* @__PURE__ */ o(
|
|
678
678
|
"ul",
|
|
679
679
|
{
|
|
680
680
|
role: "list",
|
|
@@ -682,7 +682,7 @@ const Y = {
|
|
|
682
682
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
683
683
|
a
|
|
684
684
|
),
|
|
685
|
-
children: t.map((V,
|
|
685
|
+
children: t.map((V, H) => /* @__PURE__ */ o("li", { children: V }, H))
|
|
686
686
|
}
|
|
687
687
|
) : "",
|
|
688
688
|
d
|
|
@@ -690,7 +690,7 @@ const Y = {
|
|
|
690
690
|
] })
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
|
-
},
|
|
693
|
+
}, q1 = y(a1), P1 = ({
|
|
694
694
|
autoFocus: d = !1,
|
|
695
695
|
className: e,
|
|
696
696
|
dataSearch: t = "container",
|
|
@@ -698,123 +698,125 @@ const Y = {
|
|
|
698
698
|
floatingLabel: n = "",
|
|
699
699
|
id: s = "",
|
|
700
700
|
inputClass: r,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
701
|
+
label: i,
|
|
702
|
+
leftIcon: l = "homeSearch",
|
|
703
|
+
leftIconProps: c = {},
|
|
704
|
+
loadingIconProps: u = {},
|
|
705
|
+
mobileBackdrop: m = !1,
|
|
706
|
+
name: V = "",
|
|
707
|
+
options: H = [],
|
|
708
|
+
parentProps: v = {},
|
|
708
709
|
placeholder: f = "",
|
|
709
|
-
props:
|
|
710
|
-
rightIcon:
|
|
711
|
-
required:
|
|
712
|
-
showClearIcon:
|
|
713
|
-
showDropdown:
|
|
714
|
-
showLoadingIcon:
|
|
715
|
-
showRightIcon:
|
|
716
|
-
showSearchIcon:
|
|
717
|
-
size:
|
|
718
|
-
styles:
|
|
719
|
-
title:
|
|
720
|
-
type:
|
|
721
|
-
useGoogle:
|
|
722
|
-
useReact:
|
|
710
|
+
props: A = {},
|
|
711
|
+
rightIcon: h = "",
|
|
712
|
+
required: g = !1,
|
|
713
|
+
showClearIcon: w = !0,
|
|
714
|
+
showDropdown: b = !0,
|
|
715
|
+
showLoadingIcon: z = !0,
|
|
716
|
+
showRightIcon: F = !1,
|
|
717
|
+
showSearchIcon: N = !0,
|
|
718
|
+
size: S = "medium",
|
|
719
|
+
styles: I = null,
|
|
720
|
+
title: U,
|
|
721
|
+
type: G,
|
|
722
|
+
useGoogle: Q = !1,
|
|
723
|
+
useReact: J = !1
|
|
723
724
|
}) => {
|
|
724
|
-
const
|
|
725
|
+
const Y = J ? { defaultValue: a } : { value: a };
|
|
725
726
|
return /* @__PURE__ */ M(
|
|
726
727
|
"div",
|
|
727
728
|
{
|
|
728
729
|
id: s,
|
|
729
730
|
"data-search": t,
|
|
730
|
-
"data-search-type":
|
|
731
|
-
"data-use-google":
|
|
731
|
+
"data-search-type": G,
|
|
732
|
+
"data-use-google": Q,
|
|
732
733
|
className: p("Autocomplete", e),
|
|
733
|
-
style:
|
|
734
|
-
...
|
|
734
|
+
style: I ? { ...I } : null,
|
|
735
|
+
...v,
|
|
735
736
|
children: [
|
|
736
|
-
|
|
737
|
+
N && /* @__PURE__ */ M(
|
|
737
738
|
"span",
|
|
738
739
|
{
|
|
739
740
|
className: p(
|
|
740
741
|
"search-icon-left absolute inset-y-0 left-0 flex items-center ",
|
|
741
742
|
{
|
|
742
|
-
"pointer-events-none":
|
|
743
|
-
"pl-2":
|
|
744
|
-
"pl-4":
|
|
743
|
+
"pointer-events-none": m,
|
|
744
|
+
"pl-2": S === "medium",
|
|
745
|
+
"pl-4": S === "large"
|
|
745
746
|
}
|
|
746
747
|
),
|
|
747
748
|
children: [
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ o(
|
|
749
750
|
x,
|
|
750
751
|
{
|
|
751
752
|
className: "home-search select-none text-gray-500",
|
|
752
|
-
name:
|
|
753
|
-
size:
|
|
753
|
+
name: l,
|
|
754
|
+
size: S === "xLarge" ? "small" : "xSmall",
|
|
754
755
|
viewBox: "0 0 24 24",
|
|
755
|
-
...
|
|
756
|
+
...c
|
|
756
757
|
}
|
|
757
758
|
),
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
+
/* @__PURE__ */ o(
|
|
759
760
|
x,
|
|
760
761
|
{
|
|
761
762
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
762
763
|
name: "arrowLeft",
|
|
763
|
-
size:
|
|
764
|
+
size: S === "xLarge" ? "small" : "xSmall",
|
|
764
765
|
viewBox: "0 0 24 24"
|
|
765
766
|
}
|
|
766
767
|
)
|
|
767
768
|
]
|
|
768
769
|
}
|
|
769
770
|
),
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ o(
|
|
771
772
|
"input",
|
|
772
773
|
{
|
|
773
774
|
"data-lpignore": "true",
|
|
775
|
+
"aria-label": i,
|
|
774
776
|
autoFocus: d,
|
|
775
777
|
className: p(
|
|
776
778
|
"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",
|
|
777
779
|
{
|
|
778
|
-
"pl-8":
|
|
779
|
-
"pl-10":
|
|
780
|
-
"px-3 h-10":
|
|
781
|
-
"px-4 h-12":
|
|
782
|
-
"px-5 h-[60px] sm:!text-base":
|
|
780
|
+
"pl-8": N === !0 && S === "medium",
|
|
781
|
+
"pl-10": N === !0 && S === "large",
|
|
782
|
+
"px-3 h-10": S === "medium",
|
|
783
|
+
"px-4 h-12": S === "large",
|
|
784
|
+
"px-5 h-[60px] sm:!text-base": S === "xLarge",
|
|
783
785
|
peer: n
|
|
784
786
|
},
|
|
785
787
|
r
|
|
786
788
|
),
|
|
787
|
-
required:
|
|
789
|
+
required: g,
|
|
788
790
|
autoComplete: "off",
|
|
789
791
|
placeholder: !f && n ? " " : f,
|
|
790
792
|
type: "search",
|
|
791
|
-
name:
|
|
793
|
+
name: V || "search-input",
|
|
792
794
|
"data-id": "search-input",
|
|
793
|
-
...
|
|
794
|
-
...
|
|
795
|
+
...Y,
|
|
796
|
+
...A
|
|
795
797
|
}
|
|
796
798
|
),
|
|
797
|
-
n && /* @__PURE__ */
|
|
799
|
+
n && /* @__PURE__ */ o(
|
|
798
800
|
"label",
|
|
799
801
|
{
|
|
800
802
|
className: p(
|
|
801
803
|
"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",
|
|
802
804
|
{
|
|
803
|
-
"!left-7":
|
|
804
|
-
"left-2":
|
|
805
|
-
"left-3":
|
|
806
|
-
"left-4":
|
|
805
|
+
"!left-7": N === !0,
|
|
806
|
+
"left-2": S === "medium",
|
|
807
|
+
"left-3": S === "large",
|
|
808
|
+
"left-4": S === "xLarge"
|
|
807
809
|
}
|
|
808
810
|
),
|
|
809
811
|
children: n
|
|
810
812
|
}
|
|
811
813
|
),
|
|
812
|
-
|
|
814
|
+
w && /* @__PURE__ */ o(
|
|
813
815
|
"span",
|
|
814
816
|
{
|
|
815
817
|
"data-id": "search-clear",
|
|
816
818
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
817
|
-
children: /* @__PURE__ */
|
|
819
|
+
children: /* @__PURE__ */ o(
|
|
818
820
|
x,
|
|
819
821
|
{
|
|
820
822
|
className: "cursor-pointer text-gray-500",
|
|
@@ -825,57 +827,57 @@ const Y = {
|
|
|
825
827
|
)
|
|
826
828
|
}
|
|
827
829
|
),
|
|
828
|
-
|
|
830
|
+
z && /* @__PURE__ */ o(
|
|
829
831
|
"span",
|
|
830
832
|
{
|
|
831
833
|
"data-id": "search-loading",
|
|
832
834
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
833
|
-
children: /* @__PURE__ */
|
|
835
|
+
children: /* @__PURE__ */ o(
|
|
834
836
|
x,
|
|
835
837
|
{
|
|
836
838
|
className: "animate-spin text-[#222] pointer-events-none",
|
|
837
839
|
name: "spinnerDark",
|
|
838
840
|
size: "xSmall",
|
|
839
841
|
viewBox: "0 0 24 24",
|
|
840
|
-
...
|
|
842
|
+
...u
|
|
841
843
|
}
|
|
842
844
|
)
|
|
843
845
|
}
|
|
844
846
|
),
|
|
845
|
-
|
|
847
|
+
h && /* @__PURE__ */ o(
|
|
846
848
|
"span",
|
|
847
849
|
{
|
|
848
850
|
"data-id": "right-icon",
|
|
849
|
-
className: `${
|
|
850
|
-
children: /* @__PURE__ */
|
|
851
|
+
className: `${F ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
852
|
+
children: /* @__PURE__ */ o(x, { name: h, size: "small", viewBox: "0 0 24 24" })
|
|
851
853
|
}
|
|
852
854
|
),
|
|
853
|
-
|
|
855
|
+
b && /* @__PURE__ */ M(
|
|
854
856
|
"div",
|
|
855
857
|
{
|
|
856
858
|
"data-id": "search-dropdown",
|
|
857
859
|
className: "dropdown absolute z-[15] w-full bg-white shadow-lg max-h-56 rounded-bl rounded-br py-1 overflow-auto focus:outline-none sm:text-sm sm:custom-scrollbar border-x border-b border-gray-300 hidden",
|
|
858
860
|
children: [
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ o("div", { "data-id": "search-dropdown-header" }),
|
|
862
|
+
/* @__PURE__ */ o(
|
|
861
863
|
"ul",
|
|
862
864
|
{
|
|
863
865
|
"data-id": "search-dropdown-body",
|
|
864
866
|
role: "listbox",
|
|
865
|
-
"data-title":
|
|
867
|
+
"data-title": U,
|
|
866
868
|
"aria-labelledby": "Label",
|
|
867
869
|
"aria-activedescendant": "search-item-0",
|
|
868
|
-
children:
|
|
870
|
+
children: H.length > 0 ? H.map((Z, D) => /* @__PURE__ */ o(
|
|
869
871
|
"li",
|
|
870
872
|
{
|
|
871
|
-
id: `search-item-${
|
|
873
|
+
id: `search-item-${D}`,
|
|
872
874
|
tabIndex: -1,
|
|
873
875
|
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",
|
|
874
|
-
"aria-selected":
|
|
876
|
+
"aria-selected": D === 0,
|
|
875
877
|
role: "option",
|
|
876
|
-
children: (
|
|
878
|
+
children: (Z == null ? void 0 : Z.name) || Z
|
|
877
879
|
},
|
|
878
|
-
`search-item-${
|
|
880
|
+
`search-item-${D}`
|
|
879
881
|
)) : ""
|
|
880
882
|
}
|
|
881
883
|
)
|
|
@@ -885,12 +887,12 @@ const Y = {
|
|
|
885
887
|
]
|
|
886
888
|
}
|
|
887
889
|
);
|
|
888
|
-
},
|
|
890
|
+
}, j1 = ({
|
|
889
891
|
children: d,
|
|
890
892
|
className: e,
|
|
891
893
|
size: t = "sm",
|
|
892
894
|
tag: a = "span"
|
|
893
|
-
}) => /* @__PURE__ */
|
|
895
|
+
}) => /* @__PURE__ */ o(
|
|
894
896
|
a || "span",
|
|
895
897
|
{
|
|
896
898
|
className: p(
|
|
@@ -904,7 +906,7 @@ const Y = {
|
|
|
904
906
|
),
|
|
905
907
|
children: d
|
|
906
908
|
}
|
|
907
|
-
),
|
|
909
|
+
), n1 = ({
|
|
908
910
|
borderless: d = !1,
|
|
909
911
|
leftIcon: e,
|
|
910
912
|
leftIconProps: t = {},
|
|
@@ -914,30 +916,30 @@ const Y = {
|
|
|
914
916
|
href: r,
|
|
915
917
|
outline: i = !1,
|
|
916
918
|
props: l = {},
|
|
917
|
-
rightIcon:
|
|
919
|
+
rightIcon: c,
|
|
918
920
|
rightIconProps: u = {},
|
|
919
921
|
rounded: m = !1,
|
|
920
922
|
size: V = "md",
|
|
921
|
-
type:
|
|
922
|
-
uppercase:
|
|
923
|
-
variation:
|
|
923
|
+
type: H = "button",
|
|
924
|
+
uppercase: v = !1,
|
|
925
|
+
variation: f = "primary"
|
|
924
926
|
}) => {
|
|
925
927
|
const A = r ? "a" : "button";
|
|
926
928
|
return /* @__PURE__ */ M(
|
|
927
929
|
A,
|
|
928
930
|
{
|
|
929
|
-
type: A !== "a" ?
|
|
931
|
+
type: A !== "a" ? H : null,
|
|
930
932
|
className: p(
|
|
931
933
|
"button",
|
|
932
934
|
{
|
|
933
|
-
[`button--${
|
|
935
|
+
[`button--${f}`]: f,
|
|
934
936
|
[`button--${V}`]: V,
|
|
935
937
|
"button--rounded": m,
|
|
936
938
|
"button--disabled": s,
|
|
937
939
|
"button--outline": i,
|
|
938
940
|
"button--custom-link": r,
|
|
939
|
-
"button--uppercase":
|
|
940
|
-
"button--borderless": d ||
|
|
941
|
+
"button--uppercase": v,
|
|
942
|
+
"button--borderless": d || f === "link"
|
|
941
943
|
},
|
|
942
944
|
n
|
|
943
945
|
),
|
|
@@ -945,7 +947,7 @@ const Y = {
|
|
|
945
947
|
href: r,
|
|
946
948
|
...l,
|
|
947
949
|
children: [
|
|
948
|
-
e && /* @__PURE__ */
|
|
950
|
+
e && /* @__PURE__ */ o(
|
|
949
951
|
x,
|
|
950
952
|
{
|
|
951
953
|
name: e,
|
|
@@ -955,10 +957,10 @@ const Y = {
|
|
|
955
957
|
}
|
|
956
958
|
),
|
|
957
959
|
a,
|
|
958
|
-
|
|
960
|
+
c && /* @__PURE__ */ o(
|
|
959
961
|
x,
|
|
960
962
|
{
|
|
961
|
-
name:
|
|
963
|
+
name: c,
|
|
962
964
|
size: V === "md" ? "small" : "xSmall",
|
|
963
965
|
viewBox: "0 0 24 24",
|
|
964
966
|
...u
|
|
@@ -967,124 +969,125 @@ const Y = {
|
|
|
967
969
|
]
|
|
968
970
|
}
|
|
969
971
|
);
|
|
970
|
-
},
|
|
972
|
+
}, T = y(n1), s1 = ({
|
|
971
973
|
checked: d = !1,
|
|
972
974
|
children: e,
|
|
973
975
|
className: t,
|
|
974
976
|
error: a = !1,
|
|
975
977
|
inputClass: n,
|
|
976
|
-
id: s
|
|
977
|
-
label: r
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
978
|
+
id: s,
|
|
979
|
+
label: r,
|
|
980
|
+
labelClass: i,
|
|
981
|
+
name: l,
|
|
982
|
+
props: c = {},
|
|
983
|
+
variation: u = "primary",
|
|
984
|
+
value: m
|
|
985
|
+
}) => /* @__PURE__ */ M(
|
|
986
|
+
"label",
|
|
987
|
+
{
|
|
988
|
+
className: p(
|
|
989
|
+
"checkbox",
|
|
990
|
+
{ [`checkbox--${u}`]: u },
|
|
991
|
+
t
|
|
992
|
+
),
|
|
993
|
+
htmlFor: s,
|
|
994
|
+
children: [
|
|
995
|
+
/* @__PURE__ */ o(
|
|
996
|
+
"input",
|
|
997
|
+
{
|
|
998
|
+
checked: d,
|
|
999
|
+
className: p(
|
|
1000
|
+
"form-checkbox",
|
|
1001
|
+
{
|
|
1002
|
+
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
1003
|
+
},
|
|
1004
|
+
n
|
|
1005
|
+
),
|
|
1006
|
+
id: s,
|
|
1007
|
+
name: l,
|
|
1008
|
+
type: "checkbox",
|
|
1009
|
+
value: m,
|
|
1010
|
+
...c
|
|
1011
|
+
}
|
|
991
1012
|
),
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
checked: d,
|
|
998
|
-
className: p(
|
|
999
|
-
"form-checkbox",
|
|
1000
|
-
{
|
|
1001
|
-
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
1002
|
-
},
|
|
1003
|
-
n
|
|
1004
|
-
),
|
|
1005
|
-
id: s,
|
|
1006
|
-
name: i,
|
|
1007
|
-
type: "checkbox",
|
|
1008
|
-
value: u,
|
|
1009
|
-
...l
|
|
1010
|
-
}
|
|
1011
|
-
),
|
|
1012
|
-
e
|
|
1013
|
-
]
|
|
1014
|
-
}
|
|
1015
|
-
);
|
|
1016
|
-
}, j1 = y(n1), s1 = ({
|
|
1013
|
+
r && /* @__PURE__ */ o("span", { className: p("sr-only", i), children: r }),
|
|
1014
|
+
e
|
|
1015
|
+
]
|
|
1016
|
+
}
|
|
1017
|
+
), R1 = y(s1), l1 = ({
|
|
1017
1018
|
activator: d,
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1019
|
+
ariaLabel: e,
|
|
1020
|
+
id: t,
|
|
1021
|
+
children: a,
|
|
1022
|
+
className: n,
|
|
1023
|
+
contentClass: s,
|
|
1024
|
+
customScrollbar: r = !0,
|
|
1025
|
+
dark: i = !1,
|
|
1026
|
+
disableClose: l = !1,
|
|
1027
|
+
footer: c,
|
|
1028
|
+
fullMobile: u = !0,
|
|
1029
|
+
headerClass: m,
|
|
1030
|
+
hideClose: V = !1,
|
|
1031
|
+
iconSize: H = "medium",
|
|
1032
|
+
preventPageScroll: v = !0,
|
|
1031
1033
|
sheet: f = !1,
|
|
1032
|
-
sheetDirection:
|
|
1033
|
-
stickyHeader:
|
|
1034
|
-
title:
|
|
1035
|
-
titleClass:
|
|
1036
|
-
variation:
|
|
1037
|
-
useFormMethod:
|
|
1034
|
+
sheetDirection: A = "right",
|
|
1035
|
+
stickyHeader: h = !1,
|
|
1036
|
+
title: g = "",
|
|
1037
|
+
titleClass: w,
|
|
1038
|
+
variation: b = "primary",
|
|
1039
|
+
useFormMethod: z = !0
|
|
1038
1040
|
}) => {
|
|
1039
|
-
const
|
|
1040
|
-
return /* @__PURE__ */ M(
|
|
1041
|
-
d && /* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1041
|
+
const F = z ? "form" : "div";
|
|
1042
|
+
return /* @__PURE__ */ M(k, { children: [
|
|
1043
|
+
d && /* @__PURE__ */ o("span", { id: `${t}-dialog-activator`, children: d }),
|
|
1044
|
+
/* @__PURE__ */ o(
|
|
1043
1045
|
"dialog",
|
|
1044
1046
|
{
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1047
|
+
"aria-labelledby": g ? `${t}-dialog-title` : null,
|
|
1048
|
+
"aria-label": !g && e ? e : null,
|
|
1049
|
+
...l ? { closedby: "none" } : null,
|
|
1050
|
+
id: t ? `${t}-dialog` : null,
|
|
1048
1051
|
className: p(
|
|
1049
1052
|
"dialog",
|
|
1050
1053
|
{
|
|
1051
|
-
[`dialog-${
|
|
1052
|
-
"dialog-full-mobile":
|
|
1054
|
+
[`dialog-${b}`]: b,
|
|
1055
|
+
"dialog-full-mobile": u,
|
|
1053
1056
|
"dialog-sheet": f,
|
|
1054
|
-
dark:
|
|
1055
|
-
"dialog-sheet--right":
|
|
1056
|
-
"prevent-scroll":
|
|
1057
|
+
dark: i,
|
|
1058
|
+
"dialog-sheet--right": A === "right" && f,
|
|
1059
|
+
"prevent-scroll": v
|
|
1057
1060
|
},
|
|
1058
|
-
|
|
1061
|
+
n
|
|
1059
1062
|
),
|
|
1060
1063
|
children: /* @__PURE__ */ M(
|
|
1061
|
-
|
|
1064
|
+
F,
|
|
1062
1065
|
{
|
|
1063
1066
|
className: "dialog-container",
|
|
1064
|
-
method:
|
|
1067
|
+
method: z ? "dialog" : null,
|
|
1065
1068
|
children: [
|
|
1066
1069
|
/* @__PURE__ */ M(
|
|
1067
|
-
"
|
|
1070
|
+
"div",
|
|
1068
1071
|
{
|
|
1069
1072
|
className: p(
|
|
1070
1073
|
"dialog-header",
|
|
1071
1074
|
{
|
|
1072
|
-
"sticky top-0 bg-white z-10":
|
|
1073
|
-
"!pb-0 border-0 justify-end": !
|
|
1074
|
-
"justify-between border-b":
|
|
1075
|
+
"sticky top-0 bg-white z-10": h,
|
|
1076
|
+
"!pb-0 border-0 justify-end": !g,
|
|
1077
|
+
"justify-between border-b": g
|
|
1075
1078
|
},
|
|
1076
|
-
|
|
1079
|
+
m
|
|
1077
1080
|
),
|
|
1078
1081
|
children: [
|
|
1079
|
-
|
|
1082
|
+
g && /* @__PURE__ */ o(
|
|
1080
1083
|
"div",
|
|
1081
1084
|
{
|
|
1082
|
-
id: `${
|
|
1083
|
-
className: p("dialog-title",
|
|
1084
|
-
children:
|
|
1085
|
+
id: `${t}-dialog-title`,
|
|
1086
|
+
className: p("dialog-title", w),
|
|
1087
|
+
children: g
|
|
1085
1088
|
}
|
|
1086
1089
|
),
|
|
1087
|
-
!
|
|
1090
|
+
!V && /* @__PURE__ */ o(
|
|
1088
1091
|
"button",
|
|
1089
1092
|
{
|
|
1090
1093
|
type: "button",
|
|
@@ -1092,11 +1095,11 @@ const Y = {
|
|
|
1092
1095
|
className: "dialog-close",
|
|
1093
1096
|
"data-dialog-close": "",
|
|
1094
1097
|
value: "close",
|
|
1095
|
-
children: /* @__PURE__ */
|
|
1098
|
+
children: /* @__PURE__ */ o(
|
|
1096
1099
|
x,
|
|
1097
1100
|
{
|
|
1098
1101
|
name: "close",
|
|
1099
|
-
size:
|
|
1102
|
+
size: H,
|
|
1100
1103
|
className: "pointer-events-none"
|
|
1101
1104
|
}
|
|
1102
1105
|
)
|
|
@@ -1105,82 +1108,111 @@ const Y = {
|
|
|
1105
1108
|
]
|
|
1106
1109
|
}
|
|
1107
1110
|
),
|
|
1108
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ o(
|
|
1109
1112
|
"div",
|
|
1110
1113
|
{
|
|
1111
|
-
id: `${
|
|
1114
|
+
id: `${t}-dialog-content`,
|
|
1112
1115
|
className: p(
|
|
1113
1116
|
"dialog-content",
|
|
1114
1117
|
{
|
|
1115
|
-
"custom-scrollbar":
|
|
1118
|
+
"custom-scrollbar": r
|
|
1116
1119
|
},
|
|
1117
|
-
|
|
1120
|
+
s
|
|
1118
1121
|
),
|
|
1119
|
-
children:
|
|
1122
|
+
children: a
|
|
1120
1123
|
}
|
|
1121
1124
|
),
|
|
1122
|
-
|
|
1125
|
+
c && /* @__PURE__ */ o("footer", { id: `${t}-dialog-footer`, className: "dialog-footer", children: c })
|
|
1123
1126
|
]
|
|
1124
1127
|
}
|
|
1125
1128
|
)
|
|
1126
1129
|
}
|
|
1127
1130
|
)
|
|
1128
1131
|
] });
|
|
1129
|
-
},
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1132
|
+
}, W1 = y(l1), U1 = ({
|
|
1133
|
+
ariaLabel: d,
|
|
1134
|
+
className: e
|
|
1135
|
+
}) => /* @__PURE__ */ M(
|
|
1136
|
+
"div",
|
|
1137
|
+
{
|
|
1138
|
+
role: "status",
|
|
1139
|
+
"aria-label": d,
|
|
1140
|
+
className: p("Dots mx-auto", e),
|
|
1141
|
+
children: [
|
|
1142
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
|
|
1143
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
|
|
1144
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
|
|
1145
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.4s" } }),
|
|
1146
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.5s" } }),
|
|
1147
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
|
|
1148
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
|
|
1149
|
+
/* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
|
|
1150
|
+
]
|
|
1151
|
+
}
|
|
1152
|
+
), r1 = ({
|
|
1153
|
+
ariaLabel: d,
|
|
1154
|
+
cb: e,
|
|
1155
|
+
onUpdate: t,
|
|
1156
|
+
className: a,
|
|
1157
|
+
selector: n = "",
|
|
1158
|
+
size: s = "md",
|
|
1159
|
+
timeout: r = 1e4,
|
|
1160
|
+
variation: i = "primary"
|
|
1146
1161
|
}) => {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1162
|
+
const [l, c] = E(0);
|
|
1163
|
+
function u({ cb: m }) {
|
|
1164
|
+
const V = document.querySelector(
|
|
1165
|
+
`.loading-bar--inner${n ? `.${n}` : ""}`
|
|
1150
1166
|
);
|
|
1151
|
-
if (!
|
|
1152
|
-
let
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1155
|
-
const
|
|
1156
|
-
if (
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1167
|
+
if (!V) return;
|
|
1168
|
+
let H, v, f = !1;
|
|
1169
|
+
function A(h) {
|
|
1170
|
+
H === void 0 && (H = h);
|
|
1171
|
+
const g = h - H;
|
|
1172
|
+
if (v !== h) {
|
|
1173
|
+
const w = g / r * 101;
|
|
1174
|
+
V.style.width = `${w}%`, c(Math.min(100, Math.round(w))), t && t({ elapsed: g, percentage: w }), w >= 101 && (m && m(), f = !0, window.cancelAnimationFrame(h));
|
|
1159
1175
|
}
|
|
1160
|
-
|
|
1176
|
+
g < r && (v = h, f || window.requestAnimationFrame(A));
|
|
1161
1177
|
}
|
|
1162
|
-
window.requestAnimationFrame(
|
|
1178
|
+
window.requestAnimationFrame(A);
|
|
1163
1179
|
}
|
|
1164
|
-
return
|
|
1165
|
-
|
|
1166
|
-
}, []), /* @__PURE__ */
|
|
1180
|
+
return O(() => {
|
|
1181
|
+
u({ cb: e });
|
|
1182
|
+
}, []), /* @__PURE__ */ o(
|
|
1167
1183
|
"div",
|
|
1168
1184
|
{
|
|
1185
|
+
role: "progressbar",
|
|
1186
|
+
"aria-label": d,
|
|
1187
|
+
"aria-valuenow": l,
|
|
1188
|
+
"aria-valuemin": 0,
|
|
1189
|
+
"aria-valuemax": 100,
|
|
1190
|
+
"aria-busy": l < 100,
|
|
1169
1191
|
className: p(
|
|
1170
1192
|
"loading-bar my-8",
|
|
1171
|
-
`loading-bar--${
|
|
1193
|
+
`loading-bar--${i}`,
|
|
1172
1194
|
{
|
|
1173
|
-
"h-4":
|
|
1174
|
-
"h-6":
|
|
1175
|
-
"h-8":
|
|
1195
|
+
"h-4": s === "md",
|
|
1196
|
+
"h-6": s === "lg",
|
|
1197
|
+
"h-8": s === "xl"
|
|
1176
1198
|
},
|
|
1177
|
-
`loading-bar--${
|
|
1178
|
-
|
|
1199
|
+
`loading-bar--${s}`,
|
|
1200
|
+
a
|
|
1179
1201
|
),
|
|
1180
|
-
children: /* @__PURE__ */
|
|
1202
|
+
children: /* @__PURE__ */ o("div", { className: `loading-bar--inner ${n}`, "data-size": "100" })
|
|
1181
1203
|
}
|
|
1182
1204
|
);
|
|
1183
|
-
},
|
|
1205
|
+
}, G1 = y(r1), i1 = ({
|
|
1206
|
+
ariaLabel: d = "Processing...",
|
|
1207
|
+
className: e
|
|
1208
|
+
}) => /* @__PURE__ */ o(
|
|
1209
|
+
"div",
|
|
1210
|
+
{
|
|
1211
|
+
role: "status",
|
|
1212
|
+
"aria-label": d,
|
|
1213
|
+
className: p("processing-spinner", e)
|
|
1214
|
+
}
|
|
1215
|
+
), Q1 = y(i1), J1 = ({
|
|
1184
1216
|
activator: d,
|
|
1185
1217
|
activatorClass: e = "",
|
|
1186
1218
|
attrs: t = {},
|
|
@@ -1190,8 +1222,8 @@ const Y = {
|
|
|
1190
1222
|
disabled: r = !1,
|
|
1191
1223
|
options: i = {},
|
|
1192
1224
|
trigger: l = "click"
|
|
1193
|
-
}) => /* @__PURE__ */ M(
|
|
1194
|
-
/* @__PURE__ */
|
|
1225
|
+
}) => /* @__PURE__ */ M(k, { children: [
|
|
1226
|
+
/* @__PURE__ */ o(
|
|
1195
1227
|
"div",
|
|
1196
1228
|
{
|
|
1197
1229
|
className: p("popover z-10 max-w-[350px] hidden", n),
|
|
@@ -1204,7 +1236,7 @@ const Y = {
|
|
|
1204
1236
|
),
|
|
1205
1237
|
children: [
|
|
1206
1238
|
a,
|
|
1207
|
-
/* @__PURE__ */
|
|
1239
|
+
/* @__PURE__ */ o(
|
|
1208
1240
|
"div",
|
|
1209
1241
|
{
|
|
1210
1242
|
className: "absolute w-4 h-4 before:content-[''] before:absolute before:w-4 before:h-4 before:visible before:transform before:rotate-45",
|
|
@@ -1216,7 +1248,7 @@ const Y = {
|
|
|
1216
1248
|
)
|
|
1217
1249
|
}
|
|
1218
1250
|
),
|
|
1219
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ o(
|
|
1220
1252
|
"div",
|
|
1221
1253
|
{
|
|
1222
1254
|
className: p(
|
|
@@ -1232,126 +1264,127 @@ const Y = {
|
|
|
1232
1264
|
children: d
|
|
1233
1265
|
}
|
|
1234
1266
|
)
|
|
1235
|
-
] }),
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1267
|
+
] }), c1 = ({
|
|
1268
|
+
ariaLabel: d = "Progress Bar",
|
|
1269
|
+
ariaValuemax: e = 100,
|
|
1270
|
+
ariaValuemin: t = 0,
|
|
1271
|
+
bgColor: a = "bg-orange-500",
|
|
1272
|
+
className: n,
|
|
1273
|
+
completed: s = 0,
|
|
1274
|
+
customLabel: r,
|
|
1275
|
+
labelClass: i,
|
|
1276
|
+
maxCompleted: l = 100,
|
|
1277
|
+
rounded: c = !0,
|
|
1278
|
+
showLabel: u = !1
|
|
1246
1279
|
}) => {
|
|
1247
|
-
const
|
|
1248
|
-
if (
|
|
1249
|
-
const f = Number(
|
|
1280
|
+
const V = ((H, v) => {
|
|
1281
|
+
if (H) {
|
|
1282
|
+
const f = Number(v) / H;
|
|
1250
1283
|
return f > 1 ? 100 : f * 100;
|
|
1251
1284
|
}
|
|
1252
|
-
return
|
|
1253
|
-
})(
|
|
1254
|
-
return /* @__PURE__ */
|
|
1285
|
+
return s;
|
|
1286
|
+
})(l, s);
|
|
1287
|
+
return /* @__PURE__ */ o(
|
|
1255
1288
|
"div",
|
|
1256
1289
|
{
|
|
1257
1290
|
className: p(
|
|
1258
1291
|
"w-full bg-gray-200",
|
|
1259
|
-
{ "rounded-full":
|
|
1260
|
-
|
|
1292
|
+
{ "rounded-full": c },
|
|
1293
|
+
n
|
|
1261
1294
|
),
|
|
1262
1295
|
role: "progressbar",
|
|
1263
|
-
"aria-label":
|
|
1264
|
-
"aria-valuenow":
|
|
1265
|
-
"aria-valuemin":
|
|
1266
|
-
"aria-valuemax":
|
|
1267
|
-
children: /* @__PURE__ */
|
|
1296
|
+
"aria-label": d,
|
|
1297
|
+
"aria-valuenow": s,
|
|
1298
|
+
"aria-valuemin": t,
|
|
1299
|
+
"aria-valuemax": e,
|
|
1300
|
+
children: /* @__PURE__ */ o(
|
|
1268
1301
|
"div",
|
|
1269
1302
|
{
|
|
1270
1303
|
className: p(
|
|
1271
1304
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1272
|
-
|
|
1305
|
+
a
|
|
1273
1306
|
),
|
|
1274
|
-
style: { width: `${
|
|
1275
|
-
children:
|
|
1307
|
+
style: { width: `${V}%` },
|
|
1308
|
+
children: u && /* @__PURE__ */ o(
|
|
1276
1309
|
"span",
|
|
1277
1310
|
{
|
|
1278
1311
|
className: p(
|
|
1279
1312
|
"font-bold text-white text-xs mr-2",
|
|
1280
|
-
|
|
1313
|
+
i
|
|
1281
1314
|
),
|
|
1282
|
-
children:
|
|
1315
|
+
children: r || Math.round(V)
|
|
1283
1316
|
}
|
|
1284
1317
|
)
|
|
1285
1318
|
}
|
|
1286
1319
|
)
|
|
1287
1320
|
}
|
|
1288
1321
|
);
|
|
1289
|
-
},
|
|
1322
|
+
}, Y1 = y(c1), o1 = ({
|
|
1290
1323
|
checked: d = !1,
|
|
1291
1324
|
children: e,
|
|
1292
1325
|
className: t,
|
|
1293
|
-
id: a
|
|
1326
|
+
id: a,
|
|
1294
1327
|
inputClass: n,
|
|
1295
|
-
label: s
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1328
|
+
label: s,
|
|
1329
|
+
labelClass: r,
|
|
1330
|
+
name: i,
|
|
1331
|
+
props: l = {},
|
|
1332
|
+
variation: c = "primary",
|
|
1333
|
+
value: u
|
|
1334
|
+
}) => /* @__PURE__ */ M(
|
|
1335
|
+
"label",
|
|
1336
|
+
{
|
|
1337
|
+
className: p(
|
|
1338
|
+
"radio",
|
|
1339
|
+
{ [`radio--${c}`]: c },
|
|
1340
|
+
t
|
|
1341
|
+
),
|
|
1342
|
+
htmlFor: a,
|
|
1343
|
+
children: [
|
|
1344
|
+
/* @__PURE__ */ o(
|
|
1345
|
+
"input",
|
|
1346
|
+
{
|
|
1347
|
+
checked: d,
|
|
1348
|
+
className: p("form-radio", n),
|
|
1349
|
+
id: a,
|
|
1350
|
+
name: i,
|
|
1351
|
+
type: "radio",
|
|
1352
|
+
value: u,
|
|
1353
|
+
...l
|
|
1354
|
+
}
|
|
1309
1355
|
),
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
className: p("form-radio", n),
|
|
1317
|
-
id: a,
|
|
1318
|
-
name: r,
|
|
1319
|
-
type: "radio",
|
|
1320
|
-
value: o,
|
|
1321
|
-
...i
|
|
1322
|
-
}
|
|
1323
|
-
),
|
|
1324
|
-
e
|
|
1325
|
-
]
|
|
1326
|
-
}
|
|
1327
|
-
);
|
|
1328
|
-
}, Y1 = y(o1), c1 = ({
|
|
1329
|
-
className: d = "",
|
|
1356
|
+
s && /* @__PURE__ */ o("span", { className: p("sr-only", r), children: s }),
|
|
1357
|
+
e
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
), X1 = y(o1), d1 = ({
|
|
1361
|
+
className: d,
|
|
1330
1362
|
error: e = !1,
|
|
1331
|
-
errorMessage: t
|
|
1332
|
-
id: a
|
|
1333
|
-
label: n
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1363
|
+
errorMessage: t,
|
|
1364
|
+
id: a,
|
|
1365
|
+
label: n,
|
|
1366
|
+
labelClass: s,
|
|
1367
|
+
name: r,
|
|
1368
|
+
options: i = [],
|
|
1369
|
+
placeholder: l,
|
|
1370
|
+
props: c = {},
|
|
1371
|
+
selectClass: u,
|
|
1372
|
+
styles: m = null,
|
|
1373
|
+
variation: V = "primary",
|
|
1374
|
+
value: H
|
|
1342
1375
|
}) => {
|
|
1343
|
-
const
|
|
1376
|
+
const v = l ? { defaultValue: "" } : {};
|
|
1344
1377
|
return /* @__PURE__ */ M(
|
|
1345
1378
|
"label",
|
|
1346
1379
|
{
|
|
1347
1380
|
className: p(
|
|
1348
1381
|
"relative select",
|
|
1349
|
-
{ [`select--${
|
|
1382
|
+
{ [`select--${V}`]: V },
|
|
1350
1383
|
d
|
|
1351
1384
|
),
|
|
1352
|
-
style:
|
|
1385
|
+
style: m ? { ...m } : null,
|
|
1353
1386
|
children: [
|
|
1354
|
-
n,
|
|
1387
|
+
n && /* @__PURE__ */ o("span", { className: p("sr-only", s), children: n }),
|
|
1355
1388
|
/* @__PURE__ */ M(
|
|
1356
1389
|
"select",
|
|
1357
1390
|
{
|
|
@@ -1360,31 +1393,32 @@ const Y = {
|
|
|
1360
1393
|
{
|
|
1361
1394
|
"field-error": e
|
|
1362
1395
|
},
|
|
1363
|
-
|
|
1396
|
+
u
|
|
1364
1397
|
),
|
|
1365
1398
|
id: a,
|
|
1366
|
-
name:
|
|
1367
|
-
value:
|
|
1368
|
-
...
|
|
1369
|
-
...
|
|
1399
|
+
name: r,
|
|
1400
|
+
value: H,
|
|
1401
|
+
...v,
|
|
1402
|
+
...c,
|
|
1370
1403
|
children: [
|
|
1371
|
-
|
|
1372
|
-
|
|
1404
|
+
l && /* @__PURE__ */ o("option", { "aria-label": l, hidden: !0, value: "", children: l }),
|
|
1405
|
+
i.map((f) => /* @__PURE__ */ o(
|
|
1373
1406
|
"option",
|
|
1374
1407
|
{
|
|
1408
|
+
"aria-label": (f == null ? void 0 : f.ariaLabel) || (f == null ? void 0 : f.name) || f,
|
|
1375
1409
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
1376
|
-
children: (f == null ? void 0 : f.name) || f
|
|
1410
|
+
children: (f == null ? void 0 : f.label) || (f == null ? void 0 : f.name) || f
|
|
1377
1411
|
},
|
|
1378
1412
|
(f == null ? void 0 : f.name) || f
|
|
1379
1413
|
))
|
|
1380
1414
|
]
|
|
1381
1415
|
}
|
|
1382
1416
|
),
|
|
1383
|
-
t && /* @__PURE__ */
|
|
1417
|
+
t && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: t })
|
|
1384
1418
|
]
|
|
1385
1419
|
}
|
|
1386
1420
|
);
|
|
1387
|
-
},
|
|
1421
|
+
}, _1 = y(d1), h1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1388
1422
|
"div",
|
|
1389
1423
|
{
|
|
1390
1424
|
className: p(
|
|
@@ -1392,62 +1426,73 @@ const Y = {
|
|
|
1392
1426
|
d
|
|
1393
1427
|
),
|
|
1394
1428
|
children: [
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ o(x, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1430
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1397
1431
|
]
|
|
1398
1432
|
}
|
|
1399
|
-
),
|
|
1433
|
+
), K1 = y(h1), u1 = ({
|
|
1400
1434
|
placeholderClass: d = "",
|
|
1401
1435
|
children: e,
|
|
1402
1436
|
className: t,
|
|
1403
1437
|
id: a = 1,
|
|
1404
1438
|
padding: n = !0
|
|
1405
1439
|
}) => /* @__PURE__ */ M("div", { className: p("slider", t), id: `slider-${a}`, children: [
|
|
1406
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ o(
|
|
1407
1441
|
"button",
|
|
1408
1442
|
{
|
|
1409
1443
|
title: "Previous Slide",
|
|
1410
1444
|
id: `btn-left-${a}`,
|
|
1411
1445
|
type: "button",
|
|
1412
1446
|
className: "slider-button__prev ",
|
|
1413
|
-
children: /* @__PURE__ */
|
|
1447
|
+
children: /* @__PURE__ */ o(x, { name: "chevronLeft" })
|
|
1414
1448
|
}
|
|
1415
1449
|
),
|
|
1416
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ o(
|
|
1417
1451
|
"div",
|
|
1418
1452
|
{
|
|
1419
1453
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1420
|
-
children: /* @__PURE__ */
|
|
1454
|
+
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1421
1455
|
},
|
|
1422
1456
|
r
|
|
1423
1457
|
)) }),
|
|
1424
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ o(
|
|
1425
1459
|
"button",
|
|
1426
1460
|
{
|
|
1427
1461
|
title: "Next Slide",
|
|
1428
1462
|
id: `btn-right-${a}`,
|
|
1429
1463
|
type: "button",
|
|
1430
1464
|
className: "slider-button__next",
|
|
1431
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ o(x, { name: "chevronRight" })
|
|
1432
1466
|
}
|
|
1433
1467
|
)
|
|
1434
|
-
] }),
|
|
1435
|
-
|
|
1468
|
+
] }), e2 = y(u1), p1 = ({ ariaLabel: d, className: e, iconClass: t, iconProps: a = {} }) => /* @__PURE__ */ o(
|
|
1469
|
+
"div",
|
|
1436
1470
|
{
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1471
|
+
role: "status",
|
|
1472
|
+
"aria-label": d,
|
|
1473
|
+
className: p("rounded-r-md px-2 focus:outline-none", e),
|
|
1474
|
+
children: /* @__PURE__ */ o(
|
|
1475
|
+
x,
|
|
1476
|
+
{
|
|
1477
|
+
className: p(
|
|
1478
|
+
"animate-spin text-black-900 motion-reduce:animate-none",
|
|
1479
|
+
t
|
|
1480
|
+
),
|
|
1481
|
+
size: "xSmall",
|
|
1482
|
+
name: "spinnerDark",
|
|
1483
|
+
viewBox: "0 0 24 24",
|
|
1484
|
+
...a
|
|
1485
|
+
}
|
|
1486
|
+
)
|
|
1442
1487
|
}
|
|
1443
|
-
)
|
|
1488
|
+
), t2 = y(p1), a2 = ({
|
|
1444
1489
|
className: d,
|
|
1445
1490
|
value: e
|
|
1446
1491
|
}) => {
|
|
1447
1492
|
const t = {
|
|
1448
1493
|
"--value": `calc(${e} / 5 * 100%)`
|
|
1449
1494
|
};
|
|
1450
|
-
return /* @__PURE__ */
|
|
1495
|
+
return /* @__PURE__ */ o(
|
|
1451
1496
|
"div",
|
|
1452
1497
|
{
|
|
1453
1498
|
className: p(
|
|
@@ -1457,7 +1502,7 @@ const Y = {
|
|
|
1457
1502
|
style: t
|
|
1458
1503
|
}
|
|
1459
1504
|
);
|
|
1460
|
-
},
|
|
1505
|
+
}, m1 = ({
|
|
1461
1506
|
className: d,
|
|
1462
1507
|
clear: e = !1,
|
|
1463
1508
|
error: t = !1,
|
|
@@ -1467,7 +1512,7 @@ const Y = {
|
|
|
1467
1512
|
name: r = "",
|
|
1468
1513
|
placeholder: i = "",
|
|
1469
1514
|
props: l = {},
|
|
1470
|
-
rows:
|
|
1515
|
+
rows: c = 4,
|
|
1471
1516
|
variation: u = "primary"
|
|
1472
1517
|
}) => /* @__PURE__ */ M(
|
|
1473
1518
|
"div",
|
|
@@ -1478,13 +1523,13 @@ const Y = {
|
|
|
1478
1523
|
d
|
|
1479
1524
|
),
|
|
1480
1525
|
children: [
|
|
1481
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ o(
|
|
1482
1527
|
"textarea",
|
|
1483
1528
|
{
|
|
1484
1529
|
placeholder: i,
|
|
1485
1530
|
id: n,
|
|
1486
1531
|
name: r,
|
|
1487
|
-
rows:
|
|
1532
|
+
rows: c,
|
|
1488
1533
|
className: p(
|
|
1489
1534
|
"form-textarea min-h-[40px] pl-4",
|
|
1490
1535
|
e ? "pr-10" : "pr-4",
|
|
@@ -1496,12 +1541,12 @@ const Y = {
|
|
|
1496
1541
|
...l
|
|
1497
1542
|
}
|
|
1498
1543
|
),
|
|
1499
|
-
e && /* @__PURE__ */
|
|
1544
|
+
e && /* @__PURE__ */ o(
|
|
1500
1545
|
"div",
|
|
1501
1546
|
{
|
|
1502
1547
|
id: `${n}-clear`,
|
|
1503
1548
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1504
|
-
children: /* @__PURE__ */
|
|
1549
|
+
children: /* @__PURE__ */ o(
|
|
1505
1550
|
x,
|
|
1506
1551
|
{
|
|
1507
1552
|
size: "xSmall",
|
|
@@ -1511,10 +1556,10 @@ const Y = {
|
|
|
1511
1556
|
)
|
|
1512
1557
|
}
|
|
1513
1558
|
),
|
|
1514
|
-
a && /* @__PURE__ */
|
|
1559
|
+
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1515
1560
|
]
|
|
1516
1561
|
}
|
|
1517
|
-
),
|
|
1562
|
+
), f1 = y(m1), V1 = ({
|
|
1518
1563
|
className: d,
|
|
1519
1564
|
clear: e = !1,
|
|
1520
1565
|
error: t = !1,
|
|
@@ -1524,22 +1569,22 @@ const Y = {
|
|
|
1524
1569
|
inputClass: r,
|
|
1525
1570
|
name: i = "",
|
|
1526
1571
|
placeholder: l = "",
|
|
1527
|
-
props:
|
|
1572
|
+
props: c = {},
|
|
1528
1573
|
styles: u = null,
|
|
1529
1574
|
type: m = "text",
|
|
1530
1575
|
value: V,
|
|
1531
|
-
variation:
|
|
1576
|
+
variation: H = "primary"
|
|
1532
1577
|
}) => /* @__PURE__ */ M(
|
|
1533
1578
|
"div",
|
|
1534
1579
|
{
|
|
1535
1580
|
className: p(
|
|
1536
1581
|
"relative textbox",
|
|
1537
|
-
{ [`textbox--${
|
|
1582
|
+
{ [`textbox--${H}`]: H },
|
|
1538
1583
|
d
|
|
1539
1584
|
),
|
|
1540
1585
|
style: u ? { ...u } : null,
|
|
1541
1586
|
children: [
|
|
1542
|
-
n && /* @__PURE__ */
|
|
1587
|
+
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1543
1588
|
x,
|
|
1544
1589
|
{
|
|
1545
1590
|
size: "xSmall",
|
|
@@ -1548,7 +1593,7 @@ const Y = {
|
|
|
1548
1593
|
viewBox: "0 0 24 24"
|
|
1549
1594
|
}
|
|
1550
1595
|
) }),
|
|
1551
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ o(
|
|
1552
1597
|
"input",
|
|
1553
1598
|
{
|
|
1554
1599
|
placeholder: l,
|
|
@@ -1561,21 +1606,21 @@ const Y = {
|
|
|
1561
1606
|
"form-input",
|
|
1562
1607
|
e ? "pr-10" : "pr-4",
|
|
1563
1608
|
n ? "pl-8" : "pl-4",
|
|
1564
|
-
|
|
1609
|
+
c.inputClass ?? "",
|
|
1565
1610
|
r,
|
|
1566
1611
|
{
|
|
1567
1612
|
"field-error": t
|
|
1568
1613
|
}
|
|
1569
1614
|
),
|
|
1570
|
-
...
|
|
1615
|
+
...c
|
|
1571
1616
|
}
|
|
1572
1617
|
),
|
|
1573
|
-
e && /* @__PURE__ */
|
|
1618
|
+
e && /* @__PURE__ */ o(
|
|
1574
1619
|
"div",
|
|
1575
1620
|
{
|
|
1576
1621
|
id: `${s}-clear`,
|
|
1577
1622
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1578
|
-
children: /* @__PURE__ */
|
|
1623
|
+
children: /* @__PURE__ */ o(
|
|
1579
1624
|
x,
|
|
1580
1625
|
{
|
|
1581
1626
|
size: "xSmall",
|
|
@@ -1585,11 +1630,11 @@ const Y = {
|
|
|
1585
1630
|
)
|
|
1586
1631
|
}
|
|
1587
1632
|
),
|
|
1588
|
-
a && /* @__PURE__ */
|
|
1633
|
+
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1589
1634
|
]
|
|
1590
1635
|
}
|
|
1591
|
-
),
|
|
1592
|
-
/* @__PURE__ */
|
|
1636
|
+
), B = y(V1), H1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
1637
|
+
/* @__PURE__ */ o(
|
|
1593
1638
|
"input",
|
|
1594
1639
|
{
|
|
1595
1640
|
type: "checkbox",
|
|
@@ -1598,19 +1643,19 @@ const Y = {
|
|
|
1598
1643
|
...e
|
|
1599
1644
|
}
|
|
1600
1645
|
),
|
|
1601
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ o(
|
|
1602
1647
|
"div",
|
|
1603
1648
|
{
|
|
1604
1649
|
className: `box block h-8 w-14 rounded-full ${d ? "bg-[#365487]" : "bg-black-250"}`
|
|
1605
1650
|
}
|
|
1606
1651
|
),
|
|
1607
|
-
/* @__PURE__ */
|
|
1652
|
+
/* @__PURE__ */ o(
|
|
1608
1653
|
"div",
|
|
1609
1654
|
{
|
|
1610
1655
|
className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
|
|
1611
1656
|
}
|
|
1612
1657
|
)
|
|
1613
|
-
] }) }) }),
|
|
1658
|
+
] }) }) }), n2 = y(H1), C1 = ({
|
|
1614
1659
|
btnClass: d,
|
|
1615
1660
|
btnProps: e = {},
|
|
1616
1661
|
btnTitle: t = "Submit",
|
|
@@ -1621,11 +1666,11 @@ const Y = {
|
|
|
1621
1666
|
titleClass: i,
|
|
1622
1667
|
uppercase: l = !0
|
|
1623
1668
|
}) => {
|
|
1624
|
-
const
|
|
1669
|
+
const c = s || /* @__PURE__ */ M(k, { children: [
|
|
1625
1670
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1626
1671
|
" ",
|
|
1627
|
-
/* @__PURE__ */
|
|
1628
|
-
|
|
1672
|
+
/* @__PURE__ */ o(
|
|
1673
|
+
T,
|
|
1629
1674
|
{
|
|
1630
1675
|
className: p(
|
|
1631
1676
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
@@ -1646,8 +1691,8 @@ const Y = {
|
|
|
1646
1691
|
uppercase: l
|
|
1647
1692
|
}),
|
|
1648
1693
|
children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1650
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4", i), children: r }),
|
|
1695
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: c }),
|
|
1651
1696
|
/* @__PURE__ */ M(
|
|
1652
1697
|
"div",
|
|
1653
1698
|
{
|
|
@@ -1656,8 +1701,8 @@ const Y = {
|
|
|
1656
1701
|
a
|
|
1657
1702
|
),
|
|
1658
1703
|
children: [
|
|
1659
|
-
/* @__PURE__ */
|
|
1660
|
-
|
|
1704
|
+
/* @__PURE__ */ o(
|
|
1705
|
+
B,
|
|
1661
1706
|
{
|
|
1662
1707
|
id: "contact-name",
|
|
1663
1708
|
name: "contact-name",
|
|
@@ -1667,8 +1712,8 @@ const Y = {
|
|
|
1667
1712
|
})
|
|
1668
1713
|
}
|
|
1669
1714
|
),
|
|
1670
|
-
/* @__PURE__ */
|
|
1671
|
-
|
|
1715
|
+
/* @__PURE__ */ o(
|
|
1716
|
+
B,
|
|
1672
1717
|
{
|
|
1673
1718
|
id: "contact-email",
|
|
1674
1719
|
name: "contact-email",
|
|
@@ -1678,8 +1723,8 @@ const Y = {
|
|
|
1678
1723
|
})
|
|
1679
1724
|
}
|
|
1680
1725
|
),
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
|
|
1726
|
+
/* @__PURE__ */ o(
|
|
1727
|
+
f1,
|
|
1683
1728
|
{
|
|
1684
1729
|
id: "contact-message",
|
|
1685
1730
|
name: "contact-message",
|
|
@@ -1689,8 +1734,8 @@ const Y = {
|
|
|
1689
1734
|
})
|
|
1690
1735
|
}
|
|
1691
1736
|
),
|
|
1692
|
-
/* @__PURE__ */
|
|
1693
|
-
|
|
1737
|
+
/* @__PURE__ */ o(
|
|
1738
|
+
T,
|
|
1694
1739
|
{
|
|
1695
1740
|
className: p(
|
|
1696
1741
|
"flex mx-auto items-center",
|
|
@@ -1711,7 +1756,7 @@ const Y = {
|
|
|
1711
1756
|
]
|
|
1712
1757
|
}
|
|
1713
1758
|
);
|
|
1714
|
-
},
|
|
1759
|
+
}, s2 = y(C1), L1 = ({
|
|
1715
1760
|
block: d = !1,
|
|
1716
1761
|
children: e,
|
|
1717
1762
|
className: t,
|
|
@@ -1721,7 +1766,7 @@ const Y = {
|
|
|
1721
1766
|
headerContent: r,
|
|
1722
1767
|
headerClass: i,
|
|
1723
1768
|
list: l = !1,
|
|
1724
|
-
props:
|
|
1769
|
+
props: c = {},
|
|
1725
1770
|
variation: u = "primary"
|
|
1726
1771
|
}) => {
|
|
1727
1772
|
const m = l ? "ul" : "div";
|
|
@@ -1734,10 +1779,10 @@ const Y = {
|
|
|
1734
1779
|
`content-card--${u}`,
|
|
1735
1780
|
t
|
|
1736
1781
|
),
|
|
1737
|
-
...
|
|
1782
|
+
...c,
|
|
1738
1783
|
children: [
|
|
1739
|
-
r && /* @__PURE__ */
|
|
1740
|
-
/* @__PURE__ */
|
|
1784
|
+
r && /* @__PURE__ */ o("div", { className: p("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
|
|
1785
|
+
/* @__PURE__ */ o(
|
|
1741
1786
|
m,
|
|
1742
1787
|
{
|
|
1743
1788
|
className: p("content-card__content", a),
|
|
@@ -1745,11 +1790,11 @@ const Y = {
|
|
|
1745
1790
|
children: e
|
|
1746
1791
|
}
|
|
1747
1792
|
),
|
|
1748
|
-
s && /* @__PURE__ */
|
|
1793
|
+
s && /* @__PURE__ */ o("div", { className: p("content-card__footer", n), children: s })
|
|
1749
1794
|
]
|
|
1750
1795
|
}
|
|
1751
1796
|
);
|
|
1752
|
-
},
|
|
1797
|
+
}, l2 = y(L1), M1 = ({
|
|
1753
1798
|
children: d,
|
|
1754
1799
|
className: e,
|
|
1755
1800
|
colGap: t = 2,
|
|
@@ -1759,7 +1804,7 @@ const Y = {
|
|
|
1759
1804
|
props: r = {},
|
|
1760
1805
|
rowGap: i = 1,
|
|
1761
1806
|
value: l,
|
|
1762
|
-
valueClass:
|
|
1807
|
+
valueClass: c,
|
|
1763
1808
|
wrap: u = !1
|
|
1764
1809
|
}) => /* @__PURE__ */ M(
|
|
1765
1810
|
"div",
|
|
@@ -1779,12 +1824,12 @@ const Y = {
|
|
|
1779
1824
|
},
|
|
1780
1825
|
...r,
|
|
1781
1826
|
children: [
|
|
1782
|
-
n && /* @__PURE__ */
|
|
1783
|
-
l && /* @__PURE__ */
|
|
1827
|
+
n && /* @__PURE__ */ o("div", { className: p("item-label", s), children: n }),
|
|
1828
|
+
l && /* @__PURE__ */ o("div", { className: p("item-value", c), children: l }),
|
|
1784
1829
|
d
|
|
1785
1830
|
]
|
|
1786
1831
|
}
|
|
1787
|
-
),
|
|
1832
|
+
), r2 = y(M1), i2 = ({
|
|
1788
1833
|
breakPage: d = !1,
|
|
1789
1834
|
children: e,
|
|
1790
1835
|
className: t,
|
|
@@ -1806,11 +1851,11 @@ const Y = {
|
|
|
1806
1851
|
),
|
|
1807
1852
|
...n,
|
|
1808
1853
|
children: [
|
|
1809
|
-
s && /* @__PURE__ */
|
|
1854
|
+
s && /* @__PURE__ */ o("h2", { className: p("spacer-title", r), id: i, children: s }),
|
|
1810
1855
|
e
|
|
1811
1856
|
]
|
|
1812
1857
|
}
|
|
1813
|
-
),
|
|
1858
|
+
), c2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: p("stacked-list", e), children: d }), v1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ o(
|
|
1814
1859
|
a,
|
|
1815
1860
|
{
|
|
1816
1861
|
className: p(
|
|
@@ -1824,7 +1869,7 @@ const Y = {
|
|
|
1824
1869
|
),
|
|
1825
1870
|
children: n || e
|
|
1826
1871
|
}
|
|
1827
|
-
), o2 = y(
|
|
1872
|
+
), o2 = y(v1), g1 = {
|
|
1828
1873
|
circular: "circular 3s linear infinite",
|
|
1829
1874
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1830
1875
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1838,17 +1883,17 @@ const Y = {
|
|
|
1838
1883
|
"slide-out-to-right": "slide-out-to-right 0.3s ease-in forwards",
|
|
1839
1884
|
"slide-in-from-right": "slide-in-from-right 0.3s ease-out forwards",
|
|
1840
1885
|
indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
|
|
1841
|
-
},
|
|
1886
|
+
}, b1 = {
|
|
1842
1887
|
map: "var(--map)"
|
|
1843
|
-
},
|
|
1888
|
+
}, y1 = {
|
|
1844
1889
|
"3xs": "0.5rem",
|
|
1845
1890
|
xxs: "0.625rem",
|
|
1846
1891
|
"2.5xl": "1.625rem",
|
|
1847
1892
|
"2.75xl": "1.75rem",
|
|
1848
1893
|
"3.5xl": "2rem"
|
|
1849
|
-
},
|
|
1894
|
+
}, A1 = {
|
|
1850
1895
|
17: "repeat(17, minmax(0, 1fr))"
|
|
1851
|
-
},
|
|
1896
|
+
}, x1 = {
|
|
1852
1897
|
circular: {
|
|
1853
1898
|
"100%": {
|
|
1854
1899
|
transform: "rotate(360deg)"
|
|
@@ -1958,16 +2003,16 @@ const Y = {
|
|
|
1958
2003
|
transform: "translateX(0)"
|
|
1959
2004
|
}
|
|
1960
2005
|
}
|
|
1961
|
-
},
|
|
2006
|
+
}, w1 = {
|
|
1962
2007
|
20: "5rem",
|
|
1963
2008
|
24: "6rem",
|
|
1964
2009
|
28: "7rem",
|
|
1965
2010
|
32: "8rem"
|
|
1966
|
-
},
|
|
2011
|
+
}, S1 = {
|
|
1967
2012
|
aside: "268px",
|
|
1968
2013
|
container: "724px",
|
|
1969
2014
|
page: "1200px"
|
|
1970
|
-
},
|
|
2015
|
+
}, z1 = {
|
|
1971
2016
|
"xs-max": {
|
|
1972
2017
|
max: "639px"
|
|
1973
2018
|
},
|
|
@@ -1985,23 +2030,23 @@ const Y = {
|
|
|
1985
2030
|
max: "1199px"
|
|
1986
2031
|
},
|
|
1987
2032
|
"lg-up": "1200px"
|
|
1988
|
-
},
|
|
2033
|
+
}, k1 = {
|
|
1989
2034
|
0: "0ms",
|
|
1990
2035
|
50: "50ms"
|
|
1991
|
-
},
|
|
2036
|
+
}, N1 = {
|
|
1992
2037
|
"center-top": "center 30%"
|
|
1993
|
-
}, $ = {
|
|
1994
|
-
animation: g1,
|
|
1995
|
-
backgroundImage: v1,
|
|
1996
|
-
fontSize: A1,
|
|
1997
|
-
gridTemplateColumns: y1,
|
|
1998
|
-
keyframes: b1,
|
|
1999
|
-
margin: x1,
|
|
2000
|
-
maxWidth: w1,
|
|
2001
|
-
screens: S1,
|
|
2002
|
-
transitionDuration: z1,
|
|
2003
|
-
transformOrigin: k1
|
|
2004
2038
|
}, q = {
|
|
2039
|
+
animation: g1,
|
|
2040
|
+
backgroundImage: b1,
|
|
2041
|
+
fontSize: y1,
|
|
2042
|
+
gridTemplateColumns: A1,
|
|
2043
|
+
keyframes: x1,
|
|
2044
|
+
margin: w1,
|
|
2045
|
+
maxWidth: S1,
|
|
2046
|
+
screens: z1,
|
|
2047
|
+
transitionDuration: k1,
|
|
2048
|
+
transformOrigin: N1
|
|
2049
|
+
}, P = {
|
|
2005
2050
|
black: {
|
|
2006
2051
|
50: "#FCFCFC",
|
|
2007
2052
|
100: "#F9F9F9",
|
|
@@ -2111,7 +2156,7 @@ const Y = {
|
|
|
2111
2156
|
current: "currentColor",
|
|
2112
2157
|
transparent: "transparent",
|
|
2113
2158
|
white: "#fff"
|
|
2114
|
-
},
|
|
2159
|
+
}, j = {
|
|
2115
2160
|
blue: {
|
|
2116
2161
|
100: "hsl(240 42% 22%)",
|
|
2117
2162
|
60: "hsl(240 24% 34%)",
|
|
@@ -2129,9 +2174,9 @@ const Y = {
|
|
|
2129
2174
|
purple: "hsl(279 85% 57%)",
|
|
2130
2175
|
white: "hsl(0 0% 100%)",
|
|
2131
2176
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2132
|
-
},
|
|
2133
|
-
...
|
|
2134
|
-
...
|
|
2177
|
+
}, d2 = {
|
|
2178
|
+
...P,
|
|
2179
|
+
...j
|
|
2135
2180
|
}, Z1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2136
2181
|
{
|
|
2137
2182
|
aspect: (t) => ({
|
|
@@ -2153,7 +2198,7 @@ const Y = {
|
|
|
2153
2198
|
})
|
|
2154
2199
|
},
|
|
2155
2200
|
{ values: e("aspectRatio") }
|
|
2156
|
-
),
|
|
2201
|
+
), E1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2157
2202
|
{
|
|
2158
2203
|
"animation-delay": (t) => ({
|
|
2159
2204
|
"animation-delay": t
|
|
@@ -2162,15 +2207,15 @@ const Y = {
|
|
|
2162
2207
|
{
|
|
2163
2208
|
values: e("transitionDelay")
|
|
2164
2209
|
}
|
|
2165
|
-
),
|
|
2210
|
+
), F1 = ({ matchUtilities: d }) => d({
|
|
2166
2211
|
"max-inline": (e) => ({
|
|
2167
2212
|
"max-inline-size": e
|
|
2168
2213
|
})
|
|
2169
|
-
}),
|
|
2214
|
+
}), D1 = ({ matchUtilities: d }) => d({
|
|
2170
2215
|
"max-block": (e) => ({
|
|
2171
2216
|
"max-block-size": e
|
|
2172
2217
|
})
|
|
2173
|
-
}),
|
|
2218
|
+
}), $ = ({
|
|
2174
2219
|
addUtilities: d,
|
|
2175
2220
|
e,
|
|
2176
2221
|
classPrefix: t = "",
|
|
@@ -2181,24 +2226,24 @@ const Y = {
|
|
|
2181
2226
|
weightProps: i = null
|
|
2182
2227
|
}) => {
|
|
2183
2228
|
const l = {};
|
|
2184
|
-
Object.entries(s).forEach(([
|
|
2229
|
+
Object.entries(s).forEach(([c, u]) => {
|
|
2185
2230
|
const m = {
|
|
2186
2231
|
"font-size": u,
|
|
2187
2232
|
...a
|
|
2188
|
-
}, V = `.${e(`${t}-${
|
|
2233
|
+
}, V = `.${e(`${t}-${c}`)}`, H = n ? n({ sizeKey: c, sizeValue: u }) : {};
|
|
2189
2234
|
l[V] = {
|
|
2190
2235
|
...m,
|
|
2191
|
-
...
|
|
2192
|
-
}, Object.entries(r).forEach(([
|
|
2193
|
-
const A = `.${e(`${t}-${
|
|
2236
|
+
...H
|
|
2237
|
+
}, Object.entries(r).forEach(([v, f]) => {
|
|
2238
|
+
const A = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: u, weightKey: v, weightValue: f }) : {};
|
|
2194
2239
|
l[A] = {
|
|
2195
2240
|
...m,
|
|
2196
|
-
"font-weight":
|
|
2241
|
+
"font-weight": f,
|
|
2197
2242
|
...h
|
|
2198
2243
|
};
|
|
2199
2244
|
});
|
|
2200
2245
|
}), d(l);
|
|
2201
|
-
},
|
|
2246
|
+
}, R = {
|
|
2202
2247
|
aspectRatio: !1,
|
|
2203
2248
|
backdropBlur: !1,
|
|
2204
2249
|
backdropBrightness: !1,
|
|
@@ -2262,7 +2307,7 @@ const Y = {
|
|
|
2262
2307
|
textOpacity: !1,
|
|
2263
2308
|
textUnderlineOffset: !1,
|
|
2264
2309
|
touchAction: !1
|
|
2265
|
-
},
|
|
2310
|
+
}, W = [
|
|
2266
2311
|
({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
|
|
2267
2312
|
const n = ["2", "5"], s = {
|
|
2268
2313
|
light: "300",
|
|
@@ -2284,7 +2329,7 @@ const Y = {
|
|
|
2284
2329
|
2: "0.813rem",
|
|
2285
2330
|
3: "0.75rem"
|
|
2286
2331
|
};
|
|
2287
|
-
|
|
2332
|
+
$({
|
|
2288
2333
|
addUtilities: d,
|
|
2289
2334
|
e: a,
|
|
2290
2335
|
classPrefix: "header",
|
|
@@ -2296,30 +2341,30 @@ const Y = {
|
|
|
2296
2341
|
}),
|
|
2297
2342
|
sizes: r,
|
|
2298
2343
|
weights: s
|
|
2299
|
-
}),
|
|
2344
|
+
}), $({
|
|
2300
2345
|
addUtilities: d,
|
|
2301
2346
|
e: a,
|
|
2302
2347
|
classPrefix: "text-body",
|
|
2303
2348
|
sizes: i,
|
|
2304
2349
|
weights: s
|
|
2305
|
-
}), Z1({ matchUtilities: e, theme: t }),
|
|
2350
|
+
}), Z1({ matchUtilities: e, theme: t }), E1({ matchUtilities: e, theme: t }), F1({ matchUtilities: e }), D1({ matchUtilities: e });
|
|
2306
2351
|
}
|
|
2307
|
-
],
|
|
2352
|
+
], h2 = {
|
|
2308
2353
|
theme: {
|
|
2309
|
-
extend:
|
|
2310
|
-
colors:
|
|
2354
|
+
extend: q,
|
|
2355
|
+
colors: P
|
|
2311
2356
|
},
|
|
2312
|
-
plugins:
|
|
2313
|
-
corePlugins:
|
|
2314
|
-
},
|
|
2357
|
+
plugins: W,
|
|
2358
|
+
corePlugins: R
|
|
2359
|
+
}, u2 = {
|
|
2315
2360
|
theme: {
|
|
2316
|
-
extend:
|
|
2317
|
-
colors:
|
|
2361
|
+
extend: q,
|
|
2362
|
+
colors: j
|
|
2318
2363
|
},
|
|
2319
|
-
plugins:
|
|
2320
|
-
corePlugins:
|
|
2364
|
+
plugins: W,
|
|
2365
|
+
corePlugins: R
|
|
2321
2366
|
};
|
|
2322
|
-
function
|
|
2367
|
+
function O1(d, e = []) {
|
|
2323
2368
|
return new Proxy(d, {
|
|
2324
2369
|
get: function(t, a) {
|
|
2325
2370
|
return t[a];
|
|
@@ -2330,17 +2375,17 @@ function D1(d, e = []) {
|
|
|
2330
2375
|
}
|
|
2331
2376
|
});
|
|
2332
2377
|
}
|
|
2333
|
-
function
|
|
2378
|
+
function p2(d, e = []) {
|
|
2334
2379
|
e.length && (d == null || d.classList.add(...e));
|
|
2335
2380
|
}
|
|
2336
|
-
function
|
|
2381
|
+
function m2(d, e = []) {
|
|
2337
2382
|
e.length && (d == null || d.classList.remove(...e));
|
|
2338
2383
|
}
|
|
2339
|
-
function
|
|
2384
|
+
function f2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2340
2385
|
let s = !0;
|
|
2341
2386
|
for (const [r, i] of t.entries()) {
|
|
2342
|
-
const l = e.querySelector(`[name="${r}"]`),
|
|
2343
|
-
|
|
2387
|
+
const l = e.querySelector(`[name="${r}"]`), c = a[r], u = [];
|
|
2388
|
+
c.forEach((m) => {
|
|
2344
2389
|
m.isValid(i) || u.push(m.message);
|
|
2345
2390
|
}), u.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (m) => {
|
|
2346
2391
|
m.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
@@ -2348,21 +2393,21 @@ function m2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
|
2348
2393
|
}
|
|
2349
2394
|
return s;
|
|
2350
2395
|
}
|
|
2351
|
-
function
|
|
2396
|
+
function V2(d) {
|
|
2352
2397
|
const e = (
|
|
2353
2398
|
// eslint-disable-next-line
|
|
2354
2399
|
/(?:[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])+)\])/
|
|
2355
2400
|
), t = /[^a-zA-Z]+$/;
|
|
2356
2401
|
return e.test(d.toLowerCase()) && !t.test(d);
|
|
2357
2402
|
}
|
|
2358
|
-
class
|
|
2403
|
+
class H2 {
|
|
2359
2404
|
init(e) {
|
|
2360
2405
|
this.handleSliders(e);
|
|
2361
2406
|
}
|
|
2362
2407
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
2363
2408
|
if (!document.getElementById(`slider-container-${t}`))
|
|
2364
2409
|
return;
|
|
2365
|
-
const n =
|
|
2410
|
+
const n = O1(
|
|
2366
2411
|
{
|
|
2367
2412
|
activeIndex: 0,
|
|
2368
2413
|
computedSlides: [],
|
|
@@ -2401,12 +2446,12 @@ class V2 {
|
|
|
2401
2446
|
(l) => l.isIntersecting === !0
|
|
2402
2447
|
);
|
|
2403
2448
|
s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
|
|
2404
|
-
const
|
|
2405
|
-
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(
|
|
2449
|
+
const c = [...a.slides].indexOf(l.target);
|
|
2450
|
+
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, i(l));
|
|
2406
2451
|
}));
|
|
2407
2452
|
function i(l) {
|
|
2408
|
-
var
|
|
2409
|
-
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((
|
|
2453
|
+
var c;
|
|
2454
|
+
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(l.target));
|
|
2410
2455
|
}
|
|
2411
2456
|
}
|
|
2412
2457
|
btnListeners(e) {
|
|
@@ -2433,7 +2478,7 @@ class V2 {
|
|
|
2433
2478
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2434
2479
|
`#btn-right-${a}`
|
|
2435
2480
|
);
|
|
2436
|
-
const i = t.map((
|
|
2481
|
+
const i = t.map((c) => n(c)).join(""), l = document.createElement("div");
|
|
2437
2482
|
l.innerHTML = `${s}${i}${r}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
|
|
2438
2483
|
}
|
|
2439
2484
|
showHideBtns(e, t, a) {
|
|
@@ -2444,10 +2489,10 @@ class V2 {
|
|
|
2444
2489
|
}
|
|
2445
2490
|
}
|
|
2446
2491
|
}
|
|
2447
|
-
class
|
|
2492
|
+
class C {
|
|
2448
2493
|
static calcCrow(e, t, a, n) {
|
|
2449
|
-
const r =
|
|
2450
|
-
e =
|
|
2494
|
+
const r = C.toRad(a - e), i = C.toRad(n - t);
|
|
2495
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
2451
2496
|
const l = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2452
2497
|
return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
|
|
2453
2498
|
}
|
|
@@ -2462,9 +2507,9 @@ class H {
|
|
|
2462
2507
|
return;
|
|
2463
2508
|
window.dataLayer = window.dataLayer || [];
|
|
2464
2509
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2465
|
-
typeof
|
|
2510
|
+
typeof C == "function" && t.forEach((a) => {
|
|
2466
2511
|
a.addEventListener("click", () => {
|
|
2467
|
-
|
|
2512
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
2468
2513
|
});
|
|
2469
2514
|
});
|
|
2470
2515
|
}
|
|
@@ -2496,20 +2541,20 @@ class H {
|
|
|
2496
2541
|
}
|
|
2497
2542
|
const {
|
|
2498
2543
|
isHeads: l = null,
|
|
2499
|
-
isLoggedIn:
|
|
2544
|
+
isLoggedIn: c = null,
|
|
2500
2545
|
url: u = null,
|
|
2501
2546
|
ip: m = null,
|
|
2502
2547
|
sessionId: V = null,
|
|
2503
|
-
user:
|
|
2504
|
-
} = (window == null ? void 0 : window.options) ?? {}, { id:
|
|
2505
|
-
t.userId = s ??
|
|
2548
|
+
user: H = null
|
|
2549
|
+
} = (window == null ? void 0 : window.options) ?? {}, { id: v = null } = H ?? {};
|
|
2550
|
+
t.userId = s ?? v, t.isHeads = l, t.isLoggedIn = c, t.url = u, await C.createData(
|
|
2506
2551
|
"/api/event",
|
|
2507
2552
|
{
|
|
2508
2553
|
payload: {
|
|
2509
2554
|
data: t,
|
|
2510
2555
|
type: a,
|
|
2511
2556
|
name: n,
|
|
2512
|
-
userId: s ??
|
|
2557
|
+
userId: s ?? v,
|
|
2513
2558
|
url: window.location.href,
|
|
2514
2559
|
ip: m,
|
|
2515
2560
|
sessionId: V,
|
|
@@ -2522,7 +2567,7 @@ class H {
|
|
|
2522
2567
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2523
2568
|
if (!t)
|
|
2524
2569
|
return null;
|
|
2525
|
-
const s = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ??
|
|
2570
|
+
const s = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
|
|
2526
2571
|
try {
|
|
2527
2572
|
const i = await fetch(e, {
|
|
2528
2573
|
method: "POST",
|
|
@@ -2550,7 +2595,7 @@ class H {
|
|
|
2550
2595
|
}
|
|
2551
2596
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2552
2597
|
try {
|
|
2553
|
-
return await
|
|
2598
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
2554
2599
|
} catch (t) {
|
|
2555
2600
|
console.error("deleteSearchValue", t.message);
|
|
2556
2601
|
}
|
|
@@ -2598,17 +2643,20 @@ class H {
|
|
|
2598
2643
|
once: !0
|
|
2599
2644
|
});
|
|
2600
2645
|
}
|
|
2601
|
-
static async fetchData(e, t = !1, a =
|
|
2646
|
+
static async fetchData(e, t = !1, a = null) {
|
|
2602
2647
|
const n = e.replace("#", "").replace("%23", "");
|
|
2603
2648
|
try {
|
|
2604
|
-
const s =
|
|
2649
|
+
const s = { method: "GET" };
|
|
2650
|
+
a && (s.signal = a);
|
|
2651
|
+
const r = await fetch(n, s);
|
|
2605
2652
|
if (t === !0) {
|
|
2606
|
-
const
|
|
2607
|
-
return
|
|
2653
|
+
const l = await r.text();
|
|
2654
|
+
return l ? l.replace("__next", "") : null;
|
|
2608
2655
|
}
|
|
2609
|
-
const
|
|
2610
|
-
return
|
|
2656
|
+
const i = r.headers.get("content-type");
|
|
2657
|
+
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
2611
2658
|
} catch (s) {
|
|
2659
|
+
if ((s == null ? void 0 : s.name) === "AbortError") throw s;
|
|
2612
2660
|
console.error("fetchData", s, e);
|
|
2613
2661
|
}
|
|
2614
2662
|
return null;
|
|
@@ -2619,8 +2667,8 @@ class H {
|
|
|
2619
2667
|
}
|
|
2620
2668
|
static formatDate(e = null) {
|
|
2621
2669
|
return e ? (e = new Date(e), [
|
|
2622
|
-
|
|
2623
|
-
|
|
2670
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
2671
|
+
C.padTo2Digits(e.getDate()),
|
|
2624
2672
|
e.getFullYear()
|
|
2625
2673
|
].join("-")) : null;
|
|
2626
2674
|
}
|
|
@@ -2690,17 +2738,17 @@ class H {
|
|
|
2690
2738
|
if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
|
|
2691
2739
|
return r;
|
|
2692
2740
|
try {
|
|
2693
|
-
const u = await (await fetch("/api/client-headers")).json(), m = (u == null ? void 0 : u.sessionId) ?? "noSessionId", V = (u == null ? void 0 : u.ip) ?? null,
|
|
2741
|
+
const u = await (await fetch("/api/client-headers")).json(), m = (u == null ? void 0 : u.sessionId) ?? "noSessionId", V = (u == null ? void 0 : u.ip) ?? null, H = e * 1e3;
|
|
2694
2742
|
return localStorage.setItem(
|
|
2695
2743
|
i,
|
|
2696
2744
|
JSON.stringify({
|
|
2697
2745
|
tolken: m,
|
|
2698
2746
|
ip: V,
|
|
2699
|
-
expire: (/* @__PURE__ */ new Date()).getTime() +
|
|
2747
|
+
expire: (/* @__PURE__ */ new Date()).getTime() + H
|
|
2700
2748
|
})
|
|
2701
2749
|
), { tolken: m, ip: V, userAgent: t, platform: s };
|
|
2702
|
-
} catch (
|
|
2703
|
-
console.error("getHeaders",
|
|
2750
|
+
} catch (c) {
|
|
2751
|
+
console.error("getHeaders", c);
|
|
2704
2752
|
}
|
|
2705
2753
|
return r;
|
|
2706
2754
|
}
|
|
@@ -2711,19 +2759,19 @@ class H {
|
|
|
2711
2759
|
}[e];
|
|
2712
2760
|
}
|
|
2713
2761
|
static async getLocationData(e) {
|
|
2714
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2715
|
-
return await
|
|
2762
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2763
|
+
return await C.fetchData("/api/client?query=" + r);
|
|
2716
2764
|
}
|
|
2717
2765
|
static getReportUrl(e, t = null) {
|
|
2718
|
-
var l,
|
|
2719
|
-
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((
|
|
2766
|
+
var l, c, u;
|
|
2767
|
+
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2720
2768
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2721
2769
|
const i = [r, "-piq", t].filter((m) => m).join("");
|
|
2722
|
-
return "/" + [a, n, s].filter((m) => m).map((m) =>
|
|
2770
|
+
return "/" + [a, n, s].filter((m) => m).map((m) => C.toSlug(m)).join("/") + "/" + i;
|
|
2723
2771
|
}
|
|
2724
2772
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2725
2773
|
try {
|
|
2726
|
-
return await
|
|
2774
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
2727
2775
|
} catch (t) {
|
|
2728
2776
|
console.error("getSearchValue", t.message);
|
|
2729
2777
|
}
|
|
@@ -2851,7 +2899,7 @@ class H {
|
|
|
2851
2899
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2852
2900
|
return null;
|
|
2853
2901
|
try {
|
|
2854
|
-
return await
|
|
2902
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
2855
2903
|
} catch (t) {
|
|
2856
2904
|
console.error("getUser", t.message);
|
|
2857
2905
|
}
|
|
@@ -2867,7 +2915,7 @@ class H {
|
|
|
2867
2915
|
uuid: t
|
|
2868
2916
|
}
|
|
2869
2917
|
});
|
|
2870
|
-
return await
|
|
2918
|
+
return await C.fetchData(
|
|
2871
2919
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2872
2920
|
);
|
|
2873
2921
|
}
|
|
@@ -2889,7 +2937,7 @@ class H {
|
|
|
2889
2937
|
const i = document.createElement("div");
|
|
2890
2938
|
return setTimeout(() => {
|
|
2891
2939
|
r(null, i);
|
|
2892
|
-
const { se: l, nw:
|
|
2940
|
+
const { se: l, nw: c } = n.getGridBounds({
|
|
2893
2941
|
map: e,
|
|
2894
2942
|
tileSize: this.getTileSize(),
|
|
2895
2943
|
coords: s
|
|
@@ -2897,8 +2945,8 @@ class H {
|
|
|
2897
2945
|
t({
|
|
2898
2946
|
swLat: l.lat,
|
|
2899
2947
|
neLng: l.lng,
|
|
2900
|
-
neLat:
|
|
2901
|
-
swLng:
|
|
2948
|
+
neLat: c.lat,
|
|
2949
|
+
swLng: c.lng,
|
|
2902
2950
|
coords: s,
|
|
2903
2951
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2904
2952
|
});
|
|
@@ -2929,7 +2977,7 @@ class H {
|
|
|
2929
2977
|
selfClose: r = !1,
|
|
2930
2978
|
target: i = null
|
|
2931
2979
|
}) {
|
|
2932
|
-
const l = i ? document.querySelectorAll(i) : [],
|
|
2980
|
+
const l = i ? document.querySelectorAll(i) : [], c = document.getElementById(`${t}-dialog`), u = r ? c == null ? void 0 : c.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), m = [
|
|
2933
2981
|
"closing",
|
|
2934
2982
|
"closed",
|
|
2935
2983
|
"opening",
|
|
@@ -2937,63 +2985,63 @@ class H {
|
|
|
2937
2985
|
"outside",
|
|
2938
2986
|
"removed"
|
|
2939
2987
|
].reduce(
|
|
2940
|
-
(h,
|
|
2988
|
+
(h, g) => ({
|
|
2941
2989
|
...h,
|
|
2942
|
-
[
|
|
2990
|
+
[g]: new Event(g)
|
|
2943
2991
|
}),
|
|
2944
2992
|
{}
|
|
2945
|
-
), V = new MutationObserver((h,
|
|
2946
|
-
h.forEach(async (
|
|
2947
|
-
if (
|
|
2948
|
-
const
|
|
2949
|
-
if (!(
|
|
2950
|
-
|
|
2993
|
+
), V = new MutationObserver((h, g) => {
|
|
2994
|
+
h.forEach(async (w) => {
|
|
2995
|
+
if (w.attributeName === "open") {
|
|
2996
|
+
const b = w.target;
|
|
2997
|
+
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2998
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(m.opening), b && await A(b), b == null || b.dispatchEvent(m.opened);
|
|
2951
2999
|
}
|
|
2952
3000
|
});
|
|
2953
|
-
}),
|
|
2954
|
-
h.forEach((
|
|
2955
|
-
|
|
2956
|
-
|
|
3001
|
+
}), H = new MutationObserver((h, g) => {
|
|
3002
|
+
h.forEach((w) => {
|
|
3003
|
+
w.removedNodes.forEach((b) => {
|
|
3004
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", f), b.removeEventListener("close", v), b.dispatchEvent(m.removed), H == null || H.disconnect(), V == null || V.disconnect());
|
|
2957
3005
|
});
|
|
2958
3006
|
});
|
|
2959
3007
|
});
|
|
2960
|
-
|
|
3008
|
+
c && (V.observe(c, {
|
|
2961
3009
|
attributes: !0
|
|
2962
|
-
}),
|
|
3010
|
+
}), H.observe(document.body, {
|
|
2963
3011
|
attributes: !1,
|
|
2964
3012
|
subtree: !1,
|
|
2965
3013
|
childList: !0
|
|
2966
3014
|
}));
|
|
2967
|
-
const
|
|
2968
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(m.closed);
|
|
2969
|
-
},
|
|
2970
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside),
|
|
3015
|
+
const v = async ({ target: h }) => {
|
|
3016
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.removeAttribute("inert"), h == null || h.dispatchEvent(m.closed);
|
|
3017
|
+
}, f = async ({ target: h }) => {
|
|
3018
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside), c == null || c.close("outside"));
|
|
2971
3019
|
}, A = (h) => Promise.allSettled(
|
|
2972
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
3020
|
+
h == null ? void 0 : h.getAnimations().map((g) => g == null ? void 0 : g.finished)
|
|
2973
3021
|
);
|
|
2974
|
-
return !e && (
|
|
2975
|
-
await
|
|
2976
|
-
}), e && (
|
|
3022
|
+
return !e && (c == null || c.addEventListener("click", f)), c == null || c.addEventListener("close", async (h) => {
|
|
3023
|
+
await v({ target: h.target }), a && a(h, c);
|
|
3024
|
+
}), e && (c == null || c.addEventListener("cancel", async (h) => {
|
|
2977
3025
|
h.key === "Escape" && h.preventDefault();
|
|
2978
|
-
})), e && (
|
|
3026
|
+
})), e && (c == null || c.addEventListener("keydown", (h) => {
|
|
2979
3027
|
h.key === "Escape" && h.preventDefault();
|
|
2980
|
-
})), n && (
|
|
2981
|
-
n(h,
|
|
3028
|
+
})), n && (c == null || c.addEventListener("open", async (h) => {
|
|
3029
|
+
n(h, c);
|
|
2982
3030
|
})), l == null || l.forEach((h) => {
|
|
2983
|
-
h.addEventListener("click", (
|
|
2984
|
-
|
|
3031
|
+
h.addEventListener("click", (g) => {
|
|
3032
|
+
c == null || c.showModal(), s && s(g, c);
|
|
2985
3033
|
});
|
|
2986
3034
|
}), u == null || u.forEach((h) => {
|
|
2987
|
-
h.addEventListener("click", async (
|
|
2988
|
-
|
|
3035
|
+
h.addEventListener("click", async (g) => {
|
|
3036
|
+
c == null || c.close("close");
|
|
2989
3037
|
});
|
|
2990
3038
|
}), {
|
|
2991
3039
|
activators: l,
|
|
2992
|
-
ref:
|
|
3040
|
+
ref: c
|
|
2993
3041
|
};
|
|
2994
3042
|
}
|
|
2995
3043
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2996
|
-
return
|
|
3044
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2997
3045
|
}
|
|
2998
3046
|
static initObserver(e, t, a = null) {
|
|
2999
3047
|
if (!e)
|
|
@@ -3052,7 +3100,7 @@ class H {
|
|
|
3052
3100
|
url: n,
|
|
3053
3101
|
data: s
|
|
3054
3102
|
};
|
|
3055
|
-
return await
|
|
3103
|
+
return await C.createData("/api/client?query=log/save&method=POST", r), null;
|
|
3056
3104
|
}
|
|
3057
3105
|
static loadAds() {
|
|
3058
3106
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -3070,7 +3118,7 @@ class H {
|
|
|
3070
3118
|
if (e) {
|
|
3071
3119
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
3072
3120
|
try {
|
|
3073
|
-
return await
|
|
3121
|
+
return await C.injectScript({
|
|
3074
3122
|
src: s,
|
|
3075
3123
|
id: t || e,
|
|
3076
3124
|
async: !1,
|
|
@@ -3086,11 +3134,11 @@ class H {
|
|
|
3086
3134
|
if (window.options.googleMapsLoaded === !0)
|
|
3087
3135
|
return;
|
|
3088
3136
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
3089
|
-
await
|
|
3137
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
3090
3138
|
}
|
|
3091
3139
|
static async loadLeafletApi() {
|
|
3092
3140
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
3093
|
-
await
|
|
3141
|
+
await C.injectLink({ href: t, id: "leafletCss" }), await C.injectLink({ href: n, id: "gestureCss" }), await C.injectScript({ src: e, id: "leafletJs", async: !1 }), await C.injectScript({
|
|
3094
3142
|
src: a,
|
|
3095
3143
|
id: "gestureJs",
|
|
3096
3144
|
async: !1
|
|
@@ -3105,7 +3153,7 @@ class H {
|
|
|
3105
3153
|
}
|
|
3106
3154
|
static async loadSwiper() {
|
|
3107
3155
|
const e = "/slider/swiper-bundle.min.js";
|
|
3108
|
-
await
|
|
3156
|
+
await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
3109
3157
|
}
|
|
3110
3158
|
static money(e, t = "", a = 0) {
|
|
3111
3159
|
return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
|
|
@@ -3130,14 +3178,14 @@ class H {
|
|
|
3130
3178
|
min: r = null,
|
|
3131
3179
|
max: i = null,
|
|
3132
3180
|
city: l = null,
|
|
3133
|
-
state:
|
|
3181
|
+
state: c = null,
|
|
3134
3182
|
vin: u = null,
|
|
3135
3183
|
license: m = null,
|
|
3136
3184
|
token: V = null,
|
|
3137
|
-
phone:
|
|
3138
|
-
} = e || {},
|
|
3185
|
+
phone: H = null
|
|
3186
|
+
} = e || {}, v = t && t !== "", f = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
|
|
3139
3187
|
let h = [];
|
|
3140
|
-
return t && t !== "" && h.push("name=" + t),
|
|
3188
|
+
return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), f && A ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (f && h.push("min=" + r), A && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), l && l !== "" && h.push("city=" + l), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), c && c !== "" && h.push("state=" + c), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3141
3189
|
}
|
|
3142
3190
|
static padTo2Digits(e) {
|
|
3143
3191
|
return e.toString().padStart(2, "0");
|
|
@@ -3149,32 +3197,33 @@ class H {
|
|
|
3149
3197
|
return [];
|
|
3150
3198
|
const {
|
|
3151
3199
|
addressesOnly: a = !1,
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3200
|
+
isOptOutSearch: n = !1,
|
|
3201
|
+
isSandboxAccount: s = !1,
|
|
3202
|
+
signal: r = null,
|
|
3203
|
+
state: i = "",
|
|
3204
|
+
useAmazonOverride: l = !1,
|
|
3205
|
+
useCitySearch: c = !1,
|
|
3206
|
+
useCityStateSearch: u = !1,
|
|
3207
|
+
useGoogle: m = !1,
|
|
3208
|
+
useGoogleOverride: V = !1,
|
|
3209
|
+
useLocation: H = !0,
|
|
3210
|
+
useSearch: v = !1
|
|
3211
|
+
} = t ?? {}, A = [
|
|
3163
3212
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3164
3213
|
"addressesOnly=" + a,
|
|
3165
|
-
"useSearch=" +
|
|
3166
|
-
"useCitySearch=" +
|
|
3167
|
-
"useCityStateSearch=" +
|
|
3168
|
-
"useLocation=" +
|
|
3169
|
-
"useGoogle=" +
|
|
3170
|
-
"useGoogleOverride=" +
|
|
3171
|
-
"useAmazonOverride=" +
|
|
3172
|
-
"isSandboxAccount=" +
|
|
3173
|
-
"isOptOutSearch=" +
|
|
3214
|
+
"useSearch=" + v,
|
|
3215
|
+
"useCitySearch=" + c,
|
|
3216
|
+
"useCityStateSearch=" + u,
|
|
3217
|
+
"useLocation=" + H,
|
|
3218
|
+
"useGoogle=" + m,
|
|
3219
|
+
"useGoogleOverride=" + V,
|
|
3220
|
+
"useAmazonOverride=" + l,
|
|
3221
|
+
"isSandboxAccount=" + s,
|
|
3222
|
+
"isOptOutSearch=" + n
|
|
3174
3223
|
];
|
|
3175
|
-
|
|
3176
|
-
const
|
|
3177
|
-
return await
|
|
3224
|
+
i && i !== "" && !u && A.push("state=" + i);
|
|
3225
|
+
const h = A.join("&"), w = (c || u ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
|
|
3226
|
+
return await C.fetchData(w, !1, r);
|
|
3178
3227
|
}
|
|
3179
3228
|
static removeElements(e) {
|
|
3180
3229
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3193,7 +3242,7 @@ class H {
|
|
|
3193
3242
|
});
|
|
3194
3243
|
}
|
|
3195
3244
|
static searchInStates(e) {
|
|
3196
|
-
const t =
|
|
3245
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
3197
3246
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3198
3247
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3199
3248
|
}
|
|
@@ -3201,7 +3250,7 @@ class H {
|
|
|
3201
3250
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3202
3251
|
}
|
|
3203
3252
|
static setBoundsEntries(e, t = "bounds") {
|
|
3204
|
-
const a =
|
|
3253
|
+
const a = C.getBoundsEntries(t);
|
|
3205
3254
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3206
3255
|
}
|
|
3207
3256
|
static async setCityState(e = null) {
|
|
@@ -3210,7 +3259,7 @@ class H {
|
|
|
3210
3259
|
return e;
|
|
3211
3260
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3212
3261
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3213
|
-
if (
|
|
3262
|
+
if (C.getStates(), a && !n) {
|
|
3214
3263
|
const s = this.searchInStates(a);
|
|
3215
3264
|
s && (a = null, n = s.short);
|
|
3216
3265
|
}
|
|
@@ -3235,9 +3284,9 @@ class H {
|
|
|
3235
3284
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3236
3285
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3237
3286
|
try {
|
|
3238
|
-
const r = e.map(({ fileName:
|
|
3239
|
-
i.forEach((
|
|
3240
|
-
|
|
3287
|
+
const r = e.map(({ fileName: c, initFunctionName: u }) => import(`${n}${s}${c}?v=${a}`)), i = await Promise.all(r), l = [];
|
|
3288
|
+
i.forEach((c, u) => {
|
|
3289
|
+
c && typeof c[e[u].initFunctionName] == "function" ? l.push(c[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
|
|
3241
3290
|
}), l.length > 0 && await Promise.all(l);
|
|
3242
3291
|
} catch (r) {
|
|
3243
3292
|
console.error("Failed to load one or more search modules:", r);
|
|
@@ -3245,7 +3294,7 @@ class H {
|
|
|
3245
3294
|
}
|
|
3246
3295
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3247
3296
|
const n = JSON.stringify(e);
|
|
3248
|
-
localStorage.setItem(t, n), typeof clarity == "function" && clarity("set", t, n.substring(0, 255)), await
|
|
3297
|
+
localStorage.setItem(t, n), typeof clarity == "function" && clarity("set", t, n.substring(0, 255)), await C.createData(
|
|
3249
3298
|
`/api/cookie/create?name=${t}`,
|
|
3250
3299
|
e,
|
|
3251
3300
|
!0,
|
|
@@ -3277,7 +3326,7 @@ class H {
|
|
|
3277
3326
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3278
3327
|
}
|
|
3279
3328
|
static useLayerTitle(e, t) {
|
|
3280
|
-
const a =
|
|
3329
|
+
const a = C.getLayerTitle(e);
|
|
3281
3330
|
L.tileLayer(a, {
|
|
3282
3331
|
maxNativeZoom: 19,
|
|
3283
3332
|
maxZoom: 25,
|
|
@@ -3286,7 +3335,7 @@ class H {
|
|
|
3286
3335
|
}).addTo(t);
|
|
3287
3336
|
}
|
|
3288
3337
|
static ucWords(e) {
|
|
3289
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3338
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
3290
3339
|
}
|
|
3291
3340
|
/**
|
|
3292
3341
|
* HOW TO USE EVENTS
|
|
@@ -3329,44 +3378,44 @@ class H {
|
|
|
3329
3378
|
}
|
|
3330
3379
|
}
|
|
3331
3380
|
export {
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3381
|
+
$1 as Accordion,
|
|
3382
|
+
q1 as Alert,
|
|
3383
|
+
P1 as Autocomplete,
|
|
3384
|
+
j1 as Badge,
|
|
3385
|
+
T as Button,
|
|
3386
|
+
H2 as CardSlider,
|
|
3387
|
+
R1 as Checkbox,
|
|
3388
|
+
C as Common,
|
|
3389
|
+
s2 as ContactForm,
|
|
3390
|
+
l2 as ContentCard,
|
|
3391
|
+
W1 as Dialog,
|
|
3392
|
+
U1 as Dots,
|
|
3393
|
+
r2 as FlexItem,
|
|
3345
3394
|
o2 as FunnelHeader,
|
|
3346
3395
|
x as Icon,
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3396
|
+
G1 as LoadingBar,
|
|
3397
|
+
J1 as Popover,
|
|
3398
|
+
Q1 as ProcessingSpinner,
|
|
3399
|
+
Y1 as ProgressBar,
|
|
3400
|
+
X1 as Radio,
|
|
3401
|
+
_1 as Select,
|
|
3402
|
+
K1 as Skeleton,
|
|
3403
|
+
e2 as Slider,
|
|
3404
|
+
i2 as Spacer,
|
|
3405
|
+
t2 as Spinner,
|
|
3406
|
+
c2 as StackedListItem,
|
|
3407
|
+
a2 as Stars,
|
|
3408
|
+
f1 as TextArea,
|
|
3409
|
+
B as Textbox,
|
|
3410
|
+
n2 as Toggle,
|
|
3411
|
+
p2 as addClass,
|
|
3412
|
+
d2 as colors,
|
|
3413
|
+
R as corePlugins,
|
|
3414
|
+
u2 as elerisPreset,
|
|
3415
|
+
q as extensions,
|
|
3416
|
+
W as plugins,
|
|
3417
|
+
h2 as propertyPreset,
|
|
3418
|
+
m2 as removeClass,
|
|
3419
|
+
V2 as validateEmail,
|
|
3420
|
+
f2 as validateForm
|
|
3372
3421
|
};
|