@vehiclehistory/property-lib 0.0.88 → 0.0.90

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
@@ -593,7 +593,7 @@ const W = {
593
593
  ] })
594
594
  }
595
595
  );
596
- }, T1 = A(J), _ = ({
596
+ }, F1 = A(J), _ = ({
597
597
  children: d,
598
598
  className: e,
599
599
  messages: t = [],
@@ -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, C) => /* @__PURE__ */ c("li", { children: V }, C))
658
+ children: t.map((V, H) => /* @__PURE__ */ c("li", { children: V }, H))
659
659
  }
660
660
  ) : "",
661
661
  d
@@ -663,7 +663,7 @@ const W = {
663
663
  ] })
664
664
  }
665
665
  );
666
- }, D1 = A(_), O1 = ({
666
+ }, T1 = A(_), D1 = ({
667
667
  autoFocus: d = !1,
668
668
  className: e,
669
669
  dataSearch: t = "container",
@@ -677,7 +677,7 @@ const W = {
677
677
  options: u = [],
678
678
  parentProps: p = {},
679
679
  placeholder: V = "",
680
- props: C = {},
680
+ props: H = {},
681
681
  rightIcon: f = "",
682
682
  required: g = !1,
683
683
  showSearchIcon: y = !0,
@@ -755,7 +755,7 @@ const W = {
755
755
  name: i || "search-input",
756
756
  "data-id": "search-input",
757
757
  ...R,
758
- ...C
758
+ ...H
759
759
  }
760
760
  ),
761
761
  n && /* @__PURE__ */ c(
@@ -848,7 +848,7 @@ const W = {
848
848
  ]
849
849
  }
850
850
  );
851
- }, B1 = ({
851
+ }, O1 = ({
852
852
  children: d,
853
853
  className: e,
854
854
  size: t = "sm",
@@ -881,7 +881,7 @@ const W = {
881
881
  rounded: u = !1,
882
882
  size: p = "md",
883
883
  type: V = "button",
884
- uppercase: C = !1,
884
+ uppercase: H = !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": C,
900
+ "button--uppercase": H,
901
901
  "button--borderless": d || f === "link"
902
902
  },
903
903
  n
@@ -970,7 +970,7 @@ const W = {
970
970
  ]
971
971
  }
972
972
  );
973
- }, I1 = A(K), X = ({
973
+ }, B1 = A(K), X = ({
974
974
  activator: d,
975
975
  id: e = "",
976
976
  children: t,
@@ -984,7 +984,7 @@ const W = {
984
984
  headerClass: u,
985
985
  hideClose: p = !1,
986
986
  iconSize: V = "medium",
987
- preventPageScroll: C = !0,
987
+ preventPageScroll: H = !0,
988
988
  stickyHeader: f = !1,
989
989
  title: g = "",
990
990
  titleClass: y,
@@ -1004,7 +1004,7 @@ const W = {
1004
1004
  {
1005
1005
  "dialog-full-mobile": i,
1006
1006
  dark: l,
1007
- "prevent-scroll": C
1007
+ "prevent-scroll": H
1008
1008
  },
1009
1009
  a
1010
1010
  ),
@@ -1070,7 +1070,7 @@ const W = {
1070
1070
  }
1071
1071
  )
1072
1072
  ] });
1073
- }, $1 = A(X), q1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
1073
+ }, I1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
1074
1074
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
1075
1075
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
1076
1076
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
@@ -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(C) {
1095
- i === void 0 && (i = C);
1096
- const f = C - i;
1097
- if (u !== C) {
1094
+ function V(H) {
1095
+ i === void 0 && (i = H);
1096
+ const f = H - i;
1097
+ if (u !== H) {
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(C));
1099
+ r.style.width = `${g}%`, e && e({ elapsed: f, percentage: g }), g >= 101 && (o && o(), p = !0, window.cancelAnimationFrame(H));
1100
1100
  }
1101
- f < n && (u = C, p || window.requestAnimationFrame(V));
1101
+ f < n && (u = H, p || window.requestAnimationFrame(V));
1102
1102
  }
1103
1103
  window.requestAnimationFrame(V);
1104
1104
  }
@@ -1121,7 +1121,7 @@ const W = {
1121
1121
  children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
1122
1122
  }
1123
1123
  );
1124
- }, j1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), P1 = A(t1), R1 = ({
1124
+ }, q1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), j1 = A(t1), P1 = ({
1125
1125
  activator: d,
1126
1126
  activatorClass: e = "",
1127
1127
  attrs: t = {},
@@ -1185,9 +1185,9 @@ const W = {
1185
1185
  rounded: r = !0,
1186
1186
  showLabel: i = !1
1187
1187
  }) => {
1188
- const p = ((V, C) => {
1188
+ const p = ((V, H) => {
1189
1189
  if (V) {
1190
- const f = Number(C) / V;
1190
+ const f = Number(H) / V;
1191
1191
  return f > 1 ? 100 : f * 100;
1192
1192
  }
1193
1193
  return n;
@@ -1227,7 +1227,7 @@ const W = {
1227
1227
  )
1228
1228
  }
1229
1229
  );
1230
- }, W1 = A(a1), n1 = ({
1230
+ }, R1 = A(a1), n1 = ({
1231
1231
  checked: d = !1,
1232
1232
  children: e,
1233
1233
  className: t,
@@ -1268,7 +1268,7 @@ const W = {
1268
1268
  ]
1269
1269
  }
1270
1270
  );
1271
- }, U1 = A(n1), s1 = ({
1271
+ }, W1 = A(n1), s1 = ({
1272
1272
  className: d = "",
1273
1273
  error: e = !1,
1274
1274
  errorMessage: t = "",
@@ -1283,7 +1283,7 @@ const W = {
1283
1283
  variation: p = "primary",
1284
1284
  value: V
1285
1285
  }) => {
1286
- const C = o ? { defaultValue: "" } : {};
1286
+ const H = 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
- ...C,
1307
+ ...H,
1308
1308
  ...r,
1309
1309
  children: [
1310
1310
  o && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: o }),
@@ -1323,7 +1323,7 @@ const W = {
1323
1323
  ]
1324
1324
  }
1325
1325
  );
1326
- }, G1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
1326
+ }, U1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
1327
1327
  "div",
1328
1328
  {
1329
1329
  className: m(
@@ -1335,7 +1335,7 @@ const W = {
1335
1335
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1336
1336
  ]
1337
1337
  }
1338
- ), Q1 = A(r1), l1 = ({
1338
+ ), G1 = A(r1), l1 = ({
1339
1339
  placeholderClass: d = "",
1340
1340
  children: e,
1341
1341
  className: t,
@@ -1370,18 +1370,16 @@ const W = {
1370
1370
  children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1371
1371
  }
1372
1372
  )
1373
- ] }), J1 = A(l1), i1 = {
1374
- name: "spinnerDark",
1375
- color: "text-teal-700",
1376
- viewBox: "0 0 24 24"
1377
- }, o1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
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(
1378
1374
  x,
1379
1375
  {
1380
- className: `animate-spin ${d}`,
1376
+ className: m("animate-spin text-black-900", e),
1381
1377
  size: "xSmall",
1382
- ...i1
1378
+ name: "spinnerDark",
1379
+ viewBox: "0 0 24 24",
1380
+ ...t
1383
1381
  }
1384
- ) }), _1 = A(o1), Y1 = ({
1382
+ ) }), J1 = A(i1), _1 = ({
1385
1383
  className: d,
1386
1384
  value: e
1387
1385
  }) => {
@@ -1398,7 +1396,7 @@ const W = {
1398
1396
  style: t
1399
1397
  }
1400
1398
  );
1401
- }, c1 = ({
1399
+ }, o1 = ({
1402
1400
  className: d,
1403
1401
  clear: e = !1,
1404
1402
  error: t = !1,
@@ -1445,7 +1443,7 @@ const W = {
1445
1443
  }
1446
1444
  ),
1447
1445
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1448
- ] }), d1 = A(c1), h1 = ({
1446
+ ] }), c1 = A(o1), d1 = ({
1449
1447
  className: d,
1450
1448
  clear: e = !1,
1451
1449
  error: t = !1,
@@ -1459,11 +1457,11 @@ const W = {
1459
1457
  styles: u = null,
1460
1458
  type: p = "text",
1461
1459
  value: V,
1462
- variation: C = "primary"
1460
+ variation: H = "primary"
1463
1461
  }) => /* @__PURE__ */ M(
1464
1462
  "div",
1465
1463
  {
1466
- className: m("relative textbox", C, d),
1464
+ className: m("relative textbox", H, d),
1467
1465
  style: u ? { ...u } : null,
1468
1466
  children: [
1469
1467
  n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
@@ -1515,7 +1513,7 @@ const W = {
1515
1513
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1516
1514
  ]
1517
1515
  }
1518
- ), T = A(h1), u1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1516
+ ), T = A(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1519
1517
  /* @__PURE__ */ c(
1520
1518
  "input",
1521
1519
  {
@@ -1537,7 +1535,7 @@ const W = {
1537
1535
  className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
1538
1536
  }
1539
1537
  )
1540
- ] }) }) }), K1 = A(u1), p1 = ({
1538
+ ] }) }) }), Y1 = A(h1), u1 = ({
1541
1539
  btnClass: d,
1542
1540
  className: e = "",
1543
1541
  containerClass: t,
@@ -1604,7 +1602,7 @@ const W = {
1604
1602
  }
1605
1603
  ),
1606
1604
  /* @__PURE__ */ c(
1607
- d1,
1605
+ c1,
1608
1606
  {
1609
1607
  id: "contact-message",
1610
1608
  name: "contact-message",
@@ -1635,7 +1633,7 @@ const W = {
1635
1633
  ]
1636
1634
  }
1637
1635
  );
1638
- }, X1 = A(p1), m1 = ({
1636
+ }, K1 = A(u1), p1 = ({
1639
1637
  block: d = !1,
1640
1638
  children: e,
1641
1639
  className: t,
@@ -1673,7 +1671,7 @@ const W = {
1673
1671
  ]
1674
1672
  }
1675
1673
  );
1676
- }, e2 = A(m1), f1 = ({
1674
+ }, X1 = A(p1), m1 = ({
1677
1675
  children: d,
1678
1676
  className: e,
1679
1677
  colGap: t = 2,
@@ -1708,7 +1706,7 @@ const W = {
1708
1706
  d
1709
1707
  ]
1710
1708
  }
1711
- ), t2 = A(f1), a2 = ({
1709
+ ), e2 = A(m1), t2 = ({
1712
1710
  breakPage: d = !1,
1713
1711
  children: e,
1714
1712
  className: t,
@@ -1734,7 +1732,7 @@ const W = {
1734
1732
  e
1735
1733
  ]
1736
1734
  }
1737
- ), n2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), V1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
1735
+ ), a2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), f1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
1738
1736
  a,
1739
1737
  {
1740
1738
  className: m(
@@ -1748,7 +1746,7 @@ const W = {
1748
1746
  ),
1749
1747
  children: n || e
1750
1748
  }
1751
- ), s2 = A(V1), H1 = {
1749
+ ), n2 = A(f1), V1 = {
1752
1750
  circular: "circular 3s linear infinite",
1753
1751
  "circular-reverse": "circular 3s linear reverse infinite",
1754
1752
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -1760,17 +1758,17 @@ const W = {
1760
1758
  "menu-open": "menu-open 0.1s ease-out",
1761
1759
  "menu-close": "menu-close 0.1s ease-in-out",
1762
1760
  indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
1763
- }, C1 = {
1761
+ }, H1 = {
1764
1762
  map: "var(--map)"
1765
- }, L1 = {
1763
+ }, C1 = {
1766
1764
  "3xs": "0.5rem",
1767
1765
  xxs: "0.625rem",
1768
1766
  "2.5xl": "1.625rem",
1769
1767
  "2.75xl": "1.75rem",
1770
1768
  "3.5xl": "2rem"
1771
- }, M1 = {
1769
+ }, L1 = {
1772
1770
  17: "repeat(17, minmax(0, 1fr))"
1773
- }, g1 = {
1771
+ }, M1 = {
1774
1772
  circular: {
1775
1773
  "100%": {
1776
1774
  transform: "rotate(360deg)"
@@ -1860,16 +1858,16 @@ const W = {
1860
1858
  transform: "translateX(100%)"
1861
1859
  }
1862
1860
  }
1863
- }, v1 = {
1861
+ }, g1 = {
1864
1862
  20: "5rem",
1865
1863
  24: "6rem",
1866
1864
  28: "7rem",
1867
1865
  32: "8rem"
1868
- }, b1 = {
1866
+ }, v1 = {
1869
1867
  aside: "268px",
1870
1868
  container: "724px",
1871
1869
  page: "1200px"
1872
- }, A1 = {
1870
+ }, b1 = {
1873
1871
  "xs-max": {
1874
1872
  max: "639px"
1875
1873
  },
@@ -1887,22 +1885,22 @@ const W = {
1887
1885
  max: "1199px"
1888
1886
  },
1889
1887
  "lg-up": "1200px"
1890
- }, y1 = {
1888
+ }, A1 = {
1891
1889
  0: "0ms",
1892
1890
  50: "50ms"
1893
- }, x1 = {
1891
+ }, y1 = {
1894
1892
  "center-top": "center 30%"
1895
1893
  }, O = {
1896
- animation: H1,
1897
- backgroundImage: C1,
1898
- fontSize: L1,
1899
- gridTemplateColumns: M1,
1900
- keyframes: g1,
1901
- margin: v1,
1902
- maxWidth: b1,
1903
- screens: A1,
1904
- transitionDuration: y1,
1905
- transformOrigin: x1
1894
+ animation: V1,
1895
+ backgroundImage: H1,
1896
+ fontSize: C1,
1897
+ gridTemplateColumns: L1,
1898
+ keyframes: M1,
1899
+ margin: g1,
1900
+ maxWidth: v1,
1901
+ screens: b1,
1902
+ transitionDuration: A1,
1903
+ transformOrigin: y1
1906
1904
  }, B = {
1907
1905
  black: {
1908
1906
  50: "#FCFCFC",
@@ -2010,10 +2008,10 @@ const W = {
2010
2008
  purple: "hsl(279 85% 57%)",
2011
2009
  white: "hsl(0 0% 100%)",
2012
2010
  transparent: "hsl(0 0% 100% / 0)"
2013
- }, r2 = {
2011
+ }, s2 = {
2014
2012
  ...B,
2015
2013
  ...I
2016
- }, w1 = ({ matchUtilities: d, theme: e }) => d(
2014
+ }, x1 = ({ matchUtilities: d, theme: e }) => d(
2017
2015
  {
2018
2016
  aspect: (t) => ({
2019
2017
  "@supports (aspect-ratio: 1 / 1)": {
@@ -2034,7 +2032,7 @@ const W = {
2034
2032
  })
2035
2033
  },
2036
2034
  { values: e("aspectRatio") }
2037
- ), S1 = ({ matchUtilities: d, theme: e }) => d(
2035
+ ), w1 = ({ matchUtilities: d, theme: e }) => d(
2038
2036
  {
2039
2037
  "animation-delay": (t) => ({
2040
2038
  "animation-delay": t
@@ -2043,11 +2041,11 @@ const W = {
2043
2041
  {
2044
2042
  values: e("transitionDelay")
2045
2043
  }
2046
- ), k1 = ({ matchUtilities: d }) => d({
2044
+ ), S1 = ({ matchUtilities: d }) => d({
2047
2045
  "max-inline": (e) => ({
2048
2046
  "max-inline-size": e
2049
2047
  })
2050
- }), z1 = ({ matchUtilities: d }) => d({
2048
+ }), k1 = ({ matchUtilities: d }) => d({
2051
2049
  "max-block": (e) => ({
2052
2050
  "max-block-size": e
2053
2051
  })
@@ -2066,10 +2064,10 @@ const W = {
2066
2064
  const p = {
2067
2065
  "font-size": u,
2068
2066
  ...a
2069
- }, V = `.${e(`${t}-${i}`)}`, C = n ? n({ sizeKey: i, sizeValue: u }) : {};
2067
+ }, V = `.${e(`${t}-${i}`)}`, H = n ? n({ sizeKey: i, sizeValue: u }) : {};
2070
2068
  r[V] = {
2071
2069
  ...p,
2072
- ...C
2070
+ ...H
2073
2071
  }, Object.entries(l).forEach(([f, g]) => {
2074
2072
  const y = `.${e(`${t}-${i}-${f}`)}`, h = o ? o({ sizeKey: i, sizeValue: u, weightKey: f, weightValue: g }) : {};
2075
2073
  r[y] = {
@@ -2182,16 +2180,16 @@ const W = {
2182
2180
  classPrefix: "text-body",
2183
2181
  sizes: o,
2184
2182
  weights: s
2185
- }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e, theme: t }), k1({ matchUtilities: e }), z1({ matchUtilities: e });
2183
+ }), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
2186
2184
  }
2187
- ], l2 = {
2185
+ ], r2 = {
2188
2186
  theme: {
2189
2187
  extend: O,
2190
2188
  colors: B
2191
2189
  },
2192
2190
  plugins: q,
2193
2191
  corePlugins: $
2194
- }, i2 = {
2192
+ }, l2 = {
2195
2193
  theme: {
2196
2194
  extend: O,
2197
2195
  colors: I
@@ -2199,7 +2197,7 @@ const W = {
2199
2197
  plugins: q,
2200
2198
  corePlugins: $
2201
2199
  };
2202
- function Z1(d, e = []) {
2200
+ function z1(d, e = []) {
2203
2201
  return new Proxy(d, {
2204
2202
  get: function(t, a) {
2205
2203
  return t[a];
@@ -2210,13 +2208,13 @@ function Z1(d, e = []) {
2210
2208
  }
2211
2209
  });
2212
2210
  }
2213
- function o2(d, e = []) {
2211
+ function i2(d, e = []) {
2214
2212
  e.length && (d == null || d.classList.add(...e));
2215
2213
  }
2216
- function c2(d, e = []) {
2214
+ function o2(d, e = []) {
2217
2215
  e.length && (d == null || d.classList.remove(...e));
2218
2216
  }
2219
- function d2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2217
+ function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2220
2218
  let s = !0;
2221
2219
  for (const [l, o] of t.entries()) {
2222
2220
  const r = e.querySelector(`[name="${l}"]`), i = a[l], u = [];
@@ -2228,21 +2226,21 @@ function d2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2228
2226
  }
2229
2227
  return s;
2230
2228
  }
2231
- function h2(d) {
2229
+ function d2(d) {
2232
2230
  const e = (
2233
2231
  // eslint-disable-next-line
2234
2232
  /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/
2235
2233
  ), t = /[^a-zA-Z]+$/;
2236
2234
  return e.test(d.toLowerCase()) && !t.test(d);
2237
2235
  }
2238
- class u2 {
2236
+ class h2 {
2239
2237
  init(e) {
2240
2238
  this.handleSliders(e);
2241
2239
  }
2242
2240
  handleSliders({ items: e, id: t = 1, cb: a }) {
2243
2241
  if (!document.getElementById(`slider-container-${t}`))
2244
2242
  return;
2245
- const n = Z1(
2243
+ const n = z1(
2246
2244
  {
2247
2245
  activeIndex: 0,
2248
2246
  computedSlides: [],
@@ -2324,10 +2322,10 @@ class u2 {
2324
2322
  }
2325
2323
  }
2326
2324
  }
2327
- class H {
2325
+ class C {
2328
2326
  static calcCrow(e, t, a, n) {
2329
- const l = H.toRad(a - e), o = H.toRad(n - t);
2330
- e = H.toRad(e), a = H.toRad(a);
2327
+ const l = C.toRad(a - e), o = C.toRad(n - t);
2328
+ e = C.toRad(e), a = C.toRad(a);
2331
2329
  const r = Math.sin(l / 2) * Math.sin(l / 2) + Math.sin(o / 2) * Math.sin(o / 2) * Math.cos(e) * Math.cos(a);
2332
2330
  return 6371 * (2 * Math.atan2(Math.sqrt(r), Math.sqrt(1 - r)));
2333
2331
  }
@@ -2342,9 +2340,9 @@ class H {
2342
2340
  return;
2343
2341
  window.dataLayer = window.dataLayer || [];
2344
2342
  const t = document.querySelectorAll("[data-div-track]");
2345
- typeof H == "function" && t.forEach((a) => {
2343
+ typeof C == "function" && t.forEach((a) => {
2346
2344
  a.addEventListener("click", () => {
2347
- H.clickTrackEvent(a.dataset.divTrack);
2345
+ C.clickTrackEvent(a.dataset.divTrack);
2348
2346
  });
2349
2347
  });
2350
2348
  }
@@ -2354,24 +2352,25 @@ class H {
2354
2352
  click_value: e
2355
2353
  });
2356
2354
  }
2357
- static async createData(e, t = null, a = !0) {
2355
+ static async createData(e, t = null, a = !0, n = {}) {
2358
2356
  if (window.options.isBot || !t)
2359
2357
  return null;
2360
- const { tolken: n = null, ip: s = null } = await H.getHeaders(), l = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, o = e + l, r = typeof t == "string" ? t : JSON.stringify(t), i = (t == null ? void 0 : t.website) ?? H.getWebsiteHeaderName();
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();
2361
2359
  try {
2362
- const u = await fetch(o, {
2360
+ const p = await fetch(r, {
2363
2361
  method: "POST",
2364
- body: r === "null" ? null : r,
2362
+ body: i === "null" ? null : i,
2365
2363
  headers: {
2366
- website: i
2367
- }
2368
- }), p = u.headers.get("content-type");
2369
- if (p && p.indexOf("application/json") !== -1)
2370
- return u.json();
2371
- const V = await u.text();
2372
- return V ? V.replace("__next", "") : null;
2373
- } catch (u) {
2374
- console.error("createData", u);
2364
+ website: u
2365
+ },
2366
+ ...n
2367
+ }), V = p.headers.get("content-type");
2368
+ if (V && V.indexOf("application/json") !== -1)
2369
+ return p.json();
2370
+ const H = await p.text();
2371
+ return H ? H.replace("__next", "") : null;
2372
+ } catch (p) {
2373
+ console.error("createData", p);
2375
2374
  }
2376
2375
  return null;
2377
2376
  }
@@ -2380,7 +2379,7 @@ class H {
2380
2379
  }
2381
2380
  static async deleteSearchValue(e = "recsSearchValue") {
2382
2381
  try {
2383
- return await H.createData(`/api/cookie/remove?name=${e}`);
2382
+ return await C.createData(`/api/cookie/remove?name=${e}`);
2384
2383
  } catch (t) {
2385
2384
  console.error("deleteSearchValue", t.message);
2386
2385
  }
@@ -2431,7 +2430,7 @@ class H {
2431
2430
  static async fetchData(e, t = !1, a = !0) {
2432
2431
  if (options.isBot)
2433
2432
  return null;
2434
- const { tolken: n = null, ip: s = null } = await H.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2433
+ const { tolken: n = null, ip: s = null } = await C.getHeaders(), o = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
2435
2434
  try {
2436
2435
  const r = await fetch(o, { method: "GET" });
2437
2436
  if (t === !0) {
@@ -2451,8 +2450,8 @@ class H {
2451
2450
  }
2452
2451
  static formatDate(e = null) {
2453
2452
  return e ? (e = new Date(e), [
2454
- H.padTo2Digits(e.getMonth() + 1),
2455
- H.padTo2Digits(e.getDate()),
2453
+ C.padTo2Digits(e.getMonth() + 1),
2454
+ C.padTo2Digits(e.getDate()),
2456
2455
  e.getFullYear()
2457
2456
  ].join("-")) : null;
2458
2457
  }
@@ -2549,19 +2548,19 @@ class H {
2549
2548
  }[e];
2550
2549
  }
2551
2550
  static async getLocationData(e) {
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);
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);
2554
2553
  }
2555
2554
  static getReportUrl(e, t = null) {
2556
2555
  var r, i, u;
2557
2556
  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;
2558
2557
  t = t || ((e == null ? void 0 : e.id) ?? null);
2559
2558
  const o = [l, "-piq", t].filter((p) => p).join("");
2560
- return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + o;
2559
+ return "/" + [a, n, s].filter((p) => p).map((p) => C.toSlug(p)).join("/") + "/" + o;
2561
2560
  }
2562
2561
  static async getSearchValue(e = "recsSearchValue") {
2563
2562
  try {
2564
- return await H.createData(`/api/cookie/fetch?name=${e}`);
2563
+ return await C.createData(`/api/cookie/fetch?name=${e}`);
2565
2564
  } catch (t) {
2566
2565
  console.error("getSearchValue", t.message);
2567
2566
  }
@@ -2689,7 +2688,7 @@ class H {
2689
2688
  if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
2690
2689
  return null;
2691
2690
  try {
2692
- return await H.createData("/api/cookie/fetch?name=odrUser");
2691
+ return await C.createData("/api/cookie/fetch?name=odrUser");
2693
2692
  } catch (t) {
2694
2693
  console.error("getUser", t.message);
2695
2694
  }
@@ -2705,7 +2704,7 @@ class H {
2705
2704
  uuid: t
2706
2705
  }
2707
2706
  });
2708
- return await H.makeSearchFetchCall(
2707
+ return await C.makeSearchFetchCall(
2709
2708
  `/api/client?query=user-get-history&filter=${a}`
2710
2709
  );
2711
2710
  }
@@ -2788,16 +2787,16 @@ class H {
2788
2787
  b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(p.opening), b && await y(b), b == null || b.dispatchEvent(p.opened);
2789
2788
  }
2790
2789
  });
2791
- }), C = new MutationObserver((h, v) => {
2790
+ }), H = new MutationObserver((h, v) => {
2792
2791
  h.forEach((w) => {
2793
2792
  w.removedNodes.forEach((b) => {
2794
- b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), C == null || C.disconnect(), V == null || V.disconnect());
2793
+ b.nodeName === "DIALOG" && (b.removeEventListener("click", g), b.removeEventListener("close", f), b.dispatchEvent(p.removed), H == null || H.disconnect(), V == null || V.disconnect());
2795
2794
  });
2796
2795
  });
2797
2796
  });
2798
2797
  i && (V.observe(i, {
2799
2798
  attributes: !0
2800
- }), C.observe(document.body, {
2799
+ }), H.observe(document.body, {
2801
2800
  attributes: !1,
2802
2801
  subtree: !1,
2803
2802
  childList: !0
@@ -2831,7 +2830,7 @@ class H {
2831
2830
  };
2832
2831
  }
2833
2832
  static hasBoundsEntry(e, t = "bounds") {
2834
- return H.getBoundsEntries(t).includes(e);
2833
+ return C.getBoundsEntries(t).includes(e);
2835
2834
  }
2836
2835
  static initObserver(e, t, a = null) {
2837
2836
  if (!e)
@@ -2890,7 +2889,7 @@ class H {
2890
2889
  url: n,
2891
2890
  data: s
2892
2891
  };
2893
- return await H.createData("/api/client?query=log/save&method=POST", l), null;
2892
+ return await C.createData("/api/client?query=log/save&method=POST", l), null;
2894
2893
  }
2895
2894
  static loadAds() {
2896
2895
  window.dataLayer = window.dataLayer || [];
@@ -2908,7 +2907,7 @@ class H {
2908
2907
  if (e) {
2909
2908
  const s = "/scripts/" + e + ".js?v=" + n;
2910
2909
  try {
2911
- return await H.injectScript({
2910
+ return await C.injectScript({
2912
2911
  src: s,
2913
2912
  id: t || e,
2914
2913
  async: !1,
@@ -2924,11 +2923,11 @@ class H {
2924
2923
  if (window.options.googleMapsLoaded === !0)
2925
2924
  return;
2926
2925
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2927
- await H.injectScript({ src: a, id: "googleapis", async: !1 });
2926
+ await C.injectScript({ src: a, id: "googleapis", async: !1 });
2928
2927
  }
2929
2928
  static async loadLeafletApi() {
2930
2929
  const e = "/leaflet/leaflet.js", t = "/leaflet/leaflet.css", a = "/leaflet/leaflet-gesture-handling.min.js", n = "/leaflet/leaflet-gesture-handling.min.css";
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({
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({
2932
2931
  src: a,
2933
2932
  id: "gestureJs",
2934
2933
  async: !1
@@ -2943,7 +2942,7 @@ class H {
2943
2942
  }
2944
2943
  static async loadSwiper() {
2945
2944
  const e = "/slider/swiper-bundle.min.js";
2946
- await H.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await H.injectScript({ src: e, id: "swiperJs", async: !1 });
2945
+ await C.injectLink({ href: "/slider/swiper-bundle.min.css", id: "swiperCss" }), await C.injectScript({ src: e, id: "swiperJs", async: !1 });
2947
2946
  }
2948
2947
  static async makeSearchFetchCall(e) {
2949
2948
  try {
@@ -2983,10 +2982,10 @@ class H {
2983
2982
  vin: u = null,
2984
2983
  license: p = null,
2985
2984
  token: V = null,
2986
- phone: C = null
2985
+ phone: H = null
2987
2986
  } = e || {}, f = t && t !== "", g = l && l !== "" && l !== "18", y = o && o !== "" && l !== "99";
2988
2987
  let h = [];
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 && 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)), 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("&");
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("&");
2990
2989
  }
2991
2990
  static padTo2Digits(e) {
2992
2991
  return e.toString().padStart(2, "0");
@@ -3007,7 +3006,7 @@ class H {
3007
3006
  useGoogleOverride: u = !1,
3008
3007
  useAmazonOverride: p = !1,
3009
3008
  isSandboxAccount: V = !1
3010
- } = t ?? {}, { tolken: C = null, ip: f = null } = await H.getHeaders(), y = [
3009
+ } = t ?? {}, { tolken: H = null, ip: f = null } = await C.getHeaders(), y = [
3011
3010
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3012
3011
  "addressesOnly=" + a,
3013
3012
  "useSearch=" + l,
@@ -3019,9 +3018,9 @@ class H {
3019
3018
  "useAmazonOverride=" + p,
3020
3019
  "isSandboxAccount=" + V
3021
3020
  ];
3022
- r && r !== "" && !s && y.push("state=" + r), C && C !== "" && y.push("tolken=" + C), f && f !== "" && y.push("ip=" + f);
3021
+ r && r !== "" && !s && y.push("state=" + r), H && H !== "" && y.push("tolken=" + H), f && f !== "" && y.push("ip=" + f);
3023
3022
  const h = y.join("&"), w = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3024
- return await H.makeSearchFetchCall(w);
3023
+ return await C.makeSearchFetchCall(w);
3025
3024
  }
3026
3025
  static removeElements(e) {
3027
3026
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -3040,7 +3039,7 @@ class H {
3040
3039
  });
3041
3040
  }
3042
3041
  static searchInStates(e) {
3043
- const t = H.getStates(), a = e.toLowerCase();
3042
+ const t = C.getStates(), a = e.toLowerCase();
3044
3043
  let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
3045
3044
  return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
3046
3045
  }
@@ -3048,7 +3047,7 @@ class H {
3048
3047
  typeof woopra == "object" && woopra.track(e, t);
3049
3048
  }
3050
3049
  static setBoundsEntries(e, t = "bounds") {
3051
- const a = H.getBoundsEntries(t);
3050
+ const a = C.getBoundsEntries(t);
3052
3051
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
3053
3052
  }
3054
3053
  static async setCityState(e = null) {
@@ -3057,7 +3056,7 @@ class H {
3057
3056
  return e;
3058
3057
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
3059
3058
  let [a = null, n = null] = t.split(",").map((s) => s.trim());
3060
- if (H.getStates(), a && !n) {
3059
+ if (C.getStates(), a && !n) {
3061
3060
  const s = this.searchInStates(a);
3062
3061
  s && (a = null, n = s.short);
3063
3062
  }
@@ -3090,8 +3089,13 @@ class H {
3090
3089
  console.error("Failed to load one or more search modules:", l);
3091
3090
  }
3092
3091
  }
3093
- static async setSearchValueClient(e, t = "recsSearchValue") {
3094
- localStorage.setItem(t, JSON.stringify(e)), await H.createData(`/api/cookie/create?name=${t}`, e);
3092
+ static async setSearchValueClient(e, t = "recsSearchValue", a = {}) {
3093
+ localStorage.setItem(t, JSON.stringify(e)), await C.createData(
3094
+ `/api/cookie/create?name=${t}`,
3095
+ e,
3096
+ !0,
3097
+ a
3098
+ );
3095
3099
  }
3096
3100
  static stickyHeader(e = ".nav") {
3097
3101
  const t = document.querySelector(e);
@@ -3118,7 +3122,7 @@ class H {
3118
3122
  return t.charAt(0).toUpperCase() + t.slice(1);
3119
3123
  }
3120
3124
  static useLayerTitle(e, t) {
3121
- const a = H.getLayerTitle(e);
3125
+ const a = C.getLayerTitle(e);
3122
3126
  L.tileLayer(a, {
3123
3127
  maxNativeZoom: 19,
3124
3128
  maxZoom: 25,
@@ -3127,7 +3131,7 @@ class H {
3127
3131
  }).addTo(t);
3128
3132
  }
3129
3133
  static ucWords(e) {
3130
- return e ? e.toString().split(" ").map((t) => H.ucFirst(t)).join(" ") : null;
3134
+ return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
3131
3135
  }
3132
3136
  /**
3133
3137
  * HOW TO USE EVENTS
@@ -3170,44 +3174,44 @@ class H {
3170
3174
  }
3171
3175
  }
3172
3176
  export {
3173
- T1 as Accordion,
3174
- D1 as Alert,
3175
- O1 as Autocomplete,
3176
- B1 as Badge,
3177
+ F1 as Accordion,
3178
+ T1 as Alert,
3179
+ D1 as Autocomplete,
3180
+ O1 as Badge,
3177
3181
  F as Button,
3178
- u2 as CardSlider,
3179
- I1 as Checkbox,
3180
- H as Common,
3181
- X1 as ContactForm,
3182
- e2 as ContentCard,
3183
- $1 as Dialog,
3184
- q1 as Dots,
3185
- t2 as FlexItem,
3186
- s2 as FunnelHeader,
3182
+ h2 as CardSlider,
3183
+ B1 as Checkbox,
3184
+ C as Common,
3185
+ K1 as ContactForm,
3186
+ X1 as ContentCard,
3187
+ I1 as Dialog,
3188
+ $1 as Dots,
3189
+ e2 as FlexItem,
3190
+ n2 as FunnelHeader,
3187
3191
  x as Icon,
3188
- j1 as LoadingBar,
3189
- R1 as Popover,
3190
- P1 as ProcessingSpinner,
3191
- W1 as ProgressBar,
3192
- U1 as Radio,
3193
- G1 as Select,
3194
- Q1 as Skeleton,
3195
- J1 as Slider,
3196
- a2 as Spacer,
3197
- _1 as Spinner,
3198
- n2 as StackedListItem,
3199
- Y1 as Stars,
3200
- d1 as TextArea,
3192
+ q1 as LoadingBar,
3193
+ P1 as Popover,
3194
+ j1 as ProcessingSpinner,
3195
+ R1 as ProgressBar,
3196
+ W1 as Radio,
3197
+ U1 as Select,
3198
+ G1 as Skeleton,
3199
+ Q1 as Slider,
3200
+ t2 as Spacer,
3201
+ J1 as Spinner,
3202
+ a2 as StackedListItem,
3203
+ _1 as Stars,
3204
+ c1 as TextArea,
3201
3205
  T as Textbox,
3202
- K1 as Toggle,
3203
- o2 as addClass,
3204
- r2 as colors,
3206
+ Y1 as Toggle,
3207
+ i2 as addClass,
3208
+ s2 as colors,
3205
3209
  $ as corePlugins,
3206
- i2 as elerisPreset,
3210
+ l2 as elerisPreset,
3207
3211
  O as extensions,
3208
3212
  q as plugins,
3209
- l2 as propertyPreset,
3210
- c2 as removeClass,
3211
- h2 as validateEmail,
3212
- d2 as validateForm
3213
+ r2 as propertyPreset,
3214
+ o2 as removeClass,
3215
+ d2 as validateEmail,
3216
+ c2 as validateForm
3213
3217
  };