@vehiclehistory/property-lib 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as g, Fragment as z } from "react/jsx-runtime";
2
- import { memo as A, useState as Z, useEffect as k, useRef as $ } from "react";
2
+ import { memo as y, useState as Z, useEffect as k, useRef as I } from "react";
3
3
  import m from "classnames";
4
4
  const F = {
5
5
  xxSmall: "w-4 h-4",
@@ -477,7 +477,7 @@ const F = {
477
477
  size: a = "medium",
478
478
  viewBox: n = "0 0 20 20"
479
479
  }) => {
480
- const l = j(t), [i, s] = Z(d), [r, c] = Z(l);
480
+ const l = j(t), [r, s] = Z(d), [i, c] = Z(l);
481
481
  return k(() => {
482
482
  c(l);
483
483
  }, [l]), k(() => {
@@ -486,25 +486,25 @@ const F = {
486
486
  "svg",
487
487
  {
488
488
  xmlns: "http://www.w3.org/2000/svg",
489
- className: `${F[a]} fill-current flex-shrink-0 ${i}${e ? ` ${e}` : ""}`,
489
+ className: `${F[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
490
490
  style: { maxWidth: "4em" },
491
491
  role: "presentation",
492
492
  viewBox: n,
493
493
  dangerouslySetInnerHTML: {
494
- __html: r && r.path
494
+ __html: i && i.path
495
495
  }
496
496
  }
497
497
  );
498
- }, y = A(P), W = ({
498
+ }, b = y(P), W = ({
499
499
  children: d,
500
500
  className: e,
501
501
  clickHandler: t,
502
502
  panelClass: a,
503
503
  title: n,
504
504
  unmount: l = !0,
505
- isOpen: i = !1
505
+ isOpen: r = !1
506
506
  }) => {
507
- const [s, r] = Z(i);
507
+ const [s, i] = Z(r);
508
508
  return /* @__PURE__ */ o("div", { className: m("shadow rounded-lg", e), children: /* @__PURE__ */ g(z, { children: [
509
509
  /* @__PURE__ */ g(
510
510
  "button",
@@ -519,12 +519,12 @@ const F = {
519
519
  ),
520
520
  title: n,
521
521
  onClick: () => {
522
- r(!s), t && t(!s);
522
+ i(!s), t && t(!s);
523
523
  },
524
524
  children: [
525
525
  /* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
526
526
  /* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
527
- y,
527
+ b,
528
528
  {
529
529
  name: "chevronDown",
530
530
  size: "small",
@@ -556,14 +556,14 @@ const F = {
556
556
  }
557
557
  )
558
558
  ] }) });
559
- }, u1 = A(W), R = ({
559
+ }, f1 = y(W), R = ({
560
560
  children: d,
561
561
  className: e = "",
562
562
  messages: t = [],
563
563
  title: a = "",
564
564
  titleClass: n = "",
565
565
  props: l = {},
566
- type: i = "error"
566
+ type: r = "error"
567
567
  }) => {
568
568
  const s = {
569
569
  error: {
@@ -586,11 +586,11 @@ const F = {
586
586
  iconColor: "text-yellow-500",
587
587
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
588
588
  }
589
- }, { icon: r, iconColor: c, styles: h } = s[i];
589
+ }, { icon: i, iconColor: c, styles: h } = s[r];
590
590
  return /* @__PURE__ */ o(
591
591
  "div",
592
592
  {
593
- id: i,
593
+ id: r,
594
594
  className: m(
595
595
  "rounded w-full py-2 px-4 mb-4 border",
596
596
  h,
@@ -599,9 +599,9 @@ const F = {
599
599
  ...l,
600
600
  children: /* @__PURE__ */ g("div", { className: "flex", children: [
601
601
  /* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
602
- y,
602
+ b,
603
603
  {
604
- name: r,
604
+ name: i,
605
605
  viewBox: "0 0 24 24",
606
606
  className: c,
607
607
  size: "xSmall"
@@ -609,28 +609,28 @@ const F = {
609
609
  ) }),
610
610
  /* @__PURE__ */ g("div", { className: "ml-3", children: [
611
611
  /* @__PURE__ */ o("div", { className: m("font-medium text-sm", n), children: a }),
612
- t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u, H) => /* @__PURE__ */ o("li", { children: u }, H)) }) }) : ""
612
+ t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u, f) => /* @__PURE__ */ o("li", { children: u }, f)) }) }) : ""
613
613
  ] })
614
614
  ] })
615
615
  }
616
616
  );
617
- }, p1 = A(R), m1 = ({
617
+ }, M1 = y(R), U = ({
618
618
  autoFocus: d = !1,
619
619
  required: e = !1,
620
620
  className: t = "",
621
621
  defaultValue: a = "",
622
622
  id: n = "",
623
623
  type: l,
624
- floatingLabel: i = "",
624
+ floatingLabel: r = "",
625
625
  inputClass: s = "",
626
- leftIcon: r = "homeSearch",
626
+ leftIcon: i = "homeSearch",
627
627
  mobileBackdrop: c = !1,
628
628
  showSearchIcon: h = !0,
629
629
  options: u = [],
630
- name: H = "",
630
+ name: f = "",
631
631
  placeholder: M = "",
632
- props: b = {},
633
- size: f = "medium",
632
+ props: A = {},
633
+ size: H = "medium",
634
634
  styles: p = null,
635
635
  title: V = ""
636
636
  }) => /* @__PURE__ */ g(
@@ -653,20 +653,20 @@ const F = {
653
653
  ),
654
654
  children: [
655
655
  /* @__PURE__ */ o(
656
- y,
656
+ b,
657
657
  {
658
658
  className: "home-search select-none text-gray-500",
659
- name: r,
660
- size: f === "xLarge" ? "small" : "xSmall",
659
+ name: i,
660
+ size: H === "xLarge" ? "small" : "xSmall",
661
661
  viewBox: "0 0 24 24"
662
662
  }
663
663
  ),
664
664
  /* @__PURE__ */ o(
665
- y,
665
+ b,
666
666
  {
667
667
  className: "arrow-left select-none text-gray-500 hidden",
668
668
  name: "arrowLeft",
669
- size: f === "xLarge" ? "small" : "xSmall",
669
+ size: H === "xLarge" ? "small" : "xSmall",
670
670
  viewBox: "0 0 24 24"
671
671
  }
672
672
  )
@@ -682,36 +682,36 @@ const F = {
682
682
  "w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
683
683
  {
684
684
  "pl-8": h === !0,
685
- "px-3 h-10": f === "medium",
686
- "px-4 h-12": f === "large",
687
- "px-5 h-[60px] sm:!text-base": f === "xLarge",
688
- peer: i
685
+ "px-3 h-10": H === "medium",
686
+ "px-4 h-12": H === "large",
687
+ "px-5 h-[60px] sm:!text-base": H === "xLarge",
688
+ peer: r
689
689
  },
690
690
  s
691
691
  ),
692
692
  required: e,
693
693
  autoComplete: "off",
694
694
  value: a,
695
- placeholder: !M && i ? " " : M,
695
+ placeholder: !M && r ? " " : M,
696
696
  type: "search",
697
- name: H || "search-input",
697
+ name: f || "search-input",
698
698
  "data-id": "search-input",
699
- ...b
699
+ ...A
700
700
  }
701
701
  ),
702
- i && /* @__PURE__ */ o(
702
+ r && /* @__PURE__ */ o(
703
703
  "label",
704
704
  {
705
705
  className: m(
706
706
  "floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
707
707
  {
708
708
  "!left-7": h === !0,
709
- "left-2": f === "medium",
710
- "left-3": f === "large",
711
- "left-4": f === "xLarge"
709
+ "left-2": H === "medium",
710
+ "left-3": H === "large",
711
+ "left-4": H === "xLarge"
712
712
  }
713
713
  ),
714
- children: i
714
+ children: r
715
715
  }
716
716
  ),
717
717
  /* @__PURE__ */ o(
@@ -720,7 +720,7 @@ const F = {
720
720
  "data-id": "search-clear",
721
721
  className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
722
722
  children: /* @__PURE__ */ o(
723
- y,
723
+ b,
724
724
  {
725
725
  className: "cursor-pointer text-gray-500",
726
726
  name: "xCircle",
@@ -736,7 +736,7 @@ const F = {
736
736
  "data-id": "search-loading",
737
737
  className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
738
738
  children: /* @__PURE__ */ o(
739
- y,
739
+ b,
740
740
  {
741
741
  className: "animate-spin text-[#222]] pointer-events-none",
742
742
  name: "spinnerDark",
@@ -780,7 +780,7 @@ const F = {
780
780
  )
781
781
  ]
782
782
  }
783
- ), V1 = ({
783
+ ), g1 = U, Q = ({
784
784
  children: d,
785
785
  className: e,
786
786
  size: t = "sm",
@@ -799,75 +799,75 @@ const F = {
799
799
  ),
800
800
  children: d
801
801
  }
802
- ), U = ({
803
- leftIcon: d,
804
- leftIconProps: e = {},
805
- children: t,
806
- className: a = "",
807
- disabled: n = !1,
808
- href: l,
809
- props: i = {},
810
- rightIcon: s,
811
- rightIconProps: r = {},
812
- rounded: c = !1,
813
- type: h = "button",
814
- uppercase: u = !1,
815
- variation: H = "primary"
802
+ ), v1 = Q, G = ({
803
+ borderless: d = !1,
804
+ leftIcon: e,
805
+ leftIconProps: t = {},
806
+ children: a,
807
+ className: n = "",
808
+ disabled: l = !1,
809
+ href: r,
810
+ props: s = {},
811
+ rightIcon: i,
812
+ rightIconProps: c = {},
813
+ rounded: h = !1,
814
+ size: u = "md",
815
+ type: f = "button",
816
+ uppercase: M = !1,
817
+ variation: A = "primary"
816
818
  }) => {
817
- const M = l ? "a" : "button";
819
+ const H = r ? "a" : "button";
818
820
  return /* @__PURE__ */ g(
819
- M,
821
+ H,
820
822
  {
821
- type: M !== "a" ? h : null,
823
+ type: H !== "a" ? f : null,
822
824
  className: m(
823
825
  "Button",
824
826
  {
825
- [`Button--${H}`]: H,
826
- "Button--rounded": c,
827
- "Button--icon": H === "icon",
828
- "Button--link": H === "link",
829
- "Button--disabled": n,
830
- "Button--custom-link": l,
831
- "Button--uppercase": u
827
+ [`Button--${A}`]: A,
828
+ [`Button--${u}`]: u,
829
+ "Button--rounded": h,
830
+ "Button--disabled": l,
831
+ "Button--custom-link": r,
832
+ "Button--uppercase": M,
833
+ "Button--borderless": d
832
834
  },
833
- a
835
+ n
834
836
  ),
835
- disabled: n,
836
- href: l,
837
- ...i,
837
+ disabled: l,
838
+ href: r,
839
+ ...s,
838
840
  children: [
839
- d && /* @__PURE__ */ o(
840
- y,
841
+ e && /* @__PURE__ */ o(
842
+ b,
841
843
  {
842
- name: d,
843
- size: "small",
844
- className: "mr-2 pointer-events-none",
844
+ name: e,
845
+ size: u === "md" ? "small" : "xSmall",
845
846
  viewBox: "0 0 24 24",
846
- ...e
847
+ ...t
847
848
  }
848
849
  ),
849
- t,
850
- s && /* @__PURE__ */ o(
851
- y,
850
+ a,
851
+ i && /* @__PURE__ */ o(
852
+ b,
852
853
  {
853
- name: s,
854
- size: "small",
855
- className: "ml-2 pointer-events-none",
854
+ name: i,
855
+ size: u === "md" ? "small" : "xSmall",
856
856
  viewBox: "0 0 24 24",
857
- ...r
857
+ ...c
858
858
  }
859
859
  )
860
860
  ]
861
861
  }
862
862
  );
863
- }, H1 = A(U), L1 = ({ children: d, className: e }) => /* @__PURE__ */ o("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), C1 = ({
863
+ }, A1 = y(G), J = ({ children: d, className: e }) => /* @__PURE__ */ o("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), y1 = J, K = ({
864
864
  block: d = !1,
865
865
  borderless: e = !1,
866
866
  children: t,
867
867
  className: a = "",
868
868
  divider: n = !0,
869
869
  inset: l = !0,
870
- id: i = null,
870
+ id: r = null,
871
871
  role: s = null
872
872
  }) => /* @__PURE__ */ o(
873
873
  "div",
@@ -882,27 +882,27 @@ const F = {
882
882
  },
883
883
  a
884
884
  ),
885
- id: i,
885
+ id: r,
886
886
  role: s,
887
887
  children: t
888
888
  }
889
- ), Q = ({
889
+ ), b1 = K, Y = ({
890
890
  checked: d = !1,
891
891
  children: e,
892
892
  className: t = "",
893
893
  error: a = !1,
894
894
  id: n = "",
895
895
  label: l = "",
896
- name: i = "",
896
+ name: r = "",
897
897
  props: s = {},
898
- variation: r = "primary",
898
+ variation: i = "primary",
899
899
  value: c = ""
900
900
  }) => {
901
901
  const h = l ? "div" : "label", u = h === "label" ? { htmlFor: n } : {};
902
902
  return /* @__PURE__ */ g(
903
903
  h,
904
904
  {
905
- className: m("checkbox flex items-center", r, t),
905
+ className: m("checkbox flex items-center", i, t),
906
906
  ...u,
907
907
  children: [
908
908
  /* @__PURE__ */ o(
@@ -913,7 +913,7 @@ const F = {
913
913
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
914
914
  }),
915
915
  id: n,
916
- name: i,
916
+ name: r,
917
917
  type: "checkbox",
918
918
  value: c,
919
919
  ...s
@@ -923,7 +923,7 @@ const F = {
923
923
  ]
924
924
  }
925
925
  );
926
- }, f1 = A(Q), J = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
926
+ }, w1 = y(Y), X = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
927
927
  /* @__PURE__ */ o(
928
928
  "main",
929
929
  {
@@ -949,22 +949,22 @@ const F = {
949
949
  children: e
950
950
  }
951
951
  )
952
- ] }), M1 = A(J), G = ({
952
+ ] }), x1 = y(X), _ = ({
953
953
  activator: d,
954
954
  id: e = "",
955
955
  children: t,
956
956
  className: a = "",
957
957
  contentClass: n = "",
958
958
  dark: l = !1,
959
- footer: i,
959
+ footer: r,
960
960
  fullMobile: s = !0,
961
- headerClass: r = "",
961
+ headerClass: i = "",
962
962
  hideClose: c = !1,
963
963
  iconSize: h = "medium",
964
964
  preventPageScroll: u = !0,
965
- stickyHeader: H = !1,
965
+ stickyHeader: f = !1,
966
966
  title: M = "",
967
- titleClass: b = ""
967
+ titleClass: A = ""
968
968
  }) => /* @__PURE__ */ g(z, { children: [
969
969
  d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
970
970
  /* @__PURE__ */ o(
@@ -988,14 +988,14 @@ const F = {
988
988
  className: m(
989
989
  "dialog-header flex items-center p-4",
990
990
  {
991
- "sticky top-0 bg-white z-10": H,
991
+ "sticky top-0 bg-white z-10": f,
992
992
  "!pb-0 border-0 justify-end": !M,
993
993
  "justify-between border-b": M
994
994
  },
995
- r
995
+ i
996
996
  ),
997
997
  children: [
998
- M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: b, children: M }),
998
+ M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: M }),
999
999
  !c && /* @__PURE__ */ o(
1000
1000
  "button",
1001
1001
  {
@@ -1005,7 +1005,7 @@ const F = {
1005
1005
  "data-dialog-close": "",
1006
1006
  value: "close",
1007
1007
  children: /* @__PURE__ */ o(
1008
- y,
1008
+ b,
1009
1009
  {
1010
1010
  name: "close",
1011
1011
  size: h,
@@ -1025,43 +1025,43 @@ const F = {
1025
1025
  children: t
1026
1026
  }
1027
1027
  ),
1028
- i && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: i })
1028
+ r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
1029
1029
  ] })
1030
1030
  }
1031
1031
  )
1032
- ] }), g1 = A(G), K = ({
1032
+ ] }), S1 = y(_), e1 = ({
1033
1033
  activator: d,
1034
1034
  id: e = "",
1035
1035
  children: t,
1036
1036
  className: a = "",
1037
1037
  contentClass: n = "",
1038
1038
  onClose: l,
1039
- disableOutsideClick: i = !1,
1039
+ disableOutsideClick: r = !1,
1040
1040
  footer: s,
1041
- fullMobile: r = !0,
1041
+ fullMobile: i = !0,
1042
1042
  headerClass: c = "",
1043
1043
  hideClose: h = !1,
1044
1044
  iconSize: u = "medium",
1045
- isOpen: H = !1,
1045
+ isOpen: f = !1,
1046
1046
  setDialogOpen: M,
1047
- stickyHeader: b = !1,
1048
- title: f = "",
1047
+ stickyHeader: A = !1,
1048
+ title: H = "",
1049
1049
  titleClass: p = ""
1050
1050
  }) => {
1051
- const V = $(null), w = async () => {
1051
+ const V = I(null), w = async () => {
1052
1052
  V.current.classList.add("closing"), await B(V.current), V.current.classList.remove("closing"), l && l(), M(!1);
1053
1053
  }, v = async (x) => {
1054
1054
  x.key === "Escape" && await w();
1055
- }, N = async ({ clientX: x, clientY: S, target: E }) => {
1056
- const { left: D, right: T, top: O, bottom: I } = V.current.getBoundingClientRect() ?? {};
1057
- (!V.current.contains(E) || x < D || x > T || S < O || S > I) && await w();
1055
+ }, N = async ({ clientX: x, clientY: S, target: D }) => {
1056
+ const { left: E, right: T, top: $, bottom: O } = V.current.getBoundingClientRect() ?? {};
1057
+ (!V.current.contains(D) || x < E || x > T || S < $ || S > O) && await w();
1058
1058
  }, B = (x) => Promise.allSettled(
1059
1059
  x.getAnimations().map((S) => S.finished)
1060
1060
  );
1061
1061
  return k(() => {
1062
1062
  const x = V.current;
1063
- x && (H ? x.showModal() : typeof x.close == "function" && x.close());
1064
- }, [H]), /* @__PURE__ */ g(z, { children: [
1063
+ x && (f ? x.showModal() : typeof x.close == "function" && x.close());
1064
+ }, [f]), /* @__PURE__ */ g(z, { children: [
1065
1065
  d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
1066
1066
  /* @__PURE__ */ g(
1067
1067
  "dialog",
@@ -1071,24 +1071,24 @@ const F = {
1071
1071
  className: m(
1072
1072
  "dialog",
1073
1073
  {
1074
- hidden: !H,
1075
- "xs-max:h-full xs-max:max-h-full": r
1074
+ hidden: !f,
1075
+ "xs-max:h-full xs-max:max-h-full": i
1076
1076
  },
1077
1077
  a
1078
1078
  ),
1079
1079
  onKeyDown: v,
1080
- onClick: (x) => i ? null : N(x),
1080
+ onClick: (x) => r ? null : N(x),
1081
1081
  children: [
1082
1082
  /* @__PURE__ */ g(
1083
1083
  "header",
1084
1084
  {
1085
1085
  className: m(
1086
1086
  "dialog-header flex items-center p-4",
1087
- { "sticky top-0 bg-white": b },
1087
+ { "sticky top-0 bg-white": A },
1088
1088
  c
1089
1089
  ),
1090
1090
  children: [
1091
- /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children: f || "" }),
1091
+ /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children: H || "" }),
1092
1092
  !h && /* @__PURE__ */ o(
1093
1093
  "button",
1094
1094
  {
@@ -1098,7 +1098,7 @@ const F = {
1098
1098
  "data-dialog-close": "",
1099
1099
  onClick: w,
1100
1100
  children: /* @__PURE__ */ o(
1101
- y,
1101
+ b,
1102
1102
  {
1103
1103
  name: "close",
1104
1104
  size: u,
@@ -1130,7 +1130,7 @@ const F = {
1130
1130
  }
1131
1131
  )
1132
1132
  ] });
1133
- }, v1 = A(K), A1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
1133
+ }, k1 = y(e1), t1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
1134
1134
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
1135
1135
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
1136
1136
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
@@ -1139,25 +1139,25 @@ const F = {
1139
1139
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
1140
1140
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
1141
1141
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
1142
- ] }), Y = ({
1142
+ ] }), z1 = t1, a1 = ({
1143
1143
  cb: d,
1144
1144
  className: e = "",
1145
1145
  size: t = "md",
1146
1146
  timeout: a = 1e4,
1147
1147
  variation: n = "primary"
1148
1148
  }) => {
1149
- function l({ cb: i }) {
1149
+ function l({ cb: r }) {
1150
1150
  const s = document.querySelector(".loading-bar__inner");
1151
1151
  if (!s) return;
1152
- let r, c, h = !1;
1153
- function u(H) {
1154
- r === void 0 && (r = H);
1155
- const M = H - r;
1156
- if (c !== H) {
1157
- const b = M / a * 101;
1158
- s.style.width = `${b}%`, b >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(H));
1152
+ let i, c, h = !1;
1153
+ function u(f) {
1154
+ i === void 0 && (i = f);
1155
+ const M = f - i;
1156
+ if (c !== f) {
1157
+ const A = M / a * 101;
1158
+ s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
1159
1159
  }
1160
- M < a && (c = H, h || window.requestAnimationFrame(u));
1160
+ M < a && (c = f, h || window.requestAnimationFrame(u));
1161
1161
  }
1162
1162
  window.requestAnimationFrame(u);
1163
1163
  }
@@ -1180,27 +1180,27 @@ const F = {
1180
1180
  children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
1181
1181
  }
1182
1182
  );
1183
- }, y1 = A(Y), X = {
1183
+ }, Z1 = y(a1), n1 = {
1184
1184
  name: "spinnerDark",
1185
1185
  color: "text-teal-700",
1186
1186
  viewBox: "0 0 24 24"
1187
- }, _ = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1188
- y,
1187
+ }, l1 = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1188
+ b,
1189
1189
  {
1190
1190
  size: "xSmall",
1191
- ...X,
1191
+ ...n1,
1192
1192
  className: `animate-spin ${d}`
1193
1193
  }
1194
- ) }), b1 = A(_), w1 = ({
1194
+ ) }), N1 = y(l1), s1 = ({
1195
1195
  activator: d,
1196
1196
  activatorClass: e = "",
1197
1197
  attrs: t = {},
1198
1198
  options: a = {},
1199
1199
  children: n,
1200
1200
  className: l = "",
1201
- containerClass: i = "",
1201
+ containerClass: r = "",
1202
1202
  disabled: s = !1,
1203
- id: r = "",
1203
+ id: i = "",
1204
1204
  trigger: c = "click"
1205
1205
  }) => /* @__PURE__ */ g(z, { children: [
1206
1206
  /* @__PURE__ */ o(
@@ -1212,7 +1212,7 @@ const F = {
1212
1212
  {
1213
1213
  className: m(
1214
1214
  "popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
1215
- i
1215
+ r
1216
1216
  ),
1217
1217
  children: [
1218
1218
  n,
@@ -1242,20 +1242,20 @@ const F = {
1242
1242
  children: d
1243
1243
  }
1244
1244
  )
1245
- ] }), e1 = ({
1245
+ ] }), B1 = s1, r1 = ({
1246
1246
  ariaValuemax: d = 100,
1247
1247
  ariaValuemin: e = 0,
1248
1248
  bgColor: t = "bg-orange-500",
1249
1249
  className: a,
1250
1250
  completed: n = 0,
1251
1251
  maxCompleted: l = 100,
1252
- rounded: i = !0,
1252
+ rounded: r = !0,
1253
1253
  showLabel: s = !1
1254
1254
  }) => {
1255
1255
  const c = ((h, u) => {
1256
1256
  if (h) {
1257
- const H = Number(u) / h;
1258
- return H > 1 ? 100 : H * 100;
1257
+ const f = Number(u) / h;
1258
+ return f > 1 ? 100 : f * 100;
1259
1259
  }
1260
1260
  return n;
1261
1261
  })(l, n);
@@ -1264,7 +1264,7 @@ const F = {
1264
1264
  {
1265
1265
  className: m(
1266
1266
  "w-full bg-gray-200",
1267
- { "rounded-full": i },
1267
+ { "rounded-full": r },
1268
1268
  a
1269
1269
  ),
1270
1270
  role: "progressbar",
@@ -1285,16 +1285,16 @@ const F = {
1285
1285
  )
1286
1286
  }
1287
1287
  );
1288
- }, x1 = A(e1), t1 = ({
1288
+ }, D1 = y(r1), i1 = ({
1289
1289
  checked: d = !1,
1290
1290
  children: e,
1291
1291
  className: t = "",
1292
1292
  id: a = "",
1293
1293
  label: n = "",
1294
1294
  name: l = "",
1295
- props: i = {},
1295
+ props: r = {},
1296
1296
  variation: s = "primary",
1297
- value: r = ""
1297
+ value: i = ""
1298
1298
  }) => {
1299
1299
  const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
1300
1300
  return /* @__PURE__ */ g(
@@ -1316,35 +1316,35 @@ const F = {
1316
1316
  id: a,
1317
1317
  name: l,
1318
1318
  type: "radio",
1319
- value: r,
1320
- ...i
1319
+ value: i,
1320
+ ...r
1321
1321
  }
1322
1322
  ),
1323
1323
  e
1324
1324
  ]
1325
1325
  }
1326
1326
  );
1327
- }, S1 = A(t1), a1 = ({
1327
+ }, E1 = y(i1), o1 = ({
1328
1328
  children: d,
1329
1329
  className: e = "",
1330
1330
  error: t = !1,
1331
1331
  errorMessage: a = "",
1332
1332
  id: n = "",
1333
1333
  label: l = "",
1334
- name: i = "",
1334
+ name: r = "",
1335
1335
  options: s = [],
1336
- placeholder: r = "",
1336
+ placeholder: i = "",
1337
1337
  props: c = {},
1338
1338
  selectClass: h = "",
1339
1339
  styles: u = null,
1340
- variation: H = "primary",
1340
+ variation: f = "primary",
1341
1341
  value: M
1342
1342
  }) => {
1343
- const b = r ? { defaultValue: "" } : {};
1343
+ const A = i ? { defaultValue: "" } : {};
1344
1344
  return /* @__PURE__ */ g(
1345
1345
  "label",
1346
1346
  {
1347
- className: m("relative select", e, H),
1347
+ className: m("relative select", e, f),
1348
1348
  style: u ? { ...u } : null,
1349
1349
  children: [
1350
1350
  l,
@@ -1357,19 +1357,19 @@ const F = {
1357
1357
  h
1358
1358
  ),
1359
1359
  id: n,
1360
- name: i,
1360
+ name: r,
1361
1361
  value: M,
1362
- ...b,
1362
+ ...A,
1363
1363
  ...c,
1364
1364
  children: [
1365
- r && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: r }),
1366
- s.map((f, p) => /* @__PURE__ */ o(
1365
+ i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
1366
+ s.map((H, p) => /* @__PURE__ */ o(
1367
1367
  "option",
1368
1368
  {
1369
- value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
1370
- children: (f == null ? void 0 : f.name) || f
1369
+ value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
1370
+ children: (H == null ? void 0 : H.name) || H
1371
1371
  },
1372
- (f == null ? void 0 : f.name) || f
1372
+ (H == null ? void 0 : H.name) || H
1373
1373
  ))
1374
1374
  ]
1375
1375
  }
@@ -1378,7 +1378,7 @@ const F = {
1378
1378
  ]
1379
1379
  }
1380
1380
  );
1381
- }, k1 = A(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ g(
1381
+ }, T1 = y(o1), c1 = ({ className: d = "" }) => /* @__PURE__ */ g(
1382
1382
  "div",
1383
1383
  {
1384
1384
  className: m(
@@ -1386,11 +1386,11 @@ const F = {
1386
1386
  d
1387
1387
  ),
1388
1388
  children: [
1389
- /* @__PURE__ */ o(y, { size: "xLarge", name: "map", className: "mx-auto" }),
1389
+ /* @__PURE__ */ o(b, { size: "xLarge", name: "map", className: "mx-auto" }),
1390
1390
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
1391
1391
  ]
1392
1392
  }
1393
- ), z1 = A(n1), l1 = ({
1393
+ ), $1 = y(c1), d1 = ({
1394
1394
  placeholderClass: d = "",
1395
1395
  children: e,
1396
1396
  className: t = "",
@@ -1404,16 +1404,16 @@ const F = {
1404
1404
  id: `btn-left-${a}`,
1405
1405
  type: "button",
1406
1406
  className: "slider-button__prev ",
1407
- children: /* @__PURE__ */ o(y, { name: "chevronLeft" })
1407
+ children: /* @__PURE__ */ o(b, { name: "chevronLeft" })
1408
1408
  }
1409
1409
  ),
1410
- /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, i) => /* @__PURE__ */ o(
1410
+ /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
1411
1411
  "div",
1412
1412
  {
1413
1413
  className: `slider-card bg-gray-200 animate-pulse ${d}`,
1414
1414
  children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
1415
1415
  },
1416
- i
1416
+ r
1417
1417
  )) }),
1418
1418
  /* @__PURE__ */ o(
1419
1419
  "button",
@@ -1422,10 +1422,10 @@ const F = {
1422
1422
  id: `btn-right-${a}`,
1423
1423
  type: "button",
1424
1424
  className: "slider-button__next",
1425
- children: /* @__PURE__ */ o(y, { name: "chevronRight" })
1425
+ children: /* @__PURE__ */ o(b, { name: "chevronRight" })
1426
1426
  }
1427
1427
  )
1428
- ] }), Z1 = A(l1), N1 = ({
1428
+ ] }), O1 = y(d1), h1 = ({
1429
1429
  className: d = "",
1430
1430
  value: e
1431
1431
  }) => {
@@ -1442,16 +1442,16 @@ const F = {
1442
1442
  style: t
1443
1443
  }
1444
1444
  );
1445
- }, s1 = ({
1445
+ }, I1 = h1, u1 = ({
1446
1446
  className: d = "",
1447
1447
  clear: e = !1,
1448
1448
  error: t = !1,
1449
1449
  errorMessage: a = "",
1450
1450
  id: n = "",
1451
1451
  inputClass: l = "",
1452
- name: i = "",
1452
+ name: r = "",
1453
1453
  placeholder: s = "",
1454
- props: r = {},
1454
+ props: i = {},
1455
1455
  rows: c = 4,
1456
1456
  variation: h = "primary"
1457
1457
  }) => /* @__PURE__ */ g("div", { className: m("relative textarea", h, d), children: [
@@ -1460,7 +1460,7 @@ const F = {
1460
1460
  {
1461
1461
  placeholder: s,
1462
1462
  id: n,
1463
- name: i,
1463
+ name: r,
1464
1464
  rows: c,
1465
1465
  className: m(
1466
1466
  "form-textarea min-h-[40px] pl-4",
@@ -1468,7 +1468,7 @@ const F = {
1468
1468
  t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
1469
1469
  l
1470
1470
  ),
1471
- ...r
1471
+ ...i
1472
1472
  }
1473
1473
  ),
1474
1474
  e && /* @__PURE__ */ o(
@@ -1477,7 +1477,7 @@ const F = {
1477
1477
  id: `${n}-clear`,
1478
1478
  className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
1479
1479
  children: /* @__PURE__ */ o(
1480
- y,
1480
+ b,
1481
1481
  {
1482
1482
  size: "xSmall",
1483
1483
  name: "xCircle",
@@ -1487,20 +1487,20 @@ const F = {
1487
1487
  }
1488
1488
  ),
1489
1489
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1490
- ] }), B1 = A(s1), r1 = ({
1490
+ ] }), F1 = y(u1), p1 = ({
1491
1491
  className: d = "",
1492
1492
  clear: e = !1,
1493
1493
  error: t = !1,
1494
1494
  errorMessage: a = "",
1495
1495
  iconLeft: n = "",
1496
1496
  id: l = "",
1497
- inputClass: i = "",
1497
+ inputClass: r = "",
1498
1498
  name: s = "",
1499
- placeholder: r = "",
1499
+ placeholder: i = "",
1500
1500
  props: c = {},
1501
1501
  styles: h = null,
1502
1502
  type: u = "text",
1503
- value: H,
1503
+ value: f,
1504
1504
  variation: M = "primary"
1505
1505
  }) => /* @__PURE__ */ g(
1506
1506
  "div",
@@ -1509,7 +1509,7 @@ const F = {
1509
1509
  style: h ? { ...h } : null,
1510
1510
  children: [
1511
1511
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
1512
- y,
1512
+ b,
1513
1513
  {
1514
1514
  size: "xSmall",
1515
1515
  name: n,
@@ -1520,11 +1520,11 @@ const F = {
1520
1520
  /* @__PURE__ */ o(
1521
1521
  "input",
1522
1522
  {
1523
- placeholder: r,
1523
+ placeholder: i,
1524
1524
  id: l,
1525
1525
  name: s,
1526
1526
  type: u,
1527
- value: H,
1527
+ value: f,
1528
1528
  autoComplete: "off",
1529
1529
  className: m(
1530
1530
  "form-input",
@@ -1534,7 +1534,7 @@ const F = {
1534
1534
  "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
1535
1535
  },
1536
1536
  c.inputClass ?? "",
1537
- i
1537
+ r
1538
1538
  ),
1539
1539
  ...c
1540
1540
  }
@@ -1545,7 +1545,7 @@ const F = {
1545
1545
  id: `${l}-clear`,
1546
1546
  className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
1547
1547
  children: /* @__PURE__ */ o(
1548
- y,
1548
+ b,
1549
1549
  {
1550
1550
  size: "xSmall",
1551
1551
  name: "xCircle",
@@ -1557,7 +1557,7 @@ const F = {
1557
1557
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1558
1558
  ]
1559
1559
  }
1560
- ), E1 = A(r1), i1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1560
+ ), q1 = y(p1), m1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1561
1561
  t,
1562
1562
  {
1563
1563
  className: m(
@@ -1566,13 +1566,13 @@ const F = {
1566
1566
  ),
1567
1567
  children: a || d
1568
1568
  }
1569
- ), D1 = A(i1);
1569
+ ), j1 = y(m1);
1570
1570
  class C {
1571
1571
  static calcCrow(e, t, a, n) {
1572
- const i = C.toRad(a - e), s = C.toRad(n - t);
1572
+ const r = C.toRad(a - e), s = C.toRad(n - t);
1573
1573
  e = C.toRad(e), a = C.toRad(a);
1574
- const r = Math.sin(i / 2) * Math.sin(i / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
1575
- return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
1574
+ const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
1575
+ return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
1576
1576
  }
1577
1577
  static cleanupAddress(e) {
1578
1578
  return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
@@ -1601,11 +1601,11 @@ class C {
1601
1601
  static async createData(e, t = null, a = !0) {
1602
1602
  if (options.isBot || !t)
1603
1603
  return null;
1604
- const { tolken: n = null, ip: l = null } = await C.getHeaders(), i = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + i, r = typeof t == "string" ? t : JSON.stringify(t);
1604
+ const { tolken: n = null, ip: l = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
1605
1605
  try {
1606
1606
  const c = await fetch(s, {
1607
1607
  method: "POST",
1608
- body: r === "null" ? null : r,
1608
+ body: i === "null" ? null : i,
1609
1609
  headers: {
1610
1610
  website: C.getWebsiteHeaderName()
1611
1611
  }
@@ -1677,15 +1677,15 @@ class C {
1677
1677
  return null;
1678
1678
  const { tolken: n = null, ip: l = null } = await C.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
1679
1679
  try {
1680
- const r = await fetch(s, { method: "GET" });
1680
+ const i = await fetch(s, { method: "GET" });
1681
1681
  if (t === !0) {
1682
- const h = await r.text();
1682
+ const h = await i.text();
1683
1683
  return h ? h.replace("__next", "") : null;
1684
1684
  }
1685
- const c = r.headers.get("content-type");
1686
- return c && c.indexOf("application/json") !== -1 ? r.json() : null;
1687
- } catch (r) {
1688
- console.error("fetchData", r, e);
1685
+ const c = i.headers.get("content-type");
1686
+ return c && c.indexOf("application/json") !== -1 ? i.json() : null;
1687
+ } catch (i) {
1688
+ console.error("fetchData", i, e);
1689
1689
  }
1690
1690
  return null;
1691
1691
  }
@@ -1713,12 +1713,12 @@ class C {
1713
1713
  swLng: 0
1714
1714
  };
1715
1715
  const n = e.getBounds();
1716
- let l = n.getSouth(), i = n.getEast(), s = n.getNorth(), r = n.getWest();
1717
- return a && (l = l - a, i = i + a, s = s + a, r = r - a), t && (l = l.toFixed(t), i = i.toFixed(t), s = s.toFixed(t), r = r.toFixed(t)), {
1716
+ let l = n.getSouth(), r = n.getEast(), s = n.getNorth(), i = n.getWest();
1717
+ return a && (l = l - a, r = r + a, s = s + a, i = i - a), t && (l = l.toFixed(t), r = r.toFixed(t), s = s.toFixed(t), i = i.toFixed(t)), {
1718
1718
  swLat: l,
1719
- neLng: i,
1719
+ neLng: r,
1720
1720
  neLat: s,
1721
- swLng: r
1721
+ swLng: i
1722
1722
  };
1723
1723
  }
1724
1724
  static getFirstN(e, t = 5) {
@@ -1750,20 +1750,20 @@ class C {
1750
1750
  userAgent: t = null,
1751
1751
  userAgentData: a = null,
1752
1752
  platform: n = null
1753
- } = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, i = {
1753
+ } = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
1754
1754
  tolken: null,
1755
1755
  ip: null,
1756
1756
  userAgent: t,
1757
1757
  platform: l
1758
1758
  };
1759
1759
  if (options && options.isBot || typeof window.localStorage > "u")
1760
- return i;
1760
+ return r;
1761
1761
  const s = localStorage.getItem("headerTolken");
1762
1762
  if (s) {
1763
- const r = JSON.parse(s), c = (/* @__PURE__ */ new Date()).getTime();
1764
- return r.expire - c < 0 && localStorage.removeItem("headerTolken"), {
1765
- tolken: r.tolken,
1766
- ip: r.ip,
1763
+ const i = JSON.parse(s), c = (/* @__PURE__ */ new Date()).getTime();
1764
+ return i.expire - c < 0 && localStorage.removeItem("headerTolken"), {
1765
+ tolken: i.tolken,
1766
+ ip: i.ip,
1767
1767
  userAgent: t,
1768
1768
  platform: l
1769
1769
  };
@@ -1778,10 +1778,10 @@ class C {
1778
1778
  expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
1779
1779
  })
1780
1780
  ), { tolken: h, ip: u, userAgent: t, platform: l };
1781
- } catch (r) {
1782
- console.error("getHeaders", r);
1781
+ } catch (i) {
1782
+ console.error("getHeaders", i);
1783
1783
  }
1784
- return i;
1784
+ return r;
1785
1785
  }
1786
1786
  static getLayerTitle(e) {
1787
1787
  return {
@@ -1790,14 +1790,14 @@ class C {
1790
1790
  }[e];
1791
1791
  }
1792
1792
  static async getLocationData(e) {
1793
- const { swLat: t, neLng: a, neLat: n, swLng: l } = C.getBounds(e, 3, 0.05), i = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
1794
- return await C.fetchData("/api/client?query=" + i);
1793
+ const { swLat: t, neLng: a, neLat: n, swLng: l } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
1794
+ return await C.fetchData("/api/client?query=" + r);
1795
1795
  }
1796
1796
  static getReportUrl(e, t = null) {
1797
- var r, c, h;
1798
- const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, i = (e == null ? void 0 : e.zip) ?? null;
1797
+ var i, c, h;
1798
+ const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
1799
1799
  t = t || ((e == null ? void 0 : e.id) ?? null);
1800
- const s = [i, "-piq", t].filter((u) => u).join("");
1800
+ const s = [r, "-piq", t].filter((u) => u).join("");
1801
1801
  return "/" + [a, n, l].filter((u) => u).map((u) => C.toSlug(u)).join("/") + "/" + s;
1802
1802
  }
1803
1803
  static async getSearchValue(e = "recsSearchValue") {
@@ -1961,18 +1961,18 @@ class C {
1961
1961
  static gridTest(e, t, a = 1500) {
1962
1962
  const n = this;
1963
1963
  L.GridLayer.GridDebug = L.GridLayer.extend({
1964
- createTile: function(l, i) {
1964
+ createTile: function(l, r) {
1965
1965
  const s = document.createElement("div");
1966
1966
  return setTimeout(() => {
1967
- i(null, s);
1968
- const { se: r, nw: c } = n.getGridBounds({
1967
+ r(null, s);
1968
+ const { se: i, nw: c } = n.getGridBounds({
1969
1969
  map: e,
1970
1970
  tileSize: this.getTileSize(),
1971
1971
  coords: l
1972
1972
  });
1973
1973
  t({
1974
- swLat: r.lat,
1975
- neLng: r.lng,
1974
+ swLat: i.lat,
1975
+ neLng: i.lng,
1976
1976
  neLat: c.lat,
1977
1977
  swLng: c.lng,
1978
1978
  coords: l,
@@ -2001,7 +2001,7 @@ class C {
2001
2001
  onClose: n = null,
2002
2002
  disableOutsideClick: l = !1
2003
2003
  }) {
2004
- const i = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), r = document.querySelectorAll("[data-dialog-close]"), c = ["closing", "closed", "opening", "opened", "removed"].reduce(
2004
+ const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = ["closing", "closed", "opening", "opened", "removed"].reduce(
2005
2005
  (p, V) => ({
2006
2006
  ...p,
2007
2007
  [V]: new Event(V)
@@ -2012,13 +2012,13 @@ class C {
2012
2012
  if (w.attributeName === "open") {
2013
2013
  const v = w.target;
2014
2014
  if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2015
- v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await f(v), v == null || v.dispatchEvent(c.opened);
2015
+ v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await H(v), v == null || v.dispatchEvent(c.opened);
2016
2016
  }
2017
2017
  });
2018
2018
  }), u = new MutationObserver((p, V) => {
2019
2019
  p.forEach((w) => {
2020
2020
  w.removedNodes.forEach((v) => {
2021
- v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), h == null || h.disconnect());
2021
+ v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), h == null || h.disconnect());
2022
2022
  });
2023
2023
  });
2024
2024
  });
@@ -2029,27 +2029,27 @@ class C {
2029
2029
  subtree: !1,
2030
2030
  childList: !0
2031
2031
  }));
2032
- const H = () => {
2032
+ const f = () => {
2033
2033
  s == null || s.showModal();
2034
2034
  }, M = async ({ target: p }) => {
2035
- p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await f(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
2036
- }, b = async ({ target: p }) => {
2035
+ p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await H(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
2036
+ }, A = async ({ target: p }) => {
2037
2037
  (p == null ? void 0 : p.nodeName) === "DIALOG" && (s == null || s.close("outside"));
2038
- }, f = (p) => Promise.allSettled(
2038
+ }, H = (p) => Promise.allSettled(
2039
2039
  p == null ? void 0 : p.getAnimations().map((V) => V == null ? void 0 : V.finished)
2040
2040
  );
2041
- return !l && (s == null || s.addEventListener("click", b)), s == null || s.addEventListener("close", M), i == null || i.forEach((p) => {
2041
+ return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M), r == null || r.forEach((p) => {
2042
2042
  p.addEventListener("click", (V) => {
2043
- H(), a && a(V, s);
2043
+ f(), a && a(V, s);
2044
2044
  });
2045
- }), r == null || r.forEach((p) => {
2045
+ }), i == null || i.forEach((p) => {
2046
2046
  p.addEventListener("click", async (V) => {
2047
2047
  s == null || s.close("close"), n && n(V, s);
2048
2048
  });
2049
2049
  }), {
2050
- activators: i,
2050
+ activators: r,
2051
2051
  ref: s,
2052
- handleOpen: H,
2052
+ handleOpen: f,
2053
2053
  handleClose: M
2054
2054
  };
2055
2055
  }
@@ -2060,8 +2060,8 @@ class C {
2060
2060
  if (!e)
2061
2061
  return;
2062
2062
  const n = (a == null ? void 0 : a.useBounding) ?? !1;
2063
- new IntersectionObserver(async (i, s) => {
2064
- n ? (i[0].isIntersecting || i[0].boundingClientRect.y < 0) && t({ obs: s, entry: i[0], entries: i }) : i[0].isIntersecting && t({ obs: s, entry: i[0], entries: i });
2063
+ new IntersectionObserver(async (r, s) => {
2064
+ n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: s, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: s, entry: r[0], entries: r });
2065
2065
  }, a).observe(e);
2066
2066
  }
2067
2067
  static injectLink({ href: e, id: t }) {
@@ -2069,11 +2069,11 @@ class C {
2069
2069
  a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
2070
2070
  }
2071
2071
  static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
2072
- return new Promise(function(l, i) {
2072
+ return new Promise(function(l, r) {
2073
2073
  let s = document.getElementById(t);
2074
2074
  if (t && s && s.dataset.loaded === "true")
2075
2075
  return l({ alreadyLoaded: !0, id: t });
2076
- s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () => i(!1));
2076
+ s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () => r(!1));
2077
2077
  });
2078
2078
  }
2079
2079
  static isMobile({ selector: e = null, width: t = 640 } = {}) {
@@ -2106,14 +2106,14 @@ class C {
2106
2106
  return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
2107
2107
  }
2108
2108
  static async logRequest(e = null, t = null, a = null, n = null, l = null) {
2109
- const i = {
2109
+ const r = {
2110
2110
  name: e,
2111
2111
  uuid: t,
2112
2112
  ip: a,
2113
2113
  url: n,
2114
2114
  data: l
2115
2115
  };
2116
- return await C.createData("/api/client?query=log/save&method=POST", i), null;
2116
+ return await C.createData("/api/client?query=log/save&method=POST", r), null;
2117
2117
  }
2118
2118
  static loadAds() {
2119
2119
  window.dataLayer = window.dataLayer || [];
@@ -2198,17 +2198,17 @@ class C {
2198
2198
  first: a = null,
2199
2199
  middle: n = null,
2200
2200
  last: l = null,
2201
- min: i = null,
2201
+ min: r = null,
2202
2202
  max: s = null,
2203
- city: r = null,
2203
+ city: i = null,
2204
2204
  state: c = null,
2205
2205
  vin: h = null,
2206
2206
  license: u = null,
2207
- token: H = null,
2207
+ token: f = null,
2208
2208
  phone: M = null
2209
- } = e || {}, b = t && t !== "", f = i && i !== "" && i !== "18", p = s && s !== "" && i !== "99";
2209
+ } = e || {}, A = t && t !== "", H = r && r !== "" && r !== "18", p = s && s !== "" && r !== "99";
2210
2210
  let V = [];
2211
- return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)), f && p ? parseInt(i) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + i)) : (V.push("min=" + i), V.push("max=" + s)) : (f && V.push("min=" + i), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), r && r !== "" && V.push("city=" + r), u && u !== "" && V.push("license=" + u), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), H && H !== "" && V.push("token=" + H), V.join("&");
2211
+ return t && t !== "" && V.push("name=" + t), A || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)), H && p ? parseInt(r) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + s)) : (H && V.push("min=" + r), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), i && i !== "" && V.push("city=" + i), u && u !== "" && V.push("license=" + u), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
2212
2212
  }
2213
2213
  static padTo2Digits(e) {
2214
2214
  return e.toString().padStart(2, "0");
@@ -2222,20 +2222,20 @@ class C {
2222
2222
  addressesOnly: a = !1,
2223
2223
  useCitySearch: n = !1,
2224
2224
  useCityStateSearch: l = !1,
2225
- useSearch: i = !1,
2225
+ useSearch: r = !1,
2226
2226
  useLocation: s = !0,
2227
- state: r = ""
2228
- } = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), H = [
2227
+ state: i = ""
2228
+ } = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
2229
2229
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2230
2230
  "addressesOnly=" + a,
2231
- "useSearch=" + i,
2231
+ "useSearch=" + r,
2232
2232
  "useCitySearch=" + n,
2233
2233
  "useCityStateSearch=" + l,
2234
2234
  "useLocation=" + s
2235
2235
  ];
2236
- r && r !== "" && !l && H.push("state=" + r), c && c !== "" && H.push("tolken=" + c), h && h !== "" && H.push("ip=" + h);
2237
- const M = H.join("&"), f = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2238
- return await C.makeSearchFetchCall(f);
2236
+ i && i !== "" && !l && f.push("state=" + i), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
2237
+ const M = f.join("&"), H = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2238
+ return await C.makeSearchFetchCall(H);
2239
2239
  }
2240
2240
  static removeElements(e) {
2241
2241
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -2280,9 +2280,9 @@ class C {
2280
2280
  l && (n = l.short);
2281
2281
  }
2282
2282
  if (a && !n) {
2283
- const l = a.split(" "), i = l[l.length - 1];
2284
- if (i.length) {
2285
- const s = this.searchInStates(i);
2283
+ const l = a.split(" "), r = l[l.length - 1];
2284
+ if (r.length) {
2285
+ const s = this.searchInStates(r);
2286
2286
  s && (n = s.short, a = l.slice(0, -1).join(" "));
2287
2287
  }
2288
2288
  }
@@ -2328,25 +2328,25 @@ class C {
2328
2328
  return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
2329
2329
  }
2330
2330
  }
2331
- function o1(d, e = []) {
2331
+ function V1(d, e = []) {
2332
2332
  return new Proxy(d, {
2333
2333
  get: function(t, a) {
2334
2334
  return t[a];
2335
2335
  },
2336
2336
  set(t, a, n) {
2337
2337
  const l = { ...t };
2338
- return t[a] = n, e.length > 0 && e.forEach((i) => i(t, l, a)), t;
2338
+ return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
2339
2339
  }
2340
2340
  });
2341
2341
  }
2342
- class T1 {
2342
+ class P1 {
2343
2343
  init(e) {
2344
2344
  this.handleSliders(e);
2345
2345
  }
2346
2346
  handleSliders({ items: e, id: t = 1, cb: a }) {
2347
2347
  if (!document.getElementById(`slider-container-${t}`))
2348
2348
  return;
2349
- const n = o1(
2349
+ const n = V1(
2350
2350
  {
2351
2351
  activeIndex: 0,
2352
2352
  computedSlides: [],
@@ -2381,16 +2381,16 @@ class T1 {
2381
2381
  )), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
2382
2382
  }
2383
2383
  handleIntersect(e, t, a) {
2384
- const n = e.filter((r) => r.isIntersecting), l = n.length === a.slides.length, i = n.every(
2385
- (r) => r.isIntersecting === !0
2384
+ const n = e.filter((i) => i.isIntersecting), l = n.length === a.slides.length, r = n.every(
2385
+ (i) => i.isIntersecting === !0
2386
2386
  );
2387
- l && i ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
2388
- const c = [...a.slides].indexOf(r.target);
2389
- r.target === a.slides[0] && (a.showPrevBtn = r.isIntersecting), r.target === a.slides[a.slides.length - 1] && (a.showNextBtn = r.isIntersecting), r.target === a.slides[2] && (a.scrollToStart = r.isIntersecting), r.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = r.isIntersecting), r.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, s(r));
2387
+ l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
2388
+ const c = [...a.slides].indexOf(i.target);
2389
+ i.target === a.slides[0] && (a.showPrevBtn = i.isIntersecting), i.target === a.slides[a.slides.length - 1] && (a.showNextBtn = i.isIntersecting), i.target === a.slides[2] && (a.scrollToStart = i.isIntersecting), i.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = i.isIntersecting), i.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, s(i));
2390
2390
  }));
2391
- function s(r) {
2391
+ function s(i) {
2392
2392
  var c;
2393
- r.target !== a.slides[a.slides.length - 1] && r.target !== a.slides[0] && r.target !== a.slides[2] && r.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(r.target));
2393
+ i.target !== a.slides[a.slides.length - 1] && i.target !== a.slides[0] && i.target !== a.slides[2] && i.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(i.target));
2394
2394
  }
2395
2395
  }
2396
2396
  btnListeners(e) {
@@ -2409,7 +2409,7 @@ class T1 {
2409
2409
  e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
2410
2410
  }
2411
2411
  sliderElements({ state: e, items: t, id: a, cb: n }) {
2412
- const l = '<span class="slide-first"></span>', i = '<span class="slide-last"></span>';
2412
+ const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
2413
2413
  if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
2414
2414
  return console.error(`slider-container-${a} Not Found`);
2415
2415
  e.prevBtn = e.container.parentElement.querySelector(
@@ -2417,8 +2417,8 @@ class T1 {
2417
2417
  ), e.nextBtn = e.container.parentElement.querySelector(
2418
2418
  `#btn-right-${a}`
2419
2419
  );
2420
- const s = t.map((c) => n(c)).join(""), r = document.createElement("div");
2421
- r.innerHTML = `${l}${s}${i}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
2420
+ const s = t.map((c) => n(c)).join(""), i = document.createElement("div");
2421
+ i.innerHTML = `${l}${s}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
2422
2422
  }
2423
2423
  showHideBtns(e, t, a) {
2424
2424
  if (a === "showPrevBtn" || a === "showNextBtn") {
@@ -2429,31 +2429,31 @@ class T1 {
2429
2429
  }
2430
2430
  }
2431
2431
  export {
2432
- u1 as Accordion,
2433
- p1 as Alert,
2434
- m1 as Autocomplete,
2435
- V1 as Badge,
2436
- H1 as Button,
2437
- L1 as ButtonGroup,
2438
- C1 as Card,
2439
- T1 as CardSlider,
2440
- f1 as Checkbox,
2432
+ f1 as Accordion,
2433
+ M1 as Alert,
2434
+ g1 as Autocomplete,
2435
+ v1 as Badge,
2436
+ A1 as Button,
2437
+ y1 as ButtonGroup,
2438
+ b1 as Card,
2439
+ P1 as CardSlider,
2440
+ w1 as Checkbox,
2441
2441
  C as Common,
2442
- M1 as Container,
2443
- g1 as Dialog,
2444
- v1 as DialogOld,
2445
- A1 as Dots,
2446
- D1 as FunnelHeader,
2447
- y as Icon,
2448
- y1 as LoadingBar,
2449
- w1 as Popover,
2450
- x1 as ProgressBar,
2451
- S1 as Radio,
2452
- k1 as Select,
2453
- z1 as Skeleton,
2454
- Z1 as Slider,
2455
- b1 as Spinner,
2456
- N1 as Stars,
2457
- B1 as TextArea,
2458
- E1 as Textbox
2442
+ x1 as Container,
2443
+ S1 as Dialog,
2444
+ k1 as DialogOld,
2445
+ z1 as Dots,
2446
+ j1 as FunnelHeader,
2447
+ b as Icon,
2448
+ Z1 as LoadingBar,
2449
+ B1 as Popover,
2450
+ D1 as ProgressBar,
2451
+ E1 as Radio,
2452
+ T1 as Select,
2453
+ $1 as Skeleton,
2454
+ O1 as Slider,
2455
+ N1 as Spinner,
2456
+ I1 as Stars,
2457
+ F1 as TextArea,
2458
+ q1 as Textbox
2459
2459
  };