@vervstack/chures 0.0.14 → 0.0.16
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 +302 -291
- package/dist/chures.umd.cjs +2 -2
- package/dist/components/Input/Input.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/theme/ChuresConfigProvider.d.ts +9 -0
- package/dist/theme/ComponentClassNamesContext.d.ts +3 -0
- package/dist/theme/useComponentClassName.d.ts +2 -0
- package/package.json +1 -1
package/dist/chures.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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%)}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_1a08x_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_1a08x_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_1a08x_12{width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}._InputField_1a08x_12:focus{border-color:#ffffff59}._hasError_1a08x_30 ._InputField_1a08x_12,._hasError_1a08x_30 ._InputField_1a08x_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_1a08x_35 ._InputField_1a08x_12{opacity:.45;cursor:not-allowed}._Label_1a08x_40{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_1a08x_40._lifted_1a08x_54{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_1a08x_30 ._Label_1a08x_40._lifted_1a08x_54{color:var(--chures-error, #ef4444)}._ErrorText_1a08x_65{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_1a08x_73{width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1a08x_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%)}}@keyframes _panelIn_1v133_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_1v133_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_1v133_13{position:relative;width:100%}._PanelContainer_1v133_18{position:absolute;top:100%;left:0;width:100%;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;animation:_panelIn_1v133_1 .14s ease}._Label_1v133_31{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_1v133_31._lifted_1v133_45{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_1v133_52{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_1v133_52:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_1v133_52._Open_1v133_76{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_1v133_81{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_1v133_89{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_1v133_97{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_1v133_104{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_1v133_104::-webkit-scrollbar{display:none}._Chip_1v133_104{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_1v133_135{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_1v133_140{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_1v133_150{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_1v133_157{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_1v133_157::placeholder{color:var(--chures-fg-muted)}._ResultsList_1v133_171{max-height:13rem;overflow-y:auto}._OptionRow_1v133_176{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_1v133_176:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_1v133_176._Selected_1v133_191{color:var(--chures-fg)}._Checkmark_1v133_196{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_1v133_202{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_1v133_202:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_1v133_202._WithBorder_1v133_215{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_1v133_220{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_1v133_232{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_1v133_238{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_1v133_245{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_1v133_1 1.4s infinite linear}._Btn_1sywg_1{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)}._Btn_1sywg_1:disabled{opacity:.4;cursor:not-allowed}._Primary_1sywg_26{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}._Primary_1sywg_26:hover:not(:disabled){filter:brightness(1.06)}._Secondary_1sywg_41{background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}._Secondary_1sywg_41:hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}._Ghost_1sywg_53{background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}._Ghost_1sywg_53:hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}._IconDanger_1sywg_65{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}._IconDanger_1sywg_65:hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}._Danger_1sywg_86{background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}._Danger_1sywg_86:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._Unstyled_1sywg_99{display:block;gap:0;border-radius:0;border:none;font-size:inherit;font-weight:inherit;padding:0;transition:none;white-space:normal;color:inherit;background:transparent}._ConfirmContainer_b00ul_1{width:100%;max-width:24rem;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;animation:_confirmIn_b00ul_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_b00ul_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmTitle_b00ul_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_b00ul_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_b00ul_32{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_b00ul_40{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_b00ul_40:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_b00ul_60{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_b00ul_60:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_b00ul_79{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_b00ul_79:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_b00ul_60:disabled,._BtnDanger_b00ul_79:disabled,._BtnCancel_b00ul_40:disabled{opacity:.4;cursor:not-allowed}._InfoContainer_1meyp_1{width:100%;max-width:24rem;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;animation:_infoIn_1meyp_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_1meyp_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoTitle_1meyp_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_1meyp_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_1meyp_32{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_1meyp_39{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_1meyp_39:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
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%)}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_1a08x_1{0%{background-position:-200% 0}to{background-position:200% 0}}._InputContainer_1a08x_6{position:relative;width:100%;height:var(--chures-input-height, 3rem)}._InputField_1a08x_12{width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}._InputField_1a08x_12:focus{border-color:#ffffff59}._hasError_1a08x_30 ._InputField_1a08x_12,._hasError_1a08x_30 ._InputField_1a08x_12:focus{border-color:var(--chures-error, #ef4444)}._disabled_1a08x_35 ._InputField_1a08x_12{opacity:.45;cursor:not-allowed}._Label_1a08x_40{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_1a08x_40._lifted_1a08x_54{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}._hasError_1a08x_30 ._Label_1a08x_40._lifted_1a08x_54{color:var(--chures-error, #ef4444)}._ErrorText_1a08x_65{display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}._Skeleton_1a08x_73{width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1a08x_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%)}}@keyframes _panelIn_1v133_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _shimmer_1v133_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_1v133_13{position:relative;width:100%}._PanelContainer_1v133_18{position:absolute;top:100%;left:0;width:100%;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;animation:_panelIn_1v133_1 .14s ease}._Label_1v133_31{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_1v133_31._lifted_1v133_45{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_1v133_52{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_1v133_52:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_1v133_52._Open_1v133_76{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_1v133_81{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_1v133_89{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_1v133_97{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_1v133_104{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_1v133_104::-webkit-scrollbar{display:none}._Chip_1v133_104{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_1v133_135{padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_1v133_140{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_1v133_150{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_1v133_157{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_1v133_157::placeholder{color:var(--chures-fg-muted)}._ResultsList_1v133_171{max-height:13rem;overflow-y:auto}._OptionRow_1v133_176{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_1v133_176:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_1v133_176._Selected_1v133_191{color:var(--chures-fg)}._Checkmark_1v133_196{color:var(--chures-accent);font-size:var(--chures-font-xs);flex-shrink:0}._CreateRow_1v133_202{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_1v133_202:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_1v133_202._WithBorder_1v133_215{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_1v133_220{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_1v133_232{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_1v133_238{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_1v133_245{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_1v133_1 1.4s infinite linear}:where(._Btn_fhhuv_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_fhhuv_10):disabled{opacity:.4;cursor:not-allowed}:where(._Primary_fhhuv_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_fhhuv_35):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_fhhuv_50){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_fhhuv_50):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_fhhuv_62){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_fhhuv_62):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_fhhuv_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_fhhuv_74):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_fhhuv_95){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_fhhuv_95):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}:where(._Unstyled_fhhuv_108){display:block;gap:0;border-radius:0;border:none;font-size:inherit;font-weight:inherit;padding:0;transition:none;white-space:normal;color:inherit;background:transparent}._ConfirmContainer_b00ul_1{width:100%;max-width:24rem;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;animation:_confirmIn_b00ul_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_b00ul_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmTitle_b00ul_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_b00ul_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_b00ul_32{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_b00ul_40{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_b00ul_40:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_b00ul_60{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_b00ul_60:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_b00ul_79{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_b00ul_79:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_b00ul_60:disabled,._BtnDanger_b00ul_79:disabled,._BtnCancel_b00ul_40:disabled{opacity:.4;cursor:not-allowed}._InfoContainer_1meyp_1{width:100%;max-width:24rem;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;animation:_infoIn_1meyp_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_1meyp_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoTitle_1meyp_17{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_1meyp_25{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_1meyp_32{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_1meyp_39{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_1meyp_39:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as t, jsxs as d, Fragment as T } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import { create as
|
|
6
|
-
function
|
|
3
|
+
import { useRef as $, useState as k, useEffect as E, forwardRef as te, useCallback as K, createContext as oe, useContext as re } from "react";
|
|
4
|
+
import { AnimatePresence as se, motion as ie } from "framer-motion";
|
|
5
|
+
import { create as ae } from "zustand";
|
|
6
|
+
function ce(n) {
|
|
7
7
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
8
8
|
}
|
|
9
9
|
var H = { exports: {} };
|
|
10
10
|
var Q;
|
|
11
|
-
function
|
|
11
|
+
function le() {
|
|
12
12
|
return Q || (Q = 1, (function(n) {
|
|
13
13
|
(function() {
|
|
14
14
|
var e = {}.hasOwnProperty;
|
|
@@ -40,32 +40,32 @@ function ie() {
|
|
|
40
40
|
})();
|
|
41
41
|
})(H)), H.exports;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
const
|
|
45
|
-
LoaderContainer:
|
|
46
|
-
sm:
|
|
47
|
-
md:
|
|
48
|
-
lg:
|
|
49
|
-
Arc1:
|
|
50
|
-
Arc2:
|
|
51
|
-
Arc3:
|
|
52
|
-
spin:
|
|
53
|
-
Ring1:
|
|
54
|
-
Ring2:
|
|
55
|
-
Ring3:
|
|
56
|
-
ripple:
|
|
57
|
-
Dot1:
|
|
58
|
-
Dot2:
|
|
59
|
-
Dot3:
|
|
60
|
-
dotPulse:
|
|
61
|
-
Wave1:
|
|
62
|
-
Wave2:
|
|
63
|
-
Wave3:
|
|
64
|
-
Wave4:
|
|
65
|
-
Wave5:
|
|
66
|
-
waveBounce:
|
|
43
|
+
var de = le();
|
|
44
|
+
const _ = /* @__PURE__ */ ce(de), ue = "_LoaderContainer_wa8op_24", _e = "_sm_wa8op_31", fe = "_md_wa8op_32", he = "_lg_wa8op_33", pe = "_Arc1_wa8op_37", me = "_Arc2_wa8op_38", ge = "_Arc3_wa8op_39", Ce = "_spin_wa8op_1", ve = "_Ring1_wa8op_71", we = "_Ring2_wa8op_72", ye = "_Ring3_wa8op_73", ke = "_ripple_wa8op_1", Ie = "_Dot1_wa8op_86", Ne = "_Dot2_wa8op_87", Te = "_Dot3_wa8op_88", Le = "_dotPulse_wa8op_1", be = "_Wave1_wa8op_105", Se = "_Wave2_wa8op_106", De = "_Wave3_wa8op_107", xe = "_Wave4_wa8op_108", Be = "_Wave5_wa8op_109", Re = "_waveBounce_wa8op_1", U = {
|
|
45
|
+
LoaderContainer: ue,
|
|
46
|
+
sm: _e,
|
|
47
|
+
md: fe,
|
|
48
|
+
lg: he,
|
|
49
|
+
Arc1: pe,
|
|
50
|
+
Arc2: me,
|
|
51
|
+
Arc3: ge,
|
|
52
|
+
spin: Ce,
|
|
53
|
+
Ring1: ve,
|
|
54
|
+
Ring2: we,
|
|
55
|
+
Ring3: ye,
|
|
56
|
+
ripple: ke,
|
|
57
|
+
Dot1: Ie,
|
|
58
|
+
Dot2: Ne,
|
|
59
|
+
Dot3: Te,
|
|
60
|
+
dotPulse: Le,
|
|
61
|
+
Wave1: be,
|
|
62
|
+
Wave2: Se,
|
|
63
|
+
Wave3: De,
|
|
64
|
+
Wave4: xe,
|
|
65
|
+
Wave5: Be,
|
|
66
|
+
waveBounce: Re
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function We(n, e) {
|
|
69
69
|
switch (n) {
|
|
70
70
|
case "ripple":
|
|
71
71
|
return /* @__PURE__ */ d(T, { children: [
|
|
@@ -95,39 +95,39 @@ function Be(n, e) {
|
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ae({ variant: n = "arcs", size: e = "md", color: o, className: r }) {
|
|
99
99
|
return /* @__PURE__ */ t(
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
|
-
className:
|
|
102
|
+
className: _(U.LoaderContainer, U[e], U[n], r),
|
|
103
103
|
role: "status",
|
|
104
104
|
"aria-label": "Loading",
|
|
105
105
|
style: o ? { "--chures-accent": o } : void 0,
|
|
106
|
-
children:
|
|
106
|
+
children: We(n, U)
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
LoadingWrapperContainer:
|
|
112
|
-
SkeletonWrapper:
|
|
110
|
+
const Ee = "_LoadingWrapperContainer_1q0w7_1", Pe = "_SkeletonWrapper_1q0w7_9", J = {
|
|
111
|
+
LoadingWrapperContainer: Ee,
|
|
112
|
+
SkeletonWrapper: Pe
|
|
113
113
|
};
|
|
114
|
-
function
|
|
115
|
-
return n ? o ? /* @__PURE__ */ t("div", { className:
|
|
114
|
+
function Lt({ isLoading: n, children: e, skeleton: o, loaderProps: r, className: i }) {
|
|
115
|
+
return n ? o ? /* @__PURE__ */ t("div", { className: _(J.SkeletonWrapper, i), children: o }) : /* @__PURE__ */ t("div", { className: _(J.LoadingWrapperContainer, i), children: /* @__PURE__ */ t(Ae, { ...r }) }) : /* @__PURE__ */ t(T, { children: e });
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
const { botId: e, redirectUri: o, requestAccess: r = "write" } = n, i =
|
|
117
|
+
const Oe = "https://oauth.telegram.org/js/telegram-login.js?3";
|
|
118
|
+
function je(n) {
|
|
119
|
+
const { botId: e, redirectUri: o, requestAccess: r = "write" } = n, i = $(n.onSuccess);
|
|
120
120
|
i.current = n.onSuccess;
|
|
121
|
-
const s =
|
|
122
|
-
|
|
121
|
+
const s = $(!1), [a, c] = k(!1), [f, u] = k(!1);
|
|
122
|
+
E(function() {
|
|
123
123
|
if (!e) return;
|
|
124
|
-
const
|
|
124
|
+
const C = o ?? window.location.origin;
|
|
125
125
|
u(!0), c(!1);
|
|
126
126
|
const h = document.createElement("script");
|
|
127
|
-
return h.src =
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
{ client_id: e, redirect_uri:
|
|
127
|
+
return h.src = Oe, h.async = !0, h.onload = function() {
|
|
128
|
+
const g = window.Telegram;
|
|
129
|
+
g && (g.Login.init(
|
|
130
|
+
{ client_id: e, redirect_uri: C },
|
|
131
131
|
function(w) {
|
|
132
132
|
s.current || (s.current = !0, i.current(w));
|
|
133
133
|
}
|
|
@@ -139,28 +139,28 @@ function Ee(n) {
|
|
|
139
139
|
};
|
|
140
140
|
}, [e, o]);
|
|
141
141
|
function m() {
|
|
142
|
-
const
|
|
143
|
-
if (!a || !
|
|
142
|
+
const C = window.Telegram;
|
|
143
|
+
if (!a || !C) return;
|
|
144
144
|
s.current = !1;
|
|
145
145
|
const h = o ?? window.location.origin;
|
|
146
|
-
|
|
146
|
+
C.Login.auth(
|
|
147
147
|
{ client_id: e, redirect_uri: h, request_access: r },
|
|
148
|
-
function(
|
|
149
|
-
s.current || (s.current = !0, i.current(
|
|
148
|
+
function(g) {
|
|
149
|
+
s.current || (s.current = !0, i.current(g));
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
return { login: m, isReady: a, isLoading:
|
|
153
|
+
return { login: m, isReady: a, isLoading: f };
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
TelegramSignInButtonContainer:
|
|
157
|
-
FullSize:
|
|
158
|
-
Icon:
|
|
159
|
-
},
|
|
155
|
+
const Me = "_TelegramSignInButtonContainer_10wun_1", Fe = "_FullSize_10wun_46", $e = "_Icon_10wun_50", V = {
|
|
156
|
+
TelegramSignInButtonContainer: Me,
|
|
157
|
+
FullSize: Fe,
|
|
158
|
+
Icon: $e
|
|
159
|
+
}, qe = {
|
|
160
160
|
en: "Continue with Telegram",
|
|
161
161
|
ru: "Войти через Telegram"
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function Ue() {
|
|
164
164
|
return /* @__PURE__ */ t(
|
|
165
165
|
"svg",
|
|
166
166
|
{
|
|
@@ -174,7 +174,7 @@ function Fe() {
|
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ge({
|
|
178
178
|
onClick: n,
|
|
179
179
|
disabled: e,
|
|
180
180
|
lang: o = "en",
|
|
@@ -183,19 +183,19 @@ function $e({
|
|
|
183
183
|
fullSize: s,
|
|
184
184
|
className: a
|
|
185
185
|
}) {
|
|
186
|
-
|
|
186
|
+
E(function() {
|
|
187
187
|
const u = "comfortaa-font";
|
|
188
188
|
if (document.getElementById(u)) return;
|
|
189
189
|
const m = document.createElement("link");
|
|
190
190
|
m.id = u, m.rel = "stylesheet", m.href = "https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&display=swap", document.head.appendChild(m);
|
|
191
191
|
}, []);
|
|
192
|
-
const c = i ?? r ??
|
|
193
|
-
return /* @__PURE__ */ d("button", { type: "button", className:
|
|
194
|
-
/* @__PURE__ */ t(
|
|
192
|
+
const c = i ?? r ?? qe[o], f = [V.TelegramSignInButtonContainer, s && V.FullSize, a].filter(Boolean).join(" ");
|
|
193
|
+
return /* @__PURE__ */ d("button", { type: "button", className: f, onClick: n, disabled: e, children: [
|
|
194
|
+
/* @__PURE__ */ t(Ue, {}),
|
|
195
195
|
c
|
|
196
196
|
] });
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function bt({
|
|
199
199
|
botId: n,
|
|
200
200
|
onSuccess: e,
|
|
201
201
|
lang: o,
|
|
@@ -205,11 +205,11 @@ function It({
|
|
|
205
205
|
children: a,
|
|
206
206
|
className: c
|
|
207
207
|
}) {
|
|
208
|
-
const { login:
|
|
209
|
-
return a ? /* @__PURE__ */ t(T, { children: a({ login:
|
|
210
|
-
|
|
208
|
+
const { login: f, isReady: u } = je({ botId: n, onSuccess: e, redirectUri: i, requestAccess: s });
|
|
209
|
+
return a ? /* @__PURE__ */ t(T, { children: a({ login: f, isReady: u }) }) : /* @__PURE__ */ t(
|
|
210
|
+
Ge,
|
|
211
211
|
{
|
|
212
|
-
onClick:
|
|
212
|
+
onClick: f,
|
|
213
213
|
disabled: !u,
|
|
214
214
|
lang: o,
|
|
215
215
|
title: r,
|
|
@@ -217,11 +217,11 @@ function It({
|
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
const X =
|
|
220
|
+
let ze = 0;
|
|
221
|
+
const X = ae((n, e) => ({
|
|
222
222
|
toasts: [],
|
|
223
223
|
bake: (o) => {
|
|
224
|
-
const r =
|
|
224
|
+
const r = ze++;
|
|
225
225
|
n((i) => ({ toasts: [...i.toasts, { ...o, id: r }] })), setTimeout(() => {
|
|
226
226
|
e().dismiss(r);
|
|
227
227
|
}, 5e3);
|
|
@@ -231,40 +231,40 @@ const X = re((n, e) => ({
|
|
|
231
231
|
toasts: r.toasts.filter((i) => i.id !== o)
|
|
232
232
|
}));
|
|
233
233
|
}
|
|
234
|
-
})),
|
|
235
|
-
ToastContainer:
|
|
236
|
-
Toast:
|
|
237
|
-
error:
|
|
238
|
-
warn:
|
|
239
|
-
info:
|
|
240
|
-
Description:
|
|
241
|
-
DismissButton:
|
|
242
|
-
slideIn:
|
|
243
|
-
slideOut:
|
|
234
|
+
})), He = "_ToastContainer_1tme2_1", Ve = "_Toast_1tme2_1", Ke = "_error_1tme2_33", Qe = "_warn_1tme2_41", Je = "_info_1tme2_49", Xe = "_Description_1tme2_53", Ye = "_DismissButton_1tme2_59", Ze = "_slideIn_1tme2_79", en = "_slideOut_1tme2_83", y = {
|
|
235
|
+
ToastContainer: He,
|
|
236
|
+
Toast: Ve,
|
|
237
|
+
error: Ke,
|
|
238
|
+
warn: Qe,
|
|
239
|
+
info: Je,
|
|
240
|
+
Description: Xe,
|
|
241
|
+
DismissButton: Ye,
|
|
242
|
+
slideIn: Ze,
|
|
243
|
+
slideOut: en
|
|
244
244
|
};
|
|
245
|
-
function
|
|
245
|
+
function St() {
|
|
246
246
|
const { toasts: n } = X();
|
|
247
|
-
return /* @__PURE__ */ t("div", { className: y.ToastContainer, children: /* @__PURE__ */ t(
|
|
248
|
-
|
|
247
|
+
return /* @__PURE__ */ t("div", { className: y.ToastContainer, children: /* @__PURE__ */ t(se, { children: n.map((e) => /* @__PURE__ */ t(
|
|
248
|
+
ie.div,
|
|
249
249
|
{
|
|
250
250
|
layout: !0,
|
|
251
251
|
initial: { opacity: 0, x: 100, y: 50 },
|
|
252
252
|
animate: { opacity: 1, x: 0, y: 0 },
|
|
253
253
|
exit: { opacity: 0, y: -50 },
|
|
254
254
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
255
|
-
children: /* @__PURE__ */ t(
|
|
255
|
+
children: /* @__PURE__ */ t(nn, { ...e })
|
|
256
256
|
},
|
|
257
257
|
e.id
|
|
258
258
|
)) }) });
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function nn({ id: n, title: e, description: o, level: r, isDismissable: i }) {
|
|
261
261
|
const [s, a] = k(!1), c = X();
|
|
262
|
-
return
|
|
262
|
+
return E(() => () => {
|
|
263
263
|
a(!0);
|
|
264
264
|
}, []), /* @__PURE__ */ d(
|
|
265
265
|
"div",
|
|
266
266
|
{
|
|
267
|
-
className:
|
|
267
|
+
className: _(y.Toast, {
|
|
268
268
|
[y.error]: r === "Error",
|
|
269
269
|
[y.warn]: r === "Warn",
|
|
270
270
|
[y.info]: r == null || r === "Info",
|
|
@@ -279,59 +279,59 @@ function Ye({ id: n, title: e, description: o, level: r, isDismissable: i }) {
|
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
InputContainer:
|
|
284
|
-
InputField:
|
|
285
|
-
hasError:
|
|
286
|
-
disabled:
|
|
287
|
-
Label:
|
|
288
|
-
lifted:
|
|
289
|
-
ErrorText:
|
|
290
|
-
Skeleton:
|
|
291
|
-
},
|
|
292
|
-
const [
|
|
293
|
-
return i ? /* @__PURE__ */ t("div", { className:
|
|
282
|
+
const tn = "_InputContainer_1a08x_6", on = "_InputField_1a08x_12", rn = "_hasError_1a08x_30", sn = "_disabled_1a08x_35", an = "_Label_1a08x_40", cn = "_lifted_1a08x_54", ln = "_ErrorText_1a08x_65", dn = "_Skeleton_1a08x_73", N = {
|
|
283
|
+
InputContainer: tn,
|
|
284
|
+
InputField: on,
|
|
285
|
+
hasError: rn,
|
|
286
|
+
disabled: sn,
|
|
287
|
+
Label: an,
|
|
288
|
+
lifted: cn,
|
|
289
|
+
ErrorText: ln,
|
|
290
|
+
Skeleton: dn
|
|
291
|
+
}, Dt = te(function({ value: e, setValue: o, label: r, isLoader: i, type: s = "text", disabled: a, error: c, className: f, inputClassName: u, ...m }, C) {
|
|
292
|
+
const [h, g] = k(!1), w = h || e.length > 0;
|
|
293
|
+
return i ? /* @__PURE__ */ t("div", { className: _(N.Skeleton, f), "aria-hidden": "true" }) : /* @__PURE__ */ d("div", { className: _(N.InputContainer, { [N.hasError]: !!c, [N.disabled]: a }, f), children: [
|
|
294
294
|
/* @__PURE__ */ t(
|
|
295
295
|
"input",
|
|
296
296
|
{
|
|
297
|
-
ref:
|
|
298
|
-
className: N.InputField,
|
|
297
|
+
ref: C,
|
|
298
|
+
className: _(N.InputField, u),
|
|
299
299
|
type: s,
|
|
300
300
|
value: e,
|
|
301
|
-
onChange: (
|
|
302
|
-
onFocus: () =>
|
|
303
|
-
onBlur: () =>
|
|
301
|
+
onChange: (R) => o(R.target.value),
|
|
302
|
+
onFocus: () => g(!0),
|
|
303
|
+
onBlur: () => g(!1),
|
|
304
304
|
disabled: a,
|
|
305
|
-
...
|
|
305
|
+
...m
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
|
-
r && /* @__PURE__ */ t("label", { className:
|
|
308
|
+
r && /* @__PURE__ */ t("label", { className: _(N.Label, { [N.lifted]: w }), children: r }),
|
|
309
309
|
c && /* @__PURE__ */ t("span", { className: N.ErrorText, children: c })
|
|
310
310
|
] });
|
|
311
|
-
}),
|
|
312
|
-
ToggleContainer:
|
|
313
|
-
disabled:
|
|
314
|
-
Track:
|
|
315
|
-
on:
|
|
316
|
-
Thumb:
|
|
317
|
-
Label:
|
|
318
|
-
LabelSkeleton:
|
|
319
|
-
Skeleton:
|
|
311
|
+
}), un = "_ToggleContainer_1jetc_6", _n = "_disabled_1jetc_13", fn = "_Track_1jetc_18", hn = "_on_1jetc_31", pn = "_Thumb_1jetc_39", mn = "_Label_1jetc_57", gn = "_LabelSkeleton_1jetc_63", Cn = "_Skeleton_1jetc_78", v = {
|
|
312
|
+
ToggleContainer: un,
|
|
313
|
+
disabled: _n,
|
|
314
|
+
Track: fn,
|
|
315
|
+
on: hn,
|
|
316
|
+
Thumb: pn,
|
|
317
|
+
Label: mn,
|
|
318
|
+
LabelSkeleton: gn,
|
|
319
|
+
Skeleton: Cn
|
|
320
320
|
};
|
|
321
|
-
function
|
|
322
|
-
const
|
|
323
|
-
return s ?
|
|
321
|
+
function xt({ checked: n, onChange: e, label: o, labelPosition: r = "right", disabled: i, isLoader: s, isLoadingLabel: a, className: c }) {
|
|
322
|
+
const f = !!o || a, u = a ? /* @__PURE__ */ t("span", { className: v.LabelSkeleton, "aria-hidden": "true" }) : o ? /* @__PURE__ */ t("span", { className: v.Label, children: o }) : null;
|
|
323
|
+
return s ? f ? /* @__PURE__ */ d("div", { className: _(v.ToggleContainer, c), children: [
|
|
324
324
|
r === "left" && u,
|
|
325
325
|
/* @__PURE__ */ t("div", { className: v.Skeleton, "aria-hidden": "true" }),
|
|
326
326
|
r === "right" && u
|
|
327
|
-
] }) : /* @__PURE__ */ t("div", { className:
|
|
327
|
+
] }) : /* @__PURE__ */ t("div", { className: _(v.Skeleton, c), "aria-hidden": "true" }) : /* @__PURE__ */ d("label", { className: _(v.ToggleContainer, { [v.disabled]: i }, c), children: [
|
|
328
328
|
r === "left" && u,
|
|
329
329
|
/* @__PURE__ */ t(
|
|
330
330
|
"button",
|
|
331
331
|
{
|
|
332
332
|
role: "switch",
|
|
333
333
|
"aria-checked": n,
|
|
334
|
-
className:
|
|
334
|
+
className: _(v.Track, { [v.on]: n }),
|
|
335
335
|
onClick: () => !i && e(!n),
|
|
336
336
|
disabled: i,
|
|
337
337
|
type: "button",
|
|
@@ -341,12 +341,12 @@ function Lt({ checked: n, onChange: e, label: o, labelPosition: r = "right", dis
|
|
|
341
341
|
r === "right" && u
|
|
342
342
|
] });
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
const [n, e] = k(!1), o =
|
|
344
|
+
function vn() {
|
|
345
|
+
const [n, e] = k(!1), o = $(null), r = K(() => e((s) => !s), []), i = K(() => e(!1), []);
|
|
346
346
|
return { isOpen: n, triggerRef: o, toggleOpen: r, close: i };
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
348
|
+
function wn(n, e, o) {
|
|
349
|
+
E(() => {
|
|
350
350
|
function r(s) {
|
|
351
351
|
const a = s.target;
|
|
352
352
|
n.current?.contains(a) || o?.current?.contains(a) || e();
|
|
@@ -359,9 +359,9 @@ function gn(n, e, o) {
|
|
|
359
359
|
};
|
|
360
360
|
}, [e, n, o]);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function yn(n, e) {
|
|
363
363
|
const [o, r] = k([]);
|
|
364
|
-
return
|
|
364
|
+
return E(() => {
|
|
365
365
|
if (!e) return;
|
|
366
366
|
let i = !1;
|
|
367
367
|
return e(n).then((s) => {
|
|
@@ -371,50 +371,50 @@ function Cn(n, e) {
|
|
|
371
371
|
};
|
|
372
372
|
}, [n, e]), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function F(n) {
|
|
375
375
|
return typeof n == "string" ? n : n.id;
|
|
376
376
|
}
|
|
377
377
|
function G(n) {
|
|
378
378
|
return typeof n == "string" ? n : n.name;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return n.map((o) => e.find((r) =>
|
|
382
|
-
}
|
|
383
|
-
const
|
|
384
|
-
DropdownContainer:
|
|
385
|
-
PanelContainer:
|
|
386
|
-
Label:
|
|
387
|
-
lifted:
|
|
388
|
-
TriggerContainer:
|
|
389
|
-
Open:
|
|
390
|
-
TriggerPlaceholder:
|
|
391
|
-
TriggerValue:
|
|
392
|
-
TriggerIcon:
|
|
393
|
-
ChipsWrapper:
|
|
394
|
-
Chip:
|
|
395
|
-
SearchRow:
|
|
396
|
-
SearchBox:
|
|
397
|
-
SearchIcon:
|
|
398
|
-
SearchInput:
|
|
399
|
-
ResultsList:
|
|
400
|
-
OptionRow:
|
|
401
|
-
Selected:
|
|
402
|
-
Checkmark:
|
|
403
|
-
CreateRow:
|
|
404
|
-
WithBorder:
|
|
405
|
-
CreateIcon:
|
|
406
|
-
CreateLabel:
|
|
407
|
-
EmptyHint:
|
|
408
|
-
SkeletonRow:
|
|
380
|
+
function kn(n, e) {
|
|
381
|
+
return n.map((o) => e.find((r) => F(r) === o) ?? o);
|
|
382
|
+
}
|
|
383
|
+
const In = "_DropdownContainer_1v133_13", Nn = "_PanelContainer_1v133_18", Tn = "_Label_1v133_31", Ln = "_lifted_1v133_45", bn = "_TriggerContainer_1v133_52", Sn = "_Open_1v133_76", Dn = "_TriggerPlaceholder_1v133_81", xn = "_TriggerValue_1v133_89", Bn = "_TriggerIcon_1v133_97", Rn = "_ChipsWrapper_1v133_104", Wn = "_Chip_1v133_104", An = "_SearchRow_1v133_135", En = "_SearchBox_1v133_140", Pn = "_SearchIcon_1v133_150", On = "_SearchInput_1v133_157", jn = "_ResultsList_1v133_171", Mn = "_OptionRow_1v133_176", Fn = "_Selected_1v133_191", $n = "_Checkmark_1v133_196", qn = "_CreateRow_1v133_202", Un = "_WithBorder_1v133_215", Gn = "_CreateIcon_1v133_220", zn = "_CreateLabel_1v133_232", Hn = "_EmptyHint_1v133_238", Vn = "_SkeletonRow_1v133_245", l = {
|
|
384
|
+
DropdownContainer: In,
|
|
385
|
+
PanelContainer: Nn,
|
|
386
|
+
Label: Tn,
|
|
387
|
+
lifted: Ln,
|
|
388
|
+
TriggerContainer: bn,
|
|
389
|
+
Open: Sn,
|
|
390
|
+
TriggerPlaceholder: Dn,
|
|
391
|
+
TriggerValue: xn,
|
|
392
|
+
TriggerIcon: Bn,
|
|
393
|
+
ChipsWrapper: Rn,
|
|
394
|
+
Chip: Wn,
|
|
395
|
+
SearchRow: An,
|
|
396
|
+
SearchBox: En,
|
|
397
|
+
SearchIcon: Pn,
|
|
398
|
+
SearchInput: On,
|
|
399
|
+
ResultsList: jn,
|
|
400
|
+
OptionRow: Mn,
|
|
401
|
+
Selected: Fn,
|
|
402
|
+
Checkmark: $n,
|
|
403
|
+
CreateRow: qn,
|
|
404
|
+
WithBorder: Un,
|
|
405
|
+
CreateIcon: Gn,
|
|
406
|
+
CreateLabel: zn,
|
|
407
|
+
EmptyHint: Hn,
|
|
408
|
+
SkeletonRow: Vn
|
|
409
409
|
};
|
|
410
|
-
function
|
|
410
|
+
function Kn({ query: n, withBorder: e, onCreate: o }) {
|
|
411
411
|
function r(i) {
|
|
412
412
|
i.preventDefault(), o();
|
|
413
413
|
}
|
|
414
414
|
return /* @__PURE__ */ d(
|
|
415
415
|
"div",
|
|
416
416
|
{
|
|
417
|
-
className:
|
|
417
|
+
className: _(l.CreateRow, e && l.WithBorder),
|
|
418
418
|
onMouseDown: r,
|
|
419
419
|
children: [
|
|
420
420
|
/* @__PURE__ */ t("span", { className: l.CreateIcon, children: /* @__PURE__ */ d("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
|
|
@@ -430,14 +430,14 @@ function zn({ query: n, withBorder: e, onCreate: o }) {
|
|
|
430
430
|
}
|
|
431
431
|
);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Qn({ opt: n, isSelected: e, multiSelect: o, onPick: r }) {
|
|
434
434
|
function i(s) {
|
|
435
435
|
s.preventDefault(), r(n);
|
|
436
436
|
}
|
|
437
437
|
return /* @__PURE__ */ d(
|
|
438
438
|
"div",
|
|
439
439
|
{
|
|
440
|
-
className:
|
|
440
|
+
className: _(l.OptionRow, e && l.Selected),
|
|
441
441
|
onMouseDown: i,
|
|
442
442
|
children: [
|
|
443
443
|
o && e && /* @__PURE__ */ t("span", { className: l.Checkmark, children: "✓" }),
|
|
@@ -446,7 +446,7 @@ function Hn({ opt: n, isSelected: e, multiSelect: o, onPick: r }) {
|
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Jn({ inputRef: n, query: e, onChange: o, onKeyDown: r, placeholder: i }) {
|
|
450
450
|
return /* @__PURE__ */ t("div", { className: l.SearchRow, children: /* @__PURE__ */ d("div", { className: l.SearchBox, children: [
|
|
451
451
|
/* @__PURE__ */ t("span", { className: l.SearchIcon, children: /* @__PURE__ */ d("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
|
|
452
452
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "3.5" }),
|
|
@@ -465,10 +465,10 @@ function Vn({ inputRef: n, query: e, onChange: o, onKeyDown: r, placeholder: i }
|
|
|
465
465
|
)
|
|
466
466
|
] }) });
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Xn({ count: n }) {
|
|
469
469
|
return /* @__PURE__ */ t(T, { children: Array.from({ length: n }).map((e, o) => /* @__PURE__ */ t("div", { className: l.SkeletonRow }, o)) });
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Yn({
|
|
472
472
|
onSearch: n,
|
|
473
473
|
onCreate: e,
|
|
474
474
|
onPick: o,
|
|
@@ -477,70 +477,70 @@ function Qn({
|
|
|
477
477
|
placeholder: s,
|
|
478
478
|
options: a = [],
|
|
479
479
|
excluded: c = [],
|
|
480
|
-
selected:
|
|
480
|
+
selected: f = [],
|
|
481
481
|
multiSelect: u = !1,
|
|
482
482
|
isLoading: m = !1,
|
|
483
|
-
emptyHint:
|
|
483
|
+
emptyHint: C = "no results found",
|
|
484
484
|
skeletonRowCount: h = 4,
|
|
485
|
-
onError:
|
|
485
|
+
onError: g = console.error
|
|
486
486
|
}) {
|
|
487
|
-
const [w,
|
|
488
|
-
|
|
489
|
-
b &&
|
|
487
|
+
const [w, R] = k(""), [L, W] = k(!1), A = $(null), P = $(null), b = !!n, q = yn(w, n);
|
|
488
|
+
wn(P, r, i), E(() => {
|
|
489
|
+
b && A.current?.focus();
|
|
490
490
|
}, [b]);
|
|
491
491
|
const I = (n ? q : a).filter(
|
|
492
|
-
(p) => !c.includes(
|
|
492
|
+
(p) => !c.includes(F(p))
|
|
493
493
|
), S = w.trim(), z = I.some(
|
|
494
494
|
(p) => G(p).toLowerCase() === S.toLowerCase()
|
|
495
|
-
),
|
|
495
|
+
), O = !!e && S.length > 0 && !z;
|
|
496
496
|
async function D() {
|
|
497
|
-
!S || L || !e || (
|
|
497
|
+
!S || L || !e || (W(!0), e(S).then(j).catch(g).finally(() => W(!1)));
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function j(p) {
|
|
500
500
|
o(p), u || r();
|
|
501
501
|
}
|
|
502
|
-
function Y(p) {
|
|
503
|
-
$(p.target.value);
|
|
504
|
-
}
|
|
505
502
|
function Z(p) {
|
|
506
|
-
|
|
503
|
+
R(p.target.value);
|
|
504
|
+
}
|
|
505
|
+
function ee(p) {
|
|
506
|
+
p.key === "Enter" && (p.preventDefault(), I.length > 0 ? j(I[0]) : O && D());
|
|
507
507
|
}
|
|
508
|
-
const
|
|
509
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
508
|
+
const ne = s ?? (e ? "search or add new…" : "search…");
|
|
509
|
+
return /* @__PURE__ */ d("div", { ref: P, className: l.PanelContainer, children: [
|
|
510
510
|
b && /* @__PURE__ */ t(
|
|
511
|
-
|
|
511
|
+
Jn,
|
|
512
512
|
{
|
|
513
|
-
inputRef:
|
|
513
|
+
inputRef: A,
|
|
514
514
|
query: w,
|
|
515
|
-
onChange:
|
|
516
|
-
onKeyDown:
|
|
517
|
-
placeholder:
|
|
515
|
+
onChange: Z,
|
|
516
|
+
onKeyDown: ee,
|
|
517
|
+
placeholder: ne
|
|
518
518
|
}
|
|
519
519
|
),
|
|
520
|
-
/* @__PURE__ */ t("div", { className: l.ResultsList, children: m ? /* @__PURE__ */ t(
|
|
520
|
+
/* @__PURE__ */ t("div", { className: l.ResultsList, children: m ? /* @__PURE__ */ t(Xn, { count: h }) : /* @__PURE__ */ d(T, { children: [
|
|
521
521
|
I.map((p) => /* @__PURE__ */ t(
|
|
522
|
-
|
|
522
|
+
Qn,
|
|
523
523
|
{
|
|
524
524
|
opt: p,
|
|
525
|
-
isSelected:
|
|
525
|
+
isSelected: f.includes(F(p)),
|
|
526
526
|
multiSelect: u,
|
|
527
|
-
onPick:
|
|
527
|
+
onPick: j
|
|
528
528
|
},
|
|
529
|
-
|
|
529
|
+
F(p)
|
|
530
530
|
)),
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
O && /* @__PURE__ */ t(
|
|
532
|
+
Kn,
|
|
533
533
|
{
|
|
534
534
|
query: S,
|
|
535
535
|
withBorder: I.length > 0,
|
|
536
536
|
onCreate: D
|
|
537
537
|
}
|
|
538
538
|
),
|
|
539
|
-
I.length === 0 && !
|
|
539
|
+
I.length === 0 && !O && /* @__PURE__ */ t("div", { className: l.EmptyHint, children: C })
|
|
540
540
|
] }) })
|
|
541
541
|
] });
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Zn({ size: n = 14, strokeWidth: e = 2, className: o }) {
|
|
544
544
|
return /* @__PURE__ */ t(
|
|
545
545
|
"svg",
|
|
546
546
|
{
|
|
@@ -557,7 +557,7 @@ function Jn({ size: n = 14, strokeWidth: e = 2, className: o }) {
|
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Bt({ size: n = 18, strokeWidth: e = 2.5, shrink: o = !0 }) {
|
|
561
561
|
return /* @__PURE__ */ t(
|
|
562
562
|
"svg",
|
|
563
563
|
{
|
|
@@ -574,7 +574,7 @@ function bt({ size: n = 18, strokeWidth: e = 2.5, shrink: o = !0 }) {
|
|
|
574
574
|
}
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Rt() {
|
|
578
578
|
return /* @__PURE__ */ d(
|
|
579
579
|
"svg",
|
|
580
580
|
{
|
|
@@ -593,7 +593,7 @@ function St() {
|
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Wt() {
|
|
597
597
|
return /* @__PURE__ */ d(
|
|
598
598
|
"svg",
|
|
599
599
|
{
|
|
@@ -612,24 +612,24 @@ function Dt() {
|
|
|
612
612
|
}
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function et({ triggerRef: n, isOpen: e, onClick: o, selectedOptions: r, multiSelect: i, placeholder: s }) {
|
|
616
616
|
return /* @__PURE__ */ d(
|
|
617
617
|
"button",
|
|
618
618
|
{
|
|
619
619
|
type: "button",
|
|
620
620
|
ref: n,
|
|
621
|
-
className:
|
|
621
|
+
className: _(l.TriggerContainer, e && l.Open),
|
|
622
622
|
onClick: o,
|
|
623
623
|
"aria-expanded": e,
|
|
624
624
|
"aria-haspopup": "listbox",
|
|
625
625
|
children: [
|
|
626
626
|
i && r.length > 0 ? /* @__PURE__ */ t("div", { className: l.ChipsWrapper, children: r.map((a, c) => /* @__PURE__ */ t("span", { className: l.Chip, children: G(a) }, c)) }) : /* @__PURE__ */ t("span", { className: r.length === 0 ? l.TriggerPlaceholder : l.TriggerValue, children: r.length === 0 ? s : r.map(G).join(", ") }),
|
|
627
|
-
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(
|
|
627
|
+
/* @__PURE__ */ t("span", { className: l.TriggerIcon, children: /* @__PURE__ */ t(Zn, { size: 12 }) })
|
|
628
628
|
]
|
|
629
629
|
}
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function At({
|
|
633
633
|
options: n = [],
|
|
634
634
|
value: e,
|
|
635
635
|
onChange: o,
|
|
@@ -638,99 +638,105 @@ function Bt({
|
|
|
638
638
|
excluded: s,
|
|
639
639
|
multiSelect: a = !1,
|
|
640
640
|
label: c,
|
|
641
|
-
placeholder:
|
|
641
|
+
placeholder: f = "select…",
|
|
642
642
|
searchPlaceholder: u,
|
|
643
643
|
emptyHint: m,
|
|
644
|
-
isLoading:
|
|
644
|
+
isLoading: C,
|
|
645
645
|
skeletonRowCount: h,
|
|
646
|
-
onError:
|
|
646
|
+
onError: g,
|
|
647
647
|
className: w,
|
|
648
|
-
children:
|
|
648
|
+
children: R
|
|
649
649
|
}) {
|
|
650
|
-
const { isOpen: L, triggerRef:
|
|
651
|
-
function S(
|
|
652
|
-
const D =
|
|
650
|
+
const { isOpen: L, triggerRef: W, toggleOpen: A, close: P } = vn(), b = kn(e, n), q = L || b.length > 0, I = c && !q ? "" : f;
|
|
651
|
+
function S(O) {
|
|
652
|
+
const D = F(O);
|
|
653
653
|
o(
|
|
654
|
-
a ? e.includes(D) ? e.filter((
|
|
654
|
+
a ? e.includes(D) ? e.filter((j) => j !== D) : [...e, D] : [D]
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
const z = {
|
|
658
|
-
ref:
|
|
659
|
-
onClick:
|
|
658
|
+
ref: W,
|
|
659
|
+
onClick: A,
|
|
660
660
|
"aria-expanded": L,
|
|
661
661
|
"aria-haspopup": "listbox"
|
|
662
662
|
};
|
|
663
|
-
return /* @__PURE__ */ d("div", { className:
|
|
664
|
-
c && /* @__PURE__ */ t("label", { className:
|
|
665
|
-
|
|
666
|
-
|
|
663
|
+
return /* @__PURE__ */ d("div", { className: _(l.DropdownContainer, w), children: [
|
|
664
|
+
c && /* @__PURE__ */ t("label", { className: _(l.Label, { [l.lifted]: q }), children: c }),
|
|
665
|
+
R ? R({ selectedOptions: b, isOpen: L, toggleOpen: A, close: P, triggerProps: z }) : /* @__PURE__ */ t(
|
|
666
|
+
et,
|
|
667
667
|
{
|
|
668
|
-
triggerRef:
|
|
668
|
+
triggerRef: W,
|
|
669
669
|
isOpen: L,
|
|
670
|
-
onClick:
|
|
670
|
+
onClick: A,
|
|
671
671
|
selectedOptions: b,
|
|
672
672
|
multiSelect: a,
|
|
673
673
|
placeholder: I
|
|
674
674
|
}
|
|
675
675
|
),
|
|
676
676
|
L && /* @__PURE__ */ t(
|
|
677
|
-
|
|
677
|
+
Yn,
|
|
678
678
|
{
|
|
679
679
|
options: n,
|
|
680
680
|
onSearch: r,
|
|
681
681
|
onCreate: i,
|
|
682
682
|
onPick: S,
|
|
683
|
-
onClose:
|
|
684
|
-
anchorRef:
|
|
683
|
+
onClose: P,
|
|
684
|
+
anchorRef: W,
|
|
685
685
|
excluded: s,
|
|
686
686
|
multiSelect: a,
|
|
687
687
|
selected: e,
|
|
688
688
|
placeholder: u,
|
|
689
689
|
emptyHint: m,
|
|
690
|
-
isLoading:
|
|
690
|
+
isLoading: C,
|
|
691
691
|
skeletonRowCount: h,
|
|
692
|
-
onError:
|
|
692
|
+
onError: g
|
|
693
693
|
}
|
|
694
694
|
)
|
|
695
695
|
] });
|
|
696
696
|
}
|
|
697
|
-
const
|
|
698
|
-
Btn:
|
|
699
|
-
Primary:
|
|
700
|
-
Secondary:
|
|
701
|
-
Ghost:
|
|
702
|
-
IconDanger:
|
|
703
|
-
Danger:
|
|
704
|
-
Unstyled:
|
|
705
|
-
},
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
697
|
+
const nt = "_Btn_fhhuv_10", tt = "_Primary_fhhuv_35", ot = "_Secondary_fhhuv_50", rt = "_Ghost_fhhuv_62", st = "_IconDanger_fhhuv_74", it = "_Danger_fhhuv_95", at = "_Unstyled_fhhuv_108", B = {
|
|
698
|
+
Btn: nt,
|
|
699
|
+
Primary: tt,
|
|
700
|
+
Secondary: ot,
|
|
701
|
+
Ghost: rt,
|
|
702
|
+
IconDanger: st,
|
|
703
|
+
Danger: it,
|
|
704
|
+
Unstyled: at
|
|
705
|
+
}, Y = oe({});
|
|
706
|
+
function ct(n, e) {
|
|
707
|
+
const o = re(Y);
|
|
708
|
+
return e ?? o[n];
|
|
709
|
+
}
|
|
710
|
+
const lt = {
|
|
711
|
+
primary: B.Primary,
|
|
712
|
+
secondary: B.Secondary,
|
|
713
|
+
danger: B.Danger,
|
|
714
|
+
ghost: B.Ghost,
|
|
715
|
+
iconDanger: B.IconDanger,
|
|
716
|
+
unstyled: B.Unstyled
|
|
712
717
|
};
|
|
713
|
-
function
|
|
718
|
+
function Et({ variant: n, className: e, children: o, ...r }) {
|
|
719
|
+
const i = ct("Button", e);
|
|
714
720
|
return /* @__PURE__ */ t(
|
|
715
721
|
"button",
|
|
716
722
|
{
|
|
717
723
|
type: "button",
|
|
718
724
|
...r,
|
|
719
|
-
className:
|
|
725
|
+
className: _(B.Btn, n ? lt[n] : void 0, i),
|
|
720
726
|
children: o
|
|
721
727
|
}
|
|
722
728
|
);
|
|
723
729
|
}
|
|
724
|
-
const
|
|
725
|
-
ConfirmContainer:
|
|
726
|
-
ConfirmTitle:
|
|
727
|
-
ConfirmMessage:
|
|
728
|
-
ConfirmActions:
|
|
729
|
-
BtnCancel:
|
|
730
|
-
BtnConfirm:
|
|
731
|
-
BtnDanger:
|
|
730
|
+
const dt = "_ConfirmContainer_b00ul_1", ut = "_ConfirmTitle_b00ul_17", _t = "_ConfirmMessage_b00ul_25", ft = "_ConfirmActions_b00ul_32", ht = "_BtnCancel_b00ul_40", pt = "_BtnConfirm_b00ul_60", mt = "_BtnDanger_b00ul_79", x = {
|
|
731
|
+
ConfirmContainer: dt,
|
|
732
|
+
ConfirmTitle: ut,
|
|
733
|
+
ConfirmMessage: _t,
|
|
734
|
+
ConfirmActions: ft,
|
|
735
|
+
BtnCancel: ht,
|
|
736
|
+
BtnConfirm: pt,
|
|
737
|
+
BtnDanger: mt
|
|
732
738
|
};
|
|
733
|
-
function
|
|
739
|
+
function Pt({
|
|
734
740
|
title: n,
|
|
735
741
|
message: e,
|
|
736
742
|
confirmLabel: o = "Confirm",
|
|
@@ -739,21 +745,21 @@ function xt({
|
|
|
739
745
|
onConfirm: s,
|
|
740
746
|
onClose: a
|
|
741
747
|
}) {
|
|
742
|
-
const [c,
|
|
748
|
+
const [c, f] = k(!1);
|
|
743
749
|
function u() {
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
f(!0), Promise.resolve(s()).finally(() => {
|
|
751
|
+
f(!1), a();
|
|
746
752
|
});
|
|
747
753
|
}
|
|
748
|
-
return /* @__PURE__ */ d("div", { className:
|
|
749
|
-
/* @__PURE__ */ t("h2", { className:
|
|
750
|
-
/* @__PURE__ */ t("p", { className:
|
|
751
|
-
/* @__PURE__ */ d("div", { className:
|
|
752
|
-
/* @__PURE__ */ t("button", { className:
|
|
754
|
+
return /* @__PURE__ */ d("div", { className: x.ConfirmContainer, role: "dialog", "aria-modal": "true", children: [
|
|
755
|
+
/* @__PURE__ */ t("h2", { className: x.ConfirmTitle, children: n }),
|
|
756
|
+
/* @__PURE__ */ t("p", { className: x.ConfirmMessage, children: e }),
|
|
757
|
+
/* @__PURE__ */ d("div", { className: x.ConfirmActions, children: [
|
|
758
|
+
/* @__PURE__ */ t("button", { className: x.BtnCancel, type: "button", onClick: a, disabled: c, children: r }),
|
|
753
759
|
/* @__PURE__ */ t(
|
|
754
760
|
"button",
|
|
755
761
|
{
|
|
756
|
-
className:
|
|
762
|
+
className: _(i ? x.BtnDanger : x.BtnConfirm),
|
|
757
763
|
type: "button",
|
|
758
764
|
onClick: u,
|
|
759
765
|
disabled: c,
|
|
@@ -763,21 +769,21 @@ function xt({
|
|
|
763
769
|
] })
|
|
764
770
|
] });
|
|
765
771
|
}
|
|
766
|
-
const
|
|
767
|
-
InfoContainer:
|
|
768
|
-
InfoTitle:
|
|
769
|
-
InfoMessage:
|
|
770
|
-
InfoActions:
|
|
771
|
-
BtnClose:
|
|
772
|
+
const gt = "_InfoContainer_1meyp_1", Ct = "_InfoTitle_1meyp_17", vt = "_InfoMessage_1meyp_25", wt = "_InfoActions_1meyp_32", yt = "_BtnClose_1meyp_39", M = {
|
|
773
|
+
InfoContainer: gt,
|
|
774
|
+
InfoTitle: Ct,
|
|
775
|
+
InfoMessage: vt,
|
|
776
|
+
InfoActions: wt,
|
|
777
|
+
BtnClose: yt
|
|
772
778
|
};
|
|
773
|
-
function
|
|
774
|
-
return /* @__PURE__ */ d("div", { className:
|
|
775
|
-
/* @__PURE__ */ t("h2", { className:
|
|
776
|
-
/* @__PURE__ */ t("p", { className:
|
|
777
|
-
/* @__PURE__ */ t("div", { className:
|
|
779
|
+
function Ot({ title: n, message: e, onClose: o }) {
|
|
780
|
+
return /* @__PURE__ */ d("div", { className: M.InfoContainer, role: "dialog", "aria-modal": "true", children: [
|
|
781
|
+
/* @__PURE__ */ t("h2", { className: M.InfoTitle, children: n }),
|
|
782
|
+
/* @__PURE__ */ t("p", { className: M.InfoMessage, children: e }),
|
|
783
|
+
/* @__PURE__ */ t("div", { className: M.InfoActions, children: /* @__PURE__ */ t("button", { className: M.BtnClose, type: "button", onClick: o, children: "Got it" }) })
|
|
778
784
|
] });
|
|
779
785
|
}
|
|
780
|
-
function
|
|
786
|
+
function jt({ buttons: n, containerClassName: e }) {
|
|
781
787
|
return /* @__PURE__ */ t("div", { className: e, children: n.map((o, r) => /* @__PURE__ */ t(
|
|
782
788
|
"button",
|
|
783
789
|
{
|
|
@@ -790,7 +796,7 @@ function At({ buttons: n, containerClassName: e }) {
|
|
|
790
796
|
r
|
|
791
797
|
)) });
|
|
792
798
|
}
|
|
793
|
-
function
|
|
799
|
+
function Mt({ onClick: n, disabled: e, className: o }) {
|
|
794
800
|
return /* @__PURE__ */ t(
|
|
795
801
|
"button",
|
|
796
802
|
{
|
|
@@ -818,24 +824,29 @@ function Et({ onClick: n, disabled: e, className: o }) {
|
|
|
818
824
|
}
|
|
819
825
|
);
|
|
820
826
|
}
|
|
827
|
+
function Ft({ classNames: n, children: e }) {
|
|
828
|
+
return /* @__PURE__ */ t(Y.Provider, { value: n, children: e });
|
|
829
|
+
}
|
|
821
830
|
export {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
831
|
+
Wt as AvatarFallbackIcon,
|
|
832
|
+
Et as Button,
|
|
833
|
+
Bt as CheckmarkIcon,
|
|
834
|
+
Zn as ChevronDownIcon,
|
|
835
|
+
Ft as ChuresConfigProvider,
|
|
836
|
+
Pt as ConfirmDialog,
|
|
837
|
+
At as Dropdown,
|
|
838
|
+
Rt as EditPencilIcon,
|
|
839
|
+
Ot as InfoDialog,
|
|
840
|
+
Dt as Input,
|
|
841
|
+
Ae as Loader,
|
|
842
|
+
Lt as LoadingWrapper,
|
|
843
|
+
jt as ModalActions,
|
|
844
|
+
Mt as ModalClose,
|
|
845
|
+
bt as TelegramAuth,
|
|
846
|
+
Ge as TelegramSignInButton,
|
|
847
|
+
St as Toaster,
|
|
848
|
+
xt as Toggle,
|
|
849
|
+
ct as useComponentClassName,
|
|
850
|
+
je as useTelegramLogin,
|
|
840
851
|
X as useToaster
|
|
841
852
|
};
|