@vehiclehistory/property-lib 0.0.72 → 0.0.74
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/Dialog/Dialog.d.ts +1 -0
- package/dist/main.es.js +612 -599
- 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,6 +1,6 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as g, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { memo as b, useState as Z, useEffect as N, useRef as G } from "react";
|
|
3
|
+
import p from "classnames";
|
|
4
4
|
const Q = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -498,12 +498,12 @@ const Q = {
|
|
|
498
498
|
size: a = "medium",
|
|
499
499
|
viewBox: n = "0 0 20 20"
|
|
500
500
|
}) => {
|
|
501
|
-
const
|
|
501
|
+
const l = _(t), [r, i] = Z(c), [s, d] = Z(l);
|
|
502
502
|
return N(() => {
|
|
503
|
-
d(
|
|
504
|
-
}, [
|
|
505
|
-
|
|
506
|
-
}, [c]), !
|
|
503
|
+
d(l);
|
|
504
|
+
}, [l]), N(() => {
|
|
505
|
+
i(c);
|
|
506
|
+
}, [c]), !l && console.error("Icon does not exist", t), /* @__PURE__ */ o(
|
|
507
507
|
"svg",
|
|
508
508
|
{
|
|
509
509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -512,40 +512,40 @@ const Q = {
|
|
|
512
512
|
role: "presentation",
|
|
513
513
|
viewBox: n,
|
|
514
514
|
dangerouslySetInnerHTML: {
|
|
515
|
-
__html:
|
|
515
|
+
__html: s && s.path
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
},
|
|
519
|
+
}, y = b(Y), K = ({
|
|
520
520
|
children: c,
|
|
521
521
|
className: e,
|
|
522
522
|
clickHandler: t,
|
|
523
523
|
panelClass: a,
|
|
524
524
|
title: n,
|
|
525
|
-
unmount:
|
|
525
|
+
unmount: l = !0,
|
|
526
526
|
isOpen: r = !1
|
|
527
527
|
}) => {
|
|
528
|
-
const [
|
|
529
|
-
return /* @__PURE__ */ o("div", { className:
|
|
530
|
-
/* @__PURE__ */
|
|
528
|
+
const [i, s] = Z(r);
|
|
529
|
+
return /* @__PURE__ */ o("div", { className: p("shadow rounded-lg", e), children: /* @__PURE__ */ g(k, { children: [
|
|
530
|
+
/* @__PURE__ */ g(
|
|
531
531
|
"button",
|
|
532
532
|
{
|
|
533
533
|
type: "button",
|
|
534
534
|
"data-div-track": `report | accordion | ${n}`,
|
|
535
|
-
className:
|
|
535
|
+
className: p(
|
|
536
536
|
"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",
|
|
537
537
|
{
|
|
538
|
-
"acc-o":
|
|
538
|
+
"acc-o": i
|
|
539
539
|
}
|
|
540
540
|
),
|
|
541
541
|
title: n,
|
|
542
542
|
onClick: () => {
|
|
543
|
-
|
|
543
|
+
s(!i), t && t(!i);
|
|
544
544
|
},
|
|
545
545
|
children: [
|
|
546
546
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
547
547
|
/* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
548
|
-
|
|
548
|
+
y,
|
|
549
549
|
{
|
|
550
550
|
name: "chevronDown",
|
|
551
551
|
size: "small",
|
|
@@ -555,39 +555,39 @@ const Q = {
|
|
|
555
555
|
]
|
|
556
556
|
}
|
|
557
557
|
),
|
|
558
|
-
|
|
558
|
+
l && i && /* @__PURE__ */ o(
|
|
559
559
|
"div",
|
|
560
560
|
{
|
|
561
|
-
className:
|
|
561
|
+
className: p(
|
|
562
562
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
563
563
|
a
|
|
564
564
|
),
|
|
565
565
|
children: c
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
|
-
!
|
|
568
|
+
!l && /* @__PURE__ */ o(
|
|
569
569
|
"div",
|
|
570
570
|
{
|
|
571
|
-
className:
|
|
571
|
+
className: p(
|
|
572
572
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
573
573
|
a,
|
|
574
|
-
{ hidden: !
|
|
574
|
+
{ hidden: !i }
|
|
575
575
|
),
|
|
576
576
|
children: c
|
|
577
577
|
}
|
|
578
578
|
)
|
|
579
579
|
] }) });
|
|
580
|
-
}, Q1 =
|
|
580
|
+
}, Q1 = b(K), X = ({
|
|
581
581
|
children: c,
|
|
582
582
|
className: e = "",
|
|
583
583
|
messages: t = [],
|
|
584
584
|
messagesClass: a,
|
|
585
585
|
title: n = "",
|
|
586
|
-
titleClass:
|
|
586
|
+
titleClass: l = "",
|
|
587
587
|
props: r = {},
|
|
588
|
-
type:
|
|
588
|
+
type: i = "error"
|
|
589
589
|
}) => {
|
|
590
|
-
const
|
|
590
|
+
const s = {
|
|
591
591
|
error: {
|
|
592
592
|
icon: "error",
|
|
593
593
|
iconColor: "text-red-500",
|
|
@@ -608,20 +608,20 @@ const Q = {
|
|
|
608
608
|
iconColor: "text-yellow-500",
|
|
609
609
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
610
610
|
}
|
|
611
|
-
}, { icon: d, iconColor: h, styles:
|
|
611
|
+
}, { icon: d, iconColor: h, styles: m } = s[i];
|
|
612
612
|
return /* @__PURE__ */ o(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
615
|
-
id:
|
|
616
|
-
className:
|
|
615
|
+
id: i,
|
|
616
|
+
className: p(
|
|
617
617
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
618
|
-
|
|
618
|
+
m,
|
|
619
619
|
e
|
|
620
620
|
),
|
|
621
621
|
...r,
|
|
622
|
-
children: /* @__PURE__ */
|
|
622
|
+
children: /* @__PURE__ */ g("div", { className: "flex", children: [
|
|
623
623
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
624
|
-
|
|
624
|
+
y,
|
|
625
625
|
{
|
|
626
626
|
name: d,
|
|
627
627
|
viewBox: "0 0 24 24",
|
|
@@ -629,17 +629,17 @@ const Q = {
|
|
|
629
629
|
size: "xSmall"
|
|
630
630
|
}
|
|
631
631
|
) }),
|
|
632
|
-
/* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */ o("div", { className:
|
|
632
|
+
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
633
|
+
/* @__PURE__ */ o("div", { className: p("font-medium text-sm", l), children: n }),
|
|
634
634
|
t.length > 0 ? /* @__PURE__ */ o(
|
|
635
635
|
"ul",
|
|
636
636
|
{
|
|
637
637
|
role: "list",
|
|
638
|
-
className:
|
|
638
|
+
className: p(
|
|
639
639
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
640
640
|
a
|
|
641
641
|
),
|
|
642
|
-
children: t.map((
|
|
642
|
+
children: t.map((V, C) => /* @__PURE__ */ o("li", { children: V }, C))
|
|
643
643
|
}
|
|
644
644
|
) : "",
|
|
645
645
|
c
|
|
@@ -647,56 +647,56 @@ const Q = {
|
|
|
647
647
|
] })
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
|
-
}, J1 =
|
|
650
|
+
}, J1 = b(X), e1 = ({
|
|
651
651
|
autoFocus: c = !1,
|
|
652
652
|
className: e = "",
|
|
653
653
|
dataSearch: t = "container",
|
|
654
654
|
defaultValue: a = "",
|
|
655
655
|
floatingLabel: n = "",
|
|
656
|
-
id:
|
|
656
|
+
id: l = "",
|
|
657
657
|
inputClass: r = "",
|
|
658
|
-
leftIcon:
|
|
659
|
-
mobileBackdrop:
|
|
658
|
+
leftIcon: i = "homeSearch",
|
|
659
|
+
mobileBackdrop: s = !1,
|
|
660
660
|
name: d = "",
|
|
661
661
|
options: h = [],
|
|
662
|
-
placeholder:
|
|
663
|
-
props:
|
|
664
|
-
required:
|
|
665
|
-
showSearchIcon:
|
|
662
|
+
placeholder: m = "",
|
|
663
|
+
props: V = {},
|
|
664
|
+
required: C = !1,
|
|
665
|
+
showSearchIcon: M = !0,
|
|
666
666
|
size: f = "medium",
|
|
667
|
-
styles:
|
|
668
|
-
title:
|
|
669
|
-
type:
|
|
670
|
-
}) => /* @__PURE__ */
|
|
667
|
+
styles: A = null,
|
|
668
|
+
title: u = "",
|
|
669
|
+
type: x
|
|
670
|
+
}) => /* @__PURE__ */ g(
|
|
671
671
|
"div",
|
|
672
672
|
{
|
|
673
|
-
id:
|
|
673
|
+
id: l,
|
|
674
674
|
"data-search": t,
|
|
675
|
-
"data-search-type":
|
|
676
|
-
className:
|
|
677
|
-
style:
|
|
675
|
+
"data-search-type": x,
|
|
676
|
+
className: p("Autocomplete", e),
|
|
677
|
+
style: A ? { ...A } : null,
|
|
678
678
|
children: [
|
|
679
|
-
|
|
679
|
+
M && /* @__PURE__ */ g(
|
|
680
680
|
"span",
|
|
681
681
|
{
|
|
682
|
-
className:
|
|
682
|
+
className: p(
|
|
683
683
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
684
684
|
{
|
|
685
|
-
"pointer-events-none":
|
|
685
|
+
"pointer-events-none": s
|
|
686
686
|
}
|
|
687
687
|
),
|
|
688
688
|
children: [
|
|
689
689
|
/* @__PURE__ */ o(
|
|
690
|
-
|
|
690
|
+
y,
|
|
691
691
|
{
|
|
692
692
|
className: "home-search select-none text-gray-500",
|
|
693
|
-
name:
|
|
693
|
+
name: i,
|
|
694
694
|
size: f === "xLarge" ? "small" : "xSmall",
|
|
695
695
|
viewBox: "0 0 24 24"
|
|
696
696
|
}
|
|
697
697
|
),
|
|
698
698
|
/* @__PURE__ */ o(
|
|
699
|
-
|
|
699
|
+
y,
|
|
700
700
|
{
|
|
701
701
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
702
702
|
name: "arrowLeft",
|
|
@@ -712,10 +712,10 @@ const Q = {
|
|
|
712
712
|
{
|
|
713
713
|
"data-lpignore": "true",
|
|
714
714
|
autoFocus: c,
|
|
715
|
-
className:
|
|
715
|
+
className: p(
|
|
716
716
|
"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",
|
|
717
717
|
{
|
|
718
|
-
"pl-8":
|
|
718
|
+
"pl-8": M === !0,
|
|
719
719
|
"px-3 h-10": f === "medium",
|
|
720
720
|
"px-4 h-12": f === "large",
|
|
721
721
|
"px-5 h-[60px] sm:!text-base": f === "xLarge",
|
|
@@ -723,23 +723,23 @@ const Q = {
|
|
|
723
723
|
},
|
|
724
724
|
r
|
|
725
725
|
),
|
|
726
|
-
required:
|
|
726
|
+
required: C,
|
|
727
727
|
autoComplete: "off",
|
|
728
728
|
value: a,
|
|
729
|
-
placeholder: !
|
|
729
|
+
placeholder: !m && n ? " " : m,
|
|
730
730
|
type: "search",
|
|
731
731
|
name: d || "search-input",
|
|
732
732
|
"data-id": "search-input",
|
|
733
|
-
...
|
|
733
|
+
...V
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
736
|
n && /* @__PURE__ */ o(
|
|
737
737
|
"label",
|
|
738
738
|
{
|
|
739
|
-
className:
|
|
739
|
+
className: p(
|
|
740
740
|
"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",
|
|
741
741
|
{
|
|
742
|
-
"!left-7":
|
|
742
|
+
"!left-7": M === !0,
|
|
743
743
|
"left-2": f === "medium",
|
|
744
744
|
"left-3": f === "large",
|
|
745
745
|
"left-4": f === "xLarge"
|
|
@@ -754,7 +754,7 @@ const Q = {
|
|
|
754
754
|
"data-id": "search-clear",
|
|
755
755
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
756
756
|
children: /* @__PURE__ */ o(
|
|
757
|
-
|
|
757
|
+
y,
|
|
758
758
|
{
|
|
759
759
|
className: "cursor-pointer text-gray-500",
|
|
760
760
|
name: "xCircle",
|
|
@@ -770,7 +770,7 @@ const Q = {
|
|
|
770
770
|
"data-id": "search-loading",
|
|
771
771
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
772
772
|
children: /* @__PURE__ */ o(
|
|
773
|
-
|
|
773
|
+
y,
|
|
774
774
|
{
|
|
775
775
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
776
776
|
name: "spinnerDark",
|
|
@@ -780,7 +780,7 @@ const Q = {
|
|
|
780
780
|
)
|
|
781
781
|
}
|
|
782
782
|
),
|
|
783
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ g(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
786
|
"data-id": "search-dropdown",
|
|
@@ -792,20 +792,20 @@ const Q = {
|
|
|
792
792
|
{
|
|
793
793
|
"data-id": "search-dropdown-body",
|
|
794
794
|
role: "listbox",
|
|
795
|
-
"data-title":
|
|
795
|
+
"data-title": u,
|
|
796
796
|
"aria-labelledby": "Label",
|
|
797
797
|
"aria-activedescendant": "search-item-0",
|
|
798
|
-
children: h.length > 0 ? h.map((
|
|
798
|
+
children: h.length > 0 ? h.map((S, v) => /* @__PURE__ */ o(
|
|
799
799
|
"li",
|
|
800
800
|
{
|
|
801
|
-
id: `search-item-${
|
|
801
|
+
id: `search-item-${v}`,
|
|
802
802
|
tabIndex: -1,
|
|
803
803
|
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",
|
|
804
|
-
"aria-selected":
|
|
804
|
+
"aria-selected": v === 0,
|
|
805
805
|
role: "option",
|
|
806
|
-
children: (
|
|
806
|
+
children: (S == null ? void 0 : S.name) || S
|
|
807
807
|
},
|
|
808
|
-
`search-item-${
|
|
808
|
+
`search-item-${v}`
|
|
809
809
|
)) : ""
|
|
810
810
|
}
|
|
811
811
|
)
|
|
@@ -822,7 +822,7 @@ const Q = {
|
|
|
822
822
|
}) => /* @__PURE__ */ o(
|
|
823
823
|
a || "span",
|
|
824
824
|
{
|
|
825
|
-
className:
|
|
825
|
+
className: p(
|
|
826
826
|
" bg-gray-200 font-semibold py-1 px-2 rounded",
|
|
827
827
|
{
|
|
828
828
|
"text-sm": t === "sm",
|
|
@@ -839,54 +839,54 @@ const Q = {
|
|
|
839
839
|
leftIconProps: t = {},
|
|
840
840
|
children: a,
|
|
841
841
|
className: n = "",
|
|
842
|
-
disabled:
|
|
842
|
+
disabled: l = !1,
|
|
843
843
|
href: r,
|
|
844
|
-
props:
|
|
845
|
-
rightIcon:
|
|
844
|
+
props: i = {},
|
|
845
|
+
rightIcon: s,
|
|
846
846
|
rightIconProps: d = {},
|
|
847
847
|
rounded: h = !1,
|
|
848
|
-
size:
|
|
849
|
-
type:
|
|
850
|
-
uppercase:
|
|
851
|
-
variation:
|
|
848
|
+
size: m = "md",
|
|
849
|
+
type: V = "button",
|
|
850
|
+
uppercase: C = !1,
|
|
851
|
+
variation: M = "primary"
|
|
852
852
|
}) => {
|
|
853
853
|
const f = r ? "a" : "button";
|
|
854
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ g(
|
|
855
855
|
f,
|
|
856
856
|
{
|
|
857
|
-
type: f !== "a" ?
|
|
858
|
-
className:
|
|
857
|
+
type: f !== "a" ? V : null,
|
|
858
|
+
className: p(
|
|
859
859
|
"button",
|
|
860
860
|
{
|
|
861
|
-
[`button--${
|
|
862
|
-
[`button--${
|
|
861
|
+
[`button--${M}`]: M,
|
|
862
|
+
[`button--${m}`]: m,
|
|
863
863
|
"button--rounded": h,
|
|
864
|
-
"button--disabled":
|
|
864
|
+
"button--disabled": l,
|
|
865
865
|
"button--custom-link": r,
|
|
866
|
-
"button--uppercase":
|
|
867
|
-
"button--borderless": c ||
|
|
866
|
+
"button--uppercase": C,
|
|
867
|
+
"button--borderless": c || M === "link"
|
|
868
868
|
},
|
|
869
869
|
n
|
|
870
870
|
),
|
|
871
|
-
disabled:
|
|
871
|
+
disabled: l,
|
|
872
872
|
href: r,
|
|
873
|
-
...
|
|
873
|
+
...i,
|
|
874
874
|
children: [
|
|
875
875
|
e && /* @__PURE__ */ o(
|
|
876
|
-
|
|
876
|
+
y,
|
|
877
877
|
{
|
|
878
878
|
name: e,
|
|
879
|
-
size:
|
|
879
|
+
size: m === "md" ? "small" : "xSmall",
|
|
880
880
|
viewBox: "0 0 24 24",
|
|
881
881
|
...t
|
|
882
882
|
}
|
|
883
883
|
),
|
|
884
884
|
a,
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
s && /* @__PURE__ */ o(
|
|
886
|
+
y,
|
|
887
887
|
{
|
|
888
|
-
name:
|
|
889
|
-
size:
|
|
888
|
+
name: s,
|
|
889
|
+
size: m === "md" ? "small" : "xSmall",
|
|
890
890
|
viewBox: "0 0 24 24",
|
|
891
891
|
...d
|
|
892
892
|
}
|
|
@@ -894,30 +894,30 @@ const Q = {
|
|
|
894
894
|
]
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
|
-
},
|
|
897
|
+
}, F = b(a1), n1 = ({ children: c, 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: c }), K1 = n1, s1 = ({
|
|
898
898
|
block: c = !1,
|
|
899
899
|
borderless: e = !1,
|
|
900
900
|
children: t,
|
|
901
901
|
className: a = "",
|
|
902
902
|
divider: n = !0,
|
|
903
|
-
inset:
|
|
903
|
+
inset: l = !0,
|
|
904
904
|
id: r = null,
|
|
905
|
-
role:
|
|
905
|
+
role: i = null
|
|
906
906
|
}) => /* @__PURE__ */ o(
|
|
907
907
|
"div",
|
|
908
908
|
{
|
|
909
|
-
className:
|
|
909
|
+
className: p(
|
|
910
910
|
"bg-white",
|
|
911
911
|
{
|
|
912
912
|
f1: !e,
|
|
913
913
|
f2: c,
|
|
914
914
|
f3: n,
|
|
915
|
-
f4:
|
|
915
|
+
f4: l
|
|
916
916
|
},
|
|
917
917
|
a
|
|
918
918
|
),
|
|
919
919
|
id: r,
|
|
920
|
-
role:
|
|
920
|
+
role: i,
|
|
921
921
|
children: t
|
|
922
922
|
}
|
|
923
923
|
), X1 = s1, l1 = ({
|
|
@@ -926,47 +926,47 @@ const Q = {
|
|
|
926
926
|
className: t = "",
|
|
927
927
|
error: a = !1,
|
|
928
928
|
inputClass: n,
|
|
929
|
-
id:
|
|
929
|
+
id: l = "",
|
|
930
930
|
label: r = "",
|
|
931
|
-
name:
|
|
932
|
-
props:
|
|
931
|
+
name: i = "",
|
|
932
|
+
props: s = {},
|
|
933
933
|
variation: d = "primary",
|
|
934
934
|
value: h = ""
|
|
935
935
|
}) => {
|
|
936
|
-
const
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
|
|
936
|
+
const m = r ? "div" : "label", V = m === "label" ? { htmlFor: l } : {};
|
|
937
|
+
return /* @__PURE__ */ g(
|
|
938
|
+
m,
|
|
939
939
|
{
|
|
940
|
-
className:
|
|
941
|
-
...
|
|
940
|
+
className: p("checkbox flex items-center", d, t),
|
|
941
|
+
...V,
|
|
942
942
|
children: [
|
|
943
943
|
/* @__PURE__ */ o(
|
|
944
944
|
"input",
|
|
945
945
|
{
|
|
946
946
|
checked: c,
|
|
947
|
-
className:
|
|
947
|
+
className: p(
|
|
948
948
|
"form-checkbox ",
|
|
949
949
|
{
|
|
950
950
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
951
951
|
},
|
|
952
952
|
n
|
|
953
953
|
),
|
|
954
|
-
id:
|
|
955
|
-
name:
|
|
954
|
+
id: l,
|
|
955
|
+
name: i,
|
|
956
956
|
type: "checkbox",
|
|
957
957
|
value: h,
|
|
958
|
-
...
|
|
958
|
+
...s
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
961
|
e
|
|
962
962
|
]
|
|
963
963
|
}
|
|
964
964
|
);
|
|
965
|
-
}, e2 =
|
|
965
|
+
}, e2 = b(l1), r1 = ({ children: c, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
966
966
|
/* @__PURE__ */ o(
|
|
967
967
|
"main",
|
|
968
968
|
{
|
|
969
|
-
className:
|
|
969
|
+
className: p(
|
|
970
970
|
"w-full md:mb-0 flex-1 md:block lg:max-w-container",
|
|
971
971
|
{
|
|
972
972
|
"lg:order-2": t === "left"
|
|
@@ -978,7 +978,7 @@ const Q = {
|
|
|
978
978
|
/* @__PURE__ */ o(
|
|
979
979
|
"aside",
|
|
980
980
|
{
|
|
981
|
-
className:
|
|
981
|
+
className: p(
|
|
982
982
|
"sm-max:hidden md:hidden lg:block flex-1 max-w-aside mb-6 md:mb-0 empty:!hidden",
|
|
983
983
|
{
|
|
984
984
|
"md:ml-8": t === "right",
|
|
@@ -988,146 +988,157 @@ const Q = {
|
|
|
988
988
|
children: e
|
|
989
989
|
}
|
|
990
990
|
)
|
|
991
|
-
] }), t2 =
|
|
991
|
+
] }), t2 = b(r1), i1 = ({
|
|
992
992
|
activator: c,
|
|
993
993
|
id: e = "",
|
|
994
994
|
children: t,
|
|
995
995
|
className: a = "",
|
|
996
996
|
contentClass: n = "",
|
|
997
|
-
dark:
|
|
997
|
+
dark: l = !1,
|
|
998
998
|
footer: r,
|
|
999
|
-
fullMobile:
|
|
1000
|
-
headerClass:
|
|
999
|
+
fullMobile: i = !0,
|
|
1000
|
+
headerClass: s = "",
|
|
1001
1001
|
hideClose: d = !1,
|
|
1002
1002
|
iconSize: h = "medium",
|
|
1003
|
-
preventPageScroll:
|
|
1004
|
-
stickyHeader:
|
|
1005
|
-
title:
|
|
1006
|
-
titleClass:
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
{
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
"
|
|
1016
|
-
{
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
"prevent-scroll": p
|
|
1020
|
-
},
|
|
1021
|
-
a
|
|
1022
|
-
),
|
|
1023
|
-
children: /* @__PURE__ */ M("form", { method: "dialog", children: [
|
|
1024
|
-
/* @__PURE__ */ M(
|
|
1025
|
-
"header",
|
|
1003
|
+
preventPageScroll: m = !0,
|
|
1004
|
+
stickyHeader: V = !1,
|
|
1005
|
+
title: C = "",
|
|
1006
|
+
titleClass: M = "",
|
|
1007
|
+
useFormMethod: f = !0
|
|
1008
|
+
}) => {
|
|
1009
|
+
const A = f ? "form" : "div";
|
|
1010
|
+
return /* @__PURE__ */ g(k, { children: [
|
|
1011
|
+
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: c }),
|
|
1012
|
+
/* @__PURE__ */ o(
|
|
1013
|
+
"dialog",
|
|
1014
|
+
{
|
|
1015
|
+
inert: "",
|
|
1016
|
+
id: `${e}-dialog`,
|
|
1017
|
+
className: p(
|
|
1018
|
+
"dialog",
|
|
1026
1019
|
{
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1020
|
+
"dialog-full-mobile": i,
|
|
1021
|
+
dark: l,
|
|
1022
|
+
"prevent-scroll": m
|
|
1023
|
+
},
|
|
1024
|
+
a
|
|
1025
|
+
),
|
|
1026
|
+
children: /* @__PURE__ */ g(
|
|
1027
|
+
A,
|
|
1028
|
+
{
|
|
1029
|
+
className: "dialog-container",
|
|
1030
|
+
method: f ? "dialog" : null,
|
|
1036
1031
|
children: [
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
"button",
|
|
1032
|
+
/* @__PURE__ */ g(
|
|
1033
|
+
"header",
|
|
1040
1034
|
{
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
className: "dialog-close",
|
|
1044
|
-
"data-dialog-close": "",
|
|
1045
|
-
value: "close",
|
|
1046
|
-
children: /* @__PURE__ */ o(
|
|
1047
|
-
A,
|
|
1035
|
+
className: p(
|
|
1036
|
+
"dialog-header",
|
|
1048
1037
|
{
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1038
|
+
"sticky top-0 bg-white z-10": V,
|
|
1039
|
+
"!pb-0 border-0 justify-end": !C,
|
|
1040
|
+
"justify-between border-b": C
|
|
1041
|
+
},
|
|
1042
|
+
s
|
|
1043
|
+
),
|
|
1044
|
+
children: [
|
|
1045
|
+
C && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: M, children: C }),
|
|
1046
|
+
!d && /* @__PURE__ */ o(
|
|
1047
|
+
"button",
|
|
1048
|
+
{
|
|
1049
|
+
type: "button",
|
|
1050
|
+
title: "Close",
|
|
1051
|
+
className: "dialog-close",
|
|
1052
|
+
"data-dialog-close": "",
|
|
1053
|
+
value: "close",
|
|
1054
|
+
children: /* @__PURE__ */ o(
|
|
1055
|
+
y,
|
|
1056
|
+
{
|
|
1057
|
+
name: "close",
|
|
1058
|
+
size: h,
|
|
1059
|
+
className: "pointer-events-none"
|
|
1060
|
+
}
|
|
1061
|
+
)
|
|
1062
|
+
}
|
|
1063
|
+
)
|
|
1064
|
+
]
|
|
1054
1065
|
}
|
|
1055
|
-
)
|
|
1066
|
+
),
|
|
1067
|
+
/* @__PURE__ */ o(
|
|
1068
|
+
"div",
|
|
1069
|
+
{
|
|
1070
|
+
id: `${e}-dialog-content`,
|
|
1071
|
+
className: p("dialog-content", n),
|
|
1072
|
+
children: t
|
|
1073
|
+
}
|
|
1074
|
+
),
|
|
1075
|
+
r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1056
1076
|
]
|
|
1057
1077
|
}
|
|
1058
|
-
)
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
className: u("dialog-content", n),
|
|
1064
|
-
children: t
|
|
1065
|
-
}
|
|
1066
|
-
),
|
|
1067
|
-
r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1068
|
-
] })
|
|
1069
|
-
}
|
|
1070
|
-
)
|
|
1071
|
-
] }), a2 = x(i1), o1 = ({
|
|
1078
|
+
)
|
|
1079
|
+
}
|
|
1080
|
+
)
|
|
1081
|
+
] });
|
|
1082
|
+
}, a2 = b(i1), o1 = ({
|
|
1072
1083
|
activator: c,
|
|
1073
1084
|
id: e = "",
|
|
1074
1085
|
children: t,
|
|
1075
1086
|
className: a = "",
|
|
1076
1087
|
contentClass: n = "",
|
|
1077
|
-
onClose:
|
|
1088
|
+
onClose: l,
|
|
1078
1089
|
disableOutsideClick: r = !1,
|
|
1079
|
-
footer:
|
|
1080
|
-
fullMobile:
|
|
1090
|
+
footer: i,
|
|
1091
|
+
fullMobile: s = !0,
|
|
1081
1092
|
headerClass: d = "",
|
|
1082
1093
|
hideClose: h = !1,
|
|
1083
|
-
iconSize:
|
|
1084
|
-
isOpen:
|
|
1085
|
-
setDialogOpen:
|
|
1086
|
-
stickyHeader:
|
|
1094
|
+
iconSize: m = "medium",
|
|
1095
|
+
isOpen: V = !1,
|
|
1096
|
+
setDialogOpen: C,
|
|
1097
|
+
stickyHeader: M = !1,
|
|
1087
1098
|
title: f = "",
|
|
1088
|
-
titleClass:
|
|
1099
|
+
titleClass: A = ""
|
|
1089
1100
|
}) => {
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1094
|
-
},
|
|
1095
|
-
const { left: P, right: R, top: W, bottom: U } =
|
|
1096
|
-
(!
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1101
|
+
const u = G(null), x = async () => {
|
|
1102
|
+
u.current.classList.add("closing"), await E(u.current), u.current.classList.remove("closing"), l && l(), C(!1);
|
|
1103
|
+
}, S = async (w) => {
|
|
1104
|
+
w.key === "Escape" && await x();
|
|
1105
|
+
}, v = async ({ clientX: w, clientY: z, target: j }) => {
|
|
1106
|
+
const { left: P, right: R, top: W, bottom: U } = u.current.getBoundingClientRect() ?? {};
|
|
1107
|
+
(!u.current.contains(j) || w < P || w > R || z < W || z > U) && await x();
|
|
1108
|
+
}, E = (w) => Promise.allSettled(
|
|
1109
|
+
w.getAnimations().map((z) => z.finished)
|
|
1099
1110
|
);
|
|
1100
1111
|
return N(() => {
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
}, [
|
|
1104
|
-
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () =>
|
|
1105
|
-
/* @__PURE__ */
|
|
1112
|
+
const w = u.current;
|
|
1113
|
+
w && (V ? w.showModal() : typeof w.close == "function" && w.close());
|
|
1114
|
+
}, [V]), /* @__PURE__ */ g(k, { children: [
|
|
1115
|
+
c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => C(!0), children: c }),
|
|
1116
|
+
/* @__PURE__ */ g(
|
|
1106
1117
|
"dialog",
|
|
1107
1118
|
{
|
|
1108
|
-
ref:
|
|
1119
|
+
ref: u,
|
|
1109
1120
|
id: `${e}-dialog`,
|
|
1110
|
-
className:
|
|
1121
|
+
className: p(
|
|
1111
1122
|
"dialog",
|
|
1112
1123
|
{
|
|
1113
|
-
hidden: !
|
|
1114
|
-
"xs-max:h-full xs-max:max-h-full":
|
|
1124
|
+
hidden: !V,
|
|
1125
|
+
"xs-max:h-full xs-max:max-h-full": s
|
|
1115
1126
|
},
|
|
1116
1127
|
a
|
|
1117
1128
|
),
|
|
1118
|
-
onKeyDown:
|
|
1119
|
-
onClick: (
|
|
1129
|
+
onKeyDown: S,
|
|
1130
|
+
onClick: (w) => r ? null : v(w),
|
|
1120
1131
|
children: [
|
|
1121
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ g(
|
|
1122
1133
|
"header",
|
|
1123
1134
|
{
|
|
1124
|
-
className:
|
|
1135
|
+
className: p(
|
|
1125
1136
|
"dialog-header flex items-center p-4",
|
|
1126
|
-
{ "sticky top-0 bg-white":
|
|
1137
|
+
{ "sticky top-0 bg-white": M },
|
|
1127
1138
|
d
|
|
1128
1139
|
),
|
|
1129
1140
|
children: [
|
|
1130
|
-
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className:
|
|
1141
|
+
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: f || "" }),
|
|
1131
1142
|
!h && /* @__PURE__ */ o(
|
|
1132
1143
|
"button",
|
|
1133
1144
|
{
|
|
@@ -1135,12 +1146,12 @@ const Q = {
|
|
|
1135
1146
|
title: "Close",
|
|
1136
1147
|
className: "dialog-close",
|
|
1137
1148
|
"data-dialog-close": "",
|
|
1138
|
-
onClick:
|
|
1149
|
+
onClick: x,
|
|
1139
1150
|
children: /* @__PURE__ */ o(
|
|
1140
|
-
|
|
1151
|
+
y,
|
|
1141
1152
|
{
|
|
1142
1153
|
name: "close",
|
|
1143
|
-
size:
|
|
1154
|
+
size: m,
|
|
1144
1155
|
className: "pointer-events-none"
|
|
1145
1156
|
}
|
|
1146
1157
|
)
|
|
@@ -1153,23 +1164,23 @@ const Q = {
|
|
|
1153
1164
|
"div",
|
|
1154
1165
|
{
|
|
1155
1166
|
id: `${e}-dialog-content`,
|
|
1156
|
-
className:
|
|
1167
|
+
className: p("dialog-content p-4", n),
|
|
1157
1168
|
children: t
|
|
1158
1169
|
}
|
|
1159
1170
|
),
|
|
1160
|
-
|
|
1171
|
+
i && /* @__PURE__ */ o(
|
|
1161
1172
|
"footer",
|
|
1162
1173
|
{
|
|
1163
1174
|
id: `${e}-dialog-footer`,
|
|
1164
1175
|
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1165
|
-
children:
|
|
1176
|
+
children: i
|
|
1166
1177
|
}
|
|
1167
1178
|
)
|
|
1168
1179
|
]
|
|
1169
1180
|
}
|
|
1170
1181
|
)
|
|
1171
1182
|
] });
|
|
1172
|
-
}, n2 =
|
|
1183
|
+
}, n2 = b(o1), c1 = ({ className: c = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: p("mx-auto", c), children: [
|
|
1173
1184
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
|
|
1174
1185
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
|
|
1175
1186
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1184,31 +1195,31 @@ const Q = {
|
|
|
1184
1195
|
className: t = "",
|
|
1185
1196
|
size: a = "md",
|
|
1186
1197
|
timeout: n = 1e4,
|
|
1187
|
-
variation:
|
|
1198
|
+
variation: l = "primary"
|
|
1188
1199
|
}) => {
|
|
1189
|
-
function r({ cb:
|
|
1190
|
-
const
|
|
1191
|
-
if (!
|
|
1192
|
-
let d, h,
|
|
1193
|
-
function C
|
|
1194
|
-
d === void 0 && (d =
|
|
1195
|
-
const
|
|
1196
|
-
if (h !==
|
|
1197
|
-
const f =
|
|
1198
|
-
|
|
1200
|
+
function r({ cb: i }) {
|
|
1201
|
+
const s = document.querySelector(".loading-bar__inner");
|
|
1202
|
+
if (!s) return;
|
|
1203
|
+
let d, h, m = !1;
|
|
1204
|
+
function V(C) {
|
|
1205
|
+
d === void 0 && (d = C);
|
|
1206
|
+
const M = C - d;
|
|
1207
|
+
if (h !== C) {
|
|
1208
|
+
const f = M / n * 101;
|
|
1209
|
+
s.style.width = `${f}%`, e && e({ elapsed: M, percentage: f }), f >= 101 && (i && i(), m = !0, window.cancelAnimationFrame(C));
|
|
1199
1210
|
}
|
|
1200
|
-
|
|
1211
|
+
M < n && (h = C, m || window.requestAnimationFrame(V));
|
|
1201
1212
|
}
|
|
1202
|
-
window.requestAnimationFrame(
|
|
1213
|
+
window.requestAnimationFrame(V);
|
|
1203
1214
|
}
|
|
1204
1215
|
return N(() => {
|
|
1205
1216
|
r({ cb: c });
|
|
1206
1217
|
}, []), /* @__PURE__ */ o(
|
|
1207
1218
|
"div",
|
|
1208
1219
|
{
|
|
1209
|
-
className:
|
|
1220
|
+
className: p(
|
|
1210
1221
|
"loading-bar my-8",
|
|
1211
|
-
`loading-bar__${
|
|
1222
|
+
`loading-bar__${l}`,
|
|
1212
1223
|
{
|
|
1213
1224
|
"h-4": a === "md",
|
|
1214
1225
|
"h-6": a === "lg",
|
|
@@ -1220,26 +1231,26 @@ const Q = {
|
|
|
1220
1231
|
children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1221
1232
|
}
|
|
1222
1233
|
);
|
|
1223
|
-
}, l2 =
|
|
1234
|
+
}, l2 = b(d1), h1 = ({ className: c }) => /* @__PURE__ */ o("div", { className: p("processing-spinner", c) }), r2 = b(h1), u1 = ({
|
|
1224
1235
|
activator: c,
|
|
1225
1236
|
activatorClass: e = "",
|
|
1226
1237
|
attrs: t = {},
|
|
1227
1238
|
options: a = {},
|
|
1228
1239
|
children: n,
|
|
1229
|
-
className:
|
|
1240
|
+
className: l = "",
|
|
1230
1241
|
containerClass: r = "",
|
|
1231
|
-
disabled:
|
|
1232
|
-
id:
|
|
1242
|
+
disabled: i = !1,
|
|
1243
|
+
id: s = "",
|
|
1233
1244
|
trigger: d = "click"
|
|
1234
|
-
}) => /* @__PURE__ */
|
|
1245
|
+
}) => /* @__PURE__ */ g(k, { children: [
|
|
1235
1246
|
/* @__PURE__ */ o(
|
|
1236
1247
|
"div",
|
|
1237
1248
|
{
|
|
1238
|
-
className:
|
|
1239
|
-
children: /* @__PURE__ */
|
|
1249
|
+
className: p("popover z-10 max-w-[350px] hidden", l),
|
|
1250
|
+
children: /* @__PURE__ */ g(
|
|
1240
1251
|
"div",
|
|
1241
1252
|
{
|
|
1242
|
-
className:
|
|
1253
|
+
className: p(
|
|
1243
1254
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1244
1255
|
r
|
|
1245
1256
|
),
|
|
@@ -1260,10 +1271,10 @@ const Q = {
|
|
|
1260
1271
|
/* @__PURE__ */ o(
|
|
1261
1272
|
"div",
|
|
1262
1273
|
{
|
|
1263
|
-
className:
|
|
1274
|
+
className: p(
|
|
1264
1275
|
"popover-activator",
|
|
1265
1276
|
`trigger-${d}`,
|
|
1266
|
-
|
|
1277
|
+
i ? "is-disabled" : "",
|
|
1267
1278
|
e
|
|
1268
1279
|
),
|
|
1269
1280
|
...t,
|
|
@@ -1277,21 +1288,21 @@ const Q = {
|
|
|
1277
1288
|
bgColor: t = "bg-orange-500",
|
|
1278
1289
|
className: a,
|
|
1279
1290
|
completed: n = 0,
|
|
1280
|
-
maxCompleted:
|
|
1291
|
+
maxCompleted: l = 100,
|
|
1281
1292
|
rounded: r = !0,
|
|
1282
|
-
showLabel:
|
|
1293
|
+
showLabel: i = !1
|
|
1283
1294
|
}) => {
|
|
1284
|
-
const d = ((h,
|
|
1295
|
+
const d = ((h, m) => {
|
|
1285
1296
|
if (h) {
|
|
1286
|
-
const
|
|
1287
|
-
return
|
|
1297
|
+
const V = Number(m) / h;
|
|
1298
|
+
return V > 1 ? 100 : V * 100;
|
|
1288
1299
|
}
|
|
1289
1300
|
return n;
|
|
1290
|
-
})(
|
|
1301
|
+
})(l, n);
|
|
1291
1302
|
return /* @__PURE__ */ o(
|
|
1292
1303
|
"div",
|
|
1293
1304
|
{
|
|
1294
|
-
className:
|
|
1305
|
+
className: p(
|
|
1295
1306
|
"w-full bg-gray-200",
|
|
1296
1307
|
{ "rounded-full": r },
|
|
1297
1308
|
a
|
|
@@ -1304,48 +1315,48 @@ const Q = {
|
|
|
1304
1315
|
children: /* @__PURE__ */ o(
|
|
1305
1316
|
"div",
|
|
1306
1317
|
{
|
|
1307
|
-
className:
|
|
1318
|
+
className: p(
|
|
1308
1319
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1309
1320
|
t
|
|
1310
1321
|
),
|
|
1311
1322
|
style: { width: `${d}%` },
|
|
1312
|
-
children:
|
|
1323
|
+
children: i && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(d) })
|
|
1313
1324
|
}
|
|
1314
1325
|
)
|
|
1315
1326
|
}
|
|
1316
1327
|
);
|
|
1317
|
-
}, o2 =
|
|
1328
|
+
}, o2 = b(p1), m1 = ({
|
|
1318
1329
|
checked: c = !1,
|
|
1319
1330
|
children: e,
|
|
1320
1331
|
className: t = "",
|
|
1321
1332
|
id: a = "",
|
|
1322
1333
|
label: n = "",
|
|
1323
|
-
name:
|
|
1334
|
+
name: l = "",
|
|
1324
1335
|
props: r = {},
|
|
1325
|
-
variation:
|
|
1326
|
-
value:
|
|
1336
|
+
variation: i = "primary",
|
|
1337
|
+
value: s = ""
|
|
1327
1338
|
}) => {
|
|
1328
1339
|
const d = n ? "div" : "label", h = d === "label" ? { htmlFor: a } : {};
|
|
1329
|
-
return /* @__PURE__ */
|
|
1340
|
+
return /* @__PURE__ */ g(
|
|
1330
1341
|
d,
|
|
1331
1342
|
{
|
|
1332
|
-
className:
|
|
1343
|
+
className: p("radio flex items-center", t),
|
|
1333
1344
|
...h,
|
|
1334
1345
|
children: [
|
|
1335
1346
|
/* @__PURE__ */ o(
|
|
1336
1347
|
"input",
|
|
1337
1348
|
{
|
|
1338
1349
|
checked: c,
|
|
1339
|
-
className:
|
|
1350
|
+
className: p(
|
|
1340
1351
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1341
1352
|
{
|
|
1342
|
-
"focus:ring-[#222]":
|
|
1353
|
+
"focus:ring-[#222]": i === "primary"
|
|
1343
1354
|
}
|
|
1344
1355
|
),
|
|
1345
1356
|
id: a,
|
|
1346
|
-
name:
|
|
1357
|
+
name: l,
|
|
1347
1358
|
type: "radio",
|
|
1348
|
-
value:
|
|
1359
|
+
value: s,
|
|
1349
1360
|
...r
|
|
1350
1361
|
}
|
|
1351
1362
|
),
|
|
@@ -1353,46 +1364,46 @@ const Q = {
|
|
|
1353
1364
|
]
|
|
1354
1365
|
}
|
|
1355
1366
|
);
|
|
1356
|
-
}, c2 =
|
|
1367
|
+
}, c2 = b(m1), f1 = ({
|
|
1357
1368
|
children: c,
|
|
1358
1369
|
className: e = "",
|
|
1359
1370
|
error: t = !1,
|
|
1360
1371
|
errorMessage: a = "",
|
|
1361
1372
|
id: n = "",
|
|
1362
|
-
label:
|
|
1373
|
+
label: l = "",
|
|
1363
1374
|
name: r = "",
|
|
1364
|
-
options:
|
|
1365
|
-
placeholder:
|
|
1375
|
+
options: i = [],
|
|
1376
|
+
placeholder: s = "",
|
|
1366
1377
|
props: d = {},
|
|
1367
1378
|
selectClass: h = "",
|
|
1368
|
-
styles:
|
|
1369
|
-
variation:
|
|
1370
|
-
value:
|
|
1379
|
+
styles: m = null,
|
|
1380
|
+
variation: V = "primary",
|
|
1381
|
+
value: C
|
|
1371
1382
|
}) => {
|
|
1372
|
-
const
|
|
1373
|
-
return /* @__PURE__ */
|
|
1383
|
+
const M = s ? { defaultValue: "" } : {};
|
|
1384
|
+
return /* @__PURE__ */ g(
|
|
1374
1385
|
"label",
|
|
1375
1386
|
{
|
|
1376
|
-
className:
|
|
1377
|
-
style:
|
|
1387
|
+
className: p("relative select", e, V),
|
|
1388
|
+
style: m ? { ...m } : null,
|
|
1378
1389
|
children: [
|
|
1379
|
-
|
|
1380
|
-
/* @__PURE__ */
|
|
1390
|
+
l,
|
|
1391
|
+
/* @__PURE__ */ g(
|
|
1381
1392
|
"select",
|
|
1382
1393
|
{
|
|
1383
|
-
className:
|
|
1394
|
+
className: p(
|
|
1384
1395
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1385
1396
|
t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1386
1397
|
h
|
|
1387
1398
|
),
|
|
1388
1399
|
id: n,
|
|
1389
1400
|
name: r,
|
|
1390
|
-
value:
|
|
1391
|
-
...
|
|
1401
|
+
value: C,
|
|
1402
|
+
...M,
|
|
1392
1403
|
...d,
|
|
1393
1404
|
children: [
|
|
1394
|
-
|
|
1395
|
-
|
|
1405
|
+
s && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: s }),
|
|
1406
|
+
i.map((f, A) => /* @__PURE__ */ o(
|
|
1396
1407
|
"option",
|
|
1397
1408
|
{
|
|
1398
1409
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
@@ -1407,25 +1418,25 @@ const Q = {
|
|
|
1407
1418
|
]
|
|
1408
1419
|
}
|
|
1409
1420
|
);
|
|
1410
|
-
}, d2 =
|
|
1421
|
+
}, d2 = b(f1), V1 = ({ className: c = "" }) => /* @__PURE__ */ g(
|
|
1411
1422
|
"div",
|
|
1412
1423
|
{
|
|
1413
|
-
className:
|
|
1424
|
+
className: p(
|
|
1414
1425
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1415
1426
|
c
|
|
1416
1427
|
),
|
|
1417
1428
|
children: [
|
|
1418
|
-
/* @__PURE__ */ o(
|
|
1429
|
+
/* @__PURE__ */ o(y, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1419
1430
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1420
1431
|
]
|
|
1421
1432
|
}
|
|
1422
|
-
), h2 =
|
|
1433
|
+
), h2 = b(V1), C1 = ({
|
|
1423
1434
|
placeholderClass: c = "",
|
|
1424
1435
|
children: e,
|
|
1425
1436
|
className: t = "",
|
|
1426
1437
|
id: a = 1,
|
|
1427
1438
|
padding: n = !0
|
|
1428
|
-
}) => /* @__PURE__ */
|
|
1439
|
+
}) => /* @__PURE__ */ g("div", { className: p("slider", t), id: `slider-${a}`, children: [
|
|
1429
1440
|
/* @__PURE__ */ o(
|
|
1430
1441
|
"button",
|
|
1431
1442
|
{
|
|
@@ -1433,10 +1444,10 @@ const Q = {
|
|
|
1433
1444
|
id: `btn-left-${a}`,
|
|
1434
1445
|
type: "button",
|
|
1435
1446
|
className: "slider-button__prev ",
|
|
1436
|
-
children: /* @__PURE__ */ o(
|
|
1447
|
+
children: /* @__PURE__ */ o(y, { name: "chevronLeft" })
|
|
1437
1448
|
}
|
|
1438
1449
|
),
|
|
1439
|
-
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (
|
|
1450
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
|
|
1440
1451
|
"div",
|
|
1441
1452
|
{
|
|
1442
1453
|
className: `slider-card bg-gray-200 animate-pulse ${c}`,
|
|
@@ -1451,21 +1462,21 @@ const Q = {
|
|
|
1451
1462
|
id: `btn-right-${a}`,
|
|
1452
1463
|
type: "button",
|
|
1453
1464
|
className: "slider-button__next",
|
|
1454
|
-
children: /* @__PURE__ */ o(
|
|
1465
|
+
children: /* @__PURE__ */ o(y, { name: "chevronRight" })
|
|
1455
1466
|
}
|
|
1456
1467
|
)
|
|
1457
|
-
] }), u2 =
|
|
1468
|
+
] }), u2 = b(C1), H1 = {
|
|
1458
1469
|
name: "spinnerDark",
|
|
1459
1470
|
color: "text-teal-700",
|
|
1460
1471
|
viewBox: "0 0 24 24"
|
|
1461
1472
|
}, L1 = ({ className: c = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
|
|
1462
|
-
|
|
1473
|
+
y,
|
|
1463
1474
|
{
|
|
1464
1475
|
size: "xSmall",
|
|
1465
1476
|
...H1,
|
|
1466
1477
|
className: `animate-spin ${c}`
|
|
1467
1478
|
}
|
|
1468
|
-
) }), p2 =
|
|
1479
|
+
) }), p2 = b(L1), g1 = ({
|
|
1469
1480
|
className: c = "",
|
|
1470
1481
|
value: e
|
|
1471
1482
|
}) => {
|
|
@@ -1475,7 +1486,7 @@ const Q = {
|
|
|
1475
1486
|
return /* @__PURE__ */ o(
|
|
1476
1487
|
"div",
|
|
1477
1488
|
{
|
|
1478
|
-
className:
|
|
1489
|
+
className: p(
|
|
1479
1490
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1480
1491
|
c
|
|
1481
1492
|
),
|
|
@@ -1488,27 +1499,27 @@ const Q = {
|
|
|
1488
1499
|
error: t = !1,
|
|
1489
1500
|
errorMessage: a = "",
|
|
1490
1501
|
id: n = "",
|
|
1491
|
-
inputClass:
|
|
1502
|
+
inputClass: l = "",
|
|
1492
1503
|
name: r = "",
|
|
1493
|
-
placeholder:
|
|
1494
|
-
props:
|
|
1504
|
+
placeholder: i = "",
|
|
1505
|
+
props: s = {},
|
|
1495
1506
|
rows: d = 4,
|
|
1496
1507
|
variation: h = "primary"
|
|
1497
|
-
}) => /* @__PURE__ */
|
|
1508
|
+
}) => /* @__PURE__ */ g("div", { className: p("relative textarea", h, c), children: [
|
|
1498
1509
|
/* @__PURE__ */ o(
|
|
1499
1510
|
"textarea",
|
|
1500
1511
|
{
|
|
1501
|
-
placeholder:
|
|
1512
|
+
placeholder: i,
|
|
1502
1513
|
id: n,
|
|
1503
1514
|
name: r,
|
|
1504
1515
|
rows: d,
|
|
1505
|
-
className:
|
|
1516
|
+
className: p(
|
|
1506
1517
|
"form-textarea min-h-[40px] pl-4",
|
|
1507
1518
|
e ? "pr-10" : "pr-4",
|
|
1508
1519
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1509
|
-
|
|
1520
|
+
l
|
|
1510
1521
|
),
|
|
1511
|
-
...
|
|
1522
|
+
...s
|
|
1512
1523
|
}
|
|
1513
1524
|
),
|
|
1514
1525
|
e && /* @__PURE__ */ o(
|
|
@@ -1517,7 +1528,7 @@ const Q = {
|
|
|
1517
1528
|
id: `${n}-clear`,
|
|
1518
1529
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1519
1530
|
children: /* @__PURE__ */ o(
|
|
1520
|
-
|
|
1531
|
+
y,
|
|
1521
1532
|
{
|
|
1522
1533
|
size: "xSmall",
|
|
1523
1534
|
name: "xCircle",
|
|
@@ -1527,29 +1538,29 @@ const Q = {
|
|
|
1527
1538
|
}
|
|
1528
1539
|
),
|
|
1529
1540
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1530
|
-
] }), v1 =
|
|
1541
|
+
] }), v1 = b(M1), b1 = ({
|
|
1531
1542
|
className: c = "",
|
|
1532
1543
|
clear: e = !1,
|
|
1533
1544
|
error: t = !1,
|
|
1534
1545
|
errorMessage: a = "",
|
|
1535
1546
|
iconLeft: n = "",
|
|
1536
|
-
id:
|
|
1547
|
+
id: l = "",
|
|
1537
1548
|
inputClass: r = "",
|
|
1538
|
-
name:
|
|
1539
|
-
placeholder:
|
|
1549
|
+
name: i = "",
|
|
1550
|
+
placeholder: s = "",
|
|
1540
1551
|
props: d = {},
|
|
1541
1552
|
styles: h = null,
|
|
1542
|
-
type:
|
|
1543
|
-
value:
|
|
1544
|
-
variation:
|
|
1545
|
-
}) => /* @__PURE__ */
|
|
1553
|
+
type: m = "text",
|
|
1554
|
+
value: V,
|
|
1555
|
+
variation: C = "primary"
|
|
1556
|
+
}) => /* @__PURE__ */ g(
|
|
1546
1557
|
"div",
|
|
1547
1558
|
{
|
|
1548
|
-
className:
|
|
1559
|
+
className: p("relative textbox", C, c),
|
|
1549
1560
|
style: h ? { ...h } : null,
|
|
1550
1561
|
children: [
|
|
1551
1562
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1552
|
-
|
|
1563
|
+
y,
|
|
1553
1564
|
{
|
|
1554
1565
|
size: "xSmall",
|
|
1555
1566
|
name: n,
|
|
@@ -1560,13 +1571,13 @@ const Q = {
|
|
|
1560
1571
|
/* @__PURE__ */ o(
|
|
1561
1572
|
"input",
|
|
1562
1573
|
{
|
|
1563
|
-
placeholder:
|
|
1564
|
-
id:
|
|
1565
|
-
name:
|
|
1566
|
-
type:
|
|
1567
|
-
value:
|
|
1574
|
+
placeholder: s,
|
|
1575
|
+
id: l,
|
|
1576
|
+
name: i,
|
|
1577
|
+
type: m,
|
|
1578
|
+
value: V,
|
|
1568
1579
|
autoComplete: "off",
|
|
1569
|
-
className:
|
|
1580
|
+
className: p(
|
|
1570
1581
|
"form-input",
|
|
1571
1582
|
e ? "pr-10" : "pr-4",
|
|
1572
1583
|
n ? "pl-8" : "pl-4",
|
|
@@ -1582,10 +1593,10 @@ const Q = {
|
|
|
1582
1593
|
e && /* @__PURE__ */ o(
|
|
1583
1594
|
"div",
|
|
1584
1595
|
{
|
|
1585
|
-
id: `${
|
|
1596
|
+
id: `${l}-clear`,
|
|
1586
1597
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1587
1598
|
children: /* @__PURE__ */ o(
|
|
1588
|
-
|
|
1599
|
+
y,
|
|
1589
1600
|
{
|
|
1590
1601
|
size: "xSmall",
|
|
1591
1602
|
name: "xCircle",
|
|
@@ -1597,22 +1608,22 @@ const Q = {
|
|
|
1597
1608
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1598
1609
|
]
|
|
1599
1610
|
}
|
|
1600
|
-
),
|
|
1611
|
+
), D = b(b1), x1 = ({
|
|
1601
1612
|
btnClass: c,
|
|
1602
1613
|
className: e = "",
|
|
1603
1614
|
containerClass: t,
|
|
1604
1615
|
customSuccessMsg: a = "",
|
|
1605
1616
|
title: n = "Send A Message",
|
|
1606
|
-
titleClass:
|
|
1617
|
+
titleClass: l,
|
|
1607
1618
|
uppercase: r = !0
|
|
1608
1619
|
}) => {
|
|
1609
|
-
const
|
|
1620
|
+
const i = a || /* @__PURE__ */ g(k, { children: [
|
|
1610
1621
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1611
1622
|
" ",
|
|
1612
1623
|
/* @__PURE__ */ o(
|
|
1613
|
-
|
|
1624
|
+
F,
|
|
1614
1625
|
{
|
|
1615
|
-
className:
|
|
1626
|
+
className: p(
|
|
1616
1627
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
1617
1628
|
),
|
|
1618
1629
|
variation: "link",
|
|
@@ -1623,42 +1634,42 @@ const Q = {
|
|
|
1623
1634
|
}
|
|
1624
1635
|
)
|
|
1625
1636
|
] });
|
|
1626
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ g(
|
|
1627
1638
|
"form",
|
|
1628
1639
|
{
|
|
1629
1640
|
id: "contactForm",
|
|
1630
|
-
className:
|
|
1641
|
+
className: p("contact-form", t, {
|
|
1631
1642
|
uppercase: r
|
|
1632
1643
|
}),
|
|
1633
1644
|
children: [
|
|
1634
|
-
/* @__PURE__ */ o("h2", { id: "contact-title", className:
|
|
1635
|
-
/* @__PURE__ */ o("p", { className: "contact-form__msg", children:
|
|
1636
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4", l), children: n }),
|
|
1646
|
+
/* @__PURE__ */ o("p", { className: "contact-form__msg", children: i }),
|
|
1647
|
+
/* @__PURE__ */ g(
|
|
1637
1648
|
"div",
|
|
1638
1649
|
{
|
|
1639
|
-
className:
|
|
1650
|
+
className: p(
|
|
1640
1651
|
"p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
|
|
1641
1652
|
e
|
|
1642
1653
|
),
|
|
1643
1654
|
children: [
|
|
1644
1655
|
/* @__PURE__ */ o(
|
|
1645
|
-
|
|
1656
|
+
D,
|
|
1646
1657
|
{
|
|
1647
1658
|
id: "contact-name",
|
|
1648
1659
|
name: "contact-name",
|
|
1649
1660
|
placeholder: "Name",
|
|
1650
|
-
inputClass:
|
|
1661
|
+
inputClass: p({
|
|
1651
1662
|
"placeholder:uppercase": r
|
|
1652
1663
|
})
|
|
1653
1664
|
}
|
|
1654
1665
|
),
|
|
1655
1666
|
/* @__PURE__ */ o(
|
|
1656
|
-
|
|
1667
|
+
D,
|
|
1657
1668
|
{
|
|
1658
1669
|
id: "contact-email",
|
|
1659
1670
|
name: "contact-email",
|
|
1660
1671
|
placeholder: "Email",
|
|
1661
|
-
inputClass:
|
|
1672
|
+
inputClass: p({
|
|
1662
1673
|
"placeholder:uppercase": r
|
|
1663
1674
|
})
|
|
1664
1675
|
}
|
|
@@ -1669,15 +1680,15 @@ const Q = {
|
|
|
1669
1680
|
id: "contact-message",
|
|
1670
1681
|
name: "contact-message",
|
|
1671
1682
|
placeholder: "Message",
|
|
1672
|
-
inputClass:
|
|
1683
|
+
inputClass: p({
|
|
1673
1684
|
"placeholder:uppercase": r
|
|
1674
1685
|
})
|
|
1675
1686
|
}
|
|
1676
1687
|
),
|
|
1677
1688
|
/* @__PURE__ */ o(
|
|
1678
|
-
|
|
1689
|
+
F,
|
|
1679
1690
|
{
|
|
1680
|
-
className:
|
|
1691
|
+
className: p(
|
|
1681
1692
|
"flex mx-auto items-center",
|
|
1682
1693
|
{
|
|
1683
1694
|
uppercase: r
|
|
@@ -1695,24 +1706,24 @@ const Q = {
|
|
|
1695
1706
|
]
|
|
1696
1707
|
}
|
|
1697
1708
|
);
|
|
1698
|
-
}, f2 =
|
|
1709
|
+
}, f2 = b(x1), A1 = ({
|
|
1699
1710
|
block: c = !1,
|
|
1700
1711
|
children: e,
|
|
1701
1712
|
className: t,
|
|
1702
1713
|
contentClass: a,
|
|
1703
1714
|
footerClass: n,
|
|
1704
|
-
footerContent:
|
|
1715
|
+
footerContent: l,
|
|
1705
1716
|
headerContent: r,
|
|
1706
|
-
headerClass:
|
|
1707
|
-
list:
|
|
1717
|
+
headerClass: i,
|
|
1718
|
+
list: s = !1,
|
|
1708
1719
|
props: d = {},
|
|
1709
1720
|
variation: h = "primary"
|
|
1710
1721
|
}) => {
|
|
1711
|
-
const
|
|
1712
|
-
return /* @__PURE__ */
|
|
1722
|
+
const m = s ? "ul" : "div";
|
|
1723
|
+
return /* @__PURE__ */ g(
|
|
1713
1724
|
"div",
|
|
1714
1725
|
{
|
|
1715
|
-
className:
|
|
1726
|
+
className: p(
|
|
1716
1727
|
"content-card",
|
|
1717
1728
|
{ "content-card--block": c },
|
|
1718
1729
|
`content-card--${h}`,
|
|
@@ -1720,35 +1731,35 @@ const Q = {
|
|
|
1720
1731
|
),
|
|
1721
1732
|
...d,
|
|
1722
1733
|
children: [
|
|
1723
|
-
r && /* @__PURE__ */ o("div", { className:
|
|
1734
|
+
r && /* @__PURE__ */ o("div", { className: p("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
|
|
1724
1735
|
/* @__PURE__ */ o(
|
|
1725
|
-
|
|
1736
|
+
m,
|
|
1726
1737
|
{
|
|
1727
|
-
className:
|
|
1728
|
-
role:
|
|
1738
|
+
className: p("content-card__content", a),
|
|
1739
|
+
role: s ? "list" : null,
|
|
1729
1740
|
children: e
|
|
1730
1741
|
}
|
|
1731
1742
|
),
|
|
1732
|
-
|
|
1743
|
+
l && /* @__PURE__ */ o("div", { className: p("content-card__footer", n), children: l })
|
|
1733
1744
|
]
|
|
1734
1745
|
}
|
|
1735
1746
|
);
|
|
1736
|
-
}, V2 =
|
|
1747
|
+
}, V2 = b(A1), y1 = ({
|
|
1737
1748
|
children: c,
|
|
1738
1749
|
className: e,
|
|
1739
1750
|
colGap: t = 2,
|
|
1740
1751
|
direction: a = "col",
|
|
1741
1752
|
label: n,
|
|
1742
|
-
labelClass:
|
|
1753
|
+
labelClass: l,
|
|
1743
1754
|
props: r = {},
|
|
1744
|
-
rowGap:
|
|
1745
|
-
value:
|
|
1755
|
+
rowGap: i = 1,
|
|
1756
|
+
value: s,
|
|
1746
1757
|
valueClass: d,
|
|
1747
1758
|
wrap: h = !1
|
|
1748
|
-
}) => /* @__PURE__ */
|
|
1759
|
+
}) => /* @__PURE__ */ g(
|
|
1749
1760
|
"div",
|
|
1750
1761
|
{
|
|
1751
|
-
className:
|
|
1762
|
+
className: p(
|
|
1752
1763
|
"flex",
|
|
1753
1764
|
{
|
|
1754
1765
|
"flex-col items-start": a === "col",
|
|
@@ -1759,28 +1770,28 @@ const Q = {
|
|
|
1759
1770
|
),
|
|
1760
1771
|
style: {
|
|
1761
1772
|
columnGap: `${t / 4}rem`,
|
|
1762
|
-
rowGap: `${
|
|
1773
|
+
rowGap: `${i / 4}rem`
|
|
1763
1774
|
},
|
|
1764
1775
|
...r,
|
|
1765
1776
|
children: [
|
|
1766
|
-
n && /* @__PURE__ */ o("div", { className:
|
|
1767
|
-
|
|
1777
|
+
n && /* @__PURE__ */ o("div", { className: p("item-label", l), children: n }),
|
|
1778
|
+
s && /* @__PURE__ */ o("div", { className: p("item-value", d), children: s }),
|
|
1768
1779
|
c
|
|
1769
1780
|
]
|
|
1770
1781
|
}
|
|
1771
|
-
), C2 =
|
|
1782
|
+
), C2 = b(y1), w1 = ({
|
|
1772
1783
|
breakPage: c = !1,
|
|
1773
1784
|
children: e,
|
|
1774
1785
|
className: t,
|
|
1775
1786
|
noPrint: a = !1,
|
|
1776
1787
|
props: n = {},
|
|
1777
|
-
title:
|
|
1788
|
+
title: l,
|
|
1778
1789
|
titleClass: r,
|
|
1779
|
-
titleId:
|
|
1780
|
-
}) => /* @__PURE__ */
|
|
1790
|
+
titleId: i
|
|
1791
|
+
}) => /* @__PURE__ */ g(
|
|
1781
1792
|
"section",
|
|
1782
1793
|
{
|
|
1783
|
-
className:
|
|
1794
|
+
className: p(
|
|
1784
1795
|
"spacer",
|
|
1785
1796
|
{
|
|
1786
1797
|
"print:!hidden": a,
|
|
@@ -1790,14 +1801,14 @@ const Q = {
|
|
|
1790
1801
|
),
|
|
1791
1802
|
...n,
|
|
1792
1803
|
children: [
|
|
1793
|
-
|
|
1804
|
+
l && /* @__PURE__ */ o("h2", { className: p("spacer-title", r), id: i, children: l }),
|
|
1794
1805
|
e
|
|
1795
1806
|
]
|
|
1796
1807
|
}
|
|
1797
|
-
), H2 = w1, S1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className:
|
|
1808
|
+
), H2 = w1, S1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: p("stacked-list", e), children: c }), L2 = S1, k1 = ({ align: c = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ o(
|
|
1798
1809
|
a,
|
|
1799
1810
|
{
|
|
1800
|
-
className:
|
|
1811
|
+
className: p(
|
|
1801
1812
|
"!header-4-medium mb-6 flex items-center",
|
|
1802
1813
|
{
|
|
1803
1814
|
"text-center justify-center": c === "center",
|
|
@@ -1808,7 +1819,7 @@ const Q = {
|
|
|
1808
1819
|
),
|
|
1809
1820
|
children: n || e
|
|
1810
1821
|
}
|
|
1811
|
-
), g2 =
|
|
1822
|
+
), g2 = b(k1), z1 = {
|
|
1812
1823
|
circular: "circular 3s linear infinite",
|
|
1813
1824
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1814
1825
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1950,9 +1961,9 @@ const Q = {
|
|
|
1950
1961
|
}, I1 = {
|
|
1951
1962
|
0: "0ms",
|
|
1952
1963
|
50: "50ms"
|
|
1953
|
-
},
|
|
1964
|
+
}, $1 = {
|
|
1954
1965
|
"center-top": "center 30%"
|
|
1955
|
-
},
|
|
1966
|
+
}, B = {
|
|
1956
1967
|
animation: z1,
|
|
1957
1968
|
backgroundImage: N1,
|
|
1958
1969
|
fontSize: Z1,
|
|
@@ -1962,8 +1973,8 @@ const Q = {
|
|
|
1962
1973
|
maxWidth: T1,
|
|
1963
1974
|
screens: B1,
|
|
1964
1975
|
transitionDuration: I1,
|
|
1965
|
-
transformOrigin:
|
|
1966
|
-
},
|
|
1976
|
+
transformOrigin: $1
|
|
1977
|
+
}, I = {
|
|
1967
1978
|
black: {
|
|
1968
1979
|
50: "#FCFCFC",
|
|
1969
1980
|
100: "#F9F9F9",
|
|
@@ -2054,7 +2065,7 @@ const Q = {
|
|
|
2054
2065
|
current: "currentColor",
|
|
2055
2066
|
transparent: "transparent",
|
|
2056
2067
|
white: "#fff"
|
|
2057
|
-
},
|
|
2068
|
+
}, $ = {
|
|
2058
2069
|
blue: {
|
|
2059
2070
|
100: "hsl(240 42% 22%)",
|
|
2060
2071
|
60: "hsl(240 24% 34%)",
|
|
@@ -2071,9 +2082,9 @@ const Q = {
|
|
|
2071
2082
|
white: "hsl(0 0% 100%)",
|
|
2072
2083
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2073
2084
|
}, M2 = {
|
|
2074
|
-
...
|
|
2075
|
-
|
|
2076
|
-
},
|
|
2085
|
+
...I,
|
|
2086
|
+
...$
|
|
2087
|
+
}, O1 = ({ matchUtilities: c, theme: e }) => c(
|
|
2077
2088
|
{
|
|
2078
2089
|
aspect: (t) => ({
|
|
2079
2090
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2111,34 +2122,34 @@ const Q = {
|
|
|
2111
2122
|
"max-block": (e) => ({
|
|
2112
2123
|
"max-block-size": e
|
|
2113
2124
|
})
|
|
2114
|
-
}),
|
|
2125
|
+
}), T = ({
|
|
2115
2126
|
addUtilities: c,
|
|
2116
2127
|
e,
|
|
2117
2128
|
classPrefix: t = "",
|
|
2118
2129
|
fixedProps: a = {},
|
|
2119
2130
|
sizeProps: n = null,
|
|
2120
|
-
sizes:
|
|
2131
|
+
sizes: l,
|
|
2121
2132
|
weights: r,
|
|
2122
|
-
weightProps:
|
|
2133
|
+
weightProps: i = null
|
|
2123
2134
|
}) => {
|
|
2124
|
-
const
|
|
2125
|
-
Object.entries(
|
|
2126
|
-
const
|
|
2135
|
+
const s = {};
|
|
2136
|
+
Object.entries(l).forEach(([d, h]) => {
|
|
2137
|
+
const m = {
|
|
2127
2138
|
"font-size": h,
|
|
2128
2139
|
...a
|
|
2129
|
-
},
|
|
2130
|
-
|
|
2131
|
-
...
|
|
2132
|
-
...
|
|
2133
|
-
}, Object.entries(r).forEach(([
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2136
|
-
...
|
|
2140
|
+
}, V = `.${e(`${t}-${d}`)}`, C = n ? n({ sizeKey: d, sizeValue: h }) : {};
|
|
2141
|
+
s[V] = {
|
|
2142
|
+
...m,
|
|
2143
|
+
...C
|
|
2144
|
+
}, Object.entries(r).forEach(([M, f]) => {
|
|
2145
|
+
const A = `.${e(`${t}-${d}-${M}`)}`, u = i ? i({ sizeKey: d, sizeValue: h, weightKey: M, weightValue: f }) : {};
|
|
2146
|
+
s[A] = {
|
|
2147
|
+
...m,
|
|
2137
2148
|
"font-weight": f,
|
|
2138
|
-
...
|
|
2149
|
+
...u
|
|
2139
2150
|
};
|
|
2140
2151
|
});
|
|
2141
|
-
}), c(
|
|
2152
|
+
}), c(s);
|
|
2142
2153
|
}, O = {
|
|
2143
2154
|
aspectRatio: !1,
|
|
2144
2155
|
backdropBlur: !1,
|
|
@@ -2203,9 +2214,9 @@ const Q = {
|
|
|
2203
2214
|
textOpacity: !1,
|
|
2204
2215
|
textUnderlineOffset: !1,
|
|
2205
2216
|
touchAction: !1
|
|
2206
|
-
},
|
|
2217
|
+
}, q = [
|
|
2207
2218
|
({ addUtilities: c, matchUtilities: e, theme: t, e: a }) => {
|
|
2208
|
-
const n = ["2", "5"],
|
|
2219
|
+
const n = ["2", "5"], l = {
|
|
2209
2220
|
light: "300",
|
|
2210
2221
|
normal: "400",
|
|
2211
2222
|
medium: "500",
|
|
@@ -2219,44 +2230,44 @@ const Q = {
|
|
|
2219
2230
|
4: "1.25rem",
|
|
2220
2231
|
5: "1.125rem",
|
|
2221
2232
|
6: "1rem"
|
|
2222
|
-
},
|
|
2233
|
+
}, i = {
|
|
2223
2234
|
1: "0.938rem",
|
|
2224
2235
|
2: "0.813rem",
|
|
2225
2236
|
3: "0.75rem"
|
|
2226
2237
|
};
|
|
2227
|
-
|
|
2238
|
+
T({
|
|
2228
2239
|
addUtilities: c,
|
|
2229
2240
|
e: a,
|
|
2230
2241
|
classPrefix: "header",
|
|
2231
2242
|
fixedProps: {
|
|
2232
2243
|
"line-height": "1.5"
|
|
2233
2244
|
},
|
|
2234
|
-
sizeProps: ({ sizeKey:
|
|
2235
|
-
"font-weight": n.includes(
|
|
2245
|
+
sizeProps: ({ sizeKey: s }) => ({
|
|
2246
|
+
"font-weight": n.includes(s) ? l.semibold : l.bold
|
|
2236
2247
|
}),
|
|
2237
2248
|
sizes: r,
|
|
2238
|
-
weights:
|
|
2239
|
-
}),
|
|
2249
|
+
weights: l
|
|
2250
|
+
}), T({
|
|
2240
2251
|
addUtilities: c,
|
|
2241
2252
|
e: a,
|
|
2242
2253
|
classPrefix: "text-body",
|
|
2243
|
-
sizes:
|
|
2244
|
-
weights:
|
|
2245
|
-
}),
|
|
2254
|
+
sizes: i,
|
|
2255
|
+
weights: l
|
|
2256
|
+
}), O1({ matchUtilities: e, theme: t }), q1({ matchUtilities: e, theme: t }), j1({ matchUtilities: e }), P1({ matchUtilities: e });
|
|
2246
2257
|
}
|
|
2247
2258
|
], v2 = {
|
|
2248
2259
|
theme: {
|
|
2249
|
-
extend:
|
|
2250
|
-
colors:
|
|
2260
|
+
extend: B,
|
|
2261
|
+
colors: I
|
|
2251
2262
|
},
|
|
2252
|
-
plugins:
|
|
2263
|
+
plugins: q,
|
|
2253
2264
|
corePlugins: O
|
|
2254
2265
|
}, b2 = {
|
|
2255
2266
|
theme: {
|
|
2256
|
-
extend:
|
|
2257
|
-
colors:
|
|
2267
|
+
extend: B,
|
|
2268
|
+
colors: $
|
|
2258
2269
|
},
|
|
2259
|
-
plugins:
|
|
2270
|
+
plugins: q,
|
|
2260
2271
|
corePlugins: O
|
|
2261
2272
|
};
|
|
2262
2273
|
function R1(c, e = []) {
|
|
@@ -2265,8 +2276,8 @@ function R1(c, e = []) {
|
|
|
2265
2276
|
return t[a];
|
|
2266
2277
|
},
|
|
2267
2278
|
set(t, a, n) {
|
|
2268
|
-
const
|
|
2269
|
-
return t[a] = n, e.length > 0 && e.forEach((r) => r(t,
|
|
2279
|
+
const l = { ...t };
|
|
2280
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
|
|
2270
2281
|
}
|
|
2271
2282
|
});
|
|
2272
2283
|
}
|
|
@@ -2277,16 +2288,16 @@ function A2(c, e = []) {
|
|
|
2277
2288
|
e.length && (c == null || c.classList.remove(...e));
|
|
2278
2289
|
}
|
|
2279
2290
|
function y2({ cb: c, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2280
|
-
let
|
|
2281
|
-
for (const [r,
|
|
2282
|
-
const
|
|
2283
|
-
d.forEach((
|
|
2284
|
-
|
|
2285
|
-
}), h.length ? (
|
|
2286
|
-
|
|
2291
|
+
let l = !0;
|
|
2292
|
+
for (const [r, i] of t.entries()) {
|
|
2293
|
+
const s = e.querySelector(`[name="${r}"]`), d = a[r], h = [];
|
|
2294
|
+
d.forEach((m) => {
|
|
2295
|
+
m.isValid(i) || h.push(m.message);
|
|
2296
|
+
}), h.length ? (l = !1, s.classList.add("field-error"), c && c({ isValid: l, field: s, validations: a })) : (s.classList.remove("field-error"), c && c({ isValid: !0, field: s, validations: a })), n && (s == null || s.addEventListener("input", (m) => {
|
|
2297
|
+
m.preventDefault(), s.classList.contains("field-error") && s.classList.remove("field-error");
|
|
2287
2298
|
}));
|
|
2288
2299
|
}
|
|
2289
|
-
return
|
|
2300
|
+
return l;
|
|
2290
2301
|
}
|
|
2291
2302
|
function w2(c) {
|
|
2292
2303
|
const e = (
|
|
@@ -2328,8 +2339,8 @@ class S2 {
|
|
|
2328
2339
|
initObserver(e) {
|
|
2329
2340
|
var t, a;
|
|
2330
2341
|
e.observer || (e.observer = new IntersectionObserver(
|
|
2331
|
-
(n,
|
|
2332
|
-
this.handleIntersect(n,
|
|
2342
|
+
(n, l) => {
|
|
2343
|
+
this.handleIntersect(n, l, e);
|
|
2333
2344
|
},
|
|
2334
2345
|
{
|
|
2335
2346
|
root: (t = e.container) == null ? void 0 : t.offsetParent
|
|
@@ -2337,16 +2348,16 @@ class S2 {
|
|
|
2337
2348
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2338
2349
|
}
|
|
2339
2350
|
handleIntersect(e, t, a) {
|
|
2340
|
-
const n = e.filter((
|
|
2341
|
-
(
|
|
2351
|
+
const n = e.filter((s) => s.isIntersecting), l = n.length === a.slides.length, r = n.every(
|
|
2352
|
+
(s) => s.isIntersecting === !0
|
|
2342
2353
|
);
|
|
2343
|
-
|
|
2344
|
-
const d = [...a.slides].indexOf(
|
|
2345
|
-
|
|
2354
|
+
l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((s) => {
|
|
2355
|
+
const d = [...a.slides].indexOf(s.target);
|
|
2356
|
+
s.target === a.slides[0] && (a.showPrevBtn = s.isIntersecting), s.target === a.slides[a.slides.length - 1] && (a.showNextBtn = s.isIntersecting), s.target === a.slides[2] && (a.scrollToStart = s.isIntersecting), s.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = s.isIntersecting), s.isIntersecting && !a.entriesIntersected.includes(d) && (a.entriesIntersected.push(d), a.activeIndex = d, i(s));
|
|
2346
2357
|
}));
|
|
2347
|
-
function
|
|
2358
|
+
function i(s) {
|
|
2348
2359
|
var d;
|
|
2349
|
-
|
|
2360
|
+
s.target !== a.slides[a.slides.length - 1] && s.target !== a.slides[0] && s.target !== a.slides[2] && s.target !== a.slides[a.slides.length - 2] && ((d = a.observer) == null || d.unobserve(s.target));
|
|
2350
2361
|
}
|
|
2351
2362
|
}
|
|
2352
2363
|
btnListeners(e) {
|
|
@@ -2365,7 +2376,7 @@ class S2 {
|
|
|
2365
2376
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2366
2377
|
}
|
|
2367
2378
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2368
|
-
const
|
|
2379
|
+
const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
2369
2380
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2370
2381
|
return console.error(`slider-container-${a} Not Found`);
|
|
2371
2382
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2373,8 +2384,8 @@ class S2 {
|
|
|
2373
2384
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2374
2385
|
`#btn-right-${a}`
|
|
2375
2386
|
);
|
|
2376
|
-
const
|
|
2377
|
-
|
|
2387
|
+
const i = t.map((d) => n(d)).join(""), s = document.createElement("div");
|
|
2388
|
+
s.innerHTML = `${l}${i}${r}`, e.container.replaceChildren(...s.children), e.container.parentElement.classList.add("loaded");
|
|
2378
2389
|
}
|
|
2379
2390
|
showHideBtns(e, t, a) {
|
|
2380
2391
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2384,12 +2395,12 @@ class S2 {
|
|
|
2384
2395
|
}
|
|
2385
2396
|
}
|
|
2386
2397
|
}
|
|
2387
|
-
class
|
|
2398
|
+
class H {
|
|
2388
2399
|
static calcCrow(e, t, a, n) {
|
|
2389
|
-
const r =
|
|
2390
|
-
e =
|
|
2391
|
-
const
|
|
2392
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2400
|
+
const r = H.toRad(a - e), i = H.toRad(n - t);
|
|
2401
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
2402
|
+
const s = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2403
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(s), Math.sqrt(1 - s)));
|
|
2393
2404
|
}
|
|
2394
2405
|
static cleanupAddress(e) {
|
|
2395
2406
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2402,9 +2413,9 @@ class g {
|
|
|
2402
2413
|
return;
|
|
2403
2414
|
window.dataLayer = window.dataLayer || [];
|
|
2404
2415
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2405
|
-
typeof
|
|
2416
|
+
typeof H == "function" && t.forEach((a) => {
|
|
2406
2417
|
a.addEventListener("click", () => {
|
|
2407
|
-
|
|
2418
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
2408
2419
|
});
|
|
2409
2420
|
});
|
|
2410
2421
|
}
|
|
@@ -2417,19 +2428,19 @@ class g {
|
|
|
2417
2428
|
static async createData(e, t = null, a = !0) {
|
|
2418
2429
|
if (window.options.isBot || !t)
|
|
2419
2430
|
return null;
|
|
2420
|
-
const { tolken: n = null, ip:
|
|
2431
|
+
const { tolken: n = null, ip: l = null } = await H.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, i = e + r, s = typeof t == "string" ? t : JSON.stringify(t), d = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2421
2432
|
try {
|
|
2422
|
-
const h = await fetch(
|
|
2433
|
+
const h = await fetch(i, {
|
|
2423
2434
|
method: "POST",
|
|
2424
|
-
body:
|
|
2435
|
+
body: s === "null" ? null : s,
|
|
2425
2436
|
headers: {
|
|
2426
2437
|
website: d
|
|
2427
2438
|
}
|
|
2428
|
-
}),
|
|
2429
|
-
if (
|
|
2439
|
+
}), m = h.headers.get("content-type");
|
|
2440
|
+
if (m && m.indexOf("application/json") !== -1)
|
|
2430
2441
|
return h.json();
|
|
2431
|
-
const
|
|
2432
|
-
return
|
|
2442
|
+
const V = await h.text();
|
|
2443
|
+
return V ? V.replace("__next", "") : null;
|
|
2433
2444
|
} catch (h) {
|
|
2434
2445
|
console.error("createData", h);
|
|
2435
2446
|
}
|
|
@@ -2440,7 +2451,7 @@ class g {
|
|
|
2440
2451
|
}
|
|
2441
2452
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2442
2453
|
try {
|
|
2443
|
-
return await
|
|
2454
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
2444
2455
|
} catch (t) {
|
|
2445
2456
|
console.error("deleteSearchValue", t.message);
|
|
2446
2457
|
}
|
|
@@ -2491,17 +2502,17 @@ class g {
|
|
|
2491
2502
|
static async fetchData(e, t = !1, a = !0) {
|
|
2492
2503
|
if (options.isBot)
|
|
2493
2504
|
return null;
|
|
2494
|
-
const { tolken: n = null, ip:
|
|
2505
|
+
const { tolken: n = null, ip: l = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
|
|
2495
2506
|
try {
|
|
2496
|
-
const
|
|
2507
|
+
const s = await fetch(i, { method: "GET" });
|
|
2497
2508
|
if (t === !0) {
|
|
2498
|
-
const h = await
|
|
2509
|
+
const h = await s.text();
|
|
2499
2510
|
return h ? h.replace("__next", "") : null;
|
|
2500
2511
|
}
|
|
2501
|
-
const d =
|
|
2502
|
-
return d && d.indexOf("application/json") !== -1 ?
|
|
2503
|
-
} catch (
|
|
2504
|
-
console.error("fetchData",
|
|
2512
|
+
const d = s.headers.get("content-type");
|
|
2513
|
+
return d && d.indexOf("application/json") !== -1 ? s.json() : null;
|
|
2514
|
+
} catch (s) {
|
|
2515
|
+
console.error("fetchData", s, e);
|
|
2505
2516
|
}
|
|
2506
2517
|
return null;
|
|
2507
2518
|
}
|
|
@@ -2511,8 +2522,8 @@ class g {
|
|
|
2511
2522
|
}
|
|
2512
2523
|
static formatDate(e = null) {
|
|
2513
2524
|
return e ? (e = new Date(e), [
|
|
2514
|
-
|
|
2515
|
-
|
|
2525
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
2526
|
+
H.padTo2Digits(e.getDate()),
|
|
2516
2527
|
e.getFullYear()
|
|
2517
2528
|
].join("-")) : null;
|
|
2518
2529
|
}
|
|
@@ -2529,12 +2540,12 @@ class g {
|
|
|
2529
2540
|
swLng: 0
|
|
2530
2541
|
};
|
|
2531
2542
|
const n = e.getBounds();
|
|
2532
|
-
let
|
|
2533
|
-
return a && (
|
|
2534
|
-
swLat:
|
|
2543
|
+
let l = n.getSouth(), r = n.getEast(), i = n.getNorth(), s = n.getWest();
|
|
2544
|
+
return a && (l = l - a, r = r + a, i = i + a, s = s - a), t && (l = l.toFixed(t), r = r.toFixed(t), i = i.toFixed(t), s = s.toFixed(t)), {
|
|
2545
|
+
swLat: l,
|
|
2535
2546
|
neLng: r,
|
|
2536
|
-
neLat:
|
|
2537
|
-
swLng:
|
|
2547
|
+
neLat: i,
|
|
2548
|
+
swLng: s
|
|
2538
2549
|
};
|
|
2539
2550
|
}
|
|
2540
2551
|
static getFirstN(e, t = 5) {
|
|
@@ -2562,41 +2573,41 @@ class g {
|
|
|
2562
2573
|
return "/report/license-plate";
|
|
2563
2574
|
}
|
|
2564
2575
|
static async getHeaders(e = 300) {
|
|
2565
|
-
var
|
|
2576
|
+
var s;
|
|
2566
2577
|
const {
|
|
2567
2578
|
userAgent: t = null,
|
|
2568
2579
|
userAgentData: a = null,
|
|
2569
2580
|
platform: n = null
|
|
2570
|
-
} = navigator || {},
|
|
2581
|
+
} = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
|
|
2571
2582
|
tolken: null,
|
|
2572
2583
|
ip: null,
|
|
2573
2584
|
userAgent: t,
|
|
2574
|
-
platform:
|
|
2585
|
+
platform: l
|
|
2575
2586
|
};
|
|
2576
2587
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2577
2588
|
return r;
|
|
2578
|
-
const
|
|
2579
|
-
if (
|
|
2580
|
-
const d = JSON.parse(
|
|
2589
|
+
const i = localStorage.getItem("headerTolken");
|
|
2590
|
+
if (i) {
|
|
2591
|
+
const d = JSON.parse(i), h = (/* @__PURE__ */ new Date()).getTime();
|
|
2581
2592
|
return d.expire - h < 0 && localStorage.removeItem("headerTolken"), {
|
|
2582
2593
|
tolken: d.tolken,
|
|
2583
2594
|
ip: d.ip,
|
|
2584
2595
|
userAgent: t,
|
|
2585
|
-
platform:
|
|
2596
|
+
platform: l
|
|
2586
2597
|
};
|
|
2587
2598
|
}
|
|
2588
|
-
if ((
|
|
2599
|
+
if ((s = window == null ? void 0 : window.options) != null && s.isPdf)
|
|
2589
2600
|
return r;
|
|
2590
2601
|
try {
|
|
2591
|
-
const h = await (await fetch("/api/headers")).json(),
|
|
2602
|
+
const h = await (await fetch("/api/headers")).json(), m = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
|
|
2592
2603
|
return localStorage.setItem(
|
|
2593
2604
|
"headerTolken",
|
|
2594
2605
|
JSON.stringify({
|
|
2595
|
-
tolken:
|
|
2596
|
-
ip:
|
|
2606
|
+
tolken: m,
|
|
2607
|
+
ip: V,
|
|
2597
2608
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2598
2609
|
})
|
|
2599
|
-
), { tolken:
|
|
2610
|
+
), { tolken: m, ip: V, userAgent: t, platform: l };
|
|
2600
2611
|
} catch (d) {
|
|
2601
2612
|
console.error("getHeaders", d);
|
|
2602
2613
|
}
|
|
@@ -2609,19 +2620,19 @@ class g {
|
|
|
2609
2620
|
}[e];
|
|
2610
2621
|
}
|
|
2611
2622
|
static async getLocationData(e) {
|
|
2612
|
-
const { swLat: t, neLng: a, neLat: n, swLng:
|
|
2613
|
-
return await
|
|
2623
|
+
const { swLat: t, neLng: a, neLat: n, swLng: l } = H.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
|
|
2624
|
+
return await H.fetchData("/api/client?query=" + r);
|
|
2614
2625
|
}
|
|
2615
2626
|
static getReportUrl(e, t = null) {
|
|
2616
|
-
var
|
|
2617
|
-
const a = ((
|
|
2627
|
+
var s, d, h;
|
|
2628
|
+
const a = ((s = e == null ? void 0 : e.state) == null ? void 0 : s.slug) ?? null, n = ((d = e == null ? void 0 : e.city) == null ? void 0 : d.slug) ?? null, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2618
2629
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2619
|
-
const
|
|
2620
|
-
return "/" + [a, n,
|
|
2630
|
+
const i = [r, "-piq", t].filter((m) => m).join("");
|
|
2631
|
+
return "/" + [a, n, l].filter((m) => m).map((m) => H.toSlug(m)).join("/") + "/" + i;
|
|
2621
2632
|
}
|
|
2622
2633
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2623
2634
|
try {
|
|
2624
|
-
return await
|
|
2635
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
2625
2636
|
} catch (t) {
|
|
2626
2637
|
console.error("getSearchValue", t.message);
|
|
2627
2638
|
}
|
|
@@ -2727,15 +2738,15 @@ class g {
|
|
|
2727
2738
|
];
|
|
2728
2739
|
}
|
|
2729
2740
|
static getTrackingData(e) {
|
|
2730
|
-
const [t, ...a] = e.split("|"), n = a.join("|").trim(),
|
|
2741
|
+
const [t, ...a] = e.split("|"), n = a.join("|").trim(), l = [
|
|
2731
2742
|
"[pageType::" + t.trim() + "]",
|
|
2732
2743
|
"[name::" + n + "]"
|
|
2733
2744
|
].join(" ");
|
|
2734
2745
|
return {
|
|
2735
|
-
value:
|
|
2746
|
+
value: l,
|
|
2736
2747
|
dataLayer: {
|
|
2737
2748
|
event: "clickTrack",
|
|
2738
|
-
value:
|
|
2749
|
+
value: l
|
|
2739
2750
|
}
|
|
2740
2751
|
};
|
|
2741
2752
|
}
|
|
@@ -2749,7 +2760,7 @@ class g {
|
|
|
2749
2760
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2750
2761
|
return null;
|
|
2751
2762
|
try {
|
|
2752
|
-
return await
|
|
2763
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
2753
2764
|
} catch (t) {
|
|
2754
2765
|
console.error("getUser", t.message);
|
|
2755
2766
|
}
|
|
@@ -2765,7 +2776,7 @@ class g {
|
|
|
2765
2776
|
uuid: t
|
|
2766
2777
|
}
|
|
2767
2778
|
});
|
|
2768
|
-
return await
|
|
2779
|
+
return await H.makeSearchFetchCall(
|
|
2769
2780
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2770
2781
|
);
|
|
2771
2782
|
}
|
|
@@ -2774,56 +2785,58 @@ class g {
|
|
|
2774
2785
|
return a && a.includes(t) ? t : e;
|
|
2775
2786
|
}
|
|
2776
2787
|
static getGridBounds({ map: e, tileSize: t, coords: a }) {
|
|
2777
|
-
const n = a.scaleBy(t),
|
|
2788
|
+
const n = a.scaleBy(t), l = n.add(t);
|
|
2778
2789
|
return {
|
|
2779
2790
|
nw: e.unproject(n, a.z),
|
|
2780
|
-
se: e.unproject(
|
|
2791
|
+
se: e.unproject(l, a.z)
|
|
2781
2792
|
};
|
|
2782
2793
|
}
|
|
2783
2794
|
static gridTest(e, t, a = 1500) {
|
|
2784
2795
|
const n = this;
|
|
2785
2796
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2786
|
-
createTile: function(
|
|
2787
|
-
const
|
|
2797
|
+
createTile: function(l, r) {
|
|
2798
|
+
const i = document.createElement("div");
|
|
2788
2799
|
return setTimeout(() => {
|
|
2789
|
-
r(null,
|
|
2790
|
-
const { se:
|
|
2800
|
+
r(null, i);
|
|
2801
|
+
const { se: s, nw: d } = n.getGridBounds({
|
|
2791
2802
|
map: e,
|
|
2792
2803
|
tileSize: this.getTileSize(),
|
|
2793
|
-
coords:
|
|
2804
|
+
coords: l
|
|
2794
2805
|
});
|
|
2795
2806
|
t({
|
|
2796
|
-
swLat:
|
|
2797
|
-
neLng:
|
|
2807
|
+
swLat: s.lat,
|
|
2808
|
+
neLng: s.lng,
|
|
2798
2809
|
neLat: d.lat,
|
|
2799
2810
|
swLng: d.lng,
|
|
2800
|
-
coords:
|
|
2801
|
-
key:
|
|
2811
|
+
coords: l,
|
|
2812
|
+
key: l.z + "-" + l.x + "-" + l.y
|
|
2802
2813
|
});
|
|
2803
|
-
}, a),
|
|
2814
|
+
}, a), i;
|
|
2804
2815
|
}
|
|
2805
|
-
}), L.gridLayer.gridDebug = function(
|
|
2806
|
-
return new L.GridLayer.GridDebug(
|
|
2816
|
+
}), L.gridLayer.gridDebug = function(l) {
|
|
2817
|
+
return new L.GridLayer.GridDebug(l);
|
|
2807
2818
|
}, e.addLayer(L.gridLayer.gridDebug());
|
|
2808
2819
|
}
|
|
2809
2820
|
/**
|
|
2810
2821
|
* Handle Native Dialogs
|
|
2811
2822
|
* @type {function} handleDialog
|
|
2812
|
-
* @param {
|
|
2823
|
+
* @param {boolean} disableOutsideClick - Disable dialog closing when clicking outside the dialog
|
|
2813
2824
|
* @param {string} id - Unique dialog id
|
|
2814
2825
|
* @param {function|null} onOpen - Callback function called when dialog is opened
|
|
2815
2826
|
* @param {function|null} onClose - Callback function called when dialog is closed
|
|
2816
|
-
* @param {boolean}
|
|
2827
|
+
* @param {boolean} selfClose - Only allow the dialog to close from within. (In the case of multiple active dialogs)
|
|
2828
|
+
* @param {string|null} target - Selector that open the dialog
|
|
2817
2829
|
* @returns {{activators: NodeListOf<Element>, handleOpen: {function}, handleClose: {function}, ref: HTMLDialogElement}}
|
|
2818
2830
|
*/
|
|
2819
2831
|
static handleDialog({
|
|
2820
|
-
|
|
2832
|
+
disableOutsideClick: e = !1,
|
|
2821
2833
|
id: t = "",
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2834
|
+
onClose: a = null,
|
|
2835
|
+
onOpen: n = null,
|
|
2836
|
+
selfClose: l = !1,
|
|
2837
|
+
target: r = null
|
|
2825
2838
|
}) {
|
|
2826
|
-
const
|
|
2839
|
+
const i = r ? document.querySelectorAll(r) : [], s = document.getElementById(`${t}-dialog`), d = l ? s == null ? void 0 : s.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), h = [
|
|
2827
2840
|
"closing",
|
|
2828
2841
|
"closed",
|
|
2829
2842
|
"opening",
|
|
@@ -2831,66 +2844,66 @@ class g {
|
|
|
2831
2844
|
"outside",
|
|
2832
2845
|
"removed"
|
|
2833
2846
|
].reduce(
|
|
2834
|
-
(
|
|
2835
|
-
...
|
|
2836
|
-
[
|
|
2847
|
+
(u, x) => ({
|
|
2848
|
+
...u,
|
|
2849
|
+
[x]: new Event(x)
|
|
2837
2850
|
}),
|
|
2838
2851
|
{}
|
|
2839
|
-
),
|
|
2840
|
-
|
|
2841
|
-
if (
|
|
2842
|
-
const
|
|
2843
|
-
if (!(
|
|
2844
|
-
|
|
2852
|
+
), m = new MutationObserver((u, x) => {
|
|
2853
|
+
u.forEach(async (S) => {
|
|
2854
|
+
if (S.attributeName === "open") {
|
|
2855
|
+
const v = S.target;
|
|
2856
|
+
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2857
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(h.opening), v && await A(v), v == null || v.dispatchEvent(h.opened);
|
|
2845
2858
|
}
|
|
2846
2859
|
});
|
|
2847
|
-
}),
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2860
|
+
}), V = new MutationObserver((u, x) => {
|
|
2861
|
+
u.forEach((S) => {
|
|
2862
|
+
S.removedNodes.forEach((v) => {
|
|
2863
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", f), v.removeEventListener("close", M), v.dispatchEvent(h.removed), V == null || V.disconnect(), m == null || m.disconnect());
|
|
2851
2864
|
});
|
|
2852
2865
|
});
|
|
2853
2866
|
});
|
|
2854
|
-
|
|
2867
|
+
s && (m.observe(s, {
|
|
2855
2868
|
attributes: !0
|
|
2856
|
-
}),
|
|
2869
|
+
}), V.observe(document.body, {
|
|
2857
2870
|
attributes: !1,
|
|
2858
2871
|
subtree: !1,
|
|
2859
2872
|
childList: !0
|
|
2860
2873
|
}));
|
|
2861
2874
|
const C = () => {
|
|
2862
|
-
|
|
2863
|
-
},
|
|
2864
|
-
|
|
2865
|
-
},
|
|
2866
|
-
(
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2875
|
+
s == null || s.showModal();
|
|
2876
|
+
}, M = async ({ target: u }) => {
|
|
2877
|
+
u == null || u.classList.add("closing"), u == null || u.setAttribute("inert", ""), u == null || u.dispatchEvent(h.closing), u && await A(u), u == null || u.classList.remove("closing"), u == null || u.dispatchEvent(h.closed);
|
|
2878
|
+
}, f = async ({ target: u }) => {
|
|
2879
|
+
(u == null ? void 0 : u.nodeName) === "DIALOG" && (u == null || u.dispatchEvent(h.outside), s == null || s.close("outside"));
|
|
2880
|
+
}, A = (u) => Promise.allSettled(
|
|
2881
|
+
u == null ? void 0 : u.getAnimations().map((x) => x == null ? void 0 : x.finished)
|
|
2869
2882
|
);
|
|
2870
|
-
return !
|
|
2871
|
-
|
|
2872
|
-
C(),
|
|
2883
|
+
return !e && (s == null || s.addEventListener("click", f)), s == null || s.addEventListener("close", M), i == null || i.forEach((u) => {
|
|
2884
|
+
u.addEventListener("click", (x) => {
|
|
2885
|
+
C(), n && n(x, s);
|
|
2873
2886
|
});
|
|
2874
|
-
}),
|
|
2875
|
-
|
|
2876
|
-
|
|
2887
|
+
}), d == null || d.forEach((u) => {
|
|
2888
|
+
u.addEventListener("click", async (x) => {
|
|
2889
|
+
s == null || s.close("close"), a && a(x, s);
|
|
2877
2890
|
});
|
|
2878
2891
|
}), {
|
|
2879
|
-
activators:
|
|
2880
|
-
ref:
|
|
2892
|
+
activators: i,
|
|
2893
|
+
ref: s,
|
|
2881
2894
|
handleOpen: C,
|
|
2882
|
-
handleClose:
|
|
2895
|
+
handleClose: M
|
|
2883
2896
|
};
|
|
2884
2897
|
}
|
|
2885
2898
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2886
|
-
return
|
|
2899
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2887
2900
|
}
|
|
2888
2901
|
static initObserver(e, t, a = null) {
|
|
2889
2902
|
if (!e)
|
|
2890
2903
|
return;
|
|
2891
2904
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2892
|
-
new IntersectionObserver(async (r,
|
|
2893
|
-
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs:
|
|
2905
|
+
new IntersectionObserver(async (r, i) => {
|
|
2906
|
+
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: i, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: i, entry: r[0], entries: r });
|
|
2894
2907
|
}, a).observe(e);
|
|
2895
2908
|
}
|
|
2896
2909
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2898,11 +2911,11 @@ class g {
|
|
|
2898
2911
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2899
2912
|
}
|
|
2900
2913
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2901
|
-
return new Promise(function(
|
|
2902
|
-
let
|
|
2903
|
-
if (t &&
|
|
2904
|
-
return
|
|
2905
|
-
|
|
2914
|
+
return new Promise(function(l, r) {
|
|
2915
|
+
let i = document.getElementById(t);
|
|
2916
|
+
if (t && i && i.dataset.loaded === "true")
|
|
2917
|
+
return l({ alreadyLoaded: !0, id: t });
|
|
2918
|
+
i || (i = document.createElement("script"), i.src = e, i.dataset.loaded = "false", t && (i.id = t), i.type = n ? "module" : "text/javascript", i.async = a, document.body.appendChild(i), i.onload = () => (i.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), i.onerror = () => r(!1));
|
|
2906
2919
|
});
|
|
2907
2920
|
}
|
|
2908
2921
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2934,15 +2947,15 @@ class g {
|
|
|
2934
2947
|
const a = Math.abs(e), n = Math.sign(e);
|
|
2935
2948
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2936
2949
|
}
|
|
2937
|
-
static async logRequest(e = null, t = null, a = null, n = null,
|
|
2950
|
+
static async logRequest(e = null, t = null, a = null, n = null, l = null) {
|
|
2938
2951
|
const r = {
|
|
2939
2952
|
name: e,
|
|
2940
2953
|
uuid: t,
|
|
2941
2954
|
ip: a,
|
|
2942
2955
|
url: n,
|
|
2943
|
-
data:
|
|
2956
|
+
data: l
|
|
2944
2957
|
};
|
|
2945
|
-
return await
|
|
2958
|
+
return await H.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2946
2959
|
}
|
|
2947
2960
|
static loadAds() {
|
|
2948
2961
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2958,10 +2971,10 @@ class g {
|
|
|
2958
2971
|
static async loadCustomScript({ name: e = null, id: t = "", module: a = !1 } = {}) {
|
|
2959
2972
|
const n = Math.floor(Date.now() / 1e3);
|
|
2960
2973
|
if (e) {
|
|
2961
|
-
const
|
|
2974
|
+
const l = "/scripts/" + e + ".js?v=" + n;
|
|
2962
2975
|
try {
|
|
2963
|
-
return await
|
|
2964
|
-
src:
|
|
2976
|
+
return await H.injectScript({
|
|
2977
|
+
src: l,
|
|
2965
2978
|
id: t || e,
|
|
2966
2979
|
async: !1,
|
|
2967
2980
|
module: a
|
|
@@ -2976,11 +2989,11 @@ class g {
|
|
|
2976
2989
|
if (window.options.googleMapsLoaded === !0)
|
|
2977
2990
|
return;
|
|
2978
2991
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2979
|
-
await
|
|
2992
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2980
2993
|
}
|
|
2981
2994
|
static async loadLeafletApi() {
|
|
2982
2995
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2983
|
-
await
|
|
2996
|
+
await H.injectLink({ href: t, id: "leafletCss" }), await H.injectLink({ href: n, id: "gestureCss" }), await H.injectScript({ src: e, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2984
2997
|
src: a,
|
|
2985
2998
|
id: "gestureJs",
|
|
2986
2999
|
async: !1
|
|
@@ -2995,7 +3008,7 @@ class g {
|
|
|
2995
3008
|
}
|
|
2996
3009
|
static async loadSwiper() {
|
|
2997
3010
|
const e = "/slider/swiper-bundle.min.js";
|
|
2998
|
-
await
|
|
3011
|
+
await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2999
3012
|
}
|
|
3000
3013
|
static async makeSearchFetchCall(e) {
|
|
3001
3014
|
try {
|
|
@@ -3027,18 +3040,18 @@ class g {
|
|
|
3027
3040
|
name: t = null,
|
|
3028
3041
|
first: a = null,
|
|
3029
3042
|
middle: n = null,
|
|
3030
|
-
last:
|
|
3043
|
+
last: l = null,
|
|
3031
3044
|
min: r = null,
|
|
3032
|
-
max:
|
|
3033
|
-
city:
|
|
3045
|
+
max: i = null,
|
|
3046
|
+
city: s = null,
|
|
3034
3047
|
state: d = null,
|
|
3035
3048
|
vin: h = null,
|
|
3036
|
-
license:
|
|
3037
|
-
token:
|
|
3038
|
-
phone:
|
|
3039
|
-
} = e || {},
|
|
3040
|
-
let
|
|
3041
|
-
return t && t !== "" &&
|
|
3049
|
+
license: m = null,
|
|
3050
|
+
token: V = null,
|
|
3051
|
+
phone: C = null
|
|
3052
|
+
} = e || {}, M = t && t !== "", f = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
|
|
3053
|
+
let u = [];
|
|
3054
|
+
return t && t !== "" && u.push("name=" + t), M || (a && a !== "" && u.push("first=" + a), n && n !== "" && u.push("middle=" + n), l && l !== "" && u.push("last=" + l)), f && A ? parseInt(r) > parseInt(i) ? (u.push("min=" + i), u.push("max=" + r)) : (u.push("min=" + r), u.push("max=" + i)) : (f && u.push("min=" + r), A && u.push("max=" + i)), C && C !== "" && u.push("phone=" + C), s && s !== "" && u.push("city=" + s), m && m !== "" && u.push("license=" + m), h && h !== "" && u.push("vin=" + h), d && d !== "" && u.push("state=" + d), V && V !== "" && u.push("token=" + V), u.join("&");
|
|
3042
3055
|
}
|
|
3043
3056
|
static padTo2Digits(e) {
|
|
3044
3057
|
return e.toString().padStart(2, "0");
|
|
@@ -3051,23 +3064,23 @@ class g {
|
|
|
3051
3064
|
const {
|
|
3052
3065
|
addressesOnly: a = !1,
|
|
3053
3066
|
useCitySearch: n = !1,
|
|
3054
|
-
useCityStateSearch:
|
|
3067
|
+
useCityStateSearch: l = !1,
|
|
3055
3068
|
useSearch: r = !1,
|
|
3056
|
-
useLocation:
|
|
3057
|
-
state:
|
|
3069
|
+
useLocation: i = !0,
|
|
3070
|
+
state: s = "",
|
|
3058
3071
|
useGoogle: d = !1
|
|
3059
|
-
} = t ?? {}, { tolken: h = null, ip:
|
|
3072
|
+
} = t ?? {}, { tolken: h = null, ip: m = null } = await H.getHeaders(), C = [
|
|
3060
3073
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3061
3074
|
"addressesOnly=" + a,
|
|
3062
3075
|
"useSearch=" + r,
|
|
3063
3076
|
"useCitySearch=" + n,
|
|
3064
|
-
"useCityStateSearch=" +
|
|
3065
|
-
"useLocation=" +
|
|
3077
|
+
"useCityStateSearch=" + l,
|
|
3078
|
+
"useLocation=" + i,
|
|
3066
3079
|
"useGoogle=" + d
|
|
3067
3080
|
];
|
|
3068
|
-
|
|
3069
|
-
const
|
|
3070
|
-
return await
|
|
3081
|
+
s && s !== "" && !l && C.push("state=" + s), h && h !== "" && C.push("tolken=" + h), m && m !== "" && C.push("ip=" + m);
|
|
3082
|
+
const M = C.join("&"), A = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
3083
|
+
return await H.makeSearchFetchCall(A);
|
|
3071
3084
|
}
|
|
3072
3085
|
static removeElements(e) {
|
|
3073
3086
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3086,15 +3099,15 @@ class g {
|
|
|
3086
3099
|
});
|
|
3087
3100
|
}
|
|
3088
3101
|
static searchInStates(e) {
|
|
3089
|
-
const t =
|
|
3090
|
-
let n = t.find((
|
|
3091
|
-
return n || (n = t.find((
|
|
3102
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
3103
|
+
let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
|
|
3104
|
+
return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
|
|
3092
3105
|
}
|
|
3093
3106
|
static sendWoopraEvent(e, t) {
|
|
3094
3107
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3095
3108
|
}
|
|
3096
3109
|
static setBoundsEntries(e, t = "bounds") {
|
|
3097
|
-
const a =
|
|
3110
|
+
const a = H.getBoundsEntries(t);
|
|
3098
3111
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3099
3112
|
}
|
|
3100
3113
|
static async setCityState(e = null) {
|
|
@@ -3102,26 +3115,26 @@ class g {
|
|
|
3102
3115
|
if (!t)
|
|
3103
3116
|
return e;
|
|
3104
3117
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3105
|
-
let [a = null, n = null] = t.split(",").map((
|
|
3106
|
-
if (
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3118
|
+
let [a = null, n = null] = t.split(",").map((l) => l.trim());
|
|
3119
|
+
if (H.getStates(), a && !n) {
|
|
3120
|
+
const l = this.searchInStates(a);
|
|
3121
|
+
l && (a = null, n = l.short);
|
|
3109
3122
|
}
|
|
3110
3123
|
if (!n && a) {
|
|
3111
|
-
const
|
|
3112
|
-
|
|
3124
|
+
const l = this.searchInStates(a);
|
|
3125
|
+
l && (n = l.short);
|
|
3113
3126
|
}
|
|
3114
3127
|
if (a && !n) {
|
|
3115
|
-
const
|
|
3128
|
+
const l = a.split(" "), r = l[l.length - 1];
|
|
3116
3129
|
if (r.length) {
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3130
|
+
const i = this.searchInStates(r);
|
|
3131
|
+
i && (n = i.short, a = l.slice(0, -1).join(" "));
|
|
3119
3132
|
}
|
|
3120
3133
|
}
|
|
3121
3134
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3122
3135
|
}
|
|
3123
3136
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3124
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3137
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
3125
3138
|
}
|
|
3126
3139
|
static stickyHeader(e = ".nav") {
|
|
3127
3140
|
const t = document.querySelector(e);
|
|
@@ -3148,7 +3161,7 @@ class g {
|
|
|
3148
3161
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3149
3162
|
}
|
|
3150
3163
|
static useLayerTitle(e, t) {
|
|
3151
|
-
const a =
|
|
3164
|
+
const a = H.getLayerTitle(e);
|
|
3152
3165
|
L.tileLayer(a, {
|
|
3153
3166
|
maxNativeZoom: 19,
|
|
3154
3167
|
maxZoom: 25,
|
|
@@ -3157,7 +3170,7 @@ class g {
|
|
|
3157
3170
|
}).addTo(t);
|
|
3158
3171
|
}
|
|
3159
3172
|
static ucWords(e) {
|
|
3160
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3173
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
3161
3174
|
}
|
|
3162
3175
|
/**
|
|
3163
3176
|
* HOW TO USE EVENTS
|
|
@@ -3204,12 +3217,12 @@ export {
|
|
|
3204
3217
|
J1 as Alert,
|
|
3205
3218
|
_1 as Autocomplete,
|
|
3206
3219
|
Y1 as Badge,
|
|
3207
|
-
|
|
3220
|
+
F as Button,
|
|
3208
3221
|
K1 as ButtonGroup,
|
|
3209
3222
|
X1 as Card,
|
|
3210
3223
|
S2 as CardSlider,
|
|
3211
3224
|
e2 as Checkbox,
|
|
3212
|
-
|
|
3225
|
+
H as Common,
|
|
3213
3226
|
f2 as ContactForm,
|
|
3214
3227
|
t2 as Container,
|
|
3215
3228
|
V2 as ContentCard,
|
|
@@ -3218,7 +3231,7 @@ export {
|
|
|
3218
3231
|
s2 as Dots,
|
|
3219
3232
|
C2 as FlexItem,
|
|
3220
3233
|
g2 as FunnelHeader,
|
|
3221
|
-
|
|
3234
|
+
y as Icon,
|
|
3222
3235
|
l2 as LoadingBar,
|
|
3223
3236
|
i2 as Popover,
|
|
3224
3237
|
r2 as ProcessingSpinner,
|
|
@@ -3232,13 +3245,13 @@ export {
|
|
|
3232
3245
|
L2 as StackedListItem,
|
|
3233
3246
|
m2 as Stars,
|
|
3234
3247
|
v1 as TextArea,
|
|
3235
|
-
|
|
3248
|
+
D as Textbox,
|
|
3236
3249
|
x2 as addClass,
|
|
3237
3250
|
M2 as colors,
|
|
3238
3251
|
O as corePlugins,
|
|
3239
3252
|
b2 as elerisPreset,
|
|
3240
|
-
|
|
3241
|
-
|
|
3253
|
+
B as extensions,
|
|
3254
|
+
q as plugins,
|
|
3242
3255
|
v2 as propertyPreset,
|
|
3243
3256
|
A2 as removeClass,
|
|
3244
3257
|
w2 as validateEmail,
|