@reactfast/nav 0.2.2

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.
@@ -0,0 +1,2151 @@
1
+ import * as o from "react";
2
+ import C, { useState as G, useRef as ve, useEffect as He } from "react";
3
+ import { PopoverGroup as Xe, Popover as J, PopoverButton as Q, PopoverPanel as q, Dialog as xe, DialogPanel as ge, Disclosure as er, DisclosureButton as P, Menu as Mr, MenuButton as Ar, MenuItems as Fr, MenuItem as me, DisclosurePanel as rr } from "@headlessui/react";
4
+ import L from "next/link";
5
+ var pe = { exports: {} }, U = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var Ue;
16
+ function Lr() {
17
+ if (Ue) return U;
18
+ Ue = 1;
19
+ var t = C, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ function x(b, v, _) {
21
+ var N, O = {}, n = null, y = null;
22
+ _ !== void 0 && (n = "" + _), v.key !== void 0 && (n = "" + v.key), v.ref !== void 0 && (y = v.ref);
23
+ for (N in v) c.call(v, N) && !f.hasOwnProperty(N) && (O[N] = v[N]);
24
+ if (b && b.defaultProps) for (N in v = b.defaultProps, v) O[N] === void 0 && (O[N] = v[N]);
25
+ return { $$typeof: l, type: b, key: n, ref: y, props: O, _owner: d.current };
26
+ }
27
+ return U.Fragment = s, U.jsx = x, U.jsxs = x, U;
28
+ }
29
+ var Z = {};
30
+ /**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */
39
+ var Ze;
40
+ function zr() {
41
+ return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
42
+ var t = C, l = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), b = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), n = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), T = Symbol.iterator, $ = "@@iterator";
43
+ function K(r) {
44
+ if (r === null || typeof r != "object")
45
+ return null;
46
+ var a = T && r[T] || r[$];
47
+ return typeof a == "function" ? a : null;
48
+ }
49
+ var M = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ function k(r) {
51
+ {
52
+ for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), u = 1; u < a; u++)
53
+ i[u - 1] = arguments[u];
54
+ X("error", r, i);
55
+ }
56
+ }
57
+ function X(r, a, i) {
58
+ {
59
+ var u = M.ReactDebugCurrentFrame, g = u.getStackAddendum();
60
+ g !== "" && (a += "%s", i = i.concat([g]));
61
+ var p = i.map(function(m) {
62
+ return String(m);
63
+ });
64
+ p.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, p);
65
+ }
66
+ }
67
+ var A = !1, ne = !1, Y = !1, tr = !1, ar = !1, be;
68
+ be = Symbol.for("react.module.reference");
69
+ function sr(r) {
70
+ return !!(typeof r == "string" || typeof r == "function" || r === c || r === f || ar || r === d || r === _ || r === N || tr || r === y || A || ne || Y || typeof r == "object" && r !== null && (r.$$typeof === n || r.$$typeof === O || r.$$typeof === x || r.$$typeof === b || r.$$typeof === v || // This needs to include all possible module reference object
71
+ // types supported by any Flight configuration anywhere since
72
+ // we don't know which Flight build this will end up being used
73
+ // with.
74
+ r.$$typeof === be || r.getModuleId !== void 0));
75
+ }
76
+ function nr(r, a, i) {
77
+ var u = r.displayName;
78
+ if (u)
79
+ return u;
80
+ var g = a.displayName || a.name || "";
81
+ return g !== "" ? i + "(" + g + ")" : i;
82
+ }
83
+ function je(r) {
84
+ return r.displayName || "Context";
85
+ }
86
+ function F(r) {
87
+ if (r == null)
88
+ return null;
89
+ if (typeof r.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
90
+ return r.displayName || r.name || null;
91
+ if (typeof r == "string")
92
+ return r;
93
+ switch (r) {
94
+ case c:
95
+ return "Fragment";
96
+ case s:
97
+ return "Portal";
98
+ case f:
99
+ return "Profiler";
100
+ case d:
101
+ return "StrictMode";
102
+ case _:
103
+ return "Suspense";
104
+ case N:
105
+ return "SuspenseList";
106
+ }
107
+ if (typeof r == "object")
108
+ switch (r.$$typeof) {
109
+ case b:
110
+ var a = r;
111
+ return je(a) + ".Consumer";
112
+ case x:
113
+ var i = r;
114
+ return je(i._context) + ".Provider";
115
+ case v:
116
+ return nr(r, r.render, "ForwardRef");
117
+ case O:
118
+ var u = r.displayName || null;
119
+ return u !== null ? u : F(r.type) || "Memo";
120
+ case n: {
121
+ var g = r, p = g._payload, m = g._init;
122
+ try {
123
+ return F(m(p));
124
+ } catch {
125
+ return null;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ var z = Object.assign, I = 0, we, ke, Ne, Ee, Re, Ce, _e;
132
+ function Oe() {
133
+ }
134
+ Oe.__reactDisabledLog = !0;
135
+ function ir() {
136
+ {
137
+ if (I === 0) {
138
+ we = console.log, ke = console.info, Ne = console.warn, Ee = console.error, Re = console.group, Ce = console.groupCollapsed, _e = console.groupEnd;
139
+ var r = {
140
+ configurable: !0,
141
+ enumerable: !0,
142
+ value: Oe,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ info: r,
147
+ log: r,
148
+ warn: r,
149
+ error: r,
150
+ group: r,
151
+ groupCollapsed: r,
152
+ groupEnd: r
153
+ });
154
+ }
155
+ I++;
156
+ }
157
+ }
158
+ function lr() {
159
+ {
160
+ if (I--, I === 0) {
161
+ var r = {
162
+ configurable: !0,
163
+ enumerable: !0,
164
+ writable: !0
165
+ };
166
+ Object.defineProperties(console, {
167
+ log: z({}, r, {
168
+ value: we
169
+ }),
170
+ info: z({}, r, {
171
+ value: ke
172
+ }),
173
+ warn: z({}, r, {
174
+ value: Ne
175
+ }),
176
+ error: z({}, r, {
177
+ value: Ee
178
+ }),
179
+ group: z({}, r, {
180
+ value: Re
181
+ }),
182
+ groupCollapsed: z({}, r, {
183
+ value: Ce
184
+ }),
185
+ groupEnd: z({}, r, {
186
+ value: _e
187
+ })
188
+ });
189
+ }
190
+ I < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ }
192
+ }
193
+ var ie = M.ReactCurrentDispatcher, le;
194
+ function ee(r, a, i) {
195
+ {
196
+ if (le === void 0)
197
+ try {
198
+ throw Error();
199
+ } catch (g) {
200
+ var u = g.stack.trim().match(/\n( *(at )?)/);
201
+ le = u && u[1] || "";
202
+ }
203
+ return `
204
+ ` + le + r;
205
+ }
206
+ }
207
+ var oe = !1, re;
208
+ {
209
+ var or = typeof WeakMap == "function" ? WeakMap : Map;
210
+ re = new or();
211
+ }
212
+ function Se(r, a) {
213
+ if (!r || oe)
214
+ return "";
215
+ {
216
+ var i = re.get(r);
217
+ if (i !== void 0)
218
+ return i;
219
+ }
220
+ var u;
221
+ oe = !0;
222
+ var g = Error.prepareStackTrace;
223
+ Error.prepareStackTrace = void 0;
224
+ var p;
225
+ p = ie.current, ie.current = null, ir();
226
+ try {
227
+ if (a) {
228
+ var m = function() {
229
+ throw Error();
230
+ };
231
+ if (Object.defineProperty(m.prototype, "props", {
232
+ set: function() {
233
+ throw Error();
234
+ }
235
+ }), typeof Reflect == "object" && Reflect.construct) {
236
+ try {
237
+ Reflect.construct(m, []);
238
+ } catch (R) {
239
+ u = R;
240
+ }
241
+ Reflect.construct(r, [], m);
242
+ } else {
243
+ try {
244
+ m.call();
245
+ } catch (R) {
246
+ u = R;
247
+ }
248
+ r.call(m.prototype);
249
+ }
250
+ } else {
251
+ try {
252
+ throw Error();
253
+ } catch (R) {
254
+ u = R;
255
+ }
256
+ r();
257
+ }
258
+ } catch (R) {
259
+ if (R && u && typeof R.stack == "string") {
260
+ for (var h = R.stack.split(`
261
+ `), E = u.stack.split(`
262
+ `), j = h.length - 1, w = E.length - 1; j >= 1 && w >= 0 && h[j] !== E[w]; )
263
+ w--;
264
+ for (; j >= 1 && w >= 0; j--, w--)
265
+ if (h[j] !== E[w]) {
266
+ if (j !== 1 || w !== 1)
267
+ do
268
+ if (j--, w--, w < 0 || h[j] !== E[w]) {
269
+ var S = `
270
+ ` + h[j].replace(" at new ", " at ");
271
+ return r.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", r.displayName)), typeof r == "function" && re.set(r, S), S;
272
+ }
273
+ while (j >= 1 && w >= 0);
274
+ break;
275
+ }
276
+ }
277
+ } finally {
278
+ oe = !1, ie.current = p, lr(), Error.prepareStackTrace = g;
279
+ }
280
+ var W = r ? r.displayName || r.name : "", D = W ? ee(W) : "";
281
+ return typeof r == "function" && re.set(r, D), D;
282
+ }
283
+ function dr(r, a, i) {
284
+ return Se(r, !1);
285
+ }
286
+ function cr(r) {
287
+ var a = r.prototype;
288
+ return !!(a && a.isReactComponent);
289
+ }
290
+ function te(r, a, i) {
291
+ if (r == null)
292
+ return "";
293
+ if (typeof r == "function")
294
+ return Se(r, cr(r));
295
+ if (typeof r == "string")
296
+ return ee(r);
297
+ switch (r) {
298
+ case _:
299
+ return ee("Suspense");
300
+ case N:
301
+ return ee("SuspenseList");
302
+ }
303
+ if (typeof r == "object")
304
+ switch (r.$$typeof) {
305
+ case v:
306
+ return dr(r.render);
307
+ case O:
308
+ return te(r.type, a, i);
309
+ case n: {
310
+ var u = r, g = u._payload, p = u._init;
311
+ try {
312
+ return te(p(g), a, i);
313
+ } catch {
314
+ }
315
+ }
316
+ }
317
+ return "";
318
+ }
319
+ var H = Object.prototype.hasOwnProperty, Te = {}, Pe = M.ReactDebugCurrentFrame;
320
+ function ae(r) {
321
+ if (r) {
322
+ var a = r._owner, i = te(r.type, r._source, a ? a.type : null);
323
+ Pe.setExtraStackFrame(i);
324
+ } else
325
+ Pe.setExtraStackFrame(null);
326
+ }
327
+ function ur(r, a, i, u, g) {
328
+ {
329
+ var p = Function.call.bind(H);
330
+ for (var m in r)
331
+ if (p(r, m)) {
332
+ var h = void 0;
333
+ try {
334
+ if (typeof r[m] != "function") {
335
+ var E = Error((u || "React class") + ": " + i + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ throw E.name = "Invariant Violation", E;
337
+ }
338
+ h = r[m](a, m, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ } catch (j) {
340
+ h = j;
341
+ }
342
+ h && !(h instanceof Error) && (ae(g), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, m, typeof h), ae(null)), h instanceof Error && !(h.message in Te) && (Te[h.message] = !0, ae(g), k("Failed %s type: %s", i, h.message), ae(null));
343
+ }
344
+ }
345
+ }
346
+ var hr = Array.isArray;
347
+ function de(r) {
348
+ return hr(r);
349
+ }
350
+ function fr(r) {
351
+ {
352
+ var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
353
+ return i;
354
+ }
355
+ }
356
+ function mr(r) {
357
+ try {
358
+ return Me(r), !1;
359
+ } catch {
360
+ return !0;
361
+ }
362
+ }
363
+ function Me(r) {
364
+ return "" + r;
365
+ }
366
+ function Ae(r) {
367
+ if (mr(r))
368
+ return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fr(r)), Me(r);
369
+ }
370
+ var Fe = M.ReactCurrentOwner, xr = {
371
+ key: !0,
372
+ ref: !0,
373
+ __self: !0,
374
+ __source: !0
375
+ }, Le, ze;
376
+ function gr(r) {
377
+ if (H.call(r, "ref")) {
378
+ var a = Object.getOwnPropertyDescriptor(r, "ref").get;
379
+ if (a && a.isReactWarning)
380
+ return !1;
381
+ }
382
+ return r.ref !== void 0;
383
+ }
384
+ function pr(r) {
385
+ if (H.call(r, "key")) {
386
+ var a = Object.getOwnPropertyDescriptor(r, "key").get;
387
+ if (a && a.isReactWarning)
388
+ return !1;
389
+ }
390
+ return r.key !== void 0;
391
+ }
392
+ function vr(r, a) {
393
+ typeof r.ref == "string" && Fe.current;
394
+ }
395
+ function yr(r, a) {
396
+ {
397
+ var i = function() {
398
+ Le || (Le = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
399
+ };
400
+ i.isReactWarning = !0, Object.defineProperty(r, "key", {
401
+ get: i,
402
+ configurable: !0
403
+ });
404
+ }
405
+ }
406
+ function br(r, a) {
407
+ {
408
+ var i = function() {
409
+ ze || (ze = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
410
+ };
411
+ i.isReactWarning = !0, Object.defineProperty(r, "ref", {
412
+ get: i,
413
+ configurable: !0
414
+ });
415
+ }
416
+ }
417
+ var jr = function(r, a, i, u, g, p, m) {
418
+ var h = {
419
+ // This tag allows us to uniquely identify this as a React Element
420
+ $$typeof: l,
421
+ // Built-in properties that belong on the element
422
+ type: r,
423
+ key: a,
424
+ ref: i,
425
+ props: m,
426
+ // Record the component responsible for creating this element.
427
+ _owner: p
428
+ };
429
+ return h._store = {}, Object.defineProperty(h._store, "validated", {
430
+ configurable: !1,
431
+ enumerable: !1,
432
+ writable: !0,
433
+ value: !1
434
+ }), Object.defineProperty(h, "_self", {
435
+ configurable: !1,
436
+ enumerable: !1,
437
+ writable: !1,
438
+ value: u
439
+ }), Object.defineProperty(h, "_source", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !1,
443
+ value: g
444
+ }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
445
+ };
446
+ function wr(r, a, i, u, g) {
447
+ {
448
+ var p, m = {}, h = null, E = null;
449
+ i !== void 0 && (Ae(i), h = "" + i), pr(a) && (Ae(a.key), h = "" + a.key), gr(a) && (E = a.ref, vr(a, g));
450
+ for (p in a)
451
+ H.call(a, p) && !xr.hasOwnProperty(p) && (m[p] = a[p]);
452
+ if (r && r.defaultProps) {
453
+ var j = r.defaultProps;
454
+ for (p in j)
455
+ m[p] === void 0 && (m[p] = j[p]);
456
+ }
457
+ if (h || E) {
458
+ var w = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
459
+ h && yr(m, w), E && br(m, w);
460
+ }
461
+ return jr(r, h, E, g, u, Fe.current, m);
462
+ }
463
+ }
464
+ var ce = M.ReactCurrentOwner, De = M.ReactDebugCurrentFrame;
465
+ function B(r) {
466
+ if (r) {
467
+ var a = r._owner, i = te(r.type, r._source, a ? a.type : null);
468
+ De.setExtraStackFrame(i);
469
+ } else
470
+ De.setExtraStackFrame(null);
471
+ }
472
+ var ue;
473
+ ue = !1;
474
+ function he(r) {
475
+ return typeof r == "object" && r !== null && r.$$typeof === l;
476
+ }
477
+ function $e() {
478
+ {
479
+ if (ce.current) {
480
+ var r = F(ce.current.type);
481
+ if (r)
482
+ return `
483
+
484
+ Check the render method of \`` + r + "`.";
485
+ }
486
+ return "";
487
+ }
488
+ }
489
+ function kr(r) {
490
+ return "";
491
+ }
492
+ var Be = {};
493
+ function Nr(r) {
494
+ {
495
+ var a = $e();
496
+ if (!a) {
497
+ var i = typeof r == "string" ? r : r.displayName || r.name;
498
+ i && (a = `
499
+
500
+ Check the top-level render call using <` + i + ">.");
501
+ }
502
+ return a;
503
+ }
504
+ }
505
+ function We(r, a) {
506
+ {
507
+ if (!r._store || r._store.validated || r.key != null)
508
+ return;
509
+ r._store.validated = !0;
510
+ var i = Nr(a);
511
+ if (Be[i])
512
+ return;
513
+ Be[i] = !0;
514
+ var u = "";
515
+ r && r._owner && r._owner !== ce.current && (u = " It was passed a child from " + F(r._owner.type) + "."), B(r), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), B(null);
516
+ }
517
+ }
518
+ function Ve(r, a) {
519
+ {
520
+ if (typeof r != "object")
521
+ return;
522
+ if (de(r))
523
+ for (var i = 0; i < r.length; i++) {
524
+ var u = r[i];
525
+ he(u) && We(u, a);
526
+ }
527
+ else if (he(r))
528
+ r._store && (r._store.validated = !0);
529
+ else if (r) {
530
+ var g = K(r);
531
+ if (typeof g == "function" && g !== r.entries)
532
+ for (var p = g.call(r), m; !(m = p.next()).done; )
533
+ he(m.value) && We(m.value, a);
534
+ }
535
+ }
536
+ }
537
+ function Er(r) {
538
+ {
539
+ var a = r.type;
540
+ if (a == null || typeof a == "string")
541
+ return;
542
+ var i;
543
+ if (typeof a == "function")
544
+ i = a.propTypes;
545
+ else if (typeof a == "object" && (a.$$typeof === v || // Note: Memo only checks outer props here.
546
+ // Inner props are checked in the reconciler.
547
+ a.$$typeof === O))
548
+ i = a.propTypes;
549
+ else
550
+ return;
551
+ if (i) {
552
+ var u = F(a);
553
+ ur(i, r.props, "prop", u, r);
554
+ } else if (a.PropTypes !== void 0 && !ue) {
555
+ ue = !0;
556
+ var g = F(a);
557
+ k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
558
+ }
559
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ }
561
+ }
562
+ function Rr(r) {
563
+ {
564
+ for (var a = Object.keys(r.props), i = 0; i < a.length; i++) {
565
+ var u = a[i];
566
+ if (u !== "children" && u !== "key") {
567
+ B(r), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), B(null);
568
+ break;
569
+ }
570
+ }
571
+ r.ref !== null && (B(r), k("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
572
+ }
573
+ }
574
+ var Ye = {};
575
+ function Ie(r, a, i, u, g, p) {
576
+ {
577
+ var m = sr(r);
578
+ if (!m) {
579
+ var h = "";
580
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
581
+ var E = kr();
582
+ E ? h += E : h += $e();
583
+ var j;
584
+ r === null ? j = "null" : de(r) ? j = "array" : r !== void 0 && r.$$typeof === l ? (j = "<" + (F(r.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, h);
585
+ }
586
+ var w = wr(r, a, i, g, p);
587
+ if (w == null)
588
+ return w;
589
+ if (m) {
590
+ var S = a.children;
591
+ if (S !== void 0)
592
+ if (u)
593
+ if (de(S)) {
594
+ for (var W = 0; W < S.length; W++)
595
+ Ve(S[W], r);
596
+ Object.freeze && Object.freeze(S);
597
+ } else
598
+ k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ else
600
+ Ve(S, r);
601
+ }
602
+ if (H.call(a, "key")) {
603
+ var D = F(r), R = Object.keys(a).filter(function(Pr) {
604
+ return Pr !== "key";
605
+ }), fe = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
606
+ if (!Ye[D + fe]) {
607
+ var Tr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
608
+ k(`A props object containing a "key" prop is being spread into JSX:
609
+ let props = %s;
610
+ <%s {...props} />
611
+ React keys must be passed directly to JSX without using spread:
612
+ let props = %s;
613
+ <%s key={someKey} {...props} />`, fe, D, Tr, D), Ye[D + fe] = !0;
614
+ }
615
+ }
616
+ return r === c ? Rr(w) : Er(w), w;
617
+ }
618
+ }
619
+ function Cr(r, a, i) {
620
+ return Ie(r, a, i, !0);
621
+ }
622
+ function _r(r, a, i) {
623
+ return Ie(r, a, i, !1);
624
+ }
625
+ var Or = _r, Sr = Cr;
626
+ Z.Fragment = c, Z.jsx = Or, Z.jsxs = Sr;
627
+ }()), Z;
628
+ }
629
+ process.env.NODE_ENV === "production" ? pe.exports = Lr() : pe.exports = zr();
630
+ var e = pe.exports;
631
+ function Dr({
632
+ title: t,
633
+ titleId: l,
634
+ ...s
635
+ }, c) {
636
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
637
+ xmlns: "http://www.w3.org/2000/svg",
638
+ fill: "none",
639
+ viewBox: "0 0 24 24",
640
+ strokeWidth: 1.5,
641
+ stroke: "currentColor",
642
+ "aria-hidden": "true",
643
+ "data-slot": "icon",
644
+ ref: c,
645
+ "aria-labelledby": l
646
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
647
+ id: l
648
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
649
+ strokeLinecap: "round",
650
+ strokeLinejoin: "round",
651
+ d: "M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
652
+ }));
653
+ }
654
+ const $r = /* @__PURE__ */ o.forwardRef(Dr);
655
+ function Br({
656
+ title: t,
657
+ titleId: l,
658
+ ...s
659
+ }, c) {
660
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
661
+ xmlns: "http://www.w3.org/2000/svg",
662
+ fill: "none",
663
+ viewBox: "0 0 24 24",
664
+ strokeWidth: 1.5,
665
+ stroke: "currentColor",
666
+ "aria-hidden": "true",
667
+ "data-slot": "icon",
668
+ ref: c,
669
+ "aria-labelledby": l
670
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
671
+ id: l
672
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
673
+ strokeLinecap: "round",
674
+ strokeLinejoin: "round",
675
+ d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
676
+ }));
677
+ }
678
+ const ye = /* @__PURE__ */ o.forwardRef(Br);
679
+ function Wr({
680
+ title: t,
681
+ titleId: l,
682
+ ...s
683
+ }, c) {
684
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
685
+ xmlns: "http://www.w3.org/2000/svg",
686
+ fill: "none",
687
+ viewBox: "0 0 24 24",
688
+ strokeWidth: 1.5,
689
+ stroke: "currentColor",
690
+ "aria-hidden": "true",
691
+ "data-slot": "icon",
692
+ ref: c,
693
+ "aria-labelledby": l
694
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
695
+ id: l
696
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
697
+ strokeLinecap: "round",
698
+ strokeLinejoin: "round",
699
+ d: "M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"
700
+ }));
701
+ }
702
+ const Ge = /* @__PURE__ */ o.forwardRef(Wr);
703
+ function Vr({
704
+ title: t,
705
+ titleId: l,
706
+ ...s
707
+ }, c) {
708
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
709
+ xmlns: "http://www.w3.org/2000/svg",
710
+ fill: "none",
711
+ viewBox: "0 0 24 24",
712
+ strokeWidth: 1.5,
713
+ stroke: "currentColor",
714
+ "aria-hidden": "true",
715
+ "data-slot": "icon",
716
+ ref: c,
717
+ "aria-labelledby": l
718
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
719
+ id: l
720
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
721
+ strokeLinecap: "round",
722
+ strokeLinejoin: "round",
723
+ d: "M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"
724
+ }), /* @__PURE__ */ o.createElement("path", {
725
+ strokeLinecap: "round",
726
+ strokeLinejoin: "round",
727
+ d: "M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"
728
+ }));
729
+ }
730
+ const Yr = /* @__PURE__ */ o.forwardRef(Vr);
731
+ function Ir({
732
+ title: t,
733
+ titleId: l,
734
+ ...s
735
+ }, c) {
736
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
737
+ xmlns: "http://www.w3.org/2000/svg",
738
+ fill: "none",
739
+ viewBox: "0 0 24 24",
740
+ strokeWidth: 1.5,
741
+ stroke: "currentColor",
742
+ "aria-hidden": "true",
743
+ "data-slot": "icon",
744
+ ref: c,
745
+ "aria-labelledby": l
746
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
747
+ id: l
748
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
749
+ strokeLinecap: "round",
750
+ strokeLinejoin: "round",
751
+ d: "M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"
752
+ }));
753
+ }
754
+ const Hr = /* @__PURE__ */ o.forwardRef(Ir);
755
+ function Ur({
756
+ title: t,
757
+ titleId: l,
758
+ ...s
759
+ }, c) {
760
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
761
+ xmlns: "http://www.w3.org/2000/svg",
762
+ fill: "none",
763
+ viewBox: "0 0 24 24",
764
+ strokeWidth: 1.5,
765
+ stroke: "currentColor",
766
+ "aria-hidden": "true",
767
+ "data-slot": "icon",
768
+ ref: c,
769
+ "aria-labelledby": l
770
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
771
+ id: l
772
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
773
+ strokeLinecap: "round",
774
+ strokeLinejoin: "round",
775
+ d: "M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"
776
+ }));
777
+ }
778
+ const Zr = /* @__PURE__ */ o.forwardRef(Ur);
779
+ function Gr({
780
+ title: t,
781
+ titleId: l,
782
+ ...s
783
+ }, c) {
784
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
785
+ xmlns: "http://www.w3.org/2000/svg",
786
+ fill: "none",
787
+ viewBox: "0 0 24 24",
788
+ strokeWidth: 1.5,
789
+ stroke: "currentColor",
790
+ "aria-hidden": "true",
791
+ "data-slot": "icon",
792
+ ref: c,
793
+ "aria-labelledby": l
794
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
795
+ id: l
796
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
797
+ strokeLinecap: "round",
798
+ strokeLinejoin: "round",
799
+ d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"
800
+ }));
801
+ }
802
+ const Je = /* @__PURE__ */ o.forwardRef(Gr);
803
+ function Jr({
804
+ title: t,
805
+ titleId: l,
806
+ ...s
807
+ }, c) {
808
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
809
+ xmlns: "http://www.w3.org/2000/svg",
810
+ fill: "none",
811
+ viewBox: "0 0 24 24",
812
+ strokeWidth: 1.5,
813
+ stroke: "currentColor",
814
+ "aria-hidden": "true",
815
+ "data-slot": "icon",
816
+ ref: c,
817
+ "aria-labelledby": l
818
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
819
+ id: l
820
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
821
+ strokeLinecap: "round",
822
+ strokeLinejoin: "round",
823
+ d: "M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"
824
+ }));
825
+ }
826
+ const Qr = /* @__PURE__ */ o.forwardRef(Jr);
827
+ function qr({
828
+ title: t,
829
+ titleId: l,
830
+ ...s
831
+ }, c) {
832
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
833
+ xmlns: "http://www.w3.org/2000/svg",
834
+ fill: "none",
835
+ viewBox: "0 0 24 24",
836
+ strokeWidth: 1.5,
837
+ stroke: "currentColor",
838
+ "aria-hidden": "true",
839
+ "data-slot": "icon",
840
+ ref: c,
841
+ "aria-labelledby": l
842
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
843
+ id: l
844
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
845
+ strokeLinecap: "round",
846
+ strokeLinejoin: "round",
847
+ d: "M6 18 18 6M6 6l12 12"
848
+ }));
849
+ }
850
+ const se = /* @__PURE__ */ o.forwardRef(qr);
851
+ function Kr({
852
+ title: t,
853
+ titleId: l,
854
+ ...s
855
+ }, c) {
856
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
857
+ xmlns: "http://www.w3.org/2000/svg",
858
+ viewBox: "0 0 20 20",
859
+ fill: "currentColor",
860
+ "aria-hidden": "true",
861
+ "data-slot": "icon",
862
+ ref: c,
863
+ "aria-labelledby": l
864
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
865
+ id: l
866
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
867
+ fillRule: "evenodd",
868
+ d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
869
+ clipRule: "evenodd"
870
+ }));
871
+ }
872
+ const V = /* @__PURE__ */ o.forwardRef(Kr);
873
+ function Xr({
874
+ title: t,
875
+ titleId: l,
876
+ ...s
877
+ }, c) {
878
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
879
+ xmlns: "http://www.w3.org/2000/svg",
880
+ viewBox: "0 0 20 20",
881
+ fill: "currentColor",
882
+ "aria-hidden": "true",
883
+ "data-slot": "icon",
884
+ ref: c,
885
+ "aria-labelledby": l
886
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
887
+ id: l
888
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
889
+ fillRule: "evenodd",
890
+ d: "M2 3.5A1.5 1.5 0 0 1 3.5 2h1.148a1.5 1.5 0 0 1 1.465 1.175l.716 3.223a1.5 1.5 0 0 1-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 0 0 6.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 0 1 1.767-1.052l3.223.716A1.5 1.5 0 0 1 18 15.352V16.5a1.5 1.5 0 0 1-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 0 1 2.43 8.326 13.019 13.019 0 0 1 2 5V3.5Z",
891
+ clipRule: "evenodd"
892
+ }));
893
+ }
894
+ const et = /* @__PURE__ */ o.forwardRef(Xr);
895
+ function rt({
896
+ title: t,
897
+ titleId: l,
898
+ ...s
899
+ }, c) {
900
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
901
+ xmlns: "http://www.w3.org/2000/svg",
902
+ viewBox: "0 0 20 20",
903
+ fill: "currentColor",
904
+ "aria-hidden": "true",
905
+ "data-slot": "icon",
906
+ ref: c,
907
+ "aria-labelledby": l
908
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
909
+ id: l
910
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
911
+ fillRule: "evenodd",
912
+ d: "M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",
913
+ clipRule: "evenodd"
914
+ }));
915
+ }
916
+ const tt = /* @__PURE__ */ o.forwardRef(rt);
917
+ function at({
918
+ title: t,
919
+ titleId: l,
920
+ ...s
921
+ }, c) {
922
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
923
+ xmlns: "http://www.w3.org/2000/svg",
924
+ viewBox: "0 0 20 20",
925
+ fill: "currentColor",
926
+ "aria-hidden": "true",
927
+ "data-slot": "icon",
928
+ ref: c,
929
+ "aria-labelledby": l
930
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
931
+ id: l
932
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
933
+ d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"
934
+ }));
935
+ }
936
+ const st = /* @__PURE__ */ o.forwardRef(at), Qe = [
937
+ {
938
+ name: "Analytics",
939
+ description: "Get a better understanding of your traffic",
940
+ href: "#",
941
+ icon: Yr
942
+ },
943
+ {
944
+ name: "Engagement",
945
+ description: "Speak directly to your customers",
946
+ href: "#",
947
+ icon: Hr
948
+ },
949
+ {
950
+ name: "Security",
951
+ description: "Your customers’ data will be safe and secure",
952
+ href: "#",
953
+ icon: Zr
954
+ },
955
+ {
956
+ name: "Integrations",
957
+ description: "Connect with third-party tools",
958
+ href: "#",
959
+ icon: Qr
960
+ },
961
+ {
962
+ name: "Automations",
963
+ description: "Build strategic funnels that will convert",
964
+ href: "#",
965
+ icon: $r
966
+ }
967
+ ], nt = [
968
+ { name: "Watch demo", href: "#", icon: tt },
969
+ { name: "Contact sales", href: "#", icon: et }
970
+ ], qe = [
971
+ {
972
+ name: "About us",
973
+ href: "#",
974
+ description: "Learn more about our company values and mission to empower others"
975
+ },
976
+ {
977
+ name: "Careers",
978
+ href: "#",
979
+ description: "Looking for you next career opportunity? See all of our open positions"
980
+ },
981
+ {
982
+ name: "Support",
983
+ href: "#",
984
+ description: "Get in touch with our dedicated support team or reach out on our community forums"
985
+ },
986
+ {
987
+ name: "Blog",
988
+ href: "#",
989
+ description: "Read our latest announcements and get perspectives from our team"
990
+ }
991
+ ];
992
+ function ft() {
993
+ const [t, l] = G(!1);
994
+ return /* @__PURE__ */ e.jsxs("header", { className: "bg-white dark:bg-gray-900", children: [
995
+ /* @__PURE__ */ e.jsxs(
996
+ "nav",
997
+ {
998
+ "aria-label": "Global",
999
+ className: "mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",
1000
+ children: [
1001
+ /* @__PURE__ */ e.jsx("div", { className: "flex lg:flex-1", children: /* @__PURE__ */ e.jsxs("a", { href: "#", className: "-m-1.5 p-1.5", children: [
1002
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your Company" }),
1003
+ /* @__PURE__ */ e.jsx(
1004
+ "img",
1005
+ {
1006
+ alt: "",
1007
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",
1008
+ className: "h-8 w-auto dark:hidden"
1009
+ }
1010
+ ),
1011
+ /* @__PURE__ */ e.jsx(
1012
+ "img",
1013
+ {
1014
+ alt: "",
1015
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",
1016
+ className: "hidden h-8 w-auto dark:block"
1017
+ }
1018
+ )
1019
+ ] }) }),
1020
+ /* @__PURE__ */ e.jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ e.jsxs(
1021
+ "button",
1022
+ {
1023
+ type: "button",
1024
+ onClick: () => l(!0),
1025
+ className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",
1026
+ children: [
1027
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open main menu" }),
1028
+ /* @__PURE__ */ e.jsx(ye, { "aria-hidden": "true", className: "size-6" })
1029
+ ]
1030
+ }
1031
+ ) }),
1032
+ /* @__PURE__ */ e.jsxs(Xe, { className: "hidden lg:flex lg:gap-x-12", children: [
1033
+ /* @__PURE__ */ e.jsxs(J, { className: "relative", children: [
1034
+ /* @__PURE__ */ e.jsxs(Q, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
1035
+ "Product",
1036
+ /* @__PURE__ */ e.jsx(
1037
+ V,
1038
+ {
1039
+ "aria-hidden": "true",
1040
+ className: "size-5 flex-none text-gray-400 dark:text-gray-500"
1041
+ }
1042
+ )
1043
+ ] }),
1044
+ /* @__PURE__ */ e.jsxs(
1045
+ q,
1046
+ {
1047
+ transition: !0,
1048
+ 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",
1049
+ children: [
1050
+ /* @__PURE__ */ e.jsx("div", { className: "p-4", children: Qe.map((s) => /* @__PURE__ */ e.jsxs(
1051
+ "div",
1052
+ {
1053
+ 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",
1054
+ children: [
1055
+ /* @__PURE__ */ e.jsx("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: /* @__PURE__ */ e.jsx(
1056
+ s.icon,
1057
+ {
1058
+ "aria-hidden": "true",
1059
+ className: "size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-400 dark:group-hover:text-white"
1060
+ }
1061
+ ) }),
1062
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-auto", children: [
1063
+ /* @__PURE__ */ e.jsxs(
1064
+ "a",
1065
+ {
1066
+ href: s.href,
1067
+ className: "block font-semibold text-gray-900 dark:text-white",
1068
+ children: [
1069
+ s.name,
1070
+ /* @__PURE__ */ e.jsx("span", { className: "absolute inset-0" })
1071
+ ]
1072
+ }
1073
+ ),
1074
+ /* @__PURE__ */ e.jsx("p", { className: "mt-1 text-gray-600 dark:text-gray-400", children: s.description })
1075
+ ] })
1076
+ ]
1077
+ },
1078
+ s.name
1079
+ )) }),
1080
+ /* @__PURE__ */ e.jsx("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: nt.map((s) => /* @__PURE__ */ e.jsxs(
1081
+ "a",
1082
+ {
1083
+ href: s.href,
1084
+ 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",
1085
+ children: [
1086
+ /* @__PURE__ */ e.jsx(
1087
+ s.icon,
1088
+ {
1089
+ "aria-hidden": "true",
1090
+ className: "size-5 flex-none text-gray-400 dark:text-gray-500"
1091
+ }
1092
+ ),
1093
+ s.name
1094
+ ]
1095
+ },
1096
+ s.name
1097
+ )) })
1098
+ ]
1099
+ }
1100
+ )
1101
+ ] }),
1102
+ /* @__PURE__ */ e.jsx(
1103
+ "a",
1104
+ {
1105
+ href: "#",
1106
+ className: "text-sm/6 font-semibold text-gray-900 dark:text-white",
1107
+ children: "Features"
1108
+ }
1109
+ ),
1110
+ /* @__PURE__ */ e.jsx(
1111
+ "a",
1112
+ {
1113
+ href: "#",
1114
+ className: "text-sm/6 font-semibold text-gray-900 dark:text-white",
1115
+ children: "Marketplace"
1116
+ }
1117
+ ),
1118
+ /* @__PURE__ */ e.jsxs(J, { className: "relative", children: [
1119
+ /* @__PURE__ */ e.jsxs(Q, { className: "flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white", children: [
1120
+ "Company",
1121
+ /* @__PURE__ */ e.jsx(
1122
+ V,
1123
+ {
1124
+ "aria-hidden": "true",
1125
+ className: "size-5 flex-none text-gray-400 dark:text-gray-500"
1126
+ }
1127
+ )
1128
+ ] }),
1129
+ /* @__PURE__ */ e.jsx(
1130
+ q,
1131
+ {
1132
+ transition: !0,
1133
+ 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",
1134
+ children: qe.map((s) => /* @__PURE__ */ e.jsxs(
1135
+ "div",
1136
+ {
1137
+ className: "relative rounded-lg p-4 hover:bg-gray-50 dark:hover:bg-white/5",
1138
+ children: [
1139
+ /* @__PURE__ */ e.jsxs(
1140
+ "a",
1141
+ {
1142
+ href: s.href,
1143
+ className: "block text-sm/6 font-semibold text-gray-900 dark:text-white",
1144
+ children: [
1145
+ s.name,
1146
+ /* @__PURE__ */ e.jsx("span", { className: "absolute inset-0" })
1147
+ ]
1148
+ }
1149
+ ),
1150
+ /* @__PURE__ */ e.jsx("p", { className: "mt-1 text-sm/6 text-gray-600 dark:text-gray-400", children: s.description })
1151
+ ]
1152
+ },
1153
+ s.name
1154
+ ))
1155
+ }
1156
+ )
1157
+ ] })
1158
+ ] }),
1159
+ /* @__PURE__ */ e.jsx("div", { className: "hidden lg:flex lg:flex-1 lg:justify-end", children: /* @__PURE__ */ e.jsxs(
1160
+ "a",
1161
+ {
1162
+ href: "#",
1163
+ className: "text-sm/6 font-semibold text-gray-900 dark:text-white",
1164
+ children: [
1165
+ "Log in ",
1166
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: "→" })
1167
+ ]
1168
+ }
1169
+ ) })
1170
+ ]
1171
+ }
1172
+ ),
1173
+ /* @__PURE__ */ e.jsxs(
1174
+ xe,
1175
+ {
1176
+ open: t,
1177
+ onClose: l,
1178
+ className: "lg:hidden",
1179
+ children: [
1180
+ /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 z-10" }),
1181
+ /* @__PURE__ */ e.jsxs(ge, { 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: [
1182
+ /* @__PURE__ */ e.jsxs("div", { className: "p-6", children: [
1183
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
1184
+ /* @__PURE__ */ e.jsxs("a", { href: "#", className: "-m-1.5 p-1.5", children: [
1185
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your Company" }),
1186
+ /* @__PURE__ */ e.jsx(
1187
+ "img",
1188
+ {
1189
+ alt: "",
1190
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",
1191
+ className: "h-8 w-auto dark:hidden"
1192
+ }
1193
+ ),
1194
+ /* @__PURE__ */ e.jsx(
1195
+ "img",
1196
+ {
1197
+ alt: "",
1198
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",
1199
+ className: "hidden h-8 w-auto dark:block"
1200
+ }
1201
+ )
1202
+ ] }),
1203
+ /* @__PURE__ */ e.jsxs(
1204
+ "button",
1205
+ {
1206
+ type: "button",
1207
+ onClick: () => l(!1),
1208
+ className: "-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",
1209
+ children: [
1210
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close menu" }),
1211
+ /* @__PURE__ */ e.jsx(se, { "aria-hidden": "true", className: "size-6" })
1212
+ ]
1213
+ }
1214
+ )
1215
+ ] }),
1216
+ /* @__PURE__ */ e.jsx("div", { className: "mt-6 flow-root", children: /* @__PURE__ */ e.jsxs("div", { className: "-my-6 divide-y divide-gray-500/10 dark:divide-white/10", children: [
1217
+ /* @__PURE__ */ e.jsx("div", { className: "space-y-2 py-6", children: Qe.map((s) => /* @__PURE__ */ e.jsxs(
1218
+ "a",
1219
+ {
1220
+ href: s.href,
1221
+ className: "group -mx-3 flex items-center gap-x-6 rounded-lg p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",
1222
+ children: [
1223
+ /* @__PURE__ */ e.jsx("div", { className: "flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-700", children: /* @__PURE__ */ e.jsx(
1224
+ s.icon,
1225
+ {
1226
+ "aria-hidden": "true",
1227
+ className: "size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-300 dark:group-hover:text-white"
1228
+ }
1229
+ ) }),
1230
+ s.name
1231
+ ]
1232
+ },
1233
+ s.name
1234
+ )) }),
1235
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-2 py-6", children: [
1236
+ /* @__PURE__ */ e.jsx(
1237
+ "a",
1238
+ {
1239
+ href: "#",
1240
+ className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",
1241
+ children: "Features"
1242
+ }
1243
+ ),
1244
+ /* @__PURE__ */ e.jsx(
1245
+ "a",
1246
+ {
1247
+ href: "#",
1248
+ className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",
1249
+ children: "Marketplace"
1250
+ }
1251
+ ),
1252
+ qe.map((s) => /* @__PURE__ */ e.jsx(
1253
+ "a",
1254
+ {
1255
+ href: s.href,
1256
+ className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",
1257
+ children: s.name
1258
+ },
1259
+ s.name
1260
+ ))
1261
+ ] }),
1262
+ /* @__PURE__ */ e.jsx("div", { className: "py-6", children: /* @__PURE__ */ e.jsx(
1263
+ "a",
1264
+ {
1265
+ href: "#",
1266
+ className: "-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",
1267
+ children: "Log in"
1268
+ }
1269
+ ) })
1270
+ ] }) })
1271
+ ] }),
1272
+ /* @__PURE__ */ e.jsx("div", { className: "sticky bottom-0 grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 text-center dark:divide-white/5 dark:bg-gray-800/50", children: item.ctas.map((s) => /* @__PURE__ */ e.jsx(
1273
+ "a",
1274
+ {
1275
+ href: s.href,
1276
+ className: "p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-800",
1277
+ children: s.title
1278
+ },
1279
+ s.title
1280
+ )) })
1281
+ ] })
1282
+ ]
1283
+ }
1284
+ )
1285
+ ] });
1286
+ }
1287
+ function mt() {
1288
+ return /* @__PURE__ */ e.jsxs(
1289
+ er,
1290
+ {
1291
+ as: "nav",
1292
+ 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",
1293
+ children: [
1294
+ /* @__PURE__ */ e.jsx("div", { className: "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ e.jsxs("div", { className: "flex h-16 justify-between", children: [
1295
+ /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1296
+ /* @__PURE__ */ e.jsx("div", { className: "-ml-2 mr-2 flex items-center md:hidden", children: /* @__PURE__ */ e.jsxs(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: [
1297
+ /* @__PURE__ */ e.jsx("span", { className: "absolute -inset-0.5" }),
1298
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open main menu" }),
1299
+ /* @__PURE__ */ e.jsx(ye, { "aria-hidden": "true", className: "block size-6 group-data-[open]:hidden" }),
1300
+ /* @__PURE__ */ e.jsx(se, { "aria-hidden": "true", className: "hidden size-6 group-data-[open]:block" })
1301
+ ] }) }),
1302
+ /* @__PURE__ */ e.jsxs("div", { className: "flex shrink-0 items-center", children: [
1303
+ /* @__PURE__ */ e.jsx(
1304
+ "img",
1305
+ {
1306
+ alt: "Your Company",
1307
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",
1308
+ className: "h-8 w-auto dark:hidden"
1309
+ }
1310
+ ),
1311
+ /* @__PURE__ */ e.jsx(
1312
+ "img",
1313
+ {
1314
+ alt: "Your Company",
1315
+ src: "https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",
1316
+ className: "hidden h-8 w-auto dark:block"
1317
+ }
1318
+ )
1319
+ ] }),
1320
+ /* @__PURE__ */ e.jsxs("div", { className: "hidden md:ml-6 md:flex md:space-x-8", children: [
1321
+ /* @__PURE__ */ e.jsx(
1322
+ "a",
1323
+ {
1324
+ href: "#",
1325
+ className: "inline-flex items-center border-b-2 border-indigo-600 px-1 pt-1 text-sm font-medium text-gray-900 dark:border-indigo-500 dark:text-white",
1326
+ children: "Dashboard"
1327
+ }
1328
+ ),
1329
+ /* @__PURE__ */ e.jsx(
1330
+ "a",
1331
+ {
1332
+ href: "#",
1333
+ className: "inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",
1334
+ children: "Team"
1335
+ }
1336
+ ),
1337
+ /* @__PURE__ */ e.jsx(
1338
+ "a",
1339
+ {
1340
+ href: "#",
1341
+ className: "inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",
1342
+ children: "Projects"
1343
+ }
1344
+ ),
1345
+ /* @__PURE__ */ e.jsx(
1346
+ "a",
1347
+ {
1348
+ href: "#",
1349
+ className: "inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",
1350
+ children: "Calendar"
1351
+ }
1352
+ )
1353
+ ] })
1354
+ ] }),
1355
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1356
+ /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsxs(
1357
+ "button",
1358
+ {
1359
+ type: "button",
1360
+ 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",
1361
+ children: [
1362
+ /* @__PURE__ */ e.jsx(st, { "aria-hidden": "true", className: "-ml-0.5 size-5" }),
1363
+ "New Job"
1364
+ ]
1365
+ }
1366
+ ) }),
1367
+ /* @__PURE__ */ e.jsxs("div", { className: "hidden md:ml-4 md:flex md:shrink-0 md:items-center", children: [
1368
+ /* @__PURE__ */ e.jsxs(
1369
+ "button",
1370
+ {
1371
+ type: "button",
1372
+ className: "relative rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",
1373
+ children: [
1374
+ /* @__PURE__ */ e.jsx("span", { className: "absolute -inset-1.5" }),
1375
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "View notifications" }),
1376
+ /* @__PURE__ */ e.jsx(Ge, { "aria-hidden": "true", className: "size-6" })
1377
+ ]
1378
+ }
1379
+ ),
1380
+ /* @__PURE__ */ e.jsxs(Mr, { as: "div", className: "relative ml-3", children: [
1381
+ /* @__PURE__ */ e.jsxs(Ar, { 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: [
1382
+ /* @__PURE__ */ e.jsx("span", { className: "absolute -inset-1.5" }),
1383
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open user menu" }),
1384
+ /* @__PURE__ */ e.jsx(
1385
+ "img",
1386
+ {
1387
+ alt: "",
1388
+ src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",
1389
+ className: "size-8 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"
1390
+ }
1391
+ )
1392
+ ] }),
1393
+ /* @__PURE__ */ e.jsxs(
1394
+ Fr,
1395
+ {
1396
+ transition: !0,
1397
+ 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",
1398
+ children: [
1399
+ /* @__PURE__ */ e.jsx(me, { children: /* @__PURE__ */ e.jsx(
1400
+ "a",
1401
+ {
1402
+ href: "#",
1403
+ className: "block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",
1404
+ children: "Your profile"
1405
+ }
1406
+ ) }),
1407
+ /* @__PURE__ */ e.jsx(me, { children: /* @__PURE__ */ e.jsx(
1408
+ "a",
1409
+ {
1410
+ href: "#",
1411
+ className: "block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",
1412
+ children: "Settings"
1413
+ }
1414
+ ) }),
1415
+ /* @__PURE__ */ e.jsx(me, { children: /* @__PURE__ */ e.jsx(
1416
+ "a",
1417
+ {
1418
+ href: "#",
1419
+ className: "block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",
1420
+ children: "Sign out"
1421
+ }
1422
+ ) })
1423
+ ]
1424
+ }
1425
+ )
1426
+ ] })
1427
+ ] })
1428
+ ] })
1429
+ ] }) }),
1430
+ /* @__PURE__ */ e.jsxs(rr, { className: "md:hidden", children: [
1431
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-1 pb-3 pt-2", children: [
1432
+ /* @__PURE__ */ e.jsx(
1433
+ P,
1434
+ {
1435
+ as: "a",
1436
+ href: "#",
1437
+ className: "block border-l-4 border-indigo-600 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700 sm:pl-5 sm:pr-6 dark:border-indigo-500 dark:bg-indigo-600/10 dark:text-indigo-400",
1438
+ children: "Dashboard"
1439
+ }
1440
+ ),
1441
+ /* @__PURE__ */ e.jsx(
1442
+ P,
1443
+ {
1444
+ as: "a",
1445
+ href: "#",
1446
+ className: "block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",
1447
+ children: "Team"
1448
+ }
1449
+ ),
1450
+ /* @__PURE__ */ e.jsx(
1451
+ P,
1452
+ {
1453
+ as: "a",
1454
+ href: "#",
1455
+ className: "block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",
1456
+ children: "Projects"
1457
+ }
1458
+ ),
1459
+ /* @__PURE__ */ e.jsx(
1460
+ P,
1461
+ {
1462
+ as: "a",
1463
+ href: "#",
1464
+ className: "block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",
1465
+ children: "Calendar"
1466
+ }
1467
+ )
1468
+ ] }),
1469
+ /* @__PURE__ */ e.jsxs("div", { className: "border-t border-gray-200 pb-3 pt-4 dark:border-white/10", children: [
1470
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center px-4 sm:px-6", children: [
1471
+ /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
1472
+ "img",
1473
+ {
1474
+ alt: "",
1475
+ src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",
1476
+ className: "size-10 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"
1477
+ }
1478
+ ) }),
1479
+ /* @__PURE__ */ e.jsxs("div", { className: "ml-3", children: [
1480
+ /* @__PURE__ */ e.jsx("div", { className: "text-base font-medium text-gray-800 dark:text-white", children: "Tom Cook" }),
1481
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-gray-500 dark:text-gray-400", children: "tom@example.com" })
1482
+ ] }),
1483
+ /* @__PURE__ */ e.jsxs(
1484
+ "button",
1485
+ {
1486
+ type: "button",
1487
+ className: "relative ml-auto shrink-0 rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",
1488
+ children: [
1489
+ /* @__PURE__ */ e.jsx("span", { className: "absolute -inset-1.5" }),
1490
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "View notifications" }),
1491
+ /* @__PURE__ */ e.jsx(Ge, { "aria-hidden": "true", className: "size-6" })
1492
+ ]
1493
+ }
1494
+ )
1495
+ ] }),
1496
+ /* @__PURE__ */ e.jsxs("div", { className: "mt-3 space-y-1", children: [
1497
+ /* @__PURE__ */ e.jsx(
1498
+ P,
1499
+ {
1500
+ as: "a",
1501
+ href: "#",
1502
+ className: "block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
1503
+ children: "Your profile"
1504
+ }
1505
+ ),
1506
+ /* @__PURE__ */ e.jsx(
1507
+ P,
1508
+ {
1509
+ as: "a",
1510
+ href: "#",
1511
+ className: "block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
1512
+ children: "Settings"
1513
+ }
1514
+ ),
1515
+ /* @__PURE__ */ e.jsx(
1516
+ P,
1517
+ {
1518
+ as: "a",
1519
+ href: "#",
1520
+ className: "block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
1521
+ children: "Sign out"
1522
+ }
1523
+ )
1524
+ ] })
1525
+ ] })
1526
+ ] })
1527
+ ]
1528
+ }
1529
+ );
1530
+ }
1531
+ function it({ item: t, onHover: l }) {
1532
+ const s = ve(null);
1533
+ return /* @__PURE__ */ e.jsx(J, { children: ({ open: c }) => /* @__PURE__ */ e.jsxs(
1534
+ "div",
1535
+ {
1536
+ className: "relative",
1537
+ onMouseEnter: () => {
1538
+ var d;
1539
+ l && !c && ((d = s.current) == null || d.click());
1540
+ },
1541
+ onMouseLeave: () => {
1542
+ var d;
1543
+ l && c && ((d = s.current) == null || d.click());
1544
+ },
1545
+ children: [
1546
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-1", children: [
1547
+ t.useLink ? /* @__PURE__ */ e.jsx(L, { href: t.href, className: "text-sm/6 font-semibold text-gray-900 dark:text-white", children: t.title }) : /* @__PURE__ */ e.jsx("span", { className: "text-sm/6 font-semibold text-gray-900 dark:text-white", children: t.title }),
1548
+ /* @__PURE__ */ e.jsx(
1549
+ Q,
1550
+ {
1551
+ ref: s,
1552
+ className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white",
1553
+ "aria-label": `Open ${t.title} menu`,
1554
+ children: /* @__PURE__ */ e.jsx(V, { "aria-hidden": "true", className: "size-5 flex-none" })
1555
+ }
1556
+ )
1557
+ ] }),
1558
+ /* @__PURE__ */ e.jsxs(
1559
+ q,
1560
+ {
1561
+ transition: !0,
1562
+ 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",
1563
+ children: [
1564
+ /* @__PURE__ */ e.jsx("div", { className: "p-4", children: t.subMenu.map((d) => /* @__PURE__ */ e.jsxs(
1565
+ "div",
1566
+ {
1567
+ 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",
1568
+ children: [
1569
+ /* @__PURE__ */ e.jsx("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: (() => {
1570
+ const f = d.icon;
1571
+ if (!f) return null;
1572
+ if (C.isValidElement(f))
1573
+ return C.cloneElement(f, {
1574
+ className: "size-6 text-gray-600 group-hover:text-primary",
1575
+ "aria-hidden": !0
1576
+ });
1577
+ if (typeof f == "function") {
1578
+ const x = f;
1579
+ return /* @__PURE__ */ e.jsx(x, { "aria-hidden": !0, className: "size-6 text-gray-600 group-hover:text-primary" });
1580
+ }
1581
+ return null;
1582
+ })() }),
1583
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-auto", children: [
1584
+ /* @__PURE__ */ e.jsxs(
1585
+ "a",
1586
+ {
1587
+ href: d.href,
1588
+ className: "block font-semibold text-gray-900 dark:text-white",
1589
+ children: [
1590
+ d.title,
1591
+ /* @__PURE__ */ e.jsx("span", { className: "absolute inset-0" })
1592
+ ]
1593
+ }
1594
+ ),
1595
+ /* @__PURE__ */ e.jsx("p", { className: "mt-1 text-gray-600 dark:text-gray-400", children: d.description })
1596
+ ] })
1597
+ ]
1598
+ },
1599
+ d.title
1600
+ )) }),
1601
+ /* @__PURE__ */ e.jsx("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: t.ctas && t.ctas.map((d) => /* @__PURE__ */ e.jsxs(
1602
+ "a",
1603
+ {
1604
+ href: d.href,
1605
+ 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",
1606
+ children: [
1607
+ (() => {
1608
+ const f = d.icon;
1609
+ if (!f) return null;
1610
+ if (C.isValidElement(f))
1611
+ return C.cloneElement(f, {
1612
+ className: "size-5 flex-none text-gray-400",
1613
+ "aria-hidden": !0
1614
+ });
1615
+ if (typeof f == "function") {
1616
+ const x = f;
1617
+ return /* @__PURE__ */ e.jsx(x, { "aria-hidden": !0, className: "size-5 flex-none text-gray-400" });
1618
+ }
1619
+ return null;
1620
+ })(),
1621
+ d.title
1622
+ ]
1623
+ },
1624
+ d.title
1625
+ )) })
1626
+ ]
1627
+ }
1628
+ )
1629
+ ]
1630
+ }
1631
+ ) });
1632
+ }
1633
+ function lt({ item: t, onHover: l }) {
1634
+ const s = ve(null);
1635
+ return /* @__PURE__ */ e.jsx(J, { children: ({ open: c }) => /* @__PURE__ */ e.jsxs(
1636
+ "div",
1637
+ {
1638
+ onMouseEnter: () => {
1639
+ var d;
1640
+ l && !c && ((d = s.current) == null || d.click());
1641
+ },
1642
+ onMouseLeave: () => {
1643
+ var d;
1644
+ l && c && ((d = s.current) == null || d.click());
1645
+ },
1646
+ children: [
1647
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-1", children: [
1648
+ t.useLink ? /* @__PURE__ */ e.jsx(L, { href: t.href, className: "text-sm/6 font-semibold text-gray-900", children: t.title }) : /* @__PURE__ */ e.jsx("span", { className: "text-sm/6 font-semibold text-gray-900", children: t.title }),
1649
+ /* @__PURE__ */ e.jsx(
1650
+ Q,
1651
+ {
1652
+ ref: s,
1653
+ className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900",
1654
+ "aria-label": `Open ${t.title} menu`,
1655
+ children: /* @__PURE__ */ e.jsx(V, { "aria-hidden": "true", className: "size-5 flex-none" })
1656
+ }
1657
+ )
1658
+ ] }),
1659
+ /* @__PURE__ */ e.jsxs(
1660
+ q,
1661
+ {
1662
+ transition: !0,
1663
+ 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",
1664
+ children: [
1665
+ /* @__PURE__ */ e.jsx("div", { className: "mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8", children: t.subMenu.map((d) => /* @__PURE__ */ e.jsxs(
1666
+ "div",
1667
+ {
1668
+ className: "group relative rounded-lg p-6 text-sm/6 hover:bg-gray-50",
1669
+ children: [
1670
+ d.image ? /* @__PURE__ */ e.jsx("div", { className: "aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-100", children: /* @__PURE__ */ e.jsx(
1671
+ "img",
1672
+ {
1673
+ alt: d.imageAlt || d.title,
1674
+ src: d.image,
1675
+ className: "h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"
1676
+ }
1677
+ ) }) : /* @__PURE__ */ e.jsx("div", { className: "flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white", children: (() => {
1678
+ const f = d.icon;
1679
+ if (!f) return null;
1680
+ if (C.isValidElement(f))
1681
+ return C.cloneElement(f, {
1682
+ className: "size-6 text-gray-600 group-hover:text-primary",
1683
+ "aria-hidden": !0
1684
+ });
1685
+ if (typeof f == "function") {
1686
+ const x = f;
1687
+ return /* @__PURE__ */ e.jsx(x, { "aria-hidden": !0, className: "size-6 text-gray-600 group-hover:text-primary" });
1688
+ }
1689
+ return null;
1690
+ })() }),
1691
+ /* @__PURE__ */ e.jsxs(
1692
+ "a",
1693
+ {
1694
+ href: d.href,
1695
+ className: `${d.image ? "mt-4" : "mt-6"} block font-semibold text-gray-900`,
1696
+ children: [
1697
+ d.title,
1698
+ /* @__PURE__ */ e.jsx("span", { className: "absolute inset-0" })
1699
+ ]
1700
+ }
1701
+ ),
1702
+ /* @__PURE__ */ e.jsx("p", { className: "mt-1 text-gray-600", children: d.description })
1703
+ ]
1704
+ },
1705
+ d.title
1706
+ )) }),
1707
+ /* @__PURE__ */ e.jsx("div", { className: "bg-gray-50", children: t.ctas && /* @__PURE__ */ e.jsx("div", { className: "mx-auto max-w-7xl px-6 lg:px-8", children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5", children: t.ctas.map((d) => /* @__PURE__ */ e.jsxs(
1708
+ "a",
1709
+ {
1710
+ href: d.href,
1711
+ className: "flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",
1712
+ children: [
1713
+ (() => {
1714
+ const f = d.icon;
1715
+ if (!f) return null;
1716
+ if (C.isValidElement(f))
1717
+ return C.cloneElement(f, {
1718
+ className: "size-5 flex-none text-gray-400",
1719
+ "aria-hidden": !0
1720
+ });
1721
+ if (typeof f == "function") {
1722
+ const x = f;
1723
+ return /* @__PURE__ */ e.jsx(x, { "aria-hidden": !0, className: "size-5 flex-none text-gray-400" });
1724
+ }
1725
+ return null;
1726
+ })(),
1727
+ d.title
1728
+ ]
1729
+ },
1730
+ d.title
1731
+ )) }) }) })
1732
+ ]
1733
+ }
1734
+ )
1735
+ ]
1736
+ }
1737
+ ) }, t.id);
1738
+ }
1739
+ function ot({
1740
+ title: t,
1741
+ titleId: l,
1742
+ ...s
1743
+ }, c) {
1744
+ return /* @__PURE__ */ o.createElement("svg", Object.assign({
1745
+ xmlns: "http://www.w3.org/2000/svg",
1746
+ viewBox: "0 0 24 24",
1747
+ fill: "currentColor",
1748
+ "aria-hidden": "true",
1749
+ "data-slot": "icon",
1750
+ ref: c,
1751
+ "aria-labelledby": l
1752
+ }, s), t ? /* @__PURE__ */ o.createElement("title", {
1753
+ id: l
1754
+ }, t) : null, /* @__PURE__ */ o.createElement("path", {
1755
+ fillRule: "evenodd",
1756
+ d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
1757
+ clipRule: "evenodd"
1758
+ }));
1759
+ }
1760
+ const Ke = /* @__PURE__ */ o.forwardRef(ot);
1761
+ function dt({ item: t, onHover: l }) {
1762
+ const s = ve(null);
1763
+ return /* @__PURE__ */ e.jsx(J, { children: ({ open: c }) => {
1764
+ var d, f;
1765
+ return /* @__PURE__ */ e.jsxs(
1766
+ "div",
1767
+ {
1768
+ className: "relative",
1769
+ onMouseEnter: () => {
1770
+ var x;
1771
+ l && !c && ((x = s.current) == null || x.click());
1772
+ },
1773
+ onMouseLeave: () => {
1774
+ var x;
1775
+ l && c && ((x = s.current) == null || x.click());
1776
+ },
1777
+ children: [
1778
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-1", children: [
1779
+ t.useLink ? /* @__PURE__ */ e.jsx(L, { href: t.href, className: "text-sm/6 font-semibold text-gray-900", children: t.title }) : /* @__PURE__ */ e.jsx("span", { className: "text-sm/6 font-semibold text-gray-900", children: t.title }),
1780
+ /* @__PURE__ */ e.jsx(
1781
+ Q,
1782
+ {
1783
+ ref: s,
1784
+ className: "inline-flex items-center p-1 text-gray-700 hover:text-gray-900",
1785
+ "aria-label": `Open ${t.title} menu`,
1786
+ children: /* @__PURE__ */ e.jsx(V, { "aria-hidden": "true", className: "size-5 flex-none" })
1787
+ }
1788
+ )
1789
+ ] }),
1790
+ /* @__PURE__ */ e.jsx(
1791
+ q,
1792
+ {
1793
+ transition: !0,
1794
+ 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",
1795
+ children: /* @__PURE__ */ e.jsxs("ul", { className: "space-y-1", children: [
1796
+ (d = t.subMenu) == null ? void 0 : d.map((x) => /* @__PURE__ */ e.jsx("li", { className: "group", children: /* @__PURE__ */ e.jsxs(
1797
+ L,
1798
+ {
1799
+ href: x.href,
1800
+ className: "flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",
1801
+ children: [
1802
+ (() => {
1803
+ const b = x.icon;
1804
+ if (!b) return /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
1805
+ if (C.isValidElement(b))
1806
+ return C.cloneElement(b, {
1807
+ className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary",
1808
+ "aria-hidden": !0
1809
+ });
1810
+ if (typeof b == "function") {
1811
+ const v = b;
1812
+ return /* @__PURE__ */ e.jsx(v, { "aria-hidden": !0, className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
1813
+ }
1814
+ return null;
1815
+ })(),
1816
+ /* @__PURE__ */ e.jsx("span", { children: x.title })
1817
+ ]
1818
+ }
1819
+ ) }, x.title)),
1820
+ (f = t.ctas) == null ? void 0 : f.map((x) => /* @__PURE__ */ e.jsx("li", { className: "group", children: /* @__PURE__ */ e.jsxs(
1821
+ "a",
1822
+ {
1823
+ href: x.href,
1824
+ className: "flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",
1825
+ children: [
1826
+ (() => {
1827
+ const b = x.icon;
1828
+ if (!b) return /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
1829
+ if (C.isValidElement(b))
1830
+ return C.cloneElement(b, {
1831
+ className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary",
1832
+ "aria-hidden": !0
1833
+ });
1834
+ if (typeof b == "function") {
1835
+ const v = b;
1836
+ return /* @__PURE__ */ e.jsx(v, { "aria-hidden": !0, className: "mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary" });
1837
+ }
1838
+ return null;
1839
+ })(),
1840
+ /* @__PURE__ */ e.jsx("span", { children: x.title })
1841
+ ]
1842
+ }
1843
+ ) }, x.title))
1844
+ ] })
1845
+ }
1846
+ )
1847
+ ]
1848
+ }
1849
+ );
1850
+ } });
1851
+ }
1852
+ function xt({ config: t, onScrolledChange: l, scrollThreshold: s = 10, quickSearchResults: c = [] }) {
1853
+ const [d, f] = G(!1), [x, b] = G(!1), [v, _] = G(!1), [N, O] = G("");
1854
+ return He(() => {
1855
+ typeof (t == null ? void 0 : t.onSearchOpenChange) == "function" && t.onSearchOpenChange(v), v || (O(""), typeof (t == null ? void 0 : t.onClearQuickResults) == "function" && t.onClearQuickResults());
1856
+ }, [v]), He(() => {
1857
+ const n = () => {
1858
+ const y = window.scrollY > s;
1859
+ b((T) => (T !== y && typeof l == "function" && l(y), y));
1860
+ };
1861
+ return n(), window.addEventListener("scroll", n, { passive: !0 }), () => window.removeEventListener("scroll", n);
1862
+ }, [l, s]), /* @__PURE__ */ e.jsxs(
1863
+ "header",
1864
+ {
1865
+ className: `${t != null && t.sticky ? "sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70" : "relative z-10"} isolate bg-white`,
1866
+ children: [
1867
+ /* @__PURE__ */ e.jsxs(
1868
+ "nav",
1869
+ {
1870
+ "aria-label": "Global",
1871
+ className: "mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",
1872
+ children: [
1873
+ /* @__PURE__ */ e.jsx("div", { className: "flex lg:flex-1", children: /* @__PURE__ */ e.jsx(L, { href: "/", "aria-label": t.logoAlt || "Home", children: t.logo ? /* @__PURE__ */ e.jsx(
1874
+ "img",
1875
+ {
1876
+ alt: t.logoAlt || "Logo",
1877
+ src: t.logo,
1878
+ className: `w-auto transition-all duration-300 ${x ? "h-8 md:h-14" : "h-12 md:h-20"}`
1879
+ }
1880
+ ) : /* @__PURE__ */ e.jsx("div", { className: `h-auto transition-all duration-300 ${x ? "w-28" : "w-32"}`, children: /* @__PURE__ */ e.jsx("h1", { className: `transition-all duration-300 ${x ? "text-xl" : "text-2xl"}`, children: t.fallbackText || "<@reactfast/nav>" }) }) }) }),
1881
+ /* @__PURE__ */ e.jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ e.jsxs(
1882
+ "button",
1883
+ {
1884
+ type: "button",
1885
+ onClick: () => f(!0),
1886
+ className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
1887
+ children: [
1888
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open main menu" }),
1889
+ /* @__PURE__ */ e.jsx(ye, { "aria-hidden": "true", className: "size-6" })
1890
+ ]
1891
+ }
1892
+ ) }),
1893
+ /* @__PURE__ */ e.jsx(Xe, { className: "hidden lg:flex lg:gap-x-12", children: t.menuItems.map((n) => {
1894
+ const y = n.type || (n.full ? "full" : "default");
1895
+ return n.subMenu ? y === "full" ? /* @__PURE__ */ e.jsx(lt, { item: n, onHover: n.onHover }, n.id || n.title) : y === "simple" ? /* @__PURE__ */ e.jsx(dt, { item: n, onHover: n.onHover }, n.id || n.title) : /* @__PURE__ */ e.jsx(it, { item: n, onHover: n.onHover }, n.id || n.title) : n.useLink ? /* @__PURE__ */ e.jsx(
1896
+ L,
1897
+ {
1898
+ href: n.href,
1899
+ className: "text-sm/6 font-semibold text-gray-900",
1900
+ children: n.title
1901
+ },
1902
+ n.id
1903
+ ) : /* @__PURE__ */ e.jsx(
1904
+ "a",
1905
+ {
1906
+ href: n.href,
1907
+ className: "text-sm/6 font-semibold text-gray-900",
1908
+ children: n.title
1909
+ },
1910
+ n.id
1911
+ );
1912
+ }) }),
1913
+ /* @__PURE__ */ e.jsxs("div", { className: "hidden gap-4 lg:flex lg:flex-1 lg:justify-end", children: [
1914
+ t.search && /* @__PURE__ */ e.jsx(
1915
+ "button",
1916
+ {
1917
+ type: "button",
1918
+ onClick: () => _(!0),
1919
+ className: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100",
1920
+ "aria-label": "Open search",
1921
+ children: /* @__PURE__ */ e.jsx(Je, { "aria-hidden": "true", className: "size-6" })
1922
+ }
1923
+ ),
1924
+ t.login && /* @__PURE__ */ e.jsxs(
1925
+ "a",
1926
+ {
1927
+ href: t.loginHref,
1928
+ className: "text-sm/6 font-semibold text-gray-900",
1929
+ children: [
1930
+ "Log in ",
1931
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: "→" })
1932
+ ]
1933
+ }
1934
+ ),
1935
+ t.cta && /* @__PURE__ */ e.jsx(
1936
+ "a",
1937
+ {
1938
+ href: t.ctaBtnHref,
1939
+ 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",
1940
+ children: t.ctaTitle || "Sign up"
1941
+ }
1942
+ )
1943
+ ] })
1944
+ ]
1945
+ }
1946
+ ),
1947
+ /* @__PURE__ */ e.jsxs(xe, { open: v, onClose: _, children: [
1948
+ /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 z-50 bg-black/30" }),
1949
+ /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ e.jsxs(ge, { className: "w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10", children: [
1950
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between pb-2", children: [
1951
+ /* @__PURE__ */ e.jsx("h2", { className: "text-base font-semibold text-gray-900", children: "Search" }),
1952
+ /* @__PURE__ */ e.jsx(
1953
+ "button",
1954
+ {
1955
+ type: "button",
1956
+ onClick: () => _(!1),
1957
+ className: "-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100",
1958
+ "aria-label": "Close search",
1959
+ children: /* @__PURE__ */ e.jsx(se, { "aria-hidden": "true", className: "size-5" })
1960
+ }
1961
+ )
1962
+ ] }),
1963
+ /* @__PURE__ */ e.jsxs(
1964
+ "form",
1965
+ {
1966
+ className: "mt-2",
1967
+ onSubmit: (n) => {
1968
+ n.preventDefault(), typeof (t == null ? void 0 : t.onSearch) == "function" && t.onSearch(N), _(!1);
1969
+ },
1970
+ children: [
1971
+ /* @__PURE__ */ e.jsx("label", { htmlFor: "site-search", className: "sr-only", children: "Search" }),
1972
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1973
+ /* @__PURE__ */ e.jsx(
1974
+ "input",
1975
+ {
1976
+ id: "site-search",
1977
+ type: "search",
1978
+ placeholder: "Search...",
1979
+ autoFocus: !0,
1980
+ value: N,
1981
+ onChange: (n) => {
1982
+ const y = n.target.value;
1983
+ O(y), typeof (t == null ? void 0 : t.onSearchChange) == "function" && t.onSearchChange(y);
1984
+ },
1985
+ 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"
1986
+ }
1987
+ ),
1988
+ /* @__PURE__ */ e.jsx(
1989
+ "button",
1990
+ {
1991
+ type: "submit",
1992
+ 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",
1993
+ children: "Search"
1994
+ }
1995
+ )
1996
+ ] })
1997
+ ]
1998
+ }
1999
+ ),
2000
+ Array.isArray(c) && c.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "mt-4 divide-y divide-gray-200", children: c.map((n, y) => {
2001
+ if (!n || typeof n != "object") return null;
2002
+ const T = n.title || n.q || n.name || "Result", $ = n.desc || n.description || n.summary || n.a || "", K = typeof (t == null ? void 0 : t.searchTitleMax) == "number" ? t.searchTitleMax : 60, M = typeof (t == null ? void 0 : t.searchDescMax) == "number" ? t.searchDescMax : 100, k = typeof T == "string" && T.length > K ? `${T.slice(0, K - 1)}…` : T, X = typeof $ == "string" && $.length > M ? `${$.slice(0, M - 1)}…` : $, A = typeof n.link == "string" ? n.link : void 0, ne = typeof A == "string" && A.startsWith("/"), Y = /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3 py-3", children: [
2003
+ n != null && n.icon ? /* @__PURE__ */ e.jsx("div", { className: "mt-0.5 h-6 w-6 text-gray-500", children: n.icon }) : n != null && n.image ? /* @__PURE__ */ e.jsx("img", { src: n.image, alt: T, className: "mt-0.5 h-6 w-6 rounded object-cover" }) : /* @__PURE__ */ e.jsx(Je, { "aria-hidden": "true", className: "mt-0.5 size-6 text-gray-400" }),
2004
+ /* @__PURE__ */ e.jsxs("div", { children: [
2005
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-gray-900 truncate", children: k }),
2006
+ X ? /* @__PURE__ */ e.jsx("div", { className: "text-sm text-gray-500 truncate", children: X }) : null
2007
+ ] })
2008
+ ] });
2009
+ return A ? ne ? /* @__PURE__ */ e.jsx(
2010
+ "a",
2011
+ {
2012
+ href: A,
2013
+ className: "block hover:bg-gray-50",
2014
+ onClick: () => {
2015
+ typeof (t == null ? void 0 : t.onBeginNavigate) == "function" && t.onBeginNavigate(), typeof (t == null ? void 0 : t.onClearQuickResults) == "function" && t.onClearQuickResults(), _(!1);
2016
+ },
2017
+ children: Y
2018
+ },
2019
+ A || y
2020
+ ) : /* @__PURE__ */ e.jsx(
2021
+ "a",
2022
+ {
2023
+ href: A,
2024
+ className: "block hover:bg-gray-50",
2025
+ onClick: () => {
2026
+ typeof (t == null ? void 0 : t.onBeginNavigate) == "function" && t.onBeginNavigate(), typeof (t == null ? void 0 : t.onClearQuickResults) == "function" && t.onClearQuickResults(), _(!1);
2027
+ },
2028
+ children: Y
2029
+ },
2030
+ A || y
2031
+ ) : /* @__PURE__ */ e.jsx("div", { className: "block hover:bg-gray-50", children: Y }, y);
2032
+ }) })
2033
+ ] }) })
2034
+ ] }),
2035
+ /* @__PURE__ */ e.jsxs(
2036
+ xe,
2037
+ {
2038
+ open: d,
2039
+ onClose: f,
2040
+ className: "lg:hidden",
2041
+ children: [
2042
+ /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 z-50" }),
2043
+ /* @__PURE__ */ e.jsxs(ge, { 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: [
2044
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
2045
+ /* @__PURE__ */ e.jsx(
2046
+ L,
2047
+ {
2048
+ href: "/",
2049
+ className: "-m-1.5 p-1.5",
2050
+ "aria-label": t.logoAlt || "Home",
2051
+ children: t.logo ? /* @__PURE__ */ e.jsx(
2052
+ "img",
2053
+ {
2054
+ alt: t.logoAlt || "Logo",
2055
+ src: t.logo,
2056
+ className: "h-8 w-auto"
2057
+ }
2058
+ ) : /* @__PURE__ */ e.jsx("span", { className: "text-lg font-semibold", children: t.fallbackText || "NEXGEN Roofing Systems" })
2059
+ }
2060
+ ),
2061
+ /* @__PURE__ */ e.jsxs(
2062
+ "button",
2063
+ {
2064
+ type: "button",
2065
+ onClick: () => f(!1),
2066
+ className: "-m-2.5 rounded-md p-2.5 text-gray-700",
2067
+ children: [
2068
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close menu" }),
2069
+ /* @__PURE__ */ e.jsx(se, { "aria-hidden": "true", className: "size-6" })
2070
+ ]
2071
+ }
2072
+ )
2073
+ ] }),
2074
+ /* @__PURE__ */ e.jsx("div", { className: "mt-6 flow-root", children: /* @__PURE__ */ e.jsxs("div", { className: "-my-6 divide-y divide-gray-500/10", children: [
2075
+ /* @__PURE__ */ e.jsx("div", { className: "space-y-2 py-6", children: t.menuItems.map(
2076
+ (n) => n.subMenu ? /* @__PURE__ */ e.jsxs(er, { as: "div", className: "-mx-3", children: [
2077
+ /* @__PURE__ */ e.jsxs(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: [
2078
+ n.title,
2079
+ /* @__PURE__ */ e.jsx(
2080
+ V,
2081
+ {
2082
+ "aria-hidden": "true",
2083
+ className: "size-5 flex-none group-data-[open]:rotate-180"
2084
+ }
2085
+ )
2086
+ ] }),
2087
+ /* @__PURE__ */ e.jsx(rr, { className: "mt-2 space-y-2", children: [...n.subMenu, ...n.ctas || []].map(
2088
+ (y) => /* @__PURE__ */ e.jsx(
2089
+ P,
2090
+ {
2091
+ as: "a",
2092
+ href: y.href,
2093
+ className: "block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",
2094
+ children: y.title
2095
+ },
2096
+ y.title
2097
+ )
2098
+ ) })
2099
+ ] }, n.id) : n.useLink ? /* @__PURE__ */ e.jsx(
2100
+ L,
2101
+ {
2102
+ href: n.href,
2103
+ className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",
2104
+ children: n.title
2105
+ },
2106
+ n.id
2107
+ ) : /* @__PURE__ */ e.jsx(
2108
+ "a",
2109
+ {
2110
+ href: n.href,
2111
+ className: "-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",
2112
+ children: n.title
2113
+ },
2114
+ n.id
2115
+ )
2116
+ ) }),
2117
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-2 py-6", children: [
2118
+ t.login && /* @__PURE__ */ e.jsxs(
2119
+ "a",
2120
+ {
2121
+ href: t.loginHref,
2122
+ className: "-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",
2123
+ children: [
2124
+ "Log in ",
2125
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: "→" })
2126
+ ]
2127
+ }
2128
+ ),
2129
+ t.cta && /* @__PURE__ */ e.jsx(
2130
+ "a",
2131
+ {
2132
+ href: t.ctaBtnHref,
2133
+ 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",
2134
+ children: t.ctaTitle || "Sign up"
2135
+ }
2136
+ )
2137
+ ] })
2138
+ ] }) })
2139
+ ] })
2140
+ ]
2141
+ }
2142
+ )
2143
+ ]
2144
+ }
2145
+ );
2146
+ }
2147
+ export {
2148
+ xt as FastNav,
2149
+ mt as SimpleLight,
2150
+ ft as WithFlyout
2151
+ };