@vehiclehistory/property-lib 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as g, Fragment as k } from "react/jsx-runtime";
2
- import { memo as x, useState as N, useEffect as z, useRef as q } from "react";
1
+ import { jsx as o, jsxs as g, Fragment as S } from "react/jsx-runtime";
2
+ import { memo as x, useState as Z, useEffect as N, useRef as q } from "react";
3
3
  import u from "classnames";
4
4
  const j = {
5
5
  xxSmall: "w-4 h-4",
@@ -480,16 +480,16 @@ const j = {
480
480
  size: a = "medium",
481
481
  viewBox: n = "0 0 20 20"
482
482
  }) => {
483
- const s = R(t), [r, i] = N(d), [l, c] = N(s);
484
- return z(() => {
483
+ const s = R(t), [i, r] = Z(d), [l, c] = Z(s);
484
+ return N(() => {
485
485
  c(s);
486
- }, [s]), z(() => {
487
- i(d);
486
+ }, [s]), N(() => {
487
+ r(d);
488
488
  }, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
489
489
  "svg",
490
490
  {
491
491
  xmlns: "http://www.w3.org/2000/svg",
492
- className: `${j[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
492
+ className: `${j[a]} fill-current flex-shrink-0 ${i}${e ? ` ${e}` : ""}`,
493
493
  style: { maxWidth: "4em" },
494
494
  role: "presentation",
495
495
  viewBox: n,
@@ -505,10 +505,10 @@ const j = {
505
505
  panelClass: a,
506
506
  title: n,
507
507
  unmount: s = !0,
508
- isOpen: r = !1
508
+ isOpen: i = !1
509
509
  }) => {
510
- const [i, l] = N(r);
511
- return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ g(k, { children: [
510
+ const [r, l] = Z(i);
511
+ return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ g(S, { children: [
512
512
  /* @__PURE__ */ g(
513
513
  "button",
514
514
  {
@@ -517,12 +517,12 @@ const j = {
517
517
  className: u(
518
518
  "acc-a 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",
519
519
  {
520
- "acc-o": i
520
+ "acc-o": r
521
521
  }
522
522
  ),
523
523
  title: n,
524
524
  onClick: () => {
525
- l(!i), t && t(!i);
525
+ l(!r), t && t(!r);
526
526
  },
527
527
  children: [
528
528
  /* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
@@ -537,7 +537,7 @@ const j = {
537
537
  ]
538
538
  }
539
539
  ),
540
- s && i && /* @__PURE__ */ o(
540
+ s && r && /* @__PURE__ */ o(
541
541
  "div",
542
542
  {
543
543
  className: u(
@@ -553,7 +553,7 @@ const j = {
553
553
  className: u(
554
554
  "acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
555
555
  a,
556
- { hidden: !i }
556
+ { hidden: !r }
557
557
  ),
558
558
  children: d
559
559
  }
@@ -566,9 +566,9 @@ const j = {
566
566
  title: a = "",
567
567
  titleClass: n = "",
568
568
  props: s = {},
569
- type: r = "error"
569
+ type: i = "error"
570
570
  }) => {
571
- const i = {
571
+ const r = {
572
572
  error: {
573
573
  icon: "error",
574
574
  iconColor: "text-red-500",
@@ -589,11 +589,11 @@ const j = {
589
589
  iconColor: "text-yellow-500",
590
590
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
591
591
  }
592
- }, { icon: l, iconColor: c, styles: h } = i[r];
592
+ }, { icon: l, iconColor: c, styles: h } = r[i];
593
593
  return /* @__PURE__ */ o(
594
594
  "div",
595
595
  {
596
- id: r,
596
+ id: i,
597
597
  className: u(
598
598
  "rounded w-full py-2 px-4 mb-4 border",
599
599
  h,
@@ -619,39 +619,40 @@ const j = {
619
619
  );
620
620
  }, k1 = x(U), G = ({
621
621
  autoFocus: d = !1,
622
- required: e = !1,
623
- className: t = "",
622
+ className: e = "",
623
+ dataSearch: t = "container",
624
624
  defaultValue: a = "",
625
- id: n = "",
626
- type: s,
627
- floatingLabel: r = "",
625
+ floatingLabel: n = "",
626
+ id: s = "",
628
627
  inputClass: i = "",
629
- leftIcon: l = "homeSearch",
630
- mobileBackdrop: c = !1,
631
- showSearchIcon: h = !0,
632
- options: p = [],
633
- name: f = "",
634
- placeholder: M = "",
635
- props: b = {},
628
+ leftIcon: r = "homeSearch",
629
+ mobileBackdrop: l = !1,
630
+ name: c = "",
631
+ options: h = [],
632
+ placeholder: p = "",
633
+ props: f = {},
634
+ required: M = !1,
635
+ showSearchIcon: b = !0,
636
636
  size: H = "medium",
637
637
  styles: m = null,
638
- title: V = ""
638
+ title: V = "",
639
+ type: w
639
640
  }) => /* @__PURE__ */ g(
640
641
  "div",
641
642
  {
642
- id: n,
643
- "data-search": "container",
644
- "data-search-type": s,
645
- className: u("Autocomplete", t),
643
+ id: s,
644
+ "data-search": t,
645
+ "data-search-type": w,
646
+ className: u("Autocomplete", e),
646
647
  style: m ? { ...m } : null,
647
648
  children: [
648
- h && /* @__PURE__ */ g(
649
+ b && /* @__PURE__ */ g(
649
650
  "span",
650
651
  {
651
652
  className: u(
652
653
  "search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
653
654
  {
654
- "pointer-events-none": c
655
+ "pointer-events-none": l
655
656
  }
656
657
  ),
657
658
  children: [
@@ -659,7 +660,7 @@ const j = {
659
660
  y,
660
661
  {
661
662
  className: "home-search select-none text-gray-500",
662
- name: l,
663
+ name: r,
663
664
  size: H === "xLarge" ? "small" : "xSmall",
664
665
  viewBox: "0 0 24 24"
665
666
  }
@@ -684,37 +685,37 @@ const j = {
684
685
  className: u(
685
686
  "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",
686
687
  {
687
- "pl-8": h === !0,
688
+ "pl-8": b === !0,
688
689
  "px-3 h-10": H === "medium",
689
690
  "px-4 h-12": H === "large",
690
691
  "px-5 h-[60px] sm:!text-base": H === "xLarge",
691
- peer: r
692
+ peer: n
692
693
  },
693
694
  i
694
695
  ),
695
- required: e,
696
+ required: M,
696
697
  autoComplete: "off",
697
698
  value: a,
698
- placeholder: !M && r ? " " : M,
699
+ placeholder: !p && n ? " " : p,
699
700
  type: "search",
700
- name: f || "search-input",
701
+ name: c || "search-input",
701
702
  "data-id": "search-input",
702
- ...b
703
+ ...f
703
704
  }
704
705
  ),
705
- r && /* @__PURE__ */ o(
706
+ n && /* @__PURE__ */ o(
706
707
  "label",
707
708
  {
708
709
  className: u(
709
710
  "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",
710
711
  {
711
- "!left-7": h === !0,
712
+ "!left-7": b === !0,
712
713
  "left-2": H === "medium",
713
714
  "left-3": H === "large",
714
715
  "left-4": H === "xLarge"
715
716
  }
716
717
  ),
717
- children: r
718
+ children: n
718
719
  }
719
720
  ),
720
721
  /* @__PURE__ */ o(
@@ -764,17 +765,17 @@ const j = {
764
765
  "data-title": V,
765
766
  "aria-labelledby": "Label",
766
767
  "aria-activedescendant": "search-item-0",
767
- children: p.length > 0 ? p.map((A, v) => /* @__PURE__ */ o(
768
+ children: h.length > 0 ? h.map((v, k) => /* @__PURE__ */ o(
768
769
  "li",
769
770
  {
770
- id: `search-item-${v}`,
771
+ id: `search-item-${k}`,
771
772
  tabIndex: -1,
772
773
  className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
773
- "aria-selected": v === 0,
774
+ "aria-selected": k === 0,
774
775
  role: "option",
775
- children: (A == null ? void 0 : A.name) || A
776
+ children: (v == null ? void 0 : v.name) || v
776
777
  },
777
- `search-item-${v}`
778
+ `search-item-${k}`
778
779
  )) : ""
779
780
  }
780
781
  )
@@ -809,8 +810,8 @@ const j = {
809
810
  children: a,
810
811
  className: n = "",
811
812
  disabled: s = !1,
812
- href: r,
813
- props: i = {},
813
+ href: i,
814
+ props: r = {},
814
815
  rightIcon: l,
815
816
  rightIconProps: c = {},
816
817
  rounded: h = !1,
@@ -819,7 +820,7 @@ const j = {
819
820
  uppercase: M = !1,
820
821
  variation: b = "primary"
821
822
  }) => {
822
- const H = r ? "a" : "button";
823
+ const H = i ? "a" : "button";
823
824
  return /* @__PURE__ */ g(
824
825
  H,
825
826
  {
@@ -831,15 +832,15 @@ const j = {
831
832
  [`button--${p}`]: p,
832
833
  "button--rounded": h,
833
834
  "button--disabled": s,
834
- "button--custom-link": r,
835
+ "button--custom-link": i,
835
836
  "button--uppercase": M,
836
837
  "button--borderless": d || b === "link"
837
838
  },
838
839
  n
839
840
  ),
840
841
  disabled: s,
841
- href: r,
842
- ...i,
842
+ href: i,
843
+ ...r,
843
844
  children: [
844
845
  e && /* @__PURE__ */ o(
845
846
  y,
@@ -870,8 +871,8 @@ const j = {
870
871
  className: a = "",
871
872
  divider: n = !0,
872
873
  inset: s = !0,
873
- id: r = null,
874
- role: i = null
874
+ id: i = null,
875
+ role: r = null
875
876
  }) => /* @__PURE__ */ o(
876
877
  "div",
877
878
  {
@@ -885,8 +886,8 @@ const j = {
885
886
  },
886
887
  a
887
888
  ),
888
- id: r,
889
- role: i,
889
+ id: i,
890
+ role: r,
890
891
  children: t
891
892
  }
892
893
  ), Z1 = X, _ = ({
@@ -896,13 +897,13 @@ const j = {
896
897
  error: a = !1,
897
898
  inputClass: n,
898
899
  id: s = "",
899
- label: r = "",
900
- name: i = "",
900
+ label: i = "",
901
+ name: r = "",
901
902
  props: l = {},
902
903
  variation: c = "primary",
903
904
  value: h = ""
904
905
  }) => {
905
- const p = r ? "div" : "label", f = p === "label" ? { htmlFor: s } : {};
906
+ const p = i ? "div" : "label", f = p === "label" ? { htmlFor: s } : {};
906
907
  return /* @__PURE__ */ g(
907
908
  p,
908
909
  {
@@ -921,7 +922,7 @@ const j = {
921
922
  n
922
923
  ),
923
924
  id: s,
924
- name: i,
925
+ name: r,
925
926
  type: "checkbox",
926
927
  value: h,
927
928
  ...l
@@ -964,8 +965,8 @@ const j = {
964
965
  className: a = "",
965
966
  contentClass: n = "",
966
967
  dark: s = !1,
967
- footer: r,
968
- fullMobile: i = !0,
968
+ footer: i,
969
+ fullMobile: r = !0,
969
970
  headerClass: l = "",
970
971
  hideClose: c = !1,
971
972
  iconSize: h = "medium",
@@ -973,7 +974,7 @@ const j = {
973
974
  stickyHeader: f = !1,
974
975
  title: M = "",
975
976
  titleClass: b = ""
976
- }) => /* @__PURE__ */ g(k, { children: [
977
+ }) => /* @__PURE__ */ g(S, { children: [
977
978
  d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
978
979
  /* @__PURE__ */ o(
979
980
  "dialog",
@@ -983,7 +984,7 @@ const j = {
983
984
  className: u(
984
985
  "dialog",
985
986
  {
986
- "dialog-full-mobile": i,
987
+ "dialog-full-mobile": r,
987
988
  dark: s,
988
989
  "prevent-scroll": p
989
990
  },
@@ -1033,7 +1034,7 @@ const j = {
1033
1034
  children: t
1034
1035
  }
1035
1036
  ),
1036
- r && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: r })
1037
+ i && /* @__PURE__ */ o("footer", { id: `${e}-dialog-footer`, className: "dialog-footer", children: i })
1037
1038
  ] })
1038
1039
  }
1039
1040
  )
@@ -1044,8 +1045,8 @@ const j = {
1044
1045
  className: a = "",
1045
1046
  contentClass: n = "",
1046
1047
  onClose: s,
1047
- disableOutsideClick: r = !1,
1048
- footer: i,
1048
+ disableOutsideClick: i = !1,
1049
+ footer: r,
1049
1050
  fullMobile: l = !0,
1050
1051
  headerClass: c = "",
1051
1052
  hideClose: h = !1,
@@ -1056,20 +1057,20 @@ const j = {
1056
1057
  title: H = "",
1057
1058
  titleClass: m = ""
1058
1059
  }) => {
1059
- const V = q(null), A = async () => {
1060
+ const V = q(null), w = async () => {
1060
1061
  V.current.classList.add("closing"), await B(V.current), V.current.classList.remove("closing"), s && s(), M(!1);
1061
- }, v = async (w) => {
1062
- w.key === "Escape" && await A();
1063
- }, Z = async ({ clientX: w, clientY: S, target: D }) => {
1062
+ }, v = async (A) => {
1063
+ A.key === "Escape" && await w();
1064
+ }, k = async ({ clientX: A, clientY: z, target: D }) => {
1064
1065
  const { left: $, right: T, top: I, bottom: O } = V.current.getBoundingClientRect() ?? {};
1065
- (!V.current.contains(D) || w < $ || w > T || S < I || S > O) && await A();
1066
- }, B = (w) => Promise.allSettled(
1067
- w.getAnimations().map((S) => S.finished)
1066
+ (!V.current.contains(D) || A < $ || A > T || z < I || z > O) && await w();
1067
+ }, B = (A) => Promise.allSettled(
1068
+ A.getAnimations().map((z) => z.finished)
1068
1069
  );
1069
- return z(() => {
1070
- const w = V.current;
1071
- w && (f ? w.showModal() : typeof w.close == "function" && w.close());
1072
- }, [f]), /* @__PURE__ */ g(k, { children: [
1070
+ return N(() => {
1071
+ const A = V.current;
1072
+ A && (f ? A.showModal() : typeof A.close == "function" && A.close());
1073
+ }, [f]), /* @__PURE__ */ g(S, { children: [
1073
1074
  d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
1074
1075
  /* @__PURE__ */ g(
1075
1076
  "dialog",
@@ -1085,7 +1086,7 @@ const j = {
1085
1086
  a
1086
1087
  ),
1087
1088
  onKeyDown: v,
1088
- onClick: (w) => r ? null : Z(w),
1089
+ onClick: (A) => i ? null : k(A),
1089
1090
  children: [
1090
1091
  /* @__PURE__ */ g(
1091
1092
  "header",
@@ -1104,7 +1105,7 @@ const j = {
1104
1105
  title: "Close",
1105
1106
  className: "dialog-close",
1106
1107
  "data-dialog-close": "",
1107
- onClick: A,
1108
+ onClick: w,
1108
1109
  children: /* @__PURE__ */ o(
1109
1110
  y,
1110
1111
  {
@@ -1126,12 +1127,12 @@ const j = {
1126
1127
  children: t
1127
1128
  }
1128
1129
  ),
1129
- i && /* @__PURE__ */ o(
1130
+ r && /* @__PURE__ */ o(
1130
1131
  "footer",
1131
1132
  {
1132
1133
  id: `${e}-dialog-footer`,
1133
1134
  className: "dialog-footer flex justify-between items-center p-4 border-t",
1134
- children: i
1135
+ children: r
1135
1136
  }
1136
1137
  )
1137
1138
  ]
@@ -1154,22 +1155,22 @@ const j = {
1154
1155
  timeout: a = 1e4,
1155
1156
  variation: n = "primary"
1156
1157
  }) => {
1157
- function s({ cb: r }) {
1158
- const i = document.querySelector(".loading-bar__inner");
1159
- if (!i) return;
1158
+ function s({ cb: i }) {
1159
+ const r = document.querySelector(".loading-bar__inner");
1160
+ if (!r) return;
1160
1161
  let l, c, h = !1;
1161
1162
  function p(f) {
1162
1163
  l === void 0 && (l = f);
1163
1164
  const M = f - l;
1164
1165
  if (c !== f) {
1165
1166
  const b = M / a * 101;
1166
- i.style.width = `${b}%`, b >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
1167
+ r.style.width = `${b}%`, b >= 101 && (i && i(), h = !0, window.cancelAnimationFrame(f));
1167
1168
  }
1168
1169
  M < a && (c = f, h || window.requestAnimationFrame(p));
1169
1170
  }
1170
1171
  window.requestAnimationFrame(p);
1171
1172
  }
1172
- return z(() => {
1173
+ return N(() => {
1173
1174
  s({ cb: d });
1174
1175
  }, []), /* @__PURE__ */ o(
1175
1176
  "div",
@@ -1206,11 +1207,11 @@ const j = {
1206
1207
  options: a = {},
1207
1208
  children: n,
1208
1209
  className: s = "",
1209
- containerClass: r = "",
1210
- disabled: i = !1,
1210
+ containerClass: i = "",
1211
+ disabled: r = !1,
1211
1212
  id: l = "",
1212
1213
  trigger: c = "click"
1213
- }) => /* @__PURE__ */ g(k, { children: [
1214
+ }) => /* @__PURE__ */ g(S, { children: [
1214
1215
  /* @__PURE__ */ o(
1215
1216
  "div",
1216
1217
  {
@@ -1220,7 +1221,7 @@ const j = {
1220
1221
  {
1221
1222
  className: u(
1222
1223
  "popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
1223
- r
1224
+ i
1224
1225
  ),
1225
1226
  children: [
1226
1227
  n,
@@ -1242,7 +1243,7 @@ const j = {
1242
1243
  className: u(
1243
1244
  "popover-activator",
1244
1245
  `trigger-${c}`,
1245
- i ? "is-disabled" : "",
1246
+ r ? "is-disabled" : "",
1246
1247
  e
1247
1248
  ),
1248
1249
  ...t,
@@ -1257,8 +1258,8 @@ const j = {
1257
1258
  className: a,
1258
1259
  completed: n = 0,
1259
1260
  maxCompleted: s = 100,
1260
- rounded: r = !0,
1261
- showLabel: i = !1
1261
+ rounded: i = !0,
1262
+ showLabel: r = !1
1262
1263
  }) => {
1263
1264
  const c = ((h, p) => {
1264
1265
  if (h) {
@@ -1272,7 +1273,7 @@ const j = {
1272
1273
  {
1273
1274
  className: u(
1274
1275
  "w-full bg-gray-200",
1275
- { "rounded-full": r },
1276
+ { "rounded-full": i },
1276
1277
  a
1277
1278
  ),
1278
1279
  role: "progressbar",
@@ -1288,7 +1289,7 @@ const j = {
1288
1289
  t
1289
1290
  ),
1290
1291
  style: { width: `${c}%` },
1291
- children: i && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
1292
+ children: r && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
1292
1293
  }
1293
1294
  )
1294
1295
  }
@@ -1300,8 +1301,8 @@ const j = {
1300
1301
  id: a = "",
1301
1302
  label: n = "",
1302
1303
  name: s = "",
1303
- props: r = {},
1304
- variation: i = "primary",
1304
+ props: i = {},
1305
+ variation: r = "primary",
1305
1306
  value: l = ""
1306
1307
  }) => {
1307
1308
  const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
@@ -1318,14 +1319,14 @@ const j = {
1318
1319
  className: u(
1319
1320
  "form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
1320
1321
  {
1321
- "focus:ring-[#222]": i === "primary"
1322
+ "focus:ring-[#222]": r === "primary"
1322
1323
  }
1323
1324
  ),
1324
1325
  id: a,
1325
1326
  name: s,
1326
1327
  type: "radio",
1327
1328
  value: l,
1328
- ...r
1329
+ ...i
1329
1330
  }
1330
1331
  ),
1331
1332
  e
@@ -1339,8 +1340,8 @@ const j = {
1339
1340
  errorMessage: a = "",
1340
1341
  id: n = "",
1341
1342
  label: s = "",
1342
- name: r = "",
1343
- options: i = [],
1343
+ name: i = "",
1344
+ options: r = [],
1344
1345
  placeholder: l = "",
1345
1346
  props: c = {},
1346
1347
  selectClass: h = "",
@@ -1365,13 +1366,13 @@ const j = {
1365
1366
  h
1366
1367
  ),
1367
1368
  id: n,
1368
- name: r,
1369
+ name: i,
1369
1370
  value: M,
1370
1371
  ...b,
1371
1372
  ...c,
1372
1373
  children: [
1373
1374
  l && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: l }),
1374
- i.map((H, m) => /* @__PURE__ */ o(
1375
+ r.map((H, m) => /* @__PURE__ */ o(
1375
1376
  "option",
1376
1377
  {
1377
1378
  value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
@@ -1415,13 +1416,13 @@ const j = {
1415
1416
  children: /* @__PURE__ */ o(y, { name: "chevronLeft" })
1416
1417
  }
1417
1418
  ),
1418
- /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ o(
1419
+ /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, i) => /* @__PURE__ */ o(
1419
1420
  "div",
1420
1421
  {
1421
1422
  className: `slider-card bg-gray-200 animate-pulse ${d}`,
1422
1423
  children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
1423
1424
  },
1424
- r
1425
+ i
1425
1426
  )) }),
1426
1427
  /* @__PURE__ */ o(
1427
1428
  "button",
@@ -1457,8 +1458,8 @@ const j = {
1457
1458
  errorMessage: a = "",
1458
1459
  id: n = "",
1459
1460
  inputClass: s = "",
1460
- name: r = "",
1461
- placeholder: i = "",
1461
+ name: i = "",
1462
+ placeholder: r = "",
1462
1463
  props: l = {},
1463
1464
  rows: c = 4,
1464
1465
  variation: h = "primary"
@@ -1466,9 +1467,9 @@ const j = {
1466
1467
  /* @__PURE__ */ o(
1467
1468
  "textarea",
1468
1469
  {
1469
- placeholder: i,
1470
+ placeholder: r,
1470
1471
  id: n,
1471
- name: r,
1472
+ name: i,
1472
1473
  rows: c,
1473
1474
  className: u(
1474
1475
  "form-textarea min-h-[40px] pl-4",
@@ -1502,8 +1503,8 @@ const j = {
1502
1503
  errorMessage: a = "",
1503
1504
  iconLeft: n = "",
1504
1505
  id: s = "",
1505
- inputClass: r = "",
1506
- name: i = "",
1506
+ inputClass: i = "",
1507
+ name: r = "",
1507
1508
  placeholder: l = "",
1508
1509
  props: c = {},
1509
1510
  styles: h = null,
@@ -1530,7 +1531,7 @@ const j = {
1530
1531
  {
1531
1532
  placeholder: l,
1532
1533
  id: s,
1533
- name: i,
1534
+ name: r,
1534
1535
  type: p,
1535
1536
  value: f,
1536
1537
  autoComplete: "off",
@@ -1542,7 +1543,7 @@ const j = {
1542
1543
  "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
1543
1544
  },
1544
1545
  c.inputClass ?? "",
1545
- r
1546
+ i
1546
1547
  ),
1547
1548
  ...c
1548
1549
  }
@@ -1572,9 +1573,9 @@ const j = {
1572
1573
  customSuccessMsg: a = "",
1573
1574
  title: n = "Send A Message",
1574
1575
  titleClass: s,
1575
- uppercase: r = !0
1576
+ uppercase: i = !0
1576
1577
  }) => {
1577
- const i = a || /* @__PURE__ */ g(k, { children: [
1578
+ const r = a || /* @__PURE__ */ g(S, { children: [
1578
1579
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1579
1580
  " ",
1580
1581
  /* @__PURE__ */ o(
@@ -1596,11 +1597,11 @@ const j = {
1596
1597
  {
1597
1598
  id: "contactForm",
1598
1599
  className: u("contact-form", t, {
1599
- uppercase: r
1600
+ uppercase: i
1600
1601
  }),
1601
1602
  children: [
1602
1603
  /* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", s), children: n }),
1603
- /* @__PURE__ */ o("p", { className: "contact-form__msg", children: i }),
1604
+ /* @__PURE__ */ o("p", { className: "contact-form__msg", children: r }),
1604
1605
  /* @__PURE__ */ g(
1605
1606
  "div",
1606
1607
  {
@@ -1616,7 +1617,7 @@ const j = {
1616
1617
  name: "contact-name",
1617
1618
  placeholder: "Name",
1618
1619
  inputClass: u({
1619
- "placeholder:uppercase": r
1620
+ "placeholder:uppercase": i
1620
1621
  })
1621
1622
  }
1622
1623
  ),
@@ -1627,7 +1628,7 @@ const j = {
1627
1628
  name: "contact-email",
1628
1629
  placeholder: "Email",
1629
1630
  inputClass: u({
1630
- "placeholder:uppercase": r
1631
+ "placeholder:uppercase": i
1631
1632
  })
1632
1633
  }
1633
1634
  ),
@@ -1638,7 +1639,7 @@ const j = {
1638
1639
  name: "contact-message",
1639
1640
  placeholder: "Message",
1640
1641
  inputClass: u({
1641
- "placeholder:uppercase": r
1642
+ "placeholder:uppercase": i
1642
1643
  })
1643
1644
  }
1644
1645
  ),
@@ -1648,7 +1649,7 @@ const j = {
1648
1649
  className: u(
1649
1650
  "flex mx-auto items-center",
1650
1651
  {
1651
- uppercase: r
1652
+ uppercase: i
1652
1653
  },
1653
1654
  d
1654
1655
  ),
@@ -1670,8 +1671,8 @@ const j = {
1670
1671
  contentClass: a,
1671
1672
  footerClass: n,
1672
1673
  footerContent: s,
1673
- headerContent: r,
1674
- headerClass: i,
1674
+ headerContent: i,
1675
+ headerClass: r,
1675
1676
  list: l = !1,
1676
1677
  props: c = {},
1677
1678
  variation: h = "primary"
@@ -1688,7 +1689,7 @@ const j = {
1688
1689
  ),
1689
1690
  ...c,
1690
1691
  children: [
1691
- r && /* @__PURE__ */ o("div", { className: u("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1692
+ i && /* @__PURE__ */ o("div", { className: u("content-card__header", r), children: typeof i == "string" ? /* @__PURE__ */ o("h3", { children: i }) : i }),
1692
1693
  /* @__PURE__ */ o(
1693
1694
  p,
1694
1695
  {
@@ -1708,8 +1709,8 @@ const j = {
1708
1709
  direction: a = "col",
1709
1710
  label: n,
1710
1711
  labelClass: s,
1711
- props: r = {},
1712
- rowGap: i = 1,
1712
+ props: i = {},
1713
+ rowGap: r = 1,
1713
1714
  value: l,
1714
1715
  valueClass: c,
1715
1716
  wrap: h = !1
@@ -1727,9 +1728,9 @@ const j = {
1727
1728
  ),
1728
1729
  style: {
1729
1730
  columnGap: `${t / 4}rem`,
1730
- rowGap: `${i / 4}rem`
1731
+ rowGap: `${r / 4}rem`
1731
1732
  },
1732
- ...r,
1733
+ ...i,
1733
1734
  children: [
1734
1735
  n && /* @__PURE__ */ o("div", { className: u("item-label", s), children: n }),
1735
1736
  l && /* @__PURE__ */ o("div", { className: u("item-value", c), children: l }),
@@ -1743,8 +1744,8 @@ const j = {
1743
1744
  noPrint: a = !1,
1744
1745
  props: n = {},
1745
1746
  title: s,
1746
- titleClass: r,
1747
- titleId: i
1747
+ titleClass: i,
1748
+ titleId: r
1748
1749
  }) => /* @__PURE__ */ g(
1749
1750
  "section",
1750
1751
  {
@@ -1758,7 +1759,7 @@ const j = {
1758
1759
  ),
1759
1760
  ...n,
1760
1761
  children: [
1761
- s && /* @__PURE__ */ o("h2", { className: u("spacer-title", r), id: i, children: s }),
1762
+ s && /* @__PURE__ */ o("h2", { className: u("spacer-title", i), id: r, children: s }),
1762
1763
  e
1763
1764
  ]
1764
1765
  }
@@ -2019,7 +2020,7 @@ const j = {
2019
2020
  },
2020
2021
  plugins: [
2021
2022
  ({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
2022
- const n = {}, s = ["2", "5"], r = {
2023
+ const n = {}, s = ["2", "5"], i = {
2023
2024
  light: "300",
2024
2025
  normal: "400",
2025
2026
  medium: "500",
@@ -2039,8 +2040,8 @@ const j = {
2039
2040
  }, p = `.${a(`header-${l}`)}`;
2040
2041
  n[p] = {
2041
2042
  ...h,
2042
- "font-weight": s.includes(l) ? r.semibold : r.bold
2043
- }, Object.entries(r).forEach(([f, M]) => {
2043
+ "font-weight": s.includes(l) ? i.semibold : i.bold
2044
+ }, Object.entries(i).forEach(([f, M]) => {
2044
2045
  const b = `.${a(`header-${l}-${f}`)}`;
2045
2046
  n[b] = {
2046
2047
  ...h,
@@ -2161,7 +2162,7 @@ function b1(d, e = []) {
2161
2162
  },
2162
2163
  set(t, a, n) {
2163
2164
  const s = { ...t };
2164
- return t[a] = n, e.length > 0 && e.forEach((r) => r(t, s, a)), t;
2165
+ return t[a] = n, e.length > 0 && e.forEach((i) => i(t, s, a)), t;
2165
2166
  }
2166
2167
  });
2167
2168
  }
@@ -2173,10 +2174,10 @@ function t2(d, e = []) {
2173
2174
  }
2174
2175
  function a2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2175
2176
  let s = !0;
2176
- for (const [r, i] of t.entries()) {
2177
- const l = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
2177
+ for (const [i, r] of t.entries()) {
2178
+ const l = e.querySelector(`[name="${i}"]`), c = a[i], h = [];
2178
2179
  c.forEach((p) => {
2179
- p.isValid(i) || h.push(p.message);
2180
+ p.isValid(r) || h.push(p.message);
2180
2181
  }), h.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (p) => {
2181
2182
  p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
2182
2183
  }));
@@ -2232,14 +2233,14 @@ class s2 {
2232
2233
  )), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
2233
2234
  }
2234
2235
  handleIntersect(e, t, a) {
2235
- const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, r = n.every(
2236
+ const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, i = n.every(
2236
2237
  (l) => l.isIntersecting === !0
2237
2238
  );
2238
- s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
2239
+ s && i ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
2239
2240
  const c = [...a.slides].indexOf(l.target);
2240
- l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, i(l));
2241
+ l.target === a.slides[0] && (a.showPrevBtn = l.isIntersecting), l.target === a.slides[a.slides.length - 1] && (a.showNextBtn = l.isIntersecting), l.target === a.slides[2] && (a.scrollToStart = l.isIntersecting), l.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = l.isIntersecting), l.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, r(l));
2241
2242
  }));
2242
- function i(l) {
2243
+ function r(l) {
2243
2244
  var c;
2244
2245
  l.target !== a.slides[a.slides.length - 1] && l.target !== a.slides[0] && l.target !== a.slides[2] && l.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(l.target));
2245
2246
  }
@@ -2260,7 +2261,7 @@ class s2 {
2260
2261
  e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
2261
2262
  }
2262
2263
  sliderElements({ state: e, items: t, id: a, cb: n }) {
2263
- const s = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
2264
+ const s = '<span class="slide-first"></span>', i = '<span class="slide-last"></span>';
2264
2265
  if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
2265
2266
  return console.error(`slider-container-${a} Not Found`);
2266
2267
  e.prevBtn = e.container.parentElement.querySelector(
@@ -2268,8 +2269,8 @@ class s2 {
2268
2269
  ), e.nextBtn = e.container.parentElement.querySelector(
2269
2270
  `#btn-right-${a}`
2270
2271
  );
2271
- const i = t.map((c) => n(c)).join(""), l = document.createElement("div");
2272
- l.innerHTML = `${s}${i}${r}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
2272
+ const r = t.map((c) => n(c)).join(""), l = document.createElement("div");
2273
+ l.innerHTML = `${s}${r}${i}`, e.container.replaceChildren(...l.children), e.container.parentElement.classList.add("loaded");
2273
2274
  }
2274
2275
  showHideBtns(e, t, a) {
2275
2276
  if (a === "showPrevBtn" || a === "showNextBtn") {
@@ -2281,9 +2282,9 @@ class s2 {
2281
2282
  }
2282
2283
  class C {
2283
2284
  static calcCrow(e, t, a, n) {
2284
- const r = C.toRad(a - e), i = C.toRad(n - t);
2285
+ const i = C.toRad(a - e), r = C.toRad(n - t);
2285
2286
  e = C.toRad(e), a = C.toRad(a);
2286
- const l = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
2287
+ const l = Math.sin(i / 2) * Math.sin(i / 2) + Math.sin(r / 2) * Math.sin(r / 2) * Math.cos(e) * Math.cos(a);
2287
2288
  return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
2288
2289
  }
2289
2290
  static cleanupAddress(e) {
@@ -2312,9 +2313,9 @@ class C {
2312
2313
  static async createData(e, t = null, a = !0) {
2313
2314
  if (window.options.isBot || !t)
2314
2315
  return null;
2315
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, i = e + r, l = typeof t == "string" ? t : JSON.stringify(t);
2316
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, r = e + i, l = typeof t == "string" ? t : JSON.stringify(t);
2316
2317
  try {
2317
- const c = await fetch(i, {
2318
+ const c = await fetch(r, {
2318
2319
  method: "POST",
2319
2320
  body: l === "null" ? null : l,
2320
2321
  headers: {
@@ -2386,9 +2387,9 @@ class C {
2386
2387
  static async fetchData(e, t = !1, a = !0) {
2387
2388
  if (options.isBot)
2388
2389
  return null;
2389
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2390
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2390
2391
  try {
2391
- const l = await fetch(i, { method: "GET" });
2392
+ const l = await fetch(r, { method: "GET" });
2392
2393
  if (t === !0) {
2393
2394
  const h = await l.text();
2394
2395
  return h ? h.replace("__next", "") : null;
@@ -2424,11 +2425,11 @@ class C {
2424
2425
  swLng: 0
2425
2426
  };
2426
2427
  const n = e.getBounds();
2427
- let s = n.getSouth(), r = n.getEast(), i = n.getNorth(), l = n.getWest();
2428
- return a && (s = s - a, r = r + a, i = i + a, l = l - a), t && (s = s.toFixed(t), r = r.toFixed(t), i = i.toFixed(t), l = l.toFixed(t)), {
2428
+ let s = n.getSouth(), i = n.getEast(), r = n.getNorth(), l = n.getWest();
2429
+ return a && (s = s - a, i = i + a, r = r + a, l = l - a), t && (s = s.toFixed(t), i = i.toFixed(t), r = r.toFixed(t), l = l.toFixed(t)), {
2429
2430
  swLat: s,
2430
- neLng: r,
2431
- neLat: i,
2431
+ neLng: i,
2432
+ neLat: r,
2432
2433
  swLng: l
2433
2434
  };
2434
2435
  }
@@ -2462,17 +2463,17 @@ class C {
2462
2463
  userAgent: t = null,
2463
2464
  userAgentData: a = null,
2464
2465
  platform: n = null
2465
- } = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, r = {
2466
+ } = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, i = {
2466
2467
  tolken: null,
2467
2468
  ip: null,
2468
2469
  userAgent: t,
2469
2470
  platform: s
2470
2471
  };
2471
2472
  if (options && options.isBot || typeof window.localStorage > "u")
2472
- return r;
2473
- const i = localStorage.getItem("headerTolken");
2474
- if (i) {
2475
- const c = JSON.parse(i), h = (/* @__PURE__ */ new Date()).getTime();
2473
+ return i;
2474
+ const r = localStorage.getItem("headerTolken");
2475
+ if (r) {
2476
+ const c = JSON.parse(r), h = (/* @__PURE__ */ new Date()).getTime();
2476
2477
  return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
2477
2478
  tolken: c.tolken,
2478
2479
  ip: c.ip,
@@ -2481,7 +2482,7 @@ class C {
2481
2482
  };
2482
2483
  }
2483
2484
  if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
2484
- return r;
2485
+ return i;
2485
2486
  try {
2486
2487
  const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, f = (h == null ? void 0 : h.ip) ?? null;
2487
2488
  return localStorage.setItem(
@@ -2495,7 +2496,7 @@ class C {
2495
2496
  } catch (c) {
2496
2497
  console.error("getHeaders", c);
2497
2498
  }
2498
- return r;
2499
+ return i;
2499
2500
  }
2500
2501
  static getLayerTitle(e) {
2501
2502
  return {
@@ -2504,15 +2505,15 @@ class C {
2504
2505
  }[e];
2505
2506
  }
2506
2507
  static async getLocationData(e) {
2507
- const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2508
- return await C.fetchData("/api/client?query=" + r);
2508
+ const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), i = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2509
+ return await C.fetchData("/api/client?query=" + i);
2509
2510
  }
2510
2511
  static getReportUrl(e, t = null) {
2511
2512
  var l, c, h;
2512
- const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2513
+ const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, i = (e == null ? void 0 : e.zip) ?? null;
2513
2514
  t = t || ((e == null ? void 0 : e.id) ?? null);
2514
- const i = [r, "-piq", t].filter((p) => p).join("");
2515
- return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + i;
2515
+ const r = [i, "-piq", t].filter((p) => p).join("");
2516
+ return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + r;
2516
2517
  }
2517
2518
  static async getSearchValue(e = "recsSearchValue") {
2518
2519
  try {
@@ -2678,10 +2679,10 @@ class C {
2678
2679
  static gridTest(e, t, a = 1500) {
2679
2680
  const n = this;
2680
2681
  L.GridLayer.GridDebug = L.GridLayer.extend({
2681
- createTile: function(s, r) {
2682
- const i = document.createElement("div");
2682
+ createTile: function(s, i) {
2683
+ const r = document.createElement("div");
2683
2684
  return setTimeout(() => {
2684
- r(null, i);
2685
+ i(null, r);
2685
2686
  const { se: l, nw: c } = n.getGridBounds({
2686
2687
  map: e,
2687
2688
  tileSize: this.getTileSize(),
@@ -2695,7 +2696,7 @@ class C {
2695
2696
  coords: s,
2696
2697
  key: s.z + "-" + s.x + "-" + s.y
2697
2698
  });
2698
- }, a), i;
2699
+ }, a), r;
2699
2700
  }
2700
2701
  }), L.gridLayer.gridDebug = function(s) {
2701
2702
  return new L.GridLayer.GridDebug(s);
@@ -2718,7 +2719,7 @@ class C {
2718
2719
  onClose: n = null,
2719
2720
  disableOutsideClick: s = !1
2720
2721
  }) {
2721
- const r = e ? document.querySelectorAll(e) : [], i = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"), c = [
2722
+ const i = e ? document.querySelectorAll(e) : [], r = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"), c = [
2722
2723
  "closing",
2723
2724
  "closed",
2724
2725
  "opening",
@@ -2732,21 +2733,21 @@ class C {
2732
2733
  }),
2733
2734
  {}
2734
2735
  ), h = new MutationObserver((m, V) => {
2735
- m.forEach(async (A) => {
2736
- if (A.attributeName === "open") {
2737
- const v = A.target;
2736
+ m.forEach(async (w) => {
2737
+ if (w.attributeName === "open") {
2738
+ const v = w.target;
2738
2739
  if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2739
2740
  v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await H(v), v == null || v.dispatchEvent(c.opened);
2740
2741
  }
2741
2742
  });
2742
2743
  }), p = new MutationObserver((m, V) => {
2743
- m.forEach((A) => {
2744
- A.removedNodes.forEach((v) => {
2744
+ m.forEach((w) => {
2745
+ w.removedNodes.forEach((v) => {
2745
2746
  v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", M), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
2746
2747
  });
2747
2748
  });
2748
2749
  });
2749
- i && (h.observe(i, {
2750
+ r && (h.observe(r, {
2750
2751
  attributes: !0
2751
2752
  }), p.observe(document.body, {
2752
2753
  attributes: !1,
@@ -2754,25 +2755,25 @@ class C {
2754
2755
  childList: !0
2755
2756
  }));
2756
2757
  const f = () => {
2757
- i == null || i.showModal();
2758
+ r == null || r.showModal();
2758
2759
  }, M = async ({ target: m }) => {
2759
2760
  m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await H(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
2760
2761
  }, b = async ({ target: m }) => {
2761
- (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), i == null || i.close("outside"));
2762
+ (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), r == null || r.close("outside"));
2762
2763
  }, H = (m) => Promise.allSettled(
2763
2764
  m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
2764
2765
  );
2765
- return !s && (i == null || i.addEventListener("click", b)), i == null || i.addEventListener("close", M), r == null || r.forEach((m) => {
2766
+ return !s && (r == null || r.addEventListener("click", b)), r == null || r.addEventListener("close", M), i == null || i.forEach((m) => {
2766
2767
  m.addEventListener("click", (V) => {
2767
- f(), a && a(V, i);
2768
+ f(), a && a(V, r);
2768
2769
  });
2769
2770
  }), l == null || l.forEach((m) => {
2770
2771
  m.addEventListener("click", async (V) => {
2771
- i == null || i.close("close"), n && n(V, i);
2772
+ r == null || r.close("close"), n && n(V, r);
2772
2773
  });
2773
2774
  }), {
2774
- activators: r,
2775
- ref: i,
2775
+ activators: i,
2776
+ ref: r,
2776
2777
  handleOpen: f,
2777
2778
  handleClose: M
2778
2779
  };
@@ -2784,8 +2785,8 @@ class C {
2784
2785
  if (!e)
2785
2786
  return;
2786
2787
  const n = (a == null ? void 0 : a.useBounding) ?? !1;
2787
- new IntersectionObserver(async (r, i) => {
2788
- n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: i, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: i, entry: r[0], entries: r });
2788
+ new IntersectionObserver(async (i, r) => {
2789
+ n ? (i[0].isIntersecting || i[0].boundingClientRect.y < 0) && t({ obs: r, entry: i[0], entries: i }) : i[0].isIntersecting && t({ obs: r, entry: i[0], entries: i });
2789
2790
  }, a).observe(e);
2790
2791
  }
2791
2792
  static injectLink({ href: e, id: t }) {
@@ -2793,11 +2794,11 @@ class C {
2793
2794
  a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
2794
2795
  }
2795
2796
  static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
2796
- return new Promise(function(s, r) {
2797
- let i = document.getElementById(t);
2798
- if (t && i && i.dataset.loaded === "true")
2797
+ return new Promise(function(s, i) {
2798
+ let r = document.getElementById(t);
2799
+ if (t && r && r.dataset.loaded === "true")
2799
2800
  return s({ alreadyLoaded: !0, id: t });
2800
- i || (i = document.createElement("script"), i.src = e, i.dataset.loaded = "false", t && (i.id = t), i.type = n ? "module" : "text/javascript", i.async = a, document.body.appendChild(i), i.onload = () => (i.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), i.onerror = () => r(!1));
2801
+ r || (r = document.createElement("script"), r.src = e, r.dataset.loaded = "false", t && (r.id = t), r.type = n ? "module" : "text/javascript", r.async = a, document.body.appendChild(r), r.onload = () => (r.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), r.onerror = () => i(!1));
2801
2802
  });
2802
2803
  }
2803
2804
  static isMobile({ selector: e = null, width: t = 640 } = {}) {
@@ -2830,14 +2831,14 @@ class C {
2830
2831
  return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
2831
2832
  }
2832
2833
  static async logRequest(e = null, t = null, a = null, n = null, s = null) {
2833
- const r = {
2834
+ const i = {
2834
2835
  name: e,
2835
2836
  uuid: t,
2836
2837
  ip: a,
2837
2838
  url: n,
2838
2839
  data: s
2839
2840
  };
2840
- return await C.createData("/api/client?query=log/save&method=POST", r), null;
2841
+ return await C.createData("/api/client?query=log/save&method=POST", i), null;
2841
2842
  }
2842
2843
  static loadAds() {
2843
2844
  window.dataLayer = window.dataLayer || [];
@@ -2922,17 +2923,17 @@ class C {
2922
2923
  first: a = null,
2923
2924
  middle: n = null,
2924
2925
  last: s = null,
2925
- min: r = null,
2926
- max: i = null,
2926
+ min: i = null,
2927
+ max: r = null,
2927
2928
  city: l = null,
2928
2929
  state: c = null,
2929
2930
  vin: h = null,
2930
2931
  license: p = null,
2931
2932
  token: f = null,
2932
2933
  phone: M = null
2933
- } = e || {}, b = t && t !== "", H = r && r !== "" && r !== "18", m = i && i !== "" && r !== "99";
2934
+ } = e || {}, b = t && t !== "", H = i && i !== "" && i !== "18", m = r && r !== "" && i !== "99";
2934
2935
  let V = [];
2935
- return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), H && m ? parseInt(r) > parseInt(i) ? (V.push("min=" + i), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + i)) : (H && V.push("min=" + r), m && V.push("max=" + i)), M && M !== "" && V.push("phone=" + M), l && l !== "" && V.push("city=" + l), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
2936
+ return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), H && m ? parseInt(i) > parseInt(r) ? (V.push("min=" + r), V.push("max=" + i)) : (V.push("min=" + i), V.push("max=" + r)) : (H && V.push("min=" + i), m && V.push("max=" + r)), M && M !== "" && V.push("phone=" + M), l && l !== "" && V.push("city=" + l), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
2936
2937
  }
2937
2938
  static padTo2Digits(e) {
2938
2939
  return e.toString().padStart(2, "0");
@@ -2946,16 +2947,16 @@ class C {
2946
2947
  addressesOnly: a = !1,
2947
2948
  useCitySearch: n = !1,
2948
2949
  useCityStateSearch: s = !1,
2949
- useSearch: r = !1,
2950
- useLocation: i = !0,
2950
+ useSearch: i = !1,
2951
+ useLocation: r = !0,
2951
2952
  state: l = ""
2952
2953
  } = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
2953
2954
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2954
2955
  "addressesOnly=" + a,
2955
- "useSearch=" + r,
2956
+ "useSearch=" + i,
2956
2957
  "useCitySearch=" + n,
2957
2958
  "useCityStateSearch=" + s,
2958
- "useLocation=" + i
2959
+ "useLocation=" + r
2959
2960
  ];
2960
2961
  l && l !== "" && !s && f.push("state=" + l), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
2961
2962
  const M = f.join("&"), H = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
@@ -3004,10 +3005,10 @@ class C {
3004
3005
  s && (n = s.short);
3005
3006
  }
3006
3007
  if (a && !n) {
3007
- const s = a.split(" "), r = s[s.length - 1];
3008
- if (r.length) {
3009
- const i = this.searchInStates(r);
3010
- i && (n = i.short, a = s.slice(0, -1).join(" "));
3008
+ const s = a.split(" "), i = s[s.length - 1];
3009
+ if (i.length) {
3010
+ const r = this.searchInStates(i);
3011
+ r && (n = r.short, a = s.slice(0, -1).join(" "));
3011
3012
  }
3012
3013
  }
3013
3014
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;