@vehiclehistory/property-lib 0.1.98 → 0.1.99

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 o, jsxs as M, Fragment as k } from "react/jsx-runtime";
2
- import p from "classnames";
3
- import { memo as y, useState as E, useEffect as O } from "react";
2
+ import m from "classnames";
3
+ import { memo as b, useState as E, useEffect as O } from "react";
4
4
  const X = {
5
5
  xxSmall: "w-4 h-4",
6
6
  xSmall: "w-5 h-5",
@@ -537,7 +537,7 @@ const X = {
537
537
  "svg",
538
538
  {
539
539
  xmlns: "http://www.w3.org/2000/svg",
540
- className: p(
540
+ className: m(
541
541
  "fill-current flex-shrink-0",
542
542
  X[a],
543
543
  r,
@@ -551,7 +551,7 @@ const X = {
551
551
  }
552
552
  }
553
553
  );
554
- }, x = y(e1), t1 = ({
554
+ }, x = b(e1), t1 = ({
555
555
  children: d,
556
556
  className: e,
557
557
  clickHandler: t,
@@ -564,7 +564,7 @@ const X = {
564
564
  return /* @__PURE__ */ o(
565
565
  "div",
566
566
  {
567
- className: p(
567
+ className: m(
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: p(
579
+ className: m(
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
  s && i && /* @__PURE__ */ o(
600
600
  "div",
601
601
  {
602
- className: p(
602
+ className: m(
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
  !s && /* @__PURE__ */ o(
610
610
  "div",
611
611
  {
612
- className: p(
612
+ className: m(
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 }
@@ -620,7 +620,7 @@ const X = {
620
620
  ] })
621
621
  }
622
622
  );
623
- }, $1 = y(t1), a1 = ({
623
+ }, $1 = b(t1), a1 = ({
624
624
  children: d,
625
625
  className: e,
626
626
  messages: t = [],
@@ -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: u, styles: f } = l[i];
654
+ }, { icon: c, iconColor: p, styles: f } = l[i];
655
655
  return /* @__PURE__ */ o(
656
656
  "div",
657
657
  {
658
658
  id: i,
659
- className: p(
659
+ className: m(
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: u,
671
+ className: p,
672
672
  size: "xSmall"
673
673
  }
674
674
  ) }),
675
675
  /* @__PURE__ */ M("div", { className: "ml-3", children: [
676
- /* @__PURE__ */ o("div", { className: p("font-medium text-sm", s), children: n }),
676
+ /* @__PURE__ */ o("div", { className: m("font-medium text-sm", s), children: n }),
677
677
  t.length > 0 ? /* @__PURE__ */ o(
678
678
  "ul",
679
679
  {
680
680
  role: "list",
681
- className: p(
681
+ className: m(
682
682
  "list-disc space-y-1 pl-5 mt-2 text-xs",
683
683
  a
684
684
  ),
@@ -690,7 +690,7 @@ const X = {
690
690
  ] })
691
691
  }
692
692
  );
693
- }, q1 = y(a1), P1 = ({
693
+ }, q1 = b(a1), P1 = ({
694
694
  autoFocus: d = !1,
695
695
  className: e,
696
696
  dataSearch: t = "container",
@@ -701,17 +701,17 @@ const X = {
701
701
  label: i,
702
702
  leftIcon: l = "homeSearch",
703
703
  leftIconProps: c = {},
704
- loadingIconProps: u = {},
704
+ loadingIconProps: p = {},
705
705
  mobileBackdrop: f = !1,
706
706
  name: V = "",
707
707
  options: H = [],
708
708
  parentProps: v = {},
709
- placeholder: m = "",
709
+ placeholder: u = "",
710
710
  props: A = {},
711
711
  rightIcon: h = "",
712
712
  required: g = !1,
713
713
  showClearIcon: w = !0,
714
- showDropdown: b = !0,
714
+ showDropdown: y = !0,
715
715
  showLoadingIcon: z = !0,
716
716
  showRightIcon: F = !1,
717
717
  showSearchIcon: N = !0,
@@ -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: p("Autocomplete", e),
733
+ className: m("Autocomplete", e),
734
734
  style: I ? { ...I } : null,
735
735
  ...v,
736
736
  children: [
737
737
  N && /* @__PURE__ */ M(
738
738
  "span",
739
739
  {
740
- className: p(
740
+ className: m(
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: p(
777
+ className: m(
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": N === !0 && S === "medium",
@@ -788,7 +788,7 @@ const X = {
788
788
  ),
789
789
  required: g,
790
790
  autoComplete: "off",
791
- placeholder: !m && n ? " " : m,
791
+ placeholder: !u && n ? " " : u,
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: p(
802
+ className: m(
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": N === !0,
@@ -839,7 +839,7 @@ const X = {
839
839
  name: "spinnerDark",
840
840
  size: "xSmall",
841
841
  viewBox: "0 0 24 24",
842
- ...u
842
+ ...p
843
843
  }
844
844
  )
845
845
  }
@@ -852,7 +852,7 @@ const X = {
852
852
  children: /* @__PURE__ */ o(x, { name: h, size: "small", viewBox: "0 0 24 24" })
853
853
  }
854
854
  ),
855
- b && /* @__PURE__ */ M(
855
+ y && /* @__PURE__ */ M(
856
856
  "div",
857
857
  {
858
858
  "data-id": "search-dropdown",
@@ -895,7 +895,7 @@ const X = {
895
895
  }) => /* @__PURE__ */ o(
896
896
  a || "span",
897
897
  {
898
- className: p(
898
+ className: m(
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: l = {},
919
919
  rightIcon: c,
920
- rightIconProps: u = {},
920
+ rightIconProps: p = {},
921
921
  rounded: f = !1,
922
922
  size: V = "md",
923
923
  type: H = "button",
924
924
  uppercase: v = !1,
925
- variation: m = "primary"
925
+ variation: u = "primary"
926
926
  }) => {
927
927
  const A = r ? "a" : "button";
928
928
  return /* @__PURE__ */ M(
929
929
  A,
930
930
  {
931
931
  type: A !== "a" ? H : null,
932
- className: p(
932
+ className: m(
933
933
  "button",
934
934
  {
935
- [`button--${m}`]: m,
935
+ [`button--${u}`]: u,
936
936
  [`button--${V}`]: V,
937
937
  "button--rounded": f,
938
938
  "button--disabled": s,
939
939
  "button--outline": i,
940
940
  "button--custom-link": r,
941
941
  "button--uppercase": v,
942
- "button--borderless": d || m === "link"
942
+ "button--borderless": d || u === "link"
943
943
  },
944
944
  n
945
945
  ),
@@ -963,13 +963,13 @@ const X = {
963
963
  name: c,
964
964
  size: V === "md" ? "small" : "xSmall",
965
965
  viewBox: "0 0 24 24",
966
- ...u
966
+ ...p
967
967
  }
968
968
  )
969
969
  ]
970
970
  }
971
971
  );
972
- }, T = y(n1), s1 = ({
972
+ }, T = b(n1), s1 = ({
973
973
  checked: d = !1,
974
974
  children: e,
975
975
  className: t,
@@ -980,14 +980,14 @@ const X = {
980
980
  labelClass: i,
981
981
  name: l,
982
982
  props: c = {},
983
- variation: u = "primary",
983
+ variation: p = "primary",
984
984
  value: f
985
985
  }) => /* @__PURE__ */ M(
986
986
  "label",
987
987
  {
988
- className: p(
988
+ className: m(
989
989
  "checkbox",
990
- { [`checkbox--${u}`]: u },
990
+ { [`checkbox--${p}`]: p },
991
991
  t
992
992
  ),
993
993
  htmlFor: s,
@@ -996,7 +996,7 @@ const X = {
996
996
  "input",
997
997
  {
998
998
  checked: d,
999
- className: p(
999
+ className: m(
1000
1000
  "form-checkbox",
1001
1001
  {
1002
1002
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
@@ -1010,11 +1010,11 @@ const X = {
1010
1010
  ...c
1011
1011
  }
1012
1012
  ),
1013
- r && /* @__PURE__ */ o("span", { className: p("sr-only", i), children: r }),
1013
+ r && /* @__PURE__ */ o("span", { className: m("sr-only", i), children: r }),
1014
1014
  e
1015
1015
  ]
1016
1016
  }
1017
- ), R1 = y(s1), l1 = ({
1017
+ ), R1 = b(s1), l1 = ({
1018
1018
  activator: d,
1019
1019
  ariaLabel: e,
1020
1020
  id: t,
@@ -1025,17 +1025,17 @@ const X = {
1025
1025
  dark: i = !1,
1026
1026
  disableClose: l = !1,
1027
1027
  footer: c,
1028
- fullMobile: u = !0,
1028
+ fullMobile: p = !0,
1029
1029
  headerClass: f,
1030
1030
  hideClose: V = !1,
1031
1031
  iconSize: H = "medium",
1032
1032
  preventPageScroll: v = !0,
1033
- sheet: m = !1,
1033
+ sheet: u = !1,
1034
1034
  sheetDirection: A = "right",
1035
1035
  stickyHeader: h = !1,
1036
1036
  title: g = "",
1037
1037
  titleClass: w,
1038
- variation: b = "primary",
1038
+ variation: y = "primary",
1039
1039
  useFormMethod: z = !0
1040
1040
  }) => {
1041
1041
  const F = z ? "form" : "div";
@@ -1048,14 +1048,14 @@ const X = {
1048
1048
  "aria-label": !g && e ? e : null,
1049
1049
  ...l ? { closedby: "none" } : null,
1050
1050
  id: t ? `${t}-dialog` : null,
1051
- className: p(
1051
+ className: m(
1052
1052
  "dialog",
1053
1053
  {
1054
- [`dialog-${b}`]: b,
1055
- "dialog-full-mobile": u,
1056
- "dialog-sheet": m,
1054
+ [`dialog-${y}`]: y,
1055
+ "dialog-full-mobile": p,
1056
+ "dialog-sheet": u,
1057
1057
  dark: i,
1058
- "dialog-sheet--right": A === "right" && m,
1058
+ "dialog-sheet--right": A === "right" && u,
1059
1059
  "prevent-scroll": v
1060
1060
  },
1061
1061
  n
@@ -1069,7 +1069,7 @@ const X = {
1069
1069
  /* @__PURE__ */ M(
1070
1070
  "div",
1071
1071
  {
1072
- className: p(
1072
+ className: m(
1073
1073
  "dialog-header",
1074
1074
  {
1075
1075
  "sticky top-0 bg-white z-10": h,
@@ -1083,7 +1083,7 @@ const X = {
1083
1083
  "div",
1084
1084
  {
1085
1085
  id: `${t}-dialog-title`,
1086
- className: p("dialog-title", w),
1086
+ className: m("dialog-title", w),
1087
1087
  children: g
1088
1088
  }
1089
1089
  ),
@@ -1112,7 +1112,7 @@ const X = {
1112
1112
  "div",
1113
1113
  {
1114
1114
  id: `${t}-dialog-content`,
1115
- className: p(
1115
+ className: m(
1116
1116
  "dialog-content",
1117
1117
  {
1118
1118
  "custom-scrollbar": r
@@ -1129,7 +1129,7 @@ const X = {
1129
1129
  }
1130
1130
  )
1131
1131
  ] });
1132
- }, W1 = y(l1), U1 = ({
1132
+ }, W1 = b(l1), U1 = ({
1133
1133
  ariaLabel: d,
1134
1134
  className: e
1135
1135
  }) => /* @__PURE__ */ M(
@@ -1137,7 +1137,7 @@ const X = {
1137
1137
  {
1138
1138
  role: "status",
1139
1139
  "aria-label": d,
1140
- className: p("Dots mx-auto", e),
1140
+ className: m("Dots mx-auto", e),
1141
1141
  children: [
1142
1142
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
1143
1143
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
@@ -1160,25 +1160,25 @@ const X = {
1160
1160
  variation: i = "primary"
1161
1161
  }) => {
1162
1162
  const [l, c] = E(0);
1163
- function u({ cb: f }) {
1163
+ function p({ cb: f }) {
1164
1164
  const V = document.querySelector(
1165
1165
  `.loading-bar--inner${n ? `.${n}` : ""}`
1166
1166
  );
1167
1167
  if (!V) return;
1168
- let H, v, m = !1;
1168
+ let H, v, u = !1;
1169
1169
  function A(h) {
1170
1170
  H === void 0 && (H = h);
1171
1171
  const g = h - H;
1172
1172
  if (v !== h) {
1173
1173
  const w = g / r * 101;
1174
- V.style.width = `${w}%`, c(Math.min(100, Math.round(w))), t && t({ elapsed: g, percentage: w }), w >= 101 && (f && f(), m = !0, window.cancelAnimationFrame(h));
1174
+ V.style.width = `${w}%`, c(Math.min(100, Math.round(w))), t && t({ elapsed: g, percentage: w }), w >= 101 && (f && f(), u = !0, window.cancelAnimationFrame(h));
1175
1175
  }
1176
- g < r && (v = h, m || window.requestAnimationFrame(A));
1176
+ g < r && (v = h, u || window.requestAnimationFrame(A));
1177
1177
  }
1178
1178
  window.requestAnimationFrame(A);
1179
1179
  }
1180
1180
  return O(() => {
1181
- u({ cb: e });
1181
+ p({ cb: e });
1182
1182
  }, []), /* @__PURE__ */ o(
1183
1183
  "div",
1184
1184
  {
@@ -1188,7 +1188,7 @@ const X = {
1188
1188
  "aria-valuemin": 0,
1189
1189
  "aria-valuemax": 100,
1190
1190
  "aria-busy": l < 100,
1191
- className: p(
1191
+ className: m(
1192
1192
  "loading-bar my-8",
1193
1193
  `loading-bar--${i}`,
1194
1194
  {
@@ -1202,7 +1202,7 @@ const X = {
1202
1202
  children: /* @__PURE__ */ o("div", { className: `loading-bar--inner ${n}`, "data-size": "100" })
1203
1203
  }
1204
1204
  );
1205
- }, G1 = y(r1), i1 = ({
1205
+ }, G1 = b(r1), i1 = ({
1206
1206
  ariaLabel: d = "Processing...",
1207
1207
  className: e
1208
1208
  }) => /* @__PURE__ */ o(
@@ -1210,9 +1210,9 @@ const X = {
1210
1210
  {
1211
1211
  role: "status",
1212
1212
  "aria-label": d,
1213
- className: p("processing-spinner", e)
1213
+ className: m("processing-spinner", e)
1214
1214
  }
1215
- ), Q1 = y(i1), J1 = ({
1215
+ ), Q1 = b(i1), J1 = ({
1216
1216
  activator: d,
1217
1217
  activatorClass: e = "",
1218
1218
  attrs: t = {},
@@ -1226,11 +1226,11 @@ const X = {
1226
1226
  /* @__PURE__ */ o(
1227
1227
  "div",
1228
1228
  {
1229
- className: p("popover z-10 max-w-[350px] hidden", n),
1229
+ className: m("popover z-10 max-w-[350px] hidden", n),
1230
1230
  children: /* @__PURE__ */ M(
1231
1231
  "div",
1232
1232
  {
1233
- className: p(
1233
+ className: m(
1234
1234
  "popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
1235
1235
  s
1236
1236
  ),
@@ -1251,7 +1251,7 @@ const X = {
1251
1251
  /* @__PURE__ */ o(
1252
1252
  "div",
1253
1253
  {
1254
- className: p(
1254
+ className: m(
1255
1255
  "popover-activator",
1256
1256
  `trigger-${l}`,
1257
1257
  {
@@ -1275,19 +1275,19 @@ const X = {
1275
1275
  labelClass: i,
1276
1276
  maxCompleted: l = 100,
1277
1277
  rounded: c = !0,
1278
- showLabel: u = !1
1278
+ showLabel: p = !1
1279
1279
  }) => {
1280
1280
  const V = ((H, v) => {
1281
1281
  if (H) {
1282
- const m = Number(v) / H;
1283
- return m > 1 ? 100 : m * 100;
1282
+ const u = Number(v) / H;
1283
+ return u > 1 ? 100 : u * 100;
1284
1284
  }
1285
1285
  return s;
1286
1286
  })(l, s);
1287
1287
  return /* @__PURE__ */ o(
1288
1288
  "div",
1289
1289
  {
1290
- className: p(
1290
+ className: m(
1291
1291
  "w-full bg-gray-200",
1292
1292
  { "rounded-full": c },
1293
1293
  n
@@ -1300,15 +1300,15 @@ const X = {
1300
1300
  children: /* @__PURE__ */ o(
1301
1301
  "div",
1302
1302
  {
1303
- className: p(
1303
+ className: m(
1304
1304
  "h-full text-right flex items-center justify-end rounded-full",
1305
1305
  a
1306
1306
  ),
1307
1307
  style: { width: `${V}%` },
1308
- children: u && /* @__PURE__ */ o(
1308
+ children: p && /* @__PURE__ */ o(
1309
1309
  "span",
1310
1310
  {
1311
- className: p(
1311
+ className: m(
1312
1312
  "font-bold text-white text-xs mr-2",
1313
1313
  i
1314
1314
  ),
@@ -1319,7 +1319,7 @@ const X = {
1319
1319
  )
1320
1320
  }
1321
1321
  );
1322
- }, Y1 = y(c1), o1 = ({
1322
+ }, Y1 = b(c1), o1 = ({
1323
1323
  checked: d = !1,
1324
1324
  children: e,
1325
1325
  className: t,
@@ -1330,11 +1330,11 @@ const X = {
1330
1330
  name: i,
1331
1331
  props: l = {},
1332
1332
  variation: c = "primary",
1333
- value: u
1333
+ value: p
1334
1334
  }) => /* @__PURE__ */ M(
1335
1335
  "label",
1336
1336
  {
1337
- className: p(
1337
+ className: m(
1338
1338
  "radio",
1339
1339
  { [`radio--${c}`]: c },
1340
1340
  t
@@ -1345,19 +1345,19 @@ const X = {
1345
1345
  "input",
1346
1346
  {
1347
1347
  checked: d,
1348
- className: p("form-radio", n),
1348
+ className: m("form-radio", n),
1349
1349
  id: a,
1350
1350
  name: i,
1351
1351
  type: "radio",
1352
- value: u,
1352
+ value: p,
1353
1353
  ...l
1354
1354
  }
1355
1355
  ),
1356
- s && /* @__PURE__ */ o("span", { className: p("sr-only", r), children: s }),
1356
+ s && /* @__PURE__ */ o("span", { className: m("sr-only", r), children: s }),
1357
1357
  e
1358
1358
  ]
1359
1359
  }
1360
- ), X1 = y(o1), d1 = ({
1360
+ ), X1 = b(o1), d1 = ({
1361
1361
  className: d,
1362
1362
  error: e = !1,
1363
1363
  errorMessage: t,
@@ -1368,7 +1368,7 @@ const X = {
1368
1368
  options: i = [],
1369
1369
  placeholder: l,
1370
1370
  props: c = {},
1371
- selectClass: u,
1371
+ selectClass: p,
1372
1372
  styles: f = null,
1373
1373
  variation: V = "primary",
1374
1374
  value: H
@@ -1377,23 +1377,23 @@ const X = {
1377
1377
  return /* @__PURE__ */ M(
1378
1378
  "label",
1379
1379
  {
1380
- className: p(
1380
+ className: m(
1381
1381
  "relative select",
1382
1382
  { [`select--${V}`]: V },
1383
1383
  d
1384
1384
  ),
1385
1385
  style: f ? { ...f } : null,
1386
1386
  children: [
1387
- n && /* @__PURE__ */ o("span", { className: p("sr-only", s), children: n }),
1387
+ n && /* @__PURE__ */ o("span", { className: m("sr-only", s), children: n }),
1388
1388
  /* @__PURE__ */ M(
1389
1389
  "select",
1390
1390
  {
1391
- className: p(
1391
+ className: m(
1392
1392
  "form-select relative bg-white pl-3 pr-10 text-left cursor-default",
1393
1393
  {
1394
1394
  "field-error": e
1395
1395
  },
1396
- u
1396
+ p
1397
1397
  ),
1398
1398
  id: a,
1399
1399
  name: r,
@@ -1402,14 +1402,14 @@ const X = {
1402
1402
  ...c,
1403
1403
  children: [
1404
1404
  l && /* @__PURE__ */ o("option", { "aria-label": l, hidden: !0, value: "", children: l }),
1405
- i.map((m) => /* @__PURE__ */ o(
1405
+ i.map((u) => /* @__PURE__ */ o(
1406
1406
  "option",
1407
1407
  {
1408
- "aria-label": (m == null ? void 0 : m.label) || (m == null ? void 0 : m.name) || m,
1409
- value: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.value) || m,
1410
- children: (m == null ? void 0 : m.label) || (m == null ? void 0 : m.name) || m
1408
+ "aria-label": (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u,
1409
+ value: (u == null ? void 0 : u.id) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.name) || u,
1410
+ children: (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u
1411
1411
  },
1412
- (m == null ? void 0 : m.label) || (m == null ? void 0 : m.name) || m
1412
+ (u == null ? void 0 : u.name) || (u == null ? void 0 : u.value) || (u == null ? void 0 : u.id) || u
1413
1413
  ))
1414
1414
  ]
1415
1415
  }
@@ -1418,10 +1418,10 @@ const X = {
1418
1418
  ]
1419
1419
  }
1420
1420
  );
1421
- }, _1 = y(d1), h1 = ({ className: d }) => /* @__PURE__ */ M(
1421
+ }, _1 = b(d1), h1 = ({ className: d }) => /* @__PURE__ */ M(
1422
1422
  "div",
1423
1423
  {
1424
- className: p(
1424
+ className: m(
1425
1425
  "flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
1426
1426
  d
1427
1427
  ),
@@ -1430,13 +1430,13 @@ const X = {
1430
1430
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
1431
1431
  ]
1432
1432
  }
1433
- ), K1 = y(h1), u1 = ({
1433
+ ), K1 = b(h1), u1 = ({
1434
1434
  placeholderClass: d = "",
1435
1435
  children: e,
1436
1436
  className: t,
1437
1437
  id: a = 1,
1438
1438
  padding: n = !0
1439
- }) => /* @__PURE__ */ M("div", { className: p("slider", t), id: `slider-${a}`, children: [
1439
+ }) => /* @__PURE__ */ M("div", { className: m("slider", t), id: `slider-${a}`, children: [
1440
1440
  /* @__PURE__ */ o(
1441
1441
  "button",
1442
1442
  {
@@ -1465,16 +1465,16 @@ const X = {
1465
1465
  children: /* @__PURE__ */ o(x, { name: "chevronRight" })
1466
1466
  }
1467
1467
  )
1468
- ] }), e2 = y(u1), p1 = ({ ariaLabel: d, className: e, iconClass: t, iconProps: a = {} }) => /* @__PURE__ */ o(
1468
+ ] }), e2 = b(u1), p1 = ({ ariaLabel: d, className: e, iconClass: t, iconProps: a = {} }) => /* @__PURE__ */ o(
1469
1469
  "div",
1470
1470
  {
1471
1471
  role: "status",
1472
1472
  "aria-label": d,
1473
- className: p("rounded-r-md px-2 focus:outline-none", e),
1473
+ className: m("rounded-r-md px-2 focus:outline-none", e),
1474
1474
  children: /* @__PURE__ */ o(
1475
1475
  x,
1476
1476
  {
1477
- className: p(
1477
+ className: m(
1478
1478
  "animate-spin text-black-900 motion-reduce:animate-none",
1479
1479
  t
1480
1480
  ),
@@ -1485,7 +1485,7 @@ const X = {
1485
1485
  }
1486
1486
  )
1487
1487
  }
1488
- ), t2 = y(p1), a2 = ({
1488
+ ), t2 = b(p1), a2 = ({
1489
1489
  className: d,
1490
1490
  value: e
1491
1491
  }) => {
@@ -1495,7 +1495,7 @@ const X = {
1495
1495
  return /* @__PURE__ */ o(
1496
1496
  "div",
1497
1497
  {
1498
- className: p(
1498
+ className: m(
1499
1499
  'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
1500
1500
  d
1501
1501
  ),
@@ -1513,13 +1513,13 @@ const X = {
1513
1513
  placeholder: i = "",
1514
1514
  props: l = {},
1515
1515
  rows: c = 4,
1516
- variation: u = "primary"
1516
+ variation: p = "primary"
1517
1517
  }) => /* @__PURE__ */ M(
1518
1518
  "div",
1519
1519
  {
1520
- className: p(
1520
+ className: m(
1521
1521
  "relative textarea",
1522
- { [`textarea--${u}`]: u },
1522
+ { [`textarea--${p}`]: p },
1523
1523
  d
1524
1524
  ),
1525
1525
  children: [
@@ -1530,7 +1530,7 @@ const X = {
1530
1530
  id: n,
1531
1531
  name: r,
1532
1532
  rows: c,
1533
- className: p(
1533
+ className: m(
1534
1534
  "form-textarea min-h-[40px] pl-4",
1535
1535
  e ? "pr-10" : "pr-4",
1536
1536
  {
@@ -1559,7 +1559,7 @@ const X = {
1559
1559
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1560
1560
  ]
1561
1561
  }
1562
- ), f1 = y(m1), V1 = ({
1562
+ ), f1 = b(m1), V1 = ({
1563
1563
  className: d,
1564
1564
  clear: e = !1,
1565
1565
  error: t = !1,
@@ -1570,19 +1570,19 @@ const X = {
1570
1570
  name: i = "",
1571
1571
  placeholder: l = "",
1572
1572
  props: c = {},
1573
- styles: u = null,
1573
+ styles: p = null,
1574
1574
  type: f = "text",
1575
1575
  value: V,
1576
1576
  variation: H = "primary"
1577
1577
  }) => /* @__PURE__ */ M(
1578
1578
  "div",
1579
1579
  {
1580
- className: p(
1580
+ className: m(
1581
1581
  "relative textbox",
1582
1582
  { [`textbox--${H}`]: H },
1583
1583
  d
1584
1584
  ),
1585
- style: u ? { ...u } : null,
1585
+ style: p ? { ...p } : null,
1586
1586
  children: [
1587
1587
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
1588
1588
  x,
@@ -1602,7 +1602,7 @@ const X = {
1602
1602
  type: f,
1603
1603
  value: V,
1604
1604
  autoComplete: "off",
1605
- className: p(
1605
+ className: m(
1606
1606
  "form-input",
1607
1607
  e ? "pr-10" : "pr-4",
1608
1608
  n ? "pl-8" : "pl-4",
@@ -1633,7 +1633,7 @@ const X = {
1633
1633
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1634
1634
  ]
1635
1635
  }
1636
- ), B = y(V1), H1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1636
+ ), B = b(V1), H1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1637
1637
  /* @__PURE__ */ o(
1638
1638
  "input",
1639
1639
  {
@@ -1655,7 +1655,7 @@ const X = {
1655
1655
  className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
1656
1656
  }
1657
1657
  )
1658
- ] }) }) }), n2 = y(H1), C1 = ({
1658
+ ] }) }) }), n2 = b(H1), C1 = ({
1659
1659
  btnClass: d,
1660
1660
  btnProps: e = {},
1661
1661
  btnTitle: t = "Submit",
@@ -1672,7 +1672,7 @@ const X = {
1672
1672
  /* @__PURE__ */ o(
1673
1673
  T,
1674
1674
  {
1675
- className: p(
1675
+ className: m(
1676
1676
  "text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
1677
1677
  ),
1678
1678
  variation: "link",
@@ -1687,16 +1687,16 @@ const X = {
1687
1687
  "form",
1688
1688
  {
1689
1689
  id: "contactForm",
1690
- className: p("contact-form", n, {
1690
+ className: m("contact-form", n, {
1691
1691
  uppercase: l
1692
1692
  }),
1693
1693
  children: [
1694
- /* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4", i), children: r }),
1694
+ /* @__PURE__ */ o("h2", { id: "contact-title", className: m("mb-4", i), children: r }),
1695
1695
  /* @__PURE__ */ o("p", { className: "contact-form__msg", children: c }),
1696
1696
  /* @__PURE__ */ M(
1697
1697
  "div",
1698
1698
  {
1699
- className: p(
1699
+ className: m(
1700
1700
  "p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
1701
1701
  a
1702
1702
  ),
@@ -1707,7 +1707,7 @@ const X = {
1707
1707
  id: "contact-name",
1708
1708
  name: "contact-name",
1709
1709
  placeholder: "Name",
1710
- inputClass: p({
1710
+ inputClass: m({
1711
1711
  "placeholder:uppercase": l
1712
1712
  })
1713
1713
  }
@@ -1718,7 +1718,7 @@ const X = {
1718
1718
  id: "contact-email",
1719
1719
  name: "contact-email",
1720
1720
  placeholder: "Email",
1721
- inputClass: p({
1721
+ inputClass: m({
1722
1722
  "placeholder:uppercase": l
1723
1723
  })
1724
1724
  }
@@ -1729,7 +1729,7 @@ const X = {
1729
1729
  id: "contact-message",
1730
1730
  name: "contact-message",
1731
1731
  placeholder: "Message",
1732
- inputClass: p({
1732
+ inputClass: m({
1733
1733
  "placeholder:uppercase": l
1734
1734
  })
1735
1735
  }
@@ -1737,7 +1737,7 @@ const X = {
1737
1737
  /* @__PURE__ */ o(
1738
1738
  T,
1739
1739
  {
1740
- className: p(
1740
+ className: m(
1741
1741
  "flex mx-auto items-center",
1742
1742
  {
1743
1743
  uppercase: l
@@ -1756,7 +1756,7 @@ const X = {
1756
1756
  ]
1757
1757
  }
1758
1758
  );
1759
- }, s2 = y(C1), L1 = ({
1759
+ }, s2 = b(C1), L1 = ({
1760
1760
  block: d = !1,
1761
1761
  children: e,
1762
1762
  className: t,
@@ -1767,34 +1767,34 @@ const X = {
1767
1767
  headerClass: i,
1768
1768
  list: l = !1,
1769
1769
  props: c = {},
1770
- variation: u = "primary"
1770
+ variation: p = "primary"
1771
1771
  }) => {
1772
1772
  const f = l ? "ul" : "div";
1773
1773
  return /* @__PURE__ */ M(
1774
1774
  "div",
1775
1775
  {
1776
- className: p(
1776
+ className: m(
1777
1777
  "content-card",
1778
1778
  { "content-card--block": d },
1779
- `content-card--${u}`,
1779
+ `content-card--${p}`,
1780
1780
  t
1781
1781
  ),
1782
1782
  ...c,
1783
1783
  children: [
1784
- r && /* @__PURE__ */ o("div", { className: p("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1784
+ r && /* @__PURE__ */ o("div", { className: m("content-card__header", i), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1785
1785
  /* @__PURE__ */ o(
1786
1786
  f,
1787
1787
  {
1788
- className: p("content-card__content", a),
1788
+ className: m("content-card__content", a),
1789
1789
  role: l ? "list" : null,
1790
1790
  children: e
1791
1791
  }
1792
1792
  ),
1793
- s && /* @__PURE__ */ o("div", { className: p("content-card__footer", n), children: s })
1793
+ s && /* @__PURE__ */ o("div", { className: m("content-card__footer", n), children: s })
1794
1794
  ]
1795
1795
  }
1796
1796
  );
1797
- }, l2 = y(L1), M1 = ({
1797
+ }, l2 = b(L1), M1 = ({
1798
1798
  children: d,
1799
1799
  className: e,
1800
1800
  colGap: t = 2,
@@ -1805,16 +1805,16 @@ const X = {
1805
1805
  rowGap: i = 1,
1806
1806
  value: l,
1807
1807
  valueClass: c,
1808
- wrap: u = !1
1808
+ wrap: p = !1
1809
1809
  }) => /* @__PURE__ */ M(
1810
1810
  "div",
1811
1811
  {
1812
- className: p(
1812
+ className: m(
1813
1813
  "flex",
1814
1814
  {
1815
1815
  "flex-col items-start": a === "col",
1816
1816
  "flex-row items-center": a === "row",
1817
- "flex-wrap": u
1817
+ "flex-wrap": p
1818
1818
  },
1819
1819
  e
1820
1820
  ),
@@ -1824,12 +1824,12 @@ const X = {
1824
1824
  },
1825
1825
  ...r,
1826
1826
  children: [
1827
- n && /* @__PURE__ */ o("div", { className: p("item-label", s), children: n }),
1828
- l && /* @__PURE__ */ o("div", { className: p("item-value", c), children: l }),
1827
+ n && /* @__PURE__ */ o("div", { className: m("item-label", s), children: n }),
1828
+ l && /* @__PURE__ */ o("div", { className: m("item-value", c), children: l }),
1829
1829
  d
1830
1830
  ]
1831
1831
  }
1832
- ), r2 = y(M1), i2 = ({
1832
+ ), r2 = b(M1), i2 = ({
1833
1833
  breakPage: d = !1,
1834
1834
  children: e,
1835
1835
  className: t,
@@ -1841,7 +1841,7 @@ const X = {
1841
1841
  }) => /* @__PURE__ */ M(
1842
1842
  "section",
1843
1843
  {
1844
- className: p(
1844
+ className: m(
1845
1845
  "spacer",
1846
1846
  {
1847
1847
  "print:!hidden": a,
@@ -1851,14 +1851,14 @@ const X = {
1851
1851
  ),
1852
1852
  ...n,
1853
1853
  children: [
1854
- s && /* @__PURE__ */ o("h2", { className: p("spacer-title", r), id: i, children: s }),
1854
+ s && /* @__PURE__ */ o("h2", { className: m("spacer-title", r), id: i, children: s }),
1855
1855
  e
1856
1856
  ]
1857
1857
  }
1858
- ), 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(
1858
+ ), 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(
1859
1859
  a,
1860
1860
  {
1861
- className: p(
1861
+ className: m(
1862
1862
  "funnel-header !header-4-medium mb-6 flex items-center",
1863
1863
  {
1864
1864
  "text-center justify-center": d === "center",
@@ -1869,7 +1869,7 @@ const X = {
1869
1869
  ),
1870
1870
  children: n || e
1871
1871
  }
1872
- ), o2 = y(v1), g1 = {
1872
+ ), o2 = b(v1), g1 = {
1873
1873
  circular: "circular 3s linear infinite",
1874
1874
  "circular-reverse": "circular 3s linear reverse infinite",
1875
1875
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -1883,9 +1883,9 @@ const X = {
1883
1883
  "slide-out-to-right": "slide-out-to-right 0.3s ease-in forwards",
1884
1884
  "slide-in-from-right": "slide-in-from-right 0.3s ease-out forwards",
1885
1885
  indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
1886
- }, b1 = {
1887
- map: "var(--map)"
1888
1886
  }, y1 = {
1887
+ map: "var(--map)"
1888
+ }, b1 = {
1889
1889
  "3xs": "0.5rem",
1890
1890
  xxs: "0.625rem",
1891
1891
  "2.5xl": "1.625rem",
@@ -2037,8 +2037,8 @@ const X = {
2037
2037
  "center-top": "center 30%"
2038
2038
  }, q = {
2039
2039
  animation: g1,
2040
- backgroundImage: b1,
2041
- fontSize: y1,
2040
+ backgroundImage: y1,
2041
+ fontSize: b1,
2042
2042
  gridTemplateColumns: A1,
2043
2043
  keyframes: x1,
2044
2044
  margin: w1,
@@ -2226,19 +2226,19 @@ const X = {
2226
2226
  weightProps: i = null
2227
2227
  }) => {
2228
2228
  const l = {};
2229
- Object.entries(s).forEach(([c, u]) => {
2229
+ Object.entries(s).forEach(([c, p]) => {
2230
2230
  const f = {
2231
- "font-size": u,
2231
+ "font-size": p,
2232
2232
  ...a
2233
- }, V = `.${e(`${t}-${c}`)}`, H = n ? n({ sizeKey: c, sizeValue: u }) : {};
2233
+ }, V = `.${e(`${t}-${c}`)}`, H = n ? n({ sizeKey: c, sizeValue: p }) : {};
2234
2234
  l[V] = {
2235
2235
  ...f,
2236
2236
  ...H
2237
- }, Object.entries(r).forEach(([v, m]) => {
2238
- const A = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: u, weightKey: v, weightValue: m }) : {};
2237
+ }, Object.entries(r).forEach(([v, u]) => {
2238
+ const A = `.${e(`${t}-${c}-${v}`)}`, h = i ? i({ sizeKey: c, sizeValue: p, weightKey: v, weightValue: u }) : {};
2239
2239
  l[A] = {
2240
2240
  ...f,
2241
- "font-weight": m,
2241
+ "font-weight": u,
2242
2242
  ...h
2243
2243
  };
2244
2244
  });
@@ -2384,10 +2384,10 @@ function m2(d, e = []) {
2384
2384
  function f2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2385
2385
  let s = !0;
2386
2386
  for (const [r, i] of t.entries()) {
2387
- const l = e.querySelector(`[name="${r}"]`), c = a[r], u = [];
2387
+ const l = e.querySelector(`[name="${r}"]`), c = a[r], p = [];
2388
2388
  c.forEach((f) => {
2389
- f.isValid(i) || u.push(f.message);
2390
- }), 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", (f) => {
2389
+ f.isValid(i) || p.push(f.message);
2390
+ }), 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", (f) => {
2391
2391
  f.preventDefault(), l.classList.contains("field-error") && l.classList.remove("field-error");
2392
2392
  }));
2393
2393
  }
@@ -2542,12 +2542,12 @@ class C {
2542
2542
  const {
2543
2543
  isHeads: l = null,
2544
2544
  isLoggedIn: c = null,
2545
- url: u = null,
2545
+ url: p = null,
2546
2546
  ip: f = null,
2547
2547
  sessionId: V = null,
2548
2548
  user: H = null
2549
2549
  } = (window == null ? void 0 : window.options) ?? {}, { id: v = null } = H ?? {};
2550
- t.userId = s ?? v, t.isHeads = l, t.isLoggedIn = c, t.url = u, await C.createData(
2550
+ t.userId = s ?? v, t.isHeads = l, t.isLoggedIn = c, t.url = p, await C.createData(
2551
2551
  "/api/event",
2552
2552
  {
2553
2553
  payload: {
@@ -2738,7 +2738,7 @@ class C {
2738
2738
  if ((l = window == null ? void 0 : window.options) != null && l.isPdf)
2739
2739
  return r;
2740
2740
  try {
2741
- 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;
2741
+ 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;
2742
2742
  return localStorage.setItem(
2743
2743
  i,
2744
2744
  JSON.stringify({
@@ -2763,8 +2763,8 @@ class C {
2763
2763
  return await C.fetchData("/api/client?query=" + r);
2764
2764
  }
2765
2765
  static getReportUrl(e, t = null) {
2766
- var l, c, u;
2767
- const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((u = e == null ? void 0 : e.name) == null ? void 0 : u.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2766
+ var l, c, p;
2767
+ const a = ((l = e == null ? void 0 : e.state) == null ? void 0 : l.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, s = ((p = e == null ? void 0 : e.name) == null ? void 0 : p.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2768
2768
  t = t || ((e == null ? void 0 : e.id) ?? null);
2769
2769
  const i = [r, "-piq", t].filter((f) => f).join("");
2770
2770
  return "/" + [a, n, s].filter((f) => f).map((f) => C.toSlug(f)).join("/") + "/" + i;
@@ -2977,7 +2977,7 @@ class C {
2977
2977
  selfClose: r = !1,
2978
2978
  target: i = null
2979
2979
  }) {
2980
- const l = 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 = [
2980
+ const l = 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 = [
2981
2981
  "closing",
2982
2982
  "closed",
2983
2983
  "opening",
@@ -2993,15 +2993,15 @@ class C {
2993
2993
  ), V = new MutationObserver((h, g) => {
2994
2994
  h.forEach(async (w) => {
2995
2995
  if (w.attributeName === "open") {
2996
- const b = w.target;
2997
- if (!(b == null ? void 0 : b.hasAttribute("open"))) return;
2998
- b == null || b.removeAttribute("inert"), b == null || b.dispatchEvent(f.opening), b && await A(b), b == null || b.dispatchEvent(f.opened);
2996
+ const y = w.target;
2997
+ if (!(y == null ? void 0 : y.hasAttribute("open"))) return;
2998
+ y == null || y.removeAttribute("inert"), y == null || y.dispatchEvent(f.opening), y && await A(y), y == null || y.dispatchEvent(f.opened);
2999
2999
  }
3000
3000
  });
3001
3001
  }), H = new MutationObserver((h, g) => {
3002
3002
  h.forEach((w) => {
3003
- w.removedNodes.forEach((b) => {
3004
- b.nodeName === "DIALOG" && (b.removeEventListener("click", m), b.removeEventListener("close", v), b.dispatchEvent(f.removed), H == null || H.disconnect(), V == null || V.disconnect());
3003
+ w.removedNodes.forEach((y) => {
3004
+ y.nodeName === "DIALOG" && (y.removeEventListener("click", u), y.removeEventListener("close", v), y.dispatchEvent(f.removed), H == null || H.disconnect(), V == null || V.disconnect());
3005
3005
  });
3006
3006
  });
3007
3007
  });
@@ -3014,12 +3014,12 @@ class C {
3014
3014
  }));
3015
3015
  const v = async ({ target: h }) => {
3016
3016
  h == null || h.classList.add("closing"), h == null || h.setAttribute("inert", ""), h == null || h.dispatchEvent(f.closing), h && await A(h), h == null || h.classList.remove("closing"), h == null || h.removeAttribute("inert"), h == null || h.dispatchEvent(f.closed);
3017
- }, m = async ({ target: h }) => {
3017
+ }, u = async ({ target: h }) => {
3018
3018
  (h == null ? void 0 : h.nodeName) === "DIALOG" && (h == null || h.dispatchEvent(f.outside), c == null || c.close("outside"));
3019
3019
  }, A = (h) => Promise.allSettled(
3020
3020
  h == null ? void 0 : h.getAnimations().map((g) => g == null ? void 0 : g.finished)
3021
3021
  );
3022
- return !e && (c == null || c.addEventListener("click", m)), c == null || c.addEventListener("close", async (h) => {
3022
+ return !e && (c == null || c.addEventListener("click", u)), c == null || c.addEventListener("close", async (h) => {
3023
3023
  await v({ target: h.target }), a && a(h, c);
3024
3024
  }), e && (c == null || c.addEventListener("cancel", async (h) => {
3025
3025
  h.key === "Escape" && h.preventDefault();
@@ -3031,7 +3031,7 @@ class C {
3031
3031
  h.addEventListener("click", (g) => {
3032
3032
  c == null || c.showModal(), s && s(g, c);
3033
3033
  });
3034
- }), u == null || u.forEach((h) => {
3034
+ }), p == null || p.forEach((h) => {
3035
3035
  h.addEventListener("click", async (g) => {
3036
3036
  c == null || c.close("close");
3037
3037
  });
@@ -3179,13 +3179,13 @@ class C {
3179
3179
  max: i = null,
3180
3180
  city: l = null,
3181
3181
  state: c = null,
3182
- vin: u = null,
3182
+ vin: p = null,
3183
3183
  license: f = null,
3184
3184
  token: V = null,
3185
3185
  phone: H = null
3186
- } = e || {}, v = t && t !== "", m = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
3186
+ } = e || {}, v = t && t !== "", u = r && r !== "" && r !== "18", A = i && i !== "" && r !== "99";
3187
3187
  let h = [];
3188
- return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), m && A ? 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), A && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), l && l !== "" && h.push("city=" + l), 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("&");
3188
+ return t && t !== "" && h.push("name=" + t), v || (a && a !== "" && h.push("first=" + a), n && n !== "" && h.push("middle=" + n), s && s !== "" && h.push("last=" + s)), u && A ? 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), A && h.push("max=" + i)), H && H !== "" && h.push("phone=" + H), l && l !== "" && h.push("city=" + l), 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("&");
3189
3189
  }
3190
3190
  static padTo2Digits(e) {
3191
3191
  return e.toString().padStart(2, "0");
@@ -3203,7 +3203,7 @@ class C {
3203
3203
  state: i = "",
3204
3204
  useAmazonOverride: l = !1,
3205
3205
  useCitySearch: c = !1,
3206
- useCityStateSearch: u = !1,
3206
+ useCityStateSearch: p = !1,
3207
3207
  useGoogle: f = !1,
3208
3208
  useGoogleOverride: V = !1,
3209
3209
  useLocation: H = !0,
@@ -3213,7 +3213,7 @@ class C {
3213
3213
  "addressesOnly=" + a,
3214
3214
  "useSearch=" + v,
3215
3215
  "useCitySearch=" + c,
3216
- "useCityStateSearch=" + u,
3216
+ "useCityStateSearch=" + p,
3217
3217
  "useLocation=" + H,
3218
3218
  "useGoogle=" + f,
3219
3219
  "useGoogleOverride=" + V,
@@ -3221,8 +3221,8 @@ class C {
3221
3221
  "isSandboxAccount=" + s,
3222
3222
  "isOptOutSearch=" + n
3223
3223
  ];
3224
- i && i !== "" && !u && A.push("state=" + i);
3225
- const h = A.join("&"), w = (c || u ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3224
+ i && i !== "" && !p && A.push("state=" + i);
3225
+ const h = A.join("&"), w = (c || p ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + h;
3226
3226
  return await C.fetchData(w, !1, r);
3227
3227
  }
3228
3228
  static removeElements(e) {
@@ -3284,9 +3284,9 @@ class C {
3284
3284
  static async setRandomFileNameVersion(e, t = "scripts") {
3285
3285
  const a = Date.now(), n = typeof window < "u" ? window.location.origin : "", s = t ? `/${t}/` : "/";
3286
3286
  try {
3287
- const r = e.map(({ fileName: c, initFunctionName: u }) => import(`${n}${s}${c}?v=${a}`)), i = await Promise.all(r), l = [];
3288
- i.forEach((c, u) => {
3289
- c && typeof c[e[u].initFunctionName] == "function" ? l.push(c[e[u].initFunctionName]()) : console.error(`error loading ${e[u].initFunctionName}()`);
3287
+ const r = e.map(({ fileName: c, initFunctionName: p }) => import(`${n}${s}${c}?v=${a}`)), i = await Promise.all(r), l = [];
3288
+ i.forEach((c, p) => {
3289
+ c && typeof c[e[p].initFunctionName] == "function" ? l.push(c[e[p].initFunctionName]()) : console.error(`error loading ${e[p].initFunctionName}()`);
3290
3290
  }), l.length > 0 && await Promise.all(l);
3291
3291
  } catch (r) {
3292
3292
  console.error("Failed to load one or more search modules:", r);