@plyaz/ui 0.7.19 → 0.8.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.
- package/dist/client/accordion.cjs.js +1 -1
- package/dist/client/accordion.es.js +3 -3
- package/dist/client/calendar.cjs.js +1 -1
- package/dist/client/calendar.es.js +34 -35
- package/dist/client/popover.cjs.js +1 -1
- package/dist/client/popover.es.js +5 -5
- package/dist/client/slider.cjs.js +1 -1
- package/dist/client/slider.es.js +2 -2
- package/dist/client.cjs.js +1 -1
- package/dist/client.es.js +736 -527
- package/dist/types/components/Accordion/Accordion.stories.d.ts +1 -1
- package/dist/types/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog.stories.d.ts +0 -1
- package/dist/types/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +32 -0
- package/dist/types/components/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/types/components/MultiSelect/MultiSelect.stories.d.ts +17 -0
- package/dist/types/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +6 -1
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/types/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/hooks/useDebounce.d.ts +2 -0
- package/dist/types/hooks/useDebounce.d.ts.map +1 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/styles/utilities.css +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("@radix-ui/react-accordion"),s=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(a);function l({...e}){return o.jsx(r.Root,{"data-slot":"accordion",...e})}function u({className:e,...t}){return o.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsx(r.Header,{className:"flex",children:o.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("@radix-ui/react-accordion"),s=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(a);function l({...e}){return o.jsx(r.Root,{"data-slot":"accordion",...e})}function u({className:e,...t}){return o.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsx(r.Header,{className:"flex",children:o.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("flex flex-1 justify-between items-start gap-4 disabled:opacity-50 py-4 focus-visible:border-ring rounded-md outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 font-medium text-secondary text-sm text-left hover:underline [&[data-state=open]>svg]:rotate-180 transition-all disabled:pointer-events-none",e),...n,children:[t,o.jsx(s.ChevronDownIcon,{className:"size-4 text-secondary transition-transform translate-y-0.5 duration-200 pointer-events-none shrink-0"})]})})}function f({className:e,children:t,...n}){return o.jsx(r.Content,{"data-slot":"accordion-content",className:"overflow-hidden text-secondary text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:o.jsx("div",{className:i.cn("pt-0 pb-4",e),children:t})})}exports.Accordion=l;exports.AccordionContent=f;exports.AccordionItem=u;exports.AccordionTrigger=m;
|
|
@@ -28,13 +28,13 @@ function u({
|
|
|
28
28
|
{
|
|
29
29
|
"data-slot": "accordion-trigger",
|
|
30
30
|
className: i(
|
|
31
|
-
"
|
|
31
|
+
"flex flex-1 justify-between items-start gap-4 disabled:opacity-50 py-4 focus-visible:border-ring rounded-md outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 font-medium text-secondary text-sm text-left hover:underline [&[data-state=open]>svg]:rotate-180 transition-all disabled:pointer-events-none",
|
|
32
32
|
t
|
|
33
33
|
),
|
|
34
34
|
...r,
|
|
35
35
|
children: [
|
|
36
36
|
o,
|
|
37
|
-
/* @__PURE__ */ e(s, { className: "
|
|
37
|
+
/* @__PURE__ */ e(s, { className: "size-4 text-secondary transition-transform translate-y-0.5 duration-200 pointer-events-none shrink-0" })
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
) });
|
|
@@ -48,7 +48,7 @@ function p({
|
|
|
48
48
|
n.Content,
|
|
49
49
|
{
|
|
50
50
|
"data-slot": "accordion-content",
|
|
51
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down
|
|
51
|
+
className: "overflow-hidden text-secondary text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
52
52
|
...r,
|
|
53
53
|
children: /* @__PURE__ */ e("div", { className: i("pt-0 pb-4", t), children: o })
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),y=require("react"),m=require("lucide-react"),f=require("react-day-picker"),e=require("../utils-IjLH3w2e.cjs");require("../Textarea-DmFDDtNg.cjs");const p=require("../Button-BoTQH4v8.cjs");require("@radix-ui/react-select");require("next-intl");require("@radix-ui/react-slot");require("@radix-ui/react-separator");function _(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}return o.default=n,Object.freeze(o)}const b=_(y);function w({className:n,classNames:o,showOutsideDays:r=!0,captionLayout:s="label",formatters:g,components:c,...i}){const t=f.getDefaultClassNames();return d.jsx(f.DayPicker,{showOutsideDays:r,className:e.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,n),captionLayout:s,formatters:{formatMonthDropdown:a=>a.toLocaleString("default",{month:"short"}),...g},classNames:{root:e.cn("w-fit",t.root),months:e.cn("flex gap-4 flex-col md:flex-row relative",t.months),month:e.cn("flex flex-col w-full gap-4",t.month),nav:e.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",t.nav),button_previous:e.cn(p.buttonVariants({variant:"outline"}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none rounded-sm border-subtle text-tertiary-foreground",t.button_previous),button_next:e.cn(p.buttonVariants({variant:"outline"}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none rounded-sm border-subtle text-tertiary-foreground",t.button_next),month_caption:e.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",t.month_caption),dropdowns:e.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",t.dropdowns),dropdown_root:e.cn("relative has-focus:border-ring border border-subtle shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",t.dropdown_root),dropdown:e.cn("absolute bg-popover inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"text-secondary rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("select-none w-(--cell-size)",t.week_number_header),week_number:e.cn("text-[0.8rem] select-none text-muted-foreground",t.week_number),day:e.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",t.day),range_start:e.cn("bg-primary !rounded-l-sm",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("bg-primary !rounded-r-sm",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-secondary opacity-40",t.disabled),hidden:e.cn("invisible",t.hidden),...o},components:{Root:({className:a,rootRef:u,...l})=>d.jsx("div",{"data-slot":"calendar",ref:u,className:e.cn(a),...l}),Chevron:({className:a,orientation:u,...l})=>u==="left"?d.jsx(m.ChevronLeftIcon,{className:e.cn("size-4",a),...l}):u==="right"?d.jsx(m.ChevronRightIcon,{className:e.cn("size-4",a),...l}):d.jsx(m.ChevronDownIcon,{className:e.cn("size-4",a),...l}),DayButton:x,WeekNumber:({children:a,...u})=>d.jsx("td",{...u,children:d.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:a})}),...c},...i})}function x({className:n,day:o,modifiers:r,...s}){const g=f.getDefaultClassNames(),c=b.useRef(null);return b.useEffect(()=>{var i;r.focused&&((i=c.current)==null||i.focus())},[r.focused]),d.jsx(p.Button,{ref:c,variant:"ghost",size:"icon","data-day":o.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:e.cn("rounded-sm hover:shadow-none hover:bg-primary data-[selected-single=true]:bg-orange-gradient data-[selected-single=true]:text-primary data-[range-middle=true]:bg-primary data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-orange-gradient data-[range-start=true]:text-primary data-[range-end=true]:bg-orange-gradient data-[range-end=true]:text-primary group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",g.day,n),...s})}exports.Calendar=w;exports.CalendarDayButton=x;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import { ChevronLeftIcon as b, ChevronRightIcon as
|
|
3
|
+
import { ChevronLeftIcon as b, ChevronRightIcon as x, ChevronDownIcon as y } from "lucide-react";
|
|
4
4
|
import { getDefaultClassNames as p, DayPicker as h } from "react-day-picker";
|
|
5
5
|
import { c as e } from "../utils-B6yFEsav.js";
|
|
6
6
|
import "../Textarea-BTbJSVLU.js";
|
|
7
|
-
import { b as f, B as
|
|
7
|
+
import { b as f, B as w } from "../Button-B7sEajdG.js";
|
|
8
8
|
import "@radix-ui/react-select";
|
|
9
9
|
import "next-intl";
|
|
10
10
|
import "@radix-ui/react-slot";
|
|
11
11
|
import "@radix-ui/react-separator";
|
|
12
|
-
function
|
|
12
|
+
function I({
|
|
13
13
|
className: i,
|
|
14
|
-
classNames:
|
|
14
|
+
classNames: c,
|
|
15
15
|
showOutsideDays: r = !0,
|
|
16
16
|
captionLayout: s = "label",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
...x
|
|
17
|
+
formatters: g,
|
|
18
|
+
components: l,
|
|
19
|
+
...u
|
|
21
20
|
}) {
|
|
22
21
|
const t = p();
|
|
23
22
|
return /* @__PURE__ */ n(
|
|
@@ -33,7 +32,7 @@ function q({
|
|
|
33
32
|
captionLayout: s,
|
|
34
33
|
formatters: {
|
|
35
34
|
formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }),
|
|
36
|
-
...
|
|
35
|
+
...g
|
|
37
36
|
},
|
|
38
37
|
classNames: {
|
|
39
38
|
root: e("w-fit", t.root),
|
|
@@ -44,13 +43,13 @@ function q({
|
|
|
44
43
|
t.nav
|
|
45
44
|
),
|
|
46
45
|
button_previous: e(
|
|
47
|
-
f({ variant:
|
|
48
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
46
|
+
f({ variant: "outline" }),
|
|
47
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none rounded-sm border-subtle text-tertiary-foreground",
|
|
49
48
|
t.button_previous
|
|
50
49
|
),
|
|
51
50
|
button_next: e(
|
|
52
|
-
f({ variant:
|
|
53
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
51
|
+
f({ variant: "outline" }),
|
|
52
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none rounded-sm border-subtle text-tertiary-foreground",
|
|
54
53
|
t.button_next
|
|
55
54
|
),
|
|
56
55
|
month_caption: e(
|
|
@@ -62,13 +61,13 @@ function q({
|
|
|
62
61
|
t.dropdowns
|
|
63
62
|
),
|
|
64
63
|
dropdown_root: e(
|
|
65
|
-
"relative has-focus:border-ring border border-
|
|
64
|
+
"relative has-focus:border-ring border border-subtle shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
66
65
|
t.dropdown_root
|
|
67
66
|
),
|
|
68
67
|
dropdown: e("absolute bg-popover inset-0 opacity-0", t.dropdown),
|
|
69
68
|
caption_label: e(
|
|
70
69
|
"select-none font-medium",
|
|
71
|
-
s === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
|
|
70
|
+
s === "label" ? "text-sm" : "text-secondary rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
|
|
72
71
|
t.caption_label
|
|
73
72
|
),
|
|
74
73
|
table: "w-full border-collapse",
|
|
@@ -87,9 +86,9 @@ function q({
|
|
|
87
86
|
"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
88
87
|
t.day
|
|
89
88
|
),
|
|
90
|
-
range_start: e("rounded-l-
|
|
89
|
+
range_start: e("bg-primary !rounded-l-sm", t.range_start),
|
|
91
90
|
range_middle: e("rounded-none", t.range_middle),
|
|
92
|
-
range_end: e("rounded-r-
|
|
91
|
+
range_end: e("bg-primary !rounded-r-sm", t.range_end),
|
|
93
92
|
today: e(
|
|
94
93
|
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
95
94
|
t.today
|
|
@@ -98,9 +97,9 @@ function q({
|
|
|
98
97
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
99
98
|
t.outside
|
|
100
99
|
),
|
|
101
|
-
disabled: e("text-
|
|
100
|
+
disabled: e("text-secondary opacity-40", t.disabled),
|
|
102
101
|
hidden: e("invisible", t.hidden),
|
|
103
|
-
...
|
|
102
|
+
...c
|
|
104
103
|
},
|
|
105
104
|
components: {
|
|
106
105
|
Root: ({
|
|
@@ -112,42 +111,42 @@ function q({
|
|
|
112
111
|
className: a,
|
|
113
112
|
orientation: d,
|
|
114
113
|
...o
|
|
115
|
-
}) => d === "left" ? /* @__PURE__ */ n(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n(
|
|
116
|
-
DayButton:
|
|
114
|
+
}) => d === "left" ? /* @__PURE__ */ n(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n(x, { className: e("size-4", a), ...o }) : /* @__PURE__ */ n(y, { className: e("size-4", a), ...o }),
|
|
115
|
+
DayButton: _,
|
|
117
116
|
WeekNumber: ({
|
|
118
117
|
children: a,
|
|
119
118
|
...d
|
|
120
119
|
}) => /* @__PURE__ */ n("td", { ...d, children: /* @__PURE__ */ n("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }),
|
|
121
|
-
...
|
|
120
|
+
...l
|
|
122
121
|
},
|
|
123
|
-
...
|
|
122
|
+
...u
|
|
124
123
|
}
|
|
125
124
|
);
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function _({
|
|
128
127
|
className: i,
|
|
129
|
-
day:
|
|
128
|
+
day: c,
|
|
130
129
|
modifiers: r,
|
|
131
130
|
...s
|
|
132
131
|
}) {
|
|
133
|
-
const
|
|
132
|
+
const g = p(), l = m.useRef(null);
|
|
134
133
|
return m.useEffect(() => {
|
|
135
|
-
var
|
|
136
|
-
r.focused && ((
|
|
134
|
+
var u;
|
|
135
|
+
r.focused && ((u = l.current) == null || u.focus());
|
|
137
136
|
}, [r.focused]), /* @__PURE__ */ n(
|
|
138
|
-
|
|
137
|
+
w,
|
|
139
138
|
{
|
|
140
|
-
ref:
|
|
139
|
+
ref: l,
|
|
141
140
|
variant: "ghost",
|
|
142
141
|
size: "icon",
|
|
143
|
-
"data-day":
|
|
142
|
+
"data-day": c.date.toLocaleDateString(),
|
|
144
143
|
"data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle,
|
|
145
144
|
"data-range-start": r.range_start,
|
|
146
145
|
"data-range-end": r.range_end,
|
|
147
146
|
"data-range-middle": r.range_middle,
|
|
148
147
|
className: e(
|
|
149
|
-
"data-[selected-single=true]:bg-
|
|
150
|
-
|
|
148
|
+
"rounded-sm hover:shadow-none hover:bg-primary data-[selected-single=true]:bg-orange-gradient data-[selected-single=true]:text-primary data-[range-middle=true]:bg-primary data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-orange-gradient data-[range-start=true]:text-primary data-[range-end=true]:bg-orange-gradient data-[range-end=true]:text-primary group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
149
|
+
g.day,
|
|
151
150
|
i
|
|
152
151
|
),
|
|
153
152
|
...s
|
|
@@ -155,6 +154,6 @@ function v({
|
|
|
155
154
|
);
|
|
156
155
|
}
|
|
157
156
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
I as Calendar,
|
|
158
|
+
_ as CalendarDayButton
|
|
160
159
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@radix-ui/react-popover"),d=require("../utils-IjLH3w2e.cjs");function s(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=s(i);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@radix-ui/react-popover"),d=require("../utils-IjLH3w2e.cjs");function s(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=s(i);function c({...e}){return r.jsx(n.Root,{"data-slot":"popover",...e})}function p({...e}){return r.jsx(n.Trigger,{"data-slot":"popover-trigger",...e})}function u({className:e,align:o="center",sideOffset:t=4,...a}){return r.jsx(n.Portal,{children:r.jsx(n.Content,{"data-slot":"popover-content",align:o,sideOffset:t,className:d.cn("bg-popover text-secondary 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...a})})}function l({...e}){return r.jsx(n.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=c;exports.PopoverAnchor=l;exports.PopoverContent=u;exports.PopoverTrigger=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "@radix-ui/react-popover";
|
|
3
3
|
import { c as i } from "../utils-B6yFEsav.js";
|
|
4
|
-
function
|
|
4
|
+
function p({ ...o }) {
|
|
5
5
|
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
6
6
|
}
|
|
7
7
|
function m({ ...o }) {
|
|
@@ -20,19 +20,19 @@ function c({
|
|
|
20
20
|
align: r,
|
|
21
21
|
sideOffset: a,
|
|
22
22
|
className: i(
|
|
23
|
-
"bg-popover text-
|
|
23
|
+
"bg-popover text-secondary 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
24
24
|
o
|
|
25
25
|
),
|
|
26
26
|
...n
|
|
27
27
|
}
|
|
28
28
|
) });
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function l({ ...o }) {
|
|
31
31
|
return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
p as Popover,
|
|
35
|
+
l as PopoverAnchor,
|
|
36
36
|
c as PopoverContent,
|
|
37
37
|
m as PopoverTrigger
|
|
38
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),f=require("@radix-ui/react-slider"),l=require("../utils-IjLH3w2e.cjs");function s(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const h=s(b),o=s(f);function g({className:r,defaultValue:t,value:e,min:a=0,max:n=100,...c}){const d=h.useMemo(()=>Array.isArray(e)?e:Array.isArray(t)?t:[a,n],[e,t,a,n]);return i.jsxs(o.Root,{"data-slot":"slider",defaultValue:t,value:e,min:a,max:n,className:l.cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...c,children:[i.jsx(o.Track,{"data-slot":"slider-track",className:l.cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:i.jsx(o.Range,{"data-slot":"slider-range",className:l.cn("bg-secondary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(m,u)=>i.jsx(o.Thumb,{"data-slot":"slider-thumb",className:"border-secondary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},u))]})}exports.Slider=g;
|
package/dist/client/slider.es.js
CHANGED
|
@@ -40,7 +40,7 @@ function g({
|
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "slider-range",
|
|
42
42
|
className: n(
|
|
43
|
-
"bg-
|
|
43
|
+
"bg-secondary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -50,7 +50,7 @@ function g({
|
|
|
50
50
|
a.Thumb,
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "slider-thumb",
|
|
53
|
-
className: "border-
|
|
53
|
+
className: "border-secondary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
54
54
|
},
|
|
55
55
|
c
|
|
56
56
|
))
|
package/dist/client.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ie=require("./client/reveal-text.cjs.js"),y=require("./client/alert-dialog.cjs.js"),de=require("./client/calendar.cjs.js"),G=require("./client/carousel.cjs.js"),Te=require("./client/combobox.cjs.js"),H=require("./client/input-otp.cjs.js"),Ae=require("./client/slider.cjs.js"),Fe=require("./client/progress.cjs.js"),z=require("./client/accordion.cjs.js"),Z=require("./client/avatar.cjs.js"),qe=require("./client/checkbox.cjs.js"),h=require("./client/context-menu.cjs.js"),v=require("./client/dropdown-menu.cjs.js"),ee=require("./client/hover-card.cjs.js"),le=require("./client/radio-group.cjs.js"),ce=require("./client/scroll-area.cjs.js"),Ne=require("./client/switch.cjs.js"),W=require("./client/tabs.cjs.js"),O=require("./client/tooltip.cjs.js"),F=require("./client/command.cjs.js"),I=require("./client/dialog.cjs.js"),T=require("./client/drawer.cjs.js"),C=require("./client/sheet.cjs.js"),ke=require("./client/toaster.cjs.js"),Pe=require("./client/toggle.cjs.js"),be=require("./client/label.cjs.js"),x=require("./client/menu-bar.cjs.js"),$=require("./client/popover.cjs.js"),n=require("react/jsx-runtime"),u=require("react"),E=require("@radix-ui/react-slot"),Oe=require("class-variance-authority"),Re=require("lucide-react"),l=require("./utils-IjLH3w2e.cjs"),je=require("./Textarea-DmFDDtNg.cjs"),Ee=require("./Button-BoTQH4v8.cjs");require("@radix-ui/react-select");require("next-intl");const Q=require("./Skeleton-BuCmZ9yF.cjs");require("@radix-ui/react-alert-dialog");require("react-day-picker");require("cmdk");require("@radix-ui/react-dialog");require("@radix-ui/react-popover");require("input-otp");require("@radix-ui/react-slider");require("@radix-ui/react-progress");require("@radix-ui/react-accordion");require("@radix-ui/react-avatar");require("@radix-ui/react-checkbox");require("@radix-ui/react-context-menu");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-hover-card");require("@radix-ui/react-radio-group");require("@radix-ui/react-scroll-area");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("vaul");require("next-themes");require("sonner");require("@radix-ui/react-label");require("@radix-ui/react-menubar");require("@radix-ui/react-separator");require("@radix-ui/react-tooltip");function Ve(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const b=Ve(u);var Ge={WEEK:6048e5};const X=768;function Le(){const[e,r]=b.useState(void 0);return b.useEffect(()=>{const t=window.matchMedia(`(max-width: ${X-1}px)`),o=()=>{r(window.innerWidth<X)};return t.addEventListener("change",o),r(window.innerWidth<X),()=>t.removeEventListener("change",o)},[]),!!e}const Be="sidebar_state",He=Ge.WEEK,ze="16rem",We="18rem",$e="3rem",fe=b.createContext(null);function te(){const e=b.useContext(fe);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ue({defaultOpen:e=!0,open:r,onOpenChange:t,className:o,style:a,children:i,...s}){const d=Le(),[f,c]=b.useState(!1),[m,w]=b.useState(e),M=r??m,R=b.useCallback(_=>{const A=typeof _=="function"?_(M):_;t?t(A):w(A),document.cookie=`${Be}=${A}; path=/; max-age=${He}`},[t,M]),q=b.useCallback(()=>{},[]),N=M?"expanded":"collapsed",k=b.useMemo(()=>({state:N,open:M,setOpen:R,isMobile:d,openMobile:f,setOpenMobile:c,toggleSidebar:q}),[N,M,R,d,f,c,q]);return n.jsx(fe.Provider,{value:k,children:n.jsx(O.TooltipProvider,{delayDuration:0,children:n.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ze,"--sidebar-width-icon":$e,...a},className:l.cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),...s,children:i})})})}function Ke({side:e,openMobile:r,setOpenMobile:t,children:o,...a}){return n.jsx(C.Sheet,{open:r,onOpenChange:t,...a,children:n.jsxs(C.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":We},side:e,children:[n.jsxs(C.SheetHeader,{className:"sr-only",children:[n.jsx(C.SheetTitle,{children:"Sidebar"}),n.jsx(C.SheetDescription,{children:"Displays the mobile sidebar."})]}),n.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})})}function Xe({side:e,variant:r,collapsible:t,state:o,className:a,children:i,...s}){return n.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":o,"data-collapsible":o==="collapsed"?t:"","data-variant":r,"data-side":e,"data-slot":"sidebar",children:[n.jsx("div",{"data-slot":"sidebar-gap",className:l.cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),n.jsx("div",{"data-slot":"sidebar-container",className:l.cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",r==="floating"||r==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",a),...s,children:n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i})})]})}function Je({side:e="left",variant:r="sidebar",collapsible:t="offcanvas",className:o,children:a,...i}){const{isMobile:s,state:d,openMobile:f,setOpenMobile:c}=te();return t==="none"?n.jsx("div",{"data-slot":"sidebar",className:l.cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),...i,children:a}):s?n.jsx(Ke,{side:e,openMobile:f,setOpenMobile:c,...i,children:a}):n.jsx(Xe,{side:e,variant:r,collapsible:t,state:d,className:o,...i,children:a})}function Qe({className:e,onClick:r,...t}){return n.jsxs(Ee.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:l.cn("size-7",e),onClick:o=>{r==null||r(o)},disabled:!0,...t,children:[n.jsx(Re.PanelLeftIcon,{}),n.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ye({className:e,...r}){return n.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:()=>{},title:"Toggle Sidebar",disabled:!0,className:l.cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...r})}function Ze({className:e,...r}){return n.jsx("main",{"data-slot":"sidebar-inset",className:l.cn("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...r})}function et({className:e,...r}){return n.jsx(je.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:l.cn("bg-background h-10 w-full shadow-none",e),...r})}function tt({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l.cn("flex flex-col gap-3 p-2",e),...r})}function rt({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l.cn("flex flex-col gap-3 p-2",e),...r})}function at({className:e,...r}){return n.jsx(Q.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:l.cn("bg-sidebar-border mx-2 w-auto",e),...r})}function ot({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l.cn("flex min-h-0 flex-1 flex-col gap-3 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...r})}function nt({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l.cn("relative flex w-full min-w-0 flex-col p-2",e),...r})}function it({className:e,asChild:r=!1,...t}){const o=r?E.Slot:"div";return n.jsx(o,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l.cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-10 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function st({className:e,asChild:r=!1,...t}){const o=r?E.Slot:"button";return n.jsx(o,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...t})}function ut({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l.cn("w-full text-sm",e),...r})}function dt({className:e,...r}){return n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l.cn("flex w-full min-w-0 flex-col gap-1",e),...r})}function lt({className:e,...r}){return n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l.cn("group/menu-item relative",e),...r})}const ct=Oe.cva("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md p-2 text-left text-sm font-medium outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",{variants:{variant:{default:"hover:bg-background hover:text-sidebar-accent-foreground data-[active=true]:bg-background data-[active=true]:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-10 text-base",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function bt({asChild:e=!1,isActive:r=!1,variant:t="default",size:o="default",tooltip:a,className:i,...s}){const d=e?E.Slot:"button",{isMobile:f,state:c}=te(),m=n.jsx(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":o,"data-active":r,className:l.cn(ct({variant:t,size:o}),i),...s});return a?(typeof a=="string"&&(a={children:a}),n.jsxs(O.Tooltip,{children:[n.jsx(O.TooltipTrigger,{asChild:!0,children:m}),n.jsx(O.TooltipContent,{side:"right",align:"center",hidden:c!=="collapsed"||f,...a})]})):m}function ft({className:e,asChild:r=!1,showOnHover:t=!1,...o}){const a=r?E.Slot:"button";return n.jsx(a,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:l.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...o})}function mt({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:l.cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...r})}const gt=50,pt=40;function xt({className:e,showIcon:r=!1,...t}){const o=b.useMemo(()=>`${Math.floor(Math.random()*pt)+gt}%`,[]);return n.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l.cn("flex h-10 items-center gap-3 rounded-md px-2",e),...t,children:[r&&n.jsx(Q.Skeleton,{className:"size-6 rounded-md","data-sidebar":"menu-skeleton-icon"}),n.jsx(Q.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}function ht({className:e,...r}){return n.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:l.cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...r})}function vt({className:e,...r}){return n.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:l.cn("group/menu-sub-item relative",e),...r})}function St({asChild:e=!1,size:r="md",isActive:t=!1,className:o,...a}){const i=e?E.Slot:"a";return n.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":r,"data-active":t,className:l.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-tertiary-foreground flex h-7 min-w-0 -translate-x-px items-center gap-3 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...a})}var Ct=e=>e.type==="checkbox",V=e=>e instanceof Date,re=e=>e==null;const me=e=>typeof e=="object";var j=e=>!re(e)&&!Array.isArray(e)&&me(e)&&!V(e),Mt=e=>j(e)&&e.target?Ct(e.target)?e.target.checked:e.target.value:e,wt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Dt=(e,r)=>e.has(wt(r)),yt=e=>{const r=e.constructor&&e.constructor.prototype;return j(r)&&r.hasOwnProperty("isPrototypeOf")},_t=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ge(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(_t&&(e instanceof Blob||o))&&(t||j(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!yt(e))r=e;else for(const a in e)e.hasOwnProperty(a)&&(r[a]=ge(e[a]));else return e;return r}var pe=e=>/^\w*$/.test(e),Y=e=>e===void 0,It=e=>Array.isArray(e)?e.filter(Boolean):[],xe=e=>It(e.replace(/["|']|\]/g,"").split(/\.|\[/)),S=(e,r,t)=>{if(!r||!j(e))return t;const o=(pe(r)?[r]:xe(r)).reduce((a,i)=>re(a)?a:a[i],e);return Y(o)||o===e?Y(e[r])?t:e[r]:o},J=e=>typeof e=="boolean",oe=(e,r,t)=>{let o=-1;const a=pe(r)?[r]:xe(r),i=a.length,s=i-1;for(;++o<i;){const d=a[o];let f=t;if(o!==s){const c=e[d];f=j(c)||Array.isArray(c)?c:isNaN(+a[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}};const ne={BLUR:"blur",CHANGE:"change"},ie={all:"all"},ae=u.createContext(null);ae.displayName="HookFormContext";const U=()=>u.useContext(ae),Tt=e=>{const{children:r,...t}=e;return u.createElement(ae.Provider,{value:t},r)};var At=(e,r,t,o=!0)=>{const a={defaultValues:r._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const s=i;return r._proxyFormState[s]!==ie.all&&(r._proxyFormState[s]=!o||ie.all),t&&(t[s]=!0),e[s]}});return a};const he=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Ft(e){const r=U(),{control:t=r.control,disabled:o,name:a,exact:i}=e||{},[s,d]=u.useState(t._formState),f=u.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return he(()=>t._subscribe({name:a,formState:f.current,exact:i,callback:c=>{!o&&d({...t._formState,...c})}}),[a,o,i]),u.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),u.useMemo(()=>At(s,t,f.current,!1),[s,t])}var qt=e=>typeof e=="string",se=(e,r,t,o,a)=>qt(e)?S(t,e,a):Array.isArray(e)?e.map(i=>S(t,i)):t,ue=e=>re(e)||!me(e);function B(e,r,t=new WeakSet){if(ue(e)||ue(r))return e===r;if(V(e)&&V(r))return e.getTime()===r.getTime();const o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const i of o){const s=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const d=r[i];if(V(s)&&V(d)||j(s)&&j(d)||Array.isArray(s)&&Array.isArray(d)?!B(s,d,t):s!==d)return!1}}return!0}function Nt(e){const r=U(),{control:t=r.control,name:o,defaultValue:a,disabled:i,exact:s,compute:d}=e||{},f=u.useRef(a),c=u.useRef(d),m=u.useRef(void 0),w=u.useRef(t),M=u.useRef(o);c.current=d;const[R,q]=u.useState(()=>{const g=t._getWatch(o,f.current);return c.current?c.current(g):g}),N=u.useCallback(g=>{const D=se(o,t._names,g||t._formValues,!1,f.current);return c.current?c.current(D):D},[t._formValues,t._names,o]),k=u.useCallback(g=>{if(!i){const D=se(o,t._names,g||t._formValues,!1,f.current);if(c.current){const P=c.current(D);B(P,m.current)||(q(P),m.current=P)}else q(D)}},[t._formValues,t._names,i,o]);he(()=>((w.current!==t||!B(M.current,o))&&(w.current=t,M.current=o,k()),t._subscribe({name:o,formState:{values:!0},exact:s,callback:g=>{k(g.values)}})),[t,s,o,k]),u.useEffect(()=>t._removeUnmounted());const _=w.current!==t,A=M.current,p=u.useMemo(()=>{if(i)return null;const g=!_&&!B(A,o);return _||g?N():null},[i,_,o,A,N]);return p!==null?p:R}function kt(e){const r=U(),{name:t,disabled:o,control:a=r.control,shouldUnregister:i,defaultValue:s}=e,d=Dt(a._names.array,t),f=u.useMemo(()=>S(a._formValues,t,S(a._defaultValues,t,s)),[a,t,s]),c=Nt({control:a,name:t,defaultValue:f,exact:!0}),m=Ft({control:a,name:t,exact:!0}),w=u.useRef(e),M=u.useRef(void 0),R=u.useRef(a.register(t,{...e.rules,value:c,...J(e.disabled)?{disabled:e.disabled}:{}}));w.current=e;const q=u.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!S(m.errors,t)},isDirty:{enumerable:!0,get:()=>!!S(m.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!S(m.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!S(m.validatingFields,t)},error:{enumerable:!0,get:()=>S(m.errors,t)}}),[m,t]),N=u.useCallback(p=>R.current.onChange({target:{value:Mt(p),name:t},type:ne.CHANGE}),[t]),k=u.useCallback(()=>R.current.onBlur({target:{value:S(a._formValues,t),name:t},type:ne.BLUR}),[t,a._formValues]),_=u.useCallback(p=>{const g=S(a._fields,t);g&&p&&(g._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:D=>p.setCustomValidity(D),reportValidity:()=>p.reportValidity()})},[a._fields,t]),A=u.useMemo(()=>({name:t,value:c,...J(o)||m.disabled?{disabled:m.disabled||o}:{},onChange:N,onBlur:k,ref:_}),[t,o,m.disabled,N,k,_,c]);return u.useEffect(()=>{const p=a._options.shouldUnregister||i,g=M.current;g&&g!==t&&!d&&a.unregister(g),a.register(t,{...w.current.rules,...J(w.current.disabled)?{disabled:w.current.disabled}:{}});const D=(P,_e)=>{const K=S(a._fields,P);K&&K._f&&(K._f.mount=_e)};if(D(t,!0),p){const P=ge(S(a._options.defaultValues,t,w.current.defaultValue));oe(a._defaultValues,t,P),Y(S(a._formValues,t))&&oe(a._formValues,t,P)}return!d&&a.register(t),M.current=t,()=>{(d?p&&!a._state.action:p)?a.unregister(t):D(t,!1)}},[t,a,d,i]),u.useEffect(()=>{a._setDisabledField({disabled:o,name:t})},[o,t,a]),u.useMemo(()=>({field:A,formState:m,fieldState:q}),[A,m,q])}const Pt=e=>e.render(kt(e)),Ot=Tt,ve=b.createContext(null),Rt=({...e})=>n.jsx(ve.Provider,{value:{name:e.name},children:n.jsx(Pt,{...e})}),L=()=>{const e=b.useContext(ve),r=b.useContext(Se),{getFieldState:t,formState:o}=U();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const a=t(e.name,o),{id:i}=r;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},Se=b.createContext(null),Ce=b.forwardRef(({className:e,...r},t)=>{const o=b.useId();return n.jsx(Se.Provider,{value:{id:o},children:n.jsx("div",{ref:t,className:l.cn("space-y-2",e),...r})})});Ce.displayName="FormItem";const Me=b.forwardRef(({className:e,...r},t)=>{const{error:o,formItemId:a}=L();return n.jsx(be.Label,{ref:t,className:l.cn(o&&"text-destructive",e),htmlFor:a,...r})});Me.displayName="FormLabel";const we=b.forwardRef(({...e},r)=>{const{error:t,formItemId:o,formDescriptionId:a,formMessageId:i}=L();return n.jsx(E.Slot,{ref:r,id:o,"aria-describedby":t?`${a} ${i}`:`${a}`,"aria-invalid":!!t,...e})});we.displayName="FormControl";const De=b.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:o}=L();return n.jsx("p",{ref:t,id:o,className:l.cn("text-[0.8rem] text-muted-foreground",e),...r})});De.displayName="FormDescription";const ye=b.forwardRef(({className:e,children:r,...t},o)=>{const{error:a,formMessageId:i}=L(),s=a?String((a==null?void 0:a.message)??""):r;return s?n.jsx("p",{ref:o,id:i,className:l.cn("font-medium text-[0.8rem] text-destructive",e),...t,children:s}):null});ye.displayName="FormMessage";exports.TextReveal=Ie.TextReveal;exports.AlertDialog=y.AlertDialog;exports.AlertDialogAction=y.AlertDialogAction;exports.AlertDialogCancel=y.AlertDialogCancel;exports.AlertDialogContent=y.AlertDialogContent;exports.AlertDialogDescription=y.AlertDialogDescription;exports.AlertDialogFooter=y.AlertDialogFooter;exports.AlertDialogHeader=y.AlertDialogHeader;exports.AlertDialogOverlay=y.AlertDialogOverlay;exports.AlertDialogPortal=y.AlertDialogPortal;exports.AlertDialogTitle=y.AlertDialogTitle;exports.AlertDialogTrigger=y.AlertDialogTrigger;exports.Calendar=de.Calendar;exports.CalendarDayButton=de.CalendarDayButton;exports.Carousel=G.Carousel;exports.CarouselContent=G.CarouselContent;exports.CarouselItem=G.CarouselItem;exports.CarouselNext=G.CarouselNext;exports.CarouselPrevious=G.CarouselPrevious;exports.Combobox=Te.Combobox;exports.InputOTP=H.InputOTP;exports.InputOTPGroup=H.InputOTPGroup;exports.InputOTPSeparator=H.InputOTPSeparator;exports.InputOTPSlot=H.InputOTPSlot;exports.Slider=Ae.Slider;exports.Progress=Fe.Progress;exports.Accordion=z.Accordion;exports.AccordionContent=z.AccordionContent;exports.AccordionItem=z.AccordionItem;exports.AccordionTrigger=z.AccordionTrigger;exports.Avatar=Z.Avatar;exports.AvatarFallback=Z.AvatarFallback;exports.AvatarImage=Z.AvatarImage;exports.Checkbox=qe.Checkbox;exports.ContextMenu=h.ContextMenu;exports.ContextMenuCheckboxItem=h.ContextMenuCheckboxItem;exports.ContextMenuContent=h.ContextMenuContent;exports.ContextMenuGroup=h.ContextMenuGroup;exports.ContextMenuItem=h.ContextMenuItem;exports.ContextMenuLabel=h.ContextMenuLabel;exports.ContextMenuPortal=h.ContextMenuPortal;exports.ContextMenuRadioGroup=h.ContextMenuRadioGroup;exports.ContextMenuRadioItem=h.ContextMenuRadioItem;exports.ContextMenuSeparator=h.ContextMenuSeparator;exports.ContextMenuShortcut=h.ContextMenuShortcut;exports.ContextMenuSub=h.ContextMenuSub;exports.ContextMenuSubContent=h.ContextMenuSubContent;exports.ContextMenuSubTrigger=h.ContextMenuSubTrigger;exports.ContextMenuTrigger=h.ContextMenuTrigger;exports.DropdownMenu=v.DropdownMenu;exports.DropdownMenuCheckboxItem=v.DropdownMenuCheckboxItem;exports.DropdownMenuContent=v.DropdownMenuContent;exports.DropdownMenuGroup=v.DropdownMenuGroup;exports.DropdownMenuItem=v.DropdownMenuItem;exports.DropdownMenuLabel=v.DropdownMenuLabel;exports.DropdownMenuPortal=v.DropdownMenuPortal;exports.DropdownMenuRadioGroup=v.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=v.DropdownMenuRadioItem;exports.DropdownMenuSeparator=v.DropdownMenuSeparator;exports.DropdownMenuShortcut=v.DropdownMenuShortcut;exports.DropdownMenuSub=v.DropdownMenuSub;exports.DropdownMenuSubContent=v.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=v.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=v.DropdownMenuTrigger;exports.HoverCard=ee.HoverCard;exports.HoverCardContent=ee.HoverCardContent;exports.HoverCardTrigger=ee.HoverCardTrigger;exports.RadioGroup=le.RadioGroup;exports.RadioGroupItem=le.RadioGroupItem;exports.ScrollArea=ce.ScrollArea;exports.ScrollBar=ce.ScrollBar;exports.Switch=Ne.Switch;exports.Tabs=W.Tabs;exports.TabsContent=W.TabsContent;exports.TabsList=W.TabsList;exports.TabsTrigger=W.TabsTrigger;exports.Tooltip=O.Tooltip;exports.TooltipContent=O.TooltipContent;exports.TooltipProvider=O.TooltipProvider;exports.TooltipTrigger=O.TooltipTrigger;exports.Command=F.Command;exports.CommandDialog=F.CommandDialog;exports.CommandEmpty=F.CommandEmpty;exports.CommandGroup=F.CommandGroup;exports.CommandInput=F.CommandInput;exports.CommandItem=F.CommandItem;exports.CommandList=F.CommandList;exports.CommandSeparator=F.CommandSeparator;exports.CommandShortcut=F.CommandShortcut;exports.Dialog=I.Dialog;exports.DialogClose=I.DialogClose;exports.DialogContent=I.DialogContent;exports.DialogDescription=I.DialogDescription;exports.DialogFooter=I.DialogFooter;exports.DialogHeader=I.DialogHeader;exports.DialogOverlay=I.DialogOverlay;exports.DialogPortal=I.DialogPortal;exports.DialogTitle=I.DialogTitle;exports.DialogTrigger=I.DialogTrigger;exports.Drawer=T.Drawer;exports.DrawerClose=T.DrawerClose;exports.DrawerContent=T.DrawerContent;exports.DrawerDescription=T.DrawerDescription;exports.DrawerFooter=T.DrawerFooter;exports.DrawerHeader=T.DrawerHeader;exports.DrawerOverlay=T.DrawerOverlay;exports.DrawerPortal=T.DrawerPortal;exports.DrawerTitle=T.DrawerTitle;exports.DrawerTrigger=T.DrawerTrigger;exports.Sheet=C.Sheet;exports.SheetClose=C.SheetClose;exports.SheetContent=C.SheetContent;exports.SheetDescription=C.SheetDescription;exports.SheetFooter=C.SheetFooter;exports.SheetHeader=C.SheetHeader;exports.SheetTitle=C.SheetTitle;exports.SheetTrigger=C.SheetTrigger;exports.Toaster=ke.Toaster;exports.Toggle=Pe.Toggle;exports.Label=be.Label;exports.Menubar=x.Menubar;exports.MenubarCheckboxItem=x.MenubarCheckboxItem;exports.MenubarContent=x.MenubarContent;exports.MenubarGroup=x.MenubarGroup;exports.MenubarItem=x.MenubarItem;exports.MenubarLabel=x.MenubarLabel;exports.MenubarMenu=x.MenubarMenu;exports.MenubarPortal=x.MenubarPortal;exports.MenubarRadioGroup=x.MenubarRadioGroup;exports.MenubarRadioItem=x.MenubarRadioItem;exports.MenubarSeparator=x.MenubarSeparator;exports.MenubarShortcut=x.MenubarShortcut;exports.MenubarSub=x.MenubarSub;exports.MenubarSubContent=x.MenubarSubContent;exports.MenubarSubTrigger=x.MenubarSubTrigger;exports.MenubarTrigger=x.MenubarTrigger;exports.Popover=$.Popover;exports.PopoverAnchor=$.PopoverAnchor;exports.PopoverContent=$.PopoverContent;exports.PopoverTrigger=$.PopoverTrigger;exports.Form=Ot;exports.FormControl=we;exports.FormDescription=De;exports.FormField=Rt;exports.FormItem=Ce;exports.FormLabel=Me;exports.FormMessage=ye;exports.Sidebar=Je;exports.SidebarContent=ot;exports.SidebarFooter=rt;exports.SidebarGroup=nt;exports.SidebarGroupAction=st;exports.SidebarGroupContent=ut;exports.SidebarGroupLabel=it;exports.SidebarHeader=tt;exports.SidebarInput=et;exports.SidebarInset=Ze;exports.SidebarMenu=dt;exports.SidebarMenuAction=ft;exports.SidebarMenuBadge=mt;exports.SidebarMenuButton=bt;exports.SidebarMenuItem=lt;exports.SidebarMenuSkeleton=xt;exports.SidebarMenuSub=ht;exports.SidebarMenuSubButton=St;exports.SidebarMenuSubItem=vt;exports.SidebarProvider=Ue;exports.SidebarRail=Ye;exports.SidebarSeparator=at;exports.SidebarTrigger=Qe;exports.useFormField=L;exports.useSidebar=te;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("./client/reveal-text.cjs.js"),k=require("./client/alert-dialog.cjs.js"),me=require("./client/calendar.cjs.js"),B=require("./client/carousel.cjs.js"),Fe=require("./client/combobox.cjs.js"),U=require("./client/input-otp.cjs.js"),je=require("./client/slider.cjs.js"),Re=require("./client/progress.cjs.js"),K=require("./client/accordion.cjs.js"),re=require("./client/avatar.cjs.js"),Oe=require("./client/checkbox.cjs.js"),_=require("./client/context-menu.cjs.js"),T=require("./client/dropdown-menu.cjs.js"),ae=require("./client/hover-card.cjs.js"),fe=require("./client/radio-group.cjs.js"),pe=require("./client/scroll-area.cjs.js"),qe=require("./client/switch.cjs.js"),W=require("./client/tabs.cjs.js"),O=require("./client/tooltip.cjs.js"),w=require("./client/command.cjs.js"),F=require("./client/dialog.cjs.js"),j=require("./client/drawer.cjs.js"),E=require("./client/sheet.cjs.js"),Ge=require("./client/toaster.cjs.js"),Ve=require("./client/toggle.cjs.js"),ge=require("./client/label.cjs.js"),I=require("./client/menu-bar.cjs.js"),G=require("./client/popover.cjs.js"),n=require("react/jsx-runtime"),u=require("react"),V=require("@radix-ui/react-slot"),Le=require("class-variance-authority"),$=require("lucide-react"),c=require("./utils-IjLH3w2e.cjs"),Y=require("./Textarea-DmFDDtNg.cjs"),xe=require("./Button-BoTQH4v8.cjs");require("@radix-ui/react-select");require("next-intl");const ee=require("./Skeleton-BuCmZ9yF.cjs");require("@radix-ui/react-alert-dialog");require("react-day-picker");require("cmdk");require("@radix-ui/react-dialog");require("@radix-ui/react-popover");require("input-otp");require("@radix-ui/react-slider");require("@radix-ui/react-progress");require("@radix-ui/react-accordion");require("@radix-ui/react-avatar");require("@radix-ui/react-checkbox");require("@radix-ui/react-context-menu");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-hover-card");require("@radix-ui/react-radio-group");require("@radix-ui/react-scroll-area");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("vaul");require("next-themes");require("sonner");require("@radix-ui/react-label");require("@radix-ui/react-menubar");require("@radix-ui/react-separator");require("@radix-ui/react-tooltip");function Be(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=Be(u);var i={US:"US",CA:"CA",MX:"MX",BR:"BR",AR:"AR",CL:"CL",CO:"CO",PE:"PE",VE:"VE",GB:"GB",FR:"FR",DE:"DE",IT:"IT",ES:"ES",PT:"PT",NL:"NL",CH:"CH",SE:"SE",NO:"NO",FI:"FI",PL:"PL",GR:"GR",UA:"UA",RU:"RU",CN:"CN",JP:"JP",KR:"KR",IN:"IN",PK:"PK",BD:"BD",TH:"TH",VN:"VN",MY:"MY",SG:"SG",ID:"ID",PH:"PH",SA:"SA",AE:"AE",QA:"QA",KW:"KW",IQ:"IQ",IR:"IR",IL:"IL",TR:"TR",EG:"EG",MA:"MA",ET:"ET",KE:"KE",TZ:"TZ",ZA:"ZA",NG:"NG",GH:"GH",SN:"SN",AU:"AU",NZ:"NZ",PG:"PG",FJ:"FJ",AQ:"AQ"},He=7,ze=6,Ue={WEEK:6048e5},Ke={[i.US]:["America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Anchorage","Pacific/Honolulu"],[i.CA]:["America/Toronto","America/Vancouver","America/Edmonton","America/Halifax","America/St_Johns"],[i.MX]:["America/Mexico_City","America/Monterrey","America/Tijuana"],[i.BR]:["America/Sao_Paulo","America/Manaus","America/Fortaleza"],[i.AR]:["America/Argentina/Buenos_Aires"],[i.CL]:["America/Santiago"],[i.CO]:["America/Bogota"],[i.PE]:["America/Lima"],[i.VE]:["America/Caracas"],[i.GB]:["Europe/London"],[i.FR]:["Europe/Paris"],[i.DE]:["Europe/Berlin"],[i.IT]:["Europe/Rome"],[i.ES]:["Europe/Madrid"],[i.PT]:["Europe/Lisbon"],[i.NL]:["Europe/Amsterdam"],[i.SE]:["Europe/Stockholm"],[i.PL]:["Europe/Warsaw"],[i.FI]:["Europe/Helsinki"],[i.NO]:["Europe/Oslo"],[i.CH]:["Europe/Zurich"],[i.RU]:["Europe/Moscow","Asia/Yekaterinburg","Asia/Irkutsk","Asia/Vladivostok"],[i.UA]:["Europe/Kyiv"],[i.GR]:["Europe/Athens"],[i.TR]:["Europe/Istanbul"],[i.CN]:["Asia/Shanghai","Asia/Urumqi"],[i.JP]:["Asia/Tokyo"],[i.KR]:["Asia/Seoul"],[i.IN]:["Asia/Kolkata"],[i.PK]:["Asia/Karachi"],[i.BD]:["Asia/Dhaka"],[i.TH]:["Asia/Bangkok"],[i.VN]:["Asia/Ho_Chi_Minh"],[i.MY]:["Asia/Kuala_Lumpur"],[i.SG]:["Asia/Singapore"],[i.ID]:["Asia/Jakarta","Asia/Makassar","Asia/Jayapura"],[i.PH]:["Asia/Manila"],[i.AE]:["Asia/Dubai"],[i.SA]:["Asia/Riyadh"],[i.IR]:["Asia/Tehran"],[i.IQ]:["Asia/Baghdad"],[i.IL]:["Asia/Jerusalem"],[i.QA]:["Asia/Qatar"],[i.KW]:["Asia/Kuwait"],[i.EG]:["Africa/Cairo"],[i.NG]:["Africa/Lagos"],[i.ZA]:["Africa/Johannesburg"],[i.KE]:["Africa/Nairobi"],[i.MA]:["Africa/Casablanca"],[i.GH]:["Africa/Accra"],[i.ET]:["Africa/Addis_Ababa"],[i.TZ]:["Africa/Dar_es_Salaam"],[i.SN]:["Africa/Dakar"],[i.AU]:["Australia/Sydney","Australia/Melbourne","Australia/Perth","Australia/Brisbane"],[i.NZ]:["Pacific/Auckland"],[i.FJ]:["Pacific/Fiji"],[i.PG]:["Pacific/Port_Moresby"],[i.AQ]:["Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Casey"]};Array.from(new Set(Object.values(Ke).flat()));Array.from({length:He},(e,r)=>r);Array.from({length:ze},(e,r)=>r);const Z=768;function We(){const[e,r]=v.useState(void 0);return v.useEffect(()=>{const t=window.matchMedia(`(max-width: ${Z-1}px)`),a=()=>{r(window.innerWidth<Z)};return t.addEventListener("change",a),r(window.innerWidth<Z),()=>t.removeEventListener("change",a)},[]),!!e}const $e="sidebar_state",Je=Ue.WEEK,Qe="16rem",Ze="18rem",Xe="3rem",he=v.createContext(null);function oe(){const e=v.useContext(he);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ye({defaultOpen:e=!0,open:r,onOpenChange:t,className:a,style:o,children:s,...l}){const d=We(),[f,b]=v.useState(!1),[g,S]=v.useState(e),M=r??g,A=v.useCallback(h=>{const D=typeof h=="function"?h(M):h;t?t(D):S(D),document.cookie=`${$e}=${D}; path=/; max-age=${Je}`},[t,M]),C=v.useCallback(()=>{},[]),y=M?"expanded":"collapsed",m=v.useMemo(()=>({state:y,open:M,setOpen:A,isMobile:d,openMobile:f,setOpenMobile:b,toggleSidebar:C}),[y,M,A,d,f,b,C]);return n.jsx(he.Provider,{value:m,children:n.jsx(O.TooltipProvider,{delayDuration:0,children:n.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Qe,"--sidebar-width-icon":Xe,...o},className:c.cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...l,children:s})})})}function et({side:e,openMobile:r,setOpenMobile:t,children:a,...o}){return n.jsx(E.Sheet,{open:r,onOpenChange:t,...o,children:n.jsxs(E.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Ze},side:e,children:[n.jsxs(E.SheetHeader,{className:"sr-only",children:[n.jsx(E.SheetTitle,{children:"Sidebar"}),n.jsx(E.SheetDescription,{children:"Displays the mobile sidebar."})]}),n.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})})}function tt({side:e,variant:r,collapsible:t,state:a,className:o,children:s,...l}){return n.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":a,"data-collapsible":a==="collapsed"?t:"","data-variant":r,"data-side":e,"data-slot":"sidebar",children:[n.jsx("div",{"data-slot":"sidebar-gap",className:c.cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),n.jsx("div",{"data-slot":"sidebar-container",className:c.cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",r==="floating"||r==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...l,children:n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s})})]})}function rt({side:e="left",variant:r="sidebar",collapsible:t="offcanvas",className:a,children:o,...s}){const{isMobile:l,state:d,openMobile:f,setOpenMobile:b}=oe();return t==="none"?n.jsx("div",{"data-slot":"sidebar",className:c.cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),...s,children:o}):l?n.jsx(et,{side:e,openMobile:f,setOpenMobile:b,...s,children:o}):n.jsx(tt,{side:e,variant:r,collapsible:t,state:d,className:a,...s,children:o})}function at({className:e,onClick:r,...t}){return n.jsxs(xe.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:c.cn("size-7",e),onClick:a=>{r==null||r(a)},disabled:!0,...t,children:[n.jsx($.PanelLeftIcon,{}),n.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function ot({className:e,...r}){return n.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:()=>{},title:"Toggle Sidebar",disabled:!0,className:c.cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...r})}function nt({className:e,...r}){return n.jsx("main",{"data-slot":"sidebar-inset",className:c.cn("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...r})}function it({className:e,...r}){return n.jsx(Y.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:c.cn("bg-background h-10 w-full shadow-none",e),...r})}function st({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:c.cn("flex flex-col gap-3 p-2",e),...r})}function ut({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:c.cn("flex flex-col gap-3 p-2",e),...r})}function lt({className:e,...r}){return n.jsx(ee.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:c.cn("bg-sidebar-border mx-2 w-auto",e),...r})}function dt({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:c.cn("flex min-h-0 flex-1 flex-col gap-3 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...r})}function ct({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:c.cn("relative flex w-full min-w-0 flex-col p-2",e),...r})}function bt({className:e,asChild:r=!1,...t}){const a=r?V.Slot:"div";return n.jsx(a,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:c.cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-10 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function mt({className:e,asChild:r=!1,...t}){const a=r?V.Slot:"button";return n.jsx(a,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:c.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...t})}function ft({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:c.cn("w-full text-sm",e),...r})}function pt({className:e,...r}){return n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:c.cn("flex w-full min-w-0 flex-col gap-1",e),...r})}function gt({className:e,...r}){return n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:c.cn("group/menu-item relative",e),...r})}const xt=Le.cva("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md p-2 text-left text-sm font-medium outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",{variants:{variant:{default:"hover:bg-background hover:text-sidebar-accent-foreground data-[active=true]:bg-background data-[active=true]:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-10 text-base",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ht({asChild:e=!1,isActive:r=!1,variant:t="default",size:a="default",tooltip:o,className:s,...l}){const d=e?V.Slot:"button",{isMobile:f,state:b}=oe(),g=n.jsx(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":r,className:c.cn(xt({variant:t,size:a}),s),...l});return o?(typeof o=="string"&&(o={children:o}),n.jsxs(O.Tooltip,{children:[n.jsx(O.TooltipTrigger,{asChild:!0,children:g}),n.jsx(O.TooltipContent,{side:"right",align:"center",hidden:b!=="collapsed"||f,...o})]})):g}function vt({className:e,asChild:r=!1,showOnHover:t=!1,...a}){const o=r?V.Slot:"button";return n.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:c.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...a})}function St({className:e,...r}){return n.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:c.cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...r})}const Ct=50,Mt=40;function At({className:e,showIcon:r=!1,...t}){const a=v.useMemo(()=>`${Math.floor(Math.random()*Mt)+Ct}%`,[]);return n.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:c.cn("flex h-10 items-center gap-3 rounded-md px-2",e),...t,children:[r&&n.jsx(ee.Skeleton,{className:"size-6 rounded-md","data-sidebar":"menu-skeleton-icon"}),n.jsx(ee.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}function wt({className:e,...r}){return n.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:c.cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...r})}function yt({className:e,...r}){return n.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:c.cn("group/menu-sub-item relative",e),...r})}function Dt({asChild:e=!1,size:r="md",isActive:t=!1,className:a,...o}){const s=e?V.Slot:"a";return n.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":r,"data-active":t,className:c.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-tertiary-foreground flex h-7 min-w-0 -translate-x-px items-center gap-3 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",a),...o})}var It=e=>e.type==="checkbox",L=e=>e instanceof Date,ne=e=>e==null;const ve=e=>typeof e=="object";var q=e=>!ne(e)&&!Array.isArray(e)&&ve(e)&&!L(e),_t=e=>q(e)&&e.target?It(e.target)?e.target.checked:e.target.value:e,Tt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nt=(e,r)=>e.has(Tt(r)),Pt=e=>{const r=e.constructor&&e.constructor.prototype;return q(r)&&r.hasOwnProperty("isPrototypeOf")},Et=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Se(e){let r;const t=Array.isArray(e),a=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Et&&(e instanceof Blob||a))&&(t||q(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Pt(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=Se(e[o]));else return e;return r}var Ce=e=>/^\w*$/.test(e),te=e=>e===void 0,kt=e=>Array.isArray(e)?e.filter(Boolean):[],Me=e=>kt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),N=(e,r,t)=>{if(!r||!q(e))return t;const a=(Ce(r)?[r]:Me(r)).reduce((o,s)=>ne(o)?o:o[s],e);return te(a)||a===e?te(e[r])?t:e[r]:a},X=e=>typeof e=="boolean",ue=(e,r,t)=>{let a=-1;const o=Ce(r)?[r]:Me(r),s=o.length,l=s-1;for(;++a<s;){const d=o[a];let f=t;if(a!==l){const b=e[d];f=q(b)||Array.isArray(b)?b:isNaN(+o[a+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}};const le={BLUR:"blur",CHANGE:"change"},de={all:"all"},ie=u.createContext(null);ie.displayName="HookFormContext";const J=()=>u.useContext(ie),Ft=e=>{const{children:r,...t}=e;return u.createElement(ie.Provider,{value:t},r)};var jt=(e,r,t,a=!0)=>{const o={defaultValues:r._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const l=s;return r._proxyFormState[l]!==de.all&&(r._proxyFormState[l]=!a||de.all),t&&(t[l]=!0),e[l]}});return o};const Ae=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Rt(e){const r=J(),{control:t=r.control,disabled:a,name:o,exact:s}=e||{},[l,d]=u.useState(t._formState),f=u.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ae(()=>t._subscribe({name:o,formState:f.current,exact:s,callback:b=>{!a&&d({...t._formState,...b})}}),[o,a,s]),u.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),u.useMemo(()=>jt(l,t,f.current,!1),[l,t])}var Ot=e=>typeof e=="string",ce=(e,r,t,a,o)=>Ot(e)?N(t,e,o):Array.isArray(e)?e.map(s=>N(t,s)):t,be=e=>ne(e)||!ve(e);function z(e,r,t=new WeakSet){if(be(e)||be(r))return Object.is(e,r);if(L(e)&&L(r))return e.getTime()===r.getTime();const a=Object.keys(e),o=Object.keys(r);if(a.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const s of a){const l=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const d=r[s];if(L(l)&&L(d)||q(l)&&q(d)||Array.isArray(l)&&Array.isArray(d)?!z(l,d,t):!Object.is(l,d))return!1}}return!0}function qt(e){const r=J(),{control:t=r.control,name:a,defaultValue:o,disabled:s,exact:l,compute:d}=e||{},f=u.useRef(o),b=u.useRef(d),g=u.useRef(void 0),S=u.useRef(t),M=u.useRef(a);b.current=d;const[A,C]=u.useState(()=>{const p=t._getWatch(a,f.current);return b.current?b.current(p):p}),y=u.useCallback(p=>{const P=ce(a,t._names,p||t._formValues,!1,f.current);return b.current?b.current(P):P},[t._formValues,t._names,a]),m=u.useCallback(p=>{if(!s){const P=ce(a,t._names,p||t._formValues,!1,f.current);if(b.current){const R=b.current(P);z(R,g.current)||(C(R),g.current=R)}else C(P)}},[t._formValues,t._names,s,a]);Ae(()=>((S.current!==t||!z(M.current,a))&&(S.current=t,M.current=a,m()),t._subscribe({name:a,formState:{values:!0},exact:l,callback:p=>{m(p.values)}})),[t,l,a,m]),u.useEffect(()=>t._removeUnmounted());const h=S.current!==t,D=M.current,x=u.useMemo(()=>{if(s)return null;const p=!h&&!z(D,a);return h||p?y():null},[s,h,a,D,y]);return x!==null?x:A}function Gt(e){const r=J(),{name:t,disabled:a,control:o=r.control,shouldUnregister:s,defaultValue:l}=e,d=Nt(o._names.array,t),f=u.useMemo(()=>N(o._formValues,t,N(o._defaultValues,t,l)),[o,t,l]),b=qt({control:o,name:t,defaultValue:f,exact:!0}),g=Rt({control:o,name:t,exact:!0}),S=u.useRef(e),M=u.useRef(void 0),A=u.useRef(o.register(t,{...e.rules,value:b,...X(e.disabled)?{disabled:e.disabled}:{}}));S.current=e;const C=u.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!N(g.errors,t)},isDirty:{enumerable:!0,get:()=>!!N(g.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!N(g.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!N(g.validatingFields,t)},error:{enumerable:!0,get:()=>N(g.errors,t)}}),[g,t]),y=u.useCallback(x=>A.current.onChange({target:{value:_t(x),name:t},type:le.CHANGE}),[t]),m=u.useCallback(()=>A.current.onBlur({target:{value:N(o._formValues,t),name:t},type:le.BLUR}),[t,o._formValues]),h=u.useCallback(x=>{const p=N(o._fields,t);p&&x&&(p._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:P=>x.setCustomValidity(P),reportValidity:()=>x.reportValidity()})},[o._fields,t]),D=u.useMemo(()=>({name:t,value:b,...X(a)||g.disabled?{disabled:g.disabled||a}:{},onChange:y,onBlur:m,ref:h}),[t,a,g.disabled,y,m,h,b]);return u.useEffect(()=>{const x=o._options.shouldUnregister||s,p=M.current;p&&p!==t&&!d&&o.unregister(p),o.register(t,{...S.current.rules,...X(S.current.disabled)?{disabled:S.current.disabled}:{}});const P=(R,Ee)=>{const Q=N(o._fields,R);Q&&Q._f&&(Q._f.mount=Ee)};if(P(t,!0),x){const R=Se(N(o._options.defaultValues,t,S.current.defaultValue));ue(o._defaultValues,t,R),te(N(o._formValues,t))&&ue(o._formValues,t,R)}return!d&&o.register(t),M.current=t,()=>{(d?x&&!o._state.action:x)?o.unregister(t):P(t,!1)}},[t,o,d,s]),u.useEffect(()=>{o._setDisabledField({disabled:a,name:t})},[a,t,o]),u.useMemo(()=>({field:D,formState:g,fieldState:C}),[D,g,C])}const Vt=e=>e.render(Gt(e)),Lt=Ft,we=v.createContext(null),Bt=({...e})=>n.jsx(we.Provider,{value:{name:e.name},children:n.jsx(Vt,{...e})}),H=()=>{const e=v.useContext(we),r=v.useContext(ye),{getFieldState:t,formState:a}=J();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const o=t(e.name,a),{id:s}=r;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},ye=v.createContext(null),De=v.forwardRef(({className:e,...r},t)=>{const a=v.useId();return n.jsx(ye.Provider,{value:{id:a},children:n.jsx("div",{ref:t,className:c.cn("space-y-2",e),...r})})});De.displayName="FormItem";const Ie=v.forwardRef(({className:e,...r},t)=>{const{error:a,formItemId:o}=H();return n.jsx(ge.Label,{ref:t,className:c.cn(a&&"text-destructive",e),htmlFor:o,...r})});Ie.displayName="FormLabel";const _e=v.forwardRef(({...e},r)=>{const{error:t,formItemId:a,formDescriptionId:o,formMessageId:s}=H();return n.jsx(V.Slot,{ref:r,id:a,"aria-describedby":t?`${o} ${s}`:`${o}`,"aria-invalid":!!t,...e})});_e.displayName="FormControl";const Te=v.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:a}=H();return n.jsx("p",{ref:t,id:a,className:c.cn("text-[0.8rem] text-muted-foreground",e),...r})});Te.displayName="FormDescription";const Ne=v.forwardRef(({className:e,children:r,...t},a)=>{const{error:o,formMessageId:s}=H(),l=o?String((o==null?void 0:o.message)??""):r;return l?n.jsx("p",{ref:a,id:s,className:c.cn("font-medium text-[0.8rem] text-destructive",e),...t,children:l}):null});Ne.displayName="FormMessage";function Ht(e,r){let t=null;return function(...a){t&&clearTimeout(t),t=setTimeout(()=>e.apply(this,a),r)}}const Pe=u.createContext(null);function zt({children:e,values:r,defaultValues:t,onValuesChange:a}){const[o,s]=u.useState(!1),[l,d]=u.useState(new Set(r??t)),f=r?new Set(r):l,[b,g]=u.useState(new Map);function S(A){const C=y=>{const m=new Set(y);return m.has(A)?m.delete(A):m.add(A),m};d(C),a==null||a([...C(f)])}const M=u.useCallback((A,C)=>{g(y=>y.get(A)===C?y:new Map(y).set(A,C))},[]);return n.jsx(Pe,{value:{open:o,setOpen:s,selectedValues:f,toggleValue:S,items:b,onItemAdded:M},children:n.jsx(G.Popover,{open:o,onOpenChange:s,modal:!0,children:e})})}function Ut({className:e,children:r,...t}){const{open:a}=se();return n.jsx(G.PopoverTrigger,{asChild:!0,children:n.jsxs(xe.Button,{...t,variant:t.variant??"outline",role:t.role??"combobox","aria-expanded":t["aria-expanded"]??a,className:c.cn("flex text-secondary cursor-pointer h-auto min-h-9 w-fit items-center justify-between gap-2 overflow-hidden rounded-md border border-input bg-transparent px-3 py-1.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),children:[r,n.jsx($.ChevronsUpDownIcon,{className:"opacity-50 size-4 shrink-0"})]})})}function Kt({placeholder:e,clickToRemove:r=!0,className:t,overflowBehavior:a="wrap-when-open",...o}){const{selectedValues:s,toggleValue:l,items:d,open:f}=se(),[b,g]=u.useState(0),S=u.useRef(null),M=u.useRef(null),A=a==="wrap"||a==="wrap-when-open"&&f,C=u.useCallback(()=>{if(S.current==null)return;const m=S.current,h=M.current,D=m.querySelectorAll("[data-selected-item]");h!=null&&(h.style.display="none"),D.forEach(p=>p.style.removeProperty("display"));let x=0;for(let p=D.length-1;p>=0;p--){const P=D[p];if(m.scrollWidth<=m.clientWidth)break;x=D.length-p,P.style.display="none",h==null||h.style.removeProperty("display")}g(x)},[]),y=u.useCallback(m=>{S.current=m;const h=new MutationObserver(C),D=100,x=new ResizeObserver(Ht(C,D));return h.observe(m,{childList:!0,attributes:!0,attributeFilter:["class","style"]}),x.observe(m),()=>{x.disconnect(),h.disconnect(),S.current=null}},[C]);return s.size===0&&e?n.jsx("span",{className:"min-w-0 overflow-hidden font-normal text-muted-foreground",children:e}):n.jsxs("div",{...o,ref:y,className:c.cn("flex gap-1.5 w-full overflow-hidden",A&&"h-full flex-wrap",t),children:[[...s].filter(m=>d.has(m)).map(m=>n.jsxs(Y.Badge,{variant:"outline","data-selected-item":!0,className:"group flex items-center gap-1 text-secondary",onClick:r?h=>{h.stopPropagation(),l(m)}:void 0,children:[d.get(m),r&&n.jsx($.XIcon,{className:"size-2 text-muted-foreground group-hover:text-destructive hover:cursor-pointer group-hover:cursor-pointer"})]},m)),n.jsxs(Y.Badge,{className:"text-secondary cursor-pointer",style:{display:b>0&&!A?"block":"none"},variant:"outline",ref:M,children:["+",b]})]})}function Wt({search:e=!0,children:r,...t}){const a=typeof e=="object"?!0:e;return n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{display:"none"},children:n.jsx(w.Command,{children:n.jsx(w.CommandList,{children:r})})}),n.jsx(G.PopoverContent,{className:"p-0 min-w-[var(--radix-popover-trigger-width)]",children:n.jsxs(w.Command,{...t,children:[a?n.jsx(w.CommandInput,{placeholder:typeof e=="object"?e.placeholder:void 0}):n.jsx("button",{className:"sr-only"}),n.jsxs(w.CommandList,{children:[a&&n.jsx(w.CommandEmpty,{children:typeof e=="object"?e.emptyMessage:void 0}),r]})]})})]})}function $t({value:e,children:r,badgeLabel:t,onSelect:a,...o}){const{toggleValue:s,selectedValues:l,onItemAdded:d}=se(),f=l.has(e);return u.useEffect(()=>{d(e,t??r)},[e,r,d,t]),n.jsxs(w.CommandItem,{...o,onSelect:()=>{s(e),a==null||a(e)},className:"text-secondary cursor-pointer",children:[n.jsx($.CheckIcon,{className:c.cn("mr-2 size-4",f?"opacity-100":"opacity-0")}),r]})}function Jt(e){return n.jsx(w.CommandGroup,{...e})}function se(){const e=u.useContext(Pe);if(e==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return e}exports.TextReveal=ke.TextReveal;exports.AlertDialog=k.AlertDialog;exports.AlertDialogAction=k.AlertDialogAction;exports.AlertDialogCancel=k.AlertDialogCancel;exports.AlertDialogContent=k.AlertDialogContent;exports.AlertDialogDescription=k.AlertDialogDescription;exports.AlertDialogFooter=k.AlertDialogFooter;exports.AlertDialogHeader=k.AlertDialogHeader;exports.AlertDialogOverlay=k.AlertDialogOverlay;exports.AlertDialogPortal=k.AlertDialogPortal;exports.AlertDialogTitle=k.AlertDialogTitle;exports.AlertDialogTrigger=k.AlertDialogTrigger;exports.Calendar=me.Calendar;exports.CalendarDayButton=me.CalendarDayButton;exports.Carousel=B.Carousel;exports.CarouselContent=B.CarouselContent;exports.CarouselItem=B.CarouselItem;exports.CarouselNext=B.CarouselNext;exports.CarouselPrevious=B.CarouselPrevious;exports.Combobox=Fe.Combobox;exports.InputOTP=U.InputOTP;exports.InputOTPGroup=U.InputOTPGroup;exports.InputOTPSeparator=U.InputOTPSeparator;exports.InputOTPSlot=U.InputOTPSlot;exports.Slider=je.Slider;exports.Progress=Re.Progress;exports.Accordion=K.Accordion;exports.AccordionContent=K.AccordionContent;exports.AccordionItem=K.AccordionItem;exports.AccordionTrigger=K.AccordionTrigger;exports.Avatar=re.Avatar;exports.AvatarFallback=re.AvatarFallback;exports.AvatarImage=re.AvatarImage;exports.Checkbox=Oe.Checkbox;exports.ContextMenu=_.ContextMenu;exports.ContextMenuCheckboxItem=_.ContextMenuCheckboxItem;exports.ContextMenuContent=_.ContextMenuContent;exports.ContextMenuGroup=_.ContextMenuGroup;exports.ContextMenuItem=_.ContextMenuItem;exports.ContextMenuLabel=_.ContextMenuLabel;exports.ContextMenuPortal=_.ContextMenuPortal;exports.ContextMenuRadioGroup=_.ContextMenuRadioGroup;exports.ContextMenuRadioItem=_.ContextMenuRadioItem;exports.ContextMenuSeparator=_.ContextMenuSeparator;exports.ContextMenuShortcut=_.ContextMenuShortcut;exports.ContextMenuSub=_.ContextMenuSub;exports.ContextMenuSubContent=_.ContextMenuSubContent;exports.ContextMenuSubTrigger=_.ContextMenuSubTrigger;exports.ContextMenuTrigger=_.ContextMenuTrigger;exports.DropdownMenu=T.DropdownMenu;exports.DropdownMenuCheckboxItem=T.DropdownMenuCheckboxItem;exports.DropdownMenuContent=T.DropdownMenuContent;exports.DropdownMenuGroup=T.DropdownMenuGroup;exports.DropdownMenuItem=T.DropdownMenuItem;exports.DropdownMenuLabel=T.DropdownMenuLabel;exports.DropdownMenuPortal=T.DropdownMenuPortal;exports.DropdownMenuRadioGroup=T.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=T.DropdownMenuRadioItem;exports.DropdownMenuSeparator=T.DropdownMenuSeparator;exports.DropdownMenuShortcut=T.DropdownMenuShortcut;exports.DropdownMenuSub=T.DropdownMenuSub;exports.DropdownMenuSubContent=T.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=T.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=T.DropdownMenuTrigger;exports.HoverCard=ae.HoverCard;exports.HoverCardContent=ae.HoverCardContent;exports.HoverCardTrigger=ae.HoverCardTrigger;exports.RadioGroup=fe.RadioGroup;exports.RadioGroupItem=fe.RadioGroupItem;exports.ScrollArea=pe.ScrollArea;exports.ScrollBar=pe.ScrollBar;exports.Switch=qe.Switch;exports.Tabs=W.Tabs;exports.TabsContent=W.TabsContent;exports.TabsList=W.TabsList;exports.TabsTrigger=W.TabsTrigger;exports.Tooltip=O.Tooltip;exports.TooltipContent=O.TooltipContent;exports.TooltipProvider=O.TooltipProvider;exports.TooltipTrigger=O.TooltipTrigger;exports.Command=w.Command;exports.CommandDialog=w.CommandDialog;exports.CommandEmpty=w.CommandEmpty;exports.CommandGroup=w.CommandGroup;exports.CommandInput=w.CommandInput;exports.CommandItem=w.CommandItem;exports.CommandList=w.CommandList;exports.CommandSeparator=w.CommandSeparator;exports.CommandShortcut=w.CommandShortcut;exports.Dialog=F.Dialog;exports.DialogClose=F.DialogClose;exports.DialogContent=F.DialogContent;exports.DialogDescription=F.DialogDescription;exports.DialogFooter=F.DialogFooter;exports.DialogHeader=F.DialogHeader;exports.DialogOverlay=F.DialogOverlay;exports.DialogPortal=F.DialogPortal;exports.DialogTitle=F.DialogTitle;exports.DialogTrigger=F.DialogTrigger;exports.Drawer=j.Drawer;exports.DrawerClose=j.DrawerClose;exports.DrawerContent=j.DrawerContent;exports.DrawerDescription=j.DrawerDescription;exports.DrawerFooter=j.DrawerFooter;exports.DrawerHeader=j.DrawerHeader;exports.DrawerOverlay=j.DrawerOverlay;exports.DrawerPortal=j.DrawerPortal;exports.DrawerTitle=j.DrawerTitle;exports.DrawerTrigger=j.DrawerTrigger;exports.Sheet=E.Sheet;exports.SheetClose=E.SheetClose;exports.SheetContent=E.SheetContent;exports.SheetDescription=E.SheetDescription;exports.SheetFooter=E.SheetFooter;exports.SheetHeader=E.SheetHeader;exports.SheetTitle=E.SheetTitle;exports.SheetTrigger=E.SheetTrigger;exports.Toaster=Ge.Toaster;exports.Toggle=Ve.Toggle;exports.Label=ge.Label;exports.Menubar=I.Menubar;exports.MenubarCheckboxItem=I.MenubarCheckboxItem;exports.MenubarContent=I.MenubarContent;exports.MenubarGroup=I.MenubarGroup;exports.MenubarItem=I.MenubarItem;exports.MenubarLabel=I.MenubarLabel;exports.MenubarMenu=I.MenubarMenu;exports.MenubarPortal=I.MenubarPortal;exports.MenubarRadioGroup=I.MenubarRadioGroup;exports.MenubarRadioItem=I.MenubarRadioItem;exports.MenubarSeparator=I.MenubarSeparator;exports.MenubarShortcut=I.MenubarShortcut;exports.MenubarSub=I.MenubarSub;exports.MenubarSubContent=I.MenubarSubContent;exports.MenubarSubTrigger=I.MenubarSubTrigger;exports.MenubarTrigger=I.MenubarTrigger;exports.Popover=G.Popover;exports.PopoverAnchor=G.PopoverAnchor;exports.PopoverContent=G.PopoverContent;exports.PopoverTrigger=G.PopoverTrigger;exports.Form=Lt;exports.FormControl=_e;exports.FormDescription=Te;exports.FormField=Bt;exports.FormItem=De;exports.FormLabel=Ie;exports.FormMessage=Ne;exports.MultiSelect=zt;exports.MultiSelectContent=Wt;exports.MultiSelectGroup=Jt;exports.MultiSelectItem=$t;exports.MultiSelectTrigger=Ut;exports.MultiSelectValue=Kt;exports.Sidebar=rt;exports.SidebarContent=dt;exports.SidebarFooter=ut;exports.SidebarGroup=ct;exports.SidebarGroupAction=mt;exports.SidebarGroupContent=ft;exports.SidebarGroupLabel=bt;exports.SidebarHeader=st;exports.SidebarInput=it;exports.SidebarInset=nt;exports.SidebarMenu=pt;exports.SidebarMenuAction=vt;exports.SidebarMenuBadge=St;exports.SidebarMenuButton=ht;exports.SidebarMenuItem=gt;exports.SidebarMenuSkeleton=At;exports.SidebarMenuSub=wt;exports.SidebarMenuSubButton=Dt;exports.SidebarMenuSubItem=yt;exports.SidebarProvider=Ye;exports.SidebarRail=ot;exports.SidebarSeparator=lt;exports.SidebarTrigger=at;exports.useFormField=H;exports.useSidebar=oe;
|