@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 CHANGED
@@ -1,432 +1,434 @@
1
- var Re = Object.defineProperty, Fe = Object.defineProperties;
2
- var ze = Object.getOwnPropertyDescriptors;
3
- var Z = Object.getOwnPropertySymbols;
4
- var ie = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
5
- var ne = (r, e, t) => e in r ? Re(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
6
- for (var t in e || (e = {}))
7
- ie.call(e, t) && ne(r, t, e[t]);
8
- if (Z)
9
- for (var t of Z(e))
10
- se.call(e, t) && ne(r, t, e[t]);
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 i = (r, e, t) => new Promise((a, o) => {
23
- var d = (u) => {
22
+ var m = (t, e, r) => new Promise((a, n) => {
23
+ var s = (u) => {
24
24
  try {
25
- m(t.next(u));
26
- } catch (y) {
27
- o(y);
25
+ d(r.next(u));
26
+ } catch (h) {
27
+ n(h);
28
28
  }
29
- }, c = (u) => {
29
+ }, l = (u) => {
30
30
  try {
31
- m(t.throw(u));
32
- } catch (y) {
33
- o(y);
31
+ d(r.throw(u));
32
+ } catch (h) {
33
+ n(h);
34
34
  }
35
- }, m = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(d, c);
36
- m((t = t.apply(r, e)).next());
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 n, jsxs as C, Fragment as le } from "react/jsx-runtime";
39
- import h, { lazy as Ae, Suspense as Be, useState as ue, useMemo as Pe, useCallback as Le, createElement as _e, useRef as U, useEffect as me, useImperativeHandle as Me } from "react";
40
- import { Slot as J } from "@radix-ui/react-slot";
41
- import { cva as W } from "class-variance-authority";
42
- import { clsx as je } from "clsx";
43
- import { twMerge as Oe } from "tailwind-merge";
44
- import * as de from "@radix-ui/react-checkbox";
45
- import * as q from "@radix-ui/react-radio-group";
46
- import * as X from "@radix-ui/react-switch";
47
- import * as _ from "@radix-ui/react-select";
48
- import * as M from "@radix-ui/react-dialog";
49
- import * as H from "@radix-ui/react-tooltip";
50
- import { toast as E, Toaster as We } from "sonner";
51
- function p(...r) {
52
- return Oe(je(r));
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 s(r) {
55
- return Ae(() => i(null, null, function* () {
56
- return { default: (yield r()).ReactComponent };
56
+ function f(t) {
57
+ return Tt(() => m(null, null, function* () {
58
+ return { default: (yield t()).ReactComponent };
57
59
  }));
58
60
  }
59
- const He = {
60
- UnfoldIcon: s(() => i(null, null, function* () {
61
+ const Pt = {
62
+ UnfoldIcon: f(() => m(null, null, function* () {
61
63
  return import("../chunks/unfold-icon-S3J7xXHf.js");
62
64
  })),
63
- CallIcon: s(() => i(null, null, function* () {
65
+ CallIcon: f(() => m(null, null, function* () {
64
66
  return import("../chunks/call-icon-DslHaQOP.js");
65
67
  })),
66
- SettingsIcon: s(() => i(null, null, function* () {
68
+ SettingsIcon: f(() => m(null, null, function* () {
67
69
  return import("../chunks/settings-icon-D_wgjUsM.js");
68
70
  })),
69
- DoneIcon: s(() => i(null, null, function* () {
71
+ DoneIcon: f(() => m(null, null, function* () {
70
72
  return import("../chunks/done-icon-BZEAL7mI.js");
71
73
  })),
72
- CreditCardIcon: s(() => i(null, null, function* () {
74
+ CreditCardIcon: f(() => m(null, null, function* () {
73
75
  return import("../chunks/credit-card-icon-DS1ckDU7.js");
74
76
  })),
75
- OpenInFullIcon: s(() => i(null, null, function* () {
77
+ OpenInFullIcon: f(() => m(null, null, function* () {
76
78
  return import("../chunks/open-in-full-icon-DzhRd5Mx.js");
77
79
  })),
78
- AccountBalanceIcon: s(
79
- () => i(null, null, function* () {
80
+ AccountBalanceIcon: f(
81
+ () => m(null, null, function* () {
80
82
  return import("../chunks/account-balance-icon-CKxx1j3X.js");
81
83
  })
82
84
  ),
83
- DownloadIcon: s(() => i(null, null, function* () {
85
+ DownloadIcon: f(() => m(null, null, function* () {
84
86
  return import("../chunks/download-icon-BvWPcT7W.js");
85
87
  })),
86
- HomeIcon: s(() => i(null, null, function* () {
88
+ HomeIcon: f(() => m(null, null, function* () {
87
89
  return import("../chunks/home-icon-Mag5Wxqq.js");
88
90
  })),
89
- MailIcon: s(() => i(null, null, function* () {
91
+ MailIcon: f(() => m(null, null, function* () {
90
92
  return import("../chunks/mail-icon-DCZPsZFE.js");
91
93
  })),
92
- OpenInNewIcon: s(() => i(null, null, function* () {
94
+ OpenInNewIcon: f(() => m(null, null, function* () {
93
95
  return import("../chunks/open-in-new-icon-A7MgnnyP.js");
94
96
  })),
95
- SupportIcon: s(() => i(null, null, function* () {
97
+ SupportIcon: f(() => m(null, null, function* () {
96
98
  return import("../chunks/support-icon-CBHKGKq8.js");
97
99
  })),
98
- BusinessCenterIcon: s(
99
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
105
+ WorkIcon: f(() => m(null, null, function* () {
104
106
  return import("../chunks/work-icon-D7I-74Mk.js");
105
107
  })),
106
- ArrowBackIcon: s(() => i(null, null, function* () {
108
+ ArrowBackIcon: f(() => m(null, null, function* () {
107
109
  return import("../chunks/arrow-back-icon-C_VwBDNK.js");
108
110
  })),
109
- SendIcon: s(() => i(null, null, function* () {
111
+ SendIcon: f(() => m(null, null, function* () {
110
112
  return import("../chunks/send-icon-BTztERTu.js");
111
113
  })),
112
- DeleteIcon: s(() => i(null, null, function* () {
114
+ DeleteIcon: f(() => m(null, null, function* () {
113
115
  return import("../chunks/delete-icon-Bk1ZmhBo.js");
114
116
  })),
115
- ArrowBackIOSIcon: s(
116
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
122
+ SearchIcon: f(() => m(null, null, function* () {
121
123
  return import("../chunks/search-icon-CortrXrC.js");
122
124
  })),
123
- InfoIcon: s(() => i(null, null, function* () {
125
+ InfoIcon: f(() => m(null, null, function* () {
124
126
  return import("../chunks/info-icon-BcUNe5kE.js");
125
127
  })),
126
- PersonIcon: s(() => i(null, null, function* () {
128
+ PersonIcon: f(() => m(null, null, function* () {
127
129
  return import("../chunks/person-icon-Bo5NxPRQ.js");
128
130
  })),
129
- CloseIcon: s(() => i(null, null, function* () {
131
+ CloseIcon: f(() => m(null, null, function* () {
130
132
  return import("../chunks/close-icon-CtbXesC0.js");
131
133
  })),
132
- AddCircleIcon: s(() => i(null, null, function* () {
134
+ AddCircleIcon: f(() => m(null, null, function* () {
133
135
  return import("../chunks/add-circle-icon-D3XpY2oT.js");
134
136
  })),
135
- InventoryIcon: s(() => i(null, null, function* () {
137
+ InventoryIcon: f(() => m(null, null, function* () {
136
138
  return import("../chunks/inventory-icon-CFV8amBs.js");
137
139
  })),
138
- BookIcon: s(() => i(null, null, function* () {
140
+ BookIcon: f(() => m(null, null, function* () {
139
141
  return import("../chunks/book-icon-BdaCKIQB.js");
140
142
  })),
141
- RefreshIcon: s(() => i(null, null, function* () {
143
+ RefreshIcon: f(() => m(null, null, function* () {
142
144
  return import("../chunks/refresh-icon-ac1oOwX8.js");
143
145
  })),
144
- ArrowDownIcon: s(() => i(null, null, function* () {
146
+ ArrowDownIcon: f(() => m(null, null, function* () {
145
147
  return import("../chunks/arrow-down-icon-DFvg75P7.js");
146
148
  })),
147
- ArrowUpIcon: s(() => i(null, null, function* () {
149
+ ArrowUpIcon: f(() => m(null, null, function* () {
148
150
  return import("../chunks/arrow-up-icon-DU7VVzN8.js");
149
151
  })),
150
- ArrowRightIcon: s(() => i(null, null, function* () {
152
+ ArrowRightIcon: f(() => m(null, null, function* () {
151
153
  return import("../chunks/arrow-right-icon-Bnx7GHux.js");
152
154
  })),
153
- ArrowLeftIcon: s(() => i(null, null, function* () {
155
+ ArrowLeftIcon: f(() => m(null, null, function* () {
154
156
  return import("../chunks/arrow-left-icon-8yWT42A8.js");
155
157
  })),
156
- ArrowForwardIcon: s(() => i(null, null, function* () {
158
+ ArrowForwardIcon: f(() => m(null, null, function* () {
157
159
  return import("../chunks/arrow-forward-icon-BI4dm_L2.js");
158
160
  })),
159
- BoltIcon: s(() => i(null, null, function* () {
161
+ BoltIcon: f(() => m(null, null, function* () {
160
162
  return import("../chunks/bolt-icon-CJsvLlL-.js");
161
163
  })),
162
- LogoutIcon: s(() => i(null, null, function* () {
164
+ LogoutIcon: f(() => m(null, null, function* () {
163
165
  return import("../chunks/logout-icon-DN86wp7N.js");
164
166
  })),
165
- ProgressActivityIcon: s(
166
- () => i(null, null, function* () {
167
+ ProgressActivityIcon: f(
168
+ () => m(null, null, function* () {
167
169
  return import("../chunks/progress-activity-icon-YbJGzvxH.js");
168
170
  })
169
171
  ),
170
- AutorenewIcon: s(() => i(null, null, function* () {
172
+ AutorenewIcon: f(() => m(null, null, function* () {
171
173
  return import("../chunks/autorenew-icon-B0bI6Xt-.js");
172
174
  })),
173
- HelpIcon: s(() => i(null, null, function* () {
175
+ HelpIcon: f(() => m(null, null, function* () {
174
176
  return import("../chunks/help-icon-BMdlItds.js");
175
177
  })),
176
- VisibilityOnIcon: s(() => i(null, null, function* () {
178
+ VisibilityOnIcon: f(() => m(null, null, function* () {
177
179
  return import("../chunks/visibility-on-icon-C9VmKsvX.js");
178
180
  })),
179
- RemoveIcon: s(() => i(null, null, function* () {
181
+ RemoveIcon: f(() => m(null, null, function* () {
180
182
  return import("../chunks/remove-icon-CTuoG0Vq.js");
181
183
  })),
182
- AddIcon: s(() => i(null, null, function* () {
184
+ AddIcon: f(() => m(null, null, function* () {
183
185
  return import("../chunks/add-icon-CZXR66VL.js");
184
186
  })),
185
- EditIcon: s(() => i(null, null, function* () {
187
+ EditIcon: f(() => m(null, null, function* () {
186
188
  return import("../chunks/edit-icon-_3venQRC.js");
187
189
  })),
188
- ScenarioIcon: s(() => i(null, null, function* () {
190
+ ScenarioIcon: f(() => m(null, null, function* () {
189
191
  return import("../chunks/scenario-icon-BcnFsqUA.js");
190
192
  })),
191
- NorthEastIcon: s(() => i(null, null, function* () {
193
+ NorthEastIcon: f(() => m(null, null, function* () {
192
194
  return import("../chunks/north-east-icon-Dh7-1BBW.js");
193
195
  })),
194
- MoreVertIcon: s(() => i(null, null, function* () {
196
+ MoreVertIcon: f(() => m(null, null, function* () {
195
197
  return import("../chunks/more-vert-icon-NA1tYTse.js");
196
198
  })),
197
- MenuIcon: s(() => i(null, null, function* () {
199
+ MenuIcon: f(() => m(null, null, function* () {
198
200
  return import("../chunks/menu-icon-DWObHD95.js");
199
201
  })),
200
- CheckCircleIcon: s(() => i(null, null, function* () {
202
+ CheckCircleIcon: f(() => m(null, null, function* () {
201
203
  return import("../chunks/check-circle-icon-BWhJprgU.js");
202
204
  })),
203
- BlockIcon: s(() => i(null, null, function* () {
205
+ BlockIcon: f(() => m(null, null, function* () {
204
206
  return import("../chunks/block-icon-DGlp9c33.js");
205
207
  })),
206
- BoltFillIcon: s(() => i(null, null, function* () {
208
+ BoltFillIcon: f(() => m(null, null, function* () {
207
209
  return import("../chunks/bolt-fill-icon-DZjyKq8N.js");
208
210
  })),
209
- ErrorIcon: s(() => i(null, null, function* () {
211
+ ErrorIcon: f(() => m(null, null, function* () {
210
212
  return import("../chunks/error-icon-CgJ3zr06.js");
211
213
  })),
212
- ErrorFillIcon: s(() => i(null, null, function* () {
214
+ ErrorFillIcon: f(() => m(null, null, function* () {
213
215
  return import("../chunks/error-fill-icon--8j3Zcfq.js");
214
216
  })),
215
- VisibilityOffIcon: s(
216
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
222
+ PaymentIcon: f(() => m(null, null, function* () {
221
223
  return import("../chunks/payment-icon-C-B7L4WP.js");
222
224
  })),
223
- FilterIcon: s(() => i(null, null, function* () {
225
+ FilterIcon: f(() => m(null, null, function* () {
224
226
  return import("../chunks/filter-icon-D_3_SQsN.js");
225
227
  })),
226
- FullScreenIcon: s(() => i(null, null, function* () {
228
+ FullScreenIcon: f(() => m(null, null, function* () {
227
229
  return import("../chunks/full-screen-icon-Dpl__xtk.js");
228
230
  })),
229
- FullScreenExitIcon: s(
230
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
236
+ MoreHorizIcon: f(() => m(null, null, function* () {
235
237
  return import("../chunks/more-horiz-icon-CSK7Ackl.js");
236
238
  })),
237
- GroupIcon: s(() => i(null, null, function* () {
239
+ GroupIcon: f(() => m(null, null, function* () {
238
240
  return import("../chunks/group-icon-BfSRHuvp.js");
239
241
  })),
240
- DocumentIcon: s(() => i(null, null, function* () {
242
+ DocumentIcon: f(() => m(null, null, function* () {
241
243
  return import("../chunks/document-icon-DcmQhRhY.js");
242
244
  })),
243
- ListIcon: s(() => i(null, null, function* () {
245
+ ListIcon: f(() => m(null, null, function* () {
244
246
  return import("../chunks/list-icon-ChePCGxK.js");
245
247
  })),
246
- AttachFileIcon: s(() => i(null, null, function* () {
248
+ AttachFileIcon: f(() => m(null, null, function* () {
247
249
  return import("../chunks/attach-file-icon-OrT7tthI.js");
248
250
  })),
249
- LocationIcon: s(() => i(null, null, function* () {
251
+ LocationIcon: f(() => m(null, null, function* () {
250
252
  return import("../chunks/location-icon-Bf9Wbg65.js");
251
253
  })),
252
- UploadIcon: s(() => i(null, null, function* () {
254
+ UploadIcon: f(() => m(null, null, function* () {
253
255
  return import("../chunks/upload-icon-CwzthQEL.js");
254
256
  })),
255
- PageInfoIcon: s(() => i(null, null, function* () {
257
+ PageInfoIcon: f(() => m(null, null, function* () {
256
258
  return import("../chunks/page-info-icon-BiVNFu71.js");
257
259
  })),
258
- SegmentIcon: s(() => i(null, null, function* () {
260
+ SegmentIcon: f(() => m(null, null, function* () {
259
261
  return import("../chunks/segment-icon-Bzm7cziF.js");
260
262
  })),
261
- CopyIcon: s(() => i(null, null, function* () {
263
+ CopyIcon: f(() => m(null, null, function* () {
262
264
  return import("../chunks/copy-icon-BWyncDVB.js");
263
265
  })),
264
- InfoFillIcon: s(() => i(null, null, function* () {
266
+ InfoFillIcon: f(() => m(null, null, function* () {
265
267
  return import("../chunks/info-fill-icon-BzE09Xg8.js");
266
268
  })),
267
- ManageAccountsIcon: s(
268
- () => i(null, null, function* () {
269
+ ManageAccountsIcon: f(
270
+ () => m(null, null, function* () {
269
271
  return import("../chunks/manage-accounts-icon-BkyuUTj3.js");
270
272
  })
271
273
  ),
272
- FlagIcon: s(() => i(null, null, function* () {
274
+ FlagIcon: f(() => m(null, null, function* () {
273
275
  return import("../chunks/flag-icon-DmWEp4ya.js");
274
276
  })),
275
- CalendarIcon: s(() => i(null, null, function* () {
277
+ CalendarIcon: f(() => m(null, null, function* () {
276
278
  return import("../chunks/calendar-icon-B1cogiSd.js");
277
279
  })),
278
- PincodeIcon: s(() => i(null, null, function* () {
280
+ PincodeIcon: f(() => m(null, null, function* () {
279
281
  return import("../chunks/pincode-icon-BA-e4pBH.js");
280
282
  })),
281
- OutgoingMailIcon: s(() => i(null, null, function* () {
283
+ OutgoingMailIcon: f(() => m(null, null, function* () {
282
284
  return import("../chunks/outgoing-main-icon-BAH2vddG.js");
283
285
  })),
284
- TimeIcon: s(() => i(null, null, function* () {
286
+ TimeIcon: f(() => m(null, null, function* () {
285
287
  return import("../chunks/time-icon-DsWMo47L.js");
286
288
  })),
287
- SmsIcon: s(() => i(null, null, function* () {
289
+ SmsIcon: f(() => m(null, null, function* () {
288
290
  return import("../chunks/sms-icon-4p-ON5VX.js");
289
291
  })),
290
- TelegrammIcon: s(() => i(null, null, function* () {
292
+ TelegrammIcon: f(() => m(null, null, function* () {
291
293
  return import("../chunks/telegramm-icon-C2ZR2jdg.js");
292
294
  })),
293
- BillsWarningIcon: s(() => i(null, null, function* () {
295
+ BillsWarningIcon: f(() => m(null, null, function* () {
294
296
  return import("../chunks/bills-warning-icon-CNgWvumi.js");
295
297
  })),
296
- BillsInProgressIcon: s(
297
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
303
+ BillsIcon: f(() => m(null, null, function* () {
302
304
  return import("../chunks/bills-icon-BU_adAs0.js");
303
305
  })),
304
- BillsErrorIcon: s(() => i(null, null, function* () {
306
+ BillsErrorIcon: f(() => m(null, null, function* () {
305
307
  return import("../chunks/bills-error-icon-CcDGUJrx.js");
306
308
  })),
307
- BillWarningIcon: s(() => i(null, null, function* () {
309
+ BillWarningIcon: f(() => m(null, null, function* () {
308
310
  return import("../chunks/bill-warning-icon-3Y-dONd_.js");
309
311
  })),
310
- BillInProgressIcon: s(
311
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
317
+ BillIcon: f(() => m(null, null, function* () {
316
318
  return import("../chunks/bill-icon-Cw2GE_VB.js");
317
319
  })),
318
- BillErrorIcon: s(() => i(null, null, function* () {
320
+ BillErrorIcon: f(() => m(null, null, function* () {
319
321
  return import("../chunks/bill-error-icon-q8_KROAY.js");
320
322
  })),
321
- AndroidIcon: s(() => i(null, null, function* () {
323
+ AndroidIcon: f(() => m(null, null, function* () {
322
324
  return import("../chunks/android-icon-6SCGu50U.js");
323
325
  })),
324
- AppleIcon: s(() => i(null, null, function* () {
326
+ AppleIcon: f(() => m(null, null, function* () {
325
327
  return import("../chunks/apple-icon-yya6O1xg.js");
326
328
  })),
327
- ZoomInIcon: s(() => i(null, null, function* () {
329
+ ZoomInIcon: f(() => m(null, null, function* () {
328
330
  return import("../chunks/zoom-in-icon-ZWEJANob.js");
329
331
  })),
330
- ZoomOutIcon: s(() => i(null, null, function* () {
332
+ ZoomOutIcon: f(() => m(null, null, function* () {
331
333
  return import("../chunks/zoom-out-icon-CeFz3G6V.js");
332
334
  })),
333
- SaveIcon: s(() => i(null, null, function* () {
335
+ SaveIcon: f(() => m(null, null, function* () {
334
336
  return import("../chunks/save-icon-DnF5revo.js");
335
337
  })),
336
- WalletIcon: s(() => i(null, null, function* () {
338
+ WalletIcon: f(() => m(null, null, function* () {
337
339
  return import("../chunks/wallet-icon-D0r9bDRg.js");
338
340
  })),
339
- PlayIcon: s(() => i(null, null, function* () {
341
+ PlayIcon: f(() => m(null, null, function* () {
340
342
  return import("../chunks/play-icon-Bnj3hsIf.js");
341
343
  })),
342
- SberIdIcon: s(() => i(null, null, function* () {
344
+ SberIdIcon: f(() => m(null, null, function* () {
343
345
  return import("../chunks/sberid-icon-DgQtjRjD.js");
344
346
  })),
345
- TinkoffIdIcon: s(() => i(null, null, function* () {
347
+ TinkoffIdIcon: f(() => m(null, null, function* () {
346
348
  return import("../chunks/tinkoffid-icon-DN9XKuNA.js");
347
349
  })),
348
- CookieIcon: s(() => i(null, null, function* () {
350
+ CookieIcon: f(() => m(null, null, function* () {
349
351
  return import("../chunks/cookie-DJ-U7h-A.js");
350
352
  })),
351
- ThumbsUpIcon: s(() => i(null, null, function* () {
353
+ ThumbsUpIcon: f(() => m(null, null, function* () {
352
354
  return import("../chunks/thumbs-up-icon-BArjyDfk.js");
353
355
  })),
354
- CheckCircleFillIcon: s(
355
- () => i(null, null, function* () {
356
+ CheckCircleFillIcon: f(
357
+ () => m(null, null, function* () {
356
358
  return import("../chunks/check-circle-fill-ne1MhahL.js");
357
359
  })
358
360
  ),
359
- CancelFillIcon: s(() => i(null, null, function* () {
361
+ CancelFillIcon: f(() => m(null, null, function* () {
360
362
  return import("../chunks/cancel-fill-DPYenlCk.js");
361
363
  })),
362
- TrendingUpIcon: s(() => i(null, null, function* () {
364
+ TrendingUpIcon: f(() => m(null, null, function* () {
363
365
  return import("../chunks/trending-up-icon-IEwGHi9c.js");
364
366
  })),
365
- TrendingDownIcon: s(() => i(null, null, function* () {
367
+ TrendingDownIcon: f(() => m(null, null, function* () {
366
368
  return import("../chunks/trending-down-icon-DlHKI37F.js");
367
369
  })),
368
- PersonAddIcon: s(() => i(null, null, function* () {
370
+ PersonAddIcon: f(() => m(null, null, function* () {
369
371
  return import("../chunks/person-add-C-3pZhgM.js");
370
372
  })),
371
- PersonSearchIcon: s(() => i(null, null, function* () {
373
+ PersonSearchIcon: f(() => m(null, null, function* () {
372
374
  return import("../chunks/person-search-icon-CwVm_XAL.js");
373
375
  })),
374
- LinkIcon: s(() => i(null, null, function* () {
376
+ LinkIcon: f(() => m(null, null, function* () {
375
377
  return import("../chunks/link-icon-BUAymb0P.js");
376
378
  })),
377
- FileSuccessIcon: s(() => i(null, null, function* () {
379
+ FileSuccessIcon: f(() => m(null, null, function* () {
378
380
  return import("../chunks/file-success-icon-BTk5SYAM.js");
379
381
  })),
380
- FileErrorIcon: s(() => i(null, null, function* () {
382
+ FileErrorIcon: f(() => m(null, null, function* () {
381
383
  return import("../chunks/file-error-icon-630wBy1K.js");
382
384
  })),
383
- ShieldIcon: s(() => i(null, null, function* () {
385
+ ShieldIcon: f(() => m(null, null, function* () {
384
386
  return import("../chunks/shield-icon-BwpxkU5E.js");
385
387
  })),
386
- StatisticIcon: s(() => i(null, null, function* () {
388
+ StatisticIcon: f(() => m(null, null, function* () {
387
389
  return import("../chunks/statistic-icon-mhqUxTDv.js");
388
390
  })),
389
- DontDisturbIcon: s(() => i(null, null, function* () {
391
+ DontDisturbIcon: f(() => m(null, null, function* () {
390
392
  return import("../chunks/dont-disturb-o1xt1TeU.js");
391
393
  })),
392
- WhatsAppIcon: s(() => i(null, null, function* () {
394
+ WhatsAppIcon: f(() => m(null, null, function* () {
393
395
  return import("../chunks/whats-app-icon-XbrqQF8U.js");
394
396
  })),
395
- MaxIcon: s(() => i(null, null, function* () {
397
+ MaxIcon: f(() => m(null, null, function* () {
396
398
  return import("../chunks/max-icon-CTdBEAt8.js");
397
399
  })),
398
- SettingsBackupRestoreIcon: s(
399
- () => i(null, null, function* () {
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: s(() => i(null, null, function* () {
405
+ PauseCircleIcon: f(() => m(null, null, function* () {
404
406
  return import("../chunks/pause-circle-icon-Dpio-qM3.js");
405
407
  })),
406
- BellIcon: s(() => i(null, null, function* () {
408
+ BellIcon: f(() => m(null, null, function* () {
407
409
  return import("../chunks/bell-icon-L-Ynt5XK.js");
408
410
  }))
409
411
  };
410
- function F({
411
- icon: r,
412
+ function P({
413
+ icon: t,
412
414
  style: e,
413
- className: t,
415
+ className: r,
414
416
  size: a = 16
415
417
  }) {
416
- const o = He[r];
417
- return o ? /* @__PURE__ */ n(
418
+ const n = Pt[t];
419
+ return n ? /* @__PURE__ */ o(
418
420
  "div",
419
421
  {
420
422
  "data-ui-icon": !0,
421
- style: N(x({}, e), {
423
+ style: D(w({}, e), {
422
424
  fontSize: a
423
425
  }),
424
- className: p("inline-flex items-center justify-center", t),
425
- children: /* @__PURE__ */ n(Be, { fallback: null, children: /* @__PURE__ */ n(o, {}) })
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 ce = W("", {
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
- }), L = h.forwardRef(
464
- (u, m) => {
465
- var y = u, {
466
- className: r,
465
+ }), O = N.forwardRef(
466
+ (u, d) => {
467
+ var h = u, {
468
+ className: t,
467
469
  variant: e,
468
- textColor: t,
470
+ textColor: r,
469
471
  weight: a,
470
- as: o = "div",
471
- copyable: d
472
- } = y, c = k(y, [
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 [l, b] = ue(!1), f = Pe(() => d ? typeof d == "boolean" ? {} : d : null, [d]), w = Le(
481
- (v) => i(null, null, function* () {
482
- var T, z, P, A, B;
483
- if (!f)
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
- v.preventDefault(), v.stopPropagation(), v.nativeEvent.stopImmediatePropagation();
486
- const S = (P = (z = f.text) != null ? z : (T = v.currentTarget.textContent) == null ? void 0 : T.trim()) != null ? P : "";
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(S), (A = f.onCopy) == null || A.call(f), b(!0), setTimeout(() => b(!1), (B = f.duration) != null ? B : 1500);
489
- } catch (j) {
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
- [f]
494
+ [b]
493
495
  );
494
- let g = a;
495
- e && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(e) && !a && (g = "bold");
496
- const I = o;
497
- return f ? /* @__PURE__ */ C(
498
- I,
499
- N(x({
500
- ref: m,
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: w,
504
- className: p(
505
+ onClick: x,
506
+ className: g(
505
507
  "group hover:text-default inline-flex cursor-pointer items-center select-text",
506
- ce({
508
+ mt({
507
509
  variant: e,
508
- textColor: t,
509
- weight: g,
510
- className: r
510
+ textColor: r,
511
+ weight: c,
512
+ className: t
511
513
  })
512
514
  )
513
- }, c), {
515
+ }, l), {
514
516
  children: [
515
- c.children,
516
- /* @__PURE__ */ n(
517
- F,
517
+ l.children,
518
+ /* @__PURE__ */ o(
519
+ P,
518
520
  {
519
521
  size: 12,
520
- icon: l ? "CheckCircleFillIcon" : "CopyIcon",
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__ */ n(
527
- I,
528
- x({
529
- ref: m,
530
- className: p(
531
- ce({ variant: e, textColor: t, weight: g }),
532
- r
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
- }, c)
536
+ }, l)
535
537
  );
536
538
  }
537
539
  );
538
- L.displayName = "Typography";
539
- const G = h.forwardRef(
540
- (j, B) => {
541
- var R = j, {
542
- className: r,
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: t = "md",
546
+ size: r = "md",
545
547
  icon: a,
546
- label: o,
547
- error: d,
548
- caption: c,
549
- iconName: m,
548
+ label: n,
549
+ error: s,
550
+ caption: l,
551
+ iconName: d,
550
552
  iconPosition: u = "left",
551
- fullWidthContainer: y = !0,
552
- fullWidth: l = !0,
553
- disabled: b = !1,
554
- containerClassName: f,
555
- inlineSelect: w,
556
- prefixContainer: g,
557
- autoFocus: I,
558
- suffix: v,
559
- showErrorMessage: S = !0,
560
- onClear: T,
561
- value: z,
562
- "data-testid": P
563
- } = R, A = k(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 $ = z != null && z.toString().length > 0, D = T && $ && !b;
587
- return /* @__PURE__ */ C("div", { className: p(y && "w-full"), children: [
588
- o && /* @__PURE__ */ n(
589
- L,
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: p("mb-1.5", {
594
- "text-[14px]": t === "md",
595
- "text-[16px]": t === "lg"
595
+ className: g("mb-1.5", {
596
+ "text-[14px]": r === "md",
597
+ "text-[16px]": r === "lg"
596
598
  }),
597
- children: o
599
+ children: n
598
600
  }
599
601
  ),
600
- /* @__PURE__ */ C(
602
+ /* @__PURE__ */ S(
601
603
  "div",
602
604
  {
603
- className: p(
605
+ className: g(
604
606
  "group relative flex items-center rounded-lg border-1 border-solid",
605
- l && "w-full",
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": !b,
608
- "bg-background border-border": b,
609
- "bg-background border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": d != null && !b,
610
- "h-8": t === "md",
611
- "h-10 rounded-xl": t === "lg",
612
- "bg-muted cursor-not-allowed": b
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
- f
616
+ b
615
617
  ),
616
618
  children: [
617
- g && /* @__PURE__ */ n("div", { className: "flex items-center pl-1", children: g }),
618
- a && !m && u === "left" && /* @__PURE__ */ n(
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: p(
623
+ className: g(
622
624
  "group-focus-within:text-foreground text-muted-foreground flex items-center pl-2 transition-colors",
623
- d && "!group-focus-within:!text-destructive !text-destructive"
625
+ s && "!group-focus-within:!text-destructive !text-destructive"
624
626
  ),
625
627
  children: a
626
628
  }
627
629
  ),
628
- m && !a && u === "left" && /* @__PURE__ */ n("div", { className: "flex items-center pl-2", children: /* @__PURE__ */ n(
629
- F,
630
+ d && !a && u === "left" && /* @__PURE__ */ o("div", { className: "flex items-center pl-2", children: /* @__PURE__ */ o(
631
+ P,
630
632
  {
631
- icon: m,
632
- className: p(
633
+ icon: d,
634
+ className: g(
633
635
  "group-focus-within:text-foreground text-muted-foreground transition-colors",
634
- d && "!group-focus-within:!text-destructive !text-destructive"
636
+ s && "!group-focus-within:!text-destructive !text-destructive"
635
637
  )
636
638
  }
637
639
  ) }),
638
- /* @__PURE__ */ n(
640
+ /* @__PURE__ */ o(
639
641
  "input",
640
- x({
642
+ w({
641
643
  type: e,
642
- className: p(
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": l,
648
+ "w-full": i,
647
649
  "placeholder:text-muted-foreground": !0,
648
- "text-[14px]": t === "md",
649
- "text-[16px]": t === "lg",
650
- "px-2.5": t === "md" || t === "lg",
651
- "pl-2": (a || m) && u === "left" && (t === "md" || t === "lg"),
652
- "text-muted-foreground": b
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
- r
656
+ t
655
657
  ),
656
- ref: B,
657
- value: z,
658
- disabled: b,
659
- autoFocus: I,
660
- "data-testid": P
661
- }, A)
658
+ ref: M,
659
+ value: T,
660
+ disabled: p,
661
+ autoFocus: v,
662
+ "data-testid": F
663
+ }, L)
662
664
  ),
663
- (w || a || m || d || v || D) && /* @__PURE__ */ C("div", { className: "flex items-center gap-1.5 pr-2", children: [
664
- v && /* @__PURE__ */ n("div", { className: "font-graphik flex items-center text-[16px]", children: v }),
665
- w && /* @__PURE__ */ n(
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: p(
670
+ className: g(
669
671
  "relative inline-block max-w-[110px] overflow-hidden"
670
672
  ),
671
- children: /* @__PURE__ */ n("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: w })
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 && !m && u === "right" && /* @__PURE__ */ n(
676
+ a && !d && u === "right" && /* @__PURE__ */ o(
675
677
  "div",
676
678
  {
677
- className: p(
679
+ className: g(
678
680
  "group-focus-within:text-foreground text-muted-foreground flex items-center transition-colors",
679
- d && "!group-focus-within:!text-destructive !text-destructive"
681
+ s && "!group-focus-within:!text-destructive !text-destructive"
680
682
  ),
681
683
  children: a
682
684
  }
683
685
  ),
684
- m && !a && u === "right" && /* @__PURE__ */ n(
685
- F,
686
+ d && !a && u === "right" && /* @__PURE__ */ o(
687
+ P,
686
688
  {
687
- icon: m,
688
- className: p(
689
+ icon: d,
690
+ className: g(
689
691
  "group-focus-within:text-foreground text-muted-foreground transition-colors",
690
- d && "!group-focus-within:!text-destructive !text-destructive"
692
+ s && "!group-focus-within:!text-destructive !text-destructive"
691
693
  )
692
694
  }
693
695
  ),
694
- D && /* @__PURE__ */ n(
696
+ _ && /* @__PURE__ */ o(
695
697
  "div",
696
698
  {
697
- onClick: T,
698
- className: p(
699
+ onClick: k,
700
+ className: g(
699
701
  "flex cursor-pointer items-center justify-center",
700
- b && "cursor-not-allowed opacity-50"
702
+ p && "cursor-not-allowed opacity-50"
701
703
  ),
702
704
  role: "button",
703
705
  tabIndex: 0,
704
- children: /* @__PURE__ */ n(
705
- F,
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
- d != null && /* @__PURE__ */ n(
715
- F,
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
- c && !d && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: c }),
727
- d && S && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: d })
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
- G.displayName = "Input";
732
- const Ue = h.forwardRef(
733
- (r, e) => {
734
- const [t, a] = h.useState(!1), o = h.useRef(null), y = r, { size: d = "md" } = y, c = k(y, ["size"]), m = h.useCallback(
735
- (l) => {
736
- o.current = l, typeof e == "function" ? e(l) : e && (e.current = l);
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 = h.useCallback(() => {
740
- if (o.current) {
741
- const l = o.current.value.length;
741
+ ), u = N.useCallback(() => {
742
+ if (n.current) {
743
+ const i = n.current.value.length;
742
744
  requestAnimationFrame(() => {
743
- var b, f;
744
- (b = o.current) == null || b.focus(), (f = o.current) == null || f.setSelectionRange(l, l);
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__ */ n(
749
- G,
750
- N(x({}, c), {
751
- ref: m,
752
- type: t ? "text" : "password",
753
- size: d,
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__ */ n(
756
- ee,
757
+ icon: /* @__PURE__ */ o(
758
+ Be,
757
759
  {
758
760
  variant: "text",
759
761
  iconOnly: !0,
760
762
  size: "sm",
761
- onClick: (l) => {
762
- l.preventDefault(), l.stopPropagation(), a(!t), u();
763
+ onClick: (i) => {
764
+ i.preventDefault(), i.stopPropagation(), a(!r), u();
763
765
  },
764
- icon: t ? "VisibilityOnIcon" : "VisibilityOffIcon",
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
- Ue.displayName = "InputPassword";
773
- const $e = h.forwardRef(
774
- (r, e) => {
775
- const y = r, {
776
- type: t = "button",
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: o,
779
- size: d = "md",
780
- disabled: c,
781
- phoneInputSearch: m = !1
782
- } = y, u = k(y, [
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__ */ n(
791
- G,
792
- N(x({}, u), {
792
+ return /* @__PURE__ */ o(
793
+ Fe,
794
+ D(w({}, u), {
793
795
  ref: e,
794
- size: d,
795
- disabled: c,
796
+ size: s,
797
+ disabled: l,
796
798
  className: "pl-1.5",
797
- containerClassName: p(
799
+ containerClassName: g(
798
800
  "group",
799
- o,
800
- t === "border" && [
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
- m ? "hover:border-border focus-within:border-border px-3" : "hover:border-b-hover-input-primary focus-within:border-b-primary",
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__ */ n(
811
- F,
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
- $e.displayName = "InputSearch";
822
- const Ke = h.forwardRef(
823
- (r, e) => {
824
- const m = r, { size: t = "md", title: a, className: o, disabled: d } = m, c = k(m, ["size", "title", "className", "disabled"]);
825
- return /* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
826
- G,
827
- N(x({}, c), {
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: d,
831
- className: p("font-bold", {
832
- "text-[18px]": t === "md",
833
- "text-[24px]": t === "lg"
832
+ disabled: s,
833
+ className: g("font-bold", {
834
+ "text-[18px]": r === "md",
835
+ "text-[24px]": r === "lg"
834
836
  }),
835
- containerClassName: p("h-10", {
836
- "h-11": t === "lg"
837
+ containerClassName: g("h-10", {
838
+ "h-11": r === "lg"
837
839
  })
838
840
  })
839
841
  ) });
840
842
  }
841
843
  );
842
- Ke.displayName = "InputTitle";
843
- const Ge = h.forwardRef(
844
- (r, e) => {
845
- const c = r, { size: t = "md", className: a } = c, o = k(c, ["size", "className"]), d = /* @__PURE__ */ n(
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: p(
850
+ className: g(
849
851
  "bg-default-background text-muted-foreground flex items-center",
850
- t === "md" ? "h-6 rounded-sm px-2" : "h-8 rounded-md px-2"
852
+ r === "md" ? "h-6 rounded-sm px-2" : "h-8 rounded-md px-2"
851
853
  ),
852
- children: /* @__PURE__ */ n(L, { variant: "p2", className: "whitespace-nowrap", children: "https://" })
854
+ children: /* @__PURE__ */ o(O, { variant: "p2", className: "whitespace-nowrap", children: "https://" })
853
855
  }
854
856
  );
855
- return /* @__PURE__ */ n(
856
- G,
857
- N(x({}, o), {
857
+ return /* @__PURE__ */ o(
858
+ Fe,
859
+ D(w({}, n), {
858
860
  ref: e,
859
- size: t,
860
- className: p("pl-2", a),
861
- prefixContainer: d
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
- Ge.displayName = "InputLink";
867
- const pe = h.forwardRef((a, t) => {
868
- var o = a, { className: r } = o, e = k(o, ["className"]);
869
- return /* @__PURE__ */ n(
870
- _.ScrollUpButton,
871
- N(x({
872
- ref: t,
873
- className: p(
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
- r
989
+ t
877
990
  )
878
991
  }, e), {
879
- children: /* @__PURE__ */ n(F, { icon: "ArrowUpIcon", size: 16, className: "text-muted-foreground" })
992
+ children: /* @__PURE__ */ o(P, { icon: "ArrowUpIcon", size: 16, className: "text-muted-foreground" })
880
993
  })
881
994
  );
882
995
  });
883
- pe.displayName = "SelectScrollUpButton";
884
- const fe = h.forwardRef((a, t) => {
885
- var o = a, { className: r } = o, e = k(o, ["className"]);
886
- return /* @__PURE__ */ n(
887
- _.ScrollDownButton,
888
- N(x({
889
- ref: t,
890
- className: p(
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
- r
1006
+ t
894
1007
  )
895
1008
  }, e), {
896
- children: /* @__PURE__ */ n(F, { icon: "ArrowDownIcon", size: 16, className: "text-muted-foreground" })
1009
+ children: /* @__PURE__ */ o(P, { icon: "ArrowDownIcon", size: 16, className: "text-muted-foreground" })
897
1010
  })
898
1011
  );
899
1012
  });
900
- fe.displayName = "SelectScrollDownButton";
901
- const he = h.forwardRef((c, d) => {
902
- var m = c, { className: r, children: e, selected: t, size: a = "md" } = m, o = k(m, ["className", "children", "selected", "size"]);
903
- return /* @__PURE__ */ n(
904
- _.Item,
905
- N(x({
906
- ref: d,
907
- className: p(
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
- !t && "hover:bg-muted",
1027
+ !r && "hover:bg-muted",
915
1028
  // Выбранный элемент - более видимый bg
916
- t && "bg-primary-10 font-medium hover:bg-[#F3E5FF]",
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
- r
1033
+ t
921
1034
  )
922
- }, o), {
923
- children: /* @__PURE__ */ n(_.ItemText, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "block w-full overflow-hidden text-ellipsis whitespace-nowrap", children: e }) })
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
- he.displayName = "SelectItem";
928
- const ge = h.forwardRef(
929
- (P, z) => {
930
- var A = P, {
931
- className: r,
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: t = "md",
1046
+ size: r = "md",
934
1047
  label: a,
935
- error: o,
936
- caption: d,
937
- fullWidth: c = !0,
938
- transparent: m = !1,
1048
+ error: n,
1049
+ caption: s,
1050
+ fullWidth: l = !0,
1051
+ transparent: d = !1,
939
1052
  tag: u,
940
- multiple: y,
941
- selectedValues: l,
942
- onValueRemove: b,
943
- disabled: f,
944
- "data-testid": w,
945
- showErrorMessage: g = !0,
946
- clearable: I = !1,
947
- onClear: v,
948
- inlineSelect: S = !1
949
- } = A, T = k(A, [
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 B = y || l && l.length > 0, j = h.useRef(null), [R, $] = h.useState(2);
970
- return h.useLayoutEffect(() => {
971
- if (!B || !(l != null && l.length) || !j.current)
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 D = () => {
974
- const te = j.current;
975
- if (!te)
1086
+ const _ = () => {
1087
+ const j = z.current;
1088
+ if (!j)
976
1089
  return;
977
- const ye = te.offsetWidth, we = u ? 60 : 0, Ie = 20, Ne = o ? 20 : 0, ke = ye - we - Ie - Ne - 16 - 30;
978
- let re = 0, ae = 0;
979
- const Ce = 12, Se = 20, De = 4, Ee = 7;
980
- for (let V = 0; V < l.length; V++) {
981
- const Te = l[V].length * Ee, oe = Ce + Te + Se + De;
982
- if (ae + oe <= ke)
983
- ae += oe, re = V + 1;
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
- $(Math.max(1, re));
1100
+ Z(Math.max(1, be));
988
1101
  };
989
- D();
990
- const O = new ResizeObserver(D);
991
- return O.observe(j.current), () => {
992
- O.disconnect();
1102
+ _();
1103
+ const K = new ResizeObserver(_);
1104
+ return K.observe(z.current), () => {
1105
+ K.disconnect();
993
1106
  };
994
- }, [l, u, o, B]), /* @__PURE__ */ C("div", { className: "w-full", children: [
995
- a && /* @__PURE__ */ n(
996
- L,
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: p("mb-1.5", {
1001
- "text-[14px]": t === "md",
1002
- "text-[16px]": t === "lg"
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__ */ n(
1120
+ /* @__PURE__ */ o(
1008
1121
  "div",
1009
1122
  {
1010
- className: p("relative flex items-center", c && "w-full"),
1011
- children: /* @__PURE__ */ C(
1012
- _.Trigger,
1013
- N(x({
1014
- ref: z,
1015
- className: p(
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
- !m && [
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
- o != null && "border-destructive focus:border-destructive focus:shadow-error enabled:hover:border-destructive data-[state=open]:border-destructive data-[state=open]:shadow-error",
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]": t === "md",
1028
- "h-10 rounded-xl px-3 text-[16px]": t === "lg",
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": c
1143
+ "w-full": l
1031
1144
  }
1032
1145
  ],
1033
- m && [
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
- r
1153
+ t
1041
1154
  )
1042
- }, T), {
1043
- "data-testid": w,
1155
+ }, k), {
1156
+ "data-testid": x,
1044
1157
  children: [
1045
- /* @__PURE__ */ n(
1158
+ /* @__PURE__ */ o(
1046
1159
  "div",
1047
1160
  {
1048
- ref: j,
1049
- className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${S ? "" : "pr-2"}`,
1050
- children: B && (l != null && l.length) ? /* @__PURE__ */ C("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
1051
- l.slice(0, R).map((D) => /* @__PURE__ */ C(
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__ */ n(L, { variant: "p2", children: D }),
1057
- /* @__PURE__ */ n(
1169
+ /* @__PURE__ */ o(O, { variant: "p2", children: _ }),
1170
+ /* @__PURE__ */ o(
1058
1171
  "div",
1059
1172
  {
1060
- onPointerDown: (O) => {
1061
- f || (O.preventDefault(), O.stopPropagation());
1173
+ onPointerDown: (K) => {
1174
+ b || (K.preventDefault(), K.stopPropagation());
1062
1175
  },
1063
- onClick: (O) => {
1064
- f || (O.preventDefault(), O.stopPropagation(), b == null || b(D));
1176
+ onClick: (K) => {
1177
+ b || (K.preventDefault(), K.stopPropagation(), p == null || p(_));
1065
1178
  },
1066
- onMouseDown: (O) => {
1067
- f || (O.preventDefault(), O.stopPropagation());
1179
+ onMouseDown: (K) => {
1180
+ b || (K.preventDefault(), K.stopPropagation());
1068
1181
  },
1069
- className: p(
1182
+ className: g(
1070
1183
  "flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
1071
- f && "cursor-not-allowed opacity-50"
1184
+ b && "cursor-not-allowed opacity-50"
1072
1185
  ),
1073
- children: /* @__PURE__ */ n(
1074
- F,
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
- D
1198
+ _
1086
1199
  )),
1087
- l.length > R && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ C(L, { variant: "p2", children: [
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
- l.length - R
1202
+ i.length - R
1090
1203
  ] }) })
1091
- ] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: e })
1204
+ ] }) : /* @__PURE__ */ o("div", { className: "flex-1 truncate text-left", children: e })
1092
1205
  }
1093
1206
  ),
1094
- /* @__PURE__ */ C("div", { className: "flex items-center gap-1.5", children: [
1095
- u && /* @__PURE__ */ n(
1207
+ /* @__PURE__ */ S("div", { className: "flex items-center gap-1.5", children: [
1208
+ u && /* @__PURE__ */ o(
1096
1209
  "div",
1097
1210
  {
1098
- className: p(
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__ */ n(L, { variant: "p2", children: typeof u == "string" ? u : u.text })
1215
+ children: /* @__PURE__ */ o(O, { variant: "p2", children: typeof u == "string" ? u : u.text })
1103
1216
  }
1104
1217
  ),
1105
- I && /* @__PURE__ */ n(
1218
+ v && /* @__PURE__ */ o(
1106
1219
  "div",
1107
1220
  {
1108
- onPointerDown: (D) => {
1109
- f || (D.preventDefault(), D.stopPropagation());
1221
+ onPointerDown: (_) => {
1222
+ b || (_.preventDefault(), _.stopPropagation());
1110
1223
  },
1111
- onClick: (D) => {
1112
- f || (D.preventDefault(), D.stopPropagation(), v == null || v());
1224
+ onClick: (_) => {
1225
+ b || (_.preventDefault(), _.stopPropagation(), y == null || y());
1113
1226
  },
1114
- onMouseDown: (D) => {
1115
- f || (D.preventDefault(), D.stopPropagation());
1227
+ onMouseDown: (_) => {
1228
+ b || (_.preventDefault(), _.stopPropagation());
1116
1229
  },
1117
- onKeyDown: (D) => {
1118
- f || (D.key === "Enter" || D.key === " ") && (D.preventDefault(), D.stopPropagation(), v == null || v());
1230
+ onKeyDown: (_) => {
1231
+ b || (_.key === "Enter" || _.key === " ") && (_.preventDefault(), _.stopPropagation(), y == null || y());
1119
1232
  },
1120
- className: p(
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
- f && "cursor-not-allowed opacity-50"
1235
+ b && "cursor-not-allowed opacity-50"
1123
1236
  ),
1124
1237
  role: "button",
1125
1238
  tabIndex: 0,
1126
1239
  "aria-label": "Очистить значение",
1127
- children: /* @__PURE__ */ n(
1128
- F,
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
- o && /* @__PURE__ */ n(
1138
- F,
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__ */ n(_.Icon, { asChild: !0, children: /* @__PURE__ */ n(
1146
- F,
1258
+ /* @__PURE__ */ o(V.Icon, { asChild: !0, children: /* @__PURE__ */ o(
1259
+ P,
1147
1260
  {
1148
1261
  icon: "ArrowDownIcon",
1149
- className: p(
1262
+ className: g(
1150
1263
  "text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180",
1151
- m && "pl-1"
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
- d && !o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
1163
- o && g && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: o })
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
- ge.displayName = "SelectTrigger";
1168
- const Pt = _.Group, Lt = h.forwardRef((d, o) => {
1169
- var c = d, { className: r, children: e, placeholder: t } = c, a = k(c, ["className", "children", "placeholder"]);
1170
- return /* @__PURE__ */ n(
1171
- _.Value,
1172
- N(x({
1173
- ref: o,
1174
- placeholder: t,
1175
- className: p("block w-full text-left", r)
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
- }), be = h.forwardRef(
1181
- (u, m) => {
1182
- var y = u, {
1183
- className: r,
1293
+ }), vt = N.forwardRef(
1294
+ (u, d) => {
1295
+ var h = u, {
1296
+ className: t,
1184
1297
  children: e,
1185
- selectedValues: t = [],
1298
+ selectedValues: r = [],
1186
1299
  value: a,
1187
- isMultiple: o = !1,
1188
- size: d = "md"
1189
- } = y, c = k(y, [
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__ */ n(_.Portal, { children: /* @__PURE__ */ C(
1198
- _.Content,
1199
- N(x({
1200
- ref: m,
1201
- className: p(
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
- r
1322
+ t
1210
1323
  ),
1211
1324
  position: "popper",
1212
1325
  sideOffset: 4
1213
- }, c), {
1326
+ }, l), {
1214
1327
  children: [
1215
- /* @__PURE__ */ n(pe, {}),
1216
- /* @__PURE__ */ n(_.Viewport, { className: "box-border flex w-full min-w-[var(--radix-select-trigger-width)] flex-col gap-0.5 p-1", children: h.Children.map(e, (l) => {
1217
- var b;
1218
- if (!h.isValidElement(l))
1219
- return l;
1220
- if (((b = l.type) == null ? void 0 : b.displayName) === "SelectItem") {
1221
- const f = o ? t.includes(l.props.value) : a === l.props.value;
1222
- return h.cloneElement(l, {
1223
- selected: f,
1224
- size: d || "md"
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 l;
1340
+ return i;
1228
1341
  }) }),
1229
- /* @__PURE__ */ n(fe, {})
1342
+ /* @__PURE__ */ o(bt, {})
1230
1343
  ]
1231
1344
  })
1232
1345
  ) });
1233
1346
  }
1234
1347
  );
1235
- be.displayName = "SelectContent";
1236
- const Ve = h.forwardRef((a, t) => {
1237
- var o = a, { className: r } = o, e = k(o, ["className"]);
1238
- return /* @__PURE__ */ n(
1239
- _.Label,
1240
- x({
1241
- ref: t,
1242
- className: p(
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
- r
1357
+ t
1245
1358
  )
1246
1359
  }, e)
1247
1360
  );
1248
1361
  });
1249
- Ve.displayName = "SelectLabel";
1250
- const Ze = h.forwardRef((a, t) => {
1251
- var o = a, { className: r } = o, e = k(o, ["className"]);
1252
- return /* @__PURE__ */ n(
1253
- _.Separator,
1254
- x({
1255
- ref: t,
1256
- className: p("hidden", r)
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
- Ze.displayName = "SelectSeparator";
1261
- const _t = _.Root, qe = h.forwardRef(
1262
- (l, y) => {
1263
- var b = l, {
1264
- children: r,
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: t,
1379
+ onValuesChange: r,
1267
1380
  disabled: a,
1268
- open: o,
1269
- onOpenChange: d,
1270
- dir: c,
1271
- size: m = "md"
1272
- } = b, u = k(b, [
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 f = (g) => {
1283
- const I = e.includes(g) ? e.filter((v) => v !== g) : [...e, g];
1284
- t == null || t(I);
1285
- }, w = (g) => {
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 I = e.filter((v) => v !== g);
1289
- t == null || t(I);
1401
+ const v = e.filter((y) => y !== c);
1402
+ r == null || r(v);
1290
1403
  };
1291
- return /* @__PURE__ */ _e(
1292
- _.Root,
1293
- N(x({}, u), {
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: f,
1299
- open: o,
1300
- onOpenChange: d
1411
+ onValueChange: b,
1412
+ open: n,
1413
+ onOpenChange: s
1301
1414
  }),
1302
- h.Children.map(r, (g) => {
1303
- var I, v;
1304
- return h.isValidElement(g) ? ((I = g.type) == null ? void 0 : I.displayName) === "SelectTrigger" ? h.cloneElement(g, N(x({}, g.props), {
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: w,
1420
+ onValueRemove: x,
1308
1421
  disabled: a,
1309
- size: m
1310
- })) : ((v = g.type) == null ? void 0 : v.displayName) === "SelectContent" ? h.cloneElement(g, N(x({}, g.props), {
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: m
1315
- })) : g : g;
1427
+ size: d
1428
+ })) : c : c;
1316
1429
  })
1317
1430
  );
1318
1431
  }
1319
1432
  );
1320
- qe.displayName = "MultiSelect";
1321
- ge.displayName = "SelectTrigger";
1322
- be.displayName = "SelectContent";
1323
- he.displayName = "SelectItem";
1324
- const Qe = W(
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
- ), Je = W(
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 Xe(r) {
1472
+ function Jt(t) {
1360
1473
  const {
1361
1474
  className: e,
1362
- checkboxClassName: t,
1475
+ checkboxClassName: r,
1363
1476
  size: a = "md",
1364
- label: o,
1365
- disabled: d,
1366
- checked: c,
1367
- id: m,
1477
+ label: n,
1478
+ disabled: s,
1479
+ checked: l,
1480
+ id: d,
1368
1481
  onCheckedChange: u,
1369
- ref: y,
1370
- "data-testid": l
1371
- } = r, b = a === "md" ? 16 : 24, f = h.useId(), w = m || f, g = d || !1, [I, v] = h.useState(!1), S = c !== void 0, T = S ? c : I, z = () => T === !0 ? "checked" : T === "indeterminate" ? "indeterminate" : "unchecked", P = (B) => {
1372
- S && u ? u(B) : S || v(B);
1373
- }, A = /* @__PURE__ */ n(
1374
- de.Root,
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: y,
1377
- id: w,
1378
- className: p(
1379
- Qe({ size: a, state: z(), isDisabled: g }),
1380
- t || (o ? void 0 : e)
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: g,
1383
- checked: T,
1384
- onCheckedChange: P,
1385
- "data-testid": l,
1386
- children: /* @__PURE__ */ C(de.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
1387
- T === "indeterminate" && /* @__PURE__ */ n("div", { className: Je({ size: a }) }),
1388
- T === !0 && /* @__PURE__ */ n(F, { icon: "DoneIcon", size: b, className: "text-white" })
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 o ? /* @__PURE__ */ C("div", { className: p("items-top flex flex-row space-x-2", e), children: [
1393
- /* @__PURE__ */ n("div", { className: p(a === "md" && "pt-0.5"), children: A }),
1394
- /* @__PURE__ */ n(
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: w,
1398
- className: p(
1510
+ htmlFor: x,
1511
+ className: g(
1399
1512
  "font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
1400
- g && "cursor-not-allowed opacity-40",
1513
+ c && "cursor-not-allowed opacity-40",
1401
1514
  a === "lg" && "pt-0.5"
1402
1515
  ),
1403
- children: o
1516
+ children: n
1404
1517
  }
1405
1518
  )
1406
- ] }) : A;
1519
+ ] }) : L;
1407
1520
  }
1408
- const Mt = h.forwardRef(
1409
- (r, e) => /* @__PURE__ */ n(Xe, N(x({}, r), { ref: e }))
1410
- ), Ye = W("flex-col items-center justify-center", {
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
- }), Q = h.forwardRef(
1421
- (c, d) => {
1422
- var m = c, { size: r = 16, show: e, children: t, className: a } = m, o = k(m, ["size", "show", "children", "className"]);
1423
- return /* @__PURE__ */ C("span", N(x({ ref: d, className: Ye({ show: e }) }, o), { children: [
1424
- /* @__PURE__ */ n(
1425
- F,
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: r,
1429
- className: p("text-primary animate-spin", a)
1541
+ size: t,
1542
+ className: g("text-primary animate-spin", a)
1430
1543
  }
1431
1544
  ),
1432
- t
1545
+ r
1433
1546
  ] }));
1434
1547
  }
1435
1548
  );
1436
- Q.displayName = "Spinner";
1437
- function jt({ className: r }) {
1438
- return /* @__PURE__ */ n("div", { className: p("bg-default-background h-[1px] w-full", r) });
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 et = h.forwardRef(
1441
- (S, v) => {
1442
- var T = S, {
1443
- className: r,
1553
+ const er = N.forwardRef(
1554
+ (I, y) => {
1555
+ var k = I, {
1556
+ className: t,
1444
1557
  href: e = "#",
1445
- children: t,
1558
+ children: r,
1446
1559
  target: a = "_self",
1447
- onClick: o,
1448
- onKeyDown: d,
1449
- disabled: c = !1,
1450
- tabIndex: m,
1560
+ onClick: n,
1561
+ onKeyDown: s,
1562
+ disabled: l = !1,
1563
+ tabIndex: d,
1451
1564
  asChild: u = !1,
1452
- "data-cy": y,
1453
- "data-testid": l,
1454
- icon: b,
1455
- iconPosition: f = "left",
1456
- iconSize: w,
1457
- iconClassName: g
1458
- } = T, I = k(T, [
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 z = (R) => {
1476
- if (c) {
1588
+ const T = (R) => {
1589
+ if (l) {
1477
1590
  R.preventDefault(), R.stopPropagation();
1478
1591
  return;
1479
1592
  }
1480
- o == null || o(R);
1481
- }, P = (R) => {
1482
- if (c && (R.key === "Enter" || R.key === " ")) {
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
- d == null || d(R);
1487
- }, A = p(
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
- r
1603
+ t
1491
1604
  );
1492
- if (!b) {
1493
- const R = t;
1494
- return u ? /* @__PURE__ */ n(
1495
- J,
1496
- N(x({
1497
- ref: v,
1498
- className: A,
1499
- "data-cy": y,
1500
- "data-testid": l,
1501
- "aria-disabled": c || void 0,
1502
- "data-disabled": c || void 0,
1503
- tabIndex: c ? -1 : m,
1504
- onClick: z,
1505
- onKeyDown: P
1506
- }, I), {
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__ */ n(
1622
+ ) : /* @__PURE__ */ o(
1510
1623
  "a",
1511
- N(x({
1512
- ref: v
1513
- }, I), {
1514
- href: c ? void 0 : e,
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: A,
1518
- "aria-disabled": c || void 0,
1519
- "data-disabled": c || void 0,
1520
- tabIndex: c ? -1 : m,
1521
- onClick: z,
1522
- onKeyDown: P,
1523
- "data-cy": y,
1524
- "data-testid": l,
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 B = /* @__PURE__ */ n(F, { icon: b, size: w, className: p("shrink-0", g) }), j = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
1530
- f === "left" && B,
1531
- /* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: t }),
1532
- f === "right" && B
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__ */ n(
1535
- J,
1536
- N(x({
1537
- ref: v,
1538
- className: p(
1539
- A,
1540
- r
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": y,
1543
- "data-testid": l,
1544
- "aria-disabled": c || void 0,
1545
- "data-disabled": c || void 0,
1546
- tabIndex: c ? -1 : m,
1547
- onClick: z,
1548
- onKeyDown: P
1549
- }, I), {
1550
- children: j
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__ */ n(
1665
+ ) : /* @__PURE__ */ o(
1553
1666
  "a",
1554
- N(x({
1555
- ref: v
1556
- }, I), {
1557
- href: c ? void 0 : e,
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": c || void 0,
1561
- "data-disabled": c || void 0,
1562
- tabIndex: c ? -1 : m,
1563
- onClick: z,
1564
- onKeyDown: P,
1565
- className: p(
1566
- A,
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
- r
1681
+ t
1569
1682
  ),
1570
- "data-cy": y,
1571
- "data-testid": l,
1572
- children: j
1683
+ "data-cy": h,
1684
+ "data-testid": i,
1685
+ children: z
1573
1686
  })
1574
1687
  );
1575
1688
  }
1576
1689
  );
1577
- et.displayName = "Link";
1578
- const tt = {
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
- }, Ot = M.Root, Wt = M.Trigger, rt = M.Portal, Ht = M.Close, xe = h.forwardRef((a, t) => {
1583
- var o = a, { className: r } = o, e = k(o, ["className"]);
1584
- return /* @__PURE__ */ n(
1585
- M.Overlay,
1586
- x({
1587
- ref: t,
1588
- className: p(
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
- r
1703
+ t
1591
1704
  )
1592
1705
  }, e)
1593
1706
  );
1594
1707
  });
1595
- xe.displayName = M.Overlay.displayName;
1596
- const at = h.forwardRef(
1597
- (b, l) => {
1598
- var f = b, {
1599
- className: r,
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: t = !0,
1714
+ showClose: r = !0,
1602
1715
  footer: a,
1603
- disabledPadding: o = !1,
1604
- classNameFooter: d,
1605
- hideOverlay: c = !1,
1606
- fullScreen: m = !1,
1716
+ disabledPadding: n = !1,
1717
+ classNameFooter: s,
1718
+ hideOverlay: l = !1,
1719
+ fullScreen: d = !1,
1607
1720
  width: u = "sm"
1608
- } = f, y = k(f, [
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 w = U(null), [g, I] = ue(!1);
1620
- return me(() => {
1621
- const v = () => {
1622
- w.current && I(w.current.scrollTop > 0);
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 S = w.current;
1626
- S && S.addEventListener("scroll", v);
1738
+ const I = x.current;
1739
+ I && I.addEventListener("scroll", y);
1627
1740
  }, 2e3), () => {
1628
- const S = w.current;
1629
- S && S.removeEventListener("scroll", v);
1741
+ const I = x.current;
1742
+ I && I.removeEventListener("scroll", y);
1630
1743
  };
1631
- }, []), /* @__PURE__ */ C(rt, { children: [
1632
- !c && /* @__PURE__ */ n(xe, {}),
1633
- /* @__PURE__ */ n(
1634
- M.Content,
1635
- N(x({
1636
- ref: l,
1637
- onOpenAutoFocus: (v) => {
1638
- v.preventDefault();
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: p(
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
- tt[u],
1646
- { "p-0 md:p-0": o },
1647
- { "w-full md:h-full md:max-h-full md:w-full": m },
1648
- r
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
- }, y), {
1651
- children: /* @__PURE__ */ C(
1763
+ }, h), {
1764
+ children: /* @__PURE__ */ S(
1652
1765
  "div",
1653
1766
  {
1654
- className: p(
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)]": o },
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": m
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__ */ n(
1775
+ /* @__PURE__ */ o(
1663
1776
  "div",
1664
1777
  {
1665
1778
  className: "no-scrollbar flex flex-col overflow-y-auto",
1666
- ref: w,
1779
+ ref: x,
1667
1780
  children: e
1668
1781
  }
1669
1782
  ),
1670
- a && /* @__PURE__ */ n(
1783
+ a && /* @__PURE__ */ o(
1671
1784
  "div",
1672
1785
  {
1673
- className: p(
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)]": g },
1676
- { "p-4 md:p-6": o },
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]": !o
1791
+ "mx-[-18px] px-[18px] md:mx-[-26px] md:px-[26px]": !n
1679
1792
  },
1680
- d
1793
+ s
1681
1794
  ),
1682
1795
  children: a
1683
1796
  }
1684
1797
  ),
1685
- t && /* @__PURE__ */ n(
1686
- M.Close,
1798
+ r && /* @__PURE__ */ o(
1799
+ Q.Close,
1687
1800
  {
1688
1801
  tabIndex: -1,
1689
- className: p(
1802
+ className: g(
1690
1803
  "absolute top-[-8px] right-[-8px] border-0 bg-transparent p-0",
1691
- { "top-2 right-2": o }
1804
+ { "top-2 right-2": n }
1692
1805
  ),
1693
1806
  asChild: !0,
1694
- children: /* @__PURE__ */ n(
1695
- ee,
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
- at.displayName = M.Content.displayName;
1714
- function ot(t) {
1715
- var a = t, {
1716
- className: r
1717
- } = a, e = k(a, [
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__ */ n("div", x({ className: p("flex flex-col space-y-1.5", r) }, e));
1833
+ return /* @__PURE__ */ o("div", w({ className: g("flex flex-col space-y-1.5", t) }, e));
1721
1834
  }
1722
- ot.displayName = "DialogHeader";
1723
- const nt = h.forwardRef((a, t) => {
1724
- var o = a, { className: r } = o, e = k(o, ["className"]);
1725
- return /* @__PURE__ */ n(
1726
- M.Title,
1727
- x({
1728
- ref: t,
1729
- className: p(
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
- r
1847
+ t
1735
1848
  )
1736
1849
  }, e)
1737
1850
  );
1738
1851
  });
1739
- nt.displayName = M.Title.displayName;
1740
- const it = h.forwardRef((a, t) => {
1741
- var o = a, { className: r } = o, e = k(o, ["className"]);
1742
- return /* @__PURE__ */ n(
1743
- M.Description,
1744
- x({
1745
- ref: t,
1746
- className: p("", r)
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
- it.displayName = M.Description.displayName;
1751
- const st = W(
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
- ), dt = h.forwardRef(
1787
- (I, g) => {
1788
- var v = I, {
1789
- className: r,
1899
+ ), dr = N.forwardRef(
1900
+ (v, c) => {
1901
+ var y = v, {
1902
+ className: t,
1790
1903
  size: e,
1791
- label: t,
1904
+ label: r,
1792
1905
  checked: a,
1793
- disabled: o,
1794
- value: d,
1795
- id: c,
1796
- name: m,
1906
+ disabled: n,
1907
+ value: s,
1908
+ id: l,
1909
+ name: d,
1797
1910
  onValueChange: u,
1798
- onClick: y,
1799
- onFocus: l,
1800
- onBlur: b,
1801
- "data-testid": f
1802
- } = v, w = k(v, [
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 S = a || !1, T = o || !1, z = h.useId(), P = c || `${z}-radio`;
1818
- return /* @__PURE__ */ n(
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: P,
1822
- className: p(
1934
+ htmlFor: F,
1935
+ className: g(
1823
1936
  "select-none",
1824
- T ? "cursor-not-allowed opacity-40" : "cursor-pointer"
1937
+ k ? "cursor-not-allowed opacity-40" : "cursor-pointer"
1825
1938
  ),
1826
- children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
1827
- /* @__PURE__ */ n(
1828
- q.Item,
1829
- N(x({
1830
- className: p(
1831
- st({
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: S,
1946
+ isChecked: I,
1834
1947
  dotSize: e
1835
1948
  }),
1836
- r
1949
+ t
1837
1950
  ),
1838
1951
  checked: a,
1839
- disabled: T,
1840
- value: d,
1841
- id: P
1842
- }, w), {
1843
- ref: g,
1844
- "data-testid": f
1952
+ disabled: k,
1953
+ value: s,
1954
+ id: F
1955
+ }, x), {
1956
+ ref: c,
1957
+ "data-testid": b
1845
1958
  })
1846
1959
  ),
1847
- t && /* @__PURE__ */ n("span", { children: t })
1960
+ r && /* @__PURE__ */ o("span", { children: r })
1848
1961
  ] })
1849
1962
  }
1850
1963
  );
1851
1964
  }
1852
1965
  );
1853
- dt.displayName = q.Item.displayName;
1854
- const ct = h.forwardRef((c, d) => {
1855
- var m = c, { className: r, label: e, error: t, size: a = "md" } = m, o = k(m, ["className", "label", "error", "size"]);
1856
- return /* @__PURE__ */ C("div", { className: "w-full", children: [
1857
- e && /* @__PURE__ */ n(
1858
- L,
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: p({
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__ */ n(
1870
- q.Root,
1871
- N(x({
1872
- className: p("grid gap-1.5", r)
1873
- }, o), {
1874
- ref: d
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
- t && /* @__PURE__ */ n(L, { variant: "p2", className: "mt-1", textColor: "destructive", children: t })
1990
+ r && /* @__PURE__ */ o(O, { variant: "p2", className: "mt-1", textColor: "destructive", children: r })
1878
1991
  ] });
1879
1992
  });
1880
- ct.displayName = q.Root.displayName;
1881
- const lt = W(
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
- ), ut = W(
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
- ), mt = h.forwardRef((l, y) => {
1935
- var b = l, { className: r, size: e, label: t, loading: a, checked: o, disabled: d, "data-testid": c, onCheckedChange: m } = b, u = k(b, ["className", "size", "label", "loading", "checked", "disabled", "data-testid", "onCheckedChange"]);
1936
- const f = o || !1, w = d || !1, g = U(void 0), I = (S) => {
1937
- g.current = S;
1938
- }, v = (S) => {
1939
- m && (m(S, g.current), g.current = void 0);
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__ */ C("div", { className: "flex items-center gap-2.5", children: [
1942
- /* @__PURE__ */ n(
1943
- X.Root,
1944
- N(x({
1945
- className: p(
1946
- lt({
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: f,
2061
+ isChecked: b,
1949
2062
  isLoading: !!a,
1950
- isDisabled: w
2063
+ isDisabled: x
1951
2064
  }),
1952
- r
2065
+ t
1953
2066
  ),
1954
- checked: o,
1955
- disabled: w,
2067
+ checked: n,
2068
+ disabled: x,
1956
2069
  isLoading: a,
1957
- defaultChecked: o,
1958
- ref: y,
1959
- "data-testid": c,
1960
- onCheckedChange: v,
1961
- onClick: I
2070
+ defaultChecked: n,
2071
+ ref: h,
2072
+ "data-testid": l,
2073
+ onCheckedChange: y,
2074
+ onClick: v
1962
2075
  }, u), {
1963
- children: /* @__PURE__ */ n(
1964
- X.Thumb,
2076
+ children: /* @__PURE__ */ o(
2077
+ Ve.Thumb,
1965
2078
  {
1966
- className: p(
1967
- ut({ size: e }),
2079
+ className: g(
2080
+ ur({ size: e }),
1968
2081
  a && "flex items-center justify-center"
1969
2082
  ),
1970
- children: a && /* @__PURE__ */ n(
1971
- Q,
2083
+ children: a && /* @__PURE__ */ o(
2084
+ ze,
1972
2085
  {
1973
2086
  size: e === "lg" ? 16 : 8,
1974
- className: o ? "text-primary" : "text-switch-background"
2087
+ className: n ? "text-primary" : "text-switch-background"
1975
2088
  }
1976
2089
  )
1977
2090
  }
1978
2091
  )
1979
2092
  })
1980
2093
  ),
1981
- t && /* @__PURE__ */ n(
2094
+ r && /* @__PURE__ */ o(
1982
2095
  "label",
1983
2096
  {
1984
- className: p(
2097
+ className: g(
1985
2098
  "font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
1986
- w && "cursor-not-allowed opacity-40",
2099
+ x && "cursor-not-allowed opacity-40",
1987
2100
  e === "lg" && "pt-0.5"
1988
2101
  ),
1989
- children: t
2102
+ children: r
1990
2103
  }
1991
2104
  )
1992
2105
  ] });
1993
2106
  });
1994
- mt.displayName = X.Root.displayName;
1995
- const pt = W(
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
- ), ft = h.forwardRef(
2030
- (b, l) => {
2031
- var f = b, {
2032
- color: r = "default",
3013
+ ), Tr = N.forwardRef(
3014
+ (p, i) => {
3015
+ var b = p, {
3016
+ color: t = "default",
2033
3017
  disabled: e = !1,
2034
- iconOnly: t = !1,
3018
+ iconOnly: r = !1,
2035
3019
  iconPosition: a = "start",
2036
- icon: o,
2037
- iconProps: d,
2038
- children: c,
2039
- className: m,
3020
+ icon: n,
3021
+ iconProps: s,
3022
+ children: l,
3023
+ className: d,
2040
3024
  "data-testid": u
2041
- } = f, y = k(f, [
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 w = () => o ? /* @__PURE__ */ n(F, x({ icon: o, size: 12 }, d)) : null, g = /* @__PURE__ */ C(le, { children: [
2053
- a === "start" && w(),
2054
- c,
2055
- a === "end" && w()
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__ */ n(
3041
+ return /* @__PURE__ */ o(
2058
3042
  "div",
2059
- N(x({
2060
- ref: l,
2061
- className: p(
2062
- pt({
2063
- color: r,
2064
- iconOnly: t,
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
- m
3052
+ d
2069
3053
  )
2070
- }, y), {
3054
+ }, h), {
2071
3055
  "data-testid": u,
2072
- children: t ? w() : g
3056
+ children: r ? x() : c
2073
3057
  })
2074
3058
  );
2075
3059
  }
2076
3060
  );
2077
- ft.displayName = "Tag";
2078
- function ht(r, e, t, a) {
2079
- const o = U(null), d = U(0), c = U(!1), m = U(0);
2080
- return me(() => {
2081
- if (!r || !o.current)
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 = o.current, y = () => {
2084
- if (t) {
2085
- const g = u.value;
2086
- u.value = t, u.style.height = "auto", d.current = u.scrollHeight, u.value = g;
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
- d.current === 0 && y();
2090
- const l = () => {
2091
- if (c.current)
3073
+ s.current === 0 && h();
3074
+ const i = () => {
3075
+ if (l.current)
2092
3076
  return;
2093
3077
  u.style.height = "auto";
2094
- const g = u.scrollHeight, I = Math.max(g, d.current);
3078
+ const c = u.scrollHeight, v = Math.max(c, s.current);
2095
3079
  if (e) {
2096
- const v = typeof e == "number" ? `${e}px` : e;
2097
- u.style.maxHeight = v, I > (typeof e == "number" ? e : Number.parseInt(e)) ? (u.style.height = v, u.style.setProperty("overflow-y", "auto", "important")) : (u.style.height = `${I}px`, u.style.setProperty("overflow-y", "hidden", "important"));
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 = `${I}px`, u.style.setProperty("overflow-y", "hidden", "important");
2100
- m.current = u.clientHeight;
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
- y(), l();
2103
- }, f = () => {
2104
- c.current = !0;
2105
- }, w = () => {
2106
- if (c.current) {
2107
- c.current = !1;
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 l(), u.addEventListener("input", l), u.addEventListener("paste", l), u.addEventListener("mousedown", f), document.addEventListener("mouseup", w), window.addEventListener("resize", b), () => {
2113
- u.removeEventListener("input", l), u.removeEventListener("paste", l), u.removeEventListener("mousedown", f), document.removeEventListener("mouseup", w), window.removeEventListener("resize", b);
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
- }, [r, e, t, a]), o;
3099
+ }, [t, e, r, a]), n;
2116
3100
  }
2117
- const gt = h.forwardRef(
2118
- (g, w) => {
2119
- var I = g, {
2120
- className: r,
3101
+ const Er = N.forwardRef(
3102
+ (c, x) => {
3103
+ var v = c, {
3104
+ className: t,
2121
3105
  variant: e = "default",
2122
- fullWidth: t = !0,
3106
+ fullWidth: r = !0,
2123
3107
  label: a,
2124
- error: o,
2125
- caption: d,
2126
- autoResize: c = !1,
2127
- maxHeight: m = 140,
3108
+ error: n,
3109
+ caption: s,
3110
+ autoResize: l = !1,
3111
+ maxHeight: d = 140,
2128
3112
  showErrorMessage: u = !0,
2129
- "data-testid": y,
2130
- disabled: l,
2131
- size: b = "md"
2132
- } = I, f = k(I, [
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 v = ht(c, m, f.placeholder, f.value);
2147
- return Me(w, () => v.current, [v]), /* @__PURE__ */ C("div", { className: "w-full", children: [
2148
- a && /* @__PURE__ */ n(L, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
2149
- /* @__PURE__ */ C(
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: p(
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" && (!o || o === "") && !l,
2157
- "border-primary hover:border-hover-input-primary focus-within:border-primary": e === "primary" && (!o || o === ""),
2158
- "border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": o != null && o !== "",
2159
- "border-positive focus-within:border-positive hover:border-positive": e === "success" && (!o || o === ""),
2160
- "rounded-lg": b === "md",
2161
- "rounded-xl": b === "lg",
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": l,
2164
- "w-full": t
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__ */ n(
3152
+ /* @__PURE__ */ o(
2169
3153
  "textarea",
2170
- x({
2171
- className: p(
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": o && o !== "",
2176
- "max-h-35 min-h-20 resize-y": !c,
2177
- "overflow-hidden resize-y": c,
2178
- "pl-2.5 pr-1.5 pt-2 pb-1 text-[14px]": b === "md",
2179
- "pl-3 pr-2 pt-2.5 pb-1.5 text-[16px]": b === "lg"
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
- r,
2182
- l && "cursor-not-allowed"
3165
+ t,
3166
+ i && "cursor-not-allowed"
2183
3167
  ),
2184
- ref: v,
2185
- "data-testid": y,
2186
- disabled: l
2187
- }, f)
3168
+ ref: y,
3169
+ "data-testid": h,
3170
+ disabled: i
3171
+ }, b)
2188
3172
  ),
2189
- o && o !== "" && u && /* @__PURE__ */ n(
3173
+ n && n !== "" && u && /* @__PURE__ */ o(
2190
3174
  "div",
2191
3175
  {
2192
- className: p("absolute", {
2193
- "top-2 right-1.5": b === "md",
2194
- "top-2.5 right-2": b === "lg"
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__ */ n(
2197
- F,
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
- d && !o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
2210
- o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: o })
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
- gt.displayName = "Textarea";
2215
- function Y(r, e = /* @__PURE__ */ new Set()) {
2216
- const t = [];
2217
- if (typeof r == "string")
2218
- return r.trim() !== "" && t.push(r), t;
2219
- if (r instanceof Error) {
2220
- const a = r.message || r.name;
2221
- return a && a.trim() !== "" && t.push(a), t;
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(r)) {
2224
- for (const a of r)
2225
- t.push(...Y(a, e));
2226
- return t;
3207
+ if (Array.isArray(t)) {
3208
+ for (const a of t)
3209
+ r.push(...Xe(a, e));
3210
+ return r;
2227
3211
  }
2228
- if (r && typeof r == "object" && !e.has(r)) {
2229
- e.add(r);
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 o of a) {
2240
- const d = r;
2241
- o in d && t.push(...Y(d[o], e));
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 r != "object" && r !== null && r !== void 0) {
2245
- const a = String(r);
2246
- a.trim() !== "" && t.push(a);
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(t)).filter(
3232
+ return Array.from(new Set(r)).filter(
2249
3233
  (a) => a !== "[object Object]"
2250
3234
  );
2251
3235
  }
2252
- function K(r, e, t) {
2253
- const a = Y(r);
2254
- return a.length === 0 ? (e && e(r), [t || "Произошла ошибка"]) : a;
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 bt(r, e) {
2257
- return E(r, e);
3240
+ function Fr(t, e) {
3241
+ return B(t, e);
2258
3242
  }
2259
- const Ut = Object.assign(bt, {
2260
- success: (r, e) => {
2261
- const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
2262
- r,
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 t.length > 1 ? t.map((a) => (() => {
2267
- const d = E.success(
2268
- /* @__PURE__ */ n(
3250
+ return r.length > 1 ? r.map((a) => (() => {
3251
+ const s = B.success(
3252
+ /* @__PURE__ */ o(
2269
3253
  "div",
2270
3254
  {
2271
- onClick: () => E.dismiss(d),
2272
- onKeyDown: (c) => {
2273
- (c.key === "Enter" || c.key === " ") && E.dismiss(d);
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
- N(x({}, e), {
3265
+ D(w({}, e), {
2282
3266
  duration: 1 / 0,
2283
3267
  unstyled: !1
2284
3268
  })
2285
3269
  );
2286
- return d;
2287
- })()) : E.success(t[0], e);
3270
+ return s;
3271
+ })()) : B.success(r[0], e);
2288
3272
  },
2289
- error: (r, e) => {
2290
- const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
2291
- r,
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 t.length > 1 ? t.map((a) => (() => {
2296
- const d = E.error(
2297
- /* @__PURE__ */ n(
3279
+ return r.length > 1 ? r.map((a) => (() => {
3280
+ const s = B.error(
3281
+ /* @__PURE__ */ o(
2298
3282
  "div",
2299
3283
  {
2300
- onClick: () => E.dismiss(d),
2301
- onKeyDown: (c) => {
2302
- (c.key === "Enter" || c.key === " ") && E.dismiss(d);
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
- N(x({}, e), {
3294
+ D(w({}, e), {
2311
3295
  duration: 1 / 0,
2312
3296
  unstyled: !1
2313
3297
  })
2314
3298
  );
2315
- return d;
2316
- })()) : E.error(t[0], e);
3299
+ return s;
3300
+ })()) : B.error(r[0], e);
2317
3301
  },
2318
- info: (r, e) => {
2319
- const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
2320
- r,
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 t.length > 1 ? t.map((a) => (() => {
2325
- const d = E.info(
3308
+ return r.length > 1 ? r.map((a) => (() => {
3309
+ const s = B.info(
2326
3310
  // Обертка с обработчиком клика для закрытия
2327
- /* @__PURE__ */ n(
3311
+ /* @__PURE__ */ o(
2328
3312
  "div",
2329
3313
  {
2330
- onClick: () => E.dismiss(d),
2331
- onKeyDown: (c) => {
2332
- (c.key === "Enter" || c.key === " ") && E.dismiss(d);
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
- N(x({}, e), {
3324
+ D(w({}, e), {
2341
3325
  duration: 1 / 0,
2342
3326
  // Не скрываем автоматически
2343
3327
  unstyled: !1
2344
3328
  })
2345
3329
  );
2346
- return d;
2347
- })()) : E.info(t[0], e);
3330
+ return s;
3331
+ })()) : B.info(r[0], e);
2348
3332
  },
2349
- warning: (r, e) => {
2350
- const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
2351
- r,
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 t.length > 1 ? t.map((a) => (() => {
2356
- const d = E.warning(
3339
+ return r.length > 1 ? r.map((a) => (() => {
3340
+ const s = B.warning(
2357
3341
  // Обертка с обработчиком клика для закрытия
2358
- /* @__PURE__ */ n(
3342
+ /* @__PURE__ */ o(
2359
3343
  "div",
2360
3344
  {
2361
- onClick: () => E.dismiss(d),
2362
- onKeyDown: (c) => {
2363
- (c.key === "Enter" || c.key === " ") && E.dismiss(d);
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
- N(x({}, e), {
3355
+ D(w({}, e), {
2372
3356
  duration: 1 / 0,
2373
3357
  unstyled: !1
2374
3358
  })
2375
3359
  );
2376
- return d;
2377
- })()) : E.warning(t[0], e);
3360
+ return s;
3361
+ })()) : B.warning(r[0], e);
2378
3362
  },
2379
- loading: (r, e) => {
2380
- const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
2381
- r,
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 t.length > 1 ? t.map((a) => (() => {
2386
- const d = E.loading(
2387
- /* @__PURE__ */ n(
3369
+ return r.length > 1 ? r.map((a) => (() => {
3370
+ const s = B.loading(
3371
+ /* @__PURE__ */ o(
2388
3372
  "div",
2389
3373
  {
2390
- onClick: () => E.dismiss(d),
2391
- onKeyDown: (c) => {
2392
- (c.key === "Enter" || c.key === " ") && E.dismiss(d);
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
- N(x({}, e), {
3384
+ D(w({}, e), {
2401
3385
  unstyled: !1
2402
3386
  })
2403
3387
  );
2404
- return d;
2405
- })()) : E.loading(t[0], e);
3388
+ return s;
3389
+ })()) : B.loading(r[0], e);
2406
3390
  },
2407
- dismiss: (r) => {
2408
- E.dismiss(r);
3391
+ dismiss: (t) => {
3392
+ B.dismiss(t);
2409
3393
  },
2410
- promise(r, d) {
2411
- var c = d, {
3394
+ promise(t, s) {
3395
+ var l = s, {
2412
3396
  loading: e,
2413
- success: t,
3397
+ success: r,
2414
3398
  error: a
2415
- } = c, o = k(c, [
3399
+ } = l, n = E(l, [
2416
3400
  "loading",
2417
3401
  "success",
2418
3402
  "error"
2419
3403
  ]);
2420
- return E.promise(r, x({
3404
+ return B.promise(t, w({
2421
3405
  loading: e,
2422
- success: t,
3406
+ success: r,
2423
3407
  error: a
2424
- }, o));
3408
+ }, n));
2425
3409
  }
2426
3410
  });
2427
- function $t(e) {
2428
- var r = k(e, []);
2429
- return /* @__PURE__ */ n(
2430
- We,
2431
- x({
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__ */ n(F, { icon: "CheckCircleFillIcon", className: "text-positive" }),
2452
- info: /* @__PURE__ */ n(F, { icon: "InfoFillIcon" }),
2453
- error: /* @__PURE__ */ n(F, { icon: "CancelFillIcon", className: "text-destructive" }),
2454
- loading: /* @__PURE__ */ n(Q, { className: "text-white" }),
2455
- warning: /* @__PURE__ */ n(F, { icon: "InfoFillIcon", className: "text-warning" })
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
- }, r)
3441
+ }, t)
2458
3442
  );
2459
3443
  }
2460
- const Kt = H.Provider, xt = 120, ve = h.createContext(null);
2461
- function vt() {
2462
- const [r, e] = h.useState(!1);
2463
- return h.useEffect(() => {
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 t = window.matchMedia("(hover: none), (pointer: coarse)"), a = () => {
2467
- e(t.matches || navigator.maxTouchPoints > 0);
3450
+ const r = window.matchMedia("(hover: none), (pointer: coarse)"), a = () => {
3451
+ e(r.matches || navigator.maxTouchPoints > 0);
2468
3452
  };
2469
- return a(), t.addEventListener("change", a), () => t.removeEventListener("change", a);
2470
- }, []), r;
3453
+ return a(), r.addEventListener("change", a), () => r.removeEventListener("change", a);
3454
+ }, []), t;
2471
3455
  }
2472
- function Gt(o) {
2473
- var d = o, {
2474
- open: r,
3456
+ function un(n) {
3457
+ var s = n, {
3458
+ open: t,
2475
3459
  defaultOpen: e,
2476
- onOpenChange: t
2477
- } = d, a = k(d, [
3460
+ onOpenChange: r
3461
+ } = s, a = E(s, [
2478
3462
  "open",
2479
3463
  "defaultOpen",
2480
3464
  "onOpenChange"
2481
3465
  ]);
2482
- const [c, m] = h.useState(!!e), u = r !== void 0, y = u ? r : c, l = vt(), b = h.useRef(0), f = h.useCallback(
2483
- (I) => {
2484
- u || m(I), t == null || t(I);
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, t]
2487
- ), w = h.useCallback(
2488
- (I) => {
2489
- l && !I && Date.now() - b.current < xt || f(I);
3470
+ [u, r]
3471
+ ), x = N.useCallback(
3472
+ (v) => {
3473
+ i && !v && Date.now() - p.current < Ar || b(v);
2490
3474
  },
2491
- [l, f]
2492
- ), g = h.useCallback(() => {
2493
- b.current = Date.now(), f(!y);
2494
- }, [y, f]);
2495
- return /* @__PURE__ */ n(ve.Provider, { value: { isTouchDevice: l, open: y, toggleByTouch: g }, children: /* @__PURE__ */ n(
2496
- H.Root,
2497
- x({
2498
- open: l ? y : r,
2499
- defaultOpen: l ? void 0 : e,
2500
- onOpenChange: l ? w : t
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 yt = h.forwardRef((a, t) => {
2505
- var o = a, { onPointerDown: r } = o, e = k(o, ["onPointerDown"]);
2506
- const d = h.useContext(ve), c = (m) => {
2507
- r == null || r(m), !m.defaultPrevented && d != null && d.isTouchDevice && m.pointerType === "touch" && d.toggleByTouch();
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__ */ n(H.Trigger, x({ ref: t, onPointerDown: c }, e));
3493
+ return /* @__PURE__ */ o(me.Trigger, w({ ref: r, onPointerDown: l }, e));
2510
3494
  });
2511
- yt.displayName = H.Trigger.displayName;
2512
- const wt = h.forwardRef(
2513
- (m, c) => {
2514
- var u = m, {
2515
- className: r,
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: t = "center",
3501
+ align: r = "center",
2518
3502
  side: a = "top",
2519
- children: o
2520
- } = u, d = k(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__ */ n(H.Portal, { children: /* @__PURE__ */ C(
2528
- H.Content,
2529
- N(x({
2530
- ref: c,
2531
- align: t,
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: p(
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
- r
3535
+ t
2552
3536
  )
2553
- }, d), {
3537
+ }, s), {
2554
3538
  children: [
2555
- o,
2556
- /* @__PURE__ */ n(
2557
- H.Arrow,
3539
+ n,
3540
+ /* @__PURE__ */ o(
3541
+ me.Arrow,
2558
3542
  {
2559
- className: p("fill-spotlight-background"),
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
- wt.displayName = H.Content.displayName;
2570
- const It = W(
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
- ), Nt = {
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
- }, ee = h.forwardRef(
2747
- (S, v) => {
2748
- var T = S, {
2749
- className: r,
3730
+ }, Be = N.forwardRef(
3731
+ (I, y) => {
3732
+ var k = I, {
3733
+ className: t,
2750
3734
  variant: e = "primary",
2751
- size: t = "md",
3735
+ size: r = "md",
2752
3736
  asChild: a = !1,
2753
- iconOnly: o = !1,
2754
- isActive: d = !1,
2755
- iconPosition: c = "start",
2756
- icon: m,
3737
+ iconOnly: n = !1,
3738
+ isActive: s = !1,
3739
+ iconPosition: l = "start",
3740
+ icon: d,
2757
3741
  children: u,
2758
- iconProps: y,
2759
- isLoading: l = !1,
2760
- forceState: b,
2761
- "data-testid": f,
2762
- disabled: w = !1,
2763
- onClick: g
2764
- } = T, I = k(T, [
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 z = a ? J : "button", P = () => e === "primary" || e === "sber" || e === "telegram" ? "text-white" : e === "link" ? "text-primary" : "text-default", A = () => /* @__PURE__ */ n(
2783
- Q,
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: p(
3770
+ className: g(
2787
3771
  "absolute left-[50%] -translate-x-1/2",
2788
- P()
3772
+ F()
2789
3773
  )
2790
3774
  }
2791
- ), B = () => m ? l ? A() : /* @__PURE__ */ n(F, x({ icon: m }, y)) : null, j = /* @__PURE__ */ C(le, { children: [
2792
- c === "start" && B(),
2793
- l ? /* @__PURE__ */ n("div", { className: "invisible", children: u }) : u,
2794
- l && !m && A(),
2795
- c === "end" && B()
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__ */ n(
2798
- z,
2799
- N(x({}, I), {
2800
- className: p(
3781
+ return /* @__PURE__ */ o(
3782
+ T,
3783
+ D(w({}, v), {
3784
+ className: g(
2801
3785
  "relative",
2802
- It({
3786
+ _r({
2803
3787
  variant: e,
2804
- size: t,
2805
- iconOnly: o,
2806
- isActive: d,
2807
- isLoading: l,
2808
- iconPosition: c
3788
+ size: r,
3789
+ iconOnly: n,
3790
+ isActive: s,
3791
+ isLoading: i,
3792
+ iconPosition: l
2809
3793
  }),
2810
- b && ((R = Nt[e]) == null ? void 0 : R[b]),
2811
- r
3794
+ p && ((R = zr[e]) == null ? void 0 : R[p]),
3795
+ t
2812
3796
  ),
2813
- disabled: l || w,
2814
- "aria-disabled": l || w,
2815
- ref: v,
2816
- onClick: ($) => {
2817
- l || w || g == null || g($);
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": f,
2820
- children: o ? B() : j
3803
+ "data-testid": b,
3804
+ children: n ? M() : z
2821
3805
  })
2822
3806
  );
2823
3807
  }
2824
3808
  );
2825
- ee.displayName = "Button";
3809
+ Be.displayName = "Button";
2826
3810
  export {
2827
- ee as Button,
2828
- Mt as Checkbox,
2829
- Ot as Dialog,
2830
- Ht as DialogClose,
2831
- at as DialogContent,
2832
- ot as DialogHeader,
2833
- xe as DialogOverlay,
2834
- rt as DialogPortal,
2835
- nt as DialogTitle,
2836
- Wt as DialogTrigger,
2837
- jt as Divider,
2838
- G as Input,
2839
- Ge as InputLink,
2840
- Ue as InputPassword,
2841
- $e as InputSearch,
2842
- Ke as InputTitle,
2843
- et as Link,
2844
- qe as MultiSelect,
2845
- dt as Radio,
2846
- ct as RadioGroup,
2847
- _t as Select,
2848
- be as SelectContent,
2849
- Pt as SelectGroup,
2850
- he as SelectItem,
2851
- Ve as SelectLabel,
2852
- fe as SelectScrollDownButton,
2853
- pe as SelectScrollUpButton,
2854
- Ze as SelectSeparator,
2855
- ge as SelectTrigger,
2856
- Lt as SelectValue,
2857
- Q as Spinner,
2858
- mt as Switch,
2859
- ft as Tag,
2860
- gt as Textarea,
2861
- $t as Toaster,
2862
- Gt as Tooltip,
2863
- wt as TooltipContent,
2864
- Kt as TooltipProvider,
2865
- yt as TooltipTrigger,
2866
- L as Typography,
2867
- It as buttonVariants,
2868
- Qe as checkboxVariants,
2869
- Je as indicatorVariants,
2870
- st as radioVariants,
2871
- Ye as spinnerVariants,
2872
- lt as switchVariants,
2873
- pt as tagVariants,
2874
- ut as thumbVariants,
2875
- Ut as toast,
2876
- ce as typographyVariants
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
  };