@vervstack/chures 0.0.43 → 0.0.44

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