@vehiclehistory/property-lib 0.0.19 → 0.0.21
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/funnel/FunnelHeader.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -1
- package/dist/components/ui/Alert/Alert.d.ts +0 -1
- package/dist/components/ui/Autocomplete/Autocomplete.d.ts +0 -1
- package/dist/components/ui/Badge/Badge.d.ts +0 -1
- package/dist/components/ui/Button/Button.d.ts +1 -1
- package/dist/components/ui/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/dist/components/ui/Card/Card.d.ts +0 -1
- package/dist/components/ui/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/ui/Container/Container.d.ts +0 -1
- package/dist/components/ui/Dialog/Dialog.d.ts +0 -1
- package/dist/components/ui/Dialog/DialogOld.d.ts +0 -1
- package/dist/components/ui/Dots/Dots.d.ts +0 -1
- package/dist/components/ui/Icon/Icon.d.ts +0 -1
- package/dist/components/ui/Popover/Popover.d.ts +0 -1
- package/dist/components/ui/Radio/Radio.d.ts +0 -1
- package/dist/components/ui/Select/Select.d.ts +0 -1
- package/dist/components/ui/Slider/Slider.d.ts +0 -1
- package/dist/components/ui/Stars/Stars.d.ts +0 -1
- package/dist/components/ui/Swiper/Swiper.d.ts +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +160 -162
- package/dist/scripts/index.d.ts +0 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -2
|
@@ -23,5 +23,4 @@ import { default as Stars } from './ui/Stars/Stars';
|
|
|
23
23
|
import { default as TextArea } from './ui/Text/TextArea';
|
|
24
24
|
import { default as Textbox } from './ui/Text/Textbox';
|
|
25
25
|
import { default as FunnelHeader } from './funnel/FunnelHeader';
|
|
26
|
-
|
|
27
26
|
export { Accordion, Alert, Autocomplete, Badge, Button, ButtonGroup, Card, Checkbox, Container, Dialog, DialogOld, Dots, FunnelHeader, Icon, LoadingBar, Spinner, Popover, ProgressBar, Radio, Select, Skeleton, Slider, Stars, TextArea, Textbox, };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode, NamedExoticComponent } from 'react';
|
|
2
|
-
|
|
3
2
|
declare const _default: NamedExoticComponent<{
|
|
4
3
|
leftIcon?: string;
|
|
5
4
|
leftIconProps?: object;
|
|
@@ -11,6 +10,7 @@ declare const _default: NamedExoticComponent<{
|
|
|
11
10
|
rightIcon?: string;
|
|
12
11
|
rightIconProps?: object;
|
|
13
12
|
rounded?: boolean;
|
|
13
|
+
size?: "sm" | "md";
|
|
14
14
|
type?: "button" | "submit" | "reset";
|
|
15
15
|
uppercase?: boolean;
|
|
16
16
|
variation?: "primary" | "secondary" | "icon" | "link";
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as g, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
2
|
+
import { memo as y, useState as Z, useEffect as k, useRef as I } from "react";
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
const F = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
@@ -495,7 +495,7 @@ const F = {
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
);
|
|
498
|
-
},
|
|
498
|
+
}, b = y(P), W = ({
|
|
499
499
|
children: d,
|
|
500
500
|
className: e,
|
|
501
501
|
clickHandler: t,
|
|
@@ -524,7 +524,7 @@ const F = {
|
|
|
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 }),
|
|
526
526
|
/* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
|
|
527
|
-
|
|
527
|
+
b,
|
|
528
528
|
{
|
|
529
529
|
name: "chevronDown",
|
|
530
530
|
size: "small",
|
|
@@ -556,7 +556,7 @@ const F = {
|
|
|
556
556
|
}
|
|
557
557
|
)
|
|
558
558
|
] }) });
|
|
559
|
-
},
|
|
559
|
+
}, f1 = y(W), R = ({
|
|
560
560
|
children: d,
|
|
561
561
|
className: e = "",
|
|
562
562
|
messages: t = [],
|
|
@@ -599,7 +599,7 @@ const F = {
|
|
|
599
599
|
...l,
|
|
600
600
|
children: /* @__PURE__ */ g("div", { className: "flex", children: [
|
|
601
601
|
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
|
|
602
|
-
|
|
602
|
+
b,
|
|
603
603
|
{
|
|
604
604
|
name: r,
|
|
605
605
|
viewBox: "0 0 24 24",
|
|
@@ -609,12 +609,12 @@ 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, C) => /* @__PURE__ */ o("li", { children: u }, C)) }) }) : ""
|
|
613
613
|
] })
|
|
614
614
|
] })
|
|
615
615
|
}
|
|
616
616
|
);
|
|
617
|
-
},
|
|
617
|
+
}, M1 = y(R), U = ({
|
|
618
618
|
autoFocus: d = !1,
|
|
619
619
|
required: e = !1,
|
|
620
620
|
className: t = "",
|
|
@@ -627,9 +627,9 @@ const F = {
|
|
|
627
627
|
mobileBackdrop: c = !1,
|
|
628
628
|
showSearchIcon: h = !0,
|
|
629
629
|
options: u = [],
|
|
630
|
-
name:
|
|
630
|
+
name: C = "",
|
|
631
631
|
placeholder: M = "",
|
|
632
|
-
props:
|
|
632
|
+
props: A = {},
|
|
633
633
|
size: f = "medium",
|
|
634
634
|
styles: p = null,
|
|
635
635
|
title: V = ""
|
|
@@ -653,7 +653,7 @@ const F = {
|
|
|
653
653
|
),
|
|
654
654
|
children: [
|
|
655
655
|
/* @__PURE__ */ o(
|
|
656
|
-
|
|
656
|
+
b,
|
|
657
657
|
{
|
|
658
658
|
className: "home-search select-none text-gray-500",
|
|
659
659
|
name: r,
|
|
@@ -662,7 +662,7 @@ const F = {
|
|
|
662
662
|
}
|
|
663
663
|
),
|
|
664
664
|
/* @__PURE__ */ o(
|
|
665
|
-
|
|
665
|
+
b,
|
|
666
666
|
{
|
|
667
667
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
668
668
|
name: "arrowLeft",
|
|
@@ -694,9 +694,9 @@ const F = {
|
|
|
694
694
|
value: a,
|
|
695
695
|
placeholder: !M && i ? " " : M,
|
|
696
696
|
type: "search",
|
|
697
|
-
name:
|
|
697
|
+
name: C || "search-input",
|
|
698
698
|
"data-id": "search-input",
|
|
699
|
-
...
|
|
699
|
+
...A
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
702
|
i && /* @__PURE__ */ o(
|
|
@@ -720,7 +720,7 @@ const F = {
|
|
|
720
720
|
"data-id": "search-clear",
|
|
721
721
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
722
722
|
children: /* @__PURE__ */ o(
|
|
723
|
-
|
|
723
|
+
b,
|
|
724
724
|
{
|
|
725
725
|
className: "cursor-pointer text-gray-500",
|
|
726
726
|
name: "xCircle",
|
|
@@ -736,7 +736,7 @@ const F = {
|
|
|
736
736
|
"data-id": "search-loading",
|
|
737
737
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
738
738
|
children: /* @__PURE__ */ o(
|
|
739
|
-
|
|
739
|
+
b,
|
|
740
740
|
{
|
|
741
741
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
742
742
|
name: "spinnerDark",
|
|
@@ -780,7 +780,7 @@ const F = {
|
|
|
780
780
|
)
|
|
781
781
|
]
|
|
782
782
|
}
|
|
783
|
-
),
|
|
783
|
+
), g1 = U, Q = ({
|
|
784
784
|
children: d,
|
|
785
785
|
className: e,
|
|
786
786
|
size: t = "sm",
|
|
@@ -799,7 +799,7 @@ const F = {
|
|
|
799
799
|
),
|
|
800
800
|
children: d
|
|
801
801
|
}
|
|
802
|
-
),
|
|
802
|
+
), v1 = Q, G = ({
|
|
803
803
|
leftIcon: d,
|
|
804
804
|
leftIconProps: e = {},
|
|
805
805
|
children: t,
|
|
@@ -810,25 +810,25 @@ const F = {
|
|
|
810
810
|
rightIcon: s,
|
|
811
811
|
rightIconProps: r = {},
|
|
812
812
|
rounded: c = !1,
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
813
|
+
size: h = "md",
|
|
814
|
+
type: u = "button",
|
|
815
|
+
uppercase: C = !1,
|
|
816
|
+
variation: M = "primary"
|
|
816
817
|
}) => {
|
|
817
|
-
const
|
|
818
|
+
const A = l ? "a" : "button";
|
|
818
819
|
return /* @__PURE__ */ g(
|
|
819
|
-
|
|
820
|
+
A,
|
|
820
821
|
{
|
|
821
|
-
type:
|
|
822
|
+
type: A !== "a" ? u : null,
|
|
822
823
|
className: m(
|
|
823
824
|
"Button",
|
|
824
825
|
{
|
|
825
|
-
[`Button--${
|
|
826
|
+
[`Button--${M}`]: M,
|
|
827
|
+
[`Button--${h}`]: h,
|
|
826
828
|
"Button--rounded": c,
|
|
827
|
-
"Button--icon": H === "icon",
|
|
828
|
-
"Button--link": H === "link",
|
|
829
829
|
"Button--disabled": n,
|
|
830
830
|
"Button--custom-link": l,
|
|
831
|
-
"Button--uppercase":
|
|
831
|
+
"Button--uppercase": C
|
|
832
832
|
},
|
|
833
833
|
a
|
|
834
834
|
),
|
|
@@ -837,22 +837,20 @@ const F = {
|
|
|
837
837
|
...i,
|
|
838
838
|
children: [
|
|
839
839
|
d && /* @__PURE__ */ o(
|
|
840
|
-
|
|
840
|
+
b,
|
|
841
841
|
{
|
|
842
842
|
name: d,
|
|
843
843
|
size: "small",
|
|
844
|
-
className: "mr-2 pointer-events-none text-slate-700",
|
|
845
844
|
viewBox: "0 0 24 24",
|
|
846
845
|
...e
|
|
847
846
|
}
|
|
848
847
|
),
|
|
849
848
|
t,
|
|
850
849
|
s && /* @__PURE__ */ o(
|
|
851
|
-
|
|
850
|
+
b,
|
|
852
851
|
{
|
|
853
852
|
name: s,
|
|
854
853
|
size: "small",
|
|
855
|
-
className: "ml-2 pointer-events-none text-slate-700",
|
|
856
854
|
viewBox: "0 0 24 24",
|
|
857
855
|
...r
|
|
858
856
|
}
|
|
@@ -860,7 +858,7 @@ const F = {
|
|
|
860
858
|
]
|
|
861
859
|
}
|
|
862
860
|
);
|
|
863
|
-
},
|
|
861
|
+
}, A1 = y(G), J = ({ children: d, className: e }) => /* @__PURE__ */ o("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), y1 = J, K = ({
|
|
864
862
|
block: d = !1,
|
|
865
863
|
borderless: e = !1,
|
|
866
864
|
children: t,
|
|
@@ -886,7 +884,7 @@ const F = {
|
|
|
886
884
|
role: s,
|
|
887
885
|
children: t
|
|
888
886
|
}
|
|
889
|
-
),
|
|
887
|
+
), b1 = K, Y = ({
|
|
890
888
|
checked: d = !1,
|
|
891
889
|
children: e,
|
|
892
890
|
className: t = "",
|
|
@@ -923,7 +921,7 @@ const F = {
|
|
|
923
921
|
]
|
|
924
922
|
}
|
|
925
923
|
);
|
|
926
|
-
},
|
|
924
|
+
}, w1 = y(Y), X = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
927
925
|
/* @__PURE__ */ o(
|
|
928
926
|
"main",
|
|
929
927
|
{
|
|
@@ -949,7 +947,7 @@ const F = {
|
|
|
949
947
|
children: e
|
|
950
948
|
}
|
|
951
949
|
)
|
|
952
|
-
] }),
|
|
950
|
+
] }), x1 = y(X), _ = ({
|
|
953
951
|
activator: d,
|
|
954
952
|
id: e = "",
|
|
955
953
|
children: t,
|
|
@@ -962,9 +960,9 @@ const F = {
|
|
|
962
960
|
hideClose: c = !1,
|
|
963
961
|
iconSize: h = "medium",
|
|
964
962
|
preventPageScroll: u = !0,
|
|
965
|
-
stickyHeader:
|
|
963
|
+
stickyHeader: C = !1,
|
|
966
964
|
title: M = "",
|
|
967
|
-
titleClass:
|
|
965
|
+
titleClass: A = ""
|
|
968
966
|
}) => /* @__PURE__ */ g(z, { children: [
|
|
969
967
|
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
|
|
970
968
|
/* @__PURE__ */ o(
|
|
@@ -988,14 +986,14 @@ const F = {
|
|
|
988
986
|
className: m(
|
|
989
987
|
"dialog-header flex items-center p-4",
|
|
990
988
|
{
|
|
991
|
-
"sticky top-0 bg-white z-10":
|
|
989
|
+
"sticky top-0 bg-white z-10": C,
|
|
992
990
|
"!pb-0 border-0 justify-end": !M,
|
|
993
991
|
"justify-between border-b": M
|
|
994
992
|
},
|
|
995
993
|
r
|
|
996
994
|
),
|
|
997
995
|
children: [
|
|
998
|
-
M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className:
|
|
996
|
+
M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: M }),
|
|
999
997
|
!c && /* @__PURE__ */ o(
|
|
1000
998
|
"button",
|
|
1001
999
|
{
|
|
@@ -1005,7 +1003,7 @@ const F = {
|
|
|
1005
1003
|
"data-dialog-close": "",
|
|
1006
1004
|
value: "close",
|
|
1007
1005
|
children: /* @__PURE__ */ o(
|
|
1008
|
-
|
|
1006
|
+
b,
|
|
1009
1007
|
{
|
|
1010
1008
|
name: "close",
|
|
1011
1009
|
size: h,
|
|
@@ -1029,7 +1027,7 @@ const F = {
|
|
|
1029
1027
|
] })
|
|
1030
1028
|
}
|
|
1031
1029
|
)
|
|
1032
|
-
] }),
|
|
1030
|
+
] }), S1 = y(_), e1 = ({
|
|
1033
1031
|
activator: d,
|
|
1034
1032
|
id: e = "",
|
|
1035
1033
|
children: t,
|
|
@@ -1042,26 +1040,26 @@ const F = {
|
|
|
1042
1040
|
headerClass: c = "",
|
|
1043
1041
|
hideClose: h = !1,
|
|
1044
1042
|
iconSize: u = "medium",
|
|
1045
|
-
isOpen:
|
|
1043
|
+
isOpen: C = !1,
|
|
1046
1044
|
setDialogOpen: M,
|
|
1047
|
-
stickyHeader:
|
|
1045
|
+
stickyHeader: A = !1,
|
|
1048
1046
|
title: f = "",
|
|
1049
1047
|
titleClass: p = ""
|
|
1050
1048
|
}) => {
|
|
1051
|
-
const V =
|
|
1049
|
+
const V = I(null), w = async () => {
|
|
1052
1050
|
V.current.classList.add("closing"), await B(V.current), V.current.classList.remove("closing"), l && l(), M(!1);
|
|
1053
1051
|
}, v = async (x) => {
|
|
1054
1052
|
x.key === "Escape" && await w();
|
|
1055
|
-
}, N = async ({ clientX: x, clientY: S, target:
|
|
1056
|
-
const { left:
|
|
1057
|
-
(!V.current.contains(
|
|
1053
|
+
}, N = async ({ clientX: x, clientY: S, target: D }) => {
|
|
1054
|
+
const { left: E, right: T, top: $, bottom: O } = V.current.getBoundingClientRect() ?? {};
|
|
1055
|
+
(!V.current.contains(D) || x < E || x > T || S < $ || S > O) && await w();
|
|
1058
1056
|
}, B = (x) => Promise.allSettled(
|
|
1059
1057
|
x.getAnimations().map((S) => S.finished)
|
|
1060
1058
|
);
|
|
1061
1059
|
return k(() => {
|
|
1062
1060
|
const x = V.current;
|
|
1063
|
-
x && (
|
|
1064
|
-
}, [
|
|
1061
|
+
x && (C ? x.showModal() : typeof x.close == "function" && x.close());
|
|
1062
|
+
}, [C]), /* @__PURE__ */ g(z, { children: [
|
|
1065
1063
|
d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
|
|
1066
1064
|
/* @__PURE__ */ g(
|
|
1067
1065
|
"dialog",
|
|
@@ -1071,7 +1069,7 @@ const F = {
|
|
|
1071
1069
|
className: m(
|
|
1072
1070
|
"dialog",
|
|
1073
1071
|
{
|
|
1074
|
-
hidden: !
|
|
1072
|
+
hidden: !C,
|
|
1075
1073
|
"xs-max:h-full xs-max:max-h-full": r
|
|
1076
1074
|
},
|
|
1077
1075
|
a
|
|
@@ -1084,7 +1082,7 @@ const F = {
|
|
|
1084
1082
|
{
|
|
1085
1083
|
className: m(
|
|
1086
1084
|
"dialog-header flex items-center p-4",
|
|
1087
|
-
{ "sticky top-0 bg-white":
|
|
1085
|
+
{ "sticky top-0 bg-white": A },
|
|
1088
1086
|
c
|
|
1089
1087
|
),
|
|
1090
1088
|
children: [
|
|
@@ -1098,7 +1096,7 @@ const F = {
|
|
|
1098
1096
|
"data-dialog-close": "",
|
|
1099
1097
|
onClick: w,
|
|
1100
1098
|
children: /* @__PURE__ */ o(
|
|
1101
|
-
|
|
1099
|
+
b,
|
|
1102
1100
|
{
|
|
1103
1101
|
name: "close",
|
|
1104
1102
|
size: u,
|
|
@@ -1130,7 +1128,7 @@ const F = {
|
|
|
1130
1128
|
}
|
|
1131
1129
|
)
|
|
1132
1130
|
] });
|
|
1133
|
-
},
|
|
1131
|
+
}, k1 = y(e1), t1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
|
|
1134
1132
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
|
|
1135
1133
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
|
|
1136
1134
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1139,7 +1137,7 @@ const F = {
|
|
|
1139
1137
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
|
|
1140
1138
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
|
|
1141
1139
|
/* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
|
|
1142
|
-
] }),
|
|
1140
|
+
] }), z1 = t1, a1 = ({
|
|
1143
1141
|
cb: d,
|
|
1144
1142
|
className: e = "",
|
|
1145
1143
|
size: t = "md",
|
|
@@ -1150,14 +1148,14 @@ const F = {
|
|
|
1150
1148
|
const s = document.querySelector(".loading-bar__inner");
|
|
1151
1149
|
if (!s) return;
|
|
1152
1150
|
let r, c, h = !1;
|
|
1153
|
-
function u(
|
|
1154
|
-
r === void 0 && (r =
|
|
1155
|
-
const M =
|
|
1156
|
-
if (c !==
|
|
1157
|
-
const
|
|
1158
|
-
s.style.width = `${
|
|
1151
|
+
function u(C) {
|
|
1152
|
+
r === void 0 && (r = C);
|
|
1153
|
+
const M = C - r;
|
|
1154
|
+
if (c !== C) {
|
|
1155
|
+
const A = M / a * 101;
|
|
1156
|
+
s.style.width = `${A}%`, A >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(C));
|
|
1159
1157
|
}
|
|
1160
|
-
M < a && (c =
|
|
1158
|
+
M < a && (c = C, h || window.requestAnimationFrame(u));
|
|
1161
1159
|
}
|
|
1162
1160
|
window.requestAnimationFrame(u);
|
|
1163
1161
|
}
|
|
@@ -1180,18 +1178,18 @@ const F = {
|
|
|
1180
1178
|
children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1181
1179
|
}
|
|
1182
1180
|
);
|
|
1183
|
-
},
|
|
1181
|
+
}, Z1 = y(a1), n1 = {
|
|
1184
1182
|
name: "spinnerDark",
|
|
1185
1183
|
color: "text-teal-700",
|
|
1186
1184
|
viewBox: "0 0 24 24"
|
|
1187
|
-
},
|
|
1188
|
-
|
|
1185
|
+
}, l1 = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
|
|
1186
|
+
b,
|
|
1189
1187
|
{
|
|
1190
1188
|
size: "xSmall",
|
|
1191
|
-
...
|
|
1189
|
+
...n1,
|
|
1192
1190
|
className: `animate-spin ${d}`
|
|
1193
1191
|
}
|
|
1194
|
-
) }),
|
|
1192
|
+
) }), N1 = y(l1), s1 = ({
|
|
1195
1193
|
activator: d,
|
|
1196
1194
|
activatorClass: e = "",
|
|
1197
1195
|
attrs: t = {},
|
|
@@ -1242,7 +1240,7 @@ const F = {
|
|
|
1242
1240
|
children: d
|
|
1243
1241
|
}
|
|
1244
1242
|
)
|
|
1245
|
-
] }),
|
|
1243
|
+
] }), B1 = s1, r1 = ({
|
|
1246
1244
|
ariaValuemax: d = 100,
|
|
1247
1245
|
ariaValuemin: e = 0,
|
|
1248
1246
|
bgColor: t = "bg-orange-500",
|
|
@@ -1254,8 +1252,8 @@ const F = {
|
|
|
1254
1252
|
}) => {
|
|
1255
1253
|
const c = ((h, u) => {
|
|
1256
1254
|
if (h) {
|
|
1257
|
-
const
|
|
1258
|
-
return
|
|
1255
|
+
const C = Number(u) / h;
|
|
1256
|
+
return C > 1 ? 100 : C * 100;
|
|
1259
1257
|
}
|
|
1260
1258
|
return n;
|
|
1261
1259
|
})(l, n);
|
|
@@ -1285,7 +1283,7 @@ const F = {
|
|
|
1285
1283
|
)
|
|
1286
1284
|
}
|
|
1287
1285
|
);
|
|
1288
|
-
},
|
|
1286
|
+
}, D1 = y(r1), i1 = ({
|
|
1289
1287
|
checked: d = !1,
|
|
1290
1288
|
children: e,
|
|
1291
1289
|
className: t = "",
|
|
@@ -1324,7 +1322,7 @@ const F = {
|
|
|
1324
1322
|
]
|
|
1325
1323
|
}
|
|
1326
1324
|
);
|
|
1327
|
-
},
|
|
1325
|
+
}, E1 = y(i1), o1 = ({
|
|
1328
1326
|
children: d,
|
|
1329
1327
|
className: e = "",
|
|
1330
1328
|
error: t = !1,
|
|
@@ -1337,14 +1335,14 @@ const F = {
|
|
|
1337
1335
|
props: c = {},
|
|
1338
1336
|
selectClass: h = "",
|
|
1339
1337
|
styles: u = null,
|
|
1340
|
-
variation:
|
|
1338
|
+
variation: C = "primary",
|
|
1341
1339
|
value: M
|
|
1342
1340
|
}) => {
|
|
1343
|
-
const
|
|
1341
|
+
const A = r ? { defaultValue: "" } : {};
|
|
1344
1342
|
return /* @__PURE__ */ g(
|
|
1345
1343
|
"label",
|
|
1346
1344
|
{
|
|
1347
|
-
className: m("relative select", e,
|
|
1345
|
+
className: m("relative select", e, C),
|
|
1348
1346
|
style: u ? { ...u } : null,
|
|
1349
1347
|
children: [
|
|
1350
1348
|
l,
|
|
@@ -1359,7 +1357,7 @@ const F = {
|
|
|
1359
1357
|
id: n,
|
|
1360
1358
|
name: i,
|
|
1361
1359
|
value: M,
|
|
1362
|
-
...
|
|
1360
|
+
...A,
|
|
1363
1361
|
...c,
|
|
1364
1362
|
children: [
|
|
1365
1363
|
r && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: r }),
|
|
@@ -1378,7 +1376,7 @@ const F = {
|
|
|
1378
1376
|
]
|
|
1379
1377
|
}
|
|
1380
1378
|
);
|
|
1381
|
-
},
|
|
1379
|
+
}, T1 = y(o1), c1 = ({ className: d = "" }) => /* @__PURE__ */ g(
|
|
1382
1380
|
"div",
|
|
1383
1381
|
{
|
|
1384
1382
|
className: m(
|
|
@@ -1386,11 +1384,11 @@ const F = {
|
|
|
1386
1384
|
d
|
|
1387
1385
|
),
|
|
1388
1386
|
children: [
|
|
1389
|
-
/* @__PURE__ */ o(
|
|
1387
|
+
/* @__PURE__ */ o(b, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1390
1388
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
1391
1389
|
]
|
|
1392
1390
|
}
|
|
1393
|
-
),
|
|
1391
|
+
), $1 = y(c1), d1 = ({
|
|
1394
1392
|
placeholderClass: d = "",
|
|
1395
1393
|
children: e,
|
|
1396
1394
|
className: t = "",
|
|
@@ -1404,7 +1402,7 @@ const F = {
|
|
|
1404
1402
|
id: `btn-left-${a}`,
|
|
1405
1403
|
type: "button",
|
|
1406
1404
|
className: "slider-button__prev ",
|
|
1407
|
-
children: /* @__PURE__ */ o(
|
|
1405
|
+
children: /* @__PURE__ */ o(b, { name: "chevronLeft" })
|
|
1408
1406
|
}
|
|
1409
1407
|
),
|
|
1410
1408
|
/* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, i) => /* @__PURE__ */ o(
|
|
@@ -1422,10 +1420,10 @@ const F = {
|
|
|
1422
1420
|
id: `btn-right-${a}`,
|
|
1423
1421
|
type: "button",
|
|
1424
1422
|
className: "slider-button__next",
|
|
1425
|
-
children: /* @__PURE__ */ o(
|
|
1423
|
+
children: /* @__PURE__ */ o(b, { name: "chevronRight" })
|
|
1426
1424
|
}
|
|
1427
1425
|
)
|
|
1428
|
-
] }),
|
|
1426
|
+
] }), O1 = y(d1), h1 = ({
|
|
1429
1427
|
className: d = "",
|
|
1430
1428
|
value: e
|
|
1431
1429
|
}) => {
|
|
@@ -1442,7 +1440,7 @@ const F = {
|
|
|
1442
1440
|
style: t
|
|
1443
1441
|
}
|
|
1444
1442
|
);
|
|
1445
|
-
},
|
|
1443
|
+
}, I1 = h1, u1 = ({
|
|
1446
1444
|
className: d = "",
|
|
1447
1445
|
clear: e = !1,
|
|
1448
1446
|
error: t = !1,
|
|
@@ -1477,7 +1475,7 @@ const F = {
|
|
|
1477
1475
|
id: `${n}-clear`,
|
|
1478
1476
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1479
1477
|
children: /* @__PURE__ */ o(
|
|
1480
|
-
|
|
1478
|
+
b,
|
|
1481
1479
|
{
|
|
1482
1480
|
size: "xSmall",
|
|
1483
1481
|
name: "xCircle",
|
|
@@ -1487,7 +1485,7 @@ const F = {
|
|
|
1487
1485
|
}
|
|
1488
1486
|
),
|
|
1489
1487
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1490
|
-
] }),
|
|
1488
|
+
] }), F1 = y(u1), p1 = ({
|
|
1491
1489
|
className: d = "",
|
|
1492
1490
|
clear: e = !1,
|
|
1493
1491
|
error: t = !1,
|
|
@@ -1500,7 +1498,7 @@ const F = {
|
|
|
1500
1498
|
props: c = {},
|
|
1501
1499
|
styles: h = null,
|
|
1502
1500
|
type: u = "text",
|
|
1503
|
-
value:
|
|
1501
|
+
value: C,
|
|
1504
1502
|
variation: M = "primary"
|
|
1505
1503
|
}) => /* @__PURE__ */ g(
|
|
1506
1504
|
"div",
|
|
@@ -1509,7 +1507,7 @@ const F = {
|
|
|
1509
1507
|
style: h ? { ...h } : null,
|
|
1510
1508
|
children: [
|
|
1511
1509
|
n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
|
|
1512
|
-
|
|
1510
|
+
b,
|
|
1513
1511
|
{
|
|
1514
1512
|
size: "xSmall",
|
|
1515
1513
|
name: n,
|
|
@@ -1524,7 +1522,7 @@ const F = {
|
|
|
1524
1522
|
id: l,
|
|
1525
1523
|
name: s,
|
|
1526
1524
|
type: u,
|
|
1527
|
-
value:
|
|
1525
|
+
value: C,
|
|
1528
1526
|
autoComplete: "off",
|
|
1529
1527
|
className: m(
|
|
1530
1528
|
"form-input",
|
|
@@ -1545,7 +1543,7 @@ const F = {
|
|
|
1545
1543
|
id: `${l}-clear`,
|
|
1546
1544
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1547
1545
|
children: /* @__PURE__ */ o(
|
|
1548
|
-
|
|
1546
|
+
b,
|
|
1549
1547
|
{
|
|
1550
1548
|
size: "xSmall",
|
|
1551
1549
|
name: "xCircle",
|
|
@@ -1557,7 +1555,7 @@ const F = {
|
|
|
1557
1555
|
a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1558
1556
|
]
|
|
1559
1557
|
}
|
|
1560
|
-
),
|
|
1558
|
+
), q1 = y(p1), m1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
|
|
1561
1559
|
t,
|
|
1562
1560
|
{
|
|
1563
1561
|
className: m(
|
|
@@ -1566,11 +1564,11 @@ const F = {
|
|
|
1566
1564
|
),
|
|
1567
1565
|
children: a || d
|
|
1568
1566
|
}
|
|
1569
|
-
),
|
|
1570
|
-
class
|
|
1567
|
+
), j1 = y(m1);
|
|
1568
|
+
class H {
|
|
1571
1569
|
static calcCrow(e, t, a, n) {
|
|
1572
|
-
const i =
|
|
1573
|
-
e =
|
|
1570
|
+
const i = H.toRad(a - e), s = H.toRad(n - t);
|
|
1571
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
1574
1572
|
const r = Math.sin(i / 2) * Math.sin(i / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
|
|
1575
1573
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
1576
1574
|
}
|
|
@@ -1585,9 +1583,9 @@ class C {
|
|
|
1585
1583
|
return;
|
|
1586
1584
|
window.dataLayer = window.dataLayer || [];
|
|
1587
1585
|
const t = document.querySelectorAll("[data-div-track]");
|
|
1588
|
-
typeof
|
|
1586
|
+
typeof H == "function" && t.forEach((a) => {
|
|
1589
1587
|
a.addEventListener("click", () => {
|
|
1590
|
-
|
|
1588
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
1591
1589
|
});
|
|
1592
1590
|
});
|
|
1593
1591
|
}
|
|
@@ -1601,13 +1599,13 @@ class C {
|
|
|
1601
1599
|
static async createData(e, t = null, a = !0) {
|
|
1602
1600
|
if (options.isBot || !t)
|
|
1603
1601
|
return null;
|
|
1604
|
-
const { tolken: n = null, ip: l = null } = await
|
|
1602
|
+
const { tolken: n = null, ip: l = null } = await H.getHeaders(), i = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + i, r = typeof t == "string" ? t : JSON.stringify(t);
|
|
1605
1603
|
try {
|
|
1606
1604
|
const c = await fetch(s, {
|
|
1607
1605
|
method: "POST",
|
|
1608
1606
|
body: r === "null" ? null : r,
|
|
1609
1607
|
headers: {
|
|
1610
|
-
website:
|
|
1608
|
+
website: H.getWebsiteHeaderName()
|
|
1611
1609
|
}
|
|
1612
1610
|
}), h = c.headers.get("content-type");
|
|
1613
1611
|
if (h && h.indexOf("application/json") !== -1)
|
|
@@ -1624,7 +1622,7 @@ class C {
|
|
|
1624
1622
|
}
|
|
1625
1623
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
1626
1624
|
try {
|
|
1627
|
-
return await
|
|
1625
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
1628
1626
|
} catch (t) {
|
|
1629
1627
|
console.error("deleteSearchValue", t.message);
|
|
1630
1628
|
}
|
|
@@ -1675,7 +1673,7 @@ class C {
|
|
|
1675
1673
|
static async fetchData(e, t = !1, a = !0) {
|
|
1676
1674
|
if (options.isBot)
|
|
1677
1675
|
return null;
|
|
1678
|
-
const { tolken: n = null, ip: l = null } = await
|
|
1676
|
+
const { tolken: n = null, ip: l = null } = await H.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
|
|
1679
1677
|
try {
|
|
1680
1678
|
const r = await fetch(s, { method: "GET" });
|
|
1681
1679
|
if (t === !0) {
|
|
@@ -1695,8 +1693,8 @@ class C {
|
|
|
1695
1693
|
}
|
|
1696
1694
|
static formatDate(e = null) {
|
|
1697
1695
|
return e ? (e = new Date(e), [
|
|
1698
|
-
|
|
1699
|
-
|
|
1696
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
1697
|
+
H.padTo2Digits(e.getDate()),
|
|
1700
1698
|
e.getFullYear()
|
|
1701
1699
|
].join("-")) : null;
|
|
1702
1700
|
}
|
|
@@ -1790,19 +1788,19 @@ class C {
|
|
|
1790
1788
|
}[e];
|
|
1791
1789
|
}
|
|
1792
1790
|
static async getLocationData(e) {
|
|
1793
|
-
const { swLat: t, neLng: a, neLat: n, swLng: l } =
|
|
1794
|
-
return await
|
|
1791
|
+
const { swLat: t, neLng: a, neLat: n, swLng: l } = H.getBounds(e, 3, 0.05), i = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
|
|
1792
|
+
return await H.fetchData("/api/client?query=" + i);
|
|
1795
1793
|
}
|
|
1796
1794
|
static getReportUrl(e, t = null) {
|
|
1797
1795
|
var r, c, h;
|
|
1798
1796
|
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.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, i = (e == null ? void 0 : e.zip) ?? null;
|
|
1799
1797
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
1800
1798
|
const s = [i, "-piq", t].filter((u) => u).join("");
|
|
1801
|
-
return "/" + [a, n, l].filter((u) => u).map((u) =>
|
|
1799
|
+
return "/" + [a, n, l].filter((u) => u).map((u) => H.toSlug(u)).join("/") + "/" + s;
|
|
1802
1800
|
}
|
|
1803
1801
|
static async getSearchValue(e = "recsSearchValue") {
|
|
1804
1802
|
try {
|
|
1805
|
-
return await
|
|
1803
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
1806
1804
|
} catch (t) {
|
|
1807
1805
|
console.error("getSearchValue", t.message);
|
|
1808
1806
|
}
|
|
@@ -1927,7 +1925,7 @@ class C {
|
|
|
1927
1925
|
return e;
|
|
1928
1926
|
}
|
|
1929
1927
|
try {
|
|
1930
|
-
return await
|
|
1928
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
1931
1929
|
} catch (e) {
|
|
1932
1930
|
console.error("getUser", e.message);
|
|
1933
1931
|
}
|
|
@@ -1943,7 +1941,7 @@ class C {
|
|
|
1943
1941
|
uuid: t
|
|
1944
1942
|
}
|
|
1945
1943
|
});
|
|
1946
|
-
return await
|
|
1944
|
+
return await H.makeSearchFetchCall(
|
|
1947
1945
|
`/api/client?query=user-get-history&filter=${a}`
|
|
1948
1946
|
);
|
|
1949
1947
|
}
|
|
@@ -2018,7 +2016,7 @@ class C {
|
|
|
2018
2016
|
}), u = new MutationObserver((p, V) => {
|
|
2019
2017
|
p.forEach((w) => {
|
|
2020
2018
|
w.removedNodes.forEach((v) => {
|
|
2021
|
-
v.nodeName === "DIALOG" && (v.removeEventListener("click",
|
|
2019
|
+
v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), h == null || h.disconnect());
|
|
2022
2020
|
});
|
|
2023
2021
|
});
|
|
2024
2022
|
});
|
|
@@ -2029,18 +2027,18 @@ class C {
|
|
|
2029
2027
|
subtree: !1,
|
|
2030
2028
|
childList: !0
|
|
2031
2029
|
}));
|
|
2032
|
-
const
|
|
2030
|
+
const C = () => {
|
|
2033
2031
|
s == null || s.showModal();
|
|
2034
2032
|
}, M = async ({ target: p }) => {
|
|
2035
2033
|
p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await f(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
|
|
2036
|
-
},
|
|
2034
|
+
}, A = async ({ target: p }) => {
|
|
2037
2035
|
(p == null ? void 0 : p.nodeName) === "DIALOG" && (s == null || s.close("outside"));
|
|
2038
2036
|
}, f = (p) => Promise.allSettled(
|
|
2039
2037
|
p == null ? void 0 : p.getAnimations().map((V) => V == null ? void 0 : V.finished)
|
|
2040
2038
|
);
|
|
2041
|
-
return !l && (s == null || s.addEventListener("click",
|
|
2039
|
+
return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M), i == null || i.forEach((p) => {
|
|
2042
2040
|
p.addEventListener("click", (V) => {
|
|
2043
|
-
|
|
2041
|
+
C(), a && a(V, s);
|
|
2044
2042
|
});
|
|
2045
2043
|
}), r == null || r.forEach((p) => {
|
|
2046
2044
|
p.addEventListener("click", async (V) => {
|
|
@@ -2049,12 +2047,12 @@ class C {
|
|
|
2049
2047
|
}), {
|
|
2050
2048
|
activators: i,
|
|
2051
2049
|
ref: s,
|
|
2052
|
-
handleOpen:
|
|
2050
|
+
handleOpen: C,
|
|
2053
2051
|
handleClose: M
|
|
2054
2052
|
};
|
|
2055
2053
|
}
|
|
2056
2054
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2057
|
-
return
|
|
2055
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2058
2056
|
}
|
|
2059
2057
|
static initObserver(e, t, a = null) {
|
|
2060
2058
|
if (!e)
|
|
@@ -2113,7 +2111,7 @@ class C {
|
|
|
2113
2111
|
url: n,
|
|
2114
2112
|
data: l
|
|
2115
2113
|
};
|
|
2116
|
-
return await
|
|
2114
|
+
return await H.createData("/api/client?query=log/save&method=POST", i), null;
|
|
2117
2115
|
}
|
|
2118
2116
|
static loadAds() {
|
|
2119
2117
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2130,7 +2128,7 @@ class C {
|
|
|
2130
2128
|
if (e) {
|
|
2131
2129
|
const n = "/scripts/" + e + ".js?v=100.0.5";
|
|
2132
2130
|
try {
|
|
2133
|
-
return await
|
|
2131
|
+
return await H.injectScript({
|
|
2134
2132
|
src: n,
|
|
2135
2133
|
id: t || e,
|
|
2136
2134
|
async: !1,
|
|
@@ -2146,11 +2144,11 @@ class C {
|
|
|
2146
2144
|
if (window.options.googleMapsLoaded === !0)
|
|
2147
2145
|
return;
|
|
2148
2146
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2149
|
-
await
|
|
2147
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2150
2148
|
}
|
|
2151
2149
|
static async loadLeafletApi() {
|
|
2152
2150
|
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";
|
|
2153
|
-
await
|
|
2151
|
+
await H.injectLink({ href: a, id: "leafletCss" }), await H.injectLink({ href: l, id: "gestureCss" }), await H.injectScript({ src: t, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2154
2152
|
src: n,
|
|
2155
2153
|
id: "gestureJs",
|
|
2156
2154
|
async: !1
|
|
@@ -2165,7 +2163,7 @@ class C {
|
|
|
2165
2163
|
}
|
|
2166
2164
|
static async loadSwiper() {
|
|
2167
2165
|
const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
|
|
2168
|
-
await
|
|
2166
|
+
await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
|
|
2169
2167
|
}
|
|
2170
2168
|
static async makeSearchFetchCall(e) {
|
|
2171
2169
|
try {
|
|
@@ -2204,11 +2202,11 @@ class C {
|
|
|
2204
2202
|
state: c = null,
|
|
2205
2203
|
vin: h = null,
|
|
2206
2204
|
license: u = null,
|
|
2207
|
-
token:
|
|
2205
|
+
token: C = null,
|
|
2208
2206
|
phone: M = null
|
|
2209
|
-
} = e || {},
|
|
2207
|
+
} = e || {}, A = t && t !== "", f = i && i !== "" && i !== "18", p = s && s !== "" && i !== "99";
|
|
2210
2208
|
let V = [];
|
|
2211
|
-
return t && t !== "" && V.push("name=" + t),
|
|
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)), f && p ? parseInt(i) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + i)) : (V.push("min=" + i), V.push("max=" + s)) : (f && V.push("min=" + i), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), r && r !== "" && V.push("city=" + r), u && u !== "" && V.push("license=" + u), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), C && C !== "" && V.push("token=" + C), V.join("&");
|
|
2212
2210
|
}
|
|
2213
2211
|
static padTo2Digits(e) {
|
|
2214
2212
|
return e.toString().padStart(2, "0");
|
|
@@ -2225,7 +2223,7 @@ class C {
|
|
|
2225
2223
|
useSearch: i = !1,
|
|
2226
2224
|
useLocation: s = !0,
|
|
2227
2225
|
state: r = ""
|
|
2228
|
-
} = t ?? {}, { tolken: c = null, ip: h = null } = await
|
|
2226
|
+
} = t ?? {}, { tolken: c = null, ip: h = null } = await H.getHeaders(), C = [
|
|
2229
2227
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2230
2228
|
"addressesOnly=" + a,
|
|
2231
2229
|
"useSearch=" + i,
|
|
@@ -2233,9 +2231,9 @@ class C {
|
|
|
2233
2231
|
"useCityStateSearch=" + l,
|
|
2234
2232
|
"useLocation=" + s
|
|
2235
2233
|
];
|
|
2236
|
-
r && r !== "" && !l &&
|
|
2237
|
-
const M =
|
|
2238
|
-
return await
|
|
2234
|
+
r && r !== "" && !l && C.push("state=" + r), c && c !== "" && C.push("tolken=" + c), h && h !== "" && C.push("ip=" + h);
|
|
2235
|
+
const M = C.join("&"), f = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
|
|
2236
|
+
return await H.makeSearchFetchCall(f);
|
|
2239
2237
|
}
|
|
2240
2238
|
static removeElements(e) {
|
|
2241
2239
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -2254,7 +2252,7 @@ class C {
|
|
|
2254
2252
|
});
|
|
2255
2253
|
}
|
|
2256
2254
|
static searchInStates(e) {
|
|
2257
|
-
const t =
|
|
2255
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
2258
2256
|
let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
|
|
2259
2257
|
return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
|
|
2260
2258
|
}
|
|
@@ -2262,7 +2260,7 @@ class C {
|
|
|
2262
2260
|
typeof woopra == "object" && woopra.track(e, t);
|
|
2263
2261
|
}
|
|
2264
2262
|
static setBoundsEntries(e, t = "bounds") {
|
|
2265
|
-
const a =
|
|
2263
|
+
const a = H.getBoundsEntries(t);
|
|
2266
2264
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
2267
2265
|
}
|
|
2268
2266
|
static async setCityState(e = null) {
|
|
@@ -2271,7 +2269,7 @@ class C {
|
|
|
2271
2269
|
return e;
|
|
2272
2270
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
2273
2271
|
let [a = null, n = null] = t.split(",").map((l) => l.trim());
|
|
2274
|
-
if (
|
|
2272
|
+
if (H.getStates(), a && !n) {
|
|
2275
2273
|
const l = this.searchInStates(a);
|
|
2276
2274
|
l && (a = null, n = l.short);
|
|
2277
2275
|
}
|
|
@@ -2289,7 +2287,7 @@ class C {
|
|
|
2289
2287
|
return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
|
|
2290
2288
|
}
|
|
2291
2289
|
static async setSearchValueClient(e, t = "recsSearchValue") {
|
|
2292
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
2290
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
|
|
2293
2291
|
}
|
|
2294
2292
|
static stickyHeader(e = ".nav") {
|
|
2295
2293
|
const t = document.querySelector(e);
|
|
@@ -2316,7 +2314,7 @@ class C {
|
|
|
2316
2314
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2317
2315
|
}
|
|
2318
2316
|
static useLayerTitle(e, t) {
|
|
2319
|
-
const a =
|
|
2317
|
+
const a = H.getLayerTitle(e);
|
|
2320
2318
|
L.tileLayer(a, {
|
|
2321
2319
|
maxNativeZoom: 19,
|
|
2322
2320
|
maxZoom: 25,
|
|
@@ -2325,10 +2323,10 @@ class C {
|
|
|
2325
2323
|
}).addTo(t);
|
|
2326
2324
|
}
|
|
2327
2325
|
static ucWords(e) {
|
|
2328
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
2326
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
2329
2327
|
}
|
|
2330
2328
|
}
|
|
2331
|
-
function
|
|
2329
|
+
function V1(d, e = []) {
|
|
2332
2330
|
return new Proxy(d, {
|
|
2333
2331
|
get: function(t, a) {
|
|
2334
2332
|
return t[a];
|
|
@@ -2339,14 +2337,14 @@ function o1(d, e = []) {
|
|
|
2339
2337
|
}
|
|
2340
2338
|
});
|
|
2341
2339
|
}
|
|
2342
|
-
class
|
|
2340
|
+
class P1 {
|
|
2343
2341
|
init(e) {
|
|
2344
2342
|
this.handleSliders(e);
|
|
2345
2343
|
}
|
|
2346
2344
|
handleSliders({ items: e, id: t = 1, cb: a }) {
|
|
2347
2345
|
if (!document.getElementById(`slider-container-${t}`))
|
|
2348
2346
|
return;
|
|
2349
|
-
const n =
|
|
2347
|
+
const n = V1(
|
|
2350
2348
|
{
|
|
2351
2349
|
activeIndex: 0,
|
|
2352
2350
|
computedSlides: [],
|
|
@@ -2429,31 +2427,31 @@ class T1 {
|
|
|
2429
2427
|
}
|
|
2430
2428
|
}
|
|
2431
2429
|
export {
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2430
|
+
f1 as Accordion,
|
|
2431
|
+
M1 as Alert,
|
|
2432
|
+
g1 as Autocomplete,
|
|
2433
|
+
v1 as Badge,
|
|
2434
|
+
A1 as Button,
|
|
2435
|
+
y1 as ButtonGroup,
|
|
2436
|
+
b1 as Card,
|
|
2437
|
+
P1 as CardSlider,
|
|
2438
|
+
w1 as Checkbox,
|
|
2439
|
+
H as Common,
|
|
2440
|
+
x1 as Container,
|
|
2441
|
+
S1 as Dialog,
|
|
2442
|
+
k1 as DialogOld,
|
|
2443
|
+
z1 as Dots,
|
|
2444
|
+
j1 as FunnelHeader,
|
|
2445
|
+
b as Icon,
|
|
2446
|
+
Z1 as LoadingBar,
|
|
2447
|
+
B1 as Popover,
|
|
2448
|
+
D1 as ProgressBar,
|
|
2449
|
+
E1 as Radio,
|
|
2450
|
+
T1 as Select,
|
|
2451
|
+
$1 as Skeleton,
|
|
2452
|
+
O1 as Slider,
|
|
2453
|
+
N1 as Spinner,
|
|
2454
|
+
I1 as Stars,
|
|
2455
|
+
F1 as TextArea,
|
|
2456
|
+
q1 as Textbox
|
|
2459
2457
|
};
|
package/dist/scripts/index.d.ts
CHANGED
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Button{@apply
|
|
1
|
+
.Button{@apply focus:outline-none font-semibold;}.Button:not(.Button--rounded){@apply rounded;}.Button:not(.Button--link){@apply focus:ring-2 focus:ring-slate-700 no-underline;}.Button.Button--primary{@apply text-slate-700 bg-black-250 border border-slate-700 hover:bg-black-300;}.Button.Button--secondary{@apply bg-teal-700 border border-teal-700 hover:bg-teal-700 text-white focus:ring-teal-700/50;}.Button.Button--sm{@apply px-2 py-1;}.Button.Button--md{@apply px-4 py-1;}.Button.Button--link:not(.Button--custom-link){@apply text-slate-700 underline !important;}.Button.Button--uppercase{@apply uppercase;}.Button.Button--rounded{@apply rounded-full;}.Button.Button--icon{@apply p-1 !important;}.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;}.Button.Button--disabled,.Button svg{@apply pointer-events-none;}.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vehiclehistory/property-lib",
|
|
3
3
|
"description": "Shared UI/Utility Library for Property Sites",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.21",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/penguin-marketing/vh-recs-ui-library.git"
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"./dist/styles.css": "./dist/styles.css"
|
|
22
22
|
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
23
26
|
"scripts": {
|
|
24
27
|
"build": "tsc -b && vite build",
|
|
25
28
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
"sass": "^1.77.8",
|
|
46
49
|
"typescript": "^5.5.4",
|
|
47
50
|
"vite": "^5.3.5",
|
|
48
|
-
"vite-plugin-dts": "^4.0.
|
|
51
|
+
"vite-plugin-dts": "^4.0.1",
|
|
49
52
|
"vite-tsconfig-paths": "^4.3.2"
|
|
50
53
|
}
|
|
51
54
|
}
|