@vehiclehistory/property-lib 0.1.996 → 0.1.997

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,5 +1,5 @@
1
1
  import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
2
- import m from "classnames";
2
+ import p from "classnames";
3
3
  import { memo as y, useState as F, useEffect as O } from "react";
4
4
  const X = {
5
5
  xxSmall: "w-4 h-4",
@@ -537,7 +537,7 @@ const X = {
537
537
  "svg",
538
538
  {
539
539
  xmlns: "http://www.w3.org/2000/svg",
540
- className: m(
540
+ className: p(
541
541
  "fill-current flex-shrink-0",
542
542
  X[a],
543
543
  r,
@@ -564,7 +564,7 @@ const X = {
564
564
  return /* @__PURE__ */ o(
565
565
  "div",
566
566
  {
567
- className: m(
567
+ className: p(
568
568
  "accordion shadow rounded-lg",
569
569
  {
570
570
  "accordion--open": i
@@ -576,7 +576,7 @@ const X = {
576
576
  "button",
577
577
  {
578
578
  type: "button",
579
- className: m(
579
+ className: p(
580
580
  "accordion-header flex w-full justify-between items-center bg-gray-50 px-4 py-2 text-left font-medium text-slate-700 border border-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75"
581
581
  ),
582
582
  title: n,
@@ -599,7 +599,7 @@ const X = {
599
599
  l && i && /* @__PURE__ */ o(
600
600
  "div",
601
601
  {
602
- className: m(
602
+ className: p(
603
603
  "accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
604
604
  a
605
605
  ),
@@ -609,7 +609,7 @@ const X = {
609
609
  !l && /* @__PURE__ */ o(
610
610
  "div",
611
611
  {
612
- className: m(
612
+ className: p(
613
613
  "accordion-panel p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
614
614
  a,
615
615
  { hidden: !i }
@@ -651,12 +651,12 @@ const X = {
651
651
  iconColor: "text-yellow-500",
652
652
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
653
653
  }
654
- }, { icon: c, iconColor: p, styles: f } = s[i];
654
+ }, { icon: c, iconColor: u, styles: f } = s[i];
655
655
  return /* @__PURE__ */ o(
656
656
  "div",
657
657
  {
658
658
  id: i,
659
- className: m(
659
+ className: p(
660
660
  "rounded w-full py-2 px-4 mb-4 border",
661
661
  f,
662
662
  e
@@ -668,17 +668,17 @@ const X = {
668
668
  {
669
669
  name: c,
670
670
  viewBox: "0 0 24 24",
671
- className: p,
671
+ className: u,
672
672
  size: "xSmall"
673
673
  }
674
674
  ) }),
675
675
  /* @__PURE__ */ M("div", { className: "ml-3", children: [
676
- /* @__PURE__ */ o("div", { className: m("font-medium text-sm", l), children: n }),
676
+ /* @__PURE__ */ o("div", { className: p("font-medium text-sm", l), children: n }),
677
677
  t.length > 0 ? /* @__PURE__ */ o(
678
678
  "ul",
679
679
  {
680
680
  role: "list",
681
- className: m(
681
+ className: p(
682
682
  "list-disc space-y-1 pl-5 mt-2 text-xs",
683
683
  a
684
684
  ),
@@ -701,12 +701,12 @@ const X = {
701
701
  label: i,
702
702
  leftIcon: s = "homeSearch",
703
703
  leftIconProps: c = {},
704
- loadingIconProps: p = {},
704
+ loadingIconProps: u = {},
705
705
  mobileBackdrop: f = !1,
706
706
  name: V = "",
707
707
  options: H = [],
708
708
  parentProps: v = {},
709
- placeholder: u = "",
709
+ placeholder: m = "",
710
710
  props: b = {},
711
711
  rightIcon: h = "",
712
712
  required: A = !1,
@@ -730,14 +730,14 @@ const X = {
730
730
  "data-search": t,
731
731
  "data-search-type": G,
732
732
  "data-use-google": Q,
733
- className: m("Autocomplete", e),
733
+ className: p("Autocomplete", e),
734
734
  style: $ ? { ...$ } : null,
735
735
  ...v,
736
736
  children: [
737
737
  z && /* @__PURE__ */ M(
738
738
  "span",
739
739
  {
740
- className: m(
740
+ className: p(
741
741
  "search-icon-left absolute inset-y-0 left-0 flex items-center ",
742
742
  {
743
743
  "pointer-events-none": f,
@@ -774,7 +774,7 @@ const X = {
774
774
  "data-lpignore": "true",
775
775
  "aria-label": i,
776
776
  autoFocus: d,
777
- className: m(
777
+ className: p(
778
778
  "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",
779
779
  {
780
780
  "pl-8": z === !0 && S === "medium",
@@ -788,7 +788,7 @@ const X = {
788
788
  ),
789
789
  required: A,
790
790
  autoComplete: "off",
791
- placeholder: !u && n ? " " : u,
791
+ placeholder: !m && n ? " " : m,
792
792
  type: "search",
793
793
  name: V || "search-input",
794
794
  "data-id": "search-input",
@@ -799,7 +799,7 @@ const X = {
799
799
  n && /* @__PURE__ */ o(
800
800
  "label",
801
801
  {
802
- className: m(
802
+ className: p(
803
803
  "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",
804
804
  {
805
805
  "!left-7": z === !0,
@@ -839,7 +839,7 @@ const X = {
839
839
  name: "spinnerDark",
840
840
  size: "xSmall",
841
841
  viewBox: "0 0 24 24",
842
- ...p
842
+ ...u
843
843
  }
844
844
  )
845
845
  }
@@ -895,7 +895,7 @@ const X = {
895
895
  }) => /* @__PURE__ */ o(
896
896
  a || "span",
897
897
  {
898
- className: m(
898
+ className: p(
899
899
  " bg-gray-200 font-semibold py-1 px-2 rounded",
900
900
  {
901
901
  "text-sm": t === "sm",
@@ -917,29 +917,29 @@ const X = {
917
917
  outline: i = !1,
918
918
  props: s = {},
919
919
  rightIcon: c,
920
- rightIconProps: p = {},
920
+ rightIconProps: u = {},
921
921
  rounded: f = !1,
922
922
  size: V = "md",
923
923
  type: H = "button",
924
924
  uppercase: v = !1,
925
- variation: u = "primary"
925
+ variation: m = "primary"
926
926
  }) => {
927
927
  const b = r ? "a" : "button";
928
928
  return /* @__PURE__ */ M(
929
929
  b,
930
930
  {
931
931
  type: b !== "a" ? H : null,
932
- className: m(
932
+ className: p(
933
933
  "button",
934
934
  {
935
- [`button--${u}`]: u,
935
+ [`button--${m}`]: m,
936
936
  [`button--${V}`]: V,
937
937
  "button--rounded": f,
938
938
  "button--disabled": l,
939
939
  "button--outline": i,
940
940
  "button--custom-link": r,
941
941
  "button--uppercase": v,
942
- "button--borderless": d || u === "link"
942
+ "button--borderless": d || m === "link"
943
943
  },
944
944
  n
945
945
  ),
@@ -963,7 +963,7 @@ const X = {
963
963
  name: c,
964
964
  size: V === "md" ? "small" : "xSmall",
965
965
  viewBox: "0 0 24 24",
966
- ...p
966
+ ...u
967
967
  }
968
968
  )
969
969
  ]
@@ -980,14 +980,14 @@ const X = {
980
980
  labelClass: i,
981
981
  name: s,
982
982
  props: c = {},
983
- variation: p = "primary",
983
+ variation: u = "primary",
984
984
  value: f
985
985
  }) => /* @__PURE__ */ M(
986
986
  "label",
987
987
  {
988
- className: m(
988
+ className: p(
989
989
  "checkbox",
990
- { [`checkbox--${p}`]: p },
990
+ { [`checkbox--${u}`]: u },
991
991
  t
992
992
  ),
993
993
  htmlFor: l,
@@ -997,7 +997,7 @@ const X = {
997
997
  {
998
998
  "aria-invalid": a || null,
999
999
  checked: d,
1000
- className: m(
1000
+ className: p(
1001
1001
  "form-checkbox",
1002
1002
  {
1003
1003
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
@@ -1011,7 +1011,7 @@ const X = {
1011
1011
  ...c
1012
1012
  }
1013
1013
  ),
1014
- r && /* @__PURE__ */ o("span", { className: m("sr-only", i), children: r }),
1014
+ r && /* @__PURE__ */ o("span", { className: p("sr-only", i), children: r }),
1015
1015
  e
1016
1016
  ]
1017
1017
  }
@@ -1026,12 +1026,12 @@ const X = {
1026
1026
  dark: i = !1,
1027
1027
  disableClose: s = !1,
1028
1028
  footer: c,
1029
- fullMobile: p = !0,
1029
+ fullMobile: u = !0,
1030
1030
  headerClass: f,
1031
1031
  hideClose: V = !1,
1032
1032
  iconSize: H = "medium",
1033
1033
  preventPageScroll: v = !0,
1034
- props: u = {},
1034
+ props: m = {},
1035
1035
  sheet: b = !1,
1036
1036
  sheetDirection: h = "right",
1037
1037
  stickyHeader: A = !1,
@@ -1050,11 +1050,11 @@ const X = {
1050
1050
  "aria-label": !x && e ? e : null,
1051
1051
  ...s ? { closedby: "none" } : null,
1052
1052
  id: t ? `${t}-dialog` : null,
1053
- className: m(
1053
+ className: p(
1054
1054
  "dialog",
1055
1055
  {
1056
1056
  [`dialog-${k}`]: k,
1057
- "dialog-full-mobile": p,
1057
+ "dialog-full-mobile": u,
1058
1058
  "dialog-sheet": b,
1059
1059
  dark: i,
1060
1060
  "dialog-sheet--right": h === "right" && b,
@@ -1062,7 +1062,7 @@ const X = {
1062
1062
  },
1063
1063
  n
1064
1064
  ),
1065
- ...u,
1065
+ ...m,
1066
1066
  children: /* @__PURE__ */ M(
1067
1067
  z,
1068
1068
  {
@@ -1072,7 +1072,7 @@ const X = {
1072
1072
  /* @__PURE__ */ M(
1073
1073
  "div",
1074
1074
  {
1075
- className: m(
1075
+ className: p(
1076
1076
  "dialog-header",
1077
1077
  {
1078
1078
  "sticky top-0 bg-white z-10": A,
@@ -1086,7 +1086,7 @@ const X = {
1086
1086
  "div",
1087
1087
  {
1088
1088
  id: `${t}-dialog-title`,
1089
- className: m("dialog-title", g),
1089
+ className: p("dialog-title", g),
1090
1090
  children: x
1091
1091
  }
1092
1092
  ),
@@ -1115,7 +1115,7 @@ const X = {
1115
1115
  "div",
1116
1116
  {
1117
1117
  id: `${t}-dialog-content`,
1118
- className: m(
1118
+ className: p(
1119
1119
  "dialog-content",
1120
1120
  {
1121
1121
  "custom-scrollbar": r
@@ -1140,7 +1140,7 @@ const X = {
1140
1140
  {
1141
1141
  role: "status",
1142
1142
  "aria-label": d,
1143
- className: m("Dots mx-auto", e),
1143
+ className: p("Dots mx-auto", e),
1144
1144
  children: [
1145
1145
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
1146
1146
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
@@ -1163,25 +1163,25 @@ const X = {
1163
1163
  variation: i = "primary"
1164
1164
  }) => {
1165
1165
  const [s, c] = F(0);
1166
- function p({ cb: f }) {
1166
+ function u({ cb: f }) {
1167
1167
  const V = document.querySelector(
1168
1168
  `.loading-bar--inner${n ? `.${n}` : ""}`
1169
1169
  );
1170
1170
  if (!V) return;
1171
- let H, v, u = !1;
1171
+ let H, v, m = !1;
1172
1172
  function b(h) {
1173
1173
  H === void 0 && (H = h);
1174
1174
  const A = h - H;
1175
1175
  if (v !== h) {
1176
1176
  const x = A / r * 101;
1177
- V.style.width = `${x}%`, c(Math.min(100, Math.round(x))), t && t({ elapsed: A, percentage: x }), x >= 101 && (f && f(), u = !0, window.cancelAnimationFrame(h));
1177
+ V.style.width = `${x}%`, c(Math.min(100, Math.round(x))), t && t({ elapsed: A, percentage: x }), x >= 101 && (f && f(), m = !0, window.cancelAnimationFrame(h));
1178
1178
  }
1179
- A < r && (v = h, u || window.requestAnimationFrame(b));
1179
+ A < r && (v = h, m || window.requestAnimationFrame(b));
1180
1180
  }
1181
1181
  window.requestAnimationFrame(b);
1182
1182
  }
1183
1183
  return O(() => {
1184
- p({ cb: e });
1184
+ u({ cb: e });
1185
1185
  }, []), /* @__PURE__ */ o(
1186
1186
  "div",
1187
1187
  {
@@ -1191,7 +1191,7 @@ const X = {
1191
1191
  "aria-valuemin": 0,
1192
1192
  "aria-valuemax": 100,
1193
1193
  "aria-busy": s < 100,
1194
- className: m(
1194
+ className: p(
1195
1195
  "loading-bar my-8",
1196
1196
  `loading-bar--${i}`,
1197
1197
  {
@@ -1213,7 +1213,7 @@ const X = {
1213
1213
  {
1214
1214
  role: "status",
1215
1215
  "aria-label": d,
1216
- className: m("processing-spinner", e)
1216
+ className: p("processing-spinner", e)
1217
1217
  }
1218
1218
  ), Q1 = y(i1), J1 = ({
1219
1219
  activator: d,
@@ -1229,11 +1229,11 @@ const X = {
1229
1229
  /* @__PURE__ */ o(
1230
1230
  "div",
1231
1231
  {
1232
- className: m("popover z-10 max-w-[350px] hidden", n),
1232
+ className: p("popover z-10 max-w-[350px] hidden", n),
1233
1233
  children: /* @__PURE__ */ M(
1234
1234
  "div",
1235
1235
  {
1236
- className: m(
1236
+ className: p(
1237
1237
  "popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
1238
1238
  l
1239
1239
  ),
@@ -1254,7 +1254,7 @@ const X = {
1254
1254
  /* @__PURE__ */ o(
1255
1255
  "div",
1256
1256
  {
1257
- className: m(
1257
+ className: p(
1258
1258
  "popover-activator",
1259
1259
  `trigger-${s}`,
1260
1260
  {
@@ -1278,19 +1278,19 @@ const X = {
1278
1278
  labelClass: i,
1279
1279
  maxCompleted: s = 100,
1280
1280
  rounded: c = !0,
1281
- showLabel: p = !1
1281
+ showLabel: u = !1
1282
1282
  }) => {
1283
1283
  const V = ((H, v) => {
1284
1284
  if (H) {
1285
- const u = Number(v) / H;
1286
- return u > 1 ? 100 : u * 100;
1285
+ const m = Number(v) / H;
1286
+ return m > 1 ? 100 : m * 100;
1287
1287
  }
1288
1288
  return l;
1289
1289
  })(s, l);
1290
1290
  return /* @__PURE__ */ o(
1291
1291
  "div",
1292
1292
  {
1293
- className: m(
1293
+ className: p(
1294
1294
  "w-full bg-gray-200",
1295
1295
  { "rounded-full": c },
1296
1296
  n
@@ -1303,15 +1303,15 @@ const X = {
1303
1303
  children: /* @__PURE__ */ o(
1304
1304
  "div",
1305
1305
  {
1306
- className: m(
1306
+ className: p(
1307
1307
  "h-full text-right flex items-center justify-end rounded-full",
1308
1308
  a
1309
1309
  ),
1310
1310
  style: { width: `${V}%` },
1311
- children: p && /* @__PURE__ */ o(
1311
+ children: u && /* @__PURE__ */ o(
1312
1312
  "span",
1313
1313
  {
1314
- className: m(
1314
+ className: p(
1315
1315
  "font-bold text-white text-xs mr-2",
1316
1316
  i
1317
1317
  ),
@@ -1333,11 +1333,11 @@ const X = {
1333
1333
  name: i,
1334
1334
  props: s = {},
1335
1335
  variation: c = "primary",
1336
- value: p
1336
+ value: u
1337
1337
  }) => /* @__PURE__ */ M(
1338
1338
  "label",
1339
1339
  {
1340
- className: m(
1340
+ className: p(
1341
1341
  "radio",
1342
1342
  { [`radio--${c}`]: c },
1343
1343
  t
@@ -1348,15 +1348,15 @@ const X = {
1348
1348
  "input",
1349
1349
  {
1350
1350
  checked: d,
1351
- className: m("form-radio", n),
1351
+ className: p("form-radio", n),
1352
1352
  id: a,
1353
1353
  name: i,
1354
1354
  type: "radio",
1355
- value: p,
1355
+ value: u,
1356
1356
  ...s
1357
1357
  }
1358
1358
  ),
1359
- l && /* @__PURE__ */ o("span", { className: m("sr-only", r), children: l }),
1359
+ l && /* @__PURE__ */ o("span", { className: p("sr-only", r), children: l }),
1360
1360
  e
1361
1361
  ]
1362
1362
  }
@@ -1371,7 +1371,7 @@ const X = {
1371
1371
  options: i = [],
1372
1372
  placeholder: s,
1373
1373
  props: c = {},
1374
- selectClass: p,
1374
+ selectClass: u,
1375
1375
  styles: f = null,
1376
1376
  variation: V = "primary",
1377
1377
  value: H
@@ -1380,25 +1380,26 @@ const X = {
1380
1380
  return /* @__PURE__ */ M(
1381
1381
  "label",
1382
1382
  {
1383
- className: m(
1383
+ htmlFor: a,
1384
+ className: p(
1384
1385
  "relative select",
1385
1386
  { [`select--${V}`]: V },
1386
1387
  d
1387
1388
  ),
1388
1389
  style: f ? { ...f } : null,
1389
1390
  children: [
1390
- n && /* @__PURE__ */ o("span", { className: m("sr-only", l), children: n }),
1391
+ n && /* @__PURE__ */ o("span", { className: p("sr-only", l), children: n }),
1391
1392
  /* @__PURE__ */ M(
1392
1393
  "select",
1393
1394
  {
1394
1395
  "aria-invalid": e || null,
1395
1396
  "aria-describedby": e && a && t ? `${a}-error` : null,
1396
- className: m(
1397
+ className: p(
1397
1398
  "form-select relative bg-white pl-3 pr-10 text-left cursor-default",
1398
1399
  {
1399
1400
  "field-error": e
1400
1401
  },
1401
- p
1402
+ u
1402
1403
  ),
1403
1404
  id: a,
1404
1405
  name: r,
@@ -1406,15 +1407,15 @@ const X = {
1406
1407
  ...v,
1407
1408
  ...c,
1408
1409
  children: [
1409
- s && /* @__PURE__ */ o("option", { "aria-label": s, hidden: !0, value: "", children: s }),
1410
- i.map((u) => /* @__PURE__ */ o(
1410
+ s && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: s }),
1411
+ i.map((m) => /* @__PURE__ */ o(
1411
1412
  "option",
1412
1413
  {
1413
- "aria-label": (u == null ? void 0 : u.label) || (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u,
1414
- value: (u == null ? void 0 : u.id) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.name) || u,
1415
- children: (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u
1414
+ label: m == null ? void 0 : m.label,
1415
+ value: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.value) || (m == null ? void 0 : m.name) || m,
1416
+ children: (m == null ? void 0 : m.name) || (m == null ? void 0 : m.value) || (m == null ? void 0 : m.id) || m
1416
1417
  },
1417
- (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u
1418
+ (m == null ? void 0 : m.name) || (m == null ? void 0 : m.value) || (m == null ? void 0 : m.id) || m
1418
1419
  ))
1419
1420
  ]
1420
1421
  }
@@ -1433,7 +1434,7 @@ const X = {
1433
1434
  }, _1 = y(d1), h1 = ({ className: d }) => /* @__PURE__ */ M(
1434
1435
  "div",
1435
1436
  {
1436
- className: m(
1437
+ className: p(
1437
1438
  "flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
1438
1439
  d
1439
1440
  ),
@@ -1448,7 +1449,7 @@ const X = {
1448
1449
  className: t,
1449
1450
  id: a = 1,
1450
1451
  padding: n = !0
1451
- }) => /* @__PURE__ */ M("div", { className: m("slider", t), id: `slider-${a}`, children: [
1452
+ }) => /* @__PURE__ */ M("div", { className: p("slider", t), id: `slider-${a}`, children: [
1452
1453
  /* @__PURE__ */ o(
1453
1454
  "button",
1454
1455
  {
@@ -1482,11 +1483,11 @@ const X = {
1482
1483
  {
1483
1484
  role: "status",
1484
1485
  "aria-label": d,
1485
- className: m("rounded-r-md px-2 focus:outline-none", e),
1486
+ className: p("rounded-r-md px-2 focus:outline-none", e),
1486
1487
  children: /* @__PURE__ */ o(
1487
1488
  w,
1488
1489
  {
1489
- className: m(
1490
+ className: p(
1490
1491
  "animate-spin text-black-900 motion-reduce:animate-none",
1491
1492
  t
1492
1493
  ),
@@ -1507,7 +1508,7 @@ const X = {
1507
1508
  return /* @__PURE__ */ o(
1508
1509
  "div",
1509
1510
  {
1510
- className: m(
1511
+ className: p(
1511
1512
  'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
1512
1513
  d
1513
1514
  ),
@@ -1525,13 +1526,13 @@ const X = {
1525
1526
  placeholder: i = "",
1526
1527
  props: s = {},
1527
1528
  rows: c = 4,
1528
- variation: p = "primary"
1529
+ variation: u = "primary"
1529
1530
  }) => /* @__PURE__ */ M(
1530
1531
  "div",
1531
1532
  {
1532
- className: m(
1533
+ className: p(
1533
1534
  "relative textarea",
1534
- { [`textarea--${p}`]: p },
1535
+ { [`textarea--${u}`]: u },
1535
1536
  d
1536
1537
  ),
1537
1538
  children: [
@@ -1544,7 +1545,7 @@ const X = {
1544
1545
  id: n,
1545
1546
  name: r,
1546
1547
  rows: c,
1547
- className: m(
1548
+ className: p(
1548
1549
  "form-textarea min-h-[40px] pl-4",
1549
1550
  e ? "pr-10" : "pr-4",
1550
1551
  {
@@ -1591,19 +1592,19 @@ const X = {
1591
1592
  name: i = "",
1592
1593
  placeholder: s = "",
1593
1594
  props: c = {},
1594
- styles: p = null,
1595
+ styles: u = null,
1595
1596
  type: f = "text",
1596
1597
  value: V,
1597
1598
  variation: H = "primary"
1598
1599
  }) => /* @__PURE__ */ M(
1599
1600
  "div",
1600
1601
  {
1601
- className: m(
1602
+ className: p(
1602
1603
  "relative textbox",
1603
1604
  { [`textbox--${H}`]: H },
1604
1605
  d
1605
1606
  ),
1606
- style: p ? { ...p } : null,
1607
+ style: u ? { ...u } : null,
1607
1608
  children: [
1608
1609
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
1609
1610
  w,
@@ -1625,7 +1626,7 @@ const X = {
1625
1626
  type: f,
1626
1627
  value: V,
1627
1628
  autoComplete: "off",
1628
- className: m(
1629
+ className: p(
1629
1630
  "form-input",
1630
1631
  e ? "pr-10" : "pr-4",
1631
1632
  n ? "pl-8" : "pl-4",
@@ -1702,7 +1703,7 @@ const X = {
1702
1703
  /* @__PURE__ */ o(
1703
1704
  I,
1704
1705
  {
1705
- className: m(
1706
+ className: p(
1706
1707
  "text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
1707
1708
  ),
1708
1709
  variation: "link",
@@ -1717,7 +1718,7 @@ const X = {
1717
1718
  "form",
1718
1719
  {
1719
1720
  id: "contactForm",
1720
- className: m("contact-form", n, {
1721
+ className: p("contact-form", n, {
1721
1722
  uppercase: s
1722
1723
  }),
1723
1724
  children: [
@@ -1725,7 +1726,7 @@ const X = {
1725
1726
  "div",
1726
1727
  {
1727
1728
  id: "contact-title",
1728
- className: m("mb-4 header-2-semibold", i),
1729
+ className: p("mb-4 header-2-semibold", i),
1729
1730
  children: r
1730
1731
  }
1731
1732
  ),
@@ -1733,7 +1734,7 @@ const X = {
1733
1734
  /* @__PURE__ */ M(
1734
1735
  "div",
1735
1736
  {
1736
- className: m(
1737
+ className: p(
1737
1738
  "p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
1738
1739
  a
1739
1740
  ),
@@ -1745,7 +1746,7 @@ const X = {
1745
1746
  id: "contact-name",
1746
1747
  name: "contact-name",
1747
1748
  placeholder: "Name",
1748
- inputClass: m({
1749
+ inputClass: p({
1749
1750
  "placeholder:uppercase": s
1750
1751
  })
1751
1752
  }
@@ -1757,7 +1758,7 @@ const X = {
1757
1758
  id: "contact-email",
1758
1759
  name: "contact-email",
1759
1760
  placeholder: "Email",
1760
- inputClass: m({
1761
+ inputClass: p({
1761
1762
  "placeholder:uppercase": s
1762
1763
  })
1763
1764
  }
@@ -1769,7 +1770,7 @@ const X = {
1769
1770
  id: "contact-message",
1770
1771
  name: "contact-message",
1771
1772
  placeholder: "Message",
1772
- inputClass: m({
1773
+ inputClass: p({
1773
1774
  "placeholder:uppercase": s
1774
1775
  })
1775
1776
  }
@@ -1777,7 +1778,7 @@ const X = {
1777
1778
  /* @__PURE__ */ o(
1778
1779
  I,
1779
1780
  {
1780
- className: m(
1781
+ className: p(
1781
1782
  "flex mx-auto items-center",
1782
1783
  {
1783
1784
  uppercase: s
@@ -1807,30 +1808,30 @@ const X = {
1807
1808
  headerClass: i,
1808
1809
  list: s = !1,
1809
1810
  props: c = {},
1810
- variation: p = "primary"
1811
+ variation: u = "primary"
1811
1812
  }) => {
1812
1813
  const f = s ? "ul" : "div";
1813
1814
  return /* @__PURE__ */ M(
1814
1815
  "div",
1815
1816
  {
1816
- className: m(
1817
+ className: p(
1817
1818
  "content-card",
1818
1819
  { "content-card--block": d },
1819
- `content-card--${p}`,
1820
+ `content-card--${u}`,
1820
1821
  t
1821
1822
  ),
1822
1823
  ...c,
1823
1824
  children: [
1824
- r && /* @__PURE__ */ o("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1825
+ r && /* @__PURE__ */ o("div", { className: p("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1825
1826
  /* @__PURE__ */ o(
1826
1827
  f,
1827
1828
  {
1828
- className: m("content-card__content", a),
1829
+ className: p("content-card__content", a),
1829
1830
  role: s ? "list" : null,
1830
1831
  children: e
1831
1832
  }
1832
1833
  ),
1833
- l && /* @__PURE__ */ o("div", { className: m("content-card__footer", n), children: l })
1834
+ l && /* @__PURE__ */ o("div", { className: p("content-card__footer", n), children: l })
1834
1835
  ]
1835
1836
  }
1836
1837
  );
@@ -1845,16 +1846,16 @@ const X = {
1845
1846
  rowGap: i = 1,
1846
1847
  value: s,
1847
1848
  valueClass: c,
1848
- wrap: p = !1
1849
+ wrap: u = !1
1849
1850
  }) => /* @__PURE__ */ M(
1850
1851
  "div",
1851
1852
  {
1852
- className: m(
1853
+ className: p(
1853
1854
  "flex",
1854
1855
  {
1855
1856
  "flex-col items-start": a === "col",
1856
1857
  "flex-row items-center": a === "row",
1857
- "flex-wrap": p
1858
+ "flex-wrap": u
1858
1859
  },
1859
1860
  e
1860
1861
  ),
@@ -1864,8 +1865,8 @@ const X = {
1864
1865
  },
1865
1866
  ...r,
1866
1867
  children: [
1867
- n && /* @__PURE__ */ o("div", { className: m("item-label", l), children: n }),
1868
- s && /* @__PURE__ */ o("div", { className: m("item-value", c), children: s }),
1868
+ n && /* @__PURE__ */ o("div", { className: p("item-label", l), children: n }),
1869
+ s && /* @__PURE__ */ o("div", { className: p("item-value", c), children: s }),
1869
1870
  d
1870
1871
  ]
1871
1872
  }
@@ -1881,7 +1882,7 @@ const X = {
1881
1882
  }) => /* @__PURE__ */ M(
1882
1883
  "section",
1883
1884
  {
1884
- className: m(
1885
+ className: p(
1885
1886
  "spacer",
1886
1887
  {
1887
1888
  "print:!hidden": a,
@@ -1891,14 +1892,14 @@ const X = {
1891
1892
  ),
1892
1893
  ...n,
1893
1894
  children: [
1894
- l && /* @__PURE__ */ o("h2", { className: m("spacer-title", r), id: i, children: l }),
1895
+ l && /* @__PURE__ */ o("h2", { className: p("spacer-title", r), id: i, children: l }),
1895
1896
  e
1896
1897
  ]
1897
1898
  }
1898
- ), c2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: m("stacked-list", e), children: d }), v1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ o(
1899
+ ), c2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ o(t ? "li" : "div", { className: p("stacked-list", e), children: d }), v1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ o(
1899
1900
  a,
1900
1901
  {
1901
- className: m(
1902
+ className: p(
1902
1903
  "funnel-header !header-4-medium mb-6 flex items-center",
1903
1904
  {
1904
1905
  "text-center justify-center": d === "center",
@@ -2266,19 +2267,19 @@ const X = {
2266
2267
  weightProps: i = null
2267
2268
  }) => {
2268
2269
  const s = {};
2269
- Object.entries(l).forEach(([c, p]) => {
2270
+ Object.entries(l).forEach(([c, u]) => {
2270
2271
  const f = {
2271
- "font-size": p,
2272
+ "font-size": u,
2272
2273
  ...a
2273
- }, V = `.${e(`${t}-${c}`)}`, H = n ? n({ sizeKey: c, sizeValue: p }) : {};
2274
+ }, V = `.${e(`${t}-${c}`)}`, H = n ? n({ sizeKey: c, sizeValue: u }) : {};
2274
2275
  s[V] = {
2275
2276
  ...f,
2276
2277
  ...H
2277
- }, Object.entries(r).forEach(([v, u]) => {
2278
- const b = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: p, weightKey: v, weightValue: u }) : {};
2278
+ }, Object.entries(r).forEach(([v, m]) => {
2279
+ const b = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: u, weightKey: v, weightValue: m }) : {};
2279
2280
  s[b] = {
2280
2281
  ...f,
2281
- "font-weight": u,
2282
+ "font-weight": m,
2282
2283
  ...h
2283
2284
  };
2284
2285
  });
@@ -2424,10 +2425,10 @@ function m2(d, e = []) {
2424
2425
  function f2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2425
2426
  let l = !0;
2426
2427
  for (const [r, i] of t.entries()) {
2427
- const s = e.querySelector(`[name="${r}"]`), c = a[r], p = [];
2428
+ const s = e.querySelector(`[name="${r}"]`), c = a[r], u = [];
2428
2429
  c.forEach((f) => {
2429
- f.isValid(i) || p.push(f.message);
2430
- }), p.length ? (l = !1, s.classList.add("field-error"), d && d({ isValid: l, field: s, validations: a })) : (s.classList.remove("field-error"), d && d({ isValid: !0, field: s, validations: a })), n && (s == null || s.addEventListener("input", (f) => {
2430
+ f.isValid(i) || u.push(f.message);
2431
+ }), u.length ? (l = !1, s.classList.add("field-error"), d && d({ isValid: l, field: s, validations: a })) : (s.classList.remove("field-error"), d && d({ isValid: !0, field: s, validations: a })), n && (s == null || s.addEventListener("input", (f) => {
2431
2432
  f.preventDefault(), s.classList.contains("field-error") && s.classList.remove("field-error");
2432
2433
  }));
2433
2434
  }
@@ -2582,12 +2583,12 @@ class C {
2582
2583
  const {
2583
2584
  isHeads: s = null,
2584
2585
  isLoggedIn: c = null,
2585
- url: p = null,
2586
+ url: u = null,
2586
2587
  ip: f = null,
2587
2588
  sessionId: V = null,
2588
2589
  user: H = null
2589
2590
  } = (window == null ? void 0 : window.options) ?? {}, { id: v = null } = H ?? {};
2590
- t.userId = l ?? v, t.isHeads = s, t.isLoggedIn = c, t.url = p, await C.createData(
2591
+ t.userId = l ?? v, t.isHeads = s, t.isLoggedIn = c, t.url = u, await C.createData(
2591
2592
  "/api/event",
2592
2593
  {
2593
2594
  payload: {
@@ -2778,7 +2779,7 @@ class C {
2778
2779
  if ((s = window == null ? void 0 : window.options) != null && s.isPdf)
2779
2780
  return r;
2780
2781
  try {
2781
- const p = await (await fetch("/api/client-headers")).json(), f = (p == null ? void 0 : p.sessionId) ?? "noSessionId", V = (p == null ? void 0 : p.ip) ?? null, H = e * 1e3;
2782
+ const u = await (await fetch("/api/client-headers")).json(), f = (u == null ? void 0 : u.sessionId) ?? "noSessionId", V = (u == null ? void 0 : u.ip) ?? null, H = e * 1e3;
2782
2783
  return localStorage.setItem(
2783
2784
  i,
2784
2785
  JSON.stringify({
@@ -2803,8 +2804,8 @@ class C {
2803
2804
  return await C.fetchData("/api/client?query=" + r);
2804
2805
  }
2805
2806
  static getReportUrl(e, t = null) {
2806
- var s, c, p;
2807
- const a = ((s = e == null ? void 0 : e.state) == null ? void 0 : s.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2807
+ var s, c, u;
2808
+ const a = ((s = e == null ? void 0 : e.state) == null ? void 0 : s.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2808
2809
  t = t || ((e == null ? void 0 : e.id) ?? null);
2809
2810
  const i = [r, "-piq", t].filter((f) => f).join("");
2810
2811
  return "/" + [a, n, l].filter((f) => f).map((f) => C.toSlug(f)).join("/") + "/" + i;
@@ -3017,7 +3018,7 @@ class C {
3017
3018
  selfClose: r = !1,
3018
3019
  target: i = null
3019
3020
  }) {
3020
- const s = i ? document.querySelectorAll(i) : [], c = document.getElementById(`${t}-dialog`), p = r ? c == null ? void 0 : c.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), f = [
3021
+ const s = i ? document.querySelectorAll(i) : [], c = document.getElementById(`${t}-dialog`), u = r ? c == null ? void 0 : c.querySelectorAll("[data-dialog-close]") : document.querySelectorAll("[data-dialog-close]"), f = [
3021
3022
  "closing",
3022
3023
  "closed",
3023
3024
  "opening",
@@ -3041,7 +3042,7 @@ class C {
3041
3042
  }), H = new MutationObserver((h, A) => {
3042
3043
  h.forEach((x) => {
3043
3044
  x.removedNodes.forEach((g) => {
3044
- g.nodeName === "DIALOG" && (g.removeEventListener("click", u), g.removeEventListener("close", v), g.dispatchEvent(f.removed), H == null || H.disconnect(), V == null || V.disconnect());
3045
+ g.nodeName === "DIALOG" && (g.removeEventListener("click", m), g.removeEventListener("close", v), g.dispatchEvent(f.removed), H == null || H.disconnect(), V == null || V.disconnect());
3045
3046
  });
3046
3047
  });
3047
3048
  });
@@ -3054,12 +3055,12 @@ class C {
3054
3055
  }));
3055
3056
  const v = async ({ target: h }) => {
3056
3057
  h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(f.closing), h && await b(h), h == null || h.classList.remove("closing"), h == null || h.removeAttribute("inert"), h == null || h.dispatchEvent(f.closed);
3057
- }, u = async ({ target: h }) => {
3058
+ }, m = async ({ target: h }) => {
3058
3059
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(f.outside), c == null || c.close("outside"));
3059
3060
  }, b = (h) => Promise.allSettled(
3060
3061
  h == null ? void 0 : h.getAnimations().map((A) => A == null ? void 0 : A.finished)
3061
3062
  );
3062
- return !e && (c == null || c.addEventListener("click", u)), c == null || c.addEventListener("close", async (h) => {
3063
+ return !e && (c == null || c.addEventListener("click", m)), c == null || c.addEventListener("close", async (h) => {
3063
3064
  await v({ target: h.target }), a && a(h, c);
3064
3065
  }), e && (c == null || c.addEventListener("cancel", async (h) => {
3065
3066
  h.key === "Escape" && h.preventDefault();
@@ -3071,7 +3072,7 @@ class C {
3071
3072
  h.addEventListener("click", (A) => {
3072
3073
  c == null || c.showModal(), l && l(A, c);
3073
3074
  });
3074
- }), p == null || p.forEach((h) => {
3075
+ }), u == null || u.forEach((h) => {
3075
3076
  h.addEventListener("click", async (A) => {
3076
3077
  c == null || c.close("close");
3077
3078
  });
@@ -3219,13 +3220,13 @@ class C {
3219
3220
  max: i = null,
3220
3221
  city: s = null,
3221
3222
  state: c = null,
3222
- vin: p = null,
3223
+ vin: u = null,
3223
3224
  license: f = null,
3224
3225
  token: V = null,
3225
3226
  phone: H = null
3226
- } = e || {}, v = t && t !== "", u = r && r !== "" && r !== "18", b = i && i !== "" && r !== "99";
3227
+ } = e || {}, v = t && t !== "", m = r && r !== "" && r !== "18", b = i && i !== "" && r !== "99";
3227
3228
  let h = [];
3228
- return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), l && l !== "" && h.push("last=" + l)), u && b ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (u && h.push("min=" + r), b && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), s && s !== "" && h.push("city=" + s), f && f !== "" && h.push("license=" + f), p && p !== "" && h.push("vin=" + p), c && c !== "" && h.push("state=" + c), V && V !== "" && h.push("token=" + V), h.join("&");
3229
+ return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), l && l !== "" && h.push("last=" + l)), m && b ? parseInt(r) > parseInt(i) ? (h.push("min=" + i), h.push("max=" + r)) : (h.push("min=" + r), h.push("max=" + i)) : (m && h.push("min=" + r), b && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), s && s !== "" && h.push("city=" + s), f && f !== "" && h.push("license=" + f), u && u !== "" && h.push("vin=" + u), c && c !== "" && h.push("state=" + c), V && V !== "" && h.push("token=" + V), h.join("&");
3229
3230
  }
3230
3231
  static padTo2Digits(e) {
3231
3232
  return e.toString().padStart(2, "0");
@@ -3243,7 +3244,7 @@ class C {
3243
3244
  state: i = "",
3244
3245
  useAmazonOverride: s = !1,
3245
3246
  useCitySearch: c = !1,
3246
- useCityStateSearch: p = !1,
3247
+ useCityStateSearch: u = !1,
3247
3248
  useGoogle: f = !1,
3248
3249
  useGoogleOverride: V = !1,
3249
3250
  useLocation: H = !0,
@@ -3253,7 +3254,7 @@ class C {
3253
3254
  "addressesOnly=" + a,
3254
3255
  "useSearch=" + v,
3255
3256
  "useCitySearch=" + c,
3256
- "useCityStateSearch=" + p,
3257
+ "useCityStateSearch=" + u,
3257
3258
  "useLocation=" + H,
3258
3259
  "useGoogle=" + f,
3259
3260
  "useGoogleOverride=" + V,
@@ -3261,8 +3262,8 @@ class C {
3261
3262
  "isSandboxAccount=" + l,
3262
3263
  "isOptOutSearch=" + n
3263
3264
  ];
3264
- i && i !== "" && !p && b.push("state=" + i);
3265
- const h = b.join("&"), x = (c || p ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3265
+ i && i !== "" && !u && b.push("state=" + i);
3266
+ const h = b.join("&"), x = (c || u ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3266
3267
  return await C.fetchData(x, !1, r);
3267
3268
  }
3268
3269
  static removeElements(e) {
@@ -3324,9 +3325,9 @@ class C {
3324
3325
  static async setRandomFileNameVersion(e, t = "scripts") {
3325
3326
  const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", l = t ? `/${t}/` : "/";
3326
3327
  try {
3327
- const r = e.map(({ fileName: c, initFunctionName: p }) => import(`${n}${l}${c}?v=${a}`)), i = await Promise.all(r), s = [];
3328
- i.forEach((c, p) => {
3329
- c && typeof c[e[p].initFunctionName] == "function" ? s.push(c[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
3328
+ const r = e.map(({ fileName: c, initFunctionName: u }) => import(`${n}${l}${c}?v=${a}`)), i = await Promise.all(r), s = [];
3329
+ i.forEach((c, u) => {
3330
+ c && typeof c[e[u].initFunctionName] == "function" ? s.push(c[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
3330
3331
  }), s.length > 0 && await Promise.all(s);
3331
3332
  } catch (r) {
3332
3333
  console.error("Failed to load one or more search modules:", r);