@vehiclehistory/property-lib 0.0.52 → 0.0.53
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 +479 -448
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
|
-
import { memo as x, useState as
|
|
2
|
+
import { memo as x, useState as E, useEffect as Z, useRef as q } from "react";
|
|
3
3
|
import u from "classnames";
|
|
4
4
|
const j = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
@@ -473,41 +473,41 @@ 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 = (d) => P[d], W = ({
|
|
477
|
+
color: d = "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), [
|
|
484
|
-
return
|
|
485
|
-
|
|
486
|
-
}, [s]),
|
|
487
|
-
|
|
488
|
-
}, [
|
|
483
|
+
const s = R(t), [r, l] = E(d), [i, c] = E(s);
|
|
484
|
+
return Z(() => {
|
|
485
|
+
c(s);
|
|
486
|
+
}, [s]), Z(() => {
|
|
487
|
+
l(d);
|
|
488
|
+
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
489
489
|
"svg",
|
|
490
490
|
{
|
|
491
491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
492
|
-
className: `${j[a]} fill-current flex-shrink-0 ${
|
|
492
|
+
className: `${j[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
|
|
493
493
|
style: { maxWidth: "4em" },
|
|
494
494
|
role: "presentation",
|
|
495
495
|
viewBox: n,
|
|
496
496
|
dangerouslySetInnerHTML: {
|
|
497
|
-
__html:
|
|
497
|
+
__html: i && i.path
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
);
|
|
501
|
-
}, y = x(W),
|
|
502
|
-
children:
|
|
501
|
+
}, y = x(W), U = ({
|
|
502
|
+
children: d,
|
|
503
503
|
className: e,
|
|
504
504
|
clickHandler: t,
|
|
505
505
|
panelClass: a,
|
|
506
506
|
title: n,
|
|
507
507
|
unmount: s = !0,
|
|
508
|
-
isOpen:
|
|
508
|
+
isOpen: r = !1
|
|
509
509
|
}) => {
|
|
510
|
-
const [
|
|
510
|
+
const [l, i] = E(r);
|
|
511
511
|
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(S, { children: [
|
|
512
512
|
/* @__PURE__ */ M(
|
|
513
513
|
"button",
|
|
@@ -517,12 +517,12 @@ const j = {
|
|
|
517
517
|
className: u(
|
|
518
518
|
"acc-a flex w-full justify-between items-center bg-gray-50 px-4 py-2 text-left font-medium text-slate-700 border border-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75",
|
|
519
519
|
{
|
|
520
|
-
"acc-o":
|
|
520
|
+
"acc-o": l
|
|
521
521
|
}
|
|
522
522
|
),
|
|
523
523
|
title: n,
|
|
524
524
|
onClick: () => {
|
|
525
|
-
|
|
525
|
+
i(!l), t && t(!l);
|
|
526
526
|
},
|
|
527
527
|
children: [
|
|
528
528
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
@@ -537,14 +537,14 @@ const j = {
|
|
|
537
537
|
]
|
|
538
538
|
}
|
|
539
539
|
),
|
|
540
|
-
s &&
|
|
540
|
+
s && l && /* @__PURE__ */ o(
|
|
541
541
|
"div",
|
|
542
542
|
{
|
|
543
543
|
className: u(
|
|
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: d
|
|
548
548
|
}
|
|
549
549
|
),
|
|
550
550
|
!s && /* @__PURE__ */ o(
|
|
@@ -553,22 +553,22 @@ const j = {
|
|
|
553
553
|
className: u(
|
|
554
554
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
555
555
|
a,
|
|
556
|
-
{ hidden: !
|
|
556
|
+
{ hidden: !l }
|
|
557
557
|
),
|
|
558
|
-
children:
|
|
558
|
+
children: d
|
|
559
559
|
}
|
|
560
560
|
)
|
|
561
561
|
] }) });
|
|
562
|
-
}, w1 = x(
|
|
563
|
-
children:
|
|
562
|
+
}, w1 = x(U), G = ({
|
|
563
|
+
children: d,
|
|
564
564
|
className: e = "",
|
|
565
565
|
messages: t = [],
|
|
566
566
|
title: a = "",
|
|
567
567
|
titleClass: n = "",
|
|
568
568
|
props: s = {},
|
|
569
|
-
type:
|
|
569
|
+
type: r = "error"
|
|
570
570
|
}) => {
|
|
571
|
-
const
|
|
571
|
+
const l = {
|
|
572
572
|
error: {
|
|
573
573
|
icon: "error",
|
|
574
574
|
iconColor: "text-red-500",
|
|
@@ -589,11 +589,11 @@ const j = {
|
|
|
589
589
|
iconColor: "text-yellow-500",
|
|
590
590
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
591
591
|
}
|
|
592
|
-
}, { icon:
|
|
592
|
+
}, { icon: i, iconColor: c, styles: h } = l[r];
|
|
593
593
|
return /* @__PURE__ */ o(
|
|
594
594
|
"div",
|
|
595
595
|
{
|
|
596
|
-
id:
|
|
596
|
+
id: r,
|
|
597
597
|
className: u(
|
|
598
598
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
599
599
|
h,
|
|
@@ -604,36 +604,36 @@ const j = {
|
|
|
604
604
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
605
605
|
y,
|
|
606
606
|
{
|
|
607
|
-
name:
|
|
607
|
+
name: i,
|
|
608
608
|
viewBox: "0 0 24 24",
|
|
609
|
-
className:
|
|
609
|
+
className: c,
|
|
610
610
|
size: "xSmall"
|
|
611
611
|
}
|
|
612
612
|
) }),
|
|
613
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, H) => /* @__PURE__ */ o("li", { children: p }, H)) }) }) : ""
|
|
616
616
|
] })
|
|
617
617
|
] })
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
}, k1 = x(
|
|
621
|
-
autoFocus:
|
|
620
|
+
}, k1 = x(G), Q = ({
|
|
621
|
+
autoFocus: d = !1,
|
|
622
622
|
className: e = "",
|
|
623
623
|
dataSearch: t = "container",
|
|
624
624
|
defaultValue: a = "",
|
|
625
625
|
floatingLabel: n = "",
|
|
626
626
|
id: s = "",
|
|
627
|
-
inputClass:
|
|
628
|
-
leftIcon:
|
|
629
|
-
mobileBackdrop:
|
|
630
|
-
name:
|
|
627
|
+
inputClass: r = "",
|
|
628
|
+
leftIcon: l = "homeSearch",
|
|
629
|
+
mobileBackdrop: i = !1,
|
|
630
|
+
name: c = "",
|
|
631
631
|
options: h = [],
|
|
632
632
|
placeholder: p = "",
|
|
633
|
-
props:
|
|
633
|
+
props: H = {},
|
|
634
634
|
required: g = !1,
|
|
635
635
|
showSearchIcon: b = !0,
|
|
636
|
-
size:
|
|
636
|
+
size: V = "medium",
|
|
637
637
|
styles: m = null,
|
|
638
638
|
title: f = "",
|
|
639
639
|
type: w
|
|
@@ -652,7 +652,7 @@ const j = {
|
|
|
652
652
|
className: u(
|
|
653
653
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
654
654
|
{
|
|
655
|
-
"pointer-events-none":
|
|
655
|
+
"pointer-events-none": i
|
|
656
656
|
}
|
|
657
657
|
),
|
|
658
658
|
children: [
|
|
@@ -660,8 +660,8 @@ const j = {
|
|
|
660
660
|
y,
|
|
661
661
|
{
|
|
662
662
|
className: "home-search select-none text-gray-500",
|
|
663
|
-
name:
|
|
664
|
-
size:
|
|
663
|
+
name: l,
|
|
664
|
+
size: V === "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: V === "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: d,
|
|
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": V === "medium",
|
|
690
|
+
"px-4 h-12": V === "large",
|
|
691
|
+
"px-5 h-[60px] sm:!text-base": V === "xLarge",
|
|
692
692
|
peer: n
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
r
|
|
695
695
|
),
|
|
696
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: c || "search-input",
|
|
702
702
|
"data-id": "search-input",
|
|
703
|
-
...
|
|
703
|
+
...H
|
|
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": V === "medium",
|
|
714
|
+
"left-3": V === "large",
|
|
715
|
+
"left-4": V === "xLarge"
|
|
716
716
|
}
|
|
717
717
|
),
|
|
718
718
|
children: n
|
|
@@ -784,8 +784,8 @@ const j = {
|
|
|
784
784
|
)
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
|
-
), S1 =
|
|
788
|
-
children:
|
|
787
|
+
), S1 = Q, J = ({
|
|
788
|
+
children: d,
|
|
789
789
|
className: e,
|
|
790
790
|
size: t = "sm",
|
|
791
791
|
tag: a = "span"
|
|
@@ -801,30 +801,30 @@ const j = {
|
|
|
801
801
|
},
|
|
802
802
|
e
|
|
803
803
|
),
|
|
804
|
-
children:
|
|
804
|
+
children: d
|
|
805
805
|
}
|
|
806
806
|
), z1 = J, Y = ({
|
|
807
|
-
borderless:
|
|
807
|
+
borderless: d = !1,
|
|
808
808
|
leftIcon: e,
|
|
809
809
|
leftIconProps: t = {},
|
|
810
810
|
children: a,
|
|
811
811
|
className: n = "",
|
|
812
812
|
disabled: s = !1,
|
|
813
|
-
href:
|
|
814
|
-
props:
|
|
815
|
-
rightIcon:
|
|
816
|
-
rightIconProps:
|
|
813
|
+
href: r,
|
|
814
|
+
props: l = {},
|
|
815
|
+
rightIcon: i,
|
|
816
|
+
rightIconProps: c = {},
|
|
817
817
|
rounded: h = !1,
|
|
818
818
|
size: p = "md",
|
|
819
|
-
type:
|
|
819
|
+
type: H = "button",
|
|
820
820
|
uppercase: g = !1,
|
|
821
821
|
variation: b = "primary"
|
|
822
822
|
}) => {
|
|
823
|
-
const
|
|
823
|
+
const V = r ? "a" : "button";
|
|
824
824
|
return /* @__PURE__ */ M(
|
|
825
|
-
|
|
825
|
+
V,
|
|
826
826
|
{
|
|
827
|
-
type:
|
|
827
|
+
type: V !== "a" ? H : null,
|
|
828
828
|
className: u(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
@@ -832,15 +832,15 @@ const j = {
|
|
|
832
832
|
[`button--${p}`]: p,
|
|
833
833
|
"button--rounded": h,
|
|
834
834
|
"button--disabled": s,
|
|
835
|
-
"button--custom-link":
|
|
835
|
+
"button--custom-link": r,
|
|
836
836
|
"button--uppercase": g,
|
|
837
|
-
"button--borderless":
|
|
837
|
+
"button--borderless": d || b === "link"
|
|
838
838
|
},
|
|
839
839
|
n
|
|
840
840
|
),
|
|
841
841
|
disabled: s,
|
|
842
|
-
href:
|
|
843
|
-
...
|
|
842
|
+
href: r,
|
|
843
|
+
...l,
|
|
844
844
|
children: [
|
|
845
845
|
e && /* @__PURE__ */ o(
|
|
846
846
|
y,
|
|
@@ -852,27 +852,27 @@ const j = {
|
|
|
852
852
|
}
|
|
853
853
|
),
|
|
854
854
|
a,
|
|
855
|
-
|
|
855
|
+
i && /* @__PURE__ */ o(
|
|
856
856
|
y,
|
|
857
857
|
{
|
|
858
|
-
name:
|
|
858
|
+
name: i,
|
|
859
859
|
size: p === "md" ? "small" : "xSmall",
|
|
860
860
|
viewBox: "0 0 24 24",
|
|
861
|
-
...
|
|
861
|
+
...c
|
|
862
862
|
}
|
|
863
863
|
)
|
|
864
864
|
]
|
|
865
865
|
}
|
|
866
866
|
);
|
|
867
|
-
},
|
|
868
|
-
block:
|
|
867
|
+
}, F = x(Y), K = ({ children: d, 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: d }), N1 = K, X = ({
|
|
868
|
+
block: d = !1,
|
|
869
869
|
borderless: e = !1,
|
|
870
870
|
children: t,
|
|
871
871
|
className: a = "",
|
|
872
872
|
divider: n = !0,
|
|
873
873
|
inset: s = !0,
|
|
874
|
-
id:
|
|
875
|
-
role:
|
|
874
|
+
id: r = null,
|
|
875
|
+
role: l = null
|
|
876
876
|
}) => /* @__PURE__ */ o(
|
|
877
877
|
"div",
|
|
878
878
|
{
|
|
@@ -880,40 +880,40 @@ const j = {
|
|
|
880
880
|
"bg-white",
|
|
881
881
|
{
|
|
882
882
|
f1: !e,
|
|
883
|
-
f2:
|
|
883
|
+
f2: d,
|
|
884
884
|
f3: n,
|
|
885
885
|
f4: s
|
|
886
886
|
},
|
|
887
887
|
a
|
|
888
888
|
),
|
|
889
|
-
id:
|
|
890
|
-
role:
|
|
889
|
+
id: r,
|
|
890
|
+
role: l,
|
|
891
891
|
children: t
|
|
892
892
|
}
|
|
893
893
|
), Z1 = X, _ = ({
|
|
894
|
-
checked:
|
|
894
|
+
checked: d = !1,
|
|
895
895
|
children: e,
|
|
896
896
|
className: t = "",
|
|
897
897
|
error: a = !1,
|
|
898
898
|
inputClass: n,
|
|
899
899
|
id: s = "",
|
|
900
|
-
label:
|
|
901
|
-
name:
|
|
902
|
-
props:
|
|
903
|
-
variation:
|
|
900
|
+
label: r = "",
|
|
901
|
+
name: l = "",
|
|
902
|
+
props: i = {},
|
|
903
|
+
variation: c = "primary",
|
|
904
904
|
value: h = ""
|
|
905
905
|
}) => {
|
|
906
|
-
const p =
|
|
906
|
+
const p = r ? "div" : "label", H = p === "label" ? { htmlFor: s } : {};
|
|
907
907
|
return /* @__PURE__ */ M(
|
|
908
908
|
p,
|
|
909
909
|
{
|
|
910
|
-
className: u("checkbox flex items-center",
|
|
911
|
-
...
|
|
910
|
+
className: u("checkbox flex items-center", c, t),
|
|
911
|
+
...H,
|
|
912
912
|
children: [
|
|
913
913
|
/* @__PURE__ */ o(
|
|
914
914
|
"input",
|
|
915
915
|
{
|
|
916
|
-
checked:
|
|
916
|
+
checked: d,
|
|
917
917
|
className: u(
|
|
918
918
|
"form-checkbox ",
|
|
919
919
|
{
|
|
@@ -922,17 +922,17 @@ const j = {
|
|
|
922
922
|
n
|
|
923
923
|
),
|
|
924
924
|
id: s,
|
|
925
|
-
name:
|
|
925
|
+
name: l,
|
|
926
926
|
type: "checkbox",
|
|
927
927
|
value: h,
|
|
928
|
-
...
|
|
928
|
+
...i
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
e
|
|
932
932
|
]
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
}, E1 = x(_), e1 = ({ children:
|
|
935
|
+
}, E1 = x(_), e1 = ({ children: d, 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: d
|
|
946
946
|
}
|
|
947
947
|
),
|
|
948
948
|
/* @__PURE__ */ o(
|
|
@@ -959,23 +959,23 @@ const j = {
|
|
|
959
959
|
}
|
|
960
960
|
)
|
|
961
961
|
] }), F1 = x(e1), t1 = ({
|
|
962
|
-
activator:
|
|
962
|
+
activator: d,
|
|
963
963
|
id: e = "",
|
|
964
964
|
children: t,
|
|
965
965
|
className: a = "",
|
|
966
966
|
contentClass: n = "",
|
|
967
967
|
dark: s = !1,
|
|
968
|
-
footer:
|
|
969
|
-
fullMobile:
|
|
970
|
-
headerClass:
|
|
971
|
-
hideClose:
|
|
968
|
+
footer: r,
|
|
969
|
+
fullMobile: l = !0,
|
|
970
|
+
headerClass: i = "",
|
|
971
|
+
hideClose: c = !1,
|
|
972
972
|
iconSize: h = "medium",
|
|
973
973
|
preventPageScroll: p = !0,
|
|
974
|
-
stickyHeader:
|
|
974
|
+
stickyHeader: H = !1,
|
|
975
975
|
title: g = "",
|
|
976
976
|
titleClass: b = ""
|
|
977
977
|
}) => /* @__PURE__ */ M(S, { children: [
|
|
978
|
-
|
|
978
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
|
|
979
979
|
/* @__PURE__ */ o(
|
|
980
980
|
"dialog",
|
|
981
981
|
{
|
|
@@ -984,7 +984,7 @@ const j = {
|
|
|
984
984
|
className: u(
|
|
985
985
|
"dialog",
|
|
986
986
|
{
|
|
987
|
-
"dialog-full-mobile":
|
|
987
|
+
"dialog-full-mobile": l,
|
|
988
988
|
dark: s,
|
|
989
989
|
"prevent-scroll": p
|
|
990
990
|
},
|
|
@@ -997,15 +997,15 @@ const j = {
|
|
|
997
997
|
className: u(
|
|
998
998
|
"dialog-header",
|
|
999
999
|
{
|
|
1000
|
-
"sticky top-0 bg-white z-10":
|
|
1000
|
+
"sticky top-0 bg-white z-10": H,
|
|
1001
1001
|
"!pb-0 border-0 justify-end": !g,
|
|
1002
1002
|
"justify-between border-b": g
|
|
1003
1003
|
},
|
|
1004
|
-
|
|
1004
|
+
i
|
|
1005
1005
|
),
|
|
1006
1006
|
children: [
|
|
1007
1007
|
g && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: b, children: g }),
|
|
1008
|
-
!
|
|
1008
|
+
!c && /* @__PURE__ */ o(
|
|
1009
1009
|
"button",
|
|
1010
1010
|
{
|
|
1011
1011
|
type: "button",
|
|
@@ -1034,44 +1034,44 @@ const j = {
|
|
|
1034
1034
|
children: t
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
|
-
|
|
1037
|
+
r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1038
1038
|
] })
|
|
1039
1039
|
}
|
|
1040
1040
|
)
|
|
1041
1041
|
] }), B1 = x(t1), a1 = ({
|
|
1042
|
-
activator:
|
|
1042
|
+
activator: d,
|
|
1043
1043
|
id: e = "",
|
|
1044
1044
|
children: t,
|
|
1045
1045
|
className: a = "",
|
|
1046
1046
|
contentClass: n = "",
|
|
1047
1047
|
onClose: s,
|
|
1048
|
-
disableOutsideClick:
|
|
1049
|
-
footer:
|
|
1050
|
-
fullMobile:
|
|
1051
|
-
headerClass:
|
|
1048
|
+
disableOutsideClick: r = !1,
|
|
1049
|
+
footer: l,
|
|
1050
|
+
fullMobile: i = !0,
|
|
1051
|
+
headerClass: c = "",
|
|
1052
1052
|
hideClose: h = !1,
|
|
1053
1053
|
iconSize: p = "medium",
|
|
1054
|
-
isOpen:
|
|
1054
|
+
isOpen: H = !1,
|
|
1055
1055
|
setDialogOpen: g,
|
|
1056
1056
|
stickyHeader: b = !1,
|
|
1057
|
-
title:
|
|
1057
|
+
title: V = "",
|
|
1058
1058
|
titleClass: m = ""
|
|
1059
1059
|
}) => {
|
|
1060
1060
|
const f = q(null), w = async () => {
|
|
1061
|
-
f.current.classList.add("closing"), await
|
|
1061
|
+
f.current.classList.add("closing"), await z(f.current), f.current.classList.remove("closing"), s && s(), g(!1);
|
|
1062
1062
|
}, v = async (A) => {
|
|
1063
1063
|
A.key === "Escape" && await w();
|
|
1064
|
-
}, k = async ({ clientX: A, clientY:
|
|
1065
|
-
const { left:
|
|
1066
|
-
(!f.current.contains(
|
|
1067
|
-
},
|
|
1068
|
-
A.getAnimations().map((
|
|
1064
|
+
}, k = async ({ clientX: A, clientY: N, target: $ }) => {
|
|
1065
|
+
const { left: D, right: T, top: I, bottom: O } = f.current.getBoundingClientRect() ?? {};
|
|
1066
|
+
(!f.current.contains($) || A < D || A > T || N < I || N > O) && await w();
|
|
1067
|
+
}, z = (A) => Promise.allSettled(
|
|
1068
|
+
A.getAnimations().map((N) => N.finished)
|
|
1069
1069
|
);
|
|
1070
|
-
return
|
|
1070
|
+
return Z(() => {
|
|
1071
1071
|
const A = f.current;
|
|
1072
|
-
A && (
|
|
1073
|
-
}, [
|
|
1074
|
-
|
|
1072
|
+
A && (H ? A.showModal() : typeof A.close == "function" && A.close());
|
|
1073
|
+
}, [H]), /* @__PURE__ */ M(S, { children: [
|
|
1074
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: d }),
|
|
1075
1075
|
/* @__PURE__ */ M(
|
|
1076
1076
|
"dialog",
|
|
1077
1077
|
{
|
|
@@ -1080,13 +1080,13 @@ const j = {
|
|
|
1080
1080
|
className: u(
|
|
1081
1081
|
"dialog",
|
|
1082
1082
|
{
|
|
1083
|
-
hidden: !
|
|
1084
|
-
"xs-max:h-full xs-max:max-h-full":
|
|
1083
|
+
hidden: !H,
|
|
1084
|
+
"xs-max:h-full xs-max:max-h-full": i
|
|
1085
1085
|
},
|
|
1086
1086
|
a
|
|
1087
1087
|
),
|
|
1088
1088
|
onKeyDown: v,
|
|
1089
|
-
onClick: (A) =>
|
|
1089
|
+
onClick: (A) => r ? null : k(A),
|
|
1090
1090
|
children: [
|
|
1091
1091
|
/* @__PURE__ */ M(
|
|
1092
1092
|
"header",
|
|
@@ -1094,10 +1094,10 @@ const j = {
|
|
|
1094
1094
|
className: u(
|
|
1095
1095
|
"dialog-header flex items-center p-4",
|
|
1096
1096
|
{ "sticky top-0 bg-white": b },
|
|
1097
|
-
|
|
1097
|
+
c
|
|
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: V || "" }),
|
|
1101
1101
|
!h && /* @__PURE__ */ o(
|
|
1102
1102
|
"button",
|
|
1103
1103
|
{
|
|
@@ -1127,19 +1127,19 @@ const j = {
|
|
|
1127
1127
|
children: t
|
|
1128
1128
|
}
|
|
1129
1129
|
),
|
|
1130
|
-
|
|
1130
|
+
l && /* @__PURE__ */ o(
|
|
1131
1131
|
"footer",
|
|
1132
1132
|
{
|
|
1133
1133
|
id: `${e}-dialog-footer`,
|
|
1134
1134
|
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1135
|
-
children:
|
|
1135
|
+
children: l
|
|
1136
1136
|
}
|
|
1137
1137
|
)
|
|
1138
1138
|
]
|
|
1139
1139
|
}
|
|
1140
1140
|
)
|
|
1141
1141
|
] });
|
|
1142
|
-
},
|
|
1142
|
+
}, $1 = x(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ M("div", { id: "dots", className: u("mx-auto", d), 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" } }),
|
|
@@ -1148,30 +1148,30 @@ const j = {
|
|
|
1148
1148
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
|
|
1149
1149
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
|
|
1150
1150
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
|
|
1151
|
-
] }),
|
|
1152
|
-
cb:
|
|
1151
|
+
] }), D1 = n1, s1 = ({
|
|
1152
|
+
cb: d,
|
|
1153
1153
|
className: e = "",
|
|
1154
1154
|
size: t = "md",
|
|
1155
1155
|
timeout: a = 1e4,
|
|
1156
1156
|
variation: n = "primary"
|
|
1157
1157
|
}) => {
|
|
1158
|
-
function s({ cb:
|
|
1159
|
-
const
|
|
1160
|
-
if (!
|
|
1161
|
-
let
|
|
1162
|
-
function p(
|
|
1163
|
-
|
|
1164
|
-
const g =
|
|
1165
|
-
if (
|
|
1158
|
+
function s({ cb: r }) {
|
|
1159
|
+
const l = document.querySelector(".loading-bar__inner");
|
|
1160
|
+
if (!l) return;
|
|
1161
|
+
let i, c, h = !1;
|
|
1162
|
+
function p(H) {
|
|
1163
|
+
i === void 0 && (i = H);
|
|
1164
|
+
const g = H - i;
|
|
1165
|
+
if (c !== H) {
|
|
1166
1166
|
const b = g / a * 101;
|
|
1167
|
-
|
|
1167
|
+
l.style.width = `${b}%`, b >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(H));
|
|
1168
1168
|
}
|
|
1169
|
-
g < a && (
|
|
1169
|
+
g < a && (c = H, h || window.requestAnimationFrame(p));
|
|
1170
1170
|
}
|
|
1171
1171
|
window.requestAnimationFrame(p);
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1174
|
-
s({ cb:
|
|
1173
|
+
return Z(() => {
|
|
1174
|
+
s({ cb: d });
|
|
1175
1175
|
}, []), /* @__PURE__ */ o(
|
|
1176
1176
|
"div",
|
|
1177
1177
|
{
|
|
@@ -1193,24 +1193,24 @@ 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: d = "" }) => /* @__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 ${d}`
|
|
1202
1202
|
}
|
|
1203
1203
|
) }), I1 = x(r1), i1 = ({
|
|
1204
|
-
activator:
|
|
1204
|
+
activator: d,
|
|
1205
1205
|
activatorClass: e = "",
|
|
1206
1206
|
attrs: t = {},
|
|
1207
1207
|
options: a = {},
|
|
1208
1208
|
children: n,
|
|
1209
1209
|
className: s = "",
|
|
1210
|
-
containerClass:
|
|
1211
|
-
disabled:
|
|
1212
|
-
id:
|
|
1213
|
-
trigger:
|
|
1210
|
+
containerClass: r = "",
|
|
1211
|
+
disabled: l = !1,
|
|
1212
|
+
id: i = "",
|
|
1213
|
+
trigger: c = "click"
|
|
1214
1214
|
}) => /* @__PURE__ */ M(S, { children: [
|
|
1215
1215
|
/* @__PURE__ */ o(
|
|
1216
1216
|
"div",
|
|
@@ -1221,7 +1221,7 @@ const j = {
|
|
|
1221
1221
|
{
|
|
1222
1222
|
className: u(
|
|
1223
1223
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1224
|
-
|
|
1224
|
+
r
|
|
1225
1225
|
),
|
|
1226
1226
|
children: [
|
|
1227
1227
|
n,
|
|
@@ -1242,29 +1242,29 @@ const j = {
|
|
|
1242
1242
|
{
|
|
1243
1243
|
className: u(
|
|
1244
1244
|
"popover-activator",
|
|
1245
|
-
`trigger-${
|
|
1246
|
-
|
|
1245
|
+
`trigger-${c}`,
|
|
1246
|
+
l ? "is-disabled" : "",
|
|
1247
1247
|
e
|
|
1248
1248
|
),
|
|
1249
1249
|
...t,
|
|
1250
1250
|
"data-options": JSON.stringify(a),
|
|
1251
|
-
children:
|
|
1251
|
+
children: d
|
|
1252
1252
|
}
|
|
1253
1253
|
)
|
|
1254
1254
|
] }), O1 = i1, o1 = ({
|
|
1255
|
-
ariaValuemax:
|
|
1255
|
+
ariaValuemax: d = 100,
|
|
1256
1256
|
ariaValuemin: e = 0,
|
|
1257
1257
|
bgColor: t = "bg-orange-500",
|
|
1258
1258
|
className: a,
|
|
1259
1259
|
completed: n = 0,
|
|
1260
1260
|
maxCompleted: s = 100,
|
|
1261
|
-
rounded:
|
|
1262
|
-
showLabel:
|
|
1261
|
+
rounded: r = !0,
|
|
1262
|
+
showLabel: l = !1
|
|
1263
1263
|
}) => {
|
|
1264
|
-
const
|
|
1264
|
+
const c = ((h, p) => {
|
|
1265
1265
|
if (h) {
|
|
1266
|
-
const
|
|
1267
|
-
return
|
|
1266
|
+
const H = Number(p) / h;
|
|
1267
|
+
return H > 1 ? 100 : H * 100;
|
|
1268
1268
|
}
|
|
1269
1269
|
return n;
|
|
1270
1270
|
})(s, n);
|
|
@@ -1273,14 +1273,14 @@ const j = {
|
|
|
1273
1273
|
{
|
|
1274
1274
|
className: u(
|
|
1275
1275
|
"w-full bg-gray-200",
|
|
1276
|
-
{ "rounded-full":
|
|
1276
|
+
{ "rounded-full": r },
|
|
1277
1277
|
a
|
|
1278
1278
|
),
|
|
1279
1279
|
role: "progressbar",
|
|
1280
1280
|
"aria-label": "Progress Bar",
|
|
1281
1281
|
"aria-valuenow": n,
|
|
1282
1282
|
"aria-valuemin": e,
|
|
1283
|
-
"aria-valuemax":
|
|
1283
|
+
"aria-valuemax": d,
|
|
1284
1284
|
children: /* @__PURE__ */ o(
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
@@ -1288,26 +1288,26 @@ 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:
|
|
1291
|
+
style: { width: `${c}%` },
|
|
1292
|
+
children: l && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
|
|
1293
1293
|
}
|
|
1294
1294
|
)
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
1297
|
}, q1 = x(o1), c1 = ({
|
|
1298
|
-
checked:
|
|
1298
|
+
checked: d = !1,
|
|
1299
1299
|
children: e,
|
|
1300
1300
|
className: t = "",
|
|
1301
1301
|
id: a = "",
|
|
1302
1302
|
label: n = "",
|
|
1303
1303
|
name: s = "",
|
|
1304
|
-
props:
|
|
1305
|
-
variation:
|
|
1306
|
-
value:
|
|
1304
|
+
props: r = {},
|
|
1305
|
+
variation: l = "primary",
|
|
1306
|
+
value: i = ""
|
|
1307
1307
|
}) => {
|
|
1308
|
-
const
|
|
1308
|
+
const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1309
1309
|
return /* @__PURE__ */ M(
|
|
1310
|
-
|
|
1310
|
+
c,
|
|
1311
1311
|
{
|
|
1312
1312
|
className: u("radio flex items-center", t),
|
|
1313
1313
|
...h,
|
|
@@ -1315,18 +1315,18 @@ const j = {
|
|
|
1315
1315
|
/* @__PURE__ */ o(
|
|
1316
1316
|
"input",
|
|
1317
1317
|
{
|
|
1318
|
-
checked:
|
|
1318
|
+
checked: d,
|
|
1319
1319
|
className: u(
|
|
1320
1320
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1321
1321
|
{
|
|
1322
|
-
"focus:ring-[#222]":
|
|
1322
|
+
"focus:ring-[#222]": l === "primary"
|
|
1323
1323
|
}
|
|
1324
1324
|
),
|
|
1325
1325
|
id: a,
|
|
1326
1326
|
name: s,
|
|
1327
1327
|
type: "radio",
|
|
1328
|
-
value:
|
|
1329
|
-
...
|
|
1328
|
+
value: i,
|
|
1329
|
+
...r
|
|
1330
1330
|
}
|
|
1331
1331
|
),
|
|
1332
1332
|
e
|
|
@@ -1334,26 +1334,26 @@ const j = {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
);
|
|
1336
1336
|
}, j1 = x(c1), d1 = ({
|
|
1337
|
-
children:
|
|
1337
|
+
children: d,
|
|
1338
1338
|
className: e = "",
|
|
1339
1339
|
error: t = !1,
|
|
1340
1340
|
errorMessage: a = "",
|
|
1341
1341
|
id: n = "",
|
|
1342
1342
|
label: s = "",
|
|
1343
|
-
name:
|
|
1344
|
-
options:
|
|
1345
|
-
placeholder:
|
|
1346
|
-
props:
|
|
1343
|
+
name: r = "",
|
|
1344
|
+
options: l = [],
|
|
1345
|
+
placeholder: i = "",
|
|
1346
|
+
props: c = {},
|
|
1347
1347
|
selectClass: h = "",
|
|
1348
1348
|
styles: p = null,
|
|
1349
|
-
variation:
|
|
1349
|
+
variation: H = "primary",
|
|
1350
1350
|
value: g
|
|
1351
1351
|
}) => {
|
|
1352
|
-
const b =
|
|
1352
|
+
const b = i ? { defaultValue: "" } : {};
|
|
1353
1353
|
return /* @__PURE__ */ M(
|
|
1354
1354
|
"label",
|
|
1355
1355
|
{
|
|
1356
|
-
className: u("relative select", e,
|
|
1356
|
+
className: u("relative select", e, H),
|
|
1357
1357
|
style: p ? { ...p } : null,
|
|
1358
1358
|
children: [
|
|
1359
1359
|
s,
|
|
@@ -1366,19 +1366,19 @@ const j = {
|
|
|
1366
1366
|
h
|
|
1367
1367
|
),
|
|
1368
1368
|
id: n,
|
|
1369
|
-
name:
|
|
1369
|
+
name: r,
|
|
1370
1370
|
value: g,
|
|
1371
1371
|
...b,
|
|
1372
|
-
...
|
|
1372
|
+
...c,
|
|
1373
1373
|
children: [
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
|
|
1375
|
+
l.map((V, m) => /* @__PURE__ */ o(
|
|
1376
1376
|
"option",
|
|
1377
1377
|
{
|
|
1378
|
-
value: (
|
|
1379
|
-
children: (
|
|
1378
|
+
value: (V == null ? void 0 : V.id) || (V == null ? void 0 : V.value) || V,
|
|
1379
|
+
children: (V == null ? void 0 : V.name) || V
|
|
1380
1380
|
},
|
|
1381
|
-
(
|
|
1381
|
+
(V == null ? void 0 : V.name) || V
|
|
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: d = "" }) => /* @__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
|
+
d
|
|
1396
1396
|
),
|
|
1397
1397
|
children: [
|
|
1398
1398
|
/* @__PURE__ */ o(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
@@ -1400,7 +1400,7 @@ const j = {
|
|
|
1400
1400
|
]
|
|
1401
1401
|
}
|
|
1402
1402
|
), R1 = x(h1), u1 = ({
|
|
1403
|
-
placeholderClass:
|
|
1403
|
+
placeholderClass: d = "",
|
|
1404
1404
|
children: e,
|
|
1405
1405
|
className: t = "",
|
|
1406
1406
|
id: a = 1,
|
|
@@ -1416,13 +1416,13 @@ const j = {
|
|
|
1416
1416
|
children: /* @__PURE__ */ o(y, { name: "chevronLeft" })
|
|
1417
1417
|
}
|
|
1418
1418
|
),
|
|
1419
|
-
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s,
|
|
1419
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__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 ${d}`,
|
|
1423
1423
|
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1424
1424
|
},
|
|
1425
|
-
|
|
1425
|
+
r
|
|
1426
1426
|
)) }),
|
|
1427
1427
|
/* @__PURE__ */ o(
|
|
1428
1428
|
"button",
|
|
@@ -1435,7 +1435,7 @@ const j = {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
)
|
|
1437
1437
|
] }), W1 = x(u1), p1 = ({
|
|
1438
|
-
className:
|
|
1438
|
+
className: d = "",
|
|
1439
1439
|
value: e
|
|
1440
1440
|
}) => {
|
|
1441
1441
|
const t = {
|
|
@@ -1446,38 +1446,38 @@ const j = {
|
|
|
1446
1446
|
{
|
|
1447
1447
|
className: u(
|
|
1448
1448
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1449
|
-
|
|
1449
|
+
d
|
|
1450
1450
|
),
|
|
1451
1451
|
style: t
|
|
1452
1452
|
}
|
|
1453
1453
|
);
|
|
1454
|
-
},
|
|
1455
|
-
className:
|
|
1454
|
+
}, U1 = p1, m1 = ({
|
|
1455
|
+
className: d = "",
|
|
1456
1456
|
clear: e = !1,
|
|
1457
1457
|
error: t = !1,
|
|
1458
1458
|
errorMessage: a = "",
|
|
1459
1459
|
id: n = "",
|
|
1460
1460
|
inputClass: s = "",
|
|
1461
|
-
name:
|
|
1462
|
-
placeholder:
|
|
1463
|
-
props:
|
|
1464
|
-
rows:
|
|
1461
|
+
name: r = "",
|
|
1462
|
+
placeholder: l = "",
|
|
1463
|
+
props: i = {},
|
|
1464
|
+
rows: c = 4,
|
|
1465
1465
|
variation: h = "primary"
|
|
1466
|
-
}) => /* @__PURE__ */ M("div", { className: u("relative textarea", h,
|
|
1466
|
+
}) => /* @__PURE__ */ M("div", { className: u("relative textarea", h, d), children: [
|
|
1467
1467
|
/* @__PURE__ */ o(
|
|
1468
1468
|
"textarea",
|
|
1469
1469
|
{
|
|
1470
|
-
placeholder:
|
|
1470
|
+
placeholder: l,
|
|
1471
1471
|
id: n,
|
|
1472
|
-
name:
|
|
1473
|
-
rows:
|
|
1472
|
+
name: r,
|
|
1473
|
+
rows: c,
|
|
1474
1474
|
className: u(
|
|
1475
1475
|
"form-textarea min-h-[40px] pl-4",
|
|
1476
1476
|
e ? "pr-10" : "pr-4",
|
|
1477
1477
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1478
1478
|
s
|
|
1479
1479
|
),
|
|
1480
|
-
...
|
|
1480
|
+
...i
|
|
1481
1481
|
}
|
|
1482
1482
|
),
|
|
1483
1483
|
e && /* @__PURE__ */ o(
|
|
@@ -1497,24 +1497,24 @@ 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: d = "",
|
|
1501
1501
|
clear: e = !1,
|
|
1502
1502
|
error: t = !1,
|
|
1503
1503
|
errorMessage: a = "",
|
|
1504
1504
|
iconLeft: n = "",
|
|
1505
1505
|
id: s = "",
|
|
1506
|
-
inputClass:
|
|
1507
|
-
name:
|
|
1508
|
-
placeholder:
|
|
1509
|
-
props:
|
|
1506
|
+
inputClass: r = "",
|
|
1507
|
+
name: l = "",
|
|
1508
|
+
placeholder: i = "",
|
|
1509
|
+
props: c = {},
|
|
1510
1510
|
styles: h = null,
|
|
1511
1511
|
type: p = "text",
|
|
1512
|
-
value:
|
|
1512
|
+
value: H,
|
|
1513
1513
|
variation: g = "primary"
|
|
1514
1514
|
}) => /* @__PURE__ */ M(
|
|
1515
1515
|
"div",
|
|
1516
1516
|
{
|
|
1517
|
-
className: u("relative textbox", g,
|
|
1517
|
+
className: u("relative textbox", g, d),
|
|
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(
|
|
@@ -1529,11 +1529,11 @@ const j = {
|
|
|
1529
1529
|
/* @__PURE__ */ o(
|
|
1530
1530
|
"input",
|
|
1531
1531
|
{
|
|
1532
|
-
placeholder:
|
|
1532
|
+
placeholder: i,
|
|
1533
1533
|
id: s,
|
|
1534
|
-
name:
|
|
1534
|
+
name: l,
|
|
1535
1535
|
type: p,
|
|
1536
|
-
value:
|
|
1536
|
+
value: H,
|
|
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
|
-
|
|
1546
|
-
|
|
1545
|
+
c.inputClass ?? "",
|
|
1546
|
+
r
|
|
1547
1547
|
),
|
|
1548
|
-
...
|
|
1548
|
+
...c
|
|
1549
1549
|
}
|
|
1550
1550
|
),
|
|
1551
1551
|
e && /* @__PURE__ */ o(
|
|
@@ -1566,20 +1566,20 @@ const j = {
|
|
|
1566
1566
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1567
1567
|
]
|
|
1568
1568
|
}
|
|
1569
|
-
),
|
|
1570
|
-
btnClass:
|
|
1569
|
+
), B = x(V1), H1 = ({
|
|
1570
|
+
btnClass: d,
|
|
1571
1571
|
className: e = "",
|
|
1572
1572
|
containerClass: t,
|
|
1573
1573
|
customSuccessMsg: a = "",
|
|
1574
1574
|
title: n = "Send A Message",
|
|
1575
1575
|
titleClass: s,
|
|
1576
|
-
uppercase:
|
|
1576
|
+
uppercase: r = !0
|
|
1577
1577
|
}) => {
|
|
1578
|
-
const
|
|
1578
|
+
const l = 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(
|
|
1582
|
-
|
|
1582
|
+
F,
|
|
1583
1583
|
{
|
|
1584
1584
|
className: u(
|
|
1585
1585
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
@@ -1597,11 +1597,11 @@ const j = {
|
|
|
1597
1597
|
{
|
|
1598
1598
|
id: "contactForm",
|
|
1599
1599
|
className: u("contact-form", t, {
|
|
1600
|
-
uppercase:
|
|
1600
|
+
uppercase: r
|
|
1601
1601
|
}),
|
|
1602
1602
|
children: [
|
|
1603
1603
|
/* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", s), children: n }),
|
|
1604
|
-
/* @__PURE__ */ o("p", { className: "contact-form__msg", children:
|
|
1604
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: l }),
|
|
1605
1605
|
/* @__PURE__ */ M(
|
|
1606
1606
|
"div",
|
|
1607
1607
|
{
|
|
@@ -1611,24 +1611,24 @@ const j = {
|
|
|
1611
1611
|
),
|
|
1612
1612
|
children: [
|
|
1613
1613
|
/* @__PURE__ */ o(
|
|
1614
|
-
|
|
1614
|
+
B,
|
|
1615
1615
|
{
|
|
1616
1616
|
id: "contact-name",
|
|
1617
1617
|
name: "contact-name",
|
|
1618
1618
|
placeholder: "Name",
|
|
1619
1619
|
inputClass: u({
|
|
1620
|
-
"placeholder:uppercase":
|
|
1620
|
+
"placeholder:uppercase": r
|
|
1621
1621
|
})
|
|
1622
1622
|
}
|
|
1623
1623
|
),
|
|
1624
1624
|
/* @__PURE__ */ o(
|
|
1625
|
-
|
|
1625
|
+
B,
|
|
1626
1626
|
{
|
|
1627
1627
|
id: "contact-email",
|
|
1628
1628
|
name: "contact-email",
|
|
1629
1629
|
placeholder: "Email",
|
|
1630
1630
|
inputClass: u({
|
|
1631
|
-
"placeholder:uppercase":
|
|
1631
|
+
"placeholder:uppercase": r
|
|
1632
1632
|
})
|
|
1633
1633
|
}
|
|
1634
1634
|
),
|
|
@@ -1639,19 +1639,19 @@ const j = {
|
|
|
1639
1639
|
name: "contact-message",
|
|
1640
1640
|
placeholder: "Message",
|
|
1641
1641
|
inputClass: u({
|
|
1642
|
-
"placeholder:uppercase":
|
|
1642
|
+
"placeholder:uppercase": r
|
|
1643
1643
|
})
|
|
1644
1644
|
}
|
|
1645
1645
|
),
|
|
1646
1646
|
/* @__PURE__ */ o(
|
|
1647
|
-
|
|
1647
|
+
F,
|
|
1648
1648
|
{
|
|
1649
1649
|
className: u(
|
|
1650
1650
|
"flex mx-auto items-center",
|
|
1651
1651
|
{
|
|
1652
|
-
uppercase:
|
|
1652
|
+
uppercase: r
|
|
1653
1653
|
},
|
|
1654
|
-
|
|
1654
|
+
d
|
|
1655
1655
|
),
|
|
1656
1656
|
props: { title: "Submit" },
|
|
1657
1657
|
type: "submit",
|
|
@@ -1664,37 +1664,37 @@ const j = {
|
|
|
1664
1664
|
]
|
|
1665
1665
|
}
|
|
1666
1666
|
);
|
|
1667
|
-
},
|
|
1668
|
-
block:
|
|
1667
|
+
}, G1 = x(H1), C1 = ({
|
|
1668
|
+
block: d = !1,
|
|
1669
1669
|
children: e,
|
|
1670
1670
|
className: t,
|
|
1671
1671
|
contentClass: a,
|
|
1672
1672
|
footerClass: n,
|
|
1673
1673
|
footerContent: s,
|
|
1674
|
-
headerContent:
|
|
1675
|
-
headerClass:
|
|
1676
|
-
list:
|
|
1677
|
-
props:
|
|
1674
|
+
headerContent: r,
|
|
1675
|
+
headerClass: l,
|
|
1676
|
+
list: i = !1,
|
|
1677
|
+
props: c = {},
|
|
1678
1678
|
variation: h = "primary"
|
|
1679
1679
|
}) => {
|
|
1680
|
-
const p =
|
|
1680
|
+
const p = i ? "ul" : "div";
|
|
1681
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": d },
|
|
1687
1687
|
`content-card--${h}`,
|
|
1688
1688
|
t
|
|
1689
1689
|
),
|
|
1690
|
-
...
|
|
1690
|
+
...c,
|
|
1691
1691
|
children: [
|
|
1692
|
-
|
|
1692
|
+
r && /* @__PURE__ */ o("div", { className: u("content-card__header", l), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
|
|
1693
1693
|
/* @__PURE__ */ o(
|
|
1694
1694
|
p,
|
|
1695
1695
|
{
|
|
1696
1696
|
className: u("content-card__content", a),
|
|
1697
|
-
role:
|
|
1697
|
+
role: i ? "list" : null,
|
|
1698
1698
|
children: e
|
|
1699
1699
|
}
|
|
1700
1700
|
),
|
|
@@ -1702,17 +1702,17 @@ const j = {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
|
-
},
|
|
1706
|
-
children:
|
|
1705
|
+
}, Q1 = x(C1), L1 = ({
|
|
1706
|
+
children: d,
|
|
1707
1707
|
className: e,
|
|
1708
1708
|
colGap: t = 2,
|
|
1709
1709
|
direction: a = "col",
|
|
1710
1710
|
label: n,
|
|
1711
1711
|
labelClass: s,
|
|
1712
|
-
props:
|
|
1713
|
-
rowGap:
|
|
1714
|
-
value:
|
|
1715
|
-
valueClass:
|
|
1712
|
+
props: r = {},
|
|
1713
|
+
rowGap: l = 1,
|
|
1714
|
+
value: i,
|
|
1715
|
+
valueClass: c,
|
|
1716
1716
|
wrap: h = !1
|
|
1717
1717
|
}) => /* @__PURE__ */ M(
|
|
1718
1718
|
"div",
|
|
@@ -1728,24 +1728,24 @@ const j = {
|
|
|
1728
1728
|
),
|
|
1729
1729
|
style: {
|
|
1730
1730
|
columnGap: `${t / 4}rem`,
|
|
1731
|
-
rowGap: `${
|
|
1731
|
+
rowGap: `${l / 4}rem`
|
|
1732
1732
|
},
|
|
1733
|
-
...
|
|
1733
|
+
...r,
|
|
1734
1734
|
children: [
|
|
1735
1735
|
n && /* @__PURE__ */ o("div", { className: u("item-label", s), children: n }),
|
|
1736
|
-
|
|
1737
|
-
|
|
1736
|
+
i && /* @__PURE__ */ o("div", { className: u("item-value", c), children: i }),
|
|
1737
|
+
d
|
|
1738
1738
|
]
|
|
1739
1739
|
}
|
|
1740
1740
|
), J1 = x(L1), g1 = ({
|
|
1741
|
-
breakPage:
|
|
1741
|
+
breakPage: d = !1,
|
|
1742
1742
|
children: e,
|
|
1743
1743
|
className: t,
|
|
1744
1744
|
noPrint: a = !1,
|
|
1745
1745
|
props: n = {},
|
|
1746
1746
|
title: s,
|
|
1747
|
-
titleClass:
|
|
1748
|
-
titleId:
|
|
1747
|
+
titleClass: r,
|
|
1748
|
+
titleId: l
|
|
1749
1749
|
}) => /* @__PURE__ */ M(
|
|
1750
1750
|
"section",
|
|
1751
1751
|
{
|
|
@@ -1753,24 +1753,24 @@ const j = {
|
|
|
1753
1753
|
"spacer",
|
|
1754
1754
|
{
|
|
1755
1755
|
"print:!hidden": a,
|
|
1756
|
-
"print:!break-before-page":
|
|
1756
|
+
"print:!break-before-page": d
|
|
1757
1757
|
},
|
|
1758
1758
|
t
|
|
1759
1759
|
),
|
|
1760
1760
|
...n,
|
|
1761
1761
|
children: [
|
|
1762
|
-
s && /* @__PURE__ */ o("h2", { className: u("spacer-title",
|
|
1762
|
+
s && /* @__PURE__ */ o("h2", { className: u("spacer-title", r), id: l, children: s }),
|
|
1763
1763
|
e
|
|
1764
1764
|
]
|
|
1765
1765
|
}
|
|
1766
|
-
), Y1 = g1, M1 = ({ children:
|
|
1766
|
+
), Y1 = g1, M1 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: u("stacked-list", e), children: d }), K1 = M1, v1 = ({ children: d, 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 || d
|
|
1774
1774
|
}
|
|
1775
1775
|
), X1 = x(v1), _1 = {
|
|
1776
1776
|
theme: {
|
|
@@ -2019,46 +2019,77 @@ const j = {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
},
|
|
2021
2021
|
plugins: [
|
|
2022
|
-
({ addUtilities:
|
|
2023
|
-
const n =
|
|
2022
|
+
({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
|
|
2023
|
+
const n = ["2", "5"], s = {
|
|
2024
2024
|
light: "300",
|
|
2025
2025
|
normal: "400",
|
|
2026
2026
|
medium: "500",
|
|
2027
2027
|
semibold: "600",
|
|
2028
2028
|
bold: "700"
|
|
2029
|
-
}
|
|
2030
|
-
Object.entries({
|
|
2029
|
+
}, r = {
|
|
2031
2030
|
1: "1.75rem",
|
|
2032
2031
|
2: "1.625rem",
|
|
2033
2032
|
3: "1.25rem",
|
|
2034
2033
|
4: "1.125rem",
|
|
2035
2034
|
5: "1rem"
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
|
|
2035
|
+
}, l = {
|
|
2036
|
+
1: "0.938rem",
|
|
2037
|
+
2: "0.813rem",
|
|
2038
|
+
3: "0.75rem"
|
|
2039
|
+
}, i = ({
|
|
2040
|
+
classPrefix: c = "",
|
|
2041
|
+
fixedProps: h = {},
|
|
2042
|
+
sizeProps: p = (V = {}) => {
|
|
2043
|
+
},
|
|
2044
|
+
sizes: H,
|
|
2045
|
+
weights: g,
|
|
2046
|
+
weightProps: b = (V = {}) => {
|
|
2047
|
+
}
|
|
2048
|
+
}) => {
|
|
2049
|
+
const V = {};
|
|
2050
|
+
Object.entries(H).forEach(([m, f]) => {
|
|
2051
|
+
const w = {
|
|
2052
|
+
"font-size": f,
|
|
2053
|
+
...h
|
|
2054
|
+
}, v = `.${a(`${c}-${m}`)}`;
|
|
2055
|
+
V[v] = {
|
|
2056
|
+
...w,
|
|
2057
|
+
...p({ sizeKey: m, sizeValue: f })
|
|
2058
|
+
}, Object.entries(g).forEach(([k, z]) => {
|
|
2059
|
+
const A = `.${a(`${c}-${m}-${k}`)}`;
|
|
2060
|
+
V[A] = {
|
|
2061
|
+
...w,
|
|
2062
|
+
"font-weight": z,
|
|
2063
|
+
...b({ sizeKey: m, sizeValue: f, weightKey: k, weightValue: z })
|
|
2064
|
+
};
|
|
2065
|
+
});
|
|
2066
|
+
}), d(V);
|
|
2067
|
+
};
|
|
2068
|
+
i({
|
|
2069
|
+
classPrefix: "header",
|
|
2070
|
+
fixedProps: {
|
|
2039
2071
|
"line-height": "1.5"
|
|
2040
|
-
},
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
}), c(n), e(
|
|
2072
|
+
},
|
|
2073
|
+
sizeProps: ({ sizeKey: c }) => ({
|
|
2074
|
+
"font-weight": n.includes(c) ? s.semibold : s.bold
|
|
2075
|
+
}),
|
|
2076
|
+
sizes: r,
|
|
2077
|
+
weights: s
|
|
2078
|
+
}), i({
|
|
2079
|
+
classPrefix: "text-body",
|
|
2080
|
+
sizes: l,
|
|
2081
|
+
weights: s
|
|
2082
|
+
}), e(
|
|
2052
2083
|
{
|
|
2053
|
-
aspect: (
|
|
2084
|
+
aspect: (c) => ({
|
|
2054
2085
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
2055
|
-
aspectRatio:
|
|
2086
|
+
aspectRatio: c
|
|
2056
2087
|
},
|
|
2057
2088
|
"@supports not (aspect-ratio: 1 / 1)": {
|
|
2058
2089
|
"&::before": {
|
|
2059
2090
|
content: '""',
|
|
2060
2091
|
float: "left",
|
|
2061
|
-
paddingTop: `calc(100% / (${
|
|
2092
|
+
paddingTop: `calc(100% / (${c}))`
|
|
2062
2093
|
},
|
|
2063
2094
|
"&::after": {
|
|
2064
2095
|
clear: "left",
|
|
@@ -2071,20 +2102,20 @@ const j = {
|
|
|
2071
2102
|
{ values: t("aspectRatio") }
|
|
2072
2103
|
), e(
|
|
2073
2104
|
{
|
|
2074
|
-
"animation-delay": (
|
|
2075
|
-
"animation-delay":
|
|
2105
|
+
"animation-delay": (c) => ({
|
|
2106
|
+
"animation-delay": c
|
|
2076
2107
|
})
|
|
2077
2108
|
},
|
|
2078
2109
|
{
|
|
2079
2110
|
values: t("transitionDelay")
|
|
2080
2111
|
}
|
|
2081
2112
|
), e({
|
|
2082
|
-
"max-block": (
|
|
2083
|
-
"max-block-size":
|
|
2113
|
+
"max-block": (c) => ({
|
|
2114
|
+
"max-block-size": c
|
|
2084
2115
|
})
|
|
2085
2116
|
}), e({
|
|
2086
|
-
"max-inline": (
|
|
2087
|
-
"max-inline-size":
|
|
2117
|
+
"max-inline": (c) => ({
|
|
2118
|
+
"max-inline-size": c
|
|
2088
2119
|
})
|
|
2089
2120
|
});
|
|
2090
2121
|
}
|
|
@@ -2155,41 +2186,41 @@ const j = {
|
|
|
2155
2186
|
touchAction: !1
|
|
2156
2187
|
}
|
|
2157
2188
|
};
|
|
2158
|
-
function b1(
|
|
2159
|
-
return new Proxy(
|
|
2189
|
+
function b1(d, e = []) {
|
|
2190
|
+
return new Proxy(d, {
|
|
2160
2191
|
get: function(t, a) {
|
|
2161
2192
|
return t[a];
|
|
2162
2193
|
},
|
|
2163
2194
|
set(t, a, n) {
|
|
2164
2195
|
const s = { ...t };
|
|
2165
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2196
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, s, a)), t;
|
|
2166
2197
|
}
|
|
2167
2198
|
});
|
|
2168
2199
|
}
|
|
2169
|
-
function e2(
|
|
2170
|
-
e.length && (
|
|
2200
|
+
function e2(d, e = []) {
|
|
2201
|
+
e.length && (d == null || d.classList.add(...e));
|
|
2171
2202
|
}
|
|
2172
|
-
function t2(
|
|
2173
|
-
e.length && (
|
|
2203
|
+
function t2(d, e = []) {
|
|
2204
|
+
e.length && (d == null || d.classList.remove(...e));
|
|
2174
2205
|
}
|
|
2175
|
-
function a2({ cb:
|
|
2206
|
+
function a2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2176
2207
|
let s = !0;
|
|
2177
|
-
for (const [
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
p.isValid(
|
|
2181
|
-
}), h.length ? (s = !1,
|
|
2182
|
-
p.preventDefault(),
|
|
2208
|
+
for (const [r, l] of t.entries()) {
|
|
2209
|
+
const i = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
|
|
2210
|
+
c.forEach((p) => {
|
|
2211
|
+
p.isValid(l) || h.push(p.message);
|
|
2212
|
+
}), h.length ? (s = !1, i.classList.add("field-error"), d && d({ isValid: s, field: i, validations: a })) : (i.classList.remove("field-error"), d && d({ isValid: !0, field: i, validations: a })), n && (i == null || i.addEventListener("input", (p) => {
|
|
2213
|
+
p.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
|
|
2183
2214
|
}));
|
|
2184
2215
|
}
|
|
2185
2216
|
return s;
|
|
2186
2217
|
}
|
|
2187
|
-
function n2(
|
|
2218
|
+
function n2(d) {
|
|
2188
2219
|
const e = (
|
|
2189
2220
|
// eslint-disable-next-line
|
|
2190
2221
|
/(?:[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
2222
|
), t = /[^a-zA-Z]+$/;
|
|
2192
|
-
return e.test(
|
|
2223
|
+
return e.test(d.toLowerCase()) && !t.test(d);
|
|
2193
2224
|
}
|
|
2194
2225
|
class s2 {
|
|
2195
2226
|
init(e) {
|
|
@@ -2233,16 +2264,16 @@ class s2 {
|
|
|
2233
2264
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2234
2265
|
}
|
|
2235
2266
|
handleIntersect(e, t, a) {
|
|
2236
|
-
const n = e.filter((
|
|
2237
|
-
(
|
|
2267
|
+
const n = e.filter((i) => i.isIntersecting), s = n.length === a.slides.length, r = n.every(
|
|
2268
|
+
(i) => i.isIntersecting === !0
|
|
2238
2269
|
);
|
|
2239
|
-
s &&
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2270
|
+
s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
|
|
2271
|
+
const c = [...a.slides].indexOf(i.target);
|
|
2272
|
+
i.target === a.slides[0] && (a.showPrevBtn = i.isIntersecting), i.target === a.slides[a.slides.length - 1] && (a.showNextBtn = i.isIntersecting), i.target === a.slides[2] && (a.scrollToStart = i.isIntersecting), i.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = i.isIntersecting), i.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, l(i));
|
|
2242
2273
|
}));
|
|
2243
|
-
function
|
|
2244
|
-
var
|
|
2245
|
-
|
|
2274
|
+
function l(i) {
|
|
2275
|
+
var c;
|
|
2276
|
+
i.target !== a.slides[a.slides.length - 1] && i.target !== a.slides[0] && i.target !== a.slides[2] && i.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(i.target));
|
|
2246
2277
|
}
|
|
2247
2278
|
}
|
|
2248
2279
|
btnListeners(e) {
|
|
@@ -2261,7 +2292,7 @@ class s2 {
|
|
|
2261
2292
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2262
2293
|
}
|
|
2263
2294
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2264
|
-
const s = '<span class="slide-first"></span>',
|
|
2295
|
+
const s = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
2265
2296
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2266
2297
|
return console.error(`slider-container-${a} Not Found`);
|
|
2267
2298
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2269,8 +2300,8 @@ class s2 {
|
|
|
2269
2300
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2270
2301
|
`#btn-right-${a}`
|
|
2271
2302
|
);
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2303
|
+
const l = t.map((c) => n(c)).join(""), i = document.createElement("div");
|
|
2304
|
+
i.innerHTML = `${s}${l}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
|
|
2274
2305
|
}
|
|
2275
2306
|
showHideBtns(e, t, a) {
|
|
2276
2307
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2280,12 +2311,12 @@ class s2 {
|
|
|
2280
2311
|
}
|
|
2281
2312
|
}
|
|
2282
2313
|
}
|
|
2283
|
-
class
|
|
2314
|
+
class C {
|
|
2284
2315
|
static calcCrow(e, t, a, n) {
|
|
2285
|
-
const
|
|
2286
|
-
e =
|
|
2287
|
-
const
|
|
2288
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2316
|
+
const r = C.toRad(a - e), l = C.toRad(n - t);
|
|
2317
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
2318
|
+
const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(l / 2) * Math.sin(l / 2) * Math.cos(e) * Math.cos(a);
|
|
2319
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
|
|
2289
2320
|
}
|
|
2290
2321
|
static cleanupAddress(e) {
|
|
2291
2322
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2298,9 +2329,9 @@ class H {
|
|
|
2298
2329
|
return;
|
|
2299
2330
|
window.dataLayer = window.dataLayer || [];
|
|
2300
2331
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2301
|
-
typeof
|
|
2332
|
+
typeof C == "function" && t.forEach((a) => {
|
|
2302
2333
|
a.addEventListener("click", () => {
|
|
2303
|
-
|
|
2334
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
2304
2335
|
});
|
|
2305
2336
|
});
|
|
2306
2337
|
}
|
|
@@ -2313,21 +2344,21 @@ class H {
|
|
|
2313
2344
|
static async createData(e, t = null, a = !0) {
|
|
2314
2345
|
if (window.options.isBot || !t)
|
|
2315
2346
|
return null;
|
|
2316
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2347
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, l = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
|
|
2317
2348
|
try {
|
|
2318
|
-
const
|
|
2349
|
+
const c = await fetch(l, {
|
|
2319
2350
|
method: "POST",
|
|
2320
|
-
body:
|
|
2351
|
+
body: i === "null" ? null : i,
|
|
2321
2352
|
headers: {
|
|
2322
|
-
website:
|
|
2353
|
+
website: C.getWebsiteHeaderName()
|
|
2323
2354
|
}
|
|
2324
|
-
}), h =
|
|
2355
|
+
}), h = c.headers.get("content-type");
|
|
2325
2356
|
if (h && h.indexOf("application/json") !== -1)
|
|
2326
|
-
return
|
|
2327
|
-
const p = await
|
|
2357
|
+
return c.json();
|
|
2358
|
+
const p = await c.text();
|
|
2328
2359
|
return p ? p.replace("__next", "") : null;
|
|
2329
|
-
} catch (
|
|
2330
|
-
console.error("createData",
|
|
2360
|
+
} catch (c) {
|
|
2361
|
+
console.error("createData", c);
|
|
2331
2362
|
}
|
|
2332
2363
|
return null;
|
|
2333
2364
|
}
|
|
@@ -2336,7 +2367,7 @@ class H {
|
|
|
2336
2367
|
}
|
|
2337
2368
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2338
2369
|
try {
|
|
2339
|
-
return await
|
|
2370
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
2340
2371
|
} catch (t) {
|
|
2341
2372
|
console.error("deleteSearchValue", t.message);
|
|
2342
2373
|
}
|
|
@@ -2387,17 +2418,17 @@ class H {
|
|
|
2387
2418
|
static async fetchData(e, t = !1, a = !0) {
|
|
2388
2419
|
if (options.isBot)
|
|
2389
2420
|
return null;
|
|
2390
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2421
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2391
2422
|
try {
|
|
2392
|
-
const
|
|
2423
|
+
const i = await fetch(l, { method: "GET" });
|
|
2393
2424
|
if (t === !0) {
|
|
2394
|
-
const h = await
|
|
2425
|
+
const h = await i.text();
|
|
2395
2426
|
return h ? h.replace("__next", "") : null;
|
|
2396
2427
|
}
|
|
2397
|
-
const
|
|
2398
|
-
return
|
|
2399
|
-
} catch (
|
|
2400
|
-
console.error("fetchData",
|
|
2428
|
+
const c = i.headers.get("content-type");
|
|
2429
|
+
return c && c.indexOf("application/json") !== -1 ? i.json() : null;
|
|
2430
|
+
} catch (i) {
|
|
2431
|
+
console.error("fetchData", i, e);
|
|
2401
2432
|
}
|
|
2402
2433
|
return null;
|
|
2403
2434
|
}
|
|
@@ -2407,8 +2438,8 @@ class H {
|
|
|
2407
2438
|
}
|
|
2408
2439
|
static formatDate(e = null) {
|
|
2409
2440
|
return e ? (e = new Date(e), [
|
|
2410
|
-
|
|
2411
|
-
|
|
2441
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
2442
|
+
C.padTo2Digits(e.getDate()),
|
|
2412
2443
|
e.getFullYear()
|
|
2413
2444
|
].join("-")) : null;
|
|
2414
2445
|
}
|
|
@@ -2425,12 +2456,12 @@ class H {
|
|
|
2425
2456
|
swLng: 0
|
|
2426
2457
|
};
|
|
2427
2458
|
const n = e.getBounds();
|
|
2428
|
-
let s = n.getSouth(),
|
|
2429
|
-
return a && (s = s - a,
|
|
2459
|
+
let s = n.getSouth(), r = n.getEast(), l = n.getNorth(), i = n.getWest();
|
|
2460
|
+
return a && (s = s - a, r = r + a, l = l + a, i = i - a), t && (s = s.toFixed(t), r = r.toFixed(t), l = l.toFixed(t), i = i.toFixed(t)), {
|
|
2430
2461
|
swLat: s,
|
|
2431
|
-
neLng:
|
|
2432
|
-
neLat:
|
|
2433
|
-
swLng:
|
|
2462
|
+
neLng: r,
|
|
2463
|
+
neLat: l,
|
|
2464
|
+
swLng: i
|
|
2434
2465
|
};
|
|
2435
2466
|
}
|
|
2436
2467
|
static getFirstN(e, t = 5) {
|
|
@@ -2458,45 +2489,45 @@ class H {
|
|
|
2458
2489
|
return "/report/license-plate";
|
|
2459
2490
|
}
|
|
2460
2491
|
static async getHeaders(e = 300) {
|
|
2461
|
-
var
|
|
2492
|
+
var i;
|
|
2462
2493
|
const {
|
|
2463
2494
|
userAgent: t = null,
|
|
2464
2495
|
userAgentData: a = null,
|
|
2465
2496
|
platform: n = null
|
|
2466
|
-
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n,
|
|
2497
|
+
} = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, r = {
|
|
2467
2498
|
tolken: null,
|
|
2468
2499
|
ip: null,
|
|
2469
2500
|
userAgent: t,
|
|
2470
2501
|
platform: s
|
|
2471
2502
|
};
|
|
2472
2503
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2473
|
-
return
|
|
2474
|
-
const
|
|
2475
|
-
if (
|
|
2476
|
-
const
|
|
2477
|
-
return
|
|
2478
|
-
tolken:
|
|
2479
|
-
ip:
|
|
2504
|
+
return r;
|
|
2505
|
+
const l = localStorage.getItem("headerTolken");
|
|
2506
|
+
if (l) {
|
|
2507
|
+
const c = JSON.parse(l), h = (/* @__PURE__ */ new Date()).getTime();
|
|
2508
|
+
return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
2509
|
+
tolken: c.tolken,
|
|
2510
|
+
ip: c.ip,
|
|
2480
2511
|
userAgent: t,
|
|
2481
2512
|
platform: s
|
|
2482
2513
|
};
|
|
2483
2514
|
}
|
|
2484
|
-
if ((
|
|
2485
|
-
return
|
|
2515
|
+
if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
|
|
2516
|
+
return r;
|
|
2486
2517
|
try {
|
|
2487
|
-
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null,
|
|
2518
|
+
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, H = (h == null ? void 0 : h.ip) ?? null;
|
|
2488
2519
|
return localStorage.setItem(
|
|
2489
2520
|
"headerTolken",
|
|
2490
2521
|
JSON.stringify({
|
|
2491
2522
|
tolken: p,
|
|
2492
|
-
ip:
|
|
2523
|
+
ip: H,
|
|
2493
2524
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2494
2525
|
})
|
|
2495
|
-
), { tolken: p, ip:
|
|
2496
|
-
} catch (
|
|
2497
|
-
console.error("getHeaders",
|
|
2526
|
+
), { tolken: p, ip: H, userAgent: t, platform: s };
|
|
2527
|
+
} catch (c) {
|
|
2528
|
+
console.error("getHeaders", c);
|
|
2498
2529
|
}
|
|
2499
|
-
return
|
|
2530
|
+
return r;
|
|
2500
2531
|
}
|
|
2501
2532
|
static getLayerTitle(e) {
|
|
2502
2533
|
return {
|
|
@@ -2505,19 +2536,19 @@ class H {
|
|
|
2505
2536
|
}[e];
|
|
2506
2537
|
}
|
|
2507
2538
|
static async getLocationData(e) {
|
|
2508
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2509
|
-
return await
|
|
2539
|
+
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;
|
|
2540
|
+
return await C.fetchData("/api/client?query=" + r);
|
|
2510
2541
|
}
|
|
2511
2542
|
static getReportUrl(e, t = null) {
|
|
2512
|
-
var
|
|
2513
|
-
const a = ((
|
|
2543
|
+
var i, c, h;
|
|
2544
|
+
const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2514
2545
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2515
|
-
const
|
|
2516
|
-
return "/" + [a, n, s].filter((p) => p).map((p) =>
|
|
2546
|
+
const l = [r, "-piq", t].filter((p) => p).join("");
|
|
2547
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + l;
|
|
2517
2548
|
}
|
|
2518
2549
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2519
2550
|
try {
|
|
2520
|
-
return await
|
|
2551
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
2521
2552
|
} catch (t) {
|
|
2522
2553
|
console.error("getSearchValue", t.message);
|
|
2523
2554
|
}
|
|
@@ -2645,7 +2676,7 @@ class H {
|
|
|
2645
2676
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2646
2677
|
return null;
|
|
2647
2678
|
try {
|
|
2648
|
-
return await
|
|
2679
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
2649
2680
|
} catch (t) {
|
|
2650
2681
|
console.error("getUser", t.message);
|
|
2651
2682
|
}
|
|
@@ -2661,7 +2692,7 @@ class H {
|
|
|
2661
2692
|
uuid: t
|
|
2662
2693
|
}
|
|
2663
2694
|
});
|
|
2664
|
-
return await
|
|
2695
|
+
return await C.makeSearchFetchCall(
|
|
2665
2696
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2666
2697
|
);
|
|
2667
2698
|
}
|
|
@@ -2679,24 +2710,24 @@ class H {
|
|
|
2679
2710
|
static gridTest(e, t, a = 1500) {
|
|
2680
2711
|
const n = this;
|
|
2681
2712
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2682
|
-
createTile: function(s,
|
|
2683
|
-
const
|
|
2713
|
+
createTile: function(s, r) {
|
|
2714
|
+
const l = document.createElement("div");
|
|
2684
2715
|
return setTimeout(() => {
|
|
2685
|
-
|
|
2686
|
-
const { se:
|
|
2716
|
+
r(null, l);
|
|
2717
|
+
const { se: i, nw: c } = n.getGridBounds({
|
|
2687
2718
|
map: e,
|
|
2688
2719
|
tileSize: this.getTileSize(),
|
|
2689
2720
|
coords: s
|
|
2690
2721
|
});
|
|
2691
2722
|
t({
|
|
2692
|
-
swLat:
|
|
2693
|
-
neLng:
|
|
2694
|
-
neLat:
|
|
2695
|
-
swLng:
|
|
2723
|
+
swLat: i.lat,
|
|
2724
|
+
neLng: i.lng,
|
|
2725
|
+
neLat: c.lat,
|
|
2726
|
+
swLng: c.lng,
|
|
2696
2727
|
coords: s,
|
|
2697
2728
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2698
2729
|
});
|
|
2699
|
-
}, a),
|
|
2730
|
+
}, a), l;
|
|
2700
2731
|
}
|
|
2701
2732
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2702
2733
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2719,7 +2750,7 @@ class H {
|
|
|
2719
2750
|
onClose: n = null,
|
|
2720
2751
|
disableOutsideClick: s = !1
|
|
2721
2752
|
}) {
|
|
2722
|
-
const
|
|
2753
|
+
const r = e ? document.querySelectorAll(e) : [], l = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2723
2754
|
"closing",
|
|
2724
2755
|
"closed",
|
|
2725
2756
|
"opening",
|
|
@@ -2737,56 +2768,56 @@ class H {
|
|
|
2737
2768
|
if (w.attributeName === "open") {
|
|
2738
2769
|
const v = w.target;
|
|
2739
2770
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2740
|
-
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(
|
|
2771
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await V(v), v == null || v.dispatchEvent(c.opened);
|
|
2741
2772
|
}
|
|
2742
2773
|
});
|
|
2743
2774
|
}), p = new MutationObserver((m, f) => {
|
|
2744
2775
|
m.forEach((w) => {
|
|
2745
2776
|
w.removedNodes.forEach((v) => {
|
|
2746
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", g), v.dispatchEvent(
|
|
2777
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", g), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
2747
2778
|
});
|
|
2748
2779
|
});
|
|
2749
2780
|
});
|
|
2750
|
-
|
|
2781
|
+
l && (h.observe(l, {
|
|
2751
2782
|
attributes: !0
|
|
2752
2783
|
}), p.observe(document.body, {
|
|
2753
2784
|
attributes: !1,
|
|
2754
2785
|
subtree: !1,
|
|
2755
2786
|
childList: !0
|
|
2756
2787
|
}));
|
|
2757
|
-
const
|
|
2758
|
-
|
|
2788
|
+
const H = () => {
|
|
2789
|
+
l == null || l.showModal();
|
|
2759
2790
|
}, g = async ({ target: m }) => {
|
|
2760
|
-
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(
|
|
2791
|
+
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await V(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
|
|
2761
2792
|
}, b = async ({ target: m }) => {
|
|
2762
|
-
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(
|
|
2763
|
-
},
|
|
2793
|
+
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), l == null || l.close("outside"));
|
|
2794
|
+
}, V = (m) => Promise.allSettled(
|
|
2764
2795
|
m == null ? void 0 : m.getAnimations().map((f) => f == null ? void 0 : f.finished)
|
|
2765
2796
|
);
|
|
2766
|
-
return !s && (
|
|
2797
|
+
return !s && (l == null || l.addEventListener("click", b)), l == null || l.addEventListener("close", g), r == null || r.forEach((m) => {
|
|
2767
2798
|
m.addEventListener("click", (f) => {
|
|
2768
|
-
|
|
2799
|
+
H(), a && a(f, l);
|
|
2769
2800
|
});
|
|
2770
|
-
}),
|
|
2801
|
+
}), i == null || i.forEach((m) => {
|
|
2771
2802
|
m.addEventListener("click", async (f) => {
|
|
2772
|
-
|
|
2803
|
+
l == null || l.close("close"), n && n(f, l);
|
|
2773
2804
|
});
|
|
2774
2805
|
}), {
|
|
2775
|
-
activators:
|
|
2776
|
-
ref:
|
|
2777
|
-
handleOpen:
|
|
2806
|
+
activators: r,
|
|
2807
|
+
ref: l,
|
|
2808
|
+
handleOpen: H,
|
|
2778
2809
|
handleClose: g
|
|
2779
2810
|
};
|
|
2780
2811
|
}
|
|
2781
2812
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2782
|
-
return
|
|
2813
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2783
2814
|
}
|
|
2784
2815
|
static initObserver(e, t, a = null) {
|
|
2785
2816
|
if (!e)
|
|
2786
2817
|
return;
|
|
2787
2818
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2788
|
-
new IntersectionObserver(async (
|
|
2789
|
-
n ? (
|
|
2819
|
+
new IntersectionObserver(async (r, l) => {
|
|
2820
|
+
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: l, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: l, entry: r[0], entries: r });
|
|
2790
2821
|
}, a).observe(e);
|
|
2791
2822
|
}
|
|
2792
2823
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2794,11 +2825,11 @@ class H {
|
|
|
2794
2825
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2795
2826
|
}
|
|
2796
2827
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2797
|
-
return new Promise(function(s,
|
|
2798
|
-
let
|
|
2799
|
-
if (t &&
|
|
2828
|
+
return new Promise(function(s, r) {
|
|
2829
|
+
let l = document.getElementById(t);
|
|
2830
|
+
if (t && l && l.dataset.loaded === "true")
|
|
2800
2831
|
return s({ alreadyLoaded: !0, id: t });
|
|
2801
|
-
|
|
2832
|
+
l || (l = document.createElement("script"), l.src = e, l.dataset.loaded = "false", t && (l.id = t), l.type = n ? "module" : "text/javascript", l.async = a, document.body.appendChild(l), l.onload = () => (l.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), l.onerror = () => r(!1));
|
|
2802
2833
|
});
|
|
2803
2834
|
}
|
|
2804
2835
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2831,14 +2862,14 @@ class H {
|
|
|
2831
2862
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2832
2863
|
}
|
|
2833
2864
|
static async logRequest(e = null, t = null, a = null, n = null, s = null) {
|
|
2834
|
-
const
|
|
2865
|
+
const r = {
|
|
2835
2866
|
name: e,
|
|
2836
2867
|
uuid: t,
|
|
2837
2868
|
ip: a,
|
|
2838
2869
|
url: n,
|
|
2839
2870
|
data: s
|
|
2840
2871
|
};
|
|
2841
|
-
return await
|
|
2872
|
+
return await C.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2842
2873
|
}
|
|
2843
2874
|
static loadAds() {
|
|
2844
2875
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2855,7 +2886,7 @@ class H {
|
|
|
2855
2886
|
if (e) {
|
|
2856
2887
|
const n = "/scripts/" + e + ".js?v=100.0.5";
|
|
2857
2888
|
try {
|
|
2858
|
-
return await
|
|
2889
|
+
return await C.injectScript({
|
|
2859
2890
|
src: n,
|
|
2860
2891
|
id: t || e,
|
|
2861
2892
|
async: !1,
|
|
@@ -2871,11 +2902,11 @@ class H {
|
|
|
2871
2902
|
if (window.options.googleMapsLoaded === !0)
|
|
2872
2903
|
return;
|
|
2873
2904
|
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
|
|
2905
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2875
2906
|
}
|
|
2876
2907
|
static async loadLeafletApi() {
|
|
2877
2908
|
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
|
|
2909
|
+
await C.injectLink({ href: a, id: "leafletCss" }), await C.injectLink({ href: s, id: "gestureCss" }), await C.injectScript({ src: t, id: "leafletJs", async: !1 }), await C.injectScript({
|
|
2879
2910
|
src: n,
|
|
2880
2911
|
id: "gestureJs",
|
|
2881
2912
|
async: !1
|
|
@@ -2890,7 +2921,7 @@ class H {
|
|
|
2890
2921
|
}
|
|
2891
2922
|
static async loadSwiper() {
|
|
2892
2923
|
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
|
|
2924
|
+
await C.injectLink({ href: a, id: "swiperCss" }), await C.injectScript({ src: t, id: "swiperJs", async: !1 });
|
|
2894
2925
|
}
|
|
2895
2926
|
static async makeSearchFetchCall(e) {
|
|
2896
2927
|
try {
|
|
@@ -2923,17 +2954,17 @@ class H {
|
|
|
2923
2954
|
first: a = null,
|
|
2924
2955
|
middle: n = null,
|
|
2925
2956
|
last: s = null,
|
|
2926
|
-
min:
|
|
2927
|
-
max:
|
|
2928
|
-
city:
|
|
2929
|
-
state:
|
|
2957
|
+
min: r = null,
|
|
2958
|
+
max: l = null,
|
|
2959
|
+
city: i = null,
|
|
2960
|
+
state: c = null,
|
|
2930
2961
|
vin: h = null,
|
|
2931
2962
|
license: p = null,
|
|
2932
|
-
token:
|
|
2963
|
+
token: H = null,
|
|
2933
2964
|
phone: g = null
|
|
2934
|
-
} = e || {}, b = t && t !== "",
|
|
2965
|
+
} = e || {}, b = t && t !== "", V = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
|
|
2935
2966
|
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)),
|
|
2967
|
+
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)), V && m ? parseInt(r) > parseInt(l) ? (f.push("min=" + l), f.push("max=" + r)) : (f.push("min=" + r), f.push("max=" + l)) : (V && f.push("min=" + r), m && f.push("max=" + l)), g && g !== "" && f.push("phone=" + g), i && i !== "" && f.push("city=" + i), p && p !== "" && f.push("license=" + p), h && h !== "" && f.push("vin=" + h), c && c !== "" && f.push("state=" + c), H && H !== "" && f.push("token=" + H), f.join("&");
|
|
2937
2968
|
}
|
|
2938
2969
|
static padTo2Digits(e) {
|
|
2939
2970
|
return e.toString().padStart(2, "0");
|
|
@@ -2947,22 +2978,22 @@ class H {
|
|
|
2947
2978
|
addressesOnly: a = !1,
|
|
2948
2979
|
useCitySearch: n = !1,
|
|
2949
2980
|
useCityStateSearch: s = !1,
|
|
2950
|
-
useSearch:
|
|
2951
|
-
useLocation:
|
|
2952
|
-
state:
|
|
2953
|
-
useGoogle:
|
|
2954
|
-
} = t ?? {}, { tolken: h = null, ip: p = null } = await
|
|
2981
|
+
useSearch: r = !1,
|
|
2982
|
+
useLocation: l = !0,
|
|
2983
|
+
state: i = "",
|
|
2984
|
+
useGoogle: c = !1
|
|
2985
|
+
} = t ?? {}, { tolken: h = null, ip: p = null } = await C.getHeaders(), g = [
|
|
2955
2986
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2956
2987
|
"addressesOnly=" + a,
|
|
2957
|
-
"useSearch=" +
|
|
2988
|
+
"useSearch=" + r,
|
|
2958
2989
|
"useCitySearch=" + n,
|
|
2959
2990
|
"useCityStateSearch=" + s,
|
|
2960
|
-
"useLocation=" +
|
|
2961
|
-
"useGoogle=" +
|
|
2991
|
+
"useLocation=" + l,
|
|
2992
|
+
"useGoogle=" + c
|
|
2962
2993
|
];
|
|
2963
|
-
|
|
2994
|
+
i && i !== "" && !s && g.push("state=" + i), h && h !== "" && g.push("tolken=" + h), p && p !== "" && g.push("ip=" + p);
|
|
2964
2995
|
const b = g.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
|
|
2965
|
-
return await
|
|
2996
|
+
return await C.makeSearchFetchCall(m);
|
|
2966
2997
|
}
|
|
2967
2998
|
static removeElements(e) {
|
|
2968
2999
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -2981,7 +3012,7 @@ class H {
|
|
|
2981
3012
|
});
|
|
2982
3013
|
}
|
|
2983
3014
|
static searchInStates(e) {
|
|
2984
|
-
const t =
|
|
3015
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
2985
3016
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
2986
3017
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
2987
3018
|
}
|
|
@@ -2989,7 +3020,7 @@ class H {
|
|
|
2989
3020
|
typeof woopra == "object" && woopra.track(e, t);
|
|
2990
3021
|
}
|
|
2991
3022
|
static setBoundsEntries(e, t = "bounds") {
|
|
2992
|
-
const a =
|
|
3023
|
+
const a = C.getBoundsEntries(t);
|
|
2993
3024
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
2994
3025
|
}
|
|
2995
3026
|
static async setCityState(e = null) {
|
|
@@ -2998,7 +3029,7 @@ class H {
|
|
|
2998
3029
|
return e;
|
|
2999
3030
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3000
3031
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3001
|
-
if (
|
|
3032
|
+
if (C.getStates(), a && !n) {
|
|
3002
3033
|
const s = this.searchInStates(a);
|
|
3003
3034
|
s && (a = null, n = s.short);
|
|
3004
3035
|
}
|
|
@@ -3007,16 +3038,16 @@ class H {
|
|
|
3007
3038
|
s && (n = s.short);
|
|
3008
3039
|
}
|
|
3009
3040
|
if (a && !n) {
|
|
3010
|
-
const s = a.split(" "),
|
|
3011
|
-
if (
|
|
3012
|
-
const
|
|
3013
|
-
|
|
3041
|
+
const s = a.split(" "), r = s[s.length - 1];
|
|
3042
|
+
if (r.length) {
|
|
3043
|
+
const l = this.searchInStates(r);
|
|
3044
|
+
l && (n = l.short, a = s.slice(0, -1).join(" "));
|
|
3014
3045
|
}
|
|
3015
3046
|
}
|
|
3016
3047
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3017
3048
|
}
|
|
3018
3049
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3019
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3050
|
+
localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
|
|
3020
3051
|
}
|
|
3021
3052
|
static stickyHeader(e = ".nav") {
|
|
3022
3053
|
const t = document.querySelector(e);
|
|
@@ -3043,7 +3074,7 @@ class H {
|
|
|
3043
3074
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3044
3075
|
}
|
|
3045
3076
|
static useLayerTitle(e, t) {
|
|
3046
|
-
const a =
|
|
3077
|
+
const a = C.getLayerTitle(e);
|
|
3047
3078
|
L.tileLayer(a, {
|
|
3048
3079
|
maxNativeZoom: 19,
|
|
3049
3080
|
maxZoom: 25,
|
|
@@ -3052,7 +3083,7 @@ class H {
|
|
|
3052
3083
|
}).addTo(t);
|
|
3053
3084
|
}
|
|
3054
3085
|
static ucWords(e) {
|
|
3055
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3086
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
3056
3087
|
}
|
|
3057
3088
|
}
|
|
3058
3089
|
export {
|
|
@@ -3060,18 +3091,18 @@ export {
|
|
|
3060
3091
|
k1 as Alert,
|
|
3061
3092
|
S1 as Autocomplete,
|
|
3062
3093
|
z1 as Badge,
|
|
3063
|
-
|
|
3094
|
+
F as Button,
|
|
3064
3095
|
N1 as ButtonGroup,
|
|
3065
3096
|
Z1 as Card,
|
|
3066
3097
|
s2 as CardSlider,
|
|
3067
3098
|
E1 as Checkbox,
|
|
3068
|
-
|
|
3069
|
-
|
|
3099
|
+
C as Common,
|
|
3100
|
+
G1 as ContactForm,
|
|
3070
3101
|
F1 as Container,
|
|
3071
|
-
|
|
3102
|
+
Q1 as ContentCard,
|
|
3072
3103
|
B1 as Dialog,
|
|
3073
|
-
|
|
3074
|
-
|
|
3104
|
+
$1 as DialogOld,
|
|
3105
|
+
D1 as Dots,
|
|
3075
3106
|
J1 as FlexItem,
|
|
3076
3107
|
X1 as FunnelHeader,
|
|
3077
3108
|
y as Icon,
|
|
@@ -3085,9 +3116,9 @@ export {
|
|
|
3085
3116
|
Y1 as Spacer,
|
|
3086
3117
|
I1 as Spinner,
|
|
3087
3118
|
K1 as StackedListItem,
|
|
3088
|
-
|
|
3119
|
+
U1 as Stars,
|
|
3089
3120
|
f1 as TextArea,
|
|
3090
|
-
|
|
3121
|
+
B as Textbox,
|
|
3091
3122
|
e2 as addClass,
|
|
3092
3123
|
t2 as removeClass,
|
|
3093
3124
|
_1 as twPreset,
|