@vehiclehistory/property-lib 0.0.62 → 0.0.64

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 o, jsxs as M, Fragment as k } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as M, Fragment as S } from "react/jsx-runtime";
2
2
  import { memo as x, useState as Z, useEffect as N, useRef as Q } from "react";
3
3
  import u from "classnames";
4
4
  const U = {
@@ -392,6 +392,9 @@ const U = {
392
392
  shieldCheck: {
393
393
  path: '<path d="M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1Z" />'
394
394
  },
395
+ shieldCheckOutline: {
396
+ path: '<path d="M21,11C21,16.55 17.16,21.74 12,23C6.84,21.74 3,16.55 3,11V5L12,1L21,5V11M12,21C15.75,20 19,15.54 19,11.22V6.3L12,3.18L5,6.3V11.22C5,15.54 8.25,20 12,21M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9" />'
397
+ },
395
398
  shieldStar: {
396
399
  path: '<path d="M12 1L3 5V11C3 16.55 6.84 21.74 12 23C17.16 21.74 21 16.55 21 11V5L12 1M15.08 16L12 14.15L8.93 16L9.74 12.5L7.03 10.16L10.61 9.85L12 6.55L13.39 9.84L16.97 10.15L14.26 12.5L15.08 16Z" />'
397
400
  },
@@ -508,7 +511,7 @@ const U = {
508
511
  isOpen: r = !1
509
512
  }) => {
510
513
  const [l, i] = Z(r);
511
- return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(k, { children: [
514
+ return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(S, { children: [
512
515
  /* @__PURE__ */ M(
513
516
  "button",
514
517
  {
@@ -563,12 +566,13 @@ const U = {
563
566
  children: c,
564
567
  className: e = "",
565
568
  messages: t = [],
566
- title: a = "",
567
- titleClass: n = "",
568
- props: s = {},
569
- type: r = "error"
569
+ messagesClass: a,
570
+ title: n = "",
571
+ titleClass: s = "",
572
+ props: r = {},
573
+ type: l = "error"
570
574
  }) => {
571
- const l = {
575
+ const i = {
572
576
  error: {
573
577
  icon: "error",
574
578
  iconColor: "text-red-500",
@@ -589,30 +593,41 @@ const U = {
589
593
  iconColor: "text-yellow-500",
590
594
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
591
595
  }
592
- }, { icon: i, iconColor: d, styles: h } = l[r];
596
+ }, { icon: d, iconColor: h, styles: p } = i[l];
593
597
  return /* @__PURE__ */ o(
594
598
  "div",
595
599
  {
596
- id: r,
600
+ id: l,
597
601
  className: u(
598
602
  "rounded w-full py-2 px-4 mb-4 border",
599
- h,
603
+ p,
600
604
  e
601
605
  ),
602
- ...s,
606
+ ...r,
603
607
  children: /* @__PURE__ */ M("div", { className: "flex", children: [
604
608
  /* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
605
609
  y,
606
610
  {
607
- name: i,
611
+ name: d,
608
612
  viewBox: "0 0 24 24",
609
- className: d,
613
+ className: h,
610
614
  size: "xSmall"
611
615
  }
612
616
  ) }),
613
617
  /* @__PURE__ */ M("div", { className: "ml-3", children: [
614
- /* @__PURE__ */ o("div", { className: u("font-medium text-sm", n), children: a }),
615
- t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((p, C) => /* @__PURE__ */ o("li", { children: p }, C)) }) }) : ""
618
+ /* @__PURE__ */ o("div", { className: u("font-medium text-sm", s), children: n }),
619
+ t.length > 0 ? /* @__PURE__ */ o(
620
+ "ul",
621
+ {
622
+ role: "list",
623
+ className: u(
624
+ "list-disc space-y-1 pl-5 mt-2 text-xs",
625
+ a
626
+ ),
627
+ children: t.map((g, H) => /* @__PURE__ */ o("li", { children: g }, H))
628
+ }
629
+ ) : "",
630
+ c
616
631
  ] })
617
632
  ] })
618
633
  }
@@ -630,8 +645,8 @@ const U = {
630
645
  name: d = "",
631
646
  options: h = [],
632
647
  placeholder: p = "",
633
- props: C = {},
634
- required: g = !1,
648
+ props: g = {},
649
+ required: H = !1,
635
650
  showSearchIcon: v = !0,
636
651
  size: f = "medium",
637
652
  styles: m = null,
@@ -693,14 +708,14 @@ const U = {
693
708
  },
694
709
  r
695
710
  ),
696
- required: g,
711
+ required: H,
697
712
  autoComplete: "off",
698
713
  value: a,
699
714
  placeholder: !p && n ? " " : p,
700
715
  type: "search",
701
716
  name: d || "search-input",
702
717
  "data-id": "search-input",
703
- ...C
718
+ ...g
704
719
  }
705
720
  ),
706
721
  n && /* @__PURE__ */ o(
@@ -765,17 +780,17 @@ const U = {
765
780
  "data-title": V,
766
781
  "aria-labelledby": "Label",
767
782
  "aria-activedescendant": "search-item-0",
768
- children: h.length > 0 ? h.map((b, S) => /* @__PURE__ */ o(
783
+ children: h.length > 0 ? h.map((b, k) => /* @__PURE__ */ o(
769
784
  "li",
770
785
  {
771
- id: `search-item-${S}`,
786
+ id: `search-item-${k}`,
772
787
  tabIndex: -1,
773
788
  className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
774
- "aria-selected": S === 0,
789
+ "aria-selected": k === 0,
775
790
  role: "option",
776
791
  children: (b == null ? void 0 : b.name) || b
777
792
  },
778
- `search-item-${S}`
793
+ `search-item-${k}`
779
794
  )) : ""
780
795
  }
781
796
  )
@@ -816,15 +831,15 @@ const U = {
816
831
  rightIconProps: d = {},
817
832
  rounded: h = !1,
818
833
  size: p = "md",
819
- type: C = "button",
820
- uppercase: g = !1,
834
+ type: g = "button",
835
+ uppercase: H = !1,
821
836
  variation: v = "primary"
822
837
  }) => {
823
838
  const f = r ? "a" : "button";
824
839
  return /* @__PURE__ */ M(
825
840
  f,
826
841
  {
827
- type: f !== "a" ? C : null,
842
+ type: f !== "a" ? g : null,
828
843
  className: u(
829
844
  "button",
830
845
  {
@@ -833,7 +848,7 @@ const U = {
833
848
  "button--rounded": h,
834
849
  "button--disabled": s,
835
850
  "button--custom-link": r,
836
- "button--uppercase": g,
851
+ "button--uppercase": H,
837
852
  "button--borderless": c || v === "link"
838
853
  },
839
854
  n
@@ -903,12 +918,12 @@ const U = {
903
918
  variation: d = "primary",
904
919
  value: h = ""
905
920
  }) => {
906
- const p = r ? "div" : "label", C = p === "label" ? { htmlFor: s } : {};
921
+ const p = r ? "div" : "label", g = p === "label" ? { htmlFor: s } : {};
907
922
  return /* @__PURE__ */ M(
908
923
  p,
909
924
  {
910
925
  className: u("checkbox flex items-center", d, t),
911
- ...C,
926
+ ...g,
912
927
  children: [
913
928
  /* @__PURE__ */ o(
914
929
  "input",
@@ -971,10 +986,10 @@ const U = {
971
986
  hideClose: d = !1,
972
987
  iconSize: h = "medium",
973
988
  preventPageScroll: p = !0,
974
- stickyHeader: C = !1,
975
- title: g = "",
989
+ stickyHeader: g = !1,
990
+ title: H = "",
976
991
  titleClass: v = ""
977
- }) => /* @__PURE__ */ M(k, { children: [
992
+ }) => /* @__PURE__ */ M(S, { children: [
978
993
  c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: c }),
979
994
  /* @__PURE__ */ o(
980
995
  "dialog",
@@ -997,14 +1012,14 @@ const U = {
997
1012
  className: u(
998
1013
  "dialog-header",
999
1014
  {
1000
- "sticky top-0 bg-white z-10": C,
1001
- "!pb-0 border-0 justify-end": !g,
1002
- "justify-between border-b": g
1015
+ "sticky top-0 bg-white z-10": g,
1016
+ "!pb-0 border-0 justify-end": !H,
1017
+ "justify-between border-b": H
1003
1018
  },
1004
1019
  i
1005
1020
  ),
1006
1021
  children: [
1007
- g && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: v, children: g }),
1022
+ H && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: v, children: H }),
1008
1023
  !d && /* @__PURE__ */ o(
1009
1024
  "button",
1010
1025
  {
@@ -1051,17 +1066,17 @@ const U = {
1051
1066
  headerClass: d = "",
1052
1067
  hideClose: h = !1,
1053
1068
  iconSize: p = "medium",
1054
- isOpen: C = !1,
1055
- setDialogOpen: g,
1069
+ isOpen: g = !1,
1070
+ setDialogOpen: H,
1056
1071
  stickyHeader: v = !1,
1057
1072
  title: f = "",
1058
1073
  titleClass: m = ""
1059
1074
  }) => {
1060
1075
  const V = Q(null), w = async () => {
1061
- V.current.classList.add("closing"), await j(V.current), V.current.classList.remove("closing"), s && s(), g(!1);
1076
+ V.current.classList.add("closing"), await j(V.current), V.current.classList.remove("closing"), s && s(), H(!1);
1062
1077
  }, b = async (A) => {
1063
1078
  A.key === "Escape" && await w();
1064
- }, S = async ({ clientX: A, clientY: z, target: q }) => {
1079
+ }, k = async ({ clientX: A, clientY: z, target: q }) => {
1065
1080
  const { left: P, right: R, top: W, bottom: G } = V.current.getBoundingClientRect() ?? {};
1066
1081
  (!V.current.contains(q) || A < P || A > R || z < W || z > G) && await w();
1067
1082
  }, j = (A) => Promise.allSettled(
@@ -1069,9 +1084,9 @@ const U = {
1069
1084
  );
1070
1085
  return N(() => {
1071
1086
  const A = V.current;
1072
- A && (C ? A.showModal() : typeof A.close == "function" && A.close());
1073
- }, [C]), /* @__PURE__ */ M(k, { children: [
1074
- c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: c }),
1087
+ A && (g ? A.showModal() : typeof A.close == "function" && A.close());
1088
+ }, [g]), /* @__PURE__ */ M(S, { children: [
1089
+ c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => H(!0), children: c }),
1075
1090
  /* @__PURE__ */ M(
1076
1091
  "dialog",
1077
1092
  {
@@ -1080,13 +1095,13 @@ const U = {
1080
1095
  className: u(
1081
1096
  "dialog",
1082
1097
  {
1083
- hidden: !C,
1098
+ hidden: !g,
1084
1099
  "xs-max:h-full xs-max:max-h-full": i
1085
1100
  },
1086
1101
  a
1087
1102
  ),
1088
1103
  onKeyDown: b,
1089
- onClick: (A) => r ? null : S(A),
1104
+ onClick: (A) => r ? null : k(A),
1090
1105
  children: [
1091
1106
  /* @__PURE__ */ M(
1092
1107
  "header",
@@ -1160,16 +1175,16 @@ const U = {
1160
1175
  const i = document.querySelector(".loading-bar__inner");
1161
1176
  if (!i) return;
1162
1177
  let d, h, p = !1;
1163
- function C(g) {
1164
- d === void 0 && (d = g);
1165
- const v = g - d;
1166
- if (h !== g) {
1178
+ function g(H) {
1179
+ d === void 0 && (d = H);
1180
+ const v = H - d;
1181
+ if (h !== H) {
1167
1182
  const f = v / n * 101;
1168
- i.style.width = `${f}%`, e && e({ elapsed: v, percentage: f }), f >= 101 && (l && l(), p = !0, window.cancelAnimationFrame(g));
1183
+ i.style.width = `${f}%`, e && e({ elapsed: v, percentage: f }), f >= 101 && (l && l(), p = !0, window.cancelAnimationFrame(H));
1169
1184
  }
1170
- v < n && (h = g, p || window.requestAnimationFrame(C));
1185
+ v < n && (h = H, p || window.requestAnimationFrame(g));
1171
1186
  }
1172
- window.requestAnimationFrame(C);
1187
+ window.requestAnimationFrame(g);
1173
1188
  }
1174
1189
  return N(() => {
1175
1190
  r({ cb: c });
@@ -1201,7 +1216,7 @@ const U = {
1201
1216
  disabled: l = !1,
1202
1217
  id: i = "",
1203
1218
  trigger: d = "click"
1204
- }) => /* @__PURE__ */ M(k, { children: [
1219
+ }) => /* @__PURE__ */ M(S, { children: [
1205
1220
  /* @__PURE__ */ o(
1206
1221
  "div",
1207
1222
  {
@@ -1253,8 +1268,8 @@ const U = {
1253
1268
  }) => {
1254
1269
  const d = ((h, p) => {
1255
1270
  if (h) {
1256
- const C = Number(p) / h;
1257
- return C > 1 ? 100 : C * 100;
1271
+ const g = Number(p) / h;
1272
+ return g > 1 ? 100 : g * 100;
1258
1273
  }
1259
1274
  return n;
1260
1275
  })(s, n);
@@ -1336,14 +1351,14 @@ const U = {
1336
1351
  props: d = {},
1337
1352
  selectClass: h = "",
1338
1353
  styles: p = null,
1339
- variation: C = "primary",
1340
- value: g
1354
+ variation: g = "primary",
1355
+ value: H
1341
1356
  }) => {
1342
1357
  const v = i ? { defaultValue: "" } : {};
1343
1358
  return /* @__PURE__ */ M(
1344
1359
  "label",
1345
1360
  {
1346
- className: u("relative select", e, C),
1361
+ className: u("relative select", e, g),
1347
1362
  style: p ? { ...p } : null,
1348
1363
  children: [
1349
1364
  s,
@@ -1357,7 +1372,7 @@ const U = {
1357
1372
  ),
1358
1373
  id: n,
1359
1374
  name: r,
1360
- value: g,
1375
+ value: H,
1361
1376
  ...v,
1362
1377
  ...d,
1363
1378
  children: [
@@ -1510,12 +1525,12 @@ const U = {
1510
1525
  props: d = {},
1511
1526
  styles: h = null,
1512
1527
  type: p = "text",
1513
- value: C,
1514
- variation: g = "primary"
1528
+ value: g,
1529
+ variation: H = "primary"
1515
1530
  }) => /* @__PURE__ */ M(
1516
1531
  "div",
1517
1532
  {
1518
- className: u("relative textbox", g, c),
1533
+ className: u("relative textbox", H, c),
1519
1534
  style: h ? { ...h } : null,
1520
1535
  children: [
1521
1536
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
@@ -1534,7 +1549,7 @@ const U = {
1534
1549
  id: s,
1535
1550
  name: l,
1536
1551
  type: p,
1537
- value: C,
1552
+ value: g,
1538
1553
  autoComplete: "off",
1539
1554
  className: u(
1540
1555
  "form-input",
@@ -1576,7 +1591,7 @@ const U = {
1576
1591
  titleClass: s,
1577
1592
  uppercase: r = !0
1578
1593
  }) => {
1579
- const l = a || /* @__PURE__ */ M(k, { children: [
1594
+ const l = a || /* @__PURE__ */ M(S, { children: [
1580
1595
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1581
1596
  " ",
1582
1597
  /* @__PURE__ */ o(
@@ -1764,7 +1779,7 @@ const U = {
1764
1779
  e
1765
1780
  ]
1766
1781
  }
1767
- ), C2 = w1, S1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: u("stacked-list", e), children: c }), L2 = S1, k1 = ({ align: c = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ o(
1782
+ ), C2 = w1, k1 = ({ children: c, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: u("stacked-list", e), children: c }), L2 = k1, S1 = ({ align: c = "center", children: e, className: t = "", tag: a = "h1", title: n }) => /* @__PURE__ */ o(
1768
1783
  a,
1769
1784
  {
1770
1785
  className: u(
@@ -1778,7 +1793,7 @@ const U = {
1778
1793
  ),
1779
1794
  children: n || e
1780
1795
  }
1781
- ), g2 = x(k1), z1 = {
1796
+ ), g2 = x(S1), z1 = {
1782
1797
  circular: "circular 3s linear infinite",
1783
1798
  "circular-reverse": "circular 3s linear reverse infinite",
1784
1799
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -2096,10 +2111,10 @@ const U = {
2096
2111
  const p = {
2097
2112
  "font-size": h,
2098
2113
  ...a
2099
- }, C = `.${e(`${t}-${d}`)}`, g = n ? n({ sizeKey: d, sizeValue: h }) : {};
2100
- i[C] = {
2114
+ }, g = `.${e(`${t}-${d}`)}`, H = n ? n({ sizeKey: d, sizeValue: h }) : {};
2115
+ i[g] = {
2101
2116
  ...p,
2102
- ...g
2117
+ ...H
2103
2118
  }, Object.entries(r).forEach(([v, f]) => {
2104
2119
  const m = `.${e(`${t}-${d}-${v}`)}`, V = l ? l({ sizeKey: d, sizeValue: h, weightKey: v, weightValue: f }) : {};
2105
2120
  i[m] = {
@@ -2265,7 +2280,7 @@ function w2(c) {
2265
2280
  ), t = /[^a-zA-Z]+$/;
2266
2281
  return e.test(c.toLowerCase()) && !t.test(c);
2267
2282
  }
2268
- class S2 {
2283
+ class k2 {
2269
2284
  init(e) {
2270
2285
  this.handleSliders(e);
2271
2286
  }
@@ -2354,10 +2369,10 @@ class S2 {
2354
2369
  }
2355
2370
  }
2356
2371
  }
2357
- class H {
2372
+ class C {
2358
2373
  static calcCrow(e, t, a, n) {
2359
- const r = H.toRad(a - e), l = H.toRad(n - t);
2360
- e = H.toRad(e), a = H.toRad(a);
2374
+ const r = C.toRad(a - e), l = C.toRad(n - t);
2375
+ e = C.toRad(e), a = C.toRad(a);
2361
2376
  const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(l / 2) * Math.sin(l / 2) * Math.cos(e) * Math.cos(a);
2362
2377
  return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
2363
2378
  }
@@ -2372,9 +2387,9 @@ class H {
2372
2387
  return;
2373
2388
  window.dataLayer = window.dataLayer || [];
2374
2389
  const t = document.querySelectorAll("[data-div-track]");
2375
- typeof H == "function" && t.forEach((a) => {
2390
+ typeof C == "function" && t.forEach((a) => {
2376
2391
  a.addEventListener("click", () => {
2377
- H.clickTrackEvent(a.dataset.divTrack);
2392
+ C.clickTrackEvent(a.dataset.divTrack);
2378
2393
  });
2379
2394
  });
2380
2395
  }
@@ -2387,13 +2402,13 @@ class H {
2387
2402
  static async createData(e, t = null, a = !0) {
2388
2403
  if (window.options.isBot || !t)
2389
2404
  return null;
2390
- const { tolken: n = null, ip: s = null } = await H.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, l = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
2405
+ 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);
2391
2406
  try {
2392
2407
  const d = await fetch(l, {
2393
2408
  method: "POST",
2394
2409
  body: i === "null" ? null : i,
2395
2410
  headers: {
2396
- website: H.getWebsiteHeaderName()
2411
+ website: C.getWebsiteHeaderName()
2397
2412
  }
2398
2413
  }), h = d.headers.get("content-type");
2399
2414
  if (h && h.indexOf("application/json") !== -1)
@@ -2410,7 +2425,7 @@ class H {
2410
2425
  }
2411
2426
  static async deleteSearchValue(e = "recsSearchValue") {
2412
2427
  try {
2413
- return await H.createData(`/api/cookie/remove?name=${e}`);
2428
+ return await C.createData(`/api/cookie/remove?name=${e}`);
2414
2429
  } catch (t) {
2415
2430
  console.error("deleteSearchValue", t.message);
2416
2431
  }
@@ -2461,7 +2476,7 @@ class H {
2461
2476
  static async fetchData(e, t = !1, a = !0) {
2462
2477
  if (options.isBot)
2463
2478
  return null;
2464
- const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2479
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2465
2480
  try {
2466
2481
  const i = await fetch(l, { method: "GET" });
2467
2482
  if (t === !0) {
@@ -2481,8 +2496,8 @@ class H {
2481
2496
  }
2482
2497
  static formatDate(e = null) {
2483
2498
  return e ? (e = new Date(e), [
2484
- H.padTo2Digits(e.getMonth() + 1),
2485
- H.padTo2Digits(e.getDate()),
2499
+ C.padTo2Digits(e.getMonth() + 1),
2500
+ C.padTo2Digits(e.getDate()),
2486
2501
  e.getFullYear()
2487
2502
  ].join("-")) : null;
2488
2503
  }
@@ -2558,15 +2573,15 @@ class H {
2558
2573
  if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
2559
2574
  return r;
2560
2575
  try {
2561
- const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, C = (h == null ? void 0 : h.ip) ?? null;
2576
+ const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, g = (h == null ? void 0 : h.ip) ?? null;
2562
2577
  return localStorage.setItem(
2563
2578
  "headerTolken",
2564
2579
  JSON.stringify({
2565
2580
  tolken: p,
2566
- ip: C,
2581
+ ip: g,
2567
2582
  expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
2568
2583
  })
2569
- ), { tolken: p, ip: C, userAgent: t, platform: s };
2584
+ ), { tolken: p, ip: g, userAgent: t, platform: s };
2570
2585
  } catch (d) {
2571
2586
  console.error("getHeaders", d);
2572
2587
  }
@@ -2579,19 +2594,19 @@ class H {
2579
2594
  }[e];
2580
2595
  }
2581
2596
  static async getLocationData(e) {
2582
- const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2583
- return await H.fetchData("/api/client?query=" + r);
2597
+ const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2598
+ return await C.fetchData("/api/client?query=" + r);
2584
2599
  }
2585
2600
  static getReportUrl(e, t = null) {
2586
2601
  var i, d, h;
2587
2602
  const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((d = e == null ? void 0 : e.city) == null ? void 0 : d.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2588
2603
  t = t || ((e == null ? void 0 : e.id) ?? null);
2589
2604
  const l = [r, "-piq", t].filter((p) => p).join("");
2590
- return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + l;
2605
+ return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + l;
2591
2606
  }
2592
2607
  static async getSearchValue(e = "recsSearchValue") {
2593
2608
  try {
2594
- return await H.createData(`/api/cookie/fetch?name=${e}`);
2609
+ return await C.createData(`/api/cookie/fetch?name=${e}`);
2595
2610
  } catch (t) {
2596
2611
  console.error("getSearchValue", t.message);
2597
2612
  }
@@ -2719,7 +2734,7 @@ class H {
2719
2734
  if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
2720
2735
  return null;
2721
2736
  try {
2722
- return await H.createData("/api/cookie/fetch?name=odrUser");
2737
+ return await C.createData("/api/cookie/fetch?name=odrUser");
2723
2738
  } catch (t) {
2724
2739
  console.error("getUser", t.message);
2725
2740
  }
@@ -2735,7 +2750,7 @@ class H {
2735
2750
  uuid: t
2736
2751
  }
2737
2752
  });
2738
- return await H.makeSearchFetchCall(
2753
+ return await C.makeSearchFetchCall(
2739
2754
  `/api/client?query=user-get-history&filter=${a}`
2740
2755
  );
2741
2756
  }
@@ -2817,7 +2832,7 @@ class H {
2817
2832
  }), p = new MutationObserver((m, V) => {
2818
2833
  m.forEach((w) => {
2819
2834
  w.removedNodes.forEach((b) => {
2820
- b.nodeName === "DIALOG" && (b.removeEventListener("click", v), b.removeEventListener("close", g), b.dispatchEvent(d.removed), p == null || p.disconnect(), h == null || h.disconnect());
2835
+ b.nodeName === "DIALOG" && (b.removeEventListener("click", v), b.removeEventListener("close", H), b.dispatchEvent(d.removed), p == null || p.disconnect(), h == null || h.disconnect());
2821
2836
  });
2822
2837
  });
2823
2838
  });
@@ -2828,18 +2843,18 @@ class H {
2828
2843
  subtree: !1,
2829
2844
  childList: !0
2830
2845
  }));
2831
- const C = () => {
2846
+ const g = () => {
2832
2847
  l == null || l.showModal();
2833
- }, g = async ({ target: m }) => {
2848
+ }, H = async ({ target: m }) => {
2834
2849
  m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(d.closing), m && await f(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(d.closed);
2835
2850
  }, v = async ({ target: m }) => {
2836
2851
  (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(d.outside), l == null || l.close("outside"));
2837
2852
  }, f = (m) => Promise.allSettled(
2838
2853
  m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
2839
2854
  );
2840
- return !s && (l == null || l.addEventListener("click", v)), l == null || l.addEventListener("close", g), r == null || r.forEach((m) => {
2855
+ return !s && (l == null || l.addEventListener("click", v)), l == null || l.addEventListener("close", H), r == null || r.forEach((m) => {
2841
2856
  m.addEventListener("click", (V) => {
2842
- C(), a && a(V, l);
2857
+ g(), a && a(V, l);
2843
2858
  });
2844
2859
  }), i == null || i.forEach((m) => {
2845
2860
  m.addEventListener("click", async (V) => {
@@ -2848,12 +2863,12 @@ class H {
2848
2863
  }), {
2849
2864
  activators: r,
2850
2865
  ref: l,
2851
- handleOpen: C,
2852
- handleClose: g
2866
+ handleOpen: g,
2867
+ handleClose: H
2853
2868
  };
2854
2869
  }
2855
2870
  static hasBoundsEntry(e, t = "bounds") {
2856
- return H.getBoundsEntries(t).includes(e);
2871
+ return C.getBoundsEntries(t).includes(e);
2857
2872
  }
2858
2873
  static initObserver(e, t, a = null) {
2859
2874
  if (!e)
@@ -2912,7 +2927,7 @@ class H {
2912
2927
  url: n,
2913
2928
  data: s
2914
2929
  };
2915
- return await H.createData("/api/client?query=log/save&method=POST", r), null;
2930
+ return await C.createData("/api/client?query=log/save&method=POST", r), null;
2916
2931
  }
2917
2932
  static loadAds() {
2918
2933
  window.dataLayer = window.dataLayer || [];
@@ -2930,7 +2945,7 @@ class H {
2930
2945
  if (e) {
2931
2946
  const s = "/scripts/" + e + ".js?v=" + n;
2932
2947
  try {
2933
- return await H.injectScript({
2948
+ return await C.injectScript({
2934
2949
  src: s,
2935
2950
  id: t || e,
2936
2951
  async: !1,
@@ -2946,11 +2961,11 @@ class H {
2946
2961
  if (window.options.googleMapsLoaded === !0)
2947
2962
  return;
2948
2963
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2949
- await H.injectScript({ src: a, id: "googleapis", async: !1 });
2964
+ await C.injectScript({ src: a, id: "googleapis", async: !1 });
2950
2965
  }
2951
2966
  static async loadLeafletApi() {
2952
2967
  const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", s = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
2953
- await H.injectLink({ href: a, id: "leafletCss" }), await H.injectLink({ href: s, id: "gestureCss" }), await H.injectScript({ src: t, id: "leafletJs", async: !1 }), await H.injectScript({
2968
+ await C.injectLink({ href: a, id: "leafletCss" }), await C.injectLink({ href: s, id: "gestureCss" }), await C.injectScript({ src: t, id: "leafletJs", async: !1 }), await C.injectScript({
2954
2969
  src: n,
2955
2970
  id: "gestureJs",
2956
2971
  async: !1
@@ -2965,7 +2980,7 @@ class H {
2965
2980
  }
2966
2981
  static async loadSwiper() {
2967
2982
  const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
2968
- await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
2983
+ await C.injectLink({ href: a, id: "swiperCss" }), await C.injectScript({ src: t, id: "swiperJs", async: !1 });
2969
2984
  }
2970
2985
  static async makeSearchFetchCall(e) {
2971
2986
  try {
@@ -3004,11 +3019,11 @@ class H {
3004
3019
  state: d = null,
3005
3020
  vin: h = null,
3006
3021
  license: p = null,
3007
- token: C = null,
3008
- phone: g = null
3022
+ token: g = null,
3023
+ phone: H = null
3009
3024
  } = e || {}, v = t && t !== "", f = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
3010
3025
  let V = [];
3011
- return t && t !== "" && V.push("name=" + t), v || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), f && m ? parseInt(r) > parseInt(l) ? (V.push("min=" + l), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + l)) : (f && V.push("min=" + r), m && V.push("max=" + l)), g && g !== "" && V.push("phone=" + g), i && i !== "" && V.push("city=" + i), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), d && d !== "" && V.push("state=" + d), C && C !== "" && V.push("token=" + C), V.join("&");
3026
+ return t && t !== "" && V.push("name=" + t), v || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), f && m ? parseInt(r) > parseInt(l) ? (V.push("min=" + l), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + l)) : (f && V.push("min=" + r), m && V.push("max=" + l)), H && H !== "" && V.push("phone=" + H), i && i !== "" && V.push("city=" + i), p && p !== "" && V.push("license=" + p), h && h !== "" && V.push("vin=" + h), d && d !== "" && V.push("state=" + d), g && g !== "" && V.push("token=" + g), V.join("&");
3012
3027
  }
3013
3028
  static padTo2Digits(e) {
3014
3029
  return e.toString().padStart(2, "0");
@@ -3026,7 +3041,7 @@ class H {
3026
3041
  useLocation: l = !0,
3027
3042
  state: i = "",
3028
3043
  useGoogle: d = !1
3029
- } = t ?? {}, { tolken: h = null, ip: p = null } = await H.getHeaders(), g = [
3044
+ } = t ?? {}, { tolken: h = null, ip: p = null } = await C.getHeaders(), H = [
3030
3045
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3031
3046
  "addressesOnly=" + a,
3032
3047
  "useSearch=" + r,
@@ -3035,9 +3050,9 @@ class H {
3035
3050
  "useLocation=" + l,
3036
3051
  "useGoogle=" + d
3037
3052
  ];
3038
- i && i !== "" && !s && g.push("state=" + i), h && h !== "" && g.push("tolken=" + h), p && p !== "" && g.push("ip=" + p);
3039
- const v = g.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
3040
- return await H.makeSearchFetchCall(m);
3053
+ i && i !== "" && !s && H.push("state=" + i), h && h !== "" && H.push("tolken=" + h), p && p !== "" && H.push("ip=" + p);
3054
+ const v = H.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
3055
+ return await C.makeSearchFetchCall(m);
3041
3056
  }
3042
3057
  static removeElements(e) {
3043
3058
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -3056,7 +3071,7 @@ class H {
3056
3071
  });
3057
3072
  }
3058
3073
  static searchInStates(e) {
3059
- const t = H.getStates(), a = e.toLowerCase();
3074
+ const t = C.getStates(), a = e.toLowerCase();
3060
3075
  let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
3061
3076
  return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
3062
3077
  }
@@ -3064,7 +3079,7 @@ class H {
3064
3079
  typeof woopra == "object" && woopra.track(e, t);
3065
3080
  }
3066
3081
  static setBoundsEntries(e, t = "bounds") {
3067
- const a = H.getBoundsEntries(t);
3082
+ const a = C.getBoundsEntries(t);
3068
3083
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
3069
3084
  }
3070
3085
  static async setCityState(e = null) {
@@ -3073,7 +3088,7 @@ class H {
3073
3088
  return e;
3074
3089
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
3075
3090
  let [a = null, n = null] = t.split(",").map((s) => s.trim());
3076
- if (H.getStates(), a && !n) {
3091
+ if (C.getStates(), a && !n) {
3077
3092
  const s = this.searchInStates(a);
3078
3093
  s && (a = null, n = s.short);
3079
3094
  }
@@ -3091,7 +3106,7 @@ class H {
3091
3106
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
3092
3107
  }
3093
3108
  static async setSearchValueClient(e, t = "recsSearchValue") {
3094
- localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
3109
+ localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
3095
3110
  }
3096
3111
  static stickyHeader(e = ".nav") {
3097
3112
  const t = document.querySelector(e);
@@ -3118,7 +3133,7 @@ class H {
3118
3133
  return t.charAt(0).toUpperCase() + t.slice(1);
3119
3134
  }
3120
3135
  static useLayerTitle(e, t) {
3121
- const a = H.getLayerTitle(e);
3136
+ const a = C.getLayerTitle(e);
3122
3137
  L.tileLayer(a, {
3123
3138
  maxNativeZoom: 19,
3124
3139
  maxZoom: 25,
@@ -3127,7 +3142,7 @@ class H {
3127
3142
  }).addTo(t);
3128
3143
  }
3129
3144
  static ucWords(e) {
3130
- return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
3145
+ return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
3131
3146
  }
3132
3147
  }
3133
3148
  export {
@@ -3138,9 +3153,9 @@ export {
3138
3153
  E as Button,
3139
3154
  X1 as ButtonGroup,
3140
3155
  _1 as Card,
3141
- S2 as CardSlider,
3156
+ k2 as CardSlider,
3142
3157
  e2 as Checkbox,
3143
- H as Common,
3158
+ C as Common,
3144
3159
  f2 as ContactForm,
3145
3160
  t2 as Container,
3146
3161
  V2 as ContentCard,