@vehiclehistory/property-lib 0.0.967 → 0.0.968
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.es.js +225 -236
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c, jsxs as g, Fragment as S } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import m from "classnames";
|
|
3
3
|
import { memo as A, useState as Z, useEffect as N } from "react";
|
|
4
4
|
const W = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
@@ -510,7 +510,7 @@ const W = {
|
|
|
510
510
|
"svg",
|
|
511
511
|
{
|
|
512
512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
513
|
-
className:
|
|
513
|
+
className: m(
|
|
514
514
|
"fill-current flex-shrink-0",
|
|
515
515
|
W[a],
|
|
516
516
|
l,
|
|
@@ -537,7 +537,7 @@ const W = {
|
|
|
537
537
|
return /* @__PURE__ */ c(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
className:
|
|
540
|
+
className: m(
|
|
541
541
|
"accordion shadow rounded-lg",
|
|
542
542
|
{
|
|
543
543
|
"accordion--open": i
|
|
@@ -549,7 +549,7 @@ const W = {
|
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
551
551
|
type: "button",
|
|
552
|
-
className:
|
|
552
|
+
className: m(
|
|
553
553
|
"accordion-header flex w-full justify-between items-center bg-gray-50 px-4 py-2 text-left font-medium text-slate-700 border border-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75"
|
|
554
554
|
),
|
|
555
555
|
title: n,
|
|
@@ -572,7 +572,7 @@ const W = {
|
|
|
572
572
|
s && i && /* @__PURE__ */ c(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
|
-
className:
|
|
575
|
+
className: m(
|
|
576
576
|
"accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
577
577
|
a
|
|
578
578
|
),
|
|
@@ -582,7 +582,7 @@ const W = {
|
|
|
582
582
|
!s && /* @__PURE__ */ c(
|
|
583
583
|
"div",
|
|
584
584
|
{
|
|
585
|
-
className:
|
|
585
|
+
className: m(
|
|
586
586
|
"accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
587
587
|
a,
|
|
588
588
|
{ hidden: !i }
|
|
@@ -624,14 +624,14 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon: o, iconColor:
|
|
627
|
+
}, { icon: o, iconColor: p, styles: u } = r[i];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
631
|
id: i,
|
|
632
|
-
className:
|
|
632
|
+
className: m(
|
|
633
633
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
|
-
|
|
634
|
+
u,
|
|
635
635
|
e
|
|
636
636
|
),
|
|
637
637
|
...l,
|
|
@@ -641,21 +641,21 @@ const W = {
|
|
|
641
641
|
{
|
|
642
642
|
name: o,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
|
-
className:
|
|
644
|
+
className: p,
|
|
645
645
|
size: "xSmall"
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
648
648
|
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
649
|
-
/* @__PURE__ */ c("div", { className:
|
|
649
|
+
/* @__PURE__ */ c("div", { className: m("font-medium text-sm", s), children: n }),
|
|
650
650
|
t.length > 0 ? /* @__PURE__ */ c(
|
|
651
651
|
"ul",
|
|
652
652
|
{
|
|
653
653
|
role: "list",
|
|
654
|
-
className:
|
|
654
|
+
className: m(
|
|
655
655
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
656
656
|
a
|
|
657
657
|
),
|
|
658
|
-
children: t.map((V,
|
|
658
|
+
children: t.map((V, C) => /* @__PURE__ */ c("li", { children: V }, C))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -674,10 +674,10 @@ const W = {
|
|
|
674
674
|
leftIcon: i = "homeSearch",
|
|
675
675
|
mobileBackdrop: r = !1,
|
|
676
676
|
name: o = "",
|
|
677
|
-
options:
|
|
678
|
-
parentProps:
|
|
677
|
+
options: p = [],
|
|
678
|
+
parentProps: u = {},
|
|
679
679
|
placeholder: V = "",
|
|
680
|
-
props:
|
|
680
|
+
props: C = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
682
|
required: M = !1,
|
|
683
683
|
showSearchIcon: y = !0,
|
|
@@ -697,14 +697,14 @@ const W = {
|
|
|
697
697
|
"data-search": t,
|
|
698
698
|
"data-search-type": E,
|
|
699
699
|
"data-use-google": j,
|
|
700
|
-
className:
|
|
700
|
+
className: m("Autocomplete", e),
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
|
-
...
|
|
702
|
+
...u,
|
|
703
703
|
children: [
|
|
704
704
|
y && /* @__PURE__ */ g(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
|
-
className:
|
|
707
|
+
className: m(
|
|
708
708
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
709
709
|
{
|
|
710
710
|
"pointer-events-none": r
|
|
@@ -737,7 +737,7 @@ const W = {
|
|
|
737
737
|
{
|
|
738
738
|
"data-lpignore": "true",
|
|
739
739
|
autoFocus: d,
|
|
740
|
-
className:
|
|
740
|
+
className: m(
|
|
741
741
|
"w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
|
|
742
742
|
{
|
|
743
743
|
"pl-8": y === !0,
|
|
@@ -755,13 +755,13 @@ const W = {
|
|
|
755
755
|
name: o || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
|
-
...
|
|
758
|
+
...C
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
n && /* @__PURE__ */ c(
|
|
762
762
|
"label",
|
|
763
763
|
{
|
|
764
|
-
className:
|
|
764
|
+
className: m(
|
|
765
765
|
"floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
|
|
766
766
|
{
|
|
767
767
|
"!left-7": y === !0,
|
|
@@ -828,7 +828,7 @@ const W = {
|
|
|
828
828
|
"data-title": b,
|
|
829
829
|
"aria-labelledby": "Label",
|
|
830
830
|
"aria-activedescendant": "search-item-0",
|
|
831
|
-
children:
|
|
831
|
+
children: p.length > 0 ? p.map((k, z) => /* @__PURE__ */ c(
|
|
832
832
|
"li",
|
|
833
833
|
{
|
|
834
834
|
id: `search-item-${z}`,
|
|
@@ -856,7 +856,7 @@ const W = {
|
|
|
856
856
|
}) => /* @__PURE__ */ c(
|
|
857
857
|
a || "span",
|
|
858
858
|
{
|
|
859
|
-
className:
|
|
859
|
+
className: m(
|
|
860
860
|
" bg-gray-200 font-semibold py-1 px-2 rounded",
|
|
861
861
|
{
|
|
862
862
|
"text-sm": t === "sm",
|
|
@@ -878,10 +878,10 @@ const W = {
|
|
|
878
878
|
props: i = {},
|
|
879
879
|
rightIcon: r,
|
|
880
880
|
rightIconProps: o = {},
|
|
881
|
-
rounded:
|
|
882
|
-
size:
|
|
881
|
+
rounded: p = !1,
|
|
882
|
+
size: u = "md",
|
|
883
883
|
type: V = "button",
|
|
884
|
-
uppercase:
|
|
884
|
+
uppercase: C = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
887
|
const M = l ? "a" : "button";
|
|
@@ -889,15 +889,15 @@ const W = {
|
|
|
889
889
|
M,
|
|
890
890
|
{
|
|
891
891
|
type: M !== "a" ? V : null,
|
|
892
|
-
className:
|
|
892
|
+
className: m(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
895
895
|
[`button--${f}`]: f,
|
|
896
|
-
[`button--${
|
|
897
|
-
"button--rounded":
|
|
896
|
+
[`button--${u}`]: u,
|
|
897
|
+
"button--rounded": p,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
|
-
"button--uppercase":
|
|
900
|
+
"button--uppercase": C,
|
|
901
901
|
"button--borderless": d || f === "link"
|
|
902
902
|
},
|
|
903
903
|
n
|
|
@@ -910,7 +910,7 @@ const W = {
|
|
|
910
910
|
x,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
|
-
size:
|
|
913
|
+
size: u === "md" ? "small" : "xSmall",
|
|
914
914
|
viewBox: "0 0 24 24",
|
|
915
915
|
...t
|
|
916
916
|
}
|
|
@@ -920,7 +920,7 @@ const W = {
|
|
|
920
920
|
x,
|
|
921
921
|
{
|
|
922
922
|
name: r,
|
|
923
|
-
size:
|
|
923
|
+
size: u === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
925
|
...o
|
|
926
926
|
}
|
|
@@ -939,20 +939,20 @@ const W = {
|
|
|
939
939
|
name: i = "",
|
|
940
940
|
props: r = {},
|
|
941
941
|
variation: o = "primary",
|
|
942
|
-
value:
|
|
942
|
+
value: p = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const
|
|
944
|
+
const u = l ? "div" : "label", V = u === "label" ? { htmlFor: s } : {};
|
|
945
945
|
return /* @__PURE__ */ g(
|
|
946
|
-
|
|
946
|
+
u,
|
|
947
947
|
{
|
|
948
|
-
className:
|
|
948
|
+
className: m("checkbox flex items-center", o, t),
|
|
949
949
|
...V,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
952
952
|
"input",
|
|
953
953
|
{
|
|
954
954
|
checked: d,
|
|
955
|
-
className:
|
|
955
|
+
className: m(
|
|
956
956
|
"form-checkbox ",
|
|
957
957
|
{
|
|
958
958
|
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
@@ -962,7 +962,7 @@ const W = {
|
|
|
962
962
|
id: s,
|
|
963
963
|
name: i,
|
|
964
964
|
type: "checkbox",
|
|
965
|
-
value:
|
|
965
|
+
value: p,
|
|
966
966
|
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
@@ -981,10 +981,10 @@ const W = {
|
|
|
981
981
|
disableClose: i = !1,
|
|
982
982
|
footer: r,
|
|
983
983
|
fullMobile: o = !0,
|
|
984
|
-
headerClass:
|
|
985
|
-
hideClose:
|
|
984
|
+
headerClass: p,
|
|
985
|
+
hideClose: u = !1,
|
|
986
986
|
iconSize: V = "medium",
|
|
987
|
-
preventPageScroll:
|
|
987
|
+
preventPageScroll: C = !0,
|
|
988
988
|
stickyHeader: f = !1,
|
|
989
989
|
title: M = "",
|
|
990
990
|
titleClass: y,
|
|
@@ -999,12 +999,12 @@ const W = {
|
|
|
999
999
|
inert: "",
|
|
1000
1000
|
...i ? { closedby: "none" } : null,
|
|
1001
1001
|
id: `${e}-dialog`,
|
|
1002
|
-
className:
|
|
1002
|
+
className: m(
|
|
1003
1003
|
"dialog",
|
|
1004
1004
|
{
|
|
1005
1005
|
"dialog-full-mobile": o,
|
|
1006
1006
|
dark: l,
|
|
1007
|
-
"prevent-scroll":
|
|
1007
|
+
"prevent-scroll": C
|
|
1008
1008
|
},
|
|
1009
1009
|
a
|
|
1010
1010
|
),
|
|
@@ -1017,18 +1017,18 @@ const W = {
|
|
|
1017
1017
|
/* @__PURE__ */ g(
|
|
1018
1018
|
"header",
|
|
1019
1019
|
{
|
|
1020
|
-
className:
|
|
1020
|
+
className: m(
|
|
1021
1021
|
"dialog-header",
|
|
1022
1022
|
{
|
|
1023
1023
|
"sticky top-0 bg-white z-10": f,
|
|
1024
1024
|
"!pb-0 border-0 justify-end": !M,
|
|
1025
1025
|
"justify-between border-b": M
|
|
1026
1026
|
},
|
|
1027
|
-
|
|
1027
|
+
p
|
|
1028
1028
|
),
|
|
1029
1029
|
children: [
|
|
1030
1030
|
M && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: y, children: M }),
|
|
1031
|
-
!
|
|
1031
|
+
!u && /* @__PURE__ */ c(
|
|
1032
1032
|
"button",
|
|
1033
1033
|
{
|
|
1034
1034
|
type: "button",
|
|
@@ -1053,7 +1053,7 @@ const W = {
|
|
|
1053
1053
|
"div",
|
|
1054
1054
|
{
|
|
1055
1055
|
id: `${e}-dialog-content`,
|
|
1056
|
-
className:
|
|
1056
|
+
className: m(
|
|
1057
1057
|
"dialog-content",
|
|
1058
1058
|
{
|
|
1059
1059
|
"custom-scrollbar": s
|
|
@@ -1070,7 +1070,7 @@ const W = {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
)
|
|
1072
1072
|
] });
|
|
1073
|
-
}, B1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className:
|
|
1073
|
+
}, B1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: m("Dots mx-auto", d), children: [
|
|
1074
1074
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
|
|
1075
1075
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
|
|
1076
1076
|
/* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
|
|
@@ -1090,15 +1090,15 @@ const W = {
|
|
|
1090
1090
|
function l({ cb: i }) {
|
|
1091
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1092
1092
|
if (!r) return;
|
|
1093
|
-
let o,
|
|
1094
|
-
function V(
|
|
1095
|
-
o === void 0 && (o =
|
|
1096
|
-
const f =
|
|
1097
|
-
if (
|
|
1093
|
+
let o, p, u = !1;
|
|
1094
|
+
function V(C) {
|
|
1095
|
+
o === void 0 && (o = C);
|
|
1096
|
+
const f = C - o;
|
|
1097
|
+
if (p !== C) {
|
|
1098
1098
|
const M = f / n * 101;
|
|
1099
|
-
r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (i && i(),
|
|
1099
|
+
r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (i && i(), u = !0, window.cancelAnimationFrame(C));
|
|
1100
1100
|
}
|
|
1101
|
-
f < n && (
|
|
1101
|
+
f < n && (p = C, u || window.requestAnimationFrame(V));
|
|
1102
1102
|
}
|
|
1103
1103
|
window.requestAnimationFrame(V);
|
|
1104
1104
|
}
|
|
@@ -1107,7 +1107,7 @@ const W = {
|
|
|
1107
1107
|
}, []), /* @__PURE__ */ c(
|
|
1108
1108
|
"div",
|
|
1109
1109
|
{
|
|
1110
|
-
className:
|
|
1110
|
+
className: m(
|
|
1111
1111
|
"loading-bar my-8",
|
|
1112
1112
|
`loading-bar__${s}`,
|
|
1113
1113
|
{
|
|
@@ -1121,7 +1121,7 @@ const W = {
|
|
|
1121
1121
|
children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
|
|
1122
1122
|
}
|
|
1123
1123
|
);
|
|
1124
|
-
}, q1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className:
|
|
1124
|
+
}, q1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), j1 = A(t1), P1 = ({
|
|
1125
1125
|
activator: d,
|
|
1126
1126
|
activatorClass: e = "",
|
|
1127
1127
|
attrs: t = {},
|
|
@@ -1135,11 +1135,11 @@ const W = {
|
|
|
1135
1135
|
/* @__PURE__ */ c(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
1138
|
-
className:
|
|
1138
|
+
className: m("popover z-10 max-w-[350px] hidden", n),
|
|
1139
1139
|
children: /* @__PURE__ */ g(
|
|
1140
1140
|
"div",
|
|
1141
1141
|
{
|
|
1142
|
-
className:
|
|
1142
|
+
className: m(
|
|
1143
1143
|
"popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
|
|
1144
1144
|
s
|
|
1145
1145
|
),
|
|
@@ -1160,7 +1160,7 @@ const W = {
|
|
|
1160
1160
|
/* @__PURE__ */ c(
|
|
1161
1161
|
"div",
|
|
1162
1162
|
{
|
|
1163
|
-
className:
|
|
1163
|
+
className: m(
|
|
1164
1164
|
"popover-activator",
|
|
1165
1165
|
`trigger-${r}`,
|
|
1166
1166
|
{
|
|
@@ -1185,9 +1185,9 @@ const W = {
|
|
|
1185
1185
|
rounded: r = !0,
|
|
1186
1186
|
showLabel: o = !1
|
|
1187
1187
|
}) => {
|
|
1188
|
-
const
|
|
1188
|
+
const u = ((V, C) => {
|
|
1189
1189
|
if (V) {
|
|
1190
|
-
const f = Number(
|
|
1190
|
+
const f = Number(C) / V;
|
|
1191
1191
|
return f > 1 ? 100 : f * 100;
|
|
1192
1192
|
}
|
|
1193
1193
|
return n;
|
|
@@ -1195,7 +1195,7 @@ const W = {
|
|
|
1195
1195
|
return /* @__PURE__ */ c(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
|
-
className:
|
|
1198
|
+
className: m(
|
|
1199
1199
|
"w-full bg-gray-200",
|
|
1200
1200
|
{ "rounded-full": r },
|
|
1201
1201
|
a
|
|
@@ -1208,19 +1208,19 @@ const W = {
|
|
|
1208
1208
|
children: /* @__PURE__ */ c(
|
|
1209
1209
|
"div",
|
|
1210
1210
|
{
|
|
1211
|
-
className:
|
|
1211
|
+
className: m(
|
|
1212
1212
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1213
1213
|
t
|
|
1214
1214
|
),
|
|
1215
|
-
style: { width: `${
|
|
1215
|
+
style: { width: `${u}%` },
|
|
1216
1216
|
children: o && /* @__PURE__ */ c(
|
|
1217
1217
|
"span",
|
|
1218
1218
|
{
|
|
1219
|
-
className:
|
|
1219
|
+
className: m(
|
|
1220
1220
|
"font-bold text-white text-xs mr-2",
|
|
1221
1221
|
l
|
|
1222
1222
|
),
|
|
1223
|
-
children: s || Math.round(
|
|
1223
|
+
children: s || Math.round(u)
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
}
|
|
@@ -1239,18 +1239,18 @@ const W = {
|
|
|
1239
1239
|
variation: r = "primary",
|
|
1240
1240
|
value: o = ""
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const
|
|
1242
|
+
const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
|
|
1243
1243
|
return /* @__PURE__ */ g(
|
|
1244
|
-
|
|
1244
|
+
p,
|
|
1245
1245
|
{
|
|
1246
|
-
className:
|
|
1247
|
-
...
|
|
1246
|
+
className: m("radio flex items-center", t),
|
|
1247
|
+
...u,
|
|
1248
1248
|
children: [
|
|
1249
1249
|
/* @__PURE__ */ c(
|
|
1250
1250
|
"input",
|
|
1251
1251
|
{
|
|
1252
1252
|
checked: d,
|
|
1253
|
-
className:
|
|
1253
|
+
className: m(
|
|
1254
1254
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1255
1255
|
{
|
|
1256
1256
|
"focus:ring-[#222]": r === "primary"
|
|
@@ -1279,22 +1279,22 @@ const W = {
|
|
|
1279
1279
|
placeholder: i = "",
|
|
1280
1280
|
props: r = {},
|
|
1281
1281
|
selectClass: o = "",
|
|
1282
|
-
styles:
|
|
1283
|
-
variation:
|
|
1282
|
+
styles: p = null,
|
|
1283
|
+
variation: u = "primary",
|
|
1284
1284
|
value: V
|
|
1285
1285
|
}) => {
|
|
1286
|
-
const
|
|
1286
|
+
const C = i ? { defaultValue: "" } : {};
|
|
1287
1287
|
return /* @__PURE__ */ g(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
1290
|
-
className:
|
|
1291
|
-
style:
|
|
1290
|
+
className: m("relative select", d, u),
|
|
1291
|
+
style: p ? { ...p } : null,
|
|
1292
1292
|
children: [
|
|
1293
1293
|
n,
|
|
1294
1294
|
/* @__PURE__ */ g(
|
|
1295
1295
|
"select",
|
|
1296
1296
|
{
|
|
1297
|
-
className:
|
|
1297
|
+
className: m(
|
|
1298
1298
|
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
1299
1299
|
{
|
|
1300
1300
|
"!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500": e
|
|
@@ -1304,7 +1304,7 @@ const W = {
|
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
1306
1306
|
value: V,
|
|
1307
|
-
...
|
|
1307
|
+
...C,
|
|
1308
1308
|
...r,
|
|
1309
1309
|
children: [
|
|
1310
1310
|
i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
|
|
@@ -1326,7 +1326,7 @@ const W = {
|
|
|
1326
1326
|
}, U1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ g(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
1329
|
-
className:
|
|
1329
|
+
className: m(
|
|
1330
1330
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1331
1331
|
d
|
|
1332
1332
|
),
|
|
@@ -1341,7 +1341,7 @@ const W = {
|
|
|
1341
1341
|
className: t,
|
|
1342
1342
|
id: a = 1,
|
|
1343
1343
|
padding: n = !0
|
|
1344
|
-
}) => /* @__PURE__ */ g("div", { className:
|
|
1344
|
+
}) => /* @__PURE__ */ g("div", { className: m("slider", t), id: `slider-${a}`, children: [
|
|
1345
1345
|
/* @__PURE__ */ c(
|
|
1346
1346
|
"button",
|
|
1347
1347
|
{
|
|
@@ -1370,10 +1370,10 @@ const W = {
|
|
|
1370
1370
|
children: /* @__PURE__ */ c(x, { name: "chevronRight" })
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
|
-
] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className:
|
|
1373
|
+
] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1374
1374
|
x,
|
|
1375
1375
|
{
|
|
1376
|
-
className:
|
|
1376
|
+
className: m("animate-spin text-black-900", e),
|
|
1377
1377
|
size: "xSmall",
|
|
1378
1378
|
name: "spinnerDark",
|
|
1379
1379
|
viewBox: "0 0 24 24",
|
|
@@ -1389,7 +1389,7 @@ const W = {
|
|
|
1389
1389
|
return /* @__PURE__ */ c(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
|
-
className:
|
|
1392
|
+
className: m(
|
|
1393
1393
|
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
1394
1394
|
d
|
|
1395
1395
|
),
|
|
@@ -1407,8 +1407,8 @@ const W = {
|
|
|
1407
1407
|
placeholder: i = "",
|
|
1408
1408
|
props: r = {},
|
|
1409
1409
|
rows: o = 4,
|
|
1410
|
-
variation:
|
|
1411
|
-
}) => /* @__PURE__ */ g("div", { className:
|
|
1410
|
+
variation: p = "primary"
|
|
1411
|
+
}) => /* @__PURE__ */ g("div", { className: m("relative textarea", p, d), children: [
|
|
1412
1412
|
/* @__PURE__ */ c(
|
|
1413
1413
|
"textarea",
|
|
1414
1414
|
{
|
|
@@ -1416,7 +1416,7 @@ const W = {
|
|
|
1416
1416
|
id: n,
|
|
1417
1417
|
name: l,
|
|
1418
1418
|
rows: o,
|
|
1419
|
-
className:
|
|
1419
|
+
className: m(
|
|
1420
1420
|
"form-textarea min-h-[40px] pl-4",
|
|
1421
1421
|
e ? "pr-10" : "pr-4",
|
|
1422
1422
|
{
|
|
@@ -1454,15 +1454,15 @@ const W = {
|
|
|
1454
1454
|
name: i = "",
|
|
1455
1455
|
placeholder: r = "",
|
|
1456
1456
|
props: o = {},
|
|
1457
|
-
styles:
|
|
1458
|
-
type:
|
|
1457
|
+
styles: p = null,
|
|
1458
|
+
type: u = "text",
|
|
1459
1459
|
value: V,
|
|
1460
|
-
variation:
|
|
1460
|
+
variation: C = "primary"
|
|
1461
1461
|
}) => /* @__PURE__ */ g(
|
|
1462
1462
|
"div",
|
|
1463
1463
|
{
|
|
1464
|
-
className:
|
|
1465
|
-
style:
|
|
1464
|
+
className: m("relative textbox", C, d),
|
|
1465
|
+
style: p ? { ...p } : null,
|
|
1466
1466
|
children: [
|
|
1467
1467
|
n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
|
|
1468
1468
|
x,
|
|
@@ -1479,10 +1479,10 @@ const W = {
|
|
|
1479
1479
|
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
1481
|
name: i,
|
|
1482
|
-
type:
|
|
1482
|
+
type: u,
|
|
1483
1483
|
value: V,
|
|
1484
1484
|
autoComplete: "off",
|
|
1485
|
-
className:
|
|
1485
|
+
className: m(
|
|
1486
1486
|
"form-input",
|
|
1487
1487
|
e ? "pr-10" : "pr-4",
|
|
1488
1488
|
n ? "pl-8" : "pl-4",
|
|
@@ -1550,7 +1550,7 @@ const W = {
|
|
|
1550
1550
|
/* @__PURE__ */ c(
|
|
1551
1551
|
F,
|
|
1552
1552
|
{
|
|
1553
|
-
className:
|
|
1553
|
+
className: m(
|
|
1554
1554
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
1555
1555
|
),
|
|
1556
1556
|
variation: "link",
|
|
@@ -1565,16 +1565,16 @@ const W = {
|
|
|
1565
1565
|
"form",
|
|
1566
1566
|
{
|
|
1567
1567
|
id: "contactForm",
|
|
1568
|
-
className:
|
|
1568
|
+
className: m("contact-form", t, {
|
|
1569
1569
|
uppercase: l
|
|
1570
1570
|
}),
|
|
1571
1571
|
children: [
|
|
1572
|
-
/* @__PURE__ */ c("h2", { id: "contact-title", className:
|
|
1572
|
+
/* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
|
|
1573
1573
|
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
|
|
1574
1574
|
/* @__PURE__ */ g(
|
|
1575
1575
|
"div",
|
|
1576
1576
|
{
|
|
1577
|
-
className:
|
|
1577
|
+
className: m(
|
|
1578
1578
|
"p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
|
|
1579
1579
|
e
|
|
1580
1580
|
),
|
|
@@ -1585,7 +1585,7 @@ const W = {
|
|
|
1585
1585
|
id: "contact-name",
|
|
1586
1586
|
name: "contact-name",
|
|
1587
1587
|
placeholder: "Name",
|
|
1588
|
-
inputClass:
|
|
1588
|
+
inputClass: m({
|
|
1589
1589
|
"placeholder:uppercase": l
|
|
1590
1590
|
})
|
|
1591
1591
|
}
|
|
@@ -1596,7 +1596,7 @@ const W = {
|
|
|
1596
1596
|
id: "contact-email",
|
|
1597
1597
|
name: "contact-email",
|
|
1598
1598
|
placeholder: "Email",
|
|
1599
|
-
inputClass:
|
|
1599
|
+
inputClass: m({
|
|
1600
1600
|
"placeholder:uppercase": l
|
|
1601
1601
|
})
|
|
1602
1602
|
}
|
|
@@ -1607,7 +1607,7 @@ const W = {
|
|
|
1607
1607
|
id: "contact-message",
|
|
1608
1608
|
name: "contact-message",
|
|
1609
1609
|
placeholder: "Message",
|
|
1610
|
-
inputClass:
|
|
1610
|
+
inputClass: m({
|
|
1611
1611
|
"placeholder:uppercase": l
|
|
1612
1612
|
})
|
|
1613
1613
|
}
|
|
@@ -1615,7 +1615,7 @@ const W = {
|
|
|
1615
1615
|
/* @__PURE__ */ c(
|
|
1616
1616
|
F,
|
|
1617
1617
|
{
|
|
1618
|
-
className:
|
|
1618
|
+
className: m(
|
|
1619
1619
|
"flex mx-auto items-center",
|
|
1620
1620
|
{
|
|
1621
1621
|
uppercase: l
|
|
@@ -1644,30 +1644,30 @@ const W = {
|
|
|
1644
1644
|
headerClass: i,
|
|
1645
1645
|
list: r = !1,
|
|
1646
1646
|
props: o = {},
|
|
1647
|
-
variation:
|
|
1647
|
+
variation: p = "primary"
|
|
1648
1648
|
}) => {
|
|
1649
|
-
const
|
|
1649
|
+
const u = r ? "ul" : "div";
|
|
1650
1650
|
return /* @__PURE__ */ g(
|
|
1651
1651
|
"div",
|
|
1652
1652
|
{
|
|
1653
|
-
className:
|
|
1653
|
+
className: m(
|
|
1654
1654
|
"content-card",
|
|
1655
1655
|
{ "content-card--block": d },
|
|
1656
|
-
`content-card--${
|
|
1656
|
+
`content-card--${p}`,
|
|
1657
1657
|
t
|
|
1658
1658
|
),
|
|
1659
1659
|
...o,
|
|
1660
1660
|
children: [
|
|
1661
|
-
l && /* @__PURE__ */ c("div", { className:
|
|
1661
|
+
l && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1662
1662
|
/* @__PURE__ */ c(
|
|
1663
|
-
|
|
1663
|
+
u,
|
|
1664
1664
|
{
|
|
1665
|
-
className:
|
|
1665
|
+
className: m("content-card__content", a),
|
|
1666
1666
|
role: r ? "list" : null,
|
|
1667
1667
|
children: e
|
|
1668
1668
|
}
|
|
1669
1669
|
),
|
|
1670
|
-
s && /* @__PURE__ */ c("div", { className:
|
|
1670
|
+
s && /* @__PURE__ */ c("div", { className: m("content-card__footer", n), children: s })
|
|
1671
1671
|
]
|
|
1672
1672
|
}
|
|
1673
1673
|
);
|
|
@@ -1682,16 +1682,16 @@ const W = {
|
|
|
1682
1682
|
rowGap: i = 1,
|
|
1683
1683
|
value: r,
|
|
1684
1684
|
valueClass: o,
|
|
1685
|
-
wrap:
|
|
1685
|
+
wrap: p = !1
|
|
1686
1686
|
}) => /* @__PURE__ */ g(
|
|
1687
1687
|
"div",
|
|
1688
1688
|
{
|
|
1689
|
-
className:
|
|
1689
|
+
className: m(
|
|
1690
1690
|
"flex",
|
|
1691
1691
|
{
|
|
1692
1692
|
"flex-col items-start": a === "col",
|
|
1693
1693
|
"flex-row items-center": a === "row",
|
|
1694
|
-
"flex-wrap":
|
|
1694
|
+
"flex-wrap": p
|
|
1695
1695
|
},
|
|
1696
1696
|
e
|
|
1697
1697
|
),
|
|
@@ -1701,8 +1701,8 @@ const W = {
|
|
|
1701
1701
|
},
|
|
1702
1702
|
...l,
|
|
1703
1703
|
children: [
|
|
1704
|
-
n && /* @__PURE__ */ c("div", { className:
|
|
1705
|
-
r && /* @__PURE__ */ c("div", { className:
|
|
1704
|
+
n && /* @__PURE__ */ c("div", { className: m("item-label", s), children: n }),
|
|
1705
|
+
r && /* @__PURE__ */ c("div", { className: m("item-value", o), children: r }),
|
|
1706
1706
|
d
|
|
1707
1707
|
]
|
|
1708
1708
|
}
|
|
@@ -1718,7 +1718,7 @@ const W = {
|
|
|
1718
1718
|
}) => /* @__PURE__ */ g(
|
|
1719
1719
|
"section",
|
|
1720
1720
|
{
|
|
1721
|
-
className:
|
|
1721
|
+
className: m(
|
|
1722
1722
|
"spacer",
|
|
1723
1723
|
{
|
|
1724
1724
|
"print:!hidden": a,
|
|
@@ -1728,14 +1728,14 @@ const W = {
|
|
|
1728
1728
|
),
|
|
1729
1729
|
...n,
|
|
1730
1730
|
children: [
|
|
1731
|
-
s && /* @__PURE__ */ c("h2", { className:
|
|
1731
|
+
s && /* @__PURE__ */ c("h2", { className: m("spacer-title", l), id: i, children: s }),
|
|
1732
1732
|
e
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
1735
|
-
), a2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className:
|
|
1735
|
+
), a2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), f1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
|
|
1736
1736
|
a,
|
|
1737
1737
|
{
|
|
1738
|
-
className:
|
|
1738
|
+
className: m(
|
|
1739
1739
|
"!header-4-medium mb-6 flex items-center",
|
|
1740
1740
|
{
|
|
1741
1741
|
"text-center justify-center": d === "center",
|
|
@@ -1888,7 +1888,7 @@ const W = {
|
|
|
1888
1888
|
}, A1 = {
|
|
1889
1889
|
0: "0ms",
|
|
1890
1890
|
50: "50ms"
|
|
1891
|
-
},
|
|
1891
|
+
}, x1 = {
|
|
1892
1892
|
"center-top": "center 30%"
|
|
1893
1893
|
}, O = {
|
|
1894
1894
|
animation: V1,
|
|
@@ -1900,7 +1900,7 @@ const W = {
|
|
|
1900
1900
|
maxWidth: v1,
|
|
1901
1901
|
screens: b1,
|
|
1902
1902
|
transitionDuration: A1,
|
|
1903
|
-
transformOrigin:
|
|
1903
|
+
transformOrigin: x1
|
|
1904
1904
|
}, I = {
|
|
1905
1905
|
black: {
|
|
1906
1906
|
50: "#FCFCFC",
|
|
@@ -2011,7 +2011,7 @@ const W = {
|
|
|
2011
2011
|
}, s2 = {
|
|
2012
2012
|
...I,
|
|
2013
2013
|
...B
|
|
2014
|
-
},
|
|
2014
|
+
}, y1 = ({ matchUtilities: d, theme: e }) => d(
|
|
2015
2015
|
{
|
|
2016
2016
|
aspect: (t) => ({
|
|
2017
2017
|
"@supports (aspect-ratio: 1 / 1)": {
|
|
@@ -2060,18 +2060,18 @@ const W = {
|
|
|
2060
2060
|
weightProps: i = null
|
|
2061
2061
|
}) => {
|
|
2062
2062
|
const r = {};
|
|
2063
|
-
Object.entries(s).forEach(([o,
|
|
2064
|
-
const
|
|
2065
|
-
"font-size":
|
|
2063
|
+
Object.entries(s).forEach(([o, p]) => {
|
|
2064
|
+
const u = {
|
|
2065
|
+
"font-size": p,
|
|
2066
2066
|
...a
|
|
2067
|
-
}, V = `.${e(`${t}-${o}`)}`,
|
|
2067
|
+
}, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: p }) : {};
|
|
2068
2068
|
r[V] = {
|
|
2069
|
-
...
|
|
2070
|
-
...
|
|
2069
|
+
...u,
|
|
2070
|
+
...C
|
|
2071
2071
|
}, Object.entries(l).forEach(([f, M]) => {
|
|
2072
|
-
const y = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue:
|
|
2072
|
+
const y = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: M }) : {};
|
|
2073
2073
|
r[y] = {
|
|
2074
|
-
...
|
|
2074
|
+
...u,
|
|
2075
2075
|
"font-weight": M,
|
|
2076
2076
|
...h
|
|
2077
2077
|
};
|
|
@@ -2181,7 +2181,7 @@ const W = {
|
|
|
2181
2181
|
classPrefix: "text-body",
|
|
2182
2182
|
sizes: i,
|
|
2183
2183
|
weights: s
|
|
2184
|
-
}),
|
|
2184
|
+
}), y1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
|
|
2185
2185
|
}
|
|
2186
2186
|
], r2 = {
|
|
2187
2187
|
theme: {
|
|
@@ -2218,11 +2218,11 @@ function o2(d, e = []) {
|
|
|
2218
2218
|
function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
|
|
2219
2219
|
let s = !0;
|
|
2220
2220
|
for (const [l, i] of t.entries()) {
|
|
2221
|
-
const r = e.querySelector(`[name="${l}"]`), o = a[l],
|
|
2222
|
-
o.forEach((
|
|
2223
|
-
|
|
2224
|
-
}),
|
|
2225
|
-
|
|
2221
|
+
const r = e.querySelector(`[name="${l}"]`), o = a[l], p = [];
|
|
2222
|
+
o.forEach((u) => {
|
|
2223
|
+
u.isValid(i) || p.push(u.message);
|
|
2224
|
+
}), p.length ? (s = !1, r.classList.add("field-error"), d && d({ isValid: s, field: r, validations: a })) : (r.classList.remove("field-error"), d && d({ isValid: !0, field: r, validations: a })), n && (r == null || r.addEventListener("input", (u) => {
|
|
2225
|
+
u.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
|
|
2226
2226
|
}));
|
|
2227
2227
|
}
|
|
2228
2228
|
return s;
|
|
@@ -2323,10 +2323,10 @@ class h2 {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class H {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const l =
|
|
2329
|
-
e =
|
|
2328
|
+
const l = H.toRad(a - e), i = H.toRad(n - t);
|
|
2329
|
+
e = H.toRad(e), a = H.toRad(a);
|
|
2330
2330
|
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
|
|
2331
2331
|
return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
|
|
2332
2332
|
}
|
|
@@ -2341,9 +2341,9 @@ class C {
|
|
|
2341
2341
|
return;
|
|
2342
2342
|
window.dataLayer = window.dataLayer || [];
|
|
2343
2343
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2344
|
-
typeof
|
|
2344
|
+
typeof H == "function" && t.forEach((a) => {
|
|
2345
2345
|
a.addEventListener("click", () => {
|
|
2346
|
-
|
|
2346
|
+
H.clickTrackEvent(a.dataset.divTrack);
|
|
2347
2347
|
});
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
@@ -2356,7 +2356,7 @@ class C {
|
|
|
2356
2356
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2357
2357
|
if (!t)
|
|
2358
2358
|
return null;
|
|
2359
|
-
const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ??
|
|
2359
|
+
const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
|
|
2360
2360
|
try {
|
|
2361
2361
|
const r = await fetch(e + s, {
|
|
2362
2362
|
method: "POST",
|
|
@@ -2372,12 +2372,9 @@ class C {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
return null;
|
|
2374
2374
|
}
|
|
2375
|
-
static async createDataGetExtra({ useExtra: e
|
|
2376
|
-
const { tolken:
|
|
2377
|
-
|
|
2378
|
-
missSessionId: t
|
|
2379
|
-
});
|
|
2380
|
-
return e === !1 ? "" : "&tolken=" + a + "&ip=" + n;
|
|
2375
|
+
static async createDataGetExtra({ useExtra: e }) {
|
|
2376
|
+
const { tolken: t = null, ip: a = null } = await H.getHeaders();
|
|
2377
|
+
return e === !1 ? "" : "&tolken=" + t + "&ip=" + a;
|
|
2381
2378
|
}
|
|
2382
2379
|
static async createDataReturn(e) {
|
|
2383
2380
|
const t = e.headers.get("content-type");
|
|
@@ -2391,7 +2388,7 @@ class C {
|
|
|
2391
2388
|
}
|
|
2392
2389
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2393
2390
|
try {
|
|
2394
|
-
return await
|
|
2391
|
+
return await H.createData(`/api/cookie/remove?name=${e}`);
|
|
2395
2392
|
} catch (t) {
|
|
2396
2393
|
console.error("deleteSearchValue", t.message);
|
|
2397
2394
|
}
|
|
@@ -2440,12 +2437,12 @@ class C {
|
|
|
2440
2437
|
});
|
|
2441
2438
|
}
|
|
2442
2439
|
static async fetchData(e, t = !1, a = !0) {
|
|
2443
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2440
|
+
const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2444
2441
|
try {
|
|
2445
2442
|
const r = await fetch(i, { method: "GET" });
|
|
2446
2443
|
if (t === !0) {
|
|
2447
|
-
const
|
|
2448
|
-
return
|
|
2444
|
+
const p = await r.text();
|
|
2445
|
+
return p ? p.replace("__next", "") : null;
|
|
2449
2446
|
}
|
|
2450
2447
|
const o = r.headers.get("content-type");
|
|
2451
2448
|
return o && o.indexOf("application/json") !== -1 ? r.json() : null;
|
|
@@ -2460,8 +2457,8 @@ class C {
|
|
|
2460
2457
|
}
|
|
2461
2458
|
static formatDate(e = null) {
|
|
2462
2459
|
return e ? (e = new Date(e), [
|
|
2463
|
-
|
|
2464
|
-
|
|
2460
|
+
H.padTo2Digits(e.getMonth() + 1),
|
|
2461
|
+
H.padTo2Digits(e.getDate()),
|
|
2465
2462
|
e.getFullYear()
|
|
2466
2463
|
].join("-")) : null;
|
|
2467
2464
|
}
|
|
@@ -2510,54 +2507,46 @@ class C {
|
|
|
2510
2507
|
if (t === "license" || t === "license-plate")
|
|
2511
2508
|
return "/report/license-plate";
|
|
2512
2509
|
}
|
|
2513
|
-
static async getHeaders({
|
|
2514
|
-
|
|
2515
|
-
bypassSession: t = !1,
|
|
2516
|
-
missSessionId: a = null
|
|
2517
|
-
} = {}) {
|
|
2518
|
-
var m;
|
|
2510
|
+
static async getHeaders({ ttl: e = 600, bypassSession: t = !1 } = {}) {
|
|
2511
|
+
var p;
|
|
2519
2512
|
const {
|
|
2520
|
-
userAgent:
|
|
2521
|
-
userAgentData:
|
|
2522
|
-
platform:
|
|
2523
|
-
} = navigator || {},
|
|
2513
|
+
userAgent: a = null,
|
|
2514
|
+
userAgentData: n = null,
|
|
2515
|
+
platform: s = null
|
|
2516
|
+
} = navigator || {}, l = (n == null ? void 0 : n.platform) ?? s, i = {
|
|
2524
2517
|
tolken: null,
|
|
2525
2518
|
ip: null,
|
|
2526
|
-
userAgent:
|
|
2527
|
-
platform:
|
|
2519
|
+
userAgent: a,
|
|
2520
|
+
platform: l
|
|
2528
2521
|
};
|
|
2529
2522
|
if (typeof window.localStorage > "u")
|
|
2530
|
-
return
|
|
2531
|
-
const
|
|
2532
|
-
if (
|
|
2533
|
-
const
|
|
2534
|
-
return
|
|
2535
|
-
tolken:
|
|
2536
|
-
ip:
|
|
2537
|
-
userAgent:
|
|
2538
|
-
platform:
|
|
2523
|
+
return i;
|
|
2524
|
+
const r = "headerSessionIdData", o = localStorage.getItem(r);
|
|
2525
|
+
if (o && !t) {
|
|
2526
|
+
const u = JSON.parse(o), V = (/* @__PURE__ */ new Date()).getTime();
|
|
2527
|
+
return u.expire - V < 0 && localStorage.removeItem(r), {
|
|
2528
|
+
tolken: u.tolken,
|
|
2529
|
+
ip: u.ip,
|
|
2530
|
+
userAgent: a,
|
|
2531
|
+
platform: l
|
|
2539
2532
|
};
|
|
2540
2533
|
}
|
|
2541
|
-
if ((
|
|
2542
|
-
return
|
|
2534
|
+
if ((p = window == null ? void 0 : window.options) != null && p.isPdf)
|
|
2535
|
+
return i;
|
|
2543
2536
|
try {
|
|
2544
|
-
const
|
|
2545
|
-
headers: {
|
|
2546
|
-
"miss-session-id": a
|
|
2547
|
-
}
|
|
2548
|
-
})).json(), f = (H == null ? void 0 : H.sessionId) ?? "noSessionId", M = H["x-forwarded-for"] ?? null, y = M ? M.split(/, /)[0] : null, h = e * 1e3;
|
|
2537
|
+
const V = await (await fetch("/api/client-headers")).json(), C = (V == null ? void 0 : V.sessionId) ?? "noSessionId", f = V["x-forwarded-for"] ?? null, M = f ? f.split(/, /)[0] : null, y = e * 1e3;
|
|
2549
2538
|
return localStorage.setItem(
|
|
2550
|
-
|
|
2539
|
+
r,
|
|
2551
2540
|
JSON.stringify({
|
|
2552
|
-
tolken:
|
|
2553
|
-
ip:
|
|
2554
|
-
expire: (/* @__PURE__ */ new Date()).getTime() +
|
|
2541
|
+
tolken: C,
|
|
2542
|
+
ip: M,
|
|
2543
|
+
expire: (/* @__PURE__ */ new Date()).getTime() + y
|
|
2555
2544
|
})
|
|
2556
|
-
), { tolken:
|
|
2557
|
-
} catch (
|
|
2558
|
-
console.error("getHeaders",
|
|
2545
|
+
), { tolken: C, ip: M, userAgent: a, platform: l };
|
|
2546
|
+
} catch (u) {
|
|
2547
|
+
console.error("getHeaders", u);
|
|
2559
2548
|
}
|
|
2560
|
-
return
|
|
2549
|
+
return i;
|
|
2561
2550
|
}
|
|
2562
2551
|
static getLayerTitle(e) {
|
|
2563
2552
|
return {
|
|
@@ -2566,19 +2555,19 @@ class C {
|
|
|
2566
2555
|
}[e];
|
|
2567
2556
|
}
|
|
2568
2557
|
static async getLocationData(e) {
|
|
2569
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2570
|
-
return await
|
|
2558
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2559
|
+
return await H.fetchData("/api/client?query=" + l);
|
|
2571
2560
|
}
|
|
2572
2561
|
static getReportUrl(e, t = null) {
|
|
2573
|
-
var r, o,
|
|
2574
|
-
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((
|
|
2562
|
+
var r, o, p;
|
|
2563
|
+
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2575
2564
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2576
|
-
const i = [l, "-piq", t].filter((
|
|
2577
|
-
return "/" + [a, n, s].filter((
|
|
2565
|
+
const i = [l, "-piq", t].filter((u) => u).join("");
|
|
2566
|
+
return "/" + [a, n, s].filter((u) => u).map((u) => H.toSlug(u)).join("/") + "/" + i;
|
|
2578
2567
|
}
|
|
2579
2568
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2580
2569
|
try {
|
|
2581
|
-
return await
|
|
2570
|
+
return await H.createData(`/api/cookie/fetch?name=${e}`);
|
|
2582
2571
|
} catch (t) {
|
|
2583
2572
|
console.error("getSearchValue", t.message);
|
|
2584
2573
|
}
|
|
@@ -2706,7 +2695,7 @@ class C {
|
|
|
2706
2695
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2707
2696
|
return null;
|
|
2708
2697
|
try {
|
|
2709
|
-
return await
|
|
2698
|
+
return await H.createData("/api/cookie/fetch?name=odrUser");
|
|
2710
2699
|
} catch (t) {
|
|
2711
2700
|
console.error("getUser", t.message);
|
|
2712
2701
|
}
|
|
@@ -2722,7 +2711,7 @@ class C {
|
|
|
2722
2711
|
uuid: t
|
|
2723
2712
|
}
|
|
2724
2713
|
});
|
|
2725
|
-
return await
|
|
2714
|
+
return await H.fetchData(
|
|
2726
2715
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2727
2716
|
);
|
|
2728
2717
|
}
|
|
@@ -2784,7 +2773,7 @@ class C {
|
|
|
2784
2773
|
selfClose: l = !1,
|
|
2785
2774
|
target: i = null
|
|
2786
2775
|
}) {
|
|
2787
|
-
const r = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`),
|
|
2776
|
+
const r = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), p = l ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), u = [
|
|
2788
2777
|
"closing",
|
|
2789
2778
|
"closed",
|
|
2790
2779
|
"opening",
|
|
@@ -2802,27 +2791,27 @@ class C {
|
|
|
2802
2791
|
if (w.attributeName === "open") {
|
|
2803
2792
|
const b = w.target;
|
|
2804
2793
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2805
|
-
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(
|
|
2794
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(u.opening), b && await y(b), b == null || b.dispatchEvent(u.opened);
|
|
2806
2795
|
}
|
|
2807
2796
|
});
|
|
2808
|
-
}),
|
|
2797
|
+
}), C = new MutationObserver((h, v) => {
|
|
2809
2798
|
h.forEach((w) => {
|
|
2810
2799
|
w.removedNodes.forEach((b) => {
|
|
2811
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click", M), b.removeEventListener("close", f), b.dispatchEvent(
|
|
2800
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", M), b.removeEventListener("close", f), b.dispatchEvent(u.removed), C == null || C.disconnect(), V == null || V.disconnect());
|
|
2812
2801
|
});
|
|
2813
2802
|
});
|
|
2814
2803
|
});
|
|
2815
2804
|
o && (V.observe(o, {
|
|
2816
2805
|
attributes: !0
|
|
2817
|
-
}),
|
|
2806
|
+
}), C.observe(document.body, {
|
|
2818
2807
|
attributes: !1,
|
|
2819
2808
|
subtree: !1,
|
|
2820
2809
|
childList: !0
|
|
2821
2810
|
}));
|
|
2822
2811
|
const f = async ({ target: h }) => {
|
|
2823
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(
|
|
2812
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
|
|
2824
2813
|
}, M = async ({ target: h }) => {
|
|
2825
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(
|
|
2814
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
|
|
2826
2815
|
}, y = (h) => Promise.allSettled(
|
|
2827
2816
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2828
2817
|
);
|
|
@@ -2838,7 +2827,7 @@ class C {
|
|
|
2838
2827
|
h.addEventListener("click", (v) => {
|
|
2839
2828
|
o == null || o.showModal(), s && s(v, o);
|
|
2840
2829
|
});
|
|
2841
|
-
}),
|
|
2830
|
+
}), p == null || p.forEach((h) => {
|
|
2842
2831
|
h.addEventListener("click", async (v) => {
|
|
2843
2832
|
o == null || o.close("close");
|
|
2844
2833
|
});
|
|
@@ -2848,7 +2837,7 @@ class C {
|
|
|
2848
2837
|
};
|
|
2849
2838
|
}
|
|
2850
2839
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2851
|
-
return
|
|
2840
|
+
return H.getBoundsEntries(t).includes(e);
|
|
2852
2841
|
}
|
|
2853
2842
|
static initObserver(e, t, a = null) {
|
|
2854
2843
|
if (!e)
|
|
@@ -2907,7 +2896,7 @@ class C {
|
|
|
2907
2896
|
url: n,
|
|
2908
2897
|
data: s
|
|
2909
2898
|
};
|
|
2910
|
-
return await
|
|
2899
|
+
return await H.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2911
2900
|
}
|
|
2912
2901
|
static loadAds() {
|
|
2913
2902
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2925,7 +2914,7 @@ class C {
|
|
|
2925
2914
|
if (e) {
|
|
2926
2915
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2927
2916
|
try {
|
|
2928
|
-
return await
|
|
2917
|
+
return await H.injectScript({
|
|
2929
2918
|
src: s,
|
|
2930
2919
|
id: t || e,
|
|
2931
2920
|
async: !1,
|
|
@@ -2941,11 +2930,11 @@ class C {
|
|
|
2941
2930
|
if (window.options.googleMapsLoaded === !0)
|
|
2942
2931
|
return;
|
|
2943
2932
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2944
|
-
await
|
|
2933
|
+
await H.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2945
2934
|
}
|
|
2946
2935
|
static async loadLeafletApi() {
|
|
2947
2936
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2948
|
-
await
|
|
2937
|
+
await H.injectLink({ href: t, id: "leafletCss" }), await H.injectLink({ href: n, id: "gestureCss" }), await H.injectScript({ src: e, id: "leafletJs", async: !1 }), await H.injectScript({
|
|
2949
2938
|
src: a,
|
|
2950
2939
|
id: "gestureJs",
|
|
2951
2940
|
async: !1
|
|
@@ -2960,7 +2949,7 @@ class C {
|
|
|
2960
2949
|
}
|
|
2961
2950
|
static async loadSwiper() {
|
|
2962
2951
|
const e = "/slider/swiper-bundle.min.js";
|
|
2963
|
-
await
|
|
2952
|
+
await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2964
2953
|
}
|
|
2965
2954
|
static money(e, t = "", a = 0) {
|
|
2966
2955
|
return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
|
|
@@ -2986,13 +2975,13 @@ class C {
|
|
|
2986
2975
|
max: i = null,
|
|
2987
2976
|
city: r = null,
|
|
2988
2977
|
state: o = null,
|
|
2989
|
-
vin:
|
|
2990
|
-
license:
|
|
2978
|
+
vin: p = null,
|
|
2979
|
+
license: u = null,
|
|
2991
2980
|
token: V = null,
|
|
2992
|
-
phone:
|
|
2981
|
+
phone: C = null
|
|
2993
2982
|
} = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", y = i && i !== "" && l !== "99";
|
|
2994
2983
|
let h = [];
|
|
2995
|
-
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), M && y ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (M && h.push("min=" + l), y && h.push("max=" + i)),
|
|
2984
|
+
return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), M && y ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (M && h.push("min=" + l), y && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
2996
2985
|
}
|
|
2997
2986
|
static padTo2Digits(e) {
|
|
2998
2987
|
return e.toString().padStart(2, "0");
|
|
@@ -3010,11 +2999,11 @@ class C {
|
|
|
3010
2999
|
useLocation: i = !0,
|
|
3011
3000
|
state: r = "",
|
|
3012
3001
|
useGoogle: o = !1,
|
|
3013
|
-
useGoogleOverride:
|
|
3014
|
-
useAmazonOverride:
|
|
3002
|
+
useGoogleOverride: p = !1,
|
|
3003
|
+
useAmazonOverride: u = !1,
|
|
3015
3004
|
isSandboxAccount: V = !1,
|
|
3016
|
-
isOptOutSearch:
|
|
3017
|
-
} = t ?? {}, { tolken: f = null, ip: M = null } = await
|
|
3005
|
+
isOptOutSearch: C = !1
|
|
3006
|
+
} = t ?? {}, { tolken: f = null, ip: M = null } = await H.getHeaders(), h = [
|
|
3018
3007
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
3019
3008
|
"addressesOnly=" + a,
|
|
3020
3009
|
"useSearch=" + l,
|
|
@@ -3022,14 +3011,14 @@ class C {
|
|
|
3022
3011
|
"useCityStateSearch=" + s,
|
|
3023
3012
|
"useLocation=" + i,
|
|
3024
3013
|
"useGoogle=" + o,
|
|
3025
|
-
"useGoogleOverride=" +
|
|
3026
|
-
"useAmazonOverride=" +
|
|
3014
|
+
"useGoogleOverride=" + p,
|
|
3015
|
+
"useAmazonOverride=" + u,
|
|
3027
3016
|
"isSandboxAccount=" + V,
|
|
3028
|
-
"isOptOutSearch=" +
|
|
3017
|
+
"isOptOutSearch=" + C
|
|
3029
3018
|
];
|
|
3030
3019
|
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), M && M !== "" && h.push("ip=" + M);
|
|
3031
3020
|
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3032
|
-
return await
|
|
3021
|
+
return await H.fetchData(b);
|
|
3033
3022
|
}
|
|
3034
3023
|
static removeElements(e) {
|
|
3035
3024
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3048,7 +3037,7 @@ class C {
|
|
|
3048
3037
|
});
|
|
3049
3038
|
}
|
|
3050
3039
|
static searchInStates(e) {
|
|
3051
|
-
const t =
|
|
3040
|
+
const t = H.getStates(), a = e.toLowerCase();
|
|
3052
3041
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3053
3042
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3054
3043
|
}
|
|
@@ -3056,7 +3045,7 @@ class C {
|
|
|
3056
3045
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3057
3046
|
}
|
|
3058
3047
|
static setBoundsEntries(e, t = "bounds") {
|
|
3059
|
-
const a =
|
|
3048
|
+
const a = H.getBoundsEntries(t);
|
|
3060
3049
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3061
3050
|
}
|
|
3062
3051
|
static async setCityState(e = null) {
|
|
@@ -3065,7 +3054,7 @@ class C {
|
|
|
3065
3054
|
return e;
|
|
3066
3055
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3067
3056
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3068
|
-
if (
|
|
3057
|
+
if (H.getStates(), a && !n) {
|
|
3069
3058
|
const s = this.searchInStates(a);
|
|
3070
3059
|
s && (a = null, n = s.short);
|
|
3071
3060
|
}
|
|
@@ -3090,16 +3079,16 @@ class C {
|
|
|
3090
3079
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3091
3080
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3092
3081
|
try {
|
|
3093
|
-
const l = e.map(({ fileName: o, initFunctionName:
|
|
3094
|
-
i.forEach((o,
|
|
3095
|
-
o && typeof o[e[
|
|
3082
|
+
const l = e.map(({ fileName: o, initFunctionName: p }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(l), r = [];
|
|
3083
|
+
i.forEach((o, p) => {
|
|
3084
|
+
o && typeof o[e[p].initFunctionName] == "function" ? r.push(o[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
|
|
3096
3085
|
}), r.length > 0 && await Promise.all(r);
|
|
3097
3086
|
} catch (l) {
|
|
3098
3087
|
console.error("Failed to load one or more search modules:", l);
|
|
3099
3088
|
}
|
|
3100
3089
|
}
|
|
3101
3090
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3102
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3091
|
+
localStorage.setItem(t, JSON.stringify(e)), await H.createData(
|
|
3103
3092
|
`/api/cookie/create?name=${t}`,
|
|
3104
3093
|
e,
|
|
3105
3094
|
!0,
|
|
@@ -3131,7 +3120,7 @@ class C {
|
|
|
3131
3120
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3132
3121
|
}
|
|
3133
3122
|
static useLayerTitle(e, t) {
|
|
3134
|
-
const a =
|
|
3123
|
+
const a = H.getLayerTitle(e);
|
|
3135
3124
|
L.tileLayer(a, {
|
|
3136
3125
|
maxNativeZoom: 19,
|
|
3137
3126
|
maxZoom: 25,
|
|
@@ -3140,7 +3129,7 @@ class C {
|
|
|
3140
3129
|
}).addTo(t);
|
|
3141
3130
|
}
|
|
3142
3131
|
static ucWords(e) {
|
|
3143
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3132
|
+
return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
|
|
3144
3133
|
}
|
|
3145
3134
|
/**
|
|
3146
3135
|
* HOW TO USE EVENTS
|
|
@@ -3190,7 +3179,7 @@ export {
|
|
|
3190
3179
|
F as Button,
|
|
3191
3180
|
h2 as CardSlider,
|
|
3192
3181
|
I1 as Checkbox,
|
|
3193
|
-
|
|
3182
|
+
H as Common,
|
|
3194
3183
|
K1 as ContactForm,
|
|
3195
3184
|
X1 as ContentCard,
|
|
3196
3185
|
B1 as Dialog,
|