@vehiclehistory/property-lib 0.0.90 → 0.0.92

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
@@ -524,7 +524,7 @@ const W = {
524
524
  }
525
525
  }
526
526
  );
527
- }, x = A(Q), J = ({
527
+ }, y = A(Q), J = ({
528
528
  children: d,
529
529
  className: e,
530
530
  clickHandler: t,
@@ -559,7 +559,7 @@ const W = {
559
559
  children: [
560
560
  /* @__PURE__ */ c("div", { className: "accordion-title font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
561
561
  /* @__PURE__ */ c("span", { className: "accordion-icon ml-6 h-7 flex items-center", children: /* @__PURE__ */ c(
562
- x,
562
+ y,
563
563
  {
564
564
  name: "chevronDown",
565
565
  size: "small",
@@ -637,7 +637,7 @@ const W = {
637
637
  ...l,
638
638
  children: /* @__PURE__ */ M("div", { className: "flex", children: [
639
639
  /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
640
- x,
640
+ y,
641
641
  {
642
642
  name: i,
643
643
  viewBox: "0 0 24 24",
@@ -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((V, H) => /* @__PURE__ */ c("li", { children: V }, H))
658
+ children: t.map((V, C) => /* @__PURE__ */ c("li", { children: V }, C))
659
659
  }
660
660
  ) : "",
661
661
  d
@@ -677,10 +677,10 @@ const W = {
677
677
  options: u = [],
678
678
  parentProps: p = {},
679
679
  placeholder: V = "",
680
- props: H = {},
680
+ props: C = {},
681
681
  rightIcon: f = "",
682
682
  required: g = !1,
683
- showSearchIcon: y = !0,
683
+ showSearchIcon: x = !0,
684
684
  showRightIcon: h = !1,
685
685
  size: v = "medium",
686
686
  styles: w = null,
@@ -701,7 +701,7 @@ const W = {
701
701
  style: w ? { ...w } : null,
702
702
  ...p,
703
703
  children: [
704
- y && /* @__PURE__ */ M(
704
+ x && /* @__PURE__ */ M(
705
705
  "span",
706
706
  {
707
707
  className: m(
@@ -712,7 +712,7 @@ const W = {
712
712
  ),
713
713
  children: [
714
714
  /* @__PURE__ */ c(
715
- x,
715
+ y,
716
716
  {
717
717
  className: "home-search select-none text-gray-500",
718
718
  name: o,
@@ -721,7 +721,7 @@ const W = {
721
721
  }
722
722
  ),
723
723
  /* @__PURE__ */ c(
724
- x,
724
+ y,
725
725
  {
726
726
  className: "arrow-left select-none text-gray-500 hidden",
727
727
  name: "arrowLeft",
@@ -740,7 +740,7 @@ const W = {
740
740
  className: m(
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
- "pl-8": y === !0,
743
+ "pl-8": x === !0,
744
744
  "px-3 h-10": v === "medium",
745
745
  "px-4 h-12": v === "large",
746
746
  "px-5 h-[60px] sm:!text-base": v === "xLarge",
@@ -755,7 +755,7 @@ const W = {
755
755
  name: i || "search-input",
756
756
  "data-id": "search-input",
757
757
  ...R,
758
- ...H
758
+ ...C
759
759
  }
760
760
  ),
761
761
  n && /* @__PURE__ */ c(
@@ -764,7 +764,7 @@ const W = {
764
764
  className: m(
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
- "!left-7": y === !0,
767
+ "!left-7": x === !0,
768
768
  "left-2": v === "medium",
769
769
  "left-3": v === "large",
770
770
  "left-4": v === "xLarge"
@@ -779,7 +779,7 @@ const W = {
779
779
  "data-id": "search-clear",
780
780
  className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
781
781
  children: /* @__PURE__ */ c(
782
- x,
782
+ y,
783
783
  {
784
784
  className: "cursor-pointer text-gray-500",
785
785
  name: "xCircle",
@@ -795,7 +795,7 @@ const W = {
795
795
  "data-id": "search-loading",
796
796
  className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
797
797
  children: /* @__PURE__ */ c(
798
- x,
798
+ y,
799
799
  {
800
800
  className: "animate-spin text-[#222]] pointer-events-none",
801
801
  name: "spinnerDark",
@@ -810,7 +810,7 @@ const W = {
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(x, { name: f, size: "small", viewBox: "0 0 24 24" })
813
+ children: /* @__PURE__ */ c(y, { name: f, size: "small", viewBox: "0 0 24 24" })
814
814
  }
815
815
  ),
816
816
  /* @__PURE__ */ M(
@@ -881,7 +881,7 @@ const W = {
881
881
  rounded: u = !1,
882
882
  size: p = "md",
883
883
  type: V = "button",
884
- uppercase: H = !1,
884
+ uppercase: C = !1,
885
885
  variation: f = "primary"
886
886
  }) => {
887
887
  const g = l ? "a" : "button";
@@ -897,7 +897,7 @@ const W = {
897
897
  "button--rounded": u,
898
898
  "button--disabled": s,
899
899
  "button--custom-link": l,
900
- "button--uppercase": H,
900
+ "button--uppercase": C,
901
901
  "button--borderless": d || f === "link"
902
902
  },
903
903
  n
@@ -907,7 +907,7 @@ const W = {
907
907
  ...o,
908
908
  children: [
909
909
  e && /* @__PURE__ */ c(
910
- x,
910
+ y,
911
911
  {
912
912
  name: e,
913
913
  size: p === "md" ? "small" : "xSmall",
@@ -917,7 +917,7 @@ const W = {
917
917
  ),
918
918
  a,
919
919
  r && /* @__PURE__ */ c(
920
- x,
920
+ y,
921
921
  {
922
922
  name: r,
923
923
  size: p === "md" ? "small" : "xSmall",
@@ -984,10 +984,10 @@ const W = {
984
984
  headerClass: u,
985
985
  hideClose: p = !1,
986
986
  iconSize: V = "medium",
987
- preventPageScroll: H = !0,
987
+ preventPageScroll: C = !0,
988
988
  stickyHeader: f = !1,
989
989
  title: g = "",
990
- titleClass: y,
990
+ titleClass: x,
991
991
  useFormMethod: h = !0
992
992
  }) => {
993
993
  const v = h ? "form" : "div";
@@ -1004,7 +1004,7 @@ const W = {
1004
1004
  {
1005
1005
  "dialog-full-mobile": i,
1006
1006
  dark: l,
1007
- "prevent-scroll": H
1007
+ "prevent-scroll": C
1008
1008
  },
1009
1009
  a
1010
1010
  ),
@@ -1027,7 +1027,7 @@ const W = {
1027
1027
  u
1028
1028
  ),
1029
1029
  children: [
1030
- g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: y, children: g }),
1030
+ g && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: x, children: g }),
1031
1031
  !p && /* @__PURE__ */ c(
1032
1032
  "button",
1033
1033
  {
@@ -1037,7 +1037,7 @@ const W = {
1037
1037
  "data-dialog-close": "",
1038
1038
  value: "close",
1039
1039
  children: /* @__PURE__ */ c(
1040
- x,
1040
+ y,
1041
1041
  {
1042
1042
  name: "close",
1043
1043
  size: V,
@@ -1091,14 +1091,14 @@ const W = {
1091
1091
  const r = document.querySelector(".loading-bar__inner");
1092
1092
  if (!r) return;
1093
1093
  let i, u, p = !1;
1094
- function V(H) {
1095
- i === void 0 && (i = H);
1096
- const f = H - i;
1097
- if (u !== H) {
1094
+ function V(C) {
1095
+ i === void 0 && (i = C);
1096
+ const f = C - i;
1097
+ if (u !== C) {
1098
1098
  const g = f / n * 101;
1099
- r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(H));
1099
+ r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(C));
1100
1100
  }
1101
- f < n && (u = H, p || window.requestAnimationFrame(V));
1101
+ f < n && (u = C, p || window.requestAnimationFrame(V));
1102
1102
  }
1103
1103
  window.requestAnimationFrame(V);
1104
1104
  }
@@ -1185,9 +1185,9 @@ const W = {
1185
1185
  rounded: r = !0,
1186
1186
  showLabel: i = !1
1187
1187
  }) => {
1188
- const p = ((V, H) => {
1188
+ const p = ((V, C) => {
1189
1189
  if (V) {
1190
- const f = Number(H) / V;
1190
+ const f = Number(C) / V;
1191
1191
  return f > 1 ? 100 : f * 100;
1192
1192
  }
1193
1193
  return n;
@@ -1283,7 +1283,7 @@ const W = {
1283
1283
  variation: p = "primary",
1284
1284
  value: V
1285
1285
  }) => {
1286
- const H = o ? { defaultValue: "" } : {};
1286
+ const C = o ? { defaultValue: "" } : {};
1287
1287
  return /* @__PURE__ */ M(
1288
1288
  "label",
1289
1289
  {
@@ -1304,7 +1304,7 @@ const W = {
1304
1304
  id: a,
1305
1305
  name: s,
1306
1306
  value: V,
1307
- ...H,
1307
+ ...C,
1308
1308
  ...r,
1309
1309
  children: [
1310
1310
  o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
@@ -1331,7 +1331,7 @@ const W = {
1331
1331
  d
1332
1332
  ),
1333
1333
  children: [
1334
- /* @__PURE__ */ c(x, { size: "xLarge", name: "map", className: "mx-auto" }),
1334
+ /* @__PURE__ */ c(y, { size: "xLarge", name: "map", className: "mx-auto" }),
1335
1335
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1336
1336
  ]
1337
1337
  }
@@ -1349,7 +1349,7 @@ const W = {
1349
1349
  id: `btn-left-${a}`,
1350
1350
  type: "button",
1351
1351
  className: "slider-button__prev ",
1352
- children: /* @__PURE__ */ c(x, { name: "chevronLeft" })
1352
+ children: /* @__PURE__ */ c(y, { name: "chevronLeft" })
1353
1353
  }
1354
1354
  ),
1355
1355
  /* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
@@ -1367,11 +1367,11 @@ const W = {
1367
1367
  id: `btn-right-${a}`,
1368
1368
  type: "button",
1369
1369
  className: "slider-button__next",
1370
- children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1370
+ children: /* @__PURE__ */ c(y, { name: "chevronRight" })
1371
1371
  }
1372
1372
  )
1373
1373
  ] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1374
- x,
1374
+ y,
1375
1375
  {
1376
1376
  className: m("animate-spin text-black-900", e),
1377
1377
  size: "xSmall",
@@ -1433,7 +1433,7 @@ const W = {
1433
1433
  id: `${n}-clear`,
1434
1434
  className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
1435
1435
  children: /* @__PURE__ */ c(
1436
- x,
1436
+ y,
1437
1437
  {
1438
1438
  size: "xSmall",
1439
1439
  name: "xCircle",
@@ -1457,15 +1457,15 @@ const W = {
1457
1457
  styles: u = null,
1458
1458
  type: p = "text",
1459
1459
  value: V,
1460
- variation: H = "primary"
1460
+ variation: C = "primary"
1461
1461
  }) => /* @__PURE__ */ M(
1462
1462
  "div",
1463
1463
  {
1464
- className: m("relative textbox", H, d),
1464
+ className: m("relative textbox", C, d),
1465
1465
  style: u ? { ...u } : null,
1466
1466
  children: [
1467
1467
  n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
1468
- x,
1468
+ y,
1469
1469
  {
1470
1470
  size: "xSmall",
1471
1471
  name: n,
@@ -1501,7 +1501,7 @@ const W = {
1501
1501
  id: `${s}-clear`,
1502
1502
  className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
1503
1503
  children: /* @__PURE__ */ c(
1504
- x,
1504
+ y,
1505
1505
  {
1506
1506
  size: "xSmall",
1507
1507
  name: "xCircle",
@@ -2064,13 +2064,13 @@ const W = {
2064
2064
  const p = {
2065
2065
  "font-size": u,
2066
2066
  ...a
2067
- }, V = `.${e(`${t}-${i}`)}`, H = n ? n({ sizeKey: i, sizeValue: u }) : {};
2067
+ }, V = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: u }) : {};
2068
2068
  r[V] = {
2069
2069
  ...p,
2070
- ...H
2070
+ ...C
2071
2071
  }, Object.entries(l).forEach(([f, g]) => {
2072
- const y = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: g }) : {};
2073
- r[y] = {
2072
+ const x = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: g }) : {};
2073
+ r[x] = {
2074
2074
  ...p,
2075
2075
  "font-weight": g,
2076
2076
  ...h
@@ -2159,6 +2159,7 @@ const W = {
2159
2159
  6: "1rem"
2160
2160
  }, o = {
2161
2161
  1: "0.938rem",
2162
+ "1.5": "0.875rem",
2162
2163
  2: "0.813rem",
2163
2164
  3: "0.75rem"
2164
2165
  };
@@ -2322,10 +2323,10 @@ class h2 {
2322
2323
  }
2323
2324
  }
2324
2325
  }
2325
- class C {
2326
+ class H {
2326
2327
  static calcCrow(e, t, a, n) {
2327
- const l = C.toRad(a - e), o = C.toRad(n - t);
2328
- e = C.toRad(e), a = C.toRad(a);
2328
+ const l = H.toRad(a - e), o = H.toRad(n - t);
2329
+ e = H.toRad(e), a = H.toRad(a);
2329
2330
  const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
2330
2331
  return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
2331
2332
  }
@@ -2340,9 +2341,9 @@ class C {
2340
2341
  return;
2341
2342
  window.dataLayer = window.dataLayer || [];
2342
2343
  const t = document.querySelectorAll("[data-div-track]");
2343
- typeof C == "function" && t.forEach((a) => {
2344
+ typeof H == "function" && t.forEach((a) => {
2344
2345
  a.addEventListener("click", () => {
2345
- C.clickTrackEvent(a.dataset.divTrack);
2346
+ H.clickTrackEvent(a.dataset.divTrack);
2346
2347
  });
2347
2348
  });
2348
2349
  }
@@ -2355,7 +2356,7 @@ class C {
2355
2356
  static async createData(e, t = null, a = !0, n = {}) {
2356
2357
  if (window.options.isBot || !t)
2357
2358
  return null;
2358
- const { tolken: s = null, ip: l = null } = await C.getHeaders(), o = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + o, i = typeof t == "string" ? t : JSON.stringify(t), u = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2359
+ const { tolken: s = null, ip: l = null } = await H.getHeaders(), o = a === !1 ? "" : "&tolken=" + s + "&ip=" + l, r = e + o, i = typeof t == "string" ? t : JSON.stringify(t), u = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
2359
2360
  try {
2360
2361
  const p = await fetch(r, {
2361
2362
  method: "POST",
@@ -2367,8 +2368,8 @@ class C {
2367
2368
  }), V = p.headers.get("content-type");
2368
2369
  if (V && V.indexOf("application/json") !== -1)
2369
2370
  return p.json();
2370
- const H = await p.text();
2371
- return H ? H.replace("__next", "") : null;
2371
+ const C = await p.text();
2372
+ return C ? C.replace("__next", "") : null;
2372
2373
  } catch (p) {
2373
2374
  console.error("createData", p);
2374
2375
  }
@@ -2379,7 +2380,7 @@ class C {
2379
2380
  }
2380
2381
  static async deleteSearchValue(e = "recsSearchValue") {
2381
2382
  try {
2382
- return await C.createData(`/api/cookie/remove?name=${e}`);
2383
+ return await H.createData(`/api/cookie/remove?name=${e}`);
2383
2384
  } catch (t) {
2384
2385
  console.error("deleteSearchValue", t.message);
2385
2386
  }
@@ -2430,7 +2431,7 @@ class C {
2430
2431
  static async fetchData(e, t = !1, a = !0) {
2431
2432
  if (options.isBot)
2432
2433
  return null;
2433
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2434
+ const { tolken: n = null, ip: s = null } = await H.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2434
2435
  try {
2435
2436
  const r = await fetch(o, { method: "GET" });
2436
2437
  if (t === !0) {
@@ -2450,8 +2451,8 @@ class C {
2450
2451
  }
2451
2452
  static formatDate(e = null) {
2452
2453
  return e ? (e = new Date(e), [
2453
- C.padTo2Digits(e.getMonth() + 1),
2454
- C.padTo2Digits(e.getDate()),
2454
+ H.padTo2Digits(e.getMonth() + 1),
2455
+ H.padTo2Digits(e.getDate()),
2455
2456
  e.getFullYear()
2456
2457
  ].join("-")) : null;
2457
2458
  }
@@ -2548,19 +2549,19 @@ class C {
2548
2549
  }[e];
2549
2550
  }
2550
2551
  static async getLocationData(e) {
2551
- const { swLat: t, neLng: a, neLat: n, swLng: s } = C.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2552
- return await C.fetchData("/api/client?query=" + l);
2552
+ const { swLat: t, neLng: a, neLat: n, swLng: s } = H.getBounds(e, 3, 0.05), l = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2553
+ return await H.fetchData("/api/client?query=" + l);
2553
2554
  }
2554
2555
  static getReportUrl(e, t = null) {
2555
2556
  var r, i, u;
2556
2557
  const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((i = e == null ? void 0 : e.city) == null ? void 0 : i.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
2557
2558
  t = t || ((e == null ? void 0 : e.id) ?? null);
2558
2559
  const o = [l, "-piq", t].filter((p) => p).join("");
2559
- return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + o;
2560
+ return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + o;
2560
2561
  }
2561
2562
  static async getSearchValue(e = "recsSearchValue") {
2562
2563
  try {
2563
- return await C.createData(`/api/cookie/fetch?name=${e}`);
2564
+ return await H.createData(`/api/cookie/fetch?name=${e}`);
2564
2565
  } catch (t) {
2565
2566
  console.error("getSearchValue", t.message);
2566
2567
  }
@@ -2688,7 +2689,7 @@ class C {
2688
2689
  if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
2689
2690
  return null;
2690
2691
  try {
2691
- return await C.createData("/api/cookie/fetch?name=odrUser");
2692
+ return await H.createData("/api/cookie/fetch?name=odrUser");
2692
2693
  } catch (t) {
2693
2694
  console.error("getUser", t.message);
2694
2695
  }
@@ -2704,7 +2705,7 @@ class C {
2704
2705
  uuid: t
2705
2706
  }
2706
2707
  });
2707
- return await C.makeSearchFetchCall(
2708
+ return await H.makeSearchFetchCall(
2708
2709
  `/api/client?query=user-get-history&filter=${a}`
2709
2710
  );
2710
2711
  }
@@ -2784,28 +2785,28 @@ class C {
2784
2785
  if (w.attributeName === "open") {
2785
2786
  const b = w.target;
2786
2787
  if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
2787
- b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await y(b), b == null || b.dispatchEvent(p.opened);
2788
+ b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await x(b), b == null || b.dispatchEvent(p.opened);
2788
2789
  }
2789
2790
  });
2790
- }), H = new MutationObserver((h, v) => {
2791
+ }), C = new MutationObserver((h, v) => {
2791
2792
  h.forEach((w) => {
2792
2793
  w.removedNodes.forEach((b) => {
2793
- b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), H == null || H.disconnect(), V == null || V.disconnect());
2794
+ b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
2794
2795
  });
2795
2796
  });
2796
2797
  });
2797
2798
  i && (V.observe(i, {
2798
2799
  attributes: !0
2799
- }), H.observe(document.body, {
2800
+ }), C.observe(document.body, {
2800
2801
  attributes: !1,
2801
2802
  subtree: !1,
2802
2803
  childList: !0
2803
2804
  }));
2804
2805
  const f = async ({ target: h }) => {
2805
- h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
2806
+ h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await x(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
2806
2807
  }, g = async ({ target: h }) => {
2807
2808
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), i == null || i.close("outside"));
2808
- }, y = (h) => Promise.allSettled(
2809
+ }, x = (h) => Promise.allSettled(
2809
2810
  h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
2810
2811
  );
2811
2812
  return !e && (i == null || i.addEventListener("click", g)), i == null || i.addEventListener("close", async (h) => {
@@ -2830,7 +2831,7 @@ class C {
2830
2831
  };
2831
2832
  }
2832
2833
  static hasBoundsEntry(e, t = "bounds") {
2833
- return C.getBoundsEntries(t).includes(e);
2834
+ return H.getBoundsEntries(t).includes(e);
2834
2835
  }
2835
2836
  static initObserver(e, t, a = null) {
2836
2837
  if (!e)
@@ -2889,7 +2890,7 @@ class C {
2889
2890
  url: n,
2890
2891
  data: s
2891
2892
  };
2892
- return await C.createData("/api/client?query=log/save&method=POST", l), null;
2893
+ return await H.createData("/api/client?query=log/save&method=POST", l), null;
2893
2894
  }
2894
2895
  static loadAds() {
2895
2896
  window.dataLayer = window.dataLayer || [];
@@ -2907,7 +2908,7 @@ class C {
2907
2908
  if (e) {
2908
2909
  const s = "/scripts/" + e + ".js?v=" + n;
2909
2910
  try {
2910
- return await C.injectScript({
2911
+ return await H.injectScript({
2911
2912
  src: s,
2912
2913
  id: t || e,
2913
2914
  async: !1,
@@ -2923,11 +2924,11 @@ class C {
2923
2924
  if (window.options.googleMapsLoaded === !0)
2924
2925
  return;
2925
2926
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2926
- await C.injectScript({ src: a, id: "googleapis", async: !1 });
2927
+ await H.injectScript({ src: a, id: "googleapis", async: !1 });
2927
2928
  }
2928
2929
  static async loadLeafletApi() {
2929
2930
  const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
2930
- await C.injectLink({ href: t, id: "leafletCss" }), await C.injectLink({ href: n, id: "gestureCss" }), await C.injectScript({ src: e, id: "leafletJs", async: !1 }), await C.injectScript({
2931
+ await H.injectLink({ href: t, id: "leafletCss" }), await H.injectLink({ href: n, id: "gestureCss" }), await H.injectScript({ src: e, id: "leafletJs", async: !1 }), await H.injectScript({
2931
2932
  src: a,
2932
2933
  id: "gestureJs",
2933
2934
  async: !1
@@ -2942,7 +2943,7 @@ class C {
2942
2943
  }
2943
2944
  static async loadSwiper() {
2944
2945
  const e = "/slider/swiper-bundle.min.js";
2945
- await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
2946
+ await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
2946
2947
  }
2947
2948
  static async makeSearchFetchCall(e) {
2948
2949
  try {
@@ -2982,10 +2983,10 @@ class C {
2982
2983
  vin: u = null,
2983
2984
  license: p = null,
2984
2985
  token: V = null,
2985
- phone: H = null
2986
- } = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", y = o && o !== "" && l !== "99";
2986
+ phone: C = null
2987
+ } = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", x = o && o !== "" && l !== "99";
2987
2988
  let h = [];
2988
- 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)), g && y ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (g && h.push("min=" + l), y && h.push("max=" + o)), H && H !== "" && h.push("phone=" + H), r && r !== "" && h.push("city=" + r), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), V && V !== "" && h.push("token=" + V), h.join("&");
2989
+ 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)), g && x ? parseInt(l) > parseInt(o) ? (h.push("min=" + o), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + o)) : (g && h.push("min=" + l), x && h.push("max=" + o)), C && C !== "" && h.push("phone=" + C), r && r !== "" && h.push("city=" + r), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), i && i !== "" && h.push("state=" + i), V && V !== "" && h.push("token=" + V), h.join("&");
2989
2990
  }
2990
2991
  static padTo2Digits(e) {
2991
2992
  return e.toString().padStart(2, "0");
@@ -3005,8 +3006,9 @@ class C {
3005
3006
  useGoogle: i = !1,
3006
3007
  useGoogleOverride: u = !1,
3007
3008
  useAmazonOverride: p = !1,
3008
- isSandboxAccount: V = !1
3009
- } = t ?? {}, { tolken: H = null, ip: f = null } = await C.getHeaders(), y = [
3009
+ isSandboxAccount: V = !1,
3010
+ isOptOutSearch: C = !1
3011
+ } = t ?? {}, { tolken: f = null, ip: g = null } = await H.getHeaders(), h = [
3010
3012
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3011
3013
  "addressesOnly=" + a,
3012
3014
  "useSearch=" + l,
@@ -3016,11 +3018,12 @@ class C {
3016
3018
  "useGoogle=" + i,
3017
3019
  "useGoogleOverride=" + u,
3018
3020
  "useAmazonOverride=" + p,
3019
- "isSandboxAccount=" + V
3021
+ "isSandboxAccount=" + V,
3022
+ "isOptOutSearch=" + C
3020
3023
  ];
3021
- r && r !== "" && !s && y.push("state=" + r), H && H !== "" && y.push("tolken=" + H), f && f !== "" && y.push("ip=" + f);
3022
- const h = y.join("&"), w = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3023
- return await C.makeSearchFetchCall(w);
3024
+ r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), g && g !== "" && h.push("ip=" + g);
3025
+ const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
3026
+ return await H.makeSearchFetchCall(b);
3024
3027
  }
3025
3028
  static removeElements(e) {
3026
3029
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -3039,7 +3042,7 @@ class C {
3039
3042
  });
3040
3043
  }
3041
3044
  static searchInStates(e) {
3042
- const t = C.getStates(), a = e.toLowerCase();
3045
+ const t = H.getStates(), a = e.toLowerCase();
3043
3046
  let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
3044
3047
  return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
3045
3048
  }
@@ -3047,7 +3050,7 @@ class C {
3047
3050
  typeof woopra == "object" && woopra.track(e, t);
3048
3051
  }
3049
3052
  static setBoundsEntries(e, t = "bounds") {
3050
- const a = C.getBoundsEntries(t);
3053
+ const a = H.getBoundsEntries(t);
3051
3054
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
3052
3055
  }
3053
3056
  static async setCityState(e = null) {
@@ -3056,7 +3059,7 @@ class C {
3056
3059
  return e;
3057
3060
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
3058
3061
  let [a = null, n = null] = t.split(",").map((s) => s.trim());
3059
- if (C.getStates(), a && !n) {
3062
+ if (H.getStates(), a && !n) {
3060
3063
  const s = this.searchInStates(a);
3061
3064
  s && (a = null, n = s.short);
3062
3065
  }
@@ -3090,7 +3093,7 @@ class C {
3090
3093
  }
3091
3094
  }
3092
3095
  static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
3093
- localStorage.setItem(t, JSON.stringify(e)), await C.createData(
3096
+ localStorage.setItem(t, JSON.stringify(e)), await H.createData(
3094
3097
  `/api/cookie/create?name=${t}`,
3095
3098
  e,
3096
3099
  !0,
@@ -3122,7 +3125,7 @@ class C {
3122
3125
  return t.charAt(0).toUpperCase() + t.slice(1);
3123
3126
  }
3124
3127
  static useLayerTitle(e, t) {
3125
- const a = C.getLayerTitle(e);
3128
+ const a = H.getLayerTitle(e);
3126
3129
  L.tileLayer(a, {
3127
3130
  maxNativeZoom: 19,
3128
3131
  maxZoom: 25,
@@ -3131,7 +3134,7 @@ class C {
3131
3134
  }).addTo(t);
3132
3135
  }
3133
3136
  static ucWords(e) {
3134
- return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
3137
+ return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
3135
3138
  }
3136
3139
  /**
3137
3140
  * HOW TO USE EVENTS
@@ -3181,14 +3184,14 @@ export {
3181
3184
  F as Button,
3182
3185
  h2 as CardSlider,
3183
3186
  B1 as Checkbox,
3184
- C as Common,
3187
+ H as Common,
3185
3188
  K1 as ContactForm,
3186
3189
  X1 as ContentCard,
3187
3190
  I1 as Dialog,
3188
3191
  $1 as Dots,
3189
3192
  e2 as FlexItem,
3190
3193
  n2 as FunnelHeader,
3191
- x as Icon,
3194
+ y as Icon,
3192
3195
  q1 as LoadingBar,
3193
3196
  P1 as Popover,
3194
3197
  j1 as ProcessingSpinner,