@vehiclehistory/property-lib 0.0.73 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.es.js +646 -642
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as c, 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 m from "classnames";
|
|
4
4
|
const Q = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -491,19 +491,19 @@ const Q = {
|
|
|
491
491
|
youtube: {
|
|
492
492
|
path: '<path d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />'
|
|
493
493
|
}
|
|
494
|
-
}, _ = (
|
|
495
|
-
color:
|
|
494
|
+
}, _ = (d) => J[d], Y = ({
|
|
495
|
+
color: d = "text-current",
|
|
496
496
|
className: e,
|
|
497
497
|
name: t,
|
|
498
498
|
size: a = "medium",
|
|
499
499
|
viewBox: n = "0 0 20 20"
|
|
500
500
|
}) => {
|
|
501
|
-
const s = _(t), [r,
|
|
501
|
+
const s = _(t), [r, i] = Z(d), [l, o] = Z(s);
|
|
502
502
|
return N(() => {
|
|
503
|
-
|
|
503
|
+
o(s);
|
|
504
504
|
}, [s]), N(() => {
|
|
505
|
-
|
|
506
|
-
}, [
|
|
505
|
+
i(d);
|
|
506
|
+
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
|
|
507
507
|
"svg",
|
|
508
508
|
{
|
|
509
509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -512,12 +512,12 @@ const Q = {
|
|
|
512
512
|
role: "presentation",
|
|
513
513
|
viewBox: n,
|
|
514
514
|
dangerouslySetInnerHTML: {
|
|
515
|
-
__html:
|
|
515
|
+
__html: l && l.path
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
}, A =
|
|
520
|
-
children:
|
|
519
|
+
}, A = b(Y), K = ({
|
|
520
|
+
children: d,
|
|
521
521
|
className: e,
|
|
522
522
|
clickHandler: t,
|
|
523
523
|
panelClass: a,
|
|
@@ -525,26 +525,26 @@ const Q = {
|
|
|
525
525
|
unmount: s = !0,
|
|
526
526
|
isOpen: r = !1
|
|
527
527
|
}) => {
|
|
528
|
-
const [
|
|
529
|
-
return /* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
528
|
+
const [i, l] = Z(r);
|
|
529
|
+
return /* @__PURE__ */ c("div", { className: m("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: m(
|
|
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
|
+
l(!i), t && t(!i);
|
|
544
544
|
},
|
|
545
545
|
children: [
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
546
|
+
/* @__PURE__ */ c("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
547
|
+
/* @__PURE__ */ c("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ c(
|
|
548
548
|
A,
|
|
549
549
|
{
|
|
550
550
|
name: "chevronDown",
|
|
@@ -555,39 +555,39 @@ const Q = {
|
|
|
555
555
|
]
|
|
556
556
|
}
|
|
557
557
|
),
|
|
558
|
-
s &&
|
|
558
|
+
s && i && /* @__PURE__ */ c(
|
|
559
559
|
"div",
|
|
560
560
|
{
|
|
561
|
-
className:
|
|
561
|
+
className: m(
|
|
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
|
-
children:
|
|
565
|
+
children: d
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
|
-
!s && /* @__PURE__ */
|
|
568
|
+
!s && /* @__PURE__ */ c(
|
|
569
569
|
"div",
|
|
570
570
|
{
|
|
571
|
-
className:
|
|
571
|
+
className: m(
|
|
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
|
-
children:
|
|
576
|
+
children: d
|
|
577
577
|
}
|
|
578
578
|
)
|
|
579
579
|
] }) });
|
|
580
|
-
}, Q1 =
|
|
581
|
-
children:
|
|
580
|
+
}, Q1 = b(K), X = ({
|
|
581
|
+
children: d,
|
|
582
582
|
className: e = "",
|
|
583
583
|
messages: t = [],
|
|
584
584
|
messagesClass: a,
|
|
585
585
|
title: n = "",
|
|
586
586
|
titleClass: s = "",
|
|
587
587
|
props: r = {},
|
|
588
|
-
type:
|
|
588
|
+
type: i = "error"
|
|
589
589
|
}) => {
|
|
590
|
-
const
|
|
590
|
+
const l = {
|
|
591
591
|
error: {
|
|
592
592
|
icon: "error",
|
|
593
593
|
iconColor: "text-red-500",
|
|
@@ -608,94 +608,94 @@ const Q = {
|
|
|
608
608
|
iconColor: "text-yellow-500",
|
|
609
609
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
610
610
|
}
|
|
611
|
-
}, { icon:
|
|
612
|
-
return /* @__PURE__ */
|
|
611
|
+
}, { icon: o, iconColor: u, styles: p } = l[i];
|
|
612
|
+
return /* @__PURE__ */ c(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
615
|
-
id:
|
|
616
|
-
className:
|
|
615
|
+
id: i,
|
|
616
|
+
className: m(
|
|
617
617
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
618
618
|
p,
|
|
619
619
|
e
|
|
620
620
|
),
|
|
621
621
|
...r,
|
|
622
|
-
children: /* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
622
|
+
children: /* @__PURE__ */ g("div", { className: "flex", children: [
|
|
623
|
+
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
624
624
|
A,
|
|
625
625
|
{
|
|
626
|
-
name:
|
|
626
|
+
name: o,
|
|
627
627
|
viewBox: "0 0 24 24",
|
|
628
|
-
className:
|
|
628
|
+
className: u,
|
|
629
629
|
size: "xSmall"
|
|
630
630
|
}
|
|
631
631
|
) }),
|
|
632
|
-
/* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
t.length > 0 ? /* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
633
|
+
/* @__PURE__ */ c("div", { className: m("font-medium text-sm", s), children: n }),
|
|
634
|
+
t.length > 0 ? /* @__PURE__ */ c(
|
|
635
635
|
"ul",
|
|
636
636
|
{
|
|
637
637
|
role: "list",
|
|
638
|
-
className:
|
|
638
|
+
className: m(
|
|
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__ */ c("li", { children: V }, C))
|
|
643
643
|
}
|
|
644
644
|
) : "",
|
|
645
|
-
|
|
645
|
+
d
|
|
646
646
|
] })
|
|
647
647
|
] })
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
|
-
}, J1 =
|
|
651
|
-
autoFocus:
|
|
650
|
+
}, J1 = b(X), e1 = ({
|
|
651
|
+
autoFocus: d = !1,
|
|
652
652
|
className: e = "",
|
|
653
653
|
dataSearch: t = "container",
|
|
654
654
|
defaultValue: a = "",
|
|
655
655
|
floatingLabel: n = "",
|
|
656
656
|
id: s = "",
|
|
657
657
|
inputClass: r = "",
|
|
658
|
-
leftIcon:
|
|
659
|
-
mobileBackdrop:
|
|
660
|
-
name:
|
|
661
|
-
options:
|
|
658
|
+
leftIcon: i = "homeSearch",
|
|
659
|
+
mobileBackdrop: l = !1,
|
|
660
|
+
name: o = "",
|
|
661
|
+
options: u = [],
|
|
662
662
|
placeholder: p = "",
|
|
663
|
-
props:
|
|
664
|
-
required:
|
|
665
|
-
showSearchIcon:
|
|
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: x = null,
|
|
668
|
+
title: h = "",
|
|
669
|
+
type: y
|
|
670
|
+
}) => /* @__PURE__ */ g(
|
|
671
671
|
"div",
|
|
672
672
|
{
|
|
673
673
|
id: s,
|
|
674
674
|
"data-search": t,
|
|
675
|
-
"data-search-type":
|
|
676
|
-
className:
|
|
677
|
-
style:
|
|
675
|
+
"data-search-type": y,
|
|
676
|
+
className: m("Autocomplete", e),
|
|
677
|
+
style: x ? { ...x } : null,
|
|
678
678
|
children: [
|
|
679
|
-
|
|
679
|
+
M && /* @__PURE__ */ g(
|
|
680
680
|
"span",
|
|
681
681
|
{
|
|
682
|
-
className:
|
|
682
|
+
className: m(
|
|
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": l
|
|
686
686
|
}
|
|
687
687
|
),
|
|
688
688
|
children: [
|
|
689
|
-
/* @__PURE__ */
|
|
689
|
+
/* @__PURE__ */ c(
|
|
690
690
|
A,
|
|
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
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ c(
|
|
699
699
|
A,
|
|
700
700
|
{
|
|
701
701
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
@@ -707,15 +707,15 @@ const Q = {
|
|
|
707
707
|
]
|
|
708
708
|
}
|
|
709
709
|
),
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ c(
|
|
711
711
|
"input",
|
|
712
712
|
{
|
|
713
713
|
"data-lpignore": "true",
|
|
714
|
-
autoFocus:
|
|
715
|
-
className:
|
|
714
|
+
autoFocus: d,
|
|
715
|
+
className: m(
|
|
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
729
|
placeholder: !p && n ? " " : p,
|
|
730
730
|
type: "search",
|
|
731
|
-
name:
|
|
731
|
+
name: o || "search-input",
|
|
732
732
|
"data-id": "search-input",
|
|
733
|
-
...
|
|
733
|
+
...V
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
|
-
n && /* @__PURE__ */
|
|
736
|
+
n && /* @__PURE__ */ c(
|
|
737
737
|
"label",
|
|
738
738
|
{
|
|
739
|
-
className:
|
|
739
|
+
className: m(
|
|
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"
|
|
@@ -748,12 +748,12 @@ const Q = {
|
|
|
748
748
|
children: n
|
|
749
749
|
}
|
|
750
750
|
),
|
|
751
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ c(
|
|
752
752
|
"span",
|
|
753
753
|
{
|
|
754
754
|
"data-id": "search-clear",
|
|
755
755
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
756
|
-
children: /* @__PURE__ */
|
|
756
|
+
children: /* @__PURE__ */ c(
|
|
757
757
|
A,
|
|
758
758
|
{
|
|
759
759
|
className: "cursor-pointer text-gray-500",
|
|
@@ -764,12 +764,12 @@ const Q = {
|
|
|
764
764
|
)
|
|
765
765
|
}
|
|
766
766
|
),
|
|
767
|
-
/* @__PURE__ */
|
|
767
|
+
/* @__PURE__ */ c(
|
|
768
768
|
"span",
|
|
769
769
|
{
|
|
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
|
-
children: /* @__PURE__ */
|
|
772
|
+
children: /* @__PURE__ */ c(
|
|
773
773
|
A,
|
|
774
774
|
{
|
|
775
775
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
@@ -780,32 +780,32 @@ const Q = {
|
|
|
780
780
|
)
|
|
781
781
|
}
|
|
782
782
|
),
|
|
783
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ g(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
786
|
"data-id": "search-dropdown",
|
|
787
787
|
className: "dropdown absolute z-[15] w-full bg-white shadow-lg max-h-56 rounded-bl rounded-br py-1 overflow-auto focus:outline-none sm:text-sm sm:custom-scrollbar border-x border-b border-gray-300 hidden",
|
|
788
788
|
children: [
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ c("div", { "data-id": "search-dropdown-header" }),
|
|
790
|
+
/* @__PURE__ */ c(
|
|
791
791
|
"ul",
|
|
792
792
|
{
|
|
793
793
|
"data-id": "search-dropdown-body",
|
|
794
794
|
role: "listbox",
|
|
795
|
-
"data-title":
|
|
795
|
+
"data-title": h,
|
|
796
796
|
"aria-labelledby": "Label",
|
|
797
797
|
"aria-activedescendant": "search-item-0",
|
|
798
|
-
children:
|
|
798
|
+
children: u.length > 0 ? u.map((S, v) => /* @__PURE__ */ c(
|
|
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
|
)
|
|
@@ -815,14 +815,14 @@ const Q = {
|
|
|
815
815
|
]
|
|
816
816
|
}
|
|
817
817
|
), _1 = e1, t1 = ({
|
|
818
|
-
children:
|
|
818
|
+
children: d,
|
|
819
819
|
className: e,
|
|
820
820
|
size: t = "sm",
|
|
821
821
|
tag: a = "span"
|
|
822
|
-
}) => /* @__PURE__ */
|
|
822
|
+
}) => /* @__PURE__ */ c(
|
|
823
823
|
a || "span",
|
|
824
824
|
{
|
|
825
|
-
className:
|
|
825
|
+
className: m(
|
|
826
826
|
" bg-gray-200 font-semibold py-1 px-2 rounded",
|
|
827
827
|
{
|
|
828
828
|
"text-sm": t === "sm",
|
|
@@ -831,48 +831,48 @@ const Q = {
|
|
|
831
831
|
},
|
|
832
832
|
e
|
|
833
833
|
),
|
|
834
|
-
children:
|
|
834
|
+
children: d
|
|
835
835
|
}
|
|
836
836
|
), Y1 = t1, a1 = ({
|
|
837
|
-
borderless:
|
|
837
|
+
borderless: d = !1,
|
|
838
838
|
leftIcon: e,
|
|
839
839
|
leftIconProps: t = {},
|
|
840
840
|
children: a,
|
|
841
841
|
className: n = "",
|
|
842
842
|
disabled: s = !1,
|
|
843
843
|
href: r,
|
|
844
|
-
props:
|
|
845
|
-
rightIcon:
|
|
846
|
-
rightIconProps:
|
|
847
|
-
rounded:
|
|
844
|
+
props: i = {},
|
|
845
|
+
rightIcon: l,
|
|
846
|
+
rightIconProps: o = {},
|
|
847
|
+
rounded: u = !1,
|
|
848
848
|
size: p = "md",
|
|
849
|
-
type:
|
|
850
|
-
uppercase:
|
|
851
|
-
variation:
|
|
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: m(
|
|
859
859
|
"button",
|
|
860
860
|
{
|
|
861
|
-
[`button--${
|
|
861
|
+
[`button--${M}`]: M,
|
|
862
862
|
[`button--${p}`]: p,
|
|
863
|
-
"button--rounded":
|
|
863
|
+
"button--rounded": u,
|
|
864
864
|
"button--disabled": s,
|
|
865
865
|
"button--custom-link": r,
|
|
866
|
-
"button--uppercase":
|
|
867
|
-
"button--borderless":
|
|
866
|
+
"button--uppercase": C,
|
|
867
|
+
"button--borderless": d || M === "link"
|
|
868
868
|
},
|
|
869
869
|
n
|
|
870
870
|
),
|
|
871
871
|
disabled: s,
|
|
872
872
|
href: r,
|
|
873
|
-
...
|
|
873
|
+
...i,
|
|
874
874
|
children: [
|
|
875
|
-
e && /* @__PURE__ */
|
|
875
|
+
e && /* @__PURE__ */ c(
|
|
876
876
|
A,
|
|
877
877
|
{
|
|
878
878
|
name: e,
|
|
@@ -882,69 +882,69 @@ const Q = {
|
|
|
882
882
|
}
|
|
883
883
|
),
|
|
884
884
|
a,
|
|
885
|
-
|
|
885
|
+
l && /* @__PURE__ */ c(
|
|
886
886
|
A,
|
|
887
887
|
{
|
|
888
|
-
name:
|
|
888
|
+
name: l,
|
|
889
889
|
size: p === "md" ? "small" : "xSmall",
|
|
890
890
|
viewBox: "0 0 24 24",
|
|
891
|
-
...
|
|
891
|
+
...o
|
|
892
892
|
}
|
|
893
893
|
)
|
|
894
894
|
]
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
|
-
},
|
|
898
|
-
block:
|
|
897
|
+
}, F = b(a1), n1 = ({ children: d, className: e }) => /* @__PURE__ */ c("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), K1 = n1, s1 = ({
|
|
898
|
+
block: d = !1,
|
|
899
899
|
borderless: e = !1,
|
|
900
900
|
children: t,
|
|
901
901
|
className: a = "",
|
|
902
902
|
divider: n = !0,
|
|
903
903
|
inset: s = !0,
|
|
904
904
|
id: r = null,
|
|
905
|
-
role:
|
|
906
|
-
}) => /* @__PURE__ */
|
|
905
|
+
role: i = null
|
|
906
|
+
}) => /* @__PURE__ */ c(
|
|
907
907
|
"div",
|
|
908
908
|
{
|
|
909
|
-
className:
|
|
909
|
+
className: m(
|
|
910
910
|
"bg-white",
|
|
911
911
|
{
|
|
912
912
|
f1: !e,
|
|
913
|
-
f2:
|
|
913
|
+
f2: d,
|
|
914
914
|
f3: n,
|
|
915
915
|
f4: s
|
|
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 = ({
|
|
924
|
-
checked:
|
|
924
|
+
checked: d = !1,
|
|
925
925
|
children: e,
|
|
926
926
|
className: t = "",
|
|
927
927
|
error: a = !1,
|
|
928
928
|
inputClass: n,
|
|
929
929
|
id: s = "",
|
|
930
930
|
label: r = "",
|
|
931
|
-
name:
|
|
932
|
-
props:
|
|
933
|
-
variation:
|
|
934
|
-
value:
|
|
931
|
+
name: i = "",
|
|
932
|
+
props: l = {},
|
|
933
|
+
variation: o = "primary",
|
|
934
|
+
value: u = ""
|
|
935
935
|
}) => {
|
|
936
|
-
const p = r ? "div" : "label",
|
|
937
|
-
return /* @__PURE__ */
|
|
936
|
+
const p = r ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
937
|
+
return /* @__PURE__ */ g(
|
|
938
938
|
p,
|
|
939
939
|
{
|
|
940
|
-
className:
|
|
941
|
-
...
|
|
940
|
+
className: m("checkbox flex items-center", o, t),
|
|
941
|
+
...V,
|
|
942
942
|
children: [
|
|
943
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ c(
|
|
944
944
|
"input",
|
|
945
945
|
{
|
|
946
|
-
checked:
|
|
947
|
-
className:
|
|
946
|
+
checked: d,
|
|
947
|
+
className: m(
|
|
948
948
|
"form-checkbox ",
|
|
949
949
|
{
|
|
950
950
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
@@ -952,33 +952,33 @@ const Q = {
|
|
|
952
952
|
n
|
|
953
953
|
),
|
|
954
954
|
id: s,
|
|
955
|
-
name:
|
|
955
|
+
name: i,
|
|
956
956
|
type: "checkbox",
|
|
957
|
-
value:
|
|
958
|
-
...
|
|
957
|
+
value: u,
|
|
958
|
+
...l
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
961
|
e
|
|
962
962
|
]
|
|
963
963
|
}
|
|
964
964
|
);
|
|
965
|
-
}, e2 =
|
|
966
|
-
/* @__PURE__ */
|
|
965
|
+
}, e2 = b(l1), r1 = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
966
|
+
/* @__PURE__ */ c(
|
|
967
967
|
"main",
|
|
968
968
|
{
|
|
969
|
-
className:
|
|
969
|
+
className: m(
|
|
970
970
|
"w-full md:mb-0 flex-1 md:block lg:max-w-container",
|
|
971
971
|
{
|
|
972
972
|
"lg:order-2": t === "left"
|
|
973
973
|
}
|
|
974
974
|
),
|
|
975
|
-
children:
|
|
975
|
+
children: d
|
|
976
976
|
}
|
|
977
977
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ c(
|
|
979
979
|
"aside",
|
|
980
980
|
{
|
|
981
|
-
className:
|
|
981
|
+
className: m(
|
|
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,62 +988,62 @@ const Q = {
|
|
|
988
988
|
children: e
|
|
989
989
|
}
|
|
990
990
|
)
|
|
991
|
-
] }), t2 =
|
|
992
|
-
activator:
|
|
991
|
+
] }), t2 = b(r1), i1 = ({
|
|
992
|
+
activator: d,
|
|
993
993
|
id: e = "",
|
|
994
994
|
children: t,
|
|
995
995
|
className: a = "",
|
|
996
996
|
contentClass: n = "",
|
|
997
997
|
dark: s = !1,
|
|
998
998
|
footer: r,
|
|
999
|
-
fullMobile:
|
|
1000
|
-
headerClass:
|
|
1001
|
-
hideClose:
|
|
1002
|
-
iconSize:
|
|
999
|
+
fullMobile: i = !0,
|
|
1000
|
+
headerClass: l = "",
|
|
1001
|
+
hideClose: o = !1,
|
|
1002
|
+
iconSize: u = "medium",
|
|
1003
1003
|
preventPageScroll: p = !0,
|
|
1004
|
-
stickyHeader:
|
|
1005
|
-
title:
|
|
1006
|
-
titleClass:
|
|
1004
|
+
stickyHeader: V = !1,
|
|
1005
|
+
title: C = "",
|
|
1006
|
+
titleClass: M = "",
|
|
1007
1007
|
useFormMethod: f = !0
|
|
1008
1008
|
}) => {
|
|
1009
|
-
const
|
|
1010
|
-
return /* @__PURE__ */
|
|
1011
|
-
|
|
1012
|
-
/* @__PURE__ */
|
|
1009
|
+
const x = f ? "form" : "div";
|
|
1010
|
+
return /* @__PURE__ */ g(k, { children: [
|
|
1011
|
+
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
1012
|
+
/* @__PURE__ */ c(
|
|
1013
1013
|
"dialog",
|
|
1014
1014
|
{
|
|
1015
1015
|
inert: "",
|
|
1016
1016
|
id: `${e}-dialog`,
|
|
1017
|
-
className:
|
|
1017
|
+
className: m(
|
|
1018
1018
|
"dialog",
|
|
1019
1019
|
{
|
|
1020
|
-
"dialog-full-mobile":
|
|
1020
|
+
"dialog-full-mobile": i,
|
|
1021
1021
|
dark: s,
|
|
1022
1022
|
"prevent-scroll": p
|
|
1023
1023
|
},
|
|
1024
1024
|
a
|
|
1025
1025
|
),
|
|
1026
|
-
children: /* @__PURE__ */
|
|
1027
|
-
|
|
1026
|
+
children: /* @__PURE__ */ g(
|
|
1027
|
+
x,
|
|
1028
1028
|
{
|
|
1029
1029
|
className: "dialog-container",
|
|
1030
1030
|
method: f ? "dialog" : null,
|
|
1031
1031
|
children: [
|
|
1032
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ g(
|
|
1033
1033
|
"header",
|
|
1034
1034
|
{
|
|
1035
|
-
className:
|
|
1035
|
+
className: m(
|
|
1036
1036
|
"dialog-header",
|
|
1037
1037
|
{
|
|
1038
|
-
"sticky top-0 bg-white z-10":
|
|
1039
|
-
"!pb-0 border-0 justify-end": !
|
|
1040
|
-
"justify-between border-b":
|
|
1038
|
+
"sticky top-0 bg-white z-10": V,
|
|
1039
|
+
"!pb-0 border-0 justify-end": !C,
|
|
1040
|
+
"justify-between border-b": C
|
|
1041
1041
|
},
|
|
1042
|
-
|
|
1042
|
+
l
|
|
1043
1043
|
),
|
|
1044
1044
|
children: [
|
|
1045
|
-
|
|
1046
|
-
!
|
|
1045
|
+
C && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: M, children: C }),
|
|
1046
|
+
!o && /* @__PURE__ */ c(
|
|
1047
1047
|
"button",
|
|
1048
1048
|
{
|
|
1049
1049
|
type: "button",
|
|
@@ -1051,11 +1051,11 @@ const Q = {
|
|
|
1051
1051
|
className: "dialog-close",
|
|
1052
1052
|
"data-dialog-close": "",
|
|
1053
1053
|
value: "close",
|
|
1054
|
-
children: /* @__PURE__ */
|
|
1054
|
+
children: /* @__PURE__ */ c(
|
|
1055
1055
|
A,
|
|
1056
1056
|
{
|
|
1057
1057
|
name: "close",
|
|
1058
|
-
size:
|
|
1058
|
+
size: u,
|
|
1059
1059
|
className: "pointer-events-none"
|
|
1060
1060
|
}
|
|
1061
1061
|
)
|
|
@@ -1064,90 +1064,90 @@ const Q = {
|
|
|
1064
1064
|
]
|
|
1065
1065
|
}
|
|
1066
1066
|
),
|
|
1067
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ c(
|
|
1068
1068
|
"div",
|
|
1069
1069
|
{
|
|
1070
1070
|
id: `${e}-dialog-content`,
|
|
1071
|
-
className:
|
|
1071
|
+
className: m("dialog-content", n),
|
|
1072
1072
|
children: t
|
|
1073
1073
|
}
|
|
1074
1074
|
),
|
|
1075
|
-
r && /* @__PURE__ */
|
|
1075
|
+
r && /* @__PURE__ */ c("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1076
1076
|
]
|
|
1077
1077
|
}
|
|
1078
1078
|
)
|
|
1079
1079
|
}
|
|
1080
1080
|
)
|
|
1081
1081
|
] });
|
|
1082
|
-
}, a2 =
|
|
1083
|
-
activator:
|
|
1082
|
+
}, a2 = b(i1), o1 = ({
|
|
1083
|
+
activator: d,
|
|
1084
1084
|
id: e = "",
|
|
1085
1085
|
children: t,
|
|
1086
1086
|
className: a = "",
|
|
1087
1087
|
contentClass: n = "",
|
|
1088
1088
|
onClose: s,
|
|
1089
1089
|
disableOutsideClick: r = !1,
|
|
1090
|
-
footer:
|
|
1091
|
-
fullMobile:
|
|
1092
|
-
headerClass:
|
|
1093
|
-
hideClose:
|
|
1090
|
+
footer: i,
|
|
1091
|
+
fullMobile: l = !0,
|
|
1092
|
+
headerClass: o = "",
|
|
1093
|
+
hideClose: u = !1,
|
|
1094
1094
|
iconSize: p = "medium",
|
|
1095
|
-
isOpen:
|
|
1096
|
-
setDialogOpen:
|
|
1097
|
-
stickyHeader:
|
|
1095
|
+
isOpen: V = !1,
|
|
1096
|
+
setDialogOpen: C,
|
|
1097
|
+
stickyHeader: M = !1,
|
|
1098
1098
|
title: f = "",
|
|
1099
|
-
titleClass:
|
|
1099
|
+
titleClass: x = ""
|
|
1100
1100
|
}) => {
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1105
|
-
},
|
|
1106
|
-
const { left: P, right: R, top: W, bottom: U } =
|
|
1107
|
-
(!
|
|
1108
|
-
},
|
|
1109
|
-
|
|
1101
|
+
const h = G(null), y = async () => {
|
|
1102
|
+
h.current.classList.add("closing"), await E(h.current), h.current.classList.remove("closing"), s && s(), C(!1);
|
|
1103
|
+
}, S = async (w) => {
|
|
1104
|
+
w.key === "Escape" && await y();
|
|
1105
|
+
}, v = async ({ clientX: w, clientY: z, target: j }) => {
|
|
1106
|
+
const { left: P, right: R, top: W, bottom: U } = h.current.getBoundingClientRect() ?? {};
|
|
1107
|
+
(!h.current.contains(j) || w < P || w > R || z < W || z > U) && await y();
|
|
1108
|
+
}, E = (w) => Promise.allSettled(
|
|
1109
|
+
w.getAnimations().map((z) => z.finished)
|
|
1110
1110
|
);
|
|
1111
1111
|
return N(() => {
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
}, [
|
|
1115
|
-
|
|
1116
|
-
/* @__PURE__ */
|
|
1112
|
+
const w = h.current;
|
|
1113
|
+
w && (V ? w.showModal() : typeof w.close == "function" && w.close());
|
|
1114
|
+
}, [V]), /* @__PURE__ */ g(k, { children: [
|
|
1115
|
+
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, onClick: () => C(!0), children: d }),
|
|
1116
|
+
/* @__PURE__ */ g(
|
|
1117
1117
|
"dialog",
|
|
1118
1118
|
{
|
|
1119
|
-
ref:
|
|
1119
|
+
ref: h,
|
|
1120
1120
|
id: `${e}-dialog`,
|
|
1121
|
-
className:
|
|
1121
|
+
className: m(
|
|
1122
1122
|
"dialog",
|
|
1123
1123
|
{
|
|
1124
|
-
hidden: !
|
|
1125
|
-
"xs-max:h-full xs-max:max-h-full":
|
|
1124
|
+
hidden: !V,
|
|
1125
|
+
"xs-max:h-full xs-max:max-h-full": l
|
|
1126
1126
|
},
|
|
1127
1127
|
a
|
|
1128
1128
|
),
|
|
1129
|
-
onKeyDown:
|
|
1130
|
-
onClick: (
|
|
1129
|
+
onKeyDown: S,
|
|
1130
|
+
onClick: (w) => r ? null : v(w),
|
|
1131
1131
|
children: [
|
|
1132
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ g(
|
|
1133
1133
|
"header",
|
|
1134
1134
|
{
|
|
1135
|
-
className:
|
|
1135
|
+
className: m(
|
|
1136
1136
|
"dialog-header flex items-center p-4",
|
|
1137
|
-
{ "sticky top-0 bg-white":
|
|
1138
|
-
|
|
1137
|
+
{ "sticky top-0 bg-white": M },
|
|
1138
|
+
o
|
|
1139
1139
|
),
|
|
1140
1140
|
children: [
|
|
1141
|
-
/* @__PURE__ */
|
|
1142
|
-
!
|
|
1141
|
+
/* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: x, children: f || "" }),
|
|
1142
|
+
!u && /* @__PURE__ */ c(
|
|
1143
1143
|
"button",
|
|
1144
1144
|
{
|
|
1145
1145
|
type: "button",
|
|
1146
1146
|
title: "Close",
|
|
1147
1147
|
className: "dialog-close",
|
|
1148
1148
|
"data-dialog-close": "",
|
|
1149
|
-
onClick:
|
|
1150
|
-
children: /* @__PURE__ */
|
|
1149
|
+
onClick: y,
|
|
1150
|
+
children: /* @__PURE__ */ c(
|
|
1151
1151
|
A,
|
|
1152
1152
|
{
|
|
1153
1153
|
name: "close",
|
|
@@ -1160,64 +1160,64 @@ const Q = {
|
|
|
1160
1160
|
]
|
|
1161
1161
|
}
|
|
1162
1162
|
),
|
|
1163
|
-
/* @__PURE__ */
|
|
1163
|
+
/* @__PURE__ */ c(
|
|
1164
1164
|
"div",
|
|
1165
1165
|
{
|
|
1166
1166
|
id: `${e}-dialog-content`,
|
|
1167
|
-
className:
|
|
1167
|
+
className: m("dialog-content p-4", n),
|
|
1168
1168
|
children: t
|
|
1169
1169
|
}
|
|
1170
1170
|
),
|
|
1171
|
-
|
|
1171
|
+
i && /* @__PURE__ */ c(
|
|
1172
1172
|
"footer",
|
|
1173
1173
|
{
|
|
1174
1174
|
id: `${e}-dialog-footer`,
|
|
1175
1175
|
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1176
|
-
children:
|
|
1176
|
+
children: i
|
|
1177
1177
|
}
|
|
1178
1178
|
)
|
|
1179
1179
|
]
|
|
1180
1180
|
}
|
|
1181
1181
|
)
|
|
1182
1182
|
] });
|
|
1183
|
-
}, n2 =
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
/* @__PURE__ */
|
|
1189
|
-
/* @__PURE__ */
|
|
1190
|
-
/* @__PURE__ */
|
|
1191
|
-
/* @__PURE__ */
|
|
1183
|
+
}, n2 = b(o1), c1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
|
|
1184
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1185
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1186
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
1187
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.4s" } }),
|
|
1188
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.5s" } }),
|
|
1189
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.6s" } }),
|
|
1190
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.7s" } }),
|
|
1191
|
+
/* @__PURE__ */ c("span", { style: { animationDelay: "0.8s" } })
|
|
1192
1192
|
] }), s2 = c1, d1 = ({
|
|
1193
|
-
cb:
|
|
1193
|
+
cb: d,
|
|
1194
1194
|
onUpdate: e,
|
|
1195
1195
|
className: t = "",
|
|
1196
1196
|
size: a = "md",
|
|
1197
1197
|
timeout: n = 1e4,
|
|
1198
1198
|
variation: s = "primary"
|
|
1199
1199
|
}) => {
|
|
1200
|
-
function r({ cb:
|
|
1201
|
-
const
|
|
1202
|
-
if (!
|
|
1203
|
-
let
|
|
1204
|
-
function C
|
|
1205
|
-
|
|
1206
|
-
const
|
|
1207
|
-
if (
|
|
1208
|
-
const f =
|
|
1209
|
-
|
|
1200
|
+
function r({ cb: i }) {
|
|
1201
|
+
const l = document.querySelector(".loading-bar__inner");
|
|
1202
|
+
if (!l) return;
|
|
1203
|
+
let o, u, p = !1;
|
|
1204
|
+
function V(C) {
|
|
1205
|
+
o === void 0 && (o = C);
|
|
1206
|
+
const M = C - o;
|
|
1207
|
+
if (u !== C) {
|
|
1208
|
+
const f = M / n * 101;
|
|
1209
|
+
l.style.width = `${f}%`, e && e({ elapsed: M, percentage: f }), f >= 101 && (i && i(), p = !0, window.cancelAnimationFrame(C));
|
|
1210
1210
|
}
|
|
1211
|
-
|
|
1211
|
+
M < n && (u = C, p || window.requestAnimationFrame(V));
|
|
1212
1212
|
}
|
|
1213
|
-
window.requestAnimationFrame(
|
|
1213
|
+
window.requestAnimationFrame(V);
|
|
1214
1214
|
}
|
|
1215
1215
|
return N(() => {
|
|
1216
|
-
r({ cb:
|
|
1217
|
-
}, []), /* @__PURE__ */
|
|
1216
|
+
r({ cb: d });
|
|
1217
|
+
}, []), /* @__PURE__ */ c(
|
|
1218
1218
|
"div",
|
|
1219
1219
|
{
|
|
1220
|
-
className:
|
|
1220
|
+
className: m(
|
|
1221
1221
|
"loading-bar my-8",
|
|
1222
1222
|
`loading-bar__${s}`,
|
|
1223
1223
|
{
|
|
@@ -1228,35 +1228,35 @@ const Q = {
|
|
|
1228
1228
|
`loading-bar__${a}`,
|
|
1229
1229
|
t
|
|
1230
1230
|
),
|
|
1231
|
-
children: /* @__PURE__ */
|
|
1231
|
+
children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
|
-
}, l2 =
|
|
1235
|
-
activator:
|
|
1234
|
+
}, l2 = b(d1), h1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), r2 = b(h1), u1 = ({
|
|
1235
|
+
activator: d,
|
|
1236
1236
|
activatorClass: e = "",
|
|
1237
1237
|
attrs: t = {},
|
|
1238
1238
|
options: a = {},
|
|
1239
1239
|
children: n,
|
|
1240
1240
|
className: s = "",
|
|
1241
1241
|
containerClass: r = "",
|
|
1242
|
-
disabled:
|
|
1243
|
-
id:
|
|
1244
|
-
trigger:
|
|
1245
|
-
}) => /* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1242
|
+
disabled: i = !1,
|
|
1243
|
+
id: l = "",
|
|
1244
|
+
trigger: o = "click"
|
|
1245
|
+
}) => /* @__PURE__ */ g(k, { children: [
|
|
1246
|
+
/* @__PURE__ */ c(
|
|
1247
1247
|
"div",
|
|
1248
1248
|
{
|
|
1249
|
-
className:
|
|
1250
|
-
children: /* @__PURE__ */
|
|
1249
|
+
className: m("popover z-10 max-w-[350px] hidden", s),
|
|
1250
|
+
children: /* @__PURE__ */ g(
|
|
1251
1251
|
"div",
|
|
1252
1252
|
{
|
|
1253
|
-
className:
|
|
1253
|
+
className: m(
|
|
1254
1254
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1255
1255
|
r
|
|
1256
1256
|
),
|
|
1257
1257
|
children: [
|
|
1258
1258
|
n,
|
|
1259
|
-
/* @__PURE__ */
|
|
1259
|
+
/* @__PURE__ */ c(
|
|
1260
1260
|
"div",
|
|
1261
1261
|
{
|
|
1262
1262
|
className: "absolute w-4 h-4 before:content-[''] before:absolute before:w-4 before:h-4 before:visible before:transform before:rotate-45",
|
|
@@ -1268,41 +1268,41 @@ const Q = {
|
|
|
1268
1268
|
)
|
|
1269
1269
|
}
|
|
1270
1270
|
),
|
|
1271
|
-
/* @__PURE__ */
|
|
1271
|
+
/* @__PURE__ */ c(
|
|
1272
1272
|
"div",
|
|
1273
1273
|
{
|
|
1274
|
-
className:
|
|
1274
|
+
className: m(
|
|
1275
1275
|
"popover-activator",
|
|
1276
|
-
`trigger-${
|
|
1277
|
-
|
|
1276
|
+
`trigger-${o}`,
|
|
1277
|
+
i ? "is-disabled" : "",
|
|
1278
1278
|
e
|
|
1279
1279
|
),
|
|
1280
1280
|
...t,
|
|
1281
1281
|
"data-options": JSON.stringify(a),
|
|
1282
|
-
children:
|
|
1282
|
+
children: d
|
|
1283
1283
|
}
|
|
1284
1284
|
)
|
|
1285
1285
|
] }), i2 = u1, p1 = ({
|
|
1286
|
-
ariaValuemax:
|
|
1286
|
+
ariaValuemax: d = 100,
|
|
1287
1287
|
ariaValuemin: e = 0,
|
|
1288
1288
|
bgColor: t = "bg-orange-500",
|
|
1289
1289
|
className: a,
|
|
1290
1290
|
completed: n = 0,
|
|
1291
1291
|
maxCompleted: s = 100,
|
|
1292
1292
|
rounded: r = !0,
|
|
1293
|
-
showLabel:
|
|
1293
|
+
showLabel: i = !1
|
|
1294
1294
|
}) => {
|
|
1295
|
-
const
|
|
1296
|
-
if (
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1295
|
+
const o = ((u, p) => {
|
|
1296
|
+
if (u) {
|
|
1297
|
+
const V = Number(p) / u;
|
|
1298
|
+
return V > 1 ? 100 : V * 100;
|
|
1299
1299
|
}
|
|
1300
1300
|
return n;
|
|
1301
1301
|
})(s, n);
|
|
1302
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ c(
|
|
1303
1303
|
"div",
|
|
1304
1304
|
{
|
|
1305
|
-
className:
|
|
1305
|
+
className: m(
|
|
1306
1306
|
"w-full bg-gray-200",
|
|
1307
1307
|
{ "rounded-full": r },
|
|
1308
1308
|
a
|
|
@@ -1311,52 +1311,52 @@ const Q = {
|
|
|
1311
1311
|
"aria-label": "Progress Bar",
|
|
1312
1312
|
"aria-valuenow": n,
|
|
1313
1313
|
"aria-valuemin": e,
|
|
1314
|
-
"aria-valuemax":
|
|
1315
|
-
children: /* @__PURE__ */
|
|
1314
|
+
"aria-valuemax": d,
|
|
1315
|
+
children: /* @__PURE__ */ c(
|
|
1316
1316
|
"div",
|
|
1317
1317
|
{
|
|
1318
|
-
className:
|
|
1318
|
+
className: m(
|
|
1319
1319
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1320
1320
|
t
|
|
1321
1321
|
),
|
|
1322
|
-
style: { width: `${
|
|
1323
|
-
children:
|
|
1322
|
+
style: { width: `${o}%` },
|
|
1323
|
+
children: i && /* @__PURE__ */ c("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(o) })
|
|
1324
1324
|
}
|
|
1325
1325
|
)
|
|
1326
1326
|
}
|
|
1327
1327
|
);
|
|
1328
|
-
}, o2 =
|
|
1329
|
-
checked:
|
|
1328
|
+
}, o2 = b(p1), m1 = ({
|
|
1329
|
+
checked: d = !1,
|
|
1330
1330
|
children: e,
|
|
1331
1331
|
className: t = "",
|
|
1332
1332
|
id: a = "",
|
|
1333
1333
|
label: n = "",
|
|
1334
1334
|
name: s = "",
|
|
1335
1335
|
props: r = {},
|
|
1336
|
-
variation:
|
|
1337
|
-
value:
|
|
1336
|
+
variation: i = "primary",
|
|
1337
|
+
value: l = ""
|
|
1338
1338
|
}) => {
|
|
1339
|
-
const
|
|
1340
|
-
return /* @__PURE__ */
|
|
1341
|
-
|
|
1339
|
+
const o = n ? "div" : "label", u = o === "label" ? { htmlFor: a } : {};
|
|
1340
|
+
return /* @__PURE__ */ g(
|
|
1341
|
+
o,
|
|
1342
1342
|
{
|
|
1343
|
-
className:
|
|
1344
|
-
...
|
|
1343
|
+
className: m("radio flex items-center", t),
|
|
1344
|
+
...u,
|
|
1345
1345
|
children: [
|
|
1346
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ c(
|
|
1347
1347
|
"input",
|
|
1348
1348
|
{
|
|
1349
|
-
checked:
|
|
1350
|
-
className:
|
|
1349
|
+
checked: d,
|
|
1350
|
+
className: m(
|
|
1351
1351
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1352
1352
|
{
|
|
1353
|
-
"focus:ring-[#222]":
|
|
1353
|
+
"focus:ring-[#222]": i === "primary"
|
|
1354
1354
|
}
|
|
1355
1355
|
),
|
|
1356
1356
|
id: a,
|
|
1357
1357
|
name: s,
|
|
1358
1358
|
type: "radio",
|
|
1359
|
-
value:
|
|
1359
|
+
value: l,
|
|
1360
1360
|
...r
|
|
1361
1361
|
}
|
|
1362
1362
|
),
|
|
@@ -1364,46 +1364,46 @@ const Q = {
|
|
|
1364
1364
|
]
|
|
1365
1365
|
}
|
|
1366
1366
|
);
|
|
1367
|
-
}, c2 =
|
|
1368
|
-
children:
|
|
1367
|
+
}, c2 = b(m1), f1 = ({
|
|
1368
|
+
children: d,
|
|
1369
1369
|
className: e = "",
|
|
1370
1370
|
error: t = !1,
|
|
1371
1371
|
errorMessage: a = "",
|
|
1372
1372
|
id: n = "",
|
|
1373
1373
|
label: s = "",
|
|
1374
1374
|
name: r = "",
|
|
1375
|
-
options:
|
|
1376
|
-
placeholder:
|
|
1377
|
-
props:
|
|
1378
|
-
selectClass:
|
|
1375
|
+
options: i = [],
|
|
1376
|
+
placeholder: l = "",
|
|
1377
|
+
props: o = {},
|
|
1378
|
+
selectClass: u = "",
|
|
1379
1379
|
styles: p = null,
|
|
1380
|
-
variation:
|
|
1381
|
-
value:
|
|
1380
|
+
variation: V = "primary",
|
|
1381
|
+
value: C
|
|
1382
1382
|
}) => {
|
|
1383
|
-
const
|
|
1384
|
-
return /* @__PURE__ */
|
|
1383
|
+
const M = l ? { defaultValue: "" } : {};
|
|
1384
|
+
return /* @__PURE__ */ g(
|
|
1385
1385
|
"label",
|
|
1386
1386
|
{
|
|
1387
|
-
className:
|
|
1387
|
+
className: m("relative select", e, V),
|
|
1388
1388
|
style: p ? { ...p } : null,
|
|
1389
1389
|
children: [
|
|
1390
1390
|
s,
|
|
1391
|
-
/* @__PURE__ */
|
|
1391
|
+
/* @__PURE__ */ g(
|
|
1392
1392
|
"select",
|
|
1393
1393
|
{
|
|
1394
|
-
className:
|
|
1394
|
+
className: m(
|
|
1395
1395
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1396
1396
|
t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1397
|
-
|
|
1397
|
+
u
|
|
1398
1398
|
),
|
|
1399
1399
|
id: n,
|
|
1400
1400
|
name: r,
|
|
1401
|
-
value:
|
|
1402
|
-
...
|
|
1403
|
-
...
|
|
1401
|
+
value: C,
|
|
1402
|
+
...M,
|
|
1403
|
+
...o,
|
|
1404
1404
|
children: [
|
|
1405
|
-
|
|
1406
|
-
|
|
1405
|
+
l && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: l }),
|
|
1406
|
+
i.map((f, x) => /* @__PURE__ */ c(
|
|
1407
1407
|
"option",
|
|
1408
1408
|
{
|
|
1409
1409
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
@@ -1414,120 +1414,120 @@ const Q = {
|
|
|
1414
1414
|
]
|
|
1415
1415
|
}
|
|
1416
1416
|
),
|
|
1417
|
-
a && /* @__PURE__ */
|
|
1417
|
+
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1418
1418
|
]
|
|
1419
1419
|
}
|
|
1420
1420
|
);
|
|
1421
|
-
}, d2 =
|
|
1421
|
+
}, d2 = b(f1), V1 = ({ className: d = "" }) => /* @__PURE__ */ g(
|
|
1422
1422
|
"div",
|
|
1423
1423
|
{
|
|
1424
|
-
className:
|
|
1424
|
+
className: m(
|
|
1425
1425
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1426
|
-
|
|
1426
|
+
d
|
|
1427
1427
|
),
|
|
1428
1428
|
children: [
|
|
1429
|
-
/* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ c(A, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1430
|
+
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1431
1431
|
]
|
|
1432
1432
|
}
|
|
1433
|
-
), h2 =
|
|
1434
|
-
placeholderClass:
|
|
1433
|
+
), h2 = b(V1), C1 = ({
|
|
1434
|
+
placeholderClass: d = "",
|
|
1435
1435
|
children: e,
|
|
1436
1436
|
className: t = "",
|
|
1437
1437
|
id: a = 1,
|
|
1438
1438
|
padding: n = !0
|
|
1439
|
-
}) => /* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1439
|
+
}) => /* @__PURE__ */ g("div", { className: m("slider", t), id: `slider-${a}`, children: [
|
|
1440
|
+
/* @__PURE__ */ c(
|
|
1441
1441
|
"button",
|
|
1442
1442
|
{
|
|
1443
1443
|
title: "Previous Slide",
|
|
1444
1444
|
id: `btn-left-${a}`,
|
|
1445
1445
|
type: "button",
|
|
1446
1446
|
className: "slider-button__prev ",
|
|
1447
|
-
children: /* @__PURE__ */
|
|
1447
|
+
children: /* @__PURE__ */ c(A, { name: "chevronLeft" })
|
|
1448
1448
|
}
|
|
1449
1449
|
),
|
|
1450
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ c(
|
|
1451
1451
|
"div",
|
|
1452
1452
|
{
|
|
1453
|
-
className: `slider-card bg-gray-200 animate-pulse ${
|
|
1454
|
-
children: /* @__PURE__ */
|
|
1453
|
+
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1454
|
+
children: /* @__PURE__ */ c("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1455
1455
|
},
|
|
1456
1456
|
r
|
|
1457
1457
|
)) }),
|
|
1458
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ c(
|
|
1459
1459
|
"button",
|
|
1460
1460
|
{
|
|
1461
1461
|
title: "Next Slide",
|
|
1462
1462
|
id: `btn-right-${a}`,
|
|
1463
1463
|
type: "button",
|
|
1464
1464
|
className: "slider-button__next",
|
|
1465
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ c(A, { name: "chevronRight" })
|
|
1466
1466
|
}
|
|
1467
1467
|
)
|
|
1468
|
-
] }), u2 =
|
|
1468
|
+
] }), u2 = b(C1), H1 = {
|
|
1469
1469
|
name: "spinnerDark",
|
|
1470
1470
|
color: "text-teal-700",
|
|
1471
1471
|
viewBox: "0 0 24 24"
|
|
1472
|
-
}, L1 = ({ className:
|
|
1472
|
+
}, L1 = ({ className: d = "" }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
|
|
1473
1473
|
A,
|
|
1474
1474
|
{
|
|
1475
1475
|
size: "xSmall",
|
|
1476
1476
|
...H1,
|
|
1477
|
-
className: `animate-spin ${
|
|
1477
|
+
className: `animate-spin ${d}`
|
|
1478
1478
|
}
|
|
1479
|
-
) }), p2 =
|
|
1480
|
-
className:
|
|
1479
|
+
) }), p2 = b(L1), g1 = ({
|
|
1480
|
+
className: d = "",
|
|
1481
1481
|
value: e
|
|
1482
1482
|
}) => {
|
|
1483
1483
|
const t = {
|
|
1484
1484
|
"--value": `calc(${e} / 5 * 100%)`
|
|
1485
1485
|
};
|
|
1486
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ c(
|
|
1487
1487
|
"div",
|
|
1488
1488
|
{
|
|
1489
|
-
className:
|
|
1489
|
+
className: m(
|
|
1490
1490
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1491
|
-
|
|
1491
|
+
d
|
|
1492
1492
|
),
|
|
1493
1493
|
style: t
|
|
1494
1494
|
}
|
|
1495
1495
|
);
|
|
1496
1496
|
}, m2 = g1, M1 = ({
|
|
1497
|
-
className:
|
|
1497
|
+
className: d = "",
|
|
1498
1498
|
clear: e = !1,
|
|
1499
1499
|
error: t = !1,
|
|
1500
1500
|
errorMessage: a = "",
|
|
1501
1501
|
id: n = "",
|
|
1502
1502
|
inputClass: s = "",
|
|
1503
1503
|
name: r = "",
|
|
1504
|
-
placeholder:
|
|
1505
|
-
props:
|
|
1506
|
-
rows:
|
|
1507
|
-
variation:
|
|
1508
|
-
}) => /* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1504
|
+
placeholder: i = "",
|
|
1505
|
+
props: l = {},
|
|
1506
|
+
rows: o = 4,
|
|
1507
|
+
variation: u = "primary"
|
|
1508
|
+
}) => /* @__PURE__ */ g("div", { className: m("relative textarea", u, d), children: [
|
|
1509
|
+
/* @__PURE__ */ c(
|
|
1510
1510
|
"textarea",
|
|
1511
1511
|
{
|
|
1512
|
-
placeholder:
|
|
1512
|
+
placeholder: i,
|
|
1513
1513
|
id: n,
|
|
1514
1514
|
name: r,
|
|
1515
|
-
rows:
|
|
1516
|
-
className:
|
|
1515
|
+
rows: o,
|
|
1516
|
+
className: m(
|
|
1517
1517
|
"form-textarea min-h-[40px] pl-4",
|
|
1518
1518
|
e ? "pr-10" : "pr-4",
|
|
1519
1519
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1520
1520
|
s
|
|
1521
1521
|
),
|
|
1522
|
-
...
|
|
1522
|
+
...l
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
|
-
e && /* @__PURE__ */
|
|
1525
|
+
e && /* @__PURE__ */ c(
|
|
1526
1526
|
"div",
|
|
1527
1527
|
{
|
|
1528
1528
|
id: `${n}-clear`,
|
|
1529
1529
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1530
|
-
children: /* @__PURE__ */
|
|
1530
|
+
children: /* @__PURE__ */ c(
|
|
1531
1531
|
A,
|
|
1532
1532
|
{
|
|
1533
1533
|
size: "xSmall",
|
|
@@ -1537,29 +1537,29 @@ const Q = {
|
|
|
1537
1537
|
)
|
|
1538
1538
|
}
|
|
1539
1539
|
),
|
|
1540
|
-
a && /* @__PURE__ */
|
|
1541
|
-
] }), v1 =
|
|
1542
|
-
className:
|
|
1540
|
+
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1541
|
+
] }), v1 = b(M1), b1 = ({
|
|
1542
|
+
className: d = "",
|
|
1543
1543
|
clear: e = !1,
|
|
1544
1544
|
error: t = !1,
|
|
1545
1545
|
errorMessage: a = "",
|
|
1546
1546
|
iconLeft: n = "",
|
|
1547
1547
|
id: s = "",
|
|
1548
1548
|
inputClass: r = "",
|
|
1549
|
-
name:
|
|
1550
|
-
placeholder:
|
|
1551
|
-
props:
|
|
1552
|
-
styles:
|
|
1549
|
+
name: i = "",
|
|
1550
|
+
placeholder: l = "",
|
|
1551
|
+
props: o = {},
|
|
1552
|
+
styles: u = null,
|
|
1553
1553
|
type: p = "text",
|
|
1554
|
-
value:
|
|
1555
|
-
variation:
|
|
1556
|
-
}) => /* @__PURE__ */
|
|
1554
|
+
value: V,
|
|
1555
|
+
variation: C = "primary"
|
|
1556
|
+
}) => /* @__PURE__ */ g(
|
|
1557
1557
|
"div",
|
|
1558
1558
|
{
|
|
1559
|
-
className:
|
|
1560
|
-
style:
|
|
1559
|
+
className: m("relative textbox", C, d),
|
|
1560
|
+
style: u ? { ...u } : null,
|
|
1561
1561
|
children: [
|
|
1562
|
-
n && /* @__PURE__ */
|
|
1562
|
+
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1563
1563
|
A,
|
|
1564
1564
|
{
|
|
1565
1565
|
size: "xSmall",
|
|
@@ -1568,34 +1568,34 @@ const Q = {
|
|
|
1568
1568
|
viewBox: "0 0 24 24"
|
|
1569
1569
|
}
|
|
1570
1570
|
) }),
|
|
1571
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ c(
|
|
1572
1572
|
"input",
|
|
1573
1573
|
{
|
|
1574
|
-
placeholder:
|
|
1574
|
+
placeholder: l,
|
|
1575
1575
|
id: s,
|
|
1576
|
-
name:
|
|
1576
|
+
name: i,
|
|
1577
1577
|
type: p,
|
|
1578
|
-
value:
|
|
1578
|
+
value: V,
|
|
1579
1579
|
autoComplete: "off",
|
|
1580
|
-
className:
|
|
1580
|
+
className: m(
|
|
1581
1581
|
"form-input",
|
|
1582
1582
|
e ? "pr-10" : "pr-4",
|
|
1583
1583
|
n ? "pl-8" : "pl-4",
|
|
1584
1584
|
{
|
|
1585
1585
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1586
1586
|
},
|
|
1587
|
-
|
|
1587
|
+
o.inputClass ?? "",
|
|
1588
1588
|
r
|
|
1589
1589
|
),
|
|
1590
|
-
...
|
|
1590
|
+
...o
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
|
-
e && /* @__PURE__ */
|
|
1593
|
+
e && /* @__PURE__ */ c(
|
|
1594
1594
|
"div",
|
|
1595
1595
|
{
|
|
1596
1596
|
id: `${s}-clear`,
|
|
1597
1597
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1598
|
-
children: /* @__PURE__ */
|
|
1598
|
+
children: /* @__PURE__ */ c(
|
|
1599
1599
|
A,
|
|
1600
1600
|
{
|
|
1601
1601
|
size: "xSmall",
|
|
@@ -1605,11 +1605,11 @@ const Q = {
|
|
|
1605
1605
|
)
|
|
1606
1606
|
}
|
|
1607
1607
|
),
|
|
1608
|
-
a && /* @__PURE__ */
|
|
1608
|
+
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1609
1609
|
]
|
|
1610
1610
|
}
|
|
1611
|
-
),
|
|
1612
|
-
btnClass:
|
|
1611
|
+
), D = b(b1), x1 = ({
|
|
1612
|
+
btnClass: d,
|
|
1613
1613
|
className: e = "",
|
|
1614
1614
|
containerClass: t,
|
|
1615
1615
|
customSuccessMsg: a = "",
|
|
@@ -1617,13 +1617,13 @@ const Q = {
|
|
|
1617
1617
|
titleClass: s,
|
|
1618
1618
|
uppercase: r = !0
|
|
1619
1619
|
}) => {
|
|
1620
|
-
const
|
|
1620
|
+
const i = a || /* @__PURE__ */ g(k, { children: [
|
|
1621
1621
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1622
1622
|
" ",
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
|
|
1623
|
+
/* @__PURE__ */ c(
|
|
1624
|
+
F,
|
|
1625
1625
|
{
|
|
1626
|
-
className:
|
|
1626
|
+
className: m(
|
|
1627
1627
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
1628
1628
|
),
|
|
1629
1629
|
variation: "link",
|
|
@@ -1634,66 +1634,66 @@ const Q = {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
)
|
|
1636
1636
|
] });
|
|
1637
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ g(
|
|
1638
1638
|
"form",
|
|
1639
1639
|
{
|
|
1640
1640
|
id: "contactForm",
|
|
1641
|
-
className:
|
|
1641
|
+
className: m("contact-form", t, {
|
|
1642
1642
|
uppercase: r
|
|
1643
1643
|
}),
|
|
1644
1644
|
children: [
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1646
|
+
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
|
|
1647
|
+
/* @__PURE__ */ g(
|
|
1648
1648
|
"div",
|
|
1649
1649
|
{
|
|
1650
|
-
className:
|
|
1650
|
+
className: m(
|
|
1651
1651
|
"p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
|
|
1652
1652
|
e
|
|
1653
1653
|
),
|
|
1654
1654
|
children: [
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
|
|
1655
|
+
/* @__PURE__ */ c(
|
|
1656
|
+
D,
|
|
1657
1657
|
{
|
|
1658
1658
|
id: "contact-name",
|
|
1659
1659
|
name: "contact-name",
|
|
1660
1660
|
placeholder: "Name",
|
|
1661
|
-
inputClass:
|
|
1661
|
+
inputClass: m({
|
|
1662
1662
|
"placeholder:uppercase": r
|
|
1663
1663
|
})
|
|
1664
1664
|
}
|
|
1665
1665
|
),
|
|
1666
|
-
/* @__PURE__ */
|
|
1667
|
-
|
|
1666
|
+
/* @__PURE__ */ c(
|
|
1667
|
+
D,
|
|
1668
1668
|
{
|
|
1669
1669
|
id: "contact-email",
|
|
1670
1670
|
name: "contact-email",
|
|
1671
1671
|
placeholder: "Email",
|
|
1672
|
-
inputClass:
|
|
1672
|
+
inputClass: m({
|
|
1673
1673
|
"placeholder:uppercase": r
|
|
1674
1674
|
})
|
|
1675
1675
|
}
|
|
1676
1676
|
),
|
|
1677
|
-
/* @__PURE__ */
|
|
1677
|
+
/* @__PURE__ */ c(
|
|
1678
1678
|
v1,
|
|
1679
1679
|
{
|
|
1680
1680
|
id: "contact-message",
|
|
1681
1681
|
name: "contact-message",
|
|
1682
1682
|
placeholder: "Message",
|
|
1683
|
-
inputClass:
|
|
1683
|
+
inputClass: m({
|
|
1684
1684
|
"placeholder:uppercase": r
|
|
1685
1685
|
})
|
|
1686
1686
|
}
|
|
1687
1687
|
),
|
|
1688
|
-
/* @__PURE__ */
|
|
1689
|
-
|
|
1688
|
+
/* @__PURE__ */ c(
|
|
1689
|
+
F,
|
|
1690
1690
|
{
|
|
1691
|
-
className:
|
|
1691
|
+
className: m(
|
|
1692
1692
|
"flex mx-auto items-center",
|
|
1693
1693
|
{
|
|
1694
1694
|
uppercase: r
|
|
1695
1695
|
},
|
|
1696
|
-
|
|
1696
|
+
d
|
|
1697
1697
|
),
|
|
1698
1698
|
props: { title: "Submit" },
|
|
1699
1699
|
type: "submit",
|
|
@@ -1706,120 +1706,120 @@ const Q = {
|
|
|
1706
1706
|
]
|
|
1707
1707
|
}
|
|
1708
1708
|
);
|
|
1709
|
-
}, f2 =
|
|
1710
|
-
block:
|
|
1709
|
+
}, f2 = b(x1), y1 = ({
|
|
1710
|
+
block: d = !1,
|
|
1711
1711
|
children: e,
|
|
1712
1712
|
className: t,
|
|
1713
1713
|
contentClass: a,
|
|
1714
1714
|
footerClass: n,
|
|
1715
1715
|
footerContent: s,
|
|
1716
1716
|
headerContent: r,
|
|
1717
|
-
headerClass:
|
|
1718
|
-
list:
|
|
1719
|
-
props:
|
|
1720
|
-
variation:
|
|
1717
|
+
headerClass: i,
|
|
1718
|
+
list: l = !1,
|
|
1719
|
+
props: o = {},
|
|
1720
|
+
variation: u = "primary"
|
|
1721
1721
|
}) => {
|
|
1722
|
-
const p =
|
|
1723
|
-
return /* @__PURE__ */
|
|
1722
|
+
const p = l ? "ul" : "div";
|
|
1723
|
+
return /* @__PURE__ */ g(
|
|
1724
1724
|
"div",
|
|
1725
1725
|
{
|
|
1726
|
-
className:
|
|
1726
|
+
className: m(
|
|
1727
1727
|
"content-card",
|
|
1728
|
-
{ "content-card--block":
|
|
1729
|
-
`content-card--${
|
|
1728
|
+
{ "content-card--block": d },
|
|
1729
|
+
`content-card--${u}`,
|
|
1730
1730
|
t
|
|
1731
1731
|
),
|
|
1732
|
-
...
|
|
1732
|
+
...o,
|
|
1733
1733
|
children: [
|
|
1734
|
-
r && /* @__PURE__ */
|
|
1735
|
-
/* @__PURE__ */
|
|
1734
|
+
r && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ c("h3", { children: r }) : r }),
|
|
1735
|
+
/* @__PURE__ */ c(
|
|
1736
1736
|
p,
|
|
1737
1737
|
{
|
|
1738
|
-
className:
|
|
1739
|
-
role:
|
|
1738
|
+
className: m("content-card__content", a),
|
|
1739
|
+
role: l ? "list" : null,
|
|
1740
1740
|
children: e
|
|
1741
1741
|
}
|
|
1742
1742
|
),
|
|
1743
|
-
s && /* @__PURE__ */
|
|
1743
|
+
s && /* @__PURE__ */ c("div", { className: m("content-card__footer", n), children: s })
|
|
1744
1744
|
]
|
|
1745
1745
|
}
|
|
1746
1746
|
);
|
|
1747
|
-
}, V2 =
|
|
1748
|
-
children:
|
|
1747
|
+
}, V2 = b(y1), A1 = ({
|
|
1748
|
+
children: d,
|
|
1749
1749
|
className: e,
|
|
1750
1750
|
colGap: t = 2,
|
|
1751
1751
|
direction: a = "col",
|
|
1752
1752
|
label: n,
|
|
1753
1753
|
labelClass: s,
|
|
1754
1754
|
props: r = {},
|
|
1755
|
-
rowGap:
|
|
1756
|
-
value:
|
|
1757
|
-
valueClass:
|
|
1758
|
-
wrap:
|
|
1759
|
-
}) => /* @__PURE__ */
|
|
1755
|
+
rowGap: i = 1,
|
|
1756
|
+
value: l,
|
|
1757
|
+
valueClass: o,
|
|
1758
|
+
wrap: u = !1
|
|
1759
|
+
}) => /* @__PURE__ */ g(
|
|
1760
1760
|
"div",
|
|
1761
1761
|
{
|
|
1762
|
-
className:
|
|
1762
|
+
className: m(
|
|
1763
1763
|
"flex",
|
|
1764
1764
|
{
|
|
1765
1765
|
"flex-col items-start": a === "col",
|
|
1766
1766
|
"flex-row items-center": a === "row",
|
|
1767
|
-
"flex-wrap":
|
|
1767
|
+
"flex-wrap": u
|
|
1768
1768
|
},
|
|
1769
1769
|
e
|
|
1770
1770
|
),
|
|
1771
1771
|
style: {
|
|
1772
1772
|
columnGap: `${t / 4}rem`,
|
|
1773
|
-
rowGap: `${
|
|
1773
|
+
rowGap: `${i / 4}rem`
|
|
1774
1774
|
},
|
|
1775
1775
|
...r,
|
|
1776
1776
|
children: [
|
|
1777
|
-
n && /* @__PURE__ */
|
|
1778
|
-
|
|
1779
|
-
|
|
1777
|
+
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1778
|
+
l && /* @__PURE__ */ c("div", { className: m("item-value", o), children: l }),
|
|
1779
|
+
d
|
|
1780
1780
|
]
|
|
1781
1781
|
}
|
|
1782
|
-
), C2 =
|
|
1783
|
-
breakPage:
|
|
1782
|
+
), C2 = b(A1), w1 = ({
|
|
1783
|
+
breakPage: d = !1,
|
|
1784
1784
|
children: e,
|
|
1785
1785
|
className: t,
|
|
1786
1786
|
noPrint: a = !1,
|
|
1787
1787
|
props: n = {},
|
|
1788
1788
|
title: s,
|
|
1789
1789
|
titleClass: r,
|
|
1790
|
-
titleId:
|
|
1791
|
-
}) => /* @__PURE__ */
|
|
1790
|
+
titleId: i
|
|
1791
|
+
}) => /* @__PURE__ */ g(
|
|
1792
1792
|
"section",
|
|
1793
1793
|
{
|
|
1794
|
-
className:
|
|
1794
|
+
className: m(
|
|
1795
1795
|
"spacer",
|
|
1796
1796
|
{
|
|
1797
1797
|
"print:!hidden": a,
|
|
1798
|
-
"print:!break-before-page":
|
|
1798
|
+
"print:!break-before-page": d
|
|
1799
1799
|
},
|
|
1800
1800
|
t
|
|
1801
1801
|
),
|
|
1802
1802
|
...n,
|
|
1803
1803
|
children: [
|
|
1804
|
-
s && /* @__PURE__ */
|
|
1804
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", r), id: i, children: s }),
|
|
1805
1805
|
e
|
|
1806
1806
|
]
|
|
1807
1807
|
}
|
|
1808
|
-
), H2 = w1, S1 = ({ children:
|
|
1808
|
+
), H2 = w1, S1 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), L2 = S1, k1 = ({ align: d = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ c(
|
|
1809
1809
|
a,
|
|
1810
1810
|
{
|
|
1811
|
-
className:
|
|
1811
|
+
className: m(
|
|
1812
1812
|
"!header-4-medium mb-6 flex items-center",
|
|
1813
1813
|
{
|
|
1814
|
-
"text-center justify-center":
|
|
1815
|
-
"justify-start text-left":
|
|
1816
|
-
"justify-end text-right":
|
|
1814
|
+
"text-center justify-center": d === "center",
|
|
1815
|
+
"justify-start text-left": d === "left",
|
|
1816
|
+
"justify-end text-right": d === "right"
|
|
1817
1817
|
},
|
|
1818
1818
|
t
|
|
1819
1819
|
),
|
|
1820
1820
|
children: n || e
|
|
1821
1821
|
}
|
|
1822
|
-
), g2 =
|
|
1822
|
+
), g2 = b(k1), z1 = {
|
|
1823
1823
|
circular: "circular 3s linear infinite",
|
|
1824
1824
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1825
1825
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1961,9 +1961,9 @@ const Q = {
|
|
|
1961
1961
|
}, I1 = {
|
|
1962
1962
|
0: "0ms",
|
|
1963
1963
|
50: "50ms"
|
|
1964
|
-
},
|
|
1964
|
+
}, $1 = {
|
|
1965
1965
|
"center-top": "center 30%"
|
|
1966
|
-
},
|
|
1966
|
+
}, B = {
|
|
1967
1967
|
animation: z1,
|
|
1968
1968
|
backgroundImage: N1,
|
|
1969
1969
|
fontSize: Z1,
|
|
@@ -1973,8 +1973,8 @@ const Q = {
|
|
|
1973
1973
|
maxWidth: T1,
|
|
1974
1974
|
screens: B1,
|
|
1975
1975
|
transitionDuration: I1,
|
|
1976
|
-
transformOrigin:
|
|
1977
|
-
},
|
|
1976
|
+
transformOrigin: $1
|
|
1977
|
+
}, I = {
|
|
1978
1978
|
black: {
|
|
1979
1979
|
50: "#FCFCFC",
|
|
1980
1980
|
100: "#F9F9F9",
|
|
@@ -2065,7 +2065,7 @@ const Q = {
|
|
|
2065
2065
|
current: "currentColor",
|
|
2066
2066
|
transparent: "transparent",
|
|
2067
2067
|
white: "#fff"
|
|
2068
|
-
},
|
|
2068
|
+
}, $ = {
|
|
2069
2069
|
blue: {
|
|
2070
2070
|
100: "hsl(240 42% 22%)",
|
|
2071
2071
|
60: "hsl(240 24% 34%)",
|
|
@@ -2082,9 +2082,9 @@ const Q = {
|
|
|
2082
2082
|
white: "hsl(0 0% 100%)",
|
|
2083
2083
|
transparent: "hsl(0 0% 100% / 0)"
|
|
2084
2084
|
}, M2 = {
|
|
2085
|
-
...
|
|
2086
|
-
|
|
2087
|
-
},
|
|
2085
|
+
...I,
|
|
2086
|
+
...$
|
|
2087
|
+
}, O1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2088
2088
|
{
|
|
2089
2089
|
aspect: (t) => ({
|
|
2090
2090
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2105,7 +2105,7 @@ const Q = {
|
|
|
2105
2105
|
})
|
|
2106
2106
|
},
|
|
2107
2107
|
{ values: e("aspectRatio") }
|
|
2108
|
-
), q1 = ({ matchUtilities:
|
|
2108
|
+
), q1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2109
2109
|
{
|
|
2110
2110
|
"animation-delay": (t) => ({
|
|
2111
2111
|
"animation-delay": t
|
|
@@ -2114,42 +2114,42 @@ const Q = {
|
|
|
2114
2114
|
{
|
|
2115
2115
|
values: e("transitionDelay")
|
|
2116
2116
|
}
|
|
2117
|
-
), j1 = ({ matchUtilities:
|
|
2117
|
+
), j1 = ({ matchUtilities: d }) => d({
|
|
2118
2118
|
"max-inline": (e) => ({
|
|
2119
2119
|
"max-inline-size": e
|
|
2120
2120
|
})
|
|
2121
|
-
}), P1 = ({ matchUtilities:
|
|
2121
|
+
}), P1 = ({ matchUtilities: d }) => d({
|
|
2122
2122
|
"max-block": (e) => ({
|
|
2123
2123
|
"max-block-size": e
|
|
2124
2124
|
})
|
|
2125
|
-
}),
|
|
2126
|
-
addUtilities:
|
|
2125
|
+
}), T = ({
|
|
2126
|
+
addUtilities: d,
|
|
2127
2127
|
e,
|
|
2128
2128
|
classPrefix: t = "",
|
|
2129
2129
|
fixedProps: a = {},
|
|
2130
2130
|
sizeProps: n = null,
|
|
2131
2131
|
sizes: s,
|
|
2132
2132
|
weights: r,
|
|
2133
|
-
weightProps:
|
|
2133
|
+
weightProps: i = null
|
|
2134
2134
|
}) => {
|
|
2135
|
-
const
|
|
2136
|
-
Object.entries(s).forEach(([
|
|
2135
|
+
const l = {};
|
|
2136
|
+
Object.entries(s).forEach(([o, u]) => {
|
|
2137
2137
|
const p = {
|
|
2138
|
-
"font-size":
|
|
2138
|
+
"font-size": u,
|
|
2139
2139
|
...a
|
|
2140
|
-
},
|
|
2141
|
-
|
|
2140
|
+
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: u }) : {};
|
|
2141
|
+
l[V] = {
|
|
2142
2142
|
...p,
|
|
2143
|
-
...
|
|
2144
|
-
}, Object.entries(r).forEach(([
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2143
|
+
...C
|
|
2144
|
+
}, Object.entries(r).forEach(([M, f]) => {
|
|
2145
|
+
const x = `.${e(`${t}-${o}-${M}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: M, weightValue: f }) : {};
|
|
2146
|
+
l[x] = {
|
|
2147
2147
|
...p,
|
|
2148
2148
|
"font-weight": f,
|
|
2149
|
-
...
|
|
2149
|
+
...h
|
|
2150
2150
|
};
|
|
2151
2151
|
});
|
|
2152
|
-
}),
|
|
2152
|
+
}), d(l);
|
|
2153
2153
|
}, O = {
|
|
2154
2154
|
aspectRatio: !1,
|
|
2155
2155
|
backdropBlur: !1,
|
|
@@ -2214,8 +2214,8 @@ const Q = {
|
|
|
2214
2214
|
textOpacity: !1,
|
|
2215
2215
|
textUnderlineOffset: !1,
|
|
2216
2216
|
touchAction: !1
|
|
2217
|
-
},
|
|
2218
|
-
({ addUtilities:
|
|
2217
|
+
}, q = [
|
|
2218
|
+
({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
|
|
2219
2219
|
const n = ["2", "5"], s = {
|
|
2220
2220
|
light: "300",
|
|
2221
2221
|
normal: "400",
|
|
@@ -2230,48 +2230,48 @@ const Q = {
|
|
|
2230
2230
|
4: "1.25rem",
|
|
2231
2231
|
5: "1.125rem",
|
|
2232
2232
|
6: "1rem"
|
|
2233
|
-
},
|
|
2233
|
+
}, i = {
|
|
2234
2234
|
1: "0.938rem",
|
|
2235
2235
|
2: "0.813rem",
|
|
2236
2236
|
3: "0.75rem"
|
|
2237
2237
|
};
|
|
2238
|
-
|
|
2239
|
-
addUtilities:
|
|
2238
|
+
T({
|
|
2239
|
+
addUtilities: d,
|
|
2240
2240
|
e: a,
|
|
2241
2241
|
classPrefix: "header",
|
|
2242
2242
|
fixedProps: {
|
|
2243
2243
|
"line-height": "1.5"
|
|
2244
2244
|
},
|
|
2245
|
-
sizeProps: ({ sizeKey:
|
|
2246
|
-
"font-weight": n.includes(
|
|
2245
|
+
sizeProps: ({ sizeKey: l }) => ({
|
|
2246
|
+
"font-weight": n.includes(l) ? s.semibold : s.bold
|
|
2247
2247
|
}),
|
|
2248
2248
|
sizes: r,
|
|
2249
2249
|
weights: s
|
|
2250
|
-
}),
|
|
2251
|
-
addUtilities:
|
|
2250
|
+
}), T({
|
|
2251
|
+
addUtilities: d,
|
|
2252
2252
|
e: a,
|
|
2253
2253
|
classPrefix: "text-body",
|
|
2254
|
-
sizes:
|
|
2254
|
+
sizes: i,
|
|
2255
2255
|
weights: s
|
|
2256
|
-
}),
|
|
2256
|
+
}), O1({ matchUtilities: e, theme: t }), q1({ matchUtilities: e, theme: t }), j1({ matchUtilities: e }), P1({ matchUtilities: e });
|
|
2257
2257
|
}
|
|
2258
2258
|
], v2 = {
|
|
2259
2259
|
theme: {
|
|
2260
|
-
extend:
|
|
2261
|
-
colors:
|
|
2260
|
+
extend: B,
|
|
2261
|
+
colors: I
|
|
2262
2262
|
},
|
|
2263
|
-
plugins:
|
|
2263
|
+
plugins: q,
|
|
2264
2264
|
corePlugins: O
|
|
2265
2265
|
}, b2 = {
|
|
2266
2266
|
theme: {
|
|
2267
|
-
extend:
|
|
2268
|
-
colors:
|
|
2267
|
+
extend: B,
|
|
2268
|
+
colors: $
|
|
2269
2269
|
},
|
|
2270
|
-
plugins:
|
|
2270
|
+
plugins: q,
|
|
2271
2271
|
corePlugins: O
|
|
2272
2272
|
};
|
|
2273
|
-
function R1(
|
|
2274
|
-
return new Proxy(
|
|
2273
|
+
function R1(d, e = []) {
|
|
2274
|
+
return new Proxy(d, {
|
|
2275
2275
|
get: function(t, a) {
|
|
2276
2276
|
return t[a];
|
|
2277
2277
|
},
|
|
@@ -2281,30 +2281,30 @@ function R1(c, e = []) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
2283
|
}
|
|
2284
|
-
function x2(
|
|
2285
|
-
e.length && (
|
|
2284
|
+
function x2(d, e = []) {
|
|
2285
|
+
e.length && (d == null || d.classList.add(...e));
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2288
|
-
e.length && (
|
|
2287
|
+
function y2(d, e = []) {
|
|
2288
|
+
e.length && (d == null || d.classList.remove(...e));
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function A2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2291
2291
|
let s = !0;
|
|
2292
|
-
for (const [r,
|
|
2293
|
-
const
|
|
2294
|
-
|
|
2295
|
-
p.isValid(
|
|
2296
|
-
}),
|
|
2297
|
-
p.preventDefault(),
|
|
2292
|
+
for (const [r, i] of t.entries()) {
|
|
2293
|
+
const l = e.querySelector(`[name="${r}"]`), o = a[r], u = [];
|
|
2294
|
+
o.forEach((p) => {
|
|
2295
|
+
p.isValid(i) || u.push(p.message);
|
|
2296
|
+
}), u.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (p) => {
|
|
2297
|
+
p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
2298
2298
|
}));
|
|
2299
2299
|
}
|
|
2300
2300
|
return s;
|
|
2301
2301
|
}
|
|
2302
|
-
function w2(
|
|
2302
|
+
function w2(d) {
|
|
2303
2303
|
const e = (
|
|
2304
2304
|
// eslint-disable-next-line
|
|
2305
2305
|
/(?:[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])+)\])/
|
|
2306
2306
|
), t = /[^a-zA-Z]+$/;
|
|
2307
|
-
return e.test(
|
|
2307
|
+
return e.test(d.toLowerCase()) && !t.test(d);
|
|
2308
2308
|
}
|
|
2309
2309
|
class S2 {
|
|
2310
2310
|
init(e) {
|
|
@@ -2348,16 +2348,16 @@ class S2 {
|
|
|
2348
2348
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2349
2349
|
}
|
|
2350
2350
|
handleIntersect(e, t, a) {
|
|
2351
|
-
const n = e.filter((
|
|
2352
|
-
(
|
|
2351
|
+
const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, r = n.every(
|
|
2352
|
+
(l) => l.isIntersecting === !0
|
|
2353
2353
|
);
|
|
2354
|
-
s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2354
|
+
s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
|
|
2355
|
+
const o = [...a.slides].indexOf(l.target);
|
|
2356
|
+
l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(o) && (a.entriesIntersected.push(o), a.activeIndex = o, i(l));
|
|
2357
2357
|
}));
|
|
2358
|
-
function l
|
|
2359
|
-
var
|
|
2360
|
-
|
|
2358
|
+
function i(l) {
|
|
2359
|
+
var o;
|
|
2360
|
+
l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((o = a.observer) == null || o.unobserve(l.target));
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
btnListeners(e) {
|
|
@@ -2384,8 +2384,8 @@ class S2 {
|
|
|
2384
2384
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2385
2385
|
`#btn-right-${a}`
|
|
2386
2386
|
);
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2387
|
+
const i = t.map((o) => n(o)).join(""), l = document.createElement("div");
|
|
2388
|
+
l.innerHTML = `${s}${i}${r}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
|
|
2389
2389
|
}
|
|
2390
2390
|
showHideBtns(e, t, a) {
|
|
2391
2391
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2395,12 +2395,12 @@ class S2 {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
class
|
|
2398
|
+
class H {
|
|
2399
2399
|
static calcCrow(e, t, a, n) {
|
|
2400
|
-
const r =
|
|
2401
|
-
e =
|
|
2402
|
-
const
|
|
2403
|
-
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 l = 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(l), Math.sqrt(1 - l)));
|
|
2404
2404
|
}
|
|
2405
2405
|
static cleanupAddress(e) {
|
|
2406
2406
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2413,9 +2413,9 @@ class g {
|
|
|
2413
2413
|
return;
|
|
2414
2414
|
window.dataLayer = window.dataLayer || [];
|
|
2415
2415
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2416
|
-
typeof
|
|
2416
|
+
typeof H == "function" && t.forEach((a) => {
|
|
2417
2417
|
a.addEventListener("click", () => {
|
|
2418
|
-
|
|
2418
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
2419
2419
|
});
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
@@ -2428,21 +2428,21 @@ class g {
|
|
|
2428
2428
|
static async createData(e, t = null, a = !0) {
|
|
2429
2429
|
if (window.options.isBot || !t)
|
|
2430
2430
|
return null;
|
|
2431
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2431
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, i = e + r, l = typeof t == "string" ? t : JSON.stringify(t), o = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2432
2432
|
try {
|
|
2433
|
-
const
|
|
2433
|
+
const u = await fetch(i, {
|
|
2434
2434
|
method: "POST",
|
|
2435
|
-
body:
|
|
2435
|
+
body: l === "null" ? null : l,
|
|
2436
2436
|
headers: {
|
|
2437
|
-
website:
|
|
2437
|
+
website: o
|
|
2438
2438
|
}
|
|
2439
|
-
}), p =
|
|
2439
|
+
}), p = u.headers.get("content-type");
|
|
2440
2440
|
if (p && p.indexOf("application/json") !== -1)
|
|
2441
|
-
return
|
|
2442
|
-
const
|
|
2443
|
-
return
|
|
2444
|
-
} catch (
|
|
2445
|
-
console.error("createData",
|
|
2441
|
+
return u.json();
|
|
2442
|
+
const V = await u.text();
|
|
2443
|
+
return V ? V.replace("__next", "") : null;
|
|
2444
|
+
} catch (u) {
|
|
2445
|
+
console.error("createData", u);
|
|
2446
2446
|
}
|
|
2447
2447
|
return null;
|
|
2448
2448
|
}
|
|
@@ -2451,7 +2451,7 @@ class g {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2453
2453
|
try {
|
|
2454
|
-
return await
|
|
2454
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
2455
2455
|
} catch (t) {
|
|
2456
2456
|
console.error("deleteSearchValue", t.message);
|
|
2457
2457
|
}
|
|
@@ -2502,17 +2502,17 @@ class g {
|
|
|
2502
2502
|
static async fetchData(e, t = !1, a = !0) {
|
|
2503
2503
|
if (options.isBot)
|
|
2504
2504
|
return null;
|
|
2505
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2505
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2506
2506
|
try {
|
|
2507
|
-
const
|
|
2507
|
+
const l = await fetch(i, { method: "GET" });
|
|
2508
2508
|
if (t === !0) {
|
|
2509
|
-
const
|
|
2510
|
-
return
|
|
2509
|
+
const u = await l.text();
|
|
2510
|
+
return u ? u.replace("__next", "") : null;
|
|
2511
2511
|
}
|
|
2512
|
-
const
|
|
2513
|
-
return
|
|
2514
|
-
} catch (
|
|
2515
|
-
console.error("fetchData",
|
|
2512
|
+
const o = l.headers.get("content-type");
|
|
2513
|
+
return o && o.indexOf("application/json") !== -1 ? l.json() : null;
|
|
2514
|
+
} catch (l) {
|
|
2515
|
+
console.error("fetchData", l, e);
|
|
2516
2516
|
}
|
|
2517
2517
|
return null;
|
|
2518
2518
|
}
|
|
@@ -2522,8 +2522,8 @@ class g {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
static formatDate(e = null) {
|
|
2524
2524
|
return e ? (e = new Date(e), [
|
|
2525
|
-
|
|
2526
|
-
|
|
2525
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
2526
|
+
H.padTo2Digits(e.getDate()),
|
|
2527
2527
|
e.getFullYear()
|
|
2528
2528
|
].join("-")) : null;
|
|
2529
2529
|
}
|
|
@@ -2540,12 +2540,12 @@ class g {
|
|
|
2540
2540
|
swLng: 0
|
|
2541
2541
|
};
|
|
2542
2542
|
const n = e.getBounds();
|
|
2543
|
-
let s = n.getSouth(), r = n.getEast(),
|
|
2544
|
-
return a && (s = s - a, r = r + a,
|
|
2543
|
+
let s = n.getSouth(), r = n.getEast(), i = n.getNorth(), l = n.getWest();
|
|
2544
|
+
return a && (s = s - a, r = r + a, i = i + a, l = l - a), t && (s = s.toFixed(t), r = r.toFixed(t), i = i.toFixed(t), l = l.toFixed(t)), {
|
|
2545
2545
|
swLat: s,
|
|
2546
2546
|
neLng: r,
|
|
2547
|
-
neLat:
|
|
2548
|
-
swLng:
|
|
2547
|
+
neLat: i,
|
|
2548
|
+
swLng: l
|
|
2549
2549
|
};
|
|
2550
2550
|
}
|
|
2551
2551
|
static getFirstN(e, t = 5) {
|
|
@@ -2573,7 +2573,7 @@ class g {
|
|
|
2573
2573
|
return "/report/license-plate";
|
|
2574
2574
|
}
|
|
2575
2575
|
static async getHeaders(e = 300) {
|
|
2576
|
-
var
|
|
2576
|
+
var l;
|
|
2577
2577
|
const {
|
|
2578
2578
|
userAgent: t = null,
|
|
2579
2579
|
userAgentData: a = null,
|
|
@@ -2586,30 +2586,30 @@ class g {
|
|
|
2586
2586
|
};
|
|
2587
2587
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
2588
2588
|
return r;
|
|
2589
|
-
const
|
|
2590
|
-
if (
|
|
2591
|
-
const
|
|
2592
|
-
return
|
|
2593
|
-
tolken:
|
|
2594
|
-
ip:
|
|
2589
|
+
const i = localStorage.getItem("headerTolken");
|
|
2590
|
+
if (i) {
|
|
2591
|
+
const o = JSON.parse(i), u = (/* @__PURE__ */ new Date()).getTime();
|
|
2592
|
+
return o.expire - u < 0 && localStorage.removeItem("headerTolken"), {
|
|
2593
|
+
tolken: o.tolken,
|
|
2594
|
+
ip: o.ip,
|
|
2595
2595
|
userAgent: t,
|
|
2596
2596
|
platform: s
|
|
2597
2597
|
};
|
|
2598
2598
|
}
|
|
2599
|
-
if ((
|
|
2599
|
+
if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
|
|
2600
2600
|
return r;
|
|
2601
2601
|
try {
|
|
2602
|
-
const
|
|
2602
|
+
const u = await (await fetch("/api/headers")).json(), p = (u == null ? void 0 : u.token) ?? null, V = (u == null ? void 0 : u.ip) ?? null;
|
|
2603
2603
|
return localStorage.setItem(
|
|
2604
2604
|
"headerTolken",
|
|
2605
2605
|
JSON.stringify({
|
|
2606
2606
|
tolken: p,
|
|
2607
|
-
ip:
|
|
2607
|
+
ip: V,
|
|
2608
2608
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
2609
2609
|
})
|
|
2610
|
-
), { tolken: p, ip:
|
|
2611
|
-
} catch (
|
|
2612
|
-
console.error("getHeaders",
|
|
2610
|
+
), { tolken: p, ip: V, userAgent: t, platform: s };
|
|
2611
|
+
} catch (o) {
|
|
2612
|
+
console.error("getHeaders", o);
|
|
2613
2613
|
}
|
|
2614
2614
|
return r;
|
|
2615
2615
|
}
|
|
@@ -2620,19 +2620,19 @@ class g {
|
|
|
2620
2620
|
}[e];
|
|
2621
2621
|
}
|
|
2622
2622
|
static async getLocationData(e) {
|
|
2623
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2624
|
-
return await
|
|
2623
|
+
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;
|
|
2624
|
+
return await H.fetchData("/api/client?query=" + r);
|
|
2625
2625
|
}
|
|
2626
2626
|
static getReportUrl(e, t = null) {
|
|
2627
|
-
var
|
|
2628
|
-
const a = ((
|
|
2627
|
+
var l, o, u;
|
|
2628
|
+
const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
2629
2629
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2630
|
-
const
|
|
2631
|
-
return "/" + [a, n, s].filter((p) => p).map((p) =>
|
|
2630
|
+
const i = [r, "-piq", t].filter((p) => p).join("");
|
|
2631
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
|
|
2632
2632
|
}
|
|
2633
2633
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2634
2634
|
try {
|
|
2635
|
-
return await
|
|
2635
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
2636
2636
|
} catch (t) {
|
|
2637
2637
|
console.error("getSearchValue", t.message);
|
|
2638
2638
|
}
|
|
@@ -2760,7 +2760,7 @@ class g {
|
|
|
2760
2760
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2761
2761
|
return null;
|
|
2762
2762
|
try {
|
|
2763
|
-
return await
|
|
2763
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
2764
2764
|
} catch (t) {
|
|
2765
2765
|
console.error("getUser", t.message);
|
|
2766
2766
|
}
|
|
@@ -2776,7 +2776,7 @@ class g {
|
|
|
2776
2776
|
uuid: t
|
|
2777
2777
|
}
|
|
2778
2778
|
});
|
|
2779
|
-
return await
|
|
2779
|
+
return await H.makeSearchFetchCall(
|
|
2780
2780
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2781
2781
|
);
|
|
2782
2782
|
}
|
|
@@ -2795,23 +2795,23 @@ class g {
|
|
|
2795
2795
|
const n = this;
|
|
2796
2796
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2797
2797
|
createTile: function(s, r) {
|
|
2798
|
-
const
|
|
2798
|
+
const i = document.createElement("div");
|
|
2799
2799
|
return setTimeout(() => {
|
|
2800
|
-
r(null,
|
|
2801
|
-
const { se:
|
|
2800
|
+
r(null, i);
|
|
2801
|
+
const { se: l, nw: o } = n.getGridBounds({
|
|
2802
2802
|
map: e,
|
|
2803
2803
|
tileSize: this.getTileSize(),
|
|
2804
2804
|
coords: s
|
|
2805
2805
|
});
|
|
2806
2806
|
t({
|
|
2807
|
-
swLat:
|
|
2808
|
-
neLng:
|
|
2809
|
-
neLat:
|
|
2810
|
-
swLng:
|
|
2807
|
+
swLat: l.lat,
|
|
2808
|
+
neLng: l.lng,
|
|
2809
|
+
neLat: o.lat,
|
|
2810
|
+
swLng: o.lng,
|
|
2811
2811
|
coords: s,
|
|
2812
2812
|
key: s.z + "-" + s.x + "-" + s.y
|
|
2813
2813
|
});
|
|
2814
|
-
}, a),
|
|
2814
|
+
}, a), i;
|
|
2815
2815
|
}
|
|
2816
2816
|
}), L.gridLayer.gridDebug = function(s) {
|
|
2817
2817
|
return new L.GridLayer.GridDebug(s);
|
|
@@ -2820,21 +2820,25 @@ class g {
|
|
|
2820
2820
|
/**
|
|
2821
2821
|
* Handle Native Dialogs
|
|
2822
2822
|
* @type {function} handleDialog
|
|
2823
|
-
* @param {
|
|
2823
|
+
* @param {boolean} disableOutsideClick - Disable dialog closing when clicking outside the dialog
|
|
2824
2824
|
* @param {string} id - Unique dialog id
|
|
2825
2825
|
* @param {function|null} onOpen - Callback function called when dialog is opened
|
|
2826
2826
|
* @param {function|null} onClose - Callback function called when dialog is closed
|
|
2827
|
-
* @param {
|
|
2827
|
+
* @param {function|null} onTargetClick - Callback function called when the selector is clicked
|
|
2828
|
+
* @param {boolean} selfClose - Only allow the dialog to close from within. (In the case of multiple active dialogs)
|
|
2829
|
+
* @param {string|null} target - Selector that open the dialog
|
|
2828
2830
|
* @returns {{activators: NodeListOf<Element>, handleOpen: {function}, handleClose: {function}, ref: HTMLDialogElement}}
|
|
2829
2831
|
*/
|
|
2830
2832
|
static handleDialog({
|
|
2831
|
-
|
|
2833
|
+
disableOutsideClick: e = !1,
|
|
2832
2834
|
id: t = "",
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2835
|
+
onClose: a = null,
|
|
2836
|
+
onOpen: n = null,
|
|
2837
|
+
onTargetClick: s = null,
|
|
2838
|
+
selfClose: r = !1,
|
|
2839
|
+
target: i = null
|
|
2836
2840
|
}) {
|
|
2837
|
-
const
|
|
2841
|
+
const l = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), u = r ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
|
|
2838
2842
|
"closing",
|
|
2839
2843
|
"closed",
|
|
2840
2844
|
"opening",
|
|
@@ -2842,66 +2846,66 @@ class g {
|
|
|
2842
2846
|
"outside",
|
|
2843
2847
|
"removed"
|
|
2844
2848
|
].reduce(
|
|
2845
|
-
(
|
|
2846
|
-
...
|
|
2847
|
-
[
|
|
2849
|
+
(h, y) => ({
|
|
2850
|
+
...h,
|
|
2851
|
+
[y]: new Event(y)
|
|
2848
2852
|
}),
|
|
2849
2853
|
{}
|
|
2850
|
-
),
|
|
2851
|
-
|
|
2852
|
-
if (
|
|
2853
|
-
const
|
|
2854
|
-
if (!(
|
|
2855
|
-
|
|
2854
|
+
), V = new MutationObserver((h, y) => {
|
|
2855
|
+
h.forEach(async (S) => {
|
|
2856
|
+
if (S.attributeName === "open") {
|
|
2857
|
+
const v = S.target;
|
|
2858
|
+
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2859
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(p.opening), v && await x(v), v == null || v.dispatchEvent(p.opened);
|
|
2856
2860
|
}
|
|
2857
2861
|
});
|
|
2858
|
-
}),
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
+
}), C = new MutationObserver((h, y) => {
|
|
2863
|
+
h.forEach((S) => {
|
|
2864
|
+
S.removedNodes.forEach((v) => {
|
|
2865
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", f), v.removeEventListener("close", M), v.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2862
2866
|
});
|
|
2863
2867
|
});
|
|
2864
2868
|
});
|
|
2865
|
-
|
|
2869
|
+
o && (V.observe(o, {
|
|
2866
2870
|
attributes: !0
|
|
2867
|
-
}),
|
|
2871
|
+
}), C.observe(document.body, {
|
|
2868
2872
|
attributes: !1,
|
|
2869
2873
|
subtree: !1,
|
|
2870
2874
|
childList: !0
|
|
2871
2875
|
}));
|
|
2872
|
-
const
|
|
2873
|
-
|
|
2874
|
-
},
|
|
2875
|
-
|
|
2876
|
-
},
|
|
2877
|
-
|
|
2878
|
-
}, f = (m) => Promise.allSettled(
|
|
2879
|
-
m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
2876
|
+
const M = async ({ target: h }) => {
|
|
2877
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2878
|
+
}, f = async ({ target: h }) => {
|
|
2879
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), o == null || o.close("outside"));
|
|
2880
|
+
}, x = (h) => Promise.allSettled(
|
|
2881
|
+
h == null ? void 0 : h.getAnimations().map((y) => y == null ? void 0 : y.finished)
|
|
2880
2882
|
);
|
|
2881
|
-
return !
|
|
2882
|
-
|
|
2883
|
-
|
|
2883
|
+
return !e && (o == null || o.addEventListener("click", f)), o == null || o.addEventListener("close", async (h) => {
|
|
2884
|
+
await M({ target: h.target }), a && a(h, o);
|
|
2885
|
+
}), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2886
|
+
n(h, o);
|
|
2887
|
+
})), l == null || l.forEach((h) => {
|
|
2888
|
+
h.addEventListener("click", (y) => {
|
|
2889
|
+
o == null || o.showModal(), s && s(y, o);
|
|
2884
2890
|
});
|
|
2885
|
-
}),
|
|
2886
|
-
|
|
2887
|
-
|
|
2891
|
+
}), u == null || u.forEach((h) => {
|
|
2892
|
+
h.addEventListener("click", async (y) => {
|
|
2893
|
+
o == null || o.close("close");
|
|
2888
2894
|
});
|
|
2889
2895
|
}), {
|
|
2890
|
-
activators:
|
|
2891
|
-
ref:
|
|
2892
|
-
handleOpen: C,
|
|
2893
|
-
handleClose: H
|
|
2896
|
+
activators: l,
|
|
2897
|
+
ref: o
|
|
2894
2898
|
};
|
|
2895
2899
|
}
|
|
2896
2900
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2897
|
-
return
|
|
2901
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2898
2902
|
}
|
|
2899
2903
|
static initObserver(e, t, a = null) {
|
|
2900
2904
|
if (!e)
|
|
2901
2905
|
return;
|
|
2902
2906
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2903
|
-
new IntersectionObserver(async (r,
|
|
2904
|
-
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs:
|
|
2907
|
+
new IntersectionObserver(async (r, i) => {
|
|
2908
|
+
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 });
|
|
2905
2909
|
}, a).observe(e);
|
|
2906
2910
|
}
|
|
2907
2911
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2910,10 +2914,10 @@ class g {
|
|
|
2910
2914
|
}
|
|
2911
2915
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2912
2916
|
return new Promise(function(s, r) {
|
|
2913
|
-
let
|
|
2914
|
-
if (t &&
|
|
2917
|
+
let i = document.getElementById(t);
|
|
2918
|
+
if (t && i && i.dataset.loaded === "true")
|
|
2915
2919
|
return s({ alreadyLoaded: !0, id: t });
|
|
2916
|
-
|
|
2920
|
+
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", s({ alreadyLoaded: !1, id: t })), i.onerror = () => r(!1));
|
|
2917
2921
|
});
|
|
2918
2922
|
}
|
|
2919
2923
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2953,7 +2957,7 @@ class g {
|
|
|
2953
2957
|
url: n,
|
|
2954
2958
|
data: s
|
|
2955
2959
|
};
|
|
2956
|
-
return await
|
|
2960
|
+
return await H.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2957
2961
|
}
|
|
2958
2962
|
static loadAds() {
|
|
2959
2963
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2971,7 +2975,7 @@ class g {
|
|
|
2971
2975
|
if (e) {
|
|
2972
2976
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2973
2977
|
try {
|
|
2974
|
-
return await
|
|
2978
|
+
return await H.injectScript({
|
|
2975
2979
|
src: s,
|
|
2976
2980
|
id: t || e,
|
|
2977
2981
|
async: !1,
|
|
@@ -2987,11 +2991,11 @@ class g {
|
|
|
2987
2991
|
if (window.options.googleMapsLoaded === !0)
|
|
2988
2992
|
return;
|
|
2989
2993
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2990
|
-
await
|
|
2994
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2991
2995
|
}
|
|
2992
2996
|
static async loadLeafletApi() {
|
|
2993
2997
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2994
|
-
await
|
|
2998
|
+
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({
|
|
2995
2999
|
src: a,
|
|
2996
3000
|
id: "gestureJs",
|
|
2997
3001
|
async: !1
|
|
@@ -3006,7 +3010,7 @@ class g {
|
|
|
3006
3010
|
}
|
|
3007
3011
|
static async loadSwiper() {
|
|
3008
3012
|
const e = "/slider/swiper-bundle.min.js";
|
|
3009
|
-
await
|
|
3013
|
+
await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
3010
3014
|
}
|
|
3011
3015
|
static async makeSearchFetchCall(e) {
|
|
3012
3016
|
try {
|
|
@@ -3040,16 +3044,16 @@ class g {
|
|
|
3040
3044
|
middle: n = null,
|
|
3041
3045
|
last: s = null,
|
|
3042
3046
|
min: r = null,
|
|
3043
|
-
max:
|
|
3044
|
-
city:
|
|
3045
|
-
state:
|
|
3046
|
-
vin:
|
|
3047
|
+
max: i = null,
|
|
3048
|
+
city: l = null,
|
|
3049
|
+
state: o = null,
|
|
3050
|
+
vin: u = null,
|
|
3047
3051
|
license: p = null,
|
|
3048
|
-
token:
|
|
3049
|
-
phone:
|
|
3050
|
-
} = e || {},
|
|
3051
|
-
let
|
|
3052
|
-
return t && t !== "" &&
|
|
3052
|
+
token: V = null,
|
|
3053
|
+
phone: C = null
|
|
3054
|
+
} = e || {}, M = t && t !== "", f = r && r !== "" && r !== "18", x = i && i !== "" && r !== "99";
|
|
3055
|
+
let h = [];
|
|
3056
|
+
return t && t !== "" && h.push("name=" + t), M || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), f && x ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (f && h.push("min=" + r), x && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), l && l !== "" && h.push("city=" + l), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
3053
3057
|
}
|
|
3054
3058
|
static padTo2Digits(e) {
|
|
3055
3059
|
return e.toString().padStart(2, "0");
|
|
@@ -3064,21 +3068,21 @@ class g {
|
|
|
3064
3068
|
useCitySearch: n = !1,
|
|
3065
3069
|
useCityStateSearch: s = !1,
|
|
3066
3070
|
useSearch: r = !1,
|
|
3067
|
-
useLocation:
|
|
3068
|
-
state:
|
|
3069
|
-
useGoogle:
|
|
3070
|
-
} = t ?? {}, { tolken:
|
|
3071
|
+
useLocation: i = !0,
|
|
3072
|
+
state: l = "",
|
|
3073
|
+
useGoogle: o = !1
|
|
3074
|
+
} = t ?? {}, { tolken: u = null, ip: p = null } = await H.getHeaders(), C = [
|
|
3071
3075
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3072
3076
|
"addressesOnly=" + a,
|
|
3073
3077
|
"useSearch=" + r,
|
|
3074
3078
|
"useCitySearch=" + n,
|
|
3075
3079
|
"useCityStateSearch=" + s,
|
|
3076
|
-
"useLocation=" +
|
|
3077
|
-
"useGoogle=" +
|
|
3080
|
+
"useLocation=" + i,
|
|
3081
|
+
"useGoogle=" + o
|
|
3078
3082
|
];
|
|
3079
|
-
|
|
3080
|
-
const
|
|
3081
|
-
return await
|
|
3083
|
+
l && l !== "" && !s && C.push("state=" + l), u && u !== "" && C.push("tolken=" + u), p && p !== "" && C.push("ip=" + p);
|
|
3084
|
+
const M = C.join("&"), x = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
3085
|
+
return await H.makeSearchFetchCall(x);
|
|
3082
3086
|
}
|
|
3083
3087
|
static removeElements(e) {
|
|
3084
3088
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3097,7 +3101,7 @@ class g {
|
|
|
3097
3101
|
});
|
|
3098
3102
|
}
|
|
3099
3103
|
static searchInStates(e) {
|
|
3100
|
-
const t =
|
|
3104
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
3101
3105
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3102
3106
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3103
3107
|
}
|
|
@@ -3105,7 +3109,7 @@ class g {
|
|
|
3105
3109
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3106
3110
|
}
|
|
3107
3111
|
static setBoundsEntries(e, t = "bounds") {
|
|
3108
|
-
const a =
|
|
3112
|
+
const a = H.getBoundsEntries(t);
|
|
3109
3113
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3110
3114
|
}
|
|
3111
3115
|
static async setCityState(e = null) {
|
|
@@ -3114,7 +3118,7 @@ class g {
|
|
|
3114
3118
|
return e;
|
|
3115
3119
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3116
3120
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3117
|
-
if (
|
|
3121
|
+
if (H.getStates(), a && !n) {
|
|
3118
3122
|
const s = this.searchInStates(a);
|
|
3119
3123
|
s && (a = null, n = s.short);
|
|
3120
3124
|
}
|
|
@@ -3125,14 +3129,14 @@ class g {
|
|
|
3125
3129
|
if (a && !n) {
|
|
3126
3130
|
const s = a.split(" "), r = s[s.length - 1];
|
|
3127
3131
|
if (r.length) {
|
|
3128
|
-
const
|
|
3129
|
-
|
|
3132
|
+
const i = this.searchInStates(r);
|
|
3133
|
+
i && (n = i.short, a = s.slice(0, -1).join(" "));
|
|
3130
3134
|
}
|
|
3131
3135
|
}
|
|
3132
3136
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
3133
3137
|
}
|
|
3134
3138
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
3135
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3139
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
3136
3140
|
}
|
|
3137
3141
|
static stickyHeader(e = ".nav") {
|
|
3138
3142
|
const t = document.querySelector(e);
|
|
@@ -3159,7 +3163,7 @@ class g {
|
|
|
3159
3163
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3160
3164
|
}
|
|
3161
3165
|
static useLayerTitle(e, t) {
|
|
3162
|
-
const a =
|
|
3166
|
+
const a = H.getLayerTitle(e);
|
|
3163
3167
|
L.tileLayer(a, {
|
|
3164
3168
|
maxNativeZoom: 19,
|
|
3165
3169
|
maxZoom: 25,
|
|
@@ -3168,7 +3172,7 @@ class g {
|
|
|
3168
3172
|
}).addTo(t);
|
|
3169
3173
|
}
|
|
3170
3174
|
static ucWords(e) {
|
|
3171
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3175
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
3172
3176
|
}
|
|
3173
3177
|
/**
|
|
3174
3178
|
* HOW TO USE EVENTS
|
|
@@ -3215,12 +3219,12 @@ export {
|
|
|
3215
3219
|
J1 as Alert,
|
|
3216
3220
|
_1 as Autocomplete,
|
|
3217
3221
|
Y1 as Badge,
|
|
3218
|
-
|
|
3222
|
+
F as Button,
|
|
3219
3223
|
K1 as ButtonGroup,
|
|
3220
3224
|
X1 as Card,
|
|
3221
3225
|
S2 as CardSlider,
|
|
3222
3226
|
e2 as Checkbox,
|
|
3223
|
-
|
|
3227
|
+
H as Common,
|
|
3224
3228
|
f2 as ContactForm,
|
|
3225
3229
|
t2 as Container,
|
|
3226
3230
|
V2 as ContentCard,
|
|
@@ -3243,15 +3247,15 @@ export {
|
|
|
3243
3247
|
L2 as StackedListItem,
|
|
3244
3248
|
m2 as Stars,
|
|
3245
3249
|
v1 as TextArea,
|
|
3246
|
-
|
|
3250
|
+
D as Textbox,
|
|
3247
3251
|
x2 as addClass,
|
|
3248
3252
|
M2 as colors,
|
|
3249
3253
|
O as corePlugins,
|
|
3250
3254
|
b2 as elerisPreset,
|
|
3251
|
-
|
|
3252
|
-
|
|
3255
|
+
B as extensions,
|
|
3256
|
+
q as plugins,
|
|
3253
3257
|
v2 as propertyPreset,
|
|
3254
|
-
|
|
3258
|
+
y2 as removeClass,
|
|
3255
3259
|
w2 as validateEmail,
|
|
3256
|
-
|
|
3260
|
+
A2 as validateForm
|
|
3257
3261
|
};
|