@elcrm/telegram 0.0.111 → 0.0.113
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/index.css +1 -1
- package/dist/index.es.js +93 -93
- package/dist/index.umd.js +17 -17
- package/package.json +1 -1
- /package/dist/Header/{index.d.ts → Header.d.ts} +0 -0
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_1xf89_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_1xf89_1 .3s ease}._o_1xf89_11._x_1xf89_25{animation:_fadeOut_1xf89_1 .3s ease}._p_1xf89_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1xf89_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px))}._p_1xf89_29._x_1xf89_25{animation:_slideDown_1xf89_1 .3s ease}._p_1xf89_29._m_1xf89_46{--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1xf89_29._o_1xf89_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1xf89_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1xf89_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1xf89_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1xf89_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_1yn3d_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:calc(100dvh - var(--tg-safe-area-inset-top) - var(--tg-content-safe-area-inset-top, 0px));padding-top:var(--tg-modal-offset-top, 0px);max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));margin:0 auto}._s_1yn3d_3._n_1yn3d_14{padding-left:7px;padding-right:7px}._s_1yn3d_3._n_1yn3d_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
1
|
+
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1kcus_1){--tg-offset-bottom: 60px}._h_1kcus_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1kcus_1._row_1kcus_20{flex-direction:row}._h_1kcus_1._column_1kcus_23{flex-direction:column}._h_1kcus_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1kcus_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1kcus_1 ._badge_1kcus_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
package/dist/index.es.js
CHANGED
|
@@ -15,14 +15,14 @@ function or() {
|
|
|
15
15
|
if (Ut) return tt;
|
|
16
16
|
Ut = 1;
|
|
17
17
|
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function
|
|
18
|
+
function k(m, u, R) {
|
|
19
19
|
var h, b = {}, g = null, T = null;
|
|
20
20
|
R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
|
|
21
21
|
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
|
|
22
22
|
if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
|
|
23
23
|
return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
|
|
24
24
|
}
|
|
25
|
-
return tt.Fragment = a, tt.jsx =
|
|
25
|
+
return tt.Fragment = a, tt.jsx = k, tt.jsxs = k, tt;
|
|
26
26
|
}
|
|
27
27
|
var rt = {};
|
|
28
28
|
/**
|
|
@@ -37,7 +37,7 @@ var rt = {};
|
|
|
37
37
|
var Yt;
|
|
38
38
|
function ar() {
|
|
39
39
|
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"),
|
|
40
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
|
|
41
41
|
function pe(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
@@ -65,7 +65,7 @@ function ar() {
|
|
|
65
65
|
var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
|
|
66
66
|
E = Symbol.for("react.module.reference");
|
|
67
67
|
function B(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof ===
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -107,7 +107,7 @@ function ar() {
|
|
|
107
107
|
case m:
|
|
108
108
|
var t = e;
|
|
109
109
|
return I(t) + ".Consumer";
|
|
110
|
-
case
|
|
110
|
+
case k:
|
|
111
111
|
var o = e;
|
|
112
112
|
return I(o._context) + ".Provider";
|
|
113
113
|
case u:
|
|
@@ -257,18 +257,18 @@ function ar() {
|
|
|
257
257
|
if (C && s && typeof C.stack == "string") {
|
|
258
258
|
for (var f = C.stack.split(`
|
|
259
259
|
`), O = s.stack.split(`
|
|
260
|
-
`), S = f.length - 1,
|
|
261
|
-
|
|
262
|
-
for (; S >= 1 &&
|
|
263
|
-
if (f[S] !== O[
|
|
264
|
-
if (S !== 1 ||
|
|
260
|
+
`), S = f.length - 1, x = O.length - 1; S >= 1 && x >= 0 && f[S] !== O[x]; )
|
|
261
|
+
x--;
|
|
262
|
+
for (; S >= 1 && x >= 0; S--, x--)
|
|
263
|
+
if (f[S] !== O[x]) {
|
|
264
|
+
if (S !== 1 || x !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (S--,
|
|
266
|
+
if (S--, x--, x < 0 || f[S] !== O[x]) {
|
|
267
267
|
var w = `
|
|
268
268
|
` + f[S].replace(" at new ", " at ");
|
|
269
269
|
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, w), w;
|
|
270
270
|
}
|
|
271
|
-
while (S >= 1 &&
|
|
271
|
+
while (S >= 1 && x >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -390,7 +390,7 @@ function ar() {
|
|
|
390
390
|
function St(e, t) {
|
|
391
391
|
typeof e.ref == "string" && ze.current;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function kt(e, t) {
|
|
394
394
|
{
|
|
395
395
|
var o = function() {
|
|
396
396
|
qe || (qe = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -401,7 +401,7 @@ function ar() {
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function xt(e, t) {
|
|
405
405
|
{
|
|
406
406
|
var o = function() {
|
|
407
407
|
He || (He = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -453,8 +453,8 @@ function ar() {
|
|
|
453
453
|
d[y] === void 0 && (d[y] = S[y]);
|
|
454
454
|
}
|
|
455
455
|
if (f || O) {
|
|
456
|
-
var
|
|
457
|
-
f &&
|
|
456
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
f && kt(d, x), O && xt(d, x);
|
|
458
458
|
}
|
|
459
459
|
return Et(e, f, O, v, s, ze.current, d);
|
|
460
460
|
}
|
|
@@ -581,9 +581,9 @@ Check the top-level render call using <` + o + ">.");
|
|
|
581
581
|
var S;
|
|
582
582
|
e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
|
|
583
583
|
}
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
584
|
+
var x = jt(e, t, o, v, y);
|
|
585
|
+
if (x == null)
|
|
586
|
+
return x;
|
|
587
587
|
if (d) {
|
|
588
588
|
var w = t.children;
|
|
589
589
|
if (w !== void 0)
|
|
@@ -611,7 +611,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
611
611
|
<%s key={someKey} {...props} />`, Re, L, Bt, L), Qe[L + Re] = !0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return e === c ? Pt(
|
|
614
|
+
return e === c ? Pt(x) : Ct(x), x;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function wt(e, t, o) {
|
|
@@ -626,7 +626,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? Ft.exports = or() : Ft.exports = ar();
|
|
628
628
|
var i = Ft.exports;
|
|
629
|
-
const sr = "
|
|
629
|
+
const sr = "_o_1apbm_11", ir = "_x_1apbm_24", lr = "_p_1apbm_28", cr = "_m_1apbm_45", Ae = {
|
|
630
630
|
o: sr,
|
|
631
631
|
x: ir,
|
|
632
632
|
p: lr,
|
|
@@ -720,12 +720,12 @@ var Wt;
|
|
|
720
720
|
q[m].onClose();
|
|
721
721
|
}
|
|
722
722
|
r.Close = p;
|
|
723
|
-
function
|
|
723
|
+
function k(m, u, R, h) {
|
|
724
724
|
q.i && (h && (R.callback = h), q.i(`${m}/modals/${u}.tsx`).then((b) => {
|
|
725
725
|
b.default.Open(R);
|
|
726
726
|
}));
|
|
727
727
|
}
|
|
728
|
-
r.Open =
|
|
728
|
+
r.Open = k;
|
|
729
729
|
})(Wt || (Wt = {}));
|
|
730
730
|
function Zt() {
|
|
731
731
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
@@ -767,8 +767,8 @@ const lt = (r) => {
|
|
|
767
767
|
const a = new Uint8Array(r.length), c = new Uint8Array(r.length);
|
|
768
768
|
let l = 0;
|
|
769
769
|
for (let p = 0; p < r.length; p++) {
|
|
770
|
-
const
|
|
771
|
-
l = n[
|
|
770
|
+
const k = p % n.length;
|
|
771
|
+
l = n[k] + p + l & 255, c[p] = l;
|
|
772
772
|
}
|
|
773
773
|
for (let p = 0; p < r.length; p++)
|
|
774
774
|
a[p] = r[p] ^ c[p];
|
|
@@ -789,8 +789,8 @@ const lt = (r) => {
|
|
|
789
789
|
try {
|
|
790
790
|
const n = lt(
|
|
791
791
|
Date.now().toString() + Math.random()
|
|
792
|
-
).substring(0, it().saltLength * 2), a = lt(r + n).substring(0, 8), c = Qt(it().key, n), l = ur(r), p = er(l, c),
|
|
793
|
-
return `${n}.${
|
|
792
|
+
).substring(0, it().saltLength * 2), a = lt(r + n).substring(0, 8), c = Qt(it().key, n), l = ur(r), p = er(l, c), k = dr(p);
|
|
793
|
+
return `${n}.${k}.${a}`;
|
|
794
794
|
} catch {
|
|
795
795
|
throw new Error("Не удалось зашифровать данные");
|
|
796
796
|
}
|
|
@@ -799,7 +799,7 @@ const lt = (r) => {
|
|
|
799
799
|
const n = r.split(".");
|
|
800
800
|
if (n.length !== 3)
|
|
801
801
|
throw new Error("Неверный формат зашифрованных данных");
|
|
802
|
-
const a = n[0], c = n[1], l = n[2], p = Qt(it().key, a),
|
|
802
|
+
const a = n[0], c = n[1], l = n[2], p = Qt(it().key, a), k = pr(c), m = er(k, p), u = fr(m);
|
|
803
803
|
if (lt(u + a).substring(
|
|
804
804
|
0,
|
|
805
805
|
8
|
|
@@ -849,14 +849,14 @@ function gr() {
|
|
|
849
849
|
if (zt) return nt;
|
|
850
850
|
zt = 1;
|
|
851
851
|
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
852
|
-
function
|
|
852
|
+
function k(m, u, R) {
|
|
853
853
|
var h, b = {}, g = null, T = null;
|
|
854
854
|
R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
|
|
855
855
|
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
|
|
856
856
|
if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
|
|
857
857
|
return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
|
|
858
858
|
}
|
|
859
|
-
return nt.Fragment = a, nt.jsx =
|
|
859
|
+
return nt.Fragment = a, nt.jsx = k, nt.jsxs = k, nt;
|
|
860
860
|
}
|
|
861
861
|
var at = {};
|
|
862
862
|
/**
|
|
@@ -871,7 +871,7 @@ var at = {};
|
|
|
871
871
|
var qt;
|
|
872
872
|
function yr() {
|
|
873
873
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
874
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"),
|
|
874
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
|
|
875
875
|
function pe(e) {
|
|
876
876
|
if (e === null || typeof e != "object")
|
|
877
877
|
return null;
|
|
@@ -899,7 +899,7 @@ function yr() {
|
|
|
899
899
|
var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
|
|
900
900
|
E = Symbol.for("react.module.reference");
|
|
901
901
|
function B(e) {
|
|
902
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof ===
|
|
902
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
|
|
903
903
|
// types supported by any Flight configuration anywhere since
|
|
904
904
|
// we don't know which Flight build this will end up being used
|
|
905
905
|
// with.
|
|
@@ -941,7 +941,7 @@ function yr() {
|
|
|
941
941
|
case m:
|
|
942
942
|
var t = e;
|
|
943
943
|
return I(t) + ".Consumer";
|
|
944
|
-
case
|
|
944
|
+
case k:
|
|
945
945
|
var o = e;
|
|
946
946
|
return I(o._context) + ".Provider";
|
|
947
947
|
case u:
|
|
@@ -1091,18 +1091,18 @@ function yr() {
|
|
|
1091
1091
|
if (C && s && typeof C.stack == "string") {
|
|
1092
1092
|
for (var f = C.stack.split(`
|
|
1093
1093
|
`), O = s.stack.split(`
|
|
1094
|
-
`), S = f.length - 1,
|
|
1095
|
-
|
|
1096
|
-
for (; S >= 1 &&
|
|
1097
|
-
if (f[S] !== O[
|
|
1098
|
-
if (S !== 1 ||
|
|
1094
|
+
`), S = f.length - 1, x = O.length - 1; S >= 1 && x >= 0 && f[S] !== O[x]; )
|
|
1095
|
+
x--;
|
|
1096
|
+
for (; S >= 1 && x >= 0; S--, x--)
|
|
1097
|
+
if (f[S] !== O[x]) {
|
|
1098
|
+
if (S !== 1 || x !== 1)
|
|
1099
1099
|
do
|
|
1100
|
-
if (S--,
|
|
1100
|
+
if (S--, x--, x < 0 || f[S] !== O[x]) {
|
|
1101
1101
|
var w = `
|
|
1102
1102
|
` + f[S].replace(" at new ", " at ");
|
|
1103
1103
|
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, w), w;
|
|
1104
1104
|
}
|
|
1105
|
-
while (S >= 1 &&
|
|
1105
|
+
while (S >= 1 && x >= 0);
|
|
1106
1106
|
break;
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
@@ -1224,7 +1224,7 @@ function yr() {
|
|
|
1224
1224
|
function St(e, t) {
|
|
1225
1225
|
typeof e.ref == "string" && ze.current;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function kt(e, t) {
|
|
1228
1228
|
{
|
|
1229
1229
|
var o = function() {
|
|
1230
1230
|
qe || (qe = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -1235,7 +1235,7 @@ function yr() {
|
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function xt(e, t) {
|
|
1239
1239
|
{
|
|
1240
1240
|
var o = function() {
|
|
1241
1241
|
He || (He = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -1287,8 +1287,8 @@ function yr() {
|
|
|
1287
1287
|
d[y] === void 0 && (d[y] = S[y]);
|
|
1288
1288
|
}
|
|
1289
1289
|
if (f || O) {
|
|
1290
|
-
var
|
|
1291
|
-
f &&
|
|
1290
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1291
|
+
f && kt(d, x), O && xt(d, x);
|
|
1292
1292
|
}
|
|
1293
1293
|
return Et(e, f, O, v, s, ze.current, d);
|
|
1294
1294
|
}
|
|
@@ -1415,9 +1415,9 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1415
1415
|
var S;
|
|
1416
1416
|
e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
|
|
1417
1417
|
}
|
|
1418
|
-
var
|
|
1419
|
-
if (
|
|
1420
|
-
return
|
|
1418
|
+
var x = jt(e, t, o, v, y);
|
|
1419
|
+
if (x == null)
|
|
1420
|
+
return x;
|
|
1421
1421
|
if (d) {
|
|
1422
1422
|
var w = t.children;
|
|
1423
1423
|
if (w !== void 0)
|
|
@@ -1445,7 +1445,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1445
1445
|
<%s key={someKey} {...props} />`, Re, L, Bt, L), Qe[L + Re] = !0;
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
return e === c ? Pt(
|
|
1448
|
+
return e === c ? Pt(x) : Ct(x), x;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
function wt(e, t, o) {
|
|
@@ -1488,7 +1488,7 @@ function te(r) {
|
|
|
1488
1488
|
const p = je();
|
|
1489
1489
|
if (p.ROUTER_PARAMS) {
|
|
1490
1490
|
r.debug || p.ROUTER_PARAMS.debug;
|
|
1491
|
-
const
|
|
1491
|
+
const k = {
|
|
1492
1492
|
page: (n = p.ROUTER_PARAMS) == null ? void 0 : n.page,
|
|
1493
1493
|
module: (a = p.ROUTER_PARAMS) == null ? void 0 : a.module,
|
|
1494
1494
|
tab: (c = p.ROUTER_PARAMS) == null ? void 0 : c.tab,
|
|
@@ -1497,17 +1497,17 @@ function te(r) {
|
|
|
1497
1497
|
p.ROUTER_PARAMS = {
|
|
1498
1498
|
...p.ROUTER_PARAMS,
|
|
1499
1499
|
...r,
|
|
1500
|
-
prev:
|
|
1500
|
+
prev: k
|
|
1501
1501
|
};
|
|
1502
1502
|
} else {
|
|
1503
1503
|
r.debug || H.debug;
|
|
1504
|
-
const
|
|
1504
|
+
const k = {
|
|
1505
1505
|
page: H == null ? void 0 : H.page,
|
|
1506
1506
|
module: H == null ? void 0 : H.module,
|
|
1507
1507
|
tab: H == null ? void 0 : H.tab,
|
|
1508
1508
|
id: H == null ? void 0 : H.id
|
|
1509
1509
|
};
|
|
1510
|
-
p.ROUTER_PARAMS = { ...H, ...r, prev:
|
|
1510
|
+
p.ROUTER_PARAMS = { ...H, ...r, prev: k };
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
function A() {
|
|
@@ -1564,7 +1564,7 @@ var de;
|
|
|
1564
1564
|
function l(_) {
|
|
1565
1565
|
let E = (I) => (te({ page: I }), I);
|
|
1566
1566
|
const [B, M] = F.useState(
|
|
1567
|
-
|
|
1567
|
+
k() || _ && E(_) || A().page
|
|
1568
1568
|
);
|
|
1569
1569
|
return Se({ page: (I) => {
|
|
1570
1570
|
M(I);
|
|
@@ -1578,10 +1578,10 @@ var de;
|
|
|
1578
1578
|
), E && ie().page(_);
|
|
1579
1579
|
}
|
|
1580
1580
|
r.setPage = p;
|
|
1581
|
-
function
|
|
1581
|
+
function k() {
|
|
1582
1582
|
return A().page;
|
|
1583
1583
|
}
|
|
1584
|
-
r.getPage =
|
|
1584
|
+
r.getPage = k;
|
|
1585
1585
|
function m(_) {
|
|
1586
1586
|
return A().page === _;
|
|
1587
1587
|
}
|
|
@@ -1747,7 +1747,7 @@ function Rr(r) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
) });
|
|
1749
1749
|
}
|
|
1750
|
-
let
|
|
1750
|
+
let xe = {
|
|
1751
1751
|
Send: _r,
|
|
1752
1752
|
Init: br
|
|
1753
1753
|
};
|
|
@@ -1802,7 +1802,7 @@ G.users = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
const Sr = () => {
|
|
1804
1804
|
if (location.hostname === "localhost") {
|
|
1805
|
-
let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [
|
|
1805
|
+
let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [k, m] = J(!1), [u, R] = J(!1);
|
|
1806
1806
|
Ee.is = !0, Ee.MainButton.set = n, Ee.BackButton.set = c, fe(() => {
|
|
1807
1807
|
G[l]["--tg-theme-bg-color-alpha"] = G[l]["--tg-theme-bg-color"] + "b3", G[l]["--tg-theme-secondary-bg-color-alpha"] = G[l]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1808
1808
|
for (let g in G[l])
|
|
@@ -1835,9 +1835,9 @@ const Sr = () => {
|
|
|
1835
1835
|
children: "Назад"
|
|
1836
1836
|
}
|
|
1837
1837
|
),
|
|
1838
|
-
/* @__PURE__ */ i.jsx("div", { className: "o", onClick: () => m(!
|
|
1838
|
+
/* @__PURE__ */ i.jsx("div", { className: "o", onClick: () => m(!k), children: "Меню" })
|
|
1839
1839
|
] }),
|
|
1840
|
-
/* @__PURE__ */ i.jsx(
|
|
1840
|
+
/* @__PURE__ */ i.jsx(xe.Init, {}),
|
|
1841
1841
|
r && /* @__PURE__ */ i.jsx("div", { className: "mb", children: /* @__PURE__ */ i.jsx(
|
|
1842
1842
|
"button",
|
|
1843
1843
|
{
|
|
@@ -1847,7 +1847,7 @@ const Sr = () => {
|
|
|
1847
1847
|
children: r.text
|
|
1848
1848
|
}
|
|
1849
1849
|
) }),
|
|
1850
|
-
|
|
1850
|
+
k ? /* @__PURE__ */ i.jsxs("div", { className: "tm", children: [
|
|
1851
1851
|
/* @__PURE__ */ i.jsxs("ul", { children: [
|
|
1852
1852
|
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: b, children: "Authorization" }) }),
|
|
1853
1853
|
/* @__PURE__ */ i.jsx("li", {})
|
|
@@ -1879,10 +1879,10 @@ const Sr = () => {
|
|
|
1879
1879
|
) })
|
|
1880
1880
|
] })
|
|
1881
1881
|
] }),
|
|
1882
|
-
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => m(!
|
|
1882
|
+
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => m(!k), children: "Closed" }) })
|
|
1883
1883
|
] })
|
|
1884
1884
|
] }) : "",
|
|
1885
|
-
u ? /* @__PURE__ */ i.jsx(
|
|
1885
|
+
u ? /* @__PURE__ */ i.jsx(kr, { setAuthorization: R }) : ""
|
|
1886
1886
|
] });
|
|
1887
1887
|
} else
|
|
1888
1888
|
return fe(() => {
|
|
@@ -1896,8 +1896,8 @@ const Sr = () => {
|
|
|
1896
1896
|
"--tg-safe-area-inset-bottom",
|
|
1897
1897
|
"16px"
|
|
1898
1898
|
);
|
|
1899
|
-
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
|
|
1900
|
-
},
|
|
1899
|
+
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(xe.Init, {}) });
|
|
1900
|
+
}, kr = ({ setAuthorization: r }) => {
|
|
1901
1901
|
let n = {}, a = () => {
|
|
1902
1902
|
localStorage.setItem("auth", n);
|
|
1903
1903
|
};
|
|
@@ -1905,8 +1905,8 @@ const Sr = () => {
|
|
|
1905
1905
|
/* @__PURE__ */ i.jsx("fieldset", {}),
|
|
1906
1906
|
/* @__PURE__ */ i.jsx("div", { onClick: a, children: " Сохранить " })
|
|
1907
1907
|
] }) });
|
|
1908
|
-
},
|
|
1909
|
-
p:
|
|
1908
|
+
}, xr = "_p_1axqy_1", Er = "_s_1axqy_17", Ht = {
|
|
1909
|
+
p: xr,
|
|
1910
1910
|
s: Er
|
|
1911
1911
|
}, jr = ({ className: r, children: n, isScroll: a = !0 }) => /* @__PURE__ */ i.jsx(
|
|
1912
1912
|
"div",
|
|
@@ -1922,7 +1922,7 @@ const Sr = () => {
|
|
|
1922
1922
|
className: [Ar.l, n].filter((a) => a !== void 0).join(" "),
|
|
1923
1923
|
children: r
|
|
1924
1924
|
}
|
|
1925
|
-
), Pr = "_m_ppm7n_2", wr = "_g_ppm7n_10", Tr = "_i_ppm7n_18", $r = "_c_ppm7n_35", Nr = "_l_ppm7n_42", Br = "_a_ppm7n_57", Ir = "_n_ppm7n_62",
|
|
1925
|
+
), Pr = "_m_ppm7n_2", wr = "_g_ppm7n_10", Tr = "_i_ppm7n_18", $r = "_c_ppm7n_35", Nr = "_l_ppm7n_42", Br = "_a_ppm7n_57", Ir = "_n_ppm7n_62", ke = {
|
|
1926
1926
|
m: Pr,
|
|
1927
1927
|
g: wr,
|
|
1928
1928
|
i: Tr,
|
|
@@ -1936,27 +1936,27 @@ const Sr = () => {
|
|
|
1936
1936
|
}, a = (c) => {
|
|
1937
1937
|
Pe.openTelegramLink(c);
|
|
1938
1938
|
};
|
|
1939
|
-
return /* @__PURE__ */ i.jsx("div", { className:
|
|
1939
|
+
return /* @__PURE__ */ i.jsx("div", { className: ke.m, children: r.map((c) => /* @__PURE__ */ i.jsx("div", { className: ke.g, children: c.items.map((l, p) => /* @__PURE__ */ i.jsxs(
|
|
1940
1940
|
"div",
|
|
1941
1941
|
{
|
|
1942
|
-
className:
|
|
1942
|
+
className: ke.i,
|
|
1943
1943
|
onClick: () => {
|
|
1944
1944
|
l.link && a(l.link), l.page && n(l.page), l.callback && l.callback();
|
|
1945
1945
|
},
|
|
1946
1946
|
children: [
|
|
1947
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
1947
|
+
/* @__PURE__ */ i.jsxs("div", { className: ke.c, children: [
|
|
1948
1948
|
/* @__PURE__ */ i.jsx(
|
|
1949
1949
|
"span",
|
|
1950
1950
|
{
|
|
1951
|
-
className:
|
|
1951
|
+
className: ke.l,
|
|
1952
1952
|
style: { background: l.color },
|
|
1953
1953
|
children: l.icon
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
l.title,
|
|
1957
|
-
l.count && /* @__PURE__ */ i.jsx("span", { className:
|
|
1957
|
+
l.count && /* @__PURE__ */ i.jsx("span", { className: ke.n, children: l.count })
|
|
1958
1958
|
] }),
|
|
1959
|
-
/* @__PURE__ */ i.jsx("span", { className:
|
|
1959
|
+
/* @__PURE__ */ i.jsx("span", { className: ke.a, children: "›" })
|
|
1960
1960
|
]
|
|
1961
1961
|
},
|
|
1962
1962
|
p
|
|
@@ -1978,7 +1978,7 @@ function qr({
|
|
|
1978
1978
|
title: c,
|
|
1979
1979
|
className: l,
|
|
1980
1980
|
view: p = "list",
|
|
1981
|
-
position:
|
|
1981
|
+
position: k = "left"
|
|
1982
1982
|
}) {
|
|
1983
1983
|
const [m, u] = J(!1), [R, h] = J(
|
|
1984
1984
|
null
|
|
@@ -1996,7 +1996,7 @@ function qr({
|
|
|
1996
1996
|
{
|
|
1997
1997
|
className: we(
|
|
1998
1998
|
le.m,
|
|
1999
|
-
|
|
1999
|
+
k === "left" ? le.l : le.r,
|
|
2000
2000
|
m && le.x,
|
|
2001
2001
|
l
|
|
2002
2002
|
),
|
|
@@ -2052,7 +2052,7 @@ const rr = ({
|
|
|
2052
2052
|
className: l,
|
|
2053
2053
|
onOpen: p
|
|
2054
2054
|
}) => {
|
|
2055
|
-
const [
|
|
2055
|
+
const [k, m] = F.useState(!1);
|
|
2056
2056
|
return ot = () => {
|
|
2057
2057
|
m(!0), setTimeout(() => {
|
|
2058
2058
|
var u;
|
|
@@ -2061,12 +2061,12 @@ const rr = ({
|
|
|
2061
2061
|
}, /* @__PURE__ */ i.jsx(
|
|
2062
2062
|
"div",
|
|
2063
2063
|
{
|
|
2064
|
-
className: `footer-menu-overlay ${a ? "is-overlay" : ""} ${
|
|
2064
|
+
className: `footer-menu-overlay ${a ? "is-overlay" : ""} ${k ? "closing" : ""} `,
|
|
2065
2065
|
onClick: ot,
|
|
2066
2066
|
children: /* @__PURE__ */ i.jsxs(
|
|
2067
2067
|
"div",
|
|
2068
2068
|
{
|
|
2069
|
-
className: `footer-menu-popup-book ${
|
|
2069
|
+
className: `footer-menu-popup-book ${k ? "closing" : ""} ${l || ""} ${c ? "footer" : ""}`,
|
|
2070
2070
|
onClick: (u) => u.stopPropagation(),
|
|
2071
2071
|
children: [
|
|
2072
2072
|
/* @__PURE__ */ i.jsxs("div", { className: "footer-menu-header", children: [
|
|
@@ -2086,7 +2086,7 @@ const rr = ({
|
|
|
2086
2086
|
)
|
|
2087
2087
|
}
|
|
2088
2088
|
);
|
|
2089
|
-
}, Hr = "
|
|
2089
|
+
}, Hr = "_h_1kcus_1", Jr = "_row_1kcus_20", Kr = "_column_1kcus_23", Gr = "_badge_1kcus_36", Mt = {
|
|
2090
2090
|
h: Hr,
|
|
2091
2091
|
row: Jr,
|
|
2092
2092
|
column: Kr,
|
|
@@ -2098,7 +2098,7 @@ const rr = ({
|
|
|
2098
2098
|
toHide: c = !1,
|
|
2099
2099
|
page: l,
|
|
2100
2100
|
onPageChange: p,
|
|
2101
|
-
direction:
|
|
2101
|
+
direction: k = "row"
|
|
2102
2102
|
}) => {
|
|
2103
2103
|
const [m, u] = F.useState(null), [R, h] = F.useState(
|
|
2104
2104
|
l ? Jt(r || [], l) : 0
|
|
@@ -2127,7 +2127,7 @@ const rr = ({
|
|
|
2127
2127
|
/* @__PURE__ */ i.jsxs(
|
|
2128
2128
|
"footer",
|
|
2129
2129
|
{
|
|
2130
|
-
className: `${Mt.h} ${Mt[
|
|
2130
|
+
className: `${Mt.h} ${Mt[k]} ${a} `,
|
|
2131
2131
|
children: [
|
|
2132
2132
|
n,
|
|
2133
2133
|
r && r.map((b, g) => /* @__PURE__ */ i.jsxs(
|
|
@@ -2162,7 +2162,7 @@ function rn({
|
|
|
2162
2162
|
isScroll: l = !0,
|
|
2163
2163
|
nextBackButton: p
|
|
2164
2164
|
}) {
|
|
2165
|
-
const [
|
|
2165
|
+
const [k, m] = J(!1);
|
|
2166
2166
|
return fe(() => {
|
|
2167
2167
|
if (!c) return;
|
|
2168
2168
|
const u = p === void 0 ? dn().pop() : p, R = () => {
|
|
@@ -2189,7 +2189,7 @@ function rn({
|
|
|
2189
2189
|
{
|
|
2190
2190
|
className: we(
|
|
2191
2191
|
st.w,
|
|
2192
|
-
|
|
2192
|
+
k && st.v,
|
|
2193
2193
|
l && st.s
|
|
2194
2194
|
),
|
|
2195
2195
|
children: [
|
|
@@ -2202,7 +2202,7 @@ function rn({
|
|
|
2202
2202
|
const nn = (r, n) => {
|
|
2203
2203
|
var a, c;
|
|
2204
2204
|
n ? (a = Lt[r]) == null || a.onOpen() : (c = Lt[r]) == null || c.onClose();
|
|
2205
|
-
}, on = "
|
|
2205
|
+
}, on = "_s_ezoxx_3", an = "_n_ezoxx_14", Kt = {
|
|
2206
2206
|
s: on,
|
|
2207
2207
|
n: an
|
|
2208
2208
|
};
|
|
@@ -2214,14 +2214,14 @@ function sn({
|
|
|
2214
2214
|
isLoading: l,
|
|
2215
2215
|
isScrollBar: p = !1
|
|
2216
2216
|
}) {
|
|
2217
|
-
const [
|
|
2217
|
+
const [k, m] = J(l || !1);
|
|
2218
2218
|
fe(() => {
|
|
2219
2219
|
m(l || !1);
|
|
2220
2220
|
}, [l]);
|
|
2221
2221
|
let u = {
|
|
2222
2222
|
onScroll: (R) => {
|
|
2223
2223
|
const { scrollTop: h, scrollHeight: b, clientHeight: g } = R.currentTarget;
|
|
2224
|
-
h + g >= b - c && !
|
|
2224
|
+
h + g >= b - c && !k && (m(!0), a == null || a());
|
|
2225
2225
|
}
|
|
2226
2226
|
};
|
|
2227
2227
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -2270,19 +2270,19 @@ var N;
|
|
|
2270
2270
|
}, r.Notice = {
|
|
2271
2271
|
Send: (n, a, c) => {
|
|
2272
2272
|
var l, p;
|
|
2273
|
-
a !== void 0 ? (
|
|
2273
|
+
a !== void 0 ? (xe.Send({ type: n, text: a, thema: c }), (l = r.WebApp.HapticFeedback) == null || l.notificationOccurred(n)) : (xe.Send(n), (p = r.WebApp.HapticFeedback) == null || p.notificationOccurred(n.type));
|
|
2274
2274
|
},
|
|
2275
2275
|
Error: (n) => {
|
|
2276
2276
|
var a;
|
|
2277
|
-
|
|
2277
|
+
xe.Send({ type: "error", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("error");
|
|
2278
2278
|
},
|
|
2279
2279
|
Success: (n) => {
|
|
2280
2280
|
var a;
|
|
2281
|
-
|
|
2281
|
+
xe.Send({ type: "success", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("success");
|
|
2282
2282
|
},
|
|
2283
2283
|
Warning: (n) => {
|
|
2284
2284
|
var a;
|
|
2285
|
-
|
|
2285
|
+
xe.Send({ type: "warning", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("warning");
|
|
2286
2286
|
}
|
|
2287
2287
|
}, r.Header = Sr, r.TabBar = Zr, r.BottomSheet = rr, r.toggleBottomSheet = ot, r.SafeArea = jr, r.Loading = Cr, r.Sidebar = qr, r.SidePanel = rn, r.AppBar = fn, r.SidePanelController = nn, r.Scroll = sn, r.Modal = Wt, r.Menu = Mr, r.MainButton = {
|
|
2288
2288
|
callback: [],
|
|
@@ -2302,9 +2302,9 @@ var N;
|
|
|
2302
2302
|
Ee.is ? Ee.BackButton.set(n) : (U.state.push(n), U.router(n));
|
|
2303
2303
|
};
|
|
2304
2304
|
})(N || (N = {}));
|
|
2305
|
-
const hn = N.TabBar, gn = rr, Gt = N.BackButton, yn = N.BackButtonPrev, dn = N.BackButtonState, mn = N.Notice, bn = N.SafeArea, _n = N.Loading, Rn = N.Menu, Sn = N.SidePanel,
|
|
2305
|
+
const hn = N.TabBar, gn = rr, Gt = N.BackButton, yn = N.BackButtonPrev, dn = N.BackButtonState, mn = N.Notice, bn = N.SafeArea, _n = N.Loading, Rn = N.Menu, Sn = N.SidePanel, kn = N.Scroll, xn = N.AppBar, En = N.Sidebar, jn = N.SidePanelController, { Header: On, toggleBottomSheet: An, Modal: Cn, MainButton: Pn, WebApp: Pe, getUser: wn } = N;
|
|
2306
2306
|
export {
|
|
2307
|
-
|
|
2307
|
+
xn as AppBar,
|
|
2308
2308
|
Gt as BackButton,
|
|
2309
2309
|
yn as BackButtonPrev,
|
|
2310
2310
|
dn as BackButtonState,
|
|
@@ -2316,7 +2316,7 @@ export {
|
|
|
2316
2316
|
Cn as Modal,
|
|
2317
2317
|
mn as Notice,
|
|
2318
2318
|
bn as SafeArea,
|
|
2319
|
-
|
|
2319
|
+
kn as Scroll,
|
|
2320
2320
|
Sn as SidePanel,
|
|
2321
2321
|
jn as SidePanelController,
|
|
2322
2322
|
En as Sidebar,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(b,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(b=typeof globalThis<"u"?globalThis:b||self,w((b.elCRM=b.elCRM||{},b.elCRM.components={}),b.React,b.ReactDOM))})(this,function(b,w,or){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_1xf89_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_1xf89_1 .3s ease}._o_1xf89_11._x_1xf89_25{animation:_fadeOut_1xf89_1 .3s ease}._p_1xf89_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1xf89_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px))}._p_1xf89_29._x_1xf89_25{animation:_slideDown_1xf89_1 .3s ease}._p_1xf89_29._m_1xf89_46{--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1xf89_29._o_1xf89_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1xf89_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1xf89_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1xf89_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1xf89_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_1yn3d_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:calc(100dvh - var(--tg-safe-area-inset-top) - var(--tg-content-safe-area-inset-top, 0px));padding-top:var(--tg-modal-offset-top, 0px);max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));margin:0 auto}._s_1yn3d_3._n_1yn3d_14{padding-left:7px;padding-right:7px}._s_1yn3d_3._n_1yn3d_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
1
|
+
(function(b,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],R):(b=typeof globalThis<"u"?globalThis:b||self,R((b.elCRM=b.elCRM||{},b.elCRM.components={}),b.React,b.ReactDOM))})(this,function(b,R,nr){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1kcus_1){--tg-offset-bottom: 60px}._h_1kcus_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1kcus_1._row_1kcus_20{flex-direction:row}._h_1kcus_1._column_1kcus_23{flex-direction:column}._h_1kcus_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1kcus_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1kcus_1 ._badge_1kcus_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Wt);var lt={exports:{}},Ce={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ut;function
|
|
10
|
+
*/var Ut;function or(){if(Ut)return Ce;Ut=1;var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(_,u,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(B=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=w,Ce.jsxs=w,Ce}var Pe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=
|
|
19
|
-
`+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var
|
|
18
|
+
*/var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var v=o.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case w:var o=e;return M(o._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,ue,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
|
|
19
|
+
`+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=_e.current,_e.current=null,gt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
|
|
20
20
|
`),C=i.stack.split(`
|
|
21
|
-
`),S=
|
|
22
|
-
`+
|
|
21
|
+
`),S=f.length-1,E=C.length-1;S>=1&&E>=0&&f[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(f[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||f[S]!==C[E]){var $=`
|
|
22
|
+
`+f[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,_e.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,o){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return vt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},qe=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",o,f.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),Ve(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Rt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,v,d){var f={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ct(e,t,o,i,g){{var v,d={},f=null,C=null;o!==void 0&&(He(o),f=""+o),wt(t)&&(He(t.key),f=""+t.key),Rt(t)&&(C=t.ref,Et(t,g));for(v in t)G.call(t,v)&&!St.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var S=e.defaultProps;for(v in S)d[v]===void 0&&(d[v]=S[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&jt(d,E),C&&Ot(d,E)}return At(e,f,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Re;Re=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),V(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];we(i)&&Qe(i,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Re){Re=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var tt={};function rt(e,t,o,i,g,v){{var d=I(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?f+=C:f+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===n?(S="<"+(N(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,
|
|
31
|
+
<%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;Pe.Fragment=c,Pe.jsx=Mt,Pe.jsxs=Dt}()),Pe}process.env.NODE_ENV==="production"?lt.exports=or():lt.exports=ar();var s=lt.exports;const je={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var ct;(r=>{function n({children:_,onCallbackModal:u,nameModal:k,offsetTop:h}){const[y,m]=R.useState(!1),[B,T]=R.useState(!1);if(q[k].onClose=()=>{b.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),u==null||u(),q.x(k)},300)},R.useEffect(()=>{y?q[k].onClose():(b.default.BackButton({callback:()=>q[k].onClose()}),m(!0))},[]),!!y)return s.jsx("div",{className:me(je.o,B&&je.x),children:s.jsx("div",{className:me(je.p,B&&je.x,h?je.o:je.m),children:_})})}r.Content=n;function a({import_modules:_}){let[u,k]=R.useState([]);return q.x=h=>{k(h?u.filter(y=>y.key!==h):[])},R.useEffect(()=>{_&&(q.i=_)},[]),q.add=(h,y=Date.now())=>{k([...u,{key:y,item:h}])},s.jsx(s.Fragment,{children:u.map(h=>h.item)})}r.Init=a;function c(_,u,k){q.add(s.jsx(n,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:k,children:_},String(Date.now())),u)}r.Add=c;function l(_,u=Date.now().toString(),k){return q[u]={},{Open:m=>{r.Add(s.jsx(_,{...m,onCallbackModal:B=>{var T;(T=m.callback)==null||T.call(m,B)},nameModal:u},new Date().getTime()),u,k===void 0?!0:k)}}}r.Create=l;function p(_){q[_].onClose()}r.Close=p;function w(_,u,k,h){q.i&&(h&&(k.callback=h),q.i(`${_}/modals/${u}.tsx`).then(y=>{y.default.Open(k)}))}r.Open=w})(ct||(ct={}));function qt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Vt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ht(r){const n=qt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Vt,...r}}function nt(){return qt().CRYPTO_PARAMS||Vt}const ot=r=>{let n=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let c=0;c<64;c++){const l=(n^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Jt=(r,n)=>{let a=r+n;for(let l=0;l<nt().iterations;l++)a=ot(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Kt=(r,n)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const w=p%n.length;l=n[w]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ir=r=>new TextEncoder().encode(r),sr=r=>new TextDecoder().decode(r),lr=r=>{let n="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},cr=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let c=0;c<n.length;c++)a[c]=n.charCodeAt(c);return a},ur=r=>{try{const n=ot(Date.now().toString()+Math.random()).substring(0,nt().saltLength*2),a=ot(r+n).substring(0,8),c=Jt(nt().key,n),l=ir(r),p=Kt(l,c),w=lr(p);return`${n}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},fr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],c=n[1],l=n[2],p=Jt(nt().key,a),w=cr(c),_=Kt(w,p),u=sr(_);if(ot(u+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=n=>{Ht({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return ur(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=fr(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ht({iterations:n,saltLength:a})}})(le||(le={}));var Te={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var Gt;function dr(){if(Gt)return Te;Gt=1;var r=
|
|
39
|
+
*/var Gt;function dr(){if(Gt)return Te;Gt=1;var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(_,u,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(B=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Te.Fragment=a,Te.jsx=w,Te.jsxs=w,Te}var at={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
42
42
|
*
|
|
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=
|
|
48
|
-
`+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var
|
|
47
|
+
*/var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var v=o.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case w:var o=e;return M(o._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,ue,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
|
|
48
|
+
`+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=_e.current,_e.current=null,gt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
|
|
49
49
|
`),C=i.stack.split(`
|
|
50
|
-
`),S=
|
|
51
|
-
`+
|
|
50
|
+
`),S=f.length-1,E=C.length-1;S>=1&&E>=0&&f[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(f[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||f[S]!==C[E]){var $=`
|
|
51
|
+
`+f[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,_e.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,o){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return vt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},qe=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",o,f.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),Ve(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Rt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,v,d){var f={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ct(e,t,o,i,g){{var v,d={},f=null,C=null;o!==void 0&&(He(o),f=""+o),wt(t)&&(He(t.key),f=""+t.key),Rt(t)&&(C=t.ref,Et(t));for(v in t)G.call(t,v)&&!St.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var S=e.defaultProps;for(v in S)d[v]===void 0&&(d[v]=S[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&jt(d,E),C&&Ot(d,E)}return At(e,f,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Re;Re=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+
|
|
55
|
+
Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),V(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];we(i)&&Qe(i,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Re){Re=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var tt={};function rt(e,t,o,i,g,v){{var d=I(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?f+=C:f+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===n?(S="<"+(N(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
|
|
56
56
|
let props = %s;
|
|
57
57
|
<%s {...props} />
|
|
58
58
|
React keys must be passed directly to JSX without using spread:
|
|
59
59
|
let props = %s;
|
|
60
|
-
<%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,n){return rt(e,t,n,!0)}function It(e,t,n){return rt(e,t,n,!1)}var Mt=It,Dt=Nt;at.Fragment=c,at.jsx=Mt,at.jsxs=Dt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:Xt.version});function Z(r){var o,a,c,l;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return ue().ROUTER_PARAMS||J}function de(r){const o=ue();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ue().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:I,debug:D}),o()}r.Default=c;function l(x){let j=M=>(Z({page:M}),M);const[I,D]=w.useState(R()||x&&j(x)||A().page);return de({page:M=>{D(M)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function _(x){return A().page===x}r.isPage=_;function f(){return A().prev}r.getBack=f;function k(x,j){const[I,D]=w.useState(y()||x||A().module);return de({module:D}),I}r.useModule=k;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function y(){return A().module||""}r.getModule=y;function m(x){return A().module===x}r.isModule=m;function B(x,j){if(typeof x!="function"){const[I,D]=w.useState(!j),[M,N]=w.useState(x||be());return de({tabs:N}),j&&w.useEffect(()=>{D(!0)},[]),[M,I]}else de({tabs:x})}r.useTabs=B;function T(x){let j=M=>(Z({tab:M}),M);const[I,D]=w.useState(be()||x&&j(x)||A().tab);return de({tabs:M=>{D(M)}}),I}r.useTab=T;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function be(){return A().tab}r.getTabs=be;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=w.useState(x||Ae());return de({id:D=>{I(D)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function Me(x){return Number(A().id)===x}r.isId=Me;async function De(x){var j,I,D,M,N,F,L,fe;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((M=(D=re()).tabs)==null||M.call(D,Q)),Y!==void 0&&((F=(N=re()).module)==null||F.call(N,Y)),X!==void 0&&((fe=(L=re()).page)==null||fe.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=De})(ce||(ce={}));let it={};function hr(){const[r,o]=w.useState([]);return it.set=a=>{o([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let o=new Date().getTime();r.key=o,it.set({item:s.jsx(vr,{data:r},o),key:o})}function vr(r){const o=r.data;let[a]=w.useState("show"),[c,l]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){l(!0),it.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:o.text})]})})}let pe={Send:mr,Init:hr};const ge={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const br=()=>{if(location.hostname==="localhost"){let[r,o]=w.useState(!1),[a,c]=w.useState(!1),[l,p]=w.useState("dark"),[R,_]=w.useState(!1),[f,k]=w.useState(!1);ge.is=!0,ge.MainButton.set=o,ge.BackButton.set=c,w.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let m in K[l])document.documentElement.style.setProperty(m,K[l][m]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=m=>{for(let B in K[m])document.documentElement.style.setProperty(B,K[m][B]);p(m),_(!1)},y=()=>{_(!1),k(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var m;a.page===void 0?(m=a.callback)==null||m.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",f?s.jsx(_r,{setAuthorization:k}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ve.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ve.themeParams.bg_color+"b3"),ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},_r=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},yr=({className:r,children:o,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:o}),xr={l:"_l_gfyud_1"},kr=({children:r,className:o})=>s.jsx("div",{className:[xr.l,o].filter(a=>a!==void 0).join(" "),children:r}),he={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Sr=({items:r})=>{const o=c=>{ce.setPage(c)},a=c=>{ve.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&o(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},oe={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function wr({children:r,icon:o,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[_,f]=w.useState(!1),[k,h]=w.useState(null);w.useEffect(()=>{let m=document.querySelector(".p_sb");return m||(m=document.createElement("div"),m.className="_p_sb",document.body.appendChild(m)),h(m),()=>{m&&m.parentNode&&m.parentNode.removeChild(m)}},[]);const y=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:oe.o,onClick:()=>f(!1)}),s.jsxs("div",{className:me(oe.m,R==="left"?oe.l:oe.r,_&&oe.x,l),children:[s.jsxs("div",{className:oe.h,children:[c&&s.jsx("h3",{className:oe.t,children:c}),s.jsxs("svg",{onClick:()=>f(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:oe.c,children:p==="list"?s.jsx("ul",{className:oe.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:o}),k&&or.createPortal(y,k)]})}let $e=()=>{};const Qt=({children:r,title:o,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=w.useState(!1);return $e=()=>{_(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Oe==null?void 0:Oe.onClose)==null||f.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ft={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},Oe=[],er=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Rr=({actions:r,children:o,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[_,f]=w.useState(null),[k,h]=w.useState(l?er(r||[],l):0);return Oe.onClose=()=>{f(null),h(l?er(r||[],l):0)},w.useEffect(()=>{if(!c)return;const y=document.querySelectorAll("[contenteditable]"),m=()=>{const T=document.querySelector("footer");T&&(T.style.display="flex")},B=()=>{const T=document.querySelector("footer");T&&(T.style.display="none")};return y.forEach(T=>{T.addEventListener("focus",B,!0),T.addEventListener("blur",m,!0)}),()=>{y.forEach(T=>{T.removeEventListener("focus",B,!0),T.removeEventListener("blur",m,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${ft.h} ${ft[R]} ${a} `,children:[o,r&&r.map((y,m)=>s.jsxs("div",{"data-active":k===m?"true":"false",onClick:()=>{y.page&&(h(m),p==null||p(y.page)),y.callback&&(y.callback(),h(m)),y.component&&(k===m?$e():(f(y.component),h(m)))},children:[y.icon,y.badge&&s.jsx("div",{className:ft.badge,children:y.badge})]},m))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Er({children:r,name:o,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=w.useState(!1);return w.useEffect(()=>{if(!c)return;const f=p===void 0?rr().pop():p,k=()=>{_(!1),setTimeout(()=>{pt(f||!1),a==null||a()},300)};ut[o]={onClose:k,onOpen:()=>{_(!0)}},pt({callback:k});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,o)=>{var a,c;o?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},tr={s:"_s_1yn3d_3",n:"_n_1yn3d_14"};function Or({className:r,children:o,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,_]=w.useState(l||!1);w.useEffect(()=>{_(l||!1)},[l]);let f={onScroll:k=>{const{scrollTop:h,scrollHeight:y,clientHeight:m}=k.currentTarget;h+m>=y-c&&!R&&(_(!0),a==null||a())}};return s.jsx("div",{...f,className:me(tr.s,!p&&tr.n,r),children:o})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:o,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,o),children:[r,c&&s.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(b.default.WebApp.BackButton.isVisible=!1,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(b.default.WebApp.BackButton.isVisible=!0,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let o=z.state.pop();z.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),ve.BackButton.onClick(z.listen[0]))}},me=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");b.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(o,a,c)=>{var l,p;a!==void 0?(pe.Send({type:o,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(o)):(pe.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;pe.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;pe.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;pe.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=br,r.TabBar=Rr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=yr,r.Loading=kr,r.Sidebar=wr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=Sr,r.MainButton={callback:[],set:o=>{ge.is?ge.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var a;o.page===void 0?(a=o.callback)==null||a.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=o=>{ge.is?ge.BackButton.set(o):(z.state.push(o),z.router(o))}})(b.default||(b.default={}));const Cr=b.default.TabBar,Pr=Qt,pt=b.default.BackButton,Tr=b.default.BackButtonPrev,rr=b.default.BackButtonState,$r=b.default.Notice,Br=b.default.SafeArea,Nr=b.default.Loading,Ir=b.default.Menu,Mr=b.default.SidePanel,Dr=b.default.Scroll,Fr=b.default.AppBar,zr=b.default.Sidebar,Wr=b.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:Vr,MainButton:qr,WebApp:ve,getUser:Hr}=b.default;b.AppBar=Fr,b.BackButton=pt,b.BackButtonPrev=Tr,b.BackButtonState=rr,b.BottomSheet=Pr,b.Header=Ur,b.Loading=Nr,b.MainButton=qr,b.Menu=Ir,b.Modal=Vr,b.Notice=$r,b.SafeArea=Br,b.Scroll=Dr,b.SidePanel=Mr,b.SidePanelController=Wr,b.Sidebar=zr,b.TabBar=Cr,b.WebApp=ve,b.clsx=me,b.getUser=Hr,b.toggleBottomSheet=Lr,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;at.Fragment=c,at.jsx=Mt,at.jsxs=Dt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Xt.version});function Z(r){var n,a,c,l;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:w}}else{r.debug||J.debug;const w={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:w}}}function A(){return fe().ROUTER_PARAMS||J}function de(r){const n=fe();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:I,debug:D}),n()}r.Default=c;function l(x){let j=M=>(Z({page:M}),M);const[I,D]=R.useState(w()||x&&j(x)||A().page);return de({page:M=>{D(M)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function w(){return A().page}r.getPage=w;function _(x){return A().page===x}r.isPage=_;function u(){return A().prev}r.getBack=u;function k(x,j){const[I,D]=R.useState(y()||x||A().module);return de({module:D}),I}r.useModule=k;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function y(){return A().module||""}r.getModule=y;function m(x){return A().module===x}r.isModule=m;function B(x,j){if(typeof x!="function"){const[I,D]=R.useState(!j),[M,N]=R.useState(x||be());return de({tabs:N}),j&&R.useEffect(()=>{D(!0)},[]),[M,I]}else de({tabs:x})}r.useTabs=B;function T(x){let j=M=>(Z({tab:M}),M);const[I,D]=R.useState(be()||x&&j(x)||A().tab);return de({tabs:M=>{D(M)}}),I}r.useTab=T;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function be(){return A().tab}r.getTabs=be;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=R.useState(x||Ae());return de({id:D=>{I(D)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function Me(x){return Number(A().id)===x}r.isId=Me;async function De(x){var j,I,D,M,N,F,L,ue;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((M=(D=re()).tabs)==null||M.call(D,Q)),Y!==void 0&&((F=(N=re()).module)==null||F.call(N,Y)),X!==void 0&&((ue=(L=re()).page)==null||ue.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=De})(ce||(ce={}));let it={};function hr(){const[r,n]=R.useState([]);return it.set=a=>{n([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let n=new Date().getTime();r.key=n,it.set({item:s.jsx(vr,{data:r},n),key:n})}function vr(r){const n=r.data;let[a]=R.useState("show"),[c,l]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){l(!0),it.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:mr,Init:hr};const ge={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const br=()=>{if(location.hostname==="localhost"){let[r,n]=R.useState(!1),[a,c]=R.useState(!1),[l,p]=R.useState("dark"),[w,_]=R.useState(!1),[u,k]=R.useState(!1);ge.is=!0,ge.MainButton.set=n,ge.BackButton.set=c,R.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let m in K[l])document.documentElement.style.setProperty(m,K[l][m]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=m=>{for(let B in K[m])document.documentElement.style.setProperty(B,K[m][B]);p(m),_(!1)},y=()=>{_(!1),k(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var m;a.page===void 0?(m=a.callback)==null||m.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!w),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!w),children:"Closed"})})]})]}):"",u?s.jsx(_r,{setAuthorization:k}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ve.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ve.themeParams.bg_color+"b3"),ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},_r=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_1axqy_1",s:"_s_1axqy_17"},yr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:n}),xr={l:"_l_gfyud_1"},kr=({children:r,className:n})=>s.jsx("div",{className:[xr.l,n].filter(a=>a!==void 0).join(" "),children:r}),he={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Sr=({items:r})=>{const n=c=>{ce.setPage(c)},a=c=>{ve.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},ne={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function Rr({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:w="left"}){const[_,u]=R.useState(!1),[k,h]=R.useState(null);R.useEffect(()=>{let m=document.querySelector(".p_sb");return m||(m=document.createElement("div"),m.className="_p_sb",document.body.appendChild(m)),h(m),()=>{m&&m.parentNode&&m.parentNode.removeChild(m)}},[]);const y=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:ne.o,onClick:()=>u(!1)}),s.jsxs("div",{className:me(ne.m,w==="left"?ne.l:ne.r,_&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[c&&s.jsx("h3",{className:ne.t,children:c}),s.jsxs("svg",{onClick:()=>u(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:n}),k&&nr.createPortal(y,k)]})}let $e=()=>{};const Qt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[w,_]=R.useState(!1);return $e=()=>{_(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Oe==null?void 0:Oe.onClose)==null||u.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${l||""} ${c?"footer":""}`,onClick:u=>u.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ut={h:"_h_1kcus_1",row:"_row_1kcus_20",column:"_column_1kcus_23",badge:"_badge_1kcus_36"},Oe=[],er=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),wr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:w="row"})=>{const[_,u]=R.useState(null),[k,h]=R.useState(l?er(r||[],l):0);return Oe.onClose=()=>{u(null),h(l?er(r||[],l):0)},R.useEffect(()=>{if(!c)return;const y=document.querySelectorAll("[contenteditable]"),m=()=>{const T=document.querySelector("footer");T&&(T.style.display="flex")},B=()=>{const T=document.querySelector("footer");T&&(T.style.display="none")};return y.forEach(T=>{T.addEventListener("focus",B,!0),T.addEventListener("blur",m,!0)}),()=>{y.forEach(T=>{T.removeEventListener("focus",B,!0),T.removeEventListener("blur",m,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${ut.h} ${ut[w]} ${a} `,children:[n,r&&r.map((y,m)=>s.jsxs("div",{"data-active":k===m?"true":"false",onClick:()=>{y.page&&(h(m),p==null||p(y.page)),y.callback&&(y.callback(),h(m)),y.component&&(k===m?$e():(u(y.component),h(m)))},children:[y.icon,y.badge&&s.jsx("div",{className:ut.badge,children:y.badge})]},m))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ft={};function Er({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[w,_]=R.useState(!1);return R.useEffect(()=>{if(!c)return;const u=p===void 0?rr().pop():p,k=()=>{_(!1),setTimeout(()=>{pt(u||!1),a==null||a()},300)};ft[n]={onClose:k,onOpen:()=>{_(!0)}},pt({callback:k});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,w&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,n)=>{var a,c;n?(a=ft[r])==null||a.onOpen():(c=ft[r])==null||c.onClose()},tr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function Or({className:r,children:n,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[w,_]=R.useState(l||!1);R.useEffect(()=>{_(l||!1)},[l]);let u={onScroll:k=>{const{scrollTop:h,scrollHeight:y,clientHeight:m}=k.currentTarget;h+m>=y-c&&!w&&(_(!0),a==null||a())}};return s.jsx("div",{...u,className:me(tr.s,!p&&tr.n,r),children:n})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:n,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,n),children:[r,c&&s.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(b.default.WebApp.BackButton.isVisible=!1,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(b.default.WebApp.BackButton.isVisible=!0,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let n=z.state.pop();z.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),ve.BackButton.onClick(z.listen[0]))}},me=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");b.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,c)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=br,r.TabBar=wr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=yr,r.Loading=kr,r.Sidebar=Rr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=Sr,r.MainButton={callback:[],set:n=>{ge.is?ge.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=n=>{ge.is?ge.BackButton.set(n):(z.state.push(n),z.router(n))}})(b.default||(b.default={}));const Cr=b.default.TabBar,Pr=Qt,pt=b.default.BackButton,Tr=b.default.BackButtonPrev,rr=b.default.BackButtonState,$r=b.default.Notice,Br=b.default.SafeArea,Nr=b.default.Loading,Ir=b.default.Menu,Mr=b.default.SidePanel,Dr=b.default.Scroll,Fr=b.default.AppBar,zr=b.default.Sidebar,Wr=b.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:qr,MainButton:Vr,WebApp:ve,getUser:Hr}=b.default;b.AppBar=Fr,b.BackButton=pt,b.BackButtonPrev=Tr,b.BackButtonState=rr,b.BottomSheet=Pr,b.Header=Ur,b.Loading=Nr,b.MainButton=Vr,b.Menu=Ir,b.Modal=qr,b.Notice=$r,b.SafeArea=Br,b.Scroll=Dr,b.SidePanel=Mr,b.SidePanelController=Wr,b.Sidebar=zr,b.TabBar=Cr,b.WebApp=ve,b.clsx=me,b.getUser=Hr,b.toggleBottomSheet=Lr,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
File without changes
|