@vehiclehistory/property-lib 0.0.979 → 0.0.980

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,4 +1,4 @@
1
- import { jsx as c, jsxs as g, Fragment as S } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as M, Fragment as S } from "react/jsx-runtime";
2
2
  import m from "classnames";
3
3
  import { memo as y, useState as Z, useEffect as N } from "react";
4
4
  const W = {
@@ -544,8 +544,8 @@ const W = {
544
544
  },
545
545
  e
546
546
  ),
547
- children: /* @__PURE__ */ g(S, { children: [
548
- /* @__PURE__ */ g(
547
+ children: /* @__PURE__ */ M(S, { children: [
548
+ /* @__PURE__ */ M(
549
549
  "button",
550
550
  {
551
551
  type: "button",
@@ -635,7 +635,7 @@ const W = {
635
635
  e
636
636
  ),
637
637
  ...l,
638
- children: /* @__PURE__ */ g("div", { className: "flex", children: [
638
+ children: /* @__PURE__ */ M("div", { className: "flex", children: [
639
639
  /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
640
640
  A,
641
641
  {
@@ -645,7 +645,7 @@ const W = {
645
645
  size: "xSmall"
646
646
  }
647
647
  ) }),
648
- /* @__PURE__ */ g("div", { className: "ml-3", children: [
648
+ /* @__PURE__ */ M("div", { className: "ml-3", children: [
649
649
  /* @__PURE__ */ c("div", { className: m("font-medium text-sm", s), children: n }),
650
650
  t.length > 0 ? /* @__PURE__ */ c(
651
651
  "ul",
@@ -655,7 +655,7 @@ const W = {
655
655
  "list-disc space-y-1 pl-5 mt-2 text-xs",
656
656
  a
657
657
  ),
658
- children: t.map((f, C) => /* @__PURE__ */ c("li", { children: f }, C))
658
+ children: t.map((V, C) => /* @__PURE__ */ c("li", { children: V }, C))
659
659
  }
660
660
  ) : "",
661
661
  d
@@ -676,21 +676,21 @@ const W = {
676
676
  name: o = "",
677
677
  options: p = [],
678
678
  parentProps: u = {},
679
- placeholder: f = "",
679
+ placeholder: V = "",
680
680
  props: C = {},
681
- rightIcon: V = "",
682
- required: M = !1,
681
+ rightIcon: f = "",
682
+ required: b = !1,
683
683
  showSearchIcon: x = !0,
684
684
  showRightIcon: h = !1,
685
- size: b = "medium",
685
+ size: v = "medium",
686
686
  styles: w = null,
687
- title: v = "",
687
+ title: g = "",
688
688
  type: E,
689
689
  useGoogle: j = !1,
690
690
  useReact: P = !1
691
691
  }) => {
692
692
  const R = P ? { defaultValue: a } : { value: a };
693
- return /* @__PURE__ */ g(
693
+ return /* @__PURE__ */ M(
694
694
  "div",
695
695
  {
696
696
  id: s,
@@ -701,7 +701,7 @@ const W = {
701
701
  style: w ? { ...w } : null,
702
702
  ...u,
703
703
  children: [
704
- x && /* @__PURE__ */ g(
704
+ x && /* @__PURE__ */ M(
705
705
  "span",
706
706
  {
707
707
  className: m(
@@ -716,7 +716,7 @@ const W = {
716
716
  {
717
717
  className: "home-search select-none text-gray-500",
718
718
  name: i,
719
- size: b === "xLarge" ? "small" : "xSmall",
719
+ size: v === "xLarge" ? "small" : "xSmall",
720
720
  viewBox: "0 0 24 24"
721
721
  }
722
722
  ),
@@ -725,7 +725,7 @@ const W = {
725
725
  {
726
726
  className: "arrow-left select-none text-gray-500 hidden",
727
727
  name: "arrowLeft",
728
- size: b === "xLarge" ? "small" : "xSmall",
728
+ size: v === "xLarge" ? "small" : "xSmall",
729
729
  viewBox: "0 0 24 24"
730
730
  }
731
731
  )
@@ -741,16 +741,16 @@ const W = {
741
741
  "w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
742
742
  {
743
743
  "pl-8": x === !0,
744
- "px-3 h-10": b === "medium",
745
- "px-4 h-12": b === "large",
746
- "px-5 h-[60px] sm:!text-base": b === "xLarge",
744
+ "px-3 h-10": v === "medium",
745
+ "px-4 h-12": v === "large",
746
+ "px-5 h-[60px] sm:!text-base": v === "xLarge",
747
747
  peer: n
748
748
  },
749
749
  l
750
750
  ),
751
- required: M,
751
+ required: b,
752
752
  autoComplete: "off",
753
- placeholder: !f && n ? " " : f,
753
+ placeholder: !V && n ? " " : V,
754
754
  type: "search",
755
755
  name: o || "search-input",
756
756
  "data-id": "search-input",
@@ -765,9 +765,9 @@ const W = {
765
765
  "floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
766
766
  {
767
767
  "!left-7": x === !0,
768
- "left-2": b === "medium",
769
- "left-3": b === "large",
770
- "left-4": b === "xLarge"
768
+ "left-2": v === "medium",
769
+ "left-3": v === "large",
770
+ "left-4": v === "xLarge"
771
771
  }
772
772
  ),
773
773
  children: n
@@ -805,15 +805,15 @@ const W = {
805
805
  )
806
806
  }
807
807
  ),
808
- V && /* @__PURE__ */ c(
808
+ f && /* @__PURE__ */ c(
809
809
  "span",
810
810
  {
811
811
  "data-id": "right-icon",
812
812
  className: `${h ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
813
- children: /* @__PURE__ */ c(A, { name: V, size: "small", viewBox: "0 0 24 24" })
813
+ children: /* @__PURE__ */ c(A, { name: f, size: "small", viewBox: "0 0 24 24" })
814
814
  }
815
815
  ),
816
- /* @__PURE__ */ g(
816
+ /* @__PURE__ */ M(
817
817
  "div",
818
818
  {
819
819
  "data-id": "search-dropdown",
@@ -825,7 +825,7 @@ const W = {
825
825
  {
826
826
  "data-id": "search-dropdown-body",
827
827
  role: "listbox",
828
- "data-title": v,
828
+ "data-title": g,
829
829
  "aria-labelledby": "Label",
830
830
  "aria-activedescendant": "search-item-0",
831
831
  children: p.length > 0 ? p.map((k, z) => /* @__PURE__ */ c(
@@ -880,25 +880,25 @@ const W = {
880
880
  rightIconProps: o = {},
881
881
  rounded: p = !1,
882
882
  size: u = "md",
883
- type: f = "button",
883
+ type: V = "button",
884
884
  uppercase: C = !1,
885
- variation: V = "primary"
885
+ variation: f = "primary"
886
886
  }) => {
887
- const M = l ? "a" : "button";
888
- return /* @__PURE__ */ g(
889
- M,
887
+ const b = l ? "a" : "button";
888
+ return /* @__PURE__ */ M(
889
+ b,
890
890
  {
891
- type: M !== "a" ? f : null,
891
+ type: b !== "a" ? V : null,
892
892
  className: m(
893
893
  "button",
894
894
  {
895
- [`button--${V}`]: V,
895
+ [`button--${f}`]: f,
896
896
  [`button--${u}`]: u,
897
897
  "button--rounded": p,
898
898
  "button--disabled": s,
899
899
  "button--custom-link": l,
900
900
  "button--uppercase": C,
901
- "button--borderless": d || V === "link"
901
+ "button--borderless": d || f === "link"
902
902
  },
903
903
  n
904
904
  ),
@@ -941,12 +941,12 @@ const W = {
941
941
  variation: o = "primary",
942
942
  value: p = ""
943
943
  }) => {
944
- const u = l ? "div" : "label", f = u === "label" ? { htmlFor: s } : {};
945
- return /* @__PURE__ */ g(
944
+ const u = l ? "div" : "label", V = u === "label" ? { htmlFor: s } : {};
945
+ return /* @__PURE__ */ M(
946
946
  u,
947
947
  {
948
948
  className: m("checkbox flex items-center", o, t),
949
- ...f,
949
+ ...V,
950
950
  children: [
951
951
  /* @__PURE__ */ c(
952
952
  "input",
@@ -983,17 +983,17 @@ const W = {
983
983
  fullMobile: o = !0,
984
984
  headerClass: p,
985
985
  hideClose: u = !1,
986
- iconSize: f = "medium",
986
+ iconSize: V = "medium",
987
987
  preventPageScroll: C = !0,
988
- sheet: V = !1,
989
- sheetDirection: M = "right",
988
+ sheet: f = !1,
989
+ sheetDirection: b = "right",
990
990
  stickyHeader: x = !1,
991
991
  title: h = "",
992
- titleClass: b,
992
+ titleClass: v,
993
993
  useFormMethod: w = !0
994
994
  }) => {
995
- const v = w ? "form" : "div";
996
- return /* @__PURE__ */ g(S, { children: [
995
+ const g = w ? "form" : "div";
996
+ return /* @__PURE__ */ M(S, { children: [
997
997
  d && /* @__PURE__ */ c("span", { id: `${e}-dialog-activator`, children: d }),
998
998
  /* @__PURE__ */ c(
999
999
  "dialog",
@@ -1005,20 +1005,20 @@ const W = {
1005
1005
  "dialog",
1006
1006
  {
1007
1007
  "dialog-full-mobile": o,
1008
- "dialog-sheet": V,
1008
+ "dialog-sheet": f,
1009
1009
  dark: l,
1010
- "dialog-sheet--right": M === "right" && V,
1010
+ "dialog-sheet--right": b === "right" && f,
1011
1011
  "prevent-scroll": C
1012
1012
  },
1013
1013
  a
1014
1014
  ),
1015
- children: /* @__PURE__ */ g(
1016
- v,
1015
+ children: /* @__PURE__ */ M(
1016
+ g,
1017
1017
  {
1018
1018
  className: "dialog-container",
1019
1019
  method: w ? "dialog" : null,
1020
1020
  children: [
1021
- /* @__PURE__ */ g(
1021
+ /* @__PURE__ */ M(
1022
1022
  "header",
1023
1023
  {
1024
1024
  className: m(
@@ -1031,7 +1031,7 @@ const W = {
1031
1031
  p
1032
1032
  ),
1033
1033
  children: [
1034
- h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: b, children: h }),
1034
+ h && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: v, children: h }),
1035
1035
  !u && /* @__PURE__ */ c(
1036
1036
  "button",
1037
1037
  {
@@ -1044,7 +1044,7 @@ const W = {
1044
1044
  A,
1045
1045
  {
1046
1046
  name: "close",
1047
- size: f,
1047
+ size: V,
1048
1048
  className: "pointer-events-none"
1049
1049
  }
1050
1050
  )
@@ -1074,7 +1074,7 @@ const W = {
1074
1074
  }
1075
1075
  )
1076
1076
  ] });
1077
- }, B1 = y(K), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: m("Dots mx-auto", d), children: [
1077
+ }, B1 = y(K), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
1078
1078
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
1079
1079
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
1080
1080
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
@@ -1095,16 +1095,16 @@ const W = {
1095
1095
  const r = document.querySelector(".loading-bar__inner");
1096
1096
  if (!r) return;
1097
1097
  let o, p, u = !1;
1098
- function f(C) {
1098
+ function V(C) {
1099
1099
  o === void 0 && (o = C);
1100
- const V = C - o;
1100
+ const f = C - o;
1101
1101
  if (p !== C) {
1102
- const M = V / n * 101;
1103
- r.style.width = `${M}%`, e && e({ elapsed: V, percentage: M }), M >= 101 && (i && i(), u = !0, window.cancelAnimationFrame(C));
1102
+ const b = f / n * 101;
1103
+ r.style.width = `${b}%`, e && e({ elapsed: f, percentage: b }), b >= 101 && (i && i(), u = !0, window.cancelAnimationFrame(C));
1104
1104
  }
1105
- V < n && (p = C, u || window.requestAnimationFrame(f));
1105
+ f < n && (p = C, u || window.requestAnimationFrame(V));
1106
1106
  }
1107
- window.requestAnimationFrame(f);
1107
+ window.requestAnimationFrame(V);
1108
1108
  }
1109
1109
  return N(() => {
1110
1110
  l({ cb: d });
@@ -1135,12 +1135,12 @@ const W = {
1135
1135
  disabled: l = !1,
1136
1136
  options: i = {},
1137
1137
  trigger: r = "click"
1138
- }) => /* @__PURE__ */ g(S, { children: [
1138
+ }) => /* @__PURE__ */ M(S, { children: [
1139
1139
  /* @__PURE__ */ c(
1140
1140
  "div",
1141
1141
  {
1142
1142
  className: m("popover z-10 max-w-[350px] hidden", n),
1143
- children: /* @__PURE__ */ g(
1143
+ children: /* @__PURE__ */ M(
1144
1144
  "div",
1145
1145
  {
1146
1146
  className: m(
@@ -1189,10 +1189,10 @@ const W = {
1189
1189
  rounded: r = !0,
1190
1190
  showLabel: o = !1
1191
1191
  }) => {
1192
- const u = ((f, C) => {
1193
- if (f) {
1194
- const V = Number(C) / f;
1195
- return V > 1 ? 100 : V * 100;
1192
+ const u = ((V, C) => {
1193
+ if (V) {
1194
+ const f = Number(C) / V;
1195
+ return f > 1 ? 100 : f * 100;
1196
1196
  }
1197
1197
  return n;
1198
1198
  })(i, n);
@@ -1244,7 +1244,7 @@ const W = {
1244
1244
  value: o = ""
1245
1245
  }) => {
1246
1246
  const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
1247
- return /* @__PURE__ */ g(
1247
+ return /* @__PURE__ */ M(
1248
1248
  p,
1249
1249
  {
1250
1250
  className: m("radio flex items-center", t),
@@ -1285,17 +1285,17 @@ const W = {
1285
1285
  selectClass: o = "",
1286
1286
  styles: p = null,
1287
1287
  variation: u = "primary",
1288
- value: f
1288
+ value: V
1289
1289
  }) => {
1290
1290
  const C = i ? { defaultValue: "" } : {};
1291
- return /* @__PURE__ */ g(
1291
+ return /* @__PURE__ */ M(
1292
1292
  "label",
1293
1293
  {
1294
1294
  className: m("relative select", d, u),
1295
1295
  style: p ? { ...p } : null,
1296
1296
  children: [
1297
1297
  n,
1298
- /* @__PURE__ */ g(
1298
+ /* @__PURE__ */ M(
1299
1299
  "select",
1300
1300
  {
1301
1301
  className: m(
@@ -1307,18 +1307,18 @@ const W = {
1307
1307
  ),
1308
1308
  id: a,
1309
1309
  name: s,
1310
- value: f,
1310
+ value: V,
1311
1311
  ...C,
1312
1312
  ...r,
1313
1313
  children: [
1314
1314
  i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
1315
- l.map((V) => /* @__PURE__ */ c(
1315
+ l.map((f) => /* @__PURE__ */ c(
1316
1316
  "option",
1317
1317
  {
1318
- value: (V == null ? void 0 : V.id) || (V == null ? void 0 : V.value) || V,
1319
- children: (V == null ? void 0 : V.name) || V
1318
+ value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
1319
+ children: (f == null ? void 0 : f.name) || f
1320
1320
  },
1321
- (V == null ? void 0 : V.name) || V
1321
+ (f == null ? void 0 : f.name) || f
1322
1322
  ))
1323
1323
  ]
1324
1324
  }
@@ -1327,7 +1327,7 @@ const W = {
1327
1327
  ]
1328
1328
  }
1329
1329
  );
1330
- }, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */ g(
1330
+ }, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
1331
1331
  "div",
1332
1332
  {
1333
1333
  className: m(
@@ -1345,7 +1345,7 @@ const W = {
1345
1345
  className: t,
1346
1346
  id: a = 1,
1347
1347
  padding: n = !0
1348
- }) => /* @__PURE__ */ g("div", { className: m("slider", t), id: `slider-${a}`, children: [
1348
+ }) => /* @__PURE__ */ M("div", { className: m("slider", t), id: `slider-${a}`, children: [
1349
1349
  /* @__PURE__ */ c(
1350
1350
  "button",
1351
1351
  {
@@ -1412,7 +1412,7 @@ const W = {
1412
1412
  props: r = {},
1413
1413
  rows: o = 4,
1414
1414
  variation: p = "primary"
1415
- }) => /* @__PURE__ */ g("div", { className: m("relative textarea", p, d), children: [
1415
+ }) => /* @__PURE__ */ M("div", { className: m("relative textarea", p, d), children: [
1416
1416
  /* @__PURE__ */ c(
1417
1417
  "textarea",
1418
1418
  {
@@ -1460,9 +1460,9 @@ const W = {
1460
1460
  props: o = {},
1461
1461
  styles: p = null,
1462
1462
  type: u = "text",
1463
- value: f,
1463
+ value: V,
1464
1464
  variation: C = "primary"
1465
- }) => /* @__PURE__ */ g(
1465
+ }) => /* @__PURE__ */ M(
1466
1466
  "div",
1467
1467
  {
1468
1468
  className: m("relative textbox", C, d),
@@ -1484,7 +1484,7 @@ const W = {
1484
1484
  id: s,
1485
1485
  name: i,
1486
1486
  type: u,
1487
- value: f,
1487
+ value: V,
1488
1488
  autoComplete: "off",
1489
1489
  className: m(
1490
1490
  "form-input",
@@ -1517,7 +1517,7 @@ const W = {
1517
1517
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1518
1518
  ]
1519
1519
  }
1520
- ), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
1520
+ ), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1521
1521
  /* @__PURE__ */ c(
1522
1522
  "input",
1523
1523
  {
@@ -1548,7 +1548,7 @@ const W = {
1548
1548
  titleClass: s,
1549
1549
  uppercase: l = !0
1550
1550
  }) => {
1551
- const i = a || /* @__PURE__ */ g(S, { children: [
1551
+ const i = a || /* @__PURE__ */ M(S, { children: [
1552
1552
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1553
1553
  " ",
1554
1554
  /* @__PURE__ */ c(
@@ -1565,7 +1565,7 @@ const W = {
1565
1565
  }
1566
1566
  )
1567
1567
  ] });
1568
- return /* @__PURE__ */ g(
1568
+ return /* @__PURE__ */ M(
1569
1569
  "form",
1570
1570
  {
1571
1571
  id: "contactForm",
@@ -1575,7 +1575,7 @@ const W = {
1575
1575
  children: [
1576
1576
  /* @__PURE__ */ c("h2", { id: "contact-title", className: m("mb-4", s), children: n }),
1577
1577
  /* @__PURE__ */ c("p", { className: "contact-form__msg", children: i }),
1578
- /* @__PURE__ */ g(
1578
+ /* @__PURE__ */ M(
1579
1579
  "div",
1580
1580
  {
1581
1581
  className: m(
@@ -1651,7 +1651,7 @@ const W = {
1651
1651
  variation: p = "primary"
1652
1652
  }) => {
1653
1653
  const u = r ? "ul" : "div";
1654
- return /* @__PURE__ */ g(
1654
+ return /* @__PURE__ */ M(
1655
1655
  "div",
1656
1656
  {
1657
1657
  className: m(
@@ -1687,7 +1687,7 @@ const W = {
1687
1687
  value: r,
1688
1688
  valueClass: o,
1689
1689
  wrap: p = !1
1690
- }) => /* @__PURE__ */ g(
1690
+ }) => /* @__PURE__ */ M(
1691
1691
  "div",
1692
1692
  {
1693
1693
  className: m(
@@ -1719,7 +1719,7 @@ const W = {
1719
1719
  title: s,
1720
1720
  titleClass: l,
1721
1721
  titleId: i
1722
- }) => /* @__PURE__ */ g(
1722
+ }) => /* @__PURE__ */ M(
1723
1723
  "section",
1724
1724
  {
1725
1725
  className: m(
@@ -1774,7 +1774,7 @@ const W = {
1774
1774
  "3.5xl": "2rem"
1775
1775
  }, L1 = {
1776
1776
  17: "repeat(17, minmax(0, 1fr))"
1777
- }, g1 = {
1777
+ }, M1 = {
1778
1778
  circular: {
1779
1779
  "100%": {
1780
1780
  transform: "rotate(360deg)"
@@ -1884,7 +1884,7 @@ const W = {
1884
1884
  transform: "translateX(0)"
1885
1885
  }
1886
1886
  }
1887
- }, M1 = {
1887
+ }, g1 = {
1888
1888
  20: "5rem",
1889
1889
  24: "6rem",
1890
1890
  28: "7rem",
@@ -1921,8 +1921,8 @@ const W = {
1921
1921
  backgroundImage: H1,
1922
1922
  fontSize: C1,
1923
1923
  gridTemplateColumns: L1,
1924
- keyframes: g1,
1925
- margin: M1,
1924
+ keyframes: M1,
1925
+ margin: g1,
1926
1926
  maxWidth: v1,
1927
1927
  screens: b1,
1928
1928
  transitionDuration: y1,
@@ -2090,15 +2090,15 @@ const W = {
2090
2090
  const u = {
2091
2091
  "font-size": p,
2092
2092
  ...a
2093
- }, f = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: p }) : {};
2094
- r[f] = {
2093
+ }, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: p }) : {};
2094
+ r[V] = {
2095
2095
  ...u,
2096
2096
  ...C
2097
- }, Object.entries(l).forEach(([V, M]) => {
2098
- const x = `.${e(`${t}-${o}-${V}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: V, weightValue: M }) : {};
2097
+ }, Object.entries(l).forEach(([f, b]) => {
2098
+ const x = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: b }) : {};
2099
2099
  r[x] = {
2100
2100
  ...u,
2101
- "font-weight": M,
2101
+ "font-weight": b,
2102
2102
  ...h
2103
2103
  };
2104
2104
  });
@@ -2404,18 +2404,22 @@ class H {
2404
2404
  ip: o = null,
2405
2405
  sessionId: p = null,
2406
2406
  user: u = null
2407
- } = (window == null ? void 0 : window.options) ?? {}, { id: f = null } = u ?? {};
2408
- t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = i, t.url = r, await H.createData("/api/event", {
2409
- payload: {
2410
- data: t,
2411
- type: a,
2412
- name: n,
2413
- userId: s ?? f,
2414
- url: window.location.href,
2415
- ip: o,
2416
- sessionId: p
2417
- }
2418
- });
2407
+ } = (window == null ? void 0 : window.options) ?? {}, { id: V = null } = u ?? {};
2408
+ t.userId = s ?? V, t.isHeads = l, t.isLoggedIn = i, t.url = r, await H.createData(
2409
+ "/api/event",
2410
+ {
2411
+ payload: {
2412
+ data: t,
2413
+ type: a,
2414
+ name: n,
2415
+ userId: s ?? V,
2416
+ url: window.location.href,
2417
+ ip: o,
2418
+ sessionId: p
2419
+ }
2420
+ },
2421
+ !1
2422
+ );
2419
2423
  }
2420
2424
  static async createData(e, t = null, a = !0, n = {}) {
2421
2425
  if (!t)
@@ -2572,7 +2576,7 @@ class H {
2572
2576
  return "/report/license-plate";
2573
2577
  }
2574
2578
  static async getHeaders({ ttl: e = 600, bypassSession: t = !1 } = {}) {
2575
- var p;
2579
+ var o;
2576
2580
  const {
2577
2581
  userAgent: a = null,
2578
2582
  userAgentData: n = null,
@@ -2585,33 +2589,21 @@ class H {
2585
2589
  };
2586
2590
  if (typeof window.localStorage > "u")
2587
2591
  return i;
2588
- const r = "headerSessionData", o = localStorage.getItem(r);
2589
- if (o && !t) {
2590
- const u = JSON.parse(o), f = (/* @__PURE__ */ new Date()).getTime();
2591
- if (u.expire - f <= 0)
2592
- console.log(`expire localStorage & continue to call headers - ${r}`), localStorage.removeItem(r);
2593
- else
2594
- return {
2595
- tolken: u.tolken,
2596
- ip: (u == null ? void 0 : u.ip) ?? null,
2597
- userAgent: a,
2598
- platform: l
2599
- };
2600
- }
2601
- if ((p = window == null ? void 0 : window.options) != null && p.isPdf)
2592
+ const r = "headerSessionData";
2593
+ if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
2602
2594
  return i;
2603
2595
  try {
2604
- const f = await (await fetch("/api/client-headers")).json(), C = (f == null ? void 0 : f.timedSessionId) ?? (f == null ? void 0 : f.sessionId) ?? "noSessionId", V = (f == null ? void 0 : f.ip) ?? null, M = e * 1e3;
2596
+ const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", C = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
2605
2597
  return localStorage.setItem(
2606
2598
  r,
2607
2599
  JSON.stringify({
2608
- tolken: C,
2609
- ip: V,
2610
- expire: (/* @__PURE__ */ new Date()).getTime() + M
2600
+ tolken: V,
2601
+ ip: C,
2602
+ expire: (/* @__PURE__ */ new Date()).getTime() + f
2611
2603
  })
2612
- ), { tolken: C, ip: V, userAgent: a, platform: l };
2613
- } catch (u) {
2614
- console.error("getHeaders", u);
2604
+ ), { tolken: V, ip: C, userAgent: a, platform: l };
2605
+ } catch (p) {
2606
+ console.error("getHeaders", p);
2615
2607
  }
2616
2608
  return i;
2617
2609
  }
@@ -2848,42 +2840,42 @@ class H {
2848
2840
  "outside",
2849
2841
  "removed"
2850
2842
  ].reduce(
2851
- (h, b) => ({
2843
+ (h, v) => ({
2852
2844
  ...h,
2853
- [b]: new Event(b)
2845
+ [v]: new Event(v)
2854
2846
  }),
2855
2847
  {}
2856
- ), f = new MutationObserver((h, b) => {
2848
+ ), V = new MutationObserver((h, v) => {
2857
2849
  h.forEach(async (w) => {
2858
2850
  if (w.attributeName === "open") {
2859
- const v = w.target;
2860
- if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2861
- v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(u.opening), v && await x(v), v == null || v.dispatchEvent(u.opened);
2851
+ const g = w.target;
2852
+ if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
2853
+ g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(u.opening), g && await x(g), g == null || g.dispatchEvent(u.opened);
2862
2854
  }
2863
2855
  });
2864
- }), C = new MutationObserver((h, b) => {
2856
+ }), C = new MutationObserver((h, v) => {
2865
2857
  h.forEach((w) => {
2866
- w.removedNodes.forEach((v) => {
2867
- v.nodeName === "DIALOG" && (v.removeEventListener("click", M), v.removeEventListener("close", V), v.dispatchEvent(u.removed), C == null || C.disconnect(), f == null || f.disconnect());
2858
+ w.removedNodes.forEach((g) => {
2859
+ g.nodeName === "DIALOG" && (g.removeEventListener("click", b), g.removeEventListener("close", f), g.dispatchEvent(u.removed), C == null || C.disconnect(), V == null || V.disconnect());
2868
2860
  });
2869
2861
  });
2870
2862
  });
2871
- o && (f.observe(o, {
2863
+ o && (V.observe(o, {
2872
2864
  attributes: !0
2873
2865
  }), C.observe(document.body, {
2874
2866
  attributes: !1,
2875
2867
  subtree: !1,
2876
2868
  childList: !0
2877
2869
  }));
2878
- const V = async ({ target: h }) => {
2870
+ const f = async ({ target: h }) => {
2879
2871
  h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
2880
- }, M = async ({ target: h }) => {
2872
+ }, b = async ({ target: h }) => {
2881
2873
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
2882
2874
  }, x = (h) => Promise.allSettled(
2883
- h == null ? void 0 : h.getAnimations().map((b) => b == null ? void 0 : b.finished)
2875
+ h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
2884
2876
  );
2885
- return !e && (o == null || o.addEventListener("click", M)), o == null || o.addEventListener("close", async (h) => {
2886
- await V({ target: h.target }), a && a(h, o);
2877
+ return !e && (o == null || o.addEventListener("click", b)), o == null || o.addEventListener("close", async (h) => {
2878
+ await f({ target: h.target }), a && a(h, o);
2887
2879
  }), e && (o == null || o.addEventListener("cancel", async (h) => {
2888
2880
  h.key === "Escape" && h.preventDefault();
2889
2881
  })), e && (o == null || o.addEventListener("keydown", (h) => {
@@ -2891,11 +2883,11 @@ class H {
2891
2883
  })), n && (o == null || o.addEventListener("open", async (h) => {
2892
2884
  n(h, o);
2893
2885
  })), r == null || r.forEach((h) => {
2894
- h.addEventListener("click", (b) => {
2895
- o == null || o.showModal(), s && s(b, o);
2886
+ h.addEventListener("click", (v) => {
2887
+ o == null || o.showModal(), s && s(v, o);
2896
2888
  });
2897
2889
  }), p == null || p.forEach((h) => {
2898
- h.addEventListener("click", async (b) => {
2890
+ h.addEventListener("click", async (v) => {
2899
2891
  o == null || o.close("close");
2900
2892
  });
2901
2893
  }), {
@@ -3044,11 +3036,11 @@ class H {
3044
3036
  state: o = null,
3045
3037
  vin: p = null,
3046
3038
  license: u = null,
3047
- token: f = null,
3039
+ token: V = null,
3048
3040
  phone: C = null
3049
- } = e || {}, V = t && t !== "", M = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
3041
+ } = e || {}, f = t && t !== "", b = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
3050
3042
  let h = [];
3051
- return t && t !== "" && h.push("name=" + t), V || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), M && x ? 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), x && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), f && f !== "" && h.push("token=" + f), h.join("&");
3043
+ 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)), b && x ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (b && h.push("min=" + l), x && h.push("max=" + i)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
3052
3044
  }
3053
3045
  static padTo2Digits(e) {
3054
3046
  return e.toString().padStart(2, "0");
@@ -3068,9 +3060,9 @@ class H {
3068
3060
  useGoogle: o = !1,
3069
3061
  useGoogleOverride: p = !1,
3070
3062
  useAmazonOverride: u = !1,
3071
- isSandboxAccount: f = !1,
3063
+ isSandboxAccount: V = !1,
3072
3064
  isOptOutSearch: C = !1
3073
- } = t ?? {}, { tolken: V = null, ip: M = null } = await H.getHeaders(), h = [
3065
+ } = t ?? {}, { tolken: f = null, ip: b = null } = await H.getHeaders(), h = [
3074
3066
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3075
3067
  "addressesOnly=" + a,
3076
3068
  "useSearch=" + l,
@@ -3080,12 +3072,12 @@ class H {
3080
3072
  "useGoogle=" + o,
3081
3073
  "useGoogleOverride=" + p,
3082
3074
  "useAmazonOverride=" + u,
3083
- "isSandboxAccount=" + f,
3075
+ "isSandboxAccount=" + V,
3084
3076
  "isOptOutSearch=" + C
3085
3077
  ];
3086
- r && r !== "" && !s && h.push("state=" + r), V && V !== "" && h.push("tolken=" + V), M && M !== "" && h.push("ip=" + M);
3087
- const b = h.join("&"), v = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
3088
- return await H.fetchData(v);
3078
+ r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), b && b !== "" && h.push("ip=" + b);
3079
+ const v = h.join("&"), g = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
3080
+ return await H.fetchData(g);
3089
3081
  }
3090
3082
  static removeElements(e) {
3091
3083
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());