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