@vehiclehistory/property-lib 0.0.990 → 0.0.992
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/Button/Button.d.ts +2 -1
- package/dist/main.es.js +318 -292
- package/dist/main.umd.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -200,6 +200,9 @@ const W = {
|
|
|
200
200
|
foundationOutline: {
|
|
201
201
|
path: '<rect fill="none" height="24" width="24"/><path d="M19,12h3L12,3L2,12h3v3H3v2h2v3h2v-3h4v3h2v-3h4v3h2v-3h2v-2h-2V12z M7,15v-4.81l4-3.6V15H7z M13,15V6.59l4,3.6V15H13z"/>'
|
|
202
202
|
},
|
|
203
|
+
gavel: {
|
|
204
|
+
path: '<path fill="none" d="M0 0h24v24H0z"/><path d="m5.2496 8.0688 2.83-2.8268 14.134 14.15-2.83 2.8268zM9.4857 3.8272l2.828-2.8288 5.6576 5.656-2.828 2.8288zM.9989 12.3147l2.8284-2.8284L9.484 15.143l-2.8284 2.8284zM1 21h12v2H1z"/>'
|
|
205
|
+
},
|
|
203
206
|
gite: {
|
|
204
207
|
path: '<rect fill="none" height="24" width="24"/><path d="M18,6H9V4H7v2H6l-4,4v9h20v-9L18,6z M4,12h10v5H4V12z M20,17h-4v-6.17l2-2v0l2,2V17z"/>'
|
|
205
208
|
},
|
|
@@ -501,7 +504,7 @@ const W = {
|
|
|
501
504
|
size: a = "medium",
|
|
502
505
|
viewBox: n = "0 0 20 20"
|
|
503
506
|
}) => {
|
|
504
|
-
const s = G(t), [
|
|
507
|
+
const s = G(t), [r, i] = Z(d), [l, o] = Z(s);
|
|
505
508
|
return N(() => {
|
|
506
509
|
o(s);
|
|
507
510
|
}, [s]), N(() => {
|
|
@@ -513,14 +516,14 @@ const W = {
|
|
|
513
516
|
className: m(
|
|
514
517
|
"fill-current flex-shrink-0",
|
|
515
518
|
W[a],
|
|
516
|
-
|
|
519
|
+
r,
|
|
517
520
|
e
|
|
518
521
|
),
|
|
519
522
|
style: { maxWidth: "4em" },
|
|
520
523
|
role: "presentation",
|
|
521
524
|
viewBox: n,
|
|
522
525
|
dangerouslySetInnerHTML: {
|
|
523
|
-
__html:
|
|
526
|
+
__html: l && l.path
|
|
524
527
|
}
|
|
525
528
|
}
|
|
526
529
|
);
|
|
@@ -531,9 +534,9 @@ const W = {
|
|
|
531
534
|
panelClass: a,
|
|
532
535
|
title: n,
|
|
533
536
|
unmount: s = !0,
|
|
534
|
-
isOpen:
|
|
537
|
+
isOpen: r = !1
|
|
535
538
|
}) => {
|
|
536
|
-
const [i,
|
|
539
|
+
const [i, l] = Z(r);
|
|
537
540
|
return /* @__PURE__ */ c(
|
|
538
541
|
"div",
|
|
539
542
|
{
|
|
@@ -554,7 +557,7 @@ const W = {
|
|
|
554
557
|
),
|
|
555
558
|
title: n,
|
|
556
559
|
onClick: () => {
|
|
557
|
-
|
|
560
|
+
l(!i), t && t(!i);
|
|
558
561
|
},
|
|
559
562
|
children: [
|
|
560
563
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
@@ -600,10 +603,10 @@ const W = {
|
|
|
600
603
|
messagesClass: a,
|
|
601
604
|
title: n = "",
|
|
602
605
|
titleClass: s = "",
|
|
603
|
-
props:
|
|
606
|
+
props: r = {},
|
|
604
607
|
type: i = "error"
|
|
605
608
|
}) => {
|
|
606
|
-
const
|
|
609
|
+
const l = {
|
|
607
610
|
error: {
|
|
608
611
|
icon: "error",
|
|
609
612
|
iconColor: "text-red-500",
|
|
@@ -624,24 +627,24 @@ const W = {
|
|
|
624
627
|
iconColor: "text-yellow-500",
|
|
625
628
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
629
|
}
|
|
627
|
-
}, { icon: o, iconColor:
|
|
630
|
+
}, { icon: o, iconColor: u, styles: p } = l[i];
|
|
628
631
|
return /* @__PURE__ */ c(
|
|
629
632
|
"div",
|
|
630
633
|
{
|
|
631
634
|
id: i,
|
|
632
635
|
className: m(
|
|
633
636
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
|
-
|
|
637
|
+
p,
|
|
635
638
|
e
|
|
636
639
|
),
|
|
637
|
-
...
|
|
640
|
+
...r,
|
|
638
641
|
children: /* @__PURE__ */ M("div", { className: "flex", children: [
|
|
639
642
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
643
|
x,
|
|
641
644
|
{
|
|
642
645
|
name: o,
|
|
643
646
|
viewBox: "0 0 24 24",
|
|
644
|
-
className:
|
|
647
|
+
className: u,
|
|
645
648
|
size: "xSmall"
|
|
646
649
|
}
|
|
647
650
|
) }),
|
|
@@ -670,19 +673,19 @@ const W = {
|
|
|
670
673
|
defaultValue: a = "",
|
|
671
674
|
floatingLabel: n = "",
|
|
672
675
|
id: s = "",
|
|
673
|
-
inputClass:
|
|
676
|
+
inputClass: r,
|
|
674
677
|
leftIcon: i = "homeSearch",
|
|
675
|
-
mobileBackdrop:
|
|
678
|
+
mobileBackdrop: l = !1,
|
|
676
679
|
name: o = "",
|
|
677
|
-
options:
|
|
678
|
-
parentProps:
|
|
680
|
+
options: u = [],
|
|
681
|
+
parentProps: p = {},
|
|
679
682
|
placeholder: V = "",
|
|
680
683
|
props: C = {},
|
|
681
684
|
rightIcon: f = "",
|
|
682
|
-
required:
|
|
685
|
+
required: v = !1,
|
|
683
686
|
showSearchIcon: A = !0,
|
|
684
687
|
showRightIcon: h = !1,
|
|
685
|
-
size:
|
|
688
|
+
size: b = "medium",
|
|
686
689
|
styles: w = null,
|
|
687
690
|
title: g = "",
|
|
688
691
|
type: E,
|
|
@@ -699,7 +702,7 @@ const W = {
|
|
|
699
702
|
"data-use-google": j,
|
|
700
703
|
className: m("Autocomplete", e),
|
|
701
704
|
style: w ? { ...w } : null,
|
|
702
|
-
...
|
|
705
|
+
...p,
|
|
703
706
|
children: [
|
|
704
707
|
A && /* @__PURE__ */ M(
|
|
705
708
|
"span",
|
|
@@ -707,7 +710,7 @@ const W = {
|
|
|
707
710
|
className: m(
|
|
708
711
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
709
712
|
{
|
|
710
|
-
"pointer-events-none":
|
|
713
|
+
"pointer-events-none": l
|
|
711
714
|
}
|
|
712
715
|
),
|
|
713
716
|
children: [
|
|
@@ -716,7 +719,7 @@ const W = {
|
|
|
716
719
|
{
|
|
717
720
|
className: "home-search select-none text-gray-500",
|
|
718
721
|
name: i,
|
|
719
|
-
size:
|
|
722
|
+
size: b === "xLarge" ? "small" : "xSmall",
|
|
720
723
|
viewBox: "0 0 24 24"
|
|
721
724
|
}
|
|
722
725
|
),
|
|
@@ -725,7 +728,7 @@ const W = {
|
|
|
725
728
|
{
|
|
726
729
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
727
730
|
name: "arrowLeft",
|
|
728
|
-
size:
|
|
731
|
+
size: b === "xLarge" ? "small" : "xSmall",
|
|
729
732
|
viewBox: "0 0 24 24"
|
|
730
733
|
}
|
|
731
734
|
)
|
|
@@ -741,14 +744,14 @@ const W = {
|
|
|
741
744
|
"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",
|
|
742
745
|
{
|
|
743
746
|
"pl-8": A === !0,
|
|
744
|
-
"px-3 h-10":
|
|
745
|
-
"px-4 h-12":
|
|
746
|
-
"px-5 h-[60px] sm:!text-base":
|
|
747
|
+
"px-3 h-10": b === "medium",
|
|
748
|
+
"px-4 h-12": b === "large",
|
|
749
|
+
"px-5 h-[60px] sm:!text-base": b === "xLarge",
|
|
747
750
|
peer: n
|
|
748
751
|
},
|
|
749
|
-
|
|
752
|
+
r
|
|
750
753
|
),
|
|
751
|
-
required:
|
|
754
|
+
required: v,
|
|
752
755
|
autoComplete: "off",
|
|
753
756
|
placeholder: !V && n ? " " : V,
|
|
754
757
|
type: "search",
|
|
@@ -765,9 +768,9 @@ const W = {
|
|
|
765
768
|
"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",
|
|
766
769
|
{
|
|
767
770
|
"!left-7": A === !0,
|
|
768
|
-
"left-2":
|
|
769
|
-
"left-3":
|
|
770
|
-
"left-4":
|
|
771
|
+
"left-2": b === "medium",
|
|
772
|
+
"left-3": b === "large",
|
|
773
|
+
"left-4": b === "xLarge"
|
|
771
774
|
}
|
|
772
775
|
),
|
|
773
776
|
children: n
|
|
@@ -828,7 +831,7 @@ const W = {
|
|
|
828
831
|
"data-title": g,
|
|
829
832
|
"aria-labelledby": "Label",
|
|
830
833
|
"aria-activedescendant": "search-item-0",
|
|
831
|
-
children:
|
|
834
|
+
children: u.length > 0 ? u.map((k, z) => /* @__PURE__ */ c(
|
|
832
835
|
"li",
|
|
833
836
|
{
|
|
834
837
|
id: `search-item-${z}`,
|
|
@@ -874,55 +877,57 @@ const W = {
|
|
|
874
877
|
children: a,
|
|
875
878
|
className: n,
|
|
876
879
|
disabled: s = !1,
|
|
877
|
-
href:
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
880
|
+
href: r,
|
|
881
|
+
outline: i = !1,
|
|
882
|
+
props: l = {},
|
|
883
|
+
rightIcon: o,
|
|
884
|
+
rightIconProps: u = {},
|
|
881
885
|
rounded: p = !1,
|
|
882
|
-
size:
|
|
883
|
-
type:
|
|
884
|
-
uppercase:
|
|
885
|
-
variation:
|
|
886
|
+
size: V = "md",
|
|
887
|
+
type: C = "button",
|
|
888
|
+
uppercase: f = !1,
|
|
889
|
+
variation: v = "primary"
|
|
886
890
|
}) => {
|
|
887
|
-
const
|
|
891
|
+
const A = r ? "a" : "button";
|
|
888
892
|
return /* @__PURE__ */ M(
|
|
889
|
-
|
|
893
|
+
A,
|
|
890
894
|
{
|
|
891
|
-
type:
|
|
895
|
+
type: A !== "a" ? C : null,
|
|
892
896
|
className: m(
|
|
893
897
|
"button",
|
|
894
898
|
{
|
|
895
|
-
[`button--${
|
|
896
|
-
[`button--${
|
|
899
|
+
[`button--${v}`]: v,
|
|
900
|
+
[`button--${V}`]: V,
|
|
897
901
|
"button--rounded": p,
|
|
898
902
|
"button--disabled": s,
|
|
899
|
-
"button--
|
|
900
|
-
"button--
|
|
901
|
-
"button--
|
|
903
|
+
"button--outline": i,
|
|
904
|
+
"button--custom-link": r,
|
|
905
|
+
"button--uppercase": f,
|
|
906
|
+
"button--borderless": d || v === "link"
|
|
902
907
|
},
|
|
903
908
|
n
|
|
904
909
|
),
|
|
905
910
|
disabled: s,
|
|
906
|
-
href:
|
|
907
|
-
...
|
|
911
|
+
href: r,
|
|
912
|
+
...l,
|
|
908
913
|
children: [
|
|
909
914
|
e && /* @__PURE__ */ c(
|
|
910
915
|
x,
|
|
911
916
|
{
|
|
912
917
|
name: e,
|
|
913
|
-
size:
|
|
918
|
+
size: V === "md" ? "small" : "xSmall",
|
|
914
919
|
viewBox: "0 0 24 24",
|
|
915
920
|
...t
|
|
916
921
|
}
|
|
917
922
|
),
|
|
918
923
|
a,
|
|
919
|
-
|
|
924
|
+
o && /* @__PURE__ */ c(
|
|
920
925
|
x,
|
|
921
926
|
{
|
|
922
|
-
name:
|
|
923
|
-
size:
|
|
927
|
+
name: o,
|
|
928
|
+
size: V === "md" ? "small" : "xSmall",
|
|
924
929
|
viewBox: "0 0 24 24",
|
|
925
|
-
...
|
|
930
|
+
...u
|
|
926
931
|
}
|
|
927
932
|
)
|
|
928
933
|
]
|
|
@@ -935,15 +940,15 @@ const W = {
|
|
|
935
940
|
error: a = !1,
|
|
936
941
|
inputClass: n,
|
|
937
942
|
id: s = "",
|
|
938
|
-
label:
|
|
943
|
+
label: r = "",
|
|
939
944
|
name: i = "",
|
|
940
|
-
props:
|
|
945
|
+
props: l = {},
|
|
941
946
|
variation: o = "primary",
|
|
942
|
-
value:
|
|
947
|
+
value: u = ""
|
|
943
948
|
}) => {
|
|
944
|
-
const
|
|
949
|
+
const p = r ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
|
|
945
950
|
return /* @__PURE__ */ M(
|
|
946
|
-
|
|
951
|
+
p,
|
|
947
952
|
{
|
|
948
953
|
className: m("checkbox flex items-center", o, t),
|
|
949
954
|
...V,
|
|
@@ -962,8 +967,8 @@ const W = {
|
|
|
962
967
|
id: s,
|
|
963
968
|
name: i,
|
|
964
969
|
type: "checkbox",
|
|
965
|
-
value:
|
|
966
|
-
...
|
|
970
|
+
value: u,
|
|
971
|
+
...l
|
|
967
972
|
}
|
|
968
973
|
),
|
|
969
974
|
e
|
|
@@ -977,19 +982,19 @@ const W = {
|
|
|
977
982
|
className: a,
|
|
978
983
|
contentClass: n,
|
|
979
984
|
customScrollbar: s = !0,
|
|
980
|
-
dark:
|
|
985
|
+
dark: r = !1,
|
|
981
986
|
disableClose: i = !1,
|
|
982
|
-
footer:
|
|
987
|
+
footer: l,
|
|
983
988
|
fullMobile: o = !0,
|
|
984
|
-
headerClass:
|
|
985
|
-
hideClose:
|
|
989
|
+
headerClass: u,
|
|
990
|
+
hideClose: p = !1,
|
|
986
991
|
iconSize: V = "medium",
|
|
987
992
|
preventPageScroll: C = !0,
|
|
988
993
|
sheet: f = !1,
|
|
989
|
-
sheetDirection:
|
|
994
|
+
sheetDirection: v = "right",
|
|
990
995
|
stickyHeader: A = !1,
|
|
991
996
|
title: h = "",
|
|
992
|
-
titleClass:
|
|
997
|
+
titleClass: b,
|
|
993
998
|
useFormMethod: w = !0
|
|
994
999
|
}) => {
|
|
995
1000
|
const g = w ? "form" : "div";
|
|
@@ -1006,8 +1011,8 @@ const W = {
|
|
|
1006
1011
|
{
|
|
1007
1012
|
"dialog-full-mobile": o,
|
|
1008
1013
|
"dialog-sheet": f,
|
|
1009
|
-
dark:
|
|
1010
|
-
"dialog-sheet--right":
|
|
1014
|
+
dark: r,
|
|
1015
|
+
"dialog-sheet--right": v === "right" && f,
|
|
1011
1016
|
"prevent-scroll": C
|
|
1012
1017
|
},
|
|
1013
1018
|
a
|
|
@@ -1028,11 +1033,11 @@ const W = {
|
|
|
1028
1033
|
"!pb-0 border-0 justify-end": !h,
|
|
1029
1034
|
"justify-between border-b": h
|
|
1030
1035
|
},
|
|
1031
|
-
|
|
1036
|
+
u
|
|
1032
1037
|
),
|
|
1033
1038
|
children: [
|
|
1034
|
-
h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className:
|
|
1035
|
-
!
|
|
1039
|
+
h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: b, children: h }),
|
|
1040
|
+
!p && /* @__PURE__ */ c(
|
|
1036
1041
|
"button",
|
|
1037
1042
|
{
|
|
1038
1043
|
type: "button",
|
|
@@ -1067,7 +1072,7 @@ const W = {
|
|
|
1067
1072
|
children: t
|
|
1068
1073
|
}
|
|
1069
1074
|
),
|
|
1070
|
-
|
|
1075
|
+
l && /* @__PURE__ */ c("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: l })
|
|
1071
1076
|
]
|
|
1072
1077
|
}
|
|
1073
1078
|
)
|
|
@@ -1090,22 +1095,22 @@ const W = {
|
|
|
1090
1095
|
selector: a = "",
|
|
1091
1096
|
size: n = "md",
|
|
1092
1097
|
timeout: s = 1e4,
|
|
1093
|
-
variation:
|
|
1098
|
+
variation: r = "primary"
|
|
1094
1099
|
}) => {
|
|
1095
|
-
function i({ cb:
|
|
1100
|
+
function i({ cb: l }) {
|
|
1096
1101
|
const o = document.querySelector(
|
|
1097
1102
|
`.loading-bar__inner${a ? `.${a}` : ""}`
|
|
1098
1103
|
);
|
|
1099
1104
|
if (!o) return;
|
|
1100
|
-
let
|
|
1105
|
+
let u, p, V = !1;
|
|
1101
1106
|
function C(f) {
|
|
1102
|
-
|
|
1103
|
-
const
|
|
1104
|
-
if (
|
|
1105
|
-
const A =
|
|
1106
|
-
o.style.width = `${A}%`, e && e({ elapsed:
|
|
1107
|
+
u === void 0 && (u = f);
|
|
1108
|
+
const v = f - u;
|
|
1109
|
+
if (p !== f) {
|
|
1110
|
+
const A = v / s * 101;
|
|
1111
|
+
o.style.width = `${A}%`, e && e({ elapsed: v, percentage: A }), A >= 101 && (l && l(), V = !0, window.cancelAnimationFrame(f));
|
|
1107
1112
|
}
|
|
1108
|
-
|
|
1113
|
+
v < s && (p = f, V || window.requestAnimationFrame(C));
|
|
1109
1114
|
}
|
|
1110
1115
|
window.requestAnimationFrame(C);
|
|
1111
1116
|
}
|
|
@@ -1116,7 +1121,7 @@ const W = {
|
|
|
1116
1121
|
{
|
|
1117
1122
|
className: m(
|
|
1118
1123
|
"loading-bar my-8",
|
|
1119
|
-
`loading-bar__${
|
|
1124
|
+
`loading-bar__${r}`,
|
|
1120
1125
|
{
|
|
1121
1126
|
"h-4": n === "md",
|
|
1122
1127
|
"h-6": n === "lg",
|
|
@@ -1135,9 +1140,9 @@ const W = {
|
|
|
1135
1140
|
children: a,
|
|
1136
1141
|
className: n = "",
|
|
1137
1142
|
containerClass: s = "",
|
|
1138
|
-
disabled:
|
|
1143
|
+
disabled: r = !1,
|
|
1139
1144
|
options: i = {},
|
|
1140
|
-
trigger:
|
|
1145
|
+
trigger: l = "click"
|
|
1141
1146
|
}) => /* @__PURE__ */ M(S, { children: [
|
|
1142
1147
|
/* @__PURE__ */ c(
|
|
1143
1148
|
"div",
|
|
@@ -1169,9 +1174,9 @@ const W = {
|
|
|
1169
1174
|
{
|
|
1170
1175
|
className: m(
|
|
1171
1176
|
"popover-activator",
|
|
1172
|
-
`trigger-${
|
|
1177
|
+
`trigger-${l}`,
|
|
1173
1178
|
{
|
|
1174
|
-
"is-disabled":
|
|
1179
|
+
"is-disabled": r
|
|
1175
1180
|
},
|
|
1176
1181
|
e
|
|
1177
1182
|
),
|
|
@@ -1187,12 +1192,12 @@ const W = {
|
|
|
1187
1192
|
className: a,
|
|
1188
1193
|
completed: n = 0,
|
|
1189
1194
|
customLabel: s,
|
|
1190
|
-
labelClass:
|
|
1195
|
+
labelClass: r,
|
|
1191
1196
|
maxCompleted: i = 100,
|
|
1192
|
-
rounded:
|
|
1197
|
+
rounded: l = !0,
|
|
1193
1198
|
showLabel: o = !1
|
|
1194
1199
|
}) => {
|
|
1195
|
-
const
|
|
1200
|
+
const p = ((V, C) => {
|
|
1196
1201
|
if (V) {
|
|
1197
1202
|
const f = Number(C) / V;
|
|
1198
1203
|
return f > 1 ? 100 : f * 100;
|
|
@@ -1204,7 +1209,7 @@ const W = {
|
|
|
1204
1209
|
{
|
|
1205
1210
|
className: m(
|
|
1206
1211
|
"w-full bg-gray-200",
|
|
1207
|
-
{ "rounded-full":
|
|
1212
|
+
{ "rounded-full": l },
|
|
1208
1213
|
a
|
|
1209
1214
|
),
|
|
1210
1215
|
role: "progressbar",
|
|
@@ -1219,15 +1224,15 @@ const W = {
|
|
|
1219
1224
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1220
1225
|
t
|
|
1221
1226
|
),
|
|
1222
|
-
style: { width: `${
|
|
1227
|
+
style: { width: `${p}%` },
|
|
1223
1228
|
children: o && /* @__PURE__ */ c(
|
|
1224
1229
|
"span",
|
|
1225
1230
|
{
|
|
1226
1231
|
className: m(
|
|
1227
1232
|
"font-bold text-white text-xs mr-2",
|
|
1228
|
-
|
|
1233
|
+
r
|
|
1229
1234
|
),
|
|
1230
|
-
children: s || Math.round(
|
|
1235
|
+
children: s || Math.round(p)
|
|
1231
1236
|
}
|
|
1232
1237
|
)
|
|
1233
1238
|
}
|
|
@@ -1241,17 +1246,17 @@ const W = {
|
|
|
1241
1246
|
id: a = "",
|
|
1242
1247
|
inputClass: n,
|
|
1243
1248
|
label: s = "",
|
|
1244
|
-
name:
|
|
1249
|
+
name: r = "",
|
|
1245
1250
|
props: i = {},
|
|
1246
|
-
variation:
|
|
1251
|
+
variation: l = "primary",
|
|
1247
1252
|
value: o = ""
|
|
1248
1253
|
}) => {
|
|
1249
|
-
const
|
|
1254
|
+
const u = s ? "div" : "label", p = u === "label" ? { htmlFor: a } : {};
|
|
1250
1255
|
return /* @__PURE__ */ M(
|
|
1251
|
-
|
|
1256
|
+
u,
|
|
1252
1257
|
{
|
|
1253
1258
|
className: m("radio flex items-center", t),
|
|
1254
|
-
...
|
|
1259
|
+
...p,
|
|
1255
1260
|
children: [
|
|
1256
1261
|
/* @__PURE__ */ c(
|
|
1257
1262
|
"input",
|
|
@@ -1260,12 +1265,12 @@ const W = {
|
|
|
1260
1265
|
className: m(
|
|
1261
1266
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1262
1267
|
{
|
|
1263
|
-
"focus:ring-[#222]":
|
|
1268
|
+
"focus:ring-[#222]": l === "primary"
|
|
1264
1269
|
},
|
|
1265
1270
|
n
|
|
1266
1271
|
),
|
|
1267
1272
|
id: a,
|
|
1268
|
-
name:
|
|
1273
|
+
name: r,
|
|
1269
1274
|
type: "radio",
|
|
1270
1275
|
value: o,
|
|
1271
1276
|
...i
|
|
@@ -1282,20 +1287,20 @@ const W = {
|
|
|
1282
1287
|
id: a = "",
|
|
1283
1288
|
label: n = "",
|
|
1284
1289
|
name: s = "",
|
|
1285
|
-
options:
|
|
1290
|
+
options: r = [],
|
|
1286
1291
|
placeholder: i = "",
|
|
1287
|
-
props:
|
|
1292
|
+
props: l = {},
|
|
1288
1293
|
selectClass: o = "",
|
|
1289
|
-
styles:
|
|
1290
|
-
variation:
|
|
1294
|
+
styles: u = null,
|
|
1295
|
+
variation: p = "primary",
|
|
1291
1296
|
value: V
|
|
1292
1297
|
}) => {
|
|
1293
1298
|
const C = i ? { defaultValue: "" } : {};
|
|
1294
1299
|
return /* @__PURE__ */ M(
|
|
1295
1300
|
"label",
|
|
1296
1301
|
{
|
|
1297
|
-
className: m("relative select", d,
|
|
1298
|
-
style:
|
|
1302
|
+
className: m("relative select", d, p),
|
|
1303
|
+
style: u ? { ...u } : null,
|
|
1299
1304
|
children: [
|
|
1300
1305
|
n,
|
|
1301
1306
|
/* @__PURE__ */ M(
|
|
@@ -1312,10 +1317,10 @@ const W = {
|
|
|
1312
1317
|
name: s,
|
|
1313
1318
|
value: V,
|
|
1314
1319
|
...C,
|
|
1315
|
-
...
|
|
1320
|
+
...l,
|
|
1316
1321
|
children: [
|
|
1317
1322
|
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
1318
|
-
|
|
1323
|
+
r.map((f) => /* @__PURE__ */ c(
|
|
1319
1324
|
"option",
|
|
1320
1325
|
{
|
|
1321
1326
|
value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
|
|
@@ -1330,7 +1335,7 @@ const W = {
|
|
|
1330
1335
|
]
|
|
1331
1336
|
}
|
|
1332
1337
|
);
|
|
1333
|
-
}, U1 = y(s1),
|
|
1338
|
+
}, U1 = y(s1), l1 = ({ className: d }) => /* @__PURE__ */ M(
|
|
1334
1339
|
"div",
|
|
1335
1340
|
{
|
|
1336
1341
|
className: m(
|
|
@@ -1342,7 +1347,7 @@ const W = {
|
|
|
1342
1347
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1343
1348
|
]
|
|
1344
1349
|
}
|
|
1345
|
-
), G1 = y(
|
|
1350
|
+
), G1 = y(l1), r1 = ({
|
|
1346
1351
|
placeholderClass: d = "",
|
|
1347
1352
|
children: e,
|
|
1348
1353
|
className: t,
|
|
@@ -1359,13 +1364,13 @@ const W = {
|
|
|
1359
1364
|
children: /* @__PURE__ */ c(x, { name: "chevronLeft" })
|
|
1360
1365
|
}
|
|
1361
1366
|
),
|
|
1362
|
-
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s,
|
|
1367
|
+
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ c(
|
|
1363
1368
|
"div",
|
|
1364
1369
|
{
|
|
1365
1370
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1366
1371
|
children: /* @__PURE__ */ c("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1367
1372
|
},
|
|
1368
|
-
|
|
1373
|
+
r
|
|
1369
1374
|
)) }),
|
|
1370
1375
|
/* @__PURE__ */ c(
|
|
1371
1376
|
"button",
|
|
@@ -1377,7 +1382,7 @@ const W = {
|
|
|
1377
1382
|
children: /* @__PURE__ */ c(x, { name: "chevronRight" })
|
|
1378
1383
|
}
|
|
1379
1384
|
)
|
|
1380
|
-
] }), Q1 = y(
|
|
1385
|
+
] }), Q1 = y(r1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1381
1386
|
x,
|
|
1382
1387
|
{
|
|
1383
1388
|
className: m("animate-spin text-black-900", e),
|
|
@@ -1410,18 +1415,18 @@ const W = {
|
|
|
1410
1415
|
errorMessage: a = "",
|
|
1411
1416
|
id: n = "",
|
|
1412
1417
|
inputClass: s = "",
|
|
1413
|
-
name:
|
|
1418
|
+
name: r = "",
|
|
1414
1419
|
placeholder: i = "",
|
|
1415
|
-
props:
|
|
1420
|
+
props: l = {},
|
|
1416
1421
|
rows: o = 4,
|
|
1417
|
-
variation:
|
|
1418
|
-
}) => /* @__PURE__ */ M("div", { className: m("relative textarea",
|
|
1422
|
+
variation: u = "primary"
|
|
1423
|
+
}) => /* @__PURE__ */ M("div", { className: m("relative textarea", u, d), children: [
|
|
1419
1424
|
/* @__PURE__ */ c(
|
|
1420
1425
|
"textarea",
|
|
1421
1426
|
{
|
|
1422
1427
|
placeholder: i,
|
|
1423
1428
|
id: n,
|
|
1424
|
-
name:
|
|
1429
|
+
name: r,
|
|
1425
1430
|
rows: o,
|
|
1426
1431
|
className: m(
|
|
1427
1432
|
"form-textarea min-h-[40px] pl-4",
|
|
@@ -1431,7 +1436,7 @@ const W = {
|
|
|
1431
1436
|
},
|
|
1432
1437
|
s
|
|
1433
1438
|
),
|
|
1434
|
-
...
|
|
1439
|
+
...l
|
|
1435
1440
|
}
|
|
1436
1441
|
),
|
|
1437
1442
|
e && /* @__PURE__ */ c(
|
|
@@ -1457,19 +1462,19 @@ const W = {
|
|
|
1457
1462
|
errorMessage: a = "",
|
|
1458
1463
|
iconLeft: n = "",
|
|
1459
1464
|
id: s = "",
|
|
1460
|
-
inputClass:
|
|
1465
|
+
inputClass: r,
|
|
1461
1466
|
name: i = "",
|
|
1462
|
-
placeholder:
|
|
1467
|
+
placeholder: l = "",
|
|
1463
1468
|
props: o = {},
|
|
1464
|
-
styles:
|
|
1465
|
-
type:
|
|
1469
|
+
styles: u = null,
|
|
1470
|
+
type: p = "text",
|
|
1466
1471
|
value: V,
|
|
1467
1472
|
variation: C = "primary"
|
|
1468
1473
|
}) => /* @__PURE__ */ M(
|
|
1469
1474
|
"div",
|
|
1470
1475
|
{
|
|
1471
1476
|
className: m("relative textbox", C, d),
|
|
1472
|
-
style:
|
|
1477
|
+
style: u ? { ...u } : null,
|
|
1473
1478
|
children: [
|
|
1474
1479
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1475
1480
|
x,
|
|
@@ -1483,10 +1488,10 @@ const W = {
|
|
|
1483
1488
|
/* @__PURE__ */ c(
|
|
1484
1489
|
"input",
|
|
1485
1490
|
{
|
|
1486
|
-
placeholder:
|
|
1491
|
+
placeholder: l,
|
|
1487
1492
|
id: s,
|
|
1488
1493
|
name: i,
|
|
1489
|
-
type:
|
|
1494
|
+
type: p,
|
|
1490
1495
|
value: V,
|
|
1491
1496
|
autoComplete: "off",
|
|
1492
1497
|
className: m(
|
|
@@ -1497,7 +1502,7 @@ const W = {
|
|
|
1497
1502
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1498
1503
|
},
|
|
1499
1504
|
o.inputClass ?? "",
|
|
1500
|
-
|
|
1505
|
+
r
|
|
1501
1506
|
),
|
|
1502
1507
|
...o
|
|
1503
1508
|
}
|
|
@@ -1549,7 +1554,7 @@ const W = {
|
|
|
1549
1554
|
customSuccessMsg: a = "",
|
|
1550
1555
|
title: n = "Send A Message",
|
|
1551
1556
|
titleClass: s,
|
|
1552
|
-
uppercase:
|
|
1557
|
+
uppercase: r = !0
|
|
1553
1558
|
}) => {
|
|
1554
1559
|
const i = a || /* @__PURE__ */ M(S, { children: [
|
|
1555
1560
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
@@ -1573,7 +1578,7 @@ const W = {
|
|
|
1573
1578
|
{
|
|
1574
1579
|
id: "contactForm",
|
|
1575
1580
|
className: m("contact-form", t, {
|
|
1576
|
-
uppercase:
|
|
1581
|
+
uppercase: r
|
|
1577
1582
|
}),
|
|
1578
1583
|
children: [
|
|
1579
1584
|
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
@@ -1593,7 +1598,7 @@ const W = {
|
|
|
1593
1598
|
name: "contact-name",
|
|
1594
1599
|
placeholder: "Name",
|
|
1595
1600
|
inputClass: m({
|
|
1596
|
-
"placeholder:uppercase":
|
|
1601
|
+
"placeholder:uppercase": r
|
|
1597
1602
|
})
|
|
1598
1603
|
}
|
|
1599
1604
|
),
|
|
@@ -1604,7 +1609,7 @@ const W = {
|
|
|
1604
1609
|
name: "contact-email",
|
|
1605
1610
|
placeholder: "Email",
|
|
1606
1611
|
inputClass: m({
|
|
1607
|
-
"placeholder:uppercase":
|
|
1612
|
+
"placeholder:uppercase": r
|
|
1608
1613
|
})
|
|
1609
1614
|
}
|
|
1610
1615
|
),
|
|
@@ -1615,7 +1620,7 @@ const W = {
|
|
|
1615
1620
|
name: "contact-message",
|
|
1616
1621
|
placeholder: "Message",
|
|
1617
1622
|
inputClass: m({
|
|
1618
|
-
"placeholder:uppercase":
|
|
1623
|
+
"placeholder:uppercase": r
|
|
1619
1624
|
})
|
|
1620
1625
|
}
|
|
1621
1626
|
),
|
|
@@ -1625,7 +1630,7 @@ const W = {
|
|
|
1625
1630
|
className: m(
|
|
1626
1631
|
"flex mx-auto items-center",
|
|
1627
1632
|
{
|
|
1628
|
-
uppercase:
|
|
1633
|
+
uppercase: r
|
|
1629
1634
|
},
|
|
1630
1635
|
d
|
|
1631
1636
|
),
|
|
@@ -1647,30 +1652,30 @@ const W = {
|
|
|
1647
1652
|
contentClass: a,
|
|
1648
1653
|
footerClass: n,
|
|
1649
1654
|
footerContent: s,
|
|
1650
|
-
headerContent:
|
|
1655
|
+
headerContent: r,
|
|
1651
1656
|
headerClass: i,
|
|
1652
|
-
list:
|
|
1657
|
+
list: l = !1,
|
|
1653
1658
|
props: o = {},
|
|
1654
|
-
variation:
|
|
1659
|
+
variation: u = "primary"
|
|
1655
1660
|
}) => {
|
|
1656
|
-
const
|
|
1661
|
+
const p = l ? "ul" : "div";
|
|
1657
1662
|
return /* @__PURE__ */ M(
|
|
1658
1663
|
"div",
|
|
1659
1664
|
{
|
|
1660
1665
|
className: m(
|
|
1661
1666
|
"content-card",
|
|
1662
1667
|
{ "content-card--block": d },
|
|
1663
|
-
`content-card--${
|
|
1668
|
+
`content-card--${u}`,
|
|
1664
1669
|
t
|
|
1665
1670
|
),
|
|
1666
1671
|
...o,
|
|
1667
1672
|
children: [
|
|
1668
|
-
|
|
1673
|
+
r && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ c("h3", { children: r }) : r }),
|
|
1669
1674
|
/* @__PURE__ */ c(
|
|
1670
|
-
|
|
1675
|
+
p,
|
|
1671
1676
|
{
|
|
1672
1677
|
className: m("content-card__content", a),
|
|
1673
|
-
role:
|
|
1678
|
+
role: l ? "list" : null,
|
|
1674
1679
|
children: e
|
|
1675
1680
|
}
|
|
1676
1681
|
),
|
|
@@ -1685,11 +1690,11 @@ const W = {
|
|
|
1685
1690
|
direction: a = "col",
|
|
1686
1691
|
label: n,
|
|
1687
1692
|
labelClass: s,
|
|
1688
|
-
props:
|
|
1693
|
+
props: r = {},
|
|
1689
1694
|
rowGap: i = 1,
|
|
1690
|
-
value:
|
|
1695
|
+
value: l,
|
|
1691
1696
|
valueClass: o,
|
|
1692
|
-
wrap:
|
|
1697
|
+
wrap: u = !1
|
|
1693
1698
|
}) => /* @__PURE__ */ M(
|
|
1694
1699
|
"div",
|
|
1695
1700
|
{
|
|
@@ -1698,7 +1703,7 @@ const W = {
|
|
|
1698
1703
|
{
|
|
1699
1704
|
"flex-col items-start": a === "col",
|
|
1700
1705
|
"flex-row items-center": a === "row",
|
|
1701
|
-
"flex-wrap":
|
|
1706
|
+
"flex-wrap": u
|
|
1702
1707
|
},
|
|
1703
1708
|
e
|
|
1704
1709
|
),
|
|
@@ -1706,10 +1711,10 @@ const W = {
|
|
|
1706
1711
|
columnGap: `${t / 4}rem`,
|
|
1707
1712
|
rowGap: `${i / 4}rem`
|
|
1708
1713
|
},
|
|
1709
|
-
...
|
|
1714
|
+
...r,
|
|
1710
1715
|
children: [
|
|
1711
1716
|
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1712
|
-
|
|
1717
|
+
l && /* @__PURE__ */ c("div", { className: m("item-value", o), children: l }),
|
|
1713
1718
|
d
|
|
1714
1719
|
]
|
|
1715
1720
|
}
|
|
@@ -1720,7 +1725,7 @@ const W = {
|
|
|
1720
1725
|
noPrint: a = !1,
|
|
1721
1726
|
props: n = {},
|
|
1722
1727
|
title: s,
|
|
1723
|
-
titleClass:
|
|
1728
|
+
titleClass: r,
|
|
1724
1729
|
titleId: i
|
|
1725
1730
|
}) => /* @__PURE__ */ M(
|
|
1726
1731
|
"section",
|
|
@@ -1735,7 +1740,7 @@ const W = {
|
|
|
1735
1740
|
),
|
|
1736
1741
|
...n,
|
|
1737
1742
|
children: [
|
|
1738
|
-
s && /* @__PURE__ */ c("h2", { className: m("spacer-title",
|
|
1743
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", r), id: i, children: s }),
|
|
1739
1744
|
e
|
|
1740
1745
|
]
|
|
1741
1746
|
}
|
|
@@ -1914,10 +1919,10 @@ const W = {
|
|
|
1914
1919
|
max: "1199px"
|
|
1915
1920
|
},
|
|
1916
1921
|
"lg-up": "1200px"
|
|
1917
|
-
},
|
|
1922
|
+
}, A1 = {
|
|
1918
1923
|
0: "0ms",
|
|
1919
1924
|
50: "50ms"
|
|
1920
|
-
},
|
|
1925
|
+
}, y1 = {
|
|
1921
1926
|
"center-top": "center 30%"
|
|
1922
1927
|
}, T = {
|
|
1923
1928
|
animation: V1,
|
|
@@ -1928,8 +1933,8 @@ const W = {
|
|
|
1928
1933
|
margin: g1,
|
|
1929
1934
|
maxWidth: v1,
|
|
1930
1935
|
screens: b1,
|
|
1931
|
-
transitionDuration:
|
|
1932
|
-
transformOrigin:
|
|
1936
|
+
transitionDuration: A1,
|
|
1937
|
+
transformOrigin: y1
|
|
1933
1938
|
}, O = {
|
|
1934
1939
|
black: {
|
|
1935
1940
|
50: "#FCFCFC",
|
|
@@ -1947,22 +1952,41 @@ const W = {
|
|
|
1947
1952
|
},
|
|
1948
1953
|
blue: {
|
|
1949
1954
|
50: "#EBF5FF",
|
|
1955
|
+
200: "#EAF3FC",
|
|
1950
1956
|
300: "#A4CAFE",
|
|
1957
|
+
350: "#92C7E5",
|
|
1958
|
+
// new blue 40 in Figma
|
|
1951
1959
|
400: "#76A9FA",
|
|
1952
1960
|
500: "#3F83F8",
|
|
1961
|
+
600: "#2D9CDB",
|
|
1962
|
+
650: "#1A76AA",
|
|
1963
|
+
// new blue 70 in Figma
|
|
1953
1964
|
700: "#3269f7",
|
|
1954
|
-
800: "#1E429F"
|
|
1965
|
+
800: "#1E429F",
|
|
1966
|
+
900: "#232E39",
|
|
1967
|
+
950: "#0F172A"
|
|
1968
|
+
// new blue 100 in Figma
|
|
1955
1969
|
},
|
|
1956
1970
|
gray: {
|
|
1957
1971
|
50: "#f9fafb",
|
|
1972
|
+
75: "#F5F6F7",
|
|
1973
|
+
// new gray 10 in Figma
|
|
1958
1974
|
100: "#f3f4f6",
|
|
1959
1975
|
200: "#e5e7eb",
|
|
1960
1976
|
300: "#d1d5db",
|
|
1977
|
+
350: "#CED2D6",
|
|
1978
|
+
// new gray 30 in Figma
|
|
1961
1979
|
400: "#9ca3af",
|
|
1962
1980
|
500: "#6b7280",
|
|
1981
|
+
550: "#94A3B8",
|
|
1982
|
+
// new gray 50 in Figma
|
|
1963
1983
|
600: "#4b5563",
|
|
1964
1984
|
700: "#374151",
|
|
1985
|
+
750: "#848C98",
|
|
1986
|
+
// new gray 70 in Figma
|
|
1965
1987
|
800: "#1f2937",
|
|
1988
|
+
850: "#4C4C4C",
|
|
1989
|
+
// new gray 90 in Figma
|
|
1966
1990
|
900: "#111827"
|
|
1967
1991
|
},
|
|
1968
1992
|
green: {
|
|
@@ -2025,6 +2049,8 @@ const W = {
|
|
|
2025
2049
|
blue: {
|
|
2026
2050
|
100: "hsl(240 42% 22%)",
|
|
2027
2051
|
60: "hsl(240 24% 34%)",
|
|
2052
|
+
650: "#1A76AA",
|
|
2053
|
+
// new blue 70 in Figma
|
|
2028
2054
|
50: "hsl(257 75% 52%)",
|
|
2029
2055
|
40: "hsl(200 100% 51%)",
|
|
2030
2056
|
30: "hsl(224 85% 67%)"
|
|
@@ -2085,27 +2111,27 @@ const W = {
|
|
|
2085
2111
|
fixedProps: a = {},
|
|
2086
2112
|
sizeProps: n = null,
|
|
2087
2113
|
sizes: s,
|
|
2088
|
-
weights:
|
|
2114
|
+
weights: r,
|
|
2089
2115
|
weightProps: i = null
|
|
2090
2116
|
}) => {
|
|
2091
|
-
const
|
|
2092
|
-
Object.entries(s).forEach(([o,
|
|
2093
|
-
const
|
|
2094
|
-
"font-size":
|
|
2117
|
+
const l = {};
|
|
2118
|
+
Object.entries(s).forEach(([o, u]) => {
|
|
2119
|
+
const p = {
|
|
2120
|
+
"font-size": u,
|
|
2095
2121
|
...a
|
|
2096
|
-
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue:
|
|
2097
|
-
|
|
2098
|
-
...
|
|
2122
|
+
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: u }) : {};
|
|
2123
|
+
l[V] = {
|
|
2124
|
+
...p,
|
|
2099
2125
|
...C
|
|
2100
|
-
}, Object.entries(
|
|
2101
|
-
const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue:
|
|
2102
|
-
|
|
2103
|
-
...
|
|
2104
|
-
"font-weight":
|
|
2126
|
+
}, Object.entries(r).forEach(([f, v]) => {
|
|
2127
|
+
const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: v }) : {};
|
|
2128
|
+
l[A] = {
|
|
2129
|
+
...p,
|
|
2130
|
+
"font-weight": v,
|
|
2105
2131
|
...h
|
|
2106
2132
|
};
|
|
2107
2133
|
});
|
|
2108
|
-
}), d(
|
|
2134
|
+
}), d(l);
|
|
2109
2135
|
}, $ = {
|
|
2110
2136
|
aspectRatio: !1,
|
|
2111
2137
|
backdropBlur: !1,
|
|
@@ -2178,7 +2204,7 @@ const W = {
|
|
|
2178
2204
|
medium: "500",
|
|
2179
2205
|
semibold: "600",
|
|
2180
2206
|
bold: "700"
|
|
2181
|
-
},
|
|
2207
|
+
}, r = {
|
|
2182
2208
|
title: "2rem",
|
|
2183
2209
|
1: "1.75rem",
|
|
2184
2210
|
2: "1.625rem",
|
|
@@ -2199,10 +2225,10 @@ const W = {
|
|
|
2199
2225
|
fixedProps: {
|
|
2200
2226
|
"line-height": "1.5"
|
|
2201
2227
|
},
|
|
2202
|
-
sizeProps: ({ sizeKey:
|
|
2203
|
-
"font-weight": n.includes(
|
|
2228
|
+
sizeProps: ({ sizeKey: l }) => ({
|
|
2229
|
+
"font-weight": n.includes(l) ? s.semibold : s.bold
|
|
2204
2230
|
}),
|
|
2205
|
-
sizes:
|
|
2231
|
+
sizes: r,
|
|
2206
2232
|
weights: s
|
|
2207
2233
|
}), I({
|
|
2208
2234
|
addUtilities: d,
|
|
@@ -2212,14 +2238,14 @@ const W = {
|
|
|
2212
2238
|
weights: s
|
|
2213
2239
|
}), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
|
|
2214
2240
|
}
|
|
2215
|
-
],
|
|
2241
|
+
], l2 = {
|
|
2216
2242
|
theme: {
|
|
2217
2243
|
extend: T,
|
|
2218
2244
|
colors: O
|
|
2219
2245
|
},
|
|
2220
2246
|
plugins: q,
|
|
2221
2247
|
corePlugins: $
|
|
2222
|
-
},
|
|
2248
|
+
}, r2 = {
|
|
2223
2249
|
theme: {
|
|
2224
2250
|
extend: T,
|
|
2225
2251
|
colors: B
|
|
@@ -2234,7 +2260,7 @@ function z1(d, e = []) {
|
|
|
2234
2260
|
},
|
|
2235
2261
|
set(t, a, n) {
|
|
2236
2262
|
const s = { ...t };
|
|
2237
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2263
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, s, a)), t;
|
|
2238
2264
|
}
|
|
2239
2265
|
});
|
|
2240
2266
|
}
|
|
@@ -2246,12 +2272,12 @@ function o2(d, e = []) {
|
|
|
2246
2272
|
}
|
|
2247
2273
|
function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2248
2274
|
let s = !0;
|
|
2249
|
-
for (const [
|
|
2250
|
-
const
|
|
2251
|
-
o.forEach((
|
|
2252
|
-
|
|
2253
|
-
}),
|
|
2254
|
-
|
|
2275
|
+
for (const [r, i] of t.entries()) {
|
|
2276
|
+
const l = e.querySelector(`[name="${r}"]`), o = a[r], u = [];
|
|
2277
|
+
o.forEach((p) => {
|
|
2278
|
+
p.isValid(i) || u.push(p.message);
|
|
2279
|
+
}), 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) => {
|
|
2280
|
+
p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
|
|
2255
2281
|
}));
|
|
2256
2282
|
}
|
|
2257
2283
|
return s;
|
|
@@ -2305,16 +2331,16 @@ class h2 {
|
|
|
2305
2331
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2306
2332
|
}
|
|
2307
2333
|
handleIntersect(e, t, a) {
|
|
2308
|
-
const n = e.filter((
|
|
2309
|
-
(
|
|
2334
|
+
const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, r = n.every(
|
|
2335
|
+
(l) => l.isIntersecting === !0
|
|
2310
2336
|
);
|
|
2311
|
-
s &&
|
|
2312
|
-
const o = [...a.slides].indexOf(
|
|
2313
|
-
|
|
2337
|
+
s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
|
|
2338
|
+
const o = [...a.slides].indexOf(l.target);
|
|
2339
|
+
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));
|
|
2314
2340
|
}));
|
|
2315
|
-
function i(
|
|
2341
|
+
function i(l) {
|
|
2316
2342
|
var o;
|
|
2317
|
-
|
|
2343
|
+
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));
|
|
2318
2344
|
}
|
|
2319
2345
|
}
|
|
2320
2346
|
btnListeners(e) {
|
|
@@ -2333,7 +2359,7 @@ class h2 {
|
|
|
2333
2359
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2334
2360
|
}
|
|
2335
2361
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2336
|
-
const s = '<span class="slide-first"></span>',
|
|
2362
|
+
const s = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
2337
2363
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2338
2364
|
return console.error(`slider-container-${a} Not Found`);
|
|
2339
2365
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2341,8 +2367,8 @@ class h2 {
|
|
|
2341
2367
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2342
2368
|
`#btn-right-${a}`
|
|
2343
2369
|
);
|
|
2344
|
-
const i = t.map((o) => n(o)).join(""),
|
|
2345
|
-
|
|
2370
|
+
const i = t.map((o) => n(o)).join(""), l = document.createElement("div");
|
|
2371
|
+
l.innerHTML = `${s}${i}${r}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
|
|
2346
2372
|
}
|
|
2347
2373
|
showHideBtns(e, t, a) {
|
|
2348
2374
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2354,10 +2380,10 @@ class h2 {
|
|
|
2354
2380
|
}
|
|
2355
2381
|
class H {
|
|
2356
2382
|
static calcCrow(e, t, a, n) {
|
|
2357
|
-
const
|
|
2383
|
+
const r = H.toRad(a - e), i = H.toRad(n - t);
|
|
2358
2384
|
e = H.toRad(e), a = H.toRad(a);
|
|
2359
|
-
const
|
|
2360
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
2385
|
+
const l = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2386
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
|
|
2361
2387
|
}
|
|
2362
2388
|
static cleanupAddress(e) {
|
|
2363
2389
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -2391,7 +2417,7 @@ class H {
|
|
|
2391
2417
|
type: a = null,
|
|
2392
2418
|
name: n = null,
|
|
2393
2419
|
userId: s = null,
|
|
2394
|
-
website:
|
|
2420
|
+
website: r = null,
|
|
2395
2421
|
siteMarker: i = null
|
|
2396
2422
|
} = e ?? {};
|
|
2397
2423
|
if (!t) {
|
|
@@ -2403,14 +2429,14 @@ class H {
|
|
|
2403
2429
|
return;
|
|
2404
2430
|
}
|
|
2405
2431
|
const {
|
|
2406
|
-
isHeads:
|
|
2432
|
+
isHeads: l = null,
|
|
2407
2433
|
isLoggedIn: o = null,
|
|
2408
|
-
url:
|
|
2409
|
-
ip:
|
|
2434
|
+
url: u = null,
|
|
2435
|
+
ip: p = null,
|
|
2410
2436
|
sessionId: V = null,
|
|
2411
2437
|
user: C = null
|
|
2412
2438
|
} = (window == null ? void 0 : window.options) ?? {}, { id: f = null } = C ?? {};
|
|
2413
|
-
t.userId = s ?? f, t.isHeads =
|
|
2439
|
+
t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url = u, await H.createData(
|
|
2414
2440
|
"/api/event",
|
|
2415
2441
|
{
|
|
2416
2442
|
payload: {
|
|
@@ -2419,9 +2445,9 @@ class H {
|
|
|
2419
2445
|
name: n,
|
|
2420
2446
|
userId: s ?? f,
|
|
2421
2447
|
url: window.location.href,
|
|
2422
|
-
ip:
|
|
2448
|
+
ip: p,
|
|
2423
2449
|
sessionId: V,
|
|
2424
|
-
siteMarker:
|
|
2450
|
+
siteMarker: r ?? i
|
|
2425
2451
|
}
|
|
2426
2452
|
},
|
|
2427
2453
|
!1
|
|
@@ -2430,19 +2456,19 @@ class H {
|
|
|
2430
2456
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2431
2457
|
if (!t)
|
|
2432
2458
|
return null;
|
|
2433
|
-
const s = await this.createDataGetExtra({ useExtra: a }),
|
|
2459
|
+
const s = await this.createDataGetExtra({ useExtra: a }), r = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2434
2460
|
try {
|
|
2435
|
-
const
|
|
2461
|
+
const l = await fetch(e + s, {
|
|
2436
2462
|
method: "POST",
|
|
2437
|
-
body:
|
|
2463
|
+
body: r === "null" ? null : r,
|
|
2438
2464
|
headers: {
|
|
2439
2465
|
website: i
|
|
2440
2466
|
},
|
|
2441
2467
|
...n
|
|
2442
2468
|
});
|
|
2443
|
-
return await this.createDataReturn(
|
|
2444
|
-
} catch (
|
|
2445
|
-
console.error("createData",
|
|
2469
|
+
return await this.createDataReturn(l);
|
|
2470
|
+
} catch (l) {
|
|
2471
|
+
console.error("createData", l, e + s);
|
|
2446
2472
|
}
|
|
2447
2473
|
return null;
|
|
2448
2474
|
}
|
|
@@ -2513,15 +2539,15 @@ class H {
|
|
|
2513
2539
|
static async fetchData(e, t = !1, a = !0) {
|
|
2514
2540
|
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2515
2541
|
try {
|
|
2516
|
-
const
|
|
2542
|
+
const l = await fetch(i, { method: "GET" });
|
|
2517
2543
|
if (t === !0) {
|
|
2518
|
-
const
|
|
2519
|
-
return
|
|
2544
|
+
const u = await l.text();
|
|
2545
|
+
return u ? u.replace("__next", "") : null;
|
|
2520
2546
|
}
|
|
2521
|
-
const o =
|
|
2522
|
-
return o && o.indexOf("application/json") !== -1 ?
|
|
2523
|
-
} catch (
|
|
2524
|
-
console.error("fetchData",
|
|
2547
|
+
const o = l.headers.get("content-type");
|
|
2548
|
+
return o && o.indexOf("application/json") !== -1 ? l.json() : null;
|
|
2549
|
+
} catch (l) {
|
|
2550
|
+
console.error("fetchData", l, e);
|
|
2525
2551
|
}
|
|
2526
2552
|
return null;
|
|
2527
2553
|
}
|
|
@@ -2549,12 +2575,12 @@ class H {
|
|
|
2549
2575
|
swLng: 0
|
|
2550
2576
|
};
|
|
2551
2577
|
const n = e.getBounds();
|
|
2552
|
-
let s = n.getSouth(),
|
|
2553
|
-
return a && (s = s - a,
|
|
2578
|
+
let s = n.getSouth(), r = n.getEast(), i = n.getNorth(), l = n.getWest();
|
|
2579
|
+
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)), {
|
|
2554
2580
|
swLat: s,
|
|
2555
|
-
neLng:
|
|
2581
|
+
neLng: r,
|
|
2556
2582
|
neLat: i,
|
|
2557
|
-
swLng:
|
|
2583
|
+
swLng: l
|
|
2558
2584
|
};
|
|
2559
2585
|
}
|
|
2560
2586
|
static getFirstN(e, t = 5) {
|
|
@@ -2587,29 +2613,29 @@ class H {
|
|
|
2587
2613
|
userAgent: a = null,
|
|
2588
2614
|
userAgentData: n = null,
|
|
2589
2615
|
platform: s = null
|
|
2590
|
-
} = navigator || {},
|
|
2616
|
+
} = navigator || {}, r = (n == null ? void 0 : n.platform) ?? s, i = {
|
|
2591
2617
|
tolken: null,
|
|
2592
2618
|
ip: null,
|
|
2593
2619
|
userAgent: a,
|
|
2594
|
-
platform:
|
|
2620
|
+
platform: r
|
|
2595
2621
|
};
|
|
2596
2622
|
if (typeof window.localStorage > "u")
|
|
2597
2623
|
return i;
|
|
2598
|
-
const
|
|
2624
|
+
const l = "headerSessionData";
|
|
2599
2625
|
if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
|
|
2600
2626
|
return i;
|
|
2601
2627
|
try {
|
|
2602
|
-
const
|
|
2628
|
+
const p = await (await fetch("/api/client-headers")).json(), V = (p == null ? void 0 : p.sessionId) ?? "noSessionId", C = (p == null ? void 0 : p.ip) ?? null, f = e * 1e3;
|
|
2603
2629
|
return localStorage.setItem(
|
|
2604
|
-
|
|
2630
|
+
l,
|
|
2605
2631
|
JSON.stringify({
|
|
2606
2632
|
tolken: V,
|
|
2607
2633
|
ip: C,
|
|
2608
2634
|
expire: (/* @__PURE__ */ new Date()).getTime() + f
|
|
2609
2635
|
})
|
|
2610
|
-
), { tolken: V, ip: C, userAgent: a, platform:
|
|
2611
|
-
} catch (
|
|
2612
|
-
console.error("getHeaders",
|
|
2636
|
+
), { tolken: V, ip: C, userAgent: a, platform: r };
|
|
2637
|
+
} catch (u) {
|
|
2638
|
+
console.error("getHeaders", u);
|
|
2613
2639
|
}
|
|
2614
2640
|
return i;
|
|
2615
2641
|
}
|
|
@@ -2620,15 +2646,15 @@ class H {
|
|
|
2620
2646
|
}[e];
|
|
2621
2647
|
}
|
|
2622
2648
|
static async getLocationData(e) {
|
|
2623
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05),
|
|
2624
|
-
return await H.fetchData("/api/client?query=" +
|
|
2649
|
+
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;
|
|
2650
|
+
return await H.fetchData("/api/client?query=" + r);
|
|
2625
2651
|
}
|
|
2626
2652
|
static getReportUrl(e, t = null) {
|
|
2627
|
-
var
|
|
2628
|
-
const a = ((
|
|
2653
|
+
var l, o, u;
|
|
2654
|
+
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
2655
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2630
|
-
const i = [
|
|
2631
|
-
return "/" + [a, n, s].filter((
|
|
2656
|
+
const i = [r, "-piq", t].filter((p) => p).join("");
|
|
2657
|
+
return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
|
|
2632
2658
|
}
|
|
2633
2659
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2634
2660
|
try {
|
|
@@ -2794,18 +2820,18 @@ class H {
|
|
|
2794
2820
|
static gridTest(e, t, a = 1500) {
|
|
2795
2821
|
const n = this;
|
|
2796
2822
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
2797
|
-
createTile: function(s,
|
|
2823
|
+
createTile: function(s, r) {
|
|
2798
2824
|
const i = document.createElement("div");
|
|
2799
2825
|
return setTimeout(() => {
|
|
2800
|
-
|
|
2801
|
-
const { se:
|
|
2826
|
+
r(null, i);
|
|
2827
|
+
const { se: l, nw: o } = n.getGridBounds({
|
|
2802
2828
|
map: e,
|
|
2803
2829
|
tileSize: this.getTileSize(),
|
|
2804
2830
|
coords: s
|
|
2805
2831
|
});
|
|
2806
2832
|
t({
|
|
2807
|
-
swLat:
|
|
2808
|
-
neLng:
|
|
2833
|
+
swLat: l.lat,
|
|
2834
|
+
neLng: l.lng,
|
|
2809
2835
|
neLat: o.lat,
|
|
2810
2836
|
swLng: o.lng,
|
|
2811
2837
|
coords: s,
|
|
@@ -2835,10 +2861,10 @@ class H {
|
|
|
2835
2861
|
onClose: a = null,
|
|
2836
2862
|
onOpen: n = null,
|
|
2837
2863
|
onTargetClick: s = null,
|
|
2838
|
-
selfClose:
|
|
2864
|
+
selfClose: r = !1,
|
|
2839
2865
|
target: i = null
|
|
2840
2866
|
}) {
|
|
2841
|
-
const
|
|
2867
|
+
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 = [
|
|
2842
2868
|
"closing",
|
|
2843
2869
|
"closed",
|
|
2844
2870
|
"opening",
|
|
@@ -2846,23 +2872,23 @@ class H {
|
|
|
2846
2872
|
"outside",
|
|
2847
2873
|
"removed"
|
|
2848
2874
|
].reduce(
|
|
2849
|
-
(h,
|
|
2875
|
+
(h, b) => ({
|
|
2850
2876
|
...h,
|
|
2851
|
-
[
|
|
2877
|
+
[b]: new Event(b)
|
|
2852
2878
|
}),
|
|
2853
2879
|
{}
|
|
2854
|
-
), V = new MutationObserver((h,
|
|
2880
|
+
), V = new MutationObserver((h, b) => {
|
|
2855
2881
|
h.forEach(async (w) => {
|
|
2856
2882
|
if (w.attributeName === "open") {
|
|
2857
2883
|
const g = w.target;
|
|
2858
2884
|
if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
|
|
2859
|
-
g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(
|
|
2885
|
+
g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(p.opening), g && await A(g), g == null || g.dispatchEvent(p.opened);
|
|
2860
2886
|
}
|
|
2861
2887
|
});
|
|
2862
|
-
}), C = new MutationObserver((h,
|
|
2888
|
+
}), C = new MutationObserver((h, b) => {
|
|
2863
2889
|
h.forEach((w) => {
|
|
2864
2890
|
w.removedNodes.forEach((g) => {
|
|
2865
|
-
g.nodeName === "DIALOG" && (g.removeEventListener("click",
|
|
2891
|
+
g.nodeName === "DIALOG" && (g.removeEventListener("click", v), g.removeEventListener("close", f), g.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2866
2892
|
});
|
|
2867
2893
|
});
|
|
2868
2894
|
});
|
|
@@ -2874,13 +2900,13 @@ class H {
|
|
|
2874
2900
|
childList: !0
|
|
2875
2901
|
}));
|
|
2876
2902
|
const f = async ({ target: h }) => {
|
|
2877
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(
|
|
2878
|
-
},
|
|
2879
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(
|
|
2903
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
|
|
2904
|
+
}, v = async ({ target: h }) => {
|
|
2905
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), o == null || o.close("outside"));
|
|
2880
2906
|
}, A = (h) => Promise.allSettled(
|
|
2881
|
-
h == null ? void 0 : h.getAnimations().map((
|
|
2907
|
+
h == null ? void 0 : h.getAnimations().map((b) => b == null ? void 0 : b.finished)
|
|
2882
2908
|
);
|
|
2883
|
-
return !e && (o == null || o.addEventListener("click",
|
|
2909
|
+
return !e && (o == null || o.addEventListener("click", v)), o == null || o.addEventListener("close", async (h) => {
|
|
2884
2910
|
await f({ target: h.target }), a && a(h, o);
|
|
2885
2911
|
}), e && (o == null || o.addEventListener("cancel", async (h) => {
|
|
2886
2912
|
h.key === "Escape" && h.preventDefault();
|
|
@@ -2888,16 +2914,16 @@ class H {
|
|
|
2888
2914
|
h.key === "Escape" && h.preventDefault();
|
|
2889
2915
|
})), n && (o == null || o.addEventListener("open", async (h) => {
|
|
2890
2916
|
n(h, o);
|
|
2891
|
-
})),
|
|
2892
|
-
h.addEventListener("click", (
|
|
2893
|
-
o == null || o.showModal(), s && s(
|
|
2917
|
+
})), l == null || l.forEach((h) => {
|
|
2918
|
+
h.addEventListener("click", (b) => {
|
|
2919
|
+
o == null || o.showModal(), s && s(b, o);
|
|
2894
2920
|
});
|
|
2895
|
-
}),
|
|
2896
|
-
h.addEventListener("click", async (
|
|
2921
|
+
}), u == null || u.forEach((h) => {
|
|
2922
|
+
h.addEventListener("click", async (b) => {
|
|
2897
2923
|
o == null || o.close("close");
|
|
2898
2924
|
});
|
|
2899
2925
|
}), {
|
|
2900
|
-
activators:
|
|
2926
|
+
activators: l,
|
|
2901
2927
|
ref: o
|
|
2902
2928
|
};
|
|
2903
2929
|
}
|
|
@@ -2908,8 +2934,8 @@ class H {
|
|
|
2908
2934
|
if (!e)
|
|
2909
2935
|
return;
|
|
2910
2936
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2911
|
-
new IntersectionObserver(async (
|
|
2912
|
-
n ? (
|
|
2937
|
+
new IntersectionObserver(async (r, i) => {
|
|
2938
|
+
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 });
|
|
2913
2939
|
}, a).observe(e);
|
|
2914
2940
|
}
|
|
2915
2941
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2917,11 +2943,11 @@ class H {
|
|
|
2917
2943
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2918
2944
|
}
|
|
2919
2945
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2920
|
-
return new Promise(function(s,
|
|
2946
|
+
return new Promise(function(s, r) {
|
|
2921
2947
|
let i = document.getElementById(t);
|
|
2922
2948
|
if (t && i && i.dataset.loaded === "true")
|
|
2923
2949
|
return s({ alreadyLoaded: !0, id: t });
|
|
2924
|
-
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 = () =>
|
|
2950
|
+
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));
|
|
2925
2951
|
});
|
|
2926
2952
|
}
|
|
2927
2953
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2954,14 +2980,14 @@ class H {
|
|
|
2954
2980
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2955
2981
|
}
|
|
2956
2982
|
static async logRequest(e = null, t = null, a = null, n = null, s = null) {
|
|
2957
|
-
const
|
|
2983
|
+
const r = {
|
|
2958
2984
|
name: e,
|
|
2959
2985
|
uuid: t,
|
|
2960
2986
|
ip: a,
|
|
2961
2987
|
url: n,
|
|
2962
2988
|
data: s
|
|
2963
2989
|
};
|
|
2964
|
-
return await H.createData("/api/client?query=log/save&method=POST",
|
|
2990
|
+
return await H.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2965
2991
|
}
|
|
2966
2992
|
static loadAds() {
|
|
2967
2993
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2985,8 +3011,8 @@ class H {
|
|
|
2985
3011
|
async: !1,
|
|
2986
3012
|
module: a
|
|
2987
3013
|
});
|
|
2988
|
-
} catch (
|
|
2989
|
-
console.error("loadCustomScript",
|
|
3014
|
+
} catch (r) {
|
|
3015
|
+
console.error("loadCustomScript", r);
|
|
2990
3016
|
}
|
|
2991
3017
|
}
|
|
2992
3018
|
return null;
|
|
@@ -3036,17 +3062,17 @@ class H {
|
|
|
3036
3062
|
first: a = null,
|
|
3037
3063
|
middle: n = null,
|
|
3038
3064
|
last: s = null,
|
|
3039
|
-
min:
|
|
3065
|
+
min: r = null,
|
|
3040
3066
|
max: i = null,
|
|
3041
|
-
city:
|
|
3067
|
+
city: l = null,
|
|
3042
3068
|
state: o = null,
|
|
3043
|
-
vin:
|
|
3044
|
-
license:
|
|
3069
|
+
vin: u = null,
|
|
3070
|
+
license: p = null,
|
|
3045
3071
|
token: V = null,
|
|
3046
3072
|
phone: C = null
|
|
3047
|
-
} = e || {}, f = t && t !== "",
|
|
3073
|
+
} = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
|
|
3048
3074
|
let h = [];
|
|
3049
|
-
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)),
|
|
3075
|
+
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), v && A ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (v && h.push("min=" + r), A && 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("&");
|
|
3050
3076
|
}
|
|
3051
3077
|
static padTo2Digits(e) {
|
|
3052
3078
|
return e.toString().padStart(2, "0");
|
|
@@ -3060,29 +3086,29 @@ class H {
|
|
|
3060
3086
|
addressesOnly: a = !1,
|
|
3061
3087
|
useCitySearch: n = !1,
|
|
3062
3088
|
useCityStateSearch: s = !1,
|
|
3063
|
-
useSearch:
|
|
3089
|
+
useSearch: r = !1,
|
|
3064
3090
|
useLocation: i = !0,
|
|
3065
|
-
state:
|
|
3091
|
+
state: l = "",
|
|
3066
3092
|
useGoogle: o = !1,
|
|
3067
|
-
useGoogleOverride:
|
|
3068
|
-
useAmazonOverride:
|
|
3093
|
+
useGoogleOverride: u = !1,
|
|
3094
|
+
useAmazonOverride: p = !1,
|
|
3069
3095
|
isSandboxAccount: V = !1,
|
|
3070
3096
|
isOptOutSearch: C = !1
|
|
3071
|
-
} = t ?? {}, { tolken: f = null, ip:
|
|
3097
|
+
} = t ?? {}, { tolken: f = null, ip: v = null } = await H.getHeaders(), h = [
|
|
3072
3098
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3073
3099
|
"addressesOnly=" + a,
|
|
3074
|
-
"useSearch=" +
|
|
3100
|
+
"useSearch=" + r,
|
|
3075
3101
|
"useCitySearch=" + n,
|
|
3076
3102
|
"useCityStateSearch=" + s,
|
|
3077
3103
|
"useLocation=" + i,
|
|
3078
3104
|
"useGoogle=" + o,
|
|
3079
|
-
"useGoogleOverride=" +
|
|
3080
|
-
"useAmazonOverride=" +
|
|
3105
|
+
"useGoogleOverride=" + u,
|
|
3106
|
+
"useAmazonOverride=" + p,
|
|
3081
3107
|
"isSandboxAccount=" + V,
|
|
3082
3108
|
"isOptOutSearch=" + C
|
|
3083
3109
|
];
|
|
3084
|
-
|
|
3085
|
-
const
|
|
3110
|
+
l && l !== "" && !s && h.push("state=" + l), f && f !== "" && h.push("tolken=" + f), v && v !== "" && h.push("ip=" + v);
|
|
3111
|
+
const b = h.join("&"), g = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
|
|
3086
3112
|
return await H.fetchData(g);
|
|
3087
3113
|
}
|
|
3088
3114
|
static removeElements(e) {
|
|
@@ -3128,9 +3154,9 @@ class H {
|
|
|
3128
3154
|
s && (n = s.short);
|
|
3129
3155
|
}
|
|
3130
3156
|
if (a && !n) {
|
|
3131
|
-
const s = a.split(" "),
|
|
3132
|
-
if (
|
|
3133
|
-
const i = this.searchInStates(
|
|
3157
|
+
const s = a.split(" "), r = s[s.length - 1];
|
|
3158
|
+
if (r.length) {
|
|
3159
|
+
const i = this.searchInStates(r);
|
|
3134
3160
|
i && (n = i.short, a = s.slice(0, -1).join(" "));
|
|
3135
3161
|
}
|
|
3136
3162
|
}
|
|
@@ -3144,12 +3170,12 @@ class H {
|
|
|
3144
3170
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3145
3171
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3146
3172
|
try {
|
|
3147
|
-
const
|
|
3148
|
-
i.forEach((o,
|
|
3149
|
-
o && typeof o[e[
|
|
3150
|
-
}),
|
|
3151
|
-
} catch (
|
|
3152
|
-
console.error("Failed to load one or more search modules:",
|
|
3173
|
+
const r = e.map(({ fileName: o, initFunctionName: u }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(r), l = [];
|
|
3174
|
+
i.forEach((o, u) => {
|
|
3175
|
+
o && typeof o[e[u].initFunctionName] == "function" ? l.push(o[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
|
|
3176
|
+
}), l.length > 0 && await Promise.all(l);
|
|
3177
|
+
} catch (r) {
|
|
3178
|
+
console.error("Failed to load one or more search modules:", r);
|
|
3153
3179
|
}
|
|
3154
3180
|
}
|
|
3155
3181
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
@@ -3270,10 +3296,10 @@ export {
|
|
|
3270
3296
|
i2 as addClass,
|
|
3271
3297
|
s2 as colors,
|
|
3272
3298
|
$ as corePlugins,
|
|
3273
|
-
|
|
3299
|
+
r2 as elerisPreset,
|
|
3274
3300
|
T as extensions,
|
|
3275
3301
|
q as plugins,
|
|
3276
|
-
|
|
3302
|
+
l2 as propertyPreset,
|
|
3277
3303
|
o2 as removeClass,
|
|
3278
3304
|
d2 as validateEmail,
|
|
3279
3305
|
c2 as validateForm
|