@vehiclehistory/property-lib 0.1.1 → 0.1.3

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 k } from "react/jsx-runtime";
2
2
  import m from "classnames";
3
- import { memo as b, useState as N, useEffect as E } from "react";
3
+ import { memo as A, useState as N, useEffect as E } from "react";
4
4
  const G = {
5
5
  xxSmall: "w-4 h-4",
6
6
  xSmall: "w-5 h-5",
@@ -545,7 +545,7 @@ const G = {
545
545
  }
546
546
  }
547
547
  );
548
- }, x = b(Y), _ = ({
548
+ }, x = A(Y), X = ({
549
549
  children: d,
550
550
  className: e,
551
551
  clickHandler: t,
@@ -614,7 +614,7 @@ const G = {
614
614
  ] })
615
615
  }
616
616
  );
617
- }, O1 = b(_), X = ({
617
+ }, O1 = A(X), _ = ({
618
618
  children: d,
619
619
  className: e,
620
620
  messages: t = [],
@@ -645,14 +645,14 @@ const G = {
645
645
  iconColor: "text-yellow-500",
646
646
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
647
647
  }
648
- }, { icon: o, iconColor: p, styles: u } = l[i];
648
+ }, { icon: o, iconColor: u, styles: p } = l[i];
649
649
  return /* @__PURE__ */ c(
650
650
  "div",
651
651
  {
652
652
  id: i,
653
653
  className: m(
654
654
  "rounded w-full py-2 px-4 mb-4 border",
655
- u,
655
+ p,
656
656
  e
657
657
  ),
658
658
  ...r,
@@ -662,7 +662,7 @@ const G = {
662
662
  {
663
663
  name: o,
664
664
  viewBox: "0 0 24 24",
665
- className: p,
665
+ className: u,
666
666
  size: "xSmall"
667
667
  }
668
668
  ) }),
@@ -684,7 +684,7 @@ const G = {
684
684
  ] })
685
685
  }
686
686
  );
687
- }, I1 = b(X), T1 = ({
687
+ }, I1 = A(_), T1 = ({
688
688
  autoFocus: d = !1,
689
689
  className: e,
690
690
  dataSearch: t = "container",
@@ -695,15 +695,15 @@ const G = {
695
695
  leftIcon: i = "homeSearch",
696
696
  leftIconProps: l = {},
697
697
  loadingIconProps: o = {},
698
- mobileBackdrop: p = !1,
699
- name: u = "",
698
+ mobileBackdrop: u = !1,
699
+ name: p = "",
700
700
  options: V = [],
701
701
  parentProps: M = {},
702
702
  placeholder: f = "",
703
703
  props: v = {},
704
- rightIcon: A = "",
704
+ rightIcon: y = "",
705
705
  required: h = !1,
706
- showSearchIcon: y = !0,
706
+ showSearchIcon: b = !0,
707
707
  showRightIcon: w = !1,
708
708
  size: C = "medium",
709
709
  styles: S = null,
@@ -724,13 +724,13 @@ const G = {
724
724
  style: S ? { ...S } : null,
725
725
  ...M,
726
726
  children: [
727
- y && /* @__PURE__ */ g(
727
+ b && /* @__PURE__ */ g(
728
728
  "span",
729
729
  {
730
730
  className: m(
731
731
  "search-icon-left absolute inset-y-0 left-0 flex items-center ",
732
732
  {
733
- "pointer-events-none": p,
733
+ "pointer-events-none": u,
734
734
  "pl-2": C === "medium",
735
735
  "pl-4": C === "large"
736
736
  }
@@ -766,8 +766,8 @@ const G = {
766
766
  className: m(
767
767
  "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",
768
768
  {
769
- "pl-8": y === !0 && C === "medium",
770
- "pl-10": y === !0 && C === "large",
769
+ "pl-8": b === !0 && C === "medium",
770
+ "pl-10": b === !0 && C === "large",
771
771
  "px-3 h-10": C === "medium",
772
772
  "px-4 h-12": C === "large",
773
773
  "px-5 h-[60px] sm:!text-base": C === "xLarge",
@@ -779,7 +779,7 @@ const G = {
779
779
  autoComplete: "off",
780
780
  placeholder: !f && n ? " " : f,
781
781
  type: "search",
782
- name: u || "search-input",
782
+ name: p || "search-input",
783
783
  "data-id": "search-input",
784
784
  ...U,
785
785
  ...v
@@ -791,7 +791,7 @@ const G = {
791
791
  className: m(
792
792
  "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",
793
793
  {
794
- "!left-7": y === !0,
794
+ "!left-7": b === !0,
795
795
  "left-2": C === "medium",
796
796
  "left-3": C === "large",
797
797
  "left-4": C === "xLarge"
@@ -833,12 +833,12 @@ const G = {
833
833
  )
834
834
  }
835
835
  ),
836
- A && /* @__PURE__ */ c(
836
+ y && /* @__PURE__ */ c(
837
837
  "span",
838
838
  {
839
839
  "data-id": "right-icon",
840
840
  className: `${w ? "" : "hidden"} absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none`,
841
- children: /* @__PURE__ */ c(x, { name: A, size: "small", viewBox: "0 0 24 24" })
841
+ children: /* @__PURE__ */ c(x, { name: y, size: "small", viewBox: "0 0 24 24" })
842
842
  }
843
843
  ),
844
844
  /* @__PURE__ */ g(
@@ -906,24 +906,24 @@ const G = {
906
906
  outline: i = !1,
907
907
  props: l = {},
908
908
  rightIcon: o,
909
- rightIconProps: p = {},
910
- rounded: u = !1,
909
+ rightIconProps: u = {},
910
+ rounded: p = !1,
911
911
  size: V = "md",
912
912
  type: M = "button",
913
913
  uppercase: f = !1,
914
914
  variation: v = "primary"
915
915
  }) => {
916
- const A = r ? "a" : "button";
916
+ const y = r ? "a" : "button";
917
917
  return /* @__PURE__ */ g(
918
- A,
918
+ y,
919
919
  {
920
- type: A !== "a" ? M : null,
920
+ type: y !== "a" ? M : null,
921
921
  className: m(
922
922
  "button",
923
923
  {
924
924
  [`button--${v}`]: v,
925
925
  [`button--${V}`]: V,
926
- "button--rounded": u,
926
+ "button--rounded": p,
927
927
  "button--disabled": s,
928
928
  "button--outline": i,
929
929
  "button--custom-link": r,
@@ -952,13 +952,13 @@ const G = {
952
952
  name: o,
953
953
  size: V === "md" ? "small" : "xSmall",
954
954
  viewBox: "0 0 24 24",
955
- ...p
955
+ ...u
956
956
  }
957
957
  )
958
958
  ]
959
959
  }
960
960
  );
961
- }, F = b(K), e1 = ({
961
+ }, F = A(K), e1 = ({
962
962
  checked: d = !1,
963
963
  children: e,
964
964
  className: t,
@@ -969,13 +969,17 @@ const G = {
969
969
  name: i = "",
970
970
  props: l = {},
971
971
  variation: o = "primary",
972
- value: p = ""
972
+ value: u = ""
973
973
  }) => {
974
- const u = r ? "div" : "label", V = u === "label" ? { htmlFor: s } : {};
974
+ const p = r ? "div" : "label", V = p === "label" ? { htmlFor: s } : {};
975
975
  return /* @__PURE__ */ g(
976
- u,
976
+ p,
977
977
  {
978
- className: m("checkbox flex items-center", o, t),
978
+ className: m(
979
+ "checkbox",
980
+ { [`checkbox--${o}`]: o },
981
+ t
982
+ ),
979
983
  ...V,
980
984
  children: [
981
985
  /* @__PURE__ */ c(
@@ -983,7 +987,7 @@ const G = {
983
987
  {
984
988
  checked: d,
985
989
  className: m(
986
- "form-checkbox ",
990
+ "form-checkbox",
987
991
  {
988
992
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
989
993
  },
@@ -992,7 +996,7 @@ const G = {
992
996
  id: s,
993
997
  name: i,
994
998
  type: "checkbox",
995
- value: p,
999
+ value: u,
996
1000
  ...l
997
1001
  }
998
1002
  ),
@@ -1000,7 +1004,7 @@ const G = {
1000
1004
  ]
1001
1005
  }
1002
1006
  );
1003
- }, $1 = b(e1), t1 = ({
1007
+ }, $1 = A(e1), t1 = ({
1004
1008
  activator: d,
1005
1009
  id: e,
1006
1010
  children: t,
@@ -1011,15 +1015,15 @@ const G = {
1011
1015
  disableClose: i = !1,
1012
1016
  footer: l,
1013
1017
  fullMobile: o = !0,
1014
- headerClass: p,
1015
- hideClose: u = !1,
1018
+ headerClass: u,
1019
+ hideClose: p = !1,
1016
1020
  iconSize: V = "medium",
1017
1021
  preventPageScroll: M = !0,
1018
1022
  sheet: f = !1,
1019
1023
  sheetDirection: v = "right",
1020
- stickyHeader: A = !1,
1024
+ stickyHeader: y = !1,
1021
1025
  title: h = "",
1022
- titleClass: y,
1026
+ titleClass: b,
1023
1027
  variation: w = "primary",
1024
1028
  useFormMethod: C = !0
1025
1029
  }) => {
@@ -1056,15 +1060,15 @@ const G = {
1056
1060
  className: m(
1057
1061
  "dialog-header",
1058
1062
  {
1059
- "sticky top-0 bg-white z-10": A,
1063
+ "sticky top-0 bg-white z-10": y,
1060
1064
  "!pb-0 border-0 justify-end": !h,
1061
1065
  "justify-between border-b": h
1062
1066
  },
1063
- p
1067
+ u
1064
1068
  ),
1065
1069
  children: [
1066
- h && /* @__PURE__ */ c("h3", { className: y, children: h }),
1067
- !u && /* @__PURE__ */ c(
1070
+ h && /* @__PURE__ */ c("div", { className: m("dialog-title", b), children: h }),
1071
+ !p && /* @__PURE__ */ c(
1068
1072
  "button",
1069
1073
  {
1070
1074
  type: "button",
@@ -1105,7 +1109,7 @@ const G = {
1105
1109
  }
1106
1110
  )
1107
1111
  ] });
1108
- }, q1 = b(t1), j1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: m("Dots mx-auto", d), children: [
1112
+ }, q1 = A(t1), j1 = ({ className: d }) => /* @__PURE__ */ g("div", { className: m("Dots mx-auto", d), children: [
1109
1113
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
1110
1114
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
1111
1115
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
@@ -1117,7 +1121,7 @@ const G = {
1117
1121
  ] }), a1 = ({
1118
1122
  cb: d,
1119
1123
  onUpdate: e,
1120
- className: t = "",
1124
+ className: t,
1121
1125
  selector: a = "",
1122
1126
  size: n = "md",
1123
1127
  timeout: s = 1e4,
@@ -1125,18 +1129,18 @@ const G = {
1125
1129
  }) => {
1126
1130
  function i({ cb: l }) {
1127
1131
  const o = document.querySelector(
1128
- `.loading-bar__inner${a ? `.${a}` : ""}`
1132
+ `.loading-bar--inner${a ? `.${a}` : ""}`
1129
1133
  );
1130
1134
  if (!o) return;
1131
- let p, u, V = !1;
1135
+ let u, p, V = !1;
1132
1136
  function M(f) {
1133
- p === void 0 && (p = f);
1134
- const v = f - p;
1135
- if (u !== f) {
1136
- const A = v / s * 101;
1137
- o.style.width = `${A}%`, e && e({ elapsed: v, percentage: A }), A >= 101 && (l && l(), V = !0, window.cancelAnimationFrame(f));
1137
+ u === void 0 && (u = f);
1138
+ const v = f - u;
1139
+ if (p !== f) {
1140
+ const y = v / s * 101;
1141
+ o.style.width = `${y}%`, e && e({ elapsed: v, percentage: y }), y >= 101 && (l && l(), V = !0, window.cancelAnimationFrame(f));
1138
1142
  }
1139
- v < s && (u = f, V || window.requestAnimationFrame(M));
1143
+ v < s && (p = f, V || window.requestAnimationFrame(M));
1140
1144
  }
1141
1145
  window.requestAnimationFrame(M);
1142
1146
  }
@@ -1147,19 +1151,19 @@ const G = {
1147
1151
  {
1148
1152
  className: m(
1149
1153
  "loading-bar my-8",
1150
- `loading-bar__${r}`,
1154
+ `loading-bar--${r}`,
1151
1155
  {
1152
1156
  "h-4": n === "md",
1153
1157
  "h-6": n === "lg",
1154
1158
  "h-8": n === "xl"
1155
1159
  },
1156
- `loading-bar__${n}`,
1160
+ `loading-bar--${n}`,
1157
1161
  t
1158
1162
  ),
1159
- children: /* @__PURE__ */ c("div", { className: `loading-bar__inner ${a}`, "data-size": "100" })
1163
+ children: /* @__PURE__ */ c("div", { className: `loading-bar--inner ${a}`, "data-size": "100" })
1160
1164
  }
1161
1165
  );
1162
- }, P1 = b(a1), n1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), R1 = b(n1), W1 = ({
1166
+ }, P1 = A(a1), n1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), R1 = A(n1), W1 = ({
1163
1167
  activator: d,
1164
1168
  activatorClass: e = "",
1165
1169
  attrs: t = {},
@@ -1223,7 +1227,7 @@ const G = {
1223
1227
  rounded: l = !0,
1224
1228
  showLabel: o = !1
1225
1229
  }) => {
1226
- const u = ((V, M) => {
1230
+ const p = ((V, M) => {
1227
1231
  if (V) {
1228
1232
  const f = Number(M) / V;
1229
1233
  return f > 1 ? 100 : f * 100;
@@ -1250,7 +1254,7 @@ const G = {
1250
1254
  "h-full text-right flex items-center justify-end rounded-full",
1251
1255
  t
1252
1256
  ),
1253
- style: { width: `${u}%` },
1257
+ style: { width: `${p}%` },
1254
1258
  children: o && /* @__PURE__ */ c(
1255
1259
  "span",
1256
1260
  {
@@ -1258,14 +1262,14 @@ const G = {
1258
1262
  "font-bold text-white text-xs mr-2",
1259
1263
  r
1260
1264
  ),
1261
- children: s || Math.round(u)
1265
+ children: s || Math.round(p)
1262
1266
  }
1263
1267
  )
1264
1268
  }
1265
1269
  )
1266
1270
  }
1267
1271
  );
1268
- }, U1 = b(s1), l1 = ({
1272
+ }, U1 = A(s1), l1 = ({
1269
1273
  checked: d = !1,
1270
1274
  children: e,
1271
1275
  className: t,
@@ -1277,24 +1281,22 @@ const G = {
1277
1281
  variation: l = "primary",
1278
1282
  value: o = ""
1279
1283
  }) => {
1280
- const p = s ? "div" : "label", u = p === "label" ? { htmlFor: a } : {};
1284
+ const u = s ? "div" : "label", p = u === "label" ? { htmlFor: a } : {};
1281
1285
  return /* @__PURE__ */ g(
1282
- p,
1286
+ u,
1283
1287
  {
1284
- className: m("radio flex items-center", t),
1285
- ...u,
1288
+ className: m(
1289
+ "radio",
1290
+ { [`radio--${l}`]: l },
1291
+ t
1292
+ ),
1293
+ ...p,
1286
1294
  children: [
1287
1295
  /* @__PURE__ */ c(
1288
1296
  "input",
1289
1297
  {
1290
1298
  checked: d,
1291
- className: m(
1292
- "form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
1293
- {
1294
- "focus:ring-[#222]": l === "primary"
1295
- },
1296
- n
1297
- ),
1299
+ className: m("form-radio", n),
1298
1300
  id: a,
1299
1301
  name: r,
1300
1302
  type: "radio",
@@ -1306,7 +1308,7 @@ const G = {
1306
1308
  ]
1307
1309
  }
1308
1310
  );
1309
- }, G1 = b(l1), r1 = ({
1311
+ }, G1 = A(l1), r1 = ({
1310
1312
  className: d = "",
1311
1313
  error: e = !1,
1312
1314
  errorMessage: t = "",
@@ -1317,16 +1319,20 @@ const G = {
1317
1319
  placeholder: i = "",
1318
1320
  props: l = {},
1319
1321
  selectClass: o = "",
1320
- styles: p = null,
1321
- variation: u = "primary",
1322
+ styles: u = null,
1323
+ variation: p = "primary",
1322
1324
  value: V
1323
1325
  }) => {
1324
1326
  const M = i ? { defaultValue: "" } : {};
1325
1327
  return /* @__PURE__ */ g(
1326
1328
  "label",
1327
1329
  {
1328
- className: m("relative select", d, u),
1329
- style: p ? { ...p } : null,
1330
+ className: m(
1331
+ "relative select",
1332
+ { [`select--${p}`]: p },
1333
+ d
1334
+ ),
1335
+ style: u ? { ...u } : null,
1330
1336
  children: [
1331
1337
  n,
1332
1338
  /* @__PURE__ */ g(
@@ -1335,12 +1341,9 @@ const G = {
1335
1341
  className: m(
1336
1342
  "form-select relative bg-white pl-3 pr-10 text-left cursor-default",
1337
1343
  {
1338
- "!border-red-500 focus:!ring-red-500 focus:!border-red-500": e
1344
+ "field-error": e
1339
1345
  },
1340
- { "!bg-red/500/10 !text-red-700": e && u !== "blue" },
1341
- { "!text-black-900": e && u === "blue" },
1342
- o,
1343
- u
1346
+ o
1344
1347
  ),
1345
1348
  id: a,
1346
1349
  name: s,
@@ -1364,7 +1367,7 @@ const G = {
1364
1367
  ]
1365
1368
  }
1366
1369
  );
1367
- }, Q1 = b(r1), i1 = ({ className: d }) => /* @__PURE__ */ g(
1370
+ }, Q1 = A(r1), i1 = ({ className: d }) => /* @__PURE__ */ g(
1368
1371
  "div",
1369
1372
  {
1370
1373
  className: m(
@@ -1376,7 +1379,7 @@ const G = {
1376
1379
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1377
1380
  ]
1378
1381
  }
1379
- ), J1 = b(i1), o1 = ({
1382
+ ), J1 = A(i1), o1 = ({
1380
1383
  placeholderClass: d = "",
1381
1384
  children: e,
1382
1385
  className: t,
@@ -1411,7 +1414,7 @@ const G = {
1411
1414
  children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1412
1415
  }
1413
1416
  )
1414
- ] }), Y1 = b(o1), c1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1417
+ ] }), Y1 = A(o1), c1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1415
1418
  x,
1416
1419
  {
1417
1420
  className: m("animate-spin text-black-900", e),
@@ -1420,7 +1423,7 @@ const G = {
1420
1423
  viewBox: "0 0 24 24",
1421
1424
  ...t
1422
1425
  }
1423
- ) }), _1 = b(c1), X1 = ({
1426
+ ) }), X1 = A(c1), _1 = ({
1424
1427
  className: d,
1425
1428
  value: e
1426
1429
  }) => {
@@ -1448,8 +1451,8 @@ const G = {
1448
1451
  placeholder: i = "",
1449
1452
  props: l = {},
1450
1453
  rows: o = 4,
1451
- variation: p = "primary"
1452
- }) => /* @__PURE__ */ g("div", { className: m("relative textarea", p, d), children: [
1454
+ variation: u = "primary"
1455
+ }) => /* @__PURE__ */ g("div", { className: m("relative textarea", u, d), children: [
1453
1456
  /* @__PURE__ */ c(
1454
1457
  "textarea",
1455
1458
  {
@@ -1461,7 +1464,7 @@ const G = {
1461
1464
  "form-textarea min-h-[40px] pl-4",
1462
1465
  e ? "pr-10" : "pr-4",
1463
1466
  {
1464
- "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
1467
+ "field-error": t
1465
1468
  },
1466
1469
  s
1467
1470
  ),
@@ -1484,7 +1487,7 @@ const G = {
1484
1487
  }
1485
1488
  ),
1486
1489
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1487
- ] }), h1 = b(d1), u1 = ({
1490
+ ] }), h1 = A(d1), u1 = ({
1488
1491
  className: d,
1489
1492
  clear: e = !1,
1490
1493
  error: t = !1,
@@ -1495,15 +1498,15 @@ const G = {
1495
1498
  name: i = "",
1496
1499
  placeholder: l = "",
1497
1500
  props: o = {},
1498
- styles: p = null,
1499
- type: u = "text",
1501
+ styles: u = null,
1502
+ type: p = "text",
1500
1503
  value: V,
1501
1504
  variation: M = "primary"
1502
1505
  }) => /* @__PURE__ */ g(
1503
1506
  "div",
1504
1507
  {
1505
1508
  className: m("relative textbox", M, d),
1506
- style: p ? { ...p } : null,
1509
+ style: u ? { ...u } : null,
1507
1510
  children: [
1508
1511
  n && /* @__PURE__ */ c("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ c(
1509
1512
  x,
@@ -1520,7 +1523,7 @@ const G = {
1520
1523
  placeholder: l,
1521
1524
  id: s,
1522
1525
  name: i,
1523
- type: u,
1526
+ type: p,
1524
1527
  value: V,
1525
1528
  autoComplete: "off",
1526
1529
  className: m(
@@ -1530,9 +1533,7 @@ const G = {
1530
1533
  o.inputClass ?? "",
1531
1534
  r,
1532
1535
  {
1533
- "placeholder:!text-gray-750": t && M === "blue",
1534
- "!border-red-500 focus:!ring-red-500 focus:!border-red-500": t,
1535
- "!bg-red-500/10 placeholder:!text-red-700": t && M !== "blue"
1536
+ "field-error": t
1536
1537
  }
1537
1538
  ),
1538
1539
  ...o
@@ -1556,7 +1557,7 @@ const G = {
1556
1557
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1557
1558
  ]
1558
1559
  }
1559
- ), D = b(u1), p1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(k, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
1560
+ ), D = A(u1), p1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(k, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ g("div", { className: "relative", children: [
1560
1561
  /* @__PURE__ */ c(
1561
1562
  "input",
1562
1563
  {
@@ -1578,7 +1579,7 @@ const G = {
1578
1579
  className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
1579
1580
  }
1580
1581
  )
1581
- ] }) }) }), K1 = b(p1), m1 = ({
1582
+ ] }) }) }), K1 = A(p1), m1 = ({
1582
1583
  btnClass: d,
1583
1584
  btnProps: e = {},
1584
1585
  btnTitle: t = "Submit",
@@ -1679,7 +1680,7 @@ const G = {
1679
1680
  ]
1680
1681
  }
1681
1682
  );
1682
- }, e2 = b(m1), f1 = ({
1683
+ }, e2 = A(m1), f1 = ({
1683
1684
  block: d = !1,
1684
1685
  children: e,
1685
1686
  className: t,
@@ -1690,23 +1691,23 @@ const G = {
1690
1691
  headerClass: i,
1691
1692
  list: l = !1,
1692
1693
  props: o = {},
1693
- variation: p = "primary"
1694
+ variation: u = "primary"
1694
1695
  }) => {
1695
- const u = l ? "ul" : "div";
1696
+ const p = l ? "ul" : "div";
1696
1697
  return /* @__PURE__ */ g(
1697
1698
  "div",
1698
1699
  {
1699
1700
  className: m(
1700
1701
  "content-card",
1701
1702
  { "content-card--block": d },
1702
- `content-card--${p}`,
1703
+ `content-card--${u}`,
1703
1704
  t
1704
1705
  ),
1705
1706
  ...o,
1706
1707
  children: [
1707
1708
  r && /* @__PURE__ */ c("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ c("h3", { children: r }) : r }),
1708
1709
  /* @__PURE__ */ c(
1709
- u,
1710
+ p,
1710
1711
  {
1711
1712
  className: m("content-card__content", a),
1712
1713
  role: l ? "list" : null,
@@ -1717,7 +1718,7 @@ const G = {
1717
1718
  ]
1718
1719
  }
1719
1720
  );
1720
- }, t2 = b(f1), V1 = ({
1721
+ }, t2 = A(f1), V1 = ({
1721
1722
  children: d,
1722
1723
  className: e,
1723
1724
  colGap: t = 2,
@@ -1728,7 +1729,7 @@ const G = {
1728
1729
  rowGap: i = 1,
1729
1730
  value: l,
1730
1731
  valueClass: o,
1731
- wrap: p = !1
1732
+ wrap: u = !1
1732
1733
  }) => /* @__PURE__ */ g(
1733
1734
  "div",
1734
1735
  {
@@ -1737,7 +1738,7 @@ const G = {
1737
1738
  {
1738
1739
  "flex-col items-start": a === "col",
1739
1740
  "flex-row items-center": a === "row",
1740
- "flex-wrap": p
1741
+ "flex-wrap": u
1741
1742
  },
1742
1743
  e
1743
1744
  ),
@@ -1752,7 +1753,7 @@ const G = {
1752
1753
  d
1753
1754
  ]
1754
1755
  }
1755
- ), a2 = b(V1), n2 = ({
1756
+ ), a2 = A(V1), n2 = ({
1756
1757
  breakPage: d = !1,
1757
1758
  children: e,
1758
1759
  className: t,
@@ -1792,7 +1793,7 @@ const G = {
1792
1793
  ),
1793
1794
  children: n || e
1794
1795
  }
1795
- ), l2 = b(H1), C1 = {
1796
+ ), l2 = A(H1), C1 = {
1796
1797
  circular: "circular 3s linear infinite",
1797
1798
  "circular-reverse": "circular 3s linear reverse infinite",
1798
1799
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -1926,16 +1927,16 @@ const G = {
1926
1927
  transform: "translateX(0)"
1927
1928
  }
1928
1929
  }
1929
- }, b1 = {
1930
+ }, A1 = {
1930
1931
  20: "5rem",
1931
1932
  24: "6rem",
1932
1933
  28: "7rem",
1933
1934
  32: "8rem"
1934
- }, A1 = {
1935
+ }, y1 = {
1935
1936
  aside: "268px",
1936
1937
  container: "724px",
1937
1938
  page: "1200px"
1938
- }, y1 = {
1939
+ }, b1 = {
1939
1940
  "xs-max": {
1940
1941
  max: "639px"
1941
1942
  },
@@ -1964,9 +1965,9 @@ const G = {
1964
1965
  fontSize: M1,
1965
1966
  gridTemplateColumns: g1,
1966
1967
  keyframes: v1,
1967
- margin: b1,
1968
- maxWidth: A1,
1969
- screens: y1,
1968
+ margin: A1,
1969
+ maxWidth: y1,
1970
+ screens: b1,
1970
1971
  transitionDuration: x1,
1971
1972
  transformOrigin: w1
1972
1973
  }, T = {
@@ -2149,18 +2150,18 @@ const G = {
2149
2150
  weightProps: i = null
2150
2151
  }) => {
2151
2152
  const l = {};
2152
- Object.entries(s).forEach(([o, p]) => {
2153
- const u = {
2154
- "font-size": p,
2153
+ Object.entries(s).forEach(([o, u]) => {
2154
+ const p = {
2155
+ "font-size": u,
2155
2156
  ...a
2156
- }, V = `.${e(`${t}-${o}`)}`, M = n ? n({ sizeKey: o, sizeValue: p }) : {};
2157
+ }, V = `.${e(`${t}-${o}`)}`, M = n ? n({ sizeKey: o, sizeValue: u }) : {};
2157
2158
  l[V] = {
2158
- ...u,
2159
+ ...p,
2159
2160
  ...M
2160
2161
  }, Object.entries(r).forEach(([f, v]) => {
2161
- const A = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: p, weightKey: f, weightValue: v }) : {};
2162
- l[A] = {
2163
- ...u,
2162
+ const y = `.${e(`${t}-${o}-${f}`)}`, h = i ? i({ sizeKey: o, sizeValue: u, weightKey: f, weightValue: v }) : {};
2163
+ l[y] = {
2164
+ ...p,
2164
2165
  "font-weight": v,
2165
2166
  ...h
2166
2167
  };
@@ -2307,11 +2308,11 @@ function d2(d, e = []) {
2307
2308
  function h2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2308
2309
  let s = !0;
2309
2310
  for (const [r, i] of t.entries()) {
2310
- const l = e.querySelector(`[name="${r}"]`), o = a[r], p = [];
2311
- o.forEach((u) => {
2312
- u.isValid(i) || p.push(u.message);
2313
- }), p.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (u) => {
2314
- u.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
2311
+ const l = e.querySelector(`[name="${r}"]`), o = a[r], u = [];
2312
+ o.forEach((p) => {
2313
+ p.isValid(i) || u.push(p.message);
2314
+ }), u.length ? (s = !1, l.classList.add("field-error"), d && d({ isValid: s, field: l, validations: a })) : (l.classList.remove("field-error"), d && d({ isValid: !0, field: l, validations: a })), n && (l == null || l.addEventListener("input", (p) => {
2315
+ p.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
2315
2316
  }));
2316
2317
  }
2317
2318
  return s;
@@ -2465,12 +2466,12 @@ class H {
2465
2466
  const {
2466
2467
  isHeads: l = null,
2467
2468
  isLoggedIn: o = null,
2468
- url: p = null,
2469
- ip: u = null,
2469
+ url: u = null,
2470
+ ip: p = null,
2470
2471
  sessionId: V = null,
2471
2472
  user: M = null
2472
2473
  } = (window == null ? void 0 : window.options) ?? {}, { id: f = null } = M ?? {};
2473
- t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url = p, await H.createData(
2474
+ t.userId = s ?? f, t.isHeads = l, t.isLoggedIn = o, t.url = u, await H.createData(
2474
2475
  "/api/event",
2475
2476
  {
2476
2477
  payload: {
@@ -2479,7 +2480,7 @@ class H {
2479
2480
  name: n,
2480
2481
  userId: s ?? f,
2481
2482
  url: window.location.href,
2482
- ip: u,
2483
+ ip: p,
2483
2484
  sessionId: V,
2484
2485
  siteMarker: r ?? i
2485
2486
  }
@@ -2575,8 +2576,8 @@ class H {
2575
2576
  try {
2576
2577
  const l = await fetch(i, { method: "GET" });
2577
2578
  if (t === !0) {
2578
- const p = await l.text();
2579
- return p ? p.replace("__next", "") : null;
2579
+ const u = await l.text();
2580
+ return u ? u.replace("__next", "") : null;
2580
2581
  }
2581
2582
  const o = l.headers.get("content-type");
2582
2583
  return o && o.indexOf("application/json") !== -1 ? l.json() : null;
@@ -2659,7 +2660,7 @@ class H {
2659
2660
  if ((o = window == null ? void 0 : window.options) != null && o.isPdf)
2660
2661
  return i;
2661
2662
  try {
2662
- const u = await (await fetch("/api/client-headers")).json(), V = (u == null ? void 0 : u.sessionId) ?? "noSessionId", M = (u == null ? void 0 : u.ip) ?? null, f = e * 1e3;
2663
+ const p = await (await fetch("/api/client-headers")).json(), V = (p == null ? void 0 : p.sessionId) ?? "noSessionId", M = (p == null ? void 0 : p.ip) ?? null, f = e * 1e3;
2663
2664
  return localStorage.setItem(
2664
2665
  l,
2665
2666
  JSON.stringify({
@@ -2668,8 +2669,8 @@ class H {
2668
2669
  expire: (/* @__PURE__ */ new Date()).getTime() + f
2669
2670
  })
2670
2671
  ), { tolken: V, ip: M, userAgent: a, platform: r };
2671
- } catch (p) {
2672
- console.error("getHeaders", p);
2672
+ } catch (u) {
2673
+ console.error("getHeaders", u);
2673
2674
  }
2674
2675
  return i;
2675
2676
  }
@@ -2684,11 +2685,11 @@ class H {
2684
2685
  return await H.fetchData("/api/client?query=" + r);
2685
2686
  }
2686
2687
  static getReportUrl(e, t = null) {
2687
- var l, o, p;
2688
- const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2688
+ var l, o, u;
2689
+ const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((o = e == null ? void 0 : e.city) == null ? void 0 : o.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2689
2690
  t = t || ((e == null ? void 0 : e.id) ?? null);
2690
- const i = [r, "-piq", t].filter((u) => u).join("");
2691
- return "/" + [a, n, s].filter((u) => u).map((u) => H.toSlug(u)).join("/") + "/" + i;
2691
+ const i = [r, "-piq", t].filter((p) => p).join("");
2692
+ return "/" + [a, n, s].filter((p) => p).map((p) => H.toSlug(p)).join("/") + "/" + i;
2692
2693
  }
2693
2694
  static async getSearchValue(e = "recsSearchValue") {
2694
2695
  try {
@@ -2898,7 +2899,7 @@ class H {
2898
2899
  selfClose: r = !1,
2899
2900
  target: i = null
2900
2901
  }) {
2901
- const l = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), p = r ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), u = [
2902
+ const l = i ? document.querySelectorAll(i) : [], o = document.getElementById(`${t}-dialog`), u = r ? o == null ? void 0 : o.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), p = [
2902
2903
  "closing",
2903
2904
  "closed",
2904
2905
  "opening",
@@ -2906,23 +2907,23 @@ class H {
2906
2907
  "outside",
2907
2908
  "removed"
2908
2909
  ].reduce(
2909
- (h, y) => ({
2910
+ (h, b) => ({
2910
2911
  ...h,
2911
- [y]: new Event(y)
2912
+ [b]: new Event(b)
2912
2913
  }),
2913
2914
  {}
2914
- ), V = new MutationObserver((h, y) => {
2915
+ ), V = new MutationObserver((h, b) => {
2915
2916
  h.forEach(async (w) => {
2916
2917
  if (w.attributeName === "open") {
2917
2918
  const C = w.target;
2918
2919
  if (!(C == null ? void 0 : C.hasAttribute("open"))) return;
2919
- C == null || C.removeAttribute("inert"), C == null || C.dispatchEvent(u.opening), C && await A(C), C == null || C.dispatchEvent(u.opened);
2920
+ C == null || C.removeAttribute("inert"), C == null || C.dispatchEvent(p.opening), C && await y(C), C == null || C.dispatchEvent(p.opened);
2920
2921
  }
2921
2922
  });
2922
- }), M = new MutationObserver((h, y) => {
2923
+ }), M = new MutationObserver((h, b) => {
2923
2924
  h.forEach((w) => {
2924
2925
  w.removedNodes.forEach((C) => {
2925
- C.nodeName === "DIALOG" && (C.removeEventListener("click", v), C.removeEventListener("close", f), C.dispatchEvent(u.removed), M == null || M.disconnect(), V == null || V.disconnect());
2926
+ C.nodeName === "DIALOG" && (C.removeEventListener("click", v), C.removeEventListener("close", f), C.dispatchEvent(p.removed), M == null || M.disconnect(), V == null || V.disconnect());
2926
2927
  });
2927
2928
  });
2928
2929
  });
@@ -2934,11 +2935,11 @@ class H {
2934
2935
  childList: !0
2935
2936
  }));
2936
2937
  const f = async ({ target: h }) => {
2937
- h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(u.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(u.closed);
2938
+ h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(p.closing), h && await y(h), h == null || h.classList.remove("closing"), h == null || h.dispatchEvent(p.closed);
2938
2939
  }, v = async ({ target: h }) => {
2939
- (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(u.outside), o == null || o.close("outside"));
2940
- }, A = (h) => Promise.allSettled(
2941
- h == null ? void 0 : h.getAnimations().map((y) => y == null ? void 0 : y.finished)
2940
+ (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(p.outside), o == null || o.close("outside"));
2941
+ }, y = (h) => Promise.allSettled(
2942
+ h == null ? void 0 : h.getAnimations().map((b) => b == null ? void 0 : b.finished)
2942
2943
  );
2943
2944
  return !e && (o == null || o.addEventListener("click", v)), o == null || o.addEventListener("close", async (h) => {
2944
2945
  await f({ target: h.target }), a && a(h, o);
@@ -2949,11 +2950,11 @@ class H {
2949
2950
  })), n && (o == null || o.addEventListener("open", async (h) => {
2950
2951
  n(h, o);
2951
2952
  })), l == null || l.forEach((h) => {
2952
- h.addEventListener("click", (y) => {
2953
- o == null || o.showModal(), s && s(y, o);
2953
+ h.addEventListener("click", (b) => {
2954
+ o == null || o.showModal(), s && s(b, o);
2954
2955
  });
2955
- }), p == null || p.forEach((h) => {
2956
- h.addEventListener("click", async (y) => {
2956
+ }), u == null || u.forEach((h) => {
2957
+ h.addEventListener("click", async (b) => {
2957
2958
  o == null || o.close("close");
2958
2959
  });
2959
2960
  }), {
@@ -3100,13 +3101,13 @@ class H {
3100
3101
  max: i = null,
3101
3102
  city: l = null,
3102
3103
  state: o = null,
3103
- vin: p = null,
3104
- license: u = null,
3104
+ vin: u = null,
3105
+ license: p = null,
3105
3106
  token: V = null,
3106
3107
  phone: M = null
3107
- } = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
3108
+ } = e || {}, f = t && t !== "", v = r && r !== "" && r !== "18", y = i && i !== "" && r !== "99";
3108
3109
  let h = [];
3109
- 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)), v && A ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (v && h.push("min=" + r), A && h.push("max=" + i)), M && M !== "" && h.push("phone=" + M), l && l !== "" && h.push("city=" + l), u && u !== "" && h.push("license=" + u), p && p !== "" && h.push("vin=" + p), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
3110
+ 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)), v && y ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (v && h.push("min=" + r), y && h.push("max=" + i)), M && M !== "" && h.push("phone=" + M), l && l !== "" && h.push("city=" + l), p && p !== "" && h.push("license=" + p), u && u !== "" && h.push("vin=" + u), o && o !== "" && h.push("state=" + o), V && V !== "" && h.push("token=" + V), h.join("&");
3110
3111
  }
3111
3112
  static padTo2Digits(e) {
3112
3113
  return e.toString().padStart(2, "0");
@@ -3124,8 +3125,8 @@ class H {
3124
3125
  useLocation: i = !0,
3125
3126
  state: l = "",
3126
3127
  useGoogle: o = !1,
3127
- useGoogleOverride: p = !1,
3128
- useAmazonOverride: u = !1,
3128
+ useGoogleOverride: u = !1,
3129
+ useAmazonOverride: p = !1,
3129
3130
  isSandboxAccount: V = !1,
3130
3131
  isOptOutSearch: M = !1
3131
3132
  } = t ?? {}, { tolken: f = null, ip: v = null } = await H.getHeaders(), h = [
@@ -3136,13 +3137,13 @@ class H {
3136
3137
  "useCityStateSearch=" + s,
3137
3138
  "useLocation=" + i,
3138
3139
  "useGoogle=" + o,
3139
- "useGoogleOverride=" + p,
3140
- "useAmazonOverride=" + u,
3140
+ "useGoogleOverride=" + u,
3141
+ "useAmazonOverride=" + p,
3141
3142
  "isSandboxAccount=" + V,
3142
3143
  "isOptOutSearch=" + M
3143
3144
  ];
3144
3145
  l && l !== "" && !s && h.push("state=" + l), f && f !== "" && h.push("tolken=" + f), v && v !== "" && h.push("ip=" + v);
3145
- const y = h.join("&"), C = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + y;
3146
+ const b = h.join("&"), C = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + b;
3146
3147
  return await H.fetchData(C);
3147
3148
  }
3148
3149
  static removeElements(e) {
@@ -3204,9 +3205,9 @@ class H {
3204
3205
  static async setRandomFileNameVersion(e, t = "scripts") {
3205
3206
  const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
3206
3207
  try {
3207
- const r = e.map(({ fileName: o, initFunctionName: p }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(r), l = [];
3208
- i.forEach((o, p) => {
3209
- o && typeof o[e[p].initFunctionName] == "function" ? l.push(o[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
3208
+ const r = e.map(({ fileName: o, initFunctionName: u }) => import(`${n}${s}${o}?v=${a}`)), i = await Promise.all(r), l = [];
3209
+ i.forEach((o, u) => {
3210
+ o && typeof o[e[u].initFunctionName] == "function" ? l.push(o[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
3210
3211
  }), l.length > 0 && await Promise.all(l);
3211
3212
  } catch (r) {
3212
3213
  console.error("Failed to load one or more search modules:", r);
@@ -3321,9 +3322,9 @@ export {
3321
3322
  J1 as Skeleton,
3322
3323
  Y1 as Slider,
3323
3324
  n2 as Spacer,
3324
- _1 as Spinner,
3325
+ X1 as Spinner,
3325
3326
  s2 as StackedListItem,
3326
- X1 as Stars,
3327
+ _1 as Stars,
3327
3328
  h1 as TextArea,
3328
3329
  D as Textbox,
3329
3330
  K1 as Toggle,