@schandlergarcia/sf-web-components 1.1.2 → 1.1.4
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/components/library/cards/ListCard.js +15 -15
- package/dist/components/library/cards/TableCard.js +22 -22
- package/dist/components/library/cards/TableCard.js.map +1 -1
- package/dist/components/library/cards/WidgetCard.js +4 -4
- package/dist/components/library/charts/D3Chart.js.map +1 -1
- package/dist/components/library/data/DataModeProvider.js +9 -9
- package/dist/components/library/data/DataModeProvider.js.map +1 -1
- package/dist/components/library/index.d.ts +17 -4
- package/dist/components/library/theme/AppThemeProvider.js +4 -4
- package/dist/components/library/theme/AppThemeProvider.js.map +1 -1
- package/dist/components/library/ui/Avatar.js +8 -8
- package/dist/components/library/ui/BreadcrumbExtras.d.ts +9 -0
- package/dist/components/library/ui/BreadcrumbExtras.js +109 -0
- package/dist/components/library/ui/BreadcrumbExtras.js.map +1 -0
- package/dist/components/library/ui/Card.d.ts +37 -11
- package/dist/components/library/ui/FieldGroup.d.ts +5 -0
- package/dist/components/library/ui/FieldGroup.js +19 -0
- package/dist/components/library/ui/FieldGroup.js.map +1 -0
- package/dist/components/library/ui/PaginationExtras.d.ts +11 -0
- package/dist/components/library/ui/PaginationExtras.js +138 -0
- package/dist/components/library/ui/PaginationExtras.js.map +1 -0
- package/dist/components/library/ui/alert.d.ts +21 -10
- package/dist/components/library/ui/alert.js +51 -56
- package/dist/components/library/ui/alert.js.map +1 -1
- package/dist/components/library/ui/card.js +72 -55
- package/dist/components/library/ui/card.js.map +1 -1
- package/dist/components/library/ui/checkbox.d.ts +4 -4
- package/dist/components/library/ui/checkbox.js +14 -26
- package/dist/components/library/ui/checkbox.js.map +1 -1
- package/dist/components/library/ui/collapsible.d.ts +5 -4
- package/dist/components/library/ui/collapsible.js +18 -24
- package/dist/components/library/ui/collapsible.js.map +1 -1
- package/dist/components/library/ui/datePicker.d.ts +10 -18
- package/dist/components/library/ui/datePicker.js +18 -85
- package/dist/components/library/ui/datePicker.js.map +1 -1
- package/dist/components/library/ui/dialog.d.ts +5 -7
- package/dist/components/library/ui/dialog.js +94 -108
- package/dist/components/library/ui/dialog.js.map +1 -1
- package/dist/components/library/ui/field.d.ts +6 -25
- package/dist/components/library/ui/field.js +52 -184
- package/dist/components/library/ui/field.js.map +1 -1
- package/dist/components/library/ui/label.d.ts +6 -4
- package/dist/components/library/ui/label.js +12 -15
- package/dist/components/library/ui/label.js.map +1 -1
- package/dist/components/library/ui/popover.d.ts +3 -7
- package/dist/components/library/ui/popover.js +24 -28
- package/dist/components/library/ui/popover.js.map +1 -1
- package/dist/components/library/ui/select.d.ts +5 -12
- package/dist/components/library/ui/select.js +79 -155
- package/dist/components/library/ui/select.js.map +1 -1
- package/dist/index.js +227 -153
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +25 -23
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +252 -257
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,163 +1,237 @@
|
|
|
1
1
|
import { cn as o } from "./lib/utils.js";
|
|
2
2
|
import { default as a, useThemeMode as f } from "./components/library/theme/AppThemeProvider.js";
|
|
3
3
|
import { default as d } from "./components/library/ui/UIButton.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { default as
|
|
25
|
-
import {
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import {
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import {
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import {
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import {
|
|
4
|
+
import { default as s } from "./components/library/ui/UIInput.js";
|
|
5
|
+
import { default as u } from "./components/library/ui/Text.js";
|
|
6
|
+
import { default as x } from "./components/library/ui/Container.js";
|
|
7
|
+
import { default as g } from "./components/library/ui/Chip.js";
|
|
8
|
+
import { default as c } from "./components/library/ui/Avatar.js";
|
|
9
|
+
import { default as S } from "./components/library/ui/EmptyState.js";
|
|
10
|
+
import { default as D } from "./components/library/ui/Spinner.js";
|
|
11
|
+
import { default as H } from "./components/library/ui/Label.js";
|
|
12
|
+
import { default as h } from "./components/library/ui/Checkbox.js";
|
|
13
|
+
import { default as F } from "./components/library/ui/FieldGroup.js";
|
|
14
|
+
import { Card as M, CardContent as k, CardDescription as y, CardFooter as A, CardHeader as v, CardTitle as L, default as w } from "./components/library/ui/Card.js";
|
|
15
|
+
import { Alert as K, AlertAction as R, AlertDescription as G, AlertTitle as V } from "./components/library/ui/Alert.js";
|
|
16
|
+
import { Dialog as N, DialogClose as O, DialogContent as j, DialogDescription as q, DialogFooter as z, DialogHeader as J, DialogOverlay as Q, DialogPortal as X, DialogTitle as Y, DialogTrigger as Z } from "./components/library/ui/Dialog.js";
|
|
17
|
+
import { Field as $, FieldDescription as ee, FieldError as re, FieldLabel as oe } from "./components/library/ui/Field.js";
|
|
18
|
+
import { Select as ae, SelectContent as fe, SelectItem as le, SelectTrigger as de, SelectValue as pe } from "./components/library/ui/Select.js";
|
|
19
|
+
import { Collapsible as me, CollapsibleContent as ue, CollapsibleTrigger as ie } from "./components/library/ui/Collapsible.js";
|
|
20
|
+
import { Popover as ne, PopoverContent as ge, PopoverTrigger as Ce } from "./components/library/ui/Popover.js";
|
|
21
|
+
import { DatePicker as Ie, DatePickerCalendar as Se, DatePickerContent as Ue, DatePickerRangeTrigger as De, DatePickerTrigger as Pe } from "./components/library/ui/DatePicker.js";
|
|
22
|
+
import { Breadcrumb as Te, BreadcrumbEllipsis as he, BreadcrumbItem as Be, BreadcrumbLink as Fe, BreadcrumbList as be, BreadcrumbPage as Me, BreadcrumbSeparator as ke } from "./components/library/ui/BreadcrumbExtras.js";
|
|
23
|
+
import { PaginationContent as Ae, PaginationEllipsis as ve, PaginationItem as Le, PaginationLink as we, PaginationNext as Ee, PaginationPrevious as Ke } from "./components/library/ui/PaginationExtras.js";
|
|
24
|
+
import { default as Ge } from "./components/library/cards/BaseCard.js";
|
|
25
|
+
import { default as We } from "./components/library/cards/ChartCard.js";
|
|
26
|
+
import { default as Oe } from "./components/library/cards/ListCard.js";
|
|
27
|
+
import { default as qe } from "./components/library/cards/MetricCard.js";
|
|
28
|
+
import { default as Je } from "./components/library/cards/SectionCard.js";
|
|
29
|
+
import { default as Xe } from "./components/library/cards/StatusCard.js";
|
|
30
|
+
import { default as Ze } from "./components/library/cards/TableCard.js";
|
|
31
|
+
import { default as $e } from "./components/library/cards/WidgetCard.js";
|
|
32
|
+
import { default as rr } from "./components/library/cards/FeedPanel.js";
|
|
33
|
+
import { default as tr } from "./components/library/cards/ActivityCard.js";
|
|
34
|
+
import { default as fr } from "./components/library/cards/MetricsStrip.js";
|
|
35
|
+
import { default as dr } from "./components/library/cards/CalloutCard.js";
|
|
36
|
+
import { default as sr } from "./components/library/cards/ActionList.js";
|
|
37
|
+
import { default as ur } from "./components/library/charts/D3Chart.js";
|
|
38
|
+
import { D3ChartTemplates as xr } from "./components/library/charts/D3ChartTemplates.js";
|
|
39
|
+
import { default as gr } from "./components/library/charts/GeoMap.js";
|
|
40
|
+
import { default as cr } from "./components/library/layout/PageContainer.js";
|
|
41
|
+
import { default as Sr } from "./components/library/skeletons/CardSkeleton.js";
|
|
42
|
+
import { default as Dr } from "./components/library/forms/FormModal.js";
|
|
43
|
+
import { default as Hr } from "./components/library/forms/FormRenderer.js";
|
|
44
|
+
import { default as hr } from "./components/library/forms/FormSection.js";
|
|
45
|
+
import { default as Fr } from "./components/library/forms/FormField.js";
|
|
46
|
+
import { default as Mr } from "./components/library/forms/useFormState.js";
|
|
47
|
+
import { default as yr } from "./components/library/filters/FilterBar.js";
|
|
48
|
+
import { default as vr } from "./components/library/filters/SearchFilter.js";
|
|
49
|
+
import { default as wr } from "./components/library/filters/SelectFilter.js";
|
|
50
|
+
import { default as Kr } from "./components/library/filters/ToggleFilter.js";
|
|
51
|
+
import { default as Gr, useDataMode as Vr } from "./components/library/data/DataModeProvider.js";
|
|
52
|
+
import { default as Nr } from "./components/library/data/DataModeToggle.js";
|
|
53
|
+
import { default as jr } from "./components/library/data/useDataSource.js";
|
|
54
|
+
import { default as zr } from "./components/library/data/usePageFilters.js";
|
|
55
|
+
import { applyFilters as Qr, filterByDateRange as Xr, filterBySearch as Yr, filterByToggle as Zr, filterByValue as _r, sortByKey as $r } from "./components/library/data/filterUtils.js";
|
|
56
|
+
import { default as ro } from "./components/library/chat/ChatPanel.js";
|
|
57
|
+
import { default as to } from "./components/library/chat/ChatBar.js";
|
|
58
|
+
import { default as fo } from "./components/library/chat/ChatMessageList.js";
|
|
59
|
+
import { default as po } from "./components/library/chat/ChatMessage.js";
|
|
60
|
+
import { default as mo } from "./components/library/chat/ChatInput.js";
|
|
61
|
+
import { default as io } from "./components/library/chat/ChatTypingIndicator.js";
|
|
62
|
+
import { default as no } from "./components/library/chat/ChatSuggestions.js";
|
|
63
|
+
import { default as Co } from "./components/library/chat/ChatToolCall.js";
|
|
64
|
+
import { default as Io } from "./components/library/chat/ChatWelcome.js";
|
|
65
|
+
import { default as Uo } from "./components/library/chat/useChatState.js";
|
|
66
|
+
import { default as Po } from "./components/library/heroui/Button.js";
|
|
67
|
+
import { default as To } from "./components/library/heroui/Input.js";
|
|
68
|
+
import { default as Bo } from "./components/library/heroui/Card.js";
|
|
69
|
+
import { default as bo } from "./components/library/heroui/Toggle.js";
|
|
70
|
+
import { default as ko } from "./components/library/heroui/Tabs.js";
|
|
71
|
+
import { default as Ao } from "./components/library/heroui/Accordion.js";
|
|
72
|
+
import { default as Lo } from "./components/library/heroui/Breadcrumbs.js";
|
|
73
|
+
import { default as Eo } from "./components/library/heroui/Separator.js";
|
|
74
|
+
import { default as Ro } from "./components/library/heroui/Pagination.js";
|
|
75
|
+
import { default as Vo } from "./components/library/heroui/Drawer.js";
|
|
76
|
+
import { default as No } from "./components/library/heroui/Modal.js";
|
|
77
|
+
import { default as jo } from "./components/library/heroui/Dropdown.js";
|
|
78
|
+
import { default as zo } from "./components/library/heroui/Tooltip.js";
|
|
79
|
+
import { default as Qo } from "./components/library/heroui/Toast.js";
|
|
80
|
+
import { default as Yo } from "./components/library/heroui/Alert.js";
|
|
81
|
+
import { default as _o } from "./components/library/heroui/Badge.js";
|
|
82
|
+
import { default as et } from "./components/library/heroui/ProgressBar.js";
|
|
83
|
+
import { default as ot } from "./components/library/heroui/ProgressCircle.js";
|
|
84
|
+
import { default as at } from "./components/library/heroui/Meter.js";
|
|
85
|
+
import { default as lt } from "./components/library/heroui/Skeleton.js";
|
|
86
|
+
import { default as pt } from "./components/library/heroui/Select.js";
|
|
87
|
+
import { default as mt } from "./components/library/heroui/Kbd.js";
|
|
88
|
+
import { default as it } from "./components/library/heroui/ScrollShadow.js";
|
|
89
|
+
import { Breadcrumbs as nt, Kbd as gt, Pagination as Ct, ScrollShadow as ct, Separator as It, Skeleton as St } from "@heroui/react";
|
|
77
90
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
sr as ActionList,
|
|
92
|
+
tr as ActivityCard,
|
|
93
|
+
K as Alert,
|
|
94
|
+
R as AlertAction,
|
|
95
|
+
G as AlertDescription,
|
|
96
|
+
V as AlertTitle,
|
|
80
97
|
a as AppThemeProvider,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
98
|
+
c as Avatar,
|
|
99
|
+
Ge as BaseCard,
|
|
100
|
+
Te as Breadcrumb,
|
|
101
|
+
he as BreadcrumbEllipsis,
|
|
102
|
+
Be as BreadcrumbItem,
|
|
103
|
+
Fe as BreadcrumbLink,
|
|
104
|
+
be as BreadcrumbList,
|
|
105
|
+
Me as BreadcrumbPage,
|
|
106
|
+
ke as BreadcrumbSeparator,
|
|
107
|
+
nt as Breadcrumbs,
|
|
108
|
+
dr as CalloutCard,
|
|
109
|
+
M as Card,
|
|
110
|
+
k as CardContent,
|
|
111
|
+
y as CardDescription,
|
|
112
|
+
A as CardFooter,
|
|
113
|
+
v as CardHeader,
|
|
114
|
+
Sr as CardSkeleton,
|
|
115
|
+
L as CardTitle,
|
|
116
|
+
We as ChartCard,
|
|
117
|
+
to as ChatBar,
|
|
118
|
+
mo as ChatInput,
|
|
119
|
+
po as ChatMessage,
|
|
120
|
+
fo as ChatMessageList,
|
|
121
|
+
ro as ChatPanel,
|
|
122
|
+
no as ChatSuggestions,
|
|
123
|
+
Co as ChatToolCall,
|
|
124
|
+
io as ChatTypingIndicator,
|
|
125
|
+
Io as ChatWelcome,
|
|
126
|
+
h as Checkbox,
|
|
127
|
+
me as Collapsible,
|
|
128
|
+
ue as CollapsibleContent,
|
|
129
|
+
ie as CollapsibleTrigger,
|
|
130
|
+
ur as D3Chart,
|
|
131
|
+
xr as D3ChartTemplates,
|
|
132
|
+
Gr as DataModeProvider,
|
|
133
|
+
Nr as DataModeToggle,
|
|
134
|
+
Ie as DatePicker,
|
|
135
|
+
Se as DatePickerCalendar,
|
|
136
|
+
Ue as DatePickerContent,
|
|
137
|
+
De as DatePickerRangeTrigger,
|
|
138
|
+
Pe as DatePickerTrigger,
|
|
139
|
+
N as Dialog,
|
|
140
|
+
O as DialogClose,
|
|
141
|
+
j as DialogContent,
|
|
142
|
+
q as DialogDescription,
|
|
143
|
+
z as DialogFooter,
|
|
144
|
+
J as DialogHeader,
|
|
145
|
+
Q as DialogOverlay,
|
|
146
|
+
X as DialogPortal,
|
|
147
|
+
Y as DialogTitle,
|
|
148
|
+
Z as DialogTrigger,
|
|
149
|
+
S as EmptyState,
|
|
150
|
+
rr as FeedPanel,
|
|
151
|
+
$ as Field,
|
|
152
|
+
ee as FieldDescription,
|
|
153
|
+
re as FieldError,
|
|
154
|
+
F as FieldGroup,
|
|
155
|
+
oe as FieldLabel,
|
|
156
|
+
yr as FilterBar,
|
|
157
|
+
Fr as FormField,
|
|
158
|
+
Dr as FormModal,
|
|
159
|
+
Hr as FormRenderer,
|
|
160
|
+
hr as FormSection,
|
|
161
|
+
gr as GeoMap,
|
|
162
|
+
Ao as HeroUIAccordion,
|
|
163
|
+
Yo as HeroUIAlert,
|
|
164
|
+
_o as HeroUIBadge,
|
|
165
|
+
Lo as HeroUIBreadcrumbs,
|
|
166
|
+
Po as HeroUIButton,
|
|
167
|
+
Bo as HeroUICard,
|
|
168
|
+
Vo as HeroUIDrawer,
|
|
169
|
+
jo as HeroUIDropdown,
|
|
170
|
+
To as HeroUIInput,
|
|
171
|
+
mt as HeroUIKbd,
|
|
172
|
+
at as HeroUIMeter,
|
|
173
|
+
No as HeroUIModal,
|
|
174
|
+
Ro as HeroUIPagination,
|
|
175
|
+
et as HeroUIProgressBar,
|
|
176
|
+
ot as HeroUIProgressCircle,
|
|
177
|
+
it as HeroUIScrollShadow,
|
|
178
|
+
pt as HeroUISelect,
|
|
179
|
+
Eo as HeroUISeparator,
|
|
180
|
+
lt as HeroUISkeleton,
|
|
181
|
+
ko as HeroUITabs,
|
|
182
|
+
Qo as HeroUIToast,
|
|
183
|
+
bo as HeroUIToggle,
|
|
184
|
+
zo as HeroUITooltip,
|
|
185
|
+
gt as Kbd,
|
|
186
|
+
H as Label,
|
|
187
|
+
Oe as ListCard,
|
|
188
|
+
qe as MetricCard,
|
|
189
|
+
fr as MetricsStrip,
|
|
190
|
+
cr as PageContainer,
|
|
191
|
+
Ct as Pagination,
|
|
192
|
+
Ae as PaginationContent,
|
|
193
|
+
ve as PaginationEllipsis,
|
|
194
|
+
Le as PaginationItem,
|
|
195
|
+
we as PaginationLink,
|
|
196
|
+
Ee as PaginationNext,
|
|
197
|
+
Ke as PaginationPrevious,
|
|
198
|
+
ne as Popover,
|
|
199
|
+
ge as PopoverContent,
|
|
200
|
+
Ce as PopoverTrigger,
|
|
201
|
+
ct as ScrollShadow,
|
|
202
|
+
vr as SearchFilter,
|
|
203
|
+
Je as SectionCard,
|
|
204
|
+
ae as Select,
|
|
205
|
+
fe as SelectContent,
|
|
206
|
+
wr as SelectFilter,
|
|
207
|
+
le as SelectItem,
|
|
208
|
+
de as SelectTrigger,
|
|
209
|
+
pe as SelectValue,
|
|
210
|
+
It as Separator,
|
|
211
|
+
St as Skeleton,
|
|
212
|
+
D as Spinner,
|
|
213
|
+
Xe as StatusCard,
|
|
214
|
+
Ze as TableCard,
|
|
215
|
+
Kr as ToggleFilter,
|
|
143
216
|
d as UIButton,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
217
|
+
w as UICard,
|
|
218
|
+
g as UIChip,
|
|
219
|
+
x as UIContainer,
|
|
220
|
+
s as UIInput,
|
|
221
|
+
u as UIText,
|
|
222
|
+
$e as WidgetCard,
|
|
223
|
+
Qr as applyFilters,
|
|
150
224
|
o as cn,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
225
|
+
Xr as filterByDateRange,
|
|
226
|
+
Yr as filterBySearch,
|
|
227
|
+
Zr as filterByToggle,
|
|
228
|
+
_r as filterByValue,
|
|
229
|
+
$r as sortByKey,
|
|
230
|
+
Uo as useChatState,
|
|
231
|
+
Vr as useDataMode,
|
|
232
|
+
jr as useDataSource,
|
|
233
|
+
Mr as useFormState,
|
|
234
|
+
zr as usePageFilters,
|
|
161
235
|
f as useThemeMode
|
|
162
236
|
};
|
|
163
237
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { composeEventHandlers as
|
|
3
|
-
import { createContextScope as
|
|
4
|
-
import { useControllableState as
|
|
5
|
-
import { useLayoutEffect as
|
|
6
|
-
import { useComposedRefs as
|
|
2
|
+
import { composeEventHandlers as T } from "../../primitive/dist/index.js";
|
|
3
|
+
import { createContextScope as S } from "../node_modules/@radix-ui/react-context/dist/index.js";
|
|
4
|
+
import { useControllableState as D } from "../../react-use-controllable-state/dist/index.js";
|
|
5
|
+
import { useLayoutEffect as L } from "../../react-use-layout-effect/dist/index.js";
|
|
6
|
+
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
7
7
|
import { Primitive as v } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
8
|
-
import { Presence as
|
|
9
|
-
import { useId as
|
|
8
|
+
import { Presence as k } from "../../react-presence/dist/index.js";
|
|
9
|
+
import { useId as F } from "../../react-id/dist/index.js";
|
|
10
10
|
import { jsx as c } from "react/jsx-runtime";
|
|
11
|
-
var u = "Collapsible", [
|
|
11
|
+
var u = "Collapsible", [B] = S(u), [G, g] = B(u), w = o.forwardRef(
|
|
12
12
|
(e, a) => {
|
|
13
13
|
const {
|
|
14
14
|
__scopeCollapsible: i,
|
|
@@ -17,18 +17,18 @@ var u = "Collapsible", [k] = O(u), [F, g] = k(u), w = o.forwardRef(
|
|
|
17
17
|
disabled: l,
|
|
18
18
|
onOpenChange: s,
|
|
19
19
|
...m
|
|
20
|
-
} = e, [p, d] =
|
|
20
|
+
} = e, [p, d] = D({
|
|
21
21
|
prop: r,
|
|
22
22
|
defaultProp: t ?? !1,
|
|
23
23
|
onChange: s,
|
|
24
24
|
caller: u
|
|
25
25
|
});
|
|
26
26
|
return /* @__PURE__ */ c(
|
|
27
|
-
|
|
27
|
+
G,
|
|
28
28
|
{
|
|
29
29
|
scope: i,
|
|
30
30
|
disabled: l,
|
|
31
|
-
contentId:
|
|
31
|
+
contentId: F(),
|
|
32
32
|
open: p,
|
|
33
33
|
onOpenToggle: o.useCallback(() => d((C) => !C), [d]),
|
|
34
34
|
children: /* @__PURE__ */ c(
|
|
@@ -45,7 +45,7 @@ var u = "Collapsible", [k] = O(u), [F, g] = k(u), w = o.forwardRef(
|
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
w.displayName = u;
|
|
48
|
-
var A = "CollapsibleTrigger",
|
|
48
|
+
var A = "CollapsibleTrigger", I = o.forwardRef(
|
|
49
49
|
(e, a) => {
|
|
50
50
|
const { __scopeCollapsible: i, ...r } = e, t = g(A, i);
|
|
51
51
|
return /* @__PURE__ */ c(
|
|
@@ -59,25 +59,25 @@ var A = "CollapsibleTrigger", B = o.forwardRef(
|
|
|
59
59
|
disabled: t.disabled,
|
|
60
60
|
...r,
|
|
61
61
|
ref: a,
|
|
62
|
-
onClick:
|
|
62
|
+
onClick: T(e.onClick, t.onOpenToggle)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
|
|
68
|
-
var R = "CollapsibleContent",
|
|
67
|
+
I.displayName = A;
|
|
68
|
+
var R = "CollapsibleContent", O = o.forwardRef(
|
|
69
69
|
(e, a) => {
|
|
70
70
|
const { forceMount: i, ...r } = e, t = g(R, e.__scopeCollapsible);
|
|
71
|
-
return /* @__PURE__ */ c(
|
|
71
|
+
return /* @__PURE__ */ c(k, { present: i || t.open, children: ({ present: l }) => /* @__PURE__ */ c($, { ...r, ref: a, present: l }) });
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
O.displayName = R;
|
|
75
75
|
var $ = o.forwardRef((e, a) => {
|
|
76
|
-
const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [m, p] = o.useState(r), d = o.useRef(null), C =
|
|
76
|
+
const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [m, p] = o.useState(r), d = o.useRef(null), C = M(a, d), y = o.useRef(0), x = y.current, N = o.useRef(0), P = N.current, b = s.open || m, _ = o.useRef(b), f = o.useRef(void 0);
|
|
77
77
|
return o.useEffect(() => {
|
|
78
78
|
const n = requestAnimationFrame(() => _.current = !1);
|
|
79
79
|
return () => cancelAnimationFrame(n);
|
|
80
|
-
}, []),
|
|
80
|
+
}, []), L(() => {
|
|
81
81
|
const n = d.current;
|
|
82
82
|
if (n) {
|
|
83
83
|
f.current = f.current || {
|
|
@@ -108,11 +108,13 @@ var $ = o.forwardRef((e, a) => {
|
|
|
108
108
|
function h(e) {
|
|
109
109
|
return e ? "open" : "closed";
|
|
110
110
|
}
|
|
111
|
-
var W = w;
|
|
111
|
+
var W = w, X = I, Y = O;
|
|
112
112
|
export {
|
|
113
113
|
w as Collapsible,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
O as CollapsibleContent,
|
|
115
|
+
I as CollapsibleTrigger,
|
|
116
|
+
Y as Content,
|
|
117
|
+
W as Root,
|
|
118
|
+
X as Trigger
|
|
117
119
|
};
|
|
118
120
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","children","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root"],"mappings":";;;;;;;;;;AAaA,IAAIA,IAAmB,eACnB,CAACC,CAAgD,IAAIC,EAAmBF,CAAgB,GACxF,CAACG,GAAqBC,CAAqB,IAAIH,EAAyBD,CAAgB,GACxFK,IAAcC,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM;AAAA,MACJ,oBAAAC;AAAA,MACA,MAAMC;AAAA,MACN,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,cAAAC;AAAA,MACA,GAAGC;AAAA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MAAM,qBAAqB,MAChCA,EAAK,MAAM,gBAAgB;AAC3B,YAAMC,IAAOD,EAAK,sBAAqB;AACvC,MAAAT,EAAU,UAAUU,EAAK,QACzBR,EAAS,UAAUQ,EAAK,OACnBL,EAA6B,YAChCI,EAAK,MAAM,qBAAqBH,EAAkB,QAAQ,oBAC1DG,EAAK,MAAM,gBAAgBH,EAAkB,QAAQ,gBAEvDV,EAAaJ,CAAO;AAAA,IACtB;AAAA,EACF,GAAG,CAACP,EAAQ,MAAMO,CAAO,CAAC,GACH,gBAAAf;AAAA,IACrBG,EAAU;AAAA,IACV;AAAA,MACE,cAAcC,EAASI,EAAQ,IAAI;AAAA,MACnC,iBAAiBA,EAAQ,WAAW,KAAK;AAAA,MACzC,IAAIA,EAAQ;AAAA,MACZ,QAAQ,CAACmB;AAAA,MACT,GAAGd;AAAA,MACH,KAAKQ;AAAA,MACL,OAAO;AAAA,QACJ,sCAAuCG,IAAS,GAAGA,CAAM,OAAO;AAAA,QAChE,qCAAsCE,IAAQ,GAAGA,CAAK,OAAO;AAAA,QAC9D,GAAGrC,EAAM;AAAA,MACjB;AAAA,MACM,UAAUsC,KAAUV;AAAA,IAC1B;AAAA,EACA;AACA,CAAC;AACD,SAASb,EAASP,GAAM;AACtB,SAAOA,IAAO,SAAS;AACzB;AACG,IAACqC,IAAO/C;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","children","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root","Trigger","Content"],"mappings":";;;;;;;;;;AAaA,IAAIA,IAAmB,eACnB,CAACC,CAAgD,IAAIC,EAAmBF,CAAgB,GACxF,CAACG,GAAqBC,CAAqB,IAAIH,EAAyBD,CAAgB,GACxFK,IAAcC,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM;AAAA,MACJ,oBAAAC;AAAA,MACA,MAAMC;AAAA,MACN,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,cAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQP,GACE,CAACQ,GAAMC,CAAO,IAAIC,EAAqB;AAAA,MAC3C,MAAMP;AAAA,MACN,aAAaC,KAAe;AAAA,MAC5B,UAAUE;AAAA,MACV,QAAQb;AAAA,IACd,CAAK;AACD,WAAuB,gBAAAkB;AAAA,MACrBf;AAAA,MACA;AAAA,QACE,OAAOM;AAAA,QACP,UAAAG;AAAA,QACA,WAAWO,EAAK;AAAA,QAChB,MAAAJ;AAAA,QACA,cAAcT,EAAM,YAAY,MAAMU,EAAQ,CAACI,MA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