@vehiclehistory/property-lib 0.0.34 → 0.0.35
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 +381 -477
- package/dist/scripts/index.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
var P = Object.defineProperty;
|
|
2
|
-
var R = (c, e, t) => e in c ? P(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
|
|
3
|
-
var k = (c, e, t) => R(c, typeof e != "symbol" ? e + "" : e, t);
|
|
4
1
|
import { jsx as o, jsxs as g, Fragment as S } from "react/jsx-runtime";
|
|
5
|
-
import { memo as y, useState as
|
|
2
|
+
import { memo as y, useState as Z, useEffect as k, useRef as q } from "react";
|
|
6
3
|
import p from "classnames";
|
|
7
|
-
const
|
|
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] = Z(d), [i, c] = Z(l);
|
|
484
|
+
return k(() => {
|
|
485
|
+
c(l);
|
|
486
|
+
}, [l]), k(() => {
|
|
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,16 +498,16 @@ 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 [
|
|
510
|
+
const [s, i] = Z(r);
|
|
514
511
|
return /* @__PURE__ */ o("div", { className: p("shadow rounded-lg", e), children: /* @__PURE__ */ g(S, { children: [
|
|
515
512
|
/* @__PURE__ */ g(
|
|
516
513
|
"button",
|
|
@@ -520,17 +517,17 @@ const U = {
|
|
|
520
517
|
className: p(
|
|
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
543
|
className: p(
|
|
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
553
|
className: p(
|
|
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
|
+
}, A1 = 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,7 +589,7 @@ 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
|
{
|
|
@@ -602,14 +599,14 @@ const U = {
|
|
|
602
599
|
h,
|
|
603
600
|
e
|
|
604
601
|
),
|
|
605
|
-
...
|
|
602
|
+
...l,
|
|
606
603
|
children: /* @__PURE__ */ g("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
|
) }),
|
|
@@ -620,17 +617,17 @@ const U = {
|
|
|
620
617
|
] })
|
|
621
618
|
}
|
|
622
619
|
);
|
|
623
|
-
},
|
|
624
|
-
autoFocus:
|
|
620
|
+
}, y1 = 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
632
|
options: u = [],
|
|
636
633
|
name: V = "",
|
|
@@ -644,7 +641,7 @@ const U = {
|
|
|
644
641
|
{
|
|
645
642
|
id: n,
|
|
646
643
|
"data-search": "container",
|
|
647
|
-
"data-search-type":
|
|
644
|
+
"data-search-type": l,
|
|
648
645
|
className: p("Autocomplete", t),
|
|
649
646
|
style: m ? { ...m } : null,
|
|
650
647
|
children: [
|
|
@@ -654,12 +651,12 @@ const U = {
|
|
|
654
651
|
className: p(
|
|
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,7 +680,7 @@ const U = {
|
|
|
683
680
|
"input",
|
|
684
681
|
{
|
|
685
682
|
"data-lpignore": "true",
|
|
686
|
-
autoFocus:
|
|
683
|
+
autoFocus: d,
|
|
687
684
|
className: p(
|
|
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
|
{
|
|
@@ -693,7 +690,7 @@ 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",
|
|
@@ -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",
|
|
@@ -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: u.length > 0 ? u.map((
|
|
767
|
+
children: u.length > 0 ? u.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,8 +783,8 @@ const U = {
|
|
|
786
783
|
)
|
|
787
784
|
]
|
|
788
785
|
}
|
|
789
|
-
),
|
|
790
|
-
children:
|
|
786
|
+
), x1 = G, J = ({
|
|
787
|
+
children: d,
|
|
791
788
|
className: e,
|
|
792
789
|
size: t = "sm",
|
|
793
790
|
tag: a = "span"
|
|
@@ -803,19 +800,19 @@ const U = {
|
|
|
803
800
|
},
|
|
804
801
|
e
|
|
805
802
|
),
|
|
806
|
-
children:
|
|
803
|
+
children: d
|
|
807
804
|
}
|
|
808
|
-
),
|
|
809
|
-
borderless:
|
|
805
|
+
), b1 = 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
817
|
size: u = "md",
|
|
821
818
|
type: V = "button",
|
|
@@ -833,19 +830,19 @@ const U = {
|
|
|
833
830
|
[`Button--${A}`]: A,
|
|
834
831
|
[`Button--${u}`]: u,
|
|
835
832
|
"Button--rounded": h,
|
|
836
|
-
"Button--disabled":
|
|
833
|
+
"Button--disabled": l,
|
|
837
834
|
"Button--custom-link": r,
|
|
838
835
|
"Button--uppercase": M,
|
|
839
|
-
"Button--borderless":
|
|
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
848
|
size: u === "md" ? "small" : "xSmall",
|
|
@@ -855,26 +852,26 @@ const U = {
|
|
|
855
852
|
),
|
|
856
853
|
a,
|
|
857
854
|
i && /* @__PURE__ */ o(
|
|
858
|
-
|
|
855
|
+
x,
|
|
859
856
|
{
|
|
860
857
|
name: i,
|
|
861
858
|
size: u === "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: p("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), w1 = 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
|
{
|
|
@@ -882,40 +879,40 @@ const 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
|
+
), S1 = 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 u = r ? "div" : "label", V = u === "label" ? { htmlFor:
|
|
905
|
+
const u = r ? "div" : "label", V = u === "label" ? { htmlFor: l } : {};
|
|
909
906
|
return /* @__PURE__ */ g(
|
|
910
907
|
u,
|
|
911
908
|
{
|
|
912
|
-
className: p("checkbox flex items-center",
|
|
909
|
+
className: p("checkbox flex items-center", c, t),
|
|
913
910
|
...V,
|
|
914
911
|
children: [
|
|
915
912
|
/* @__PURE__ */ o(
|
|
916
913
|
"input",
|
|
917
914
|
{
|
|
918
|
-
checked:
|
|
915
|
+
checked: d,
|
|
919
916
|
className: p(
|
|
920
917
|
"form-checkbox ",
|
|
921
918
|
{
|
|
@@ -923,8 +920,8 @@ const U = {
|
|
|
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,7 +931,7 @@ const U = {
|
|
|
934
931
|
]
|
|
935
932
|
}
|
|
936
933
|
);
|
|
937
|
-
},
|
|
934
|
+
}, z1 = y(_), e1 = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("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
|
{
|
|
@@ -944,7 +941,7 @@ const U = {
|
|
|
944
941
|
"lg:order-2": t === "left"
|
|
945
942
|
}
|
|
946
943
|
),
|
|
947
|
-
children:
|
|
944
|
+
children: d
|
|
948
945
|
}
|
|
949
946
|
),
|
|
950
947
|
/* @__PURE__ */ o(
|
|
@@ -960,24 +957,24 @@ const U = {
|
|
|
960
957
|
children: e
|
|
961
958
|
}
|
|
962
959
|
)
|
|
963
|
-
] }),
|
|
964
|
-
activator:
|
|
960
|
+
] }), k1 = 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
972
|
preventPageScroll: u = !0,
|
|
976
973
|
stickyHeader: V = !1,
|
|
977
974
|
title: M = "",
|
|
978
975
|
titleClass: A = ""
|
|
979
976
|
}) => /* @__PURE__ */ g(S, { children: [
|
|
980
|
-
|
|
977
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
|
|
981
978
|
/* @__PURE__ */ o(
|
|
982
979
|
"dialog",
|
|
983
980
|
{
|
|
@@ -986,8 +983,8 @@ const U = {
|
|
|
986
983
|
className: p(
|
|
987
984
|
"dialog",
|
|
988
985
|
{
|
|
989
|
-
"dialog-full-mobile":
|
|
990
|
-
dark:
|
|
986
|
+
"dialog-full-mobile": s,
|
|
987
|
+
dark: l,
|
|
991
988
|
"prevent-scroll": u
|
|
992
989
|
},
|
|
993
990
|
a
|
|
@@ -1007,7 +1004,7 @@ const U = {
|
|
|
1007
1004
|
),
|
|
1008
1005
|
children: [
|
|
1009
1006
|
M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: M }),
|
|
1010
|
-
!
|
|
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,
|
|
@@ -1040,17 +1037,17 @@ const U = {
|
|
|
1040
1037
|
] })
|
|
1041
1038
|
}
|
|
1042
1039
|
)
|
|
1043
|
-
] }),
|
|
1044
|
-
activator:
|
|
1040
|
+
] }), Z1 = 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
1052
|
iconSize: u = "medium",
|
|
1056
1053
|
isOpen: V = !1,
|
|
@@ -1059,21 +1056,21 @@ const U = {
|
|
|
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(), M(!1);
|
|
1064
1061
|
}, v = async (w) => {
|
|
1065
|
-
w.key === "Escape" && await
|
|
1066
|
-
},
|
|
1067
|
-
const { left:
|
|
1068
|
-
(!H.current.contains(
|
|
1069
|
-
},
|
|
1062
|
+
w.key === "Escape" && await b();
|
|
1063
|
+
}, N = async ({ clientX: w, clientY: z, target: T }) => {
|
|
1064
|
+
const { left: $, right: I, top: O, bottom: F } = H.current.getBoundingClientRect() ?? {};
|
|
1065
|
+
(!H.current.contains(T) || w < $ || w > I || z < O || z > F) && await b();
|
|
1066
|
+
}, D = (w) => Promise.allSettled(
|
|
1070
1067
|
w.getAnimations().map((z) => z.finished)
|
|
1071
1068
|
);
|
|
1072
|
-
return
|
|
1069
|
+
return k(() => {
|
|
1073
1070
|
const w = H.current;
|
|
1074
1071
|
w && (V ? w.showModal() : typeof w.close == "function" && w.close());
|
|
1075
1072
|
}, [V]), /* @__PURE__ */ g(S, { children: [
|
|
1076
|
-
|
|
1073
|
+
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
|
|
1077
1074
|
/* @__PURE__ */ g(
|
|
1078
1075
|
"dialog",
|
|
1079
1076
|
{
|
|
@@ -1088,7 +1085,7 @@ const U = {
|
|
|
1088
1085
|
a
|
|
1089
1086
|
),
|
|
1090
1087
|
onKeyDown: v,
|
|
1091
|
-
onClick: (w) => r ? null :
|
|
1088
|
+
onClick: (w) => r ? null : N(w),
|
|
1092
1089
|
children: [
|
|
1093
1090
|
/* @__PURE__ */ g(
|
|
1094
1091
|
"header",
|
|
@@ -1096,7 +1093,7 @@ const U = {
|
|
|
1096
1093
|
className: p(
|
|
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,9 +1104,9 @@ 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
1112
|
size: u,
|
|
@@ -1129,19 +1126,19 @@ const U = {
|
|
|
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
|
+
}, N1 = y(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: p("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,30 +1147,30 @@ 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
|
+
] }), E1 = 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,
|
|
1157
|
+
function l({ cb: r }) {
|
|
1158
|
+
const s = document.querySelector(".loading-bar__inner");
|
|
1159
|
+
if (!s) return;
|
|
1160
|
+
let i, c, h = !1;
|
|
1164
1161
|
function u(V) {
|
|
1165
1162
|
i === void 0 && (i = V);
|
|
1166
1163
|
const M = V - i;
|
|
1167
|
-
if (
|
|
1164
|
+
if (c !== V) {
|
|
1168
1165
|
const A = M / a * 101;
|
|
1169
|
-
|
|
1166
|
+
s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(V));
|
|
1170
1167
|
}
|
|
1171
|
-
M < a && (
|
|
1168
|
+
M < a && (c = V, h || window.requestAnimationFrame(u));
|
|
1172
1169
|
}
|
|
1173
1170
|
window.requestAnimationFrame(u);
|
|
1174
1171
|
}
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1172
|
+
return k(() => {
|
|
1173
|
+
l({ cb: d });
|
|
1177
1174
|
}, []), /* @__PURE__ */ o(
|
|
1178
1175
|
"div",
|
|
1179
1176
|
{
|
|
@@ -1191,33 +1188,33 @@ const U = {
|
|
|
1191
1188
|
children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1192
1189
|
}
|
|
1193
1190
|
);
|
|
1194
|
-
},
|
|
1191
|
+
}, B1 = 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
|
+
) }), D1 = 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:
|
|
1212
|
+
trigger: c = "click"
|
|
1216
1213
|
}) => /* @__PURE__ */ g(S, { children: [
|
|
1217
1214
|
/* @__PURE__ */ o(
|
|
1218
1215
|
"div",
|
|
1219
1216
|
{
|
|
1220
|
-
className: p("popover z-10 max-w-[350px] hidden",
|
|
1217
|
+
className: p("popover z-10 max-w-[350px] hidden", l),
|
|
1221
1218
|
children: /* @__PURE__ */ g(
|
|
1222
1219
|
"div",
|
|
1223
1220
|
{
|
|
@@ -1244,32 +1241,32 @@ const U = {
|
|
|
1244
1241
|
{
|
|
1245
1242
|
className: p(
|
|
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
|
+
] }), T1 = 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, u) => {
|
|
1267
1264
|
if (h) {
|
|
1268
1265
|
const V = Number(u) / 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
|
{
|
|
@@ -1282,7 +1279,7 @@ 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
|
{
|
|
@@ -1290,26 +1287,26 @@ const 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
|
+
}, $1 = 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
|
|
1307
|
+
const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1311
1308
|
return /* @__PURE__ */ g(
|
|
1312
|
-
|
|
1309
|
+
c,
|
|
1313
1310
|
{
|
|
1314
1311
|
className: p("radio flex items-center", t),
|
|
1315
1312
|
...h,
|
|
@@ -1317,15 +1314,15 @@ const U = {
|
|
|
1317
1314
|
/* @__PURE__ */ o(
|
|
1318
1315
|
"input",
|
|
1319
1316
|
{
|
|
1320
|
-
checked:
|
|
1317
|
+
checked: d,
|
|
1321
1318
|
className: p(
|
|
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,17 +1332,17 @@ const U = {
|
|
|
1335
1332
|
]
|
|
1336
1333
|
}
|
|
1337
1334
|
);
|
|
1338
|
-
},
|
|
1339
|
-
children:
|
|
1335
|
+
}, I1 = 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
1347
|
styles: u = null,
|
|
1351
1348
|
variation: V = "primary",
|
|
@@ -1358,7 +1355,7 @@ const U = {
|
|
|
1358
1355
|
className: p("relative select", e, V),
|
|
1359
1356
|
style: u ? { ...u } : null,
|
|
1360
1357
|
children: [
|
|
1361
|
-
|
|
1358
|
+
l,
|
|
1362
1359
|
/* @__PURE__ */ g(
|
|
1363
1360
|
"select",
|
|
1364
1361
|
{
|
|
@@ -1371,10 +1368,10 @@ const U = {
|
|
|
1371
1368
|
name: r,
|
|
1372
1369
|
value: M,
|
|
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,20 +1386,20 @@ const U = {
|
|
|
1389
1386
|
]
|
|
1390
1387
|
}
|
|
1391
1388
|
);
|
|
1392
|
-
},
|
|
1389
|
+
}, O1 = y(d1), h1 = ({ className: d = "" }) => /* @__PURE__ */ g(
|
|
1393
1390
|
"div",
|
|
1394
1391
|
{
|
|
1395
1392
|
className: p(
|
|
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
|
+
), F1 = y(h1), u1 = ({
|
|
1402
|
+
placeholderClass: d = "",
|
|
1406
1403
|
children: e,
|
|
1407
1404
|
className: t = "",
|
|
1408
1405
|
id: a = 1,
|
|
@@ -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
|
+
] }), q1 = y(u1), p1 = ({
|
|
1437
|
+
className: d = "",
|
|
1441
1438
|
value: e
|
|
1442
1439
|
}) => {
|
|
1443
1440
|
const t = {
|
|
@@ -1448,36 +1445,36 @@ const U = {
|
|
|
1448
1445
|
{
|
|
1449
1446
|
className: p(
|
|
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
|
+
}, j1 = 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__ */ g("div", { className: p("relative textarea", h,
|
|
1465
|
+
}) => /* @__PURE__ */ g("div", { className: p("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:
|
|
1472
|
+
rows: c,
|
|
1476
1473
|
className: p(
|
|
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,17 +1495,17 @@ 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
1510
|
type: u = "text",
|
|
1514
1511
|
value: V,
|
|
@@ -1516,11 +1513,11 @@ const U = {
|
|
|
1516
1513
|
}) => /* @__PURE__ */ g(
|
|
1517
1514
|
"div",
|
|
1518
1515
|
{
|
|
1519
|
-
className: p("relative textbox", M,
|
|
1516
|
+
className: p("relative textbox", M, 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,8 +1529,8 @@ const U = {
|
|
|
1532
1529
|
"input",
|
|
1533
1530
|
{
|
|
1534
1531
|
placeholder: i,
|
|
1535
|
-
id:
|
|
1536
|
-
name:
|
|
1532
|
+
id: l,
|
|
1533
|
+
name: s,
|
|
1537
1534
|
type: u,
|
|
1538
1535
|
value: V,
|
|
1539
1536
|
autoComplete: "off",
|
|
@@ -1544,19 +1541,19 @@ const U = {
|
|
|
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,20 +1565,20 @@ 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__ */ g(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
1583
|
className: p(
|
|
1587
1584
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
@@ -1602,8 +1599,8 @@ const U = {
|
|
|
1602
1599
|
uppercase: r
|
|
1603
1600
|
}),
|
|
1604
1601
|
children: [
|
|
1605
|
-
/* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4",
|
|
1606
|
-
/* @__PURE__ */ o("p", { className: "contact-form__msg", children:
|
|
1602
|
+
/* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4", l), children: n }),
|
|
1603
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: s }),
|
|
1607
1604
|
/* @__PURE__ */ g(
|
|
1608
1605
|
"div",
|
|
1609
1606
|
{
|
|
@@ -1613,7 +1610,7 @@ const U = {
|
|
|
1613
1610
|
),
|
|
1614
1611
|
children: [
|
|
1615
1612
|
/* @__PURE__ */ o(
|
|
1616
|
-
|
|
1613
|
+
B,
|
|
1617
1614
|
{
|
|
1618
1615
|
id: "contact-name",
|
|
1619
1616
|
name: "contact-name",
|
|
@@ -1624,7 +1621,7 @@ const U = {
|
|
|
1624
1621
|
}
|
|
1625
1622
|
),
|
|
1626
1623
|
/* @__PURE__ */ o(
|
|
1627
|
-
|
|
1624
|
+
B,
|
|
1628
1625
|
{
|
|
1629
1626
|
id: "contact-email",
|
|
1630
1627
|
name: "contact-email",
|
|
@@ -1635,7 +1632,7 @@ const U = {
|
|
|
1635
1632
|
}
|
|
1636
1633
|
),
|
|
1637
1634
|
/* @__PURE__ */ o(
|
|
1638
|
-
|
|
1635
|
+
V1,
|
|
1639
1636
|
{
|
|
1640
1637
|
id: "contact-message",
|
|
1641
1638
|
name: "contact-message",
|
|
@@ -1646,14 +1643,14 @@ const U = {
|
|
|
1646
1643
|
}
|
|
1647
1644
|
),
|
|
1648
1645
|
/* @__PURE__ */ o(
|
|
1649
|
-
|
|
1646
|
+
E,
|
|
1650
1647
|
{
|
|
1651
1648
|
className: p(
|
|
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,60 @@ const U = {
|
|
|
1666
1663
|
]
|
|
1667
1664
|
}
|
|
1668
1665
|
);
|
|
1669
|
-
},
|
|
1666
|
+
}, P1 = y(L1), C1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
|
|
1670
1667
|
t,
|
|
1671
1668
|
{
|
|
1672
1669
|
className: p(
|
|
1673
1670
|
"!text-xl text-center mb-6 flex items-center justify-center",
|
|
1674
1671
|
e
|
|
1675
1672
|
),
|
|
1676
|
-
children: a ||
|
|
1673
|
+
children: a || d
|
|
1677
1674
|
}
|
|
1678
|
-
),
|
|
1679
|
-
function
|
|
1680
|
-
return new Proxy(
|
|
1675
|
+
), R1 = y(C1);
|
|
1676
|
+
function f1(d, e = []) {
|
|
1677
|
+
return new Proxy(d, {
|
|
1681
1678
|
get: function(t, a) {
|
|
1682
1679
|
return t[a];
|
|
1683
1680
|
},
|
|
1684
1681
|
set(t, a, n) {
|
|
1685
|
-
const
|
|
1686
|
-
return t[a] = n, e.length > 0 && e.forEach((r) => r(t,
|
|
1682
|
+
const l = { ...t };
|
|
1683
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
|
|
1687
1684
|
}
|
|
1688
1685
|
});
|
|
1689
1686
|
}
|
|
1690
|
-
function
|
|
1691
|
-
e.length && (
|
|
1687
|
+
function W1(d, e = []) {
|
|
1688
|
+
e.length && (d == null || d.classList.add(...e));
|
|
1692
1689
|
}
|
|
1693
|
-
function
|
|
1694
|
-
e.length && (
|
|
1690
|
+
function U1(d, e = []) {
|
|
1691
|
+
e.length && (d == null || d.classList.remove(...e));
|
|
1695
1692
|
}
|
|
1696
|
-
function
|
|
1697
|
-
let
|
|
1698
|
-
for (const [r,
|
|
1699
|
-
const i = e.querySelector(`[name="${r}"]`),
|
|
1700
|
-
|
|
1701
|
-
u.isValid(
|
|
1702
|
-
}), h.length ? (
|
|
1693
|
+
function Q1({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
1694
|
+
let l = !0;
|
|
1695
|
+
for (const [r, s] of t.entries()) {
|
|
1696
|
+
const i = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
|
|
1697
|
+
c.forEach((u) => {
|
|
1698
|
+
u.isValid(s) || h.push(u.message);
|
|
1699
|
+
}), 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", (u) => {
|
|
1703
1700
|
u.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
|
|
1704
1701
|
}));
|
|
1705
1702
|
}
|
|
1706
|
-
return
|
|
1703
|
+
return l;
|
|
1707
1704
|
}
|
|
1708
|
-
function
|
|
1705
|
+
function G1(d) {
|
|
1709
1706
|
const e = (
|
|
1710
1707
|
// eslint-disable-next-line
|
|
1711
1708
|
/(?:[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
1709
|
), t = /[^a-zA-Z]+$/;
|
|
1713
|
-
return e.test(
|
|
1710
|
+
return e.test(d.toLowerCase()) && !t.test(d);
|
|
1714
1711
|
}
|
|
1715
|
-
class
|
|
1712
|
+
class J1 {
|
|
1716
1713
|
init(e) {
|
|
1717
1714
|
this.handleSliders(e);
|
|
1718
1715
|
}
|
|
1719
1716
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
1720
1717
|
if (!document.getElementById(`slider-container-${t}`))
|
|
1721
1718
|
return;
|
|
1722
|
-
const n =
|
|
1719
|
+
const n = f1(
|
|
1723
1720
|
{
|
|
1724
1721
|
activeIndex: 0,
|
|
1725
1722
|
computedSlides: [],
|
|
@@ -1745,8 +1742,8 @@ class e2 {
|
|
|
1745
1742
|
initObserver(e) {
|
|
1746
1743
|
var t, a;
|
|
1747
1744
|
e.observer || (e.observer = new IntersectionObserver(
|
|
1748
|
-
(n,
|
|
1749
|
-
this.handleIntersect(n,
|
|
1745
|
+
(n, l) => {
|
|
1746
|
+
this.handleIntersect(n, l, e);
|
|
1750
1747
|
},
|
|
1751
1748
|
{
|
|
1752
1749
|
root: (t = e.container) == null ? void 0 : t.offsetParent
|
|
@@ -1754,16 +1751,16 @@ class e2 {
|
|
|
1754
1751
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
1755
1752
|
}
|
|
1756
1753
|
handleIntersect(e, t, a) {
|
|
1757
|
-
const n = e.filter((i) => i.isIntersecting),
|
|
1754
|
+
const n = e.filter((i) => i.isIntersecting), l = n.length === a.slides.length, r = n.every(
|
|
1758
1755
|
(i) => i.isIntersecting === !0
|
|
1759
1756
|
);
|
|
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(
|
|
1757
|
+
l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
|
|
1758
|
+
const c = [...a.slides].indexOf(i.target);
|
|
1759
|
+
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
1760
|
}));
|
|
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] && ((
|
|
1761
|
+
function s(i) {
|
|
1762
|
+
var c;
|
|
1763
|
+
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
1764
|
}
|
|
1768
1765
|
}
|
|
1769
1766
|
btnListeners(e) {
|
|
@@ -1782,7 +1779,7 @@ class e2 {
|
|
|
1782
1779
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
1783
1780
|
}
|
|
1784
1781
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
1785
|
-
const
|
|
1782
|
+
const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
1786
1783
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
1787
1784
|
return console.error(`slider-container-${a} Not Found`);
|
|
1788
1785
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -1790,8 +1787,8 @@ class e2 {
|
|
|
1790
1787
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
1791
1788
|
`#btn-right-${a}`
|
|
1792
1789
|
);
|
|
1793
|
-
const
|
|
1794
|
-
i.innerHTML = `${
|
|
1790
|
+
const s = t.map((c) => n(c)).join(""), i = document.createElement("div");
|
|
1791
|
+
i.innerHTML = `${l}${s}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
|
|
1795
1792
|
}
|
|
1796
1793
|
showHideBtns(e, t, a) {
|
|
1797
1794
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -1801,11 +1798,11 @@ class e2 {
|
|
|
1801
1798
|
}
|
|
1802
1799
|
}
|
|
1803
1800
|
}
|
|
1804
|
-
|
|
1801
|
+
class f {
|
|
1805
1802
|
static calcCrow(e, t, a, n) {
|
|
1806
|
-
const r = f.toRad(a - e),
|
|
1803
|
+
const r = f.toRad(a - e), s = f.toRad(n - t);
|
|
1807
1804
|
e = f.toRad(e), a = f.toRad(a);
|
|
1808
|
-
const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(
|
|
1805
|
+
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
1806
|
return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
|
|
1810
1807
|
}
|
|
1811
1808
|
static cleanupAddress(e) {
|
|
@@ -1834,21 +1831,21 @@ let t2 = class f {
|
|
|
1834
1831
|
static async createData(e, t = null, a = !0) {
|
|
1835
1832
|
if (window.options.isBot || !t)
|
|
1836
1833
|
return null;
|
|
1837
|
-
const { tolken: n = null, ip:
|
|
1834
|
+
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
1835
|
try {
|
|
1839
|
-
const
|
|
1836
|
+
const c = await fetch(s, {
|
|
1840
1837
|
method: "POST",
|
|
1841
1838
|
body: i === "null" ? null : i,
|
|
1842
1839
|
headers: {
|
|
1843
1840
|
website: f.getWebsiteHeaderName()
|
|
1844
1841
|
}
|
|
1845
|
-
}), h =
|
|
1842
|
+
}), h = c.headers.get("content-type");
|
|
1846
1843
|
if (h && h.indexOf("application/json") !== -1)
|
|
1847
|
-
return
|
|
1848
|
-
const u = await
|
|
1844
|
+
return c.json();
|
|
1845
|
+
const u = await c.text();
|
|
1849
1846
|
return u ? u.replace("__next", "") : null;
|
|
1850
|
-
} catch (
|
|
1851
|
-
console.error("createData",
|
|
1847
|
+
} catch (c) {
|
|
1848
|
+
console.error("createData", c);
|
|
1852
1849
|
}
|
|
1853
1850
|
return null;
|
|
1854
1851
|
}
|
|
@@ -1908,15 +1905,15 @@ let t2 = class f {
|
|
|
1908
1905
|
static async fetchData(e, t = !1, a = !0) {
|
|
1909
1906
|
if (options.isBot)
|
|
1910
1907
|
return null;
|
|
1911
|
-
const { tolken: n = null, ip:
|
|
1908
|
+
const { tolken: n = null, ip: l = null } = await f.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
|
|
1912
1909
|
try {
|
|
1913
|
-
const i = await fetch(
|
|
1910
|
+
const i = await fetch(s, { method: "GET" });
|
|
1914
1911
|
if (t === !0) {
|
|
1915
1912
|
const h = await i.text();
|
|
1916
1913
|
return h ? h.replace("__next", "") : null;
|
|
1917
1914
|
}
|
|
1918
|
-
const
|
|
1919
|
-
return
|
|
1915
|
+
const c = i.headers.get("content-type");
|
|
1916
|
+
return c && c.indexOf("application/json") !== -1 ? i.json() : null;
|
|
1920
1917
|
} catch (i) {
|
|
1921
1918
|
console.error("fetchData", i, e);
|
|
1922
1919
|
}
|
|
@@ -1946,11 +1943,11 @@ let t2 = class f {
|
|
|
1946
1943
|
swLng: 0
|
|
1947
1944
|
};
|
|
1948
1945
|
const n = e.getBounds();
|
|
1949
|
-
let
|
|
1950
|
-
return a && (
|
|
1951
|
-
swLat:
|
|
1946
|
+
let l = n.getSouth(), r = n.getEast(), s = n.getNorth(), i = n.getWest();
|
|
1947
|
+
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)), {
|
|
1948
|
+
swLat: l,
|
|
1952
1949
|
neLng: r,
|
|
1953
|
-
neLat:
|
|
1950
|
+
neLat: s,
|
|
1954
1951
|
swLng: i
|
|
1955
1952
|
};
|
|
1956
1953
|
}
|
|
@@ -1984,22 +1981,22 @@ let t2 = class f {
|
|
|
1984
1981
|
userAgent: t = null,
|
|
1985
1982
|
userAgentData: a = null,
|
|
1986
1983
|
platform: n = null
|
|
1987
|
-
} = navigator || {},
|
|
1984
|
+
} = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
|
|
1988
1985
|
tolken: null,
|
|
1989
1986
|
ip: null,
|
|
1990
1987
|
userAgent: t,
|
|
1991
|
-
platform:
|
|
1988
|
+
platform: l
|
|
1992
1989
|
};
|
|
1993
1990
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
1994
1991
|
return r;
|
|
1995
|
-
const
|
|
1996
|
-
if (
|
|
1997
|
-
const
|
|
1998
|
-
return
|
|
1999
|
-
tolken:
|
|
2000
|
-
ip:
|
|
1992
|
+
const s = localStorage.getItem("headerTolken");
|
|
1993
|
+
if (s) {
|
|
1994
|
+
const c = JSON.parse(s), h = (/* @__PURE__ */ new Date()).getTime();
|
|
1995
|
+
return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
1996
|
+
tolken: c.tolken,
|
|
1997
|
+
ip: c.ip,
|
|
2001
1998
|
userAgent: t,
|
|
2002
|
-
platform:
|
|
1999
|
+
platform: l
|
|
2003
2000
|
};
|
|
2004
2001
|
}
|
|
2005
2002
|
if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
|
|
@@ -2013,9 +2010,9 @@ let t2 = class f {
|
|
|
2013
2010
|
ip: V,
|
|
2014
2011
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2015
2012
|
})
|
|
2016
|
-
), { tolken: u, ip: V, userAgent: t, platform:
|
|
2017
|
-
} catch (
|
|
2018
|
-
console.error("getHeaders",
|
|
2013
|
+
), { tolken: u, ip: V, userAgent: t, platform: l };
|
|
2014
|
+
} catch (c) {
|
|
2015
|
+
console.error("getHeaders", c);
|
|
2019
2016
|
}
|
|
2020
2017
|
return r;
|
|
2021
2018
|
}
|
|
@@ -2026,15 +2023,15 @@ let t2 = class f {
|
|
|
2026
2023
|
}[e];
|
|
2027
2024
|
}
|
|
2028
2025
|
static async getLocationData(e) {
|
|
2029
|
-
const { swLat: t, neLng: a, neLat: n, swLng:
|
|
2026
|
+
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
2027
|
return await f.fetchData("/api/client?query=" + r);
|
|
2031
2028
|
}
|
|
2032
2029
|
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 = ((
|
|
2030
|
+
var i, c, h;
|
|
2031
|
+
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
2032
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2036
|
-
const
|
|
2037
|
-
return "/" + [a, n,
|
|
2033
|
+
const s = [r, "-piq", t].filter((u) => u).join("");
|
|
2034
|
+
return "/" + [a, n, l].filter((u) => u).map((u) => f.toSlug(u)).join("/") + "/" + s;
|
|
2038
2035
|
}
|
|
2039
2036
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2040
2037
|
try {
|
|
@@ -2144,15 +2141,15 @@ let t2 = class f {
|
|
|
2144
2141
|
];
|
|
2145
2142
|
}
|
|
2146
2143
|
static getTrackingData(e) {
|
|
2147
|
-
const [t, ...a] = e.split("|"), n = a.join("|").trim(),
|
|
2144
|
+
const [t, ...a] = e.split("|"), n = a.join("|").trim(), l = [
|
|
2148
2145
|
"[pageType::" + t.trim() + "]",
|
|
2149
2146
|
"[name::" + n + "]"
|
|
2150
2147
|
].join(" ");
|
|
2151
2148
|
return {
|
|
2152
|
-
value:
|
|
2149
|
+
value: l,
|
|
2153
2150
|
dataLayer: {
|
|
2154
2151
|
event: "clickTrack",
|
|
2155
|
-
value:
|
|
2152
|
+
value: l
|
|
2156
2153
|
}
|
|
2157
2154
|
};
|
|
2158
2155
|
}
|
|
@@ -2191,36 +2188,36 @@ let t2 = class f {
|
|
|
2191
2188
|
return a && a.includes(t) ? t : e;
|
|
2192
2189
|
}
|
|
2193
2190
|
static getGridBounds({ map: e, tileSize: t, coords: a }) {
|
|
2194
|
-
const n = a.scaleBy(t),
|
|
2191
|
+
const n = a.scaleBy(t), l = n.add(t);
|
|
2195
2192
|
return {
|
|
2196
2193
|
nw: e.unproject(n, a.z),
|
|
2197
|
-
se: e.unproject(
|
|
2194
|
+
se: e.unproject(l, a.z)
|
|
2198
2195
|
};
|
|
2199
2196
|
}
|
|
2200
2197
|
static gridTest(e, t, a = 1500) {
|
|
2201
2198
|
const n = this;
|
|
2202
2199
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2203
|
-
createTile: function(
|
|
2204
|
-
const
|
|
2200
|
+
createTile: function(l, r) {
|
|
2201
|
+
const s = document.createElement("div");
|
|
2205
2202
|
return setTimeout(() => {
|
|
2206
|
-
r(null,
|
|
2207
|
-
const { se: i, nw:
|
|
2203
|
+
r(null, s);
|
|
2204
|
+
const { se: i, nw: c } = n.getGridBounds({
|
|
2208
2205
|
map: e,
|
|
2209
2206
|
tileSize: this.getTileSize(),
|
|
2210
|
-
coords:
|
|
2207
|
+
coords: l
|
|
2211
2208
|
});
|
|
2212
2209
|
t({
|
|
2213
2210
|
swLat: i.lat,
|
|
2214
2211
|
neLng: i.lng,
|
|
2215
|
-
neLat:
|
|
2216
|
-
swLng:
|
|
2217
|
-
coords:
|
|
2218
|
-
key:
|
|
2212
|
+
neLat: c.lat,
|
|
2213
|
+
swLng: c.lng,
|
|
2214
|
+
coords: l,
|
|
2215
|
+
key: l.z + "-" + l.x + "-" + l.y
|
|
2219
2216
|
});
|
|
2220
|
-
}, a),
|
|
2217
|
+
}, a), s;
|
|
2221
2218
|
}
|
|
2222
|
-
}), L.gridLayer.gridDebug = function(
|
|
2223
|
-
return new L.GridLayer.GridDebug(
|
|
2219
|
+
}), L.gridLayer.gridDebug = function(l) {
|
|
2220
|
+
return new L.GridLayer.GridDebug(l);
|
|
2224
2221
|
}, e.addLayer(L.gridLayer.gridDebug());
|
|
2225
2222
|
}
|
|
2226
2223
|
/**
|
|
@@ -2238,9 +2235,9 @@ let t2 = class f {
|
|
|
2238
2235
|
id: t = "",
|
|
2239
2236
|
onOpen: a = null,
|
|
2240
2237
|
onClose: n = null,
|
|
2241
|
-
disableOutsideClick:
|
|
2238
|
+
disableOutsideClick: l = !1
|
|
2242
2239
|
}) {
|
|
2243
|
-
const r = e ? document.querySelectorAll(e) : [],
|
|
2240
|
+
const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2244
2241
|
"closing",
|
|
2245
2242
|
"closed",
|
|
2246
2243
|
"opening",
|
|
@@ -2254,21 +2251,21 @@ let t2 = class f {
|
|
|
2254
2251
|
}),
|
|
2255
2252
|
{}
|
|
2256
2253
|
), h = new MutationObserver((m, H) => {
|
|
2257
|
-
m.forEach(async (
|
|
2258
|
-
if (
|
|
2259
|
-
const v =
|
|
2254
|
+
m.forEach(async (b) => {
|
|
2255
|
+
if (b.attributeName === "open") {
|
|
2256
|
+
const v = b.target;
|
|
2260
2257
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2261
|
-
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(
|
|
2258
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await C(v), v == null || v.dispatchEvent(c.opened);
|
|
2262
2259
|
}
|
|
2263
2260
|
});
|
|
2264
2261
|
}), u = new MutationObserver((m, H) => {
|
|
2265
|
-
m.forEach((
|
|
2266
|
-
|
|
2267
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(
|
|
2262
|
+
m.forEach((b) => {
|
|
2263
|
+
b.removedNodes.forEach((v) => {
|
|
2264
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), h == null || h.disconnect());
|
|
2268
2265
|
});
|
|
2269
2266
|
});
|
|
2270
2267
|
});
|
|
2271
|
-
|
|
2268
|
+
s && (h.observe(s, {
|
|
2272
2269
|
attributes: !0
|
|
2273
2270
|
}), u.observe(document.body, {
|
|
2274
2271
|
attributes: !1,
|
|
@@ -2276,25 +2273,25 @@ let t2 = class f {
|
|
|
2276
2273
|
childList: !0
|
|
2277
2274
|
}));
|
|
2278
2275
|
const V = () => {
|
|
2279
|
-
|
|
2276
|
+
s == null || s.showModal();
|
|
2280
2277
|
}, M = async ({ target: m }) => {
|
|
2281
|
-
m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(
|
|
2278
|
+
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
2279
|
}, A = async ({ target: m }) => {
|
|
2283
|
-
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(
|
|
2280
|
+
(m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), s == null || s.close("outside"));
|
|
2284
2281
|
}, C = (m) => Promise.allSettled(
|
|
2285
2282
|
m == null ? void 0 : m.getAnimations().map((H) => H == null ? void 0 : H.finished)
|
|
2286
2283
|
);
|
|
2287
|
-
return !
|
|
2284
|
+
return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M), r == null || r.forEach((m) => {
|
|
2288
2285
|
m.addEventListener("click", (H) => {
|
|
2289
|
-
V(), a && a(H,
|
|
2286
|
+
V(), a && a(H, s);
|
|
2290
2287
|
});
|
|
2291
2288
|
}), i == null || i.forEach((m) => {
|
|
2292
2289
|
m.addEventListener("click", async (H) => {
|
|
2293
|
-
|
|
2290
|
+
s == null || s.close("close"), n && n(H, s);
|
|
2294
2291
|
});
|
|
2295
2292
|
}), {
|
|
2296
2293
|
activators: r,
|
|
2297
|
-
ref:
|
|
2294
|
+
ref: s,
|
|
2298
2295
|
handleOpen: V,
|
|
2299
2296
|
handleClose: M
|
|
2300
2297
|
};
|
|
@@ -2306,8 +2303,8 @@ let t2 = class f {
|
|
|
2306
2303
|
if (!e)
|
|
2307
2304
|
return;
|
|
2308
2305
|
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:
|
|
2306
|
+
new IntersectionObserver(async (r, s) => {
|
|
2307
|
+
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
2308
|
}, a).observe(e);
|
|
2312
2309
|
}
|
|
2313
2310
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2315,11 +2312,11 @@ let t2 = class f {
|
|
|
2315
2312
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2316
2313
|
}
|
|
2317
2314
|
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
|
-
|
|
2315
|
+
return new Promise(function(l, r) {
|
|
2316
|
+
let s = document.getElementById(t);
|
|
2317
|
+
if (t && s && s.dataset.loaded === "true")
|
|
2318
|
+
return l({ alreadyLoaded: !0, id: t });
|
|
2319
|
+
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
2320
|
});
|
|
2324
2321
|
}
|
|
2325
2322
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2351,13 +2348,13 @@ let t2 = class f {
|
|
|
2351
2348
|
const a = Math.abs(e), n = Math.sign(e);
|
|
2352
2349
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2353
2350
|
}
|
|
2354
|
-
static async logRequest(e = null, t = null, a = null, n = null,
|
|
2351
|
+
static async logRequest(e = null, t = null, a = null, n = null, l = null) {
|
|
2355
2352
|
const r = {
|
|
2356
2353
|
name: e,
|
|
2357
2354
|
uuid: t,
|
|
2358
2355
|
ip: a,
|
|
2359
2356
|
url: n,
|
|
2360
|
-
data:
|
|
2357
|
+
data: l
|
|
2361
2358
|
};
|
|
2362
2359
|
return await f.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2363
2360
|
}
|
|
@@ -2382,8 +2379,8 @@ let t2 = class f {
|
|
|
2382
2379
|
async: !1,
|
|
2383
2380
|
module: a
|
|
2384
2381
|
});
|
|
2385
|
-
} catch (
|
|
2386
|
-
console.error("loadCustomScript",
|
|
2382
|
+
} catch (l) {
|
|
2383
|
+
console.error("loadCustomScript", l);
|
|
2387
2384
|
}
|
|
2388
2385
|
}
|
|
2389
2386
|
return null;
|
|
@@ -2395,8 +2392,8 @@ let t2 = class f {
|
|
|
2395
2392
|
await f.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2396
2393
|
}
|
|
2397
2394
|
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:
|
|
2395
|
+
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";
|
|
2396
|
+
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
2397
|
src: n,
|
|
2401
2398
|
id: "gestureJs",
|
|
2402
2399
|
async: !1
|
|
@@ -2443,18 +2440,18 @@ let t2 = class f {
|
|
|
2443
2440
|
name: t = null,
|
|
2444
2441
|
first: a = null,
|
|
2445
2442
|
middle: n = null,
|
|
2446
|
-
last:
|
|
2443
|
+
last: l = null,
|
|
2447
2444
|
min: r = null,
|
|
2448
|
-
max:
|
|
2445
|
+
max: s = null,
|
|
2449
2446
|
city: i = null,
|
|
2450
|
-
state:
|
|
2447
|
+
state: c = null,
|
|
2451
2448
|
vin: h = null,
|
|
2452
2449
|
license: u = null,
|
|
2453
2450
|
token: V = null,
|
|
2454
2451
|
phone: M = null
|
|
2455
|
-
} = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m =
|
|
2452
|
+
} = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m = s && s !== "" && r !== "99";
|
|
2456
2453
|
let H = [];
|
|
2457
|
-
return t && t !== "" && H.push("name=" + t), A || (a && a !== "" && H.push("first=" + a), n && n !== "" && H.push("middle=" + n),
|
|
2454
|
+
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)), M && M !== "" && H.push("phone=" + M), i && i !== "" && H.push("city=" + i), u && u !== "" && H.push("license=" + u), h && h !== "" && H.push("vin=" + h), c && c !== "" && H.push("state=" + c), V && V !== "" && H.push("token=" + V), H.join("&");
|
|
2458
2455
|
}
|
|
2459
2456
|
static padTo2Digits(e) {
|
|
2460
2457
|
return e.toString().padStart(2, "0");
|
|
@@ -2467,20 +2464,20 @@ let t2 = class f {
|
|
|
2467
2464
|
const {
|
|
2468
2465
|
addressesOnly: a = !1,
|
|
2469
2466
|
useCitySearch: n = !1,
|
|
2470
|
-
useCityStateSearch:
|
|
2467
|
+
useCityStateSearch: l = !1,
|
|
2471
2468
|
useSearch: r = !1,
|
|
2472
|
-
useLocation:
|
|
2469
|
+
useLocation: s = !0,
|
|
2473
2470
|
state: i = ""
|
|
2474
|
-
} = t ?? {}, { tolken:
|
|
2471
|
+
} = t ?? {}, { tolken: c = null, ip: h = null } = await f.getHeaders(), V = [
|
|
2475
2472
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2476
2473
|
"addressesOnly=" + a,
|
|
2477
2474
|
"useSearch=" + r,
|
|
2478
2475
|
"useCitySearch=" + n,
|
|
2479
|
-
"useCityStateSearch=" +
|
|
2480
|
-
"useLocation=" +
|
|
2476
|
+
"useCityStateSearch=" + l,
|
|
2477
|
+
"useLocation=" + s
|
|
2481
2478
|
];
|
|
2482
|
-
i && i !== "" && !
|
|
2483
|
-
const M = V.join("&"), C = (n ||
|
|
2479
|
+
i && i !== "" && !l && V.push("state=" + i), c && c !== "" && V.push("tolken=" + c), h && h !== "" && V.push("ip=" + h);
|
|
2480
|
+
const M = V.join("&"), C = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
2484
2481
|
return await f.makeSearchFetchCall(C);
|
|
2485
2482
|
}
|
|
2486
2483
|
static removeElements(e) {
|
|
@@ -2501,8 +2498,8 @@ let t2 = class f {
|
|
|
2501
2498
|
}
|
|
2502
2499
|
static searchInStates(e) {
|
|
2503
2500
|
const t = f.getStates(), a = e.toLowerCase();
|
|
2504
|
-
let n = t.find((
|
|
2505
|
-
return n || (n = t.find((
|
|
2501
|
+
let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
|
|
2502
|
+
return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
|
|
2506
2503
|
}
|
|
2507
2504
|
static sendWoopraEvent(e, t) {
|
|
2508
2505
|
typeof woopra == "object" && woopra.track(e, t);
|
|
@@ -2516,20 +2513,20 @@ let t2 = class f {
|
|
|
2516
2513
|
if (!t)
|
|
2517
2514
|
return e;
|
|
2518
2515
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2519
|
-
let [a = null, n = null] = t.split(",").map((
|
|
2516
|
+
let [a = null, n = null] = t.split(",").map((l) => l.trim());
|
|
2520
2517
|
if (f.getStates(), a && !n) {
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2518
|
+
const l = this.searchInStates(a);
|
|
2519
|
+
l && (a = null, n = l.short);
|
|
2523
2520
|
}
|
|
2524
2521
|
if (!n && a) {
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2522
|
+
const l = this.searchInStates(a);
|
|
2523
|
+
l && (n = l.short);
|
|
2527
2524
|
}
|
|
2528
2525
|
if (a && !n) {
|
|
2529
|
-
const
|
|
2526
|
+
const l = a.split(" "), r = l[l.length - 1];
|
|
2530
2527
|
if (r.length) {
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2528
|
+
const s = this.searchInStates(r);
|
|
2529
|
+
s && (n = s.short, a = l.slice(0, -1).join(" "));
|
|
2533
2530
|
}
|
|
2534
2531
|
}
|
|
2535
2532
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
@@ -2573,131 +2570,38 @@ let t2 = class f {
|
|
|
2573
2570
|
static ucWords(e) {
|
|
2574
2571
|
return e ? e.toString().split(" ").map((t) => f.ucFirst(t)).join(" ") : null;
|
|
2575
2572
|
}
|
|
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
2573
|
}
|
|
2673
2574
|
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
|
-
|
|
2575
|
+
A1 as Accordion,
|
|
2576
|
+
y1 as Alert,
|
|
2577
|
+
x1 as Autocomplete,
|
|
2578
|
+
b1 as Badge,
|
|
2579
|
+
E as Button,
|
|
2580
|
+
w1 as ButtonGroup,
|
|
2581
|
+
S1 as Card,
|
|
2582
|
+
J1 as CardSlider,
|
|
2583
|
+
z1 as Checkbox,
|
|
2584
|
+
f as Common,
|
|
2585
|
+
P1 as ContactForm,
|
|
2586
|
+
k1 as Container,
|
|
2587
|
+
Z1 as Dialog,
|
|
2588
|
+
N1 as DialogOld,
|
|
2589
|
+
E1 as Dots,
|
|
2590
|
+
R1 as FunnelHeader,
|
|
2591
|
+
x as Icon,
|
|
2592
|
+
B1 as LoadingBar,
|
|
2593
|
+
T1 as Popover,
|
|
2594
|
+
$1 as ProgressBar,
|
|
2595
|
+
I1 as Radio,
|
|
2596
|
+
O1 as Select,
|
|
2597
|
+
F1 as Skeleton,
|
|
2598
|
+
q1 as Slider,
|
|
2599
|
+
D1 as Spinner,
|
|
2600
|
+
j1 as Stars,
|
|
2601
|
+
V1 as TextArea,
|
|
2602
|
+
B as Textbox,
|
|
2603
|
+
W1 as addClass,
|
|
2604
|
+
U1 as removeClass,
|
|
2605
|
+
G1 as validateEmail,
|
|
2606
|
+
Q1 as validateForm
|
|
2703
2607
|
};
|