@vehiclehistory/property-lib 0.0.966 → 0.0.967

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as c, jsxs as g, Fragment as S } from "react/jsx-runtime";
2
2
  import p from "classnames";
3
- import { memo as y, useState as N, useEffect as Z } from "react";
3
+ import { memo as A, useState as Z, useEffect as N } from "react";
4
4
  const W = {
5
5
  xxSmall: "w-4 h-4",
6
6
  xSmall: "w-5 h-5",
@@ -501,10 +501,10 @@ const W = {
501
501
  size: a = "medium",
502
502
  viewBox: n = "0 0 20 20"
503
503
  }) => {
504
- const s = G(t), [l, i] = N(d), [r, o] = N(s);
505
- return Z(() => {
504
+ const s = G(t), [l, i] = Z(d), [r, o] = Z(s);
505
+ return N(() => {
506
506
  o(s);
507
- }, [s]), Z(() => {
507
+ }, [s]), N(() => {
508
508
  i(d);
509
509
  }, [d]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ c(
510
510
  "svg",
@@ -524,7 +524,7 @@ const W = {
524
524
  }
525
525
  }
526
526
  );
527
- }, x = y(Q), J = ({
527
+ }, x = A(Q), J = ({
528
528
  children: d,
529
529
  className: e,
530
530
  clickHandler: t,
@@ -533,7 +533,7 @@ const W = {
533
533
  unmount: s = !0,
534
534
  isOpen: l = !1
535
535
  }) => {
536
- const [i, r] = N(l);
536
+ const [i, r] = Z(l);
537
537
  return /* @__PURE__ */ c(
538
538
  "div",
539
539
  {
@@ -593,7 +593,7 @@ const W = {
593
593
  ] })
594
594
  }
595
595
  );
596
- }, F1 = y(J), Y = ({
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((H, V) => /* @__PURE__ */ c("li", { children: H }, V))
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 = y(Y), I1 = ({
666
+ }, D1 = A(_), T1 = ({
667
667
  autoFocus: d = !1,
668
668
  className: e,
669
669
  dataSearch: t = "container",
@@ -676,11 +676,11 @@ const W = {
676
676
  name: o = "",
677
677
  options: u = [],
678
678
  parentProps: m = {},
679
- placeholder: H = "",
680
- props: V = {},
679
+ placeholder: V = "",
680
+ props: H = {},
681
681
  rightIcon: f = "",
682
682
  required: M = !1,
683
- showSearchIcon: A = !0,
683
+ showSearchIcon: y = !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
  ...m,
703
703
  children: [
704
- A && /* @__PURE__ */ g(
704
+ y && /* @__PURE__ */ g(
705
705
  "span",
706
706
  {
707
707
  className: p(
@@ -740,7 +740,7 @@ const W = {
740
740
  className: p(
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": A === !0,
743
+ "pl-8": y === !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",
@@ -750,12 +750,12 @@ const W = {
750
750
  ),
751
751
  required: M,
752
752
  autoComplete: "off",
753
- placeholder: !H && n ? " " : H,
753
+ placeholder: !V && n ? " " : V,
754
754
  type: "search",
755
755
  name: o || "search-input",
756
756
  "data-id": "search-input",
757
757
  ...R,
758
- ...V
758
+ ...H
759
759
  }
760
760
  ),
761
761
  n && /* @__PURE__ */ c(
@@ -764,7 +764,7 @@ const W = {
764
764
  className: p(
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": A === !0,
767
+ "!left-7": y === !0,
768
768
  "left-2": v === "medium",
769
769
  "left-3": v === "large",
770
770
  "left-4": v === "xLarge"
@@ -848,7 +848,7 @@ const W = {
848
848
  ]
849
849
  }
850
850
  );
851
- }, T1 = ({
851
+ }, O1 = ({
852
852
  children: d,
853
853
  className: e,
854
854
  size: t = "sm",
@@ -867,7 +867,7 @@ const W = {
867
867
  ),
868
868
  children: d
869
869
  }
870
- ), _ = ({
870
+ ), Y = ({
871
871
  borderless: d = !1,
872
872
  leftIcon: e,
873
873
  leftIconProps: t = {},
@@ -880,15 +880,15 @@ const W = {
880
880
  rightIconProps: o = {},
881
881
  rounded: u = !1,
882
882
  size: m = "md",
883
- type: H = "button",
884
- uppercase: V = !1,
883
+ type: V = "button",
884
+ uppercase: H = !1,
885
885
  variation: f = "primary"
886
886
  }) => {
887
887
  const M = l ? "a" : "button";
888
888
  return /* @__PURE__ */ g(
889
889
  M,
890
890
  {
891
- type: M !== "a" ? H : null,
891
+ type: M !== "a" ? V : null,
892
892
  className: p(
893
893
  "button",
894
894
  {
@@ -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": V,
900
+ "button--uppercase": H,
901
901
  "button--borderless": d || f === "link"
902
902
  },
903
903
  n
@@ -928,7 +928,7 @@ const W = {
928
928
  ]
929
929
  }
930
930
  );
931
- }, F = y(_), K = ({
931
+ }, F = A(Y), K = ({
932
932
  checked: d = !1,
933
933
  children: e,
934
934
  className: t,
@@ -941,12 +941,12 @@ const W = {
941
941
  variation: o = "primary",
942
942
  value: u = ""
943
943
  }) => {
944
- const m = l ? "div" : "label", H = m === "label" ? { htmlFor: s } : {};
944
+ const m = l ? "div" : "label", V = m === "label" ? { htmlFor: s } : {};
945
945
  return /* @__PURE__ */ g(
946
946
  m,
947
947
  {
948
948
  className: p("checkbox flex items-center", o, t),
949
- ...H,
949
+ ...V,
950
950
  children: [
951
951
  /* @__PURE__ */ c(
952
952
  "input",
@@ -970,7 +970,7 @@ const W = {
970
970
  ]
971
971
  }
972
972
  );
973
- }, O1 = y(K), X = ({
973
+ }, I1 = A(K), X = ({
974
974
  activator: d,
975
975
  id: e = "",
976
976
  children: t,
@@ -983,11 +983,11 @@ const W = {
983
983
  fullMobile: o = !0,
984
984
  headerClass: u,
985
985
  hideClose: m = !1,
986
- iconSize: H = "medium",
987
- preventPageScroll: V = !0,
986
+ iconSize: V = "medium",
987
+ preventPageScroll: H = !0,
988
988
  stickyHeader: f = !1,
989
989
  title: M = "",
990
- titleClass: A,
990
+ titleClass: y,
991
991
  useFormMethod: h = !0
992
992
  }) => {
993
993
  const v = h ? "form" : "div";
@@ -1004,7 +1004,7 @@ const W = {
1004
1004
  {
1005
1005
  "dialog-full-mobile": o,
1006
1006
  dark: l,
1007
- "prevent-scroll": V
1007
+ "prevent-scroll": H
1008
1008
  },
1009
1009
  a
1010
1010
  ),
@@ -1027,7 +1027,7 @@ const W = {
1027
1027
  u
1028
1028
  ),
1029
1029
  children: [
1030
- M && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: A, children: M }),
1030
+ M && /* @__PURE__ */ c("h3", { id: `${e}-dialog-title`, className: y, children: M }),
1031
1031
  !m && /* @__PURE__ */ c(
1032
1032
  "button",
1033
1033
  {
@@ -1040,7 +1040,7 @@ const W = {
1040
1040
  x,
1041
1041
  {
1042
1042
  name: "close",
1043
- size: H,
1043
+ size: V,
1044
1044
  className: "pointer-events-none"
1045
1045
  }
1046
1046
  )
@@ -1070,7 +1070,7 @@ const W = {
1070
1070
  }
1071
1071
  )
1072
1072
  ] });
1073
- }, B1 = y(X), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: p("Dots mx-auto", d), children: [
1073
+ }, B1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: p("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,18 +1091,18 @@ const W = {
1091
1091
  const r = document.querySelector(".loading-bar__inner");
1092
1092
  if (!r) return;
1093
1093
  let o, u, m = !1;
1094
- function H(V) {
1095
- o === void 0 && (o = V);
1096
- const f = V - o;
1097
- if (u !== V) {
1094
+ function V(H) {
1095
+ o === void 0 && (o = H);
1096
+ const f = H - o;
1097
+ if (u !== H) {
1098
1098
  const M = f / n * 101;
1099
- r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (i && i(), m = !0, window.cancelAnimationFrame(V));
1099
+ r.style.width = `${M}%`, e && e({ elapsed: f, percentage: M }), M >= 101 && (i && i(), m = !0, window.cancelAnimationFrame(H));
1100
1100
  }
1101
- f < n && (u = V, m || window.requestAnimationFrame(H));
1101
+ f < n && (u = H, m || window.requestAnimationFrame(V));
1102
1102
  }
1103
- window.requestAnimationFrame(H);
1103
+ window.requestAnimationFrame(V);
1104
1104
  }
1105
- return Z(() => {
1105
+ return N(() => {
1106
1106
  l({ cb: d });
1107
1107
  }, []), /* @__PURE__ */ c(
1108
1108
  "div",
@@ -1121,7 +1121,7 @@ const W = {
1121
1121
  children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
1122
1122
  }
1123
1123
  );
1124
- }, q1 = y(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: p("processing-spinner", d) }), j1 = y(t1), P1 = ({
1124
+ }, q1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: p("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: o = !1
1187
1187
  }) => {
1188
- const m = ((H, V) => {
1189
- if (H) {
1190
- const f = Number(V) / H;
1188
+ const m = ((V, H) => {
1189
+ if (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
- }, R1 = y(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
- }, W1 = y(n1), s1 = ({
1271
+ }, W1 = A(n1), s1 = ({
1272
1272
  className: d = "",
1273
1273
  error: e = !1,
1274
1274
  errorMessage: t = "",
@@ -1281,9 +1281,9 @@ const W = {
1281
1281
  selectClass: o = "",
1282
1282
  styles: u = null,
1283
1283
  variation: m = "primary",
1284
- value: H
1284
+ value: V
1285
1285
  }) => {
1286
- const V = i ? { defaultValue: "" } : {};
1286
+ const H = i ? { defaultValue: "" } : {};
1287
1287
  return /* @__PURE__ */ g(
1288
1288
  "label",
1289
1289
  {
@@ -1303,8 +1303,8 @@ const W = {
1303
1303
  ),
1304
1304
  id: a,
1305
1305
  name: s,
1306
- value: H,
1307
- ...V,
1306
+ value: V,
1307
+ ...H,
1308
1308
  ...r,
1309
1309
  children: [
1310
1310
  i && /* @__PURE__ */ c("option", { hidden: !0, value: "", children: i }),
@@ -1323,7 +1323,7 @@ const W = {
1323
1323
  ]
1324
1324
  }
1325
1325
  );
1326
- }, U1 = y(s1), r1 = ({ className: d }) => /* @__PURE__ */ g(
1326
+ }, U1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ g(
1327
1327
  "div",
1328
1328
  {
1329
1329
  className: p(
@@ -1335,7 +1335,7 @@ const W = {
1335
1335
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1336
1336
  ]
1337
1337
  }
1338
- ), G1 = y(r1), l1 = ({
1338
+ ), G1 = A(r1), l1 = ({
1339
1339
  placeholderClass: d = "",
1340
1340
  children: e,
1341
1341
  className: t,
@@ -1370,7 +1370,7 @@ const W = {
1370
1370
  children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1371
1371
  }
1372
1372
  )
1373
- ] }), Q1 = y(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: p("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1373
+ ] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: p("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1374
1374
  x,
1375
1375
  {
1376
1376
  className: p("animate-spin text-black-900", e),
@@ -1379,7 +1379,7 @@ const W = {
1379
1379
  viewBox: "0 0 24 24",
1380
1380
  ...t
1381
1381
  }
1382
- ) }), J1 = y(i1), Y1 = ({
1382
+ ) }), J1 = A(i1), _1 = ({
1383
1383
  className: d,
1384
1384
  value: e
1385
1385
  }) => {
@@ -1443,7 +1443,7 @@ const W = {
1443
1443
  }
1444
1444
  ),
1445
1445
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1446
- ] }), c1 = y(o1), d1 = ({
1446
+ ] }), c1 = A(o1), d1 = ({
1447
1447
  className: d,
1448
1448
  clear: e = !1,
1449
1449
  error: t = !1,
@@ -1456,12 +1456,12 @@ const W = {
1456
1456
  props: o = {},
1457
1457
  styles: u = null,
1458
1458
  type: m = "text",
1459
- value: H,
1460
- variation: V = "primary"
1459
+ value: V,
1460
+ variation: H = "primary"
1461
1461
  }) => /* @__PURE__ */ g(
1462
1462
  "div",
1463
1463
  {
1464
- className: p("relative textbox", V, d),
1464
+ className: p("relative textbox", H, d),
1465
1465
  style: u ? { ...u } : null,
1466
1466
  children: [
1467
1467
  n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
@@ -1480,7 +1480,7 @@ const W = {
1480
1480
  id: s,
1481
1481
  name: i,
1482
1482
  type: m,
1483
- value: H,
1483
+ value: V,
1484
1484
  autoComplete: "off",
1485
1485
  className: p(
1486
1486
  "form-input",
@@ -1513,7 +1513,7 @@ const W = {
1513
1513
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1514
1514
  ]
1515
1515
  }
1516
- ), D = y(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
1516
+ ), D = 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__ */ g("div", { className: "relative", children: [
1517
1517
  /* @__PURE__ */ c(
1518
1518
  "input",
1519
1519
  {
@@ -1535,7 +1535,7 @@ const W = {
1535
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" : ""}`
1536
1536
  }
1537
1537
  )
1538
- ] }) }) }), _1 = y(h1), u1 = ({
1538
+ ] }) }) }), Y1 = A(h1), u1 = ({
1539
1539
  btnClass: d,
1540
1540
  className: e = "",
1541
1541
  containerClass: t,
@@ -1633,7 +1633,7 @@ const W = {
1633
1633
  ]
1634
1634
  }
1635
1635
  );
1636
- }, K1 = y(u1), p1 = ({
1636
+ }, K1 = A(u1), p1 = ({
1637
1637
  block: d = !1,
1638
1638
  children: e,
1639
1639
  className: t,
@@ -1671,7 +1671,7 @@ const W = {
1671
1671
  ]
1672
1672
  }
1673
1673
  );
1674
- }, X1 = y(p1), m1 = ({
1674
+ }, X1 = A(p1), m1 = ({
1675
1675
  children: d,
1676
1676
  className: e,
1677
1677
  colGap: t = 2,
@@ -1706,7 +1706,7 @@ const W = {
1706
1706
  d
1707
1707
  ]
1708
1708
  }
1709
- ), e2 = y(m1), t2 = ({
1709
+ ), e2 = A(m1), t2 = ({
1710
1710
  breakPage: d = !1,
1711
1711
  children: e,
1712
1712
  className: t,
@@ -1746,7 +1746,7 @@ const W = {
1746
1746
  ),
1747
1747
  children: n || e
1748
1748
  }
1749
- ), n2 = y(f1), V1 = {
1749
+ ), n2 = A(f1), V1 = {
1750
1750
  circular: "circular 3s linear infinite",
1751
1751
  "circular-reverse": "circular 3s linear reverse infinite",
1752
1752
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -1885,12 +1885,12 @@ const W = {
1885
1885
  max: "1199px"
1886
1886
  },
1887
1887
  "lg-up": "1200px"
1888
- }, y1 = {
1888
+ }, A1 = {
1889
1889
  0: "0ms",
1890
1890
  50: "50ms"
1891
- }, A1 = {
1891
+ }, y1 = {
1892
1892
  "center-top": "center 30%"
1893
- }, T = {
1893
+ }, O = {
1894
1894
  animation: V1,
1895
1895
  backgroundImage: H1,
1896
1896
  fontSize: C1,
@@ -1899,9 +1899,9 @@ const W = {
1899
1899
  margin: g1,
1900
1900
  maxWidth: v1,
1901
1901
  screens: b1,
1902
- transitionDuration: y1,
1903
- transformOrigin: A1
1904
- }, O = {
1902
+ transitionDuration: A1,
1903
+ transformOrigin: y1
1904
+ }, I = {
1905
1905
  black: {
1906
1906
  50: "#FCFCFC",
1907
1907
  100: "#F9F9F9",
@@ -2009,7 +2009,7 @@ const W = {
2009
2009
  white: "hsl(0 0% 100%)",
2010
2010
  transparent: "hsl(0 0% 100% / 0)"
2011
2011
  }, s2 = {
2012
- ...O,
2012
+ ...I,
2013
2013
  ...B
2014
2014
  }, x1 = ({ matchUtilities: d, theme: e }) => d(
2015
2015
  {
@@ -2049,7 +2049,7 @@ const W = {
2049
2049
  "max-block": (e) => ({
2050
2050
  "max-block-size": e
2051
2051
  })
2052
- }), I = ({
2052
+ }), T = ({
2053
2053
  addUtilities: d,
2054
2054
  e,
2055
2055
  classPrefix: t = "",
@@ -2064,13 +2064,13 @@ const W = {
2064
2064
  const m = {
2065
2065
  "font-size": u,
2066
2066
  ...a
2067
- }, H = `.${e(`${t}-${o}`)}`, V = n ? n({ sizeKey: o, sizeValue: u }) : {};
2068
- r[H] = {
2067
+ }, V = `.${e(`${t}-${o}`)}`, H = n ? n({ sizeKey: o, sizeValue: u }) : {};
2068
+ r[V] = {
2069
2069
  ...m,
2070
- ...V
2070
+ ...H
2071
2071
  }, Object.entries(l).forEach(([f, M]) => {
2072
- const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: M }) : {};
2073
- r[A] = {
2072
+ const y = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: M }) : {};
2073
+ r[y] = {
2074
2074
  ...m,
2075
2075
  "font-weight": M,
2076
2076
  ...h
@@ -2163,7 +2163,7 @@ const W = {
2163
2163
  2: "0.813rem",
2164
2164
  3: "0.75rem"
2165
2165
  };
2166
- I({
2166
+ T({
2167
2167
  addUtilities: d,
2168
2168
  e: a,
2169
2169
  classPrefix: "header",
@@ -2175,7 +2175,7 @@ const W = {
2175
2175
  }),
2176
2176
  sizes: l,
2177
2177
  weights: s
2178
- }), I({
2178
+ }), T({
2179
2179
  addUtilities: d,
2180
2180
  e: a,
2181
2181
  classPrefix: "text-body",
@@ -2185,14 +2185,14 @@ const W = {
2185
2185
  }
2186
2186
  ], r2 = {
2187
2187
  theme: {
2188
- extend: T,
2189
- colors: O
2188
+ extend: O,
2189
+ colors: I
2190
2190
  },
2191
2191
  plugins: q,
2192
2192
  corePlugins: $
2193
2193
  }, l2 = {
2194
2194
  theme: {
2195
- extend: T,
2195
+ extend: O,
2196
2196
  colors: B
2197
2197
  },
2198
2198
  plugins: q,
@@ -2365,32 +2365,13 @@ class C {
2365
2365
  website: i
2366
2366
  },
2367
2367
  ...n
2368
- }), o = r.headers.get("miss-session-id"), u = r.headers.get("client-retry") === "true";
2368
+ });
2369
2369
  return await this.createDataReturn(r);
2370
2370
  } catch (r) {
2371
2371
  console.error("createData", r);
2372
2372
  }
2373
2373
  return null;
2374
2374
  }
2375
- static async createData2(e, t = null, a = !0, n = {}, s = null) {
2376
- if (!t)
2377
- return null;
2378
- const l = await this.createDataGetExtra({ useExtra: a, missSessionId: s }), i = typeof t == "string" ? t : JSON.stringify(t), r = (t == null ? void 0 : t.website) ?? C.getWebsiteHeaderName();
2379
- try {
2380
- const o = await fetch(e + l, {
2381
- method: "POST",
2382
- body: i === "null" ? null : i,
2383
- headers: {
2384
- website: r
2385
- },
2386
- ...n
2387
- });
2388
- return await this.createDataReturn(o);
2389
- } catch (o) {
2390
- console.error("createData2", o);
2391
- }
2392
- return null;
2393
- }
2394
2375
  static async createDataGetExtra({ useExtra: e, missSessionId: t = null }) {
2395
2376
  const { tolken: a = null, ip: n = null } = await C.getHeaders({
2396
2377
  bypassSession: t !== null,
@@ -2541,20 +2522,18 @@ class C {
2541
2522
  platform: l = null
2542
2523
  } = navigator || {}, i = (s == null ? void 0 : s.platform) ?? l, r = {
2543
2524
  tolken: null,
2544
- oldSessionId: null,
2545
2525
  ip: null,
2546
2526
  userAgent: n,
2547
2527
  platform: i
2548
2528
  };
2549
2529
  if (typeof window.localStorage > "u")
2550
2530
  return r;
2551
- const o = "headerSessionId2", u = localStorage.getItem(o);
2531
+ const o = "headerSessionIdData", u = localStorage.getItem(o);
2552
2532
  if (u && !t) {
2553
- const H = JSON.parse(u), V = (/* @__PURE__ */ new Date()).getTime();
2554
- return H.expire - V < 0 && localStorage.removeItem(o), {
2555
- tolken: H.tolken,
2556
- oldSessionId: H.oldSessionId,
2557
- ip: H.ip,
2533
+ const V = JSON.parse(u), H = (/* @__PURE__ */ new Date()).getTime();
2534
+ return V.expire - H < 0 && localStorage.removeItem(o), {
2535
+ tolken: V.tolken,
2536
+ ip: V.ip,
2558
2537
  userAgent: n,
2559
2538
  platform: i
2560
2539
  };
@@ -2562,22 +2541,21 @@ class C {
2562
2541
  if ((m = window == null ? void 0 : window.options) != null && m.isPdf)
2563
2542
  return r;
2564
2543
  try {
2565
- const V = await (await fetch("/api/client-headers", {
2544
+ const H = await (await fetch("/api/client-headers", {
2566
2545
  headers: {
2567
2546
  "miss-session-id": a
2568
2547
  }
2569
- })).json(), f = (V == null ? void 0 : V.sessionId) ?? "noSessionId", M = (V == null ? void 0 : V.oldSessionId) ?? "noOldSessionId", A = V["x-forwarded-for"] ?? null, h = A ? A.split(/, /)[0] : null, v = e * 1e3;
2548
+ })).json(), f = (H == null ? void 0 : H.sessionId) ?? "noSessionId", M = H["x-forwarded-for"] ?? null, y = M ? M.split(/, /)[0] : null, h = e * 1e3;
2570
2549
  return localStorage.setItem(
2571
2550
  o,
2572
2551
  JSON.stringify({
2573
2552
  tolken: f,
2574
- oldSessionId: M,
2575
- ip: h,
2576
- expire: (/* @__PURE__ */ new Date()).getTime() + v
2553
+ ip: y,
2554
+ expire: (/* @__PURE__ */ new Date()).getTime() + h
2577
2555
  })
2578
- ), { tolken: f, oldSessionId: M, ip: h, userAgent: n, platform: i };
2579
- } catch (H) {
2580
- console.error("getHeaders", H);
2556
+ ), { tolken: f, ip: y, userAgent: n, platform: i };
2557
+ } catch (V) {
2558
+ console.error("getHeaders", V);
2581
2559
  }
2582
2560
  return r;
2583
2561
  }
@@ -2819,33 +2797,33 @@ class C {
2819
2797
  [v]: new Event(v)
2820
2798
  }),
2821
2799
  {}
2822
- ), H = new MutationObserver((h, v) => {
2800
+ ), V = new MutationObserver((h, v) => {
2823
2801
  h.forEach(async (w) => {
2824
2802
  if (w.attributeName === "open") {
2825
2803
  const b = w.target;
2826
2804
  if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
2827
- b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(m.opening), b && await A(b), b == null || b.dispatchEvent(m.opened);
2805
+ b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(m.opening), b && await y(b), b == null || b.dispatchEvent(m.opened);
2828
2806
  }
2829
2807
  });
2830
- }), V = new MutationObserver((h, v) => {
2808
+ }), H = new MutationObserver((h, v) => {
2831
2809
  h.forEach((w) => {
2832
2810
  w.removedNodes.forEach((b) => {
2833
- b.nodeName === "DIALOG" && (b.removeEventListener("click", M), b.removeEventListener("close", f), b.dispatchEvent(m.removed), V == null || V.disconnect(), H == null || H.disconnect());
2811
+ b.nodeName === "DIALOG" && (b.removeEventListener("click", M), b.removeEventListener("close", f), b.dispatchEvent(m.removed), H == null || H.disconnect(), V == null || V.disconnect());
2834
2812
  });
2835
2813
  });
2836
2814
  });
2837
- o && (H.observe(o, {
2815
+ o && (V.observe(o, {
2838
2816
  attributes: !0
2839
- }), V.observe(document.body, {
2817
+ }), H.observe(document.body, {
2840
2818
  attributes: !1,
2841
2819
  subtree: !1,
2842
2820
  childList: !0
2843
2821
  }));
2844
2822
  const f = async ({ target: h }) => {
2845
- h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(m.closed);
2823
+ h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(m.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(m.closed);
2846
2824
  }, M = async ({ target: h }) => {
2847
2825
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(m.outside), o == null || o.close("outside"));
2848
- }, A = (h) => Promise.allSettled(
2826
+ }, y = (h) => Promise.allSettled(
2849
2827
  h == null ? void 0 : h.getAnimations().map((v) => v == null ? void 0 : v.finished)
2850
2828
  );
2851
2829
  return !e && (o == null || o.addEventListener("click", M)), o == null || o.addEventListener("close", async (h) => {
@@ -3010,11 +2988,11 @@ class C {
3010
2988
  state: o = null,
3011
2989
  vin: u = null,
3012
2990
  license: m = null,
3013
- token: H = null,
3014
- phone: V = null
3015
- } = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", A = i && i !== "" && l !== "99";
2991
+ token: V = null,
2992
+ phone: H = null
2993
+ } = e || {}, f = t && t !== "", M = l && l !== "" && l !== "18", y = i && i !== "" && l !== "99";
3016
2994
  let h = [];
3017
- 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)), M && A ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (M && h.push("min=" + l), A && h.push("max=" + i)), V && V !== "" && h.push("phone=" + V), r && r !== "" && h.push("city=" + r), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), H && H !== "" && h.push("token=" + H), h.join("&");
2995
+ 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)), M && y ? parseInt(l) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + l)) : (h.push("min=" + l), h.push("max=" + i)) : (M && h.push("min=" + l), y && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), r && r !== "" && h.push("city=" + r), m && m !== "" && h.push("license=" + m), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
3018
2996
  }
3019
2997
  static padTo2Digits(e) {
3020
2998
  return e.toString().padStart(2, "0");
@@ -3034,8 +3012,8 @@ class C {
3034
3012
  useGoogle: o = !1,
3035
3013
  useGoogleOverride: u = !1,
3036
3014
  useAmazonOverride: m = !1,
3037
- isSandboxAccount: H = !1,
3038
- isOptOutSearch: V = !1
3015
+ isSandboxAccount: V = !1,
3016
+ isOptOutSearch: H = !1
3039
3017
  } = t ?? {}, { tolken: f = null, ip: M = null } = await C.getHeaders(), h = [
3040
3018
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
3041
3019
  "addressesOnly=" + a,
@@ -3046,8 +3024,8 @@ class C {
3046
3024
  "useGoogle=" + o,
3047
3025
  "useGoogleOverride=" + u,
3048
3026
  "useAmazonOverride=" + m,
3049
- "isSandboxAccount=" + H,
3050
- "isOptOutSearch=" + V
3027
+ "isSandboxAccount=" + V,
3028
+ "isOptOutSearch=" + H
3051
3029
  ];
3052
3030
  r && r !== "" && !s && h.push("state=" + r), f && f !== "" && h.push("tolken=" + f), M && M !== "" && h.push("ip=" + M);
3053
3031
  const v = h.join("&"), b = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + v;
@@ -3207,11 +3185,11 @@ class C {
3207
3185
  export {
3208
3186
  F1 as Accordion,
3209
3187
  D1 as Alert,
3210
- I1 as Autocomplete,
3211
- T1 as Badge,
3188
+ T1 as Autocomplete,
3189
+ O1 as Badge,
3212
3190
  F as Button,
3213
3191
  h2 as CardSlider,
3214
- O1 as Checkbox,
3192
+ I1 as Checkbox,
3215
3193
  C as Common,
3216
3194
  K1 as ContactForm,
3217
3195
  X1 as ContentCard,
@@ -3231,15 +3209,15 @@ export {
3231
3209
  t2 as Spacer,
3232
3210
  J1 as Spinner,
3233
3211
  a2 as StackedListItem,
3234
- Y1 as Stars,
3212
+ _1 as Stars,
3235
3213
  c1 as TextArea,
3236
3214
  D as Textbox,
3237
- _1 as Toggle,
3215
+ Y1 as Toggle,
3238
3216
  i2 as addClass,
3239
3217
  s2 as colors,
3240
3218
  $ as corePlugins,
3241
3219
  l2 as elerisPreset,
3242
- T as extensions,
3220
+ O as extensions,
3243
3221
  q as plugins,
3244
3222
  r2 as propertyPreset,
3245
3223
  o2 as removeClass,