@vehiclehistory/property-lib 0.0.30 → 0.0.31

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.
Files changed (3) hide show
  1. package/README.md +11 -1
  2. package/dist/main.js +191 -186
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1 +1,11 @@
1
- # Vh-Recs UI Library
1
+ # @vehiclehistory/property-lib
2
+
3
+ [Github Repo](https://github.com/penguin-marketing/property-ui-lib/)
4
+
5
+ ### Steps to Build & Publish
6
+
7
+ 1. Update package.json version
8
+ 2. run `npm run build`
9
+ 3. run `npm publish`
10
+
11
+
package/dist/main.js CHANGED
@@ -473,19 +473,19 @@ const F = {
473
473
  chatBubble: {
474
474
  path: '<path d="M12,3C17.5,3 22,6.58 22,11C22,15.42 17.5,19 12,19C10.76,19 9.57,18.82 8.47,18.5C5.55,21 2,21 2,21C4.33,18.67 4.7,17.1 4.75,16.5C3.05,15.07 2,13.13 2,11C2,6.58 6.5,3 12,3Z" />'
475
475
  }
476
- }, j = (d) => q[d], P = ({
477
- color: d = "text-current",
476
+ }, j = (h) => q[h], P = ({
477
+ color: h = "text-current",
478
478
  className: e,
479
479
  name: t,
480
480
  size: a = "medium",
481
481
  viewBox: n = "0 0 20 20"
482
482
  }) => {
483
- const l = j(t), [r, s] = Z(d), [i, c] = Z(l);
483
+ const l = j(t), [r, s] = Z(h), [i, c] = Z(l);
484
484
  return k(() => {
485
485
  c(l);
486
486
  }, [l]), k(() => {
487
- s(d);
488
- }, [d]), !l && console.error("Icon does not exist", t), /* @__PURE__ */ o(
487
+ s(h);
488
+ }, [h]), !l && console.error("Icon does not exist", t), /* @__PURE__ */ o(
489
489
  "svg",
490
490
  {
491
491
  xmlns: "http://www.w3.org/2000/svg",
@@ -499,7 +499,7 @@ const F = {
499
499
  }
500
500
  );
501
501
  }, b = y(P), W = ({
502
- children: d,
502
+ children: h,
503
503
  className: e,
504
504
  clickHandler: t,
505
505
  panelClass: a,
@@ -544,7 +544,7 @@ const F = {
544
544
  "acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
545
545
  a
546
546
  ),
547
- children: d
547
+ children: h
548
548
  }
549
549
  ),
550
550
  !l && /* @__PURE__ */ o(
@@ -555,12 +555,12 @@ const F = {
555
555
  a,
556
556
  { hidden: !s }
557
557
  ),
558
- children: d
558
+ children: h
559
559
  }
560
560
  )
561
561
  ] }) });
562
562
  }, f1 = y(W), R = ({
563
- children: d,
563
+ children: h,
564
564
  className: e = "",
565
565
  messages: t = [],
566
566
  title: a = "",
@@ -589,14 +589,14 @@ const F = {
589
589
  iconColor: "text-yellow-500",
590
590
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
591
591
  }
592
- }, { icon: i, iconColor: c, styles: h } = s[r];
592
+ }, { icon: i, iconColor: c, styles: d } = s[r];
593
593
  return /* @__PURE__ */ o(
594
594
  "div",
595
595
  {
596
596
  id: r,
597
597
  className: m(
598
598
  "rounded w-full py-2 px-4 mb-4 border",
599
- h,
599
+ d,
600
600
  e
601
601
  ),
602
602
  ...l,
@@ -612,13 +612,13 @@ const F = {
612
612
  ) }),
613
613
  /* @__PURE__ */ g("div", { className: "ml-3", children: [
614
614
  /* @__PURE__ */ o("div", { className: m("font-medium text-sm", n), children: a }),
615
- t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u, f) => /* @__PURE__ */ o("li", { children: u }, f)) }) }) : ""
615
+ t.length > 0 ? /* @__PURE__ */ o("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ o("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: t.map((u, H) => /* @__PURE__ */ o("li", { children: u }, H)) }) }) : ""
616
616
  ] })
617
617
  ] })
618
618
  }
619
619
  );
620
620
  }, M1 = y(R), U = ({
621
- autoFocus: d = !1,
621
+ autoFocus: h = !1,
622
622
  required: e = !1,
623
623
  className: t = "",
624
624
  defaultValue: a = "",
@@ -628,12 +628,12 @@ const F = {
628
628
  inputClass: s = "",
629
629
  leftIcon: i = "homeSearch",
630
630
  mobileBackdrop: c = !1,
631
- showSearchIcon: h = !0,
631
+ showSearchIcon: d = !0,
632
632
  options: u = [],
633
- name: f = "",
633
+ name: H = "",
634
634
  placeholder: M = "",
635
635
  props: A = {},
636
- size: H = "medium",
636
+ size: C = "medium",
637
637
  styles: p = null,
638
638
  title: V = ""
639
639
  }) => /* @__PURE__ */ g(
@@ -645,7 +645,7 @@ const F = {
645
645
  className: m("Autocomplete", t),
646
646
  style: p ? { ...p } : null,
647
647
  children: [
648
- h && /* @__PURE__ */ g(
648
+ d && /* @__PURE__ */ g(
649
649
  "span",
650
650
  {
651
651
  className: m(
@@ -660,7 +660,7 @@ const F = {
660
660
  {
661
661
  className: "home-search select-none text-gray-500",
662
662
  name: i,
663
- size: H === "xLarge" ? "small" : "xSmall",
663
+ size: C === "xLarge" ? "small" : "xSmall",
664
664
  viewBox: "0 0 24 24"
665
665
  }
666
666
  ),
@@ -669,7 +669,7 @@ const F = {
669
669
  {
670
670
  className: "arrow-left select-none text-gray-500 hidden",
671
671
  name: "arrowLeft",
672
- size: H === "xLarge" ? "small" : "xSmall",
672
+ size: C === "xLarge" ? "small" : "xSmall",
673
673
  viewBox: "0 0 24 24"
674
674
  }
675
675
  )
@@ -680,14 +680,14 @@ const F = {
680
680
  "input",
681
681
  {
682
682
  "data-lpignore": "true",
683
- autoFocus: d,
683
+ autoFocus: h,
684
684
  className: m(
685
685
  "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",
686
686
  {
687
- "pl-8": h === !0,
688
- "px-3 h-10": H === "medium",
689
- "px-4 h-12": H === "large",
690
- "px-5 h-[60px] sm:!text-base": H === "xLarge",
687
+ "pl-8": d === !0,
688
+ "px-3 h-10": C === "medium",
689
+ "px-4 h-12": C === "large",
690
+ "px-5 h-[60px] sm:!text-base": C === "xLarge",
691
691
  peer: r
692
692
  },
693
693
  s
@@ -697,7 +697,7 @@ const F = {
697
697
  value: a,
698
698
  placeholder: !M && r ? " " : M,
699
699
  type: "search",
700
- name: f || "search-input",
700
+ name: H || "search-input",
701
701
  "data-id": "search-input",
702
702
  ...A
703
703
  }
@@ -708,10 +708,10 @@ const F = {
708
708
  className: m(
709
709
  "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",
710
710
  {
711
- "!left-7": h === !0,
712
- "left-2": H === "medium",
713
- "left-3": H === "large",
714
- "left-4": H === "xLarge"
711
+ "!left-7": d === !0,
712
+ "left-2": C === "medium",
713
+ "left-3": C === "large",
714
+ "left-4": C === "xLarge"
715
715
  }
716
716
  ),
717
717
  children: r
@@ -784,7 +784,7 @@ const F = {
784
784
  ]
785
785
  }
786
786
  ), g1 = U, Q = ({
787
- children: d,
787
+ children: h,
788
788
  className: e,
789
789
  size: t = "sm",
790
790
  tag: a = "span"
@@ -800,10 +800,10 @@ const F = {
800
800
  },
801
801
  e
802
802
  ),
803
- children: d
803
+ children: h
804
804
  }
805
805
  ), v1 = Q, G = ({
806
- borderless: d = !1,
806
+ borderless: h = !1,
807
807
  leftIcon: e,
808
808
  leftIconProps: t = {},
809
809
  children: a,
@@ -813,27 +813,27 @@ const F = {
813
813
  props: s = {},
814
814
  rightIcon: i,
815
815
  rightIconProps: c = {},
816
- rounded: h = !1,
816
+ rounded: d = !1,
817
817
  size: u = "md",
818
- type: f = "button",
818
+ type: H = "button",
819
819
  uppercase: M = !1,
820
820
  variation: A = "primary"
821
821
  }) => {
822
- const H = r ? "a" : "button";
822
+ const C = r ? "a" : "button";
823
823
  return /* @__PURE__ */ g(
824
- H,
824
+ C,
825
825
  {
826
- type: H !== "a" ? f : null,
826
+ type: C !== "a" ? H : null,
827
827
  className: m(
828
828
  "Button",
829
829
  {
830
830
  [`Button--${A}`]: A,
831
831
  [`Button--${u}`]: u,
832
- "Button--rounded": h,
832
+ "Button--rounded": d,
833
833
  "Button--disabled": l,
834
834
  "Button--custom-link": r,
835
835
  "Button--uppercase": M,
836
- "Button--borderless": d || A === "link"
836
+ "Button--borderless": h || A === "link"
837
837
  },
838
838
  n
839
839
  ),
@@ -863,8 +863,8 @@ const F = {
863
863
  ]
864
864
  }
865
865
  );
866
- }, A1 = y(G), J = ({ children: d, className: e }) => /* @__PURE__ */ o("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), y1 = J, K = ({
867
- block: d = !1,
866
+ }, A1 = y(G), J = ({ children: h, className: e }) => /* @__PURE__ */ o("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: h }), y1 = J, K = ({
867
+ block: h = !1,
868
868
  borderless: e = !1,
869
869
  children: t,
870
870
  className: a = "",
@@ -879,7 +879,7 @@ const F = {
879
879
  "bg-white",
880
880
  {
881
881
  f1: !e,
882
- f2: d,
882
+ f2: h,
883
883
  f3: n,
884
884
  f4: l
885
885
  },
@@ -890,7 +890,7 @@ const F = {
890
890
  children: t
891
891
  }
892
892
  ), b1 = K, Y = ({
893
- checked: d = !1,
893
+ checked: h = !1,
894
894
  children: e,
895
895
  className: t = "",
896
896
  error: a = !1,
@@ -901,9 +901,9 @@ const F = {
901
901
  variation: i = "primary",
902
902
  value: c = ""
903
903
  }) => {
904
- const h = l ? "div" : "label", u = h === "label" ? { htmlFor: n } : {};
904
+ const d = l ? "div" : "label", u = d === "label" ? { htmlFor: n } : {};
905
905
  return /* @__PURE__ */ g(
906
- h,
906
+ d,
907
907
  {
908
908
  className: m("checkbox flex items-center", i, t),
909
909
  ...u,
@@ -911,7 +911,7 @@ const F = {
911
911
  /* @__PURE__ */ o(
912
912
  "input",
913
913
  {
914
- checked: d,
914
+ checked: h,
915
915
  className: m("form-checkbox ", {
916
916
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
917
917
  }),
@@ -926,7 +926,7 @@ const F = {
926
926
  ]
927
927
  }
928
928
  );
929
- }, w1 = y(Y), X = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
929
+ }, w1 = y(Y), X = ({ children: h, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
930
930
  /* @__PURE__ */ o(
931
931
  "main",
932
932
  {
@@ -936,7 +936,7 @@ const F = {
936
936
  "lg:order-2": t === "left"
937
937
  }
938
938
  ),
939
- children: d
939
+ children: h
940
940
  }
941
941
  ),
942
942
  /* @__PURE__ */ o(
@@ -953,7 +953,7 @@ const F = {
953
953
  }
954
954
  )
955
955
  ] }), x1 = y(X), _ = ({
956
- activator: d,
956
+ activator: h,
957
957
  id: e = "",
958
958
  children: t,
959
959
  className: a = "",
@@ -963,13 +963,13 @@ const F = {
963
963
  fullMobile: s = !0,
964
964
  headerClass: i = "",
965
965
  hideClose: c = !1,
966
- iconSize: h = "medium",
966
+ iconSize: d = "medium",
967
967
  preventPageScroll: u = !0,
968
- stickyHeader: f = !1,
968
+ stickyHeader: H = !1,
969
969
  title: M = "",
970
970
  titleClass: A = ""
971
971
  }) => /* @__PURE__ */ g(z, { children: [
972
- d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
972
+ h && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: h }),
973
973
  /* @__PURE__ */ o(
974
974
  "dialog",
975
975
  {
@@ -991,7 +991,7 @@ const F = {
991
991
  className: m(
992
992
  "dialog-header flex items-center p-4",
993
993
  {
994
- "sticky top-0 bg-white z-10": f,
994
+ "sticky top-0 bg-white z-10": H,
995
995
  "!pb-0 border-0 justify-end": !M,
996
996
  "justify-between border-b": M
997
997
  },
@@ -1011,7 +1011,7 @@ const F = {
1011
1011
  b,
1012
1012
  {
1013
1013
  name: "close",
1014
- size: h,
1014
+ size: d,
1015
1015
  className: "pointer-events-none"
1016
1016
  }
1017
1017
  )
@@ -1033,7 +1033,7 @@ const F = {
1033
1033
  }
1034
1034
  )
1035
1035
  ] }), S1 = y(_), e1 = ({
1036
- activator: d,
1036
+ activator: h,
1037
1037
  id: e = "",
1038
1038
  children: t,
1039
1039
  className: a = "",
@@ -1043,12 +1043,12 @@ const F = {
1043
1043
  footer: s,
1044
1044
  fullMobile: i = !0,
1045
1045
  headerClass: c = "",
1046
- hideClose: h = !1,
1046
+ hideClose: d = !1,
1047
1047
  iconSize: u = "medium",
1048
- isOpen: f = !1,
1048
+ isOpen: H = !1,
1049
1049
  setDialogOpen: M,
1050
1050
  stickyHeader: A = !1,
1051
- title: H = "",
1051
+ title: C = "",
1052
1052
  titleClass: p = ""
1053
1053
  }) => {
1054
1054
  const V = I(null), w = async () => {
@@ -1063,9 +1063,9 @@ const F = {
1063
1063
  );
1064
1064
  return k(() => {
1065
1065
  const x = V.current;
1066
- x && (f ? x.showModal() : typeof x.close == "function" && x.close());
1067
- }, [f]), /* @__PURE__ */ g(z, { children: [
1068
- d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: d }),
1066
+ x && (H ? x.showModal() : typeof x.close == "function" && x.close());
1067
+ }, [H]), /* @__PURE__ */ g(z, { children: [
1068
+ h && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: h }),
1069
1069
  /* @__PURE__ */ g(
1070
1070
  "dialog",
1071
1071
  {
@@ -1074,7 +1074,7 @@ const F = {
1074
1074
  className: m(
1075
1075
  "dialog",
1076
1076
  {
1077
- hidden: !f,
1077
+ hidden: !H,
1078
1078
  "xs-max:h-full xs-max:max-h-full": i
1079
1079
  },
1080
1080
  a
@@ -1091,8 +1091,8 @@ const F = {
1091
1091
  c
1092
1092
  ),
1093
1093
  children: [
1094
- /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children: H || "" }),
1095
- !h && /* @__PURE__ */ o(
1094
+ /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: p, children: C || "" }),
1095
+ !d && /* @__PURE__ */ o(
1096
1096
  "button",
1097
1097
  {
1098
1098
  type: "button",
@@ -1133,7 +1133,7 @@ const F = {
1133
1133
  }
1134
1134
  )
1135
1135
  ] });
1136
- }, k1 = y(e1), t1 = ({ className: d = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", d), children: [
1136
+ }, k1 = y(e1), t1 = ({ className: h = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: m("mx-auto", h), children: [
1137
1137
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
1138
1138
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
1139
1139
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
@@ -1143,7 +1143,7 @@ const F = {
1143
1143
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
1144
1144
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
1145
1145
  ] }), z1 = t1, a1 = ({
1146
- cb: d,
1146
+ cb: h,
1147
1147
  className: e = "",
1148
1148
  size: t = "md",
1149
1149
  timeout: a = 1e4,
@@ -1152,20 +1152,20 @@ const F = {
1152
1152
  function l({ cb: r }) {
1153
1153
  const s = document.querySelector(".loading-bar__inner");
1154
1154
  if (!s) return;
1155
- let i, c, h = !1;
1156
- function u(f) {
1157
- i === void 0 && (i = f);
1158
- const M = f - i;
1159
- if (c !== f) {
1155
+ let i, c, d = !1;
1156
+ function u(H) {
1157
+ i === void 0 && (i = H);
1158
+ const M = H - i;
1159
+ if (c !== H) {
1160
1160
  const A = M / a * 101;
1161
- s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(f));
1161
+ s.style.width = `${A}%`, A >= 101 && (r && r(), d = !0, window.cancelAnimationFrame(H));
1162
1162
  }
1163
- M < a && (c = f, h || window.requestAnimationFrame(u));
1163
+ M < a && (c = H, d || window.requestAnimationFrame(u));
1164
1164
  }
1165
1165
  window.requestAnimationFrame(u);
1166
1166
  }
1167
1167
  return k(() => {
1168
- l({ cb: d });
1168
+ l({ cb: h });
1169
1169
  }, []), /* @__PURE__ */ o(
1170
1170
  "div",
1171
1171
  {
@@ -1187,15 +1187,15 @@ const F = {
1187
1187
  name: "spinnerDark",
1188
1188
  color: "text-teal-700",
1189
1189
  viewBox: "0 0 24 24"
1190
- }, l1 = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1190
+ }, l1 = ({ className: h = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1191
1191
  b,
1192
1192
  {
1193
1193
  size: "xSmall",
1194
1194
  ...n1,
1195
- className: `animate-spin ${d}`
1195
+ className: `animate-spin ${h}`
1196
1196
  }
1197
1197
  ) }), N1 = y(l1), s1 = ({
1198
- activator: d,
1198
+ activator: h,
1199
1199
  activatorClass: e = "",
1200
1200
  attrs: t = {},
1201
1201
  options: a = {},
@@ -1242,11 +1242,11 @@ const F = {
1242
1242
  ),
1243
1243
  ...t,
1244
1244
  "data-options": JSON.stringify(a),
1245
- children: d
1245
+ children: h
1246
1246
  }
1247
1247
  )
1248
1248
  ] }), B1 = s1, r1 = ({
1249
- ariaValuemax: d = 100,
1249
+ ariaValuemax: h = 100,
1250
1250
  ariaValuemin: e = 0,
1251
1251
  bgColor: t = "bg-orange-500",
1252
1252
  className: a,
@@ -1255,10 +1255,10 @@ const F = {
1255
1255
  rounded: r = !0,
1256
1256
  showLabel: s = !1
1257
1257
  }) => {
1258
- const c = ((h, u) => {
1259
- if (h) {
1260
- const f = Number(u) / h;
1261
- return f > 1 ? 100 : f * 100;
1258
+ const c = ((d, u) => {
1259
+ if (d) {
1260
+ const H = Number(u) / d;
1261
+ return H > 1 ? 100 : H * 100;
1262
1262
  }
1263
1263
  return n;
1264
1264
  })(l, n);
@@ -1274,7 +1274,7 @@ const F = {
1274
1274
  "aria-label": "Progress Bar",
1275
1275
  "aria-valuenow": n,
1276
1276
  "aria-valuemin": e,
1277
- "aria-valuemax": d,
1277
+ "aria-valuemax": h,
1278
1278
  children: /* @__PURE__ */ o(
1279
1279
  "div",
1280
1280
  {
@@ -1289,7 +1289,7 @@ const F = {
1289
1289
  }
1290
1290
  );
1291
1291
  }, D1 = y(r1), i1 = ({
1292
- checked: d = !1,
1292
+ checked: h = !1,
1293
1293
  children: e,
1294
1294
  className: t = "",
1295
1295
  id: a = "",
@@ -1299,17 +1299,17 @@ const F = {
1299
1299
  variation: s = "primary",
1300
1300
  value: i = ""
1301
1301
  }) => {
1302
- const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
1302
+ const c = n ? "div" : "label", d = c === "label" ? { htmlFor: a } : {};
1303
1303
  return /* @__PURE__ */ g(
1304
1304
  c,
1305
1305
  {
1306
1306
  className: m("radio flex items-center", t),
1307
- ...h,
1307
+ ...d,
1308
1308
  children: [
1309
1309
  /* @__PURE__ */ o(
1310
1310
  "input",
1311
1311
  {
1312
- checked: d,
1312
+ checked: h,
1313
1313
  className: m(
1314
1314
  "form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
1315
1315
  {
@@ -1328,7 +1328,7 @@ const F = {
1328
1328
  }
1329
1329
  );
1330
1330
  }, E1 = y(i1), o1 = ({
1331
- children: d,
1331
+ children: h,
1332
1332
  className: e = "",
1333
1333
  error: t = !1,
1334
1334
  errorMessage: a = "",
@@ -1338,16 +1338,16 @@ const F = {
1338
1338
  options: s = [],
1339
1339
  placeholder: i = "",
1340
1340
  props: c = {},
1341
- selectClass: h = "",
1341
+ selectClass: d = "",
1342
1342
  styles: u = null,
1343
- variation: f = "primary",
1343
+ variation: H = "primary",
1344
1344
  value: M
1345
1345
  }) => {
1346
1346
  const A = i ? { defaultValue: "" } : {};
1347
1347
  return /* @__PURE__ */ g(
1348
1348
  "label",
1349
1349
  {
1350
- className: m("relative select", e, f),
1350
+ className: m("relative select", e, H),
1351
1351
  style: u ? { ...u } : null,
1352
1352
  children: [
1353
1353
  l,
@@ -1357,7 +1357,7 @@ const F = {
1357
1357
  className: m(
1358
1358
  "form-select relative bg-white pl-3 pr-10 text-left cursor-default",
1359
1359
  t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
1360
- h
1360
+ d
1361
1361
  ),
1362
1362
  id: n,
1363
1363
  name: r,
@@ -1366,13 +1366,13 @@ const F = {
1366
1366
  ...c,
1367
1367
  children: [
1368
1368
  i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
1369
- s.map((H, p) => /* @__PURE__ */ o(
1369
+ s.map((C, p) => /* @__PURE__ */ o(
1370
1370
  "option",
1371
1371
  {
1372
- value: (H == null ? void 0 : H.id) || (H == null ? void 0 : H.value) || H,
1373
- children: (H == null ? void 0 : H.name) || H
1372
+ value: (C == null ? void 0 : C.id) || (C == null ? void 0 : C.value) || C,
1373
+ children: (C == null ? void 0 : C.name) || C
1374
1374
  },
1375
- (H == null ? void 0 : H.name) || H
1375
+ (C == null ? void 0 : C.name) || C
1376
1376
  ))
1377
1377
  ]
1378
1378
  }
@@ -1381,12 +1381,12 @@ const F = {
1381
1381
  ]
1382
1382
  }
1383
1383
  );
1384
- }, T1 = y(o1), c1 = ({ className: d = "" }) => /* @__PURE__ */ g(
1384
+ }, T1 = y(o1), c1 = ({ className: h = "" }) => /* @__PURE__ */ g(
1385
1385
  "div",
1386
1386
  {
1387
1387
  className: m(
1388
1388
  "flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
1389
- d
1389
+ h
1390
1390
  ),
1391
1391
  children: [
1392
1392
  /* @__PURE__ */ o(b, { size: "xLarge", name: "map", className: "mx-auto" }),
@@ -1394,7 +1394,7 @@ const F = {
1394
1394
  ]
1395
1395
  }
1396
1396
  ), $1 = y(c1), d1 = ({
1397
- placeholderClass: d = "",
1397
+ placeholderClass: h = "",
1398
1398
  children: e,
1399
1399
  className: t = "",
1400
1400
  id: a = 1,
@@ -1413,7 +1413,7 @@ const F = {
1413
1413
  /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
1414
1414
  "div",
1415
1415
  {
1416
- className: `slider-card bg-gray-200 animate-pulse ${d}`,
1416
+ className: `slider-card bg-gray-200 animate-pulse ${h}`,
1417
1417
  children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
1418
1418
  },
1419
1419
  r
@@ -1429,7 +1429,7 @@ const F = {
1429
1429
  }
1430
1430
  )
1431
1431
  ] }), O1 = y(d1), h1 = ({
1432
- className: d = "",
1432
+ className: h = "",
1433
1433
  value: e
1434
1434
  }) => {
1435
1435
  const t = {
@@ -1440,13 +1440,13 @@ const F = {
1440
1440
  {
1441
1441
  className: m(
1442
1442
  'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
1443
- d
1443
+ h
1444
1444
  ),
1445
1445
  style: t
1446
1446
  }
1447
1447
  );
1448
1448
  }, I1 = h1, u1 = ({
1449
- className: d = "",
1449
+ className: h = "",
1450
1450
  clear: e = !1,
1451
1451
  error: t = !1,
1452
1452
  errorMessage: a = "",
@@ -1456,8 +1456,8 @@ const F = {
1456
1456
  placeholder: s = "",
1457
1457
  props: i = {},
1458
1458
  rows: c = 4,
1459
- variation: h = "primary"
1460
- }) => /* @__PURE__ */ g("div", { className: m("relative textarea", h, d), children: [
1459
+ variation: d = "primary"
1460
+ }) => /* @__PURE__ */ g("div", { className: m("relative textarea", d, h), children: [
1461
1461
  /* @__PURE__ */ o(
1462
1462
  "textarea",
1463
1463
  {
@@ -1491,7 +1491,7 @@ const F = {
1491
1491
  ),
1492
1492
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1493
1493
  ] }), F1 = y(u1), p1 = ({
1494
- className: d = "",
1494
+ className: h = "",
1495
1495
  clear: e = !1,
1496
1496
  error: t = !1,
1497
1497
  errorMessage: a = "",
@@ -1501,15 +1501,15 @@ const F = {
1501
1501
  name: s = "",
1502
1502
  placeholder: i = "",
1503
1503
  props: c = {},
1504
- styles: h = null,
1504
+ styles: d = null,
1505
1505
  type: u = "text",
1506
- value: f,
1506
+ value: H,
1507
1507
  variation: M = "primary"
1508
1508
  }) => /* @__PURE__ */ g(
1509
1509
  "div",
1510
1510
  {
1511
- className: m("relative textbox", M, d),
1512
- style: h ? { ...h } : null,
1511
+ className: m("relative textbox", M, h),
1512
+ style: d ? { ...d } : null,
1513
1513
  children: [
1514
1514
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
1515
1515
  b,
@@ -1527,7 +1527,7 @@ const F = {
1527
1527
  id: l,
1528
1528
  name: s,
1529
1529
  type: u,
1530
- value: f,
1530
+ value: H,
1531
1531
  autoComplete: "off",
1532
1532
  className: m(
1533
1533
  "form-input",
@@ -1560,20 +1560,20 @@ const F = {
1560
1560
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1561
1561
  ]
1562
1562
  }
1563
- ), q1 = y(p1), m1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1563
+ ), q1 = y(p1), m1 = ({ children: h, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1564
1564
  t,
1565
1565
  {
1566
1566
  className: m(
1567
1567
  "!text-xl text-center mb-6 flex items-center justify-center",
1568
1568
  e
1569
1569
  ),
1570
- children: a || d
1570
+ children: a || h
1571
1571
  }
1572
1572
  ), j1 = y(m1);
1573
- class C {
1573
+ class f {
1574
1574
  static calcCrow(e, t, a, n) {
1575
- const r = C.toRad(a - e), s = C.toRad(n - t);
1576
- e = C.toRad(e), a = C.toRad(a);
1575
+ const r = f.toRad(a - e), s = f.toRad(n - t);
1576
+ e = f.toRad(e), a = f.toRad(a);
1577
1577
  const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
1578
1578
  return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
1579
1579
  }
@@ -1588,9 +1588,9 @@ class C {
1588
1588
  return;
1589
1589
  window.dataLayer = window.dataLayer || [];
1590
1590
  const t = document.querySelectorAll("[data-div-track]");
1591
- typeof C == "function" && t.forEach((a) => {
1591
+ typeof f == "function" && t.forEach((a) => {
1592
1592
  a.addEventListener("click", () => {
1593
- C.clickTrackEvent(a.dataset.divTrack);
1593
+ f.clickTrackEvent(a.dataset.divTrack);
1594
1594
  });
1595
1595
  });
1596
1596
  }
@@ -1600,20 +1600,19 @@ class C {
1600
1600
  click_value: e
1601
1601
  });
1602
1602
  }
1603
- /* TODO: Not sure if this or PRECS is more correct */
1604
1603
  static async createData(e, t = null, a = !0) {
1605
- if (options.isBot || !t)
1604
+ if (window.options.isBot || !t)
1606
1605
  return null;
1607
- const { tolken: n = null, ip: l = null } = await C.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
1606
+ const { tolken: n = null, ip: l = null } = await f.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + l, s = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
1608
1607
  try {
1609
1608
  const c = await fetch(s, {
1610
1609
  method: "POST",
1611
1610
  body: i === "null" ? null : i,
1612
1611
  headers: {
1613
- website: C.getWebsiteHeaderName()
1612
+ website: f.getWebsiteHeaderName()
1614
1613
  }
1615
- }), h = c.headers.get("content-type");
1616
- if (h && h.indexOf("application/json") !== -1)
1614
+ }), d = c.headers.get("content-type");
1615
+ if (d && d.indexOf("application/json") !== -1)
1617
1616
  return c.json();
1618
1617
  const u = await c.text();
1619
1618
  return u ? u.replace("__next", "") : null;
@@ -1627,7 +1626,7 @@ class C {
1627
1626
  }
1628
1627
  static async deleteSearchValue(e = "recsSearchValue") {
1629
1628
  try {
1630
- return await C.createData(`/api/cookie/remove?name=${e}`);
1629
+ return await f.createData(`/api/cookie/remove?name=${e}`);
1631
1630
  } catch (t) {
1632
1631
  console.error("deleteSearchValue", t.message);
1633
1632
  }
@@ -1678,12 +1677,12 @@ class C {
1678
1677
  static async fetchData(e, t = !1, a = !0) {
1679
1678
  if (options.isBot)
1680
1679
  return null;
1681
- const { tolken: n = null, ip: l = null } = await C.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
1680
+ const { tolken: n = null, ip: l = null } = await f.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
1682
1681
  try {
1683
1682
  const i = await fetch(s, { method: "GET" });
1684
1683
  if (t === !0) {
1685
- const h = await i.text();
1686
- return h ? h.replace("__next", "") : null;
1684
+ const d = await i.text();
1685
+ return d ? d.replace("__next", "") : null;
1687
1686
  }
1688
1687
  const c = i.headers.get("content-type");
1689
1688
  return c && c.indexOf("application/json") !== -1 ? i.json() : null;
@@ -1698,8 +1697,8 @@ class C {
1698
1697
  }
1699
1698
  static formatDate(e = null) {
1700
1699
  return e ? (e = new Date(e), [
1701
- C.padTo2Digits(e.getMonth() + 1),
1702
- C.padTo2Digits(e.getDate()),
1700
+ f.padTo2Digits(e.getMonth() + 1),
1701
+ f.padTo2Digits(e.getDate()),
1703
1702
  e.getFullYear()
1704
1703
  ].join("-")) : null;
1705
1704
  }
@@ -1749,6 +1748,7 @@ class C {
1749
1748
  return "/report/license-plate";
1750
1749
  }
1751
1750
  static async getHeaders(e = 300) {
1751
+ var i;
1752
1752
  const {
1753
1753
  userAgent: t = null,
1754
1754
  userAgentData: a = null,
@@ -1763,26 +1763,28 @@ class C {
1763
1763
  return r;
1764
1764
  const s = localStorage.getItem("headerTolken");
1765
1765
  if (s) {
1766
- const i = JSON.parse(s), c = (/* @__PURE__ */ new Date()).getTime();
1767
- return i.expire - c < 0 && localStorage.removeItem("headerTolken"), {
1768
- tolken: i.tolken,
1769
- ip: i.ip,
1766
+ const c = JSON.parse(s), d = (/* @__PURE__ */ new Date()).getTime();
1767
+ return c.expire - d < 0 && localStorage.removeItem("headerTolken"), {
1768
+ tolken: c.tolken,
1769
+ ip: c.ip,
1770
1770
  userAgent: t,
1771
1771
  platform: l
1772
1772
  };
1773
1773
  }
1774
+ if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
1775
+ return r;
1774
1776
  try {
1775
- const c = await (await fetch("/api/headers")).json(), h = (c == null ? void 0 : c.token) ?? null, u = (c == null ? void 0 : c.ip) ?? null;
1777
+ const d = await (await fetch("/api/headers")).json(), u = (d == null ? void 0 : d.token) ?? null, H = (d == null ? void 0 : d.ip) ?? null;
1776
1778
  return localStorage.setItem(
1777
1779
  "headerTolken",
1778
1780
  JSON.stringify({
1779
- tolken: h,
1780
- ip: u,
1781
+ tolken: u,
1782
+ ip: H,
1781
1783
  expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
1782
1784
  })
1783
- ), { tolken: h, ip: u, userAgent: t, platform: l };
1784
- } catch (i) {
1785
- console.error("getHeaders", i);
1785
+ ), { tolken: u, ip: H, userAgent: t, platform: l };
1786
+ } catch (c) {
1787
+ console.error("getHeaders", c);
1786
1788
  }
1787
1789
  return r;
1788
1790
  }
@@ -1793,19 +1795,19 @@ class C {
1793
1795
  }[e];
1794
1796
  }
1795
1797
  static async getLocationData(e) {
1796
- const { swLat: t, neLng: a, neLat: n, swLng: l } = C.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
1797
- return await C.fetchData("/api/client?query=" + r);
1798
+ const { swLat: t, neLng: a, neLat: n, swLng: l } = f.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + l;
1799
+ return await f.fetchData("/api/client?query=" + r);
1798
1800
  }
1799
1801
  static getReportUrl(e, t = null) {
1800
- var i, c, h;
1801
- const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
1802
+ var i, c, d;
1803
+ const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((c = e == null ? void 0 : e.city) == null ? void 0 : c.slug) ?? null, l = ((d = e == null ? void 0 : e.name) == null ? void 0 : d.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
1802
1804
  t = t || ((e == null ? void 0 : e.id) ?? null);
1803
1805
  const s = [r, "-piq", t].filter((u) => u).join("");
1804
- return "/" + [a, n, l].filter((u) => u).map((u) => C.toSlug(u)).join("/") + "/" + s;
1806
+ return "/" + [a, n, l].filter((u) => u).map((u) => f.toSlug(u)).join("/") + "/" + s;
1805
1807
  }
1806
1808
  static async getSearchValue(e = "recsSearchValue") {
1807
1809
  try {
1808
- return await C.createData(`/api/cookie/fetch?name=${e}`);
1810
+ return await f.createData(`/api/cookie/fetch?name=${e}`);
1809
1811
  } catch (t) {
1810
1812
  console.error("getSearchValue", t.message);
1811
1813
  }
@@ -1924,15 +1926,18 @@ class C {
1924
1926
  };
1925
1927
  }
1926
1928
  static async getUser() {
1929
+ var e;
1927
1930
  if (typeof window < "u") {
1928
- const { user: e = null } = (window == null ? void 0 : window.options) ?? {};
1929
- if (e)
1930
- return e;
1931
+ const { user: t = null } = (window == null ? void 0 : window.options) ?? {};
1932
+ if (t)
1933
+ return t;
1931
1934
  }
1935
+ if ((e = window == null ? void 0 : window.options) != null && e.isPdf)
1936
+ return null;
1932
1937
  try {
1933
- return await C.createData("/api/cookie/fetch?name=odrUser");
1934
- } catch (e) {
1935
- console.error("getUser", e.message);
1938
+ return await f.createData("/api/cookie/fetch?name=odrUser");
1939
+ } catch (t) {
1940
+ console.error("getUser", t.message);
1936
1941
  }
1937
1942
  return null;
1938
1943
  }
@@ -1946,7 +1951,7 @@ class C {
1946
1951
  uuid: t
1947
1952
  }
1948
1953
  });
1949
- return await C.makeSearchFetchCall(
1954
+ return await f.makeSearchFetchCall(
1950
1955
  `/api/client?query=user-get-history&filter=${a}`
1951
1956
  );
1952
1957
  }
@@ -2010,40 +2015,40 @@ class C {
2010
2015
  [V]: new Event(V)
2011
2016
  }),
2012
2017
  {}
2013
- ), h = new MutationObserver((p, V) => {
2018
+ ), d = new MutationObserver((p, V) => {
2014
2019
  p.forEach(async (w) => {
2015
2020
  if (w.attributeName === "open") {
2016
2021
  const v = w.target;
2017
2022
  if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2018
- v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await H(v), v == null || v.dispatchEvent(c.opened);
2023
+ v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await C(v), v == null || v.dispatchEvent(c.opened);
2019
2024
  }
2020
2025
  });
2021
2026
  }), u = new MutationObserver((p, V) => {
2022
2027
  p.forEach((w) => {
2023
2028
  w.removedNodes.forEach((v) => {
2024
- v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), h == null || h.disconnect());
2029
+ v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(c.removed), u == null || u.disconnect(), d == null || d.disconnect());
2025
2030
  });
2026
2031
  });
2027
2032
  });
2028
- s && (h.observe(s, {
2033
+ s && (d.observe(s, {
2029
2034
  attributes: !0
2030
2035
  }), u.observe(document.body, {
2031
2036
  attributes: !1,
2032
2037
  subtree: !1,
2033
2038
  childList: !0
2034
2039
  }));
2035
- const f = () => {
2040
+ const H = () => {
2036
2041
  s == null || s.showModal();
2037
2042
  }, M = async ({ target: p }) => {
2038
- p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await H(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
2043
+ p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await C(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
2039
2044
  }, A = async ({ target: p }) => {
2040
2045
  (p == null ? void 0 : p.nodeName) === "DIALOG" && (s == null || s.close("outside"));
2041
- }, H = (p) => Promise.allSettled(
2046
+ }, C = (p) => Promise.allSettled(
2042
2047
  p == null ? void 0 : p.getAnimations().map((V) => V == null ? void 0 : V.finished)
2043
2048
  );
2044
2049
  return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", M), r == null || r.forEach((p) => {
2045
2050
  p.addEventListener("click", (V) => {
2046
- f(), a && a(V, s);
2051
+ H(), a && a(V, s);
2047
2052
  });
2048
2053
  }), i == null || i.forEach((p) => {
2049
2054
  p.addEventListener("click", async (V) => {
@@ -2052,12 +2057,12 @@ class C {
2052
2057
  }), {
2053
2058
  activators: r,
2054
2059
  ref: s,
2055
- handleOpen: f,
2060
+ handleOpen: H,
2056
2061
  handleClose: M
2057
2062
  };
2058
2063
  }
2059
2064
  static hasBoundsEntry(e, t = "bounds") {
2060
- return C.getBoundsEntries(t).includes(e);
2065
+ return f.getBoundsEntries(t).includes(e);
2061
2066
  }
2062
2067
  static initObserver(e, t, a = null) {
2063
2068
  if (!e)
@@ -2116,7 +2121,7 @@ class C {
2116
2121
  url: n,
2117
2122
  data: l
2118
2123
  };
2119
- return await C.createData("/api/client?query=log/save&method=POST", r), null;
2124
+ return await f.createData("/api/client?query=log/save&method=POST", r), null;
2120
2125
  }
2121
2126
  static loadAds() {
2122
2127
  window.dataLayer = window.dataLayer || [];
@@ -2133,7 +2138,7 @@ class C {
2133
2138
  if (e) {
2134
2139
  const n = "/scripts/" + e + ".js?v=100.0.5";
2135
2140
  try {
2136
- return await C.injectScript({
2141
+ return await f.injectScript({
2137
2142
  src: n,
2138
2143
  id: t || e,
2139
2144
  async: !1,
@@ -2149,11 +2154,11 @@ class C {
2149
2154
  if (window.options.googleMapsLoaded === !0)
2150
2155
  return;
2151
2156
  const e = "https://maps.googleapis.com/maps/api/js", t = window.options.googleApiKey, a = e + "?key=" + t + "&libraries=marker&v=beta&callback=mapCb";
2152
- await C.injectScript({ src: a, id: "googleapis", async: !1 });
2157
+ await f.injectScript({ src: a, id: "googleapis", async: !1 });
2153
2158
  }
2154
2159
  static async loadLeafletApi() {
2155
2160
  const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", l = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
2156
- await C.injectLink({ href: a, id: "leafletCss" }), await C.injectLink({ href: l, id: "gestureCss" }), await C.injectScript({ src: t, id: "leafletJs", async: !1 }), await C.injectScript({
2161
+ await f.injectLink({ href: a, id: "leafletCss" }), await f.injectLink({ href: l, id: "gestureCss" }), await f.injectScript({ src: t, id: "leafletJs", async: !1 }), await f.injectScript({
2157
2162
  src: n,
2158
2163
  id: "gestureJs",
2159
2164
  async: !1
@@ -2168,7 +2173,7 @@ class C {
2168
2173
  }
2169
2174
  static async loadSwiper() {
2170
2175
  const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
2171
- await C.injectLink({ href: a, id: "swiperCss" }), await C.injectScript({ src: t, id: "swiperJs", async: !1 });
2176
+ await f.injectLink({ href: a, id: "swiperCss" }), await f.injectScript({ src: t, id: "swiperJs", async: !1 });
2172
2177
  }
2173
2178
  static async makeSearchFetchCall(e) {
2174
2179
  try {
@@ -2205,13 +2210,13 @@ class C {
2205
2210
  max: s = null,
2206
2211
  city: i = null,
2207
2212
  state: c = null,
2208
- vin: h = null,
2213
+ vin: d = null,
2209
2214
  license: u = null,
2210
- token: f = null,
2215
+ token: H = null,
2211
2216
  phone: M = null
2212
- } = e || {}, A = t && t !== "", H = r && r !== "" && r !== "18", p = s && s !== "" && r !== "99";
2217
+ } = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", p = s && s !== "" && r !== "99";
2213
2218
  let V = [];
2214
- return t && t !== "" && V.push("name=" + t), A || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)), H && p ? parseInt(r) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + s)) : (H && V.push("min=" + r), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), i && i !== "" && V.push("city=" + i), u && u !== "" && V.push("license=" + u), h && h !== "" && V.push("vin=" + h), c && c !== "" && V.push("state=" + c), f && f !== "" && V.push("token=" + f), V.join("&");
2219
+ return t && t !== "" && V.push("name=" + t), A || (a && a !== "" && V.push("first=" + a), n && n !== "" && V.push("middle=" + n), l && l !== "" && V.push("last=" + l)), C && p ? parseInt(r) > parseInt(s) ? (V.push("min=" + s), V.push("max=" + r)) : (V.push("min=" + r), V.push("max=" + s)) : (C && V.push("min=" + r), p && V.push("max=" + s)), M && M !== "" && V.push("phone=" + M), i && i !== "" && V.push("city=" + i), u && u !== "" && V.push("license=" + u), d && d !== "" && V.push("vin=" + d), c && c !== "" && V.push("state=" + c), H && H !== "" && V.push("token=" + H), V.join("&");
2215
2220
  }
2216
2221
  static padTo2Digits(e) {
2217
2222
  return e.toString().padStart(2, "0");
@@ -2228,7 +2233,7 @@ class C {
2228
2233
  useSearch: r = !1,
2229
2234
  useLocation: s = !0,
2230
2235
  state: i = ""
2231
- } = t ?? {}, { tolken: c = null, ip: h = null } = await C.getHeaders(), f = [
2236
+ } = t ?? {}, { tolken: c = null, ip: d = null } = await f.getHeaders(), H = [
2232
2237
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2233
2238
  "addressesOnly=" + a,
2234
2239
  "useSearch=" + r,
@@ -2236,9 +2241,9 @@ class C {
2236
2241
  "useCityStateSearch=" + l,
2237
2242
  "useLocation=" + s
2238
2243
  ];
2239
- i && i !== "" && !l && f.push("state=" + i), c && c !== "" && f.push("tolken=" + c), h && h !== "" && f.push("ip=" + h);
2240
- const M = f.join("&"), H = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2241
- return await C.makeSearchFetchCall(H);
2244
+ i && i !== "" && !l && H.push("state=" + i), c && c !== "" && H.push("tolken=" + c), d && d !== "" && H.push("ip=" + d);
2245
+ const M = H.join("&"), C = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2246
+ return await f.makeSearchFetchCall(C);
2242
2247
  }
2243
2248
  static removeElements(e) {
2244
2249
  document.querySelectorAll(e).forEach((t) => t == null ? void 0 : t.remove());
@@ -2257,7 +2262,7 @@ class C {
2257
2262
  });
2258
2263
  }
2259
2264
  static searchInStates(e) {
2260
- const t = C.getStates(), a = e.toLowerCase();
2265
+ const t = f.getStates(), a = e.toLowerCase();
2261
2266
  let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
2262
2267
  return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
2263
2268
  }
@@ -2265,7 +2270,7 @@ class C {
2265
2270
  typeof woopra == "object" && woopra.track(e, t);
2266
2271
  }
2267
2272
  static setBoundsEntries(e, t = "bounds") {
2268
- const a = C.getBoundsEntries(t);
2273
+ const a = f.getBoundsEntries(t);
2269
2274
  a.push(e), localStorage.setItem(t, JSON.stringify(a));
2270
2275
  }
2271
2276
  static async setCityState(e = null) {
@@ -2274,7 +2279,7 @@ class C {
2274
2279
  return e;
2275
2280
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
2276
2281
  let [a = null, n = null] = t.split(",").map((l) => l.trim());
2277
- if (C.getStates(), a && !n) {
2282
+ if (f.getStates(), a && !n) {
2278
2283
  const l = this.searchInStates(a);
2279
2284
  l && (a = null, n = l.short);
2280
2285
  }
@@ -2292,7 +2297,7 @@ class C {
2292
2297
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
2293
2298
  }
2294
2299
  static async setSearchValueClient(e, t = "recsSearchValue") {
2295
- localStorage.setItem(t, JSON.stringify(e)), await C.createData(`/api/cookie/create?name=${t}`, e);
2300
+ localStorage.setItem(t, JSON.stringify(e)), await f.createData(`/api/cookie/create?name=${t}`, e);
2296
2301
  }
2297
2302
  static stickyHeader(e = ".nav") {
2298
2303
  const t = document.querySelector(e);
@@ -2319,7 +2324,7 @@ class C {
2319
2324
  return t.charAt(0).toUpperCase() + t.slice(1);
2320
2325
  }
2321
2326
  static useLayerTitle(e, t) {
2322
- const a = C.getLayerTitle(e);
2327
+ const a = f.getLayerTitle(e);
2323
2328
  L.tileLayer(a, {
2324
2329
  maxNativeZoom: 19,
2325
2330
  maxZoom: 25,
@@ -2328,11 +2333,11 @@ class C {
2328
2333
  }).addTo(t);
2329
2334
  }
2330
2335
  static ucWords(e) {
2331
- return e ? e.toString().split(" ").map((t) => C.ucFirst(t)).join(" ") : null;
2336
+ return e ? e.toString().split(" ").map((t) => f.ucFirst(t)).join(" ") : null;
2332
2337
  }
2333
2338
  }
2334
- function V1(d, e = []) {
2335
- return new Proxy(d, {
2339
+ function V1(h, e = []) {
2340
+ return new Proxy(h, {
2336
2341
  get: function(t, a) {
2337
2342
  return t[a];
2338
2343
  },
@@ -2441,7 +2446,7 @@ export {
2441
2446
  b1 as Card,
2442
2447
  P1 as CardSlider,
2443
2448
  w1 as Checkbox,
2444
- C as Common,
2449
+ f as Common,
2445
2450
  x1 as Container,
2446
2451
  S1 as Dialog,
2447
2452
  k1 as DialogOld,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vehiclehistory/property-lib",
3
3
  "description": "Shared UI/Utility Library for Property Sites",
4
- "version": "0.0.30",
4
+ "version": "0.0.31",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/penguin-marketing/vh-recs-ui-library.git"