@elcrm/telegram 0.0.131 → 0.0.133
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 +44 -44
- package/dist/index.umd.js +15 -15
- package/package.json +1 -1
- package/dist/test/Icons.d.ts +0 -32
- package/dist/test/main.d.ts +0 -0
- package/dist/test/pages/Load/index.d.ts +0 -2
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1nuzq_1){--tg-offset-bottom: 60px}._h_1nuzq_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg);margin:var(--tab-bar-margin);padding:var(--tab-bar-padding);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1nuzq_1[data-scale=true]{transform:scale(1.02)}._h_1nuzq_1[data-style=liquid-glass]{--tg-safe-area-inset-bottom: 0px;--tg-content-safe-area-inset-bottom: 3px;--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px;--tab-bar-button-padding: 5px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_1nuzq_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_1nuzq_1._r_1nuzq_54{flex-direction:row}._h_1nuzq_1._c_1nuzq_57{flex-direction:column}._h_1nuzq_1._x_1nuzq_60{opacity:0;visibility:hidden}._h_1nuzq_1 ._b_1nuzq_64{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_1nuzq_1 ._b_1nuzq_64 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_1nuzq_1 ._b_1nuzq_64 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_1nuzq_1 ._b_1nuzq_64 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1nuzq_1 ._b_1nuzq_64 span{padding-top:2px;font-size:10px;font-weight:400}._h_1nuzq_1 ._b_1nuzq_64 ._a_1nuzq_100{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_1nuzq_1{to{stroke-dashoffset:0}}._h_1nuzq_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_1nuzq_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
1
|
+
@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_xpmv7_1){--tg-offset-bottom: 60px}._h_xpmv7_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);--tab-bar-padding: 0 0 calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 0;z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg);margin:var(--tab-bar-margin);padding:var(--tab-bar-padding)}._h_xpmv7_1[data-scale=true]{transform:scale(1.02)}._h_xpmv7_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px 10px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 10px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xpmv7_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xpmv7_1._r_xpmv7_61{flex-direction:row}._h_xpmv7_1._c_xpmv7_64{flex-direction:column}._h_xpmv7_1._x_xpmv7_67{opacity:0;visibility:hidden}._h_xpmv7_1 ._b_xpmv7_71{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xpmv7_1 ._b_xpmv7_71 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xpmv7_1 ._b_xpmv7_71 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xpmv7_1 ._b_xpmv7_71 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xpmv7_1 ._b_xpmv7_71 span{padding-top:2px;font-size:10px;font-weight:400}._h_xpmv7_1 ._b_xpmv7_71 ._a_xpmv7_107{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xpmv7_1{to{stroke-dashoffset:0}}._h_xpmv7_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xpmv7_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
package/dist/index.es.js
CHANGED
|
@@ -275,7 +275,7 @@ function hr() {
|
|
|
275
275
|
} finally {
|
|
276
276
|
le = !1, ie.current = y, ht(), Error.prepareStackTrace = b;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var Y = e ? e.displayName || e.name : "", B = Y ? X(Y) : "";
|
|
279
279
|
return typeof e == "function" && Z.set(e, B), B;
|
|
280
280
|
}
|
|
281
281
|
function gt(e, n, a) {
|
|
@@ -361,11 +361,11 @@ function hr() {
|
|
|
361
361
|
function We(e) {
|
|
362
362
|
return "" + e;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ye(e) {
|
|
365
365
|
if (St(e))
|
|
366
366
|
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(e)), We(e);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var qe = N.ReactCurrentOwner, Et = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
@@ -388,7 +388,7 @@ function hr() {
|
|
|
388
388
|
return e.key !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function jt(e, n) {
|
|
391
|
-
typeof e.ref == "string" &&
|
|
391
|
+
typeof e.ref == "string" && qe.current;
|
|
392
392
|
}
|
|
393
393
|
function kt(e, n) {
|
|
394
394
|
{
|
|
@@ -444,7 +444,7 @@ function hr() {
|
|
|
444
444
|
function Pt(e, n, a, u, b) {
|
|
445
445
|
{
|
|
446
446
|
var y, h = {}, v = null, k = null;
|
|
447
|
-
a !== void 0 && (
|
|
447
|
+
a !== void 0 && (Ye(a), v = "" + a), At(n) && (Ye(n.key), v = "" + n.key), xt(n) && (k = n.ref, jt(n, b));
|
|
448
448
|
for (y in n)
|
|
449
449
|
J.call(n, y) && !Et.hasOwnProperty(y) && (h[y] = n[y]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
@@ -456,7 +456,7 @@ function hr() {
|
|
|
456
456
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
457
|
v && kt(h, E), k && Ot(h, E);
|
|
458
458
|
}
|
|
459
|
-
return wt(e, v, k, b, u,
|
|
459
|
+
return wt(e, v, k, b, u, qe.current, h);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
var fe = N.ReactCurrentOwner, Je = N.ReactDebugCurrentFrame;
|
|
@@ -589,8 +589,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
589
589
|
if (w !== void 0)
|
|
590
590
|
if (u)
|
|
591
591
|
if (ue(w)) {
|
|
592
|
-
for (var
|
|
593
|
-
Xe(w[
|
|
592
|
+
for (var Y = 0; Y < w.length; Y++)
|
|
593
|
+
Xe(w[Y], e);
|
|
594
594
|
Object.freeze && Object.freeze(w);
|
|
595
595
|
} else
|
|
596
596
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -632,8 +632,8 @@ const mr = "_o_1apbm_11", gr = "_x_1apbm_24", br = "_p_1apbm_28", yr = "_m_1apbm
|
|
|
632
632
|
p: br,
|
|
633
633
|
m: yr
|
|
634
634
|
};
|
|
635
|
-
let
|
|
636
|
-
var
|
|
635
|
+
let q = {};
|
|
636
|
+
var Yt;
|
|
637
637
|
((t) => {
|
|
638
638
|
function r({
|
|
639
639
|
children: p,
|
|
@@ -642,13 +642,13 @@ var qt;
|
|
|
642
642
|
offsetTop: m
|
|
643
643
|
}) {
|
|
644
644
|
const [_, R] = C(!1), [j, T] = C(!1);
|
|
645
|
-
if (
|
|
645
|
+
if (q[g].onClose = () => {
|
|
646
646
|
P.BackButton(!1), T(!0), setTimeout(() => {
|
|
647
|
-
R(!1), T(!1), f == null || f(),
|
|
647
|
+
R(!1), T(!1), f == null || f(), q.x(g);
|
|
648
648
|
}, 300);
|
|
649
649
|
}, F(() => {
|
|
650
|
-
_ ?
|
|
651
|
-
callback: () =>
|
|
650
|
+
_ ? q[g].onClose() : (P.BackButton({
|
|
651
|
+
callback: () => q[g].onClose()
|
|
652
652
|
}), R(!0));
|
|
653
653
|
}, []), !!_)
|
|
654
654
|
return /* @__PURE__ */ l.jsx("div", { className: ye(Ae.o, j && Ae.x), children: /* @__PURE__ */ l.jsx(
|
|
@@ -668,21 +668,21 @@ var qt;
|
|
|
668
668
|
import_modules: p
|
|
669
669
|
}) {
|
|
670
670
|
let [f, g] = C([]);
|
|
671
|
-
return
|
|
671
|
+
return q.x = (m) => {
|
|
672
672
|
g(m ? f.filter((_) => _.key !== m) : []);
|
|
673
673
|
}, F(() => {
|
|
674
|
-
p && (
|
|
675
|
-
}, []),
|
|
674
|
+
p && (q.i = p);
|
|
675
|
+
}, []), q.add = (m, _ = Date.now()) => {
|
|
676
676
|
g([...f, { key: _, item: m }]);
|
|
677
677
|
}, /* @__PURE__ */ l.jsx(l.Fragment, { children: f.map((m) => m.item) });
|
|
678
678
|
}
|
|
679
679
|
t.Init = o;
|
|
680
680
|
function s(p, f, g) {
|
|
681
|
-
|
|
681
|
+
q.add(
|
|
682
682
|
/* @__PURE__ */ l.jsx(
|
|
683
683
|
r,
|
|
684
684
|
{
|
|
685
|
-
onCallbackModal:
|
|
685
|
+
onCallbackModal: q["callback_modal" + f],
|
|
686
686
|
nameModal: f || "",
|
|
687
687
|
offsetTop: g,
|
|
688
688
|
children: p
|
|
@@ -694,7 +694,7 @@ var qt;
|
|
|
694
694
|
}
|
|
695
695
|
t.Add = s;
|
|
696
696
|
function i(p, f = Date.now().toString(), g) {
|
|
697
|
-
return
|
|
697
|
+
return q[f] = {}, {
|
|
698
698
|
Open: (R) => {
|
|
699
699
|
t.Add(
|
|
700
700
|
/* @__PURE__ */ l.jsx(
|
|
@@ -717,17 +717,17 @@ var qt;
|
|
|
717
717
|
}
|
|
718
718
|
t.Create = i;
|
|
719
719
|
function c(p) {
|
|
720
|
-
|
|
720
|
+
q[p].onClose();
|
|
721
721
|
}
|
|
722
722
|
t.Close = c;
|
|
723
723
|
function d(p, f, g, m) {
|
|
724
|
-
|
|
724
|
+
q.i && (m && (g.callback = m), q.i(`${p}/modals/${f}.tsx`).then((_) => {
|
|
725
725
|
var R;
|
|
726
726
|
_.Open ? _.Open(g) : (R = _.default) != null && R.Open ? _.default.Open(g) : _.default && _.default(g);
|
|
727
727
|
}));
|
|
728
728
|
}
|
|
729
729
|
t.Open = d;
|
|
730
|
-
})(
|
|
730
|
+
})(Yt || (Yt = {}));
|
|
731
731
|
function or() {
|
|
732
732
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
733
733
|
}
|
|
@@ -1110,7 +1110,7 @@ function kr() {
|
|
|
1110
1110
|
} finally {
|
|
1111
1111
|
le = !1, ie.current = y, ht(), Error.prepareStackTrace = b;
|
|
1112
1112
|
}
|
|
1113
|
-
var
|
|
1113
|
+
var Y = e ? e.displayName || e.name : "", B = Y ? X(Y) : "";
|
|
1114
1114
|
return typeof e == "function" && Z.set(e, B), B;
|
|
1115
1115
|
}
|
|
1116
1116
|
function gt(e, n, a) {
|
|
@@ -1196,11 +1196,11 @@ function kr() {
|
|
|
1196
1196
|
function We(e) {
|
|
1197
1197
|
return "" + e;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Ye(e) {
|
|
1200
1200
|
if (St(e))
|
|
1201
1201
|
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(e)), We(e);
|
|
1202
1202
|
}
|
|
1203
|
-
var
|
|
1203
|
+
var qe = N.ReactCurrentOwner, Et = {
|
|
1204
1204
|
key: !0,
|
|
1205
1205
|
ref: !0,
|
|
1206
1206
|
__self: !0,
|
|
@@ -1223,7 +1223,7 @@ function kr() {
|
|
|
1223
1223
|
return e.key !== void 0;
|
|
1224
1224
|
}
|
|
1225
1225
|
function jt(e, n) {
|
|
1226
|
-
typeof e.ref == "string" &&
|
|
1226
|
+
typeof e.ref == "string" && qe.current;
|
|
1227
1227
|
}
|
|
1228
1228
|
function kt(e, n) {
|
|
1229
1229
|
{
|
|
@@ -1279,7 +1279,7 @@ function kr() {
|
|
|
1279
1279
|
function Pt(e, n, a, u, b) {
|
|
1280
1280
|
{
|
|
1281
1281
|
var y, h = {}, v = null, k = null;
|
|
1282
|
-
a !== void 0 && (
|
|
1282
|
+
a !== void 0 && (Ye(a), v = "" + a), At(n) && (Ye(n.key), v = "" + n.key), xt(n) && (k = n.ref, jt(n));
|
|
1283
1283
|
for (y in n)
|
|
1284
1284
|
J.call(n, y) && !Et.hasOwnProperty(y) && (h[y] = n[y]);
|
|
1285
1285
|
if (e && e.defaultProps) {
|
|
@@ -1291,7 +1291,7 @@ function kr() {
|
|
|
1291
1291
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1292
1292
|
v && kt(h, E), k && Ot(h, E);
|
|
1293
1293
|
}
|
|
1294
|
-
return wt(e, v, k, b, u,
|
|
1294
|
+
return wt(e, v, k, b, u, qe.current, h);
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
var fe = N.ReactCurrentOwner, Je = N.ReactDebugCurrentFrame;
|
|
@@ -1424,8 +1424,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
1424
1424
|
if (w !== void 0)
|
|
1425
1425
|
if (u)
|
|
1426
1426
|
if (ue(w)) {
|
|
1427
|
-
for (var
|
|
1428
|
-
Xe(w[
|
|
1427
|
+
for (var Y = 0; Y < w.length; Y++)
|
|
1428
|
+
Xe(w[Y], e);
|
|
1429
1429
|
Object.freeze && Object.freeze(w);
|
|
1430
1430
|
} else
|
|
1431
1431
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1553,7 +1553,7 @@ function Zt(t, r) {
|
|
|
1553
1553
|
return i;
|
|
1554
1554
|
return null;
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function qt(t) {
|
|
1557
1557
|
const {
|
|
1558
1558
|
basePath: r = ".",
|
|
1559
1559
|
devExtensions: o = [".tsx", ".ts", ".jsx", ".js"],
|
|
@@ -1608,7 +1608,7 @@ function Qt(t = ".", r, o) {
|
|
|
1608
1608
|
basePath: t,
|
|
1609
1609
|
modules: r,
|
|
1610
1610
|
pages: o
|
|
1611
|
-
}) :
|
|
1611
|
+
}) : qt({ basePath: t });
|
|
1612
1612
|
}
|
|
1613
1613
|
function Pr() {
|
|
1614
1614
|
var t;
|
|
@@ -1762,9 +1762,9 @@ function Wr(t) {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
}), [t]);
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function Yr(t) {
|
|
1766
1766
|
}
|
|
1767
|
-
async function
|
|
1767
|
+
async function qr(t, r = !0) {
|
|
1768
1768
|
G({ id: t }), sessionStorage.setItem(
|
|
1769
1769
|
A().STORAGE,
|
|
1770
1770
|
se.enCode(A())
|
|
@@ -1798,11 +1798,11 @@ const Oe = {
|
|
|
1798
1798
|
// Поддержка единого glob объекта для упрощения
|
|
1799
1799
|
}) {
|
|
1800
1800
|
let g = c, m = d, _ = p;
|
|
1801
|
-
f ? (m = typeof d == "object" ? d : f, _ = typeof p == "object" ? p : f) : (m = m || f, _ = _ || f), !g && (m || _) ? !f && (typeof m == "string" || typeof _ == "string") ? g =
|
|
1801
|
+
f ? (m = typeof d == "object" ? d : f, _ = typeof p == "object" ? p : f) : (m = m || f, _ = _ || f), !g && (m || _) ? !f && (typeof m == "string" || typeof _ == "string") ? g = qt({ basePath: i }) : g = Qt(
|
|
1802
1802
|
i,
|
|
1803
1803
|
m,
|
|
1804
1804
|
_
|
|
1805
|
-
) : g || (g =
|
|
1805
|
+
) : g || (g = qt({ basePath: i })), G({
|
|
1806
1806
|
page: r,
|
|
1807
1807
|
module: t,
|
|
1808
1808
|
auth: o,
|
|
@@ -1833,8 +1833,8 @@ const Oe = {
|
|
|
1833
1833
|
isTabs: Fr,
|
|
1834
1834
|
// Методы ID
|
|
1835
1835
|
useId: Wr,
|
|
1836
|
-
subId:
|
|
1837
|
-
setId:
|
|
1836
|
+
subId: Yr,
|
|
1837
|
+
setId: qr,
|
|
1838
1838
|
getId: fr,
|
|
1839
1839
|
isId: zr,
|
|
1840
1840
|
// Навигация
|
|
@@ -2288,16 +2288,16 @@ const dr = ({
|
|
|
2288
2288
|
)
|
|
2289
2289
|
}
|
|
2290
2290
|
);
|
|
2291
|
-
}, Bn = "
|
|
2291
|
+
}, Bn = "_h_xpmv7_1", Ln = "_r_xpmv7_61", Dn = "_c_xpmv7_64", Un = "_x_xpmv7_67", Fn = "_b_xpmv7_71", Wn = "_a_xpmv7_107", Yn = "_draw_xpmv7_1", ke = {
|
|
2292
2292
|
h: Bn,
|
|
2293
2293
|
r: Ln,
|
|
2294
2294
|
c: Dn,
|
|
2295
2295
|
x: Un,
|
|
2296
2296
|
b: Fn,
|
|
2297
2297
|
a: Wn,
|
|
2298
|
-
draw:
|
|
2299
|
-
},
|
|
2300
|
-
b:
|
|
2298
|
+
draw: Yn
|
|
2299
|
+
}, qn = "_b_r6m8n_1", zn = {
|
|
2300
|
+
b: qn
|
|
2301
2301
|
}, Vn = ({ className: t, value: r }) => /* @__PURE__ */ l.jsx(
|
|
2302
2302
|
"div",
|
|
2303
2303
|
{
|
|
@@ -2560,7 +2560,7 @@ var P;
|
|
|
2560
2560
|
var s;
|
|
2561
2561
|
ge.Send({ type: "warning", text: o }), (s = t.WebApp.HapticFeedback) == null || s.notificationOccurred("warning");
|
|
2562
2562
|
}
|
|
2563
|
-
}, t.Header = fn, t.TabBar = Jn, t.BottomSheet = dr, t.toggleBottomSheet = nt, t.SafeArea = hn, t.Loading = bn, t.Sidebar = Mn, t.SidePanel = Qn, t.AppBar = io, t.SideBarController = In, t.SidePanelController = eo, t.Scroll = no, t.Modal =
|
|
2563
|
+
}, t.Header = fn, t.TabBar = Jn, t.BottomSheet = dr, t.toggleBottomSheet = nt, t.SafeArea = hn, t.Loading = bn, t.Sidebar = Mn, t.SidePanel = Qn, t.AppBar = io, t.SideBarController = In, t.SidePanelController = eo, t.Scroll = no, t.Modal = Yt, t.Menu = jn, t.MainButton = {
|
|
2564
2564
|
callback: [],
|
|
2565
2565
|
set: (o) => {
|
|
2566
2566
|
ae.is ? ae.MainButton.set(o) : (t.WebApp.MainButton.callback.forEach((s) => {
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Vt=document.createElement("style");Vt.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1nuzq_1){--tg-offset-bottom: 60px}._h_1nuzq_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg);margin:var(--tab-bar-margin);padding:var(--tab-bar-padding);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1nuzq_1[data-scale=true]{transform:scale(1.02)}._h_1nuzq_1[data-style=liquid-glass]{--tg-safe-area-inset-bottom: 0px;--tg-content-safe-area-inset-bottom: 3px;--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px;--tab-bar-button-padding: 5px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_1nuzq_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_1nuzq_1._r_1nuzq_54{flex-direction:row}._h_1nuzq_1._c_1nuzq_57{flex-direction:column}._h_1nuzq_1._x_1nuzq_60{opacity:0;visibility:hidden}._h_1nuzq_1 ._b_1nuzq_64{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_1nuzq_1 ._b_1nuzq_64 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_1nuzq_1 ._b_1nuzq_64 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_1nuzq_1 ._b_1nuzq_64 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1nuzq_1 ._b_1nuzq_64 span{padding-top:2px;font-size:10px;font-weight:400}._h_1nuzq_1 ._b_1nuzq_64 ._a_1nuzq_100{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_1nuzq_1{to{stroke-dashoffset:0}}._h_1nuzq_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_1nuzq_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
1
|
+
(function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Vt=document.createElement("style");Vt.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_xpmv7_1){--tg-offset-bottom: 60px}._h_xpmv7_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);--tab-bar-padding: 0 0 calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 0;z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg);margin:var(--tab-bar-margin);padding:var(--tab-bar-padding)}._h_xpmv7_1[data-scale=true]{transform:scale(1.02)}._h_xpmv7_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px 10px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 10px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xpmv7_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xpmv7_1._r_xpmv7_61{flex-direction:row}._h_xpmv7_1._c_xpmv7_64{flex-direction:column}._h_xpmv7_1._x_xpmv7_67{opacity:0;visibility:hidden}._h_xpmv7_1 ._b_xpmv7_71{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xpmv7_1 ._b_xpmv7_71 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xpmv7_1 ._b_xpmv7_71 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xpmv7_1 ._b_xpmv7_71 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xpmv7_1 ._b_xpmv7_71 span{padding-top:2px;font-size:10px;font-weight:400}._h_xpmv7_1 ._b_xpmv7_71 ._a_xpmv7_107{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xpmv7_1{to{stroke-dashoffset:0}}._h_xpmv7_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xpmv7_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Vt);var lt={exports:{}},Re={};/**
|
|
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 Ht;function gr(){if(Ht)return Re;Ht=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,
|
|
10
|
+
*/var Ht;function gr(){if(Ht)return Re;Ht=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var m,x={},k=null,A=null;_!==void 0&&(k=""+_),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=f.ref);for(m in f)i.call(f,m)&&!l.hasOwnProperty(m)&&(x[m]=f[m]);if(p&&p.defaultProps)for(m in f=p.defaultProps,f)x[m]===void 0&&(x[m]=f[m]);return{$$typeof:r,type:p,key:k,ref:A,props:x,_owner:s.current}}return Re.Fragment=n,Re.jsx=d,Re.jsxs=d,Re}var Ae={};/**
|
|
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 Jt;function hr(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),
|
|
19
|
-
`+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function
|
|
18
|
+
*/var Jt;function hr(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=z.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,B=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===_||e===m||ht||e===A||Ee||je||B||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function bt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var I=Object.assign,Y=0,Te,Me,Ne,ze,Be,Ie,Le;function De(){}De.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,ze=console.error,Be=console.group,Ie=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function yt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Te}),info:I({},e,{value:Me}),warn:I({},e,{value:Ne}),error:I({},e,{value:ze}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=z.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
|
|
19
|
+
`+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,vt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
|
|
20
20
|
`),O=u.stack.split(`
|
|
21
21
|
`),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
|
|
22
|
-
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var
|
|
22
|
+
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function kt(e,o,a){return Ue(e,!1)}function wt(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,wt(e));if(typeof e=="string")return Z(e);switch(e){case _:return Z("Suspense");case m:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=z.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function St(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var Et=Array.isArray;function pe(e){return Et(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(Rt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),qe(e)}var Ve=z.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function $t(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Pt(e,o){typeof e.ref=="string"&&Ve.current}function Ct(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Nt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),$t(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&(O=o.ref,Pt(o,b));for(y in o)V.call(o,y)&&!At.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(h,E),O&&Tt(h,E)}return Mt(e,g,O,b,u,Ve.current,h)}}var ge=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function zt(e){return""}var Xe={};function Bt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),
|
|
26
|
+
Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];me(u)&&Ze(u,o)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)me(h.value)&&Ze(h.value,o)}}}function It(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);St(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=_t(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" 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 O=zt();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Nt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),_e=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+_e]){var qt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`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} />`,
|
|
31
|
+
<%s key={someKey} {...props} />`,_e,L,qt,L),et[L+_e]=!0}}return e===i?Lt(E):It(E),E}}function Dt(e,o,a){return tt(e,o,a,!0)}function Ut(e,o,a){return tt(e,o,a,!1)}var Ft=Ut,Wt=Dt;Ae.Fragment=i,Ae.jsx=Ft,Ae.jsxs=Wt}()),Ae}process.env.NODE_ENV==="production"?lt.exports=gr():lt.exports=hr();var c=lt.exports;const be={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var ct;(t=>{function r({children:p,onCallbackModal:f,nameModal:_,offsetTop:m}){const[x,k]=w.useState(!1),[A,C]=w.useState(!1);if(U[_].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),U.x(_)},300)},w.useEffect(()=>{x?U[_].onClose():(v.default.BackButton({callback:()=>U[_].onClose()}),k(!0))},[]),!!x)return c.jsx("div",{className:ae(be.o,A&&be.x),children:c.jsx("div",{className:ae(be.p,A&&be.x,m?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,_]=w.useState([]);return U.x=m=>{_(m?f.filter(x=>x.key!==m):[])},w.useEffect(()=>{p&&(U.i=p)},[]),U.add=(m,x=Date.now())=>{_([...f,{key:x,item:m}])},c.jsx(c.Fragment,{children:f.map(m=>m.item)})}t.Init=n;function i(p,f,_){U.add(c.jsx(r,{onCallbackModal:U["callback_modal"+f],nameModal:f||"",offsetTop:_,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),_){return U[f]={},{Open:k=>{t.Add(c.jsx(p,{...k,onCallbackModal:A=>{var C;(C=k.callback)==null||C.call(k,A)},nameModal:f},new Date().getTime()),f,_===void 0?!0:_)}}}t.Create=s;function l(p){U[p].onClose()}t.Close=l;function d(p,f,_,m){U.i&&(m&&(_.callback=m),U.i(`${p}/modals/${f}.tsx`).then(x=>{var k;x.Open?x.Open(_):(k=x.default)!=null&&k.Open?x.default.Open(_):x.default&&x.default(_)}))}t.Open=d})(ct||(ct={}));function Kt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Gt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Xt(t){const r=Kt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Gt,...t}}function rt(){return Kt().CRYPTO_PARAMS||Gt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let n="";for(let i=0;i<64;i++){const s=(r^i*197)&255;n+=s.toString(16).padStart(2,"0")}return n},Zt=(t,r)=>{let n=t+r;for(let s=0;s<rt().iterations;s++)n=ot(n);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(n.substring(s*2,s*2+2),16);return i},Qt=(t,r)=>{const n=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)n[l]=t[l]^i[l];return n},mr=t=>new TextEncoder().encode(t),_r=t=>new TextDecoder().decode(t),br=t=>{let r="";for(let n=0;n<t.length;n+=8192){const i=t.slice(n,Math.min(n+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},yr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),n=ot(t+r).substring(0,8),i=Zt(rt().key,r),s=mr(t),l=Qt(s,i),d=br(l);return`${r}.${d}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=r[0],i=r[1],s=r[2],l=Zt(rt().key,n),d=vr(i),p=Qt(d,l),f=_r(p);if(ot(f+n).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var re;(t=>{t.setKey=r=>{Xt({key:r})},t.enCode=r=>{try{const n=JSON.stringify(r);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const n=xr(r);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(r,n)=>{Xt({iterations:r,saltLength:n})}})(re||(re={}));var Oe={};/**
|
|
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 er;function kr(){if(er)return Oe;er=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,
|
|
39
|
+
*/var er;function kr(){if(er)return Oe;er=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var m,x={},k=null,A=null;_!==void 0&&(k=""+_),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=f.ref);for(m in f)i.call(f,m)&&!l.hasOwnProperty(m)&&(x[m]=f[m]);if(p&&p.defaultProps)for(m in f=p.defaultProps,f)x[m]===void 0&&(x[m]=f[m]);return{$$typeof:r,type:p,key:k,ref:A,props:x,_owner:s.current}}return Oe.Fragment=n,Oe.jsx=d,Oe.jsxs=d,Oe}var nt={};/**
|
|
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 tr;function wr(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),
|
|
48
|
-
`+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function
|
|
47
|
+
*/var tr;function wr(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=z.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,B=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===_||e===m||ht||e===A||Ee||je||B||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function bt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var I=Object.assign,Y=0,Te,Me,Ne,ze,Be,Ie,Le;function De(){}De.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,ze=console.error,Be=console.group,Ie=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function yt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Te}),info:I({},e,{value:Me}),warn:I({},e,{value:Ne}),error:I({},e,{value:ze}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=z.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
|
|
48
|
+
`+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,vt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
|
|
49
49
|
`),O=u.stack.split(`
|
|
50
50
|
`),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
|
|
51
|
-
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var
|
|
51
|
+
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function kt(e,o,a){return Ue(e,!1)}function wt(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,wt(e));if(typeof e=="string")return Z(e);switch(e){case _:return Z("Suspense");case m:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=z.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function St(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var Et=Array.isArray;function pe(e){return Et(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(Rt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),qe(e)}var Ve=z.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function $t(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Pt(e,o){typeof e.ref=="string"&&Ve.current}function Ct(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Nt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),$t(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&(O=o.ref,Pt(o));for(y in o)V.call(o,y)&&!At.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(h,E),O&&Tt(h,E)}return Mt(e,g,O,b,u,Ve.current,h)}}var ge=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function zt(e){return""}var Xe={};function Bt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),
|
|
55
|
+
Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];me(u)&&Ze(u,o)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)me(h.value)&&Ze(h.value,o)}}}function It(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);St(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=_t(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" 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 O=zt();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Nt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),_e=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+_e]){var qt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`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} />`,me,q,Wt,q),et[q+me]=!0}}return e===i?qt(E):It(E),E}}function Lt(e,o,a){return tt(e,o,a,!0)}function Dt(e,o,a){return tt(e,o,a,!1)}var Ut=Dt,Ft=Lt;nt.Fragment=i,nt.jsx=Ut,nt.jsxs=Ft}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",rr={version:Sr},K={},L={module:"",v:rr.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:rr.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||L.debug;const d={page:L==null?void 0:L.page,module:L==null?void 0:L.module,tab:L==null?void 0:L.tab,id:L==null?void 0:L.id};l.ROUTER_PARAMS={...L,...t,prev:d}}}function R(){return H().ROUTER_PARAMS||L}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...L}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function W(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||L.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:L.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function or(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function ut(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=or(s,n);if(d)return d()}if(i){const d=or(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function nr(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):ut({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?R().page:R().auth,module:R().module});return!0}function ar(){return R().page}function ir(){return R().module||""}function ft(){return R().tab}function sr(){return R().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ar()||t&&r(t)||R().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().page(t)}function Or(t){return R().page===t}function $r(){return R().prev}function Pr(t,r){const[n,i]=w.useState(ir()||t||R().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=W();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().module(t)}function Tr(t){return R().module===t}function zr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||ft());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Mr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(ft()||t&&r(t)||R().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}async function Nr(t,r=!0){J({tab:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&(W().tabs&&W().tabs(t))}function Br(t){return R().tab===t}function Ir(t){if(typeof t!="function"){const[r,n]=w.useState(t||sr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=W();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function qr(t){}async function Lr(t,r=!0){J({id:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().id(t)}function Dr(t){return Number(R().id)===t}async function Ur(t){var r,n,i,s,l,d,p,f;const{page:m,module:_,tab:x,id:k}=t;m!==void 0&&(K.page=m),_!==void 0&&(K.module=_),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=W()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=W()).tabs)==null||s.call(i,x)),_!==void 0&&((d=(l=W()).module)==null||d.call(l,_)),m!==void 0&&((f=(p=W()).page)==null||f.call(p,m)),sessionStorage.setItem(R().STORAGE,re.enCode(R()))}const ve={Reset(){K.id=0,K.tab="",K.page=R().page,K.module=R().module},Default({module:t=R().module,page:r=R().page,auth:n=R().auth,debug:i=R().debug,dir:s=R().dir||".",importModules:l,modules:d,pages:p,glob:f}){let m=l,_=d,x=p;f?(_=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(_=_||f,x=x||f),!m&&(_||x)?!f&&(typeof _=="string"||typeof x=="string")?m=ut({basePath:s}):m=nr(s,_,x):m||(m=ut({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:m}),jr()},createImportModules:nr,getImportModules:()=>R().importModules,usePage:Rr,setPage:Ar,getPage:ar,isPage:Or,getBack:$r,useModule:Pr,setModule:Cr,getModule:ir,isModule:Tr,useTabs:zr,useTab:Mr,setTabs:Nr,getTabs:ft,isTabs:Br,useId:Ir,subId:qr,setId:Lr,getId:sr,isId:Dr,navigate:Ur},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Fr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function Wr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.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":l=c.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":l=c.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:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:Wr,Init:Fr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let z={};z.dark={"--tg-color-scheme":"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"},z.light={"--tg-color-scheme":"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"},z.users={"--tg-color-scheme":"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 Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,m]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;z[s]["--tg-theme-bg-color-alpha"]=z[s]["--tg-theme-bg-color"]+"b3",z[s]["--tg-theme-secondary-bg-color-alpha"]=z[s]["--tg-theme-secondary-bg-color"]+"d3",z[s]["--tg-theme-bg-color-alpha-25"]=z[s]["--tg-theme-bg-color"]+"40",z[s]["--tg-theme-secondary-bg-color-alpha-25"]=z[s]["--tg-theme-secondary-bg-color"]+"40";for(let A in z[s])document.documentElement.style.setProperty(A,z[s][A]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=k=>{for(let A in z[k])document.documentElement.style.setProperty(A,z[k][A]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),m(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>_("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:m}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},lr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[lr.p,n&&lr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={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"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={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"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,m]=w.useState(!1),[_,x]=w.useState(null);w.useEffect(()=>{let A=document.querySelector(".p_sb");return A||(A=document.createElement("div"),A.className="_p_sb",document.body.appendChild(A)),x(A),it[p]=C=>m(C),()=>{A&&A.parentNode&&A.parentNode.removeChild(A)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>m(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>m(!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:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>m(!0),className:"bage","data-count":n,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let $e=()=>{};const cr=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return $e=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:$e,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),t]})})},ye={h:"_h_1nuzq_1",r:"_r_1nuzq_54",c:"_c_1nuzq_57",x:"_x_1nuzq_60",b:"_b_1nuzq_64",a:"_a_1nuzq_100",draw:"_draw_1nuzq_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],ur=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[m,_]=w.useState(null),[x,k]=w.useState(l?ur(t||[],l):0);xe.onClose=()=>{_(null),k(l?ur(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const B=document.querySelector("footer");B&&B.classList.remove(ye.x)},je=()=>{const B=document.querySelector("footer");B&&B.classList.add(ye.x)};return Se.forEach(B=>{B.addEventListener("focus",je,!0),B.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(B=>{B.removeEventListener("focus",je,!0),B.removeEventListener("blur",Ee,!0)})}},[]);const[A,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},N=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=N,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[m,c.jsxs("footer",{"data-style":d,"data-scale":A?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:_,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?$e():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},dt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,m=()=>{p(!1),setTimeout(()=>{gt(f||!1),n==null||n()},300)};dt[r]={onClose:m,onOpen:()=>{p(!0)}},gt({callback:m});const _=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(_)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=dt[t])==null||n.onOpen():(i=dt[t])==null||i.onClose()},fr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,isScrollBar:l=!1}){const[d,p]=w.useState(s||!1);w.useEffect(()=>{p(s||!1)},[s]);let f={onScroll:m=>{const{scrollTop:_,scrollHeight:x,clientHeight:k}=m.currentTarget;_+k>=x-i&&!d&&(p(!0),n==null||n())}};return c.jsx("div",{...f,className:ae(fr.s,!l&&fr.n,t),children:r})}const pt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=pt.l:n==="right"&&(s=pt.r),c.jsxs("div",{className:ae(pt.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var n;let r=M.state.pop();M.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(M.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=cr,t.toggleBottomSheet=$e,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ct,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(M.state.push(n),M.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=cr,gt=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,ho=v.default.Menu,_o=v.default.SidePanel,mo=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=gt,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=ho,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=mo,v.SideBarController=ko,v.SidePanel=_o,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,_e,L,qt,L),et[L+_e]=!0}}return e===i?Lt(E):It(E),E}}function Dt(e,o,a){return tt(e,o,a,!0)}function Ut(e,o,a){return tt(e,o,a,!1)}var Ft=Ut,Wt=Dt;nt.Fragment=i,nt.jsx=Ft,nt.jsxs=Wt}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",rr={version:Sr},K={},D={module:"",v:rr.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:rr.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};l.ROUTER_PARAMS={...D,...t,prev:d}}}function R(){return H().ROUTER_PARAMS||D}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function q(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:D.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function or(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function ut(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=or(s,n);if(d)return d()}if(i){const d=or(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function nr(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):ut({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?R().page:R().auth,module:R().module});return!0}function ar(){return R().page}function ir(){return R().module||""}function ft(){return R().tab}function sr(){return R().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ar()||t&&r(t)||R().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().page(t)}function Or(t){return R().page===t}function $r(){return R().prev}function Pr(t,r){const[n,i]=w.useState(ir()||t||R().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=q();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().module(t)}function Tr(t){return R().module===t}function Mr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||ft());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Nr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(ft()||t&&r(t)||R().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),n}async function zr(t,r=!0){J({tab:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&(q().tabs&&q().tabs(t))}function Br(t){return R().tab===t}function Ir(t){if(typeof t!="function"){const[r,n]=w.useState(t||sr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=q();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,r=!0){J({id:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().id(t)}function Ur(t){return Number(R().id)===t}async function Fr(t){var r,n,i,s,l,d,p,f;const{page:_,module:m,tab:x,id:k}=t;_!==void 0&&(K.page=_),m!==void 0&&(K.module=m),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=q()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=q()).tabs)==null||s.call(i,x)),m!==void 0&&((d=(l=q()).module)==null||d.call(l,m)),_!==void 0&&((f=(p=q()).page)==null||f.call(p,_)),sessionStorage.setItem(R().STORAGE,re.enCode(R()))}const ve={Reset(){K.id=0,K.tab="",K.page=R().page,K.module=R().module},Default({module:t=R().module,page:r=R().page,auth:n=R().auth,debug:i=R().debug,dir:s=R().dir||".",importModules:l,modules:d,pages:p,glob:f}){let _=l,m=d,x=p;f?(m=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(m=m||f,x=x||f),!_&&(m||x)?!f&&(typeof m=="string"||typeof x=="string")?_=ut({basePath:s}):_=nr(s,m,x):_||(_=ut({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:_}),jr()},createImportModules:nr,getImportModules:()=>R().importModules,usePage:Rr,setPage:Ar,getPage:ar,isPage:Or,getBack:$r,useModule:Pr,setModule:Cr,getModule:ir,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:zr,getTabs:ft,isTabs:Br,useId:Ir,subId:Lr,setId:Dr,getId:sr,isId:Ur,navigate:Fr},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Wr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function qr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.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":l=c.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":l=c.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:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:qr,Init:Wr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"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"},M.light={"--tg-color-scheme":"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"},M.users={"--tg-color-scheme":"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 Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,_]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let A in M[s])document.documentElement.style.setProperty(A,M[s][A]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let A in M[k])document.documentElement.style.setProperty(A,M[k][A]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),_(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:_}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},lr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[lr.p,n&&lr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={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"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={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"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,_]=w.useState(!1),[m,x]=w.useState(null);w.useEffect(()=>{let A=document.querySelector(".p_sb");return A||(A=document.createElement("div"),A.className="_p_sb",document.body.appendChild(A)),x(A),it[p]=C=>_(C),()=>{A&&A.parentNode&&A.parentNode.removeChild(A)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>_(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>_(!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:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>_(!0),className:"bage","data-count":n,children:r}),m&&pr.createPortal(k,m)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let $e=()=>{};const cr=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return $e=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:$e,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),t]})})},ye={h:"_h_xpmv7_1",r:"_r_xpmv7_61",c:"_c_xpmv7_64",x:"_x_xpmv7_67",b:"_b_xpmv7_71",a:"_a_xpmv7_107",draw:"_draw_xpmv7_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],ur=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[_,m]=w.useState(null),[x,k]=w.useState(l?ur(t||[],l):0);xe.onClose=()=>{m(null),k(l?ur(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const B=document.querySelector("footer");B&&B.classList.remove(ye.x)},je=()=>{const B=document.querySelector("footer");B&&B.classList.add(ye.x)};return Se.forEach(B=>{B.addEventListener("focus",je,!0),B.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(B=>{B.removeEventListener("focus",je,!0),B.removeEventListener("blur",Ee,!0)})}},[]);const[A,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},z=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=z,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{"data-style":d,"data-scale":A?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:m,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?$e():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},dt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,_=()=>{p(!1),setTimeout(()=>{gt(f||!1),n==null||n()},300)};dt[r]={onClose:_,onOpen:()=>{p(!0)}},gt({callback:_});const m=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(m)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=dt[t])==null||n.onOpen():(i=dt[t])==null||i.onClose()},fr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,isScrollBar:l=!1}){const[d,p]=w.useState(s||!1);w.useEffect(()=>{p(s||!1)},[s]);let f={onScroll:_=>{const{scrollTop:m,scrollHeight:x,clientHeight:k}=_.currentTarget;m+k>=x-i&&!d&&(p(!0),n==null||n())}};return c.jsx("div",{...f,className:ae(fr.s,!l&&fr.n,t),children:r})}const pt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=pt.l:n==="right"&&(s=pt.r),c.jsxs("div",{className:ae(pt.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let r=N.state.pop();N.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(N.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=cr,t.toggleBottomSheet=$e,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ct,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{N.prev&&(0,t.BackButton)(N.prev)},t.BackButtonState=()=>N.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(N.state.push(n),N.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=cr,gt=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,ho=v.default.Menu,mo=v.default.SidePanel,_o=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=gt,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=ho,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=_o,v.SideBarController=ko,v.SidePanel=mo,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
package/dist/test/Icons.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
|
-
type TLine = {
|
|
3
|
-
name: "add" | "add_circle" | "albums" | "aperture" | "bag_handle" | "chatbubble_ellipses" | "close_circle" | "close" | "document_text" | "download" | "duplicate" | "flame" | "flask" | "funnel" | "gift" | "grid" | "happy" | "heart" | "image" | "images" | "information_circle" | "laptop" | "layers" | "menu" | "options" | "people" | "person_add" | "person" | "power" | "pricetags" | "reader" | "save" | "settings" | "share" | "shield_checkmark" | "sparkles" | "square" | "star" | "sync" | "thumbs_down" | "thumbs_up" | "trash_bin" | "dashboard_square_01" | "filter" | "layout_grid" | "layout_2_row" | "list_view" | "flask_conical";
|
|
4
|
-
size?: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
style?: any;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
type TSolid = {
|
|
11
|
-
name: "alert_circle" | "camera" | "checkmark_circle" | "close_circle" | "extension_puzzle" | "flame" | "funnel" | "heart" | "person" | "pricetag" | "pricetags" | "sparkles" | "star" | "thumbs_down" | "thumbs_up" | "triangle";
|
|
12
|
-
size?: number;
|
|
13
|
-
color?: string;
|
|
14
|
-
style?: any;
|
|
15
|
-
className?: string;
|
|
16
|
-
onClick?: () => void;
|
|
17
|
-
};
|
|
18
|
-
type TLoading = {
|
|
19
|
-
name: "wind_toy";
|
|
20
|
-
size?: number;
|
|
21
|
-
color?: string;
|
|
22
|
-
style?: any;
|
|
23
|
-
className?: string;
|
|
24
|
-
onClick?: () => void;
|
|
25
|
-
};
|
|
26
|
-
type TIcon = {
|
|
27
|
-
Line: (p: TLine) => JSX.Element;
|
|
28
|
-
Solid: (p: TSolid) => JSX.Element;
|
|
29
|
-
Loading: (p: TLoading) => JSX.Element;
|
|
30
|
-
};
|
|
31
|
-
declare const Icons: TIcon;
|
|
32
|
-
export default Icons;
|
package/dist/test/main.d.ts
DELETED
|
File without changes
|