@vehiclehistory/property-lib 0.0.961 → 0.0.962

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
@@ -501,11 +501,11 @@ const W = {
501
501
  size: a = "medium",
502
502
  viewBox: n = "0 0 20 20"
503
503
  }) => {
504
- const s = G(t), [l, o] = N(d), [r, i] = N(s);
504
+ const s = G(t), [l, i] = N(d), [r, o] = N(s);
505
505
  return Z(() => {
506
- i(s);
506
+ o(s);
507
507
  }, [s]), Z(() => {
508
- o(d);
508
+ i(d);
509
509
  }, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
510
510
  "svg",
511
511
  {
@@ -533,14 +533,14 @@ const W = {
533
533
  unmount: s = !0,
534
534
  isOpen: l = !1
535
535
  }) => {
536
- const [o, r] = N(l);
536
+ const [i, r] = N(l);
537
537
  return /* @__PURE__ */ c(
538
538
  "div",
539
539
  {
540
540
  className: p(
541
541
  "accordion shadow rounded-lg",
542
542
  {
543
- "accordion--open": o
543
+ "accordion--open": i
544
544
  },
545
545
  e
546
546
  ),
@@ -554,7 +554,7 @@ const W = {
554
554
  ),
555
555
  title: n,
556
556
  onClick: () => {
557
- r(!o), t && t(!o);
557
+ r(!i), t && t(!i);
558
558
  },
559
559
  children: [
560
560
  /* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
@@ -569,7 +569,7 @@ const W = {
569
569
  ]
570
570
  }
571
571
  ),
572
- s && o && /* @__PURE__ */ c(
572
+ s && i && /* @__PURE__ */ c(
573
573
  "div",
574
574
  {
575
575
  className: p(
@@ -585,7 +585,7 @@ const W = {
585
585
  className: p(
586
586
  "accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
587
587
  a,
588
- { hidden: !o }
588
+ { hidden: !i }
589
589
  ),
590
590
  children: d
591
591
  }
@@ -601,7 +601,7 @@ const W = {
601
601
  title: n = "",
602
602
  titleClass: s = "",
603
603
  props: l = {},
604
- type: o = "error"
604
+ type: i = "error"
605
605
  }) => {
606
606
  const r = {
607
607
  error: {
@@ -624,11 +624,11 @@ const W = {
624
624
  iconColor: "text-yellow-500",
625
625
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
626
626
  }
627
- }, { icon: i, iconColor: u, styles: m } = r[o];
627
+ }, { icon: o, iconColor: u, styles: m } = r[i];
628
628
  return /* @__PURE__ */ c(
629
629
  "div",
630
630
  {
631
- id: o,
631
+ id: i,
632
632
  className: p(
633
633
  "rounded w-full py-2 px-4 mb-4 border",
634
634
  m,
@@ -639,7 +639,7 @@ const W = {
639
639
  /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
640
640
  x,
641
641
  {
642
- name: i,
642
+ name: o,
643
643
  viewBox: "0 0 24 24",
644
644
  className: u,
645
645
  size: "xSmall"
@@ -671,9 +671,9 @@ const W = {
671
671
  floatingLabel: n = "",
672
672
  id: s = "",
673
673
  inputClass: l,
674
- leftIcon: o = "homeSearch",
674
+ leftIcon: i = "homeSearch",
675
675
  mobileBackdrop: r = !1,
676
- name: i = "",
676
+ name: o = "",
677
677
  options: u = [],
678
678
  parentProps: m = {},
679
679
  placeholder: H = "",
@@ -715,7 +715,7 @@ const W = {
715
715
  x,
716
716
  {
717
717
  className: "home-search select-none text-gray-500",
718
- name: o,
718
+ name: i,
719
719
  size: v === "xLarge" ? "small" : "xSmall",
720
720
  viewBox: "0 0 24 24"
721
721
  }
@@ -752,7 +752,7 @@ const W = {
752
752
  autoComplete: "off",
753
753
  placeholder: !H && n ? " " : H,
754
754
  type: "search",
755
- name: i || "search-input",
755
+ name: o || "search-input",
756
756
  "data-id": "search-input",
757
757
  ...R,
758
758
  ...V
@@ -875,9 +875,9 @@ const W = {
875
875
  className: n,
876
876
  disabled: s = !1,
877
877
  href: l,
878
- props: o = {},
878
+ props: i = {},
879
879
  rightIcon: r,
880
- rightIconProps: i = {},
880
+ rightIconProps: o = {},
881
881
  rounded: u = !1,
882
882
  size: m = "md",
883
883
  type: H = "button",
@@ -904,7 +904,7 @@ const W = {
904
904
  ),
905
905
  disabled: s,
906
906
  href: l,
907
- ...o,
907
+ ...i,
908
908
  children: [
909
909
  e && /* @__PURE__ */ c(
910
910
  x,
@@ -922,7 +922,7 @@ const W = {
922
922
  name: r,
923
923
  size: m === "md" ? "small" : "xSmall",
924
924
  viewBox: "0 0 24 24",
925
- ...i
925
+ ...o
926
926
  }
927
927
  )
928
928
  ]
@@ -936,16 +936,16 @@ const W = {
936
936
  inputClass: n,
937
937
  id: s = "",
938
938
  label: l = "",
939
- name: o = "",
939
+ name: i = "",
940
940
  props: r = {},
941
- variation: i = "primary",
941
+ variation: o = "primary",
942
942
  value: u = ""
943
943
  }) => {
944
944
  const m = l ? "div" : "label", H = m === "label" ? { htmlFor: s } : {};
945
945
  return /* @__PURE__ */ g(
946
946
  m,
947
947
  {
948
- className: p("checkbox flex items-center", i, t),
948
+ className: p("checkbox flex items-center", o, t),
949
949
  ...H,
950
950
  children: [
951
951
  /* @__PURE__ */ c(
@@ -960,7 +960,7 @@ const W = {
960
960
  n
961
961
  ),
962
962
  id: s,
963
- name: o,
963
+ name: i,
964
964
  type: "checkbox",
965
965
  value: u,
966
966
  ...r
@@ -978,9 +978,9 @@ const W = {
978
978
  contentClass: n,
979
979
  customScrollbar: s = !0,
980
980
  dark: l = !1,
981
- disableClose: o = !1,
981
+ disableClose: i = !1,
982
982
  footer: r,
983
- fullMobile: i = !0,
983
+ fullMobile: o = !0,
984
984
  headerClass: u,
985
985
  hideClose: m = !1,
986
986
  iconSize: H = "medium",
@@ -997,12 +997,12 @@ const W = {
997
997
  "dialog",
998
998
  {
999
999
  inert: "",
1000
- ...o ? { closedby: "none" } : null,
1000
+ ...i ? { closedby: "none" } : null,
1001
1001
  id: `${e}-dialog`,
1002
1002
  className: p(
1003
1003
  "dialog",
1004
1004
  {
1005
- "dialog-full-mobile": i,
1005
+ "dialog-full-mobile": o,
1006
1006
  dark: l,
1007
1007
  "prevent-scroll": V
1008
1008
  },
@@ -1087,16 +1087,16 @@ const W = {
1087
1087
  timeout: n = 1e4,
1088
1088
  variation: s = "primary"
1089
1089
  }) => {
1090
- function l({ cb: o }) {
1090
+ function l({ cb: i }) {
1091
1091
  const r = document.querySelector(".loading-bar__inner");
1092
1092
  if (!r) return;
1093
- let i, u, m = !1;
1093
+ let o, u, m = !1;
1094
1094
  function H(V) {
1095
- i === void 0 && (i = V);
1096
- const f = V - i;
1095
+ o === void 0 && (o = V);
1096
+ const f = V - o;
1097
1097
  if (u !== V) {
1098
1098
  const M = f / n * 101;
1099
- r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (o && o(), m = !0, window.cancelAnimationFrame(V));
1099
+ r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (i && i(), m = !0, window.cancelAnimationFrame(V));
1100
1100
  }
1101
1101
  f < n && (u = V, m || window.requestAnimationFrame(H));
1102
1102
  }
@@ -1129,7 +1129,7 @@ const W = {
1129
1129
  className: n = "",
1130
1130
  containerClass: s = "",
1131
1131
  disabled: l = !1,
1132
- options: o = {},
1132
+ options: i = {},
1133
1133
  trigger: r = "click"
1134
1134
  }) => /* @__PURE__ */ g(S, { children: [
1135
1135
  /* @__PURE__ */ c(
@@ -1169,7 +1169,7 @@ const W = {
1169
1169
  e
1170
1170
  ),
1171
1171
  ...t,
1172
- "data-options": JSON.stringify(o),
1172
+ "data-options": JSON.stringify(i),
1173
1173
  children: d
1174
1174
  }
1175
1175
  )
@@ -1181,9 +1181,9 @@ const W = {
1181
1181
  completed: n = 0,
1182
1182
  customLabel: s,
1183
1183
  labelClass: l,
1184
- maxCompleted: o = 100,
1184
+ maxCompleted: i = 100,
1185
1185
  rounded: r = !0,
1186
- showLabel: i = !1
1186
+ showLabel: o = !1
1187
1187
  }) => {
1188
1188
  const m = ((H, V) => {
1189
1189
  if (H) {
@@ -1191,7 +1191,7 @@ const W = {
1191
1191
  return f > 1 ? 100 : f * 100;
1192
1192
  }
1193
1193
  return n;
1194
- })(o, n);
1194
+ })(i, n);
1195
1195
  return /* @__PURE__ */ c(
1196
1196
  "div",
1197
1197
  {
@@ -1213,7 +1213,7 @@ const W = {
1213
1213
  t
1214
1214
  ),
1215
1215
  style: { width: `${m}%` },
1216
- children: i && /* @__PURE__ */ c(
1216
+ children: o && /* @__PURE__ */ c(
1217
1217
  "span",
1218
1218
  {
1219
1219
  className: p(
@@ -1235,9 +1235,9 @@ const W = {
1235
1235
  inputClass: n,
1236
1236
  label: s = "",
1237
1237
  name: l = "",
1238
- props: o = {},
1238
+ props: i = {},
1239
1239
  variation: r = "primary",
1240
- value: i = ""
1240
+ value: o = ""
1241
1241
  }) => {
1242
1242
  const u = s ? "div" : "label", m = u === "label" ? { htmlFor: a } : {};
1243
1243
  return /* @__PURE__ */ g(
@@ -1260,8 +1260,8 @@ const W = {
1260
1260
  id: a,
1261
1261
  name: l,
1262
1262
  type: "radio",
1263
- value: i,
1264
- ...o
1263
+ value: o,
1264
+ ...i
1265
1265
  }
1266
1266
  ),
1267
1267
  e
@@ -1276,14 +1276,14 @@ const W = {
1276
1276
  label: n = "",
1277
1277
  name: s = "",
1278
1278
  options: l = [],
1279
- placeholder: o = "",
1279
+ placeholder: i = "",
1280
1280
  props: r = {},
1281
- selectClass: i = "",
1281
+ selectClass: o = "",
1282
1282
  styles: u = null,
1283
1283
  variation: m = "primary",
1284
1284
  value: H
1285
1285
  }) => {
1286
- const V = o ? { defaultValue: "" } : {};
1286
+ const V = i ? { defaultValue: "" } : {};
1287
1287
  return /* @__PURE__ */ g(
1288
1288
  "label",
1289
1289
  {
@@ -1299,7 +1299,7 @@ const W = {
1299
1299
  {
1300
1300
  "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500": e
1301
1301
  },
1302
- i
1302
+ o
1303
1303
  ),
1304
1304
  id: a,
1305
1305
  name: s,
@@ -1307,7 +1307,7 @@ const W = {
1307
1307
  ...V,
1308
1308
  ...r,
1309
1309
  children: [
1310
- o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
1310
+ i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
1311
1311
  l.map((f) => /* @__PURE__ */ c(
1312
1312
  "option",
1313
1313
  {
@@ -1404,18 +1404,18 @@ const W = {
1404
1404
  id: n = "",
1405
1405
  inputClass: s = "",
1406
1406
  name: l = "",
1407
- placeholder: o = "",
1407
+ placeholder: i = "",
1408
1408
  props: r = {},
1409
- rows: i = 4,
1409
+ rows: o = 4,
1410
1410
  variation: u = "primary"
1411
1411
  }) => /* @__PURE__ */ g("div", { className: p("relative textarea", u, d), children: [
1412
1412
  /* @__PURE__ */ c(
1413
1413
  "textarea",
1414
1414
  {
1415
- placeholder: o,
1415
+ placeholder: i,
1416
1416
  id: n,
1417
1417
  name: l,
1418
- rows: i,
1418
+ rows: o,
1419
1419
  className: p(
1420
1420
  "form-textarea min-h-[40px] pl-4",
1421
1421
  e ? "pr-10" : "pr-4",
@@ -1451,9 +1451,9 @@ const W = {
1451
1451
  iconLeft: n = "",
1452
1452
  id: s = "",
1453
1453
  inputClass: l,
1454
- name: o = "",
1454
+ name: i = "",
1455
1455
  placeholder: r = "",
1456
- props: i = {},
1456
+ props: o = {},
1457
1457
  styles: u = null,
1458
1458
  type: m = "text",
1459
1459
  value: H,
@@ -1478,7 +1478,7 @@ const W = {
1478
1478
  {
1479
1479
  placeholder: r,
1480
1480
  id: s,
1481
- name: o,
1481
+ name: i,
1482
1482
  type: m,
1483
1483
  value: H,
1484
1484
  autoComplete: "off",
@@ -1489,10 +1489,10 @@ const W = {
1489
1489
  {
1490
1490
  "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
1491
1491
  },
1492
- i.inputClass ?? "",
1492
+ o.inputClass ?? "",
1493
1493
  l
1494
1494
  ),
1495
- ...i
1495
+ ...o
1496
1496
  }
1497
1497
  ),
1498
1498
  e && /* @__PURE__ */ c(
@@ -1544,7 +1544,7 @@ const W = {
1544
1544
  titleClass: s,
1545
1545
  uppercase: l = !0
1546
1546
  }) => {
1547
- const o = a || /* @__PURE__ */ g(S, { children: [
1547
+ const i = a || /* @__PURE__ */ g(S, { children: [
1548
1548
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1549
1549
  " ",
1550
1550
  /* @__PURE__ */ c(
@@ -1570,7 +1570,7 @@ const W = {
1570
1570
  }),
1571
1571
  children: [
1572
1572
  /* @__PURE__ */ c("h2", { id: "contact-title", className: p("mb-4", s), children: n }),
1573
- /* @__PURE__ */ c("p", { className: "contact-form__msg", children: o }),
1573
+ /* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
1574
1574
  /* @__PURE__ */ g(
1575
1575
  "div",
1576
1576
  {
@@ -1641,9 +1641,9 @@ const W = {
1641
1641
  footerClass: n,
1642
1642
  footerContent: s,
1643
1643
  headerContent: l,
1644
- headerClass: o,
1644
+ headerClass: i,
1645
1645
  list: r = !1,
1646
- props: i = {},
1646
+ props: o = {},
1647
1647
  variation: u = "primary"
1648
1648
  }) => {
1649
1649
  const m = r ? "ul" : "div";
@@ -1656,9 +1656,9 @@ const W = {
1656
1656
  `content-card--${u}`,
1657
1657
  t
1658
1658
  ),
1659
- ...i,
1659
+ ...o,
1660
1660
  children: [
1661
- l && /* @__PURE__ */ c("div", { className: p("content-card__header", o), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
1661
+ l && /* @__PURE__ */ c("div", { className: p("content-card__header", i), children: typeof l == "string" ? /* @__PURE__ */ c("h3", { children: l }) : l }),
1662
1662
  /* @__PURE__ */ c(
1663
1663
  m,
1664
1664
  {
@@ -1679,9 +1679,9 @@ const W = {
1679
1679
  label: n,
1680
1680
  labelClass: s,
1681
1681
  props: l = {},
1682
- rowGap: o = 1,
1682
+ rowGap: i = 1,
1683
1683
  value: r,
1684
- valueClass: i,
1684
+ valueClass: o,
1685
1685
  wrap: u = !1
1686
1686
  }) => /* @__PURE__ */ g(
1687
1687
  "div",
@@ -1697,12 +1697,12 @@ const W = {
1697
1697
  ),
1698
1698
  style: {
1699
1699
  columnGap: `${t / 4}rem`,
1700
- rowGap: `${o / 4}rem`
1700
+ rowGap: `${i / 4}rem`
1701
1701
  },
1702
1702
  ...l,
1703
1703
  children: [
1704
1704
  n && /* @__PURE__ */ c("div", { className: p("item-label", s), children: n }),
1705
- r && /* @__PURE__ */ c("div", { className: p("item-value", i), children: r }),
1705
+ r && /* @__PURE__ */ c("div", { className: p("item-value", o), children: r }),
1706
1706
  d
1707
1707
  ]
1708
1708
  }
@@ -1714,7 +1714,7 @@ const W = {
1714
1714
  props: n = {},
1715
1715
  title: s,
1716
1716
  titleClass: l,
1717
- titleId: o
1717
+ titleId: i
1718
1718
  }) => /* @__PURE__ */ g(
1719
1719
  "section",
1720
1720
  {
@@ -1728,7 +1728,7 @@ const W = {
1728
1728
  ),
1729
1729
  ...n,
1730
1730
  children: [
1731
- s && /* @__PURE__ */ c("h2", { className: p("spacer-title", l), id: o, children: s }),
1731
+ s && /* @__PURE__ */ c("h2", { className: p("spacer-title", l), id: i, children: s }),
1732
1732
  e
1733
1733
  ]
1734
1734
  }
@@ -2057,19 +2057,19 @@ const W = {
2057
2057
  sizeProps: n = null,
2058
2058
  sizes: s,
2059
2059
  weights: l,
2060
- weightProps: o = null
2060
+ weightProps: i = null
2061
2061
  }) => {
2062
2062
  const r = {};
2063
- Object.entries(s).forEach(([i, u]) => {
2063
+ Object.entries(s).forEach(([o, u]) => {
2064
2064
  const m = {
2065
2065
  "font-size": u,
2066
2066
  ...a
2067
- }, H = `.${e(`${t}-${i}`)}`, V = n ? n({ sizeKey: i, sizeValue: u }) : {};
2067
+ }, H = `.${e(`${t}-${o}`)}`, V = n ? n({ sizeKey: o, sizeValue: u }) : {};
2068
2068
  r[H] = {
2069
2069
  ...m,
2070
2070
  ...V
2071
2071
  }, Object.entries(l).forEach(([f, M]) => {
2072
- const A = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: M }) : {};
2072
+ const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: M }) : {};
2073
2073
  r[A] = {
2074
2074
  ...m,
2075
2075
  "font-weight": M,
@@ -2157,7 +2157,7 @@ const W = {
2157
2157
  4: "1.25rem",
2158
2158
  5: "1.125rem",
2159
2159
  6: "1rem"
2160
- }, o = {
2160
+ }, i = {
2161
2161
  1: "0.938rem",
2162
2162
  "1.5": "0.875rem",
2163
2163
  2: "0.813rem",
@@ -2179,7 +2179,7 @@ const W = {
2179
2179
  addUtilities: d,
2180
2180
  e: a,
2181
2181
  classPrefix: "text-body",
2182
- sizes: o,
2182
+ sizes: i,
2183
2183
  weights: s
2184
2184
  }), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
2185
2185
  }
@@ -2217,10 +2217,10 @@ function o2(d, e = []) {
2217
2217
  }
2218
2218
  function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2219
2219
  let s = !0;
2220
- for (const [l, o] of t.entries()) {
2221
- const r = e.querySelector(`[name="${l}"]`), i = a[l], u = [];
2222
- i.forEach((m) => {
2223
- m.isValid(o) || u.push(m.message);
2220
+ for (const [l, i] of t.entries()) {
2221
+ const r = e.querySelector(`[name="${l}"]`), o = a[l], u = [];
2222
+ o.forEach((m) => {
2223
+ m.isValid(i) || u.push(m.message);
2224
2224
  }), u.length ? (s = !1, r.classList.add("field-error"), d && d({ isValid: s, field: r, validations: a })) : (r.classList.remove("field-error"), d && d({ isValid: !0, field: r, validations: a })), n && (r == null || r.addEventListener("input", (m) => {
2225
2225
  m.preventDefault(), r.classList.contains("field-error") && r.classList.remove("field-error");
2226
2226
  }));
@@ -2280,12 +2280,12 @@ class h2 {
2280
2280
  (r) => r.isIntersecting === !0
2281
2281
  );
2282
2282
  s && l ? t.disconnect() : (a.disableBtns = !1, e.forEach((r) => {
2283
- const i = [...a.slides].indexOf(r.target);
2284
- 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(i) && (a.entriesIntersected.push(i), a.activeIndex = i, o(r));
2283
+ const o = [...a.slides].indexOf(r.target);
2284
+ 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(o) && (a.entriesIntersected.push(o), a.activeIndex = o, i(r));
2285
2285
  }));
2286
- function o(r) {
2287
- var i;
2288
- 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] && ((i = a.observer) == null || i.unobserve(r.target));
2286
+ function i(r) {
2287
+ var o;
2288
+ 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] && ((o = a.observer) == null || o.unobserve(r.target));
2289
2289
  }
2290
2290
  }
2291
2291
  btnListeners(e) {
@@ -2312,8 +2312,8 @@ class h2 {
2312
2312
  ), e.nextBtn = e.container.parentElement.querySelector(
2313
2313
  `#btn-right-${a}`
2314
2314
  );
2315
- const o = t.map((i) => n(i)).join(""), r = document.createElement("div");
2316
- r.innerHTML = `${s}${o}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
2315
+ const i = t.map((o) => n(o)).join(""), r = document.createElement("div");
2316
+ r.innerHTML = `${s}${i}${l}`, e.container.replaceChildren(...r.children), e.container.parentElement.classList.add("loaded");
2317
2317
  }
2318
2318
  showHideBtns(e, t, a) {
2319
2319
  if (a === "showPrevBtn" || a === "showNextBtn") {
@@ -2325,9 +2325,9 @@ class h2 {
2325
2325
  }
2326
2326
  class C {
2327
2327
  static calcCrow(e, t, a, n) {
2328
- const l = C.toRad(a - e), o = C.toRad(n - t);
2328
+ const l = C.toRad(a - e), i = C.toRad(n - t);
2329
2329
  e = C.toRad(e), a = C.toRad(a);
2330
- const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
2330
+ const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
2331
2331
  return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
2332
2332
  }
2333
2333
  static cleanupAddress(e) {
@@ -2356,22 +2356,22 @@ class C {
2356
2356
  static async createData(e, t = null, a = !0, n = {}) {
2357
2357
  if (!t)
2358
2358
  return null;
2359
- const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), o = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2359
+ const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2360
2360
  try {
2361
2361
  const r = await fetch(e + s, {
2362
2362
  method: "POST",
2363
2363
  body: l === "null" ? null : l,
2364
2364
  headers: {
2365
- website: o
2365
+ website: i
2366
2366
  },
2367
2367
  ...n
2368
- }), i = r.headers.get("miss-session-id"), u = r.headers.get("client-retry") === "true";
2369
- return console.log({ missSessionId: i, clientRetry: u }), u === !0 && i ? await this.createData2(
2368
+ }), o = r.headers.get("miss-session-id"), u = r.headers.get("client-retry") === "true";
2369
+ return await this.createDataReturn(r), u === !0 && o ? await this.createData2(
2370
2370
  e,
2371
2371
  t,
2372
2372
  a,
2373
2373
  n,
2374
- i
2374
+ o
2375
2375
  ) : await this.createDataReturn(r);
2376
2376
  } catch (r) {
2377
2377
  console.error("createData", r);
@@ -2381,19 +2381,19 @@ class C {
2381
2381
  static async createData2(e, t = null, a = !0, n = {}, s = null) {
2382
2382
  if (!t)
2383
2383
  return null;
2384
- const l = await this.createDataGetExtra({ useExtra: a, missSessionId: s }), o = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2384
+ const l = await this.createDataGetExtra({ useExtra: a, missSessionId: s }), i = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2385
2385
  try {
2386
- const i = await fetch(e + l, {
2386
+ const o = await fetch(e + l, {
2387
2387
  method: "POST",
2388
- body: o === "null" ? null : o,
2388
+ body: i === "null" ? null : i,
2389
2389
  headers: {
2390
2390
  website: r
2391
2391
  },
2392
2392
  ...n
2393
2393
  });
2394
- return await this.createDataReturn(i);
2395
- } catch (i) {
2396
- console.error("createData", i);
2394
+ return await this.createDataReturn(o);
2395
+ } catch (o) {
2396
+ console.error("createData", o);
2397
2397
  }
2398
2398
  return null;
2399
2399
  }
@@ -2465,15 +2465,15 @@ class C {
2465
2465
  });
2466
2466
  }
2467
2467
  static async fetchData(e, t = !1, a = !0) {
2468
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2468
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2469
2469
  try {
2470
- const r = await fetch(o, { method: "GET" });
2470
+ const r = await fetch(i, { method: "GET" });
2471
2471
  if (t === !0) {
2472
2472
  const u = await r.text();
2473
2473
  return u ? u.replace("__next", "") : null;
2474
2474
  }
2475
- const i = r.headers.get("content-type");
2476
- return i && i.indexOf("application/json") !== -1 ? r.json() : null;
2475
+ const o = r.headers.get("content-type");
2476
+ return o && o.indexOf("application/json") !== -1 ? r.json() : null;
2477
2477
  } catch (r) {
2478
2478
  console.error("fetchData", r, e);
2479
2479
  }
@@ -2503,11 +2503,11 @@ class C {
2503
2503
  swLng: 0
2504
2504
  };
2505
2505
  const n = e.getBounds();
2506
- let s = n.getSouth(), l = n.getEast(), o = n.getNorth(), r = n.getWest();
2507
- return a && (s = s - a, l = l + a, o = o + a, r = r - a), t && (s = s.toFixed(t), l = l.toFixed(t), o = o.toFixed(t), r = r.toFixed(t)), {
2506
+ let s = n.getSouth(), l = n.getEast(), i = n.getNorth(), r = n.getWest();
2507
+ return a && (s = s - a, l = l + a, i = i + a, r = r - a), t && (s = s.toFixed(t), l = l.toFixed(t), i = i.toFixed(t), r = r.toFixed(t)), {
2508
2508
  swLat: s,
2509
2509
  neLng: l,
2510
- neLat: o,
2510
+ neLat: i,
2511
2511
  swLng: r
2512
2512
  };
2513
2513
  }
@@ -2545,24 +2545,24 @@ class C {
2545
2545
  userAgent: n = null,
2546
2546
  userAgentData: s = null,
2547
2547
  platform: l = null
2548
- } = navigator || {}, o = (s == null ? void 0 : s.platform) ?? l, r = {
2548
+ } = navigator || {}, i = (s == null ? void 0 : s.platform) ?? l, r = {
2549
2549
  tolken: null,
2550
2550
  oldSessionId: null,
2551
2551
  ip: null,
2552
2552
  userAgent: n,
2553
- platform: o
2553
+ platform: i
2554
2554
  };
2555
2555
  if (typeof window.localStorage > "u")
2556
2556
  return r;
2557
- const i = "headerSessionId2", u = localStorage.getItem(i);
2557
+ const o = "headerSessionId2", u = localStorage.getItem(o);
2558
2558
  if (u && !t) {
2559
2559
  const H = JSON.parse(u), V = (/* @__PURE__ */ new Date()).getTime();
2560
- return H.expire - V < 0 && localStorage.removeItem(i), {
2560
+ return H.expire - V < 0 && localStorage.removeItem(o), {
2561
2561
  tolken: H.tolken,
2562
2562
  oldSessionId: H.oldSessionId,
2563
2563
  ip: H.ip,
2564
2564
  userAgent: n,
2565
- platform: o
2565
+ platform: i
2566
2566
  };
2567
2567
  }
2568
2568
  if ((m = window == null ? void 0 : window.options) != null && m.isPdf)
@@ -2574,14 +2574,14 @@ class C {
2574
2574
  }
2575
2575
  })).json(), f = (V == null ? void 0 : V.sessionId) ?? "noSessionId", M = (V == null ? void 0 : V.oldSessionId) ?? "noOldSessionId", A = V["x-forwarded-for"] ?? null, h = A ? A.split(/, /)[0] : null, v = e * 1e3;
2576
2576
  return localStorage.setItem(
2577
- i,
2577
+ o,
2578
2578
  JSON.stringify({
2579
2579
  tolken: f,
2580
2580
  oldSessionId: M,
2581
2581
  ip: h,
2582
2582
  expire: (/* @__PURE__ */ new Date()).getTime() + v
2583
2583
  })
2584
- ), { tolken: f, oldSessionId: M, ip: h, userAgent: n, platform: o };
2584
+ ), { tolken: f, oldSessionId: M, ip: h, userAgent: n, platform: i };
2585
2585
  } catch (H) {
2586
2586
  console.error("getHeaders", H);
2587
2587
  }
@@ -2598,11 +2598,11 @@ class C {
2598
2598
  return await C.fetchData("/api/client?query=" + l);
2599
2599
  }
2600
2600
  static getReportUrl(e, t = null) {
2601
- var r, i, u;
2602
- const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
2601
+ var r, o, u;
2602
+ const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
2603
2603
  t = t || ((e == null ? void 0 : e.id) ?? null);
2604
- const o = [l, "-piq", t].filter((m) => m).join("");
2605
- return "/" + [a, n, s].filter((m) => m).map((m) => C.toSlug(m)).join("/") + "/" + o;
2604
+ const i = [l, "-piq", t].filter((m) => m).join("");
2605
+ return "/" + [a, n, s].filter((m) => m).map((m) => C.toSlug(m)).join("/") + "/" + i;
2606
2606
  }
2607
2607
  static async getSearchValue(e = "recsSearchValue") {
2608
2608
  try {
@@ -2769,10 +2769,10 @@ class C {
2769
2769
  const n = this;
2770
2770
  L.GridLayer.GridDebug = L.GridLayer.extend({
2771
2771
  createTile: function(s, l) {
2772
- const o = document.createElement("div");
2772
+ const i = document.createElement("div");
2773
2773
  return setTimeout(() => {
2774
- l(null, o);
2775
- const { se: r, nw: i } = n.getGridBounds({
2774
+ l(null, i);
2775
+ const { se: r, nw: o } = n.getGridBounds({
2776
2776
  map: e,
2777
2777
  tileSize: this.getTileSize(),
2778
2778
  coords: s
@@ -2780,12 +2780,12 @@ class C {
2780
2780
  t({
2781
2781
  swLat: r.lat,
2782
2782
  neLng: r.lng,
2783
- neLat: i.lat,
2784
- swLng: i.lng,
2783
+ neLat: o.lat,
2784
+ swLng: o.lng,
2785
2785
  coords: s,
2786
2786
  key: s.z + "-" + s.x + "-" + s.y
2787
2787
  });
2788
- }, a), o;
2788
+ }, a), i;
2789
2789
  }
2790
2790
  }), L.gridLayer.gridDebug = function(s) {
2791
2791
  return new L.GridLayer.GridDebug(s);
@@ -2810,9 +2810,9 @@ class C {
2810
2810
  onOpen: n = null,
2811
2811
  onTargetClick: s = null,
2812
2812
  selfClose: l = !1,
2813
- target: o = null
2813
+ target: i = null
2814
2814
  }) {
2815
- const r = o ? document.querySelectorAll(o) : [], i = document.getElementById(`${t}-dialog`), u = l ? i == null ? void 0 : i.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), m = [
2815
+ const r = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), u = l ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), m = [
2816
2816
  "closing",
2817
2817
  "closed",
2818
2818
  "opening",
@@ -2840,7 +2840,7 @@ class C {
2840
2840
  });
2841
2841
  });
2842
2842
  });
2843
- i && (H.observe(i, {
2843
+ o && (H.observe(o, {
2844
2844
  attributes: !0
2845
2845
  }), V.observe(document.body, {
2846
2846
  attributes: !1,
@@ -2850,29 +2850,29 @@ class C {
2850
2850
  const f = async ({ target: h }) => {
2851
2851
  h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(m.closed);
2852
2852
  }, M = async ({ target: h }) => {
2853
- (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside), i == null || i.close("outside"));
2853
+ (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside), o == null || o.close("outside"));
2854
2854
  }, A = (h) => Promise.allSettled(
2855
2855
  h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
2856
2856
  );
2857
- return !e && (i == null || i.addEventListener("click", M)), i == null || i.addEventListener("close", async (h) => {
2858
- await f({ target: h.target }), a && a(h, i);
2859
- }), e && (i == null || i.addEventListener("cancel", async (h) => {
2857
+ return !e && (o == null || o.addEventListener("click", M)), o == null || o.addEventListener("close", async (h) => {
2858
+ await f({ target: h.target }), a && a(h, o);
2859
+ }), e && (o == null || o.addEventListener("cancel", async (h) => {
2860
2860
  h.key === "Escape" && h.preventDefault();
2861
- })), e && (i == null || i.addEventListener("keydown", (h) => {
2861
+ })), e && (o == null || o.addEventListener("keydown", (h) => {
2862
2862
  h.key === "Escape" && h.preventDefault();
2863
- })), n && (i == null || i.addEventListener("open", async (h) => {
2864
- n(h, i);
2863
+ })), n && (o == null || o.addEventListener("open", async (h) => {
2864
+ n(h, o);
2865
2865
  })), r == null || r.forEach((h) => {
2866
2866
  h.addEventListener("click", (v) => {
2867
- i == null || i.showModal(), s && s(v, i);
2867
+ o == null || o.showModal(), s && s(v, o);
2868
2868
  });
2869
2869
  }), u == null || u.forEach((h) => {
2870
2870
  h.addEventListener("click", async (v) => {
2871
- i == null || i.close("close");
2871
+ o == null || o.close("close");
2872
2872
  });
2873
2873
  }), {
2874
2874
  activators: r,
2875
- ref: i
2875
+ ref: o
2876
2876
  };
2877
2877
  }
2878
2878
  static hasBoundsEntry(e, t = "bounds") {
@@ -2882,8 +2882,8 @@ class C {
2882
2882
  if (!e)
2883
2883
  return;
2884
2884
  const n = (a == null ? void 0 : a.useBounding) ?? !1;
2885
- new IntersectionObserver(async (l, o) => {
2886
- n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs: o, entry: l[0], entries: l }) : l[0].isIntersecting && t({ obs: o, entry: l[0], entries: l });
2885
+ new IntersectionObserver(async (l, i) => {
2886
+ n ? (l[0].isIntersecting || l[0].boundingClientRect.y < 0) && t({ obs: i, entry: l[0], entries: l }) : l[0].isIntersecting && t({ obs: i, entry: l[0], entries: l });
2887
2887
  }, a).observe(e);
2888
2888
  }
2889
2889
  static injectLink({ href: e, id: t }) {
@@ -2892,10 +2892,10 @@ class C {
2892
2892
  }
2893
2893
  static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
2894
2894
  return new Promise(function(s, l) {
2895
- let o = document.getElementById(t);
2896
- if (t && o && o.dataset.loaded === "true")
2895
+ let i = document.getElementById(t);
2896
+ if (t && i && i.dataset.loaded === "true")
2897
2897
  return s({ alreadyLoaded: !0, id: t });
2898
- o || (o = document.createElement("script"), o.src = e, o.dataset.loaded = "false", t && (o.id = t), o.type = n ? "module" : "text/javascript", o.async = a, document.body.appendChild(o), o.onload = () => (o.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), o.onerror = () => l(!1));
2898
+ 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 = () => l(!1));
2899
2899
  });
2900
2900
  }
2901
2901
  static isMobile({ selector: e = null, width: t = 640 } = {}) {
@@ -3011,16 +3011,16 @@ class C {
3011
3011
  middle: n = null,
3012
3012
  last: s = null,
3013
3013
  min: l = null,
3014
- max: o = null,
3014
+ max: i = null,
3015
3015
  city: r = null,
3016
- state: i = null,
3016
+ state: o = null,
3017
3017
  vin: u = null,
3018
3018
  license: m = null,
3019
3019
  token: H = null,
3020
3020
  phone: V = null
3021
- } = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", A = o && o !== "" && l !== "99";
3021
+ } = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", A = i && i !== "" && l !== "99";
3022
3022
  let h = [];
3023
- return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), M && A ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (M && h.push("min=" + l), A && h.push("max=" + o)), V && V !== "" && h.push("phone=" + V), r && r !== "" && h.push("city=" + r), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), H && H !== "" && h.push("token=" + H), h.join("&");
3023
+ return t && t !== "" && h.push("name=" + t), f || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), M && A ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (M && h.push("min=" + l), A && h.push("max=" + i)), V && V !== "" && h.push("phone=" + V), r && r !== "" && h.push("city=" + r), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), H && H !== "" && h.push("token=" + H), h.join("&");
3024
3024
  }
3025
3025
  static padTo2Digits(e) {
3026
3026
  return e.toString().padStart(2, "0");
@@ -3035,9 +3035,9 @@ class C {
3035
3035
  useCitySearch: n = !1,
3036
3036
  useCityStateSearch: s = !1,
3037
3037
  useSearch: l = !1,
3038
- useLocation: o = !0,
3038
+ useLocation: i = !0,
3039
3039
  state: r = "",
3040
- useGoogle: i = !1,
3040
+ useGoogle: o = !1,
3041
3041
  useGoogleOverride: u = !1,
3042
3042
  useAmazonOverride: m = !1,
3043
3043
  isSandboxAccount: H = !1,
@@ -3048,8 +3048,8 @@ class C {
3048
3048
  "useSearch=" + l,
3049
3049
  "useCitySearch=" + n,
3050
3050
  "useCityStateSearch=" + s,
3051
- "useLocation=" + o,
3052
- "useGoogle=" + i,
3051
+ "useLocation=" + i,
3052
+ "useGoogle=" + o,
3053
3053
  "useGoogleOverride=" + u,
3054
3054
  "useAmazonOverride=" + m,
3055
3055
  "isSandboxAccount=" + H,
@@ -3104,8 +3104,8 @@ class C {
3104
3104
  if (a && !n) {
3105
3105
  const s = a.split(" "), l = s[s.length - 1];
3106
3106
  if (l.length) {
3107
- const o = this.searchInStates(l);
3108
- o && (n = o.short, a = s.slice(0, -1).join(" "));
3107
+ const i = this.searchInStates(l);
3108
+ i && (n = i.short, a = s.slice(0, -1).join(" "));
3109
3109
  }
3110
3110
  }
3111
3111
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
@@ -3118,9 +3118,9 @@ class C {
3118
3118
  static async setRandomFileNameVersion(e, t = "scripts") {
3119
3119
  const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
3120
3120
  try {
3121
- const l = e.map(({ fileName: i, initFunctionName: u }) => import(`${n}${s}${i}?v=${a}`)), o = await Promise.all(l), r = [];
3122
- o.forEach((i, u) => {
3123
- i && typeof i[e[u].initFunctionName] == "function" ? r.push(i[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
3121
+ const l = e.map(({ fileName: o, initFunctionName: u }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(l), r = [];
3122
+ i.forEach((o, u) => {
3123
+ o && typeof o[e[u].initFunctionName] == "function" ? r.push(o[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
3124
3124
  }), r.length > 0 && await Promise.all(r);
3125
3125
  } catch (l) {
3126
3126
  console.error("Failed to load one or more search modules:", l);