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