@reactfast/nav 0.2.22 → 0.2.24

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.
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs as t, jsx as e, Fragment as Y } from "react/jsx-runtime";
3
- import x, { useState as N, useRef as I, useEffect as Q, useMemo as _ } from "react";
4
- import { PopoverGroup as G, Popover as C, PopoverButton as z, PopoverPanel as j, Dialog as B, DialogPanel as D, Disclosure as W, DisclosureButton as p, Menu as U, MenuButton as X, MenuItems as K, MenuItem as P, DisclosurePanel as J } from "@headlessui/react";
5
- import { Bars3Icon as $, ChartPieIcon as Z, CursorArrowRaysIcon as ee, FingerPrintIcon as ae, SquaresPlusIcon as te, ArrowPathIcon as re, XMarkIcon as R, BellIcon as T, MagnifyingGlassIcon as q, CubeTransparentIcon as se, MapPinIcon as ie, PhotoIcon as ne, NewspaperIcon as le, BriefcaseIcon as oe, QuestionMarkCircleIcon as de } from "@heroicons/react/24/outline";
6
- import { ChevronDownIcon as w, PlayCircleIcon as ce, PhoneIcon as he, PlusIcon as me, WrenchScrewdriverIcon as ue } from "@heroicons/react/20/solid";
7
- import k from "next/link";
8
- import { ChevronRightIcon as F } from "@heroicons/react/24/solid";
9
- const H = [
3
+ import m, { useState as b, useRef as B, useEffect as R, useMemo as _ } from "react";
4
+ import { PopoverGroup as G, Popover as N, PopoverButton as k, PopoverPanel as w, Dialog as L, DialogPanel as O, Disclosure as Q, DisclosureButton as u, Menu as X, MenuButton as U, MenuItems as K, MenuItem as E, DisclosurePanel as W } from "@headlessui/react";
5
+ import { Bars3Icon as P, ChartPieIcon as Z, CursorArrowRaysIcon as ee, FingerPrintIcon as ae, SquaresPlusIcon as te, ArrowPathIcon as re, XMarkIcon as M, BellIcon as $, MagnifyingGlassIcon as F, CubeTransparentIcon as se } from "@heroicons/react/24/outline";
6
+ import { ChevronDownIcon as v, PlayCircleIcon as ie, PhoneIcon as le, PlusIcon as ne } from "@heroicons/react/20/solid";
7
+ import f from "next/link";
8
+ import { ChevronRightIcon as H } from "@heroicons/react/24/solid";
9
+ const T = [
10
10
  {
11
11
  name: "Analytics",
12
12
  description: "Get a better understanding of your traffic",
@@ -37,9 +37,9 @@ const H = [
37
37
  href: "#",
38
38
  icon: re
39
39
  }
40
- ], ge = [
41
- { name: "Watch demo", href: "#", icon: ce },
42
- { name: "Contact sales", href: "#", icon: he }
40
+ ], oe = [
41
+ { name: "Watch demo", href: "#", icon: ie },
42
+ { name: "Contact sales", href: "#", icon: le }
43
43
  ], V = [
44
44
  {
45
45
  name: "About us",
@@ -62,8 +62,8 @@ const H = [
62
62
  description: "Read our latest announcements and get perspectives from our team"
63
63
  }
64
64
  ];
65
- function Se() {
66
- const [a, h] = N(!1);
65
+ function Ne() {
66
+ const [a, d] = b(!1);
67
67
  return /* @__PURE__ */ t("header", { className: "bg-white dark:bg-gray-900", children: [
68
68
  /* @__PURE__ */ t(
69
69
  "nav",
@@ -94,20 +94,20 @@ function Se() {
94
94
  "button",
95
95
  {
96
96
  type: "button",
97
- onClick: () => h(!0),
97
+ onClick: () => d(!0),
98
98
  className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",
99
99
  children: [
100
100
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Open main menu" }),
101
- /* @__PURE__ */ e($, { "aria-hidden": "true", className: "size-6" })
101
+ /* @__PURE__ */ e(P, { "aria-hidden": "true", className: "size-6" })
102
102
  ]
103
103
  }
104
104
  ) }),
105
105
  /* @__PURE__ */ t(G, { className: "hidden lg:flex lg:gap-x-12", children: [
106
- /* @__PURE__ */ t(C, { className: "relative", children: [
107
- /* @__PURE__ */ t(z, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
106
+ /* @__PURE__ */ t(N, { className: "relative", children: [
107
+ /* @__PURE__ */ t(k, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
108
108
  "Product",
109
109
  /* @__PURE__ */ e(
110
- w,
110
+ v,
111
111
  {
112
112
  "aria-hidden": "true",
113
113
  className: "size-5 flex-none text-gray-400 dark:text-gray-500"
@@ -115,12 +115,12 @@ function Se() {
115
115
  )
116
116
  ] }),
117
117
  /* @__PURE__ */ t(
118
- j,
118
+ w,
119
119
  {
120
120
  transition: !0,
121
121
  className: "absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",
122
122
  children: [
123
- /* @__PURE__ */ e("div", { className: "p-4", children: H.map((s) => /* @__PURE__ */ t(
123
+ /* @__PURE__ */ e("div", { className: "p-4", children: T.map((s) => /* @__PURE__ */ t(
124
124
  "div",
125
125
  {
126
126
  className: "group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",
@@ -150,7 +150,7 @@ function Se() {
150
150
  },
151
151
  s.name
152
152
  )) }),
153
- /* @__PURE__ */ e("div", { className: "grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50", children: ge.map((s) => /* @__PURE__ */ t(
153
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50", children: oe.map((s) => /* @__PURE__ */ t(
154
154
  "a",
155
155
  {
156
156
  href: s.href,
@@ -188,11 +188,11 @@ function Se() {
188
188
  children: "Marketplace"
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ t(C, { className: "relative", children: [
192
- /* @__PURE__ */ t(z, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
191
+ /* @__PURE__ */ t(N, { className: "relative", children: [
192
+ /* @__PURE__ */ t(k, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
193
193
  "Company",
194
194
  /* @__PURE__ */ e(
195
- w,
195
+ v,
196
196
  {
197
197
  "aria-hidden": "true",
198
198
  className: "size-5 flex-none text-gray-400 dark:text-gray-500"
@@ -200,7 +200,7 @@ function Se() {
200
200
  )
201
201
  ] }),
202
202
  /* @__PURE__ */ e(
203
- j,
203
+ w,
204
204
  {
205
205
  transition: !0,
206
206
  className: "absolute left-1/2 z-10 mt-3 w-96 -translate-x-1/2 rounded-3xl bg-white p-4 shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:-outline-offset-1 dark:outline-white/10",
@@ -244,14 +244,14 @@ function Se() {
244
244
  }
245
245
  ),
246
246
  /* @__PURE__ */ t(
247
- B,
247
+ L,
248
248
  {
249
249
  open: a,
250
- onClose: h,
250
+ onClose: d,
251
251
  className: "lg:hidden",
252
252
  children: [
253
253
  /* @__PURE__ */ e("div", { className: "fixed inset-0 z-10" }),
254
- /* @__PURE__ */ t(D, { className: "fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10", children: [
254
+ /* @__PURE__ */ t(O, { className: "fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10", children: [
255
255
  /* @__PURE__ */ t("div", { className: "p-6", children: [
256
256
  /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
257
257
  /* @__PURE__ */ t("a", { href: "#", className: "-m-1.5 p-1.5", children: [
@@ -277,17 +277,17 @@ function Se() {
277
277
  "button",
278
278
  {
279
279
  type: "button",
280
- onClick: () => h(!1),
280
+ onClick: () => d(!1),
281
281
  className: "-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",
282
282
  children: [
283
283
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close menu" }),
284
- /* @__PURE__ */ e(R, { "aria-hidden": "true", className: "size-6" })
284
+ /* @__PURE__ */ e(M, { "aria-hidden": "true", className: "size-6" })
285
285
  ]
286
286
  }
287
287
  )
288
288
  ] }),
289
289
  /* @__PURE__ */ e("div", { className: "mt-6 flow-root", children: /* @__PURE__ */ t("div", { className: "-my-6 divide-y divide-gray-500/10 dark:divide-white/10", children: [
290
- /* @__PURE__ */ e("div", { className: "space-y-2 py-6", children: H.map((s) => /* @__PURE__ */ t(
290
+ /* @__PURE__ */ e("div", { className: "space-y-2 py-6", children: T.map((s) => /* @__PURE__ */ t(
291
291
  "a",
292
292
  {
293
293
  href: s.href,
@@ -357,20 +357,20 @@ function Se() {
357
357
  )
358
358
  ] });
359
359
  }
360
- function Me() {
360
+ function ke() {
361
361
  return /* @__PURE__ */ t(
362
- W,
362
+ Q,
363
363
  {
364
364
  as: "nav",
365
365
  className: "relative bg-white shadow dark:bg-gray-800/50 dark:shadow-none dark:after:pointer-events-none dark:after:absolute dark:after:inset-x-0 dark:after:bottom-0 dark:after:h-px dark:after:bg-white/10",
366
366
  children: [
367
367
  /* @__PURE__ */ e("div", { className: "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ t("div", { className: "flex h-16 justify-between", children: [
368
368
  /* @__PURE__ */ t("div", { className: "flex", children: [
369
- /* @__PURE__ */ e("div", { className: "-ml-2 mr-2 flex items-center md:hidden", children: /* @__PURE__ */ t(p, { className: "group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white", children: [
369
+ /* @__PURE__ */ e("div", { className: "-ml-2 mr-2 flex items-center md:hidden", children: /* @__PURE__ */ t(u, { className: "group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white", children: [
370
370
  /* @__PURE__ */ e("span", { className: "absolute -inset-0.5" }),
371
371
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Open main menu" }),
372
- /* @__PURE__ */ e($, { "aria-hidden": "true", className: "block size-6 group-data-[open]:hidden" }),
373
- /* @__PURE__ */ e(R, { "aria-hidden": "true", className: "hidden size-6 group-data-[open]:block" })
372
+ /* @__PURE__ */ e(P, { "aria-hidden": "true", className: "block size-6 group-data-[open]:hidden" }),
373
+ /* @__PURE__ */ e(M, { "aria-hidden": "true", className: "hidden size-6 group-data-[open]:block" })
374
374
  ] }) }),
375
375
  /* @__PURE__ */ t("div", { className: "flex shrink-0 items-center", children: [
376
376
  /* @__PURE__ */ e(
@@ -432,7 +432,7 @@ function Me() {
432
432
  type: "button",
433
433
  className: "relative inline-flex items-center gap-x-1.5 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:shadow-none dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500",
434
434
  children: [
435
- /* @__PURE__ */ e(me, { "aria-hidden": "true", className: "-ml-0.5 size-5" }),
435
+ /* @__PURE__ */ e(ne, { "aria-hidden": "true", className: "-ml-0.5 size-5" }),
436
436
  "New Job"
437
437
  ]
438
438
  }
@@ -446,12 +446,12 @@ function Me() {
446
446
  children: [
447
447
  /* @__PURE__ */ e("span", { className: "absolute -inset-1.5" }),
448
448
  /* @__PURE__ */ e("span", { className: "sr-only", children: "View notifications" }),
449
- /* @__PURE__ */ e(T, { "aria-hidden": "true", className: "size-6" })
449
+ /* @__PURE__ */ e($, { "aria-hidden": "true", className: "size-6" })
450
450
  ]
451
451
  }
452
452
  ),
453
- /* @__PURE__ */ t(U, { as: "div", className: "relative ml-3", children: [
454
- /* @__PURE__ */ t(X, { className: "relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500", children: [
453
+ /* @__PURE__ */ t(X, { as: "div", className: "relative ml-3", children: [
454
+ /* @__PURE__ */ t(U, { className: "relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500", children: [
455
455
  /* @__PURE__ */ e("span", { className: "absolute -inset-1.5" }),
456
456
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Open user menu" }),
457
457
  /* @__PURE__ */ e(
@@ -469,7 +469,7 @@ function Me() {
469
469
  transition: !0,
470
470
  className: "absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg outline outline-1 outline-black/5 transition data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",
471
471
  children: [
472
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
472
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
473
473
  "a",
474
474
  {
475
475
  href: "#",
@@ -477,7 +477,7 @@ function Me() {
477
477
  children: "Your profile"
478
478
  }
479
479
  ) }),
480
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
480
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
481
481
  "a",
482
482
  {
483
483
  href: "#",
@@ -485,7 +485,7 @@ function Me() {
485
485
  children: "Settings"
486
486
  }
487
487
  ) }),
488
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
488
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
489
489
  "a",
490
490
  {
491
491
  href: "#",
@@ -500,10 +500,10 @@ function Me() {
500
500
  ] })
501
501
  ] })
502
502
  ] }) }),
503
- /* @__PURE__ */ t(J, { className: "md:hidden", children: [
503
+ /* @__PURE__ */ t(W, { className: "md:hidden", children: [
504
504
  /* @__PURE__ */ t("div", { className: "space-y-1 pb-3 pt-2", children: [
505
505
  /* @__PURE__ */ e(
506
- p,
506
+ u,
507
507
  {
508
508
  as: "a",
509
509
  href: "#",
@@ -512,7 +512,7 @@ function Me() {
512
512
  }
513
513
  ),
514
514
  /* @__PURE__ */ e(
515
- p,
515
+ u,
516
516
  {
517
517
  as: "a",
518
518
  href: "#",
@@ -521,7 +521,7 @@ function Me() {
521
521
  }
522
522
  ),
523
523
  /* @__PURE__ */ e(
524
- p,
524
+ u,
525
525
  {
526
526
  as: "a",
527
527
  href: "#",
@@ -530,7 +530,7 @@ function Me() {
530
530
  }
531
531
  ),
532
532
  /* @__PURE__ */ e(
533
- p,
533
+ u,
534
534
  {
535
535
  as: "a",
536
536
  href: "#",
@@ -561,14 +561,14 @@ function Me() {
561
561
  children: [
562
562
  /* @__PURE__ */ e("span", { className: "absolute -inset-1.5" }),
563
563
  /* @__PURE__ */ e("span", { className: "sr-only", children: "View notifications" }),
564
- /* @__PURE__ */ e(T, { "aria-hidden": "true", className: "size-6" })
564
+ /* @__PURE__ */ e($, { "aria-hidden": "true", className: "size-6" })
565
565
  ]
566
566
  }
567
567
  )
568
568
  ] }),
569
569
  /* @__PURE__ */ t("div", { className: "mt-3 space-y-1", children: [
570
570
  /* @__PURE__ */ e(
571
- p,
571
+ u,
572
572
  {
573
573
  as: "a",
574
574
  href: "#",
@@ -577,7 +577,7 @@ function Me() {
577
577
  }
578
578
  ),
579
579
  /* @__PURE__ */ e(
580
- p,
580
+ u,
581
581
  {
582
582
  as: "a",
583
583
  href: "#",
@@ -586,7 +586,7 @@ function Me() {
586
586
  }
587
587
  ),
588
588
  /* @__PURE__ */ e(
589
- p,
589
+ u,
590
590
  {
591
591
  as: "a",
592
592
  href: "#",
@@ -601,24 +601,24 @@ function Me() {
601
601
  }
602
602
  );
603
603
  }
604
- function xe({ item: a, onHover: h }) {
605
- const s = I(null);
606
- return /* @__PURE__ */ e(C, { children: ({ open: u }) => /* @__PURE__ */ t(
604
+ function de({ item: a, onHover: d }) {
605
+ const s = B(null);
606
+ return /* @__PURE__ */ e(N, { children: ({ open: h }) => /* @__PURE__ */ t(
607
607
  "div",
608
608
  {
609
609
  className: "relative",
610
610
  onMouseEnter: () => {
611
611
  var i;
612
- h && !u && ((i = s.current) == null || i.click());
612
+ d && !h && ((i = s.current) == null || i.click());
613
613
  },
614
614
  onMouseLeave: () => {
615
615
  var i;
616
- h && u && ((i = s.current) == null || i.click());
616
+ d && h && ((i = s.current) == null || i.click());
617
617
  },
618
618
  children: [
619
619
  /* @__PURE__ */ t("div", { className: "flex items-center gap-x-1", children: [
620
620
  a.useLink ? /* @__PURE__ */ e(
621
- k,
621
+ f,
622
622
  {
623
623
  href: a.href,
624
624
  className: "text-sm/6 font-semibold text-gray-900 dark:text-white",
@@ -626,13 +626,13 @@ function xe({ item: a, onHover: h }) {
626
626
  }
627
627
  ) : /* @__PURE__ */ e("span", { className: "text-sm/6 font-semibold text-gray-900 dark:text-white", children: a.title }),
628
628
  /* @__PURE__ */ e(
629
- z,
629
+ k,
630
630
  {
631
631
  ref: s,
632
632
  className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white",
633
633
  "aria-label": `Open ${a.title} menu`,
634
634
  children: /* @__PURE__ */ e(
635
- w,
635
+ v,
636
636
  {
637
637
  "aria-hidden": "true",
638
638
  className: "size-5 flex-none"
@@ -642,7 +642,7 @@ function xe({ item: a, onHover: h }) {
642
642
  )
643
643
  ] }),
644
644
  /* @__PURE__ */ t(
645
- j,
645
+ w,
646
646
  {
647
647
  transition: !0,
648
648
  className: "absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",
@@ -653,12 +653,12 @@ function xe({ item: a, onHover: h }) {
653
653
  className: "group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",
654
654
  children: [
655
655
  /* @__PURE__ */ e("div", { className: "flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700", children: (() => {
656
- const n = i.icon;
657
- return n ? x.isValidElement(n) ? x.cloneElement(n, {
656
+ const l = i.icon;
657
+ return l ? m.isValidElement(l) ? m.cloneElement(l, {
658
658
  className: "size-6 text-gray-600 group-hover:text-primary",
659
659
  "aria-hidden": !0
660
- }) : typeof n == "function" ? /* @__PURE__ */ e(
661
- n,
660
+ }) : typeof l == "function" ? /* @__PURE__ */ e(
661
+ l,
662
662
  {
663
663
  "aria-hidden": !0,
664
664
  className: "size-6 text-gray-600 group-hover:text-primary"
@@ -690,12 +690,12 @@ function xe({ item: a, onHover: h }) {
690
690
  className: "flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",
691
691
  children: [
692
692
  (() => {
693
- const n = i.icon;
694
- return n ? x.isValidElement(n) ? x.cloneElement(n, {
693
+ const l = i.icon;
694
+ return l ? m.isValidElement(l) ? m.cloneElement(l, {
695
695
  className: "size-5 flex-none text-gray-400",
696
696
  "aria-hidden": !0
697
- }) : typeof n == "function" ? /* @__PURE__ */ e(
698
- n,
697
+ }) : typeof l == "function" ? /* @__PURE__ */ e(
698
+ l,
699
699
  {
700
700
  "aria-hidden": !0,
701
701
  className: "size-5 flex-none text-gray-400"
@@ -714,23 +714,23 @@ function xe({ item: a, onHover: h }) {
714
714
  }
715
715
  ) });
716
716
  }
717
- function fe({ item: a, onHover: h }) {
718
- const s = I(null);
719
- return /* @__PURE__ */ e(C, { children: ({ open: u }) => /* @__PURE__ */ t(
717
+ function ce({ item: a, onHover: d }) {
718
+ const s = B(null);
719
+ return /* @__PURE__ */ e(N, { children: ({ open: h }) => /* @__PURE__ */ t(
720
720
  "div",
721
721
  {
722
722
  onMouseEnter: () => {
723
723
  var i;
724
- h && !u && ((i = s.current) == null || i.click());
724
+ d && !h && ((i = s.current) == null || i.click());
725
725
  },
726
726
  onMouseLeave: () => {
727
727
  var i;
728
- h && u && ((i = s.current) == null || i.click());
728
+ d && h && ((i = s.current) == null || i.click());
729
729
  },
730
730
  children: [
731
731
  /* @__PURE__ */ t("div", { className: "flex items-center gap-x-1", children: [
732
732
  a.useLink ? /* @__PURE__ */ e(
733
- k,
733
+ f,
734
734
  {
735
735
  href: a.href,
736
736
  className: "text-sm/6 font-semibold text-gray-900",
@@ -738,13 +738,13 @@ function fe({ item: a, onHover: h }) {
738
738
  }
739
739
  ) : /* @__PURE__ */ e("span", { className: "text-sm/6 font-semibold text-gray-900", children: a.title }),
740
740
  /* @__PURE__ */ e(
741
- z,
741
+ k,
742
742
  {
743
743
  ref: s,
744
744
  className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900",
745
745
  "aria-label": `Open ${a.title} menu`,
746
746
  children: /* @__PURE__ */ e(
747
- w,
747
+ v,
748
748
  {
749
749
  "aria-hidden": "true",
750
750
  className: "size-5 flex-none"
@@ -754,7 +754,7 @@ function fe({ item: a, onHover: h }) {
754
754
  )
755
755
  ] }),
756
756
  /* @__PURE__ */ t(
757
- j,
757
+ w,
758
758
  {
759
759
  transition: !0,
760
760
  className: "absolute inset-x-0 top-0 -z-10 bg-white pt-14 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",
@@ -772,12 +772,12 @@ function fe({ item: a, onHover: h }) {
772
772
  className: "h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"
773
773
  }
774
774
  ) }) : /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white", children: (() => {
775
- const n = i.icon;
776
- return n ? x.isValidElement(n) ? x.cloneElement(n, {
775
+ const l = i.icon;
776
+ return l ? m.isValidElement(l) ? m.cloneElement(l, {
777
777
  className: "size-6 text-gray-600 group-hover:text-primary",
778
778
  "aria-hidden": !0
779
- }) : typeof n == "function" ? /* @__PURE__ */ e(
780
- n,
779
+ }) : typeof l == "function" ? /* @__PURE__ */ e(
780
+ l,
781
781
  {
782
782
  "aria-hidden": !0,
783
783
  className: "size-6 text-gray-600 group-hover:text-primary"
@@ -807,12 +807,12 @@ function fe({ item: a, onHover: h }) {
807
807
  className: "flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",
808
808
  children: [
809
809
  (() => {
810
- const n = i.icon;
811
- return n ? x.isValidElement(n) ? x.cloneElement(n, {
810
+ const l = i.icon;
811
+ return l ? m.isValidElement(l) ? m.cloneElement(l, {
812
812
  className: "size-5 flex-none text-gray-400",
813
813
  "aria-hidden": !0
814
- }) : typeof n == "function" ? /* @__PURE__ */ e(
815
- n,
814
+ }) : typeof l == "function" ? /* @__PURE__ */ e(
815
+ l,
816
816
  {
817
817
  "aria-hidden": !0,
818
818
  className: "size-5 flex-none text-gray-400"
@@ -831,26 +831,26 @@ function fe({ item: a, onHover: h }) {
831
831
  }
832
832
  ) }, a.id);
833
833
  }
834
- function pe({ item: a, onHover: h }) {
835
- const s = I(null);
836
- return /* @__PURE__ */ e(C, { children: ({ open: u }) => {
837
- var i, n;
834
+ function he({ item: a, onHover: d }) {
835
+ const s = B(null);
836
+ return /* @__PURE__ */ e(N, { children: ({ open: h }) => {
837
+ var i, l;
838
838
  return /* @__PURE__ */ t(
839
839
  "div",
840
840
  {
841
841
  className: "relative",
842
842
  onMouseEnter: () => {
843
- var c;
844
- h && !u && ((c = s.current) == null || c.click());
843
+ var n;
844
+ d && !h && ((n = s.current) == null || n.click());
845
845
  },
846
846
  onMouseLeave: () => {
847
- var c;
848
- h && u && ((c = s.current) == null || c.click());
847
+ var n;
848
+ d && h && ((n = s.current) == null || n.click());
849
849
  },
850
850
  children: [
851
851
  /* @__PURE__ */ t("div", { className: "flex items-center gap-x-1", children: [
852
852
  a.useLink ? /* @__PURE__ */ e(
853
- k,
853
+ f,
854
854
  {
855
855
  href: a.href,
856
856
  className: "text-sm/6 font-semibold text-gray-900",
@@ -858,13 +858,13 @@ function pe({ item: a, onHover: h }) {
858
858
  }
859
859
  ) : /* @__PURE__ */ e("span", { className: "text-sm/6 font-semibold text-gray-900", children: a.title }),
860
860
  /* @__PURE__ */ e(
861
- z,
861
+ k,
862
862
  {
863
863
  ref: s,
864
864
  className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900",
865
865
  "aria-label": `Open ${a.title} menu`,
866
866
  children: /* @__PURE__ */ e(
867
- w,
867
+ v,
868
868
  {
869
869
  "aria-hidden": "true",
870
870
  className: "size-5 flex-none"
@@ -874,57 +874,57 @@ function pe({ item: a, onHover: h }) {
874
874
  )
875
875
  ] }),
876
876
  /* @__PURE__ */ e(
877
- j,
877
+ w,
878
878
  {
879
879
  transition: !0,
880
880
  className: "absolute left-1/2 z-10 mt-3 w-72 -translate-x-1/2 overflow-hidden rounded-2xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",
881
881
  children: /* @__PURE__ */ t("ul", { className: "space-y-1", children: [
882
- (i = a.subMenu) == null ? void 0 : i.map((c) => /* @__PURE__ */ e("li", { className: "group", children: /* @__PURE__ */ t(
883
- k,
882
+ (i = a.subMenu) == null ? void 0 : i.map((n) => /* @__PURE__ */ e("li", { className: "group", children: /* @__PURE__ */ t(
883
+ f,
884
884
  {
885
- href: c.href,
885
+ href: n.href,
886
886
  className: "flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",
887
887
  children: [
888
888
  (() => {
889
- const m = c.icon;
890
- return m ? x.isValidElement(m) ? x.cloneElement(m, {
889
+ const c = n.icon;
890
+ return c ? m.isValidElement(c) ? m.cloneElement(c, {
891
891
  className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary",
892
892
  "aria-hidden": !0
893
- }) : typeof m == "function" ? /* @__PURE__ */ e(
894
- m,
893
+ }) : typeof c == "function" ? /* @__PURE__ */ e(
894
+ c,
895
895
  {
896
896
  "aria-hidden": !0,
897
897
  className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"
898
898
  }
899
- ) : null : /* @__PURE__ */ e(F, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
899
+ ) : null : /* @__PURE__ */ e(H, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
900
900
  })(),
901
- /* @__PURE__ */ e("span", { children: c.title })
901
+ /* @__PURE__ */ e("span", { children: n.title })
902
902
  ]
903
903
  }
904
- ) }, c.title)),
905
- (n = a.ctas) == null ? void 0 : n.map((c) => /* @__PURE__ */ e("li", { className: "group", children: /* @__PURE__ */ t(
904
+ ) }, n.title)),
905
+ (l = a.ctas) == null ? void 0 : l.map((n) => /* @__PURE__ */ e("li", { className: "group", children: /* @__PURE__ */ t(
906
906
  "a",
907
907
  {
908
- href: c.href,
908
+ href: n.href,
909
909
  className: "flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",
910
910
  children: [
911
911
  (() => {
912
- const m = c.icon;
913
- return m ? x.isValidElement(m) ? x.cloneElement(m, {
912
+ const c = n.icon;
913
+ return c ? m.isValidElement(c) ? m.cloneElement(c, {
914
914
  className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary",
915
915
  "aria-hidden": !0
916
- }) : typeof m == "function" ? /* @__PURE__ */ e(
917
- m,
916
+ }) : typeof c == "function" ? /* @__PURE__ */ e(
917
+ c,
918
918
  {
919
919
  "aria-hidden": !0,
920
920
  className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"
921
921
  }
922
- ) : null : /* @__PURE__ */ e(F, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
922
+ ) : null : /* @__PURE__ */ e(H, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
923
923
  })(),
924
- /* @__PURE__ */ e("span", { children: c.title })
924
+ /* @__PURE__ */ e("span", { children: n.title })
925
925
  ]
926
926
  }
927
- ) }, c.title))
927
+ ) }, n.title))
928
928
  ] })
929
929
  }
930
930
  )
@@ -933,22 +933,22 @@ function pe({ item: a, onHover: h }) {
933
933
  );
934
934
  } });
935
935
  }
936
- function ye({
936
+ function me({
937
937
  config: a,
938
- onScrolledChange: h,
938
+ onScrolledChange: d,
939
939
  scrollThreshold: s = 10,
940
- quickSearchResults: u = []
940
+ quickSearchResults: h = []
941
941
  }) {
942
- const [i, n] = N(!1), [c, m] = N(!1), [y, b] = N(!1), [S, M] = N("");
943
- return Q(() => {
944
- typeof (a == null ? void 0 : a.onSearchOpenChange) == "function" && a.onSearchOpenChange(y), y || (M(""), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults());
945
- }, [y]), Q(() => {
942
+ const [i, l] = b(!1), [n, c] = b(!1), [g, x] = b(!1), [C, z] = b("");
943
+ return R(() => {
944
+ typeof (a == null ? void 0 : a.onSearchOpenChange) == "function" && a.onSearchOpenChange(g), g || (z(""), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults());
945
+ }, [g]), R(() => {
946
946
  const r = () => {
947
- const d = window.scrollY > s;
948
- m((g) => (g !== d && typeof h == "function" && h(d), d));
947
+ const o = window.scrollY > s;
948
+ c((p) => (p !== o && typeof d == "function" && d(o), o));
949
949
  };
950
950
  return r(), window.addEventListener("scroll", r, { passive: !0 }), () => window.removeEventListener("scroll", r);
951
- }, [h, s]), /* @__PURE__ */ t(
951
+ }, [d, s]), /* @__PURE__ */ t(
952
952
  "header",
953
953
  {
954
954
  className: `${a != null && a.sticky ? "sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70" : "relative z-10"} isolate bg-white`,
@@ -959,21 +959,21 @@ function ye({
959
959
  "aria-label": "Global",
960
960
  className: "mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",
961
961
  children: [
962
- /* @__PURE__ */ e("div", { className: "flex lg:flex-1", children: /* @__PURE__ */ e(k, { href: "/", "aria-label": a.logoAlt || "Home", children: a.logo ? /* @__PURE__ */ e(
962
+ /* @__PURE__ */ e("div", { className: "flex lg:flex-1", children: /* @__PURE__ */ e(f, { href: "/", "aria-label": a.logoAlt || "Home", children: a.logo ? /* @__PURE__ */ e(
963
963
  "img",
964
964
  {
965
965
  alt: a.logoAlt || "Logo",
966
966
  src: a.logo,
967
- className: `w-auto transition-all duration-300 ${c ? "h-8 md:h-14" : "h-12 md:h-20"}`
967
+ className: `w-auto transition-all duration-300 ${n ? "h-8 md:h-14" : "h-12 md:h-20"}`
968
968
  }
969
969
  ) : /* @__PURE__ */ e(
970
970
  "div",
971
971
  {
972
- className: `h-auto transition-all duration-300 ${c ? "w-28" : "w-32"}`,
972
+ className: `h-auto transition-all duration-300 ${n ? "w-28" : "w-32"}`,
973
973
  children: /* @__PURE__ */ e(
974
974
  "h1",
975
975
  {
976
- className: `transition-all duration-300 ${c ? "text-xl" : "text-2xl"}`,
976
+ className: `transition-all duration-300 ${n ? "text-xl" : "text-2xl"}`,
977
977
  children: a.fallbackText || "<NovaNav>"
978
978
  }
979
979
  )
@@ -983,39 +983,39 @@ function ye({
983
983
  "button",
984
984
  {
985
985
  type: "button",
986
- onClick: () => n(!0),
986
+ onClick: () => l(!0),
987
987
  className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
988
988
  children: [
989
989
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Open main menu" }),
990
- /* @__PURE__ */ e($, { "aria-hidden": "true", className: "size-6" })
990
+ /* @__PURE__ */ e(P, { "aria-hidden": "true", className: "size-6" })
991
991
  ]
992
992
  }
993
993
  ) }),
994
994
  /* @__PURE__ */ e(G, { className: "hidden lg:flex lg:gap-x-12", children: a.menuItems.map((r) => {
995
- const d = r.type || (r.full ? "full" : "default");
996
- return r.subMenu ? d === "full" ? /* @__PURE__ */ e(
997
- fe,
995
+ const o = r.type || (r.full ? "full" : "default");
996
+ return r.subMenu ? o === "full" ? /* @__PURE__ */ e(
997
+ ce,
998
998
  {
999
999
  item: r,
1000
1000
  onHover: r.onHover
1001
1001
  },
1002
1002
  r.id || r.title
1003
- ) : d === "simple" ? /* @__PURE__ */ e(
1004
- pe,
1003
+ ) : o === "simple" ? /* @__PURE__ */ e(
1004
+ he,
1005
1005
  {
1006
1006
  item: r,
1007
1007
  onHover: r.onHover
1008
1008
  },
1009
1009
  r.id || r.title
1010
1010
  ) : /* @__PURE__ */ e(
1011
- xe,
1011
+ de,
1012
1012
  {
1013
1013
  item: r,
1014
1014
  onHover: r.onHover
1015
1015
  },
1016
1016
  r.id || r.title
1017
1017
  ) : r.useLink ? /* @__PURE__ */ e(
1018
- k,
1018
+ f,
1019
1019
  {
1020
1020
  href: r.href,
1021
1021
  className: "text-sm/6 font-semibold text-gray-900",
@@ -1032,53 +1032,53 @@ function ye({
1032
1032
  r.id
1033
1033
  );
1034
1034
  }) }),
1035
- /* @__PURE__ */ t("div", { className: "hidden gap-4 lg:flex lg:flex-1 lg:justify-end", children: [
1035
+ /* @__PURE__ */ t("div", { className: "hidden gap-4 lg:flex lg:flex-1 lg:justify-end items-center", children: [
1036
1036
  a.search && /* @__PURE__ */ e(
1037
1037
  "button",
1038
1038
  {
1039
1039
  type: "button",
1040
- onClick: () => b(!0),
1040
+ onClick: () => x(!0),
1041
1041
  className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100",
1042
1042
  "aria-label": "Open search",
1043
- children: /* @__PURE__ */ e(q, { "aria-hidden": "true", className: "size-6" })
1043
+ children: /* @__PURE__ */ e(F, { "aria-hidden": "true", className: "size-6" })
1044
+ }
1045
+ ),
1046
+ a.cta && /* @__PURE__ */ e(
1047
+ "a",
1048
+ {
1049
+ href: a.ctaBtnHref,
1050
+ className: "rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",
1051
+ children: a.ctaTitle || "Sign up"
1044
1052
  }
1045
1053
  ),
1046
1054
  a.login && /* @__PURE__ */ t(
1047
1055
  "a",
1048
1056
  {
1049
1057
  href: a.loginHref,
1050
- className: "text-sm/6 font-semibold text-gray-900",
1058
+ className: "rounded-md flex items-center px-3 py-2 text-sm font-semibold text-gray-900 hover:bg-gray-100 flex items-center",
1051
1059
  children: [
1052
1060
  "Log in ",
1053
1061
  /* @__PURE__ */ e("span", { "aria-hidden": "true", children: "→" })
1054
1062
  ]
1055
1063
  }
1056
- ),
1057
- a.cta && /* @__PURE__ */ e(
1058
- "a",
1059
- {
1060
- href: a.ctaBtnHref,
1061
- className: "rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",
1062
- children: a.ctaTitle || "Sign up"
1063
- }
1064
1064
  )
1065
1065
  ] })
1066
1066
  ]
1067
1067
  }
1068
1068
  ),
1069
- /* @__PURE__ */ t(B, { open: y, onClose: b, children: [
1069
+ /* @__PURE__ */ t(L, { open: g, onClose: x, children: [
1070
1070
  /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 bg-black/30" }),
1071
- /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ t(D, { className: "w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10", children: [
1071
+ /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ t(O, { className: "w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10", children: [
1072
1072
  /* @__PURE__ */ t("div", { className: "flex items-center justify-between pb-2", children: [
1073
1073
  /* @__PURE__ */ e("h2", { className: "text-base font-semibold text-gray-900", children: "Search" }),
1074
1074
  /* @__PURE__ */ e(
1075
1075
  "button",
1076
1076
  {
1077
1077
  type: "button",
1078
- onClick: () => b(!1),
1078
+ onClick: () => x(!1),
1079
1079
  className: "-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100",
1080
1080
  "aria-label": "Close search",
1081
- children: /* @__PURE__ */ e(R, { "aria-hidden": "true", className: "size-5" })
1081
+ children: /* @__PURE__ */ e(M, { "aria-hidden": "true", className: "size-5" })
1082
1082
  }
1083
1083
  )
1084
1084
  ] }),
@@ -1087,7 +1087,7 @@ function ye({
1087
1087
  {
1088
1088
  className: "mt-2",
1089
1089
  onSubmit: (r) => {
1090
- r.preventDefault(), typeof (a == null ? void 0 : a.onSearch) == "function" && a.onSearch(S), b(!1);
1090
+ r.preventDefault(), typeof (a == null ? void 0 : a.onSearch) == "function" && a.onSearch(C), x(!1);
1091
1091
  },
1092
1092
  children: [
1093
1093
  /* @__PURE__ */ e("label", { htmlFor: "site-search", className: "sr-only", children: "Search" }),
@@ -1099,10 +1099,10 @@ function ye({
1099
1099
  type: "search",
1100
1100
  placeholder: "Search...",
1101
1101
  autoFocus: !0,
1102
- value: S,
1102
+ value: C,
1103
1103
  onChange: (r) => {
1104
- const d = r.target.value;
1105
- M(d), typeof (a == null ? void 0 : a.onSearchChange) == "function" && a.onSearchChange(d);
1104
+ const o = r.target.value;
1105
+ z(o), typeof (a == null ? void 0 : a.onSearchChange) == "function" && a.onSearchChange(o);
1106
1106
  },
1107
1107
  className: "w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-gray-900 focus:outline-none focus:ring-2 focus:ring-gray-900"
1108
1108
  }
@@ -1119,66 +1119,66 @@ function ye({
1119
1119
  ]
1120
1120
  }
1121
1121
  ),
1122
- Array.isArray(u) && u.length > 0 && /* @__PURE__ */ e("div", { className: "mt-4 divide-y divide-gray-200", children: u.map((r, d) => {
1122
+ Array.isArray(h) && h.length > 0 && /* @__PURE__ */ e("div", { className: "mt-4 divide-y divide-gray-200", children: h.map((r, o) => {
1123
1123
  if (!r || typeof r != "object") return null;
1124
- const g = r.title || r.q || r.name || "Result", v = r.desc || r.description || r.summary || r.a || "", o = typeof (a == null ? void 0 : a.searchTitleMax) == "number" ? a.searchTitleMax : 60, E = typeof (a == null ? void 0 : a.searchDescMax) == "number" ? a.searchDescMax : 100, A = typeof g == "string" && g.length > o ? `${g.slice(0, o - 1)}…` : g, L = typeof v == "string" && v.length > E ? `${v.slice(0, E - 1)}…` : v, l = typeof r.link == "string" ? r.link : void 0, f = typeof l == "string" && l.startsWith("/"), O = /* @__PURE__ */ t("div", { className: "flex items-start gap-3 py-3", children: [
1124
+ const p = r.title || r.q || r.name || "Result", j = r.desc || r.description || r.summary || r.a || "", D = typeof (a == null ? void 0 : a.searchTitleMax) == "number" ? a.searchTitleMax : 60, A = typeof (a == null ? void 0 : a.searchDescMax) == "number" ? a.searchDescMax : 100, q = typeof p == "string" && p.length > D ? `${p.slice(0, D - 1)}…` : p, I = typeof j == "string" && j.length > A ? `${j.slice(0, A - 1)}…` : j, y = typeof r.link == "string" ? r.link : void 0, J = typeof y == "string" && y.startsWith("/"), S = /* @__PURE__ */ t("div", { className: "flex items-start gap-3 py-3", children: [
1125
1125
  r != null && r.icon ? /* @__PURE__ */ e("div", { className: "mt-0.5 h-6 w-6 text-gray-500", children: r.icon }) : r != null && r.image ? /* @__PURE__ */ e(
1126
1126
  "img",
1127
1127
  {
1128
1128
  src: r.image,
1129
- alt: g,
1129
+ alt: p,
1130
1130
  className: "mt-0.5 h-6 w-6 rounded object-cover"
1131
1131
  }
1132
1132
  ) : /* @__PURE__ */ e(
1133
- q,
1133
+ F,
1134
1134
  {
1135
1135
  "aria-hidden": "true",
1136
1136
  className: "mt-0.5 size-6 text-gray-400"
1137
1137
  }
1138
1138
  ),
1139
1139
  /* @__PURE__ */ t("div", { children: [
1140
- /* @__PURE__ */ e("div", { className: "text-sm font-medium text-gray-900 truncate", children: A }),
1141
- L ? /* @__PURE__ */ e("div", { className: "text-sm text-gray-500 truncate", children: L }) : null
1140
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium text-gray-900 truncate", children: q }),
1141
+ I ? /* @__PURE__ */ e("div", { className: "text-sm text-gray-500 truncate", children: I }) : null
1142
1142
  ] })
1143
1143
  ] });
1144
- return l ? f ? /* @__PURE__ */ e(
1144
+ return y ? J ? /* @__PURE__ */ e(
1145
1145
  "a",
1146
1146
  {
1147
- href: l,
1147
+ href: y,
1148
1148
  className: "block hover:bg-gray-50",
1149
1149
  onClick: () => {
1150
- typeof (a == null ? void 0 : a.onBeginNavigate) == "function" && a.onBeginNavigate(), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults(), b(!1);
1150
+ typeof (a == null ? void 0 : a.onBeginNavigate) == "function" && a.onBeginNavigate(), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults(), x(!1);
1151
1151
  },
1152
- children: O
1152
+ children: S
1153
1153
  },
1154
- l || d
1154
+ y || o
1155
1155
  ) : /* @__PURE__ */ e(
1156
1156
  "a",
1157
1157
  {
1158
- href: l,
1158
+ href: y,
1159
1159
  className: "block hover:bg-gray-50",
1160
1160
  onClick: () => {
1161
- typeof (a == null ? void 0 : a.onBeginNavigate) == "function" && a.onBeginNavigate(), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults(), b(!1);
1161
+ typeof (a == null ? void 0 : a.onBeginNavigate) == "function" && a.onBeginNavigate(), typeof (a == null ? void 0 : a.onClearQuickResults) == "function" && a.onClearQuickResults(), x(!1);
1162
1162
  },
1163
- children: O
1163
+ children: S
1164
1164
  },
1165
- l || d
1166
- ) : /* @__PURE__ */ e("div", { className: "block hover:bg-gray-50", children: O }, d);
1165
+ y || o
1166
+ ) : /* @__PURE__ */ e("div", { className: "block hover:bg-gray-50", children: S }, o);
1167
1167
  }) })
1168
1168
  ] }) })
1169
1169
  ] }),
1170
1170
  /* @__PURE__ */ t(
1171
- B,
1171
+ L,
1172
1172
  {
1173
1173
  open: i,
1174
- onClose: n,
1174
+ onClose: l,
1175
1175
  className: "lg:hidden",
1176
1176
  children: [
1177
1177
  /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50" }),
1178
- /* @__PURE__ */ t(D, { className: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10", children: [
1178
+ /* @__PURE__ */ t(O, { className: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10", children: [
1179
1179
  /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
1180
1180
  /* @__PURE__ */ e(
1181
- k,
1181
+ f,
1182
1182
  {
1183
1183
  href: "/",
1184
1184
  className: "-m-1.5 p-1.5",
@@ -1197,42 +1197,42 @@ function ye({
1197
1197
  "button",
1198
1198
  {
1199
1199
  type: "button",
1200
- onClick: () => n(!1),
1200
+ onClick: () => l(!1),
1201
1201
  className: "-m-2.5 rounded-md p-2.5 text-gray-700",
1202
1202
  children: [
1203
1203
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close menu" }),
1204
- /* @__PURE__ */ e(R, { "aria-hidden": "true", className: "size-6" })
1204
+ /* @__PURE__ */ e(M, { "aria-hidden": "true", className: "size-6" })
1205
1205
  ]
1206
1206
  }
1207
1207
  )
1208
1208
  ] }),
1209
1209
  /* @__PURE__ */ e("div", { className: "mt-6 flow-root", children: /* @__PURE__ */ t("div", { className: "-my-6 divide-y divide-gray-500/10", children: [
1210
1210
  /* @__PURE__ */ e("div", { className: "space-y-2 py-6", children: a.menuItems.map(
1211
- (r) => r.subMenu ? /* @__PURE__ */ t(W, { as: "div", className: "-mx-3", children: [
1212
- /* @__PURE__ */ t(p, { className: "group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50", children: [
1211
+ (r) => r.subMenu ? /* @__PURE__ */ t(Q, { as: "div", className: "-mx-3", children: [
1212
+ /* @__PURE__ */ t(u, { className: "group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50", children: [
1213
1213
  r.title,
1214
1214
  /* @__PURE__ */ e(
1215
- w,
1215
+ v,
1216
1216
  {
1217
1217
  "aria-hidden": "true",
1218
1218
  className: "size-5 flex-none group-data-[open]:rotate-180"
1219
1219
  }
1220
1220
  )
1221
1221
  ] }),
1222
- /* @__PURE__ */ e(J, { className: "mt-2 space-y-2", children: [...r.subMenu, ...r.ctas || []].map(
1223
- (d) => /* @__PURE__ */ e(
1224
- p,
1222
+ /* @__PURE__ */ e(W, { className: "mt-2 space-y-2", children: [...r.subMenu, ...r.ctas || []].map(
1223
+ (o) => /* @__PURE__ */ e(
1224
+ u,
1225
1225
  {
1226
1226
  as: "a",
1227
- href: d.href,
1227
+ href: o.href,
1228
1228
  className: "block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",
1229
- children: d.title
1229
+ children: o.title
1230
1230
  },
1231
- d.title
1231
+ o.title
1232
1232
  )
1233
1233
  ) })
1234
1234
  ] }, r.id) : r.useLink ? /* @__PURE__ */ e(
1235
- k,
1235
+ f,
1236
1236
  {
1237
1237
  href: r.href,
1238
1238
  className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",
@@ -1250,6 +1250,14 @@ function ye({
1250
1250
  )
1251
1251
  ) }),
1252
1252
  /* @__PURE__ */ t("div", { className: "space-y-2 py-6", children: [
1253
+ a.cta && /* @__PURE__ */ e(
1254
+ "a",
1255
+ {
1256
+ href: a.ctaBtnHref,
1257
+ className: "-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",
1258
+ children: a.ctaTitle || "Sign up"
1259
+ }
1260
+ ),
1253
1261
  a.login && /* @__PURE__ */ t(
1254
1262
  "a",
1255
1263
  {
@@ -1260,14 +1268,6 @@ function ye({
1260
1268
  /* @__PURE__ */ e("span", { "aria-hidden": "true", children: "→" })
1261
1269
  ]
1262
1270
  }
1263
- ),
1264
- a.cta && /* @__PURE__ */ e(
1265
- "a",
1266
- {
1267
- href: a.ctaBtnHref,
1268
- className: "-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",
1269
- children: a.ctaTitle || "Sign up"
1270
- }
1271
1271
  )
1272
1272
  ] })
1273
1273
  ] }) })
@@ -1279,112 +1279,56 @@ function ye({
1279
1279
  }
1280
1280
  );
1281
1281
  }
1282
- function be() {
1282
+ function ue() {
1283
1283
  return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center", children: /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center space-y-4", children: [
1284
1284
  /* @__PURE__ */ e(se, { className: "inset-shadow-sm 8 h-16 w-16 animate-[spin_2s_linear_infinite] rounded-full border-4 border-t-4 border-solid border-white text-5xl font-black text-primary" }),
1285
1285
  /* @__PURE__ */ e("div", { className: "mt-16 flex w-full items-center justify-center py-8", children: /* @__PURE__ */ e("p", { className: "text-xl font-thin uppercase tracking-widest text-primary", children: "Loading..." }) })
1286
1286
  ] }) }) });
1287
1287
  }
1288
- function Ee({ baseConfig: a }) {
1289
- const [h, s] = N([]), [u, i] = N(""), n = I(null), [c, m] = N(!1), y = async (d) => {
1290
- const g = (d || "").trim();
1291
- if (!g) {
1292
- s([]);
1293
- return;
1294
- }
1295
- try {
1296
- const v = await fetch(`/api/search?q=${encodeURIComponent(g)}`);
1297
- if (!v.ok) throw new Error("search failed");
1298
- const o = await v.json(), E = [
1299
- ...Array.isArray(o == null ? void 0 : o.services) ? o.services : [],
1300
- ...Array.isArray(o == null ? void 0 : o.faqs) ? o.faqs : [],
1301
- ...Array.isArray(o == null ? void 0 : o.gallery) ? o.gallery : [],
1302
- ...Array.isArray(o == null ? void 0 : o.posts) ? o.posts : [],
1303
- ...Array.isArray(o == null ? void 0 : o.projects) ? o.projects : [],
1304
- ...Array.isArray(o == null ? void 0 : o.locations) ? o.locations : []
1305
- ].filter((l) => l && typeof l == "object"), A = /* @__PURE__ */ new Set(), L = E.filter((l) => {
1306
- const f = `${(l.link || "").toLowerCase()}|${(l.title || l.q || "").toLowerCase()}`;
1307
- return A.has(f) ? !1 : (A.add(f), !0);
1308
- }).map((l) => {
1309
- if (l != null && l.icon) return l;
1310
- const f = "h-6 w-6 text-gray-400";
1311
- switch (l == null ? void 0 : l.kind) {
1312
- case "faq":
1313
- return {
1314
- ...l,
1315
- icon: /* @__PURE__ */ e(
1316
- de,
1317
- {
1318
- "aria-hidden": "true",
1319
- className: f
1320
- }
1321
- )
1322
- };
1323
- case "service":
1324
- return {
1325
- ...l,
1326
- icon: /* @__PURE__ */ e(
1327
- ue,
1328
- {
1329
- "aria-hidden": "true",
1330
- className: f
1331
- }
1332
- )
1333
- };
1334
- case "project":
1335
- return {
1336
- ...l,
1337
- icon: /* @__PURE__ */ e(oe, { "aria-hidden": "true", className: f })
1338
- };
1339
- case "post":
1340
- return {
1341
- ...l,
1342
- icon: /* @__PURE__ */ e(le, { "aria-hidden": "true", className: f })
1343
- };
1344
- case "gallery":
1345
- return {
1346
- ...l,
1347
- icon: /* @__PURE__ */ e(ne, { "aria-hidden": "true", className: f })
1348
- };
1349
- case "location":
1350
- return {
1351
- ...l,
1352
- icon: /* @__PURE__ */ e(ie, { "aria-hidden": "true", className: f })
1353
- };
1354
- default:
1355
- return l;
1356
- }
1357
- });
1358
- s(L);
1359
- } catch {
1360
- s([]);
1288
+ function we({
1289
+ baseConfig: a,
1290
+ // shape and content of the nav, excluding search-related props
1291
+ quickSearchResults: d = [],
1292
+ // array of items to show in the quick search results flyout
1293
+ onSearchChange: s,
1294
+ // callback for when the search input value changes, receives the new value as an argument
1295
+ onSearch: h,
1296
+ // callback for when a search is submitted, receives the search query as an argument
1297
+ onSearchOpenChange: i,
1298
+ onClearQuickResults: l
1299
+ }) {
1300
+ const [n, c] = b(!1), g = (r) => {
1301
+ typeof s == "function" && s(r);
1302
+ }, x = (r) => {
1303
+ const o = (r || "").trim();
1304
+ if (o) {
1305
+ if (typeof h == "function") {
1306
+ h(o);
1307
+ return;
1308
+ }
1309
+ c(!0), typeof window < "u" && (window.location.href = `/search?q=${encodeURIComponent(o)}`);
1361
1310
  }
1362
- }, b = (d) => {
1363
- i(d), n.current && clearTimeout(n.current), n.current = setTimeout(() => y(d), 300);
1364
- }, S = (d) => {
1365
- const g = (d || "").trim();
1366
- g && (m(!0), typeof window < "u" && (window.location.href = `/search?q=${encodeURIComponent(g)}`));
1367
- }, M = (d) => {
1368
- d || (i(""), s([]), n.current && clearTimeout(n.current));
1369
- }, r = _(
1311
+ }, C = (r) => {
1312
+ typeof i == "function" && i(r), !r && typeof l == "function" && l();
1313
+ }, z = _(
1370
1314
  () => ({
1371
1315
  ...a,
1372
1316
  search: !0,
1373
- onSearchChange: b,
1374
- onSearch: S,
1375
- onSearchOpenChange: M,
1376
- onClearQuickResults: () => s([]),
1377
- onBeginNavigate: () => m(!0)
1317
+ onSearchChange: g,
1318
+ onSearch: x,
1319
+ onSearchOpenChange: C,
1320
+ onClearQuickResults: l,
1321
+ onBeginNavigate: () => c(!0)
1378
1322
  }),
1379
- [a]
1323
+ [a, l]
1380
1324
  );
1381
1325
  return /* @__PURE__ */ t(Y, { children: [
1382
- c && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[60]", children: /* @__PURE__ */ e(be, {}) }),
1383
- /* @__PURE__ */ e(ye, { config: r, quickSearchResults: h })
1326
+ n && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[60]", children: /* @__PURE__ */ e(ue, {}) }),
1327
+ /* @__PURE__ */ e(me, { config: z, quickSearchResults: d })
1384
1328
  ] });
1385
1329
  }
1386
1330
  export {
1387
- Ee as NavController,
1388
- Me as SimpleLight,
1389
- Se as WithFlyout
1331
+ we as NavController,
1332
+ ke as SimpleLight,
1333
+ Ne as WithFlyout
1390
1334
  };