@vervstack/chures 0.0.39 → 0.0.40
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 +285 -285
- package/dist/chures.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/chures.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
3
|
-
import { createContext as
|
|
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_17q3h_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _panelInAbove_17q3h_1{0%{opacity:0;transform:scale(.96) translateY(-6px)}to{opacity:1;transform:none}}@keyframes _shimmer_17q3h_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_17q3h_18{position:relative;width:100%}._PanelWrapper_17q3h_25{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_17q3h_1 .14s ease}._PanelWrapper_17q3h_25._Portal_17q3h_39{position:fixed;width:auto;margin:var(--chures-dropdown-panel-gap) 0}._PanelWrapper_17q3h_25._Above_17q3h_47{top:auto;transform-origin:bottom center;animation-name:_panelInAbove_17q3h_1}._PanelContainer_17q3h_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_17q3h_23._Glass_17q3h_64{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_17q3h_70{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_17q3h_70._lifted_17q3h_84{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_17q3h_91{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_17q3h_91:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_17q3h_91._Open_17q3h_115{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_17q3h_120{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_17q3h_128{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_17q3h_136{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_17q3h_143{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_17q3h_143::-webkit-scrollbar{display:none}._ChipsWrapper_17q3h_143._Expand_17q3h_161{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_17q3h_91._MultiSelect_17q3h_167 ._TriggerIcon_17q3h_136{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_17q3h_91._ExpandHeight_17q3h_172{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_17q3h_91._RichValue_17q3h_177{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerValueRich_17q3h_183{flex:1;min-width:0;overflow:hidden}._Chip_17q3h_143{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_17q3h_203{flex-shrink:0;padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_17q3h_209{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_17q3h_219{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_17q3h_226{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_17q3h_226::placeholder{color:var(--chures-fg-muted)}._ResultsList_17q3h_240{max-height:13rem;min-height:0;overflow-y:auto}._OptionRow_17q3h_246{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_17q3h_246:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_17q3h_246._Selected_17q3h_261{color:var(--chures-fg)}._OptionRow_17q3h_246._Indented_17q3h_265{padding-left:1.875rem}._OptionRow_17q3h_246._Disabled_17q3h_269{cursor:not-allowed;opacity:.5}._OptionRow_17q3h_246._Disabled_17q3h_269:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_17q3h_280{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_17q3h_280:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._Checkmark_17q3h_293{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_17q3h_299{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_17q3h_299:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_17q3h_299._WithBorder_17q3h_312{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_17q3h_317{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_17q3h_329{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_17q3h_335{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_17q3h_342{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_17q3h_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 K } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as $e, useContext as Ge, useRef as T, useState as k, useEffect as A, forwardRef as un, useCallback as E, useLayoutEffect as ue, Fragment as Ne, useMemo as je } from "react";
|
|
4
4
|
import { AnimatePresence as ve, motion as re, useReducedMotion as dn } from "framer-motion";
|
|
5
5
|
import { create as hn } from "zustand";
|
|
6
6
|
import { createPortal as xe } from "react-dom";
|
|
7
7
|
function fn(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var ke = { exports: {} };
|
|
11
11
|
var Ae;
|
|
12
12
|
function _n() {
|
|
13
13
|
return Ae || (Ae = 1, (function(e) {
|
|
@@ -39,19 +39,19 @@ function _n() {
|
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
42
|
+
})(ke)), ke.exports;
|
|
43
43
|
}
|
|
44
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",
|
|
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", yn = "_Arc2_wa8op_38", bn = "_Arc3_wa8op_39", Nn = "_spin_wa8op_1", kn = "_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", qn = "_waveBounce_wa8op_1", me = {
|
|
46
46
|
LoaderContainer: mn,
|
|
47
47
|
sm: gn,
|
|
48
48
|
md: Cn,
|
|
49
49
|
lg: vn,
|
|
50
50
|
Arc1: wn,
|
|
51
|
-
Arc2:
|
|
52
|
-
Arc3:
|
|
53
|
-
spin:
|
|
54
|
-
Ring1:
|
|
51
|
+
Arc2: yn,
|
|
52
|
+
Arc3: bn,
|
|
53
|
+
spin: Nn,
|
|
54
|
+
Ring1: kn,
|
|
55
55
|
Ring2: In,
|
|
56
56
|
Ring3: Sn,
|
|
57
57
|
ripple: Rn,
|
|
@@ -64,28 +64,28 @@ const C = /* @__PURE__ */ fn(pn), mn = "_LoaderContainer_wa8op_24", gn = "_sm_wa
|
|
|
64
64
|
Wave3: An,
|
|
65
65
|
Wave4: Pn,
|
|
66
66
|
Wave5: Mn,
|
|
67
|
-
waveBounce:
|
|
68
|
-
},
|
|
67
|
+
waveBounce: qn
|
|
68
|
+
}, Ve = $e({});
|
|
69
69
|
function B(e, n) {
|
|
70
|
-
const r =
|
|
70
|
+
const r = Ge(Ve);
|
|
71
71
|
return n ?? r[e];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function On(e, n) {
|
|
74
74
|
switch (e) {
|
|
75
75
|
case "ripple":
|
|
76
|
-
return /* @__PURE__ */ m(
|
|
76
|
+
return /* @__PURE__ */ m(K, { 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__ */ m(
|
|
82
|
+
return /* @__PURE__ */ m(K, { 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__ */ m(
|
|
88
|
+
return /* @__PURE__ */ m(K, { 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,14 +93,14 @@ function Wn(e, n) {
|
|
|
93
93
|
/* @__PURE__ */ o("div", { className: n.Wave5 })
|
|
94
94
|
] });
|
|
95
95
|
default:
|
|
96
|
-
return /* @__PURE__ */ m(
|
|
96
|
+
return /* @__PURE__ */ m(K, { 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 Wn({ 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",
|
|
@@ -109,31 +109,31 @@ function Fn({ variant: e = "arcs", size: n = "md", color: r, className: t }) {
|
|
|
109
109
|
role: "status",
|
|
110
110
|
"aria-label": "Loading",
|
|
111
111
|
style: r ? { "--chures-accent": r } : void 0,
|
|
112
|
-
children:
|
|
112
|
+
children: On(e, me)
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
LoadingWrapperContainer:
|
|
116
|
+
const Fn = "_LoadingWrapperContainer_1q0w7_1", Hn = "_SkeletonWrapper_1q0w7_9", Pe = {
|
|
117
|
+
LoadingWrapperContainer: Fn,
|
|
118
118
|
SkeletonWrapper: Hn
|
|
119
119
|
};
|
|
120
120
|
function ms({ isLoading: e, children: n, skeleton: r, loaderProps: t, className: s }) {
|
|
121
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(
|
|
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(Wn, { ...t }) }) : /* @__PURE__ */ o(K, { children: n });
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
function
|
|
124
|
+
const Un = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
125
|
+
function $n(e) {
|
|
126
126
|
const { botId: n, redirectUri: r, requestAccess: t = "write" } = e, s = T(e.onSuccess);
|
|
127
127
|
s.current = e.onSuccess;
|
|
128
|
-
const a = T(!1), [i, c] =
|
|
128
|
+
const a = T(!1), [i, c] = k(!1), [d, u] = k(!1);
|
|
129
129
|
A(function() {
|
|
130
130
|
if (!n) return;
|
|
131
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
|
-
|
|
134
|
+
return g.src = Un, g.async = !0, g.onload = function() {
|
|
135
|
+
const y = window.Telegram;
|
|
136
|
+
y && (y.Login.init(
|
|
137
137
|
{ client_id: n, redirect_uri: h },
|
|
138
138
|
function(w) {
|
|
139
139
|
a.current || (a.current = !0, s.current(w));
|
|
@@ -152,22 +152,22 @@ function zn(e) {
|
|
|
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
|
-
a.current || (a.current = !0, s.current(
|
|
155
|
+
function(y) {
|
|
156
|
+
a.current || (a.current = !0, s.current(y));
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
return { login: l, isReady: i, isLoading: d };
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
TelegramSignInButtonContainer:
|
|
164
|
-
FullSize:
|
|
165
|
-
Icon:
|
|
166
|
-
},
|
|
162
|
+
const Gn = "_TelegramSignInButtonContainer_10wun_1", jn = "_FullSize_10wun_46", Vn = "_Icon_10wun_50", Se = {
|
|
163
|
+
TelegramSignInButtonContainer: Gn,
|
|
164
|
+
FullSize: jn,
|
|
165
|
+
Icon: Vn
|
|
166
|
+
}, Kn = {
|
|
167
167
|
en: "Continue with Telegram",
|
|
168
168
|
ru: "Войти через Telegram"
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function zn() {
|
|
171
171
|
return /* @__PURE__ */ o(
|
|
172
172
|
"svg",
|
|
173
173
|
{
|
|
@@ -196,9 +196,9 @@ function Xn({
|
|
|
196
196
|
const h = document.createElement("link");
|
|
197
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 ??
|
|
199
|
+
const c = s ?? t ?? Kn[r], d = B("TelegramSignInButton", i), u = C(Se.TelegramSignInButtonContainer, { [Se.FullSize]: a }, d);
|
|
200
200
|
return /* @__PURE__ */ m("button", { type: "button", className: u, onClick: e, disabled: n, children: [
|
|
201
|
-
/* @__PURE__ */ o(
|
|
201
|
+
/* @__PURE__ */ o(zn, {}),
|
|
202
202
|
c
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
@@ -212,8 +212,8 @@ function gs({
|
|
|
212
212
|
children: i,
|
|
213
213
|
className: c
|
|
214
214
|
}) {
|
|
215
|
-
const { login: d, isReady: u } =
|
|
216
|
-
return i ? /* @__PURE__ */ o(
|
|
215
|
+
const { login: d, isReady: u } = $n({ botId: e, onSuccess: n, redirectUri: s, requestAccess: a });
|
|
216
|
+
return i ? /* @__PURE__ */ o(K, { children: i({ login: d, isReady: u }) }) : /* @__PURE__ */ o(
|
|
217
217
|
Xn,
|
|
218
218
|
{
|
|
219
219
|
onClick: d,
|
|
@@ -225,7 +225,7 @@ function gs({
|
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
let Qn = 0;
|
|
228
|
-
const
|
|
228
|
+
const Ke = hn((e, n) => ({
|
|
229
229
|
toasts: [],
|
|
230
230
|
bake: (r) => {
|
|
231
231
|
const t = Qn++;
|
|
@@ -238,7 +238,7 @@ const Ve = hn((e, n) => ({
|
|
|
238
238
|
toasts: t.toasts.filter((s) => s.id !== r)
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
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",
|
|
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", V = {
|
|
242
242
|
ToastContainer: Yn,
|
|
243
243
|
Toast: Jn,
|
|
244
244
|
error: Zn,
|
|
@@ -250,8 +250,8 @@ const Ve = hn((e, n) => ({
|
|
|
250
250
|
slideOut: st
|
|
251
251
|
};
|
|
252
252
|
function Cs({ className: e } = {}) {
|
|
253
|
-
const { toasts: n } =
|
|
254
|
-
return /* @__PURE__ */ o("div", { className: C(
|
|
253
|
+
const { toasts: n } = Ke(), r = B("Toaster", e);
|
|
254
|
+
return /* @__PURE__ */ o("div", { className: C(V.ToastContainer, r), children: /* @__PURE__ */ o(ve, { children: n.map((t) => /* @__PURE__ */ o(
|
|
255
255
|
re.div,
|
|
256
256
|
{
|
|
257
257
|
layout: !0,
|
|
@@ -265,28 +265,28 @@ function Cs({ className: e } = {}) {
|
|
|
265
265
|
)) }) });
|
|
266
266
|
}
|
|
267
267
|
function at({ id: e, title: n, description: r, level: t, isDismissable: s }) {
|
|
268
|
-
const [a, i] =
|
|
268
|
+
const [a, i] = k(!1), c = Ke();
|
|
269
269
|
return A(() => () => {
|
|
270
270
|
i(!0);
|
|
271
271
|
}, []), /* @__PURE__ */ m(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
|
-
className: C(
|
|
275
|
-
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
274
|
+
className: C(V.Toast, {
|
|
275
|
+
[V.error]: t === "Error",
|
|
276
|
+
[V.warn]: t === "Warn",
|
|
277
|
+
[V.info]: t == null || t === "Info",
|
|
278
|
+
[V.slideIn]: !a,
|
|
279
|
+
[V.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: V.Description, children: r }),
|
|
284
|
+
s && e !== void 0 && /* @__PURE__ */ o("div", { className: V.DismissButton, onClick: () => c.dismiss(e), children: "×" })
|
|
285
285
|
]
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
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",
|
|
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", q = {
|
|
290
290
|
InputContainer: it,
|
|
291
291
|
InputField: ct,
|
|
292
292
|
hasStartIcon: lt,
|
|
@@ -299,60 +299,60 @@ const it = "_InputContainer_1uu20_15", ct = "_InputField_1uu20_21", lt = "_hasSt
|
|
|
299
299
|
lifted: mt,
|
|
300
300
|
ErrorText: gt,
|
|
301
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 },
|
|
303
|
-
const [w, D] =
|
|
304
|
-
return s ? /* @__PURE__ */ o("div", { className: C(
|
|
305
|
-
l && /* @__PURE__ */ o("span", { className:
|
|
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 }, y) {
|
|
303
|
+
const [w, D] = k(!1), M = w || n.length > 0, L = B("Input", d), { onFocus: f, onBlur: v, ...x } = g;
|
|
304
|
+
return s ? /* @__PURE__ */ o("div", { className: C(q.Skeleton, L), "aria-hidden": "true" }) : /* @__PURE__ */ m("div", { className: C(q.InputContainer, { [q.hasError]: !!c, [q.disabled]: i }, L), children: [
|
|
305
|
+
l && /* @__PURE__ */ o("span", { className: q.StartIcon, children: l }),
|
|
306
306
|
/* @__PURE__ */ o(
|
|
307
307
|
"input",
|
|
308
308
|
{
|
|
309
|
-
ref:
|
|
310
|
-
className: C(
|
|
309
|
+
ref: y,
|
|
310
|
+
className: C(q.InputField, { [q.hasStartIcon]: !!l, [q.hasEndIcon]: !!h }, u),
|
|
311
311
|
type: a,
|
|
312
312
|
value: n,
|
|
313
|
-
onChange: (
|
|
314
|
-
onFocus: (
|
|
315
|
-
D(!0), f?.(
|
|
313
|
+
onChange: (b) => r(b.target.value),
|
|
314
|
+
onFocus: (b) => {
|
|
315
|
+
D(!0), f?.(b);
|
|
316
316
|
},
|
|
317
|
-
onBlur: (
|
|
318
|
-
D(!1), v?.(
|
|
317
|
+
onBlur: (b) => {
|
|
318
|
+
D(!1), v?.(b);
|
|
319
319
|
},
|
|
320
320
|
disabled: i,
|
|
321
321
|
...x
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
|
-
t && /* @__PURE__ */ o("label", { className: C(
|
|
325
|
-
h && /* @__PURE__ */ o("span", { className:
|
|
326
|
-
c && /* @__PURE__ */ o("span", { className:
|
|
324
|
+
t && /* @__PURE__ */ o("label", { className: C(q.Label, { [q.lifted]: M }), children: t }),
|
|
325
|
+
h && /* @__PURE__ */ o("span", { className: q.EndIcon, children: h }),
|
|
326
|
+
c && /* @__PURE__ */ o("span", { className: q.ErrorText, children: c })
|
|
327
327
|
] });
|
|
328
|
-
}), wt = "_ToggleContainer_1jetc_6",
|
|
328
|
+
}), wt = "_ToggleContainer_1jetc_6", yt = "_disabled_1jetc_13", bt = "_Track_1jetc_18", Nt = "_on_1jetc_31", kt = "_Thumb_1jetc_39", It = "_Label_1jetc_57", St = "_LabelSkeleton_1jetc_63", Rt = "_Skeleton_1jetc_78", U = {
|
|
329
329
|
ToggleContainer: wt,
|
|
330
|
-
disabled:
|
|
331
|
-
Track:
|
|
332
|
-
on:
|
|
333
|
-
Thumb:
|
|
330
|
+
disabled: yt,
|
|
331
|
+
Track: bt,
|
|
332
|
+
on: Nt,
|
|
333
|
+
Thumb: kt,
|
|
334
334
|
Label: It,
|
|
335
335
|
LabelSkeleton: St,
|
|
336
336
|
Skeleton: Rt
|
|
337
337
|
};
|
|
338
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:
|
|
340
|
-
return a ? d ? /* @__PURE__ */ m("div", { className: C(
|
|
339
|
+
const d = !!r || i, u = B("Toggle", c), l = i ? /* @__PURE__ */ o("span", { className: U.LabelSkeleton, "aria-hidden": "true" }) : r ? /* @__PURE__ */ o("span", { className: U.Label, children: r }) : null;
|
|
340
|
+
return a ? d ? /* @__PURE__ */ m("div", { className: C(U.ToggleContainer, u), children: [
|
|
341
341
|
t === "left" && l,
|
|
342
|
-
/* @__PURE__ */ o("div", { className:
|
|
342
|
+
/* @__PURE__ */ o("div", { className: U.Skeleton, "aria-hidden": "true" }),
|
|
343
343
|
t === "right" && l
|
|
344
|
-
] }) : /* @__PURE__ */ o("div", { className: C(
|
|
344
|
+
] }) : /* @__PURE__ */ o("div", { className: C(U.Skeleton, u), "aria-hidden": "true" }) : /* @__PURE__ */ m("label", { className: C(U.ToggleContainer, { [U.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: C(
|
|
351
|
+
className: C(U.Track, { [U.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: U.Thumb })
|
|
356
356
|
}
|
|
357
357
|
),
|
|
358
358
|
t === "right" && l
|
|
@@ -367,10 +367,10 @@ const Tt = "_SegmentedControlContainer_ga29h_2", Dt = "_Disabled_ga29h_20", Lt =
|
|
|
367
367
|
Selected: Et
|
|
368
368
|
}, At = 0.35;
|
|
369
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] =
|
|
370
|
+
const a = B("SegmentedControl", s), i = dn(), c = T(/* @__PURE__ */ new Map()), d = T(null), u = T(n), [l, h] = k(null), g = E(() => {
|
|
371
371
|
const f = c.current.get(n);
|
|
372
372
|
return f ? { left: f.offsetLeft, width: f.offsetWidth } : null;
|
|
373
|
-
}, [n]),
|
|
373
|
+
}, [n]), y = E((f) => {
|
|
374
374
|
const v = g();
|
|
375
375
|
if (!v) {
|
|
376
376
|
d.current = null, h(null);
|
|
@@ -381,28 +381,28 @@ function ws({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
|
381
381
|
h({ left: [v.left], width: [v.width], duration: 0 });
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const b = Math.min(x.left, v.left), F = Math.max(x.left + x.width, v.left + v.width);
|
|
385
385
|
h({
|
|
386
|
-
left: [x.left,
|
|
387
|
-
width: [x.width,
|
|
386
|
+
left: [x.left, b, v.left],
|
|
387
|
+
width: [x.width, F - b, v.width],
|
|
388
388
|
duration: At
|
|
389
389
|
});
|
|
390
390
|
}, [g, i]);
|
|
391
391
|
ue(() => {
|
|
392
392
|
const f = u.current !== n;
|
|
393
|
-
u.current = n,
|
|
394
|
-
}, [n, e,
|
|
395
|
-
const f = new ResizeObserver(() =>
|
|
393
|
+
u.current = n, y(f);
|
|
394
|
+
}, [n, e, y]), A(() => {
|
|
395
|
+
const f = new ResizeObserver(() => y(!1));
|
|
396
396
|
return c.current.forEach((v) => f.observe(v)), () => f.disconnect();
|
|
397
|
-
}, [e,
|
|
397
|
+
}, [e, y]);
|
|
398
398
|
const w = e.filter((f) => !f.disabled), D = w.some((f) => f.value === n) ? n : w[0]?.value;
|
|
399
399
|
function M(f) {
|
|
400
400
|
if (t) return;
|
|
401
401
|
const v = f.key === "ArrowRight" || f.key === "ArrowDown", x = f.key === "ArrowLeft" || f.key === "ArrowUp";
|
|
402
402
|
if (!v && !x) return;
|
|
403
403
|
f.preventDefault();
|
|
404
|
-
const
|
|
405
|
-
|
|
404
|
+
const b = w.findIndex(($) => $.value === n), I = b === -1 ? 0 : (b + (v ? 1 : -1) + w.length) % w.length, W = w[I];
|
|
405
|
+
W && (r(W.value), c.current.get(W.value)?.focus());
|
|
406
406
|
}
|
|
407
407
|
function L(f) {
|
|
408
408
|
t || f.disabled || f.value === n || r(f.value);
|
|
@@ -466,14 +466,14 @@ function Pt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
|
|
|
466
466
|
}
|
|
467
467
|
);
|
|
468
468
|
}
|
|
469
|
-
const Mt = "_CheckboxContainer_14vl9_4",
|
|
469
|
+
const Mt = "_CheckboxContainer_14vl9_4", qt = "_disabled_14vl9_12", Ot = "_BoxWrapper_14vl9_17", Wt = "_Box_14vl9_17", Ft = "_Label_14vl9_62", ce = {
|
|
470
470
|
CheckboxContainer: Mt,
|
|
471
|
-
disabled:
|
|
472
|
-
BoxWrapper:
|
|
473
|
-
Box:
|
|
474
|
-
Label:
|
|
471
|
+
disabled: qt,
|
|
472
|
+
BoxWrapper: Ot,
|
|
473
|
+
Box: Wt,
|
|
474
|
+
Label: Ft
|
|
475
475
|
};
|
|
476
|
-
function
|
|
476
|
+
function ys({ checked: e, onChange: n, label: r, disabled: t, className: s }) {
|
|
477
477
|
const a = B("Checkbox", s);
|
|
478
478
|
return /* @__PURE__ */ m("label", { className: C(ce.CheckboxContainer, { [ce.disabled]: t }, a), children: [
|
|
479
479
|
/* @__PURE__ */ m("span", { className: ce.BoxWrapper, children: [
|
|
@@ -492,10 +492,10 @@ function bs({ checked: e, onChange: n, label: r, disabled: t, className: s }) {
|
|
|
492
492
|
] });
|
|
493
493
|
}
|
|
494
494
|
function Ht() {
|
|
495
|
-
const [e, n] =
|
|
495
|
+
const [e, n] = k(!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 Ut(e, n, r) {
|
|
499
499
|
A(() => {
|
|
500
500
|
function t(a) {
|
|
501
501
|
const i = a.target;
|
|
@@ -509,8 +509,8 @@ function qt(e, n, r) {
|
|
|
509
509
|
};
|
|
510
510
|
}, [n, e, r]);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
const [r, t] =
|
|
512
|
+
function $t(e, n) {
|
|
513
|
+
const [r, t] = k([]);
|
|
514
514
|
return A(() => {
|
|
515
515
|
if (!n) return;
|
|
516
516
|
let s = !1;
|
|
@@ -524,10 +524,10 @@ function zt(e, n) {
|
|
|
524
524
|
function le(e) {
|
|
525
525
|
return typeof e == "object" && e !== null && "group" in e;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function ze(e) {
|
|
528
528
|
return e.flatMap((n) => le(n) ? n.options : [n]);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function O(e) {
|
|
531
531
|
return typeof e == "string" ? e : e.id;
|
|
532
532
|
}
|
|
533
533
|
function we(e) {
|
|
@@ -536,19 +536,19 @@ function we(e) {
|
|
|
536
536
|
function Xe(e) {
|
|
537
537
|
return typeof e == "string" ? !1 : !!e.disabled;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Gt(e) {
|
|
540
540
|
return typeof e == "string" ? void 0 : e.title;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
return e.map((r) => n.find((t) =>
|
|
542
|
+
function jt(e, n) {
|
|
543
|
+
return e.map((r) => n.find((t) => O(t) === r) ?? r);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Vt({ anchorRect: e, panelHeight: n, viewportHeight: r, gap: t }) {
|
|
546
546
|
const s = Math.max(0, r - e.bottom - t), a = Math.max(0, e.top - t);
|
|
547
547
|
return !(n <= s) && a > s ? { side: "above", availableHeight: a } : { side: "below", availableHeight: s };
|
|
548
548
|
}
|
|
549
|
-
const
|
|
550
|
-
DropdownContainer:
|
|
551
|
-
PanelWrapper:
|
|
549
|
+
const Kt = "_DropdownContainer_17q3h_18", zt = "_PanelWrapper_17q3h_25", Xt = "_Portal_17q3h_39", Qt = "_Above_17q3h_47", Yt = "_PanelContainer_17q3h_23", Jt = "_Glass_17q3h_64", Zt = "_Label_17q3h_70", eo = "_lifted_17q3h_84", no = "_TriggerContainer_17q3h_91", to = "_Open_17q3h_115", oo = "_TriggerPlaceholder_17q3h_120", ro = "_TriggerValue_17q3h_128", so = "_TriggerIcon_17q3h_136", ao = "_ChipsWrapper_17q3h_143", io = "_Expand_17q3h_161", co = "_MultiSelect_17q3h_167", lo = "_ExpandHeight_17q3h_172", uo = "_RichValue_17q3h_177", ho = "_TriggerValueRich_17q3h_183", fo = "_Chip_17q3h_143", _o = "_SearchRow_17q3h_203", po = "_SearchBox_17q3h_209", mo = "_SearchIcon_17q3h_219", go = "_SearchInput_17q3h_226", Co = "_ResultsList_17q3h_240", vo = "_OptionRow_17q3h_246", wo = "_Selected_17q3h_261", yo = "_Indented_17q3h_265", bo = "_Disabled_17q3h_269", No = "_GroupHeader_17q3h_280", ko = "_Checkmark_17q3h_293", Io = "_CreateRow_17q3h_299", So = "_WithBorder_17q3h_312", Ro = "_CreateIcon_17q3h_317", To = "_CreateLabel_17q3h_329", Do = "_EmptyHint_17q3h_335", Lo = "_SkeletonRow_17q3h_342", p = {
|
|
550
|
+
DropdownContainer: Kt,
|
|
551
|
+
PanelWrapper: zt,
|
|
552
552
|
Portal: Xt,
|
|
553
553
|
Above: Qt,
|
|
554
554
|
PanelContainer: Yt,
|
|
@@ -574,10 +574,10 @@ const Vt = "_DropdownContainer_bhkjz_18", Kt = "_PanelWrapper_bhkjz_25", Xt = "_
|
|
|
574
574
|
ResultsList: Co,
|
|
575
575
|
OptionRow: vo,
|
|
576
576
|
Selected: wo,
|
|
577
|
-
Indented:
|
|
578
|
-
Disabled:
|
|
579
|
-
GroupHeader:
|
|
580
|
-
Checkmark:
|
|
577
|
+
Indented: yo,
|
|
578
|
+
Disabled: bo,
|
|
579
|
+
GroupHeader: No,
|
|
580
|
+
Checkmark: ko,
|
|
581
581
|
CreateRow: Io,
|
|
582
582
|
WithBorder: So,
|
|
583
583
|
CreateIcon: Ro,
|
|
@@ -640,7 +640,7 @@ function Me({ opt: e, isSelected: n, multiSelect: r, onPick: t, indented: s = !1
|
|
|
640
640
|
{
|
|
641
641
|
className: C(p.OptionRow, n && p.Selected, s && p.Indented, a && p.Disabled),
|
|
642
642
|
onMouseDown: i,
|
|
643
|
-
title:
|
|
643
|
+
title: Gt(e),
|
|
644
644
|
children: [
|
|
645
645
|
r && n && /* @__PURE__ */ o("span", { className: p.Checkmark, children: "✓" }),
|
|
646
646
|
we(e)
|
|
@@ -668,7 +668,7 @@ function Ao({ inputRef: e, query: n, onChange: r, onKeyDown: t, placeholder: s }
|
|
|
668
668
|
] }) });
|
|
669
669
|
}
|
|
670
670
|
function Po({ count: e }) {
|
|
671
|
-
return /* @__PURE__ */ o(
|
|
671
|
+
return /* @__PURE__ */ o(K, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ o("div", { className: p.SkeletonRow }, r)) });
|
|
672
672
|
}
|
|
673
673
|
function Mo({
|
|
674
674
|
onSearch: e,
|
|
@@ -684,20 +684,20 @@ function Mo({
|
|
|
684
684
|
selectedAtTop: l = !1,
|
|
685
685
|
isLoading: h = !1,
|
|
686
686
|
emptyHint: g = "no results found",
|
|
687
|
-
skeletonRowCount:
|
|
687
|
+
skeletonRowCount: y = 4,
|
|
688
688
|
onError: w = console.error,
|
|
689
689
|
glass: D = !1,
|
|
690
690
|
portal: M = !0,
|
|
691
691
|
renderOption: L,
|
|
692
692
|
footerAction: f
|
|
693
693
|
}) {
|
|
694
|
-
const [v, x] =
|
|
695
|
-
|
|
694
|
+
const [v, x] = k(""), [b, F] = k(!1), [I, W] = k(null), [$, ee] = k(0), [S, R] = k(0), Y = T(null), se = T(null), ae = !!e, be = $t(v, e);
|
|
695
|
+
Ut(se, t, s);
|
|
696
696
|
const H = D || M;
|
|
697
697
|
ue(() => {
|
|
698
698
|
if (!H) return;
|
|
699
699
|
function _() {
|
|
700
|
-
s?.current &&
|
|
700
|
+
s?.current && W(s.current.getBoundingClientRect());
|
|
701
701
|
}
|
|
702
702
|
return _(), window.addEventListener("scroll", _, !0), window.addEventListener("resize", _), () => {
|
|
703
703
|
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _);
|
|
@@ -710,20 +710,20 @@ function Mo({
|
|
|
710
710
|
}), A(() => {
|
|
711
711
|
ae && Y.current?.focus();
|
|
712
712
|
}, [ae]);
|
|
713
|
-
const
|
|
713
|
+
const z = (e ? be : i).flatMap((_) => {
|
|
714
714
|
if (le(_)) {
|
|
715
|
-
const P = _.options.filter((pe) => !c.includes(
|
|
715
|
+
const P = _.options.filter((pe) => !c.includes(O(pe)));
|
|
716
716
|
return P.length > 0 ? [{ ..._, options: P }] : [];
|
|
717
717
|
}
|
|
718
|
-
return c.includes(
|
|
718
|
+
return c.includes(O(_)) ? [] : [_];
|
|
719
719
|
}), he = l ? [
|
|
720
|
-
...
|
|
721
|
-
...
|
|
722
|
-
] :
|
|
720
|
+
...z.filter((_) => !le(_) && d.includes(O(_))),
|
|
721
|
+
...z.filter((_) => le(_) || !d.includes(O(_)))
|
|
722
|
+
] : z, ne = ze(he), ie = v.trim(), on = ne.some(
|
|
723
723
|
(_) => we(_).toLowerCase() === ie.toLowerCase()
|
|
724
724
|
), fe = !!n && ie.length > 0 && !on;
|
|
725
725
|
async function Be() {
|
|
726
|
-
!ie ||
|
|
726
|
+
!ie || b || !n || (F(!0), n(ie).then(te).catch(w).finally(() => F(!1)));
|
|
727
727
|
}
|
|
728
728
|
function te(_) {
|
|
729
729
|
Xe(_) || (r(_), u || t());
|
|
@@ -739,7 +739,7 @@ function Mo({
|
|
|
739
739
|
}
|
|
740
740
|
const cn = a ?? (n ? "search or add new…" : "search…");
|
|
741
741
|
if (H && !I) return null;
|
|
742
|
-
const _e = H && I ?
|
|
742
|
+
const _e = H && I ? Vt({ anchorRect: I, panelHeight: $, viewportHeight: window.innerHeight, gap: S }) : null, ln = H && I && _e ? {
|
|
743
743
|
left: I.left,
|
|
744
744
|
width: I.width,
|
|
745
745
|
..._e.side === "above" ? { bottom: window.innerHeight - I.top } : { top: I.bottom },
|
|
@@ -764,11 +764,11 @@ function Mo({
|
|
|
764
764
|
placeholder: cn
|
|
765
765
|
}
|
|
766
766
|
),
|
|
767
|
-
/* @__PURE__ */ o("div", { className: p.ResultsList, children: h ? /* @__PURE__ */ o(Po, { count:
|
|
768
|
-
he.map((_) => le(_) ? /* @__PURE__ */ m(
|
|
767
|
+
/* @__PURE__ */ o("div", { className: p.ResultsList, children: h ? /* @__PURE__ */ o(Po, { count: y }) : /* @__PURE__ */ m(K, { children: [
|
|
768
|
+
he.map((_) => le(_) ? /* @__PURE__ */ m(Ne, { children: [
|
|
769
769
|
/* @__PURE__ */ o(Eo, { label: _.group }),
|
|
770
|
-
_.options.map((P) => /* @__PURE__ */ o(
|
|
771
|
-
isSelected: d.includes(
|
|
770
|
+
_.options.map((P) => /* @__PURE__ */ o(Ne, { children: L ? L(P, {
|
|
771
|
+
isSelected: d.includes(O(P)),
|
|
772
772
|
multiSelect: u,
|
|
773
773
|
indented: !0,
|
|
774
774
|
onPick: () => te(P)
|
|
@@ -776,14 +776,14 @@ function Mo({
|
|
|
776
776
|
Me,
|
|
777
777
|
{
|
|
778
778
|
opt: P,
|
|
779
|
-
isSelected: d.includes(
|
|
779
|
+
isSelected: d.includes(O(P)),
|
|
780
780
|
multiSelect: u,
|
|
781
781
|
onPick: te,
|
|
782
782
|
indented: !0
|
|
783
783
|
}
|
|
784
|
-
) },
|
|
785
|
-
] }, `group:${_.group}`) : /* @__PURE__ */ o(
|
|
786
|
-
isSelected: d.includes(
|
|
784
|
+
) }, O(P)))
|
|
785
|
+
] }, `group:${_.group}`) : /* @__PURE__ */ o(Ne, { children: L ? L(_, {
|
|
786
|
+
isSelected: d.includes(O(_)),
|
|
787
787
|
multiSelect: u,
|
|
788
788
|
indented: !1,
|
|
789
789
|
onPick: () => te(_)
|
|
@@ -791,11 +791,11 @@ function Mo({
|
|
|
791
791
|
Me,
|
|
792
792
|
{
|
|
793
793
|
opt: _,
|
|
794
|
-
isSelected: d.includes(
|
|
794
|
+
isSelected: d.includes(O(_)),
|
|
795
795
|
multiSelect: u,
|
|
796
796
|
onPick: te
|
|
797
797
|
}
|
|
798
|
-
) },
|
|
798
|
+
) }, O(_))),
|
|
799
799
|
fe && /* @__PURE__ */ o(
|
|
800
800
|
xo,
|
|
801
801
|
{
|
|
@@ -820,7 +820,7 @@ function Mo({
|
|
|
820
820
|
);
|
|
821
821
|
return H ? xe(Ee, document.body) : Ee;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function qo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
824
824
|
return /* @__PURE__ */ o(
|
|
825
825
|
"svg",
|
|
826
826
|
{
|
|
@@ -837,7 +837,7 @@ function Oo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
837
837
|
}
|
|
838
838
|
);
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function bs() {
|
|
841
841
|
return /* @__PURE__ */ m(
|
|
842
842
|
"svg",
|
|
843
843
|
{
|
|
@@ -856,7 +856,7 @@ function ys() {
|
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function Ns() {
|
|
860
860
|
return /* @__PURE__ */ m(
|
|
861
861
|
"svg",
|
|
862
862
|
{
|
|
@@ -875,7 +875,7 @@ function ks() {
|
|
|
875
875
|
}
|
|
876
876
|
);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Oo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
879
879
|
return /* @__PURE__ */ m(
|
|
880
880
|
"svg",
|
|
881
881
|
{
|
|
@@ -895,7 +895,7 @@ function Wo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Wo({
|
|
899
899
|
triggerRef: e,
|
|
900
900
|
isOpen: n,
|
|
901
901
|
onClick: r,
|
|
@@ -923,12 +923,12 @@ function Fo({
|
|
|
923
923
|
"aria-haspopup": "listbox",
|
|
924
924
|
children: [
|
|
925
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(
|
|
926
|
+
/* @__PURE__ */ o("span", { className: p.TriggerIcon, children: /* @__PURE__ */ o(qo, { size: 12 }) })
|
|
927
927
|
]
|
|
928
928
|
}
|
|
929
929
|
);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function ks({
|
|
932
932
|
options: e = [],
|
|
933
933
|
value: n,
|
|
934
934
|
onChange: r,
|
|
@@ -942,7 +942,7 @@ function Ns({
|
|
|
942
942
|
placeholder: l = "select…",
|
|
943
943
|
searchPlaceholder: h,
|
|
944
944
|
emptyHint: g,
|
|
945
|
-
isLoading:
|
|
945
|
+
isLoading: y,
|
|
946
946
|
skeletonRowCount: w,
|
|
947
947
|
onError: D,
|
|
948
948
|
className: M,
|
|
@@ -950,30 +950,30 @@ function Ns({
|
|
|
950
950
|
portal: f = !0,
|
|
951
951
|
renderOption: v,
|
|
952
952
|
renderValue: x,
|
|
953
|
-
footerAction:
|
|
954
|
-
children:
|
|
953
|
+
footerAction: b,
|
|
954
|
+
children: F
|
|
955
955
|
}) {
|
|
956
|
-
const { isOpen: I, triggerRef:
|
|
956
|
+
const { isOpen: I, triggerRef: W, toggleOpen: $, close: ee } = Ht(), S = B("Dropdown", M), R = jt(n, ze(e)), Y = I || R.length > 0, se = u && !Y ? "" : l;
|
|
957
957
|
function ae(H) {
|
|
958
|
-
const
|
|
958
|
+
const z = O(H);
|
|
959
959
|
r(
|
|
960
|
-
i ? n.includes(
|
|
960
|
+
i ? n.includes(z) ? n.filter((he) => he !== z) : [...n, z] : [z]
|
|
961
961
|
);
|
|
962
962
|
}
|
|
963
|
-
const
|
|
964
|
-
ref:
|
|
965
|
-
onClick:
|
|
963
|
+
const be = {
|
|
964
|
+
ref: W,
|
|
965
|
+
onClick: $,
|
|
966
966
|
"aria-expanded": I,
|
|
967
967
|
"aria-haspopup": "listbox"
|
|
968
968
|
};
|
|
969
969
|
return /* @__PURE__ */ m("div", { className: C(p.DropdownContainer, S), children: [
|
|
970
970
|
u && /* @__PURE__ */ o("label", { className: C(p.Label, { [p.lifted]: Y }), children: u }),
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
F ? F({ selectedOptions: R, isOpen: I, toggleOpen: $, close: ee, triggerProps: be }) : /* @__PURE__ */ o(
|
|
972
|
+
Wo,
|
|
973
973
|
{
|
|
974
|
-
triggerRef:
|
|
974
|
+
triggerRef: W,
|
|
975
975
|
isOpen: I,
|
|
976
|
-
onClick:
|
|
976
|
+
onClick: $,
|
|
977
977
|
selectedOptions: R,
|
|
978
978
|
multiSelect: i,
|
|
979
979
|
onOverflow: d,
|
|
@@ -989,33 +989,33 @@ function Ns({
|
|
|
989
989
|
onCreate: s,
|
|
990
990
|
onPick: ae,
|
|
991
991
|
onClose: ee,
|
|
992
|
-
anchorRef:
|
|
992
|
+
anchorRef: W,
|
|
993
993
|
excluded: a,
|
|
994
994
|
multiSelect: i,
|
|
995
995
|
selectedAtTop: c,
|
|
996
996
|
selected: n,
|
|
997
997
|
placeholder: h,
|
|
998
998
|
emptyHint: g,
|
|
999
|
-
isLoading:
|
|
999
|
+
isLoading: y,
|
|
1000
1000
|
skeletonRowCount: w,
|
|
1001
1001
|
onError: D,
|
|
1002
1002
|
glass: L,
|
|
1003
1003
|
portal: f,
|
|
1004
1004
|
renderOption: v,
|
|
1005
|
-
footerAction:
|
|
1005
|
+
footerAction: b
|
|
1006
1006
|
}
|
|
1007
1007
|
)
|
|
1008
1008
|
] });
|
|
1009
1009
|
}
|
|
1010
|
-
const
|
|
1011
|
-
Btn:
|
|
1010
|
+
const Fo = "_Btn_1wp07_10", Ho = "_Unstyled_1wp07_35", Uo = "_Primary_1wp07_52", $o = "_Secondary_1wp07_67", Go = "_Ghost_1wp07_79", jo = "_IconDanger_1wp07_91", Vo = "_Danger_1wp07_112", Z = {
|
|
1011
|
+
Btn: Fo,
|
|
1012
1012
|
Unstyled: Ho,
|
|
1013
|
-
Primary:
|
|
1014
|
-
Secondary:
|
|
1015
|
-
Ghost:
|
|
1016
|
-
IconDanger:
|
|
1017
|
-
Danger:
|
|
1018
|
-
},
|
|
1013
|
+
Primary: Uo,
|
|
1014
|
+
Secondary: $o,
|
|
1015
|
+
Ghost: Go,
|
|
1016
|
+
IconDanger: jo,
|
|
1017
|
+
Danger: Vo
|
|
1018
|
+
}, Ko = {
|
|
1019
1019
|
primary: Z.Primary,
|
|
1020
1020
|
secondary: Z.Secondary,
|
|
1021
1021
|
danger: Z.Danger,
|
|
@@ -1030,13 +1030,13 @@ function Qe({ variant: e = "default", className: n, children: r, ...t }) {
|
|
|
1030
1030
|
{
|
|
1031
1031
|
type: "button",
|
|
1032
1032
|
...t,
|
|
1033
|
-
className: C(!(e === "unstyled") && Z.Btn,
|
|
1033
|
+
className: C(!(e === "unstyled") && Z.Btn, Ko[e], s),
|
|
1034
1034
|
children: r
|
|
1035
1035
|
}
|
|
1036
1036
|
);
|
|
1037
1037
|
}
|
|
1038
|
-
const
|
|
1039
|
-
ConfirmWrapper:
|
|
1038
|
+
const zo = "_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", G = {
|
|
1039
|
+
ConfirmWrapper: zo,
|
|
1040
1040
|
ConfirmContainer: Xo,
|
|
1041
1041
|
Glass: Qo,
|
|
1042
1042
|
ConfirmTitle: Yo,
|
|
@@ -1057,21 +1057,21 @@ function Is({
|
|
|
1057
1057
|
className: c,
|
|
1058
1058
|
glass: d = !1
|
|
1059
1059
|
}) {
|
|
1060
|
-
const [u, l] =
|
|
1060
|
+
const [u, l] = k(!1), h = B("ConfirmDialog", c);
|
|
1061
1061
|
function g() {
|
|
1062
1062
|
l(!0), Promise.resolve(a()).finally(() => {
|
|
1063
1063
|
l(!1), i();
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
|
-
return /* @__PURE__ */ o("div", { className:
|
|
1067
|
-
/* @__PURE__ */ o("h2", { className:
|
|
1068
|
-
/* @__PURE__ */ o("p", { className:
|
|
1069
|
-
/* @__PURE__ */ m("div", { className:
|
|
1070
|
-
/* @__PURE__ */ o("button", { className:
|
|
1066
|
+
return /* @__PURE__ */ o("div", { className: G.ConfirmWrapper, children: /* @__PURE__ */ m("div", { className: C(G.ConfirmContainer, { [G.Glass]: d }, h), role: "dialog", "aria-modal": "true", children: [
|
|
1067
|
+
/* @__PURE__ */ o("h2", { className: G.ConfirmTitle, children: e }),
|
|
1068
|
+
/* @__PURE__ */ o("p", { className: G.ConfirmMessage, children: n }),
|
|
1069
|
+
/* @__PURE__ */ m("div", { className: G.ConfirmActions, children: [
|
|
1070
|
+
/* @__PURE__ */ o("button", { className: G.BtnCancel, type: "button", onClick: i, disabled: u, children: t }),
|
|
1071
1071
|
/* @__PURE__ */ o(
|
|
1072
1072
|
"button",
|
|
1073
1073
|
{
|
|
1074
|
-
className: C(s ?
|
|
1074
|
+
className: C(s ? G.BtnDanger : G.BtnConfirm),
|
|
1075
1075
|
type: "button",
|
|
1076
1076
|
onClick: g,
|
|
1077
1077
|
disabled: u,
|
|
@@ -1151,7 +1151,7 @@ const ur = "_Backdrop_1w1e3_7", dr = "_BackdropOpen_1w1e3_16", hr = "_Panel_1w1e
|
|
|
1151
1151
|
Bottom: mr,
|
|
1152
1152
|
PanelOpen: gr
|
|
1153
1153
|
}, de = [];
|
|
1154
|
-
let Cr = 1,
|
|
1154
|
+
let Cr = 1, ye = !1, Re = 0;
|
|
1155
1155
|
function Ye() {
|
|
1156
1156
|
if (Re > 0) {
|
|
1157
1157
|
Re -= 1;
|
|
@@ -1161,20 +1161,20 @@ function Ye() {
|
|
|
1161
1161
|
Je(), e && e.onBack();
|
|
1162
1162
|
}
|
|
1163
1163
|
function vr() {
|
|
1164
|
-
|
|
1164
|
+
ye || (ye = !0, window.addEventListener("popstate", Ye));
|
|
1165
1165
|
}
|
|
1166
1166
|
function Je() {
|
|
1167
|
-
de.length > 0 || !
|
|
1167
|
+
de.length > 0 || !ye || (ye = !1, window.removeEventListener("popstate", Ye));
|
|
1168
1168
|
}
|
|
1169
1169
|
function wr(e) {
|
|
1170
1170
|
const n = Cr++;
|
|
1171
1171
|
return de.push({ handle: n, onBack: e }), vr(), window.history.pushState({ churesOverlayBackHandle: n }, ""), n;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function qe(e) {
|
|
1174
1174
|
const n = de.findIndex((t) => t.handle === e);
|
|
1175
1175
|
n === -1 || (de.splice(n, 1), Je(), window.history.state?.churesOverlayBackHandle !== e) || (Re += 1, window.history.back());
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function yr(e, n) {
|
|
1178
1178
|
const r = T([]), t = T(n);
|
|
1179
1179
|
t.current = n, A(() => {
|
|
1180
1180
|
const s = r.current;
|
|
@@ -1182,34 +1182,34 @@ function br(e, n) {
|
|
|
1182
1182
|
s.push(wr(() => t.current()));
|
|
1183
1183
|
for (; s.length > e; ) {
|
|
1184
1184
|
const a = s.pop();
|
|
1185
|
-
a !== void 0 &&
|
|
1185
|
+
a !== void 0 && qe(a);
|
|
1186
1186
|
}
|
|
1187
1187
|
}, [e]), A(() => () => {
|
|
1188
1188
|
const s = r.current;
|
|
1189
1189
|
for (; s.length > 0; ) {
|
|
1190
1190
|
const a = s.pop();
|
|
1191
|
-
a !== void 0 &&
|
|
1191
|
+
a !== void 0 && qe(a);
|
|
1192
1192
|
}
|
|
1193
1193
|
}, []);
|
|
1194
1194
|
}
|
|
1195
|
-
const
|
|
1195
|
+
const br = {
|
|
1196
1196
|
top: Q.Top,
|
|
1197
1197
|
right: Q.Right,
|
|
1198
1198
|
bottom: Q.Bottom,
|
|
1199
1199
|
left: Q.Left
|
|
1200
1200
|
};
|
|
1201
1201
|
let X = null, Ie = 0;
|
|
1202
|
-
function
|
|
1202
|
+
function Oe() {
|
|
1203
1203
|
return X || (X = document.createElement("div"), X.setAttribute("data-chures-side-drawer-root", ""), document.body.appendChild(X)), X;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ds({ open: e, onClose: n, children: r, side: t = "right", backdropBlur: s = 0, className: a }) {
|
|
1206
|
-
const [i, c] =
|
|
1207
|
-
|
|
1206
|
+
const [i, c] = k(!1), d = B("SideDrawer", a);
|
|
1207
|
+
yr(e ? 1 : 0, n), ue(() => {
|
|
1208
1208
|
if (!e) {
|
|
1209
1209
|
c(!1);
|
|
1210
1210
|
return;
|
|
1211
1211
|
}
|
|
1212
|
-
document.body.appendChild(
|
|
1212
|
+
document.body.appendChild(Oe());
|
|
1213
1213
|
const l = requestAnimationFrame(() => c(!0));
|
|
1214
1214
|
return () => cancelAnimationFrame(l);
|
|
1215
1215
|
}, [e]), A(() => (Ie += 1, () => {
|
|
@@ -1217,7 +1217,7 @@ function Ds({ open: e, onClose: n, children: r, side: t = "right", backdropBlur:
|
|
|
1217
1217
|
}), []);
|
|
1218
1218
|
const u = s > 0 ? { backdropFilter: `blur(${s}rem)`, WebkitBackdropFilter: `blur(${s}rem)` } : void 0;
|
|
1219
1219
|
return xe(
|
|
1220
|
-
/* @__PURE__ */ m(
|
|
1220
|
+
/* @__PURE__ */ m(K, { children: [
|
|
1221
1221
|
/* @__PURE__ */ o(
|
|
1222
1222
|
"div",
|
|
1223
1223
|
{
|
|
@@ -1226,17 +1226,17 @@ function Ds({ open: e, onClose: n, children: r, side: t = "right", backdropBlur:
|
|
|
1226
1226
|
onClick: n
|
|
1227
1227
|
}
|
|
1228
1228
|
),
|
|
1229
|
-
/* @__PURE__ */ o("div", { className: C(Q.Panel,
|
|
1229
|
+
/* @__PURE__ */ o("div", { className: C(Q.Panel, br[t], i && Q.PanelOpen, d), children: r })
|
|
1230
1230
|
] }),
|
|
1231
|
-
|
|
1231
|
+
Oe()
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
|
-
const Te =
|
|
1235
|
-
function
|
|
1236
|
-
return
|
|
1234
|
+
const Te = $e(!0);
|
|
1235
|
+
function Nr() {
|
|
1236
|
+
return Ge(Te);
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1239
|
-
FlyoutMenuContainer:
|
|
1238
|
+
const kr = "_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", qr = "_Icon_1q0ma_135", Or = "_Label_1q0ma_140", Wr = "_Arrow_1q0ma_148", Fr = "_MenuSkeletonContainer_1q0ma_156", Hr = "_MenuSkeletonRow_1q0ma_163", Ur = "_MenuSearchFieldContainer_1q0ma_191", N = {
|
|
1239
|
+
FlyoutMenuContainer: kr,
|
|
1240
1240
|
Backdrop: Ir,
|
|
1241
1241
|
Panel: Sr,
|
|
1242
1242
|
Submenu: Rr,
|
|
@@ -1249,15 +1249,15 @@ const Nr = "_FlyoutMenuContainer_1q0ma_5", Ir = "_Backdrop_1q0ma_9", Sr = "_Pane
|
|
|
1249
1249
|
MenuRowContainer: Ar,
|
|
1250
1250
|
Dim: Pr,
|
|
1251
1251
|
Row: Mr,
|
|
1252
|
-
Icon:
|
|
1253
|
-
Label:
|
|
1254
|
-
Arrow:
|
|
1255
|
-
MenuSkeletonContainer:
|
|
1252
|
+
Icon: qr,
|
|
1253
|
+
Label: Or,
|
|
1254
|
+
Arrow: Wr,
|
|
1255
|
+
MenuSkeletonContainer: Fr,
|
|
1256
1256
|
MenuSkeletonRow: Hr,
|
|
1257
|
-
MenuSearchFieldContainer:
|
|
1258
|
-
},
|
|
1259
|
-
function
|
|
1260
|
-
const t =
|
|
1257
|
+
MenuSearchFieldContainer: Ur
|
|
1258
|
+
}, $r = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1259
|
+
function We({ item: e, menu: n, dim: r }) {
|
|
1260
|
+
const t = Nr(), s = e.submenu;
|
|
1261
1261
|
function a(i) {
|
|
1262
1262
|
if (s) {
|
|
1263
1263
|
n.toggleSubmenuFrom(i.currentTarget, s);
|
|
@@ -1265,50 +1265,50 @@ function Fe({ item: e, menu: n, dim: r }) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
e.disabled || n.selectItem(e);
|
|
1267
1267
|
}
|
|
1268
|
-
return /* @__PURE__ */ o(re.div, { layout: t, transition:
|
|
1268
|
+
return /* @__PURE__ */ o(re.div, { layout: t, transition: $r, className: C(N.MenuRowContainer, r && N.Dim), children: /* @__PURE__ */ m(
|
|
1269
1269
|
Qe,
|
|
1270
1270
|
{
|
|
1271
1271
|
variant: "unstyled",
|
|
1272
|
-
className:
|
|
1272
|
+
className: N.Row,
|
|
1273
1273
|
disabled: e.disabled,
|
|
1274
1274
|
"aria-haspopup": s ? "menu" : void 0,
|
|
1275
1275
|
onClick: a,
|
|
1276
1276
|
onMouseEnter: s ? (i) => n.openSubmenuFrom(i.currentTarget, s) : void 0,
|
|
1277
1277
|
onMouseLeave: s ? n.closeSubmenuSoon : void 0,
|
|
1278
1278
|
children: [
|
|
1279
|
-
e.icon && /* @__PURE__ */ o("span", { className:
|
|
1280
|
-
/* @__PURE__ */ o("span", { className:
|
|
1281
|
-
s && /* @__PURE__ */ o("span", { className:
|
|
1279
|
+
e.icon && /* @__PURE__ */ o("span", { className: N.Icon, children: e.icon }),
|
|
1280
|
+
/* @__PURE__ */ o("span", { className: N.Label, children: e.label }),
|
|
1281
|
+
s && /* @__PURE__ */ o("span", { className: N.Arrow, children: "▸" })
|
|
1282
1282
|
]
|
|
1283
1283
|
}
|
|
1284
1284
|
) });
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Fe({ items: e, menu: n, heading: r, rest: t }) {
|
|
1287
1287
|
const s = !!t && t.length > 0;
|
|
1288
|
-
return /* @__PURE__ */ m("div", { className:
|
|
1289
|
-
r && /* @__PURE__ */ o("span", { className:
|
|
1290
|
-
e.map((a) => /* @__PURE__ */ o(
|
|
1291
|
-
s && /* @__PURE__ */ o("div", { className:
|
|
1292
|
-
t?.map((a) => /* @__PURE__ */ o(
|
|
1288
|
+
return /* @__PURE__ */ m("div", { className: N.MenuListContainer, children: [
|
|
1289
|
+
r && /* @__PURE__ */ o("span", { className: N.Heading, children: r }),
|
|
1290
|
+
e.map((a) => /* @__PURE__ */ o(We, { item: a, menu: n }, a.key)),
|
|
1291
|
+
s && /* @__PURE__ */ o("div", { className: N.Divider }),
|
|
1292
|
+
t?.map((a) => /* @__PURE__ */ o(We, { item: a, menu: n, dim: !0 }, a.key))
|
|
1293
1293
|
] });
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
const n =
|
|
1297
|
-
return /* @__PURE__ */ o("div", { className:
|
|
1295
|
+
function Gr({ count: e = 3 }) {
|
|
1296
|
+
const n = je(() => Array.from({ length: Math.max(0, e) }, (r, t) => t), [e]);
|
|
1297
|
+
return /* @__PURE__ */ o("div", { className: N.MenuSkeletonContainer, children: n.map((r) => /* @__PURE__ */ o("div", { className: N.MenuSkeletonRow, role: "presentation" }, r)) });
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1300
|
-
function
|
|
1299
|
+
const jr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1300
|
+
function Vr({ value: e, onChange: n, placeholder: r }) {
|
|
1301
1301
|
function t(s) {
|
|
1302
1302
|
s.key === "Escape" && n("");
|
|
1303
1303
|
}
|
|
1304
1304
|
return /* @__PURE__ */ o(
|
|
1305
1305
|
re.div,
|
|
1306
1306
|
{
|
|
1307
|
-
className:
|
|
1307
|
+
className: N.MenuSearchFieldContainer,
|
|
1308
1308
|
initial: { opacity: 0, height: 0 },
|
|
1309
1309
|
animate: { opacity: 1, height: "auto" },
|
|
1310
1310
|
exit: { opacity: 0, height: 0 },
|
|
1311
|
-
transition:
|
|
1311
|
+
transition: jr,
|
|
1312
1312
|
children: /* @__PURE__ */ o(
|
|
1313
1313
|
vt,
|
|
1314
1314
|
{
|
|
@@ -1317,13 +1317,13 @@ function Gr({ value: e, onChange: n, placeholder: r }) {
|
|
|
1317
1317
|
placeholder: r ?? "Search",
|
|
1318
1318
|
autoFocus: !0,
|
|
1319
1319
|
onKeyDown: t,
|
|
1320
|
-
startIcon: /* @__PURE__ */ o(
|
|
1320
|
+
startIcon: /* @__PURE__ */ o(Oo, { size: 14 })
|
|
1321
1321
|
}
|
|
1322
1322
|
)
|
|
1323
1323
|
}
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Kr(e, n, r) {
|
|
1327
1327
|
const t = n.trim().toLowerCase();
|
|
1328
1328
|
if (!t) return { matches: e, rest: [] };
|
|
1329
1329
|
const s = [], a = [];
|
|
@@ -1331,15 +1331,15 @@ function Vr(e, n, r) {
|
|
|
1331
1331
|
r(i).toLowerCase().includes(t) ? s.push(i) : a.push(i);
|
|
1332
1332
|
return { matches: s, rest: a };
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function zr(e) {
|
|
1335
1335
|
return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
|
|
1336
1336
|
}
|
|
1337
1337
|
function Xr(e) {
|
|
1338
|
-
const [n, r] =
|
|
1338
|
+
const [n, r] = k("");
|
|
1339
1339
|
return A(() => {
|
|
1340
1340
|
if (!e) return;
|
|
1341
1341
|
function t(s) {
|
|
1342
|
-
if (!
|
|
1342
|
+
if (!zr(document.activeElement)) {
|
|
1343
1343
|
if (s.key === "Backspace") {
|
|
1344
1344
|
r((a) => a.slice(0, -1));
|
|
1345
1345
|
return;
|
|
@@ -1356,17 +1356,17 @@ function Qr(e) {
|
|
|
1356
1356
|
function He({ section: e, menu: n, onBack: r, skeletonCount: t, active: s }) {
|
|
1357
1357
|
const a = !!e.searchable && !!e.items, { query: i, setQuery: c } = Xr(!!s && a);
|
|
1358
1358
|
A(() => c(""), [e, c]);
|
|
1359
|
-
const { matches: d, rest: u } =
|
|
1360
|
-
() =>
|
|
1359
|
+
const { matches: d, rest: u } = je(
|
|
1360
|
+
() => Kr(e.items ?? [], i, Qr),
|
|
1361
1361
|
[e.items, i]
|
|
1362
1362
|
), l = r ? void 0 : e.title;
|
|
1363
1363
|
let h;
|
|
1364
|
-
return e.loading ? h = /* @__PURE__ */ o(
|
|
1365
|
-
r && /* @__PURE__ */ m(Qe, { variant: "unstyled", className:
|
|
1366
|
-
/* @__PURE__ */ o("span", { className:
|
|
1364
|
+
return e.loading ? h = /* @__PURE__ */ o(Gr, { count: t }) : e.renderPanel ? h = e.renderPanel() : a ? h = /* @__PURE__ */ o(Fe, { items: d, rest: u, menu: n, heading: l }) : h = /* @__PURE__ */ o(Fe, { items: e.items ?? [], menu: n, heading: l }), /* @__PURE__ */ m("div", { className: N.FlyoutPanelContainer, children: [
|
|
1365
|
+
r && /* @__PURE__ */ m(Qe, { variant: "unstyled", className: N.Back, onClick: r, children: [
|
|
1366
|
+
/* @__PURE__ */ o("span", { className: N.Chevron, children: "‹" }),
|
|
1367
1367
|
e.title ?? "Back"
|
|
1368
1368
|
] }),
|
|
1369
|
-
a && /* @__PURE__ */ o(ve, { children: i !== "" && /* @__PURE__ */ o(
|
|
1369
|
+
a && /* @__PURE__ */ o(ve, { children: i !== "" && /* @__PURE__ */ o(Vr, { value: i, onChange: c }) }),
|
|
1370
1370
|
h
|
|
1371
1371
|
] });
|
|
1372
1372
|
}
|
|
@@ -1388,7 +1388,7 @@ function Jr(e, n, r, t, s) {
|
|
|
1388
1388
|
return { side: c, left: d, top: h, maxHeight: l };
|
|
1389
1389
|
}
|
|
1390
1390
|
function Ze(e, n, r) {
|
|
1391
|
-
const [t, s] =
|
|
1391
|
+
const [t, s] = k(null), a = T(n), i = T(r);
|
|
1392
1392
|
a.current = n, i.current = r;
|
|
1393
1393
|
const c = T(null);
|
|
1394
1394
|
return ue(() => {
|
|
@@ -1449,16 +1449,16 @@ function ss(e, n, r) {
|
|
|
1449
1449
|
);
|
|
1450
1450
|
}
|
|
1451
1451
|
function as(e) {
|
|
1452
|
-
const { anchorRef: n, panelRef: r, submenuRef: t, open: s, onOpenChange: a } = e, [i, c] =
|
|
1452
|
+
const { anchorRef: n, panelRef: r, submenuRef: t, open: s, onOpenChange: a } = e, [i, c] = k(!1), d = s ?? i, [u, l] = k([]), [h, g] = k(null), y = T(null), w = T(void 0), D = E((S) => {
|
|
1453
1453
|
c(S), a?.(S);
|
|
1454
1454
|
}, [a]), M = E((S) => {
|
|
1455
1455
|
g(null), l((R) => R.length >= ns ? R : [...R, S]);
|
|
1456
1456
|
}, []);
|
|
1457
1457
|
A(() => {
|
|
1458
|
-
d || (l([]), g(null),
|
|
1458
|
+
d || (l([]), g(null), y.current = null, w.current && clearTimeout(w.current));
|
|
1459
1459
|
}, [d]);
|
|
1460
1460
|
const L = E((S, R) => {
|
|
1461
|
-
if (w.current && clearTimeout(w.current),
|
|
1461
|
+
if (w.current && clearTimeout(w.current), y.current = S, De()) {
|
|
1462
1462
|
M(R);
|
|
1463
1463
|
return;
|
|
1464
1464
|
}
|
|
@@ -1473,23 +1473,23 @@ function as(e) {
|
|
|
1473
1473
|
w.current && clearTimeout(w.current), w.current = setTimeout(() => g(null), es);
|
|
1474
1474
|
}, []), x = E(() => {
|
|
1475
1475
|
w.current && clearTimeout(w.current);
|
|
1476
|
-
}, []),
|
|
1476
|
+
}, []), b = ss(!!h, t, y), F = rs(d, n, r);
|
|
1477
1477
|
A(() => {
|
|
1478
|
-
if (!(!h || !
|
|
1479
|
-
if (
|
|
1478
|
+
if (!(!h || !b)) {
|
|
1479
|
+
if (b === "collapse") {
|
|
1480
1480
|
M(h.section);
|
|
1481
1481
|
return;
|
|
1482
1482
|
}
|
|
1483
|
-
h.placement !==
|
|
1483
|
+
h.placement !== b && g({ section: h.section, placement: b });
|
|
1484
1484
|
}
|
|
1485
|
-
}, [
|
|
1486
|
-
const I = E(() => l((S) => S.slice(0, -1)), []),
|
|
1485
|
+
}, [b, h, M]);
|
|
1486
|
+
const I = E(() => l((S) => S.slice(0, -1)), []), W = E(() => D(!1), [D]), $ = E(() => D(!d), [D, d]), ee = E((S) => {
|
|
1487
1487
|
S.onSelect?.(), D(!1);
|
|
1488
1488
|
}, [D]);
|
|
1489
1489
|
return {
|
|
1490
1490
|
open: d,
|
|
1491
|
-
toggle:
|
|
1492
|
-
close:
|
|
1491
|
+
toggle: $,
|
|
1492
|
+
close: W,
|
|
1493
1493
|
back: I,
|
|
1494
1494
|
selectItem: ee,
|
|
1495
1495
|
openSubmenuFrom: L,
|
|
@@ -1497,30 +1497,30 @@ function as(e) {
|
|
|
1497
1497
|
closeSubmenuSoon: v,
|
|
1498
1498
|
holdSubmenu: x,
|
|
1499
1499
|
frame: u[u.length - 1] ?? null,
|
|
1500
|
-
menuPlacement:
|
|
1500
|
+
menuPlacement: F,
|
|
1501
1501
|
submenu: h
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
|
-
const
|
|
1504
|
+
const Ue = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1505
1505
|
function Ls(e) {
|
|
1506
1506
|
const { anchorRef: n, open: r, onClose: t, items: s, rootTitle: a, skeletonCount: i } = e, c = T(null), d = T(null);
|
|
1507
1507
|
function u(w) {
|
|
1508
1508
|
w || t();
|
|
1509
1509
|
}
|
|
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,
|
|
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, y = l.submenu?.placement ?? null;
|
|
1511
1511
|
return xe(
|
|
1512
|
-
/* @__PURE__ */ m("div", { className:
|
|
1513
|
-
r && /* @__PURE__ */ o("div", { className:
|
|
1512
|
+
/* @__PURE__ */ m("div", { className: N.FlyoutMenuContainer, children: [
|
|
1513
|
+
r && /* @__PURE__ */ o("div", { className: N.Backdrop, onClick: t }),
|
|
1514
1514
|
/* @__PURE__ */ o(ve, { children: r && /* @__PURE__ */ o(
|
|
1515
1515
|
re.div,
|
|
1516
1516
|
{
|
|
1517
1517
|
ref: c,
|
|
1518
|
-
className:
|
|
1518
|
+
className: N.Panel,
|
|
1519
1519
|
style: g ? { top: g.top, left: g.left, maxHeight: g.maxHeight, maxWidth: g.maxWidth } : { visibility: "hidden" },
|
|
1520
1520
|
initial: { opacity: 0, scale: 0.94, y: 6 },
|
|
1521
1521
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
1522
1522
|
exit: { opacity: 0, scale: 0.94, y: 6 },
|
|
1523
|
-
transition:
|
|
1523
|
+
transition: Ue,
|
|
1524
1524
|
children: /* @__PURE__ */ o(Te.Provider, { value: !!g, children: /* @__PURE__ */ o(
|
|
1525
1525
|
He,
|
|
1526
1526
|
{
|
|
@@ -1538,15 +1538,15 @@ function Ls(e) {
|
|
|
1538
1538
|
re.div,
|
|
1539
1539
|
{
|
|
1540
1540
|
ref: d,
|
|
1541
|
-
className:
|
|
1542
|
-
style:
|
|
1541
|
+
className: N.Submenu,
|
|
1542
|
+
style: y ? { top: y.top, left: y.left, maxHeight: y.maxHeight } : { visibility: "hidden" },
|
|
1543
1543
|
onMouseEnter: l.holdSubmenu,
|
|
1544
1544
|
onMouseLeave: l.closeSubmenuSoon,
|
|
1545
1545
|
initial: { opacity: 0, scale: 0.94, x: 6 },
|
|
1546
1546
|
animate: { opacity: 1, scale: 1, x: 0 },
|
|
1547
1547
|
exit: { opacity: 0, scale: 0.94, x: 6 },
|
|
1548
|
-
transition:
|
|
1549
|
-
children: /* @__PURE__ */ o(Te.Provider, { value: !!
|
|
1548
|
+
transition: Ue,
|
|
1549
|
+
children: /* @__PURE__ */ o(Te.Provider, { value: !!y, children: /* @__PURE__ */ o(
|
|
1550
1550
|
He,
|
|
1551
1551
|
{
|
|
1552
1552
|
section: l.submenu.section,
|
|
@@ -1563,29 +1563,29 @@ function Ls(e) {
|
|
|
1563
1563
|
);
|
|
1564
1564
|
}
|
|
1565
1565
|
function xs({ classNames: e, children: n }) {
|
|
1566
|
-
return /* @__PURE__ */ o(
|
|
1566
|
+
return /* @__PURE__ */ o(Ve.Provider, { value: e, children: n });
|
|
1567
1567
|
}
|
|
1568
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
1569
|
const is = "type.googleapis.com/google.rpc.ErrorInfo", cs = "type.googleapis.com/google.rpc.BadRequest", ls = "type.googleapis.com/google.rpc.PreconditionFailure";
|
|
1570
1570
|
function ge(e) {
|
|
1571
1571
|
return typeof e == "object" && e !== null;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function j(e) {
|
|
1574
1574
|
return typeof e == "string" ? e : "";
|
|
1575
1575
|
}
|
|
1576
1576
|
function us(e) {
|
|
1577
1577
|
if (!ge(e))
|
|
1578
1578
|
return { kind: "Unknown", typeUrl: "", raw: e };
|
|
1579
|
-
const n =
|
|
1579
|
+
const n = j(e["@type"]);
|
|
1580
1580
|
switch (n) {
|
|
1581
1581
|
case is: {
|
|
1582
1582
|
const r = ge(e.metadata) ? e.metadata : {}, t = {};
|
|
1583
1583
|
for (const s of Object.keys(r))
|
|
1584
|
-
t[s] =
|
|
1584
|
+
t[s] = j(r[s]);
|
|
1585
1585
|
return {
|
|
1586
1586
|
kind: "ErrorInfo",
|
|
1587
|
-
reason:
|
|
1588
|
-
domain:
|
|
1587
|
+
reason: j(e.reason),
|
|
1588
|
+
domain: j(e.domain),
|
|
1589
1589
|
metadata: t
|
|
1590
1590
|
};
|
|
1591
1591
|
}
|
|
@@ -1593,17 +1593,17 @@ function us(e) {
|
|
|
1593
1593
|
return { kind: "BadRequest", fieldViolations: (Array.isArray(e.fieldViolations) ? e.fieldViolations : []).map((s) => {
|
|
1594
1594
|
const a = ge(s) ? s : {};
|
|
1595
1595
|
return {
|
|
1596
|
-
field:
|
|
1597
|
-
description:
|
|
1596
|
+
field: j(a.field),
|
|
1597
|
+
description: j(a.description)
|
|
1598
1598
|
};
|
|
1599
1599
|
}) };
|
|
1600
1600
|
case ls:
|
|
1601
1601
|
return { kind: "PreconditionFailure", violations: (Array.isArray(e.violations) ? e.violations : []).map((s) => {
|
|
1602
1602
|
const a = ge(s) ? s : {};
|
|
1603
1603
|
return {
|
|
1604
|
-
type:
|
|
1605
|
-
subject:
|
|
1606
|
-
description:
|
|
1604
|
+
type: j(a.type),
|
|
1605
|
+
subject: j(a.subject),
|
|
1606
|
+
description: j(a.description)
|
|
1607
1607
|
};
|
|
1608
1608
|
}) };
|
|
1609
1609
|
default:
|
|
@@ -1635,30 +1635,30 @@ function Ps(e) {
|
|
|
1635
1635
|
return new Ce({ title: String(e), isRetryable: !1 });
|
|
1636
1636
|
}
|
|
1637
1637
|
export {
|
|
1638
|
-
|
|
1638
|
+
Ns as AvatarFallbackIcon,
|
|
1639
1639
|
cs as BAD_REQUEST_TYPE_URL,
|
|
1640
1640
|
Qe as Button,
|
|
1641
|
-
|
|
1641
|
+
ys as Checkbox,
|
|
1642
1642
|
Pt as CheckmarkIcon,
|
|
1643
|
-
|
|
1643
|
+
qo as ChevronDownIcon,
|
|
1644
1644
|
xs as ChuresConfigProvider,
|
|
1645
1645
|
Is as ConfirmDialog,
|
|
1646
|
-
|
|
1646
|
+
ks as Dropdown,
|
|
1647
1647
|
is as ERROR_INFO_TYPE_URL,
|
|
1648
|
-
|
|
1648
|
+
bs as EditPencilIcon,
|
|
1649
1649
|
Le as Errors,
|
|
1650
1650
|
Ls as FlyoutMenu,
|
|
1651
1651
|
Ss as InfoDialog,
|
|
1652
1652
|
vt as Input,
|
|
1653
|
-
|
|
1653
|
+
Wn as Loader,
|
|
1654
1654
|
ms as LoadingWrapper,
|
|
1655
1655
|
Te as MenuMeasuredContext,
|
|
1656
|
-
|
|
1657
|
-
|
|
1656
|
+
Vr as MenuSearchField,
|
|
1657
|
+
Gr as MenuSkeleton,
|
|
1658
1658
|
Rs as ModalActions,
|
|
1659
1659
|
Ts as ModalClose,
|
|
1660
1660
|
ls as PRECONDITION_FAILURE_TYPE_URL,
|
|
1661
|
-
|
|
1661
|
+
Oo as SearchIcon,
|
|
1662
1662
|
ws as SegmentedControl,
|
|
1663
1663
|
Ce as ServiceError,
|
|
1664
1664
|
Ds as SideDrawer,
|
|
@@ -1672,13 +1672,13 @@ export {
|
|
|
1672
1672
|
Qr as menuItemText,
|
|
1673
1673
|
us as parseErrorDetail,
|
|
1674
1674
|
Ps as parseGrpcError,
|
|
1675
|
-
|
|
1676
|
-
|
|
1675
|
+
Kr as partitionBySubstring,
|
|
1676
|
+
qe as popOverlayBack,
|
|
1677
1677
|
wr as pushOverlayBack,
|
|
1678
|
-
|
|
1678
|
+
yr as useBackableOverlay,
|
|
1679
1679
|
B as useComponentClassName,
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1680
|
+
Nr as useMenuMeasured,
|
|
1681
|
+
$n as useTelegramLogin,
|
|
1682
|
+
Ke as useToaster,
|
|
1683
1683
|
Xr as useTypeToSearch
|
|
1684
1684
|
};
|