@vehiclehistory/property-lib 0.0.34 → 0.0.36

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.js CHANGED
@@ -1,10 +1,7 @@
1
- var P = Object.defineProperty;
2
- var R = (c, e, t) => e in c ? P(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
- var k = (c, e, t) => R(c, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsx as o, jsxs as g, Fragment as S } from "react/jsx-runtime";
5
- import { memo as y, useState as N, useEffect as Z, useRef as W } from "react";
6
- import p from "classnames";
7
- const U = {
1
+ import { jsx as o, jsxs as M, Fragment as S } from "react/jsx-runtime";
2
+ import { memo as y, useState as N, useEffect as z, useRef as q } from "react";
3
+ import u from "classnames";
4
+ const j = {
8
5
  xxSmall: "w-4 h-4",
9
6
  xSmall: "w-5 h-5",
10
7
  small: "w-6 h-6",
@@ -13,7 +10,7 @@ const U = {
13
10
  mediumPlus: "w-9 h-9",
14
11
  large: "w-10 h-10",
15
12
  xLarge: "w-12 h-12"
16
- }, Q = {
13
+ }, P = {
17
14
  account: {
18
15
  path: '<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />'
19
16
  },
@@ -476,23 +473,23 @@ const U = {
476
473
  chatBubble: {
477
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" />'
478
475
  }
479
- }, G = (c) => Q[c], J = ({
480
- color: c = "text-current",
476
+ }, R = (d) => P[d], W = ({
477
+ color: d = "text-current",
481
478
  className: e,
482
479
  name: t,
483
480
  size: a = "medium",
484
481
  viewBox: n = "0 0 20 20"
485
482
  }) => {
486
- const s = G(t), [r, l] = N(c), [i, d] = N(s);
487
- return Z(() => {
488
- d(s);
489
- }, [s]), Z(() => {
490
- l(c);
491
- }, [c]), !s && console.error("Icon does not exist", t), /* @__PURE__ */ o(
483
+ const l = R(t), [r, s] = N(d), [i, c] = N(l);
484
+ return z(() => {
485
+ c(l);
486
+ }, [l]), z(() => {
487
+ s(d);
488
+ }, [d]), !l && console.error("Icon does not exist", t), /* @__PURE__ */ o(
492
489
  "svg",
493
490
  {
494
491
  xmlns: "http://www.w3.org/2000/svg",
495
- className: `${U[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
492
+ className: `${j[a]} fill-current flex-shrink-0 ${r}${e ? ` ${e}` : ""}`,
496
493
  style: { maxWidth: "4em" },
497
494
  role: "presentation",
498
495
  viewBox: n,
@@ -501,36 +498,36 @@ const U = {
501
498
  }
502
499
  }
503
500
  );
504
- }, b = y(J), K = ({
505
- children: c,
501
+ }, x = y(W), U = ({
502
+ children: d,
506
503
  className: e,
507
504
  clickHandler: t,
508
505
  panelClass: a,
509
506
  title: n,
510
- unmount: s = !0,
507
+ unmount: l = !0,
511
508
  isOpen: r = !1
512
509
  }) => {
513
- const [l, i] = N(r);
514
- return /* @__PURE__ */ o("div", { className: p("shadow rounded-lg", e), children: /* @__PURE__ */ g(S, { children: [
515
- /* @__PURE__ */ g(
510
+ const [s, i] = N(r);
511
+ return /* @__PURE__ */ o("div", { className: u("shadow rounded-lg", e), children: /* @__PURE__ */ M(S, { children: [
512
+ /* @__PURE__ */ M(
516
513
  "button",
517
514
  {
518
515
  type: "button",
519
516
  "data-div-track": `report | accordion | ${n}`,
520
- className: p(
517
+ className: u(
521
518
  "acc-a 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",
522
519
  {
523
- "acc-o": l
520
+ "acc-o": s
524
521
  }
525
522
  ),
526
523
  title: n,
527
524
  onClick: () => {
528
- i(!l), t && t(!l);
525
+ i(!s), t && t(!s);
529
526
  },
530
527
  children: [
531
528
  /* @__PURE__ */ o("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: n }),
532
529
  /* @__PURE__ */ o("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ o(
533
- b,
530
+ x,
534
531
  {
535
532
  name: "chevronDown",
536
533
  size: "small",
@@ -540,38 +537,38 @@ const U = {
540
537
  ]
541
538
  }
542
539
  ),
543
- s && l && /* @__PURE__ */ o(
540
+ l && s && /* @__PURE__ */ o(
544
541
  "div",
545
542
  {
546
- className: p(
543
+ className: u(
547
544
  "acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
548
545
  a
549
546
  ),
550
- children: c
547
+ children: d
551
548
  }
552
549
  ),
553
- !s && /* @__PURE__ */ o(
550
+ !l && /* @__PURE__ */ o(
554
551
  "div",
555
552
  {
556
- className: p(
553
+ className: u(
557
554
  "acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
558
555
  a,
559
- { hidden: !l }
556
+ { hidden: !s }
560
557
  ),
561
- children: c
558
+ children: d
562
559
  }
563
560
  )
564
561
  ] }) });
565
- }, N1 = y(K), Y = ({
566
- children: c,
562
+ }, x1 = y(U), Q = ({
563
+ children: d,
567
564
  className: e = "",
568
565
  messages: t = [],
569
566
  title: a = "",
570
567
  titleClass: n = "",
571
- props: s = {},
568
+ props: l = {},
572
569
  type: r = "error"
573
570
  }) => {
574
- const l = {
571
+ const s = {
575
572
  error: {
576
573
  icon: "error",
577
574
  iconColor: "text-red-500",
@@ -592,74 +589,74 @@ const U = {
592
589
  iconColor: "text-yellow-500",
593
590
  styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
594
591
  }
595
- }, { icon: i, iconColor: d, styles: h } = l[r];
592
+ }, { icon: i, iconColor: c, styles: h } = s[r];
596
593
  return /* @__PURE__ */ o(
597
594
  "div",
598
595
  {
599
596
  id: r,
600
- className: p(
597
+ className: u(
601
598
  "rounded w-full py-2 px-4 mb-4 border",
602
599
  h,
603
600
  e
604
601
  ),
605
- ...s,
606
- children: /* @__PURE__ */ g("div", { className: "flex", children: [
602
+ ...l,
603
+ children: /* @__PURE__ */ M("div", { className: "flex", children: [
607
604
  /* @__PURE__ */ o("div", { className: "flex-shrink-0", children: /* @__PURE__ */ o(
608
- b,
605
+ x,
609
606
  {
610
607
  name: i,
611
608
  viewBox: "0 0 24 24",
612
- className: d,
609
+ className: c,
613
610
  size: "xSmall"
614
611
  }
615
612
  ) }),
616
- /* @__PURE__ */ g("div", { className: "ml-3", children: [
617
- /* @__PURE__ */ o("div", { className: p("font-medium text-sm", n), children: a }),
618
- 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, V) => /* @__PURE__ */ o("li", { children: u }, V)) }) }) : ""
613
+ /* @__PURE__ */ M("div", { className: "ml-3", children: [
614
+ /* @__PURE__ */ o("div", { className: u("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((p, V) => /* @__PURE__ */ o("li", { children: p }, V)) }) }) : ""
619
616
  ] })
620
617
  ] })
621
618
  }
622
619
  );
623
- }, E1 = y(Y), X = ({
624
- autoFocus: c = !1,
620
+ }, b1 = y(Q), G = ({
621
+ autoFocus: d = !1,
625
622
  required: e = !1,
626
623
  className: t = "",
627
624
  defaultValue: a = "",
628
625
  id: n = "",
629
- type: s,
626
+ type: l,
630
627
  floatingLabel: r = "",
631
- inputClass: l = "",
628
+ inputClass: s = "",
632
629
  leftIcon: i = "homeSearch",
633
- mobileBackdrop: d = !1,
630
+ mobileBackdrop: c = !1,
634
631
  showSearchIcon: h = !0,
635
- options: u = [],
632
+ options: p = [],
636
633
  name: V = "",
637
- placeholder: M = "",
634
+ placeholder: g = "",
638
635
  props: A = {},
639
636
  size: C = "medium",
640
637
  styles: m = null,
641
638
  title: H = ""
642
- }) => /* @__PURE__ */ g(
639
+ }) => /* @__PURE__ */ M(
643
640
  "div",
644
641
  {
645
642
  id: n,
646
643
  "data-search": "container",
647
- "data-search-type": s,
648
- className: p("Autocomplete", t),
644
+ "data-search-type": l,
645
+ className: u("Autocomplete", t),
649
646
  style: m ? { ...m } : null,
650
647
  children: [
651
- h && /* @__PURE__ */ g(
648
+ h && /* @__PURE__ */ M(
652
649
  "span",
653
650
  {
654
- className: p(
651
+ className: u(
655
652
  "search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
656
653
  {
657
- "pointer-events-none": d
654
+ "pointer-events-none": c
658
655
  }
659
656
  ),
660
657
  children: [
661
658
  /* @__PURE__ */ o(
662
- b,
659
+ x,
663
660
  {
664
661
  className: "home-search select-none text-gray-500",
665
662
  name: i,
@@ -668,7 +665,7 @@ const U = {
668
665
  }
669
666
  ),
670
667
  /* @__PURE__ */ o(
671
- b,
668
+ x,
672
669
  {
673
670
  className: "arrow-left select-none text-gray-500 hidden",
674
671
  name: "arrowLeft",
@@ -683,8 +680,8 @@ const U = {
683
680
  "input",
684
681
  {
685
682
  "data-lpignore": "true",
686
- autoFocus: c,
687
- className: p(
683
+ autoFocus: d,
684
+ className: u(
688
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",
689
686
  {
690
687
  "pl-8": h === !0,
@@ -693,12 +690,12 @@ const U = {
693
690
  "px-5 h-[60px] sm:!text-base": C === "xLarge",
694
691
  peer: r
695
692
  },
696
- l
693
+ s
697
694
  ),
698
695
  required: e,
699
696
  autoComplete: "off",
700
697
  value: a,
701
- placeholder: !M && r ? " " : M,
698
+ placeholder: !g && r ? " " : g,
702
699
  type: "search",
703
700
  name: V || "search-input",
704
701
  "data-id": "search-input",
@@ -708,7 +705,7 @@ const U = {
708
705
  r && /* @__PURE__ */ o(
709
706
  "label",
710
707
  {
711
- className: p(
708
+ className: u(
712
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",
713
710
  {
714
711
  "!left-7": h === !0,
@@ -726,7 +723,7 @@ const U = {
726
723
  "data-id": "search-clear",
727
724
  className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
728
725
  children: /* @__PURE__ */ o(
729
- b,
726
+ x,
730
727
  {
731
728
  className: "cursor-pointer text-gray-500",
732
729
  name: "xCircle",
@@ -742,7 +739,7 @@ const U = {
742
739
  "data-id": "search-loading",
743
740
  className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
744
741
  children: /* @__PURE__ */ o(
745
- b,
742
+ x,
746
743
  {
747
744
  className: "animate-spin text-[#222]] pointer-events-none",
748
745
  name: "spinnerDark",
@@ -752,7 +749,7 @@ const U = {
752
749
  )
753
750
  }
754
751
  ),
755
- /* @__PURE__ */ g(
752
+ /* @__PURE__ */ M(
756
753
  "div",
757
754
  {
758
755
  "data-id": "search-dropdown",
@@ -767,7 +764,7 @@ const U = {
767
764
  "data-title": H,
768
765
  "aria-labelledby": "Label",
769
766
  "aria-activedescendant": "search-item-0",
770
- children: u.length > 0 ? u.map((x, v) => /* @__PURE__ */ o(
767
+ children: p.length > 0 ? p.map((b, v) => /* @__PURE__ */ o(
771
768
  "li",
772
769
  {
773
770
  id: `search-item-${v}`,
@@ -775,7 +772,7 @@ const U = {
775
772
  className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
776
773
  "aria-selected": v === 0,
777
774
  role: "option",
778
- children: (x == null ? void 0 : x.name) || x
775
+ children: (b == null ? void 0 : b.name) || b
779
776
  },
780
777
  `search-item-${v}`
781
778
  )) : ""
@@ -786,15 +783,15 @@ const U = {
786
783
  )
787
784
  ]
788
785
  }
789
- ), B1 = X, _ = ({
790
- children: c,
786
+ ), w1 = G, J = ({
787
+ children: d,
791
788
  className: e,
792
789
  size: t = "sm",
793
790
  tag: a = "span"
794
791
  }) => /* @__PURE__ */ o(
795
792
  a || "span",
796
793
  {
797
- className: p(
794
+ className: u(
798
795
  " bg-gray-200 font-semibold py-1 px-2 rounded",
799
796
  {
800
797
  "text-sm": t === "sm",
@@ -803,128 +800,128 @@ const U = {
803
800
  },
804
801
  e
805
802
  ),
806
- children: c
803
+ children: d
807
804
  }
808
- ), D1 = _, e1 = ({
809
- borderless: c = !1,
805
+ ), S1 = J, K = ({
806
+ borderless: d = !1,
810
807
  leftIcon: e,
811
808
  leftIconProps: t = {},
812
809
  children: a,
813
810
  className: n = "",
814
- disabled: s = !1,
811
+ disabled: l = !1,
815
812
  href: r,
816
- props: l = {},
813
+ props: s = {},
817
814
  rightIcon: i,
818
- rightIconProps: d = {},
815
+ rightIconProps: c = {},
819
816
  rounded: h = !1,
820
- size: u = "md",
817
+ size: p = "md",
821
818
  type: V = "button",
822
- uppercase: M = !1,
819
+ uppercase: g = !1,
823
820
  variation: A = "primary"
824
821
  }) => {
825
822
  const C = r ? "a" : "button";
826
- return /* @__PURE__ */ g(
823
+ return /* @__PURE__ */ M(
827
824
  C,
828
825
  {
829
826
  type: C !== "a" ? V : null,
830
- className: p(
827
+ className: u(
831
828
  "Button",
832
829
  {
833
830
  [`Button--${A}`]: A,
834
- [`Button--${u}`]: u,
831
+ [`Button--${p}`]: p,
835
832
  "Button--rounded": h,
836
- "Button--disabled": s,
833
+ "Button--disabled": l,
837
834
  "Button--custom-link": r,
838
- "Button--uppercase": M,
839
- "Button--borderless": c || A === "link"
835
+ "Button--uppercase": g,
836
+ "Button--borderless": d || A === "link"
840
837
  },
841
838
  n
842
839
  ),
843
- disabled: s,
840
+ disabled: l,
844
841
  href: r,
845
- ...l,
842
+ ...s,
846
843
  children: [
847
844
  e && /* @__PURE__ */ o(
848
- b,
845
+ x,
849
846
  {
850
847
  name: e,
851
- size: u === "md" ? "small" : "xSmall",
848
+ size: p === "md" ? "small" : "xSmall",
852
849
  viewBox: "0 0 24 24",
853
850
  ...t
854
851
  }
855
852
  ),
856
853
  a,
857
854
  i && /* @__PURE__ */ o(
858
- b,
855
+ x,
859
856
  {
860
857
  name: i,
861
- size: u === "md" ? "small" : "xSmall",
858
+ size: p === "md" ? "small" : "xSmall",
862
859
  viewBox: "0 0 24 24",
863
- ...d
860
+ ...c
864
861
  }
865
862
  )
866
863
  ]
867
864
  }
868
865
  );
869
- }, B = y(e1), t1 = ({ children: c, className: e }) => /* @__PURE__ */ o("div", { className: p("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: c }), T1 = t1, a1 = ({
870
- block: c = !1,
866
+ }, E = y(K), Y = ({ children: d, className: e }) => /* @__PURE__ */ o("div", { className: u("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), k1 = Y, X = ({
867
+ block: d = !1,
871
868
  borderless: e = !1,
872
869
  children: t,
873
870
  className: a = "",
874
871
  divider: n = !0,
875
- inset: s = !0,
872
+ inset: l = !0,
876
873
  id: r = null,
877
- role: l = null
874
+ role: s = null
878
875
  }) => /* @__PURE__ */ o(
879
876
  "div",
880
877
  {
881
- className: p(
878
+ className: u(
882
879
  "bg-white",
883
880
  {
884
881
  f1: !e,
885
- f2: c,
882
+ f2: d,
886
883
  f3: n,
887
- f4: s
884
+ f4: l
888
885
  },
889
886
  a
890
887
  ),
891
888
  id: r,
892
- role: l,
889
+ role: s,
893
890
  children: t
894
891
  }
895
- ), $1 = a1, n1 = ({
896
- checked: c = !1,
892
+ ), z1 = X, _ = ({
893
+ checked: d = !1,
897
894
  children: e,
898
895
  className: t = "",
899
896
  error: a = !1,
900
897
  inputClass: n,
901
- id: s = "",
898
+ id: l = "",
902
899
  label: r = "",
903
- name: l = "",
900
+ name: s = "",
904
901
  props: i = {},
905
- variation: d = "primary",
902
+ variation: c = "primary",
906
903
  value: h = ""
907
904
  }) => {
908
- const u = r ? "div" : "label", V = u === "label" ? { htmlFor: s } : {};
909
- return /* @__PURE__ */ g(
910
- u,
905
+ const p = r ? "div" : "label", V = p === "label" ? { htmlFor: l } : {};
906
+ return /* @__PURE__ */ M(
907
+ p,
911
908
  {
912
- className: p("checkbox flex items-center", d, t),
909
+ className: u("checkbox flex items-center", c, t),
913
910
  ...V,
914
911
  children: [
915
912
  /* @__PURE__ */ o(
916
913
  "input",
917
914
  {
918
- checked: c,
919
- className: p(
915
+ checked: d,
916
+ className: u(
920
917
  "form-checkbox ",
921
918
  {
922
919
  "!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
923
920
  },
924
921
  n
925
922
  ),
926
- id: s,
927
- name: l,
923
+ id: l,
924
+ name: s,
928
925
  type: "checkbox",
929
926
  value: h,
930
927
  ...i
@@ -934,23 +931,23 @@ const U = {
934
931
  ]
935
932
  }
936
933
  );
937
- }, F1 = y(n1), s1 = ({ children: c, aside: e, direction: t = "right" }) => /* @__PURE__ */ g("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
934
+ }, N1 = y(_), e1 = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ M("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
938
935
  /* @__PURE__ */ o(
939
936
  "main",
940
937
  {
941
- className: p(
938
+ className: u(
942
939
  "w-full md:mb-0 flex-1 md:block lg:max-w-container",
943
940
  {
944
941
  "lg:order-2": t === "left"
945
942
  }
946
943
  ),
947
- children: c
944
+ children: d
948
945
  }
949
946
  ),
950
947
  /* @__PURE__ */ o(
951
948
  "aside",
952
949
  {
953
- className: p(
950
+ className: u(
954
951
  "sm-max:hidden md:hidden lg:block flex-1 max-w-aside mb-6 md:mb-0 empty:!hidden",
955
952
  {
956
953
  "md:ml-8": t === "right",
@@ -960,54 +957,54 @@ const U = {
960
957
  children: e
961
958
  }
962
959
  )
963
- ] }), I1 = y(s1), l1 = ({
964
- activator: c,
960
+ ] }), Z1 = y(e1), t1 = ({
961
+ activator: d,
965
962
  id: e = "",
966
963
  children: t,
967
964
  className: a = "",
968
965
  contentClass: n = "",
969
- dark: s = !1,
966
+ dark: l = !1,
970
967
  footer: r,
971
- fullMobile: l = !0,
968
+ fullMobile: s = !0,
972
969
  headerClass: i = "",
973
- hideClose: d = !1,
970
+ hideClose: c = !1,
974
971
  iconSize: h = "medium",
975
- preventPageScroll: u = !0,
972
+ preventPageScroll: p = !0,
976
973
  stickyHeader: V = !1,
977
- title: M = "",
974
+ title: g = "",
978
975
  titleClass: A = ""
979
- }) => /* @__PURE__ */ g(S, { children: [
980
- c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: c }),
976
+ }) => /* @__PURE__ */ M(S, { children: [
977
+ d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, children: d }),
981
978
  /* @__PURE__ */ o(
982
979
  "dialog",
983
980
  {
984
981
  inert: "",
985
982
  id: `${e}-dialog`,
986
- className: p(
983
+ className: u(
987
984
  "dialog",
988
985
  {
989
- "dialog-full-mobile": l,
990
- dark: s,
991
- "prevent-scroll": u
986
+ "dialog-full-mobile": s,
987
+ dark: l,
988
+ "prevent-scroll": p
992
989
  },
993
990
  a
994
991
  ),
995
- children: /* @__PURE__ */ g("form", { method: "dialog", children: [
996
- /* @__PURE__ */ g(
992
+ children: /* @__PURE__ */ M("form", { method: "dialog", children: [
993
+ /* @__PURE__ */ M(
997
994
  "header",
998
995
  {
999
- className: p(
996
+ className: u(
1000
997
  "dialog-header flex items-center p-4",
1001
998
  {
1002
999
  "sticky top-0 bg-white z-10": V,
1003
- "!pb-0 border-0 justify-end": !M,
1004
- "justify-between border-b": M
1000
+ "!pb-0 border-0 justify-end": !g,
1001
+ "justify-between border-b": g
1005
1002
  },
1006
1003
  i
1007
1004
  ),
1008
1005
  children: [
1009
- M && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: M }),
1010
- !d && /* @__PURE__ */ o(
1006
+ g && /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: A, children: g }),
1007
+ !c && /* @__PURE__ */ o(
1011
1008
  "button",
1012
1009
  {
1013
1010
  type: "button",
@@ -1016,7 +1013,7 @@ const U = {
1016
1013
  "data-dialog-close": "",
1017
1014
  value: "close",
1018
1015
  children: /* @__PURE__ */ o(
1019
- b,
1016
+ x,
1020
1017
  {
1021
1018
  name: "close",
1022
1019
  size: h,
@@ -1032,7 +1029,7 @@ const U = {
1032
1029
  "div",
1033
1030
  {
1034
1031
  id: `${e}-dialog-content`,
1035
- className: p("dialog-content", n),
1032
+ className: u("dialog-content", n),
1036
1033
  children: t
1037
1034
  }
1038
1035
  ),
@@ -1040,46 +1037,46 @@ const U = {
1040
1037
  ] })
1041
1038
  }
1042
1039
  )
1043
- ] }), O1 = y(l1), r1 = ({
1044
- activator: c,
1040
+ ] }), E1 = y(t1), a1 = ({
1041
+ activator: d,
1045
1042
  id: e = "",
1046
1043
  children: t,
1047
1044
  className: a = "",
1048
1045
  contentClass: n = "",
1049
- onClose: s,
1046
+ onClose: l,
1050
1047
  disableOutsideClick: r = !1,
1051
- footer: l,
1048
+ footer: s,
1052
1049
  fullMobile: i = !0,
1053
- headerClass: d = "",
1050
+ headerClass: c = "",
1054
1051
  hideClose: h = !1,
1055
- iconSize: u = "medium",
1052
+ iconSize: p = "medium",
1056
1053
  isOpen: V = !1,
1057
- setDialogOpen: M,
1054
+ setDialogOpen: g,
1058
1055
  stickyHeader: A = !1,
1059
1056
  title: C = "",
1060
1057
  titleClass: m = ""
1061
1058
  }) => {
1062
- const H = W(null), x = async () => {
1063
- H.current.classList.add("closing"), await $(H.current), H.current.classList.remove("closing"), s && s(), M(!1);
1059
+ const H = q(null), b = async () => {
1060
+ H.current.classList.add("closing"), await D(H.current), H.current.classList.remove("closing"), l && l(), g(!1);
1064
1061
  }, v = async (w) => {
1065
- w.key === "Escape" && await x();
1066
- }, E = async ({ clientX: w, clientY: z, target: F }) => {
1067
- const { left: I, right: O, top: q, bottom: j } = H.current.getBoundingClientRect() ?? {};
1068
- (!H.current.contains(F) || w < I || w > O || z < q || z > j) && await x();
1069
- }, $ = (w) => Promise.allSettled(
1070
- w.getAnimations().map((z) => z.finished)
1062
+ w.key === "Escape" && await b();
1063
+ }, Z = async ({ clientX: w, clientY: k, target: $ }) => {
1064
+ const { left: T, right: I, top: O, bottom: F } = H.current.getBoundingClientRect() ?? {};
1065
+ (!H.current.contains($) || w < T || w > I || k < O || k > F) && await b();
1066
+ }, D = (w) => Promise.allSettled(
1067
+ w.getAnimations().map((k) => k.finished)
1071
1068
  );
1072
- return Z(() => {
1069
+ return z(() => {
1073
1070
  const w = H.current;
1074
1071
  w && (V ? w.showModal() : typeof w.close == "function" && w.close());
1075
- }, [V]), /* @__PURE__ */ g(S, { children: [
1076
- c && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => M(!0), children: c }),
1077
- /* @__PURE__ */ g(
1072
+ }, [V]), /* @__PURE__ */ M(S, { children: [
1073
+ d && /* @__PURE__ */ o("span", { id: `${e}-dialog-activator`, onClick: () => g(!0), children: d }),
1074
+ /* @__PURE__ */ M(
1078
1075
  "dialog",
1079
1076
  {
1080
1077
  ref: H,
1081
1078
  id: `${e}-dialog`,
1082
- className: p(
1079
+ className: u(
1083
1080
  "dialog",
1084
1081
  {
1085
1082
  hidden: !V,
@@ -1088,15 +1085,15 @@ const U = {
1088
1085
  a
1089
1086
  ),
1090
1087
  onKeyDown: v,
1091
- onClick: (w) => r ? null : E(w),
1088
+ onClick: (w) => r ? null : Z(w),
1092
1089
  children: [
1093
- /* @__PURE__ */ g(
1090
+ /* @__PURE__ */ M(
1094
1091
  "header",
1095
1092
  {
1096
- className: p(
1093
+ className: u(
1097
1094
  "dialog-header flex items-center p-4",
1098
1095
  { "sticky top-0 bg-white": A },
1099
- d
1096
+ c
1100
1097
  ),
1101
1098
  children: [
1102
1099
  /* @__PURE__ */ o("h3", { id: `${e}-dialog-title`, className: m, children: C || "" }),
@@ -1107,12 +1104,12 @@ const U = {
1107
1104
  title: "Close",
1108
1105
  className: "dialog-close",
1109
1106
  "data-dialog-close": "",
1110
- onClick: x,
1107
+ onClick: b,
1111
1108
  children: /* @__PURE__ */ o(
1112
- b,
1109
+ x,
1113
1110
  {
1114
1111
  name: "close",
1115
- size: u,
1112
+ size: p,
1116
1113
  className: "pointer-events-none"
1117
1114
  }
1118
1115
  )
@@ -1125,23 +1122,23 @@ const U = {
1125
1122
  "div",
1126
1123
  {
1127
1124
  id: `${e}-dialog-content`,
1128
- className: p("dialog-content p-4", n),
1125
+ className: u("dialog-content p-4", n),
1129
1126
  children: t
1130
1127
  }
1131
1128
  ),
1132
- l && /* @__PURE__ */ o(
1129
+ s && /* @__PURE__ */ o(
1133
1130
  "footer",
1134
1131
  {
1135
1132
  id: `${e}-dialog-footer`,
1136
1133
  className: "dialog-footer flex justify-between items-center p-4 border-t",
1137
- children: l
1134
+ children: s
1138
1135
  }
1139
1136
  )
1140
1137
  ]
1141
1138
  }
1142
1139
  )
1143
1140
  ] });
1144
- }, q1 = y(r1), i1 = ({ className: c = "" }) => /* @__PURE__ */ g("div", { id: "dots", className: p("mx-auto", c), children: [
1141
+ }, B1 = y(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ M("div", { id: "dots", className: u("mx-auto", d), children: [
1145
1142
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.1s" } }),
1146
1143
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.2s" } }),
1147
1144
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.3s" } }),
@@ -1150,34 +1147,34 @@ const U = {
1150
1147
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.6s" } }),
1151
1148
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.7s" } }),
1152
1149
  /* @__PURE__ */ o("span", { style: { animationDelay: "0.8s" } })
1153
- ] }), j1 = i1, o1 = ({
1154
- cb: c,
1150
+ ] }), D1 = n1, l1 = ({
1151
+ cb: d,
1155
1152
  className: e = "",
1156
1153
  size: t = "md",
1157
1154
  timeout: a = 1e4,
1158
1155
  variation: n = "primary"
1159
1156
  }) => {
1160
- function s({ cb: r }) {
1161
- const l = document.querySelector(".loading-bar__inner");
1162
- if (!l) return;
1163
- let i, d, h = !1;
1164
- function u(V) {
1157
+ function l({ cb: r }) {
1158
+ const s = document.querySelector(".loading-bar__inner");
1159
+ if (!s) return;
1160
+ let i, c, h = !1;
1161
+ function p(V) {
1165
1162
  i === void 0 && (i = V);
1166
- const M = V - i;
1167
- if (d !== V) {
1168
- const A = M / a * 101;
1169
- l.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(V));
1163
+ const g = V - i;
1164
+ if (c !== V) {
1165
+ const A = g / a * 101;
1166
+ s.style.width = `${A}%`, A >= 101 && (r && r(), h = !0, window.cancelAnimationFrame(V));
1170
1167
  }
1171
- M < a && (d = V, h || window.requestAnimationFrame(u));
1168
+ g < a && (c = V, h || window.requestAnimationFrame(p));
1172
1169
  }
1173
- window.requestAnimationFrame(u);
1170
+ window.requestAnimationFrame(p);
1174
1171
  }
1175
- return Z(() => {
1176
- s({ cb: c });
1172
+ return z(() => {
1173
+ l({ cb: d });
1177
1174
  }, []), /* @__PURE__ */ o(
1178
1175
  "div",
1179
1176
  {
1180
- className: p(
1177
+ className: u(
1181
1178
  "loading-bar my-8",
1182
1179
  `loading-bar__${n}`,
1183
1180
  {
@@ -1191,37 +1188,37 @@ const U = {
1191
1188
  children: /* @__PURE__ */ o("div", { className: "loading-bar__inner", "data-size": "100" })
1192
1189
  }
1193
1190
  );
1194
- }, P1 = y(o1), c1 = {
1191
+ }, $1 = y(l1), s1 = {
1195
1192
  name: "spinnerDark",
1196
1193
  color: "text-teal-700",
1197
1194
  viewBox: "0 0 24 24"
1198
- }, d1 = ({ className: c = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1199
- b,
1195
+ }, r1 = ({ className: d = "" }) => /* @__PURE__ */ o("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ o(
1196
+ x,
1200
1197
  {
1201
1198
  size: "xSmall",
1202
- ...c1,
1203
- className: `animate-spin ${c}`
1199
+ ...s1,
1200
+ className: `animate-spin ${d}`
1204
1201
  }
1205
- ) }), R1 = y(d1), h1 = ({
1206
- activator: c,
1202
+ ) }), T1 = y(r1), i1 = ({
1203
+ activator: d,
1207
1204
  activatorClass: e = "",
1208
1205
  attrs: t = {},
1209
1206
  options: a = {},
1210
1207
  children: n,
1211
- className: s = "",
1208
+ className: l = "",
1212
1209
  containerClass: r = "",
1213
- disabled: l = !1,
1210
+ disabled: s = !1,
1214
1211
  id: i = "",
1215
- trigger: d = "click"
1216
- }) => /* @__PURE__ */ g(S, { children: [
1212
+ trigger: c = "click"
1213
+ }) => /* @__PURE__ */ M(S, { children: [
1217
1214
  /* @__PURE__ */ o(
1218
1215
  "div",
1219
1216
  {
1220
- className: p("popover z-10 max-w-[350px] hidden", s),
1221
- children: /* @__PURE__ */ g(
1217
+ className: u("popover z-10 max-w-[350px] hidden", l),
1218
+ children: /* @__PURE__ */ M(
1222
1219
  "div",
1223
1220
  {
1224
- className: p(
1221
+ className: u(
1225
1222
  "popover-container rounded border bg-gray-50 border-gray-300 shadow-md text-gray-500 animate-menu-close",
1226
1223
  r
1227
1224
  ),
@@ -1242,38 +1239,38 @@ const U = {
1242
1239
  /* @__PURE__ */ o(
1243
1240
  "div",
1244
1241
  {
1245
- className: p(
1242
+ className: u(
1246
1243
  "popover-activator",
1247
- `trigger-${d}`,
1248
- l ? "is-disabled" : "",
1244
+ `trigger-${c}`,
1245
+ s ? "is-disabled" : "",
1249
1246
  e
1250
1247
  ),
1251
1248
  ...t,
1252
1249
  "data-options": JSON.stringify(a),
1253
- children: c
1250
+ children: d
1254
1251
  }
1255
1252
  )
1256
- ] }), W1 = h1, u1 = ({
1257
- ariaValuemax: c = 100,
1253
+ ] }), I1 = i1, o1 = ({
1254
+ ariaValuemax: d = 100,
1258
1255
  ariaValuemin: e = 0,
1259
1256
  bgColor: t = "bg-orange-500",
1260
1257
  className: a,
1261
1258
  completed: n = 0,
1262
- maxCompleted: s = 100,
1259
+ maxCompleted: l = 100,
1263
1260
  rounded: r = !0,
1264
- showLabel: l = !1
1261
+ showLabel: s = !1
1265
1262
  }) => {
1266
- const d = ((h, u) => {
1263
+ const c = ((h, p) => {
1267
1264
  if (h) {
1268
- const V = Number(u) / h;
1265
+ const V = Number(p) / h;
1269
1266
  return V > 1 ? 100 : V * 100;
1270
1267
  }
1271
1268
  return n;
1272
- })(s, n);
1269
+ })(l, n);
1273
1270
  return /* @__PURE__ */ o(
1274
1271
  "div",
1275
1272
  {
1276
- className: p(
1273
+ className: u(
1277
1274
  "w-full bg-gray-200",
1278
1275
  { "rounded-full": r },
1279
1276
  a
@@ -1282,50 +1279,50 @@ const U = {
1282
1279
  "aria-label": "Progress Bar",
1283
1280
  "aria-valuenow": n,
1284
1281
  "aria-valuemin": e,
1285
- "aria-valuemax": c,
1282
+ "aria-valuemax": d,
1286
1283
  children: /* @__PURE__ */ o(
1287
1284
  "div",
1288
1285
  {
1289
- className: p(
1286
+ className: u(
1290
1287
  "h-full text-right flex items-center justify-end rounded-full",
1291
1288
  t
1292
1289
  ),
1293
- style: { width: `${d}%` },
1294
- children: l && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(d) })
1290
+ style: { width: `${c}%` },
1291
+ children: s && /* @__PURE__ */ o("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(c) })
1295
1292
  }
1296
1293
  )
1297
1294
  }
1298
1295
  );
1299
- }, U1 = y(u1), p1 = ({
1300
- checked: c = !1,
1296
+ }, O1 = y(o1), c1 = ({
1297
+ checked: d = !1,
1301
1298
  children: e,
1302
1299
  className: t = "",
1303
1300
  id: a = "",
1304
1301
  label: n = "",
1305
- name: s = "",
1302
+ name: l = "",
1306
1303
  props: r = {},
1307
- variation: l = "primary",
1304
+ variation: s = "primary",
1308
1305
  value: i = ""
1309
1306
  }) => {
1310
- const d = n ? "div" : "label", h = d === "label" ? { htmlFor: a } : {};
1311
- return /* @__PURE__ */ g(
1312
- d,
1307
+ const c = n ? "div" : "label", h = c === "label" ? { htmlFor: a } : {};
1308
+ return /* @__PURE__ */ M(
1309
+ c,
1313
1310
  {
1314
- className: p("radio flex items-center", t),
1311
+ className: u("radio flex items-center", t),
1315
1312
  ...h,
1316
1313
  children: [
1317
1314
  /* @__PURE__ */ o(
1318
1315
  "input",
1319
1316
  {
1320
- checked: c,
1321
- className: p(
1317
+ checked: d,
1318
+ className: u(
1322
1319
  "form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
1323
1320
  {
1324
- "focus:ring-[#222]": l === "primary"
1321
+ "focus:ring-[#222]": s === "primary"
1325
1322
  }
1326
1323
  ),
1327
1324
  id: a,
1328
- name: s,
1325
+ name: l,
1329
1326
  type: "radio",
1330
1327
  value: i,
1331
1328
  ...r
@@ -1335,46 +1332,46 @@ const U = {
1335
1332
  ]
1336
1333
  }
1337
1334
  );
1338
- }, Q1 = y(p1), m1 = ({
1339
- children: c,
1335
+ }, F1 = y(c1), d1 = ({
1336
+ children: d,
1340
1337
  className: e = "",
1341
1338
  error: t = !1,
1342
1339
  errorMessage: a = "",
1343
1340
  id: n = "",
1344
- label: s = "",
1341
+ label: l = "",
1345
1342
  name: r = "",
1346
- options: l = [],
1343
+ options: s = [],
1347
1344
  placeholder: i = "",
1348
- props: d = {},
1345
+ props: c = {},
1349
1346
  selectClass: h = "",
1350
- styles: u = null,
1347
+ styles: p = null,
1351
1348
  variation: V = "primary",
1352
- value: M
1349
+ value: g
1353
1350
  }) => {
1354
1351
  const A = i ? { defaultValue: "" } : {};
1355
- return /* @__PURE__ */ g(
1352
+ return /* @__PURE__ */ M(
1356
1353
  "label",
1357
1354
  {
1358
- className: p("relative select", e, V),
1359
- style: u ? { ...u } : null,
1355
+ className: u("relative select", e, V),
1356
+ style: p ? { ...p } : null,
1360
1357
  children: [
1361
- s,
1362
- /* @__PURE__ */ g(
1358
+ l,
1359
+ /* @__PURE__ */ M(
1363
1360
  "select",
1364
1361
  {
1365
- className: p(
1362
+ className: u(
1366
1363
  "form-select relative bg-white pl-3 pr-10 text-left cursor-default",
1367
1364
  t ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
1368
1365
  h
1369
1366
  ),
1370
1367
  id: n,
1371
1368
  name: r,
1372
- value: M,
1369
+ value: g,
1373
1370
  ...A,
1374
- ...d,
1371
+ ...c,
1375
1372
  children: [
1376
1373
  i && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: i }),
1377
- l.map((C, m) => /* @__PURE__ */ o(
1374
+ s.map((C, m) => /* @__PURE__ */ o(
1378
1375
  "option",
1379
1376
  {
1380
1377
  value: (C == null ? void 0 : C.id) || (C == null ? void 0 : C.value) || C,
@@ -1389,25 +1386,25 @@ const U = {
1389
1386
  ]
1390
1387
  }
1391
1388
  );
1392
- }, G1 = y(m1), V1 = ({ className: c = "" }) => /* @__PURE__ */ g(
1389
+ }, q1 = y(d1), h1 = ({ className: d = "" }) => /* @__PURE__ */ M(
1393
1390
  "div",
1394
1391
  {
1395
- className: p(
1392
+ className: u(
1396
1393
  "flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
1397
- c
1394
+ d
1398
1395
  ),
1399
1396
  children: [
1400
- /* @__PURE__ */ o(b, { size: "xLarge", name: "map", className: "mx-auto" }),
1397
+ /* @__PURE__ */ o(x, { size: "xLarge", name: "map", className: "mx-auto" }),
1401
1398
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
1402
1399
  ]
1403
1400
  }
1404
- ), J1 = y(V1), H1 = ({
1405
- placeholderClass: c = "",
1401
+ ), j1 = y(h1), u1 = ({
1402
+ placeholderClass: d = "",
1406
1403
  children: e,
1407
1404
  className: t = "",
1408
1405
  id: a = 1,
1409
1406
  padding: n = !0
1410
- }) => /* @__PURE__ */ g("div", { className: p("slider", t), id: `slider-${a}`, children: [
1407
+ }) => /* @__PURE__ */ M("div", { className: u("slider", t), id: `slider-${a}`, children: [
1411
1408
  /* @__PURE__ */ o(
1412
1409
  "button",
1413
1410
  {
@@ -1415,13 +1412,13 @@ const U = {
1415
1412
  id: `btn-left-${a}`,
1416
1413
  type: "button",
1417
1414
  className: "slider-button__prev ",
1418
- children: /* @__PURE__ */ o(b, { name: "chevronLeft" })
1415
+ children: /* @__PURE__ */ o(x, { name: "chevronLeft" })
1419
1416
  }
1420
1417
  ),
1421
- /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (s, r) => /* @__PURE__ */ o(
1418
+ /* @__PURE__ */ o("div", { id: `slider-container-${a}`, className: "slider-container", children: Array.from({ length: 4 }, (l, r) => /* @__PURE__ */ o(
1422
1419
  "div",
1423
1420
  {
1424
- className: `slider-card bg-gray-200 animate-pulse ${c}`,
1421
+ className: `slider-card bg-gray-200 animate-pulse ${d}`,
1425
1422
  children: /* @__PURE__ */ o("div", { className: `slider-card-action ${n ? "p-4" : ""}`, children: e })
1426
1423
  },
1427
1424
  r
@@ -1433,11 +1430,11 @@ const U = {
1433
1430
  id: `btn-right-${a}`,
1434
1431
  type: "button",
1435
1432
  className: "slider-button__next",
1436
- children: /* @__PURE__ */ o(b, { name: "chevronRight" })
1433
+ children: /* @__PURE__ */ o(x, { name: "chevronRight" })
1437
1434
  }
1438
1435
  )
1439
- ] }), K1 = y(H1), C1 = ({
1440
- className: c = "",
1436
+ ] }), P1 = y(u1), p1 = ({
1437
+ className: d = "",
1441
1438
  value: e
1442
1439
  }) => {
1443
1440
  const t = {
@@ -1446,38 +1443,38 @@ const U = {
1446
1443
  return /* @__PURE__ */ o(
1447
1444
  "div",
1448
1445
  {
1449
- className: p(
1446
+ className: u(
1450
1447
  'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
1451
- c
1448
+ d
1452
1449
  ),
1453
1450
  style: t
1454
1451
  }
1455
1452
  );
1456
- }, Y1 = C1, L1 = ({
1457
- className: c = "",
1453
+ }, R1 = p1, m1 = ({
1454
+ className: d = "",
1458
1455
  clear: e = !1,
1459
1456
  error: t = !1,
1460
1457
  errorMessage: a = "",
1461
1458
  id: n = "",
1462
- inputClass: s = "",
1459
+ inputClass: l = "",
1463
1460
  name: r = "",
1464
- placeholder: l = "",
1461
+ placeholder: s = "",
1465
1462
  props: i = {},
1466
- rows: d = 4,
1463
+ rows: c = 4,
1467
1464
  variation: h = "primary"
1468
- }) => /* @__PURE__ */ g("div", { className: p("relative textarea", h, c), children: [
1465
+ }) => /* @__PURE__ */ M("div", { className: u("relative textarea", h, d), children: [
1469
1466
  /* @__PURE__ */ o(
1470
1467
  "textarea",
1471
1468
  {
1472
- placeholder: l,
1469
+ placeholder: s,
1473
1470
  id: n,
1474
1471
  name: r,
1475
- rows: d,
1476
- className: p(
1472
+ rows: c,
1473
+ className: u(
1477
1474
  "form-textarea min-h-[40px] pl-4",
1478
1475
  e ? "pr-10" : "pr-4",
1479
1476
  t ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
1480
- s
1477
+ l
1481
1478
  ),
1482
1479
  ...i
1483
1480
  }
@@ -1488,7 +1485,7 @@ const U = {
1488
1485
  id: `${n}-clear`,
1489
1486
  className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
1490
1487
  children: /* @__PURE__ */ o(
1491
- b,
1488
+ x,
1492
1489
  {
1493
1490
  size: "xSmall",
1494
1491
  name: "xCircle",
@@ -1498,29 +1495,29 @@ const U = {
1498
1495
  }
1499
1496
  ),
1500
1497
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1501
- ] }), f1 = y(L1), M1 = ({
1502
- className: c = "",
1498
+ ] }), V1 = y(m1), H1 = ({
1499
+ className: d = "",
1503
1500
  clear: e = !1,
1504
1501
  error: t = !1,
1505
1502
  errorMessage: a = "",
1506
1503
  iconLeft: n = "",
1507
- id: s = "",
1504
+ id: l = "",
1508
1505
  inputClass: r = "",
1509
- name: l = "",
1506
+ name: s = "",
1510
1507
  placeholder: i = "",
1511
- props: d = {},
1508
+ props: c = {},
1512
1509
  styles: h = null,
1513
- type: u = "text",
1510
+ type: p = "text",
1514
1511
  value: V,
1515
- variation: M = "primary"
1516
- }) => /* @__PURE__ */ g(
1512
+ variation: g = "primary"
1513
+ }) => /* @__PURE__ */ M(
1517
1514
  "div",
1518
1515
  {
1519
- className: p("relative textbox", M, c),
1516
+ className: u("relative textbox", g, d),
1520
1517
  style: h ? { ...h } : null,
1521
1518
  children: [
1522
1519
  n && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ o(
1523
- b,
1520
+ x,
1524
1521
  {
1525
1522
  size: "xSmall",
1526
1523
  name: n,
@@ -1532,31 +1529,31 @@ const U = {
1532
1529
  "input",
1533
1530
  {
1534
1531
  placeholder: i,
1535
- id: s,
1536
- name: l,
1537
- type: u,
1532
+ id: l,
1533
+ name: s,
1534
+ type: p,
1538
1535
  value: V,
1539
1536
  autoComplete: "off",
1540
- className: p(
1537
+ className: u(
1541
1538
  "form-input",
1542
1539
  e ? "pr-10" : "pr-4",
1543
1540
  n ? "pl-8" : "pl-4",
1544
1541
  {
1545
1542
  "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": t
1546
1543
  },
1547
- d.inputClass ?? "",
1544
+ c.inputClass ?? "",
1548
1545
  r
1549
1546
  ),
1550
- ...d
1547
+ ...c
1551
1548
  }
1552
1549
  ),
1553
1550
  e && /* @__PURE__ */ o(
1554
1551
  "div",
1555
1552
  {
1556
- id: `${s}-clear`,
1553
+ id: `${l}-clear`,
1557
1554
  className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
1558
1555
  children: /* @__PURE__ */ o(
1559
- b,
1556
+ x,
1560
1557
  {
1561
1558
  size: "xSmall",
1562
1559
  name: "xCircle",
@@ -1568,22 +1565,22 @@ const U = {
1568
1565
  a && /* @__PURE__ */ o("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1569
1566
  ]
1570
1567
  }
1571
- ), D = y(M1), g1 = ({
1572
- btnClass: c,
1568
+ ), B = y(H1), L1 = ({
1569
+ btnClass: d,
1573
1570
  className: e = "",
1574
1571
  containerClass: t,
1575
1572
  customSuccessMsg: a = "",
1576
1573
  title: n = "Send A Message",
1577
- titleClass: s,
1574
+ titleClass: l,
1578
1575
  uppercase: r = !0
1579
1576
  }) => {
1580
- const l = a || /* @__PURE__ */ g(S, { children: [
1577
+ const s = a || /* @__PURE__ */ M(S, { children: [
1581
1578
  "Typical email response time is 2-3 hours. If you require immediate assistance you may use our",
1582
1579
  " ",
1583
1580
  /* @__PURE__ */ o(
1584
- B,
1581
+ E,
1585
1582
  {
1586
- className: p(
1583
+ className: u(
1587
1584
  "text-black-900 items-center gap-2 live-chat uppercase !inline-flex"
1588
1585
  ),
1589
1586
  variation: "link",
@@ -1594,66 +1591,66 @@ const U = {
1594
1591
  }
1595
1592
  )
1596
1593
  ] });
1597
- return /* @__PURE__ */ g(
1594
+ return /* @__PURE__ */ M(
1598
1595
  "form",
1599
1596
  {
1600
1597
  id: "contactForm",
1601
- className: p("contact-form", t, {
1598
+ className: u("contact-form", t, {
1602
1599
  uppercase: r
1603
1600
  }),
1604
1601
  children: [
1605
- /* @__PURE__ */ o("h2", { id: "contact-title", className: p("mb-4", s), children: n }),
1606
- /* @__PURE__ */ o("p", { className: "contact-form__msg", children: l }),
1607
- /* @__PURE__ */ g(
1602
+ /* @__PURE__ */ o("h2", { id: "contact-title", className: u("mb-4", l), children: n }),
1603
+ /* @__PURE__ */ o("p", { className: "contact-form__msg", children: s }),
1604
+ /* @__PURE__ */ M(
1608
1605
  "div",
1609
1606
  {
1610
- className: p(
1607
+ className: u(
1611
1608
  "p-6 bg-gray-100 flex flex-col gap-y-3 max-w-[458px]",
1612
1609
  e
1613
1610
  ),
1614
1611
  children: [
1615
1612
  /* @__PURE__ */ o(
1616
- D,
1613
+ B,
1617
1614
  {
1618
1615
  id: "contact-name",
1619
1616
  name: "contact-name",
1620
1617
  placeholder: "Name",
1621
- inputClass: p({
1618
+ inputClass: u({
1622
1619
  "placeholder:uppercase": r
1623
1620
  })
1624
1621
  }
1625
1622
  ),
1626
1623
  /* @__PURE__ */ o(
1627
- D,
1624
+ B,
1628
1625
  {
1629
1626
  id: "contact-email",
1630
1627
  name: "contact-email",
1631
1628
  placeholder: "Email",
1632
- inputClass: p({
1629
+ inputClass: u({
1633
1630
  "placeholder:uppercase": r
1634
1631
  })
1635
1632
  }
1636
1633
  ),
1637
1634
  /* @__PURE__ */ o(
1638
- f1,
1635
+ V1,
1639
1636
  {
1640
1637
  id: "contact-message",
1641
1638
  name: "contact-message",
1642
1639
  placeholder: "Message",
1643
- inputClass: p({
1640
+ inputClass: u({
1644
1641
  "placeholder:uppercase": r
1645
1642
  })
1646
1643
  }
1647
1644
  ),
1648
1645
  /* @__PURE__ */ o(
1649
- B,
1646
+ E,
1650
1647
  {
1651
- className: p(
1648
+ className: u(
1652
1649
  "flex mx-auto items-center",
1653
1650
  {
1654
1651
  uppercase: r
1655
1652
  },
1656
- c
1653
+ d
1657
1654
  ),
1658
1655
  props: { title: "Submit" },
1659
1656
  type: "submit",
@@ -1666,60 +1663,101 @@ const U = {
1666
1663
  ]
1667
1664
  }
1668
1665
  );
1669
- }, X1 = y(g1), v1 = ({ children: c, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1666
+ }, W1 = y(L1), C1 = ({
1667
+ block: d = !1,
1668
+ children: e,
1669
+ className: t,
1670
+ contentClass: a,
1671
+ footerClass: n,
1672
+ footerContent: l,
1673
+ headerContent: r,
1674
+ headerClass: s,
1675
+ list: i = !1,
1676
+ props: c = {},
1677
+ variation: h = "primary"
1678
+ }) => {
1679
+ const p = i ? "ul" : "div";
1680
+ return /* @__PURE__ */ M(
1681
+ "div",
1682
+ {
1683
+ className: u(
1684
+ "content-card",
1685
+ { "content-card--block": d },
1686
+ `content-card--${h}`,
1687
+ t
1688
+ ),
1689
+ ...c,
1690
+ children: [
1691
+ r && /* @__PURE__ */ o("div", { className: u("content-card__header", s), children: typeof r == "string" ? /* @__PURE__ */ o("h3", { children: r }) : r }),
1692
+ /* @__PURE__ */ o(
1693
+ p,
1694
+ {
1695
+ className: u("content-card__content", a),
1696
+ role: i ? "list" : null,
1697
+ children: e
1698
+ }
1699
+ ),
1700
+ l && /* @__PURE__ */ o("div", { className: u("content-card__footer", n), children: l })
1701
+ ]
1702
+ }
1703
+ );
1704
+ }, U1 = y(C1), f1 = ({
1705
+ children: d,
1706
+ className: e
1707
+ }) => /* @__PURE__ */ o("li", { className: u("stacked-list", e), children: d }), Q1 = f1, M1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ o(
1670
1708
  t,
1671
1709
  {
1672
- className: p(
1710
+ className: u(
1673
1711
  "!text-xl text-center mb-6 flex items-center justify-center",
1674
1712
  e
1675
1713
  ),
1676
- children: a || c
1714
+ children: a || d
1677
1715
  }
1678
- ), _1 = y(v1);
1679
- function A1(c, e = []) {
1680
- return new Proxy(c, {
1716
+ ), G1 = y(M1);
1717
+ function g1(d, e = []) {
1718
+ return new Proxy(d, {
1681
1719
  get: function(t, a) {
1682
1720
  return t[a];
1683
1721
  },
1684
1722
  set(t, a, n) {
1685
- const s = { ...t };
1686
- return t[a] = n, e.length > 0 && e.forEach((r) => r(t, s, a)), t;
1723
+ const l = { ...t };
1724
+ return t[a] = n, e.length > 0 && e.forEach((r) => r(t, l, a)), t;
1687
1725
  }
1688
1726
  });
1689
1727
  }
1690
- function T(c, e = []) {
1691
- e.length && (c == null || c.classList.add(...e));
1728
+ function J1(d, e = []) {
1729
+ e.length && (d == null || d.classList.add(...e));
1692
1730
  }
1693
- function y1(c, e = []) {
1694
- e.length && (c == null || c.classList.remove(...e));
1731
+ function K1(d, e = []) {
1732
+ e.length && (d == null || d.classList.remove(...e));
1695
1733
  }
1696
- function b1({ cb: c, form: e, formData: t, validations: a, reactive: n = !1 }) {
1697
- let s = !0;
1698
- for (const [r, l] of t.entries()) {
1699
- const i = e.querySelector(`[name="${r}"]`), d = a[r], h = [];
1700
- d.forEach((u) => {
1701
- u.isValid(l) || h.push(u.message);
1702
- }), h.length ? (s = !1, i.classList.add("field-error"), c && c({ isValid: s, field: i, validations: a })) : (i.classList.remove("field-error"), c && c({ isValid: !0, field: i, validations: a })), n && (i == null || i.addEventListener("input", (u) => {
1703
- u.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
1734
+ function Y1({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
1735
+ let l = !0;
1736
+ for (const [r, s] of t.entries()) {
1737
+ const i = e.querySelector(`[name="${r}"]`), c = a[r], h = [];
1738
+ c.forEach((p) => {
1739
+ p.isValid(s) || h.push(p.message);
1740
+ }), h.length ? (l = !1, i.classList.add("field-error"), d && d({ isValid: l, field: i, validations: a })) : (i.classList.remove("field-error"), d && d({ isValid: !0, field: i, validations: a })), n && (i == null || i.addEventListener("input", (p) => {
1741
+ p.preventDefault(), i.classList.contains("field-error") && i.classList.remove("field-error");
1704
1742
  }));
1705
1743
  }
1706
- return s;
1744
+ return l;
1707
1745
  }
1708
- function x1(c) {
1746
+ function X1(d) {
1709
1747
  const e = (
1710
1748
  // eslint-disable-next-line
1711
1749
  /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/
1712
1750
  ), t = /[^a-zA-Z]+$/;
1713
- return e.test(c.toLowerCase()) && !t.test(c);
1751
+ return e.test(d.toLowerCase()) && !t.test(d);
1714
1752
  }
1715
- class e2 {
1753
+ class _1 {
1716
1754
  init(e) {
1717
1755
  this.handleSliders(e);
1718
1756
  }
1719
1757
  handleSliders({ items: e, id: t = 1, cb: a }) {
1720
1758
  if (!document.getElementById(`slider-container-${t}`))
1721
1759
  return;
1722
- const n = A1(
1760
+ const n = g1(
1723
1761
  {
1724
1762
  activeIndex: 0,
1725
1763
  computedSlides: [],
@@ -1745,8 +1783,8 @@ class e2 {
1745
1783
  initObserver(e) {
1746
1784
  var t, a;
1747
1785
  e.observer || (e.observer = new IntersectionObserver(
1748
- (n, s) => {
1749
- this.handleIntersect(n, s, e);
1786
+ (n, l) => {
1787
+ this.handleIntersect(n, l, e);
1750
1788
  },
1751
1789
  {
1752
1790
  root: (t = e.container) == null ? void 0 : t.offsetParent
@@ -1754,16 +1792,16 @@ class e2 {
1754
1792
  )), e.slides = [...(a = e.container) == null ? void 0 : a.children], e.slides.forEach((n) => e.observer.observe(n));
1755
1793
  }
1756
1794
  handleIntersect(e, t, a) {
1757
- const n = e.filter((i) => i.isIntersecting), s = n.length === a.slides.length, r = n.every(
1795
+ const n = e.filter((i) => i.isIntersecting), l = n.length === a.slides.length, r = n.every(
1758
1796
  (i) => i.isIntersecting === !0
1759
1797
  );
1760
- s && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
1761
- const d = [...a.slides].indexOf(i.target);
1762
- i.target === a.slides[0] && (a.showPrevBtn = i.isIntersecting), i.target === a.slides[a.slides.length - 1] && (a.showNextBtn = i.isIntersecting), i.target === a.slides[2] && (a.scrollToStart = i.isIntersecting), i.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = i.isIntersecting), i.isIntersecting && !a.entriesIntersected.includes(d) && (a.entriesIntersected.push(d), a.activeIndex = d, l(i));
1798
+ l && r ? t.disconnect() : (a.disableBtns = !1, e.forEach((i) => {
1799
+ const c = [...a.slides].indexOf(i.target);
1800
+ i.target === a.slides[0] && (a.showPrevBtn = i.isIntersecting), i.target === a.slides[a.slides.length - 1] && (a.showNextBtn = i.isIntersecting), i.target === a.slides[2] && (a.scrollToStart = i.isIntersecting), i.target === a.slides[a.slides.length - 2] && (a.scrollToEnd = i.isIntersecting), i.isIntersecting && !a.entriesIntersected.includes(c) && (a.entriesIntersected.push(c), a.activeIndex = c, s(i));
1763
1801
  }));
1764
- function l(i) {
1765
- var d;
1766
- i.target !== a.slides[a.slides.length - 1] && i.target !== a.slides[0] && i.target !== a.slides[2] && i.target !== a.slides[a.slides.length - 2] && ((d = a.observer) == null || d.unobserve(i.target));
1802
+ function s(i) {
1803
+ var c;
1804
+ i.target !== a.slides[a.slides.length - 1] && i.target !== a.slides[0] && i.target !== a.slides[2] && i.target !== a.slides[a.slides.length - 2] && ((c = a.observer) == null || c.unobserve(i.target));
1767
1805
  }
1768
1806
  }
1769
1807
  btnListeners(e) {
@@ -1782,7 +1820,7 @@ class e2 {
1782
1820
  e.scrollToEnd ? e.transition = n : e.transition += e.slides[1].offsetWidth + 12, e.container.style.transform = `translate3d(${-e.transition}px, 0, 0)`;
1783
1821
  }
1784
1822
  sliderElements({ state: e, items: t, id: a, cb: n }) {
1785
- const s = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
1823
+ const l = '<span class="slide-first"></span>', r = '<span class="slide-last"></span>';
1786
1824
  if (e.container = document.getElementById(`slider-container-${a}`), !e.container)
1787
1825
  return console.error(`slider-container-${a} Not Found`);
1788
1826
  e.prevBtn = e.container.parentElement.querySelector(
@@ -1790,8 +1828,8 @@ class e2 {
1790
1828
  ), e.nextBtn = e.container.parentElement.querySelector(
1791
1829
  `#btn-right-${a}`
1792
1830
  );
1793
- const l = t.map((d) => n(d)).join(""), i = document.createElement("div");
1794
- i.innerHTML = `${s}${l}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
1831
+ const s = t.map((c) => n(c)).join(""), i = document.createElement("div");
1832
+ i.innerHTML = `${l}${s}${r}`, e.container.replaceChildren(...i.children), e.container.parentElement.classList.add("loaded");
1795
1833
  }
1796
1834
  showHideBtns(e, t, a) {
1797
1835
  if (a === "showPrevBtn" || a === "showNextBtn") {
@@ -1801,11 +1839,11 @@ class e2 {
1801
1839
  }
1802
1840
  }
1803
1841
  }
1804
- let t2 = class f {
1842
+ class f {
1805
1843
  static calcCrow(e, t, a, n) {
1806
- const r = f.toRad(a - e), l = f.toRad(n - t);
1844
+ const r = f.toRad(a - e), s = f.toRad(n - t);
1807
1845
  e = f.toRad(e), a = f.toRad(a);
1808
- const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(l / 2) * Math.sin(l / 2) * Math.cos(e) * Math.cos(a);
1846
+ const i = Math.sin(r / 2) * Math.sin(r / 2) + Math.sin(s / 2) * Math.sin(s / 2) * Math.cos(e) * Math.cos(a);
1809
1847
  return 6371 * (2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)));
1810
1848
  }
1811
1849
  static cleanupAddress(e) {
@@ -1834,21 +1872,21 @@ let t2 = class f {
1834
1872
  static async createData(e, t = null, a = !0) {
1835
1873
  if (window.options.isBot || !t)
1836
1874
  return null;
1837
- const { tolken: n = null, ip: s = null } = await f.getHeaders(), r = a === !1 ? "" : "&tolken=" + n + "&ip=" + s, l = e + r, i = typeof t == "string" ? t : JSON.stringify(t);
1875
+ 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);
1838
1876
  try {
1839
- const d = await fetch(l, {
1877
+ const c = await fetch(s, {
1840
1878
  method: "POST",
1841
1879
  body: i === "null" ? null : i,
1842
1880
  headers: {
1843
1881
  website: f.getWebsiteHeaderName()
1844
1882
  }
1845
- }), h = d.headers.get("content-type");
1883
+ }), h = c.headers.get("content-type");
1846
1884
  if (h && h.indexOf("application/json") !== -1)
1847
- return d.json();
1848
- const u = await d.text();
1849
- return u ? u.replace("__next", "") : null;
1850
- } catch (d) {
1851
- console.error("createData", d);
1885
+ return c.json();
1886
+ const p = await c.text();
1887
+ return p ? p.replace("__next", "") : null;
1888
+ } catch (c) {
1889
+ console.error("createData", c);
1852
1890
  }
1853
1891
  return null;
1854
1892
  }
@@ -1908,15 +1946,15 @@ let t2 = class f {
1908
1946
  static async fetchData(e, t = !1, a = !0) {
1909
1947
  if (options.isBot)
1910
1948
  return null;
1911
- const { tolken: n = null, ip: s = null } = await f.getHeaders(), l = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + s;
1949
+ const { tolken: n = null, ip: l = null } = await f.getHeaders(), s = e.replace("#", "").replace("%23", "") + "&tolken=" + n + "&ip=" + l;
1912
1950
  try {
1913
- const i = await fetch(l, { method: "GET" });
1951
+ const i = await fetch(s, { method: "GET" });
1914
1952
  if (t === !0) {
1915
1953
  const h = await i.text();
1916
1954
  return h ? h.replace("__next", "") : null;
1917
1955
  }
1918
- const d = i.headers.get("content-type");
1919
- return d && d.indexOf("application/json") !== -1 ? i.json() : null;
1956
+ const c = i.headers.get("content-type");
1957
+ return c && c.indexOf("application/json") !== -1 ? i.json() : null;
1920
1958
  } catch (i) {
1921
1959
  console.error("fetchData", i, e);
1922
1960
  }
@@ -1946,11 +1984,11 @@ let t2 = class f {
1946
1984
  swLng: 0
1947
1985
  };
1948
1986
  const n = e.getBounds();
1949
- let s = n.getSouth(), r = n.getEast(), l = n.getNorth(), i = n.getWest();
1950
- return a && (s = s - a, r = r + a, l = l + a, i = i - a), t && (s = s.toFixed(t), r = r.toFixed(t), l = l.toFixed(t), i = i.toFixed(t)), {
1951
- swLat: s,
1987
+ let l = n.getSouth(), r = n.getEast(), s = n.getNorth(), i = n.getWest();
1988
+ return a && (l = l - a, r = r + a, s = s + a, i = i - a), t && (l = l.toFixed(t), r = r.toFixed(t), s = s.toFixed(t), i = i.toFixed(t)), {
1989
+ swLat: l,
1952
1990
  neLng: r,
1953
- neLat: l,
1991
+ neLat: s,
1954
1992
  swLng: i
1955
1993
  };
1956
1994
  }
@@ -1984,38 +2022,38 @@ let t2 = class f {
1984
2022
  userAgent: t = null,
1985
2023
  userAgentData: a = null,
1986
2024
  platform: n = null
1987
- } = navigator || {}, s = (a == null ? void 0 : a.platform) ?? n, r = {
2025
+ } = navigator || {}, l = (a == null ? void 0 : a.platform) ?? n, r = {
1988
2026
  tolken: null,
1989
2027
  ip: null,
1990
2028
  userAgent: t,
1991
- platform: s
2029
+ platform: l
1992
2030
  };
1993
2031
  if (options && options.isBot || typeof window.localStorage > "u")
1994
2032
  return r;
1995
- const l = localStorage.getItem("headerTolken");
1996
- if (l) {
1997
- const d = JSON.parse(l), h = (/* @__PURE__ */ new Date()).getTime();
1998
- return d.expire - h < 0 && localStorage.removeItem("headerTolken"), {
1999
- tolken: d.tolken,
2000
- ip: d.ip,
2033
+ const s = localStorage.getItem("headerTolken");
2034
+ if (s) {
2035
+ const c = JSON.parse(s), h = (/* @__PURE__ */ new Date()).getTime();
2036
+ return c.expire - h < 0 && localStorage.removeItem("headerTolken"), {
2037
+ tolken: c.tolken,
2038
+ ip: c.ip,
2001
2039
  userAgent: t,
2002
- platform: s
2040
+ platform: l
2003
2041
  };
2004
2042
  }
2005
2043
  if ((i = window == null ? void 0 : window.options) != null && i.isPdf)
2006
2044
  return r;
2007
2045
  try {
2008
- const h = await (await fetch("/api/headers")).json(), u = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
2046
+ const h = await (await fetch("/api/headers")).json(), p = (h == null ? void 0 : h.token) ?? null, V = (h == null ? void 0 : h.ip) ?? null;
2009
2047
  return localStorage.setItem(
2010
2048
  "headerTolken",
2011
2049
  JSON.stringify({
2012
- tolken: u,
2050
+ tolken: p,
2013
2051
  ip: V,
2014
2052
  expire: (/* @__PURE__ */ new Date()).getTime() + e * 1e3
2015
2053
  })
2016
- ), { tolken: u, ip: V, userAgent: t, platform: s };
2017
- } catch (d) {
2018
- console.error("getHeaders", d);
2054
+ ), { tolken: p, ip: V, userAgent: t, platform: l };
2055
+ } catch (c) {
2056
+ console.error("getHeaders", c);
2019
2057
  }
2020
2058
  return r;
2021
2059
  }
@@ -2026,15 +2064,15 @@ let t2 = class f {
2026
2064
  }[e];
2027
2065
  }
2028
2066
  static async getLocationData(e) {
2029
- const { swLat: t, neLng: a, neLat: n, swLng: s } = f.getBounds(e, 3, 0.05), r = "zip-location&swLat=" + t + "&neLng=" + a + "&neLat=" + n + "&swLng=" + s;
2067
+ 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;
2030
2068
  return await f.fetchData("/api/client?query=" + r);
2031
2069
  }
2032
2070
  static getReportUrl(e, t = null) {
2033
- var i, d, h;
2034
- const a = ((i = e == null ? void 0 : e.state) == null ? void 0 : i.slug) ?? null, n = ((d = e == null ? void 0 : e.city) == null ? void 0 : d.slug) ?? null, s = ((h = e == null ? void 0 : e.name) == null ? void 0 : h.slug) ?? null, r = (e == null ? void 0 : e.zip) ?? null;
2071
+ var i, c, h;
2072
+ 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;
2035
2073
  t = t || ((e == null ? void 0 : e.id) ?? null);
2036
- const l = [r, "-piq", t].filter((u) => u).join("");
2037
- return "/" + [a, n, s].filter((u) => u).map((u) => f.toSlug(u)).join("/") + "/" + l;
2074
+ const s = [r, "-piq", t].filter((p) => p).join("");
2075
+ return "/" + [a, n, l].filter((p) => p).map((p) => f.toSlug(p)).join("/") + "/" + s;
2038
2076
  }
2039
2077
  static async getSearchValue(e = "recsSearchValue") {
2040
2078
  try {
@@ -2144,15 +2182,15 @@ let t2 = class f {
2144
2182
  ];
2145
2183
  }
2146
2184
  static getTrackingData(e) {
2147
- const [t, ...a] = e.split("|"), n = a.join("|").trim(), s = [
2185
+ const [t, ...a] = e.split("|"), n = a.join("|").trim(), l = [
2148
2186
  "[pageType::" + t.trim() + "]",
2149
2187
  "[name::" + n + "]"
2150
2188
  ].join(" ");
2151
2189
  return {
2152
- value: s,
2190
+ value: l,
2153
2191
  dataLayer: {
2154
2192
  event: "clickTrack",
2155
- value: s
2193
+ value: l
2156
2194
  }
2157
2195
  };
2158
2196
  }
@@ -2191,36 +2229,36 @@ let t2 = class f {
2191
2229
  return a && a.includes(t) ? t : e;
2192
2230
  }
2193
2231
  static getGridBounds({ map: e, tileSize: t, coords: a }) {
2194
- const n = a.scaleBy(t), s = n.add(t);
2232
+ const n = a.scaleBy(t), l = n.add(t);
2195
2233
  return {
2196
2234
  nw: e.unproject(n, a.z),
2197
- se: e.unproject(s, a.z)
2235
+ se: e.unproject(l, a.z)
2198
2236
  };
2199
2237
  }
2200
2238
  static gridTest(e, t, a = 1500) {
2201
2239
  const n = this;
2202
2240
  L.GridLayer.GridDebug = L.GridLayer.extend({
2203
- createTile: function(s, r) {
2204
- const l = document.createElement("div");
2241
+ createTile: function(l, r) {
2242
+ const s = document.createElement("div");
2205
2243
  return setTimeout(() => {
2206
- r(null, l);
2207
- const { se: i, nw: d } = n.getGridBounds({
2244
+ r(null, s);
2245
+ const { se: i, nw: c } = n.getGridBounds({
2208
2246
  map: e,
2209
2247
  tileSize: this.getTileSize(),
2210
- coords: s
2248
+ coords: l
2211
2249
  });
2212
2250
  t({
2213
2251
  swLat: i.lat,
2214
2252
  neLng: i.lng,
2215
- neLat: d.lat,
2216
- swLng: d.lng,
2217
- coords: s,
2218
- key: s.z + "-" + s.x + "-" + s.y
2253
+ neLat: c.lat,
2254
+ swLng: c.lng,
2255
+ coords: l,
2256
+ key: l.z + "-" + l.x + "-" + l.y
2219
2257
  });
2220
- }, a), l;
2258
+ }, a), s;
2221
2259
  }
2222
- }), L.gridLayer.gridDebug = function(s) {
2223
- return new L.GridLayer.GridDebug(s);
2260
+ }), L.gridLayer.gridDebug = function(l) {
2261
+ return new L.GridLayer.GridDebug(l);
2224
2262
  }, e.addLayer(L.gridLayer.gridDebug());
2225
2263
  }
2226
2264
  /**
@@ -2238,9 +2276,9 @@ let t2 = class f {
2238
2276
  id: t = "",
2239
2277
  onOpen: a = null,
2240
2278
  onClose: n = null,
2241
- disableOutsideClick: s = !1
2279
+ disableOutsideClick: l = !1
2242
2280
  }) {
2243
- const r = e ? document.querySelectorAll(e) : [], l = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), d = [
2281
+ const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
2244
2282
  "closing",
2245
2283
  "closed",
2246
2284
  "opening",
@@ -2254,49 +2292,49 @@ let t2 = class f {
2254
2292
  }),
2255
2293
  {}
2256
2294
  ), h = new MutationObserver((m, H) => {
2257
- m.forEach(async (x) => {
2258
- if (x.attributeName === "open") {
2259
- const v = x.target;
2295
+ m.forEach(async (b) => {
2296
+ if (b.attributeName === "open") {
2297
+ const v = b.target;
2260
2298
  if (!(v == null ? void 0 : v.hasAttribute("open"))) return;
2261
- v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(d.opening), v && await C(v), v == null || v.dispatchEvent(d.opened);
2299
+ v == null || v.removeAttribute("inert"), v == null || v.dispatchEvent(c.opening), v && await C(v), v == null || v.dispatchEvent(c.opened);
2262
2300
  }
2263
2301
  });
2264
- }), u = new MutationObserver((m, H) => {
2265
- m.forEach((x) => {
2266
- x.removedNodes.forEach((v) => {
2267
- v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", M), v.dispatchEvent(d.removed), u == null || u.disconnect(), h == null || h.disconnect());
2302
+ }), p = new MutationObserver((m, H) => {
2303
+ m.forEach((b) => {
2304
+ b.removedNodes.forEach((v) => {
2305
+ v.nodeName === "DIALOG" && (v.removeEventListener("click", A), v.removeEventListener("close", g), v.dispatchEvent(c.removed), p == null || p.disconnect(), h == null || h.disconnect());
2268
2306
  });
2269
2307
  });
2270
2308
  });
2271
- l && (h.observe(l, {
2309
+ s && (h.observe(s, {
2272
2310
  attributes: !0
2273
- }), u.observe(document.body, {
2311
+ }), p.observe(document.body, {
2274
2312
  attributes: !1,
2275
2313
  subtree: !1,
2276
2314
  childList: !0
2277
2315
  }));
2278
2316
  const V = () => {
2279
- l == null || l.showModal();
2280
- }, M = async ({ target: m }) => {
2281
- m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(d.closing), m && await C(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(d.closed);
2317
+ s == null || s.showModal();
2318
+ }, g = async ({ target: m }) => {
2319
+ m == null || m.classList.add("closing"), m == null || m.setAttribute("inert", ""), m == null || m.dispatchEvent(c.closing), m && await C(m), m == null || m.classList.remove("closing"), m == null || m.dispatchEvent(c.closed);
2282
2320
  }, A = async ({ target: m }) => {
2283
- (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(d.outside), l == null || l.close("outside"));
2321
+ (m == null ? void 0 : m.nodeName) === "DIALOG" && (m == null || m.dispatchEvent(c.outside), s == null || s.close("outside"));
2284
2322
  }, C = (m) => Promise.allSettled(
2285
2323
  m == null ? void 0 : m.getAnimations().map((H) => H == null ? void 0 : H.finished)
2286
2324
  );
2287
- return !s && (l == null || l.addEventListener("click", A)), l == null || l.addEventListener("close", M), r == null || r.forEach((m) => {
2325
+ return !l && (s == null || s.addEventListener("click", A)), s == null || s.addEventListener("close", g), r == null || r.forEach((m) => {
2288
2326
  m.addEventListener("click", (H) => {
2289
- V(), a && a(H, l);
2327
+ V(), a && a(H, s);
2290
2328
  });
2291
2329
  }), i == null || i.forEach((m) => {
2292
2330
  m.addEventListener("click", async (H) => {
2293
- l == null || l.close("close"), n && n(H, l);
2331
+ s == null || s.close("close"), n && n(H, s);
2294
2332
  });
2295
2333
  }), {
2296
2334
  activators: r,
2297
- ref: l,
2335
+ ref: s,
2298
2336
  handleOpen: V,
2299
- handleClose: M
2337
+ handleClose: g
2300
2338
  };
2301
2339
  }
2302
2340
  static hasBoundsEntry(e, t = "bounds") {
@@ -2306,8 +2344,8 @@ let t2 = class f {
2306
2344
  if (!e)
2307
2345
  return;
2308
2346
  const n = (a == null ? void 0 : a.useBounding) ?? !1;
2309
- new IntersectionObserver(async (r, l) => {
2310
- n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: l, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: l, entry: r[0], entries: r });
2347
+ new IntersectionObserver(async (r, s) => {
2348
+ n ? (r[0].isIntersecting || r[0].boundingClientRect.y < 0) && t({ obs: s, entry: r[0], entries: r }) : r[0].isIntersecting && t({ obs: s, entry: r[0], entries: r });
2311
2349
  }, a).observe(e);
2312
2350
  }
2313
2351
  static injectLink({ href: e, id: t }) {
@@ -2315,11 +2353,11 @@ let t2 = class f {
2315
2353
  a.href = e, a.type = "text/css", a.rel = "stylesheet", t && (a.id = t), document.getElementsByTagName("head")[0].appendChild(a);
2316
2354
  }
2317
2355
  static injectScript({ src: e, id: t = null, async: a = !0, module: n = !1 }) {
2318
- return new Promise(function(s, r) {
2319
- let l = document.getElementById(t);
2320
- if (t && l && l.dataset.loaded === "true")
2321
- return s({ alreadyLoaded: !0, id: t });
2322
- l || (l = document.createElement("script"), l.src = e, l.dataset.loaded = "false", t && (l.id = t), l.type = n ? "module" : "text/javascript", l.async = a, document.body.appendChild(l), l.onload = () => (l.dataset.loaded = "true", s({ alreadyLoaded: !1, id: t })), l.onerror = () => r(!1));
2356
+ return new Promise(function(l, r) {
2357
+ let s = document.getElementById(t);
2358
+ if (t && s && s.dataset.loaded === "true")
2359
+ return l({ alreadyLoaded: !0, id: t });
2360
+ s || (s = document.createElement("script"), s.src = e, s.dataset.loaded = "false", t && (s.id = t), s.type = n ? "module" : "text/javascript", s.async = a, document.body.appendChild(s), s.onload = () => (s.dataset.loaded = "true", l({ alreadyLoaded: !1, id: t })), s.onerror = () => r(!1));
2323
2361
  });
2324
2362
  }
2325
2363
  static isMobile({ selector: e = null, width: t = 640 } = {}) {
@@ -2351,13 +2389,13 @@ let t2 = class f {
2351
2389
  const a = Math.abs(e), n = Math.sign(e);
2352
2390
  return a > 999999 ? n * (a / 1e6).toFixed(1) + "m" : a > 999 ? n * (a / 1e3).toFixed(t) + "k" : n * a;
2353
2391
  }
2354
- static async logRequest(e = null, t = null, a = null, n = null, s = null) {
2392
+ static async logRequest(e = null, t = null, a = null, n = null, l = null) {
2355
2393
  const r = {
2356
2394
  name: e,
2357
2395
  uuid: t,
2358
2396
  ip: a,
2359
2397
  url: n,
2360
- data: s
2398
+ data: l
2361
2399
  };
2362
2400
  return await f.createData("/api/client?query=log/save&method=POST", r), null;
2363
2401
  }
@@ -2382,8 +2420,8 @@ let t2 = class f {
2382
2420
  async: !1,
2383
2421
  module: a
2384
2422
  });
2385
- } catch (s) {
2386
- console.error("loadCustomScript", s);
2423
+ } catch (l) {
2424
+ console.error("loadCustomScript", l);
2387
2425
  }
2388
2426
  }
2389
2427
  return null;
@@ -2395,8 +2433,8 @@ let t2 = class f {
2395
2433
  await f.injectScript({ src: a, id: "googleapis", async: !1 });
2396
2434
  }
2397
2435
  static async loadLeafletApi() {
2398
- const e = "https://unpkg.com/leaflet@1.9.3/dist", t = e + "/leaflet.js", a = e + "/leaflet.css", n = "//unpkg.com/leaflet-gesture-handling", s = "//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css";
2399
- await f.injectLink({ href: a, id: "leafletCss" }), await f.injectLink({ href: s, id: "gestureCss" }), await f.injectScript({ src: t, id: "leafletJs", async: !1 }), await f.injectScript({
2436
+ 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";
2437
+ 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({
2400
2438
  src: n,
2401
2439
  id: "gestureJs",
2402
2440
  async: !1
@@ -2443,18 +2481,18 @@ let t2 = class f {
2443
2481
  name: t = null,
2444
2482
  first: a = null,
2445
2483
  middle: n = null,
2446
- last: s = null,
2484
+ last: l = null,
2447
2485
  min: r = null,
2448
- max: l = null,
2486
+ max: s = null,
2449
2487
  city: i = null,
2450
- state: d = null,
2488
+ state: c = null,
2451
2489
  vin: h = null,
2452
- license: u = null,
2490
+ license: p = null,
2453
2491
  token: V = null,
2454
- phone: M = null
2455
- } = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m = l && l !== "" && r !== "99";
2492
+ phone: g = null
2493
+ } = e || {}, A = t && t !== "", C = r && r !== "" && r !== "18", m = s && s !== "" && r !== "99";
2456
2494
  let H = [];
2457
- return t && t !== "" && H.push("name=" + t), A || (a && a !== "" && H.push("first=" + a), n && n !== "" && H.push("middle=" + n), s && s !== "" && H.push("last=" + s)), C && m ? parseInt(r) > parseInt(l) ? (H.push("min=" + l), H.push("max=" + r)) : (H.push("min=" + r), H.push("max=" + l)) : (C && H.push("min=" + r), m && H.push("max=" + l)), M && M !== "" && H.push("phone=" + M), i && i !== "" && H.push("city=" + i), u && u !== "" && H.push("license=" + u), h && h !== "" && H.push("vin=" + h), d && d !== "" && H.push("state=" + d), V && V !== "" && H.push("token=" + V), H.join("&");
2495
+ return t && t !== "" && H.push("name=" + t), A || (a && a !== "" && H.push("first=" + a), n && n !== "" && H.push("middle=" + n), l && l !== "" && H.push("last=" + l)), C && m ? parseInt(r) > parseInt(s) ? (H.push("min=" + s), H.push("max=" + r)) : (H.push("min=" + r), H.push("max=" + s)) : (C && H.push("min=" + r), m && H.push("max=" + s)), g && g !== "" && H.push("phone=" + g), i && i !== "" && H.push("city=" + i), p && p !== "" && H.push("license=" + p), h && h !== "" && H.push("vin=" + h), c && c !== "" && H.push("state=" + c), V && V !== "" && H.push("token=" + V), H.join("&");
2458
2496
  }
2459
2497
  static padTo2Digits(e) {
2460
2498
  return e.toString().padStart(2, "0");
@@ -2467,20 +2505,20 @@ let t2 = class f {
2467
2505
  const {
2468
2506
  addressesOnly: a = !1,
2469
2507
  useCitySearch: n = !1,
2470
- useCityStateSearch: s = !1,
2508
+ useCityStateSearch: l = !1,
2471
2509
  useSearch: r = !1,
2472
- useLocation: l = !0,
2510
+ useLocation: s = !0,
2473
2511
  state: i = ""
2474
- } = t ?? {}, { tolken: d = null, ip: h = null } = await f.getHeaders(), V = [
2512
+ } = t ?? {}, { tolken: c = null, ip: h = null } = await f.getHeaders(), V = [
2475
2513
  "query=" + encodeURIComponent(this.cleanupAddress(e)),
2476
2514
  "addressesOnly=" + a,
2477
2515
  "useSearch=" + r,
2478
2516
  "useCitySearch=" + n,
2479
- "useCityStateSearch=" + s,
2480
- "useLocation=" + l
2517
+ "useCityStateSearch=" + l,
2518
+ "useLocation=" + s
2481
2519
  ];
2482
- i && i !== "" && !s && V.push("state=" + i), d && d !== "" && V.push("tolken=" + d), h && h !== "" && V.push("ip=" + h);
2483
- const M = V.join("&"), C = (n || s ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + M;
2520
+ i && i !== "" && !l && V.push("state=" + i), c && c !== "" && V.push("tolken=" + c), h && h !== "" && V.push("ip=" + h);
2521
+ const g = V.join("&"), C = (n || l ? "/api/autocomplete-city" : "/api/autocomplete") + "?" + g;
2484
2522
  return await f.makeSearchFetchCall(C);
2485
2523
  }
2486
2524
  static removeElements(e) {
@@ -2501,8 +2539,8 @@ let t2 = class f {
2501
2539
  }
2502
2540
  static searchInStates(e) {
2503
2541
  const t = f.getStates(), a = e.toLowerCase();
2504
- let n = t.find((s) => s.short.toLowerCase() === a) ?? null;
2505
- return n || (n = t.find((s) => s.name.toLowerCase() === a) ?? null), n;
2542
+ let n = t.find((l) => l.short.toLowerCase() === a) ?? null;
2543
+ return n || (n = t.find((l) => l.name.toLowerCase() === a) ?? null), n;
2506
2544
  }
2507
2545
  static sendWoopraEvent(e, t) {
2508
2546
  typeof woopra == "object" && woopra.track(e, t);
@@ -2516,20 +2554,20 @@ let t2 = class f {
2516
2554
  if (!t)
2517
2555
  return e;
2518
2556
  t = t.toLowerCase().replace(" usa", "").replace("city or state", "").replace(" state", "").trim();
2519
- let [a = null, n = null] = t.split(",").map((s) => s.trim());
2557
+ let [a = null, n = null] = t.split(",").map((l) => l.trim());
2520
2558
  if (f.getStates(), a && !n) {
2521
- const s = this.searchInStates(a);
2522
- s && (a = null, n = s.short);
2559
+ const l = this.searchInStates(a);
2560
+ l && (a = null, n = l.short);
2523
2561
  }
2524
2562
  if (!n && a) {
2525
- const s = this.searchInStates(a);
2526
- s && (n = s.short);
2563
+ const l = this.searchInStates(a);
2564
+ l && (n = l.short);
2527
2565
  }
2528
2566
  if (a && !n) {
2529
- const s = a.split(" "), r = s[s.length - 1];
2567
+ const l = a.split(" "), r = l[l.length - 1];
2530
2568
  if (r.length) {
2531
- const l = this.searchInStates(r);
2532
- l && (n = l.short, a = s.slice(0, -1).join(" "));
2569
+ const s = this.searchInStates(r);
2570
+ s && (n = s.short, a = l.slice(0, -1).join(" "));
2533
2571
  }
2534
2572
  }
2535
2573
  return a && n && a.toLowerCase() === n.toLowerCase() && (a = null), e.city = a, e.state = n ? n.toUpperCase() : null, e;
@@ -2573,131 +2611,40 @@ let t2 = class f {
2573
2611
  static ucWords(e) {
2574
2612
  return e ? e.toString().split(" ").map((t) => f.ucFirst(t)).join(" ") : null;
2575
2613
  }
2576
- };
2577
- class w1 {
2578
- constructor() {
2579
- k(this, "contactForm", null);
2580
- k(this, "submitBtn", null);
2581
- k(this, "VALIDATION", {
2582
- "contact-email": [
2583
- {
2584
- isValid: (e) => x1(e),
2585
- message: "Invalid email"
2586
- }
2587
- ],
2588
- "contact-name": [
2589
- {
2590
- isValid: (e) => e.length > 1,
2591
- message: "Must include at least 2 characters"
2592
- }
2593
- ],
2594
- "contact-message": [
2595
- {
2596
- isValid: (e) => e.length > 4,
2597
- message: "Must include at least 5 characters"
2598
- }
2599
- ]
2600
- });
2601
- }
2602
- init({ formEl: e }) {
2603
- var t;
2604
- this.contactForm = e, this.submitBtn = this.contactForm.querySelector('button[type="submit"]'), (t = this.submitBtn) == null || t.addEventListener("click", async (a) => {
2605
- var u;
2606
- a.preventDefault();
2607
- let n = {
2608
- "contact-email": "",
2609
- "contact-name": "",
2610
- "contact-message": ""
2611
- }, s = new FormData(this.contactForm);
2612
- if (!b1({
2613
- form: this.contactForm,
2614
- formData: s,
2615
- validations: this.VALIDATION,
2616
- cb: this.handleErrors.bind(this)
2617
- }))
2618
- return;
2619
- this.handleLoading(!0);
2620
- for (const [V, M] of s.entries())
2621
- n[V] = M;
2622
- const {
2623
- "contact-email": l,
2624
- "contact-name": i,
2625
- "contact-message": d
2626
- } = n, h = ((u = window == null ? void 0 : window.location) == null ? void 0 : u.href) ?? "";
2627
- await this.sendContactForm({
2628
- email: l,
2629
- name: i,
2630
- message: `${d} - Submitted from ${h}`
2631
- }), this.handleSuccessMsg();
2632
- });
2633
- }
2634
- handleErrors({ isValid: e, field: t } = {}) {
2635
- const a = t.nextElementSibling;
2636
- e ? a == null || a.remove() : !a && t.insertAdjacentHTML(
2637
- "afterend",
2638
- this.setErrorEl(this.VALIDATION[t.name][0].message)
2639
- );
2640
- }
2641
- handleLoading(e) {
2642
- if (e)
2643
- return T(this.submitBtn, ["button-loader"]);
2644
- y1(this.submitBtn, ["button-loader"]);
2645
- }
2646
- handleSuccessMsg() {
2647
- this.handleLoading(!1), this.contactForm.firstElementChild.innerHTML = "We received your message.", T(this.contactForm, ["contact-form--success"]), this.contactForm.lastElementChild.remove();
2648
- }
2649
- async sendContactForm(e) {
2650
- const t = await Common.createData(
2651
- "/api/client?query=contacts&method=POST",
2652
- e
2653
- );
2654
- return {
2655
- error: t == null ? void 0 : t.error,
2656
- message: t == null ? void 0 : t.message,
2657
- data: t == null ? void 0 : t.data
2658
- };
2659
- }
2660
- setErrorEl(e) {
2661
- return `<span class="relative flex mt-0.5 text-red-700 text-xs text-left">
2662
- ${e}
2663
- </span>`;
2664
- }
2665
- }
2666
- function a2() {
2667
- const c = document.querySelectorAll(".contact-form");
2668
- c.length > 0 && Array.from({ length: c.length }, (e, t) => {
2669
- const a = c[t];
2670
- new w1().init({ formEl: a });
2671
- });
2672
2614
  }
2673
2615
  export {
2674
- N1 as Accordion,
2675
- E1 as Alert,
2676
- B1 as Autocomplete,
2677
- D1 as Badge,
2678
- B as Button,
2679
- T1 as ButtonGroup,
2680
- $1 as Card,
2681
- e2 as CardSlider,
2682
- F1 as Checkbox,
2683
- t2 as Common,
2684
- X1 as ContactForm,
2685
- I1 as Container,
2686
- O1 as Dialog,
2687
- q1 as DialogOld,
2688
- j1 as Dots,
2689
- _1 as FunnelHeader,
2690
- b as Icon,
2691
- P1 as LoadingBar,
2692
- W1 as Popover,
2693
- U1 as ProgressBar,
2694
- Q1 as Radio,
2695
- G1 as Select,
2696
- J1 as Skeleton,
2697
- K1 as Slider,
2698
- R1 as Spinner,
2699
- Y1 as Stars,
2700
- f1 as TextArea,
2701
- D as Textbox,
2702
- a2 as useContactForm
2616
+ x1 as Accordion,
2617
+ b1 as Alert,
2618
+ w1 as Autocomplete,
2619
+ S1 as Badge,
2620
+ E as Button,
2621
+ k1 as ButtonGroup,
2622
+ z1 as Card,
2623
+ _1 as CardSlider,
2624
+ N1 as Checkbox,
2625
+ f as Common,
2626
+ W1 as ContactForm,
2627
+ Z1 as Container,
2628
+ U1 as ContentCard,
2629
+ E1 as Dialog,
2630
+ B1 as DialogOld,
2631
+ D1 as Dots,
2632
+ G1 as FunnelHeader,
2633
+ x as Icon,
2634
+ $1 as LoadingBar,
2635
+ I1 as Popover,
2636
+ O1 as ProgressBar,
2637
+ F1 as Radio,
2638
+ q1 as Select,
2639
+ j1 as Skeleton,
2640
+ P1 as Slider,
2641
+ T1 as Spinner,
2642
+ Q1 as StackedListItem,
2643
+ R1 as Stars,
2644
+ V1 as TextArea,
2645
+ B as Textbox,
2646
+ J1 as addClass,
2647
+ K1 as removeClass,
2648
+ X1 as validateEmail,
2649
+ Y1 as validateForm
2703
2650
  };