@addsign/moje-agenda-shared-lib 2.0.72 → 2.0.73
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/Dialog-BmQoVu5C.js.map +1 -1
- package/dist/assets/style.css +1772 -1758
- package/dist/components/Attachments.js +2 -2
- package/dist/components/datatable/DataTable.js +3 -3
- package/dist/components/datatable/DataTableServer.js +3 -3
- package/dist/components/form/AutocompleteSearchBar.js +2 -2
- package/dist/components/form/AutocompleteSearchBarServer.js +2 -2
- package/dist/components/form/FileInput.js +3 -3
- package/dist/components/form/FileInputForm.d.ts +1 -0
- package/dist/components/form/FileInputForm.js +201 -93
- package/dist/components/form/FileInputForm.js.map +1 -1
- package/dist/components/form/FileInputFormMultiple.d.ts +1 -0
- package/dist/components/form/FileInputFormMultiple.js +203 -82
- package/dist/components/form/FileInputFormMultiple.js.map +1 -1
- package/dist/components/form/FileInputMultiple.js +3 -3
- package/dist/components/form/FormField.js +2 -2
- package/dist/components/form/PositionsSelectorSingle.js +3 -3
- package/dist/components/form/SelectField.js +2 -2
- package/dist/components/layout/Neoptimizovano.js +2 -2
- package/dist/components/profiles/ProfileOverview.js +2 -2
- package/dist/components/ui/Combobox.js +1 -1
- package/dist/components/ui/DatePicker.js +2 -2
- package/dist/components/ui/DateTimePicker.js +2 -2
- package/dist/components/ui/Dialog.js +1 -1
- package/dist/components/ui/ScrollArea.js +2 -2
- package/dist/components/ui/checkbox.js +4 -4
- package/dist/components/ui/command.d.ts +6 -6
- package/dist/components/ui/command.js +2 -2
- package/dist/components/ui/input.js +8 -107
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/multi-select.js +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/radioGroup.js +5 -5
- package/dist/components/ui/select.js +7 -7
- package/dist/components/ui/toast.js +5 -5
- package/dist/components/ui/tooltip.js +6 -6
- package/dist/input-Cm_FjJOF.js +111 -0
- package/dist/input-Cm_FjJOF.js.map +1 -0
- package/dist/main.js +3 -3
- package/dist/popover-DpJhfyvx.js.map +1 -1
- package/lib/components/form/FileInputForm.tsx +245 -99
- package/lib/components/form/FileInputFormMultiple.tsx +233 -65
- package/lib/css/tailwind.css +9 -9
- package/package.json +1 -1
- package/tailwind.config.js +97 -97
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
|
|
4
|
-
import { c as createContextScope, b as composeEventHandlers } from "../../index-
|
|
5
|
-
import { u as useControllableState } from "../../index-
|
|
4
|
+
import { c as createContextScope, b as composeEventHandlers } from "../../index-CDCkSjVs.js";
|
|
5
|
+
import { u as useControllableState } from "../../index-DFSwSCB0.js";
|
|
6
6
|
import { u as usePrevious } from "../../index-CshadhlS.js";
|
|
7
|
-
import { u as useSize } from "../../index-
|
|
8
|
-
import { P as Presence } from "../../index-
|
|
7
|
+
import { u as useSize } from "../../index-pLFWXSOv.js";
|
|
8
|
+
import { P as Presence } from "../../index-CA2QNu6z.js";
|
|
9
9
|
import { P as Primitive } from "../../index-B761_inZ.js";
|
|
10
10
|
import { cn } from "../../utils/utils.js";
|
|
11
11
|
import { C as Check } from "../../check-B7dJm08z.js";
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean | undefined;
|
|
9
|
-
}, "key" |
|
|
9
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
10
10
|
label?: string | undefined;
|
|
11
11
|
shouldFilter?: boolean | undefined;
|
|
12
12
|
filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
|
|
@@ -32,7 +32,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
32
32
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
33
33
|
} & {
|
|
34
34
|
asChild?: boolean | undefined;
|
|
35
|
-
}, "key" |
|
|
35
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
36
36
|
label?: string | undefined;
|
|
37
37
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -41,14 +41,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
41
41
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
42
42
|
} & {
|
|
43
43
|
asChild?: boolean | undefined;
|
|
44
|
-
}, "key" |
|
|
44
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
45
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
46
|
children?: React.ReactNode;
|
|
47
47
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
48
48
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
49
49
|
} & {
|
|
50
50
|
asChild?: boolean | undefined;
|
|
51
|
-
}, "key" |
|
|
51
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
52
52
|
heading?: React.ReactNode;
|
|
53
53
|
value?: string | undefined;
|
|
54
54
|
forceMount?: boolean | undefined;
|
|
@@ -57,7 +57,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
57
57
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
58
58
|
} & {
|
|
59
59
|
asChild?: boolean | undefined;
|
|
60
|
-
}, "key" |
|
|
60
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
61
61
|
alwaysRender?: boolean | undefined;
|
|
62
62
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
63
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
66
66
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
67
67
|
} & {
|
|
68
68
|
asChild?: boolean | undefined;
|
|
69
|
-
}, "key" |
|
|
69
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
70
70
|
disabled?: boolean | undefined;
|
|
71
71
|
onSelect?: ((value: string) => void) | undefined;
|
|
72
72
|
value?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default from "react";
|
|
4
|
-
import { R as Root, P as Portal, O as Overlay, C as Content, D as Dialog, e as DialogContent } from "../../Dialog-
|
|
4
|
+
import { R as Root, P as Portal, O as Overlay, C as Content, D as Dialog, e as DialogContent } from "../../Dialog-BmQoVu5C.js";
|
|
5
5
|
import { P as Primitive } from "../../index-B761_inZ.js";
|
|
6
|
-
import { u as useId } from "../../index-
|
|
6
|
+
import { u as useId } from "../../index-Deoi9R3y.js";
|
|
7
7
|
import { cn } from "../../utils/utils.js";
|
|
8
8
|
import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
|
|
9
9
|
/**
|
|
@@ -1,110 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
/**
|
|
9
|
-
* @license lucide-react v0.456.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const LoaderCircle = createLucideIcon("LoaderCircle", [
|
|
15
|
-
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
16
|
-
]);
|
|
17
|
-
const Input = React.forwardRef(
|
|
18
|
-
({
|
|
19
|
-
className,
|
|
20
|
-
type,
|
|
21
|
-
value: propValue,
|
|
22
|
-
onChange,
|
|
23
|
-
clearable = false,
|
|
24
|
-
debounceTimeout,
|
|
25
|
-
disabled,
|
|
26
|
-
...props
|
|
27
|
-
}, ref) => {
|
|
28
|
-
const [internalValue, setInternalValue] = React.useState(propValue || "");
|
|
29
|
-
const debounceTimeoutRef = React.useRef(null);
|
|
30
|
-
const [inputIsChanging, setInputIsChanging] = React.useState(false);
|
|
31
|
-
React.useEffect(() => {
|
|
32
|
-
setInternalValue(propValue ?? "");
|
|
33
|
-
}, [propValue]);
|
|
34
|
-
const handleDebouncedChange = React.useCallback(
|
|
35
|
-
(e) => {
|
|
36
|
-
const { value } = e.target;
|
|
37
|
-
setInternalValue(value);
|
|
38
|
-
setInputIsChanging(true);
|
|
39
|
-
if (debounceTimeout) {
|
|
40
|
-
if (debounceTimeoutRef.current)
|
|
41
|
-
clearTimeout(debounceTimeoutRef.current);
|
|
42
|
-
debounceTimeoutRef.current = setTimeout(() => {
|
|
43
|
-
const newValue = type === "number" && value === "" ? null : value;
|
|
44
|
-
setInternalValue(newValue || "");
|
|
45
|
-
onChange == null ? void 0 : onChange({
|
|
46
|
-
target: { value: newValue }
|
|
47
|
-
});
|
|
48
|
-
setInputIsChanging(false);
|
|
49
|
-
}, debounceTimeout);
|
|
50
|
-
} else {
|
|
51
|
-
const newValue = type === "number" && value === "" ? null : value;
|
|
52
|
-
setInternalValue(newValue || "");
|
|
53
|
-
onChange == null ? void 0 : onChange({
|
|
54
|
-
target: { value: newValue }
|
|
55
|
-
});
|
|
56
|
-
setInputIsChanging(false);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
[debounceTimeout, type, onChange]
|
|
60
|
-
);
|
|
61
|
-
const handleClear = () => {
|
|
62
|
-
setInternalValue("");
|
|
63
|
-
onChange == null ? void 0 : onChange({
|
|
64
|
-
target: { value: type === "number" ? null : "" }
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
"input",
|
|
70
|
-
{
|
|
71
|
-
type,
|
|
72
|
-
value: internalValue,
|
|
73
|
-
onChange: handleDebouncedChange,
|
|
74
|
-
className: cn(
|
|
75
|
-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 " + (clearable && !disabled && !!internalValue ? " pr-10 " : " pr-3 ") + " text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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-80 disabled:border-opacity-100 md:text-sm",
|
|
76
|
-
className
|
|
77
|
-
),
|
|
78
|
-
ref,
|
|
79
|
-
disabled,
|
|
80
|
-
...props
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
inputIsChanging === true && /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground", children: /* @__PURE__ */ jsx(
|
|
84
|
-
SpinnerIcon,
|
|
85
|
-
{
|
|
86
|
-
icon: /* @__PURE__ */ jsx(LoaderCircle, { size: 25, className: "text-muted-foreground" })
|
|
87
|
-
}
|
|
88
|
-
) }),
|
|
89
|
-
!!internalValue && clearable && !disabled && /* @__PURE__ */ jsxs(
|
|
90
|
-
Button,
|
|
91
|
-
{
|
|
92
|
-
type: "button",
|
|
93
|
-
variant: "ghost",
|
|
94
|
-
size: "icon",
|
|
95
|
-
className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",
|
|
96
|
-
onClick: handleClear,
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" }),
|
|
99
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Clear input" })
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
] });
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
Input.displayName = "Input";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../utils/utils.js";
|
|
4
|
+
import "./button.js";
|
|
5
|
+
import "../SpinnerIcon.js";
|
|
6
|
+
import { I } from "../../input-Cm_FjJOF.js";
|
|
7
|
+
import "../../x-DciOkaU0.js";
|
|
107
8
|
export {
|
|
108
|
-
Input
|
|
9
|
+
I as Input
|
|
109
10
|
};
|
|
110
11
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":[
|
|
1
|
+
{"version":3,"file":"input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils/utils.js";
|
|
|
5
5
|
import { Separator } from "./separator.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
7
|
import { Badge } from "./badge.js";
|
|
8
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-
|
|
8
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-DpJhfyvx.js";
|
|
9
9
|
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator } from "./command.js";
|
|
10
10
|
import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
|
|
11
11
|
import { X } from "../../x-DciOkaU0.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { a as useCallbackRef, b as composeEventHandlers, c as createContextScope$1 } from "../../index-
|
|
3
|
+
import { a as useCallbackRef, b as composeEventHandlers, c as createContextScope$1 } from "../../index-CDCkSjVs.js";
|
|
4
4
|
import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
|
|
5
5
|
import { P as Primitive } from "../../index-B761_inZ.js";
|
|
6
6
|
import { c as createCollection } from "../../index-E5yk6fTE.js";
|
|
7
|
-
import { u as useId } from "../../index-
|
|
8
|
-
import { u as useControllableState } from "../../index-
|
|
7
|
+
import { u as useId } from "../../index-Deoi9R3y.js";
|
|
8
|
+
import { u as useControllableState } from "../../index-DFSwSCB0.js";
|
|
9
9
|
import { u as useDirection } from "../../index-Bk8dRTPE.js";
|
|
10
|
-
import { u as useSize } from "../../index-
|
|
10
|
+
import { u as useSize } from "../../index-pLFWXSOv.js";
|
|
11
11
|
import { u as usePrevious } from "../../index-CshadhlS.js";
|
|
12
|
-
import { P as Presence } from "../../index-
|
|
12
|
+
import { P as Presence } from "../../index-CA2QNu6z.js";
|
|
13
13
|
import { cn } from "../../utils/utils.js";
|
|
14
14
|
import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
|
|
15
15
|
/**
|
|
@@ -2,16 +2,16 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { P as Primitive, r as reactDomExports } from "../../index-B761_inZ.js";
|
|
4
4
|
import { c as clamp } from "../../index-IXOTxK3N.js";
|
|
5
|
-
import { c as createContextScope, b as composeEventHandlers, u as useLayoutEffect2, a as useCallbackRef } from "../../index-
|
|
5
|
+
import { c as createContextScope, b as composeEventHandlers, u as useLayoutEffect2, a as useCallbackRef } from "../../index-CDCkSjVs.js";
|
|
6
6
|
import { c as createCollection } from "../../index-E5yk6fTE.js";
|
|
7
7
|
import { u as useComposedRefs, S as Slot } from "../../index-D9mvqz1C.js";
|
|
8
8
|
import { u as useDirection } from "../../index-Bk8dRTPE.js";
|
|
9
|
-
import { D as DismissableLayer } from "../../index-
|
|
10
|
-
import { h as hideOthers, u as useFocusGuards, R as ReactRemoveScroll, F as FocusScope } from "../../
|
|
11
|
-
import { u as useId } from "../../index-
|
|
12
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from "../../index-
|
|
13
|
-
import { P as Portal$1 } from "../../index-
|
|
14
|
-
import { u as useControllableState } from "../../index-
|
|
9
|
+
import { D as DismissableLayer } from "../../index-Dz0Z0Mhp.js";
|
|
10
|
+
import { h as hideOthers, u as useFocusGuards, R as ReactRemoveScroll, F as FocusScope } from "../../index-DoIb06Ge.js";
|
|
11
|
+
import { u as useId } from "../../index-Deoi9R3y.js";
|
|
12
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from "../../index-DjvLSytK.js";
|
|
13
|
+
import { P as Portal$1 } from "../../index-DDUC0qyC.js";
|
|
14
|
+
import { u as useControllableState } from "../../index-DFSwSCB0.js";
|
|
15
15
|
import { u as usePrevious } from "../../index-CshadhlS.js";
|
|
16
16
|
import { V as VisuallyHidden } from "../../index-cCT-Qkr7.js";
|
|
17
17
|
import { cn } from "../../utils/utils.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { P as Primitive, r as reactDomExports, d as dispatchDiscreteCustomEvent } from "../../index-B761_inZ.js";
|
|
4
|
-
import { c as createContextScope, a as useCallbackRef, b as composeEventHandlers, u as useLayoutEffect2 } from "../../index-
|
|
4
|
+
import { c as createContextScope, a as useCallbackRef, b as composeEventHandlers, u as useLayoutEffect2 } from "../../index-CDCkSjVs.js";
|
|
5
5
|
import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
|
|
6
6
|
import { c as createCollection } from "../../index-E5yk6fTE.js";
|
|
7
|
-
import { B as Branch, R as Root } from "../../index-
|
|
8
|
-
import { P as Portal } from "../../index-
|
|
9
|
-
import { P as Presence } from "../../index-
|
|
10
|
-
import { u as useControllableState } from "../../index-
|
|
7
|
+
import { B as Branch, R as Root } from "../../index-Dz0Z0Mhp.js";
|
|
8
|
+
import { P as Portal } from "../../index-DDUC0qyC.js";
|
|
9
|
+
import { P as Presence } from "../../index-CA2QNu6z.js";
|
|
10
|
+
import { u as useControllableState } from "../../index-DFSwSCB0.js";
|
|
11
11
|
import { V as VisuallyHidden } from "../../index-cCT-Qkr7.js";
|
|
12
12
|
import { c as cva } from "../../index-udNDzvjB.js";
|
|
13
13
|
import { cn } from "../../utils/utils.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { c as createContextScope, b as composeEventHandlers } from "../../index-
|
|
3
|
+
import { c as createContextScope, b as composeEventHandlers } from "../../index-CDCkSjVs.js";
|
|
4
4
|
import { u as useComposedRefs, a as Slottable } from "../../index-D9mvqz1C.js";
|
|
5
|
-
import { D as DismissableLayer } from "../../index-
|
|
6
|
-
import { u as useId } from "../../index-
|
|
7
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2 } from "../../index-
|
|
8
|
-
import { P as Presence } from "../../index-
|
|
5
|
+
import { D as DismissableLayer } from "../../index-Dz0Z0Mhp.js";
|
|
6
|
+
import { u as useId } from "../../index-Deoi9R3y.js";
|
|
7
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2 } from "../../index-DjvLSytK.js";
|
|
8
|
+
import { P as Presence } from "../../index-CA2QNu6z.js";
|
|
9
9
|
import { P as Primitive } from "../../index-B761_inZ.js";
|
|
10
|
-
import { u as useControllableState } from "../../index-
|
|
10
|
+
import { u as useControllableState } from "../../index-DFSwSCB0.js";
|
|
11
11
|
import { R as Root } from "../../index-cCT-Qkr7.js";
|
|
12
12
|
import { cn } from "../../utils/utils.js";
|
|
13
13
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "./utils/utils.js";
|
|
4
|
+
import { Button } from "./components/ui/button.js";
|
|
5
|
+
import SpinnerIcon from "./components/SpinnerIcon.js";
|
|
6
|
+
import { c as createLucideIcon } from "./createLucideIcon-KSoQd4Wi.js";
|
|
7
|
+
import { X } from "./x-DciOkaU0.js";
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v0.456.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
const LoaderCircle = createLucideIcon("LoaderCircle", [
|
|
15
|
+
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
16
|
+
]);
|
|
17
|
+
const Input = React.forwardRef(
|
|
18
|
+
({
|
|
19
|
+
className,
|
|
20
|
+
type,
|
|
21
|
+
value: propValue,
|
|
22
|
+
onChange,
|
|
23
|
+
clearable = false,
|
|
24
|
+
debounceTimeout,
|
|
25
|
+
disabled,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => {
|
|
28
|
+
const [internalValue, setInternalValue] = React.useState(propValue || "");
|
|
29
|
+
const debounceTimeoutRef = React.useRef(null);
|
|
30
|
+
const [inputIsChanging, setInputIsChanging] = React.useState(false);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
setInternalValue(propValue ?? "");
|
|
33
|
+
}, [propValue]);
|
|
34
|
+
const handleDebouncedChange = React.useCallback(
|
|
35
|
+
(e) => {
|
|
36
|
+
const { value } = e.target;
|
|
37
|
+
setInternalValue(value);
|
|
38
|
+
setInputIsChanging(true);
|
|
39
|
+
if (debounceTimeout) {
|
|
40
|
+
if (debounceTimeoutRef.current)
|
|
41
|
+
clearTimeout(debounceTimeoutRef.current);
|
|
42
|
+
debounceTimeoutRef.current = setTimeout(() => {
|
|
43
|
+
const newValue = type === "number" && value === "" ? null : value;
|
|
44
|
+
setInternalValue(newValue || "");
|
|
45
|
+
onChange == null ? void 0 : onChange({
|
|
46
|
+
target: { value: newValue }
|
|
47
|
+
});
|
|
48
|
+
setInputIsChanging(false);
|
|
49
|
+
}, debounceTimeout);
|
|
50
|
+
} else {
|
|
51
|
+
const newValue = type === "number" && value === "" ? null : value;
|
|
52
|
+
setInternalValue(newValue || "");
|
|
53
|
+
onChange == null ? void 0 : onChange({
|
|
54
|
+
target: { value: newValue }
|
|
55
|
+
});
|
|
56
|
+
setInputIsChanging(false);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[debounceTimeout, type, onChange]
|
|
60
|
+
);
|
|
61
|
+
const handleClear = () => {
|
|
62
|
+
setInternalValue("");
|
|
63
|
+
onChange == null ? void 0 : onChange({
|
|
64
|
+
target: { value: type === "number" ? null : "" }
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
"input",
|
|
70
|
+
{
|
|
71
|
+
type,
|
|
72
|
+
value: internalValue,
|
|
73
|
+
onChange: handleDebouncedChange,
|
|
74
|
+
className: cn(
|
|
75
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 " + (clearable && !disabled && !!internalValue ? " pr-10 " : " pr-3 ") + " text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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-80 disabled:border-opacity-100 md:text-sm",
|
|
76
|
+
className
|
|
77
|
+
),
|
|
78
|
+
ref,
|
|
79
|
+
disabled,
|
|
80
|
+
...props
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
inputIsChanging === true && /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground", children: /* @__PURE__ */ jsx(
|
|
84
|
+
SpinnerIcon,
|
|
85
|
+
{
|
|
86
|
+
icon: /* @__PURE__ */ jsx(LoaderCircle, { size: 25, className: "text-muted-foreground" })
|
|
87
|
+
}
|
|
88
|
+
) }),
|
|
89
|
+
!!internalValue && clearable && !disabled && /* @__PURE__ */ jsxs(
|
|
90
|
+
Button,
|
|
91
|
+
{
|
|
92
|
+
type: "button",
|
|
93
|
+
variant: "ghost",
|
|
94
|
+
size: "icon",
|
|
95
|
+
className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",
|
|
96
|
+
onClick: handleClear,
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" }),
|
|
99
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Clear input" })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] });
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
Input.displayName = "Input";
|
|
107
|
+
export {
|
|
108
|
+
Input as I,
|
|
109
|
+
LoaderCircle as L
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=input-Cm_FjJOF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-Cm_FjJOF.js","sources":["../node_modules/lucide-react/dist/esm/icons/loader-circle.js","../lib/components/ui/input.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]\n]);\n\nexport { LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","import * as React from \"react\";\r\nimport { cn } from \"../..//utils/utils\";\r\nimport { Button } from \"./button\";\r\nimport { LoaderCircleIcon, X } from \"lucide-react\";\r\nimport SpinnerIcon from \"../SpinnerIcon\";\r\n\r\ninterface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {\r\n debounceTimeout?: number;\r\n clearable?: boolean;\r\n}\r\nconst Input = React.forwardRef<HTMLInputElement, IInputProps>(\r\n (\r\n {\r\n className,\r\n type,\r\n value: propValue,\r\n onChange,\r\n clearable = false,\r\n debounceTimeout,\r\n disabled,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n const [internalValue, setInternalValue] = React.useState(propValue || \"\");\r\n const debounceTimeoutRef = React.useRef<NodeJS.Timeout | null>(null); // Ref to hold the debounce timeout\r\n const [inputIsChanging, setInputIsChanging] = React.useState(false);\r\n\r\n React.useEffect(() => {\r\n setInternalValue(propValue ?? \"\");\r\n }, [propValue]);\r\n\r\n const handleDebouncedChange = React.useCallback(\r\n (e: React.ChangeEvent<HTMLInputElement>) => {\r\n const { value } = e.target;\r\n setInternalValue(value); // Update local state\r\n setInputIsChanging(true);\r\n\r\n if (debounceTimeout) {\r\n // Clear any previous debounce timeout\r\n if (debounceTimeoutRef.current)\r\n clearTimeout(debounceTimeoutRef.current);\r\n\r\n // Set a new debounce timeout\r\n debounceTimeoutRef.current = setTimeout(() => {\r\n const newValue: string | null =\r\n type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }, debounceTimeout);\r\n } else {\r\n const newValue = type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }\r\n },\r\n [debounceTimeout, type, onChange]\r\n );\r\n\r\n const handleClear = () => {\r\n setInternalValue(\"\");\r\n onChange?.({\r\n target: { value: type === \"number\" ? null : \"\" },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n };\r\n\r\n return (\r\n <div className=\"relative w-full\">\r\n <input\r\n type={type}\r\n value={internalValue}\r\n onChange={handleDebouncedChange}\r\n className={cn(\r\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 \" +\r\n (clearable && !disabled && !!internalValue\r\n ? \" pr-10 \"\r\n : \" pr-3 \") +\r\n \" text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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-80 disabled:border-opacity-100 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n disabled={disabled}\r\n {...props}\r\n />\r\n\r\n {inputIsChanging === true && (\r\n <div className=\"absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground\">\r\n <SpinnerIcon\r\n icon={\r\n <LoaderCircleIcon size={25} className=\"text-muted-foreground\" />\r\n }\r\n />\r\n </div>\r\n )}\r\n {!!internalValue && clearable && !disabled && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n size=\"icon\"\r\n className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\r\n onClick={handleClear}\r\n >\r\n <X className=\"h-4 w-4 text-muted-foreground\" />\r\n <span className=\"sr-only\">Clear input</span>\r\n </Button>\r\n )}\r\n </div>\r\n );\r\n }\r\n);\r\nInput.displayName = \"Input\";\r\n\r\nexport { Input };\r\n"],"names":["LoaderCircleIcon"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,eAAe,iBAAiB,gBAAgB;AAAA,EACpD,CAAC,QAAQ,EAAE,GAAG,+BAA+B,KAAK,SAAQ,CAAE;AAC9D,CAAC;ACDD,MAAM,QAAQ,MAAM;AAAA,EAClB,CACE;AAAA,IACE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AAAA,QAAA;AAAA,UACC;AAAA,UACA,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,YACT,8EACG,aAAa,CAAC,YAAY,CAAC,CAAC,gBACzB,YACA,YACJ;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACC,GAAG;AAAA,QAAA;AAAA,MACN;AAAA,MAEC,oBAAoB,QAClB,oBAAA,OAAA,EAAI,WAAU,sFACb,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MACG,oBAAAA,cAAA,EAAiB,MAAM,IAAI,WAAU,yBAAwB;AAAA,QAAA;AAAA,MAAA,GAGpE;AAAA,MAED,CAAC,CAAC,iBAAiB,aAAa,CAAC,YAChC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS;AAAA,UAET,UAAA;AAAA,YAAC,oBAAA,GAAA,EAAE,WAAU,gCAAgC,CAAA;AAAA,YAC5C,oBAAA,QAAA,EAAK,WAAU,WAAU,UAAW,eAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACvC;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;AACA,MAAM,cAAc;","x_google_ignoreList":[0]}
|
package/dist/main.js
CHANGED
|
@@ -35,9 +35,9 @@ import { hasRightInModule } from "./utils/hasRightInModule.js";
|
|
|
35
35
|
import { hasRole } from "./utils/hasRole.js";
|
|
36
36
|
import { EApproverRoles, EApproverTypes, EDecisionsTranslations, EEntity, Eagendy, Eassignments, Estavy } from "./types.js";
|
|
37
37
|
import { useScreenSize } from "./hooks/useScreenSize.js";
|
|
38
|
-
import { D, c, e, i, g, f, b, a, h, d } from "./Dialog-
|
|
38
|
+
import { D, c, e, i, g, f, b, a, h, d } from "./Dialog-BmQoVu5C.js";
|
|
39
39
|
import { ScrollArea, ScrollBar } from "./components/ui/ScrollArea.js";
|
|
40
|
-
import {
|
|
40
|
+
import { I } from "./input-Cm_FjJOF.js";
|
|
41
41
|
import { Form, FormControl, FormDescription, FormFieldCN, FormItem, FormLabel, FormMessage, useFormField } from "./components/ui/form.js";
|
|
42
42
|
import { RadioGroupCN, RadioGroupItem } from "./components/ui/radioGroup.js";
|
|
43
43
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.js";
|
|
@@ -108,7 +108,7 @@ export {
|
|
|
108
108
|
FormItem,
|
|
109
109
|
FormLabel,
|
|
110
110
|
FormMessage,
|
|
111
|
-
Input,
|
|
111
|
+
I as Input,
|
|
112
112
|
default6 as InputField,
|
|
113
113
|
Modal,
|
|
114
114
|
ModalDialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-DpJhfyvx.js","sources":["../node_modules/@radix-ui/react-popover/dist/index.mjs","../lib/components/ui/popover.tsx"],"sourcesContent":["\"use client\";\n\n// packages/react/popover/src/Popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\r\n\r\nimport { cn } from \"../../utils/utils\";\r\n\r\nconst Popover = PopoverPrimitive.Root;\r\n\r\nconst PopoverTrigger = PopoverPrimitive.Trigger;\r\n\r\nconst PopoverContent = React.forwardRef<\r\n React.ElementRef<typeof PopoverPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\r\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\r\n <PopoverPrimitive.Portal>\r\n <PopoverPrimitive.Content\r\n ref={ref}\r\n align={align}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n \"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\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n </PopoverPrimitive.Portal>\r\n));\r\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\r\n\r\nexport { Popover, PopoverTrigger, PopoverContent };\r\n"],"names":["Popover","PopperPrimitive.Root","PopperPrimitive.Anchor","PopoverTrigger","PortalPrimitive","PopoverContent","RemoveScroll","PopperPrimitive.Content","PopperPrimitive.Arrow","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Portal","PopoverPrimitive.Content"],"mappings":";;;;;;;;;;;;;AAqBA,IAAI,eAAe;AACnB,IAAI,CAAC,sBAAsB,kBAAkB,IAAI,mBAAmB,cAAc;AAAA,EAChF;AACF,CAAC;AACD,IAAI,iBAAiB,kBAAiB;AACtC,IAAI,CAAC,iBAAiB,iBAAiB,IAAI,qBAAqB,YAAY;AAC5E,IAAIA,YAAU,CAAC,UAAU;AACvB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACT,IAAG;AACJ,QAAM,cAAc,eAAe,cAAc;AACjD,QAAM,aAAa,MAAM,OAAO,IAAI;AACpC,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,MAAM,SAAS,KAAK;AAClE,QAAM,CAAC,OAAO,OAAO,OAAO,IAAI,qBAAqB;AAAA,IACnD,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,EACd,CAAG;AACD,SAAuB,oBAAIC,SAAsB,EAAE,GAAG,aAAa,UAA0B;AAAA,IAC3F;AAAA,IACA;AA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AAS,MAAM;AACtB,SAAO,OAAO,SAAS;AACzB;AACA,IAAI,QAAQR;AAEZ,IAAI,UAAUG;AACd,IAAI,SAAS;AACb,IAAI,WAAWE;AClSf,MAAM,UAAUI;AAEhB,MAAM,iBAAiBC;AAEvB,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,MAAM,GAAG,QAC3D,oBAAAC,QAAA,EACC,UAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,EAAA;AACN,EAAA,CACF,CACD;AACD,eAAe,cAAcA,SAAyB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"popover-DpJhfyvx.js","sources":["../node_modules/@radix-ui/react-popover/dist/index.mjs","../lib/components/ui/popover.tsx"],"sourcesContent":["\"use client\";\n\n// packages/react/popover/src/Popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\r\n\r\nimport { cn } from \"../../utils/utils\";\r\n\r\nconst Popover = PopoverPrimitive.Root;\r\n\r\nconst PopoverTrigger = PopoverPrimitive.Trigger;\r\n\r\nconst PopoverContent = React.forwardRef<\r\n React.ElementRef<typeof PopoverPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\r\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\r\n <PopoverPrimitive.Portal>\r\n <PopoverPrimitive.Content\r\n ref={ref}\r\n align={align}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n \"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\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n </PopoverPrimitive.Portal>\r\n));\r\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\r\n\r\nexport { Popover, PopoverTrigger, PopoverContent };\r\n"],"names":["Popover","PopperPrimitive.Root","PopperPrimitive.Anchor","PopoverTrigger","PortalPrimitive","PopoverContent","RemoveScroll","PopperPrimitive.Content","PopperPrimitive.Arrow","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Portal","PopoverPrimitive.Content"],"mappings":";;;;;;;;;;;;;AAqBA,IAAI,eAAe;AACnB,IAAI,CAAC,sBAAsB,kBAAkB,IAAI,mBAAmB,cAAc;AAAA,EAChF;AACF,CAAC;AACD,IAAI,iBAAiB,kBAAiB;AACtC,IAAI,CAAC,iBAAiB,iBAAiB,IAAI,qBAAqB,YAAY;AAC5E,IAAIA,YAAU,CAAC,UAAU;AACvB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACT,IAAG;AACJ,QAAM,cAAc,eAAe,cAAc;AACjD,QAAM,aAAa,MAAM,OAAO,IAAI;AACpC,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,MAAM,SAAS,KAAK;AAClE,QAAM,CAAC,OAAO,OAAO,OAAO,IAAI,qBAAqB;AAAA,IACnD,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,EACd,CAAG;AACD,SAAuB,oBAAIC,SAAsB,EAAE,GAAG,aAAa,UAA0B;AAAA,IAC3F;AAAA,IACA;AAAA,MACE,OAAO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