@helloimkostya/konsolpro-custom-ui-mini 0.0.402 → 0.0.404
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/lib/index-mini.js +2264 -1276
- package/package.json +1 -1
- package/styles/fonts.css +11 -0
- package/styles/konsolpro-custom-ui.css +1 -1
- package/styles/variables.css +0 -127
- package/types/index-mini.d.ts +3 -0
package/lib/index-mini.js
CHANGED
|
@@ -1,432 +1,434 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return r;
|
|
12
|
-
}, N = (r, e) => Fe(r, ze(e));
|
|
13
|
-
var k = (r, e) => {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var a in r)
|
|
16
|
-
ie.call(r, a) && e.indexOf(a) < 0 && (t[a] = r[a]);
|
|
17
|
-
if (r != null && Z)
|
|
18
|
-
for (var a of Z(r))
|
|
19
|
-
e.indexOf(a) < 0 && se.call(r, a) && (t[a] = r[a]);
|
|
1
|
+
var Ct = Object.defineProperty, Dt = Object.defineProperties;
|
|
2
|
+
var St = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var We = Object.getOwnPropertySymbols;
|
|
4
|
+
var lt = Object.prototype.hasOwnProperty, ct = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var dt = (t, e, r) => e in t ? Ct(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e) => {
|
|
6
|
+
for (var r in e || (e = {}))
|
|
7
|
+
lt.call(e, r) && dt(t, r, e[r]);
|
|
8
|
+
if (We)
|
|
9
|
+
for (var r of We(e))
|
|
10
|
+
ct.call(e, r) && dt(t, r, e[r]);
|
|
20
11
|
return t;
|
|
12
|
+
}, D = (t, e) => Dt(t, St(e));
|
|
13
|
+
var E = (t, e) => {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var a in t)
|
|
16
|
+
lt.call(t, a) && e.indexOf(a) < 0 && (r[a] = t[a]);
|
|
17
|
+
if (t != null && We)
|
|
18
|
+
for (var a of We(t))
|
|
19
|
+
e.indexOf(a) < 0 && ct.call(t, a) && (r[a] = t[a]);
|
|
20
|
+
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var m = (t, e, r) => new Promise((a, n) => {
|
|
23
|
+
var s = (u) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
} catch (
|
|
27
|
-
|
|
25
|
+
d(r.next(u));
|
|
26
|
+
} catch (h) {
|
|
27
|
+
n(h);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, l = (u) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
32
|
-
} catch (
|
|
33
|
-
|
|
31
|
+
d(r.throw(u));
|
|
32
|
+
} catch (h) {
|
|
33
|
+
n(h);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, d = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(s, l);
|
|
36
|
+
d((r = r.apply(t, e)).next());
|
|
37
37
|
});
|
|
38
|
-
import { jsx as
|
|
39
|
-
import
|
|
40
|
-
import { Slot as
|
|
41
|
-
import { cva as
|
|
42
|
-
import { clsx as
|
|
43
|
-
import { twMerge as
|
|
44
|
-
import * as
|
|
45
|
-
import * as
|
|
46
|
-
import * as
|
|
47
|
-
import * as
|
|
48
|
-
import * as
|
|
49
|
-
import * as
|
|
50
|
-
import { toast as
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
import { jsx as o, jsxs as S, Fragment as Ze } from "react/jsx-runtime";
|
|
39
|
+
import N, { lazy as Tt, Suspense as Rt, useState as Ne, useMemo as J, useCallback as Et, createElement as Ft, useRef as oe, useEffect as Re, useImperativeHandle as At } from "react";
|
|
40
|
+
import { Slot as Ue } from "@radix-ui/react-slot";
|
|
41
|
+
import { cva as ie } from "class-variance-authority";
|
|
42
|
+
import { clsx as Lt } from "clsx";
|
|
43
|
+
import { twMerge as Mt } from "tailwind-merge";
|
|
44
|
+
import * as ut from "@radix-ui/react-checkbox";
|
|
45
|
+
import * as _e from "@radix-ui/react-radio-group";
|
|
46
|
+
import * as Ve from "@radix-ui/react-switch";
|
|
47
|
+
import * as V from "@radix-ui/react-select";
|
|
48
|
+
import * as Q from "@radix-ui/react-dialog";
|
|
49
|
+
import * as me from "@radix-ui/react-tooltip";
|
|
50
|
+
import { toast as B, Toaster as Wt } from "sonner";
|
|
51
|
+
import { flexRender as pt, useReactTable as _t, getSortedRowModel as zt, getCoreRowModel as Bt } from "@tanstack/react-table";
|
|
52
|
+
import * as Ee from "@radix-ui/react-popover";
|
|
53
|
+
function g(...t) {
|
|
54
|
+
return Mt(Lt(t));
|
|
53
55
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
56
|
-
return { default: (yield
|
|
56
|
+
function f(t) {
|
|
57
|
+
return Tt(() => m(null, null, function* () {
|
|
58
|
+
return { default: (yield t()).ReactComponent };
|
|
57
59
|
}));
|
|
58
60
|
}
|
|
59
|
-
const
|
|
60
|
-
UnfoldIcon:
|
|
61
|
+
const Pt = {
|
|
62
|
+
UnfoldIcon: f(() => m(null, null, function* () {
|
|
61
63
|
return import("../chunks/unfold-icon-S3J7xXHf.js");
|
|
62
64
|
})),
|
|
63
|
-
CallIcon:
|
|
65
|
+
CallIcon: f(() => m(null, null, function* () {
|
|
64
66
|
return import("../chunks/call-icon-DslHaQOP.js");
|
|
65
67
|
})),
|
|
66
|
-
SettingsIcon:
|
|
68
|
+
SettingsIcon: f(() => m(null, null, function* () {
|
|
67
69
|
return import("../chunks/settings-icon-D_wgjUsM.js");
|
|
68
70
|
})),
|
|
69
|
-
DoneIcon:
|
|
71
|
+
DoneIcon: f(() => m(null, null, function* () {
|
|
70
72
|
return import("../chunks/done-icon-BZEAL7mI.js");
|
|
71
73
|
})),
|
|
72
|
-
CreditCardIcon:
|
|
74
|
+
CreditCardIcon: f(() => m(null, null, function* () {
|
|
73
75
|
return import("../chunks/credit-card-icon-DS1ckDU7.js");
|
|
74
76
|
})),
|
|
75
|
-
OpenInFullIcon:
|
|
77
|
+
OpenInFullIcon: f(() => m(null, null, function* () {
|
|
76
78
|
return import("../chunks/open-in-full-icon-DzhRd5Mx.js");
|
|
77
79
|
})),
|
|
78
|
-
AccountBalanceIcon:
|
|
79
|
-
() =>
|
|
80
|
+
AccountBalanceIcon: f(
|
|
81
|
+
() => m(null, null, function* () {
|
|
80
82
|
return import("../chunks/account-balance-icon-CKxx1j3X.js");
|
|
81
83
|
})
|
|
82
84
|
),
|
|
83
|
-
DownloadIcon:
|
|
85
|
+
DownloadIcon: f(() => m(null, null, function* () {
|
|
84
86
|
return import("../chunks/download-icon-BvWPcT7W.js");
|
|
85
87
|
})),
|
|
86
|
-
HomeIcon:
|
|
88
|
+
HomeIcon: f(() => m(null, null, function* () {
|
|
87
89
|
return import("../chunks/home-icon-Mag5Wxqq.js");
|
|
88
90
|
})),
|
|
89
|
-
MailIcon:
|
|
91
|
+
MailIcon: f(() => m(null, null, function* () {
|
|
90
92
|
return import("../chunks/mail-icon-DCZPsZFE.js");
|
|
91
93
|
})),
|
|
92
|
-
OpenInNewIcon:
|
|
94
|
+
OpenInNewIcon: f(() => m(null, null, function* () {
|
|
93
95
|
return import("../chunks/open-in-new-icon-A7MgnnyP.js");
|
|
94
96
|
})),
|
|
95
|
-
SupportIcon:
|
|
97
|
+
SupportIcon: f(() => m(null, null, function* () {
|
|
96
98
|
return import("../chunks/support-icon-CBHKGKq8.js");
|
|
97
99
|
})),
|
|
98
|
-
BusinessCenterIcon:
|
|
99
|
-
() =>
|
|
100
|
+
BusinessCenterIcon: f(
|
|
101
|
+
() => m(null, null, function* () {
|
|
100
102
|
return import("../chunks/business-center-icon-C5X-e-6I.js");
|
|
101
103
|
})
|
|
102
104
|
),
|
|
103
|
-
WorkIcon:
|
|
105
|
+
WorkIcon: f(() => m(null, null, function* () {
|
|
104
106
|
return import("../chunks/work-icon-D7I-74Mk.js");
|
|
105
107
|
})),
|
|
106
|
-
ArrowBackIcon:
|
|
108
|
+
ArrowBackIcon: f(() => m(null, null, function* () {
|
|
107
109
|
return import("../chunks/arrow-back-icon-C_VwBDNK.js");
|
|
108
110
|
})),
|
|
109
|
-
SendIcon:
|
|
111
|
+
SendIcon: f(() => m(null, null, function* () {
|
|
110
112
|
return import("../chunks/send-icon-BTztERTu.js");
|
|
111
113
|
})),
|
|
112
|
-
DeleteIcon:
|
|
114
|
+
DeleteIcon: f(() => m(null, null, function* () {
|
|
113
115
|
return import("../chunks/delete-icon-Bk1ZmhBo.js");
|
|
114
116
|
})),
|
|
115
|
-
ArrowBackIOSIcon:
|
|
116
|
-
() =>
|
|
117
|
+
ArrowBackIOSIcon: f(
|
|
118
|
+
() => m(null, null, function* () {
|
|
117
119
|
return import("../chunks/arrow-back-ios-icon-CB5K_mmJ.js");
|
|
118
120
|
})
|
|
119
121
|
),
|
|
120
|
-
SearchIcon:
|
|
122
|
+
SearchIcon: f(() => m(null, null, function* () {
|
|
121
123
|
return import("../chunks/search-icon-CortrXrC.js");
|
|
122
124
|
})),
|
|
123
|
-
InfoIcon:
|
|
125
|
+
InfoIcon: f(() => m(null, null, function* () {
|
|
124
126
|
return import("../chunks/info-icon-BcUNe5kE.js");
|
|
125
127
|
})),
|
|
126
|
-
PersonIcon:
|
|
128
|
+
PersonIcon: f(() => m(null, null, function* () {
|
|
127
129
|
return import("../chunks/person-icon-Bo5NxPRQ.js");
|
|
128
130
|
})),
|
|
129
|
-
CloseIcon:
|
|
131
|
+
CloseIcon: f(() => m(null, null, function* () {
|
|
130
132
|
return import("../chunks/close-icon-CtbXesC0.js");
|
|
131
133
|
})),
|
|
132
|
-
AddCircleIcon:
|
|
134
|
+
AddCircleIcon: f(() => m(null, null, function* () {
|
|
133
135
|
return import("../chunks/add-circle-icon-D3XpY2oT.js");
|
|
134
136
|
})),
|
|
135
|
-
InventoryIcon:
|
|
137
|
+
InventoryIcon: f(() => m(null, null, function* () {
|
|
136
138
|
return import("../chunks/inventory-icon-CFV8amBs.js");
|
|
137
139
|
})),
|
|
138
|
-
BookIcon:
|
|
140
|
+
BookIcon: f(() => m(null, null, function* () {
|
|
139
141
|
return import("../chunks/book-icon-BdaCKIQB.js");
|
|
140
142
|
})),
|
|
141
|
-
RefreshIcon:
|
|
143
|
+
RefreshIcon: f(() => m(null, null, function* () {
|
|
142
144
|
return import("../chunks/refresh-icon-ac1oOwX8.js");
|
|
143
145
|
})),
|
|
144
|
-
ArrowDownIcon:
|
|
146
|
+
ArrowDownIcon: f(() => m(null, null, function* () {
|
|
145
147
|
return import("../chunks/arrow-down-icon-DFvg75P7.js");
|
|
146
148
|
})),
|
|
147
|
-
ArrowUpIcon:
|
|
149
|
+
ArrowUpIcon: f(() => m(null, null, function* () {
|
|
148
150
|
return import("../chunks/arrow-up-icon-DU7VVzN8.js");
|
|
149
151
|
})),
|
|
150
|
-
ArrowRightIcon:
|
|
152
|
+
ArrowRightIcon: f(() => m(null, null, function* () {
|
|
151
153
|
return import("../chunks/arrow-right-icon-Bnx7GHux.js");
|
|
152
154
|
})),
|
|
153
|
-
ArrowLeftIcon:
|
|
155
|
+
ArrowLeftIcon: f(() => m(null, null, function* () {
|
|
154
156
|
return import("../chunks/arrow-left-icon-8yWT42A8.js");
|
|
155
157
|
})),
|
|
156
|
-
ArrowForwardIcon:
|
|
158
|
+
ArrowForwardIcon: f(() => m(null, null, function* () {
|
|
157
159
|
return import("../chunks/arrow-forward-icon-BI4dm_L2.js");
|
|
158
160
|
})),
|
|
159
|
-
BoltIcon:
|
|
161
|
+
BoltIcon: f(() => m(null, null, function* () {
|
|
160
162
|
return import("../chunks/bolt-icon-CJsvLlL-.js");
|
|
161
163
|
})),
|
|
162
|
-
LogoutIcon:
|
|
164
|
+
LogoutIcon: f(() => m(null, null, function* () {
|
|
163
165
|
return import("../chunks/logout-icon-DN86wp7N.js");
|
|
164
166
|
})),
|
|
165
|
-
ProgressActivityIcon:
|
|
166
|
-
() =>
|
|
167
|
+
ProgressActivityIcon: f(
|
|
168
|
+
() => m(null, null, function* () {
|
|
167
169
|
return import("../chunks/progress-activity-icon-YbJGzvxH.js");
|
|
168
170
|
})
|
|
169
171
|
),
|
|
170
|
-
AutorenewIcon:
|
|
172
|
+
AutorenewIcon: f(() => m(null, null, function* () {
|
|
171
173
|
return import("../chunks/autorenew-icon-B0bI6Xt-.js");
|
|
172
174
|
})),
|
|
173
|
-
HelpIcon:
|
|
175
|
+
HelpIcon: f(() => m(null, null, function* () {
|
|
174
176
|
return import("../chunks/help-icon-BMdlItds.js");
|
|
175
177
|
})),
|
|
176
|
-
VisibilityOnIcon:
|
|
178
|
+
VisibilityOnIcon: f(() => m(null, null, function* () {
|
|
177
179
|
return import("../chunks/visibility-on-icon-C9VmKsvX.js");
|
|
178
180
|
})),
|
|
179
|
-
RemoveIcon:
|
|
181
|
+
RemoveIcon: f(() => m(null, null, function* () {
|
|
180
182
|
return import("../chunks/remove-icon-CTuoG0Vq.js");
|
|
181
183
|
})),
|
|
182
|
-
AddIcon:
|
|
184
|
+
AddIcon: f(() => m(null, null, function* () {
|
|
183
185
|
return import("../chunks/add-icon-CZXR66VL.js");
|
|
184
186
|
})),
|
|
185
|
-
EditIcon:
|
|
187
|
+
EditIcon: f(() => m(null, null, function* () {
|
|
186
188
|
return import("../chunks/edit-icon-_3venQRC.js");
|
|
187
189
|
})),
|
|
188
|
-
ScenarioIcon:
|
|
190
|
+
ScenarioIcon: f(() => m(null, null, function* () {
|
|
189
191
|
return import("../chunks/scenario-icon-BcnFsqUA.js");
|
|
190
192
|
})),
|
|
191
|
-
NorthEastIcon:
|
|
193
|
+
NorthEastIcon: f(() => m(null, null, function* () {
|
|
192
194
|
return import("../chunks/north-east-icon-Dh7-1BBW.js");
|
|
193
195
|
})),
|
|
194
|
-
MoreVertIcon:
|
|
196
|
+
MoreVertIcon: f(() => m(null, null, function* () {
|
|
195
197
|
return import("../chunks/more-vert-icon-NA1tYTse.js");
|
|
196
198
|
})),
|
|
197
|
-
MenuIcon:
|
|
199
|
+
MenuIcon: f(() => m(null, null, function* () {
|
|
198
200
|
return import("../chunks/menu-icon-DWObHD95.js");
|
|
199
201
|
})),
|
|
200
|
-
CheckCircleIcon:
|
|
202
|
+
CheckCircleIcon: f(() => m(null, null, function* () {
|
|
201
203
|
return import("../chunks/check-circle-icon-BWhJprgU.js");
|
|
202
204
|
})),
|
|
203
|
-
BlockIcon:
|
|
205
|
+
BlockIcon: f(() => m(null, null, function* () {
|
|
204
206
|
return import("../chunks/block-icon-DGlp9c33.js");
|
|
205
207
|
})),
|
|
206
|
-
BoltFillIcon:
|
|
208
|
+
BoltFillIcon: f(() => m(null, null, function* () {
|
|
207
209
|
return import("../chunks/bolt-fill-icon-DZjyKq8N.js");
|
|
208
210
|
})),
|
|
209
|
-
ErrorIcon:
|
|
211
|
+
ErrorIcon: f(() => m(null, null, function* () {
|
|
210
212
|
return import("../chunks/error-icon-CgJ3zr06.js");
|
|
211
213
|
})),
|
|
212
|
-
ErrorFillIcon:
|
|
214
|
+
ErrorFillIcon: f(() => m(null, null, function* () {
|
|
213
215
|
return import("../chunks/error-fill-icon--8j3Zcfq.js");
|
|
214
216
|
})),
|
|
215
|
-
VisibilityOffIcon:
|
|
216
|
-
() =>
|
|
217
|
+
VisibilityOffIcon: f(
|
|
218
|
+
() => m(null, null, function* () {
|
|
217
219
|
return import("../chunks/visibility-off-icon-BA_I97Vw.js");
|
|
218
220
|
})
|
|
219
221
|
),
|
|
220
|
-
PaymentIcon:
|
|
222
|
+
PaymentIcon: f(() => m(null, null, function* () {
|
|
221
223
|
return import("../chunks/payment-icon-C-B7L4WP.js");
|
|
222
224
|
})),
|
|
223
|
-
FilterIcon:
|
|
225
|
+
FilterIcon: f(() => m(null, null, function* () {
|
|
224
226
|
return import("../chunks/filter-icon-D_3_SQsN.js");
|
|
225
227
|
})),
|
|
226
|
-
FullScreenIcon:
|
|
228
|
+
FullScreenIcon: f(() => m(null, null, function* () {
|
|
227
229
|
return import("../chunks/full-screen-icon-Dpl__xtk.js");
|
|
228
230
|
})),
|
|
229
|
-
FullScreenExitIcon:
|
|
230
|
-
() =>
|
|
231
|
+
FullScreenExitIcon: f(
|
|
232
|
+
() => m(null, null, function* () {
|
|
231
233
|
return import("../chunks/full-screen-exit-icon-BHwq-9P-.js");
|
|
232
234
|
})
|
|
233
235
|
),
|
|
234
|
-
MoreHorizIcon:
|
|
236
|
+
MoreHorizIcon: f(() => m(null, null, function* () {
|
|
235
237
|
return import("../chunks/more-horiz-icon-CSK7Ackl.js");
|
|
236
238
|
})),
|
|
237
|
-
GroupIcon:
|
|
239
|
+
GroupIcon: f(() => m(null, null, function* () {
|
|
238
240
|
return import("../chunks/group-icon-BfSRHuvp.js");
|
|
239
241
|
})),
|
|
240
|
-
DocumentIcon:
|
|
242
|
+
DocumentIcon: f(() => m(null, null, function* () {
|
|
241
243
|
return import("../chunks/document-icon-DcmQhRhY.js");
|
|
242
244
|
})),
|
|
243
|
-
ListIcon:
|
|
245
|
+
ListIcon: f(() => m(null, null, function* () {
|
|
244
246
|
return import("../chunks/list-icon-ChePCGxK.js");
|
|
245
247
|
})),
|
|
246
|
-
AttachFileIcon:
|
|
248
|
+
AttachFileIcon: f(() => m(null, null, function* () {
|
|
247
249
|
return import("../chunks/attach-file-icon-OrT7tthI.js");
|
|
248
250
|
})),
|
|
249
|
-
LocationIcon:
|
|
251
|
+
LocationIcon: f(() => m(null, null, function* () {
|
|
250
252
|
return import("../chunks/location-icon-Bf9Wbg65.js");
|
|
251
253
|
})),
|
|
252
|
-
UploadIcon:
|
|
254
|
+
UploadIcon: f(() => m(null, null, function* () {
|
|
253
255
|
return import("../chunks/upload-icon-CwzthQEL.js");
|
|
254
256
|
})),
|
|
255
|
-
PageInfoIcon:
|
|
257
|
+
PageInfoIcon: f(() => m(null, null, function* () {
|
|
256
258
|
return import("../chunks/page-info-icon-BiVNFu71.js");
|
|
257
259
|
})),
|
|
258
|
-
SegmentIcon:
|
|
260
|
+
SegmentIcon: f(() => m(null, null, function* () {
|
|
259
261
|
return import("../chunks/segment-icon-Bzm7cziF.js");
|
|
260
262
|
})),
|
|
261
|
-
CopyIcon:
|
|
263
|
+
CopyIcon: f(() => m(null, null, function* () {
|
|
262
264
|
return import("../chunks/copy-icon-BWyncDVB.js");
|
|
263
265
|
})),
|
|
264
|
-
InfoFillIcon:
|
|
266
|
+
InfoFillIcon: f(() => m(null, null, function* () {
|
|
265
267
|
return import("../chunks/info-fill-icon-BzE09Xg8.js");
|
|
266
268
|
})),
|
|
267
|
-
ManageAccountsIcon:
|
|
268
|
-
() =>
|
|
269
|
+
ManageAccountsIcon: f(
|
|
270
|
+
() => m(null, null, function* () {
|
|
269
271
|
return import("../chunks/manage-accounts-icon-BkyuUTj3.js");
|
|
270
272
|
})
|
|
271
273
|
),
|
|
272
|
-
FlagIcon:
|
|
274
|
+
FlagIcon: f(() => m(null, null, function* () {
|
|
273
275
|
return import("../chunks/flag-icon-DmWEp4ya.js");
|
|
274
276
|
})),
|
|
275
|
-
CalendarIcon:
|
|
277
|
+
CalendarIcon: f(() => m(null, null, function* () {
|
|
276
278
|
return import("../chunks/calendar-icon-B1cogiSd.js");
|
|
277
279
|
})),
|
|
278
|
-
PincodeIcon:
|
|
280
|
+
PincodeIcon: f(() => m(null, null, function* () {
|
|
279
281
|
return import("../chunks/pincode-icon-BA-e4pBH.js");
|
|
280
282
|
})),
|
|
281
|
-
OutgoingMailIcon:
|
|
283
|
+
OutgoingMailIcon: f(() => m(null, null, function* () {
|
|
282
284
|
return import("../chunks/outgoing-main-icon-BAH2vddG.js");
|
|
283
285
|
})),
|
|
284
|
-
TimeIcon:
|
|
286
|
+
TimeIcon: f(() => m(null, null, function* () {
|
|
285
287
|
return import("../chunks/time-icon-DsWMo47L.js");
|
|
286
288
|
})),
|
|
287
|
-
SmsIcon:
|
|
289
|
+
SmsIcon: f(() => m(null, null, function* () {
|
|
288
290
|
return import("../chunks/sms-icon-4p-ON5VX.js");
|
|
289
291
|
})),
|
|
290
|
-
TelegrammIcon:
|
|
292
|
+
TelegrammIcon: f(() => m(null, null, function* () {
|
|
291
293
|
return import("../chunks/telegramm-icon-C2ZR2jdg.js");
|
|
292
294
|
})),
|
|
293
|
-
BillsWarningIcon:
|
|
295
|
+
BillsWarningIcon: f(() => m(null, null, function* () {
|
|
294
296
|
return import("../chunks/bills-warning-icon-CNgWvumi.js");
|
|
295
297
|
})),
|
|
296
|
-
BillsInProgressIcon:
|
|
297
|
-
() =>
|
|
298
|
+
BillsInProgressIcon: f(
|
|
299
|
+
() => m(null, null, function* () {
|
|
298
300
|
return import("../chunks/bills-in-progress-icon-RVEtPz7l.js");
|
|
299
301
|
})
|
|
300
302
|
),
|
|
301
|
-
BillsIcon:
|
|
303
|
+
BillsIcon: f(() => m(null, null, function* () {
|
|
302
304
|
return import("../chunks/bills-icon-BU_adAs0.js");
|
|
303
305
|
})),
|
|
304
|
-
BillsErrorIcon:
|
|
306
|
+
BillsErrorIcon: f(() => m(null, null, function* () {
|
|
305
307
|
return import("../chunks/bills-error-icon-CcDGUJrx.js");
|
|
306
308
|
})),
|
|
307
|
-
BillWarningIcon:
|
|
309
|
+
BillWarningIcon: f(() => m(null, null, function* () {
|
|
308
310
|
return import("../chunks/bill-warning-icon-3Y-dONd_.js");
|
|
309
311
|
})),
|
|
310
|
-
BillInProgressIcon:
|
|
311
|
-
() =>
|
|
312
|
+
BillInProgressIcon: f(
|
|
313
|
+
() => m(null, null, function* () {
|
|
312
314
|
return import("../chunks/bill-in-progress-icon-BTsO5Mh5.js");
|
|
313
315
|
})
|
|
314
316
|
),
|
|
315
|
-
BillIcon:
|
|
317
|
+
BillIcon: f(() => m(null, null, function* () {
|
|
316
318
|
return import("../chunks/bill-icon-Cw2GE_VB.js");
|
|
317
319
|
})),
|
|
318
|
-
BillErrorIcon:
|
|
320
|
+
BillErrorIcon: f(() => m(null, null, function* () {
|
|
319
321
|
return import("../chunks/bill-error-icon-q8_KROAY.js");
|
|
320
322
|
})),
|
|
321
|
-
AndroidIcon:
|
|
323
|
+
AndroidIcon: f(() => m(null, null, function* () {
|
|
322
324
|
return import("../chunks/android-icon-6SCGu50U.js");
|
|
323
325
|
})),
|
|
324
|
-
AppleIcon:
|
|
326
|
+
AppleIcon: f(() => m(null, null, function* () {
|
|
325
327
|
return import("../chunks/apple-icon-yya6O1xg.js");
|
|
326
328
|
})),
|
|
327
|
-
ZoomInIcon:
|
|
329
|
+
ZoomInIcon: f(() => m(null, null, function* () {
|
|
328
330
|
return import("../chunks/zoom-in-icon-ZWEJANob.js");
|
|
329
331
|
})),
|
|
330
|
-
ZoomOutIcon:
|
|
332
|
+
ZoomOutIcon: f(() => m(null, null, function* () {
|
|
331
333
|
return import("../chunks/zoom-out-icon-CeFz3G6V.js");
|
|
332
334
|
})),
|
|
333
|
-
SaveIcon:
|
|
335
|
+
SaveIcon: f(() => m(null, null, function* () {
|
|
334
336
|
return import("../chunks/save-icon-DnF5revo.js");
|
|
335
337
|
})),
|
|
336
|
-
WalletIcon:
|
|
338
|
+
WalletIcon: f(() => m(null, null, function* () {
|
|
337
339
|
return import("../chunks/wallet-icon-D0r9bDRg.js");
|
|
338
340
|
})),
|
|
339
|
-
PlayIcon:
|
|
341
|
+
PlayIcon: f(() => m(null, null, function* () {
|
|
340
342
|
return import("../chunks/play-icon-Bnj3hsIf.js");
|
|
341
343
|
})),
|
|
342
|
-
SberIdIcon:
|
|
344
|
+
SberIdIcon: f(() => m(null, null, function* () {
|
|
343
345
|
return import("../chunks/sberid-icon-DgQtjRjD.js");
|
|
344
346
|
})),
|
|
345
|
-
TinkoffIdIcon:
|
|
347
|
+
TinkoffIdIcon: f(() => m(null, null, function* () {
|
|
346
348
|
return import("../chunks/tinkoffid-icon-DN9XKuNA.js");
|
|
347
349
|
})),
|
|
348
|
-
CookieIcon:
|
|
350
|
+
CookieIcon: f(() => m(null, null, function* () {
|
|
349
351
|
return import("../chunks/cookie-DJ-U7h-A.js");
|
|
350
352
|
})),
|
|
351
|
-
ThumbsUpIcon:
|
|
353
|
+
ThumbsUpIcon: f(() => m(null, null, function* () {
|
|
352
354
|
return import("../chunks/thumbs-up-icon-BArjyDfk.js");
|
|
353
355
|
})),
|
|
354
|
-
CheckCircleFillIcon:
|
|
355
|
-
() =>
|
|
356
|
+
CheckCircleFillIcon: f(
|
|
357
|
+
() => m(null, null, function* () {
|
|
356
358
|
return import("../chunks/check-circle-fill-ne1MhahL.js");
|
|
357
359
|
})
|
|
358
360
|
),
|
|
359
|
-
CancelFillIcon:
|
|
361
|
+
CancelFillIcon: f(() => m(null, null, function* () {
|
|
360
362
|
return import("../chunks/cancel-fill-DPYenlCk.js");
|
|
361
363
|
})),
|
|
362
|
-
TrendingUpIcon:
|
|
364
|
+
TrendingUpIcon: f(() => m(null, null, function* () {
|
|
363
365
|
return import("../chunks/trending-up-icon-IEwGHi9c.js");
|
|
364
366
|
})),
|
|
365
|
-
TrendingDownIcon:
|
|
367
|
+
TrendingDownIcon: f(() => m(null, null, function* () {
|
|
366
368
|
return import("../chunks/trending-down-icon-DlHKI37F.js");
|
|
367
369
|
})),
|
|
368
|
-
PersonAddIcon:
|
|
370
|
+
PersonAddIcon: f(() => m(null, null, function* () {
|
|
369
371
|
return import("../chunks/person-add-C-3pZhgM.js");
|
|
370
372
|
})),
|
|
371
|
-
PersonSearchIcon:
|
|
373
|
+
PersonSearchIcon: f(() => m(null, null, function* () {
|
|
372
374
|
return import("../chunks/person-search-icon-CwVm_XAL.js");
|
|
373
375
|
})),
|
|
374
|
-
LinkIcon:
|
|
376
|
+
LinkIcon: f(() => m(null, null, function* () {
|
|
375
377
|
return import("../chunks/link-icon-BUAymb0P.js");
|
|
376
378
|
})),
|
|
377
|
-
FileSuccessIcon:
|
|
379
|
+
FileSuccessIcon: f(() => m(null, null, function* () {
|
|
378
380
|
return import("../chunks/file-success-icon-BTk5SYAM.js");
|
|
379
381
|
})),
|
|
380
|
-
FileErrorIcon:
|
|
382
|
+
FileErrorIcon: f(() => m(null, null, function* () {
|
|
381
383
|
return import("../chunks/file-error-icon-630wBy1K.js");
|
|
382
384
|
})),
|
|
383
|
-
ShieldIcon:
|
|
385
|
+
ShieldIcon: f(() => m(null, null, function* () {
|
|
384
386
|
return import("../chunks/shield-icon-BwpxkU5E.js");
|
|
385
387
|
})),
|
|
386
|
-
StatisticIcon:
|
|
388
|
+
StatisticIcon: f(() => m(null, null, function* () {
|
|
387
389
|
return import("../chunks/statistic-icon-mhqUxTDv.js");
|
|
388
390
|
})),
|
|
389
|
-
DontDisturbIcon:
|
|
391
|
+
DontDisturbIcon: f(() => m(null, null, function* () {
|
|
390
392
|
return import("../chunks/dont-disturb-o1xt1TeU.js");
|
|
391
393
|
})),
|
|
392
|
-
WhatsAppIcon:
|
|
394
|
+
WhatsAppIcon: f(() => m(null, null, function* () {
|
|
393
395
|
return import("../chunks/whats-app-icon-XbrqQF8U.js");
|
|
394
396
|
})),
|
|
395
|
-
MaxIcon:
|
|
397
|
+
MaxIcon: f(() => m(null, null, function* () {
|
|
396
398
|
return import("../chunks/max-icon-CTdBEAt8.js");
|
|
397
399
|
})),
|
|
398
|
-
SettingsBackupRestoreIcon:
|
|
399
|
-
() =>
|
|
400
|
+
SettingsBackupRestoreIcon: f(
|
|
401
|
+
() => m(null, null, function* () {
|
|
400
402
|
return import("../chunks/settings-backup-restore-icon-DUrmFxtk.js");
|
|
401
403
|
})
|
|
402
404
|
),
|
|
403
|
-
PauseCircleIcon:
|
|
405
|
+
PauseCircleIcon: f(() => m(null, null, function* () {
|
|
404
406
|
return import("../chunks/pause-circle-icon-Dpio-qM3.js");
|
|
405
407
|
})),
|
|
406
|
-
BellIcon:
|
|
408
|
+
BellIcon: f(() => m(null, null, function* () {
|
|
407
409
|
return import("../chunks/bell-icon-L-Ynt5XK.js");
|
|
408
410
|
}))
|
|
409
411
|
};
|
|
410
|
-
function
|
|
411
|
-
icon:
|
|
412
|
+
function P({
|
|
413
|
+
icon: t,
|
|
412
414
|
style: e,
|
|
413
|
-
className:
|
|
415
|
+
className: r,
|
|
414
416
|
size: a = 16
|
|
415
417
|
}) {
|
|
416
|
-
const
|
|
417
|
-
return
|
|
418
|
+
const n = Pt[t];
|
|
419
|
+
return n ? /* @__PURE__ */ o(
|
|
418
420
|
"div",
|
|
419
421
|
{
|
|
420
422
|
"data-ui-icon": !0,
|
|
421
|
-
style:
|
|
423
|
+
style: D(w({}, e), {
|
|
422
424
|
fontSize: a
|
|
423
425
|
}),
|
|
424
|
-
className:
|
|
425
|
-
children: /* @__PURE__ */
|
|
426
|
+
className: g("inline-flex items-center justify-center", r),
|
|
427
|
+
children: /* @__PURE__ */ o(Rt, { fallback: null, children: /* @__PURE__ */ o(n, {}) })
|
|
426
428
|
}
|
|
427
429
|
) : null;
|
|
428
430
|
}
|
|
429
|
-
const
|
|
431
|
+
const mt = ie("", {
|
|
430
432
|
variants: {
|
|
431
433
|
variant: {
|
|
432
434
|
h0: "text-[28px] leading-[32px] font-bold m-0 font-graphik",
|
|
@@ -460,16 +462,16 @@ const ce = W("", {
|
|
|
460
462
|
textColor: "default",
|
|
461
463
|
weight: "normal"
|
|
462
464
|
}
|
|
463
|
-
}),
|
|
464
|
-
(u,
|
|
465
|
-
var
|
|
466
|
-
className:
|
|
465
|
+
}), O = N.forwardRef(
|
|
466
|
+
(u, d) => {
|
|
467
|
+
var h = u, {
|
|
468
|
+
className: t,
|
|
467
469
|
variant: e,
|
|
468
|
-
textColor:
|
|
470
|
+
textColor: r,
|
|
469
471
|
weight: a,
|
|
470
|
-
as:
|
|
471
|
-
copyable:
|
|
472
|
-
} =
|
|
472
|
+
as: n = "div",
|
|
473
|
+
copyable: s
|
|
474
|
+
} = h, l = E(h, [
|
|
473
475
|
"className",
|
|
474
476
|
"variant",
|
|
475
477
|
"textColor",
|
|
@@ -477,90 +479,90 @@ const ce = W("", {
|
|
|
477
479
|
"as",
|
|
478
480
|
"copyable"
|
|
479
481
|
]);
|
|
480
|
-
const [
|
|
481
|
-
(
|
|
482
|
-
var
|
|
483
|
-
if (!
|
|
482
|
+
const [i, p] = Ne(!1), b = J(() => s ? typeof s == "boolean" ? {} : s : null, [s]), x = Et(
|
|
483
|
+
(y) => m(null, null, function* () {
|
|
484
|
+
var k, T, F, L, M;
|
|
485
|
+
if (!b)
|
|
484
486
|
return;
|
|
485
|
-
|
|
486
|
-
const
|
|
487
|
+
y.preventDefault(), y.stopPropagation(), y.nativeEvent.stopImmediatePropagation();
|
|
488
|
+
const I = (F = (T = b.text) != null ? T : (k = y.currentTarget.textContent) == null ? void 0 : k.trim()) != null ? F : "";
|
|
487
489
|
try {
|
|
488
|
-
yield navigator.clipboard.writeText(
|
|
489
|
-
} catch (
|
|
490
|
+
yield navigator.clipboard.writeText(I), (L = b.onCopy) == null || L.call(b), p(!0), setTimeout(() => p(!1), (M = b.duration) != null ? M : 1500);
|
|
491
|
+
} catch (z) {
|
|
490
492
|
}
|
|
491
493
|
}),
|
|
492
|
-
[
|
|
494
|
+
[b]
|
|
493
495
|
);
|
|
494
|
-
let
|
|
495
|
-
e && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(e) && !a && (
|
|
496
|
-
const
|
|
497
|
-
return
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
ref:
|
|
496
|
+
let c = a;
|
|
497
|
+
e && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(e) && !a && (c = "bold");
|
|
498
|
+
const v = n;
|
|
499
|
+
return b ? /* @__PURE__ */ S(
|
|
500
|
+
v,
|
|
501
|
+
D(w({
|
|
502
|
+
ref: d,
|
|
501
503
|
role: "button",
|
|
502
504
|
tabIndex: 0,
|
|
503
|
-
onClick:
|
|
504
|
-
className:
|
|
505
|
+
onClick: x,
|
|
506
|
+
className: g(
|
|
505
507
|
"group hover:text-default inline-flex cursor-pointer items-center select-text",
|
|
506
|
-
|
|
508
|
+
mt({
|
|
507
509
|
variant: e,
|
|
508
|
-
textColor:
|
|
509
|
-
weight:
|
|
510
|
-
className:
|
|
510
|
+
textColor: r,
|
|
511
|
+
weight: c,
|
|
512
|
+
className: t
|
|
511
513
|
})
|
|
512
514
|
)
|
|
513
|
-
},
|
|
515
|
+
}, l), {
|
|
514
516
|
children: [
|
|
515
|
-
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
517
|
+
l.children,
|
|
518
|
+
/* @__PURE__ */ o(
|
|
519
|
+
P,
|
|
518
520
|
{
|
|
519
521
|
size: 12,
|
|
520
|
-
icon:
|
|
522
|
+
icon: i ? "CheckCircleFillIcon" : "CopyIcon",
|
|
521
523
|
className: "group-hover:text-default ml-1 inline-flex h-4 w-4 items-center align-middle transition-[visibility,opacity] duration-150 group-hover:visible group-hover:opacity-100 group-focus-visible:visible group-focus-visible:opacity-100 md:invisible md:opacity-0"
|
|
522
524
|
}
|
|
523
525
|
)
|
|
524
526
|
]
|
|
525
527
|
})
|
|
526
|
-
) : /* @__PURE__ */
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
ref:
|
|
530
|
-
className:
|
|
531
|
-
|
|
532
|
-
|
|
528
|
+
) : /* @__PURE__ */ o(
|
|
529
|
+
v,
|
|
530
|
+
w({
|
|
531
|
+
ref: d,
|
|
532
|
+
className: g(
|
|
533
|
+
mt({ variant: e, textColor: r, weight: c }),
|
|
534
|
+
t
|
|
533
535
|
)
|
|
534
|
-
},
|
|
536
|
+
}, l)
|
|
535
537
|
);
|
|
536
538
|
}
|
|
537
539
|
);
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
(
|
|
541
|
-
var R =
|
|
542
|
-
className:
|
|
540
|
+
O.displayName = "Typography";
|
|
541
|
+
const Fe = N.forwardRef(
|
|
542
|
+
(z, M) => {
|
|
543
|
+
var R = z, {
|
|
544
|
+
className: t,
|
|
543
545
|
type: e,
|
|
544
|
-
size:
|
|
546
|
+
size: r = "md",
|
|
545
547
|
icon: a,
|
|
546
|
-
label:
|
|
547
|
-
error:
|
|
548
|
-
caption:
|
|
549
|
-
iconName:
|
|
548
|
+
label: n,
|
|
549
|
+
error: s,
|
|
550
|
+
caption: l,
|
|
551
|
+
iconName: d,
|
|
550
552
|
iconPosition: u = "left",
|
|
551
|
-
fullWidthContainer:
|
|
552
|
-
fullWidth:
|
|
553
|
-
disabled:
|
|
554
|
-
containerClassName:
|
|
555
|
-
inlineSelect:
|
|
556
|
-
prefixContainer:
|
|
557
|
-
autoFocus:
|
|
558
|
-
suffix:
|
|
559
|
-
showErrorMessage:
|
|
560
|
-
onClear:
|
|
561
|
-
value:
|
|
562
|
-
"data-testid":
|
|
563
|
-
} = R,
|
|
553
|
+
fullWidthContainer: h = !0,
|
|
554
|
+
fullWidth: i = !0,
|
|
555
|
+
disabled: p = !1,
|
|
556
|
+
containerClassName: b,
|
|
557
|
+
inlineSelect: x,
|
|
558
|
+
prefixContainer: c,
|
|
559
|
+
autoFocus: v,
|
|
560
|
+
suffix: y,
|
|
561
|
+
showErrorMessage: I = !0,
|
|
562
|
+
onClear: k,
|
|
563
|
+
value: T,
|
|
564
|
+
"data-testid": F
|
|
565
|
+
} = R, L = E(R, [
|
|
564
566
|
"className",
|
|
565
567
|
"type",
|
|
566
568
|
"size",
|
|
@@ -583,126 +585,126 @@ const G = h.forwardRef(
|
|
|
583
585
|
"value",
|
|
584
586
|
"data-testid"
|
|
585
587
|
]);
|
|
586
|
-
const
|
|
587
|
-
return /* @__PURE__ */
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
const Z = T != null && T.toString().length > 0, _ = k && Z && !p;
|
|
589
|
+
return /* @__PURE__ */ S("div", { className: g(h && "w-full"), children: [
|
|
590
|
+
n && /* @__PURE__ */ o(
|
|
591
|
+
O,
|
|
590
592
|
{
|
|
591
593
|
variant: "p3",
|
|
592
594
|
weight: "medium",
|
|
593
|
-
className:
|
|
594
|
-
"text-[14px]":
|
|
595
|
-
"text-[16px]":
|
|
595
|
+
className: g("mb-1.5", {
|
|
596
|
+
"text-[14px]": r === "md",
|
|
597
|
+
"text-[16px]": r === "lg"
|
|
596
598
|
}),
|
|
597
|
-
children:
|
|
599
|
+
children: n
|
|
598
600
|
}
|
|
599
601
|
),
|
|
600
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ S(
|
|
601
603
|
"div",
|
|
602
604
|
{
|
|
603
|
-
className:
|
|
605
|
+
className: g(
|
|
604
606
|
"group relative flex items-center rounded-lg border-1 border-solid",
|
|
605
|
-
|
|
607
|
+
i && "w-full",
|
|
606
608
|
{
|
|
607
|
-
"bg-background border-border hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:hover:border-border disabled:focus-within:border-border disabled:focus-within:shadow-none disabled:hover:border-none": !
|
|
608
|
-
"bg-background border-border":
|
|
609
|
-
"bg-background border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error":
|
|
610
|
-
"h-8":
|
|
611
|
-
"h-10 rounded-xl":
|
|
612
|
-
"bg-muted cursor-not-allowed":
|
|
609
|
+
"bg-background border-border hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:hover:border-border disabled:focus-within:border-border disabled:focus-within:shadow-none disabled:hover:border-none": !p,
|
|
610
|
+
"bg-background border-border": p,
|
|
611
|
+
"bg-background border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": s != null && !p,
|
|
612
|
+
"h-8": r === "md",
|
|
613
|
+
"h-10 rounded-xl": r === "lg",
|
|
614
|
+
"bg-muted cursor-not-allowed": p
|
|
613
615
|
},
|
|
614
|
-
|
|
616
|
+
b
|
|
615
617
|
),
|
|
616
618
|
children: [
|
|
617
|
-
|
|
618
|
-
a && !
|
|
619
|
+
c && /* @__PURE__ */ o("div", { className: "flex items-center pl-1", children: c }),
|
|
620
|
+
a && !d && u === "left" && /* @__PURE__ */ o(
|
|
619
621
|
"div",
|
|
620
622
|
{
|
|
621
|
-
className:
|
|
623
|
+
className: g(
|
|
622
624
|
"group-focus-within:text-foreground text-muted-foreground flex items-center pl-2 transition-colors",
|
|
623
|
-
|
|
625
|
+
s && "!group-focus-within:!text-destructive !text-destructive"
|
|
624
626
|
),
|
|
625
627
|
children: a
|
|
626
628
|
}
|
|
627
629
|
),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
+
d && !a && u === "left" && /* @__PURE__ */ o("div", { className: "flex items-center pl-2", children: /* @__PURE__ */ o(
|
|
631
|
+
P,
|
|
630
632
|
{
|
|
631
|
-
icon:
|
|
632
|
-
className:
|
|
633
|
+
icon: d,
|
|
634
|
+
className: g(
|
|
633
635
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
634
|
-
|
|
636
|
+
s && "!group-focus-within:!text-destructive !text-destructive"
|
|
635
637
|
)
|
|
636
638
|
}
|
|
637
639
|
) }),
|
|
638
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ o(
|
|
639
641
|
"input",
|
|
640
|
-
|
|
642
|
+
w({
|
|
641
643
|
type: e,
|
|
642
|
-
className:
|
|
644
|
+
className: g(
|
|
643
645
|
"font-graphik flex-1 border-0 bg-transparent py-1 focus:outline-none disabled:cursor-not-allowed",
|
|
644
646
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
645
647
|
{
|
|
646
|
-
"w-full":
|
|
648
|
+
"w-full": i,
|
|
647
649
|
"placeholder:text-muted-foreground": !0,
|
|
648
|
-
"text-[14px]":
|
|
649
|
-
"text-[16px]":
|
|
650
|
-
"px-2.5":
|
|
651
|
-
"pl-2": (a ||
|
|
652
|
-
"text-muted-foreground":
|
|
650
|
+
"text-[14px]": r === "md",
|
|
651
|
+
"text-[16px]": r === "lg",
|
|
652
|
+
"px-2.5": r === "md" || r === "lg",
|
|
653
|
+
"pl-2": (a || d) && u === "left" && (r === "md" || r === "lg"),
|
|
654
|
+
"text-muted-foreground": p
|
|
653
655
|
},
|
|
654
|
-
|
|
656
|
+
t
|
|
655
657
|
),
|
|
656
|
-
ref:
|
|
657
|
-
value:
|
|
658
|
-
disabled:
|
|
659
|
-
autoFocus:
|
|
660
|
-
"data-testid":
|
|
661
|
-
},
|
|
658
|
+
ref: M,
|
|
659
|
+
value: T,
|
|
660
|
+
disabled: p,
|
|
661
|
+
autoFocus: v,
|
|
662
|
+
"data-testid": F
|
|
663
|
+
}, L)
|
|
662
664
|
),
|
|
663
|
-
(
|
|
664
|
-
|
|
665
|
-
|
|
665
|
+
(x || a || d || s || y || _) && /* @__PURE__ */ S("div", { className: "flex items-center gap-1.5 pr-2", children: [
|
|
666
|
+
y && /* @__PURE__ */ o("div", { className: "font-graphik flex items-center text-[16px]", children: y }),
|
|
667
|
+
x && /* @__PURE__ */ o(
|
|
666
668
|
"div",
|
|
667
669
|
{
|
|
668
|
-
className:
|
|
670
|
+
className: g(
|
|
669
671
|
"relative inline-block max-w-[110px] overflow-hidden"
|
|
670
672
|
),
|
|
671
|
-
children: /* @__PURE__ */
|
|
673
|
+
children: /* @__PURE__ */ o("div", { className: "[&_*]:font-cofo [&_*]:max-w-[110px] [&_*]:overflow-hidden [&_*]:text-ellipsis [&_*]:whitespace-nowrap [&_button]:w-auto [&_button]:min-w-0 [&_button]:px-0 [&_button]:py-0 [&_div[data-radix-popper-content-wrapper]]:!w-auto [&_div[data-radix-select-content]]:!w-auto [&_div[data-radix-select-content]]:!min-w-[120px] [&_span:not([data-radix-select-icon])]:max-w-[85px] [&_svg]:text-default [&_svg]:flex-shrink-0", children: x })
|
|
672
674
|
}
|
|
673
675
|
),
|
|
674
|
-
a && !
|
|
676
|
+
a && !d && u === "right" && /* @__PURE__ */ o(
|
|
675
677
|
"div",
|
|
676
678
|
{
|
|
677
|
-
className:
|
|
679
|
+
className: g(
|
|
678
680
|
"group-focus-within:text-foreground text-muted-foreground flex items-center transition-colors",
|
|
679
|
-
|
|
681
|
+
s && "!group-focus-within:!text-destructive !text-destructive"
|
|
680
682
|
),
|
|
681
683
|
children: a
|
|
682
684
|
}
|
|
683
685
|
),
|
|
684
|
-
|
|
685
|
-
|
|
686
|
+
d && !a && u === "right" && /* @__PURE__ */ o(
|
|
687
|
+
P,
|
|
686
688
|
{
|
|
687
|
-
icon:
|
|
688
|
-
className:
|
|
689
|
+
icon: d,
|
|
690
|
+
className: g(
|
|
689
691
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
690
|
-
|
|
692
|
+
s && "!group-focus-within:!text-destructive !text-destructive"
|
|
691
693
|
)
|
|
692
694
|
}
|
|
693
695
|
),
|
|
694
|
-
|
|
696
|
+
_ && /* @__PURE__ */ o(
|
|
695
697
|
"div",
|
|
696
698
|
{
|
|
697
|
-
onClick:
|
|
698
|
-
className:
|
|
699
|
+
onClick: k,
|
|
700
|
+
className: g(
|
|
699
701
|
"flex cursor-pointer items-center justify-center",
|
|
700
|
-
|
|
702
|
+
p && "cursor-not-allowed opacity-50"
|
|
701
703
|
),
|
|
702
704
|
role: "button",
|
|
703
705
|
tabIndex: 0,
|
|
704
|
-
children: /* @__PURE__ */
|
|
705
|
-
|
|
706
|
+
children: /* @__PURE__ */ o(
|
|
707
|
+
P,
|
|
706
708
|
{
|
|
707
709
|
icon: "CloseIcon",
|
|
708
710
|
size: 16,
|
|
@@ -711,8 +713,8 @@ const G = h.forwardRef(
|
|
|
711
713
|
)
|
|
712
714
|
}
|
|
713
715
|
),
|
|
714
|
-
|
|
715
|
-
|
|
716
|
+
s != null && /* @__PURE__ */ o(
|
|
717
|
+
P,
|
|
716
718
|
{
|
|
717
719
|
icon: "ErrorFillIcon",
|
|
718
720
|
className: "!text-destructive",
|
|
@@ -723,45 +725,45 @@ const G = h.forwardRef(
|
|
|
723
725
|
]
|
|
724
726
|
}
|
|
725
727
|
),
|
|
726
|
-
|
|
727
|
-
|
|
728
|
+
l && !s && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: l }),
|
|
729
|
+
s && I && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: s })
|
|
728
730
|
] });
|
|
729
731
|
}
|
|
730
732
|
);
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
(
|
|
734
|
-
const [
|
|
735
|
-
(
|
|
736
|
-
|
|
733
|
+
Fe.displayName = "Input";
|
|
734
|
+
const jt = N.forwardRef(
|
|
735
|
+
(t, e) => {
|
|
736
|
+
const [r, a] = N.useState(!1), n = N.useRef(null), h = t, { size: s = "md" } = h, l = E(h, ["size"]), d = N.useCallback(
|
|
737
|
+
(i) => {
|
|
738
|
+
n.current = i, typeof e == "function" ? e(i) : e && (e.current = i);
|
|
737
739
|
},
|
|
738
740
|
[e]
|
|
739
|
-
), u =
|
|
740
|
-
if (
|
|
741
|
-
const
|
|
741
|
+
), u = N.useCallback(() => {
|
|
742
|
+
if (n.current) {
|
|
743
|
+
const i = n.current.value.length;
|
|
742
744
|
requestAnimationFrame(() => {
|
|
743
|
-
var
|
|
744
|
-
(
|
|
745
|
+
var p, b;
|
|
746
|
+
(p = n.current) == null || p.focus(), (b = n.current) == null || b.setSelectionRange(i, i);
|
|
745
747
|
});
|
|
746
748
|
}
|
|
747
749
|
}, []);
|
|
748
|
-
return /* @__PURE__ */
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
ref:
|
|
752
|
-
type:
|
|
753
|
-
size:
|
|
750
|
+
return /* @__PURE__ */ o(
|
|
751
|
+
Fe,
|
|
752
|
+
D(w({}, l), {
|
|
753
|
+
ref: d,
|
|
754
|
+
type: r ? "text" : "password",
|
|
755
|
+
size: s,
|
|
754
756
|
iconPosition: "right",
|
|
755
|
-
icon: /* @__PURE__ */
|
|
756
|
-
|
|
757
|
+
icon: /* @__PURE__ */ o(
|
|
758
|
+
Be,
|
|
757
759
|
{
|
|
758
760
|
variant: "text",
|
|
759
761
|
iconOnly: !0,
|
|
760
762
|
size: "sm",
|
|
761
|
-
onClick: (
|
|
762
|
-
|
|
763
|
+
onClick: (i) => {
|
|
764
|
+
i.preventDefault(), i.stopPropagation(), a(!r), u();
|
|
763
765
|
},
|
|
764
|
-
icon:
|
|
766
|
+
icon: r ? "VisibilityOnIcon" : "VisibilityOffIcon",
|
|
765
767
|
className: "!text-muted-foreground"
|
|
766
768
|
}
|
|
767
769
|
)
|
|
@@ -769,17 +771,17 @@ const Ue = h.forwardRef(
|
|
|
769
771
|
);
|
|
770
772
|
}
|
|
771
773
|
);
|
|
772
|
-
|
|
773
|
-
const
|
|
774
|
-
(
|
|
775
|
-
const
|
|
776
|
-
type:
|
|
774
|
+
jt.displayName = "InputPassword";
|
|
775
|
+
const Ot = N.forwardRef(
|
|
776
|
+
(t, e) => {
|
|
777
|
+
const h = t, {
|
|
778
|
+
type: r = "button",
|
|
777
779
|
onSearch: a,
|
|
778
|
-
className:
|
|
779
|
-
size:
|
|
780
|
-
disabled:
|
|
781
|
-
phoneInputSearch:
|
|
782
|
-
} =
|
|
780
|
+
className: n,
|
|
781
|
+
size: s = "md",
|
|
782
|
+
disabled: l,
|
|
783
|
+
phoneInputSearch: d = !1
|
|
784
|
+
} = h, u = E(h, [
|
|
783
785
|
"type",
|
|
784
786
|
"onSearch",
|
|
785
787
|
"className",
|
|
@@ -787,28 +789,28 @@ const $e = h.forwardRef(
|
|
|
787
789
|
"disabled",
|
|
788
790
|
"phoneInputSearch"
|
|
789
791
|
]);
|
|
790
|
-
return /* @__PURE__ */
|
|
791
|
-
|
|
792
|
-
|
|
792
|
+
return /* @__PURE__ */ o(
|
|
793
|
+
Fe,
|
|
794
|
+
D(w({}, u), {
|
|
793
795
|
ref: e,
|
|
794
|
-
size:
|
|
795
|
-
disabled:
|
|
796
|
+
size: s,
|
|
797
|
+
disabled: l,
|
|
796
798
|
className: "pl-1.5",
|
|
797
|
-
containerClassName:
|
|
799
|
+
containerClassName: g(
|
|
798
800
|
"group",
|
|
799
|
-
|
|
800
|
-
|
|
801
|
+
n,
|
|
802
|
+
r === "border" && [
|
|
801
803
|
"rounded-none",
|
|
802
804
|
"border-0 border-b-1 border-b-border",
|
|
803
805
|
"hover:border-t-0 hover:border-l-0 hover:border-r-0",
|
|
804
|
-
|
|
806
|
+
d ? "hover:border-border focus-within:border-border px-3" : "hover:border-b-hover-input-primary focus-within:border-b-primary",
|
|
805
807
|
"focus-within:border-t-0 focus-within:border-l-0 focus-within:border-r-0 ",
|
|
806
808
|
"focus-within:shadow-none"
|
|
807
809
|
]
|
|
808
810
|
),
|
|
809
811
|
iconPosition: "left",
|
|
810
|
-
icon: /* @__PURE__ */
|
|
811
|
-
|
|
812
|
+
icon: /* @__PURE__ */ o(
|
|
813
|
+
P,
|
|
812
814
|
{
|
|
813
815
|
icon: "SearchIcon",
|
|
814
816
|
className: "text-muted-foreground group-focus-within:text-foreground text-[16px] transition-colors"
|
|
@@ -818,135 +820,246 @@ const $e = h.forwardRef(
|
|
|
818
820
|
);
|
|
819
821
|
}
|
|
820
822
|
);
|
|
821
|
-
|
|
822
|
-
const
|
|
823
|
-
(
|
|
824
|
-
const
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
|
|
827
|
-
|
|
823
|
+
Ot.displayName = "InputSearch";
|
|
824
|
+
const $t = N.forwardRef(
|
|
825
|
+
(t, e) => {
|
|
826
|
+
const d = t, { size: r = "md", title: a, className: n, disabled: s } = d, l = E(d, ["size", "title", "className", "disabled"]);
|
|
827
|
+
return /* @__PURE__ */ o("div", { className: "w-full", children: /* @__PURE__ */ o(
|
|
828
|
+
Fe,
|
|
829
|
+
D(w({}, l), {
|
|
828
830
|
ref: e,
|
|
829
831
|
size: "lg",
|
|
830
|
-
disabled:
|
|
831
|
-
className:
|
|
832
|
-
"text-[18px]":
|
|
833
|
-
"text-[24px]":
|
|
832
|
+
disabled: s,
|
|
833
|
+
className: g("font-bold", {
|
|
834
|
+
"text-[18px]": r === "md",
|
|
835
|
+
"text-[24px]": r === "lg"
|
|
834
836
|
}),
|
|
835
|
-
containerClassName:
|
|
836
|
-
"h-11":
|
|
837
|
+
containerClassName: g("h-10", {
|
|
838
|
+
"h-11": r === "lg"
|
|
837
839
|
})
|
|
838
840
|
})
|
|
839
841
|
) });
|
|
840
842
|
}
|
|
841
843
|
);
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
(
|
|
845
|
-
const
|
|
844
|
+
$t.displayName = "InputTitle";
|
|
845
|
+
const Kt = N.forwardRef(
|
|
846
|
+
(t, e) => {
|
|
847
|
+
const l = t, { size: r = "md", className: a } = l, n = E(l, ["size", "className"]), s = /* @__PURE__ */ o(
|
|
846
848
|
"div",
|
|
847
849
|
{
|
|
848
|
-
className:
|
|
850
|
+
className: g(
|
|
849
851
|
"bg-default-background text-muted-foreground flex items-center",
|
|
850
|
-
|
|
852
|
+
r === "md" ? "h-6 rounded-sm px-2" : "h-8 rounded-md px-2"
|
|
851
853
|
),
|
|
852
|
-
children: /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ o(O, { variant: "p2", className: "whitespace-nowrap", children: "https://" })
|
|
853
855
|
}
|
|
854
856
|
);
|
|
855
|
-
return /* @__PURE__ */
|
|
856
|
-
|
|
857
|
-
|
|
857
|
+
return /* @__PURE__ */ o(
|
|
858
|
+
Fe,
|
|
859
|
+
D(w({}, n), {
|
|
858
860
|
ref: e,
|
|
859
|
-
size:
|
|
860
|
-
className:
|
|
861
|
-
prefixContainer:
|
|
861
|
+
size: r,
|
|
862
|
+
className: g("pl-2", a),
|
|
863
|
+
prefixContainer: s
|
|
864
|
+
})
|
|
865
|
+
);
|
|
866
|
+
}
|
|
867
|
+
);
|
|
868
|
+
Kt.displayName = "InputLink";
|
|
869
|
+
const Ht = Ee.Root, Ut = Ee.Trigger, ht = N.forwardRef((s, n) => {
|
|
870
|
+
var l = s, { className: t, align: e = "center", sideOffset: r = 4 } = l, a = E(l, ["className", "align", "sideOffset"]);
|
|
871
|
+
return /* @__PURE__ */ o(Ee.Portal, { children: /* @__PURE__ */ o(
|
|
872
|
+
Ee.Content,
|
|
873
|
+
w({
|
|
874
|
+
ref: n,
|
|
875
|
+
align: e,
|
|
876
|
+
sideOffset: r,
|
|
877
|
+
className: g(
|
|
878
|
+
// TODO: remove z-1050 after fixing the issue with the popover being on top of the modal
|
|
879
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1050 w-72 rounded-md border-0 p-4 shadow-md outline-none",
|
|
880
|
+
t
|
|
881
|
+
)
|
|
882
|
+
}, a)
|
|
883
|
+
) });
|
|
884
|
+
});
|
|
885
|
+
ht.displayName = Ee.Content.displayName;
|
|
886
|
+
const qe = N.forwardRef(
|
|
887
|
+
(b, p) => {
|
|
888
|
+
var x = b, {
|
|
889
|
+
className: t,
|
|
890
|
+
bordered: e = !1,
|
|
891
|
+
radius: r = "md",
|
|
892
|
+
variant: a = "default",
|
|
893
|
+
padding: n = "md",
|
|
894
|
+
overflow: s = !1,
|
|
895
|
+
direction: l = "col",
|
|
896
|
+
justify: d = "start",
|
|
897
|
+
align: u = "start",
|
|
898
|
+
children: h
|
|
899
|
+
} = x, i = E(x, [
|
|
900
|
+
"className",
|
|
901
|
+
"bordered",
|
|
902
|
+
"radius",
|
|
903
|
+
"variant",
|
|
904
|
+
"padding",
|
|
905
|
+
"overflow",
|
|
906
|
+
"direction",
|
|
907
|
+
"justify",
|
|
908
|
+
"align",
|
|
909
|
+
"children"
|
|
910
|
+
]);
|
|
911
|
+
return /* @__PURE__ */ o(
|
|
912
|
+
"div",
|
|
913
|
+
D(w({
|
|
914
|
+
ref: p,
|
|
915
|
+
className: g(
|
|
916
|
+
// Base styles
|
|
917
|
+
"flex transition-colors",
|
|
918
|
+
{ "border-border border-1 border-solid": e },
|
|
919
|
+
// Direction variants
|
|
920
|
+
{
|
|
921
|
+
"flex-row": l === "row",
|
|
922
|
+
"flex-col": l === "col"
|
|
923
|
+
},
|
|
924
|
+
// Justify variants
|
|
925
|
+
{
|
|
926
|
+
"justify-start": d === "start",
|
|
927
|
+
"justify-end": d === "end",
|
|
928
|
+
"justify-center": d === "center",
|
|
929
|
+
"justify-between": d === "between",
|
|
930
|
+
"justify-around": d === "around",
|
|
931
|
+
"justify-evenly": d === "evenly"
|
|
932
|
+
},
|
|
933
|
+
// Align variants
|
|
934
|
+
{
|
|
935
|
+
"items-start": u === "start",
|
|
936
|
+
"items-end": u === "end",
|
|
937
|
+
"items-center": u === "center",
|
|
938
|
+
"items-baseline": u === "baseline",
|
|
939
|
+
"items-stretch": u === "stretch"
|
|
940
|
+
},
|
|
941
|
+
// Border radius variants
|
|
942
|
+
{
|
|
943
|
+
"rounded-none": r === "none",
|
|
944
|
+
"rounded-xs": r === "xs",
|
|
945
|
+
"rounded-sm": r === "sm",
|
|
946
|
+
"rounded-md": r === "md",
|
|
947
|
+
"rounded-lg": r === "lg",
|
|
948
|
+
"rounded-xl": r === "xl",
|
|
949
|
+
"rounded-2xl": r === "2xl",
|
|
950
|
+
"rounded-3xl": r === "3xl",
|
|
951
|
+
"rounded-4xl": r === "4xl"
|
|
952
|
+
},
|
|
953
|
+
// Background variants
|
|
954
|
+
{
|
|
955
|
+
"bg-white": a === "default",
|
|
956
|
+
// TODO: Узнать у дизайнера, какой цвет у gray
|
|
957
|
+
"bg-card-fill-tertiary": a === "gray",
|
|
958
|
+
"bg-muted text-muted-foreground font-medium": a === "muted"
|
|
959
|
+
},
|
|
960
|
+
// Padding variants
|
|
961
|
+
{
|
|
962
|
+
"p-1": n === "2xxs",
|
|
963
|
+
"p-2": n === "xxs",
|
|
964
|
+
"p-3": n === "xs",
|
|
965
|
+
"p-4": n === "sm",
|
|
966
|
+
"p-5": n === "md",
|
|
967
|
+
"p-6": n === "lg"
|
|
968
|
+
},
|
|
969
|
+
// Overflow
|
|
970
|
+
{ "overflow-hidden": s },
|
|
971
|
+
t
|
|
972
|
+
)
|
|
973
|
+
}, i), {
|
|
974
|
+
children: h
|
|
862
975
|
})
|
|
863
976
|
);
|
|
864
977
|
}
|
|
865
978
|
);
|
|
866
|
-
|
|
867
|
-
const
|
|
868
|
-
var
|
|
869
|
-
return /* @__PURE__ */
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
ref:
|
|
873
|
-
className:
|
|
979
|
+
qe.displayName = "Card";
|
|
980
|
+
const gt = N.forwardRef((a, r) => {
|
|
981
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
982
|
+
return /* @__PURE__ */ o(
|
|
983
|
+
V.ScrollUpButton,
|
|
984
|
+
D(w({
|
|
985
|
+
ref: r,
|
|
986
|
+
className: g(
|
|
874
987
|
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
875
988
|
"hover:bg-muted/50 transition-colors",
|
|
876
|
-
|
|
989
|
+
t
|
|
877
990
|
)
|
|
878
991
|
}, e), {
|
|
879
|
-
children: /* @__PURE__ */
|
|
992
|
+
children: /* @__PURE__ */ o(P, { icon: "ArrowUpIcon", size: 16, className: "text-muted-foreground" })
|
|
880
993
|
})
|
|
881
994
|
);
|
|
882
995
|
});
|
|
883
|
-
|
|
884
|
-
const
|
|
885
|
-
var
|
|
886
|
-
return /* @__PURE__ */
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
ref:
|
|
890
|
-
className:
|
|
996
|
+
gt.displayName = "SelectScrollUpButton";
|
|
997
|
+
const bt = N.forwardRef((a, r) => {
|
|
998
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
999
|
+
return /* @__PURE__ */ o(
|
|
1000
|
+
V.ScrollDownButton,
|
|
1001
|
+
D(w({
|
|
1002
|
+
ref: r,
|
|
1003
|
+
className: g(
|
|
891
1004
|
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
892
1005
|
"hover:bg-muted/50 transition-colors",
|
|
893
|
-
|
|
1006
|
+
t
|
|
894
1007
|
)
|
|
895
1008
|
}, e), {
|
|
896
|
-
children: /* @__PURE__ */
|
|
1009
|
+
children: /* @__PURE__ */ o(P, { icon: "ArrowDownIcon", size: 16, className: "text-muted-foreground" })
|
|
897
1010
|
})
|
|
898
1011
|
);
|
|
899
1012
|
});
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
var
|
|
903
|
-
return /* @__PURE__ */
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
ref:
|
|
907
|
-
className:
|
|
1013
|
+
bt.displayName = "SelectScrollDownButton";
|
|
1014
|
+
const xt = N.forwardRef((l, s) => {
|
|
1015
|
+
var d = l, { className: t, children: e, selected: r, size: a = "md" } = d, n = E(d, ["className", "children", "selected", "size"]);
|
|
1016
|
+
return /* @__PURE__ */ o(
|
|
1017
|
+
V.Item,
|
|
1018
|
+
D(w({
|
|
1019
|
+
ref: s,
|
|
1020
|
+
className: g(
|
|
908
1021
|
"font-graphik relative flex w-full cursor-pointer items-center px-3 transition-colors outline-none select-none",
|
|
909
1022
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
910
1023
|
// ✅ выбранный элемент
|
|
911
1024
|
"data-[state=checked]:bg-primary-10 [state=checked]:text-medium data-[state=checked]:font-medium data-[state=checked]:hover:bg-[#F3E5FF]",
|
|
912
1025
|
"box-border",
|
|
913
1026
|
// По умолчанию без bg
|
|
914
|
-
!
|
|
1027
|
+
!r && "hover:bg-muted",
|
|
915
1028
|
// Выбранный элемент - более видимый bg
|
|
916
|
-
|
|
1029
|
+
r && "bg-primary-10 font-medium hover:bg-[#F3E5FF]",
|
|
917
1030
|
// Размеры соответствуют триггеру с !important
|
|
918
1031
|
a === "md" && "!h-8 !max-h-8 !min-h-8 rounded-lg text-[14px]",
|
|
919
1032
|
a === "lg" && "!h-10 !max-h-10 !min-h-10 rounded-xl text-[16px]",
|
|
920
|
-
|
|
1033
|
+
t
|
|
921
1034
|
)
|
|
922
|
-
},
|
|
923
|
-
children: /* @__PURE__ */
|
|
1035
|
+
}, n), {
|
|
1036
|
+
children: /* @__PURE__ */ o(V.ItemText, { asChild: !0, children: /* @__PURE__ */ o("span", { className: "block w-full overflow-hidden text-ellipsis whitespace-nowrap", children: e }) })
|
|
924
1037
|
})
|
|
925
1038
|
);
|
|
926
1039
|
});
|
|
927
|
-
|
|
928
|
-
const
|
|
929
|
-
(
|
|
930
|
-
var
|
|
931
|
-
className:
|
|
1040
|
+
xt.displayName = "SelectItem";
|
|
1041
|
+
const yt = N.forwardRef(
|
|
1042
|
+
(F, T) => {
|
|
1043
|
+
var L = F, {
|
|
1044
|
+
className: t,
|
|
932
1045
|
children: e,
|
|
933
|
-
size:
|
|
1046
|
+
size: r = "md",
|
|
934
1047
|
label: a,
|
|
935
|
-
error:
|
|
936
|
-
caption:
|
|
937
|
-
fullWidth:
|
|
938
|
-
transparent:
|
|
1048
|
+
error: n,
|
|
1049
|
+
caption: s,
|
|
1050
|
+
fullWidth: l = !0,
|
|
1051
|
+
transparent: d = !1,
|
|
939
1052
|
tag: u,
|
|
940
|
-
multiple:
|
|
941
|
-
selectedValues:
|
|
942
|
-
onValueRemove:
|
|
943
|
-
disabled:
|
|
944
|
-
"data-testid":
|
|
945
|
-
showErrorMessage:
|
|
946
|
-
clearable:
|
|
947
|
-
onClear:
|
|
948
|
-
inlineSelect:
|
|
949
|
-
} =
|
|
1053
|
+
multiple: h,
|
|
1054
|
+
selectedValues: i,
|
|
1055
|
+
onValueRemove: p,
|
|
1056
|
+
disabled: b,
|
|
1057
|
+
"data-testid": x,
|
|
1058
|
+
showErrorMessage: c = !0,
|
|
1059
|
+
clearable: v = !1,
|
|
1060
|
+
onClear: y,
|
|
1061
|
+
inlineSelect: I = !1
|
|
1062
|
+
} = L, k = E(L, [
|
|
950
1063
|
"className",
|
|
951
1064
|
"children",
|
|
952
1065
|
"size",
|
|
@@ -966,112 +1079,112 @@ const ge = h.forwardRef(
|
|
|
966
1079
|
"onClear",
|
|
967
1080
|
"inlineSelect"
|
|
968
1081
|
]);
|
|
969
|
-
const
|
|
970
|
-
return
|
|
971
|
-
if (!
|
|
1082
|
+
const M = h || i && i.length > 0, z = N.useRef(null), [R, Z] = N.useState(2);
|
|
1083
|
+
return N.useLayoutEffect(() => {
|
|
1084
|
+
if (!M || !(i != null && i.length) || !z.current)
|
|
972
1085
|
return;
|
|
973
|
-
const
|
|
974
|
-
const
|
|
975
|
-
if (!
|
|
1086
|
+
const _ = () => {
|
|
1087
|
+
const j = z.current;
|
|
1088
|
+
if (!j)
|
|
976
1089
|
return;
|
|
977
|
-
const
|
|
978
|
-
let
|
|
979
|
-
const
|
|
980
|
-
for (let
|
|
981
|
-
const
|
|
982
|
-
if (
|
|
983
|
-
|
|
1090
|
+
const C = j.offsetWidth, fe = u ? 60 : 0, pe = 20, ee = n ? 20 : 0, U = C - fe - pe - ee - 16 - 30;
|
|
1091
|
+
let be = 0, xe = 0;
|
|
1092
|
+
const se = 12, de = 20, ae = 4, Pe = 7;
|
|
1093
|
+
for (let le = 0; le < i.length; le++) {
|
|
1094
|
+
const rt = i[le].length * Pe, ye = se + rt + de + ae;
|
|
1095
|
+
if (xe + ye <= U)
|
|
1096
|
+
xe += ye, be = le + 1;
|
|
984
1097
|
else
|
|
985
1098
|
break;
|
|
986
1099
|
}
|
|
987
|
-
|
|
1100
|
+
Z(Math.max(1, be));
|
|
988
1101
|
};
|
|
989
|
-
|
|
990
|
-
const
|
|
991
|
-
return
|
|
992
|
-
|
|
1102
|
+
_();
|
|
1103
|
+
const K = new ResizeObserver(_);
|
|
1104
|
+
return K.observe(z.current), () => {
|
|
1105
|
+
K.disconnect();
|
|
993
1106
|
};
|
|
994
|
-
}, [
|
|
995
|
-
a && /* @__PURE__ */
|
|
996
|
-
|
|
1107
|
+
}, [i, u, n, M]), /* @__PURE__ */ S("div", { className: "w-full", children: [
|
|
1108
|
+
a && /* @__PURE__ */ o(
|
|
1109
|
+
O,
|
|
997
1110
|
{
|
|
998
1111
|
variant: "p3",
|
|
999
1112
|
weight: "medium",
|
|
1000
|
-
className:
|
|
1001
|
-
"text-[14px]":
|
|
1002
|
-
"text-[16px]":
|
|
1113
|
+
className: g("mb-1.5", {
|
|
1114
|
+
"text-[14px]": r === "md",
|
|
1115
|
+
"text-[16px]": r === "lg"
|
|
1003
1116
|
}),
|
|
1004
1117
|
children: a
|
|
1005
1118
|
}
|
|
1006
1119
|
),
|
|
1007
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ o(
|
|
1008
1121
|
"div",
|
|
1009
1122
|
{
|
|
1010
|
-
className:
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
ref:
|
|
1015
|
-
className:
|
|
1123
|
+
className: g("relative flex items-center", l && "w-full"),
|
|
1124
|
+
children: /* @__PURE__ */ S(
|
|
1125
|
+
V.Trigger,
|
|
1126
|
+
D(w({
|
|
1127
|
+
ref: T,
|
|
1128
|
+
className: g(
|
|
1016
1129
|
"font-graphik group flex items-center",
|
|
1017
|
-
!
|
|
1130
|
+
!d && [
|
|
1018
1131
|
"flex cursor-pointer py-1.5 focus:outline-none disabled:cursor-not-allowed",
|
|
1019
1132
|
"focus:shadow-focus border focus:border",
|
|
1020
1133
|
"enabled:hover:border",
|
|
1021
1134
|
"data-[state=open]:border-primary data-[state=open]:shadow-focus",
|
|
1022
1135
|
"data-[placeholder]:text-muted-foreground",
|
|
1023
1136
|
"bg-background border-border placeholder:text-muted-foreground enabled:hover:border-hover-input-primary focus:border-primary disabled:bg-input-disabled-background",
|
|
1024
|
-
|
|
1137
|
+
n != null && "border-destructive focus:border-destructive focus:shadow-error enabled:hover:border-destructive data-[state=open]:border-destructive data-[state=open]:shadow-error",
|
|
1025
1138
|
{
|
|
1026
1139
|
// Sizes
|
|
1027
|
-
"h-8 rounded-lg px-2.5 text-[14px]":
|
|
1028
|
-
"h-10 rounded-xl px-3 text-[16px]":
|
|
1140
|
+
"h-8 rounded-lg px-2.5 text-[14px]": r === "md",
|
|
1141
|
+
"h-10 rounded-xl px-3 text-[16px]": r === "lg",
|
|
1029
1142
|
// Full width
|
|
1030
|
-
"w-full":
|
|
1143
|
+
"w-full": l
|
|
1031
1144
|
}
|
|
1032
1145
|
],
|
|
1033
|
-
|
|
1146
|
+
d && [
|
|
1034
1147
|
"cursor-pointer border-0 bg-transparent hover:bg-transparent focus:border-0 focus:shadow-none",
|
|
1035
1148
|
"data-[state=open]:border-0 data-[state=open]:shadow-none",
|
|
1036
1149
|
"data-[value]:border-0 data-[value]:shadow-none",
|
|
1037
1150
|
"data-[placeholder]:border-0 data-[placeholder]:shadow-none",
|
|
1038
1151
|
"text-left outline-none"
|
|
1039
1152
|
],
|
|
1040
|
-
|
|
1153
|
+
t
|
|
1041
1154
|
)
|
|
1042
|
-
},
|
|
1043
|
-
"data-testid":
|
|
1155
|
+
}, k), {
|
|
1156
|
+
"data-testid": x,
|
|
1044
1157
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ o(
|
|
1046
1159
|
"div",
|
|
1047
1160
|
{
|
|
1048
|
-
ref:
|
|
1049
|
-
className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${
|
|
1050
|
-
children:
|
|
1051
|
-
|
|
1161
|
+
ref: z,
|
|
1162
|
+
className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${I ? "" : "pr-2"}`,
|
|
1163
|
+
children: M && (i != null && i.length) ? /* @__PURE__ */ S("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
|
|
1164
|
+
i.slice(0, R).map((_) => /* @__PURE__ */ S(
|
|
1052
1165
|
"div",
|
|
1053
1166
|
{
|
|
1054
1167
|
className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
|
|
1055
1168
|
children: [
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ o(O, { variant: "p2", children: _ }),
|
|
1170
|
+
/* @__PURE__ */ o(
|
|
1058
1171
|
"div",
|
|
1059
1172
|
{
|
|
1060
|
-
onPointerDown: (
|
|
1061
|
-
|
|
1173
|
+
onPointerDown: (K) => {
|
|
1174
|
+
b || (K.preventDefault(), K.stopPropagation());
|
|
1062
1175
|
},
|
|
1063
|
-
onClick: (
|
|
1064
|
-
|
|
1176
|
+
onClick: (K) => {
|
|
1177
|
+
b || (K.preventDefault(), K.stopPropagation(), p == null || p(_));
|
|
1065
1178
|
},
|
|
1066
|
-
onMouseDown: (
|
|
1067
|
-
|
|
1179
|
+
onMouseDown: (K) => {
|
|
1180
|
+
b || (K.preventDefault(), K.stopPropagation());
|
|
1068
1181
|
},
|
|
1069
|
-
className:
|
|
1182
|
+
className: g(
|
|
1070
1183
|
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
1071
|
-
|
|
1184
|
+
b && "cursor-not-allowed opacity-50"
|
|
1072
1185
|
),
|
|
1073
|
-
children: /* @__PURE__ */
|
|
1074
|
-
|
|
1186
|
+
children: /* @__PURE__ */ o(
|
|
1187
|
+
P,
|
|
1075
1188
|
{
|
|
1076
1189
|
icon: "CloseIcon",
|
|
1077
1190
|
size: 12,
|
|
@@ -1082,50 +1195,50 @@ const ge = h.forwardRef(
|
|
|
1082
1195
|
)
|
|
1083
1196
|
]
|
|
1084
1197
|
},
|
|
1085
|
-
|
|
1198
|
+
_
|
|
1086
1199
|
)),
|
|
1087
|
-
|
|
1200
|
+
i.length > R && /* @__PURE__ */ o("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ S(O, { variant: "p2", children: [
|
|
1088
1201
|
"+",
|
|
1089
|
-
|
|
1202
|
+
i.length - R
|
|
1090
1203
|
] }) })
|
|
1091
|
-
] }) : /* @__PURE__ */
|
|
1204
|
+
] }) : /* @__PURE__ */ o("div", { className: "flex-1 truncate text-left", children: e })
|
|
1092
1205
|
}
|
|
1093
1206
|
),
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
u && /* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ S("div", { className: "flex items-center gap-1.5", children: [
|
|
1208
|
+
u && /* @__PURE__ */ o(
|
|
1096
1209
|
"div",
|
|
1097
1210
|
{
|
|
1098
|
-
className:
|
|
1211
|
+
className: g(
|
|
1099
1212
|
"rounded px-1.5 py-0.5",
|
|
1100
1213
|
typeof u == "string" ? "bg-[#EFEFF1]" : u.className
|
|
1101
1214
|
),
|
|
1102
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ o(O, { variant: "p2", children: typeof u == "string" ? u : u.text })
|
|
1103
1216
|
}
|
|
1104
1217
|
),
|
|
1105
|
-
|
|
1218
|
+
v && /* @__PURE__ */ o(
|
|
1106
1219
|
"div",
|
|
1107
1220
|
{
|
|
1108
|
-
onPointerDown: (
|
|
1109
|
-
|
|
1221
|
+
onPointerDown: (_) => {
|
|
1222
|
+
b || (_.preventDefault(), _.stopPropagation());
|
|
1110
1223
|
},
|
|
1111
|
-
onClick: (
|
|
1112
|
-
|
|
1224
|
+
onClick: (_) => {
|
|
1225
|
+
b || (_.preventDefault(), _.stopPropagation(), y == null || y());
|
|
1113
1226
|
},
|
|
1114
|
-
onMouseDown: (
|
|
1115
|
-
|
|
1227
|
+
onMouseDown: (_) => {
|
|
1228
|
+
b || (_.preventDefault(), _.stopPropagation());
|
|
1116
1229
|
},
|
|
1117
|
-
onKeyDown: (
|
|
1118
|
-
|
|
1230
|
+
onKeyDown: (_) => {
|
|
1231
|
+
b || (_.key === "Enter" || _.key === " ") && (_.preventDefault(), _.stopPropagation(), y == null || y());
|
|
1119
1232
|
},
|
|
1120
|
-
className:
|
|
1233
|
+
className: g(
|
|
1121
1234
|
"flex cursor-pointer items-center justify-center rounded-full p-[2px] hover:bg-muted transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1",
|
|
1122
|
-
|
|
1235
|
+
b && "cursor-not-allowed opacity-50"
|
|
1123
1236
|
),
|
|
1124
1237
|
role: "button",
|
|
1125
1238
|
tabIndex: 0,
|
|
1126
1239
|
"aria-label": "Очистить значение",
|
|
1127
|
-
children: /* @__PURE__ */
|
|
1128
|
-
|
|
1240
|
+
children: /* @__PURE__ */ o(
|
|
1241
|
+
P,
|
|
1129
1242
|
{
|
|
1130
1243
|
icon: "CloseIcon",
|
|
1131
1244
|
size: 16,
|
|
@@ -1134,21 +1247,21 @@ const ge = h.forwardRef(
|
|
|
1134
1247
|
)
|
|
1135
1248
|
}
|
|
1136
1249
|
),
|
|
1137
|
-
|
|
1138
|
-
|
|
1250
|
+
n && /* @__PURE__ */ o(
|
|
1251
|
+
P,
|
|
1139
1252
|
{
|
|
1140
1253
|
icon: "ErrorFillIcon",
|
|
1141
1254
|
className: "!text-destructive",
|
|
1142
1255
|
size: 16
|
|
1143
1256
|
}
|
|
1144
1257
|
),
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
|
|
1258
|
+
/* @__PURE__ */ o(V.Icon, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1259
|
+
P,
|
|
1147
1260
|
{
|
|
1148
1261
|
icon: "ArrowDownIcon",
|
|
1149
|
-
className:
|
|
1262
|
+
className: g(
|
|
1150
1263
|
"text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
1151
|
-
|
|
1264
|
+
d && "pl-1"
|
|
1152
1265
|
),
|
|
1153
1266
|
size: 16
|
|
1154
1267
|
}
|
|
@@ -1159,34 +1272,34 @@ const ge = h.forwardRef(
|
|
|
1159
1272
|
)
|
|
1160
1273
|
}
|
|
1161
1274
|
),
|
|
1162
|
-
|
|
1163
|
-
|
|
1275
|
+
s && !n && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
|
|
1276
|
+
n && c && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: n })
|
|
1164
1277
|
] });
|
|
1165
1278
|
}
|
|
1166
1279
|
);
|
|
1167
|
-
|
|
1168
|
-
const
|
|
1169
|
-
var
|
|
1170
|
-
return /* @__PURE__ */
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
ref:
|
|
1174
|
-
placeholder:
|
|
1175
|
-
className:
|
|
1280
|
+
yt.displayName = "SelectTrigger";
|
|
1281
|
+
const Qr = V.Group, Yr = N.forwardRef((s, n) => {
|
|
1282
|
+
var l = s, { className: t, children: e, placeholder: r } = l, a = E(l, ["className", "children", "placeholder"]);
|
|
1283
|
+
return /* @__PURE__ */ o(
|
|
1284
|
+
V.Value,
|
|
1285
|
+
D(w({
|
|
1286
|
+
ref: n,
|
|
1287
|
+
placeholder: r,
|
|
1288
|
+
className: g("block w-full text-left", t)
|
|
1176
1289
|
}, a), {
|
|
1177
1290
|
children: e
|
|
1178
1291
|
})
|
|
1179
1292
|
);
|
|
1180
|
-
}),
|
|
1181
|
-
(u,
|
|
1182
|
-
var
|
|
1183
|
-
className:
|
|
1293
|
+
}), vt = N.forwardRef(
|
|
1294
|
+
(u, d) => {
|
|
1295
|
+
var h = u, {
|
|
1296
|
+
className: t,
|
|
1184
1297
|
children: e,
|
|
1185
|
-
selectedValues:
|
|
1298
|
+
selectedValues: r = [],
|
|
1186
1299
|
value: a,
|
|
1187
|
-
isMultiple:
|
|
1188
|
-
size:
|
|
1189
|
-
} =
|
|
1300
|
+
isMultiple: n = !1,
|
|
1301
|
+
size: s = "md"
|
|
1302
|
+
} = h, l = E(h, [
|
|
1190
1303
|
"className",
|
|
1191
1304
|
"children",
|
|
1192
1305
|
"selectedValues",
|
|
@@ -1194,11 +1307,11 @@ const Pt = _.Group, Lt = h.forwardRef((d, o) => {
|
|
|
1194
1307
|
"isMultiple",
|
|
1195
1308
|
"size"
|
|
1196
1309
|
]);
|
|
1197
|
-
return /* @__PURE__ */
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
ref:
|
|
1201
|
-
className:
|
|
1310
|
+
return /* @__PURE__ */ o(V.Portal, { children: /* @__PURE__ */ S(
|
|
1311
|
+
V.Content,
|
|
1312
|
+
D(w({
|
|
1313
|
+
ref: d,
|
|
1314
|
+
className: g(
|
|
1202
1315
|
// z-[9999] для отображения поверх модалок и попапов (обычно они имеют z-50 или z-100)
|
|
1203
1316
|
"bg-popover text-popover-foreground border-border relative z-[9999] max-h-80 w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
1204
1317
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -1206,70 +1319,70 @@ const Pt = _.Group, Lt = h.forwardRef((d, o) => {
|
|
|
1206
1319
|
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
1207
1320
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
1208
1321
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1209
|
-
|
|
1322
|
+
t
|
|
1210
1323
|
),
|
|
1211
1324
|
position: "popper",
|
|
1212
1325
|
sideOffset: 4
|
|
1213
|
-
},
|
|
1326
|
+
}, l), {
|
|
1214
1327
|
children: [
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
var
|
|
1218
|
-
if (!
|
|
1219
|
-
return
|
|
1220
|
-
if (((
|
|
1221
|
-
const
|
|
1222
|
-
return
|
|
1223
|
-
selected:
|
|
1224
|
-
size:
|
|
1328
|
+
/* @__PURE__ */ o(gt, {}),
|
|
1329
|
+
/* @__PURE__ */ o(V.Viewport, { className: "box-border flex w-full min-w-[var(--radix-select-trigger-width)] flex-col gap-0.5 p-1", children: N.Children.map(e, (i) => {
|
|
1330
|
+
var p;
|
|
1331
|
+
if (!N.isValidElement(i))
|
|
1332
|
+
return i;
|
|
1333
|
+
if (((p = i.type) == null ? void 0 : p.displayName) === "SelectItem") {
|
|
1334
|
+
const b = n ? r.includes(i.props.value) : a === i.props.value;
|
|
1335
|
+
return N.cloneElement(i, {
|
|
1336
|
+
selected: b,
|
|
1337
|
+
size: s || "md"
|
|
1225
1338
|
});
|
|
1226
1339
|
}
|
|
1227
|
-
return
|
|
1340
|
+
return i;
|
|
1228
1341
|
}) }),
|
|
1229
|
-
/* @__PURE__ */
|
|
1342
|
+
/* @__PURE__ */ o(bt, {})
|
|
1230
1343
|
]
|
|
1231
1344
|
})
|
|
1232
1345
|
) });
|
|
1233
1346
|
}
|
|
1234
1347
|
);
|
|
1235
|
-
|
|
1236
|
-
const
|
|
1237
|
-
var
|
|
1238
|
-
return /* @__PURE__ */
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
ref:
|
|
1242
|
-
className:
|
|
1348
|
+
vt.displayName = "SelectContent";
|
|
1349
|
+
const Vt = N.forwardRef((a, r) => {
|
|
1350
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
1351
|
+
return /* @__PURE__ */ o(
|
|
1352
|
+
V.Label,
|
|
1353
|
+
w({
|
|
1354
|
+
ref: r,
|
|
1355
|
+
className: g(
|
|
1243
1356
|
"font-graphik text-secondary px-2 py-1.5 text-[12px]",
|
|
1244
|
-
|
|
1357
|
+
t
|
|
1245
1358
|
)
|
|
1246
1359
|
}, e)
|
|
1247
1360
|
);
|
|
1248
1361
|
});
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1251
|
-
var
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
ref:
|
|
1256
|
-
className:
|
|
1362
|
+
Vt.displayName = "SelectLabel";
|
|
1363
|
+
const Gt = N.forwardRef((a, r) => {
|
|
1364
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
1365
|
+
return /* @__PURE__ */ o(
|
|
1366
|
+
V.Separator,
|
|
1367
|
+
w({
|
|
1368
|
+
ref: r,
|
|
1369
|
+
className: g("hidden", t)
|
|
1257
1370
|
}, e)
|
|
1258
1371
|
);
|
|
1259
1372
|
});
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
(
|
|
1263
|
-
var
|
|
1264
|
-
children:
|
|
1373
|
+
Gt.displayName = "SelectSeparator";
|
|
1374
|
+
const en = V.Root, Xt = N.forwardRef(
|
|
1375
|
+
(i, h) => {
|
|
1376
|
+
var p = i, {
|
|
1377
|
+
children: t,
|
|
1265
1378
|
selectedValues: e = [],
|
|
1266
|
-
onValuesChange:
|
|
1379
|
+
onValuesChange: r,
|
|
1267
1380
|
disabled: a,
|
|
1268
|
-
open:
|
|
1269
|
-
onOpenChange:
|
|
1270
|
-
dir:
|
|
1271
|
-
size:
|
|
1272
|
-
} =
|
|
1381
|
+
open: n,
|
|
1382
|
+
onOpenChange: s,
|
|
1383
|
+
dir: l,
|
|
1384
|
+
size: d = "md"
|
|
1385
|
+
} = p, u = E(p, [
|
|
1273
1386
|
"children",
|
|
1274
1387
|
"selectedValues",
|
|
1275
1388
|
"onValuesChange",
|
|
@@ -1279,49 +1392,49 @@ const _t = _.Root, qe = h.forwardRef(
|
|
|
1279
1392
|
"dir",
|
|
1280
1393
|
"size"
|
|
1281
1394
|
]);
|
|
1282
|
-
const
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
},
|
|
1395
|
+
const b = (c) => {
|
|
1396
|
+
const v = e.includes(c) ? e.filter((y) => y !== c) : [...e, c];
|
|
1397
|
+
r == null || r(v);
|
|
1398
|
+
}, x = (c) => {
|
|
1286
1399
|
if (a)
|
|
1287
1400
|
return;
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1401
|
+
const v = e.filter((y) => y !== c);
|
|
1402
|
+
r == null || r(v);
|
|
1290
1403
|
};
|
|
1291
|
-
return /* @__PURE__ */
|
|
1292
|
-
|
|
1293
|
-
|
|
1404
|
+
return /* @__PURE__ */ Ft(
|
|
1405
|
+
V.Root,
|
|
1406
|
+
D(w({}, u), {
|
|
1294
1407
|
disabled: a,
|
|
1295
1408
|
key: e.sort().join("|"),
|
|
1296
1409
|
value: void 0,
|
|
1297
1410
|
defaultValue: void 0,
|
|
1298
|
-
onValueChange:
|
|
1299
|
-
open:
|
|
1300
|
-
onOpenChange:
|
|
1411
|
+
onValueChange: b,
|
|
1412
|
+
open: n,
|
|
1413
|
+
onOpenChange: s
|
|
1301
1414
|
}),
|
|
1302
|
-
|
|
1303
|
-
var
|
|
1304
|
-
return
|
|
1415
|
+
N.Children.map(t, (c) => {
|
|
1416
|
+
var v, y;
|
|
1417
|
+
return N.isValidElement(c) ? ((v = c.type) == null ? void 0 : v.displayName) === "SelectTrigger" ? N.cloneElement(c, D(w({}, c.props), {
|
|
1305
1418
|
multiple: !0,
|
|
1306
1419
|
selectedValues: e,
|
|
1307
|
-
onValueRemove:
|
|
1420
|
+
onValueRemove: x,
|
|
1308
1421
|
disabled: a,
|
|
1309
|
-
size:
|
|
1310
|
-
})) : ((
|
|
1422
|
+
size: d
|
|
1423
|
+
})) : ((y = c.type) == null ? void 0 : y.displayName) === "SelectContent" ? N.cloneElement(c, D(w({}, c.props), {
|
|
1311
1424
|
selectedValues: e,
|
|
1312
1425
|
value: void 0,
|
|
1313
1426
|
isMultiple: !0,
|
|
1314
|
-
size:
|
|
1315
|
-
})) :
|
|
1427
|
+
size: d
|
|
1428
|
+
})) : c : c;
|
|
1316
1429
|
})
|
|
1317
1430
|
);
|
|
1318
1431
|
}
|
|
1319
1432
|
);
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
const
|
|
1433
|
+
Xt.displayName = "MultiSelect";
|
|
1434
|
+
yt.displayName = "SelectTrigger";
|
|
1435
|
+
vt.displayName = "SelectContent";
|
|
1436
|
+
xt.displayName = "SelectItem";
|
|
1437
|
+
const Zt = ie(
|
|
1325
1438
|
"group peer cursor-pointer border-border focus:border-primary focus:shadow-focus disabled:cursor-not-allowed shrink-0 rounded-sm border focus:outline-none flex items-center justify-center",
|
|
1326
1439
|
{
|
|
1327
1440
|
variants: {
|
|
@@ -1345,7 +1458,7 @@ const Qe = W(
|
|
|
1345
1458
|
isDisabled: !1
|
|
1346
1459
|
}
|
|
1347
1460
|
}
|
|
1348
|
-
),
|
|
1461
|
+
), qt = ie(
|
|
1349
1462
|
"rounded-[2px] bg-primary shrink-0 group-hover:bg-primary-hover group-disabled:group-hover:bg-primary group-active:bg-primary-active",
|
|
1350
1463
|
{
|
|
1351
1464
|
variants: {
|
|
@@ -1356,58 +1469,58 @@ const Qe = W(
|
|
|
1356
1469
|
}
|
|
1357
1470
|
}
|
|
1358
1471
|
);
|
|
1359
|
-
function
|
|
1472
|
+
function Jt(t) {
|
|
1360
1473
|
const {
|
|
1361
1474
|
className: e,
|
|
1362
|
-
checkboxClassName:
|
|
1475
|
+
checkboxClassName: r,
|
|
1363
1476
|
size: a = "md",
|
|
1364
|
-
label:
|
|
1365
|
-
disabled:
|
|
1366
|
-
checked:
|
|
1367
|
-
id:
|
|
1477
|
+
label: n,
|
|
1478
|
+
disabled: s,
|
|
1479
|
+
checked: l,
|
|
1480
|
+
id: d,
|
|
1368
1481
|
onCheckedChange: u,
|
|
1369
|
-
ref:
|
|
1370
|
-
"data-testid":
|
|
1371
|
-
} =
|
|
1372
|
-
|
|
1373
|
-
},
|
|
1374
|
-
|
|
1482
|
+
ref: h,
|
|
1483
|
+
"data-testid": i
|
|
1484
|
+
} = t, p = a === "md" ? 16 : 24, b = N.useId(), x = d || b, c = s || !1, [v, y] = N.useState(!1), I = l !== void 0, k = I ? l : v, T = () => k === !0 ? "checked" : k === "indeterminate" ? "indeterminate" : "unchecked", F = (M) => {
|
|
1485
|
+
I && u ? u(M) : I || y(M);
|
|
1486
|
+
}, L = /* @__PURE__ */ o(
|
|
1487
|
+
ut.Root,
|
|
1375
1488
|
{
|
|
1376
|
-
ref:
|
|
1377
|
-
id:
|
|
1378
|
-
className:
|
|
1379
|
-
|
|
1380
|
-
|
|
1489
|
+
ref: h,
|
|
1490
|
+
id: x,
|
|
1491
|
+
className: g(
|
|
1492
|
+
Zt({ size: a, state: T(), isDisabled: c }),
|
|
1493
|
+
r || (n ? void 0 : e)
|
|
1381
1494
|
),
|
|
1382
|
-
disabled:
|
|
1383
|
-
checked:
|
|
1384
|
-
onCheckedChange:
|
|
1385
|
-
"data-testid":
|
|
1386
|
-
children: /* @__PURE__ */
|
|
1387
|
-
|
|
1388
|
-
|
|
1495
|
+
disabled: c,
|
|
1496
|
+
checked: k,
|
|
1497
|
+
onCheckedChange: F,
|
|
1498
|
+
"data-testid": i,
|
|
1499
|
+
children: /* @__PURE__ */ S(ut.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
1500
|
+
k === "indeterminate" && /* @__PURE__ */ o("div", { className: qt({ size: a }) }),
|
|
1501
|
+
k === !0 && /* @__PURE__ */ o(P, { icon: "DoneIcon", size: p, className: "text-white" })
|
|
1389
1502
|
] })
|
|
1390
1503
|
}
|
|
1391
1504
|
);
|
|
1392
|
-
return
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1505
|
+
return n ? /* @__PURE__ */ S("div", { className: g("items-top flex flex-row space-x-2", e), children: [
|
|
1506
|
+
/* @__PURE__ */ o("div", { className: g(a === "md" && "pt-0.5"), children: L }),
|
|
1507
|
+
/* @__PURE__ */ o(
|
|
1395
1508
|
"label",
|
|
1396
1509
|
{
|
|
1397
|
-
htmlFor:
|
|
1398
|
-
className:
|
|
1510
|
+
htmlFor: x,
|
|
1511
|
+
className: g(
|
|
1399
1512
|
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
1400
|
-
|
|
1513
|
+
c && "cursor-not-allowed opacity-40",
|
|
1401
1514
|
a === "lg" && "pt-0.5"
|
|
1402
1515
|
),
|
|
1403
|
-
children:
|
|
1516
|
+
children: n
|
|
1404
1517
|
}
|
|
1405
1518
|
)
|
|
1406
|
-
] }) :
|
|
1519
|
+
] }) : L;
|
|
1407
1520
|
}
|
|
1408
|
-
const
|
|
1409
|
-
(
|
|
1410
|
-
),
|
|
1521
|
+
const Ge = N.forwardRef(
|
|
1522
|
+
(t, e) => /* @__PURE__ */ o(Jt, D(w({}, t), { ref: e }))
|
|
1523
|
+
), Qt = ie("flex-col items-center justify-center", {
|
|
1411
1524
|
variants: {
|
|
1412
1525
|
show: {
|
|
1413
1526
|
true: "flex",
|
|
@@ -1417,45 +1530,45 @@ const Mt = h.forwardRef(
|
|
|
1417
1530
|
defaultVariants: {
|
|
1418
1531
|
show: !0
|
|
1419
1532
|
}
|
|
1420
|
-
}),
|
|
1421
|
-
(
|
|
1422
|
-
var
|
|
1423
|
-
return /* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
|
|
1533
|
+
}), ze = N.forwardRef(
|
|
1534
|
+
(l, s) => {
|
|
1535
|
+
var d = l, { size: t = 16, show: e, children: r, className: a } = d, n = E(d, ["size", "show", "children", "className"]);
|
|
1536
|
+
return /* @__PURE__ */ S("span", D(w({ ref: s, className: Qt({ show: e }) }, n), { children: [
|
|
1537
|
+
/* @__PURE__ */ o(
|
|
1538
|
+
P,
|
|
1426
1539
|
{
|
|
1427
1540
|
icon: "ProgressActivityIcon",
|
|
1428
|
-
size:
|
|
1429
|
-
className:
|
|
1541
|
+
size: t,
|
|
1542
|
+
className: g("text-primary animate-spin", a)
|
|
1430
1543
|
}
|
|
1431
1544
|
),
|
|
1432
|
-
|
|
1545
|
+
r
|
|
1433
1546
|
] }));
|
|
1434
1547
|
}
|
|
1435
1548
|
);
|
|
1436
|
-
|
|
1437
|
-
function
|
|
1438
|
-
return /* @__PURE__ */
|
|
1549
|
+
ze.displayName = "Spinner";
|
|
1550
|
+
function Yt({ className: t }) {
|
|
1551
|
+
return /* @__PURE__ */ o("div", { className: g("bg-default-background h-[1px] w-full", t) });
|
|
1439
1552
|
}
|
|
1440
|
-
const
|
|
1441
|
-
(
|
|
1442
|
-
var
|
|
1443
|
-
className:
|
|
1553
|
+
const er = N.forwardRef(
|
|
1554
|
+
(I, y) => {
|
|
1555
|
+
var k = I, {
|
|
1556
|
+
className: t,
|
|
1444
1557
|
href: e = "#",
|
|
1445
|
-
children:
|
|
1558
|
+
children: r,
|
|
1446
1559
|
target: a = "_self",
|
|
1447
|
-
onClick:
|
|
1448
|
-
onKeyDown:
|
|
1449
|
-
disabled:
|
|
1450
|
-
tabIndex:
|
|
1560
|
+
onClick: n,
|
|
1561
|
+
onKeyDown: s,
|
|
1562
|
+
disabled: l = !1,
|
|
1563
|
+
tabIndex: d,
|
|
1451
1564
|
asChild: u = !1,
|
|
1452
|
-
"data-cy":
|
|
1453
|
-
"data-testid":
|
|
1454
|
-
icon:
|
|
1455
|
-
iconPosition:
|
|
1456
|
-
iconSize:
|
|
1457
|
-
iconClassName:
|
|
1458
|
-
} =
|
|
1565
|
+
"data-cy": h,
|
|
1566
|
+
"data-testid": i,
|
|
1567
|
+
icon: p,
|
|
1568
|
+
iconPosition: b = "left",
|
|
1569
|
+
iconSize: x,
|
|
1570
|
+
iconClassName: c
|
|
1571
|
+
} = k, v = E(k, [
|
|
1459
1572
|
"className",
|
|
1460
1573
|
"href",
|
|
1461
1574
|
"children",
|
|
@@ -1472,140 +1585,140 @@ const et = h.forwardRef(
|
|
|
1472
1585
|
"iconSize",
|
|
1473
1586
|
"iconClassName"
|
|
1474
1587
|
]);
|
|
1475
|
-
const
|
|
1476
|
-
if (
|
|
1588
|
+
const T = (R) => {
|
|
1589
|
+
if (l) {
|
|
1477
1590
|
R.preventDefault(), R.stopPropagation();
|
|
1478
1591
|
return;
|
|
1479
1592
|
}
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
if (
|
|
1593
|
+
n == null || n(R);
|
|
1594
|
+
}, F = (R) => {
|
|
1595
|
+
if (l && (R.key === "Enter" || R.key === " ")) {
|
|
1483
1596
|
R.preventDefault(), R.stopPropagation();
|
|
1484
1597
|
return;
|
|
1485
1598
|
}
|
|
1486
|
-
|
|
1487
|
-
},
|
|
1599
|
+
s == null || s(R);
|
|
1600
|
+
}, L = g(
|
|
1488
1601
|
"inline-flex items-center whitespace-break-spaces no-underline font-graphik border-0 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
|
|
1489
1602
|
"data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
|
|
1490
|
-
|
|
1603
|
+
t
|
|
1491
1604
|
);
|
|
1492
|
-
if (!
|
|
1493
|
-
const R =
|
|
1494
|
-
return u ? /* @__PURE__ */
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
ref:
|
|
1498
|
-
className:
|
|
1499
|
-
"data-cy":
|
|
1500
|
-
"data-testid":
|
|
1501
|
-
"aria-disabled":
|
|
1502
|
-
"data-disabled":
|
|
1503
|
-
tabIndex:
|
|
1504
|
-
onClick:
|
|
1505
|
-
onKeyDown:
|
|
1506
|
-
},
|
|
1605
|
+
if (!p) {
|
|
1606
|
+
const R = r;
|
|
1607
|
+
return u ? /* @__PURE__ */ o(
|
|
1608
|
+
Ue,
|
|
1609
|
+
D(w({
|
|
1610
|
+
ref: y,
|
|
1611
|
+
className: L,
|
|
1612
|
+
"data-cy": h,
|
|
1613
|
+
"data-testid": i,
|
|
1614
|
+
"aria-disabled": l || void 0,
|
|
1615
|
+
"data-disabled": l || void 0,
|
|
1616
|
+
tabIndex: l ? -1 : d,
|
|
1617
|
+
onClick: T,
|
|
1618
|
+
onKeyDown: F
|
|
1619
|
+
}, v), {
|
|
1507
1620
|
children: R
|
|
1508
1621
|
})
|
|
1509
|
-
) : /* @__PURE__ */
|
|
1622
|
+
) : /* @__PURE__ */ o(
|
|
1510
1623
|
"a",
|
|
1511
|
-
|
|
1512
|
-
ref:
|
|
1513
|
-
},
|
|
1514
|
-
href:
|
|
1624
|
+
D(w({
|
|
1625
|
+
ref: y
|
|
1626
|
+
}, v), {
|
|
1627
|
+
href: l ? void 0 : e,
|
|
1515
1628
|
target: a,
|
|
1516
1629
|
rel: "noopener noreferrer",
|
|
1517
|
-
className:
|
|
1518
|
-
"aria-disabled":
|
|
1519
|
-
"data-disabled":
|
|
1520
|
-
tabIndex:
|
|
1521
|
-
onClick:
|
|
1522
|
-
onKeyDown:
|
|
1523
|
-
"data-cy":
|
|
1524
|
-
"data-testid":
|
|
1630
|
+
className: L,
|
|
1631
|
+
"aria-disabled": l || void 0,
|
|
1632
|
+
"data-disabled": l || void 0,
|
|
1633
|
+
tabIndex: l ? -1 : d,
|
|
1634
|
+
onClick: T,
|
|
1635
|
+
onKeyDown: F,
|
|
1636
|
+
"data-cy": h,
|
|
1637
|
+
"data-testid": i,
|
|
1525
1638
|
children: R
|
|
1526
1639
|
})
|
|
1527
1640
|
);
|
|
1528
1641
|
}
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
-
|
|
1642
|
+
const M = /* @__PURE__ */ o(P, { icon: p, size: x, className: g("shrink-0", c) }), z = /* @__PURE__ */ S("span", { className: "inline-flex items-center gap-2", children: [
|
|
1643
|
+
b === "left" && M,
|
|
1644
|
+
/* @__PURE__ */ o("span", { className: "inline-flex min-w-0", children: r }),
|
|
1645
|
+
b === "right" && M
|
|
1533
1646
|
] });
|
|
1534
|
-
return u ? /* @__PURE__ */
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
ref:
|
|
1538
|
-
className:
|
|
1539
|
-
|
|
1540
|
-
|
|
1647
|
+
return u ? /* @__PURE__ */ o(
|
|
1648
|
+
Ue,
|
|
1649
|
+
D(w({
|
|
1650
|
+
ref: y,
|
|
1651
|
+
className: g(
|
|
1652
|
+
L,
|
|
1653
|
+
t
|
|
1541
1654
|
),
|
|
1542
|
-
"data-cy":
|
|
1543
|
-
"data-testid":
|
|
1544
|
-
"aria-disabled":
|
|
1545
|
-
"data-disabled":
|
|
1546
|
-
tabIndex:
|
|
1547
|
-
onClick:
|
|
1548
|
-
onKeyDown:
|
|
1549
|
-
},
|
|
1550
|
-
children:
|
|
1655
|
+
"data-cy": h,
|
|
1656
|
+
"data-testid": i,
|
|
1657
|
+
"aria-disabled": l || void 0,
|
|
1658
|
+
"data-disabled": l || void 0,
|
|
1659
|
+
tabIndex: l ? -1 : d,
|
|
1660
|
+
onClick: T,
|
|
1661
|
+
onKeyDown: F
|
|
1662
|
+
}, v), {
|
|
1663
|
+
children: z
|
|
1551
1664
|
})
|
|
1552
|
-
) : /* @__PURE__ */
|
|
1665
|
+
) : /* @__PURE__ */ o(
|
|
1553
1666
|
"a",
|
|
1554
|
-
|
|
1555
|
-
ref:
|
|
1556
|
-
},
|
|
1557
|
-
href:
|
|
1667
|
+
D(w({
|
|
1668
|
+
ref: y
|
|
1669
|
+
}, v), {
|
|
1670
|
+
href: l ? void 0 : e,
|
|
1558
1671
|
target: a,
|
|
1559
1672
|
rel: "noopener noreferrer",
|
|
1560
|
-
"aria-disabled":
|
|
1561
|
-
"data-disabled":
|
|
1562
|
-
tabIndex:
|
|
1563
|
-
onClick:
|
|
1564
|
-
onKeyDown:
|
|
1565
|
-
className:
|
|
1566
|
-
|
|
1673
|
+
"aria-disabled": l || void 0,
|
|
1674
|
+
"data-disabled": l || void 0,
|
|
1675
|
+
tabIndex: l ? -1 : d,
|
|
1676
|
+
onClick: T,
|
|
1677
|
+
onKeyDown: F,
|
|
1678
|
+
className: g(
|
|
1679
|
+
L,
|
|
1567
1680
|
"gap-2",
|
|
1568
|
-
|
|
1681
|
+
t
|
|
1569
1682
|
),
|
|
1570
|
-
"data-cy":
|
|
1571
|
-
"data-testid":
|
|
1572
|
-
children:
|
|
1683
|
+
"data-cy": h,
|
|
1684
|
+
"data-testid": i,
|
|
1685
|
+
children: z
|
|
1573
1686
|
})
|
|
1574
1687
|
);
|
|
1575
1688
|
}
|
|
1576
1689
|
);
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1690
|
+
er.displayName = "Link";
|
|
1691
|
+
const tr = {
|
|
1579
1692
|
sm: "md:w-100",
|
|
1580
1693
|
md: "md:w-150",
|
|
1581
1694
|
lg: "md:w-200"
|
|
1582
|
-
},
|
|
1583
|
-
var
|
|
1584
|
-
return /* @__PURE__ */
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
ref:
|
|
1588
|
-
className:
|
|
1695
|
+
}, tn = Q.Root, rn = Q.Trigger, rr = Q.Portal, nn = Q.Close, wt = N.forwardRef((a, r) => {
|
|
1696
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
1697
|
+
return /* @__PURE__ */ o(
|
|
1698
|
+
Q.Overlay,
|
|
1699
|
+
w({
|
|
1700
|
+
ref: r,
|
|
1701
|
+
className: g(
|
|
1589
1702
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[rgba(37,29,53,0.48)]",
|
|
1590
|
-
|
|
1703
|
+
t
|
|
1591
1704
|
)
|
|
1592
1705
|
}, e)
|
|
1593
1706
|
);
|
|
1594
1707
|
});
|
|
1595
|
-
|
|
1596
|
-
const
|
|
1597
|
-
(
|
|
1598
|
-
var
|
|
1599
|
-
className:
|
|
1708
|
+
wt.displayName = Q.Overlay.displayName;
|
|
1709
|
+
const nr = N.forwardRef(
|
|
1710
|
+
(p, i) => {
|
|
1711
|
+
var b = p, {
|
|
1712
|
+
className: t,
|
|
1600
1713
|
children: e,
|
|
1601
|
-
showClose:
|
|
1714
|
+
showClose: r = !0,
|
|
1602
1715
|
footer: a,
|
|
1603
|
-
disabledPadding:
|
|
1604
|
-
classNameFooter:
|
|
1605
|
-
hideOverlay:
|
|
1606
|
-
fullScreen:
|
|
1716
|
+
disabledPadding: n = !1,
|
|
1717
|
+
classNameFooter: s,
|
|
1718
|
+
hideOverlay: l = !1,
|
|
1719
|
+
fullScreen: d = !1,
|
|
1607
1720
|
width: u = "sm"
|
|
1608
|
-
} =
|
|
1721
|
+
} = b, h = E(b, [
|
|
1609
1722
|
"className",
|
|
1610
1723
|
"children",
|
|
1611
1724
|
"showClose",
|
|
@@ -1616,83 +1729,83 @@ const at = h.forwardRef(
|
|
|
1616
1729
|
"fullScreen",
|
|
1617
1730
|
"width"
|
|
1618
1731
|
]);
|
|
1619
|
-
const
|
|
1620
|
-
return
|
|
1621
|
-
const
|
|
1622
|
-
|
|
1732
|
+
const x = oe(null), [c, v] = Ne(!1);
|
|
1733
|
+
return Re(() => {
|
|
1734
|
+
const y = () => {
|
|
1735
|
+
x.current && v(x.current.scrollTop > 0);
|
|
1623
1736
|
};
|
|
1624
1737
|
return setTimeout(() => {
|
|
1625
|
-
const
|
|
1626
|
-
|
|
1738
|
+
const I = x.current;
|
|
1739
|
+
I && I.addEventListener("scroll", y);
|
|
1627
1740
|
}, 2e3), () => {
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1741
|
+
const I = x.current;
|
|
1742
|
+
I && I.removeEventListener("scroll", y);
|
|
1630
1743
|
};
|
|
1631
|
-
}, []), /* @__PURE__ */
|
|
1632
|
-
!
|
|
1633
|
-
/* @__PURE__ */
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
ref:
|
|
1637
|
-
onOpenAutoFocus: (
|
|
1638
|
-
|
|
1744
|
+
}, []), /* @__PURE__ */ S(rr, { children: [
|
|
1745
|
+
!l && /* @__PURE__ */ o(wt, {}),
|
|
1746
|
+
/* @__PURE__ */ o(
|
|
1747
|
+
Q.Content,
|
|
1748
|
+
D(w({
|
|
1749
|
+
ref: i,
|
|
1750
|
+
onOpenAutoFocus: (y) => {
|
|
1751
|
+
y.preventDefault();
|
|
1639
1752
|
},
|
|
1640
|
-
className:
|
|
1753
|
+
className: g(
|
|
1641
1754
|
"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 fixed z-50 box-border w-full gap-4 duration-200",
|
|
1642
1755
|
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom right-0 bottom-0 left-0 rounded-t-xl md:[right:unset] md:[bottom:unset]",
|
|
1643
1756
|
"md:data-[state=closed]:slide-out-to-left-1/2 md:data-[state=closed]:slide-out-to-top-[48%] md:data-[state=open]:slide-in-from-left-1/2 md:data-[state=open]:slide-in-from-top-[48%] md:top-[50%] md:left-[50%] md:translate-x-[-50%] md:translate-y-[-50%] md:rounded-4xl",
|
|
1644
1757
|
"max-h-[100vh] overflow-hidden bg-white p-4 md:max-h-[calc(100vh-40px)] md:p-6",
|
|
1645
|
-
|
|
1646
|
-
{ "p-0 md:p-0":
|
|
1647
|
-
{ "w-full md:h-full md:max-h-full md:w-full":
|
|
1648
|
-
|
|
1758
|
+
tr[u],
|
|
1759
|
+
{ "p-0 md:p-0": n },
|
|
1760
|
+
{ "w-full md:h-full md:max-h-full md:w-full": d },
|
|
1761
|
+
t
|
|
1649
1762
|
)
|
|
1650
|
-
},
|
|
1651
|
-
children: /* @__PURE__ */
|
|
1763
|
+
}, h), {
|
|
1764
|
+
children: /* @__PURE__ */ S(
|
|
1652
1765
|
"div",
|
|
1653
1766
|
{
|
|
1654
|
-
className:
|
|
1767
|
+
className: g(
|
|
1655
1768
|
"relative flex h-full max-h-[calc(100vh-32px)] flex-col md:max-h-[calc(100vh-40px-48px)]",
|
|
1656
|
-
{ "max-h-[100vh] md:max-h-[calc(100vh-40px)]":
|
|
1769
|
+
{ "max-h-[100vh] md:max-h-[calc(100vh-40px)]": n },
|
|
1657
1770
|
{
|
|
1658
|
-
"h-full w-full md:h-full md:max-h-[calc(100vh-48px)] md:w-full":
|
|
1771
|
+
"h-full w-full md:h-full md:max-h-[calc(100vh-48px)] md:w-full": d
|
|
1659
1772
|
}
|
|
1660
1773
|
),
|
|
1661
1774
|
children: [
|
|
1662
|
-
/* @__PURE__ */
|
|
1775
|
+
/* @__PURE__ */ o(
|
|
1663
1776
|
"div",
|
|
1664
1777
|
{
|
|
1665
1778
|
className: "no-scrollbar flex flex-col overflow-y-auto",
|
|
1666
|
-
ref:
|
|
1779
|
+
ref: x,
|
|
1667
1780
|
children: e
|
|
1668
1781
|
}
|
|
1669
1782
|
),
|
|
1670
|
-
a && /* @__PURE__ */
|
|
1783
|
+
a && /* @__PURE__ */ o(
|
|
1671
1784
|
"div",
|
|
1672
1785
|
{
|
|
1673
|
-
className:
|
|
1786
|
+
className: g(
|
|
1674
1787
|
"bottom-0 z-[1] flex pt-4 transition-shadow duration-200 md:pt-6",
|
|
1675
|
-
{ "shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]":
|
|
1676
|
-
{ "p-4 md:p-6":
|
|
1788
|
+
{ "shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]": c },
|
|
1789
|
+
{ "p-4 md:p-6": n },
|
|
1677
1790
|
{
|
|
1678
|
-
"mx-[-18px] px-[18px] md:mx-[-26px] md:px-[26px]": !
|
|
1791
|
+
"mx-[-18px] px-[18px] md:mx-[-26px] md:px-[26px]": !n
|
|
1679
1792
|
},
|
|
1680
|
-
|
|
1793
|
+
s
|
|
1681
1794
|
),
|
|
1682
1795
|
children: a
|
|
1683
1796
|
}
|
|
1684
1797
|
),
|
|
1685
|
-
|
|
1686
|
-
|
|
1798
|
+
r && /* @__PURE__ */ o(
|
|
1799
|
+
Q.Close,
|
|
1687
1800
|
{
|
|
1688
1801
|
tabIndex: -1,
|
|
1689
|
-
className:
|
|
1802
|
+
className: g(
|
|
1690
1803
|
"absolute top-[-8px] right-[-8px] border-0 bg-transparent p-0",
|
|
1691
|
-
{ "top-2 right-2":
|
|
1804
|
+
{ "top-2 right-2": n }
|
|
1692
1805
|
),
|
|
1693
1806
|
asChild: !0,
|
|
1694
|
-
children: /* @__PURE__ */
|
|
1695
|
-
|
|
1807
|
+
children: /* @__PURE__ */ o(
|
|
1808
|
+
Be,
|
|
1696
1809
|
{
|
|
1697
1810
|
variant: "text",
|
|
1698
1811
|
className: "text-secondary",
|
|
@@ -1710,45 +1823,45 @@ const at = h.forwardRef(
|
|
|
1710
1823
|
] });
|
|
1711
1824
|
}
|
|
1712
1825
|
);
|
|
1713
|
-
|
|
1714
|
-
function
|
|
1715
|
-
var a =
|
|
1716
|
-
className:
|
|
1717
|
-
} = a, e =
|
|
1826
|
+
nr.displayName = Q.Content.displayName;
|
|
1827
|
+
function ar(r) {
|
|
1828
|
+
var a = r, {
|
|
1829
|
+
className: t
|
|
1830
|
+
} = a, e = E(a, [
|
|
1718
1831
|
"className"
|
|
1719
1832
|
]);
|
|
1720
|
-
return /* @__PURE__ */
|
|
1833
|
+
return /* @__PURE__ */ o("div", w({ className: g("flex flex-col space-y-1.5", t) }, e));
|
|
1721
1834
|
}
|
|
1722
|
-
|
|
1723
|
-
const
|
|
1724
|
-
var
|
|
1725
|
-
return /* @__PURE__ */
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
ref:
|
|
1729
|
-
className:
|
|
1835
|
+
ar.displayName = "DialogHeader";
|
|
1836
|
+
const or = N.forwardRef((a, r) => {
|
|
1837
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
1838
|
+
return /* @__PURE__ */ o(
|
|
1839
|
+
Q.Title,
|
|
1840
|
+
w({
|
|
1841
|
+
ref: r,
|
|
1842
|
+
className: g(
|
|
1730
1843
|
"",
|
|
1731
1844
|
{
|
|
1732
1845
|
"font-graphik m-0 mb-2 pr-3 text-[28px] leading-[32px] font-bold md:mb-4": !e.asChild
|
|
1733
1846
|
},
|
|
1734
|
-
|
|
1847
|
+
t
|
|
1735
1848
|
)
|
|
1736
1849
|
}, e)
|
|
1737
1850
|
);
|
|
1738
1851
|
});
|
|
1739
|
-
|
|
1740
|
-
const
|
|
1741
|
-
var
|
|
1742
|
-
return /* @__PURE__ */
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
ref:
|
|
1746
|
-
className:
|
|
1852
|
+
or.displayName = Q.Title.displayName;
|
|
1853
|
+
const ir = N.forwardRef((a, r) => {
|
|
1854
|
+
var n = a, { className: t } = n, e = E(n, ["className"]);
|
|
1855
|
+
return /* @__PURE__ */ o(
|
|
1856
|
+
Q.Description,
|
|
1857
|
+
w({
|
|
1858
|
+
ref: r,
|
|
1859
|
+
className: g("", t)
|
|
1747
1860
|
}, e)
|
|
1748
1861
|
);
|
|
1749
1862
|
});
|
|
1750
|
-
|
|
1751
|
-
const
|
|
1863
|
+
ir.displayName = Q.Description.displayName;
|
|
1864
|
+
const sr = ie(
|
|
1752
1865
|
"peer relative inline-flex shrink-0 items-center justify-center rounded-full border transition-colors focus:outline-none focus:shadow-focus disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-border cursor-pointer",
|
|
1753
1866
|
{
|
|
1754
1867
|
variants: {
|
|
@@ -1783,23 +1896,23 @@ const st = W(
|
|
|
1783
1896
|
}
|
|
1784
1897
|
]
|
|
1785
1898
|
}
|
|
1786
|
-
),
|
|
1787
|
-
(
|
|
1788
|
-
var
|
|
1789
|
-
className:
|
|
1899
|
+
), dr = N.forwardRef(
|
|
1900
|
+
(v, c) => {
|
|
1901
|
+
var y = v, {
|
|
1902
|
+
className: t,
|
|
1790
1903
|
size: e,
|
|
1791
|
-
label:
|
|
1904
|
+
label: r,
|
|
1792
1905
|
checked: a,
|
|
1793
|
-
disabled:
|
|
1794
|
-
value:
|
|
1795
|
-
id:
|
|
1796
|
-
name:
|
|
1906
|
+
disabled: n,
|
|
1907
|
+
value: s,
|
|
1908
|
+
id: l,
|
|
1909
|
+
name: d,
|
|
1797
1910
|
onValueChange: u,
|
|
1798
|
-
onClick:
|
|
1799
|
-
onFocus:
|
|
1800
|
-
onBlur:
|
|
1801
|
-
"data-testid":
|
|
1802
|
-
} =
|
|
1911
|
+
onClick: h,
|
|
1912
|
+
onFocus: i,
|
|
1913
|
+
onBlur: p,
|
|
1914
|
+
"data-testid": b
|
|
1915
|
+
} = y, x = E(y, [
|
|
1803
1916
|
"className",
|
|
1804
1917
|
"size",
|
|
1805
1918
|
"label",
|
|
@@ -1814,71 +1927,71 @@ const st = W(
|
|
|
1814
1927
|
"onBlur",
|
|
1815
1928
|
"data-testid"
|
|
1816
1929
|
]);
|
|
1817
|
-
const
|
|
1818
|
-
return /* @__PURE__ */
|
|
1930
|
+
const I = a || !1, k = n || !1, T = N.useId(), F = l || `${T}-radio`;
|
|
1931
|
+
return /* @__PURE__ */ o(
|
|
1819
1932
|
"label",
|
|
1820
1933
|
{
|
|
1821
|
-
htmlFor:
|
|
1822
|
-
className:
|
|
1934
|
+
htmlFor: F,
|
|
1935
|
+
className: g(
|
|
1823
1936
|
"select-none",
|
|
1824
|
-
|
|
1937
|
+
k ? "cursor-not-allowed opacity-40" : "cursor-pointer"
|
|
1825
1938
|
),
|
|
1826
|
-
children: /* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
className:
|
|
1831
|
-
|
|
1939
|
+
children: /* @__PURE__ */ S("div", { className: "flex items-center gap-2.5", children: [
|
|
1940
|
+
/* @__PURE__ */ o(
|
|
1941
|
+
_e.Item,
|
|
1942
|
+
D(w({
|
|
1943
|
+
className: g(
|
|
1944
|
+
sr({
|
|
1832
1945
|
size: e,
|
|
1833
|
-
isChecked:
|
|
1946
|
+
isChecked: I,
|
|
1834
1947
|
dotSize: e
|
|
1835
1948
|
}),
|
|
1836
|
-
|
|
1949
|
+
t
|
|
1837
1950
|
),
|
|
1838
1951
|
checked: a,
|
|
1839
|
-
disabled:
|
|
1840
|
-
value:
|
|
1841
|
-
id:
|
|
1842
|
-
},
|
|
1843
|
-
ref:
|
|
1844
|
-
"data-testid":
|
|
1952
|
+
disabled: k,
|
|
1953
|
+
value: s,
|
|
1954
|
+
id: F
|
|
1955
|
+
}, x), {
|
|
1956
|
+
ref: c,
|
|
1957
|
+
"data-testid": b
|
|
1845
1958
|
})
|
|
1846
1959
|
),
|
|
1847
|
-
|
|
1960
|
+
r && /* @__PURE__ */ o("span", { children: r })
|
|
1848
1961
|
] })
|
|
1849
1962
|
}
|
|
1850
1963
|
);
|
|
1851
1964
|
}
|
|
1852
1965
|
);
|
|
1853
|
-
|
|
1854
|
-
const
|
|
1855
|
-
var
|
|
1856
|
-
return /* @__PURE__ */
|
|
1857
|
-
e && /* @__PURE__ */
|
|
1858
|
-
|
|
1966
|
+
dr.displayName = _e.Item.displayName;
|
|
1967
|
+
const lr = N.forwardRef((l, s) => {
|
|
1968
|
+
var d = l, { className: t, label: e, error: r, size: a = "md" } = d, n = E(d, ["className", "label", "error", "size"]);
|
|
1969
|
+
return /* @__PURE__ */ S("div", { className: "w-full", children: [
|
|
1970
|
+
e && /* @__PURE__ */ o(
|
|
1971
|
+
O,
|
|
1859
1972
|
{
|
|
1860
1973
|
variant: "p3",
|
|
1861
1974
|
weight: "medium",
|
|
1862
|
-
className:
|
|
1975
|
+
className: g({
|
|
1863
1976
|
"mb-1.5 text-[14px]": a === "md",
|
|
1864
1977
|
"mb-2.5 text-[16px]": a === "lg"
|
|
1865
1978
|
}),
|
|
1866
1979
|
children: e
|
|
1867
1980
|
}
|
|
1868
1981
|
),
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
className:
|
|
1873
|
-
},
|
|
1874
|
-
ref:
|
|
1982
|
+
/* @__PURE__ */ o(
|
|
1983
|
+
_e.Root,
|
|
1984
|
+
D(w({
|
|
1985
|
+
className: g("grid gap-1.5", t)
|
|
1986
|
+
}, n), {
|
|
1987
|
+
ref: s
|
|
1875
1988
|
})
|
|
1876
1989
|
),
|
|
1877
|
-
|
|
1990
|
+
r && /* @__PURE__ */ o(O, { variant: "p2", className: "mt-1", textColor: "destructive", children: r })
|
|
1878
1991
|
] });
|
|
1879
1992
|
});
|
|
1880
|
-
|
|
1881
|
-
const
|
|
1993
|
+
lr.displayName = _e.Root.displayName;
|
|
1994
|
+
const cr = ie(
|
|
1882
1995
|
"peer inline-flex shrink-0 items-center justify-start rounded-full border-none border-transparent transition-colors duration-200 focus:outline-none focus:shadow-focus p-0.5 data-[state=checked]:justify-end cursor-pointer disabled:cursor-not-allowed",
|
|
1883
1996
|
{
|
|
1884
1997
|
variants: {
|
|
@@ -1918,7 +2031,7 @@ const lt = W(
|
|
|
1918
2031
|
}
|
|
1919
2032
|
]
|
|
1920
2033
|
}
|
|
1921
|
-
),
|
|
2034
|
+
), ur = ie(
|
|
1922
2035
|
"pointer-events-none block rounded-full border-0 bg-background shadow-lg transition-all duration-200 ease-in-out",
|
|
1923
2036
|
{
|
|
1924
2037
|
variants: {
|
|
@@ -1931,68 +2044,939 @@ const lt = W(
|
|
|
1931
2044
|
size: "md"
|
|
1932
2045
|
}
|
|
1933
2046
|
}
|
|
1934
|
-
),
|
|
1935
|
-
var
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1938
|
-
},
|
|
1939
|
-
|
|
2047
|
+
), mr = N.forwardRef((i, h) => {
|
|
2048
|
+
var p = i, { className: t, size: e, label: r, loading: a, checked: n, disabled: s, "data-testid": l, onCheckedChange: d } = p, u = E(p, ["className", "size", "label", "loading", "checked", "disabled", "data-testid", "onCheckedChange"]);
|
|
2049
|
+
const b = n || !1, x = s || !1, c = oe(void 0), v = (I) => {
|
|
2050
|
+
c.current = I;
|
|
2051
|
+
}, y = (I) => {
|
|
2052
|
+
d && (d(I, c.current), c.current = void 0);
|
|
1940
2053
|
};
|
|
1941
|
-
return /* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
className:
|
|
1946
|
-
|
|
2054
|
+
return /* @__PURE__ */ S("div", { className: "flex items-center gap-2.5", children: [
|
|
2055
|
+
/* @__PURE__ */ o(
|
|
2056
|
+
Ve.Root,
|
|
2057
|
+
D(w({
|
|
2058
|
+
className: g(
|
|
2059
|
+
cr({
|
|
1947
2060
|
size: e,
|
|
1948
|
-
isChecked:
|
|
2061
|
+
isChecked: b,
|
|
1949
2062
|
isLoading: !!a,
|
|
1950
|
-
isDisabled:
|
|
2063
|
+
isDisabled: x
|
|
1951
2064
|
}),
|
|
1952
|
-
|
|
2065
|
+
t
|
|
1953
2066
|
),
|
|
1954
|
-
checked:
|
|
1955
|
-
disabled:
|
|
2067
|
+
checked: n,
|
|
2068
|
+
disabled: x,
|
|
1956
2069
|
isLoading: a,
|
|
1957
|
-
defaultChecked:
|
|
1958
|
-
ref:
|
|
1959
|
-
"data-testid":
|
|
1960
|
-
onCheckedChange:
|
|
1961
|
-
onClick:
|
|
2070
|
+
defaultChecked: n,
|
|
2071
|
+
ref: h,
|
|
2072
|
+
"data-testid": l,
|
|
2073
|
+
onCheckedChange: y,
|
|
2074
|
+
onClick: v
|
|
1962
2075
|
}, u), {
|
|
1963
|
-
children: /* @__PURE__ */
|
|
1964
|
-
|
|
2076
|
+
children: /* @__PURE__ */ o(
|
|
2077
|
+
Ve.Thumb,
|
|
1965
2078
|
{
|
|
1966
|
-
className:
|
|
1967
|
-
|
|
2079
|
+
className: g(
|
|
2080
|
+
ur({ size: e }),
|
|
1968
2081
|
a && "flex items-center justify-center"
|
|
1969
2082
|
),
|
|
1970
|
-
children: a && /* @__PURE__ */
|
|
1971
|
-
|
|
2083
|
+
children: a && /* @__PURE__ */ o(
|
|
2084
|
+
ze,
|
|
1972
2085
|
{
|
|
1973
2086
|
size: e === "lg" ? 16 : 8,
|
|
1974
|
-
className:
|
|
2087
|
+
className: n ? "text-primary" : "text-switch-background"
|
|
1975
2088
|
}
|
|
1976
2089
|
)
|
|
1977
2090
|
}
|
|
1978
2091
|
)
|
|
1979
2092
|
})
|
|
1980
2093
|
),
|
|
1981
|
-
|
|
2094
|
+
r && /* @__PURE__ */ o(
|
|
1982
2095
|
"label",
|
|
1983
2096
|
{
|
|
1984
|
-
className:
|
|
2097
|
+
className: g(
|
|
1985
2098
|
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
1986
|
-
|
|
2099
|
+
x && "cursor-not-allowed opacity-40",
|
|
1987
2100
|
e === "lg" && "pt-0.5"
|
|
1988
2101
|
),
|
|
1989
|
-
children:
|
|
2102
|
+
children: r
|
|
1990
2103
|
}
|
|
1991
2104
|
)
|
|
1992
2105
|
] });
|
|
1993
2106
|
});
|
|
1994
|
-
|
|
1995
|
-
|
|
2107
|
+
mr.displayName = Ve.Root.displayName;
|
|
2108
|
+
function Je(t) {
|
|
2109
|
+
return t === "center" ? "text-center" : t === "right" ? "text-right" : "text-left";
|
|
2110
|
+
}
|
|
2111
|
+
function fr(t) {
|
|
2112
|
+
return t === "center" ? "justify-center" : t === "right" ? "justify-end" : "justify-start";
|
|
2113
|
+
}
|
|
2114
|
+
const ft = new URL("../assets/empty-box-ByMlwLaV.png", import.meta.url).href;
|
|
2115
|
+
function Nt({
|
|
2116
|
+
locale: t,
|
|
2117
|
+
className: e
|
|
2118
|
+
}) {
|
|
2119
|
+
var n, s;
|
|
2120
|
+
const r = (n = t == null ? void 0 : t.emptyTitle) != null ? n : "Всё чисто", a = (s = t == null ? void 0 : t.emptyDescription) != null ? s : "Добавьте что-нибудь, чтобы начать работу";
|
|
2121
|
+
return t != null && t.emptyText ? /* @__PURE__ */ S(
|
|
2122
|
+
"div",
|
|
2123
|
+
{
|
|
2124
|
+
className: e != null ? e : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
2125
|
+
role: "status",
|
|
2126
|
+
"aria-label": "Пустая таблица",
|
|
2127
|
+
children: [
|
|
2128
|
+
/* @__PURE__ */ o(
|
|
2129
|
+
"img",
|
|
2130
|
+
{
|
|
2131
|
+
src: ft,
|
|
2132
|
+
alt: "",
|
|
2133
|
+
className: "h-24 w-24 select-none",
|
|
2134
|
+
draggable: !1
|
|
2135
|
+
}
|
|
2136
|
+
),
|
|
2137
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-1", children: /* @__PURE__ */ o(O, { variant: "h4", weight: "medium", children: t.emptyText }) })
|
|
2138
|
+
]
|
|
2139
|
+
}
|
|
2140
|
+
) : /* @__PURE__ */ S(
|
|
2141
|
+
"div",
|
|
2142
|
+
{
|
|
2143
|
+
className: e != null ? e : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
2144
|
+
role: "status",
|
|
2145
|
+
"aria-label": "Пустая таблица",
|
|
2146
|
+
children: [
|
|
2147
|
+
/* @__PURE__ */ o(
|
|
2148
|
+
"img",
|
|
2149
|
+
{
|
|
2150
|
+
src: ft,
|
|
2151
|
+
alt: "",
|
|
2152
|
+
className: "h-24 w-24 select-none",
|
|
2153
|
+
draggable: !1
|
|
2154
|
+
}
|
|
2155
|
+
),
|
|
2156
|
+
/* @__PURE__ */ S("div", { className: "flex flex-col items-center gap-1", children: [
|
|
2157
|
+
/* @__PURE__ */ o(O, { variant: "h4", weight: "medium", children: r }),
|
|
2158
|
+
/* @__PURE__ */ o(O, { variant: "p2", children: a })
|
|
2159
|
+
] })
|
|
2160
|
+
]
|
|
2161
|
+
}
|
|
2162
|
+
);
|
|
2163
|
+
}
|
|
2164
|
+
const pr = "4px 0 8px -6px rgba(0, 0, 0, 0.14)", hr = "-4px 0 8px -6px rgba(0, 0, 0, 0.14)";
|
|
2165
|
+
function Qe(t, e) {
|
|
2166
|
+
return e ? t ? `${t}, ${e}` : e : t;
|
|
2167
|
+
}
|
|
2168
|
+
function gr(t, e) {
|
|
2169
|
+
let r = null, a = null;
|
|
2170
|
+
for (let n = 0; n < t.length; n += 1) {
|
|
2171
|
+
const s = t[n];
|
|
2172
|
+
s.fixed === "left" && (r = e(s, n));
|
|
2173
|
+
}
|
|
2174
|
+
for (let n = 0; n < t.length; n += 1) {
|
|
2175
|
+
const s = t[n];
|
|
2176
|
+
if (s.fixed === "right") {
|
|
2177
|
+
a = e(s, n);
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
return { lastLeftId: r, firstRightId: a };
|
|
2182
|
+
}
|
|
2183
|
+
function br(t, e) {
|
|
2184
|
+
const r = {}, a = {};
|
|
2185
|
+
let n = 0;
|
|
2186
|
+
t.forEach((l, d) => {
|
|
2187
|
+
if (l.fixed !== "left")
|
|
2188
|
+
return;
|
|
2189
|
+
const u = e(l, d);
|
|
2190
|
+
r[u] = n;
|
|
2191
|
+
const h = typeof l.width == "number" ? l.width : typeof l.minWidth == "number" ? l.minWidth : 0;
|
|
2192
|
+
n += h;
|
|
2193
|
+
});
|
|
2194
|
+
let s = 0;
|
|
2195
|
+
for (let l = t.length - 1; l >= 0; l -= 1) {
|
|
2196
|
+
const d = t[l];
|
|
2197
|
+
if (d.fixed !== "right")
|
|
2198
|
+
continue;
|
|
2199
|
+
const u = e(d, l);
|
|
2200
|
+
a[u] = s;
|
|
2201
|
+
const h = typeof d.width == "number" ? d.width : typeof d.minWidth == "number" ? d.minWidth : 0;
|
|
2202
|
+
s += h;
|
|
2203
|
+
}
|
|
2204
|
+
return { left: r, right: a };
|
|
2205
|
+
}
|
|
2206
|
+
function Ye(t, e, r) {
|
|
2207
|
+
var a, n;
|
|
2208
|
+
return t === "left" ? { left: `${(a = r.left[e]) != null ? a : 0}px` } : t === "right" ? { right: `${(n = r.right[e]) != null ? n : 0}px` } : {};
|
|
2209
|
+
}
|
|
2210
|
+
function et(t, e, r, a) {
|
|
2211
|
+
if (t === "left" && r.lastLeftId === e && a.canScrollLeft)
|
|
2212
|
+
return pr;
|
|
2213
|
+
if (t === "right" && r.firstRightId === e && a.canScrollRight)
|
|
2214
|
+
return hr;
|
|
2215
|
+
}
|
|
2216
|
+
function xr({
|
|
2217
|
+
table: t,
|
|
2218
|
+
columnsCount: e,
|
|
2219
|
+
onRow: r,
|
|
2220
|
+
locale: a,
|
|
2221
|
+
stickyOffsets: n,
|
|
2222
|
+
fixedShadowEdges: s,
|
|
2223
|
+
scrollState: l,
|
|
2224
|
+
highlightNewRows: d = !1,
|
|
2225
|
+
tbodyDataTestId: u,
|
|
2226
|
+
rowDataTestId: h
|
|
2227
|
+
}) {
|
|
2228
|
+
const i = t.getRowModel().rows, [p, b] = Ne(() => /* @__PURE__ */ new Set()), x = oe(null), c = oe(/* @__PURE__ */ new Map());
|
|
2229
|
+
return Re(() => () => {
|
|
2230
|
+
c.current.forEach((v) => {
|
|
2231
|
+
window.clearTimeout(v);
|
|
2232
|
+
}), c.current.clear();
|
|
2233
|
+
}, []), Re(() => {
|
|
2234
|
+
if (!d) {
|
|
2235
|
+
x.current = null, b(/* @__PURE__ */ new Set()), c.current.forEach((k) => window.clearTimeout(k)), c.current.clear();
|
|
2236
|
+
return;
|
|
2237
|
+
}
|
|
2238
|
+
const v = i.map((k) => k.id);
|
|
2239
|
+
if (x.current === null) {
|
|
2240
|
+
x.current = new Set(v);
|
|
2241
|
+
return;
|
|
2242
|
+
}
|
|
2243
|
+
const y = x.current, I = v.filter((k) => !y.has(k));
|
|
2244
|
+
x.current = new Set(v), I.length !== 0 && (b((k) => {
|
|
2245
|
+
const T = new Set(k);
|
|
2246
|
+
return I.forEach((F) => T.add(F)), T;
|
|
2247
|
+
}), I.forEach((k) => {
|
|
2248
|
+
const T = c.current.get(k);
|
|
2249
|
+
T && window.clearTimeout(T);
|
|
2250
|
+
const F = window.setTimeout(() => {
|
|
2251
|
+
b((L) => {
|
|
2252
|
+
if (!L.has(k))
|
|
2253
|
+
return L;
|
|
2254
|
+
const M = new Set(L);
|
|
2255
|
+
return M.delete(k), M;
|
|
2256
|
+
}), c.current.delete(k);
|
|
2257
|
+
}, 1400);
|
|
2258
|
+
c.current.set(k, F);
|
|
2259
|
+
}));
|
|
2260
|
+
}, [d, i]), i.length === 0 ? /* @__PURE__ */ o("tbody", { "data-testid": u, children: /* @__PURE__ */ o("tr", { "data-testid": h, children: /* @__PURE__ */ o("td", { colSpan: Math.max(1, e), className: "p-0", children: /* @__PURE__ */ o(Nt, { locale: a }) }) }) }) : /* @__PURE__ */ o("tbody", { "data-testid": u, children: i.map((v) => {
|
|
2261
|
+
var R, Z, _, K;
|
|
2262
|
+
const y = v.index, I = (R = r == null ? void 0 : r(v.original, y)) != null ? R : {}, k = typeof I.onClick == "function", T = I.onClick, F = d && p.has(v.id), L = (j) => {
|
|
2263
|
+
var C;
|
|
2264
|
+
(C = I.onKeyDown) == null || C.call(I, j), k && (j.key !== "Enter" && j.key !== " " || (j.preventDefault(), j.currentTarget.click()));
|
|
2265
|
+
}, M = g(
|
|
2266
|
+
"group transition-colors",
|
|
2267
|
+
F && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
|
|
2268
|
+
// Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
|
|
2269
|
+
(r || k) && "cursor-pointer",
|
|
2270
|
+
I.className
|
|
2271
|
+
), z = g(
|
|
2272
|
+
"bg-background group-hover:bg-[#F6F6F7]",
|
|
2273
|
+
F && "bg-primary/5 group-hover:bg-primary/10"
|
|
2274
|
+
);
|
|
2275
|
+
return /* @__PURE__ */ o(
|
|
2276
|
+
"tr",
|
|
2277
|
+
D(w({
|
|
2278
|
+
"data-testid": h
|
|
2279
|
+
}, I), {
|
|
2280
|
+
"data-new": F ? "true" : void 0,
|
|
2281
|
+
className: M,
|
|
2282
|
+
onClick: T,
|
|
2283
|
+
onKeyDown: k ? L : I.onKeyDown,
|
|
2284
|
+
role: k ? (Z = I.role) != null ? Z : "button" : I.role,
|
|
2285
|
+
tabIndex: k ? (_ = I.tabIndex) != null ? _ : 0 : I.tabIndex,
|
|
2286
|
+
"aria-label": k ? (K = I["aria-label"]) != null ? K : "Открыть строку" : I["aria-label"],
|
|
2287
|
+
children: v.getVisibleCells().map((j) => {
|
|
2288
|
+
var se, de, ae;
|
|
2289
|
+
const C = j.column.columnDef.meta, fe = v.original, pe = y === i.length - 1, ee = pt(j.column.columnDef.cell, j.getContext()), re = (se = C == null ? void 0 : C.cellStyle) == null ? void 0 : se.call(C, fe, y), ge = (de = C == null ? void 0 : C.cellClassName) == null ? void 0 : de.call(C, fe, y), U = Je(C == null ? void 0 : C.align), be = Ye(C == null ? void 0 : C.fixed, j.column.id, n), xe = et(C == null ? void 0 : C.fixed, j.column.id, s, l);
|
|
2290
|
+
return /* @__PURE__ */ o(
|
|
2291
|
+
"td",
|
|
2292
|
+
{
|
|
2293
|
+
"data-testid": C == null ? void 0 : C["data-testid"],
|
|
2294
|
+
className: g(
|
|
2295
|
+
"align-top border-b border-default-background p-2",
|
|
2296
|
+
z,
|
|
2297
|
+
U,
|
|
2298
|
+
C == null ? void 0 : C.className,
|
|
2299
|
+
ge,
|
|
2300
|
+
pe && "border-b-0",
|
|
2301
|
+
((C == null ? void 0 : C.fixed) === "left" || (C == null ? void 0 : C.fixed) === "right") && "sticky z-10"
|
|
2302
|
+
),
|
|
2303
|
+
style: D(w(w({
|
|
2304
|
+
width: C == null ? void 0 : C.width,
|
|
2305
|
+
minWidth: C == null ? void 0 : C.minWidth,
|
|
2306
|
+
maxWidth: C == null ? void 0 : C.maxWidth
|
|
2307
|
+
}, re), be), {
|
|
2308
|
+
boxShadow: Qe(
|
|
2309
|
+
(ae = re == null ? void 0 : re.boxShadow) != null ? ae : void 0,
|
|
2310
|
+
xe
|
|
2311
|
+
)
|
|
2312
|
+
}),
|
|
2313
|
+
children: ee
|
|
2314
|
+
},
|
|
2315
|
+
j.id
|
|
2316
|
+
);
|
|
2317
|
+
})
|
|
2318
|
+
}),
|
|
2319
|
+
v.id
|
|
2320
|
+
);
|
|
2321
|
+
}) });
|
|
2322
|
+
}
|
|
2323
|
+
function yr({ columns: t }) {
|
|
2324
|
+
return /* @__PURE__ */ o("colgroup", { children: t.map((e, r) => {
|
|
2325
|
+
var s, l, d;
|
|
2326
|
+
const a = typeof e.width == "number" ? e.width : typeof e.minWidth == "number" ? e.minWidth : void 0, n = typeof e.maxWidth == "number" ? e.maxWidth : void 0;
|
|
2327
|
+
return /* @__PURE__ */ o(
|
|
2328
|
+
"col",
|
|
2329
|
+
{
|
|
2330
|
+
style: typeof a == "number" ? {
|
|
2331
|
+
width: `${a}px`,
|
|
2332
|
+
minWidth: `${a}px`,
|
|
2333
|
+
maxWidth: typeof n == "number" ? `${n}px` : `${a}px`
|
|
2334
|
+
} : void 0
|
|
2335
|
+
},
|
|
2336
|
+
String((d = (l = (s = e.key) != null ? s : e.columnKey) != null ? l : e.dataIndex) != null ? d : r)
|
|
2337
|
+
);
|
|
2338
|
+
}) });
|
|
2339
|
+
}
|
|
2340
|
+
function vr(t, e) {
|
|
2341
|
+
if (!e)
|
|
2342
|
+
return;
|
|
2343
|
+
const r = Array.isArray(e) ? e : e.split(".").filter(Boolean);
|
|
2344
|
+
let a = t;
|
|
2345
|
+
for (const n of r) {
|
|
2346
|
+
if (a == null || typeof a != "object")
|
|
2347
|
+
return;
|
|
2348
|
+
a = a[n];
|
|
2349
|
+
}
|
|
2350
|
+
return a;
|
|
2351
|
+
}
|
|
2352
|
+
function we(t, e) {
|
|
2353
|
+
return typeof t.dataIndex == "string" && t.dataIndex.length > 0 ? t.dataIndex : typeof t.columnKey == "string" && t.columnKey.length > 0 ? t.columnKey : typeof t.key == "string" && t.key.length > 0 ? t.key : `col_${e}`;
|
|
2354
|
+
}
|
|
2355
|
+
function wr(t, e) {
|
|
2356
|
+
var s, l, d, u;
|
|
2357
|
+
const r = we(t, e), a = typeof t.width == "number", n = {
|
|
2358
|
+
width: t.width,
|
|
2359
|
+
minWidth: (s = t.minWidth) != null ? s : a ? t.width : void 0,
|
|
2360
|
+
maxWidth: (l = t.maxWidth) != null ? l : a ? t.width : void 0,
|
|
2361
|
+
className: t.className,
|
|
2362
|
+
align: t.align,
|
|
2363
|
+
fixed: t.fixed,
|
|
2364
|
+
headerStyle: (u = (d = t.onHeaderCell) == null ? void 0 : d.call(t)) == null ? void 0 : u.style,
|
|
2365
|
+
"data-testid": t["data-testid"],
|
|
2366
|
+
defaultSortOrder: t.defaultSortOrder,
|
|
2367
|
+
cellStyle: t.onCell ? (h, i) => {
|
|
2368
|
+
var p, b;
|
|
2369
|
+
return (b = (p = t.onCell) == null ? void 0 : p.call(t, h, i)) == null ? void 0 : b.style;
|
|
2370
|
+
} : void 0,
|
|
2371
|
+
cellClassName: t.onCell ? (h, i) => {
|
|
2372
|
+
var p, b;
|
|
2373
|
+
return (b = (p = t.onCell) == null ? void 0 : p.call(t, h, i)) == null ? void 0 : b.className;
|
|
2374
|
+
} : void 0
|
|
2375
|
+
};
|
|
2376
|
+
return {
|
|
2377
|
+
id: r,
|
|
2378
|
+
accessorFn: (h) => {
|
|
2379
|
+
var i;
|
|
2380
|
+
return vr(h, (i = t.dataIndex) != null ? i : r);
|
|
2381
|
+
},
|
|
2382
|
+
enableSorting: !!t.sorter,
|
|
2383
|
+
meta: n,
|
|
2384
|
+
header: () => t.title,
|
|
2385
|
+
cell: (h) => {
|
|
2386
|
+
const i = h.row.original, p = h.row.index, b = h.getValue();
|
|
2387
|
+
return t.render ? t.render(b, i, p) : b;
|
|
2388
|
+
}
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
function Nr({
|
|
2392
|
+
table: t,
|
|
2393
|
+
columns: e,
|
|
2394
|
+
sorting: r,
|
|
2395
|
+
stickyHeader: a,
|
|
2396
|
+
showSorterTooltip: n,
|
|
2397
|
+
stickyOffsets: s,
|
|
2398
|
+
fixedShadowEdges: l,
|
|
2399
|
+
scrollState: d
|
|
2400
|
+
}) {
|
|
2401
|
+
return /* @__PURE__ */ o("thead", { children: t.getHeaderGroups().map((u) => /* @__PURE__ */ o("tr", { className: "h-[37px]", children: u.headers.map((h) => {
|
|
2402
|
+
var M;
|
|
2403
|
+
const i = h.column.columnDef.meta, p = h.column.getCanSort(), b = h.column.getIsSorted(), x = void 0, c = Je(i == null ? void 0 : i.align), v = Ye(i == null ? void 0 : i.fixed, h.column.id, s), y = et(i == null ? void 0 : i.fixed, h.column.id, l, d), I = p ? h.column.getToggleSortingHandler() : void 0, k = h.isPlaceholder ? null : pt(h.column.columnDef.header, h.getContext()), T = e.findIndex((z, R) => we(z, R) === h.column.id), F = T >= 0 ? e[T] : void 0, L = typeof (F == null ? void 0 : F.title) == "function" ? F.title({
|
|
2404
|
+
sortColumns: r.map((z) => ({
|
|
2405
|
+
column: { dataIndex: z.id, key: z.id, columnKey: z.id },
|
|
2406
|
+
order: z.desc ? "descend" : "ascend"
|
|
2407
|
+
}))
|
|
2408
|
+
}) : k;
|
|
2409
|
+
return /* @__PURE__ */ o(
|
|
2410
|
+
"th",
|
|
2411
|
+
{
|
|
2412
|
+
"data-testid": i == null ? void 0 : i["data-testid"],
|
|
2413
|
+
className: g(
|
|
2414
|
+
"bg-[#FBFBFB] align-middle",
|
|
2415
|
+
c,
|
|
2416
|
+
// antd-like typography for header (p1 + medium + secondary)
|
|
2417
|
+
"font-graphik text-[12px] leading-[16px] font-medium text-secondary",
|
|
2418
|
+
a && "sticky top-0 z-10",
|
|
2419
|
+
p && "cursor-pointer select-none",
|
|
2420
|
+
i == null ? void 0 : i.className,
|
|
2421
|
+
// antd-like: padding 8px, высота ~37px
|
|
2422
|
+
"group border-b border-default-background p-2",
|
|
2423
|
+
((i == null ? void 0 : i.fixed) === "left" || (i == null ? void 0 : i.fixed) === "right") && "sticky z-20"
|
|
2424
|
+
),
|
|
2425
|
+
style: D(w(D(w({}, i == null ? void 0 : i.headerStyle), {
|
|
2426
|
+
width: i == null ? void 0 : i.width,
|
|
2427
|
+
minWidth: i == null ? void 0 : i.minWidth,
|
|
2428
|
+
maxWidth: i == null ? void 0 : i.maxWidth
|
|
2429
|
+
}), v), {
|
|
2430
|
+
boxShadow: Qe(
|
|
2431
|
+
(M = i == null ? void 0 : i.headerStyle) == null ? void 0 : M.boxShadow,
|
|
2432
|
+
y
|
|
2433
|
+
)
|
|
2434
|
+
}),
|
|
2435
|
+
onClick: I,
|
|
2436
|
+
children: /* @__PURE__ */ S("div", { className: g("flex w-full items-center gap-2", fr(i == null ? void 0 : i.align)), children: [
|
|
2437
|
+
L,
|
|
2438
|
+
p && /* @__PURE__ */ o("span", { title: x, className: "inline-flex items-center", children: /* @__PURE__ */ o(
|
|
2439
|
+
P,
|
|
2440
|
+
{
|
|
2441
|
+
"aria-hidden": !0,
|
|
2442
|
+
icon: b === "asc" ? "ArrowUpIcon" : b === "desc" ? "ArrowDownIcon" : "UnfoldIcon",
|
|
2443
|
+
size: 16,
|
|
2444
|
+
className: g(
|
|
2445
|
+
// antd-like: base 0.45 = secondary, hover тоже оставляем в secondary (без “черного”)
|
|
2446
|
+
"text-secondary",
|
|
2447
|
+
p && "group-hover:text-secondary"
|
|
2448
|
+
)
|
|
2449
|
+
}
|
|
2450
|
+
) })
|
|
2451
|
+
] })
|
|
2452
|
+
},
|
|
2453
|
+
h.id
|
|
2454
|
+
);
|
|
2455
|
+
}) }, u.id)) });
|
|
2456
|
+
}
|
|
2457
|
+
function kr({
|
|
2458
|
+
table: t,
|
|
2459
|
+
rowsCount: e,
|
|
2460
|
+
stickyOffsets: r,
|
|
2461
|
+
fixedShadowEdges: a,
|
|
2462
|
+
scrollState: n
|
|
2463
|
+
}) {
|
|
2464
|
+
const s = Math.max(1, Math.floor(e));
|
|
2465
|
+
return /* @__PURE__ */ o(Ze, { children: Array.from({ length: s }).map((l, d) => {
|
|
2466
|
+
const u = d === s - 1, h = t.getVisibleLeafColumns();
|
|
2467
|
+
return /* @__PURE__ */ o("tr", { className: "animate-pulse", children: h.map((i) => {
|
|
2468
|
+
const p = i.columnDef.meta, b = Je(p == null ? void 0 : p.align), x = Ye(p == null ? void 0 : p.fixed, i.id, r), c = et(p == null ? void 0 : p.fixed, i.id, a, n);
|
|
2469
|
+
return /* @__PURE__ */ o(
|
|
2470
|
+
"td",
|
|
2471
|
+
{
|
|
2472
|
+
className: g(
|
|
2473
|
+
"align-top border-b border-border p-2",
|
|
2474
|
+
b,
|
|
2475
|
+
u && "border-b-0",
|
|
2476
|
+
((p == null ? void 0 : p.fixed) === "left" || (p == null ? void 0 : p.fixed) === "right") && "sticky z-10 bg-background"
|
|
2477
|
+
),
|
|
2478
|
+
style: D(w({
|
|
2479
|
+
width: p == null ? void 0 : p.width,
|
|
2480
|
+
minWidth: p == null ? void 0 : p.minWidth,
|
|
2481
|
+
maxWidth: p == null ? void 0 : p.maxWidth
|
|
2482
|
+
}, x), {
|
|
2483
|
+
boxShadow: Qe(void 0, c)
|
|
2484
|
+
}),
|
|
2485
|
+
children: /* @__PURE__ */ o(
|
|
2486
|
+
"div",
|
|
2487
|
+
{
|
|
2488
|
+
className: g(
|
|
2489
|
+
"h-3 w-full rounded bg-muted",
|
|
2490
|
+
(p == null ? void 0 : p.align) === "center" && "mx-auto",
|
|
2491
|
+
(p == null ? void 0 : p.align) === "right" && "ml-auto"
|
|
2492
|
+
),
|
|
2493
|
+
style: {
|
|
2494
|
+
// Комментарий: небольшая “рандомизация” ширины, чтобы выглядело естественнее
|
|
2495
|
+
width: `${Math.max(40, 90 - d * 7 % 40)}%`
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
)
|
|
2499
|
+
},
|
|
2500
|
+
`skeleton_${d}_${i.id}`
|
|
2501
|
+
);
|
|
2502
|
+
}) }, `skeleton_${d}`);
|
|
2503
|
+
}) });
|
|
2504
|
+
}
|
|
2505
|
+
const Ir = {
|
|
2506
|
+
hasOverflowX: !1,
|
|
2507
|
+
canScrollLeft: !1,
|
|
2508
|
+
canScrollRight: !1
|
|
2509
|
+
};
|
|
2510
|
+
function Cr(t, e) {
|
|
2511
|
+
const [r, a] = Ne(Ir);
|
|
2512
|
+
return Re(() => {
|
|
2513
|
+
const n = t.current;
|
|
2514
|
+
if (!n)
|
|
2515
|
+
return;
|
|
2516
|
+
const s = () => {
|
|
2517
|
+
const l = n.scrollWidth - n.clientWidth, d = l > 1, u = n.scrollLeft > 1, h = n.scrollLeft < l - 1;
|
|
2518
|
+
a((i) => i.hasOverflowX === d && i.canScrollLeft === u && i.canScrollRight === h ? i : { hasOverflowX: d, canScrollLeft: u, canScrollRight: h });
|
|
2519
|
+
};
|
|
2520
|
+
return s(), n.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s), () => {
|
|
2521
|
+
n.removeEventListener("scroll", s), window.removeEventListener("resize", s);
|
|
2522
|
+
};
|
|
2523
|
+
}, [t, ...e]), r;
|
|
2524
|
+
}
|
|
2525
|
+
function an({
|
|
2526
|
+
className: t,
|
|
2527
|
+
tableClassName: e,
|
|
2528
|
+
loading: r,
|
|
2529
|
+
loadingRows: a,
|
|
2530
|
+
scroll: n,
|
|
2531
|
+
stickyHeader: s = !1,
|
|
2532
|
+
onChange: l,
|
|
2533
|
+
columns: d,
|
|
2534
|
+
dataSource: u,
|
|
2535
|
+
data: h,
|
|
2536
|
+
systemStyles: i = !0,
|
|
2537
|
+
hideStickyScrollbar: p,
|
|
2538
|
+
clientSort: b = !1,
|
|
2539
|
+
rowKey: x,
|
|
2540
|
+
rowSelection: c,
|
|
2541
|
+
highlightNewRows: v = !1,
|
|
2542
|
+
pagination: y,
|
|
2543
|
+
showHeader: I = !0,
|
|
2544
|
+
showSorterTooltip: k = !0,
|
|
2545
|
+
onRow: T,
|
|
2546
|
+
locale: F,
|
|
2547
|
+
tbodyDataTestId: L,
|
|
2548
|
+
rowDataTestId: M = "item"
|
|
2549
|
+
}) {
|
|
2550
|
+
var nt, at, ot;
|
|
2551
|
+
const z = (nt = u != null ? u : h) != null ? nt : [], R = !!r, Z = Math.max(1, Math.floor(a != null ? a : 10)), _ = oe(null), K = !!c, j = (at = c == null ? void 0 : c.selectAllMode) != null ? at : (c == null ? void 0 : c.selectAllScope) === "all" ? "all" : "page", [C, fe] = Ne(
|
|
2552
|
+
() => {
|
|
2553
|
+
var A;
|
|
2554
|
+
return (A = c == null ? void 0 : c.defaultSelectedRowKeys) != null ? A : [];
|
|
2555
|
+
}
|
|
2556
|
+
), pe = (c == null ? void 0 : c.selectedRowKeys) !== void 0, ee = (ot = c == null ? void 0 : c.selectedRowKeys) != null ? ot : C, re = J(() => new Set(ee.map((A) => String(A))), [ee]), ge = J(() => K ? {
|
|
2557
|
+
key: "__row_selection__",
|
|
2558
|
+
title: null,
|
|
2559
|
+
width: 44,
|
|
2560
|
+
minWidth: 44,
|
|
2561
|
+
maxWidth: 44,
|
|
2562
|
+
fixed: "left",
|
|
2563
|
+
align: "center",
|
|
2564
|
+
className: "p-2",
|
|
2565
|
+
"data-testid": "table-row-selection"
|
|
2566
|
+
} : null, [K]), U = J(() => ge ? [ge, ...d] : d, [d, ge]), be = J(
|
|
2567
|
+
() => U.some((A) => typeof A.width == "number"),
|
|
2568
|
+
[U]
|
|
2569
|
+
), xe = J(
|
|
2570
|
+
() => U.some((A) => A.fixed === "left" || A.fixed === "right"),
|
|
2571
|
+
[U]
|
|
2572
|
+
), se = J(
|
|
2573
|
+
() => gr(U, we),
|
|
2574
|
+
[U]
|
|
2575
|
+
), de = J(
|
|
2576
|
+
() => br(U, we),
|
|
2577
|
+
[U]
|
|
2578
|
+
), ae = J(() => (A, $) => {
|
|
2579
|
+
if (typeof x == "function")
|
|
2580
|
+
return x(A);
|
|
2581
|
+
if (x) {
|
|
2582
|
+
const W = A == null ? void 0 : A[x];
|
|
2583
|
+
return W != null ? W : $;
|
|
2584
|
+
}
|
|
2585
|
+
return $;
|
|
2586
|
+
}, [x]), Pe = J(() => {
|
|
2587
|
+
const A = K ? [
|
|
2588
|
+
{
|
|
2589
|
+
id: "__row_selection__",
|
|
2590
|
+
enableSorting: !1,
|
|
2591
|
+
meta: {
|
|
2592
|
+
width: 44,
|
|
2593
|
+
minWidth: 44,
|
|
2594
|
+
maxWidth: 44,
|
|
2595
|
+
fixed: "left",
|
|
2596
|
+
align: "center",
|
|
2597
|
+
className: "p-2",
|
|
2598
|
+
"data-testid": "table-row-selection"
|
|
2599
|
+
},
|
|
2600
|
+
header: (W) => {
|
|
2601
|
+
var st;
|
|
2602
|
+
const G = W.table.getRowModel().rows, Y = G.filter((H) => {
|
|
2603
|
+
var ce, X;
|
|
2604
|
+
return !((X = (ce = c == null ? void 0 : c.getCheckboxProps) == null ? void 0 : ce.call(c, H.original)) == null ? void 0 : X.disabled);
|
|
2605
|
+
}).map((H) => H.id), he = Y.reduce((H, ne) => re.has(ne) ? H + 1 : H, 0), ve = Y.length > 0 && he === Y.length, it = he > 0 && !ve, Ae = ve ? !0 : it ? "indeterminate" : !1, ke = ((st = c == null ? void 0 : c.allRowKeys) != null ? st : []).map((H) => String(H)), q = ke.length > 0 ? ke : Y, Le = q.reduce((H, ne) => re.has(ne) ? H + 1 : H, 0), Ie = q.length > 0 && Le === q.length, Ke = Le > 0 && !Ie, Me = Ie ? !0 : Ke ? "indeterminate" : !1, Ce = (H, ne, ce) => {
|
|
2606
|
+
var ue;
|
|
2607
|
+
const X = ne ? Array.from(new Map([...ee, ...H].map((te) => [String(te), te])).values()) : ee.filter((te) => !new Set(H.map((He) => String(He))).has(String(te)));
|
|
2608
|
+
pe || fe(X);
|
|
2609
|
+
const Se = W.table.getCoreRowModel().rows.filter((te) => new Set(X.map((He) => String(He))).has(te.id)).map((te) => te.original);
|
|
2610
|
+
(ue = c == null ? void 0 : c.onChange) == null || ue.call(c, X, Se, { type: ce });
|
|
2611
|
+
};
|
|
2612
|
+
return /* @__PURE__ */ o(Ge, { checked: j === "all" ? Me : Ae, onCheckedChange: j === "all" ? (H) => {
|
|
2613
|
+
var X, Se;
|
|
2614
|
+
const ne = H === !0, ce = (Se = (X = c == null ? void 0 : c.allRowKeys) != null && X.length ? c.allRowKeys : G.map((ue) => ae(ue.original, ue.index))) != null ? Se : [];
|
|
2615
|
+
Ce(ce, ne, "all");
|
|
2616
|
+
} : (H) => {
|
|
2617
|
+
const ne = H === !0, ce = G.filter((X) => {
|
|
2618
|
+
var ue, te;
|
|
2619
|
+
return !((te = (ue = c == null ? void 0 : c.getCheckboxProps) == null ? void 0 : ue.call(c, X.original)) == null ? void 0 : te.disabled);
|
|
2620
|
+
}).map((X) => ae(X.original, X.index));
|
|
2621
|
+
Ce(ce, ne, "page");
|
|
2622
|
+
}, "aria-label": j === "all" ? "Выбрать все элементы" : "Выбрать все строки на странице", "data-testid": j === "all" ? "table-select-all" : "table-select-page" });
|
|
2623
|
+
},
|
|
2624
|
+
cell: (W) => {
|
|
2625
|
+
var Ae, ke;
|
|
2626
|
+
const G = W.row.original, Y = W.row.id, he = !!((ke = (Ae = c == null ? void 0 : c.getCheckboxProps) == null ? void 0 : Ae.call(c, G)) != null && ke.disabled), ve = re.has(Y);
|
|
2627
|
+
return /* @__PURE__ */ o(
|
|
2628
|
+
"div",
|
|
2629
|
+
{
|
|
2630
|
+
className: "flex items-center justify-center",
|
|
2631
|
+
onClick: (q) => {
|
|
2632
|
+
q.preventDefault(), q.stopPropagation();
|
|
2633
|
+
},
|
|
2634
|
+
onKeyDown: (q) => {
|
|
2635
|
+
q.key !== "Enter" && q.key !== " " || (q.preventDefault(), q.stopPropagation());
|
|
2636
|
+
},
|
|
2637
|
+
children: /* @__PURE__ */ o(
|
|
2638
|
+
Ge,
|
|
2639
|
+
{
|
|
2640
|
+
disabled: he,
|
|
2641
|
+
checked: ve,
|
|
2642
|
+
onCheckedChange: (q) => {
|
|
2643
|
+
var Ce;
|
|
2644
|
+
const Le = q === !0;
|
|
2645
|
+
if (he)
|
|
2646
|
+
return;
|
|
2647
|
+
const Ie = ae(G, W.row.index), Ke = String(Ie), Me = Le ? Array.from(new Map([...ee, Ie].map((De) => [String(De), De])).values()) : ee.filter((De) => String(De) !== Ke);
|
|
2648
|
+
pe || fe(Me), (Ce = c == null ? void 0 : c.onChange) == null || Ce.call(c, Me, [G], { type: "row" });
|
|
2649
|
+
},
|
|
2650
|
+
"aria-label": `Выбрать строку ${Y}`,
|
|
2651
|
+
"data-testid": `table-select-row-${Y}`
|
|
2652
|
+
}
|
|
2653
|
+
)
|
|
2654
|
+
}
|
|
2655
|
+
);
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
] : [], $ = d.map((W, G) => wr(W, G));
|
|
2659
|
+
return [...A, ...$];
|
|
2660
|
+
}, [
|
|
2661
|
+
d,
|
|
2662
|
+
K,
|
|
2663
|
+
pe,
|
|
2664
|
+
c,
|
|
2665
|
+
j,
|
|
2666
|
+
re,
|
|
2667
|
+
ee,
|
|
2668
|
+
ae
|
|
2669
|
+
]), [le, tt] = Ne(() => {
|
|
2670
|
+
const A = d.findIndex((Y) => Y.defaultSortOrder), $ = A >= 0 ? d[A] : void 0, W = $ == null ? void 0 : $.defaultSortOrder, G = $ ? we($, A) : void 0;
|
|
2671
|
+
return !G || !W ? [] : [{ id: G, desc: W === "descend" }];
|
|
2672
|
+
}), ye = _t(D(w({
|
|
2673
|
+
data: z,
|
|
2674
|
+
columns: Pe,
|
|
2675
|
+
state: { sorting: le },
|
|
2676
|
+
onSortingChange: (A) => {
|
|
2677
|
+
const $ = typeof A == "function" ? A(le) : A;
|
|
2678
|
+
tt($);
|
|
2679
|
+
const W = $[0], G = W ? W.desc ? "descend" : "ascend" : void 0, Y = {
|
|
2680
|
+
columnKey: W == null ? void 0 : W.id,
|
|
2681
|
+
field: W == null ? void 0 : W.id,
|
|
2682
|
+
order: G,
|
|
2683
|
+
column: d.find((he, ve) => we(he, ve) === (W == null ? void 0 : W.id))
|
|
2684
|
+
};
|
|
2685
|
+
l == null || l(void 0, void 0, Y, { action: "sort" });
|
|
2686
|
+
},
|
|
2687
|
+
getCoreRowModel: Bt(),
|
|
2688
|
+
enableSortingRemoval: !0
|
|
2689
|
+
}, b ? { getSortedRowModel: zt() } : {}), {
|
|
2690
|
+
getRowId: x ? (A, $) => {
|
|
2691
|
+
if (typeof x == "function")
|
|
2692
|
+
return String(x(A));
|
|
2693
|
+
const W = A == null ? void 0 : A[x];
|
|
2694
|
+
return W != null ? String(W) : String($);
|
|
2695
|
+
} : void 0
|
|
2696
|
+
})), It = J(() => {
|
|
2697
|
+
const A = {};
|
|
2698
|
+
return (n == null ? void 0 : n.y) != null && (A.maxHeight = typeof n.y == "number" ? `${n.y}px` : n.y), A;
|
|
2699
|
+
}, [n == null ? void 0 : n.y]), je = J(() => U.reduce((A, $) => {
|
|
2700
|
+
const W = typeof $.width == "number" ? $.width : typeof $.minWidth == "number" ? $.minWidth : 0;
|
|
2701
|
+
return A + W;
|
|
2702
|
+
}, 0), [U]), Oe = J(() => (n == null ? void 0 : n.x) === "max-content" ? "max-content" : typeof (n == null ? void 0 : n.x) == "number" ? `${n.x}px` : typeof (n == null ? void 0 : n.x) == "string" ? n.x : je > 0 ? `${je}px` : "max-content", [n == null ? void 0 : n.x, je]), $e = Cr(_, [
|
|
2703
|
+
U,
|
|
2704
|
+
Oe,
|
|
2705
|
+
be,
|
|
2706
|
+
xe
|
|
2707
|
+
]);
|
|
2708
|
+
return /* @__PURE__ */ o(
|
|
2709
|
+
"div",
|
|
2710
|
+
{
|
|
2711
|
+
className: g(
|
|
2712
|
+
i && "rounded-lg border border-default-background bg-background",
|
|
2713
|
+
p && "scrollbar-hide",
|
|
2714
|
+
t
|
|
2715
|
+
),
|
|
2716
|
+
"aria-busy": r,
|
|
2717
|
+
children: /* @__PURE__ */ o(
|
|
2718
|
+
"div",
|
|
2719
|
+
{
|
|
2720
|
+
ref: _,
|
|
2721
|
+
className: g(
|
|
2722
|
+
"rounded-lg",
|
|
2723
|
+
"overflow-auto",
|
|
2724
|
+
"overflow-x-auto",
|
|
2725
|
+
// Комментарий: скелетон сам по себе “приглушенный”, не затемняем весь контейнер.
|
|
2726
|
+
R && "select-none"
|
|
2727
|
+
),
|
|
2728
|
+
style: It,
|
|
2729
|
+
children: /* @__PURE__ */ S(
|
|
2730
|
+
"table",
|
|
2731
|
+
{
|
|
2732
|
+
className: g(
|
|
2733
|
+
// Комментарий: таблица не должна ужиматься по ширине окна → держим натуральную ширину
|
|
2734
|
+
// w-full чтобы не было пустого места справа, min-w-max чтобы не ужималась ниже контента
|
|
2735
|
+
"w-full min-w-max table-auto border-separate border-spacing-0",
|
|
2736
|
+
e
|
|
2737
|
+
),
|
|
2738
|
+
style: Oe ? { minWidth: Oe } : void 0,
|
|
2739
|
+
children: [
|
|
2740
|
+
/* @__PURE__ */ o(yr, { columns: U }),
|
|
2741
|
+
I && /* @__PURE__ */ o(
|
|
2742
|
+
Nr,
|
|
2743
|
+
{
|
|
2744
|
+
table: ye,
|
|
2745
|
+
columns: d,
|
|
2746
|
+
sorting: le,
|
|
2747
|
+
stickyHeader: s,
|
|
2748
|
+
showSorterTooltip: k,
|
|
2749
|
+
stickyOffsets: de,
|
|
2750
|
+
fixedShadowEdges: se,
|
|
2751
|
+
scrollState: $e
|
|
2752
|
+
}
|
|
2753
|
+
),
|
|
2754
|
+
R ? /* @__PURE__ */ o("tbody", { children: /* @__PURE__ */ o(
|
|
2755
|
+
kr,
|
|
2756
|
+
{
|
|
2757
|
+
table: ye,
|
|
2758
|
+
rowsCount: Z,
|
|
2759
|
+
stickyOffsets: de,
|
|
2760
|
+
fixedShadowEdges: se,
|
|
2761
|
+
scrollState: $e
|
|
2762
|
+
}
|
|
2763
|
+
) }) : /* @__PURE__ */ o(
|
|
2764
|
+
xr,
|
|
2765
|
+
{
|
|
2766
|
+
table: ye,
|
|
2767
|
+
columnsCount: U.length,
|
|
2768
|
+
onRow: T,
|
|
2769
|
+
locale: F,
|
|
2770
|
+
stickyOffsets: de,
|
|
2771
|
+
fixedShadowEdges: se,
|
|
2772
|
+
scrollState: $e,
|
|
2773
|
+
highlightNewRows: v,
|
|
2774
|
+
tbodyDataTestId: L,
|
|
2775
|
+
rowDataTestId: M
|
|
2776
|
+
}
|
|
2777
|
+
)
|
|
2778
|
+
]
|
|
2779
|
+
}
|
|
2780
|
+
)
|
|
2781
|
+
}
|
|
2782
|
+
)
|
|
2783
|
+
}
|
|
2784
|
+
);
|
|
2785
|
+
}
|
|
2786
|
+
function Dr({
|
|
2787
|
+
rowsCount: t,
|
|
2788
|
+
linesCount: e,
|
|
2789
|
+
className: r
|
|
2790
|
+
}) {
|
|
2791
|
+
const a = Math.max(1, Math.floor(t)), n = Math.max(1, Math.floor(e)), s = (l, d, u) => {
|
|
2792
|
+
const h = Math.max(0, d - l);
|
|
2793
|
+
return `${l + u % (h + 1)}%`;
|
|
2794
|
+
};
|
|
2795
|
+
return /* @__PURE__ */ o("div", { className: g("flex flex-col gap-3", r), children: Array.from({ length: a }).map((l, d) => /* @__PURE__ */ o(
|
|
2796
|
+
qe,
|
|
2797
|
+
{
|
|
2798
|
+
bordered: !0,
|
|
2799
|
+
radius: "lg",
|
|
2800
|
+
padding: "xs",
|
|
2801
|
+
className: "animate-pulse",
|
|
2802
|
+
role: "status",
|
|
2803
|
+
"aria-label": "Загрузка карточки",
|
|
2804
|
+
children: /* @__PURE__ */ S("div", { className: "flex w-full flex-col gap-3", children: [
|
|
2805
|
+
/* @__PURE__ */ S("div", { className: "flex w-full items-start justify-between gap-3", children: [
|
|
2806
|
+
/* @__PURE__ */ o(
|
|
2807
|
+
"div",
|
|
2808
|
+
{
|
|
2809
|
+
className: "h-4 rounded bg-muted",
|
|
2810
|
+
style: { width: s(35, 60, d * 13) }
|
|
2811
|
+
}
|
|
2812
|
+
),
|
|
2813
|
+
/* @__PURE__ */ o(
|
|
2814
|
+
"div",
|
|
2815
|
+
{
|
|
2816
|
+
className: "h-4 rounded bg-muted",
|
|
2817
|
+
style: { width: s(18, 28, d * 17) }
|
|
2818
|
+
}
|
|
2819
|
+
)
|
|
2820
|
+
] }),
|
|
2821
|
+
/* @__PURE__ */ o("div", { className: "h-px w-full bg-default-background/70" }),
|
|
2822
|
+
/* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: n }).map((u, h) => /* @__PURE__ */ S(
|
|
2823
|
+
"div",
|
|
2824
|
+
{
|
|
2825
|
+
className: "flex w-full items-center justify-between gap-3",
|
|
2826
|
+
children: [
|
|
2827
|
+
/* @__PURE__ */ o(
|
|
2828
|
+
"div",
|
|
2829
|
+
{
|
|
2830
|
+
className: "h-3 rounded bg-muted",
|
|
2831
|
+
style: { width: s(22, 38, d * 19 + h * 7) }
|
|
2832
|
+
}
|
|
2833
|
+
),
|
|
2834
|
+
/* @__PURE__ */ o(
|
|
2835
|
+
"div",
|
|
2836
|
+
{
|
|
2837
|
+
className: "h-3 rounded bg-muted",
|
|
2838
|
+
style: { width: s(30, 62, d * 23 + h * 11) }
|
|
2839
|
+
}
|
|
2840
|
+
)
|
|
2841
|
+
]
|
|
2842
|
+
},
|
|
2843
|
+
`card_skeleton_${d}_${h}`
|
|
2844
|
+
)) }),
|
|
2845
|
+
/* @__PURE__ */ S("div", { className: "flex w-full items-center justify-end gap-2 pt-1", children: [
|
|
2846
|
+
/* @__PURE__ */ o(
|
|
2847
|
+
"div",
|
|
2848
|
+
{
|
|
2849
|
+
className: "h-6 rounded-full bg-muted",
|
|
2850
|
+
style: { width: s(18, 26, d * 29) }
|
|
2851
|
+
}
|
|
2852
|
+
),
|
|
2853
|
+
/* @__PURE__ */ o(
|
|
2854
|
+
"div",
|
|
2855
|
+
{
|
|
2856
|
+
className: "h-6 rounded-full bg-muted",
|
|
2857
|
+
style: { width: s(12, 20, d * 31) }
|
|
2858
|
+
}
|
|
2859
|
+
)
|
|
2860
|
+
] })
|
|
2861
|
+
] })
|
|
2862
|
+
},
|
|
2863
|
+
`card_skeleton_${d}`
|
|
2864
|
+
)) });
|
|
2865
|
+
}
|
|
2866
|
+
function on({
|
|
2867
|
+
items: t,
|
|
2868
|
+
loading: e,
|
|
2869
|
+
loadingRows: r,
|
|
2870
|
+
className: a,
|
|
2871
|
+
locale: n,
|
|
2872
|
+
getCardKey: s,
|
|
2873
|
+
getCardProps: l,
|
|
2874
|
+
children: d
|
|
2875
|
+
}) {
|
|
2876
|
+
const u = !!e, h = Math.max(1, Math.floor(r != null ? r : 10)), i = t != null ? t : [];
|
|
2877
|
+
return u ? /* @__PURE__ */ o("div", { className: g("flex flex-col gap-3 p-3", a), "aria-busy": e, children: /* @__PURE__ */ o(
|
|
2878
|
+
Dr,
|
|
2879
|
+
{
|
|
2880
|
+
rowsCount: h,
|
|
2881
|
+
linesCount: 6
|
|
2882
|
+
}
|
|
2883
|
+
) }) : i.length === 0 ? /* @__PURE__ */ o("div", { className: a, "aria-busy": e, children: /* @__PURE__ */ o(Nt, { locale: n }) }) : /* @__PURE__ */ o("div", { className: g("flex flex-col gap-2", a), "aria-busy": e, children: i.map((p, b) => {
|
|
2884
|
+
var T, F, L, M, z;
|
|
2885
|
+
const x = (T = l == null ? void 0 : l(p, b)) != null ? T : {}, c = typeof x.onClick == "function", v = (F = s == null ? void 0 : s(p, b)) != null ? F : b, y = x.onClick, I = (R) => {
|
|
2886
|
+
var Z;
|
|
2887
|
+
(Z = x.onKeyDown) == null || Z.call(x, R), c && (R.key !== "Enter" && R.key !== " " || (R.preventDefault(), R.currentTarget.click()));
|
|
2888
|
+
}, k = g(
|
|
2889
|
+
c && "cursor-pointer hover:bg-[#F6F6F7]",
|
|
2890
|
+
c && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
2891
|
+
x.className
|
|
2892
|
+
);
|
|
2893
|
+
return /* @__PURE__ */ o(
|
|
2894
|
+
qe,
|
|
2895
|
+
D(w({
|
|
2896
|
+
bordered: !0,
|
|
2897
|
+
radius: "lg",
|
|
2898
|
+
padding: "xs"
|
|
2899
|
+
}, x), {
|
|
2900
|
+
className: k,
|
|
2901
|
+
onClick: y,
|
|
2902
|
+
onKeyDown: c ? I : x.onKeyDown,
|
|
2903
|
+
role: c ? (L = x.role) != null ? L : "button" : x.role,
|
|
2904
|
+
tabIndex: c ? (M = x.tabIndex) != null ? M : 0 : x.tabIndex,
|
|
2905
|
+
"aria-label": c ? (z = x["aria-label"]) != null ? z : "Открыть карточку" : x["aria-label"],
|
|
2906
|
+
children: d == null ? void 0 : d(p, b)
|
|
2907
|
+
}),
|
|
2908
|
+
String(v)
|
|
2909
|
+
);
|
|
2910
|
+
}) });
|
|
2911
|
+
}
|
|
2912
|
+
function sn({
|
|
2913
|
+
title: t,
|
|
2914
|
+
controls: e,
|
|
2915
|
+
onChange: r,
|
|
2916
|
+
tooltip: a,
|
|
2917
|
+
"data-testid": n,
|
|
2918
|
+
"data-testid-button": s
|
|
2919
|
+
}) {
|
|
2920
|
+
const l = (d, u) => {
|
|
2921
|
+
r(d, u);
|
|
2922
|
+
};
|
|
2923
|
+
return /* @__PURE__ */ S(Ht, { children: [
|
|
2924
|
+
/* @__PURE__ */ o(Ut, { asChild: !0, children: /* @__PURE__ */ o(
|
|
2925
|
+
Be,
|
|
2926
|
+
{
|
|
2927
|
+
type: "button",
|
|
2928
|
+
variant: "text",
|
|
2929
|
+
size: "md",
|
|
2930
|
+
iconOnly: !0,
|
|
2931
|
+
icon: "SettingsIcon",
|
|
2932
|
+
"aria-label": a != null ? a : "Настройки таблицы",
|
|
2933
|
+
tabIndex: 0,
|
|
2934
|
+
"data-testid": s,
|
|
2935
|
+
title: a
|
|
2936
|
+
}
|
|
2937
|
+
) }),
|
|
2938
|
+
/* @__PURE__ */ S(
|
|
2939
|
+
ht,
|
|
2940
|
+
{
|
|
2941
|
+
align: "end",
|
|
2942
|
+
sideOffset: 8,
|
|
2943
|
+
className: "w-72 rounded-lg border border-border bg-popover p-1 shadow-md",
|
|
2944
|
+
children: [
|
|
2945
|
+
t && /* @__PURE__ */ S("div", { className: "px-3 pt-2", children: [
|
|
2946
|
+
/* @__PURE__ */ o(O, { weight: "bold", children: t }),
|
|
2947
|
+
/* @__PURE__ */ o(Yt, { className: "mt-2" })
|
|
2948
|
+
] }),
|
|
2949
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col", "data-testid": n, children: e.map((d) => {
|
|
2950
|
+
const u = () => l(d.key, !d.enabled);
|
|
2951
|
+
return /* @__PURE__ */ S(
|
|
2952
|
+
"label",
|
|
2953
|
+
{
|
|
2954
|
+
className: g(
|
|
2955
|
+
"flex cursor-pointer gap-2 rounded px-3 py-[5px] hover:bg-muted",
|
|
2956
|
+
d.disabled && "cursor-not-allowed opacity-60 hover:bg-transparent"
|
|
2957
|
+
),
|
|
2958
|
+
"data-testid": d["data-testid"],
|
|
2959
|
+
children: [
|
|
2960
|
+
/* @__PURE__ */ o(
|
|
2961
|
+
Ge,
|
|
2962
|
+
{
|
|
2963
|
+
disabled: d.disabled,
|
|
2964
|
+
checked: d.enabled,
|
|
2965
|
+
onCheckedChange: u
|
|
2966
|
+
}
|
|
2967
|
+
),
|
|
2968
|
+
/* @__PURE__ */ o(O, { textColor: d.disabled ? "secondary" : void 0, children: d.title })
|
|
2969
|
+
]
|
|
2970
|
+
},
|
|
2971
|
+
d.key
|
|
2972
|
+
);
|
|
2973
|
+
}) })
|
|
2974
|
+
]
|
|
2975
|
+
}
|
|
2976
|
+
)
|
|
2977
|
+
] });
|
|
2978
|
+
}
|
|
2979
|
+
const Sr = ie(
|
|
1996
2980
|
"font-cofo flex flex-shrink-0 items-center justify-center w-fit rounded-md font-medium border-0 h-6 px-2 text-[14px] leading-[18px] min-w-max",
|
|
1997
2981
|
{
|
|
1998
2982
|
variants: {
|
|
@@ -2026,19 +3010,19 @@ const pt = W(
|
|
|
2026
3010
|
iconPosition: "start"
|
|
2027
3011
|
}
|
|
2028
3012
|
}
|
|
2029
|
-
),
|
|
2030
|
-
(
|
|
2031
|
-
var
|
|
2032
|
-
color:
|
|
3013
|
+
), Tr = N.forwardRef(
|
|
3014
|
+
(p, i) => {
|
|
3015
|
+
var b = p, {
|
|
3016
|
+
color: t = "default",
|
|
2033
3017
|
disabled: e = !1,
|
|
2034
|
-
iconOnly:
|
|
3018
|
+
iconOnly: r = !1,
|
|
2035
3019
|
iconPosition: a = "start",
|
|
2036
|
-
icon:
|
|
2037
|
-
iconProps:
|
|
2038
|
-
children:
|
|
2039
|
-
className:
|
|
3020
|
+
icon: n,
|
|
3021
|
+
iconProps: s,
|
|
3022
|
+
children: l,
|
|
3023
|
+
className: d,
|
|
2040
3024
|
"data-testid": u
|
|
2041
|
-
} =
|
|
3025
|
+
} = b, h = E(b, [
|
|
2042
3026
|
"color",
|
|
2043
3027
|
"disabled",
|
|
2044
3028
|
"iconOnly",
|
|
@@ -2049,87 +3033,87 @@ const pt = W(
|
|
|
2049
3033
|
"className",
|
|
2050
3034
|
"data-testid"
|
|
2051
3035
|
]);
|
|
2052
|
-
const
|
|
2053
|
-
a === "start" &&
|
|
2054
|
-
|
|
2055
|
-
a === "end" &&
|
|
3036
|
+
const x = () => n ? /* @__PURE__ */ o(P, w({ icon: n, size: 12 }, s)) : null, c = /* @__PURE__ */ S(Ze, { children: [
|
|
3037
|
+
a === "start" && x(),
|
|
3038
|
+
l,
|
|
3039
|
+
a === "end" && x()
|
|
2056
3040
|
] });
|
|
2057
|
-
return /* @__PURE__ */
|
|
3041
|
+
return /* @__PURE__ */ o(
|
|
2058
3042
|
"div",
|
|
2059
|
-
|
|
2060
|
-
ref:
|
|
2061
|
-
className:
|
|
2062
|
-
|
|
2063
|
-
color:
|
|
2064
|
-
iconOnly:
|
|
3043
|
+
D(w({
|
|
3044
|
+
ref: i,
|
|
3045
|
+
className: g(
|
|
3046
|
+
Sr({
|
|
3047
|
+
color: t,
|
|
3048
|
+
iconOnly: r,
|
|
2065
3049
|
iconPosition: a
|
|
2066
3050
|
}),
|
|
2067
3051
|
e && "bg-muted border-0 opacity-60",
|
|
2068
|
-
|
|
3052
|
+
d
|
|
2069
3053
|
)
|
|
2070
|
-
},
|
|
3054
|
+
}, h), {
|
|
2071
3055
|
"data-testid": u,
|
|
2072
|
-
children:
|
|
3056
|
+
children: r ? x() : c
|
|
2073
3057
|
})
|
|
2074
3058
|
);
|
|
2075
3059
|
}
|
|
2076
3060
|
);
|
|
2077
|
-
|
|
2078
|
-
function
|
|
2079
|
-
const
|
|
2080
|
-
return
|
|
2081
|
-
if (!
|
|
3061
|
+
Tr.displayName = "Tag";
|
|
3062
|
+
function Rr(t, e, r, a) {
|
|
3063
|
+
const n = oe(null), s = oe(0), l = oe(!1), d = oe(0);
|
|
3064
|
+
return Re(() => {
|
|
3065
|
+
if (!t || !n.current)
|
|
2082
3066
|
return;
|
|
2083
|
-
const u =
|
|
2084
|
-
if (
|
|
2085
|
-
const
|
|
2086
|
-
u.value =
|
|
3067
|
+
const u = n.current, h = () => {
|
|
3068
|
+
if (r) {
|
|
3069
|
+
const c = u.value;
|
|
3070
|
+
u.value = r, u.style.height = "auto", s.current = u.scrollHeight, u.value = c;
|
|
2087
3071
|
}
|
|
2088
3072
|
};
|
|
2089
|
-
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
3073
|
+
s.current === 0 && h();
|
|
3074
|
+
const i = () => {
|
|
3075
|
+
if (l.current)
|
|
2092
3076
|
return;
|
|
2093
3077
|
u.style.height = "auto";
|
|
2094
|
-
const
|
|
3078
|
+
const c = u.scrollHeight, v = Math.max(c, s.current);
|
|
2095
3079
|
if (e) {
|
|
2096
|
-
const
|
|
2097
|
-
u.style.maxHeight =
|
|
3080
|
+
const y = typeof e == "number" ? `${e}px` : e;
|
|
3081
|
+
u.style.maxHeight = y, v > (typeof e == "number" ? e : Number.parseInt(e)) ? (u.style.height = y, u.style.setProperty("overflow-y", "auto", "important")) : (u.style.height = `${v}px`, u.style.setProperty("overflow-y", "hidden", "important"));
|
|
2098
3082
|
} else
|
|
2099
|
-
u.style.height = `${
|
|
2100
|
-
|
|
3083
|
+
u.style.height = `${v}px`, u.style.setProperty("overflow-y", "hidden", "important");
|
|
3084
|
+
d.current = u.clientHeight;
|
|
3085
|
+
}, p = () => {
|
|
3086
|
+
h(), i();
|
|
2101
3087
|
}, b = () => {
|
|
2102
|
-
|
|
2103
|
-
},
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
c.current =
|
|
2108
|
-
const g = u.clientHeight;
|
|
2109
|
-
g !== m.current && (d.current = g), m.current = g, l();
|
|
3088
|
+
l.current = !0;
|
|
3089
|
+
}, x = () => {
|
|
3090
|
+
if (l.current) {
|
|
3091
|
+
l.current = !1;
|
|
3092
|
+
const c = u.clientHeight;
|
|
3093
|
+
c !== d.current && (s.current = c), d.current = c, i();
|
|
2110
3094
|
}
|
|
2111
3095
|
};
|
|
2112
|
-
return
|
|
2113
|
-
u.removeEventListener("input",
|
|
3096
|
+
return i(), u.addEventListener("input", i), u.addEventListener("paste", i), u.addEventListener("mousedown", b), document.addEventListener("mouseup", x), window.addEventListener("resize", p), () => {
|
|
3097
|
+
u.removeEventListener("input", i), u.removeEventListener("paste", i), u.removeEventListener("mousedown", b), document.removeEventListener("mouseup", x), window.removeEventListener("resize", p);
|
|
2114
3098
|
};
|
|
2115
|
-
}, [
|
|
3099
|
+
}, [t, e, r, a]), n;
|
|
2116
3100
|
}
|
|
2117
|
-
const
|
|
2118
|
-
(
|
|
2119
|
-
var
|
|
2120
|
-
className:
|
|
3101
|
+
const Er = N.forwardRef(
|
|
3102
|
+
(c, x) => {
|
|
3103
|
+
var v = c, {
|
|
3104
|
+
className: t,
|
|
2121
3105
|
variant: e = "default",
|
|
2122
|
-
fullWidth:
|
|
3106
|
+
fullWidth: r = !0,
|
|
2123
3107
|
label: a,
|
|
2124
|
-
error:
|
|
2125
|
-
caption:
|
|
2126
|
-
autoResize:
|
|
2127
|
-
maxHeight:
|
|
3108
|
+
error: n,
|
|
3109
|
+
caption: s,
|
|
3110
|
+
autoResize: l = !1,
|
|
3111
|
+
maxHeight: d = 140,
|
|
2128
3112
|
showErrorMessage: u = !0,
|
|
2129
|
-
"data-testid":
|
|
2130
|
-
disabled:
|
|
2131
|
-
size:
|
|
2132
|
-
} =
|
|
3113
|
+
"data-testid": h,
|
|
3114
|
+
disabled: i,
|
|
3115
|
+
size: p = "md"
|
|
3116
|
+
} = v, b = E(v, [
|
|
2133
3117
|
"className",
|
|
2134
3118
|
"variant",
|
|
2135
3119
|
"fullWidth",
|
|
@@ -2143,58 +3127,58 @@ const gt = h.forwardRef(
|
|
|
2143
3127
|
"disabled",
|
|
2144
3128
|
"size"
|
|
2145
3129
|
]);
|
|
2146
|
-
const
|
|
2147
|
-
return
|
|
2148
|
-
a && /* @__PURE__ */
|
|
2149
|
-
/* @__PURE__ */
|
|
3130
|
+
const y = Rr(l, d, b.placeholder, b.value);
|
|
3131
|
+
return At(x, () => y.current, [y]), /* @__PURE__ */ S("div", { className: "w-full", children: [
|
|
3132
|
+
a && /* @__PURE__ */ o(O, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
|
|
3133
|
+
/* @__PURE__ */ S(
|
|
2150
3134
|
"div",
|
|
2151
3135
|
{
|
|
2152
|
-
className:
|
|
3136
|
+
className: g(
|
|
2153
3137
|
"bg-background relative flex rounded-lg border-1 border-solid pr-1 pb-1",
|
|
2154
3138
|
{
|
|
2155
3139
|
// Variants
|
|
2156
|
-
"disabled:hover:border-border disabled:focus-within:border-border border-input hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:focus-within:shadow-none disabled:hover:border-none": e === "default" && (!
|
|
2157
|
-
"border-primary hover:border-hover-input-primary focus-within:border-primary": e === "primary" && (!
|
|
2158
|
-
"border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error":
|
|
2159
|
-
"border-positive focus-within:border-positive hover:border-positive": e === "success" && (!
|
|
2160
|
-
"rounded-lg":
|
|
2161
|
-
"rounded-xl":
|
|
3140
|
+
"disabled:hover:border-border disabled:focus-within:border-border border-input hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:focus-within:shadow-none disabled:hover:border-none": e === "default" && (!n || n === "") && !i,
|
|
3141
|
+
"border-primary hover:border-hover-input-primary focus-within:border-primary": e === "primary" && (!n || n === ""),
|
|
3142
|
+
"border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": n != null && n !== "",
|
|
3143
|
+
"border-positive focus-within:border-positive hover:border-positive": e === "success" && (!n || n === ""),
|
|
3144
|
+
"rounded-lg": p === "md",
|
|
3145
|
+
"rounded-xl": p === "lg",
|
|
2162
3146
|
// Full width
|
|
2163
|
-
"bg-muted text-muted-foreground cursor-not-allowed border-border":
|
|
2164
|
-
"w-full":
|
|
3147
|
+
"bg-muted text-muted-foreground cursor-not-allowed border-border": i,
|
|
3148
|
+
"w-full": r
|
|
2165
3149
|
}
|
|
2166
3150
|
),
|
|
2167
3151
|
children: [
|
|
2168
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ o(
|
|
2169
3153
|
"textarea",
|
|
2170
|
-
|
|
2171
|
-
className:
|
|
3154
|
+
w({
|
|
3155
|
+
className: g(
|
|
2172
3156
|
"font-graphik placeholder:text-muted-foreground box-border flex flex-1 border-0 bg-transparent transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
2173
3157
|
{
|
|
2174
3158
|
// Остальные стили
|
|
2175
|
-
"pr-8.5":
|
|
2176
|
-
"max-h-35 min-h-20 resize-y": !
|
|
2177
|
-
"overflow-hidden resize-y":
|
|
2178
|
-
"pl-2.5 pr-1.5 pt-2 pb-1 text-[14px]":
|
|
2179
|
-
"pl-3 pr-2 pt-2.5 pb-1.5 text-[16px]":
|
|
3159
|
+
"pr-8.5": n && n !== "",
|
|
3160
|
+
"max-h-35 min-h-20 resize-y": !l,
|
|
3161
|
+
"overflow-hidden resize-y": l,
|
|
3162
|
+
"pl-2.5 pr-1.5 pt-2 pb-1 text-[14px]": p === "md",
|
|
3163
|
+
"pl-3 pr-2 pt-2.5 pb-1.5 text-[16px]": p === "lg"
|
|
2180
3164
|
},
|
|
2181
|
-
|
|
2182
|
-
|
|
3165
|
+
t,
|
|
3166
|
+
i && "cursor-not-allowed"
|
|
2183
3167
|
),
|
|
2184
|
-
ref:
|
|
2185
|
-
"data-testid":
|
|
2186
|
-
disabled:
|
|
2187
|
-
},
|
|
3168
|
+
ref: y,
|
|
3169
|
+
"data-testid": h,
|
|
3170
|
+
disabled: i
|
|
3171
|
+
}, b)
|
|
2188
3172
|
),
|
|
2189
|
-
|
|
3173
|
+
n && n !== "" && u && /* @__PURE__ */ o(
|
|
2190
3174
|
"div",
|
|
2191
3175
|
{
|
|
2192
|
-
className:
|
|
2193
|
-
"top-2 right-1.5":
|
|
2194
|
-
"top-2.5 right-2":
|
|
3176
|
+
className: g("absolute", {
|
|
3177
|
+
"top-2 right-1.5": p === "md",
|
|
3178
|
+
"top-2.5 right-2": p === "lg"
|
|
2195
3179
|
}),
|
|
2196
|
-
children: /* @__PURE__ */
|
|
2197
|
-
|
|
3180
|
+
children: /* @__PURE__ */ o(
|
|
3181
|
+
P,
|
|
2198
3182
|
{
|
|
2199
3183
|
icon: "ErrorFillIcon",
|
|
2200
3184
|
className: "text-destructive",
|
|
@@ -2206,27 +3190,27 @@ const gt = h.forwardRef(
|
|
|
2206
3190
|
]
|
|
2207
3191
|
}
|
|
2208
3192
|
),
|
|
2209
|
-
|
|
2210
|
-
|
|
3193
|
+
s && !n && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: s }),
|
|
3194
|
+
n && /* @__PURE__ */ o(O, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: n })
|
|
2211
3195
|
] });
|
|
2212
3196
|
}
|
|
2213
3197
|
);
|
|
2214
|
-
|
|
2215
|
-
function
|
|
2216
|
-
const
|
|
2217
|
-
if (typeof
|
|
2218
|
-
return
|
|
2219
|
-
if (
|
|
2220
|
-
const a =
|
|
2221
|
-
return a && a.trim() !== "" &&
|
|
3198
|
+
Er.displayName = "Textarea";
|
|
3199
|
+
function Xe(t, e = /* @__PURE__ */ new Set()) {
|
|
3200
|
+
const r = [];
|
|
3201
|
+
if (typeof t == "string")
|
|
3202
|
+
return t.trim() !== "" && r.push(t), r;
|
|
3203
|
+
if (t instanceof Error) {
|
|
3204
|
+
const a = t.message || t.name;
|
|
3205
|
+
return a && a.trim() !== "" && r.push(a), r;
|
|
2222
3206
|
}
|
|
2223
|
-
if (Array.isArray(
|
|
2224
|
-
for (const a of
|
|
2225
|
-
|
|
2226
|
-
return
|
|
3207
|
+
if (Array.isArray(t)) {
|
|
3208
|
+
for (const a of t)
|
|
3209
|
+
r.push(...Xe(a, e));
|
|
3210
|
+
return r;
|
|
2227
3211
|
}
|
|
2228
|
-
if (
|
|
2229
|
-
e.add(
|
|
3212
|
+
if (t && typeof t == "object" && !e.has(t)) {
|
|
3213
|
+
e.add(t);
|
|
2230
3214
|
const a = [
|
|
2231
3215
|
"message",
|
|
2232
3216
|
"error",
|
|
@@ -2236,41 +3220,41 @@ function Y(r, e = /* @__PURE__ */ new Set()) {
|
|
|
2236
3220
|
"detail",
|
|
2237
3221
|
"errors"
|
|
2238
3222
|
];
|
|
2239
|
-
for (const
|
|
2240
|
-
const
|
|
2241
|
-
|
|
3223
|
+
for (const n of a) {
|
|
3224
|
+
const s = t;
|
|
3225
|
+
n in s && r.push(...Xe(s[n], e));
|
|
2242
3226
|
}
|
|
2243
3227
|
}
|
|
2244
|
-
if (typeof
|
|
2245
|
-
const a = String(
|
|
2246
|
-
a.trim() !== "" &&
|
|
3228
|
+
if (typeof t != "object" && t !== null && t !== void 0) {
|
|
3229
|
+
const a = String(t);
|
|
3230
|
+
a.trim() !== "" && r.push(a);
|
|
2247
3231
|
}
|
|
2248
|
-
return Array.from(new Set(
|
|
3232
|
+
return Array.from(new Set(r)).filter(
|
|
2249
3233
|
(a) => a !== "[object Object]"
|
|
2250
3234
|
);
|
|
2251
3235
|
}
|
|
2252
|
-
function
|
|
2253
|
-
const a =
|
|
2254
|
-
return a.length === 0 ? (e && e(
|
|
3236
|
+
function Te(t, e, r) {
|
|
3237
|
+
const a = Xe(t);
|
|
3238
|
+
return a.length === 0 ? (e && e(t), [r || "Произошла ошибка"]) : a;
|
|
2255
3239
|
}
|
|
2256
|
-
function
|
|
2257
|
-
return
|
|
3240
|
+
function Fr(t, e) {
|
|
3241
|
+
return B(t, e);
|
|
2258
3242
|
}
|
|
2259
|
-
const
|
|
2260
|
-
success: (
|
|
2261
|
-
const
|
|
2262
|
-
|
|
3243
|
+
const dn = Object.assign(Fr, {
|
|
3244
|
+
success: (t, e) => {
|
|
3245
|
+
const r = typeof t == "string" ? [(e == null ? void 0 : e.defaultMessage) || t] : Te(
|
|
3246
|
+
t,
|
|
2263
3247
|
e == null ? void 0 : e.onExtractError,
|
|
2264
3248
|
e == null ? void 0 : e.defaultMessage
|
|
2265
3249
|
);
|
|
2266
|
-
return
|
|
2267
|
-
const
|
|
2268
|
-
/* @__PURE__ */
|
|
3250
|
+
return r.length > 1 ? r.map((a) => (() => {
|
|
3251
|
+
const s = B.success(
|
|
3252
|
+
/* @__PURE__ */ o(
|
|
2269
3253
|
"div",
|
|
2270
3254
|
{
|
|
2271
|
-
onClick: () =>
|
|
2272
|
-
onKeyDown: (
|
|
2273
|
-
(
|
|
3255
|
+
onClick: () => B.dismiss(s),
|
|
3256
|
+
onKeyDown: (l) => {
|
|
3257
|
+
(l.key === "Enter" || l.key === " ") && B.dismiss(s);
|
|
2274
3258
|
},
|
|
2275
3259
|
role: "button",
|
|
2276
3260
|
tabIndex: 0,
|
|
@@ -2278,28 +3262,28 @@ const Ut = Object.assign(bt, {
|
|
|
2278
3262
|
children: a
|
|
2279
3263
|
}
|
|
2280
3264
|
),
|
|
2281
|
-
|
|
3265
|
+
D(w({}, e), {
|
|
2282
3266
|
duration: 1 / 0,
|
|
2283
3267
|
unstyled: !1
|
|
2284
3268
|
})
|
|
2285
3269
|
);
|
|
2286
|
-
return
|
|
2287
|
-
})()) :
|
|
3270
|
+
return s;
|
|
3271
|
+
})()) : B.success(r[0], e);
|
|
2288
3272
|
},
|
|
2289
|
-
error: (
|
|
2290
|
-
const
|
|
2291
|
-
|
|
3273
|
+
error: (t, e) => {
|
|
3274
|
+
const r = typeof t == "string" ? [(e == null ? void 0 : e.defaultMessage) || t] : Te(
|
|
3275
|
+
t,
|
|
2292
3276
|
e == null ? void 0 : e.onExtractError,
|
|
2293
3277
|
e == null ? void 0 : e.defaultMessage
|
|
2294
3278
|
);
|
|
2295
|
-
return
|
|
2296
|
-
const
|
|
2297
|
-
/* @__PURE__ */
|
|
3279
|
+
return r.length > 1 ? r.map((a) => (() => {
|
|
3280
|
+
const s = B.error(
|
|
3281
|
+
/* @__PURE__ */ o(
|
|
2298
3282
|
"div",
|
|
2299
3283
|
{
|
|
2300
|
-
onClick: () =>
|
|
2301
|
-
onKeyDown: (
|
|
2302
|
-
(
|
|
3284
|
+
onClick: () => B.dismiss(s),
|
|
3285
|
+
onKeyDown: (l) => {
|
|
3286
|
+
(l.key === "Enter" || l.key === " ") && B.dismiss(s);
|
|
2303
3287
|
},
|
|
2304
3288
|
role: "button",
|
|
2305
3289
|
tabIndex: 0,
|
|
@@ -2307,29 +3291,29 @@ const Ut = Object.assign(bt, {
|
|
|
2307
3291
|
children: a
|
|
2308
3292
|
}
|
|
2309
3293
|
),
|
|
2310
|
-
|
|
3294
|
+
D(w({}, e), {
|
|
2311
3295
|
duration: 1 / 0,
|
|
2312
3296
|
unstyled: !1
|
|
2313
3297
|
})
|
|
2314
3298
|
);
|
|
2315
|
-
return
|
|
2316
|
-
})()) :
|
|
3299
|
+
return s;
|
|
3300
|
+
})()) : B.error(r[0], e);
|
|
2317
3301
|
},
|
|
2318
|
-
info: (
|
|
2319
|
-
const
|
|
2320
|
-
|
|
3302
|
+
info: (t, e) => {
|
|
3303
|
+
const r = typeof t == "string" ? [(e == null ? void 0 : e.defaultMessage) || t] : Te(
|
|
3304
|
+
t,
|
|
2321
3305
|
e == null ? void 0 : e.onExtractError,
|
|
2322
3306
|
e == null ? void 0 : e.defaultMessage
|
|
2323
3307
|
);
|
|
2324
|
-
return
|
|
2325
|
-
const
|
|
3308
|
+
return r.length > 1 ? r.map((a) => (() => {
|
|
3309
|
+
const s = B.info(
|
|
2326
3310
|
// Обертка с обработчиком клика для закрытия
|
|
2327
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ o(
|
|
2328
3312
|
"div",
|
|
2329
3313
|
{
|
|
2330
|
-
onClick: () =>
|
|
2331
|
-
onKeyDown: (
|
|
2332
|
-
(
|
|
3314
|
+
onClick: () => B.dismiss(s),
|
|
3315
|
+
onKeyDown: (l) => {
|
|
3316
|
+
(l.key === "Enter" || l.key === " ") && B.dismiss(s);
|
|
2333
3317
|
},
|
|
2334
3318
|
role: "button",
|
|
2335
3319
|
tabIndex: 0,
|
|
@@ -2337,30 +3321,30 @@ const Ut = Object.assign(bt, {
|
|
|
2337
3321
|
children: a
|
|
2338
3322
|
}
|
|
2339
3323
|
),
|
|
2340
|
-
|
|
3324
|
+
D(w({}, e), {
|
|
2341
3325
|
duration: 1 / 0,
|
|
2342
3326
|
// Не скрываем автоматически
|
|
2343
3327
|
unstyled: !1
|
|
2344
3328
|
})
|
|
2345
3329
|
);
|
|
2346
|
-
return
|
|
2347
|
-
})()) :
|
|
3330
|
+
return s;
|
|
3331
|
+
})()) : B.info(r[0], e);
|
|
2348
3332
|
},
|
|
2349
|
-
warning: (
|
|
2350
|
-
const
|
|
2351
|
-
|
|
3333
|
+
warning: (t, e) => {
|
|
3334
|
+
const r = typeof t == "string" ? [(e == null ? void 0 : e.defaultMessage) || t] : Te(
|
|
3335
|
+
t,
|
|
2352
3336
|
e == null ? void 0 : e.onExtractError,
|
|
2353
3337
|
e == null ? void 0 : e.defaultMessage
|
|
2354
3338
|
);
|
|
2355
|
-
return
|
|
2356
|
-
const
|
|
3339
|
+
return r.length > 1 ? r.map((a) => (() => {
|
|
3340
|
+
const s = B.warning(
|
|
2357
3341
|
// Обертка с обработчиком клика для закрытия
|
|
2358
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ o(
|
|
2359
3343
|
"div",
|
|
2360
3344
|
{
|
|
2361
|
-
onClick: () =>
|
|
2362
|
-
onKeyDown: (
|
|
2363
|
-
(
|
|
3345
|
+
onClick: () => B.dismiss(s),
|
|
3346
|
+
onKeyDown: (l) => {
|
|
3347
|
+
(l.key === "Enter" || l.key === " ") && B.dismiss(s);
|
|
2364
3348
|
},
|
|
2365
3349
|
role: "button",
|
|
2366
3350
|
tabIndex: 0,
|
|
@@ -2368,28 +3352,28 @@ const Ut = Object.assign(bt, {
|
|
|
2368
3352
|
children: a
|
|
2369
3353
|
}
|
|
2370
3354
|
),
|
|
2371
|
-
|
|
3355
|
+
D(w({}, e), {
|
|
2372
3356
|
duration: 1 / 0,
|
|
2373
3357
|
unstyled: !1
|
|
2374
3358
|
})
|
|
2375
3359
|
);
|
|
2376
|
-
return
|
|
2377
|
-
})()) :
|
|
3360
|
+
return s;
|
|
3361
|
+
})()) : B.warning(r[0], e);
|
|
2378
3362
|
},
|
|
2379
|
-
loading: (
|
|
2380
|
-
const
|
|
2381
|
-
|
|
3363
|
+
loading: (t, e) => {
|
|
3364
|
+
const r = typeof t == "string" ? [(e == null ? void 0 : e.defaultMessage) || t] : Te(
|
|
3365
|
+
t,
|
|
2382
3366
|
e == null ? void 0 : e.onExtractError,
|
|
2383
3367
|
e == null ? void 0 : e.defaultMessage
|
|
2384
3368
|
);
|
|
2385
|
-
return
|
|
2386
|
-
const
|
|
2387
|
-
/* @__PURE__ */
|
|
3369
|
+
return r.length > 1 ? r.map((a) => (() => {
|
|
3370
|
+
const s = B.loading(
|
|
3371
|
+
/* @__PURE__ */ o(
|
|
2388
3372
|
"div",
|
|
2389
3373
|
{
|
|
2390
|
-
onClick: () =>
|
|
2391
|
-
onKeyDown: (
|
|
2392
|
-
(
|
|
3374
|
+
onClick: () => B.dismiss(s),
|
|
3375
|
+
onKeyDown: (l) => {
|
|
3376
|
+
(l.key === "Enter" || l.key === " ") && B.dismiss(s);
|
|
2393
3377
|
},
|
|
2394
3378
|
role: "button",
|
|
2395
3379
|
tabIndex: 0,
|
|
@@ -2397,38 +3381,38 @@ const Ut = Object.assign(bt, {
|
|
|
2397
3381
|
children: a
|
|
2398
3382
|
}
|
|
2399
3383
|
),
|
|
2400
|
-
|
|
3384
|
+
D(w({}, e), {
|
|
2401
3385
|
unstyled: !1
|
|
2402
3386
|
})
|
|
2403
3387
|
);
|
|
2404
|
-
return
|
|
2405
|
-
})()) :
|
|
3388
|
+
return s;
|
|
3389
|
+
})()) : B.loading(r[0], e);
|
|
2406
3390
|
},
|
|
2407
|
-
dismiss: (
|
|
2408
|
-
|
|
3391
|
+
dismiss: (t) => {
|
|
3392
|
+
B.dismiss(t);
|
|
2409
3393
|
},
|
|
2410
|
-
promise(
|
|
2411
|
-
var
|
|
3394
|
+
promise(t, s) {
|
|
3395
|
+
var l = s, {
|
|
2412
3396
|
loading: e,
|
|
2413
|
-
success:
|
|
3397
|
+
success: r,
|
|
2414
3398
|
error: a
|
|
2415
|
-
} =
|
|
3399
|
+
} = l, n = E(l, [
|
|
2416
3400
|
"loading",
|
|
2417
3401
|
"success",
|
|
2418
3402
|
"error"
|
|
2419
3403
|
]);
|
|
2420
|
-
return
|
|
3404
|
+
return B.promise(t, w({
|
|
2421
3405
|
loading: e,
|
|
2422
|
-
success:
|
|
3406
|
+
success: r,
|
|
2423
3407
|
error: a
|
|
2424
|
-
},
|
|
3408
|
+
}, n));
|
|
2425
3409
|
}
|
|
2426
3410
|
});
|
|
2427
|
-
function
|
|
2428
|
-
var
|
|
2429
|
-
return /* @__PURE__ */
|
|
2430
|
-
|
|
2431
|
-
|
|
3411
|
+
function ln(e) {
|
|
3412
|
+
var t = E(e, []);
|
|
3413
|
+
return /* @__PURE__ */ o(
|
|
3414
|
+
Wt,
|
|
3415
|
+
w({
|
|
2432
3416
|
visibleToasts: 1 / 0,
|
|
2433
3417
|
gap: 4,
|
|
2434
3418
|
style: {
|
|
@@ -2448,90 +3432,90 @@ function $t(e) {
|
|
|
2448
3432
|
},
|
|
2449
3433
|
position: "top-center",
|
|
2450
3434
|
icons: {
|
|
2451
|
-
success: /* @__PURE__ */
|
|
2452
|
-
info: /* @__PURE__ */
|
|
2453
|
-
error: /* @__PURE__ */
|
|
2454
|
-
loading: /* @__PURE__ */
|
|
2455
|
-
warning: /* @__PURE__ */
|
|
3435
|
+
success: /* @__PURE__ */ o(P, { icon: "CheckCircleFillIcon", className: "text-positive" }),
|
|
3436
|
+
info: /* @__PURE__ */ o(P, { icon: "InfoFillIcon" }),
|
|
3437
|
+
error: /* @__PURE__ */ o(P, { icon: "CancelFillIcon", className: "text-destructive" }),
|
|
3438
|
+
loading: /* @__PURE__ */ o(ze, { className: "text-white" }),
|
|
3439
|
+
warning: /* @__PURE__ */ o(P, { icon: "InfoFillIcon", className: "text-warning" })
|
|
2456
3440
|
}
|
|
2457
|
-
},
|
|
3441
|
+
}, t)
|
|
2458
3442
|
);
|
|
2459
3443
|
}
|
|
2460
|
-
const
|
|
2461
|
-
function
|
|
2462
|
-
const [
|
|
2463
|
-
return
|
|
3444
|
+
const cn = me.Provider, Ar = 120, kt = N.createContext(null);
|
|
3445
|
+
function Lr() {
|
|
3446
|
+
const [t, e] = N.useState(!1);
|
|
3447
|
+
return N.useEffect(() => {
|
|
2464
3448
|
if (typeof window == "undefined")
|
|
2465
3449
|
return;
|
|
2466
|
-
const
|
|
2467
|
-
e(
|
|
3450
|
+
const r = window.matchMedia("(hover: none), (pointer: coarse)"), a = () => {
|
|
3451
|
+
e(r.matches || navigator.maxTouchPoints > 0);
|
|
2468
3452
|
};
|
|
2469
|
-
return a(),
|
|
2470
|
-
}, []),
|
|
3453
|
+
return a(), r.addEventListener("change", a), () => r.removeEventListener("change", a);
|
|
3454
|
+
}, []), t;
|
|
2471
3455
|
}
|
|
2472
|
-
function
|
|
2473
|
-
var
|
|
2474
|
-
open:
|
|
3456
|
+
function un(n) {
|
|
3457
|
+
var s = n, {
|
|
3458
|
+
open: t,
|
|
2475
3459
|
defaultOpen: e,
|
|
2476
|
-
onOpenChange:
|
|
2477
|
-
} =
|
|
3460
|
+
onOpenChange: r
|
|
3461
|
+
} = s, a = E(s, [
|
|
2478
3462
|
"open",
|
|
2479
3463
|
"defaultOpen",
|
|
2480
3464
|
"onOpenChange"
|
|
2481
3465
|
]);
|
|
2482
|
-
const [
|
|
2483
|
-
(
|
|
2484
|
-
u ||
|
|
3466
|
+
const [l, d] = N.useState(!!e), u = t !== void 0, h = u ? t : l, i = Lr(), p = N.useRef(0), b = N.useCallback(
|
|
3467
|
+
(v) => {
|
|
3468
|
+
u || d(v), r == null || r(v);
|
|
2485
3469
|
},
|
|
2486
|
-
[u,
|
|
2487
|
-
),
|
|
2488
|
-
(
|
|
2489
|
-
|
|
3470
|
+
[u, r]
|
|
3471
|
+
), x = N.useCallback(
|
|
3472
|
+
(v) => {
|
|
3473
|
+
i && !v && Date.now() - p.current < Ar || b(v);
|
|
2490
3474
|
},
|
|
2491
|
-
[
|
|
2492
|
-
),
|
|
2493
|
-
|
|
2494
|
-
}, [
|
|
2495
|
-
return /* @__PURE__ */
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
open:
|
|
2499
|
-
defaultOpen:
|
|
2500
|
-
onOpenChange:
|
|
3475
|
+
[i, b]
|
|
3476
|
+
), c = N.useCallback(() => {
|
|
3477
|
+
p.current = Date.now(), b(!h);
|
|
3478
|
+
}, [h, b]);
|
|
3479
|
+
return /* @__PURE__ */ o(kt.Provider, { value: { isTouchDevice: i, open: h, toggleByTouch: c }, children: /* @__PURE__ */ o(
|
|
3480
|
+
me.Root,
|
|
3481
|
+
w({
|
|
3482
|
+
open: i ? h : t,
|
|
3483
|
+
defaultOpen: i ? void 0 : e,
|
|
3484
|
+
onOpenChange: i ? x : r
|
|
2501
3485
|
}, a)
|
|
2502
3486
|
) });
|
|
2503
3487
|
}
|
|
2504
|
-
const
|
|
2505
|
-
var
|
|
2506
|
-
const
|
|
2507
|
-
|
|
3488
|
+
const Mr = N.forwardRef((a, r) => {
|
|
3489
|
+
var n = a, { onPointerDown: t } = n, e = E(n, ["onPointerDown"]);
|
|
3490
|
+
const s = N.useContext(kt), l = (d) => {
|
|
3491
|
+
t == null || t(d), !d.defaultPrevented && s != null && s.isTouchDevice && d.pointerType === "touch" && s.toggleByTouch();
|
|
2508
3492
|
};
|
|
2509
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ o(me.Trigger, w({ ref: r, onPointerDown: l }, e));
|
|
2510
3494
|
});
|
|
2511
|
-
|
|
2512
|
-
const
|
|
2513
|
-
(
|
|
2514
|
-
var u =
|
|
2515
|
-
className:
|
|
3495
|
+
Mr.displayName = me.Trigger.displayName;
|
|
3496
|
+
const Wr = N.forwardRef(
|
|
3497
|
+
(d, l) => {
|
|
3498
|
+
var u = d, {
|
|
3499
|
+
className: t,
|
|
2516
3500
|
sideOffset: e = 6,
|
|
2517
|
-
align:
|
|
3501
|
+
align: r = "center",
|
|
2518
3502
|
side: a = "top",
|
|
2519
|
-
children:
|
|
2520
|
-
} = u,
|
|
3503
|
+
children: n
|
|
3504
|
+
} = u, s = E(u, [
|
|
2521
3505
|
"className",
|
|
2522
3506
|
"sideOffset",
|
|
2523
3507
|
"align",
|
|
2524
3508
|
"side",
|
|
2525
3509
|
"children"
|
|
2526
3510
|
]);
|
|
2527
|
-
return /* @__PURE__ */
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
ref:
|
|
2531
|
-
align:
|
|
3511
|
+
return /* @__PURE__ */ o(me.Portal, { children: /* @__PURE__ */ S(
|
|
3512
|
+
me.Content,
|
|
3513
|
+
D(w({
|
|
3514
|
+
ref: l,
|
|
3515
|
+
align: r,
|
|
2532
3516
|
side: a,
|
|
2533
3517
|
sideOffset: e,
|
|
2534
|
-
className:
|
|
3518
|
+
className: g(
|
|
2535
3519
|
[
|
|
2536
3520
|
"font-graphik",
|
|
2537
3521
|
"z-58",
|
|
@@ -2548,15 +3532,15 @@ const wt = h.forwardRef(
|
|
|
2548
3532
|
"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",
|
|
2549
3533
|
"outline-none"
|
|
2550
3534
|
],
|
|
2551
|
-
|
|
3535
|
+
t
|
|
2552
3536
|
)
|
|
2553
|
-
},
|
|
3537
|
+
}, s), {
|
|
2554
3538
|
children: [
|
|
2555
|
-
|
|
2556
|
-
/* @__PURE__ */
|
|
2557
|
-
|
|
3539
|
+
n,
|
|
3540
|
+
/* @__PURE__ */ o(
|
|
3541
|
+
me.Arrow,
|
|
2558
3542
|
{
|
|
2559
|
-
className:
|
|
3543
|
+
className: g("fill-spotlight-background"),
|
|
2560
3544
|
width: 10,
|
|
2561
3545
|
height: 5
|
|
2562
3546
|
}
|
|
@@ -2566,9 +3550,9 @@ const wt = h.forwardRef(
|
|
|
2566
3550
|
) });
|
|
2567
3551
|
}
|
|
2568
3552
|
);
|
|
2569
|
-
|
|
2570
|
-
const
|
|
2571
|
-
"outline-none font-cofo box-sizing-border-box cursor-pointer flex items-center justify-center whitespace-nowrap disabled:border-1 disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:pointer-events-none transition-colors duration-200",
|
|
3553
|
+
Wr.displayName = me.Content.displayName;
|
|
3554
|
+
const _r = ie(
|
|
3555
|
+
"outline-none font-cofo font-normal tracking-[-0.03em] box-sizing-border-box cursor-pointer flex items-center justify-center whitespace-nowrap disabled:border-1 disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:pointer-events-none transition-colors duration-200",
|
|
2572
3556
|
{
|
|
2573
3557
|
variants: {
|
|
2574
3558
|
variant: {
|
|
@@ -2704,7 +3688,7 @@ const It = W(
|
|
|
2704
3688
|
iconPosition: "start"
|
|
2705
3689
|
}
|
|
2706
3690
|
}
|
|
2707
|
-
),
|
|
3691
|
+
), zr = {
|
|
2708
3692
|
primary: {
|
|
2709
3693
|
hover: "bg-primary-hover",
|
|
2710
3694
|
focus: "bg-primary-hover",
|
|
@@ -2743,25 +3727,25 @@ const It = W(
|
|
|
2743
3727
|
hover: "bg-[#0476F0]",
|
|
2744
3728
|
active: "bg-[#1B37D6]"
|
|
2745
3729
|
}
|
|
2746
|
-
},
|
|
2747
|
-
(
|
|
2748
|
-
var
|
|
2749
|
-
className:
|
|
3730
|
+
}, Be = N.forwardRef(
|
|
3731
|
+
(I, y) => {
|
|
3732
|
+
var k = I, {
|
|
3733
|
+
className: t,
|
|
2750
3734
|
variant: e = "primary",
|
|
2751
|
-
size:
|
|
3735
|
+
size: r = "md",
|
|
2752
3736
|
asChild: a = !1,
|
|
2753
|
-
iconOnly:
|
|
2754
|
-
isActive:
|
|
2755
|
-
iconPosition:
|
|
2756
|
-
icon:
|
|
3737
|
+
iconOnly: n = !1,
|
|
3738
|
+
isActive: s = !1,
|
|
3739
|
+
iconPosition: l = "start",
|
|
3740
|
+
icon: d,
|
|
2757
3741
|
children: u,
|
|
2758
|
-
iconProps:
|
|
2759
|
-
isLoading:
|
|
2760
|
-
forceState:
|
|
2761
|
-
"data-testid":
|
|
2762
|
-
disabled:
|
|
2763
|
-
onClick:
|
|
2764
|
-
} =
|
|
3742
|
+
iconProps: h,
|
|
3743
|
+
isLoading: i = !1,
|
|
3744
|
+
forceState: p,
|
|
3745
|
+
"data-testid": b,
|
|
3746
|
+
disabled: x = !1,
|
|
3747
|
+
onClick: c
|
|
3748
|
+
} = k, v = E(k, [
|
|
2765
3749
|
"className",
|
|
2766
3750
|
"variant",
|
|
2767
3751
|
"size",
|
|
@@ -2779,99 +3763,103 @@ const It = W(
|
|
|
2779
3763
|
"onClick"
|
|
2780
3764
|
]);
|
|
2781
3765
|
var R;
|
|
2782
|
-
const
|
|
2783
|
-
|
|
3766
|
+
const T = a ? Ue : "button", F = () => e === "primary" || e === "sber" || e === "telegram" ? "text-white" : e === "link" ? "text-primary" : "text-default", L = () => /* @__PURE__ */ o(
|
|
3767
|
+
ze,
|
|
2784
3768
|
{
|
|
2785
3769
|
size: 16,
|
|
2786
|
-
className:
|
|
3770
|
+
className: g(
|
|
2787
3771
|
"absolute left-[50%] -translate-x-1/2",
|
|
2788
|
-
|
|
3772
|
+
F()
|
|
2789
3773
|
)
|
|
2790
3774
|
}
|
|
2791
|
-
),
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
3775
|
+
), M = () => d ? i ? L() : /* @__PURE__ */ o(P, w({ icon: d }, h)) : null, z = /* @__PURE__ */ S(Ze, { children: [
|
|
3776
|
+
l === "start" && M(),
|
|
3777
|
+
i ? /* @__PURE__ */ o("div", { className: "invisible", children: u }) : u,
|
|
3778
|
+
i && !d && L(),
|
|
3779
|
+
l === "end" && M()
|
|
2796
3780
|
] });
|
|
2797
|
-
return /* @__PURE__ */
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
className:
|
|
3781
|
+
return /* @__PURE__ */ o(
|
|
3782
|
+
T,
|
|
3783
|
+
D(w({}, v), {
|
|
3784
|
+
className: g(
|
|
2801
3785
|
"relative",
|
|
2802
|
-
|
|
3786
|
+
_r({
|
|
2803
3787
|
variant: e,
|
|
2804
|
-
size:
|
|
2805
|
-
iconOnly:
|
|
2806
|
-
isActive:
|
|
2807
|
-
isLoading:
|
|
2808
|
-
iconPosition:
|
|
3788
|
+
size: r,
|
|
3789
|
+
iconOnly: n,
|
|
3790
|
+
isActive: s,
|
|
3791
|
+
isLoading: i,
|
|
3792
|
+
iconPosition: l
|
|
2809
3793
|
}),
|
|
2810
|
-
|
|
2811
|
-
|
|
3794
|
+
p && ((R = zr[e]) == null ? void 0 : R[p]),
|
|
3795
|
+
t
|
|
2812
3796
|
),
|
|
2813
|
-
disabled:
|
|
2814
|
-
"aria-disabled":
|
|
2815
|
-
ref:
|
|
2816
|
-
onClick: (
|
|
2817
|
-
|
|
3797
|
+
disabled: i || x,
|
|
3798
|
+
"aria-disabled": i || x,
|
|
3799
|
+
ref: y,
|
|
3800
|
+
onClick: (Z) => {
|
|
3801
|
+
i || x || c == null || c(Z);
|
|
2818
3802
|
},
|
|
2819
|
-
"data-testid":
|
|
2820
|
-
children:
|
|
3803
|
+
"data-testid": b,
|
|
3804
|
+
children: n ? M() : z
|
|
2821
3805
|
})
|
|
2822
3806
|
);
|
|
2823
3807
|
}
|
|
2824
3808
|
);
|
|
2825
|
-
|
|
3809
|
+
Be.displayName = "Button";
|
|
2826
3810
|
export {
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
3811
|
+
Be as Button,
|
|
3812
|
+
qe as Card,
|
|
3813
|
+
Ge as Checkbox,
|
|
3814
|
+
tn as Dialog,
|
|
3815
|
+
nn as DialogClose,
|
|
3816
|
+
nr as DialogContent,
|
|
3817
|
+
ar as DialogHeader,
|
|
3818
|
+
wt as DialogOverlay,
|
|
3819
|
+
rr as DialogPortal,
|
|
3820
|
+
or as DialogTitle,
|
|
3821
|
+
rn as DialogTrigger,
|
|
3822
|
+
Yt as Divider,
|
|
3823
|
+
Fe as Input,
|
|
3824
|
+
Kt as InputLink,
|
|
3825
|
+
jt as InputPassword,
|
|
3826
|
+
Ot as InputSearch,
|
|
3827
|
+
$t as InputTitle,
|
|
3828
|
+
er as Link,
|
|
3829
|
+
Xt as MultiSelect,
|
|
3830
|
+
dr as Radio,
|
|
3831
|
+
lr as RadioGroup,
|
|
3832
|
+
en as Select,
|
|
3833
|
+
vt as SelectContent,
|
|
3834
|
+
Qr as SelectGroup,
|
|
3835
|
+
xt as SelectItem,
|
|
3836
|
+
Vt as SelectLabel,
|
|
3837
|
+
bt as SelectScrollDownButton,
|
|
3838
|
+
gt as SelectScrollUpButton,
|
|
3839
|
+
Gt as SelectSeparator,
|
|
3840
|
+
yt as SelectTrigger,
|
|
3841
|
+
Yr as SelectValue,
|
|
3842
|
+
ze as Spinner,
|
|
3843
|
+
mr as Switch,
|
|
3844
|
+
an as Table,
|
|
3845
|
+
on as TableCards,
|
|
3846
|
+
sn as TableSettings,
|
|
3847
|
+
Tr as Tag,
|
|
3848
|
+
Er as Textarea,
|
|
3849
|
+
ln as Toaster,
|
|
3850
|
+
un as Tooltip,
|
|
3851
|
+
Wr as TooltipContent,
|
|
3852
|
+
cn as TooltipProvider,
|
|
3853
|
+
Mr as TooltipTrigger,
|
|
3854
|
+
O as Typography,
|
|
3855
|
+
_r as buttonVariants,
|
|
3856
|
+
Zt as checkboxVariants,
|
|
3857
|
+
qt as indicatorVariants,
|
|
3858
|
+
sr as radioVariants,
|
|
3859
|
+
Qt as spinnerVariants,
|
|
3860
|
+
cr as switchVariants,
|
|
3861
|
+
Sr as tagVariants,
|
|
3862
|
+
ur as thumbVariants,
|
|
3863
|
+
dn as toast,
|
|
3864
|
+
mt as typographyVariants
|
|
2877
3865
|
};
|