@vervstack/chures 0.0.35 → 0.0.36
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
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}@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_1uu20_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_1uu20_15){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_1uu20_21){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}:where(._InputField_1uu20_21._hasStartIcon_1uu20_35){padding-left:2.25rem}:where(._InputField_1uu20_21._hasEndIcon_1uu20_39){padding-right:2.25rem}:where(._StartIcon_1uu20_43){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._EndIcon_1uu20_54){position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._InputField_1uu20_21):focus{border-color:#ffffff59}:where(._hasError_1uu20_69 ._InputField_1uu20_21),:where(._hasError_1uu20_69 ._InputField_1uu20_21):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_1uu20_74 ._InputField_1uu20_21){opacity:.45;cursor:not-allowed}:where(._Label_1uu20_79){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}:where(._Label_1uu20_79._lifted_1uu20_93){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_1uu20_69 ._Label_1uu20_79._lifted_1uu20_93){color:var(--chures-error, #ef4444)}:where(._ErrorText_1uu20_104){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}:where(._Skeleton_1uu20_112){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_1uu20_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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}@keyframes _panelIn_c0vws_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_c0vws_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_c0vws_13{position:relative;width:100%}._PanelWrapper_c0vws_20{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_c0vws_1 .14s ease}._PanelWrapper_c0vws_20._Portal_c0vws_34{position:fixed;width:auto;margin-top:var(--chures-dropdown-panel-gap)}._PanelContainer_c0vws_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_c0vws_18._Glass_c0vws_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_c0vws_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_c0vws_54._lifted_c0vws_68{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_c0vws_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_c0vws_75:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_c0vws_75._Open_c0vws_99{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_c0vws_104{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_c0vws_112{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_c0vws_120{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_c0vws_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_c0vws_127::-webkit-scrollbar{display:none}._ChipsWrapper_c0vws_127._Expand_c0vws_145{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_c0vws_75._MultiSelect_c0vws_151 ._TriggerIcon_c0vws_120{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_c0vws_75._ExpandHeight_c0vws_156{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_c0vws_75._RichValue_c0vws_161{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerValueRich_c0vws_167{flex:1;min-width:0;overflow:hidden}._Chip_c0vws_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_c0vws_187{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_c0vws_192{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_c0vws_202{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_c0vws_209{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_c0vws_209::placeholder{color:var(--chures-fg-muted)}._ResultsList_c0vws_223{max-height:13rem;overflow-y:auto}._OptionRow_c0vws_228{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_c0vws_228:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_c0vws_228._Selected_c0vws_243{color:var(--chures-fg)}._OptionRow_c0vws_228._Indented_c0vws_247{padding-left:1.875rem}._OptionRow_c0vws_228._Disabled_c0vws_251{cursor:not-allowed;opacity:.5}._OptionRow_c0vws_228._Disabled_c0vws_251:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_c0vws_262{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_c0vws_262:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._Checkmark_c0vws_275{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_c0vws_281{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_c0vws_281:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_c0vws_281._WithBorder_c0vws_294{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_c0vws_299{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_c0vws_311{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_c0vws_317{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_c0vws_324{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_c0vws_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)}:where(._Backdrop_1w1e3_7){position:fixed;inset:0;background:var(--chures-overlay, rgb(0 0 0 / 58%));opacity:0;pointer-events:none;transition:opacity .26s ease}:where(._BackdropOpen_1w1e3_16){opacity:1;pointer-events:auto}:where(._Panel_1w1e3_21){position:fixed;display:flex;flex-direction:column;overflow:hidden;background:var(--chures-surface, #000000);box-shadow:0 0 3rem #00000059;transition:transform .28s cubic-bezier(.32,0,0,1)}:where(._Right_1w1e3_31){top:0;right:0;bottom:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(100%)}:where(._Left_1w1e3_40){top:0;bottom:0;left:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(-100%)}:where(._Top_1w1e3_49){top:0;left:0;right:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(-100%)}:where(._Bottom_1w1e3_58){left:0;right:0;bottom:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(100%)}:where(._PanelOpen_1w1e3_67){transform:translate(0)}@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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}._FlyoutMenuContainer_1q0ma_5{display:contents}._Backdrop_1q0ma_9{position:fixed;inset:0}._Panel_1q0ma_14{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);padding:.35rem;background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._Submenu_1q0ma_27{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._FlyoutPanelContainer_1q0ma_41{display:flex;flex-direction:column;gap:.15rem}._Back_1q0ma_9{display:flex;align-items:center;justify-content:flex-start;gap:.4rem;padding:.4rem .55rem;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Back_1q0ma_9:hover{background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Chevron_1q0ma_68{flex-shrink:0;color:var(--chures-flyout-fg-muted)}._MenuListContainer_1q0ma_75{display:flex;flex-direction:column;gap:.15rem}._Heading_1q0ma_81{padding:.35rem .55rem .25rem;color:var(--chures-flyout-fg-muted);font-family:var(--chures-flyout-font-mono);font-size:var(--chures-flyout-font-sm);letter-spacing:.06rem;text-transform:uppercase}._Divider_1q0ma_90{height:1px;margin:.3rem .2rem;background:var(--chures-flyout-border)}._MenuRowContainer_1q0ma_98{display:flex}._MenuRowContainer_1q0ma_98._Dim_1q0ma_102{opacity:.5}._Row_1q0ma_106{display:flex;flex:1;min-width:0;align-items:center;justify-content:flex-start;gap:.5rem;padding:.4rem .55rem;overflow:hidden;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Row_1q0ma_106:hover:not(:disabled){background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Row_1q0ma_106:disabled{color:var(--chures-flyout-fg-muted);cursor:default}._Icon_1q0ma_135{display:flex;flex-shrink:0}._Label_1q0ma_140{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._Arrow_1q0ma_148{flex-shrink:0;color:var(--chures-flyout-fg-muted);font-size:var(--chures-flyout-font-md)}._MenuSkeletonContainer_1q0ma_156{display:flex;flex-direction:column;gap:.15rem;padding:.35rem .5rem}._MenuSkeletonRow_1q0ma_163{height:1.75rem;border-radius:var(--chures-flyout-radius);background:var(--chures-flyout-skeleton);animation:_churesFlyoutSkeletonPulse_1q0ma_1 1.5s ease-in-out infinite}._MenuSkeletonRow_1q0ma_163:nth-child(2){animation-delay:.15s}._MenuSkeletonRow_1q0ma_163:nth-child(3){animation-delay:.3s}@keyframes _churesFlyoutSkeletonPulse_1q0ma_1{0%,to{opacity:1}50%{opacity:.4}}._MenuSearchFieldContainer_1q0ma_191{overflow:hidden;padding-bottom:.35rem}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}@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_1uu20_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_1uu20_15){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_1uu20_21){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}:where(._InputField_1uu20_21._hasStartIcon_1uu20_35){padding-left:2.25rem}:where(._InputField_1uu20_21._hasEndIcon_1uu20_39){padding-right:2.25rem}:where(._StartIcon_1uu20_43){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._EndIcon_1uu20_54){position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._InputField_1uu20_21):focus{border-color:#ffffff59}:where(._hasError_1uu20_69 ._InputField_1uu20_21),:where(._hasError_1uu20_69 ._InputField_1uu20_21):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_1uu20_74 ._InputField_1uu20_21){opacity:.45;cursor:not-allowed}:where(._Label_1uu20_79){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}:where(._Label_1uu20_79._lifted_1uu20_93){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_1uu20_69 ._Label_1uu20_79._lifted_1uu20_93){color:var(--chures-error, #ef4444)}:where(._ErrorText_1uu20_104){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}:where(._Skeleton_1uu20_112){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_1uu20_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}:where(._CheckboxContainer_14vl9_4){display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12){opacity:.45;cursor:not-allowed}:where(._BoxWrapper_14vl9_17){position:relative;display:inline-flex;flex-shrink:0;width:var(--chures-checkbox-size, 1.125rem);height:var(--chures-checkbox-size, 1.125rem)}:where(._BoxWrapper_14vl9_17) input{position:absolute;inset:0;margin:0;cursor:pointer;opacity:0}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12) ._BoxWrapper_14vl9_17 input{cursor:not-allowed}:where(._Box_14vl9_17){position:absolute;inset:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--chures-checkbox-radius, .3125rem);border:1px solid var(--chures-checkbox-border, rgb(255 255 255 / 25%));background:var(--chures-checkbox-bg, transparent);color:transparent;pointer-events:none;transition:background .16s ease,border-color .16s ease,color .16s ease}:where(._BoxWrapper_14vl9_17) input:checked+:where(._Box_14vl9_17){background:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));border-color:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));color:var(--chures-checkbox-tick, #ffffff)}:where(._BoxWrapper_14vl9_17) input:focus-visible+:where(._Box_14vl9_17){outline:2px solid var(--chures-accent, #229ED9);outline-offset:.125rem}:where(._Label_14vl9_62){font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}@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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}@keyframes _panelIn_c0vws_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_c0vws_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_c0vws_13{position:relative;width:100%}._PanelWrapper_c0vws_20{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_c0vws_1 .14s ease}._PanelWrapper_c0vws_20._Portal_c0vws_34{position:fixed;width:auto;margin-top:var(--chures-dropdown-panel-gap)}._PanelContainer_c0vws_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_c0vws_18._Glass_c0vws_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_c0vws_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_c0vws_54._lifted_c0vws_68{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_c0vws_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_c0vws_75:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_c0vws_75._Open_c0vws_99{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_c0vws_104{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_c0vws_112{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_c0vws_120{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_c0vws_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_c0vws_127::-webkit-scrollbar{display:none}._ChipsWrapper_c0vws_127._Expand_c0vws_145{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_c0vws_75._MultiSelect_c0vws_151 ._TriggerIcon_c0vws_120{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_c0vws_75._ExpandHeight_c0vws_156{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_c0vws_75._RichValue_c0vws_161{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerValueRich_c0vws_167{flex:1;min-width:0;overflow:hidden}._Chip_c0vws_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_c0vws_187{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_c0vws_192{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_c0vws_202{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_c0vws_209{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_c0vws_209::placeholder{color:var(--chures-fg-muted)}._ResultsList_c0vws_223{max-height:13rem;overflow-y:auto}._OptionRow_c0vws_228{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_c0vws_228:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_c0vws_228._Selected_c0vws_243{color:var(--chures-fg)}._OptionRow_c0vws_228._Indented_c0vws_247{padding-left:1.875rem}._OptionRow_c0vws_228._Disabled_c0vws_251{cursor:not-allowed;opacity:.5}._OptionRow_c0vws_228._Disabled_c0vws_251:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_c0vws_262{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_c0vws_262:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._Checkmark_c0vws_275{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_c0vws_281{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_c0vws_281:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_c0vws_281._WithBorder_c0vws_294{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_c0vws_299{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_c0vws_311{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_c0vws_317{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_c0vws_324{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_c0vws_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)}:where(._Backdrop_1w1e3_7){position:fixed;inset:0;background:var(--chures-overlay, rgb(0 0 0 / 58%));opacity:0;pointer-events:none;transition:opacity .26s ease}:where(._BackdropOpen_1w1e3_16){opacity:1;pointer-events:auto}:where(._Panel_1w1e3_21){position:fixed;display:flex;flex-direction:column;overflow:hidden;background:var(--chures-surface, #000000);box-shadow:0 0 3rem #00000059;transition:transform .28s cubic-bezier(.32,0,0,1)}:where(._Right_1w1e3_31){top:0;right:0;bottom:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(100%)}:where(._Left_1w1e3_40){top:0;bottom:0;left:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(-100%)}:where(._Top_1w1e3_49){top:0;left:0;right:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(-100%)}:where(._Bottom_1w1e3_58){left:0;right:0;bottom:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(100%)}:where(._PanelOpen_1w1e3_67){transform:translate(0)}@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;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace}}._FlyoutMenuContainer_1q0ma_5{display:contents}._Backdrop_1q0ma_9{position:fixed;inset:0}._Panel_1q0ma_14{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);padding:.35rem;background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._Submenu_1q0ma_27{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._FlyoutPanelContainer_1q0ma_41{display:flex;flex-direction:column;gap:.15rem}._Back_1q0ma_9{display:flex;align-items:center;justify-content:flex-start;gap:.4rem;padding:.4rem .55rem;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Back_1q0ma_9:hover{background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Chevron_1q0ma_68{flex-shrink:0;color:var(--chures-flyout-fg-muted)}._MenuListContainer_1q0ma_75{display:flex;flex-direction:column;gap:.15rem}._Heading_1q0ma_81{padding:.35rem .55rem .25rem;color:var(--chures-flyout-fg-muted);font-family:var(--chures-flyout-font-mono);font-size:var(--chures-flyout-font-sm);letter-spacing:.06rem;text-transform:uppercase}._Divider_1q0ma_90{height:1px;margin:.3rem .2rem;background:var(--chures-flyout-border)}._MenuRowContainer_1q0ma_98{display:flex}._MenuRowContainer_1q0ma_98._Dim_1q0ma_102{opacity:.5}._Row_1q0ma_106{display:flex;flex:1;min-width:0;align-items:center;justify-content:flex-start;gap:.5rem;padding:.4rem .55rem;overflow:hidden;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Row_1q0ma_106:hover:not(:disabled){background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Row_1q0ma_106:disabled{color:var(--chures-flyout-fg-muted);cursor:default}._Icon_1q0ma_135{display:flex;flex-shrink:0}._Label_1q0ma_140{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._Arrow_1q0ma_148{flex-shrink:0;color:var(--chures-flyout-fg-muted);font-size:var(--chures-flyout-font-md)}._MenuSkeletonContainer_1q0ma_156{display:flex;flex-direction:column;gap:.15rem;padding:.35rem .5rem}._MenuSkeletonRow_1q0ma_163{height:1.75rem;border-radius:var(--chures-flyout-radius);background:var(--chures-flyout-skeleton);animation:_churesFlyoutSkeletonPulse_1q0ma_1 1.5s ease-in-out infinite}._MenuSkeletonRow_1q0ma_163:nth-child(2){animation-delay:.15s}._MenuSkeletonRow_1q0ma_163:nth-child(3){animation-delay:.3s}@keyframes _churesFlyoutSkeletonPulse_1q0ma_1{0%,to{opacity:1}50%{opacity:.4}}._MenuSearchFieldContainer_1q0ma_191{overflow:hidden;padding-bottom:.35rem}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as t, jsxs as m, Fragment as G } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import { create as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
function
|
|
3
|
+
import { createContext as Oe, useContext as We, useRef as R, useState as k, useEffect as D, forwardRef as tn, useCallback as B, useLayoutEffect as Ie, Fragment as pe, useMemo as Fe } from "react";
|
|
4
|
+
import { AnimatePresence as he, motion as ie } from "framer-motion";
|
|
5
|
+
import { create as on } from "zustand";
|
|
6
|
+
import { createPortal as be } from "react-dom";
|
|
7
|
+
function rn(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
return
|
|
10
|
+
var ge = { exports: {} };
|
|
11
|
+
var Te;
|
|
12
|
+
function sn() {
|
|
13
|
+
return Te || (Te = 1, (function(e) {
|
|
14
14
|
(function() {
|
|
15
15
|
var n = {}.hasOwnProperty;
|
|
16
16
|
function r() {
|
|
17
|
-
for (var
|
|
18
|
-
var c = arguments[
|
|
19
|
-
c && (
|
|
17
|
+
for (var a = "", i = 0; i < arguments.length; i++) {
|
|
18
|
+
var c = arguments[i];
|
|
19
|
+
c && (a = s(a, o(c)));
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return a;
|
|
22
22
|
}
|
|
23
|
-
function o(
|
|
24
|
-
if (typeof
|
|
25
|
-
return
|
|
26
|
-
if (typeof
|
|
23
|
+
function o(a) {
|
|
24
|
+
if (typeof a == "string" || typeof a == "number")
|
|
25
|
+
return a;
|
|
26
|
+
if (typeof a != "object")
|
|
27
27
|
return "";
|
|
28
|
-
if (Array.isArray(
|
|
29
|
-
return r.apply(null,
|
|
30
|
-
if (
|
|
31
|
-
return
|
|
32
|
-
var
|
|
33
|
-
for (var c in
|
|
34
|
-
n.call(
|
|
35
|
-
return
|
|
28
|
+
if (Array.isArray(a))
|
|
29
|
+
return r.apply(null, a);
|
|
30
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
31
|
+
return a.toString();
|
|
32
|
+
var i = "";
|
|
33
|
+
for (var c in a)
|
|
34
|
+
n.call(a, c) && a[c] && (i = s(i, c));
|
|
35
|
+
return i;
|
|
36
36
|
}
|
|
37
|
-
function s(
|
|
38
|
-
return
|
|
37
|
+
function s(a, i) {
|
|
38
|
+
return i ? a ? a + " " + i : a + i : a;
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
43
|
-
}
|
|
44
|
-
var
|
|
45
|
-
const g = /* @__PURE__ */
|
|
46
|
-
LoaderContainer:
|
|
47
|
-
sm:
|
|
48
|
-
md:
|
|
49
|
-
lg:
|
|
50
|
-
Arc1:
|
|
51
|
-
Arc2:
|
|
42
|
+
})(ge)), ge.exports;
|
|
43
|
+
}
|
|
44
|
+
var an = sn();
|
|
45
|
+
const g = /* @__PURE__ */ rn(an), cn = "_LoaderContainer_wa8op_24", ln = "_sm_wa8op_31", un = "_md_wa8op_32", dn = "_lg_wa8op_33", _n = "_Arc1_wa8op_37", hn = "_Arc2_wa8op_38", fn = "_Arc3_wa8op_39", mn = "_spin_wa8op_1", pn = "_Ring1_wa8op_71", gn = "_Ring2_wa8op_72", vn = "_Ring3_wa8op_73", Cn = "_ripple_wa8op_1", wn = "_Dot1_wa8op_86", yn = "_Dot2_wa8op_87", Nn = "_Dot3_wa8op_88", kn = "_dotPulse_wa8op_1", In = "_Wave1_wa8op_105", bn = "_Wave2_wa8op_106", Sn = "_Wave3_wa8op_107", Rn = "_Wave4_wa8op_108", Tn = "_Wave5_wa8op_109", Ln = "_waveBounce_wa8op_1", ue = {
|
|
46
|
+
LoaderContainer: cn,
|
|
47
|
+
sm: ln,
|
|
48
|
+
md: un,
|
|
49
|
+
lg: dn,
|
|
50
|
+
Arc1: _n,
|
|
51
|
+
Arc2: hn,
|
|
52
52
|
Arc3: fn,
|
|
53
|
-
spin:
|
|
54
|
-
Ring1:
|
|
55
|
-
Ring2:
|
|
56
|
-
Ring3:
|
|
57
|
-
ripple:
|
|
53
|
+
spin: mn,
|
|
54
|
+
Ring1: pn,
|
|
55
|
+
Ring2: gn,
|
|
56
|
+
Ring3: vn,
|
|
57
|
+
ripple: Cn,
|
|
58
58
|
Dot1: wn,
|
|
59
|
-
Dot2:
|
|
60
|
-
Dot3:
|
|
61
|
-
dotPulse:
|
|
59
|
+
Dot2: yn,
|
|
60
|
+
Dot3: Nn,
|
|
61
|
+
dotPulse: kn,
|
|
62
62
|
Wave1: In,
|
|
63
|
-
Wave2:
|
|
63
|
+
Wave2: bn,
|
|
64
64
|
Wave3: Sn,
|
|
65
65
|
Wave4: Rn,
|
|
66
|
-
Wave5:
|
|
67
|
-
waveBounce:
|
|
68
|
-
},
|
|
69
|
-
function
|
|
70
|
-
const r =
|
|
66
|
+
Wave5: Tn,
|
|
67
|
+
waveBounce: Ln
|
|
68
|
+
}, qe = Oe({});
|
|
69
|
+
function T(e, n) {
|
|
70
|
+
const r = We(qe);
|
|
71
71
|
return n ?? r[e];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Dn(e, n) {
|
|
74
74
|
switch (e) {
|
|
75
75
|
case "ripple":
|
|
76
76
|
return /* @__PURE__ */ m(G, { children: [
|
|
@@ -100,43 +100,43 @@ function Ln(e, n) {
|
|
|
100
100
|
] });
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const s =
|
|
103
|
+
function xn({ variant: e = "arcs", size: n = "md", color: r, className: o }) {
|
|
104
|
+
const s = T("Loader", o);
|
|
105
105
|
return /* @__PURE__ */ t(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className: g(
|
|
108
|
+
className: g(ue.LoaderContainer, ue[n], ue[e], s),
|
|
109
109
|
role: "status",
|
|
110
110
|
"aria-label": "Loading",
|
|
111
111
|
style: r ? { "--chures-accent": r } : void 0,
|
|
112
|
-
children:
|
|
112
|
+
children: Dn(e, ue)
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
LoadingWrapperContainer:
|
|
118
|
-
SkeletonWrapper:
|
|
116
|
+
const Bn = "_LoadingWrapperContainer_1q0w7_1", En = "_SkeletonWrapper_1q0w7_9", Le = {
|
|
117
|
+
LoadingWrapperContainer: Bn,
|
|
118
|
+
SkeletonWrapper: En
|
|
119
119
|
};
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
return e ? r ? /* @__PURE__ */ t("div", { className: g(
|
|
120
|
+
function Jr({ isLoading: e, children: n, skeleton: r, loaderProps: o, className: s }) {
|
|
121
|
+
const a = T("LoadingWrapper", s);
|
|
122
|
+
return e ? r ? /* @__PURE__ */ t("div", { className: g(Le.SkeletonWrapper, a), children: r }) : /* @__PURE__ */ t("div", { className: g(Le.LoadingWrapperContainer, a), children: /* @__PURE__ */ t(xn, { ...o }) }) : /* @__PURE__ */ t(G, { children: n });
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
function
|
|
126
|
-
const { botId: n, redirectUri: r, requestAccess: o = "write" } = e, s =
|
|
124
|
+
const An = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
125
|
+
function Mn(e) {
|
|
126
|
+
const { botId: n, redirectUri: r, requestAccess: o = "write" } = e, s = R(e.onSuccess);
|
|
127
127
|
s.current = e.onSuccess;
|
|
128
|
-
const
|
|
129
|
-
|
|
128
|
+
const a = R(!1), [i, c] = k(!1), [d, u] = k(!1);
|
|
129
|
+
D(function() {
|
|
130
130
|
if (!n) return;
|
|
131
131
|
const _ = r ?? window.location.origin;
|
|
132
132
|
u(!0), c(!1);
|
|
133
133
|
const p = document.createElement("script");
|
|
134
|
-
return p.src =
|
|
134
|
+
return p.src = An, p.async = !0, p.onload = function() {
|
|
135
135
|
const v = window.Telegram;
|
|
136
136
|
v && (v.Login.init(
|
|
137
137
|
{ client_id: n, redirect_uri: _ },
|
|
138
|
-
function(
|
|
139
|
-
|
|
138
|
+
function(C) {
|
|
139
|
+
a.current || (a.current = !0, s.current(C));
|
|
140
140
|
}
|
|
141
141
|
), c(!0)), u(!1);
|
|
142
142
|
}, p.onerror = function() {
|
|
@@ -147,27 +147,27 @@ function An(e) {
|
|
|
147
147
|
}, [n, r]);
|
|
148
148
|
function l() {
|
|
149
149
|
const _ = window.Telegram;
|
|
150
|
-
if (!
|
|
151
|
-
|
|
150
|
+
if (!i || !_) return;
|
|
151
|
+
a.current = !1;
|
|
152
152
|
const p = r ?? window.location.origin;
|
|
153
153
|
_.Login.auth(
|
|
154
154
|
{ client_id: n, redirect_uri: p, request_access: o },
|
|
155
155
|
function(v) {
|
|
156
|
-
|
|
156
|
+
a.current || (a.current = !0, s.current(v));
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
return { login: l, isReady:
|
|
160
|
+
return { login: l, isReady: i, isLoading: d };
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
TelegramSignInButtonContainer:
|
|
164
|
-
FullSize:
|
|
165
|
-
Icon:
|
|
166
|
-
},
|
|
162
|
+
const Pn = "_TelegramSignInButtonContainer_10wun_1", On = "_FullSize_10wun_46", Wn = "_Icon_10wun_50", Ce = {
|
|
163
|
+
TelegramSignInButtonContainer: Pn,
|
|
164
|
+
FullSize: On,
|
|
165
|
+
Icon: Wn
|
|
166
|
+
}, Fn = {
|
|
167
167
|
en: "Continue with Telegram",
|
|
168
168
|
ru: "Войти через Telegram"
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function qn() {
|
|
171
171
|
return /* @__PURE__ */ t(
|
|
172
172
|
"svg",
|
|
173
173
|
{
|
|
@@ -176,45 +176,45 @@ function Fn() {
|
|
|
176
176
|
height: "20",
|
|
177
177
|
fill: "currentColor",
|
|
178
178
|
"aria-hidden": "true",
|
|
179
|
-
className:
|
|
179
|
+
className: Ce.Icon,
|
|
180
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" })
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Hn({
|
|
185
185
|
onClick: e,
|
|
186
186
|
disabled: n,
|
|
187
187
|
lang: r = "en",
|
|
188
188
|
title: o,
|
|
189
189
|
label: s,
|
|
190
|
-
fullSize:
|
|
191
|
-
className:
|
|
190
|
+
fullSize: a,
|
|
191
|
+
className: i
|
|
192
192
|
}) {
|
|
193
|
-
|
|
193
|
+
D(function() {
|
|
194
194
|
const l = "comfortaa-font";
|
|
195
195
|
if (document.getElementById(l)) return;
|
|
196
196
|
const _ = document.createElement("link");
|
|
197
197
|
_.id = l, _.rel = "stylesheet", _.href = "https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&display=swap", document.head.appendChild(_);
|
|
198
198
|
}, []);
|
|
199
|
-
const c = s ?? o ??
|
|
199
|
+
const c = s ?? o ?? Fn[r], d = T("TelegramSignInButton", i), u = g(Ce.TelegramSignInButtonContainer, { [Ce.FullSize]: a }, d);
|
|
200
200
|
return /* @__PURE__ */ m("button", { type: "button", className: u, onClick: e, disabled: n, children: [
|
|
201
|
-
/* @__PURE__ */ t(
|
|
201
|
+
/* @__PURE__ */ t(qn, {}),
|
|
202
202
|
c
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Zr({
|
|
206
206
|
botId: e,
|
|
207
207
|
onSuccess: n,
|
|
208
208
|
lang: r,
|
|
209
209
|
title: o,
|
|
210
210
|
redirectUri: s,
|
|
211
|
-
requestAccess:
|
|
212
|
-
children:
|
|
211
|
+
requestAccess: a,
|
|
212
|
+
children: i,
|
|
213
213
|
className: c
|
|
214
214
|
}) {
|
|
215
|
-
const { login: d, isReady: u } =
|
|
216
|
-
return
|
|
217
|
-
|
|
215
|
+
const { login: d, isReady: u } = Mn({ botId: e, onSuccess: n, redirectUri: s, requestAccess: a });
|
|
216
|
+
return i ? /* @__PURE__ */ t(G, { children: i({ login: d, isReady: u }) }) : /* @__PURE__ */ t(
|
|
217
|
+
Hn,
|
|
218
218
|
{
|
|
219
219
|
onClick: d,
|
|
220
220
|
disabled: !u,
|
|
@@ -224,11 +224,11 @@ function Vr({
|
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
const
|
|
227
|
+
let Un = 0;
|
|
228
|
+
const He = on((e, n) => ({
|
|
229
229
|
toasts: [],
|
|
230
230
|
bake: (r) => {
|
|
231
|
-
const o =
|
|
231
|
+
const o = Un++;
|
|
232
232
|
e((s) => ({ toasts: [...s.toasts, { ...r, id: o }] })), setTimeout(() => {
|
|
233
233
|
n().dismiss(o);
|
|
234
234
|
}, 5e3);
|
|
@@ -238,20 +238,20 @@ const qe = tn((e, n) => ({
|
|
|
238
238
|
toasts: o.toasts.filter((s) => s.id !== r)
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
241
|
-
})),
|
|
242
|
-
ToastContainer:
|
|
243
|
-
Toast:
|
|
241
|
+
})), Gn = "_ToastContainer_1tme2_1", $n = "_Toast_1tme2_1", jn = "_error_1tme2_33", Vn = "_warn_1tme2_41", zn = "_info_1tme2_49", Kn = "_Description_1tme2_53", Xn = "_DismissButton_1tme2_59", Qn = "_slideIn_1tme2_79", Yn = "_slideOut_1tme2_83", U = {
|
|
242
|
+
ToastContainer: Gn,
|
|
243
|
+
Toast: $n,
|
|
244
244
|
error: jn,
|
|
245
|
-
warn:
|
|
246
|
-
info:
|
|
247
|
-
Description:
|
|
248
|
-
DismissButton:
|
|
249
|
-
slideIn:
|
|
250
|
-
slideOut:
|
|
245
|
+
warn: Vn,
|
|
246
|
+
info: zn,
|
|
247
|
+
Description: Kn,
|
|
248
|
+
DismissButton: Xn,
|
|
249
|
+
slideIn: Qn,
|
|
250
|
+
slideOut: Yn
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
const { toasts: n } =
|
|
254
|
-
return /* @__PURE__ */ t("div", { className: g(U.ToastContainer, r), children: /* @__PURE__ */ t(
|
|
252
|
+
function es({ className: e } = {}) {
|
|
253
|
+
const { toasts: n } = He(), r = T("Toaster", e);
|
|
254
|
+
return /* @__PURE__ */ t("div", { className: g(U.ToastContainer, r), children: /* @__PURE__ */ t(he, { children: n.map((o) => /* @__PURE__ */ t(
|
|
255
255
|
ie.div,
|
|
256
256
|
{
|
|
257
257
|
layout: !0,
|
|
@@ -259,15 +259,15 @@ function zr({ className: e } = {}) {
|
|
|
259
259
|
animate: { opacity: 1, x: 0, y: 0 },
|
|
260
260
|
exit: { opacity: 0, y: -50 },
|
|
261
261
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
262
|
-
children: /* @__PURE__ */ t(
|
|
262
|
+
children: /* @__PURE__ */ t(Jn, { ...o })
|
|
263
263
|
},
|
|
264
264
|
o.id
|
|
265
265
|
)) }) });
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
const [
|
|
269
|
-
return
|
|
270
|
-
|
|
267
|
+
function Jn({ id: e, title: n, description: r, level: o, isDismissable: s }) {
|
|
268
|
+
const [a, i] = k(!1), c = He();
|
|
269
|
+
return D(() => () => {
|
|
270
|
+
i(!0);
|
|
271
271
|
}, []), /* @__PURE__ */ m(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
@@ -275,8 +275,8 @@ function Yn({ id: e, title: n, description: r, level: o, isDismissable: s }) {
|
|
|
275
275
|
[U.error]: o === "Error",
|
|
276
276
|
[U.warn]: o === "Warn",
|
|
277
277
|
[U.info]: o == null || o === "Info",
|
|
278
|
-
[U.slideIn]: !
|
|
279
|
-
[U.slideOut]:
|
|
278
|
+
[U.slideIn]: !a,
|
|
279
|
+
[U.slideOut]: a
|
|
280
280
|
}),
|
|
281
281
|
children: [
|
|
282
282
|
/* @__PURE__ */ t("div", { children: n }),
|
|
@@ -286,58 +286,58 @@ function Yn({ id: e, title: n, description: r, level: o, isDismissable: s }) {
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
InputContainer:
|
|
291
|
-
InputField:
|
|
292
|
-
hasStartIcon:
|
|
293
|
-
hasEndIcon:
|
|
294
|
-
StartIcon:
|
|
295
|
-
EndIcon:
|
|
296
|
-
hasError:
|
|
297
|
-
disabled:
|
|
289
|
+
const Zn = "_InputContainer_1uu20_15", et = "_InputField_1uu20_21", nt = "_hasStartIcon_1uu20_35", tt = "_hasEndIcon_1uu20_39", ot = "_StartIcon_1uu20_43", rt = "_EndIcon_1uu20_54", st = "_hasError_1uu20_69", at = "_disabled_1uu20_74", it = "_Label_1uu20_79", ct = "_lifted_1uu20_93", lt = "_ErrorText_1uu20_104", ut = "_Skeleton_1uu20_112", x = {
|
|
290
|
+
InputContainer: Zn,
|
|
291
|
+
InputField: et,
|
|
292
|
+
hasStartIcon: nt,
|
|
293
|
+
hasEndIcon: tt,
|
|
294
|
+
StartIcon: ot,
|
|
295
|
+
EndIcon: rt,
|
|
296
|
+
hasError: st,
|
|
297
|
+
disabled: at,
|
|
298
298
|
Label: it,
|
|
299
|
-
lifted:
|
|
300
|
-
ErrorText:
|
|
301
|
-
Skeleton:
|
|
302
|
-
},
|
|
303
|
-
const [
|
|
304
|
-
return s ? /* @__PURE__ */ t("div", { className: g(
|
|
305
|
-
l && /* @__PURE__ */ t("span", { className:
|
|
299
|
+
lifted: ct,
|
|
300
|
+
ErrorText: lt,
|
|
301
|
+
Skeleton: ut
|
|
302
|
+
}, dt = tn(function({ value: n, setValue: r, label: o, isLoader: s, type: a = "text", disabled: i, error: c, className: d, inputClassName: u, startIcon: l, endIcon: _, ...p }, v) {
|
|
303
|
+
const [C, b] = k(!1), M = C || n.length > 0, S = T("Input", d), { onFocus: P, onBlur: W, ...K } = p;
|
|
304
|
+
return s ? /* @__PURE__ */ t("div", { className: g(x.Skeleton, S), "aria-hidden": "true" }) : /* @__PURE__ */ m("div", { className: g(x.InputContainer, { [x.hasError]: !!c, [x.disabled]: i }, S), children: [
|
|
305
|
+
l && /* @__PURE__ */ t("span", { className: x.StartIcon, children: l }),
|
|
306
306
|
/* @__PURE__ */ t(
|
|
307
307
|
"input",
|
|
308
308
|
{
|
|
309
309
|
ref: v,
|
|
310
|
-
className: g(
|
|
311
|
-
type:
|
|
310
|
+
className: g(x.InputField, { [x.hasStartIcon]: !!l, [x.hasEndIcon]: !!_ }, u),
|
|
311
|
+
type: a,
|
|
312
312
|
value: n,
|
|
313
|
-
onChange: (
|
|
314
|
-
onFocus: (
|
|
315
|
-
|
|
313
|
+
onChange: (I) => r(I.target.value),
|
|
314
|
+
onFocus: (I) => {
|
|
315
|
+
b(!0), P?.(I);
|
|
316
316
|
},
|
|
317
|
-
onBlur: (
|
|
318
|
-
|
|
317
|
+
onBlur: (I) => {
|
|
318
|
+
b(!1), W?.(I);
|
|
319
319
|
},
|
|
320
|
-
disabled:
|
|
320
|
+
disabled: i,
|
|
321
321
|
...K
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
|
-
o && /* @__PURE__ */ t("label", { className: g(
|
|
325
|
-
_ && /* @__PURE__ */ t("span", { className:
|
|
326
|
-
c && /* @__PURE__ */ t("span", { className:
|
|
324
|
+
o && /* @__PURE__ */ t("label", { className: g(x.Label, { [x.lifted]: M }), children: o }),
|
|
325
|
+
_ && /* @__PURE__ */ t("span", { className: x.EndIcon, children: _ }),
|
|
326
|
+
c && /* @__PURE__ */ t("span", { className: x.ErrorText, children: c })
|
|
327
327
|
] });
|
|
328
|
-
}),
|
|
329
|
-
ToggleContainer:
|
|
330
|
-
disabled:
|
|
328
|
+
}), _t = "_ToggleContainer_1jetc_6", ht = "_disabled_1jetc_13", ft = "_Track_1jetc_18", mt = "_on_1jetc_31", pt = "_Thumb_1jetc_39", gt = "_Label_1jetc_57", vt = "_LabelSkeleton_1jetc_63", Ct = "_Skeleton_1jetc_78", O = {
|
|
329
|
+
ToggleContainer: _t,
|
|
330
|
+
disabled: ht,
|
|
331
331
|
Track: ft,
|
|
332
|
-
on:
|
|
333
|
-
Thumb:
|
|
334
|
-
Label:
|
|
335
|
-
LabelSkeleton:
|
|
336
|
-
Skeleton:
|
|
332
|
+
on: mt,
|
|
333
|
+
Thumb: pt,
|
|
334
|
+
Label: gt,
|
|
335
|
+
LabelSkeleton: vt,
|
|
336
|
+
Skeleton: Ct
|
|
337
337
|
};
|
|
338
|
-
function
|
|
339
|
-
const d = !!r ||
|
|
340
|
-
return
|
|
338
|
+
function ns({ checked: e, onChange: n, label: r, labelPosition: o = "right", disabled: s, isLoader: a, isLoadingLabel: i, className: c }) {
|
|
339
|
+
const d = !!r || i, u = T("Toggle", c), l = i ? /* @__PURE__ */ t("span", { className: O.LabelSkeleton, "aria-hidden": "true" }) : r ? /* @__PURE__ */ t("span", { className: O.Label, children: r }) : null;
|
|
340
|
+
return a ? d ? /* @__PURE__ */ m("div", { className: g(O.ToggleContainer, u), children: [
|
|
341
341
|
o === "left" && l,
|
|
342
342
|
/* @__PURE__ */ t("div", { className: O.Skeleton, "aria-hidden": "true" }),
|
|
343
343
|
o === "right" && l
|
|
@@ -358,110 +358,152 @@ function Kr({ checked: e, onChange: n, label: r, labelPosition: o = "right", dis
|
|
|
358
358
|
o === "right" && l
|
|
359
359
|
] });
|
|
360
360
|
}
|
|
361
|
-
function wt() {
|
|
362
|
-
|
|
361
|
+
function wt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
|
|
362
|
+
return /* @__PURE__ */ t(
|
|
363
|
+
"svg",
|
|
364
|
+
{
|
|
365
|
+
viewBox: "0 0 24 24",
|
|
366
|
+
width: e,
|
|
367
|
+
height: e,
|
|
368
|
+
fill: "none",
|
|
369
|
+
stroke: "currentColor",
|
|
370
|
+
strokeWidth: n,
|
|
371
|
+
strokeLinecap: "round",
|
|
372
|
+
strokeLinejoin: "round",
|
|
373
|
+
style: r ? { flexShrink: 0 } : void 0,
|
|
374
|
+
children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" })
|
|
375
|
+
}
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
const yt = "_CheckboxContainer_14vl9_4", Nt = "_disabled_14vl9_12", kt = "_BoxWrapper_14vl9_17", It = "_Box_14vl9_17", bt = "_Label_14vl9_62", se = {
|
|
379
|
+
CheckboxContainer: yt,
|
|
380
|
+
disabled: Nt,
|
|
381
|
+
BoxWrapper: kt,
|
|
382
|
+
Box: It,
|
|
383
|
+
Label: bt
|
|
384
|
+
};
|
|
385
|
+
function ts({ checked: e, onChange: n, label: r, disabled: o, className: s }) {
|
|
386
|
+
const a = T("Checkbox", s);
|
|
387
|
+
return /* @__PURE__ */ m("label", { className: g(se.CheckboxContainer, { [se.disabled]: o }, a), children: [
|
|
388
|
+
/* @__PURE__ */ m("span", { className: se.BoxWrapper, children: [
|
|
389
|
+
/* @__PURE__ */ t(
|
|
390
|
+
"input",
|
|
391
|
+
{
|
|
392
|
+
type: "checkbox",
|
|
393
|
+
checked: e,
|
|
394
|
+
onChange: (i) => n(i.target.checked),
|
|
395
|
+
disabled: o
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
/* @__PURE__ */ t("span", { className: se.Box, children: /* @__PURE__ */ t(wt, { size: 11, strokeWidth: 3, shrink: !1 }) })
|
|
399
|
+
] }),
|
|
400
|
+
r && /* @__PURE__ */ t("span", { className: se.Label, children: r })
|
|
401
|
+
] });
|
|
402
|
+
}
|
|
403
|
+
function St() {
|
|
404
|
+
const [e, n] = k(!1), r = R(null), o = B(() => n((a) => !a), []), s = B(() => n(!1), []);
|
|
363
405
|
return { isOpen: e, triggerRef: r, toggleOpen: o, close: s };
|
|
364
406
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
function o(
|
|
368
|
-
const
|
|
369
|
-
e.current?.contains(
|
|
407
|
+
function Rt(e, n, r) {
|
|
408
|
+
D(() => {
|
|
409
|
+
function o(a) {
|
|
410
|
+
const i = a.target;
|
|
411
|
+
e.current?.contains(i) || r?.current?.contains(i) || n();
|
|
370
412
|
}
|
|
371
|
-
function s(
|
|
372
|
-
|
|
413
|
+
function s(a) {
|
|
414
|
+
a.key === "Escape" && n();
|
|
373
415
|
}
|
|
374
416
|
return document.addEventListener("mousedown", o, !0), document.addEventListener("keydown", s), () => {
|
|
375
417
|
document.removeEventListener("mousedown", o, !0), document.removeEventListener("keydown", s);
|
|
376
418
|
};
|
|
377
419
|
}, [n, e, r]);
|
|
378
420
|
}
|
|
379
|
-
function
|
|
380
|
-
const [r, o] =
|
|
381
|
-
return
|
|
421
|
+
function Tt(e, n) {
|
|
422
|
+
const [r, o] = k([]);
|
|
423
|
+
return D(() => {
|
|
382
424
|
if (!n) return;
|
|
383
425
|
let s = !1;
|
|
384
|
-
return n(e).then((
|
|
385
|
-
s || o(
|
|
426
|
+
return n(e).then((a) => {
|
|
427
|
+
s || o(a);
|
|
386
428
|
}), () => {
|
|
387
429
|
s = !0;
|
|
388
430
|
};
|
|
389
431
|
}, [e, n]), r;
|
|
390
432
|
}
|
|
391
|
-
function
|
|
433
|
+
function ae(e) {
|
|
392
434
|
return typeof e == "object" && e !== null && "group" in e;
|
|
393
435
|
}
|
|
394
|
-
function
|
|
395
|
-
return e.flatMap((n) =>
|
|
436
|
+
function Ue(e) {
|
|
437
|
+
return e.flatMap((n) => ae(n) ? n.options : [n]);
|
|
396
438
|
}
|
|
397
|
-
function
|
|
439
|
+
function E(e) {
|
|
398
440
|
return typeof e == "string" ? e : e.id;
|
|
399
441
|
}
|
|
400
442
|
function fe(e) {
|
|
401
443
|
return typeof e == "string" ? e : e.name;
|
|
402
444
|
}
|
|
403
|
-
function
|
|
445
|
+
function Ge(e) {
|
|
404
446
|
return typeof e == "string" ? !1 : !!e.disabled;
|
|
405
447
|
}
|
|
406
|
-
function
|
|
448
|
+
function Lt(e) {
|
|
407
449
|
return typeof e == "string" ? void 0 : e.title;
|
|
408
450
|
}
|
|
409
|
-
function
|
|
410
|
-
return e.map((r) => n.find((o) =>
|
|
411
|
-
}
|
|
412
|
-
const
|
|
413
|
-
DropdownContainer:
|
|
414
|
-
PanelWrapper:
|
|
415
|
-
Portal:
|
|
416
|
-
PanelContainer:
|
|
417
|
-
Glass:
|
|
418
|
-
Label:
|
|
419
|
-
lifted:
|
|
420
|
-
TriggerContainer:
|
|
421
|
-
Open:
|
|
422
|
-
TriggerPlaceholder:
|
|
423
|
-
TriggerValue:
|
|
424
|
-
TriggerIcon:
|
|
425
|
-
ChipsWrapper:
|
|
426
|
-
Expand:
|
|
427
|
-
MultiSelect:
|
|
428
|
-
ExpandHeight:
|
|
429
|
-
RichValue:
|
|
430
|
-
TriggerValueRich:
|
|
431
|
-
Chip:
|
|
432
|
-
SearchRow:
|
|
433
|
-
SearchBox:
|
|
434
|
-
SearchIcon:
|
|
435
|
-
SearchInput:
|
|
436
|
-
ResultsList:
|
|
437
|
-
OptionRow:
|
|
438
|
-
Selected:
|
|
439
|
-
Indented:
|
|
440
|
-
Disabled:
|
|
441
|
-
GroupHeader:
|
|
442
|
-
Checkmark:
|
|
443
|
-
CreateRow:
|
|
444
|
-
WithBorder:
|
|
445
|
-
CreateIcon:
|
|
446
|
-
CreateLabel:
|
|
447
|
-
EmptyHint:
|
|
448
|
-
SkeletonRow:
|
|
451
|
+
function Dt(e, n) {
|
|
452
|
+
return e.map((r) => n.find((o) => E(o) === r) ?? r);
|
|
453
|
+
}
|
|
454
|
+
const xt = "_DropdownContainer_c0vws_13", Bt = "_PanelWrapper_c0vws_20", Et = "_Portal_c0vws_34", At = "_PanelContainer_c0vws_18", Mt = "_Glass_c0vws_48", Pt = "_Label_c0vws_54", Ot = "_lifted_c0vws_68", Wt = "_TriggerContainer_c0vws_75", Ft = "_Open_c0vws_99", qt = "_TriggerPlaceholder_c0vws_104", Ht = "_TriggerValue_c0vws_112", Ut = "_TriggerIcon_c0vws_120", Gt = "_ChipsWrapper_c0vws_127", $t = "_Expand_c0vws_145", jt = "_MultiSelect_c0vws_151", Vt = "_ExpandHeight_c0vws_156", zt = "_RichValue_c0vws_161", Kt = "_TriggerValueRich_c0vws_167", Xt = "_Chip_c0vws_127", Qt = "_SearchRow_c0vws_187", Yt = "_SearchBox_c0vws_192", Jt = "_SearchIcon_c0vws_202", Zt = "_SearchInput_c0vws_209", eo = "_ResultsList_c0vws_223", no = "_OptionRow_c0vws_228", to = "_Selected_c0vws_243", oo = "_Indented_c0vws_247", ro = "_Disabled_c0vws_251", so = "_GroupHeader_c0vws_262", ao = "_Checkmark_c0vws_275", io = "_CreateRow_c0vws_281", co = "_WithBorder_c0vws_294", lo = "_CreateIcon_c0vws_299", uo = "_CreateLabel_c0vws_311", _o = "_EmptyHint_c0vws_317", ho = "_SkeletonRow_c0vws_324", h = {
|
|
455
|
+
DropdownContainer: xt,
|
|
456
|
+
PanelWrapper: Bt,
|
|
457
|
+
Portal: Et,
|
|
458
|
+
PanelContainer: At,
|
|
459
|
+
Glass: Mt,
|
|
460
|
+
Label: Pt,
|
|
461
|
+
lifted: Ot,
|
|
462
|
+
TriggerContainer: Wt,
|
|
463
|
+
Open: Ft,
|
|
464
|
+
TriggerPlaceholder: qt,
|
|
465
|
+
TriggerValue: Ht,
|
|
466
|
+
TriggerIcon: Ut,
|
|
467
|
+
ChipsWrapper: Gt,
|
|
468
|
+
Expand: $t,
|
|
469
|
+
MultiSelect: jt,
|
|
470
|
+
ExpandHeight: Vt,
|
|
471
|
+
RichValue: zt,
|
|
472
|
+
TriggerValueRich: Kt,
|
|
473
|
+
Chip: Xt,
|
|
474
|
+
SearchRow: Qt,
|
|
475
|
+
SearchBox: Yt,
|
|
476
|
+
SearchIcon: Jt,
|
|
477
|
+
SearchInput: Zt,
|
|
478
|
+
ResultsList: eo,
|
|
479
|
+
OptionRow: no,
|
|
480
|
+
Selected: to,
|
|
481
|
+
Indented: oo,
|
|
482
|
+
Disabled: ro,
|
|
483
|
+
GroupHeader: so,
|
|
484
|
+
Checkmark: ao,
|
|
485
|
+
CreateRow: io,
|
|
486
|
+
WithBorder: co,
|
|
487
|
+
CreateIcon: lo,
|
|
488
|
+
CreateLabel: uo,
|
|
489
|
+
EmptyHint: _o,
|
|
490
|
+
SkeletonRow: ho
|
|
449
491
|
};
|
|
450
|
-
function
|
|
492
|
+
function fo({ query: e, withBorder: n, onCreate: r }) {
|
|
451
493
|
function o(s) {
|
|
452
494
|
s.preventDefault(), r();
|
|
453
495
|
}
|
|
454
496
|
return /* @__PURE__ */ m(
|
|
455
497
|
"div",
|
|
456
498
|
{
|
|
457
|
-
className: g(
|
|
499
|
+
className: g(h.CreateRow, n && h.WithBorder),
|
|
458
500
|
onMouseDown: o,
|
|
459
501
|
children: [
|
|
460
|
-
/* @__PURE__ */ t("span", { className:
|
|
502
|
+
/* @__PURE__ */ t("span", { className: h.CreateIcon, children: /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
|
|
461
503
|
/* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
|
|
462
504
|
/* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
|
|
463
505
|
] }) }),
|
|
464
|
-
/* @__PURE__ */ m("span", { className:
|
|
506
|
+
/* @__PURE__ */ m("span", { className: h.CreateLabel, children: [
|
|
465
507
|
"create “",
|
|
466
508
|
e,
|
|
467
509
|
"”"
|
|
@@ -470,49 +512,49 @@ function io({ query: e, withBorder: n, onCreate: r }) {
|
|
|
470
512
|
}
|
|
471
513
|
);
|
|
472
514
|
}
|
|
473
|
-
function
|
|
474
|
-
function s(
|
|
475
|
-
|
|
515
|
+
function mo({ label: e, icon: n, withBorder: r, onAction: o }) {
|
|
516
|
+
function s(a) {
|
|
517
|
+
a.preventDefault(), o();
|
|
476
518
|
}
|
|
477
519
|
return /* @__PURE__ */ m(
|
|
478
520
|
"div",
|
|
479
521
|
{
|
|
480
|
-
className: g(
|
|
522
|
+
className: g(h.CreateRow, r && h.WithBorder),
|
|
481
523
|
onMouseDown: s,
|
|
482
524
|
children: [
|
|
483
|
-
/* @__PURE__ */ t("span", { className:
|
|
525
|
+
/* @__PURE__ */ t("span", { className: h.CreateIcon, children: n ?? /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
|
|
484
526
|
/* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
|
|
485
527
|
/* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
|
|
486
528
|
] }) }),
|
|
487
|
-
/* @__PURE__ */ t("span", { className:
|
|
529
|
+
/* @__PURE__ */ t("span", { className: h.CreateLabel, children: e })
|
|
488
530
|
]
|
|
489
531
|
}
|
|
490
532
|
);
|
|
491
533
|
}
|
|
492
|
-
function
|
|
493
|
-
return /* @__PURE__ */ t("div", { className:
|
|
534
|
+
function po({ label: e }) {
|
|
535
|
+
return /* @__PURE__ */ t("div", { className: h.GroupHeader, children: e });
|
|
494
536
|
}
|
|
495
|
-
function
|
|
496
|
-
const
|
|
497
|
-
function
|
|
498
|
-
c.preventDefault(), !
|
|
537
|
+
function De({ opt: e, isSelected: n, multiSelect: r, onPick: o, indented: s = !1 }) {
|
|
538
|
+
const a = Ge(e);
|
|
539
|
+
function i(c) {
|
|
540
|
+
c.preventDefault(), !a && o(e);
|
|
499
541
|
}
|
|
500
542
|
return /* @__PURE__ */ m(
|
|
501
543
|
"div",
|
|
502
544
|
{
|
|
503
|
-
className: g(
|
|
504
|
-
onMouseDown:
|
|
505
|
-
title:
|
|
545
|
+
className: g(h.OptionRow, n && h.Selected, s && h.Indented, a && h.Disabled),
|
|
546
|
+
onMouseDown: i,
|
|
547
|
+
title: Lt(e),
|
|
506
548
|
children: [
|
|
507
|
-
r && n && /* @__PURE__ */ t("span", { className:
|
|
549
|
+
r && n && /* @__PURE__ */ t("span", { className: h.Checkmark, children: "✓" }),
|
|
508
550
|
fe(e)
|
|
509
551
|
]
|
|
510
552
|
}
|
|
511
553
|
);
|
|
512
554
|
}
|
|
513
|
-
function
|
|
514
|
-
return /* @__PURE__ */ t("div", { className:
|
|
515
|
-
/* @__PURE__ */ t("span", { className:
|
|
555
|
+
function go({ inputRef: e, query: n, onChange: r, onKeyDown: o, placeholder: s }) {
|
|
556
|
+
return /* @__PURE__ */ t("div", { className: h.SearchRow, children: /* @__PURE__ */ m("div", { className: h.SearchBox, children: [
|
|
557
|
+
/* @__PURE__ */ t("span", { className: h.SearchIcon, children: /* @__PURE__ */ m("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
|
|
516
558
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
517
559
|
/* @__PURE__ */ t("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
|
|
518
560
|
] }) }),
|
|
@@ -520,7 +562,7 @@ function lo({ inputRef: e, query: n, onChange: r, onKeyDown: o, placeholder: s }
|
|
|
520
562
|
"input",
|
|
521
563
|
{
|
|
522
564
|
ref: e,
|
|
523
|
-
className:
|
|
565
|
+
className: h.SearchInput,
|
|
524
566
|
value: n,
|
|
525
567
|
onChange: r,
|
|
526
568
|
onKeyDown: o,
|
|
@@ -529,17 +571,17 @@ function lo({ inputRef: e, query: n, onChange: r, onKeyDown: o, placeholder: s }
|
|
|
529
571
|
)
|
|
530
572
|
] }) });
|
|
531
573
|
}
|
|
532
|
-
function
|
|
533
|
-
return /* @__PURE__ */ t(G, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ t("div", { className:
|
|
574
|
+
function vo({ count: e }) {
|
|
575
|
+
return /* @__PURE__ */ t(G, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ t("div", { className: h.SkeletonRow }, r)) });
|
|
534
576
|
}
|
|
535
|
-
function
|
|
577
|
+
function Co({
|
|
536
578
|
onSearch: e,
|
|
537
579
|
onCreate: n,
|
|
538
580
|
onPick: r,
|
|
539
581
|
onClose: o,
|
|
540
582
|
anchorRef: s,
|
|
541
|
-
placeholder:
|
|
542
|
-
options:
|
|
583
|
+
placeholder: a,
|
|
584
|
+
options: i = [],
|
|
543
585
|
excluded: c = [],
|
|
544
586
|
selected: d = [],
|
|
545
587
|
multiSelect: u = !1,
|
|
@@ -547,129 +589,129 @@ function _o({
|
|
|
547
589
|
isLoading: _ = !1,
|
|
548
590
|
emptyHint: p = "no results found",
|
|
549
591
|
skeletonRowCount: v = 4,
|
|
550
|
-
onError:
|
|
551
|
-
glass:
|
|
592
|
+
onError: C = console.error,
|
|
593
|
+
glass: b = !1,
|
|
552
594
|
portal: M = !0,
|
|
553
|
-
renderOption:
|
|
595
|
+
renderOption: S,
|
|
554
596
|
footerAction: P
|
|
555
597
|
}) {
|
|
556
|
-
const [W, K] =
|
|
557
|
-
|
|
558
|
-
const A =
|
|
598
|
+
const [W, K] = k(""), [I, X] = k(!1), [L, Q] = k(null), $ = R(null), Y = R(null), w = !!e, N = Tt(W, e);
|
|
599
|
+
Rt(Y, o, s);
|
|
600
|
+
const A = b || M;
|
|
559
601
|
Ie(() => {
|
|
560
602
|
if (!A) return;
|
|
561
|
-
function
|
|
603
|
+
function f() {
|
|
562
604
|
s?.current && Q(s.current.getBoundingClientRect());
|
|
563
605
|
}
|
|
564
|
-
return
|
|
565
|
-
window.removeEventListener("scroll",
|
|
606
|
+
return f(), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
|
|
607
|
+
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
|
|
566
608
|
};
|
|
567
|
-
}, [A, s]),
|
|
568
|
-
|
|
569
|
-
}, [
|
|
570
|
-
const re = (e ? N :
|
|
571
|
-
if (
|
|
572
|
-
const F =
|
|
573
|
-
return F.length > 0 ? [{ ...
|
|
609
|
+
}, [A, s]), D(() => {
|
|
610
|
+
w && $.current?.focus();
|
|
611
|
+
}, [w]);
|
|
612
|
+
const re = (e ? N : i).flatMap((f) => {
|
|
613
|
+
if (ae(f)) {
|
|
614
|
+
const F = f.options.filter((nn) => !c.includes(E(nn)));
|
|
615
|
+
return F.length > 0 ? [{ ...f, options: F }] : [];
|
|
574
616
|
}
|
|
575
|
-
return c.includes(
|
|
576
|
-
}),
|
|
577
|
-
...re.filter((
|
|
578
|
-
...re.filter((
|
|
579
|
-
] : re,
|
|
580
|
-
(
|
|
617
|
+
return c.includes(E(f)) ? [] : [f];
|
|
618
|
+
}), le = l ? [
|
|
619
|
+
...re.filter((f) => !ae(f) && d.includes(E(f))),
|
|
620
|
+
...re.filter((f) => ae(f) || !d.includes(E(f)))
|
|
621
|
+
] : re, j = Ue(le), J = W.trim(), ee = j.some(
|
|
622
|
+
(f) => fe(f).toLowerCase() === J.toLowerCase()
|
|
581
623
|
), ne = !!n && J.length > 0 && !ee;
|
|
582
624
|
async function Se() {
|
|
583
|
-
!J ||
|
|
625
|
+
!J || I || !n || (X(!0), n(J).then(te).catch(C).finally(() => X(!1)));
|
|
584
626
|
}
|
|
585
|
-
function te(
|
|
586
|
-
|
|
627
|
+
function te(f) {
|
|
628
|
+
Ge(f) || (r(f), u || o());
|
|
587
629
|
}
|
|
588
|
-
function
|
|
630
|
+
function Ye() {
|
|
589
631
|
P?.onAction(), o();
|
|
590
632
|
}
|
|
591
|
-
function
|
|
592
|
-
K(
|
|
633
|
+
function Je(f) {
|
|
634
|
+
K(f.target.value);
|
|
593
635
|
}
|
|
594
|
-
function
|
|
595
|
-
|
|
636
|
+
function Ze(f) {
|
|
637
|
+
f.key === "Enter" && (f.preventDefault(), j.length > 0 ? te(j[0]) : ne && Se());
|
|
596
638
|
}
|
|
597
|
-
const
|
|
598
|
-
if (A && !
|
|
639
|
+
const en = a ?? (n ? "search or add new…" : "search…");
|
|
640
|
+
if (A && !L) return null;
|
|
599
641
|
const Re = /* @__PURE__ */ t(
|
|
600
642
|
"div",
|
|
601
643
|
{
|
|
602
644
|
ref: Y,
|
|
603
|
-
className: g(
|
|
604
|
-
style: A &&
|
|
605
|
-
children: /* @__PURE__ */ m("div", { className: g(
|
|
606
|
-
|
|
607
|
-
|
|
645
|
+
className: g(h.PanelWrapper, { [h.Portal]: A }),
|
|
646
|
+
style: A && L ? { top: L.bottom, left: L.left, width: L.width } : void 0,
|
|
647
|
+
children: /* @__PURE__ */ m("div", { className: g(h.PanelContainer, { [h.Glass]: b }), children: [
|
|
648
|
+
w && /* @__PURE__ */ t(
|
|
649
|
+
go,
|
|
608
650
|
{
|
|
609
|
-
inputRef:
|
|
651
|
+
inputRef: $,
|
|
610
652
|
query: W,
|
|
611
|
-
onChange:
|
|
612
|
-
onKeyDown:
|
|
613
|
-
placeholder:
|
|
653
|
+
onChange: Je,
|
|
654
|
+
onKeyDown: Ze,
|
|
655
|
+
placeholder: en
|
|
614
656
|
}
|
|
615
657
|
),
|
|
616
|
-
/* @__PURE__ */ t("div", { className:
|
|
617
|
-
|
|
618
|
-
/* @__PURE__ */ t(
|
|
619
|
-
|
|
620
|
-
isSelected: d.includes(
|
|
658
|
+
/* @__PURE__ */ t("div", { className: h.ResultsList, children: _ ? /* @__PURE__ */ t(vo, { count: v }) : /* @__PURE__ */ m(G, { children: [
|
|
659
|
+
le.map((f) => ae(f) ? /* @__PURE__ */ m(pe, { children: [
|
|
660
|
+
/* @__PURE__ */ t(po, { label: f.group }),
|
|
661
|
+
f.options.map((F) => /* @__PURE__ */ t(pe, { children: S ? S(F, {
|
|
662
|
+
isSelected: d.includes(E(F)),
|
|
621
663
|
multiSelect: u,
|
|
622
664
|
indented: !0,
|
|
623
665
|
onPick: () => te(F)
|
|
624
666
|
}) : /* @__PURE__ */ t(
|
|
625
|
-
|
|
667
|
+
De,
|
|
626
668
|
{
|
|
627
669
|
opt: F,
|
|
628
|
-
isSelected: d.includes(
|
|
670
|
+
isSelected: d.includes(E(F)),
|
|
629
671
|
multiSelect: u,
|
|
630
672
|
onPick: te,
|
|
631
673
|
indented: !0
|
|
632
674
|
}
|
|
633
|
-
) },
|
|
634
|
-
] }, `group:${
|
|
635
|
-
isSelected: d.includes(
|
|
675
|
+
) }, E(F)))
|
|
676
|
+
] }, `group:${f.group}`) : /* @__PURE__ */ t(pe, { children: S ? S(f, {
|
|
677
|
+
isSelected: d.includes(E(f)),
|
|
636
678
|
multiSelect: u,
|
|
637
679
|
indented: !1,
|
|
638
|
-
onPick: () => te(
|
|
680
|
+
onPick: () => te(f)
|
|
639
681
|
}) : /* @__PURE__ */ t(
|
|
640
|
-
|
|
682
|
+
De,
|
|
641
683
|
{
|
|
642
|
-
opt:
|
|
643
|
-
isSelected: d.includes(
|
|
684
|
+
opt: f,
|
|
685
|
+
isSelected: d.includes(E(f)),
|
|
644
686
|
multiSelect: u,
|
|
645
687
|
onPick: te
|
|
646
688
|
}
|
|
647
|
-
) },
|
|
689
|
+
) }, E(f))),
|
|
648
690
|
ne && /* @__PURE__ */ t(
|
|
649
|
-
|
|
691
|
+
fo,
|
|
650
692
|
{
|
|
651
693
|
query: J,
|
|
652
|
-
withBorder:
|
|
694
|
+
withBorder: j.length > 0,
|
|
653
695
|
onCreate: Se
|
|
654
696
|
}
|
|
655
697
|
),
|
|
656
|
-
|
|
698
|
+
j.length === 0 && !ne && /* @__PURE__ */ t("div", { className: h.EmptyHint, children: p }),
|
|
657
699
|
P && /* @__PURE__ */ t(
|
|
658
|
-
|
|
700
|
+
mo,
|
|
659
701
|
{
|
|
660
702
|
label: P.label,
|
|
661
703
|
icon: P.icon,
|
|
662
|
-
withBorder:
|
|
663
|
-
onAction:
|
|
704
|
+
withBorder: j.length > 0 || ne,
|
|
705
|
+
onAction: Ye
|
|
664
706
|
}
|
|
665
707
|
)
|
|
666
708
|
] }) })
|
|
667
709
|
] })
|
|
668
710
|
}
|
|
669
711
|
);
|
|
670
|
-
return A ?
|
|
712
|
+
return A ? be(Re, document.body) : Re;
|
|
671
713
|
}
|
|
672
|
-
function
|
|
714
|
+
function wo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
673
715
|
return /* @__PURE__ */ t(
|
|
674
716
|
"svg",
|
|
675
717
|
{
|
|
@@ -686,24 +728,7 @@ function fo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
686
728
|
}
|
|
687
729
|
);
|
|
688
730
|
}
|
|
689
|
-
function
|
|
690
|
-
return /* @__PURE__ */ t(
|
|
691
|
-
"svg",
|
|
692
|
-
{
|
|
693
|
-
viewBox: "0 0 24 24",
|
|
694
|
-
width: e,
|
|
695
|
-
height: e,
|
|
696
|
-
fill: "none",
|
|
697
|
-
stroke: "currentColor",
|
|
698
|
-
strokeWidth: n,
|
|
699
|
-
strokeLinecap: "round",
|
|
700
|
-
strokeLinejoin: "round",
|
|
701
|
-
style: r ? { flexShrink: 0 } : void 0,
|
|
702
|
-
children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" })
|
|
703
|
-
}
|
|
704
|
-
);
|
|
705
|
-
}
|
|
706
|
-
function Qr() {
|
|
731
|
+
function os() {
|
|
707
732
|
return /* @__PURE__ */ m(
|
|
708
733
|
"svg",
|
|
709
734
|
{
|
|
@@ -722,7 +747,7 @@ function Qr() {
|
|
|
722
747
|
}
|
|
723
748
|
);
|
|
724
749
|
}
|
|
725
|
-
function
|
|
750
|
+
function rs() {
|
|
726
751
|
return /* @__PURE__ */ m(
|
|
727
752
|
"svg",
|
|
728
753
|
{
|
|
@@ -741,7 +766,7 @@ function Yr() {
|
|
|
741
766
|
}
|
|
742
767
|
);
|
|
743
768
|
}
|
|
744
|
-
function
|
|
769
|
+
function yo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
745
770
|
return /* @__PURE__ */ m(
|
|
746
771
|
"svg",
|
|
747
772
|
{
|
|
@@ -761,47 +786,47 @@ function ho({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
761
786
|
}
|
|
762
787
|
);
|
|
763
788
|
}
|
|
764
|
-
function
|
|
789
|
+
function No({
|
|
765
790
|
triggerRef: e,
|
|
766
791
|
isOpen: n,
|
|
767
792
|
onClick: r,
|
|
768
793
|
selectedOptions: o,
|
|
769
794
|
multiSelect: s,
|
|
770
|
-
placeholder:
|
|
771
|
-
onOverflow:
|
|
795
|
+
placeholder: a,
|
|
796
|
+
onOverflow: i = "scroll",
|
|
772
797
|
renderValue: c
|
|
773
798
|
}) {
|
|
774
|
-
const d =
|
|
799
|
+
const d = i === "expand", u = !!c && !s && o.length === 1;
|
|
775
800
|
return /* @__PURE__ */ m(
|
|
776
801
|
"button",
|
|
777
802
|
{
|
|
778
803
|
type: "button",
|
|
779
804
|
ref: e,
|
|
780
805
|
className: g(
|
|
781
|
-
|
|
782
|
-
n &&
|
|
783
|
-
s &&
|
|
784
|
-
d &&
|
|
785
|
-
u &&
|
|
806
|
+
h.TriggerContainer,
|
|
807
|
+
n && h.Open,
|
|
808
|
+
s && h.MultiSelect,
|
|
809
|
+
d && h.ExpandHeight,
|
|
810
|
+
u && h.RichValue
|
|
786
811
|
),
|
|
787
812
|
onClick: r,
|
|
788
813
|
"aria-expanded": n,
|
|
789
814
|
"aria-haspopup": "listbox",
|
|
790
815
|
children: [
|
|
791
|
-
s && o.length > 0 ? /* @__PURE__ */ t("div", { className: g(
|
|
792
|
-
/* @__PURE__ */ t("span", { className:
|
|
816
|
+
s && o.length > 0 ? /* @__PURE__ */ t("div", { className: g(h.ChipsWrapper, d && h.Expand), children: o.map((l, _) => /* @__PURE__ */ t("span", { className: h.Chip, children: c ? c(l) : fe(l) }, _)) }) : u ? /* @__PURE__ */ t("div", { className: h.TriggerValueRich, children: c(o[0]) }) : /* @__PURE__ */ t("span", { className: o.length === 0 ? h.TriggerPlaceholder : h.TriggerValue, children: o.length === 0 ? a : o.map(fe).join(", ") }),
|
|
817
|
+
/* @__PURE__ */ t("span", { className: h.TriggerIcon, children: /* @__PURE__ */ t(wo, { size: 12 }) })
|
|
793
818
|
]
|
|
794
819
|
}
|
|
795
820
|
);
|
|
796
821
|
}
|
|
797
|
-
function
|
|
822
|
+
function ss({
|
|
798
823
|
options: e = [],
|
|
799
824
|
value: n,
|
|
800
825
|
onChange: r,
|
|
801
826
|
onSearch: o,
|
|
802
827
|
onCreate: s,
|
|
803
|
-
excluded:
|
|
804
|
-
multiSelect:
|
|
828
|
+
excluded: a,
|
|
829
|
+
multiSelect: i = !1,
|
|
805
830
|
selectedAtTop: c = !1,
|
|
806
831
|
onOverflow: d = "scroll",
|
|
807
832
|
label: u,
|
|
@@ -809,129 +834,129 @@ function Jr({
|
|
|
809
834
|
searchPlaceholder: _,
|
|
810
835
|
emptyHint: p,
|
|
811
836
|
isLoading: v,
|
|
812
|
-
skeletonRowCount:
|
|
813
|
-
onError:
|
|
837
|
+
skeletonRowCount: C,
|
|
838
|
+
onError: b,
|
|
814
839
|
className: M,
|
|
815
|
-
glass:
|
|
840
|
+
glass: S = !1,
|
|
816
841
|
portal: P = !0,
|
|
817
842
|
renderOption: W,
|
|
818
843
|
renderValue: K,
|
|
819
|
-
footerAction:
|
|
844
|
+
footerAction: I,
|
|
820
845
|
children: X
|
|
821
846
|
}) {
|
|
822
|
-
const { isOpen:
|
|
823
|
-
function
|
|
824
|
-
const ee =
|
|
847
|
+
const { isOpen: L, triggerRef: Q, toggleOpen: $, close: Y } = St(), w = T("Dropdown", M), N = Dt(n, Ue(e)), A = L || N.length > 0, re = u && !A ? "" : l;
|
|
848
|
+
function le(J) {
|
|
849
|
+
const ee = E(J);
|
|
825
850
|
r(
|
|
826
|
-
|
|
851
|
+
i ? n.includes(ee) ? n.filter((ne) => ne !== ee) : [...n, ee] : [ee]
|
|
827
852
|
);
|
|
828
853
|
}
|
|
829
|
-
const
|
|
854
|
+
const j = {
|
|
830
855
|
ref: Q,
|
|
831
|
-
onClick:
|
|
832
|
-
"aria-expanded":
|
|
856
|
+
onClick: $,
|
|
857
|
+
"aria-expanded": L,
|
|
833
858
|
"aria-haspopup": "listbox"
|
|
834
859
|
};
|
|
835
|
-
return /* @__PURE__ */ m("div", { className: g(
|
|
836
|
-
u && /* @__PURE__ */ t("label", { className: g(
|
|
837
|
-
X ? X({ selectedOptions: N, isOpen:
|
|
838
|
-
|
|
860
|
+
return /* @__PURE__ */ m("div", { className: g(h.DropdownContainer, w), children: [
|
|
861
|
+
u && /* @__PURE__ */ t("label", { className: g(h.Label, { [h.lifted]: A }), children: u }),
|
|
862
|
+
X ? X({ selectedOptions: N, isOpen: L, toggleOpen: $, close: Y, triggerProps: j }) : /* @__PURE__ */ t(
|
|
863
|
+
No,
|
|
839
864
|
{
|
|
840
865
|
triggerRef: Q,
|
|
841
|
-
isOpen:
|
|
842
|
-
onClick:
|
|
866
|
+
isOpen: L,
|
|
867
|
+
onClick: $,
|
|
843
868
|
selectedOptions: N,
|
|
844
|
-
multiSelect:
|
|
869
|
+
multiSelect: i,
|
|
845
870
|
onOverflow: d,
|
|
846
871
|
placeholder: re,
|
|
847
872
|
renderValue: K
|
|
848
873
|
}
|
|
849
874
|
),
|
|
850
|
-
|
|
851
|
-
|
|
875
|
+
L && /* @__PURE__ */ t(
|
|
876
|
+
Co,
|
|
852
877
|
{
|
|
853
878
|
options: e,
|
|
854
879
|
onSearch: o,
|
|
855
880
|
onCreate: s,
|
|
856
|
-
onPick:
|
|
881
|
+
onPick: le,
|
|
857
882
|
onClose: Y,
|
|
858
883
|
anchorRef: Q,
|
|
859
|
-
excluded:
|
|
860
|
-
multiSelect:
|
|
884
|
+
excluded: a,
|
|
885
|
+
multiSelect: i,
|
|
861
886
|
selectedAtTop: c,
|
|
862
887
|
selected: n,
|
|
863
888
|
placeholder: _,
|
|
864
889
|
emptyHint: p,
|
|
865
890
|
isLoading: v,
|
|
866
|
-
skeletonRowCount:
|
|
867
|
-
onError:
|
|
868
|
-
glass:
|
|
891
|
+
skeletonRowCount: C,
|
|
892
|
+
onError: b,
|
|
893
|
+
glass: S,
|
|
869
894
|
portal: P,
|
|
870
895
|
renderOption: W,
|
|
871
|
-
footerAction:
|
|
896
|
+
footerAction: I
|
|
872
897
|
}
|
|
873
898
|
)
|
|
874
899
|
] });
|
|
875
900
|
}
|
|
876
|
-
const
|
|
877
|
-
Btn:
|
|
878
|
-
Primary:
|
|
879
|
-
Secondary:
|
|
880
|
-
Ghost:
|
|
881
|
-
IconDanger:
|
|
882
|
-
Danger:
|
|
883
|
-
},
|
|
901
|
+
const ko = "_Btn_1tozl_10", Io = "_Primary_1tozl_35", bo = "_Secondary_1tozl_50", So = "_Ghost_1tozl_62", Ro = "_IconDanger_1tozl_74", To = "_Danger_1tozl_95", oe = {
|
|
902
|
+
Btn: ko,
|
|
903
|
+
Primary: Io,
|
|
904
|
+
Secondary: bo,
|
|
905
|
+
Ghost: So,
|
|
906
|
+
IconDanger: Ro,
|
|
907
|
+
Danger: To
|
|
908
|
+
}, Lo = {
|
|
884
909
|
primary: oe.Primary,
|
|
885
910
|
secondary: oe.Secondary,
|
|
886
911
|
danger: oe.Danger,
|
|
887
912
|
ghost: oe.Ghost,
|
|
888
913
|
iconDanger: oe.IconDanger
|
|
889
914
|
};
|
|
890
|
-
function
|
|
891
|
-
const s =
|
|
915
|
+
function $e({ variant: e = "default", className: n, children: r, ...o }) {
|
|
916
|
+
const s = T("Button", n), a = e === "unstyled";
|
|
892
917
|
return /* @__PURE__ */ t(
|
|
893
918
|
"button",
|
|
894
919
|
{
|
|
895
920
|
type: "button",
|
|
896
921
|
...o,
|
|
897
|
-
className: g(!
|
|
922
|
+
className: g(!a && oe.Btn, !a && Lo[e], s),
|
|
898
923
|
children: r
|
|
899
924
|
}
|
|
900
925
|
);
|
|
901
926
|
}
|
|
902
|
-
const
|
|
903
|
-
ConfirmWrapper:
|
|
904
|
-
ConfirmContainer:
|
|
905
|
-
Glass:
|
|
906
|
-
ConfirmTitle:
|
|
907
|
-
ConfirmMessage:
|
|
908
|
-
ConfirmActions:
|
|
909
|
-
BtnCancel:
|
|
910
|
-
BtnConfirm:
|
|
911
|
-
BtnDanger:
|
|
927
|
+
const Do = "_ConfirmWrapper_1tq4o_4", xo = "_ConfirmContainer_1tq4o_1", Bo = "_Glass_1tq4o_24", Eo = "_ConfirmTitle_1tq4o_30", Ao = "_ConfirmMessage_1tq4o_38", Mo = "_ConfirmActions_1tq4o_45", Po = "_BtnCancel_1tq4o_53", Oo = "_BtnConfirm_1tq4o_73", Wo = "_BtnDanger_1tq4o_92", q = {
|
|
928
|
+
ConfirmWrapper: Do,
|
|
929
|
+
ConfirmContainer: xo,
|
|
930
|
+
Glass: Bo,
|
|
931
|
+
ConfirmTitle: Eo,
|
|
932
|
+
ConfirmMessage: Ao,
|
|
933
|
+
ConfirmActions: Mo,
|
|
934
|
+
BtnCancel: Po,
|
|
935
|
+
BtnConfirm: Oo,
|
|
936
|
+
BtnDanger: Wo
|
|
912
937
|
};
|
|
913
|
-
function
|
|
938
|
+
function as({
|
|
914
939
|
title: e,
|
|
915
940
|
message: n,
|
|
916
941
|
confirmLabel: r = "Confirm",
|
|
917
942
|
cancelLabel: o = "Cancel",
|
|
918
943
|
danger: s = !1,
|
|
919
|
-
onConfirm:
|
|
920
|
-
onClose:
|
|
944
|
+
onConfirm: a,
|
|
945
|
+
onClose: i,
|
|
921
946
|
className: c,
|
|
922
947
|
glass: d = !1
|
|
923
948
|
}) {
|
|
924
|
-
const [u, l] =
|
|
949
|
+
const [u, l] = k(!1), _ = T("ConfirmDialog", c);
|
|
925
950
|
function p() {
|
|
926
|
-
l(!0), Promise.resolve(
|
|
927
|
-
l(!1),
|
|
951
|
+
l(!0), Promise.resolve(a()).finally(() => {
|
|
952
|
+
l(!1), i();
|
|
928
953
|
});
|
|
929
954
|
}
|
|
930
955
|
return /* @__PURE__ */ t("div", { className: q.ConfirmWrapper, children: /* @__PURE__ */ m("div", { className: g(q.ConfirmContainer, { [q.Glass]: d }, _), role: "dialog", "aria-modal": "true", children: [
|
|
931
956
|
/* @__PURE__ */ t("h2", { className: q.ConfirmTitle, children: e }),
|
|
932
957
|
/* @__PURE__ */ t("p", { className: q.ConfirmMessage, children: n }),
|
|
933
958
|
/* @__PURE__ */ m("div", { className: q.ConfirmActions, children: [
|
|
934
|
-
/* @__PURE__ */ t("button", { className: q.BtnCancel, type: "button", onClick:
|
|
959
|
+
/* @__PURE__ */ t("button", { className: q.BtnCancel, type: "button", onClick: i, disabled: u, children: o }),
|
|
935
960
|
/* @__PURE__ */ t(
|
|
936
961
|
"button",
|
|
937
962
|
{
|
|
@@ -945,25 +970,25 @@ function Zr({
|
|
|
945
970
|
] })
|
|
946
971
|
] }) });
|
|
947
972
|
}
|
|
948
|
-
const
|
|
949
|
-
InfoWrapper:
|
|
950
|
-
InfoContainer:
|
|
951
|
-
Glass:
|
|
952
|
-
InfoTitle:
|
|
953
|
-
InfoMessage:
|
|
954
|
-
InfoActions:
|
|
955
|
-
BtnClose:
|
|
973
|
+
const Fo = "_InfoWrapper_cqv58_4", qo = "_InfoContainer_cqv58_1", Ho = "_Glass_cqv58_24", Uo = "_InfoTitle_cqv58_30", Go = "_InfoMessage_cqv58_38", $o = "_InfoActions_cqv58_45", jo = "_BtnClose_cqv58_52", Z = {
|
|
974
|
+
InfoWrapper: Fo,
|
|
975
|
+
InfoContainer: qo,
|
|
976
|
+
Glass: Ho,
|
|
977
|
+
InfoTitle: Uo,
|
|
978
|
+
InfoMessage: Go,
|
|
979
|
+
InfoActions: $o,
|
|
980
|
+
BtnClose: jo
|
|
956
981
|
};
|
|
957
|
-
function
|
|
958
|
-
const
|
|
959
|
-
return /* @__PURE__ */ t("div", { className: Z.InfoWrapper, children: /* @__PURE__ */ m("div", { className: g(Z.InfoContainer, { [Z.Glass]: s },
|
|
982
|
+
function is({ title: e, message: n, onClose: r, className: o, glass: s = !1 }) {
|
|
983
|
+
const a = T("InfoDialog", o);
|
|
984
|
+
return /* @__PURE__ */ t("div", { className: Z.InfoWrapper, children: /* @__PURE__ */ m("div", { className: g(Z.InfoContainer, { [Z.Glass]: s }, a), role: "dialog", "aria-modal": "true", children: [
|
|
960
985
|
/* @__PURE__ */ t("h2", { className: Z.InfoTitle, children: e }),
|
|
961
986
|
/* @__PURE__ */ t("p", { className: Z.InfoMessage, children: n }),
|
|
962
987
|
/* @__PURE__ */ t("div", { className: Z.InfoActions, children: /* @__PURE__ */ t("button", { className: Z.BtnClose, type: "button", onClick: r, children: "Got it" }) })
|
|
963
988
|
] }) });
|
|
964
989
|
}
|
|
965
|
-
function
|
|
966
|
-
const r =
|
|
990
|
+
function cs({ buttons: e, containerClassName: n }) {
|
|
991
|
+
const r = T("ModalActions", n);
|
|
967
992
|
return /* @__PURE__ */ t("div", { className: r, children: e.map((o, s) => /* @__PURE__ */ t(
|
|
968
993
|
"button",
|
|
969
994
|
{
|
|
@@ -976,8 +1001,8 @@ function ns({ buttons: e, containerClassName: n }) {
|
|
|
976
1001
|
s
|
|
977
1002
|
)) });
|
|
978
1003
|
}
|
|
979
|
-
function
|
|
980
|
-
const o =
|
|
1004
|
+
function ls({ onClick: e, disabled: n, className: r }) {
|
|
1005
|
+
const o = T("ModalClose", r);
|
|
981
1006
|
return /* @__PURE__ */ t(
|
|
982
1007
|
"button",
|
|
983
1008
|
{
|
|
@@ -1005,139 +1030,139 @@ function ts({ onClick: e, disabled: n, className: r }) {
|
|
|
1005
1030
|
}
|
|
1006
1031
|
);
|
|
1007
1032
|
}
|
|
1008
|
-
const
|
|
1009
|
-
Backdrop:
|
|
1010
|
-
BackdropOpen:
|
|
1011
|
-
Panel:
|
|
1012
|
-
Right:
|
|
1013
|
-
Left:
|
|
1014
|
-
Top:
|
|
1015
|
-
Bottom:
|
|
1016
|
-
PanelOpen:
|
|
1017
|
-
},
|
|
1018
|
-
let
|
|
1033
|
+
const Vo = "_Backdrop_1w1e3_7", zo = "_BackdropOpen_1w1e3_16", Ko = "_Panel_1w1e3_21", Xo = "_Right_1w1e3_31", Qo = "_Left_1w1e3_40", Yo = "_Top_1w1e3_49", Jo = "_Bottom_1w1e3_58", Zo = "_PanelOpen_1w1e3_67", z = {
|
|
1034
|
+
Backdrop: Vo,
|
|
1035
|
+
BackdropOpen: zo,
|
|
1036
|
+
Panel: Ko,
|
|
1037
|
+
Right: Xo,
|
|
1038
|
+
Left: Qo,
|
|
1039
|
+
Top: Yo,
|
|
1040
|
+
Bottom: Jo,
|
|
1041
|
+
PanelOpen: Zo
|
|
1042
|
+
}, ce = [];
|
|
1043
|
+
let er = 1, me = !1, we = 0;
|
|
1019
1044
|
function je() {
|
|
1020
1045
|
if (we > 0) {
|
|
1021
1046
|
we -= 1;
|
|
1022
1047
|
return;
|
|
1023
1048
|
}
|
|
1024
|
-
const e =
|
|
1025
|
-
|
|
1049
|
+
const e = ce.pop();
|
|
1050
|
+
Ve(), e && e.onBack();
|
|
1026
1051
|
}
|
|
1027
|
-
function
|
|
1028
|
-
|
|
1052
|
+
function nr() {
|
|
1053
|
+
me || (me = !0, window.addEventListener("popstate", je));
|
|
1029
1054
|
}
|
|
1030
|
-
function
|
|
1031
|
-
|
|
1055
|
+
function Ve() {
|
|
1056
|
+
ce.length > 0 || !me || (me = !1, window.removeEventListener("popstate", je));
|
|
1032
1057
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const n =
|
|
1035
|
-
return
|
|
1058
|
+
function tr(e) {
|
|
1059
|
+
const n = er++;
|
|
1060
|
+
return ce.push({ handle: n, onBack: e }), nr(), window.history.pushState({ churesOverlayBackHandle: n }, ""), n;
|
|
1036
1061
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const n =
|
|
1039
|
-
n === -1 || (
|
|
1062
|
+
function xe(e) {
|
|
1063
|
+
const n = ce.findIndex((o) => o.handle === e);
|
|
1064
|
+
n === -1 || (ce.splice(n, 1), Ve(), window.history.state?.churesOverlayBackHandle !== e) || (we += 1, window.history.back());
|
|
1040
1065
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const r =
|
|
1043
|
-
o.current = n,
|
|
1066
|
+
function or(e, n) {
|
|
1067
|
+
const r = R([]), o = R(n);
|
|
1068
|
+
o.current = n, D(() => {
|
|
1044
1069
|
const s = r.current;
|
|
1045
1070
|
for (; s.length < e; )
|
|
1046
|
-
s.push(
|
|
1071
|
+
s.push(tr(() => o.current()));
|
|
1047
1072
|
for (; s.length > e; ) {
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1073
|
+
const a = s.pop();
|
|
1074
|
+
a !== void 0 && xe(a);
|
|
1050
1075
|
}
|
|
1051
|
-
}, [e]),
|
|
1076
|
+
}, [e]), D(() => () => {
|
|
1052
1077
|
const s = r.current;
|
|
1053
1078
|
for (; s.length > 0; ) {
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1079
|
+
const a = s.pop();
|
|
1080
|
+
a !== void 0 && xe(a);
|
|
1056
1081
|
}
|
|
1057
1082
|
}, []);
|
|
1058
1083
|
}
|
|
1059
|
-
const
|
|
1084
|
+
const rr = {
|
|
1060
1085
|
top: z.Top,
|
|
1061
1086
|
right: z.Right,
|
|
1062
1087
|
bottom: z.Bottom,
|
|
1063
1088
|
left: z.Left
|
|
1064
1089
|
};
|
|
1065
|
-
let V = null,
|
|
1066
|
-
function
|
|
1090
|
+
let V = null, ve = 0;
|
|
1091
|
+
function Be() {
|
|
1067
1092
|
return V || (V = document.createElement("div"), V.setAttribute("data-chures-side-drawer-root", ""), document.body.appendChild(V)), V;
|
|
1068
1093
|
}
|
|
1069
|
-
function
|
|
1070
|
-
const [
|
|
1071
|
-
|
|
1094
|
+
function us({ open: e, onClose: n, children: r, side: o = "right", backdropBlur: s = 0, className: a }) {
|
|
1095
|
+
const [i, c] = k(!1), d = T("SideDrawer", a);
|
|
1096
|
+
or(e ? 1 : 0, n), Ie(() => {
|
|
1072
1097
|
if (!e) {
|
|
1073
1098
|
c(!1);
|
|
1074
1099
|
return;
|
|
1075
1100
|
}
|
|
1076
|
-
document.body.appendChild(
|
|
1101
|
+
document.body.appendChild(Be());
|
|
1077
1102
|
const l = requestAnimationFrame(() => c(!0));
|
|
1078
1103
|
return () => cancelAnimationFrame(l);
|
|
1079
|
-
}, [e]),
|
|
1080
|
-
|
|
1104
|
+
}, [e]), D(() => (ve += 1, () => {
|
|
1105
|
+
ve -= 1, ve === 0 && V && (V.remove(), V = null);
|
|
1081
1106
|
}), []);
|
|
1082
1107
|
const u = s > 0 ? { backdropFilter: `blur(${s}rem)`, WebkitBackdropFilter: `blur(${s}rem)` } : void 0;
|
|
1083
|
-
return
|
|
1108
|
+
return be(
|
|
1084
1109
|
/* @__PURE__ */ m(G, { children: [
|
|
1085
1110
|
/* @__PURE__ */ t(
|
|
1086
1111
|
"div",
|
|
1087
1112
|
{
|
|
1088
|
-
className: g(z.Backdrop,
|
|
1113
|
+
className: g(z.Backdrop, i && z.BackdropOpen),
|
|
1089
1114
|
style: u,
|
|
1090
1115
|
onClick: n
|
|
1091
1116
|
}
|
|
1092
1117
|
),
|
|
1093
|
-
/* @__PURE__ */ t("div", { className: g(z.Panel,
|
|
1118
|
+
/* @__PURE__ */ t("div", { className: g(z.Panel, rr[o], i && z.PanelOpen, d), children: r })
|
|
1094
1119
|
] }),
|
|
1095
|
-
|
|
1120
|
+
Be()
|
|
1096
1121
|
);
|
|
1097
1122
|
}
|
|
1098
|
-
const
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1101
|
-
}
|
|
1102
|
-
const
|
|
1103
|
-
FlyoutMenuContainer:
|
|
1104
|
-
Backdrop:
|
|
1105
|
-
Panel:
|
|
1106
|
-
Submenu:
|
|
1107
|
-
FlyoutPanelContainer:
|
|
1108
|
-
Back:
|
|
1109
|
-
Chevron:
|
|
1110
|
-
MenuListContainer:
|
|
1111
|
-
Heading:
|
|
1112
|
-
Divider:
|
|
1113
|
-
MenuRowContainer:
|
|
1114
|
-
Dim:
|
|
1115
|
-
Row:
|
|
1116
|
-
Icon:
|
|
1117
|
-
Label:
|
|
1118
|
-
Arrow:
|
|
1119
|
-
MenuSkeletonContainer:
|
|
1120
|
-
MenuSkeletonRow:
|
|
1121
|
-
MenuSearchFieldContainer:
|
|
1122
|
-
},
|
|
1123
|
-
function
|
|
1124
|
-
const o =
|
|
1125
|
-
function i
|
|
1123
|
+
const ye = Oe(!0);
|
|
1124
|
+
function sr() {
|
|
1125
|
+
return We(ye);
|
|
1126
|
+
}
|
|
1127
|
+
const ar = "_FlyoutMenuContainer_1q0ma_5", ir = "_Backdrop_1q0ma_9", cr = "_Panel_1q0ma_14", lr = "_Submenu_1q0ma_27", ur = "_FlyoutPanelContainer_1q0ma_41", dr = "_Back_1q0ma_9", _r = "_Chevron_1q0ma_68", hr = "_MenuListContainer_1q0ma_75", fr = "_Heading_1q0ma_81", mr = "_Divider_1q0ma_90", pr = "_MenuRowContainer_1q0ma_98", gr = "_Dim_1q0ma_102", vr = "_Row_1q0ma_106", Cr = "_Icon_1q0ma_135", wr = "_Label_1q0ma_140", yr = "_Arrow_1q0ma_148", Nr = "_MenuSkeletonContainer_1q0ma_156", kr = "_MenuSkeletonRow_1q0ma_163", Ir = "_MenuSearchFieldContainer_1q0ma_191", y = {
|
|
1128
|
+
FlyoutMenuContainer: ar,
|
|
1129
|
+
Backdrop: ir,
|
|
1130
|
+
Panel: cr,
|
|
1131
|
+
Submenu: lr,
|
|
1132
|
+
FlyoutPanelContainer: ur,
|
|
1133
|
+
Back: dr,
|
|
1134
|
+
Chevron: _r,
|
|
1135
|
+
MenuListContainer: hr,
|
|
1136
|
+
Heading: fr,
|
|
1137
|
+
Divider: mr,
|
|
1138
|
+
MenuRowContainer: pr,
|
|
1139
|
+
Dim: gr,
|
|
1140
|
+
Row: vr,
|
|
1141
|
+
Icon: Cr,
|
|
1142
|
+
Label: wr,
|
|
1143
|
+
Arrow: yr,
|
|
1144
|
+
MenuSkeletonContainer: Nr,
|
|
1145
|
+
MenuSkeletonRow: kr,
|
|
1146
|
+
MenuSearchFieldContainer: Ir
|
|
1147
|
+
}, br = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1148
|
+
function Ee({ item: e, menu: n, dim: r }) {
|
|
1149
|
+
const o = sr(), s = e.submenu;
|
|
1150
|
+
function a(i) {
|
|
1126
1151
|
if (s) {
|
|
1127
|
-
n.toggleSubmenuFrom(
|
|
1152
|
+
n.toggleSubmenuFrom(i.currentTarget, s);
|
|
1128
1153
|
return;
|
|
1129
1154
|
}
|
|
1130
1155
|
e.disabled || n.selectItem(e);
|
|
1131
1156
|
}
|
|
1132
|
-
return /* @__PURE__ */ t(ie.div, { layout: o, transition:
|
|
1133
|
-
|
|
1157
|
+
return /* @__PURE__ */ t(ie.div, { layout: o, transition: br, className: g(y.MenuRowContainer, r && y.Dim), children: /* @__PURE__ */ m(
|
|
1158
|
+
$e,
|
|
1134
1159
|
{
|
|
1135
1160
|
variant: "unstyled",
|
|
1136
1161
|
className: y.Row,
|
|
1137
1162
|
disabled: e.disabled,
|
|
1138
1163
|
"aria-haspopup": s ? "menu" : void 0,
|
|
1139
|
-
onClick:
|
|
1140
|
-
onMouseEnter: s ? (
|
|
1164
|
+
onClick: a,
|
|
1165
|
+
onMouseEnter: s ? (i) => n.openSubmenuFrom(i.currentTarget, s) : void 0,
|
|
1141
1166
|
onMouseLeave: s ? n.closeSubmenuSoon : void 0,
|
|
1142
1167
|
children: [
|
|
1143
1168
|
e.icon && /* @__PURE__ */ t("span", { className: y.Icon, children: e.icon }),
|
|
@@ -1147,21 +1172,21 @@ function Be({ item: e, menu: n, dim: r }) {
|
|
|
1147
1172
|
}
|
|
1148
1173
|
) });
|
|
1149
1174
|
}
|
|
1150
|
-
function
|
|
1175
|
+
function Ae({ items: e, menu: n, heading: r, rest: o }) {
|
|
1151
1176
|
const s = !!o && o.length > 0;
|
|
1152
1177
|
return /* @__PURE__ */ m("div", { className: y.MenuListContainer, children: [
|
|
1153
1178
|
r && /* @__PURE__ */ t("span", { className: y.Heading, children: r }),
|
|
1154
|
-
e.map((
|
|
1179
|
+
e.map((a) => /* @__PURE__ */ t(Ee, { item: a, menu: n }, a.key)),
|
|
1155
1180
|
s && /* @__PURE__ */ t("div", { className: y.Divider }),
|
|
1156
|
-
o?.map((
|
|
1181
|
+
o?.map((a) => /* @__PURE__ */ t(Ee, { item: a, menu: n, dim: !0 }, a.key))
|
|
1157
1182
|
] });
|
|
1158
1183
|
}
|
|
1159
|
-
function
|
|
1160
|
-
const n =
|
|
1184
|
+
function Sr({ count: e = 3 }) {
|
|
1185
|
+
const n = Fe(() => Array.from({ length: Math.max(0, e) }, (r, o) => o), [e]);
|
|
1161
1186
|
return /* @__PURE__ */ t("div", { className: y.MenuSkeletonContainer, children: n.map((r) => /* @__PURE__ */ t("div", { className: y.MenuSkeletonRow, role: "presentation" }, r)) });
|
|
1162
1187
|
}
|
|
1163
|
-
const
|
|
1164
|
-
function
|
|
1188
|
+
const Rr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1189
|
+
function Tr({ value: e, onChange: n, placeholder: r }) {
|
|
1165
1190
|
function o(s) {
|
|
1166
1191
|
s.key === "Escape" && n("");
|
|
1167
1192
|
}
|
|
@@ -1172,89 +1197,89 @@ function yr({ value: e, onChange: n, placeholder: r }) {
|
|
|
1172
1197
|
initial: { opacity: 0, height: 0 },
|
|
1173
1198
|
animate: { opacity: 1, height: "auto" },
|
|
1174
1199
|
exit: { opacity: 0, height: 0 },
|
|
1175
|
-
transition:
|
|
1200
|
+
transition: Rr,
|
|
1176
1201
|
children: /* @__PURE__ */ t(
|
|
1177
|
-
|
|
1202
|
+
dt,
|
|
1178
1203
|
{
|
|
1179
1204
|
value: e,
|
|
1180
1205
|
setValue: n,
|
|
1181
1206
|
placeholder: r ?? "Search",
|
|
1182
1207
|
autoFocus: !0,
|
|
1183
1208
|
onKeyDown: o,
|
|
1184
|
-
startIcon: /* @__PURE__ */ t(
|
|
1209
|
+
startIcon: /* @__PURE__ */ t(yo, { size: 14 })
|
|
1185
1210
|
}
|
|
1186
1211
|
)
|
|
1187
1212
|
}
|
|
1188
1213
|
);
|
|
1189
1214
|
}
|
|
1190
|
-
function
|
|
1215
|
+
function Lr(e, n, r) {
|
|
1191
1216
|
const o = n.trim().toLowerCase();
|
|
1192
1217
|
if (!o) return { matches: e, rest: [] };
|
|
1193
|
-
const s = [],
|
|
1194
|
-
for (const
|
|
1195
|
-
r(
|
|
1196
|
-
return { matches: s, rest:
|
|
1218
|
+
const s = [], a = [];
|
|
1219
|
+
for (const i of e)
|
|
1220
|
+
r(i).toLowerCase().includes(o) ? s.push(i) : a.push(i);
|
|
1221
|
+
return { matches: s, rest: a };
|
|
1197
1222
|
}
|
|
1198
|
-
function
|
|
1223
|
+
function Dr(e) {
|
|
1199
1224
|
return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
|
|
1200
1225
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const [n, r] =
|
|
1203
|
-
return
|
|
1226
|
+
function xr(e) {
|
|
1227
|
+
const [n, r] = k("");
|
|
1228
|
+
return D(() => {
|
|
1204
1229
|
if (!e) return;
|
|
1205
1230
|
function o(s) {
|
|
1206
|
-
if (!
|
|
1231
|
+
if (!Dr(document.activeElement)) {
|
|
1207
1232
|
if (s.key === "Backspace") {
|
|
1208
|
-
r((
|
|
1233
|
+
r((a) => a.slice(0, -1));
|
|
1209
1234
|
return;
|
|
1210
1235
|
}
|
|
1211
|
-
s.key.length === 1 && !s.ctrlKey && !s.metaKey && !s.altKey && (r((
|
|
1236
|
+
s.key.length === 1 && !s.ctrlKey && !s.metaKey && !s.altKey && (r((a) => a + s.key), s.preventDefault());
|
|
1212
1237
|
}
|
|
1213
1238
|
}
|
|
1214
1239
|
return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
|
|
1215
1240
|
}, [e]), { query: n, setQuery: r };
|
|
1216
1241
|
}
|
|
1217
|
-
function
|
|
1242
|
+
function Br(e) {
|
|
1218
1243
|
return e.searchText !== void 0 ? e.searchText : typeof e.label == "string" ? e.label : "";
|
|
1219
1244
|
}
|
|
1220
|
-
function
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
const { matches: d, rest: u } =
|
|
1224
|
-
() =>
|
|
1225
|
-
[e.items,
|
|
1245
|
+
function Me({ section: e, menu: n, onBack: r, skeletonCount: o, active: s }) {
|
|
1246
|
+
const a = !!e.searchable && !!e.items, { query: i, setQuery: c } = xr(!!s && a);
|
|
1247
|
+
D(() => c(""), [e, c]);
|
|
1248
|
+
const { matches: d, rest: u } = Fe(
|
|
1249
|
+
() => Lr(e.items ?? [], i, Br),
|
|
1250
|
+
[e.items, i]
|
|
1226
1251
|
), l = r ? void 0 : e.title;
|
|
1227
1252
|
let _;
|
|
1228
|
-
return e.loading ? _ = /* @__PURE__ */ t(
|
|
1229
|
-
r && /* @__PURE__ */ m(
|
|
1253
|
+
return e.loading ? _ = /* @__PURE__ */ t(Sr, { count: o }) : e.renderPanel ? _ = e.renderPanel() : a ? _ = /* @__PURE__ */ t(Ae, { items: d, rest: u, menu: n, heading: l }) : _ = /* @__PURE__ */ t(Ae, { items: e.items ?? [], menu: n, heading: l }), /* @__PURE__ */ m("div", { className: y.FlyoutPanelContainer, children: [
|
|
1254
|
+
r && /* @__PURE__ */ m($e, { variant: "unstyled", className: y.Back, onClick: r, children: [
|
|
1230
1255
|
/* @__PURE__ */ t("span", { className: y.Chevron, children: "‹" }),
|
|
1231
1256
|
e.title ?? "Back"
|
|
1232
1257
|
] }),
|
|
1233
|
-
|
|
1258
|
+
a && /* @__PURE__ */ t(he, { children: i !== "" && /* @__PURE__ */ t(Tr, { value: i, onChange: c }) }),
|
|
1234
1259
|
_
|
|
1235
1260
|
] });
|
|
1236
1261
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const
|
|
1262
|
+
function Er(e, n, r, o, s) {
|
|
1263
|
+
const a = r.width - 2 * o, i = Math.max(o, r.width - o - n.width), c = Math.min(Math.max(e.right - n.width, o), i), d = e.top - s - o, u = r.height - o - e.bottom - s;
|
|
1239
1264
|
if (n.height > d && u > d)
|
|
1240
|
-
return { top: e.bottom + s, left: c, maxHeight: u, maxWidth:
|
|
1265
|
+
return { top: e.bottom + s, left: c, maxHeight: u, maxWidth: a };
|
|
1241
1266
|
const l = e.top - s - n.height;
|
|
1242
|
-
return { top: l < o ? o : l, left: c, maxHeight: d, maxWidth:
|
|
1267
|
+
return { top: l < o ? o : l, left: c, maxHeight: d, maxWidth: a };
|
|
1243
1268
|
}
|
|
1244
|
-
function
|
|
1269
|
+
function Ar(e, n, r, o, s) {
|
|
1245
1270
|
if (s) return { side: "collapse" };
|
|
1246
|
-
const
|
|
1271
|
+
const a = e.right + n.width <= r.width - o, i = e.left - n.width, c = a ? "right" : i >= o ? "left" : null;
|
|
1247
1272
|
if (!c) return { side: "collapse" };
|
|
1248
|
-
const d = c === "right" ? e.right :
|
|
1273
|
+
const d = c === "right" ? e.right : i, u = r.height - o - e.top, l = e.bottom - o;
|
|
1249
1274
|
if (u >= n.height || u >= l)
|
|
1250
1275
|
return { side: c, left: d, top: e.top, maxHeight: u };
|
|
1251
1276
|
const _ = Math.max(e.bottom - n.height, o);
|
|
1252
1277
|
return { side: c, left: d, top: _, maxHeight: l };
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
const [o, s] =
|
|
1256
|
-
|
|
1257
|
-
const c =
|
|
1279
|
+
function ze(e, n, r) {
|
|
1280
|
+
const [o, s] = k(null), a = R(n), i = R(r);
|
|
1281
|
+
a.current = n, i.current = r;
|
|
1282
|
+
const c = R(null);
|
|
1258
1283
|
return Ie(() => {
|
|
1259
1284
|
if (!e) {
|
|
1260
1285
|
c.current = null, s(null);
|
|
@@ -1262,10 +1287,10 @@ function Ve(e, n, r) {
|
|
|
1262
1287
|
}
|
|
1263
1288
|
let d = 0;
|
|
1264
1289
|
function u() {
|
|
1265
|
-
const l =
|
|
1290
|
+
const l = a.current();
|
|
1266
1291
|
if (l !== null) {
|
|
1267
1292
|
const _ = c.current;
|
|
1268
|
-
(_ === null || !
|
|
1293
|
+
(_ === null || !i.current(_, l)) && (c.current = l, s(l));
|
|
1269
1294
|
}
|
|
1270
1295
|
d = requestAnimationFrame(u);
|
|
1271
1296
|
}
|
|
@@ -1274,89 +1299,89 @@ function Ve(e, n, r) {
|
|
|
1274
1299
|
};
|
|
1275
1300
|
}, [e]), o;
|
|
1276
1301
|
}
|
|
1277
|
-
const
|
|
1278
|
-
function
|
|
1302
|
+
const Ke = 8, Mr = 8, Pr = 150, Or = 3;
|
|
1303
|
+
function Xe() {
|
|
1279
1304
|
return { width: window.innerWidth, height: window.innerHeight };
|
|
1280
1305
|
}
|
|
1281
|
-
function
|
|
1306
|
+
function Ne() {
|
|
1282
1307
|
return window.matchMedia("(orientation: portrait)").matches;
|
|
1283
1308
|
}
|
|
1284
|
-
function
|
|
1309
|
+
function Qe(e) {
|
|
1285
1310
|
return { width: e.scrollWidth || e.offsetWidth, height: e.scrollHeight || e.offsetHeight };
|
|
1286
1311
|
}
|
|
1287
|
-
function
|
|
1312
|
+
function Wr(e, n) {
|
|
1288
1313
|
return e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight && e.maxWidth === n.maxWidth;
|
|
1289
1314
|
}
|
|
1290
|
-
function
|
|
1315
|
+
function Fr(e, n) {
|
|
1291
1316
|
return e === "collapse" || n === "collapse" ? e === n : e.side === n.side && e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight;
|
|
1292
1317
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return
|
|
1318
|
+
function qr(e, n, r) {
|
|
1319
|
+
return ze(
|
|
1295
1320
|
e,
|
|
1296
1321
|
() => {
|
|
1297
1322
|
const o = n.current, s = r.current;
|
|
1298
|
-
return !o || !s ? null :
|
|
1323
|
+
return !o || !s ? null : Er(o.getBoundingClientRect(), Qe(s), Xe(), Ke, Mr);
|
|
1299
1324
|
},
|
|
1300
|
-
|
|
1325
|
+
Wr
|
|
1301
1326
|
);
|
|
1302
1327
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1328
|
+
function Hr(e, n, r) {
|
|
1329
|
+
return ze(
|
|
1305
1330
|
e,
|
|
1306
1331
|
() => {
|
|
1307
1332
|
const o = n.current, s = r.current;
|
|
1308
1333
|
if (!o || !s) return null;
|
|
1309
|
-
const
|
|
1310
|
-
return
|
|
1334
|
+
const a = Ar(s.getBoundingClientRect(), Qe(o), Xe(), Ke, Ne());
|
|
1335
|
+
return a.side === "collapse" ? "collapse" : a;
|
|
1311
1336
|
},
|
|
1312
|
-
|
|
1337
|
+
Fr
|
|
1313
1338
|
);
|
|
1314
1339
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const { anchorRef: n, panelRef: r, submenuRef: o, open: s, onOpenChange:
|
|
1317
|
-
c(
|
|
1318
|
-
}, [
|
|
1319
|
-
p(null), l((N) => N.length >=
|
|
1340
|
+
function Ur(e) {
|
|
1341
|
+
const { anchorRef: n, panelRef: r, submenuRef: o, open: s, onOpenChange: a } = e, [i, c] = k(!1), d = s ?? i, [u, l] = k([]), [_, p] = k(null), v = R(null), C = R(void 0), b = B((w) => {
|
|
1342
|
+
c(w), a?.(w);
|
|
1343
|
+
}, [a]), M = B((w) => {
|
|
1344
|
+
p(null), l((N) => N.length >= Or ? N : [...N, w]);
|
|
1320
1345
|
}, []);
|
|
1321
|
-
|
|
1322
|
-
d || (l([]), p(null), v.current = null,
|
|
1346
|
+
D(() => {
|
|
1347
|
+
d || (l([]), p(null), v.current = null, C.current && clearTimeout(C.current));
|
|
1323
1348
|
}, [d]);
|
|
1324
|
-
const
|
|
1325
|
-
if (
|
|
1349
|
+
const S = B((w, N) => {
|
|
1350
|
+
if (C.current && clearTimeout(C.current), v.current = w, Ne()) {
|
|
1326
1351
|
M(N);
|
|
1327
1352
|
return;
|
|
1328
1353
|
}
|
|
1329
1354
|
p({ section: N, placement: null });
|
|
1330
|
-
}, [M]), P = B((
|
|
1331
|
-
if (
|
|
1332
|
-
u[u.length - 1] === N ? l((A) => A.slice(0, -1)) :
|
|
1355
|
+
}, [M]), P = B((w, N) => {
|
|
1356
|
+
if (Ne()) {
|
|
1357
|
+
u[u.length - 1] === N ? l((A) => A.slice(0, -1)) : S(w, N);
|
|
1333
1358
|
return;
|
|
1334
1359
|
}
|
|
1335
|
-
_ && _.section === N ? p(null) :
|
|
1336
|
-
}, [u, _,
|
|
1337
|
-
|
|
1360
|
+
_ && _.section === N ? p(null) : S(w, N);
|
|
1361
|
+
}, [u, _, S]), W = B(() => {
|
|
1362
|
+
C.current && clearTimeout(C.current), C.current = setTimeout(() => p(null), Pr);
|
|
1338
1363
|
}, []), K = B(() => {
|
|
1339
|
-
|
|
1340
|
-
}, []),
|
|
1341
|
-
|
|
1342
|
-
if (!(!_ || !
|
|
1343
|
-
if (
|
|
1364
|
+
C.current && clearTimeout(C.current);
|
|
1365
|
+
}, []), I = Hr(!!_, o, v), X = qr(d, n, r);
|
|
1366
|
+
D(() => {
|
|
1367
|
+
if (!(!_ || !I)) {
|
|
1368
|
+
if (I === "collapse") {
|
|
1344
1369
|
M(_.section);
|
|
1345
1370
|
return;
|
|
1346
1371
|
}
|
|
1347
|
-
_.placement !==
|
|
1372
|
+
_.placement !== I && p({ section: _.section, placement: I });
|
|
1348
1373
|
}
|
|
1349
|
-
}, [
|
|
1350
|
-
const
|
|
1351
|
-
|
|
1352
|
-
}, [
|
|
1374
|
+
}, [I, _, M]);
|
|
1375
|
+
const L = B(() => l((w) => w.slice(0, -1)), []), Q = B(() => b(!1), [b]), $ = B(() => b(!d), [b, d]), Y = B((w) => {
|
|
1376
|
+
w.onSelect?.(), b(!1);
|
|
1377
|
+
}, [b]);
|
|
1353
1378
|
return {
|
|
1354
1379
|
open: d,
|
|
1355
|
-
toggle:
|
|
1380
|
+
toggle: $,
|
|
1356
1381
|
close: Q,
|
|
1357
|
-
back:
|
|
1382
|
+
back: L,
|
|
1358
1383
|
selectItem: Y,
|
|
1359
|
-
openSubmenuFrom:
|
|
1384
|
+
openSubmenuFrom: S,
|
|
1360
1385
|
toggleSubmenuFrom: P,
|
|
1361
1386
|
closeSubmenuSoon: W,
|
|
1362
1387
|
holdSubmenu: K,
|
|
@@ -1365,17 +1390,17 @@ function Mr(e) {
|
|
|
1365
1390
|
submenu: _
|
|
1366
1391
|
};
|
|
1367
1392
|
}
|
|
1368
|
-
const
|
|
1369
|
-
function
|
|
1370
|
-
const { anchorRef: n, open: r, onClose: o, items: s, rootTitle:
|
|
1371
|
-
function u(
|
|
1372
|
-
|
|
1393
|
+
const Pe = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1394
|
+
function ds(e) {
|
|
1395
|
+
const { anchorRef: n, open: r, onClose: o, items: s, rootTitle: a, skeletonCount: i } = e, c = R(null), d = R(null);
|
|
1396
|
+
function u(C) {
|
|
1397
|
+
C || o();
|
|
1373
1398
|
}
|
|
1374
|
-
const l =
|
|
1375
|
-
return
|
|
1399
|
+
const l = Ur({ anchorRef: n, panelRef: c, submenuRef: d, open: r, onOpenChange: u }), _ = l.frame ?? { title: a, items: s, searchable: e.searchable }, p = l.menuPlacement, v = l.submenu?.placement ?? null;
|
|
1400
|
+
return be(
|
|
1376
1401
|
/* @__PURE__ */ m("div", { className: y.FlyoutMenuContainer, children: [
|
|
1377
1402
|
r && /* @__PURE__ */ t("div", { className: y.Backdrop, onClick: o }),
|
|
1378
|
-
/* @__PURE__ */ t(
|
|
1403
|
+
/* @__PURE__ */ t(he, { children: r && /* @__PURE__ */ t(
|
|
1379
1404
|
ie.div,
|
|
1380
1405
|
{
|
|
1381
1406
|
ref: c,
|
|
@@ -1384,21 +1409,21 @@ function rs(e) {
|
|
|
1384
1409
|
initial: { opacity: 0, scale: 0.94, y: 6 },
|
|
1385
1410
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
1386
1411
|
exit: { opacity: 0, scale: 0.94, y: 6 },
|
|
1387
|
-
transition:
|
|
1388
|
-
children: /* @__PURE__ */ t(
|
|
1389
|
-
|
|
1412
|
+
transition: Pe,
|
|
1413
|
+
children: /* @__PURE__ */ t(ye.Provider, { value: !!p, children: /* @__PURE__ */ t(
|
|
1414
|
+
Me,
|
|
1390
1415
|
{
|
|
1391
1416
|
section: _,
|
|
1392
1417
|
menu: l,
|
|
1393
1418
|
onBack: l.frame ? l.back : void 0,
|
|
1394
|
-
skeletonCount:
|
|
1419
|
+
skeletonCount: i,
|
|
1395
1420
|
active: !l.submenu
|
|
1396
1421
|
}
|
|
1397
1422
|
) })
|
|
1398
1423
|
},
|
|
1399
1424
|
"flyout-panel"
|
|
1400
1425
|
) }),
|
|
1401
|
-
/* @__PURE__ */ t(
|
|
1426
|
+
/* @__PURE__ */ t(he, { children: r && l.submenu && /* @__PURE__ */ t(
|
|
1402
1427
|
ie.div,
|
|
1403
1428
|
{
|
|
1404
1429
|
ref: d,
|
|
@@ -1409,13 +1434,13 @@ function rs(e) {
|
|
|
1409
1434
|
initial: { opacity: 0, scale: 0.94, x: 6 },
|
|
1410
1435
|
animate: { opacity: 1, scale: 1, x: 0 },
|
|
1411
1436
|
exit: { opacity: 0, scale: 0.94, x: 6 },
|
|
1412
|
-
transition:
|
|
1413
|
-
children: /* @__PURE__ */ t(
|
|
1414
|
-
|
|
1437
|
+
transition: Pe,
|
|
1438
|
+
children: /* @__PURE__ */ t(ye.Provider, { value: !!v, children: /* @__PURE__ */ t(
|
|
1439
|
+
Me,
|
|
1415
1440
|
{
|
|
1416
1441
|
section: l.submenu.section,
|
|
1417
1442
|
menu: l,
|
|
1418
|
-
skeletonCount:
|
|
1443
|
+
skeletonCount: i,
|
|
1419
1444
|
active: !0
|
|
1420
1445
|
}
|
|
1421
1446
|
) })
|
|
@@ -1426,24 +1451,24 @@ function rs(e) {
|
|
|
1426
1451
|
document.body
|
|
1427
1452
|
);
|
|
1428
1453
|
}
|
|
1429
|
-
function
|
|
1430
|
-
return /* @__PURE__ */ t(
|
|
1454
|
+
function _s({ classNames: e, children: n }) {
|
|
1455
|
+
return /* @__PURE__ */ t(qe.Provider, { value: e, children: n });
|
|
1431
1456
|
}
|
|
1432
|
-
var
|
|
1433
|
-
const
|
|
1434
|
-
function
|
|
1457
|
+
var ke = /* @__PURE__ */ ((e) => (e[e.OK = 0] = "OK", e[e.CANCELLED = 1] = "CANCELLED", e[e.UNKNOWN = 2] = "UNKNOWN", e[e.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT", e[e.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", e[e.NOT_FOUND = 5] = "NOT_FOUND", e[e.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", e[e.PERMISSION_DENIED = 7] = "PERMISSION_DENIED", e[e.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED", e[e.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", e[e.ABORTED = 10] = "ABORTED", e[e.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", e[e.UNIMPLEMENTED = 12] = "UNIMPLEMENTED", e[e.INTERNAL = 13] = "INTERNAL", e[e.UNAVAILABLE = 14] = "UNAVAILABLE", e[e.DATA_LOSS = 15] = "DATA_LOSS", e[e.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", e))(ke || {});
|
|
1458
|
+
const Gr = "type.googleapis.com/google.rpc.ErrorInfo", $r = "type.googleapis.com/google.rpc.BadRequest", jr = "type.googleapis.com/google.rpc.PreconditionFailure";
|
|
1459
|
+
function de(e) {
|
|
1435
1460
|
return typeof e == "object" && e !== null;
|
|
1436
1461
|
}
|
|
1437
1462
|
function H(e) {
|
|
1438
1463
|
return typeof e == "string" ? e : "";
|
|
1439
1464
|
}
|
|
1440
|
-
function
|
|
1441
|
-
if (!
|
|
1465
|
+
function Vr(e) {
|
|
1466
|
+
if (!de(e))
|
|
1442
1467
|
return { kind: "Unknown", typeUrl: "", raw: e };
|
|
1443
1468
|
const n = H(e["@type"]);
|
|
1444
1469
|
switch (n) {
|
|
1445
|
-
case
|
|
1446
|
-
const r =
|
|
1470
|
+
case Gr: {
|
|
1471
|
+
const r = de(e.metadata) ? e.metadata : {}, o = {};
|
|
1447
1472
|
for (const s of Object.keys(r))
|
|
1448
1473
|
o[s] = H(r[s]);
|
|
1449
1474
|
return {
|
|
@@ -1453,94 +1478,95 @@ function Fr(e) {
|
|
|
1453
1478
|
metadata: o
|
|
1454
1479
|
};
|
|
1455
1480
|
}
|
|
1456
|
-
case
|
|
1481
|
+
case $r:
|
|
1457
1482
|
return { kind: "BadRequest", fieldViolations: (Array.isArray(e.fieldViolations) ? e.fieldViolations : []).map((s) => {
|
|
1458
|
-
const
|
|
1483
|
+
const a = de(s) ? s : {};
|
|
1459
1484
|
return {
|
|
1460
|
-
field: H(
|
|
1461
|
-
description: H(
|
|
1485
|
+
field: H(a.field),
|
|
1486
|
+
description: H(a.description)
|
|
1462
1487
|
};
|
|
1463
1488
|
}) };
|
|
1464
|
-
case
|
|
1489
|
+
case jr:
|
|
1465
1490
|
return { kind: "PreconditionFailure", violations: (Array.isArray(e.violations) ? e.violations : []).map((s) => {
|
|
1466
|
-
const
|
|
1491
|
+
const a = de(s) ? s : {};
|
|
1467
1492
|
return {
|
|
1468
|
-
type: H(
|
|
1469
|
-
subject: H(
|
|
1470
|
-
description: H(
|
|
1493
|
+
type: H(a.type),
|
|
1494
|
+
subject: H(a.subject),
|
|
1495
|
+
description: H(a.description)
|
|
1471
1496
|
};
|
|
1472
1497
|
}) };
|
|
1473
1498
|
default:
|
|
1474
1499
|
return { kind: "Unknown", typeUrl: n, raw: e };
|
|
1475
1500
|
}
|
|
1476
1501
|
}
|
|
1477
|
-
function
|
|
1502
|
+
function hs(e) {
|
|
1478
1503
|
return e.kind === "ErrorInfo";
|
|
1479
1504
|
}
|
|
1480
|
-
function
|
|
1505
|
+
function fs(e) {
|
|
1481
1506
|
return e.kind === "BadRequest";
|
|
1482
1507
|
}
|
|
1483
|
-
function
|
|
1508
|
+
function ms(e) {
|
|
1484
1509
|
return e.kind === "PreconditionFailure";
|
|
1485
1510
|
}
|
|
1486
|
-
class
|
|
1511
|
+
class _e extends Error {
|
|
1487
1512
|
constructor(n) {
|
|
1488
1513
|
super(n.title), this.isRetryable = n.isRetryable ?? !1, this.grpcCode = n.grpcCode, this.details = n.details ?? [];
|
|
1489
1514
|
}
|
|
1490
1515
|
}
|
|
1491
|
-
function
|
|
1492
|
-
if (e instanceof
|
|
1516
|
+
function ps(e) {
|
|
1517
|
+
if (e instanceof _e) return e;
|
|
1493
1518
|
if (e instanceof Error && e.message === "Failed to fetch")
|
|
1494
|
-
return new
|
|
1519
|
+
return new _e({ title: "Server unavailable. Try again later", isRetryable: !0 });
|
|
1495
1520
|
if (typeof e == "object" && e !== null && "code" in e) {
|
|
1496
|
-
const n = e, r = n.code ===
|
|
1497
|
-
return new
|
|
1521
|
+
const n = e, r = n.code === ke.UNAVAILABLE || n.code === ke.INTERNAL, o = (n.details ?? []).map(Vr);
|
|
1522
|
+
return new _e({ title: n.message, isRetryable: r, grpcCode: n.code, details: o });
|
|
1498
1523
|
}
|
|
1499
|
-
return new
|
|
1524
|
+
return new _e({ title: String(e), isRetryable: !1 });
|
|
1500
1525
|
}
|
|
1501
1526
|
export {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1527
|
+
rs as AvatarFallbackIcon,
|
|
1528
|
+
$r as BAD_REQUEST_TYPE_URL,
|
|
1529
|
+
$e as Button,
|
|
1530
|
+
ts as Checkbox,
|
|
1531
|
+
wt as CheckmarkIcon,
|
|
1532
|
+
wo as ChevronDownIcon,
|
|
1533
|
+
_s as ChuresConfigProvider,
|
|
1534
|
+
as as ConfirmDialog,
|
|
1535
|
+
ss as Dropdown,
|
|
1536
|
+
Gr as ERROR_INFO_TYPE_URL,
|
|
1537
|
+
os as EditPencilIcon,
|
|
1538
|
+
ke as Errors,
|
|
1539
|
+
ds as FlyoutMenu,
|
|
1540
|
+
is as InfoDialog,
|
|
1541
|
+
dt as Input,
|
|
1542
|
+
xn as Loader,
|
|
1543
|
+
Jr as LoadingWrapper,
|
|
1544
|
+
ye as MenuMeasuredContext,
|
|
1545
|
+
Tr as MenuSearchField,
|
|
1546
|
+
Sr as MenuSkeleton,
|
|
1547
|
+
cs as ModalActions,
|
|
1548
|
+
ls as ModalClose,
|
|
1549
|
+
jr as PRECONDITION_FAILURE_TYPE_URL,
|
|
1550
|
+
yo as SearchIcon,
|
|
1551
|
+
_e as ServiceError,
|
|
1552
|
+
us as SideDrawer,
|
|
1553
|
+
Zr as TelegramAuth,
|
|
1554
|
+
Hn as TelegramSignInButton,
|
|
1555
|
+
es as Toaster,
|
|
1556
|
+
ns as Toggle,
|
|
1557
|
+
fs as isBadRequest,
|
|
1558
|
+
hs as isErrorInfo,
|
|
1559
|
+
ms as isPreconditionFailure,
|
|
1560
|
+
Br as menuItemText,
|
|
1561
|
+
Vr as parseErrorDetail,
|
|
1562
|
+
ps as parseGrpcError,
|
|
1563
|
+
Lr as partitionBySubstring,
|
|
1564
|
+
xe as popOverlayBack,
|
|
1565
|
+
tr as pushOverlayBack,
|
|
1566
|
+
or as useBackableOverlay,
|
|
1567
|
+
T as useComponentClassName,
|
|
1568
|
+
sr as useMenuMeasured,
|
|
1569
|
+
Mn as useTelegramLogin,
|
|
1570
|
+
He as useToaster,
|
|
1571
|
+
xr as useTypeToSearch
|
|
1546
1572
|
};
|