@vehiclehistory/property-lib 0.0.94 → 0.0.96
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/README.md +1 -0
- package/dist/main.es.js +391 -339
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { memo as
|
|
1
|
+
import { jsx as c, jsxs as g, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import p from "classnames";
|
|
3
|
+
import { memo as y, useState as N, useEffect as Z } from "react";
|
|
4
4
|
const W = {
|
|
5
5
|
xxSmall: "w-4 h-4",
|
|
6
6
|
xSmall: "w-5 h-5",
|
|
@@ -501,16 +501,16 @@ const W = {
|
|
|
501
501
|
size: a = "medium",
|
|
502
502
|
viewBox: n = "0 0 20 20"
|
|
503
503
|
}) => {
|
|
504
|
-
const s = G(t), [l, o] =
|
|
505
|
-
return
|
|
504
|
+
const s = G(t), [l, o] = N(d), [r, i] = N(s);
|
|
505
|
+
return Z(() => {
|
|
506
506
|
i(s);
|
|
507
|
-
}, [s]),
|
|
507
|
+
}, [s]), Z(() => {
|
|
508
508
|
o(d);
|
|
509
509
|
}, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
|
|
510
510
|
"svg",
|
|
511
511
|
{
|
|
512
512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
513
|
-
className:
|
|
513
|
+
className: p(
|
|
514
514
|
"fill-current flex-shrink-0",
|
|
515
515
|
W[a],
|
|
516
516
|
l,
|
|
@@ -524,7 +524,7 @@ const W = {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
},
|
|
527
|
+
}, x = y(Q), J = ({
|
|
528
528
|
children: d,
|
|
529
529
|
className: e,
|
|
530
530
|
clickHandler: t,
|
|
@@ -533,23 +533,23 @@ const W = {
|
|
|
533
533
|
unmount: s = !0,
|
|
534
534
|
isOpen: l = !1
|
|
535
535
|
}) => {
|
|
536
|
-
const [o, r] =
|
|
536
|
+
const [o, r] = N(l);
|
|
537
537
|
return /* @__PURE__ */ c(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
className:
|
|
540
|
+
className: p(
|
|
541
541
|
"accordion shadow rounded-lg",
|
|
542
542
|
{
|
|
543
543
|
"accordion--open": o
|
|
544
544
|
},
|
|
545
545
|
e
|
|
546
546
|
),
|
|
547
|
-
children: /* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
547
|
+
children: /* @__PURE__ */ g(S, { children: [
|
|
548
|
+
/* @__PURE__ */ g(
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
551
551
|
type: "button",
|
|
552
|
-
className:
|
|
552
|
+
className: p(
|
|
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,
|
|
@@ -559,7 +559,7 @@ const W = {
|
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
|
|
561
561
|
/* @__PURE__ */ c("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ c(
|
|
562
|
-
|
|
562
|
+
x,
|
|
563
563
|
{
|
|
564
564
|
name: "chevronDown",
|
|
565
565
|
size: "small",
|
|
@@ -572,7 +572,7 @@ const W = {
|
|
|
572
572
|
s && o && /* @__PURE__ */ c(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
|
-
className:
|
|
575
|
+
className: p(
|
|
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: p(
|
|
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: !o }
|
|
@@ -593,7 +593,7 @@ const W = {
|
|
|
593
593
|
] })
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
|
-
}, F1 =
|
|
596
|
+
}, F1 = y(J), Y = ({
|
|
597
597
|
children: d,
|
|
598
598
|
className: e,
|
|
599
599
|
messages: t = [],
|
|
@@ -624,38 +624,38 @@ const W = {
|
|
|
624
624
|
iconColor: "text-yellow-500",
|
|
625
625
|
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
626
626
|
}
|
|
627
|
-
}, { icon: i, iconColor:
|
|
627
|
+
}, { icon: i, iconColor: u, styles: m } = r[o];
|
|
628
628
|
return /* @__PURE__ */ c(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
631
|
id: o,
|
|
632
|
-
className:
|
|
632
|
+
className: p(
|
|
633
633
|
"rounded w-full py-2 px-4 mb-4 border",
|
|
634
|
-
|
|
634
|
+
m,
|
|
635
635
|
e
|
|
636
636
|
),
|
|
637
637
|
...l,
|
|
638
|
-
children: /* @__PURE__ */
|
|
638
|
+
children: /* @__PURE__ */ g("div", { className: "flex", children: [
|
|
639
639
|
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
640
|
-
|
|
640
|
+
x,
|
|
641
641
|
{
|
|
642
642
|
name: i,
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
|
-
className:
|
|
644
|
+
className: u,
|
|
645
645
|
size: "xSmall"
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */ c("div", { className:
|
|
648
|
+
/* @__PURE__ */ g("div", { className: "ml-3", children: [
|
|
649
|
+
/* @__PURE__ */ c("div", { className: p("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: p(
|
|
655
655
|
"list-disc space-y-1 pl-5 mt-2 text-xs",
|
|
656
656
|
a
|
|
657
657
|
),
|
|
658
|
-
children: t.map((
|
|
658
|
+
children: t.map((V, H) => /* @__PURE__ */ c("li", { children: V }, H))
|
|
659
659
|
}
|
|
660
660
|
) : "",
|
|
661
661
|
d
|
|
@@ -663,7 +663,7 @@ const W = {
|
|
|
663
663
|
] })
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
|
-
}, D1 =
|
|
666
|
+
}, D1 = y(Y), T1 = ({
|
|
667
667
|
autoFocus: d = !1,
|
|
668
668
|
className: e,
|
|
669
669
|
dataSearch: t = "container",
|
|
@@ -674,13 +674,13 @@ const W = {
|
|
|
674
674
|
leftIcon: o = "homeSearch",
|
|
675
675
|
mobileBackdrop: r = !1,
|
|
676
676
|
name: i = "",
|
|
677
|
-
options:
|
|
678
|
-
parentProps:
|
|
679
|
-
placeholder:
|
|
680
|
-
props:
|
|
677
|
+
options: u = [],
|
|
678
|
+
parentProps: m = {},
|
|
679
|
+
placeholder: V = "",
|
|
680
|
+
props: H = {},
|
|
681
681
|
rightIcon: f = "",
|
|
682
|
-
required:
|
|
683
|
-
showSearchIcon:
|
|
682
|
+
required: M = !1,
|
|
683
|
+
showSearchIcon: A = !0,
|
|
684
684
|
showRightIcon: h = !1,
|
|
685
685
|
size: v = "medium",
|
|
686
686
|
styles: w = null,
|
|
@@ -690,21 +690,21 @@ const W = {
|
|
|
690
690
|
useReact: P = !1
|
|
691
691
|
}) => {
|
|
692
692
|
const R = P ? { defaultValue: a } : { value: a };
|
|
693
|
-
return /* @__PURE__ */
|
|
693
|
+
return /* @__PURE__ */ g(
|
|
694
694
|
"div",
|
|
695
695
|
{
|
|
696
696
|
id: s,
|
|
697
697
|
"data-search": t,
|
|
698
698
|
"data-search-type": E,
|
|
699
699
|
"data-use-google": j,
|
|
700
|
-
className:
|
|
700
|
+
className: p("Autocomplete", e),
|
|
701
701
|
style: w ? { ...w } : null,
|
|
702
|
-
...
|
|
702
|
+
...m,
|
|
703
703
|
children: [
|
|
704
|
-
|
|
704
|
+
A && /* @__PURE__ */ g(
|
|
705
705
|
"span",
|
|
706
706
|
{
|
|
707
|
-
className:
|
|
707
|
+
className: p(
|
|
708
708
|
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
709
709
|
{
|
|
710
710
|
"pointer-events-none": r
|
|
@@ -712,7 +712,7 @@ const W = {
|
|
|
712
712
|
),
|
|
713
713
|
children: [
|
|
714
714
|
/* @__PURE__ */ c(
|
|
715
|
-
|
|
715
|
+
x,
|
|
716
716
|
{
|
|
717
717
|
className: "home-search select-none text-gray-500",
|
|
718
718
|
name: o,
|
|
@@ -721,7 +721,7 @@ const W = {
|
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
723
|
/* @__PURE__ */ c(
|
|
724
|
-
|
|
724
|
+
x,
|
|
725
725
|
{
|
|
726
726
|
className: "arrow-left select-none text-gray-500 hidden",
|
|
727
727
|
name: "arrowLeft",
|
|
@@ -737,10 +737,10 @@ const W = {
|
|
|
737
737
|
{
|
|
738
738
|
"data-lpignore": "true",
|
|
739
739
|
autoFocus: d,
|
|
740
|
-
className:
|
|
740
|
+
className: p(
|
|
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
|
-
"pl-8":
|
|
743
|
+
"pl-8": A === !0,
|
|
744
744
|
"px-3 h-10": v === "medium",
|
|
745
745
|
"px-4 h-12": v === "large",
|
|
746
746
|
"px-5 h-[60px] sm:!text-base": v === "xLarge",
|
|
@@ -748,23 +748,23 @@ const W = {
|
|
|
748
748
|
},
|
|
749
749
|
l
|
|
750
750
|
),
|
|
751
|
-
required:
|
|
751
|
+
required: M,
|
|
752
752
|
autoComplete: "off",
|
|
753
|
-
placeholder: !
|
|
753
|
+
placeholder: !V && n ? " " : V,
|
|
754
754
|
type: "search",
|
|
755
755
|
name: i || "search-input",
|
|
756
756
|
"data-id": "search-input",
|
|
757
757
|
...R,
|
|
758
|
-
...
|
|
758
|
+
...H
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
n && /* @__PURE__ */ c(
|
|
762
762
|
"label",
|
|
763
763
|
{
|
|
764
|
-
className:
|
|
764
|
+
className: p(
|
|
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
|
-
"!left-7":
|
|
767
|
+
"!left-7": A === !0,
|
|
768
768
|
"left-2": v === "medium",
|
|
769
769
|
"left-3": v === "large",
|
|
770
770
|
"left-4": v === "xLarge"
|
|
@@ -779,7 +779,7 @@ const W = {
|
|
|
779
779
|
"data-id": "search-clear",
|
|
780
780
|
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
781
781
|
children: /* @__PURE__ */ c(
|
|
782
|
-
|
|
782
|
+
x,
|
|
783
783
|
{
|
|
784
784
|
className: "cursor-pointer text-gray-500",
|
|
785
785
|
name: "xCircle",
|
|
@@ -795,7 +795,7 @@ const W = {
|
|
|
795
795
|
"data-id": "search-loading",
|
|
796
796
|
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
797
797
|
children: /* @__PURE__ */ c(
|
|
798
|
-
|
|
798
|
+
x,
|
|
799
799
|
{
|
|
800
800
|
className: "animate-spin text-[#222]] pointer-events-none",
|
|
801
801
|
name: "spinnerDark",
|
|
@@ -810,10 +810,10 @@ const W = {
|
|
|
810
810
|
{
|
|
811
811
|
"data-id": "right-icon",
|
|
812
812
|
className: `${h ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
|
|
813
|
-
children: /* @__PURE__ */ c(
|
|
813
|
+
children: /* @__PURE__ */ c(x, { name: f, size: "small", viewBox: "0 0 24 24" })
|
|
814
814
|
}
|
|
815
815
|
),
|
|
816
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ g(
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
819
|
"data-id": "search-dropdown",
|
|
@@ -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: u.length > 0 ? u.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: p(
|
|
860
860
|
" bg-gray-200 font-semibold py-1 px-2 rounded",
|
|
861
861
|
{
|
|
862
862
|
"text-sm": t === "sm",
|
|
@@ -867,7 +867,7 @@ const W = {
|
|
|
867
867
|
),
|
|
868
868
|
children: d
|
|
869
869
|
}
|
|
870
|
-
),
|
|
870
|
+
), _ = ({
|
|
871
871
|
borderless: d = !1,
|
|
872
872
|
leftIcon: e,
|
|
873
873
|
leftIconProps: t = {},
|
|
@@ -878,26 +878,26 @@ const W = {
|
|
|
878
878
|
props: o = {},
|
|
879
879
|
rightIcon: r,
|
|
880
880
|
rightIconProps: i = {},
|
|
881
|
-
rounded:
|
|
882
|
-
size:
|
|
883
|
-
type:
|
|
884
|
-
uppercase:
|
|
881
|
+
rounded: u = !1,
|
|
882
|
+
size: m = "md",
|
|
883
|
+
type: V = "button",
|
|
884
|
+
uppercase: H = !1,
|
|
885
885
|
variation: f = "primary"
|
|
886
886
|
}) => {
|
|
887
|
-
const
|
|
888
|
-
return /* @__PURE__ */
|
|
889
|
-
|
|
887
|
+
const M = l ? "a" : "button";
|
|
888
|
+
return /* @__PURE__ */ g(
|
|
889
|
+
M,
|
|
890
890
|
{
|
|
891
|
-
type:
|
|
892
|
-
className:
|
|
891
|
+
type: M !== "a" ? V : null,
|
|
892
|
+
className: p(
|
|
893
893
|
"button",
|
|
894
894
|
{
|
|
895
895
|
[`button--${f}`]: f,
|
|
896
|
-
[`button--${
|
|
897
|
-
"button--rounded":
|
|
896
|
+
[`button--${m}`]: m,
|
|
897
|
+
"button--rounded": u,
|
|
898
898
|
"button--disabled": s,
|
|
899
899
|
"button--custom-link": l,
|
|
900
|
-
"button--uppercase":
|
|
900
|
+
"button--uppercase": H,
|
|
901
901
|
"button--borderless": d || f === "link"
|
|
902
902
|
},
|
|
903
903
|
n
|
|
@@ -907,20 +907,20 @@ const W = {
|
|
|
907
907
|
...o,
|
|
908
908
|
children: [
|
|
909
909
|
e && /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
x,
|
|
911
911
|
{
|
|
912
912
|
name: e,
|
|
913
|
-
size:
|
|
913
|
+
size: m === "md" ? "small" : "xSmall",
|
|
914
914
|
viewBox: "0 0 24 24",
|
|
915
915
|
...t
|
|
916
916
|
}
|
|
917
917
|
),
|
|
918
918
|
a,
|
|
919
919
|
r && /* @__PURE__ */ c(
|
|
920
|
-
|
|
920
|
+
x,
|
|
921
921
|
{
|
|
922
922
|
name: r,
|
|
923
|
-
size:
|
|
923
|
+
size: m === "md" ? "small" : "xSmall",
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
925
|
...i
|
|
926
926
|
}
|
|
@@ -928,7 +928,7 @@ const W = {
|
|
|
928
928
|
]
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
}, F =
|
|
931
|
+
}, F = y(_), K = ({
|
|
932
932
|
checked: d = !1,
|
|
933
933
|
children: e,
|
|
934
934
|
className: t,
|
|
@@ -939,20 +939,20 @@ const W = {
|
|
|
939
939
|
name: o = "",
|
|
940
940
|
props: r = {},
|
|
941
941
|
variation: i = "primary",
|
|
942
|
-
value:
|
|
942
|
+
value: u = ""
|
|
943
943
|
}) => {
|
|
944
|
-
const
|
|
945
|
-
return /* @__PURE__ */
|
|
946
|
-
|
|
944
|
+
const m = l ? "div" : "label", V = m === "label" ? { htmlFor: s } : {};
|
|
945
|
+
return /* @__PURE__ */ g(
|
|
946
|
+
m,
|
|
947
947
|
{
|
|
948
|
-
className:
|
|
949
|
-
...
|
|
948
|
+
className: p("checkbox flex items-center", i, t),
|
|
949
|
+
...V,
|
|
950
950
|
children: [
|
|
951
951
|
/* @__PURE__ */ c(
|
|
952
952
|
"input",
|
|
953
953
|
{
|
|
954
954
|
checked: d,
|
|
955
|
-
className:
|
|
955
|
+
className: p(
|
|
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: o,
|
|
964
964
|
type: "checkbox",
|
|
965
|
-
value:
|
|
965
|
+
value: u,
|
|
966
966
|
...r
|
|
967
967
|
}
|
|
968
968
|
),
|
|
@@ -970,7 +970,7 @@ const W = {
|
|
|
970
970
|
]
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
|
-
}, I1 =
|
|
973
|
+
}, I1 = y(K), X = ({
|
|
974
974
|
activator: d,
|
|
975
975
|
id: e = "",
|
|
976
976
|
children: t,
|
|
@@ -981,17 +981,17 @@ const W = {
|
|
|
981
981
|
disableClose: o = !1,
|
|
982
982
|
footer: r,
|
|
983
983
|
fullMobile: i = !0,
|
|
984
|
-
headerClass:
|
|
985
|
-
hideClose:
|
|
986
|
-
iconSize:
|
|
987
|
-
preventPageScroll:
|
|
984
|
+
headerClass: u,
|
|
985
|
+
hideClose: m = !1,
|
|
986
|
+
iconSize: V = "medium",
|
|
987
|
+
preventPageScroll: H = !0,
|
|
988
988
|
stickyHeader: f = !1,
|
|
989
|
-
title:
|
|
990
|
-
titleClass:
|
|
989
|
+
title: M = "",
|
|
990
|
+
titleClass: A,
|
|
991
991
|
useFormMethod: h = !0
|
|
992
992
|
}) => {
|
|
993
993
|
const v = h ? "form" : "div";
|
|
994
|
-
return /* @__PURE__ */
|
|
994
|
+
return /* @__PURE__ */ g(S, { children: [
|
|
995
995
|
d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
|
|
996
996
|
/* @__PURE__ */ c(
|
|
997
997
|
"dialog",
|
|
@@ -999,36 +999,36 @@ const W = {
|
|
|
999
999
|
inert: "",
|
|
1000
1000
|
...o ? { closedby: "none" } : null,
|
|
1001
1001
|
id: `${e}-dialog`,
|
|
1002
|
-
className:
|
|
1002
|
+
className: p(
|
|
1003
1003
|
"dialog",
|
|
1004
1004
|
{
|
|
1005
1005
|
"dialog-full-mobile": i,
|
|
1006
1006
|
dark: l,
|
|
1007
|
-
"prevent-scroll":
|
|
1007
|
+
"prevent-scroll": H
|
|
1008
1008
|
},
|
|
1009
1009
|
a
|
|
1010
1010
|
),
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ g(
|
|
1012
1012
|
v,
|
|
1013
1013
|
{
|
|
1014
1014
|
className: "dialog-container",
|
|
1015
1015
|
method: h ? "dialog" : null,
|
|
1016
1016
|
children: [
|
|
1017
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ g(
|
|
1018
1018
|
"header",
|
|
1019
1019
|
{
|
|
1020
|
-
className:
|
|
1020
|
+
className: p(
|
|
1021
1021
|
"dialog-header",
|
|
1022
1022
|
{
|
|
1023
1023
|
"sticky top-0 bg-white z-10": f,
|
|
1024
|
-
"!pb-0 border-0 justify-end": !
|
|
1025
|
-
"justify-between border-b":
|
|
1024
|
+
"!pb-0 border-0 justify-end": !M,
|
|
1025
|
+
"justify-between border-b": M
|
|
1026
1026
|
},
|
|
1027
|
-
|
|
1027
|
+
u
|
|
1028
1028
|
),
|
|
1029
1029
|
children: [
|
|
1030
|
-
|
|
1031
|
-
!
|
|
1030
|
+
M && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: A, children: M }),
|
|
1031
|
+
!m && /* @__PURE__ */ c(
|
|
1032
1032
|
"button",
|
|
1033
1033
|
{
|
|
1034
1034
|
type: "button",
|
|
@@ -1037,10 +1037,10 @@ const W = {
|
|
|
1037
1037
|
"data-dialog-close": "",
|
|
1038
1038
|
value: "close",
|
|
1039
1039
|
children: /* @__PURE__ */ c(
|
|
1040
|
-
|
|
1040
|
+
x,
|
|
1041
1041
|
{
|
|
1042
1042
|
name: "close",
|
|
1043
|
-
size:
|
|
1043
|
+
size: V,
|
|
1044
1044
|
className: "pointer-events-none"
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
@@ -1053,7 +1053,7 @@ const W = {
|
|
|
1053
1053
|
"div",
|
|
1054
1054
|
{
|
|
1055
1055
|
id: `${e}-dialog-content`,
|
|
1056
|
-
className:
|
|
1056
|
+
className: p(
|
|
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 =
|
|
1073
|
+
}, B1 = y(X), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: p("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,24 +1090,24 @@ const W = {
|
|
|
1090
1090
|
function l({ cb: o }) {
|
|
1091
1091
|
const r = document.querySelector(".loading-bar__inner");
|
|
1092
1092
|
if (!r) return;
|
|
1093
|
-
let i,
|
|
1094
|
-
function H
|
|
1095
|
-
i === void 0 && (i =
|
|
1096
|
-
const f =
|
|
1097
|
-
if (
|
|
1098
|
-
const
|
|
1099
|
-
r.style.width = `${
|
|
1093
|
+
let i, u, m = !1;
|
|
1094
|
+
function V(H) {
|
|
1095
|
+
i === void 0 && (i = H);
|
|
1096
|
+
const f = H - i;
|
|
1097
|
+
if (u !== H) {
|
|
1098
|
+
const M = f / n * 101;
|
|
1099
|
+
r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (o && o(), m = !0, window.cancelAnimationFrame(H));
|
|
1100
1100
|
}
|
|
1101
|
-
f < n && (
|
|
1101
|
+
f < n && (u = H, m || window.requestAnimationFrame(V));
|
|
1102
1102
|
}
|
|
1103
|
-
window.requestAnimationFrame(
|
|
1103
|
+
window.requestAnimationFrame(V);
|
|
1104
1104
|
}
|
|
1105
|
-
return
|
|
1105
|
+
return Z(() => {
|
|
1106
1106
|
l({ cb: d });
|
|
1107
1107
|
}, []), /* @__PURE__ */ c(
|
|
1108
1108
|
"div",
|
|
1109
1109
|
{
|
|
1110
|
-
className:
|
|
1110
|
+
className: p(
|
|
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 =
|
|
1124
|
+
}, q1 = y(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: p("processing-spinner", d) }), j1 = y(t1), P1 = ({
|
|
1125
1125
|
activator: d,
|
|
1126
1126
|
activatorClass: e = "",
|
|
1127
1127
|
attrs: t = {},
|
|
@@ -1131,15 +1131,15 @@ const W = {
|
|
|
1131
1131
|
disabled: l = !1,
|
|
1132
1132
|
options: o = {},
|
|
1133
1133
|
trigger: r = "click"
|
|
1134
|
-
}) => /* @__PURE__ */
|
|
1134
|
+
}) => /* @__PURE__ */ g(S, { children: [
|
|
1135
1135
|
/* @__PURE__ */ c(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
1138
|
-
className:
|
|
1139
|
-
children: /* @__PURE__ */
|
|
1138
|
+
className: p("popover z-10 max-w-[350px] hidden", n),
|
|
1139
|
+
children: /* @__PURE__ */ g(
|
|
1140
1140
|
"div",
|
|
1141
1141
|
{
|
|
1142
|
-
className:
|
|
1142
|
+
className: p(
|
|
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: p(
|
|
1164
1164
|
"popover-activator",
|
|
1165
1165
|
`trigger-${r}`,
|
|
1166
1166
|
{
|
|
@@ -1185,9 +1185,9 @@ const W = {
|
|
|
1185
1185
|
rounded: r = !0,
|
|
1186
1186
|
showLabel: i = !1
|
|
1187
1187
|
}) => {
|
|
1188
|
-
const
|
|
1189
|
-
if (
|
|
1190
|
-
const f = Number(
|
|
1188
|
+
const m = ((V, H) => {
|
|
1189
|
+
if (V) {
|
|
1190
|
+
const f = Number(H) / 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: p(
|
|
1199
1199
|
"w-full bg-gray-200",
|
|
1200
1200
|
{ "rounded-full": r },
|
|
1201
1201
|
a
|
|
@@ -1208,26 +1208,26 @@ const W = {
|
|
|
1208
1208
|
children: /* @__PURE__ */ c(
|
|
1209
1209
|
"div",
|
|
1210
1210
|
{
|
|
1211
|
-
className:
|
|
1211
|
+
className: p(
|
|
1212
1212
|
"h-full text-right flex items-center justify-end rounded-full",
|
|
1213
1213
|
t
|
|
1214
1214
|
),
|
|
1215
|
-
style: { width: `${
|
|
1215
|
+
style: { width: `${m}%` },
|
|
1216
1216
|
children: i && /* @__PURE__ */ c(
|
|
1217
1217
|
"span",
|
|
1218
1218
|
{
|
|
1219
|
-
className:
|
|
1219
|
+
className: p(
|
|
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(m)
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
}
|
|
1227
1227
|
)
|
|
1228
1228
|
}
|
|
1229
1229
|
);
|
|
1230
|
-
}, R1 =
|
|
1230
|
+
}, R1 = y(a1), n1 = ({
|
|
1231
1231
|
checked: d = !1,
|
|
1232
1232
|
children: e,
|
|
1233
1233
|
className: t,
|
|
@@ -1239,18 +1239,18 @@ const W = {
|
|
|
1239
1239
|
variation: r = "primary",
|
|
1240
1240
|
value: i = ""
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const
|
|
1243
|
-
return /* @__PURE__ */
|
|
1244
|
-
|
|
1242
|
+
const u = s ? "div" : "label", m = u === "label" ? { htmlFor: a } : {};
|
|
1243
|
+
return /* @__PURE__ */ g(
|
|
1244
|
+
u,
|
|
1245
1245
|
{
|
|
1246
|
-
className:
|
|
1247
|
-
...
|
|
1246
|
+
className: p("radio flex items-center", t),
|
|
1247
|
+
...m,
|
|
1248
1248
|
children: [
|
|
1249
1249
|
/* @__PURE__ */ c(
|
|
1250
1250
|
"input",
|
|
1251
1251
|
{
|
|
1252
1252
|
checked: d,
|
|
1253
|
-
className:
|
|
1253
|
+
className: p(
|
|
1254
1254
|
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
1255
1255
|
{
|
|
1256
1256
|
"focus:ring-[#222]": r === "primary"
|
|
@@ -1268,7 +1268,7 @@ const W = {
|
|
|
1268
1268
|
]
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
}, W1 =
|
|
1271
|
+
}, W1 = y(n1), s1 = ({
|
|
1272
1272
|
className: d = "",
|
|
1273
1273
|
error: e = !1,
|
|
1274
1274
|
errorMessage: t = "",
|
|
@@ -1279,22 +1279,22 @@ const W = {
|
|
|
1279
1279
|
placeholder: o = "",
|
|
1280
1280
|
props: r = {},
|
|
1281
1281
|
selectClass: i = "",
|
|
1282
|
-
styles:
|
|
1283
|
-
variation:
|
|
1284
|
-
value:
|
|
1282
|
+
styles: u = null,
|
|
1283
|
+
variation: m = "primary",
|
|
1284
|
+
value: V
|
|
1285
1285
|
}) => {
|
|
1286
|
-
const
|
|
1287
|
-
return /* @__PURE__ */
|
|
1286
|
+
const H = o ? { defaultValue: "" } : {};
|
|
1287
|
+
return /* @__PURE__ */ g(
|
|
1288
1288
|
"label",
|
|
1289
1289
|
{
|
|
1290
|
-
className:
|
|
1291
|
-
style:
|
|
1290
|
+
className: p("relative select", d, m),
|
|
1291
|
+
style: u ? { ...u } : null,
|
|
1292
1292
|
children: [
|
|
1293
1293
|
n,
|
|
1294
|
-
/* @__PURE__ */
|
|
1294
|
+
/* @__PURE__ */ g(
|
|
1295
1295
|
"select",
|
|
1296
1296
|
{
|
|
1297
|
-
className:
|
|
1297
|
+
className: p(
|
|
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
|
|
@@ -1303,8 +1303,8 @@ const W = {
|
|
|
1303
1303
|
),
|
|
1304
1304
|
id: a,
|
|
1305
1305
|
name: s,
|
|
1306
|
-
value:
|
|
1307
|
-
...
|
|
1306
|
+
value: V,
|
|
1307
|
+
...H,
|
|
1308
1308
|
...r,
|
|
1309
1309
|
children: [
|
|
1310
1310
|
o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
|
|
@@ -1323,25 +1323,25 @@ const W = {
|
|
|
1323
1323
|
]
|
|
1324
1324
|
}
|
|
1325
1325
|
);
|
|
1326
|
-
}, U1 =
|
|
1326
|
+
}, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */ g(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
1329
|
-
className:
|
|
1329
|
+
className: p(
|
|
1330
1330
|
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
1331
1331
|
d
|
|
1332
1332
|
),
|
|
1333
1333
|
children: [
|
|
1334
|
-
/* @__PURE__ */ c(
|
|
1334
|
+
/* @__PURE__ */ c(x, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
1335
1335
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
1336
1336
|
]
|
|
1337
1337
|
}
|
|
1338
|
-
), G1 =
|
|
1338
|
+
), G1 = y(r1), l1 = ({
|
|
1339
1339
|
placeholderClass: d = "",
|
|
1340
1340
|
children: e,
|
|
1341
1341
|
className: t,
|
|
1342
1342
|
id: a = 1,
|
|
1343
1343
|
padding: n = !0
|
|
1344
|
-
}) => /* @__PURE__ */
|
|
1344
|
+
}) => /* @__PURE__ */ g("div", { className: p("slider", t), id: `slider-${a}`, children: [
|
|
1345
1345
|
/* @__PURE__ */ c(
|
|
1346
1346
|
"button",
|
|
1347
1347
|
{
|
|
@@ -1349,7 +1349,7 @@ const W = {
|
|
|
1349
1349
|
id: `btn-left-${a}`,
|
|
1350
1350
|
type: "button",
|
|
1351
1351
|
className: "slider-button__prev ",
|
|
1352
|
-
children: /* @__PURE__ */ c(
|
|
1352
|
+
children: /* @__PURE__ */ c(x, { name: "chevronLeft" })
|
|
1353
1353
|
}
|
|
1354
1354
|
),
|
|
1355
1355
|
/* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
|
|
@@ -1367,19 +1367,19 @@ const W = {
|
|
|
1367
1367
|
id: `btn-right-${a}`,
|
|
1368
1368
|
type: "button",
|
|
1369
1369
|
className: "slider-button__next",
|
|
1370
|
-
children: /* @__PURE__ */ c(
|
|
1370
|
+
children: /* @__PURE__ */ c(x, { name: "chevronRight" })
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
|
-
] }), Q1 =
|
|
1374
|
-
|
|
1373
|
+
] }), Q1 = y(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: p("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
|
|
1374
|
+
x,
|
|
1375
1375
|
{
|
|
1376
|
-
className:
|
|
1376
|
+
className: p("animate-spin text-black-900", e),
|
|
1377
1377
|
size: "xSmall",
|
|
1378
1378
|
name: "spinnerDark",
|
|
1379
1379
|
viewBox: "0 0 24 24",
|
|
1380
1380
|
...t
|
|
1381
1381
|
}
|
|
1382
|
-
) }), J1 =
|
|
1382
|
+
) }), J1 = y(i1), Y1 = ({
|
|
1383
1383
|
className: d,
|
|
1384
1384
|
value: e
|
|
1385
1385
|
}) => {
|
|
@@ -1389,7 +1389,7 @@ const W = {
|
|
|
1389
1389
|
return /* @__PURE__ */ c(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
|
-
className:
|
|
1392
|
+
className: p(
|
|
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: o = "",
|
|
1408
1408
|
props: r = {},
|
|
1409
1409
|
rows: i = 4,
|
|
1410
|
-
variation:
|
|
1411
|
-
}) => /* @__PURE__ */
|
|
1410
|
+
variation: u = "primary"
|
|
1411
|
+
}) => /* @__PURE__ */ g("div", { className: p("relative textarea", u, 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: i,
|
|
1419
|
-
className:
|
|
1419
|
+
className: p(
|
|
1420
1420
|
"form-textarea min-h-[40px] pl-4",
|
|
1421
1421
|
e ? "pr-10" : "pr-4",
|
|
1422
1422
|
{
|
|
@@ -1433,7 +1433,7 @@ const W = {
|
|
|
1433
1433
|
id: `${n}-clear`,
|
|
1434
1434
|
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
1435
1435
|
children: /* @__PURE__ */ c(
|
|
1436
|
-
|
|
1436
|
+
x,
|
|
1437
1437
|
{
|
|
1438
1438
|
size: "xSmall",
|
|
1439
1439
|
name: "xCircle",
|
|
@@ -1443,7 +1443,7 @@ const W = {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
1445
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1446
|
-
] }), c1 =
|
|
1446
|
+
] }), c1 = y(o1), d1 = ({
|
|
1447
1447
|
className: d,
|
|
1448
1448
|
clear: e = !1,
|
|
1449
1449
|
error: t = !1,
|
|
@@ -1454,18 +1454,18 @@ const W = {
|
|
|
1454
1454
|
name: o = "",
|
|
1455
1455
|
placeholder: r = "",
|
|
1456
1456
|
props: i = {},
|
|
1457
|
-
styles:
|
|
1458
|
-
type:
|
|
1459
|
-
value:
|
|
1460
|
-
variation:
|
|
1461
|
-
}) => /* @__PURE__ */
|
|
1457
|
+
styles: u = null,
|
|
1458
|
+
type: m = "text",
|
|
1459
|
+
value: V,
|
|
1460
|
+
variation: H = "primary"
|
|
1461
|
+
}) => /* @__PURE__ */ g(
|
|
1462
1462
|
"div",
|
|
1463
1463
|
{
|
|
1464
|
-
className:
|
|
1465
|
-
style:
|
|
1464
|
+
className: p("relative textbox", H, d),
|
|
1465
|
+
style: u ? { ...u } : 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,
|
|
1469
1469
|
{
|
|
1470
1470
|
size: "xSmall",
|
|
1471
1471
|
name: n,
|
|
@@ -1479,10 +1479,10 @@ const W = {
|
|
|
1479
1479
|
placeholder: r,
|
|
1480
1480
|
id: s,
|
|
1481
1481
|
name: o,
|
|
1482
|
-
type:
|
|
1483
|
-
value:
|
|
1482
|
+
type: m,
|
|
1483
|
+
value: V,
|
|
1484
1484
|
autoComplete: "off",
|
|
1485
|
-
className:
|
|
1485
|
+
className: p(
|
|
1486
1486
|
"form-input",
|
|
1487
1487
|
e ? "pr-10" : "pr-4",
|
|
1488
1488
|
n ? "pl-8" : "pl-4",
|
|
@@ -1501,7 +1501,7 @@ const W = {
|
|
|
1501
1501
|
id: `${s}-clear`,
|
|
1502
1502
|
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
1503
1503
|
children: /* @__PURE__ */ c(
|
|
1504
|
-
|
|
1504
|
+
x,
|
|
1505
1505
|
{
|
|
1506
1506
|
size: "xSmall",
|
|
1507
1507
|
name: "xCircle",
|
|
@@ -1513,7 +1513,7 @@ const W = {
|
|
|
1513
1513
|
a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
1514
1514
|
]
|
|
1515
1515
|
}
|
|
1516
|
-
), D =
|
|
1516
|
+
), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
|
|
1517
1517
|
/* @__PURE__ */ c(
|
|
1518
1518
|
"input",
|
|
1519
1519
|
{
|
|
@@ -1535,7 +1535,7 @@ const W = {
|
|
|
1535
1535
|
className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
|
|
1536
1536
|
}
|
|
1537
1537
|
)
|
|
1538
|
-
] }) }) }),
|
|
1538
|
+
] }) }) }), _1 = y(h1), u1 = ({
|
|
1539
1539
|
btnClass: d,
|
|
1540
1540
|
className: e = "",
|
|
1541
1541
|
containerClass: t,
|
|
@@ -1544,13 +1544,13 @@ const W = {
|
|
|
1544
1544
|
titleClass: s,
|
|
1545
1545
|
uppercase: l = !0
|
|
1546
1546
|
}) => {
|
|
1547
|
-
const o = a || /* @__PURE__ */
|
|
1547
|
+
const o = a || /* @__PURE__ */ g(S, { children: [
|
|
1548
1548
|
"Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
|
|
1549
1549
|
" ",
|
|
1550
1550
|
/* @__PURE__ */ c(
|
|
1551
1551
|
F,
|
|
1552
1552
|
{
|
|
1553
|
-
className:
|
|
1553
|
+
className: p(
|
|
1554
1554
|
"text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
|
|
1555
1555
|
),
|
|
1556
1556
|
variation: "link",
|
|
@@ -1561,20 +1561,20 @@ const W = {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
)
|
|
1563
1563
|
] });
|
|
1564
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ g(
|
|
1565
1565
|
"form",
|
|
1566
1566
|
{
|
|
1567
1567
|
id: "contactForm",
|
|
1568
|
-
className:
|
|
1568
|
+
className: p("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: p("mb-4", s), children: n }),
|
|
1573
1573
|
/* @__PURE__ */ c("p", { className: "contact-form__msg", children: o }),
|
|
1574
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ g(
|
|
1575
1575
|
"div",
|
|
1576
1576
|
{
|
|
1577
|
-
className:
|
|
1577
|
+
className: p(
|
|
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: p({
|
|
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: p({
|
|
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: p({
|
|
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: p(
|
|
1619
1619
|
"flex mx-auto items-center",
|
|
1620
1620
|
{
|
|
1621
1621
|
uppercase: l
|
|
@@ -1633,7 +1633,7 @@ const W = {
|
|
|
1633
1633
|
]
|
|
1634
1634
|
}
|
|
1635
1635
|
);
|
|
1636
|
-
}, K1 =
|
|
1636
|
+
}, K1 = y(u1), p1 = ({
|
|
1637
1637
|
block: d = !1,
|
|
1638
1638
|
children: e,
|
|
1639
1639
|
className: t,
|
|
@@ -1644,34 +1644,34 @@ const W = {
|
|
|
1644
1644
|
headerClass: o,
|
|
1645
1645
|
list: r = !1,
|
|
1646
1646
|
props: i = {},
|
|
1647
|
-
variation:
|
|
1647
|
+
variation: u = "primary"
|
|
1648
1648
|
}) => {
|
|
1649
|
-
const
|
|
1650
|
-
return /* @__PURE__ */
|
|
1649
|
+
const m = r ? "ul" : "div";
|
|
1650
|
+
return /* @__PURE__ */ g(
|
|
1651
1651
|
"div",
|
|
1652
1652
|
{
|
|
1653
|
-
className:
|
|
1653
|
+
className: p(
|
|
1654
1654
|
"content-card",
|
|
1655
1655
|
{ "content-card--block": d },
|
|
1656
|
-
`content-card--${
|
|
1656
|
+
`content-card--${u}`,
|
|
1657
1657
|
t
|
|
1658
1658
|
),
|
|
1659
1659
|
...i,
|
|
1660
1660
|
children: [
|
|
1661
|
-
l && /* @__PURE__ */ c("div", { className:
|
|
1661
|
+
l && /* @__PURE__ */ c("div", { className: p("content-card__header", o), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
|
|
1662
1662
|
/* @__PURE__ */ c(
|
|
1663
|
-
|
|
1663
|
+
m,
|
|
1664
1664
|
{
|
|
1665
|
-
className:
|
|
1665
|
+
className: p("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: p("content-card__footer", n), children: s })
|
|
1671
1671
|
]
|
|
1672
1672
|
}
|
|
1673
1673
|
);
|
|
1674
|
-
}, X1 =
|
|
1674
|
+
}, X1 = y(p1), m1 = ({
|
|
1675
1675
|
children: d,
|
|
1676
1676
|
className: e,
|
|
1677
1677
|
colGap: t = 2,
|
|
@@ -1682,16 +1682,16 @@ const W = {
|
|
|
1682
1682
|
rowGap: o = 1,
|
|
1683
1683
|
value: r,
|
|
1684
1684
|
valueClass: i,
|
|
1685
|
-
wrap:
|
|
1686
|
-
}) => /* @__PURE__ */
|
|
1685
|
+
wrap: u = !1
|
|
1686
|
+
}) => /* @__PURE__ */ g(
|
|
1687
1687
|
"div",
|
|
1688
1688
|
{
|
|
1689
|
-
className:
|
|
1689
|
+
className: p(
|
|
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": u
|
|
1695
1695
|
},
|
|
1696
1696
|
e
|
|
1697
1697
|
),
|
|
@@ -1701,12 +1701,12 @@ 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: p("item-label", s), children: n }),
|
|
1705
|
+
r && /* @__PURE__ */ c("div", { className: p("item-value", i), children: r }),
|
|
1706
1706
|
d
|
|
1707
1707
|
]
|
|
1708
1708
|
}
|
|
1709
|
-
), e2 =
|
|
1709
|
+
), e2 = y(m1), t2 = ({
|
|
1710
1710
|
breakPage: d = !1,
|
|
1711
1711
|
children: e,
|
|
1712
1712
|
className: t,
|
|
@@ -1715,10 +1715,10 @@ const W = {
|
|
|
1715
1715
|
title: s,
|
|
1716
1716
|
titleClass: l,
|
|
1717
1717
|
titleId: o
|
|
1718
|
-
}) => /* @__PURE__ */
|
|
1718
|
+
}) => /* @__PURE__ */ g(
|
|
1719
1719
|
"section",
|
|
1720
1720
|
{
|
|
1721
|
-
className:
|
|
1721
|
+
className: p(
|
|
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: p("spacer-title", l), id: o, 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: p("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: p(
|
|
1739
1739
|
"!header-4-medium mb-6 flex items-center",
|
|
1740
1740
|
{
|
|
1741
1741
|
"text-center justify-center": d === "center",
|
|
@@ -1746,7 +1746,7 @@ const W = {
|
|
|
1746
1746
|
),
|
|
1747
1747
|
children: n || e
|
|
1748
1748
|
}
|
|
1749
|
-
), n2 =
|
|
1749
|
+
), n2 = y(f1), V1 = {
|
|
1750
1750
|
circular: "circular 3s linear infinite",
|
|
1751
1751
|
"circular-reverse": "circular 3s linear reverse infinite",
|
|
1752
1752
|
"fade-in": "fade-in 0.2.5s ease-out",
|
|
@@ -1885,10 +1885,10 @@ const W = {
|
|
|
1885
1885
|
max: "1199px"
|
|
1886
1886
|
},
|
|
1887
1887
|
"lg-up": "1200px"
|
|
1888
|
-
},
|
|
1888
|
+
}, y1 = {
|
|
1889
1889
|
0: "0ms",
|
|
1890
1890
|
50: "50ms"
|
|
1891
|
-
},
|
|
1891
|
+
}, A1 = {
|
|
1892
1892
|
"center-top": "center 30%"
|
|
1893
1893
|
}, O = {
|
|
1894
1894
|
animation: V1,
|
|
@@ -1899,8 +1899,8 @@ const W = {
|
|
|
1899
1899
|
margin: g1,
|
|
1900
1900
|
maxWidth: v1,
|
|
1901
1901
|
screens: b1,
|
|
1902
|
-
transitionDuration:
|
|
1903
|
-
transformOrigin:
|
|
1902
|
+
transitionDuration: y1,
|
|
1903
|
+
transformOrigin: A1
|
|
1904
1904
|
}, I = {
|
|
1905
1905
|
black: {
|
|
1906
1906
|
50: "#FCFCFC",
|
|
@@ -2060,19 +2060,19 @@ const W = {
|
|
|
2060
2060
|
weightProps: o = null
|
|
2061
2061
|
}) => {
|
|
2062
2062
|
const r = {};
|
|
2063
|
-
Object.entries(s).forEach(([i,
|
|
2064
|
-
const
|
|
2065
|
-
"font-size":
|
|
2063
|
+
Object.entries(s).forEach(([i, u]) => {
|
|
2064
|
+
const m = {
|
|
2065
|
+
"font-size": u,
|
|
2066
2066
|
...a
|
|
2067
|
-
},
|
|
2068
|
-
r[
|
|
2069
|
-
...
|
|
2070
|
-
...
|
|
2071
|
-
}, Object.entries(l).forEach(([f,
|
|
2072
|
-
const
|
|
2073
|
-
r[
|
|
2074
|
-
...
|
|
2075
|
-
"font-weight":
|
|
2067
|
+
}, V = `.${e(`${t}-${i}`)}`, H = n ? n({ sizeKey: i, sizeValue: u }) : {};
|
|
2068
|
+
r[V] = {
|
|
2069
|
+
...m,
|
|
2070
|
+
...H
|
|
2071
|
+
}, Object.entries(l).forEach(([f, M]) => {
|
|
2072
|
+
const A = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: M }) : {};
|
|
2073
|
+
r[A] = {
|
|
2074
|
+
...m,
|
|
2075
|
+
"font-weight": M,
|
|
2076
2076
|
...h
|
|
2077
2077
|
};
|
|
2078
2078
|
});
|
|
@@ -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, o] of t.entries()) {
|
|
2221
|
-
const r = e.querySelector(`[name="${l}"]`), i = a[l],
|
|
2222
|
-
i.forEach((
|
|
2223
|
-
|
|
2224
|
-
}),
|
|
2225
|
-
|
|
2221
|
+
const r = e.querySelector(`[name="${l}"]`), i = a[l], u = [];
|
|
2222
|
+
i.forEach((m) => {
|
|
2223
|
+
m.isValid(o) || u.push(m.message);
|
|
2224
|
+
}), u.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", (m) => {
|
|
2225
|
+
m.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 C {
|
|
2327
2327
|
static calcCrow(e, t, a, n) {
|
|
2328
|
-
const l =
|
|
2329
|
-
e =
|
|
2328
|
+
const l = C.toRad(a - e), o = C.toRad(n - t);
|
|
2329
|
+
e = C.toRad(e), a = C.toRad(a);
|
|
2330
2330
|
const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 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 V {
|
|
|
2341
2341
|
return;
|
|
2342
2342
|
window.dataLayer = window.dataLayer || [];
|
|
2343
2343
|
const t = document.querySelectorAll("[data-div-track]");
|
|
2344
|
-
typeof
|
|
2344
|
+
typeof C == "function" && t.forEach((a) => {
|
|
2345
2345
|
a.addEventListener("click", () => {
|
|
2346
|
-
|
|
2346
|
+
C.clickTrackEvent(a.dataset.divTrack);
|
|
2347
2347
|
});
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
@@ -2356,31 +2356,67 @@ class V {
|
|
|
2356
2356
|
static async createData(e, t = null, a = !0, n = {}) {
|
|
2357
2357
|
if (!t)
|
|
2358
2358
|
return null;
|
|
2359
|
-
const
|
|
2359
|
+
const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), o = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
|
|
2360
|
+
try {
|
|
2361
|
+
const r = await fetch(e + s, {
|
|
2362
|
+
method: "POST",
|
|
2363
|
+
body: l === "null" ? null : l,
|
|
2364
|
+
headers: {
|
|
2365
|
+
website: o
|
|
2366
|
+
},
|
|
2367
|
+
...n
|
|
2368
|
+
}), i = r.headers.get("miss-session-id"), u = r.headers.get("client-retry") === "true";
|
|
2369
|
+
return console.log({ missSessionId: i, clientRetry: u }), u === !0 && i ? await this.createData2(
|
|
2370
|
+
e,
|
|
2371
|
+
t,
|
|
2372
|
+
a,
|
|
2373
|
+
n,
|
|
2374
|
+
i
|
|
2375
|
+
) : await this.createDataReturn(r);
|
|
2376
|
+
} catch (r) {
|
|
2377
|
+
console.error("createData", r);
|
|
2378
|
+
}
|
|
2379
|
+
return null;
|
|
2380
|
+
}
|
|
2381
|
+
static async createData2(e, t = null, a = !0, n = {}, s = null) {
|
|
2382
|
+
if (!t)
|
|
2383
|
+
return null;
|
|
2384
|
+
const l = await this.createDataGetExtra({ useExtra: a, missSessionId: s }), o = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
|
|
2360
2385
|
try {
|
|
2361
|
-
const
|
|
2386
|
+
const i = await fetch(e + l, {
|
|
2362
2387
|
method: "POST",
|
|
2363
|
-
body:
|
|
2388
|
+
body: o === "null" ? null : o,
|
|
2364
2389
|
headers: {
|
|
2365
|
-
website:
|
|
2390
|
+
website: r
|
|
2366
2391
|
},
|
|
2367
2392
|
...n
|
|
2368
|
-
})
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
return C ? C.replace("__next", "") : null;
|
|
2373
|
-
} catch (u) {
|
|
2374
|
-
console.error("createData", u);
|
|
2393
|
+
});
|
|
2394
|
+
return await this.createDataReturn(i);
|
|
2395
|
+
} catch (i) {
|
|
2396
|
+
console.error("createData", i);
|
|
2375
2397
|
}
|
|
2376
2398
|
return null;
|
|
2377
2399
|
}
|
|
2400
|
+
static async createDataGetExtra({ useExtra: e, missSessionId: t = null }) {
|
|
2401
|
+
const { tolken: a = null, ip: n = null } = await C.getHeaders({
|
|
2402
|
+
bypassSession: t !== null,
|
|
2403
|
+
missSessionId: t
|
|
2404
|
+
});
|
|
2405
|
+
return e === !1 ? "" : "&tolken=" + a + "&ip=" + n;
|
|
2406
|
+
}
|
|
2407
|
+
static async createDataReturn(e) {
|
|
2408
|
+
const t = e.headers.get("content-type");
|
|
2409
|
+
if (t && t.indexOf("application/json") !== -1)
|
|
2410
|
+
return e.json();
|
|
2411
|
+
const a = await e.text();
|
|
2412
|
+
return a ? a.replace("__next", "") : null;
|
|
2413
|
+
}
|
|
2378
2414
|
static dataLayer({ type: e = null, data: t = null }) {
|
|
2379
2415
|
typeof dataLayer.push > "u" || typeof dataLayer.push > "u" || (e === "custom" && t && this.dlvCustom(t), e === "login" && t && this.dlvUserLogin(t), e === "userData" && t && this.dlvUserData(t));
|
|
2380
2416
|
}
|
|
2381
2417
|
static async deleteSearchValue(e = "recsSearchValue") {
|
|
2382
2418
|
try {
|
|
2383
|
-
return await
|
|
2419
|
+
return await C.createData(`/api/cookie/remove?name=${e}`);
|
|
2384
2420
|
} catch (t) {
|
|
2385
2421
|
console.error("deleteSearchValue", t.message);
|
|
2386
2422
|
}
|
|
@@ -2429,12 +2465,12 @@ class V {
|
|
|
2429
2465
|
});
|
|
2430
2466
|
}
|
|
2431
2467
|
static async fetchData(e, t = !1, a = !0) {
|
|
2432
|
-
const { tolken: n = null, ip: s = null } = await
|
|
2468
|
+
const { tolken: n = null, ip: s = null } = await C.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
|
|
2433
2469
|
try {
|
|
2434
2470
|
const r = await fetch(o, { method: "GET" });
|
|
2435
2471
|
if (t === !0) {
|
|
2436
|
-
const
|
|
2437
|
-
return
|
|
2472
|
+
const u = await r.text();
|
|
2473
|
+
return u ? u.replace("__next", "") : null;
|
|
2438
2474
|
}
|
|
2439
2475
|
const i = r.headers.get("content-type");
|
|
2440
2476
|
return i && i.indexOf("application/json") !== -1 ? r.json() : null;
|
|
@@ -2449,8 +2485,8 @@ class V {
|
|
|
2449
2485
|
}
|
|
2450
2486
|
static formatDate(e = null) {
|
|
2451
2487
|
return e ? (e = new Date(e), [
|
|
2452
|
-
|
|
2453
|
-
|
|
2488
|
+
C.padTo2Digits(e.getMonth() + 1),
|
|
2489
|
+
C.padTo2Digits(e.getDate()),
|
|
2454
2490
|
e.getFullYear()
|
|
2455
2491
|
].join("-")) : null;
|
|
2456
2492
|
}
|
|
@@ -2499,27 +2535,54 @@ class V {
|
|
|
2499
2535
|
if (t === "license" || t === "license-plate")
|
|
2500
2536
|
return "/report/license-plate";
|
|
2501
2537
|
}
|
|
2502
|
-
static async getHeaders(
|
|
2503
|
-
|
|
2538
|
+
static async getHeaders({
|
|
2539
|
+
ttl: e = 60,
|
|
2540
|
+
bypassSession: t = !1,
|
|
2541
|
+
missSessionId: a = null
|
|
2542
|
+
} = {}) {
|
|
2543
|
+
var m;
|
|
2504
2544
|
const {
|
|
2505
|
-
userAgent:
|
|
2506
|
-
userAgentData:
|
|
2507
|
-
platform:
|
|
2508
|
-
} = navigator || {},
|
|
2545
|
+
userAgent: n = null,
|
|
2546
|
+
userAgentData: s = null,
|
|
2547
|
+
platform: l = null
|
|
2548
|
+
} = navigator || {}, o = (s == null ? void 0 : s.platform) ?? l, r = {
|
|
2509
2549
|
tolken: null,
|
|
2510
2550
|
ip: null,
|
|
2511
|
-
userAgent:
|
|
2512
|
-
platform:
|
|
2551
|
+
userAgent: n,
|
|
2552
|
+
platform: o
|
|
2513
2553
|
};
|
|
2514
|
-
if (typeof window.localStorage > "u"
|
|
2515
|
-
return
|
|
2554
|
+
if (typeof window.localStorage > "u")
|
|
2555
|
+
return r;
|
|
2556
|
+
const i = "headerSessionId", u = localStorage.getItem(i);
|
|
2557
|
+
if (u && !t) {
|
|
2558
|
+
const V = JSON.parse(u), H = (/* @__PURE__ */ new Date()).getTime();
|
|
2559
|
+
return V.expire - H < 0 && localStorage.removeItem(i), {
|
|
2560
|
+
tolken: V.tolken,
|
|
2561
|
+
ip: V.ip,
|
|
2562
|
+
userAgent: n,
|
|
2563
|
+
platform: o
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
if ((m = window == null ? void 0 : window.options) != null && m.isPdf)
|
|
2567
|
+
return r;
|
|
2516
2568
|
try {
|
|
2517
|
-
const
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2569
|
+
const H = await (await fetch("/api/client-headers", {
|
|
2570
|
+
headers: {
|
|
2571
|
+
"miss-session-id": a
|
|
2572
|
+
}
|
|
2573
|
+
})).json(), f = (H == null ? void 0 : H.sessionId) ?? "noSessionId", M = H["x-forwarded-for"] ?? null, A = M ? M.split(/, /)[0] : null, h = e * 1e3;
|
|
2574
|
+
return localStorage.setItem(
|
|
2575
|
+
i,
|
|
2576
|
+
JSON.stringify({
|
|
2577
|
+
tolken: f,
|
|
2578
|
+
ip: A,
|
|
2579
|
+
expire: (/* @__PURE__ */ new Date()).getTime() + h
|
|
2580
|
+
})
|
|
2581
|
+
), { tolken: f, ip: A, userAgent: n, platform: o };
|
|
2582
|
+
} catch (V) {
|
|
2583
|
+
console.error("getHeaders", V);
|
|
2521
2584
|
}
|
|
2522
|
-
return
|
|
2585
|
+
return r;
|
|
2523
2586
|
}
|
|
2524
2587
|
static getLayerTitle(e) {
|
|
2525
2588
|
return {
|
|
@@ -2528,19 +2591,19 @@ class V {
|
|
|
2528
2591
|
}[e];
|
|
2529
2592
|
}
|
|
2530
2593
|
static async getLocationData(e) {
|
|
2531
|
-
const { swLat: t, neLng: a, neLat: n, swLng: s } =
|
|
2532
|
-
return await
|
|
2594
|
+
const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
|
|
2595
|
+
return await C.fetchData("/api/client?query=" + l);
|
|
2533
2596
|
}
|
|
2534
2597
|
static getReportUrl(e, t = null) {
|
|
2535
|
-
var r, i,
|
|
2536
|
-
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((
|
|
2598
|
+
var r, i, u;
|
|
2599
|
+
const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
|
|
2537
2600
|
t = t || ((e == null ? void 0 : e.id) ?? null);
|
|
2538
|
-
const o = [l, "-piq", t].filter((
|
|
2539
|
-
return "/" + [a, n, s].filter((
|
|
2601
|
+
const o = [l, "-piq", t].filter((m) => m).join("");
|
|
2602
|
+
return "/" + [a, n, s].filter((m) => m).map((m) => C.toSlug(m)).join("/") + "/" + o;
|
|
2540
2603
|
}
|
|
2541
2604
|
static async getSearchValue(e = "recsSearchValue") {
|
|
2542
2605
|
try {
|
|
2543
|
-
return await
|
|
2606
|
+
return await C.createData(`/api/cookie/fetch?name=${e}`);
|
|
2544
2607
|
} catch (t) {
|
|
2545
2608
|
console.error("getSearchValue", t.message);
|
|
2546
2609
|
}
|
|
@@ -2668,7 +2731,7 @@ class V {
|
|
|
2668
2731
|
if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
|
|
2669
2732
|
return null;
|
|
2670
2733
|
try {
|
|
2671
|
-
return await
|
|
2734
|
+
return await C.createData("/api/cookie/fetch?name=odrUser");
|
|
2672
2735
|
} catch (t) {
|
|
2673
2736
|
console.error("getUser", t.message);
|
|
2674
2737
|
}
|
|
@@ -2684,7 +2747,7 @@ class V {
|
|
|
2684
2747
|
uuid: t
|
|
2685
2748
|
}
|
|
2686
2749
|
});
|
|
2687
|
-
return await
|
|
2750
|
+
return await C.fetchData(
|
|
2688
2751
|
`/api/client?query=user-get-history&filter=${a}`
|
|
2689
2752
|
);
|
|
2690
2753
|
}
|
|
@@ -2746,7 +2809,7 @@ class V {
|
|
|
2746
2809
|
selfClose: l = !1,
|
|
2747
2810
|
target: o = null
|
|
2748
2811
|
}) {
|
|
2749
|
-
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`),
|
|
2812
|
+
const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`), u = l ? i == null ? void 0 : i.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), m = [
|
|
2750
2813
|
"closing",
|
|
2751
2814
|
"closed",
|
|
2752
2815
|
"opening",
|
|
@@ -2759,36 +2822,36 @@ class V {
|
|
|
2759
2822
|
[v]: new Event(v)
|
|
2760
2823
|
}),
|
|
2761
2824
|
{}
|
|
2762
|
-
),
|
|
2825
|
+
), V = new MutationObserver((h, v) => {
|
|
2763
2826
|
h.forEach(async (w) => {
|
|
2764
2827
|
if (w.attributeName === "open") {
|
|
2765
2828
|
const b = w.target;
|
|
2766
2829
|
if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
|
|
2767
|
-
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(
|
|
2830
|
+
b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(m.opening), b && await A(b), b == null || b.dispatchEvent(m.opened);
|
|
2768
2831
|
}
|
|
2769
2832
|
});
|
|
2770
|
-
}),
|
|
2833
|
+
}), H = new MutationObserver((h, v) => {
|
|
2771
2834
|
h.forEach((w) => {
|
|
2772
2835
|
w.removedNodes.forEach((b) => {
|
|
2773
|
-
b.nodeName === "DIALOG" && (b.removeEventListener("click",
|
|
2836
|
+
b.nodeName === "DIALOG" && (b.removeEventListener("click", M), b.removeEventListener("close", f), b.dispatchEvent(m.removed), H == null || H.disconnect(), V == null || V.disconnect());
|
|
2774
2837
|
});
|
|
2775
2838
|
});
|
|
2776
2839
|
});
|
|
2777
|
-
i && (
|
|
2840
|
+
i && (V.observe(i, {
|
|
2778
2841
|
attributes: !0
|
|
2779
|
-
}),
|
|
2842
|
+
}), H.observe(document.body, {
|
|
2780
2843
|
attributes: !1,
|
|
2781
2844
|
subtree: !1,
|
|
2782
2845
|
childList: !0
|
|
2783
2846
|
}));
|
|
2784
2847
|
const f = async ({ target: h }) => {
|
|
2785
|
-
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(
|
|
2786
|
-
},
|
|
2787
|
-
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(
|
|
2788
|
-
},
|
|
2848
|
+
h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(m.closed);
|
|
2849
|
+
}, M = async ({ target: h }) => {
|
|
2850
|
+
(h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside), i == null || i.close("outside"));
|
|
2851
|
+
}, A = (h) => Promise.allSettled(
|
|
2789
2852
|
h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
|
|
2790
2853
|
);
|
|
2791
|
-
return !e && (i == null || i.addEventListener("click",
|
|
2854
|
+
return !e && (i == null || i.addEventListener("click", M)), i == null || i.addEventListener("close", async (h) => {
|
|
2792
2855
|
await f({ target: h.target }), a && a(h, i);
|
|
2793
2856
|
}), e && (i == null || i.addEventListener("cancel", async (h) => {
|
|
2794
2857
|
h.key === "Escape" && h.preventDefault();
|
|
@@ -2800,7 +2863,7 @@ class V {
|
|
|
2800
2863
|
h.addEventListener("click", (v) => {
|
|
2801
2864
|
i == null || i.showModal(), s && s(v, i);
|
|
2802
2865
|
});
|
|
2803
|
-
}),
|
|
2866
|
+
}), u == null || u.forEach((h) => {
|
|
2804
2867
|
h.addEventListener("click", async (v) => {
|
|
2805
2868
|
i == null || i.close("close");
|
|
2806
2869
|
});
|
|
@@ -2810,7 +2873,7 @@ class V {
|
|
|
2810
2873
|
};
|
|
2811
2874
|
}
|
|
2812
2875
|
static hasBoundsEntry(e, t = "bounds") {
|
|
2813
|
-
return
|
|
2876
|
+
return C.getBoundsEntries(t).includes(e);
|
|
2814
2877
|
}
|
|
2815
2878
|
static initObserver(e, t, a = null) {
|
|
2816
2879
|
if (!e)
|
|
@@ -2869,7 +2932,7 @@ class V {
|
|
|
2869
2932
|
url: n,
|
|
2870
2933
|
data: s
|
|
2871
2934
|
};
|
|
2872
|
-
return await
|
|
2935
|
+
return await C.createData("/api/client?query=log/save&method=POST", l), null;
|
|
2873
2936
|
}
|
|
2874
2937
|
static loadAds() {
|
|
2875
2938
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2887,7 +2950,7 @@ class V {
|
|
|
2887
2950
|
if (e) {
|
|
2888
2951
|
const s = "/scripts/" + e + ".js?v=" + n;
|
|
2889
2952
|
try {
|
|
2890
|
-
return await
|
|
2953
|
+
return await C.injectScript({
|
|
2891
2954
|
src: s,
|
|
2892
2955
|
id: t || e,
|
|
2893
2956
|
async: !1,
|
|
@@ -2903,11 +2966,11 @@ class V {
|
|
|
2903
2966
|
if (window.options.googleMapsLoaded === !0)
|
|
2904
2967
|
return;
|
|
2905
2968
|
const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
|
|
2906
|
-
await
|
|
2969
|
+
await C.injectScript({ src: a, id: "googleapis", async: !1 });
|
|
2907
2970
|
}
|
|
2908
2971
|
static async loadLeafletApi() {
|
|
2909
2972
|
const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
|
|
2910
|
-
await
|
|
2973
|
+
await C.injectLink({ href: t, id: "leafletCss" }), await C.injectLink({ href: n, id: "gestureCss" }), await C.injectScript({ src: e, id: "leafletJs", async: !1 }), await C.injectScript({
|
|
2911
2974
|
src: a,
|
|
2912
2975
|
id: "gestureJs",
|
|
2913
2976
|
async: !1
|
|
@@ -2922,18 +2985,7 @@ class V {
|
|
|
2922
2985
|
}
|
|
2923
2986
|
static async loadSwiper() {
|
|
2924
2987
|
const e = "/slider/swiper-bundle.min.js";
|
|
2925
|
-
await
|
|
2926
|
-
}
|
|
2927
|
-
static async makeSearchFetchCall(e) {
|
|
2928
|
-
try {
|
|
2929
|
-
return (await fetch(e, {
|
|
2930
|
-
method: "GET",
|
|
2931
|
-
headers: { "Content-Type": "application/json" }
|
|
2932
|
-
})).json();
|
|
2933
|
-
} catch (t) {
|
|
2934
|
-
console.error("performSearch", t, { url: e });
|
|
2935
|
-
}
|
|
2936
|
-
return [];
|
|
2988
|
+
await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
|
|
2937
2989
|
}
|
|
2938
2990
|
static money(e, t = "", a = 0) {
|
|
2939
2991
|
return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
|
|
@@ -2959,13 +3011,13 @@ class V {
|
|
|
2959
3011
|
max: o = null,
|
|
2960
3012
|
city: r = null,
|
|
2961
3013
|
state: i = null,
|
|
2962
|
-
vin:
|
|
2963
|
-
license:
|
|
2964
|
-
token:
|
|
2965
|
-
phone:
|
|
2966
|
-
} = e || {}, f = t && t !== "",
|
|
3014
|
+
vin: u = null,
|
|
3015
|
+
license: m = null,
|
|
3016
|
+
token: V = null,
|
|
3017
|
+
phone: H = null
|
|
3018
|
+
} = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", A = o && o !== "" && l !== "99";
|
|
2967
3019
|
let h = [];
|
|
2968
|
-
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)),
|
|
3020
|
+
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 && A ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (M && h.push("min=" + l), A && h.push("max=" + o)), H && H !== "" && h.push("phone=" + H), r && r !== "" && h.push("city=" + r), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), V && V !== "" && h.push("token=" + V), h.join("&");
|
|
2969
3021
|
}
|
|
2970
3022
|
static padTo2Digits(e) {
|
|
2971
3023
|
return e.toString().padStart(2, "0");
|
|
@@ -2983,11 +3035,11 @@ class V {
|
|
|
2983
3035
|
useLocation: o = !0,
|
|
2984
3036
|
state: r = "",
|
|
2985
3037
|
useGoogle: i = !1,
|
|
2986
|
-
useGoogleOverride:
|
|
2987
|
-
useAmazonOverride:
|
|
2988
|
-
isSandboxAccount:
|
|
2989
|
-
isOptOutSearch:
|
|
2990
|
-
} = t ?? {}, { tolken: f = null, ip:
|
|
3038
|
+
useGoogleOverride: u = !1,
|
|
3039
|
+
useAmazonOverride: m = !1,
|
|
3040
|
+
isSandboxAccount: V = !1,
|
|
3041
|
+
isOptOutSearch: H = !1
|
|
3042
|
+
} = t ?? {}, { tolken: f = null, ip: M = null } = await C.getHeaders(), h = [
|
|
2991
3043
|
"query=" + encodeURIComponent(this.cleanupAddress(e)),
|
|
2992
3044
|
"addressesOnly=" + a,
|
|
2993
3045
|
"useSearch=" + l,
|
|
@@ -2995,14 +3047,14 @@ class V {
|
|
|
2995
3047
|
"useCityStateSearch=" + s,
|
|
2996
3048
|
"useLocation=" + o,
|
|
2997
3049
|
"useGoogle=" + i,
|
|
2998
|
-
"useGoogleOverride=" +
|
|
2999
|
-
"useAmazonOverride=" +
|
|
3000
|
-
"isSandboxAccount=" +
|
|
3001
|
-
"isOptOutSearch=" +
|
|
3050
|
+
"useGoogleOverride=" + u,
|
|
3051
|
+
"useAmazonOverride=" + m,
|
|
3052
|
+
"isSandboxAccount=" + V,
|
|
3053
|
+
"isOptOutSearch=" + H
|
|
3002
3054
|
];
|
|
3003
|
-
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f),
|
|
3055
|
+
r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), M && M !== "" && h.push("ip=" + M);
|
|
3004
3056
|
const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
|
|
3005
|
-
return await
|
|
3057
|
+
return await C.fetchData(b);
|
|
3006
3058
|
}
|
|
3007
3059
|
static removeElements(e) {
|
|
3008
3060
|
document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
|
|
@@ -3021,7 +3073,7 @@ class V {
|
|
|
3021
3073
|
});
|
|
3022
3074
|
}
|
|
3023
3075
|
static searchInStates(e) {
|
|
3024
|
-
const t =
|
|
3076
|
+
const t = C.getStates(), a = e.toLowerCase();
|
|
3025
3077
|
let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
|
|
3026
3078
|
return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
|
|
3027
3079
|
}
|
|
@@ -3029,7 +3081,7 @@ class V {
|
|
|
3029
3081
|
typeof woopra == "object" && woopra.track(e, t);
|
|
3030
3082
|
}
|
|
3031
3083
|
static setBoundsEntries(e, t = "bounds") {
|
|
3032
|
-
const a =
|
|
3084
|
+
const a = C.getBoundsEntries(t);
|
|
3033
3085
|
a.push(e), localStorage.setItem(t, JSON.stringify(a));
|
|
3034
3086
|
}
|
|
3035
3087
|
static async setCityState(e = null) {
|
|
@@ -3038,7 +3090,7 @@ class V {
|
|
|
3038
3090
|
return e;
|
|
3039
3091
|
t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
|
|
3040
3092
|
let [a = null, n = null] = t.split(",").map((s) => s.trim());
|
|
3041
|
-
if (
|
|
3093
|
+
if (C.getStates(), a && !n) {
|
|
3042
3094
|
const s = this.searchInStates(a);
|
|
3043
3095
|
s && (a = null, n = s.short);
|
|
3044
3096
|
}
|
|
@@ -3063,16 +3115,16 @@ class V {
|
|
|
3063
3115
|
static async setRandomFileNameVersion(e, t = "scripts") {
|
|
3064
3116
|
const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
|
|
3065
3117
|
try {
|
|
3066
|
-
const l = e.map(({ fileName: i, initFunctionName:
|
|
3067
|
-
o.forEach((i,
|
|
3068
|
-
i && typeof i[e[
|
|
3118
|
+
const l = e.map(({ fileName: i, initFunctionName: u }) => import(`${n}${s}${i}?v=${a}`)), o = await Promise.all(l), r = [];
|
|
3119
|
+
o.forEach((i, u) => {
|
|
3120
|
+
i && typeof i[e[u].initFunctionName] == "function" ? r.push(i[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
|
|
3069
3121
|
}), r.length > 0 && await Promise.all(r);
|
|
3070
3122
|
} catch (l) {
|
|
3071
3123
|
console.error("Failed to load one or more search modules:", l);
|
|
3072
3124
|
}
|
|
3073
3125
|
}
|
|
3074
3126
|
static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
|
|
3075
|
-
localStorage.setItem(t, JSON.stringify(e)), await
|
|
3127
|
+
localStorage.setItem(t, JSON.stringify(e)), await C.createData(
|
|
3076
3128
|
`/api/cookie/create?name=${t}`,
|
|
3077
3129
|
e,
|
|
3078
3130
|
!0,
|
|
@@ -3104,7 +3156,7 @@ class V {
|
|
|
3104
3156
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3105
3157
|
}
|
|
3106
3158
|
static useLayerTitle(e, t) {
|
|
3107
|
-
const a =
|
|
3159
|
+
const a = C.getLayerTitle(e);
|
|
3108
3160
|
L.tileLayer(a, {
|
|
3109
3161
|
maxNativeZoom: 19,
|
|
3110
3162
|
maxZoom: 25,
|
|
@@ -3113,7 +3165,7 @@ class V {
|
|
|
3113
3165
|
}).addTo(t);
|
|
3114
3166
|
}
|
|
3115
3167
|
static ucWords(e) {
|
|
3116
|
-
return e ? e.toString().split(" ").map((t) =>
|
|
3168
|
+
return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
|
|
3117
3169
|
}
|
|
3118
3170
|
/**
|
|
3119
3171
|
* HOW TO USE EVENTS
|
|
@@ -3163,14 +3215,14 @@ export {
|
|
|
3163
3215
|
F as Button,
|
|
3164
3216
|
h2 as CardSlider,
|
|
3165
3217
|
I1 as Checkbox,
|
|
3166
|
-
|
|
3218
|
+
C as Common,
|
|
3167
3219
|
K1 as ContactForm,
|
|
3168
3220
|
X1 as ContentCard,
|
|
3169
3221
|
B1 as Dialog,
|
|
3170
3222
|
$1 as Dots,
|
|
3171
3223
|
e2 as FlexItem,
|
|
3172
3224
|
n2 as FunnelHeader,
|
|
3173
|
-
|
|
3225
|
+
x as Icon,
|
|
3174
3226
|
q1 as LoadingBar,
|
|
3175
3227
|
P1 as Popover,
|
|
3176
3228
|
j1 as ProcessingSpinner,
|
|
@@ -3182,10 +3234,10 @@ export {
|
|
|
3182
3234
|
t2 as Spacer,
|
|
3183
3235
|
J1 as Spinner,
|
|
3184
3236
|
a2 as StackedListItem,
|
|
3185
|
-
|
|
3237
|
+
Y1 as Stars,
|
|
3186
3238
|
c1 as TextArea,
|
|
3187
3239
|
D as Textbox,
|
|
3188
|
-
|
|
3240
|
+
_1 as Toggle,
|
|
3189
3241
|
i2 as addClass,
|
|
3190
3242
|
s2 as colors,
|
|
3191
3243
|
$ as corePlugins,
|