@elcrm/telegram 0.0.106 → 0.0.108
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 +2 -2
- package/dist/index.umd.js +17 -17
- package/package.json +1 -1
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::-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{--modal-height: calc( 100dvh - var(--tg-safe-area-inset-top) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 0px) )}._o_1oamq_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_1oamq_1 .3s ease}._o_1oamq_11._x_1oamq_25{animation:_fadeOut_1oamq_1 .3s ease}._p_1oamq_29{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:_slideUp_1oamq_1 .3s ease;background:var(--tg-theme-bg-color)}._p_1oamq_29._x_1oamq_25{animation:_slideDown_1oamq_1 .3s ease}@keyframes _fadeIn_1oamq_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1oamq_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1oamq_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1oamq_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;top:0;z-index:999;max-height: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_18czb_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));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_18czb_3._n_18czb_13{padding:0 7px}._s_18czb_3._n_18czb_13: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::-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_n8lqf_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_n8lqf_1 .3s ease}._o_n8lqf_11._x_n8lqf_25{animation:_fadeOut_n8lqf_1 .3s ease}._p_n8lqf_29{position:relative;width:100%;min-height:var(--tg-modal-height);max-width:500px;max-height:var(--tg-modal-height);overflow:hidden;animation:_slideUp_n8lqf_1 .3s ease;background:var(--tg-theme-bg-color)}._p_n8lqf_29._x_n8lqf_25{animation:_slideDown_n8lqf_1 .3s ease}@keyframes _fadeIn_n8lqf_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_n8lqf_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_n8lqf_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_n8lqf_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_zibtr_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));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_zibtr_3._n_zibtr_13{padding-left:7px;padding-right:7px}._s_zibtr_3._n_zibtr_13: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
|
@@ -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_n8lqf_11", ir = "_x_n8lqf_25", lr = "_p_n8lqf_29", ot = {
|
|
630
630
|
o: sr,
|
|
631
631
|
x: ir,
|
|
632
632
|
p: lr
|
|
@@ -2188,7 +2188,7 @@ function tn({
|
|
|
2188
2188
|
const rn = (r, n) => {
|
|
2189
2189
|
var a, c;
|
|
2190
2190
|
n ? (a = Lt[r]) == null || a.onOpen() : (c = Lt[r]) == null || c.onClose();
|
|
2191
|
-
}, nn = "
|
|
2191
|
+
}, nn = "_s_zibtr_3", on = "_n_zibtr_13", Kt = {
|
|
2192
2192
|
s: nn,
|
|
2193
2193
|
n: on
|
|
2194
2194
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(y,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(y=typeof globalThis<"u"?globalThis:y||self,S((y.elCRM=y.elCRM||{},y.elCRM.components={}),y.React,y.ReactDOM))})(this,function(y,S,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::-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{--modal-height: calc( 100dvh - var(--tg-safe-area-inset-top) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 0px) )}._o_1oamq_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_1oamq_1 .3s ease}._o_1oamq_11._x_1oamq_25{animation:_fadeOut_1oamq_1 .3s ease}._p_1oamq_29{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:_slideUp_1oamq_1 .3s ease;background:var(--tg-theme-bg-color)}._p_1oamq_29._x_1oamq_25{animation:_slideDown_1oamq_1 .3s ease}@keyframes _fadeIn_1oamq_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1oamq_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1oamq_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1oamq_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;top:0;z-index:999;max-height: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_18czb_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));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_18czb_3._n_18czb_13{padding:0 7px}._s_18czb_3._n_18czb_13: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(y,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(y=typeof globalThis<"u"?globalThis:y||self,S((y.elCRM=y.elCRM||{},y.elCRM.components={}),y.React,y.ReactDOM))})(this,function(y,S,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::-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_n8lqf_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_n8lqf_1 .3s ease}._o_n8lqf_11._x_n8lqf_25{animation:_fadeOut_n8lqf_1 .3s ease}._p_n8lqf_29{position:relative;width:100%;min-height:var(--tg-modal-height);max-width:500px;max-height:var(--tg-modal-height);overflow:hidden;animation:_slideUp_n8lqf_1 .3s ease;background:var(--tg-theme-bg-color)}._p_n8lqf_29._x_n8lqf_25{animation:_slideDown_n8lqf_1 .3s ease}@keyframes _fadeIn_n8lqf_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_n8lqf_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_n8lqf_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_n8lqf_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_zibtr_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));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_zibtr_3._n_zibtr_13{padding-left:7px;padding-right:7px}._s_zibtr_3._n_zibtr_13: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:{}},Ae={};/**
|
|
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 Ae;Ut=1;var r=S,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 R(_,f,w){var h,m={},b=null,$=null;w!==void 0&&(b=""+w),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&($=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(m[h]=f[h]);if(_&&_.defaultProps)for(h in f=_.defaultProps,f)m[h]===void 0&&(m[h]=f[h]);return{$$typeof:n,type:_,key:b,ref:$,props:m,_owner:l.current}}return Ae.Fragment=a,Ae.jsx=R,Ae.jsxs=R,Ae}var Ce={};/**
|
|
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=S,
|
|
19
|
-
`+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function We(e,t){if(!e||xe)return"";{var
|
|
18
|
+
*/var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,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"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),M=Symbol.iterator,$e="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[$e];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),s=1;s<t;s++)o[s-1]=arguments[s];Be("error",e,o)}}function Be(e,t,o){{var s=W.ReactDebugCurrentFrame,g=s.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 Ne=!1,Oe=!1,Ie=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===w||e===h||Me||e===$||Ne||Oe||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function I(e){return e.displayName||"Context"}function B(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 w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case b:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,De,Fe;function ze(){}ze.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ze,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:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:De}),groupEnd:F({},e,{value:Fe})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=W.ReactCurrentDispatcher,_e;function oe(e,t,o){{if(_e===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);_e=s&&s[1]||""}return`
|
|
19
|
+
`+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function We(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var s;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.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){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var u=P.stack.split(`
|
|
20
20
|
`),C=s.stack.split(`
|
|
21
|
-
`),k=
|
|
22
|
-
`+
|
|
21
|
+
`),k=u.length-1,E=C.length-1;k>=1&&E>=0&&u[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(u[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||u[k]!==C[E]){var T=`
|
|
22
|
+
`+u[k].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(k>=1&&E>=0);break}}}finally{xe=!1,ye.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 We(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 We(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case w:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return vt(e.render);case m:return ie(e.type,t,o);case b:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function yt(e,t,o,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"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}u=e[d](t,d,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u 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).",s||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Ue)&&(Ue[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var _t=Array.isArray;function ke(e){return _t(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 qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ve(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)),qe(e)}var He=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function wt(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 Rt(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"&&He.current}function jt(e,t){{var o=function(){Je||(Je=!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(){Ke||(Ke=!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,s,g,v,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,s,g){{var v,d={},u=null,C=null;o!==void 0&&(Ve(o),u=""+o),Rt(t)&&(Ve(t.key),u=""+t.key),wt(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 k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,s,He.current,d)}}var Se=W.ReactCurrentOwner,Ge=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ge.setExtraStackFrame(o)}else Ge.setExtraStackFrame(null)}var we;we=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ze(){{if(Se.current){var e=B(Se.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Xe={};function Tt(e){{var t=Ze();if(!t){var
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Xe={};function Tt(e){{var t=Ze();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 Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Xe[o])return;Xe[o]=!0;var s="";e&&e._owner&&e._owner!==Se.current&&(s=" It was passed a child from "+B(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,s),V(null)}}function Qe(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var s=e[o];Re(s)&&Ye(s,t)}else if(Re(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;)Re(d.value)&&Ye(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===f||t.$$typeof===m))o=t.propTypes;else return;if(o){var s=B(t);yt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var g=B(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 s=t[o];if(s!=="children"&&s!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var et={};function tt(e,t,o,s,g,v){{var d=N(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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?u+=C:u+=Ze();var k;e===null?k="null":ke(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+(B(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=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",k,u)}var E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var T=t.children;if(T!==void 0)if(s)if(ke(T)){for(var H=0;H<T.length;H++)Qe(T[H],e);Object.freeze&&Object.freeze(T)}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 Qe(T,e)}if(G.call(t,"key")){var U=B(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!et[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),et[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,
|
|
31
|
+
<%s key={someKey} {...props} />`,Ee,U,Ft,U),et[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return tt(e,t,o,!0)}function It(e,t,o){return tt(e,t,o,!1)}var Mt=It,Dt=Nt;Ce.Fragment=c,Ce.jsx=Mt,Ce.jsxs=Dt}()),Ce}process.env.NODE_ENV==="production"?lt.exports=or():lt.exports=ar();var i=lt.exports;const rt={o:"_o_n8lqf_11",x:"_x_n8lqf_25",p:"_p_n8lqf_29"};let q={};var ct;(r=>{function n({children:_,onCallbackModal:f,nameModal:w}){const[h,m]=S.useState(!1),[b,$]=S.useState(!1);if(q[w].onClose=()=>{y.default.BackButton(!1),$(!0),setTimeout(()=>{m(!1),$(!1),f==null||f(),q.x(w)},300)},S.useEffect(()=>{h?q[w].onClose():(y.default.BackButton({callback:()=>q[w].onClose()}),m(!0))},[]),!!h)return i.jsx("div",{className:me(rt.o,b&&rt.x),children:i.jsx("div",{className:me(rt.p,b&&rt.x),children:i.jsx("div",{children:_})})})}r.Content=n;function a({import_modules:_}){let[f,w]=S.useState([]);return q.x=h=>{w(h?f.filter(m=>m.key!==h):[])},S.useEffect(()=>{_&&(q.i=_)},[]),q.add=(h,m=Date.now())=>{w([...f,{key:m,item:h}])},i.jsx(i.Fragment,{children:f.map(h=>h.item)})}r.Init=a;function c(_,f){q.add(i.jsx(n,{onCallbackModal:q["callback_modal"+f],nameModal:f||"",children:_},String(Date.now())),f)}r.Add=c;function l(_,f=Date.now().toString()){return q[f]={},{Open:m=>{r.Add(i.jsx(_,{...m,onCallbackModal:b=>{var $;($=m.callback)==null||$.call(m,b)},nameModal:f},new Date().getTime()),f)}}}r.Create=l;function p(_){q[_].onClose()}r.Close=p;function R(_,f,w,h){q.i&&(h&&(w.callback=h),q.i(`${_}/modals/${f}.tsx`).then(m=>{m.default.Open(w)}))}r.Open=R})(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 R=p%n.length;l=n[R]+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},fr=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),R=lr(p);return`${n}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},ur=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),R=cr(c),_=Kt(R,p),f=sr(_);if(ot(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=n=>{Ht({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return fr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=ur(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ht({iterations:n,saltLength:a})}})(le||(le={}));var Pe={};/**
|
|
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 Pe;Gt=1;var r=S,
|
|
39
|
+
*/var Gt;function dr(){if(Gt)return Pe;Gt=1;var r=S,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 R(_,f,w){var h,m={},b=null,$=null;w!==void 0&&(b=""+w),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&($=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(m[h]=f[h]);if(_&&_.defaultProps)for(h in f=_.defaultProps,f)m[h]===void 0&&(m[h]=f[h]);return{$$typeof:n,type:_,key:b,ref:$,props:m,_owner:l.current}}return Pe.Fragment=a,Pe.jsx=R,Pe.jsxs=R,Pe}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=S,
|
|
48
|
-
`+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function We(e,t){if(!e||xe)return"";{var
|
|
47
|
+
*/var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,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"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),M=Symbol.iterator,$e="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[$e];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),s=1;s<t;s++)o[s-1]=arguments[s];Be("error",e,o)}}function Be(e,t,o){{var s=W.ReactDebugCurrentFrame,g=s.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 Ne=!1,Oe=!1,Ie=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===w||e===h||Me||e===$||Ne||Oe||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function I(e){return e.displayName||"Context"}function B(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 w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case b:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,De,Fe;function ze(){}ze.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ze,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:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:De}),groupEnd:F({},e,{value:Fe})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=W.ReactCurrentDispatcher,_e;function oe(e,t,o){{if(_e===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);_e=s&&s[1]||""}return`
|
|
48
|
+
`+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function We(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var s;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.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){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var u=P.stack.split(`
|
|
49
49
|
`),C=s.stack.split(`
|
|
50
|
-
`),k=
|
|
51
|
-
`+
|
|
50
|
+
`),k=u.length-1,E=C.length-1;k>=1&&E>=0&&u[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(u[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||u[k]!==C[E]){var T=`
|
|
51
|
+
`+u[k].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(k>=1&&E>=0);break}}}finally{xe=!1,ye.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 We(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 We(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case w:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return vt(e.render);case m:return ie(e.type,t,o);case b:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function yt(e,t,o,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"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}u=e[d](t,d,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u 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).",s||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Ue)&&(Ue[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var _t=Array.isArray;function ke(e){return _t(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 qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ve(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)),qe(e)}var He=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function wt(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 Rt(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"&&He.current}function jt(e,t){{var o=function(){Je||(Je=!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(){Ke||(Ke=!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,s,g,v,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,s,g){{var v,d={},u=null,C=null;o!==void 0&&(Ve(o),u=""+o),Rt(t)&&(Ve(t.key),u=""+t.key),wt(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 k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,s,He.current,d)}}var Se=W.ReactCurrentOwner,Ge=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ge.setExtraStackFrame(o)}else Ge.setExtraStackFrame(null)}var we;we=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ze(){{if(Se.current){var e=B(Se.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Xe={};function Tt(e){{var t=Ze();if(!t){var
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Xe={};function Tt(e){{var t=Ze();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 Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Xe[o])return;Xe[o]=!0;var s="";e&&e._owner&&e._owner!==Se.current&&(s=" It was passed a child from "+B(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,s),V(null)}}function Qe(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var s=e[o];Re(s)&&Ye(s,t)}else if(Re(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;)Re(d.value)&&Ye(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===f||t.$$typeof===m))o=t.propTypes;else return;if(o){var s=B(t);yt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var g=B(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 s=t[o];if(s!=="children"&&s!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var et={};function tt(e,t,o,s,g,v){{var d=N(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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?u+=C:u+=Ze();var k;e===null?k="null":ke(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+(B(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=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",k,u)}var E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var T=t.children;if(T!==void 0)if(s)if(ke(T)){for(var H=0;H<T.length;H++)Qe(T[H],e);Object.freeze&&Object.freeze(T)}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 Qe(T,e)}if(G.call(t,"key")){var U=B(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!et[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),et[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,n){return tt(e,t,n,!0)}function It(e,t,n){return tt(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 hr="0.0.40",Xt={version:hr},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 o,a,c,l;const p=fe();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 fe().ROUTER_PARAMS||J}function de(r){const o=fe();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().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:N=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:N,debug:D}),o()}r.Default=c;function l(x){let j=I=>(Z({page:I}),I);const[N,D]=S.useState(R()||x&&j(x)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=l;function p(x,j=!0,N={}){Z({page:x,...N}),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 u(){return A().prev}r.getBack=u;function w(x,j){const[N,D]=S.useState(m()||x||A().module);return de({module:D}),N}r.useModule=w;function g(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=g;function m(){return A().module||""}r.getModule=m;function b(x){return A().module===x}r.isModule=b;function $(x,j){if(typeof x!="function"){const[N,D]=S.useState(!j),[I,B]=S.useState(x||be());return de({tabs:B}),j&&S.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:x})}r.useTabs=$;function M(x){let j=I=>(Z({tab:I}),I);const[N,D]=S.useState(be()||x&&j(x)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function $e(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=$e;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,N]=S.useState(x||Oe());return de({id:D=>{N(D)}}),j}else de({id:x})}r.useId=O;function Be(x){}r.subId=Be;async function Ne(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ne;function Oe(){return A().id}r.getId=Oe;function Ie(x){return Number(A().id)===x}r.isId=Ie;async function Me(x){var j,N,D,I,B,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&&((N=(j=re()).id)==null||N.call(j,ee)),Q!==void 0&&((I=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=(B=re()).module)==null||F.call(B,Y)),X!==void 0&&((ue=(L=re()).page)==null||ue.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Me})(ce||(ce={}));let it={};function gr(){const[r,o]=S.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?i.jsx(i.Fragment,{}):i.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let o=new Date().getTime();r.key=o,it.set({item:i.jsx(vr,{data:r},o),key:o})}function vr(r){const o=r.data;let[a]=S.useState("show"),[c,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),it.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=i.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=i.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=i.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 i.jsx(i.Fragment,{children:c?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":a,children:[i.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),i.jsx("span",{className:"text",children:o.text})]})})}let pe={Send:mr,Init:gr};const he={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]=S.useState(!1),[a,c]=S.useState(!1),[l,p]=S.useState("dark"),[R,_]=S.useState(!1),[u,w]=S.useState(!1);he.is=!0,he.MainButton.set=o,he.BackButton.set=c,S.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 b in K[l])document.documentElement.style.setProperty(b,K[l][b]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let g=b=>{for(let $ in K[b])document.documentElement.style.setProperty($,K[b][$]);p(b),_(!1)},m=()=>{_(!1),w(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:"debug",children:[a===!1?i.jsx("div",{className:"b",children:"Отмена"}):i.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),i.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),i.jsx(pe.Init,{}),r&&i.jsx("div",{className:"mb",children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?i.jsxs("div",{className:"tm",children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:m,children:"Authorization"})}),i.jsx("li",{})]}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("button",{children:"Thema"}),i.jsxs("ol",{children:[i.jsx("li",{children:i.jsx("button",{onClick:()=>g("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>g("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>g("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",u?i.jsx(yr,{setAuthorization:w}):""]})}else return S.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")},[]),i.jsx(i.Fragment,{children:i.jsx(pe.Init,{})})},yr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:"ta",children:i.jsxs("div",{className:"--body",children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},_r=({className:r,children:o,isScroll:a=!0})=>i.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})=>i.jsx("div",{className:[xr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ge={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 i.jsx("div",{className:ge.m,children:r.map(c=>i.jsx("div",{className:ge.g,children:c.items.map((l,p)=>i.jsxs("div",{className:ge.i,onClick:()=>{l.link&&a(l.link),l.page&&o(l.page),l.callback&&l.callback()},children:[i.jsxs("div",{className:ge.c,children:[i.jsx("span",{className:ge.l,style:{background:l.color},children:l.icon}),l.title,l.count&&i.jsx("span",{className:ge.n,children:l.count})]}),i.jsx("span",{className:ge.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[_,u]=S.useState(!1),[w,g]=S.useState(null);S.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),g(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const m=i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:me(oe.m,R==="left"?oe.l:oe.r,_&&oe.x,l),children:[i.jsxs("div",{className:oe.h,children:[c&&i.jsx("h3",{className:oe.t,children:c}),i.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:[i.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),i.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),i.jsx("div",{className:oe.c,children:p==="list"?i.jsx("ul",{className:oe.u,children:r}):r})]})]});return i.jsxs(i.Fragment,{children:[o&&i.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:o}),w&&or.createPortal(m,w)]})}let Te=()=>{};const Qt=({children:r,title:o,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=S.useState(!1);return Te=()=>{_(!0),setTimeout(()=>{var u;p==null||p(!1),(u=je==null?void 0:je.onClose)==null||u.call(je)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Te,children:i.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:u=>u.stopPropagation(),children:[i.jsxs("div",{className:"footer-menu-header",children:[i.jsx("h3",{children:o}),i.jsx("button",{className:"footer-menu-close-btn",onClick:Te,children:"✕"})]}),r]})})},ut={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},je=[],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[_,u]=S.useState(null),[w,g]=S.useState(l?er(r||[],l):0);return je.onClose=()=>{u(null),g(l?er(r||[],l):0)},S.useEffect(()=>{if(!c)return;const m=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},$=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return m.forEach(M=>{M.addEventListener("focus",$,!0),M.addEventListener("blur",b,!0)}),()=>{m.forEach(M=>{M.removeEventListener("focus",$,!0),M.removeEventListener("blur",b,!0)})}},[]),i.jsxs(i.Fragment,{children:[_,i.jsxs("footer",{className:`${ut.h} ${ut[R]} ${a} `,children:[o,r&&r.map((m,b)=>i.jsxs("div",{"data-active":w===b?"true":"false",onClick:()=>{m.page&&(g(b),p==null||p(m.page)),m.callback&&(m.callback(),g(b)),m.component&&(w===b?Te():(u(m.component),g(b)))},children:[m.icon,m.badge&&i.jsx("div",{className:ut.badge,children:m.badge})]},b))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ft={};function Er({children:r,name:o,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=S.useState(!1);return S.useEffect(()=>{if(!c)return;const u=p===void 0?rr().pop():p,w=()=>{_(!1),setTimeout(()=>{pt(u||!1),a==null||a()},300)};ft[o]={onClose:w,onOpen:()=>{_(!0)}},pt({callback:w});const g=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(g)}},[c]),c?i.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[i.jsx("div",{className:st.n}),r]}):""}const jr=(r,o)=>{var a,c;o?(a=ft[r])==null||a.onOpen():(c=ft[r])==null||c.onClose()},tr={s:"_s_18czb_3",n:"_n_18czb_13"};function Or({className:r,children:o,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,_]=S.useState(l||!1);S.useEffect(()=>{_(l||!1)},[l]);let u={onScroll:w=>{const{scrollTop:g,scrollHeight:m,clientHeight:b}=w.currentTarget;g+b>=m-c&&!R&&(_(!0),a==null||a())}};return i.jsx("div",{...u,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),i.jsxs("div",{className:me(dt.a,l,o),children:[r,c&&i.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.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(" ");y.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=Te,r.SafeArea=_r,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=>{he.is?he.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=>{he.is?he.BackButton.set(o):(z.state.push(o),z.router(o))}})(y.default||(y.default={}));const Cr=y.default.TabBar,Pr=Qt,pt=y.default.BackButton,Tr=y.default.BackButtonPrev,rr=y.default.BackButtonState,$r=y.default.Notice,Br=y.default.SafeArea,Nr=y.default.Loading,Ir=y.default.Menu,Mr=y.default.SidePanel,Dr=y.default.Scroll,Fr=y.default.AppBar,zr=y.default.Sidebar,Wr=y.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:qr,MainButton:Vr,WebApp:ve,getUser:Hr}=y.default;y.AppBar=Fr,y.BackButton=pt,y.BackButtonPrev=Tr,y.BackButtonState=rr,y.BottomSheet=Pr,y.Header=Ur,y.Loading=Nr,y.MainButton=Vr,y.Menu=Ir,y.Modal=qr,y.Notice=$r,y.SafeArea=Br,y.Scroll=Dr,y.SidePanel=Mr,y.SidePanelController=Wr,y.Sidebar=zr,y.TabBar=Cr,y.WebApp=ve,y.clsx=me,y.getUser=Hr,y.toggleBottomSheet=Lr,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,Ee,U,Ft,U),et[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return tt(e,t,o,!0)}function It(e,t,o){return tt(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 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 n,a,c,l;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={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: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 n=ue();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return ue().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:N=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:N,debug:D}),n()}r.Default=c;function l(x){let j=I=>(Z({page:I}),I);const[N,D]=S.useState(R()||x&&j(x)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=l;function p(x,j=!0,N={}){Z({page:x,...N}),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 w(x,j){const[N,D]=S.useState(m()||x||A().module);return de({module:D}),N}r.useModule=w;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function m(){return A().module||""}r.getModule=m;function b(x){return A().module===x}r.isModule=b;function $(x,j){if(typeof x!="function"){const[N,D]=S.useState(!j),[I,B]=S.useState(x||be());return de({tabs:B}),j&&S.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:x})}r.useTabs=$;function M(x){let j=I=>(Z({tab:I}),I);const[N,D]=S.useState(be()||x&&j(x)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function $e(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=$e;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,N]=S.useState(x||Oe());return de({id:D=>{N(D)}}),j}else de({id:x})}r.useId=O;function Be(x){}r.subId=Be;async function Ne(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ne;function Oe(){return A().id}r.getId=Oe;function Ie(x){return Number(A().id)===x}r.isId=Ie;async function Me(x){var j,N,D,I,B,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&&((N=(j=re()).id)==null||N.call(j,ee)),Q!==void 0&&((I=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=(B=re()).module)==null||F.call(B,Y)),X!==void 0&&((fe=(L=re()).page)==null||fe.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Me})(ce||(ce={}));let it={};function hr(){const[r,n]=S.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?i.jsx(i.Fragment,{}):i.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let n=new Date().getTime();r.key=n,it.set({item:i.jsx(vr,{data:r},n),key:n})}function vr(r){const n=r.data;let[a]=S.useState("show"),[c,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),it.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=i.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=i.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=i.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 i.jsx(i.Fragment,{children:c?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[i.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),i.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]=S.useState(!1),[a,c]=S.useState(!1),[l,p]=S.useState("dark"),[R,_]=S.useState(!1),[f,w]=S.useState(!1);ge.is=!0,ge.MainButton.set=n,ge.BackButton.set=c,S.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 b in K[l])document.documentElement.style.setProperty(b,K[l][b]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=b=>{for(let $ in K[b])document.documentElement.style.setProperty($,K[b][$]);p(b),_(!1)},m=()=>{_(!1),w(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:"debug",children:[a===!1?i.jsx("div",{className:"b",children:"Отмена"}):i.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),i.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),i.jsx(pe.Init,{}),r&&i.jsx("div",{className:"mb",children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?i.jsxs("div",{className:"tm",children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:m,children:"Authorization"})}),i.jsx("li",{})]}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("button",{children:"Thema"}),i.jsxs("ol",{children:[i.jsx("li",{children:i.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",f?i.jsx(yr,{setAuthorization:w}):""]})}else return S.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")},[]),i.jsx(i.Fragment,{children:i.jsx(pe.Init,{})})},yr=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return i.jsx("div",{className:"ta",children:i.jsxs("div",{className:"--body",children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},_r=({className:r,children:n,isScroll:a=!0})=>i.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})=>i.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 i.jsx("div",{className:he.m,children:r.map(c=>i.jsx("div",{className:he.g,children:c.items.map((l,p)=>i.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[i.jsxs("div",{className:he.c,children:[i.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&i.jsx("span",{className:he.n,children:l.count})]}),i.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 wr({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[_,f]=S.useState(!1),[w,h]=S.useState(null);S.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),h(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const m=i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:ne.o,onClick:()=>f(!1)}),i.jsxs("div",{className:me(ne.m,R==="left"?ne.l:ne.r,_&&ne.x,l),children:[i.jsxs("div",{className:ne.h,children:[c&&i.jsx("h3",{className:ne.t,children:c}),i.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:[i.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),i.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),i.jsx("div",{className:ne.c,children:p==="list"?i.jsx("ul",{className:ne.u,children:r}):r})]})]});return i.jsxs(i.Fragment,{children:[n&&i.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:n}),w&&nr.createPortal(m,w)]})}let Te=()=>{};const Qt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=S.useState(!1);return Te=()=>{_(!0),setTimeout(()=>{var f;p==null||p(!1),(f=je==null?void 0:je.onClose)==null||f.call(je)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Te,children:i.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[i.jsxs("div",{className:"footer-menu-header",children:[i.jsx("h3",{children:n}),i.jsx("button",{className:"footer-menu-close-btn",onClick:Te,children:"✕"})]}),r]})})},ft={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},je=[],er=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),Rr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[_,f]=S.useState(null),[w,h]=S.useState(l?er(r||[],l):0);return je.onClose=()=>{f(null),h(l?er(r||[],l):0)},S.useEffect(()=>{if(!c)return;const m=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},$=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return m.forEach(M=>{M.addEventListener("focus",$,!0),M.addEventListener("blur",b,!0)}),()=>{m.forEach(M=>{M.removeEventListener("focus",$,!0),M.removeEventListener("blur",b,!0)})}},[]),i.jsxs(i.Fragment,{children:[_,i.jsxs("footer",{className:`${ft.h} ${ft[R]} ${a} `,children:[n,r&&r.map((m,b)=>i.jsxs("div",{"data-active":w===b?"true":"false",onClick:()=>{m.page&&(h(b),p==null||p(m.page)),m.callback&&(m.callback(),h(b)),m.component&&(w===b?Te():(f(m.component),h(b)))},children:[m.icon,m.badge&&i.jsx("div",{className:ft.badge,children:m.badge})]},b))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Er({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=S.useState(!1);return S.useEffect(()=>{if(!c)return;const f=p===void 0?rr().pop():p,w=()=>{_(!1),setTimeout(()=>{pt(f||!1),a==null||a()},300)};ut[n]={onClose:w,onOpen:()=>{_(!0)}},pt({callback:w});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?i.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[i.jsx("div",{className:st.n}),r]}):""}const jr=(r,n)=>{var a,c;n?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},tr={s:"_s_zibtr_3",n:"_n_zibtr_13"};function Or({className:r,children:n,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,_]=S.useState(l||!1);S.useEffect(()=>{_(l||!1)},[l]);let f={onScroll:w=>{const{scrollTop:h,scrollHeight:m,clientHeight:b}=w.currentTarget;h+b>=m-c&&!R&&(_(!0),a==null||a())}};return i.jsx("div",{...f,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),i.jsxs("div",{className:me(dt.a,l,n),children:[r,c&&i.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.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(" ");y.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=Rr,r.BottomSheet=Qt,r.toggleBottomSheet=Te,r.SafeArea=_r,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: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))}})(y.default||(y.default={}));const Cr=y.default.TabBar,Pr=Qt,pt=y.default.BackButton,Tr=y.default.BackButtonPrev,rr=y.default.BackButtonState,$r=y.default.Notice,Br=y.default.SafeArea,Nr=y.default.Loading,Ir=y.default.Menu,Mr=y.default.SidePanel,Dr=y.default.Scroll,Fr=y.default.AppBar,zr=y.default.Sidebar,Wr=y.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:qr,MainButton:Vr,WebApp:ve,getUser:Hr}=y.default;y.AppBar=Fr,y.BackButton=pt,y.BackButtonPrev=Tr,y.BackButtonState=rr,y.BottomSheet=Pr,y.Header=Ur,y.Loading=Nr,y.MainButton=Vr,y.Menu=Ir,y.Modal=qr,y.Notice=$r,y.SafeArea=Br,y.Scroll=Dr,y.SidePanel=Mr,y.SidePanelController=Wr,y.Sidebar=zr,y.TabBar=Cr,y.WebApp=ve,y.clsx=me,y.getUser=Hr,y.toggleBottomSheet=Lr,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|