@vehiclehistory/property-lib 0.0.34 → 0.0.36
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.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { memo as y, useState as N, useEffect as Z, useRef as W } from "react";
|
|
6
|
-
import p from "classnames";
|
|
7
|
-
const U = {
|
|
1
|
+
import { jsx as o, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { memo as y, useState as N, useEffect as z, useRef as q } from "react";
|
|
3
|
+
import u from "classnames";
|
|
4
|
+
const j = {
|
|
8
5
|
xxSmall: "w-4 h-4",
|
|
9
6
|
xSmall: "w-5 h-5",
|
|
10
7
|
small: "w-6 h-6",
|
|
@@ -13,7 +10,7 @@ const U = {
|
|
|
13
10
|
mediumPlus: "w-9 h-9",
|
|
14
11
|
large: "w-10 h-10",
|
|
15
12
|
xLarge: "w-12 h-12"
|
|
16
|
-
},
|
|
13
|
+
}, P = {
|
|
17
14
|
account: {
|
|
18
15
|
path: '<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />'
|
|
19
16
|
},
|
|
@@ -476,23 +473,23 @@ const U = {
|
|
|
476
473
|
chatBubble: {
|
|
477
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" />'
|
|
478
475
|
}
|
|
479
|
-
},
|
|
480
|
-
color:
|
|
476
|
+
}, R = (d) => P[d], W = ({
|
|
477
|
+
color: d = "text-current",
|
|
481
478
|
className: e,
|
|
482
479
|
name: t,
|
|
483
480
|
size: a = "medium",
|
|
484
481
|
viewBox: n = "0 0 20 20"
|
|
485
482
|
}) => {
|
|
486
|
-
const
|
|
487
|
-
return
|
|
488
|
-
|
|
489
|
-
}, [
|
|
490
|
-
|
|
491
|
-
}, [
|
|
483
|
+
const l = R(t), [r, s] = N(d), [i, c] = N(l);
|
|
484
|
+
return z(() => {
|
|
485
|
+
c(l);
|
|
486
|
+
}, [l]), z(() => {
|
|
487
|
+
s(d);
|
|
488
|
+
}, [d]), !l && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
492
489
|
"svg",
|
|
493
490
|
{
|
|
494
491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
-
className: `${
|
|
492
|
+
className: `${j[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
|
|
496
493
|
style: { maxWidth: "4em" },
|
|
497
494
|
role: "presentation",
|
|
498
495
|
viewBox: n,
|
|
@@ -501,36 +498,36 @@ const U = {
|
|
|
501
498
|
}
|
|
502
499
|
}
|
|
503
500
|
);
|
|
504
|
-
},
|
|
505
|
-
children:
|
|
501
|
+
}, x = y(W), U = ({
|
|
502
|
+
children: d,
|
|
506
503
|
className: e,
|
|
507
504
|
clickHandler: t,
|
|
508
505
|
panelClass: a,
|
|
509
506
|
title: n,
|
|
510
|
-
unmount:
|
|
507
|
+
unmount: l = !0,
|
|
511
508
|
isOpen: r = !1
|
|
512
509
|
}) => {
|
|
513
|
-
const [
|
|
514
|
-
return /* @__PURE__ */ o("div", { className:
|
|
515
|
-
/* @__PURE__ */
|
|
510
|
+
const [s, i] = N(r);
|
|
511
|
+
return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(S, { children: [
|
|
512
|
+
/* @__PURE__ */ M(
|
|
516
513
|
"button",
|
|
517
514
|
{
|
|
518
515
|
type: "button",
|
|
519
516
|
"data-div-track": `report | accordion | ${n}`,
|
|
520
|
-
className:
|
|
517
|
+
className: u(
|
|
521
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",
|
|
522
519
|
{
|
|
523
|
-
"acc-o":
|
|
520
|
+
"acc-o": s
|
|
524
521
|
}
|
|
525
522
|
),
|
|
526
523
|
title: n,
|
|
527
524
|
onClick: () => {
|
|
528
|
-
i(!
|
|
525
|
+
i(!s), t && t(!s);
|
|
529
526
|
},
|
|
530
527
|
children: [
|
|
531
528
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
532
529
|
/* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
533
|
-
|
|
530
|
+
x,
|
|
534
531
|
{
|
|
535
532
|
name: "chevronDown",
|
|
536
533
|
size: "small",
|
|
@@ -540,38 +537,38 @@ const U = {
|
|
|
540
537
|
]
|
|
541
538
|
}
|
|
542
539
|
),
|
|
543
|
-
|
|
540
|
+
l && s && /* @__PURE__ */ o(
|
|
544
541
|
"div",
|
|
545
542
|
{
|
|
546
|
-
className:
|
|
543
|
+
className: u(
|
|
547
544
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
548
545
|
a
|
|
549
546
|
),
|
|
550
|
-
children:
|
|
547
|
+
children: d
|
|
551
548
|
}
|
|
552
549
|
),
|
|
553
|
-
!
|
|
550
|
+
!l && /* @__PURE__ */ o(
|
|
554
551
|
"div",
|
|
555
552
|
{
|
|
556
|
-
className:
|
|
553
|
+
className: u(
|
|
557
554
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
558
555
|
a,
|
|
559
|
-
{ hidden: !
|
|
556
|
+
{ hidden: !s }
|
|
560
557
|
),
|
|
561
|
-
children:
|
|
558
|
+
children: d
|
|
562
559
|
}
|
|
563
560
|
)
|
|
564
561
|
] }) });
|
|
565
|
-
},
|
|
566
|
-
children:
|
|
562
|
+
}, x1 = y(U), Q = ({
|
|
563
|
+
children: d,
|
|
567
564
|
className: e = "",
|
|
568
565
|
messages: t = [],
|
|
569
566
|
title: a = "",
|
|
570
567
|
titleClass: n = "",
|
|
571
|
-
props:
|
|
568
|
+
props: l = {},
|
|
572
569
|
type: r = "error"
|
|
573
570
|
}) => {
|
|
574
|
-
const
|
|
571
|
+
const s = {
|
|
575
572
|
error: {
|
|
576
573
|
icon: "error",
|
|
577
574
|
iconColor: "text-red-500",
|
|
@@ -592,74 +589,74 @@ const U = {
|
|
|
592
589
|
iconColor: "text-yellow-500",
|
|
593
590
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
594
591
|
}
|
|
595
|
-
}, { icon: i, iconColor:
|
|
592
|
+
}, { icon: i, iconColor: c, styles: h } = s[r];
|
|
596
593
|
return /* @__PURE__ */ o(
|
|
597
594
|
"div",
|
|
598
595
|
{
|
|
599
596
|
id: r,
|
|
600
|
-
className:
|
|
597
|
+
className: u(
|
|
601
598
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
602
599
|
h,
|
|
603
600
|
e
|
|
604
601
|
),
|
|
605
|
-
...
|
|
606
|
-
children: /* @__PURE__ */
|
|
602
|
+
...l,
|
|
603
|
+
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
607
604
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
608
|
-
|
|
605
|
+
x,
|
|
609
606
|
{
|
|
610
607
|
name: i,
|
|
611
608
|
viewBox: "0 0 24 24",
|
|
612
|
-
className:
|
|
609
|
+
className: c,
|
|
613
610
|
size: "xSmall"
|
|
614
611
|
}
|
|
615
612
|
) }),
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */ o("div", { className:
|
|
618
|
-
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((
|
|
613
|
+
/* @__PURE__ */ M("div", { className: "ml-3", children: [
|
|
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, V) => /* @__PURE__ */ o("li", { children: p }, V)) }) }) : ""
|
|
619
616
|
] })
|
|
620
617
|
] })
|
|
621
618
|
}
|
|
622
619
|
);
|
|
623
|
-
},
|
|
624
|
-
autoFocus:
|
|
620
|
+
}, b1 = y(Q), G = ({
|
|
621
|
+
autoFocus: d = !1,
|
|
625
622
|
required: e = !1,
|
|
626
623
|
className: t = "",
|
|
627
624
|
defaultValue: a = "",
|
|
628
625
|
id: n = "",
|
|
629
|
-
type:
|
|
626
|
+
type: l,
|
|
630
627
|
floatingLabel: r = "",
|
|
631
|
-
inputClass:
|
|
628
|
+
inputClass: s = "",
|
|
632
629
|
leftIcon: i = "homeSearch",
|
|
633
|
-
mobileBackdrop:
|
|
630
|
+
mobileBackdrop: c = !1,
|
|
634
631
|
showSearchIcon: h = !0,
|
|
635
|
-
options:
|
|
632
|
+
options: p = [],
|
|
636
633
|
name: V = "",
|
|
637
|
-
placeholder:
|
|
634
|
+
placeholder: g = "",
|
|
638
635
|
props: A = {},
|
|
639
636
|
size: C = "medium",
|
|
640
637
|
styles: m = null,
|
|
641
638
|
title: H = ""
|
|
642
|
-
}) => /* @__PURE__ */
|
|
639
|
+
}) => /* @__PURE__ */ M(
|
|
643
640
|
"div",
|
|
644
641
|
{
|
|
645
642
|
id: n,
|
|
646
643
|
"data-search": "container",
|
|
647
|
-
"data-search-type":
|
|
648
|
-
className:
|
|
644
|
+
"data-search-type": l,
|
|
645
|
+
className: u("Autocomplete", t),
|
|
649
646
|
style: m ? { ...m } : null,
|
|
650
647
|
children: [
|
|
651
|
-
h && /* @__PURE__ */
|
|
648
|
+
h && /* @__PURE__ */ M(
|
|
652
649
|
"span",
|
|
653
650
|
{
|
|
654
|
-
className:
|
|
651
|
+
className: u(
|
|
655
652
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
656
653
|
{
|
|
657
|
-
"pointer-events-none":
|
|
654
|
+
"pointer-events-none": c
|
|
658
655
|
}
|
|
659
656
|
),
|
|
660
657
|
children: [
|
|
661
658
|
/* @__PURE__ */ o(
|
|
662
|
-
|
|
659
|
+
x,
|
|
663
660
|
{
|
|
664
661
|
className: "home-search select-none text-gray-500",
|
|
665
662
|
name: i,
|
|
@@ -668,7 +665,7 @@ const U = {
|
|
|
668
665
|
}
|
|
669
666
|
),
|
|
670
667
|
/* @__PURE__ */ o(
|
|
671
|
-
|
|
668
|
+
x,
|
|
672
669
|
{
|
|
673
670
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
674
671
|
name: "arrowLeft",
|
|
@@ -683,8 +680,8 @@ const U = {
|
|
|
683
680
|
"input",
|
|
684
681
|
{
|
|
685
682
|
"data-lpignore": "true",
|
|
686
|
-
autoFocus:
|
|
687
|
-
className:
|
|
683
|
+
autoFocus: d,
|
|
684
|
+
className: u(
|
|
688
685
|
"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",
|
|
689
686
|
{
|
|
690
687
|
"pl-8": h === !0,
|
|
@@ -693,12 +690,12 @@ const U = {
|
|
|
693
690
|
"px-5 h-[60px] sm:!text-base": C === "xLarge",
|
|
694
691
|
peer: r
|
|
695
692
|
},
|
|
696
|
-
|
|
693
|
+
s
|
|
697
694
|
),
|
|
698
695
|
required: e,
|
|
699
696
|
autoComplete: "off",
|
|
700
697
|
value: a,
|
|
701
|
-
placeholder: !
|
|
698
|
+
placeholder: !g && r ? " " : g,
|
|
702
699
|
type: "search",
|
|
703
700
|
name: V || "search-input",
|
|
704
701
|
"data-id": "search-input",
|
|
@@ -708,7 +705,7 @@ const U = {
|
|
|
708
705
|
r && /* @__PURE__ */ o(
|
|
709
706
|
"label",
|
|
710
707
|
{
|
|
711
|
-
className:
|
|
708
|
+
className: u(
|
|
712
709
|
"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",
|
|
713
710
|
{
|
|
714
711
|
"!left-7": h === !0,
|
|
@@ -726,7 +723,7 @@ const U = {
|
|
|
726
723
|
"data-id": "search-clear",
|
|
727
724
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
728
725
|
children: /* @__PURE__ */ o(
|
|
729
|
-
|
|
726
|
+
x,
|
|
730
727
|
{
|
|
731
728
|
className: "cursor-pointer text-gray-500",
|
|
732
729
|
name: "xCircle",
|
|
@@ -742,7 +739,7 @@ const U = {
|
|
|
742
739
|
"data-id": "search-loading",
|
|
743
740
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
744
741
|
children: /* @__PURE__ */ o(
|
|
745
|
-
|
|
742
|
+
x,
|
|
746
743
|
{
|
|
747
744
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
748
745
|
name: "spinnerDark",
|
|
@@ -752,7 +749,7 @@ const U = {
|
|
|
752
749
|
)
|
|
753
750
|
}
|
|
754
751
|
),
|
|
755
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ M(
|
|
756
753
|
"div",
|
|
757
754
|
{
|
|
758
755
|
"data-id": "search-dropdown",
|
|
@@ -767,7 +764,7 @@ const U = {
|
|
|
767
764
|
"data-title": H,
|
|
768
765
|
"aria-labelledby": "Label",
|
|
769
766
|
"aria-activedescendant": "search-item-0",
|
|
770
|
-
children:
|
|
767
|
+
children: p.length > 0 ? p.map((b, v) => /* @__PURE__ */ o(
|
|
771
768
|
"li",
|
|
772
769
|
{
|
|
773
770
|
id: `search-item-${v}`,
|
|
@@ -775,7 +772,7 @@ const U = {
|
|
|
775
772
|
className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
|
|
776
773
|
"aria-selected": v === 0,
|
|
777
774
|
role: "option",
|
|
778
|
-
children: (
|
|
775
|
+
children: (b == null ? void 0 : b.name) || b
|
|
779
776
|
},
|
|
780
777
|
`search-item-${v}`
|
|
781
778
|
)) : ""
|
|
@@ -786,15 +783,15 @@ const U = {
|
|
|
786
783
|
)
|
|
787
784
|
]
|
|
788
785
|
}
|
|
789
|
-
),
|
|
790
|
-
children:
|
|
786
|
+
), w1 = G, J = ({
|
|
787
|
+
children: d,
|
|
791
788
|
className: e,
|
|
792
789
|
size: t = "sm",
|
|
793
790
|
tag: a = "span"
|
|
794
791
|
}) => /* @__PURE__ */ o(
|
|
795
792
|
a || "span",
|
|
796
793
|
{
|
|
797
|
-
className:
|
|
794
|
+
className: u(
|
|
798
795
|
" bg-gray-200 font-semibold py-1 px-2 rounded",
|
|
799
796
|
{
|
|
800
797
|
"text-sm": t === "sm",
|
|
@@ -803,128 +800,128 @@ const U = {
|
|
|
803
800
|
},
|
|
804
801
|
e
|
|
805
802
|
),
|
|
806
|
-
children:
|
|
803
|
+
children: d
|
|
807
804
|
}
|
|
808
|
-
),
|
|
809
|
-
borderless:
|
|
805
|
+
), S1 = J, K = ({
|
|
806
|
+
borderless: d = !1,
|
|
810
807
|
leftIcon: e,
|
|
811
808
|
leftIconProps: t = {},
|
|
812
809
|
children: a,
|
|
813
810
|
className: n = "",
|
|
814
|
-
disabled:
|
|
811
|
+
disabled: l = !1,
|
|
815
812
|
href: r,
|
|
816
|
-
props:
|
|
813
|
+
props: s = {},
|
|
817
814
|
rightIcon: i,
|
|
818
|
-
rightIconProps:
|
|
815
|
+
rightIconProps: c = {},
|
|
819
816
|
rounded: h = !1,
|
|
820
|
-
size:
|
|
817
|
+
size: p = "md",
|
|
821
818
|
type: V = "button",
|
|
822
|
-
uppercase:
|
|
819
|
+
uppercase: g = !1,
|
|
823
820
|
variation: A = "primary"
|
|
824
821
|
}) => {
|
|
825
822
|
const C = r ? "a" : "button";
|
|
826
|
-
return /* @__PURE__ */
|
|
823
|
+
return /* @__PURE__ */ M(
|
|
827
824
|
C,
|
|
828
825
|
{
|
|
829
826
|
type: C !== "a" ? V : null,
|
|
830
|
-
className:
|
|
827
|
+
className: u(
|
|
831
828
|
"Button",
|
|
832
829
|
{
|
|
833
830
|
[`Button--${A}`]: A,
|
|
834
|
-
[`Button--${
|
|
831
|
+
[`Button--${p}`]: p,
|
|
835
832
|
"Button--rounded": h,
|
|
836
|
-
"Button--disabled":
|
|
833
|
+
"Button--disabled": l,
|
|
837
834
|
"Button--custom-link": r,
|
|
838
|
-
"Button--uppercase":
|
|
839
|
-
"Button--borderless":
|
|
835
|
+
"Button--uppercase": g,
|
|
836
|
+
"Button--borderless": d || A === "link"
|
|
840
837
|
},
|
|
841
838
|
n
|
|
842
839
|
),
|
|
843
|
-
disabled:
|
|
840
|
+
disabled: l,
|
|
844
841
|
href: r,
|
|
845
|
-
...
|
|
842
|
+
...s,
|
|
846
843
|
children: [
|
|
847
844
|
e && /* @__PURE__ */ o(
|
|
848
|
-
|
|
845
|
+
x,
|
|
849
846
|
{
|
|
850
847
|
name: e,
|
|
851
|
-
size:
|
|
848
|
+
size: p === "md" ? "small" : "xSmall",
|
|
852
849
|
viewBox: "0 0 24 24",
|
|
853
850
|
...t
|
|
854
851
|
}
|
|
855
852
|
),
|
|
856
853
|
a,
|
|
857
854
|
i && /* @__PURE__ */ o(
|
|
858
|
-
|
|
855
|
+
x,
|
|
859
856
|
{
|
|
860
857
|
name: i,
|
|
861
|
-
size:
|
|
858
|
+
size: p === "md" ? "small" : "xSmall",
|
|
862
859
|
viewBox: "0 0 24 24",
|
|
863
|
-
...
|
|
860
|
+
...c
|
|
864
861
|
}
|
|
865
862
|
)
|
|
866
863
|
]
|
|
867
864
|
}
|
|
868
865
|
);
|
|
869
|
-
},
|
|
870
|
-
block:
|
|
866
|
+
}, E = y(K), Y = ({ 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 }), k1 = Y, X = ({
|
|
867
|
+
block: d = !1,
|
|
871
868
|
borderless: e = !1,
|
|
872
869
|
children: t,
|
|
873
870
|
className: a = "",
|
|
874
871
|
divider: n = !0,
|
|
875
|
-
inset:
|
|
872
|
+
inset: l = !0,
|
|
876
873
|
id: r = null,
|
|
877
|
-
role:
|
|
874
|
+
role: s = null
|
|
878
875
|
}) => /* @__PURE__ */ o(
|
|
879
876
|
"div",
|
|
880
877
|
{
|
|
881
|
-
className:
|
|
878
|
+
className: u(
|
|
882
879
|
"bg-white",
|
|
883
880
|
{
|
|
884
881
|
f1: !e,
|
|
885
|
-
f2:
|
|
882
|
+
f2: d,
|
|
886
883
|
f3: n,
|
|
887
|
-
f4:
|
|
884
|
+
f4: l
|
|
888
885
|
},
|
|
889
886
|
a
|
|
890
887
|
),
|
|
891
888
|
id: r,
|
|
892
|
-
role:
|
|
889
|
+
role: s,
|
|
893
890
|
children: t
|
|
894
891
|
}
|
|
895
|
-
),
|
|
896
|
-
checked:
|
|
892
|
+
), z1 = X, _ = ({
|
|
893
|
+
checked: d = !1,
|
|
897
894
|
children: e,
|
|
898
895
|
className: t = "",
|
|
899
896
|
error: a = !1,
|
|
900
897
|
inputClass: n,
|
|
901
|
-
id:
|
|
898
|
+
id: l = "",
|
|
902
899
|
label: r = "",
|
|
903
|
-
name:
|
|
900
|
+
name: s = "",
|
|
904
901
|
props: i = {},
|
|
905
|
-
variation:
|
|
902
|
+
variation: c = "primary",
|
|
906
903
|
value: h = ""
|
|
907
904
|
}) => {
|
|
908
|
-
const
|
|
909
|
-
return /* @__PURE__ */
|
|
910
|
-
|
|
905
|
+
const p = r ? "div" : "label", V = p === "label" ? { htmlFor: l } : {};
|
|
906
|
+
return /* @__PURE__ */ M(
|
|
907
|
+
p,
|
|
911
908
|
{
|
|
912
|
-
className:
|
|
909
|
+
className: u("checkbox flex items-center", c, t),
|
|
913
910
|
...V,
|
|
914
911
|
children: [
|
|
915
912
|
/* @__PURE__ */ o(
|
|
916
913
|
"input",
|
|
917
914
|
{
|
|
918
|
-
checked:
|
|
919
|
-
className:
|
|
915
|
+
checked: d,
|
|
916
|
+
className: u(
|
|
920
917
|
"form-checkbox ",
|
|
921
918
|
{
|
|
922
919
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
923
920
|
},
|
|
924
921
|
n
|
|
925
922
|
),
|
|
926
|
-
id:
|
|
927
|
-
name:
|
|
923
|
+
id: l,
|
|
924
|
+
name: s,
|
|
928
925
|
type: "checkbox",
|
|
929
926
|
value: h,
|
|
930
927
|
...i
|
|
@@ -934,23 +931,23 @@ const U = {
|
|
|
934
931
|
]
|
|
935
932
|
}
|
|
936
933
|
);
|
|
937
|
-
},
|
|
934
|
+
}, N1 = y(_), 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: [
|
|
938
935
|
/* @__PURE__ */ o(
|
|
939
936
|
"main",
|
|
940
937
|
{
|
|
941
|
-
className:
|
|
938
|
+
className: u(
|
|
942
939
|
"w-full md:mb-0 flex-1 md:block lg:max-w-container",
|
|
943
940
|
{
|
|
944
941
|
"lg:order-2": t === "left"
|
|
945
942
|
}
|
|
946
943
|
),
|
|
947
|
-
children:
|
|
944
|
+
children: d
|
|
948
945
|
}
|
|
949
946
|
),
|
|
950
947
|
/* @__PURE__ */ o(
|
|
951
948
|
"aside",
|
|
952
949
|
{
|
|
953
|
-
className:
|
|
950
|
+
className: u(
|
|
954
951
|
"sm-max:hidden md:hidden lg:block flex-1 max-w-aside mb-6 md:mb-0 empty:!hidden",
|
|
955
952
|
{
|
|
956
953
|
"md:ml-8": t === "right",
|
|
@@ -960,54 +957,54 @@ const U = {
|
|
|
960
957
|
children: e
|
|
961
958
|
}
|
|
962
959
|
)
|
|
963
|
-
] }),
|
|
964
|
-
activator:
|
|
960
|
+
] }), Z1 = y(e1), t1 = ({
|
|
961
|
+
activator: d,
|
|
965
962
|
id: e = "",
|
|
966
963
|
children: t,
|
|
967
964
|
className: a = "",
|
|
968
965
|
contentClass: n = "",
|
|
969
|
-
dark:
|
|
966
|
+
dark: l = !1,
|
|
970
967
|
footer: r,
|
|
971
|
-
fullMobile:
|
|
968
|
+
fullMobile: s = !0,
|
|
972
969
|
headerClass: i = "",
|
|
973
|
-
hideClose:
|
|
970
|
+
hideClose: c = !1,
|
|
974
971
|
iconSize: h = "medium",
|
|
975
|
-
preventPageScroll:
|
|
972
|
+
preventPageScroll: p = !0,
|
|
976
973
|
stickyHeader: V = !1,
|
|
977
|
-
title:
|
|
974
|
+
title: g = "",
|
|
978
975
|
titleClass: A = ""
|
|
979
|
-
}) => /* @__PURE__ */
|
|
980
|
-
|
|
976
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
977
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
|
|
981
978
|
/* @__PURE__ */ o(
|
|
982
979
|
"dialog",
|
|
983
980
|
{
|
|
984
981
|
inert: "",
|
|
985
982
|
id: `${e}-dialog`,
|
|
986
|
-
className:
|
|
983
|
+
className: u(
|
|
987
984
|
"dialog",
|
|
988
985
|
{
|
|
989
|
-
"dialog-full-mobile":
|
|
990
|
-
dark:
|
|
991
|
-
"prevent-scroll":
|
|
986
|
+
"dialog-full-mobile": s,
|
|
987
|
+
dark: l,
|
|
988
|
+
"prevent-scroll": p
|
|
992
989
|
},
|
|
993
990
|
a
|
|
994
991
|
),
|
|
995
|
-
children: /* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
992
|
+
children: /* @__PURE__ */ M("form", { method: "dialog", children: [
|
|
993
|
+
/* @__PURE__ */ M(
|
|
997
994
|
"header",
|
|
998
995
|
{
|
|
999
|
-
className:
|
|
996
|
+
className: u(
|
|
1000
997
|
"dialog-header flex items-center p-4",
|
|
1001
998
|
{
|
|
1002
999
|
"sticky top-0 bg-white z-10": V,
|
|
1003
|
-
"!pb-0 border-0 justify-end": !
|
|
1004
|
-
"justify-between border-b":
|
|
1000
|
+
"!pb-0 border-0 justify-end": !g,
|
|
1001
|
+
"justify-between border-b": g
|
|
1005
1002
|
},
|
|
1006
1003
|
i
|
|
1007
1004
|
),
|
|
1008
1005
|
children: [
|
|
1009
|
-
|
|
1010
|
-
!
|
|
1006
|
+
g && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: g }),
|
|
1007
|
+
!c && /* @__PURE__ */ o(
|
|
1011
1008
|
"button",
|
|
1012
1009
|
{
|
|
1013
1010
|
type: "button",
|
|
@@ -1016,7 +1013,7 @@ const U = {
|
|
|
1016
1013
|
"data-dialog-close": "",
|
|
1017
1014
|
value: "close",
|
|
1018
1015
|
children: /* @__PURE__ */ o(
|
|
1019
|
-
|
|
1016
|
+
x,
|
|
1020
1017
|
{
|
|
1021
1018
|
name: "close",
|
|
1022
1019
|
size: h,
|
|
@@ -1032,7 +1029,7 @@ const U = {
|
|
|
1032
1029
|
"div",
|
|
1033
1030
|
{
|
|
1034
1031
|
id: `${e}-dialog-content`,
|
|
1035
|
-
className:
|
|
1032
|
+
className: u("dialog-content", n),
|
|
1036
1033
|
children: t
|
|
1037
1034
|
}
|
|
1038
1035
|
),
|
|
@@ -1040,46 +1037,46 @@ const U = {
|
|
|
1040
1037
|
] })
|
|
1041
1038
|
}
|
|
1042
1039
|
)
|
|
1043
|
-
] }),
|
|
1044
|
-
activator:
|
|
1040
|
+
] }), E1 = y(t1), a1 = ({
|
|
1041
|
+
activator: d,
|
|
1045
1042
|
id: e = "",
|
|
1046
1043
|
children: t,
|
|
1047
1044
|
className: a = "",
|
|
1048
1045
|
contentClass: n = "",
|
|
1049
|
-
onClose:
|
|
1046
|
+
onClose: l,
|
|
1050
1047
|
disableOutsideClick: r = !1,
|
|
1051
|
-
footer:
|
|
1048
|
+
footer: s,
|
|
1052
1049
|
fullMobile: i = !0,
|
|
1053
|
-
headerClass:
|
|
1050
|
+
headerClass: c = "",
|
|
1054
1051
|
hideClose: h = !1,
|
|
1055
|
-
iconSize:
|
|
1052
|
+
iconSize: p = "medium",
|
|
1056
1053
|
isOpen: V = !1,
|
|
1057
|
-
setDialogOpen:
|
|
1054
|
+
setDialogOpen: g,
|
|
1058
1055
|
stickyHeader: A = !1,
|
|
1059
1056
|
title: C = "",
|
|
1060
1057
|
titleClass: m = ""
|
|
1061
1058
|
}) => {
|
|
1062
|
-
const H =
|
|
1063
|
-
H.current.classList.add("closing"), await
|
|
1059
|
+
const H = q(null), b = async () => {
|
|
1060
|
+
H.current.classList.add("closing"), await D(H.current), H.current.classList.remove("closing"), l && l(), g(!1);
|
|
1064
1061
|
}, v = async (w) => {
|
|
1065
|
-
w.key === "Escape" && await
|
|
1066
|
-
},
|
|
1067
|
-
const { left:
|
|
1068
|
-
(!H.current.contains(
|
|
1069
|
-
},
|
|
1070
|
-
w.getAnimations().map((
|
|
1062
|
+
w.key === "Escape" && await b();
|
|
1063
|
+
}, Z = async ({ clientX: w, clientY: k, target: $ }) => {
|
|
1064
|
+
const { left: T, right: I, top: O, bottom: F } = H.current.getBoundingClientRect() ?? {};
|
|
1065
|
+
(!H.current.contains($) || w < T || w > I || k < O || k > F) && await b();
|
|
1066
|
+
}, D = (w) => Promise.allSettled(
|
|
1067
|
+
w.getAnimations().map((k) => k.finished)
|
|
1071
1068
|
);
|
|
1072
|
-
return
|
|
1069
|
+
return z(() => {
|
|
1073
1070
|
const w = H.current;
|
|
1074
1071
|
w && (V ? w.showModal() : typeof w.close == "function" && w.close());
|
|
1075
|
-
}, [V]), /* @__PURE__ */
|
|
1076
|
-
|
|
1077
|
-
/* @__PURE__ */
|
|
1072
|
+
}, [V]), /* @__PURE__ */ M(S, { children: [
|
|
1073
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: d }),
|
|
1074
|
+
/* @__PURE__ */ M(
|
|
1078
1075
|
"dialog",
|
|
1079
1076
|
{
|
|
1080
1077
|
ref: H,
|
|
1081
1078
|
id: `${e}-dialog`,
|
|
1082
|
-
className:
|
|
1079
|
+
className: u(
|
|
1083
1080
|
"dialog",
|
|
1084
1081
|
{
|
|
1085
1082
|
hidden: !V,
|
|
@@ -1088,15 +1085,15 @@ const U = {
|
|
|
1088
1085
|
a
|
|
1089
1086
|
),
|
|
1090
1087
|
onKeyDown: v,
|
|
1091
|
-
onClick: (w) => r ? null :
|
|
1088
|
+
onClick: (w) => r ? null : Z(w),
|
|
1092
1089
|
children: [
|
|
1093
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ M(
|
|
1094
1091
|
"header",
|
|
1095
1092
|
{
|
|
1096
|
-
className:
|
|
1093
|
+
className: u(
|
|
1097
1094
|
"dialog-header flex items-center p-4",
|
|
1098
1095
|
{ "sticky top-0 bg-white": A },
|
|
1099
|
-
|
|
1096
|
+
c
|
|
1100
1097
|
),
|
|
1101
1098
|
children: [
|
|
1102
1099
|
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children: C || "" }),
|
|
@@ -1107,12 +1104,12 @@ const U = {
|
|
|
1107
1104
|
title: "Close",
|
|
1108
1105
|
className: "dialog-close",
|
|
1109
1106
|
"data-dialog-close": "",
|
|
1110
|
-
onClick:
|
|
1107
|
+
onClick: b,
|
|
1111
1108
|
children: /* @__PURE__ */ o(
|
|
1112
|
-
|
|
1109
|
+
x,
|
|
1113
1110
|
{
|
|
1114
1111
|
name: "close",
|
|
1115
|
-
size:
|
|
1112
|
+
size: p,
|
|
1116
1113
|
className: "pointer-events-none"
|
|
1117
1114
|
}
|
|
1118
1115
|
)
|
|
@@ -1125,23 +1122,23 @@ const U = {
|
|
|
1125
1122
|
"div",
|
|
1126
1123
|
{
|
|
1127
1124
|
id: `${e}-dialog-content`,
|
|
1128
|
-
className:
|
|
1125
|
+
className: u("dialog-content p-4", n),
|
|
1129
1126
|
children: t
|
|
1130
1127
|
}
|
|
1131
1128
|
),
|
|
1132
|
-
|
|
1129
|
+
s && /* @__PURE__ */ o(
|
|
1133
1130
|
"footer",
|
|
1134
1131
|
{
|
|
1135
1132
|
id: `${e}-dialog-footer`,
|
|
1136
1133
|
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1137
|
-
children:
|
|
1134
|
+
children: s
|
|
1138
1135
|
}
|
|
1139
1136
|
)
|
|
1140
1137
|
]
|
|
1141
1138
|
}
|
|
1142
1139
|
)
|
|
1143
1140
|
] });
|
|
1144
|
-
},
|
|
1141
|
+
}, B1 = y(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ M("div", { id: "dots", className: u("mx-auto", d), children: [
|
|
1145
1142
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
|
|
1146
1143
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
|
|
1147
1144
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1150,34 +1147,34 @@ const U = {
|
|
|
1150
1147
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
|
|
1151
1148
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
|
|
1152
1149
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
|
|
1153
|
-
] }),
|
|
1154
|
-
cb:
|
|
1150
|
+
] }), D1 = n1, l1 = ({
|
|
1151
|
+
cb: d,
|
|
1155
1152
|
className: e = "",
|
|
1156
1153
|
size: t = "md",
|
|
1157
1154
|
timeout: a = 1e4,
|
|
1158
1155
|
variation: n = "primary"
|
|
1159
1156
|
}) => {
|
|
1160
|
-
function
|
|
1161
|
-
const
|
|
1162
|
-
if (!
|
|
1163
|
-
let i,
|
|
1164
|
-
function
|
|
1157
|
+
function l({ cb: r }) {
|
|
1158
|
+
const s = document.querySelector(".loading-bar__inner");
|
|
1159
|
+
if (!s) return;
|
|
1160
|
+
let i, c, h = !1;
|
|
1161
|
+
function p(V) {
|
|
1165
1162
|
i === void 0 && (i = V);
|
|
1166
|
-
const
|
|
1167
|
-
if (
|
|
1168
|
-
const A =
|
|
1169
|
-
|
|
1163
|
+
const g = V - i;
|
|
1164
|
+
if (c !== V) {
|
|
1165
|
+
const A = g / a * 101;
|
|
1166
|
+
s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(V));
|
|
1170
1167
|
}
|
|
1171
|
-
|
|
1168
|
+
g < a && (c = V, h || window.requestAnimationFrame(p));
|
|
1172
1169
|
}
|
|
1173
|
-
window.requestAnimationFrame(
|
|
1170
|
+
window.requestAnimationFrame(p);
|
|
1174
1171
|
}
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1172
|
+
return z(() => {
|
|
1173
|
+
l({ cb: d });
|
|
1177
1174
|
}, []), /* @__PURE__ */ o(
|
|
1178
1175
|
"div",
|
|
1179
1176
|
{
|
|
1180
|
-
className:
|
|
1177
|
+
className: u(
|
|
1181
1178
|
"loading-bar my-8",
|
|
1182
1179
|
`loading-bar__${n}`,
|
|
1183
1180
|
{
|
|
@@ -1191,37 +1188,37 @@ const U = {
|
|
|
1191
1188
|
children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1192
1189
|
}
|
|
1193
1190
|
);
|
|
1194
|
-
},
|
|
1191
|
+
}, $1 = y(l1), s1 = {
|
|
1195
1192
|
name: "spinnerDark",
|
|
1196
1193
|
color: "text-teal-700",
|
|
1197
1194
|
viewBox: "0 0 24 24"
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1195
|
+
}, r1 = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
|
|
1196
|
+
x,
|
|
1200
1197
|
{
|
|
1201
1198
|
size: "xSmall",
|
|
1202
|
-
...
|
|
1203
|
-
className: `animate-spin ${
|
|
1199
|
+
...s1,
|
|
1200
|
+
className: `animate-spin ${d}`
|
|
1204
1201
|
}
|
|
1205
|
-
) }),
|
|
1206
|
-
activator:
|
|
1202
|
+
) }), T1 = y(r1), i1 = ({
|
|
1203
|
+
activator: d,
|
|
1207
1204
|
activatorClass: e = "",
|
|
1208
1205
|
attrs: t = {},
|
|
1209
1206
|
options: a = {},
|
|
1210
1207
|
children: n,
|
|
1211
|
-
className:
|
|
1208
|
+
className: l = "",
|
|
1212
1209
|
containerClass: r = "",
|
|
1213
|
-
disabled:
|
|
1210
|
+
disabled: s = !1,
|
|
1214
1211
|
id: i = "",
|
|
1215
|
-
trigger:
|
|
1216
|
-
}) => /* @__PURE__ */
|
|
1212
|
+
trigger: c = "click"
|
|
1213
|
+
}) => /* @__PURE__ */ M(S, { children: [
|
|
1217
1214
|
/* @__PURE__ */ o(
|
|
1218
1215
|
"div",
|
|
1219
1216
|
{
|
|
1220
|
-
className:
|
|
1221
|
-
children: /* @__PURE__ */
|
|
1217
|
+
className: u("popover z-10 max-w-[350px] hidden", l),
|
|
1218
|
+
children: /* @__PURE__ */ M(
|
|
1222
1219
|
"div",
|
|
1223
1220
|
{
|
|
1224
|
-
className:
|
|
1221
|
+
className: u(
|
|
1225
1222
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1226
1223
|
r
|
|
1227
1224
|
),
|
|
@@ -1242,38 +1239,38 @@ const U = {
|
|
|
1242
1239
|
/* @__PURE__ */ o(
|
|
1243
1240
|
"div",
|
|
1244
1241
|
{
|
|
1245
|
-
className:
|
|
1242
|
+
className: u(
|
|
1246
1243
|
"popover-activator",
|
|
1247
|
-
`trigger-${
|
|
1248
|
-
|
|
1244
|
+
`trigger-${c}`,
|
|
1245
|
+
s ? "is-disabled" : "",
|
|
1249
1246
|
e
|
|
1250
1247
|
),
|
|
1251
1248
|
...t,
|
|
1252
1249
|
"data-options": JSON.stringify(a),
|
|
1253
|
-
children:
|
|
1250
|
+
children: d
|
|
1254
1251
|
}
|
|
1255
1252
|
)
|
|
1256
|
-
] }),
|
|
1257
|
-
ariaValuemax:
|
|
1253
|
+
] }), I1 = i1, o1 = ({
|
|
1254
|
+
ariaValuemax: d = 100,
|
|
1258
1255
|
ariaValuemin: e = 0,
|
|
1259
1256
|
bgColor: t = "bg-orange-500",
|
|
1260
1257
|
className: a,
|
|
1261
1258
|
completed: n = 0,
|
|
1262
|
-
maxCompleted:
|
|
1259
|
+
maxCompleted: l = 100,
|
|
1263
1260
|
rounded: r = !0,
|
|
1264
|
-
showLabel:
|
|
1261
|
+
showLabel: s = !1
|
|
1265
1262
|
}) => {
|
|
1266
|
-
const
|
|
1263
|
+
const c = ((h, p) => {
|
|
1267
1264
|
if (h) {
|
|
1268
|
-
const V = Number(
|
|
1265
|
+
const V = Number(p) / h;
|
|
1269
1266
|
return V > 1 ? 100 : V * 100;
|
|
1270
1267
|
}
|
|
1271
1268
|
return n;
|
|
1272
|
-
})(
|
|
1269
|
+
})(l, n);
|
|
1273
1270
|
return /* @__PURE__ */ o(
|
|
1274
1271
|
"div",
|
|
1275
1272
|
{
|
|
1276
|
-
className:
|
|
1273
|
+
className: u(
|
|
1277
1274
|
"w-full bg-gray-200",
|
|
1278
1275
|
{ "rounded-full": r },
|
|
1279
1276
|
a
|
|
@@ -1282,50 +1279,50 @@ const U = {
|
|
|
1282
1279
|
"aria-label": "Progress Bar",
|
|
1283
1280
|
"aria-valuenow": n,
|
|
1284
1281
|
"aria-valuemin": e,
|
|
1285
|
-
"aria-valuemax":
|
|
1282
|
+
"aria-valuemax": d,
|
|
1286
1283
|
children: /* @__PURE__ */ o(
|
|
1287
1284
|
"div",
|
|
1288
1285
|
{
|
|
1289
|
-
className:
|
|
1286
|
+
className: u(
|
|
1290
1287
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1291
1288
|
t
|
|
1292
1289
|
),
|
|
1293
|
-
style: { width: `${
|
|
1294
|
-
children:
|
|
1290
|
+
style: { width: `${c}%` },
|
|
1291
|
+
children: s && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
|
|
1295
1292
|
}
|
|
1296
1293
|
)
|
|
1297
1294
|
}
|
|
1298
1295
|
);
|
|
1299
|
-
},
|
|
1300
|
-
checked:
|
|
1296
|
+
}, O1 = y(o1), c1 = ({
|
|
1297
|
+
checked: d = !1,
|
|
1301
1298
|
children: e,
|
|
1302
1299
|
className: t = "",
|
|
1303
1300
|
id: a = "",
|
|
1304
1301
|
label: n = "",
|
|
1305
|
-
name:
|
|
1302
|
+
name: l = "",
|
|
1306
1303
|
props: r = {},
|
|
1307
|
-
variation:
|
|
1304
|
+
variation: s = "primary",
|
|
1308
1305
|
value: i = ""
|
|
1309
1306
|
}) => {
|
|
1310
|
-
const
|
|
1311
|
-
return /* @__PURE__ */
|
|
1312
|
-
|
|
1307
|
+
const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1308
|
+
return /* @__PURE__ */ M(
|
|
1309
|
+
c,
|
|
1313
1310
|
{
|
|
1314
|
-
className:
|
|
1311
|
+
className: u("radio flex items-center", t),
|
|
1315
1312
|
...h,
|
|
1316
1313
|
children: [
|
|
1317
1314
|
/* @__PURE__ */ o(
|
|
1318
1315
|
"input",
|
|
1319
1316
|
{
|
|
1320
|
-
checked:
|
|
1321
|
-
className:
|
|
1317
|
+
checked: d,
|
|
1318
|
+
className: u(
|
|
1322
1319
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1323
1320
|
{
|
|
1324
|
-
"focus:ring-[#222]":
|
|
1321
|
+
"focus:ring-[#222]": s === "primary"
|
|
1325
1322
|
}
|
|
1326
1323
|
),
|
|
1327
1324
|
id: a,
|
|
1328
|
-
name:
|
|
1325
|
+
name: l,
|
|
1329
1326
|
type: "radio",
|
|
1330
1327
|
value: i,
|
|
1331
1328
|
...r
|
|
@@ -1335,46 +1332,46 @@ const U = {
|
|
|
1335
1332
|
]
|
|
1336
1333
|
}
|
|
1337
1334
|
);
|
|
1338
|
-
},
|
|
1339
|
-
children:
|
|
1335
|
+
}, F1 = y(c1), d1 = ({
|
|
1336
|
+
children: d,
|
|
1340
1337
|
className: e = "",
|
|
1341
1338
|
error: t = !1,
|
|
1342
1339
|
errorMessage: a = "",
|
|
1343
1340
|
id: n = "",
|
|
1344
|
-
label:
|
|
1341
|
+
label: l = "",
|
|
1345
1342
|
name: r = "",
|
|
1346
|
-
options:
|
|
1343
|
+
options: s = [],
|
|
1347
1344
|
placeholder: i = "",
|
|
1348
|
-
props:
|
|
1345
|
+
props: c = {},
|
|
1349
1346
|
selectClass: h = "",
|
|
1350
|
-
styles:
|
|
1347
|
+
styles: p = null,
|
|
1351
1348
|
variation: V = "primary",
|
|
1352
|
-
value:
|
|
1349
|
+
value: g
|
|
1353
1350
|
}) => {
|
|
1354
1351
|
const A = i ? { defaultValue: "" } : {};
|
|
1355
|
-
return /* @__PURE__ */
|
|
1352
|
+
return /* @__PURE__ */ M(
|
|
1356
1353
|
"label",
|
|
1357
1354
|
{
|
|
1358
|
-
className:
|
|
1359
|
-
style:
|
|
1355
|
+
className: u("relative select", e, V),
|
|
1356
|
+
style: p ? { ...p } : null,
|
|
1360
1357
|
children: [
|
|
1361
|
-
|
|
1362
|
-
/* @__PURE__ */
|
|
1358
|
+
l,
|
|
1359
|
+
/* @__PURE__ */ M(
|
|
1363
1360
|
"select",
|
|
1364
1361
|
{
|
|
1365
|
-
className:
|
|
1362
|
+
className: u(
|
|
1366
1363
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1367
1364
|
t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1368
1365
|
h
|
|
1369
1366
|
),
|
|
1370
1367
|
id: n,
|
|
1371
1368
|
name: r,
|
|
1372
|
-
value:
|
|
1369
|
+
value: g,
|
|
1373
1370
|
...A,
|
|
1374
|
-
...
|
|
1371
|
+
...c,
|
|
1375
1372
|
children: [
|
|
1376
1373
|
i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
|
|
1377
|
-
|
|
1374
|
+
s.map((C, m) => /* @__PURE__ */ o(
|
|
1378
1375
|
"option",
|
|
1379
1376
|
{
|
|
1380
1377
|
value: (C == null ? void 0 : C.id) || (C == null ? void 0 : C.value) || C,
|
|
@@ -1389,25 +1386,25 @@ const U = {
|
|
|
1389
1386
|
]
|
|
1390
1387
|
}
|
|
1391
1388
|
);
|
|
1392
|
-
},
|
|
1389
|
+
}, q1 = y(d1), h1 = ({ className: d = "" }) => /* @__PURE__ */ M(
|
|
1393
1390
|
"div",
|
|
1394
1391
|
{
|
|
1395
|
-
className:
|
|
1392
|
+
className: u(
|
|
1396
1393
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1397
|
-
|
|
1394
|
+
d
|
|
1398
1395
|
),
|
|
1399
1396
|
children: [
|
|
1400
|
-
/* @__PURE__ */ o(
|
|
1397
|
+
/* @__PURE__ */ o(x, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1401
1398
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1402
1399
|
]
|
|
1403
1400
|
}
|
|
1404
|
-
),
|
|
1405
|
-
placeholderClass:
|
|
1401
|
+
), j1 = y(h1), u1 = ({
|
|
1402
|
+
placeholderClass: d = "",
|
|
1406
1403
|
children: e,
|
|
1407
1404
|
className: t = "",
|
|
1408
1405
|
id: a = 1,
|
|
1409
1406
|
padding: n = !0
|
|
1410
|
-
}) => /* @__PURE__ */
|
|
1407
|
+
}) => /* @__PURE__ */ M("div", { className: u("slider", t), id: `slider-${a}`, children: [
|
|
1411
1408
|
/* @__PURE__ */ o(
|
|
1412
1409
|
"button",
|
|
1413
1410
|
{
|
|
@@ -1415,13 +1412,13 @@ const U = {
|
|
|
1415
1412
|
id: `btn-left-${a}`,
|
|
1416
1413
|
type: "button",
|
|
1417
1414
|
className: "slider-button__prev ",
|
|
1418
|
-
children: /* @__PURE__ */ o(
|
|
1415
|
+
children: /* @__PURE__ */ o(x, { name: "chevronLeft" })
|
|
1419
1416
|
}
|
|
1420
1417
|
),
|
|
1421
|
-
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (
|
|
1418
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
|
|
1422
1419
|
"div",
|
|
1423
1420
|
{
|
|
1424
|
-
className: `slider-card bg-gray-200 animate-pulse ${
|
|
1421
|
+
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1425
1422
|
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1426
1423
|
},
|
|
1427
1424
|
r
|
|
@@ -1433,11 +1430,11 @@ const U = {
|
|
|
1433
1430
|
id: `btn-right-${a}`,
|
|
1434
1431
|
type: "button",
|
|
1435
1432
|
className: "slider-button__next",
|
|
1436
|
-
children: /* @__PURE__ */ o(
|
|
1433
|
+
children: /* @__PURE__ */ o(x, { name: "chevronRight" })
|
|
1437
1434
|
}
|
|
1438
1435
|
)
|
|
1439
|
-
] }),
|
|
1440
|
-
className:
|
|
1436
|
+
] }), P1 = y(u1), p1 = ({
|
|
1437
|
+
className: d = "",
|
|
1441
1438
|
value: e
|
|
1442
1439
|
}) => {
|
|
1443
1440
|
const t = {
|
|
@@ -1446,38 +1443,38 @@ const U = {
|
|
|
1446
1443
|
return /* @__PURE__ */ o(
|
|
1447
1444
|
"div",
|
|
1448
1445
|
{
|
|
1449
|
-
className:
|
|
1446
|
+
className: u(
|
|
1450
1447
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1451
|
-
|
|
1448
|
+
d
|
|
1452
1449
|
),
|
|
1453
1450
|
style: t
|
|
1454
1451
|
}
|
|
1455
1452
|
);
|
|
1456
|
-
},
|
|
1457
|
-
className:
|
|
1453
|
+
}, R1 = p1, m1 = ({
|
|
1454
|
+
className: d = "",
|
|
1458
1455
|
clear: e = !1,
|
|
1459
1456
|
error: t = !1,
|
|
1460
1457
|
errorMessage: a = "",
|
|
1461
1458
|
id: n = "",
|
|
1462
|
-
inputClass:
|
|
1459
|
+
inputClass: l = "",
|
|
1463
1460
|
name: r = "",
|
|
1464
|
-
placeholder:
|
|
1461
|
+
placeholder: s = "",
|
|
1465
1462
|
props: i = {},
|
|
1466
|
-
rows:
|
|
1463
|
+
rows: c = 4,
|
|
1467
1464
|
variation: h = "primary"
|
|
1468
|
-
}) => /* @__PURE__ */
|
|
1465
|
+
}) => /* @__PURE__ */ M("div", { className: u("relative textarea", h, d), children: [
|
|
1469
1466
|
/* @__PURE__ */ o(
|
|
1470
1467
|
"textarea",
|
|
1471
1468
|
{
|
|
1472
|
-
placeholder:
|
|
1469
|
+
placeholder: s,
|
|
1473
1470
|
id: n,
|
|
1474
1471
|
name: r,
|
|
1475
|
-
rows:
|
|
1476
|
-
className:
|
|
1472
|
+
rows: c,
|
|
1473
|
+
className: u(
|
|
1477
1474
|
"form-textarea min-h-[40px] pl-4",
|
|
1478
1475
|
e ? "pr-10" : "pr-4",
|
|
1479
1476
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1480
|
-
|
|
1477
|
+
l
|
|
1481
1478
|
),
|
|
1482
1479
|
...i
|
|
1483
1480
|
}
|
|
@@ -1488,7 +1485,7 @@ const U = {
|
|
|
1488
1485
|
id: `${n}-clear`,
|
|
1489
1486
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1490
1487
|
children: /* @__PURE__ */ o(
|
|
1491
|
-
|
|
1488
|
+
x,
|
|
1492
1489
|
{
|
|
1493
1490
|
size: "xSmall",
|
|
1494
1491
|
name: "xCircle",
|
|
@@ -1498,29 +1495,29 @@ const U = {
|
|
|
1498
1495
|
}
|
|
1499
1496
|
),
|
|
1500
1497
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1501
|
-
] }),
|
|
1502
|
-
className:
|
|
1498
|
+
] }), V1 = y(m1), H1 = ({
|
|
1499
|
+
className: d = "",
|
|
1503
1500
|
clear: e = !1,
|
|
1504
1501
|
error: t = !1,
|
|
1505
1502
|
errorMessage: a = "",
|
|
1506
1503
|
iconLeft: n = "",
|
|
1507
|
-
id:
|
|
1504
|
+
id: l = "",
|
|
1508
1505
|
inputClass: r = "",
|
|
1509
|
-
name:
|
|
1506
|
+
name: s = "",
|
|
1510
1507
|
placeholder: i = "",
|
|
1511
|
-
props:
|
|
1508
|
+
props: c = {},
|
|
1512
1509
|
styles: h = null,
|
|
1513
|
-
type:
|
|
1510
|
+
type: p = "text",
|
|
1514
1511
|
value: V,
|
|
1515
|
-
variation:
|
|
1516
|
-
}) => /* @__PURE__ */
|
|
1512
|
+
variation: g = "primary"
|
|
1513
|
+
}) => /* @__PURE__ */ M(
|
|
1517
1514
|
"div",
|
|
1518
1515
|
{
|
|
1519
|
-
className:
|
|
1516
|
+
className: u("relative textbox", g, d),
|
|
1520
1517
|
style: h ? { ...h } : null,
|
|
1521
1518
|
children: [
|
|
1522
1519
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1523
|
-
|
|
1520
|
+
x,
|
|
1524
1521
|
{
|
|
1525
1522
|
size: "xSmall",
|
|
1526
1523
|
name: n,
|
|
@@ -1532,31 +1529,31 @@ const U = {
|
|
|
1532
1529
|
"input",
|
|
1533
1530
|
{
|
|
1534
1531
|
placeholder: i,
|
|
1535
|
-
id:
|
|
1536
|
-
name:
|
|
1537
|
-
type:
|
|
1532
|
+
id: l,
|
|
1533
|
+
name: s,
|
|
1534
|
+
type: p,
|
|
1538
1535
|
value: V,
|
|
1539
1536
|
autoComplete: "off",
|
|
1540
|
-
className:
|
|
1537
|
+
className: u(
|
|
1541
1538
|
"form-input",
|
|
1542
1539
|
e ? "pr-10" : "pr-4",
|
|
1543
1540
|
n ? "pl-8" : "pl-4",
|
|
1544
1541
|
{
|
|
1545
1542
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1546
1543
|
},
|
|
1547
|
-
|
|
1544
|
+
c.inputClass ?? "",
|
|
1548
1545
|
r
|
|
1549
1546
|
),
|
|
1550
|
-
...
|
|
1547
|
+
...c
|
|
1551
1548
|
}
|
|
1552
1549
|
),
|
|
1553
1550
|
e && /* @__PURE__ */ o(
|
|
1554
1551
|
"div",
|
|
1555
1552
|
{
|
|
1556
|
-
id: `${
|
|
1553
|
+
id: `${l}-clear`,
|
|
1557
1554
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1558
1555
|
children: /* @__PURE__ */ o(
|
|
1559
|
-
|
|
1556
|
+
x,
|
|
1560
1557
|
{
|
|
1561
1558
|
size: "xSmall",
|
|
1562
1559
|
name: "xCircle",
|
|
@@ -1568,22 +1565,22 @@ const U = {
|
|
|
1568
1565
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1569
1566
|
]
|
|
1570
1567
|
}
|
|
1571
|
-
),
|
|
1572
|
-
btnClass:
|
|
1568
|
+
), B = y(H1), L1 = ({
|
|
1569
|
+
btnClass: d,
|
|
1573
1570
|
className: e = "",
|
|
1574
1571
|
containerClass: t,
|
|
1575
1572
|
customSuccessMsg: a = "",
|
|
1576
1573
|
title: n = "Send A Message",
|
|
1577
|
-
titleClass:
|
|
1574
|
+
titleClass: l,
|
|
1578
1575
|
uppercase: r = !0
|
|
1579
1576
|
}) => {
|
|
1580
|
-
const
|
|
1577
|
+
const s = a || /* @__PURE__ */ M(S, { children: [
|
|
1581
1578
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1582
1579
|
" ",
|
|
1583
1580
|
/* @__PURE__ */ o(
|
|
1584
|
-
|
|
1581
|
+
E,
|
|
1585
1582
|
{
|
|
1586
|
-
className:
|
|
1583
|
+
className: u(
|
|
1587
1584
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
1588
1585
|
),
|
|
1589
1586
|
variation: "link",
|
|
@@ -1594,66 +1591,66 @@ const U = {
|
|
|
1594
1591
|
}
|
|
1595
1592
|
)
|
|
1596
1593
|
] });
|
|
1597
|
-
return /* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ M(
|
|
1598
1595
|
"form",
|
|
1599
1596
|
{
|
|
1600
1597
|
id: "contactForm",
|
|
1601
|
-
className:
|
|
1598
|
+
className: u("contact-form", t, {
|
|
1602
1599
|
uppercase: r
|
|
1603
1600
|
}),
|
|
1604
1601
|
children: [
|
|
1605
|
-
/* @__PURE__ */ o("h2", { id: "contact-title", className:
|
|
1606
|
-
/* @__PURE__ */ o("p", { className: "contact-form__msg", children:
|
|
1607
|
-
/* @__PURE__ */
|
|
1602
|
+
/* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", l), children: n }),
|
|
1603
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: s }),
|
|
1604
|
+
/* @__PURE__ */ M(
|
|
1608
1605
|
"div",
|
|
1609
1606
|
{
|
|
1610
|
-
className:
|
|
1607
|
+
className: u(
|
|
1611
1608
|
"p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
|
|
1612
1609
|
e
|
|
1613
1610
|
),
|
|
1614
1611
|
children: [
|
|
1615
1612
|
/* @__PURE__ */ o(
|
|
1616
|
-
|
|
1613
|
+
B,
|
|
1617
1614
|
{
|
|
1618
1615
|
id: "contact-name",
|
|
1619
1616
|
name: "contact-name",
|
|
1620
1617
|
placeholder: "Name",
|
|
1621
|
-
inputClass:
|
|
1618
|
+
inputClass: u({
|
|
1622
1619
|
"placeholder:uppercase": r
|
|
1623
1620
|
})
|
|
1624
1621
|
}
|
|
1625
1622
|
),
|
|
1626
1623
|
/* @__PURE__ */ o(
|
|
1627
|
-
|
|
1624
|
+
B,
|
|
1628
1625
|
{
|
|
1629
1626
|
id: "contact-email",
|
|
1630
1627
|
name: "contact-email",
|
|
1631
1628
|
placeholder: "Email",
|
|
1632
|
-
inputClass:
|
|
1629
|
+
inputClass: u({
|
|
1633
1630
|
"placeholder:uppercase": r
|
|
1634
1631
|
})
|
|
1635
1632
|
}
|
|
1636
1633
|
),
|
|
1637
1634
|
/* @__PURE__ */ o(
|
|
1638
|
-
|
|
1635
|
+
V1,
|
|
1639
1636
|
{
|
|
1640
1637
|
id: "contact-message",
|
|
1641
1638
|
name: "contact-message",
|
|
1642
1639
|
placeholder: "Message",
|
|
1643
|
-
inputClass:
|
|
1640
|
+
inputClass: u({
|
|
1644
1641
|
"placeholder:uppercase": r
|
|
1645
1642
|
})
|
|
1646
1643
|
}
|
|
1647
1644
|
),
|
|
1648
1645
|
/* @__PURE__ */ o(
|
|
1649
|
-
|
|
1646
|
+
E,
|
|
1650
1647
|
{
|
|
1651
|
-
className:
|
|
1648
|
+
className: u(
|
|
1652
1649
|
"flex mx-auto items-center",
|
|
1653
1650
|
{
|
|
1654
1651
|
uppercase: r
|
|
1655
1652
|
},
|
|
1656
|
-
|
|
1653
|
+
d
|
|
1657
1654
|
),
|
|
1658
1655
|
props: { title: "Submit" },
|
|
1659
1656
|
type: "submit",
|
|
@@ -1666,60 +1663,101 @@ const U = {
|
|
|
1666
1663
|
]
|
|
1667
1664
|
}
|
|
1668
1665
|
);
|
|
1669
|
-
},
|
|
1666
|
+
}, W1 = y(L1), C1 = ({
|
|
1667
|
+
block: d = !1,
|
|
1668
|
+
children: e,
|
|
1669
|
+
className: t,
|
|
1670
|
+
contentClass: a,
|
|
1671
|
+
footerClass: n,
|
|
1672
|
+
footerContent: l,
|
|
1673
|
+
headerContent: r,
|
|
1674
|
+
headerClass: s,
|
|
1675
|
+
list: i = !1,
|
|
1676
|
+
props: c = {},
|
|
1677
|
+
variation: h = "primary"
|
|
1678
|
+
}) => {
|
|
1679
|
+
const p = i ? "ul" : "div";
|
|
1680
|
+
return /* @__PURE__ */ M(
|
|
1681
|
+
"div",
|
|
1682
|
+
{
|
|
1683
|
+
className: u(
|
|
1684
|
+
"content-card",
|
|
1685
|
+
{ "content-card--block": d },
|
|
1686
|
+
`content-card--${h}`,
|
|
1687
|
+
t
|
|
1688
|
+
),
|
|
1689
|
+
...c,
|
|
1690
|
+
children: [
|
|
1691
|
+
r && /* @__PURE__ */ o("div", { className: u("content-card__header", s), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
|
|
1692
|
+
/* @__PURE__ */ o(
|
|
1693
|
+
p,
|
|
1694
|
+
{
|
|
1695
|
+
className: u("content-card__content", a),
|
|
1696
|
+
role: i ? "list" : null,
|
|
1697
|
+
children: e
|
|
1698
|
+
}
|
|
1699
|
+
),
|
|
1700
|
+
l && /* @__PURE__ */ o("div", { className: u("content-card__footer", n), children: l })
|
|
1701
|
+
]
|
|
1702
|
+
}
|
|
1703
|
+
);
|
|
1704
|
+
}, U1 = y(C1), f1 = ({
|
|
1705
|
+
children: d,
|
|
1706
|
+
className: e
|
|
1707
|
+
}) => /* @__PURE__ */ o("li", { className: u("stacked-list", e), children: d }), Q1 = f1, M1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
|
|
1670
1708
|
t,
|
|
1671
1709
|
{
|
|
1672
|
-
className:
|
|
1710
|
+
className: u(
|
|
1673
1711
|
"!text-xl text-center mb-6 flex items-center justify-center",
|
|
1674
1712
|
e
|
|
1675
1713
|
),
|
|
1676
|
-
children: a ||
|
|
1714
|
+
children: a || d
|
|
1677
1715
|
}
|
|
1678
|
-
),
|
|
1679
|
-
function
|
|
1680
|
-
return new Proxy(
|
|
1716
|
+
), G1 = y(M1);
|
|
1717
|
+
function g1(d, e = []) {
|
|
1718
|
+
return new Proxy(d, {
|
|
1681
1719
|
get: function(t, a) {
|
|
1682
1720
|
return t[a];
|
|
1683
1721
|
},
|
|
1684
1722
|
set(t, a, n) {
|
|
1685
|
-
const
|
|
1686
|
-
return t[a] = n, e.length > 0 && e.forEach((r) => r(t,
|
|
1723
|
+
const l = { ...t };
|
|
1724
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
|
|
1687
1725
|
}
|
|
1688
1726
|
});
|
|
1689
1727
|
}
|
|
1690
|
-
function
|
|
1691
|
-
e.length && (
|
|
1728
|
+
function J1(d, e = []) {
|
|
1729
|
+
e.length && (d == null || d.classList.add(...e));
|
|
1692
1730
|
}
|
|
1693
|
-
function
|
|
1694
|
-
e.length && (
|
|
1731
|
+
function K1(d, e = []) {
|
|
1732
|
+
e.length && (d == null || d.classList.remove(...e));
|
|
1695
1733
|
}
|
|
1696
|
-
function
|
|
1697
|
-
let
|
|
1698
|
-
for (const [r,
|
|
1699
|
-
const i = e.querySelector(`[name="${r}"]`),
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
}), h.length ? (
|
|
1703
|
-
|
|
1734
|
+
function Y1({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
1735
|
+
let l = !0;
|
|
1736
|
+
for (const [r, s] of t.entries()) {
|
|
1737
|
+
const i = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
|
|
1738
|
+
c.forEach((p) => {
|
|
1739
|
+
p.isValid(s) || h.push(p.message);
|
|
1740
|
+
}), h.length ? (l = !1, i.classList.add("field-error"), d && d({ isValid: l, field: i, validations: a })) : (i.classList.remove("field-error"), d && d({ isValid: !0, field: i, validations: a })), n && (i == null || i.addEventListener("input", (p) => {
|
|
1741
|
+
p.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
|
|
1704
1742
|
}));
|
|
1705
1743
|
}
|
|
1706
|
-
return
|
|
1744
|
+
return l;
|
|
1707
1745
|
}
|
|
1708
|
-
function
|
|
1746
|
+
function X1(d) {
|
|
1709
1747
|
const e = (
|
|
1710
1748
|
// eslint-disable-next-line
|
|
1711
1749
|
/(?:[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])+)\])/
|
|
1712
1750
|
), t = /[^a-zA-Z]+$/;
|
|
1713
|
-
return e.test(
|
|
1751
|
+
return e.test(d.toLowerCase()) && !t.test(d);
|
|
1714
1752
|
}
|
|
1715
|
-
class
|
|
1753
|
+
class _1 {
|
|
1716
1754
|
init(e) {
|
|
1717
1755
|
this.handleSliders(e);
|
|
1718
1756
|
}
|
|
1719
1757
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
1720
1758
|
if (!document.getElementById(`slider-container-${t}`))
|
|
1721
1759
|
return;
|
|
1722
|
-
const n =
|
|
1760
|
+
const n = g1(
|
|
1723
1761
|
{
|
|
1724
1762
|
activeIndex: 0,
|
|
1725
1763
|
computedSlides: [],
|
|
@@ -1745,8 +1783,8 @@ class e2 {
|
|
|
1745
1783
|
initObserver(e) {
|
|
1746
1784
|
var t, a;
|
|
1747
1785
|
e.observer || (e.observer = new IntersectionObserver(
|
|
1748
|
-
(n,
|
|
1749
|
-
this.handleIntersect(n,
|
|
1786
|
+
(n, l) => {
|
|
1787
|
+
this.handleIntersect(n, l, e);
|
|
1750
1788
|
},
|
|
1751
1789
|
{
|
|
1752
1790
|
root: (t = e.container) == null ? void 0 : t.offsetParent
|
|
@@ -1754,16 +1792,16 @@ class e2 {
|
|
|
1754
1792
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
1755
1793
|
}
|
|
1756
1794
|
handleIntersect(e, t, a) {
|
|
1757
|
-
const n = e.filter((i) => i.isIntersecting),
|
|
1795
|
+
const n = e.filter((i) => i.isIntersecting), l = n.length === a.slides.length, r = n.every(
|
|
1758
1796
|
(i) => i.isIntersecting === !0
|
|
1759
1797
|
);
|
|
1760
|
-
|
|
1761
|
-
const
|
|
1762
|
-
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(
|
|
1798
|
+
l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
|
|
1799
|
+
const c = [...a.slides].indexOf(i.target);
|
|
1800
|
+
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, s(i));
|
|
1763
1801
|
}));
|
|
1764
|
-
function
|
|
1765
|
-
var
|
|
1766
|
-
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] && ((
|
|
1802
|
+
function s(i) {
|
|
1803
|
+
var c;
|
|
1804
|
+
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));
|
|
1767
1805
|
}
|
|
1768
1806
|
}
|
|
1769
1807
|
btnListeners(e) {
|
|
@@ -1782,7 +1820,7 @@ class e2 {
|
|
|
1782
1820
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
1783
1821
|
}
|
|
1784
1822
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
1785
|
-
const
|
|
1823
|
+
const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
1786
1824
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
1787
1825
|
return console.error(`slider-container-${a} Not Found`);
|
|
1788
1826
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -1790,8 +1828,8 @@ class e2 {
|
|
|
1790
1828
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
1791
1829
|
`#btn-right-${a}`
|
|
1792
1830
|
);
|
|
1793
|
-
const
|
|
1794
|
-
i.innerHTML = `${
|
|
1831
|
+
const s = t.map((c) => n(c)).join(""), i = document.createElement("div");
|
|
1832
|
+
i.innerHTML = `${l}${s}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
|
|
1795
1833
|
}
|
|
1796
1834
|
showHideBtns(e, t, a) {
|
|
1797
1835
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -1801,11 +1839,11 @@ class e2 {
|
|
|
1801
1839
|
}
|
|
1802
1840
|
}
|
|
1803
1841
|
}
|
|
1804
|
-
|
|
1842
|
+
class f {
|
|
1805
1843
|
static calcCrow(e, t, a, n) {
|
|
1806
|
-
const r = f.toRad(a - e),
|
|
1844
|
+
const r = f.toRad(a - e), s = f.toRad(n - t);
|
|
1807
1845
|
e = f.toRad(e), a = f.toRad(a);
|
|
1808
|
-
const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(
|
|
1846
|
+
const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
|
|
1809
1847
|
return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
|
|
1810
1848
|
}
|
|
1811
1849
|
static cleanupAddress(e) {
|
|
@@ -1834,21 +1872,21 @@ let t2 = class f {
|
|
|
1834
1872
|
static async createData(e, t = null, a = !0) {
|
|
1835
1873
|
if (window.options.isBot || !t)
|
|
1836
1874
|
return null;
|
|
1837
|
-
const { tolken: n = null, ip:
|
|
1875
|
+
const { tolken: n = null, ip: l = null } = await f.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
|
|
1838
1876
|
try {
|
|
1839
|
-
const
|
|
1877
|
+
const c = await fetch(s, {
|
|
1840
1878
|
method: "POST",
|
|
1841
1879
|
body: i === "null" ? null : i,
|
|
1842
1880
|
headers: {
|
|
1843
1881
|
website: f.getWebsiteHeaderName()
|
|
1844
1882
|
}
|
|
1845
|
-
}), h =
|
|
1883
|
+
}), h = c.headers.get("content-type");
|
|
1846
1884
|
if (h && h.indexOf("application/json") !== -1)
|
|
1847
|
-
return
|
|
1848
|
-
const
|
|
1849
|
-
return
|
|
1850
|
-
} catch (
|
|
1851
|
-
console.error("createData",
|
|
1885
|
+
return c.json();
|
|
1886
|
+
const p = await c.text();
|
|
1887
|
+
return p ? p.replace("__next", "") : null;
|
|
1888
|
+
} catch (c) {
|
|
1889
|
+
console.error("createData", c);
|
|
1852
1890
|
}
|
|
1853
1891
|
return null;
|
|
1854
1892
|
}
|
|
@@ -1908,15 +1946,15 @@ let t2 = class f {
|
|
|
1908
1946
|
static async fetchData(e, t = !1, a = !0) {
|
|
1909
1947
|
if (options.isBot)
|
|
1910
1948
|
return null;
|
|
1911
|
-
const { tolken: n = null, ip:
|
|
1949
|
+
const { tolken: n = null, ip: l = null } = await f.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
|
|
1912
1950
|
try {
|
|
1913
|
-
const i = await fetch(
|
|
1951
|
+
const i = await fetch(s, { method: "GET" });
|
|
1914
1952
|
if (t === !0) {
|
|
1915
1953
|
const h = await i.text();
|
|
1916
1954
|
return h ? h.replace("__next", "") : null;
|
|
1917
1955
|
}
|
|
1918
|
-
const
|
|
1919
|
-
return
|
|
1956
|
+
const c = i.headers.get("content-type");
|
|
1957
|
+
return c && c.indexOf("application/json") !== -1 ? i.json() : null;
|
|
1920
1958
|
} catch (i) {
|
|
1921
1959
|
console.error("fetchData", i, e);
|
|
1922
1960
|
}
|
|
@@ -1946,11 +1984,11 @@ let t2 = class f {
|
|
|
1946
1984
|
swLng: 0
|
|
1947
1985
|
};
|
|
1948
1986
|
const n = e.getBounds();
|
|
1949
|
-
let
|
|
1950
|
-
return a && (
|
|
1951
|
-
swLat:
|
|
1987
|
+
let l = n.getSouth(), r = n.getEast(), s = n.getNorth(), i = n.getWest();
|
|
1988
|
+
return a && (l = l - a, r = r + a, s = s + a, i = i - a), t && (l = l.toFixed(t), r = r.toFixed(t), s = s.toFixed(t), i = i.toFixed(t)), {
|
|
1989
|
+
swLat: l,
|
|
1952
1990
|
neLng: r,
|
|
1953
|
-
neLat:
|
|
1991
|
+
neLat: s,
|
|
1954
1992
|
swLng: i
|
|
1955
1993
|
};
|
|
1956
1994
|
}
|
|
@@ -1984,38 +2022,38 @@ let t2 = class f {
|
|
|
1984
2022
|
userAgent: t = null,
|
|
1985
2023
|
userAgentData: a = null,
|
|
1986
2024
|
platform: n = null
|
|
1987
|
-
} = navigator || {},
|
|
2025
|
+
} = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
|
|
1988
2026
|
tolken: null,
|
|
1989
2027
|
ip: null,
|
|
1990
2028
|
userAgent: t,
|
|
1991
|
-
platform:
|
|
2029
|
+
platform: l
|
|
1992
2030
|
};
|
|
1993
2031
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
1994
2032
|
return r;
|
|
1995
|
-
const
|
|
1996
|
-
if (
|
|
1997
|
-
const
|
|
1998
|
-
return
|
|
1999
|
-
tolken:
|
|
2000
|
-
ip:
|
|
2033
|
+
const s = localStorage.getItem("headerTolken");
|
|
2034
|
+
if (s) {
|
|
2035
|
+
const c = JSON.parse(s), h = (/* @__PURE__ */ new Date()).getTime();
|
|
2036
|
+
return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
2037
|
+
tolken: c.tolken,
|
|
2038
|
+
ip: c.ip,
|
|
2001
2039
|
userAgent: t,
|
|
2002
|
-
platform:
|
|
2040
|
+
platform: l
|
|
2003
2041
|
};
|
|
2004
2042
|
}
|
|
2005
2043
|
if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
|
|
2006
2044
|
return r;
|
|
2007
2045
|
try {
|
|
2008
|
-
const h = await (await fetch("/api/headers")).json(),
|
|
2046
|
+
const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
|
|
2009
2047
|
return localStorage.setItem(
|
|
2010
2048
|
"headerTolken",
|
|
2011
2049
|
JSON.stringify({
|
|
2012
|
-
tolken:
|
|
2050
|
+
tolken: p,
|
|
2013
2051
|
ip: V,
|
|
2014
2052
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2015
2053
|
})
|
|
2016
|
-
), { tolken:
|
|
2017
|
-
} catch (
|
|
2018
|
-
console.error("getHeaders",
|
|
2054
|
+
), { tolken: p, ip: V, userAgent: t, platform: l };
|
|
2055
|
+
} catch (c) {
|
|
2056
|
+
console.error("getHeaders", c);
|
|
2019
2057
|
}
|
|
2020
2058
|
return r;
|
|
2021
2059
|
}
|
|
@@ -2026,15 +2064,15 @@ let t2 = class f {
|
|
|
2026
2064
|
}[e];
|
|
2027
2065
|
}
|
|
2028
2066
|
static async getLocationData(e) {
|
|
2029
|
-
const { swLat: t, neLng: a, neLat: n, swLng:
|
|
2067
|
+
const { swLat: t, neLng: a, neLat: n, swLng: l } = f.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
|
|
2030
2068
|
return await f.fetchData("/api/client?query=" + r);
|
|
2031
2069
|
}
|
|
2032
2070
|
static getReportUrl(e, t = null) {
|
|
2033
|
-
var i,
|
|
2034
|
-
const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((
|
|
2071
|
+
var i, c, h;
|
|
2072
|
+
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, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2035
2073
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2036
|
-
const
|
|
2037
|
-
return "/" + [a, n,
|
|
2074
|
+
const s = [r, "-piq", t].filter((p) => p).join("");
|
|
2075
|
+
return "/" + [a, n, l].filter((p) => p).map((p) => f.toSlug(p)).join("/") + "/" + s;
|
|
2038
2076
|
}
|
|
2039
2077
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2040
2078
|
try {
|
|
@@ -2144,15 +2182,15 @@ let t2 = class f {
|
|
|
2144
2182
|
];
|
|
2145
2183
|
}
|
|
2146
2184
|
static getTrackingData(e) {
|
|
2147
|
-
const [t, ...a] = e.split("|"), n = a.join("|").trim(),
|
|
2185
|
+
const [t, ...a] = e.split("|"), n = a.join("|").trim(), l = [
|
|
2148
2186
|
"[pageType::" + t.trim() + "]",
|
|
2149
2187
|
"[name::" + n + "]"
|
|
2150
2188
|
].join(" ");
|
|
2151
2189
|
return {
|
|
2152
|
-
value:
|
|
2190
|
+
value: l,
|
|
2153
2191
|
dataLayer: {
|
|
2154
2192
|
event: "clickTrack",
|
|
2155
|
-
value:
|
|
2193
|
+
value: l
|
|
2156
2194
|
}
|
|
2157
2195
|
};
|
|
2158
2196
|
}
|
|
@@ -2191,36 +2229,36 @@ let t2 = class f {
|
|
|
2191
2229
|
return a && a.includes(t) ? t : e;
|
|
2192
2230
|
}
|
|
2193
2231
|
static getGridBounds({ map: e, tileSize: t, coords: a }) {
|
|
2194
|
-
const n = a.scaleBy(t),
|
|
2232
|
+
const n = a.scaleBy(t), l = n.add(t);
|
|
2195
2233
|
return {
|
|
2196
2234
|
nw: e.unproject(n, a.z),
|
|
2197
|
-
se: e.unproject(
|
|
2235
|
+
se: e.unproject(l, a.z)
|
|
2198
2236
|
};
|
|
2199
2237
|
}
|
|
2200
2238
|
static gridTest(e, t, a = 1500) {
|
|
2201
2239
|
const n = this;
|
|
2202
2240
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2203
|
-
createTile: function(
|
|
2204
|
-
const
|
|
2241
|
+
createTile: function(l, r) {
|
|
2242
|
+
const s = document.createElement("div");
|
|
2205
2243
|
return setTimeout(() => {
|
|
2206
|
-
r(null,
|
|
2207
|
-
const { se: i, nw:
|
|
2244
|
+
r(null, s);
|
|
2245
|
+
const { se: i, nw: c } = n.getGridBounds({
|
|
2208
2246
|
map: e,
|
|
2209
2247
|
tileSize: this.getTileSize(),
|
|
2210
|
-
coords:
|
|
2248
|
+
coords: l
|
|
2211
2249
|
});
|
|
2212
2250
|
t({
|
|
2213
2251
|
swLat: i.lat,
|
|
2214
2252
|
neLng: i.lng,
|
|
2215
|
-
neLat:
|
|
2216
|
-
swLng:
|
|
2217
|
-
coords:
|
|
2218
|
-
key:
|
|
2253
|
+
neLat: c.lat,
|
|
2254
|
+
swLng: c.lng,
|
|
2255
|
+
coords: l,
|
|
2256
|
+
key: l.z + "-" + l.x + "-" + l.y
|
|
2219
2257
|
});
|
|
2220
|
-
}, a),
|
|
2258
|
+
}, a), s;
|
|
2221
2259
|
}
|
|
2222
|
-
}), L.gridLayer.gridDebug = function(
|
|
2223
|
-
return new L.GridLayer.GridDebug(
|
|
2260
|
+
}), L.gridLayer.gridDebug = function(l) {
|
|
2261
|
+
return new L.GridLayer.GridDebug(l);
|
|
2224
2262
|
}, e.addLayer(L.gridLayer.gridDebug());
|
|
2225
2263
|
}
|
|
2226
2264
|
/**
|
|
@@ -2238,9 +2276,9 @@ let t2 = class f {
|
|
|
2238
2276
|
id: t = "",
|
|
2239
2277
|
onOpen: a = null,
|
|
2240
2278
|
onClose: n = null,
|
|
2241
|
-
disableOutsideClick:
|
|
2279
|
+
disableOutsideClick: l = !1
|
|
2242
2280
|
}) {
|
|
2243
|
-
const r = e ? document.querySelectorAll(e) : [],
|
|
2281
|
+
const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2244
2282
|
"closing",
|
|
2245
2283
|
"closed",
|
|
2246
2284
|
"opening",
|
|
@@ -2254,49 +2292,49 @@ let t2 = class f {
|
|
|
2254
2292
|
}),
|
|
2255
2293
|
{}
|
|
2256
2294
|
), h = new MutationObserver((m, H) => {
|
|
2257
|
-
m.forEach(async (
|
|
2258
|
-
if (
|
|
2259
|
-
const v =
|
|
2295
|
+
m.forEach(async (b) => {
|
|
2296
|
+
if (b.attributeName === "open") {
|
|
2297
|
+
const v = b.target;
|
|
2260
2298
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2261
|
-
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(
|
|
2299
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await C(v), v == null || v.dispatchEvent(c.opened);
|
|
2262
2300
|
}
|
|
2263
2301
|
});
|
|
2264
|
-
}),
|
|
2265
|
-
m.forEach((
|
|
2266
|
-
|
|
2267
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close",
|
|
2302
|
+
}), p = new MutationObserver((m, H) => {
|
|
2303
|
+
m.forEach((b) => {
|
|
2304
|
+
b.removedNodes.forEach((v) => {
|
|
2305
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", g), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
2268
2306
|
});
|
|
2269
2307
|
});
|
|
2270
2308
|
});
|
|
2271
|
-
|
|
2309
|
+
s && (h.observe(s, {
|
|
2272
2310
|
attributes: !0
|
|
2273
|
-
}),
|
|
2311
|
+
}), p.observe(document.body, {
|
|
2274
2312
|
attributes: !1,
|
|
2275
2313
|
subtree: !1,
|
|
2276
2314
|
childList: !0
|
|
2277
2315
|
}));
|
|
2278
2316
|
const V = () => {
|
|
2279
|
-
|
|
2280
|
-
},
|
|
2281
|
-
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(
|
|
2317
|
+
s == null || s.showModal();
|
|
2318
|
+
}, g = async ({ target: m }) => {
|
|
2319
|
+
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await C(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
|
|
2282
2320
|
}, A = async ({ target: m }) => {
|
|
2283
|
-
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(
|
|
2321
|
+
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), s == null || s.close("outside"));
|
|
2284
2322
|
}, C = (m) => Promise.allSettled(
|
|
2285
2323
|
m == null ? void 0 : m.getAnimations().map((H) => H == null ? void 0 : H.finished)
|
|
2286
2324
|
);
|
|
2287
|
-
return !
|
|
2325
|
+
return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", g), r == null || r.forEach((m) => {
|
|
2288
2326
|
m.addEventListener("click", (H) => {
|
|
2289
|
-
V(), a && a(H,
|
|
2327
|
+
V(), a && a(H, s);
|
|
2290
2328
|
});
|
|
2291
2329
|
}), i == null || i.forEach((m) => {
|
|
2292
2330
|
m.addEventListener("click", async (H) => {
|
|
2293
|
-
|
|
2331
|
+
s == null || s.close("close"), n && n(H, s);
|
|
2294
2332
|
});
|
|
2295
2333
|
}), {
|
|
2296
2334
|
activators: r,
|
|
2297
|
-
ref:
|
|
2335
|
+
ref: s,
|
|
2298
2336
|
handleOpen: V,
|
|
2299
|
-
handleClose:
|
|
2337
|
+
handleClose: g
|
|
2300
2338
|
};
|
|
2301
2339
|
}
|
|
2302
2340
|
static hasBoundsEntry(e, t = "bounds") {
|
|
@@ -2306,8 +2344,8 @@ let t2 = class f {
|
|
|
2306
2344
|
if (!e)
|
|
2307
2345
|
return;
|
|
2308
2346
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2309
|
-
new IntersectionObserver(async (r,
|
|
2310
|
-
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs:
|
|
2347
|
+
new IntersectionObserver(async (r, s) => {
|
|
2348
|
+
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: s, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: s, entry: r[0], entries: r });
|
|
2311
2349
|
}, a).observe(e);
|
|
2312
2350
|
}
|
|
2313
2351
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2315,11 +2353,11 @@ let t2 = class f {
|
|
|
2315
2353
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2316
2354
|
}
|
|
2317
2355
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2318
|
-
return new Promise(function(
|
|
2319
|
-
let
|
|
2320
|
-
if (t &&
|
|
2321
|
-
return
|
|
2322
|
-
|
|
2356
|
+
return new Promise(function(l, r) {
|
|
2357
|
+
let s = document.getElementById(t);
|
|
2358
|
+
if (t && s && s.dataset.loaded === "true")
|
|
2359
|
+
return l({ alreadyLoaded: !0, id: t });
|
|
2360
|
+
s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () => r(!1));
|
|
2323
2361
|
});
|
|
2324
2362
|
}
|
|
2325
2363
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2351,13 +2389,13 @@ let t2 = class f {
|
|
|
2351
2389
|
const a = Math.abs(e), n = Math.sign(e);
|
|
2352
2390
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2353
2391
|
}
|
|
2354
|
-
static async logRequest(e = null, t = null, a = null, n = null,
|
|
2392
|
+
static async logRequest(e = null, t = null, a = null, n = null, l = null) {
|
|
2355
2393
|
const r = {
|
|
2356
2394
|
name: e,
|
|
2357
2395
|
uuid: t,
|
|
2358
2396
|
ip: a,
|
|
2359
2397
|
url: n,
|
|
2360
|
-
data:
|
|
2398
|
+
data: l
|
|
2361
2399
|
};
|
|
2362
2400
|
return await f.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2363
2401
|
}
|
|
@@ -2382,8 +2420,8 @@ let t2 = class f {
|
|
|
2382
2420
|
async: !1,
|
|
2383
2421
|
module: a
|
|
2384
2422
|
});
|
|
2385
|
-
} catch (
|
|
2386
|
-
console.error("loadCustomScript",
|
|
2423
|
+
} catch (l) {
|
|
2424
|
+
console.error("loadCustomScript", l);
|
|
2387
2425
|
}
|
|
2388
2426
|
}
|
|
2389
2427
|
return null;
|
|
@@ -2395,8 +2433,8 @@ let t2 = class f {
|
|
|
2395
2433
|
await f.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2396
2434
|
}
|
|
2397
2435
|
static async loadLeafletApi() {
|
|
2398
|
-
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling",
|
|
2399
|
-
await f.injectLink({ href: a, id: "leafletCss" }), await f.injectLink({ href:
|
|
2436
|
+
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", l = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
|
|
2437
|
+
await f.injectLink({ href: a, id: "leafletCss" }), await f.injectLink({ href: l, id: "gestureCss" }), await f.injectScript({ src: t, id: "leafletJs", async: !1 }), await f.injectScript({
|
|
2400
2438
|
src: n,
|
|
2401
2439
|
id: "gestureJs",
|
|
2402
2440
|
async: !1
|
|
@@ -2443,18 +2481,18 @@ let t2 = class f {
|
|
|
2443
2481
|
name: t = null,
|
|
2444
2482
|
first: a = null,
|
|
2445
2483
|
middle: n = null,
|
|
2446
|
-
last:
|
|
2484
|
+
last: l = null,
|
|
2447
2485
|
min: r = null,
|
|
2448
|
-
max:
|
|
2486
|
+
max: s = null,
|
|
2449
2487
|
city: i = null,
|
|
2450
|
-
state:
|
|
2488
|
+
state: c = null,
|
|
2451
2489
|
vin: h = null,
|
|
2452
|
-
license:
|
|
2490
|
+
license: p = null,
|
|
2453
2491
|
token: V = null,
|
|
2454
|
-
phone:
|
|
2455
|
-
} = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m =
|
|
2492
|
+
phone: g = null
|
|
2493
|
+
} = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m = s && s !== "" && r !== "99";
|
|
2456
2494
|
let H = [];
|
|
2457
|
-
return t && t !== "" && H.push("name=" + t), A || (a && a !== "" && H.push("first=" + a), n && n !== "" && H.push("middle=" + n),
|
|
2495
|
+
return t && t !== "" && H.push("name=" + t), A || (a && a !== "" && H.push("first=" + a), n && n !== "" && H.push("middle=" + n), l && l !== "" && H.push("last=" + l)), C && m ? parseInt(r) > parseInt(s) ? (H.push("min=" + s), H.push("max=" + r)) : (H.push("min=" + r), H.push("max=" + s)) : (C && H.push("min=" + r), m && H.push("max=" + s)), g && g !== "" && H.push("phone=" + g), i && i !== "" && H.push("city=" + i), p && p !== "" && H.push("license=" + p), h && h !== "" && H.push("vin=" + h), c && c !== "" && H.push("state=" + c), V && V !== "" && H.push("token=" + V), H.join("&");
|
|
2458
2496
|
}
|
|
2459
2497
|
static padTo2Digits(e) {
|
|
2460
2498
|
return e.toString().padStart(2, "0");
|
|
@@ -2467,20 +2505,20 @@ let t2 = class f {
|
|
|
2467
2505
|
const {
|
|
2468
2506
|
addressesOnly: a = !1,
|
|
2469
2507
|
useCitySearch: n = !1,
|
|
2470
|
-
useCityStateSearch:
|
|
2508
|
+
useCityStateSearch: l = !1,
|
|
2471
2509
|
useSearch: r = !1,
|
|
2472
|
-
useLocation:
|
|
2510
|
+
useLocation: s = !0,
|
|
2473
2511
|
state: i = ""
|
|
2474
|
-
} = t ?? {}, { tolken:
|
|
2512
|
+
} = t ?? {}, { tolken: c = null, ip: h = null } = await f.getHeaders(), V = [
|
|
2475
2513
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2476
2514
|
"addressesOnly=" + a,
|
|
2477
2515
|
"useSearch=" + r,
|
|
2478
2516
|
"useCitySearch=" + n,
|
|
2479
|
-
"useCityStateSearch=" +
|
|
2480
|
-
"useLocation=" +
|
|
2517
|
+
"useCityStateSearch=" + l,
|
|
2518
|
+
"useLocation=" + s
|
|
2481
2519
|
];
|
|
2482
|
-
i && i !== "" && !
|
|
2483
|
-
const
|
|
2520
|
+
i && i !== "" && !l && V.push("state=" + i), c && c !== "" && V.push("tolken=" + c), h && h !== "" && V.push("ip=" + h);
|
|
2521
|
+
const g = V.join("&"), C = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + g;
|
|
2484
2522
|
return await f.makeSearchFetchCall(C);
|
|
2485
2523
|
}
|
|
2486
2524
|
static removeElements(e) {
|
|
@@ -2501,8 +2539,8 @@ let t2 = class f {
|
|
|
2501
2539
|
}
|
|
2502
2540
|
static searchInStates(e) {
|
|
2503
2541
|
const t = f.getStates(), a = e.toLowerCase();
|
|
2504
|
-
let n = t.find((
|
|
2505
|
-
return n || (n = t.find((
|
|
2542
|
+
let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
|
|
2543
|
+
return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
|
|
2506
2544
|
}
|
|
2507
2545
|
static sendWoopraEvent(e, t) {
|
|
2508
2546
|
typeof woopra == "object" && woopra.track(e, t);
|
|
@@ -2516,20 +2554,20 @@ let t2 = class f {
|
|
|
2516
2554
|
if (!t)
|
|
2517
2555
|
return e;
|
|
2518
2556
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2519
|
-
let [a = null, n = null] = t.split(",").map((
|
|
2557
|
+
let [a = null, n = null] = t.split(",").map((l) => l.trim());
|
|
2520
2558
|
if (f.getStates(), a && !n) {
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2559
|
+
const l = this.searchInStates(a);
|
|
2560
|
+
l && (a = null, n = l.short);
|
|
2523
2561
|
}
|
|
2524
2562
|
if (!n && a) {
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2563
|
+
const l = this.searchInStates(a);
|
|
2564
|
+
l && (n = l.short);
|
|
2527
2565
|
}
|
|
2528
2566
|
if (a && !n) {
|
|
2529
|
-
const
|
|
2567
|
+
const l = a.split(" "), r = l[l.length - 1];
|
|
2530
2568
|
if (r.length) {
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2569
|
+
const s = this.searchInStates(r);
|
|
2570
|
+
s && (n = s.short, a = l.slice(0, -1).join(" "));
|
|
2533
2571
|
}
|
|
2534
2572
|
}
|
|
2535
2573
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
@@ -2573,131 +2611,40 @@ let t2 = class f {
|
|
|
2573
2611
|
static ucWords(e) {
|
|
2574
2612
|
return e ? e.toString().split(" ").map((t) => f.ucFirst(t)).join(" ") : null;
|
|
2575
2613
|
}
|
|
2576
|
-
};
|
|
2577
|
-
class w1 {
|
|
2578
|
-
constructor() {
|
|
2579
|
-
k(this, "contactForm", null);
|
|
2580
|
-
k(this, "submitBtn", null);
|
|
2581
|
-
k(this, "VALIDATION", {
|
|
2582
|
-
"contact-email": [
|
|
2583
|
-
{
|
|
2584
|
-
isValid: (e) => x1(e),
|
|
2585
|
-
message: "Invalid email"
|
|
2586
|
-
}
|
|
2587
|
-
],
|
|
2588
|
-
"contact-name": [
|
|
2589
|
-
{
|
|
2590
|
-
isValid: (e) => e.length > 1,
|
|
2591
|
-
message: "Must include at least 2 characters"
|
|
2592
|
-
}
|
|
2593
|
-
],
|
|
2594
|
-
"contact-message": [
|
|
2595
|
-
{
|
|
2596
|
-
isValid: (e) => e.length > 4,
|
|
2597
|
-
message: "Must include at least 5 characters"
|
|
2598
|
-
}
|
|
2599
|
-
]
|
|
2600
|
-
});
|
|
2601
|
-
}
|
|
2602
|
-
init({ formEl: e }) {
|
|
2603
|
-
var t;
|
|
2604
|
-
this.contactForm = e, this.submitBtn = this.contactForm.querySelector('button[type="submit"]'), (t = this.submitBtn) == null || t.addEventListener("click", async (a) => {
|
|
2605
|
-
var u;
|
|
2606
|
-
a.preventDefault();
|
|
2607
|
-
let n = {
|
|
2608
|
-
"contact-email": "",
|
|
2609
|
-
"contact-name": "",
|
|
2610
|
-
"contact-message": ""
|
|
2611
|
-
}, s = new FormData(this.contactForm);
|
|
2612
|
-
if (!b1({
|
|
2613
|
-
form: this.contactForm,
|
|
2614
|
-
formData: s,
|
|
2615
|
-
validations: this.VALIDATION,
|
|
2616
|
-
cb: this.handleErrors.bind(this)
|
|
2617
|
-
}))
|
|
2618
|
-
return;
|
|
2619
|
-
this.handleLoading(!0);
|
|
2620
|
-
for (const [V, M] of s.entries())
|
|
2621
|
-
n[V] = M;
|
|
2622
|
-
const {
|
|
2623
|
-
"contact-email": l,
|
|
2624
|
-
"contact-name": i,
|
|
2625
|
-
"contact-message": d
|
|
2626
|
-
} = n, h = ((u = window == null ? void 0 : window.location) == null ? void 0 : u.href) ?? "";
|
|
2627
|
-
await this.sendContactForm({
|
|
2628
|
-
email: l,
|
|
2629
|
-
name: i,
|
|
2630
|
-
message: `${d} - Submitted from ${h}`
|
|
2631
|
-
}), this.handleSuccessMsg();
|
|
2632
|
-
});
|
|
2633
|
-
}
|
|
2634
|
-
handleErrors({ isValid: e, field: t } = {}) {
|
|
2635
|
-
const a = t.nextElementSibling;
|
|
2636
|
-
e ? a == null || a.remove() : !a && t.insertAdjacentHTML(
|
|
2637
|
-
"afterend",
|
|
2638
|
-
this.setErrorEl(this.VALIDATION[t.name][0].message)
|
|
2639
|
-
);
|
|
2640
|
-
}
|
|
2641
|
-
handleLoading(e) {
|
|
2642
|
-
if (e)
|
|
2643
|
-
return T(this.submitBtn, ["button-loader"]);
|
|
2644
|
-
y1(this.submitBtn, ["button-loader"]);
|
|
2645
|
-
}
|
|
2646
|
-
handleSuccessMsg() {
|
|
2647
|
-
this.handleLoading(!1), this.contactForm.firstElementChild.innerHTML = "We received your message.", T(this.contactForm, ["contact-form--success"]), this.contactForm.lastElementChild.remove();
|
|
2648
|
-
}
|
|
2649
|
-
async sendContactForm(e) {
|
|
2650
|
-
const t = await Common.createData(
|
|
2651
|
-
"/api/client?query=contacts&method=POST",
|
|
2652
|
-
e
|
|
2653
|
-
);
|
|
2654
|
-
return {
|
|
2655
|
-
error: t == null ? void 0 : t.error,
|
|
2656
|
-
message: t == null ? void 0 : t.message,
|
|
2657
|
-
data: t == null ? void 0 : t.data
|
|
2658
|
-
};
|
|
2659
|
-
}
|
|
2660
|
-
setErrorEl(e) {
|
|
2661
|
-
return `<span class="relative flex mt-0.5 text-red-700 text-xs text-left">
|
|
2662
|
-
${e}
|
|
2663
|
-
</span>`;
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
function a2() {
|
|
2667
|
-
const c = document.querySelectorAll(".contact-form");
|
|
2668
|
-
c.length > 0 && Array.from({ length: c.length }, (e, t) => {
|
|
2669
|
-
const a = c[t];
|
|
2670
|
-
new w1().init({ formEl: a });
|
|
2671
|
-
});
|
|
2672
2614
|
}
|
|
2673
2615
|
export {
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2616
|
+
x1 as Accordion,
|
|
2617
|
+
b1 as Alert,
|
|
2618
|
+
w1 as Autocomplete,
|
|
2619
|
+
S1 as Badge,
|
|
2620
|
+
E as Button,
|
|
2621
|
+
k1 as ButtonGroup,
|
|
2622
|
+
z1 as Card,
|
|
2623
|
+
_1 as CardSlider,
|
|
2624
|
+
N1 as Checkbox,
|
|
2625
|
+
f as Common,
|
|
2626
|
+
W1 as ContactForm,
|
|
2627
|
+
Z1 as Container,
|
|
2628
|
+
U1 as ContentCard,
|
|
2629
|
+
E1 as Dialog,
|
|
2630
|
+
B1 as DialogOld,
|
|
2631
|
+
D1 as Dots,
|
|
2632
|
+
G1 as FunnelHeader,
|
|
2633
|
+
x as Icon,
|
|
2634
|
+
$1 as LoadingBar,
|
|
2635
|
+
I1 as Popover,
|
|
2636
|
+
O1 as ProgressBar,
|
|
2637
|
+
F1 as Radio,
|
|
2638
|
+
q1 as Select,
|
|
2639
|
+
j1 as Skeleton,
|
|
2640
|
+
P1 as Slider,
|
|
2641
|
+
T1 as Spinner,
|
|
2642
|
+
Q1 as StackedListItem,
|
|
2643
|
+
R1 as Stars,
|
|
2644
|
+
V1 as TextArea,
|
|
2645
|
+
B as Textbox,
|
|
2646
|
+
J1 as addClass,
|
|
2647
|
+
K1 as removeClass,
|
|
2648
|
+
X1 as validateEmail,
|
|
2649
|
+
Y1 as validateForm
|
|
2703
2650
|
};
|