@vervstack/chures 0.0.18 → 0.0.19
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 +427 -420
- package/dist/chures.umd.cjs +2 -2
- package/dist/components/Input/Input.d.ts +1 -0
- package/package.json +1 -1
package/dist/chures.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
3
|
-
import { createContext as le, useContext as de, useRef as
|
|
4
|
-
import { AnimatePresence 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_1uu20_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_1uu20_15){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_1uu20_21){width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}:where(._InputField_1uu20_21._hasStartIcon_1uu20_35){padding-left:2.25rem}:where(._InputField_1uu20_21._hasEndIcon_1uu20_39){padding-right:2.25rem}:where(._StartIcon_1uu20_43){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._EndIcon_1uu20_54){position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._InputField_1uu20_21):focus{border-color:#ffffff59}:where(._hasError_1uu20_69 ._InputField_1uu20_21),:where(._hasError_1uu20_69 ._InputField_1uu20_21):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_1uu20_74 ._InputField_1uu20_21){opacity:.45;cursor:not-allowed}:where(._Label_1uu20_79){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}:where(._Label_1uu20_79._lifted_1uu20_93){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_1uu20_69 ._Label_1uu20_79._lifted_1uu20_93){color:var(--chures-error, #ef4444)}:where(._ErrorText_1uu20_104){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}:where(._Skeleton_1uu20_112){width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1uu20_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@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 n, jsxs as u, Fragment as B } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as le, useContext as de, useRef as z, useState as L, useEffect as G, forwardRef as ue, useCallback as ne, useLayoutEffect as _e } from "react";
|
|
4
|
+
import { AnimatePresence as pe, motion as fe } from "framer-motion";
|
|
5
5
|
import { create as he } from "zustand";
|
|
6
6
|
import { createPortal as me } from "react-dom";
|
|
7
7
|
function ge(e) {
|
|
@@ -12,11 +12,11 @@ var te;
|
|
|
12
12
|
function Ce() {
|
|
13
13
|
return te || (te = 1, (function(e) {
|
|
14
14
|
(function() {
|
|
15
|
-
var
|
|
15
|
+
var t = {}.hasOwnProperty;
|
|
16
16
|
function o() {
|
|
17
|
-
for (var s = "",
|
|
18
|
-
var
|
|
19
|
-
|
|
17
|
+
for (var s = "", c = 0; c < arguments.length; c++) {
|
|
18
|
+
var i = arguments[c];
|
|
19
|
+
i && (s = a(s, r(i)));
|
|
20
20
|
}
|
|
21
21
|
return s;
|
|
22
22
|
}
|
|
@@ -29,24 +29,24 @@ function Ce() {
|
|
|
29
29
|
return o.apply(null, s);
|
|
30
30
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
31
31
|
return s.toString();
|
|
32
|
-
var
|
|
33
|
-
for (var
|
|
34
|
-
|
|
35
|
-
return
|
|
32
|
+
var c = "";
|
|
33
|
+
for (var i in s)
|
|
34
|
+
t.call(s, i) && s[i] && (c = a(c, i));
|
|
35
|
+
return c;
|
|
36
36
|
}
|
|
37
|
-
function a(s,
|
|
38
|
-
return
|
|
37
|
+
function a(s, c) {
|
|
38
|
+
return c ? s ? s + " " + c : s + c : s;
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
41
41
|
})();
|
|
42
42
|
})(Y)), Y.exports;
|
|
43
43
|
}
|
|
44
44
|
var ve = Ce();
|
|
45
|
-
const _ = /* @__PURE__ */ ge(ve), we = "_LoaderContainer_wa8op_24",
|
|
45
|
+
const _ = /* @__PURE__ */ ge(ve), we = "_LoaderContainer_wa8op_24", Ie = "_sm_wa8op_31", ye = "_md_wa8op_32", Ne = "_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
|
-
sm:
|
|
48
|
-
md:
|
|
49
|
-
lg:
|
|
47
|
+
sm: Ie,
|
|
48
|
+
md: ye,
|
|
49
|
+
lg: Ne,
|
|
50
50
|
Arc1: ke,
|
|
51
51
|
Arc2: Se,
|
|
52
52
|
Arc3: Le,
|
|
@@ -66,50 +66,50 @@ const _ = /* @__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 w(e, t) {
|
|
70
70
|
const o = de(re);
|
|
71
|
-
return
|
|
71
|
+
return t ?? o[e];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Fe(e, t) {
|
|
74
74
|
switch (e) {
|
|
75
75
|
case "ripple":
|
|
76
|
-
return /* @__PURE__ */ u(
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ u(B, { children: [
|
|
77
|
+
/* @__PURE__ */ n("div", { className: t.Ring1 }),
|
|
78
|
+
/* @__PURE__ */ n("div", { className: t.Ring2 }),
|
|
79
|
+
/* @__PURE__ */ n("div", { className: t.Ring3 })
|
|
80
80
|
] });
|
|
81
81
|
case "dots":
|
|
82
|
-
return /* @__PURE__ */ u(
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ u(B, { children: [
|
|
83
|
+
/* @__PURE__ */ n("div", { className: t.Dot1 }),
|
|
84
|
+
/* @__PURE__ */ n("div", { className: t.Dot2 }),
|
|
85
|
+
/* @__PURE__ */ n("div", { className: t.Dot3 })
|
|
86
86
|
] });
|
|
87
87
|
case "wave":
|
|
88
|
-
return /* @__PURE__ */ u(
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ u(B, { children: [
|
|
89
|
+
/* @__PURE__ */ n("div", { className: t.Wave1 }),
|
|
90
|
+
/* @__PURE__ */ n("div", { className: t.Wave2 }),
|
|
91
|
+
/* @__PURE__ */ n("div", { className: t.Wave3 }),
|
|
92
|
+
/* @__PURE__ */ n("div", { className: t.Wave4 }),
|
|
93
|
+
/* @__PURE__ */ n("div", { className: t.Wave5 })
|
|
94
94
|
] });
|
|
95
95
|
default:
|
|
96
|
-
return /* @__PURE__ */ u(
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ u(B, { children: [
|
|
97
|
+
/* @__PURE__ */ n("div", { className: t.Arc1 }),
|
|
98
|
+
/* @__PURE__ */ n("div", { className: t.Arc2 }),
|
|
99
|
+
/* @__PURE__ */ n("div", { className: t.Arc3 })
|
|
100
100
|
] });
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const a =
|
|
105
|
-
return /* @__PURE__ */
|
|
103
|
+
function $e({ variant: e = "arcs", size: t = "md", color: o, className: r }) {
|
|
104
|
+
const a = w("Loader", r);
|
|
105
|
+
return /* @__PURE__ */ n(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className: _(K.LoaderContainer, K[
|
|
108
|
+
className: _(K.LoaderContainer, K[t], K[e], a),
|
|
109
109
|
role: "status",
|
|
110
110
|
"aria-label": "Loading",
|
|
111
111
|
style: o ? { "--chures-accent": o } : void 0,
|
|
112
|
-
children:
|
|
112
|
+
children: Fe(e, K)
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
@@ -117,47 +117,47 @@ 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__ */
|
|
120
|
+
function Kt({ isLoading: e, children: t, skeleton: o, loaderProps: r, className: a }) {
|
|
121
|
+
const s = w("LoadingWrapper", a);
|
|
122
|
+
return e ? o ? /* @__PURE__ */ n("div", { className: _(oe.SkeletonWrapper, s), children: o }) : /* @__PURE__ */ n("div", { className: _(oe.LoadingWrapperContainer, s), children: /* @__PURE__ */ n($e, { ...r }) }) : /* @__PURE__ */ n(B, { children: t });
|
|
123
123
|
}
|
|
124
124
|
const Ve = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
125
125
|
function Ue(e) {
|
|
126
|
-
const { botId:
|
|
126
|
+
const { botId: t, redirectUri: o, requestAccess: r = "write" } = e, a = z(e.onSuccess);
|
|
127
127
|
a.current = e.onSuccess;
|
|
128
|
-
const s =
|
|
129
|
-
|
|
130
|
-
if (!
|
|
128
|
+
const s = z(!1), [c, i] = L(!1), [f, d] = L(!1);
|
|
129
|
+
G(function() {
|
|
130
|
+
if (!t) return;
|
|
131
131
|
const m = o ?? window.location.origin;
|
|
132
|
-
d(!0),
|
|
132
|
+
d(!0), i(!1);
|
|
133
133
|
const g = document.createElement("script");
|
|
134
134
|
return g.src = Ve, g.async = !0, g.onload = function() {
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
{ client_id:
|
|
138
|
-
function(
|
|
139
|
-
s.current || (s.current = !0, a.current(
|
|
135
|
+
const N = window.Telegram;
|
|
136
|
+
N && (N.Login.init(
|
|
137
|
+
{ client_id: t, redirect_uri: m },
|
|
138
|
+
function(R) {
|
|
139
|
+
s.current || (s.current = !0, a.current(R));
|
|
140
140
|
}
|
|
141
|
-
),
|
|
141
|
+
), i(!0)), d(!1);
|
|
142
142
|
}, g.onerror = function() {
|
|
143
143
|
d(!1);
|
|
144
144
|
}, document.head.appendChild(g), function() {
|
|
145
|
-
document.head.contains(g) && document.head.removeChild(g),
|
|
145
|
+
document.head.contains(g) && document.head.removeChild(g), i(!1), d(!1);
|
|
146
146
|
};
|
|
147
|
-
}, [
|
|
147
|
+
}, [t, o]);
|
|
148
148
|
function h() {
|
|
149
149
|
const m = window.Telegram;
|
|
150
|
-
if (!
|
|
150
|
+
if (!c || !m) return;
|
|
151
151
|
s.current = !1;
|
|
152
152
|
const g = o ?? window.location.origin;
|
|
153
153
|
m.Login.auth(
|
|
154
|
-
{ client_id:
|
|
155
|
-
function(
|
|
156
|
-
s.current || (s.current = !0, a.current(
|
|
154
|
+
{ client_id: t, redirect_uri: g, request_access: r },
|
|
155
|
+
function(N) {
|
|
156
|
+
s.current || (s.current = !0, a.current(N));
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
return { login: h, isReady:
|
|
160
|
+
return { login: h, isReady: c, isLoading: f };
|
|
161
161
|
}
|
|
162
162
|
const Ke = "_TelegramSignInButtonContainer_10wun_1", Qe = "_FullSize_10wun_46", Je = "_Icon_10wun_50", Z = {
|
|
163
163
|
TelegramSignInButtonContainer: Ke,
|
|
@@ -168,7 +168,7 @@ const Ke = "_TelegramSignInButtonContainer_10wun_1", Qe = "_FullSize_10wun_46",
|
|
|
168
168
|
ru: "Войти через Telegram"
|
|
169
169
|
};
|
|
170
170
|
function Ye() {
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ n(
|
|
172
172
|
"svg",
|
|
173
173
|
{
|
|
174
174
|
viewBox: "0 0 24 24",
|
|
@@ -177,60 +177,60 @@ function Ye() {
|
|
|
177
177
|
fill: "currentColor",
|
|
178
178
|
"aria-hidden": "true",
|
|
179
179
|
className: Z.Icon,
|
|
180
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ n("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
184
|
function Ze({
|
|
185
185
|
onClick: e,
|
|
186
|
-
disabled:
|
|
186
|
+
disabled: t,
|
|
187
187
|
lang: o = "en",
|
|
188
188
|
title: r,
|
|
189
189
|
label: a,
|
|
190
190
|
fullSize: s,
|
|
191
|
-
className:
|
|
191
|
+
className: c
|
|
192
192
|
}) {
|
|
193
|
-
|
|
193
|
+
G(function() {
|
|
194
194
|
const h = "comfortaa-font";
|
|
195
195
|
if (document.getElementById(h)) return;
|
|
196
196
|
const m = document.createElement("link");
|
|
197
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
|
|
200
|
-
return /* @__PURE__ */ u("button", { type: "button", className: d, onClick: e, disabled:
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
|
|
199
|
+
const i = a ?? r ?? Xe[o], f = w("TelegramSignInButton", c), d = _(Z.TelegramSignInButtonContainer, { [Z.FullSize]: s }, f);
|
|
200
|
+
return /* @__PURE__ */ u("button", { type: "button", className: d, onClick: e, disabled: t, children: [
|
|
201
|
+
/* @__PURE__ */ n(Ye, {}),
|
|
202
|
+
i
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Qt({
|
|
206
206
|
botId: e,
|
|
207
|
-
onSuccess:
|
|
207
|
+
onSuccess: t,
|
|
208
208
|
lang: o,
|
|
209
209
|
title: r,
|
|
210
210
|
redirectUri: a,
|
|
211
211
|
requestAccess: s,
|
|
212
|
-
children:
|
|
213
|
-
className:
|
|
212
|
+
children: c,
|
|
213
|
+
className: i
|
|
214
214
|
}) {
|
|
215
|
-
const { login:
|
|
216
|
-
return
|
|
215
|
+
const { login: f, isReady: d } = Ue({ botId: e, onSuccess: t, redirectUri: a, requestAccess: s });
|
|
216
|
+
return c ? /* @__PURE__ */ n(B, { children: c({ login: f, isReady: d }) }) : /* @__PURE__ */ n(
|
|
217
217
|
Ze,
|
|
218
218
|
{
|
|
219
|
-
onClick:
|
|
219
|
+
onClick: f,
|
|
220
220
|
disabled: !d,
|
|
221
221
|
lang: o,
|
|
222
222
|
title: r,
|
|
223
|
-
className:
|
|
223
|
+
className: i
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
let en = 0;
|
|
228
|
-
const se = he((e,
|
|
228
|
+
const se = he((e, t) => ({
|
|
229
229
|
toasts: [],
|
|
230
230
|
bake: (o) => {
|
|
231
231
|
const r = en++;
|
|
232
232
|
e((a) => ({ toasts: [...a.toasts, { ...o, id: r }] })), setTimeout(() => {
|
|
233
|
-
|
|
233
|
+
t().dismiss(r);
|
|
234
234
|
}, 5e3);
|
|
235
235
|
},
|
|
236
236
|
dismiss: (o) => {
|
|
@@ -238,7 +238,7 @@ const se = he((e, n) => ({
|
|
|
238
238
|
toasts: r.toasts.filter((a) => a.id !== o)
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
241
|
-
})), nn = "_ToastContainer_1tme2_1", tn = "_Toast_1tme2_1", on = "_error_1tme2_33", rn = "_warn_1tme2_41", sn = "_info_1tme2_49", an = "_Description_1tme2_53", cn = "_DismissButton_1tme2_59", ln = "_slideIn_1tme2_79", dn = "_slideOut_1tme2_83",
|
|
241
|
+
})), nn = "_ToastContainer_1tme2_1", tn = "_Toast_1tme2_1", on = "_error_1tme2_33", rn = "_warn_1tme2_41", sn = "_info_1tme2_49", an = "_Description_1tme2_53", cn = "_DismissButton_1tme2_59", ln = "_slideIn_1tme2_79", dn = "_slideOut_1tme2_83", x = {
|
|
242
242
|
ToastContainer: nn,
|
|
243
243
|
Toast: tn,
|
|
244
244
|
error: on,
|
|
@@ -249,193 +249,200 @@ const se = he((e, n) => ({
|
|
|
249
249
|
slideIn: ln,
|
|
250
250
|
slideOut: dn
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
const { toasts:
|
|
254
|
-
return /* @__PURE__ */
|
|
255
|
-
|
|
252
|
+
function Jt({ className: e } = {}) {
|
|
253
|
+
const { toasts: t } = se(), o = w("Toaster", e);
|
|
254
|
+
return /* @__PURE__ */ n("div", { className: _(x.ToastContainer, o), children: /* @__PURE__ */ n(pe, { children: t.map((r) => /* @__PURE__ */ n(
|
|
255
|
+
fe.div,
|
|
256
256
|
{
|
|
257
257
|
layout: !0,
|
|
258
258
|
initial: { opacity: 0, x: 100, y: 50 },
|
|
259
259
|
animate: { opacity: 1, x: 0, y: 0 },
|
|
260
260
|
exit: { opacity: 0, y: -50 },
|
|
261
261
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
262
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ n(un, { ...r })
|
|
263
263
|
},
|
|
264
264
|
r.id
|
|
265
265
|
)) }) });
|
|
266
266
|
}
|
|
267
|
-
function un({ id: e, title:
|
|
268
|
-
const [s,
|
|
269
|
-
return
|
|
270
|
-
|
|
267
|
+
function un({ id: e, title: t, description: o, level: r, isDismissable: a }) {
|
|
268
|
+
const [s, c] = L(!1), i = se();
|
|
269
|
+
return G(() => () => {
|
|
270
|
+
c(!0);
|
|
271
271
|
}, []), /* @__PURE__ */ u(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
|
-
className: _(
|
|
275
|
-
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
274
|
+
className: _(x.Toast, {
|
|
275
|
+
[x.error]: r === "Error",
|
|
276
|
+
[x.warn]: r === "Warn",
|
|
277
|
+
[x.info]: r == null || r === "Info",
|
|
278
|
+
[x.slideIn]: !s,
|
|
279
|
+
[x.slideOut]: s
|
|
280
280
|
}),
|
|
281
281
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
a && e !== void 0 && /* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ n("div", { children: t }),
|
|
283
|
+
/* @__PURE__ */ n("div", { className: x.Description, children: o }),
|
|
284
|
+
a && e !== void 0 && /* @__PURE__ */ n("div", { className: x.DismissButton, onClick: () => i.dismiss(e), children: "×" })
|
|
285
285
|
]
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
const _n = "
|
|
289
|
+
const _n = "_InputContainer_1uu20_15", pn = "_InputField_1uu20_21", fn = "_hasStartIcon_1uu20_35", hn = "_hasEndIcon_1uu20_39", mn = "_StartIcon_1uu20_43", gn = "_EndIcon_1uu20_54", Cn = "_hasError_1uu20_69", vn = "_disabled_1uu20_74", wn = "_Label_1uu20_79", In = "_lifted_1uu20_93", yn = "_ErrorText_1uu20_104", Nn = "_Skeleton_1uu20_112", v = {
|
|
290
290
|
InputContainer: _n,
|
|
291
|
-
InputField:
|
|
292
|
-
hasStartIcon:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
291
|
+
InputField: pn,
|
|
292
|
+
hasStartIcon: fn,
|
|
293
|
+
hasEndIcon: hn,
|
|
294
|
+
StartIcon: mn,
|
|
295
|
+
EndIcon: gn,
|
|
296
|
+
hasError: Cn,
|
|
297
|
+
disabled: vn,
|
|
298
|
+
Label: wn,
|
|
299
|
+
lifted: In,
|
|
300
|
+
ErrorText: yn,
|
|
301
|
+
Skeleton: Nn
|
|
302
|
+
}, Xt = ue(function({ value: t, setValue: o, label: r, isLoader: a, type: s = "text", disabled: c, error: i, className: f, inputClassName: d, startIcon: h, endIcon: m, ...g }, N) {
|
|
303
|
+
const [R, C] = L(!1), W = R || t.length > 0, O = w("Input", f), { onFocus: q, onBlur: k, ...I } = g;
|
|
304
|
+
return a ? /* @__PURE__ */ n("div", { className: _(v.Skeleton, O), "aria-hidden": "true" }) : /* @__PURE__ */ u("div", { className: _(v.InputContainer, { [v.hasError]: !!i, [v.disabled]: c }, O), children: [
|
|
305
|
+
h && /* @__PURE__ */ n("span", { className: v.StartIcon, children: h }),
|
|
306
|
+
/* @__PURE__ */ n(
|
|
305
307
|
"input",
|
|
306
308
|
{
|
|
307
|
-
ref:
|
|
308
|
-
className: _(
|
|
309
|
+
ref: N,
|
|
310
|
+
className: _(v.InputField, { [v.hasStartIcon]: !!h, [v.hasEndIcon]: !!m }, d),
|
|
309
311
|
type: s,
|
|
310
|
-
value:
|
|
311
|
-
onChange: (
|
|
312
|
-
onFocus: () =>
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
value: t,
|
|
313
|
+
onChange: (y) => o(y.target.value),
|
|
314
|
+
onFocus: (y) => {
|
|
315
|
+
C(!0), q?.(y);
|
|
316
|
+
},
|
|
317
|
+
onBlur: (y) => {
|
|
318
|
+
C(!1), k?.(y);
|
|
319
|
+
},
|
|
320
|
+
disabled: c,
|
|
321
|
+
...I
|
|
316
322
|
}
|
|
317
323
|
),
|
|
318
|
-
r && /* @__PURE__ */
|
|
319
|
-
|
|
324
|
+
r && /* @__PURE__ */ n("label", { className: _(v.Label, { [v.lifted]: W }), children: r }),
|
|
325
|
+
m && /* @__PURE__ */ n("span", { className: v.EndIcon, children: m }),
|
|
326
|
+
i && /* @__PURE__ */ n("span", { className: v.ErrorText, children: i })
|
|
320
327
|
] });
|
|
321
|
-
}),
|
|
322
|
-
ToggleContainer:
|
|
323
|
-
disabled:
|
|
324
|
-
Track:
|
|
325
|
-
on:
|
|
326
|
-
Thumb:
|
|
327
|
-
Label:
|
|
328
|
-
LabelSkeleton:
|
|
329
|
-
Skeleton:
|
|
328
|
+
}), kn = "_ToggleContainer_1jetc_6", Sn = "_disabled_1jetc_13", Ln = "_Track_1jetc_18", Tn = "_on_1jetc_31", xn = "_Thumb_1jetc_39", Dn = "_Label_1jetc_57", bn = "_LabelSkeleton_1jetc_63", Bn = "_Skeleton_1jetc_78", S = {
|
|
329
|
+
ToggleContainer: kn,
|
|
330
|
+
disabled: Sn,
|
|
331
|
+
Track: Ln,
|
|
332
|
+
on: Tn,
|
|
333
|
+
Thumb: xn,
|
|
334
|
+
Label: Dn,
|
|
335
|
+
LabelSkeleton: bn,
|
|
336
|
+
Skeleton: Bn
|
|
330
337
|
};
|
|
331
|
-
function
|
|
332
|
-
const
|
|
333
|
-
return s ?
|
|
338
|
+
function Yt({ checked: e, onChange: t, label: o, labelPosition: r = "right", disabled: a, isLoader: s, isLoadingLabel: c, className: i }) {
|
|
339
|
+
const f = !!o || c, d = w("Toggle", i), h = c ? /* @__PURE__ */ n("span", { className: S.LabelSkeleton, "aria-hidden": "true" }) : o ? /* @__PURE__ */ n("span", { className: S.Label, children: o }) : null;
|
|
340
|
+
return s ? f ? /* @__PURE__ */ u("div", { className: _(S.ToggleContainer, d), children: [
|
|
334
341
|
r === "left" && h,
|
|
335
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ n("div", { className: S.Skeleton, "aria-hidden": "true" }),
|
|
336
343
|
r === "right" && h
|
|
337
|
-
] }) : /* @__PURE__ */
|
|
344
|
+
] }) : /* @__PURE__ */ n("div", { className: _(S.Skeleton, d), "aria-hidden": "true" }) : /* @__PURE__ */ u("label", { className: _(S.ToggleContainer, { [S.disabled]: a }, d), children: [
|
|
338
345
|
r === "left" && h,
|
|
339
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ n(
|
|
340
347
|
"button",
|
|
341
348
|
{
|
|
342
349
|
role: "switch",
|
|
343
350
|
"aria-checked": e,
|
|
344
|
-
className: _(
|
|
345
|
-
onClick: () => !a &&
|
|
351
|
+
className: _(S.Track, { [S.on]: e }),
|
|
352
|
+
onClick: () => !a && t(!e),
|
|
346
353
|
disabled: a,
|
|
347
354
|
type: "button",
|
|
348
|
-
children: /* @__PURE__ */
|
|
355
|
+
children: /* @__PURE__ */ n("span", { className: S.Thumb })
|
|
349
356
|
}
|
|
350
357
|
),
|
|
351
358
|
r === "right" && h
|
|
352
359
|
] });
|
|
353
360
|
}
|
|
354
|
-
function
|
|
355
|
-
const [e,
|
|
361
|
+
function Rn() {
|
|
362
|
+
const [e, t] = L(!1), o = z(null), r = ne(() => t((s) => !s), []), a = ne(() => t(!1), []);
|
|
356
363
|
return { isOpen: e, triggerRef: o, toggleOpen: r, close: a };
|
|
357
364
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
365
|
+
function Wn(e, t, o) {
|
|
366
|
+
G(() => {
|
|
360
367
|
function r(s) {
|
|
361
|
-
const
|
|
362
|
-
e.current?.contains(
|
|
368
|
+
const c = s.target;
|
|
369
|
+
e.current?.contains(c) || o?.current?.contains(c) || t();
|
|
363
370
|
}
|
|
364
371
|
function a(s) {
|
|
365
|
-
s.key === "Escape" &&
|
|
372
|
+
s.key === "Escape" && t();
|
|
366
373
|
}
|
|
367
374
|
return document.addEventListener("mousedown", r, !0), document.addEventListener("keydown", a), () => {
|
|
368
375
|
document.removeEventListener("mousedown", r, !0), document.removeEventListener("keydown", a);
|
|
369
376
|
};
|
|
370
|
-
}, [
|
|
377
|
+
}, [t, e, o]);
|
|
371
378
|
}
|
|
372
|
-
function
|
|
373
|
-
const [o, r] =
|
|
374
|
-
return
|
|
375
|
-
if (!
|
|
379
|
+
function En(e, t) {
|
|
380
|
+
const [o, r] = L([]);
|
|
381
|
+
return G(() => {
|
|
382
|
+
if (!t) return;
|
|
376
383
|
let a = !1;
|
|
377
|
-
return
|
|
384
|
+
return t(e).then((s) => {
|
|
378
385
|
a || r(s);
|
|
379
386
|
}), () => {
|
|
380
387
|
a = !0;
|
|
381
388
|
};
|
|
382
|
-
}, [e,
|
|
389
|
+
}, [e, t]), o;
|
|
383
390
|
}
|
|
384
|
-
function
|
|
391
|
+
function M(e) {
|
|
385
392
|
return typeof e == "string" ? e : e.id;
|
|
386
393
|
}
|
|
387
394
|
function Q(e) {
|
|
388
395
|
return typeof e == "string" ? e : e.name;
|
|
389
396
|
}
|
|
390
|
-
function
|
|
391
|
-
return e.map((o) =>
|
|
392
|
-
}
|
|
393
|
-
const
|
|
394
|
-
DropdownContainer:
|
|
395
|
-
PanelWrapper:
|
|
396
|
-
Portal:
|
|
397
|
-
PanelContainer:
|
|
398
|
-
Glass:
|
|
399
|
-
Label:
|
|
400
|
-
lifted:
|
|
401
|
-
TriggerContainer:
|
|
402
|
-
Open:
|
|
403
|
-
TriggerPlaceholder:
|
|
404
|
-
TriggerValue:
|
|
405
|
-
TriggerIcon:
|
|
406
|
-
ChipsWrapper:
|
|
407
|
-
Expand:
|
|
408
|
-
MultiSelect:
|
|
409
|
-
ExpandHeight:
|
|
410
|
-
Chip:
|
|
411
|
-
SearchRow:
|
|
412
|
-
SearchBox:
|
|
413
|
-
SearchIcon:
|
|
414
|
-
SearchInput:
|
|
415
|
-
ResultsList:
|
|
416
|
-
OptionRow:
|
|
417
|
-
Selected:
|
|
418
|
-
Checkmark:
|
|
419
|
-
CreateRow:
|
|
420
|
-
WithBorder:
|
|
421
|
-
CreateIcon:
|
|
422
|
-
CreateLabel:
|
|
423
|
-
EmptyHint:
|
|
424
|
-
SkeletonRow:
|
|
397
|
+
function Pn(e, t) {
|
|
398
|
+
return e.map((o) => t.find((r) => M(r) === o) ?? o);
|
|
399
|
+
}
|
|
400
|
+
const An = "_DropdownContainer_p7cfo_13", Mn = "_PanelWrapper_p7cfo_20", On = "_Portal_p7cfo_34", qn = "_PanelContainer_p7cfo_18", jn = "_Glass_p7cfo_48", Gn = "_Label_p7cfo_54", Fn = "_lifted_p7cfo_68", $n = "_TriggerContainer_p7cfo_75", zn = "_Open_p7cfo_99", Hn = "_TriggerPlaceholder_p7cfo_104", Vn = "_TriggerValue_p7cfo_112", Un = "_TriggerIcon_p7cfo_120", Kn = "_ChipsWrapper_p7cfo_127", Qn = "_Expand_p7cfo_145", Jn = "_MultiSelect_p7cfo_151", Xn = "_ExpandHeight_p7cfo_156", Yn = "_Chip_p7cfo_127", Zn = "_SearchRow_p7cfo_175", et = "_SearchBox_p7cfo_180", nt = "_SearchIcon_p7cfo_190", tt = "_SearchInput_p7cfo_197", ot = "_ResultsList_p7cfo_211", rt = "_OptionRow_p7cfo_216", st = "_Selected_p7cfo_231", at = "_Checkmark_p7cfo_236", ct = "_CreateRow_p7cfo_242", it = "_WithBorder_p7cfo_255", lt = "_CreateIcon_p7cfo_260", dt = "_CreateLabel_p7cfo_272", ut = "_EmptyHint_p7cfo_278", _t = "_SkeletonRow_p7cfo_285", l = {
|
|
401
|
+
DropdownContainer: An,
|
|
402
|
+
PanelWrapper: Mn,
|
|
403
|
+
Portal: On,
|
|
404
|
+
PanelContainer: qn,
|
|
405
|
+
Glass: jn,
|
|
406
|
+
Label: Gn,
|
|
407
|
+
lifted: Fn,
|
|
408
|
+
TriggerContainer: $n,
|
|
409
|
+
Open: zn,
|
|
410
|
+
TriggerPlaceholder: Hn,
|
|
411
|
+
TriggerValue: Vn,
|
|
412
|
+
TriggerIcon: Un,
|
|
413
|
+
ChipsWrapper: Kn,
|
|
414
|
+
Expand: Qn,
|
|
415
|
+
MultiSelect: Jn,
|
|
416
|
+
ExpandHeight: Xn,
|
|
417
|
+
Chip: Yn,
|
|
418
|
+
SearchRow: Zn,
|
|
419
|
+
SearchBox: et,
|
|
420
|
+
SearchIcon: nt,
|
|
421
|
+
SearchInput: tt,
|
|
422
|
+
ResultsList: ot,
|
|
423
|
+
OptionRow: rt,
|
|
424
|
+
Selected: st,
|
|
425
|
+
Checkmark: at,
|
|
426
|
+
CreateRow: ct,
|
|
427
|
+
WithBorder: it,
|
|
428
|
+
CreateIcon: lt,
|
|
429
|
+
CreateLabel: dt,
|
|
430
|
+
EmptyHint: ut,
|
|
431
|
+
SkeletonRow: _t
|
|
425
432
|
};
|
|
426
|
-
function
|
|
433
|
+
function pt({ query: e, withBorder: t, onCreate: o }) {
|
|
427
434
|
function r(a) {
|
|
428
435
|
a.preventDefault(), o();
|
|
429
436
|
}
|
|
430
437
|
return /* @__PURE__ */ u(
|
|
431
438
|
"div",
|
|
432
439
|
{
|
|
433
|
-
className: _(l.CreateRow,
|
|
440
|
+
className: _(l.CreateRow, t && l.WithBorder),
|
|
434
441
|
onMouseDown: r,
|
|
435
442
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ n("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: [
|
|
444
|
+
/* @__PURE__ */ n("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
|
|
445
|
+
/* @__PURE__ */ n("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
|
|
439
446
|
] }) }),
|
|
440
447
|
/* @__PURE__ */ u("span", { className: l.CreateLabel, children: [
|
|
441
448
|
"create “",
|
|
@@ -446,34 +453,34 @@ function ut({ query: e, withBorder: n, onCreate: o }) {
|
|
|
446
453
|
}
|
|
447
454
|
);
|
|
448
455
|
}
|
|
449
|
-
function
|
|
456
|
+
function ft({ opt: e, isSelected: t, multiSelect: o, onPick: r }) {
|
|
450
457
|
function a(s) {
|
|
451
458
|
s.preventDefault(), r(e);
|
|
452
459
|
}
|
|
453
460
|
return /* @__PURE__ */ u(
|
|
454
461
|
"div",
|
|
455
462
|
{
|
|
456
|
-
className: _(l.OptionRow,
|
|
463
|
+
className: _(l.OptionRow, t && l.Selected),
|
|
457
464
|
onMouseDown: a,
|
|
458
465
|
children: [
|
|
459
|
-
o &&
|
|
466
|
+
o && t && /* @__PURE__ */ n("span", { className: l.Checkmark, children: "✓" }),
|
|
460
467
|
Q(e)
|
|
461
468
|
]
|
|
462
469
|
}
|
|
463
470
|
);
|
|
464
471
|
}
|
|
465
|
-
function
|
|
466
|
-
return /* @__PURE__ */
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
/* @__PURE__ */
|
|
472
|
+
function ht({ inputRef: e, query: t, onChange: o, onKeyDown: r, placeholder: a }) {
|
|
473
|
+
return /* @__PURE__ */ n("div", { className: l.SearchRow, children: /* @__PURE__ */ u("div", { className: l.SearchBox, children: [
|
|
474
|
+
/* @__PURE__ */ n("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: [
|
|
475
|
+
/* @__PURE__ */ n("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
476
|
+
/* @__PURE__ */ n("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
|
|
470
477
|
] }) }),
|
|
471
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ n(
|
|
472
479
|
"input",
|
|
473
480
|
{
|
|
474
481
|
ref: e,
|
|
475
482
|
className: l.SearchInput,
|
|
476
|
-
value:
|
|
483
|
+
value: t,
|
|
477
484
|
onChange: o,
|
|
478
485
|
onKeyDown: r,
|
|
479
486
|
placeholder: a
|
|
@@ -481,106 +488,106 @@ function ft({ inputRef: e, query: n, onChange: o, onKeyDown: r, placeholder: a }
|
|
|
481
488
|
)
|
|
482
489
|
] }) });
|
|
483
490
|
}
|
|
484
|
-
function
|
|
485
|
-
return /* @__PURE__ */
|
|
491
|
+
function mt({ count: e }) {
|
|
492
|
+
return /* @__PURE__ */ n(B, { children: Array.from({ length: e }).map((t, o) => /* @__PURE__ */ n("div", { className: l.SkeletonRow }, o)) });
|
|
486
493
|
}
|
|
487
|
-
function
|
|
494
|
+
function gt({
|
|
488
495
|
onSearch: e,
|
|
489
|
-
onCreate:
|
|
496
|
+
onCreate: t,
|
|
490
497
|
onPick: o,
|
|
491
498
|
onClose: r,
|
|
492
499
|
anchorRef: a,
|
|
493
500
|
placeholder: s,
|
|
494
|
-
options:
|
|
495
|
-
excluded:
|
|
496
|
-
selected:
|
|
501
|
+
options: c = [],
|
|
502
|
+
excluded: i = [],
|
|
503
|
+
selected: f = [],
|
|
497
504
|
multiSelect: d = !1,
|
|
498
505
|
selectedAtTop: h = !1,
|
|
499
506
|
isLoading: m = !1,
|
|
500
507
|
emptyHint: g = "no results found",
|
|
501
|
-
skeletonRowCount:
|
|
502
|
-
onError:
|
|
503
|
-
glass:
|
|
508
|
+
skeletonRowCount: N = 4,
|
|
509
|
+
onError: R = console.error,
|
|
510
|
+
glass: C = !1
|
|
504
511
|
}) {
|
|
505
|
-
const [
|
|
506
|
-
|
|
507
|
-
if (!
|
|
508
|
-
function
|
|
509
|
-
a?.current &&
|
|
512
|
+
const [W, O] = L(""), [q, k] = L(!1), [I, y] = L(null), F = z(null), H = z(null), E = !!e, V = En(W, e);
|
|
513
|
+
Wn(H, r, a), _e(() => {
|
|
514
|
+
if (!C) return;
|
|
515
|
+
function p() {
|
|
516
|
+
a?.current && y(a.current.getBoundingClientRect());
|
|
510
517
|
}
|
|
511
|
-
return
|
|
512
|
-
window.removeEventListener("scroll",
|
|
518
|
+
return p(), window.addEventListener("scroll", p, !0), window.addEventListener("resize", p), () => {
|
|
519
|
+
window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
|
|
513
520
|
};
|
|
514
|
-
}, [
|
|
515
|
-
|
|
516
|
-
}, [
|
|
517
|
-
const $ = (e ? V :
|
|
518
|
-
(
|
|
519
|
-
),
|
|
520
|
-
...$.filter((
|
|
521
|
-
...$.filter((
|
|
522
|
-
] : $,
|
|
523
|
-
(
|
|
524
|
-
),
|
|
521
|
+
}, [C, a]), G(() => {
|
|
522
|
+
E && F.current?.focus();
|
|
523
|
+
}, [E]);
|
|
524
|
+
const $ = (e ? V : c).filter(
|
|
525
|
+
(p) => !i.includes(M(p))
|
|
526
|
+
), D = h ? [
|
|
527
|
+
...$.filter((p) => f.includes(M(p))),
|
|
528
|
+
...$.filter((p) => !f.includes(M(p)))
|
|
529
|
+
] : $, P = W.trim(), J = D.some(
|
|
530
|
+
(p) => Q(p).toLowerCase() === P.toLowerCase()
|
|
531
|
+
), b = !!t && P.length > 0 && !J;
|
|
525
532
|
async function U() {
|
|
526
|
-
!
|
|
533
|
+
!P || q || !t || (k(!0), t(P).then(X).catch(R).finally(() => k(!1)));
|
|
527
534
|
}
|
|
528
|
-
function X(
|
|
529
|
-
o(
|
|
535
|
+
function X(p) {
|
|
536
|
+
o(p), d || r();
|
|
530
537
|
}
|
|
531
|
-
function ae(
|
|
532
|
-
|
|
538
|
+
function ae(p) {
|
|
539
|
+
O(p.target.value);
|
|
533
540
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
541
|
+
function ce(p) {
|
|
542
|
+
p.key === "Enter" && (p.preventDefault(), D.length > 0 ? X(D[0]) : b && U());
|
|
536
543
|
}
|
|
537
|
-
const
|
|
538
|
-
if (
|
|
539
|
-
const ee = /* @__PURE__ */
|
|
544
|
+
const ie = s ?? (t ? "search or add new…" : "search…");
|
|
545
|
+
if (C && !I) return null;
|
|
546
|
+
const ee = /* @__PURE__ */ n(
|
|
540
547
|
"div",
|
|
541
548
|
{
|
|
542
549
|
ref: H,
|
|
543
|
-
className: _(l.PanelWrapper, { [l.Portal]:
|
|
544
|
-
style:
|
|
545
|
-
children: /* @__PURE__ */ u("div", { className: _(l.PanelContainer, { [l.Glass]:
|
|
546
|
-
|
|
547
|
-
|
|
550
|
+
className: _(l.PanelWrapper, { [l.Portal]: C }),
|
|
551
|
+
style: C && I ? { top: I.bottom, left: I.left, width: I.width } : void 0,
|
|
552
|
+
children: /* @__PURE__ */ u("div", { className: _(l.PanelContainer, { [l.Glass]: C }), children: [
|
|
553
|
+
E && /* @__PURE__ */ n(
|
|
554
|
+
ht,
|
|
548
555
|
{
|
|
549
|
-
inputRef:
|
|
550
|
-
query:
|
|
556
|
+
inputRef: F,
|
|
557
|
+
query: W,
|
|
551
558
|
onChange: ae,
|
|
552
|
-
onKeyDown:
|
|
553
|
-
placeholder:
|
|
559
|
+
onKeyDown: ce,
|
|
560
|
+
placeholder: ie
|
|
554
561
|
}
|
|
555
562
|
),
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
|
|
558
|
-
|
|
563
|
+
/* @__PURE__ */ n("div", { className: l.ResultsList, children: m ? /* @__PURE__ */ n(mt, { count: N }) : /* @__PURE__ */ u(B, { children: [
|
|
564
|
+
D.map((p) => /* @__PURE__ */ n(
|
|
565
|
+
ft,
|
|
559
566
|
{
|
|
560
|
-
opt:
|
|
561
|
-
isSelected:
|
|
567
|
+
opt: p,
|
|
568
|
+
isSelected: f.includes(M(p)),
|
|
562
569
|
multiSelect: d,
|
|
563
570
|
onPick: X
|
|
564
571
|
},
|
|
565
|
-
|
|
572
|
+
M(p)
|
|
566
573
|
)),
|
|
567
|
-
|
|
568
|
-
|
|
574
|
+
b && /* @__PURE__ */ n(
|
|
575
|
+
pt,
|
|
569
576
|
{
|
|
570
|
-
query:
|
|
571
|
-
withBorder:
|
|
577
|
+
query: P,
|
|
578
|
+
withBorder: D.length > 0,
|
|
572
579
|
onCreate: U
|
|
573
580
|
}
|
|
574
581
|
),
|
|
575
|
-
|
|
582
|
+
D.length === 0 && !b && /* @__PURE__ */ n("div", { className: l.EmptyHint, children: g })
|
|
576
583
|
] }) })
|
|
577
584
|
] })
|
|
578
585
|
}
|
|
579
586
|
);
|
|
580
|
-
return
|
|
587
|
+
return C ? me(ee, document.body) : ee;
|
|
581
588
|
}
|
|
582
|
-
function
|
|
583
|
-
return /* @__PURE__ */
|
|
589
|
+
function Ct({ size: e = 14, strokeWidth: t = 2, className: o }) {
|
|
590
|
+
return /* @__PURE__ */ n(
|
|
584
591
|
"svg",
|
|
585
592
|
{
|
|
586
593
|
viewBox: "0 0 24 24",
|
|
@@ -588,16 +595,16 @@ function mt({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
|
588
595
|
height: e,
|
|
589
596
|
fill: "none",
|
|
590
597
|
stroke: "currentColor",
|
|
591
|
-
strokeWidth:
|
|
598
|
+
strokeWidth: t,
|
|
592
599
|
strokeLinecap: "round",
|
|
593
600
|
strokeLinejoin: "round",
|
|
594
601
|
className: o,
|
|
595
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ n("polyline", { points: "6 9 12 15 18 9" })
|
|
596
603
|
}
|
|
597
604
|
);
|
|
598
605
|
}
|
|
599
|
-
function
|
|
600
|
-
return /* @__PURE__ */
|
|
606
|
+
function Zt({ size: e = 18, strokeWidth: t = 2.5, shrink: o = !0 }) {
|
|
607
|
+
return /* @__PURE__ */ n(
|
|
601
608
|
"svg",
|
|
602
609
|
{
|
|
603
610
|
viewBox: "0 0 24 24",
|
|
@@ -605,15 +612,15 @@ function Xt({ size: e = 18, strokeWidth: n = 2.5, shrink: o = !0 }) {
|
|
|
605
612
|
height: e,
|
|
606
613
|
fill: "none",
|
|
607
614
|
stroke: "currentColor",
|
|
608
|
-
strokeWidth:
|
|
615
|
+
strokeWidth: t,
|
|
609
616
|
strokeLinecap: "round",
|
|
610
617
|
strokeLinejoin: "round",
|
|
611
618
|
style: o ? { flexShrink: 0 } : void 0,
|
|
612
|
-
children: /* @__PURE__ */
|
|
619
|
+
children: /* @__PURE__ */ n("polyline", { points: "20 6 9 17 4 12" })
|
|
613
620
|
}
|
|
614
621
|
);
|
|
615
622
|
}
|
|
616
|
-
function
|
|
623
|
+
function eo() {
|
|
617
624
|
return /* @__PURE__ */ u(
|
|
618
625
|
"svg",
|
|
619
626
|
{
|
|
@@ -626,13 +633,13 @@ function Yt() {
|
|
|
626
633
|
strokeLinecap: "round",
|
|
627
634
|
strokeLinejoin: "round",
|
|
628
635
|
children: [
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ n("path", { d: "M12 20h9" }),
|
|
637
|
+
/* @__PURE__ */ n("path", { d: "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z" })
|
|
631
638
|
]
|
|
632
639
|
}
|
|
633
640
|
);
|
|
634
641
|
}
|
|
635
|
-
function
|
|
642
|
+
function no() {
|
|
636
643
|
return /* @__PURE__ */ u(
|
|
637
644
|
"svg",
|
|
638
645
|
{
|
|
@@ -645,13 +652,13 @@ function Zt() {
|
|
|
645
652
|
strokeLinecap: "round",
|
|
646
653
|
strokeLinejoin: "round",
|
|
647
654
|
children: [
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ n("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
656
|
+
/* @__PURE__ */ n("circle", { cx: "12", cy: "7", r: "4" })
|
|
650
657
|
]
|
|
651
658
|
}
|
|
652
659
|
);
|
|
653
660
|
}
|
|
654
|
-
function
|
|
661
|
+
function to({ size: e = 14, strokeWidth: t = 2, className: o }) {
|
|
655
662
|
return /* @__PURE__ */ u(
|
|
656
663
|
"svg",
|
|
657
664
|
{
|
|
@@ -660,19 +667,19 @@ function eo({ size: e = 14, strokeWidth: n = 2, className: o }) {
|
|
|
660
667
|
height: e,
|
|
661
668
|
fill: "none",
|
|
662
669
|
stroke: "currentColor",
|
|
663
|
-
strokeWidth:
|
|
670
|
+
strokeWidth: t,
|
|
664
671
|
strokeLinecap: "round",
|
|
665
672
|
strokeLinejoin: "round",
|
|
666
673
|
className: o,
|
|
667
674
|
children: [
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "7" }),
|
|
676
|
+
/* @__PURE__ */ n("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
670
677
|
]
|
|
671
678
|
}
|
|
672
679
|
);
|
|
673
680
|
}
|
|
674
|
-
function
|
|
675
|
-
const
|
|
681
|
+
function vt({ triggerRef: e, isOpen: t, onClick: o, selectedOptions: r, multiSelect: a, placeholder: s, onOverflow: c = "scroll" }) {
|
|
682
|
+
const i = c === "expand";
|
|
676
683
|
return /* @__PURE__ */ u(
|
|
677
684
|
"button",
|
|
678
685
|
{
|
|
@@ -680,154 +687,154 @@ function gt({ triggerRef: e, isOpen: n, onClick: o, selectedOptions: r, multiSel
|
|
|
680
687
|
ref: e,
|
|
681
688
|
className: _(
|
|
682
689
|
l.TriggerContainer,
|
|
683
|
-
|
|
690
|
+
t && l.Open,
|
|
684
691
|
a && l.MultiSelect,
|
|
685
|
-
|
|
692
|
+
i && l.ExpandHeight
|
|
686
693
|
),
|
|
687
694
|
onClick: o,
|
|
688
|
-
"aria-expanded":
|
|
695
|
+
"aria-expanded": t,
|
|
689
696
|
"aria-haspopup": "listbox",
|
|
690
697
|
children: [
|
|
691
|
-
a && r.length > 0 ? /* @__PURE__ */
|
|
692
|
-
/* @__PURE__ */
|
|
698
|
+
a && r.length > 0 ? /* @__PURE__ */ n("div", { className: _(l.ChipsWrapper, i && l.Expand), children: r.map((f, d) => /* @__PURE__ */ n("span", { className: l.Chip, children: Q(f) }, d)) }) : /* @__PURE__ */ n("span", { className: r.length === 0 ? l.TriggerPlaceholder : l.TriggerValue, children: r.length === 0 ? s : r.map(Q).join(", ") }),
|
|
699
|
+
/* @__PURE__ */ n("span", { className: l.TriggerIcon, children: /* @__PURE__ */ n(Ct, { size: 12 }) })
|
|
693
700
|
]
|
|
694
701
|
}
|
|
695
702
|
);
|
|
696
703
|
}
|
|
697
|
-
function
|
|
704
|
+
function oo({
|
|
698
705
|
options: e = [],
|
|
699
|
-
value:
|
|
706
|
+
value: t,
|
|
700
707
|
onChange: o,
|
|
701
708
|
onSearch: r,
|
|
702
709
|
onCreate: a,
|
|
703
710
|
excluded: s,
|
|
704
|
-
multiSelect:
|
|
705
|
-
selectedAtTop:
|
|
706
|
-
onOverflow:
|
|
711
|
+
multiSelect: c = !1,
|
|
712
|
+
selectedAtTop: i = !1,
|
|
713
|
+
onOverflow: f = "scroll",
|
|
707
714
|
label: d,
|
|
708
715
|
placeholder: h = "select…",
|
|
709
716
|
searchPlaceholder: m,
|
|
710
717
|
emptyHint: g,
|
|
711
|
-
isLoading:
|
|
712
|
-
skeletonRowCount:
|
|
713
|
-
onError:
|
|
714
|
-
className:
|
|
715
|
-
glass:
|
|
716
|
-
children:
|
|
718
|
+
isLoading: N,
|
|
719
|
+
skeletonRowCount: R,
|
|
720
|
+
onError: C,
|
|
721
|
+
className: W,
|
|
722
|
+
glass: O = !1,
|
|
723
|
+
children: q
|
|
717
724
|
}) {
|
|
718
|
-
const { isOpen:
|
|
719
|
-
function
|
|
720
|
-
const
|
|
725
|
+
const { isOpen: k, triggerRef: I, toggleOpen: y, close: F } = Rn(), H = w("Dropdown", W), E = Pn(t, e), V = k || E.length > 0, $ = d && !V ? "" : h;
|
|
726
|
+
function D(J) {
|
|
727
|
+
const b = M(J);
|
|
721
728
|
o(
|
|
722
|
-
|
|
729
|
+
c ? t.includes(b) ? t.filter((U) => U !== b) : [...t, b] : [b]
|
|
723
730
|
);
|
|
724
731
|
}
|
|
725
|
-
const
|
|
726
|
-
ref:
|
|
727
|
-
onClick:
|
|
728
|
-
"aria-expanded":
|
|
732
|
+
const P = {
|
|
733
|
+
ref: I,
|
|
734
|
+
onClick: y,
|
|
735
|
+
"aria-expanded": k,
|
|
729
736
|
"aria-haspopup": "listbox"
|
|
730
737
|
};
|
|
731
738
|
return /* @__PURE__ */ u("div", { className: _(l.DropdownContainer, H), children: [
|
|
732
|
-
d && /* @__PURE__ */
|
|
733
|
-
|
|
734
|
-
|
|
739
|
+
d && /* @__PURE__ */ n("label", { className: _(l.Label, { [l.lifted]: V }), children: d }),
|
|
740
|
+
q ? q({ selectedOptions: E, isOpen: k, toggleOpen: y, close: F, triggerProps: P }) : /* @__PURE__ */ n(
|
|
741
|
+
vt,
|
|
735
742
|
{
|
|
736
|
-
triggerRef:
|
|
737
|
-
isOpen:
|
|
738
|
-
onClick:
|
|
739
|
-
selectedOptions:
|
|
740
|
-
multiSelect:
|
|
741
|
-
onOverflow:
|
|
743
|
+
triggerRef: I,
|
|
744
|
+
isOpen: k,
|
|
745
|
+
onClick: y,
|
|
746
|
+
selectedOptions: E,
|
|
747
|
+
multiSelect: c,
|
|
748
|
+
onOverflow: f,
|
|
742
749
|
placeholder: $
|
|
743
750
|
}
|
|
744
751
|
),
|
|
745
|
-
|
|
746
|
-
|
|
752
|
+
k && /* @__PURE__ */ n(
|
|
753
|
+
gt,
|
|
747
754
|
{
|
|
748
755
|
options: e,
|
|
749
756
|
onSearch: r,
|
|
750
757
|
onCreate: a,
|
|
751
|
-
onPick:
|
|
752
|
-
onClose:
|
|
753
|
-
anchorRef:
|
|
758
|
+
onPick: D,
|
|
759
|
+
onClose: F,
|
|
760
|
+
anchorRef: I,
|
|
754
761
|
excluded: s,
|
|
755
|
-
multiSelect:
|
|
756
|
-
selectedAtTop:
|
|
757
|
-
selected:
|
|
762
|
+
multiSelect: c,
|
|
763
|
+
selectedAtTop: i,
|
|
764
|
+
selected: t,
|
|
758
765
|
placeholder: m,
|
|
759
766
|
emptyHint: g,
|
|
760
|
-
isLoading:
|
|
761
|
-
skeletonRowCount:
|
|
762
|
-
onError:
|
|
763
|
-
glass:
|
|
767
|
+
isLoading: N,
|
|
768
|
+
skeletonRowCount: R,
|
|
769
|
+
onError: C,
|
|
770
|
+
glass: O
|
|
764
771
|
}
|
|
765
772
|
)
|
|
766
773
|
] });
|
|
767
774
|
}
|
|
768
|
-
const
|
|
769
|
-
Btn:
|
|
770
|
-
Primary:
|
|
771
|
-
Secondary:
|
|
772
|
-
Ghost:
|
|
773
|
-
IconDanger:
|
|
774
|
-
Danger:
|
|
775
|
-
},
|
|
776
|
-
primary:
|
|
777
|
-
secondary:
|
|
778
|
-
danger:
|
|
779
|
-
ghost:
|
|
780
|
-
iconDanger:
|
|
775
|
+
const wt = "_Btn_1tozl_10", It = "_Primary_1tozl_35", yt = "_Secondary_1tozl_50", Nt = "_Ghost_1tozl_62", kt = "_IconDanger_1tozl_74", St = "_Danger_1tozl_95", j = {
|
|
776
|
+
Btn: wt,
|
|
777
|
+
Primary: It,
|
|
778
|
+
Secondary: yt,
|
|
779
|
+
Ghost: Nt,
|
|
780
|
+
IconDanger: kt,
|
|
781
|
+
Danger: St
|
|
782
|
+
}, Lt = {
|
|
783
|
+
primary: j.Primary,
|
|
784
|
+
secondary: j.Secondary,
|
|
785
|
+
danger: j.Danger,
|
|
786
|
+
ghost: j.Ghost,
|
|
787
|
+
iconDanger: j.IconDanger
|
|
781
788
|
};
|
|
782
|
-
function
|
|
783
|
-
const a =
|
|
784
|
-
return /* @__PURE__ */
|
|
789
|
+
function ro({ variant: e = "default", className: t, children: o, ...r }) {
|
|
790
|
+
const a = w("Button", t), s = e === "unstyled";
|
|
791
|
+
return /* @__PURE__ */ n(
|
|
785
792
|
"button",
|
|
786
793
|
{
|
|
787
794
|
type: "button",
|
|
788
795
|
...r,
|
|
789
|
-
className: _(!s &&
|
|
796
|
+
className: _(!s && j.Btn, !s && Lt[e], a),
|
|
790
797
|
children: o
|
|
791
798
|
}
|
|
792
799
|
);
|
|
793
800
|
}
|
|
794
|
-
const
|
|
795
|
-
ConfirmWrapper:
|
|
796
|
-
ConfirmContainer:
|
|
797
|
-
Glass:
|
|
798
|
-
ConfirmTitle:
|
|
799
|
-
ConfirmMessage:
|
|
800
|
-
ConfirmActions:
|
|
801
|
-
BtnCancel:
|
|
802
|
-
BtnConfirm:
|
|
803
|
-
BtnDanger:
|
|
801
|
+
const Tt = "_ConfirmWrapper_1tq4o_4", xt = "_ConfirmContainer_1tq4o_1", Dt = "_Glass_1tq4o_24", bt = "_ConfirmTitle_1tq4o_30", Bt = "_ConfirmMessage_1tq4o_38", Rt = "_ConfirmActions_1tq4o_45", Wt = "_BtnCancel_1tq4o_53", Et = "_BtnConfirm_1tq4o_73", Pt = "_BtnDanger_1tq4o_92", T = {
|
|
802
|
+
ConfirmWrapper: Tt,
|
|
803
|
+
ConfirmContainer: xt,
|
|
804
|
+
Glass: Dt,
|
|
805
|
+
ConfirmTitle: bt,
|
|
806
|
+
ConfirmMessage: Bt,
|
|
807
|
+
ConfirmActions: Rt,
|
|
808
|
+
BtnCancel: Wt,
|
|
809
|
+
BtnConfirm: Et,
|
|
810
|
+
BtnDanger: Pt
|
|
804
811
|
};
|
|
805
|
-
function
|
|
812
|
+
function so({
|
|
806
813
|
title: e,
|
|
807
|
-
message:
|
|
814
|
+
message: t,
|
|
808
815
|
confirmLabel: o = "Confirm",
|
|
809
816
|
cancelLabel: r = "Cancel",
|
|
810
817
|
danger: a = !1,
|
|
811
818
|
onConfirm: s,
|
|
812
|
-
onClose:
|
|
813
|
-
className:
|
|
814
|
-
glass:
|
|
819
|
+
onClose: c,
|
|
820
|
+
className: i,
|
|
821
|
+
glass: f = !1
|
|
815
822
|
}) {
|
|
816
|
-
const [d, h] =
|
|
823
|
+
const [d, h] = L(!1), m = w("ConfirmDialog", i);
|
|
817
824
|
function g() {
|
|
818
825
|
h(!0), Promise.resolve(s()).finally(() => {
|
|
819
|
-
h(!1),
|
|
826
|
+
h(!1), c();
|
|
820
827
|
});
|
|
821
828
|
}
|
|
822
|
-
return /* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */ u("div", { className:
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ n("div", { className: T.ConfirmWrapper, children: /* @__PURE__ */ u("div", { className: _(T.ConfirmContainer, { [T.Glass]: f }, m), role: "dialog", "aria-modal": "true", children: [
|
|
830
|
+
/* @__PURE__ */ n("h2", { className: T.ConfirmTitle, children: e }),
|
|
831
|
+
/* @__PURE__ */ n("p", { className: T.ConfirmMessage, children: t }),
|
|
832
|
+
/* @__PURE__ */ u("div", { className: T.ConfirmActions, children: [
|
|
833
|
+
/* @__PURE__ */ n("button", { className: T.BtnCancel, type: "button", onClick: c, disabled: d, children: r }),
|
|
834
|
+
/* @__PURE__ */ n(
|
|
828
835
|
"button",
|
|
829
836
|
{
|
|
830
|
-
className: _(a ?
|
|
837
|
+
className: _(a ? T.BtnDanger : T.BtnConfirm),
|
|
831
838
|
type: "button",
|
|
832
839
|
onClick: g,
|
|
833
840
|
disabled: d,
|
|
@@ -837,26 +844,26 @@ function oo({
|
|
|
837
844
|
] })
|
|
838
845
|
] }) });
|
|
839
846
|
}
|
|
840
|
-
const
|
|
841
|
-
InfoWrapper:
|
|
842
|
-
InfoContainer:
|
|
843
|
-
Glass:
|
|
844
|
-
InfoTitle:
|
|
845
|
-
InfoMessage:
|
|
846
|
-
InfoActions:
|
|
847
|
-
BtnClose:
|
|
847
|
+
const At = "_InfoWrapper_cqv58_4", Mt = "_InfoContainer_cqv58_1", Ot = "_Glass_cqv58_24", qt = "_InfoTitle_cqv58_30", jt = "_InfoMessage_cqv58_38", Gt = "_InfoActions_cqv58_45", Ft = "_BtnClose_cqv58_52", A = {
|
|
848
|
+
InfoWrapper: At,
|
|
849
|
+
InfoContainer: Mt,
|
|
850
|
+
Glass: Ot,
|
|
851
|
+
InfoTitle: qt,
|
|
852
|
+
InfoMessage: jt,
|
|
853
|
+
InfoActions: Gt,
|
|
854
|
+
BtnClose: Ft
|
|
848
855
|
};
|
|
849
|
-
function
|
|
850
|
-
const s =
|
|
851
|
-
return /* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */
|
|
856
|
+
function ao({ title: e, message: t, onClose: o, className: r, glass: a = !1 }) {
|
|
857
|
+
const s = w("InfoDialog", r);
|
|
858
|
+
return /* @__PURE__ */ n("div", { className: A.InfoWrapper, children: /* @__PURE__ */ u("div", { className: _(A.InfoContainer, { [A.Glass]: a }, s), role: "dialog", "aria-modal": "true", children: [
|
|
859
|
+
/* @__PURE__ */ n("h2", { className: A.InfoTitle, children: e }),
|
|
860
|
+
/* @__PURE__ */ n("p", { className: A.InfoMessage, children: t }),
|
|
861
|
+
/* @__PURE__ */ n("div", { className: A.InfoActions, children: /* @__PURE__ */ n("button", { className: A.BtnClose, type: "button", onClick: o, children: "Got it" }) })
|
|
855
862
|
] }) });
|
|
856
863
|
}
|
|
857
|
-
function
|
|
858
|
-
const o =
|
|
859
|
-
return /* @__PURE__ */
|
|
864
|
+
function co({ buttons: e, containerClassName: t }) {
|
|
865
|
+
const o = w("ModalActions", t);
|
|
866
|
+
return /* @__PURE__ */ n("div", { className: o, children: e.map((r, a) => /* @__PURE__ */ n(
|
|
860
867
|
"button",
|
|
861
868
|
{
|
|
862
869
|
className: r.className,
|
|
@@ -868,15 +875,15 @@ function so({ buttons: e, containerClassName: n }) {
|
|
|
868
875
|
a
|
|
869
876
|
)) });
|
|
870
877
|
}
|
|
871
|
-
function
|
|
872
|
-
const r =
|
|
873
|
-
return /* @__PURE__ */
|
|
878
|
+
function io({ onClick: e, disabled: t, className: o }) {
|
|
879
|
+
const r = w("ModalClose", o);
|
|
880
|
+
return /* @__PURE__ */ n(
|
|
874
881
|
"button",
|
|
875
882
|
{
|
|
876
883
|
className: r,
|
|
877
884
|
type: "button",
|
|
878
885
|
onClick: e,
|
|
879
|
-
disabled:
|
|
886
|
+
disabled: t,
|
|
880
887
|
"aria-label": "Close",
|
|
881
888
|
children: /* @__PURE__ */ u(
|
|
882
889
|
"svg",
|
|
@@ -889,38 +896,38 @@ function ao({ onClick: e, disabled: n, className: o }) {
|
|
|
889
896
|
strokeWidth: "1.8",
|
|
890
897
|
strokeLinecap: "round",
|
|
891
898
|
children: [
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ n("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
900
|
+
/* @__PURE__ */ n("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
894
901
|
]
|
|
895
902
|
}
|
|
896
903
|
)
|
|
897
904
|
}
|
|
898
905
|
);
|
|
899
906
|
}
|
|
900
|
-
function
|
|
901
|
-
return /* @__PURE__ */
|
|
907
|
+
function lo({ classNames: e, children: t }) {
|
|
908
|
+
return /* @__PURE__ */ n(re.Provider, { value: e, children: t });
|
|
902
909
|
}
|
|
903
910
|
export {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
911
|
+
no as AvatarFallbackIcon,
|
|
912
|
+
ro as Button,
|
|
913
|
+
Zt as CheckmarkIcon,
|
|
914
|
+
Ct as ChevronDownIcon,
|
|
915
|
+
lo as ChuresConfigProvider,
|
|
916
|
+
so as ConfirmDialog,
|
|
917
|
+
oo as Dropdown,
|
|
918
|
+
eo as EditPencilIcon,
|
|
919
|
+
ao as InfoDialog,
|
|
920
|
+
Xt as Input,
|
|
921
|
+
$e as Loader,
|
|
922
|
+
Kt as LoadingWrapper,
|
|
923
|
+
co as ModalActions,
|
|
924
|
+
io as ModalClose,
|
|
925
|
+
to as SearchIcon,
|
|
926
|
+
Qt as TelegramAuth,
|
|
920
927
|
Ze as TelegramSignInButton,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
928
|
+
Jt as Toaster,
|
|
929
|
+
Yt as Toggle,
|
|
930
|
+
w as useComponentClassName,
|
|
924
931
|
Ue as useTelegramLogin,
|
|
925
932
|
se as useToaster
|
|
926
933
|
};
|