@vehiclehistory/property-lib 0.0.47 → 0.0.49
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 +301 -299
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -9
package/dist/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import { memo as x, useState as Z, useEffect as N, useRef as q } from "react";
|
|
3
3
|
import u from "classnames";
|
|
4
4
|
const j = {
|
|
@@ -473,19 +473,19 @@ const j = {
|
|
|
473
473
|
chatBubble: {
|
|
474
474
|
path: '<path d="M12,3C17.5,3 22,6.58 22,11C22,15.42 17.5,19 12,19C10.76,19 9.57,18.82 8.47,18.5C5.55,21 2,21 2,21C4.33,18.67 4.7,17.1 4.75,16.5C3.05,15.07 2,13.13 2,11C2,6.58 6.5,3 12,3Z" />'
|
|
475
475
|
}
|
|
476
|
-
}, R = (
|
|
477
|
-
color:
|
|
476
|
+
}, R = (c) => P[c], W = ({
|
|
477
|
+
color: c = "text-current",
|
|
478
478
|
className: e,
|
|
479
479
|
name: t,
|
|
480
480
|
size: a = "medium",
|
|
481
481
|
viewBox: n = "0 0 20 20"
|
|
482
482
|
}) => {
|
|
483
|
-
const s = R(t), [i, r] = Z(
|
|
483
|
+
const s = R(t), [i, r] = Z(c), [l, d] = Z(s);
|
|
484
484
|
return N(() => {
|
|
485
|
-
|
|
485
|
+
d(s);
|
|
486
486
|
}, [s]), N(() => {
|
|
487
|
-
r(
|
|
488
|
-
}, [
|
|
487
|
+
r(c);
|
|
488
|
+
}, [c]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
489
489
|
"svg",
|
|
490
490
|
{
|
|
491
491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -498,8 +498,8 @@ const j = {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
);
|
|
501
|
-
}, y = x(W),
|
|
502
|
-
children:
|
|
501
|
+
}, y = x(W), G = ({
|
|
502
|
+
children: c,
|
|
503
503
|
className: e,
|
|
504
504
|
clickHandler: t,
|
|
505
505
|
panelClass: a,
|
|
@@ -508,8 +508,8 @@ const j = {
|
|
|
508
508
|
isOpen: i = !1
|
|
509
509
|
}) => {
|
|
510
510
|
const [r, l] = Z(i);
|
|
511
|
-
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(S, { children: [
|
|
512
|
+
/* @__PURE__ */ M(
|
|
513
513
|
"button",
|
|
514
514
|
{
|
|
515
515
|
type: "button",
|
|
@@ -544,7 +544,7 @@ const j = {
|
|
|
544
544
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
545
545
|
a
|
|
546
546
|
),
|
|
547
|
-
children:
|
|
547
|
+
children: c
|
|
548
548
|
}
|
|
549
549
|
),
|
|
550
550
|
!s && /* @__PURE__ */ o(
|
|
@@ -555,12 +555,12 @@ const j = {
|
|
|
555
555
|
a,
|
|
556
556
|
{ hidden: !r }
|
|
557
557
|
),
|
|
558
|
-
children:
|
|
558
|
+
children: c
|
|
559
559
|
}
|
|
560
560
|
)
|
|
561
561
|
] }) });
|
|
562
|
-
}, w1 = x(
|
|
563
|
-
children:
|
|
562
|
+
}, w1 = x(G), Q = ({
|
|
563
|
+
children: c,
|
|
564
564
|
className: e = "",
|
|
565
565
|
messages: t = [],
|
|
566
566
|
title: a = "",
|
|
@@ -589,7 +589,7 @@ const j = {
|
|
|
589
589
|
iconColor: "text-yellow-500",
|
|
590
590
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
591
591
|
}
|
|
592
|
-
}, { icon: l, iconColor:
|
|
592
|
+
}, { icon: l, iconColor: d, styles: h } = r[i];
|
|
593
593
|
return /* @__PURE__ */ o(
|
|
594
594
|
"div",
|
|
595
595
|
{
|
|
@@ -600,25 +600,25 @@ const j = {
|
|
|
600
600
|
e
|
|
601
601
|
),
|
|
602
602
|
...s,
|
|
603
|
-
children: /* @__PURE__ */
|
|
603
|
+
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
604
604
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
605
605
|
y,
|
|
606
606
|
{
|
|
607
607
|
name: l,
|
|
608
608
|
viewBox: "0 0 24 24",
|
|
609
|
-
className:
|
|
609
|
+
className: d,
|
|
610
610
|
size: "xSmall"
|
|
611
611
|
}
|
|
612
612
|
) }),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ M("div", { className: "ml-3", children: [
|
|
614
614
|
/* @__PURE__ */ o("div", { className: u("font-medium text-sm", n), children: a }),
|
|
615
|
-
t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((p,
|
|
615
|
+
t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((p, V) => /* @__PURE__ */ o("li", { children: p }, V)) }) }) : ""
|
|
616
616
|
] })
|
|
617
617
|
] })
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
}, k1 = x(
|
|
621
|
-
autoFocus:
|
|
620
|
+
}, k1 = x(Q), U = ({
|
|
621
|
+
autoFocus: c = !1,
|
|
622
622
|
className: e = "",
|
|
623
623
|
dataSearch: t = "container",
|
|
624
624
|
defaultValue: a = "",
|
|
@@ -627,17 +627,17 @@ const j = {
|
|
|
627
627
|
inputClass: i = "",
|
|
628
628
|
leftIcon: r = "homeSearch",
|
|
629
629
|
mobileBackdrop: l = !1,
|
|
630
|
-
name:
|
|
630
|
+
name: d = "",
|
|
631
631
|
options: h = [],
|
|
632
632
|
placeholder: p = "",
|
|
633
|
-
props:
|
|
634
|
-
required:
|
|
633
|
+
props: V = {},
|
|
634
|
+
required: g = !1,
|
|
635
635
|
showSearchIcon: b = !0,
|
|
636
|
-
size:
|
|
636
|
+
size: C = "medium",
|
|
637
637
|
styles: m = null,
|
|
638
|
-
title:
|
|
638
|
+
title: f = "",
|
|
639
639
|
type: w
|
|
640
|
-
}) => /* @__PURE__ */
|
|
640
|
+
}) => /* @__PURE__ */ M(
|
|
641
641
|
"div",
|
|
642
642
|
{
|
|
643
643
|
id: s,
|
|
@@ -646,7 +646,7 @@ const j = {
|
|
|
646
646
|
className: u("Autocomplete", e),
|
|
647
647
|
style: m ? { ...m } : null,
|
|
648
648
|
children: [
|
|
649
|
-
b && /* @__PURE__ */
|
|
649
|
+
b && /* @__PURE__ */ M(
|
|
650
650
|
"span",
|
|
651
651
|
{
|
|
652
652
|
className: u(
|
|
@@ -661,7 +661,7 @@ const j = {
|
|
|
661
661
|
{
|
|
662
662
|
className: "home-search select-none text-gray-500",
|
|
663
663
|
name: r,
|
|
664
|
-
size:
|
|
664
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
665
665
|
viewBox: "0 0 24 24"
|
|
666
666
|
}
|
|
667
667
|
),
|
|
@@ -670,7 +670,7 @@ const j = {
|
|
|
670
670
|
{
|
|
671
671
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
672
672
|
name: "arrowLeft",
|
|
673
|
-
size:
|
|
673
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
674
674
|
viewBox: "0 0 24 24"
|
|
675
675
|
}
|
|
676
676
|
)
|
|
@@ -681,26 +681,26 @@ const j = {
|
|
|
681
681
|
"input",
|
|
682
682
|
{
|
|
683
683
|
"data-lpignore": "true",
|
|
684
|
-
autoFocus:
|
|
684
|
+
autoFocus: c,
|
|
685
685
|
className: u(
|
|
686
686
|
"w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
|
|
687
687
|
{
|
|
688
688
|
"pl-8": b === !0,
|
|
689
|
-
"px-3 h-10":
|
|
690
|
-
"px-4 h-12":
|
|
691
|
-
"px-5 h-[60px] sm:!text-base":
|
|
689
|
+
"px-3 h-10": C === "medium",
|
|
690
|
+
"px-4 h-12": C === "large",
|
|
691
|
+
"px-5 h-[60px] sm:!text-base": C === "xLarge",
|
|
692
692
|
peer: n
|
|
693
693
|
},
|
|
694
694
|
i
|
|
695
695
|
),
|
|
696
|
-
required:
|
|
696
|
+
required: g,
|
|
697
697
|
autoComplete: "off",
|
|
698
698
|
value: a,
|
|
699
699
|
placeholder: !p && n ? " " : p,
|
|
700
700
|
type: "search",
|
|
701
|
-
name:
|
|
701
|
+
name: d || "search-input",
|
|
702
702
|
"data-id": "search-input",
|
|
703
|
-
...
|
|
703
|
+
...V
|
|
704
704
|
}
|
|
705
705
|
),
|
|
706
706
|
n && /* @__PURE__ */ o(
|
|
@@ -710,9 +710,9 @@ const j = {
|
|
|
710
710
|
"floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
|
|
711
711
|
{
|
|
712
712
|
"!left-7": b === !0,
|
|
713
|
-
"left-2":
|
|
714
|
-
"left-3":
|
|
715
|
-
"left-4":
|
|
713
|
+
"left-2": C === "medium",
|
|
714
|
+
"left-3": C === "large",
|
|
715
|
+
"left-4": C === "xLarge"
|
|
716
716
|
}
|
|
717
717
|
),
|
|
718
718
|
children: n
|
|
@@ -750,7 +750,7 @@ const j = {
|
|
|
750
750
|
)
|
|
751
751
|
}
|
|
752
752
|
),
|
|
753
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ M(
|
|
754
754
|
"div",
|
|
755
755
|
{
|
|
756
756
|
"data-id": "search-dropdown",
|
|
@@ -762,7 +762,7 @@ const j = {
|
|
|
762
762
|
{
|
|
763
763
|
"data-id": "search-dropdown-body",
|
|
764
764
|
role: "listbox",
|
|
765
|
-
"data-title":
|
|
765
|
+
"data-title": f,
|
|
766
766
|
"aria-labelledby": "Label",
|
|
767
767
|
"aria-activedescendant": "search-item-0",
|
|
768
768
|
children: h.length > 0 ? h.map((v, k) => /* @__PURE__ */ o(
|
|
@@ -784,8 +784,8 @@ const j = {
|
|
|
784
784
|
)
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
|
-
), S1 =
|
|
788
|
-
children:
|
|
787
|
+
), S1 = U, J = ({
|
|
788
|
+
children: c,
|
|
789
789
|
className: e,
|
|
790
790
|
size: t = "sm",
|
|
791
791
|
tag: a = "span"
|
|
@@ -801,10 +801,10 @@ const j = {
|
|
|
801
801
|
},
|
|
802
802
|
e
|
|
803
803
|
),
|
|
804
|
-
children:
|
|
804
|
+
children: c
|
|
805
805
|
}
|
|
806
806
|
), z1 = J, Y = ({
|
|
807
|
-
borderless:
|
|
807
|
+
borderless: c = !1,
|
|
808
808
|
leftIcon: e,
|
|
809
809
|
leftIconProps: t = {},
|
|
810
810
|
children: a,
|
|
@@ -813,18 +813,18 @@ const j = {
|
|
|
813
813
|
href: i,
|
|
814
814
|
props: r = {},
|
|
815
815
|
rightIcon: l,
|
|
816
|
-
rightIconProps:
|
|
816
|
+
rightIconProps: d = {},
|
|
817
817
|
rounded: h = !1,
|
|
818
818
|
size: p = "md",
|
|
819
|
-
type:
|
|
820
|
-
uppercase:
|
|
819
|
+
type: V = "button",
|
|
820
|
+
uppercase: g = !1,
|
|
821
821
|
variation: b = "primary"
|
|
822
822
|
}) => {
|
|
823
|
-
const
|
|
824
|
-
return /* @__PURE__ */
|
|
825
|
-
|
|
823
|
+
const C = i ? "a" : "button";
|
|
824
|
+
return /* @__PURE__ */ M(
|
|
825
|
+
C,
|
|
826
826
|
{
|
|
827
|
-
type:
|
|
827
|
+
type: C !== "a" ? V : null,
|
|
828
828
|
className: u(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
@@ -833,8 +833,8 @@ const j = {
|
|
|
833
833
|
"button--rounded": h,
|
|
834
834
|
"button--disabled": s,
|
|
835
835
|
"button--custom-link": i,
|
|
836
|
-
"button--uppercase":
|
|
837
|
-
"button--borderless":
|
|
836
|
+
"button--uppercase": g,
|
|
837
|
+
"button--borderless": c || b === "link"
|
|
838
838
|
},
|
|
839
839
|
n
|
|
840
840
|
),
|
|
@@ -858,14 +858,14 @@ const j = {
|
|
|
858
858
|
name: l,
|
|
859
859
|
size: p === "md" ? "small" : "xSmall",
|
|
860
860
|
viewBox: "0 0 24 24",
|
|
861
|
-
...
|
|
861
|
+
...d
|
|
862
862
|
}
|
|
863
863
|
)
|
|
864
864
|
]
|
|
865
865
|
}
|
|
866
866
|
);
|
|
867
|
-
}, E = x(Y), K = ({ children:
|
|
868
|
-
block:
|
|
867
|
+
}, E = x(Y), K = ({ children: c, className: e }) => /* @__PURE__ */ o("div", { className: u("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: c }), N1 = K, X = ({
|
|
868
|
+
block: c = !1,
|
|
869
869
|
borderless: e = !1,
|
|
870
870
|
children: t,
|
|
871
871
|
className: a = "",
|
|
@@ -880,7 +880,7 @@ const j = {
|
|
|
880
880
|
"bg-white",
|
|
881
881
|
{
|
|
882
882
|
f1: !e,
|
|
883
|
-
f2:
|
|
883
|
+
f2: c,
|
|
884
884
|
f3: n,
|
|
885
885
|
f4: s
|
|
886
886
|
},
|
|
@@ -891,7 +891,7 @@ const j = {
|
|
|
891
891
|
children: t
|
|
892
892
|
}
|
|
893
893
|
), Z1 = X, _ = ({
|
|
894
|
-
checked:
|
|
894
|
+
checked: c = !1,
|
|
895
895
|
children: e,
|
|
896
896
|
className: t = "",
|
|
897
897
|
error: a = !1,
|
|
@@ -900,20 +900,20 @@ const j = {
|
|
|
900
900
|
label: i = "",
|
|
901
901
|
name: r = "",
|
|
902
902
|
props: l = {},
|
|
903
|
-
variation:
|
|
903
|
+
variation: d = "primary",
|
|
904
904
|
value: h = ""
|
|
905
905
|
}) => {
|
|
906
|
-
const p = i ? "div" : "label",
|
|
907
|
-
return /* @__PURE__ */
|
|
906
|
+
const p = i ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
907
|
+
return /* @__PURE__ */ M(
|
|
908
908
|
p,
|
|
909
909
|
{
|
|
910
|
-
className: u("checkbox flex items-center",
|
|
911
|
-
...
|
|
910
|
+
className: u("checkbox flex items-center", d, t),
|
|
911
|
+
...V,
|
|
912
912
|
children: [
|
|
913
913
|
/* @__PURE__ */ o(
|
|
914
914
|
"input",
|
|
915
915
|
{
|
|
916
|
-
checked:
|
|
916
|
+
checked: c,
|
|
917
917
|
className: u(
|
|
918
918
|
"form-checkbox ",
|
|
919
919
|
{
|
|
@@ -932,7 +932,7 @@ const j = {
|
|
|
932
932
|
]
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
}, E1 = x(_), e1 = ({ children:
|
|
935
|
+
}, E1 = x(_), e1 = ({ children: c, aside: e, direction: t = "right" }) => /* @__PURE__ */ M("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
936
936
|
/* @__PURE__ */ o(
|
|
937
937
|
"main",
|
|
938
938
|
{
|
|
@@ -942,7 +942,7 @@ const j = {
|
|
|
942
942
|
"lg:order-2": t === "left"
|
|
943
943
|
}
|
|
944
944
|
),
|
|
945
|
-
children:
|
|
945
|
+
children: c
|
|
946
946
|
}
|
|
947
947
|
),
|
|
948
948
|
/* @__PURE__ */ o(
|
|
@@ -959,7 +959,7 @@ const j = {
|
|
|
959
959
|
}
|
|
960
960
|
)
|
|
961
961
|
] }), F1 = x(e1), t1 = ({
|
|
962
|
-
activator:
|
|
962
|
+
activator: c,
|
|
963
963
|
id: e = "",
|
|
964
964
|
children: t,
|
|
965
965
|
className: a = "",
|
|
@@ -968,14 +968,14 @@ const j = {
|
|
|
968
968
|
footer: i,
|
|
969
969
|
fullMobile: r = !0,
|
|
970
970
|
headerClass: l = "",
|
|
971
|
-
hideClose:
|
|
971
|
+
hideClose: d = !1,
|
|
972
972
|
iconSize: h = "medium",
|
|
973
973
|
preventPageScroll: p = !0,
|
|
974
|
-
stickyHeader:
|
|
975
|
-
title:
|
|
974
|
+
stickyHeader: V = !1,
|
|
975
|
+
title: g = "",
|
|
976
976
|
titleClass: b = ""
|
|
977
|
-
}) => /* @__PURE__ */
|
|
978
|
-
|
|
977
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
978
|
+
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: c }),
|
|
979
979
|
/* @__PURE__ */ o(
|
|
980
980
|
"dialog",
|
|
981
981
|
{
|
|
@@ -990,22 +990,22 @@ const j = {
|
|
|
990
990
|
},
|
|
991
991
|
a
|
|
992
992
|
),
|
|
993
|
-
children: /* @__PURE__ */
|
|
994
|
-
/* @__PURE__ */
|
|
993
|
+
children: /* @__PURE__ */ M("form", { method: "dialog", children: [
|
|
994
|
+
/* @__PURE__ */ M(
|
|
995
995
|
"header",
|
|
996
996
|
{
|
|
997
997
|
className: u(
|
|
998
998
|
"dialog-header",
|
|
999
999
|
{
|
|
1000
|
-
"sticky top-0 bg-white z-10":
|
|
1001
|
-
"!pb-0 border-0 justify-end": !
|
|
1002
|
-
"justify-between border-b":
|
|
1000
|
+
"sticky top-0 bg-white z-10": V,
|
|
1001
|
+
"!pb-0 border-0 justify-end": !g,
|
|
1002
|
+
"justify-between border-b": g
|
|
1003
1003
|
},
|
|
1004
1004
|
l
|
|
1005
1005
|
),
|
|
1006
1006
|
children: [
|
|
1007
|
-
|
|
1008
|
-
!
|
|
1007
|
+
g && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: b, children: g }),
|
|
1008
|
+
!d && /* @__PURE__ */ o(
|
|
1009
1009
|
"button",
|
|
1010
1010
|
{
|
|
1011
1011
|
type: "button",
|
|
@@ -1039,7 +1039,7 @@ const j = {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
)
|
|
1041
1041
|
] }), B1 = x(t1), a1 = ({
|
|
1042
|
-
activator:
|
|
1042
|
+
activator: c,
|
|
1043
1043
|
id: e = "",
|
|
1044
1044
|
children: t,
|
|
1045
1045
|
className: a = "",
|
|
@@ -1048,39 +1048,39 @@ const j = {
|
|
|
1048
1048
|
disableOutsideClick: i = !1,
|
|
1049
1049
|
footer: r,
|
|
1050
1050
|
fullMobile: l = !0,
|
|
1051
|
-
headerClass:
|
|
1051
|
+
headerClass: d = "",
|
|
1052
1052
|
hideClose: h = !1,
|
|
1053
1053
|
iconSize: p = "medium",
|
|
1054
|
-
isOpen:
|
|
1055
|
-
setDialogOpen:
|
|
1054
|
+
isOpen: V = !1,
|
|
1055
|
+
setDialogOpen: g,
|
|
1056
1056
|
stickyHeader: b = !1,
|
|
1057
|
-
title:
|
|
1057
|
+
title: C = "",
|
|
1058
1058
|
titleClass: m = ""
|
|
1059
1059
|
}) => {
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1060
|
+
const f = q(null), w = async () => {
|
|
1061
|
+
f.current.classList.add("closing"), await B(f.current), f.current.classList.remove("closing"), s && s(), g(!1);
|
|
1062
1062
|
}, v = async (A) => {
|
|
1063
1063
|
A.key === "Escape" && await w();
|
|
1064
1064
|
}, k = async ({ clientX: A, clientY: z, target: D }) => {
|
|
1065
|
-
const { left: $, right: T, top: I, bottom: O } =
|
|
1066
|
-
(!
|
|
1065
|
+
const { left: $, right: T, top: I, bottom: O } = f.current.getBoundingClientRect() ?? {};
|
|
1066
|
+
(!f.current.contains(D) || A < $ || A > T || z < I || z > O) && await w();
|
|
1067
1067
|
}, B = (A) => Promise.allSettled(
|
|
1068
1068
|
A.getAnimations().map((z) => z.finished)
|
|
1069
1069
|
);
|
|
1070
1070
|
return N(() => {
|
|
1071
|
-
const A =
|
|
1072
|
-
A && (
|
|
1073
|
-
}, [
|
|
1074
|
-
|
|
1075
|
-
/* @__PURE__ */
|
|
1071
|
+
const A = f.current;
|
|
1072
|
+
A && (V ? A.showModal() : typeof A.close == "function" && A.close());
|
|
1073
|
+
}, [V]), /* @__PURE__ */ M(S, { children: [
|
|
1074
|
+
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: c }),
|
|
1075
|
+
/* @__PURE__ */ M(
|
|
1076
1076
|
"dialog",
|
|
1077
1077
|
{
|
|
1078
|
-
ref:
|
|
1078
|
+
ref: f,
|
|
1079
1079
|
id: `${e}-dialog`,
|
|
1080
1080
|
className: u(
|
|
1081
1081
|
"dialog",
|
|
1082
1082
|
{
|
|
1083
|
-
hidden: !
|
|
1083
|
+
hidden: !V,
|
|
1084
1084
|
"xs-max:h-full xs-max:max-h-full": l
|
|
1085
1085
|
},
|
|
1086
1086
|
a
|
|
@@ -1088,16 +1088,16 @@ const j = {
|
|
|
1088
1088
|
onKeyDown: v,
|
|
1089
1089
|
onClick: (A) => i ? null : k(A),
|
|
1090
1090
|
children: [
|
|
1091
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ M(
|
|
1092
1092
|
"header",
|
|
1093
1093
|
{
|
|
1094
1094
|
className: u(
|
|
1095
1095
|
"dialog-header flex items-center p-4",
|
|
1096
1096
|
{ "sticky top-0 bg-white": b },
|
|
1097
|
-
|
|
1097
|
+
d
|
|
1098
1098
|
),
|
|
1099
1099
|
children: [
|
|
1100
|
-
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children:
|
|
1100
|
+
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children: C || "" }),
|
|
1101
1101
|
!h && /* @__PURE__ */ o(
|
|
1102
1102
|
"button",
|
|
1103
1103
|
{
|
|
@@ -1139,7 +1139,7 @@ const j = {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
)
|
|
1141
1141
|
] });
|
|
1142
|
-
}, D1 = x(a1), n1 = ({ className:
|
|
1142
|
+
}, D1 = x(a1), n1 = ({ className: c = "" }) => /* @__PURE__ */ M("div", { id: "dots", className: u("mx-auto", c), children: [
|
|
1143
1143
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
|
|
1144
1144
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
|
|
1145
1145
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1149,7 +1149,7 @@ const j = {
|
|
|
1149
1149
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
|
|
1150
1150
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
|
|
1151
1151
|
] }), $1 = n1, s1 = ({
|
|
1152
|
-
cb:
|
|
1152
|
+
cb: c,
|
|
1153
1153
|
className: e = "",
|
|
1154
1154
|
size: t = "md",
|
|
1155
1155
|
timeout: a = 1e4,
|
|
@@ -1158,20 +1158,20 @@ const j = {
|
|
|
1158
1158
|
function s({ cb: i }) {
|
|
1159
1159
|
const r = document.querySelector(".loading-bar__inner");
|
|
1160
1160
|
if (!r) return;
|
|
1161
|
-
let l,
|
|
1162
|
-
function p(
|
|
1163
|
-
l === void 0 && (l =
|
|
1164
|
-
const
|
|
1165
|
-
if (
|
|
1166
|
-
const b =
|
|
1167
|
-
r.style.width = `${b}%`, b >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(
|
|
1161
|
+
let l, d, h = !1;
|
|
1162
|
+
function p(V) {
|
|
1163
|
+
l === void 0 && (l = V);
|
|
1164
|
+
const g = V - l;
|
|
1165
|
+
if (d !== V) {
|
|
1166
|
+
const b = g / a * 101;
|
|
1167
|
+
r.style.width = `${b}%`, b >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(V));
|
|
1168
1168
|
}
|
|
1169
|
-
|
|
1169
|
+
g < a && (d = V, h || window.requestAnimationFrame(p));
|
|
1170
1170
|
}
|
|
1171
1171
|
window.requestAnimationFrame(p);
|
|
1172
1172
|
}
|
|
1173
1173
|
return N(() => {
|
|
1174
|
-
s({ cb:
|
|
1174
|
+
s({ cb: c });
|
|
1175
1175
|
}, []), /* @__PURE__ */ o(
|
|
1176
1176
|
"div",
|
|
1177
1177
|
{
|
|
@@ -1193,15 +1193,15 @@ const j = {
|
|
|
1193
1193
|
name: "spinnerDark",
|
|
1194
1194
|
color: "text-teal-700",
|
|
1195
1195
|
viewBox: "0 0 24 24"
|
|
1196
|
-
}, r1 = ({ className:
|
|
1196
|
+
}, r1 = ({ className: c = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
|
|
1197
1197
|
y,
|
|
1198
1198
|
{
|
|
1199
1199
|
size: "xSmall",
|
|
1200
1200
|
...l1,
|
|
1201
|
-
className: `animate-spin ${
|
|
1201
|
+
className: `animate-spin ${c}`
|
|
1202
1202
|
}
|
|
1203
1203
|
) }), I1 = x(r1), i1 = ({
|
|
1204
|
-
activator:
|
|
1204
|
+
activator: c,
|
|
1205
1205
|
activatorClass: e = "",
|
|
1206
1206
|
attrs: t = {},
|
|
1207
1207
|
options: a = {},
|
|
@@ -1210,13 +1210,13 @@ const j = {
|
|
|
1210
1210
|
containerClass: i = "",
|
|
1211
1211
|
disabled: r = !1,
|
|
1212
1212
|
id: l = "",
|
|
1213
|
-
trigger:
|
|
1214
|
-
}) => /* @__PURE__ */
|
|
1213
|
+
trigger: d = "click"
|
|
1214
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
1215
1215
|
/* @__PURE__ */ o(
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
1218
1218
|
className: u("popover z-10 max-w-[350px] hidden", s),
|
|
1219
|
-
children: /* @__PURE__ */
|
|
1219
|
+
children: /* @__PURE__ */ M(
|
|
1220
1220
|
"div",
|
|
1221
1221
|
{
|
|
1222
1222
|
className: u(
|
|
@@ -1242,17 +1242,17 @@ const j = {
|
|
|
1242
1242
|
{
|
|
1243
1243
|
className: u(
|
|
1244
1244
|
"popover-activator",
|
|
1245
|
-
`trigger-${
|
|
1245
|
+
`trigger-${d}`,
|
|
1246
1246
|
r ? "is-disabled" : "",
|
|
1247
1247
|
e
|
|
1248
1248
|
),
|
|
1249
1249
|
...t,
|
|
1250
1250
|
"data-options": JSON.stringify(a),
|
|
1251
|
-
children:
|
|
1251
|
+
children: c
|
|
1252
1252
|
}
|
|
1253
1253
|
)
|
|
1254
1254
|
] }), O1 = i1, o1 = ({
|
|
1255
|
-
ariaValuemax:
|
|
1255
|
+
ariaValuemax: c = 100,
|
|
1256
1256
|
ariaValuemin: e = 0,
|
|
1257
1257
|
bgColor: t = "bg-orange-500",
|
|
1258
1258
|
className: a,
|
|
@@ -1261,10 +1261,10 @@ const j = {
|
|
|
1261
1261
|
rounded: i = !0,
|
|
1262
1262
|
showLabel: r = !1
|
|
1263
1263
|
}) => {
|
|
1264
|
-
const
|
|
1264
|
+
const d = ((h, p) => {
|
|
1265
1265
|
if (h) {
|
|
1266
|
-
const
|
|
1267
|
-
return
|
|
1266
|
+
const V = Number(p) / h;
|
|
1267
|
+
return V > 1 ? 100 : V * 100;
|
|
1268
1268
|
}
|
|
1269
1269
|
return n;
|
|
1270
1270
|
})(s, n);
|
|
@@ -1280,7 +1280,7 @@ const j = {
|
|
|
1280
1280
|
"aria-label": "Progress Bar",
|
|
1281
1281
|
"aria-valuenow": n,
|
|
1282
1282
|
"aria-valuemin": e,
|
|
1283
|
-
"aria-valuemax":
|
|
1283
|
+
"aria-valuemax": c,
|
|
1284
1284
|
children: /* @__PURE__ */ o(
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
@@ -1288,14 +1288,14 @@ const j = {
|
|
|
1288
1288
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1289
1289
|
t
|
|
1290
1290
|
),
|
|
1291
|
-
style: { width: `${
|
|
1292
|
-
children: r && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(
|
|
1291
|
+
style: { width: `${d}%` },
|
|
1292
|
+
children: r && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(d) })
|
|
1293
1293
|
}
|
|
1294
1294
|
)
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
1297
|
}, q1 = x(o1), c1 = ({
|
|
1298
|
-
checked:
|
|
1298
|
+
checked: c = !1,
|
|
1299
1299
|
children: e,
|
|
1300
1300
|
className: t = "",
|
|
1301
1301
|
id: a = "",
|
|
@@ -1305,9 +1305,9 @@ const j = {
|
|
|
1305
1305
|
variation: r = "primary",
|
|
1306
1306
|
value: l = ""
|
|
1307
1307
|
}) => {
|
|
1308
|
-
const
|
|
1309
|
-
return /* @__PURE__ */
|
|
1310
|
-
|
|
1308
|
+
const d = n ? "div" : "label", h = d === "label" ? { htmlFor: a } : {};
|
|
1309
|
+
return /* @__PURE__ */ M(
|
|
1310
|
+
d,
|
|
1311
1311
|
{
|
|
1312
1312
|
className: u("radio flex items-center", t),
|
|
1313
1313
|
...h,
|
|
@@ -1315,7 +1315,7 @@ const j = {
|
|
|
1315
1315
|
/* @__PURE__ */ o(
|
|
1316
1316
|
"input",
|
|
1317
1317
|
{
|
|
1318
|
-
checked:
|
|
1318
|
+
checked: c,
|
|
1319
1319
|
className: u(
|
|
1320
1320
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1321
1321
|
{
|
|
@@ -1334,7 +1334,7 @@ const j = {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
);
|
|
1336
1336
|
}, j1 = x(c1), d1 = ({
|
|
1337
|
-
children:
|
|
1337
|
+
children: c,
|
|
1338
1338
|
className: e = "",
|
|
1339
1339
|
error: t = !1,
|
|
1340
1340
|
errorMessage: a = "",
|
|
@@ -1343,21 +1343,21 @@ const j = {
|
|
|
1343
1343
|
name: i = "",
|
|
1344
1344
|
options: r = [],
|
|
1345
1345
|
placeholder: l = "",
|
|
1346
|
-
props:
|
|
1346
|
+
props: d = {},
|
|
1347
1347
|
selectClass: h = "",
|
|
1348
1348
|
styles: p = null,
|
|
1349
|
-
variation:
|
|
1350
|
-
value:
|
|
1349
|
+
variation: V = "primary",
|
|
1350
|
+
value: g
|
|
1351
1351
|
}) => {
|
|
1352
1352
|
const b = l ? { defaultValue: "" } : {};
|
|
1353
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ M(
|
|
1354
1354
|
"label",
|
|
1355
1355
|
{
|
|
1356
|
-
className: u("relative select", e,
|
|
1356
|
+
className: u("relative select", e, V),
|
|
1357
1357
|
style: p ? { ...p } : null,
|
|
1358
1358
|
children: [
|
|
1359
1359
|
s,
|
|
1360
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ M(
|
|
1361
1361
|
"select",
|
|
1362
1362
|
{
|
|
1363
1363
|
className: u(
|
|
@@ -1367,18 +1367,18 @@ const j = {
|
|
|
1367
1367
|
),
|
|
1368
1368
|
id: n,
|
|
1369
1369
|
name: i,
|
|
1370
|
-
value:
|
|
1370
|
+
value: g,
|
|
1371
1371
|
...b,
|
|
1372
|
-
...
|
|
1372
|
+
...d,
|
|
1373
1373
|
children: [
|
|
1374
1374
|
l && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: l }),
|
|
1375
|
-
r.map((
|
|
1375
|
+
r.map((C, m) => /* @__PURE__ */ o(
|
|
1376
1376
|
"option",
|
|
1377
1377
|
{
|
|
1378
|
-
value: (
|
|
1379
|
-
children: (
|
|
1378
|
+
value: (C == null ? void 0 : C.id) || (C == null ? void 0 : C.value) || C,
|
|
1379
|
+
children: (C == null ? void 0 : C.name) || C
|
|
1380
1380
|
},
|
|
1381
|
-
(
|
|
1381
|
+
(C == null ? void 0 : C.name) || C
|
|
1382
1382
|
))
|
|
1383
1383
|
]
|
|
1384
1384
|
}
|
|
@@ -1387,12 +1387,12 @@ const j = {
|
|
|
1387
1387
|
]
|
|
1388
1388
|
}
|
|
1389
1389
|
);
|
|
1390
|
-
}, P1 = x(d1), h1 = ({ className:
|
|
1390
|
+
}, P1 = x(d1), h1 = ({ className: c = "" }) => /* @__PURE__ */ M(
|
|
1391
1391
|
"div",
|
|
1392
1392
|
{
|
|
1393
1393
|
className: u(
|
|
1394
1394
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1395
|
-
|
|
1395
|
+
c
|
|
1396
1396
|
),
|
|
1397
1397
|
children: [
|
|
1398
1398
|
/* @__PURE__ */ o(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
@@ -1400,12 +1400,12 @@ const j = {
|
|
|
1400
1400
|
]
|
|
1401
1401
|
}
|
|
1402
1402
|
), R1 = x(h1), u1 = ({
|
|
1403
|
-
placeholderClass:
|
|
1403
|
+
placeholderClass: c = "",
|
|
1404
1404
|
children: e,
|
|
1405
1405
|
className: t = "",
|
|
1406
1406
|
id: a = 1,
|
|
1407
1407
|
padding: n = !0
|
|
1408
|
-
}) => /* @__PURE__ */
|
|
1408
|
+
}) => /* @__PURE__ */ M("div", { className: u("slider", t), id: `slider-${a}`, children: [
|
|
1409
1409
|
/* @__PURE__ */ o(
|
|
1410
1410
|
"button",
|
|
1411
1411
|
{
|
|
@@ -1419,7 +1419,7 @@ const j = {
|
|
|
1419
1419
|
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, i) => /* @__PURE__ */ o(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
|
-
className: `slider-card bg-gray-200 animate-pulse ${
|
|
1422
|
+
className: `slider-card bg-gray-200 animate-pulse ${c}`,
|
|
1423
1423
|
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1424
1424
|
},
|
|
1425
1425
|
i
|
|
@@ -1435,7 +1435,7 @@ const j = {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
)
|
|
1437
1437
|
] }), W1 = x(u1), p1 = ({
|
|
1438
|
-
className:
|
|
1438
|
+
className: c = "",
|
|
1439
1439
|
value: e
|
|
1440
1440
|
}) => {
|
|
1441
1441
|
const t = {
|
|
@@ -1446,13 +1446,13 @@ const j = {
|
|
|
1446
1446
|
{
|
|
1447
1447
|
className: u(
|
|
1448
1448
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1449
|
-
|
|
1449
|
+
c
|
|
1450
1450
|
),
|
|
1451
1451
|
style: t
|
|
1452
1452
|
}
|
|
1453
1453
|
);
|
|
1454
|
-
},
|
|
1455
|
-
className:
|
|
1454
|
+
}, G1 = p1, m1 = ({
|
|
1455
|
+
className: c = "",
|
|
1456
1456
|
clear: e = !1,
|
|
1457
1457
|
error: t = !1,
|
|
1458
1458
|
errorMessage: a = "",
|
|
@@ -1461,16 +1461,16 @@ const j = {
|
|
|
1461
1461
|
name: i = "",
|
|
1462
1462
|
placeholder: r = "",
|
|
1463
1463
|
props: l = {},
|
|
1464
|
-
rows:
|
|
1464
|
+
rows: d = 4,
|
|
1465
1465
|
variation: h = "primary"
|
|
1466
|
-
}) => /* @__PURE__ */
|
|
1466
|
+
}) => /* @__PURE__ */ M("div", { className: u("relative textarea", h, c), children: [
|
|
1467
1467
|
/* @__PURE__ */ o(
|
|
1468
1468
|
"textarea",
|
|
1469
1469
|
{
|
|
1470
1470
|
placeholder: r,
|
|
1471
1471
|
id: n,
|
|
1472
1472
|
name: i,
|
|
1473
|
-
rows:
|
|
1473
|
+
rows: d,
|
|
1474
1474
|
className: u(
|
|
1475
1475
|
"form-textarea min-h-[40px] pl-4",
|
|
1476
1476
|
e ? "pr-10" : "pr-4",
|
|
@@ -1497,7 +1497,7 @@ const j = {
|
|
|
1497
1497
|
),
|
|
1498
1498
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1499
1499
|
] }), f1 = x(m1), V1 = ({
|
|
1500
|
-
className:
|
|
1500
|
+
className: c = "",
|
|
1501
1501
|
clear: e = !1,
|
|
1502
1502
|
error: t = !1,
|
|
1503
1503
|
errorMessage: a = "",
|
|
@@ -1506,15 +1506,15 @@ const j = {
|
|
|
1506
1506
|
inputClass: i = "",
|
|
1507
1507
|
name: r = "",
|
|
1508
1508
|
placeholder: l = "",
|
|
1509
|
-
props:
|
|
1509
|
+
props: d = {},
|
|
1510
1510
|
styles: h = null,
|
|
1511
1511
|
type: p = "text",
|
|
1512
|
-
value:
|
|
1513
|
-
variation:
|
|
1514
|
-
}) => /* @__PURE__ */
|
|
1512
|
+
value: V,
|
|
1513
|
+
variation: g = "primary"
|
|
1514
|
+
}) => /* @__PURE__ */ M(
|
|
1515
1515
|
"div",
|
|
1516
1516
|
{
|
|
1517
|
-
className: u("relative textbox",
|
|
1517
|
+
className: u("relative textbox", g, c),
|
|
1518
1518
|
style: h ? { ...h } : null,
|
|
1519
1519
|
children: [
|
|
1520
1520
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
@@ -1533,7 +1533,7 @@ const j = {
|
|
|
1533
1533
|
id: s,
|
|
1534
1534
|
name: r,
|
|
1535
1535
|
type: p,
|
|
1536
|
-
value:
|
|
1536
|
+
value: V,
|
|
1537
1537
|
autoComplete: "off",
|
|
1538
1538
|
className: u(
|
|
1539
1539
|
"form-input",
|
|
@@ -1542,10 +1542,10 @@ const j = {
|
|
|
1542
1542
|
{
|
|
1543
1543
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1544
1544
|
},
|
|
1545
|
-
|
|
1545
|
+
d.inputClass ?? "",
|
|
1546
1546
|
i
|
|
1547
1547
|
),
|
|
1548
|
-
...
|
|
1548
|
+
...d
|
|
1549
1549
|
}
|
|
1550
1550
|
),
|
|
1551
1551
|
e && /* @__PURE__ */ o(
|
|
@@ -1567,7 +1567,7 @@ const j = {
|
|
|
1567
1567
|
]
|
|
1568
1568
|
}
|
|
1569
1569
|
), F = x(V1), H1 = ({
|
|
1570
|
-
btnClass:
|
|
1570
|
+
btnClass: c,
|
|
1571
1571
|
className: e = "",
|
|
1572
1572
|
containerClass: t,
|
|
1573
1573
|
customSuccessMsg: a = "",
|
|
@@ -1575,7 +1575,7 @@ const j = {
|
|
|
1575
1575
|
titleClass: s,
|
|
1576
1576
|
uppercase: i = !0
|
|
1577
1577
|
}) => {
|
|
1578
|
-
const r = a || /* @__PURE__ */
|
|
1578
|
+
const r = a || /* @__PURE__ */ M(S, { children: [
|
|
1579
1579
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1580
1580
|
" ",
|
|
1581
1581
|
/* @__PURE__ */ o(
|
|
@@ -1592,7 +1592,7 @@ const j = {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
)
|
|
1594
1594
|
] });
|
|
1595
|
-
return /* @__PURE__ */
|
|
1595
|
+
return /* @__PURE__ */ M(
|
|
1596
1596
|
"form",
|
|
1597
1597
|
{
|
|
1598
1598
|
id: "contactForm",
|
|
@@ -1602,7 +1602,7 @@ const j = {
|
|
|
1602
1602
|
children: [
|
|
1603
1603
|
/* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", s), children: n }),
|
|
1604
1604
|
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: r }),
|
|
1605
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ M(
|
|
1606
1606
|
"div",
|
|
1607
1607
|
{
|
|
1608
1608
|
className: u(
|
|
@@ -1651,7 +1651,7 @@ const j = {
|
|
|
1651
1651
|
{
|
|
1652
1652
|
uppercase: i
|
|
1653
1653
|
},
|
|
1654
|
-
|
|
1654
|
+
c
|
|
1655
1655
|
),
|
|
1656
1656
|
props: { title: "Submit" },
|
|
1657
1657
|
type: "submit",
|
|
@@ -1664,8 +1664,8 @@ const j = {
|
|
|
1664
1664
|
]
|
|
1665
1665
|
}
|
|
1666
1666
|
);
|
|
1667
|
-
},
|
|
1668
|
-
block:
|
|
1667
|
+
}, Q1 = x(H1), C1 = ({
|
|
1668
|
+
block: c = !1,
|
|
1669
1669
|
children: e,
|
|
1670
1670
|
className: t,
|
|
1671
1671
|
contentClass: a,
|
|
@@ -1674,20 +1674,20 @@ const j = {
|
|
|
1674
1674
|
headerContent: i,
|
|
1675
1675
|
headerClass: r,
|
|
1676
1676
|
list: l = !1,
|
|
1677
|
-
props:
|
|
1677
|
+
props: d = {},
|
|
1678
1678
|
variation: h = "primary"
|
|
1679
1679
|
}) => {
|
|
1680
1680
|
const p = l ? "ul" : "div";
|
|
1681
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ M(
|
|
1682
1682
|
"div",
|
|
1683
1683
|
{
|
|
1684
1684
|
className: u(
|
|
1685
1685
|
"content-card",
|
|
1686
|
-
{ "content-card--block":
|
|
1686
|
+
{ "content-card--block": c },
|
|
1687
1687
|
`content-card--${h}`,
|
|
1688
1688
|
t
|
|
1689
1689
|
),
|
|
1690
|
-
...
|
|
1690
|
+
...d,
|
|
1691
1691
|
children: [
|
|
1692
1692
|
i && /* @__PURE__ */ o("div", { className: u("content-card__header", r), children: typeof i == "string" ? /* @__PURE__ */ o("h3", { children: i }) : i }),
|
|
1693
1693
|
/* @__PURE__ */ o(
|
|
@@ -1702,8 +1702,8 @@ const j = {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
|
-
},
|
|
1706
|
-
children:
|
|
1705
|
+
}, U1 = x(C1), L1 = ({
|
|
1706
|
+
children: c,
|
|
1707
1707
|
className: e,
|
|
1708
1708
|
colGap: t = 2,
|
|
1709
1709
|
direction: a = "col",
|
|
@@ -1712,9 +1712,9 @@ const j = {
|
|
|
1712
1712
|
props: i = {},
|
|
1713
1713
|
rowGap: r = 1,
|
|
1714
1714
|
value: l,
|
|
1715
|
-
valueClass:
|
|
1715
|
+
valueClass: d,
|
|
1716
1716
|
wrap: h = !1
|
|
1717
|
-
}) => /* @__PURE__ */
|
|
1717
|
+
}) => /* @__PURE__ */ M(
|
|
1718
1718
|
"div",
|
|
1719
1719
|
{
|
|
1720
1720
|
className: u(
|
|
@@ -1733,12 +1733,12 @@ const j = {
|
|
|
1733
1733
|
...i,
|
|
1734
1734
|
children: [
|
|
1735
1735
|
n && /* @__PURE__ */ o("div", { className: u("item-label", s), children: n }),
|
|
1736
|
-
l && /* @__PURE__ */ o("div", { className: u("item-value",
|
|
1737
|
-
|
|
1736
|
+
l && /* @__PURE__ */ o("div", { className: u("item-value", d), children: l }),
|
|
1737
|
+
c
|
|
1738
1738
|
]
|
|
1739
1739
|
}
|
|
1740
1740
|
), J1 = x(L1), g1 = ({
|
|
1741
|
-
breakPage:
|
|
1741
|
+
breakPage: c = !1,
|
|
1742
1742
|
children: e,
|
|
1743
1743
|
className: t,
|
|
1744
1744
|
noPrint: a = !1,
|
|
@@ -1746,14 +1746,14 @@ const j = {
|
|
|
1746
1746
|
title: s,
|
|
1747
1747
|
titleClass: i,
|
|
1748
1748
|
titleId: r
|
|
1749
|
-
}) => /* @__PURE__ */
|
|
1749
|
+
}) => /* @__PURE__ */ M(
|
|
1750
1750
|
"section",
|
|
1751
1751
|
{
|
|
1752
1752
|
className: u(
|
|
1753
1753
|
"spacer",
|
|
1754
1754
|
{
|
|
1755
1755
|
"print:!hidden": a,
|
|
1756
|
-
"print:!break-before-page":
|
|
1756
|
+
"print:!break-before-page": c
|
|
1757
1757
|
},
|
|
1758
1758
|
t
|
|
1759
1759
|
),
|
|
@@ -1763,14 +1763,14 @@ const j = {
|
|
|
1763
1763
|
e
|
|
1764
1764
|
]
|
|
1765
1765
|
}
|
|
1766
|
-
), Y1 = g1, M1 = ({ children:
|
|
1766
|
+
), Y1 = g1, M1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: u("stacked-list", e), children: c }), K1 = M1, v1 = ({ children: c, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
|
|
1767
1767
|
t,
|
|
1768
1768
|
{
|
|
1769
1769
|
className: u(
|
|
1770
1770
|
"!header-3-medium text-center mb-6 flex items-center justify-center",
|
|
1771
1771
|
e
|
|
1772
1772
|
),
|
|
1773
|
-
children: a ||
|
|
1773
|
+
children: a || c
|
|
1774
1774
|
}
|
|
1775
1775
|
), X1 = x(v1), _1 = {
|
|
1776
1776
|
theme: {
|
|
@@ -2019,7 +2019,7 @@ const j = {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
},
|
|
2021
2021
|
plugins: [
|
|
2022
|
-
({ addUtilities:
|
|
2022
|
+
({ addUtilities: c, matchUtilities: e, theme: t, e: a }) => {
|
|
2023
2023
|
const n = {}, s = ["2", "5"], i = {
|
|
2024
2024
|
light: "300",
|
|
2025
2025
|
normal: "400",
|
|
@@ -2033,22 +2033,22 @@ const j = {
|
|
|
2033
2033
|
3: "1.25rem",
|
|
2034
2034
|
4: "1.125rem",
|
|
2035
2035
|
5: "1rem"
|
|
2036
|
-
}).forEach(([l,
|
|
2036
|
+
}).forEach(([l, d]) => {
|
|
2037
2037
|
const h = {
|
|
2038
|
-
"font-size":
|
|
2038
|
+
"font-size": d,
|
|
2039
2039
|
"line-height": "1.5"
|
|
2040
2040
|
}, p = `.${a(`header-${l}`)}`;
|
|
2041
2041
|
n[p] = {
|
|
2042
2042
|
...h,
|
|
2043
2043
|
"font-weight": s.includes(l) ? i.semibold : i.bold
|
|
2044
|
-
}, Object.entries(i).forEach(([
|
|
2045
|
-
const b = `.${a(`header-${l}-${
|
|
2044
|
+
}, Object.entries(i).forEach(([V, g]) => {
|
|
2045
|
+
const b = `.${a(`header-${l}-${V}`)}`;
|
|
2046
2046
|
n[b] = {
|
|
2047
2047
|
...h,
|
|
2048
|
-
"font-weight":
|
|
2048
|
+
"font-weight": g
|
|
2049
2049
|
};
|
|
2050
2050
|
});
|
|
2051
|
-
}),
|
|
2051
|
+
}), c(n), e(
|
|
2052
2052
|
{
|
|
2053
2053
|
aspect: (l) => ({
|
|
2054
2054
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2155,8 +2155,8 @@ const j = {
|
|
|
2155
2155
|
touchAction: !1
|
|
2156
2156
|
}
|
|
2157
2157
|
};
|
|
2158
|
-
function b1(
|
|
2159
|
-
return new Proxy(
|
|
2158
|
+
function b1(c, e = []) {
|
|
2159
|
+
return new Proxy(c, {
|
|
2160
2160
|
get: function(t, a) {
|
|
2161
2161
|
return t[a];
|
|
2162
2162
|
},
|
|
@@ -2166,30 +2166,30 @@ function b1(d, e = []) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
|
-
function e2(
|
|
2170
|
-
e.length && (
|
|
2169
|
+
function e2(c, e = []) {
|
|
2170
|
+
e.length && (c == null || c.classList.add(...e));
|
|
2171
2171
|
}
|
|
2172
|
-
function t2(
|
|
2173
|
-
e.length && (
|
|
2172
|
+
function t2(c, e = []) {
|
|
2173
|
+
e.length && (c == null || c.classList.remove(...e));
|
|
2174
2174
|
}
|
|
2175
|
-
function a2({ cb:
|
|
2175
|
+
function a2({ cb: c, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2176
2176
|
let s = !0;
|
|
2177
2177
|
for (const [i, r] of t.entries()) {
|
|
2178
|
-
const l = e.querySelector(`[name="${i}"]`),
|
|
2179
|
-
|
|
2178
|
+
const l = e.querySelector(`[name="${i}"]`), d = a[i], h = [];
|
|
2179
|
+
d.forEach((p) => {
|
|
2180
2180
|
p.isValid(r) || h.push(p.message);
|
|
2181
|
-
}), h.length ? (s = !1, l.classList.add("field-error"),
|
|
2181
|
+
}), h.length ? (s = !1, l.classList.add("field-error"), c && c({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), c && c({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (p) => {
|
|
2182
2182
|
p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
2183
2183
|
}));
|
|
2184
2184
|
}
|
|
2185
2185
|
return s;
|
|
2186
2186
|
}
|
|
2187
|
-
function n2(
|
|
2187
|
+
function n2(c) {
|
|
2188
2188
|
const e = (
|
|
2189
2189
|
// eslint-disable-next-line
|
|
2190
2190
|
/(?:[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])+)\])/
|
|
2191
2191
|
), t = /[^a-zA-Z]+$/;
|
|
2192
|
-
return e.test(
|
|
2192
|
+
return e.test(c.toLowerCase()) && !t.test(c);
|
|
2193
2193
|
}
|
|
2194
2194
|
class s2 {
|
|
2195
2195
|
init(e) {
|
|
@@ -2237,12 +2237,12 @@ class s2 {
|
|
|
2237
2237
|
(l) => l.isIntersecting === !0
|
|
2238
2238
|
);
|
|
2239
2239
|
s && i ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
|
|
2240
|
-
const
|
|
2241
|
-
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(
|
|
2240
|
+
const d = [...a.slides].indexOf(l.target);
|
|
2241
|
+
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(d) && (a.entriesIntersected.push(d), a.activeIndex = d, r(l));
|
|
2242
2242
|
}));
|
|
2243
2243
|
function r(l) {
|
|
2244
|
-
var
|
|
2245
|
-
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((
|
|
2244
|
+
var d;
|
|
2245
|
+
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((d = a.observer) == null || d.unobserve(l.target));
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
2248
|
btnListeners(e) {
|
|
@@ -2269,7 +2269,7 @@ class s2 {
|
|
|
2269
2269
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2270
2270
|
`#btn-right-${a}`
|
|
2271
2271
|
);
|
|
2272
|
-
const r = t.map((
|
|
2272
|
+
const r = t.map((d) => n(d)).join(""), l = document.createElement("div");
|
|
2273
2273
|
l.innerHTML = `${s}${r}${i}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
|
|
2274
2274
|
}
|
|
2275
2275
|
showHideBtns(e, t, a) {
|
|
@@ -2280,10 +2280,10 @@ class s2 {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
class
|
|
2283
|
+
class H {
|
|
2284
2284
|
static calcCrow(e, t, a, n) {
|
|
2285
|
-
const i =
|
|
2286
|
-
e =
|
|
2285
|
+
const i = H.toRad(a - e), r = H.toRad(n - t);
|
|
2286
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
2287
2287
|
const l = Math.sin(i / 2) * Math.sin(i / 2) + Math.sin(r / 2) * Math.sin(r / 2) * Math.cos(e) * Math.cos(a);
|
|
2288
2288
|
return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
|
|
2289
2289
|
}
|
|
@@ -2298,9 +2298,9 @@ class C {
|
|
|
2298
2298
|
return;
|
|
2299
2299
|
window.dataLayer = window.dataLayer || [];
|
|
2300
2300
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2301
|
-
typeof
|
|
2301
|
+
typeof H == "function" && t.forEach((a) => {
|
|
2302
2302
|
a.addEventListener("click", () => {
|
|
2303
|
-
|
|
2303
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
2304
2304
|
});
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
@@ -2313,21 +2313,21 @@ class C {
|
|
|
2313
2313
|
static async createData(e, t = null, a = !0) {
|
|
2314
2314
|
if (window.options.isBot || !t)
|
|
2315
2315
|
return null;
|
|
2316
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2316
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, r = e + i, l = typeof t == "string" ? t : JSON.stringify(t);
|
|
2317
2317
|
try {
|
|
2318
|
-
const
|
|
2318
|
+
const d = await fetch(r, {
|
|
2319
2319
|
method: "POST",
|
|
2320
2320
|
body: l === "null" ? null : l,
|
|
2321
2321
|
headers: {
|
|
2322
|
-
website:
|
|
2322
|
+
website: H.getWebsiteHeaderName()
|
|
2323
2323
|
}
|
|
2324
|
-
}), h =
|
|
2324
|
+
}), h = d.headers.get("content-type");
|
|
2325
2325
|
if (h && h.indexOf("application/json") !== -1)
|
|
2326
|
-
return
|
|
2327
|
-
const p = await
|
|
2326
|
+
return d.json();
|
|
2327
|
+
const p = await d.text();
|
|
2328
2328
|
return p ? p.replace("__next", "") : null;
|
|
2329
|
-
} catch (
|
|
2330
|
-
console.error("createData",
|
|
2329
|
+
} catch (d) {
|
|
2330
|
+
console.error("createData", d);
|
|
2331
2331
|
}
|
|
2332
2332
|
return null;
|
|
2333
2333
|
}
|
|
@@ -2336,7 +2336,7 @@ class C {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2338
2338
|
try {
|
|
2339
|
-
return await
|
|
2339
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
2340
2340
|
} catch (t) {
|
|
2341
2341
|
console.error("deleteSearchValue", t.message);
|
|
2342
2342
|
}
|
|
@@ -2387,15 +2387,15 @@ class C {
|
|
|
2387
2387
|
static async fetchData(e, t = !1, a = !0) {
|
|
2388
2388
|
if (options.isBot)
|
|
2389
2389
|
return null;
|
|
2390
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2390
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), r = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2391
2391
|
try {
|
|
2392
2392
|
const l = await fetch(r, { method: "GET" });
|
|
2393
2393
|
if (t === !0) {
|
|
2394
2394
|
const h = await l.text();
|
|
2395
2395
|
return h ? h.replace("__next", "") : null;
|
|
2396
2396
|
}
|
|
2397
|
-
const
|
|
2398
|
-
return
|
|
2397
|
+
const d = l.headers.get("content-type");
|
|
2398
|
+
return d && d.indexOf("application/json") !== -1 ? l.json() : null;
|
|
2399
2399
|
} catch (l) {
|
|
2400
2400
|
console.error("fetchData", l, e);
|
|
2401
2401
|
}
|
|
@@ -2407,8 +2407,8 @@ class C {
|
|
|
2407
2407
|
}
|
|
2408
2408
|
static formatDate(e = null) {
|
|
2409
2409
|
return e ? (e = new Date(e), [
|
|
2410
|
-
|
|
2411
|
-
|
|
2410
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
2411
|
+
H.padTo2Digits(e.getDate()),
|
|
2412
2412
|
e.getFullYear()
|
|
2413
2413
|
].join("-")) : null;
|
|
2414
2414
|
}
|
|
@@ -2473,10 +2473,10 @@ class C {
|
|
|
2473
2473
|
return i;
|
|
2474
2474
|
const r = localStorage.getItem("headerTolken");
|
|
2475
2475
|
if (r) {
|
|
2476
|
-
const
|
|
2477
|
-
return
|
|
2478
|
-
tolken:
|
|
2479
|
-
ip:
|
|
2476
|
+
const d = JSON.parse(r), h = (/* @__PURE__ */ new Date()).getTime();
|
|
2477
|
+
return d.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
2478
|
+
tolken: d.tolken,
|
|
2479
|
+
ip: d.ip,
|
|
2480
2480
|
userAgent: t,
|
|
2481
2481
|
platform: s
|
|
2482
2482
|
};
|
|
@@ -2484,17 +2484,17 @@ class C {
|
|
|
2484
2484
|
if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
|
|
2485
2485
|
return i;
|
|
2486
2486
|
try {
|
|
2487
|
-
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null,
|
|
2487
|
+
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
|
|
2488
2488
|
return localStorage.setItem(
|
|
2489
2489
|
"headerTolken",
|
|
2490
2490
|
JSON.stringify({
|
|
2491
2491
|
tolken: p,
|
|
2492
|
-
ip:
|
|
2492
|
+
ip: V,
|
|
2493
2493
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2494
2494
|
})
|
|
2495
|
-
), { tolken: p, ip:
|
|
2496
|
-
} catch (
|
|
2497
|
-
console.error("getHeaders",
|
|
2495
|
+
), { tolken: p, ip: V, userAgent: t, platform: s };
|
|
2496
|
+
} catch (d) {
|
|
2497
|
+
console.error("getHeaders", d);
|
|
2498
2498
|
}
|
|
2499
2499
|
return i;
|
|
2500
2500
|
}
|
|
@@ -2505,19 +2505,19 @@ class C {
|
|
|
2505
2505
|
}[e];
|
|
2506
2506
|
}
|
|
2507
2507
|
static async getLocationData(e) {
|
|
2508
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2509
|
-
return await
|
|
2508
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), i = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2509
|
+
return await H.fetchData("/api/client?query=" + i);
|
|
2510
2510
|
}
|
|
2511
2511
|
static getReportUrl(e, t = null) {
|
|
2512
|
-
var l,
|
|
2513
|
-
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((
|
|
2512
|
+
var l, d, h;
|
|
2513
|
+
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((d = e == null ? void 0 : e.city) == null ? void 0 : d.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, i = (e == null ? void 0 : e.zip) ?? null;
|
|
2514
2514
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2515
2515
|
const r = [i, "-piq", t].filter((p) => p).join("");
|
|
2516
|
-
return "/" + [a, n, s].filter((p) => p).map((p) =>
|
|
2516
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + r;
|
|
2517
2517
|
}
|
|
2518
2518
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2519
2519
|
try {
|
|
2520
|
-
return await
|
|
2520
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
2521
2521
|
} catch (t) {
|
|
2522
2522
|
console.error("getSearchValue", t.message);
|
|
2523
2523
|
}
|
|
@@ -2645,7 +2645,7 @@ class C {
|
|
|
2645
2645
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2646
2646
|
return null;
|
|
2647
2647
|
try {
|
|
2648
|
-
return await
|
|
2648
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
2649
2649
|
} catch (t) {
|
|
2650
2650
|
console.error("getUser", t.message);
|
|
2651
2651
|
}
|
|
@@ -2661,7 +2661,7 @@ class C {
|
|
|
2661
2661
|
uuid: t
|
|
2662
2662
|
}
|
|
2663
2663
|
});
|
|
2664
|
-
return await
|
|
2664
|
+
return await H.makeSearchFetchCall(
|
|
2665
2665
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2666
2666
|
);
|
|
2667
2667
|
}
|
|
@@ -2683,7 +2683,7 @@ class C {
|
|
|
2683
2683
|
const r = document.createElement("div");
|
|
2684
2684
|
return setTimeout(() => {
|
|
2685
2685
|
i(null, r);
|
|
2686
|
-
const { se: l, nw:
|
|
2686
|
+
const { se: l, nw: d } = n.getGridBounds({
|
|
2687
2687
|
map: e,
|
|
2688
2688
|
tileSize: this.getTileSize(),
|
|
2689
2689
|
coords: s
|
|
@@ -2691,8 +2691,8 @@ class C {
|
|
|
2691
2691
|
t({
|
|
2692
2692
|
swLat: l.lat,
|
|
2693
2693
|
neLng: l.lng,
|
|
2694
|
-
neLat:
|
|
2695
|
-
swLng:
|
|
2694
|
+
neLat: d.lat,
|
|
2695
|
+
swLng: d.lng,
|
|
2696
2696
|
coords: s,
|
|
2697
2697
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2698
2698
|
});
|
|
@@ -2719,7 +2719,7 @@ class C {
|
|
|
2719
2719
|
onClose: n = null,
|
|
2720
2720
|
disableOutsideClick: s = !1
|
|
2721
2721
|
}) {
|
|
2722
|
-
const i = e ? document.querySelectorAll(e) : [], r = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"),
|
|
2722
|
+
const i = e ? document.querySelectorAll(e) : [], r = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"), d = [
|
|
2723
2723
|
"closing",
|
|
2724
2724
|
"closed",
|
|
2725
2725
|
"opening",
|
|
@@ -2727,23 +2727,23 @@ class C {
|
|
|
2727
2727
|
"outside",
|
|
2728
2728
|
"removed"
|
|
2729
2729
|
].reduce(
|
|
2730
|
-
(m,
|
|
2730
|
+
(m, f) => ({
|
|
2731
2731
|
...m,
|
|
2732
|
-
[
|
|
2732
|
+
[f]: new Event(f)
|
|
2733
2733
|
}),
|
|
2734
2734
|
{}
|
|
2735
|
-
), h = new MutationObserver((m,
|
|
2735
|
+
), h = new MutationObserver((m, f) => {
|
|
2736
2736
|
m.forEach(async (w) => {
|
|
2737
2737
|
if (w.attributeName === "open") {
|
|
2738
2738
|
const v = w.target;
|
|
2739
2739
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2740
|
-
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(
|
|
2740
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(d.opening), v && await C(v), v == null || v.dispatchEvent(d.opened);
|
|
2741
2741
|
}
|
|
2742
2742
|
});
|
|
2743
|
-
}), p = new MutationObserver((m,
|
|
2743
|
+
}), p = new MutationObserver((m, f) => {
|
|
2744
2744
|
m.forEach((w) => {
|
|
2745
2745
|
w.removedNodes.forEach((v) => {
|
|
2746
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close",
|
|
2746
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", g), v.dispatchEvent(d.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
2747
2747
|
});
|
|
2748
2748
|
});
|
|
2749
2749
|
});
|
|
@@ -2754,32 +2754,32 @@ class C {
|
|
|
2754
2754
|
subtree: !1,
|
|
2755
2755
|
childList: !0
|
|
2756
2756
|
}));
|
|
2757
|
-
const
|
|
2757
|
+
const V = () => {
|
|
2758
2758
|
r == null || r.showModal();
|
|
2759
|
-
},
|
|
2760
|
-
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(
|
|
2759
|
+
}, g = async ({ target: m }) => {
|
|
2760
|
+
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(d.closing), m && await C(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(d.closed);
|
|
2761
2761
|
}, b = async ({ target: m }) => {
|
|
2762
|
-
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(
|
|
2763
|
-
},
|
|
2764
|
-
m == null ? void 0 : m.getAnimations().map((
|
|
2762
|
+
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(d.outside), r == null || r.close("outside"));
|
|
2763
|
+
}, C = (m) => Promise.allSettled(
|
|
2764
|
+
m == null ? void 0 : m.getAnimations().map((f) => f == null ? void 0 : f.finished)
|
|
2765
2765
|
);
|
|
2766
|
-
return !s && (r == null || r.addEventListener("click", b)), r == null || r.addEventListener("close",
|
|
2767
|
-
m.addEventListener("click", (
|
|
2768
|
-
|
|
2766
|
+
return !s && (r == null || r.addEventListener("click", b)), r == null || r.addEventListener("close", g), i == null || i.forEach((m) => {
|
|
2767
|
+
m.addEventListener("click", (f) => {
|
|
2768
|
+
V(), a && a(f, r);
|
|
2769
2769
|
});
|
|
2770
2770
|
}), l == null || l.forEach((m) => {
|
|
2771
|
-
m.addEventListener("click", async (
|
|
2772
|
-
r == null || r.close("close"), n && n(
|
|
2771
|
+
m.addEventListener("click", async (f) => {
|
|
2772
|
+
r == null || r.close("close"), n && n(f, r);
|
|
2773
2773
|
});
|
|
2774
2774
|
}), {
|
|
2775
2775
|
activators: i,
|
|
2776
2776
|
ref: r,
|
|
2777
|
-
handleOpen:
|
|
2778
|
-
handleClose:
|
|
2777
|
+
handleOpen: V,
|
|
2778
|
+
handleClose: g
|
|
2779
2779
|
};
|
|
2780
2780
|
}
|
|
2781
2781
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2782
|
-
return
|
|
2782
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2783
2783
|
}
|
|
2784
2784
|
static initObserver(e, t, a = null) {
|
|
2785
2785
|
if (!e)
|
|
@@ -2838,7 +2838,7 @@ class C {
|
|
|
2838
2838
|
url: n,
|
|
2839
2839
|
data: s
|
|
2840
2840
|
};
|
|
2841
|
-
return await
|
|
2841
|
+
return await H.createData("/api/client?query=log/save&method=POST", i), null;
|
|
2842
2842
|
}
|
|
2843
2843
|
static loadAds() {
|
|
2844
2844
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2855,7 +2855,7 @@ class C {
|
|
|
2855
2855
|
if (e) {
|
|
2856
2856
|
const n = "/scripts/" + e + ".js?v=100.0.5";
|
|
2857
2857
|
try {
|
|
2858
|
-
return await
|
|
2858
|
+
return await H.injectScript({
|
|
2859
2859
|
src: n,
|
|
2860
2860
|
id: t || e,
|
|
2861
2861
|
async: !1,
|
|
@@ -2871,11 +2871,11 @@ class C {
|
|
|
2871
2871
|
if (window.options.googleMapsLoaded === !0)
|
|
2872
2872
|
return;
|
|
2873
2873
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2874
|
-
await
|
|
2874
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2875
2875
|
}
|
|
2876
2876
|
static async loadLeafletApi() {
|
|
2877
2877
|
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", s = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
|
|
2878
|
-
await
|
|
2878
|
+
await H.injectLink({ href: a, id: "leafletCss" }), await H.injectLink({ href: s, id: "gestureCss" }), await H.injectScript({ src: t, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2879
2879
|
src: n,
|
|
2880
2880
|
id: "gestureJs",
|
|
2881
2881
|
async: !1
|
|
@@ -2890,7 +2890,7 @@ class C {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
static async loadSwiper() {
|
|
2892
2892
|
const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
|
|
2893
|
-
await
|
|
2893
|
+
await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
|
|
2894
2894
|
}
|
|
2895
2895
|
static async makeSearchFetchCall(e) {
|
|
2896
2896
|
try {
|
|
@@ -2926,14 +2926,14 @@ class C {
|
|
|
2926
2926
|
min: i = null,
|
|
2927
2927
|
max: r = null,
|
|
2928
2928
|
city: l = null,
|
|
2929
|
-
state:
|
|
2929
|
+
state: d = null,
|
|
2930
2930
|
vin: h = null,
|
|
2931
2931
|
license: p = null,
|
|
2932
|
-
token:
|
|
2933
|
-
phone:
|
|
2934
|
-
} = e || {}, b = t && t !== "",
|
|
2935
|
-
let
|
|
2936
|
-
return t && t !== "" &&
|
|
2932
|
+
token: V = null,
|
|
2933
|
+
phone: g = null
|
|
2934
|
+
} = e || {}, b = t && t !== "", C = i && i !== "" && i !== "18", m = r && r !== "" && i !== "99";
|
|
2935
|
+
let f = [];
|
|
2936
|
+
return t && t !== "" && f.push("name=" + t), b || (a && a !== "" && f.push("first=" + a), n && n !== "" && f.push("middle=" + n), s && s !== "" && f.push("last=" + s)), C && m ? parseInt(i) > parseInt(r) ? (f.push("min=" + r), f.push("max=" + i)) : (f.push("min=" + i), f.push("max=" + r)) : (C && f.push("min=" + i), m && f.push("max=" + r)), g && g !== "" && f.push("phone=" + g), l && l !== "" && f.push("city=" + l), p && p !== "" && f.push("license=" + p), h && h !== "" && f.push("vin=" + h), d && d !== "" && f.push("state=" + d), V && V !== "" && f.push("token=" + V), f.join("&");
|
|
2937
2937
|
}
|
|
2938
2938
|
static padTo2Digits(e) {
|
|
2939
2939
|
return e.toString().padStart(2, "0");
|
|
@@ -2949,18 +2949,20 @@ class C {
|
|
|
2949
2949
|
useCityStateSearch: s = !1,
|
|
2950
2950
|
useSearch: i = !1,
|
|
2951
2951
|
useLocation: r = !0,
|
|
2952
|
-
state: l = ""
|
|
2953
|
-
|
|
2952
|
+
state: l = "",
|
|
2953
|
+
useGoogle: d = !1
|
|
2954
|
+
} = t ?? {}, { tolken: h = null, ip: p = null } = await H.getHeaders(), g = [
|
|
2954
2955
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2955
2956
|
"addressesOnly=" + a,
|
|
2956
2957
|
"useSearch=" + i,
|
|
2957
2958
|
"useCitySearch=" + n,
|
|
2958
2959
|
"useCityStateSearch=" + s,
|
|
2959
|
-
"useLocation=" + r
|
|
2960
|
+
"useLocation=" + r,
|
|
2961
|
+
"useGoogle=" + d
|
|
2960
2962
|
];
|
|
2961
|
-
l && l !== "" && !s &&
|
|
2962
|
-
const
|
|
2963
|
-
return await
|
|
2963
|
+
l && l !== "" && !s && g.push("state=" + l), h && h !== "" && g.push("tolken=" + h), p && p !== "" && g.push("ip=" + p);
|
|
2964
|
+
const b = g.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
|
|
2965
|
+
return await H.makeSearchFetchCall(m);
|
|
2964
2966
|
}
|
|
2965
2967
|
static removeElements(e) {
|
|
2966
2968
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -2979,7 +2981,7 @@ class C {
|
|
|
2979
2981
|
});
|
|
2980
2982
|
}
|
|
2981
2983
|
static searchInStates(e) {
|
|
2982
|
-
const t =
|
|
2984
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
2983
2985
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
2984
2986
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
2985
2987
|
}
|
|
@@ -2987,7 +2989,7 @@ class C {
|
|
|
2987
2989
|
typeof woopra == "object" && woopra.track(e, t);
|
|
2988
2990
|
}
|
|
2989
2991
|
static setBoundsEntries(e, t = "bounds") {
|
|
2990
|
-
const a =
|
|
2992
|
+
const a = H.getBoundsEntries(t);
|
|
2991
2993
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
2992
2994
|
}
|
|
2993
2995
|
static async setCityState(e = null) {
|
|
@@ -2996,7 +2998,7 @@ class C {
|
|
|
2996
2998
|
return e;
|
|
2997
2999
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2998
3000
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
2999
|
-
if (
|
|
3001
|
+
if (H.getStates(), a && !n) {
|
|
3000
3002
|
const s = this.searchInStates(a);
|
|
3001
3003
|
s && (a = null, n = s.short);
|
|
3002
3004
|
}
|
|
@@ -3014,7 +3016,7 @@ class C {
|
|
|
3014
3016
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3015
3017
|
}
|
|
3016
3018
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3017
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3019
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
3018
3020
|
}
|
|
3019
3021
|
static stickyHeader(e = ".nav") {
|
|
3020
3022
|
const t = document.querySelector(e);
|
|
@@ -3041,7 +3043,7 @@ class C {
|
|
|
3041
3043
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3042
3044
|
}
|
|
3043
3045
|
static useLayerTitle(e, t) {
|
|
3044
|
-
const a =
|
|
3046
|
+
const a = H.getLayerTitle(e);
|
|
3045
3047
|
L.tileLayer(a, {
|
|
3046
3048
|
maxNativeZoom: 19,
|
|
3047
3049
|
maxZoom: 25,
|
|
@@ -3050,7 +3052,7 @@ class C {
|
|
|
3050
3052
|
}).addTo(t);
|
|
3051
3053
|
}
|
|
3052
3054
|
static ucWords(e) {
|
|
3053
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3055
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
3054
3056
|
}
|
|
3055
3057
|
}
|
|
3056
3058
|
export {
|
|
@@ -3063,10 +3065,10 @@ export {
|
|
|
3063
3065
|
Z1 as Card,
|
|
3064
3066
|
s2 as CardSlider,
|
|
3065
3067
|
E1 as Checkbox,
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
+
H as Common,
|
|
3069
|
+
Q1 as ContactForm,
|
|
3068
3070
|
F1 as Container,
|
|
3069
|
-
|
|
3071
|
+
U1 as ContentCard,
|
|
3070
3072
|
B1 as Dialog,
|
|
3071
3073
|
D1 as DialogOld,
|
|
3072
3074
|
$1 as Dots,
|
|
@@ -3083,7 +3085,7 @@ export {
|
|
|
3083
3085
|
Y1 as Spacer,
|
|
3084
3086
|
I1 as Spinner,
|
|
3085
3087
|
K1 as StackedListItem,
|
|
3086
|
-
|
|
3088
|
+
G1 as Stars,
|
|
3087
3089
|
f1 as TextArea,
|
|
3088
3090
|
F as Textbox,
|
|
3089
3091
|
e2 as addClass,
|