konsolpro-custom-ui 0.0.421 → 0.0.423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.js +846 -804
- package/dist/styles/konsolpro-custom-ui.css +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/ui/combobox-primitive/combobox-primitive-context.d.ts +2 -2
- package/dist/types/components/ui/combobox-primitive/types.d.ts +2 -0
- package/dist/types/components/ui/numeric-timeline.d.ts +13 -0
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var B = (e, t) => {
|
|
|
19
19
|
t.indexOf(a) < 0 && Er.call(e, a) && (r[a] = e[a]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var M = (e, t, r) => new Promise((a, o) => {
|
|
23
23
|
var i = (u) => {
|
|
24
24
|
try {
|
|
25
25
|
l(r.next(u));
|
|
@@ -35,7 +35,7 @@ var T = (e, t, r) => new Promise((a, o) => {
|
|
|
35
35
|
}, l = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(i, s);
|
|
36
36
|
l((r = r.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { jsx as n, jsxs as
|
|
38
|
+
import { jsx as n, jsxs as N, Fragment as be } from "react/jsx-runtime";
|
|
39
39
|
import * as ct from "@radix-ui/react-accordion";
|
|
40
40
|
import * as ke from "react";
|
|
41
41
|
import v, { lazy as sr, Suspense as lr, useMemo as ne, useState as oe, useCallback as $, createContext as Ot, useContext as _t, useEffect as fe, useRef as ce, createElement as fa, useLayoutEffect as ma, forwardRef as pa, useImperativeHandle as Qr, memo as Xr } from "react";
|
|
@@ -84,358 +84,358 @@ function Ma(e) {
|
|
|
84
84
|
return Rt[r];
|
|
85
85
|
}
|
|
86
86
|
function L(e) {
|
|
87
|
-
return sr(() =>
|
|
87
|
+
return sr(() => M(null, null, function* () {
|
|
88
88
|
return { default: (yield e()).ReactComponent };
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
91
|
const Ra = {
|
|
92
|
-
UnfoldIcon: L(() =>
|
|
92
|
+
UnfoldIcon: L(() => M(null, null, function* () {
|
|
93
93
|
return import("../chunks/unfold-icon-S3J7xXHf.js");
|
|
94
94
|
})),
|
|
95
|
-
CallIcon: L(() =>
|
|
95
|
+
CallIcon: L(() => M(null, null, function* () {
|
|
96
96
|
return import("../chunks/call-icon-DslHaQOP.js");
|
|
97
97
|
})),
|
|
98
|
-
SettingsIcon: L(() =>
|
|
98
|
+
SettingsIcon: L(() => M(null, null, function* () {
|
|
99
99
|
return import("../chunks/settings-icon-D_wgjUsM.js");
|
|
100
100
|
})),
|
|
101
|
-
DoneIcon: L(() =>
|
|
101
|
+
DoneIcon: L(() => M(null, null, function* () {
|
|
102
102
|
return import("../chunks/done-icon-BZEAL7mI.js");
|
|
103
103
|
})),
|
|
104
|
-
CreditCardIcon: L(() =>
|
|
104
|
+
CreditCardIcon: L(() => M(null, null, function* () {
|
|
105
105
|
return import("../chunks/credit-card-icon-DS1ckDU7.js");
|
|
106
106
|
})),
|
|
107
|
-
OpenInFullIcon: L(() =>
|
|
107
|
+
OpenInFullIcon: L(() => M(null, null, function* () {
|
|
108
108
|
return import("../chunks/open-in-full-icon-DzhRd5Mx.js");
|
|
109
109
|
})),
|
|
110
110
|
AccountBalanceIcon: L(
|
|
111
|
-
() =>
|
|
111
|
+
() => M(null, null, function* () {
|
|
112
112
|
return import("../chunks/account-balance-icon-CKxx1j3X.js");
|
|
113
113
|
})
|
|
114
114
|
),
|
|
115
|
-
DownloadIcon: L(() =>
|
|
115
|
+
DownloadIcon: L(() => M(null, null, function* () {
|
|
116
116
|
return import("../chunks/download-icon-BvWPcT7W.js");
|
|
117
117
|
})),
|
|
118
|
-
HomeIcon: L(() =>
|
|
118
|
+
HomeIcon: L(() => M(null, null, function* () {
|
|
119
119
|
return import("../chunks/home-icon-Mag5Wxqq.js");
|
|
120
120
|
})),
|
|
121
|
-
MailIcon: L(() =>
|
|
121
|
+
MailIcon: L(() => M(null, null, function* () {
|
|
122
122
|
return import("../chunks/mail-icon-DCZPsZFE.js");
|
|
123
123
|
})),
|
|
124
|
-
OpenInNewIcon: L(() =>
|
|
124
|
+
OpenInNewIcon: L(() => M(null, null, function* () {
|
|
125
125
|
return import("../chunks/open-in-new-icon-A7MgnnyP.js");
|
|
126
126
|
})),
|
|
127
|
-
SupportIcon: L(() =>
|
|
127
|
+
SupportIcon: L(() => M(null, null, function* () {
|
|
128
128
|
return import("../chunks/support-icon-CBHKGKq8.js");
|
|
129
129
|
})),
|
|
130
130
|
BusinessCenterIcon: L(
|
|
131
|
-
() =>
|
|
131
|
+
() => M(null, null, function* () {
|
|
132
132
|
return import("../chunks/business-center-icon-C5X-e-6I.js");
|
|
133
133
|
})
|
|
134
134
|
),
|
|
135
|
-
WorkIcon: L(() =>
|
|
135
|
+
WorkIcon: L(() => M(null, null, function* () {
|
|
136
136
|
return import("../chunks/work-icon-D7I-74Mk.js");
|
|
137
137
|
})),
|
|
138
|
-
ArrowBackIcon: L(() =>
|
|
138
|
+
ArrowBackIcon: L(() => M(null, null, function* () {
|
|
139
139
|
return import("../chunks/arrow-back-icon-C_VwBDNK.js");
|
|
140
140
|
})),
|
|
141
|
-
SendIcon: L(() =>
|
|
141
|
+
SendIcon: L(() => M(null, null, function* () {
|
|
142
142
|
return import("../chunks/send-icon-BTztERTu.js");
|
|
143
143
|
})),
|
|
144
|
-
DeleteIcon: L(() =>
|
|
144
|
+
DeleteIcon: L(() => M(null, null, function* () {
|
|
145
145
|
return import("../chunks/delete-icon-Bk1ZmhBo.js");
|
|
146
146
|
})),
|
|
147
147
|
ArrowBackIOSIcon: L(
|
|
148
|
-
() =>
|
|
148
|
+
() => M(null, null, function* () {
|
|
149
149
|
return import("../chunks/arrow-back-ios-icon-CB5K_mmJ.js");
|
|
150
150
|
})
|
|
151
151
|
),
|
|
152
|
-
SearchIcon: L(() =>
|
|
152
|
+
SearchIcon: L(() => M(null, null, function* () {
|
|
153
153
|
return import("../chunks/search-icon-CortrXrC.js");
|
|
154
154
|
})),
|
|
155
|
-
InfoIcon: L(() =>
|
|
155
|
+
InfoIcon: L(() => M(null, null, function* () {
|
|
156
156
|
return import("../chunks/info-icon-BcUNe5kE.js");
|
|
157
157
|
})),
|
|
158
|
-
PersonIcon: L(() =>
|
|
158
|
+
PersonIcon: L(() => M(null, null, function* () {
|
|
159
159
|
return import("../chunks/person-icon-Bo5NxPRQ.js");
|
|
160
160
|
})),
|
|
161
|
-
CloseIcon: L(() =>
|
|
161
|
+
CloseIcon: L(() => M(null, null, function* () {
|
|
162
162
|
return import("../chunks/close-icon-CtbXesC0.js");
|
|
163
163
|
})),
|
|
164
|
-
AddCircleIcon: L(() =>
|
|
164
|
+
AddCircleIcon: L(() => M(null, null, function* () {
|
|
165
165
|
return import("../chunks/add-circle-icon-D3XpY2oT.js");
|
|
166
166
|
})),
|
|
167
|
-
InventoryIcon: L(() =>
|
|
167
|
+
InventoryIcon: L(() => M(null, null, function* () {
|
|
168
168
|
return import("../chunks/inventory-icon-CFV8amBs.js");
|
|
169
169
|
})),
|
|
170
|
-
BookIcon: L(() =>
|
|
170
|
+
BookIcon: L(() => M(null, null, function* () {
|
|
171
171
|
return import("../chunks/book-icon-BdaCKIQB.js");
|
|
172
172
|
})),
|
|
173
|
-
RefreshIcon: L(() =>
|
|
173
|
+
RefreshIcon: L(() => M(null, null, function* () {
|
|
174
174
|
return import("../chunks/refresh-icon-ac1oOwX8.js");
|
|
175
175
|
})),
|
|
176
|
-
ArrowDownIcon: L(() =>
|
|
176
|
+
ArrowDownIcon: L(() => M(null, null, function* () {
|
|
177
177
|
return import("../chunks/arrow-down-icon-DFvg75P7.js");
|
|
178
178
|
})),
|
|
179
|
-
ArrowUpIcon: L(() =>
|
|
179
|
+
ArrowUpIcon: L(() => M(null, null, function* () {
|
|
180
180
|
return import("../chunks/arrow-up-icon-DU7VVzN8.js");
|
|
181
181
|
})),
|
|
182
|
-
ArrowRightIcon: L(() =>
|
|
182
|
+
ArrowRightIcon: L(() => M(null, null, function* () {
|
|
183
183
|
return import("../chunks/arrow-right-icon-Bnx7GHux.js");
|
|
184
184
|
})),
|
|
185
|
-
ArrowLeftIcon: L(() =>
|
|
185
|
+
ArrowLeftIcon: L(() => M(null, null, function* () {
|
|
186
186
|
return import("../chunks/arrow-left-icon-8yWT42A8.js");
|
|
187
187
|
})),
|
|
188
|
-
ArrowForwardIcon: L(() =>
|
|
188
|
+
ArrowForwardIcon: L(() => M(null, null, function* () {
|
|
189
189
|
return import("../chunks/arrow-forward-icon-BI4dm_L2.js");
|
|
190
190
|
})),
|
|
191
|
-
BoltIcon: L(() =>
|
|
191
|
+
BoltIcon: L(() => M(null, null, function* () {
|
|
192
192
|
return import("../chunks/bolt-icon-CJsvLlL-.js");
|
|
193
193
|
})),
|
|
194
|
-
LogoutIcon: L(() =>
|
|
194
|
+
LogoutIcon: L(() => M(null, null, function* () {
|
|
195
195
|
return import("../chunks/logout-icon-DN86wp7N.js");
|
|
196
196
|
})),
|
|
197
197
|
ProgressActivityIcon: L(
|
|
198
|
-
() =>
|
|
198
|
+
() => M(null, null, function* () {
|
|
199
199
|
return import("../chunks/progress-activity-icon-YbJGzvxH.js");
|
|
200
200
|
})
|
|
201
201
|
),
|
|
202
|
-
AutorenewIcon: L(() =>
|
|
202
|
+
AutorenewIcon: L(() => M(null, null, function* () {
|
|
203
203
|
return import("../chunks/autorenew-icon-B0bI6Xt-.js");
|
|
204
204
|
})),
|
|
205
|
-
HelpIcon: L(() =>
|
|
205
|
+
HelpIcon: L(() => M(null, null, function* () {
|
|
206
206
|
return import("../chunks/help-icon-BMdlItds.js");
|
|
207
207
|
})),
|
|
208
|
-
VisibilityOnIcon: L(() =>
|
|
208
|
+
VisibilityOnIcon: L(() => M(null, null, function* () {
|
|
209
209
|
return import("../chunks/visibility-on-icon-C9VmKsvX.js");
|
|
210
210
|
})),
|
|
211
|
-
RemoveIcon: L(() =>
|
|
211
|
+
RemoveIcon: L(() => M(null, null, function* () {
|
|
212
212
|
return import("../chunks/remove-icon-CTuoG0Vq.js");
|
|
213
213
|
})),
|
|
214
|
-
AddIcon: L(() =>
|
|
214
|
+
AddIcon: L(() => M(null, null, function* () {
|
|
215
215
|
return import("../chunks/add-icon-CZXR66VL.js");
|
|
216
216
|
})),
|
|
217
|
-
EditIcon: L(() =>
|
|
217
|
+
EditIcon: L(() => M(null, null, function* () {
|
|
218
218
|
return import("../chunks/edit-icon-_3venQRC.js");
|
|
219
219
|
})),
|
|
220
|
-
ScenarioIcon: L(() =>
|
|
220
|
+
ScenarioIcon: L(() => M(null, null, function* () {
|
|
221
221
|
return import("../chunks/scenario-icon-BcnFsqUA.js");
|
|
222
222
|
})),
|
|
223
|
-
NorthEastIcon: L(() =>
|
|
223
|
+
NorthEastIcon: L(() => M(null, null, function* () {
|
|
224
224
|
return import("../chunks/north-east-icon-Dh7-1BBW.js");
|
|
225
225
|
})),
|
|
226
|
-
MoreVertIcon: L(() =>
|
|
226
|
+
MoreVertIcon: L(() => M(null, null, function* () {
|
|
227
227
|
return import("../chunks/more-vert-icon-NA1tYTse.js");
|
|
228
228
|
})),
|
|
229
|
-
MenuIcon: L(() =>
|
|
229
|
+
MenuIcon: L(() => M(null, null, function* () {
|
|
230
230
|
return import("../chunks/menu-icon-DWObHD95.js");
|
|
231
231
|
})),
|
|
232
|
-
CheckCircleIcon: L(() =>
|
|
232
|
+
CheckCircleIcon: L(() => M(null, null, function* () {
|
|
233
233
|
return import("../chunks/check-circle-icon-BWhJprgU.js");
|
|
234
234
|
})),
|
|
235
|
-
BlockIcon: L(() =>
|
|
235
|
+
BlockIcon: L(() => M(null, null, function* () {
|
|
236
236
|
return import("../chunks/block-icon-DGlp9c33.js");
|
|
237
237
|
})),
|
|
238
|
-
BoltFillIcon: L(() =>
|
|
238
|
+
BoltFillIcon: L(() => M(null, null, function* () {
|
|
239
239
|
return import("../chunks/bolt-fill-icon-DZjyKq8N.js");
|
|
240
240
|
})),
|
|
241
|
-
ErrorIcon: L(() =>
|
|
241
|
+
ErrorIcon: L(() => M(null, null, function* () {
|
|
242
242
|
return import("../chunks/error-icon-CgJ3zr06.js");
|
|
243
243
|
})),
|
|
244
|
-
ErrorFillIcon: L(() =>
|
|
244
|
+
ErrorFillIcon: L(() => M(null, null, function* () {
|
|
245
245
|
return import("../chunks/error-fill-icon--8j3Zcfq.js");
|
|
246
246
|
})),
|
|
247
247
|
VisibilityOffIcon: L(
|
|
248
|
-
() =>
|
|
248
|
+
() => M(null, null, function* () {
|
|
249
249
|
return import("../chunks/visibility-off-icon-BA_I97Vw.js");
|
|
250
250
|
})
|
|
251
251
|
),
|
|
252
|
-
PaymentIcon: L(() =>
|
|
252
|
+
PaymentIcon: L(() => M(null, null, function* () {
|
|
253
253
|
return import("../chunks/payment-icon-C-B7L4WP.js");
|
|
254
254
|
})),
|
|
255
|
-
FilterIcon: L(() =>
|
|
255
|
+
FilterIcon: L(() => M(null, null, function* () {
|
|
256
256
|
return import("../chunks/filter-icon-D_3_SQsN.js");
|
|
257
257
|
})),
|
|
258
|
-
FullScreenIcon: L(() =>
|
|
258
|
+
FullScreenIcon: L(() => M(null, null, function* () {
|
|
259
259
|
return import("../chunks/full-screen-icon-Dpl__xtk.js");
|
|
260
260
|
})),
|
|
261
261
|
FullScreenExitIcon: L(
|
|
262
|
-
() =>
|
|
262
|
+
() => M(null, null, function* () {
|
|
263
263
|
return import("../chunks/full-screen-exit-icon-BHwq-9P-.js");
|
|
264
264
|
})
|
|
265
265
|
),
|
|
266
|
-
MoreHorizIcon: L(() =>
|
|
266
|
+
MoreHorizIcon: L(() => M(null, null, function* () {
|
|
267
267
|
return import("../chunks/more-horiz-icon-CSK7Ackl.js");
|
|
268
268
|
})),
|
|
269
|
-
GroupIcon: L(() =>
|
|
269
|
+
GroupIcon: L(() => M(null, null, function* () {
|
|
270
270
|
return import("../chunks/group-icon-BfSRHuvp.js");
|
|
271
271
|
})),
|
|
272
|
-
DocumentIcon: L(() =>
|
|
272
|
+
DocumentIcon: L(() => M(null, null, function* () {
|
|
273
273
|
return import("../chunks/document-icon-DcmQhRhY.js");
|
|
274
274
|
})),
|
|
275
|
-
ListIcon: L(() =>
|
|
275
|
+
ListIcon: L(() => M(null, null, function* () {
|
|
276
276
|
return import("../chunks/list-icon-ChePCGxK.js");
|
|
277
277
|
})),
|
|
278
|
-
AttachFileIcon: L(() =>
|
|
278
|
+
AttachFileIcon: L(() => M(null, null, function* () {
|
|
279
279
|
return import("../chunks/attach-file-icon-OrT7tthI.js");
|
|
280
280
|
})),
|
|
281
|
-
LocationIcon: L(() =>
|
|
281
|
+
LocationIcon: L(() => M(null, null, function* () {
|
|
282
282
|
return import("../chunks/location-icon-Bf9Wbg65.js");
|
|
283
283
|
})),
|
|
284
|
-
UploadIcon: L(() =>
|
|
284
|
+
UploadIcon: L(() => M(null, null, function* () {
|
|
285
285
|
return import("../chunks/upload-icon-CwzthQEL.js");
|
|
286
286
|
})),
|
|
287
|
-
PageInfoIcon: L(() =>
|
|
287
|
+
PageInfoIcon: L(() => M(null, null, function* () {
|
|
288
288
|
return import("../chunks/page-info-icon-BiVNFu71.js");
|
|
289
289
|
})),
|
|
290
|
-
SegmentIcon: L(() =>
|
|
290
|
+
SegmentIcon: L(() => M(null, null, function* () {
|
|
291
291
|
return import("../chunks/segment-icon-Bzm7cziF.js");
|
|
292
292
|
})),
|
|
293
|
-
CopyIcon: L(() =>
|
|
293
|
+
CopyIcon: L(() => M(null, null, function* () {
|
|
294
294
|
return import("../chunks/copy-icon-BWyncDVB.js");
|
|
295
295
|
})),
|
|
296
|
-
InfoFillIcon: L(() =>
|
|
296
|
+
InfoFillIcon: L(() => M(null, null, function* () {
|
|
297
297
|
return import("../chunks/info-fill-icon-BzE09Xg8.js");
|
|
298
298
|
})),
|
|
299
299
|
ManageAccountsIcon: L(
|
|
300
|
-
() =>
|
|
300
|
+
() => M(null, null, function* () {
|
|
301
301
|
return import("../chunks/manage-accounts-icon-BkyuUTj3.js");
|
|
302
302
|
})
|
|
303
303
|
),
|
|
304
|
-
FlagIcon: L(() =>
|
|
304
|
+
FlagIcon: L(() => M(null, null, function* () {
|
|
305
305
|
return import("../chunks/flag-icon-DmWEp4ya.js");
|
|
306
306
|
})),
|
|
307
|
-
CalendarIcon: L(() =>
|
|
307
|
+
CalendarIcon: L(() => M(null, null, function* () {
|
|
308
308
|
return import("../chunks/calendar-icon-B1cogiSd.js");
|
|
309
309
|
})),
|
|
310
|
-
PincodeIcon: L(() =>
|
|
310
|
+
PincodeIcon: L(() => M(null, null, function* () {
|
|
311
311
|
return import("../chunks/pincode-icon-BA-e4pBH.js");
|
|
312
312
|
})),
|
|
313
|
-
OutgoingMailIcon: L(() =>
|
|
313
|
+
OutgoingMailIcon: L(() => M(null, null, function* () {
|
|
314
314
|
return import("../chunks/outgoing-main-icon-BAH2vddG.js");
|
|
315
315
|
})),
|
|
316
|
-
TimeIcon: L(() =>
|
|
316
|
+
TimeIcon: L(() => M(null, null, function* () {
|
|
317
317
|
return import("../chunks/time-icon-DsWMo47L.js");
|
|
318
318
|
})),
|
|
319
|
-
SmsIcon: L(() =>
|
|
319
|
+
SmsIcon: L(() => M(null, null, function* () {
|
|
320
320
|
return import("../chunks/sms-icon-4p-ON5VX.js");
|
|
321
321
|
})),
|
|
322
|
-
TelegrammIcon: L(() =>
|
|
322
|
+
TelegrammIcon: L(() => M(null, null, function* () {
|
|
323
323
|
return import("../chunks/telegramm-icon-C2ZR2jdg.js");
|
|
324
324
|
})),
|
|
325
|
-
BillsWarningIcon: L(() =>
|
|
325
|
+
BillsWarningIcon: L(() => M(null, null, function* () {
|
|
326
326
|
return import("../chunks/bills-warning-icon-CNgWvumi.js");
|
|
327
327
|
})),
|
|
328
328
|
BillsInProgressIcon: L(
|
|
329
|
-
() =>
|
|
329
|
+
() => M(null, null, function* () {
|
|
330
330
|
return import("../chunks/bills-in-progress-icon-RVEtPz7l.js");
|
|
331
331
|
})
|
|
332
332
|
),
|
|
333
|
-
BillsIcon: L(() =>
|
|
333
|
+
BillsIcon: L(() => M(null, null, function* () {
|
|
334
334
|
return import("../chunks/bills-icon-BU_adAs0.js");
|
|
335
335
|
})),
|
|
336
|
-
BillsErrorIcon: L(() =>
|
|
336
|
+
BillsErrorIcon: L(() => M(null, null, function* () {
|
|
337
337
|
return import("../chunks/bills-error-icon-CcDGUJrx.js");
|
|
338
338
|
})),
|
|
339
|
-
BillWarningIcon: L(() =>
|
|
339
|
+
BillWarningIcon: L(() => M(null, null, function* () {
|
|
340
340
|
return import("../chunks/bill-warning-icon-3Y-dONd_.js");
|
|
341
341
|
})),
|
|
342
342
|
BillInProgressIcon: L(
|
|
343
|
-
() =>
|
|
343
|
+
() => M(null, null, function* () {
|
|
344
344
|
return import("../chunks/bill-in-progress-icon-BTsO5Mh5.js");
|
|
345
345
|
})
|
|
346
346
|
),
|
|
347
|
-
BillIcon: L(() =>
|
|
347
|
+
BillIcon: L(() => M(null, null, function* () {
|
|
348
348
|
return import("../chunks/bill-icon-Cw2GE_VB.js");
|
|
349
349
|
})),
|
|
350
|
-
BillErrorIcon: L(() =>
|
|
350
|
+
BillErrorIcon: L(() => M(null, null, function* () {
|
|
351
351
|
return import("../chunks/bill-error-icon-q8_KROAY.js");
|
|
352
352
|
})),
|
|
353
|
-
AndroidIcon: L(() =>
|
|
353
|
+
AndroidIcon: L(() => M(null, null, function* () {
|
|
354
354
|
return import("../chunks/android-icon-6SCGu50U.js");
|
|
355
355
|
})),
|
|
356
|
-
AppleIcon: L(() =>
|
|
356
|
+
AppleIcon: L(() => M(null, null, function* () {
|
|
357
357
|
return import("../chunks/apple-icon-yya6O1xg.js");
|
|
358
358
|
})),
|
|
359
|
-
ZoomInIcon: L(() =>
|
|
359
|
+
ZoomInIcon: L(() => M(null, null, function* () {
|
|
360
360
|
return import("../chunks/zoom-in-icon-ZWEJANob.js");
|
|
361
361
|
})),
|
|
362
|
-
ZoomOutIcon: L(() =>
|
|
362
|
+
ZoomOutIcon: L(() => M(null, null, function* () {
|
|
363
363
|
return import("../chunks/zoom-out-icon-CeFz3G6V.js");
|
|
364
364
|
})),
|
|
365
|
-
SaveIcon: L(() =>
|
|
365
|
+
SaveIcon: L(() => M(null, null, function* () {
|
|
366
366
|
return import("../chunks/save-icon-DnF5revo.js");
|
|
367
367
|
})),
|
|
368
|
-
WalletIcon: L(() =>
|
|
368
|
+
WalletIcon: L(() => M(null, null, function* () {
|
|
369
369
|
return import("../chunks/wallet-icon-D0r9bDRg.js");
|
|
370
370
|
})),
|
|
371
|
-
PlayIcon: L(() =>
|
|
371
|
+
PlayIcon: L(() => M(null, null, function* () {
|
|
372
372
|
return import("../chunks/play-icon-Bnj3hsIf.js");
|
|
373
373
|
})),
|
|
374
|
-
SberIdIcon: L(() =>
|
|
374
|
+
SberIdIcon: L(() => M(null, null, function* () {
|
|
375
375
|
return import("../chunks/sberid-icon-DgQtjRjD.js");
|
|
376
376
|
})),
|
|
377
|
-
TinkoffIdIcon: L(() =>
|
|
377
|
+
TinkoffIdIcon: L(() => M(null, null, function* () {
|
|
378
378
|
return import("../chunks/tinkoffid-icon-DN9XKuNA.js");
|
|
379
379
|
})),
|
|
380
|
-
CookieIcon: L(() =>
|
|
380
|
+
CookieIcon: L(() => M(null, null, function* () {
|
|
381
381
|
return import("../chunks/cookie-DJ-U7h-A.js");
|
|
382
382
|
})),
|
|
383
|
-
ThumbsUpIcon: L(() =>
|
|
383
|
+
ThumbsUpIcon: L(() => M(null, null, function* () {
|
|
384
384
|
return import("../chunks/thumbs-up-icon-BArjyDfk.js");
|
|
385
385
|
})),
|
|
386
386
|
CheckCircleFillIcon: L(
|
|
387
|
-
() =>
|
|
387
|
+
() => M(null, null, function* () {
|
|
388
388
|
return import("../chunks/check-circle-fill-ne1MhahL.js");
|
|
389
389
|
})
|
|
390
390
|
),
|
|
391
|
-
CancelFillIcon: L(() =>
|
|
391
|
+
CancelFillIcon: L(() => M(null, null, function* () {
|
|
392
392
|
return import("../chunks/cancel-fill-DPYenlCk.js");
|
|
393
393
|
})),
|
|
394
|
-
TrendingUpIcon: L(() =>
|
|
394
|
+
TrendingUpIcon: L(() => M(null, null, function* () {
|
|
395
395
|
return import("../chunks/trending-up-icon-IEwGHi9c.js");
|
|
396
396
|
})),
|
|
397
|
-
TrendingDownIcon: L(() =>
|
|
397
|
+
TrendingDownIcon: L(() => M(null, null, function* () {
|
|
398
398
|
return import("../chunks/trending-down-icon-DlHKI37F.js");
|
|
399
399
|
})),
|
|
400
|
-
PersonAddIcon: L(() =>
|
|
400
|
+
PersonAddIcon: L(() => M(null, null, function* () {
|
|
401
401
|
return import("../chunks/person-add-C-3pZhgM.js");
|
|
402
402
|
})),
|
|
403
|
-
PersonSearchIcon: L(() =>
|
|
403
|
+
PersonSearchIcon: L(() => M(null, null, function* () {
|
|
404
404
|
return import("../chunks/person-search-icon-CwVm_XAL.js");
|
|
405
405
|
})),
|
|
406
|
-
LinkIcon: L(() =>
|
|
406
|
+
LinkIcon: L(() => M(null, null, function* () {
|
|
407
407
|
return import("../chunks/link-icon-BUAymb0P.js");
|
|
408
408
|
})),
|
|
409
|
-
FileSuccessIcon: L(() =>
|
|
409
|
+
FileSuccessIcon: L(() => M(null, null, function* () {
|
|
410
410
|
return import("../chunks/file-success-icon-BTk5SYAM.js");
|
|
411
411
|
})),
|
|
412
|
-
FileErrorIcon: L(() =>
|
|
412
|
+
FileErrorIcon: L(() => M(null, null, function* () {
|
|
413
413
|
return import("../chunks/file-error-icon-630wBy1K.js");
|
|
414
414
|
})),
|
|
415
|
-
ShieldIcon: L(() =>
|
|
415
|
+
ShieldIcon: L(() => M(null, null, function* () {
|
|
416
416
|
return import("../chunks/shield-icon-BwpxkU5E.js");
|
|
417
417
|
})),
|
|
418
|
-
StatisticIcon: L(() =>
|
|
418
|
+
StatisticIcon: L(() => M(null, null, function* () {
|
|
419
419
|
return import("../chunks/statistic-icon-mhqUxTDv.js");
|
|
420
420
|
})),
|
|
421
|
-
DontDisturbIcon: L(() =>
|
|
421
|
+
DontDisturbIcon: L(() => M(null, null, function* () {
|
|
422
422
|
return import("../chunks/dont-disturb-o1xt1TeU.js");
|
|
423
423
|
})),
|
|
424
|
-
WhatsAppIcon: L(() =>
|
|
424
|
+
WhatsAppIcon: L(() => M(null, null, function* () {
|
|
425
425
|
return import("../chunks/whats-app-icon-XbrqQF8U.js");
|
|
426
426
|
})),
|
|
427
|
-
MaxIcon: L(() =>
|
|
427
|
+
MaxIcon: L(() => M(null, null, function* () {
|
|
428
428
|
return import("../chunks/max-icon-CTdBEAt8.js");
|
|
429
429
|
})),
|
|
430
430
|
SettingsBackupRestoreIcon: L(
|
|
431
|
-
() =>
|
|
431
|
+
() => M(null, null, function* () {
|
|
432
432
|
return import("../chunks/settings-backup-restore-icon-DUrmFxtk.js");
|
|
433
433
|
})
|
|
434
434
|
),
|
|
435
|
-
PauseCircleIcon: L(() =>
|
|
435
|
+
PauseCircleIcon: L(() => M(null, null, function* () {
|
|
436
436
|
return import("../chunks/pause-circle-icon-Dpio-qM3.js");
|
|
437
437
|
})),
|
|
438
|
-
BellIcon: L(() =>
|
|
438
|
+
BellIcon: L(() => M(null, null, function* () {
|
|
439
439
|
return import("../chunks/bell-icon-L-Ynt5XK.js");
|
|
440
440
|
}))
|
|
441
441
|
};
|
|
@@ -459,88 +459,88 @@ function U({
|
|
|
459
459
|
) : null;
|
|
460
460
|
}
|
|
461
461
|
function ie(e) {
|
|
462
|
-
return sr(() =>
|
|
462
|
+
return sr(() => M(null, null, function* () {
|
|
463
463
|
return { default: (yield e()).ReactComponent };
|
|
464
464
|
}));
|
|
465
465
|
}
|
|
466
466
|
const Ea = {
|
|
467
|
-
AlfaIcon: ie(() =>
|
|
467
|
+
AlfaIcon: ie(() => M(null, null, function* () {
|
|
468
468
|
return import("../chunks/alfa-icon-Cx0WqCux.js");
|
|
469
469
|
})),
|
|
470
|
-
BaltiyskiyIcon: ie(() =>
|
|
470
|
+
BaltiyskiyIcon: ie(() => M(null, null, function* () {
|
|
471
471
|
return import("../chunks/baltiyskiy-icon-CXAJY9LH.js");
|
|
472
472
|
})),
|
|
473
|
-
EuropaIcon: ie(() =>
|
|
473
|
+
EuropaIcon: ie(() => M(null, null, function* () {
|
|
474
474
|
return import("../chunks/europa-icon-DbElF2Uc.js");
|
|
475
475
|
})),
|
|
476
|
-
GazpromIcon: ie(() =>
|
|
476
|
+
GazpromIcon: ie(() => M(null, null, function* () {
|
|
477
477
|
return import("../chunks/gazprom-icon-CRfKLTvP.js");
|
|
478
478
|
})),
|
|
479
|
-
HomeIcon: ie(() =>
|
|
479
|
+
HomeIcon: ie(() => M(null, null, function* () {
|
|
480
480
|
return import("../chunks/home-icon-Dc6LzbVw.js");
|
|
481
481
|
})),
|
|
482
|
-
MkbIcon: ie(() =>
|
|
482
|
+
MkbIcon: ie(() => M(null, null, function* () {
|
|
483
483
|
return import("../chunks/mkb-icon-CEkVt-7P.js");
|
|
484
484
|
})),
|
|
485
|
-
MtsIcon: ie(() =>
|
|
485
|
+
MtsIcon: ie(() => M(null, null, function* () {
|
|
486
486
|
return import("../chunks/mts-icon-Bq4YDYEy.js");
|
|
487
487
|
})),
|
|
488
|
-
OtkritieIcon: ie(() =>
|
|
488
|
+
OtkritieIcon: ie(() => M(null, null, function* () {
|
|
489
489
|
return import("../chunks/otkritie-icon-yGwVocEY.js");
|
|
490
490
|
})),
|
|
491
|
-
OtpIcon: ie(() =>
|
|
491
|
+
OtpIcon: ie(() => M(null, null, function* () {
|
|
492
492
|
return import("../chunks/otp-icon-BQQXMe3b.js");
|
|
493
493
|
})),
|
|
494
|
-
PsbIcon: ie(() =>
|
|
494
|
+
PsbIcon: ie(() => M(null, null, function* () {
|
|
495
495
|
return import("../chunks/psb-icon-CxKzLVG5.js");
|
|
496
496
|
})),
|
|
497
|
-
QiwiIcon: ie(() =>
|
|
497
|
+
QiwiIcon: ie(() => M(null, null, function* () {
|
|
498
498
|
return import("../chunks/qiwi-icon-B795Q_fW.js");
|
|
499
499
|
})),
|
|
500
|
-
RaiffeisenIcon: ie(() =>
|
|
500
|
+
RaiffeisenIcon: ie(() => M(null, null, function* () {
|
|
501
501
|
return import("../chunks/raiffeisen-icon-CgcBX8eY.js");
|
|
502
502
|
})),
|
|
503
503
|
RussianStandartIcon: ie(
|
|
504
|
-
() =>
|
|
504
|
+
() => M(null, null, function* () {
|
|
505
505
|
return import("../chunks/russian-standart-icon-CI8j1Do6.js");
|
|
506
506
|
})
|
|
507
507
|
),
|
|
508
508
|
SaintPetersburgIcon: ie(
|
|
509
|
-
() =>
|
|
509
|
+
() => M(null, null, function* () {
|
|
510
510
|
return import("../chunks/saint-petersburg-icon-DbffjI2W.js");
|
|
511
511
|
})
|
|
512
512
|
),
|
|
513
|
-
SberIcon: ie(() =>
|
|
513
|
+
SberIcon: ie(() => M(null, null, function* () {
|
|
514
514
|
return import("../chunks/sber-icon-b7d9_o7J.js");
|
|
515
515
|
})),
|
|
516
|
-
SkbIcon: ie(() =>
|
|
516
|
+
SkbIcon: ie(() => M(null, null, function* () {
|
|
517
517
|
return import("../chunks/skb-icon-BgDQolTL.js");
|
|
518
518
|
})),
|
|
519
|
-
TbankIcon: ie(() =>
|
|
519
|
+
TbankIcon: ie(() => M(null, null, function* () {
|
|
520
520
|
return import("../chunks/tbank-icon-ByKW0pBb.js");
|
|
521
521
|
})),
|
|
522
|
-
TochkaIcon: ie(() =>
|
|
522
|
+
TochkaIcon: ie(() => M(null, null, function* () {
|
|
523
523
|
return import("../chunks/tochka-icon-CoQ_r9Lz.js");
|
|
524
524
|
})),
|
|
525
|
-
TrustIcon: ie(() =>
|
|
525
|
+
TrustIcon: ie(() => M(null, null, function* () {
|
|
526
526
|
return import("../chunks/trust-icon-DcfUVGZ_.js");
|
|
527
527
|
})),
|
|
528
|
-
UniIcon: ie(() =>
|
|
528
|
+
UniIcon: ie(() => M(null, null, function* () {
|
|
529
529
|
return import("../chunks/uni-icon-gK006vr0.js");
|
|
530
530
|
})),
|
|
531
|
-
UralsibIcon: ie(() =>
|
|
531
|
+
UralsibIcon: ie(() => M(null, null, function* () {
|
|
532
532
|
return import("../chunks/uralsib-icon-C-ZbdvlL.js");
|
|
533
533
|
})),
|
|
534
|
-
UralskiyIcon: ie(() =>
|
|
534
|
+
UralskiyIcon: ie(() => M(null, null, function* () {
|
|
535
535
|
return import("../chunks/uralskiy-icon-Djqv-ZYN.js");
|
|
536
536
|
})),
|
|
537
|
-
VozrozhdenieIcon: ie(() =>
|
|
537
|
+
VozrozhdenieIcon: ie(() => M(null, null, function* () {
|
|
538
538
|
return import("../chunks/vozrozhdenie-icon-CCMRNn95.js");
|
|
539
539
|
})),
|
|
540
|
-
VtbIcon: ie(() =>
|
|
540
|
+
VtbIcon: ie(() => M(null, null, function* () {
|
|
541
541
|
return import("../chunks/vtb-icon-BtfO1_Gx.js");
|
|
542
542
|
})),
|
|
543
|
-
YandexIcon: ie(() =>
|
|
543
|
+
YandexIcon: ie(() => M(null, null, function* () {
|
|
544
544
|
return import("../chunks/yandex-icon-CepqpI49.js");
|
|
545
545
|
}))
|
|
546
546
|
};
|
|
@@ -560,39 +560,39 @@ function zl({ icon: e }) {
|
|
|
560
560
|
) : null;
|
|
561
561
|
}
|
|
562
562
|
function Fe(e) {
|
|
563
|
-
return sr(() =>
|
|
563
|
+
return sr(() => M(null, null, function* () {
|
|
564
564
|
return { default: (yield e()).ReactComponent };
|
|
565
565
|
}));
|
|
566
566
|
}
|
|
567
567
|
const Aa = {
|
|
568
|
-
Normal: Fe(() =>
|
|
568
|
+
Normal: Fe(() => M(null, null, function* () {
|
|
569
569
|
return import("../chunks/normal-icon-CYvIFN5j.js");
|
|
570
570
|
})),
|
|
571
|
-
Failed: Fe(() =>
|
|
571
|
+
Failed: Fe(() => M(null, null, function* () {
|
|
572
572
|
return import("../chunks/failed-icon-YP2jq4UN.js");
|
|
573
573
|
})),
|
|
574
|
-
Signed: Fe(() =>
|
|
574
|
+
Signed: Fe(() => M(null, null, function* () {
|
|
575
575
|
return import("../chunks/signed-icon-DTQlKmWU.js");
|
|
576
576
|
})),
|
|
577
|
-
Warning: Fe(() =>
|
|
577
|
+
Warning: Fe(() => M(null, null, function* () {
|
|
578
578
|
return import("../chunks/warning-icon-BmlgMY27.js");
|
|
579
579
|
})),
|
|
580
|
-
Waiting: Fe(() =>
|
|
580
|
+
Waiting: Fe(() => M(null, null, function* () {
|
|
581
581
|
return import("../chunks/waiting-icon-lpQJA4wB.js");
|
|
582
582
|
})),
|
|
583
|
-
Error: Fe(() =>
|
|
583
|
+
Error: Fe(() => M(null, null, function* () {
|
|
584
584
|
return import("../chunks/error-icon-BJWk5B-s.js");
|
|
585
585
|
})),
|
|
586
|
-
Passport: Fe(() =>
|
|
586
|
+
Passport: Fe(() => M(null, null, function* () {
|
|
587
587
|
return import("../chunks/passport-main-DNL65kJJ.js");
|
|
588
588
|
})),
|
|
589
|
-
Registration: Fe(() =>
|
|
589
|
+
Registration: Fe(() => M(null, null, function* () {
|
|
590
590
|
return import("../chunks/passport-registration-BGywpRar.js");
|
|
591
591
|
})),
|
|
592
|
-
Selfie: Fe(() =>
|
|
592
|
+
Selfie: Fe(() => M(null, null, function* () {
|
|
593
593
|
return import("../chunks/passport-selfie-Dsqd0uOf.js");
|
|
594
594
|
})),
|
|
595
|
-
Accept: Fe(() =>
|
|
595
|
+
Accept: Fe(() => M(null, null, function* () {
|
|
596
596
|
return import("../chunks/accept-icon-X_bMUe5T.js");
|
|
597
597
|
}))
|
|
598
598
|
};
|
|
@@ -647,7 +647,7 @@ function Vl(i) {
|
|
|
647
647
|
"visibleButton"
|
|
648
648
|
]);
|
|
649
649
|
const f = r != null ? r : {}, { className: l } = f, u = B(f, ["className"]);
|
|
650
|
-
return /* @__PURE__ */ n(ct.Header, { className: "flex w-full", children: /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ n(ct.Header, { className: "flex w-full", children: /* @__PURE__ */ N(
|
|
651
651
|
ct.Trigger,
|
|
652
652
|
F(w({
|
|
653
653
|
"data-slot": "accordion-trigger",
|
|
@@ -881,7 +881,7 @@ const ln = ge(
|
|
|
881
881
|
}
|
|
882
882
|
}, ee = v.forwardRef(
|
|
883
883
|
(m, h) => {
|
|
884
|
-
var
|
|
884
|
+
var I = m, {
|
|
885
885
|
className: e,
|
|
886
886
|
variant: t = "primary",
|
|
887
887
|
size: r = "md",
|
|
@@ -897,7 +897,7 @@ const ln = ge(
|
|
|
897
897
|
forceState: g,
|
|
898
898
|
"data-testid": x,
|
|
899
899
|
onClick: b
|
|
900
|
-
} =
|
|
900
|
+
} = I, y = B(I, [
|
|
901
901
|
"className",
|
|
902
902
|
"variant",
|
|
903
903
|
"size",
|
|
@@ -915,7 +915,7 @@ const ln = ge(
|
|
|
915
915
|
"onClick"
|
|
916
916
|
]);
|
|
917
917
|
var z;
|
|
918
|
-
const
|
|
918
|
+
const T = a ? Dt : "button", k = !!d, C = c && k, R = () => k ? "text-muted-foreground" : t === "primary" || t === "sber" || t === "telegram" ? "text-white" : t === "link" ? "text-primary" : "text-default", E = () => /* @__PURE__ */ n(
|
|
919
919
|
je,
|
|
920
920
|
{
|
|
921
921
|
size: 16,
|
|
@@ -924,14 +924,14 @@ const ln = ge(
|
|
|
924
924
|
R()
|
|
925
925
|
)
|
|
926
926
|
}
|
|
927
|
-
), S = () => l ? c ? E() : /* @__PURE__ */ n(U, w({ icon: l }, f)) : null, A = /* @__PURE__ */
|
|
927
|
+
), S = () => l ? c ? E() : /* @__PURE__ */ n(U, w({ icon: l }, f)) : null, A = /* @__PURE__ */ N(be, { children: [
|
|
928
928
|
s === "start" && S(),
|
|
929
929
|
c ? /* @__PURE__ */ n("div", { className: "invisible", children: u }) : u,
|
|
930
930
|
c && !l && E(),
|
|
931
931
|
s === "end" && S()
|
|
932
932
|
] });
|
|
933
933
|
return /* @__PURE__ */ n(
|
|
934
|
-
|
|
934
|
+
T,
|
|
935
935
|
F(w({}, y), {
|
|
936
936
|
className: p(
|
|
937
937
|
"relative",
|
|
@@ -941,18 +941,18 @@ const ln = ge(
|
|
|
941
941
|
iconOnly: o,
|
|
942
942
|
isActive: i,
|
|
943
943
|
isLoading: c,
|
|
944
|
-
isLoadingAndDisabled:
|
|
944
|
+
isLoadingAndDisabled: C,
|
|
945
945
|
iconPosition: s
|
|
946
946
|
}),
|
|
947
947
|
g && ((z = Da[t]) == null ? void 0 : z[g]),
|
|
948
948
|
e
|
|
949
949
|
),
|
|
950
|
-
disabled: c ||
|
|
951
|
-
"aria-disabled": c ||
|
|
950
|
+
disabled: c || k,
|
|
951
|
+
"aria-disabled": c || k,
|
|
952
952
|
ref: h,
|
|
953
|
-
"data-state":
|
|
953
|
+
"data-state": C ? "disabled-loading" : void 0,
|
|
954
954
|
onClick: (G) => {
|
|
955
|
-
c ||
|
|
955
|
+
c || k || b == null || b(G);
|
|
956
956
|
},
|
|
957
957
|
"data-testid": x,
|
|
958
958
|
children: o ? S() : A
|
|
@@ -1013,14 +1013,14 @@ const Lr = ge("", {
|
|
|
1013
1013
|
"copyable"
|
|
1014
1014
|
]);
|
|
1015
1015
|
const [c, d] = oe(!1), g = ne(() => i ? typeof i == "boolean" ? {} : i : null, [i]), x = $(
|
|
1016
|
-
(h) =>
|
|
1017
|
-
var
|
|
1016
|
+
(h) => M(null, null, function* () {
|
|
1017
|
+
var I, T, k, C, R;
|
|
1018
1018
|
if (!g)
|
|
1019
1019
|
return;
|
|
1020
1020
|
h.preventDefault(), h.stopPropagation(), h.nativeEvent.stopImmediatePropagation();
|
|
1021
|
-
const m = (
|
|
1021
|
+
const m = (k = (T = g.text) != null ? T : (I = h.currentTarget.textContent) == null ? void 0 : I.trim()) != null ? k : "";
|
|
1022
1022
|
try {
|
|
1023
|
-
yield navigator.clipboard.writeText(m), (
|
|
1023
|
+
yield navigator.clipboard.writeText(m), (C = g.onCopy) == null || C.call(g), d(!0), setTimeout(() => d(!1), (R = g.duration) != null ? R : 1500);
|
|
1024
1024
|
} catch (E) {
|
|
1025
1025
|
}
|
|
1026
1026
|
}),
|
|
@@ -1029,7 +1029,7 @@ const Lr = ge("", {
|
|
|
1029
1029
|
let b = a;
|
|
1030
1030
|
t && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(t) && !a && (b = "bold");
|
|
1031
1031
|
const y = o;
|
|
1032
|
-
return g ? /* @__PURE__ */
|
|
1032
|
+
return g ? /* @__PURE__ */ N(
|
|
1033
1033
|
y,
|
|
1034
1034
|
F(w({
|
|
1035
1035
|
ref: l,
|
|
@@ -1091,15 +1091,15 @@ const dn = Ot({}), Fa = 384, cn = v.forwardRef(
|
|
|
1091
1091
|
const c = a !== void 0, [d, g] = v.useState(
|
|
1092
1092
|
i != null ? i : !1
|
|
1093
1093
|
), x = c ? a : d, b = v.useCallback(
|
|
1094
|
-
(
|
|
1095
|
-
c || g(
|
|
1094
|
+
(I) => {
|
|
1095
|
+
c || g(I), o == null || o(I);
|
|
1096
1096
|
},
|
|
1097
1097
|
[c, o]
|
|
1098
1098
|
), y = v.useCallback(() => {
|
|
1099
1099
|
b(!1);
|
|
1100
1100
|
}, [b]), h = v.useCallback(
|
|
1101
|
-
(
|
|
1102
|
-
r == null || r(
|
|
1101
|
+
(I) => {
|
|
1102
|
+
r == null || r(I);
|
|
1103
1103
|
},
|
|
1104
1104
|
[r]
|
|
1105
1105
|
), m = v.useMemo(
|
|
@@ -1265,7 +1265,7 @@ function La({
|
|
|
1265
1265
|
className: f,
|
|
1266
1266
|
triggerClassName: c
|
|
1267
1267
|
}) {
|
|
1268
|
-
return /* @__PURE__ */
|
|
1268
|
+
return /* @__PURE__ */ N(cn, { open: a, onOpenChange: o, children: [
|
|
1269
1269
|
/* @__PURE__ */ n(un, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1270
1270
|
ee,
|
|
1271
1271
|
{
|
|
@@ -1355,7 +1355,7 @@ const Oa = {
|
|
|
1355
1355
|
"data-testid"
|
|
1356
1356
|
]);
|
|
1357
1357
|
const b = Oa[e];
|
|
1358
|
-
return /* @__PURE__ */
|
|
1358
|
+
return /* @__PURE__ */ N(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
F(w({
|
|
1361
1361
|
ref: d,
|
|
@@ -1369,13 +1369,13 @@ const Oa = {
|
|
|
1369
1369
|
}, c), {
|
|
1370
1370
|
children: [
|
|
1371
1371
|
/* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n("div", { className: p("h-full w-1 rounded-lg", b.stripe) }) }),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1373
|
+
/* @__PURE__ */ n("div", { className: "flex w-fullflex-1 items-center justify-between p-2", children: /* @__PURE__ */ N("div", { className: "flex w-full flex-col md:flex-rowitems-start justify-between gap-2", children: [
|
|
1374
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-row items-start gap-2", children: [
|
|
1375
1375
|
/* @__PURE__ */ n("div", { className: "flex h-5 w-4 items-center justify-center", children: /* @__PURE__ */ n(U, { icon: b.iconName, className: p(b.icon) }) }),
|
|
1376
|
-
/* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1377
|
+
/* @__PURE__ */ N("div", { className: "flex w-full gap-2", children: [
|
|
1378
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-0.5", children: [
|
|
1379
1379
|
/* @__PURE__ */ n(
|
|
1380
1380
|
_,
|
|
1381
1381
|
{
|
|
@@ -1386,7 +1386,7 @@ const Oa = {
|
|
|
1386
1386
|
),
|
|
1387
1387
|
r && /* @__PURE__ */ n(_, { variant: "p2", children: r })
|
|
1388
1388
|
] }),
|
|
1389
|
-
(o || s) && /* @__PURE__ */
|
|
1389
|
+
(o || s) && /* @__PURE__ */ N("div", { className: "flex flex-row items-start gap-1", children: [
|
|
1390
1390
|
o && /* @__PURE__ */ n("div", { className: "hidden gap-1 md:flex", children: o }),
|
|
1391
1391
|
s && /* @__PURE__ */ n(
|
|
1392
1392
|
ee,
|
|
@@ -1441,7 +1441,7 @@ const ut = v.forwardRef((a, r) => {
|
|
|
1441
1441
|
ut.displayName = Ie.displayName;
|
|
1442
1442
|
const Va = v.forwardRef((a, r) => {
|
|
1443
1443
|
var o = a, { className: e } = o, t = B(o, ["className"]);
|
|
1444
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ N("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1445
1445
|
/* @__PURE__ */ n(U, { icon: "SearchIcon" }),
|
|
1446
1446
|
/* @__PURE__ */ n(
|
|
1447
1447
|
Ie.Input,
|
|
@@ -1568,10 +1568,10 @@ const Le = v.forwardRef(
|
|
|
1568
1568
|
autoFocus: y,
|
|
1569
1569
|
suffix: h,
|
|
1570
1570
|
showErrorMessage: m = !0,
|
|
1571
|
-
onClear:
|
|
1572
|
-
showStepperButtons:
|
|
1573
|
-
onStepDown:
|
|
1574
|
-
onStepUp:
|
|
1571
|
+
onClear: I,
|
|
1572
|
+
showStepperButtons: T = !1,
|
|
1573
|
+
onStepDown: k,
|
|
1574
|
+
onStepUp: C,
|
|
1575
1575
|
onChange: R,
|
|
1576
1576
|
value: E,
|
|
1577
1577
|
"data-testid": S
|
|
@@ -1602,7 +1602,7 @@ const Le = v.forwardRef(
|
|
|
1602
1602
|
"value",
|
|
1603
1603
|
"data-testid"
|
|
1604
1604
|
]);
|
|
1605
|
-
const P = v.useRef(null), D = E != null && E.toString().length > 0, O =
|
|
1605
|
+
const P = v.useRef(null), D = E != null && E.toString().length > 0, O = I && D && !d, W = D ? ja(String(E)) : null, V = Math.max(
|
|
1606
1606
|
Pr(A.step),
|
|
1607
1607
|
Pr(E)
|
|
1608
1608
|
), Y = v.useCallback(
|
|
@@ -1637,19 +1637,19 @@ const Le = v.forwardRef(
|
|
|
1637
1637
|
},
|
|
1638
1638
|
[V, d, W, A.max, A.min, A.step, j]
|
|
1639
1639
|
), te = v.useCallback(() => {
|
|
1640
|
-
if (
|
|
1641
|
-
|
|
1640
|
+
if (k) {
|
|
1641
|
+
k();
|
|
1642
1642
|
return;
|
|
1643
1643
|
}
|
|
1644
1644
|
J(-1);
|
|
1645
|
-
}, [J,
|
|
1646
|
-
if (
|
|
1647
|
-
|
|
1645
|
+
}, [J, k]), ae = v.useCallback(() => {
|
|
1646
|
+
if (C) {
|
|
1647
|
+
C();
|
|
1648
1648
|
return;
|
|
1649
1649
|
}
|
|
1650
1650
|
J(1);
|
|
1651
|
-
}, [J,
|
|
1652
|
-
return /* @__PURE__ */
|
|
1651
|
+
}, [J, C]);
|
|
1652
|
+
return /* @__PURE__ */ N("div", { className: p(f && "w-full"), children: [
|
|
1653
1653
|
o && /* @__PURE__ */ n(
|
|
1654
1654
|
_,
|
|
1655
1655
|
{
|
|
@@ -1662,7 +1662,7 @@ const Le = v.forwardRef(
|
|
|
1662
1662
|
children: o
|
|
1663
1663
|
}
|
|
1664
1664
|
),
|
|
1665
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ N(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
1668
|
className: p(
|
|
@@ -1727,13 +1727,13 @@ const Le = v.forwardRef(
|
|
|
1727
1727
|
"data-testid": S
|
|
1728
1728
|
}, A)
|
|
1729
1729
|
),
|
|
1730
|
-
(x || a || l || i || h || O ||
|
|
1730
|
+
(x || a || l || i || h || O || T) && /* @__PURE__ */ N(
|
|
1731
1731
|
"div",
|
|
1732
1732
|
{
|
|
1733
1733
|
className: p(
|
|
1734
1734
|
"flex shrink-0 items-center gap-1.5",
|
|
1735
|
-
!
|
|
1736
|
-
!
|
|
1735
|
+
!T && r === "md" && "pr-2.5",
|
|
1736
|
+
!T && r === "lg" && "pr-3"
|
|
1737
1737
|
),
|
|
1738
1738
|
children: [
|
|
1739
1739
|
h && /* @__PURE__ */ n("div", { className: p("font-graphik flex items-center text-[16px]", d && "text-secondary opacity-50"), children: h }),
|
|
@@ -1769,7 +1769,7 @@ const Le = v.forwardRef(
|
|
|
1769
1769
|
O && /* @__PURE__ */ n(
|
|
1770
1770
|
"div",
|
|
1771
1771
|
{
|
|
1772
|
-
onClick:
|
|
1772
|
+
onClick: I,
|
|
1773
1773
|
className: p(
|
|
1774
1774
|
"flex cursor-pointer items-center justify-center",
|
|
1775
1775
|
d && "cursor-not-allowed opacity-50"
|
|
@@ -1794,7 +1794,7 @@ const Le = v.forwardRef(
|
|
|
1794
1794
|
size: 16
|
|
1795
1795
|
}
|
|
1796
1796
|
),
|
|
1797
|
-
|
|
1797
|
+
T && /* @__PURE__ */ N(
|
|
1798
1798
|
"div",
|
|
1799
1799
|
{
|
|
1800
1800
|
className: p("flex items-center gap-[2px]", {
|
|
@@ -2019,7 +2019,7 @@ function jl({
|
|
|
2019
2019
|
var E;
|
|
2020
2020
|
const [x, b] = v.useState(!1), [y, h] = v.useState(
|
|
2021
2021
|
t && ((E = e.find((S) => S.value === t)) == null ? void 0 : E.label) || ""
|
|
2022
|
-
), m = v.useRef(null),
|
|
2022
|
+
), m = v.useRef(null), I = v.useMemo(() => e.filter(
|
|
2023
2023
|
(S) => S.label.toLowerCase().includes(y.toLowerCase())
|
|
2024
2024
|
), [e, y]);
|
|
2025
2025
|
v.useEffect(() => {
|
|
@@ -2028,18 +2028,18 @@ function jl({
|
|
|
2028
2028
|
h((S == null ? void 0 : S.label) || "");
|
|
2029
2029
|
}
|
|
2030
2030
|
}, [t]);
|
|
2031
|
-
const
|
|
2031
|
+
const T = v.useCallback(
|
|
2032
2032
|
(S) => {
|
|
2033
2033
|
const A = e.find((z) => z.value === S);
|
|
2034
2034
|
A && (r(A.value, A), h(A.label)), b(!1);
|
|
2035
2035
|
},
|
|
2036
2036
|
[e, r]
|
|
2037
|
-
),
|
|
2037
|
+
), k = v.useCallback(
|
|
2038
2038
|
(S) => {
|
|
2039
2039
|
h(S.target.value), o == null || o(S.target.value), b(!0);
|
|
2040
2040
|
},
|
|
2041
2041
|
[]
|
|
2042
|
-
),
|
|
2042
|
+
), C = v.useCallback(() => {
|
|
2043
2043
|
x ? b(!1) : (b(!0), setTimeout(() => {
|
|
2044
2044
|
var S;
|
|
2045
2045
|
(S = m.current) == null || S.focus();
|
|
@@ -2050,8 +2050,8 @@ function jl({
|
|
|
2050
2050
|
(A = m.current) == null || A.focus();
|
|
2051
2051
|
}, 0);
|
|
2052
2052
|
}, []);
|
|
2053
|
-
return /* @__PURE__ */ n(Je, { open: x, onOpenChange: R, children: /* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */
|
|
2053
|
+
return /* @__PURE__ */ n(Je, { open: x, onOpenChange: R, children: /* @__PURE__ */ N("div", { className: "relative", children: [
|
|
2054
|
+
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
2055
2055
|
u && /* @__PURE__ */ n(
|
|
2056
2056
|
_,
|
|
2057
2057
|
{
|
|
@@ -2070,8 +2070,8 @@ function jl({
|
|
|
2070
2070
|
ref: m,
|
|
2071
2071
|
placeholder: a,
|
|
2072
2072
|
value: y,
|
|
2073
|
-
onChange:
|
|
2074
|
-
onClick:
|
|
2073
|
+
onChange: k,
|
|
2074
|
+
onClick: C,
|
|
2075
2075
|
className: p("w-full", s),
|
|
2076
2076
|
disabled: l,
|
|
2077
2077
|
size: g
|
|
@@ -2085,13 +2085,13 @@ function jl({
|
|
|
2085
2085
|
{
|
|
2086
2086
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2087
2087
|
align: "start",
|
|
2088
|
-
children: /* @__PURE__ */ n(ut, { shouldFilter: !1, children: /* @__PURE__ */
|
|
2088
|
+
children: /* @__PURE__ */ n(ut, { shouldFilter: !1, children: /* @__PURE__ */ N(ft, { children: [
|
|
2089
2089
|
/* @__PURE__ */ n(Ft, { children: i }),
|
|
2090
|
-
/* @__PURE__ */ n(mt, { children:
|
|
2090
|
+
/* @__PURE__ */ n(mt, { children: I.map((S) => /* @__PURE__ */ n(
|
|
2091
2091
|
Gt,
|
|
2092
2092
|
{
|
|
2093
2093
|
value: S.value,
|
|
2094
|
-
onSelect:
|
|
2094
|
+
onSelect: T,
|
|
2095
2095
|
className: "flex flex-col items-start py-2",
|
|
2096
2096
|
children: d ? d(S) : /* @__PURE__ */ n("div", { children: S.label })
|
|
2097
2097
|
},
|
|
@@ -2160,7 +2160,7 @@ const Za = {
|
|
|
2160
2160
|
large: "-top-1.5 -right-0.5",
|
|
2161
2161
|
extra: "-top-1 -right-1"
|
|
2162
2162
|
}[r];
|
|
2163
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ N(
|
|
2164
2164
|
Ze.Root,
|
|
2165
2165
|
F(w({
|
|
2166
2166
|
ref: l,
|
|
@@ -2398,7 +2398,7 @@ const xo = ({
|
|
|
2398
2398
|
className: o
|
|
2399
2399
|
}) => {
|
|
2400
2400
|
const i = Ae(e).getTime() === Ae(/* @__PURE__ */ new Date()).getTime();
|
|
2401
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ N(
|
|
2402
2402
|
"button",
|
|
2403
2403
|
{
|
|
2404
2404
|
type: "button",
|
|
@@ -2412,7 +2412,7 @@ const xo = ({
|
|
|
2412
2412
|
),
|
|
2413
2413
|
children: [
|
|
2414
2414
|
r && /* @__PURE__ */ n("div", { className: "absolute right-1 top-1", children: r(e) }),
|
|
2415
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center justify-center gap-0.5", children: [
|
|
2416
2416
|
/* @__PURE__ */ n(_, { variant: "p3", weight: "medium", children: e.getDate() }),
|
|
2417
2417
|
/* @__PURE__ */ n(_, { variant: "p1", textColor: "secondary", children: i ? "Сегодня" : gn(e) })
|
|
2418
2418
|
] })
|
|
@@ -2442,9 +2442,9 @@ const xo = ({
|
|
|
2442
2442
|
t && "border-default bg-white border-1",
|
|
2443
2443
|
o
|
|
2444
2444
|
),
|
|
2445
|
-
children: /* @__PURE__ */
|
|
2446
|
-
/* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2445
|
+
children: /* @__PURE__ */ N("div", { className: "flex flex-col items-start justify-start gap-2", children: [
|
|
2446
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-center gap-1", children: [
|
|
2447
|
+
/* @__PURE__ */ N(_, { variant: "p3", weight: "medium", children: [
|
|
2448
2448
|
i,
|
|
2449
2449
|
" ",
|
|
2450
2450
|
l
|
|
@@ -2560,58 +2560,58 @@ const Kl = (f) => {
|
|
|
2560
2560
|
]);
|
|
2561
2561
|
const { days: d, selectedDate: g, setSelectedDate: x } = Io(F(w({}, u), {
|
|
2562
2562
|
onChange: e
|
|
2563
|
-
})), b = ce(null), y = $((
|
|
2564
|
-
const
|
|
2565
|
-
if (
|
|
2566
|
-
const
|
|
2567
|
-
|
|
2563
|
+
})), b = ce(null), y = $((T) => {
|
|
2564
|
+
const k = b.current;
|
|
2565
|
+
if (k) {
|
|
2566
|
+
const C = yo * Be;
|
|
2567
|
+
k.scrollBy({ left: T > 0 ? C : -546, behavior: "smooth" });
|
|
2568
2568
|
}
|
|
2569
|
-
}, []), h = (
|
|
2569
|
+
}, []), h = (T) => T.getTime() === g.getTime(), m = $((T, k = !1) => {
|
|
2570
2570
|
if (b.current && d.length > 0) {
|
|
2571
|
-
const
|
|
2572
|
-
if (
|
|
2573
|
-
const R = b.current.offsetWidth, S = window.innerWidth < bn ?
|
|
2574
|
-
|
|
2571
|
+
const C = d.findIndex((R) => R.getTime() === Ae(T).getTime());
|
|
2572
|
+
if (C !== -1) {
|
|
2573
|
+
const R = b.current.offsetWidth, S = window.innerWidth < bn ? C * Be : C * Be - R / 2 + Be / 2;
|
|
2574
|
+
k ? b.current.scrollTo({ left: Math.max(0, S), behavior: "smooth" }) : b.current.scrollLeft = Math.max(0, S);
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
2577
|
}, [d]);
|
|
2578
2578
|
fe(() => {
|
|
2579
2579
|
if (d.length > 0) {
|
|
2580
|
-
const
|
|
2581
|
-
m(
|
|
2580
|
+
const T = Ae(/* @__PURE__ */ new Date());
|
|
2581
|
+
m(T);
|
|
2582
2582
|
}
|
|
2583
2583
|
}, []), fe(() => {
|
|
2584
2584
|
if (i && d.length > 0 && b.current) {
|
|
2585
|
-
const
|
|
2586
|
-
var
|
|
2585
|
+
const T = setTimeout(() => {
|
|
2586
|
+
var k;
|
|
2587
2587
|
if (i.mode === "date")
|
|
2588
2588
|
m(i.date, !0);
|
|
2589
2589
|
else {
|
|
2590
|
-
const
|
|
2590
|
+
const C = Ae(new Date(
|
|
2591
2591
|
i.date.getFullYear(),
|
|
2592
2592
|
i.date.getMonth(),
|
|
2593
2593
|
1
|
|
2594
|
-
)), R = d.findIndex((E) => E.getTime() ===
|
|
2594
|
+
)), R = d.findIndex((E) => E.getTime() === C.getTime());
|
|
2595
2595
|
if (R !== -1) {
|
|
2596
2596
|
const E = R * Be;
|
|
2597
|
-
(
|
|
2597
|
+
(k = b.current) == null || k.scrollTo({ left: Math.max(0, E), behavior: "smooth" });
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
2600
|
setTimeout(() => {
|
|
2601
2601
|
s == null || s();
|
|
2602
2602
|
}, 500);
|
|
2603
2603
|
}, 50);
|
|
2604
|
-
return () => clearTimeout(
|
|
2604
|
+
return () => clearTimeout(T);
|
|
2605
2605
|
}
|
|
2606
2606
|
}, [i, d, s, m]);
|
|
2607
|
-
const
|
|
2607
|
+
const I = ce([]);
|
|
2608
2608
|
return fe(() => {
|
|
2609
|
-
if (b.current && d.length > 0 &&
|
|
2610
|
-
const
|
|
2609
|
+
if (b.current && d.length > 0 && I.current.length > 0) {
|
|
2610
|
+
const k = I.current[0], C = d[0], R = d.findIndex((E) => E.getTime() === k.getTime());
|
|
2611
2611
|
if (R > 0)
|
|
2612
2612
|
b.current.scrollLeft += R * Be;
|
|
2613
2613
|
else if (R === -1) {
|
|
2614
|
-
const E =
|
|
2614
|
+
const E = k.getTime(), S = C.getTime();
|
|
2615
2615
|
if (S < E) {
|
|
2616
2616
|
const A = Math.round((E - S) / 864e5);
|
|
2617
2617
|
b.current.scrollLeft += A * Be;
|
|
@@ -2621,8 +2621,8 @@ const Kl = (f) => {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
|
-
|
|
2625
|
-
}, [d]), /* @__PURE__ */
|
|
2624
|
+
I.current = [...d];
|
|
2625
|
+
}, [d]), /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
2626
2626
|
a && /* @__PURE__ */ n(
|
|
2627
2627
|
ee,
|
|
2628
2628
|
{
|
|
@@ -2643,16 +2643,16 @@ const Kl = (f) => {
|
|
|
2643
2643
|
scrollbarWidth: "none",
|
|
2644
2644
|
msOverflowStyle: "none"
|
|
2645
2645
|
},
|
|
2646
|
-
children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((
|
|
2646
|
+
children: /* @__PURE__ */ n("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": l == null ? void 0 : l.calendarStrip, children: d.map((T) => /* @__PURE__ */ n(
|
|
2647
2647
|
xo,
|
|
2648
2648
|
{
|
|
2649
|
-
date:
|
|
2650
|
-
selected: h(
|
|
2651
|
-
onClick: () => x(
|
|
2649
|
+
date: T,
|
|
2650
|
+
selected: h(T),
|
|
2651
|
+
onClick: () => x(T),
|
|
2652
2652
|
renderBadge: r,
|
|
2653
2653
|
className: t
|
|
2654
2654
|
},
|
|
2655
|
-
|
|
2655
|
+
T.toISOString()
|
|
2656
2656
|
)) })
|
|
2657
2657
|
}
|
|
2658
2658
|
),
|
|
@@ -2730,8 +2730,8 @@ const cr = v.forwardRef((s, i) => {
|
|
|
2730
2730
|
});
|
|
2731
2731
|
cr.displayName = "SelectItem";
|
|
2732
2732
|
const ur = v.forwardRef(
|
|
2733
|
-
(
|
|
2734
|
-
var
|
|
2733
|
+
(k, T) => {
|
|
2734
|
+
var C = k, {
|
|
2735
2735
|
className: e,
|
|
2736
2736
|
children: t,
|
|
2737
2737
|
size: r = "md",
|
|
@@ -2750,7 +2750,7 @@ const ur = v.forwardRef(
|
|
|
2750
2750
|
clearable: y = !1,
|
|
2751
2751
|
onClear: h,
|
|
2752
2752
|
inlineSelect: m = !1
|
|
2753
|
-
} =
|
|
2753
|
+
} = C, I = B(C, [
|
|
2754
2754
|
"className",
|
|
2755
2755
|
"children",
|
|
2756
2756
|
"size",
|
|
@@ -2795,7 +2795,7 @@ const ur = v.forwardRef(
|
|
|
2795
2795
|
return G.observe(E.current), () => {
|
|
2796
2796
|
G.disconnect();
|
|
2797
2797
|
};
|
|
2798
|
-
}, [c, u, o, R]), /* @__PURE__ */
|
|
2798
|
+
}, [c, u, o, R]), /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
2799
2799
|
a && /* @__PURE__ */ n(
|
|
2800
2800
|
_,
|
|
2801
2801
|
{
|
|
@@ -2812,10 +2812,10 @@ const ur = v.forwardRef(
|
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
className: p("relative flex items-center", s && "w-full"),
|
|
2815
|
-
children: /* @__PURE__ */
|
|
2815
|
+
children: /* @__PURE__ */ N(
|
|
2816
2816
|
ye.Trigger,
|
|
2817
2817
|
F(w({
|
|
2818
|
-
ref:
|
|
2818
|
+
ref: T,
|
|
2819
2819
|
className: p(
|
|
2820
2820
|
"font-graphik group flex items-center",
|
|
2821
2821
|
!l && [
|
|
@@ -2843,7 +2843,7 @@ const ur = v.forwardRef(
|
|
|
2843
2843
|
],
|
|
2844
2844
|
e
|
|
2845
2845
|
)
|
|
2846
|
-
},
|
|
2846
|
+
}, I), {
|
|
2847
2847
|
"data-testid": x,
|
|
2848
2848
|
children: [
|
|
2849
2849
|
/* @__PURE__ */ n(
|
|
@@ -2851,8 +2851,8 @@ const ur = v.forwardRef(
|
|
|
2851
2851
|
{
|
|
2852
2852
|
ref: E,
|
|
2853
2853
|
className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${m ? "" : "pr-2"}`,
|
|
2854
|
-
children: R && (c != null && c.length) ? /* @__PURE__ */
|
|
2855
|
-
c.slice(0, S).map((z) => /* @__PURE__ */
|
|
2854
|
+
children: R && (c != null && c.length) ? /* @__PURE__ */ N("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
|
|
2855
|
+
c.slice(0, S).map((z) => /* @__PURE__ */ N(
|
|
2856
2856
|
"div",
|
|
2857
2857
|
{
|
|
2858
2858
|
className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
|
|
@@ -2888,14 +2888,14 @@ const ur = v.forwardRef(
|
|
|
2888
2888
|
},
|
|
2889
2889
|
z
|
|
2890
2890
|
)),
|
|
2891
|
-
c.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */
|
|
2891
|
+
c.length > S && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ N(_, { variant: "p2", children: [
|
|
2892
2892
|
"+",
|
|
2893
2893
|
c.length - S
|
|
2894
2894
|
] }) })
|
|
2895
2895
|
] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: t })
|
|
2896
2896
|
}
|
|
2897
2897
|
),
|
|
2898
|
-
/* @__PURE__ */
|
|
2898
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
2899
2899
|
u && /* @__PURE__ */ n(
|
|
2900
2900
|
"div",
|
|
2901
2901
|
{
|
|
@@ -2998,7 +2998,7 @@ const $l = ye.Group, Co = v.forwardRef((i, o) => {
|
|
|
2998
2998
|
"isMultiple",
|
|
2999
2999
|
"size"
|
|
3000
3000
|
]);
|
|
3001
|
-
return /* @__PURE__ */ n(ye.Portal, { children: /* @__PURE__ */
|
|
3001
|
+
return /* @__PURE__ */ n(ye.Portal, { children: /* @__PURE__ */ N(
|
|
3002
3002
|
ye.Content,
|
|
3003
3003
|
F(w({
|
|
3004
3004
|
ref: l,
|
|
@@ -3143,8 +3143,8 @@ const Yl = ({
|
|
|
3143
3143
|
const g = ne(() => {
|
|
3144
3144
|
const h = [];
|
|
3145
3145
|
for (let m = -12; m <= 12; m++) {
|
|
3146
|
-
const
|
|
3147
|
-
h.push({ value: zr(
|
|
3146
|
+
const I = nr(new Date(s.getFullYear(), s.getMonth(), 1), m);
|
|
3147
|
+
h.push({ value: zr(I), label: Xt(I), date: I });
|
|
3148
3148
|
}
|
|
3149
3149
|
return h;
|
|
3150
3150
|
}, []), x = ne(() => {
|
|
@@ -3153,20 +3153,20 @@ const Yl = ({
|
|
|
3153
3153
|
const h = new Date(u.getFullYear(), u.getMonth(), 1);
|
|
3154
3154
|
return zr(h);
|
|
3155
3155
|
}, [u, c]), b = (h) => {
|
|
3156
|
-
const m = g.find((
|
|
3156
|
+
const m = g.find((T) => T.value === h);
|
|
3157
3157
|
if (!m)
|
|
3158
3158
|
return;
|
|
3159
3159
|
d(h);
|
|
3160
|
-
const
|
|
3161
|
-
f(
|
|
3160
|
+
const I = m.date;
|
|
3161
|
+
f(I), r && r(At(I)), t == null || t(I);
|
|
3162
3162
|
}, y = ne(() => {
|
|
3163
3163
|
if (a && a.length > 0) {
|
|
3164
|
-
const h = Math.floor(a.length / 2), m = a[h],
|
|
3165
|
-
return Xt(
|
|
3164
|
+
const h = Math.floor(a.length / 2), m = a[h], I = new Date(m.year, m.month, 1);
|
|
3165
|
+
return Xt(I);
|
|
3166
3166
|
}
|
|
3167
3167
|
return Xt(u);
|
|
3168
3168
|
}, [a, u]);
|
|
3169
|
-
return /* @__PURE__ */
|
|
3169
|
+
return /* @__PURE__ */ N(To, { value: x, onValueChange: b, children: [
|
|
3170
3170
|
/* @__PURE__ */ n(
|
|
3171
3171
|
ur,
|
|
3172
3172
|
{
|
|
@@ -3200,8 +3200,8 @@ function Zl({
|
|
|
3200
3200
|
JSON.stringify(s) !== JSON.stringify(h) && l(h), r == null || r(y);
|
|
3201
3201
|
}, [r, s]), g = $((y) => {
|
|
3202
3202
|
if (l(y), y.length > 0) {
|
|
3203
|
-
const h = Math.floor(y.length / 2), m = y[h],
|
|
3204
|
-
f({ date:
|
|
3203
|
+
const h = Math.floor(y.length / 2), m = y[h], I = new Date(m.year, m.month, 1);
|
|
3204
|
+
f({ date: I, timestamp: Date.now(), mode: "monthStart" });
|
|
3205
3205
|
}
|
|
3206
3206
|
}, []), x = $(() => {
|
|
3207
3207
|
f(void 0);
|
|
@@ -3270,8 +3270,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3270
3270
|
e
|
|
3271
3271
|
)
|
|
3272
3272
|
}, u), {
|
|
3273
|
-
children: /* @__PURE__ */
|
|
3274
|
-
g && /* @__PURE__ */
|
|
3273
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-start gap-3 md:justify-between", children: [
|
|
3274
|
+
g && /* @__PURE__ */ N("div", { className: "flex-shrink-0", children: [
|
|
3275
3275
|
/* @__PURE__ */ n(
|
|
3276
3276
|
"img",
|
|
3277
3277
|
{
|
|
@@ -3291,8 +3291,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
)
|
|
3293
3293
|
] }),
|
|
3294
|
-
/* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3294
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col items-start gap-3 md:flex-row md:justify-between md:gap-1", children: [
|
|
3295
|
+
/* @__PURE__ */ N("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
3296
3296
|
/* @__PURE__ */ n(_, { variant: "p3", weight: "medium", children: r }),
|
|
3297
3297
|
a
|
|
3298
3298
|
] }),
|
|
@@ -3311,7 +3311,7 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3311
3311
|
)
|
|
3312
3312
|
] })
|
|
3313
3313
|
})
|
|
3314
|
-
) : /* @__PURE__ */
|
|
3314
|
+
) : /* @__PURE__ */ N(
|
|
3315
3315
|
$e,
|
|
3316
3316
|
F(w({
|
|
3317
3317
|
ref: f,
|
|
@@ -3327,8 +3327,8 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3327
3327
|
)
|
|
3328
3328
|
}, u), {
|
|
3329
3329
|
children: [
|
|
3330
|
-
/* @__PURE__ */
|
|
3331
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-3", children: [
|
|
3331
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-1", children: [
|
|
3332
3332
|
/* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between", children: /* @__PURE__ */ n(
|
|
3333
3333
|
_,
|
|
3334
3334
|
{
|
|
@@ -3342,7 +3342,7 @@ const Ro = window.innerWidth < bn, Eo = {
|
|
|
3342
3342
|
] }),
|
|
3343
3343
|
o && /* @__PURE__ */ n("div", { className: "z-11", children: o })
|
|
3344
3344
|
] }),
|
|
3345
|
-
g && /* @__PURE__ */
|
|
3345
|
+
g && /* @__PURE__ */ N(be, { children: [
|
|
3346
3346
|
/* @__PURE__ */ n(
|
|
3347
3347
|
"div",
|
|
3348
3348
|
{
|
|
@@ -3466,29 +3466,29 @@ function Lo(e) {
|
|
|
3466
3466
|
onCheckedChange: u,
|
|
3467
3467
|
ref: f,
|
|
3468
3468
|
"data-testid": c
|
|
3469
|
-
} = e, d = a === "md" ? 16 : 24, g = v.useId(), x = l || g, b = i || !1, [y, h] = v.useState(!1), m = s !== void 0,
|
|
3469
|
+
} = e, d = a === "md" ? 16 : 24, g = v.useId(), x = l || g, b = i || !1, [y, h] = v.useState(!1), m = s !== void 0, I = m ? s : y, T = () => I === !0 ? "checked" : I === "indeterminate" ? "indeterminate" : "unchecked", k = (R) => {
|
|
3470
3470
|
m && u ? u(R) : m || h(R);
|
|
3471
|
-
},
|
|
3471
|
+
}, C = /* @__PURE__ */ n(
|
|
3472
3472
|
Dr.Root,
|
|
3473
3473
|
{
|
|
3474
3474
|
ref: f,
|
|
3475
3475
|
id: x,
|
|
3476
3476
|
className: p(
|
|
3477
|
-
Do({ size: a, state:
|
|
3477
|
+
Do({ size: a, state: T(), isDisabled: b }),
|
|
3478
3478
|
r || (o ? void 0 : t)
|
|
3479
3479
|
),
|
|
3480
3480
|
disabled: b,
|
|
3481
|
-
checked:
|
|
3482
|
-
onCheckedChange:
|
|
3481
|
+
checked: I,
|
|
3482
|
+
onCheckedChange: k,
|
|
3483
3483
|
"data-testid": c,
|
|
3484
|
-
children: /* @__PURE__ */
|
|
3485
|
-
|
|
3486
|
-
|
|
3484
|
+
children: /* @__PURE__ */ N(Dr.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
3485
|
+
I === "indeterminate" && /* @__PURE__ */ n("div", { className: Fo({ size: a }) }),
|
|
3486
|
+
I === !0 && /* @__PURE__ */ n(U, { icon: "DoneIcon", size: d, className: "text-white" })
|
|
3487
3487
|
] })
|
|
3488
3488
|
}
|
|
3489
3489
|
);
|
|
3490
|
-
return o ? /* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */ n("div", { className: p(a === "md" && "pt-0.5"), children:
|
|
3490
|
+
return o ? /* @__PURE__ */ N("div", { className: p("items-top flex flex-row space-x-2", t), children: [
|
|
3491
|
+
/* @__PURE__ */ n("div", { className: p(a === "md" && "pt-0.5"), children: C }),
|
|
3492
3492
|
/* @__PURE__ */ n(
|
|
3493
3493
|
"label",
|
|
3494
3494
|
{
|
|
@@ -3501,7 +3501,7 @@ function Lo(e) {
|
|
|
3501
3501
|
children: o
|
|
3502
3502
|
}
|
|
3503
3503
|
)
|
|
3504
|
-
] }) :
|
|
3504
|
+
] }) : C;
|
|
3505
3505
|
}
|
|
3506
3506
|
const or = v.forwardRef(
|
|
3507
3507
|
(e, t) => /* @__PURE__ */ n(Lo, F(w({}, e), { ref: t }))
|
|
@@ -3535,19 +3535,19 @@ const or = v.forwardRef(
|
|
|
3535
3535
|
return (E = m.current) == null ? void 0 : E.focus();
|
|
3536
3536
|
});
|
|
3537
3537
|
}, [y]);
|
|
3538
|
-
const [
|
|
3538
|
+
const [I, T] = v.useState(""), k = v.useCallback((E) => {
|
|
3539
3539
|
if (typeof E == "string")
|
|
3540
3540
|
return E;
|
|
3541
3541
|
if (v.isValidElement(E)) {
|
|
3542
3542
|
const S = E.props;
|
|
3543
|
-
return typeof S.children == "string" ? S.children : Array.isArray(S.children) ? S.children.map(
|
|
3543
|
+
return typeof S.children == "string" ? S.children : Array.isArray(S.children) ? S.children.map(k).join(" ") : k(S.children);
|
|
3544
3544
|
}
|
|
3545
3545
|
return "";
|
|
3546
|
-
}, []),
|
|
3547
|
-
return /* @__PURE__ */
|
|
3546
|
+
}, []), C = v.useMemo(() => I ? e.filter((E) => k(E.label).toLowerCase().includes(I.toLowerCase())) : e, [e, I, k]);
|
|
3547
|
+
return /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
3548
3548
|
o && /* @__PURE__ */ n(_, { variant: "p3", weight: "medium", className: "mb-2.5", children: o }),
|
|
3549
|
-
/* @__PURE__ */
|
|
3550
|
-
/* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ N(xe.Root, { open: y, onOpenChange: h, modal: !0, children: [
|
|
3550
|
+
/* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ N(
|
|
3551
3551
|
ee,
|
|
3552
3552
|
{
|
|
3553
3553
|
variant: "dashed",
|
|
@@ -3590,7 +3590,7 @@ const or = v.forwardRef(
|
|
|
3590
3590
|
]
|
|
3591
3591
|
}
|
|
3592
3592
|
) }),
|
|
3593
|
-
/* @__PURE__ */
|
|
3593
|
+
/* @__PURE__ */ N(
|
|
3594
3594
|
xe.Content,
|
|
3595
3595
|
{
|
|
3596
3596
|
sideOffset: 4,
|
|
@@ -3609,8 +3609,8 @@ const or = v.forwardRef(
|
|
|
3609
3609
|
Lt,
|
|
3610
3610
|
{
|
|
3611
3611
|
ref: m,
|
|
3612
|
-
value:
|
|
3613
|
-
onChange: (E) =>
|
|
3612
|
+
value: I,
|
|
3613
|
+
onChange: (E) => T(E.target.value),
|
|
3614
3614
|
placeholder: i,
|
|
3615
3615
|
size: "md",
|
|
3616
3616
|
type: "border",
|
|
@@ -3621,9 +3621,9 @@ const or = v.forwardRef(
|
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
3623
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3625
|
-
|
|
3626
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children:
|
|
3624
|
+
/* @__PURE__ */ N("div", { className: "max-h-60 overflow-y-auto", children: [
|
|
3625
|
+
C.length === 0 && /* @__PURE__ */ n("div", { className: "text-muted-foreground px-3 py-2 text-sm", children: x }),
|
|
3626
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5 p-1", children: C.map((E) => /* @__PURE__ */ n(
|
|
3627
3627
|
"div",
|
|
3628
3628
|
{
|
|
3629
3629
|
className: p(
|
|
@@ -3635,10 +3635,10 @@ const or = v.forwardRef(
|
|
|
3635
3635
|
Po[a]
|
|
3636
3636
|
),
|
|
3637
3637
|
onClick: () => {
|
|
3638
|
-
r(E.value), h(!1),
|
|
3638
|
+
r(E.value), h(!1), T("");
|
|
3639
3639
|
},
|
|
3640
3640
|
onKeyDown: (S) => {
|
|
3641
|
-
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), r(E.value), h(!1),
|
|
3641
|
+
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), r(E.value), h(!1), T(""));
|
|
3642
3642
|
},
|
|
3643
3643
|
tabIndex: 0,
|
|
3644
3644
|
role: "option",
|
|
@@ -3676,22 +3676,22 @@ function Bo({
|
|
|
3676
3676
|
onOpenChange: u
|
|
3677
3677
|
}) {
|
|
3678
3678
|
const f = $((h, m) => {
|
|
3679
|
-
const { type:
|
|
3680
|
-
switch (
|
|
3679
|
+
const { type: I, changes: T } = m;
|
|
3680
|
+
switch (I) {
|
|
3681
3681
|
case he.stateChangeTypes.ItemClick:
|
|
3682
3682
|
case he.stateChangeTypes.InputKeyDownEnter:
|
|
3683
3683
|
case he.stateChangeTypes.InputKeyDownEscape:
|
|
3684
3684
|
case he.stateChangeTypes.InputBlur:
|
|
3685
|
-
return F(w({},
|
|
3685
|
+
return F(w({}, T), {
|
|
3686
3686
|
// Сохраняем inputValue из изменений, но предотвращаем вызов onInputValueChange
|
|
3687
|
-
inputValue:
|
|
3687
|
+
inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
|
|
3688
3688
|
});
|
|
3689
3689
|
case he.stateChangeTypes.FunctionSelectItem:
|
|
3690
|
-
return F(w({},
|
|
3691
|
-
inputValue:
|
|
3690
|
+
return F(w({}, T), {
|
|
3691
|
+
inputValue: T.selectedItem ? s(T.selectedItem.value) : T.inputValue || ""
|
|
3692
3692
|
});
|
|
3693
3693
|
default:
|
|
3694
|
-
return
|
|
3694
|
+
return T;
|
|
3695
3695
|
}
|
|
3696
3696
|
}, [s]), y = he({
|
|
3697
3697
|
items: e,
|
|
@@ -3714,9 +3714,9 @@ function Bo({
|
|
|
3714
3714
|
}), { selectItem: c, setInputValue: d, getInputProps: g } = y, x = B(y, ["selectItem", "setInputValue", "getInputProps"]), b = $((h) => {
|
|
3715
3715
|
const m = g(h);
|
|
3716
3716
|
return F(w({}, m), {
|
|
3717
|
-
onBlur: (
|
|
3718
|
-
var
|
|
3719
|
-
(
|
|
3717
|
+
onBlur: (I) => {
|
|
3718
|
+
var T;
|
|
3719
|
+
(T = m.onBlur) == null || T.call(m, I), o == null || o(I);
|
|
3720
3720
|
}
|
|
3721
3721
|
});
|
|
3722
3722
|
}, [g, o]);
|
|
@@ -3726,32 +3726,32 @@ function Bo({
|
|
|
3726
3726
|
setInputValue: d
|
|
3727
3727
|
});
|
|
3728
3728
|
}
|
|
3729
|
-
function Oo(e, t) {
|
|
3730
|
-
const { refs:
|
|
3729
|
+
function Oo(e, t, r) {
|
|
3730
|
+
const { refs: a, floatingStyles: o, context: i } = qr({
|
|
3731
3731
|
open: e && !t,
|
|
3732
3732
|
placement: "bottom-start",
|
|
3733
3733
|
whileElementsMounted: an,
|
|
3734
3734
|
middleware: [
|
|
3735
3735
|
en(4),
|
|
3736
|
-
tn(),
|
|
3736
|
+
...r ? [tn()] : [],
|
|
3737
3737
|
rn(),
|
|
3738
3738
|
nn({
|
|
3739
|
-
apply({ rects:
|
|
3740
|
-
const
|
|
3741
|
-
|
|
3742
|
-
width: `${
|
|
3739
|
+
apply({ rects: u }) {
|
|
3740
|
+
const f = a.floating.current;
|
|
3741
|
+
f && Object.assign(f.style, {
|
|
3742
|
+
width: `${u.reference.width}px`
|
|
3743
3743
|
});
|
|
3744
3744
|
}
|
|
3745
3745
|
})
|
|
3746
3746
|
]
|
|
3747
|
-
}), { isMounted:
|
|
3747
|
+
}), { isMounted: s, styles: l } = on(i, {
|
|
3748
3748
|
duration: 200
|
|
3749
3749
|
});
|
|
3750
3750
|
return {
|
|
3751
|
-
refs:
|
|
3752
|
-
floatingStyles:
|
|
3753
|
-
isMounted:
|
|
3754
|
-
transitionStyles:
|
|
3751
|
+
refs: a,
|
|
3752
|
+
floatingStyles: o,
|
|
3753
|
+
isMounted: s,
|
|
3754
|
+
transitionStyles: l
|
|
3755
3755
|
};
|
|
3756
3756
|
}
|
|
3757
3757
|
function _o({
|
|
@@ -3769,40 +3769,41 @@ function _o({
|
|
|
3769
3769
|
placeholder: d = "Поиск...",
|
|
3770
3770
|
getLabel: g,
|
|
3771
3771
|
loading: x = !1,
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3772
|
+
allowFlip: b = !0,
|
|
3773
|
+
isOpen: y,
|
|
3774
|
+
onOpenChange: h,
|
|
3775
|
+
onClear: m,
|
|
3776
|
+
clearable: I
|
|
3776
3777
|
}) {
|
|
3777
|
-
const
|
|
3778
|
+
const T = $(g, []), k = ne(() => r ? {
|
|
3778
3779
|
value: r,
|
|
3779
|
-
label:
|
|
3780
|
-
} : null, [r,
|
|
3780
|
+
label: T(r)
|
|
3781
|
+
} : null, [r, T]), C = Bo({
|
|
3781
3782
|
items: t,
|
|
3782
|
-
value:
|
|
3783
|
+
value: k,
|
|
3783
3784
|
onChange: a,
|
|
3784
3785
|
onSearch: o,
|
|
3785
3786
|
onBlur: i,
|
|
3786
3787
|
disabled: f,
|
|
3787
|
-
getLabel:
|
|
3788
|
-
isOpen:
|
|
3789
|
-
onOpenChange:
|
|
3790
|
-
}),
|
|
3788
|
+
getLabel: T,
|
|
3789
|
+
isOpen: y,
|
|
3790
|
+
onOpenChange: h
|
|
3791
|
+
}), R = Oo(C.isOpen, x, b), E = ne(() => ({
|
|
3791
3792
|
// Combobox состояние
|
|
3792
3793
|
getInputProps: C.getInputProps,
|
|
3793
3794
|
getItemProps: C.getItemProps,
|
|
3794
3795
|
getMenuProps: C.getMenuProps,
|
|
3795
3796
|
getToggleButtonProps: C.getToggleButtonProps,
|
|
3796
3797
|
isOpen: C.isOpen,
|
|
3797
|
-
onOpenChange:
|
|
3798
|
+
onOpenChange: h,
|
|
3798
3799
|
selectedItem: C.selectedItem,
|
|
3799
3800
|
setInputValue: C.setInputValue,
|
|
3800
3801
|
selectItem: C.selectItem,
|
|
3801
3802
|
// Floating UI состояние
|
|
3802
|
-
refs:
|
|
3803
|
-
floatingStyles:
|
|
3804
|
-
isMounted:
|
|
3805
|
-
transitionStyles:
|
|
3803
|
+
refs: R.refs,
|
|
3804
|
+
floatingStyles: R.floatingStyles,
|
|
3805
|
+
isMounted: R.isMounted,
|
|
3806
|
+
transitionStyles: R.transitionStyles,
|
|
3806
3807
|
// Пропсы компонента
|
|
3807
3808
|
size: s,
|
|
3808
3809
|
fullWidth: l,
|
|
@@ -3813,12 +3814,12 @@ function _o({
|
|
|
3813
3814
|
onBlur: i,
|
|
3814
3815
|
loading: x,
|
|
3815
3816
|
items: t,
|
|
3816
|
-
getLabel:
|
|
3817
|
-
onClear:
|
|
3818
|
-
clearable:
|
|
3817
|
+
getLabel: T,
|
|
3818
|
+
onClear: m,
|
|
3819
|
+
clearable: I
|
|
3819
3820
|
}), [
|
|
3820
3821
|
C,
|
|
3821
|
-
|
|
3822
|
+
R,
|
|
3822
3823
|
s,
|
|
3823
3824
|
l,
|
|
3824
3825
|
u,
|
|
@@ -3827,10 +3828,10 @@ function _o({
|
|
|
3827
3828
|
d,
|
|
3828
3829
|
i,
|
|
3829
3830
|
t,
|
|
3830
|
-
|
|
3831
|
-
|
|
3831
|
+
T,
|
|
3832
|
+
h
|
|
3832
3833
|
]);
|
|
3833
|
-
return /* @__PURE__ */ n(vn.Provider, { value:
|
|
3834
|
+
return /* @__PURE__ */ n(vn.Provider, { value: E, children: e });
|
|
3834
3835
|
}
|
|
3835
3836
|
const Vo = ge("flex-col items-center justify-center", {
|
|
3836
3837
|
variants: {
|
|
@@ -3845,7 +3846,7 @@ const Vo = ge("flex-col items-center justify-center", {
|
|
|
3845
3846
|
}), je = v.forwardRef(
|
|
3846
3847
|
(s, i) => {
|
|
3847
3848
|
var l = s, { size: e = 16, show: t, children: r, className: a } = l, o = B(l, ["size", "show", "children", "className"]);
|
|
3848
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ N("span", F(w({ ref: i, className: Vo({ show: t }) }, o), { children: [
|
|
3849
3850
|
/* @__PURE__ */ n(
|
|
3850
3851
|
U,
|
|
3851
3852
|
{
|
|
@@ -3994,7 +3995,7 @@ const Wo = [
|
|
|
3994
3995
|
selectedItem: u,
|
|
3995
3996
|
disabled: f
|
|
3996
3997
|
} = ht();
|
|
3997
|
-
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5", Xo[e]), children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */
|
|
3998
|
+
return /* @__PURE__ */ n("div", { className: p("flex items-center gap-1.5", Xo[e]), children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */ N(be, { children: [
|
|
3998
3999
|
a && /* @__PURE__ */ n(
|
|
3999
4000
|
U,
|
|
4000
4001
|
{
|
|
@@ -4154,7 +4155,7 @@ function Pt(s) {
|
|
|
4154
4155
|
"relative",
|
|
4155
4156
|
"asChild"
|
|
4156
4157
|
]);
|
|
4157
|
-
return /* @__PURE__ */
|
|
4158
|
+
return /* @__PURE__ */ N(
|
|
4158
4159
|
dt.Root,
|
|
4159
4160
|
F(w({
|
|
4160
4161
|
"data-slot": "scroll-area",
|
|
@@ -4270,24 +4271,24 @@ function ei({
|
|
|
4270
4271
|
return b;
|
|
4271
4272
|
if (Br(b.type, "Item"))
|
|
4272
4273
|
try {
|
|
4273
|
-
const h = b.props, m = er(h.option),
|
|
4274
|
-
if (
|
|
4275
|
-
const { item:
|
|
4274
|
+
const h = b.props, m = er(h.option), I = i.get(m);
|
|
4275
|
+
if (I) {
|
|
4276
|
+
const { item: T, index: k } = I, C = s === m;
|
|
4276
4277
|
return /* @__PURE__ */ n(
|
|
4277
4278
|
mr,
|
|
4278
4279
|
F(w({
|
|
4279
|
-
isSelected:
|
|
4280
|
+
isSelected: C,
|
|
4280
4281
|
className: h.className
|
|
4281
4282
|
}, o({
|
|
4282
|
-
item:
|
|
4283
|
-
index:
|
|
4283
|
+
item: T,
|
|
4284
|
+
index: k
|
|
4284
4285
|
})), {
|
|
4285
4286
|
children: typeof h.children == "function" ? h.children(w({
|
|
4286
|
-
isSelected:
|
|
4287
|
+
isSelected: C,
|
|
4287
4288
|
className: h.className
|
|
4288
4289
|
}, o({
|
|
4289
|
-
item:
|
|
4290
|
-
index:
|
|
4290
|
+
item: T,
|
|
4291
|
+
index: k
|
|
4291
4292
|
}))) : h.children
|
|
4292
4293
|
}),
|
|
4293
4294
|
m
|
|
@@ -4399,10 +4400,10 @@ function ti({
|
|
|
4399
4400
|
getLabel: y = (R) => typeof R == "object" && R !== null && "label" in R ? R.label : "",
|
|
4400
4401
|
loading: h = !1,
|
|
4401
4402
|
isOpen: m,
|
|
4402
|
-
onOpenChange:
|
|
4403
|
-
showErrorMessage:
|
|
4404
|
-
clearable:
|
|
4405
|
-
onClear:
|
|
4403
|
+
onOpenChange: I,
|
|
4404
|
+
showErrorMessage: T = !0,
|
|
4405
|
+
clearable: k,
|
|
4406
|
+
onClear: C
|
|
4406
4407
|
}) {
|
|
4407
4408
|
const { items: R } = An(e, y), E = ne(() => t, [t]);
|
|
4408
4409
|
return /* @__PURE__ */ n(
|
|
@@ -4422,10 +4423,10 @@ function ti({
|
|
|
4422
4423
|
placeholder: g,
|
|
4423
4424
|
loading: h,
|
|
4424
4425
|
isOpen: m,
|
|
4425
|
-
onOpenChange:
|
|
4426
|
-
clearable:
|
|
4427
|
-
onClear:
|
|
4428
|
-
children: /* @__PURE__ */
|
|
4426
|
+
onOpenChange: I,
|
|
4427
|
+
clearable: k,
|
|
4428
|
+
onClear: C,
|
|
4429
|
+
children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
4429
4430
|
f && /* @__PURE__ */ n(
|
|
4430
4431
|
_,
|
|
4431
4432
|
{
|
|
@@ -4435,7 +4436,7 @@ function ti({
|
|
|
4435
4436
|
children: f
|
|
4436
4437
|
}
|
|
4437
4438
|
),
|
|
4438
|
-
/* @__PURE__ */
|
|
4439
|
+
/* @__PURE__ */ N(Tn, { children: [
|
|
4439
4440
|
/* @__PURE__ */ n(Mn, { "data-testid": b }),
|
|
4440
4441
|
/* @__PURE__ */ n(Nn, {})
|
|
4441
4442
|
] }),
|
|
@@ -4450,7 +4451,7 @@ function ti({
|
|
|
4450
4451
|
}
|
|
4451
4452
|
) }),
|
|
4452
4453
|
d && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
|
|
4453
|
-
Ht(c) &&
|
|
4454
|
+
Ht(c) && T && /* @__PURE__ */ n(_, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: c })
|
|
4454
4455
|
] })
|
|
4455
4456
|
}
|
|
4456
4457
|
);
|
|
@@ -4525,20 +4526,20 @@ function ri({
|
|
|
4525
4526
|
}
|
|
4526
4527
|
};
|
|
4527
4528
|
t !== void 0 && (y.selectedItem = t), f !== void 0 && (y.inputValue = f);
|
|
4528
|
-
const
|
|
4529
|
+
const C = he(y), { selectItem: h, setInputValue: m, getInputProps: I } = C, T = B(C, ["selectItem", "setInputValue", "getInputProps"]);
|
|
4529
4530
|
x.current = m;
|
|
4530
|
-
const
|
|
4531
|
-
const E =
|
|
4531
|
+
const k = $((R) => {
|
|
4532
|
+
const E = I(R);
|
|
4532
4533
|
return F(w({}, E), {
|
|
4533
4534
|
onBlur: (S) => {
|
|
4534
4535
|
var A;
|
|
4535
4536
|
(A = E.onBlur) == null || A.call(E, S), o == null || o(S);
|
|
4536
4537
|
}
|
|
4537
4538
|
});
|
|
4538
|
-
}, [
|
|
4539
|
-
return F(w({},
|
|
4539
|
+
}, [I, o]);
|
|
4540
|
+
return F(w({}, T), {
|
|
4540
4541
|
selectItem: h,
|
|
4541
|
-
getInputProps:
|
|
4542
|
+
getInputProps: k,
|
|
4542
4543
|
setInputValue: m
|
|
4543
4544
|
});
|
|
4544
4545
|
}
|
|
@@ -4589,14 +4590,14 @@ function ai({
|
|
|
4589
4590
|
disabled: y = !1,
|
|
4590
4591
|
error: h,
|
|
4591
4592
|
placeholder: m = "Поиск...",
|
|
4592
|
-
getLabel:
|
|
4593
|
-
loading:
|
|
4594
|
-
isOpen:
|
|
4595
|
-
onOpenChange:
|
|
4593
|
+
getLabel: I,
|
|
4594
|
+
loading: T = !1,
|
|
4595
|
+
isOpen: k,
|
|
4596
|
+
onOpenChange: C,
|
|
4596
4597
|
onClear: R,
|
|
4597
4598
|
clearable: E
|
|
4598
4599
|
}) {
|
|
4599
|
-
const S = $(
|
|
4600
|
+
const S = $(I, [I]), A = ne(() => {
|
|
4600
4601
|
if (r !== void 0)
|
|
4601
4602
|
return r === null ? null : {
|
|
4602
4603
|
value: r,
|
|
@@ -4610,20 +4611,20 @@ function ai({
|
|
|
4610
4611
|
onBlur: i,
|
|
4611
4612
|
disabled: y,
|
|
4612
4613
|
getLabel: S,
|
|
4613
|
-
isOpen:
|
|
4614
|
-
onOpenChange:
|
|
4614
|
+
isOpen: k,
|
|
4615
|
+
onOpenChange: C,
|
|
4615
4616
|
inputValue: s,
|
|
4616
4617
|
keepOpenOnSelect: l,
|
|
4617
4618
|
inputValueOnSelect: u,
|
|
4618
4619
|
inputValueOnClose: f
|
|
4619
|
-
}), G = ni(z.isOpen,
|
|
4620
|
+
}), G = ni(z.isOpen, T), H = ne(() => ({
|
|
4620
4621
|
// Combobox состояние
|
|
4621
4622
|
getInputProps: z.getInputProps,
|
|
4622
4623
|
getItemProps: z.getItemProps,
|
|
4623
4624
|
getMenuProps: z.getMenuProps,
|
|
4624
4625
|
getToggleButtonProps: z.getToggleButtonProps,
|
|
4625
4626
|
isOpen: z.isOpen,
|
|
4626
|
-
onOpenChange:
|
|
4627
|
+
onOpenChange: C,
|
|
4627
4628
|
selectedItem: z.selectedItem,
|
|
4628
4629
|
setInputValue: z.setInputValue,
|
|
4629
4630
|
selectItem: z.selectItem,
|
|
@@ -4640,7 +4641,7 @@ function ai({
|
|
|
4640
4641
|
error: h,
|
|
4641
4642
|
placeholder: m,
|
|
4642
4643
|
onBlur: i,
|
|
4643
|
-
loading:
|
|
4644
|
+
loading: T,
|
|
4644
4645
|
items: t,
|
|
4645
4646
|
getLabel: S,
|
|
4646
4647
|
onClear: R,
|
|
@@ -4659,7 +4660,7 @@ function ai({
|
|
|
4659
4660
|
i,
|
|
4660
4661
|
t,
|
|
4661
4662
|
S,
|
|
4662
|
-
|
|
4663
|
+
C,
|
|
4663
4664
|
R,
|
|
4664
4665
|
E,
|
|
4665
4666
|
c,
|
|
@@ -4677,7 +4678,7 @@ const Ln = () => {
|
|
|
4677
4678
|
loading: i,
|
|
4678
4679
|
disabled: s
|
|
4679
4680
|
} = gt();
|
|
4680
|
-
return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */
|
|
4681
|
+
return /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 pr-2", children: i ? /* @__PURE__ */ n(je, { size: 12 }) : /* @__PURE__ */ N(be, { children: [
|
|
4681
4682
|
a && /* @__PURE__ */ n(
|
|
4682
4683
|
U,
|
|
4683
4684
|
{
|
|
@@ -4763,27 +4764,27 @@ function oi({
|
|
|
4763
4764
|
return y;
|
|
4764
4765
|
if (_r(y.type, "Item"))
|
|
4765
4766
|
try {
|
|
4766
|
-
const m = y.props,
|
|
4767
|
-
if (
|
|
4768
|
-
const { item:
|
|
4767
|
+
const m = y.props, I = tr(m.option), T = s.get(I);
|
|
4768
|
+
if (T) {
|
|
4769
|
+
const { item: k, index: C } = T, R = i ? i(k.value) : l === I;
|
|
4769
4770
|
return /* @__PURE__ */ n(
|
|
4770
4771
|
mr,
|
|
4771
4772
|
F(w({
|
|
4772
4773
|
isSelected: R,
|
|
4773
4774
|
className: m.className
|
|
4774
4775
|
}, o({
|
|
4775
|
-
item:
|
|
4776
|
-
index:
|
|
4776
|
+
item: k,
|
|
4777
|
+
index: C
|
|
4777
4778
|
})), {
|
|
4778
4779
|
children: typeof m.children == "function" ? m.children(w({
|
|
4779
4780
|
isSelected: R,
|
|
4780
4781
|
className: m.className
|
|
4781
4782
|
}, o({
|
|
4782
|
-
item:
|
|
4783
|
-
index:
|
|
4783
|
+
item: k,
|
|
4784
|
+
index: C
|
|
4784
4785
|
}))) : m.children
|
|
4785
4786
|
}),
|
|
4786
|
-
|
|
4787
|
+
I
|
|
4787
4788
|
);
|
|
4788
4789
|
}
|
|
4789
4790
|
} catch (m) {
|
|
@@ -4869,7 +4870,7 @@ function si({
|
|
|
4869
4870
|
ma(() => {
|
|
4870
4871
|
if (!e.length || !b.current)
|
|
4871
4872
|
return;
|
|
4872
|
-
const
|
|
4873
|
+
const k = () => {
|
|
4873
4874
|
const R = b.current;
|
|
4874
4875
|
if (!R)
|
|
4875
4876
|
return;
|
|
@@ -4886,18 +4887,18 @@ function si({
|
|
|
4886
4887
|
const Y = Math.max(1, H);
|
|
4887
4888
|
h(o ? Math.min(Y, o) : Y);
|
|
4888
4889
|
};
|
|
4889
|
-
|
|
4890
|
-
const
|
|
4891
|
-
return
|
|
4892
|
-
|
|
4890
|
+
k();
|
|
4891
|
+
const C = new ResizeObserver(k);
|
|
4892
|
+
return C.observe(b.current), () => {
|
|
4893
|
+
C.disconnect();
|
|
4893
4894
|
};
|
|
4894
4895
|
}, [r, o, e]);
|
|
4895
|
-
const m = e.slice(0, y),
|
|
4896
|
-
onKeyDown: (
|
|
4897
|
-
!f &&
|
|
4896
|
+
const m = e.slice(0, y), I = Math.max(0, e.length - y), T = d({
|
|
4897
|
+
onKeyDown: (k) => {
|
|
4898
|
+
!f && k.key === "Backspace" && k.currentTarget.value === "" && e.length > 0 && (k.preventDefault(), t(e[e.length - 1])), i == null || i(k);
|
|
4898
4899
|
}
|
|
4899
4900
|
});
|
|
4900
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ N(
|
|
4901
4902
|
"div",
|
|
4902
4903
|
{
|
|
4903
4904
|
ref: b,
|
|
@@ -4906,15 +4907,15 @@ function si({
|
|
|
4906
4907
|
l === "xs" ? "pl-1.5" : "pl-2",
|
|
4907
4908
|
"pr-2"
|
|
4908
4909
|
),
|
|
4909
|
-
onMouseDown: (
|
|
4910
|
+
onMouseDown: (k) => {
|
|
4910
4911
|
var E;
|
|
4911
4912
|
if (f)
|
|
4912
4913
|
return;
|
|
4913
|
-
const
|
|
4914
|
-
(
|
|
4914
|
+
const C = k.target;
|
|
4915
|
+
(C == null ? void 0 : C.closest('button,[role="button"]')) !== null || (k.preventDefault(), (E = x.current) == null || E.focus(), g == null || g(!0));
|
|
4915
4916
|
},
|
|
4916
4917
|
children: [
|
|
4917
|
-
m.map((
|
|
4918
|
+
m.map((k) => /* @__PURE__ */ N(
|
|
4918
4919
|
"div",
|
|
4919
4920
|
{
|
|
4920
4921
|
className: p(
|
|
@@ -4922,18 +4923,18 @@ function si({
|
|
|
4922
4923
|
f && "opacity-60"
|
|
4923
4924
|
),
|
|
4924
4925
|
children: [
|
|
4925
|
-
/* @__PURE__ */ n(_, { variant: "p2", children: r(
|
|
4926
|
+
/* @__PURE__ */ n(_, { variant: "p2", children: r(k) }),
|
|
4926
4927
|
/* @__PURE__ */ n(
|
|
4927
4928
|
"div",
|
|
4928
4929
|
{
|
|
4929
|
-
onPointerDown: (
|
|
4930
|
-
f || (
|
|
4930
|
+
onPointerDown: (C) => {
|
|
4931
|
+
f || (C.preventDefault(), C.stopPropagation());
|
|
4931
4932
|
},
|
|
4932
|
-
onMouseDown: (
|
|
4933
|
-
f || (
|
|
4933
|
+
onMouseDown: (C) => {
|
|
4934
|
+
f || (C.preventDefault(), C.stopPropagation());
|
|
4934
4935
|
},
|
|
4935
|
-
onClick: (
|
|
4936
|
-
f || (
|
|
4936
|
+
onClick: (C) => {
|
|
4937
|
+
f || (C.preventDefault(), C.stopPropagation(), t(k));
|
|
4937
4938
|
},
|
|
4938
4939
|
className: p(
|
|
4939
4940
|
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
@@ -4947,9 +4948,9 @@ function si({
|
|
|
4947
4948
|
)
|
|
4948
4949
|
]
|
|
4949
4950
|
},
|
|
4950
|
-
a(
|
|
4951
|
+
a(k)
|
|
4951
4952
|
)),
|
|
4952
|
-
|
|
4953
|
+
I > 0 && /* @__PURE__ */ n(
|
|
4953
4954
|
"div",
|
|
4954
4955
|
{
|
|
4955
4956
|
className: p(
|
|
@@ -4957,31 +4958,31 @@ function si({
|
|
|
4957
4958
|
),
|
|
4958
4959
|
role: "button",
|
|
4959
4960
|
tabIndex: 0,
|
|
4960
|
-
onPointerDown: (
|
|
4961
|
-
f || (
|
|
4961
|
+
onPointerDown: (k) => {
|
|
4962
|
+
f || (k.preventDefault(), k.stopPropagation());
|
|
4962
4963
|
},
|
|
4963
|
-
onMouseDown: (
|
|
4964
|
-
f || (
|
|
4964
|
+
onMouseDown: (k) => {
|
|
4965
|
+
f || (k.preventDefault(), k.stopPropagation());
|
|
4965
4966
|
},
|
|
4966
|
-
onClick: (
|
|
4967
|
-
var
|
|
4968
|
-
f || (
|
|
4967
|
+
onClick: (k) => {
|
|
4968
|
+
var C;
|
|
4969
|
+
f || (k.preventDefault(), k.stopPropagation(), (C = x.current) == null || C.focus(), g == null || g(!0));
|
|
4969
4970
|
},
|
|
4970
|
-
children: /* @__PURE__ */
|
|
4971
|
+
children: /* @__PURE__ */ N(_, { variant: "p2", children: [
|
|
4971
4972
|
"+",
|
|
4972
|
-
|
|
4973
|
+
I
|
|
4973
4974
|
] })
|
|
4974
4975
|
}
|
|
4975
4976
|
),
|
|
4976
4977
|
/* @__PURE__ */ n(
|
|
4977
4978
|
"input",
|
|
4978
4979
|
F(w({
|
|
4979
|
-
ref: (
|
|
4980
|
-
x.current =
|
|
4980
|
+
ref: (k) => {
|
|
4981
|
+
x.current = k;
|
|
4981
4982
|
}
|
|
4982
|
-
},
|
|
4983
|
+
}, T), {
|
|
4983
4984
|
"data-testid": s,
|
|
4984
|
-
value:
|
|
4985
|
+
value: T.value || "",
|
|
4985
4986
|
disabled: f,
|
|
4986
4987
|
placeholder: e.length > 0 ? "" : c,
|
|
4987
4988
|
className: p(
|
|
@@ -5013,10 +5014,10 @@ function li({
|
|
|
5013
5014
|
getLabel: y = (A) => typeof A == "object" && A !== null && "label" in A ? A.label : "",
|
|
5014
5015
|
getKey: h = ii,
|
|
5015
5016
|
loading: m = !1,
|
|
5016
|
-
onInputKeyDown:
|
|
5017
|
-
isOpen:
|
|
5018
|
-
onOpenChange:
|
|
5019
|
-
showErrorMessage:
|
|
5017
|
+
onInputKeyDown: I,
|
|
5018
|
+
isOpen: T,
|
|
5019
|
+
onOpenChange: k,
|
|
5020
|
+
showErrorMessage: C = !0,
|
|
5020
5021
|
clearable: R = !0,
|
|
5021
5022
|
onClear: E,
|
|
5022
5023
|
maxTags: S = 4
|
|
@@ -5030,8 +5031,8 @@ function li({
|
|
|
5030
5031
|
}, [h, r, z]), W = $(() => {
|
|
5031
5032
|
r == null || r([]), E == null || E();
|
|
5032
5033
|
}, [r, E]), V = $((j) => {
|
|
5033
|
-
|
|
5034
|
-
}, [
|
|
5034
|
+
k == null || k(j), j || (P(""), a == null || a(""));
|
|
5035
|
+
}, [k, a]), Y = $((j) => {
|
|
5035
5036
|
P(j), a == null || a(j);
|
|
5036
5037
|
}, [a]);
|
|
5037
5038
|
return /* @__PURE__ */ n(
|
|
@@ -5052,7 +5053,7 @@ function li({
|
|
|
5052
5053
|
error: c,
|
|
5053
5054
|
placeholder: g,
|
|
5054
5055
|
loading: m,
|
|
5055
|
-
isOpen:
|
|
5056
|
+
isOpen: T,
|
|
5056
5057
|
onOpenChange: V,
|
|
5057
5058
|
clearable: R,
|
|
5058
5059
|
onClear: W,
|
|
@@ -5061,7 +5062,7 @@ function li({
|
|
|
5061
5062
|
inputValueOnClose: "preserve",
|
|
5062
5063
|
isItemSelected: (j) => G.has(h(j)),
|
|
5063
5064
|
hasSelection: z.length > 0,
|
|
5064
|
-
children: /* @__PURE__ */
|
|
5065
|
+
children: /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
5065
5066
|
f && /* @__PURE__ */ n(
|
|
5066
5067
|
_,
|
|
5067
5068
|
{
|
|
@@ -5071,7 +5072,7 @@ function li({
|
|
|
5071
5072
|
children: f
|
|
5072
5073
|
}
|
|
5073
5074
|
),
|
|
5074
|
-
/* @__PURE__ */
|
|
5075
|
+
/* @__PURE__ */ N(Pn, { children: [
|
|
5075
5076
|
/* @__PURE__ */ n(
|
|
5076
5077
|
si,
|
|
5077
5078
|
{
|
|
@@ -5080,7 +5081,7 @@ function li({
|
|
|
5080
5081
|
getLabel: y,
|
|
5081
5082
|
getKey: h,
|
|
5082
5083
|
maxTags: S,
|
|
5083
|
-
onInputKeyDown:
|
|
5084
|
+
onInputKeyDown: I,
|
|
5084
5085
|
"data-testid": b
|
|
5085
5086
|
}
|
|
5086
5087
|
),
|
|
@@ -5097,7 +5098,7 @@ function li({
|
|
|
5097
5098
|
}
|
|
5098
5099
|
) }),
|
|
5099
5100
|
d && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
|
|
5100
|
-
Ht(c) &&
|
|
5101
|
+
Ht(c) && C && /* @__PURE__ */ n(_, { variant: "p2", className: "mt-1.5", textColor: "destructive", children: c })
|
|
5101
5102
|
] })
|
|
5102
5103
|
}
|
|
5103
5104
|
);
|
|
@@ -5113,7 +5114,7 @@ const di = {
|
|
|
5113
5114
|
inactiveClassName: "bg-default opacity-40"
|
|
5114
5115
|
};
|
|
5115
5116
|
function _n(e) {
|
|
5116
|
-
const
|
|
5117
|
+
const T = e || {}, { indicators: t, defaultActive: r = 0 } = T, a = B(T, ["indicators", "defaultActive"]), o = w({
|
|
5117
5118
|
align: "start",
|
|
5118
5119
|
loop: !1,
|
|
5119
5120
|
slidesToScroll: 1,
|
|
@@ -5127,14 +5128,14 @@ function _n(e) {
|
|
|
5127
5128
|
l.off("select", b), l.off("reInit", b);
|
|
5128
5129
|
};
|
|
5129
5130
|
}, [l, b, r]);
|
|
5130
|
-
const y = $((
|
|
5131
|
-
l && l.scrollTo(
|
|
5131
|
+
const y = $((k) => {
|
|
5132
|
+
l && l.scrollTo(k);
|
|
5132
5133
|
}, [l]), h = $(() => {
|
|
5133
5134
|
l && l.scrollNext();
|
|
5134
5135
|
}, [l]), m = $(() => {
|
|
5135
5136
|
l && l.scrollPrev();
|
|
5136
|
-
}, [l]),
|
|
5137
|
-
y(
|
|
5137
|
+
}, [l]), I = $((k) => {
|
|
5138
|
+
y(k);
|
|
5138
5139
|
}, [y]);
|
|
5139
5140
|
return {
|
|
5140
5141
|
active: u,
|
|
@@ -5144,7 +5145,7 @@ function _n(e) {
|
|
|
5144
5145
|
next: h,
|
|
5145
5146
|
prev: m,
|
|
5146
5147
|
scrollTo: y,
|
|
5147
|
-
onChange:
|
|
5148
|
+
onChange: I,
|
|
5148
5149
|
canScrollNext: c,
|
|
5149
5150
|
canScrollPrev: g
|
|
5150
5151
|
};
|
|
@@ -5179,7 +5180,7 @@ function fi({
|
|
|
5179
5180
|
textClassName: a
|
|
5180
5181
|
}) {
|
|
5181
5182
|
const { active: o } = Ut(), i = e[o] || {};
|
|
5182
|
-
return /* @__PURE__ */
|
|
5183
|
+
return /* @__PURE__ */ N("div", { className: p(t), children: [
|
|
5183
5184
|
i.title && /* @__PURE__ */ n("div", { className: p(r), children: i.title }),
|
|
5184
5185
|
i.text && /* @__PURE__ */ n("div", { className: p(a), children: i.text })
|
|
5185
5186
|
] });
|
|
@@ -5190,7 +5191,7 @@ function mi({
|
|
|
5190
5191
|
titleClassName: r,
|
|
5191
5192
|
textClassName: a
|
|
5192
5193
|
}) {
|
|
5193
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ N("div", { className: p(t), children: [
|
|
5194
5195
|
e.title && /* @__PURE__ */ n("div", { className: p(r), children: e.title }),
|
|
5195
5196
|
e.text && /* @__PURE__ */ n("div", { className: p(a), children: e.text })
|
|
5196
5197
|
] });
|
|
@@ -5263,7 +5264,7 @@ function pi({
|
|
|
5263
5264
|
children: t
|
|
5264
5265
|
}
|
|
5265
5266
|
);
|
|
5266
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ N(
|
|
5267
5268
|
"div",
|
|
5268
5269
|
{
|
|
5269
5270
|
className: p(
|
|
@@ -5316,7 +5317,7 @@ function hi({
|
|
|
5316
5317
|
children: i
|
|
5317
5318
|
}
|
|
5318
5319
|
);
|
|
5319
|
-
return /* @__PURE__ */
|
|
5320
|
+
return /* @__PURE__ */ N(
|
|
5320
5321
|
"div",
|
|
5321
5322
|
{
|
|
5322
5323
|
className: p(
|
|
@@ -5464,8 +5465,8 @@ function Ql(g) {
|
|
|
5464
5465
|
"hideDisabledButtons"
|
|
5465
5466
|
]);
|
|
5466
5467
|
const b = !!(i || s);
|
|
5467
|
-
return /* @__PURE__ */
|
|
5468
|
-
/* @__PURE__ */
|
|
5468
|
+
return /* @__PURE__ */ N(Et.Root, { options: r, className: p("group", a), children: [
|
|
5469
|
+
/* @__PURE__ */ N("div", { className: "relative", children: [
|
|
5469
5470
|
/* @__PURE__ */ n(
|
|
5470
5471
|
Et.Items,
|
|
5471
5472
|
w({
|
|
@@ -5496,7 +5497,7 @@ function Xl({
|
|
|
5496
5497
|
className: o
|
|
5497
5498
|
}) {
|
|
5498
5499
|
const i = _n(t);
|
|
5499
|
-
return /* @__PURE__ */
|
|
5500
|
+
return /* @__PURE__ */ N("div", { className: p("relative w-full", o), children: [
|
|
5500
5501
|
r(i, e),
|
|
5501
5502
|
a && a(i, e)
|
|
5502
5503
|
] });
|
|
@@ -5584,7 +5585,7 @@ function zt(i) {
|
|
|
5584
5585
|
IconRight: () => /* @__PURE__ */ n(U, { icon: "ArrowRightIcon" }),
|
|
5585
5586
|
CaptionLabel: ({ displayMonth: l }) => {
|
|
5586
5587
|
const u = a ? Re(l, "MMM", { locale: a }) : l.toLocaleString("ru-RU", { month: "long" }).slice(0, 3), f = l.getFullYear();
|
|
5587
|
-
return /* @__PURE__ */
|
|
5588
|
+
return /* @__PURE__ */ N(_, { variant: "p2", weight: "medium", className: "font-graphik", children: [
|
|
5588
5589
|
u,
|
|
5589
5590
|
" ",
|
|
5590
5591
|
f
|
|
@@ -5838,7 +5839,7 @@ function ed() {
|
|
|
5838
5839
|
}
|
|
5839
5840
|
function Ei(e) {
|
|
5840
5841
|
var R;
|
|
5841
|
-
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, u] = v.useState(!1), [f, c] = v.useState(e.hideFooter), [d, g] = v.useState(!1), [x, b] = v.useState(e.width), y = v.useContext(vt), h = (R = y == null ? void 0 : y.nextBaseZIndex) != null ? R : e.baseZIndex, m = h + 1,
|
|
5842
|
+
const [t, r] = v.useState(null), [a, o] = v.useState(e.isVisibleClose), [i, s] = v.useState(!1), [l, u] = v.useState(!1), [f, c] = v.useState(e.hideFooter), [d, g] = v.useState(!1), [x, b] = v.useState(e.width), y = v.useContext(vt), h = (R = y == null ? void 0 : y.nextBaseZIndex) != null ? R : e.baseZIndex, m = h + 1, I = h + 2, T = h + 3, k = v.useMemo(() => !l && i ? "top" : "none", [l, i]), C = v.useMemo(() => l && i ? "bottom" : "none", [l, i]);
|
|
5842
5843
|
return v.useEffect(() => {
|
|
5843
5844
|
b(e.width);
|
|
5844
5845
|
}, [e.width]), v.useEffect(() => {
|
|
@@ -5861,8 +5862,8 @@ function Ei(e) {
|
|
|
5861
5862
|
contentElement: t,
|
|
5862
5863
|
hasOverflow: i,
|
|
5863
5864
|
scrollStart: l,
|
|
5864
|
-
shadowFooter:
|
|
5865
|
-
shadowHeader:
|
|
5865
|
+
shadowFooter: k,
|
|
5866
|
+
shadowHeader: C,
|
|
5866
5867
|
isHideFooter: f,
|
|
5867
5868
|
isHideTitle: d,
|
|
5868
5869
|
isVisibleClose: a,
|
|
@@ -5876,8 +5877,8 @@ function Ei(e) {
|
|
|
5876
5877
|
setContentElement: r,
|
|
5877
5878
|
baseZIndex: h,
|
|
5878
5879
|
overlayZIndex: m,
|
|
5879
|
-
containerZIndex:
|
|
5880
|
-
nextBaseZIndex:
|
|
5880
|
+
containerZIndex: I,
|
|
5881
|
+
nextBaseZIndex: T
|
|
5881
5882
|
};
|
|
5882
5883
|
}
|
|
5883
5884
|
const Ai = {
|
|
@@ -5939,7 +5940,7 @@ function Li(s) {
|
|
|
5939
5940
|
const { TopHeaderTeleporter: u, setHasTopHeader: f } = $t(), c = v.useContext(vt);
|
|
5940
5941
|
return v.useEffect(() => (f(!0), () => {
|
|
5941
5942
|
f(!1);
|
|
5942
|
-
}), [f]), /* @__PURE__ */ n(u.Source, { children: /* @__PURE__ */
|
|
5943
|
+
}), [f]), /* @__PURE__ */ n(u.Source, { children: /* @__PURE__ */ N(
|
|
5943
5944
|
"div",
|
|
5944
5945
|
F(w({}, i), {
|
|
5945
5946
|
"data-testid": a,
|
|
@@ -5950,7 +5951,7 @@ function Li(s) {
|
|
|
5950
5951
|
e
|
|
5951
5952
|
),
|
|
5952
5953
|
children: [
|
|
5953
|
-
/* @__PURE__ */
|
|
5954
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-2.5", children: [
|
|
5954
5955
|
t && /* @__PURE__ */ n(_, { as: "p", variant: "p1", weight: "normal", children: t }),
|
|
5955
5956
|
r && /* @__PURE__ */ n(_, { as: "div", variant: "h1", children: r })
|
|
5956
5957
|
] }),
|
|
@@ -5967,7 +5968,7 @@ function Li(s) {
|
|
|
5967
5968
|
}
|
|
5968
5969
|
function Pi(e) {
|
|
5969
5970
|
const { ContentTeleporter: t } = $t(), r = v.useContext(vt), a = r == null ? void 0 : r.statusImage;
|
|
5970
|
-
return a ? /* @__PURE__ */
|
|
5971
|
+
return a ? /* @__PURE__ */ N(t.Source, { children: [
|
|
5971
5972
|
/* @__PURE__ */ n(
|
|
5972
5973
|
de.Close,
|
|
5973
5974
|
{
|
|
@@ -6032,11 +6033,11 @@ function de(b) {
|
|
|
6032
6033
|
TopHeaderTeleporter: Mt()
|
|
6033
6034
|
}),
|
|
6034
6035
|
[]
|
|
6035
|
-
),
|
|
6036
|
+
), I = m.TitleTeleporter.useTargetRef(), T = m.FooterTeleporter.useTargetRef(), k = m.ContentTeleporter.useTargetRef(), C = m.TopHeaderTeleporter.useTargetRef(), [R, E] = v.useState(!1), S = R ? /* @__PURE__ */ n("div", { className: "-mx-4 flex min-h-0 grow-1 flex-col bg-[#E5EEFF] md:-mx-6", children: /* @__PURE__ */ n(
|
|
6036
6037
|
Ye,
|
|
6037
6038
|
{
|
|
6038
6039
|
ref: (A) => {
|
|
6039
|
-
h.setContentElement(A),
|
|
6040
|
+
h.setContentElement(A), k(A);
|
|
6040
6041
|
},
|
|
6041
6042
|
className: p(
|
|
6042
6043
|
"min-h-0 rounded-t-[10px] bg-white px-4 pt-4 md:pt-6 md:px-6",
|
|
@@ -6047,7 +6048,7 @@ function de(b) {
|
|
|
6047
6048
|
Ye,
|
|
6048
6049
|
{
|
|
6049
6050
|
ref: (A) => {
|
|
6050
|
-
h.setContentElement(A),
|
|
6051
|
+
h.setContentElement(A), k(A);
|
|
6051
6052
|
},
|
|
6052
6053
|
className: p(e == null ? void 0 : e.content)
|
|
6053
6054
|
}
|
|
@@ -6058,16 +6059,16 @@ function de(b) {
|
|
|
6058
6059
|
value: F(w({}, m), {
|
|
6059
6060
|
setHasTopHeader: E
|
|
6060
6061
|
}),
|
|
6061
|
-
children: /* @__PURE__ */
|
|
6062
|
+
children: /* @__PURE__ */ N(vt.Provider, { value: h, children: [
|
|
6062
6063
|
r && /* @__PURE__ */ n(Xe, { children: r }),
|
|
6063
|
-
/* @__PURE__ */
|
|
6064
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
6064
6065
|
i && /* @__PURE__ */ n(
|
|
6065
6066
|
qe,
|
|
6066
6067
|
{
|
|
6067
6068
|
style: { zIndex: h.overlayZIndex }
|
|
6068
6069
|
}
|
|
6069
6070
|
),
|
|
6070
|
-
/* @__PURE__ */
|
|
6071
|
+
/* @__PURE__ */ N(
|
|
6071
6072
|
et,
|
|
6072
6073
|
{
|
|
6073
6074
|
style: { zIndex: h.containerZIndex },
|
|
@@ -6079,8 +6080,8 @@ function de(b) {
|
|
|
6079
6080
|
dataTestId: g,
|
|
6080
6081
|
padding: d ? "none" : "md",
|
|
6081
6082
|
children: [
|
|
6082
|
-
/* @__PURE__ */ n("div", { ref:
|
|
6083
|
-
!d && !R && /* @__PURE__ */
|
|
6083
|
+
/* @__PURE__ */ n("div", { ref: C }),
|
|
6084
|
+
!d && !R && /* @__PURE__ */ N(
|
|
6084
6085
|
jn,
|
|
6085
6086
|
{
|
|
6086
6087
|
shadow: h.shadowHeader,
|
|
@@ -6089,7 +6090,7 @@ function de(b) {
|
|
|
6089
6090
|
!h.isHideTitle && /* @__PURE__ */ n(
|
|
6090
6091
|
gr,
|
|
6091
6092
|
{
|
|
6092
|
-
ref:
|
|
6093
|
+
ref: I,
|
|
6093
6094
|
className: p(e == null ? void 0 : e.title)
|
|
6094
6095
|
}
|
|
6095
6096
|
),
|
|
@@ -6107,7 +6108,7 @@ function de(b) {
|
|
|
6107
6108
|
br,
|
|
6108
6109
|
{
|
|
6109
6110
|
shadow: h.shadowFooter,
|
|
6110
|
-
ref:
|
|
6111
|
+
ref: T,
|
|
6111
6112
|
className: p(
|
|
6112
6113
|
d && "mx-0 pb-4 md:pb-6 md:px-12",
|
|
6113
6114
|
e == null ? void 0 : e.footer
|
|
@@ -6157,11 +6158,11 @@ function td({
|
|
|
6157
6158
|
v.useEffect(() => {
|
|
6158
6159
|
e !== x && b(e);
|
|
6159
6160
|
}, [e]);
|
|
6160
|
-
const
|
|
6161
|
-
|
|
6162
|
-
},
|
|
6161
|
+
const I = (C) => {
|
|
6162
|
+
C && (b(C), t == null || t(C), y === "mobile" && m(!1));
|
|
6163
|
+
}, T = () => {
|
|
6163
6164
|
b(void 0), t == null || t(void 0), c == null || c();
|
|
6164
|
-
},
|
|
6165
|
+
}, k = () => {
|
|
6165
6166
|
switch (i) {
|
|
6166
6167
|
case "md":
|
|
6167
6168
|
return "rounded-lg";
|
|
@@ -6171,7 +6172,7 @@ function td({
|
|
|
6171
6172
|
return "rounded-lg";
|
|
6172
6173
|
}
|
|
6173
6174
|
};
|
|
6174
|
-
return /* @__PURE__ */
|
|
6175
|
+
return /* @__PURE__ */ N("div", { className: o, children: [
|
|
6175
6176
|
u && /* @__PURE__ */ n(
|
|
6176
6177
|
_,
|
|
6177
6178
|
{
|
|
@@ -6184,7 +6185,7 @@ function td({
|
|
|
6184
6185
|
children: u
|
|
6185
6186
|
}
|
|
6186
6187
|
),
|
|
6187
|
-
y === "mobile" ? /* @__PURE__ */
|
|
6188
|
+
y === "mobile" ? /* @__PURE__ */ N(
|
|
6188
6189
|
de,
|
|
6189
6190
|
{
|
|
6190
6191
|
open: h,
|
|
@@ -6201,7 +6202,7 @@ function td({
|
|
|
6201
6202
|
className: p(
|
|
6202
6203
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6203
6204
|
i === "lg" ? "px-3" : "px-2.5",
|
|
6204
|
-
|
|
6205
|
+
k(),
|
|
6205
6206
|
{
|
|
6206
6207
|
"shadow-focus border-primary border-1 border-solid": h
|
|
6207
6208
|
},
|
|
@@ -6214,7 +6215,7 @@ function td({
|
|
|
6214
6215
|
s != null ? "hover:text-destructive" : ""
|
|
6215
6216
|
),
|
|
6216
6217
|
"data-testid": g,
|
|
6217
|
-
children: /* @__PURE__ */
|
|
6218
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6218
6219
|
/* @__PURE__ */ n(
|
|
6219
6220
|
"div",
|
|
6220
6221
|
{
|
|
@@ -6227,7 +6228,7 @@ function td({
|
|
|
6227
6228
|
children: x ? Re(x, "dd.MM.yyyy", { locale: Ne }) : a
|
|
6228
6229
|
}
|
|
6229
6230
|
),
|
|
6230
|
-
/* @__PURE__ */
|
|
6231
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
6231
6232
|
/* @__PURE__ */ n(
|
|
6232
6233
|
U,
|
|
6233
6234
|
{
|
|
@@ -6264,7 +6265,7 @@ function td({
|
|
|
6264
6265
|
{
|
|
6265
6266
|
mode: "single",
|
|
6266
6267
|
selected: x,
|
|
6267
|
-
onSelect:
|
|
6268
|
+
onSelect: I,
|
|
6268
6269
|
initialFocus: !0,
|
|
6269
6270
|
locale: Ne,
|
|
6270
6271
|
className: "font-graphik mt-3",
|
|
@@ -6275,7 +6276,7 @@ function td({
|
|
|
6275
6276
|
f && /* @__PURE__ */ n(de.Footer, { children: /* @__PURE__ */ n("div", { className: "flex h-[64px] w-full items-center justify-center", children: /* @__PURE__ */ n(
|
|
6276
6277
|
ee,
|
|
6277
6278
|
{
|
|
6278
|
-
onClick:
|
|
6279
|
+
onClick: T,
|
|
6279
6280
|
variant: "text",
|
|
6280
6281
|
disabled: !x,
|
|
6281
6282
|
className: "w-full",
|
|
@@ -6284,7 +6285,7 @@ function td({
|
|
|
6284
6285
|
) }) })
|
|
6285
6286
|
]
|
|
6286
6287
|
}
|
|
6287
|
-
) : /* @__PURE__ */
|
|
6288
|
+
) : /* @__PURE__ */ N(
|
|
6288
6289
|
Je,
|
|
6289
6290
|
{
|
|
6290
6291
|
open: h,
|
|
@@ -6299,7 +6300,7 @@ function td({
|
|
|
6299
6300
|
size: i,
|
|
6300
6301
|
className: p(
|
|
6301
6302
|
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
6302
|
-
|
|
6303
|
+
k(),
|
|
6303
6304
|
i === "lg" ? "px-3" : "px-2.5",
|
|
6304
6305
|
{
|
|
6305
6306
|
"shadow-focus border-primary border-1 border-solid": h
|
|
@@ -6313,7 +6314,7 @@ function td({
|
|
|
6313
6314
|
s != null ? "hover:text-destructive" : ""
|
|
6314
6315
|
),
|
|
6315
6316
|
"data-testid": g,
|
|
6316
|
-
children: /* @__PURE__ */
|
|
6317
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6317
6318
|
/* @__PURE__ */ n(
|
|
6318
6319
|
"div",
|
|
6319
6320
|
{
|
|
@@ -6325,7 +6326,7 @@ function td({
|
|
|
6325
6326
|
children: x ? Re(x, "dd.MM.yyyy", { locale: Ne }) : a
|
|
6326
6327
|
}
|
|
6327
6328
|
),
|
|
6328
|
-
/* @__PURE__ */
|
|
6329
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1.5", children: [
|
|
6329
6330
|
/* @__PURE__ */ n(
|
|
6330
6331
|
U,
|
|
6331
6332
|
{
|
|
@@ -6352,7 +6353,7 @@ function td({
|
|
|
6352
6353
|
] })
|
|
6353
6354
|
}
|
|
6354
6355
|
) }),
|
|
6355
|
-
/* @__PURE__ */
|
|
6356
|
+
/* @__PURE__ */ N(
|
|
6356
6357
|
Ge,
|
|
6357
6358
|
{
|
|
6358
6359
|
className: "w-auto rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
@@ -6364,7 +6365,7 @@ function td({
|
|
|
6364
6365
|
{
|
|
6365
6366
|
mode: "single",
|
|
6366
6367
|
selected: x,
|
|
6367
|
-
onSelect:
|
|
6368
|
+
onSelect: I,
|
|
6368
6369
|
initialFocus: !0,
|
|
6369
6370
|
locale: Ne,
|
|
6370
6371
|
className: "font-graphik",
|
|
@@ -6374,7 +6375,7 @@ function td({
|
|
|
6374
6375
|
f && /* @__PURE__ */ n("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ n(
|
|
6375
6376
|
ee,
|
|
6376
6377
|
{
|
|
6377
|
-
onClick:
|
|
6378
|
+
onClick: T,
|
|
6378
6379
|
variant: "text",
|
|
6379
6380
|
size: "sm",
|
|
6380
6381
|
className: "w-full",
|
|
@@ -6557,7 +6558,7 @@ function rd(y) {
|
|
|
6557
6558
|
"disabledDays",
|
|
6558
6559
|
"data-testid"
|
|
6559
6560
|
]);
|
|
6560
|
-
const [m,
|
|
6561
|
+
const [m, I] = v.useState(t), [T, k] = v.useState(!1), C = Yt(), R = zi[r], E = $i(r), S = {
|
|
6561
6562
|
from: (o == null ? void 0 : o.from) || R.placeholder,
|
|
6562
6563
|
to: (o == null ? void 0 : o.to) || R.placeholder
|
|
6563
6564
|
}, A = v.useMemo(() => {
|
|
@@ -6570,12 +6571,12 @@ function rd(y) {
|
|
|
6570
6571
|
};
|
|
6571
6572
|
}, [i]), { hasAnyError: z, hasFromError: G, hasToError: H, getErrorText: P } = A;
|
|
6572
6573
|
v.useEffect(() => {
|
|
6573
|
-
|
|
6574
|
+
I(t);
|
|
6574
6575
|
}, [t]);
|
|
6575
6576
|
const D = (V) => {
|
|
6576
|
-
|
|
6577
|
+
I(V), a == null || a(V), V != null && V.from && (V != null && V.to) && C === "mobile" && k(!1);
|
|
6577
6578
|
}, O = () => {
|
|
6578
|
-
|
|
6579
|
+
I(void 0), a == null || a(void 0), d == null || d();
|
|
6579
6580
|
}, W = () => {
|
|
6580
6581
|
switch (u) {
|
|
6581
6582
|
case "md":
|
|
@@ -6586,7 +6587,7 @@ function rd(y) {
|
|
|
6586
6587
|
return "rounded-lg";
|
|
6587
6588
|
}
|
|
6588
6589
|
};
|
|
6589
|
-
return /* @__PURE__ */
|
|
6590
|
+
return /* @__PURE__ */ N("div", F(w({ className: e }, b), { children: [
|
|
6590
6591
|
l && /* @__PURE__ */ n(
|
|
6591
6592
|
_,
|
|
6592
6593
|
{
|
|
@@ -6599,11 +6600,11 @@ function rd(y) {
|
|
|
6599
6600
|
children: l
|
|
6600
6601
|
}
|
|
6601
6602
|
),
|
|
6602
|
-
|
|
6603
|
+
C === "mobile" ? /* @__PURE__ */ N(
|
|
6603
6604
|
de,
|
|
6604
6605
|
{
|
|
6605
|
-
open:
|
|
6606
|
-
onOpenChange: f ? void 0 :
|
|
6606
|
+
open: T,
|
|
6607
|
+
onOpenChange: f ? void 0 : k,
|
|
6607
6608
|
width: "md",
|
|
6608
6609
|
trigger: /* @__PURE__ */ n(
|
|
6609
6610
|
ee,
|
|
@@ -6618,24 +6619,24 @@ function rd(y) {
|
|
|
6618
6619
|
u === "lg" ? "px-3" : "px-2.5",
|
|
6619
6620
|
z() ? "hover:text-destructive" : "",
|
|
6620
6621
|
{
|
|
6621
|
-
"shadow-focus border-primary border-1 border-solid":
|
|
6622
|
+
"shadow-focus border-primary border-1 border-solid": T
|
|
6622
6623
|
},
|
|
6623
6624
|
{
|
|
6624
|
-
"shadow-error border-destructive border-1 border-solid": z() &&
|
|
6625
|
+
"shadow-error border-destructive border-1 border-solid": z() && T
|
|
6625
6626
|
},
|
|
6626
6627
|
{
|
|
6627
6628
|
"bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive": z()
|
|
6628
6629
|
}
|
|
6629
6630
|
),
|
|
6630
6631
|
"data-testid": x,
|
|
6631
|
-
children: /* @__PURE__ */
|
|
6632
|
-
/* @__PURE__ */
|
|
6632
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6633
|
+
/* @__PURE__ */ N(
|
|
6633
6634
|
"div",
|
|
6634
6635
|
{
|
|
6635
6636
|
className: p(
|
|
6636
6637
|
"flex w-full items-center justify-between",
|
|
6637
6638
|
m ? "text-foreground" : "text-muted-foreground",
|
|
6638
|
-
|
|
6639
|
+
T && !f && "!text-default"
|
|
6639
6640
|
),
|
|
6640
6641
|
children: [
|
|
6641
6642
|
/* @__PURE__ */ n(
|
|
@@ -6666,14 +6667,14 @@ function rd(y) {
|
|
|
6666
6667
|
]
|
|
6667
6668
|
}
|
|
6668
6669
|
),
|
|
6669
|
-
/* @__PURE__ */
|
|
6670
|
+
/* @__PURE__ */ N("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
6670
6671
|
/* @__PURE__ */ n(
|
|
6671
6672
|
U,
|
|
6672
6673
|
{
|
|
6673
6674
|
className: p(
|
|
6674
6675
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6675
6676
|
f && "text-muted-foreground",
|
|
6676
|
-
|
|
6677
|
+
T && !f && !z() && "!text-default",
|
|
6677
6678
|
m && (m.from || m.to) && !f && !z() && "text-default",
|
|
6678
6679
|
z() && "!group-focus-within:!text-destructive !text-destructive"
|
|
6679
6680
|
),
|
|
@@ -6724,7 +6725,7 @@ function rd(y) {
|
|
|
6724
6725
|
) }) })
|
|
6725
6726
|
]
|
|
6726
6727
|
}
|
|
6727
|
-
) : /* @__PURE__ */
|
|
6728
|
+
) : /* @__PURE__ */ N(Je, { open: T, onOpenChange: k, children: [
|
|
6728
6729
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
6729
6730
|
ee,
|
|
6730
6731
|
{
|
|
@@ -6738,24 +6739,24 @@ function rd(y) {
|
|
|
6738
6739
|
u === "lg" ? "px-3" : "px-2.5",
|
|
6739
6740
|
z() ? "hover:text-destructive" : "",
|
|
6740
6741
|
{
|
|
6741
|
-
"shadow-focus border-primary border-1 border-solid":
|
|
6742
|
+
"shadow-focus border-primary border-1 border-solid": T
|
|
6742
6743
|
},
|
|
6743
6744
|
{
|
|
6744
|
-
"shadow-error border-destructive border-1 border-solid": z() &&
|
|
6745
|
+
"shadow-error border-destructive border-1 border-solid": z() && T
|
|
6745
6746
|
},
|
|
6746
6747
|
{
|
|
6747
6748
|
"bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive": z()
|
|
6748
6749
|
}
|
|
6749
6750
|
),
|
|
6750
6751
|
"data-testid": x,
|
|
6751
|
-
children: /* @__PURE__ */
|
|
6752
|
-
/* @__PURE__ */
|
|
6752
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
6753
|
+
/* @__PURE__ */ N(
|
|
6753
6754
|
"div",
|
|
6754
6755
|
{
|
|
6755
6756
|
className: p(
|
|
6756
6757
|
"flex w-full items-center justify-between",
|
|
6757
6758
|
m ? "text-foreground" : "text-muted-foreground",
|
|
6758
|
-
|
|
6759
|
+
T && !f && "!text-default"
|
|
6759
6760
|
),
|
|
6760
6761
|
children: [
|
|
6761
6762
|
/* @__PURE__ */ n(
|
|
@@ -6788,14 +6789,14 @@ function rd(y) {
|
|
|
6788
6789
|
]
|
|
6789
6790
|
}
|
|
6790
6791
|
),
|
|
6791
|
-
/* @__PURE__ */
|
|
6792
|
+
/* @__PURE__ */ N("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
6792
6793
|
/* @__PURE__ */ n(
|
|
6793
6794
|
U,
|
|
6794
6795
|
{
|
|
6795
6796
|
className: p(
|
|
6796
6797
|
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
6797
6798
|
f && "text-muted-foreground",
|
|
6798
|
-
|
|
6799
|
+
T && !f && !z() && "!text-default",
|
|
6799
6800
|
m && (m.from || m.to) && !f && !z() && "text-default",
|
|
6800
6801
|
z() && "!group-focus-within:!text-destructive !text-destructive"
|
|
6801
6802
|
),
|
|
@@ -6815,7 +6816,7 @@ function rd(y) {
|
|
|
6815
6816
|
] })
|
|
6816
6817
|
}
|
|
6817
6818
|
) }),
|
|
6818
|
-
/* @__PURE__ */
|
|
6819
|
+
/* @__PURE__ */ N(
|
|
6819
6820
|
Ge,
|
|
6820
6821
|
{
|
|
6821
6822
|
className: "w-screen rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] sm:w-auto",
|
|
@@ -6886,15 +6887,15 @@ const Un = v.forwardRef(
|
|
|
6886
6887
|
"onPaste",
|
|
6887
6888
|
"onClear"
|
|
6888
6889
|
]);
|
|
6889
|
-
const [h, m] = oe(() => e == null || e === "" ? "" : String(e)),
|
|
6890
|
+
const [h, m] = oe(() => e == null || e === "" ? "" : String(e)), I = $(
|
|
6890
6891
|
(S) => a === "comma" ? S.replace(/\./g, ",") : S.replace(/,/g, "."),
|
|
6891
6892
|
[a]
|
|
6892
|
-
),
|
|
6893
|
+
), T = $(
|
|
6893
6894
|
(S) => {
|
|
6894
6895
|
if (S === "" && u)
|
|
6895
6896
|
return "";
|
|
6896
6897
|
let A = S.replace(/[^\d.,\-]/g, "");
|
|
6897
|
-
if (l ? (A.match(/-/g) || []).length > 1 && (A = A.replace(/-/g, ""), S.startsWith("-") && (A = `-${A}`)) : A = A.replace(/-/g, ""), A =
|
|
6898
|
+
if (l ? (A.match(/-/g) || []).length > 1 && (A = A.replace(/-/g, ""), S.startsWith("-") && (A = `-${A}`)) : A = A.replace(/-/g, ""), A = I(A), (A.match(/[.,]/g) || []).length > 1) {
|
|
6898
6899
|
const G = A.search(/[.,]/);
|
|
6899
6900
|
A = A.substring(0, G + 1) + A.substring(G + 1).replace(/[.,]/g, "");
|
|
6900
6901
|
}
|
|
@@ -6907,21 +6908,21 @@ const Un = v.forwardRef(
|
|
|
6907
6908
|
}
|
|
6908
6909
|
return o && (A = o(A)), A;
|
|
6909
6910
|
},
|
|
6910
|
-
[r, a, l, u,
|
|
6911
|
-
),
|
|
6911
|
+
[r, a, l, u, I, o]
|
|
6912
|
+
), k = $(
|
|
6912
6913
|
(S) => !(i !== void 0 && S < i || s !== void 0 && S > s),
|
|
6913
6914
|
[i, s]
|
|
6914
|
-
),
|
|
6915
|
+
), C = $(
|
|
6915
6916
|
(S) => {
|
|
6916
|
-
const A = S.target.value, z =
|
|
6917
|
+
const A = S.target.value, z = T(A);
|
|
6917
6918
|
if (m(z), z === "") {
|
|
6918
6919
|
t == null || t(u ? "" : 0);
|
|
6919
6920
|
return;
|
|
6920
6921
|
}
|
|
6921
6922
|
const G = a === "comma" ? z.replace(/,/g, ".") : z, H = Number.parseFloat(G);
|
|
6922
|
-
Number.isNaN(H) ? t == null || t(z) :
|
|
6923
|
+
Number.isNaN(H) ? t == null || t(z) : k(H) ? t == null || t(H) : t == null || t(z);
|
|
6923
6924
|
},
|
|
6924
|
-
[
|
|
6925
|
+
[T, k, t, a, u]
|
|
6925
6926
|
), R = $(
|
|
6926
6927
|
(S) => {
|
|
6927
6928
|
const { key: A, ctrlKey: z, metaKey: G } = S;
|
|
@@ -6951,7 +6952,7 @@ const Un = v.forwardRef(
|
|
|
6951
6952
|
return;
|
|
6952
6953
|
}
|
|
6953
6954
|
S.preventDefault();
|
|
6954
|
-
const H = S.currentTarget, P = H.selectionStart || 0, D = H.value.substring(0, P) + (a === "dot" ? "." : ",") + H.value.substring(P), O =
|
|
6955
|
+
const H = S.currentTarget, P = H.selectionStart || 0, D = H.value.substring(0, P) + (a === "dot" ? "." : ",") + H.value.substring(P), O = T(D);
|
|
6955
6956
|
m(O), t == null || t(O);
|
|
6956
6957
|
return;
|
|
6957
6958
|
}
|
|
@@ -6964,18 +6965,18 @@ const Un = v.forwardRef(
|
|
|
6964
6965
|
}
|
|
6965
6966
|
S.preventDefault();
|
|
6966
6967
|
},
|
|
6967
|
-
[l, f, a,
|
|
6968
|
+
[l, f, a, T, m, t]
|
|
6968
6969
|
), E = $(
|
|
6969
6970
|
(S) => {
|
|
6970
|
-
const A = S.clipboardData.getData("text"), z =
|
|
6971
|
+
const A = S.clipboardData.getData("text"), z = T(A);
|
|
6971
6972
|
if (z !== A) {
|
|
6972
6973
|
S.preventDefault();
|
|
6973
|
-
const G = S.currentTarget, H = G.selectionStart || 0, P = G.selectionEnd || 0, D = G.value.substring(0, H) + z + G.value.substring(P), O =
|
|
6974
|
+
const G = S.currentTarget, H = G.selectionStart || 0, P = G.selectionEnd || 0, D = G.value.substring(0, H) + z + G.value.substring(P), O = T(D);
|
|
6974
6975
|
m(O), t == null || t(O);
|
|
6975
6976
|
}
|
|
6976
6977
|
c == null || c(S);
|
|
6977
6978
|
},
|
|
6978
|
-
[
|
|
6979
|
+
[T, t, c]
|
|
6979
6980
|
);
|
|
6980
6981
|
return v.useEffect(() => {
|
|
6981
6982
|
if (e != null) {
|
|
@@ -6988,7 +6989,7 @@ const Un = v.forwardRef(
|
|
|
6988
6989
|
ref: x,
|
|
6989
6990
|
type: "text",
|
|
6990
6991
|
value: h,
|
|
6991
|
-
onChange:
|
|
6992
|
+
onChange: C,
|
|
6992
6993
|
onKeyDown: R,
|
|
6993
6994
|
onPaste: E,
|
|
6994
6995
|
onClear: d,
|
|
@@ -7000,7 +7001,7 @@ const Un = v.forwardRef(
|
|
|
7000
7001
|
Un.displayName = "InputNumber";
|
|
7001
7002
|
const Kn = v.forwardRef(
|
|
7002
7003
|
(m, h) => {
|
|
7003
|
-
var
|
|
7004
|
+
var I = m, {
|
|
7004
7005
|
className: e,
|
|
7005
7006
|
href: t = "#",
|
|
7006
7007
|
children: r,
|
|
@@ -7016,7 +7017,7 @@ const Kn = v.forwardRef(
|
|
|
7016
7017
|
iconPosition: g = "left",
|
|
7017
7018
|
iconSize: x,
|
|
7018
7019
|
iconClassName: b
|
|
7019
|
-
} =
|
|
7020
|
+
} = I, y = B(I, [
|
|
7020
7021
|
"className",
|
|
7021
7022
|
"href",
|
|
7022
7023
|
"children",
|
|
@@ -7033,19 +7034,19 @@ const Kn = v.forwardRef(
|
|
|
7033
7034
|
"iconSize",
|
|
7034
7035
|
"iconClassName"
|
|
7035
7036
|
]);
|
|
7036
|
-
const
|
|
7037
|
+
const T = (S) => {
|
|
7037
7038
|
if (s) {
|
|
7038
7039
|
S.preventDefault(), S.stopPropagation();
|
|
7039
7040
|
return;
|
|
7040
7041
|
}
|
|
7041
7042
|
o == null || o(S);
|
|
7042
|
-
},
|
|
7043
|
+
}, k = (S) => {
|
|
7043
7044
|
if (s && (S.key === "Enter" || S.key === " ")) {
|
|
7044
7045
|
S.preventDefault(), S.stopPropagation();
|
|
7045
7046
|
return;
|
|
7046
7047
|
}
|
|
7047
7048
|
i == null || i(S);
|
|
7048
|
-
},
|
|
7049
|
+
}, C = p(
|
|
7049
7050
|
"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",
|
|
7050
7051
|
"data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
|
|
7051
7052
|
e
|
|
@@ -7056,14 +7057,14 @@ const Kn = v.forwardRef(
|
|
|
7056
7057
|
Dt,
|
|
7057
7058
|
F(w({
|
|
7058
7059
|
ref: h,
|
|
7059
|
-
className:
|
|
7060
|
+
className: C,
|
|
7060
7061
|
"data-cy": f,
|
|
7061
7062
|
"data-testid": c,
|
|
7062
7063
|
"aria-disabled": s || void 0,
|
|
7063
7064
|
"data-disabled": s || void 0,
|
|
7064
7065
|
tabIndex: s ? -1 : l,
|
|
7065
|
-
onClick:
|
|
7066
|
-
onKeyDown:
|
|
7066
|
+
onClick: T,
|
|
7067
|
+
onKeyDown: k
|
|
7067
7068
|
}, y), {
|
|
7068
7069
|
children: S
|
|
7069
7070
|
})
|
|
@@ -7075,19 +7076,19 @@ const Kn = v.forwardRef(
|
|
|
7075
7076
|
href: s ? void 0 : t,
|
|
7076
7077
|
target: a,
|
|
7077
7078
|
rel: "noopener noreferrer",
|
|
7078
|
-
className:
|
|
7079
|
+
className: C,
|
|
7079
7080
|
"aria-disabled": s || void 0,
|
|
7080
7081
|
"data-disabled": s || void 0,
|
|
7081
7082
|
tabIndex: s ? -1 : l,
|
|
7082
|
-
onClick:
|
|
7083
|
-
onKeyDown:
|
|
7083
|
+
onClick: T,
|
|
7084
|
+
onKeyDown: k,
|
|
7084
7085
|
"data-cy": f,
|
|
7085
7086
|
"data-testid": c,
|
|
7086
7087
|
children: S
|
|
7087
7088
|
})
|
|
7088
7089
|
);
|
|
7089
7090
|
}
|
|
7090
|
-
const R = /* @__PURE__ */ n(U, { icon: d, size: x, className: p("shrink-0", b) }), E = /* @__PURE__ */
|
|
7091
|
+
const R = /* @__PURE__ */ n(U, { icon: d, size: x, className: p("shrink-0", b) }), E = /* @__PURE__ */ N("span", { className: "inline-flex items-center gap-2", children: [
|
|
7091
7092
|
g === "left" && R,
|
|
7092
7093
|
/* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: r }),
|
|
7093
7094
|
g === "right" && R
|
|
@@ -7097,7 +7098,7 @@ const Kn = v.forwardRef(
|
|
|
7097
7098
|
F(w({
|
|
7098
7099
|
ref: h,
|
|
7099
7100
|
className: p(
|
|
7100
|
-
|
|
7101
|
+
C,
|
|
7101
7102
|
e
|
|
7102
7103
|
),
|
|
7103
7104
|
"data-cy": f,
|
|
@@ -7105,8 +7106,8 @@ const Kn = v.forwardRef(
|
|
|
7105
7106
|
"aria-disabled": s || void 0,
|
|
7106
7107
|
"data-disabled": s || void 0,
|
|
7107
7108
|
tabIndex: s ? -1 : l,
|
|
7108
|
-
onClick:
|
|
7109
|
-
onKeyDown:
|
|
7109
|
+
onClick: T,
|
|
7110
|
+
onKeyDown: k
|
|
7110
7111
|
}, y), {
|
|
7111
7112
|
children: E
|
|
7112
7113
|
})
|
|
@@ -7121,10 +7122,10 @@ const Kn = v.forwardRef(
|
|
|
7121
7122
|
"aria-disabled": s || void 0,
|
|
7122
7123
|
"data-disabled": s || void 0,
|
|
7123
7124
|
tabIndex: s ? -1 : l,
|
|
7124
|
-
onClick:
|
|
7125
|
-
onKeyDown:
|
|
7125
|
+
onClick: T,
|
|
7126
|
+
onKeyDown: k,
|
|
7126
7127
|
className: p(
|
|
7127
|
-
|
|
7128
|
+
C,
|
|
7128
7129
|
"gap-2",
|
|
7129
7130
|
e
|
|
7130
7131
|
),
|
|
@@ -7239,7 +7240,7 @@ const Xi = v.forwardRef(
|
|
|
7239
7240
|
const m = x.current;
|
|
7240
7241
|
m && m.removeEventListener("scroll", h);
|
|
7241
7242
|
};
|
|
7242
|
-
}, []), /* @__PURE__ */
|
|
7243
|
+
}, []), /* @__PURE__ */ N(Qi, { children: [
|
|
7243
7244
|
!s && /* @__PURE__ */ n(Yn, {}),
|
|
7244
7245
|
/* @__PURE__ */ n(
|
|
7245
7246
|
ue.Content,
|
|
@@ -7259,7 +7260,7 @@ const Xi = v.forwardRef(
|
|
|
7259
7260
|
e
|
|
7260
7261
|
)
|
|
7261
7262
|
}, f), {
|
|
7262
|
-
children: /* @__PURE__ */
|
|
7263
|
+
children: /* @__PURE__ */ N(
|
|
7263
7264
|
"div",
|
|
7264
7265
|
{
|
|
7265
7266
|
className: p(
|
|
@@ -7359,7 +7360,47 @@ const ts = v.forwardRef((a, r) => {
|
|
|
7359
7360
|
);
|
|
7360
7361
|
});
|
|
7361
7362
|
ts.displayName = ue.Description.displayName;
|
|
7362
|
-
const
|
|
7363
|
+
const id = ({
|
|
7364
|
+
totalSteps: e,
|
|
7365
|
+
items: t,
|
|
7366
|
+
activeStep: r,
|
|
7367
|
+
className: a,
|
|
7368
|
+
contentClassName: o
|
|
7369
|
+
}) => {
|
|
7370
|
+
var l, u;
|
|
7371
|
+
const i = (u = (l = t == null ? void 0 : t.length) != null ? l : e) != null ? u : 0;
|
|
7372
|
+
if (i <= 0)
|
|
7373
|
+
return null;
|
|
7374
|
+
const s = Array.from({ length: i }, (f, c) => c + 1);
|
|
7375
|
+
return /* @__PURE__ */ n("div", { className: p("w-full", a), children: s.map((f, c) => {
|
|
7376
|
+
var b;
|
|
7377
|
+
const d = f === r, g = c === s.length - 1, x = (b = t == null ? void 0 : t[c]) == null ? void 0 : b.content;
|
|
7378
|
+
return /* @__PURE__ */ N("div", { className: p("flex", !x && "justify-center"), children: [
|
|
7379
|
+
/* @__PURE__ */ N("div", { className: "relative mr-3 flex flex-col items-center", children: [
|
|
7380
|
+
/* @__PURE__ */ n("div", { className: "bg-muted flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full", children: /* @__PURE__ */ n(
|
|
7381
|
+
_,
|
|
7382
|
+
{
|
|
7383
|
+
as: "span",
|
|
7384
|
+
variant: "p2",
|
|
7385
|
+
textColor: d ? "default" : "muted",
|
|
7386
|
+
className: "inline-flex w-4 justify-center text-center [font-variant-numeric:tabular-nums]",
|
|
7387
|
+
children: f
|
|
7388
|
+
}
|
|
7389
|
+
) }),
|
|
7390
|
+
!g && /* @__PURE__ */ n(
|
|
7391
|
+
"div",
|
|
7392
|
+
{
|
|
7393
|
+
className: p(
|
|
7394
|
+
"bg-border-timeline w-0.5",
|
|
7395
|
+
x ? "flex-1" : "min-h-14"
|
|
7396
|
+
)
|
|
7397
|
+
}
|
|
7398
|
+
)
|
|
7399
|
+
] }),
|
|
7400
|
+
x && /* @__PURE__ */ n("div", { className: p("flex-1 pb-4", o), children: x })
|
|
7401
|
+
] }, f);
|
|
7402
|
+
}) });
|
|
7403
|
+
}, rs = 8, ns = 37, as = 39, os = 46, is = 32;
|
|
7363
7404
|
function ss(e) {
|
|
7364
7405
|
const c = e, {
|
|
7365
7406
|
focus: t,
|
|
@@ -7408,7 +7449,7 @@ function ss(e) {
|
|
|
7408
7449
|
}, u)
|
|
7409
7450
|
);
|
|
7410
7451
|
}
|
|
7411
|
-
const
|
|
7452
|
+
const sd = pa((e, t) => {
|
|
7412
7453
|
const {
|
|
7413
7454
|
length: r = 6,
|
|
7414
7455
|
onChange: a = () => {
|
|
@@ -7426,9 +7467,9 @@ const id = pa((e, t) => {
|
|
|
7426
7467
|
resend: "Отправить код повторно",
|
|
7427
7468
|
sms: "Отправить СМС через"
|
|
7428
7469
|
}
|
|
7429
|
-
} = e, b = e["data-cy"], y = e["data-testid"], [h, m] = oe(0), [
|
|
7470
|
+
} = e, b = e["data-cy"], y = e["data-testid"], [h, m] = oe(0), [I, T] = oe(
|
|
7430
7471
|
Array.from({ length: r }, () => "")
|
|
7431
|
-
), [
|
|
7472
|
+
), [k, C] = oe(d ? g : 0), [R, E] = oe(!!d), [S, A] = oe(u), [z, G] = oe(f), H = (K) => {
|
|
7432
7473
|
const Z = Math.max(Math.min(r - 1, K), 0);
|
|
7433
7474
|
m(Z);
|
|
7434
7475
|
};
|
|
@@ -7436,33 +7477,33 @@ const id = pa((e, t) => {
|
|
|
7436
7477
|
focusInput: H
|
|
7437
7478
|
})), fe(() => {
|
|
7438
7479
|
let K;
|
|
7439
|
-
return R &&
|
|
7440
|
-
|
|
7441
|
-
}, 1e3) :
|
|
7480
|
+
return R && k > 0 ? K = setInterval(() => {
|
|
7481
|
+
C((Z) => Z - 1);
|
|
7482
|
+
}, 1e3) : k === 0 && E(!1), () => {
|
|
7442
7483
|
K && clearInterval(K);
|
|
7443
7484
|
};
|
|
7444
|
-
}, [
|
|
7485
|
+
}, [k, R]), fe(() => {
|
|
7445
7486
|
A(u), G(f);
|
|
7446
7487
|
}, [u, f]);
|
|
7447
7488
|
const P = () => {
|
|
7448
|
-
d && !R && (d(),
|
|
7489
|
+
d && !R && (d(), C(g), E(!0));
|
|
7449
7490
|
}, D = (K) => {
|
|
7450
7491
|
var me;
|
|
7451
|
-
S && (A(!1), G("")),
|
|
7492
|
+
S && (A(!1), G("")), T(K);
|
|
7452
7493
|
const Z = K.join("");
|
|
7453
|
-
a(Z), Z.length === r && ((me = e.onComplete) == null || me.call(e, Z), l && (
|
|
7494
|
+
a(Z), Z.length === r && ((me = e.onComplete) == null || me.call(e, Z), l && (T(Array.from({ length: r }, () => "")), m(0)));
|
|
7454
7495
|
}, O = (K) => !Number.isNaN(Number.parseInt(K, 10)) && K.trim().length === 1, W = () => {
|
|
7455
7496
|
H(h + 1);
|
|
7456
7497
|
}, V = () => {
|
|
7457
7498
|
H(h - 1);
|
|
7458
7499
|
}, Y = (K) => {
|
|
7459
|
-
const Z = [...
|
|
7500
|
+
const Z = [...I];
|
|
7460
7501
|
Z[h] = K[0] || "", D(Z);
|
|
7461
7502
|
}, j = (K) => {
|
|
7462
7503
|
if (K.preventDefault(), i || s)
|
|
7463
7504
|
return;
|
|
7464
7505
|
let Z = h;
|
|
7465
|
-
const me = K.clipboardData.getData("text/plain").slice(0, r - h).split(""), Se = [...
|
|
7506
|
+
const me = K.clipboardData.getData("text/plain").slice(0, r - h).split(""), Se = [...I];
|
|
7466
7507
|
for (let Te = 0; Te < r; ++Te)
|
|
7467
7508
|
Te >= h && me.length > 0 && (Se[Te] = me.shift(), Z++);
|
|
7468
7509
|
m(Z), H(Z), D(Se);
|
|
@@ -7493,7 +7534,7 @@ const id = pa((e, t) => {
|
|
|
7493
7534
|
}, X = () => {
|
|
7494
7535
|
s || m(-1);
|
|
7495
7536
|
};
|
|
7496
|
-
return /* @__PURE__ */
|
|
7537
|
+
return /* @__PURE__ */ N("div", { className: "flex min-w-[303px] flex-col gap-2 md:min-w-[352px]", children: [
|
|
7497
7538
|
c && /* @__PURE__ */ n(_, { variant: "h5", weight: "medium", children: c }),
|
|
7498
7539
|
/* @__PURE__ */ n("div", { className: "flex w-full gap-2", children: Array.from({ length: r }).map((K, Z) => /* @__PURE__ */ n(
|
|
7499
7540
|
ss,
|
|
@@ -7502,7 +7543,7 @@ const id = pa((e, t) => {
|
|
|
7502
7543
|
masked: o,
|
|
7503
7544
|
loading: s,
|
|
7504
7545
|
focus: h === Z,
|
|
7505
|
-
value:
|
|
7546
|
+
value: I[Z],
|
|
7506
7547
|
onChange: J(Z),
|
|
7507
7548
|
onKeyDown: te,
|
|
7508
7549
|
onInput: ae,
|
|
@@ -7520,11 +7561,11 @@ const id = pa((e, t) => {
|
|
|
7520
7561
|
Z
|
|
7521
7562
|
)) }),
|
|
7522
7563
|
S && z && /* @__PURE__ */ n(_, { variant: "p2", textColor: "destructive", className: "font-cofo", children: z }),
|
|
7523
|
-
d && /* @__PURE__ */ n("div", { children: R ? /* @__PURE__ */
|
|
7564
|
+
d && /* @__PURE__ */ n("div", { children: R ? /* @__PURE__ */ N(_, { variant: "p2", textColor: "muted", className: "font-cofo", children: [
|
|
7524
7565
|
x.sms,
|
|
7525
7566
|
" ",
|
|
7526
7567
|
"0:",
|
|
7527
|
-
|
|
7568
|
+
k < 10 ? `0${k}` : k
|
|
7528
7569
|
] }) : /* @__PURE__ */ n(Kn, { onClick: P, children: x.resend }) })
|
|
7529
7570
|
] });
|
|
7530
7571
|
}), Vr = (e, t, r) => Math.min(Math.max(e, t), r);
|
|
@@ -7562,7 +7603,7 @@ function ds(e, t) {
|
|
|
7562
7603
|
return f.has(d) ? !1 : (f.add(d), !0);
|
|
7563
7604
|
});
|
|
7564
7605
|
}
|
|
7565
|
-
const
|
|
7606
|
+
const ld = ({
|
|
7566
7607
|
current: e,
|
|
7567
7608
|
total: t,
|
|
7568
7609
|
pageSize: r = 10,
|
|
@@ -7573,21 +7614,21 @@ const sd = ({
|
|
|
7573
7614
|
showQuickJumper: l = !1,
|
|
7574
7615
|
locale: u
|
|
7575
7616
|
}) => {
|
|
7576
|
-
var
|
|
7617
|
+
var T, k;
|
|
7577
7618
|
const f = Math.max(1, Math.ceil((t || 0) / (r || 10))), c = Vr(e || 1, 1, f), d = ne(
|
|
7578
7619
|
() => [{ type: "prev" }, ...ds(c, f), { type: "next" }],
|
|
7579
7620
|
[c, f]
|
|
7580
7621
|
), [g, x] = oe("");
|
|
7581
7622
|
if (s && f <= 1)
|
|
7582
7623
|
return null;
|
|
7583
|
-
const b = (
|
|
7624
|
+
const b = (C) => {
|
|
7584
7625
|
if (i)
|
|
7585
7626
|
return;
|
|
7586
|
-
const R = Vr(
|
|
7627
|
+
const R = Vr(C, 1, f);
|
|
7587
7628
|
R !== c && a(R, r);
|
|
7588
|
-
}, y = (
|
|
7629
|
+
}, y = (C) => {
|
|
7589
7630
|
if (!i)
|
|
7590
|
-
switch (
|
|
7631
|
+
switch (C.type) {
|
|
7591
7632
|
case "prev":
|
|
7592
7633
|
return b(c - 1);
|
|
7593
7634
|
case "next":
|
|
@@ -7597,37 +7638,37 @@ const sd = ({
|
|
|
7597
7638
|
case "jump-next":
|
|
7598
7639
|
return b(c + 5);
|
|
7599
7640
|
case "page":
|
|
7600
|
-
return b(
|
|
7641
|
+
return b(C.page);
|
|
7601
7642
|
}
|
|
7602
7643
|
}, h = () => {
|
|
7603
7644
|
if (i)
|
|
7604
7645
|
return;
|
|
7605
|
-
const
|
|
7606
|
-
Number.isFinite(
|
|
7607
|
-
}, m = (
|
|
7608
|
-
return /* @__PURE__ */
|
|
7609
|
-
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((
|
|
7610
|
-
const E = ls(
|
|
7646
|
+
const C = typeof g == "number" ? g : Number(g);
|
|
7647
|
+
Number.isFinite(C) && (b(C), x(""));
|
|
7648
|
+
}, m = (T = u == null ? void 0 : u.jump_to) != null ? T : "Перейти на", I = (k = u == null ? void 0 : u.page) != null ? k : "страницу";
|
|
7649
|
+
return /* @__PURE__ */ N("div", { className: p("flex items-center justify-between gap-3 flex-wrap", o), "data-testid": "paginator", children: [
|
|
7650
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 flex-wrap", children: d.map((C, R) => {
|
|
7651
|
+
const E = ls(C, f), S = C.type === "page" && C.page === c, A = `${C.type}-${C.type === "page" ? C.page : R}`, z = C.type === "prev" || C.type === "next" ? /* @__PURE__ */ n(
|
|
7611
7652
|
ee,
|
|
7612
7653
|
{
|
|
7613
7654
|
variant: "text",
|
|
7614
7655
|
size: "md",
|
|
7615
7656
|
iconOnly: !0,
|
|
7616
|
-
icon:
|
|
7657
|
+
icon: C.type === "prev" ? "ArrowLeftIcon" : "ArrowRightIcon",
|
|
7617
7658
|
className: "h-8 w-8 rounded-md p-0 hover:bg-default-background focus:bg-default-background",
|
|
7618
|
-
disabled: i || (
|
|
7619
|
-
"aria-label":
|
|
7620
|
-
onClick: () => y(
|
|
7659
|
+
disabled: i || (C.type === "prev" ? c <= 1 : c >= f),
|
|
7660
|
+
"aria-label": C.type === "prev" ? "Prev page" : "Next page",
|
|
7661
|
+
onClick: () => y(C)
|
|
7621
7662
|
}
|
|
7622
|
-
) :
|
|
7663
|
+
) : C.type === "jump-prev" || C.type === "jump-next" ? /* @__PURE__ */ n(
|
|
7623
7664
|
ee,
|
|
7624
7665
|
{
|
|
7625
7666
|
variant: "text",
|
|
7626
7667
|
size: "md",
|
|
7627
7668
|
className: "h-8 w-8 min-w-8 rounded-md px-0 hover:bg-default-background focus:bg-default-background",
|
|
7628
7669
|
disabled: i,
|
|
7629
|
-
"aria-label":
|
|
7630
|
-
onClick: () => y(
|
|
7670
|
+
"aria-label": C.type === "jump-prev" ? "Jump prev pages" : "Jump next pages",
|
|
7671
|
+
onClick: () => y(C),
|
|
7631
7672
|
children: "…"
|
|
7632
7673
|
}
|
|
7633
7674
|
) : /* @__PURE__ */ n(
|
|
@@ -7645,31 +7686,31 @@ const sd = ({
|
|
|
7645
7686
|
isActive: S,
|
|
7646
7687
|
disabled: i,
|
|
7647
7688
|
"aria-current": S ? "page" : void 0,
|
|
7648
|
-
"aria-label": `Page ${
|
|
7649
|
-
onClick: () => y(
|
|
7650
|
-
children: String(
|
|
7689
|
+
"aria-label": `Page ${C.page}`,
|
|
7690
|
+
onClick: () => y(C),
|
|
7691
|
+
children: String(C.page)
|
|
7651
7692
|
}
|
|
7652
7693
|
);
|
|
7653
7694
|
return /* @__PURE__ */ n("span", { "data-testid": E, children: z }, A);
|
|
7654
7695
|
}) }),
|
|
7655
|
-
l && /* @__PURE__ */
|
|
7696
|
+
l && /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
|
|
7656
7697
|
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children: m }),
|
|
7657
7698
|
/* @__PURE__ */ n(
|
|
7658
7699
|
Un,
|
|
7659
7700
|
{
|
|
7660
7701
|
value: g,
|
|
7661
|
-
onChange: (
|
|
7702
|
+
onChange: (C) => x(C === "" ? "" : Number(C)),
|
|
7662
7703
|
min: 1,
|
|
7663
7704
|
max: f,
|
|
7664
7705
|
allowNegative: !1,
|
|
7665
7706
|
allowEmpty: !0,
|
|
7666
7707
|
className: "w-20",
|
|
7667
|
-
onKeyDown: (
|
|
7668
|
-
|
|
7708
|
+
onKeyDown: (C) => {
|
|
7709
|
+
C.key === "Enter" && h();
|
|
7669
7710
|
}
|
|
7670
7711
|
}
|
|
7671
7712
|
),
|
|
7672
|
-
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children:
|
|
7713
|
+
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", children: I }),
|
|
7673
7714
|
/* @__PURE__ */ n(ee, { variant: "default", onClick: h, disabled: i, children: "OK" })
|
|
7674
7715
|
] })
|
|
7675
7716
|
] });
|
|
@@ -8498,7 +8539,7 @@ const Zn = ke.forwardRef(
|
|
|
8498
8539
|
"inputSize",
|
|
8499
8540
|
"isLoading"
|
|
8500
8541
|
]);
|
|
8501
|
-
const g = Yt(), x = s != null ? s : i, b = () => /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: /* @__PURE__ */ n(mt, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */
|
|
8542
|
+
const g = Yt(), x = s != null ? s : i, b = () => /* @__PURE__ */ n(ut, { children: /* @__PURE__ */ n(ft, { children: /* @__PURE__ */ n(mt, { children: t == null ? void 0 : t.map((y, h) => /* @__PURE__ */ N(
|
|
8502
8543
|
Gt,
|
|
8503
8544
|
{
|
|
8504
8545
|
onSelect: () => o(y),
|
|
@@ -8510,7 +8551,7 @@ const Zn = ke.forwardRef(
|
|
|
8510
8551
|
},
|
|
8511
8552
|
h
|
|
8512
8553
|
)) }) }) });
|
|
8513
|
-
return /* @__PURE__ */
|
|
8554
|
+
return /* @__PURE__ */ N("div", { className: "relative flex-1", children: [
|
|
8514
8555
|
/* @__PURE__ */ n(
|
|
8515
8556
|
$n,
|
|
8516
8557
|
F(w({
|
|
@@ -8529,13 +8570,13 @@ const Zn = ke.forwardRef(
|
|
|
8529
8570
|
maskChar: null,
|
|
8530
8571
|
onPaste: (y) => {
|
|
8531
8572
|
y.preventDefault();
|
|
8532
|
-
const h = y.clipboardData.getData("text/plain"), m = y.target,
|
|
8533
|
-
let
|
|
8534
|
-
!(
|
|
8535
|
-
const
|
|
8573
|
+
const h = y.clipboardData.getData("text/plain"), m = y.target, I = Oe.parsePhoneNumber(h);
|
|
8574
|
+
let T = "";
|
|
8575
|
+
!(I != null && I.country) && (h.startsWith("+8") || h.startsWith("8")) ? T = `+${h.replace(/\D/g, "").replace("8", "7")}` : !(I != null && I.country) && h.startsWith("7") ? T = `+${h}` : T = h, m.value = T;
|
|
8576
|
+
const k = F(w({}, y), {
|
|
8536
8577
|
target: m
|
|
8537
8578
|
});
|
|
8538
|
-
a == null || a(
|
|
8579
|
+
a == null || a(k);
|
|
8539
8580
|
},
|
|
8540
8581
|
onChange: a,
|
|
8541
8582
|
size: x
|
|
@@ -8544,8 +8585,8 @@ const Zn = ke.forwardRef(
|
|
|
8544
8585
|
})
|
|
8545
8586
|
),
|
|
8546
8587
|
l && /* @__PURE__ */ n(je, { size: 16, className: "absolute top-1/2 right-2 -translate-y-1/2 text-default" }),
|
|
8547
|
-
!l && t && t.length > 1 && /* @__PURE__ */
|
|
8548
|
-
g === "mobile" && /* @__PURE__ */
|
|
8588
|
+
!l && t && t.length > 1 && /* @__PURE__ */ N(be, { children: [
|
|
8589
|
+
g === "mobile" && /* @__PURE__ */ N(bt, { children: [
|
|
8549
8590
|
/* @__PURE__ */ n(Xe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8550
8591
|
ee,
|
|
8551
8592
|
{
|
|
@@ -8556,7 +8597,7 @@ const Zn = ke.forwardRef(
|
|
|
8556
8597
|
children: /* @__PURE__ */ n(U, { icon: "UnfoldIcon", className: "size-4" })
|
|
8557
8598
|
}
|
|
8558
8599
|
) }),
|
|
8559
|
-
/* @__PURE__ */
|
|
8600
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
8560
8601
|
/* @__PURE__ */ n(qe, {}),
|
|
8561
8602
|
/* @__PURE__ */ n(
|
|
8562
8603
|
et,
|
|
@@ -8569,7 +8610,7 @@ const Zn = ke.forwardRef(
|
|
|
8569
8610
|
)
|
|
8570
8611
|
] })
|
|
8571
8612
|
] }),
|
|
8572
|
-
g !== "mobile" && /* @__PURE__ */
|
|
8613
|
+
g !== "mobile" && /* @__PURE__ */ N(Je, { children: [
|
|
8573
8614
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
8574
8615
|
ee,
|
|
8575
8616
|
{
|
|
@@ -8618,7 +8659,7 @@ function Bt({ country: e, countryName: t }) {
|
|
|
8618
8659
|
);
|
|
8619
8660
|
}
|
|
8620
8661
|
const Hr = Xr(
|
|
8621
|
-
({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */
|
|
8662
|
+
({ country: e, countryName: t, onChange: r }) => /* @__PURE__ */ N(Gt, { className: "w-auto gap-2 hover:bg-muted transition-colors", onSelect: () => r(e), children: [
|
|
8622
8663
|
/* @__PURE__ */ n(Bt, { country: e, countryName: t }),
|
|
8623
8664
|
/* @__PURE__ */ n("span", { className: "flex-1 text-[14px]", children: t }),
|
|
8624
8665
|
/* @__PURE__ */ n("span", { className: "text-foreground/50", children: `+${Oe.getCountryCallingCode(e)}` })
|
|
@@ -8641,16 +8682,16 @@ const Hr = Xr(
|
|
|
8641
8682
|
if (!c)
|
|
8642
8683
|
return a;
|
|
8643
8684
|
const m = c.toLowerCase();
|
|
8644
|
-
return a.filter(({ value:
|
|
8685
|
+
return a.filter(({ value: I, label: T }) => {
|
|
8645
8686
|
var R;
|
|
8646
|
-
if (!
|
|
8687
|
+
if (!I)
|
|
8647
8688
|
return !1;
|
|
8648
|
-
const
|
|
8649
|
-
return
|
|
8689
|
+
const k = ((R = i[I]) == null ? void 0 : R.toLowerCase()) || T.toLowerCase(), C = Oe.getCountryCallingCode(I);
|
|
8690
|
+
return k.includes(m) || I.toLowerCase().includes(m) || `+${C}`.includes(m);
|
|
8650
8691
|
});
|
|
8651
8692
|
}, [a, c]);
|
|
8652
|
-
return /* @__PURE__ */
|
|
8653
|
-
g === "mobile" && /* @__PURE__ */
|
|
8693
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
8694
|
+
g === "mobile" && /* @__PURE__ */ N(bt, { open: u, onOpenChange: f, children: [
|
|
8654
8695
|
/* @__PURE__ */ n(
|
|
8655
8696
|
Xe,
|
|
8656
8697
|
{
|
|
@@ -8659,7 +8700,7 @@ const Hr = Xr(
|
|
|
8659
8700
|
className: p("border-none bg-white pr-0.5 pl-1", {
|
|
8660
8701
|
"bg-muted": e
|
|
8661
8702
|
}),
|
|
8662
|
-
children: /* @__PURE__ */
|
|
8703
|
+
children: /* @__PURE__ */ N(
|
|
8663
8704
|
ee,
|
|
8664
8705
|
{
|
|
8665
8706
|
type: "button",
|
|
@@ -8694,9 +8735,9 @@ const Hr = Xr(
|
|
|
8694
8735
|
)
|
|
8695
8736
|
}
|
|
8696
8737
|
),
|
|
8697
|
-
/* @__PURE__ */
|
|
8738
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
8698
8739
|
/* @__PURE__ */ n(qe, {}),
|
|
8699
|
-
/* @__PURE__ */ n(et, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */
|
|
8740
|
+
/* @__PURE__ */ n(et, { className: "p-0", style: { zIndex: 52 }, children: /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */ N(ut, { shouldFilter: !0, className: "rounded-xl", children: [
|
|
8700
8741
|
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
8701
8742
|
Lt,
|
|
8702
8743
|
{
|
|
@@ -8709,12 +8750,12 @@ const Hr = Xr(
|
|
|
8709
8750
|
onChange: (m) => d(m.target.value)
|
|
8710
8751
|
}
|
|
8711
8752
|
) }),
|
|
8712
|
-
/* @__PURE__ */ n(ft, { children: /* @__PURE__ */
|
|
8713
|
-
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label:
|
|
8753
|
+
/* @__PURE__ */ n(ft, { children: /* @__PURE__ */ N(Pt, { className: "h-60", children: [
|
|
8754
|
+
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label: I }) => m ? /* @__PURE__ */ n(
|
|
8714
8755
|
Hr,
|
|
8715
8756
|
{
|
|
8716
8757
|
country: m,
|
|
8717
|
-
countryName: i[m] ||
|
|
8758
|
+
countryName: i[m] || I,
|
|
8718
8759
|
onChange: b
|
|
8719
8760
|
},
|
|
8720
8761
|
m
|
|
@@ -8724,7 +8765,7 @@ const Hr = Xr(
|
|
|
8724
8765
|
] }) }) })
|
|
8725
8766
|
] })
|
|
8726
8767
|
] }),
|
|
8727
|
-
g !== "mobile" && /* @__PURE__ */
|
|
8768
|
+
g !== "mobile" && /* @__PURE__ */ N(Je, { open: u, onOpenChange: f, children: [
|
|
8728
8769
|
/* @__PURE__ */ n(
|
|
8729
8770
|
Qe,
|
|
8730
8771
|
{
|
|
@@ -8732,7 +8773,7 @@ const Hr = Xr(
|
|
|
8732
8773
|
className: p("border-none bg-white pr-0.5 pl-1", {
|
|
8733
8774
|
"bg-muted": e
|
|
8734
8775
|
}),
|
|
8735
|
-
children: /* @__PURE__ */
|
|
8776
|
+
children: /* @__PURE__ */ N(
|
|
8736
8777
|
ee,
|
|
8737
8778
|
{
|
|
8738
8779
|
type: "button",
|
|
@@ -8772,7 +8813,7 @@ const Hr = Xr(
|
|
|
8772
8813
|
{
|
|
8773
8814
|
align: "start",
|
|
8774
8815
|
className: "rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] md:w-[400px] lg:w-[252px]",
|
|
8775
|
-
children: /* @__PURE__ */
|
|
8816
|
+
children: /* @__PURE__ */ N(ut, { shouldFilter: !0, className: "rounded-xl", children: [
|
|
8776
8817
|
/* @__PURE__ */ n(
|
|
8777
8818
|
Lt,
|
|
8778
8819
|
{
|
|
@@ -8784,17 +8825,17 @@ const Hr = Xr(
|
|
|
8784
8825
|
onChange: (m) => d(m.target.value)
|
|
8785
8826
|
}
|
|
8786
8827
|
),
|
|
8787
|
-
/* @__PURE__ */ n(ft, { className: "border-border", children: /* @__PURE__ */
|
|
8828
|
+
/* @__PURE__ */ n(ft, { className: "border-border", children: /* @__PURE__ */ N(
|
|
8788
8829
|
Pt,
|
|
8789
8830
|
{
|
|
8790
8831
|
className: "h-60",
|
|
8791
8832
|
onWheel: (m) => m.stopPropagation(),
|
|
8792
8833
|
children: [
|
|
8793
|
-
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label:
|
|
8834
|
+
y.length > 0 && /* @__PURE__ */ n(mt, { children: y.map(({ value: m, label: I }) => m ? /* @__PURE__ */ n(
|
|
8794
8835
|
Hr,
|
|
8795
8836
|
{
|
|
8796
8837
|
country: m,
|
|
8797
|
-
countryName: i[m] ||
|
|
8838
|
+
countryName: i[m] || I,
|
|
8798
8839
|
onChange: b
|
|
8799
8840
|
},
|
|
8800
8841
|
m
|
|
@@ -8809,7 +8850,7 @@ const Hr = Xr(
|
|
|
8809
8850
|
] })
|
|
8810
8851
|
] });
|
|
8811
8852
|
}
|
|
8812
|
-
),
|
|
8853
|
+
), dd = ke.forwardRef(
|
|
8813
8854
|
(b, x) => {
|
|
8814
8855
|
var y = b, {
|
|
8815
8856
|
className: e,
|
|
@@ -8839,7 +8880,7 @@ const Hr = Xr(
|
|
|
8839
8880
|
"isLoading"
|
|
8840
8881
|
]);
|
|
8841
8882
|
var G, H;
|
|
8842
|
-
const [h, m] = ke.useState(() => ""), [
|
|
8883
|
+
const [h, m] = ke.useState(() => ""), [I, T] = ke.useState([]), [k, C] = ke.useState(l), R = (() => {
|
|
8843
8884
|
switch (f) {
|
|
8844
8885
|
case "en":
|
|
8845
8886
|
return Na;
|
|
@@ -8861,16 +8902,16 @@ const Hr = Xr(
|
|
|
8861
8902
|
}
|
|
8862
8903
|
}
|
|
8863
8904
|
const P = jr(i, l), D = rr(P);
|
|
8864
|
-
|
|
8905
|
+
C(P), m(D[0]), T(D);
|
|
8865
8906
|
}, [l, t, i]);
|
|
8866
8907
|
const S = (P) => {
|
|
8867
8908
|
const D = hs(P), O = jr(
|
|
8868
8909
|
D,
|
|
8869
|
-
|
|
8910
|
+
k != null ? k : l
|
|
8870
8911
|
);
|
|
8871
|
-
if (O !==
|
|
8912
|
+
if (O !== k) {
|
|
8872
8913
|
const V = rr(O);
|
|
8873
|
-
|
|
8914
|
+
C(O), m(V[0]), T(V);
|
|
8874
8915
|
}
|
|
8875
8916
|
t == null || t(D);
|
|
8876
8917
|
const W = Oe.isPossiblePhoneNumber(D);
|
|
@@ -8878,15 +8919,15 @@ const Hr = Xr(
|
|
|
8878
8919
|
}, A = (P) => {
|
|
8879
8920
|
if (!P)
|
|
8880
8921
|
return;
|
|
8881
|
-
|
|
8922
|
+
C(P);
|
|
8882
8923
|
const D = rr(P);
|
|
8883
|
-
m(D[0]),
|
|
8924
|
+
m(D[0]), T(D);
|
|
8884
8925
|
const O = `+${Oe.getCountryCallingCode(P)}`;
|
|
8885
8926
|
t == null || t(O);
|
|
8886
8927
|
}, z = (P) => {
|
|
8887
8928
|
m(P);
|
|
8888
8929
|
};
|
|
8889
|
-
return /* @__PURE__ */
|
|
8930
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
8890
8931
|
r && /* @__PURE__ */ n(_, { variant: c === "md" ? "p2" : "p3", weight: "medium", className: "mb-1.5", children: r }),
|
|
8891
8932
|
/* @__PURE__ */ n(
|
|
8892
8933
|
Oe.default,
|
|
@@ -8895,7 +8936,7 @@ const Hr = Xr(
|
|
|
8895
8936
|
"data-testid": s,
|
|
8896
8937
|
value: i,
|
|
8897
8938
|
tabIndex: 0,
|
|
8898
|
-
defaultCountry: (G =
|
|
8939
|
+
defaultCountry: (G = k != null ? k : l) != null ? G : pt,
|
|
8899
8940
|
className: p(
|
|
8900
8941
|
"border-border flex overflow-hidden border transition-colors",
|
|
8901
8942
|
"hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus flex items-center bg-white",
|
|
@@ -8908,7 +8949,7 @@ const Hr = Xr(
|
|
|
8908
8949
|
countryCallingCodeEditable: !1,
|
|
8909
8950
|
countrySelectComponent: gs,
|
|
8910
8951
|
countrySelectProps: {
|
|
8911
|
-
defaultCountry: (H =
|
|
8952
|
+
defaultCountry: (H = k != null ? k : l) != null ? H : pt,
|
|
8912
8953
|
locale: R,
|
|
8913
8954
|
translations: E,
|
|
8914
8955
|
inputSize: c
|
|
@@ -8918,7 +8959,7 @@ const Hr = Xr(
|
|
|
8918
8959
|
smartCaret: !1,
|
|
8919
8960
|
onChange: S,
|
|
8920
8961
|
mask: h,
|
|
8921
|
-
masks:
|
|
8962
|
+
masks: I,
|
|
8922
8963
|
inputSize: c,
|
|
8923
8964
|
isLoading: d,
|
|
8924
8965
|
onMaskChange: z,
|
|
@@ -8955,8 +8996,8 @@ const Hr = Xr(
|
|
|
8955
8996
|
"className"
|
|
8956
8997
|
]);
|
|
8957
8998
|
return /* @__PURE__ */ n(_, w({ textColor: "secondary", className: e }, t));
|
|
8958
|
-
}, ys = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */
|
|
8959
|
-
/* @__PURE__ */
|
|
8999
|
+
}, ys = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ N("div", { className: "flex", children: [
|
|
9000
|
+
/* @__PURE__ */ N("div", { className: "relative mr-3 flex flex-col items-center", children: [
|
|
8960
9001
|
/* @__PURE__ */ n(
|
|
8961
9002
|
"div",
|
|
8962
9003
|
{
|
|
@@ -8969,7 +9010,7 @@ const Hr = Xr(
|
|
|
8969
9010
|
),
|
|
8970
9011
|
a < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
|
|
8971
9012
|
] }),
|
|
8972
|
-
/* @__PURE__ */
|
|
9013
|
+
/* @__PURE__ */ N("div", { className: "flex-1 pb-4", children: [
|
|
8973
9014
|
r.title,
|
|
8974
9015
|
r.additional
|
|
8975
9016
|
] })
|
|
@@ -9074,16 +9115,16 @@ const ws = ge(
|
|
|
9074
9115
|
"onBlur",
|
|
9075
9116
|
"data-testid"
|
|
9076
9117
|
]);
|
|
9077
|
-
const m = a || !1,
|
|
9118
|
+
const m = a || !1, I = o || !1, T = v.useId(), k = s || `${T}-radio`;
|
|
9078
9119
|
return /* @__PURE__ */ n(
|
|
9079
9120
|
"label",
|
|
9080
9121
|
{
|
|
9081
|
-
htmlFor:
|
|
9122
|
+
htmlFor: k,
|
|
9082
9123
|
className: p(
|
|
9083
9124
|
"select-none",
|
|
9084
|
-
|
|
9125
|
+
I ? "cursor-not-allowed opacity-40" : "cursor-pointer"
|
|
9085
9126
|
),
|
|
9086
|
-
children: /* @__PURE__ */
|
|
9127
|
+
children: /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
9087
9128
|
/* @__PURE__ */ n(
|
|
9088
9129
|
Vt.Item,
|
|
9089
9130
|
F(w({
|
|
@@ -9096,9 +9137,9 @@ const ws = ge(
|
|
|
9096
9137
|
e
|
|
9097
9138
|
),
|
|
9098
9139
|
checked: a,
|
|
9099
|
-
disabled:
|
|
9140
|
+
disabled: I,
|
|
9100
9141
|
value: i,
|
|
9101
|
-
id:
|
|
9142
|
+
id: k
|
|
9102
9143
|
}, x), {
|
|
9103
9144
|
ref: b,
|
|
9104
9145
|
"data-testid": g
|
|
@@ -9113,7 +9154,7 @@ const ws = ge(
|
|
|
9113
9154
|
Ns.displayName = Vt.Item.displayName;
|
|
9114
9155
|
const Is = v.forwardRef((s, i) => {
|
|
9115
9156
|
var l = s, { className: e, label: t, error: r, size: a = "md" } = l, o = B(l, ["className", "label", "error", "size"]);
|
|
9116
|
-
return /* @__PURE__ */
|
|
9157
|
+
return /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
9117
9158
|
t && /* @__PURE__ */ n(
|
|
9118
9159
|
_,
|
|
9119
9160
|
{
|
|
@@ -9200,7 +9241,7 @@ const Cs = ge(
|
|
|
9200
9241
|
"children",
|
|
9201
9242
|
"data-testid"
|
|
9202
9243
|
]);
|
|
9203
|
-
const c = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(U, { icon: t }) : null, d = /* @__PURE__ */
|
|
9244
|
+
const c = () => t ? v.isValidElement(t) ? t : /* @__PURE__ */ n(U, { icon: t }) : null, d = /* @__PURE__ */ N(be, { children: [
|
|
9204
9245
|
r === "start" && c(),
|
|
9205
9246
|
o,
|
|
9206
9247
|
r === "end" && c()
|
|
@@ -9285,7 +9326,7 @@ const Ss = v.forwardRef(
|
|
|
9285
9326
|
]);
|
|
9286
9327
|
const [x, b] = v.useState(!1), y = l !== void 0 ? l : x, h = () => {
|
|
9287
9328
|
l !== void 0 || b(!x), i == null || i();
|
|
9288
|
-
}, m = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(U, { icon: r }) : null,
|
|
9329
|
+
}, m = () => r ? v.isValidElement(r) ? r : /* @__PURE__ */ n(U, { icon: r }) : null, I = /* @__PURE__ */ N(be, { children: [
|
|
9289
9330
|
a === "start" && m(),
|
|
9290
9331
|
o && /* @__PURE__ */ n(
|
|
9291
9332
|
"span",
|
|
@@ -9314,13 +9355,13 @@ const Ss = v.forwardRef(
|
|
|
9314
9355
|
disabled: s,
|
|
9315
9356
|
"data-testid": u
|
|
9316
9357
|
}, f), {
|
|
9317
|
-
children:
|
|
9358
|
+
children: I
|
|
9318
9359
|
})
|
|
9319
9360
|
);
|
|
9320
9361
|
}
|
|
9321
9362
|
);
|
|
9322
9363
|
Ss.displayName = "SingleSegment";
|
|
9323
|
-
function
|
|
9364
|
+
function cd({
|
|
9324
9365
|
steps: e,
|
|
9325
9366
|
currentStep: t,
|
|
9326
9367
|
className: r,
|
|
@@ -9336,8 +9377,8 @@ function dd({
|
|
|
9336
9377
|
"aria-valuenow": t,
|
|
9337
9378
|
children: e.map((o, i) => {
|
|
9338
9379
|
const s = i < t, l = i === t, u = i === e.length - 1;
|
|
9339
|
-
return /* @__PURE__ */
|
|
9340
|
-
/* @__PURE__ */
|
|
9380
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
9381
|
+
/* @__PURE__ */ N(
|
|
9341
9382
|
"div",
|
|
9342
9383
|
{
|
|
9343
9384
|
className: "flex items-center flex-shrink-0",
|
|
@@ -9462,7 +9503,7 @@ const Ts = ge(
|
|
|
9462
9503
|
}, h = (m) => {
|
|
9463
9504
|
l && (l(m, b.current), b.current = void 0);
|
|
9464
9505
|
};
|
|
9465
|
-
return /* @__PURE__ */
|
|
9506
|
+
return /* @__PURE__ */ N("div", { className: "flex items-center gap-2.5", children: [
|
|
9466
9507
|
/* @__PURE__ */ n(
|
|
9467
9508
|
ar.Root,
|
|
9468
9509
|
F(w({
|
|
@@ -9528,7 +9569,7 @@ function qn({
|
|
|
9528
9569
|
}) {
|
|
9529
9570
|
var o, i;
|
|
9530
9571
|
const r = (o = e == null ? void 0 : e.emptyTitle) != null ? o : "Всё чисто", a = (i = e == null ? void 0 : e.emptyDescription) != null ? i : "Добавьте что-нибудь, чтобы начать работу";
|
|
9531
|
-
return e != null && e.emptyText ? /* @__PURE__ */
|
|
9572
|
+
return e != null && e.emptyText ? /* @__PURE__ */ N(
|
|
9532
9573
|
"div",
|
|
9533
9574
|
{
|
|
9534
9575
|
className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
@@ -9547,7 +9588,7 @@ function qn({
|
|
|
9547
9588
|
/* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1", children: /* @__PURE__ */ n(_, { variant: "h4", weight: "medium", children: e.emptyText }) })
|
|
9548
9589
|
]
|
|
9549
9590
|
}
|
|
9550
|
-
) : /* @__PURE__ */
|
|
9591
|
+
) : /* @__PURE__ */ N(
|
|
9551
9592
|
"div",
|
|
9552
9593
|
{
|
|
9553
9594
|
className: t != null ? t : "flex h-[300px] w-full flex-col items-center justify-center gap-2.5",
|
|
@@ -9563,7 +9604,7 @@ function qn({
|
|
|
9563
9604
|
draggable: !1
|
|
9564
9605
|
}
|
|
9565
9606
|
),
|
|
9566
|
-
/* @__PURE__ */
|
|
9607
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-1", children: [
|
|
9567
9608
|
/* @__PURE__ */ n(_, { variant: "h4", weight: "medium", children: r }),
|
|
9568
9609
|
/* @__PURE__ */ n(_, { variant: "p2", children: a })
|
|
9569
9610
|
] })
|
|
@@ -9642,58 +9683,58 @@ function Ps({
|
|
|
9642
9683
|
}), b.current.clear();
|
|
9643
9684
|
}, []), fe(() => {
|
|
9644
9685
|
if (!l) {
|
|
9645
|
-
x.current = null, g(/* @__PURE__ */ new Set()), b.current.forEach((
|
|
9686
|
+
x.current = null, g(/* @__PURE__ */ new Set()), b.current.forEach((I) => window.clearTimeout(I)), b.current.clear();
|
|
9646
9687
|
return;
|
|
9647
9688
|
}
|
|
9648
|
-
const y = c.map((
|
|
9689
|
+
const y = c.map((I) => I.id);
|
|
9649
9690
|
if (x.current === null) {
|
|
9650
9691
|
x.current = new Set(y);
|
|
9651
9692
|
return;
|
|
9652
9693
|
}
|
|
9653
|
-
const h = x.current, m = y.filter((
|
|
9654
|
-
x.current = new Set(y), m.length !== 0 && (g((
|
|
9655
|
-
const
|
|
9656
|
-
return m.forEach((
|
|
9657
|
-
}), m.forEach((
|
|
9658
|
-
const
|
|
9659
|
-
|
|
9660
|
-
const
|
|
9661
|
-
g((
|
|
9662
|
-
if (!
|
|
9663
|
-
return
|
|
9664
|
-
const R = new Set(
|
|
9665
|
-
return R.delete(
|
|
9666
|
-
}), b.current.delete(
|
|
9694
|
+
const h = x.current, m = y.filter((I) => !h.has(I));
|
|
9695
|
+
x.current = new Set(y), m.length !== 0 && (g((I) => {
|
|
9696
|
+
const T = new Set(I);
|
|
9697
|
+
return m.forEach((k) => T.add(k)), T;
|
|
9698
|
+
}), m.forEach((I) => {
|
|
9699
|
+
const T = b.current.get(I);
|
|
9700
|
+
T && window.clearTimeout(T);
|
|
9701
|
+
const k = window.setTimeout(() => {
|
|
9702
|
+
g((C) => {
|
|
9703
|
+
if (!C.has(I))
|
|
9704
|
+
return C;
|
|
9705
|
+
const R = new Set(C);
|
|
9706
|
+
return R.delete(I), R;
|
|
9707
|
+
}), b.current.delete(I);
|
|
9667
9708
|
}, 1400);
|
|
9668
|
-
b.current.set(
|
|
9709
|
+
b.current.set(I, k);
|
|
9669
9710
|
}));
|
|
9670
9711
|
}, [l, c]), c.length === 0 ? /* @__PURE__ */ n("tbody", { "data-testid": u, children: /* @__PURE__ */ n("tr", { "data-testid": f, children: /* @__PURE__ */ n("td", { colSpan: Math.max(1, t), className: "p-0", children: /* @__PURE__ */ n(qn, { locale: a }) }) }) }) : /* @__PURE__ */ n("tbody", { "data-testid": u, children: c.map((y) => {
|
|
9671
9712
|
var S, A, z, G;
|
|
9672
|
-
const h = y.index, m = (S = r == null ? void 0 : r(y.original, h)) != null ? S : {},
|
|
9713
|
+
const h = y.index, m = (S = r == null ? void 0 : r(y.original, h)) != null ? S : {}, I = typeof m.onClick == "function", T = m.onClick, k = l && d.has(y.id), C = (H) => {
|
|
9673
9714
|
var P;
|
|
9674
|
-
(P = m.onKeyDown) == null || P.call(m, H),
|
|
9715
|
+
(P = m.onKeyDown) == null || P.call(m, H), I && (H.key !== "Enter" && H.key !== " " || (H.preventDefault(), H.currentTarget.click()));
|
|
9675
9716
|
}, R = p(
|
|
9676
9717
|
"group transition-colors",
|
|
9677
|
-
|
|
9718
|
+
k && "data-[new=true]:animate-in data-[new=true]:fade-in-0",
|
|
9678
9719
|
// Комментарий: если передан onRow — считаем строку интерактивной (как переход/роутинг в main-app)
|
|
9679
|
-
(r ||
|
|
9720
|
+
(r || I) && "cursor-pointer",
|
|
9680
9721
|
m.className
|
|
9681
9722
|
), E = p(
|
|
9682
9723
|
"bg-background group-hover:bg-[#F6F6F7]",
|
|
9683
|
-
|
|
9724
|
+
k && "bg-primary/5 group-hover:bg-primary/10"
|
|
9684
9725
|
);
|
|
9685
9726
|
return /* @__PURE__ */ n(
|
|
9686
9727
|
"tr",
|
|
9687
9728
|
F(w({
|
|
9688
9729
|
"data-testid": f
|
|
9689
9730
|
}, m), {
|
|
9690
|
-
"data-new":
|
|
9731
|
+
"data-new": k ? "true" : void 0,
|
|
9691
9732
|
className: R,
|
|
9692
|
-
onClick:
|
|
9693
|
-
onKeyDown:
|
|
9694
|
-
role:
|
|
9695
|
-
tabIndex:
|
|
9696
|
-
"aria-label":
|
|
9733
|
+
onClick: T,
|
|
9734
|
+
onKeyDown: I ? C : m.onKeyDown,
|
|
9735
|
+
role: I ? (A = m.role) != null ? A : "button" : m.role,
|
|
9736
|
+
tabIndex: I ? (z = m.tabIndex) != null ? z : 0 : m.tabIndex,
|
|
9737
|
+
"aria-label": I ? (G = m["aria-label"]) != null ? G : "Открыть строку" : m["aria-label"],
|
|
9697
9738
|
children: y.getVisibleCells().map((H) => {
|
|
9698
9739
|
var ae, re, X;
|
|
9699
9740
|
const P = H.column.columnDef.meta, D = y.original, O = h === c.length - 1, W = sn(H.column.columnDef.cell, H.getContext()), V = (ae = P == null ? void 0 : P.cellStyle) == null ? void 0 : ae.call(P, D, h), Y = (re = P == null ? void 0 : P.cellClassName) == null ? void 0 : re.call(P, D, h), j = xr(P == null ? void 0 : P.align), J = vr(P == null ? void 0 : P.fixed, H.column.id, o), te = wr(P == null ? void 0 : P.fixed, H.column.id, i, s);
|
|
@@ -9811,12 +9852,12 @@ function $r({
|
|
|
9811
9852
|
}) {
|
|
9812
9853
|
return /* @__PURE__ */ n("thead", { children: e.getHeaderGroups().map((f) => /* @__PURE__ */ n("tr", { className: "h-[37px]", children: f.headers.map((c) => {
|
|
9813
9854
|
var S;
|
|
9814
|
-
const d = c.column.columnDef.meta, g = c.column.getCanSort(), x = c.column.getIsSorted(), b = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, c.column.id, s), m = wr(d == null ? void 0 : d.fixed, c.column.id, l, u),
|
|
9855
|
+
const d = c.column.columnDef.meta, g = c.column.getCanSort(), x = c.column.getIsSorted(), b = void 0, y = xr(d == null ? void 0 : d.align), h = vr(d == null ? void 0 : d.fixed, c.column.id, s), m = wr(d == null ? void 0 : d.fixed, c.column.id, l, u), I = typeof o == "number" ? `${o}px` : o, T = g ? c.column.getToggleSortingHandler() : void 0, k = c.isPlaceholder ? null : sn(c.column.columnDef.header, c.getContext()), C = t.findIndex((A, z) => Ke(A, z) === c.column.id), R = C >= 0 ? t[C] : void 0, E = typeof (R == null ? void 0 : R.title) == "function" ? R.title({
|
|
9815
9856
|
sortColumns: r.map((A) => ({
|
|
9816
9857
|
column: { dataIndex: A.id, key: A.id, columnKey: A.id },
|
|
9817
9858
|
order: A.desc ? "descend" : "ascend"
|
|
9818
9859
|
}))
|
|
9819
|
-
}) :
|
|
9860
|
+
}) : k;
|
|
9820
9861
|
return /* @__PURE__ */ n(
|
|
9821
9862
|
"th",
|
|
9822
9863
|
{
|
|
@@ -9833,7 +9874,7 @@ function $r({
|
|
|
9833
9874
|
"group border-b border-default-background p-2",
|
|
9834
9875
|
((d == null ? void 0 : d.fixed) === "left" || (d == null ? void 0 : d.fixed) === "right") && "sticky z-20"
|
|
9835
9876
|
),
|
|
9836
|
-
style: F(w(F(w(w({}, d == null ? void 0 : d.headerStyle), a &&
|
|
9877
|
+
style: F(w(F(w(w({}, d == null ? void 0 : d.headerStyle), a && I !== void 0 ? { top: I } : {}), {
|
|
9837
9878
|
width: d == null ? void 0 : d.width,
|
|
9838
9879
|
minWidth: d == null ? void 0 : d.minWidth,
|
|
9839
9880
|
maxWidth: d == null ? void 0 : d.maxWidth
|
|
@@ -9843,8 +9884,8 @@ function $r({
|
|
|
9843
9884
|
m
|
|
9844
9885
|
)
|
|
9845
9886
|
}),
|
|
9846
|
-
onClick:
|
|
9847
|
-
children: /* @__PURE__ */
|
|
9887
|
+
onClick: T,
|
|
9888
|
+
children: /* @__PURE__ */ N("div", { className: p("flex w-full items-center gap-2", Es(d == null ? void 0 : d.align)), children: [
|
|
9848
9889
|
E,
|
|
9849
9890
|
g && /* @__PURE__ */ n("span", { title: b, className: "inline-flex items-center", children: /* @__PURE__ */ n(
|
|
9850
9891
|
U,
|
|
@@ -9933,7 +9974,7 @@ function Vs(e, t) {
|
|
|
9933
9974
|
};
|
|
9934
9975
|
}, [e, ...t]), r;
|
|
9935
9976
|
}
|
|
9936
|
-
function
|
|
9977
|
+
function ud({
|
|
9937
9978
|
className: e,
|
|
9938
9979
|
tableClassName: t,
|
|
9939
9980
|
scrollContainerClassName: r,
|
|
@@ -9952,10 +9993,10 @@ function cd({
|
|
|
9952
9993
|
clientSort: y = !1,
|
|
9953
9994
|
rowKey: h,
|
|
9954
9995
|
rowSelection: m,
|
|
9955
|
-
highlightNewRows:
|
|
9956
|
-
pagination:
|
|
9957
|
-
showHeader:
|
|
9958
|
-
showSorterTooltip:
|
|
9996
|
+
highlightNewRows: I = !1,
|
|
9997
|
+
pagination: T,
|
|
9998
|
+
showHeader: k = !0,
|
|
9999
|
+
showSorterTooltip: C = !0,
|
|
9959
10000
|
onRow: R,
|
|
9960
10001
|
locale: E,
|
|
9961
10002
|
tbodyDataTestId: S,
|
|
@@ -10107,7 +10148,7 @@ function cd({
|
|
|
10107
10148
|
const q = Q == null ? void 0 : Q[h];
|
|
10108
10149
|
return q != null ? String(q) : String(se);
|
|
10109
10150
|
} : void 0
|
|
10110
|
-
})), He =
|
|
10151
|
+
})), He = k && u && (o === "window" || o === "auto" && (l == null ? void 0 : l.y) == null), ia = u && !He, sa = ne(() => {
|
|
10111
10152
|
if (He)
|
|
10112
10153
|
return {
|
|
10113
10154
|
top: a != null ? a : 0
|
|
@@ -10129,7 +10170,7 @@ function cd({
|
|
|
10129
10170
|
O.current = !1;
|
|
10130
10171
|
}));
|
|
10131
10172
|
}, []);
|
|
10132
|
-
return /* @__PURE__ */
|
|
10173
|
+
return /* @__PURE__ */ N(
|
|
10133
10174
|
"div",
|
|
10134
10175
|
{
|
|
10135
10176
|
className: p(
|
|
@@ -10148,7 +10189,7 @@ function cd({
|
|
|
10148
10189
|
),
|
|
10149
10190
|
style: sa,
|
|
10150
10191
|
onScroll: () => Nr("header"),
|
|
10151
|
-
children: /* @__PURE__ */
|
|
10192
|
+
children: /* @__PURE__ */ N(
|
|
10152
10193
|
"table",
|
|
10153
10194
|
{
|
|
10154
10195
|
className: p(
|
|
@@ -10166,7 +10207,7 @@ function cd({
|
|
|
10166
10207
|
sorting: wt,
|
|
10167
10208
|
stickyHeader: !1,
|
|
10168
10209
|
stickyHeaderOffset: a,
|
|
10169
|
-
showSorterTooltip:
|
|
10210
|
+
showSorterTooltip: C,
|
|
10170
10211
|
stickyOffsets: Se,
|
|
10171
10212
|
fixedShadowEdges: me,
|
|
10172
10213
|
scrollState: It
|
|
@@ -10191,7 +10232,7 @@ function cd({
|
|
|
10191
10232
|
),
|
|
10192
10233
|
style: la,
|
|
10193
10234
|
onScroll: () => Nr("body"),
|
|
10194
|
-
children: /* @__PURE__ */
|
|
10235
|
+
children: /* @__PURE__ */ N(
|
|
10195
10236
|
"table",
|
|
10196
10237
|
{
|
|
10197
10238
|
className: p(
|
|
@@ -10203,7 +10244,7 @@ function cd({
|
|
|
10203
10244
|
style: tt ? { minWidth: tt } : void 0,
|
|
10204
10245
|
children: [
|
|
10205
10246
|
/* @__PURE__ */ n(Kr, { columns: X }),
|
|
10206
|
-
|
|
10247
|
+
k && !He && /* @__PURE__ */ n(
|
|
10207
10248
|
$r,
|
|
10208
10249
|
{
|
|
10209
10250
|
table: Nt,
|
|
@@ -10211,7 +10252,7 @@ function cd({
|
|
|
10211
10252
|
sorting: wt,
|
|
10212
10253
|
stickyHeader: ia,
|
|
10213
10254
|
stickyHeaderOffset: a,
|
|
10214
|
-
showSorterTooltip:
|
|
10255
|
+
showSorterTooltip: C,
|
|
10215
10256
|
stickyOffsets: Se,
|
|
10216
10257
|
fixedShadowEdges: me,
|
|
10217
10258
|
scrollState: It
|
|
@@ -10236,7 +10277,7 @@ function cd({
|
|
|
10236
10277
|
stickyOffsets: Se,
|
|
10237
10278
|
fixedShadowEdges: me,
|
|
10238
10279
|
scrollState: It,
|
|
10239
|
-
highlightNewRows:
|
|
10280
|
+
highlightNewRows: I,
|
|
10240
10281
|
tbodyDataTestId: S,
|
|
10241
10282
|
rowDataTestId: A
|
|
10242
10283
|
}
|
|
@@ -10268,8 +10309,8 @@ function Ws({
|
|
|
10268
10309
|
className: "animate-pulse",
|
|
10269
10310
|
role: "status",
|
|
10270
10311
|
"aria-label": "Загрузка карточки",
|
|
10271
|
-
children: /* @__PURE__ */
|
|
10272
|
-
/* @__PURE__ */
|
|
10312
|
+
children: /* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-3", children: [
|
|
10313
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-start justify-between gap-3", children: [
|
|
10273
10314
|
/* @__PURE__ */ n(
|
|
10274
10315
|
"div",
|
|
10275
10316
|
{
|
|
@@ -10286,7 +10327,7 @@ function Ws({
|
|
|
10286
10327
|
)
|
|
10287
10328
|
] }),
|
|
10288
10329
|
/* @__PURE__ */ n("div", { className: "h-px w-full bg-default-background/70" }),
|
|
10289
|
-
/* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: o }).map((u, f) => /* @__PURE__ */
|
|
10330
|
+
/* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-2", children: Array.from({ length: o }).map((u, f) => /* @__PURE__ */ N(
|
|
10290
10331
|
"div",
|
|
10291
10332
|
{
|
|
10292
10333
|
className: "flex w-full items-center justify-between gap-3",
|
|
@@ -10309,7 +10350,7 @@ function Ws({
|
|
|
10309
10350
|
},
|
|
10310
10351
|
`card_skeleton_${l}_${f}`
|
|
10311
10352
|
)) }),
|
|
10312
|
-
/* @__PURE__ */
|
|
10353
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-center justify-end gap-2 pt-1", children: [
|
|
10313
10354
|
/* @__PURE__ */ n(
|
|
10314
10355
|
"div",
|
|
10315
10356
|
{
|
|
@@ -10330,7 +10371,7 @@ function Ws({
|
|
|
10330
10371
|
`card_skeleton_${l}`
|
|
10331
10372
|
)) });
|
|
10332
10373
|
}
|
|
10333
|
-
function
|
|
10374
|
+
function fd({
|
|
10334
10375
|
items: e,
|
|
10335
10376
|
loading: t,
|
|
10336
10377
|
loadingRows: r,
|
|
@@ -10348,11 +10389,11 @@ function ud({
|
|
|
10348
10389
|
linesCount: 6
|
|
10349
10390
|
}
|
|
10350
10391
|
) }) : c.length === 0 ? /* @__PURE__ */ n("div", { className: a, "aria-busy": t, children: /* @__PURE__ */ n(qn, { locale: o }) }) : /* @__PURE__ */ n("div", { className: p("flex flex-col gap-2", a), "aria-busy": t, children: c.map((d, g) => {
|
|
10351
|
-
var
|
|
10352
|
-
const x = (
|
|
10392
|
+
var T, k, C, R, E;
|
|
10393
|
+
const x = (T = s == null ? void 0 : s(d, g)) != null ? T : {}, b = typeof x.onClick == "function", y = (k = i == null ? void 0 : i(d, g)) != null ? k : g, h = x.onClick, m = (S) => {
|
|
10353
10394
|
var A;
|
|
10354
10395
|
(A = x.onKeyDown) == null || A.call(x, S), b && (S.key !== "Enter" && S.key !== " " || (S.preventDefault(), S.currentTarget.click()));
|
|
10355
|
-
},
|
|
10396
|
+
}, I = p(
|
|
10356
10397
|
b && "cursor-pointer hover:bg-[#F6F6F7]",
|
|
10357
10398
|
b && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
10358
10399
|
x.className
|
|
@@ -10364,10 +10405,10 @@ function ud({
|
|
|
10364
10405
|
radius: "lg",
|
|
10365
10406
|
padding: "xs"
|
|
10366
10407
|
}, x), {
|
|
10367
|
-
className:
|
|
10408
|
+
className: I,
|
|
10368
10409
|
onClick: h,
|
|
10369
10410
|
onKeyDown: b ? m : x.onKeyDown,
|
|
10370
|
-
role: b ? (
|
|
10411
|
+
role: b ? (C = x.role) != null ? C : "button" : x.role,
|
|
10371
10412
|
tabIndex: b ? (R = x.tabIndex) != null ? R : 0 : x.tabIndex,
|
|
10372
10413
|
"aria-label": b ? (E = x["aria-label"]) != null ? E : "Открыть карточку" : x["aria-label"],
|
|
10373
10414
|
children: l == null ? void 0 : l(d, g)
|
|
@@ -10376,7 +10417,7 @@ function ud({
|
|
|
10376
10417
|
);
|
|
10377
10418
|
}) });
|
|
10378
10419
|
}
|
|
10379
|
-
function
|
|
10420
|
+
function md({
|
|
10380
10421
|
title: e,
|
|
10381
10422
|
controls: t,
|
|
10382
10423
|
onChange: r,
|
|
@@ -10387,7 +10428,7 @@ function fd({
|
|
|
10387
10428
|
const s = (l, u) => {
|
|
10388
10429
|
r(l, u);
|
|
10389
10430
|
};
|
|
10390
|
-
return /* @__PURE__ */
|
|
10431
|
+
return /* @__PURE__ */ N(Je, { children: [
|
|
10391
10432
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
10392
10433
|
ee,
|
|
10393
10434
|
{
|
|
@@ -10402,20 +10443,20 @@ function fd({
|
|
|
10402
10443
|
title: a
|
|
10403
10444
|
}
|
|
10404
10445
|
) }),
|
|
10405
|
-
/* @__PURE__ */
|
|
10446
|
+
/* @__PURE__ */ N(
|
|
10406
10447
|
Ge,
|
|
10407
10448
|
{
|
|
10408
10449
|
align: "end",
|
|
10409
10450
|
sideOffset: 8,
|
|
10410
10451
|
className: "w-72 rounded-lg border border-border bg-popover p-1 shadow-md",
|
|
10411
10452
|
children: [
|
|
10412
|
-
e && /* @__PURE__ */
|
|
10453
|
+
e && /* @__PURE__ */ N("div", { className: "px-3 pt-2", children: [
|
|
10413
10454
|
/* @__PURE__ */ n(_, { weight: "bold", children: e }),
|
|
10414
10455
|
/* @__PURE__ */ n(Yi, { className: "mt-2" })
|
|
10415
10456
|
] }),
|
|
10416
10457
|
/* @__PURE__ */ n("div", { className: "flex flex-col", "data-testid": o, children: t.map((l) => {
|
|
10417
10458
|
const u = () => s(l.key, !l.enabled);
|
|
10418
|
-
return /* @__PURE__ */
|
|
10459
|
+
return /* @__PURE__ */ N(
|
|
10419
10460
|
"label",
|
|
10420
10461
|
{
|
|
10421
10462
|
className: p(
|
|
@@ -10470,7 +10511,7 @@ const Gs = ge(
|
|
|
10470
10511
|
},
|
|
10471
10512
|
defaultVariants: { size: "md", variant: "default" }
|
|
10472
10513
|
}
|
|
10473
|
-
),
|
|
10514
|
+
), pd = We.Root, Hs = v.forwardRef((i, o) => {
|
|
10474
10515
|
var s = i, { size: e = "md", variant: t = "default", className: r } = s, a = B(s, ["size", "variant", "className"]);
|
|
10475
10516
|
return /* @__PURE__ */ n(
|
|
10476
10517
|
We.List,
|
|
@@ -10516,7 +10557,7 @@ const Us = v.forwardRef(
|
|
|
10516
10557
|
"disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400 disabled:shadow-none",
|
|
10517
10558
|
r
|
|
10518
10559
|
), x = () => a ? v.isValidElement(a) ? a : /* @__PURE__ */ n(U, { icon: a }) : null;
|
|
10519
|
-
return /* @__PURE__ */
|
|
10560
|
+
return /* @__PURE__ */ N(
|
|
10520
10561
|
We.Trigger,
|
|
10521
10562
|
F(w({
|
|
10522
10563
|
ref: f,
|
|
@@ -10611,7 +10652,7 @@ const $s = ge(
|
|
|
10611
10652
|
"className",
|
|
10612
10653
|
"data-testid"
|
|
10613
10654
|
]);
|
|
10614
|
-
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null, b = /* @__PURE__ */
|
|
10655
|
+
const x = () => o ? /* @__PURE__ */ n(U, w({ icon: o, size: 12 }, i)) : null, b = /* @__PURE__ */ N(be, { children: [
|
|
10615
10656
|
a === "start" && x(),
|
|
10616
10657
|
s,
|
|
10617
10658
|
a === "end" && x()
|
|
@@ -10706,9 +10747,9 @@ const Js = v.forwardRef(
|
|
|
10706
10747
|
"size"
|
|
10707
10748
|
]);
|
|
10708
10749
|
const h = Zs(s, l, g.placeholder, g.value);
|
|
10709
|
-
return Qr(x, () => h.current, [h]), /* @__PURE__ */
|
|
10750
|
+
return Qr(x, () => h.current, [h]), /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
10710
10751
|
a && /* @__PURE__ */ n(_, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
|
|
10711
|
-
/* @__PURE__ */
|
|
10752
|
+
/* @__PURE__ */ N(
|
|
10712
10753
|
"div",
|
|
10713
10754
|
{
|
|
10714
10755
|
className: p(
|
|
@@ -10789,7 +10830,7 @@ function Yr(e) {
|
|
|
10789
10830
|
const [r, a] = e.split(":").map(Number);
|
|
10790
10831
|
return r >= 0 && r <= 23 && a >= 0 && a <= 59;
|
|
10791
10832
|
}
|
|
10792
|
-
function
|
|
10833
|
+
function hd({
|
|
10793
10834
|
time: e,
|
|
10794
10835
|
onSelect: t,
|
|
10795
10836
|
disabled: r = !1,
|
|
@@ -10812,7 +10853,7 @@ function pd({
|
|
|
10812
10853
|
}, y = (h) => {
|
|
10813
10854
|
f == null || f(h), d && !Yr(d) && (g(""), t == null || t(void 0));
|
|
10814
10855
|
};
|
|
10815
|
-
return /* @__PURE__ */
|
|
10856
|
+
return /* @__PURE__ */ N("div", { className: p("w-full", o), children: [
|
|
10816
10857
|
u && /* @__PURE__ */ n(
|
|
10817
10858
|
_,
|
|
10818
10859
|
{
|
|
@@ -10825,7 +10866,7 @@ function pd({
|
|
|
10825
10866
|
children: u
|
|
10826
10867
|
}
|
|
10827
10868
|
),
|
|
10828
|
-
/* @__PURE__ */
|
|
10869
|
+
/* @__PURE__ */ N("div", { className: "relative flex w-full items-center", children: [
|
|
10829
10870
|
/* @__PURE__ */ n(
|
|
10830
10871
|
"input",
|
|
10831
10872
|
{
|
|
@@ -10854,7 +10895,7 @@ function pd({
|
|
|
10854
10895
|
"data-testid": c
|
|
10855
10896
|
}
|
|
10856
10897
|
),
|
|
10857
|
-
/* @__PURE__ */
|
|
10898
|
+
/* @__PURE__ */ N("div", { className: "pointer-events-none absolute right-3 flex items-center", children: [
|
|
10858
10899
|
/* @__PURE__ */ n(U, { icon: "TimeIcon", className: "text-muted-foreground" }),
|
|
10859
10900
|
s && /* @__PURE__ */ n(
|
|
10860
10901
|
U,
|
|
@@ -10873,7 +10914,7 @@ function pd({
|
|
|
10873
10914
|
function qs(e, t) {
|
|
10874
10915
|
return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
|
|
10875
10916
|
}
|
|
10876
|
-
function
|
|
10917
|
+
function gd({
|
|
10877
10918
|
value: e,
|
|
10878
10919
|
onTimeChange: t,
|
|
10879
10920
|
placeholder: r = {
|
|
@@ -10897,7 +10938,7 @@ function hd({
|
|
|
10897
10938
|
hasToError: () => P(s) ? !0 : D(s) && !!s.to,
|
|
10898
10939
|
getErrorText: () => P(s) ? s : D(s) ? s.from && s.to ? `${s.from}, ${s.to}` : s.from || s.to || "" : ""
|
|
10899
10940
|
};
|
|
10900
|
-
}, [s]), { hasAnyError:
|
|
10941
|
+
}, [s]), { hasAnyError: I, hasFromError: T, hasToError: k, getErrorText: C } = m;
|
|
10901
10942
|
v.useEffect(() => {
|
|
10902
10943
|
g((e == null ? void 0 : e.from) || ""), b((e == null ? void 0 : e.to) || ""), y.current = (e == null ? void 0 : e.from) || "", h.current = (e == null ? void 0 : e.to) || "";
|
|
10903
10944
|
}, [e]);
|
|
@@ -10928,7 +10969,7 @@ function hd({
|
|
|
10928
10969
|
}, H = (P) => {
|
|
10929
10970
|
f == null || f(P), x && !E(x) && (b(""), S(d, ""));
|
|
10930
10971
|
};
|
|
10931
|
-
return /* @__PURE__ */
|
|
10972
|
+
return /* @__PURE__ */ N("div", { className: p("w-full", o), children: [
|
|
10932
10973
|
u && /* @__PURE__ */ n(
|
|
10933
10974
|
_,
|
|
10934
10975
|
{
|
|
@@ -10941,7 +10982,7 @@ function hd({
|
|
|
10941
10982
|
children: u
|
|
10942
10983
|
}
|
|
10943
10984
|
),
|
|
10944
|
-
/* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */
|
|
10985
|
+
/* @__PURE__ */ n("div", { className: "relative flex w-full items-center", children: /* @__PURE__ */ N(
|
|
10945
10986
|
"div",
|
|
10946
10987
|
{
|
|
10947
10988
|
className: p(
|
|
@@ -10951,15 +10992,15 @@ function hd({
|
|
|
10951
10992
|
"enabled:hover:border-1",
|
|
10952
10993
|
"bg-background w-full",
|
|
10953
10994
|
{
|
|
10954
|
-
"border-border hover:border-hover-input-primary enabled:hover:border-primary focus-within:border-primary focus-within:shadow-focus": !
|
|
10955
|
-
"border-destructive focus-within:border-destructive enabled:hover:border-destructive focus:shadow-error":
|
|
10995
|
+
"border-border hover:border-hover-input-primary enabled:hover:border-primary focus-within:border-primary focus-within:shadow-focus": !I(),
|
|
10996
|
+
"border-destructive focus-within:border-destructive enabled:hover:border-destructive focus:shadow-error": I(),
|
|
10956
10997
|
"h-8 px-2.5 pt-1.5 pr-2 pb-1.5 text-[14px] leading-5": i === "md",
|
|
10957
10998
|
"h-10 px-3 pt-2 pr-3 pb-2 text-[16px] leading-[22px]": i === "lg",
|
|
10958
10999
|
"bg-muted text-muted-foreground cursor-not-allowed": a
|
|
10959
11000
|
}
|
|
10960
11001
|
),
|
|
10961
11002
|
children: [
|
|
10962
|
-
/* @__PURE__ */
|
|
11003
|
+
/* @__PURE__ */ N("div", { className: "flex w-full items-center", children: [
|
|
10963
11004
|
/* @__PURE__ */ n(
|
|
10964
11005
|
"input",
|
|
10965
11006
|
{
|
|
@@ -10974,7 +11015,7 @@ function hd({
|
|
|
10974
11015
|
"font-graphik w-0 flex-1 border-none bg-transparent outline-none",
|
|
10975
11016
|
"placeholder:text-muted-foreground",
|
|
10976
11017
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
10977
|
-
|
|
11018
|
+
T() && "text-destructive",
|
|
10978
11019
|
{
|
|
10979
11020
|
"block h-auto p-0 text-[14px] leading-5": i === "md",
|
|
10980
11021
|
"block h-auto p-0 text-[16px] leading-[22px]": i === "lg",
|
|
@@ -11005,7 +11046,7 @@ function hd({
|
|
|
11005
11046
|
"font-graphik w-0 flex-1 border-none bg-transparent outline-none",
|
|
11006
11047
|
"placeholder:text-muted-foreground",
|
|
11007
11048
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
11008
|
-
|
|
11049
|
+
k() && "text-destructive",
|
|
11009
11050
|
{
|
|
11010
11051
|
"block h-auto p-0 text-[14px] leading-5": i === "md",
|
|
11011
11052
|
"block h-auto p-0 text-[16px] leading-[22px]": i === "lg",
|
|
@@ -11016,9 +11057,9 @@ function hd({
|
|
|
11016
11057
|
}
|
|
11017
11058
|
)
|
|
11018
11059
|
] }),
|
|
11019
|
-
/* @__PURE__ */
|
|
11060
|
+
/* @__PURE__ */ N("div", { className: "pointer-events-none ml-2 flex items-center gap-1.5", children: [
|
|
11020
11061
|
/* @__PURE__ */ n(U, { icon: "TimeIcon", className: "text-muted-foreground" }),
|
|
11021
|
-
|
|
11062
|
+
I() && /* @__PURE__ */ n(
|
|
11022
11063
|
U,
|
|
11023
11064
|
{
|
|
11024
11065
|
icon: "ErrorFillIcon",
|
|
@@ -11030,12 +11071,12 @@ function hd({
|
|
|
11030
11071
|
]
|
|
11031
11072
|
}
|
|
11032
11073
|
) }),
|
|
11033
|
-
l && !
|
|
11034
|
-
|
|
11074
|
+
l && !I() && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: l }),
|
|
11075
|
+
I() && /* @__PURE__ */ n(_, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: C() })
|
|
11035
11076
|
] });
|
|
11036
11077
|
}
|
|
11037
|
-
const
|
|
11038
|
-
/* @__PURE__ */
|
|
11078
|
+
const bd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ N("div", { className: "flex", children: [
|
|
11079
|
+
/* @__PURE__ */ N("div", { className: "relative mr-4 flex flex-col items-center", children: [
|
|
11039
11080
|
/* @__PURE__ */ n(
|
|
11040
11081
|
"div",
|
|
11041
11082
|
{
|
|
@@ -11048,8 +11089,8 @@ const gd = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className:
|
|
|
11048
11089
|
),
|
|
11049
11090
|
a < e.length - 1 && /* @__PURE__ */ n("div", { className: "border-border-timeline w-0 flex-1 border-l-2" })
|
|
11050
11091
|
] }),
|
|
11051
|
-
/* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */
|
|
11052
|
-
/* @__PURE__ */
|
|
11092
|
+
/* @__PURE__ */ n("div", { className: "-mt-[5px] flex-1 pb-4", children: /* @__PURE__ */ N("div", { className: "flex items-start justify-between", children: [
|
|
11093
|
+
/* @__PURE__ */ N("div", { className: "flex-1", children: [
|
|
11053
11094
|
/* @__PURE__ */ n(
|
|
11054
11095
|
_,
|
|
11055
11096
|
{
|
|
@@ -11108,7 +11149,7 @@ function st(e, t, r) {
|
|
|
11108
11149
|
function el(e, t) {
|
|
11109
11150
|
return le(e, t);
|
|
11110
11151
|
}
|
|
11111
|
-
const
|
|
11152
|
+
const xd = Object.assign(el, {
|
|
11112
11153
|
success: (e, t) => {
|
|
11113
11154
|
const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : st(
|
|
11114
11155
|
e,
|
|
@@ -11276,7 +11317,7 @@ const bd = Object.assign(el, {
|
|
|
11276
11317
|
}, o));
|
|
11277
11318
|
}
|
|
11278
11319
|
});
|
|
11279
|
-
function
|
|
11320
|
+
function yd(t) {
|
|
11280
11321
|
var e = B(t, []);
|
|
11281
11322
|
return /* @__PURE__ */ n(
|
|
11282
11323
|
Ca,
|
|
@@ -11309,7 +11350,7 @@ function xd(t) {
|
|
|
11309
11350
|
}, e)
|
|
11310
11351
|
);
|
|
11311
11352
|
}
|
|
11312
|
-
const
|
|
11353
|
+
const vd = _e.Provider, tl = 120, ea = v.createContext(null);
|
|
11313
11354
|
function rl() {
|
|
11314
11355
|
const [e, t] = v.useState(!1);
|
|
11315
11356
|
return v.useEffect(() => {
|
|
@@ -11321,7 +11362,7 @@ function rl() {
|
|
|
11321
11362
|
return a(), r.addEventListener("change", a), () => r.removeEventListener("change", a);
|
|
11322
11363
|
}, []), e;
|
|
11323
11364
|
}
|
|
11324
|
-
function
|
|
11365
|
+
function wd(o) {
|
|
11325
11366
|
var i = o, {
|
|
11326
11367
|
open: e,
|
|
11327
11368
|
defaultOpen: t,
|
|
@@ -11376,7 +11417,7 @@ const al = v.forwardRef(
|
|
|
11376
11417
|
"side",
|
|
11377
11418
|
"children"
|
|
11378
11419
|
]);
|
|
11379
|
-
return /* @__PURE__ */ n(_e.Portal, { children: /* @__PURE__ */
|
|
11420
|
+
return /* @__PURE__ */ n(_e.Portal, { children: /* @__PURE__ */ N(
|
|
11380
11421
|
_e.Content,
|
|
11381
11422
|
F(w({
|
|
11382
11423
|
ref: s,
|
|
@@ -11458,7 +11499,7 @@ function Jr(e) {
|
|
|
11458
11499
|
return "Ошибка загрузки файла";
|
|
11459
11500
|
}
|
|
11460
11501
|
function ol(e) {
|
|
11461
|
-
return
|
|
11502
|
+
return M(this, null, function* () {
|
|
11462
11503
|
var a;
|
|
11463
11504
|
return ((a = e.headers.get("content-type")) != null ? a : "").includes("application/json") ? e.json() : (yield e.text()) || null;
|
|
11464
11505
|
});
|
|
@@ -11500,7 +11541,7 @@ function ra({
|
|
|
11500
11541
|
return t && D.size > t ? `Максимальный размер файла ${(t / 1024 / 1024).toFixed(2)}MB` : null;
|
|
11501
11542
|
},
|
|
11502
11543
|
[e, t]
|
|
11503
|
-
),
|
|
11544
|
+
), I = $(
|
|
11504
11545
|
(D, O) => {
|
|
11505
11546
|
g == null || g({
|
|
11506
11547
|
file: D,
|
|
@@ -11508,8 +11549,8 @@ function ra({
|
|
|
11508
11549
|
});
|
|
11509
11550
|
},
|
|
11510
11551
|
[g]
|
|
11511
|
-
),
|
|
11512
|
-
(D) =>
|
|
11552
|
+
), T = $(
|
|
11553
|
+
(D) => M(null, null, function* () {
|
|
11513
11554
|
if (!l)
|
|
11514
11555
|
return;
|
|
11515
11556
|
let O = D.map(il);
|
|
@@ -11517,7 +11558,7 @@ function ra({
|
|
|
11517
11558
|
const V = F(w({}, W), {
|
|
11518
11559
|
status: "uploading"
|
|
11519
11560
|
});
|
|
11520
|
-
O = O.map((Y) => Y.uid === W.uid ? V : Y),
|
|
11561
|
+
O = O.map((Y) => Y.uid === W.uid ? V : Y), I(V, O);
|
|
11521
11562
|
try {
|
|
11522
11563
|
const Y = new FormData();
|
|
11523
11564
|
Y.append(s, W.originFileObj);
|
|
@@ -11537,34 +11578,34 @@ function ra({
|
|
|
11537
11578
|
response: te,
|
|
11538
11579
|
error: re
|
|
11539
11580
|
});
|
|
11540
|
-
O = O.map((K) => K.uid === W.uid ? X : K),
|
|
11581
|
+
O = O.map((K) => K.uid === W.uid ? X : K), I(X, O), i == null || i(re);
|
|
11541
11582
|
continue;
|
|
11542
11583
|
}
|
|
11543
11584
|
const ae = F(w({}, V), {
|
|
11544
11585
|
status: "done",
|
|
11545
11586
|
response: te
|
|
11546
11587
|
});
|
|
11547
|
-
O = O.map((re) => re.uid === W.uid ? ae : re),
|
|
11588
|
+
O = O.map((re) => re.uid === W.uid ? ae : re), I(ae, O);
|
|
11548
11589
|
} catch (Y) {
|
|
11549
11590
|
const j = Jr(Y), J = F(w({}, V), {
|
|
11550
11591
|
status: "error",
|
|
11551
11592
|
error: j
|
|
11552
11593
|
});
|
|
11553
|
-
O = O.map((te) => te.uid === W.uid ? J : te),
|
|
11594
|
+
O = O.map((te) => te.uid === W.uid ? J : te), I(J, O), i == null || i(j);
|
|
11554
11595
|
}
|
|
11555
11596
|
}
|
|
11556
11597
|
}),
|
|
11557
11598
|
[
|
|
11558
11599
|
l,
|
|
11559
11600
|
f,
|
|
11560
|
-
|
|
11601
|
+
I,
|
|
11561
11602
|
c,
|
|
11562
11603
|
u,
|
|
11563
11604
|
s,
|
|
11564
11605
|
i,
|
|
11565
11606
|
d
|
|
11566
11607
|
]
|
|
11567
|
-
),
|
|
11608
|
+
), k = $(
|
|
11568
11609
|
(D) => {
|
|
11569
11610
|
if (!D || D.length === 0 || r)
|
|
11570
11611
|
return;
|
|
@@ -11576,14 +11617,14 @@ function ra({
|
|
|
11576
11617
|
return;
|
|
11577
11618
|
}
|
|
11578
11619
|
}
|
|
11579
|
-
a == null || a(W), l &&
|
|
11620
|
+
a == null || a(W), l && T(W);
|
|
11580
11621
|
},
|
|
11581
|
-
[l, r, i, a,
|
|
11582
|
-
),
|
|
11622
|
+
[l, r, i, a, T, m]
|
|
11623
|
+
), C = $(
|
|
11583
11624
|
(D) => {
|
|
11584
|
-
|
|
11625
|
+
k(D.target.files), D.target.value = "";
|
|
11585
11626
|
},
|
|
11586
|
-
[
|
|
11627
|
+
[k]
|
|
11587
11628
|
), R = $(() => {
|
|
11588
11629
|
var D;
|
|
11589
11630
|
r || (D = y.current) == null || D.click();
|
|
@@ -11603,9 +11644,9 @@ function ra({
|
|
|
11603
11644
|
D.preventDefault(), D.stopPropagation();
|
|
11604
11645
|
}, []), G = $(
|
|
11605
11646
|
(D) => {
|
|
11606
|
-
D.preventDefault(), D.stopPropagation(), h.current = 0, b(!1),
|
|
11647
|
+
D.preventDefault(), D.stopPropagation(), h.current = 0, b(!1), k(D.dataTransfer.files);
|
|
11607
11648
|
},
|
|
11608
|
-
[
|
|
11649
|
+
[k]
|
|
11609
11650
|
), H = $(
|
|
11610
11651
|
(D = {}) => {
|
|
11611
11652
|
var O, W;
|
|
@@ -11652,7 +11693,7 @@ function ra({
|
|
|
11652
11693
|
() => ({
|
|
11653
11694
|
isDragging: x,
|
|
11654
11695
|
inputRef: y,
|
|
11655
|
-
handleInputChange:
|
|
11696
|
+
handleInputChange: C,
|
|
11656
11697
|
handleDeleteFile: E,
|
|
11657
11698
|
handleTriggerClick: R,
|
|
11658
11699
|
getTriggerProps: H,
|
|
@@ -11662,7 +11703,7 @@ function ra({
|
|
|
11662
11703
|
P,
|
|
11663
11704
|
H,
|
|
11664
11705
|
E,
|
|
11665
|
-
|
|
11706
|
+
C,
|
|
11666
11707
|
R,
|
|
11667
11708
|
x
|
|
11668
11709
|
]
|
|
@@ -11688,10 +11729,10 @@ const na = v.forwardRef(
|
|
|
11688
11729
|
classNames: y,
|
|
11689
11730
|
dropzoneText: h = "Добавьте файл для загрузки",
|
|
11690
11731
|
hint: m,
|
|
11691
|
-
buttonText:
|
|
11692
|
-
errorText:
|
|
11693
|
-
name:
|
|
11694
|
-
action:
|
|
11732
|
+
buttonText: I = "Выбрать файл",
|
|
11733
|
+
errorText: T,
|
|
11734
|
+
name: k,
|
|
11735
|
+
action: C,
|
|
11695
11736
|
method: R,
|
|
11696
11737
|
data: E,
|
|
11697
11738
|
headers: S,
|
|
@@ -11713,8 +11754,8 @@ const na = v.forwardRef(
|
|
|
11713
11754
|
onUpload: u,
|
|
11714
11755
|
onDelete: f,
|
|
11715
11756
|
onError: c,
|
|
11716
|
-
name:
|
|
11717
|
-
action:
|
|
11757
|
+
name: k,
|
|
11758
|
+
action: C,
|
|
11718
11759
|
method: R,
|
|
11719
11760
|
data: E,
|
|
11720
11761
|
headers: S,
|
|
@@ -11726,7 +11767,7 @@ const na = v.forwardRef(
|
|
|
11726
11767
|
const J = 1024, te = ["Bytes", "KB", "MB", "GB"], ae = Math.floor(Math.log(j) / Math.log(J));
|
|
11727
11768
|
return `${Math.round(j / Ar(J, ae))} ${te[ae]}`;
|
|
11728
11769
|
};
|
|
11729
|
-
return /* @__PURE__ */
|
|
11770
|
+
return /* @__PURE__ */ N(
|
|
11730
11771
|
"div",
|
|
11731
11772
|
{
|
|
11732
11773
|
ref: H,
|
|
@@ -11745,8 +11786,8 @@ const na = v.forwardRef(
|
|
|
11745
11786
|
disabled: a
|
|
11746
11787
|
}
|
|
11747
11788
|
),
|
|
11748
|
-
(d.length === 0 || b) && /* @__PURE__ */
|
|
11749
|
-
/* @__PURE__ */
|
|
11789
|
+
(d.length === 0 || b) && /* @__PURE__ */ N("div", { className: "flex flex-col gap-1.5", children: [
|
|
11790
|
+
/* @__PURE__ */ N(
|
|
11750
11791
|
"div",
|
|
11751
11792
|
F(w({}, V({
|
|
11752
11793
|
className: p(
|
|
@@ -11758,9 +11799,9 @@ const na = v.forwardRef(
|
|
|
11758
11799
|
)
|
|
11759
11800
|
})), {
|
|
11760
11801
|
children: [
|
|
11761
|
-
/* @__PURE__ */
|
|
11802
|
+
/* @__PURE__ */ N("div", { className: p("flex flex-col items-center gap-2.5", y == null ? void 0 : y.dropzoneContainer), children: [
|
|
11762
11803
|
/* @__PURE__ */ n(U, { icon: "UploadIcon", size: 32, className: "text-secondary" }),
|
|
11763
|
-
/* @__PURE__ */
|
|
11804
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-0.5 text-center", children: [
|
|
11764
11805
|
/* @__PURE__ */ n(
|
|
11765
11806
|
_,
|
|
11766
11807
|
{
|
|
@@ -11772,9 +11813,9 @@ const na = v.forwardRef(
|
|
|
11772
11813
|
),
|
|
11773
11814
|
/* @__PURE__ */ n(_, { variant: "p2", textColor: "secondary", className: "text-center", children: "или перетащите сюда" })
|
|
11774
11815
|
] }),
|
|
11775
|
-
|
|
11816
|
+
T && /* @__PURE__ */ n(_, { variant: "p2", textColor: "destructive", className: "text-center", children: T })
|
|
11776
11817
|
] }),
|
|
11777
|
-
l && /* @__PURE__ */ n(ee, { variant: "dashed", size: "md", disabled: a, children:
|
|
11818
|
+
l && /* @__PURE__ */ n(ee, { variant: "dashed", size: "md", disabled: a, children: I })
|
|
11778
11819
|
]
|
|
11779
11820
|
})
|
|
11780
11821
|
),
|
|
@@ -11791,7 +11832,7 @@ const na = v.forwardRef(
|
|
|
11791
11832
|
x && /* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ n(vs, { value: g }) }),
|
|
11792
11833
|
d.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: d.map((j) => {
|
|
11793
11834
|
const J = j.status === "error", te = J ? "FileErrorIcon" : "FileSuccessIcon";
|
|
11794
|
-
return /* @__PURE__ */
|
|
11835
|
+
return /* @__PURE__ */ N(
|
|
11795
11836
|
$e,
|
|
11796
11837
|
{
|
|
11797
11838
|
bordered: !0,
|
|
@@ -11802,7 +11843,7 @@ const na = v.forwardRef(
|
|
|
11802
11843
|
justify: "between",
|
|
11803
11844
|
className: p("group transition-colors border-border"),
|
|
11804
11845
|
children: [
|
|
11805
|
-
/* @__PURE__ */
|
|
11846
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
11806
11847
|
/* @__PURE__ */ n(
|
|
11807
11848
|
U,
|
|
11808
11849
|
{
|
|
@@ -11810,7 +11851,7 @@ const na = v.forwardRef(
|
|
|
11810
11851
|
size: 24
|
|
11811
11852
|
}
|
|
11812
11853
|
),
|
|
11813
|
-
/* @__PURE__ */
|
|
11854
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11814
11855
|
/* @__PURE__ */ n(_, { variant: "p2", className: "truncate", children: j.name }),
|
|
11815
11856
|
(J ? !!j.error : j.size !== void 0) && /* @__PURE__ */ n(
|
|
11816
11857
|
_,
|
|
@@ -11866,9 +11907,9 @@ function sl({
|
|
|
11866
11907
|
children: y,
|
|
11867
11908
|
className: h,
|
|
11868
11909
|
onClick: m,
|
|
11869
|
-
buttonProps:
|
|
11910
|
+
buttonProps: I
|
|
11870
11911
|
}) {
|
|
11871
|
-
const { inputRef:
|
|
11912
|
+
const { inputRef: T, handleInputChange: k, handleTriggerClick: C, getTriggerProps: R } = ra({
|
|
11872
11913
|
accept: t,
|
|
11873
11914
|
multiple: r,
|
|
11874
11915
|
maxSize: a,
|
|
@@ -11884,15 +11925,15 @@ function sl({
|
|
|
11884
11925
|
withCredentials: x,
|
|
11885
11926
|
onChange: b
|
|
11886
11927
|
});
|
|
11887
|
-
return /* @__PURE__ */
|
|
11928
|
+
return /* @__PURE__ */ N(be, { children: [
|
|
11888
11929
|
/* @__PURE__ */ n(
|
|
11889
11930
|
"input",
|
|
11890
11931
|
{
|
|
11891
|
-
ref:
|
|
11932
|
+
ref: T,
|
|
11892
11933
|
type: "file",
|
|
11893
11934
|
accept: t,
|
|
11894
11935
|
multiple: r,
|
|
11895
|
-
onChange:
|
|
11936
|
+
onChange: k,
|
|
11896
11937
|
className: "hidden",
|
|
11897
11938
|
disabled: o
|
|
11898
11939
|
}
|
|
@@ -11907,11 +11948,11 @@ function sl({
|
|
|
11907
11948
|
})
|
|
11908
11949
|
) : /* @__PURE__ */ n(
|
|
11909
11950
|
ee,
|
|
11910
|
-
F(w({},
|
|
11911
|
-
className: p(h,
|
|
11951
|
+
F(w({}, I), {
|
|
11952
|
+
className: p(h, I == null ? void 0 : I.className),
|
|
11912
11953
|
disabled: o,
|
|
11913
11954
|
onClick: (E) => {
|
|
11914
|
-
m == null || m(E), E.defaultPrevented ||
|
|
11955
|
+
m == null || m(E), E.defaultPrevented || C();
|
|
11915
11956
|
},
|
|
11916
11957
|
children: y != null ? y : "Выбрать файл"
|
|
11917
11958
|
})
|
|
@@ -12004,9 +12045,10 @@ export {
|
|
|
12004
12045
|
bn as MOBILE_BREAKPOINT,
|
|
12005
12046
|
$n as MaskedInput,
|
|
12006
12047
|
Mo as MultiSelect,
|
|
12007
|
-
id as
|
|
12008
|
-
sd as
|
|
12009
|
-
ld as
|
|
12048
|
+
id as NumericTimeline,
|
|
12049
|
+
sd as OtpInput,
|
|
12050
|
+
ld as Pagination,
|
|
12051
|
+
dd as PhoneInput,
|
|
12010
12052
|
Jn as Pointline,
|
|
12011
12053
|
Je as Popover,
|
|
12012
12054
|
Gl as PopoverAnchor,
|
|
@@ -12032,24 +12074,24 @@ export {
|
|
|
12032
12074
|
Jl as SimpleCarousel,
|
|
12033
12075
|
Ss as SingleSegment,
|
|
12034
12076
|
je as Spinner,
|
|
12035
|
-
|
|
12077
|
+
cd as Stepper,
|
|
12036
12078
|
Rs as Switch,
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12079
|
+
ud as Table,
|
|
12080
|
+
fd as TableCards,
|
|
12081
|
+
md as TableSettings,
|
|
12082
|
+
pd as Tabs,
|
|
12041
12083
|
Ks as TabsContent,
|
|
12042
12084
|
Hs as TabsList,
|
|
12043
12085
|
Us as TabsTrigger,
|
|
12044
12086
|
Ys as Tag,
|
|
12045
12087
|
Js as Textarea,
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12088
|
+
hd as TimePicker,
|
|
12089
|
+
gd as TimeRangePicker,
|
|
12090
|
+
bd as Timeline,
|
|
12091
|
+
yd as Toaster,
|
|
12092
|
+
wd as Tooltip,
|
|
12051
12093
|
al as TooltipContent,
|
|
12052
|
-
|
|
12094
|
+
vd as TooltipProvider,
|
|
12053
12095
|
nl as TooltipTrigger,
|
|
12054
12096
|
_ as Typography,
|
|
12055
12097
|
ll as Uploader,
|
|
@@ -12068,7 +12110,7 @@ export {
|
|
|
12068
12110
|
Ts as switchVariants,
|
|
12069
12111
|
$s as tagVariants,
|
|
12070
12112
|
Ms as thumbVariants,
|
|
12071
|
-
|
|
12113
|
+
xd as toast,
|
|
12072
12114
|
Lr as typographyVariants,
|
|
12073
12115
|
_n as useCarousel,
|
|
12074
12116
|
Ut as useCarouselContext,
|