@vehiclehistory/property-lib 0.0.21 → 0.0.22
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 +3 -2
- package/dist/main.js +232 -230
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactNode, NamedExoticComponent } from 'react';
|
|
2
2
|
declare const _default: NamedExoticComponent<{
|
|
3
|
-
|
|
4
|
-
leftIconProps?: object;
|
|
3
|
+
borderless?: boolean;
|
|
5
4
|
children?: ReactNode;
|
|
6
5
|
className?: string;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
href?: string;
|
|
8
|
+
leftIcon?: string;
|
|
9
|
+
leftIconProps?: object;
|
|
9
10
|
props?: any;
|
|
10
11
|
rightIcon?: string;
|
|
11
12
|
rightIconProps?: object;
|
package/dist/main.js
CHANGED
|
@@ -477,7 +477,7 @@ const F = {
|
|
|
477
477
|
size: a = "medium",
|
|
478
478
|
viewBox: n = "0 0 20 20"
|
|
479
479
|
}) => {
|
|
480
|
-
const l = j(t), [
|
|
480
|
+
const l = j(t), [r, s] = Z(d), [i, c] = Z(l);
|
|
481
481
|
return k(() => {
|
|
482
482
|
c(l);
|
|
483
483
|
}, [l]), k(() => {
|
|
@@ -486,12 +486,12 @@ const F = {
|
|
|
486
486
|
"svg",
|
|
487
487
|
{
|
|
488
488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
489
|
-
className: `${F[a]} fill-current flex-shrink-0 ${
|
|
489
|
+
className: `${F[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
|
|
490
490
|
style: { maxWidth: "4em" },
|
|
491
491
|
role: "presentation",
|
|
492
492
|
viewBox: n,
|
|
493
493
|
dangerouslySetInnerHTML: {
|
|
494
|
-
__html:
|
|
494
|
+
__html: i && i.path
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
);
|
|
@@ -502,9 +502,9 @@ const F = {
|
|
|
502
502
|
panelClass: a,
|
|
503
503
|
title: n,
|
|
504
504
|
unmount: l = !0,
|
|
505
|
-
isOpen:
|
|
505
|
+
isOpen: r = !1
|
|
506
506
|
}) => {
|
|
507
|
-
const [s,
|
|
507
|
+
const [s, i] = Z(r);
|
|
508
508
|
return /* @__PURE__ */ o("div", { className: m("shadow rounded-lg", e), children: /* @__PURE__ */ g(z, { children: [
|
|
509
509
|
/* @__PURE__ */ g(
|
|
510
510
|
"button",
|
|
@@ -519,7 +519,7 @@ const F = {
|
|
|
519
519
|
),
|
|
520
520
|
title: n,
|
|
521
521
|
onClick: () => {
|
|
522
|
-
|
|
522
|
+
i(!s), t && t(!s);
|
|
523
523
|
},
|
|
524
524
|
children: [
|
|
525
525
|
/* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
@@ -563,7 +563,7 @@ const F = {
|
|
|
563
563
|
title: a = "",
|
|
564
564
|
titleClass: n = "",
|
|
565
565
|
props: l = {},
|
|
566
|
-
type:
|
|
566
|
+
type: r = "error"
|
|
567
567
|
}) => {
|
|
568
568
|
const s = {
|
|
569
569
|
error: {
|
|
@@ -586,11 +586,11 @@ const F = {
|
|
|
586
586
|
iconColor: "text-yellow-500",
|
|
587
587
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
588
588
|
}
|
|
589
|
-
}, { icon:
|
|
589
|
+
}, { icon: i, iconColor: c, styles: h } = s[r];
|
|
590
590
|
return /* @__PURE__ */ o(
|
|
591
591
|
"div",
|
|
592
592
|
{
|
|
593
|
-
id:
|
|
593
|
+
id: r,
|
|
594
594
|
className: m(
|
|
595
595
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
596
596
|
h,
|
|
@@ -601,7 +601,7 @@ const F = {
|
|
|
601
601
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
602
602
|
b,
|
|
603
603
|
{
|
|
604
|
-
name:
|
|
604
|
+
name: i,
|
|
605
605
|
viewBox: "0 0 24 24",
|
|
606
606
|
className: c,
|
|
607
607
|
size: "xSmall"
|
|
@@ -609,7 +609,7 @@ const F = {
|
|
|
609
609
|
) }),
|
|
610
610
|
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
611
611
|
/* @__PURE__ */ o("div", { className: m("font-medium text-sm", n), children: a }),
|
|
612
|
-
t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u,
|
|
612
|
+
t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u, f) => /* @__PURE__ */ o("li", { children: u }, f)) }) }) : ""
|
|
613
613
|
] })
|
|
614
614
|
] })
|
|
615
615
|
}
|
|
@@ -621,16 +621,16 @@ const F = {
|
|
|
621
621
|
defaultValue: a = "",
|
|
622
622
|
id: n = "",
|
|
623
623
|
type: l,
|
|
624
|
-
floatingLabel:
|
|
624
|
+
floatingLabel: r = "",
|
|
625
625
|
inputClass: s = "",
|
|
626
|
-
leftIcon:
|
|
626
|
+
leftIcon: i = "homeSearch",
|
|
627
627
|
mobileBackdrop: c = !1,
|
|
628
628
|
showSearchIcon: h = !0,
|
|
629
629
|
options: u = [],
|
|
630
|
-
name:
|
|
630
|
+
name: f = "",
|
|
631
631
|
placeholder: M = "",
|
|
632
632
|
props: A = {},
|
|
633
|
-
size:
|
|
633
|
+
size: H = "medium",
|
|
634
634
|
styles: p = null,
|
|
635
635
|
title: V = ""
|
|
636
636
|
}) => /* @__PURE__ */ g(
|
|
@@ -656,8 +656,8 @@ const F = {
|
|
|
656
656
|
b,
|
|
657
657
|
{
|
|
658
658
|
className: "home-search select-none text-gray-500",
|
|
659
|
-
name:
|
|
660
|
-
size:
|
|
659
|
+
name: i,
|
|
660
|
+
size: H === "xLarge" ? "small" : "xSmall",
|
|
661
661
|
viewBox: "0 0 24 24"
|
|
662
662
|
}
|
|
663
663
|
),
|
|
@@ -666,7 +666,7 @@ const F = {
|
|
|
666
666
|
{
|
|
667
667
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
668
668
|
name: "arrowLeft",
|
|
669
|
-
size:
|
|
669
|
+
size: H === "xLarge" ? "small" : "xSmall",
|
|
670
670
|
viewBox: "0 0 24 24"
|
|
671
671
|
}
|
|
672
672
|
)
|
|
@@ -682,36 +682,36 @@ const F = {
|
|
|
682
682
|
"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",
|
|
683
683
|
{
|
|
684
684
|
"pl-8": h === !0,
|
|
685
|
-
"px-3 h-10":
|
|
686
|
-
"px-4 h-12":
|
|
687
|
-
"px-5 h-[60px] sm:!text-base":
|
|
688
|
-
peer:
|
|
685
|
+
"px-3 h-10": H === "medium",
|
|
686
|
+
"px-4 h-12": H === "large",
|
|
687
|
+
"px-5 h-[60px] sm:!text-base": H === "xLarge",
|
|
688
|
+
peer: r
|
|
689
689
|
},
|
|
690
690
|
s
|
|
691
691
|
),
|
|
692
692
|
required: e,
|
|
693
693
|
autoComplete: "off",
|
|
694
694
|
value: a,
|
|
695
|
-
placeholder: !M &&
|
|
695
|
+
placeholder: !M && r ? " " : M,
|
|
696
696
|
type: "search",
|
|
697
|
-
name:
|
|
697
|
+
name: f || "search-input",
|
|
698
698
|
"data-id": "search-input",
|
|
699
699
|
...A
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
|
-
|
|
702
|
+
r && /* @__PURE__ */ o(
|
|
703
703
|
"label",
|
|
704
704
|
{
|
|
705
705
|
className: m(
|
|
706
706
|
"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",
|
|
707
707
|
{
|
|
708
708
|
"!left-7": h === !0,
|
|
709
|
-
"left-2":
|
|
710
|
-
"left-3":
|
|
711
|
-
"left-4":
|
|
709
|
+
"left-2": H === "medium",
|
|
710
|
+
"left-3": H === "large",
|
|
711
|
+
"left-4": H === "xLarge"
|
|
712
712
|
}
|
|
713
713
|
),
|
|
714
|
-
children:
|
|
714
|
+
children: r
|
|
715
715
|
}
|
|
716
716
|
),
|
|
717
717
|
/* @__PURE__ */ o(
|
|
@@ -800,59 +800,61 @@ const F = {
|
|
|
800
800
|
children: d
|
|
801
801
|
}
|
|
802
802
|
), v1 = Q, G = ({
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
803
|
+
borderless: d = !1,
|
|
804
|
+
leftIcon: e,
|
|
805
|
+
leftIconProps: t = {},
|
|
806
|
+
children: a,
|
|
807
|
+
className: n = "",
|
|
808
|
+
disabled: l = !1,
|
|
809
|
+
href: r,
|
|
810
|
+
props: s = {},
|
|
811
|
+
rightIcon: i,
|
|
812
|
+
rightIconProps: c = {},
|
|
813
|
+
rounded: h = !1,
|
|
814
|
+
size: u = "md",
|
|
815
|
+
type: f = "button",
|
|
816
|
+
uppercase: M = !1,
|
|
817
|
+
variation: A = "primary"
|
|
817
818
|
}) => {
|
|
818
|
-
const
|
|
819
|
+
const H = r ? "a" : "button";
|
|
819
820
|
return /* @__PURE__ */ g(
|
|
820
|
-
|
|
821
|
+
H,
|
|
821
822
|
{
|
|
822
|
-
type:
|
|
823
|
+
type: H !== "a" ? f : null,
|
|
823
824
|
className: m(
|
|
824
825
|
"Button",
|
|
825
826
|
{
|
|
826
|
-
[`Button--${
|
|
827
|
-
[`Button--${
|
|
828
|
-
"Button--rounded":
|
|
829
|
-
"Button--disabled":
|
|
830
|
-
"Button--custom-link":
|
|
831
|
-
"Button--uppercase":
|
|
827
|
+
[`Button--${A}`]: A,
|
|
828
|
+
[`Button--${u}`]: u,
|
|
829
|
+
"Button--rounded": h,
|
|
830
|
+
"Button--disabled": l,
|
|
831
|
+
"Button--custom-link": r,
|
|
832
|
+
"Button--uppercase": M,
|
|
833
|
+
"Button--borderless": d
|
|
832
834
|
},
|
|
833
|
-
|
|
835
|
+
n
|
|
834
836
|
),
|
|
835
|
-
disabled:
|
|
836
|
-
href:
|
|
837
|
-
...
|
|
837
|
+
disabled: l,
|
|
838
|
+
href: r,
|
|
839
|
+
...s,
|
|
838
840
|
children: [
|
|
839
|
-
|
|
841
|
+
e && /* @__PURE__ */ o(
|
|
840
842
|
b,
|
|
841
843
|
{
|
|
842
|
-
name:
|
|
843
|
-
size: "small",
|
|
844
|
+
name: e,
|
|
845
|
+
size: u === "md" ? "small" : "xSmall",
|
|
844
846
|
viewBox: "0 0 24 24",
|
|
845
|
-
...
|
|
847
|
+
...t
|
|
846
848
|
}
|
|
847
849
|
),
|
|
848
|
-
|
|
849
|
-
|
|
850
|
+
a,
|
|
851
|
+
i && /* @__PURE__ */ o(
|
|
850
852
|
b,
|
|
851
853
|
{
|
|
852
|
-
name:
|
|
853
|
-
size: "small",
|
|
854
|
+
name: i,
|
|
855
|
+
size: u === "md" ? "small" : "xSmall",
|
|
854
856
|
viewBox: "0 0 24 24",
|
|
855
|
-
...
|
|
857
|
+
...c
|
|
856
858
|
}
|
|
857
859
|
)
|
|
858
860
|
]
|
|
@@ -865,7 +867,7 @@ const F = {
|
|
|
865
867
|
className: a = "",
|
|
866
868
|
divider: n = !0,
|
|
867
869
|
inset: l = !0,
|
|
868
|
-
id:
|
|
870
|
+
id: r = null,
|
|
869
871
|
role: s = null
|
|
870
872
|
}) => /* @__PURE__ */ o(
|
|
871
873
|
"div",
|
|
@@ -880,7 +882,7 @@ const F = {
|
|
|
880
882
|
},
|
|
881
883
|
a
|
|
882
884
|
),
|
|
883
|
-
id:
|
|
885
|
+
id: r,
|
|
884
886
|
role: s,
|
|
885
887
|
children: t
|
|
886
888
|
}
|
|
@@ -891,16 +893,16 @@ const F = {
|
|
|
891
893
|
error: a = !1,
|
|
892
894
|
id: n = "",
|
|
893
895
|
label: l = "",
|
|
894
|
-
name:
|
|
896
|
+
name: r = "",
|
|
895
897
|
props: s = {},
|
|
896
|
-
variation:
|
|
898
|
+
variation: i = "primary",
|
|
897
899
|
value: c = ""
|
|
898
900
|
}) => {
|
|
899
901
|
const h = l ? "div" : "label", u = h === "label" ? { htmlFor: n } : {};
|
|
900
902
|
return /* @__PURE__ */ g(
|
|
901
903
|
h,
|
|
902
904
|
{
|
|
903
|
-
className: m("checkbox flex items-center",
|
|
905
|
+
className: m("checkbox flex items-center", i, t),
|
|
904
906
|
...u,
|
|
905
907
|
children: [
|
|
906
908
|
/* @__PURE__ */ o(
|
|
@@ -911,7 +913,7 @@ const F = {
|
|
|
911
913
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
912
914
|
}),
|
|
913
915
|
id: n,
|
|
914
|
-
name:
|
|
916
|
+
name: r,
|
|
915
917
|
type: "checkbox",
|
|
916
918
|
value: c,
|
|
917
919
|
...s
|
|
@@ -954,13 +956,13 @@ const F = {
|
|
|
954
956
|
className: a = "",
|
|
955
957
|
contentClass: n = "",
|
|
956
958
|
dark: l = !1,
|
|
957
|
-
footer:
|
|
959
|
+
footer: r,
|
|
958
960
|
fullMobile: s = !0,
|
|
959
|
-
headerClass:
|
|
961
|
+
headerClass: i = "",
|
|
960
962
|
hideClose: c = !1,
|
|
961
963
|
iconSize: h = "medium",
|
|
962
964
|
preventPageScroll: u = !0,
|
|
963
|
-
stickyHeader:
|
|
965
|
+
stickyHeader: f = !1,
|
|
964
966
|
title: M = "",
|
|
965
967
|
titleClass: A = ""
|
|
966
968
|
}) => /* @__PURE__ */ g(z, { children: [
|
|
@@ -986,11 +988,11 @@ const F = {
|
|
|
986
988
|
className: m(
|
|
987
989
|
"dialog-header flex items-center p-4",
|
|
988
990
|
{
|
|
989
|
-
"sticky top-0 bg-white z-10":
|
|
991
|
+
"sticky top-0 bg-white z-10": f,
|
|
990
992
|
"!pb-0 border-0 justify-end": !M,
|
|
991
993
|
"justify-between border-b": M
|
|
992
994
|
},
|
|
993
|
-
|
|
995
|
+
i
|
|
994
996
|
),
|
|
995
997
|
children: [
|
|
996
998
|
M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: M }),
|
|
@@ -1023,7 +1025,7 @@ const F = {
|
|
|
1023
1025
|
children: t
|
|
1024
1026
|
}
|
|
1025
1027
|
),
|
|
1026
|
-
|
|
1028
|
+
r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
|
|
1027
1029
|
] })
|
|
1028
1030
|
}
|
|
1029
1031
|
)
|
|
@@ -1034,16 +1036,16 @@ const F = {
|
|
|
1034
1036
|
className: a = "",
|
|
1035
1037
|
contentClass: n = "",
|
|
1036
1038
|
onClose: l,
|
|
1037
|
-
disableOutsideClick:
|
|
1039
|
+
disableOutsideClick: r = !1,
|
|
1038
1040
|
footer: s,
|
|
1039
|
-
fullMobile:
|
|
1041
|
+
fullMobile: i = !0,
|
|
1040
1042
|
headerClass: c = "",
|
|
1041
1043
|
hideClose: h = !1,
|
|
1042
1044
|
iconSize: u = "medium",
|
|
1043
|
-
isOpen:
|
|
1045
|
+
isOpen: f = !1,
|
|
1044
1046
|
setDialogOpen: M,
|
|
1045
1047
|
stickyHeader: A = !1,
|
|
1046
|
-
title:
|
|
1048
|
+
title: H = "",
|
|
1047
1049
|
titleClass: p = ""
|
|
1048
1050
|
}) => {
|
|
1049
1051
|
const V = I(null), w = async () => {
|
|
@@ -1058,8 +1060,8 @@ const F = {
|
|
|
1058
1060
|
);
|
|
1059
1061
|
return k(() => {
|
|
1060
1062
|
const x = V.current;
|
|
1061
|
-
x && (
|
|
1062
|
-
}, [
|
|
1063
|
+
x && (f ? x.showModal() : typeof x.close == "function" && x.close());
|
|
1064
|
+
}, [f]), /* @__PURE__ */ g(z, { children: [
|
|
1063
1065
|
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
|
|
1064
1066
|
/* @__PURE__ */ g(
|
|
1065
1067
|
"dialog",
|
|
@@ -1069,13 +1071,13 @@ const F = {
|
|
|
1069
1071
|
className: m(
|
|
1070
1072
|
"dialog",
|
|
1071
1073
|
{
|
|
1072
|
-
hidden: !
|
|
1073
|
-
"xs-max:h-full xs-max:max-h-full":
|
|
1074
|
+
hidden: !f,
|
|
1075
|
+
"xs-max:h-full xs-max:max-h-full": i
|
|
1074
1076
|
},
|
|
1075
1077
|
a
|
|
1076
1078
|
),
|
|
1077
1079
|
onKeyDown: v,
|
|
1078
|
-
onClick: (x) =>
|
|
1080
|
+
onClick: (x) => r ? null : N(x),
|
|
1079
1081
|
children: [
|
|
1080
1082
|
/* @__PURE__ */ g(
|
|
1081
1083
|
"header",
|
|
@@ -1086,7 +1088,7 @@ const F = {
|
|
|
1086
1088
|
c
|
|
1087
1089
|
),
|
|
1088
1090
|
children: [
|
|
1089
|
-
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children:
|
|
1091
|
+
/* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children: H || "" }),
|
|
1090
1092
|
!h && /* @__PURE__ */ o(
|
|
1091
1093
|
"button",
|
|
1092
1094
|
{
|
|
@@ -1144,18 +1146,18 @@ const F = {
|
|
|
1144
1146
|
timeout: a = 1e4,
|
|
1145
1147
|
variation: n = "primary"
|
|
1146
1148
|
}) => {
|
|
1147
|
-
function l({ cb:
|
|
1149
|
+
function l({ cb: r }) {
|
|
1148
1150
|
const s = document.querySelector(".loading-bar__inner");
|
|
1149
1151
|
if (!s) return;
|
|
1150
|
-
let
|
|
1151
|
-
function u(
|
|
1152
|
-
|
|
1153
|
-
const M =
|
|
1154
|
-
if (c !==
|
|
1152
|
+
let i, c, h = !1;
|
|
1153
|
+
function u(f) {
|
|
1154
|
+
i === void 0 && (i = f);
|
|
1155
|
+
const M = f - i;
|
|
1156
|
+
if (c !== f) {
|
|
1155
1157
|
const A = M / a * 101;
|
|
1156
|
-
s.style.width = `${A}%`, A >= 101 && (
|
|
1158
|
+
s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
|
|
1157
1159
|
}
|
|
1158
|
-
M < a && (c =
|
|
1160
|
+
M < a && (c = f, h || window.requestAnimationFrame(u));
|
|
1159
1161
|
}
|
|
1160
1162
|
window.requestAnimationFrame(u);
|
|
1161
1163
|
}
|
|
@@ -1196,9 +1198,9 @@ const F = {
|
|
|
1196
1198
|
options: a = {},
|
|
1197
1199
|
children: n,
|
|
1198
1200
|
className: l = "",
|
|
1199
|
-
containerClass:
|
|
1201
|
+
containerClass: r = "",
|
|
1200
1202
|
disabled: s = !1,
|
|
1201
|
-
id:
|
|
1203
|
+
id: i = "",
|
|
1202
1204
|
trigger: c = "click"
|
|
1203
1205
|
}) => /* @__PURE__ */ g(z, { children: [
|
|
1204
1206
|
/* @__PURE__ */ o(
|
|
@@ -1210,7 +1212,7 @@ const F = {
|
|
|
1210
1212
|
{
|
|
1211
1213
|
className: m(
|
|
1212
1214
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1213
|
-
|
|
1215
|
+
r
|
|
1214
1216
|
),
|
|
1215
1217
|
children: [
|
|
1216
1218
|
n,
|
|
@@ -1247,13 +1249,13 @@ const F = {
|
|
|
1247
1249
|
className: a,
|
|
1248
1250
|
completed: n = 0,
|
|
1249
1251
|
maxCompleted: l = 100,
|
|
1250
|
-
rounded:
|
|
1252
|
+
rounded: r = !0,
|
|
1251
1253
|
showLabel: s = !1
|
|
1252
1254
|
}) => {
|
|
1253
1255
|
const c = ((h, u) => {
|
|
1254
1256
|
if (h) {
|
|
1255
|
-
const
|
|
1256
|
-
return
|
|
1257
|
+
const f = Number(u) / h;
|
|
1258
|
+
return f > 1 ? 100 : f * 100;
|
|
1257
1259
|
}
|
|
1258
1260
|
return n;
|
|
1259
1261
|
})(l, n);
|
|
@@ -1262,7 +1264,7 @@ const F = {
|
|
|
1262
1264
|
{
|
|
1263
1265
|
className: m(
|
|
1264
1266
|
"w-full bg-gray-200",
|
|
1265
|
-
{ "rounded-full":
|
|
1267
|
+
{ "rounded-full": r },
|
|
1266
1268
|
a
|
|
1267
1269
|
),
|
|
1268
1270
|
role: "progressbar",
|
|
@@ -1290,9 +1292,9 @@ const F = {
|
|
|
1290
1292
|
id: a = "",
|
|
1291
1293
|
label: n = "",
|
|
1292
1294
|
name: l = "",
|
|
1293
|
-
props:
|
|
1295
|
+
props: r = {},
|
|
1294
1296
|
variation: s = "primary",
|
|
1295
|
-
value:
|
|
1297
|
+
value: i = ""
|
|
1296
1298
|
}) => {
|
|
1297
1299
|
const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
|
|
1298
1300
|
return /* @__PURE__ */ g(
|
|
@@ -1314,8 +1316,8 @@ const F = {
|
|
|
1314
1316
|
id: a,
|
|
1315
1317
|
name: l,
|
|
1316
1318
|
type: "radio",
|
|
1317
|
-
value:
|
|
1318
|
-
...
|
|
1319
|
+
value: i,
|
|
1320
|
+
...r
|
|
1319
1321
|
}
|
|
1320
1322
|
),
|
|
1321
1323
|
e
|
|
@@ -1329,20 +1331,20 @@ const F = {
|
|
|
1329
1331
|
errorMessage: a = "",
|
|
1330
1332
|
id: n = "",
|
|
1331
1333
|
label: l = "",
|
|
1332
|
-
name:
|
|
1334
|
+
name: r = "",
|
|
1333
1335
|
options: s = [],
|
|
1334
|
-
placeholder:
|
|
1336
|
+
placeholder: i = "",
|
|
1335
1337
|
props: c = {},
|
|
1336
1338
|
selectClass: h = "",
|
|
1337
1339
|
styles: u = null,
|
|
1338
|
-
variation:
|
|
1340
|
+
variation: f = "primary",
|
|
1339
1341
|
value: M
|
|
1340
1342
|
}) => {
|
|
1341
|
-
const A =
|
|
1343
|
+
const A = i ? { defaultValue: "" } : {};
|
|
1342
1344
|
return /* @__PURE__ */ g(
|
|
1343
1345
|
"label",
|
|
1344
1346
|
{
|
|
1345
|
-
className: m("relative select", e,
|
|
1347
|
+
className: m("relative select", e, f),
|
|
1346
1348
|
style: u ? { ...u } : null,
|
|
1347
1349
|
children: [
|
|
1348
1350
|
l,
|
|
@@ -1355,19 +1357,19 @@ const F = {
|
|
|
1355
1357
|
h
|
|
1356
1358
|
),
|
|
1357
1359
|
id: n,
|
|
1358
|
-
name:
|
|
1360
|
+
name: r,
|
|
1359
1361
|
value: M,
|
|
1360
1362
|
...A,
|
|
1361
1363
|
...c,
|
|
1362
1364
|
children: [
|
|
1363
|
-
|
|
1364
|
-
s.map((
|
|
1365
|
+
i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
|
|
1366
|
+
s.map((H, p) => /* @__PURE__ */ o(
|
|
1365
1367
|
"option",
|
|
1366
1368
|
{
|
|
1367
|
-
value: (
|
|
1368
|
-
children: (
|
|
1369
|
+
value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
|
|
1370
|
+
children: (H == null ? void 0 : H.name) || H
|
|
1369
1371
|
},
|
|
1370
|
-
(
|
|
1372
|
+
(H == null ? void 0 : H.name) || H
|
|
1371
1373
|
))
|
|
1372
1374
|
]
|
|
1373
1375
|
}
|
|
@@ -1405,13 +1407,13 @@ const F = {
|
|
|
1405
1407
|
children: /* @__PURE__ */ o(b, { name: "chevronLeft" })
|
|
1406
1408
|
}
|
|
1407
1409
|
),
|
|
1408
|
-
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l,
|
|
1410
|
+
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
|
|
1409
1411
|
"div",
|
|
1410
1412
|
{
|
|
1411
1413
|
className: `slider-card bg-gray-200 animate-pulse ${d}`,
|
|
1412
1414
|
children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
|
|
1413
1415
|
},
|
|
1414
|
-
|
|
1416
|
+
r
|
|
1415
1417
|
)) }),
|
|
1416
1418
|
/* @__PURE__ */ o(
|
|
1417
1419
|
"button",
|
|
@@ -1447,9 +1449,9 @@ const F = {
|
|
|
1447
1449
|
errorMessage: a = "",
|
|
1448
1450
|
id: n = "",
|
|
1449
1451
|
inputClass: l = "",
|
|
1450
|
-
name:
|
|
1452
|
+
name: r = "",
|
|
1451
1453
|
placeholder: s = "",
|
|
1452
|
-
props:
|
|
1454
|
+
props: i = {},
|
|
1453
1455
|
rows: c = 4,
|
|
1454
1456
|
variation: h = "primary"
|
|
1455
1457
|
}) => /* @__PURE__ */ g("div", { className: m("relative textarea", h, d), children: [
|
|
@@ -1458,7 +1460,7 @@ const F = {
|
|
|
1458
1460
|
{
|
|
1459
1461
|
placeholder: s,
|
|
1460
1462
|
id: n,
|
|
1461
|
-
name:
|
|
1463
|
+
name: r,
|
|
1462
1464
|
rows: c,
|
|
1463
1465
|
className: m(
|
|
1464
1466
|
"form-textarea min-h-[40px] pl-4",
|
|
@@ -1466,7 +1468,7 @@ const F = {
|
|
|
1466
1468
|
t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
1467
1469
|
l
|
|
1468
1470
|
),
|
|
1469
|
-
...
|
|
1471
|
+
...i
|
|
1470
1472
|
}
|
|
1471
1473
|
),
|
|
1472
1474
|
e && /* @__PURE__ */ o(
|
|
@@ -1492,13 +1494,13 @@ const F = {
|
|
|
1492
1494
|
errorMessage: a = "",
|
|
1493
1495
|
iconLeft: n = "",
|
|
1494
1496
|
id: l = "",
|
|
1495
|
-
inputClass:
|
|
1497
|
+
inputClass: r = "",
|
|
1496
1498
|
name: s = "",
|
|
1497
|
-
placeholder:
|
|
1499
|
+
placeholder: i = "",
|
|
1498
1500
|
props: c = {},
|
|
1499
1501
|
styles: h = null,
|
|
1500
1502
|
type: u = "text",
|
|
1501
|
-
value:
|
|
1503
|
+
value: f,
|
|
1502
1504
|
variation: M = "primary"
|
|
1503
1505
|
}) => /* @__PURE__ */ g(
|
|
1504
1506
|
"div",
|
|
@@ -1518,11 +1520,11 @@ const F = {
|
|
|
1518
1520
|
/* @__PURE__ */ o(
|
|
1519
1521
|
"input",
|
|
1520
1522
|
{
|
|
1521
|
-
placeholder:
|
|
1523
|
+
placeholder: i,
|
|
1522
1524
|
id: l,
|
|
1523
1525
|
name: s,
|
|
1524
1526
|
type: u,
|
|
1525
|
-
value:
|
|
1527
|
+
value: f,
|
|
1526
1528
|
autoComplete: "off",
|
|
1527
1529
|
className: m(
|
|
1528
1530
|
"form-input",
|
|
@@ -1532,7 +1534,7 @@ const F = {
|
|
|
1532
1534
|
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
|
|
1533
1535
|
},
|
|
1534
1536
|
c.inputClass ?? "",
|
|
1535
|
-
|
|
1537
|
+
r
|
|
1536
1538
|
),
|
|
1537
1539
|
...c
|
|
1538
1540
|
}
|
|
@@ -1565,12 +1567,12 @@ const F = {
|
|
|
1565
1567
|
children: a || d
|
|
1566
1568
|
}
|
|
1567
1569
|
), j1 = y(m1);
|
|
1568
|
-
class
|
|
1570
|
+
class C {
|
|
1569
1571
|
static calcCrow(e, t, a, n) {
|
|
1570
|
-
const
|
|
1571
|
-
e =
|
|
1572
|
-
const
|
|
1573
|
-
return 6371 * (2 * Math.atan2(Math.sqrt(
|
|
1572
|
+
const r = C.toRad(a - e), s = C.toRad(n - t);
|
|
1573
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
1574
|
+
const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
|
|
1575
|
+
return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
|
|
1574
1576
|
}
|
|
1575
1577
|
static cleanupAddress(e) {
|
|
1576
1578
|
return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
|
|
@@ -1583,9 +1585,9 @@ class H {
|
|
|
1583
1585
|
return;
|
|
1584
1586
|
window.dataLayer = window.dataLayer || [];
|
|
1585
1587
|
const t = document.querySelectorAll("[data-div-track]");
|
|
1586
|
-
typeof
|
|
1588
|
+
typeof C == "function" && t.forEach((a) => {
|
|
1587
1589
|
a.addEventListener("click", () => {
|
|
1588
|
-
|
|
1590
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
1589
1591
|
});
|
|
1590
1592
|
});
|
|
1591
1593
|
}
|
|
@@ -1599,13 +1601,13 @@ class H {
|
|
|
1599
1601
|
static async createData(e, t = null, a = !0) {
|
|
1600
1602
|
if (options.isBot || !t)
|
|
1601
1603
|
return null;
|
|
1602
|
-
const { tolken: n = null, ip: l = null } = await
|
|
1604
|
+
const { tolken: n = null, ip: l = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
|
|
1603
1605
|
try {
|
|
1604
1606
|
const c = await fetch(s, {
|
|
1605
1607
|
method: "POST",
|
|
1606
|
-
body:
|
|
1608
|
+
body: i === "null" ? null : i,
|
|
1607
1609
|
headers: {
|
|
1608
|
-
website:
|
|
1610
|
+
website: C.getWebsiteHeaderName()
|
|
1609
1611
|
}
|
|
1610
1612
|
}), h = c.headers.get("content-type");
|
|
1611
1613
|
if (h && h.indexOf("application/json") !== -1)
|
|
@@ -1622,7 +1624,7 @@ class H {
|
|
|
1622
1624
|
}
|
|
1623
1625
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
1624
1626
|
try {
|
|
1625
|
-
return await
|
|
1627
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
1626
1628
|
} catch (t) {
|
|
1627
1629
|
console.error("deleteSearchValue", t.message);
|
|
1628
1630
|
}
|
|
@@ -1673,17 +1675,17 @@ class H {
|
|
|
1673
1675
|
static async fetchData(e, t = !1, a = !0) {
|
|
1674
1676
|
if (options.isBot)
|
|
1675
1677
|
return null;
|
|
1676
|
-
const { tolken: n = null, ip: l = null } = await
|
|
1678
|
+
const { tolken: n = null, ip: l = null } = await C.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
|
|
1677
1679
|
try {
|
|
1678
|
-
const
|
|
1680
|
+
const i = await fetch(s, { method: "GET" });
|
|
1679
1681
|
if (t === !0) {
|
|
1680
|
-
const h = await
|
|
1682
|
+
const h = await i.text();
|
|
1681
1683
|
return h ? h.replace("__next", "") : null;
|
|
1682
1684
|
}
|
|
1683
|
-
const c =
|
|
1684
|
-
return c && c.indexOf("application/json") !== -1 ?
|
|
1685
|
-
} catch (
|
|
1686
|
-
console.error("fetchData",
|
|
1685
|
+
const c = i.headers.get("content-type");
|
|
1686
|
+
return c && c.indexOf("application/json") !== -1 ? i.json() : null;
|
|
1687
|
+
} catch (i) {
|
|
1688
|
+
console.error("fetchData", i, e);
|
|
1687
1689
|
}
|
|
1688
1690
|
return null;
|
|
1689
1691
|
}
|
|
@@ -1693,8 +1695,8 @@ class H {
|
|
|
1693
1695
|
}
|
|
1694
1696
|
static formatDate(e = null) {
|
|
1695
1697
|
return e ? (e = new Date(e), [
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
1699
|
+
C.padTo2Digits(e.getDate()),
|
|
1698
1700
|
e.getFullYear()
|
|
1699
1701
|
].join("-")) : null;
|
|
1700
1702
|
}
|
|
@@ -1711,12 +1713,12 @@ class H {
|
|
|
1711
1713
|
swLng: 0
|
|
1712
1714
|
};
|
|
1713
1715
|
const n = e.getBounds();
|
|
1714
|
-
let l = n.getSouth(),
|
|
1715
|
-
return a && (l = l - a,
|
|
1716
|
+
let l = n.getSouth(), r = n.getEast(), s = n.getNorth(), i = n.getWest();
|
|
1717
|
+
return a && (l = l - a, r = r + a, s = s + a, i = i - a), t && (l = l.toFixed(t), r = r.toFixed(t), s = s.toFixed(t), i = i.toFixed(t)), {
|
|
1716
1718
|
swLat: l,
|
|
1717
|
-
neLng:
|
|
1719
|
+
neLng: r,
|
|
1718
1720
|
neLat: s,
|
|
1719
|
-
swLng:
|
|
1721
|
+
swLng: i
|
|
1720
1722
|
};
|
|
1721
1723
|
}
|
|
1722
1724
|
static getFirstN(e, t = 5) {
|
|
@@ -1748,20 +1750,20 @@ class H {
|
|
|
1748
1750
|
userAgent: t = null,
|
|
1749
1751
|
userAgentData: a = null,
|
|
1750
1752
|
platform: n = null
|
|
1751
|
-
} = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n,
|
|
1753
|
+
} = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
|
|
1752
1754
|
tolken: null,
|
|
1753
1755
|
ip: null,
|
|
1754
1756
|
userAgent: t,
|
|
1755
1757
|
platform: l
|
|
1756
1758
|
};
|
|
1757
1759
|
if (options && options.isBot || typeof window.localStorage > "u")
|
|
1758
|
-
return
|
|
1760
|
+
return r;
|
|
1759
1761
|
const s = localStorage.getItem("headerTolken");
|
|
1760
1762
|
if (s) {
|
|
1761
|
-
const
|
|
1762
|
-
return
|
|
1763
|
-
tolken:
|
|
1764
|
-
ip:
|
|
1763
|
+
const i = JSON.parse(s), c = (/* @__PURE__ */ new Date()).getTime();
|
|
1764
|
+
return i.expire - c < 0 && localStorage.removeItem("headerTolken"), {
|
|
1765
|
+
tolken: i.tolken,
|
|
1766
|
+
ip: i.ip,
|
|
1765
1767
|
userAgent: t,
|
|
1766
1768
|
platform: l
|
|
1767
1769
|
};
|
|
@@ -1776,10 +1778,10 @@ class H {
|
|
|
1776
1778
|
expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
|
|
1777
1779
|
})
|
|
1778
1780
|
), { tolken: h, ip: u, userAgent: t, platform: l };
|
|
1779
|
-
} catch (
|
|
1780
|
-
console.error("getHeaders",
|
|
1781
|
+
} catch (i) {
|
|
1782
|
+
console.error("getHeaders", i);
|
|
1781
1783
|
}
|
|
1782
|
-
return
|
|
1784
|
+
return r;
|
|
1783
1785
|
}
|
|
1784
1786
|
static getLayerTitle(e) {
|
|
1785
1787
|
return {
|
|
@@ -1788,19 +1790,19 @@ class H {
|
|
|
1788
1790
|
}[e];
|
|
1789
1791
|
}
|
|
1790
1792
|
static async getLocationData(e) {
|
|
1791
|
-
const { swLat: t, neLng: a, neLat: n, swLng: l } =
|
|
1792
|
-
return await
|
|
1793
|
+
const { swLat: t, neLng: a, neLat: n, swLng: l } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
|
|
1794
|
+
return await C.fetchData("/api/client?query=" + r);
|
|
1793
1795
|
}
|
|
1794
1796
|
static getReportUrl(e, t = null) {
|
|
1795
|
-
var
|
|
1796
|
-
const a = ((
|
|
1797
|
+
var i, c, h;
|
|
1798
|
+
const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
|
|
1797
1799
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
1798
|
-
const s = [
|
|
1799
|
-
return "/" + [a, n, l].filter((u) => u).map((u) =>
|
|
1800
|
+
const s = [r, "-piq", t].filter((u) => u).join("");
|
|
1801
|
+
return "/" + [a, n, l].filter((u) => u).map((u) => C.toSlug(u)).join("/") + "/" + s;
|
|
1800
1802
|
}
|
|
1801
1803
|
static async getSearchValue(e = "recsSearchValue") {
|
|
1802
1804
|
try {
|
|
1803
|
-
return await
|
|
1805
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
1804
1806
|
} catch (t) {
|
|
1805
1807
|
console.error("getSearchValue", t.message);
|
|
1806
1808
|
}
|
|
@@ -1925,7 +1927,7 @@ class H {
|
|
|
1925
1927
|
return e;
|
|
1926
1928
|
}
|
|
1927
1929
|
try {
|
|
1928
|
-
return await
|
|
1930
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
1929
1931
|
} catch (e) {
|
|
1930
1932
|
console.error("getUser", e.message);
|
|
1931
1933
|
}
|
|
@@ -1941,7 +1943,7 @@ class H {
|
|
|
1941
1943
|
uuid: t
|
|
1942
1944
|
}
|
|
1943
1945
|
});
|
|
1944
|
-
return await
|
|
1946
|
+
return await C.makeSearchFetchCall(
|
|
1945
1947
|
`/api/client?query=user-get-history&filter=${a}`
|
|
1946
1948
|
);
|
|
1947
1949
|
}
|
|
@@ -1959,18 +1961,18 @@ class H {
|
|
|
1959
1961
|
static gridTest(e, t, a = 1500) {
|
|
1960
1962
|
const n = this;
|
|
1961
1963
|
L.GridLayer.GridDebug = L.GridLayer.extend({
|
|
1962
|
-
createTile: function(l,
|
|
1964
|
+
createTile: function(l, r) {
|
|
1963
1965
|
const s = document.createElement("div");
|
|
1964
1966
|
return setTimeout(() => {
|
|
1965
|
-
|
|
1966
|
-
const { se:
|
|
1967
|
+
r(null, s);
|
|
1968
|
+
const { se: i, nw: c } = n.getGridBounds({
|
|
1967
1969
|
map: e,
|
|
1968
1970
|
tileSize: this.getTileSize(),
|
|
1969
1971
|
coords: l
|
|
1970
1972
|
});
|
|
1971
1973
|
t({
|
|
1972
|
-
swLat:
|
|
1973
|
-
neLng:
|
|
1974
|
+
swLat: i.lat,
|
|
1975
|
+
neLng: i.lng,
|
|
1974
1976
|
neLat: c.lat,
|
|
1975
1977
|
swLng: c.lng,
|
|
1976
1978
|
coords: l,
|
|
@@ -1999,7 +2001,7 @@ class H {
|
|
|
1999
2001
|
onClose: n = null,
|
|
2000
2002
|
disableOutsideClick: l = !1
|
|
2001
2003
|
}) {
|
|
2002
|
-
const
|
|
2004
|
+
const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = ["closing", "closed", "opening", "opened", "removed"].reduce(
|
|
2003
2005
|
(p, V) => ({
|
|
2004
2006
|
...p,
|
|
2005
2007
|
[V]: new Event(V)
|
|
@@ -2010,7 +2012,7 @@ class H {
|
|
|
2010
2012
|
if (w.attributeName === "open") {
|
|
2011
2013
|
const v = w.target;
|
|
2012
2014
|
if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
|
|
2013
|
-
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await
|
|
2015
|
+
v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await H(v), v == null || v.dispatchEvent(c.opened);
|
|
2014
2016
|
}
|
|
2015
2017
|
});
|
|
2016
2018
|
}), u = new MutationObserver((p, V) => {
|
|
@@ -2027,39 +2029,39 @@ class H {
|
|
|
2027
2029
|
subtree: !1,
|
|
2028
2030
|
childList: !0
|
|
2029
2031
|
}));
|
|
2030
|
-
const
|
|
2032
|
+
const f = () => {
|
|
2031
2033
|
s == null || s.showModal();
|
|
2032
2034
|
}, M = async ({ target: p }) => {
|
|
2033
|
-
p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await
|
|
2035
|
+
p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await H(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
|
|
2034
2036
|
}, A = async ({ target: p }) => {
|
|
2035
2037
|
(p == null ? void 0 : p.nodeName) === "DIALOG" && (s == null || s.close("outside"));
|
|
2036
|
-
},
|
|
2038
|
+
}, H = (p) => Promise.allSettled(
|
|
2037
2039
|
p == null ? void 0 : p.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
2038
2040
|
);
|
|
2039
|
-
return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M),
|
|
2041
|
+
return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M), r == null || r.forEach((p) => {
|
|
2040
2042
|
p.addEventListener("click", (V) => {
|
|
2041
|
-
|
|
2043
|
+
f(), a && a(V, s);
|
|
2042
2044
|
});
|
|
2043
|
-
}),
|
|
2045
|
+
}), i == null || i.forEach((p) => {
|
|
2044
2046
|
p.addEventListener("click", async (V) => {
|
|
2045
2047
|
s == null || s.close("close"), n && n(V, s);
|
|
2046
2048
|
});
|
|
2047
2049
|
}), {
|
|
2048
|
-
activators:
|
|
2050
|
+
activators: r,
|
|
2049
2051
|
ref: s,
|
|
2050
|
-
handleOpen:
|
|
2052
|
+
handleOpen: f,
|
|
2051
2053
|
handleClose: M
|
|
2052
2054
|
};
|
|
2053
2055
|
}
|
|
2054
2056
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2055
|
-
return
|
|
2057
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2056
2058
|
}
|
|
2057
2059
|
static initObserver(e, t, a = null) {
|
|
2058
2060
|
if (!e)
|
|
2059
2061
|
return;
|
|
2060
2062
|
const n = (a == null ? void 0 : a.useBounding) ?? !1;
|
|
2061
|
-
new IntersectionObserver(async (
|
|
2062
|
-
n ? (
|
|
2063
|
+
new IntersectionObserver(async (r, s) => {
|
|
2064
|
+
n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: s, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: s, entry: r[0], entries: r });
|
|
2063
2065
|
}, a).observe(e);
|
|
2064
2066
|
}
|
|
2065
2067
|
static injectLink({ href: e, id: t }) {
|
|
@@ -2067,11 +2069,11 @@ class H {
|
|
|
2067
2069
|
a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
|
|
2068
2070
|
}
|
|
2069
2071
|
static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
|
|
2070
|
-
return new Promise(function(l,
|
|
2072
|
+
return new Promise(function(l, r) {
|
|
2071
2073
|
let s = document.getElementById(t);
|
|
2072
2074
|
if (t && s && s.dataset.loaded === "true")
|
|
2073
2075
|
return l({ alreadyLoaded: !0, id: t });
|
|
2074
|
-
s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () =>
|
|
2076
|
+
s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () => r(!1));
|
|
2075
2077
|
});
|
|
2076
2078
|
}
|
|
2077
2079
|
static isMobile({ selector: e = null, width: t = 640 } = {}) {
|
|
@@ -2104,14 +2106,14 @@ class H {
|
|
|
2104
2106
|
return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
|
|
2105
2107
|
}
|
|
2106
2108
|
static async logRequest(e = null, t = null, a = null, n = null, l = null) {
|
|
2107
|
-
const
|
|
2109
|
+
const r = {
|
|
2108
2110
|
name: e,
|
|
2109
2111
|
uuid: t,
|
|
2110
2112
|
ip: a,
|
|
2111
2113
|
url: n,
|
|
2112
2114
|
data: l
|
|
2113
2115
|
};
|
|
2114
|
-
return await
|
|
2116
|
+
return await C.createData("/api/client?query=log/save&method=POST", r), null;
|
|
2115
2117
|
}
|
|
2116
2118
|
static loadAds() {
|
|
2117
2119
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2128,7 +2130,7 @@ class H {
|
|
|
2128
2130
|
if (e) {
|
|
2129
2131
|
const n = "/scripts/" + e + ".js?v=100.0.5";
|
|
2130
2132
|
try {
|
|
2131
|
-
return await
|
|
2133
|
+
return await C.injectScript({
|
|
2132
2134
|
src: n,
|
|
2133
2135
|
id: t || e,
|
|
2134
2136
|
async: !1,
|
|
@@ -2144,11 +2146,11 @@ class H {
|
|
|
2144
2146
|
if (window.options.googleMapsLoaded === !0)
|
|
2145
2147
|
return;
|
|
2146
2148
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2147
|
-
await
|
|
2149
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2148
2150
|
}
|
|
2149
2151
|
static async loadLeafletApi() {
|
|
2150
2152
|
const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", l = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
|
|
2151
|
-
await
|
|
2153
|
+
await C.injectLink({ href: a, id: "leafletCss" }), await C.injectLink({ href: l, id: "gestureCss" }), await C.injectScript({ src: t, id: "leafletJs", async: !1 }), await C.injectScript({
|
|
2152
2154
|
src: n,
|
|
2153
2155
|
id: "gestureJs",
|
|
2154
2156
|
async: !1
|
|
@@ -2163,7 +2165,7 @@ class H {
|
|
|
2163
2165
|
}
|
|
2164
2166
|
static async loadSwiper() {
|
|
2165
2167
|
const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
|
|
2166
|
-
await
|
|
2168
|
+
await C.injectLink({ href: a, id: "swiperCss" }), await C.injectScript({ src: t, id: "swiperJs", async: !1 });
|
|
2167
2169
|
}
|
|
2168
2170
|
static async makeSearchFetchCall(e) {
|
|
2169
2171
|
try {
|
|
@@ -2196,17 +2198,17 @@ class H {
|
|
|
2196
2198
|
first: a = null,
|
|
2197
2199
|
middle: n = null,
|
|
2198
2200
|
last: l = null,
|
|
2199
|
-
min:
|
|
2201
|
+
min: r = null,
|
|
2200
2202
|
max: s = null,
|
|
2201
|
-
city:
|
|
2203
|
+
city: i = null,
|
|
2202
2204
|
state: c = null,
|
|
2203
2205
|
vin: h = null,
|
|
2204
2206
|
license: u = null,
|
|
2205
|
-
token:
|
|
2207
|
+
token: f = null,
|
|
2206
2208
|
phone: M = null
|
|
2207
|
-
} = e || {}, A = t && t !== "",
|
|
2209
|
+
} = e || {}, A = t && t !== "", H = r && r !== "" && r !== "18", p = s && s !== "" && r !== "99";
|
|
2208
2210
|
let V = [];
|
|
2209
|
-
return t && t !== "" && V.push("name=" + t), A || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)),
|
|
2211
|
+
return t && t !== "" && V.push("name=" + t), A || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)), H && p ? parseInt(r) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + s)) : (H && V.push("min=" + r), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), i && i !== "" && V.push("city=" + i), u && u !== "" && V.push("license=" + u), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
|
|
2210
2212
|
}
|
|
2211
2213
|
static padTo2Digits(e) {
|
|
2212
2214
|
return e.toString().padStart(2, "0");
|
|
@@ -2220,20 +2222,20 @@ class H {
|
|
|
2220
2222
|
addressesOnly: a = !1,
|
|
2221
2223
|
useCitySearch: n = !1,
|
|
2222
2224
|
useCityStateSearch: l = !1,
|
|
2223
|
-
useSearch:
|
|
2225
|
+
useSearch: r = !1,
|
|
2224
2226
|
useLocation: s = !0,
|
|
2225
|
-
state:
|
|
2226
|
-
} = t ?? {}, { tolken: c = null, ip: h = null } = await
|
|
2227
|
+
state: i = ""
|
|
2228
|
+
} = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
|
|
2227
2229
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2228
2230
|
"addressesOnly=" + a,
|
|
2229
|
-
"useSearch=" +
|
|
2231
|
+
"useSearch=" + r,
|
|
2230
2232
|
"useCitySearch=" + n,
|
|
2231
2233
|
"useCityStateSearch=" + l,
|
|
2232
2234
|
"useLocation=" + s
|
|
2233
2235
|
];
|
|
2234
|
-
|
|
2235
|
-
const M =
|
|
2236
|
-
return await
|
|
2236
|
+
i && i !== "" && !l && f.push("state=" + i), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
|
|
2237
|
+
const M = f.join("&"), H = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
2238
|
+
return await C.makeSearchFetchCall(H);
|
|
2237
2239
|
}
|
|
2238
2240
|
static removeElements(e) {
|
|
2239
2241
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -2252,7 +2254,7 @@ class H {
|
|
|
2252
2254
|
});
|
|
2253
2255
|
}
|
|
2254
2256
|
static searchInStates(e) {
|
|
2255
|
-
const t =
|
|
2257
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
2256
2258
|
let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
|
|
2257
2259
|
return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
|
|
2258
2260
|
}
|
|
@@ -2260,7 +2262,7 @@ class H {
|
|
|
2260
2262
|
typeof woopra == "object" && woopra.track(e, t);
|
|
2261
2263
|
}
|
|
2262
2264
|
static setBoundsEntries(e, t = "bounds") {
|
|
2263
|
-
const a =
|
|
2265
|
+
const a = C.getBoundsEntries(t);
|
|
2264
2266
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
2265
2267
|
}
|
|
2266
2268
|
static async setCityState(e = null) {
|
|
@@ -2269,7 +2271,7 @@ class H {
|
|
|
2269
2271
|
return e;
|
|
2270
2272
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2271
2273
|
let [a = null, n = null] = t.split(",").map((l) => l.trim());
|
|
2272
|
-
if (
|
|
2274
|
+
if (C.getStates(), a && !n) {
|
|
2273
2275
|
const l = this.searchInStates(a);
|
|
2274
2276
|
l && (a = null, n = l.short);
|
|
2275
2277
|
}
|
|
@@ -2278,16 +2280,16 @@ class H {
|
|
|
2278
2280
|
l && (n = l.short);
|
|
2279
2281
|
}
|
|
2280
2282
|
if (a && !n) {
|
|
2281
|
-
const l = a.split(" "),
|
|
2282
|
-
if (
|
|
2283
|
-
const s = this.searchInStates(
|
|
2283
|
+
const l = a.split(" "), r = l[l.length - 1];
|
|
2284
|
+
if (r.length) {
|
|
2285
|
+
const s = this.searchInStates(r);
|
|
2284
2286
|
s && (n = s.short, a = l.slice(0, -1).join(" "));
|
|
2285
2287
|
}
|
|
2286
2288
|
}
|
|
2287
2289
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
2288
2290
|
}
|
|
2289
2291
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
2290
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
2292
|
+
localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
|
|
2291
2293
|
}
|
|
2292
2294
|
static stickyHeader(e = ".nav") {
|
|
2293
2295
|
const t = document.querySelector(e);
|
|
@@ -2314,7 +2316,7 @@ class H {
|
|
|
2314
2316
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2315
2317
|
}
|
|
2316
2318
|
static useLayerTitle(e, t) {
|
|
2317
|
-
const a =
|
|
2319
|
+
const a = C.getLayerTitle(e);
|
|
2318
2320
|
L.tileLayer(a, {
|
|
2319
2321
|
maxNativeZoom: 19,
|
|
2320
2322
|
maxZoom: 25,
|
|
@@ -2323,7 +2325,7 @@ class H {
|
|
|
2323
2325
|
}).addTo(t);
|
|
2324
2326
|
}
|
|
2325
2327
|
static ucWords(e) {
|
|
2326
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
2328
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
2327
2329
|
}
|
|
2328
2330
|
}
|
|
2329
2331
|
function V1(d, e = []) {
|
|
@@ -2333,7 +2335,7 @@ function V1(d, e = []) {
|
|
|
2333
2335
|
},
|
|
2334
2336
|
set(t, a, n) {
|
|
2335
2337
|
const l = { ...t };
|
|
2336
|
-
return t[a] = n, e.length > 0 && e.forEach((
|
|
2338
|
+
return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
|
|
2337
2339
|
}
|
|
2338
2340
|
});
|
|
2339
2341
|
}
|
|
@@ -2379,16 +2381,16 @@ class P1 {
|
|
|
2379
2381
|
)), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
|
|
2380
2382
|
}
|
|
2381
2383
|
handleIntersect(e, t, a) {
|
|
2382
|
-
const n = e.filter((
|
|
2383
|
-
(
|
|
2384
|
+
const n = e.filter((i) => i.isIntersecting), l = n.length === a.slides.length, r = n.every(
|
|
2385
|
+
(i) => i.isIntersecting === !0
|
|
2384
2386
|
);
|
|
2385
|
-
l &&
|
|
2386
|
-
const c = [...a.slides].indexOf(
|
|
2387
|
-
|
|
2387
|
+
l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
|
|
2388
|
+
const c = [...a.slides].indexOf(i.target);
|
|
2389
|
+
i.target === a.slides[0] && (a.showPrevBtn = i.isIntersecting), i.target === a.slides[a.slides.length - 1] && (a.showNextBtn = i.isIntersecting), i.target === a.slides[2] && (a.scrollToStart = i.isIntersecting), i.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = i.isIntersecting), i.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, s(i));
|
|
2388
2390
|
}));
|
|
2389
|
-
function s(
|
|
2391
|
+
function s(i) {
|
|
2390
2392
|
var c;
|
|
2391
|
-
|
|
2393
|
+
i.target !== a.slides[a.slides.length - 1] && i.target !== a.slides[0] && i.target !== a.slides[2] && i.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(i.target));
|
|
2392
2394
|
}
|
|
2393
2395
|
}
|
|
2394
2396
|
btnListeners(e) {
|
|
@@ -2407,7 +2409,7 @@ class P1 {
|
|
|
2407
2409
|
e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
|
|
2408
2410
|
}
|
|
2409
2411
|
sliderElements({ state: e, items: t, id: a, cb: n }) {
|
|
2410
|
-
const l = '<span class="slide-first"></span>',
|
|
2412
|
+
const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
|
|
2411
2413
|
if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
|
|
2412
2414
|
return console.error(`slider-container-${a} Not Found`);
|
|
2413
2415
|
e.prevBtn = e.container.parentElement.querySelector(
|
|
@@ -2415,8 +2417,8 @@ class P1 {
|
|
|
2415
2417
|
), e.nextBtn = e.container.parentElement.querySelector(
|
|
2416
2418
|
`#btn-right-${a}`
|
|
2417
2419
|
);
|
|
2418
|
-
const s = t.map((c) => n(c)).join(""),
|
|
2419
|
-
|
|
2420
|
+
const s = t.map((c) => n(c)).join(""), i = document.createElement("div");
|
|
2421
|
+
i.innerHTML = `${l}${s}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
|
|
2420
2422
|
}
|
|
2421
2423
|
showHideBtns(e, t, a) {
|
|
2422
2424
|
if (a === "showPrevBtn" || a === "showNextBtn") {
|
|
@@ -2436,7 +2438,7 @@ export {
|
|
|
2436
2438
|
b1 as Card,
|
|
2437
2439
|
P1 as CardSlider,
|
|
2438
2440
|
w1 as Checkbox,
|
|
2439
|
-
|
|
2441
|
+
C as Common,
|
|
2440
2442
|
x1 as Container,
|
|
2441
2443
|
S1 as Dialog,
|
|
2442
2444
|
k1 as DialogOld,
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Button{@apply focus:outline-none font-semibold;}.Button
|
|
1
|
+
.Button{@apply focus:outline-none font-semibold;}.Button.Button--primary{@apply text-slate-700 bg-black-250 border-slate-700 hover:bg-black-300;}.Button.Button--secondary{@apply bg-teal-700 border-teal-700 hover:bg-teal-700 text-white focus:ring-teal-700/50;}.Button.Button--icon{@apply p-1 !important;}.Button.Button--link:not(.Button--custom-link){@apply text-slate-700 underline !important;}.Button.Button--sm{@apply px-2 py-1;}.Button.Button--md{@apply px-4 py-1;}.Button.Button--uppercase{@apply uppercase;}.Button.Button--rounded{@apply rounded-full;}.Button.Button--disabled,.Button svg{@apply pointer-events-none;}.Button:not(.Button--borderless){@apply border;}.Button:not(.Button--rounded){@apply rounded;}.Button:not(.Button--link),.Button:not(.Button--borderless){@apply focus:ring-2 focus:ring-slate-700 no-underline;}.Button:has(svg){@apply flex items-center;}.Button:has(svg).Button--sm{@apply gap-x-1;}.Button:has(svg).Button--md{@apply gap-x-2;}.loading-bar{@apply bg-gray-50 overflow-hidden relative;box-shadow:2px 0 10px inset #0003}.loading-bar .loading-bar__inner{@apply w-0 h-full;background-size:30px 30px;animation:move 2s linear infinite;box-shadow:2px 0 10px inset #0003}.loading-bar.loading-bar__primary{@apply rounded-md;}.loading-bar.loading-bar__primary .loading-bar__inner{@apply bg-[#767676];background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent)}.loading-bar.loading-bar__secondary .loading-bar__inner{@apply bg-[#909090];}.loading-bar .perc{@apply absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 text-white font-bold;}.slider{@apply relative overflow-hidden;}.slider::-webkit-scrollbar{width:0;height:0}.slider .slider-button__prev,.slider .slider-button__next{@apply absolute top-1/2 z-10 -translate-y-1/2 bg-white/90 sm-max:hidden md:block rounded-full px-1.5 py-1.5 border border-solid shadow cursor-pointer min-w-max;}.slider .slider-button__prev{@apply left-4 right-auto;}.slider .slider-button__next{@apply right-4 left-auto;}.slider .slider-container{@apply inline-flex w-full overflow-x-scroll md:overflow-x-hidden md:w-auto transition duration-200 ease-in-out sm-max:transform-none;}.slider .slider-container::-webkit-scrollbar{width:0;height:0}.slider .slider-container>.slider-card{@apply max-w-full shrink-0;}.slider .slider-card{@apply flex flex-col rounded-lg border ring-gray-200 w-64 mr-3 last-of-type:mr-0 overflow-hidden;}.slider .slider-card-action{@apply overflow-hidden relative flex flex-col flex-1 h-full w-full;}.slider .slider-card-main{@apply flex flex-col flex-grow justify-between h-full w-full;}.slider .slider-card-default+.slider-card-main{@apply h-auto;}.slider .slider-card-content{@apply p-3 h-full w-full;}.popover[data-popper-placement^=top] [data-popper-arrow],.popover[data-popper-placement^=bottom] [data-popper-arrow]{@apply before:left-0;}.popover[data-popper-placement^=top] [data-popper-arrow]{@apply -bottom-2 before:border-b before:border-r before:border-gray-300;}.popover[data-popper-placement^=bottom] [data-popper-arrow]{@apply -top-2 before:border-t before:border-l before:border-gray-300;}[data-popper-arrow],[data-popper-arrow]:before{background:inherit}#dots span{@apply inline-block bg-gray-300 rounded-full w-2 h-2 mr-2;animation-name:blink;animation-duration:1.75s;animation-iteration-count:infinite;animation-fill-mode:both}@keyframes blink{0%{background-color:#2223}20%{background-color:#222;transform:scale(1.25)}to{background-color:#2223}}.textbox input,.textbox textarea,.textbox select,.textarea input,.textarea textarea,.textarea select,.select input,.select textarea,.select select{@apply w-full border-2 py-2 shadow-sm focus:outline-none text-sm transition-colors ease-in-out duration-200 focus:ring-1 placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis;}.textbox.primary input,.textbox.primary textarea,.textbox.primary select,.textarea.primary input,.textarea.primary textarea,.textarea.primary select,.select.primary input,.select.primary textarea,.select.primary select{@apply border-slate-700 focus:ring-slate-700 focus:border-slate-700;}.textbox.secondary input,.textbox.secondary textarea,.textbox.secondary select,.textarea.secondary input,.textarea.secondary textarea,.textarea.secondary select,.select.secondary input,.select.secondary textarea,.select.secondary select{@apply border border-gray-300 rounded focus:ring-slate-700 focus:border-slate-700;}.checkbox input{@apply focus:ring-2 focus:ring-offset-2 focus-within:outline-none;}.checkbox.primary input{@apply focus:ring-slate-700;}
|
package/package.json
CHANGED