@helloimkostya/konsolpro-custom-ui-mini 0.0.401
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/README.md +116 -0
- package/assets/alfa-BqdpLXjE.png +0 -0
- package/assets/doc-CA2MQk3m.webp +0 -0
- package/assets/document-approved-CkP0p152.webp +0 -0
- package/assets/document-sign-DtWnrhUb.webp +0 -0
- package/assets/documents-refresh-Ct8s1Pc3.webp +0 -0
- package/assets/download-D4NtsTXF.webp +0 -0
- package/assets/empty-box-ByMlwLaV.png +0 -0
- package/assets/headphones-b1FlU-5n.webp +0 -0
- package/assets/magnifying-glass-DnHnztsH.webp +0 -0
- package/assets/mandarin-O1JQvcin.png +0 -0
- package/assets/person-Dnyaeaax.webp +0 -0
- package/assets/plus-XlrU9iHE.webp +0 -0
- package/assets/pocket-DumMTe-y.webp +0 -0
- package/assets/status-error-CVSJeY0m.webp +0 -0
- package/assets/status-success-CQUzL9Lb.webp +0 -0
- package/assets/status-warning-qsHG0-rO.webp +0 -0
- package/assets/tbank-DHDEULnP.png +0 -0
- package/assets/torn-paper-Bxt8F9jg.webp +0 -0
- package/assets/user-add-BchFss_X.webp +0 -0
- package/assets/user-approved-BKiSeYH5.webp +0 -0
- package/assets/user-question-BrqYjUap.webp +0 -0
- package/assets/wallet-B1cH4oVg.webp +0 -0
- package/chunks/account-balance-icon-CKxx1j3X.js +17 -0
- package/chunks/add-circle-icon-D3XpY2oT.js +17 -0
- package/chunks/add-icon-CZXR66VL.js +17 -0
- package/chunks/android-icon-6SCGu50U.js +17 -0
- package/chunks/apple-icon-yya6O1xg.js +17 -0
- package/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
- package/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
- package/chunks/arrow-down-icon-DFvg75P7.js +17 -0
- package/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
- package/chunks/arrow-left-icon-8yWT42A8.js +17 -0
- package/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
- package/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
- package/chunks/attach-file-icon-OrT7tthI.js +17 -0
- package/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
- package/chunks/bell-icon-L-Ynt5XK.js +17 -0
- package/chunks/bill-error-icon-q8_KROAY.js +17 -0
- package/chunks/bill-icon-Cw2GE_VB.js +17 -0
- package/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
- package/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
- package/chunks/bills-error-icon-CcDGUJrx.js +17 -0
- package/chunks/bills-icon-BU_adAs0.js +17 -0
- package/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
- package/chunks/bills-warning-icon-CNgWvumi.js +17 -0
- package/chunks/block-icon-DGlp9c33.js +17 -0
- package/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
- package/chunks/bolt-icon-CJsvLlL-.js +17 -0
- package/chunks/book-icon-BdaCKIQB.js +17 -0
- package/chunks/business-center-icon-C5X-e-6I.js +17 -0
- package/chunks/calendar-icon-B1cogiSd.js +17 -0
- package/chunks/call-icon-DslHaQOP.js +17 -0
- package/chunks/cancel-fill-DPYenlCk.js +17 -0
- package/chunks/check-circle-fill-ne1MhahL.js +17 -0
- package/chunks/check-circle-icon-BWhJprgU.js +17 -0
- package/chunks/close-icon-CtbXesC0.js +17 -0
- package/chunks/cookie-DJ-U7h-A.js +17 -0
- package/chunks/copy-icon-BWyncDVB.js +17 -0
- package/chunks/credit-card-icon-DS1ckDU7.js +17 -0
- package/chunks/delete-icon-Bk1ZmhBo.js +17 -0
- package/chunks/document-icon-DcmQhRhY.js +17 -0
- package/chunks/done-icon-BZEAL7mI.js +17 -0
- package/chunks/dont-disturb-o1xt1TeU.js +17 -0
- package/chunks/download-icon-BvWPcT7W.js +17 -0
- package/chunks/edit-icon-_3venQRC.js +17 -0
- package/chunks/error-fill-icon--8j3Zcfq.js +17 -0
- package/chunks/error-icon-CgJ3zr06.js +17 -0
- package/chunks/file-error-icon-630wBy1K.js +17 -0
- package/chunks/file-success-icon-BTk5SYAM.js +17 -0
- package/chunks/filter-icon-D_3_SQsN.js +17 -0
- package/chunks/flag-icon-DmWEp4ya.js +17 -0
- package/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
- package/chunks/full-screen-icon-Dpl__xtk.js +17 -0
- package/chunks/group-icon-BfSRHuvp.js +17 -0
- package/chunks/help-icon-BMdlItds.js +17 -0
- package/chunks/home-icon-Mag5Wxqq.js +17 -0
- package/chunks/info-fill-icon-BzE09Xg8.js +17 -0
- package/chunks/info-icon-BcUNe5kE.js +17 -0
- package/chunks/inventory-icon-CFV8amBs.js +17 -0
- package/chunks/link-icon-BUAymb0P.js +17 -0
- package/chunks/list-icon-ChePCGxK.js +17 -0
- package/chunks/location-icon-Bf9Wbg65.js +17 -0
- package/chunks/logout-icon-DN86wp7N.js +17 -0
- package/chunks/mail-icon-DCZPsZFE.js +17 -0
- package/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
- package/chunks/max-icon-CTdBEAt8.js +17 -0
- package/chunks/menu-icon-DWObHD95.js +17 -0
- package/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
- package/chunks/more-vert-icon-NA1tYTse.js +17 -0
- package/chunks/north-east-icon-Dh7-1BBW.js +17 -0
- package/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
- package/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
- package/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
- package/chunks/page-info-icon-BiVNFu71.js +17 -0
- package/chunks/pause-circle-icon-Dpio-qM3.js +17 -0
- package/chunks/payment-icon-C-B7L4WP.js +17 -0
- package/chunks/person-add-C-3pZhgM.js +17 -0
- package/chunks/person-icon-Bo5NxPRQ.js +17 -0
- package/chunks/person-search-icon-CwVm_XAL.js +17 -0
- package/chunks/pincode-icon-BA-e4pBH.js +17 -0
- package/chunks/play-icon-Bnj3hsIf.js +17 -0
- package/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
- package/chunks/refresh-icon-ac1oOwX8.js +17 -0
- package/chunks/remove-icon-CTuoG0Vq.js +17 -0
- package/chunks/save-icon-DnF5revo.js +17 -0
- package/chunks/sberid-icon-DgQtjRjD.js +17 -0
- package/chunks/scenario-icon-BcnFsqUA.js +17 -0
- package/chunks/search-icon-CortrXrC.js +17 -0
- package/chunks/segment-icon-Bzm7cziF.js +17 -0
- package/chunks/send-icon-BTztERTu.js +17 -0
- package/chunks/settings-backup-restore-icon-DUrmFxtk.js +17 -0
- package/chunks/settings-icon-D_wgjUsM.js +17 -0
- package/chunks/shield-icon-BwpxkU5E.js +17 -0
- package/chunks/sms-icon-4p-ON5VX.js +17 -0
- package/chunks/statistic-icon-mhqUxTDv.js +17 -0
- package/chunks/support-icon-CBHKGKq8.js +17 -0
- package/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
- package/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
- package/chunks/time-icon-DsWMo47L.js +17 -0
- package/chunks/tinkoffid-icon-DN9XKuNA.js +17 -0
- package/chunks/trending-down-icon-DlHKI37F.js +17 -0
- package/chunks/trending-up-icon-IEwGHi9c.js +17 -0
- package/chunks/unfold-icon-S3J7xXHf.js +17 -0
- package/chunks/upload-icon-CwzthQEL.js +17 -0
- package/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
- package/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
- package/chunks/wallet-icon-D0r9bDRg.js +17 -0
- package/chunks/whats-app-icon-XbrqQF8U.js +17 -0
- package/chunks/work-icon-D7I-74Mk.js +17 -0
- package/chunks/zoom-in-icon-ZWEJANob.js +17 -0
- package/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
- package/lib/index-mini.js +2877 -0
- package/package.json +29 -0
- package/styles/fonts.css +30 -0
- package/styles/konsolpro-custom-ui.css +1 -0
- package/styles/variables.css +305 -0
- package/types/icon/icon.d.ts +10 -0
- package/types/icon/icons.d.ts +112 -0
- package/types/icon/index.d.ts +3 -0
- package/types/icon-banks/icon-banks.d.ts +7 -0
- package/types/icon-banks/icons-banks.d.ts +28 -0
- package/types/icon-banks/index.d.ts +3 -0
- package/types/icon-documents/icon-document.d.ts +9 -0
- package/types/icon-documents/icons-document.d.ts +13 -0
- package/types/icon-documents/index.d.ts +3 -0
- package/types/index-mini.d.ts +15 -0
- package/types/index.d.ts +55 -0
- package/types/ui/accordion.d.ts +13 -0
- package/types/ui/actions-menu.d.ts +40 -0
- package/types/ui/alert.d.ts +16 -0
- package/types/ui/autocomplete.d.ts +23 -0
- package/types/ui/avatar.d.ts +27 -0
- package/types/ui/banner.d.ts +12 -0
- package/types/ui/button.d.ts +38 -0
- package/types/ui/calendar.d.ts +4 -0
- package/types/ui/card.d.ts +38 -0
- package/types/ui/carousel.d.ts +11 -0
- package/types/ui/checkbox.d.ts +27 -0
- package/types/ui/combobox-base/combobox-base.d.ts +10 -0
- package/types/ui/combobox-base/index.d.ts +1 -0
- package/types/ui/combobox-multiselect/combobox-multiselect-context.d.ts +56 -0
- package/types/ui/combobox-multiselect/combobox-multiselect.d.ts +41 -0
- package/types/ui/combobox-multiselect/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-multiselect/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-multiselect/components/index.d.ts +5 -0
- package/types/ui/combobox-multiselect/index.d.ts +1 -0
- package/types/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
- package/types/ui/combobox-primitive/components/Item.d.ts +3 -0
- package/types/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-primitive/components/index.d.ts +8 -0
- package/types/ui/combobox-primitive/components/item-view.d.ts +3 -0
- package/types/ui/combobox-primitive/components/list.d.ts +3 -0
- package/types/ui/combobox-primitive/constants.d.ts +47 -0
- package/types/ui/combobox-primitive/hooks.d.ts +8 -0
- package/types/ui/combobox-primitive/index.d.ts +3 -0
- package/types/ui/combobox-primitive/types.d.ts +74 -0
- package/types/ui/combobox-primitive/utils.d.ts +25 -0
- package/types/ui/combobox.d.ts +34 -0
- package/types/ui/command.d.ts +78 -0
- package/types/ui/customizable-carousel.d.ts +148 -0
- package/types/ui/date-picker.d.ts +37 -0
- package/types/ui/date-range-picker/constants.d.ts +22 -0
- package/types/ui/date-range-picker/locales.d.ts +3 -0
- package/types/ui/date-range-picker.d.ts +46 -0
- package/types/ui/dialog/dialog-base/dialog-base.d.ts +46 -0
- package/types/ui/dialog/dialog-base/index.d.ts +3 -0
- package/types/ui/dialog/dialog-base/use-base-dialog.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/dialog-primitive.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/index.d.ts +2 -0
- package/types/ui/dialog/index.d.ts +2 -0
- package/types/ui/dialog/utils.d.ts +6 -0
- package/types/ui/divider.d.ts +6 -0
- package/types/ui/dropdown.d.ts +55 -0
- package/types/ui/input-number/index.d.ts +2 -0
- package/types/ui/input-number/input-number.d.ts +43 -0
- package/types/ui/input.d.ts +58 -0
- package/types/ui/link.d.ts +28 -0
- package/types/ui/masked-input.d.ts +12 -0
- package/types/ui/modal.d.ts +26 -0
- package/types/ui/otp-input.d.ts +49 -0
- package/types/ui/pagination/index.d.ts +2 -0
- package/types/ui/pagination/pagination.d.ts +18 -0
- package/types/ui/phone-input/constants.d.ts +18 -0
- package/types/ui/phone-input/locales/ru.json.d.ts +252 -0
- package/types/ui/phone-input/locales/tg.json.d.ts +261 -0
- package/types/ui/phone-input/locales/uz.json.d.ts +261 -0
- package/types/ui/phone-input/phone-input-utils.d.ts +2 -0
- package/types/ui/phone-input/phone-input.d.ts +25 -0
- package/types/ui/phone-input/phone-mask.d.ts +233 -0
- package/types/ui/pointline.d.ts +20 -0
- package/types/ui/popover.d.ts +7 -0
- package/types/ui/progress.d.ts +4 -0
- package/types/ui/radio.d.ts +37 -0
- package/types/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
- package/types/ui/schedule-calendar/constants.d.ts +3 -0
- package/types/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
- package/types/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
- package/types/ui/schedule-calendar/index.d.ts +16 -0
- package/types/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
- package/types/ui/schedule-calendar/schedule-header.d.ts +26 -0
- package/types/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
- package/types/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
- package/types/ui/schedule-calendar/utils.d.ts +12 -0
- package/types/ui/scroll-area.d.ts +9 -0
- package/types/ui/segments.d.ts +44 -0
- package/types/ui/select.d.ts +95 -0
- package/types/ui/spinner.d.ts +12 -0
- package/types/ui/stepper.d.ts +11 -0
- package/types/ui/switch.d.ts +24 -0
- package/types/ui/table/index.d.ts +4 -0
- package/types/ui/table/table-align.d.ts +3 -0
- package/types/ui/table/table-body.d.ts +16 -0
- package/types/ui/table/table-cards-skeleton.d.ts +6 -0
- package/types/ui/table/table-cards.d.ts +16 -0
- package/types/ui/table/table-colgroup.d.ts +5 -0
- package/types/ui/table/table-columns.d.ts +4 -0
- package/types/ui/table/table-empty-state.d.ts +6 -0
- package/types/ui/table/table-header.d.ts +17 -0
- package/types/ui/table/table-internal-types.d.ts +28 -0
- package/types/ui/table/table-settings.d.ts +20 -0
- package/types/ui/table/table-skeleton.d.ts +11 -0
- package/types/ui/table/table-sticky.d.ts +10 -0
- package/types/ui/table/table-types.d.ts +135 -0
- package/types/ui/table/table.d.ts +12 -0
- package/types/ui/table/use-table-scroll-state.d.ts +3 -0
- package/types/ui/table/utils.d.ts +1 -0
- package/types/ui/tabs.d.ts +25 -0
- package/types/ui/tag.d.ts +28 -0
- package/types/ui/textarea.d.ts +17 -0
- package/types/ui/time-picker.d.ts +15 -0
- package/types/ui/time-range-picker.d.ts +26 -0
- package/types/ui/timeline.d.ts +18 -0
- package/types/ui/toaster.d.ts +45 -0
- package/types/ui/tooltip.d.ts +9 -0
- package/types/ui/typography.d.ts +25 -0
- package/types/ui/uploader.d.ts +59 -0
|
@@ -0,0 +1,2877 @@
|
|
|
1
|
+
var Re = Object.defineProperty, Fe = Object.defineProperties;
|
|
2
|
+
var ze = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Z = Object.getOwnPropertySymbols;
|
|
4
|
+
var ie = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ne = (r, e, t) => e in r ? Re(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
ie.call(e, t) && ne(r, t, e[t]);
|
|
8
|
+
if (Z)
|
|
9
|
+
for (var t of Z(e))
|
|
10
|
+
se.call(e, t) && ne(r, t, e[t]);
|
|
11
|
+
return r;
|
|
12
|
+
}, N = (r, e) => Fe(r, ze(e));
|
|
13
|
+
var k = (r, e) => {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var a in r)
|
|
16
|
+
ie.call(r, a) && e.indexOf(a) < 0 && (t[a] = r[a]);
|
|
17
|
+
if (r != null && Z)
|
|
18
|
+
for (var a of Z(r))
|
|
19
|
+
e.indexOf(a) < 0 && se.call(r, a) && (t[a] = r[a]);
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
var i = (r, e, t) => new Promise((a, o) => {
|
|
23
|
+
var d = (u) => {
|
|
24
|
+
try {
|
|
25
|
+
m(t.next(u));
|
|
26
|
+
} catch (y) {
|
|
27
|
+
o(y);
|
|
28
|
+
}
|
|
29
|
+
}, c = (u) => {
|
|
30
|
+
try {
|
|
31
|
+
m(t.throw(u));
|
|
32
|
+
} catch (y) {
|
|
33
|
+
o(y);
|
|
34
|
+
}
|
|
35
|
+
}, m = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(d, c);
|
|
36
|
+
m((t = t.apply(r, e)).next());
|
|
37
|
+
});
|
|
38
|
+
import { jsx as n, jsxs as C, Fragment as le } from "react/jsx-runtime";
|
|
39
|
+
import h, { lazy as Ae, Suspense as Be, useState as ue, useMemo as Pe, useCallback as Le, createElement as _e, useRef as U, useEffect as me, useImperativeHandle as Me } from "react";
|
|
40
|
+
import { Slot as J } from "@radix-ui/react-slot";
|
|
41
|
+
import { cva as W } from "class-variance-authority";
|
|
42
|
+
import { clsx as je } from "clsx";
|
|
43
|
+
import { twMerge as Oe } from "tailwind-merge";
|
|
44
|
+
import * as de from "@radix-ui/react-checkbox";
|
|
45
|
+
import * as q from "@radix-ui/react-radio-group";
|
|
46
|
+
import * as X from "@radix-ui/react-switch";
|
|
47
|
+
import * as _ from "@radix-ui/react-select";
|
|
48
|
+
import * as M from "@radix-ui/react-dialog";
|
|
49
|
+
import * as H from "@radix-ui/react-tooltip";
|
|
50
|
+
import { toast as E, Toaster as We } from "sonner";
|
|
51
|
+
function p(...r) {
|
|
52
|
+
return Oe(je(r));
|
|
53
|
+
}
|
|
54
|
+
function s(r) {
|
|
55
|
+
return Ae(() => i(null, null, function* () {
|
|
56
|
+
return { default: (yield r()).ReactComponent };
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
const He = {
|
|
60
|
+
UnfoldIcon: s(() => i(null, null, function* () {
|
|
61
|
+
return import("../chunks/unfold-icon-S3J7xXHf.js");
|
|
62
|
+
})),
|
|
63
|
+
CallIcon: s(() => i(null, null, function* () {
|
|
64
|
+
return import("../chunks/call-icon-DslHaQOP.js");
|
|
65
|
+
})),
|
|
66
|
+
SettingsIcon: s(() => i(null, null, function* () {
|
|
67
|
+
return import("../chunks/settings-icon-D_wgjUsM.js");
|
|
68
|
+
})),
|
|
69
|
+
DoneIcon: s(() => i(null, null, function* () {
|
|
70
|
+
return import("../chunks/done-icon-BZEAL7mI.js");
|
|
71
|
+
})),
|
|
72
|
+
CreditCardIcon: s(() => i(null, null, function* () {
|
|
73
|
+
return import("../chunks/credit-card-icon-DS1ckDU7.js");
|
|
74
|
+
})),
|
|
75
|
+
OpenInFullIcon: s(() => i(null, null, function* () {
|
|
76
|
+
return import("../chunks/open-in-full-icon-DzhRd5Mx.js");
|
|
77
|
+
})),
|
|
78
|
+
AccountBalanceIcon: s(
|
|
79
|
+
() => i(null, null, function* () {
|
|
80
|
+
return import("../chunks/account-balance-icon-CKxx1j3X.js");
|
|
81
|
+
})
|
|
82
|
+
),
|
|
83
|
+
DownloadIcon: s(() => i(null, null, function* () {
|
|
84
|
+
return import("../chunks/download-icon-BvWPcT7W.js");
|
|
85
|
+
})),
|
|
86
|
+
HomeIcon: s(() => i(null, null, function* () {
|
|
87
|
+
return import("../chunks/home-icon-Mag5Wxqq.js");
|
|
88
|
+
})),
|
|
89
|
+
MailIcon: s(() => i(null, null, function* () {
|
|
90
|
+
return import("../chunks/mail-icon-DCZPsZFE.js");
|
|
91
|
+
})),
|
|
92
|
+
OpenInNewIcon: s(() => i(null, null, function* () {
|
|
93
|
+
return import("../chunks/open-in-new-icon-A7MgnnyP.js");
|
|
94
|
+
})),
|
|
95
|
+
SupportIcon: s(() => i(null, null, function* () {
|
|
96
|
+
return import("../chunks/support-icon-CBHKGKq8.js");
|
|
97
|
+
})),
|
|
98
|
+
BusinessCenterIcon: s(
|
|
99
|
+
() => i(null, null, function* () {
|
|
100
|
+
return import("../chunks/business-center-icon-C5X-e-6I.js");
|
|
101
|
+
})
|
|
102
|
+
),
|
|
103
|
+
WorkIcon: s(() => i(null, null, function* () {
|
|
104
|
+
return import("../chunks/work-icon-D7I-74Mk.js");
|
|
105
|
+
})),
|
|
106
|
+
ArrowBackIcon: s(() => i(null, null, function* () {
|
|
107
|
+
return import("../chunks/arrow-back-icon-C_VwBDNK.js");
|
|
108
|
+
})),
|
|
109
|
+
SendIcon: s(() => i(null, null, function* () {
|
|
110
|
+
return import("../chunks/send-icon-BTztERTu.js");
|
|
111
|
+
})),
|
|
112
|
+
DeleteIcon: s(() => i(null, null, function* () {
|
|
113
|
+
return import("../chunks/delete-icon-Bk1ZmhBo.js");
|
|
114
|
+
})),
|
|
115
|
+
ArrowBackIOSIcon: s(
|
|
116
|
+
() => i(null, null, function* () {
|
|
117
|
+
return import("../chunks/arrow-back-ios-icon-CB5K_mmJ.js");
|
|
118
|
+
})
|
|
119
|
+
),
|
|
120
|
+
SearchIcon: s(() => i(null, null, function* () {
|
|
121
|
+
return import("../chunks/search-icon-CortrXrC.js");
|
|
122
|
+
})),
|
|
123
|
+
InfoIcon: s(() => i(null, null, function* () {
|
|
124
|
+
return import("../chunks/info-icon-BcUNe5kE.js");
|
|
125
|
+
})),
|
|
126
|
+
PersonIcon: s(() => i(null, null, function* () {
|
|
127
|
+
return import("../chunks/person-icon-Bo5NxPRQ.js");
|
|
128
|
+
})),
|
|
129
|
+
CloseIcon: s(() => i(null, null, function* () {
|
|
130
|
+
return import("../chunks/close-icon-CtbXesC0.js");
|
|
131
|
+
})),
|
|
132
|
+
AddCircleIcon: s(() => i(null, null, function* () {
|
|
133
|
+
return import("../chunks/add-circle-icon-D3XpY2oT.js");
|
|
134
|
+
})),
|
|
135
|
+
InventoryIcon: s(() => i(null, null, function* () {
|
|
136
|
+
return import("../chunks/inventory-icon-CFV8amBs.js");
|
|
137
|
+
})),
|
|
138
|
+
BookIcon: s(() => i(null, null, function* () {
|
|
139
|
+
return import("../chunks/book-icon-BdaCKIQB.js");
|
|
140
|
+
})),
|
|
141
|
+
RefreshIcon: s(() => i(null, null, function* () {
|
|
142
|
+
return import("../chunks/refresh-icon-ac1oOwX8.js");
|
|
143
|
+
})),
|
|
144
|
+
ArrowDownIcon: s(() => i(null, null, function* () {
|
|
145
|
+
return import("../chunks/arrow-down-icon-DFvg75P7.js");
|
|
146
|
+
})),
|
|
147
|
+
ArrowUpIcon: s(() => i(null, null, function* () {
|
|
148
|
+
return import("../chunks/arrow-up-icon-DU7VVzN8.js");
|
|
149
|
+
})),
|
|
150
|
+
ArrowRightIcon: s(() => i(null, null, function* () {
|
|
151
|
+
return import("../chunks/arrow-right-icon-Bnx7GHux.js");
|
|
152
|
+
})),
|
|
153
|
+
ArrowLeftIcon: s(() => i(null, null, function* () {
|
|
154
|
+
return import("../chunks/arrow-left-icon-8yWT42A8.js");
|
|
155
|
+
})),
|
|
156
|
+
ArrowForwardIcon: s(() => i(null, null, function* () {
|
|
157
|
+
return import("../chunks/arrow-forward-icon-BI4dm_L2.js");
|
|
158
|
+
})),
|
|
159
|
+
BoltIcon: s(() => i(null, null, function* () {
|
|
160
|
+
return import("../chunks/bolt-icon-CJsvLlL-.js");
|
|
161
|
+
})),
|
|
162
|
+
LogoutIcon: s(() => i(null, null, function* () {
|
|
163
|
+
return import("../chunks/logout-icon-DN86wp7N.js");
|
|
164
|
+
})),
|
|
165
|
+
ProgressActivityIcon: s(
|
|
166
|
+
() => i(null, null, function* () {
|
|
167
|
+
return import("../chunks/progress-activity-icon-YbJGzvxH.js");
|
|
168
|
+
})
|
|
169
|
+
),
|
|
170
|
+
AutorenewIcon: s(() => i(null, null, function* () {
|
|
171
|
+
return import("../chunks/autorenew-icon-B0bI6Xt-.js");
|
|
172
|
+
})),
|
|
173
|
+
HelpIcon: s(() => i(null, null, function* () {
|
|
174
|
+
return import("../chunks/help-icon-BMdlItds.js");
|
|
175
|
+
})),
|
|
176
|
+
VisibilityOnIcon: s(() => i(null, null, function* () {
|
|
177
|
+
return import("../chunks/visibility-on-icon-C9VmKsvX.js");
|
|
178
|
+
})),
|
|
179
|
+
RemoveIcon: s(() => i(null, null, function* () {
|
|
180
|
+
return import("../chunks/remove-icon-CTuoG0Vq.js");
|
|
181
|
+
})),
|
|
182
|
+
AddIcon: s(() => i(null, null, function* () {
|
|
183
|
+
return import("../chunks/add-icon-CZXR66VL.js");
|
|
184
|
+
})),
|
|
185
|
+
EditIcon: s(() => i(null, null, function* () {
|
|
186
|
+
return import("../chunks/edit-icon-_3venQRC.js");
|
|
187
|
+
})),
|
|
188
|
+
ScenarioIcon: s(() => i(null, null, function* () {
|
|
189
|
+
return import("../chunks/scenario-icon-BcnFsqUA.js");
|
|
190
|
+
})),
|
|
191
|
+
NorthEastIcon: s(() => i(null, null, function* () {
|
|
192
|
+
return import("../chunks/north-east-icon-Dh7-1BBW.js");
|
|
193
|
+
})),
|
|
194
|
+
MoreVertIcon: s(() => i(null, null, function* () {
|
|
195
|
+
return import("../chunks/more-vert-icon-NA1tYTse.js");
|
|
196
|
+
})),
|
|
197
|
+
MenuIcon: s(() => i(null, null, function* () {
|
|
198
|
+
return import("../chunks/menu-icon-DWObHD95.js");
|
|
199
|
+
})),
|
|
200
|
+
CheckCircleIcon: s(() => i(null, null, function* () {
|
|
201
|
+
return import("../chunks/check-circle-icon-BWhJprgU.js");
|
|
202
|
+
})),
|
|
203
|
+
BlockIcon: s(() => i(null, null, function* () {
|
|
204
|
+
return import("../chunks/block-icon-DGlp9c33.js");
|
|
205
|
+
})),
|
|
206
|
+
BoltFillIcon: s(() => i(null, null, function* () {
|
|
207
|
+
return import("../chunks/bolt-fill-icon-DZjyKq8N.js");
|
|
208
|
+
})),
|
|
209
|
+
ErrorIcon: s(() => i(null, null, function* () {
|
|
210
|
+
return import("../chunks/error-icon-CgJ3zr06.js");
|
|
211
|
+
})),
|
|
212
|
+
ErrorFillIcon: s(() => i(null, null, function* () {
|
|
213
|
+
return import("../chunks/error-fill-icon--8j3Zcfq.js");
|
|
214
|
+
})),
|
|
215
|
+
VisibilityOffIcon: s(
|
|
216
|
+
() => i(null, null, function* () {
|
|
217
|
+
return import("../chunks/visibility-off-icon-BA_I97Vw.js");
|
|
218
|
+
})
|
|
219
|
+
),
|
|
220
|
+
PaymentIcon: s(() => i(null, null, function* () {
|
|
221
|
+
return import("../chunks/payment-icon-C-B7L4WP.js");
|
|
222
|
+
})),
|
|
223
|
+
FilterIcon: s(() => i(null, null, function* () {
|
|
224
|
+
return import("../chunks/filter-icon-D_3_SQsN.js");
|
|
225
|
+
})),
|
|
226
|
+
FullScreenIcon: s(() => i(null, null, function* () {
|
|
227
|
+
return import("../chunks/full-screen-icon-Dpl__xtk.js");
|
|
228
|
+
})),
|
|
229
|
+
FullScreenExitIcon: s(
|
|
230
|
+
() => i(null, null, function* () {
|
|
231
|
+
return import("../chunks/full-screen-exit-icon-BHwq-9P-.js");
|
|
232
|
+
})
|
|
233
|
+
),
|
|
234
|
+
MoreHorizIcon: s(() => i(null, null, function* () {
|
|
235
|
+
return import("../chunks/more-horiz-icon-CSK7Ackl.js");
|
|
236
|
+
})),
|
|
237
|
+
GroupIcon: s(() => i(null, null, function* () {
|
|
238
|
+
return import("../chunks/group-icon-BfSRHuvp.js");
|
|
239
|
+
})),
|
|
240
|
+
DocumentIcon: s(() => i(null, null, function* () {
|
|
241
|
+
return import("../chunks/document-icon-DcmQhRhY.js");
|
|
242
|
+
})),
|
|
243
|
+
ListIcon: s(() => i(null, null, function* () {
|
|
244
|
+
return import("../chunks/list-icon-ChePCGxK.js");
|
|
245
|
+
})),
|
|
246
|
+
AttachFileIcon: s(() => i(null, null, function* () {
|
|
247
|
+
return import("../chunks/attach-file-icon-OrT7tthI.js");
|
|
248
|
+
})),
|
|
249
|
+
LocationIcon: s(() => i(null, null, function* () {
|
|
250
|
+
return import("../chunks/location-icon-Bf9Wbg65.js");
|
|
251
|
+
})),
|
|
252
|
+
UploadIcon: s(() => i(null, null, function* () {
|
|
253
|
+
return import("../chunks/upload-icon-CwzthQEL.js");
|
|
254
|
+
})),
|
|
255
|
+
PageInfoIcon: s(() => i(null, null, function* () {
|
|
256
|
+
return import("../chunks/page-info-icon-BiVNFu71.js");
|
|
257
|
+
})),
|
|
258
|
+
SegmentIcon: s(() => i(null, null, function* () {
|
|
259
|
+
return import("../chunks/segment-icon-Bzm7cziF.js");
|
|
260
|
+
})),
|
|
261
|
+
CopyIcon: s(() => i(null, null, function* () {
|
|
262
|
+
return import("../chunks/copy-icon-BWyncDVB.js");
|
|
263
|
+
})),
|
|
264
|
+
InfoFillIcon: s(() => i(null, null, function* () {
|
|
265
|
+
return import("../chunks/info-fill-icon-BzE09Xg8.js");
|
|
266
|
+
})),
|
|
267
|
+
ManageAccountsIcon: s(
|
|
268
|
+
() => i(null, null, function* () {
|
|
269
|
+
return import("../chunks/manage-accounts-icon-BkyuUTj3.js");
|
|
270
|
+
})
|
|
271
|
+
),
|
|
272
|
+
FlagIcon: s(() => i(null, null, function* () {
|
|
273
|
+
return import("../chunks/flag-icon-DmWEp4ya.js");
|
|
274
|
+
})),
|
|
275
|
+
CalendarIcon: s(() => i(null, null, function* () {
|
|
276
|
+
return import("../chunks/calendar-icon-B1cogiSd.js");
|
|
277
|
+
})),
|
|
278
|
+
PincodeIcon: s(() => i(null, null, function* () {
|
|
279
|
+
return import("../chunks/pincode-icon-BA-e4pBH.js");
|
|
280
|
+
})),
|
|
281
|
+
OutgoingMailIcon: s(() => i(null, null, function* () {
|
|
282
|
+
return import("../chunks/outgoing-main-icon-BAH2vddG.js");
|
|
283
|
+
})),
|
|
284
|
+
TimeIcon: s(() => i(null, null, function* () {
|
|
285
|
+
return import("../chunks/time-icon-DsWMo47L.js");
|
|
286
|
+
})),
|
|
287
|
+
SmsIcon: s(() => i(null, null, function* () {
|
|
288
|
+
return import("../chunks/sms-icon-4p-ON5VX.js");
|
|
289
|
+
})),
|
|
290
|
+
TelegrammIcon: s(() => i(null, null, function* () {
|
|
291
|
+
return import("../chunks/telegramm-icon-C2ZR2jdg.js");
|
|
292
|
+
})),
|
|
293
|
+
BillsWarningIcon: s(() => i(null, null, function* () {
|
|
294
|
+
return import("../chunks/bills-warning-icon-CNgWvumi.js");
|
|
295
|
+
})),
|
|
296
|
+
BillsInProgressIcon: s(
|
|
297
|
+
() => i(null, null, function* () {
|
|
298
|
+
return import("../chunks/bills-in-progress-icon-RVEtPz7l.js");
|
|
299
|
+
})
|
|
300
|
+
),
|
|
301
|
+
BillsIcon: s(() => i(null, null, function* () {
|
|
302
|
+
return import("../chunks/bills-icon-BU_adAs0.js");
|
|
303
|
+
})),
|
|
304
|
+
BillsErrorIcon: s(() => i(null, null, function* () {
|
|
305
|
+
return import("../chunks/bills-error-icon-CcDGUJrx.js");
|
|
306
|
+
})),
|
|
307
|
+
BillWarningIcon: s(() => i(null, null, function* () {
|
|
308
|
+
return import("../chunks/bill-warning-icon-3Y-dONd_.js");
|
|
309
|
+
})),
|
|
310
|
+
BillInProgressIcon: s(
|
|
311
|
+
() => i(null, null, function* () {
|
|
312
|
+
return import("../chunks/bill-in-progress-icon-BTsO5Mh5.js");
|
|
313
|
+
})
|
|
314
|
+
),
|
|
315
|
+
BillIcon: s(() => i(null, null, function* () {
|
|
316
|
+
return import("../chunks/bill-icon-Cw2GE_VB.js");
|
|
317
|
+
})),
|
|
318
|
+
BillErrorIcon: s(() => i(null, null, function* () {
|
|
319
|
+
return import("../chunks/bill-error-icon-q8_KROAY.js");
|
|
320
|
+
})),
|
|
321
|
+
AndroidIcon: s(() => i(null, null, function* () {
|
|
322
|
+
return import("../chunks/android-icon-6SCGu50U.js");
|
|
323
|
+
})),
|
|
324
|
+
AppleIcon: s(() => i(null, null, function* () {
|
|
325
|
+
return import("../chunks/apple-icon-yya6O1xg.js");
|
|
326
|
+
})),
|
|
327
|
+
ZoomInIcon: s(() => i(null, null, function* () {
|
|
328
|
+
return import("../chunks/zoom-in-icon-ZWEJANob.js");
|
|
329
|
+
})),
|
|
330
|
+
ZoomOutIcon: s(() => i(null, null, function* () {
|
|
331
|
+
return import("../chunks/zoom-out-icon-CeFz3G6V.js");
|
|
332
|
+
})),
|
|
333
|
+
SaveIcon: s(() => i(null, null, function* () {
|
|
334
|
+
return import("../chunks/save-icon-DnF5revo.js");
|
|
335
|
+
})),
|
|
336
|
+
WalletIcon: s(() => i(null, null, function* () {
|
|
337
|
+
return import("../chunks/wallet-icon-D0r9bDRg.js");
|
|
338
|
+
})),
|
|
339
|
+
PlayIcon: s(() => i(null, null, function* () {
|
|
340
|
+
return import("../chunks/play-icon-Bnj3hsIf.js");
|
|
341
|
+
})),
|
|
342
|
+
SberIdIcon: s(() => i(null, null, function* () {
|
|
343
|
+
return import("../chunks/sberid-icon-DgQtjRjD.js");
|
|
344
|
+
})),
|
|
345
|
+
TinkoffIdIcon: s(() => i(null, null, function* () {
|
|
346
|
+
return import("../chunks/tinkoffid-icon-DN9XKuNA.js");
|
|
347
|
+
})),
|
|
348
|
+
CookieIcon: s(() => i(null, null, function* () {
|
|
349
|
+
return import("../chunks/cookie-DJ-U7h-A.js");
|
|
350
|
+
})),
|
|
351
|
+
ThumbsUpIcon: s(() => i(null, null, function* () {
|
|
352
|
+
return import("../chunks/thumbs-up-icon-BArjyDfk.js");
|
|
353
|
+
})),
|
|
354
|
+
CheckCircleFillIcon: s(
|
|
355
|
+
() => i(null, null, function* () {
|
|
356
|
+
return import("../chunks/check-circle-fill-ne1MhahL.js");
|
|
357
|
+
})
|
|
358
|
+
),
|
|
359
|
+
CancelFillIcon: s(() => i(null, null, function* () {
|
|
360
|
+
return import("../chunks/cancel-fill-DPYenlCk.js");
|
|
361
|
+
})),
|
|
362
|
+
TrendingUpIcon: s(() => i(null, null, function* () {
|
|
363
|
+
return import("../chunks/trending-up-icon-IEwGHi9c.js");
|
|
364
|
+
})),
|
|
365
|
+
TrendingDownIcon: s(() => i(null, null, function* () {
|
|
366
|
+
return import("../chunks/trending-down-icon-DlHKI37F.js");
|
|
367
|
+
})),
|
|
368
|
+
PersonAddIcon: s(() => i(null, null, function* () {
|
|
369
|
+
return import("../chunks/person-add-C-3pZhgM.js");
|
|
370
|
+
})),
|
|
371
|
+
PersonSearchIcon: s(() => i(null, null, function* () {
|
|
372
|
+
return import("../chunks/person-search-icon-CwVm_XAL.js");
|
|
373
|
+
})),
|
|
374
|
+
LinkIcon: s(() => i(null, null, function* () {
|
|
375
|
+
return import("../chunks/link-icon-BUAymb0P.js");
|
|
376
|
+
})),
|
|
377
|
+
FileSuccessIcon: s(() => i(null, null, function* () {
|
|
378
|
+
return import("../chunks/file-success-icon-BTk5SYAM.js");
|
|
379
|
+
})),
|
|
380
|
+
FileErrorIcon: s(() => i(null, null, function* () {
|
|
381
|
+
return import("../chunks/file-error-icon-630wBy1K.js");
|
|
382
|
+
})),
|
|
383
|
+
ShieldIcon: s(() => i(null, null, function* () {
|
|
384
|
+
return import("../chunks/shield-icon-BwpxkU5E.js");
|
|
385
|
+
})),
|
|
386
|
+
StatisticIcon: s(() => i(null, null, function* () {
|
|
387
|
+
return import("../chunks/statistic-icon-mhqUxTDv.js");
|
|
388
|
+
})),
|
|
389
|
+
DontDisturbIcon: s(() => i(null, null, function* () {
|
|
390
|
+
return import("../chunks/dont-disturb-o1xt1TeU.js");
|
|
391
|
+
})),
|
|
392
|
+
WhatsAppIcon: s(() => i(null, null, function* () {
|
|
393
|
+
return import("../chunks/whats-app-icon-XbrqQF8U.js");
|
|
394
|
+
})),
|
|
395
|
+
MaxIcon: s(() => i(null, null, function* () {
|
|
396
|
+
return import("../chunks/max-icon-CTdBEAt8.js");
|
|
397
|
+
})),
|
|
398
|
+
SettingsBackupRestoreIcon: s(
|
|
399
|
+
() => i(null, null, function* () {
|
|
400
|
+
return import("../chunks/settings-backup-restore-icon-DUrmFxtk.js");
|
|
401
|
+
})
|
|
402
|
+
),
|
|
403
|
+
PauseCircleIcon: s(() => i(null, null, function* () {
|
|
404
|
+
return import("../chunks/pause-circle-icon-Dpio-qM3.js");
|
|
405
|
+
})),
|
|
406
|
+
BellIcon: s(() => i(null, null, function* () {
|
|
407
|
+
return import("../chunks/bell-icon-L-Ynt5XK.js");
|
|
408
|
+
}))
|
|
409
|
+
};
|
|
410
|
+
function F({
|
|
411
|
+
icon: r,
|
|
412
|
+
style: e,
|
|
413
|
+
className: t,
|
|
414
|
+
size: a = 16
|
|
415
|
+
}) {
|
|
416
|
+
const o = He[r];
|
|
417
|
+
return o ? /* @__PURE__ */ n(
|
|
418
|
+
"div",
|
|
419
|
+
{
|
|
420
|
+
"data-ui-icon": !0,
|
|
421
|
+
style: N(x({}, e), {
|
|
422
|
+
fontSize: a
|
|
423
|
+
}),
|
|
424
|
+
className: p("inline-flex items-center justify-center", t),
|
|
425
|
+
children: /* @__PURE__ */ n(Be, { fallback: null, children: /* @__PURE__ */ n(o, {}) })
|
|
426
|
+
}
|
|
427
|
+
) : null;
|
|
428
|
+
}
|
|
429
|
+
const ce = W("", {
|
|
430
|
+
variants: {
|
|
431
|
+
variant: {
|
|
432
|
+
h0: "text-[28px] leading-[32px] font-bold m-0 font-graphik",
|
|
433
|
+
h1: "text-[24px] leading-[28px] font-bold m-0 font-graphik",
|
|
434
|
+
h2: "text-[20px] leading-[24px] font-bold m-0 font-graphik",
|
|
435
|
+
h3: "text-[18px] leading-[22px] font-bold m-0 font-graphik",
|
|
436
|
+
h4: "text-[16px] leading-[20px] font-bold m-0 font-graphik",
|
|
437
|
+
h5: "text-[14px] leading-[20px] font-bold m-0 font-graphik",
|
|
438
|
+
p1: "text-[12px] leading-[16px] font-normal m-0 font-graphik",
|
|
439
|
+
p2: "text-[14px] leading-[20px] font-normal m-0 font-graphik",
|
|
440
|
+
p3: "text-[16px] leading-[22px] font-normal m-0 font-graphik",
|
|
441
|
+
p4: "text-[20px] leading-[26px] font-normal m-0 font-graphik"
|
|
442
|
+
},
|
|
443
|
+
textColor: {
|
|
444
|
+
default: "text-default",
|
|
445
|
+
primary: "text-primary",
|
|
446
|
+
secondary: "text-secondary",
|
|
447
|
+
muted: "text-muted-foreground",
|
|
448
|
+
destructive: "text-destructive",
|
|
449
|
+
positive: "text-positive",
|
|
450
|
+
white: "text-white"
|
|
451
|
+
},
|
|
452
|
+
weight: {
|
|
453
|
+
normal: "font-normal",
|
|
454
|
+
medium: "font-medium",
|
|
455
|
+
bold: "font-bold"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
defaultVariants: {
|
|
459
|
+
variant: "p2",
|
|
460
|
+
textColor: "default",
|
|
461
|
+
weight: "normal"
|
|
462
|
+
}
|
|
463
|
+
}), L = h.forwardRef(
|
|
464
|
+
(u, m) => {
|
|
465
|
+
var y = u, {
|
|
466
|
+
className: r,
|
|
467
|
+
variant: e,
|
|
468
|
+
textColor: t,
|
|
469
|
+
weight: a,
|
|
470
|
+
as: o = "div",
|
|
471
|
+
copyable: d
|
|
472
|
+
} = y, c = k(y, [
|
|
473
|
+
"className",
|
|
474
|
+
"variant",
|
|
475
|
+
"textColor",
|
|
476
|
+
"weight",
|
|
477
|
+
"as",
|
|
478
|
+
"copyable"
|
|
479
|
+
]);
|
|
480
|
+
const [l, b] = ue(!1), f = Pe(() => d ? typeof d == "boolean" ? {} : d : null, [d]), w = Le(
|
|
481
|
+
(v) => i(null, null, function* () {
|
|
482
|
+
var T, z, P, A, B;
|
|
483
|
+
if (!f)
|
|
484
|
+
return;
|
|
485
|
+
v.preventDefault(), v.stopPropagation(), v.nativeEvent.stopImmediatePropagation();
|
|
486
|
+
const S = (P = (z = f.text) != null ? z : (T = v.currentTarget.textContent) == null ? void 0 : T.trim()) != null ? P : "";
|
|
487
|
+
try {
|
|
488
|
+
yield navigator.clipboard.writeText(S), (A = f.onCopy) == null || A.call(f), b(!0), setTimeout(() => b(!1), (B = f.duration) != null ? B : 1500);
|
|
489
|
+
} catch (j) {
|
|
490
|
+
}
|
|
491
|
+
}),
|
|
492
|
+
[f]
|
|
493
|
+
);
|
|
494
|
+
let g = a;
|
|
495
|
+
e && ["h0", "h1", "h2", "h3", "h4", "h5"].includes(e) && !a && (g = "bold");
|
|
496
|
+
const I = o;
|
|
497
|
+
return f ? /* @__PURE__ */ C(
|
|
498
|
+
I,
|
|
499
|
+
N(x({
|
|
500
|
+
ref: m,
|
|
501
|
+
role: "button",
|
|
502
|
+
tabIndex: 0,
|
|
503
|
+
onClick: w,
|
|
504
|
+
className: p(
|
|
505
|
+
"group hover:text-default inline-flex cursor-pointer items-center select-text",
|
|
506
|
+
ce({
|
|
507
|
+
variant: e,
|
|
508
|
+
textColor: t,
|
|
509
|
+
weight: g,
|
|
510
|
+
className: r
|
|
511
|
+
})
|
|
512
|
+
)
|
|
513
|
+
}, c), {
|
|
514
|
+
children: [
|
|
515
|
+
c.children,
|
|
516
|
+
/* @__PURE__ */ n(
|
|
517
|
+
F,
|
|
518
|
+
{
|
|
519
|
+
size: 12,
|
|
520
|
+
icon: l ? "CheckCircleFillIcon" : "CopyIcon",
|
|
521
|
+
className: "group-hover:text-default ml-1 inline-flex h-4 w-4 items-center align-middle transition-[visibility,opacity] duration-150 group-hover:visible group-hover:opacity-100 group-focus-visible:visible group-focus-visible:opacity-100 md:invisible md:opacity-0"
|
|
522
|
+
}
|
|
523
|
+
)
|
|
524
|
+
]
|
|
525
|
+
})
|
|
526
|
+
) : /* @__PURE__ */ n(
|
|
527
|
+
I,
|
|
528
|
+
x({
|
|
529
|
+
ref: m,
|
|
530
|
+
className: p(
|
|
531
|
+
ce({ variant: e, textColor: t, weight: g }),
|
|
532
|
+
r
|
|
533
|
+
)
|
|
534
|
+
}, c)
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
);
|
|
538
|
+
L.displayName = "Typography";
|
|
539
|
+
const G = h.forwardRef(
|
|
540
|
+
(j, B) => {
|
|
541
|
+
var R = j, {
|
|
542
|
+
className: r,
|
|
543
|
+
type: e,
|
|
544
|
+
size: t = "md",
|
|
545
|
+
icon: a,
|
|
546
|
+
label: o,
|
|
547
|
+
error: d,
|
|
548
|
+
caption: c,
|
|
549
|
+
iconName: m,
|
|
550
|
+
iconPosition: u = "left",
|
|
551
|
+
fullWidthContainer: y = !0,
|
|
552
|
+
fullWidth: l = !0,
|
|
553
|
+
disabled: b = !1,
|
|
554
|
+
containerClassName: f,
|
|
555
|
+
inlineSelect: w,
|
|
556
|
+
prefixContainer: g,
|
|
557
|
+
autoFocus: I,
|
|
558
|
+
suffix: v,
|
|
559
|
+
showErrorMessage: S = !0,
|
|
560
|
+
onClear: T,
|
|
561
|
+
value: z,
|
|
562
|
+
"data-testid": P
|
|
563
|
+
} = R, A = k(R, [
|
|
564
|
+
"className",
|
|
565
|
+
"type",
|
|
566
|
+
"size",
|
|
567
|
+
"icon",
|
|
568
|
+
"label",
|
|
569
|
+
"error",
|
|
570
|
+
"caption",
|
|
571
|
+
"iconName",
|
|
572
|
+
"iconPosition",
|
|
573
|
+
"fullWidthContainer",
|
|
574
|
+
"fullWidth",
|
|
575
|
+
"disabled",
|
|
576
|
+
"containerClassName",
|
|
577
|
+
"inlineSelect",
|
|
578
|
+
"prefixContainer",
|
|
579
|
+
"autoFocus",
|
|
580
|
+
"suffix",
|
|
581
|
+
"showErrorMessage",
|
|
582
|
+
"onClear",
|
|
583
|
+
"value",
|
|
584
|
+
"data-testid"
|
|
585
|
+
]);
|
|
586
|
+
const $ = z != null && z.toString().length > 0, D = T && $ && !b;
|
|
587
|
+
return /* @__PURE__ */ C("div", { className: p(y && "w-full"), children: [
|
|
588
|
+
o && /* @__PURE__ */ n(
|
|
589
|
+
L,
|
|
590
|
+
{
|
|
591
|
+
variant: "p3",
|
|
592
|
+
weight: "medium",
|
|
593
|
+
className: p("mb-1.5", {
|
|
594
|
+
"text-[14px]": t === "md",
|
|
595
|
+
"text-[16px]": t === "lg"
|
|
596
|
+
}),
|
|
597
|
+
children: o
|
|
598
|
+
}
|
|
599
|
+
),
|
|
600
|
+
/* @__PURE__ */ C(
|
|
601
|
+
"div",
|
|
602
|
+
{
|
|
603
|
+
className: p(
|
|
604
|
+
"group relative flex items-center rounded-lg border-1 border-solid",
|
|
605
|
+
l && "w-full",
|
|
606
|
+
{
|
|
607
|
+
"bg-background border-border hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:hover:border-border disabled:focus-within:border-border disabled:focus-within:shadow-none disabled:hover:border-none": !b,
|
|
608
|
+
"bg-background border-border": b,
|
|
609
|
+
"bg-background border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": d != null && !b,
|
|
610
|
+
"h-8": t === "md",
|
|
611
|
+
"h-10 rounded-xl": t === "lg",
|
|
612
|
+
"bg-muted cursor-not-allowed": b
|
|
613
|
+
},
|
|
614
|
+
f
|
|
615
|
+
),
|
|
616
|
+
children: [
|
|
617
|
+
g && /* @__PURE__ */ n("div", { className: "flex items-center pl-1", children: g }),
|
|
618
|
+
a && !m && u === "left" && /* @__PURE__ */ n(
|
|
619
|
+
"div",
|
|
620
|
+
{
|
|
621
|
+
className: p(
|
|
622
|
+
"group-focus-within:text-foreground text-muted-foreground flex items-center pl-2 transition-colors",
|
|
623
|
+
d && "!group-focus-within:!text-destructive !text-destructive"
|
|
624
|
+
),
|
|
625
|
+
children: a
|
|
626
|
+
}
|
|
627
|
+
),
|
|
628
|
+
m && !a && u === "left" && /* @__PURE__ */ n("div", { className: "flex items-center pl-2", children: /* @__PURE__ */ n(
|
|
629
|
+
F,
|
|
630
|
+
{
|
|
631
|
+
icon: m,
|
|
632
|
+
className: p(
|
|
633
|
+
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
634
|
+
d && "!group-focus-within:!text-destructive !text-destructive"
|
|
635
|
+
)
|
|
636
|
+
}
|
|
637
|
+
) }),
|
|
638
|
+
/* @__PURE__ */ n(
|
|
639
|
+
"input",
|
|
640
|
+
x({
|
|
641
|
+
type: e,
|
|
642
|
+
className: p(
|
|
643
|
+
"font-graphik flex-1 border-0 bg-transparent py-1 focus:outline-none disabled:cursor-not-allowed",
|
|
644
|
+
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
645
|
+
{
|
|
646
|
+
"w-full": l,
|
|
647
|
+
"placeholder:text-muted-foreground": !0,
|
|
648
|
+
"text-[14px]": t === "md",
|
|
649
|
+
"text-[16px]": t === "lg",
|
|
650
|
+
"px-2.5": t === "md" || t === "lg",
|
|
651
|
+
"pl-2": (a || m) && u === "left" && (t === "md" || t === "lg"),
|
|
652
|
+
"text-muted-foreground": b
|
|
653
|
+
},
|
|
654
|
+
r
|
|
655
|
+
),
|
|
656
|
+
ref: B,
|
|
657
|
+
value: z,
|
|
658
|
+
disabled: b,
|
|
659
|
+
autoFocus: I,
|
|
660
|
+
"data-testid": P
|
|
661
|
+
}, A)
|
|
662
|
+
),
|
|
663
|
+
(w || a || m || d || v || D) && /* @__PURE__ */ C("div", { className: "flex items-center gap-1.5 pr-2", children: [
|
|
664
|
+
v && /* @__PURE__ */ n("div", { className: "font-graphik flex items-center text-[16px]", children: v }),
|
|
665
|
+
w && /* @__PURE__ */ n(
|
|
666
|
+
"div",
|
|
667
|
+
{
|
|
668
|
+
className: p(
|
|
669
|
+
"relative inline-block max-w-[110px] overflow-hidden"
|
|
670
|
+
),
|
|
671
|
+
children: /* @__PURE__ */ n("div", { className: "[&_*]:font-cofo [&_*]:max-w-[110px] [&_*]:overflow-hidden [&_*]:text-ellipsis [&_*]:whitespace-nowrap [&_button]:w-auto [&_button]:min-w-0 [&_button]:px-0 [&_button]:py-0 [&_div[data-radix-popper-content-wrapper]]:!w-auto [&_div[data-radix-select-content]]:!w-auto [&_div[data-radix-select-content]]:!min-w-[120px] [&_span:not([data-radix-select-icon])]:max-w-[85px] [&_svg]:text-default [&_svg]:flex-shrink-0", children: w })
|
|
672
|
+
}
|
|
673
|
+
),
|
|
674
|
+
a && !m && u === "right" && /* @__PURE__ */ n(
|
|
675
|
+
"div",
|
|
676
|
+
{
|
|
677
|
+
className: p(
|
|
678
|
+
"group-focus-within:text-foreground text-muted-foreground flex items-center transition-colors",
|
|
679
|
+
d && "!group-focus-within:!text-destructive !text-destructive"
|
|
680
|
+
),
|
|
681
|
+
children: a
|
|
682
|
+
}
|
|
683
|
+
),
|
|
684
|
+
m && !a && u === "right" && /* @__PURE__ */ n(
|
|
685
|
+
F,
|
|
686
|
+
{
|
|
687
|
+
icon: m,
|
|
688
|
+
className: p(
|
|
689
|
+
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
690
|
+
d && "!group-focus-within:!text-destructive !text-destructive"
|
|
691
|
+
)
|
|
692
|
+
}
|
|
693
|
+
),
|
|
694
|
+
D && /* @__PURE__ */ n(
|
|
695
|
+
"div",
|
|
696
|
+
{
|
|
697
|
+
onClick: T,
|
|
698
|
+
className: p(
|
|
699
|
+
"flex cursor-pointer items-center justify-center",
|
|
700
|
+
b && "cursor-not-allowed opacity-50"
|
|
701
|
+
),
|
|
702
|
+
role: "button",
|
|
703
|
+
tabIndex: 0,
|
|
704
|
+
children: /* @__PURE__ */ n(
|
|
705
|
+
F,
|
|
706
|
+
{
|
|
707
|
+
icon: "CloseIcon",
|
|
708
|
+
size: 16,
|
|
709
|
+
className: "text-muted-foreground"
|
|
710
|
+
}
|
|
711
|
+
)
|
|
712
|
+
}
|
|
713
|
+
),
|
|
714
|
+
d != null && /* @__PURE__ */ n(
|
|
715
|
+
F,
|
|
716
|
+
{
|
|
717
|
+
icon: "ErrorFillIcon",
|
|
718
|
+
className: "!text-destructive",
|
|
719
|
+
size: 16
|
|
720
|
+
}
|
|
721
|
+
)
|
|
722
|
+
] })
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
),
|
|
726
|
+
c && !d && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: c }),
|
|
727
|
+
d && S && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: d })
|
|
728
|
+
] });
|
|
729
|
+
}
|
|
730
|
+
);
|
|
731
|
+
G.displayName = "Input";
|
|
732
|
+
const Ue = h.forwardRef(
|
|
733
|
+
(r, e) => {
|
|
734
|
+
const [t, a] = h.useState(!1), o = h.useRef(null), y = r, { size: d = "md" } = y, c = k(y, ["size"]), m = h.useCallback(
|
|
735
|
+
(l) => {
|
|
736
|
+
o.current = l, typeof e == "function" ? e(l) : e && (e.current = l);
|
|
737
|
+
},
|
|
738
|
+
[e]
|
|
739
|
+
), u = h.useCallback(() => {
|
|
740
|
+
if (o.current) {
|
|
741
|
+
const l = o.current.value.length;
|
|
742
|
+
requestAnimationFrame(() => {
|
|
743
|
+
var b, f;
|
|
744
|
+
(b = o.current) == null || b.focus(), (f = o.current) == null || f.setSelectionRange(l, l);
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
}, []);
|
|
748
|
+
return /* @__PURE__ */ n(
|
|
749
|
+
G,
|
|
750
|
+
N(x({}, c), {
|
|
751
|
+
ref: m,
|
|
752
|
+
type: t ? "text" : "password",
|
|
753
|
+
size: d,
|
|
754
|
+
iconPosition: "right",
|
|
755
|
+
icon: /* @__PURE__ */ n(
|
|
756
|
+
ee,
|
|
757
|
+
{
|
|
758
|
+
variant: "text",
|
|
759
|
+
iconOnly: !0,
|
|
760
|
+
size: "sm",
|
|
761
|
+
onClick: (l) => {
|
|
762
|
+
l.preventDefault(), l.stopPropagation(), a(!t), u();
|
|
763
|
+
},
|
|
764
|
+
icon: t ? "VisibilityOnIcon" : "VisibilityOffIcon",
|
|
765
|
+
className: "!text-muted-foreground"
|
|
766
|
+
}
|
|
767
|
+
)
|
|
768
|
+
})
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
Ue.displayName = "InputPassword";
|
|
773
|
+
const $e = h.forwardRef(
|
|
774
|
+
(r, e) => {
|
|
775
|
+
const y = r, {
|
|
776
|
+
type: t = "button",
|
|
777
|
+
onSearch: a,
|
|
778
|
+
className: o,
|
|
779
|
+
size: d = "md",
|
|
780
|
+
disabled: c,
|
|
781
|
+
phoneInputSearch: m = !1
|
|
782
|
+
} = y, u = k(y, [
|
|
783
|
+
"type",
|
|
784
|
+
"onSearch",
|
|
785
|
+
"className",
|
|
786
|
+
"size",
|
|
787
|
+
"disabled",
|
|
788
|
+
"phoneInputSearch"
|
|
789
|
+
]);
|
|
790
|
+
return /* @__PURE__ */ n(
|
|
791
|
+
G,
|
|
792
|
+
N(x({}, u), {
|
|
793
|
+
ref: e,
|
|
794
|
+
size: d,
|
|
795
|
+
disabled: c,
|
|
796
|
+
className: "pl-1.5",
|
|
797
|
+
containerClassName: p(
|
|
798
|
+
"group",
|
|
799
|
+
o,
|
|
800
|
+
t === "border" && [
|
|
801
|
+
"rounded-none",
|
|
802
|
+
"border-0 border-b-1 border-b-border",
|
|
803
|
+
"hover:border-t-0 hover:border-l-0 hover:border-r-0",
|
|
804
|
+
m ? "hover:border-border focus-within:border-border px-3" : "hover:border-b-hover-input-primary focus-within:border-b-primary",
|
|
805
|
+
"focus-within:border-t-0 focus-within:border-l-0 focus-within:border-r-0 ",
|
|
806
|
+
"focus-within:shadow-none"
|
|
807
|
+
]
|
|
808
|
+
),
|
|
809
|
+
iconPosition: "left",
|
|
810
|
+
icon: /* @__PURE__ */ n(
|
|
811
|
+
F,
|
|
812
|
+
{
|
|
813
|
+
icon: "SearchIcon",
|
|
814
|
+
className: "text-muted-foreground group-focus-within:text-foreground text-[16px] transition-colors"
|
|
815
|
+
}
|
|
816
|
+
)
|
|
817
|
+
})
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
);
|
|
821
|
+
$e.displayName = "InputSearch";
|
|
822
|
+
const Ke = h.forwardRef(
|
|
823
|
+
(r, e) => {
|
|
824
|
+
const m = r, { size: t = "md", title: a, className: o, disabled: d } = m, c = k(m, ["size", "title", "className", "disabled"]);
|
|
825
|
+
return /* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
|
|
826
|
+
G,
|
|
827
|
+
N(x({}, c), {
|
|
828
|
+
ref: e,
|
|
829
|
+
size: "lg",
|
|
830
|
+
disabled: d,
|
|
831
|
+
className: p("font-bold", {
|
|
832
|
+
"text-[18px]": t === "md",
|
|
833
|
+
"text-[24px]": t === "lg"
|
|
834
|
+
}),
|
|
835
|
+
containerClassName: p("h-10", {
|
|
836
|
+
"h-11": t === "lg"
|
|
837
|
+
})
|
|
838
|
+
})
|
|
839
|
+
) });
|
|
840
|
+
}
|
|
841
|
+
);
|
|
842
|
+
Ke.displayName = "InputTitle";
|
|
843
|
+
const Ge = h.forwardRef(
|
|
844
|
+
(r, e) => {
|
|
845
|
+
const c = r, { size: t = "md", className: a } = c, o = k(c, ["size", "className"]), d = /* @__PURE__ */ n(
|
|
846
|
+
"div",
|
|
847
|
+
{
|
|
848
|
+
className: p(
|
|
849
|
+
"bg-default-background text-muted-foreground flex items-center",
|
|
850
|
+
t === "md" ? "h-6 rounded-sm px-2" : "h-8 rounded-md px-2"
|
|
851
|
+
),
|
|
852
|
+
children: /* @__PURE__ */ n(L, { variant: "p2", className: "whitespace-nowrap", children: "https://" })
|
|
853
|
+
}
|
|
854
|
+
);
|
|
855
|
+
return /* @__PURE__ */ n(
|
|
856
|
+
G,
|
|
857
|
+
N(x({}, o), {
|
|
858
|
+
ref: e,
|
|
859
|
+
size: t,
|
|
860
|
+
className: p("pl-2", a),
|
|
861
|
+
prefixContainer: d
|
|
862
|
+
})
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
);
|
|
866
|
+
Ge.displayName = "InputLink";
|
|
867
|
+
const pe = h.forwardRef((a, t) => {
|
|
868
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
869
|
+
return /* @__PURE__ */ n(
|
|
870
|
+
_.ScrollUpButton,
|
|
871
|
+
N(x({
|
|
872
|
+
ref: t,
|
|
873
|
+
className: p(
|
|
874
|
+
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
875
|
+
"hover:bg-muted/50 transition-colors",
|
|
876
|
+
r
|
|
877
|
+
)
|
|
878
|
+
}, e), {
|
|
879
|
+
children: /* @__PURE__ */ n(F, { icon: "ArrowUpIcon", size: 16, className: "text-muted-foreground" })
|
|
880
|
+
})
|
|
881
|
+
);
|
|
882
|
+
});
|
|
883
|
+
pe.displayName = "SelectScrollUpButton";
|
|
884
|
+
const fe = h.forwardRef((a, t) => {
|
|
885
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
886
|
+
return /* @__PURE__ */ n(
|
|
887
|
+
_.ScrollDownButton,
|
|
888
|
+
N(x({
|
|
889
|
+
ref: t,
|
|
890
|
+
className: p(
|
|
891
|
+
"flex cursor-default items-center justify-center px-3 py-1.5",
|
|
892
|
+
"hover:bg-muted/50 transition-colors",
|
|
893
|
+
r
|
|
894
|
+
)
|
|
895
|
+
}, e), {
|
|
896
|
+
children: /* @__PURE__ */ n(F, { icon: "ArrowDownIcon", size: 16, className: "text-muted-foreground" })
|
|
897
|
+
})
|
|
898
|
+
);
|
|
899
|
+
});
|
|
900
|
+
fe.displayName = "SelectScrollDownButton";
|
|
901
|
+
const he = h.forwardRef((c, d) => {
|
|
902
|
+
var m = c, { className: r, children: e, selected: t, size: a = "md" } = m, o = k(m, ["className", "children", "selected", "size"]);
|
|
903
|
+
return /* @__PURE__ */ n(
|
|
904
|
+
_.Item,
|
|
905
|
+
N(x({
|
|
906
|
+
ref: d,
|
|
907
|
+
className: p(
|
|
908
|
+
"font-graphik relative flex w-full cursor-pointer items-center px-3 transition-colors outline-none select-none",
|
|
909
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
910
|
+
// ✅ выбранный элемент
|
|
911
|
+
"data-[state=checked]:bg-primary-10 [state=checked]:text-medium data-[state=checked]:font-medium data-[state=checked]:hover:bg-[#F3E5FF]",
|
|
912
|
+
"box-border",
|
|
913
|
+
// По умолчанию без bg
|
|
914
|
+
!t && "hover:bg-muted",
|
|
915
|
+
// Выбранный элемент - более видимый bg
|
|
916
|
+
t && "bg-primary-10 font-medium hover:bg-[#F3E5FF]",
|
|
917
|
+
// Размеры соответствуют триггеру с !important
|
|
918
|
+
a === "md" && "!h-8 !max-h-8 !min-h-8 rounded-lg text-[14px]",
|
|
919
|
+
a === "lg" && "!h-10 !max-h-10 !min-h-10 rounded-xl text-[16px]",
|
|
920
|
+
r
|
|
921
|
+
)
|
|
922
|
+
}, o), {
|
|
923
|
+
children: /* @__PURE__ */ n(_.ItemText, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "block w-full overflow-hidden text-ellipsis whitespace-nowrap", children: e }) })
|
|
924
|
+
})
|
|
925
|
+
);
|
|
926
|
+
});
|
|
927
|
+
he.displayName = "SelectItem";
|
|
928
|
+
const ge = h.forwardRef(
|
|
929
|
+
(P, z) => {
|
|
930
|
+
var A = P, {
|
|
931
|
+
className: r,
|
|
932
|
+
children: e,
|
|
933
|
+
size: t = "md",
|
|
934
|
+
label: a,
|
|
935
|
+
error: o,
|
|
936
|
+
caption: d,
|
|
937
|
+
fullWidth: c = !0,
|
|
938
|
+
transparent: m = !1,
|
|
939
|
+
tag: u,
|
|
940
|
+
multiple: y,
|
|
941
|
+
selectedValues: l,
|
|
942
|
+
onValueRemove: b,
|
|
943
|
+
disabled: f,
|
|
944
|
+
"data-testid": w,
|
|
945
|
+
showErrorMessage: g = !0,
|
|
946
|
+
clearable: I = !1,
|
|
947
|
+
onClear: v,
|
|
948
|
+
inlineSelect: S = !1
|
|
949
|
+
} = A, T = k(A, [
|
|
950
|
+
"className",
|
|
951
|
+
"children",
|
|
952
|
+
"size",
|
|
953
|
+
"label",
|
|
954
|
+
"error",
|
|
955
|
+
"caption",
|
|
956
|
+
"fullWidth",
|
|
957
|
+
"transparent",
|
|
958
|
+
"tag",
|
|
959
|
+
"multiple",
|
|
960
|
+
"selectedValues",
|
|
961
|
+
"onValueRemove",
|
|
962
|
+
"disabled",
|
|
963
|
+
"data-testid",
|
|
964
|
+
"showErrorMessage",
|
|
965
|
+
"clearable",
|
|
966
|
+
"onClear",
|
|
967
|
+
"inlineSelect"
|
|
968
|
+
]);
|
|
969
|
+
const B = y || l && l.length > 0, j = h.useRef(null), [R, $] = h.useState(2);
|
|
970
|
+
return h.useLayoutEffect(() => {
|
|
971
|
+
if (!B || !(l != null && l.length) || !j.current)
|
|
972
|
+
return;
|
|
973
|
+
const D = () => {
|
|
974
|
+
const te = j.current;
|
|
975
|
+
if (!te)
|
|
976
|
+
return;
|
|
977
|
+
const ye = te.offsetWidth, we = u ? 60 : 0, Ie = 20, Ne = o ? 20 : 0, ke = ye - we - Ie - Ne - 16 - 30;
|
|
978
|
+
let re = 0, ae = 0;
|
|
979
|
+
const Ce = 12, Se = 20, De = 4, Ee = 7;
|
|
980
|
+
for (let V = 0; V < l.length; V++) {
|
|
981
|
+
const Te = l[V].length * Ee, oe = Ce + Te + Se + De;
|
|
982
|
+
if (ae + oe <= ke)
|
|
983
|
+
ae += oe, re = V + 1;
|
|
984
|
+
else
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
$(Math.max(1, re));
|
|
988
|
+
};
|
|
989
|
+
D();
|
|
990
|
+
const O = new ResizeObserver(D);
|
|
991
|
+
return O.observe(j.current), () => {
|
|
992
|
+
O.disconnect();
|
|
993
|
+
};
|
|
994
|
+
}, [l, u, o, B]), /* @__PURE__ */ C("div", { className: "w-full", children: [
|
|
995
|
+
a && /* @__PURE__ */ n(
|
|
996
|
+
L,
|
|
997
|
+
{
|
|
998
|
+
variant: "p3",
|
|
999
|
+
weight: "medium",
|
|
1000
|
+
className: p("mb-1.5", {
|
|
1001
|
+
"text-[14px]": t === "md",
|
|
1002
|
+
"text-[16px]": t === "lg"
|
|
1003
|
+
}),
|
|
1004
|
+
children: a
|
|
1005
|
+
}
|
|
1006
|
+
),
|
|
1007
|
+
/* @__PURE__ */ n(
|
|
1008
|
+
"div",
|
|
1009
|
+
{
|
|
1010
|
+
className: p("relative flex items-center", c && "w-full"),
|
|
1011
|
+
children: /* @__PURE__ */ C(
|
|
1012
|
+
_.Trigger,
|
|
1013
|
+
N(x({
|
|
1014
|
+
ref: z,
|
|
1015
|
+
className: p(
|
|
1016
|
+
"font-graphik group flex items-center",
|
|
1017
|
+
!m && [
|
|
1018
|
+
"flex cursor-pointer py-1.5 focus:outline-none disabled:cursor-not-allowed",
|
|
1019
|
+
"focus:shadow-focus border focus:border",
|
|
1020
|
+
"enabled:hover:border",
|
|
1021
|
+
"data-[state=open]:border-primary data-[state=open]:shadow-focus",
|
|
1022
|
+
"data-[placeholder]:text-muted-foreground",
|
|
1023
|
+
"bg-background border-border placeholder:text-muted-foreground enabled:hover:border-hover-input-primary focus:border-primary disabled:bg-input-disabled-background",
|
|
1024
|
+
o != null && "border-destructive focus:border-destructive focus:shadow-error enabled:hover:border-destructive data-[state=open]:border-destructive data-[state=open]:shadow-error",
|
|
1025
|
+
{
|
|
1026
|
+
// Sizes
|
|
1027
|
+
"h-8 rounded-lg px-2.5 text-[14px]": t === "md",
|
|
1028
|
+
"h-10 rounded-xl px-3 text-[16px]": t === "lg",
|
|
1029
|
+
// Full width
|
|
1030
|
+
"w-full": c
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
m && [
|
|
1034
|
+
"cursor-pointer border-0 bg-transparent hover:bg-transparent focus:border-0 focus:shadow-none",
|
|
1035
|
+
"data-[state=open]:border-0 data-[state=open]:shadow-none",
|
|
1036
|
+
"data-[value]:border-0 data-[value]:shadow-none",
|
|
1037
|
+
"data-[placeholder]:border-0 data-[placeholder]:shadow-none",
|
|
1038
|
+
"text-left outline-none"
|
|
1039
|
+
],
|
|
1040
|
+
r
|
|
1041
|
+
)
|
|
1042
|
+
}, T), {
|
|
1043
|
+
"data-testid": w,
|
|
1044
|
+
children: [
|
|
1045
|
+
/* @__PURE__ */ n(
|
|
1046
|
+
"div",
|
|
1047
|
+
{
|
|
1048
|
+
ref: j,
|
|
1049
|
+
className: `flex min-w-0 flex-1 items-center justify-start gap-2 ${S ? "" : "pr-2"}`,
|
|
1050
|
+
children: B && (l != null && l.length) ? /* @__PURE__ */ C("div", { className: "flex flex-1 items-center gap-1 overflow-hidden", children: [
|
|
1051
|
+
l.slice(0, R).map((D) => /* @__PURE__ */ C(
|
|
1052
|
+
"div",
|
|
1053
|
+
{
|
|
1054
|
+
className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-1.5 py-0.5 text-sm",
|
|
1055
|
+
children: [
|
|
1056
|
+
/* @__PURE__ */ n(L, { variant: "p2", children: D }),
|
|
1057
|
+
/* @__PURE__ */ n(
|
|
1058
|
+
"div",
|
|
1059
|
+
{
|
|
1060
|
+
onPointerDown: (O) => {
|
|
1061
|
+
f || (O.preventDefault(), O.stopPropagation());
|
|
1062
|
+
},
|
|
1063
|
+
onClick: (O) => {
|
|
1064
|
+
f || (O.preventDefault(), O.stopPropagation(), b == null || b(D));
|
|
1065
|
+
},
|
|
1066
|
+
onMouseDown: (O) => {
|
|
1067
|
+
f || (O.preventDefault(), O.stopPropagation());
|
|
1068
|
+
},
|
|
1069
|
+
className: p(
|
|
1070
|
+
"flex cursor-pointer items-center rounded p-0.5 hover:bg-gray-200",
|
|
1071
|
+
f && "cursor-not-allowed opacity-50"
|
|
1072
|
+
),
|
|
1073
|
+
children: /* @__PURE__ */ n(
|
|
1074
|
+
F,
|
|
1075
|
+
{
|
|
1076
|
+
icon: "CloseIcon",
|
|
1077
|
+
size: 12,
|
|
1078
|
+
className: "!text-secondary"
|
|
1079
|
+
}
|
|
1080
|
+
)
|
|
1081
|
+
}
|
|
1082
|
+
)
|
|
1083
|
+
]
|
|
1084
|
+
},
|
|
1085
|
+
D
|
|
1086
|
+
)),
|
|
1087
|
+
l.length > R && /* @__PURE__ */ n("div", { className: "flex flex-shrink-0 items-center gap-1 rounded bg-[#EFEFF1] px-2 py-0.5 text-sm", children: /* @__PURE__ */ C(L, { variant: "p2", children: [
|
|
1088
|
+
"+",
|
|
1089
|
+
l.length - R
|
|
1090
|
+
] }) })
|
|
1091
|
+
] }) : /* @__PURE__ */ n("div", { className: "flex-1 truncate text-left", children: e })
|
|
1092
|
+
}
|
|
1093
|
+
),
|
|
1094
|
+
/* @__PURE__ */ C("div", { className: "flex items-center gap-1.5", children: [
|
|
1095
|
+
u && /* @__PURE__ */ n(
|
|
1096
|
+
"div",
|
|
1097
|
+
{
|
|
1098
|
+
className: p(
|
|
1099
|
+
"rounded px-1.5 py-0.5",
|
|
1100
|
+
typeof u == "string" ? "bg-[#EFEFF1]" : u.className
|
|
1101
|
+
),
|
|
1102
|
+
children: /* @__PURE__ */ n(L, { variant: "p2", children: typeof u == "string" ? u : u.text })
|
|
1103
|
+
}
|
|
1104
|
+
),
|
|
1105
|
+
I && /* @__PURE__ */ n(
|
|
1106
|
+
"div",
|
|
1107
|
+
{
|
|
1108
|
+
onPointerDown: (D) => {
|
|
1109
|
+
f || (D.preventDefault(), D.stopPropagation());
|
|
1110
|
+
},
|
|
1111
|
+
onClick: (D) => {
|
|
1112
|
+
f || (D.preventDefault(), D.stopPropagation(), v == null || v());
|
|
1113
|
+
},
|
|
1114
|
+
onMouseDown: (D) => {
|
|
1115
|
+
f || (D.preventDefault(), D.stopPropagation());
|
|
1116
|
+
},
|
|
1117
|
+
onKeyDown: (D) => {
|
|
1118
|
+
f || (D.key === "Enter" || D.key === " ") && (D.preventDefault(), D.stopPropagation(), v == null || v());
|
|
1119
|
+
},
|
|
1120
|
+
className: p(
|
|
1121
|
+
"flex cursor-pointer items-center justify-center rounded-full p-[2px] hover:bg-muted transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1",
|
|
1122
|
+
f && "cursor-not-allowed opacity-50"
|
|
1123
|
+
),
|
|
1124
|
+
role: "button",
|
|
1125
|
+
tabIndex: 0,
|
|
1126
|
+
"aria-label": "Очистить значение",
|
|
1127
|
+
children: /* @__PURE__ */ n(
|
|
1128
|
+
F,
|
|
1129
|
+
{
|
|
1130
|
+
icon: "CloseIcon",
|
|
1131
|
+
size: 16,
|
|
1132
|
+
className: "text-muted-foreground"
|
|
1133
|
+
}
|
|
1134
|
+
)
|
|
1135
|
+
}
|
|
1136
|
+
),
|
|
1137
|
+
o && /* @__PURE__ */ n(
|
|
1138
|
+
F,
|
|
1139
|
+
{
|
|
1140
|
+
icon: "ErrorFillIcon",
|
|
1141
|
+
className: "!text-destructive",
|
|
1142
|
+
size: 16
|
|
1143
|
+
}
|
|
1144
|
+
),
|
|
1145
|
+
/* @__PURE__ */ n(_.Icon, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1146
|
+
F,
|
|
1147
|
+
{
|
|
1148
|
+
icon: "ArrowDownIcon",
|
|
1149
|
+
className: p(
|
|
1150
|
+
"text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
1151
|
+
m && "pl-1"
|
|
1152
|
+
),
|
|
1153
|
+
size: 16
|
|
1154
|
+
}
|
|
1155
|
+
) })
|
|
1156
|
+
] })
|
|
1157
|
+
]
|
|
1158
|
+
})
|
|
1159
|
+
)
|
|
1160
|
+
}
|
|
1161
|
+
),
|
|
1162
|
+
d && !o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
|
|
1163
|
+
o && g && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: o })
|
|
1164
|
+
] });
|
|
1165
|
+
}
|
|
1166
|
+
);
|
|
1167
|
+
ge.displayName = "SelectTrigger";
|
|
1168
|
+
const Pt = _.Group, Lt = h.forwardRef((d, o) => {
|
|
1169
|
+
var c = d, { className: r, children: e, placeholder: t } = c, a = k(c, ["className", "children", "placeholder"]);
|
|
1170
|
+
return /* @__PURE__ */ n(
|
|
1171
|
+
_.Value,
|
|
1172
|
+
N(x({
|
|
1173
|
+
ref: o,
|
|
1174
|
+
placeholder: t,
|
|
1175
|
+
className: p("block w-full text-left", r)
|
|
1176
|
+
}, a), {
|
|
1177
|
+
children: e
|
|
1178
|
+
})
|
|
1179
|
+
);
|
|
1180
|
+
}), be = h.forwardRef(
|
|
1181
|
+
(u, m) => {
|
|
1182
|
+
var y = u, {
|
|
1183
|
+
className: r,
|
|
1184
|
+
children: e,
|
|
1185
|
+
selectedValues: t = [],
|
|
1186
|
+
value: a,
|
|
1187
|
+
isMultiple: o = !1,
|
|
1188
|
+
size: d = "md"
|
|
1189
|
+
} = y, c = k(y, [
|
|
1190
|
+
"className",
|
|
1191
|
+
"children",
|
|
1192
|
+
"selectedValues",
|
|
1193
|
+
"value",
|
|
1194
|
+
"isMultiple",
|
|
1195
|
+
"size"
|
|
1196
|
+
]);
|
|
1197
|
+
return /* @__PURE__ */ n(_.Portal, { children: /* @__PURE__ */ C(
|
|
1198
|
+
_.Content,
|
|
1199
|
+
N(x({
|
|
1200
|
+
ref: m,
|
|
1201
|
+
className: p(
|
|
1202
|
+
// z-[9999] для отображения поверх модалок и попапов (обычно они имеют z-50 или z-100)
|
|
1203
|
+
"bg-popover text-popover-foreground border-border relative z-[9999] max-h-80 w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg shadow-[0_2px_10px_rgba(0,0,0,0.1)]",
|
|
1204
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1205
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1206
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
1207
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
1208
|
+
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1209
|
+
r
|
|
1210
|
+
),
|
|
1211
|
+
position: "popper",
|
|
1212
|
+
sideOffset: 4
|
|
1213
|
+
}, c), {
|
|
1214
|
+
children: [
|
|
1215
|
+
/* @__PURE__ */ n(pe, {}),
|
|
1216
|
+
/* @__PURE__ */ n(_.Viewport, { className: "box-border flex w-full min-w-[var(--radix-select-trigger-width)] flex-col gap-0.5 p-1", children: h.Children.map(e, (l) => {
|
|
1217
|
+
var b;
|
|
1218
|
+
if (!h.isValidElement(l))
|
|
1219
|
+
return l;
|
|
1220
|
+
if (((b = l.type) == null ? void 0 : b.displayName) === "SelectItem") {
|
|
1221
|
+
const f = o ? t.includes(l.props.value) : a === l.props.value;
|
|
1222
|
+
return h.cloneElement(l, {
|
|
1223
|
+
selected: f,
|
|
1224
|
+
size: d || "md"
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
return l;
|
|
1228
|
+
}) }),
|
|
1229
|
+
/* @__PURE__ */ n(fe, {})
|
|
1230
|
+
]
|
|
1231
|
+
})
|
|
1232
|
+
) });
|
|
1233
|
+
}
|
|
1234
|
+
);
|
|
1235
|
+
be.displayName = "SelectContent";
|
|
1236
|
+
const Ve = h.forwardRef((a, t) => {
|
|
1237
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
1238
|
+
return /* @__PURE__ */ n(
|
|
1239
|
+
_.Label,
|
|
1240
|
+
x({
|
|
1241
|
+
ref: t,
|
|
1242
|
+
className: p(
|
|
1243
|
+
"font-graphik text-secondary px-2 py-1.5 text-[12px]",
|
|
1244
|
+
r
|
|
1245
|
+
)
|
|
1246
|
+
}, e)
|
|
1247
|
+
);
|
|
1248
|
+
});
|
|
1249
|
+
Ve.displayName = "SelectLabel";
|
|
1250
|
+
const Ze = h.forwardRef((a, t) => {
|
|
1251
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
1252
|
+
return /* @__PURE__ */ n(
|
|
1253
|
+
_.Separator,
|
|
1254
|
+
x({
|
|
1255
|
+
ref: t,
|
|
1256
|
+
className: p("hidden", r)
|
|
1257
|
+
}, e)
|
|
1258
|
+
);
|
|
1259
|
+
});
|
|
1260
|
+
Ze.displayName = "SelectSeparator";
|
|
1261
|
+
const _t = _.Root, qe = h.forwardRef(
|
|
1262
|
+
(l, y) => {
|
|
1263
|
+
var b = l, {
|
|
1264
|
+
children: r,
|
|
1265
|
+
selectedValues: e = [],
|
|
1266
|
+
onValuesChange: t,
|
|
1267
|
+
disabled: a,
|
|
1268
|
+
open: o,
|
|
1269
|
+
onOpenChange: d,
|
|
1270
|
+
dir: c,
|
|
1271
|
+
size: m = "md"
|
|
1272
|
+
} = b, u = k(b, [
|
|
1273
|
+
"children",
|
|
1274
|
+
"selectedValues",
|
|
1275
|
+
"onValuesChange",
|
|
1276
|
+
"disabled",
|
|
1277
|
+
"open",
|
|
1278
|
+
"onOpenChange",
|
|
1279
|
+
"dir",
|
|
1280
|
+
"size"
|
|
1281
|
+
]);
|
|
1282
|
+
const f = (g) => {
|
|
1283
|
+
const I = e.includes(g) ? e.filter((v) => v !== g) : [...e, g];
|
|
1284
|
+
t == null || t(I);
|
|
1285
|
+
}, w = (g) => {
|
|
1286
|
+
if (a)
|
|
1287
|
+
return;
|
|
1288
|
+
const I = e.filter((v) => v !== g);
|
|
1289
|
+
t == null || t(I);
|
|
1290
|
+
};
|
|
1291
|
+
return /* @__PURE__ */ _e(
|
|
1292
|
+
_.Root,
|
|
1293
|
+
N(x({}, u), {
|
|
1294
|
+
disabled: a,
|
|
1295
|
+
key: e.sort().join("|"),
|
|
1296
|
+
value: void 0,
|
|
1297
|
+
defaultValue: void 0,
|
|
1298
|
+
onValueChange: f,
|
|
1299
|
+
open: o,
|
|
1300
|
+
onOpenChange: d
|
|
1301
|
+
}),
|
|
1302
|
+
h.Children.map(r, (g) => {
|
|
1303
|
+
var I, v;
|
|
1304
|
+
return h.isValidElement(g) ? ((I = g.type) == null ? void 0 : I.displayName) === "SelectTrigger" ? h.cloneElement(g, N(x({}, g.props), {
|
|
1305
|
+
multiple: !0,
|
|
1306
|
+
selectedValues: e,
|
|
1307
|
+
onValueRemove: w,
|
|
1308
|
+
disabled: a,
|
|
1309
|
+
size: m
|
|
1310
|
+
})) : ((v = g.type) == null ? void 0 : v.displayName) === "SelectContent" ? h.cloneElement(g, N(x({}, g.props), {
|
|
1311
|
+
selectedValues: e,
|
|
1312
|
+
value: void 0,
|
|
1313
|
+
isMultiple: !0,
|
|
1314
|
+
size: m
|
|
1315
|
+
})) : g : g;
|
|
1316
|
+
})
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
1319
|
+
);
|
|
1320
|
+
qe.displayName = "MultiSelect";
|
|
1321
|
+
ge.displayName = "SelectTrigger";
|
|
1322
|
+
be.displayName = "SelectContent";
|
|
1323
|
+
he.displayName = "SelectItem";
|
|
1324
|
+
const Qe = W(
|
|
1325
|
+
"group peer cursor-pointer border-border focus:border-primary focus:shadow-focus disabled:cursor-not-allowed shrink-0 rounded-sm border focus:outline-none flex items-center justify-center",
|
|
1326
|
+
{
|
|
1327
|
+
variants: {
|
|
1328
|
+
size: {
|
|
1329
|
+
md: "h-4 w-4 rounded-sm",
|
|
1330
|
+
lg: "h-6 w-6 rounded-md"
|
|
1331
|
+
},
|
|
1332
|
+
state: {
|
|
1333
|
+
checked: "bg-primary border-primary focus:border-primary focus:hover:border-primary-hover hover:bg-primary-hover hover:border-primary-hover disabled:hover:bg-primary disabled:hover:border-primary active:bg-primary-active active:hover:!border-primary-active",
|
|
1334
|
+
unchecked: "bg-muted focus:hover:border-primary-hover hover:border-primary-hover disabled:hover:border-border active:hover:!border-primary-active",
|
|
1335
|
+
indeterminate: "bg-white border-primary focus:border-primary focus:hover:border-primary-hover hover:border-primary-hover disabled:hover:border-primary active:hover:!border-primary-active"
|
|
1336
|
+
},
|
|
1337
|
+
isDisabled: {
|
|
1338
|
+
true: "opacity-40",
|
|
1339
|
+
false: ""
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
defaultVariants: {
|
|
1343
|
+
size: "md",
|
|
1344
|
+
state: "unchecked",
|
|
1345
|
+
isDisabled: !1
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
), Je = W(
|
|
1349
|
+
"rounded-[2px] bg-primary shrink-0 group-hover:bg-primary-hover group-disabled:group-hover:bg-primary group-active:bg-primary-active",
|
|
1350
|
+
{
|
|
1351
|
+
variants: {
|
|
1352
|
+
size: {
|
|
1353
|
+
md: "w-2 h-2",
|
|
1354
|
+
lg: "w-3 h-3"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
);
|
|
1359
|
+
function Xe(r) {
|
|
1360
|
+
const {
|
|
1361
|
+
className: e,
|
|
1362
|
+
checkboxClassName: t,
|
|
1363
|
+
size: a = "md",
|
|
1364
|
+
label: o,
|
|
1365
|
+
disabled: d,
|
|
1366
|
+
checked: c,
|
|
1367
|
+
id: m,
|
|
1368
|
+
onCheckedChange: u,
|
|
1369
|
+
ref: y,
|
|
1370
|
+
"data-testid": l
|
|
1371
|
+
} = r, b = a === "md" ? 16 : 24, f = h.useId(), w = m || f, g = d || !1, [I, v] = h.useState(!1), S = c !== void 0, T = S ? c : I, z = () => T === !0 ? "checked" : T === "indeterminate" ? "indeterminate" : "unchecked", P = (B) => {
|
|
1372
|
+
S && u ? u(B) : S || v(B);
|
|
1373
|
+
}, A = /* @__PURE__ */ n(
|
|
1374
|
+
de.Root,
|
|
1375
|
+
{
|
|
1376
|
+
ref: y,
|
|
1377
|
+
id: w,
|
|
1378
|
+
className: p(
|
|
1379
|
+
Qe({ size: a, state: z(), isDisabled: g }),
|
|
1380
|
+
t || (o ? void 0 : e)
|
|
1381
|
+
),
|
|
1382
|
+
disabled: g,
|
|
1383
|
+
checked: T,
|
|
1384
|
+
onCheckedChange: P,
|
|
1385
|
+
"data-testid": l,
|
|
1386
|
+
children: /* @__PURE__ */ C(de.Indicator, { className: "flex h-full w-full items-center justify-center", children: [
|
|
1387
|
+
T === "indeterminate" && /* @__PURE__ */ n("div", { className: Je({ size: a }) }),
|
|
1388
|
+
T === !0 && /* @__PURE__ */ n(F, { icon: "DoneIcon", size: b, className: "text-white" })
|
|
1389
|
+
] })
|
|
1390
|
+
}
|
|
1391
|
+
);
|
|
1392
|
+
return o ? /* @__PURE__ */ C("div", { className: p("items-top flex flex-row space-x-2", e), children: [
|
|
1393
|
+
/* @__PURE__ */ n("div", { className: p(a === "md" && "pt-0.5"), children: A }),
|
|
1394
|
+
/* @__PURE__ */ n(
|
|
1395
|
+
"label",
|
|
1396
|
+
{
|
|
1397
|
+
htmlFor: w,
|
|
1398
|
+
className: p(
|
|
1399
|
+
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
1400
|
+
g && "cursor-not-allowed opacity-40",
|
|
1401
|
+
a === "lg" && "pt-0.5"
|
|
1402
|
+
),
|
|
1403
|
+
children: o
|
|
1404
|
+
}
|
|
1405
|
+
)
|
|
1406
|
+
] }) : A;
|
|
1407
|
+
}
|
|
1408
|
+
const Mt = h.forwardRef(
|
|
1409
|
+
(r, e) => /* @__PURE__ */ n(Xe, N(x({}, r), { ref: e }))
|
|
1410
|
+
), Ye = W("flex-col items-center justify-center", {
|
|
1411
|
+
variants: {
|
|
1412
|
+
show: {
|
|
1413
|
+
true: "flex",
|
|
1414
|
+
false: "hidden"
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
defaultVariants: {
|
|
1418
|
+
show: !0
|
|
1419
|
+
}
|
|
1420
|
+
}), Q = h.forwardRef(
|
|
1421
|
+
(c, d) => {
|
|
1422
|
+
var m = c, { size: r = 16, show: e, children: t, className: a } = m, o = k(m, ["size", "show", "children", "className"]);
|
|
1423
|
+
return /* @__PURE__ */ C("span", N(x({ ref: d, className: Ye({ show: e }) }, o), { children: [
|
|
1424
|
+
/* @__PURE__ */ n(
|
|
1425
|
+
F,
|
|
1426
|
+
{
|
|
1427
|
+
icon: "ProgressActivityIcon",
|
|
1428
|
+
size: r,
|
|
1429
|
+
className: p("text-primary animate-spin", a)
|
|
1430
|
+
}
|
|
1431
|
+
),
|
|
1432
|
+
t
|
|
1433
|
+
] }));
|
|
1434
|
+
}
|
|
1435
|
+
);
|
|
1436
|
+
Q.displayName = "Spinner";
|
|
1437
|
+
function jt({ className: r }) {
|
|
1438
|
+
return /* @__PURE__ */ n("div", { className: p("bg-default-background h-[1px] w-full", r) });
|
|
1439
|
+
}
|
|
1440
|
+
const et = h.forwardRef(
|
|
1441
|
+
(S, v) => {
|
|
1442
|
+
var T = S, {
|
|
1443
|
+
className: r,
|
|
1444
|
+
href: e = "#",
|
|
1445
|
+
children: t,
|
|
1446
|
+
target: a = "_self",
|
|
1447
|
+
onClick: o,
|
|
1448
|
+
onKeyDown: d,
|
|
1449
|
+
disabled: c = !1,
|
|
1450
|
+
tabIndex: m,
|
|
1451
|
+
asChild: u = !1,
|
|
1452
|
+
"data-cy": y,
|
|
1453
|
+
"data-testid": l,
|
|
1454
|
+
icon: b,
|
|
1455
|
+
iconPosition: f = "left",
|
|
1456
|
+
iconSize: w,
|
|
1457
|
+
iconClassName: g
|
|
1458
|
+
} = T, I = k(T, [
|
|
1459
|
+
"className",
|
|
1460
|
+
"href",
|
|
1461
|
+
"children",
|
|
1462
|
+
"target",
|
|
1463
|
+
"onClick",
|
|
1464
|
+
"onKeyDown",
|
|
1465
|
+
"disabled",
|
|
1466
|
+
"tabIndex",
|
|
1467
|
+
"asChild",
|
|
1468
|
+
"data-cy",
|
|
1469
|
+
"data-testid",
|
|
1470
|
+
"icon",
|
|
1471
|
+
"iconPosition",
|
|
1472
|
+
"iconSize",
|
|
1473
|
+
"iconClassName"
|
|
1474
|
+
]);
|
|
1475
|
+
const z = (R) => {
|
|
1476
|
+
if (c) {
|
|
1477
|
+
R.preventDefault(), R.stopPropagation();
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1480
|
+
o == null || o(R);
|
|
1481
|
+
}, P = (R) => {
|
|
1482
|
+
if (c && (R.key === "Enter" || R.key === " ")) {
|
|
1483
|
+
R.preventDefault(), R.stopPropagation();
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1486
|
+
d == null || d(R);
|
|
1487
|
+
}, A = p(
|
|
1488
|
+
"inline-flex items-center whitespace-break-spaces no-underline font-graphik border-0 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
|
|
1489
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[disabled=true]:text-primary-hover",
|
|
1490
|
+
r
|
|
1491
|
+
);
|
|
1492
|
+
if (!b) {
|
|
1493
|
+
const R = t;
|
|
1494
|
+
return u ? /* @__PURE__ */ n(
|
|
1495
|
+
J,
|
|
1496
|
+
N(x({
|
|
1497
|
+
ref: v,
|
|
1498
|
+
className: A,
|
|
1499
|
+
"data-cy": y,
|
|
1500
|
+
"data-testid": l,
|
|
1501
|
+
"aria-disabled": c || void 0,
|
|
1502
|
+
"data-disabled": c || void 0,
|
|
1503
|
+
tabIndex: c ? -1 : m,
|
|
1504
|
+
onClick: z,
|
|
1505
|
+
onKeyDown: P
|
|
1506
|
+
}, I), {
|
|
1507
|
+
children: R
|
|
1508
|
+
})
|
|
1509
|
+
) : /* @__PURE__ */ n(
|
|
1510
|
+
"a",
|
|
1511
|
+
N(x({
|
|
1512
|
+
ref: v
|
|
1513
|
+
}, I), {
|
|
1514
|
+
href: c ? void 0 : e,
|
|
1515
|
+
target: a,
|
|
1516
|
+
rel: "noopener noreferrer",
|
|
1517
|
+
className: A,
|
|
1518
|
+
"aria-disabled": c || void 0,
|
|
1519
|
+
"data-disabled": c || void 0,
|
|
1520
|
+
tabIndex: c ? -1 : m,
|
|
1521
|
+
onClick: z,
|
|
1522
|
+
onKeyDown: P,
|
|
1523
|
+
"data-cy": y,
|
|
1524
|
+
"data-testid": l,
|
|
1525
|
+
children: R
|
|
1526
|
+
})
|
|
1527
|
+
);
|
|
1528
|
+
}
|
|
1529
|
+
const B = /* @__PURE__ */ n(F, { icon: b, size: w, className: p("shrink-0", g) }), j = /* @__PURE__ */ C("span", { className: "inline-flex items-center gap-2", children: [
|
|
1530
|
+
f === "left" && B,
|
|
1531
|
+
/* @__PURE__ */ n("span", { className: "inline-flex min-w-0", children: t }),
|
|
1532
|
+
f === "right" && B
|
|
1533
|
+
] });
|
|
1534
|
+
return u ? /* @__PURE__ */ n(
|
|
1535
|
+
J,
|
|
1536
|
+
N(x({
|
|
1537
|
+
ref: v,
|
|
1538
|
+
className: p(
|
|
1539
|
+
A,
|
|
1540
|
+
r
|
|
1541
|
+
),
|
|
1542
|
+
"data-cy": y,
|
|
1543
|
+
"data-testid": l,
|
|
1544
|
+
"aria-disabled": c || void 0,
|
|
1545
|
+
"data-disabled": c || void 0,
|
|
1546
|
+
tabIndex: c ? -1 : m,
|
|
1547
|
+
onClick: z,
|
|
1548
|
+
onKeyDown: P
|
|
1549
|
+
}, I), {
|
|
1550
|
+
children: j
|
|
1551
|
+
})
|
|
1552
|
+
) : /* @__PURE__ */ n(
|
|
1553
|
+
"a",
|
|
1554
|
+
N(x({
|
|
1555
|
+
ref: v
|
|
1556
|
+
}, I), {
|
|
1557
|
+
href: c ? void 0 : e,
|
|
1558
|
+
target: a,
|
|
1559
|
+
rel: "noopener noreferrer",
|
|
1560
|
+
"aria-disabled": c || void 0,
|
|
1561
|
+
"data-disabled": c || void 0,
|
|
1562
|
+
tabIndex: c ? -1 : m,
|
|
1563
|
+
onClick: z,
|
|
1564
|
+
onKeyDown: P,
|
|
1565
|
+
className: p(
|
|
1566
|
+
A,
|
|
1567
|
+
"gap-2",
|
|
1568
|
+
r
|
|
1569
|
+
),
|
|
1570
|
+
"data-cy": y,
|
|
1571
|
+
"data-testid": l,
|
|
1572
|
+
children: j
|
|
1573
|
+
})
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1576
|
+
);
|
|
1577
|
+
et.displayName = "Link";
|
|
1578
|
+
const tt = {
|
|
1579
|
+
sm: "md:w-100",
|
|
1580
|
+
md: "md:w-150",
|
|
1581
|
+
lg: "md:w-200"
|
|
1582
|
+
}, Ot = M.Root, Wt = M.Trigger, rt = M.Portal, Ht = M.Close, xe = h.forwardRef((a, t) => {
|
|
1583
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
1584
|
+
return /* @__PURE__ */ n(
|
|
1585
|
+
M.Overlay,
|
|
1586
|
+
x({
|
|
1587
|
+
ref: t,
|
|
1588
|
+
className: p(
|
|
1589
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[rgba(37,29,53,0.48)]",
|
|
1590
|
+
r
|
|
1591
|
+
)
|
|
1592
|
+
}, e)
|
|
1593
|
+
);
|
|
1594
|
+
});
|
|
1595
|
+
xe.displayName = M.Overlay.displayName;
|
|
1596
|
+
const at = h.forwardRef(
|
|
1597
|
+
(b, l) => {
|
|
1598
|
+
var f = b, {
|
|
1599
|
+
className: r,
|
|
1600
|
+
children: e,
|
|
1601
|
+
showClose: t = !0,
|
|
1602
|
+
footer: a,
|
|
1603
|
+
disabledPadding: o = !1,
|
|
1604
|
+
classNameFooter: d,
|
|
1605
|
+
hideOverlay: c = !1,
|
|
1606
|
+
fullScreen: m = !1,
|
|
1607
|
+
width: u = "sm"
|
|
1608
|
+
} = f, y = k(f, [
|
|
1609
|
+
"className",
|
|
1610
|
+
"children",
|
|
1611
|
+
"showClose",
|
|
1612
|
+
"footer",
|
|
1613
|
+
"disabledPadding",
|
|
1614
|
+
"classNameFooter",
|
|
1615
|
+
"hideOverlay",
|
|
1616
|
+
"fullScreen",
|
|
1617
|
+
"width"
|
|
1618
|
+
]);
|
|
1619
|
+
const w = U(null), [g, I] = ue(!1);
|
|
1620
|
+
return me(() => {
|
|
1621
|
+
const v = () => {
|
|
1622
|
+
w.current && I(w.current.scrollTop > 0);
|
|
1623
|
+
};
|
|
1624
|
+
return setTimeout(() => {
|
|
1625
|
+
const S = w.current;
|
|
1626
|
+
S && S.addEventListener("scroll", v);
|
|
1627
|
+
}, 2e3), () => {
|
|
1628
|
+
const S = w.current;
|
|
1629
|
+
S && S.removeEventListener("scroll", v);
|
|
1630
|
+
};
|
|
1631
|
+
}, []), /* @__PURE__ */ C(rt, { children: [
|
|
1632
|
+
!c && /* @__PURE__ */ n(xe, {}),
|
|
1633
|
+
/* @__PURE__ */ n(
|
|
1634
|
+
M.Content,
|
|
1635
|
+
N(x({
|
|
1636
|
+
ref: l,
|
|
1637
|
+
onOpenAutoFocus: (v) => {
|
|
1638
|
+
v.preventDefault();
|
|
1639
|
+
},
|
|
1640
|
+
className: p(
|
|
1641
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 box-border w-full gap-4 duration-200",
|
|
1642
|
+
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom right-0 bottom-0 left-0 rounded-t-xl md:[right:unset] md:[bottom:unset]",
|
|
1643
|
+
"md:data-[state=closed]:slide-out-to-left-1/2 md:data-[state=closed]:slide-out-to-top-[48%] md:data-[state=open]:slide-in-from-left-1/2 md:data-[state=open]:slide-in-from-top-[48%] md:top-[50%] md:left-[50%] md:translate-x-[-50%] md:translate-y-[-50%] md:rounded-4xl",
|
|
1644
|
+
"max-h-[100vh] overflow-hidden bg-white p-4 md:max-h-[calc(100vh-40px)] md:p-6",
|
|
1645
|
+
tt[u],
|
|
1646
|
+
{ "p-0 md:p-0": o },
|
|
1647
|
+
{ "w-full md:h-full md:max-h-full md:w-full": m },
|
|
1648
|
+
r
|
|
1649
|
+
)
|
|
1650
|
+
}, y), {
|
|
1651
|
+
children: /* @__PURE__ */ C(
|
|
1652
|
+
"div",
|
|
1653
|
+
{
|
|
1654
|
+
className: p(
|
|
1655
|
+
"relative flex h-full max-h-[calc(100vh-32px)] flex-col md:max-h-[calc(100vh-40px-48px)]",
|
|
1656
|
+
{ "max-h-[100vh] md:max-h-[calc(100vh-40px)]": o },
|
|
1657
|
+
{
|
|
1658
|
+
"h-full w-full md:h-full md:max-h-[calc(100vh-48px)] md:w-full": m
|
|
1659
|
+
}
|
|
1660
|
+
),
|
|
1661
|
+
children: [
|
|
1662
|
+
/* @__PURE__ */ n(
|
|
1663
|
+
"div",
|
|
1664
|
+
{
|
|
1665
|
+
className: "no-scrollbar flex flex-col overflow-y-auto",
|
|
1666
|
+
ref: w,
|
|
1667
|
+
children: e
|
|
1668
|
+
}
|
|
1669
|
+
),
|
|
1670
|
+
a && /* @__PURE__ */ n(
|
|
1671
|
+
"div",
|
|
1672
|
+
{
|
|
1673
|
+
className: p(
|
|
1674
|
+
"bottom-0 z-[1] flex pt-4 transition-shadow duration-200 md:pt-6",
|
|
1675
|
+
{ "shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]": g },
|
|
1676
|
+
{ "p-4 md:p-6": o },
|
|
1677
|
+
{
|
|
1678
|
+
"mx-[-18px] px-[18px] md:mx-[-26px] md:px-[26px]": !o
|
|
1679
|
+
},
|
|
1680
|
+
d
|
|
1681
|
+
),
|
|
1682
|
+
children: a
|
|
1683
|
+
}
|
|
1684
|
+
),
|
|
1685
|
+
t && /* @__PURE__ */ n(
|
|
1686
|
+
M.Close,
|
|
1687
|
+
{
|
|
1688
|
+
tabIndex: -1,
|
|
1689
|
+
className: p(
|
|
1690
|
+
"absolute top-[-8px] right-[-8px] border-0 bg-transparent p-0",
|
|
1691
|
+
{ "top-2 right-2": o }
|
|
1692
|
+
),
|
|
1693
|
+
asChild: !0,
|
|
1694
|
+
children: /* @__PURE__ */ n(
|
|
1695
|
+
ee,
|
|
1696
|
+
{
|
|
1697
|
+
variant: "text",
|
|
1698
|
+
className: "text-secondary",
|
|
1699
|
+
iconOnly: !0,
|
|
1700
|
+
icon: "CloseIcon"
|
|
1701
|
+
}
|
|
1702
|
+
)
|
|
1703
|
+
}
|
|
1704
|
+
)
|
|
1705
|
+
]
|
|
1706
|
+
}
|
|
1707
|
+
)
|
|
1708
|
+
})
|
|
1709
|
+
)
|
|
1710
|
+
] });
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
at.displayName = M.Content.displayName;
|
|
1714
|
+
function ot(t) {
|
|
1715
|
+
var a = t, {
|
|
1716
|
+
className: r
|
|
1717
|
+
} = a, e = k(a, [
|
|
1718
|
+
"className"
|
|
1719
|
+
]);
|
|
1720
|
+
return /* @__PURE__ */ n("div", x({ className: p("flex flex-col space-y-1.5", r) }, e));
|
|
1721
|
+
}
|
|
1722
|
+
ot.displayName = "DialogHeader";
|
|
1723
|
+
const nt = h.forwardRef((a, t) => {
|
|
1724
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
1725
|
+
return /* @__PURE__ */ n(
|
|
1726
|
+
M.Title,
|
|
1727
|
+
x({
|
|
1728
|
+
ref: t,
|
|
1729
|
+
className: p(
|
|
1730
|
+
"",
|
|
1731
|
+
{
|
|
1732
|
+
"font-graphik m-0 mb-2 pr-3 text-[28px] leading-[32px] font-bold md:mb-4": !e.asChild
|
|
1733
|
+
},
|
|
1734
|
+
r
|
|
1735
|
+
)
|
|
1736
|
+
}, e)
|
|
1737
|
+
);
|
|
1738
|
+
});
|
|
1739
|
+
nt.displayName = M.Title.displayName;
|
|
1740
|
+
const it = h.forwardRef((a, t) => {
|
|
1741
|
+
var o = a, { className: r } = o, e = k(o, ["className"]);
|
|
1742
|
+
return /* @__PURE__ */ n(
|
|
1743
|
+
M.Description,
|
|
1744
|
+
x({
|
|
1745
|
+
ref: t,
|
|
1746
|
+
className: p("", r)
|
|
1747
|
+
}, e)
|
|
1748
|
+
);
|
|
1749
|
+
});
|
|
1750
|
+
it.displayName = M.Description.displayName;
|
|
1751
|
+
const st = W(
|
|
1752
|
+
"peer relative inline-flex shrink-0 items-center justify-center rounded-full border transition-colors focus:outline-none focus:shadow-focus disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-border cursor-pointer",
|
|
1753
|
+
{
|
|
1754
|
+
variants: {
|
|
1755
|
+
size: {
|
|
1756
|
+
md: "h-4 w-4",
|
|
1757
|
+
lg: "h-6 w-6"
|
|
1758
|
+
},
|
|
1759
|
+
isChecked: {
|
|
1760
|
+
true: 'bg-primary active:bg-primary-active border-primary hover:border-primary-hover active:border-primary-active after:absolute after:left-1/2 after:top-1/2 after:-translate-x-1/2 after:-translate-y-1/2 after:transform after:rounded-full after:bg-white after:content-[""] disabled:hover:border-primary',
|
|
1761
|
+
false: "bg-default-background active:bg-background border-border hover:border-primary-hover focus:border-primary-active focus:shadow-focus active:border-primary-active"
|
|
1762
|
+
},
|
|
1763
|
+
dotSize: {
|
|
1764
|
+
md: "after:h-2 after:w-2",
|
|
1765
|
+
lg: "after:h-3 after:w-3"
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
defaultVariants: {
|
|
1769
|
+
size: "md",
|
|
1770
|
+
isChecked: !1,
|
|
1771
|
+
dotSize: "md"
|
|
1772
|
+
},
|
|
1773
|
+
compoundVariants: [
|
|
1774
|
+
{
|
|
1775
|
+
isChecked: !0,
|
|
1776
|
+
size: "md",
|
|
1777
|
+
dotSize: "md"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
isChecked: !0,
|
|
1781
|
+
size: "lg",
|
|
1782
|
+
dotSize: "lg"
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1785
|
+
}
|
|
1786
|
+
), dt = h.forwardRef(
|
|
1787
|
+
(I, g) => {
|
|
1788
|
+
var v = I, {
|
|
1789
|
+
className: r,
|
|
1790
|
+
size: e,
|
|
1791
|
+
label: t,
|
|
1792
|
+
checked: a,
|
|
1793
|
+
disabled: o,
|
|
1794
|
+
value: d,
|
|
1795
|
+
id: c,
|
|
1796
|
+
name: m,
|
|
1797
|
+
onValueChange: u,
|
|
1798
|
+
onClick: y,
|
|
1799
|
+
onFocus: l,
|
|
1800
|
+
onBlur: b,
|
|
1801
|
+
"data-testid": f
|
|
1802
|
+
} = v, w = k(v, [
|
|
1803
|
+
"className",
|
|
1804
|
+
"size",
|
|
1805
|
+
"label",
|
|
1806
|
+
"checked",
|
|
1807
|
+
"disabled",
|
|
1808
|
+
"value",
|
|
1809
|
+
"id",
|
|
1810
|
+
"name",
|
|
1811
|
+
"onValueChange",
|
|
1812
|
+
"onClick",
|
|
1813
|
+
"onFocus",
|
|
1814
|
+
"onBlur",
|
|
1815
|
+
"data-testid"
|
|
1816
|
+
]);
|
|
1817
|
+
const S = a || !1, T = o || !1, z = h.useId(), P = c || `${z}-radio`;
|
|
1818
|
+
return /* @__PURE__ */ n(
|
|
1819
|
+
"label",
|
|
1820
|
+
{
|
|
1821
|
+
htmlFor: P,
|
|
1822
|
+
className: p(
|
|
1823
|
+
"select-none",
|
|
1824
|
+
T ? "cursor-not-allowed opacity-40" : "cursor-pointer"
|
|
1825
|
+
),
|
|
1826
|
+
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
|
|
1827
|
+
/* @__PURE__ */ n(
|
|
1828
|
+
q.Item,
|
|
1829
|
+
N(x({
|
|
1830
|
+
className: p(
|
|
1831
|
+
st({
|
|
1832
|
+
size: e,
|
|
1833
|
+
isChecked: S,
|
|
1834
|
+
dotSize: e
|
|
1835
|
+
}),
|
|
1836
|
+
r
|
|
1837
|
+
),
|
|
1838
|
+
checked: a,
|
|
1839
|
+
disabled: T,
|
|
1840
|
+
value: d,
|
|
1841
|
+
id: P
|
|
1842
|
+
}, w), {
|
|
1843
|
+
ref: g,
|
|
1844
|
+
"data-testid": f
|
|
1845
|
+
})
|
|
1846
|
+
),
|
|
1847
|
+
t && /* @__PURE__ */ n("span", { children: t })
|
|
1848
|
+
] })
|
|
1849
|
+
}
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
);
|
|
1853
|
+
dt.displayName = q.Item.displayName;
|
|
1854
|
+
const ct = h.forwardRef((c, d) => {
|
|
1855
|
+
var m = c, { className: r, label: e, error: t, size: a = "md" } = m, o = k(m, ["className", "label", "error", "size"]);
|
|
1856
|
+
return /* @__PURE__ */ C("div", { className: "w-full", children: [
|
|
1857
|
+
e && /* @__PURE__ */ n(
|
|
1858
|
+
L,
|
|
1859
|
+
{
|
|
1860
|
+
variant: "p3",
|
|
1861
|
+
weight: "medium",
|
|
1862
|
+
className: p({
|
|
1863
|
+
"mb-1.5 text-[14px]": a === "md",
|
|
1864
|
+
"mb-2.5 text-[16px]": a === "lg"
|
|
1865
|
+
}),
|
|
1866
|
+
children: e
|
|
1867
|
+
}
|
|
1868
|
+
),
|
|
1869
|
+
/* @__PURE__ */ n(
|
|
1870
|
+
q.Root,
|
|
1871
|
+
N(x({
|
|
1872
|
+
className: p("grid gap-1.5", r)
|
|
1873
|
+
}, o), {
|
|
1874
|
+
ref: d
|
|
1875
|
+
})
|
|
1876
|
+
),
|
|
1877
|
+
t && /* @__PURE__ */ n(L, { variant: "p2", className: "mt-1", textColor: "destructive", children: t })
|
|
1878
|
+
] });
|
|
1879
|
+
});
|
|
1880
|
+
ct.displayName = q.Root.displayName;
|
|
1881
|
+
const lt = W(
|
|
1882
|
+
"peer inline-flex shrink-0 items-center justify-start rounded-full border-none border-transparent transition-colors duration-200 focus:outline-none focus:shadow-focus p-0.5 data-[state=checked]:justify-end cursor-pointer disabled:cursor-not-allowed",
|
|
1883
|
+
{
|
|
1884
|
+
variants: {
|
|
1885
|
+
size: {
|
|
1886
|
+
md: "w-7 h-4 rounded-full",
|
|
1887
|
+
lg: "w-11 h-6 rounded-full"
|
|
1888
|
+
},
|
|
1889
|
+
isChecked: {
|
|
1890
|
+
true: "bg-primary",
|
|
1891
|
+
false: "bg-switch-background"
|
|
1892
|
+
},
|
|
1893
|
+
isLoading: {
|
|
1894
|
+
true: "opacity-64",
|
|
1895
|
+
false: ""
|
|
1896
|
+
},
|
|
1897
|
+
isDisabled: {
|
|
1898
|
+
true: "opacity-40",
|
|
1899
|
+
false: ""
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
defaultVariants: {
|
|
1903
|
+
size: "md",
|
|
1904
|
+
isChecked: !1,
|
|
1905
|
+
isLoading: !1,
|
|
1906
|
+
isDisabled: !1
|
|
1907
|
+
},
|
|
1908
|
+
compoundVariants: [
|
|
1909
|
+
{
|
|
1910
|
+
isChecked: !0,
|
|
1911
|
+
isDisabled: !1,
|
|
1912
|
+
class: "hover:bg-primary-hover"
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
isChecked: !1,
|
|
1916
|
+
isDisabled: !1,
|
|
1917
|
+
class: "hover:bg-default-background"
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1920
|
+
}
|
|
1921
|
+
), ut = W(
|
|
1922
|
+
"pointer-events-none block rounded-full border-0 bg-background shadow-lg transition-all duration-200 ease-in-out",
|
|
1923
|
+
{
|
|
1924
|
+
variants: {
|
|
1925
|
+
size: {
|
|
1926
|
+
md: "w-3 h-3",
|
|
1927
|
+
lg: "w-5 h-5"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
defaultVariants: {
|
|
1931
|
+
size: "md"
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
), mt = h.forwardRef((l, y) => {
|
|
1935
|
+
var b = l, { className: r, size: e, label: t, loading: a, checked: o, disabled: d, "data-testid": c, onCheckedChange: m } = b, u = k(b, ["className", "size", "label", "loading", "checked", "disabled", "data-testid", "onCheckedChange"]);
|
|
1936
|
+
const f = o || !1, w = d || !1, g = U(void 0), I = (S) => {
|
|
1937
|
+
g.current = S;
|
|
1938
|
+
}, v = (S) => {
|
|
1939
|
+
m && (m(S, g.current), g.current = void 0);
|
|
1940
|
+
};
|
|
1941
|
+
return /* @__PURE__ */ C("div", { className: "flex items-center gap-2.5", children: [
|
|
1942
|
+
/* @__PURE__ */ n(
|
|
1943
|
+
X.Root,
|
|
1944
|
+
N(x({
|
|
1945
|
+
className: p(
|
|
1946
|
+
lt({
|
|
1947
|
+
size: e,
|
|
1948
|
+
isChecked: f,
|
|
1949
|
+
isLoading: !!a,
|
|
1950
|
+
isDisabled: w
|
|
1951
|
+
}),
|
|
1952
|
+
r
|
|
1953
|
+
),
|
|
1954
|
+
checked: o,
|
|
1955
|
+
disabled: w,
|
|
1956
|
+
isLoading: a,
|
|
1957
|
+
defaultChecked: o,
|
|
1958
|
+
ref: y,
|
|
1959
|
+
"data-testid": c,
|
|
1960
|
+
onCheckedChange: v,
|
|
1961
|
+
onClick: I
|
|
1962
|
+
}, u), {
|
|
1963
|
+
children: /* @__PURE__ */ n(
|
|
1964
|
+
X.Thumb,
|
|
1965
|
+
{
|
|
1966
|
+
className: p(
|
|
1967
|
+
ut({ size: e }),
|
|
1968
|
+
a && "flex items-center justify-center"
|
|
1969
|
+
),
|
|
1970
|
+
children: a && /* @__PURE__ */ n(
|
|
1971
|
+
Q,
|
|
1972
|
+
{
|
|
1973
|
+
size: e === "lg" ? 16 : 8,
|
|
1974
|
+
className: o ? "text-primary" : "text-switch-background"
|
|
1975
|
+
}
|
|
1976
|
+
)
|
|
1977
|
+
}
|
|
1978
|
+
)
|
|
1979
|
+
})
|
|
1980
|
+
),
|
|
1981
|
+
t && /* @__PURE__ */ n(
|
|
1982
|
+
"label",
|
|
1983
|
+
{
|
|
1984
|
+
className: p(
|
|
1985
|
+
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
1986
|
+
w && "cursor-not-allowed opacity-40",
|
|
1987
|
+
e === "lg" && "pt-0.5"
|
|
1988
|
+
),
|
|
1989
|
+
children: t
|
|
1990
|
+
}
|
|
1991
|
+
)
|
|
1992
|
+
] });
|
|
1993
|
+
});
|
|
1994
|
+
mt.displayName = X.Root.displayName;
|
|
1995
|
+
const pt = W(
|
|
1996
|
+
"font-cofo flex flex-shrink-0 items-center justify-center w-fit rounded-md font-medium border-0 h-6 px-2 text-[14px] leading-[18px] min-w-max",
|
|
1997
|
+
{
|
|
1998
|
+
variants: {
|
|
1999
|
+
color: {
|
|
2000
|
+
default: "bg-default-background text-default",
|
|
2001
|
+
magenta: "bg-[var(--tag-magenta-bg)] text-[var(--tag-magenta-fg)]",
|
|
2002
|
+
blue: "bg-[var(--tag-blue-bg)] text-[var(--tag-blue-fg)]",
|
|
2003
|
+
cyan: "bg-[var(--tag-cyan-bg)] text-[var(--tag-cyan-fg)]",
|
|
2004
|
+
geekblue: "bg-[var(--tag-geekblue-bg)] text-[var(--tag-geekblue-fg)]",
|
|
2005
|
+
gold: "bg-[var(--tag-gold-bg)] text-[var(--tag-gold-fg)]",
|
|
2006
|
+
green: "bg-[var(--tag-green-bg)] text-[var(--tag-green-fg)]",
|
|
2007
|
+
lime: "bg-[var(--tag-lime-bg)] text-[var(--tag-lime-fg)]",
|
|
2008
|
+
orange: "bg-[var(--tag-orange-bg)] text-[var(--tag-orange-fg)]",
|
|
2009
|
+
purple: "bg-[var(--tag-purple-bg)] text-[var(--tag-purple-fg)]",
|
|
2010
|
+
red: "bg-[var(--tag-red-bg)] text-[var(--tag-red-fg)]",
|
|
2011
|
+
volcano: "bg-[var(--tag-volcano-bg)] text-[var(--tag-volcano-fg)]",
|
|
2012
|
+
gray: "bg-[var(--tag-gray-bg)] text-[var(--tag-gray-fg)]"
|
|
2013
|
+
},
|
|
2014
|
+
iconOnly: {
|
|
2015
|
+
true: "w-6 h-6 p-0 flex items-center justify-center",
|
|
2016
|
+
false: ""
|
|
2017
|
+
},
|
|
2018
|
+
iconPosition: {
|
|
2019
|
+
start: "gap-1",
|
|
2020
|
+
end: "gap-1"
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
defaultVariants: {
|
|
2024
|
+
color: "default",
|
|
2025
|
+
iconOnly: !1,
|
|
2026
|
+
iconPosition: "start"
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
), ft = h.forwardRef(
|
|
2030
|
+
(b, l) => {
|
|
2031
|
+
var f = b, {
|
|
2032
|
+
color: r = "default",
|
|
2033
|
+
disabled: e = !1,
|
|
2034
|
+
iconOnly: t = !1,
|
|
2035
|
+
iconPosition: a = "start",
|
|
2036
|
+
icon: o,
|
|
2037
|
+
iconProps: d,
|
|
2038
|
+
children: c,
|
|
2039
|
+
className: m,
|
|
2040
|
+
"data-testid": u
|
|
2041
|
+
} = f, y = k(f, [
|
|
2042
|
+
"color",
|
|
2043
|
+
"disabled",
|
|
2044
|
+
"iconOnly",
|
|
2045
|
+
"iconPosition",
|
|
2046
|
+
"icon",
|
|
2047
|
+
"iconProps",
|
|
2048
|
+
"children",
|
|
2049
|
+
"className",
|
|
2050
|
+
"data-testid"
|
|
2051
|
+
]);
|
|
2052
|
+
const w = () => o ? /* @__PURE__ */ n(F, x({ icon: o, size: 12 }, d)) : null, g = /* @__PURE__ */ C(le, { children: [
|
|
2053
|
+
a === "start" && w(),
|
|
2054
|
+
c,
|
|
2055
|
+
a === "end" && w()
|
|
2056
|
+
] });
|
|
2057
|
+
return /* @__PURE__ */ n(
|
|
2058
|
+
"div",
|
|
2059
|
+
N(x({
|
|
2060
|
+
ref: l,
|
|
2061
|
+
className: p(
|
|
2062
|
+
pt({
|
|
2063
|
+
color: r,
|
|
2064
|
+
iconOnly: t,
|
|
2065
|
+
iconPosition: a
|
|
2066
|
+
}),
|
|
2067
|
+
e && "bg-muted border-0 opacity-60",
|
|
2068
|
+
m
|
|
2069
|
+
)
|
|
2070
|
+
}, y), {
|
|
2071
|
+
"data-testid": u,
|
|
2072
|
+
children: t ? w() : g
|
|
2073
|
+
})
|
|
2074
|
+
);
|
|
2075
|
+
}
|
|
2076
|
+
);
|
|
2077
|
+
ft.displayName = "Tag";
|
|
2078
|
+
function ht(r, e, t, a) {
|
|
2079
|
+
const o = U(null), d = U(0), c = U(!1), m = U(0);
|
|
2080
|
+
return me(() => {
|
|
2081
|
+
if (!r || !o.current)
|
|
2082
|
+
return;
|
|
2083
|
+
const u = o.current, y = () => {
|
|
2084
|
+
if (t) {
|
|
2085
|
+
const g = u.value;
|
|
2086
|
+
u.value = t, u.style.height = "auto", d.current = u.scrollHeight, u.value = g;
|
|
2087
|
+
}
|
|
2088
|
+
};
|
|
2089
|
+
d.current === 0 && y();
|
|
2090
|
+
const l = () => {
|
|
2091
|
+
if (c.current)
|
|
2092
|
+
return;
|
|
2093
|
+
u.style.height = "auto";
|
|
2094
|
+
const g = u.scrollHeight, I = Math.max(g, d.current);
|
|
2095
|
+
if (e) {
|
|
2096
|
+
const v = typeof e == "number" ? `${e}px` : e;
|
|
2097
|
+
u.style.maxHeight = v, I > (typeof e == "number" ? e : Number.parseInt(e)) ? (u.style.height = v, u.style.setProperty("overflow-y", "auto", "important")) : (u.style.height = `${I}px`, u.style.setProperty("overflow-y", "hidden", "important"));
|
|
2098
|
+
} else
|
|
2099
|
+
u.style.height = `${I}px`, u.style.setProperty("overflow-y", "hidden", "important");
|
|
2100
|
+
m.current = u.clientHeight;
|
|
2101
|
+
}, b = () => {
|
|
2102
|
+
y(), l();
|
|
2103
|
+
}, f = () => {
|
|
2104
|
+
c.current = !0;
|
|
2105
|
+
}, w = () => {
|
|
2106
|
+
if (c.current) {
|
|
2107
|
+
c.current = !1;
|
|
2108
|
+
const g = u.clientHeight;
|
|
2109
|
+
g !== m.current && (d.current = g), m.current = g, l();
|
|
2110
|
+
}
|
|
2111
|
+
};
|
|
2112
|
+
return l(), u.addEventListener("input", l), u.addEventListener("paste", l), u.addEventListener("mousedown", f), document.addEventListener("mouseup", w), window.addEventListener("resize", b), () => {
|
|
2113
|
+
u.removeEventListener("input", l), u.removeEventListener("paste", l), u.removeEventListener("mousedown", f), document.removeEventListener("mouseup", w), window.removeEventListener("resize", b);
|
|
2114
|
+
};
|
|
2115
|
+
}, [r, e, t, a]), o;
|
|
2116
|
+
}
|
|
2117
|
+
const gt = h.forwardRef(
|
|
2118
|
+
(g, w) => {
|
|
2119
|
+
var I = g, {
|
|
2120
|
+
className: r,
|
|
2121
|
+
variant: e = "default",
|
|
2122
|
+
fullWidth: t = !0,
|
|
2123
|
+
label: a,
|
|
2124
|
+
error: o,
|
|
2125
|
+
caption: d,
|
|
2126
|
+
autoResize: c = !1,
|
|
2127
|
+
maxHeight: m = 140,
|
|
2128
|
+
showErrorMessage: u = !0,
|
|
2129
|
+
"data-testid": y,
|
|
2130
|
+
disabled: l,
|
|
2131
|
+
size: b = "md"
|
|
2132
|
+
} = I, f = k(I, [
|
|
2133
|
+
"className",
|
|
2134
|
+
"variant",
|
|
2135
|
+
"fullWidth",
|
|
2136
|
+
"label",
|
|
2137
|
+
"error",
|
|
2138
|
+
"caption",
|
|
2139
|
+
"autoResize",
|
|
2140
|
+
"maxHeight",
|
|
2141
|
+
"showErrorMessage",
|
|
2142
|
+
"data-testid",
|
|
2143
|
+
"disabled",
|
|
2144
|
+
"size"
|
|
2145
|
+
]);
|
|
2146
|
+
const v = ht(c, m, f.placeholder, f.value);
|
|
2147
|
+
return Me(w, () => v.current, [v]), /* @__PURE__ */ C("div", { className: "w-full", children: [
|
|
2148
|
+
a && /* @__PURE__ */ n(L, { variant: "p2", weight: "medium", className: "mb-1.5", children: a }),
|
|
2149
|
+
/* @__PURE__ */ C(
|
|
2150
|
+
"div",
|
|
2151
|
+
{
|
|
2152
|
+
className: p(
|
|
2153
|
+
"bg-background relative flex rounded-lg border-1 border-solid pr-1 pb-1",
|
|
2154
|
+
{
|
|
2155
|
+
// Variants
|
|
2156
|
+
"disabled:hover:border-border disabled:focus-within:border-border border-input hover:border-hover-input-primary focus-within:border-primary focus-within:shadow-focus disabled:focus-within:shadow-none disabled:hover:border-none": e === "default" && (!o || o === "") && !l,
|
|
2157
|
+
"border-primary hover:border-hover-input-primary focus-within:border-primary": e === "primary" && (!o || o === ""),
|
|
2158
|
+
"border-destructive hover:border-destructive focus-within:border-destructive focus-within:shadow-error": o != null && o !== "",
|
|
2159
|
+
"border-positive focus-within:border-positive hover:border-positive": e === "success" && (!o || o === ""),
|
|
2160
|
+
"rounded-lg": b === "md",
|
|
2161
|
+
"rounded-xl": b === "lg",
|
|
2162
|
+
// Full width
|
|
2163
|
+
"bg-muted text-muted-foreground cursor-not-allowed border-border": l,
|
|
2164
|
+
"w-full": t
|
|
2165
|
+
}
|
|
2166
|
+
),
|
|
2167
|
+
children: [
|
|
2168
|
+
/* @__PURE__ */ n(
|
|
2169
|
+
"textarea",
|
|
2170
|
+
x({
|
|
2171
|
+
className: p(
|
|
2172
|
+
"font-graphik placeholder:text-muted-foreground box-border flex flex-1 border-0 bg-transparent transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
2173
|
+
{
|
|
2174
|
+
// Остальные стили
|
|
2175
|
+
"pr-8.5": o && o !== "",
|
|
2176
|
+
"max-h-35 min-h-20 resize-y": !c,
|
|
2177
|
+
"overflow-hidden resize-y": c,
|
|
2178
|
+
"pl-2.5 pr-1.5 pt-2 pb-1 text-[14px]": b === "md",
|
|
2179
|
+
"pl-3 pr-2 pt-2.5 pb-1.5 text-[16px]": b === "lg"
|
|
2180
|
+
},
|
|
2181
|
+
r,
|
|
2182
|
+
l && "cursor-not-allowed"
|
|
2183
|
+
),
|
|
2184
|
+
ref: v,
|
|
2185
|
+
"data-testid": y,
|
|
2186
|
+
disabled: l
|
|
2187
|
+
}, f)
|
|
2188
|
+
),
|
|
2189
|
+
o && o !== "" && u && /* @__PURE__ */ n(
|
|
2190
|
+
"div",
|
|
2191
|
+
{
|
|
2192
|
+
className: p("absolute", {
|
|
2193
|
+
"top-2 right-1.5": b === "md",
|
|
2194
|
+
"top-2.5 right-2": b === "lg"
|
|
2195
|
+
}),
|
|
2196
|
+
children: /* @__PURE__ */ n(
|
|
2197
|
+
F,
|
|
2198
|
+
{
|
|
2199
|
+
icon: "ErrorFillIcon",
|
|
2200
|
+
className: "text-destructive",
|
|
2201
|
+
size: 16
|
|
2202
|
+
}
|
|
2203
|
+
)
|
|
2204
|
+
}
|
|
2205
|
+
)
|
|
2206
|
+
]
|
|
2207
|
+
}
|
|
2208
|
+
),
|
|
2209
|
+
d && !o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: d }),
|
|
2210
|
+
o && /* @__PURE__ */ n(L, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: o })
|
|
2211
|
+
] });
|
|
2212
|
+
}
|
|
2213
|
+
);
|
|
2214
|
+
gt.displayName = "Textarea";
|
|
2215
|
+
function Y(r, e = /* @__PURE__ */ new Set()) {
|
|
2216
|
+
const t = [];
|
|
2217
|
+
if (typeof r == "string")
|
|
2218
|
+
return r.trim() !== "" && t.push(r), t;
|
|
2219
|
+
if (r instanceof Error) {
|
|
2220
|
+
const a = r.message || r.name;
|
|
2221
|
+
return a && a.trim() !== "" && t.push(a), t;
|
|
2222
|
+
}
|
|
2223
|
+
if (Array.isArray(r)) {
|
|
2224
|
+
for (const a of r)
|
|
2225
|
+
t.push(...Y(a, e));
|
|
2226
|
+
return t;
|
|
2227
|
+
}
|
|
2228
|
+
if (r && typeof r == "object" && !e.has(r)) {
|
|
2229
|
+
e.add(r);
|
|
2230
|
+
const a = [
|
|
2231
|
+
"message",
|
|
2232
|
+
"error",
|
|
2233
|
+
"msg",
|
|
2234
|
+
"text",
|
|
2235
|
+
"description",
|
|
2236
|
+
"detail",
|
|
2237
|
+
"errors"
|
|
2238
|
+
];
|
|
2239
|
+
for (const o of a) {
|
|
2240
|
+
const d = r;
|
|
2241
|
+
o in d && t.push(...Y(d[o], e));
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
if (typeof r != "object" && r !== null && r !== void 0) {
|
|
2245
|
+
const a = String(r);
|
|
2246
|
+
a.trim() !== "" && t.push(a);
|
|
2247
|
+
}
|
|
2248
|
+
return Array.from(new Set(t)).filter(
|
|
2249
|
+
(a) => a !== "[object Object]"
|
|
2250
|
+
);
|
|
2251
|
+
}
|
|
2252
|
+
function K(r, e, t) {
|
|
2253
|
+
const a = Y(r);
|
|
2254
|
+
return a.length === 0 ? (e && e(r), [t || "Произошла ошибка"]) : a;
|
|
2255
|
+
}
|
|
2256
|
+
function bt(r, e) {
|
|
2257
|
+
return E(r, e);
|
|
2258
|
+
}
|
|
2259
|
+
const Ut = Object.assign(bt, {
|
|
2260
|
+
success: (r, e) => {
|
|
2261
|
+
const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
|
|
2262
|
+
r,
|
|
2263
|
+
e == null ? void 0 : e.onExtractError,
|
|
2264
|
+
e == null ? void 0 : e.defaultMessage
|
|
2265
|
+
);
|
|
2266
|
+
return t.length > 1 ? t.map((a) => (() => {
|
|
2267
|
+
const d = E.success(
|
|
2268
|
+
/* @__PURE__ */ n(
|
|
2269
|
+
"div",
|
|
2270
|
+
{
|
|
2271
|
+
onClick: () => E.dismiss(d),
|
|
2272
|
+
onKeyDown: (c) => {
|
|
2273
|
+
(c.key === "Enter" || c.key === " ") && E.dismiss(d);
|
|
2274
|
+
},
|
|
2275
|
+
role: "button",
|
|
2276
|
+
tabIndex: 0,
|
|
2277
|
+
style: { cursor: "pointer", width: "100%" },
|
|
2278
|
+
children: a
|
|
2279
|
+
}
|
|
2280
|
+
),
|
|
2281
|
+
N(x({}, e), {
|
|
2282
|
+
duration: 1 / 0,
|
|
2283
|
+
unstyled: !1
|
|
2284
|
+
})
|
|
2285
|
+
);
|
|
2286
|
+
return d;
|
|
2287
|
+
})()) : E.success(t[0], e);
|
|
2288
|
+
},
|
|
2289
|
+
error: (r, e) => {
|
|
2290
|
+
const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
|
|
2291
|
+
r,
|
|
2292
|
+
e == null ? void 0 : e.onExtractError,
|
|
2293
|
+
e == null ? void 0 : e.defaultMessage
|
|
2294
|
+
);
|
|
2295
|
+
return t.length > 1 ? t.map((a) => (() => {
|
|
2296
|
+
const d = E.error(
|
|
2297
|
+
/* @__PURE__ */ n(
|
|
2298
|
+
"div",
|
|
2299
|
+
{
|
|
2300
|
+
onClick: () => E.dismiss(d),
|
|
2301
|
+
onKeyDown: (c) => {
|
|
2302
|
+
(c.key === "Enter" || c.key === " ") && E.dismiss(d);
|
|
2303
|
+
},
|
|
2304
|
+
role: "button",
|
|
2305
|
+
tabIndex: 0,
|
|
2306
|
+
style: { cursor: "pointer", width: "100%" },
|
|
2307
|
+
children: a
|
|
2308
|
+
}
|
|
2309
|
+
),
|
|
2310
|
+
N(x({}, e), {
|
|
2311
|
+
duration: 1 / 0,
|
|
2312
|
+
unstyled: !1
|
|
2313
|
+
})
|
|
2314
|
+
);
|
|
2315
|
+
return d;
|
|
2316
|
+
})()) : E.error(t[0], e);
|
|
2317
|
+
},
|
|
2318
|
+
info: (r, e) => {
|
|
2319
|
+
const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
|
|
2320
|
+
r,
|
|
2321
|
+
e == null ? void 0 : e.onExtractError,
|
|
2322
|
+
e == null ? void 0 : e.defaultMessage
|
|
2323
|
+
);
|
|
2324
|
+
return t.length > 1 ? t.map((a) => (() => {
|
|
2325
|
+
const d = E.info(
|
|
2326
|
+
// Обертка с обработчиком клика для закрытия
|
|
2327
|
+
/* @__PURE__ */ n(
|
|
2328
|
+
"div",
|
|
2329
|
+
{
|
|
2330
|
+
onClick: () => E.dismiss(d),
|
|
2331
|
+
onKeyDown: (c) => {
|
|
2332
|
+
(c.key === "Enter" || c.key === " ") && E.dismiss(d);
|
|
2333
|
+
},
|
|
2334
|
+
role: "button",
|
|
2335
|
+
tabIndex: 0,
|
|
2336
|
+
style: { cursor: "pointer", width: "100%" },
|
|
2337
|
+
children: a
|
|
2338
|
+
}
|
|
2339
|
+
),
|
|
2340
|
+
N(x({}, e), {
|
|
2341
|
+
duration: 1 / 0,
|
|
2342
|
+
// Не скрываем автоматически
|
|
2343
|
+
unstyled: !1
|
|
2344
|
+
})
|
|
2345
|
+
);
|
|
2346
|
+
return d;
|
|
2347
|
+
})()) : E.info(t[0], e);
|
|
2348
|
+
},
|
|
2349
|
+
warning: (r, e) => {
|
|
2350
|
+
const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
|
|
2351
|
+
r,
|
|
2352
|
+
e == null ? void 0 : e.onExtractError,
|
|
2353
|
+
e == null ? void 0 : e.defaultMessage
|
|
2354
|
+
);
|
|
2355
|
+
return t.length > 1 ? t.map((a) => (() => {
|
|
2356
|
+
const d = E.warning(
|
|
2357
|
+
// Обертка с обработчиком клика для закрытия
|
|
2358
|
+
/* @__PURE__ */ n(
|
|
2359
|
+
"div",
|
|
2360
|
+
{
|
|
2361
|
+
onClick: () => E.dismiss(d),
|
|
2362
|
+
onKeyDown: (c) => {
|
|
2363
|
+
(c.key === "Enter" || c.key === " ") && E.dismiss(d);
|
|
2364
|
+
},
|
|
2365
|
+
role: "button",
|
|
2366
|
+
tabIndex: 0,
|
|
2367
|
+
style: { cursor: "pointer", width: "100%" },
|
|
2368
|
+
children: a
|
|
2369
|
+
}
|
|
2370
|
+
),
|
|
2371
|
+
N(x({}, e), {
|
|
2372
|
+
duration: 1 / 0,
|
|
2373
|
+
unstyled: !1
|
|
2374
|
+
})
|
|
2375
|
+
);
|
|
2376
|
+
return d;
|
|
2377
|
+
})()) : E.warning(t[0], e);
|
|
2378
|
+
},
|
|
2379
|
+
loading: (r, e) => {
|
|
2380
|
+
const t = typeof r == "string" ? [(e == null ? void 0 : e.defaultMessage) || r] : K(
|
|
2381
|
+
r,
|
|
2382
|
+
e == null ? void 0 : e.onExtractError,
|
|
2383
|
+
e == null ? void 0 : e.defaultMessage
|
|
2384
|
+
);
|
|
2385
|
+
return t.length > 1 ? t.map((a) => (() => {
|
|
2386
|
+
const d = E.loading(
|
|
2387
|
+
/* @__PURE__ */ n(
|
|
2388
|
+
"div",
|
|
2389
|
+
{
|
|
2390
|
+
onClick: () => E.dismiss(d),
|
|
2391
|
+
onKeyDown: (c) => {
|
|
2392
|
+
(c.key === "Enter" || c.key === " ") && E.dismiss(d);
|
|
2393
|
+
},
|
|
2394
|
+
role: "button",
|
|
2395
|
+
tabIndex: 0,
|
|
2396
|
+
style: { cursor: "pointer", width: "100%" },
|
|
2397
|
+
children: a
|
|
2398
|
+
}
|
|
2399
|
+
),
|
|
2400
|
+
N(x({}, e), {
|
|
2401
|
+
unstyled: !1
|
|
2402
|
+
})
|
|
2403
|
+
);
|
|
2404
|
+
return d;
|
|
2405
|
+
})()) : E.loading(t[0], e);
|
|
2406
|
+
},
|
|
2407
|
+
dismiss: (r) => {
|
|
2408
|
+
E.dismiss(r);
|
|
2409
|
+
},
|
|
2410
|
+
promise(r, d) {
|
|
2411
|
+
var c = d, {
|
|
2412
|
+
loading: e,
|
|
2413
|
+
success: t,
|
|
2414
|
+
error: a
|
|
2415
|
+
} = c, o = k(c, [
|
|
2416
|
+
"loading",
|
|
2417
|
+
"success",
|
|
2418
|
+
"error"
|
|
2419
|
+
]);
|
|
2420
|
+
return E.promise(r, x({
|
|
2421
|
+
loading: e,
|
|
2422
|
+
success: t,
|
|
2423
|
+
error: a
|
|
2424
|
+
}, o));
|
|
2425
|
+
}
|
|
2426
|
+
});
|
|
2427
|
+
function $t(e) {
|
|
2428
|
+
var r = k(e, []);
|
|
2429
|
+
return /* @__PURE__ */ n(
|
|
2430
|
+
We,
|
|
2431
|
+
x({
|
|
2432
|
+
visibleToasts: 1 / 0,
|
|
2433
|
+
gap: 4,
|
|
2434
|
+
style: {
|
|
2435
|
+
zIndex: 1020
|
|
2436
|
+
},
|
|
2437
|
+
className: "toaster group left-[0]! mx-auto! flex! w-auto! max-w-[100%]! flex-col! items-center! justify-center! max-sm:right-0! max-sm:w-full! md:left-[50%]! md:w-auto! md:max-w-[356px]! [&_[data-content]]:w-max [&_[data-sonner-toast]]:max-sm:right-auto! [&_[data-sonner-toast]]:max-sm:left-auto! [&_[data-title]]:line-clamp-2 [&_[data-title]]:font-normal!",
|
|
2438
|
+
toastOptions: {
|
|
2439
|
+
className: "text-white! font-graphik font-normal! bg-spotlight-background! border-spotlight-background! rounded-[1000px]! w-fit! md:w-auto! max-w-[92%]! md:max-w-[500px]! py-2.5! px-4! m-0! min-h-10 gap-2! text-center! align-center! cursor-pointer!",
|
|
2440
|
+
style: {
|
|
2441
|
+
// @ts-expect-error CSS custom properties are not typed in React's style object
|
|
2442
|
+
"--z-index": 1020,
|
|
2443
|
+
"z-index": "calc(var(--z-index) - var(--index))",
|
|
2444
|
+
"--toast-icon-margin-start": "0px",
|
|
2445
|
+
"--toast-icon-margin-end": "0px"
|
|
2446
|
+
},
|
|
2447
|
+
dismissible: !0
|
|
2448
|
+
},
|
|
2449
|
+
position: "top-center",
|
|
2450
|
+
icons: {
|
|
2451
|
+
success: /* @__PURE__ */ n(F, { icon: "CheckCircleFillIcon", className: "text-positive" }),
|
|
2452
|
+
info: /* @__PURE__ */ n(F, { icon: "InfoFillIcon" }),
|
|
2453
|
+
error: /* @__PURE__ */ n(F, { icon: "CancelFillIcon", className: "text-destructive" }),
|
|
2454
|
+
loading: /* @__PURE__ */ n(Q, { className: "text-white" }),
|
|
2455
|
+
warning: /* @__PURE__ */ n(F, { icon: "InfoFillIcon", className: "text-warning" })
|
|
2456
|
+
}
|
|
2457
|
+
}, r)
|
|
2458
|
+
);
|
|
2459
|
+
}
|
|
2460
|
+
const Kt = H.Provider, xt = 120, ve = h.createContext(null);
|
|
2461
|
+
function vt() {
|
|
2462
|
+
const [r, e] = h.useState(!1);
|
|
2463
|
+
return h.useEffect(() => {
|
|
2464
|
+
if (typeof window == "undefined")
|
|
2465
|
+
return;
|
|
2466
|
+
const t = window.matchMedia("(hover: none), (pointer: coarse)"), a = () => {
|
|
2467
|
+
e(t.matches || navigator.maxTouchPoints > 0);
|
|
2468
|
+
};
|
|
2469
|
+
return a(), t.addEventListener("change", a), () => t.removeEventListener("change", a);
|
|
2470
|
+
}, []), r;
|
|
2471
|
+
}
|
|
2472
|
+
function Gt(o) {
|
|
2473
|
+
var d = o, {
|
|
2474
|
+
open: r,
|
|
2475
|
+
defaultOpen: e,
|
|
2476
|
+
onOpenChange: t
|
|
2477
|
+
} = d, a = k(d, [
|
|
2478
|
+
"open",
|
|
2479
|
+
"defaultOpen",
|
|
2480
|
+
"onOpenChange"
|
|
2481
|
+
]);
|
|
2482
|
+
const [c, m] = h.useState(!!e), u = r !== void 0, y = u ? r : c, l = vt(), b = h.useRef(0), f = h.useCallback(
|
|
2483
|
+
(I) => {
|
|
2484
|
+
u || m(I), t == null || t(I);
|
|
2485
|
+
},
|
|
2486
|
+
[u, t]
|
|
2487
|
+
), w = h.useCallback(
|
|
2488
|
+
(I) => {
|
|
2489
|
+
l && !I && Date.now() - b.current < xt || f(I);
|
|
2490
|
+
},
|
|
2491
|
+
[l, f]
|
|
2492
|
+
), g = h.useCallback(() => {
|
|
2493
|
+
b.current = Date.now(), f(!y);
|
|
2494
|
+
}, [y, f]);
|
|
2495
|
+
return /* @__PURE__ */ n(ve.Provider, { value: { isTouchDevice: l, open: y, toggleByTouch: g }, children: /* @__PURE__ */ n(
|
|
2496
|
+
H.Root,
|
|
2497
|
+
x({
|
|
2498
|
+
open: l ? y : r,
|
|
2499
|
+
defaultOpen: l ? void 0 : e,
|
|
2500
|
+
onOpenChange: l ? w : t
|
|
2501
|
+
}, a)
|
|
2502
|
+
) });
|
|
2503
|
+
}
|
|
2504
|
+
const yt = h.forwardRef((a, t) => {
|
|
2505
|
+
var o = a, { onPointerDown: r } = o, e = k(o, ["onPointerDown"]);
|
|
2506
|
+
const d = h.useContext(ve), c = (m) => {
|
|
2507
|
+
r == null || r(m), !m.defaultPrevented && d != null && d.isTouchDevice && m.pointerType === "touch" && d.toggleByTouch();
|
|
2508
|
+
};
|
|
2509
|
+
return /* @__PURE__ */ n(H.Trigger, x({ ref: t, onPointerDown: c }, e));
|
|
2510
|
+
});
|
|
2511
|
+
yt.displayName = H.Trigger.displayName;
|
|
2512
|
+
const wt = h.forwardRef(
|
|
2513
|
+
(m, c) => {
|
|
2514
|
+
var u = m, {
|
|
2515
|
+
className: r,
|
|
2516
|
+
sideOffset: e = 6,
|
|
2517
|
+
align: t = "center",
|
|
2518
|
+
side: a = "top",
|
|
2519
|
+
children: o
|
|
2520
|
+
} = u, d = k(u, [
|
|
2521
|
+
"className",
|
|
2522
|
+
"sideOffset",
|
|
2523
|
+
"align",
|
|
2524
|
+
"side",
|
|
2525
|
+
"children"
|
|
2526
|
+
]);
|
|
2527
|
+
return /* @__PURE__ */ n(H.Portal, { children: /* @__PURE__ */ C(
|
|
2528
|
+
H.Content,
|
|
2529
|
+
N(x({
|
|
2530
|
+
ref: c,
|
|
2531
|
+
align: t,
|
|
2532
|
+
side: a,
|
|
2533
|
+
sideOffset: e,
|
|
2534
|
+
className: p(
|
|
2535
|
+
[
|
|
2536
|
+
"font-graphik",
|
|
2537
|
+
"z-58",
|
|
2538
|
+
"max-w-80",
|
|
2539
|
+
"rounded-xl",
|
|
2540
|
+
"bg-spotlight-background",
|
|
2541
|
+
"px-3 py-2",
|
|
2542
|
+
"text-[13px] leading-5",
|
|
2543
|
+
"text-primary-foreground",
|
|
2544
|
+
"shadow-[0_8px_24px_rgba(0,0,0,0.18)]",
|
|
2545
|
+
"select-none",
|
|
2546
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
2547
|
+
"data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95",
|
|
2548
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2549
|
+
"outline-none"
|
|
2550
|
+
],
|
|
2551
|
+
r
|
|
2552
|
+
)
|
|
2553
|
+
}, d), {
|
|
2554
|
+
children: [
|
|
2555
|
+
o,
|
|
2556
|
+
/* @__PURE__ */ n(
|
|
2557
|
+
H.Arrow,
|
|
2558
|
+
{
|
|
2559
|
+
className: p("fill-spotlight-background"),
|
|
2560
|
+
width: 10,
|
|
2561
|
+
height: 5
|
|
2562
|
+
}
|
|
2563
|
+
)
|
|
2564
|
+
]
|
|
2565
|
+
})
|
|
2566
|
+
) });
|
|
2567
|
+
}
|
|
2568
|
+
);
|
|
2569
|
+
wt.displayName = H.Content.displayName;
|
|
2570
|
+
const It = W(
|
|
2571
|
+
"outline-none font-cofo box-sizing-border-box cursor-pointer flex items-center justify-center whitespace-nowrap disabled:border-1 disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:pointer-events-none transition-colors duration-200",
|
|
2572
|
+
{
|
|
2573
|
+
variants: {
|
|
2574
|
+
variant: {
|
|
2575
|
+
primary: "border-0 bg-primary hover:bg-primary-hover focus:bg-primary-hover text-white active:bg-primary-active disabled:text-muted-foreground",
|
|
2576
|
+
default: "bg-default-background hover:bg-border active:border-1 active:border-solid text-default active:text-secondary active:border-border focus:border-1 focus:border-solid focus:border-border border-0 disabled:border-0",
|
|
2577
|
+
dashed: "bg-white text-secondary-foreground border-dashed border-1 border-border active:border-solid active:text-primary-active active:border-primary-active hover:border-primary-hover hover:text-primary-hover",
|
|
2578
|
+
text: "disabled:bg-transparent text-default border-none bg-transparent hover:bg-default-background focus:bg-default-background",
|
|
2579
|
+
link: "disabled:bg-transparent disabled:text-primary-hover disabled:border-0 border-0 disabled:opacity-50 bg-transparent text-primary hover:text-primary-hover active:text-primary-active",
|
|
2580
|
+
sber: "bg-[#1FA037] text-white border-0 rounded-lg hover:bg-[#148F2B] hover:border-[#148F2B] active:bg-[#20762B]",
|
|
2581
|
+
tbank: "bg-[#FEDD2D] text-black border-0 hover:bg-[#FFCD33] active:bg-[#FAB619]",
|
|
2582
|
+
telegram: "bg-[#0088CC] text-white border-0 hover:bg-[#009EED] active:bg-[#0078B4]",
|
|
2583
|
+
max: "bg-[#2A4AFA] text-white border-0 hover:bg-[#0476F0] active:bg-[#1B37D6]"
|
|
2584
|
+
},
|
|
2585
|
+
size: {
|
|
2586
|
+
sm: "h-6 rounded-md px-2 text-[14px]",
|
|
2587
|
+
md: "h-8 rounded-md px-3 text-[14px]",
|
|
2588
|
+
lg: "h-10 rounded-xl px-4 text-[16px]",
|
|
2589
|
+
custom: ""
|
|
2590
|
+
},
|
|
2591
|
+
iconOnly: {
|
|
2592
|
+
true: "p-0 flex items-center justify-center border-box",
|
|
2593
|
+
false: ""
|
|
2594
|
+
},
|
|
2595
|
+
isActive: {
|
|
2596
|
+
true: "",
|
|
2597
|
+
false: ""
|
|
2598
|
+
},
|
|
2599
|
+
isLoading: {
|
|
2600
|
+
true: "opacity-64 cursor-not-allowed",
|
|
2601
|
+
false: ""
|
|
2602
|
+
},
|
|
2603
|
+
iconPosition: {
|
|
2604
|
+
start: "",
|
|
2605
|
+
end: ""
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
compoundVariants: [
|
|
2609
|
+
{
|
|
2610
|
+
isLoading: !0,
|
|
2611
|
+
variant: "primary",
|
|
2612
|
+
className: "disabled:!bg-primary disabled:!text-white disabled:!border-0"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
isLoading: !0,
|
|
2616
|
+
variant: "default",
|
|
2617
|
+
className: "disabled:!bg-default-background disabled:!text-default disabled:!border-border"
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
isLoading: !0,
|
|
2621
|
+
variant: "dashed",
|
|
2622
|
+
className: "disabled:!bg-white disabled:!text-secondary-foreground disabled:!border-border disabled:!border-dashed"
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
isLoading: !0,
|
|
2626
|
+
variant: "text",
|
|
2627
|
+
className: "disabled:!bg-transparent disabled:!text-default"
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
isLoading: !0,
|
|
2631
|
+
variant: "link",
|
|
2632
|
+
className: "disabled:!bg-transparent disabled:!text-primary disabled:!border-0"
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
isLoading: !0,
|
|
2636
|
+
variant: "sber",
|
|
2637
|
+
className: "disabled:!bg-[#1FA037] disabled:!text-white"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
isLoading: !0,
|
|
2641
|
+
variant: "tbank",
|
|
2642
|
+
className: "disabled:!bg-[#FEDD2D] disabled:!text-black"
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
isLoading: !0,
|
|
2646
|
+
variant: "telegram",
|
|
2647
|
+
className: "disabled:!bg-[#251D350A] disabled:!text-white"
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
isLoading: !0,
|
|
2651
|
+
variant: "max",
|
|
2652
|
+
className: "disabled:!bg-[#251D350A] disabled:!text-white"
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
iconOnly: !0,
|
|
2656
|
+
size: "sm",
|
|
2657
|
+
className: "w-6 p-0"
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
iconOnly: !0,
|
|
2661
|
+
size: "md",
|
|
2662
|
+
className: "w-8 p-0"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
iconOnly: !0,
|
|
2666
|
+
size: "lg",
|
|
2667
|
+
className: "w-10 p-0"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
isActive: !0,
|
|
2671
|
+
variant: "primary",
|
|
2672
|
+
className: "bg-primary-active"
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
isActive: !0,
|
|
2676
|
+
variant: "default",
|
|
2677
|
+
className: "border-1 border-solid text-secondary border-border"
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
isActive: !0,
|
|
2681
|
+
variant: "dashed",
|
|
2682
|
+
className: "border-solid text-primary-active border-primary-active"
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
isActive: !0,
|
|
2686
|
+
variant: "link",
|
|
2687
|
+
className: "text-primary-active"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
iconPosition: "start",
|
|
2691
|
+
className: "gap-[6px]"
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
iconPosition: "end",
|
|
2695
|
+
className: "gap-[6px]"
|
|
2696
|
+
}
|
|
2697
|
+
],
|
|
2698
|
+
defaultVariants: {
|
|
2699
|
+
variant: "primary",
|
|
2700
|
+
size: "md",
|
|
2701
|
+
iconOnly: !1,
|
|
2702
|
+
isActive: !1,
|
|
2703
|
+
isLoading: !1,
|
|
2704
|
+
iconPosition: "start"
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
), Nt = {
|
|
2708
|
+
primary: {
|
|
2709
|
+
hover: "bg-primary-hover",
|
|
2710
|
+
focus: "bg-primary-hover",
|
|
2711
|
+
active: "bg-primary-active"
|
|
2712
|
+
},
|
|
2713
|
+
default: {
|
|
2714
|
+
hover: "bg-border",
|
|
2715
|
+
focus: "border-1 border-solid border-border",
|
|
2716
|
+
active: "border-1 border-solid text-secondary border-border"
|
|
2717
|
+
},
|
|
2718
|
+
dashed: {
|
|
2719
|
+
hover: "border-primary-hover text-primary-hover",
|
|
2720
|
+
active: "border-solid text-primary-active border-primary-active"
|
|
2721
|
+
},
|
|
2722
|
+
text: {
|
|
2723
|
+
hover: "bg-default-background",
|
|
2724
|
+
focus: "bg-default-background"
|
|
2725
|
+
},
|
|
2726
|
+
link: {
|
|
2727
|
+
hover: "text-primary-hover",
|
|
2728
|
+
active: "text-primary-active"
|
|
2729
|
+
},
|
|
2730
|
+
sber: {
|
|
2731
|
+
hover: "bg-[#148F2B] border-[#148F2B]",
|
|
2732
|
+
active: "bg-[#20762B]"
|
|
2733
|
+
},
|
|
2734
|
+
tbank: {
|
|
2735
|
+
hover: "bg-[#FFCD33]",
|
|
2736
|
+
active: "bg-[#FAB619]"
|
|
2737
|
+
},
|
|
2738
|
+
telegram: {
|
|
2739
|
+
hover: "bg-[#009EED]",
|
|
2740
|
+
active: "bg-[#0078B4]"
|
|
2741
|
+
},
|
|
2742
|
+
max: {
|
|
2743
|
+
hover: "bg-[#0476F0]",
|
|
2744
|
+
active: "bg-[#1B37D6]"
|
|
2745
|
+
}
|
|
2746
|
+
}, ee = h.forwardRef(
|
|
2747
|
+
(S, v) => {
|
|
2748
|
+
var T = S, {
|
|
2749
|
+
className: r,
|
|
2750
|
+
variant: e = "primary",
|
|
2751
|
+
size: t = "md",
|
|
2752
|
+
asChild: a = !1,
|
|
2753
|
+
iconOnly: o = !1,
|
|
2754
|
+
isActive: d = !1,
|
|
2755
|
+
iconPosition: c = "start",
|
|
2756
|
+
icon: m,
|
|
2757
|
+
children: u,
|
|
2758
|
+
iconProps: y,
|
|
2759
|
+
isLoading: l = !1,
|
|
2760
|
+
forceState: b,
|
|
2761
|
+
"data-testid": f,
|
|
2762
|
+
disabled: w = !1,
|
|
2763
|
+
onClick: g
|
|
2764
|
+
} = T, I = k(T, [
|
|
2765
|
+
"className",
|
|
2766
|
+
"variant",
|
|
2767
|
+
"size",
|
|
2768
|
+
"asChild",
|
|
2769
|
+
"iconOnly",
|
|
2770
|
+
"isActive",
|
|
2771
|
+
"iconPosition",
|
|
2772
|
+
"icon",
|
|
2773
|
+
"children",
|
|
2774
|
+
"iconProps",
|
|
2775
|
+
"isLoading",
|
|
2776
|
+
"forceState",
|
|
2777
|
+
"data-testid",
|
|
2778
|
+
"disabled",
|
|
2779
|
+
"onClick"
|
|
2780
|
+
]);
|
|
2781
|
+
var R;
|
|
2782
|
+
const z = a ? J : "button", P = () => e === "primary" || e === "sber" || e === "telegram" ? "text-white" : e === "link" ? "text-primary" : "text-default", A = () => /* @__PURE__ */ n(
|
|
2783
|
+
Q,
|
|
2784
|
+
{
|
|
2785
|
+
size: 16,
|
|
2786
|
+
className: p(
|
|
2787
|
+
"absolute left-[50%] -translate-x-1/2",
|
|
2788
|
+
P()
|
|
2789
|
+
)
|
|
2790
|
+
}
|
|
2791
|
+
), B = () => m ? l ? A() : /* @__PURE__ */ n(F, x({ icon: m }, y)) : null, j = /* @__PURE__ */ C(le, { children: [
|
|
2792
|
+
c === "start" && B(),
|
|
2793
|
+
l ? /* @__PURE__ */ n("div", { className: "invisible", children: u }) : u,
|
|
2794
|
+
l && !m && A(),
|
|
2795
|
+
c === "end" && B()
|
|
2796
|
+
] });
|
|
2797
|
+
return /* @__PURE__ */ n(
|
|
2798
|
+
z,
|
|
2799
|
+
N(x({}, I), {
|
|
2800
|
+
className: p(
|
|
2801
|
+
"relative",
|
|
2802
|
+
It({
|
|
2803
|
+
variant: e,
|
|
2804
|
+
size: t,
|
|
2805
|
+
iconOnly: o,
|
|
2806
|
+
isActive: d,
|
|
2807
|
+
isLoading: l,
|
|
2808
|
+
iconPosition: c
|
|
2809
|
+
}),
|
|
2810
|
+
b && ((R = Nt[e]) == null ? void 0 : R[b]),
|
|
2811
|
+
r
|
|
2812
|
+
),
|
|
2813
|
+
disabled: l || w,
|
|
2814
|
+
"aria-disabled": l || w,
|
|
2815
|
+
ref: v,
|
|
2816
|
+
onClick: ($) => {
|
|
2817
|
+
l || w || g == null || g($);
|
|
2818
|
+
},
|
|
2819
|
+
"data-testid": f,
|
|
2820
|
+
children: o ? B() : j
|
|
2821
|
+
})
|
|
2822
|
+
);
|
|
2823
|
+
}
|
|
2824
|
+
);
|
|
2825
|
+
ee.displayName = "Button";
|
|
2826
|
+
export {
|
|
2827
|
+
ee as Button,
|
|
2828
|
+
Mt as Checkbox,
|
|
2829
|
+
Ot as Dialog,
|
|
2830
|
+
Ht as DialogClose,
|
|
2831
|
+
at as DialogContent,
|
|
2832
|
+
ot as DialogHeader,
|
|
2833
|
+
xe as DialogOverlay,
|
|
2834
|
+
rt as DialogPortal,
|
|
2835
|
+
nt as DialogTitle,
|
|
2836
|
+
Wt as DialogTrigger,
|
|
2837
|
+
jt as Divider,
|
|
2838
|
+
G as Input,
|
|
2839
|
+
Ge as InputLink,
|
|
2840
|
+
Ue as InputPassword,
|
|
2841
|
+
$e as InputSearch,
|
|
2842
|
+
Ke as InputTitle,
|
|
2843
|
+
et as Link,
|
|
2844
|
+
qe as MultiSelect,
|
|
2845
|
+
dt as Radio,
|
|
2846
|
+
ct as RadioGroup,
|
|
2847
|
+
_t as Select,
|
|
2848
|
+
be as SelectContent,
|
|
2849
|
+
Pt as SelectGroup,
|
|
2850
|
+
he as SelectItem,
|
|
2851
|
+
Ve as SelectLabel,
|
|
2852
|
+
fe as SelectScrollDownButton,
|
|
2853
|
+
pe as SelectScrollUpButton,
|
|
2854
|
+
Ze as SelectSeparator,
|
|
2855
|
+
ge as SelectTrigger,
|
|
2856
|
+
Lt as SelectValue,
|
|
2857
|
+
Q as Spinner,
|
|
2858
|
+
mt as Switch,
|
|
2859
|
+
ft as Tag,
|
|
2860
|
+
gt as Textarea,
|
|
2861
|
+
$t as Toaster,
|
|
2862
|
+
Gt as Tooltip,
|
|
2863
|
+
wt as TooltipContent,
|
|
2864
|
+
Kt as TooltipProvider,
|
|
2865
|
+
yt as TooltipTrigger,
|
|
2866
|
+
L as Typography,
|
|
2867
|
+
It as buttonVariants,
|
|
2868
|
+
Qe as checkboxVariants,
|
|
2869
|
+
Je as indicatorVariants,
|
|
2870
|
+
st as radioVariants,
|
|
2871
|
+
Ye as spinnerVariants,
|
|
2872
|
+
lt as switchVariants,
|
|
2873
|
+
pt as tagVariants,
|
|
2874
|
+
ut as thumbVariants,
|
|
2875
|
+
Ut as toast,
|
|
2876
|
+
ce as typographyVariants
|
|
2877
|
+
};
|