@vervstack/chures 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chures.js +575 -514
- package/dist/chures.umd.cjs +2 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +3 -1
- package/dist/components/Dropdown/Dropdown.d.ts +4 -1
- package/dist/components/Dropdown/DropdownPanel.d.ts +3 -1
- package/dist/components/Dropdown/DropdownTrigger.d.ts +2 -1
- package/dist/components/InfoDialog/InfoDialog.d.ts +3 -1
- package/dist/components/notifications/Toaster.d.ts +6 -1
- package/dist/components/notifications/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/theme/ChuresConfigProvider.d.ts +9 -0
- package/dist/theme/ComponentClassNamesContext.d.ts +3 -0
- package/dist/theme/useComponentClassName.d.ts +2 -0
- package/package.json +1 -1
package/dist/chures.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%)}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_1a08x_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_1a08x_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_1a08x_12{width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}._InputField_1a08x_12:focus{border-color:#ffffff59}._hasError_1a08x_30 ._InputField_1a08x_12,._hasError_1a08x_30 ._InputField_1a08x_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_1a08x_35 ._InputField_1a08x_12{opacity:.45;cursor:not-allowed}._Label_1a08x_40{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_1a08x_40._lifted_1a08x_54{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_1a08x_30 ._Label_1a08x_40._lifted_1a08x_54{color:var(--chures-error, #ef4444)}._ErrorText_1a08x_65{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_1a08x_73{width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1a08x_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%)}}@keyframes _panelIn_1v133_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_1v133_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_1v133_13{position:relative;width:100%}._PanelContainer_1v133_18{position:absolute;top:100%;left:0;width:100%;background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;box-shadow:0 1rem 3rem #000c;animation:_panelIn_1v133_1 .14s ease}._Label_1v133_31{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_1v133_31._lifted_1v133_45{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_1v133_52{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_1v133_52:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_1v133_52._Open_1v133_76{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_1v133_81{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_1v133_89{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_1v133_97{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_1v133_104{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_1v133_104::-webkit-scrollbar{display:none}._Chip_1v133_104{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_1v133_135{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_1v133_140{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_1v133_150{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_1v133_157{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_1v133_157::placeholder{color:var(--chures-fg-muted)}._ResultsList_1v133_171{max-height:13rem;overflow-y:auto}._OptionRow_1v133_176{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_1v133_176:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_1v133_176._Selected_1v133_191{color:var(--chures-fg)}._Checkmark_1v133_196{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_1v133_202{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_1v133_202:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_1v133_202._WithBorder_1v133_215{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_1v133_220{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--chures-accent);color:#fff;flex-shrink:0}._CreateLabel_1v133_232{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_1v133_238{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_1v133_245{height:2rem;margin:.375rem .875rem;border-radius:var(--chures-dropdown-row-radius);background:linear-gradient(90deg,var(--chures-dropdown-bg) 25%,var(--chures-skeleton-shine) 50%,var(--chures-dropdown-bg) 75%);background-size:200% 100%;animation:_shimmer_1v133_1 1.4s infinite linear}._Btn_1sywg_1{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}._Btn_1sywg_1:disabled{opacity:.4;cursor:not-allowed}._Primary_1sywg_26{background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}._Primary_1sywg_26:hover:not(:disabled){filter:brightness(1.06)}._Secondary_1sywg_41{background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}._Secondary_1sywg_41:hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}._Ghost_1sywg_53{background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}._Ghost_1sywg_53:hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}._IconDanger_1sywg_65{width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}._IconDanger_1sywg_65:hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}._Danger_1sywg_86{background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}._Danger_1sywg_86:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._Unstyled_1sywg_99{display:block;gap:0;border-radius:0;border:none;font-size:inherit;font-weight:inherit;padding:0;transition:none;white-space:normal;color:inherit;background:transparent}._ConfirmContainer_b00ul_1{width:100%;max-width:24rem;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c;animation:_confirmIn_b00ul_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_b00ul_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmTitle_b00ul_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_b00ul_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_b00ul_32{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_b00ul_40{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_b00ul_40:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_b00ul_60{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_b00ul_60:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_b00ul_79{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_b00ul_79:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_b00ul_60:disabled,._BtnDanger_b00ul_79:disabled,._BtnCancel_b00ul_40:disabled{opacity:.4;cursor:not-allowed}._InfoContainer_1meyp_1{width:100%;max-width:24rem;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c;animation:_infoIn_1meyp_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_1meyp_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoTitle_1meyp_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_1meyp_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_1meyp_32{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_1meyp_39{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_1meyp_39:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { useRef as $, useState as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import { create as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_1a08x_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_1a08x_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_1a08x_12{width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}._InputField_1a08x_12:focus{border-color:#ffffff59}._hasError_1a08x_30 ._InputField_1a08x_12,._hasError_1a08x_30 ._InputField_1a08x_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_1a08x_35 ._InputField_1a08x_12{opacity:.45;cursor:not-allowed}._Label_1a08x_40{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_1a08x_40._lifted_1a08x_54{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_1a08x_30 ._Label_1a08x_40._lifted_1a08x_54{color:var(--chures-error, #ef4444)}._ErrorText_1a08x_65{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_1a08x_73{width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1a08x_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@keyframes _panelIn_p7cfo_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_p7cfo_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_p7cfo_13{position:relative;width:100%}._PanelWrapper_p7cfo_20{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_p7cfo_1 .14s ease}._PanelWrapper_p7cfo_20._Portal_p7cfo_34{position:fixed;width:auto;margin-top:var(--chures-dropdown-panel-gap)}._PanelContainer_p7cfo_18{background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;box-shadow:0 1rem 3rem #000c}._PanelContainer_p7cfo_18._Glass_p7cfo_48{background:var(--chures-dropdown-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem))}._Label_p7cfo_54{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_p7cfo_54._lifted_p7cfo_68{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_p7cfo_75{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_p7cfo_75:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_p7cfo_75._Open_p7cfo_99{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_p7cfo_104{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_p7cfo_112{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_p7cfo_120{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_p7cfo_127{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;margin:.375rem 0;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_p7cfo_127::-webkit-scrollbar{display:none}._ChipsWrapper_p7cfo_127._Expand_p7cfo_145{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_p7cfo_75._MultiSelect_p7cfo_151 ._TriggerIcon_p7cfo_120{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_p7cfo_75._ExpandHeight_p7cfo_156{height:auto;min-height:var(--chures-input-height)}._Chip_p7cfo_127{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_p7cfo_175{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_p7cfo_180{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_p7cfo_190{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_p7cfo_197{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_p7cfo_197::placeholder{color:var(--chures-fg-muted)}._ResultsList_p7cfo_211{max-height:13rem;overflow-y:auto}._OptionRow_p7cfo_216{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_p7cfo_216:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_p7cfo_216._Selected_p7cfo_231{color:var(--chures-fg)}._Checkmark_p7cfo_236{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_p7cfo_242{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_p7cfo_242:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_p7cfo_242._WithBorder_p7cfo_255{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_p7cfo_260{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--chures-accent);color:#fff;flex-shrink:0}._CreateLabel_p7cfo_272{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_p7cfo_278{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_p7cfo_285{height:2rem;margin:.375rem .875rem;border-radius:var(--chures-dropdown-row-radius);background:linear-gradient(90deg,var(--chures-dropdown-bg) 25%,var(--chures-skeleton-shine) 50%,var(--chures-dropdown-bg) 75%);background-size:200% 100%;animation:_shimmer_p7cfo_1 1.4s infinite linear}:where(._Btn_1tozl_10){display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}:where(._Btn_1tozl_10):disabled{opacity:.4;cursor:not-allowed}:where(._Primary_1tozl_35){background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}:where(._Primary_1tozl_35):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_1tozl_50){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_1tozl_50):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_1tozl_62){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_1tozl_62):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_1tozl_74){width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}:where(._IconDanger_1tozl_74):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_1tozl_95){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_1tozl_95):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._ConfirmWrapper_1tq4o_4{width:100%;max-width:24rem;animation:_confirmIn_1tq4o_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_1tq4o_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmContainer_1tq4o_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_1tq4o_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._ConfirmTitle_1tq4o_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_1tq4o_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_1tq4o_45{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_1tq4o_53{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_1tq4o_53:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_1tq4o_73{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_1tq4o_73:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_1tq4o_92{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_1tq4o_92:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_1tq4o_73:disabled,._BtnDanger_1tq4o_92:disabled,._BtnCancel_1tq4o_53:disabled{opacity:.4;cursor:not-allowed}._InfoWrapper_cqv58_4{width:100%;max-width:24rem;animation:_infoIn_cqv58_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_cqv58_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoContainer_cqv58_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_cqv58_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._InfoTitle_cqv58_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_cqv58_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_cqv58_45{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_cqv58_52{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_cqv58_52:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { jsx as t, jsxs as _, Fragment as b } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as le, useContext as de, useRef as $, useState as N, useEffect as O, forwardRef as ue, useCallback as ne, useLayoutEffect as _e } from "react";
|
|
4
|
+
import { AnimatePresence as fe, motion as pe } from "framer-motion";
|
|
5
|
+
import { create as me } from "zustand";
|
|
6
|
+
import { createPortal as he } from "react-dom";
|
|
7
|
+
function ge(e) {
|
|
8
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
|
+
}
|
|
10
|
+
var Y = { exports: {} };
|
|
11
|
+
var te;
|
|
12
|
+
function Ce() {
|
|
13
|
+
return te || (te = 1, (function(e) {
|
|
13
14
|
(function() {
|
|
14
|
-
var
|
|
15
|
+
var n = {}.hasOwnProperty;
|
|
15
16
|
function o() {
|
|
16
|
-
for (var s = "",
|
|
17
|
-
var c = arguments[
|
|
18
|
-
c && (s =
|
|
17
|
+
for (var s = "", i = 0; i < arguments.length; i++) {
|
|
18
|
+
var c = arguments[i];
|
|
19
|
+
c && (s = a(s, r(c)));
|
|
19
20
|
}
|
|
20
21
|
return s;
|
|
21
22
|
}
|
|
@@ -28,139 +29,145 @@ function ie() {
|
|
|
28
29
|
return o.apply(null, s);
|
|
29
30
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
30
31
|
return s.toString();
|
|
31
|
-
var
|
|
32
|
+
var i = "";
|
|
32
33
|
for (var c in s)
|
|
33
|
-
|
|
34
|
-
return
|
|
34
|
+
n.call(s, c) && s[c] && (i = a(i, c));
|
|
35
|
+
return i;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
37
|
+
function a(s, i) {
|
|
38
|
+
return i ? s ? s + " " + i : s + i : s;
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
+
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
40
41
|
})();
|
|
41
|
-
})(
|
|
42
|
-
}
|
|
43
|
-
var
|
|
44
|
-
const
|
|
45
|
-
LoaderContainer:
|
|
46
|
-
sm:
|
|
47
|
-
md:
|
|
48
|
-
lg:
|
|
49
|
-
Arc1:
|
|
50
|
-
Arc2:
|
|
51
|
-
Arc3:
|
|
52
|
-
spin:
|
|
53
|
-
Ring1:
|
|
54
|
-
Ring2:
|
|
55
|
-
Ring3:
|
|
56
|
-
ripple:
|
|
57
|
-
Dot1:
|
|
58
|
-
Dot2:
|
|
59
|
-
Dot3:
|
|
60
|
-
dotPulse:
|
|
61
|
-
Wave1:
|
|
62
|
-
Wave2:
|
|
63
|
-
Wave3:
|
|
64
|
-
Wave4:
|
|
65
|
-
Wave5:
|
|
66
|
-
waveBounce:
|
|
67
|
-
};
|
|
68
|
-
function
|
|
69
|
-
|
|
42
|
+
})(Y)), Y.exports;
|
|
43
|
+
}
|
|
44
|
+
var ve = Ce();
|
|
45
|
+
const u = /* @__PURE__ */ ge(ve), we = "_LoaderContainer_wa8op_24", ye = "_sm_wa8op_31", Ne = "_md_wa8op_32", Ie = "_lg_wa8op_33", ke = "_Arc1_wa8op_37", Le = "_Arc2_wa8op_38", Te = "_Arc3_wa8op_39", Se = "_spin_wa8op_1", xe = "_Ring1_wa8op_71", De = "_Ring2_wa8op_72", be = "_Ring3_wa8op_73", Be = "_ripple_wa8op_1", Re = "_Dot1_wa8op_86", We = "_Dot2_wa8op_87", Ee = "_Dot3_wa8op_88", Pe = "_dotPulse_wa8op_1", Ae = "_Wave1_wa8op_105", Me = "_Wave2_wa8op_106", Oe = "_Wave3_wa8op_107", qe = "_Wave4_wa8op_108", je = "_Wave5_wa8op_109", Ge = "_waveBounce_wa8op_1", U = {
|
|
46
|
+
LoaderContainer: we,
|
|
47
|
+
sm: ye,
|
|
48
|
+
md: Ne,
|
|
49
|
+
lg: Ie,
|
|
50
|
+
Arc1: ke,
|
|
51
|
+
Arc2: Le,
|
|
52
|
+
Arc3: Te,
|
|
53
|
+
spin: Se,
|
|
54
|
+
Ring1: xe,
|
|
55
|
+
Ring2: De,
|
|
56
|
+
Ring3: be,
|
|
57
|
+
ripple: Be,
|
|
58
|
+
Dot1: Re,
|
|
59
|
+
Dot2: We,
|
|
60
|
+
Dot3: Ee,
|
|
61
|
+
dotPulse: Pe,
|
|
62
|
+
Wave1: Ae,
|
|
63
|
+
Wave2: Me,
|
|
64
|
+
Wave3: Oe,
|
|
65
|
+
Wave4: qe,
|
|
66
|
+
Wave5: je,
|
|
67
|
+
waveBounce: Ge
|
|
68
|
+
}, re = le({});
|
|
69
|
+
function v(e, n) {
|
|
70
|
+
const o = de(re);
|
|
71
|
+
return n ?? o[e];
|
|
72
|
+
}
|
|
73
|
+
function $e(e, n) {
|
|
74
|
+
switch (e) {
|
|
70
75
|
case "ripple":
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */ t("div", { className:
|
|
73
|
-
/* @__PURE__ */ t("div", { className:
|
|
74
|
-
/* @__PURE__ */ t("div", { className:
|
|
76
|
+
return /* @__PURE__ */ _(b, { children: [
|
|
77
|
+
/* @__PURE__ */ t("div", { className: n.Ring1 }),
|
|
78
|
+
/* @__PURE__ */ t("div", { className: n.Ring2 }),
|
|
79
|
+
/* @__PURE__ */ t("div", { className: n.Ring3 })
|
|
75
80
|
] });
|
|
76
81
|
case "dots":
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ t("div", { className:
|
|
79
|
-
/* @__PURE__ */ t("div", { className:
|
|
80
|
-
/* @__PURE__ */ t("div", { className:
|
|
82
|
+
return /* @__PURE__ */ _(b, { children: [
|
|
83
|
+
/* @__PURE__ */ t("div", { className: n.Dot1 }),
|
|
84
|
+
/* @__PURE__ */ t("div", { className: n.Dot2 }),
|
|
85
|
+
/* @__PURE__ */ t("div", { className: n.Dot3 })
|
|
81
86
|
] });
|
|
82
87
|
case "wave":
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */ t("div", { className:
|
|
85
|
-
/* @__PURE__ */ t("div", { className:
|
|
86
|
-
/* @__PURE__ */ t("div", { className:
|
|
87
|
-
/* @__PURE__ */ t("div", { className:
|
|
88
|
-
/* @__PURE__ */ t("div", { className:
|
|
88
|
+
return /* @__PURE__ */ _(b, { children: [
|
|
89
|
+
/* @__PURE__ */ t("div", { className: n.Wave1 }),
|
|
90
|
+
/* @__PURE__ */ t("div", { className: n.Wave2 }),
|
|
91
|
+
/* @__PURE__ */ t("div", { className: n.Wave3 }),
|
|
92
|
+
/* @__PURE__ */ t("div", { className: n.Wave4 }),
|
|
93
|
+
/* @__PURE__ */ t("div", { className: n.Wave5 })
|
|
89
94
|
] });
|
|
90
95
|
default:
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */ t("div", { className:
|
|
93
|
-
/* @__PURE__ */ t("div", { className:
|
|
94
|
-
/* @__PURE__ */ t("div", { className:
|
|
96
|
+
return /* @__PURE__ */ _(b, { children: [
|
|
97
|
+
/* @__PURE__ */ t("div", { className: n.Arc1 }),
|
|
98
|
+
/* @__PURE__ */ t("div", { className: n.Arc2 }),
|
|
99
|
+
/* @__PURE__ */ t("div", { className: n.Arc3 })
|
|
95
100
|
] });
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
|
-
function
|
|
103
|
+
function Fe({ variant: e = "arcs", size: n = "md", color: o, className: r }) {
|
|
104
|
+
const a = v("Loader", r);
|
|
99
105
|
return /* @__PURE__ */ t(
|
|
100
106
|
"div",
|
|
101
107
|
{
|
|
102
|
-
className:
|
|
108
|
+
className: u(U.LoaderContainer, U[n], U[e], a),
|
|
103
109
|
role: "status",
|
|
104
110
|
"aria-label": "Loading",
|
|
105
111
|
style: o ? { "--chures-accent": o } : void 0,
|
|
106
|
-
children:
|
|
112
|
+
children: $e(e, U)
|
|
107
113
|
}
|
|
108
114
|
);
|
|
109
115
|
}
|
|
110
|
-
const
|
|
111
|
-
LoadingWrapperContainer:
|
|
112
|
-
SkeletonWrapper:
|
|
116
|
+
const ze = "_LoadingWrapperContainer_1q0w7_1", He = "_SkeletonWrapper_1q0w7_9", oe = {
|
|
117
|
+
LoadingWrapperContainer: ze,
|
|
118
|
+
SkeletonWrapper: He
|
|
113
119
|
};
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
120
|
+
function zt({ isLoading: e, children: n, skeleton: o, loaderProps: r, className: a }) {
|
|
121
|
+
const s = v("LoadingWrapper", a);
|
|
122
|
+
return e ? o ? /* @__PURE__ */ t("div", { className: u(oe.SkeletonWrapper, s), children: o }) : /* @__PURE__ */ t("div", { className: u(oe.LoadingWrapperContainer, s), children: /* @__PURE__ */ t(Fe, { ...r }) }) : /* @__PURE__ */ t(b, { children: n });
|
|
123
|
+
}
|
|
124
|
+
const Ve = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
125
|
+
function Ue(e) {
|
|
126
|
+
const { botId: n, redirectUri: o, requestAccess: r = "write" } = e, a = $(e.onSuccess);
|
|
127
|
+
a.current = e.onSuccess;
|
|
128
|
+
const s = $(!1), [i, c] = N(!1), [p, d] = N(!1);
|
|
129
|
+
O(function() {
|
|
130
|
+
if (!n) return;
|
|
131
|
+
const h = o ?? window.location.origin;
|
|
132
|
+
d(!0), c(!1);
|
|
133
|
+
const g = document.createElement("script");
|
|
134
|
+
return g.src = Ve, g.async = !0, g.onload = function() {
|
|
135
|
+
const w = window.Telegram;
|
|
136
|
+
w && (w.Login.init(
|
|
137
|
+
{ client_id: n, redirect_uri: h },
|
|
138
|
+
function(B) {
|
|
139
|
+
s.current || (s.current = !0, a.current(B));
|
|
133
140
|
}
|
|
134
|
-
), c(!0)),
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
}, document.head.appendChild(
|
|
138
|
-
document.head.contains(
|
|
141
|
+
), c(!0)), d(!1);
|
|
142
|
+
}, g.onerror = function() {
|
|
143
|
+
d(!1);
|
|
144
|
+
}, document.head.appendChild(g), function() {
|
|
145
|
+
document.head.contains(g) && document.head.removeChild(g), c(!1), d(!1);
|
|
139
146
|
};
|
|
140
|
-
}, [
|
|
147
|
+
}, [n, o]);
|
|
141
148
|
function m() {
|
|
142
|
-
const
|
|
143
|
-
if (!
|
|
149
|
+
const h = window.Telegram;
|
|
150
|
+
if (!i || !h) return;
|
|
144
151
|
s.current = !1;
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
{ client_id:
|
|
148
|
-
function(
|
|
149
|
-
s.current || (s.current = !0,
|
|
152
|
+
const g = o ?? window.location.origin;
|
|
153
|
+
h.Login.auth(
|
|
154
|
+
{ client_id: n, redirect_uri: g, request_access: r },
|
|
155
|
+
function(w) {
|
|
156
|
+
s.current || (s.current = !0, a.current(w));
|
|
150
157
|
}
|
|
151
158
|
);
|
|
152
159
|
}
|
|
153
|
-
return { login: m, isReady:
|
|
160
|
+
return { login: m, isReady: i, isLoading: p };
|
|
154
161
|
}
|
|
155
|
-
const
|
|
156
|
-
TelegramSignInButtonContainer:
|
|
157
|
-
FullSize:
|
|
158
|
-
Icon:
|
|
159
|
-
},
|
|
162
|
+
const Ke = "_TelegramSignInButtonContainer_10wun_1", Qe = "_FullSize_10wun_46", Je = "_Icon_10wun_50", Z = {
|
|
163
|
+
TelegramSignInButtonContainer: Ke,
|
|
164
|
+
FullSize: Qe,
|
|
165
|
+
Icon: Je
|
|
166
|
+
}, Xe = {
|
|
160
167
|
en: "Continue with Telegram",
|
|
161
168
|
ru: "Войти через Telegram"
|
|
162
169
|
};
|
|
163
|
-
function
|
|
170
|
+
function Ye() {
|
|
164
171
|
return /* @__PURE__ */ t(
|
|
165
172
|
"svg",
|
|
166
173
|
{
|
|
@@ -169,387 +176,416 @@ function Fe() {
|
|
|
169
176
|
height: "20",
|
|
170
177
|
fill: "currentColor",
|
|
171
178
|
"aria-hidden": "true",
|
|
172
|
-
className:
|
|
179
|
+
className: Z.Icon,
|
|
173
180
|
children: /* @__PURE__ */ t("path", { d: "M22 3.5L2.5 11l5 1.7L18 6 9.7 14l-.4 5.5 3.4-3.2 5.5 4c.9.5 1.5.2 1.7-.8L22 4.3c.2-.7-.2-1.1-.9-.8z" })
|
|
174
181
|
}
|
|
175
182
|
);
|
|
176
183
|
}
|
|
177
|
-
function
|
|
178
|
-
onClick:
|
|
179
|
-
disabled:
|
|
184
|
+
function Ze({
|
|
185
|
+
onClick: e,
|
|
186
|
+
disabled: n,
|
|
180
187
|
lang: o = "en",
|
|
181
188
|
title: r,
|
|
182
|
-
label:
|
|
189
|
+
label: a,
|
|
183
190
|
fullSize: s,
|
|
184
|
-
className:
|
|
191
|
+
className: i
|
|
185
192
|
}) {
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
if (document.getElementById(
|
|
189
|
-
const
|
|
190
|
-
|
|
193
|
+
O(function() {
|
|
194
|
+
const m = "comfortaa-font";
|
|
195
|
+
if (document.getElementById(m)) return;
|
|
196
|
+
const h = document.createElement("link");
|
|
197
|
+
h.id = m, h.rel = "stylesheet", h.href = "https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&display=swap", document.head.appendChild(h);
|
|
191
198
|
}, []);
|
|
192
|
-
const c =
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */ t(
|
|
199
|
+
const c = a ?? r ?? Xe[o], p = v("TelegramSignInButton", i), d = u(Z.TelegramSignInButtonContainer, { [Z.FullSize]: s }, p);
|
|
200
|
+
return /* @__PURE__ */ _("button", { type: "button", className: d, onClick: e, disabled: n, children: [
|
|
201
|
+
/* @__PURE__ */ t(Ye, {}),
|
|
195
202
|
c
|
|
196
203
|
] });
|
|
197
204
|
}
|
|
198
|
-
function
|
|
199
|
-
botId:
|
|
200
|
-
onSuccess:
|
|
205
|
+
function Ht({
|
|
206
|
+
botId: e,
|
|
207
|
+
onSuccess: n,
|
|
201
208
|
lang: o,
|
|
202
209
|
title: r,
|
|
203
|
-
redirectUri:
|
|
210
|
+
redirectUri: a,
|
|
204
211
|
requestAccess: s,
|
|
205
|
-
children:
|
|
212
|
+
children: i,
|
|
206
213
|
className: c
|
|
207
214
|
}) {
|
|
208
|
-
const { login:
|
|
209
|
-
return
|
|
210
|
-
|
|
215
|
+
const { login: p, isReady: d } = Ue({ botId: e, onSuccess: n, redirectUri: a, requestAccess: s });
|
|
216
|
+
return i ? /* @__PURE__ */ t(b, { children: i({ login: p, isReady: d }) }) : /* @__PURE__ */ t(
|
|
217
|
+
Ze,
|
|
211
218
|
{
|
|
212
|
-
onClick:
|
|
213
|
-
disabled: !
|
|
219
|
+
onClick: p,
|
|
220
|
+
disabled: !d,
|
|
214
221
|
lang: o,
|
|
215
222
|
title: r,
|
|
216
223
|
className: c
|
|
217
224
|
}
|
|
218
225
|
);
|
|
219
226
|
}
|
|
220
|
-
let
|
|
221
|
-
const
|
|
227
|
+
let en = 0;
|
|
228
|
+
const se = me((e, n) => ({
|
|
222
229
|
toasts: [],
|
|
223
230
|
bake: (o) => {
|
|
224
|
-
const r =
|
|
225
|
-
|
|
226
|
-
|
|
231
|
+
const r = en++;
|
|
232
|
+
e((a) => ({ toasts: [...a.toasts, { ...o, id: r }] })), setTimeout(() => {
|
|
233
|
+
n().dismiss(r);
|
|
227
234
|
}, 5e3);
|
|
228
235
|
},
|
|
229
236
|
dismiss: (o) => {
|
|
230
|
-
|
|
231
|
-
toasts: r.toasts.filter((
|
|
237
|
+
e((r) => ({
|
|
238
|
+
toasts: r.toasts.filter((a) => a.id !== o)
|
|
232
239
|
}));
|
|
233
240
|
}
|
|
234
|
-
})),
|
|
235
|
-
ToastContainer:
|
|
236
|
-
Toast:
|
|
237
|
-
error:
|
|
238
|
-
warn:
|
|
239
|
-
info:
|
|
240
|
-
Description:
|
|
241
|
-
DismissButton:
|
|
242
|
-
slideIn:
|
|
243
|
-
slideOut:
|
|
241
|
+
})), nn = "_ToastContainer_1tme2_1", tn = "_Toast_1tme2_1", on = "_error_1tme2_33", rn = "_warn_1tme2_41", sn = "_info_1tme2_49", an = "_Description_1tme2_53", cn = "_DismissButton_1tme2_59", ln = "_slideIn_1tme2_79", dn = "_slideOut_1tme2_83", L = {
|
|
242
|
+
ToastContainer: nn,
|
|
243
|
+
Toast: tn,
|
|
244
|
+
error: on,
|
|
245
|
+
warn: rn,
|
|
246
|
+
info: sn,
|
|
247
|
+
Description: an,
|
|
248
|
+
DismissButton: cn,
|
|
249
|
+
slideIn: ln,
|
|
250
|
+
slideOut: dn
|
|
244
251
|
};
|
|
245
|
-
function
|
|
246
|
-
const { toasts: n } =
|
|
247
|
-
return /* @__PURE__ */ t("div", { className:
|
|
248
|
-
|
|
252
|
+
function Vt({ className: e } = {}) {
|
|
253
|
+
const { toasts: n } = se(), o = v("Toaster", e);
|
|
254
|
+
return /* @__PURE__ */ t("div", { className: u(L.ToastContainer, o), children: /* @__PURE__ */ t(fe, { children: n.map((r) => /* @__PURE__ */ t(
|
|
255
|
+
pe.div,
|
|
249
256
|
{
|
|
250
257
|
layout: !0,
|
|
251
258
|
initial: { opacity: 0, x: 100, y: 50 },
|
|
252
259
|
animate: { opacity: 1, x: 0, y: 0 },
|
|
253
260
|
exit: { opacity: 0, y: -50 },
|
|
254
261
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
255
|
-
children: /* @__PURE__ */ t(
|
|
262
|
+
children: /* @__PURE__ */ t(un, { ...r })
|
|
256
263
|
},
|
|
257
|
-
|
|
264
|
+
r.id
|
|
258
265
|
)) }) });
|
|
259
266
|
}
|
|
260
|
-
function
|
|
261
|
-
const [s,
|
|
262
|
-
return
|
|
263
|
-
|
|
264
|
-
}, []), /* @__PURE__ */
|
|
267
|
+
function un({ id: e, title: n, description: o, level: r, isDismissable: a }) {
|
|
268
|
+
const [s, i] = N(!1), c = se();
|
|
269
|
+
return O(() => () => {
|
|
270
|
+
i(!0);
|
|
271
|
+
}, []), /* @__PURE__ */ _(
|
|
265
272
|
"div",
|
|
266
273
|
{
|
|
267
|
-
className:
|
|
268
|
-
[
|
|
269
|
-
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
274
|
+
className: u(L.Toast, {
|
|
275
|
+
[L.error]: r === "Error",
|
|
276
|
+
[L.warn]: r === "Warn",
|
|
277
|
+
[L.info]: r == null || r === "Info",
|
|
278
|
+
[L.slideIn]: !s,
|
|
279
|
+
[L.slideOut]: s
|
|
273
280
|
}),
|
|
274
281
|
children: [
|
|
275
|
-
/* @__PURE__ */ t("div", { children:
|
|
276
|
-
/* @__PURE__ */ t("div", { className:
|
|
277
|
-
|
|
282
|
+
/* @__PURE__ */ t("div", { children: n }),
|
|
283
|
+
/* @__PURE__ */ t("div", { className: L.Description, children: o }),
|
|
284
|
+
a && e !== void 0 && /* @__PURE__ */ t("div", { className: L.DismissButton, onClick: () => c.dismiss(e), children: "×" })
|
|
278
285
|
]
|
|
279
286
|
}
|
|
280
287
|
);
|
|
281
288
|
}
|
|
282
|
-
const
|
|
283
|
-
InputContainer:
|
|
284
|
-
InputField:
|
|
285
|
-
hasError:
|
|
286
|
-
disabled:
|
|
287
|
-
Label:
|
|
288
|
-
lifted:
|
|
289
|
-
ErrorText:
|
|
290
|
-
Skeleton:
|
|
291
|
-
},
|
|
292
|
-
const [
|
|
293
|
-
return
|
|
289
|
+
const _n = "_InputContainer_1a08x_6", fn = "_InputField_1a08x_12", pn = "_hasError_1a08x_30", mn = "_disabled_1a08x_35", hn = "_Label_1a08x_40", gn = "_lifted_1a08x_54", Cn = "_ErrorText_1a08x_65", vn = "_Skeleton_1a08x_73", D = {
|
|
290
|
+
InputContainer: _n,
|
|
291
|
+
InputField: fn,
|
|
292
|
+
hasError: pn,
|
|
293
|
+
disabled: mn,
|
|
294
|
+
Label: hn,
|
|
295
|
+
lifted: gn,
|
|
296
|
+
ErrorText: Cn,
|
|
297
|
+
Skeleton: vn
|
|
298
|
+
}, Ut = ue(function({ value: n, setValue: o, label: r, isLoader: a, type: s = "text", disabled: i, error: c, className: p, inputClassName: d, ...m }, h) {
|
|
299
|
+
const [g, w] = N(!1), B = g || n.length > 0, C = v("Input", p);
|
|
300
|
+
return a ? /* @__PURE__ */ t("div", { className: u(D.Skeleton, C), "aria-hidden": "true" }) : /* @__PURE__ */ _("div", { className: u(D.InputContainer, { [D.hasError]: !!c, [D.disabled]: i }, C), children: [
|
|
294
301
|
/* @__PURE__ */ t(
|
|
295
302
|
"input",
|
|
296
303
|
{
|
|
297
|
-
ref:
|
|
298
|
-
className:
|
|
304
|
+
ref: h,
|
|
305
|
+
className: u(D.InputField, d),
|
|
299
306
|
type: s,
|
|
300
|
-
value:
|
|
301
|
-
onChange: (
|
|
302
|
-
onFocus: () =>
|
|
303
|
-
onBlur: () =>
|
|
304
|
-
disabled:
|
|
307
|
+
value: n,
|
|
308
|
+
onChange: (R) => o(R.target.value),
|
|
309
|
+
onFocus: () => w(!0),
|
|
310
|
+
onBlur: () => w(!1),
|
|
311
|
+
disabled: i,
|
|
305
312
|
...m
|
|
306
313
|
}
|
|
307
314
|
),
|
|
308
|
-
r && /* @__PURE__ */ t("label", { className:
|
|
309
|
-
c && /* @__PURE__ */ t("span", { className:
|
|
315
|
+
r && /* @__PURE__ */ t("label", { className: u(D.Label, { [D.lifted]: B }), children: r }),
|
|
316
|
+
c && /* @__PURE__ */ t("span", { className: D.ErrorText, children: c })
|
|
310
317
|
] });
|
|
311
|
-
}),
|
|
312
|
-
ToggleContainer:
|
|
313
|
-
disabled:
|
|
314
|
-
Track:
|
|
315
|
-
on:
|
|
316
|
-
Thumb:
|
|
317
|
-
Label:
|
|
318
|
-
LabelSkeleton:
|
|
319
|
-
Skeleton:
|
|
318
|
+
}), wn = "_ToggleContainer_1jetc_6", yn = "_disabled_1jetc_13", Nn = "_Track_1jetc_18", In = "_on_1jetc_31", kn = "_Thumb_1jetc_39", Ln = "_Label_1jetc_57", Tn = "_LabelSkeleton_1jetc_63", Sn = "_Skeleton_1jetc_78", y = {
|
|
319
|
+
ToggleContainer: wn,
|
|
320
|
+
disabled: yn,
|
|
321
|
+
Track: Nn,
|
|
322
|
+
on: In,
|
|
323
|
+
Thumb: kn,
|
|
324
|
+
Label: Ln,
|
|
325
|
+
LabelSkeleton: Tn,
|
|
326
|
+
Skeleton: Sn
|
|
320
327
|
};
|
|
321
|
-
function
|
|
322
|
-
const
|
|
323
|
-
return s ?
|
|
324
|
-
r === "left" &&
|
|
325
|
-
/* @__PURE__ */ t("div", { className:
|
|
326
|
-
r === "right" &&
|
|
327
|
-
] }) : /* @__PURE__ */ t("div", { className:
|
|
328
|
-
r === "left" &&
|
|
328
|
+
function Kt({ checked: e, onChange: n, label: o, labelPosition: r = "right", disabled: a, isLoader: s, isLoadingLabel: i, className: c }) {
|
|
329
|
+
const p = !!o || i, d = v("Toggle", c), m = i ? /* @__PURE__ */ t("span", { className: y.LabelSkeleton, "aria-hidden": "true" }) : o ? /* @__PURE__ */ t("span", { className: y.Label, children: o }) : null;
|
|
330
|
+
return s ? p ? /* @__PURE__ */ _("div", { className: u(y.ToggleContainer, d), children: [
|
|
331
|
+
r === "left" && m,
|
|
332
|
+
/* @__PURE__ */ t("div", { className: y.Skeleton, "aria-hidden": "true" }),
|
|
333
|
+
r === "right" && m
|
|
334
|
+
] }) : /* @__PURE__ */ t("div", { className: u(y.Skeleton, d), "aria-hidden": "true" }) : /* @__PURE__ */ _("label", { className: u(y.ToggleContainer, { [y.disabled]: a }, d), children: [
|
|
335
|
+
r === "left" && m,
|
|
329
336
|
/* @__PURE__ */ t(
|
|
330
337
|
"button",
|
|
331
338
|
{
|
|
332
339
|
role: "switch",
|
|
333
|
-
"aria-checked":
|
|
334
|
-
className:
|
|
335
|
-
onClick: () => !
|
|
336
|
-
disabled:
|
|
340
|
+
"aria-checked": e,
|
|
341
|
+
className: u(y.Track, { [y.on]: e }),
|
|
342
|
+
onClick: () => !a && n(!e),
|
|
343
|
+
disabled: a,
|
|
337
344
|
type: "button",
|
|
338
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
345
|
+
children: /* @__PURE__ */ t("span", { className: y.Thumb })
|
|
339
346
|
}
|
|
340
347
|
),
|
|
341
|
-
r === "right" &&
|
|
348
|
+
r === "right" && m
|
|
342
349
|
] });
|
|
343
350
|
}
|
|
344
|
-
function
|
|
345
|
-
const [
|
|
346
|
-
return { isOpen:
|
|
351
|
+
function xn() {
|
|
352
|
+
const [e, n] = N(!1), o = $(null), r = ne(() => n((s) => !s), []), a = ne(() => n(!1), []);
|
|
353
|
+
return { isOpen: e, triggerRef: o, toggleOpen: r, close: a };
|
|
347
354
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
355
|
+
function Dn(e, n, o) {
|
|
356
|
+
O(() => {
|
|
350
357
|
function r(s) {
|
|
351
|
-
const
|
|
352
|
-
|
|
358
|
+
const i = s.target;
|
|
359
|
+
e.current?.contains(i) || o?.current?.contains(i) || n();
|
|
353
360
|
}
|
|
354
|
-
function
|
|
355
|
-
s.key === "Escape" &&
|
|
361
|
+
function a(s) {
|
|
362
|
+
s.key === "Escape" && n();
|
|
356
363
|
}
|
|
357
|
-
return document.addEventListener("mousedown", r, !0), document.addEventListener("keydown",
|
|
358
|
-
document.removeEventListener("mousedown", r, !0), document.removeEventListener("keydown",
|
|
364
|
+
return document.addEventListener("mousedown", r, !0), document.addEventListener("keydown", a), () => {
|
|
365
|
+
document.removeEventListener("mousedown", r, !0), document.removeEventListener("keydown", a);
|
|
359
366
|
};
|
|
360
|
-
}, [
|
|
361
|
-
}
|
|
362
|
-
function
|
|
363
|
-
const [o, r] =
|
|
364
|
-
return
|
|
365
|
-
if (!
|
|
366
|
-
let
|
|
367
|
-
return e
|
|
368
|
-
|
|
367
|
+
}, [n, e, o]);
|
|
368
|
+
}
|
|
369
|
+
function bn(e, n) {
|
|
370
|
+
const [o, r] = N([]);
|
|
371
|
+
return O(() => {
|
|
372
|
+
if (!n) return;
|
|
373
|
+
let a = !1;
|
|
374
|
+
return n(e).then((s) => {
|
|
375
|
+
a || r(s);
|
|
369
376
|
}), () => {
|
|
370
|
-
|
|
377
|
+
a = !0;
|
|
371
378
|
};
|
|
372
|
-
}, [
|
|
373
|
-
}
|
|
374
|
-
function
|
|
375
|
-
return typeof
|
|
376
|
-
}
|
|
377
|
-
function
|
|
378
|
-
return typeof
|
|
379
|
-
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
382
|
-
}
|
|
383
|
-
const
|
|
384
|
-
DropdownContainer:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
379
|
+
}, [e, n]), o;
|
|
380
|
+
}
|
|
381
|
+
function A(e) {
|
|
382
|
+
return typeof e == "string" ? e : e.id;
|
|
383
|
+
}
|
|
384
|
+
function K(e) {
|
|
385
|
+
return typeof e == "string" ? e : e.name;
|
|
386
|
+
}
|
|
387
|
+
function Bn(e, n) {
|
|
388
|
+
return e.map((o) => n.find((r) => A(r) === o) ?? o);
|
|
389
|
+
}
|
|
390
|
+
const Rn = "_DropdownContainer_p7cfo_13", Wn = "_PanelWrapper_p7cfo_20", En = "_Portal_p7cfo_34", Pn = "_PanelContainer_p7cfo_18", An = "_Glass_p7cfo_48", Mn = "_Label_p7cfo_54", On = "_lifted_p7cfo_68", qn = "_TriggerContainer_p7cfo_75", jn = "_Open_p7cfo_99", Gn = "_TriggerPlaceholder_p7cfo_104", $n = "_TriggerValue_p7cfo_112", Fn = "_TriggerIcon_p7cfo_120", zn = "_ChipsWrapper_p7cfo_127", Hn = "_Expand_p7cfo_145", Vn = "_MultiSelect_p7cfo_151", Un = "_ExpandHeight_p7cfo_156", Kn = "_Chip_p7cfo_127", Qn = "_SearchRow_p7cfo_175", Jn = "_SearchBox_p7cfo_180", Xn = "_SearchIcon_p7cfo_190", Yn = "_SearchInput_p7cfo_197", Zn = "_ResultsList_p7cfo_211", et = "_OptionRow_p7cfo_216", nt = "_Selected_p7cfo_231", tt = "_Checkmark_p7cfo_236", ot = "_CreateRow_p7cfo_242", rt = "_WithBorder_p7cfo_255", st = "_CreateIcon_p7cfo_260", at = "_CreateLabel_p7cfo_272", it = "_EmptyHint_p7cfo_278", ct = "_SkeletonRow_p7cfo_285", l = {
|
|
391
|
+
DropdownContainer: Rn,
|
|
392
|
+
PanelWrapper: Wn,
|
|
393
|
+
Portal: En,
|
|
394
|
+
PanelContainer: Pn,
|
|
395
|
+
Glass: An,
|
|
396
|
+
Label: Mn,
|
|
397
|
+
lifted: On,
|
|
398
|
+
TriggerContainer: qn,
|
|
399
|
+
Open: jn,
|
|
400
|
+
TriggerPlaceholder: Gn,
|
|
401
|
+
TriggerValue: $n,
|
|
402
|
+
TriggerIcon: Fn,
|
|
403
|
+
ChipsWrapper: zn,
|
|
404
|
+
Expand: Hn,
|
|
405
|
+
MultiSelect: Vn,
|
|
406
|
+
ExpandHeight: Un,
|
|
407
|
+
Chip: Kn,
|
|
408
|
+
SearchRow: Qn,
|
|
409
|
+
SearchBox: Jn,
|
|
410
|
+
SearchIcon: Xn,
|
|
411
|
+
SearchInput: Yn,
|
|
412
|
+
ResultsList: Zn,
|
|
413
|
+
OptionRow: et,
|
|
414
|
+
Selected: nt,
|
|
415
|
+
Checkmark: tt,
|
|
416
|
+
CreateRow: ot,
|
|
417
|
+
WithBorder: rt,
|
|
418
|
+
CreateIcon: st,
|
|
419
|
+
CreateLabel: at,
|
|
420
|
+
EmptyHint: it,
|
|
421
|
+
SkeletonRow: ct
|
|
409
422
|
};
|
|
410
|
-
function
|
|
411
|
-
function r(
|
|
412
|
-
|
|
423
|
+
function lt({ query: e, withBorder: n, onCreate: o }) {
|
|
424
|
+
function r(a) {
|
|
425
|
+
a.preventDefault(), o();
|
|
413
426
|
}
|
|
414
|
-
return /* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ _(
|
|
415
428
|
"div",
|
|
416
429
|
{
|
|
417
|
-
className:
|
|
430
|
+
className: u(l.CreateRow, n && l.WithBorder),
|
|
418
431
|
onMouseDown: r,
|
|
419
432
|
children: [
|
|
420
|
-
/* @__PURE__ */ t("span", { className: l.CreateIcon, children: /* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ t("span", { className: l.CreateIcon, children: /* @__PURE__ */ _("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
|
|
421
434
|
/* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
|
|
422
435
|
/* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
|
|
423
436
|
] }) }),
|
|
424
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ _("span", { className: l.CreateLabel, children: [
|
|
425
438
|
"create “",
|
|
426
|
-
|
|
439
|
+
e,
|
|
427
440
|
"”"
|
|
428
441
|
] })
|
|
429
442
|
]
|
|
430
443
|
}
|
|
431
444
|
);
|
|
432
445
|
}
|
|
433
|
-
function
|
|
434
|
-
function
|
|
435
|
-
s.preventDefault(), r(
|
|
446
|
+
function dt({ opt: e, isSelected: n, multiSelect: o, onPick: r }) {
|
|
447
|
+
function a(s) {
|
|
448
|
+
s.preventDefault(), r(e);
|
|
436
449
|
}
|
|
437
|
-
return /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ _(
|
|
438
451
|
"div",
|
|
439
452
|
{
|
|
440
|
-
className:
|
|
441
|
-
onMouseDown:
|
|
453
|
+
className: u(l.OptionRow, n && l.Selected),
|
|
454
|
+
onMouseDown: a,
|
|
442
455
|
children: [
|
|
443
|
-
o &&
|
|
444
|
-
|
|
456
|
+
o && n && /* @__PURE__ */ t("span", { className: l.Checkmark, children: "✓" }),
|
|
457
|
+
K(e)
|
|
445
458
|
]
|
|
446
459
|
}
|
|
447
460
|
);
|
|
448
461
|
}
|
|
449
|
-
function
|
|
450
|
-
return /* @__PURE__ */ t("div", { className: l.SearchRow, children: /* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */ t("span", { className: l.SearchIcon, children: /* @__PURE__ */
|
|
462
|
+
function ut({ inputRef: e, query: n, onChange: o, onKeyDown: r, placeholder: a }) {
|
|
463
|
+
return /* @__PURE__ */ t("div", { className: l.SearchRow, children: /* @__PURE__ */ _("div", { className: l.SearchBox, children: [
|
|
464
|
+
/* @__PURE__ */ t("span", { className: l.SearchIcon, children: /* @__PURE__ */ _("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
|
|
452
465
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
453
466
|
/* @__PURE__ */ t("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
|
|
454
467
|
] }) }),
|
|
455
468
|
/* @__PURE__ */ t(
|
|
456
469
|
"input",
|
|
457
470
|
{
|
|
458
|
-
ref:
|
|
471
|
+
ref: e,
|
|
459
472
|
className: l.SearchInput,
|
|
460
|
-
value:
|
|
473
|
+
value: n,
|
|
461
474
|
onChange: o,
|
|
462
475
|
onKeyDown: r,
|
|
463
|
-
placeholder:
|
|
476
|
+
placeholder: a
|
|
464
477
|
}
|
|
465
478
|
)
|
|
466
479
|
] }) });
|
|
467
480
|
}
|
|
468
|
-
function
|
|
469
|
-
return /* @__PURE__ */ t(
|
|
481
|
+
function _t({ count: e }) {
|
|
482
|
+
return /* @__PURE__ */ t(b, { children: Array.from({ length: e }).map((n, o) => /* @__PURE__ */ t("div", { className: l.SkeletonRow }, o)) });
|
|
470
483
|
}
|
|
471
|
-
function
|
|
472
|
-
onSearch:
|
|
473
|
-
onCreate:
|
|
484
|
+
function ft({
|
|
485
|
+
onSearch: e,
|
|
486
|
+
onCreate: n,
|
|
474
487
|
onPick: o,
|
|
475
488
|
onClose: r,
|
|
476
|
-
anchorRef:
|
|
489
|
+
anchorRef: a,
|
|
477
490
|
placeholder: s,
|
|
478
|
-
options:
|
|
491
|
+
options: i = [],
|
|
479
492
|
excluded: c = [],
|
|
480
|
-
selected:
|
|
481
|
-
multiSelect:
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
493
|
+
selected: p = [],
|
|
494
|
+
multiSelect: d = !1,
|
|
495
|
+
selectedAtTop: m = !1,
|
|
496
|
+
isLoading: h = !1,
|
|
497
|
+
emptyHint: g = "no results found",
|
|
498
|
+
skeletonRowCount: w = 4,
|
|
499
|
+
onError: B = console.error,
|
|
500
|
+
glass: C = !1
|
|
486
501
|
}) {
|
|
487
|
-
const [
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
502
|
+
const [R, Q] = N(""), [F, T] = N(!1), [I, q] = N(null), j = $(null), z = $(null), W = !!e, H = bn(R, e);
|
|
503
|
+
Dn(z, r, a), _e(() => {
|
|
504
|
+
if (!C) return;
|
|
505
|
+
function f() {
|
|
506
|
+
a?.current && q(a.current.getBoundingClientRect());
|
|
507
|
+
}
|
|
508
|
+
return f(), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
|
|
509
|
+
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
|
|
510
|
+
};
|
|
511
|
+
}, [C, a]), O(() => {
|
|
512
|
+
W && j.current?.focus();
|
|
513
|
+
}, [W]);
|
|
514
|
+
const G = (e ? H : i).filter(
|
|
515
|
+
(f) => !c.includes(A(f))
|
|
516
|
+
), S = m ? [
|
|
517
|
+
...G.filter((f) => p.includes(A(f))),
|
|
518
|
+
...G.filter((f) => !p.includes(A(f)))
|
|
519
|
+
] : G, E = R.trim(), J = S.some(
|
|
520
|
+
(f) => K(f).toLowerCase() === E.toLowerCase()
|
|
521
|
+
), x = !!n && E.length > 0 && !J;
|
|
522
|
+
async function V() {
|
|
523
|
+
!E || F || !n || (T(!0), n(E).then(X).catch(B).finally(() => T(!1)));
|
|
498
524
|
}
|
|
499
|
-
function
|
|
500
|
-
o(
|
|
525
|
+
function X(f) {
|
|
526
|
+
o(f), d || r();
|
|
501
527
|
}
|
|
502
|
-
function
|
|
503
|
-
|
|
528
|
+
function ae(f) {
|
|
529
|
+
Q(f.target.value);
|
|
504
530
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
531
|
+
function ie(f) {
|
|
532
|
+
f.key === "Enter" && (f.preventDefault(), S.length > 0 ? X(S[0]) : x && V());
|
|
507
533
|
}
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
534
|
+
const ce = s ?? (n ? "search or add new…" : "search…");
|
|
535
|
+
if (C && !I) return null;
|
|
536
|
+
const ee = /* @__PURE__ */ t(
|
|
537
|
+
"div",
|
|
538
|
+
{
|
|
539
|
+
ref: z,
|
|
540
|
+
className: u(l.PanelWrapper, { [l.Portal]: C }),
|
|
541
|
+
style: C && I ? { top: I.bottom, left: I.left, width: I.width } : void 0,
|
|
542
|
+
children: /* @__PURE__ */ _("div", { className: u(l.PanelContainer, { [l.Glass]: C }), children: [
|
|
543
|
+
W && /* @__PURE__ */ t(
|
|
544
|
+
ut,
|
|
545
|
+
{
|
|
546
|
+
inputRef: j,
|
|
547
|
+
query: R,
|
|
548
|
+
onChange: ae,
|
|
549
|
+
onKeyDown: ie,
|
|
550
|
+
placeholder: ce
|
|
551
|
+
}
|
|
552
|
+
),
|
|
553
|
+
/* @__PURE__ */ t("div", { className: l.ResultsList, children: h ? /* @__PURE__ */ t(_t, { count: w }) : /* @__PURE__ */ _(b, { children: [
|
|
554
|
+
S.map((f) => /* @__PURE__ */ t(
|
|
555
|
+
dt,
|
|
556
|
+
{
|
|
557
|
+
opt: f,
|
|
558
|
+
isSelected: p.includes(A(f)),
|
|
559
|
+
multiSelect: d,
|
|
560
|
+
onPick: X
|
|
561
|
+
},
|
|
562
|
+
A(f)
|
|
563
|
+
)),
|
|
564
|
+
x && /* @__PURE__ */ t(
|
|
565
|
+
lt,
|
|
566
|
+
{
|
|
567
|
+
query: E,
|
|
568
|
+
withBorder: S.length > 0,
|
|
569
|
+
onCreate: V
|
|
570
|
+
}
|
|
571
|
+
),
|
|
572
|
+
S.length === 0 && !x && /* @__PURE__ */ t("div", { className: l.EmptyHint, children: g })
|
|
573
|
+
] }) })
|
|
574
|
+
] })
|
|
575
|
+
}
|
|
576
|
+
);
|
|
577
|
+
return C ? he(ee, document.body) : ee;
|
|
542
578
|
}
|
|
543
|
-
function
|
|
579
|
+
function pt({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
544
580
|
return /* @__PURE__ */ t(
|
|
545
581
|
"svg",
|
|
546
582
|
{
|
|
547
583
|
viewBox: "0 0 24 24",
|
|
548
|
-
width:
|
|
549
|
-
height:
|
|
584
|
+
width: e,
|
|
585
|
+
height: e,
|
|
550
586
|
fill: "none",
|
|
551
587
|
stroke: "currentColor",
|
|
552
|
-
strokeWidth:
|
|
588
|
+
strokeWidth: n,
|
|
553
589
|
strokeLinecap: "round",
|
|
554
590
|
strokeLinejoin: "round",
|
|
555
591
|
className: o,
|
|
@@ -557,16 +593,16 @@ function Jn({ size: n = 14, strokeWidth: e = 2, className: o }) {
|
|
|
557
593
|
}
|
|
558
594
|
);
|
|
559
595
|
}
|
|
560
|
-
function
|
|
596
|
+
function Qt({ size: e = 18, strokeWidth: n = 2.5, shrink: o = !0 }) {
|
|
561
597
|
return /* @__PURE__ */ t(
|
|
562
598
|
"svg",
|
|
563
599
|
{
|
|
564
600
|
viewBox: "0 0 24 24",
|
|
565
|
-
width:
|
|
566
|
-
height:
|
|
601
|
+
width: e,
|
|
602
|
+
height: e,
|
|
567
603
|
fill: "none",
|
|
568
604
|
stroke: "currentColor",
|
|
569
|
-
strokeWidth:
|
|
605
|
+
strokeWidth: n,
|
|
570
606
|
strokeLinecap: "round",
|
|
571
607
|
strokeLinejoin: "round",
|
|
572
608
|
style: o ? { flexShrink: 0 } : void 0,
|
|
@@ -574,8 +610,8 @@ function bt({ size: n = 18, strokeWidth: e = 2.5, shrink: o = !0 }) {
|
|
|
574
610
|
}
|
|
575
611
|
);
|
|
576
612
|
}
|
|
577
|
-
function
|
|
578
|
-
return /* @__PURE__ */
|
|
613
|
+
function Jt() {
|
|
614
|
+
return /* @__PURE__ */ _(
|
|
579
615
|
"svg",
|
|
580
616
|
{
|
|
581
617
|
viewBox: "0 0 24 24",
|
|
@@ -593,8 +629,8 @@ function St() {
|
|
|
593
629
|
}
|
|
594
630
|
);
|
|
595
631
|
}
|
|
596
|
-
function
|
|
597
|
-
return /* @__PURE__ */
|
|
632
|
+
function Xt() {
|
|
633
|
+
return /* @__PURE__ */ _(
|
|
598
634
|
"svg",
|
|
599
635
|
{
|
|
600
636
|
viewBox: "0 0 24 24",
|
|
@@ -612,194 +648,214 @@ function Dt() {
|
|
|
612
648
|
}
|
|
613
649
|
);
|
|
614
650
|
}
|
|
615
|
-
function
|
|
616
|
-
|
|
651
|
+
function mt({ triggerRef: e, isOpen: n, onClick: o, selectedOptions: r, multiSelect: a, placeholder: s, onOverflow: i = "scroll" }) {
|
|
652
|
+
const c = i === "expand";
|
|
653
|
+
return /* @__PURE__ */ _(
|
|
617
654
|
"button",
|
|
618
655
|
{
|
|
619
656
|
type: "button",
|
|
620
|
-
ref:
|
|
621
|
-
className:
|
|
657
|
+
ref: e,
|
|
658
|
+
className: u(
|
|
659
|
+
l.TriggerContainer,
|
|
660
|
+
n && l.Open,
|
|
661
|
+
a && l.MultiSelect,
|
|
662
|
+
c && l.ExpandHeight
|
|
663
|
+
),
|
|
622
664
|
onClick: o,
|
|
623
|
-
"aria-expanded":
|
|
665
|
+
"aria-expanded": n,
|
|
624
666
|
"aria-haspopup": "listbox",
|
|
625
667
|
children: [
|
|
626
|
-
|
|
627
|
-
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(
|
|
668
|
+
a && r.length > 0 ? /* @__PURE__ */ t("div", { className: u(l.ChipsWrapper, c && l.Expand), children: r.map((p, d) => /* @__PURE__ */ t("span", { className: l.Chip, children: K(p) }, d)) }) : /* @__PURE__ */ t("span", { className: r.length === 0 ? l.TriggerPlaceholder : l.TriggerValue, children: r.length === 0 ? s : r.map(K).join(", ") }),
|
|
669
|
+
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(pt, { size: 12 }) })
|
|
628
670
|
]
|
|
629
671
|
}
|
|
630
672
|
);
|
|
631
673
|
}
|
|
632
|
-
function
|
|
633
|
-
options:
|
|
634
|
-
value:
|
|
674
|
+
function Yt({
|
|
675
|
+
options: e = [],
|
|
676
|
+
value: n,
|
|
635
677
|
onChange: o,
|
|
636
678
|
onSearch: r,
|
|
637
|
-
onCreate:
|
|
679
|
+
onCreate: a,
|
|
638
680
|
excluded: s,
|
|
639
|
-
multiSelect:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
681
|
+
multiSelect: i = !1,
|
|
682
|
+
selectedAtTop: c = !1,
|
|
683
|
+
onOverflow: p = "scroll",
|
|
684
|
+
label: d,
|
|
685
|
+
placeholder: m = "select…",
|
|
686
|
+
searchPlaceholder: h,
|
|
687
|
+
emptyHint: g,
|
|
688
|
+
isLoading: w,
|
|
689
|
+
skeletonRowCount: B,
|
|
690
|
+
onError: C,
|
|
691
|
+
className: R,
|
|
692
|
+
glass: Q = !1,
|
|
693
|
+
children: F
|
|
649
694
|
}) {
|
|
650
|
-
const { isOpen:
|
|
651
|
-
function S(
|
|
652
|
-
const
|
|
695
|
+
const { isOpen: T, triggerRef: I, toggleOpen: q, close: j } = xn(), z = v("Dropdown", R), W = Bn(n, e), H = T || W.length > 0, G = d && !H ? "" : m;
|
|
696
|
+
function S(J) {
|
|
697
|
+
const x = A(J);
|
|
653
698
|
o(
|
|
654
|
-
|
|
699
|
+
i ? n.includes(x) ? n.filter((V) => V !== x) : [...n, x] : [x]
|
|
655
700
|
);
|
|
656
701
|
}
|
|
657
|
-
const
|
|
658
|
-
ref:
|
|
659
|
-
onClick:
|
|
660
|
-
"aria-expanded":
|
|
702
|
+
const E = {
|
|
703
|
+
ref: I,
|
|
704
|
+
onClick: q,
|
|
705
|
+
"aria-expanded": T,
|
|
661
706
|
"aria-haspopup": "listbox"
|
|
662
707
|
};
|
|
663
|
-
return /* @__PURE__ */
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
708
|
+
return /* @__PURE__ */ _("div", { className: u(l.DropdownContainer, z), children: [
|
|
709
|
+
d && /* @__PURE__ */ t("label", { className: u(l.Label, { [l.lifted]: H }), children: d }),
|
|
710
|
+
F ? F({ selectedOptions: W, isOpen: T, toggleOpen: q, close: j, triggerProps: E }) : /* @__PURE__ */ t(
|
|
711
|
+
mt,
|
|
667
712
|
{
|
|
668
|
-
triggerRef:
|
|
669
|
-
isOpen:
|
|
670
|
-
onClick:
|
|
671
|
-
selectedOptions:
|
|
672
|
-
multiSelect:
|
|
673
|
-
|
|
713
|
+
triggerRef: I,
|
|
714
|
+
isOpen: T,
|
|
715
|
+
onClick: q,
|
|
716
|
+
selectedOptions: W,
|
|
717
|
+
multiSelect: i,
|
|
718
|
+
onOverflow: p,
|
|
719
|
+
placeholder: G
|
|
674
720
|
}
|
|
675
721
|
),
|
|
676
|
-
|
|
677
|
-
|
|
722
|
+
T && /* @__PURE__ */ t(
|
|
723
|
+
ft,
|
|
678
724
|
{
|
|
679
|
-
options:
|
|
725
|
+
options: e,
|
|
680
726
|
onSearch: r,
|
|
681
|
-
onCreate:
|
|
727
|
+
onCreate: a,
|
|
682
728
|
onPick: S,
|
|
683
|
-
onClose:
|
|
684
|
-
anchorRef:
|
|
729
|
+
onClose: j,
|
|
730
|
+
anchorRef: I,
|
|
685
731
|
excluded: s,
|
|
686
|
-
multiSelect:
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
732
|
+
multiSelect: i,
|
|
733
|
+
selectedAtTop: c,
|
|
734
|
+
selected: n,
|
|
735
|
+
placeholder: h,
|
|
736
|
+
emptyHint: g,
|
|
737
|
+
isLoading: w,
|
|
738
|
+
skeletonRowCount: B,
|
|
739
|
+
onError: C,
|
|
740
|
+
glass: Q
|
|
693
741
|
}
|
|
694
742
|
)
|
|
695
743
|
] });
|
|
696
744
|
}
|
|
697
|
-
const
|
|
698
|
-
Btn:
|
|
699
|
-
Primary:
|
|
700
|
-
Secondary:
|
|
701
|
-
Ghost:
|
|
702
|
-
IconDanger:
|
|
703
|
-
Danger:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
iconDanger: R.IconDanger,
|
|
711
|
-
unstyled: R.Unstyled
|
|
745
|
+
const ht = "_Btn_1tozl_10", gt = "_Primary_1tozl_35", Ct = "_Secondary_1tozl_50", vt = "_Ghost_1tozl_62", wt = "_IconDanger_1tozl_74", yt = "_Danger_1tozl_95", M = {
|
|
746
|
+
Btn: ht,
|
|
747
|
+
Primary: gt,
|
|
748
|
+
Secondary: Ct,
|
|
749
|
+
Ghost: vt,
|
|
750
|
+
IconDanger: wt,
|
|
751
|
+
Danger: yt
|
|
752
|
+
}, Nt = {
|
|
753
|
+
primary: M.Primary,
|
|
754
|
+
secondary: M.Secondary,
|
|
755
|
+
danger: M.Danger,
|
|
756
|
+
ghost: M.Ghost,
|
|
757
|
+
iconDanger: M.IconDanger
|
|
712
758
|
};
|
|
713
|
-
function
|
|
759
|
+
function Zt({ variant: e = "default", className: n, children: o, ...r }) {
|
|
760
|
+
const a = v("Button", n), s = e === "unstyled";
|
|
714
761
|
return /* @__PURE__ */ t(
|
|
715
762
|
"button",
|
|
716
763
|
{
|
|
717
764
|
type: "button",
|
|
718
765
|
...r,
|
|
719
|
-
className:
|
|
766
|
+
className: u(!s && M.Btn, !s && Nt[e], a),
|
|
720
767
|
children: o
|
|
721
768
|
}
|
|
722
769
|
);
|
|
723
770
|
}
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
771
|
+
const It = "_ConfirmWrapper_1tq4o_4", kt = "_ConfirmContainer_1tq4o_1", Lt = "_Glass_1tq4o_24", Tt = "_ConfirmTitle_1tq4o_30", St = "_ConfirmMessage_1tq4o_38", xt = "_ConfirmActions_1tq4o_45", Dt = "_BtnCancel_1tq4o_53", bt = "_BtnConfirm_1tq4o_73", Bt = "_BtnDanger_1tq4o_92", k = {
|
|
772
|
+
ConfirmWrapper: It,
|
|
773
|
+
ConfirmContainer: kt,
|
|
774
|
+
Glass: Lt,
|
|
775
|
+
ConfirmTitle: Tt,
|
|
776
|
+
ConfirmMessage: St,
|
|
777
|
+
ConfirmActions: xt,
|
|
778
|
+
BtnCancel: Dt,
|
|
779
|
+
BtnConfirm: bt,
|
|
780
|
+
BtnDanger: Bt
|
|
732
781
|
};
|
|
733
|
-
function
|
|
734
|
-
title:
|
|
735
|
-
message:
|
|
782
|
+
function eo({
|
|
783
|
+
title: e,
|
|
784
|
+
message: n,
|
|
736
785
|
confirmLabel: o = "Confirm",
|
|
737
786
|
cancelLabel: r = "Cancel",
|
|
738
|
-
danger:
|
|
787
|
+
danger: a = !1,
|
|
739
788
|
onConfirm: s,
|
|
740
|
-
onClose:
|
|
789
|
+
onClose: i,
|
|
790
|
+
className: c,
|
|
791
|
+
glass: p = !1
|
|
741
792
|
}) {
|
|
742
|
-
const [
|
|
743
|
-
function
|
|
744
|
-
|
|
745
|
-
|
|
793
|
+
const [d, m] = N(!1), h = v("ConfirmDialog", c);
|
|
794
|
+
function g() {
|
|
795
|
+
m(!0), Promise.resolve(s()).finally(() => {
|
|
796
|
+
m(!1), i();
|
|
746
797
|
});
|
|
747
798
|
}
|
|
748
|
-
return /* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */ t("h2", { className:
|
|
750
|
-
/* @__PURE__ */ t("p", { className:
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */ t("button", { className:
|
|
799
|
+
return /* @__PURE__ */ t("div", { className: k.ConfirmWrapper, children: /* @__PURE__ */ _("div", { className: u(k.ConfirmContainer, { [k.Glass]: p }, h), role: "dialog", "aria-modal": "true", children: [
|
|
800
|
+
/* @__PURE__ */ t("h2", { className: k.ConfirmTitle, children: e }),
|
|
801
|
+
/* @__PURE__ */ t("p", { className: k.ConfirmMessage, children: n }),
|
|
802
|
+
/* @__PURE__ */ _("div", { className: k.ConfirmActions, children: [
|
|
803
|
+
/* @__PURE__ */ t("button", { className: k.BtnCancel, type: "button", onClick: i, disabled: d, children: r }),
|
|
753
804
|
/* @__PURE__ */ t(
|
|
754
805
|
"button",
|
|
755
806
|
{
|
|
756
|
-
className:
|
|
807
|
+
className: u(a ? k.BtnDanger : k.BtnConfirm),
|
|
757
808
|
type: "button",
|
|
758
|
-
onClick:
|
|
759
|
-
disabled:
|
|
760
|
-
children:
|
|
809
|
+
onClick: g,
|
|
810
|
+
disabled: d,
|
|
811
|
+
children: d ? "…" : o
|
|
761
812
|
}
|
|
762
813
|
)
|
|
763
814
|
] })
|
|
764
|
-
] });
|
|
815
|
+
] }) });
|
|
765
816
|
}
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
817
|
+
const Rt = "_InfoWrapper_cqv58_4", Wt = "_InfoContainer_cqv58_1", Et = "_Glass_cqv58_24", Pt = "_InfoTitle_cqv58_30", At = "_InfoMessage_cqv58_38", Mt = "_InfoActions_cqv58_45", Ot = "_BtnClose_cqv58_52", P = {
|
|
818
|
+
InfoWrapper: Rt,
|
|
819
|
+
InfoContainer: Wt,
|
|
820
|
+
Glass: Et,
|
|
821
|
+
InfoTitle: Pt,
|
|
822
|
+
InfoMessage: At,
|
|
823
|
+
InfoActions: Mt,
|
|
824
|
+
BtnClose: Ot
|
|
772
825
|
};
|
|
773
|
-
function
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/* @__PURE__ */ t("
|
|
777
|
-
/* @__PURE__ */ t("
|
|
778
|
-
|
|
826
|
+
function no({ title: e, message: n, onClose: o, className: r, glass: a = !1 }) {
|
|
827
|
+
const s = v("InfoDialog", r);
|
|
828
|
+
return /* @__PURE__ */ t("div", { className: P.InfoWrapper, children: /* @__PURE__ */ _("div", { className: u(P.InfoContainer, { [P.Glass]: a }, s), role: "dialog", "aria-modal": "true", children: [
|
|
829
|
+
/* @__PURE__ */ t("h2", { className: P.InfoTitle, children: e }),
|
|
830
|
+
/* @__PURE__ */ t("p", { className: P.InfoMessage, children: n }),
|
|
831
|
+
/* @__PURE__ */ t("div", { className: P.InfoActions, children: /* @__PURE__ */ t("button", { className: P.BtnClose, type: "button", onClick: o, children: "Got it" }) })
|
|
832
|
+
] }) });
|
|
779
833
|
}
|
|
780
|
-
function
|
|
781
|
-
|
|
834
|
+
function to({ buttons: e, containerClassName: n }) {
|
|
835
|
+
const o = v("ModalActions", n);
|
|
836
|
+
return /* @__PURE__ */ t("div", { className: o, children: e.map((r, a) => /* @__PURE__ */ t(
|
|
782
837
|
"button",
|
|
783
838
|
{
|
|
784
|
-
className:
|
|
839
|
+
className: r.className,
|
|
785
840
|
type: "button",
|
|
786
|
-
onClick:
|
|
787
|
-
disabled:
|
|
788
|
-
children:
|
|
841
|
+
onClick: r.onClick,
|
|
842
|
+
disabled: r.disabled,
|
|
843
|
+
children: r.label
|
|
789
844
|
},
|
|
790
|
-
|
|
845
|
+
a
|
|
791
846
|
)) });
|
|
792
847
|
}
|
|
793
|
-
function
|
|
848
|
+
function oo({ onClick: e, disabled: n, className: o }) {
|
|
849
|
+
const r = v("ModalClose", o);
|
|
794
850
|
return /* @__PURE__ */ t(
|
|
795
851
|
"button",
|
|
796
852
|
{
|
|
797
|
-
className:
|
|
853
|
+
className: r,
|
|
798
854
|
type: "button",
|
|
799
|
-
onClick:
|
|
800
|
-
disabled:
|
|
855
|
+
onClick: e,
|
|
856
|
+
disabled: n,
|
|
801
857
|
"aria-label": "Close",
|
|
802
|
-
children: /* @__PURE__ */
|
|
858
|
+
children: /* @__PURE__ */ _(
|
|
803
859
|
"svg",
|
|
804
860
|
{
|
|
805
861
|
viewBox: "0 0 24 24",
|
|
@@ -818,24 +874,29 @@ function Et({ onClick: n, disabled: e, className: o }) {
|
|
|
818
874
|
}
|
|
819
875
|
);
|
|
820
876
|
}
|
|
877
|
+
function ro({ classNames: e, children: n }) {
|
|
878
|
+
return /* @__PURE__ */ t(re.Provider, { value: e, children: n });
|
|
879
|
+
}
|
|
821
880
|
export {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
881
|
+
Xt as AvatarFallbackIcon,
|
|
882
|
+
Zt as Button,
|
|
883
|
+
Qt as CheckmarkIcon,
|
|
884
|
+
pt as ChevronDownIcon,
|
|
885
|
+
ro as ChuresConfigProvider,
|
|
886
|
+
eo as ConfirmDialog,
|
|
887
|
+
Yt as Dropdown,
|
|
888
|
+
Jt as EditPencilIcon,
|
|
889
|
+
no as InfoDialog,
|
|
890
|
+
Ut as Input,
|
|
891
|
+
Fe as Loader,
|
|
892
|
+
zt as LoadingWrapper,
|
|
893
|
+
to as ModalActions,
|
|
894
|
+
oo as ModalClose,
|
|
895
|
+
Ht as TelegramAuth,
|
|
896
|
+
Ze as TelegramSignInButton,
|
|
897
|
+
Vt as Toaster,
|
|
898
|
+
Kt as Toggle,
|
|
899
|
+
v as useComponentClassName,
|
|
900
|
+
Ue as useTelegramLogin,
|
|
901
|
+
se as useToaster
|
|
841
902
|
};
|