@vervstack/chures 0.0.42 → 0.0.43
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 +344 -341
- 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-icon-size: 1rem;--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_s5ba7_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_s5ba7_15){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_s5ba7_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_s5ba7_21._hasStartIcon_s5ba7_35){padding-left:2.25rem}:where(._InputField_s5ba7_21._hasEndIcon_s5ba7_39){padding-right:2.25rem}:where(._StartIcon_s5ba7_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_s5ba7_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_s5ba7_21):focus{border-color:#ffffff59}:where(._InputField_s5ba7_21:not(:focus):has(+._Label_s5ba7_70))::placeholder{color:transparent}:where(._hasError_s5ba7_74 ._InputField_s5ba7_21),:where(._hasError_s5ba7_74 ._InputField_s5ba7_21):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_s5ba7_79 ._InputField_s5ba7_21){opacity:.45;cursor:not-allowed}:where(._Label_s5ba7_70){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_s5ba7_70._lifted_s5ba7_98){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_s5ba7_74 ._Label_s5ba7_70._lifted_s5ba7_98){color:var(--chures-error, #ef4444)}:where(._ErrorText_s5ba7_109){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}:where(._Skeleton_s5ba7_117){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_s5ba7_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-icon-size: 1rem;--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_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _panelInAbove_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(-6px)}to{opacity:1;transform:none}}@keyframes _shimmer_5x7b0_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_5x7b0_18{position:relative;width:100%}._PanelWrapper_5x7b0_25{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_5x7b0_1 .14s ease}._PanelWrapper_5x7b0_25._Portal_5x7b0_39{position:fixed;width:auto;margin:var(--chures-dropdown-panel-gap) 0}._PanelWrapper_5x7b0_25._Above_5x7b0_47{top:auto;transform-origin:bottom center;animation-name:_panelInAbove_5x7b0_1}._PanelContainer_5x7b0_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_5x7b0_23._Glass_5x7b0_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_5x7b0_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_5x7b0_70._WithIcon_5x7b0_84:not(._lifted_5x7b0_84){left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._Label_5x7b0_70._lifted_5x7b0_84{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_5x7b0_95{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_5x7b0_95:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_5x7b0_95._Open_5x7b0_119{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_5x7b0_124{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_5x7b0_132{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_5x7b0_140{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_5x7b0_147{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_5x7b0_147::-webkit-scrollbar{display:none}._ChipsWrapper_5x7b0_147._Expand_5x7b0_165{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_5x7b0_95._MultiSelect_5x7b0_171 ._TriggerIcon_5x7b0_140{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._ExpandHeight_5x7b0_176{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._RichValue_5x7b0_181{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerContainer_5x7b0_95._WithIcon_5x7b0_84{padding-left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._LeadingIcon_5x7b0_191{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:var(--chures-dropdown-icon-size);height:var(--chures-dropdown-icon-size);color:var(--chures-fg-muted);pointer-events:none}._TriggerValueRich_5x7b0_205{flex:1;min-width:0;overflow:hidden}._Chip_5x7b0_147{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_5x7b0_225{flex-shrink:0;padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_5x7b0_231{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_5x7b0_241{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_5x7b0_248{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_5x7b0_248::placeholder{color:var(--chures-fg-muted)}._ResultsList_5x7b0_262{max-height:13rem;min-height:0;overflow-y:auto}._OptionRow_5x7b0_268{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_5x7b0_268:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_5x7b0_268._Selected_5x7b0_283{color:var(--chures-fg)}._OptionRow_5x7b0_268._Indented_5x7b0_287{padding-left:1.875rem}._OptionRow_5x7b0_268._Disabled_5x7b0_291{cursor:not-allowed;opacity:.5}._OptionRow_5x7b0_268._Disabled_5x7b0_291:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_5x7b0_302{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_5x7b0_302:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._CheckSlot_5x7b0_317{display:inline-flex;align-items:center;flex-shrink:0;width:0;margin-right:-.5rem;overflow:hidden;color:var(--chures-accent);transition:width .18s ease,margin-right .18s ease}._CheckSlot_5x7b0_317._Checked_5x7b0_327{width:1rem;margin-right:0}._CheckIcon_5x7b0_333{width:.75rem;height:.75rem;flex-shrink:0}._CheckIcon_5x7b0_333 path{stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .22s ease .06s}._CheckSlot_5x7b0_317._Checked_5x7b0_327 ._CheckIcon_5x7b0_333 path{stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){._CheckSlot_5x7b0_317,._CheckIcon_5x7b0_333 path{transition:none}}._CreateRow_5x7b0_360{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_5x7b0_360:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_5x7b0_360._WithBorder_5x7b0_373{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_5x7b0_378{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_5x7b0_390{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_5x7b0_396{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_5x7b0_403{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_5x7b0_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-icon-size: 1rem;--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)}})();
|
|
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-icon-size: 1rem;--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_15tk2_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_15tk2_15){position:relative;display:flex;flex-direction:column;width:100%}:where(._InputBox_15tk2_22){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_15tk2_28){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_15tk2_28._hasStartIcon_15tk2_42){padding-left:2.25rem}:where(._InputField_15tk2_28._hasEndIcon_15tk2_46){padding-right:2.25rem}:where(._StartIcon_15tk2_50){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_15tk2_61){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_15tk2_28):focus{border-color:#ffffff59}:where(._InputField_15tk2_28:not(:focus):has(+._Label_15tk2_77))::placeholder{color:transparent}:where(._hasError_15tk2_81 ._InputField_15tk2_28),:where(._hasError_15tk2_81 ._InputField_15tk2_28):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_15tk2_86 ._InputField_15tk2_28){opacity:.45;cursor:not-allowed}:where(._Label_15tk2_77){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_15tk2_77._lifted_15tk2_105){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_15tk2_81 ._Label_15tk2_77._lifted_15tk2_105){color:var(--chures-error, #ef4444)}@keyframes _errorIn_15tk2_1{0%{opacity:0;max-height:0}to{opacity:1;max-height:3rem}}:where(._ErrorText_15tk2_121){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444);overflow:hidden;animation:_errorIn_15tk2_1 .18s ease-out}@media(prefers-reduced-motion:reduce){:where(._ErrorText_15tk2_121){animation:none}}:where(._Skeleton_15tk2_137){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_15tk2_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-icon-size: 1rem;--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_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _panelInAbove_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(-6px)}to{opacity:1;transform:none}}@keyframes _shimmer_5x7b0_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_5x7b0_18{position:relative;width:100%}._PanelWrapper_5x7b0_25{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_5x7b0_1 .14s ease}._PanelWrapper_5x7b0_25._Portal_5x7b0_39{position:fixed;width:auto;margin:var(--chures-dropdown-panel-gap) 0}._PanelWrapper_5x7b0_25._Above_5x7b0_47{top:auto;transform-origin:bottom center;animation-name:_panelInAbove_5x7b0_1}._PanelContainer_5x7b0_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_5x7b0_23._Glass_5x7b0_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_5x7b0_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_5x7b0_70._WithIcon_5x7b0_84:not(._lifted_5x7b0_84){left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._Label_5x7b0_70._lifted_5x7b0_84{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_5x7b0_95{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_5x7b0_95:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_5x7b0_95._Open_5x7b0_119{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_5x7b0_124{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_5x7b0_132{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_5x7b0_140{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_5x7b0_147{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_5x7b0_147::-webkit-scrollbar{display:none}._ChipsWrapper_5x7b0_147._Expand_5x7b0_165{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_5x7b0_95._MultiSelect_5x7b0_171 ._TriggerIcon_5x7b0_140{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._ExpandHeight_5x7b0_176{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._RichValue_5x7b0_181{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerContainer_5x7b0_95._WithIcon_5x7b0_84{padding-left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._LeadingIcon_5x7b0_191{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:var(--chures-dropdown-icon-size);height:var(--chures-dropdown-icon-size);color:var(--chures-fg-muted);pointer-events:none}._TriggerValueRich_5x7b0_205{flex:1;min-width:0;overflow:hidden}._Chip_5x7b0_147{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_5x7b0_225{flex-shrink:0;padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_5x7b0_231{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_5x7b0_241{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_5x7b0_248{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_5x7b0_248::placeholder{color:var(--chures-fg-muted)}._ResultsList_5x7b0_262{max-height:13rem;min-height:0;overflow-y:auto}._OptionRow_5x7b0_268{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_5x7b0_268:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_5x7b0_268._Selected_5x7b0_283{color:var(--chures-fg)}._OptionRow_5x7b0_268._Indented_5x7b0_287{padding-left:1.875rem}._OptionRow_5x7b0_268._Disabled_5x7b0_291{cursor:not-allowed;opacity:.5}._OptionRow_5x7b0_268._Disabled_5x7b0_291:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_5x7b0_302{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_5x7b0_302:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._CheckSlot_5x7b0_317{display:inline-flex;align-items:center;flex-shrink:0;width:0;margin-right:-.5rem;overflow:hidden;color:var(--chures-accent);transition:width .18s ease,margin-right .18s ease}._CheckSlot_5x7b0_317._Checked_5x7b0_327{width:1rem;margin-right:0}._CheckIcon_5x7b0_333{width:.75rem;height:.75rem;flex-shrink:0}._CheckIcon_5x7b0_333 path{stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .22s ease .06s}._CheckSlot_5x7b0_317._Checked_5x7b0_327 ._CheckIcon_5x7b0_333 path{stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){._CheckSlot_5x7b0_317,._CheckIcon_5x7b0_333 path{transition:none}}._CreateRow_5x7b0_360{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_5x7b0_360:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_5x7b0_360._WithBorder_5x7b0_373{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_5x7b0_378{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_5x7b0_390{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_5x7b0_396{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_5x7b0_403{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_5x7b0_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-icon-size: 1rem;--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
2
|
import { jsx as o, jsxs as m, Fragment as $ } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as $e, useContext as Ge, useRef as x, useState as
|
|
3
|
+
import { createContext as $e, useContext as Ge, useRef as x, useState as k, useEffect as A, forwardRef as un, useCallback as E, useLayoutEffect as de, Fragment as Ne, useMemo as je } from "react";
|
|
4
4
|
import { AnimatePresence as ve, motion as se, useReducedMotion as dn } from "framer-motion";
|
|
5
5
|
import { create as hn } from "zustand";
|
|
6
6
|
import { createPortal as De } from "react-dom";
|
|
7
7
|
function _n(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 fn() {
|
|
13
13
|
return Ae || (Ae = 1, (function(e) {
|
|
@@ -39,10 +39,10 @@ function fn() {
|
|
|
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 = fn();
|
|
45
|
-
const C = /* @__PURE__ */ _n(pn), mn = "_LoaderContainer_wa8op_24", gn = "_sm_wa8op_31", Cn = "_md_wa8op_32", vn = "_lg_wa8op_33", wn = "_Arc1_wa8op_37", bn = "_Arc2_wa8op_38", yn = "_Arc3_wa8op_39", Nn = "_spin_wa8op_1",
|
|
45
|
+
const C = /* @__PURE__ */ _n(pn), mn = "_LoaderContainer_wa8op_24", gn = "_sm_wa8op_31", Cn = "_md_wa8op_32", vn = "_lg_wa8op_33", wn = "_Arc1_wa8op_37", bn = "_Arc2_wa8op_38", yn = "_Arc3_wa8op_39", Nn = "_spin_wa8op_1", kn = "_Ring1_wa8op_71", In = "_Ring2_wa8op_72", xn = "_Ring3_wa8op_73", Sn = "_ripple_wa8op_1", Rn = "_Dot1_wa8op_86", Ln = "_Dot2_wa8op_87", Tn = "_Dot3_wa8op_88", Dn = "_dotPulse_wa8op_1", Bn = "_Wave1_wa8op_105", En = "_Wave2_wa8op_106", An = "_Wave3_wa8op_107", Mn = "_Wave4_wa8op_108", Pn = "_Wave5_wa8op_109", On = "_waveBounce_wa8op_1", me = {
|
|
46
46
|
LoaderContainer: mn,
|
|
47
47
|
sm: gn,
|
|
48
48
|
md: Cn,
|
|
@@ -51,8 +51,8 @@ const C = /* @__PURE__ */ _n(pn), mn = "_LoaderContainer_wa8op_24", gn = "_sm_wa
|
|
|
51
51
|
Arc2: bn,
|
|
52
52
|
Arc3: yn,
|
|
53
53
|
spin: Nn,
|
|
54
|
-
Ring1:
|
|
55
|
-
Ring2:
|
|
54
|
+
Ring1: kn,
|
|
55
|
+
Ring2: In,
|
|
56
56
|
Ring3: xn,
|
|
57
57
|
ripple: Sn,
|
|
58
58
|
Dot1: Rn,
|
|
@@ -117,7 +117,7 @@ const Hn = "_LoadingWrapperContainer_1q0w7_1", qn = "_SkeletonWrapper_1q0w7_9",
|
|
|
117
117
|
LoadingWrapperContainer: Hn,
|
|
118
118
|
SkeletonWrapper: qn
|
|
119
119
|
};
|
|
120
|
-
function
|
|
120
|
+
function ys({ isLoading: e, children: n, skeleton: r, loaderProps: t, className: s }) {
|
|
121
121
|
const a = B("LoadingWrapper", s);
|
|
122
122
|
return e ? r ? /* @__PURE__ */ o("div", { className: C(Me.SkeletonWrapper, a), children: r }) : /* @__PURE__ */ o("div", { className: C(Me.LoadingWrapperContainer, a), children: /* @__PURE__ */ o(Fn, { ...t }) }) : /* @__PURE__ */ o($, { children: n });
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ const Un = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
|
125
125
|
function $n(e) {
|
|
126
126
|
const { botId: n, redirectUri: r, requestAccess: t = "write" } = e, s = x(e.onSuccess);
|
|
127
127
|
s.current = e.onSuccess;
|
|
128
|
-
const a = x(!1), [i, c] =
|
|
128
|
+
const a = x(!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;
|
|
@@ -202,7 +202,7 @@ function Xn({
|
|
|
202
202
|
c
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ns({
|
|
206
206
|
botId: e,
|
|
207
207
|
onSuccess: n,
|
|
208
208
|
lang: r,
|
|
@@ -249,7 +249,7 @@ const Ke = hn((e, n) => ({
|
|
|
249
249
|
slideIn: rt,
|
|
250
250
|
slideOut: st
|
|
251
251
|
};
|
|
252
|
-
function
|
|
252
|
+
function ks({ className: e } = {}) {
|
|
253
253
|
const { toasts: n } = Ke(), r = B("Toaster", e);
|
|
254
254
|
return /* @__PURE__ */ o("div", { className: C(K.ToastContainer, r), children: /* @__PURE__ */ o(ve, { children: n.map((t) => /* @__PURE__ */ o(
|
|
255
255
|
se.div,
|
|
@@ -265,7 +265,7 @@ function Ns({ 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(
|
|
@@ -286,54 +286,57 @@ function at({ id: e, title: n, description: r, level: t, isDismissable: s }) {
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
const it = "
|
|
289
|
+
const it = "_InputContainer_15tk2_15", ct = "_InputBox_15tk2_22", lt = "_InputField_15tk2_28", ut = "_hasStartIcon_15tk2_42", dt = "_hasEndIcon_15tk2_46", ht = "_StartIcon_15tk2_50", _t = "_EndIcon_15tk2_61", ft = "_Label_15tk2_77", pt = "_hasError_15tk2_81", mt = "_disabled_15tk2_86", gt = "_lifted_15tk2_105", Ct = "_ErrorText_15tk2_121", vt = "_Skeleton_15tk2_137", O = {
|
|
290
290
|
InputContainer: it,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
-
"
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
291
|
+
InputBox: ct,
|
|
292
|
+
InputField: lt,
|
|
293
|
+
hasStartIcon: ut,
|
|
294
|
+
hasEndIcon: dt,
|
|
295
|
+
StartIcon: ht,
|
|
296
|
+
EndIcon: _t,
|
|
297
|
+
Label: ft,
|
|
298
|
+
hasError: pt,
|
|
299
|
+
disabled: mt,
|
|
300
|
+
lifted: gt,
|
|
301
|
+
ErrorText: Ct,
|
|
302
|
+
Skeleton: vt
|
|
303
|
+
}, wt = un(function({ value: n, setValue: r, label: t, isLoader: s, type: a = "text", disabled: i, error: c, className: d, inputClassName: u, startIcon: l, endIcon: h, ...g }, b) {
|
|
304
|
+
const [w, S] = k(!1), W = w || n.length > 0, R = B("Input", d), { onFocus: _, onBlur: v, ...L } = g;
|
|
305
|
+
return s ? /* @__PURE__ */ o("div", { className: C(O.Skeleton, R), "aria-hidden": "true" }) : /* @__PURE__ */ m("div", { className: C(O.InputContainer, { [O.hasError]: !!c, [O.disabled]: i }, R), children: [
|
|
306
|
+
/* @__PURE__ */ m("div", { className: O.InputBox, children: [
|
|
307
|
+
l && /* @__PURE__ */ o("span", { className: O.StartIcon, children: l }),
|
|
308
|
+
/* @__PURE__ */ o(
|
|
309
|
+
"input",
|
|
310
|
+
{
|
|
311
|
+
ref: b,
|
|
312
|
+
className: C(O.InputField, { [O.hasStartIcon]: !!l, [O.hasEndIcon]: !!h }, u),
|
|
313
|
+
type: a,
|
|
314
|
+
value: n,
|
|
315
|
+
onChange: (y) => r(y.target.value),
|
|
316
|
+
onFocus: (y) => {
|
|
317
|
+
S(!0), _?.(y);
|
|
318
|
+
},
|
|
319
|
+
onBlur: (y) => {
|
|
320
|
+
S(!1), v?.(y);
|
|
321
|
+
},
|
|
322
|
+
disabled: i,
|
|
323
|
+
...L
|
|
324
|
+
}
|
|
325
|
+
),
|
|
326
|
+
t && /* @__PURE__ */ o("label", { className: C(O.Label, { [O.lifted]: W }), children: t }),
|
|
327
|
+
h && /* @__PURE__ */ o("span", { className: O.EndIcon, children: h })
|
|
328
|
+
] }),
|
|
329
|
+
c && /* @__PURE__ */ o("span", { className: O.ErrorText, children: c })
|
|
327
330
|
] });
|
|
328
|
-
}),
|
|
329
|
-
ToggleContainer:
|
|
330
|
-
disabled:
|
|
331
|
-
Track:
|
|
332
|
-
on:
|
|
331
|
+
}), bt = "_ToggleContainer_1jetc_6", yt = "_disabled_1jetc_13", Nt = "_Track_1jetc_18", kt = "_on_1jetc_31", It = "_Thumb_1jetc_39", xt = "_Label_1jetc_57", St = "_LabelSkeleton_1jetc_63", Rt = "_Skeleton_1jetc_78", U = {
|
|
332
|
+
ToggleContainer: bt,
|
|
333
|
+
disabled: yt,
|
|
334
|
+
Track: Nt,
|
|
335
|
+
on: kt,
|
|
333
336
|
Thumb: It,
|
|
334
|
-
Label:
|
|
335
|
-
LabelSkeleton:
|
|
336
|
-
Skeleton:
|
|
337
|
+
Label: xt,
|
|
338
|
+
LabelSkeleton: St,
|
|
339
|
+
Skeleton: Rt
|
|
337
340
|
};
|
|
338
341
|
function Is({ checked: e, onChange: n, label: r, labelPosition: t = "right", disabled: s, isLoader: a, isLoadingLabel: i, className: c }) {
|
|
339
342
|
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;
|
|
@@ -358,16 +361,16 @@ function Is({ checked: e, onChange: n, label: r, labelPosition: t = "right", dis
|
|
|
358
361
|
t === "right" && l
|
|
359
362
|
] });
|
|
360
363
|
}
|
|
361
|
-
const
|
|
362
|
-
SegmentedControlContainer:
|
|
363
|
-
Disabled:
|
|
364
|
-
Highlight:
|
|
365
|
-
Option:
|
|
366
|
-
OptionDisabled:
|
|
367
|
-
Selected:
|
|
368
|
-
},
|
|
369
|
-
function
|
|
370
|
-
const a = B("SegmentedControl", s), i = dn(), c = x(/* @__PURE__ */ new Map()), d = x(null), u = x(n), [l, h] =
|
|
364
|
+
const Lt = "_SegmentedControlContainer_ga29h_2", Tt = "_Disabled_ga29h_20", Dt = "_Highlight_ga29h_25", Bt = "_Option_ga29h_34", Et = "_OptionDisabled_ga29h_61", At = "_Selected_ga29h_65", re = {
|
|
365
|
+
SegmentedControlContainer: Lt,
|
|
366
|
+
Disabled: Tt,
|
|
367
|
+
Highlight: Dt,
|
|
368
|
+
Option: Bt,
|
|
369
|
+
OptionDisabled: Et,
|
|
370
|
+
Selected: At
|
|
371
|
+
}, Mt = 0.35;
|
|
372
|
+
function xs({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
373
|
+
const a = B("SegmentedControl", s), i = dn(), c = x(/* @__PURE__ */ new Map()), d = x(null), u = x(n), [l, h] = k(null), g = E(() => {
|
|
371
374
|
const _ = c.current.get(n);
|
|
372
375
|
return _ ? { left: _.offsetLeft, width: _.offsetWidth } : null;
|
|
373
376
|
}, [n]), b = E((_) => {
|
|
@@ -381,11 +384,11 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
|
381
384
|
h({ left: [v.left], width: [v.width], duration: 0 });
|
|
382
385
|
return;
|
|
383
386
|
}
|
|
384
|
-
const y = Math.min(L.left, v.left),
|
|
387
|
+
const y = Math.min(L.left, v.left), F = Math.max(L.left + L.width, v.left + v.width);
|
|
385
388
|
h({
|
|
386
389
|
left: [L.left, y, v.left],
|
|
387
|
-
width: [L.width,
|
|
388
|
-
duration:
|
|
390
|
+
width: [L.width, F - y, v.width],
|
|
391
|
+
duration: Mt
|
|
389
392
|
});
|
|
390
393
|
}, [g, i]);
|
|
391
394
|
de(() => {
|
|
@@ -396,7 +399,7 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
|
396
399
|
return c.current.forEach((v) => _.observe(v)), () => _.disconnect();
|
|
397
400
|
}, [e, b]);
|
|
398
401
|
const w = e.filter((_) => !_.disabled), S = w.some((_) => _.value === n) ? n : w[0]?.value;
|
|
399
|
-
function
|
|
402
|
+
function W(_) {
|
|
400
403
|
if (t) return;
|
|
401
404
|
const v = _.key === "ArrowRight" || _.key === "ArrowDown", L = _.key === "ArrowLeft" || _.key === "ArrowUp";
|
|
402
405
|
if (!v && !L) return;
|
|
@@ -413,7 +416,7 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
|
413
416
|
role: "radiogroup",
|
|
414
417
|
"aria-disabled": t || void 0,
|
|
415
418
|
className: C(re.SegmentedControlContainer, { [re.Disabled]: t }, a),
|
|
416
|
-
onKeyDown:
|
|
419
|
+
onKeyDown: W,
|
|
417
420
|
children: [
|
|
418
421
|
l && /* @__PURE__ */ o(
|
|
419
422
|
se.span,
|
|
@@ -449,7 +452,7 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
|
|
|
449
452
|
}
|
|
450
453
|
);
|
|
451
454
|
}
|
|
452
|
-
function
|
|
455
|
+
function Pt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
|
|
453
456
|
return /* @__PURE__ */ o(
|
|
454
457
|
"svg",
|
|
455
458
|
{
|
|
@@ -466,14 +469,14 @@ function Mt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
|
|
|
466
469
|
}
|
|
467
470
|
);
|
|
468
471
|
}
|
|
469
|
-
const
|
|
470
|
-
CheckboxContainer:
|
|
471
|
-
disabled:
|
|
472
|
-
BoxWrapper:
|
|
473
|
-
Box:
|
|
474
|
-
Label:
|
|
472
|
+
const Ot = "_CheckboxContainer_14vl9_4", Wt = "_disabled_14vl9_12", Ft = "_BoxWrapper_14vl9_17", Ht = "_Box_14vl9_17", qt = "_Label_14vl9_62", le = {
|
|
473
|
+
CheckboxContainer: Ot,
|
|
474
|
+
disabled: Wt,
|
|
475
|
+
BoxWrapper: Ft,
|
|
476
|
+
Box: Ht,
|
|
477
|
+
Label: qt
|
|
475
478
|
};
|
|
476
|
-
function
|
|
479
|
+
function Ss({ checked: e, onChange: n, label: r, disabled: t, className: s }) {
|
|
477
480
|
const a = B("Checkbox", s);
|
|
478
481
|
return /* @__PURE__ */ m("label", { className: C(le.CheckboxContainer, { [le.disabled]: t }, a), children: [
|
|
479
482
|
/* @__PURE__ */ m("span", { className: le.BoxWrapper, children: [
|
|
@@ -486,16 +489,16 @@ function xs({ checked: e, onChange: n, label: r, disabled: t, className: s }) {
|
|
|
486
489
|
disabled: t
|
|
487
490
|
}
|
|
488
491
|
),
|
|
489
|
-
/* @__PURE__ */ o("span", { className: le.Box, children: /* @__PURE__ */ o(
|
|
492
|
+
/* @__PURE__ */ o("span", { className: le.Box, children: /* @__PURE__ */ o(Pt, { size: 11, strokeWidth: 3, shrink: !1 }) })
|
|
490
493
|
] }),
|
|
491
494
|
r && /* @__PURE__ */ o("span", { className: le.Label, children: r })
|
|
492
495
|
] });
|
|
493
496
|
}
|
|
494
|
-
function
|
|
495
|
-
const [e, n] =
|
|
497
|
+
function Ut() {
|
|
498
|
+
const [e, n] = k(!1), r = x(null), t = E(() => n((a) => !a), []), s = E(() => n(!1), []);
|
|
496
499
|
return { isOpen: e, triggerRef: r, toggleOpen: t, close: s };
|
|
497
500
|
}
|
|
498
|
-
function
|
|
501
|
+
function $t(e, n, r) {
|
|
499
502
|
A(() => {
|
|
500
503
|
function t(a) {
|
|
501
504
|
const i = a.target;
|
|
@@ -509,8 +512,8 @@ function Ut(e, n, r) {
|
|
|
509
512
|
};
|
|
510
513
|
}, [n, e, r]);
|
|
511
514
|
}
|
|
512
|
-
function
|
|
513
|
-
const [r, t] =
|
|
515
|
+
function Gt(e, n) {
|
|
516
|
+
const [r, t] = k([]);
|
|
514
517
|
return A(() => {
|
|
515
518
|
if (!n) return;
|
|
516
519
|
let s = !1;
|
|
@@ -536,60 +539,60 @@ function we(e) {
|
|
|
536
539
|
function Xe(e) {
|
|
537
540
|
return typeof e == "string" ? !1 : !!e.disabled;
|
|
538
541
|
}
|
|
539
|
-
function
|
|
542
|
+
function jt(e) {
|
|
540
543
|
return typeof e == "string" ? void 0 : e.title;
|
|
541
544
|
}
|
|
542
|
-
function
|
|
545
|
+
function Vt(e, n) {
|
|
543
546
|
return e.map((r) => n.find((t) => H(t) === r) ?? r);
|
|
544
547
|
}
|
|
545
|
-
function
|
|
548
|
+
function Kt({ anchorRect: e, panelHeight: n, viewportHeight: r, gap: t }) {
|
|
546
549
|
const s = Math.max(0, r - e.bottom - t), a = Math.max(0, e.top - t);
|
|
547
550
|
return !(n <= s) && a > s ? { side: "above", availableHeight: a } : { side: "below", availableHeight: s };
|
|
548
551
|
}
|
|
549
|
-
const
|
|
550
|
-
DropdownContainer:
|
|
551
|
-
PanelWrapper:
|
|
552
|
-
Portal:
|
|
553
|
-
Above:
|
|
554
|
-
PanelContainer:
|
|
555
|
-
Glass:
|
|
556
|
-
Label:
|
|
557
|
-
WithIcon:
|
|
558
|
-
lifted:
|
|
559
|
-
TriggerContainer:
|
|
560
|
-
Open:
|
|
561
|
-
TriggerPlaceholder:
|
|
562
|
-
TriggerValue:
|
|
563
|
-
TriggerIcon:
|
|
564
|
-
ChipsWrapper:
|
|
565
|
-
Expand:
|
|
566
|
-
MultiSelect:
|
|
567
|
-
ExpandHeight:
|
|
568
|
-
RichValue:
|
|
569
|
-
LeadingIcon:
|
|
570
|
-
TriggerValueRich:
|
|
571
|
-
Chip:
|
|
572
|
-
SearchRow:
|
|
573
|
-
SearchBox:
|
|
574
|
-
SearchIcon:
|
|
575
|
-
SearchInput:
|
|
576
|
-
ResultsList:
|
|
577
|
-
OptionRow:
|
|
578
|
-
Selected:
|
|
579
|
-
Indented:
|
|
552
|
+
const zt = "_DropdownContainer_5x7b0_18", Xt = "_PanelWrapper_5x7b0_25", Qt = "_Portal_5x7b0_39", Yt = "_Above_5x7b0_47", Jt = "_PanelContainer_5x7b0_23", Zt = "_Glass_5x7b0_64", eo = "_Label_5x7b0_70", no = "_WithIcon_5x7b0_84", to = "_lifted_5x7b0_84", oo = "_TriggerContainer_5x7b0_95", ro = "_Open_5x7b0_119", so = "_TriggerPlaceholder_5x7b0_124", ao = "_TriggerValue_5x7b0_132", io = "_TriggerIcon_5x7b0_140", co = "_ChipsWrapper_5x7b0_147", lo = "_Expand_5x7b0_165", uo = "_MultiSelect_5x7b0_171", ho = "_ExpandHeight_5x7b0_176", _o = "_RichValue_5x7b0_181", fo = "_LeadingIcon_5x7b0_191", po = "_TriggerValueRich_5x7b0_205", mo = "_Chip_5x7b0_147", go = "_SearchRow_5x7b0_225", Co = "_SearchBox_5x7b0_231", vo = "_SearchIcon_5x7b0_241", wo = "_SearchInput_5x7b0_248", bo = "_ResultsList_5x7b0_262", yo = "_OptionRow_5x7b0_268", No = "_Selected_5x7b0_283", ko = "_Indented_5x7b0_287", Io = "_Disabled_5x7b0_291", xo = "_GroupHeader_5x7b0_302", So = "_CheckSlot_5x7b0_317", Ro = "_Checked_5x7b0_327", Lo = "_CheckIcon_5x7b0_333", To = "_CreateRow_5x7b0_360", Do = "_WithBorder_5x7b0_373", Bo = "_CreateIcon_5x7b0_378", Eo = "_CreateLabel_5x7b0_390", Ao = "_EmptyHint_5x7b0_396", Mo = "_SkeletonRow_5x7b0_403", f = {
|
|
553
|
+
DropdownContainer: zt,
|
|
554
|
+
PanelWrapper: Xt,
|
|
555
|
+
Portal: Qt,
|
|
556
|
+
Above: Yt,
|
|
557
|
+
PanelContainer: Jt,
|
|
558
|
+
Glass: Zt,
|
|
559
|
+
Label: eo,
|
|
560
|
+
WithIcon: no,
|
|
561
|
+
lifted: to,
|
|
562
|
+
TriggerContainer: oo,
|
|
563
|
+
Open: ro,
|
|
564
|
+
TriggerPlaceholder: so,
|
|
565
|
+
TriggerValue: ao,
|
|
566
|
+
TriggerIcon: io,
|
|
567
|
+
ChipsWrapper: co,
|
|
568
|
+
Expand: lo,
|
|
569
|
+
MultiSelect: uo,
|
|
570
|
+
ExpandHeight: ho,
|
|
571
|
+
RichValue: _o,
|
|
572
|
+
LeadingIcon: fo,
|
|
573
|
+
TriggerValueRich: po,
|
|
574
|
+
Chip: mo,
|
|
575
|
+
SearchRow: go,
|
|
576
|
+
SearchBox: Co,
|
|
577
|
+
SearchIcon: vo,
|
|
578
|
+
SearchInput: wo,
|
|
579
|
+
ResultsList: bo,
|
|
580
|
+
OptionRow: yo,
|
|
581
|
+
Selected: No,
|
|
582
|
+
Indented: ko,
|
|
580
583
|
Disabled: Io,
|
|
581
|
-
GroupHeader:
|
|
582
|
-
CheckSlot:
|
|
583
|
-
Checked:
|
|
584
|
-
CheckIcon:
|
|
585
|
-
CreateRow:
|
|
586
|
-
WithBorder:
|
|
587
|
-
CreateIcon:
|
|
588
|
-
CreateLabel:
|
|
589
|
-
EmptyHint:
|
|
590
|
-
SkeletonRow:
|
|
584
|
+
GroupHeader: xo,
|
|
585
|
+
CheckSlot: So,
|
|
586
|
+
Checked: Ro,
|
|
587
|
+
CheckIcon: Lo,
|
|
588
|
+
CreateRow: To,
|
|
589
|
+
WithBorder: Do,
|
|
590
|
+
CreateIcon: Bo,
|
|
591
|
+
CreateLabel: Eo,
|
|
592
|
+
EmptyHint: Ao,
|
|
593
|
+
SkeletonRow: Mo
|
|
591
594
|
};
|
|
592
|
-
function
|
|
595
|
+
function Po({ query: e, withBorder: n, onCreate: r }) {
|
|
593
596
|
function t(s) {
|
|
594
597
|
s.preventDefault(), r();
|
|
595
598
|
}
|
|
@@ -612,7 +615,7 @@ function Mo({ query: e, withBorder: n, onCreate: r }) {
|
|
|
612
615
|
}
|
|
613
616
|
);
|
|
614
617
|
}
|
|
615
|
-
function
|
|
618
|
+
function Oo({ label: e, icon: n, withBorder: r, onAction: t }) {
|
|
616
619
|
function s(a) {
|
|
617
620
|
a.preventDefault(), t();
|
|
618
621
|
}
|
|
@@ -631,10 +634,10 @@ function Po({ label: e, icon: n, withBorder: r, onAction: t }) {
|
|
|
631
634
|
}
|
|
632
635
|
);
|
|
633
636
|
}
|
|
634
|
-
function
|
|
637
|
+
function Wo({ label: e }) {
|
|
635
638
|
return /* @__PURE__ */ o("div", { className: f.GroupHeader, children: e });
|
|
636
639
|
}
|
|
637
|
-
function
|
|
640
|
+
function Fo({ isChecked: e }) {
|
|
638
641
|
return /* @__PURE__ */ o("span", { className: C(f.CheckSlot, e && f.Checked), "aria-hidden": "true", children: /* @__PURE__ */ o("svg", { className: f.CheckIcon, viewBox: "0 0 12 12", width: "12", height: "12", fill: "none", children: /* @__PURE__ */ o("path", { d: "M2 6.5 L4.75 9 L10 3.5", pathLength: "1" }) }) });
|
|
639
642
|
}
|
|
640
643
|
function Pe({ opt: e, isSelected: n, multiSelect: r, onPick: t, indented: s = !1 }) {
|
|
@@ -647,15 +650,15 @@ function Pe({ opt: e, isSelected: n, multiSelect: r, onPick: t, indented: s = !1
|
|
|
647
650
|
{
|
|
648
651
|
className: C(f.OptionRow, n && f.Selected, s && f.Indented, a && f.Disabled),
|
|
649
652
|
onMouseDown: i,
|
|
650
|
-
title:
|
|
653
|
+
title: jt(e),
|
|
651
654
|
children: [
|
|
652
|
-
r && /* @__PURE__ */ o(
|
|
655
|
+
r && /* @__PURE__ */ o(Fo, { isChecked: n }),
|
|
653
656
|
we(e)
|
|
654
657
|
]
|
|
655
658
|
}
|
|
656
659
|
);
|
|
657
660
|
}
|
|
658
|
-
function
|
|
661
|
+
function Ho({ inputRef: e, query: n, onChange: r, onKeyDown: t, placeholder: s }) {
|
|
659
662
|
return /* @__PURE__ */ o("div", { className: f.SearchRow, children: /* @__PURE__ */ m("div", { className: f.SearchBox, children: [
|
|
660
663
|
/* @__PURE__ */ o("span", { className: f.SearchIcon, children: /* @__PURE__ */ m("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
|
|
661
664
|
/* @__PURE__ */ o("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
@@ -674,10 +677,10 @@ function Fo({ inputRef: e, query: n, onChange: r, onKeyDown: t, placeholder: s }
|
|
|
674
677
|
)
|
|
675
678
|
] }) });
|
|
676
679
|
}
|
|
677
|
-
function
|
|
680
|
+
function qo({ count: e }) {
|
|
678
681
|
return /* @__PURE__ */ o($, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ o("div", { className: f.SkeletonRow }, r)) });
|
|
679
682
|
}
|
|
680
|
-
function
|
|
683
|
+
function Uo({
|
|
681
684
|
onSearch: e,
|
|
682
685
|
onCreate: n,
|
|
683
686
|
onPick: r,
|
|
@@ -694,13 +697,13 @@ function qo({
|
|
|
694
697
|
skeletonRowCount: b = 4,
|
|
695
698
|
onError: w = console.error,
|
|
696
699
|
glass: S = !1,
|
|
697
|
-
portal:
|
|
700
|
+
portal: W = !0,
|
|
698
701
|
renderOption: R,
|
|
699
702
|
footerAction: _
|
|
700
703
|
}) {
|
|
701
|
-
const [v, L] =
|
|
702
|
-
|
|
703
|
-
const q = S ||
|
|
704
|
+
const [v, L] = k(""), [y, F] = k(!1), [T, M] = k(null), [G, J] = k(0), [I, D] = k(0), z = x(null), te = x(null), ae = !!e, ye = Gt(v, e);
|
|
705
|
+
$t(te, t, s);
|
|
706
|
+
const q = S || W;
|
|
704
707
|
de(() => {
|
|
705
708
|
if (!q) return;
|
|
706
709
|
function p() {
|
|
@@ -730,7 +733,7 @@ function qo({
|
|
|
730
733
|
(p) => we(p).toLowerCase() === ce.toLowerCase()
|
|
731
734
|
), _e = !!n && ce.length > 0 && !on;
|
|
732
735
|
async function Be() {
|
|
733
|
-
!ce || y || !n || (
|
|
736
|
+
!ce || y || !n || (F(!0), n(ce).then(oe).catch(w).finally(() => F(!1)));
|
|
734
737
|
}
|
|
735
738
|
function oe(p) {
|
|
736
739
|
Xe(p) || (r(p), u || t());
|
|
@@ -746,7 +749,7 @@ function qo({
|
|
|
746
749
|
}
|
|
747
750
|
const cn = a ?? (n ? "search or add new…" : "search…");
|
|
748
751
|
if (q && !T) return null;
|
|
749
|
-
const fe = q && T ?
|
|
752
|
+
const fe = q && T ? Kt({ anchorRect: T, panelHeight: G, viewportHeight: window.innerHeight, gap: I }) : null, ln = q && T && fe ? {
|
|
750
753
|
left: T.left,
|
|
751
754
|
width: T.width,
|
|
752
755
|
...fe.side === "above" ? { bottom: window.innerHeight - T.top } : { top: T.bottom },
|
|
@@ -762,7 +765,7 @@ function qo({
|
|
|
762
765
|
style: ln,
|
|
763
766
|
children: /* @__PURE__ */ m("div", { className: C(f.PanelContainer, { [f.Glass]: S }), children: [
|
|
764
767
|
ae && /* @__PURE__ */ o(
|
|
765
|
-
|
|
768
|
+
Ho,
|
|
766
769
|
{
|
|
767
770
|
inputRef: z,
|
|
768
771
|
query: v,
|
|
@@ -771,9 +774,9 @@ function qo({
|
|
|
771
774
|
placeholder: cn
|
|
772
775
|
}
|
|
773
776
|
),
|
|
774
|
-
/* @__PURE__ */ o("div", { className: f.ResultsList, children: h ? /* @__PURE__ */ o(
|
|
777
|
+
/* @__PURE__ */ o("div", { className: f.ResultsList, children: h ? /* @__PURE__ */ o(qo, { count: b }) : /* @__PURE__ */ m($, { children: [
|
|
775
778
|
Z.map((p) => ue(p) ? /* @__PURE__ */ m(Ne, { children: [
|
|
776
|
-
/* @__PURE__ */ o(
|
|
779
|
+
/* @__PURE__ */ o(Wo, { label: p.group }),
|
|
777
780
|
p.options.map((P) => /* @__PURE__ */ o(Ne, { children: R ? R(P, {
|
|
778
781
|
isSelected: d.includes(H(P)),
|
|
779
782
|
multiSelect: u,
|
|
@@ -804,7 +807,7 @@ function qo({
|
|
|
804
807
|
}
|
|
805
808
|
) }, H(p))),
|
|
806
809
|
_e && /* @__PURE__ */ o(
|
|
807
|
-
|
|
810
|
+
Po,
|
|
808
811
|
{
|
|
809
812
|
query: ce,
|
|
810
813
|
withBorder: X.length > 0,
|
|
@@ -813,7 +816,7 @@ function qo({
|
|
|
813
816
|
),
|
|
814
817
|
X.length === 0 && !_e && /* @__PURE__ */ o("div", { className: f.EmptyHint, children: g }),
|
|
815
818
|
_ && /* @__PURE__ */ o(
|
|
816
|
-
|
|
819
|
+
Oo,
|
|
817
820
|
{
|
|
818
821
|
label: _.label,
|
|
819
822
|
icon: _.icon,
|
|
@@ -827,7 +830,7 @@ function qo({
|
|
|
827
830
|
);
|
|
828
831
|
return q ? De(Ee, document.body) : Ee;
|
|
829
832
|
}
|
|
830
|
-
function
|
|
833
|
+
function $o({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
831
834
|
return /* @__PURE__ */ o(
|
|
832
835
|
"svg",
|
|
833
836
|
{
|
|
@@ -844,7 +847,7 @@ function Uo({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
844
847
|
}
|
|
845
848
|
);
|
|
846
849
|
}
|
|
847
|
-
function
|
|
850
|
+
function Rs() {
|
|
848
851
|
return /* @__PURE__ */ m(
|
|
849
852
|
"svg",
|
|
850
853
|
{
|
|
@@ -863,7 +866,7 @@ function Ss() {
|
|
|
863
866
|
}
|
|
864
867
|
);
|
|
865
868
|
}
|
|
866
|
-
function
|
|
869
|
+
function Ls() {
|
|
867
870
|
return /* @__PURE__ */ m(
|
|
868
871
|
"svg",
|
|
869
872
|
{
|
|
@@ -882,7 +885,7 @@ function Rs() {
|
|
|
882
885
|
}
|
|
883
886
|
);
|
|
884
887
|
}
|
|
885
|
-
function
|
|
888
|
+
function Go({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
886
889
|
return /* @__PURE__ */ m(
|
|
887
890
|
"svg",
|
|
888
891
|
{
|
|
@@ -902,7 +905,7 @@ function $o({ size: e = 14, strokeWidth: n = 2, className: r }) {
|
|
|
902
905
|
}
|
|
903
906
|
);
|
|
904
907
|
}
|
|
905
|
-
function
|
|
908
|
+
function jo({
|
|
906
909
|
triggerRef: e,
|
|
907
910
|
isOpen: n,
|
|
908
911
|
onClick: r,
|
|
@@ -932,12 +935,12 @@ function Go({
|
|
|
932
935
|
"aria-haspopup": "listbox",
|
|
933
936
|
children: [
|
|
934
937
|
s && t.length > 0 ? /* @__PURE__ */ o("div", { className: C(f.ChipsWrapper, u && f.Expand), children: t.map((h, g) => /* @__PURE__ */ o("span", { className: f.Chip, children: c ? c(h) : we(h) }, g)) }) : l ? /* @__PURE__ */ o("div", { className: f.TriggerValueRich, children: c(t[0]) }) : /* @__PURE__ */ o("span", { className: t.length === 0 ? f.TriggerPlaceholder : f.TriggerValue, children: t.length === 0 ? a : t.map(we).join(", ") }),
|
|
935
|
-
/* @__PURE__ */ o("span", { className: f.TriggerIcon, children: /* @__PURE__ */ o(
|
|
938
|
+
/* @__PURE__ */ o("span", { className: f.TriggerIcon, children: /* @__PURE__ */ o($o, { size: 12 }) })
|
|
936
939
|
]
|
|
937
940
|
}
|
|
938
941
|
);
|
|
939
942
|
}
|
|
940
|
-
function
|
|
943
|
+
function Ts({
|
|
941
944
|
options: e = [],
|
|
942
945
|
value: n,
|
|
943
946
|
onChange: r,
|
|
@@ -954,16 +957,16 @@ function Ls({
|
|
|
954
957
|
isLoading: b,
|
|
955
958
|
skeletonRowCount: w,
|
|
956
959
|
onError: S,
|
|
957
|
-
className:
|
|
960
|
+
className: W,
|
|
958
961
|
glass: R = !1,
|
|
959
962
|
portal: _ = !0,
|
|
960
963
|
renderOption: v,
|
|
961
964
|
renderValue: L,
|
|
962
965
|
footerAction: y,
|
|
963
|
-
icon:
|
|
966
|
+
icon: F,
|
|
964
967
|
children: T
|
|
965
968
|
}) {
|
|
966
|
-
const { isOpen: M, triggerRef: G, toggleOpen: J, close:
|
|
969
|
+
const { isOpen: M, triggerRef: G, toggleOpen: J, close: I } = Ut(), D = B("Dropdown", W), z = Vt(n, ze(e)), te = M || z.length > 0, ae = u && !te ? "" : l;
|
|
967
970
|
function ye(ie) {
|
|
968
971
|
const Z = H(ie);
|
|
969
972
|
r(
|
|
@@ -977,11 +980,11 @@ function Ls({
|
|
|
977
980
|
"aria-haspopup": "listbox"
|
|
978
981
|
};
|
|
979
982
|
return /* @__PURE__ */ m("div", { className: C(f.DropdownContainer, D), children: [
|
|
980
|
-
u && /* @__PURE__ */ o("label", { className: C(f.Label, { [f.lifted]: te, [f.WithIcon]: !!
|
|
981
|
-
T ? T({ selectedOptions: z, isOpen: M, toggleOpen: J, close:
|
|
982
|
-
|
|
983
|
+
u && /* @__PURE__ */ o("label", { className: C(f.Label, { [f.lifted]: te, [f.WithIcon]: !!F }), children: u }),
|
|
984
|
+
T ? T({ selectedOptions: z, isOpen: M, toggleOpen: J, close: I, triggerProps: q }) : /* @__PURE__ */ m($, { children: [
|
|
985
|
+
F && /* @__PURE__ */ o("span", { className: f.LeadingIcon, children: F }),
|
|
983
986
|
/* @__PURE__ */ o(
|
|
984
|
-
|
|
987
|
+
jo,
|
|
985
988
|
{
|
|
986
989
|
triggerRef: G,
|
|
987
990
|
isOpen: M,
|
|
@@ -991,18 +994,18 @@ function Ls({
|
|
|
991
994
|
onOverflow: d,
|
|
992
995
|
placeholder: ae,
|
|
993
996
|
renderValue: L,
|
|
994
|
-
hasIcon: !!
|
|
997
|
+
hasIcon: !!F
|
|
995
998
|
}
|
|
996
999
|
)
|
|
997
1000
|
] }),
|
|
998
1001
|
M && /* @__PURE__ */ o(
|
|
999
|
-
|
|
1002
|
+
Uo,
|
|
1000
1003
|
{
|
|
1001
1004
|
options: e,
|
|
1002
1005
|
onSearch: t,
|
|
1003
1006
|
onCreate: s,
|
|
1004
1007
|
onPick: ye,
|
|
1005
|
-
onClose:
|
|
1008
|
+
onClose: I,
|
|
1006
1009
|
anchorRef: G,
|
|
1007
1010
|
excluded: a,
|
|
1008
1011
|
multiSelect: i,
|
|
@@ -1021,15 +1024,15 @@ function Ls({
|
|
|
1021
1024
|
)
|
|
1022
1025
|
] });
|
|
1023
1026
|
}
|
|
1024
|
-
const
|
|
1025
|
-
Btn:
|
|
1026
|
-
Unstyled:
|
|
1027
|
-
Primary:
|
|
1028
|
-
Secondary:
|
|
1029
|
-
Ghost:
|
|
1030
|
-
IconDanger:
|
|
1031
|
-
Danger:
|
|
1032
|
-
},
|
|
1027
|
+
const Vo = "_Btn_1wp07_10", Ko = "_Unstyled_1wp07_35", zo = "_Primary_1wp07_52", Xo = "_Secondary_1wp07_67", Qo = "_Ghost_1wp07_79", Yo = "_IconDanger_1wp07_91", Jo = "_Danger_1wp07_112", ne = {
|
|
1028
|
+
Btn: Vo,
|
|
1029
|
+
Unstyled: Ko,
|
|
1030
|
+
Primary: zo,
|
|
1031
|
+
Secondary: Xo,
|
|
1032
|
+
Ghost: Qo,
|
|
1033
|
+
IconDanger: Yo,
|
|
1034
|
+
Danger: Jo
|
|
1035
|
+
}, Zo = {
|
|
1033
1036
|
primary: ne.Primary,
|
|
1034
1037
|
secondary: ne.Secondary,
|
|
1035
1038
|
danger: ne.Danger,
|
|
@@ -1044,23 +1047,23 @@ function Qe({ variant: e = "default", className: n, children: r, ...t }) {
|
|
|
1044
1047
|
{
|
|
1045
1048
|
type: "button",
|
|
1046
1049
|
...t,
|
|
1047
|
-
className: C(!(e === "unstyled") && ne.Btn,
|
|
1050
|
+
className: C(!(e === "unstyled") && ne.Btn, Zo[e], s),
|
|
1048
1051
|
children: r
|
|
1049
1052
|
}
|
|
1050
1053
|
);
|
|
1051
1054
|
}
|
|
1052
|
-
const
|
|
1053
|
-
ConfirmWrapper:
|
|
1054
|
-
ConfirmContainer:
|
|
1055
|
-
Glass:
|
|
1056
|
-
ConfirmTitle:
|
|
1057
|
-
ConfirmMessage:
|
|
1058
|
-
ConfirmActions:
|
|
1059
|
-
BtnCancel:
|
|
1060
|
-
BtnConfirm:
|
|
1061
|
-
BtnDanger:
|
|
1055
|
+
const er = "_ConfirmWrapper_1tq4o_4", nr = "_ConfirmContainer_1tq4o_1", tr = "_Glass_1tq4o_24", or = "_ConfirmTitle_1tq4o_30", rr = "_ConfirmMessage_1tq4o_38", sr = "_ConfirmActions_1tq4o_45", ar = "_BtnCancel_1tq4o_53", ir = "_BtnConfirm_1tq4o_73", cr = "_BtnDanger_1tq4o_92", j = {
|
|
1056
|
+
ConfirmWrapper: er,
|
|
1057
|
+
ConfirmContainer: nr,
|
|
1058
|
+
Glass: tr,
|
|
1059
|
+
ConfirmTitle: or,
|
|
1060
|
+
ConfirmMessage: rr,
|
|
1061
|
+
ConfirmActions: sr,
|
|
1062
|
+
BtnCancel: ar,
|
|
1063
|
+
BtnConfirm: ir,
|
|
1064
|
+
BtnDanger: cr
|
|
1062
1065
|
};
|
|
1063
|
-
function
|
|
1066
|
+
function Ds({
|
|
1064
1067
|
title: e,
|
|
1065
1068
|
message: n,
|
|
1066
1069
|
confirmLabel: r = "Confirm",
|
|
@@ -1071,7 +1074,7 @@ function Ts({
|
|
|
1071
1074
|
className: c,
|
|
1072
1075
|
glass: d = !1
|
|
1073
1076
|
}) {
|
|
1074
|
-
const [u, l] =
|
|
1077
|
+
const [u, l] = k(!1), h = B("ConfirmDialog", c);
|
|
1075
1078
|
function g() {
|
|
1076
1079
|
l(!0), Promise.resolve(a()).finally(() => {
|
|
1077
1080
|
l(!1), i();
|
|
@@ -1095,16 +1098,16 @@ function Ts({
|
|
|
1095
1098
|
] })
|
|
1096
1099
|
] }) });
|
|
1097
1100
|
}
|
|
1098
|
-
const
|
|
1099
|
-
InfoWrapper:
|
|
1100
|
-
InfoContainer:
|
|
1101
|
-
Glass:
|
|
1102
|
-
InfoTitle:
|
|
1103
|
-
InfoMessage:
|
|
1104
|
-
InfoActions:
|
|
1105
|
-
BtnClose:
|
|
1101
|
+
const lr = "_InfoWrapper_cqv58_4", ur = "_InfoContainer_cqv58_1", dr = "_Glass_cqv58_24", hr = "_InfoTitle_cqv58_30", _r = "_InfoMessage_cqv58_38", fr = "_InfoActions_cqv58_45", pr = "_BtnClose_cqv58_52", ee = {
|
|
1102
|
+
InfoWrapper: lr,
|
|
1103
|
+
InfoContainer: ur,
|
|
1104
|
+
Glass: dr,
|
|
1105
|
+
InfoTitle: hr,
|
|
1106
|
+
InfoMessage: _r,
|
|
1107
|
+
InfoActions: fr,
|
|
1108
|
+
BtnClose: pr
|
|
1106
1109
|
};
|
|
1107
|
-
function
|
|
1110
|
+
function Bs({ title: e, message: n, onClose: r, className: t, glass: s = !1 }) {
|
|
1108
1111
|
const a = B("InfoDialog", t);
|
|
1109
1112
|
return /* @__PURE__ */ o("div", { className: ee.InfoWrapper, children: /* @__PURE__ */ m("div", { className: C(ee.InfoContainer, { [ee.Glass]: s }, a), role: "dialog", "aria-modal": "true", children: [
|
|
1110
1113
|
/* @__PURE__ */ o("h2", { className: ee.InfoTitle, children: e }),
|
|
@@ -1112,7 +1115,7 @@ function Ds({ title: e, message: n, onClose: r, className: t, glass: s = !1 }) {
|
|
|
1112
1115
|
/* @__PURE__ */ o("div", { className: ee.InfoActions, children: /* @__PURE__ */ o("button", { className: ee.BtnClose, type: "button", onClick: r, children: "Got it" }) })
|
|
1113
1116
|
] }) });
|
|
1114
1117
|
}
|
|
1115
|
-
function
|
|
1118
|
+
function Es({ buttons: e, containerClassName: n }) {
|
|
1116
1119
|
const r = B("ModalActions", n);
|
|
1117
1120
|
return /* @__PURE__ */ o("div", { className: r, children: e.map((t, s) => /* @__PURE__ */ o(
|
|
1118
1121
|
"button",
|
|
@@ -1126,7 +1129,7 @@ function Bs({ buttons: e, containerClassName: n }) {
|
|
|
1126
1129
|
s
|
|
1127
1130
|
)) });
|
|
1128
1131
|
}
|
|
1129
|
-
function
|
|
1132
|
+
function As({ onClick: e, disabled: n, className: r }) {
|
|
1130
1133
|
const t = B("ModalClose", r);
|
|
1131
1134
|
return /* @__PURE__ */ o(
|
|
1132
1135
|
"button",
|
|
@@ -1155,17 +1158,17 @@ function Es({ onClick: e, disabled: n, className: r }) {
|
|
|
1155
1158
|
}
|
|
1156
1159
|
);
|
|
1157
1160
|
}
|
|
1158
|
-
const
|
|
1159
|
-
Backdrop:
|
|
1160
|
-
BackdropOpen:
|
|
1161
|
-
Panel:
|
|
1162
|
-
Right:
|
|
1163
|
-
Left:
|
|
1164
|
-
Top:
|
|
1165
|
-
Bottom:
|
|
1166
|
-
PanelOpen:
|
|
1161
|
+
const mr = "_Backdrop_1w1e3_7", gr = "_BackdropOpen_1w1e3_16", Cr = "_Panel_1w1e3_21", vr = "_Right_1w1e3_31", wr = "_Left_1w1e3_40", br = "_Top_1w1e3_49", yr = "_Bottom_1w1e3_58", Nr = "_PanelOpen_1w1e3_67", Y = {
|
|
1162
|
+
Backdrop: mr,
|
|
1163
|
+
BackdropOpen: gr,
|
|
1164
|
+
Panel: Cr,
|
|
1165
|
+
Right: vr,
|
|
1166
|
+
Left: wr,
|
|
1167
|
+
Top: br,
|
|
1168
|
+
Bottom: yr,
|
|
1169
|
+
PanelOpen: Nr
|
|
1167
1170
|
}, he = [];
|
|
1168
|
-
let
|
|
1171
|
+
let kr = 1, be = !1, Se = 0;
|
|
1169
1172
|
function Ye() {
|
|
1170
1173
|
if (Se > 0) {
|
|
1171
1174
|
Se -= 1;
|
|
@@ -1180,20 +1183,20 @@ function Ir() {
|
|
|
1180
1183
|
function Je() {
|
|
1181
1184
|
he.length > 0 || !be || (be = !1, window.removeEventListener("popstate", Ye));
|
|
1182
1185
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const n =
|
|
1186
|
+
function xr(e) {
|
|
1187
|
+
const n = kr++;
|
|
1185
1188
|
return he.push({ handle: n, onBack: e }), Ir(), window.history.pushState({ churesOverlayBackHandle: n }, ""), n;
|
|
1186
1189
|
}
|
|
1187
1190
|
function Oe(e) {
|
|
1188
1191
|
const n = he.findIndex((t) => t.handle === e);
|
|
1189
1192
|
n === -1 || (he.splice(n, 1), Je(), window.history.state?.churesOverlayBackHandle !== e) || (Se += 1, window.history.back());
|
|
1190
1193
|
}
|
|
1191
|
-
function
|
|
1194
|
+
function Sr(e, n) {
|
|
1192
1195
|
const r = x([]), t = x(n);
|
|
1193
1196
|
t.current = n, A(() => {
|
|
1194
1197
|
const s = r.current;
|
|
1195
1198
|
for (; s.length < e; )
|
|
1196
|
-
s.push(
|
|
1199
|
+
s.push(xr(() => t.current()));
|
|
1197
1200
|
for (; s.length > e; ) {
|
|
1198
1201
|
const a = s.pop();
|
|
1199
1202
|
a !== void 0 && Oe(a);
|
|
@@ -1206,19 +1209,19 @@ function xr(e, n) {
|
|
|
1206
1209
|
}
|
|
1207
1210
|
}, []);
|
|
1208
1211
|
}
|
|
1209
|
-
const
|
|
1212
|
+
const Rr = {
|
|
1210
1213
|
top: Y.Top,
|
|
1211
1214
|
right: Y.Right,
|
|
1212
1215
|
bottom: Y.Bottom,
|
|
1213
1216
|
left: Y.Left
|
|
1214
1217
|
};
|
|
1215
|
-
let Q = null,
|
|
1218
|
+
let Q = null, Ie = 0;
|
|
1216
1219
|
function We() {
|
|
1217
1220
|
return Q || (Q = document.createElement("div"), Q.setAttribute("data-chures-side-drawer-root", ""), document.body.appendChild(Q)), Q;
|
|
1218
1221
|
}
|
|
1219
|
-
function
|
|
1220
|
-
const [i, c] =
|
|
1221
|
-
|
|
1222
|
+
function Ms({ open: e, onClose: n, children: r, side: t = "right", backdropBlur: s = 0, className: a }) {
|
|
1223
|
+
const [i, c] = k(!1), d = B("SideDrawer", a);
|
|
1224
|
+
Sr(e ? 1 : 0, n), de(() => {
|
|
1222
1225
|
if (!e) {
|
|
1223
1226
|
c(!1);
|
|
1224
1227
|
return;
|
|
@@ -1226,8 +1229,8 @@ function As({ open: e, onClose: n, children: r, side: t = "right", backdropBlur:
|
|
|
1226
1229
|
document.body.appendChild(We());
|
|
1227
1230
|
const l = requestAnimationFrame(() => c(!0));
|
|
1228
1231
|
return () => cancelAnimationFrame(l);
|
|
1229
|
-
}, [e]), A(() => (
|
|
1230
|
-
|
|
1232
|
+
}, [e]), A(() => (Ie += 1, () => {
|
|
1233
|
+
Ie -= 1, Ie === 0 && Q && (Q.remove(), Q = null);
|
|
1231
1234
|
}), []);
|
|
1232
1235
|
const u = s > 0 ? { backdropFilter: `blur(${s}rem)`, WebkitBackdropFilter: `blur(${s}rem)` } : void 0;
|
|
1233
1236
|
return De(
|
|
@@ -1240,38 +1243,38 @@ function As({ open: e, onClose: n, children: r, side: t = "right", backdropBlur:
|
|
|
1240
1243
|
onClick: n
|
|
1241
1244
|
}
|
|
1242
1245
|
),
|
|
1243
|
-
/* @__PURE__ */ o("div", { className: C(Y.Panel,
|
|
1246
|
+
/* @__PURE__ */ o("div", { className: C(Y.Panel, Rr[t], i && Y.PanelOpen, d), children: r })
|
|
1244
1247
|
] }),
|
|
1245
1248
|
We()
|
|
1246
1249
|
);
|
|
1247
1250
|
}
|
|
1248
1251
|
const Re = $e(!0);
|
|
1249
|
-
function
|
|
1252
|
+
function Lr() {
|
|
1250
1253
|
return Ge(Re);
|
|
1251
1254
|
}
|
|
1252
|
-
const
|
|
1253
|
-
FlyoutMenuContainer:
|
|
1254
|
-
Backdrop:
|
|
1255
|
-
Panel:
|
|
1256
|
-
Submenu:
|
|
1257
|
-
FlyoutPanelContainer:
|
|
1258
|
-
Back:
|
|
1259
|
-
Chevron:
|
|
1260
|
-
MenuListContainer:
|
|
1261
|
-
Heading:
|
|
1262
|
-
Divider:
|
|
1263
|
-
MenuRowContainer:
|
|
1264
|
-
Dim:
|
|
1265
|
-
Row:
|
|
1266
|
-
Icon:
|
|
1267
|
-
Label:
|
|
1268
|
-
Arrow:
|
|
1269
|
-
MenuSkeletonContainer:
|
|
1270
|
-
MenuSkeletonRow:
|
|
1271
|
-
MenuSearchFieldContainer:
|
|
1272
|
-
},
|
|
1255
|
+
const Tr = "_FlyoutMenuContainer_1q0ma_5", Dr = "_Backdrop_1q0ma_9", Br = "_Panel_1q0ma_14", Er = "_Submenu_1q0ma_27", Ar = "_FlyoutPanelContainer_1q0ma_41", Mr = "_Back_1q0ma_9", Pr = "_Chevron_1q0ma_68", Or = "_MenuListContainer_1q0ma_75", Wr = "_Heading_1q0ma_81", Fr = "_Divider_1q0ma_90", Hr = "_MenuRowContainer_1q0ma_98", qr = "_Dim_1q0ma_102", Ur = "_Row_1q0ma_106", $r = "_Icon_1q0ma_135", Gr = "_Label_1q0ma_140", jr = "_Arrow_1q0ma_148", Vr = "_MenuSkeletonContainer_1q0ma_156", Kr = "_MenuSkeletonRow_1q0ma_163", zr = "_MenuSearchFieldContainer_1q0ma_191", N = {
|
|
1256
|
+
FlyoutMenuContainer: Tr,
|
|
1257
|
+
Backdrop: Dr,
|
|
1258
|
+
Panel: Br,
|
|
1259
|
+
Submenu: Er,
|
|
1260
|
+
FlyoutPanelContainer: Ar,
|
|
1261
|
+
Back: Mr,
|
|
1262
|
+
Chevron: Pr,
|
|
1263
|
+
MenuListContainer: Or,
|
|
1264
|
+
Heading: Wr,
|
|
1265
|
+
Divider: Fr,
|
|
1266
|
+
MenuRowContainer: Hr,
|
|
1267
|
+
Dim: qr,
|
|
1268
|
+
Row: Ur,
|
|
1269
|
+
Icon: $r,
|
|
1270
|
+
Label: Gr,
|
|
1271
|
+
Arrow: jr,
|
|
1272
|
+
MenuSkeletonContainer: Vr,
|
|
1273
|
+
MenuSkeletonRow: Kr,
|
|
1274
|
+
MenuSearchFieldContainer: zr
|
|
1275
|
+
}, Xr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1273
1276
|
function Fe({ item: e, menu: n, dim: r }) {
|
|
1274
|
-
const t =
|
|
1277
|
+
const t = Lr(), s = e.submenu;
|
|
1275
1278
|
function a(i) {
|
|
1276
1279
|
if (s) {
|
|
1277
1280
|
n.toggleSubmenuFrom(i.currentTarget, s);
|
|
@@ -1279,7 +1282,7 @@ function Fe({ item: e, menu: n, dim: r }) {
|
|
|
1279
1282
|
}
|
|
1280
1283
|
e.disabled || n.selectItem(e);
|
|
1281
1284
|
}
|
|
1282
|
-
return /* @__PURE__ */ o(se.div, { layout: t, transition:
|
|
1285
|
+
return /* @__PURE__ */ o(se.div, { layout: t, transition: Xr, className: C(N.MenuRowContainer, r && N.Dim), children: /* @__PURE__ */ m(
|
|
1283
1286
|
Qe,
|
|
1284
1287
|
{
|
|
1285
1288
|
variant: "unstyled",
|
|
@@ -1306,12 +1309,12 @@ function He({ items: e, menu: n, heading: r, rest: t }) {
|
|
|
1306
1309
|
t?.map((a) => /* @__PURE__ */ o(Fe, { item: a, menu: n, dim: !0 }, a.key))
|
|
1307
1310
|
] });
|
|
1308
1311
|
}
|
|
1309
|
-
function
|
|
1312
|
+
function Qr({ count: e = 3 }) {
|
|
1310
1313
|
const n = je(() => Array.from({ length: Math.max(0, e) }, (r, t) => t), [e]);
|
|
1311
1314
|
return /* @__PURE__ */ o("div", { className: N.MenuSkeletonContainer, children: n.map((r) => /* @__PURE__ */ o("div", { className: N.MenuSkeletonRow, role: "presentation" }, r)) });
|
|
1312
1315
|
}
|
|
1313
|
-
const
|
|
1314
|
-
function
|
|
1316
|
+
const Yr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1317
|
+
function Jr({ value: e, onChange: n, placeholder: r }) {
|
|
1315
1318
|
function t(s) {
|
|
1316
1319
|
s.key === "Escape" && n("");
|
|
1317
1320
|
}
|
|
@@ -1322,22 +1325,22 @@ function Yr({ value: e, onChange: n, placeholder: r }) {
|
|
|
1322
1325
|
initial: { opacity: 0, height: 0 },
|
|
1323
1326
|
animate: { opacity: 1, height: "auto" },
|
|
1324
1327
|
exit: { opacity: 0, height: 0 },
|
|
1325
|
-
transition:
|
|
1328
|
+
transition: Yr,
|
|
1326
1329
|
children: /* @__PURE__ */ o(
|
|
1327
|
-
|
|
1330
|
+
wt,
|
|
1328
1331
|
{
|
|
1329
1332
|
value: e,
|
|
1330
1333
|
setValue: n,
|
|
1331
1334
|
placeholder: r ?? "Search",
|
|
1332
1335
|
autoFocus: !0,
|
|
1333
1336
|
onKeyDown: t,
|
|
1334
|
-
startIcon: /* @__PURE__ */ o(
|
|
1337
|
+
startIcon: /* @__PURE__ */ o(Go, { size: 14 })
|
|
1335
1338
|
}
|
|
1336
1339
|
)
|
|
1337
1340
|
}
|
|
1338
1341
|
);
|
|
1339
1342
|
}
|
|
1340
|
-
function
|
|
1343
|
+
function Zr(e, n, r) {
|
|
1341
1344
|
const t = n.trim().toLowerCase();
|
|
1342
1345
|
if (!t) return { matches: e, rest: [] };
|
|
1343
1346
|
const s = [], a = [];
|
|
@@ -1345,15 +1348,15 @@ function Jr(e, n, r) {
|
|
|
1345
1348
|
r(i).toLowerCase().includes(t) ? s.push(i) : a.push(i);
|
|
1346
1349
|
return { matches: s, rest: a };
|
|
1347
1350
|
}
|
|
1348
|
-
function
|
|
1351
|
+
function es(e) {
|
|
1349
1352
|
return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
|
|
1350
1353
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const [n, r] =
|
|
1354
|
+
function ns(e) {
|
|
1355
|
+
const [n, r] = k("");
|
|
1353
1356
|
return A(() => {
|
|
1354
1357
|
if (!e) return;
|
|
1355
1358
|
function t(s) {
|
|
1356
|
-
if (!
|
|
1359
|
+
if (!es(document.activeElement)) {
|
|
1357
1360
|
if (s.key === "Backspace") {
|
|
1358
1361
|
r((a) => a.slice(0, -1));
|
|
1359
1362
|
return;
|
|
@@ -1364,34 +1367,34 @@ function es(e) {
|
|
|
1364
1367
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
1365
1368
|
}, [e]), { query: n, setQuery: r };
|
|
1366
1369
|
}
|
|
1367
|
-
function
|
|
1370
|
+
function ts(e) {
|
|
1368
1371
|
return e.searchText !== void 0 ? e.searchText : typeof e.label == "string" ? e.label : "";
|
|
1369
1372
|
}
|
|
1370
1373
|
function qe({ section: e, menu: n, onBack: r, skeletonCount: t, active: s }) {
|
|
1371
|
-
const a = !!e.searchable && !!e.items, { query: i, setQuery: c } =
|
|
1374
|
+
const a = !!e.searchable && !!e.items, { query: i, setQuery: c } = ns(!!s && a);
|
|
1372
1375
|
A(() => c(""), [e, c]);
|
|
1373
1376
|
const { matches: d, rest: u } = je(
|
|
1374
|
-
() =>
|
|
1377
|
+
() => Zr(e.items ?? [], i, ts),
|
|
1375
1378
|
[e.items, i]
|
|
1376
1379
|
), l = r ? void 0 : e.title;
|
|
1377
1380
|
let h;
|
|
1378
|
-
return e.loading ? h = /* @__PURE__ */ o(
|
|
1381
|
+
return e.loading ? h = /* @__PURE__ */ o(Qr, { count: t }) : e.renderPanel ? h = e.renderPanel() : a ? h = /* @__PURE__ */ o(He, { items: d, rest: u, menu: n, heading: l }) : h = /* @__PURE__ */ o(He, { items: e.items ?? [], menu: n, heading: l }), /* @__PURE__ */ m("div", { className: N.FlyoutPanelContainer, children: [
|
|
1379
1382
|
r && /* @__PURE__ */ m(Qe, { variant: "unstyled", className: N.Back, onClick: r, children: [
|
|
1380
1383
|
/* @__PURE__ */ o("span", { className: N.Chevron, children: "‹" }),
|
|
1381
1384
|
e.title ?? "Back"
|
|
1382
1385
|
] }),
|
|
1383
|
-
a && /* @__PURE__ */ o(ve, { children: i !== "" && /* @__PURE__ */ o(
|
|
1386
|
+
a && /* @__PURE__ */ o(ve, { children: i !== "" && /* @__PURE__ */ o(Jr, { value: i, onChange: c }) }),
|
|
1384
1387
|
h
|
|
1385
1388
|
] });
|
|
1386
1389
|
}
|
|
1387
|
-
function
|
|
1390
|
+
function os(e, n, r, t, s) {
|
|
1388
1391
|
const a = r.width - 2 * t, i = Math.max(t, r.width - t - n.width), c = Math.min(Math.max(e.right - n.width, t), i), d = e.top - s - t, u = r.height - t - e.bottom - s;
|
|
1389
1392
|
if (n.height > d && u > d)
|
|
1390
1393
|
return { top: e.bottom + s, left: c, maxHeight: u, maxWidth: a };
|
|
1391
1394
|
const l = e.top - s - n.height;
|
|
1392
1395
|
return { top: l < t ? t : l, left: c, maxHeight: d, maxWidth: a };
|
|
1393
1396
|
}
|
|
1394
|
-
function
|
|
1397
|
+
function rs(e, n, r, t, s) {
|
|
1395
1398
|
if (s) return { side: "collapse" };
|
|
1396
1399
|
const a = e.right + n.width <= r.width - t, i = e.left - n.width, c = a ? "right" : i >= t ? "left" : null;
|
|
1397
1400
|
if (!c) return { side: "collapse" };
|
|
@@ -1402,7 +1405,7 @@ function os(e, n, r, t, s) {
|
|
|
1402
1405
|
return { side: c, left: d, top: h, maxHeight: l };
|
|
1403
1406
|
}
|
|
1404
1407
|
function Ze(e, n, r) {
|
|
1405
|
-
const [t, s] =
|
|
1408
|
+
const [t, s] = k(null), a = x(n), i = x(r);
|
|
1406
1409
|
a.current = n, i.current = r;
|
|
1407
1410
|
const c = x(null);
|
|
1408
1411
|
return de(() => {
|
|
@@ -1424,7 +1427,7 @@ function Ze(e, n, r) {
|
|
|
1424
1427
|
};
|
|
1425
1428
|
}, [e]), t;
|
|
1426
1429
|
}
|
|
1427
|
-
const en = 8,
|
|
1430
|
+
const en = 8, ss = 8, as = 150, is = 3;
|
|
1428
1431
|
function nn() {
|
|
1429
1432
|
return { width: window.innerWidth, height: window.innerHeight };
|
|
1430
1433
|
}
|
|
@@ -1434,71 +1437,71 @@ function Le() {
|
|
|
1434
1437
|
function tn(e) {
|
|
1435
1438
|
return { width: e.scrollWidth || e.offsetWidth, height: e.scrollHeight || e.offsetHeight };
|
|
1436
1439
|
}
|
|
1437
|
-
function
|
|
1440
|
+
function cs(e, n) {
|
|
1438
1441
|
return e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight && e.maxWidth === n.maxWidth;
|
|
1439
1442
|
}
|
|
1440
|
-
function
|
|
1443
|
+
function ls(e, n) {
|
|
1441
1444
|
return e === "collapse" || n === "collapse" ? e === n : e.side === n.side && e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight;
|
|
1442
1445
|
}
|
|
1443
|
-
function
|
|
1446
|
+
function us(e, n, r) {
|
|
1444
1447
|
return Ze(
|
|
1445
1448
|
e,
|
|
1446
1449
|
() => {
|
|
1447
1450
|
const t = n.current, s = r.current;
|
|
1448
|
-
return !t || !s ? null :
|
|
1451
|
+
return !t || !s ? null : os(t.getBoundingClientRect(), tn(s), nn(), en, ss);
|
|
1449
1452
|
},
|
|
1450
|
-
|
|
1453
|
+
cs
|
|
1451
1454
|
);
|
|
1452
1455
|
}
|
|
1453
|
-
function
|
|
1456
|
+
function ds(e, n, r) {
|
|
1454
1457
|
return Ze(
|
|
1455
1458
|
e,
|
|
1456
1459
|
() => {
|
|
1457
1460
|
const t = n.current, s = r.current;
|
|
1458
1461
|
if (!t || !s) return null;
|
|
1459
|
-
const a =
|
|
1462
|
+
const a = rs(s.getBoundingClientRect(), tn(t), nn(), en, Le());
|
|
1460
1463
|
return a.side === "collapse" ? "collapse" : a;
|
|
1461
1464
|
},
|
|
1462
|
-
|
|
1465
|
+
ls
|
|
1463
1466
|
);
|
|
1464
1467
|
}
|
|
1465
|
-
function
|
|
1466
|
-
const { anchorRef: n, panelRef: r, submenuRef: t, open: s, onOpenChange: a } = e, [i, c] =
|
|
1467
|
-
c(
|
|
1468
|
-
}, [a]),
|
|
1469
|
-
g(null), l((D) => D.length >=
|
|
1468
|
+
function hs(e) {
|
|
1469
|
+
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), b = x(null), w = x(void 0), S = E((I) => {
|
|
1470
|
+
c(I), a?.(I);
|
|
1471
|
+
}, [a]), W = E((I) => {
|
|
1472
|
+
g(null), l((D) => D.length >= is ? D : [...D, I]);
|
|
1470
1473
|
}, []);
|
|
1471
1474
|
A(() => {
|
|
1472
1475
|
d || (l([]), g(null), b.current = null, w.current && clearTimeout(w.current));
|
|
1473
1476
|
}, [d]);
|
|
1474
|
-
const R = E((
|
|
1475
|
-
if (w.current && clearTimeout(w.current), b.current =
|
|
1476
|
-
|
|
1477
|
+
const R = E((I, D) => {
|
|
1478
|
+
if (w.current && clearTimeout(w.current), b.current = I, Le()) {
|
|
1479
|
+
W(D);
|
|
1477
1480
|
return;
|
|
1478
1481
|
}
|
|
1479
1482
|
g({ section: D, placement: null });
|
|
1480
|
-
}, [
|
|
1483
|
+
}, [W]), _ = E((I, D) => {
|
|
1481
1484
|
if (Le()) {
|
|
1482
|
-
u[u.length - 1] === D ? l((z) => z.slice(0, -1)) : R(
|
|
1485
|
+
u[u.length - 1] === D ? l((z) => z.slice(0, -1)) : R(I, D);
|
|
1483
1486
|
return;
|
|
1484
1487
|
}
|
|
1485
|
-
h && h.section === D ? g(null) : R(
|
|
1488
|
+
h && h.section === D ? g(null) : R(I, D);
|
|
1486
1489
|
}, [u, h, R]), v = E(() => {
|
|
1487
|
-
w.current && clearTimeout(w.current), w.current = setTimeout(() => g(null),
|
|
1490
|
+
w.current && clearTimeout(w.current), w.current = setTimeout(() => g(null), as);
|
|
1488
1491
|
}, []), L = E(() => {
|
|
1489
1492
|
w.current && clearTimeout(w.current);
|
|
1490
|
-
}, []), y =
|
|
1493
|
+
}, []), y = ds(!!h, t, b), F = us(d, n, r);
|
|
1491
1494
|
A(() => {
|
|
1492
1495
|
if (!(!h || !y)) {
|
|
1493
1496
|
if (y === "collapse") {
|
|
1494
|
-
|
|
1497
|
+
W(h.section);
|
|
1495
1498
|
return;
|
|
1496
1499
|
}
|
|
1497
1500
|
h.placement !== y && g({ section: h.section, placement: y });
|
|
1498
1501
|
}
|
|
1499
|
-
}, [y, h,
|
|
1500
|
-
const T = E(() => l((
|
|
1501
|
-
|
|
1502
|
+
}, [y, h, W]);
|
|
1503
|
+
const T = E(() => l((I) => I.slice(0, -1)), []), M = E(() => S(!1), [S]), G = E(() => S(!d), [S, d]), J = E((I) => {
|
|
1504
|
+
I.onSelect?.(), S(!1);
|
|
1502
1505
|
}, [S]);
|
|
1503
1506
|
return {
|
|
1504
1507
|
open: d,
|
|
@@ -1511,17 +1514,17 @@ function ds(e) {
|
|
|
1511
1514
|
closeSubmenuSoon: v,
|
|
1512
1515
|
holdSubmenu: L,
|
|
1513
1516
|
frame: u[u.length - 1] ?? null,
|
|
1514
|
-
menuPlacement:
|
|
1517
|
+
menuPlacement: F,
|
|
1515
1518
|
submenu: h
|
|
1516
1519
|
};
|
|
1517
1520
|
}
|
|
1518
1521
|
const Ue = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
|
|
1519
|
-
function
|
|
1522
|
+
function Ps(e) {
|
|
1520
1523
|
const { anchorRef: n, open: r, onClose: t, items: s, rootTitle: a, skeletonCount: i } = e, c = x(null), d = x(null);
|
|
1521
1524
|
function u(w) {
|
|
1522
1525
|
w || t();
|
|
1523
1526
|
}
|
|
1524
|
-
const l =
|
|
1527
|
+
const l = hs({ anchorRef: n, panelRef: c, submenuRef: d, open: r, onOpenChange: u }), h = l.frame ?? { title: a, items: s, searchable: e.searchable }, g = l.menuPlacement, b = l.submenu?.placement ?? null;
|
|
1525
1528
|
return De(
|
|
1526
1529
|
/* @__PURE__ */ m("div", { className: N.FlyoutMenuContainer, children: [
|
|
1527
1530
|
r && /* @__PURE__ */ o("div", { className: N.Backdrop, onClick: t }),
|
|
@@ -1576,23 +1579,23 @@ function Ms(e) {
|
|
|
1576
1579
|
document.body
|
|
1577
1580
|
);
|
|
1578
1581
|
}
|
|
1579
|
-
function
|
|
1582
|
+
function Os({ classNames: e, children: n }) {
|
|
1580
1583
|
return /* @__PURE__ */ o(Ve.Provider, { value: e, children: n });
|
|
1581
1584
|
}
|
|
1582
1585
|
var Te = /* @__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))(Te || {});
|
|
1583
|
-
const
|
|
1586
|
+
const _s = "type.googleapis.com/google.rpc.ErrorInfo", fs = "type.googleapis.com/google.rpc.BadRequest", ps = "type.googleapis.com/google.rpc.PreconditionFailure";
|
|
1584
1587
|
function ge(e) {
|
|
1585
1588
|
return typeof e == "object" && e !== null;
|
|
1586
1589
|
}
|
|
1587
1590
|
function V(e) {
|
|
1588
1591
|
return typeof e == "string" ? e : "";
|
|
1589
1592
|
}
|
|
1590
|
-
function
|
|
1593
|
+
function ms(e) {
|
|
1591
1594
|
if (!ge(e))
|
|
1592
1595
|
return { kind: "Unknown", typeUrl: "", raw: e };
|
|
1593
1596
|
const n = V(e["@type"]);
|
|
1594
1597
|
switch (n) {
|
|
1595
|
-
case
|
|
1598
|
+
case _s: {
|
|
1596
1599
|
const r = ge(e.metadata) ? e.metadata : {}, t = {};
|
|
1597
1600
|
for (const s of Object.keys(r))
|
|
1598
1601
|
t[s] = V(r[s]);
|
|
@@ -1603,7 +1606,7 @@ function ps(e) {
|
|
|
1603
1606
|
metadata: t
|
|
1604
1607
|
};
|
|
1605
1608
|
}
|
|
1606
|
-
case
|
|
1609
|
+
case fs:
|
|
1607
1610
|
return { kind: "BadRequest", fieldViolations: (Array.isArray(e.fieldViolations) ? e.fieldViolations : []).map((s) => {
|
|
1608
1611
|
const a = ge(s) ? s : {};
|
|
1609
1612
|
return {
|
|
@@ -1611,7 +1614,7 @@ function ps(e) {
|
|
|
1611
1614
|
description: V(a.description)
|
|
1612
1615
|
};
|
|
1613
1616
|
}) };
|
|
1614
|
-
case
|
|
1617
|
+
case ps:
|
|
1615
1618
|
return { kind: "PreconditionFailure", violations: (Array.isArray(e.violations) ? e.violations : []).map((s) => {
|
|
1616
1619
|
const a = ge(s) ? s : {};
|
|
1617
1620
|
return {
|
|
@@ -1624,13 +1627,13 @@ function ps(e) {
|
|
|
1624
1627
|
return { kind: "Unknown", typeUrl: n, raw: e };
|
|
1625
1628
|
}
|
|
1626
1629
|
}
|
|
1627
|
-
function
|
|
1630
|
+
function Ws(e) {
|
|
1628
1631
|
return e.kind === "ErrorInfo";
|
|
1629
1632
|
}
|
|
1630
|
-
function
|
|
1633
|
+
function Fs(e) {
|
|
1631
1634
|
return e.kind === "BadRequest";
|
|
1632
1635
|
}
|
|
1633
|
-
function
|
|
1636
|
+
function Hs(e) {
|
|
1634
1637
|
return e.kind === "PreconditionFailure";
|
|
1635
1638
|
}
|
|
1636
1639
|
class Ce extends Error {
|
|
@@ -1638,62 +1641,62 @@ class Ce extends Error {
|
|
|
1638
1641
|
super(n.title), this.isRetryable = n.isRetryable ?? !1, this.grpcCode = n.grpcCode, this.details = n.details ?? [];
|
|
1639
1642
|
}
|
|
1640
1643
|
}
|
|
1641
|
-
function
|
|
1644
|
+
function qs(e) {
|
|
1642
1645
|
if (e instanceof Ce) return e;
|
|
1643
1646
|
if (e instanceof Error && e.message === "Failed to fetch")
|
|
1644
1647
|
return new Ce({ title: "Server unavailable. Try again later", isRetryable: !0 });
|
|
1645
1648
|
if (typeof e == "object" && e !== null && "code" in e) {
|
|
1646
|
-
const n = e, r = n.code === Te.UNAVAILABLE || n.code === Te.INTERNAL, t = (n.details ?? []).map(
|
|
1649
|
+
const n = e, r = n.code === Te.UNAVAILABLE || n.code === Te.INTERNAL, t = (n.details ?? []).map(ms);
|
|
1647
1650
|
return new Ce({ title: n.message, isRetryable: r, grpcCode: n.code, details: t });
|
|
1648
1651
|
}
|
|
1649
1652
|
return new Ce({ title: String(e), isRetryable: !1 });
|
|
1650
1653
|
}
|
|
1651
1654
|
export {
|
|
1652
|
-
|
|
1653
|
-
|
|
1655
|
+
Ls as AvatarFallbackIcon,
|
|
1656
|
+
fs as BAD_REQUEST_TYPE_URL,
|
|
1654
1657
|
Qe as Button,
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1658
|
+
Ss as Checkbox,
|
|
1659
|
+
Pt as CheckmarkIcon,
|
|
1660
|
+
$o as ChevronDownIcon,
|
|
1661
|
+
Os as ChuresConfigProvider,
|
|
1662
|
+
Ds as ConfirmDialog,
|
|
1663
|
+
Ts as Dropdown,
|
|
1664
|
+
Fo as DropdownCheckmark,
|
|
1665
|
+
_s as ERROR_INFO_TYPE_URL,
|
|
1666
|
+
Rs as EditPencilIcon,
|
|
1664
1667
|
Te as Errors,
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
+
Ps as FlyoutMenu,
|
|
1669
|
+
Bs as InfoDialog,
|
|
1670
|
+
wt as Input,
|
|
1668
1671
|
Fn as Loader,
|
|
1669
|
-
|
|
1672
|
+
ys as LoadingWrapper,
|
|
1670
1673
|
Re as MenuMeasuredContext,
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1674
|
+
Jr as MenuSearchField,
|
|
1675
|
+
Qr as MenuSkeleton,
|
|
1676
|
+
Es as ModalActions,
|
|
1677
|
+
As as ModalClose,
|
|
1678
|
+
ps as PRECONDITION_FAILURE_TYPE_URL,
|
|
1679
|
+
Go as SearchIcon,
|
|
1680
|
+
xs as SegmentedControl,
|
|
1678
1681
|
Ce as ServiceError,
|
|
1679
|
-
|
|
1680
|
-
|
|
1682
|
+
Ms as SideDrawer,
|
|
1683
|
+
Ns as TelegramAuth,
|
|
1681
1684
|
Xn as TelegramSignInButton,
|
|
1682
|
-
|
|
1685
|
+
ks as Toaster,
|
|
1683
1686
|
Is as Toggle,
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1687
|
+
Fs as isBadRequest,
|
|
1688
|
+
Ws as isErrorInfo,
|
|
1689
|
+
Hs as isPreconditionFailure,
|
|
1690
|
+
ts as menuItemText,
|
|
1691
|
+
ms as parseErrorDetail,
|
|
1692
|
+
qs as parseGrpcError,
|
|
1693
|
+
Zr as partitionBySubstring,
|
|
1691
1694
|
Oe as popOverlayBack,
|
|
1692
|
-
|
|
1693
|
-
|
|
1695
|
+
xr as pushOverlayBack,
|
|
1696
|
+
Sr as useBackableOverlay,
|
|
1694
1697
|
B as useComponentClassName,
|
|
1695
|
-
|
|
1698
|
+
Lr as useMenuMeasured,
|
|
1696
1699
|
$n as useTelegramLogin,
|
|
1697
1700
|
Ke as useToaster,
|
|
1698
|
-
|
|
1701
|
+
ns as useTypeToSearch
|
|
1699
1702
|
};
|