@vehiclehistory/property-lib 0.0.53 → 0.0.55

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
@@ -498,7 +498,7 @@ const j = {
498
498
  }
499
499
  }
500
500
  );
501
- }, y = x(W), U = ({
501
+ }, y = x(W), G = ({
502
502
  children: d,
503
503
  className: e,
504
504
  clickHandler: t,
@@ -559,7 +559,7 @@ const j = {
559
559
  }
560
560
  )
561
561
  ] }) });
562
- }, w1 = x(U), G = ({
562
+ }, w1 = x(G), Q = ({
563
563
  children: d,
564
564
  className: e = "",
565
565
  messages: t = [],
@@ -612,12 +612,12 @@ const j = {
612
612
  ) }),
613
613
  /* @__PURE__ */ M("div", { className: "ml-3", children: [
614
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, H) => /* @__PURE__ */ o("li", { children: p }, H)) }) }) : ""
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)) }) }) : ""
616
616
  ] })
617
617
  ] })
618
618
  }
619
619
  );
620
- }, k1 = x(G), Q = ({
620
+ }, k1 = x(Q), U = ({
621
621
  autoFocus: d = !1,
622
622
  className: e = "",
623
623
  dataSearch: t = "container",
@@ -630,12 +630,12 @@ const j = {
630
630
  name: c = "",
631
631
  options: h = [],
632
632
  placeholder: p = "",
633
- props: H = {},
633
+ props: C = {},
634
634
  required: g = !1,
635
635
  showSearchIcon: b = !0,
636
- size: V = "medium",
636
+ size: f = "medium",
637
637
  styles: m = null,
638
- title: f = "",
638
+ title: V = "",
639
639
  type: w
640
640
  }) => /* @__PURE__ */ M(
641
641
  "div",
@@ -661,7 +661,7 @@ const j = {
661
661
  {
662
662
  className: "home-search select-none text-gray-500",
663
663
  name: l,
664
- size: V === "xLarge" ? "small" : "xSmall",
664
+ size: f === "xLarge" ? "small" : "xSmall",
665
665
  viewBox: "0 0 24 24"
666
666
  }
667
667
  ),
@@ -670,7 +670,7 @@ const j = {
670
670
  {
671
671
  className: "arrow-left select-none text-gray-500 hidden",
672
672
  name: "arrowLeft",
673
- size: V === "xLarge" ? "small" : "xSmall",
673
+ size: f === "xLarge" ? "small" : "xSmall",
674
674
  viewBox: "0 0 24 24"
675
675
  }
676
676
  )
@@ -686,9 +686,9 @@ const j = {
686
686
  "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",
687
687
  {
688
688
  "pl-8": b === !0,
689
- "px-3 h-10": V === "medium",
690
- "px-4 h-12": V === "large",
691
- "px-5 h-[60px] sm:!text-base": V === "xLarge",
689
+ "px-3 h-10": f === "medium",
690
+ "px-4 h-12": f === "large",
691
+ "px-5 h-[60px] sm:!text-base": f === "xLarge",
692
692
  peer: n
693
693
  },
694
694
  r
@@ -700,7 +700,7 @@ const j = {
700
700
  type: "search",
701
701
  name: c || "search-input",
702
702
  "data-id": "search-input",
703
- ...H
703
+ ...C
704
704
  }
705
705
  ),
706
706
  n && /* @__PURE__ */ o(
@@ -710,9 +710,9 @@ const j = {
710
710
  "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",
711
711
  {
712
712
  "!left-7": b === !0,
713
- "left-2": V === "medium",
714
- "left-3": V === "large",
715
- "left-4": V === "xLarge"
713
+ "left-2": f === "medium",
714
+ "left-3": f === "large",
715
+ "left-4": f === "xLarge"
716
716
  }
717
717
  ),
718
718
  children: n
@@ -762,7 +762,7 @@ const j = {
762
762
  {
763
763
  "data-id": "search-dropdown-body",
764
764
  role: "listbox",
765
- "data-title": f,
765
+ "data-title": V,
766
766
  "aria-labelledby": "Label",
767
767
  "aria-activedescendant": "search-item-0",
768
768
  children: h.length > 0 ? h.map((v, k) => /* @__PURE__ */ o(
@@ -784,7 +784,7 @@ const j = {
784
784
  )
785
785
  ]
786
786
  }
787
- ), S1 = Q, J = ({
787
+ ), S1 = U, J = ({
788
788
  children: d,
789
789
  className: e,
790
790
  size: t = "sm",
@@ -816,15 +816,15 @@ const j = {
816
816
  rightIconProps: c = {},
817
817
  rounded: h = !1,
818
818
  size: p = "md",
819
- type: H = "button",
819
+ type: C = "button",
820
820
  uppercase: g = !1,
821
821
  variation: b = "primary"
822
822
  }) => {
823
- const V = r ? "a" : "button";
823
+ const f = r ? "a" : "button";
824
824
  return /* @__PURE__ */ M(
825
- V,
825
+ f,
826
826
  {
827
- type: V !== "a" ? H : null,
827
+ type: f !== "a" ? C : null,
828
828
  className: u(
829
829
  "button",
830
830
  {
@@ -903,12 +903,12 @@ const j = {
903
903
  variation: c = "primary",
904
904
  value: h = ""
905
905
  }) => {
906
- const p = r ? "div" : "label", H = p === "label" ? { htmlFor: s } : {};
906
+ const p = r ? "div" : "label", C = p === "label" ? { htmlFor: s } : {};
907
907
  return /* @__PURE__ */ M(
908
908
  p,
909
909
  {
910
910
  className: u("checkbox flex items-center", c, t),
911
- ...H,
911
+ ...C,
912
912
  children: [
913
913
  /* @__PURE__ */ o(
914
914
  "input",
@@ -971,7 +971,7 @@ const j = {
971
971
  hideClose: c = !1,
972
972
  iconSize: h = "medium",
973
973
  preventPageScroll: p = !0,
974
- stickyHeader: H = !1,
974
+ stickyHeader: C = !1,
975
975
  title: g = "",
976
976
  titleClass: b = ""
977
977
  }) => /* @__PURE__ */ M(S, { children: [
@@ -997,7 +997,7 @@ const j = {
997
997
  className: u(
998
998
  "dialog-header",
999
999
  {
1000
- "sticky top-0 bg-white z-10": H,
1000
+ "sticky top-0 bg-white z-10": C,
1001
1001
  "!pb-0 border-0 justify-end": !g,
1002
1002
  "justify-between border-b": g
1003
1003
  },
@@ -1051,36 +1051,36 @@ const j = {
1051
1051
  headerClass: c = "",
1052
1052
  hideClose: h = !1,
1053
1053
  iconSize: p = "medium",
1054
- isOpen: H = !1,
1054
+ isOpen: C = !1,
1055
1055
  setDialogOpen: g,
1056
1056
  stickyHeader: b = !1,
1057
- title: V = "",
1057
+ title: f = "",
1058
1058
  titleClass: m = ""
1059
1059
  }) => {
1060
- const f = q(null), w = async () => {
1061
- f.current.classList.add("closing"), await z(f.current), f.current.classList.remove("closing"), s && s(), g(!1);
1060
+ const V = q(null), w = async () => {
1061
+ V.current.classList.add("closing"), await z(V.current), V.current.classList.remove("closing"), s && s(), g(!1);
1062
1062
  }, v = async (A) => {
1063
1063
  A.key === "Escape" && await w();
1064
1064
  }, k = async ({ clientX: A, clientY: N, target: $ }) => {
1065
- const { left: D, right: T, top: I, bottom: O } = f.current.getBoundingClientRect() ?? {};
1066
- (!f.current.contains($) || A < D || A > T || N < I || N > O) && await w();
1065
+ const { left: D, right: T, top: I, bottom: O } = V.current.getBoundingClientRect() ?? {};
1066
+ (!V.current.contains($) || A < D || A > T || N < I || N > O) && await w();
1067
1067
  }, z = (A) => Promise.allSettled(
1068
1068
  A.getAnimations().map((N) => N.finished)
1069
1069
  );
1070
1070
  return Z(() => {
1071
- const A = f.current;
1072
- A && (H ? A.showModal() : typeof A.close == "function" && A.close());
1073
- }, [H]), /* @__PURE__ */ M(S, { children: [
1071
+ const A = V.current;
1072
+ A && (C ? A.showModal() : typeof A.close == "function" && A.close());
1073
+ }, [C]), /* @__PURE__ */ M(S, { children: [
1074
1074
  d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: d }),
1075
1075
  /* @__PURE__ */ M(
1076
1076
  "dialog",
1077
1077
  {
1078
- ref: f,
1078
+ ref: V,
1079
1079
  id: `${e}-dialog`,
1080
1080
  className: u(
1081
1081
  "dialog",
1082
1082
  {
1083
- hidden: !H,
1083
+ hidden: !C,
1084
1084
  "xs-max:h-full xs-max:max-h-full": i
1085
1085
  },
1086
1086
  a
@@ -1097,7 +1097,7 @@ const j = {
1097
1097
  c
1098
1098
  ),
1099
1099
  children: [
1100
- /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children: V || "" }),
1100
+ /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children: f || "" }),
1101
1101
  !h && /* @__PURE__ */ o(
1102
1102
  "button",
1103
1103
  {
@@ -1150,41 +1150,42 @@ const j = {
1150
1150
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
1151
1151
  ] }), D1 = n1, s1 = ({
1152
1152
  cb: d,
1153
- className: e = "",
1154
- size: t = "md",
1155
- timeout: a = 1e4,
1156
- variation: n = "primary"
1153
+ onUpdate: e,
1154
+ className: t = "",
1155
+ size: a = "md",
1156
+ timeout: n = 1e4,
1157
+ variation: s = "primary"
1157
1158
  }) => {
1158
- function s({ cb: r }) {
1159
- const l = document.querySelector(".loading-bar__inner");
1160
- if (!l) return;
1161
- let i, c, h = !1;
1162
- function p(H) {
1163
- i === void 0 && (i = H);
1164
- const g = H - i;
1165
- if (c !== H) {
1166
- const b = g / a * 101;
1167
- l.style.width = `${b}%`, b >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(H));
1159
+ function r({ cb: l }) {
1160
+ const i = document.querySelector(".loading-bar__inner");
1161
+ if (!i) return;
1162
+ let c, h, p = !1;
1163
+ function C(g) {
1164
+ c === void 0 && (c = g);
1165
+ const b = g - c;
1166
+ if (h !== g) {
1167
+ const f = b / n * 101;
1168
+ i.style.width = `${f}%`, e && e({ elapsed: b, percentage: f }), f >= 101 && (l && l(), p = !0, window.cancelAnimationFrame(g));
1168
1169
  }
1169
- g < a && (c = H, h || window.requestAnimationFrame(p));
1170
+ b < n && (h = g, p || window.requestAnimationFrame(C));
1170
1171
  }
1171
- window.requestAnimationFrame(p);
1172
+ window.requestAnimationFrame(C);
1172
1173
  }
1173
1174
  return Z(() => {
1174
- s({ cb: d });
1175
+ r({ cb: d });
1175
1176
  }, []), /* @__PURE__ */ o(
1176
1177
  "div",
1177
1178
  {
1178
1179
  className: u(
1179
1180
  "loading-bar my-8",
1180
- `loading-bar__${n}`,
1181
+ `loading-bar__${s}`,
1181
1182
  {
1182
- "h-4": t === "md",
1183
- "h-6": t === "lg",
1184
- "h-8": t === "xl"
1183
+ "h-4": a === "md",
1184
+ "h-6": a === "lg",
1185
+ "h-8": a === "xl"
1185
1186
  },
1186
- `loading-bar__${t}`,
1187
- e
1187
+ `loading-bar__${a}`,
1188
+ t
1188
1189
  ),
1189
1190
  children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
1190
1191
  }
@@ -1263,8 +1264,8 @@ const j = {
1263
1264
  }) => {
1264
1265
  const c = ((h, p) => {
1265
1266
  if (h) {
1266
- const H = Number(p) / h;
1267
- return H > 1 ? 100 : H * 100;
1267
+ const C = Number(p) / h;
1268
+ return C > 1 ? 100 : C * 100;
1268
1269
  }
1269
1270
  return n;
1270
1271
  })(s, n);
@@ -1346,14 +1347,14 @@ const j = {
1346
1347
  props: c = {},
1347
1348
  selectClass: h = "",
1348
1349
  styles: p = null,
1349
- variation: H = "primary",
1350
+ variation: C = "primary",
1350
1351
  value: g
1351
1352
  }) => {
1352
1353
  const b = i ? { defaultValue: "" } : {};
1353
1354
  return /* @__PURE__ */ M(
1354
1355
  "label",
1355
1356
  {
1356
- className: u("relative select", e, H),
1357
+ className: u("relative select", e, C),
1357
1358
  style: p ? { ...p } : null,
1358
1359
  children: [
1359
1360
  s,
@@ -1372,13 +1373,13 @@ const j = {
1372
1373
  ...c,
1373
1374
  children: [
1374
1375
  i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
1375
- l.map((V, m) => /* @__PURE__ */ o(
1376
+ l.map((f, m) => /* @__PURE__ */ o(
1376
1377
  "option",
1377
1378
  {
1378
- value: (V == null ? void 0 : V.id) || (V == null ? void 0 : V.value) || V,
1379
- children: (V == null ? void 0 : V.name) || V
1379
+ value: (f == null ? void 0 : f.id) || (f == null ? void 0 : f.value) || f,
1380
+ children: (f == null ? void 0 : f.name) || f
1380
1381
  },
1381
- (V == null ? void 0 : V.name) || V
1382
+ (f == null ? void 0 : f.name) || f
1382
1383
  ))
1383
1384
  ]
1384
1385
  }
@@ -1451,7 +1452,7 @@ const j = {
1451
1452
  style: t
1452
1453
  }
1453
1454
  );
1454
- }, U1 = p1, m1 = ({
1455
+ }, G1 = p1, m1 = ({
1455
1456
  className: d = "",
1456
1457
  clear: e = !1,
1457
1458
  error: t = !1,
@@ -1509,7 +1510,7 @@ const j = {
1509
1510
  props: c = {},
1510
1511
  styles: h = null,
1511
1512
  type: p = "text",
1512
- value: H,
1513
+ value: C,
1513
1514
  variation: g = "primary"
1514
1515
  }) => /* @__PURE__ */ M(
1515
1516
  "div",
@@ -1533,7 +1534,7 @@ const j = {
1533
1534
  id: s,
1534
1535
  name: l,
1535
1536
  type: p,
1536
- value: H,
1537
+ value: C,
1537
1538
  autoComplete: "off",
1538
1539
  className: u(
1539
1540
  "form-input",
@@ -1664,7 +1665,7 @@ const j = {
1664
1665
  ]
1665
1666
  }
1666
1667
  );
1667
- }, G1 = x(H1), C1 = ({
1668
+ }, Q1 = x(H1), C1 = ({
1668
1669
  block: d = !1,
1669
1670
  children: e,
1670
1671
  className: t,
@@ -1702,7 +1703,7 @@ const j = {
1702
1703
  ]
1703
1704
  }
1704
1705
  );
1705
- }, Q1 = x(C1), L1 = ({
1706
+ }, U1 = x(C1), L1 = ({
1706
1707
  children: d,
1707
1708
  className: e,
1708
1709
  colGap: t = 2,
@@ -1767,7 +1768,7 @@ const j = {
1767
1768
  t,
1768
1769
  {
1769
1770
  className: u(
1770
- "!header-3-medium text-center mb-6 flex items-center justify-center",
1771
+ "!header-4-medium text-center mb-6 flex items-center justify-center",
1771
1772
  e
1772
1773
  ),
1773
1774
  children: a || d
@@ -2027,11 +2028,13 @@ const j = {
2027
2028
  semibold: "600",
2028
2029
  bold: "700"
2029
2030
  }, r = {
2031
+ title: "2rem",
2030
2032
  1: "1.75rem",
2031
2033
  2: "1.625rem",
2032
- 3: "1.25rem",
2033
- 4: "1.125rem",
2034
- 5: "1rem"
2034
+ 3: "1.50rem",
2035
+ 4: "1.25rem",
2036
+ 5: "1.125rem",
2037
+ 6: "1rem"
2035
2038
  }, l = {
2036
2039
  1: "0.938rem",
2037
2040
  2: "0.813rem",
@@ -2039,31 +2042,31 @@ const j = {
2039
2042
  }, i = ({
2040
2043
  classPrefix: c = "",
2041
2044
  fixedProps: h = {},
2042
- sizeProps: p = (V = {}) => {
2045
+ sizeProps: p = (f = {}) => {
2043
2046
  },
2044
- sizes: H,
2047
+ sizes: C,
2045
2048
  weights: g,
2046
- weightProps: b = (V = {}) => {
2049
+ weightProps: b = (f = {}) => {
2047
2050
  }
2048
2051
  }) => {
2049
- const V = {};
2050
- Object.entries(H).forEach(([m, f]) => {
2052
+ const f = {};
2053
+ Object.entries(C).forEach(([m, V]) => {
2051
2054
  const w = {
2052
- "font-size": f,
2055
+ "font-size": V,
2053
2056
  ...h
2054
2057
  }, v = `.${a(`${c}-${m}`)}`;
2055
- V[v] = {
2058
+ f[v] = {
2056
2059
  ...w,
2057
- ...p({ sizeKey: m, sizeValue: f })
2060
+ ...p({ sizeKey: m, sizeValue: V })
2058
2061
  }, Object.entries(g).forEach(([k, z]) => {
2059
2062
  const A = `.${a(`${c}-${m}-${k}`)}`;
2060
- V[A] = {
2063
+ f[A] = {
2061
2064
  ...w,
2062
2065
  "font-weight": z,
2063
- ...b({ sizeKey: m, sizeValue: f, weightKey: k, weightValue: z })
2066
+ ...b({ sizeKey: m, sizeValue: V, weightKey: k, weightValue: z })
2064
2067
  };
2065
2068
  });
2066
- }), d(V);
2069
+ }), d(f);
2067
2070
  };
2068
2071
  i({
2069
2072
  classPrefix: "header",
@@ -2311,10 +2314,10 @@ class s2 {
2311
2314
  }
2312
2315
  }
2313
2316
  }
2314
- class C {
2317
+ class H {
2315
2318
  static calcCrow(e, t, a, n) {
2316
- const r = C.toRad(a - e), l = C.toRad(n - t);
2317
- e = C.toRad(e), a = C.toRad(a);
2319
+ const r = H.toRad(a - e), l = H.toRad(n - t);
2320
+ e = H.toRad(e), a = H.toRad(a);
2318
2321
  const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(l / 2) * Math.sin(l / 2) * Math.cos(e) * Math.cos(a);
2319
2322
  return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
2320
2323
  }
@@ -2329,9 +2332,9 @@ class C {
2329
2332
  return;
2330
2333
  window.dataLayer = window.dataLayer || [];
2331
2334
  const t = document.querySelectorAll("[data-div-track]");
2332
- typeof C == "function" && t.forEach((a) => {
2335
+ typeof H == "function" && t.forEach((a) => {
2333
2336
  a.addEventListener("click", () => {
2334
- C.clickTrackEvent(a.dataset.divTrack);
2337
+ H.clickTrackEvent(a.dataset.divTrack);
2335
2338
  });
2336
2339
  });
2337
2340
  }
@@ -2344,13 +2347,13 @@ class C {
2344
2347
  static async createData(e, t = null, a = !0) {
2345
2348
  if (window.options.isBot || !t)
2346
2349
  return null;
2347
- 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);
2350
+ 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);
2348
2351
  try {
2349
2352
  const c = await fetch(l, {
2350
2353
  method: "POST",
2351
2354
  body: i === "null" ? null : i,
2352
2355
  headers: {
2353
- website: C.getWebsiteHeaderName()
2356
+ website: H.getWebsiteHeaderName()
2354
2357
  }
2355
2358
  }), h = c.headers.get("content-type");
2356
2359
  if (h && h.indexOf("application/json") !== -1)
@@ -2367,7 +2370,7 @@ class C {
2367
2370
  }
2368
2371
  static async deleteSearchValue(e = "recsSearchValue") {
2369
2372
  try {
2370
- return await C.createData(`/api/cookie/remove?name=${e}`);
2373
+ return await H.createData(`/api/cookie/remove?name=${e}`);
2371
2374
  } catch (t) {
2372
2375
  console.error("deleteSearchValue", t.message);
2373
2376
  }
@@ -2418,7 +2421,7 @@ class C {
2418
2421
  static async fetchData(e, t = !1, a = !0) {
2419
2422
  if (options.isBot)
2420
2423
  return null;
2421
- const { tolken: n = null, ip: s = null } = await C.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2424
+ const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2422
2425
  try {
2423
2426
  const i = await fetch(l, { method: "GET" });
2424
2427
  if (t === !0) {
@@ -2438,8 +2441,8 @@ class C {
2438
2441
  }
2439
2442
  static formatDate(e = null) {
2440
2443
  return e ? (e = new Date(e), [
2441
- C.padTo2Digits(e.getMonth() + 1),
2442
- C.padTo2Digits(e.getDate()),
2444
+ H.padTo2Digits(e.getMonth() + 1),
2445
+ H.padTo2Digits(e.getDate()),
2443
2446
  e.getFullYear()
2444
2447
  ].join("-")) : null;
2445
2448
  }
@@ -2515,15 +2518,15 @@ class C {
2515
2518
  if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
2516
2519
  return r;
2517
2520
  try {
2518
- const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, H = (h == null ? void 0 : h.ip) ?? null;
2521
+ const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, C = (h == null ? void 0 : h.ip) ?? null;
2519
2522
  return localStorage.setItem(
2520
2523
  "headerTolken",
2521
2524
  JSON.stringify({
2522
2525
  tolken: p,
2523
- ip: H,
2526
+ ip: C,
2524
2527
  expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
2525
2528
  })
2526
- ), { tolken: p, ip: H, userAgent: t, platform: s };
2529
+ ), { tolken: p, ip: C, userAgent: t, platform: s };
2527
2530
  } catch (c) {
2528
2531
  console.error("getHeaders", c);
2529
2532
  }
@@ -2536,19 +2539,19 @@ class C {
2536
2539
  }[e];
2537
2540
  }
2538
2541
  static async getLocationData(e) {
2539
- 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;
2540
- return await C.fetchData("/api/client?query=" + r);
2542
+ 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;
2543
+ return await H.fetchData("/api/client?query=" + r);
2541
2544
  }
2542
2545
  static getReportUrl(e, t = null) {
2543
2546
  var i, c, h;
2544
2547
  const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2545
2548
  t = t || ((e == null ? void 0 : e.id) ?? null);
2546
2549
  const l = [r, "-piq", t].filter((p) => p).join("");
2547
- return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + l;
2550
+ return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + l;
2548
2551
  }
2549
2552
  static async getSearchValue(e = "recsSearchValue") {
2550
2553
  try {
2551
- return await C.createData(`/api/cookie/fetch?name=${e}`);
2554
+ return await H.createData(`/api/cookie/fetch?name=${e}`);
2552
2555
  } catch (t) {
2553
2556
  console.error("getSearchValue", t.message);
2554
2557
  }
@@ -2676,7 +2679,7 @@ class C {
2676
2679
  if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
2677
2680
  return null;
2678
2681
  try {
2679
- return await C.createData("/api/cookie/fetch?name=odrUser");
2682
+ return await H.createData("/api/cookie/fetch?name=odrUser");
2680
2683
  } catch (t) {
2681
2684
  console.error("getUser", t.message);
2682
2685
  }
@@ -2692,7 +2695,7 @@ class C {
2692
2695
  uuid: t
2693
2696
  }
2694
2697
  });
2695
- return await C.makeSearchFetchCall(
2698
+ return await H.makeSearchFetchCall(
2696
2699
  `/api/client?query=user-get-history&filter=${a}`
2697
2700
  );
2698
2701
  }
@@ -2758,20 +2761,20 @@ class C {
2758
2761
  "outside",
2759
2762
  "removed"
2760
2763
  ].reduce(
2761
- (m, f) => ({
2764
+ (m, V) => ({
2762
2765
  ...m,
2763
- [f]: new Event(f)
2766
+ [V]: new Event(V)
2764
2767
  }),
2765
2768
  {}
2766
- ), h = new MutationObserver((m, f) => {
2769
+ ), h = new MutationObserver((m, V) => {
2767
2770
  m.forEach(async (w) => {
2768
2771
  if (w.attributeName === "open") {
2769
2772
  const v = w.target;
2770
2773
  if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2771
- v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await V(v), v == null || v.dispatchEvent(c.opened);
2774
+ v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await f(v), v == null || v.dispatchEvent(c.opened);
2772
2775
  }
2773
2776
  });
2774
- }), p = new MutationObserver((m, f) => {
2777
+ }), p = new MutationObserver((m, V) => {
2775
2778
  m.forEach((w) => {
2776
2779
  w.removedNodes.forEach((v) => {
2777
2780
  v.nodeName === "DIALOG" && (v.removeEventListener("click", b), v.removeEventListener("close", g), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
@@ -2785,32 +2788,32 @@ class C {
2785
2788
  subtree: !1,
2786
2789
  childList: !0
2787
2790
  }));
2788
- const H = () => {
2791
+ const C = () => {
2789
2792
  l == null || l.showModal();
2790
2793
  }, g = async ({ target: m }) => {
2791
- m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await V(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
2794
+ m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await f(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
2792
2795
  }, b = async ({ target: m }) => {
2793
2796
  (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), l == null || l.close("outside"));
2794
- }, V = (m) => Promise.allSettled(
2795
- m == null ? void 0 : m.getAnimations().map((f) => f == null ? void 0 : f.finished)
2797
+ }, f = (m) => Promise.allSettled(
2798
+ m == null ? void 0 : m.getAnimations().map((V) => V == null ? void 0 : V.finished)
2796
2799
  );
2797
2800
  return !s && (l == null || l.addEventListener("click", b)), l == null || l.addEventListener("close", g), r == null || r.forEach((m) => {
2798
- m.addEventListener("click", (f) => {
2799
- H(), a && a(f, l);
2801
+ m.addEventListener("click", (V) => {
2802
+ C(), a && a(V, l);
2800
2803
  });
2801
2804
  }), i == null || i.forEach((m) => {
2802
- m.addEventListener("click", async (f) => {
2803
- l == null || l.close("close"), n && n(f, l);
2805
+ m.addEventListener("click", async (V) => {
2806
+ l == null || l.close("close"), n && n(V, l);
2804
2807
  });
2805
2808
  }), {
2806
2809
  activators: r,
2807
2810
  ref: l,
2808
- handleOpen: H,
2811
+ handleOpen: C,
2809
2812
  handleClose: g
2810
2813
  };
2811
2814
  }
2812
2815
  static hasBoundsEntry(e, t = "bounds") {
2813
- return C.getBoundsEntries(t).includes(e);
2816
+ return H.getBoundsEntries(t).includes(e);
2814
2817
  }
2815
2818
  static initObserver(e, t, a = null) {
2816
2819
  if (!e)
@@ -2869,7 +2872,7 @@ class C {
2869
2872
  url: n,
2870
2873
  data: s
2871
2874
  };
2872
- return await C.createData("/api/client?query=log/save&method=POST", r), null;
2875
+ return await H.createData("/api/client?query=log/save&method=POST", r), null;
2873
2876
  }
2874
2877
  static loadAds() {
2875
2878
  window.dataLayer = window.dataLayer || [];
@@ -2886,7 +2889,7 @@ class C {
2886
2889
  if (e) {
2887
2890
  const n = "/scripts/" + e + ".js?v=100.0.5";
2888
2891
  try {
2889
- return await C.injectScript({
2892
+ return await H.injectScript({
2890
2893
  src: n,
2891
2894
  id: t || e,
2892
2895
  async: !1,
@@ -2902,11 +2905,11 @@ class C {
2902
2905
  if (window.options.googleMapsLoaded === !0)
2903
2906
  return;
2904
2907
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2905
- await C.injectScript({ src: a, id: "googleapis", async: !1 });
2908
+ await H.injectScript({ src: a, id: "googleapis", async: !1 });
2906
2909
  }
2907
2910
  static async loadLeafletApi() {
2908
2911
  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";
2909
- 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({
2912
+ 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({
2910
2913
  src: n,
2911
2914
  id: "gestureJs",
2912
2915
  async: !1
@@ -2921,7 +2924,7 @@ class C {
2921
2924
  }
2922
2925
  static async loadSwiper() {
2923
2926
  const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
2924
- await C.injectLink({ href: a, id: "swiperCss" }), await C.injectScript({ src: t, id: "swiperJs", async: !1 });
2927
+ await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
2925
2928
  }
2926
2929
  static async makeSearchFetchCall(e) {
2927
2930
  try {
@@ -2960,11 +2963,11 @@ class C {
2960
2963
  state: c = null,
2961
2964
  vin: h = null,
2962
2965
  license: p = null,
2963
- token: H = null,
2966
+ token: C = null,
2964
2967
  phone: g = null
2965
- } = e || {}, b = t && t !== "", V = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
2966
- let f = [];
2967
- return t && t !== "" && f.push("name=" + t), b || (a && a !== "" && f.push("first=" + a), n && n !== "" && f.push("middle=" + n), s && s !== "" && f.push("last=" + s)), V && m ? parseInt(r) > parseInt(l) ? (f.push("min=" + l), f.push("max=" + r)) : (f.push("min=" + r), f.push("max=" + l)) : (V && f.push("min=" + r), m && f.push("max=" + l)), g && g !== "" && f.push("phone=" + g), i && i !== "" && f.push("city=" + i), p && p !== "" && f.push("license=" + p), h && h !== "" && f.push("vin=" + h), c && c !== "" && f.push("state=" + c), H && H !== "" && f.push("token=" + H), f.join("&");
2968
+ } = e || {}, b = t && t !== "", f = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
2969
+ let V = [];
2970
+ return t && t !== "" && V.push("name=" + t), b || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), s && s !== "" && V.push("last=" + s)), 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), c && c !== "" && V.push("state=" + c), C && C !== "" && V.push("token=" + C), V.join("&");
2968
2971
  }
2969
2972
  static padTo2Digits(e) {
2970
2973
  return e.toString().padStart(2, "0");
@@ -2982,7 +2985,7 @@ class C {
2982
2985
  useLocation: l = !0,
2983
2986
  state: i = "",
2984
2987
  useGoogle: c = !1
2985
- } = t ?? {}, { tolken: h = null, ip: p = null } = await C.getHeaders(), g = [
2988
+ } = t ?? {}, { tolken: h = null, ip: p = null } = await H.getHeaders(), g = [
2986
2989
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2987
2990
  "addressesOnly=" + a,
2988
2991
  "useSearch=" + r,
@@ -2993,7 +2996,7 @@ class C {
2993
2996
  ];
2994
2997
  i && i !== "" && !s && g.push("state=" + i), h && h !== "" && g.push("tolken=" + h), p && p !== "" && g.push("ip=" + p);
2995
2998
  const b = g.join("&"), m = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
2996
- return await C.makeSearchFetchCall(m);
2999
+ return await H.makeSearchFetchCall(m);
2997
3000
  }
2998
3001
  static removeElements(e) {
2999
3002
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -3012,7 +3015,7 @@ class C {
3012
3015
  });
3013
3016
  }
3014
3017
  static searchInStates(e) {
3015
- const t = C.getStates(), a = e.toLowerCase();
3018
+ const t = H.getStates(), a = e.toLowerCase();
3016
3019
  let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
3017
3020
  return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
3018
3021
  }
@@ -3020,7 +3023,7 @@ class C {
3020
3023
  typeof woopra == "object" && woopra.track(e, t);
3021
3024
  }
3022
3025
  static setBoundsEntries(e, t = "bounds") {
3023
- const a = C.getBoundsEntries(t);
3026
+ const a = H.getBoundsEntries(t);
3024
3027
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
3025
3028
  }
3026
3029
  static async setCityState(e = null) {
@@ -3029,7 +3032,7 @@ class C {
3029
3032
  return e;
3030
3033
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
3031
3034
  let [a = null, n = null] = t.split(",").map((s) => s.trim());
3032
- if (C.getStates(), a && !n) {
3035
+ if (H.getStates(), a && !n) {
3033
3036
  const s = this.searchInStates(a);
3034
3037
  s && (a = null, n = s.short);
3035
3038
  }
@@ -3047,7 +3050,7 @@ class C {
3047
3050
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
3048
3051
  }
3049
3052
  static async setSearchValueClient(e, t = "recsSearchValue") {
3050
- localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
3053
+ localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
3051
3054
  }
3052
3055
  static stickyHeader(e = ".nav") {
3053
3056
  const t = document.querySelector(e);
@@ -3074,7 +3077,7 @@ class C {
3074
3077
  return t.charAt(0).toUpperCase() + t.slice(1);
3075
3078
  }
3076
3079
  static useLayerTitle(e, t) {
3077
- const a = C.getLayerTitle(e);
3080
+ const a = H.getLayerTitle(e);
3078
3081
  L.tileLayer(a, {
3079
3082
  maxNativeZoom: 19,
3080
3083
  maxZoom: 25,
@@ -3083,7 +3086,7 @@ class C {
3083
3086
  }).addTo(t);
3084
3087
  }
3085
3088
  static ucWords(e) {
3086
- return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
3089
+ return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
3087
3090
  }
3088
3091
  }
3089
3092
  export {
@@ -3096,10 +3099,10 @@ export {
3096
3099
  Z1 as Card,
3097
3100
  s2 as CardSlider,
3098
3101
  E1 as Checkbox,
3099
- C as Common,
3100
- G1 as ContactForm,
3102
+ H as Common,
3103
+ Q1 as ContactForm,
3101
3104
  F1 as Container,
3102
- Q1 as ContentCard,
3105
+ U1 as ContentCard,
3103
3106
  B1 as Dialog,
3104
3107
  $1 as DialogOld,
3105
3108
  D1 as Dots,
@@ -3116,7 +3119,7 @@ export {
3116
3119
  Y1 as Spacer,
3117
3120
  I1 as Spinner,
3118
3121
  K1 as StackedListItem,
3119
- U1 as Stars,
3122
+ G1 as Stars,
3120
3123
  f1 as TextArea,
3121
3124
  B as Textbox,
3122
3125
  e2 as addClass,