@vehiclehistory/property-lib 0.0.981 → 0.0.982

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
- }, A = y(Q), J = ({
527
+ }, x = y(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
- A,
562
+ x,
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
- A,
640
+ x,
641
641
  {
642
642
  name: o,
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: p = [],
678
678
  parentProps: u = {},
679
679
  placeholder: V = "",
680
- props: H = {},
680
+ props: C = {},
681
681
  rightIcon: f = "",
682
682
  required: b = !1,
683
- showSearchIcon: x = !0,
683
+ showSearchIcon: A = !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
  ...u,
703
703
  children: [
704
- x && /* @__PURE__ */ M(
704
+ A && /* @__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
- A,
715
+ x,
716
716
  {
717
717
  className: "home-search select-none text-gray-500",
718
718
  name: i,
@@ -721,7 +721,7 @@ const W = {
721
721
  }
722
722
  ),
723
723
  /* @__PURE__ */ c(
724
- A,
724
+ x,
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": x === !0,
743
+ "pl-8": A === !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: o || "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": x === !0,
767
+ "!left-7": A === !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
- A,
782
+ x,
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
- A,
798
+ x,
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(A, { name: f, size: "small", viewBox: "0 0 24 24" })
813
+ children: /* @__PURE__ */ c(x, { 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: p = !1,
882
882
  size: u = "md",
883
883
  type: V = "button",
884
- uppercase: H = !1,
884
+ uppercase: C = !1,
885
885
  variation: f = "primary"
886
886
  }) => {
887
887
  const b = l ? "a" : "button";
@@ -897,7 +897,7 @@ const W = {
897
897
  "button--rounded": p,
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
  ...i,
908
908
  children: [
909
909
  e && /* @__PURE__ */ c(
910
- A,
910
+ x,
911
911
  {
912
912
  name: e,
913
913
  size: u === "md" ? "small" : "xSmall",
@@ -917,7 +917,7 @@ const W = {
917
917
  ),
918
918
  a,
919
919
  r && /* @__PURE__ */ c(
920
- A,
920
+ x,
921
921
  {
922
922
  name: r,
923
923
  size: u === "md" ? "small" : "xSmall",
@@ -984,10 +984,10 @@ const W = {
984
984
  headerClass: p,
985
985
  hideClose: u = !1,
986
986
  iconSize: V = "medium",
987
- preventPageScroll: H = !0,
987
+ preventPageScroll: C = !0,
988
988
  sheet: f = !1,
989
989
  sheetDirection: b = "right",
990
- stickyHeader: x = !1,
990
+ stickyHeader: A = !1,
991
991
  title: h = "",
992
992
  titleClass: v,
993
993
  useFormMethod: w = !0
@@ -1008,7 +1008,7 @@ const W = {
1008
1008
  "dialog-sheet": f,
1009
1009
  dark: l,
1010
1010
  "dialog-sheet--right": b === "right" && f,
1011
- "prevent-scroll": H
1011
+ "prevent-scroll": C
1012
1012
  },
1013
1013
  a
1014
1014
  ),
@@ -1024,7 +1024,7 @@ const W = {
1024
1024
  className: m(
1025
1025
  "dialog-header",
1026
1026
  {
1027
- "sticky top-0 bg-white z-10": x,
1027
+ "sticky top-0 bg-white z-10": A,
1028
1028
  "!pb-0 border-0 justify-end": !h,
1029
1029
  "justify-between border-b": h
1030
1030
  },
@@ -1041,7 +1041,7 @@ const W = {
1041
1041
  "data-dialog-close": "",
1042
1042
  value: "close",
1043
1043
  children: /* @__PURE__ */ c(
1044
- A,
1044
+ x,
1045
1045
  {
1046
1046
  name: "close",
1047
1047
  size: V,
@@ -1087,42 +1087,45 @@ const W = {
1087
1087
  cb: d,
1088
1088
  onUpdate: e,
1089
1089
  className: t = "",
1090
- size: a = "md",
1091
- timeout: n = 1e4,
1092
- variation: s = "primary"
1090
+ selector: a = "",
1091
+ size: n = "md",
1092
+ timeout: s = 1e4,
1093
+ variation: l = "primary"
1093
1094
  }) => {
1094
- function l({ cb: i }) {
1095
- const r = document.querySelector(".loading-bar__inner");
1096
- if (!r) return;
1097
- let o, p, u = !1;
1098
- function V(H) {
1099
- o === void 0 && (o = H);
1100
- const f = H - o;
1101
- if (p !== H) {
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(H));
1095
+ function i({ cb: r }) {
1096
+ const o = document.querySelector(
1097
+ `.loading-bar__inner${a ? `.${a}` : ""}`
1098
+ );
1099
+ if (!o) return;
1100
+ let p, u, V = !1;
1101
+ function C(f) {
1102
+ p === void 0 && (p = f);
1103
+ const b = f - p;
1104
+ if (u !== f) {
1105
+ const A = b / s * 101;
1106
+ o.style.width = `${A}%`, e && e({ elapsed: b, percentage: A }), A >= 101 && (r && r(), V = !0, window.cancelAnimationFrame(f));
1104
1107
  }
1105
- f < n && (p = H, u || window.requestAnimationFrame(V));
1108
+ b < s && (u = f, V || window.requestAnimationFrame(C));
1106
1109
  }
1107
- window.requestAnimationFrame(V);
1110
+ window.requestAnimationFrame(C);
1108
1111
  }
1109
1112
  return N(() => {
1110
- l({ cb: d });
1113
+ i({ cb: d });
1111
1114
  }, []), /* @__PURE__ */ c(
1112
1115
  "div",
1113
1116
  {
1114
1117
  className: m(
1115
1118
  "loading-bar my-8",
1116
- `loading-bar__${s}`,
1119
+ `loading-bar__${l}`,
1117
1120
  {
1118
- "h-4": a === "md",
1119
- "h-6": a === "lg",
1120
- "h-8": a === "xl"
1121
+ "h-4": n === "md",
1122
+ "h-6": n === "lg",
1123
+ "h-8": n === "xl"
1121
1124
  },
1122
- `loading-bar__${a}`,
1125
+ `loading-bar__${n}`,
1123
1126
  t
1124
1127
  ),
1125
- children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
1128
+ children: /* @__PURE__ */ c("div", { className: `loading-bar__inner ${a}`, "data-size": "100" })
1126
1129
  }
1127
1130
  );
1128
1131
  }, q1 = y(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), j1 = y(t1), P1 = ({
@@ -1189,9 +1192,9 @@ const W = {
1189
1192
  rounded: r = !0,
1190
1193
  showLabel: o = !1
1191
1194
  }) => {
1192
- const u = ((V, H) => {
1195
+ const u = ((V, C) => {
1193
1196
  if (V) {
1194
- const f = Number(H) / V;
1197
+ const f = Number(C) / V;
1195
1198
  return f > 1 ? 100 : f * 100;
1196
1199
  }
1197
1200
  return n;
@@ -1287,7 +1290,7 @@ const W = {
1287
1290
  variation: u = "primary",
1288
1291
  value: V
1289
1292
  }) => {
1290
- const H = i ? { defaultValue: "" } : {};
1293
+ const C = i ? { defaultValue: "" } : {};
1291
1294
  return /* @__PURE__ */ M(
1292
1295
  "label",
1293
1296
  {
@@ -1308,7 +1311,7 @@ const W = {
1308
1311
  id: a,
1309
1312
  name: s,
1310
1313
  value: V,
1311
- ...H,
1314
+ ...C,
1312
1315
  ...r,
1313
1316
  children: [
1314
1317
  i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
@@ -1335,7 +1338,7 @@ const W = {
1335
1338
  d
1336
1339
  ),
1337
1340
  children: [
1338
- /* @__PURE__ */ c(A, { size: "xLarge", name: "map", className: "mx-auto" }),
1341
+ /* @__PURE__ */ c(x, { size: "xLarge", name: "map", className: "mx-auto" }),
1339
1342
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1340
1343
  ]
1341
1344
  }
@@ -1353,7 +1356,7 @@ const W = {
1353
1356
  id: `btn-left-${a}`,
1354
1357
  type: "button",
1355
1358
  className: "slider-button__prev ",
1356
- children: /* @__PURE__ */ c(A, { name: "chevronLeft" })
1359
+ children: /* @__PURE__ */ c(x, { name: "chevronLeft" })
1357
1360
  }
1358
1361
  ),
1359
1362
  /* @__PURE__ */ c("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, l) => /* @__PURE__ */ c(
@@ -1371,11 +1374,11 @@ const W = {
1371
1374
  id: `btn-right-${a}`,
1372
1375
  type: "button",
1373
1376
  className: "slider-button__next",
1374
- children: /* @__PURE__ */ c(A, { name: "chevronRight" })
1377
+ children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1375
1378
  }
1376
1379
  )
1377
1380
  ] }), Q1 = y(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(
1378
- A,
1381
+ x,
1379
1382
  {
1380
1383
  className: m("animate-spin text-black-900", e),
1381
1384
  size: "xSmall",
@@ -1437,7 +1440,7 @@ const W = {
1437
1440
  id: `${n}-clear`,
1438
1441
  className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
1439
1442
  children: /* @__PURE__ */ c(
1440
- A,
1443
+ x,
1441
1444
  {
1442
1445
  size: "xSmall",
1443
1446
  name: "xCircle",
@@ -1461,15 +1464,15 @@ const W = {
1461
1464
  styles: p = null,
1462
1465
  type: u = "text",
1463
1466
  value: V,
1464
- variation: H = "primary"
1467
+ variation: C = "primary"
1465
1468
  }) => /* @__PURE__ */ M(
1466
1469
  "div",
1467
1470
  {
1468
- className: m("relative textbox", H, d),
1471
+ className: m("relative textbox", C, d),
1469
1472
  style: p ? { ...p } : null,
1470
1473
  children: [
1471
1474
  n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
1472
- A,
1475
+ x,
1473
1476
  {
1474
1477
  size: "xSmall",
1475
1478
  name: n,
@@ -1505,7 +1508,7 @@ const W = {
1505
1508
  id: `${s}-clear`,
1506
1509
  className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
1507
1510
  children: /* @__PURE__ */ c(
1508
- A,
1511
+ x,
1509
1512
  {
1510
1513
  size: "xSmall",
1511
1514
  name: "xCircle",
@@ -2090,13 +2093,13 @@ const W = {
2090
2093
  const u = {
2091
2094
  "font-size": p,
2092
2095
  ...a
2093
- }, V = `.${e(`${t}-${o}`)}`, H = n ? n({ sizeKey: o, sizeValue: p }) : {};
2096
+ }, V = `.${e(`${t}-${o}`)}`, C = n ? n({ sizeKey: o, sizeValue: p }) : {};
2094
2097
  r[V] = {
2095
2098
  ...u,
2096
- ...H
2099
+ ...C
2097
2100
  }, 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
- r[x] = {
2101
+ const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: b }) : {};
2102
+ r[A] = {
2100
2103
  ...u,
2101
2104
  "font-weight": b,
2102
2105
  ...h
@@ -2349,10 +2352,10 @@ class h2 {
2349
2352
  }
2350
2353
  }
2351
2354
  }
2352
- class C {
2355
+ class H {
2353
2356
  static calcCrow(e, t, a, n) {
2354
- const l = C.toRad(a - e), i = C.toRad(n - t);
2355
- e = C.toRad(e), a = C.toRad(a);
2357
+ const l = H.toRad(a - e), i = H.toRad(n - t);
2358
+ e = H.toRad(e), a = H.toRad(a);
2356
2359
  const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(i / 2) * Math.sin(i / 2) * Math.cos(e) * Math.cos(a);
2357
2360
  return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
2358
2361
  }
@@ -2367,9 +2370,9 @@ class C {
2367
2370
  return;
2368
2371
  window.dataLayer = window.dataLayer || [];
2369
2372
  const t = document.querySelectorAll("[data-div-track]");
2370
- typeof C == "function" && t.forEach((a) => {
2373
+ typeof H == "function" && t.forEach((a) => {
2371
2374
  a.addEventListener("click", () => {
2372
- C.clickTrackEvent(a.dataset.divTrack);
2375
+ H.clickTrackEvent(a.dataset.divTrack);
2373
2376
  });
2374
2377
  });
2375
2378
  }
@@ -2405,15 +2408,15 @@ class C {
2405
2408
  ip: p = null,
2406
2409
  sessionId: u = null,
2407
2410
  user: V = null
2408
- } = (window == null ? void 0 : window.options) ?? {}, { id: H = null } = V ?? {};
2409
- t.userId = s ?? H, t.isHeads = i, t.isLoggedIn = r, t.url = o, await C.createData(
2411
+ } = (window == null ? void 0 : window.options) ?? {}, { id: C = null } = V ?? {};
2412
+ t.userId = s ?? C, t.isHeads = i, t.isLoggedIn = r, t.url = o, await H.createData(
2410
2413
  "/api/event",
2411
2414
  {
2412
2415
  payload: {
2413
2416
  data: t,
2414
2417
  type: a,
2415
2418
  name: n,
2416
- userId: s ?? H,
2419
+ userId: s ?? C,
2417
2420
  url: window.location.href,
2418
2421
  ip: p,
2419
2422
  sessionId: u,
@@ -2426,7 +2429,7 @@ class C {
2426
2429
  static async createData(e, t = null, a = !0, n = {}) {
2427
2430
  if (!t)
2428
2431
  return null;
2429
- const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2432
+ const s = await this.createDataGetExtra({ useExtra: a }), l = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
2430
2433
  try {
2431
2434
  const r = await fetch(e + s, {
2432
2435
  method: "POST",
@@ -2443,7 +2446,7 @@ class C {
2443
2446
  return null;
2444
2447
  }
2445
2448
  static async createDataGetExtra({ useExtra: e }) {
2446
- const { tolken: t = null, ip: a = null } = await C.getHeaders();
2449
+ const { tolken: t = null, ip: a = null } = await H.getHeaders();
2447
2450
  return e === !1 ? "" : "&tolken=" + t + "&ip=" + a;
2448
2451
  }
2449
2452
  static async createDataReturn(e) {
@@ -2458,7 +2461,7 @@ class C {
2458
2461
  }
2459
2462
  static async deleteSearchValue(e = "recsSearchValue") {
2460
2463
  try {
2461
- return await C.createData(`/api/cookie/remove?name=${e}`);
2464
+ return await H.createData(`/api/cookie/remove?name=${e}`);
2462
2465
  } catch (t) {
2463
2466
  console.error("deleteSearchValue", t.message);
2464
2467
  }
@@ -2507,7 +2510,7 @@ class C {
2507
2510
  });
2508
2511
  }
2509
2512
  static async fetchData(e, t = !1, a = !0) {
2510
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2513
+ const { tolken: n = null, ip: s = null } = await H.getHeaders(), i = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2511
2514
  try {
2512
2515
  const r = await fetch(i, { method: "GET" });
2513
2516
  if (t === !0) {
@@ -2527,8 +2530,8 @@ class C {
2527
2530
  }
2528
2531
  static formatDate(e = null) {
2529
2532
  return e ? (e = new Date(e), [
2530
- C.padTo2Digits(e.getMonth() + 1),
2531
- C.padTo2Digits(e.getDate()),
2533
+ H.padTo2Digits(e.getMonth() + 1),
2534
+ H.padTo2Digits(e.getDate()),
2532
2535
  e.getFullYear()
2533
2536
  ].join("-")) : null;
2534
2537
  }
@@ -2595,15 +2598,15 @@ class C {
2595
2598
  if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
2596
2599
  return i;
2597
2600
  try {
2598
- const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", H = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
2601
+ 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;
2599
2602
  return localStorage.setItem(
2600
2603
  r,
2601
2604
  JSON.stringify({
2602
2605
  tolken: V,
2603
- ip: H,
2606
+ ip: C,
2604
2607
  expire: (/* @__PURE__ */ new Date()).getTime() + f
2605
2608
  })
2606
- ), { tolken: V, ip: H, userAgent: a, platform: l };
2609
+ ), { tolken: V, ip: C, userAgent: a, platform: l };
2607
2610
  } catch (p) {
2608
2611
  console.error("getHeaders", p);
2609
2612
  }
@@ -2616,19 +2619,19 @@ class C {
2616
2619
  }[e];
2617
2620
  }
2618
2621
  static async getLocationData(e) {
2619
- 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;
2620
- return await C.fetchData("/api/client?query=" + l);
2622
+ 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;
2623
+ return await H.fetchData("/api/client?query=" + l);
2621
2624
  }
2622
2625
  static getReportUrl(e, t = null) {
2623
2626
  var r, o, p;
2624
2627
  const a = ((r = e == null ? void 0 : e.state) == null ? void 0 : r.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, l = (e == null ? void 0 : e.zip) ?? null;
2625
2628
  t = t || ((e == null ? void 0 : e.id) ?? null);
2626
2629
  const i = [l, "-piq", t].filter((u) => u).join("");
2627
- return "/" + [a, n, s].filter((u) => u).map((u) => C.toSlug(u)).join("/") + "/" + i;
2630
+ return "/" + [a, n, s].filter((u) => u).map((u) => H.toSlug(u)).join("/") + "/" + i;
2628
2631
  }
2629
2632
  static async getSearchValue(e = "recsSearchValue") {
2630
2633
  try {
2631
- return await C.createData(`/api/cookie/fetch?name=${e}`);
2634
+ return await H.createData(`/api/cookie/fetch?name=${e}`);
2632
2635
  } catch (t) {
2633
2636
  console.error("getSearchValue", t.message);
2634
2637
  }
@@ -2756,7 +2759,7 @@ class C {
2756
2759
  if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
2757
2760
  return null;
2758
2761
  try {
2759
- return await C.createData("/api/cookie/fetch?name=odrUser");
2762
+ return await H.createData("/api/cookie/fetch?name=odrUser");
2760
2763
  } catch (t) {
2761
2764
  console.error("getUser", t.message);
2762
2765
  }
@@ -2772,7 +2775,7 @@ class C {
2772
2775
  uuid: t
2773
2776
  }
2774
2777
  });
2775
- return await C.fetchData(
2778
+ return await H.fetchData(
2776
2779
  `/api/client?query=user-get-history&filter=${a}`
2777
2780
  );
2778
2781
  }
@@ -2852,28 +2855,28 @@ class C {
2852
2855
  if (w.attributeName === "open") {
2853
2856
  const g = w.target;
2854
2857
  if (!(g == null ? void 0 : g.hasAttribute("open"))) return;
2855
- g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(u.opening), g && await x(g), g == null || g.dispatchEvent(u.opened);
2858
+ g == null || g.removeAttribute("inert"), g == null || g.dispatchEvent(u.opening), g && await A(g), g == null || g.dispatchEvent(u.opened);
2856
2859
  }
2857
2860
  });
2858
- }), H = new MutationObserver((h, v) => {
2861
+ }), C = new MutationObserver((h, v) => {
2859
2862
  h.forEach((w) => {
2860
2863
  w.removedNodes.forEach((g) => {
2861
- g.nodeName === "DIALOG" && (g.removeEventListener("click", b), g.removeEventListener("close", f), g.dispatchEvent(u.removed), H == null || H.disconnect(), V == null || V.disconnect());
2864
+ g.nodeName === "DIALOG" && (g.removeEventListener("click", b), g.removeEventListener("close", f), g.dispatchEvent(u.removed), C == null || C.disconnect(), V == null || V.disconnect());
2862
2865
  });
2863
2866
  });
2864
2867
  });
2865
2868
  o && (V.observe(o, {
2866
2869
  attributes: !0
2867
- }), H.observe(document.body, {
2870
+ }), C.observe(document.body, {
2868
2871
  attributes: !1,
2869
2872
  subtree: !1,
2870
2873
  childList: !0
2871
2874
  }));
2872
2875
  const f = async ({ target: h }) => {
2873
- 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);
2876
+ h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
2874
2877
  }, b = async ({ target: h }) => {
2875
2878
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
2876
- }, x = (h) => Promise.allSettled(
2879
+ }, A = (h) => Promise.allSettled(
2877
2880
  h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
2878
2881
  );
2879
2882
  return !e && (o == null || o.addEventListener("click", b)), o == null || o.addEventListener("close", async (h) => {
@@ -2898,7 +2901,7 @@ class C {
2898
2901
  };
2899
2902
  }
2900
2903
  static hasBoundsEntry(e, t = "bounds") {
2901
- return C.getBoundsEntries(t).includes(e);
2904
+ return H.getBoundsEntries(t).includes(e);
2902
2905
  }
2903
2906
  static initObserver(e, t, a = null) {
2904
2907
  if (!e)
@@ -2957,7 +2960,7 @@ class C {
2957
2960
  url: n,
2958
2961
  data: s
2959
2962
  };
2960
- return await C.createData("/api/client?query=log/save&method=POST", l), null;
2963
+ return await H.createData("/api/client?query=log/save&method=POST", l), null;
2961
2964
  }
2962
2965
  static loadAds() {
2963
2966
  window.dataLayer = window.dataLayer || [];
@@ -2975,7 +2978,7 @@ class C {
2975
2978
  if (e) {
2976
2979
  const s = "/scripts/" + e + ".js?v=" + n;
2977
2980
  try {
2978
- return await C.injectScript({
2981
+ return await H.injectScript({
2979
2982
  src: s,
2980
2983
  id: t || e,
2981
2984
  async: !1,
@@ -2991,11 +2994,11 @@ class C {
2991
2994
  if (window.options.googleMapsLoaded === !0)
2992
2995
  return;
2993
2996
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2994
- await C.injectScript({ src: a, id: "googleapis", async: !1 });
2997
+ await H.injectScript({ src: a, id: "googleapis", async: !1 });
2995
2998
  }
2996
2999
  static async loadLeafletApi() {
2997
3000
  const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
2998
- 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({
3001
+ 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({
2999
3002
  src: a,
3000
3003
  id: "gestureJs",
3001
3004
  async: !1
@@ -3010,7 +3013,7 @@ class C {
3010
3013
  }
3011
3014
  static async loadSwiper() {
3012
3015
  const e = "/slider/swiper-bundle.min.js";
3013
- await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
3016
+ await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
3014
3017
  }
3015
3018
  static money(e, t = "", a = 0) {
3016
3019
  return e === null ? t : Intl ? new Intl.NumberFormat("en-US", {
@@ -3039,10 +3042,10 @@ class C {
3039
3042
  vin: p = null,
3040
3043
  license: u = null,
3041
3044
  token: V = null,
3042
- phone: H = null
3043
- } = e || {}, f = t && t !== "", b = l && l !== "" && l !== "18", x = i && i !== "" && l !== "99";
3045
+ phone: C = null
3046
+ } = e || {}, f = t && t !== "", b = l && l !== "" && l !== "18", A = i && i !== "" && l !== "99";
3044
3047
  let h = [];
3045
- 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)), H && H !== "" && h.push("phone=" + H), 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("&");
3048
+ 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 && A ? 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), A && 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("&");
3046
3049
  }
3047
3050
  static padTo2Digits(e) {
3048
3051
  return e.toString().padStart(2, "0");
@@ -3063,8 +3066,8 @@ class C {
3063
3066
  useGoogleOverride: p = !1,
3064
3067
  useAmazonOverride: u = !1,
3065
3068
  isSandboxAccount: V = !1,
3066
- isOptOutSearch: H = !1
3067
- } = t ?? {}, { tolken: f = null, ip: b = null } = await C.getHeaders(), h = [
3069
+ isOptOutSearch: C = !1
3070
+ } = t ?? {}, { tolken: f = null, ip: b = null } = await H.getHeaders(), h = [
3068
3071
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3069
3072
  "addressesOnly=" + a,
3070
3073
  "useSearch=" + l,
@@ -3075,11 +3078,11 @@ class C {
3075
3078
  "useGoogleOverride=" + p,
3076
3079
  "useAmazonOverride=" + u,
3077
3080
  "isSandboxAccount=" + V,
3078
- "isOptOutSearch=" + H
3081
+ "isOptOutSearch=" + C
3079
3082
  ];
3080
3083
  r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), b && b !== "" && h.push("ip=" + b);
3081
3084
  const v = h.join("&"), g = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
3082
- return await C.fetchData(g);
3085
+ return await H.fetchData(g);
3083
3086
  }
3084
3087
  static removeElements(e) {
3085
3088
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -3098,7 +3101,7 @@ class C {
3098
3101
  });
3099
3102
  }
3100
3103
  static searchInStates(e) {
3101
- const t = C.getStates(), a = e.toLowerCase();
3104
+ const t = H.getStates(), a = e.toLowerCase();
3102
3105
  let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
3103
3106
  return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
3104
3107
  }
@@ -3106,7 +3109,7 @@ class C {
3106
3109
  typeof woopra == "object" && woopra.track(e, t);
3107
3110
  }
3108
3111
  static setBoundsEntries(e, t = "bounds") {
3109
- const a = C.getBoundsEntries(t);
3112
+ const a = H.getBoundsEntries(t);
3110
3113
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
3111
3114
  }
3112
3115
  static async setCityState(e = null) {
@@ -3115,7 +3118,7 @@ class C {
3115
3118
  return e;
3116
3119
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
3117
3120
  let [a = null, n = null] = t.split(",").map((s) => s.trim());
3118
- if (C.getStates(), a && !n) {
3121
+ if (H.getStates(), a && !n) {
3119
3122
  const s = this.searchInStates(a);
3120
3123
  s && (a = null, n = s.short);
3121
3124
  }
@@ -3149,7 +3152,7 @@ class C {
3149
3152
  }
3150
3153
  }
3151
3154
  static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
3152
- localStorage.setItem(t, JSON.stringify(e)), await C.createData(
3155
+ localStorage.setItem(t, JSON.stringify(e)), await H.createData(
3153
3156
  `/api/cookie/create?name=${t}`,
3154
3157
  e,
3155
3158
  !0,
@@ -3181,7 +3184,7 @@ class C {
3181
3184
  return t.charAt(0).toUpperCase() + t.slice(1);
3182
3185
  }
3183
3186
  static useLayerTitle(e, t) {
3184
- const a = C.getLayerTitle(e);
3187
+ const a = H.getLayerTitle(e);
3185
3188
  L.tileLayer(a, {
3186
3189
  maxNativeZoom: 19,
3187
3190
  maxZoom: 25,
@@ -3190,7 +3193,7 @@ class C {
3190
3193
  }).addTo(t);
3191
3194
  }
3192
3195
  static ucWords(e) {
3193
- return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
3196
+ return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
3194
3197
  }
3195
3198
  /**
3196
3199
  * HOW TO USE EVENTS
@@ -3240,14 +3243,14 @@ export {
3240
3243
  F as Button,
3241
3244
  h2 as CardSlider,
3242
3245
  O1 as Checkbox,
3243
- C as Common,
3246
+ H as Common,
3244
3247
  X1 as ContactForm,
3245
3248
  K1 as ContentCard,
3246
3249
  B1 as Dialog,
3247
3250
  $1 as Dots,
3248
3251
  e2 as FlexItem,
3249
3252
  n2 as FunnelHeader,
3250
- A as Icon,
3253
+ x as Icon,
3251
3254
  q1 as LoadingBar,
3252
3255
  P1 as Popover,
3253
3256
  j1 as ProcessingSpinner,