@outtalent-dev/shared 1.1.0

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 (189) hide show
  1. package/README.md +77 -0
  2. package/dist/components/ui/badge/Badge.d.ts +15 -0
  3. package/dist/components/ui/badge/Badge.d.ts.map +1 -0
  4. package/dist/components/ui/badge/index.d.ts +2 -0
  5. package/dist/components/ui/badge/index.d.ts.map +1 -0
  6. package/dist/components/ui/button/Button.d.ts +20 -0
  7. package/dist/components/ui/button/Button.d.ts.map +1 -0
  8. package/dist/components/ui/button/index.d.ts +8 -0
  9. package/dist/components/ui/button/index.d.ts.map +1 -0
  10. package/dist/components/ui/calendar/Calendar.d.ts +14 -0
  11. package/dist/components/ui/calendar/Calendar.d.ts.map +1 -0
  12. package/dist/components/ui/calendar/CalendarCell.d.ts +15 -0
  13. package/dist/components/ui/calendar/CalendarCell.d.ts.map +1 -0
  14. package/dist/components/ui/calendar/CalendarCellTrigger.d.ts +15 -0
  15. package/dist/components/ui/calendar/CalendarCellTrigger.d.ts.map +1 -0
  16. package/dist/components/ui/calendar/CalendarGrid.d.ts +15 -0
  17. package/dist/components/ui/calendar/CalendarGrid.d.ts.map +1 -0
  18. package/dist/components/ui/calendar/CalendarGridBody.d.ts +11 -0
  19. package/dist/components/ui/calendar/CalendarGridBody.d.ts.map +1 -0
  20. package/dist/components/ui/calendar/CalendarGridHead.d.ts +15 -0
  21. package/dist/components/ui/calendar/CalendarGridHead.d.ts.map +1 -0
  22. package/dist/components/ui/calendar/CalendarGridRow.d.ts +15 -0
  23. package/dist/components/ui/calendar/CalendarGridRow.d.ts.map +1 -0
  24. package/dist/components/ui/calendar/CalendarHeadCell.d.ts +15 -0
  25. package/dist/components/ui/calendar/CalendarHeadCell.d.ts.map +1 -0
  26. package/dist/components/ui/calendar/CalendarHeader.d.ts +15 -0
  27. package/dist/components/ui/calendar/CalendarHeader.d.ts.map +1 -0
  28. package/dist/components/ui/calendar/CalendarHeading.d.ts +21 -0
  29. package/dist/components/ui/calendar/CalendarHeading.d.ts.map +1 -0
  30. package/dist/components/ui/calendar/CalendarNextButton.d.ts +15 -0
  31. package/dist/components/ui/calendar/CalendarNextButton.d.ts.map +1 -0
  32. package/dist/components/ui/calendar/CalendarPrevButton.d.ts +15 -0
  33. package/dist/components/ui/calendar/CalendarPrevButton.d.ts.map +1 -0
  34. package/dist/components/ui/calendar/index.d.ts +13 -0
  35. package/dist/components/ui/calendar/index.d.ts.map +1 -0
  36. package/dist/components/ui/checkbox/Checkbox.d.ts +19 -0
  37. package/dist/components/ui/checkbox/Checkbox.d.ts.map +1 -0
  38. package/dist/components/ui/checkbox/index.d.ts +2 -0
  39. package/dist/components/ui/checkbox/index.d.ts.map +1 -0
  40. package/dist/components/ui/combobox/Combobox.d.ts +26 -0
  41. package/dist/components/ui/combobox/Combobox.d.ts.map +1 -0
  42. package/dist/components/ui/combobox/ComboboxAnchor.d.ts +15 -0
  43. package/dist/components/ui/combobox/ComboboxAnchor.d.ts.map +1 -0
  44. package/dist/components/ui/combobox/ComboboxEmpty.d.ts +15 -0
  45. package/dist/components/ui/combobox/ComboboxEmpty.d.ts.map +1 -0
  46. package/dist/components/ui/combobox/ComboboxGroup.d.ts +16 -0
  47. package/dist/components/ui/combobox/ComboboxGroup.d.ts.map +1 -0
  48. package/dist/components/ui/combobox/ComboboxInput.d.ts +19 -0
  49. package/dist/components/ui/combobox/ComboboxInput.d.ts.map +1 -0
  50. package/dist/components/ui/combobox/ComboboxItem.d.ts +19 -0
  51. package/dist/components/ui/combobox/ComboboxItem.d.ts.map +1 -0
  52. package/dist/components/ui/combobox/ComboboxList.d.ts +29 -0
  53. package/dist/components/ui/combobox/ComboboxList.d.ts.map +1 -0
  54. package/dist/components/ui/combobox/ComboboxSeparator.d.ts +15 -0
  55. package/dist/components/ui/combobox/ComboboxSeparator.d.ts.map +1 -0
  56. package/dist/components/ui/combobox/index.d.ts +10 -0
  57. package/dist/components/ui/combobox/index.d.ts.map +1 -0
  58. package/dist/components/ui/dialog/Dialog.d.ts +15 -0
  59. package/dist/components/ui/dialog/Dialog.d.ts.map +1 -0
  60. package/dist/components/ui/dialog/DialogClose.d.ts +11 -0
  61. package/dist/components/ui/dialog/DialogClose.d.ts.map +1 -0
  62. package/dist/components/ui/dialog/DialogContent.d.ts +29 -0
  63. package/dist/components/ui/dialog/DialogContent.d.ts.map +1 -0
  64. package/dist/components/ui/dialog/DialogDescription.d.ts +15 -0
  65. package/dist/components/ui/dialog/DialogDescription.d.ts.map +1 -0
  66. package/dist/components/ui/dialog/DialogFooter.d.ts +14 -0
  67. package/dist/components/ui/dialog/DialogFooter.d.ts.map +1 -0
  68. package/dist/components/ui/dialog/DialogHeader.d.ts +14 -0
  69. package/dist/components/ui/dialog/DialogHeader.d.ts.map +1 -0
  70. package/dist/components/ui/dialog/DialogScrollContent.d.ts +29 -0
  71. package/dist/components/ui/dialog/DialogScrollContent.d.ts.map +1 -0
  72. package/dist/components/ui/dialog/DialogTitle.d.ts +15 -0
  73. package/dist/components/ui/dialog/DialogTitle.d.ts.map +1 -0
  74. package/dist/components/ui/dialog/DialogTrigger.d.ts +11 -0
  75. package/dist/components/ui/dialog/DialogTrigger.d.ts.map +1 -0
  76. package/dist/components/ui/dialog/index.d.ts +10 -0
  77. package/dist/components/ui/dialog/index.d.ts.map +1 -0
  78. package/dist/components/ui/form/FormControl.d.ts +10 -0
  79. package/dist/components/ui/form/FormControl.d.ts.map +1 -0
  80. package/dist/components/ui/form/FormDescription.d.ts +14 -0
  81. package/dist/components/ui/form/FormDescription.d.ts.map +1 -0
  82. package/dist/components/ui/form/FormItem.d.ts +14 -0
  83. package/dist/components/ui/form/FormItem.d.ts.map +1 -0
  84. package/dist/components/ui/form/FormLabel.d.ts +15 -0
  85. package/dist/components/ui/form/FormLabel.d.ts.map +1 -0
  86. package/dist/components/ui/form/FormMessage.d.ts +3 -0
  87. package/dist/components/ui/form/FormMessage.d.ts.map +1 -0
  88. package/dist/components/ui/form/index.d.ts +9 -0
  89. package/dist/components/ui/form/index.d.ts.map +1 -0
  90. package/dist/components/ui/form/injectionKeys.d.ts +3 -0
  91. package/dist/components/ui/form/injectionKeys.d.ts.map +1 -0
  92. package/dist/components/ui/form/useFormField.d.ts +12 -0
  93. package/dist/components/ui/form/useFormField.d.ts.map +1 -0
  94. package/dist/components/ui/hover-card/HoverCard.d.ts +15 -0
  95. package/dist/components/ui/hover-card/HoverCard.d.ts.map +1 -0
  96. package/dist/components/ui/hover-card/HoverCardContent.d.ts +17 -0
  97. package/dist/components/ui/hover-card/HoverCardContent.d.ts.map +1 -0
  98. package/dist/components/ui/hover-card/HoverCardTrigger.d.ts +11 -0
  99. package/dist/components/ui/hover-card/HoverCardTrigger.d.ts.map +1 -0
  100. package/dist/components/ui/hover-card/index.d.ts +4 -0
  101. package/dist/components/ui/hover-card/index.d.ts.map +1 -0
  102. package/dist/components/ui/input/Input.d.ts +19 -0
  103. package/dist/components/ui/input/Input.d.ts.map +1 -0
  104. package/dist/components/ui/input/index.d.ts +2 -0
  105. package/dist/components/ui/input/index.d.ts.map +1 -0
  106. package/dist/components/ui/label/Label.d.ts +15 -0
  107. package/dist/components/ui/label/Label.d.ts.map +1 -0
  108. package/dist/components/ui/label/index.d.ts +2 -0
  109. package/dist/components/ui/label/index.d.ts.map +1 -0
  110. package/dist/components/ui/popover/Popover.d.ts +15 -0
  111. package/dist/components/ui/popover/Popover.d.ts.map +1 -0
  112. package/dist/components/ui/popover/PopoverContent.d.ts +32 -0
  113. package/dist/components/ui/popover/PopoverContent.d.ts.map +1 -0
  114. package/dist/components/ui/popover/PopoverTrigger.d.ts +11 -0
  115. package/dist/components/ui/popover/PopoverTrigger.d.ts.map +1 -0
  116. package/dist/components/ui/popover/index.d.ts +5 -0
  117. package/dist/components/ui/popover/index.d.ts.map +1 -0
  118. package/dist/components/ui/select/Select.d.ts +18 -0
  119. package/dist/components/ui/select/Select.d.ts.map +1 -0
  120. package/dist/components/ui/select/SelectContent.d.ts +25 -0
  121. package/dist/components/ui/select/SelectContent.d.ts.map +1 -0
  122. package/dist/components/ui/select/SelectGroup.d.ts +15 -0
  123. package/dist/components/ui/select/SelectGroup.d.ts.map +1 -0
  124. package/dist/components/ui/select/SelectItem.d.ts +15 -0
  125. package/dist/components/ui/select/SelectItem.d.ts.map +1 -0
  126. package/dist/components/ui/select/SelectItemText.d.ts +11 -0
  127. package/dist/components/ui/select/SelectItemText.d.ts.map +1 -0
  128. package/dist/components/ui/select/SelectLabel.d.ts +15 -0
  129. package/dist/components/ui/select/SelectLabel.d.ts.map +1 -0
  130. package/dist/components/ui/select/SelectScrollDownButton.d.ts +15 -0
  131. package/dist/components/ui/select/SelectScrollDownButton.d.ts.map +1 -0
  132. package/dist/components/ui/select/SelectScrollUpButton.d.ts +15 -0
  133. package/dist/components/ui/select/SelectScrollUpButton.d.ts.map +1 -0
  134. package/dist/components/ui/select/SelectSeparator.d.ts +8 -0
  135. package/dist/components/ui/select/SelectSeparator.d.ts.map +1 -0
  136. package/dist/components/ui/select/SelectTrigger.d.ts +15 -0
  137. package/dist/components/ui/select/SelectTrigger.d.ts.map +1 -0
  138. package/dist/components/ui/select/SelectValue.d.ts +11 -0
  139. package/dist/components/ui/select/SelectValue.d.ts.map +1 -0
  140. package/dist/components/ui/select/index.d.ts +12 -0
  141. package/dist/components/ui/select/index.d.ts.map +1 -0
  142. package/dist/components/ui/switch/Switch.d.ts +19 -0
  143. package/dist/components/ui/switch/Switch.d.ts.map +1 -0
  144. package/dist/components/ui/switch/index.d.ts +2 -0
  145. package/dist/components/ui/switch/index.d.ts.map +1 -0
  146. package/dist/components/ui/textarea/Textarea.d.ts +13 -0
  147. package/dist/components/ui/textarea/Textarea.d.ts.map +1 -0
  148. package/dist/components/ui/textarea/index.d.ts +2 -0
  149. package/dist/components/ui/textarea/index.d.ts.map +1 -0
  150. package/dist/components/ui/toast/Toast.d.ts +93 -0
  151. package/dist/components/ui/toast/Toast.d.ts.map +1 -0
  152. package/dist/components/ui/toast/ToastAction.d.ts +15 -0
  153. package/dist/components/ui/toast/ToastAction.d.ts.map +1 -0
  154. package/dist/components/ui/toast/ToastClose.d.ts +8 -0
  155. package/dist/components/ui/toast/ToastClose.d.ts.map +1 -0
  156. package/dist/components/ui/toast/ToastDescription.d.ts +15 -0
  157. package/dist/components/ui/toast/ToastDescription.d.ts.map +1 -0
  158. package/dist/components/ui/toast/ToastProvider.d.ts +11 -0
  159. package/dist/components/ui/toast/ToastProvider.d.ts.map +1 -0
  160. package/dist/components/ui/toast/ToastTitle.d.ts +15 -0
  161. package/dist/components/ui/toast/ToastTitle.d.ts.map +1 -0
  162. package/dist/components/ui/toast/ToastViewport.d.ts +8 -0
  163. package/dist/components/ui/toast/ToastViewport.d.ts.map +1 -0
  164. package/dist/components/ui/toast/Toaster.d.ts +3 -0
  165. package/dist/components/ui/toast/Toaster.d.ts.map +1 -0
  166. package/dist/components/ui/toast/index.d.ts +22 -0
  167. package/dist/components/ui/toast/index.d.ts.map +1 -0
  168. package/dist/components/ui/toast/use-toast.d.ts +275 -0
  169. package/dist/components/ui/toast/use-toast.d.ts.map +1 -0
  170. package/dist/composables/usePrivacy.d.ts +5 -0
  171. package/dist/composables/usePrivacy.d.ts.map +1 -0
  172. package/dist/composables/useSidebarStateSync.d.ts +20 -0
  173. package/dist/composables/useSidebarStateSync.d.ts.map +1 -0
  174. package/dist/constants/platformLinks.d.ts +9 -0
  175. package/dist/constants/platformLinks.d.ts.map +1 -0
  176. package/dist/index.d.ts +24 -0
  177. package/dist/index.d.ts.map +1 -0
  178. package/dist/index.js +2010 -0
  179. package/dist/types/user.d.ts +84 -0
  180. package/dist/types/user.d.ts.map +1 -0
  181. package/dist/utils/api.d.ts +27 -0
  182. package/dist/utils/api.d.ts.map +1 -0
  183. package/dist/utils/cn.d.ts +3 -0
  184. package/dist/utils/cn.d.ts.map +1 -0
  185. package/dist/utils/debounce.d.ts +4 -0
  186. package/dist/utils/debounce.d.ts.map +1 -0
  187. package/dist/utils/jwtDecoder.d.ts +7 -0
  188. package/dist/utils/jwtDecoder.d.ts.map +1 -0
  189. package/package.json +75 -0
package/dist/index.js ADDED
@@ -0,0 +1,2010 @@
1
+ import { clsx as Be } from "clsx";
2
+ import { twMerge as Ce } from "tailwind-merge";
3
+ import ne from "axios";
4
+ import { ref as fe, customRef as Se, computed as O, defineComponent as c, openBlock as l, createElementBlock as S, normalizeClass as k, renderSlot as u, createBlock as d, unref as e, withCtx as n, mergeProps as m, createVNode as g, createElementVNode as G, Fragment as E, renderList as z, createTextVNode as H, toDisplayString as U, normalizeProps as B, guardReactiveProps as C, createCommentVNode as q, inject as le, provide as $e, toValue as Pe, withDirectives as Oe, isRef as Te, vModelText as Ae, isVNode as De, resolveDynamicComponent as ie } from "vue";
5
+ import { useRoute as je, useRouter as ke } from "vue-router";
6
+ import { cva as me } from "class-variance-authority";
7
+ import { Primitive as Ie, useForwardPropsEmits as w, CalendarRoot as Fe, useForwardProps as v, CalendarCell as Ve, CalendarCellTrigger as Ee, CalendarGrid as Me, CalendarGridBody as Re, CalendarGridHead as ze, CalendarGridRow as Le, CalendarHeadCell as He, CalendarHeader as Ue, CalendarHeading as Ge, CalendarNext as Ne, CalendarPrev as We, CheckboxRoot as qe, CheckboxIndicator as Ke, ComboboxRoot as Je, ComboboxAnchor as Qe, ComboboxEmpty as Xe, ComboboxGroup as Ye, ComboboxLabel as Ze, ComboboxInput as et, ComboboxItem as tt, ComboboxPortal as at, ComboboxContent as ot, ComboboxViewport as st, ComboboxSeparator as rt, DialogRoot as nt, DialogClose as oe, DialogPortal as ge, DialogOverlay as _e, DialogContent as ye, DialogDescription as lt, DialogTitle as it, DialogTrigger as dt, Slot as ct, useId as ut, Label as pt, HoverCardRoot as ft, HoverCardPortal as mt, HoverCardContent as gt, HoverCardTrigger as _t, PopoverRoot as yt, PopoverPortal as ht, PopoverContent as bt, PopoverTrigger as vt, SelectRoot as xt, SelectPortal as wt, SelectContent as Bt, SelectViewport as Ct, SelectGroup as St, SelectItem as $t, SelectItemIndicator as Pt, SelectItemText as he, SelectLabel as Ot, SelectScrollDownButton as Tt, SelectScrollUpButton as At, SelectSeparator as Dt, SelectTrigger as jt, SelectIcon as kt, SelectValue as It, SwitchRoot as Ft, SwitchThumb as Vt, ToastRoot as Et, ToastAction as Mt, ToastClose as Rt, ToastDescription as zt, ToastProvider as Lt, ToastTitle as Ht, ToastViewport as Ut } from "reka-ui";
8
+ import { ComboboxCancel as Ho, ComboboxItemIndicator as Uo, ComboboxTrigger as Go, PopoverAnchor as No } from "reka-ui";
9
+ import { reactiveOmit as y, useVModel as Gt } from "@vueuse/core";
10
+ import { ChevronRight as Nt, ChevronLeft as Wt, Check as be, X as se, ChevronDown as ve, ChevronUp as qt } from "lucide-vue-next";
11
+ import { FieldContextKey as Kt, useFieldError as Jt, useIsFieldTouched as Qt, useIsFieldDirty as Xt, useIsFieldValid as Yt, ErrorMessage as Zt } from "vee-validate";
12
+ import { Form as qo, Field as Ko, FieldArray as Jo } from "vee-validate";
13
+ function p(...a) {
14
+ return Ce(Be(a));
15
+ }
16
+ function de(a) {
17
+ const t = a.split(".");
18
+ if (t.length !== 3)
19
+ return console.error("Invalid JWT: Must consist of header, payload, and signature parts"), null;
20
+ const s = t[1].replace(/-/g, "+").replace(/_/g, "/"), r = decodeURIComponent(
21
+ window.atob(s).split("").map((f) => "%" + ("00" + f.charCodeAt(0).toString(16)).slice(-2)).join("")
22
+ ), i = JSON.parse(r);
23
+ return i.exp && (i.expDate = new Date(i.exp * 1e3)), i;
24
+ }
25
+ function za(a) {
26
+ const {
27
+ baseURL: t,
28
+ refreshEndpoint: o,
29
+ loginEndpoint: s,
30
+ logoutEndpoint: r,
31
+ getToken: i,
32
+ setToken: f,
33
+ getRefreshToken: _,
34
+ setRefreshToken: T,
35
+ onUnauthorized: D,
36
+ onTokenRefreshed: b,
37
+ withCredentials: $ = !0,
38
+ timeout: F = 1e4,
39
+ useBearerPrefix: M = !1
40
+ } = a;
41
+ let N = !1, Q = [];
42
+ const re = (h, x = null) => {
43
+ Q.forEach((j) => {
44
+ h ? j.reject(h) : j.resolve(x);
45
+ }), Q = [];
46
+ }, R = ne.create({
47
+ baseURL: t,
48
+ withCredentials: $,
49
+ timeout: F
50
+ }), X = (h) => M ? `Bearer ${h}` : h;
51
+ function we(h) {
52
+ return h ? !!(h === o || s && h === s || r && h === r) : !1;
53
+ }
54
+ return R.interceptors.request.use(
55
+ (h) => {
56
+ const x = i();
57
+ if (x && h.headers && (h.headers.Authorization = X(x), h.headers["Content-Type"] = "application/json"), x && !localStorage.getItem("user_id")) {
58
+ const j = de(x);
59
+ j != null && j.id && localStorage.setItem("user_id", j.id);
60
+ }
61
+ return h;
62
+ },
63
+ (h) => Promise.reject(h)
64
+ ), R.interceptors.response.use(
65
+ (h) => h,
66
+ async (h) => {
67
+ var j;
68
+ const x = h.config;
69
+ if (we(x.url))
70
+ return Promise.reject(h);
71
+ if (((j = h.response) == null ? void 0 : j.status) === 401 && !x._retry) {
72
+ if (N)
73
+ return new Promise((P, Y) => {
74
+ Q.push({ resolve: P, reject: Y });
75
+ }).then((P) => (P && x.headers && (x.headers.Authorization = X(P)), R(x))).catch((P) => Promise.reject(P));
76
+ x._retry = !0, N = !0;
77
+ try {
78
+ const P = _ == null ? void 0 : _(), Y = P ? { jwt_refresh: P } : {}, { data: V } = await ne.post(o, Y, {
79
+ withCredentials: $
80
+ });
81
+ if (V.jwt_access) {
82
+ f(V.jwt_access), V.jwt_refresh && T && T(V.jwt_refresh);
83
+ const W = de(V.jwt_access);
84
+ return W != null && W.id && localStorage.setItem("user_id", W.id), b == null || b(V.jwt_access), x.headers && (x.headers.Authorization = X(V.jwt_access)), re(null, V.jwt_access), N = !1, R(x);
85
+ }
86
+ throw new Error("Token refresh response missing jwt_access");
87
+ } catch (P) {
88
+ return re(P, null), N = !1, localStorage.removeItem("token"), localStorage.removeItem("refresh_token"), localStorage.removeItem("user_id"), D == null || D(), Promise.reject(P);
89
+ }
90
+ }
91
+ return Promise.reject(h);
92
+ }
93
+ ), R;
94
+ }
95
+ function La(a, t = 300) {
96
+ return Se((o, s) => {
97
+ let r;
98
+ return {
99
+ get() {
100
+ return o(), a;
101
+ },
102
+ set(i) {
103
+ clearTimeout(r), r = setTimeout(() => {
104
+ a = i, s();
105
+ }, t);
106
+ }
107
+ };
108
+ });
109
+ }
110
+ function Ha(a, t = 300) {
111
+ const o = fe();
112
+ return (...r) => {
113
+ clearTimeout(o.value), o.value = setTimeout(() => {
114
+ a(...r);
115
+ }, t);
116
+ };
117
+ }
118
+ function Ua(a, t) {
119
+ let o;
120
+ return function(...s) {
121
+ clearTimeout(o), o = setTimeout(() => a.apply(this, s), t);
122
+ };
123
+ }
124
+ const Ga = [
125
+ { name: "LaunchPad", icon: "/icons/Rocket.svg", path: "https://launchpad.outtalent.com/", matcher: null },
126
+ { name: "TrackTalent", icon: "/icons/MagnifyingSparkleGlass.svg", path: "https://tracktalent.outtalent.com/", matcher: null },
127
+ { name: "InterviewWatch", icon: "/icons/SpeechBubbles.svg", path: "https://interviewwatch.outtalent.com/", matcher: null },
128
+ { name: "Offers", icon: "/icons/MoneyBag.svg", path: "https://offers.outtalent.com/", matcher: null },
129
+ { name: "Tuition", icon: "/icons/GraduationCap.svg", path: "https://launchpad.outtalent.com/tuition/manage", matcher: "/tuition" }
130
+ ];
131
+ function Na() {
132
+ const a = je(), t = ke(), o = O(() => a.query.blur === "1");
133
+ return {
134
+ isBlurred: o,
135
+ toggleBlur: async () => {
136
+ const r = { ...a.query };
137
+ o.value ? delete r.blur : r.blur = "1", await t.replace({
138
+ path: a.path,
139
+ query: r
140
+ });
141
+ }
142
+ };
143
+ }
144
+ const Z = "sb", ee = "pf", ea = "blur";
145
+ function Wa(a) {
146
+ const { isSidebarCollapsed: t, isPlatformsExpanded: o, isBlurred: s, links: r, isActive: i } = a, f = new URLSearchParams(window.location.search), _ = f.get(Z), T = f.get(ee);
147
+ if (_ !== null || T !== null) {
148
+ _ !== null && (t.value = _ === "1"), T !== null && (o.value = T === "1"), f.delete(Z), f.delete(ee);
149
+ const b = f.toString(), $ = b ? `${window.location.pathname}?${b}${window.location.hash}` : `${window.location.pathname}${window.location.hash}`;
150
+ window.history.replaceState({}, "", $);
151
+ }
152
+ return { platformLinksWithState: O(() => r.map((b) => {
153
+ const $ = i ? i(b) : !!b.active, F = new URL(b.path);
154
+ return $ || (F.searchParams.set(Z, t.value ? "1" : "0"), F.searchParams.set(ee, o.value ? "1" : "0"), s != null && s.value && F.searchParams.set(ea, "1")), { ...b, active: $, path: F.toString() };
155
+ })) };
156
+ }
157
+ const qa = /* @__PURE__ */ c({
158
+ __name: "Badge",
159
+ props: {
160
+ variant: { default: "default" }
161
+ },
162
+ setup(a) {
163
+ const t = {
164
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
165
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
166
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
167
+ outline: "text-foreground"
168
+ };
169
+ return (o, s) => (l(), S("div", {
170
+ class: k([
171
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
172
+ t[a.variant || "default"]
173
+ ])
174
+ }, [
175
+ u(o.$slots, "default")
176
+ ], 2));
177
+ }
178
+ }), Ka = /* @__PURE__ */ c({
179
+ __name: "Button",
180
+ props: {
181
+ variant: {},
182
+ size: {},
183
+ class: { type: [Boolean, null, String, Object, Array] },
184
+ asChild: { type: Boolean },
185
+ as: { default: "button" }
186
+ },
187
+ setup(a) {
188
+ const t = a;
189
+ return (o, s) => (l(), d(e(Ie), {
190
+ as: a.as,
191
+ "as-child": a.asChild,
192
+ class: k(e(p)(e(K)({ variant: a.variant, size: a.size }), t.class))
193
+ }, {
194
+ default: n(() => [
195
+ u(o.$slots, "default")
196
+ ]),
197
+ _: 3
198
+ }, 8, ["as", "as-child", "class"]));
199
+ }
200
+ }), K = me(
201
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
202
+ {
203
+ variants: {
204
+ variant: {
205
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
206
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
207
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
208
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
209
+ ghost: "hover:bg-accent hover:text-accent-foreground",
210
+ link: "text-primary underline-offset-4 hover:underline"
211
+ },
212
+ size: {
213
+ default: "h-9 px-4 py-2",
214
+ xs: "h-7 rounded px-2",
215
+ sm: "h-8 rounded-md px-3 text-xs",
216
+ lg: "h-10 rounded-md px-8",
217
+ icon: "h-9 w-9"
218
+ }
219
+ },
220
+ defaultVariants: {
221
+ variant: "default",
222
+ size: "default"
223
+ }
224
+ }
225
+ ), ta = { class: "flex flex-col gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0" }, Ja = /* @__PURE__ */ c({
226
+ __name: "Calendar",
227
+ props: {
228
+ defaultValue: {},
229
+ defaultPlaceholder: {},
230
+ placeholder: {},
231
+ pagedNavigation: { type: Boolean },
232
+ preventDeselect: { type: Boolean },
233
+ weekStartsOn: {},
234
+ weekdayFormat: {},
235
+ calendarLabel: {},
236
+ fixedWeeks: { type: Boolean },
237
+ maxValue: {},
238
+ minValue: {},
239
+ locale: {},
240
+ numberOfMonths: {},
241
+ disabled: { type: Boolean },
242
+ readonly: { type: Boolean },
243
+ initialFocus: { type: Boolean },
244
+ isDateDisabled: { type: Function },
245
+ isDateUnavailable: { type: Function },
246
+ dir: {},
247
+ nextPage: { type: Function },
248
+ prevPage: { type: Function },
249
+ modelValue: {},
250
+ multiple: { type: Boolean },
251
+ disableDaysOutsideCurrentView: { type: Boolean },
252
+ asChild: { type: Boolean },
253
+ as: {},
254
+ class: { type: [Boolean, null, String, Object, Array] }
255
+ },
256
+ emits: ["update:modelValue", "update:placeholder"],
257
+ setup(a, { emit: t }) {
258
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
259
+ return (f, _) => (l(), d(e(Fe), m({
260
+ class: e(p)("p-3", o.class)
261
+ }, e(i)), {
262
+ default: n(({ grid: T, weekDays: D }) => [
263
+ g(e(ia), null, {
264
+ default: n(() => [
265
+ g(e(ua)),
266
+ g(e(da)),
267
+ g(e(ca))
268
+ ]),
269
+ _: 1
270
+ }),
271
+ G("div", ta, [
272
+ (l(!0), S(E, null, z(T, (b) => (l(), d(e(sa), {
273
+ key: b.value.toString()
274
+ }, {
275
+ default: n(() => [
276
+ g(e(na), null, {
277
+ default: n(() => [
278
+ g(e(ce), null, {
279
+ default: n(() => [
280
+ (l(!0), S(E, null, z(D, ($) => (l(), d(e(la), { key: $ }, {
281
+ default: n(() => [
282
+ H(U($), 1)
283
+ ]),
284
+ _: 2
285
+ }, 1024))), 128))
286
+ ]),
287
+ _: 2
288
+ }, 1024)
289
+ ]),
290
+ _: 2
291
+ }, 1024),
292
+ g(e(ra), null, {
293
+ default: n(() => [
294
+ (l(!0), S(E, null, z(b.rows, ($, F) => (l(), d(e(ce), {
295
+ key: `weekDate-${F}`,
296
+ class: "mt-2 w-full"
297
+ }, {
298
+ default: n(() => [
299
+ (l(!0), S(E, null, z($, (M) => (l(), d(e(aa), {
300
+ key: M.toString(),
301
+ date: M
302
+ }, {
303
+ default: n(() => [
304
+ g(e(oa), {
305
+ day: M,
306
+ month: b.value
307
+ }, null, 8, ["day", "month"])
308
+ ]),
309
+ _: 2
310
+ }, 1032, ["date"]))), 128))
311
+ ]),
312
+ _: 2
313
+ }, 1024))), 128))
314
+ ]),
315
+ _: 2
316
+ }, 1024)
317
+ ]),
318
+ _: 2
319
+ }, 1024))), 128))
320
+ ])
321
+ ]),
322
+ _: 1
323
+ }, 16, ["class"]));
324
+ }
325
+ }), aa = /* @__PURE__ */ c({
326
+ __name: "CalendarCell",
327
+ props: {
328
+ date: {},
329
+ asChild: { type: Boolean },
330
+ as: {},
331
+ class: { type: [Boolean, null, String, Object, Array] }
332
+ },
333
+ setup(a) {
334
+ const t = a, o = y(t, "class"), s = v(o);
335
+ return (r, i) => (l(), d(e(Ve), m({
336
+ class: e(p)("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-view])]:bg-accent/50", t.class)
337
+ }, e(s)), {
338
+ default: n(() => [
339
+ u(r.$slots, "default")
340
+ ]),
341
+ _: 3
342
+ }, 16, ["class"]));
343
+ }
344
+ }), oa = /* @__PURE__ */ c({
345
+ __name: "CalendarCellTrigger",
346
+ props: {
347
+ day: {},
348
+ month: {},
349
+ asChild: { type: Boolean },
350
+ as: {},
351
+ class: { type: [Boolean, null, String, Object, Array] }
352
+ },
353
+ setup(a) {
354
+ const t = a, o = y(t, "class"), s = v(o);
355
+ return (r, i) => (l(), d(e(Ee), m({
356
+ class: e(p)(
357
+ e(K)({ variant: "ghost" }),
358
+ "h-8 w-8 p-0 font-normal",
359
+ "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
360
+ "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground",
361
+ "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
362
+ "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
363
+ "data-[outside-view]:text-muted-foreground data-[outside-view]:opacity-50 [&[data-outside-view][data-selected]]:bg-accent/50 [&[data-outside-view][data-selected]]:text-muted-foreground [&[data-outside-view][data-selected]]:opacity-30",
364
+ t.class
365
+ )
366
+ }, e(s)), {
367
+ default: n(() => [
368
+ u(r.$slots, "default")
369
+ ]),
370
+ _: 3
371
+ }, 16, ["class"]));
372
+ }
373
+ }), sa = /* @__PURE__ */ c({
374
+ __name: "CalendarGrid",
375
+ props: {
376
+ asChild: { type: Boolean },
377
+ as: {},
378
+ class: { type: [Boolean, null, String, Object, Array] }
379
+ },
380
+ setup(a) {
381
+ const t = a, o = y(t, "class"), s = v(o);
382
+ return (r, i) => (l(), d(e(Me), m({
383
+ class: e(p)("w-full border-collapse space-y-1", t.class)
384
+ }, e(s)), {
385
+ default: n(() => [
386
+ u(r.$slots, "default")
387
+ ]),
388
+ _: 3
389
+ }, 16, ["class"]));
390
+ }
391
+ }), ra = /* @__PURE__ */ c({
392
+ __name: "CalendarGridBody",
393
+ props: {
394
+ asChild: { type: Boolean },
395
+ as: {}
396
+ },
397
+ setup(a) {
398
+ const t = a;
399
+ return (o, s) => (l(), d(e(Re), B(C(t)), {
400
+ default: n(() => [
401
+ u(o.$slots, "default")
402
+ ]),
403
+ _: 3
404
+ }, 16));
405
+ }
406
+ }), na = /* @__PURE__ */ c({
407
+ __name: "CalendarGridHead",
408
+ props: {
409
+ asChild: { type: Boolean },
410
+ as: {},
411
+ class: { type: [Boolean, null, String, Object, Array] }
412
+ },
413
+ setup(a) {
414
+ const t = a;
415
+ return (o, s) => (l(), d(e(ze), B(C(t)), {
416
+ default: n(() => [
417
+ u(o.$slots, "default")
418
+ ]),
419
+ _: 3
420
+ }, 16));
421
+ }
422
+ }), ce = /* @__PURE__ */ c({
423
+ __name: "CalendarGridRow",
424
+ props: {
425
+ asChild: { type: Boolean },
426
+ as: {},
427
+ class: { type: [Boolean, null, String, Object, Array] }
428
+ },
429
+ setup(a) {
430
+ const t = a, o = y(t, "class"), s = v(o);
431
+ return (r, i) => (l(), d(e(Le), m({
432
+ class: e(p)("flex", t.class)
433
+ }, e(s)), {
434
+ default: n(() => [
435
+ u(r.$slots, "default")
436
+ ]),
437
+ _: 3
438
+ }, 16, ["class"]));
439
+ }
440
+ }), la = /* @__PURE__ */ c({
441
+ __name: "CalendarHeadCell",
442
+ props: {
443
+ asChild: { type: Boolean },
444
+ as: {},
445
+ class: { type: [Boolean, null, String, Object, Array] }
446
+ },
447
+ setup(a) {
448
+ const t = a, o = y(t, "class"), s = v(o);
449
+ return (r, i) => (l(), d(e(He), m({
450
+ class: e(p)("w-8 rounded-md text-[0.8rem] font-normal text-muted-foreground", t.class)
451
+ }, e(s)), {
452
+ default: n(() => [
453
+ u(r.$slots, "default")
454
+ ]),
455
+ _: 3
456
+ }, 16, ["class"]));
457
+ }
458
+ }), ia = /* @__PURE__ */ c({
459
+ __name: "CalendarHeader",
460
+ props: {
461
+ asChild: { type: Boolean },
462
+ as: {},
463
+ class: { type: [Boolean, null, String, Object, Array] }
464
+ },
465
+ setup(a) {
466
+ const t = a, o = y(t, "class"), s = v(o);
467
+ return (r, i) => (l(), d(e(Ue), m({
468
+ class: e(p)("relative flex w-full items-center justify-between pt-1", t.class)
469
+ }, e(s)), {
470
+ default: n(() => [
471
+ u(r.$slots, "default")
472
+ ]),
473
+ _: 3
474
+ }, 16, ["class"]));
475
+ }
476
+ }), da = /* @__PURE__ */ c({
477
+ __name: "CalendarHeading",
478
+ props: {
479
+ asChild: { type: Boolean },
480
+ as: {},
481
+ class: { type: [Boolean, null, String, Object, Array] }
482
+ },
483
+ setup(a) {
484
+ const t = a, o = y(t, "class"), s = v(o);
485
+ return (r, i) => (l(), d(e(Ge), m({
486
+ class: e(p)("text-sm font-medium", t.class)
487
+ }, e(s)), {
488
+ default: n(({ headingValue: f }) => [
489
+ u(r.$slots, "default", { headingValue: f }, () => [
490
+ H(U(f), 1)
491
+ ])
492
+ ]),
493
+ _: 3
494
+ }, 16, ["class"]));
495
+ }
496
+ }), ca = /* @__PURE__ */ c({
497
+ __name: "CalendarNextButton",
498
+ props: {
499
+ nextPage: { type: Function },
500
+ asChild: { type: Boolean },
501
+ as: {},
502
+ class: { type: [Boolean, null, String, Object, Array] }
503
+ },
504
+ setup(a) {
505
+ const t = a, o = y(t, "class"), s = v(o);
506
+ return (r, i) => (l(), d(e(Ne), m({
507
+ class: e(p)(
508
+ e(K)({ variant: "outline" }),
509
+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",
510
+ t.class
511
+ )
512
+ }, e(s)), {
513
+ default: n(() => [
514
+ u(r.$slots, "default", {}, () => [
515
+ g(e(Nt), { class: "h-4 w-4" })
516
+ ])
517
+ ]),
518
+ _: 3
519
+ }, 16, ["class"]));
520
+ }
521
+ }), ua = /* @__PURE__ */ c({
522
+ __name: "CalendarPrevButton",
523
+ props: {
524
+ prevPage: { type: Function },
525
+ asChild: { type: Boolean },
526
+ as: {},
527
+ class: { type: [Boolean, null, String, Object, Array] }
528
+ },
529
+ setup(a) {
530
+ const t = a, o = y(t, "class"), s = v(o);
531
+ return (r, i) => (l(), d(e(We), m({
532
+ class: e(p)(
533
+ e(K)({ variant: "outline" }),
534
+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",
535
+ t.class
536
+ )
537
+ }, e(s)), {
538
+ default: n(() => [
539
+ u(r.$slots, "default", {}, () => [
540
+ g(e(Wt), { class: "h-4 w-4" })
541
+ ])
542
+ ]),
543
+ _: 3
544
+ }, 16, ["class"]));
545
+ }
546
+ }), Qa = /* @__PURE__ */ c({
547
+ __name: "Checkbox",
548
+ props: {
549
+ defaultValue: {},
550
+ modelValue: {},
551
+ disabled: { type: Boolean },
552
+ value: {},
553
+ id: {},
554
+ trueValue: {},
555
+ falseValue: {},
556
+ asChild: { type: Boolean },
557
+ as: {},
558
+ name: {},
559
+ required: { type: Boolean },
560
+ class: { type: [Boolean, null, String, Object, Array] }
561
+ },
562
+ emits: ["update:modelValue"],
563
+ setup(a, { emit: t }) {
564
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
565
+ return (f, _) => (l(), d(e(qe), m(e(i), {
566
+ class: e(p)(
567
+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
568
+ o.class
569
+ )
570
+ }), {
571
+ default: n(() => [
572
+ g(e(Ke), { class: "flex h-full w-full items-center justify-center text-current" }, {
573
+ default: n(() => [
574
+ u(f.$slots, "default", {}, () => [
575
+ g(e(be), { class: "h-4 w-4" })
576
+ ])
577
+ ]),
578
+ _: 3
579
+ })
580
+ ]),
581
+ _: 3
582
+ }, 16, ["class"]));
583
+ }
584
+ }), Xa = /* @__PURE__ */ c({
585
+ __name: "Combobox",
586
+ props: {
587
+ open: { type: Boolean },
588
+ defaultOpen: { type: Boolean },
589
+ resetSearchTermOnBlur: { type: Boolean },
590
+ resetSearchTermOnSelect: { type: Boolean },
591
+ openOnFocus: { type: Boolean },
592
+ openOnClick: { type: Boolean },
593
+ ignoreFilter: { type: Boolean },
594
+ resetModelValueOnClear: { type: Boolean },
595
+ modelValue: {},
596
+ defaultValue: {},
597
+ multiple: { type: Boolean },
598
+ dir: {},
599
+ disabled: { type: Boolean },
600
+ highlightOnHover: { type: Boolean },
601
+ by: { type: [String, Function] },
602
+ asChild: { type: Boolean },
603
+ as: {},
604
+ name: {},
605
+ required: { type: Boolean }
606
+ },
607
+ emits: ["update:modelValue", "highlight", "update:open"],
608
+ setup(a, { emit: t }) {
609
+ const r = w(a, t);
610
+ return (i, f) => (l(), d(e(Je), B(C(e(r))), {
611
+ default: n(() => [
612
+ u(i.$slots, "default")
613
+ ]),
614
+ _: 3
615
+ }, 16));
616
+ }
617
+ }), Ya = /* @__PURE__ */ c({
618
+ __name: "ComboboxAnchor",
619
+ props: {
620
+ reference: {},
621
+ asChild: { type: Boolean },
622
+ as: {},
623
+ class: { type: [Boolean, null, String, Object, Array] }
624
+ },
625
+ setup(a) {
626
+ const t = a, o = y(t, "class"), s = v(o);
627
+ return (r, i) => (l(), d(e(Qe), m(e(s), {
628
+ class: e(p)("w-[200px]", t.class)
629
+ }), {
630
+ default: n(() => [
631
+ u(r.$slots, "default")
632
+ ]),
633
+ _: 3
634
+ }, 16, ["class"]));
635
+ }
636
+ }), Za = /* @__PURE__ */ c({
637
+ __name: "ComboboxEmpty",
638
+ props: {
639
+ asChild: { type: Boolean },
640
+ as: {},
641
+ class: { type: [Boolean, null, String, Object, Array] }
642
+ },
643
+ setup(a) {
644
+ const t = a, o = y(t, "class");
645
+ return (s, r) => (l(), d(e(Xe), m(e(o), {
646
+ class: e(p)("py-6 text-center text-sm", t.class)
647
+ }), {
648
+ default: n(() => [
649
+ u(s.$slots, "default")
650
+ ]),
651
+ _: 3
652
+ }, 16, ["class"]));
653
+ }
654
+ }), eo = /* @__PURE__ */ c({
655
+ __name: "ComboboxGroup",
656
+ props: {
657
+ asChild: { type: Boolean },
658
+ as: {},
659
+ class: { type: [Boolean, null, String, Object, Array] },
660
+ heading: {}
661
+ },
662
+ setup(a) {
663
+ const t = a, o = y(t, "class");
664
+ return (s, r) => (l(), d(e(Ye), m(e(o), {
665
+ class: e(p)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", t.class)
666
+ }), {
667
+ default: n(() => [
668
+ a.heading ? (l(), d(e(Ze), {
669
+ key: 0,
670
+ class: "px-2 py-1.5 text-xs font-medium text-muted-foreground"
671
+ }, {
672
+ default: n(() => [
673
+ H(U(a.heading), 1)
674
+ ]),
675
+ _: 1
676
+ })) : q("", !0),
677
+ u(s.$slots, "default")
678
+ ]),
679
+ _: 3
680
+ }, 16, ["class"]));
681
+ }
682
+ }), to = /* @__PURE__ */ c({
683
+ __name: "ComboboxInput",
684
+ props: {
685
+ displayValue: { type: Function },
686
+ modelValue: {},
687
+ autoFocus: { type: Boolean },
688
+ disabled: { type: Boolean },
689
+ asChild: { type: Boolean },
690
+ as: {},
691
+ class: { type: [Boolean, null, String, Object, Array] }
692
+ },
693
+ emits: ["update:modelValue"],
694
+ setup(a, { emit: t }) {
695
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
696
+ return (f, _) => (l(), d(e(et), m(e(i), {
697
+ class: e(p)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", o.class)
698
+ }), {
699
+ default: n(() => [
700
+ u(f.$slots, "default")
701
+ ]),
702
+ _: 3
703
+ }, 16, ["class"]));
704
+ }
705
+ }), ao = /* @__PURE__ */ c({
706
+ __name: "ComboboxItem",
707
+ props: {
708
+ textValue: {},
709
+ value: {},
710
+ disabled: { type: Boolean },
711
+ asChild: { type: Boolean },
712
+ as: {},
713
+ class: { type: [Boolean, null, String, Object, Array] }
714
+ },
715
+ emits: ["select"],
716
+ setup(a, { emit: t }) {
717
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
718
+ return (f, _) => (l(), d(e(tt), m(e(i), {
719
+ class: e(p)("relative flex cursor-default gap-2 select-none justify-between items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0", o.class)
720
+ }), {
721
+ default: n(() => [
722
+ u(f.$slots, "default")
723
+ ]),
724
+ _: 3
725
+ }, 16, ["class"]));
726
+ }
727
+ }), oo = /* @__PURE__ */ c({
728
+ inheritAttrs: !1,
729
+ __name: "ComboboxList",
730
+ props: {
731
+ forceMount: { type: Boolean },
732
+ position: { default: "popper" },
733
+ bodyLock: { type: Boolean },
734
+ hideWhenEmpty: { type: Boolean },
735
+ side: {},
736
+ sideOffset: { default: 4 },
737
+ sideFlip: { type: Boolean },
738
+ align: { default: "center" },
739
+ alignOffset: {},
740
+ alignFlip: { type: Boolean },
741
+ avoidCollisions: { type: Boolean },
742
+ collisionBoundary: {},
743
+ collisionPadding: {},
744
+ arrowPadding: {},
745
+ hideShiftedArrow: { type: Boolean },
746
+ sticky: {},
747
+ hideWhenDetached: { type: Boolean },
748
+ positionStrategy: {},
749
+ updatePositionStrategy: {},
750
+ disableUpdateOnLayoutShift: { type: Boolean },
751
+ prioritizePosition: { type: Boolean },
752
+ reference: {},
753
+ asChild: { type: Boolean },
754
+ as: {},
755
+ disableOutsidePointerEvents: { type: Boolean },
756
+ class: { type: [Boolean, null, String, Object, Array] }
757
+ },
758
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
759
+ setup(a, { emit: t }) {
760
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
761
+ return (f, _) => (l(), d(e(at), null, {
762
+ default: n(() => [
763
+ g(e(ot), m(e(i), {
764
+ class: e(p)("z-50 w-[200px] rounded-md border bg-popover text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", o.class)
765
+ }), {
766
+ default: n(() => [
767
+ g(e(st), m(f.$attrs, {
768
+ class: o.class
769
+ }), {
770
+ default: n(() => [
771
+ u(f.$slots, "default")
772
+ ]),
773
+ _: 3
774
+ }, 16, ["class"])
775
+ ]),
776
+ _: 3
777
+ }, 16, ["class"])
778
+ ]),
779
+ _: 3
780
+ }));
781
+ }
782
+ }), so = /* @__PURE__ */ c({
783
+ __name: "ComboboxSeparator",
784
+ props: {
785
+ asChild: { type: Boolean },
786
+ as: {},
787
+ class: { type: [Boolean, null, String, Object, Array] }
788
+ },
789
+ setup(a) {
790
+ const t = a, o = y(t, "class");
791
+ return (s, r) => (l(), d(e(rt), m(e(o), {
792
+ class: e(p)("-mx-1 h-px bg-border", t.class)
793
+ }), {
794
+ default: n(() => [
795
+ u(s.$slots, "default")
796
+ ]),
797
+ _: 3
798
+ }, 16, ["class"]));
799
+ }
800
+ }), ro = /* @__PURE__ */ c({
801
+ __name: "Dialog",
802
+ props: {
803
+ open: { type: Boolean },
804
+ defaultOpen: { type: Boolean },
805
+ modal: { type: Boolean }
806
+ },
807
+ emits: ["update:open"],
808
+ setup(a, { emit: t }) {
809
+ const r = w(a, t);
810
+ return (i, f) => (l(), d(e(nt), B(C(e(r))), {
811
+ default: n(() => [
812
+ u(i.$slots, "default")
813
+ ]),
814
+ _: 3
815
+ }, 16));
816
+ }
817
+ }), no = /* @__PURE__ */ c({
818
+ __name: "DialogClose",
819
+ props: {
820
+ asChild: { type: Boolean },
821
+ as: {}
822
+ },
823
+ setup(a) {
824
+ const t = a;
825
+ return (o, s) => (l(), d(e(oe), B(C(t)), {
826
+ default: n(() => [
827
+ u(o.$slots, "default")
828
+ ]),
829
+ _: 3
830
+ }, 16));
831
+ }
832
+ }), lo = /* @__PURE__ */ c({
833
+ __name: "DialogContent",
834
+ props: {
835
+ forceMount: { type: Boolean },
836
+ disableOutsidePointerEvents: { type: Boolean },
837
+ asChild: { type: Boolean },
838
+ as: {},
839
+ class: { type: [Boolean, null, String, Object, Array] }
840
+ },
841
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
842
+ setup(a, { emit: t }) {
843
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
844
+ return (f, _) => (l(), d(e(ge), null, {
845
+ default: n(() => [
846
+ g(e(_e), { class: "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }),
847
+ g(e(ye), m(e(i), {
848
+ class: e(p)(
849
+ "fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
850
+ o.class
851
+ )
852
+ }), {
853
+ default: n(() => [
854
+ u(f.$slots, "default"),
855
+ g(e(oe), { class: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, {
856
+ default: n(() => [
857
+ g(e(se), { class: "w-4 h-4" }),
858
+ _[0] || (_[0] = G("span", { class: "sr-only" }, "Close", -1))
859
+ ]),
860
+ _: 1
861
+ })
862
+ ]),
863
+ _: 3
864
+ }, 16, ["class"])
865
+ ]),
866
+ _: 3
867
+ }));
868
+ }
869
+ }), io = /* @__PURE__ */ c({
870
+ __name: "DialogDescription",
871
+ props: {
872
+ asChild: { type: Boolean },
873
+ as: {},
874
+ class: { type: [Boolean, null, String, Object, Array] }
875
+ },
876
+ setup(a) {
877
+ const t = a, o = y(t, "class"), s = v(o);
878
+ return (r, i) => (l(), d(e(lt), m(e(s), {
879
+ class: e(p)("text-sm text-muted-foreground", t.class)
880
+ }), {
881
+ default: n(() => [
882
+ u(r.$slots, "default")
883
+ ]),
884
+ _: 3
885
+ }, 16, ["class"]));
886
+ }
887
+ }), co = /* @__PURE__ */ c({
888
+ __name: "DialogFooter",
889
+ props: {
890
+ class: { type: [Boolean, null, String, Object, Array] }
891
+ },
892
+ setup(a) {
893
+ const t = a;
894
+ return (o, s) => (l(), S("div", {
895
+ class: k(
896
+ e(p)(
897
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",
898
+ t.class
899
+ )
900
+ )
901
+ }, [
902
+ u(o.$slots, "default")
903
+ ], 2));
904
+ }
905
+ }), uo = /* @__PURE__ */ c({
906
+ __name: "DialogHeader",
907
+ props: {
908
+ class: { type: [Boolean, null, String, Object, Array] }
909
+ },
910
+ setup(a) {
911
+ const t = a;
912
+ return (o, s) => (l(), S("div", {
913
+ class: k(e(p)("flex flex-col gap-y-1.5 text-center sm:text-left", t.class))
914
+ }, [
915
+ u(o.$slots, "default")
916
+ ], 2));
917
+ }
918
+ }), po = /* @__PURE__ */ c({
919
+ __name: "DialogScrollContent",
920
+ props: {
921
+ forceMount: { type: Boolean },
922
+ disableOutsidePointerEvents: { type: Boolean },
923
+ asChild: { type: Boolean },
924
+ as: {},
925
+ class: { type: [Boolean, null, String, Object, Array] }
926
+ },
927
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
928
+ setup(a, { emit: t }) {
929
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
930
+ return (f, _) => (l(), d(e(ge), null, {
931
+ default: n(() => [
932
+ g(e(_e), { class: "fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }, {
933
+ default: n(() => [
934
+ g(e(ye), m({
935
+ class: e(p)(
936
+ "relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
937
+ o.class
938
+ )
939
+ }, e(i), {
940
+ onPointerDownOutside: _[0] || (_[0] = (T) => {
941
+ const D = T.detail.originalEvent, b = D.target;
942
+ (D.offsetX > b.clientWidth || D.offsetY > b.clientHeight) && T.preventDefault();
943
+ })
944
+ }), {
945
+ default: n(() => [
946
+ u(f.$slots, "default"),
947
+ g(e(oe), { class: "absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary" }, {
948
+ default: n(() => [
949
+ g(e(se), { class: "w-4 h-4" }),
950
+ _[1] || (_[1] = G("span", { class: "sr-only" }, "Close", -1))
951
+ ]),
952
+ _: 1
953
+ })
954
+ ]),
955
+ _: 3
956
+ }, 16, ["class"])
957
+ ]),
958
+ _: 3
959
+ })
960
+ ]),
961
+ _: 3
962
+ }));
963
+ }
964
+ }), fo = /* @__PURE__ */ c({
965
+ __name: "DialogTitle",
966
+ props: {
967
+ asChild: { type: Boolean },
968
+ as: {},
969
+ class: { type: [Boolean, null, String, Object, Array] }
970
+ },
971
+ setup(a) {
972
+ const t = a, o = y(t, "class"), s = v(o);
973
+ return (r, i) => (l(), d(e(it), m(e(s), {
974
+ class: e(p)(
975
+ "text-lg font-semibold leading-none tracking-tight",
976
+ t.class
977
+ )
978
+ }), {
979
+ default: n(() => [
980
+ u(r.$slots, "default")
981
+ ]),
982
+ _: 3
983
+ }, 16, ["class"]));
984
+ }
985
+ }), mo = /* @__PURE__ */ c({
986
+ __name: "DialogTrigger",
987
+ props: {
988
+ asChild: { type: Boolean },
989
+ as: {}
990
+ },
991
+ setup(a) {
992
+ const t = a;
993
+ return (o, s) => (l(), d(e(dt), B(C(t)), {
994
+ default: n(() => [
995
+ u(o.$slots, "default")
996
+ ]),
997
+ _: 3
998
+ }, 16));
999
+ }
1000
+ }), xe = Symbol();
1001
+ function J() {
1002
+ const a = le(Kt), t = le(xe);
1003
+ if (!a)
1004
+ throw new Error("useFormField should be used within <FormField>");
1005
+ const { name: o } = a, s = t, r = {
1006
+ valid: Yt(o),
1007
+ isDirty: Xt(o),
1008
+ isTouched: Qt(o),
1009
+ error: Jt(o)
1010
+ };
1011
+ return {
1012
+ id: s,
1013
+ name: o,
1014
+ formItemId: `${s}-form-item`,
1015
+ formDescriptionId: `${s}-form-item-description`,
1016
+ formMessageId: `${s}-form-item-message`,
1017
+ ...r
1018
+ };
1019
+ }
1020
+ const go = /* @__PURE__ */ c({
1021
+ __name: "FormControl",
1022
+ setup(a) {
1023
+ const { error: t, formItemId: o, formDescriptionId: s, formMessageId: r } = J();
1024
+ return (i, f) => (l(), d(e(ct), {
1025
+ id: e(o),
1026
+ "aria-describedby": e(t) ? `${e(s)} ${e(r)}` : `${e(s)}`,
1027
+ "aria-invalid": !!e(t)
1028
+ }, {
1029
+ default: n(() => [
1030
+ u(i.$slots, "default")
1031
+ ]),
1032
+ _: 3
1033
+ }, 8, ["id", "aria-describedby", "aria-invalid"]));
1034
+ }
1035
+ }), pa = ["id"], _o = /* @__PURE__ */ c({
1036
+ __name: "FormDescription",
1037
+ props: {
1038
+ class: { type: [Boolean, null, String, Object, Array] }
1039
+ },
1040
+ setup(a) {
1041
+ const t = a, { formDescriptionId: o } = J();
1042
+ return (s, r) => (l(), S("p", {
1043
+ id: e(o),
1044
+ class: k(e(p)("text-sm text-muted-foreground", t.class))
1045
+ }, [
1046
+ u(s.$slots, "default")
1047
+ ], 10, pa));
1048
+ }
1049
+ }), yo = /* @__PURE__ */ c({
1050
+ __name: "FormItem",
1051
+ props: {
1052
+ class: { type: [Boolean, null, String, Object, Array] }
1053
+ },
1054
+ setup(a) {
1055
+ const t = a, o = ut();
1056
+ return $e(xe, o), (s, r) => (l(), S("div", {
1057
+ class: k(e(p)("space-y-2", t.class))
1058
+ }, [
1059
+ u(s.$slots, "default")
1060
+ ], 2));
1061
+ }
1062
+ }), fa = /* @__PURE__ */ c({
1063
+ __name: "Label",
1064
+ props: {
1065
+ for: {},
1066
+ asChild: { type: Boolean },
1067
+ as: {},
1068
+ class: { type: [Boolean, null, String, Object, Array] }
1069
+ },
1070
+ setup(a) {
1071
+ const t = a, o = y(t, "class");
1072
+ return (s, r) => (l(), d(e(pt), m(e(o), {
1073
+ class: e(p)(
1074
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1075
+ t.class
1076
+ )
1077
+ }), {
1078
+ default: n(() => [
1079
+ u(s.$slots, "default")
1080
+ ]),
1081
+ _: 3
1082
+ }, 16, ["class"]));
1083
+ }
1084
+ }), ho = /* @__PURE__ */ c({
1085
+ __name: "FormLabel",
1086
+ props: {
1087
+ for: {},
1088
+ asChild: { type: Boolean },
1089
+ as: {},
1090
+ class: { type: [Boolean, null, String, Object, Array] }
1091
+ },
1092
+ setup(a) {
1093
+ const t = a, { error: o, formItemId: s } = J();
1094
+ return (r, i) => (l(), d(e(fa), {
1095
+ class: k(e(p)(
1096
+ e(o) && "text-destructive",
1097
+ t.class
1098
+ )),
1099
+ for: e(s)
1100
+ }, {
1101
+ default: n(() => [
1102
+ u(r.$slots, "default")
1103
+ ]),
1104
+ _: 3
1105
+ }, 8, ["class", "for"]));
1106
+ }
1107
+ }), bo = /* @__PURE__ */ c({
1108
+ __name: "FormMessage",
1109
+ setup(a) {
1110
+ const { name: t, formMessageId: o } = J();
1111
+ return (s, r) => (l(), d(e(Zt), {
1112
+ id: e(o),
1113
+ as: "p",
1114
+ name: Pe(e(t)),
1115
+ class: "text-[0.8rem] font-medium text-destructive"
1116
+ }, null, 8, ["id", "name"]));
1117
+ }
1118
+ }), vo = /* @__PURE__ */ c({
1119
+ __name: "HoverCard",
1120
+ props: {
1121
+ defaultOpen: { type: Boolean },
1122
+ open: { type: Boolean },
1123
+ openDelay: {},
1124
+ closeDelay: {}
1125
+ },
1126
+ emits: ["update:open"],
1127
+ setup(a, { emit: t }) {
1128
+ const r = w(a, t);
1129
+ return (i, f) => (l(), d(e(ft), B(C(e(r))), {
1130
+ default: n(() => [
1131
+ u(i.$slots, "default")
1132
+ ]),
1133
+ _: 3
1134
+ }, 16));
1135
+ }
1136
+ }), xo = /* @__PURE__ */ c({
1137
+ __name: "HoverCardContent",
1138
+ props: {
1139
+ forceMount: { type: Boolean },
1140
+ side: {},
1141
+ sideOffset: { default: 4 },
1142
+ sideFlip: { type: Boolean },
1143
+ align: {},
1144
+ alignOffset: {},
1145
+ alignFlip: { type: Boolean },
1146
+ avoidCollisions: { type: Boolean },
1147
+ collisionBoundary: {},
1148
+ collisionPadding: {},
1149
+ arrowPadding: {},
1150
+ hideShiftedArrow: { type: Boolean },
1151
+ sticky: {},
1152
+ hideWhenDetached: { type: Boolean },
1153
+ positionStrategy: {},
1154
+ updatePositionStrategy: {},
1155
+ disableUpdateOnLayoutShift: { type: Boolean },
1156
+ prioritizePosition: { type: Boolean },
1157
+ reference: {},
1158
+ asChild: { type: Boolean },
1159
+ as: {},
1160
+ class: { type: [Boolean, null, String, Object, Array] }
1161
+ },
1162
+ setup(a) {
1163
+ const t = a, o = y(t, "class"), s = v(o);
1164
+ return (r, i) => (l(), d(e(mt), null, {
1165
+ default: n(() => [
1166
+ g(e(gt), m(e(s), {
1167
+ class: e(p)(
1168
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1169
+ t.class
1170
+ )
1171
+ }), {
1172
+ default: n(() => [
1173
+ u(r.$slots, "default")
1174
+ ]),
1175
+ _: 3
1176
+ }, 16, ["class"])
1177
+ ]),
1178
+ _: 3
1179
+ }));
1180
+ }
1181
+ }), wo = /* @__PURE__ */ c({
1182
+ __name: "HoverCardTrigger",
1183
+ props: {
1184
+ reference: {},
1185
+ asChild: { type: Boolean },
1186
+ as: {}
1187
+ },
1188
+ setup(a) {
1189
+ const t = a;
1190
+ return (o, s) => (l(), d(e(_t), B(C(t)), {
1191
+ default: n(() => [
1192
+ u(o.$slots, "default")
1193
+ ]),
1194
+ _: 3
1195
+ }, 16));
1196
+ }
1197
+ }), ma = ["value"], Bo = /* @__PURE__ */ c({
1198
+ name: "BaseInput",
1199
+ __name: "Input",
1200
+ props: {
1201
+ modelValue: {
1202
+ type: [String, Number],
1203
+ default: ""
1204
+ }
1205
+ },
1206
+ emits: ["update:modelValue"],
1207
+ setup(a) {
1208
+ return (t, o) => (l(), S("input", m({
1209
+ class: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1210
+ value: a.modelValue,
1211
+ onInput: o[0] || (o[0] = (s) => t.$emit("update:modelValue", s.target.value))
1212
+ }, t.$attrs), null, 16, ma));
1213
+ }
1214
+ }), Co = /* @__PURE__ */ c({
1215
+ __name: "Popover",
1216
+ props: {
1217
+ defaultOpen: { type: Boolean },
1218
+ open: { type: Boolean },
1219
+ modal: { type: Boolean }
1220
+ },
1221
+ emits: ["update:open"],
1222
+ setup(a, { emit: t }) {
1223
+ const r = w(a, t);
1224
+ return (i, f) => (l(), d(e(yt), B(C(e(r))), {
1225
+ default: n(() => [
1226
+ u(i.$slots, "default")
1227
+ ]),
1228
+ _: 3
1229
+ }, 16));
1230
+ }
1231
+ }), So = /* @__PURE__ */ c({
1232
+ inheritAttrs: !1,
1233
+ __name: "PopoverContent",
1234
+ props: {
1235
+ forceMount: { type: Boolean },
1236
+ side: {},
1237
+ sideOffset: { default: 4 },
1238
+ sideFlip: { type: Boolean },
1239
+ align: { default: "center" },
1240
+ alignOffset: {},
1241
+ alignFlip: { type: Boolean },
1242
+ avoidCollisions: { type: Boolean },
1243
+ collisionBoundary: {},
1244
+ collisionPadding: {},
1245
+ arrowPadding: {},
1246
+ hideShiftedArrow: { type: Boolean },
1247
+ sticky: {},
1248
+ hideWhenDetached: { type: Boolean },
1249
+ positionStrategy: {},
1250
+ updatePositionStrategy: {},
1251
+ disableUpdateOnLayoutShift: { type: Boolean },
1252
+ prioritizePosition: { type: Boolean },
1253
+ reference: {},
1254
+ asChild: { type: Boolean },
1255
+ as: {},
1256
+ disableOutsidePointerEvents: { type: Boolean },
1257
+ class: { type: [Boolean, null, String, Object, Array] }
1258
+ },
1259
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
1260
+ setup(a, { emit: t }) {
1261
+ const o = a, s = t, r = O(() => {
1262
+ const { class: f, ..._ } = o;
1263
+ return _;
1264
+ }), i = w(r, s);
1265
+ return (f, _) => (l(), d(e(ht), null, {
1266
+ default: n(() => [
1267
+ g(e(bt), m({ ...e(i), ...f.$attrs }, {
1268
+ class: e(p)(
1269
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1270
+ o.class
1271
+ )
1272
+ }), {
1273
+ default: n(() => [
1274
+ u(f.$slots, "default")
1275
+ ]),
1276
+ _: 3
1277
+ }, 16, ["class"])
1278
+ ]),
1279
+ _: 3
1280
+ }));
1281
+ }
1282
+ }), $o = /* @__PURE__ */ c({
1283
+ __name: "PopoverTrigger",
1284
+ props: {
1285
+ asChild: { type: Boolean },
1286
+ as: {}
1287
+ },
1288
+ setup(a) {
1289
+ const t = a;
1290
+ return (o, s) => (l(), d(e(vt), B(C(t)), {
1291
+ default: n(() => [
1292
+ u(o.$slots, "default")
1293
+ ]),
1294
+ _: 3
1295
+ }, 16));
1296
+ }
1297
+ }), Po = /* @__PURE__ */ c({
1298
+ __name: "Select",
1299
+ props: {
1300
+ open: { type: Boolean },
1301
+ defaultOpen: { type: Boolean },
1302
+ defaultValue: {},
1303
+ modelValue: {},
1304
+ by: { type: [String, Function] },
1305
+ dir: {},
1306
+ multiple: { type: Boolean },
1307
+ autocomplete: {},
1308
+ disabled: { type: Boolean },
1309
+ name: {},
1310
+ required: { type: Boolean }
1311
+ },
1312
+ emits: ["update:modelValue", "update:open"],
1313
+ setup(a, { emit: t }) {
1314
+ const r = w(a, t);
1315
+ return (i, f) => (l(), d(e(xt), B(C(e(r))), {
1316
+ default: n(() => [
1317
+ u(i.$slots, "default")
1318
+ ]),
1319
+ _: 3
1320
+ }, 16));
1321
+ }
1322
+ }), Oo = /* @__PURE__ */ c({
1323
+ inheritAttrs: !1,
1324
+ __name: "SelectContent",
1325
+ props: {
1326
+ forceMount: { type: Boolean },
1327
+ position: { default: "popper" },
1328
+ bodyLock: { type: Boolean },
1329
+ side: {},
1330
+ sideOffset: {},
1331
+ sideFlip: { type: Boolean },
1332
+ align: {},
1333
+ alignOffset: {},
1334
+ alignFlip: { type: Boolean },
1335
+ avoidCollisions: { type: Boolean },
1336
+ collisionBoundary: {},
1337
+ collisionPadding: {},
1338
+ arrowPadding: {},
1339
+ hideShiftedArrow: { type: Boolean },
1340
+ sticky: {},
1341
+ hideWhenDetached: { type: Boolean },
1342
+ positionStrategy: {},
1343
+ updatePositionStrategy: {},
1344
+ disableUpdateOnLayoutShift: { type: Boolean },
1345
+ prioritizePosition: { type: Boolean },
1346
+ reference: {},
1347
+ asChild: { type: Boolean },
1348
+ as: {},
1349
+ disableOutsidePointerEvents: { type: Boolean },
1350
+ class: { type: [Boolean, null, String, Object, Array] }
1351
+ },
1352
+ emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
1353
+ setup(a, { emit: t }) {
1354
+ const o = a, s = t, r = O(() => {
1355
+ const { class: f, ..._ } = o;
1356
+ return _;
1357
+ }), i = w(r, s);
1358
+ return (f, _) => (l(), d(e(wt), null, {
1359
+ default: n(() => [
1360
+ g(e(Bt), m({ ...e(i), ...f.$attrs }, {
1361
+ class: e(p)(
1362
+ "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1363
+ a.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1364
+ o.class
1365
+ )
1366
+ }), {
1367
+ default: n(() => [
1368
+ g(e(ya)),
1369
+ g(e(Ct), {
1370
+ class: k(e(p)("p-1", a.position === "popper" && "h-[--reka-select-trigger-height] w-full min-w-[--reka-select-trigger-width]"))
1371
+ }, {
1372
+ default: n(() => [
1373
+ u(f.$slots, "default")
1374
+ ]),
1375
+ _: 3
1376
+ }, 8, ["class"]),
1377
+ g(e(_a))
1378
+ ]),
1379
+ _: 3
1380
+ }, 16, ["class"])
1381
+ ]),
1382
+ _: 3
1383
+ }));
1384
+ }
1385
+ }), To = /* @__PURE__ */ c({
1386
+ __name: "SelectGroup",
1387
+ props: {
1388
+ asChild: { type: Boolean },
1389
+ as: {},
1390
+ class: { type: [Boolean, null, String, Object, Array] }
1391
+ },
1392
+ setup(a) {
1393
+ const t = a, o = O(() => {
1394
+ const { class: s, ...r } = t;
1395
+ return r;
1396
+ });
1397
+ return (s, r) => (l(), d(e(St), m({
1398
+ class: e(p)("p-1 w-full", t.class)
1399
+ }, o.value), {
1400
+ default: n(() => [
1401
+ u(s.$slots, "default")
1402
+ ]),
1403
+ _: 3
1404
+ }, 16, ["class"]));
1405
+ }
1406
+ }), ga = { class: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center" }, Ao = /* @__PURE__ */ c({
1407
+ __name: "SelectItem",
1408
+ props: {
1409
+ value: {},
1410
+ disabled: { type: Boolean },
1411
+ textValue: {},
1412
+ asChild: { type: Boolean },
1413
+ as: {},
1414
+ class: { type: [Boolean, null, String, Object, Array] }
1415
+ },
1416
+ setup(a) {
1417
+ const t = a, o = O(() => {
1418
+ const { class: r, ...i } = t;
1419
+ return i;
1420
+ }), s = v(o);
1421
+ return (r, i) => (l(), d(e($t), m(e(s), {
1422
+ class: e(p)(
1423
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1424
+ t.class
1425
+ )
1426
+ }), {
1427
+ default: n(() => [
1428
+ G("span", ga, [
1429
+ g(e(Pt), null, {
1430
+ default: n(() => [
1431
+ g(e(be), { class: "h-4 w-4" })
1432
+ ]),
1433
+ _: 1
1434
+ })
1435
+ ]),
1436
+ g(e(he), null, {
1437
+ default: n(() => [
1438
+ u(r.$slots, "default")
1439
+ ]),
1440
+ _: 3
1441
+ })
1442
+ ]),
1443
+ _: 3
1444
+ }, 16, ["class"]));
1445
+ }
1446
+ }), Do = /* @__PURE__ */ c({
1447
+ __name: "SelectItemText",
1448
+ props: {
1449
+ asChild: { type: Boolean },
1450
+ as: {}
1451
+ },
1452
+ setup(a) {
1453
+ const t = a;
1454
+ return (o, s) => (l(), d(e(he), B(C(t)), {
1455
+ default: n(() => [
1456
+ u(o.$slots, "default")
1457
+ ]),
1458
+ _: 3
1459
+ }, 16));
1460
+ }
1461
+ }), jo = /* @__PURE__ */ c({
1462
+ __name: "SelectLabel",
1463
+ props: {
1464
+ for: {},
1465
+ asChild: { type: Boolean },
1466
+ as: {},
1467
+ class: { type: [Boolean, null, String, Object, Array] }
1468
+ },
1469
+ setup(a) {
1470
+ const t = a;
1471
+ return (o, s) => (l(), d(e(Ot), m(t, {
1472
+ class: e(p)("px-2 py-1.5 text-sm font-semibold", t.class)
1473
+ }), {
1474
+ default: n(() => [
1475
+ u(o.$slots, "default")
1476
+ ]),
1477
+ _: 3
1478
+ }, 16, ["class"]));
1479
+ }
1480
+ }), _a = /* @__PURE__ */ c({
1481
+ __name: "SelectScrollDownButton",
1482
+ props: {
1483
+ asChild: { type: Boolean },
1484
+ as: {},
1485
+ class: { type: [Boolean, null, String, Object, Array] }
1486
+ },
1487
+ setup(a) {
1488
+ const t = a, o = O(() => {
1489
+ const { class: r, ...i } = t;
1490
+ return i;
1491
+ }), s = v(o);
1492
+ return (r, i) => (l(), d(e(Tt), m(e(s), {
1493
+ class: e(p)("flex cursor-default items-center justify-center py-1", t.class)
1494
+ }), {
1495
+ default: n(() => [
1496
+ u(r.$slots, "default", {}, () => [
1497
+ g(e(ve))
1498
+ ])
1499
+ ]),
1500
+ _: 3
1501
+ }, 16, ["class"]));
1502
+ }
1503
+ }), ya = /* @__PURE__ */ c({
1504
+ __name: "SelectScrollUpButton",
1505
+ props: {
1506
+ asChild: { type: Boolean },
1507
+ as: {},
1508
+ class: { type: [Boolean, null, String, Object, Array] }
1509
+ },
1510
+ setup(a) {
1511
+ const t = a, o = O(() => {
1512
+ const { class: r, ...i } = t;
1513
+ return i;
1514
+ }), s = v(o);
1515
+ return (r, i) => (l(), d(e(At), m(e(s), {
1516
+ class: e(p)("flex cursor-default items-center justify-center py-1", t.class)
1517
+ }), {
1518
+ default: n(() => [
1519
+ u(r.$slots, "default", {}, () => [
1520
+ g(e(qt))
1521
+ ])
1522
+ ]),
1523
+ _: 3
1524
+ }, 16, ["class"]));
1525
+ }
1526
+ }), ko = /* @__PURE__ */ c({
1527
+ __name: "SelectSeparator",
1528
+ props: {
1529
+ asChild: { type: Boolean },
1530
+ as: {},
1531
+ class: { type: [Boolean, null, String, Object, Array] }
1532
+ },
1533
+ setup(a) {
1534
+ const t = a, o = O(() => {
1535
+ const { class: s, ...r } = t;
1536
+ return r;
1537
+ });
1538
+ return (s, r) => (l(), d(e(Dt), m(o.value, {
1539
+ class: e(p)("-mx-1 my-1 h-px bg-muted", t.class)
1540
+ }), null, 16, ["class"]));
1541
+ }
1542
+ }), Io = /* @__PURE__ */ c({
1543
+ __name: "SelectTrigger",
1544
+ props: {
1545
+ disabled: { type: Boolean },
1546
+ reference: {},
1547
+ asChild: { type: Boolean },
1548
+ as: {},
1549
+ class: { type: [Boolean, null, String, Object, Array] }
1550
+ },
1551
+ setup(a) {
1552
+ const t = a, o = O(() => {
1553
+ const { class: r, ...i } = t;
1554
+ return i;
1555
+ }), s = v(o);
1556
+ return (r, i) => (l(), d(e(jt), m(e(s), {
1557
+ class: e(p)(
1558
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",
1559
+ t.class
1560
+ )
1561
+ }), {
1562
+ default: n(() => [
1563
+ u(r.$slots, "default"),
1564
+ t.disabled ? q("", !0) : (l(), d(e(kt), {
1565
+ key: 0,
1566
+ "as-child": ""
1567
+ }, {
1568
+ default: n(() => [
1569
+ g(e(ve), { class: "w-4 h-4 opacity-50 shrink-0" })
1570
+ ]),
1571
+ _: 1
1572
+ }))
1573
+ ]),
1574
+ _: 3
1575
+ }, 16, ["class"]));
1576
+ }
1577
+ }), Fo = /* @__PURE__ */ c({
1578
+ __name: "SelectValue",
1579
+ props: {
1580
+ placeholder: {},
1581
+ asChild: { type: Boolean },
1582
+ as: {}
1583
+ },
1584
+ setup(a) {
1585
+ const t = a;
1586
+ return (o, s) => (l(), d(e(It), B(C(t)), {
1587
+ default: n(() => [
1588
+ u(o.$slots, "default")
1589
+ ]),
1590
+ _: 3
1591
+ }, 16));
1592
+ }
1593
+ }), Vo = /* @__PURE__ */ c({
1594
+ __name: "Switch",
1595
+ props: {
1596
+ defaultValue: {},
1597
+ modelValue: {},
1598
+ disabled: { type: Boolean },
1599
+ id: {},
1600
+ value: {},
1601
+ trueValue: {},
1602
+ falseValue: {},
1603
+ asChild: { type: Boolean },
1604
+ as: {},
1605
+ name: {},
1606
+ required: { type: Boolean },
1607
+ class: { type: [Boolean, null, String, Object, Array] }
1608
+ },
1609
+ emits: ["update:modelValue"],
1610
+ setup(a, { emit: t }) {
1611
+ const o = a, s = t, r = O(() => {
1612
+ const { class: f, ..._ } = o;
1613
+ return _;
1614
+ }), i = w(r, s);
1615
+ return (f, _) => (l(), d(e(Ft), m(e(i), {
1616
+ class: e(p)(
1617
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
1618
+ o.class
1619
+ )
1620
+ }), {
1621
+ default: n(() => [
1622
+ g(e(Vt), {
1623
+ class: k(e(p)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"))
1624
+ }, {
1625
+ default: n(() => [
1626
+ u(f.$slots, "thumb")
1627
+ ]),
1628
+ _: 3
1629
+ }, 8, ["class"])
1630
+ ]),
1631
+ _: 3
1632
+ }, 16, ["class"]));
1633
+ }
1634
+ }), Eo = /* @__PURE__ */ c({
1635
+ __name: "Textarea",
1636
+ props: {
1637
+ class: { type: [Boolean, null, String, Object, Array] },
1638
+ defaultValue: {},
1639
+ modelValue: {}
1640
+ },
1641
+ emits: ["update:modelValue"],
1642
+ setup(a, { emit: t }) {
1643
+ const o = a, r = Gt(o, "modelValue", t, {
1644
+ passive: !0,
1645
+ defaultValue: o.defaultValue
1646
+ });
1647
+ return (i, f) => Oe((l(), S("textarea", {
1648
+ "onUpdate:modelValue": f[0] || (f[0] = (_) => Te(r) ? r.value = _ : null),
1649
+ class: k(e(p)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", o.class))
1650
+ }, null, 2)), [
1651
+ [Ae, e(r)]
1652
+ ]);
1653
+ }
1654
+ }), ha = /* @__PURE__ */ c({
1655
+ __name: "Toast",
1656
+ props: {
1657
+ class: { type: [Boolean, null, String, Object, Array] },
1658
+ variant: {},
1659
+ onOpenChange: { type: Function },
1660
+ defaultOpen: { type: Boolean },
1661
+ forceMount: { type: Boolean },
1662
+ type: {},
1663
+ open: { type: Boolean },
1664
+ duration: {},
1665
+ asChild: { type: Boolean },
1666
+ as: {}
1667
+ },
1668
+ emits: ["escapeKeyDown", "pause", "resume", "swipeStart", "swipeMove", "swipeCancel", "swipeEnd", "update:open"],
1669
+ setup(a, { emit: t }) {
1670
+ const o = a, s = t, r = y(o, "class"), i = w(r, s);
1671
+ return (f, _) => (l(), d(e(Et), m(e(i), {
1672
+ class: e(p)(e(Ta)({ variant: a.variant }), o.class),
1673
+ "onUpdate:open": a.onOpenChange
1674
+ }), {
1675
+ default: n(() => [
1676
+ u(f.$slots, "default")
1677
+ ]),
1678
+ _: 3
1679
+ }, 16, ["class", "onUpdate:open"]));
1680
+ }
1681
+ }), Mo = /* @__PURE__ */ c({
1682
+ __name: "ToastAction",
1683
+ props: {
1684
+ altText: {},
1685
+ asChild: { type: Boolean },
1686
+ as: {},
1687
+ class: { type: [Boolean, null, String, Object, Array] }
1688
+ },
1689
+ setup(a) {
1690
+ const t = a, o = y(t, "class");
1691
+ return (s, r) => (l(), d(e(Mt), m(e(o), {
1692
+ class: e(p)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", t.class)
1693
+ }), {
1694
+ default: n(() => [
1695
+ u(s.$slots, "default")
1696
+ ]),
1697
+ _: 3
1698
+ }, 16, ["class"]));
1699
+ }
1700
+ }), ba = /* @__PURE__ */ c({
1701
+ __name: "ToastClose",
1702
+ props: {
1703
+ asChild: { type: Boolean },
1704
+ as: {},
1705
+ class: { type: [Boolean, null, String, Object, Array] }
1706
+ },
1707
+ setup(a) {
1708
+ const t = a, o = y(t, "class");
1709
+ return (s, r) => (l(), d(e(Rt), m(e(o), {
1710
+ class: e(p)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", t.class)
1711
+ }), {
1712
+ default: n(() => [
1713
+ g(e(se), { class: "h-4 w-4" })
1714
+ ]),
1715
+ _: 1
1716
+ }, 16, ["class"]));
1717
+ }
1718
+ }), ue = /* @__PURE__ */ c({
1719
+ __name: "ToastDescription",
1720
+ props: {
1721
+ asChild: { type: Boolean },
1722
+ as: {},
1723
+ class: { type: [Boolean, null, String, Object, Array] }
1724
+ },
1725
+ setup(a) {
1726
+ const t = a, o = y(t, "class");
1727
+ return (s, r) => (l(), d(e(zt), m({
1728
+ class: e(p)("text-sm opacity-90", t.class)
1729
+ }, e(o)), {
1730
+ default: n(() => [
1731
+ u(s.$slots, "default")
1732
+ ]),
1733
+ _: 3
1734
+ }, 16, ["class"]));
1735
+ }
1736
+ }), va = 1, xa = 1e6, I = {
1737
+ ADD_TOAST: "ADD_TOAST",
1738
+ UPDATE_TOAST: "UPDATE_TOAST",
1739
+ DISMISS_TOAST: "DISMISS_TOAST",
1740
+ REMOVE_TOAST: "REMOVE_TOAST"
1741
+ };
1742
+ let te = 0;
1743
+ function wa() {
1744
+ return te = (te + 1) % Number.MAX_VALUE, te.toString();
1745
+ }
1746
+ const ae = /* @__PURE__ */ new Map();
1747
+ function pe(a) {
1748
+ if (ae.has(a)) return;
1749
+ const t = setTimeout(() => {
1750
+ ae.delete(a), L({
1751
+ type: I.REMOVE_TOAST,
1752
+ toastId: a
1753
+ });
1754
+ }, xa);
1755
+ ae.set(a, t);
1756
+ }
1757
+ const A = fe({
1758
+ toasts: []
1759
+ });
1760
+ function L(a) {
1761
+ switch (a.type) {
1762
+ case I.ADD_TOAST:
1763
+ A.value.toasts = [a.toast, ...A.value.toasts].slice(0, va);
1764
+ break;
1765
+ case I.UPDATE_TOAST:
1766
+ A.value.toasts = A.value.toasts.map(
1767
+ (t) => t.id === a.toast.id ? { ...t, ...a.toast } : t
1768
+ );
1769
+ break;
1770
+ case I.DISMISS_TOAST: {
1771
+ const { toastId: t } = a;
1772
+ t ? pe(t) : A.value.toasts.forEach((o) => {
1773
+ pe(o.id);
1774
+ }), A.value.toasts = A.value.toasts.map(
1775
+ (o) => o.id === t || t === void 0 ? {
1776
+ ...o,
1777
+ open: !1
1778
+ } : o
1779
+ );
1780
+ break;
1781
+ }
1782
+ case I.REMOVE_TOAST:
1783
+ a.toastId === void 0 ? A.value.toasts = [] : A.value.toasts = A.value.toasts.filter((t) => t.id !== a.toastId);
1784
+ break;
1785
+ }
1786
+ }
1787
+ function Ba() {
1788
+ return {
1789
+ toasts: O(() => A.value.toasts),
1790
+ toast: Ca,
1791
+ dismiss: (a) => L({ type: I.DISMISS_TOAST, toastId: a })
1792
+ };
1793
+ }
1794
+ function Ca(a) {
1795
+ const t = wa(), o = (r) => L({
1796
+ type: I.UPDATE_TOAST,
1797
+ toast: { ...r, id: t }
1798
+ }), s = () => L({ type: I.DISMISS_TOAST, toastId: t });
1799
+ return L({
1800
+ type: I.ADD_TOAST,
1801
+ toast: {
1802
+ ...a,
1803
+ id: t,
1804
+ open: !0,
1805
+ onOpenChange: (r) => {
1806
+ r || s();
1807
+ }
1808
+ }
1809
+ }), {
1810
+ id: t,
1811
+ dismiss: s,
1812
+ update: o
1813
+ };
1814
+ }
1815
+ const Sa = { class: "grid gap-1" }, Ro = /* @__PURE__ */ c({
1816
+ __name: "Toaster",
1817
+ setup(a) {
1818
+ const { toasts: t } = Ba();
1819
+ return (o, s) => (l(), d(e($a), null, {
1820
+ default: n(() => [
1821
+ (l(!0), S(E, null, z(e(t), (r) => (l(), d(e(ha), m({
1822
+ key: r.id
1823
+ }, { ref_for: !0 }, r), {
1824
+ default: n(() => [
1825
+ G("div", Sa, [
1826
+ r.title ? (l(), d(e(Pa), { key: 0 }, {
1827
+ default: n(() => [
1828
+ H(U(r.title), 1)
1829
+ ]),
1830
+ _: 2
1831
+ }, 1024)) : q("", !0),
1832
+ r.description ? (l(), S(E, { key: 1 }, [
1833
+ De(r.description) ? (l(), d(e(ue), { key: 0 }, {
1834
+ default: n(() => [
1835
+ (l(), d(ie(r.description)))
1836
+ ]),
1837
+ _: 2
1838
+ }, 1024)) : (l(), d(e(ue), { key: 1 }, {
1839
+ default: n(() => [
1840
+ H(U(r.description), 1)
1841
+ ]),
1842
+ _: 2
1843
+ }, 1024))
1844
+ ], 64)) : q("", !0),
1845
+ g(e(ba))
1846
+ ]),
1847
+ (l(), d(ie(r.action)))
1848
+ ]),
1849
+ _: 2
1850
+ }, 1040))), 128)),
1851
+ g(e(Oa))
1852
+ ]),
1853
+ _: 1
1854
+ }));
1855
+ }
1856
+ }), $a = /* @__PURE__ */ c({
1857
+ __name: "ToastProvider",
1858
+ props: {
1859
+ label: {},
1860
+ duration: {},
1861
+ disableSwipe: { type: Boolean },
1862
+ swipeDirection: {},
1863
+ swipeThreshold: {}
1864
+ },
1865
+ setup(a) {
1866
+ const t = a;
1867
+ return (o, s) => (l(), d(e(Lt), B(C(t)), {
1868
+ default: n(() => [
1869
+ u(o.$slots, "default")
1870
+ ]),
1871
+ _: 3
1872
+ }, 16));
1873
+ }
1874
+ }), Pa = /* @__PURE__ */ c({
1875
+ __name: "ToastTitle",
1876
+ props: {
1877
+ asChild: { type: Boolean },
1878
+ as: {},
1879
+ class: { type: [Boolean, null, String, Object, Array] }
1880
+ },
1881
+ setup(a) {
1882
+ const t = a, o = y(t, "class");
1883
+ return (s, r) => (l(), d(e(Ht), m(e(o), {
1884
+ class: e(p)("text-sm font-semibold [&+div]:text-xs", t.class)
1885
+ }), {
1886
+ default: n(() => [
1887
+ u(s.$slots, "default")
1888
+ ]),
1889
+ _: 3
1890
+ }, 16, ["class"]));
1891
+ }
1892
+ }), Oa = /* @__PURE__ */ c({
1893
+ __name: "ToastViewport",
1894
+ props: {
1895
+ hotkey: {},
1896
+ label: { type: [String, Function] },
1897
+ asChild: { type: Boolean },
1898
+ as: {},
1899
+ class: { type: [Boolean, null, String, Object, Array] }
1900
+ },
1901
+ setup(a) {
1902
+ const t = a, o = y(t, "class");
1903
+ return (s, r) => (l(), d(e(Ut), m(e(o), {
1904
+ class: e(p)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", t.class)
1905
+ }), null, 16, ["class"]));
1906
+ }
1907
+ }), Ta = me(
1908
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1909
+ {
1910
+ variants: {
1911
+ variant: {
1912
+ default: "border bg-background text-foreground",
1913
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1914
+ }
1915
+ },
1916
+ defaultVariants: {
1917
+ variant: "default"
1918
+ }
1919
+ }
1920
+ );
1921
+ export {
1922
+ qa as Badge,
1923
+ Ka as Button,
1924
+ Ja as Calendar,
1925
+ aa as CalendarCell,
1926
+ oa as CalendarCellTrigger,
1927
+ sa as CalendarGrid,
1928
+ ra as CalendarGridBody,
1929
+ na as CalendarGridHead,
1930
+ ce as CalendarGridRow,
1931
+ la as CalendarHeadCell,
1932
+ ia as CalendarHeader,
1933
+ da as CalendarHeading,
1934
+ ca as CalendarNextButton,
1935
+ ua as CalendarPrevButton,
1936
+ Qa as Checkbox,
1937
+ Xa as Combobox,
1938
+ Ya as ComboboxAnchor,
1939
+ Ho as ComboboxCancel,
1940
+ Za as ComboboxEmpty,
1941
+ eo as ComboboxGroup,
1942
+ to as ComboboxInput,
1943
+ ao as ComboboxItem,
1944
+ Uo as ComboboxItemIndicator,
1945
+ oo as ComboboxList,
1946
+ so as ComboboxSeparator,
1947
+ Go as ComboboxTrigger,
1948
+ ro as Dialog,
1949
+ no as DialogClose,
1950
+ lo as DialogContent,
1951
+ io as DialogDescription,
1952
+ co as DialogFooter,
1953
+ uo as DialogHeader,
1954
+ po as DialogScrollContent,
1955
+ fo as DialogTitle,
1956
+ mo as DialogTrigger,
1957
+ xe as FORM_ITEM_INJECTION_KEY,
1958
+ qo as Form,
1959
+ go as FormControl,
1960
+ _o as FormDescription,
1961
+ Ko as FormField,
1962
+ Jo as FormFieldArray,
1963
+ yo as FormItem,
1964
+ ho as FormLabel,
1965
+ bo as FormMessage,
1966
+ vo as HoverCard,
1967
+ xo as HoverCardContent,
1968
+ wo as HoverCardTrigger,
1969
+ Bo as Input,
1970
+ fa as Label,
1971
+ Co as Popover,
1972
+ No as PopoverAnchor,
1973
+ So as PopoverContent,
1974
+ $o as PopoverTrigger,
1975
+ Po as Select,
1976
+ Oo as SelectContent,
1977
+ To as SelectGroup,
1978
+ Ao as SelectItem,
1979
+ Do as SelectItemText,
1980
+ jo as SelectLabel,
1981
+ _a as SelectScrollDownButton,
1982
+ ya as SelectScrollUpButton,
1983
+ ko as SelectSeparator,
1984
+ Io as SelectTrigger,
1985
+ Fo as SelectValue,
1986
+ Vo as Switch,
1987
+ Eo as Textarea,
1988
+ ha as Toast,
1989
+ Mo as ToastAction,
1990
+ ba as ToastClose,
1991
+ ue as ToastDescription,
1992
+ $a as ToastProvider,
1993
+ Pa as ToastTitle,
1994
+ Oa as ToastViewport,
1995
+ Ro as Toaster,
1996
+ K as buttonVariants,
1997
+ p as cn,
1998
+ za as createApi,
1999
+ Ua as debounce,
2000
+ de as decodeJWT,
2001
+ Ga as platformLinks,
2002
+ Ca as toast,
2003
+ Ta as toastVariants,
2004
+ Ha as useDebounce,
2005
+ La as useDebouncedRef,
2006
+ J as useFormField,
2007
+ Na as usePrivacy,
2008
+ Wa as useSidebarStateSync,
2009
+ Ba as useToast
2010
+ };