@vervstack/chures 0.0.17 → 0.0.18
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,9 +1,9 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@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_1a08x_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_1a08x_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_1a08x_12{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}._InputField_1a08x_12:focus{border-color:#ffffff59}._hasError_1a08x_30 ._InputField_1a08x_12,._hasError_1a08x_30 ._InputField_1a08x_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_1a08x_35 ._InputField_1a08x_12{opacity:.45;cursor:not-allowed}._Label_1a08x_40{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}._Label_1a08x_40._lifted_1a08x_54{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_1a08x_30 ._Label_1a08x_40._lifted_1a08x_54{color:var(--chures-error, #ef4444)}._ErrorText_1a08x_65{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_1a08x_73{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_1a08x_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@keyframes _panelIn_p7cfo_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_p7cfo_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_p7cfo_13{position:relative;width:100%}._PanelWrapper_p7cfo_20{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_p7cfo_1 .14s ease}._PanelWrapper_p7cfo_20._Portal_p7cfo_34{position:fixed;width:auto;margin-top:var(--chures-dropdown-panel-gap)}._PanelContainer_p7cfo_18{background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;box-shadow:0 1rem 3rem #000c}._PanelContainer_p7cfo_18._Glass_p7cfo_48{background:var(--chures-dropdown-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem))}._Label_p7cfo_54{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_p7cfo_54._lifted_p7cfo_68{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_p7cfo_75{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_p7cfo_75:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_p7cfo_75._Open_p7cfo_99{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_p7cfo_104{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_p7cfo_112{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_p7cfo_120{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_p7cfo_127{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;margin:.375rem 0;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_p7cfo_127::-webkit-scrollbar{display:none}._ChipsWrapper_p7cfo_127._Expand_p7cfo_145{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_p7cfo_75._MultiSelect_p7cfo_151 ._TriggerIcon_p7cfo_120{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_p7cfo_75._ExpandHeight_p7cfo_156{height:auto;min-height:var(--chures-input-height)}._Chip_p7cfo_127{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_p7cfo_175{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_p7cfo_180{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_p7cfo_190{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_p7cfo_197{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_p7cfo_197::placeholder{color:var(--chures-fg-muted)}._ResultsList_p7cfo_211{max-height:13rem;overflow-y:auto}._OptionRow_p7cfo_216{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_p7cfo_216:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_p7cfo_216._Selected_p7cfo_231{color:var(--chures-fg)}._Checkmark_p7cfo_236{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_p7cfo_242{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_p7cfo_242:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_p7cfo_242._WithBorder_p7cfo_255{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_p7cfo_260{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_p7cfo_272{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_p7cfo_278{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_p7cfo_285{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_p7cfo_1 1.4s infinite linear}:where(._Btn_1tozl_10){display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}:where(._Btn_1tozl_10):disabled{opacity:.4;cursor:not-allowed}:where(._Primary_1tozl_35){background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}:where(._Primary_1tozl_35):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_1tozl_50){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_1tozl_50):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_1tozl_62){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_1tozl_62):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_1tozl_74){width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}:where(._IconDanger_1tozl_74):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_1tozl_95){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_1tozl_95):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._ConfirmWrapper_1tq4o_4{width:100%;max-width:24rem;animation:_confirmIn_1tq4o_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_1tq4o_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmContainer_1tq4o_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_1tq4o_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._ConfirmTitle_1tq4o_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_1tq4o_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_1tq4o_45{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_1tq4o_53{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_1tq4o_53:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_1tq4o_73{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_1tq4o_73:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_1tq4o_92{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_1tq4o_92:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_1tq4o_73:disabled,._BtnDanger_1tq4o_92:disabled,._BtnCancel_1tq4o_53:disabled{opacity:.4;cursor:not-allowed}._InfoWrapper_cqv58_4{width:100%;max-width:24rem;animation:_infoIn_cqv58_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_cqv58_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoContainer_cqv58_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_cqv58_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._InfoTitle_cqv58_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_cqv58_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_cqv58_45{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_cqv58_52{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_cqv58_52:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { createContext as le, useContext as de, useRef as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@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_115ig_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_115ig_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_115ig_12{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_115ig_12._hasStartIcon_115ig_26){padding-left:2.25rem}:where(._StartIcon_115ig_30){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}._InputField_115ig_12:focus{border-color:#ffffff59}._hasError_115ig_45 ._InputField_115ig_12,._hasError_115ig_45 ._InputField_115ig_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_115ig_50 ._InputField_115ig_12{opacity:.45;cursor:not-allowed}._Label_115ig_55{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}._Label_115ig_55._lifted_115ig_69{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_115ig_45 ._Label_115ig_55._lifted_115ig_69{color:var(--chures-error, #ef4444)}._ErrorText_115ig_80{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_115ig_88{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_115ig_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem}}@keyframes _panelIn_p7cfo_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_p7cfo_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_p7cfo_13{position:relative;width:100%}._PanelWrapper_p7cfo_20{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_p7cfo_1 .14s ease}._PanelWrapper_p7cfo_20._Portal_p7cfo_34{position:fixed;width:auto;margin-top:var(--chures-dropdown-panel-gap)}._PanelContainer_p7cfo_18{background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;box-shadow:0 1rem 3rem #000c}._PanelContainer_p7cfo_18._Glass_p7cfo_48{background:var(--chures-dropdown-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem))}._Label_p7cfo_54{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_p7cfo_54._lifted_p7cfo_68{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_p7cfo_75{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_p7cfo_75:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_p7cfo_75._Open_p7cfo_99{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_p7cfo_104{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_p7cfo_112{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_p7cfo_120{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_p7cfo_127{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;margin:.375rem 0;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_p7cfo_127::-webkit-scrollbar{display:none}._ChipsWrapper_p7cfo_127._Expand_p7cfo_145{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_p7cfo_75._MultiSelect_p7cfo_151 ._TriggerIcon_p7cfo_120{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_p7cfo_75._ExpandHeight_p7cfo_156{height:auto;min-height:var(--chures-input-height)}._Chip_p7cfo_127{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_p7cfo_175{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_p7cfo_180{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_p7cfo_190{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_p7cfo_197{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_p7cfo_197::placeholder{color:var(--chures-fg-muted)}._ResultsList_p7cfo_211{max-height:13rem;overflow-y:auto}._OptionRow_p7cfo_216{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_p7cfo_216:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_p7cfo_216._Selected_p7cfo_231{color:var(--chures-fg)}._Checkmark_p7cfo_236{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_p7cfo_242{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_p7cfo_242:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_p7cfo_242._WithBorder_p7cfo_255{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_p7cfo_260{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_p7cfo_272{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_p7cfo_278{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_p7cfo_285{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_p7cfo_1 1.4s infinite linear}:where(._Btn_1tozl_10){display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}:where(._Btn_1tozl_10):disabled{opacity:.4;cursor:not-allowed}:where(._Primary_1tozl_35){background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}:where(._Primary_1tozl_35):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_1tozl_50){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_1tozl_50):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_1tozl_62){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_1tozl_62):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_1tozl_74){width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}:where(._IconDanger_1tozl_74):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_1tozl_95){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_1tozl_95):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._ConfirmWrapper_1tq4o_4{width:100%;max-width:24rem;animation:_confirmIn_1tq4o_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_1tq4o_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmContainer_1tq4o_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_1tq4o_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._ConfirmTitle_1tq4o_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_1tq4o_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_1tq4o_45{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_1tq4o_53{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_1tq4o_53:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_1tq4o_73{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_1tq4o_73:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_1tq4o_92{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_1tq4o_92:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_1tq4o_73:disabled,._BtnDanger_1tq4o_92:disabled,._BtnCancel_1tq4o_53:disabled{opacity:.4;cursor:not-allowed}._InfoWrapper_cqv58_4{width:100%;max-width:24rem;animation:_infoIn_cqv58_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_cqv58_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoContainer_cqv58_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_cqv58_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._InfoTitle_cqv58_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_cqv58_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_cqv58_45{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_cqv58_52{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_cqv58_52:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { jsx as t, jsxs as u, Fragment as R } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as le, useContext as de, useRef as F, useState as I, useEffect as O, forwardRef as ue, useCallback as ne, useLayoutEffect as _e } from "react";
|
|
4
4
|
import { AnimatePresence as fe, motion as pe } from "framer-motion";
|
|
5
|
-
import { create as
|
|
6
|
-
import { createPortal as
|
|
5
|
+
import { create as he } from "zustand";
|
|
6
|
+
import { createPortal as me } from "react-dom";
|
|
7
7
|
function ge(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
@@ -42,15 +42,15 @@ function Ce() {
|
|
|
42
42
|
})(Y)), Y.exports;
|
|
43
43
|
}
|
|
44
44
|
var ve = Ce();
|
|
45
|
-
const
|
|
45
|
+
const _ = /* @__PURE__ */ ge(ve), we = "_LoaderContainer_wa8op_24", ye = "_sm_wa8op_31", Ne = "_md_wa8op_32", Ie = "_lg_wa8op_33", ke = "_Arc1_wa8op_37", Se = "_Arc2_wa8op_38", Le = "_Arc3_wa8op_39", Te = "_spin_wa8op_1", xe = "_Ring1_wa8op_71", De = "_Ring2_wa8op_72", be = "_Ring3_wa8op_73", Be = "_ripple_wa8op_1", Re = "_Dot1_wa8op_86", We = "_Dot2_wa8op_87", Ee = "_Dot3_wa8op_88", Pe = "_dotPulse_wa8op_1", Ae = "_Wave1_wa8op_105", Me = "_Wave2_wa8op_106", Oe = "_Wave3_wa8op_107", qe = "_Wave4_wa8op_108", je = "_Wave5_wa8op_109", Ge = "_waveBounce_wa8op_1", K = {
|
|
46
46
|
LoaderContainer: we,
|
|
47
47
|
sm: ye,
|
|
48
48
|
md: Ne,
|
|
49
49
|
lg: Ie,
|
|
50
50
|
Arc1: ke,
|
|
51
|
-
Arc2:
|
|
52
|
-
Arc3:
|
|
53
|
-
spin:
|
|
51
|
+
Arc2: Se,
|
|
52
|
+
Arc3: Le,
|
|
53
|
+
spin: Te,
|
|
54
54
|
Ring1: xe,
|
|
55
55
|
Ring2: De,
|
|
56
56
|
Ring3: be,
|
|
@@ -66,26 +66,26 @@ const u = /* @__PURE__ */ ge(ve), we = "_LoaderContainer_wa8op_24", ye = "_sm_wa
|
|
|
66
66
|
Wave5: je,
|
|
67
67
|
waveBounce: Ge
|
|
68
68
|
}, re = le({});
|
|
69
|
-
function
|
|
69
|
+
function C(e, n) {
|
|
70
70
|
const o = de(re);
|
|
71
71
|
return n ?? o[e];
|
|
72
72
|
}
|
|
73
73
|
function $e(e, n) {
|
|
74
74
|
switch (e) {
|
|
75
75
|
case "ripple":
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
77
77
|
/* @__PURE__ */ t("div", { className: n.Ring1 }),
|
|
78
78
|
/* @__PURE__ */ t("div", { className: n.Ring2 }),
|
|
79
79
|
/* @__PURE__ */ t("div", { className: n.Ring3 })
|
|
80
80
|
] });
|
|
81
81
|
case "dots":
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
83
83
|
/* @__PURE__ */ t("div", { className: n.Dot1 }),
|
|
84
84
|
/* @__PURE__ */ t("div", { className: n.Dot2 }),
|
|
85
85
|
/* @__PURE__ */ t("div", { className: n.Dot3 })
|
|
86
86
|
] });
|
|
87
87
|
case "wave":
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
89
89
|
/* @__PURE__ */ t("div", { className: n.Wave1 }),
|
|
90
90
|
/* @__PURE__ */ t("div", { className: n.Wave2 }),
|
|
91
91
|
/* @__PURE__ */ t("div", { className: n.Wave3 }),
|
|
@@ -93,7 +93,7 @@ function $e(e, n) {
|
|
|
93
93
|
/* @__PURE__ */ t("div", { className: n.Wave5 })
|
|
94
94
|
] });
|
|
95
95
|
default:
|
|
96
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
97
97
|
/* @__PURE__ */ t("div", { className: n.Arc1 }),
|
|
98
98
|
/* @__PURE__ */ t("div", { className: n.Arc2 }),
|
|
99
99
|
/* @__PURE__ */ t("div", { className: n.Arc3 })
|
|
@@ -101,15 +101,15 @@ function $e(e, n) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function Fe({ variant: e = "arcs", size: n = "md", color: o, className: r }) {
|
|
104
|
-
const a =
|
|
104
|
+
const a = C("Loader", r);
|
|
105
105
|
return /* @__PURE__ */ t(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className:
|
|
108
|
+
className: _(K.LoaderContainer, K[n], K[e], a),
|
|
109
109
|
role: "status",
|
|
110
110
|
"aria-label": "Loading",
|
|
111
111
|
style: o ? { "--chures-accent": o } : void 0,
|
|
112
|
-
children: $e(e,
|
|
112
|
+
children: $e(e, K)
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
@@ -117,26 +117,26 @@ const ze = "_LoadingWrapperContainer_1q0w7_1", He = "_SkeletonWrapper_1q0w7_9",
|
|
|
117
117
|
LoadingWrapperContainer: ze,
|
|
118
118
|
SkeletonWrapper: He
|
|
119
119
|
};
|
|
120
|
-
function
|
|
121
|
-
const s =
|
|
122
|
-
return e ? o ? /* @__PURE__ */ t("div", { className:
|
|
120
|
+
function Vt({ isLoading: e, children: n, skeleton: o, loaderProps: r, className: a }) {
|
|
121
|
+
const s = C("LoadingWrapper", a);
|
|
122
|
+
return e ? o ? /* @__PURE__ */ t("div", { className: _(oe.SkeletonWrapper, s), children: o }) : /* @__PURE__ */ t("div", { className: _(oe.LoadingWrapperContainer, s), children: /* @__PURE__ */ t(Fe, { ...r }) }) : /* @__PURE__ */ t(R, { children: n });
|
|
123
123
|
}
|
|
124
124
|
const Ve = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
125
125
|
function Ue(e) {
|
|
126
|
-
const { botId: n, redirectUri: o, requestAccess: r = "write" } = e, a =
|
|
126
|
+
const { botId: n, redirectUri: o, requestAccess: r = "write" } = e, a = F(e.onSuccess);
|
|
127
127
|
a.current = e.onSuccess;
|
|
128
|
-
const s =
|
|
128
|
+
const s = F(!1), [i, c] = I(!1), [p, d] = I(!1);
|
|
129
129
|
O(function() {
|
|
130
130
|
if (!n) return;
|
|
131
|
-
const
|
|
131
|
+
const m = o ?? window.location.origin;
|
|
132
132
|
d(!0), c(!1);
|
|
133
133
|
const g = document.createElement("script");
|
|
134
134
|
return g.src = Ve, g.async = !0, g.onload = function() {
|
|
135
135
|
const w = window.Telegram;
|
|
136
136
|
w && (w.Login.init(
|
|
137
|
-
{ client_id: n, redirect_uri:
|
|
138
|
-
function(
|
|
139
|
-
s.current || (s.current = !0, a.current(
|
|
137
|
+
{ client_id: n, redirect_uri: m },
|
|
138
|
+
function(T) {
|
|
139
|
+
s.current || (s.current = !0, a.current(T));
|
|
140
140
|
}
|
|
141
141
|
), c(!0)), d(!1);
|
|
142
142
|
}, g.onerror = function() {
|
|
@@ -145,19 +145,19 @@ function Ue(e) {
|
|
|
145
145
|
document.head.contains(g) && document.head.removeChild(g), c(!1), d(!1);
|
|
146
146
|
};
|
|
147
147
|
}, [n, o]);
|
|
148
|
-
function
|
|
149
|
-
const
|
|
150
|
-
if (!i || !
|
|
148
|
+
function h() {
|
|
149
|
+
const m = window.Telegram;
|
|
150
|
+
if (!i || !m) return;
|
|
151
151
|
s.current = !1;
|
|
152
152
|
const g = o ?? window.location.origin;
|
|
153
|
-
|
|
153
|
+
m.Login.auth(
|
|
154
154
|
{ client_id: n, redirect_uri: g, request_access: r },
|
|
155
155
|
function(w) {
|
|
156
156
|
s.current || (s.current = !0, a.current(w));
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
return { login:
|
|
160
|
+
return { login: h, isReady: i, isLoading: p };
|
|
161
161
|
}
|
|
162
162
|
const Ke = "_TelegramSignInButtonContainer_10wun_1", Qe = "_FullSize_10wun_46", Je = "_Icon_10wun_50", Z = {
|
|
163
163
|
TelegramSignInButtonContainer: Ke,
|
|
@@ -191,18 +191,18 @@ function Ze({
|
|
|
191
191
|
className: i
|
|
192
192
|
}) {
|
|
193
193
|
O(function() {
|
|
194
|
-
const
|
|
195
|
-
if (document.getElementById(
|
|
196
|
-
const
|
|
197
|
-
|
|
194
|
+
const h = "comfortaa-font";
|
|
195
|
+
if (document.getElementById(h)) return;
|
|
196
|
+
const m = document.createElement("link");
|
|
197
|
+
m.id = h, m.rel = "stylesheet", m.href = "https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&display=swap", document.head.appendChild(m);
|
|
198
198
|
}, []);
|
|
199
|
-
const c = a ?? r ?? Xe[o], p =
|
|
200
|
-
return /* @__PURE__ */
|
|
199
|
+
const c = a ?? r ?? Xe[o], p = C("TelegramSignInButton", i), d = _(Z.TelegramSignInButtonContainer, { [Z.FullSize]: s }, p);
|
|
200
|
+
return /* @__PURE__ */ u("button", { type: "button", className: d, onClick: e, disabled: n, children: [
|
|
201
201
|
/* @__PURE__ */ t(Ye, {}),
|
|
202
202
|
c
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ut({
|
|
206
206
|
botId: e,
|
|
207
207
|
onSuccess: n,
|
|
208
208
|
lang: o,
|
|
@@ -213,7 +213,7 @@ function Ht({
|
|
|
213
213
|
className: c
|
|
214
214
|
}) {
|
|
215
215
|
const { login: p, isReady: d } = Ue({ botId: e, onSuccess: n, redirectUri: a, requestAccess: s });
|
|
216
|
-
return i ? /* @__PURE__ */ t(
|
|
216
|
+
return i ? /* @__PURE__ */ t(R, { children: i({ login: p, isReady: d }) }) : /* @__PURE__ */ t(
|
|
217
217
|
Ze,
|
|
218
218
|
{
|
|
219
219
|
onClick: p,
|
|
@@ -225,7 +225,7 @@ function Ht({
|
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
let en = 0;
|
|
228
|
-
const se =
|
|
228
|
+
const se = he((e, n) => ({
|
|
229
229
|
toasts: [],
|
|
230
230
|
bake: (o) => {
|
|
231
231
|
const r = en++;
|
|
@@ -249,9 +249,9 @@ const se = me((e, n) => ({
|
|
|
249
249
|
slideIn: ln,
|
|
250
250
|
slideOut: dn
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
const { toasts: n } = se(), o =
|
|
254
|
-
return /* @__PURE__ */ t("div", { className:
|
|
252
|
+
function Kt({ className: e } = {}) {
|
|
253
|
+
const { toasts: n } = se(), o = C("Toaster", e);
|
|
254
|
+
return /* @__PURE__ */ t("div", { className: _(L.ToastContainer, o), children: /* @__PURE__ */ t(fe, { children: n.map((r) => /* @__PURE__ */ t(
|
|
255
255
|
pe.div,
|
|
256
256
|
{
|
|
257
257
|
layout: !0,
|
|
@@ -265,13 +265,13 @@ function Vt({ className: e } = {}) {
|
|
|
265
265
|
)) }) });
|
|
266
266
|
}
|
|
267
267
|
function un({ id: e, title: n, description: o, level: r, isDismissable: a }) {
|
|
268
|
-
const [s, i] =
|
|
268
|
+
const [s, i] = I(!1), c = se();
|
|
269
269
|
return O(() => () => {
|
|
270
270
|
i(!0);
|
|
271
|
-
}, []), /* @__PURE__ */
|
|
271
|
+
}, []), /* @__PURE__ */ u(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
|
-
className:
|
|
274
|
+
className: _(L.Toast, {
|
|
275
275
|
[L.error]: r === "Error",
|
|
276
276
|
[L.warn]: r === "Warn",
|
|
277
277
|
[L.info]: r == null || r === "Info",
|
|
@@ -286,73 +286,76 @@ function un({ id: e, title: n, description: o, level: r, isDismissable: a }) {
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
const _n = "
|
|
289
|
+
const _n = "_InputContainer_115ig_6", fn = "_InputField_115ig_12", pn = "_hasStartIcon_115ig_26", hn = "_StartIcon_115ig_30", mn = "_hasError_115ig_45", gn = "_disabled_115ig_50", Cn = "_Label_115ig_55", vn = "_lifted_115ig_69", wn = "_ErrorText_115ig_80", yn = "_Skeleton_115ig_88", y = {
|
|
290
290
|
InputContainer: _n,
|
|
291
291
|
InputField: fn,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
292
|
+
hasStartIcon: pn,
|
|
293
|
+
StartIcon: hn,
|
|
294
|
+
hasError: mn,
|
|
295
|
+
disabled: gn,
|
|
296
|
+
Label: Cn,
|
|
297
|
+
lifted: vn,
|
|
298
|
+
ErrorText: wn,
|
|
299
|
+
Skeleton: yn
|
|
300
|
+
}, Qt = ue(function({ value: n, setValue: o, label: r, isLoader: a, type: s = "text", disabled: i, error: c, className: p, inputClassName: d, startIcon: h, ...m }, g) {
|
|
301
|
+
const [w, T] = I(!1), v = w || n.length > 0, x = C("Input", p);
|
|
302
|
+
return a ? /* @__PURE__ */ t("div", { className: _(y.Skeleton, x), "aria-hidden": "true" }) : /* @__PURE__ */ u("div", { className: _(y.InputContainer, { [y.hasError]: !!c, [y.disabled]: i }, x), children: [
|
|
303
|
+
h && /* @__PURE__ */ t("span", { className: y.StartIcon, children: h }),
|
|
301
304
|
/* @__PURE__ */ t(
|
|
302
305
|
"input",
|
|
303
306
|
{
|
|
304
|
-
ref:
|
|
305
|
-
className:
|
|
307
|
+
ref: g,
|
|
308
|
+
className: _(y.InputField, { [y.hasStartIcon]: !!h }, d),
|
|
306
309
|
type: s,
|
|
307
310
|
value: n,
|
|
308
|
-
onChange: (
|
|
309
|
-
onFocus: () =>
|
|
310
|
-
onBlur: () =>
|
|
311
|
+
onChange: (q) => o(q.target.value),
|
|
312
|
+
onFocus: () => T(!0),
|
|
313
|
+
onBlur: () => T(!1),
|
|
311
314
|
disabled: i,
|
|
312
315
|
...m
|
|
313
316
|
}
|
|
314
317
|
),
|
|
315
|
-
r && /* @__PURE__ */ t("label", { className:
|
|
316
|
-
c && /* @__PURE__ */ t("span", { className:
|
|
318
|
+
r && /* @__PURE__ */ t("label", { className: _(y.Label, { [y.lifted]: v }), children: r }),
|
|
319
|
+
c && /* @__PURE__ */ t("span", { className: y.ErrorText, children: c })
|
|
317
320
|
] });
|
|
318
|
-
}),
|
|
319
|
-
ToggleContainer:
|
|
320
|
-
disabled:
|
|
321
|
-
Track:
|
|
322
|
-
on:
|
|
323
|
-
Thumb:
|
|
324
|
-
Label:
|
|
325
|
-
LabelSkeleton:
|
|
326
|
-
Skeleton:
|
|
321
|
+
}), Nn = "_ToggleContainer_1jetc_6", In = "_disabled_1jetc_13", kn = "_Track_1jetc_18", Sn = "_on_1jetc_31", Ln = "_Thumb_1jetc_39", Tn = "_Label_1jetc_57", xn = "_LabelSkeleton_1jetc_63", Dn = "_Skeleton_1jetc_78", N = {
|
|
322
|
+
ToggleContainer: Nn,
|
|
323
|
+
disabled: In,
|
|
324
|
+
Track: kn,
|
|
325
|
+
on: Sn,
|
|
326
|
+
Thumb: Ln,
|
|
327
|
+
Label: Tn,
|
|
328
|
+
LabelSkeleton: xn,
|
|
329
|
+
Skeleton: Dn
|
|
327
330
|
};
|
|
328
|
-
function
|
|
329
|
-
const p = !!o || i, d =
|
|
330
|
-
return s ? p ? /* @__PURE__ */
|
|
331
|
-
r === "left" &&
|
|
332
|
-
/* @__PURE__ */ t("div", { className:
|
|
333
|
-
r === "right" &&
|
|
334
|
-
] }) : /* @__PURE__ */ t("div", { className:
|
|
335
|
-
r === "left" &&
|
|
331
|
+
function Jt({ checked: e, onChange: n, label: o, labelPosition: r = "right", disabled: a, isLoader: s, isLoadingLabel: i, className: c }) {
|
|
332
|
+
const p = !!o || i, d = C("Toggle", c), h = i ? /* @__PURE__ */ t("span", { className: N.LabelSkeleton, "aria-hidden": "true" }) : o ? /* @__PURE__ */ t("span", { className: N.Label, children: o }) : null;
|
|
333
|
+
return s ? p ? /* @__PURE__ */ u("div", { className: _(N.ToggleContainer, d), children: [
|
|
334
|
+
r === "left" && h,
|
|
335
|
+
/* @__PURE__ */ t("div", { className: N.Skeleton, "aria-hidden": "true" }),
|
|
336
|
+
r === "right" && h
|
|
337
|
+
] }) : /* @__PURE__ */ t("div", { className: _(N.Skeleton, d), "aria-hidden": "true" }) : /* @__PURE__ */ u("label", { className: _(N.ToggleContainer, { [N.disabled]: a }, d), children: [
|
|
338
|
+
r === "left" && h,
|
|
336
339
|
/* @__PURE__ */ t(
|
|
337
340
|
"button",
|
|
338
341
|
{
|
|
339
342
|
role: "switch",
|
|
340
343
|
"aria-checked": e,
|
|
341
|
-
className:
|
|
344
|
+
className: _(N.Track, { [N.on]: e }),
|
|
342
345
|
onClick: () => !a && n(!e),
|
|
343
346
|
disabled: a,
|
|
344
347
|
type: "button",
|
|
345
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
348
|
+
children: /* @__PURE__ */ t("span", { className: N.Thumb })
|
|
346
349
|
}
|
|
347
350
|
),
|
|
348
|
-
r === "right" &&
|
|
351
|
+
r === "right" && h
|
|
349
352
|
] });
|
|
350
353
|
}
|
|
351
|
-
function
|
|
352
|
-
const [e, n] =
|
|
354
|
+
function bn() {
|
|
355
|
+
const [e, n] = I(!1), o = F(null), r = ne(() => n((s) => !s), []), a = ne(() => n(!1), []);
|
|
353
356
|
return { isOpen: e, triggerRef: o, toggleOpen: r, close: a };
|
|
354
357
|
}
|
|
355
|
-
function
|
|
358
|
+
function Bn(e, n, o) {
|
|
356
359
|
O(() => {
|
|
357
360
|
function r(s) {
|
|
358
361
|
const i = s.target;
|
|
@@ -366,8 +369,8 @@ function Dn(e, n, o) {
|
|
|
366
369
|
};
|
|
367
370
|
}, [n, e, o]);
|
|
368
371
|
}
|
|
369
|
-
function
|
|
370
|
-
const [o, r] =
|
|
372
|
+
function Rn(e, n) {
|
|
373
|
+
const [o, r] = I([]);
|
|
371
374
|
return O(() => {
|
|
372
375
|
if (!n) return;
|
|
373
376
|
let a = !1;
|
|
@@ -381,60 +384,60 @@ function bn(e, n) {
|
|
|
381
384
|
function A(e) {
|
|
382
385
|
return typeof e == "string" ? e : e.id;
|
|
383
386
|
}
|
|
384
|
-
function
|
|
387
|
+
function Q(e) {
|
|
385
388
|
return typeof e == "string" ? e : e.name;
|
|
386
389
|
}
|
|
387
|
-
function
|
|
390
|
+
function Wn(e, n) {
|
|
388
391
|
return e.map((o) => n.find((r) => A(r) === o) ?? o);
|
|
389
392
|
}
|
|
390
|
-
const
|
|
391
|
-
DropdownContainer:
|
|
392
|
-
PanelWrapper:
|
|
393
|
-
Portal:
|
|
394
|
-
PanelContainer:
|
|
395
|
-
Glass:
|
|
396
|
-
Label:
|
|
397
|
-
lifted:
|
|
398
|
-
TriggerContainer:
|
|
399
|
-
Open:
|
|
400
|
-
TriggerPlaceholder:
|
|
401
|
-
TriggerValue:
|
|
402
|
-
TriggerIcon:
|
|
403
|
-
ChipsWrapper:
|
|
404
|
-
Expand:
|
|
405
|
-
MultiSelect:
|
|
406
|
-
ExpandHeight:
|
|
407
|
-
Chip:
|
|
408
|
-
SearchRow:
|
|
409
|
-
SearchBox:
|
|
410
|
-
SearchIcon:
|
|
411
|
-
SearchInput:
|
|
412
|
-
ResultsList:
|
|
413
|
-
OptionRow:
|
|
414
|
-
Selected:
|
|
415
|
-
Checkmark:
|
|
416
|
-
CreateRow:
|
|
417
|
-
WithBorder:
|
|
418
|
-
CreateIcon:
|
|
419
|
-
CreateLabel:
|
|
420
|
-
EmptyHint:
|
|
421
|
-
SkeletonRow:
|
|
393
|
+
const En = "_DropdownContainer_p7cfo_13", Pn = "_PanelWrapper_p7cfo_20", An = "_Portal_p7cfo_34", Mn = "_PanelContainer_p7cfo_18", On = "_Glass_p7cfo_48", qn = "_Label_p7cfo_54", jn = "_lifted_p7cfo_68", Gn = "_TriggerContainer_p7cfo_75", $n = "_Open_p7cfo_99", Fn = "_TriggerPlaceholder_p7cfo_104", zn = "_TriggerValue_p7cfo_112", Hn = "_TriggerIcon_p7cfo_120", Vn = "_ChipsWrapper_p7cfo_127", Un = "_Expand_p7cfo_145", Kn = "_MultiSelect_p7cfo_151", Qn = "_ExpandHeight_p7cfo_156", Jn = "_Chip_p7cfo_127", Xn = "_SearchRow_p7cfo_175", Yn = "_SearchBox_p7cfo_180", Zn = "_SearchIcon_p7cfo_190", et = "_SearchInput_p7cfo_197", nt = "_ResultsList_p7cfo_211", tt = "_OptionRow_p7cfo_216", ot = "_Selected_p7cfo_231", rt = "_Checkmark_p7cfo_236", st = "_CreateRow_p7cfo_242", at = "_WithBorder_p7cfo_255", it = "_CreateIcon_p7cfo_260", ct = "_CreateLabel_p7cfo_272", lt = "_EmptyHint_p7cfo_278", dt = "_SkeletonRow_p7cfo_285", l = {
|
|
394
|
+
DropdownContainer: En,
|
|
395
|
+
PanelWrapper: Pn,
|
|
396
|
+
Portal: An,
|
|
397
|
+
PanelContainer: Mn,
|
|
398
|
+
Glass: On,
|
|
399
|
+
Label: qn,
|
|
400
|
+
lifted: jn,
|
|
401
|
+
TriggerContainer: Gn,
|
|
402
|
+
Open: $n,
|
|
403
|
+
TriggerPlaceholder: Fn,
|
|
404
|
+
TriggerValue: zn,
|
|
405
|
+
TriggerIcon: Hn,
|
|
406
|
+
ChipsWrapper: Vn,
|
|
407
|
+
Expand: Un,
|
|
408
|
+
MultiSelect: Kn,
|
|
409
|
+
ExpandHeight: Qn,
|
|
410
|
+
Chip: Jn,
|
|
411
|
+
SearchRow: Xn,
|
|
412
|
+
SearchBox: Yn,
|
|
413
|
+
SearchIcon: Zn,
|
|
414
|
+
SearchInput: et,
|
|
415
|
+
ResultsList: nt,
|
|
416
|
+
OptionRow: tt,
|
|
417
|
+
Selected: ot,
|
|
418
|
+
Checkmark: rt,
|
|
419
|
+
CreateRow: st,
|
|
420
|
+
WithBorder: at,
|
|
421
|
+
CreateIcon: it,
|
|
422
|
+
CreateLabel: ct,
|
|
423
|
+
EmptyHint: lt,
|
|
424
|
+
SkeletonRow: dt
|
|
422
425
|
};
|
|
423
|
-
function
|
|
426
|
+
function ut({ query: e, withBorder: n, onCreate: o }) {
|
|
424
427
|
function r(a) {
|
|
425
428
|
a.preventDefault(), o();
|
|
426
429
|
}
|
|
427
|
-
return /* @__PURE__ */
|
|
430
|
+
return /* @__PURE__ */ u(
|
|
428
431
|
"div",
|
|
429
432
|
{
|
|
430
|
-
className:
|
|
433
|
+
className: _(l.CreateRow, n && l.WithBorder),
|
|
431
434
|
onMouseDown: r,
|
|
432
435
|
children: [
|
|
433
|
-
/* @__PURE__ */ t("span", { className: l.CreateIcon, children: /* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ t("span", { className: l.CreateIcon, children: /* @__PURE__ */ u("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
|
|
434
437
|
/* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
|
|
435
438
|
/* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
|
|
436
439
|
] }) }),
|
|
437
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ u("span", { className: l.CreateLabel, children: [
|
|
438
441
|
"create “",
|
|
439
442
|
e,
|
|
440
443
|
"”"
|
|
@@ -443,25 +446,25 @@ function lt({ query: e, withBorder: n, onCreate: o }) {
|
|
|
443
446
|
}
|
|
444
447
|
);
|
|
445
448
|
}
|
|
446
|
-
function
|
|
449
|
+
function _t({ opt: e, isSelected: n, multiSelect: o, onPick: r }) {
|
|
447
450
|
function a(s) {
|
|
448
451
|
s.preventDefault(), r(e);
|
|
449
452
|
}
|
|
450
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ u(
|
|
451
454
|
"div",
|
|
452
455
|
{
|
|
453
|
-
className:
|
|
456
|
+
className: _(l.OptionRow, n && l.Selected),
|
|
454
457
|
onMouseDown: a,
|
|
455
458
|
children: [
|
|
456
459
|
o && n && /* @__PURE__ */ t("span", { className: l.Checkmark, children: "✓" }),
|
|
457
|
-
|
|
460
|
+
Q(e)
|
|
458
461
|
]
|
|
459
462
|
}
|
|
460
463
|
);
|
|
461
464
|
}
|
|
462
|
-
function
|
|
463
|
-
return /* @__PURE__ */ t("div", { className: l.SearchRow, children: /* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */ t("span", { className: l.SearchIcon, children: /* @__PURE__ */
|
|
465
|
+
function ft({ inputRef: e, query: n, onChange: o, onKeyDown: r, placeholder: a }) {
|
|
466
|
+
return /* @__PURE__ */ t("div", { className: l.SearchRow, children: /* @__PURE__ */ u("div", { className: l.SearchBox, children: [
|
|
467
|
+
/* @__PURE__ */ t("span", { className: l.SearchIcon, children: /* @__PURE__ */ u("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
|
|
465
468
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
466
469
|
/* @__PURE__ */ t("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
|
|
467
470
|
] }) }),
|
|
@@ -478,10 +481,10 @@ function ut({ inputRef: e, query: n, onChange: o, onKeyDown: r, placeholder: a }
|
|
|
478
481
|
)
|
|
479
482
|
] }) });
|
|
480
483
|
}
|
|
481
|
-
function
|
|
482
|
-
return /* @__PURE__ */ t(
|
|
484
|
+
function pt({ count: e }) {
|
|
485
|
+
return /* @__PURE__ */ t(R, { children: Array.from({ length: e }).map((n, o) => /* @__PURE__ */ t("div", { className: l.SkeletonRow }, o)) });
|
|
483
486
|
}
|
|
484
|
-
function
|
|
487
|
+
function ht({
|
|
485
488
|
onSearch: e,
|
|
486
489
|
onCreate: n,
|
|
487
490
|
onPick: o,
|
|
@@ -492,67 +495,67 @@ function ft({
|
|
|
492
495
|
excluded: c = [],
|
|
493
496
|
selected: p = [],
|
|
494
497
|
multiSelect: d = !1,
|
|
495
|
-
selectedAtTop:
|
|
496
|
-
isLoading:
|
|
498
|
+
selectedAtTop: h = !1,
|
|
499
|
+
isLoading: m = !1,
|
|
497
500
|
emptyHint: g = "no results found",
|
|
498
501
|
skeletonRowCount: w = 4,
|
|
499
|
-
onError:
|
|
500
|
-
glass:
|
|
502
|
+
onError: T = console.error,
|
|
503
|
+
glass: v = !1
|
|
501
504
|
}) {
|
|
502
|
-
const [
|
|
503
|
-
|
|
504
|
-
if (!
|
|
505
|
+
const [x, q] = I(""), [z, D] = I(!1), [k, j] = I(null), G = F(null), H = F(null), W = !!e, V = Rn(x, e);
|
|
506
|
+
Bn(H, r, a), _e(() => {
|
|
507
|
+
if (!v) return;
|
|
505
508
|
function f() {
|
|
506
|
-
a?.current &&
|
|
509
|
+
a?.current && j(a.current.getBoundingClientRect());
|
|
507
510
|
}
|
|
508
511
|
return f(), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
|
|
509
512
|
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
|
|
510
513
|
};
|
|
511
|
-
}, [
|
|
512
|
-
W &&
|
|
514
|
+
}, [v, a]), O(() => {
|
|
515
|
+
W && G.current?.focus();
|
|
513
516
|
}, [W]);
|
|
514
|
-
const
|
|
517
|
+
const $ = (e ? V : i).filter(
|
|
515
518
|
(f) => !c.includes(A(f))
|
|
516
|
-
),
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
] :
|
|
520
|
-
(f) =>
|
|
521
|
-
),
|
|
522
|
-
async function
|
|
523
|
-
!E ||
|
|
519
|
+
), b = h ? [
|
|
520
|
+
...$.filter((f) => p.includes(A(f))),
|
|
521
|
+
...$.filter((f) => !p.includes(A(f)))
|
|
522
|
+
] : $, E = x.trim(), J = b.some(
|
|
523
|
+
(f) => Q(f).toLowerCase() === E.toLowerCase()
|
|
524
|
+
), B = !!n && E.length > 0 && !J;
|
|
525
|
+
async function U() {
|
|
526
|
+
!E || z || !n || (D(!0), n(E).then(X).catch(T).finally(() => D(!1)));
|
|
524
527
|
}
|
|
525
528
|
function X(f) {
|
|
526
529
|
o(f), d || r();
|
|
527
530
|
}
|
|
528
531
|
function ae(f) {
|
|
529
|
-
|
|
532
|
+
q(f.target.value);
|
|
530
533
|
}
|
|
531
534
|
function ie(f) {
|
|
532
|
-
f.key === "Enter" && (f.preventDefault(),
|
|
535
|
+
f.key === "Enter" && (f.preventDefault(), b.length > 0 ? X(b[0]) : B && U());
|
|
533
536
|
}
|
|
534
537
|
const ce = s ?? (n ? "search or add new…" : "search…");
|
|
535
|
-
if (
|
|
538
|
+
if (v && !k) return null;
|
|
536
539
|
const ee = /* @__PURE__ */ t(
|
|
537
540
|
"div",
|
|
538
541
|
{
|
|
539
|
-
ref:
|
|
540
|
-
className:
|
|
541
|
-
style:
|
|
542
|
-
children: /* @__PURE__ */
|
|
542
|
+
ref: H,
|
|
543
|
+
className: _(l.PanelWrapper, { [l.Portal]: v }),
|
|
544
|
+
style: v && k ? { top: k.bottom, left: k.left, width: k.width } : void 0,
|
|
545
|
+
children: /* @__PURE__ */ u("div", { className: _(l.PanelContainer, { [l.Glass]: v }), children: [
|
|
543
546
|
W && /* @__PURE__ */ t(
|
|
544
|
-
|
|
547
|
+
ft,
|
|
545
548
|
{
|
|
546
|
-
inputRef:
|
|
547
|
-
query:
|
|
549
|
+
inputRef: G,
|
|
550
|
+
query: x,
|
|
548
551
|
onChange: ae,
|
|
549
552
|
onKeyDown: ie,
|
|
550
553
|
placeholder: ce
|
|
551
554
|
}
|
|
552
555
|
),
|
|
553
|
-
/* @__PURE__ */ t("div", { className: l.ResultsList, children:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
+
/* @__PURE__ */ t("div", { className: l.ResultsList, children: m ? /* @__PURE__ */ t(pt, { count: w }) : /* @__PURE__ */ u(R, { children: [
|
|
557
|
+
b.map((f) => /* @__PURE__ */ t(
|
|
558
|
+
_t,
|
|
556
559
|
{
|
|
557
560
|
opt: f,
|
|
558
561
|
isSelected: p.includes(A(f)),
|
|
@@ -561,22 +564,22 @@ function ft({
|
|
|
561
564
|
},
|
|
562
565
|
A(f)
|
|
563
566
|
)),
|
|
564
|
-
|
|
565
|
-
|
|
567
|
+
B && /* @__PURE__ */ t(
|
|
568
|
+
ut,
|
|
566
569
|
{
|
|
567
570
|
query: E,
|
|
568
|
-
withBorder:
|
|
569
|
-
onCreate:
|
|
571
|
+
withBorder: b.length > 0,
|
|
572
|
+
onCreate: U
|
|
570
573
|
}
|
|
571
574
|
),
|
|
572
|
-
|
|
575
|
+
b.length === 0 && !B && /* @__PURE__ */ t("div", { className: l.EmptyHint, children: g })
|
|
573
576
|
] }) })
|
|
574
577
|
] })
|
|
575
578
|
}
|
|
576
579
|
);
|
|
577
|
-
return
|
|
580
|
+
return v ? me(ee, document.body) : ee;
|
|
578
581
|
}
|
|
579
|
-
function
|
|
582
|
+
function mt({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
580
583
|
return /* @__PURE__ */ t(
|
|
581
584
|
"svg",
|
|
582
585
|
{
|
|
@@ -593,7 +596,7 @@ function pt({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
|
593
596
|
}
|
|
594
597
|
);
|
|
595
598
|
}
|
|
596
|
-
function
|
|
599
|
+
function Xt({ size: e = 18, strokeWidth: n = 2.5, shrink: o = !0 }) {
|
|
597
600
|
return /* @__PURE__ */ t(
|
|
598
601
|
"svg",
|
|
599
602
|
{
|
|
@@ -610,8 +613,8 @@ function Qt({ size: e = 18, strokeWidth: n = 2.5, shrink: o = !0 }) {
|
|
|
610
613
|
}
|
|
611
614
|
);
|
|
612
615
|
}
|
|
613
|
-
function
|
|
614
|
-
return /* @__PURE__ */
|
|
616
|
+
function Yt() {
|
|
617
|
+
return /* @__PURE__ */ u(
|
|
615
618
|
"svg",
|
|
616
619
|
{
|
|
617
620
|
viewBox: "0 0 24 24",
|
|
@@ -629,8 +632,8 @@ function Jt() {
|
|
|
629
632
|
}
|
|
630
633
|
);
|
|
631
634
|
}
|
|
632
|
-
function
|
|
633
|
-
return /* @__PURE__ */
|
|
635
|
+
function Zt() {
|
|
636
|
+
return /* @__PURE__ */ u(
|
|
634
637
|
"svg",
|
|
635
638
|
{
|
|
636
639
|
viewBox: "0 0 24 24",
|
|
@@ -648,14 +651,34 @@ function Xt() {
|
|
|
648
651
|
}
|
|
649
652
|
);
|
|
650
653
|
}
|
|
651
|
-
function
|
|
654
|
+
function eo({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
655
|
+
return /* @__PURE__ */ u(
|
|
656
|
+
"svg",
|
|
657
|
+
{
|
|
658
|
+
viewBox: "0 0 24 24",
|
|
659
|
+
width: e,
|
|
660
|
+
height: e,
|
|
661
|
+
fill: "none",
|
|
662
|
+
stroke: "currentColor",
|
|
663
|
+
strokeWidth: n,
|
|
664
|
+
strokeLinecap: "round",
|
|
665
|
+
strokeLinejoin: "round",
|
|
666
|
+
className: o,
|
|
667
|
+
children: [
|
|
668
|
+
/* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "7" }),
|
|
669
|
+
/* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
function gt({ triggerRef: e, isOpen: n, onClick: o, selectedOptions: r, multiSelect: a, placeholder: s, onOverflow: i = "scroll" }) {
|
|
652
675
|
const c = i === "expand";
|
|
653
|
-
return /* @__PURE__ */
|
|
676
|
+
return /* @__PURE__ */ u(
|
|
654
677
|
"button",
|
|
655
678
|
{
|
|
656
679
|
type: "button",
|
|
657
680
|
ref: e,
|
|
658
|
-
className:
|
|
681
|
+
className: _(
|
|
659
682
|
l.TriggerContainer,
|
|
660
683
|
n && l.Open,
|
|
661
684
|
a && l.MultiSelect,
|
|
@@ -665,13 +688,13 @@ function mt({ triggerRef: e, isOpen: n, onClick: o, selectedOptions: r, multiSel
|
|
|
665
688
|
"aria-expanded": n,
|
|
666
689
|
"aria-haspopup": "listbox",
|
|
667
690
|
children: [
|
|
668
|
-
a && r.length > 0 ? /* @__PURE__ */ t("div", { className:
|
|
669
|
-
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(
|
|
691
|
+
a && r.length > 0 ? /* @__PURE__ */ t("div", { className: _(l.ChipsWrapper, c && l.Expand), children: r.map((p, d) => /* @__PURE__ */ t("span", { className: l.Chip, children: Q(p) }, d)) }) : /* @__PURE__ */ t("span", { className: r.length === 0 ? l.TriggerPlaceholder : l.TriggerValue, children: r.length === 0 ? s : r.map(Q).join(", ") }),
|
|
692
|
+
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(mt, { size: 12 }) })
|
|
670
693
|
]
|
|
671
694
|
}
|
|
672
695
|
);
|
|
673
696
|
}
|
|
674
|
-
function
|
|
697
|
+
function no({
|
|
675
698
|
options: e = [],
|
|
676
699
|
value: n,
|
|
677
700
|
onChange: o,
|
|
@@ -682,104 +705,104 @@ function Yt({
|
|
|
682
705
|
selectedAtTop: c = !1,
|
|
683
706
|
onOverflow: p = "scroll",
|
|
684
707
|
label: d,
|
|
685
|
-
placeholder:
|
|
686
|
-
searchPlaceholder:
|
|
708
|
+
placeholder: h = "select…",
|
|
709
|
+
searchPlaceholder: m,
|
|
687
710
|
emptyHint: g,
|
|
688
711
|
isLoading: w,
|
|
689
|
-
skeletonRowCount:
|
|
690
|
-
onError:
|
|
691
|
-
className:
|
|
692
|
-
glass:
|
|
693
|
-
children:
|
|
712
|
+
skeletonRowCount: T,
|
|
713
|
+
onError: v,
|
|
714
|
+
className: x,
|
|
715
|
+
glass: q = !1,
|
|
716
|
+
children: z
|
|
694
717
|
}) {
|
|
695
|
-
const { isOpen:
|
|
696
|
-
function
|
|
697
|
-
const
|
|
718
|
+
const { isOpen: D, triggerRef: k, toggleOpen: j, close: G } = bn(), H = C("Dropdown", x), W = Wn(n, e), V = D || W.length > 0, $ = d && !V ? "" : h;
|
|
719
|
+
function b(J) {
|
|
720
|
+
const B = A(J);
|
|
698
721
|
o(
|
|
699
|
-
i ? n.includes(
|
|
722
|
+
i ? n.includes(B) ? n.filter((U) => U !== B) : [...n, B] : [B]
|
|
700
723
|
);
|
|
701
724
|
}
|
|
702
725
|
const E = {
|
|
703
|
-
ref:
|
|
704
|
-
onClick:
|
|
705
|
-
"aria-expanded":
|
|
726
|
+
ref: k,
|
|
727
|
+
onClick: j,
|
|
728
|
+
"aria-expanded": D,
|
|
706
729
|
"aria-haspopup": "listbox"
|
|
707
730
|
};
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
d && /* @__PURE__ */ t("label", { className:
|
|
710
|
-
|
|
711
|
-
|
|
731
|
+
return /* @__PURE__ */ u("div", { className: _(l.DropdownContainer, H), children: [
|
|
732
|
+
d && /* @__PURE__ */ t("label", { className: _(l.Label, { [l.lifted]: V }), children: d }),
|
|
733
|
+
z ? z({ selectedOptions: W, isOpen: D, toggleOpen: j, close: G, triggerProps: E }) : /* @__PURE__ */ t(
|
|
734
|
+
gt,
|
|
712
735
|
{
|
|
713
|
-
triggerRef:
|
|
714
|
-
isOpen:
|
|
715
|
-
onClick:
|
|
736
|
+
triggerRef: k,
|
|
737
|
+
isOpen: D,
|
|
738
|
+
onClick: j,
|
|
716
739
|
selectedOptions: W,
|
|
717
740
|
multiSelect: i,
|
|
718
741
|
onOverflow: p,
|
|
719
|
-
placeholder:
|
|
742
|
+
placeholder: $
|
|
720
743
|
}
|
|
721
744
|
),
|
|
722
|
-
|
|
723
|
-
|
|
745
|
+
D && /* @__PURE__ */ t(
|
|
746
|
+
ht,
|
|
724
747
|
{
|
|
725
748
|
options: e,
|
|
726
749
|
onSearch: r,
|
|
727
750
|
onCreate: a,
|
|
728
|
-
onPick:
|
|
729
|
-
onClose:
|
|
730
|
-
anchorRef:
|
|
751
|
+
onPick: b,
|
|
752
|
+
onClose: G,
|
|
753
|
+
anchorRef: k,
|
|
731
754
|
excluded: s,
|
|
732
755
|
multiSelect: i,
|
|
733
756
|
selectedAtTop: c,
|
|
734
757
|
selected: n,
|
|
735
|
-
placeholder:
|
|
758
|
+
placeholder: m,
|
|
736
759
|
emptyHint: g,
|
|
737
760
|
isLoading: w,
|
|
738
|
-
skeletonRowCount:
|
|
739
|
-
onError:
|
|
740
|
-
glass:
|
|
761
|
+
skeletonRowCount: T,
|
|
762
|
+
onError: v,
|
|
763
|
+
glass: q
|
|
741
764
|
}
|
|
742
765
|
)
|
|
743
766
|
] });
|
|
744
767
|
}
|
|
745
|
-
const
|
|
746
|
-
Btn:
|
|
747
|
-
Primary:
|
|
748
|
-
Secondary:
|
|
749
|
-
Ghost:
|
|
750
|
-
IconDanger:
|
|
751
|
-
Danger:
|
|
752
|
-
},
|
|
768
|
+
const Ct = "_Btn_1tozl_10", vt = "_Primary_1tozl_35", wt = "_Secondary_1tozl_50", yt = "_Ghost_1tozl_62", Nt = "_IconDanger_1tozl_74", It = "_Danger_1tozl_95", M = {
|
|
769
|
+
Btn: Ct,
|
|
770
|
+
Primary: vt,
|
|
771
|
+
Secondary: wt,
|
|
772
|
+
Ghost: yt,
|
|
773
|
+
IconDanger: Nt,
|
|
774
|
+
Danger: It
|
|
775
|
+
}, kt = {
|
|
753
776
|
primary: M.Primary,
|
|
754
777
|
secondary: M.Secondary,
|
|
755
778
|
danger: M.Danger,
|
|
756
779
|
ghost: M.Ghost,
|
|
757
780
|
iconDanger: M.IconDanger
|
|
758
781
|
};
|
|
759
|
-
function
|
|
760
|
-
const a =
|
|
782
|
+
function to({ variant: e = "default", className: n, children: o, ...r }) {
|
|
783
|
+
const a = C("Button", n), s = e === "unstyled";
|
|
761
784
|
return /* @__PURE__ */ t(
|
|
762
785
|
"button",
|
|
763
786
|
{
|
|
764
787
|
type: "button",
|
|
765
788
|
...r,
|
|
766
|
-
className:
|
|
789
|
+
className: _(!s && M.Btn, !s && kt[e], a),
|
|
767
790
|
children: o
|
|
768
791
|
}
|
|
769
792
|
);
|
|
770
793
|
}
|
|
771
|
-
const
|
|
772
|
-
ConfirmWrapper:
|
|
773
|
-
ConfirmContainer:
|
|
774
|
-
Glass:
|
|
775
|
-
ConfirmTitle:
|
|
776
|
-
ConfirmMessage:
|
|
777
|
-
ConfirmActions:
|
|
778
|
-
BtnCancel:
|
|
779
|
-
BtnConfirm:
|
|
780
|
-
BtnDanger:
|
|
794
|
+
const St = "_ConfirmWrapper_1tq4o_4", Lt = "_ConfirmContainer_1tq4o_1", Tt = "_Glass_1tq4o_24", xt = "_ConfirmTitle_1tq4o_30", Dt = "_ConfirmMessage_1tq4o_38", bt = "_ConfirmActions_1tq4o_45", Bt = "_BtnCancel_1tq4o_53", Rt = "_BtnConfirm_1tq4o_73", Wt = "_BtnDanger_1tq4o_92", S = {
|
|
795
|
+
ConfirmWrapper: St,
|
|
796
|
+
ConfirmContainer: Lt,
|
|
797
|
+
Glass: Tt,
|
|
798
|
+
ConfirmTitle: xt,
|
|
799
|
+
ConfirmMessage: Dt,
|
|
800
|
+
ConfirmActions: bt,
|
|
801
|
+
BtnCancel: Bt,
|
|
802
|
+
BtnConfirm: Rt,
|
|
803
|
+
BtnDanger: Wt
|
|
781
804
|
};
|
|
782
|
-
function
|
|
805
|
+
function oo({
|
|
783
806
|
title: e,
|
|
784
807
|
message: n,
|
|
785
808
|
confirmLabel: o = "Confirm",
|
|
@@ -790,21 +813,21 @@ function eo({
|
|
|
790
813
|
className: c,
|
|
791
814
|
glass: p = !1
|
|
792
815
|
}) {
|
|
793
|
-
const [d,
|
|
816
|
+
const [d, h] = I(!1), m = C("ConfirmDialog", c);
|
|
794
817
|
function g() {
|
|
795
|
-
|
|
796
|
-
|
|
818
|
+
h(!0), Promise.resolve(s()).finally(() => {
|
|
819
|
+
h(!1), i();
|
|
797
820
|
});
|
|
798
821
|
}
|
|
799
|
-
return /* @__PURE__ */ t("div", { className:
|
|
800
|
-
/* @__PURE__ */ t("h2", { className:
|
|
801
|
-
/* @__PURE__ */ t("p", { className:
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
/* @__PURE__ */ t("button", { className:
|
|
822
|
+
return /* @__PURE__ */ t("div", { className: S.ConfirmWrapper, children: /* @__PURE__ */ u("div", { className: _(S.ConfirmContainer, { [S.Glass]: p }, m), role: "dialog", "aria-modal": "true", children: [
|
|
823
|
+
/* @__PURE__ */ t("h2", { className: S.ConfirmTitle, children: e }),
|
|
824
|
+
/* @__PURE__ */ t("p", { className: S.ConfirmMessage, children: n }),
|
|
825
|
+
/* @__PURE__ */ u("div", { className: S.ConfirmActions, children: [
|
|
826
|
+
/* @__PURE__ */ t("button", { className: S.BtnCancel, type: "button", onClick: i, disabled: d, children: r }),
|
|
804
827
|
/* @__PURE__ */ t(
|
|
805
828
|
"button",
|
|
806
829
|
{
|
|
807
|
-
className:
|
|
830
|
+
className: _(a ? S.BtnDanger : S.BtnConfirm),
|
|
808
831
|
type: "button",
|
|
809
832
|
onClick: g,
|
|
810
833
|
disabled: d,
|
|
@@ -814,25 +837,25 @@ function eo({
|
|
|
814
837
|
] })
|
|
815
838
|
] }) });
|
|
816
839
|
}
|
|
817
|
-
const
|
|
818
|
-
InfoWrapper:
|
|
819
|
-
InfoContainer:
|
|
820
|
-
Glass:
|
|
821
|
-
InfoTitle:
|
|
822
|
-
InfoMessage:
|
|
823
|
-
InfoActions:
|
|
824
|
-
BtnClose:
|
|
840
|
+
const Et = "_InfoWrapper_cqv58_4", Pt = "_InfoContainer_cqv58_1", At = "_Glass_cqv58_24", Mt = "_InfoTitle_cqv58_30", Ot = "_InfoMessage_cqv58_38", qt = "_InfoActions_cqv58_45", jt = "_BtnClose_cqv58_52", P = {
|
|
841
|
+
InfoWrapper: Et,
|
|
842
|
+
InfoContainer: Pt,
|
|
843
|
+
Glass: At,
|
|
844
|
+
InfoTitle: Mt,
|
|
845
|
+
InfoMessage: Ot,
|
|
846
|
+
InfoActions: qt,
|
|
847
|
+
BtnClose: jt
|
|
825
848
|
};
|
|
826
|
-
function
|
|
827
|
-
const s =
|
|
828
|
-
return /* @__PURE__ */ t("div", { className: P.InfoWrapper, children: /* @__PURE__ */
|
|
849
|
+
function ro({ title: e, message: n, onClose: o, className: r, glass: a = !1 }) {
|
|
850
|
+
const s = C("InfoDialog", r);
|
|
851
|
+
return /* @__PURE__ */ t("div", { className: P.InfoWrapper, children: /* @__PURE__ */ u("div", { className: _(P.InfoContainer, { [P.Glass]: a }, s), role: "dialog", "aria-modal": "true", children: [
|
|
829
852
|
/* @__PURE__ */ t("h2", { className: P.InfoTitle, children: e }),
|
|
830
853
|
/* @__PURE__ */ t("p", { className: P.InfoMessage, children: n }),
|
|
831
854
|
/* @__PURE__ */ t("div", { className: P.InfoActions, children: /* @__PURE__ */ t("button", { className: P.BtnClose, type: "button", onClick: o, children: "Got it" }) })
|
|
832
855
|
] }) });
|
|
833
856
|
}
|
|
834
|
-
function
|
|
835
|
-
const o =
|
|
857
|
+
function so({ buttons: e, containerClassName: n }) {
|
|
858
|
+
const o = C("ModalActions", n);
|
|
836
859
|
return /* @__PURE__ */ t("div", { className: o, children: e.map((r, a) => /* @__PURE__ */ t(
|
|
837
860
|
"button",
|
|
838
861
|
{
|
|
@@ -845,8 +868,8 @@ function to({ buttons: e, containerClassName: n }) {
|
|
|
845
868
|
a
|
|
846
869
|
)) });
|
|
847
870
|
}
|
|
848
|
-
function
|
|
849
|
-
const r =
|
|
871
|
+
function ao({ onClick: e, disabled: n, className: o }) {
|
|
872
|
+
const r = C("ModalClose", o);
|
|
850
873
|
return /* @__PURE__ */ t(
|
|
851
874
|
"button",
|
|
852
875
|
{
|
|
@@ -855,7 +878,7 @@ function oo({ onClick: e, disabled: n, className: o }) {
|
|
|
855
878
|
onClick: e,
|
|
856
879
|
disabled: n,
|
|
857
880
|
"aria-label": "Close",
|
|
858
|
-
children: /* @__PURE__ */
|
|
881
|
+
children: /* @__PURE__ */ u(
|
|
859
882
|
"svg",
|
|
860
883
|
{
|
|
861
884
|
viewBox: "0 0 24 24",
|
|
@@ -874,29 +897,30 @@ function oo({ onClick: e, disabled: n, className: o }) {
|
|
|
874
897
|
}
|
|
875
898
|
);
|
|
876
899
|
}
|
|
877
|
-
function
|
|
900
|
+
function io({ classNames: e, children: n }) {
|
|
878
901
|
return /* @__PURE__ */ t(re.Provider, { value: e, children: n });
|
|
879
902
|
}
|
|
880
903
|
export {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
904
|
+
Zt as AvatarFallbackIcon,
|
|
905
|
+
to as Button,
|
|
906
|
+
Xt as CheckmarkIcon,
|
|
907
|
+
mt as ChevronDownIcon,
|
|
908
|
+
io as ChuresConfigProvider,
|
|
909
|
+
oo as ConfirmDialog,
|
|
910
|
+
no as Dropdown,
|
|
911
|
+
Yt as EditPencilIcon,
|
|
912
|
+
ro as InfoDialog,
|
|
913
|
+
Qt as Input,
|
|
891
914
|
Fe as Loader,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
915
|
+
Vt as LoadingWrapper,
|
|
916
|
+
so as ModalActions,
|
|
917
|
+
ao as ModalClose,
|
|
918
|
+
eo as SearchIcon,
|
|
919
|
+
Ut as TelegramAuth,
|
|
896
920
|
Ze as TelegramSignInButton,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
921
|
+
Kt as Toaster,
|
|
922
|
+
Jt as Toggle,
|
|
923
|
+
C as useComponentClassName,
|
|
900
924
|
Ue as useTelegramLogin,
|
|
901
925
|
se as useToaster
|
|
902
926
|
};
|