@vehiclehistory/property-lib 0.0.3 → 0.0.4
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/property-ui-lib.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as i, jsxs as g, Fragment as
|
|
2
|
-
import { memo as A, useState as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as g, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { memo as A, useState as Z, useEffect as S, useRef as q } from "react";
|
|
3
|
+
const B = {
|
|
4
4
|
xxSmall: "w-4 h-4",
|
|
5
5
|
xSmall: "w-5 h-5",
|
|
6
6
|
small: "w-6 h-6",
|
|
@@ -9,7 +9,7 @@ const Z = {
|
|
|
9
9
|
mediumPlus: "w-9 h-9",
|
|
10
10
|
large: "w-10 h-10",
|
|
11
11
|
xLarge: "w-12 h-12"
|
|
12
|
-
},
|
|
12
|
+
}, I = {
|
|
13
13
|
account: {
|
|
14
14
|
path: '<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />'
|
|
15
15
|
},
|
|
@@ -469,36 +469,36 @@ const Z = {
|
|
|
469
469
|
chatBubble: {
|
|
470
470
|
path: '<path d="M12,3C17.5,3 22,6.58 22,11C22,15.42 17.5,19 12,19C10.76,19 9.57,18.82 8.47,18.5C5.55,21 2,21 2,21C4.33,18.67 4.7,17.1 4.75,16.5C3.05,15.07 2,13.13 2,11C2,6.58 6.5,3 12,3Z" />'
|
|
471
471
|
}
|
|
472
|
-
},
|
|
472
|
+
}, P = (d) => I[d], R = ({
|
|
473
473
|
color: d = "text-current",
|
|
474
474
|
className: e,
|
|
475
475
|
name: t,
|
|
476
476
|
size: a = "medium",
|
|
477
|
-
viewBox:
|
|
477
|
+
viewBox: l = "0 0 20 20"
|
|
478
478
|
}) => {
|
|
479
|
-
const n =
|
|
479
|
+
const n = P(t), [s, r] = Z(d), [o, c] = Z(n);
|
|
480
480
|
return S(() => {
|
|
481
481
|
c(n);
|
|
482
482
|
}, [n]), S(() => {
|
|
483
|
-
|
|
483
|
+
r(d);
|
|
484
484
|
}, [d]), !n && console.error("Icon does not exist", t), /* @__PURE__ */ i(
|
|
485
485
|
"svg",
|
|
486
486
|
{
|
|
487
487
|
xmlns: "http://www.w3.org/2000/svg",
|
|
488
|
-
className: `${
|
|
488
|
+
className: `${B[a]} fill-current flex-shrink-0 ${s}${e ? ` ${e}` : ""}`,
|
|
489
489
|
style: { maxWidth: "4em" },
|
|
490
490
|
role: "presentation",
|
|
491
|
-
viewBox:
|
|
491
|
+
viewBox: l,
|
|
492
492
|
dangerouslySetInnerHTML: {
|
|
493
493
|
__html: o && o.path
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
);
|
|
497
|
-
}, y = A(
|
|
498
|
-
function
|
|
497
|
+
}, y = A(R);
|
|
498
|
+
function U(d) {
|
|
499
499
|
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
500
500
|
}
|
|
501
|
-
var
|
|
501
|
+
var D = { exports: {} };
|
|
502
502
|
/*!
|
|
503
503
|
Copyright (c) 2018 Jed Watson.
|
|
504
504
|
Licensed under the MIT License (MIT), see
|
|
@@ -509,8 +509,8 @@ var z = { exports: {} };
|
|
|
509
509
|
var e = {}.hasOwnProperty;
|
|
510
510
|
function t() {
|
|
511
511
|
for (var n = "", s = 0; s < arguments.length; s++) {
|
|
512
|
-
var
|
|
513
|
-
|
|
512
|
+
var r = arguments[s];
|
|
513
|
+
r && (n = l(n, a(r)));
|
|
514
514
|
}
|
|
515
515
|
return n;
|
|
516
516
|
}
|
|
@@ -524,45 +524,45 @@ var z = { exports: {} };
|
|
|
524
524
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
525
525
|
return n.toString();
|
|
526
526
|
var s = "";
|
|
527
|
-
for (var
|
|
528
|
-
e.call(n,
|
|
527
|
+
for (var r in n)
|
|
528
|
+
e.call(n, r) && n[r] && (s = l(s, r));
|
|
529
529
|
return s;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function l(n, s) {
|
|
532
532
|
return s ? n ? n + " " + s : n + s : n;
|
|
533
533
|
}
|
|
534
534
|
d.exports ? (t.default = t, d.exports = t) : window.classNames = t;
|
|
535
535
|
})();
|
|
536
|
-
})(
|
|
537
|
-
var
|
|
538
|
-
const
|
|
536
|
+
})(D);
|
|
537
|
+
var Q = D.exports;
|
|
538
|
+
const m = /* @__PURE__ */ U(Q), W = ({
|
|
539
539
|
children: d,
|
|
540
540
|
className: e,
|
|
541
541
|
clickHandler: t,
|
|
542
542
|
panelClass: a,
|
|
543
|
-
title:
|
|
543
|
+
title: l,
|
|
544
544
|
unmount: n = !0,
|
|
545
545
|
isOpen: s = !1
|
|
546
546
|
}) => {
|
|
547
|
-
const [
|
|
548
|
-
return /* @__PURE__ */ i("div", { className:
|
|
547
|
+
const [r, o] = Z(s);
|
|
548
|
+
return /* @__PURE__ */ i("div", { className: m("shadow rounded-lg", e), children: /* @__PURE__ */ g(z, { children: [
|
|
549
549
|
/* @__PURE__ */ g(
|
|
550
550
|
"button",
|
|
551
551
|
{
|
|
552
552
|
type: "button",
|
|
553
|
-
"data-div-track": `report | accordion | ${
|
|
554
|
-
className:
|
|
553
|
+
"data-div-track": `report | accordion | ${l}`,
|
|
554
|
+
className: m(
|
|
555
555
|
"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",
|
|
556
556
|
{
|
|
557
|
-
"acc-o":
|
|
557
|
+
"acc-o": r
|
|
558
558
|
}
|
|
559
559
|
),
|
|
560
|
-
title:
|
|
560
|
+
title: l,
|
|
561
561
|
onClick: () => {
|
|
562
|
-
o(!
|
|
562
|
+
o(!r), t && t(!r);
|
|
563
563
|
},
|
|
564
564
|
children: [
|
|
565
|
-
/* @__PURE__ */ i("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children:
|
|
565
|
+
/* @__PURE__ */ i("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: l }),
|
|
566
566
|
/* @__PURE__ */ i("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ i(
|
|
567
567
|
y,
|
|
568
568
|
{
|
|
@@ -574,10 +574,10 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
574
574
|
]
|
|
575
575
|
}
|
|
576
576
|
),
|
|
577
|
-
n &&
|
|
577
|
+
n && r && /* @__PURE__ */ i(
|
|
578
578
|
"div",
|
|
579
579
|
{
|
|
580
|
-
className:
|
|
580
|
+
className: m(
|
|
581
581
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
582
582
|
a
|
|
583
583
|
),
|
|
@@ -587,25 +587,25 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
587
587
|
!n && /* @__PURE__ */ i(
|
|
588
588
|
"div",
|
|
589
589
|
{
|
|
590
|
-
className:
|
|
590
|
+
className: m(
|
|
591
591
|
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
592
592
|
a,
|
|
593
|
-
{ hidden: !
|
|
593
|
+
{ hidden: !r }
|
|
594
594
|
),
|
|
595
595
|
children: d
|
|
596
596
|
}
|
|
597
597
|
)
|
|
598
598
|
] }) });
|
|
599
|
-
},
|
|
599
|
+
}, u1 = A(W), J = ({
|
|
600
600
|
children: d,
|
|
601
601
|
className: e = "",
|
|
602
602
|
messages: t = [],
|
|
603
603
|
title: a = "",
|
|
604
|
-
titleClass:
|
|
604
|
+
titleClass: l = "",
|
|
605
605
|
props: n = {},
|
|
606
606
|
type: s = "error"
|
|
607
607
|
}) => {
|
|
608
|
-
const
|
|
608
|
+
const r = {
|
|
609
609
|
error: {
|
|
610
610
|
icon: "error",
|
|
611
611
|
iconColor: "text-red-500",
|
|
@@ -626,12 +626,12 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
626
626
|
iconColor: "text-yellow-500",
|
|
627
627
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
628
628
|
}
|
|
629
|
-
}, { icon: o, iconColor: c, styles: h } =
|
|
629
|
+
}, { icon: o, iconColor: c, styles: h } = r[s];
|
|
630
630
|
return /* @__PURE__ */ i(
|
|
631
631
|
"div",
|
|
632
632
|
{
|
|
633
633
|
id: s,
|
|
634
|
-
className:
|
|
634
|
+
className: m(
|
|
635
635
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
636
636
|
h,
|
|
637
637
|
e
|
|
@@ -648,44 +648,44 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
648
648
|
}
|
|
649
649
|
) }),
|
|
650
650
|
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
651
|
-
/* @__PURE__ */ i("div", { className:
|
|
652
|
-
t.length > 0 ? /* @__PURE__ */ i("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ i("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((p,
|
|
651
|
+
/* @__PURE__ */ i("div", { className: m("font-medium text-sm", l), children: a }),
|
|
652
|
+
t.length > 0 ? /* @__PURE__ */ i("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ i("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((p, f) => /* @__PURE__ */ i("li", { children: p }, f)) }) }) : ""
|
|
653
653
|
] })
|
|
654
654
|
] })
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
|
-
},
|
|
657
|
+
}, p1 = A(J), m1 = ({
|
|
658
658
|
autoFocus: d = !1,
|
|
659
659
|
required: e = !1,
|
|
660
660
|
className: t = "",
|
|
661
661
|
defaultValue: a = "",
|
|
662
|
-
id:
|
|
662
|
+
id: l = "",
|
|
663
663
|
type: n,
|
|
664
664
|
floatingLabel: s = "",
|
|
665
|
-
inputClass:
|
|
665
|
+
inputClass: r = "",
|
|
666
666
|
leftIcon: o = "homeSearch",
|
|
667
667
|
mobileBackdrop: c = !1,
|
|
668
668
|
showSearchIcon: h = !0,
|
|
669
669
|
options: p = [],
|
|
670
|
-
name:
|
|
670
|
+
name: f = "",
|
|
671
671
|
placeholder: v = "",
|
|
672
672
|
props: b = {},
|
|
673
|
-
size:
|
|
673
|
+
size: C = "medium",
|
|
674
674
|
styles: u = null,
|
|
675
|
-
title:
|
|
675
|
+
title: V = ""
|
|
676
676
|
}) => /* @__PURE__ */ g(
|
|
677
677
|
"div",
|
|
678
678
|
{
|
|
679
|
-
id:
|
|
679
|
+
id: l,
|
|
680
680
|
"data-search": "container",
|
|
681
681
|
"data-search-type": n,
|
|
682
|
-
className:
|
|
682
|
+
className: m("Autocomplete", t),
|
|
683
683
|
style: u ? { ...u } : null,
|
|
684
684
|
children: [
|
|
685
685
|
h && /* @__PURE__ */ g(
|
|
686
686
|
"span",
|
|
687
687
|
{
|
|
688
|
-
className:
|
|
688
|
+
className: m(
|
|
689
689
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
690
690
|
{
|
|
691
691
|
"pointer-events-none": c
|
|
@@ -697,7 +697,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
697
697
|
{
|
|
698
698
|
className: "home-search select-none text-gray-500",
|
|
699
699
|
name: o,
|
|
700
|
-
size:
|
|
700
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
701
701
|
viewBox: "0 0 24 24"
|
|
702
702
|
}
|
|
703
703
|
),
|
|
@@ -706,7 +706,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
706
706
|
{
|
|
707
707
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
708
708
|
name: "arrowLeft",
|
|
709
|
-
size:
|
|
709
|
+
size: C === "xLarge" ? "small" : "xSmall",
|
|
710
710
|
viewBox: "0 0 24 24"
|
|
711
711
|
}
|
|
712
712
|
)
|
|
@@ -718,23 +718,23 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
718
718
|
{
|
|
719
719
|
"data-lpignore": "true",
|
|
720
720
|
autoFocus: d,
|
|
721
|
-
className:
|
|
721
|
+
className: m(
|
|
722
722
|
"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",
|
|
723
723
|
{
|
|
724
724
|
"pl-8": h === !0,
|
|
725
|
-
"px-3 h-10":
|
|
726
|
-
"px-4 h-12":
|
|
727
|
-
"px-5 h-[60px] sm:!text-base":
|
|
725
|
+
"px-3 h-10": C === "medium",
|
|
726
|
+
"px-4 h-12": C === "large",
|
|
727
|
+
"px-5 h-[60px] sm:!text-base": C === "xLarge",
|
|
728
728
|
peer: s
|
|
729
729
|
},
|
|
730
|
-
|
|
730
|
+
r
|
|
731
731
|
),
|
|
732
732
|
required: e,
|
|
733
733
|
autoComplete: "off",
|
|
734
734
|
value: a,
|
|
735
735
|
placeholder: !v && s ? " " : v,
|
|
736
736
|
type: "search",
|
|
737
|
-
name:
|
|
737
|
+
name: f || "search-input",
|
|
738
738
|
"data-id": "search-input",
|
|
739
739
|
...b
|
|
740
740
|
}
|
|
@@ -742,13 +742,13 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
742
742
|
s && /* @__PURE__ */ i(
|
|
743
743
|
"label",
|
|
744
744
|
{
|
|
745
|
-
className:
|
|
745
|
+
className: m(
|
|
746
746
|
"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",
|
|
747
747
|
{
|
|
748
748
|
"!left-7": h === !0,
|
|
749
|
-
"left-2":
|
|
750
|
-
"left-3":
|
|
751
|
-
"left-4":
|
|
749
|
+
"left-2": C === "medium",
|
|
750
|
+
"left-3": C === "large",
|
|
751
|
+
"left-4": C === "xLarge"
|
|
752
752
|
}
|
|
753
753
|
),
|
|
754
754
|
children: s
|
|
@@ -798,20 +798,20 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
798
798
|
{
|
|
799
799
|
"data-id": "search-dropdown-body",
|
|
800
800
|
role: "listbox",
|
|
801
|
-
"data-title":
|
|
801
|
+
"data-title": V,
|
|
802
802
|
"aria-labelledby": "Label",
|
|
803
803
|
"aria-activedescendant": "search-item-0",
|
|
804
|
-
children: p.length > 0 ? p.map((w,
|
|
804
|
+
children: p.length > 0 ? p.map((w, M) => /* @__PURE__ */ i(
|
|
805
805
|
"li",
|
|
806
806
|
{
|
|
807
|
-
id: `search-item-${
|
|
807
|
+
id: `search-item-${M}`,
|
|
808
808
|
tabIndex: -1,
|
|
809
809
|
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",
|
|
810
|
-
"aria-selected":
|
|
810
|
+
"aria-selected": M === 0,
|
|
811
811
|
role: "option",
|
|
812
812
|
children: (w == null ? void 0 : w.name) || w
|
|
813
813
|
},
|
|
814
|
-
`search-item-${
|
|
814
|
+
`search-item-${M}`
|
|
815
815
|
)) : ""
|
|
816
816
|
}
|
|
817
817
|
)
|
|
@@ -820,7 +820,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
820
820
|
)
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
|
-
),
|
|
823
|
+
), V1 = ({
|
|
824
824
|
children: d,
|
|
825
825
|
className: e = "",
|
|
826
826
|
size: t = "sm",
|
|
@@ -828,7 +828,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
828
828
|
}) => /* @__PURE__ */ i(
|
|
829
829
|
a || "span",
|
|
830
830
|
{
|
|
831
|
-
className:
|
|
831
|
+
className: m(
|
|
832
832
|
" bg-gray-200 font-semibold py-1 px-2 rounded-md",
|
|
833
833
|
{
|
|
834
834
|
"text-sm": t === "sm",
|
|
@@ -839,15 +839,15 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
839
839
|
),
|
|
840
840
|
children: d
|
|
841
841
|
}
|
|
842
|
-
),
|
|
842
|
+
), G = ({
|
|
843
843
|
children: d,
|
|
844
844
|
className: e = "",
|
|
845
845
|
disabled: t = !1,
|
|
846
846
|
href: a,
|
|
847
|
-
props:
|
|
847
|
+
props: l = {},
|
|
848
848
|
rounded: n = !1,
|
|
849
849
|
type: s = "button",
|
|
850
|
-
uppercase:
|
|
850
|
+
uppercase: r = !1,
|
|
851
851
|
variation: o = "primary"
|
|
852
852
|
}) => {
|
|
853
853
|
const c = a ? "a" : "button";
|
|
@@ -855,7 +855,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
855
855
|
c,
|
|
856
856
|
{
|
|
857
857
|
type: c !== "a" ? s : null,
|
|
858
|
-
className:
|
|
858
|
+
className: m(
|
|
859
859
|
"Button",
|
|
860
860
|
{
|
|
861
861
|
"Button--primary": o === "primary",
|
|
@@ -866,83 +866,83 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
866
866
|
"Button--disabled": t,
|
|
867
867
|
"custom-link": a
|
|
868
868
|
},
|
|
869
|
-
|
|
869
|
+
r,
|
|
870
870
|
e
|
|
871
871
|
),
|
|
872
872
|
disabled: t,
|
|
873
873
|
href: a,
|
|
874
|
-
...
|
|
874
|
+
...l,
|
|
875
875
|
children: d
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
|
-
},
|
|
878
|
+
}, H1 = A(G), L1 = ({ children: d, className: e }) => /* @__PURE__ */ i("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), C1 = ({
|
|
879
879
|
block: d = !1,
|
|
880
880
|
borderless: e = !1,
|
|
881
881
|
children: t,
|
|
882
882
|
className: a = "",
|
|
883
|
-
divider:
|
|
883
|
+
divider: l = !0,
|
|
884
884
|
inset: n = !0,
|
|
885
885
|
id: s = null,
|
|
886
|
-
role:
|
|
886
|
+
role: r = null
|
|
887
887
|
}) => /* @__PURE__ */ i(
|
|
888
888
|
"div",
|
|
889
889
|
{
|
|
890
|
-
className:
|
|
890
|
+
className: m(
|
|
891
891
|
"bg-white",
|
|
892
892
|
{
|
|
893
893
|
f1: !e,
|
|
894
894
|
f2: d,
|
|
895
|
-
f3:
|
|
895
|
+
f3: l,
|
|
896
896
|
f4: n
|
|
897
897
|
},
|
|
898
898
|
a
|
|
899
899
|
),
|
|
900
900
|
id: s,
|
|
901
|
-
role:
|
|
901
|
+
role: r,
|
|
902
902
|
children: t
|
|
903
903
|
}
|
|
904
|
-
),
|
|
904
|
+
), K = ({
|
|
905
905
|
checked: d = !1,
|
|
906
906
|
children: e,
|
|
907
907
|
className: t = "",
|
|
908
908
|
error: a = !1,
|
|
909
|
-
id:
|
|
909
|
+
id: l = "",
|
|
910
910
|
label: n = "",
|
|
911
911
|
name: s = "",
|
|
912
|
-
props:
|
|
912
|
+
props: r = {},
|
|
913
913
|
variation: o = "primary",
|
|
914
914
|
value: c = ""
|
|
915
915
|
}) => {
|
|
916
|
-
const h = n ? "div" : "label", p = h === "label" ? { htmlFor:
|
|
916
|
+
const h = n ? "div" : "label", p = h === "label" ? { htmlFor: l } : {};
|
|
917
917
|
return /* @__PURE__ */ g(
|
|
918
918
|
h,
|
|
919
919
|
{
|
|
920
|
-
className:
|
|
920
|
+
className: m("checkbox flex items-center", o, t),
|
|
921
921
|
...p,
|
|
922
922
|
children: [
|
|
923
923
|
/* @__PURE__ */ i(
|
|
924
924
|
"input",
|
|
925
925
|
{
|
|
926
926
|
checked: d,
|
|
927
|
-
className:
|
|
927
|
+
className: m("form-checkbox ", {
|
|
928
928
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
929
929
|
}),
|
|
930
|
-
id:
|
|
930
|
+
id: l,
|
|
931
931
|
name: s,
|
|
932
932
|
type: "checkbox",
|
|
933
933
|
value: c,
|
|
934
|
-
...
|
|
934
|
+
...r
|
|
935
935
|
}
|
|
936
936
|
),
|
|
937
937
|
e
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
},
|
|
941
|
+
}, f1 = A(K), Y = ({ 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: [
|
|
942
942
|
/* @__PURE__ */ i(
|
|
943
943
|
"main",
|
|
944
944
|
{
|
|
945
|
-
className:
|
|
945
|
+
className: m(
|
|
946
946
|
"w-full md:mb-0 flex-1 md:block lg:max-w-container",
|
|
947
947
|
{
|
|
948
948
|
"lg:order-2": t === "left"
|
|
@@ -954,7 +954,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
954
954
|
/* @__PURE__ */ i(
|
|
955
955
|
"aside",
|
|
956
956
|
{
|
|
957
|
-
className:
|
|
957
|
+
className: m(
|
|
958
958
|
"sm-max:hidden md:hidden lg:block flex-1 max-w-aside mb-6 md:mb-0 empty:!hidden",
|
|
959
959
|
{
|
|
960
960
|
"md:ml-8": t === "right",
|
|
@@ -964,33 +964,33 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
964
964
|
children: e
|
|
965
965
|
}
|
|
966
966
|
)
|
|
967
|
-
] }),
|
|
967
|
+
] }), M1 = A(Y), X = ({
|
|
968
968
|
activator: d,
|
|
969
969
|
id: e = "",
|
|
970
970
|
children: t,
|
|
971
971
|
className: a = "",
|
|
972
|
-
contentClass:
|
|
972
|
+
contentClass: l = "",
|
|
973
973
|
dark: n = !1,
|
|
974
974
|
footer: s,
|
|
975
|
-
fullMobile:
|
|
975
|
+
fullMobile: r = !0,
|
|
976
976
|
headerClass: o = "",
|
|
977
977
|
hideClose: c = !1,
|
|
978
978
|
iconSize: h = "medium",
|
|
979
979
|
preventPageScroll: p = !0,
|
|
980
|
-
stickyHeader:
|
|
980
|
+
stickyHeader: f = !1,
|
|
981
981
|
title: v = "",
|
|
982
982
|
titleClass: b = ""
|
|
983
|
-
}) => /* @__PURE__ */ g(
|
|
983
|
+
}) => /* @__PURE__ */ g(z, { children: [
|
|
984
984
|
d && /* @__PURE__ */ i("span", { id: `${e}-dialog-activator`, children: d }),
|
|
985
985
|
/* @__PURE__ */ i(
|
|
986
986
|
"dialog",
|
|
987
987
|
{
|
|
988
988
|
inert: "",
|
|
989
989
|
id: `${e}-dialog`,
|
|
990
|
-
className:
|
|
990
|
+
className: m(
|
|
991
991
|
"dialog",
|
|
992
992
|
{
|
|
993
|
-
"dialog-full-mobile":
|
|
993
|
+
"dialog-full-mobile": r,
|
|
994
994
|
dark: n,
|
|
995
995
|
"prevent-scroll": p
|
|
996
996
|
},
|
|
@@ -1000,10 +1000,10 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1000
1000
|
/* @__PURE__ */ g(
|
|
1001
1001
|
"header",
|
|
1002
1002
|
{
|
|
1003
|
-
className:
|
|
1003
|
+
className: m(
|
|
1004
1004
|
"dialog-header flex items-center p-4",
|
|
1005
1005
|
{
|
|
1006
|
-
"sticky top-0 bg-white z-10":
|
|
1006
|
+
"sticky top-0 bg-white z-10": f,
|
|
1007
1007
|
"!pb-0 border-0 justify-end": !v,
|
|
1008
1008
|
"justify-between border-b": v
|
|
1009
1009
|
},
|
|
@@ -1036,7 +1036,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1036
1036
|
"div",
|
|
1037
1037
|
{
|
|
1038
1038
|
id: `${e}-dialog-content`,
|
|
1039
|
-
className:
|
|
1039
|
+
className: m("dialog-content", l),
|
|
1040
1040
|
children: t
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
@@ -1044,7 +1044,108 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1044
1044
|
] })
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
1047
|
-
] }),
|
|
1047
|
+
] }), g1 = A(X), _ = ({
|
|
1048
|
+
activator: d,
|
|
1049
|
+
id: e = "",
|
|
1050
|
+
children: t,
|
|
1051
|
+
className: a = "",
|
|
1052
|
+
contentClass: l = "",
|
|
1053
|
+
onClose: n,
|
|
1054
|
+
disableOutsideClick: s = !1,
|
|
1055
|
+
footer: r,
|
|
1056
|
+
fullMobile: o = !0,
|
|
1057
|
+
headerClass: c = "",
|
|
1058
|
+
hideClose: h = !1,
|
|
1059
|
+
iconSize: p = "medium",
|
|
1060
|
+
isOpen: f = !1,
|
|
1061
|
+
setDialogOpen: v,
|
|
1062
|
+
stickyHeader: b = !1,
|
|
1063
|
+
title: C = "",
|
|
1064
|
+
titleClass: u = ""
|
|
1065
|
+
}) => {
|
|
1066
|
+
const V = q(null), w = async () => {
|
|
1067
|
+
V.current.classList.add("closing"), await O(V.current), V.current.classList.remove("closing"), n && n(), v(!1);
|
|
1068
|
+
}, M = async (x) => {
|
|
1069
|
+
x.key === "Escape" && await w();
|
|
1070
|
+
}, N = async ({ clientX: x, clientY: k, target: T }) => {
|
|
1071
|
+
const { left: E, right: j, top: F, bottom: $ } = V.current.getBoundingClientRect() ?? {};
|
|
1072
|
+
(!V.current.contains(T) || x < E || x > j || k < F || k > $) && await w();
|
|
1073
|
+
}, O = (x) => Promise.allSettled(
|
|
1074
|
+
x.getAnimations().map((k) => k.finished)
|
|
1075
|
+
);
|
|
1076
|
+
return S(() => {
|
|
1077
|
+
const x = V.current;
|
|
1078
|
+
x && (f ? x.showModal() : typeof x.close == "function" && x.close());
|
|
1079
|
+
}, [f]), /* @__PURE__ */ g(z, { children: [
|
|
1080
|
+
d && /* @__PURE__ */ i("span", { id: `${e}-dialog-activator`, onClick: () => v(!0), children: d }),
|
|
1081
|
+
/* @__PURE__ */ g(
|
|
1082
|
+
"dialog",
|
|
1083
|
+
{
|
|
1084
|
+
ref: V,
|
|
1085
|
+
id: `${e}-dialog`,
|
|
1086
|
+
className: m(
|
|
1087
|
+
"dialog",
|
|
1088
|
+
{
|
|
1089
|
+
hidden: !f,
|
|
1090
|
+
"xs-max:h-full xs-max:max-h-full": o
|
|
1091
|
+
},
|
|
1092
|
+
a
|
|
1093
|
+
),
|
|
1094
|
+
onKeyDown: M,
|
|
1095
|
+
onClick: (x) => s ? null : N(x),
|
|
1096
|
+
children: [
|
|
1097
|
+
/* @__PURE__ */ g(
|
|
1098
|
+
"header",
|
|
1099
|
+
{
|
|
1100
|
+
className: m(
|
|
1101
|
+
"dialog-header flex items-center p-4",
|
|
1102
|
+
{ "sticky top-0 bg-white": b },
|
|
1103
|
+
c
|
|
1104
|
+
),
|
|
1105
|
+
children: [
|
|
1106
|
+
/* @__PURE__ */ i("h3", { id: `${e}-dialog-title`, className: u, children: C || "" }),
|
|
1107
|
+
!h && /* @__PURE__ */ i(
|
|
1108
|
+
"button",
|
|
1109
|
+
{
|
|
1110
|
+
type: "button",
|
|
1111
|
+
title: "Close",
|
|
1112
|
+
className: "dialog-close",
|
|
1113
|
+
"data-dialog-close": "",
|
|
1114
|
+
onClick: w,
|
|
1115
|
+
children: /* @__PURE__ */ i(
|
|
1116
|
+
y,
|
|
1117
|
+
{
|
|
1118
|
+
name: "close",
|
|
1119
|
+
size: p,
|
|
1120
|
+
className: "pointer-events-none"
|
|
1121
|
+
}
|
|
1122
|
+
)
|
|
1123
|
+
}
|
|
1124
|
+
)
|
|
1125
|
+
]
|
|
1126
|
+
}
|
|
1127
|
+
),
|
|
1128
|
+
/* @__PURE__ */ i(
|
|
1129
|
+
"div",
|
|
1130
|
+
{
|
|
1131
|
+
id: `${e}-dialog-content`,
|
|
1132
|
+
className: m("dialog-content p-4", l),
|
|
1133
|
+
children: t
|
|
1134
|
+
}
|
|
1135
|
+
),
|
|
1136
|
+
r && /* @__PURE__ */ i(
|
|
1137
|
+
"footer",
|
|
1138
|
+
{
|
|
1139
|
+
id: `${e}-dialog-footer`,
|
|
1140
|
+
className: "dialog-footer flex justify-between items-center p-4 border-t",
|
|
1141
|
+
children: r
|
|
1142
|
+
}
|
|
1143
|
+
)
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
)
|
|
1147
|
+
] });
|
|
1148
|
+
}, v1 = A(_), A1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
|
|
1048
1149
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.1s" } }),
|
|
1049
1150
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.2s" } }),
|
|
1050
1151
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1053,61 +1154,61 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1053
1154
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.6s" } }),
|
|
1054
1155
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.7s" } }),
|
|
1055
1156
|
/* @__PURE__ */ i("span", { style: { animationDelay: "0.8s" } })
|
|
1056
|
-
] }),
|
|
1057
|
-
function a({ cb:
|
|
1157
|
+
] }), e1 = ({ cb: d, className: e = "", timeout: t = 1e4 }) => {
|
|
1158
|
+
function a({ cb: l }) {
|
|
1058
1159
|
const n = document.querySelector(".bar");
|
|
1059
1160
|
if (!n) return;
|
|
1060
|
-
let s,
|
|
1161
|
+
let s, r, o = !1;
|
|
1061
1162
|
function c(h) {
|
|
1062
1163
|
s === void 0 && (s = h);
|
|
1063
1164
|
const p = h - s;
|
|
1064
|
-
if (
|
|
1065
|
-
const
|
|
1066
|
-
n.style.transition = `width ${
|
|
1165
|
+
if (r !== h) {
|
|
1166
|
+
const f = p / t * 101;
|
|
1167
|
+
n.style.transition = `width ${f}ms ease-out`, n.style.width = `${f}%`, f >= 101 && (l && l(), o = !0, window.cancelAnimationFrame(h));
|
|
1067
1168
|
}
|
|
1068
|
-
p < t && (
|
|
1169
|
+
p < t && (r = h, o || window.requestAnimationFrame(c));
|
|
1069
1170
|
}
|
|
1070
1171
|
window.requestAnimationFrame(c);
|
|
1071
1172
|
}
|
|
1072
1173
|
return S(() => {
|
|
1073
1174
|
a({ cb: d });
|
|
1074
|
-
}, []), /* @__PURE__ */ i("div", { className:
|
|
1075
|
-
},
|
|
1175
|
+
}, []), /* @__PURE__ */ i("div", { className: m("progress-bar my-8", e), children: /* @__PURE__ */ i("div", { className: "bar", "data-size": "100" }) });
|
|
1176
|
+
}, y1 = A(e1), t1 = {
|
|
1076
1177
|
name: "spinnerDark",
|
|
1077
1178
|
color: "text-teal-700",
|
|
1078
1179
|
viewBox: "0 0 24 24"
|
|
1079
|
-
},
|
|
1180
|
+
}, a1 = ({ className: d = "" }) => /* @__PURE__ */ i("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ i(
|
|
1080
1181
|
y,
|
|
1081
1182
|
{
|
|
1082
1183
|
size: "xSmall",
|
|
1083
|
-
...
|
|
1184
|
+
...t1,
|
|
1084
1185
|
className: `animate-spin ${d}`
|
|
1085
1186
|
}
|
|
1086
|
-
) }),
|
|
1187
|
+
) }), b1 = A(a1), w1 = ({
|
|
1087
1188
|
activator: d,
|
|
1088
1189
|
activatorClass: e = "",
|
|
1089
1190
|
attrs: t = {},
|
|
1090
1191
|
options: a = {},
|
|
1091
|
-
children:
|
|
1192
|
+
children: l,
|
|
1092
1193
|
className: n = "",
|
|
1093
1194
|
containerClass: s = "",
|
|
1094
|
-
disabled:
|
|
1195
|
+
disabled: r = !1,
|
|
1095
1196
|
id: o = "",
|
|
1096
1197
|
trigger: c = "click"
|
|
1097
|
-
}) => /* @__PURE__ */ g(
|
|
1198
|
+
}) => /* @__PURE__ */ g(z, { children: [
|
|
1098
1199
|
/* @__PURE__ */ i(
|
|
1099
1200
|
"div",
|
|
1100
1201
|
{
|
|
1101
|
-
className:
|
|
1202
|
+
className: m("popover z-10 max-w-[350px] hidden", n),
|
|
1102
1203
|
children: /* @__PURE__ */ g(
|
|
1103
1204
|
"div",
|
|
1104
1205
|
{
|
|
1105
|
-
className:
|
|
1206
|
+
className: m(
|
|
1106
1207
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1107
1208
|
s
|
|
1108
1209
|
),
|
|
1109
1210
|
children: [
|
|
1110
|
-
|
|
1211
|
+
l,
|
|
1111
1212
|
/* @__PURE__ */ i(
|
|
1112
1213
|
"div",
|
|
1113
1214
|
{
|
|
@@ -1123,10 +1224,10 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1123
1224
|
/* @__PURE__ */ i(
|
|
1124
1225
|
"div",
|
|
1125
1226
|
{
|
|
1126
|
-
className:
|
|
1227
|
+
className: m(
|
|
1127
1228
|
"popover-activator",
|
|
1128
1229
|
`trigger-${c}`,
|
|
1129
|
-
|
|
1230
|
+
r ? "is-disabled" : "",
|
|
1130
1231
|
e
|
|
1131
1232
|
),
|
|
1132
1233
|
...t,
|
|
@@ -1134,75 +1235,75 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1134
1235
|
children: d
|
|
1135
1236
|
}
|
|
1136
1237
|
)
|
|
1137
|
-
] }),
|
|
1238
|
+
] }), n1 = ({
|
|
1138
1239
|
ariaValuemax: d = 100,
|
|
1139
1240
|
ariaValuemin: e = 0,
|
|
1140
1241
|
bgColor: t = "bg-orange-500",
|
|
1141
1242
|
className: a,
|
|
1142
|
-
completed:
|
|
1243
|
+
completed: l = 0,
|
|
1143
1244
|
maxCompleted: n = 100,
|
|
1144
1245
|
rounded: s = !0,
|
|
1145
|
-
showLabel:
|
|
1246
|
+
showLabel: r = !1
|
|
1146
1247
|
}) => {
|
|
1147
1248
|
const c = ((h, p) => {
|
|
1148
1249
|
if (h) {
|
|
1149
|
-
const
|
|
1150
|
-
return
|
|
1250
|
+
const f = Number(p) / h;
|
|
1251
|
+
return f > 1 ? 100 : f * 100;
|
|
1151
1252
|
}
|
|
1152
|
-
return
|
|
1153
|
-
})(n,
|
|
1253
|
+
return l;
|
|
1254
|
+
})(n, l);
|
|
1154
1255
|
return /* @__PURE__ */ i(
|
|
1155
1256
|
"div",
|
|
1156
1257
|
{
|
|
1157
|
-
className:
|
|
1258
|
+
className: m(
|
|
1158
1259
|
"w-full bg-gray-200",
|
|
1159
1260
|
{ "rounded-full": s },
|
|
1160
1261
|
a
|
|
1161
1262
|
),
|
|
1162
1263
|
role: "progressbar",
|
|
1163
1264
|
"aria-label": "Progress Bar",
|
|
1164
|
-
"aria-valuenow":
|
|
1265
|
+
"aria-valuenow": l,
|
|
1165
1266
|
"aria-valuemin": e,
|
|
1166
1267
|
"aria-valuemax": d,
|
|
1167
1268
|
children: /* @__PURE__ */ i(
|
|
1168
1269
|
"div",
|
|
1169
1270
|
{
|
|
1170
|
-
className:
|
|
1271
|
+
className: m(
|
|
1171
1272
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1172
1273
|
t
|
|
1173
1274
|
),
|
|
1174
1275
|
style: { width: `${c}%` },
|
|
1175
|
-
children:
|
|
1276
|
+
children: r && /* @__PURE__ */ i("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
|
|
1176
1277
|
}
|
|
1177
1278
|
)
|
|
1178
1279
|
}
|
|
1179
1280
|
);
|
|
1180
|
-
},
|
|
1281
|
+
}, x1 = A(n1), l1 = ({
|
|
1181
1282
|
checked: d = !1,
|
|
1182
1283
|
children: e,
|
|
1183
1284
|
className: t = "",
|
|
1184
1285
|
id: a = "",
|
|
1185
|
-
label:
|
|
1286
|
+
label: l = "",
|
|
1186
1287
|
name: n = "",
|
|
1187
1288
|
props: s = {},
|
|
1188
|
-
variation:
|
|
1289
|
+
variation: r = "primary",
|
|
1189
1290
|
value: o = ""
|
|
1190
1291
|
}) => {
|
|
1191
|
-
const c =
|
|
1292
|
+
const c = l ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1192
1293
|
return /* @__PURE__ */ g(
|
|
1193
1294
|
c,
|
|
1194
1295
|
{
|
|
1195
|
-
className:
|
|
1296
|
+
className: m("radio flex items-center", t),
|
|
1196
1297
|
...h,
|
|
1197
1298
|
children: [
|
|
1198
1299
|
/* @__PURE__ */ i(
|
|
1199
1300
|
"input",
|
|
1200
1301
|
{
|
|
1201
1302
|
checked: d,
|
|
1202
|
-
className:
|
|
1303
|
+
className: m(
|
|
1203
1304
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1204
1305
|
{
|
|
1205
|
-
"focus:ring-[#222]":
|
|
1306
|
+
"focus:ring-[#222]": r === "primary"
|
|
1206
1307
|
}
|
|
1207
1308
|
),
|
|
1208
1309
|
id: a,
|
|
@@ -1216,52 +1317,52 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1216
1317
|
]
|
|
1217
1318
|
}
|
|
1218
1319
|
);
|
|
1219
|
-
},
|
|
1320
|
+
}, k1 = A(l1), r1 = ({
|
|
1220
1321
|
children: d,
|
|
1221
1322
|
className: e = "",
|
|
1222
1323
|
error: t = !1,
|
|
1223
1324
|
errorMessage: a = "",
|
|
1224
|
-
id:
|
|
1325
|
+
id: l = "",
|
|
1225
1326
|
label: n = "",
|
|
1226
1327
|
name: s = "",
|
|
1227
|
-
options:
|
|
1328
|
+
options: r = [],
|
|
1228
1329
|
placeholder: o = "",
|
|
1229
1330
|
props: c = {},
|
|
1230
1331
|
selectClass: h = "",
|
|
1231
1332
|
styles: p = null,
|
|
1232
|
-
variation:
|
|
1333
|
+
variation: f = "primary",
|
|
1233
1334
|
value: v
|
|
1234
1335
|
}) => {
|
|
1235
1336
|
const b = o ? { defaultValue: "" } : {};
|
|
1236
1337
|
return /* @__PURE__ */ g(
|
|
1237
1338
|
"label",
|
|
1238
1339
|
{
|
|
1239
|
-
className:
|
|
1340
|
+
className: m("relative select", e, f),
|
|
1240
1341
|
style: p ? { ...p } : null,
|
|
1241
1342
|
children: [
|
|
1242
1343
|
n,
|
|
1243
1344
|
/* @__PURE__ */ g(
|
|
1244
1345
|
"select",
|
|
1245
1346
|
{
|
|
1246
|
-
className:
|
|
1347
|
+
className: m(
|
|
1247
1348
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1248
1349
|
t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1249
1350
|
h
|
|
1250
1351
|
),
|
|
1251
|
-
id:
|
|
1352
|
+
id: l,
|
|
1252
1353
|
name: s,
|
|
1253
1354
|
value: v,
|
|
1254
1355
|
...b,
|
|
1255
1356
|
...c,
|
|
1256
1357
|
children: [
|
|
1257
1358
|
o && /* @__PURE__ */ i("option", { hidden: !0, value: "", children: o }),
|
|
1258
|
-
|
|
1359
|
+
r.map((C, u) => /* @__PURE__ */ i(
|
|
1259
1360
|
"option",
|
|
1260
1361
|
{
|
|
1261
|
-
value: (
|
|
1262
|
-
children: (
|
|
1362
|
+
value: (C == null ? void 0 : C.id) || (C == null ? void 0 : C.value) || C,
|
|
1363
|
+
children: (C == null ? void 0 : C.name) || C
|
|
1263
1364
|
},
|
|
1264
|
-
(
|
|
1365
|
+
(C == null ? void 0 : C.name) || C
|
|
1265
1366
|
))
|
|
1266
1367
|
]
|
|
1267
1368
|
}
|
|
@@ -1270,10 +1371,10 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1270
1371
|
]
|
|
1271
1372
|
}
|
|
1272
1373
|
);
|
|
1273
|
-
},
|
|
1374
|
+
}, S1 = A(r1), s1 = ({ className: d = "" }) => /* @__PURE__ */ g(
|
|
1274
1375
|
"div",
|
|
1275
1376
|
{
|
|
1276
|
-
className:
|
|
1377
|
+
className: m(
|
|
1277
1378
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1278
1379
|
d
|
|
1279
1380
|
),
|
|
@@ -1282,12 +1383,12 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1282
1383
|
/* @__PURE__ */ i("span", { className: "sr-only", children: "Loading..." })
|
|
1283
1384
|
]
|
|
1284
1385
|
}
|
|
1285
|
-
),
|
|
1386
|
+
), z1 = A(s1), i1 = ({
|
|
1286
1387
|
placeholderClass: d = "",
|
|
1287
1388
|
children: e,
|
|
1288
1389
|
className: t = "",
|
|
1289
1390
|
id: a = 1,
|
|
1290
|
-
padding:
|
|
1391
|
+
padding: l = !0,
|
|
1291
1392
|
sliderName: n = ""
|
|
1292
1393
|
}) => /* @__PURE__ */ g(
|
|
1293
1394
|
"div",
|
|
@@ -1310,13 +1411,13 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1310
1411
|
{
|
|
1311
1412
|
id: `slider-container-${a}`,
|
|
1312
1413
|
className: "slider-container inline-flex w-full overflow-x-scroll md:overflow-x-hidden md:w-auto transition duration-200 ease-in-out sm-max:!transform-none",
|
|
1313
|
-
children: Array.from({ length: 4 }, (s,
|
|
1414
|
+
children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ i(
|
|
1314
1415
|
"div",
|
|
1315
1416
|
{
|
|
1316
1417
|
className: `card-ph slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1317
|
-
children: /* @__PURE__ */ i("div", { className: `slider-card-action ${
|
|
1418
|
+
children: /* @__PURE__ */ i("div", { className: `slider-card-action ${l ? "p-4" : ""}`, children: e })
|
|
1318
1419
|
},
|
|
1319
|
-
|
|
1420
|
+
r
|
|
1320
1421
|
))
|
|
1321
1422
|
}
|
|
1322
1423
|
),
|
|
@@ -1333,7 +1434,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1333
1434
|
)
|
|
1334
1435
|
]
|
|
1335
1436
|
}
|
|
1336
|
-
),
|
|
1437
|
+
), Z1 = A(i1), N1 = ({
|
|
1337
1438
|
className: d = "",
|
|
1338
1439
|
value: e
|
|
1339
1440
|
}) => {
|
|
@@ -1343,34 +1444,34 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1343
1444
|
return /* @__PURE__ */ i(
|
|
1344
1445
|
"div",
|
|
1345
1446
|
{
|
|
1346
|
-
className:
|
|
1447
|
+
className: m(
|
|
1347
1448
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1348
1449
|
d
|
|
1349
1450
|
),
|
|
1350
1451
|
style: t
|
|
1351
1452
|
}
|
|
1352
1453
|
);
|
|
1353
|
-
},
|
|
1454
|
+
}, o1 = ({
|
|
1354
1455
|
className: d = "",
|
|
1355
1456
|
clear: e = !1,
|
|
1356
1457
|
error: t = !1,
|
|
1357
1458
|
errorMessage: a = "",
|
|
1358
|
-
id:
|
|
1459
|
+
id: l = "",
|
|
1359
1460
|
inputClass: n = "",
|
|
1360
1461
|
name: s = "",
|
|
1361
|
-
placeholder:
|
|
1462
|
+
placeholder: r = "",
|
|
1362
1463
|
props: o = {},
|
|
1363
1464
|
rows: c = 4,
|
|
1364
1465
|
variation: h = "primary"
|
|
1365
|
-
}) => /* @__PURE__ */ g("div", { className:
|
|
1466
|
+
}) => /* @__PURE__ */ g("div", { className: m("relative textarea", h, d), children: [
|
|
1366
1467
|
/* @__PURE__ */ i(
|
|
1367
1468
|
"textarea",
|
|
1368
1469
|
{
|
|
1369
|
-
placeholder:
|
|
1370
|
-
id:
|
|
1470
|
+
placeholder: r,
|
|
1471
|
+
id: l,
|
|
1371
1472
|
name: s,
|
|
1372
1473
|
rows: c,
|
|
1373
|
-
className:
|
|
1474
|
+
className: m(
|
|
1374
1475
|
"form-textarea min-h-[40px] pl-4",
|
|
1375
1476
|
e ? "pr-10" : "pr-4",
|
|
1376
1477
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
@@ -1382,7 +1483,7 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1382
1483
|
e && /* @__PURE__ */ i(
|
|
1383
1484
|
"div",
|
|
1384
1485
|
{
|
|
1385
|
-
id: `${
|
|
1486
|
+
id: `${l}-clear`,
|
|
1386
1487
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1387
1488
|
children: /* @__PURE__ */ i(
|
|
1388
1489
|
y,
|
|
@@ -1395,32 +1496,32 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1395
1496
|
}
|
|
1396
1497
|
),
|
|
1397
1498
|
a && /* @__PURE__ */ i("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1398
|
-
] }),
|
|
1499
|
+
] }), D1 = A(o1), c1 = ({
|
|
1399
1500
|
className: d = "",
|
|
1400
1501
|
clear: e = !1,
|
|
1401
1502
|
error: t = !1,
|
|
1402
1503
|
errorMessage: a = "",
|
|
1403
|
-
iconLeft:
|
|
1504
|
+
iconLeft: l = "",
|
|
1404
1505
|
id: n = "",
|
|
1405
1506
|
inputClass: s = "",
|
|
1406
|
-
name:
|
|
1507
|
+
name: r = "",
|
|
1407
1508
|
placeholder: o = "",
|
|
1408
1509
|
props: c = {},
|
|
1409
1510
|
styles: h = null,
|
|
1410
1511
|
type: p = "text",
|
|
1411
|
-
value:
|
|
1512
|
+
value: f,
|
|
1412
1513
|
variation: v = "primary"
|
|
1413
1514
|
}) => /* @__PURE__ */ g(
|
|
1414
1515
|
"div",
|
|
1415
1516
|
{
|
|
1416
|
-
className:
|
|
1517
|
+
className: m("relative textbox", v, d),
|
|
1417
1518
|
style: h ? { ...h } : null,
|
|
1418
1519
|
children: [
|
|
1419
|
-
|
|
1520
|
+
l && /* @__PURE__ */ i("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ i(
|
|
1420
1521
|
y,
|
|
1421
1522
|
{
|
|
1422
1523
|
size: "xSmall",
|
|
1423
|
-
name:
|
|
1524
|
+
name: l,
|
|
1424
1525
|
color: "text-gray-500",
|
|
1425
1526
|
viewBox: "0 0 24 24"
|
|
1426
1527
|
}
|
|
@@ -1430,14 +1531,14 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1430
1531
|
{
|
|
1431
1532
|
placeholder: o,
|
|
1432
1533
|
id: n,
|
|
1433
|
-
name:
|
|
1534
|
+
name: r,
|
|
1434
1535
|
type: p,
|
|
1435
|
-
value:
|
|
1536
|
+
value: f,
|
|
1436
1537
|
autoComplete: "off",
|
|
1437
|
-
className:
|
|
1538
|
+
className: m(
|
|
1438
1539
|
"form-input",
|
|
1439
1540
|
e ? "pr-10" : "pr-4",
|
|
1440
|
-
|
|
1541
|
+
l ? "pl-8" : "pl-4",
|
|
1441
1542
|
{
|
|
1442
1543
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1443
1544
|
},
|
|
@@ -1465,12 +1566,12 @@ const V = /* @__PURE__ */ T(E), j = ({
|
|
|
1465
1566
|
a && /* @__PURE__ */ i("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1466
1567
|
]
|
|
1467
1568
|
}
|
|
1468
|
-
),
|
|
1469
|
-
class
|
|
1470
|
-
static calcCrow(e, t, a,
|
|
1471
|
-
const s =
|
|
1472
|
-
e =
|
|
1473
|
-
const o = Math.sin(s / 2) * Math.sin(s / 2) + Math.sin(
|
|
1569
|
+
), O1 = A(c1);
|
|
1570
|
+
class H {
|
|
1571
|
+
static calcCrow(e, t, a, l) {
|
|
1572
|
+
const s = H.toRad(a - e), r = H.toRad(l - t);
|
|
1573
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
1574
|
+
const o = Math.sin(s / 2) * Math.sin(s / 2) + Math.sin(r / 2) * Math.sin(r / 2) * Math.cos(e) * Math.cos(a);
|
|
1474
1575
|
return 6371 * (2 * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o)));
|
|
1475
1576
|
}
|
|
1476
1577
|
static cleanupAddress(e) {
|
|
@@ -1484,9 +1585,9 @@ class m {
|
|
|
1484
1585
|
return;
|
|
1485
1586
|
window.dataLayer = window.dataLayer || [];
|
|
1486
1587
|
const t = document.querySelectorAll("[data-div-track]");
|
|
1487
|
-
typeof
|
|
1588
|
+
typeof H == "function" && t.forEach((a) => {
|
|
1488
1589
|
a.addEventListener("click", () => {
|
|
1489
|
-
|
|
1590
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
1490
1591
|
});
|
|
1491
1592
|
});
|
|
1492
1593
|
}
|
|
@@ -1500,13 +1601,13 @@ class m {
|
|
|
1500
1601
|
static async createData(e, t = null, a = !0) {
|
|
1501
1602
|
if (options.isBot || !t)
|
|
1502
1603
|
return null;
|
|
1503
|
-
const { tolken:
|
|
1604
|
+
const { tolken: l = null, ip: n = null } = await H.getHeaders(), s = a === !1 ? "" : "&tolken=" + l + "&ip=" + n, r = e + s, o = typeof t == "string" ? t : JSON.stringify(t);
|
|
1504
1605
|
try {
|
|
1505
|
-
const c = await fetch(
|
|
1606
|
+
const c = await fetch(r, {
|
|
1506
1607
|
method: "POST",
|
|
1507
1608
|
body: o === "null" ? null : o,
|
|
1508
1609
|
headers: {
|
|
1509
|
-
website:
|
|
1610
|
+
website: H.getWebsiteHeaderName()
|
|
1510
1611
|
}
|
|
1511
1612
|
}), h = c.headers.get("content-type");
|
|
1512
1613
|
if (h && h.indexOf("application/json") !== -1)
|
|
@@ -1523,7 +1624,7 @@ class m {
|
|
|
1523
1624
|
}
|
|
1524
1625
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
1525
1626
|
try {
|
|
1526
|
-
return await
|
|
1627
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
1527
1628
|
} catch (t) {
|
|
1528
1629
|
console.error("deleteSearchValue", t.message);
|
|
1529
1630
|
}
|
|
@@ -1531,11 +1632,11 @@ class m {
|
|
|
1531
1632
|
}
|
|
1532
1633
|
static detectMouseMovement(e, t = null) {
|
|
1533
1634
|
const a = document.querySelector("body");
|
|
1534
|
-
let
|
|
1635
|
+
let l = !1;
|
|
1535
1636
|
a.addEventListener("mousemove", () => {
|
|
1536
|
-
|
|
1637
|
+
l || (l = !0, e(t));
|
|
1537
1638
|
}), a.addEventListener("touchmove", () => {
|
|
1538
|
-
|
|
1639
|
+
l || (l = !0, e(t));
|
|
1539
1640
|
});
|
|
1540
1641
|
}
|
|
1541
1642
|
static dlvCustom(e) {
|
|
@@ -1574,9 +1675,9 @@ class m {
|
|
|
1574
1675
|
static async fetchData(e, t = !1, a = !0) {
|
|
1575
1676
|
if (options.isBot)
|
|
1576
1677
|
return null;
|
|
1577
|
-
const { tolken:
|
|
1678
|
+
const { tolken: l = null, ip: n = null } = await H.getHeaders(), r = e.replace("#", "").replace("%23", "") + "&tolken=" + l + "&ip=" + n;
|
|
1578
1679
|
try {
|
|
1579
|
-
const o = await fetch(
|
|
1680
|
+
const o = await fetch(r, { method: "GET" });
|
|
1580
1681
|
if (t === !0) {
|
|
1581
1682
|
const h = await o.text();
|
|
1582
1683
|
return h ? h.replace("__next", "") : null;
|
|
@@ -1594,8 +1695,8 @@ class m {
|
|
|
1594
1695
|
}
|
|
1595
1696
|
static formatDate(e = null) {
|
|
1596
1697
|
return e ? (e = new Date(e), [
|
|
1597
|
-
|
|
1598
|
-
|
|
1698
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
1699
|
+
H.padTo2Digits(e.getDate()),
|
|
1599
1700
|
e.getFullYear()
|
|
1600
1701
|
].join("-")) : null;
|
|
1601
1702
|
}
|
|
@@ -1611,17 +1712,17 @@ class m {
|
|
|
1611
1712
|
neLat: 0,
|
|
1612
1713
|
swLng: 0
|
|
1613
1714
|
};
|
|
1614
|
-
const
|
|
1615
|
-
let n =
|
|
1616
|
-
return a && (n = n - a, s = s + a,
|
|
1715
|
+
const l = e.getBounds();
|
|
1716
|
+
let n = l.getSouth(), s = l.getEast(), r = l.getNorth(), o = l.getWest();
|
|
1717
|
+
return a && (n = n - a, s = s + a, r = r + a, o = o - a), t && (n = n.toFixed(t), s = s.toFixed(t), r = r.toFixed(t), o = o.toFixed(t)), {
|
|
1617
1718
|
swLat: n,
|
|
1618
1719
|
neLng: s,
|
|
1619
|
-
neLat:
|
|
1720
|
+
neLat: r,
|
|
1620
1721
|
swLng: o
|
|
1621
1722
|
};
|
|
1622
1723
|
}
|
|
1623
1724
|
static getFirstN(e, t = 5) {
|
|
1624
|
-
return e === null ? null : e.length === 0 ? [] : e.filter((a,
|
|
1725
|
+
return e === null ? null : e.length === 0 ? [] : e.filter((a, l) => l < t);
|
|
1625
1726
|
}
|
|
1626
1727
|
static getFormUrl(e = null) {
|
|
1627
1728
|
const { name: t = null, isOptOut: a = !1 } = e ?? {};
|
|
@@ -1648,8 +1749,8 @@ class m {
|
|
|
1648
1749
|
const {
|
|
1649
1750
|
userAgent: t = null,
|
|
1650
1751
|
userAgentData: a = null,
|
|
1651
|
-
platform:
|
|
1652
|
-
} = navigator || {}, n = (a == null ? void 0 : a.platform) ??
|
|
1752
|
+
platform: l = null
|
|
1753
|
+
} = navigator || {}, n = (a == null ? void 0 : a.platform) ?? l, s = {
|
|
1653
1754
|
tolken: null,
|
|
1654
1755
|
ip: null,
|
|
1655
1756
|
userAgent: t,
|
|
@@ -1657,9 +1758,9 @@ class m {
|
|
|
1657
1758
|
};
|
|
1658
1759
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
1659
1760
|
return s;
|
|
1660
|
-
const
|
|
1661
|
-
if (
|
|
1662
|
-
const o = JSON.parse(
|
|
1761
|
+
const r = localStorage.getItem("headerTolken");
|
|
1762
|
+
if (r) {
|
|
1763
|
+
const o = JSON.parse(r), c = (/* @__PURE__ */ new Date()).getTime();
|
|
1663
1764
|
return o.expire - c < 0 && localStorage.removeItem("headerTolken"), {
|
|
1664
1765
|
tolken: o.tolken,
|
|
1665
1766
|
ip: o.ip,
|
|
@@ -1689,19 +1790,19 @@ class m {
|
|
|
1689
1790
|
}[e];
|
|
1690
1791
|
}
|
|
1691
1792
|
static async getLocationData(e) {
|
|
1692
|
-
const { swLat: t, neLng: a, neLat:
|
|
1693
|
-
return await
|
|
1793
|
+
const { swLat: t, neLng: a, neLat: l, swLng: n } = H.getBounds(e, 3, 0.05), s = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + l + "&swLng=" + n;
|
|
1794
|
+
return await H.fetchData("/api/client?query=" + s);
|
|
1694
1795
|
}
|
|
1695
1796
|
static getReportUrl(e, t = null) {
|
|
1696
1797
|
var o, c, h;
|
|
1697
|
-
const a = ((o = e == null ? void 0 : e.state) == null ? void 0 : o.slug) ?? null,
|
|
1798
|
+
const a = ((o = e == null ? void 0 : e.state) == null ? void 0 : o.slug) ?? null, l = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, n = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, s = (e == null ? void 0 : e.zip) ?? null;
|
|
1698
1799
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
1699
|
-
const
|
|
1700
|
-
return "/" + [a,
|
|
1800
|
+
const r = [s, "-piq", t].filter((p) => p).join("");
|
|
1801
|
+
return "/" + [a, l, n].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + r;
|
|
1701
1802
|
}
|
|
1702
1803
|
static async getSearchValue(e = "recsSearchValue") {
|
|
1703
1804
|
try {
|
|
1704
|
-
return await
|
|
1805
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
1705
1806
|
} catch (t) {
|
|
1706
1807
|
console.error("getSearchValue", t.message);
|
|
1707
1808
|
}
|
|
@@ -1807,9 +1908,9 @@ class m {
|
|
|
1807
1908
|
];
|
|
1808
1909
|
}
|
|
1809
1910
|
static getTrackingData(e) {
|
|
1810
|
-
const [t, ...a] = e.split("|"),
|
|
1911
|
+
const [t, ...a] = e.split("|"), l = a.join("|").trim(), n = [
|
|
1811
1912
|
"[pageType::" + t.trim() + "]",
|
|
1812
|
-
"[name::" +
|
|
1913
|
+
"[name::" + l + "]"
|
|
1813
1914
|
].join(" ");
|
|
1814
1915
|
return {
|
|
1815
1916
|
value: n,
|
|
@@ -1826,7 +1927,7 @@ class m {
|
|
|
1826
1927
|
return e;
|
|
1827
1928
|
}
|
|
1828
1929
|
try {
|
|
1829
|
-
return await
|
|
1930
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
1830
1931
|
} catch (e) {
|
|
1831
1932
|
console.error("getUser", e.message);
|
|
1832
1933
|
}
|
|
@@ -1842,7 +1943,7 @@ class m {
|
|
|
1842
1943
|
uuid: t
|
|
1843
1944
|
}
|
|
1844
1945
|
});
|
|
1845
|
-
return await
|
|
1946
|
+
return await H.makeSearchFetchCall(
|
|
1846
1947
|
`/api/client?query=user-get-history&filter=${a}`
|
|
1847
1948
|
);
|
|
1848
1949
|
}
|
|
@@ -1851,20 +1952,20 @@ class m {
|
|
|
1851
1952
|
return a && a.includes(t) ? t : e;
|
|
1852
1953
|
}
|
|
1853
1954
|
static getGridBounds({ map: e, tileSize: t, coords: a }) {
|
|
1854
|
-
const
|
|
1955
|
+
const l = a.scaleBy(t), n = l.add(t);
|
|
1855
1956
|
return {
|
|
1856
|
-
nw: e.unproject(
|
|
1957
|
+
nw: e.unproject(l, a.z),
|
|
1857
1958
|
se: e.unproject(n, a.z)
|
|
1858
1959
|
};
|
|
1859
1960
|
}
|
|
1860
1961
|
static gridTest(e, t, a = 1500) {
|
|
1861
|
-
const
|
|
1962
|
+
const l = this;
|
|
1862
1963
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
1863
1964
|
createTile: function(n, s) {
|
|
1864
|
-
const
|
|
1965
|
+
const r = document.createElement("div");
|
|
1865
1966
|
return setTimeout(() => {
|
|
1866
|
-
s(null,
|
|
1867
|
-
const { se: o, nw: c } =
|
|
1967
|
+
s(null, r);
|
|
1968
|
+
const { se: o, nw: c } = l.getGridBounds({
|
|
1868
1969
|
map: e,
|
|
1869
1970
|
tileSize: this.getTileSize(),
|
|
1870
1971
|
coords: n
|
|
@@ -1877,7 +1978,7 @@ class m {
|
|
|
1877
1978
|
coords: n,
|
|
1878
1979
|
key: n.z + "-" + n.x + "-" + n.y
|
|
1879
1980
|
});
|
|
1880
|
-
}, a),
|
|
1981
|
+
}, a), r;
|
|
1881
1982
|
}
|
|
1882
1983
|
}), L.gridLayer.gridDebug = function(n) {
|
|
1883
1984
|
return new L.GridLayer.GridDebug(n);
|
|
@@ -1897,88 +1998,88 @@ class m {
|
|
|
1897
1998
|
target: e = null,
|
|
1898
1999
|
id: t = "",
|
|
1899
2000
|
onOpen: a = null,
|
|
1900
|
-
onClose:
|
|
2001
|
+
onClose: l = null,
|
|
1901
2002
|
disableOutsideClick: n = !1
|
|
1902
2003
|
}) {
|
|
1903
|
-
const s = e ? document.querySelectorAll(e) : [],
|
|
1904
|
-
(u,
|
|
2004
|
+
const s = e ? document.querySelectorAll(e) : [], r = document.getElementById(t + "-dialog"), o = document.querySelectorAll("[data-dialog-close]"), c = ["closing", "closed", "opening", "opened", "removed"].reduce(
|
|
2005
|
+
(u, V) => ({
|
|
1905
2006
|
...u,
|
|
1906
|
-
[
|
|
2007
|
+
[V]: new Event(V)
|
|
1907
2008
|
}),
|
|
1908
2009
|
{}
|
|
1909
|
-
), h = new MutationObserver((u,
|
|
2010
|
+
), h = new MutationObserver((u, V) => {
|
|
1910
2011
|
u.forEach(async (w) => {
|
|
1911
2012
|
if (w.attributeName === "open") {
|
|
1912
|
-
const
|
|
1913
|
-
if (!(
|
|
1914
|
-
|
|
2013
|
+
const M = w.target;
|
|
2014
|
+
if (!(M == null ? void 0 : M.hasAttribute("open"))) return;
|
|
2015
|
+
M == null || M.removeAttribute("inert"), M == null || M.dispatchEvent(c.opening), M && await C(M), M == null || M.dispatchEvent(c.opened);
|
|
1915
2016
|
}
|
|
1916
2017
|
});
|
|
1917
|
-
}), p = new MutationObserver((u,
|
|
2018
|
+
}), p = new MutationObserver((u, V) => {
|
|
1918
2019
|
u.forEach((w) => {
|
|
1919
|
-
w.removedNodes.forEach((
|
|
1920
|
-
|
|
2020
|
+
w.removedNodes.forEach((M) => {
|
|
2021
|
+
M.nodeName === "DIALOG" && (M.removeEventListener("click", b), M.removeEventListener("close", v), M.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
|
|
1921
2022
|
});
|
|
1922
2023
|
});
|
|
1923
2024
|
});
|
|
1924
|
-
|
|
2025
|
+
r && (h.observe(r, {
|
|
1925
2026
|
attributes: !0
|
|
1926
2027
|
}), p.observe(document.body, {
|
|
1927
2028
|
attributes: !1,
|
|
1928
2029
|
subtree: !1,
|
|
1929
2030
|
childList: !0
|
|
1930
2031
|
}));
|
|
1931
|
-
const
|
|
1932
|
-
|
|
2032
|
+
const f = () => {
|
|
2033
|
+
r == null || r.showModal();
|
|
1933
2034
|
}, v = async ({ target: u }) => {
|
|
1934
|
-
u == null || u.classList.add("closing"), u == null || u.setAttribute("inert", ""), u == null || u.dispatchEvent(c.closing), u && await
|
|
2035
|
+
u == null || u.classList.add("closing"), u == null || u.setAttribute("inert", ""), u == null || u.dispatchEvent(c.closing), u && await C(u), u == null || u.classList.remove("closing"), u == null || u.dispatchEvent(c.closed);
|
|
1935
2036
|
}, b = async ({ target: u }) => {
|
|
1936
|
-
(u == null ? void 0 : u.nodeName) === "DIALOG" && (
|
|
1937
|
-
},
|
|
1938
|
-
u == null ? void 0 : u.getAnimations().map((
|
|
2037
|
+
(u == null ? void 0 : u.nodeName) === "DIALOG" && (r == null || r.close("outside"));
|
|
2038
|
+
}, C = (u) => Promise.allSettled(
|
|
2039
|
+
u == null ? void 0 : u.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
1939
2040
|
);
|
|
1940
|
-
return !n && (
|
|
1941
|
-
u.addEventListener("click", (
|
|
1942
|
-
|
|
2041
|
+
return !n && (r == null || r.addEventListener("click", b)), r == null || r.addEventListener("close", v), s == null || s.forEach((u) => {
|
|
2042
|
+
u.addEventListener("click", (V) => {
|
|
2043
|
+
f(), a && a(V, r);
|
|
1943
2044
|
});
|
|
1944
2045
|
}), o == null || o.forEach((u) => {
|
|
1945
|
-
u.addEventListener("click", async (
|
|
1946
|
-
|
|
2046
|
+
u.addEventListener("click", async (V) => {
|
|
2047
|
+
r == null || r.close("close"), l && l(V, r);
|
|
1947
2048
|
});
|
|
1948
2049
|
}), {
|
|
1949
2050
|
activators: s,
|
|
1950
|
-
ref:
|
|
1951
|
-
handleOpen:
|
|
2051
|
+
ref: r,
|
|
2052
|
+
handleOpen: f,
|
|
1952
2053
|
handleClose: v
|
|
1953
2054
|
};
|
|
1954
2055
|
}
|
|
1955
2056
|
static hasBoundsEntry(e, t = "bounds") {
|
|
1956
|
-
return
|
|
2057
|
+
return H.getBoundsEntries(t).includes(e);
|
|
1957
2058
|
}
|
|
1958
2059
|
static initObserver(e, t, a = null) {
|
|
1959
2060
|
if (!e)
|
|
1960
2061
|
return;
|
|
1961
|
-
const
|
|
1962
|
-
new IntersectionObserver(async (s,
|
|
1963
|
-
|
|
2062
|
+
const l = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2063
|
+
new IntersectionObserver(async (s, r) => {
|
|
2064
|
+
l ? (s[0].isIntersecting || s[0].boundingClientRect.y < 0) && t({ obs: r, entry: s[0], entries: s }) : s[0].isIntersecting && t({ obs: r, entry: s[0], entries: s });
|
|
1964
2065
|
}, a).observe(e);
|
|
1965
2066
|
}
|
|
1966
2067
|
static injectLink({ href: e, id: t }) {
|
|
1967
2068
|
const a = document.createElement("link");
|
|
1968
2069
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
1969
2070
|
}
|
|
1970
|
-
static injectScript({ src: e, id: t = null, async: a = !0, module:
|
|
2071
|
+
static injectScript({ src: e, id: t = null, async: a = !0, module: l = !1 }) {
|
|
1971
2072
|
return new Promise(function(n, s) {
|
|
1972
|
-
let
|
|
1973
|
-
if (t &&
|
|
2073
|
+
let r = document.getElementById(t);
|
|
2074
|
+
if (t && r && r.dataset.loaded === "true")
|
|
1974
2075
|
return n({ alreadyLoaded: !0, id: t });
|
|
1975
|
-
|
|
2076
|
+
r || (r = document.createElement("script"), r.src = e, r.dataset.loaded = "false", t && (r.id = t), r.type = l ? "module" : "text/javascript", r.async = a, document.body.appendChild(r), r.onload = () => (r.dataset.loaded = "true", n({ alreadyLoaded: !1, id: t })), r.onerror = () => s(!1));
|
|
1976
2077
|
});
|
|
1977
2078
|
}
|
|
1978
2079
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
1979
|
-
var
|
|
2080
|
+
var l;
|
|
1980
2081
|
const a = document.querySelector(e);
|
|
1981
|
-
return ((
|
|
2082
|
+
return ((l = a == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : l.width) ?? 0 < t;
|
|
1982
2083
|
}
|
|
1983
2084
|
static isMobileAndTablet() {
|
|
1984
2085
|
return window.mobileAndTabletCheck = function() {
|
|
@@ -2001,18 +2102,18 @@ class m {
|
|
|
2001
2102
|
static kFormat(e, t = 0) {
|
|
2002
2103
|
if (!e)
|
|
2003
2104
|
return null;
|
|
2004
|
-
const a = Math.abs(e),
|
|
2005
|
-
return a > 999999 ?
|
|
2105
|
+
const a = Math.abs(e), l = Math.sign(e);
|
|
2106
|
+
return a > 999999 ? l * (a / 1e6).toFixed(1) + "m" : a > 999 ? l * (a / 1e3).toFixed(t) + "k" : l * a;
|
|
2006
2107
|
}
|
|
2007
|
-
static async logRequest(e = null, t = null, a = null,
|
|
2108
|
+
static async logRequest(e = null, t = null, a = null, l = null, n = null) {
|
|
2008
2109
|
const s = {
|
|
2009
2110
|
name: e,
|
|
2010
2111
|
uuid: t,
|
|
2011
2112
|
ip: a,
|
|
2012
|
-
url:
|
|
2113
|
+
url: l,
|
|
2013
2114
|
data: n
|
|
2014
2115
|
};
|
|
2015
|
-
return await
|
|
2116
|
+
return await H.createData("/api/client?query=log/save&method=POST", s), null;
|
|
2016
2117
|
}
|
|
2017
2118
|
static loadAds() {
|
|
2018
2119
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2027,10 +2128,10 @@ class m {
|
|
|
2027
2128
|
}
|
|
2028
2129
|
static async loadCustomScript({ name: e = null, id: t = "", module: a = !1 } = {}) {
|
|
2029
2130
|
if (e) {
|
|
2030
|
-
const
|
|
2131
|
+
const l = "/scripts/" + e + ".js?v=100.0.5";
|
|
2031
2132
|
try {
|
|
2032
|
-
return await
|
|
2033
|
-
src:
|
|
2133
|
+
return await H.injectScript({
|
|
2134
|
+
src: l,
|
|
2034
2135
|
id: t || e,
|
|
2035
2136
|
async: !1,
|
|
2036
2137
|
module: a
|
|
@@ -2045,19 +2146,19 @@ class m {
|
|
|
2045
2146
|
if (window.options.googleMapsLoaded === !0)
|
|
2046
2147
|
return;
|
|
2047
2148
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2048
|
-
await
|
|
2149
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2049
2150
|
}
|
|
2050
2151
|
static async loadLeafletApi() {
|
|
2051
|
-
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css",
|
|
2052
|
-
await
|
|
2053
|
-
src:
|
|
2152
|
+
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", l = "//unpkg.com/leaflet-gesture-handling", n = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
|
|
2153
|
+
await H.injectLink({ href: a, id: "leafletCss" }), await H.injectLink({ href: n, id: "gestureCss" }), await H.injectScript({ src: t, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2154
|
+
src: l,
|
|
2054
2155
|
id: "gestureJs",
|
|
2055
2156
|
async: !1
|
|
2056
2157
|
});
|
|
2057
2158
|
}
|
|
2058
2159
|
static async loadSwiper() {
|
|
2059
2160
|
const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
|
|
2060
|
-
await
|
|
2161
|
+
await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
|
|
2061
2162
|
}
|
|
2062
2163
|
static async makeSearchFetchCall(e) {
|
|
2063
2164
|
try {
|
|
@@ -2088,19 +2189,19 @@ class m {
|
|
|
2088
2189
|
const {
|
|
2089
2190
|
name: t = null,
|
|
2090
2191
|
first: a = null,
|
|
2091
|
-
middle:
|
|
2192
|
+
middle: l = null,
|
|
2092
2193
|
last: n = null,
|
|
2093
2194
|
min: s = null,
|
|
2094
|
-
max:
|
|
2195
|
+
max: r = null,
|
|
2095
2196
|
city: o = null,
|
|
2096
2197
|
state: c = null,
|
|
2097
2198
|
vin: h = null,
|
|
2098
2199
|
license: p = null,
|
|
2099
|
-
token:
|
|
2200
|
+
token: f = null,
|
|
2100
2201
|
phone: v = null
|
|
2101
|
-
} = e || {}, b = t && t !== "",
|
|
2102
|
-
let
|
|
2103
|
-
return t && t !== "" &&
|
|
2202
|
+
} = e || {}, b = t && t !== "", C = s && s !== "" && s !== "18", u = r && r !== "" && s !== "99";
|
|
2203
|
+
let V = [];
|
|
2204
|
+
return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), l && l !== "" && V.push("middle=" + l), n && n !== "" && V.push("last=" + n)), C && u ? parseInt(s) > parseInt(r) ? (V.push("min=" + r), V.push("max=" + s)) : (V.push("min=" + s), V.push("max=" + r)) : (C && V.push("min=" + s), u && V.push("max=" + r)), v && v !== "" && V.push("phone=" + v), o && o !== "" && V.push("city=" + o), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
|
|
2104
2205
|
}
|
|
2105
2206
|
static padTo2Digits(e) {
|
|
2106
2207
|
return e.toString().padStart(2, "0");
|
|
@@ -2112,22 +2213,22 @@ class m {
|
|
|
2112
2213
|
return [];
|
|
2113
2214
|
const {
|
|
2114
2215
|
addressesOnly: a = !1,
|
|
2115
|
-
useCitySearch:
|
|
2216
|
+
useCitySearch: l = !1,
|
|
2116
2217
|
useCityStateSearch: n = !1,
|
|
2117
2218
|
useSearch: s = !1,
|
|
2118
|
-
useLocation:
|
|
2219
|
+
useLocation: r = !0,
|
|
2119
2220
|
state: o = ""
|
|
2120
|
-
} = t ?? {}, { tolken: c = null, ip: h = null } = await
|
|
2221
|
+
} = t ?? {}, { tolken: c = null, ip: h = null } = await H.getHeaders(), f = [
|
|
2121
2222
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2122
2223
|
"addressesOnly=" + a,
|
|
2123
2224
|
"useSearch=" + s,
|
|
2124
|
-
"useCitySearch=" +
|
|
2225
|
+
"useCitySearch=" + l,
|
|
2125
2226
|
"useCityStateSearch=" + n,
|
|
2126
|
-
"useLocation=" +
|
|
2227
|
+
"useLocation=" + r
|
|
2127
2228
|
];
|
|
2128
|
-
o && o !== "" && !n &&
|
|
2129
|
-
const v =
|
|
2130
|
-
return await
|
|
2229
|
+
o && o !== "" && !n && f.push("state=" + o), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
|
|
2230
|
+
const v = f.join("&"), C = (l || n ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
2231
|
+
return await H.makeSearchFetchCall(C);
|
|
2131
2232
|
}
|
|
2132
2233
|
static removeElements(e) {
|
|
2133
2234
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -2146,15 +2247,15 @@ class m {
|
|
|
2146
2247
|
});
|
|
2147
2248
|
}
|
|
2148
2249
|
static searchInStates(e) {
|
|
2149
|
-
const t =
|
|
2150
|
-
let
|
|
2151
|
-
return
|
|
2250
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
2251
|
+
let l = t.find((n) => n.short.toLowerCase() === a) ?? null;
|
|
2252
|
+
return l || (l = t.find((n) => n.name.toLowerCase() === a) ?? null), l;
|
|
2152
2253
|
}
|
|
2153
2254
|
static sendWoopraEvent(e, t) {
|
|
2154
2255
|
typeof woopra == "object" && woopra.track(e, t);
|
|
2155
2256
|
}
|
|
2156
2257
|
static setBoundsEntries(e, t = "bounds") {
|
|
2157
|
-
const a =
|
|
2258
|
+
const a = H.getBoundsEntries(t);
|
|
2158
2259
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
2159
2260
|
}
|
|
2160
2261
|
static async setCityState(e = null) {
|
|
@@ -2162,34 +2263,34 @@ class m {
|
|
|
2162
2263
|
if (!t)
|
|
2163
2264
|
return e;
|
|
2164
2265
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2165
|
-
let [a = null,
|
|
2166
|
-
if (
|
|
2266
|
+
let [a = null, l = null] = t.split(",").map((n) => n.trim());
|
|
2267
|
+
if (H.getStates(), a && !l) {
|
|
2167
2268
|
const n = this.searchInStates(a);
|
|
2168
|
-
n && (a = null,
|
|
2269
|
+
n && (a = null, l = n.short);
|
|
2169
2270
|
}
|
|
2170
|
-
if (!
|
|
2271
|
+
if (!l && a) {
|
|
2171
2272
|
const n = this.searchInStates(a);
|
|
2172
|
-
n && (
|
|
2273
|
+
n && (l = n.short);
|
|
2173
2274
|
}
|
|
2174
|
-
if (a && !
|
|
2275
|
+
if (a && !l) {
|
|
2175
2276
|
const n = a.split(" "), s = n[n.length - 1];
|
|
2176
2277
|
if (s.length) {
|
|
2177
|
-
const
|
|
2178
|
-
|
|
2278
|
+
const r = this.searchInStates(s);
|
|
2279
|
+
r && (l = r.short, a = n.slice(0, -1).join(" "));
|
|
2179
2280
|
}
|
|
2180
2281
|
}
|
|
2181
|
-
return a &&
|
|
2282
|
+
return a && l && a.toLowerCase() === l.toLowerCase() && (a = null), e.city = a, e.state = l ? l.toUpperCase() : null, e;
|
|
2182
2283
|
}
|
|
2183
2284
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
2184
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
2285
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
2185
2286
|
}
|
|
2186
2287
|
static stickyHeader(e = ".nav") {
|
|
2187
2288
|
const t = document.querySelector(e);
|
|
2188
2289
|
if (!t)
|
|
2189
2290
|
return;
|
|
2190
2291
|
new IntersectionObserver(
|
|
2191
|
-
([
|
|
2192
|
-
|
|
2292
|
+
([l]) => {
|
|
2293
|
+
l && (l.intersectionRatio < 1 ? t.classList.add("intersecting") : t.classList.remove("intersecting"));
|
|
2193
2294
|
},
|
|
2194
2295
|
{ threshold: 1 }
|
|
2195
2296
|
).observe(t);
|
|
@@ -2208,7 +2309,7 @@ class m {
|
|
|
2208
2309
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2209
2310
|
}
|
|
2210
2311
|
static useLayerTitle(e, t) {
|
|
2211
|
-
const a =
|
|
2312
|
+
const a = H.getLayerTitle(e);
|
|
2212
2313
|
L.tileLayer(a, {
|
|
2213
2314
|
maxNativeZoom: 19,
|
|
2214
2315
|
maxZoom: 25,
|
|
@@ -2217,32 +2318,33 @@ class m {
|
|
|
2217
2318
|
}).addTo(t);
|
|
2218
2319
|
}
|
|
2219
2320
|
static ucWords(e) {
|
|
2220
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
2321
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
2221
2322
|
}
|
|
2222
2323
|
}
|
|
2223
2324
|
export {
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2325
|
+
u1 as Accordion,
|
|
2326
|
+
p1 as Alert,
|
|
2327
|
+
m1 as Autocomplete,
|
|
2328
|
+
V1 as Badge,
|
|
2329
|
+
H1 as Button,
|
|
2330
|
+
L1 as ButtonGroup,
|
|
2331
|
+
C1 as Card,
|
|
2332
|
+
f1 as Checkbox,
|
|
2333
|
+
H as Common,
|
|
2334
|
+
M1 as Container,
|
|
2335
|
+
g1 as Dialog,
|
|
2336
|
+
v1 as DialogOld,
|
|
2337
|
+
A1 as Dots,
|
|
2236
2338
|
y as Icon,
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2339
|
+
y1 as LoadingBar,
|
|
2340
|
+
w1 as Popover,
|
|
2341
|
+
x1 as ProgressBar,
|
|
2342
|
+
k1 as Radio,
|
|
2343
|
+
S1 as Select,
|
|
2344
|
+
z1 as Skeleton,
|
|
2345
|
+
Z1 as Slider,
|
|
2346
|
+
b1 as Spinner,
|
|
2347
|
+
N1 as Stars,
|
|
2348
|
+
D1 as TextArea,
|
|
2349
|
+
O1 as Textbox
|
|
2248
2350
|
};
|