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