@orchidui/dashboard 1.8.1-93 → 1.8.1-96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +295 -0
  2. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +891 -0
  3. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +68 -0
  4. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +172 -0
  5. package/dist/CollapsibleTrigger-fCarY5DJ.js +154 -0
  6. package/dist/Collection-COudIl-A.js +55 -0
  7. package/dist/ConfigProvider-7mV0D7Sp.js +6 -0
  8. package/dist/Dashboard/Card/OcCard.js +1 -1
  9. package/dist/Dashboard/Charts/BarChart/OcBarChart.js +1 -1
  10. package/dist/Dashboard/Charts/BarRaceChart/OcBarRaceChart.js +1 -1
  11. package/dist/Dashboard/Charts/LineChart/OcLineChart.js +1 -1
  12. package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
  13. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  14. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +68 -0
  15. package/dist/DialogOverlay-Cj3UTjZ8.js +309 -0
  16. package/dist/DialogPortal-zAvO8zt4.js +23 -0
  17. package/dist/DialogTrigger-BIF1A4hk.js +72 -0
  18. package/dist/DismissableLayer-C7IJliOb.js +151 -0
  19. package/dist/FocusScope--pJ6bboI.js +121 -0
  20. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +92 -0
  21. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +27 -0
  22. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +51 -0
  23. package/dist/ListboxItem-CjMk-mEX.js +417 -0
  24. package/dist/MenuSubTrigger-CUrxnPwO.js +845 -0
  25. package/dist/{OcBarChart-CgKo9rAM.js → OcBarChart-DFnF2-u0.js} +2 -2
  26. package/dist/{OcBarRaceChart-D_XrqdiO.js → OcBarRaceChart-B6S4Rrlq.js} +3 -3
  27. package/dist/{OcCard-BpqC7suH.js → OcCard-B3SCzVwn.js} +54 -58
  28. package/dist/OcCodeBlock-CBdVqav7.js +37 -0
  29. package/dist/{OcLineChart-dAL6sRiP.js → OcLineChart-CTDLgo1v.js} +2 -2
  30. package/dist/OcLottieAnimation-DeMoIDaX.js +7747 -0
  31. package/dist/{OcPieChart-Kn-CkXip.js → OcPieChart-NSv6CW-L.js} +4 -4
  32. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +394 -0
  33. package/dist/PopperContent-BT3Svcc3.js +1465 -0
  34. package/dist/Presence-CxfTrw6l.js +133 -0
  35. package/dist/Primitive-B3twiLO1.js +44 -0
  36. package/dist/QuillEditor-hFQ0MJZO.js +9529 -0
  37. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +297 -0
  38. package/dist/RovingFocusGroup-0OHdFQl0.js +92 -0
  39. package/dist/RovingFocusItem-s7Ug6oxb.js +82 -0
  40. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +1255 -0
  41. package/dist/Separator-DRam5i7g.js +54 -0
  42. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +27 -0
  43. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +17 -0
  44. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +135 -0
  45. package/dist/Teleport-DnUewq5H.js +25 -0
  46. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +27 -0
  47. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +426 -0
  48. package/dist/VisuallyHidden-DMAU4heD.js +41 -0
  49. package/dist/VisuallyHiddenInput-DvJnsVHt.js +59 -0
  50. package/dist/_commonjsHelpers-B4e78b8K.js +28 -0
  51. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  52. package/dist/array-CqVTtuYm.js +6 -0
  53. package/dist/arrays-4jDZqbdb.js +20 -0
  54. package/dist/check-C2tzJ0Gk.js +11 -0
  55. package/dist/chevron-down-CnpAlizg.js +13 -0
  56. package/dist/chevron-left-BOwFasou.js +13 -0
  57. package/dist/chevron-right-D308801z.js +13 -0
  58. package/dist/circle-A-6NpYiX.js +13 -0
  59. package/dist/clamp-BL1Rb24G.js +22 -0
  60. package/dist/constant-CuDQlTIy.js +3433 -0
  61. package/dist/createContext-CZEfaSVa.js +17 -0
  62. package/dist/createLucideIcon-eXqDwUWj.js +71 -0
  63. package/dist/ellipsis-CEG9G7eN.js +15 -0
  64. package/dist/getActiveElement-B-HWdUIb.js +11 -0
  65. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +11 -0
  66. package/dist/index-B3LW8uSH.js +133 -0
  67. package/dist/index-BIlpXuWX.js +3430 -0
  68. package/dist/index-BlGEiPHj.js +1246 -0
  69. package/dist/index-BwPb_idr.js +574 -0
  70. package/dist/index-C9julNQm.js +173 -0
  71. package/dist/index-C_aI-Wfj.js +34 -0
  72. package/dist/index-CumjCvqB.js +5703 -0
  73. package/dist/index-LqWMCtOd.js +809 -0
  74. package/dist/index-OpE2oGce.js +110 -0
  75. package/dist/index.js +14 -14
  76. package/dist/isValueEqualOrExist-BDSMUv8t.js +8 -0
  77. package/dist/lib/utils.js +5 -0
  78. package/dist/nullish-CjWwlQS3.js +6 -0
  79. package/dist/ohash.D__AXeF1-DX2n0b2C.js +106 -0
  80. package/dist/plus-CgluTYQY.js +14 -0
  81. package/dist/text-zwICaAnx.js +743 -0
  82. package/dist/ui/accordion/index.js +7 -0
  83. package/dist/ui/alert/index.js +64 -0
  84. package/dist/ui/alert-dialog/index.js +356 -0
  85. package/dist/ui/aspect-ratio/index.js +50 -0
  86. package/dist/ui/auto-form/constant.js +5 -0
  87. package/dist/ui/auto-form/dependencies.js +61 -0
  88. package/dist/ui/auto-form/index.js +227 -0
  89. package/dist/ui/auto-form/interface.js +4 -0
  90. package/dist/ui/auto-form/utils.js +89 -0
  91. package/dist/ui/avatar/index.js +189 -0
  92. package/dist/ui/badge/index.js +37 -0
  93. package/dist/ui/breadcrumb/index.js +126 -0
  94. package/dist/ui/button/index.js +55 -0
  95. package/dist/ui/calendar/index.js +15 -0
  96. package/dist/ui/card/index.js +38 -0
  97. package/dist/ui/carousel/index.js +174 -0
  98. package/dist/ui/carousel/interface.js +1 -0
  99. package/dist/ui/carousel/useCarousel.js +1288 -0
  100. package/dist/ui/chart/index.js +8 -0
  101. package/dist/ui/chart/interface.js +1 -0
  102. package/dist/ui/chart-area/index.js +331 -0
  103. package/dist/ui/chart-bar/index.js +490 -0
  104. package/dist/ui/chart-donut/index.js +509 -0
  105. package/dist/ui/chart-line/index.js +110 -0
  106. package/dist/ui/checkbox/index.js +4 -0
  107. package/dist/ui/collapsible/index.js +60 -0
  108. package/dist/ui/combobox/index.js +877 -0
  109. package/dist/ui/command/index.js +323 -0
  110. package/dist/ui/context-menu/index.js +734 -0
  111. package/dist/ui/dialog/index.js +169 -0
  112. package/dist/ui/drawer/index.js +971 -0
  113. package/dist/ui/dropdown-menu/index.js +723 -0
  114. package/dist/ui/form/index.js +13 -0
  115. package/dist/ui/form/injectionKeys.js +4 -0
  116. package/dist/ui/form/useFormField.js +25 -0
  117. package/dist/ui/hover-card/index.js +331 -0
  118. package/dist/ui/input/index.js +4 -0
  119. package/dist/ui/label/index.js +4 -0
  120. package/dist/ui/menubar/index.js +862 -0
  121. package/dist/ui/navigation-menu/index.js +873 -0
  122. package/dist/ui/number-field/index.js +682 -0
  123. package/dist/ui/pagination/index.js +444 -0
  124. package/dist/ui/pin-input/index.js +308 -0
  125. package/dist/ui/popover/index.js +6 -0
  126. package/dist/ui/progress/index.js +137 -0
  127. package/dist/ui/radio-group/index.js +5 -0
  128. package/dist/ui/range-calendar/index.js +986 -0
  129. package/dist/ui/resizable/index.js +1432 -0
  130. package/dist/ui/scroll-area/index.js +775 -0
  131. package/dist/ui/select/index.js +135 -0
  132. package/dist/ui/separator/index.js +4 -0
  133. package/dist/ui/sheet/index.js +188 -0
  134. package/dist/ui/sidebar/index.js +652 -0
  135. package/dist/ui/sidebar/utils.js +12 -0
  136. package/dist/ui/skeleton/index.js +4 -0
  137. package/dist/ui/slider/index.js +478 -0
  138. package/dist/ui/sonner/index.js +892 -0
  139. package/dist/ui/stepper/index.js +442 -0
  140. package/dist/ui/switch/index.js +4 -0
  141. package/dist/ui/table/index.js +153 -0
  142. package/dist/ui/tabs/index.js +280 -0
  143. package/dist/ui/tags-input/index.js +449 -0
  144. package/dist/ui/textarea/index.js +4 -0
  145. package/dist/ui/toast/index.js +738 -0
  146. package/dist/ui/toast/use-toast.js +85 -0
  147. package/dist/ui/toggle/index.js +6 -0
  148. package/dist/ui/toggle-group/index.js +112 -0
  149. package/dist/ui/tooltip/index.js +29 -0
  150. package/dist/useArrowNavigation-BRMPveaB.js +49 -0
  151. package/dist/useBodyScrollLock-CazCRZjZ.js +153 -0
  152. package/dist/useDirection-C3C_TLKm.js +14 -0
  153. package/dist/useFocusGuards-CyjC9cG9.js +26 -0
  154. package/dist/useFormControl-CFVC51Lp.js +11 -0
  155. package/dist/useForwardExpose-DZT6mL_U.js +37 -0
  156. package/dist/useForwardPropsEmits-0XKBv1pB.js +33 -0
  157. package/dist/useGraceArea-D7-GP1ii.js +137 -0
  158. package/dist/useId-reAg216X.js +13 -0
  159. package/dist/useKbd-BJNupnml.js +41 -0
  160. package/dist/useLocale-BfU0LC8Z.js +14 -0
  161. package/dist/useNonce-C1ZOgOp5.js +14 -0
  162. package/dist/usePrimitiveElement-BjwUvHih.js +15 -0
  163. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +43 -0
  164. package/dist/useSize-BnyQ8FZF.js +37 -0
  165. package/dist/useTypeahead-oSidjyFF.js +40 -0
  166. package/dist/utils-DKNaYMZh.js +57 -0
  167. package/dist/utils-Dx9la83v.js +35 -0
  168. package/dist/utils-DxQ_ywGa.js +55 -0
  169. package/dist/utils-SFgRDk1R.js +2748 -0
  170. package/dist/utils-W-UiqiPE.js +1869 -0
  171. package/dist/vee-validate-Cf8JDJ_k.js +2232 -0
  172. package/dist/x-Cl6YllUK.js +14 -0
  173. package/package.json +265 -3
  174. package/dist/OcCodeBlock-chTpuRDc.js +0 -63
  175. package/dist/OcLottieAnimation-EBkAB8-y.js +0 -7741
  176. package/dist/QuillEditor-BHWfmp5D.js +0 -9544
  177. /package/dist/{style.css → dashboard.css} +0 -0
@@ -0,0 +1,873 @@
1
+ import { c as ye } from "../../index-C_aI-Wfj.js";
2
+ import { defineComponent as P, ref as O, toRefs as be, computed as R, watchEffect as Y, createBlock as T, openBlock as N, unref as e, withCtx as w, createVNode as $, renderSlot as I, withKeys as Ce, mergeProps as B, Teleport as ie, createCommentVNode as Q, onMounted as se, createElementBlock as j, Fragment as ne, watch as oe, createElementVNode as we, normalizeProps as re, guardReactiveProps as le } from "vue";
3
+ import { c as K } from "../../utils-SFgRDk1R.js";
4
+ import { u as q, a as U } from "../../useForwardPropsEmits-0XKBv1pB.js";
5
+ import { u as _e, r as ue, v as Me, l as Ee, i as ae, q as W, a as ke } from "../../index-BwPb_idr.js";
6
+ import { g as L } from "../../getActiveElement-B-HWdUIb.js";
7
+ import { u as x } from "../../useForwardExpose-DZT6mL_U.js";
8
+ import { P as Z } from "../../Presence-CxfTrw6l.js";
9
+ import { P as V } from "../../Primitive-B3twiLO1.js";
10
+ import { u as H } from "../../Collection-COudIl-A.js";
11
+ import { c as de } from "../../createContext-CZEfaSVa.js";
12
+ import { u as Ne } from "../../useDirection-C3C_TLKm.js";
13
+ import { u as ce } from "../../useId-reAg216X.js";
14
+ import { r as S } from "../../index-OpE2oGce.js";
15
+ import { u as fe } from "../../useArrowNavigation-BRMPveaB.js";
16
+ import { _ as Pe } from "../../DismissableLayer-C7IJliOb.js";
17
+ import { _ as Oe } from "../../VisuallyHidden-DMAU4heD.js";
18
+ import { C as Te } from "../../chevron-down-CnpAlizg.js";
19
+ function G(r) {
20
+ return r ? "open" : "closed";
21
+ }
22
+ function pe(r, o) {
23
+ return `${r}-trigger-${o}`;
24
+ }
25
+ function ee(r, o) {
26
+ return `${r}-content-${o}`;
27
+ }
28
+ const Ie = "navigationMenu.linkSelect", z = "navigationMenu.rootContentDismiss";
29
+ function X(r) {
30
+ const o = [], n = document.createTreeWalker(r, NodeFilter.SHOW_ELEMENT, {
31
+ acceptNode: (t) => {
32
+ const a = t.tagName === "INPUT" && t.type === "hidden";
33
+ return t.disabled || t.hidden || a ? NodeFilter.FILTER_SKIP : t.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
34
+ }
35
+ });
36
+ for (; n.nextNode(); ) o.push(n.currentNode);
37
+ return o;
38
+ }
39
+ function ve(r) {
40
+ const o = L();
41
+ return r.some((n) => n === o ? !0 : (n.focus(), L() !== o));
42
+ }
43
+ function $e(r) {
44
+ return r.forEach((o) => {
45
+ o.dataset.tabindex = o.getAttribute("tabindex") || "", o.setAttribute("tabindex", "-1");
46
+ }), () => {
47
+ r.forEach((o) => {
48
+ const n = o.dataset.tabindex;
49
+ o.setAttribute("tabindex", n);
50
+ });
51
+ };
52
+ }
53
+ function me(r) {
54
+ return (o) => o.pointerType === "mouse" ? r(o) : void 0;
55
+ }
56
+ const [F, De] = de(["NavigationMenuRoot", "NavigationMenuSub"], "NavigationMenuContext"), Be = /* @__PURE__ */ P({
57
+ __name: "NavigationMenuRoot",
58
+ props: {
59
+ modelValue: { default: void 0 },
60
+ defaultValue: {},
61
+ dir: {},
62
+ orientation: { default: "horizontal" },
63
+ delayDuration: { default: 200 },
64
+ skipDelayDuration: { default: 300 },
65
+ disableClickTrigger: { type: Boolean, default: !1 },
66
+ disableHoverTrigger: { type: Boolean, default: !1 },
67
+ disablePointerLeaveClose: { type: Boolean },
68
+ unmountOnHide: { type: Boolean, default: !0 },
69
+ asChild: { type: Boolean },
70
+ as: { default: "nav" }
71
+ },
72
+ emits: ["update:modelValue"],
73
+ setup(r, { emit: o }) {
74
+ const n = r, a = _e(n, "modelValue", o, {
75
+ defaultValue: n.defaultValue ?? "",
76
+ passive: n.modelValue === void 0
77
+ }), f = O(""), { forwardRef: l, currentElement: u } = x(), c = O(), b = O(), _ = O(), { getItems: m, CollectionSlot: D } = H({ key: "NavigationMenu", isProvider: !0 }), { delayDuration: k, skipDelayDuration: p, dir: y, disableClickTrigger: C, disableHoverTrigger: E, unmountOnHide: s } = be(n), i = Ne(y), v = ue(!1, p), h = R(() => a.value !== "" || v.value ? 150 : k.value), g = Me((d) => {
78
+ typeof d == "string" && (f.value = a.value, a.value = d);
79
+ }, h);
80
+ return Y(() => {
81
+ if (!a.value)
82
+ return;
83
+ const d = m().map((M) => M.ref);
84
+ _.value = d.find(
85
+ (M) => M.id.includes(a.value)
86
+ );
87
+ }), De({
88
+ isRootMenu: !0,
89
+ modelValue: a,
90
+ previousValue: f,
91
+ baseId: ce(void 0, "reka-navigation-menu"),
92
+ disableClickTrigger: C,
93
+ disableHoverTrigger: E,
94
+ dir: i,
95
+ unmountOnHide: s,
96
+ orientation: n.orientation,
97
+ rootNavigationMenu: u,
98
+ indicatorTrack: c,
99
+ activeTrigger: _,
100
+ onIndicatorTrackChange: (d) => {
101
+ c.value = d;
102
+ },
103
+ viewport: b,
104
+ onViewportChange: (d) => {
105
+ b.value = d;
106
+ },
107
+ onTriggerEnter: (d) => {
108
+ g(d);
109
+ },
110
+ onTriggerLeave: () => {
111
+ v.value = !0, g("");
112
+ },
113
+ onContentEnter: () => {
114
+ g();
115
+ },
116
+ onContentLeave: () => {
117
+ n.disablePointerLeaveClose || g("");
118
+ },
119
+ onItemSelect: (d) => {
120
+ f.value = a.value, a.value = d;
121
+ },
122
+ onItemDismiss: () => {
123
+ f.value = a.value, a.value = "";
124
+ }
125
+ }), (d, M) => (N(), T(e(D), null, {
126
+ default: w(() => [
127
+ $(e(V), {
128
+ ref: e(l),
129
+ "aria-label": "Main",
130
+ as: d.as,
131
+ "as-child": d.asChild,
132
+ "data-orientation": d.orientation,
133
+ dir: e(i),
134
+ "data-reka-navigation-menu": ""
135
+ }, {
136
+ default: w(() => [
137
+ I(d.$slots, "default", { modelValue: e(a) })
138
+ ]),
139
+ _: 3
140
+ }, 8, ["as", "as-child", "data-orientation", "dir"])
141
+ ]),
142
+ _: 3
143
+ }));
144
+ }
145
+ }), [te, xe] = de("NavigationMenuItem"), Re = /* @__PURE__ */ P({
146
+ __name: "NavigationMenuItem",
147
+ props: {
148
+ value: {},
149
+ asChild: { type: Boolean },
150
+ as: { default: "li" }
151
+ },
152
+ setup(r) {
153
+ const o = r;
154
+ x();
155
+ const { getItems: n } = H({ key: "NavigationMenu" }), t = F(), a = ce(o.value), f = O(), l = O(), u = ee(t.baseId, a);
156
+ let c = () => ({});
157
+ const b = O(!1);
158
+ async function _(p = "start") {
159
+ const y = document.getElementById(u);
160
+ if (y) {
161
+ c();
162
+ const C = X(y);
163
+ C.length && ve(p === "start" ? C : C.reverse());
164
+ }
165
+ }
166
+ function m() {
167
+ const p = document.getElementById(u);
168
+ if (p) {
169
+ const y = X(p);
170
+ y.length && (c = $e(y));
171
+ }
172
+ }
173
+ xe({
174
+ value: a,
175
+ contentId: u,
176
+ triggerRef: f,
177
+ focusProxyRef: l,
178
+ wasEscapeCloseRef: b,
179
+ onEntryKeyDown: _,
180
+ onFocusProxyEnter: _,
181
+ onContentFocusOutside: m,
182
+ onRootContentClose: m
183
+ });
184
+ function D() {
185
+ var p;
186
+ t.onItemDismiss(), (p = f.value) == null || p.focus();
187
+ }
188
+ function k(p) {
189
+ const y = L();
190
+ if (p.keyCode === 32 || p.key === "Enter")
191
+ if (t.modelValue.value === a) {
192
+ D(), p.preventDefault();
193
+ return;
194
+ } else {
195
+ p.target.click(), p.preventDefault();
196
+ return;
197
+ }
198
+ const C = n().filter(
199
+ (s) => {
200
+ var i;
201
+ return (i = s.ref.parentElement) == null ? void 0 : i.hasAttribute("data-menu-item");
202
+ }
203
+ ).map((s) => s.ref);
204
+ if (!C.includes(y))
205
+ return;
206
+ const E = fe(p, y, void 0, {
207
+ itemsArray: C,
208
+ loop: !1
209
+ });
210
+ E && (E == null || E.focus()), p.preventDefault(), p.stopPropagation();
211
+ }
212
+ return (p, y) => (N(), T(e(V), {
213
+ "as-child": p.asChild,
214
+ as: p.as,
215
+ "data-menu-item": "",
216
+ onKeydown: Ce(k, ["up", "down", "left", "right", "home", "end", "space"])
217
+ }, {
218
+ default: w(() => [
219
+ I(p.$slots, "default")
220
+ ]),
221
+ _: 3
222
+ }, 8, ["as-child", "as"]));
223
+ }
224
+ }), Ve = /* @__PURE__ */ P({
225
+ __name: "NavigationMenuContentImpl",
226
+ props: {
227
+ disableOutsidePointerEvents: { type: Boolean },
228
+ asChild: { type: Boolean },
229
+ as: {}
230
+ },
231
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
232
+ setup(r, { emit: o }) {
233
+ const n = r, t = o, { getItems: a } = H({ key: "NavigationMenu" }), { forwardRef: f, currentElement: l } = x(), u = F(), c = te(), b = pe(u.baseId, c.value), _ = ee(u.baseId, c.value), m = O(null), D = R(() => {
234
+ const s = a().map((M) => M.ref.id.split("trigger-")[1]);
235
+ u.dir.value === "rtl" && s.reverse();
236
+ const i = s.indexOf(u.modelValue.value), v = s.indexOf(u.previousValue.value), h = c.value === u.modelValue.value, g = v === s.indexOf(c.value);
237
+ if (!h && !g)
238
+ return m.value;
239
+ const d = (() => {
240
+ if (i !== v) {
241
+ if (h && v !== -1)
242
+ return i > v ? "from-end" : "from-start";
243
+ if (g && i !== -1)
244
+ return i > v ? "to-start" : "to-end";
245
+ }
246
+ return null;
247
+ })();
248
+ return m.value = d, d;
249
+ });
250
+ function k(s) {
251
+ var v, h;
252
+ if (t("focusOutside", s), t("interactOutside", s), s.detail.originalEvent.target.hasAttribute("data-navigation-menu-trigger") && s.preventDefault(), !s.defaultPrevented) {
253
+ c.onContentFocusOutside();
254
+ const g = s.target;
255
+ (h = (v = u.rootNavigationMenu) == null ? void 0 : v.value) != null && h.contains(g) && s.preventDefault();
256
+ }
257
+ }
258
+ function p(s) {
259
+ var i;
260
+ if (t("pointerDownOutside", s), !s.defaultPrevented) {
261
+ const v = s.target, h = a().some(
262
+ (d) => d.ref.contains(v)
263
+ ), g = u.isRootMenu && ((i = u.viewport.value) == null ? void 0 : i.contains(v));
264
+ (h || g || !u.isRootMenu) && s.preventDefault();
265
+ }
266
+ }
267
+ Y((s) => {
268
+ const i = l.value;
269
+ if (u.isRootMenu && i) {
270
+ const v = () => {
271
+ var h;
272
+ u.onItemDismiss(), c.onRootContentClose(), i.contains(L()) && ((h = c.triggerRef.value) == null || h.focus());
273
+ };
274
+ i.addEventListener(z, v), s(
275
+ () => i.removeEventListener(z, v)
276
+ );
277
+ }
278
+ });
279
+ function y(s) {
280
+ var i, v;
281
+ t("escapeKeyDown", s), s.defaultPrevented || (u.onItemDismiss(), (v = (i = c.triggerRef) == null ? void 0 : i.value) == null || v.focus(), c.wasEscapeCloseRef.value = !0);
282
+ }
283
+ function C(s) {
284
+ var d;
285
+ if (s.target.closest("[data-reka-navigation-menu]") !== u.rootNavigationMenu.value)
286
+ return;
287
+ const i = s.altKey || s.ctrlKey || s.metaKey, v = s.key === "Tab" && !i, h = X(s.currentTarget);
288
+ if (v) {
289
+ const M = L(), A = h.findIndex(
290
+ (he) => he === M
291
+ ), ge = s.shiftKey ? h.slice(0, A).reverse() : h.slice(A + 1, h.length);
292
+ if (ve(ge))
293
+ s.preventDefault();
294
+ else {
295
+ (d = c.focusProxyRef.value) == null || d.focus();
296
+ return;
297
+ }
298
+ }
299
+ const g = fe(
300
+ s,
301
+ L(),
302
+ void 0,
303
+ { itemsArray: h, loop: !1, enableIgnoredElement: !0 }
304
+ );
305
+ g == null || g.focus();
306
+ }
307
+ function E() {
308
+ var i;
309
+ const s = new Event(z, {
310
+ bubbles: !0,
311
+ cancelable: !0
312
+ });
313
+ (i = l.value) == null || i.dispatchEvent(s);
314
+ }
315
+ return (s, i) => (N(), T(e(Pe), B({
316
+ id: e(_),
317
+ ref: e(f),
318
+ "aria-labelledby": e(b),
319
+ "data-motion": D.value,
320
+ "data-state": e(G)(e(u).modelValue.value === e(c).value),
321
+ "data-orientation": e(u).orientation
322
+ }, n, {
323
+ onKeydown: C,
324
+ onEscapeKeyDown: y,
325
+ onPointerDownOutside: p,
326
+ onFocusOutside: k,
327
+ onDismiss: E
328
+ }), {
329
+ default: w(() => [
330
+ I(s.$slots, "default")
331
+ ]),
332
+ _: 3
333
+ }, 16, ["id", "aria-labelledby", "data-motion", "data-state", "data-orientation"]));
334
+ }
335
+ }), Fe = /* @__PURE__ */ P({
336
+ inheritAttrs: !1,
337
+ __name: "NavigationMenuContent",
338
+ props: {
339
+ forceMount: { type: Boolean },
340
+ disableOutsidePointerEvents: { type: Boolean },
341
+ asChild: { type: Boolean },
342
+ as: {}
343
+ },
344
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
345
+ setup(r, { emit: o }) {
346
+ const n = r, t = o, a = q(Ee(n, "forceMount"), t), { forwardRef: f } = x(), l = F(), u = te(), c = R(() => u.value === l.modelValue.value), b = R(() => l.viewport.value && !l.modelValue.value && l.previousValue.value ? l.previousValue.value === u.value : !1);
347
+ return (_, m) => (N(), T(ie, {
348
+ to: e(ae) && e(l).viewport.value ? e(l).viewport.value : "body",
349
+ disabled: e(ae) && e(l).viewport.value ? !e(l).viewport.value : !0
350
+ }, [
351
+ $(e(Z), {
352
+ present: _.forceMount || c.value || b.value,
353
+ "force-mount": !e(l).unmountOnHide.value
354
+ }, {
355
+ default: w(({ present: D }) => [
356
+ $(Ve, B({
357
+ ref: e(f),
358
+ "data-state": e(G)(c.value),
359
+ style: {
360
+ pointerEvents: !c.value && e(l).isRootMenu ? "none" : void 0
361
+ }
362
+ }, { ..._.$attrs, ...e(a) }, {
363
+ hidden: !D,
364
+ onPointerenter: m[0] || (m[0] = (k) => e(l).onContentEnter(e(u).value)),
365
+ onPointerleave: m[1] || (m[1] = (k) => e(me)(() => e(l).onContentLeave())(k)),
366
+ onPointerDownOutside: m[2] || (m[2] = (k) => t("pointerDownOutside", k)),
367
+ onFocusOutside: m[3] || (m[3] = (k) => t("focusOutside", k)),
368
+ onInteractOutside: m[4] || (m[4] = (k) => t("interactOutside", k))
369
+ }), {
370
+ default: w(() => [
371
+ I(_.$slots, "default")
372
+ ]),
373
+ _: 2
374
+ }, 1040, ["data-state", "style", "hidden"])
375
+ ]),
376
+ _: 3
377
+ }, 8, ["present", "force-mount"])
378
+ ], 8, ["to", "disabled"]));
379
+ }
380
+ }), Le = /* @__PURE__ */ P({
381
+ inheritAttrs: !1,
382
+ __name: "NavigationMenuIndicator",
383
+ props: {
384
+ forceMount: { type: Boolean },
385
+ asChild: { type: Boolean },
386
+ as: {}
387
+ },
388
+ setup(r) {
389
+ const o = r, { forwardRef: n } = x(), t = F(), a = O(), f = R(() => t.orientation === "horizontal"), l = R(() => !!t.modelValue.value), { activeTrigger: u } = t;
390
+ function c() {
391
+ u.value && (a.value = {
392
+ size: f.value ? u.value.offsetWidth : u.value.offsetHeight,
393
+ position: f.value ? u.value.offsetLeft : u.value.offsetTop
394
+ });
395
+ }
396
+ return Y(() => {
397
+ t.modelValue.value && c();
398
+ }), W(u, c), W(t.indicatorTrack, c), (b, _) => e(t).indicatorTrack.value ? (N(), T(ie, {
399
+ key: 0,
400
+ to: e(t).indicatorTrack.value
401
+ }, [
402
+ $(e(Z), {
403
+ present: b.forceMount || l.value
404
+ }, {
405
+ default: w(() => [
406
+ $(e(V), B({
407
+ ref: e(n),
408
+ "aria-hidden": "true",
409
+ "data-state": l.value ? "visible" : "hidden",
410
+ "data-orientation": e(t).orientation,
411
+ "as-child": o.asChild,
412
+ as: b.as,
413
+ style: {
414
+ ...a.value ? {
415
+ "--reka-navigation-menu-indicator-size": `${a.value.size}px`,
416
+ "--reka-navigation-menu-indicator-position": `${a.value.position}px`
417
+ } : {}
418
+ }
419
+ }, b.$attrs), {
420
+ default: w(() => [
421
+ I(b.$slots, "default")
422
+ ]),
423
+ _: 3
424
+ }, 16, ["data-state", "data-orientation", "as-child", "as", "style"])
425
+ ]),
426
+ _: 3
427
+ }, 8, ["present"])
428
+ ], 8, ["to"])) : Q("", !0);
429
+ }
430
+ }), Ke = /* @__PURE__ */ P({
431
+ __name: "NavigationMenuLink",
432
+ props: {
433
+ active: { type: Boolean },
434
+ asChild: { type: Boolean },
435
+ as: { default: "a" }
436
+ },
437
+ emits: ["select"],
438
+ setup(r, { emit: o }) {
439
+ const n = r, t = o, { CollectionItem: a } = H({ key: "NavigationMenu" });
440
+ x();
441
+ async function f(l) {
442
+ var c;
443
+ const u = new CustomEvent(Ie, {
444
+ bubbles: !0,
445
+ cancelable: !0,
446
+ detail: {
447
+ originalEvent: l
448
+ }
449
+ });
450
+ if (t("select", u), !u.defaultPrevented && !l.metaKey) {
451
+ const b = new CustomEvent(
452
+ z,
453
+ {
454
+ bubbles: !0,
455
+ cancelable: !0
456
+ }
457
+ );
458
+ (c = l.target) == null || c.dispatchEvent(b);
459
+ }
460
+ }
461
+ return (l, u) => (N(), T(e(a), null, {
462
+ default: w(() => [
463
+ $(e(V), {
464
+ as: l.as,
465
+ "data-active": l.active ? "" : void 0,
466
+ "aria-current": l.active ? "page" : void 0,
467
+ "as-child": n.asChild,
468
+ onClick: f
469
+ }, {
470
+ default: w(() => [
471
+ I(l.$slots, "default")
472
+ ]),
473
+ _: 3
474
+ }, 8, ["as", "data-active", "aria-current", "as-child"])
475
+ ]),
476
+ _: 3
477
+ }));
478
+ }
479
+ }), Se = /* @__PURE__ */ P({
480
+ inheritAttrs: !1,
481
+ __name: "NavigationMenuList",
482
+ props: {
483
+ asChild: { type: Boolean },
484
+ as: { default: "ul" }
485
+ },
486
+ setup(r) {
487
+ const o = r, n = F(), { forwardRef: t, currentElement: a } = x();
488
+ return se(() => {
489
+ n.onIndicatorTrackChange(a.value);
490
+ }), (f, l) => (N(), T(e(V), {
491
+ ref: e(t),
492
+ style: { position: "relative" }
493
+ }, {
494
+ default: w(() => [
495
+ $(e(V), B(f.$attrs, {
496
+ "as-child": o.asChild,
497
+ as: f.as,
498
+ "data-orientation": e(n).orientation
499
+ }), {
500
+ default: w(() => [
501
+ I(f.$slots, "default")
502
+ ]),
503
+ _: 3
504
+ }, 16, ["as-child", "as", "data-orientation"])
505
+ ]),
506
+ _: 3
507
+ }, 512));
508
+ }
509
+ }), Ae = ["aria-owns"], He = /* @__PURE__ */ P({
510
+ inheritAttrs: !1,
511
+ __name: "NavigationMenuTrigger",
512
+ props: {
513
+ disabled: { type: Boolean },
514
+ asChild: { type: Boolean },
515
+ as: { default: "button" }
516
+ },
517
+ setup(r) {
518
+ const o = r, n = F(), t = te(), { CollectionItem: a } = H({ key: "NavigationMenu" }), { forwardRef: f, currentElement: l } = x(), u = O(""), c = O(""), b = ue(!1, 300), _ = O(!1), m = R(() => t.value === n.modelValue.value);
519
+ se(() => {
520
+ t.triggerRef = l, u.value = pe(n.baseId, t.value), c.value = ee(n.baseId, t.value);
521
+ });
522
+ function D() {
523
+ n.disableHoverTrigger.value || (_.value = !1, t.wasEscapeCloseRef.value = !1);
524
+ }
525
+ function k(i) {
526
+ if (!n.disableHoverTrigger.value && i.pointerType === "mouse") {
527
+ if (o.disabled || _.value || t.wasEscapeCloseRef.value || b.value)
528
+ return;
529
+ n.onTriggerEnter(t.value), b.value = !0;
530
+ }
531
+ }
532
+ function p(i) {
533
+ if (!n.disableHoverTrigger.value && i.pointerType === "mouse") {
534
+ if (o.disabled)
535
+ return;
536
+ n.onTriggerLeave(), b.value = !1;
537
+ }
538
+ }
539
+ function y(i) {
540
+ i.pointerType === "mouse" && n.disableClickTrigger.value || b.value || (m.value ? n.onItemSelect("") : n.onItemSelect(t.value), _.value = m.value);
541
+ }
542
+ function C(i) {
543
+ const h = { horizontal: "ArrowDown", vertical: n.dir.value === "rtl" ? "ArrowLeft" : "ArrowRight" }[n.orientation];
544
+ m.value && i.key === h && (t.onEntryKeyDown(), i.preventDefault(), i.stopPropagation());
545
+ }
546
+ function E(i) {
547
+ t.focusProxyRef.value = ke(i);
548
+ }
549
+ function s(i) {
550
+ const v = document.getElementById(t.contentId), h = i.relatedTarget, g = h === l.value, d = v == null ? void 0 : v.contains(h);
551
+ (g || !d) && t.onFocusProxyEnter(g ? "start" : "end");
552
+ }
553
+ return (i, v) => (N(), j(ne, null, [
554
+ $(e(a), null, {
555
+ default: w(() => [
556
+ $(e(V), B({
557
+ id: u.value,
558
+ ref: e(f),
559
+ disabled: i.disabled,
560
+ "data-disabled": i.disabled ? "" : void 0,
561
+ "data-state": e(G)(m.value),
562
+ "data-navigation-menu-trigger": "",
563
+ "aria-expanded": m.value,
564
+ "aria-controls": c.value,
565
+ "as-child": o.asChild,
566
+ as: i.as
567
+ }, i.$attrs, {
568
+ onPointerenter: D,
569
+ onPointermove: k,
570
+ onPointerleave: p,
571
+ onClick: y,
572
+ onKeydown: C
573
+ }), {
574
+ default: w(() => [
575
+ I(i.$slots, "default")
576
+ ]),
577
+ _: 3
578
+ }, 16, ["id", "disabled", "data-disabled", "data-state", "aria-expanded", "aria-controls", "as-child", "as"])
579
+ ]),
580
+ _: 3
581
+ }),
582
+ m.value ? (N(), j(ne, { key: 0 }, [
583
+ $(e(Oe), {
584
+ ref: E,
585
+ "aria-hidden": "true",
586
+ tabindex: 0,
587
+ onFocus: s
588
+ }),
589
+ e(n).viewport ? (N(), j("span", {
590
+ key: 0,
591
+ "aria-owns": c.value
592
+ }, null, 8, Ae)) : Q("", !0)
593
+ ], 64)) : Q("", !0)
594
+ ], 64));
595
+ }
596
+ }), je = /* @__PURE__ */ P({
597
+ inheritAttrs: !1,
598
+ __name: "NavigationMenuViewport",
599
+ props: {
600
+ forceMount: { type: Boolean },
601
+ align: { default: "center" },
602
+ asChild: { type: Boolean },
603
+ as: {}
604
+ },
605
+ setup(r) {
606
+ var k;
607
+ const o = r, { forwardRef: n, currentElement: t } = x(), a = F(), { activeTrigger: f, rootNavigationMenu: l, modelValue: u } = a, c = O(), b = O(), _ = R(() => !!a.modelValue.value);
608
+ oe(t, () => {
609
+ a.onViewportChange(t.value);
610
+ });
611
+ const m = O();
612
+ oe([u, _], () => {
613
+ t.value && requestAnimationFrame(() => {
614
+ var y;
615
+ const p = (y = t.value) == null ? void 0 : y.querySelector("[data-state=open]");
616
+ m.value = p;
617
+ });
618
+ }, { immediate: !0, flush: "post" });
619
+ function D() {
620
+ if (m.value && f.value && l.value) {
621
+ const p = document.documentElement.offsetWidth, y = document.documentElement.offsetHeight, C = l.value.getBoundingClientRect(), E = f.value.getBoundingClientRect(), { offsetWidth: s, offsetHeight: i } = m.value, v = E.left - C.left, h = E.top - C.top;
622
+ let g = null, d = null;
623
+ switch (o.align) {
624
+ case "start":
625
+ g = v, d = h;
626
+ break;
627
+ case "end":
628
+ g = v - s + E.width, d = h - i + E.height;
629
+ break;
630
+ default:
631
+ g = v - s / 2 + E.width / 2, d = h - i / 2 + E.height / 2;
632
+ }
633
+ const M = 10;
634
+ g + C.left < M && (g = M - C.left);
635
+ const A = g + C.left + s;
636
+ A > p - M && (g -= A - p + M, g < M - C.left && (g = M - C.left)), d + C.top < M && (d = M - C.top);
637
+ const J = d + C.top + i;
638
+ J > y - M && (d -= J - y + M, d < M - C.top && (d = M - C.top)), g = Math.round(g), d = Math.round(d), b.value = {
639
+ left: g,
640
+ top: d
641
+ };
642
+ }
643
+ }
644
+ return W(m, () => {
645
+ m.value && (c.value = {
646
+ width: m.value.offsetWidth,
647
+ height: m.value.offsetHeight
648
+ }, D());
649
+ }), W([(k = globalThis.document) == null ? void 0 : k.body, l], () => {
650
+ D();
651
+ }), (p, y) => (N(), T(e(Z), {
652
+ present: p.forceMount || _.value,
653
+ "force-mount": !e(a).unmountOnHide.value,
654
+ onAfterLeave: y[2] || (y[2] = () => {
655
+ c.value = void 0, b.value = void 0;
656
+ })
657
+ }, {
658
+ default: w(({ present: C }) => {
659
+ var E, s, i, v;
660
+ return [
661
+ $(e(V), B(p.$attrs, {
662
+ ref: e(n),
663
+ as: p.as,
664
+ "as-child": p.asChild,
665
+ "data-state": e(G)(_.value),
666
+ "data-orientation": e(a).orientation,
667
+ style: {
668
+ // Prevent interaction when animating out
669
+ pointerEvents: !_.value && e(a).isRootMenu ? "none" : void 0,
670
+ "--reka-navigation-menu-viewport-width": c.value ? `${(E = c.value) == null ? void 0 : E.width}px` : void 0,
671
+ "--reka-navigation-menu-viewport-height": c.value ? `${(s = c.value) == null ? void 0 : s.height}px` : void 0,
672
+ "--reka-navigation-menu-viewport-left": b.value ? `${(i = b.value) == null ? void 0 : i.left}px` : void 0,
673
+ "--reka-navigation-menu-viewport-top": b.value ? `${(v = b.value) == null ? void 0 : v.top}px` : void 0
674
+ },
675
+ hidden: !C,
676
+ onPointerenter: y[0] || (y[0] = (h) => e(a).onContentEnter(e(a).modelValue.value)),
677
+ onPointerleave: y[1] || (y[1] = (h) => e(me)(() => e(a).onContentLeave())(h))
678
+ }), {
679
+ default: w(() => [
680
+ I(p.$slots, "default")
681
+ ]),
682
+ _: 2
683
+ }, 1040, ["as", "as-child", "data-state", "data-orientation", "style", "hidden"])
684
+ ];
685
+ }),
686
+ _: 3
687
+ }, 8, ["present", "force-mount"]));
688
+ }
689
+ }), ze = { class: "absolute left-0 top-full flex justify-center" }, We = /* @__PURE__ */ P({
690
+ __name: "NavigationMenuViewport",
691
+ props: {
692
+ forceMount: { type: Boolean },
693
+ align: {},
694
+ asChild: { type: Boolean },
695
+ as: { type: [String, Object, Function] },
696
+ class: {}
697
+ },
698
+ setup(r) {
699
+ const o = r, n = S(o, "class"), t = U(n);
700
+ return (a, f) => (N(), j("div", ze, [
701
+ $(e(je), B(e(t), {
702
+ class: e(K)(
703
+ "origin-top-center relative mt-1.5 h-[--reka-navigation-menu-viewport-height] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[--reka-navigation-menu-viewport-width]",
704
+ o.class
705
+ )
706
+ }), null, 16, ["class"])
707
+ ]));
708
+ }
709
+ }), ct = /* @__PURE__ */ P({
710
+ __name: "NavigationMenu",
711
+ props: {
712
+ modelValue: {},
713
+ defaultValue: {},
714
+ dir: {},
715
+ orientation: {},
716
+ delayDuration: {},
717
+ skipDelayDuration: {},
718
+ disableClickTrigger: { type: Boolean },
719
+ disableHoverTrigger: { type: Boolean },
720
+ disablePointerLeaveClose: { type: Boolean },
721
+ unmountOnHide: { type: Boolean },
722
+ asChild: { type: Boolean },
723
+ as: { type: [String, Object, Function] },
724
+ class: {}
725
+ },
726
+ emits: ["update:modelValue"],
727
+ setup(r, { emit: o }) {
728
+ const n = r, t = o, a = S(n, "class"), f = q(a, t);
729
+ return (l, u) => (N(), T(e(Be), B(e(f), {
730
+ class: e(K)("relative z-10 flex max-w-max flex-1 items-center justify-center", n.class)
731
+ }), {
732
+ default: w(() => [
733
+ I(l.$slots, "default"),
734
+ $(We)
735
+ ]),
736
+ _: 3
737
+ }, 16, ["class"]));
738
+ }
739
+ }), ft = /* @__PURE__ */ P({
740
+ __name: "NavigationMenuContent",
741
+ props: {
742
+ forceMount: { type: Boolean },
743
+ disableOutsidePointerEvents: { type: Boolean },
744
+ asChild: { type: Boolean },
745
+ as: { type: [String, Object, Function] },
746
+ class: {}
747
+ },
748
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
749
+ setup(r, { emit: o }) {
750
+ const n = r, t = o, a = S(n, "class"), f = q(a, t);
751
+ return (l, u) => (N(), T(e(Fe), B(e(f), {
752
+ class: e(K)(
753
+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
754
+ n.class
755
+ )
756
+ }), {
757
+ default: w(() => [
758
+ I(l.$slots, "default")
759
+ ]),
760
+ _: 3
761
+ }, 16, ["class"]));
762
+ }
763
+ }), pt = /* @__PURE__ */ P({
764
+ __name: "NavigationMenuIndicator",
765
+ props: {
766
+ forceMount: { type: Boolean },
767
+ asChild: { type: Boolean },
768
+ as: { type: [String, Object, Function] },
769
+ class: {}
770
+ },
771
+ setup(r) {
772
+ const o = r, n = S(o, "class"), t = U(n);
773
+ return (a, f) => (N(), T(e(Le), B(e(t), {
774
+ class: e(K)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", o.class)
775
+ }), {
776
+ default: w(() => f[0] || (f[0] = [
777
+ we("div", { class: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" }, null, -1)
778
+ ])),
779
+ _: 1,
780
+ __: [0]
781
+ }, 16, ["class"]));
782
+ }
783
+ }), vt = /* @__PURE__ */ P({
784
+ __name: "NavigationMenuItem",
785
+ props: {
786
+ value: {},
787
+ asChild: { type: Boolean },
788
+ as: { type: [String, Object, Function] }
789
+ },
790
+ setup(r) {
791
+ const o = r;
792
+ return (n, t) => (N(), T(e(Re), re(le(o)), {
793
+ default: w(() => [
794
+ I(n.$slots, "default")
795
+ ]),
796
+ _: 3
797
+ }, 16));
798
+ }
799
+ }), mt = /* @__PURE__ */ P({
800
+ __name: "NavigationMenuLink",
801
+ props: {
802
+ active: { type: Boolean },
803
+ asChild: { type: Boolean },
804
+ as: { type: [String, Object, Function] }
805
+ },
806
+ emits: ["select"],
807
+ setup(r, { emit: o }) {
808
+ const a = q(r, o);
809
+ return (f, l) => (N(), T(e(Ke), re(le(e(a))), {
810
+ default: w(() => [
811
+ I(f.$slots, "default")
812
+ ]),
813
+ _: 3
814
+ }, 16));
815
+ }
816
+ }), gt = /* @__PURE__ */ P({
817
+ __name: "NavigationMenuList",
818
+ props: {
819
+ asChild: { type: Boolean },
820
+ as: { type: [String, Object, Function] },
821
+ class: {}
822
+ },
823
+ setup(r) {
824
+ const o = r, n = S(o, "class"), t = U(n);
825
+ return (a, f) => (N(), T(e(Se), B(e(t), {
826
+ class: e(K)(
827
+ "group flex flex-1 list-none items-center justify-center gap-x-1",
828
+ o.class
829
+ )
830
+ }), {
831
+ default: w(() => [
832
+ I(a.$slots, "default")
833
+ ]),
834
+ _: 3
835
+ }, 16, ["class"]));
836
+ }
837
+ }), ht = /* @__PURE__ */ P({
838
+ __name: "NavigationMenuTrigger",
839
+ props: {
840
+ disabled: { type: Boolean },
841
+ asChild: { type: Boolean },
842
+ as: { type: [String, Object, Function] },
843
+ class: {}
844
+ },
845
+ setup(r) {
846
+ const o = r, n = S(o, "class"), t = U(n);
847
+ return (a, f) => (N(), T(e(He), B(e(t), {
848
+ class: e(K)(e(qe)(), "group", o.class)
849
+ }), {
850
+ default: w(() => [
851
+ I(a.$slots, "default"),
852
+ $(e(Te), {
853
+ class: "relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
854
+ "aria-hidden": "true"
855
+ })
856
+ ]),
857
+ _: 3
858
+ }, 16, ["class"]));
859
+ }
860
+ }), qe = ye(
861
+ "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
862
+ );
863
+ export {
864
+ ct as NavigationMenu,
865
+ ft as NavigationMenuContent,
866
+ pt as NavigationMenuIndicator,
867
+ vt as NavigationMenuItem,
868
+ mt as NavigationMenuLink,
869
+ gt as NavigationMenuList,
870
+ ht as NavigationMenuTrigger,
871
+ We as NavigationMenuViewport,
872
+ qe as navigationMenuTriggerStyle
873
+ };