@vehiclehistory/property-lib 0.0.44 → 0.0.45

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
@@ -480,11 +480,11 @@ const j = {
480
480
  size: a = "medium",
481
481
  viewBox: n = "0 0 20 20"
482
482
  }) => {
483
- const s = R(t), [r, l] = N(d), [i, c] = N(s);
483
+ const s = R(t), [r, i] = N(d), [l, c] = N(s);
484
484
  return z(() => {
485
485
  c(s);
486
486
  }, [s]), z(() => {
487
- l(d);
487
+ i(d);
488
488
  }, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
489
489
  "svg",
490
490
  {
@@ -494,7 +494,7 @@ const j = {
494
494
  role: "presentation",
495
495
  viewBox: n,
496
496
  dangerouslySetInnerHTML: {
497
- __html: i && i.path
497
+ __html: l && l.path
498
498
  }
499
499
  }
500
500
  );
@@ -507,7 +507,7 @@ const j = {
507
507
  unmount: s = !0,
508
508
  isOpen: r = !1
509
509
  }) => {
510
- const [l, i] = N(r);
510
+ const [i, l] = N(r);
511
511
  return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ g(k, { children: [
512
512
  /* @__PURE__ */ g(
513
513
  "button",
@@ -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": l
520
+ "acc-o": i
521
521
  }
522
522
  ),
523
523
  title: n,
524
524
  onClick: () => {
525
- i(!l), t && t(!l);
525
+ l(!i), t && t(!i);
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 && l && /* @__PURE__ */ o(
540
+ s && i && /* @__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: !l }
556
+ { hidden: !i }
557
557
  ),
558
558
  children: d
559
559
  }
@@ -568,7 +568,7 @@ const j = {
568
568
  props: s = {},
569
569
  type: r = "error"
570
570
  }) => {
571
- const l = {
571
+ const i = {
572
572
  error: {
573
573
  icon: "error",
574
574
  iconColor: "text-red-500",
@@ -589,7 +589,7 @@ const j = {
589
589
  iconColor: "text-yellow-500",
590
590
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
591
591
  }
592
- }, { icon: i, iconColor: c, styles: h } = l[r];
592
+ }, { icon: l, iconColor: c, styles: h } = i[r];
593
593
  return /* @__PURE__ */ o(
594
594
  "div",
595
595
  {
@@ -604,7 +604,7 @@ const j = {
604
604
  /* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
605
605
  y,
606
606
  {
607
- name: i,
607
+ name: l,
608
608
  viewBox: "0 0 24 24",
609
609
  className: c,
610
610
  size: "xSmall"
@@ -625,8 +625,8 @@ const j = {
625
625
  id: n = "",
626
626
  type: s,
627
627
  floatingLabel: r = "",
628
- inputClass: l = "",
629
- leftIcon: i = "homeSearch",
628
+ inputClass: i = "",
629
+ leftIcon: l = "homeSearch",
630
630
  mobileBackdrop: c = !1,
631
631
  showSearchIcon: h = !0,
632
632
  options: p = [],
@@ -659,7 +659,7 @@ const j = {
659
659
  y,
660
660
  {
661
661
  className: "home-search select-none text-gray-500",
662
- name: i,
662
+ name: l,
663
663
  size: H === "xLarge" ? "small" : "xSmall",
664
664
  viewBox: "0 0 24 24"
665
665
  }
@@ -690,7 +690,7 @@ const j = {
690
690
  "px-5 h-[60px] sm:!text-base": H === "xLarge",
691
691
  peer: r
692
692
  },
693
- l
693
+ i
694
694
  ),
695
695
  required: e,
696
696
  autoComplete: "off",
@@ -810,8 +810,8 @@ const j = {
810
810
  className: n = "",
811
811
  disabled: s = !1,
812
812
  href: r,
813
- props: l = {},
814
- rightIcon: i,
813
+ props: i = {},
814
+ rightIcon: l,
815
815
  rightIconProps: c = {},
816
816
  rounded: h = !1,
817
817
  size: p = "md",
@@ -839,7 +839,7 @@ const j = {
839
839
  ),
840
840
  disabled: s,
841
841
  href: r,
842
- ...l,
842
+ ...i,
843
843
  children: [
844
844
  e && /* @__PURE__ */ o(
845
845
  y,
@@ -851,10 +851,10 @@ const j = {
851
851
  }
852
852
  ),
853
853
  a,
854
- i && /* @__PURE__ */ o(
854
+ l && /* @__PURE__ */ o(
855
855
  y,
856
856
  {
857
- name: i,
857
+ name: l,
858
858
  size: p === "md" ? "small" : "xSmall",
859
859
  viewBox: "0 0 24 24",
860
860
  ...c
@@ -871,7 +871,7 @@ const j = {
871
871
  divider: n = !0,
872
872
  inset: s = !0,
873
873
  id: r = null,
874
- role: l = null
874
+ role: i = null
875
875
  }) => /* @__PURE__ */ o(
876
876
  "div",
877
877
  {
@@ -886,7 +886,7 @@ const j = {
886
886
  a
887
887
  ),
888
888
  id: r,
889
- role: l,
889
+ role: i,
890
890
  children: t
891
891
  }
892
892
  ), Z1 = X, _ = ({
@@ -897,8 +897,8 @@ const j = {
897
897
  inputClass: n,
898
898
  id: s = "",
899
899
  label: r = "",
900
- name: l = "",
901
- props: i = {},
900
+ name: i = "",
901
+ props: l = {},
902
902
  variation: c = "primary",
903
903
  value: h = ""
904
904
  }) => {
@@ -921,10 +921,10 @@ const j = {
921
921
  n
922
922
  ),
923
923
  id: s,
924
- name: l,
924
+ name: i,
925
925
  type: "checkbox",
926
926
  value: h,
927
- ...i
927
+ ...l
928
928
  }
929
929
  ),
930
930
  e
@@ -965,8 +965,8 @@ const j = {
965
965
  contentClass: n = "",
966
966
  dark: s = !1,
967
967
  footer: r,
968
- fullMobile: l = !0,
969
- headerClass: i = "",
968
+ fullMobile: i = !0,
969
+ headerClass: l = "",
970
970
  hideClose: c = !1,
971
971
  iconSize: h = "medium",
972
972
  preventPageScroll: p = !0,
@@ -983,7 +983,7 @@ const j = {
983
983
  className: u(
984
984
  "dialog",
985
985
  {
986
- "dialog-full-mobile": l,
986
+ "dialog-full-mobile": i,
987
987
  dark: s,
988
988
  "prevent-scroll": p
989
989
  },
@@ -1000,7 +1000,7 @@ const j = {
1000
1000
  "!pb-0 border-0 justify-end": !M,
1001
1001
  "justify-between border-b": M
1002
1002
  },
1003
- i
1003
+ l
1004
1004
  ),
1005
1005
  children: [
1006
1006
  M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: b, children: M }),
@@ -1045,8 +1045,8 @@ const j = {
1045
1045
  contentClass: n = "",
1046
1046
  onClose: s,
1047
1047
  disableOutsideClick: r = !1,
1048
- footer: l,
1049
- fullMobile: i = !0,
1048
+ footer: i,
1049
+ fullMobile: l = !0,
1050
1050
  headerClass: c = "",
1051
1051
  hideClose: h = !1,
1052
1052
  iconSize: p = "medium",
@@ -1080,7 +1080,7 @@ const j = {
1080
1080
  "dialog",
1081
1081
  {
1082
1082
  hidden: !f,
1083
- "xs-max:h-full xs-max:max-h-full": i
1083
+ "xs-max:h-full xs-max:max-h-full": l
1084
1084
  },
1085
1085
  a
1086
1086
  ),
@@ -1126,12 +1126,12 @@ const j = {
1126
1126
  children: t
1127
1127
  }
1128
1128
  ),
1129
- l && /* @__PURE__ */ o(
1129
+ i && /* @__PURE__ */ o(
1130
1130
  "footer",
1131
1131
  {
1132
1132
  id: `${e}-dialog-footer`,
1133
1133
  className: "dialog-footer flex justify-between items-center p-4 border-t",
1134
- children: l
1134
+ children: i
1135
1135
  }
1136
1136
  )
1137
1137
  ]
@@ -1155,15 +1155,15 @@ const j = {
1155
1155
  variation: n = "primary"
1156
1156
  }) => {
1157
1157
  function s({ cb: r }) {
1158
- const l = document.querySelector(".loading-bar__inner");
1159
- if (!l) return;
1160
- let i, c, h = !1;
1158
+ const i = document.querySelector(".loading-bar__inner");
1159
+ if (!i) return;
1160
+ let l, c, h = !1;
1161
1161
  function p(f) {
1162
- i === void 0 && (i = f);
1163
- const M = f - i;
1162
+ l === void 0 && (l = f);
1163
+ const M = f - l;
1164
1164
  if (c !== f) {
1165
1165
  const b = M / a * 101;
1166
- l.style.width = `${b}%`, b >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
1166
+ i.style.width = `${b}%`, b >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
1167
1167
  }
1168
1168
  M < a && (c = f, h || window.requestAnimationFrame(p));
1169
1169
  }
@@ -1207,8 +1207,8 @@ const j = {
1207
1207
  children: n,
1208
1208
  className: s = "",
1209
1209
  containerClass: r = "",
1210
- disabled: l = !1,
1211
- id: i = "",
1210
+ disabled: i = !1,
1211
+ id: l = "",
1212
1212
  trigger: c = "click"
1213
1213
  }) => /* @__PURE__ */ g(k, { children: [
1214
1214
  /* @__PURE__ */ o(
@@ -1242,7 +1242,7 @@ const j = {
1242
1242
  className: u(
1243
1243
  "popover-activator",
1244
1244
  `trigger-${c}`,
1245
- l ? "is-disabled" : "",
1245
+ i ? "is-disabled" : "",
1246
1246
  e
1247
1247
  ),
1248
1248
  ...t,
@@ -1258,7 +1258,7 @@ const j = {
1258
1258
  completed: n = 0,
1259
1259
  maxCompleted: s = 100,
1260
1260
  rounded: r = !0,
1261
- showLabel: l = !1
1261
+ showLabel: i = !1
1262
1262
  }) => {
1263
1263
  const c = ((h, p) => {
1264
1264
  if (h) {
@@ -1288,7 +1288,7 @@ const j = {
1288
1288
  t
1289
1289
  ),
1290
1290
  style: { width: `${c}%` },
1291
- children: l && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
1291
+ children: i && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
1292
1292
  }
1293
1293
  )
1294
1294
  }
@@ -1301,8 +1301,8 @@ const j = {
1301
1301
  label: n = "",
1302
1302
  name: s = "",
1303
1303
  props: r = {},
1304
- variation: l = "primary",
1305
- value: i = ""
1304
+ variation: i = "primary",
1305
+ value: l = ""
1306
1306
  }) => {
1307
1307
  const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
1308
1308
  return /* @__PURE__ */ g(
@@ -1318,13 +1318,13 @@ const j = {
1318
1318
  className: u(
1319
1319
  "form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
1320
1320
  {
1321
- "focus:ring-[#222]": l === "primary"
1321
+ "focus:ring-[#222]": i === "primary"
1322
1322
  }
1323
1323
  ),
1324
1324
  id: a,
1325
1325
  name: s,
1326
1326
  type: "radio",
1327
- value: i,
1327
+ value: l,
1328
1328
  ...r
1329
1329
  }
1330
1330
  ),
@@ -1340,15 +1340,15 @@ const j = {
1340
1340
  id: n = "",
1341
1341
  label: s = "",
1342
1342
  name: r = "",
1343
- options: l = [],
1344
- placeholder: i = "",
1343
+ options: i = [],
1344
+ placeholder: l = "",
1345
1345
  props: c = {},
1346
1346
  selectClass: h = "",
1347
1347
  styles: p = null,
1348
1348
  variation: f = "primary",
1349
1349
  value: M
1350
1350
  }) => {
1351
- const b = i ? { defaultValue: "" } : {};
1351
+ const b = l ? { defaultValue: "" } : {};
1352
1352
  return /* @__PURE__ */ g(
1353
1353
  "label",
1354
1354
  {
@@ -1370,8 +1370,8 @@ const j = {
1370
1370
  ...b,
1371
1371
  ...c,
1372
1372
  children: [
1373
- i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
1374
- l.map((H, m) => /* @__PURE__ */ o(
1373
+ l && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: l }),
1374
+ i.map((H, m) => /* @__PURE__ */ o(
1375
1375
  "option",
1376
1376
  {
1377
1377
  value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
@@ -1458,15 +1458,15 @@ const j = {
1458
1458
  id: n = "",
1459
1459
  inputClass: s = "",
1460
1460
  name: r = "",
1461
- placeholder: l = "",
1462
- props: i = {},
1461
+ placeholder: i = "",
1462
+ props: l = {},
1463
1463
  rows: c = 4,
1464
1464
  variation: h = "primary"
1465
1465
  }) => /* @__PURE__ */ g("div", { className: u("relative textarea", h, d), children: [
1466
1466
  /* @__PURE__ */ o(
1467
1467
  "textarea",
1468
1468
  {
1469
- placeholder: l,
1469
+ placeholder: i,
1470
1470
  id: n,
1471
1471
  name: r,
1472
1472
  rows: c,
@@ -1476,7 +1476,7 @@ const j = {
1476
1476
  t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
1477
1477
  s
1478
1478
  ),
1479
- ...i
1479
+ ...l
1480
1480
  }
1481
1481
  ),
1482
1482
  e && /* @__PURE__ */ o(
@@ -1503,8 +1503,8 @@ const j = {
1503
1503
  iconLeft: n = "",
1504
1504
  id: s = "",
1505
1505
  inputClass: r = "",
1506
- name: l = "",
1507
- placeholder: i = "",
1506
+ name: i = "",
1507
+ placeholder: l = "",
1508
1508
  props: c = {},
1509
1509
  styles: h = null,
1510
1510
  type: p = "text",
@@ -1528,9 +1528,9 @@ const j = {
1528
1528
  /* @__PURE__ */ o(
1529
1529
  "input",
1530
1530
  {
1531
- placeholder: i,
1531
+ placeholder: l,
1532
1532
  id: s,
1533
- name: l,
1533
+ name: i,
1534
1534
  type: p,
1535
1535
  value: f,
1536
1536
  autoComplete: "off",
@@ -1574,7 +1574,7 @@ const j = {
1574
1574
  titleClass: s,
1575
1575
  uppercase: r = !0
1576
1576
  }) => {
1577
- const l = a || /* @__PURE__ */ g(k, { children: [
1577
+ const i = a || /* @__PURE__ */ g(k, { children: [
1578
1578
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1579
1579
  " ",
1580
1580
  /* @__PURE__ */ o(
@@ -1600,7 +1600,7 @@ const j = {
1600
1600
  }),
1601
1601
  children: [
1602
1602
  /* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", s), children: n }),
1603
- /* @__PURE__ */ o("p", { className: "contact-form__msg", children: l }),
1603
+ /* @__PURE__ */ o("p", { className: "contact-form__msg", children: i }),
1604
1604
  /* @__PURE__ */ g(
1605
1605
  "div",
1606
1606
  {
@@ -1671,12 +1671,12 @@ const j = {
1671
1671
  footerClass: n,
1672
1672
  footerContent: s,
1673
1673
  headerContent: r,
1674
- headerClass: l,
1675
- list: i = !1,
1674
+ headerClass: i,
1675
+ list: l = !1,
1676
1676
  props: c = {},
1677
1677
  variation: h = "primary"
1678
1678
  }) => {
1679
- const p = i ? "ul" : "div";
1679
+ const p = l ? "ul" : "div";
1680
1680
  return /* @__PURE__ */ g(
1681
1681
  "div",
1682
1682
  {
@@ -1688,12 +1688,12 @@ const j = {
1688
1688
  ),
1689
1689
  ...c,
1690
1690
  children: [
1691
- r && /* @__PURE__ */ o("div", { className: u("content-card__header", l), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1691
+ r && /* @__PURE__ */ o("div", { className: u("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1692
1692
  /* @__PURE__ */ o(
1693
1693
  p,
1694
1694
  {
1695
1695
  className: u("content-card__content", a),
1696
- role: i ? "list" : null,
1696
+ role: l ? "list" : null,
1697
1697
  children: e
1698
1698
  }
1699
1699
  ),
@@ -1709,8 +1709,8 @@ const j = {
1709
1709
  label: n,
1710
1710
  labelClass: s,
1711
1711
  props: r = {},
1712
- rowGap: l = 1,
1713
- value: i,
1712
+ rowGap: i = 1,
1713
+ value: l,
1714
1714
  valueClass: c,
1715
1715
  wrap: h = !1
1716
1716
  }) => /* @__PURE__ */ g(
@@ -1727,12 +1727,12 @@ const j = {
1727
1727
  ),
1728
1728
  style: {
1729
1729
  columnGap: `${t / 4}rem`,
1730
- rowGap: `${l / 4}rem`
1730
+ rowGap: `${i / 4}rem`
1731
1731
  },
1732
1732
  ...r,
1733
1733
  children: [
1734
1734
  n && /* @__PURE__ */ o("div", { className: u("item-label", s), children: n }),
1735
- i && /* @__PURE__ */ o("div", { className: u("item-value", c), children: i }),
1735
+ l && /* @__PURE__ */ o("div", { className: u("item-value", c), children: l }),
1736
1736
  d
1737
1737
  ]
1738
1738
  }
@@ -1744,7 +1744,7 @@ const j = {
1744
1744
  props: n = {},
1745
1745
  title: s,
1746
1746
  titleClass: r,
1747
- titleId: l
1747
+ titleId: i
1748
1748
  }) => /* @__PURE__ */ g(
1749
1749
  "section",
1750
1750
  {
@@ -1758,7 +1758,7 @@ const j = {
1758
1758
  ),
1759
1759
  ...n,
1760
1760
  children: [
1761
- s && /* @__PURE__ */ o("h2", { className: u("spacer-title", r), id: l, children: s }),
1761
+ s && /* @__PURE__ */ o("h2", { className: u("spacer-title", r), id: i, children: s }),
1762
1762
  e
1763
1763
  ]
1764
1764
  }
@@ -2018,8 +2018,8 @@ const j = {
2018
2018
  }
2019
2019
  },
2020
2020
  plugins: [
2021
- ({ addComponents: d, addUtilities: e, matchUtilities: t, theme: a, e: n }) => {
2022
- const s = {}, r = ["2", "5"], l = {
2021
+ ({ addUtilities: d, matchUtilities: e, theme: t, e: a }) => {
2022
+ const n = {}, s = ["2", "5"], r = {
2023
2023
  light: "300",
2024
2024
  normal: "400",
2025
2025
  medium: "500",
@@ -2032,46 +2032,32 @@ const j = {
2032
2032
  3: "1.25rem",
2033
2033
  4: "1.125rem",
2034
2034
  5: "1rem"
2035
- }).forEach(([c, h]) => {
2036
- const p = {
2037
- "font-size": h,
2035
+ }).forEach(([l, c]) => {
2036
+ const h = {
2037
+ "font-size": c,
2038
2038
  "line-height": "1.5"
2039
- }, f = `.${n(`header-${c}`)}`;
2040
- s[f] = {
2041
- ...p,
2042
- "font-weight": r.includes(c) ? l.semibold : l.bold
2043
- }, Object.entries(l).forEach(([M, b]) => {
2044
- const H = `.${n(`header-${c}-${M}`)}`;
2045
- s[H] = {
2046
- ...p,
2047
- "font-weight": b
2039
+ }, p = `.${a(`header-${l}`)}`;
2040
+ n[p] = {
2041
+ ...h,
2042
+ "font-weight": s.includes(l) ? r.semibold : r.bold
2043
+ }, Object.entries(r).forEach(([f, M]) => {
2044
+ const b = `.${a(`header-${l}-${f}`)}`;
2045
+ n[b] = {
2046
+ ...h,
2047
+ "font-weight": M
2048
2048
  };
2049
2049
  });
2050
- }), d({
2051
- ".Autocomplete": {
2052
- position: "relative",
2053
- "&:has(.animate-listbox-open) .search-icon-left": {
2054
- cursor: "pointer"
2055
- }
2056
- },
2057
- ".Stars": {
2058
- "&::before": {
2059
- background: "linear-gradient(90deg, #ff8945 var(--value), #d1d5db var(--value))",
2060
- "-webkit-background-clip": "text",
2061
- "-webkit-text-fill-color": "transparent"
2062
- }
2063
- }
2064
- }), e(s), t(
2050
+ }), d(n), e(
2065
2051
  {
2066
- aspect: (c) => ({
2052
+ aspect: (l) => ({
2067
2053
  "@supports (aspect-ratio: 1 / 1)": {
2068
- aspectRatio: c
2054
+ aspectRatio: l
2069
2055
  },
2070
2056
  "@supports not (aspect-ratio: 1 / 1)": {
2071
2057
  "&::before": {
2072
2058
  content: '""',
2073
2059
  float: "left",
2074
- paddingTop: `calc(100% / (${c}))`
2060
+ paddingTop: `calc(100% / (${l}))`
2075
2061
  },
2076
2062
  "&::after": {
2077
2063
  clear: "left",
@@ -2081,23 +2067,23 @@ const j = {
2081
2067
  }
2082
2068
  })
2083
2069
  },
2084
- { values: a("aspectRatio") }
2085
- ), t(
2070
+ { values: t("aspectRatio") }
2071
+ ), e(
2086
2072
  {
2087
- "animation-delay": (c) => ({
2088
- "animation-delay": c
2073
+ "animation-delay": (l) => ({
2074
+ "animation-delay": l
2089
2075
  })
2090
2076
  },
2091
2077
  {
2092
- values: a("transitionDelay")
2078
+ values: t("transitionDelay")
2093
2079
  }
2094
- ), t({
2095
- "max-block": (c) => ({
2096
- "max-block-size": c
2080
+ ), e({
2081
+ "max-block": (l) => ({
2082
+ "max-block-size": l
2097
2083
  })
2098
- }), t({
2099
- "max-inline": (c) => ({
2100
- "max-inline-size": c
2084
+ }), e({
2085
+ "max-inline": (l) => ({
2086
+ "max-inline-size": l
2101
2087
  })
2102
2088
  });
2103
2089
  }
@@ -2187,12 +2173,12 @@ function t2(d, e = []) {
2187
2173
  }
2188
2174
  function a2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2189
2175
  let s = !0;
2190
- for (const [r, l] of t.entries()) {
2191
- const i = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
2176
+ for (const [r, i] of t.entries()) {
2177
+ const l = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
2192
2178
  c.forEach((p) => {
2193
- p.isValid(l) || h.push(p.message);
2194
- }), h.length ? (s = !1, i.classList.add("field-error"), d && d({ isValid: s, field: i, validations: a })) : (i.classList.remove("field-error"), d && d({ isValid: !0, field: i, validations: a })), n && (i == null || i.addEventListener("input", (p) => {
2195
- p.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
2179
+ p.isValid(i) || h.push(p.message);
2180
+ }), 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
+ p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
2196
2182
  }));
2197
2183
  }
2198
2184
  return s;
@@ -2246,16 +2232,16 @@ class s2 {
2246
2232
  )), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
2247
2233
  }
2248
2234
  handleIntersect(e, t, a) {
2249
- const n = e.filter((i) => i.isIntersecting), s = n.length === a.slides.length, r = n.every(
2250
- (i) => i.isIntersecting === !0
2235
+ const n = e.filter((l) => l.isIntersecting), s = n.length === a.slides.length, r = n.every(
2236
+ (l) => l.isIntersecting === !0
2251
2237
  );
2252
- s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
2253
- const c = [...a.slides].indexOf(i.target);
2254
- 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, l(i));
2238
+ s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((l) => {
2239
+ 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));
2255
2241
  }));
2256
- function l(i) {
2242
+ function i(l) {
2257
2243
  var c;
2258
- 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));
2244
+ 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));
2259
2245
  }
2260
2246
  }
2261
2247
  btnListeners(e) {
@@ -2282,8 +2268,8 @@ class s2 {
2282
2268
  ), e.nextBtn = e.container.parentElement.querySelector(
2283
2269
  `#btn-right-${a}`
2284
2270
  );
2285
- const l = t.map((c) => n(c)).join(""), i = document.createElement("div");
2286
- i.innerHTML = `${s}${l}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
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");
2287
2273
  }
2288
2274
  showHideBtns(e, t, a) {
2289
2275
  if (a === "showPrevBtn" || a === "showNextBtn") {
@@ -2295,10 +2281,10 @@ class s2 {
2295
2281
  }
2296
2282
  class C {
2297
2283
  static calcCrow(e, t, a, n) {
2298
- const r = C.toRad(a - e), l = C.toRad(n - t);
2284
+ const r = C.toRad(a - e), i = C.toRad(n - t);
2299
2285
  e = C.toRad(e), a = C.toRad(a);
2300
- const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(l / 2) * Math.sin(l / 2) * Math.cos(e) * Math.cos(a);
2301
- return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
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
+ return 6371 * (2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)));
2302
2288
  }
2303
2289
  static cleanupAddress(e) {
2304
2290
  return e.split(" ").map((a) => a.split("-")[0]).join(" ").trim();
@@ -2326,11 +2312,11 @@ class C {
2326
2312
  static async createData(e, t = null, a = !0) {
2327
2313
  if (window.options.isBot || !t)
2328
2314
  return null;
2329
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, l = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
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);
2330
2316
  try {
2331
- const c = await fetch(l, {
2317
+ const c = await fetch(i, {
2332
2318
  method: "POST",
2333
- body: i === "null" ? null : i,
2319
+ body: l === "null" ? null : l,
2334
2320
  headers: {
2335
2321
  website: C.getWebsiteHeaderName()
2336
2322
  }
@@ -2400,17 +2386,17 @@ class C {
2400
2386
  static async fetchData(e, t = !1, a = !0) {
2401
2387
  if (options.isBot)
2402
2388
  return null;
2403
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2389
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2404
2390
  try {
2405
- const i = await fetch(l, { method: "GET" });
2391
+ const l = await fetch(i, { method: "GET" });
2406
2392
  if (t === !0) {
2407
- const h = await i.text();
2393
+ const h = await l.text();
2408
2394
  return h ? h.replace("__next", "") : null;
2409
2395
  }
2410
- const c = i.headers.get("content-type");
2411
- return c && c.indexOf("application/json") !== -1 ? i.json() : null;
2412
- } catch (i) {
2413
- console.error("fetchData", i, e);
2396
+ const c = l.headers.get("content-type");
2397
+ return c && c.indexOf("application/json") !== -1 ? l.json() : null;
2398
+ } catch (l) {
2399
+ console.error("fetchData", l, e);
2414
2400
  }
2415
2401
  return null;
2416
2402
  }
@@ -2438,12 +2424,12 @@ class C {
2438
2424
  swLng: 0
2439
2425
  };
2440
2426
  const n = e.getBounds();
2441
- let s = n.getSouth(), r = n.getEast(), l = n.getNorth(), i = n.getWest();
2442
- return a && (s = s - a, r = r + a, l = l + a, i = i - a), t && (s = s.toFixed(t), r = r.toFixed(t), l = l.toFixed(t), i = i.toFixed(t)), {
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)), {
2443
2429
  swLat: s,
2444
2430
  neLng: r,
2445
- neLat: l,
2446
- swLng: i
2431
+ neLat: i,
2432
+ swLng: l
2447
2433
  };
2448
2434
  }
2449
2435
  static getFirstN(e, t = 5) {
@@ -2471,7 +2457,7 @@ class C {
2471
2457
  return "/report/license-plate";
2472
2458
  }
2473
2459
  static async getHeaders(e = 300) {
2474
- var i;
2460
+ var l;
2475
2461
  const {
2476
2462
  userAgent: t = null,
2477
2463
  userAgentData: a = null,
@@ -2484,9 +2470,9 @@ class C {
2484
2470
  };
2485
2471
  if (options && options.isBot || typeof window.localStorage > "u")
2486
2472
  return r;
2487
- const l = localStorage.getItem("headerTolken");
2488
- if (l) {
2489
- const c = JSON.parse(l), h = (/* @__PURE__ */ new Date()).getTime();
2473
+ const i = localStorage.getItem("headerTolken");
2474
+ if (i) {
2475
+ const c = JSON.parse(i), h = (/* @__PURE__ */ new Date()).getTime();
2490
2476
  return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
2491
2477
  tolken: c.tolken,
2492
2478
  ip: c.ip,
@@ -2494,7 +2480,7 @@ class C {
2494
2480
  platform: s
2495
2481
  };
2496
2482
  }
2497
- if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
2483
+ if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
2498
2484
  return r;
2499
2485
  try {
2500
2486
  const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, f = (h == null ? void 0 : h.ip) ?? null;
@@ -2522,11 +2508,11 @@ class C {
2522
2508
  return await C.fetchData("/api/client?query=" + r);
2523
2509
  }
2524
2510
  static getReportUrl(e, t = null) {
2525
- var i, c, h;
2526
- 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, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2511
+ 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;
2527
2513
  t = t || ((e == null ? void 0 : e.id) ?? null);
2528
- const l = [r, "-piq", t].filter((p) => p).join("");
2529
- return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + l;
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;
2530
2516
  }
2531
2517
  static async getSearchValue(e = "recsSearchValue") {
2532
2518
  try {
@@ -2693,23 +2679,23 @@ class C {
2693
2679
  const n = this;
2694
2680
  L.GridLayer.GridDebug = L.GridLayer.extend({
2695
2681
  createTile: function(s, r) {
2696
- const l = document.createElement("div");
2682
+ const i = document.createElement("div");
2697
2683
  return setTimeout(() => {
2698
- r(null, l);
2699
- const { se: i, nw: c } = n.getGridBounds({
2684
+ r(null, i);
2685
+ const { se: l, nw: c } = n.getGridBounds({
2700
2686
  map: e,
2701
2687
  tileSize: this.getTileSize(),
2702
2688
  coords: s
2703
2689
  });
2704
2690
  t({
2705
- swLat: i.lat,
2706
- neLng: i.lng,
2691
+ swLat: l.lat,
2692
+ neLng: l.lng,
2707
2693
  neLat: c.lat,
2708
2694
  swLng: c.lng,
2709
2695
  coords: s,
2710
2696
  key: s.z + "-" + s.x + "-" + s.y
2711
2697
  });
2712
- }, a), l;
2698
+ }, a), i;
2713
2699
  }
2714
2700
  }), L.gridLayer.gridDebug = function(s) {
2715
2701
  return new L.GridLayer.GridDebug(s);
@@ -2732,7 +2718,7 @@ class C {
2732
2718
  onClose: n = null,
2733
2719
  disableOutsideClick: s = !1
2734
2720
  }) {
2735
- const r = e ? document.querySelectorAll(e) : [], l = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
2721
+ const r = e ? document.querySelectorAll(e) : [], i = document.getElementById(t + "-dialog"), l = document.querySelectorAll("[data-dialog-close]"), c = [
2736
2722
  "closing",
2737
2723
  "closed",
2738
2724
  "opening",
@@ -2760,7 +2746,7 @@ class C {
2760
2746
  });
2761
2747
  });
2762
2748
  });
2763
- l && (h.observe(l, {
2749
+ i && (h.observe(i, {
2764
2750
  attributes: !0
2765
2751
  }), p.observe(document.body, {
2766
2752
  attributes: !1,
@@ -2768,25 +2754,25 @@ class C {
2768
2754
  childList: !0
2769
2755
  }));
2770
2756
  const f = () => {
2771
- l == null || l.showModal();
2757
+ i == null || i.showModal();
2772
2758
  }, M = async ({ target: m }) => {
2773
2759
  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);
2774
2760
  }, b = async ({ target: m }) => {
2775
- (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), l == null || l.close("outside"));
2761
+ (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), i == null || i.close("outside"));
2776
2762
  }, H = (m) => Promise.allSettled(
2777
2763
  m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
2778
2764
  );
2779
- return !s && (l == null || l.addEventListener("click", b)), l == null || l.addEventListener("close", M), r == null || r.forEach((m) => {
2765
+ return !s && (i == null || i.addEventListener("click", b)), i == null || i.addEventListener("close", M), r == null || r.forEach((m) => {
2780
2766
  m.addEventListener("click", (V) => {
2781
- f(), a && a(V, l);
2767
+ f(), a && a(V, i);
2782
2768
  });
2783
- }), i == null || i.forEach((m) => {
2769
+ }), l == null || l.forEach((m) => {
2784
2770
  m.addEventListener("click", async (V) => {
2785
- l == null || l.close("close"), n && n(V, l);
2771
+ i == null || i.close("close"), n && n(V, i);
2786
2772
  });
2787
2773
  }), {
2788
2774
  activators: r,
2789
- ref: l,
2775
+ ref: i,
2790
2776
  handleOpen: f,
2791
2777
  handleClose: M
2792
2778
  };
@@ -2798,8 +2784,8 @@ class C {
2798
2784
  if (!e)
2799
2785
  return;
2800
2786
  const n = (a == null ? void 0 : a.useBounding) ?? !1;
2801
- new IntersectionObserver(async (r, l) => {
2802
- n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: l, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: l, entry: r[0], entries: r });
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 });
2803
2789
  }, a).observe(e);
2804
2790
  }
2805
2791
  static injectLink({ href: e, id: t }) {
@@ -2808,10 +2794,10 @@ class C {
2808
2794
  }
2809
2795
  static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
2810
2796
  return new Promise(function(s, r) {
2811
- let l = document.getElementById(t);
2812
- if (t && l && l.dataset.loaded === "true")
2797
+ let i = document.getElementById(t);
2798
+ if (t && i && i.dataset.loaded === "true")
2813
2799
  return s({ alreadyLoaded: !0, id: t });
2814
- l || (l = document.createElement("script"), l.src = e, l.dataset.loaded = "false", t && (l.id = t), l.type = n ? "module" : "text/javascript", l.async = a, document.body.appendChild(l), l.onload = () => (l.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), l.onerror = () => r(!1));
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));
2815
2801
  });
2816
2802
  }
2817
2803
  static isMobile({ selector: e = null, width: t = 640 } = {}) {
@@ -2937,16 +2923,16 @@ class C {
2937
2923
  middle: n = null,
2938
2924
  last: s = null,
2939
2925
  min: r = null,
2940
- max: l = null,
2941
- city: i = null,
2926
+ max: i = null,
2927
+ city: l = null,
2942
2928
  state: c = null,
2943
2929
  vin: h = null,
2944
2930
  license: p = null,
2945
2931
  token: f = null,
2946
2932
  phone: M = null
2947
- } = e || {}, b = t && t !== "", H = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
2933
+ } = e || {}, b = t && t !== "", H = r && r !== "" && r !== "18", m = i && i !== "" && r !== "99";
2948
2934
  let V = [];
2949
- 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(l) ? (V.push("min=" + l), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + l)) : (H && V.push("min=" + r), m && V.push("max=" + l)), M && M !== "" && V.push("phone=" + M), i && i !== "" && V.push("city=" + i), 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("&");
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("&");
2950
2936
  }
2951
2937
  static padTo2Digits(e) {
2952
2938
  return e.toString().padStart(2, "0");
@@ -2961,17 +2947,17 @@ class C {
2961
2947
  useCitySearch: n = !1,
2962
2948
  useCityStateSearch: s = !1,
2963
2949
  useSearch: r = !1,
2964
- useLocation: l = !0,
2965
- state: i = ""
2950
+ useLocation: i = !0,
2951
+ state: l = ""
2966
2952
  } = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
2967
2953
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2968
2954
  "addressesOnly=" + a,
2969
2955
  "useSearch=" + r,
2970
2956
  "useCitySearch=" + n,
2971
2957
  "useCityStateSearch=" + s,
2972
- "useLocation=" + l
2958
+ "useLocation=" + i
2973
2959
  ];
2974
- i && i !== "" && !s && f.push("state=" + i), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
2960
+ l && l !== "" && !s && f.push("state=" + l), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
2975
2961
  const M = f.join("&"), H = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2976
2962
  return await C.makeSearchFetchCall(H);
2977
2963
  }
@@ -3020,8 +3006,8 @@ class C {
3020
3006
  if (a && !n) {
3021
3007
  const s = a.split(" "), r = s[s.length - 1];
3022
3008
  if (r.length) {
3023
- const l = this.searchInStates(r);
3024
- l && (n = l.short, a = s.slice(0, -1).join(" "));
3009
+ const i = this.searchInStates(r);
3010
+ i && (n = i.short, a = s.slice(0, -1).join(" "));
3025
3011
  }
3026
3012
  }
3027
3013
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;