@elcrm/telegram 0.0.80 → 0.0.81
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 +33 -33
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.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}}.
|
|
1
|
+
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.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}}._h_1ryiq_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}
|
package/dist/index.es.js
CHANGED
|
@@ -568,8 +568,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
568
568
|
e.ref !== null && (Y(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var qe = {};
|
|
572
|
+
function Je(e, t, n, a, d, p) {
|
|
573
573
|
{
|
|
574
574
|
var c = U(e);
|
|
575
575
|
if (!c) {
|
|
@@ -600,24 +600,24 @@ Check the top-level render call using <` + n + ">.");
|
|
|
600
600
|
var W = T(e), O = Object.keys(t).filter(function(Pt) {
|
|
601
601
|
return Pt !== "key";
|
|
602
602
|
}), he = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!
|
|
603
|
+
if (!qe[W + he]) {
|
|
604
604
|
var wt = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, he, W, wt, W),
|
|
610
|
+
<%s key={someKey} {...props} />`, he, W, wt, W), qe[W + he] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
return e === u ? St(_) : Et(_), _;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function xt(e, t, n) {
|
|
617
|
-
return
|
|
617
|
+
return Je(e, t, n, !0);
|
|
618
618
|
}
|
|
619
619
|
function jt(e, t, n) {
|
|
620
|
-
return
|
|
620
|
+
return Je(e, t, n, !1);
|
|
621
621
|
}
|
|
622
622
|
var Ot = jt, Ct = xt;
|
|
623
623
|
He.Fragment = u, He.jsx = Ot, He.jsxs = Ct;
|
|
@@ -1356,8 +1356,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1356
1356
|
e.ref !== null && (Y(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1360
|
-
function
|
|
1359
|
+
var qe = {};
|
|
1360
|
+
function Je(e, t, n, a, d, p) {
|
|
1361
1361
|
{
|
|
1362
1362
|
var c = U(e);
|
|
1363
1363
|
if (!c) {
|
|
@@ -1388,35 +1388,35 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1388
1388
|
var W = T(e), O = Object.keys(t).filter(function(Pt) {
|
|
1389
1389
|
return Pt !== "key";
|
|
1390
1390
|
}), he = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1391
|
-
if (!
|
|
1391
|
+
if (!qe[W + he]) {
|
|
1392
1392
|
var wt = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
1393
1393
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
1394
1394
|
let props = %s;
|
|
1395
1395
|
<%s {...props} />
|
|
1396
1396
|
React keys must be passed directly to JSX without using spread:
|
|
1397
1397
|
let props = %s;
|
|
1398
|
-
<%s key={someKey} {...props} />`, he, W, wt, W),
|
|
1398
|
+
<%s key={someKey} {...props} />`, he, W, wt, W), qe[W + he] = !0;
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
return e === u ? St(_) : Et(_), _;
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
1404
|
function xt(e, t, n) {
|
|
1405
|
-
return
|
|
1405
|
+
return Je(e, t, n, !0);
|
|
1406
1406
|
}
|
|
1407
1407
|
function jt(e, t, n) {
|
|
1408
|
-
return
|
|
1408
|
+
return Je(e, t, n, !1);
|
|
1409
1409
|
}
|
|
1410
1410
|
var Ot = jt, Ct = xt;
|
|
1411
1411
|
Qe.Fragment = u, Qe.jsx = Ot, Qe.jsxs = Ct;
|
|
1412
1412
|
}()), Qe;
|
|
1413
1413
|
}
|
|
1414
1414
|
process.env.NODE_ENV === "production" ? or() : ar();
|
|
1415
|
-
const sr = "0.0.37",
|
|
1415
|
+
const sr = "0.0.37", qt = {
|
|
1416
1416
|
version: sr
|
|
1417
1417
|
}, re = {}, It = {
|
|
1418
1418
|
module: "",
|
|
1419
|
-
v:
|
|
1419
|
+
v: qt.version,
|
|
1420
1420
|
page: "Main",
|
|
1421
1421
|
auth: "Auth",
|
|
1422
1422
|
STORAGE: "f",
|
|
@@ -1426,7 +1426,7 @@ function be() {
|
|
|
1426
1426
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
1427
1427
|
}
|
|
1428
1428
|
be().elcrm || (be().elcrm = {});
|
|
1429
|
-
Object.assign(be().elcrm, { router:
|
|
1429
|
+
Object.assign(be().elcrm, { router: qt.version });
|
|
1430
1430
|
function ne(r) {
|
|
1431
1431
|
const o = be();
|
|
1432
1432
|
o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...r } : o.ROUTER_PARAMS = { ...It, ...r };
|
|
@@ -1658,7 +1658,7 @@ let nt = {
|
|
|
1658
1658
|
Init: ir
|
|
1659
1659
|
}, Ze = () => {
|
|
1660
1660
|
};
|
|
1661
|
-
const
|
|
1661
|
+
const Jt = ({ children: r, title: o, isOverlay: s = !0 }) => {
|
|
1662
1662
|
const [u, f] = D.useState(!1);
|
|
1663
1663
|
return Ze = () => {
|
|
1664
1664
|
f(!0), setTimeout(() => {
|
|
@@ -1692,7 +1692,7 @@ const qt = ({ children: r, title: o, isOverlay: s = !0 }) => {
|
|
|
1692
1692
|
)
|
|
1693
1693
|
}
|
|
1694
1694
|
);
|
|
1695
|
-
}, ur = "
|
|
1695
|
+
}, ur = "_h_1ryiq_1", fr = "_row_1ryiq_14", dr = "_column_1ryiq_17", Ft = {
|
|
1696
1696
|
h: ur,
|
|
1697
1697
|
row: fr,
|
|
1698
1698
|
column: dr
|
|
@@ -1755,8 +1755,8 @@ const qt = ({ children: r, title: o, isOverlay: s = !0 }) => {
|
|
|
1755
1755
|
MainButton: {},
|
|
1756
1756
|
BackButton: {}
|
|
1757
1757
|
};
|
|
1758
|
-
let
|
|
1759
|
-
|
|
1758
|
+
let J = {};
|
|
1759
|
+
J.dark = {
|
|
1760
1760
|
"--tg-theme-subtitle-text-color": "#98989e",
|
|
1761
1761
|
"--tg-theme-destructive-text-color": "#e53935",
|
|
1762
1762
|
"--tg-theme-section-separator-color": "#545458",
|
|
@@ -1773,7 +1773,7 @@ q.dark = {
|
|
|
1773
1773
|
"--tg-theme-text-color": "#ffffff",
|
|
1774
1774
|
"--tg-theme-section-bg-color": "#2c2c2e"
|
|
1775
1775
|
};
|
|
1776
|
-
|
|
1776
|
+
J.light = {
|
|
1777
1777
|
"--tg-theme-subtitle-text-color": "#8e8e93",
|
|
1778
1778
|
"--tg-theme-destructive-text-color": "#ff3b30",
|
|
1779
1779
|
"--tg-theme-section-separator-color": "#c8c7cc",
|
|
@@ -1790,7 +1790,7 @@ q.light = {
|
|
|
1790
1790
|
"--tg-theme-text-color": "#000000",
|
|
1791
1791
|
"--tg-theme-section-bg-color": "#f8f8f8"
|
|
1792
1792
|
};
|
|
1793
|
-
|
|
1793
|
+
J.users = {
|
|
1794
1794
|
"--tg-theme-bg-color": "#000000",
|
|
1795
1795
|
"--tg-theme-text-color": "#ffffff",
|
|
1796
1796
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -1803,11 +1803,11 @@ const pr = () => {
|
|
|
1803
1803
|
if (location.hostname === "localhost") {
|
|
1804
1804
|
let [r, o] = le(!1), [s, u] = le(!1), [f, h] = le("dark"), [C, R] = le(!1), [v, x] = le(!1);
|
|
1805
1805
|
ye.is = !0, ye.MainButton.set = o, ye.BackButton.set = u, Xe(() => {
|
|
1806
|
-
|
|
1807
|
-
for (let k in
|
|
1806
|
+
J[f]["--tg-theme-bg-color-alpha"] = J[f]["--tg-theme-bg-color"] + "b3", J[f]["--tg-theme-secondary-bg-color-alpha"] = J[f]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1807
|
+
for (let k in J[f])
|
|
1808
1808
|
document.documentElement.style.setProperty(
|
|
1809
1809
|
k,
|
|
1810
|
-
|
|
1810
|
+
J[f][k]
|
|
1811
1811
|
);
|
|
1812
1812
|
Ee.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1813
1813
|
"--tg-safe-area-inset-bottom",
|
|
@@ -1815,8 +1815,8 @@ const pr = () => {
|
|
|
1815
1815
|
);
|
|
1816
1816
|
}, []);
|
|
1817
1817
|
let m = (k) => {
|
|
1818
|
-
for (let $ in
|
|
1819
|
-
document.documentElement.style.setProperty($,
|
|
1818
|
+
for (let $ in J[k])
|
|
1819
|
+
document.documentElement.style.setProperty($, J[k][$]);
|
|
1820
1820
|
h(k), R(!1);
|
|
1821
1821
|
}, b = () => {
|
|
1822
1822
|
R(!1), x(!0);
|
|
@@ -1958,15 +1958,15 @@ const pr = () => {
|
|
|
1958
1958
|
},
|
|
1959
1959
|
h
|
|
1960
1960
|
)) }, u.id)) });
|
|
1961
|
-
},
|
|
1961
|
+
}, q = {
|
|
1962
1962
|
state: [!1],
|
|
1963
1963
|
listen: [],
|
|
1964
1964
|
router: (r) => {
|
|
1965
|
-
r === !1 ? (L.WebApp.BackButton.isVisible = !1, L.WebApp.BackButton.offClick(
|
|
1965
|
+
r === !1 ? (L.WebApp.BackButton.isVisible = !1, L.WebApp.BackButton.offClick(q.listen[0]), q.listen.shift(), q.state.length !== 1 && q.state.pop()) : (L.WebApp.BackButton.isVisible = !0, L.WebApp.BackButton.offClick(q.listen[0]), q.listen.shift(), q.listen.push(() => {
|
|
1966
1966
|
var s;
|
|
1967
|
-
let o =
|
|
1967
|
+
let o = q.state.pop();
|
|
1968
1968
|
o.page !== void 0 ? _e.setPage(o.page) : (s = o.callback) == null || s.call(o);
|
|
1969
|
-
}), Ee.BackButton.onClick(
|
|
1969
|
+
}), Ee.BackButton.onClick(q.listen[0]));
|
|
1970
1970
|
}
|
|
1971
1971
|
};
|
|
1972
1972
|
var L;
|
|
@@ -1977,7 +1977,7 @@ var L;
|
|
|
1977
1977
|
}, r.Notice = (o, s, u) => {
|
|
1978
1978
|
var f, h;
|
|
1979
1979
|
s !== void 0 ? (nt.Send({ type: o, text: s, thema: u }), (f = r.WebApp.HapticFeedback) == null || f.notificationOccurred(o)) : (nt.Send(o), (h = r.WebApp.HapticFeedback) == null || h.notificationOccurred(o.type));
|
|
1980
|
-
}, r.Header = pr, r.Footer = Ht, r.BottomSheet =
|
|
1980
|
+
}, r.Header = pr, r.Footer = Ht, r.BottomSheet = Jt, r.toggleBottomSheet = Ze, r.SafeArea = gr, r.Loading = _r, r.Modal = Tt, r.Menu = Cr, r.MainButton = {
|
|
1981
1981
|
callback: [],
|
|
1982
1982
|
set: (o) => {
|
|
1983
1983
|
ye.is ? ye.MainButton.set(o) : (r.WebApp.MainButton.callback.forEach((s) => {
|
|
@@ -1990,10 +1990,10 @@ var L;
|
|
|
1990
1990
|
)));
|
|
1991
1991
|
}
|
|
1992
1992
|
}, r.BackButton = (o) => {
|
|
1993
|
-
ye.is ? ye.BackButton.set(o) : (
|
|
1993
|
+
ye.is ? ye.BackButton.set(o) : (q.state.push(o), q.router(o));
|
|
1994
1994
|
};
|
|
1995
1995
|
})(L || (L = {}));
|
|
1996
|
-
const Pr = Ht, Ar =
|
|
1996
|
+
const Pr = Ht, Ar = Jt, Tr = L.BackButton, Ir = L.Notice, Nr = L.SafeArea, $r = L.Loading, Dr = L.Menu, { Header: Mr, toggleBottomSheet: Br, Modal: Fr, MainButton: Wr, WebApp: Ee, getUser: Lr } = L;
|
|
1997
1997
|
export {
|
|
1998
1998
|
Tr as BackButton,
|
|
1999
1999
|
Ar as BottomSheet,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var Tt=document.createElement("style");Tt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.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}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}
|
|
1
|
+
(function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var Tt=document.createElement("style");Tt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.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}}._h_1ryiq_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Tt);var rt={exports:{}},we={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
`+ge+e}}var me=!1,re;{var st=typeof WeakMap=="function"?WeakMap:Map;re=new st}function Ne(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=pe.current,pe.current=null,at();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(C){a=C}Reflect.construct(e,[],c)}else{try{c.call()}catch(C){a=C}e.call(c.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var l=C.stack.split(`
|
|
20
20
|
`),O=a.stack.split(`
|
|
21
21
|
`),b=l.length-1,x=O.length-1;b>=1&&x>=0&&l[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==O[x]){var T=`
|
|
22
|
-
`+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var
|
|
22
|
+
`+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Be={},De=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function ut(e,t,n,a,d){{var p=Function.call.bind(J);for(var c in e)if(p(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var O=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in Be)&&(Be[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var ft=Array.isArray;function he(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function pt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Le(e){if(pt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),Fe(e)}var Ue=L.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0},ze,Ye;function mt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&Ue.current}function bt(e,t){{var n=function(){ze||(ze=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var xt=function(e,t,n,a,d,p,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function _t(e,t,n,a,d){{var p,c={},l=null,O=null;n!==void 0&&(Le(n),l=""+n),ht(t)&&(Le(t.key),l=""+t.key),mt(t)&&(O=t.ref,vt(t,d));for(p in t)J.call(t,p)&&!gt.hasOwnProperty(p)&&(c[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)c[p]===void 0&&(c[p]=b[p])}if(l||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&bt(c,x),O&&yt(c,x)}return xt(e,l,O,d,a,Ue.current,c)}}var ve=L.ReactCurrentOwner,We=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ve(){{if(ve.current){var e=$(ve.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function kt(e){return""}var
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function kt(e){return""}var qe={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+n+">.")}return t}}function
|
|
26
|
+
Check the top-level render call using <`+n+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(t);if(qe[n])return;qe[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function He(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&Je(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Oe(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),c;!(c=p.next()).done;)ye(c.value)&&Je(c.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ut(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function St(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ke={};function Ge(e,t,n,a,d,p){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=kt();O?l+=O:l+=Ve();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=_t(e,t,n,d,p);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)He(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 He(T,e)}if(J.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(Pt){return Pt!=="key"}),xe=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[U+xe]){var At=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`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:
|
|
@@ -48,13 +48,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
48
48
|
`+ge+e}}var me=!1,re;{var st=typeof WeakMap=="function"?WeakMap:Map;re=new st}function Ne(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=pe.current,pe.current=null,at();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(C){a=C}Reflect.construct(e,[],c)}else{try{c.call()}catch(C){a=C}e.call(c.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var l=C.stack.split(`
|
|
49
49
|
`),O=a.stack.split(`
|
|
50
50
|
`),b=l.length-1,x=O.length-1;b>=1&&x>=0&&l[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==O[x]){var T=`
|
|
51
|
-
`+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var
|
|
51
|
+
`+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Be={},De=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function ut(e,t,n,a,d){{var p=Function.call.bind(J);for(var c in e)if(p(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var O=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in Be)&&(Be[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var ft=Array.isArray;function he(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function pt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Le(e){if(pt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),Fe(e)}var Ue=L.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0},ze,Ye;function mt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&Ue.current}function bt(e,t){{var n=function(){ze||(ze=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var xt=function(e,t,n,a,d,p,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function _t(e,t,n,a,d){{var p,c={},l=null,O=null;n!==void 0&&(Le(n),l=""+n),ht(t)&&(Le(t.key),l=""+t.key),mt(t)&&(O=t.ref,vt(t));for(p in t)J.call(t,p)&&!gt.hasOwnProperty(p)&&(c[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)c[p]===void 0&&(c[p]=b[p])}if(l||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&bt(c,x),O&&yt(c,x)}return xt(e,l,O,d,a,Ue.current,c)}}var ve=L.ReactCurrentOwner,We=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ve(){{if(ve.current){var e=$(ve.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function kt(e){return""}var
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function kt(e){return""}var qe={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+n+">.")}return t}}function
|
|
55
|
+
Check the top-level render call using <`+n+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(t);if(qe[n])return;qe[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function He(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&Je(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Oe(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),c;!(c=p.next()).done;)ye(c.value)&&Je(c.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ut(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function St(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ke={};function Ge(e,t,n,a,d,p){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=kt();O?l+=O:l+=Ve();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=_t(e,t,n,d,p);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)He(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 He(T,e)}if(J.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(Pt){return Pt!=="key"}),xe=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[U+xe]){var At=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`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} />`,xe,U,At,U),Ke[U+xe]=!0}}return e===u?St(x):Rt(x),x}}function Et(e,t,n){return Ge(e,t,n,!0)}function jt(e,t,n){return Ge(e,t,n,!1)}var Ot=jt,Ct=Et;Qe.Fragment=u,Qe.jsx=Ot,Qe.jsxs=Ct}()),Qe}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",zt={version:ar},X={},ot={module:"",v:zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:zt.version});function Q(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS={...o.ROUTER_PARAMS,...r}:o.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function _e(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ce;(r=>{function o(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?A().page:A().auth,module:A().module});return!0}function i(){X.id=0,X.tab="",X.page=A().page,X.module=A().module}r.Reset=i;function u({module:v=A().module,page:R=A().page,auth:M=A().auth}){Q({page:R,module:v,auth:M}),o()}r.Default=u;function f(v){let R=z=>(Q({page:z}),z);const[M,D]=S.useState(P()||v&&R(v)||A().page);return _e({page:z=>{D(z)}}),M}r.usePage=f;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=h;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[M,D]=S.useState(m()||v||A().module);return _e({module:D}),M}r.useModule=g;function j(v,R=!0){Q({module:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().module(v)}r.setModule=j;function m(){return A().module||""}r.getModule=m;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,D]=S.useState(!R),[z,ie]=S.useState(v||I());return _e({tabs:ie}),R&&S.useEffect(()=>{D(!0)},[]),[z,M]}else _e({tabs:v})}r.useTabs=k;async function B(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=B;function I(){return A().tab}r.getTabs=I;function je(v){return A().tab===v}r.isTabs=je;function Oe(v){if(typeof v!="function"){const[R,M]=S.useState(v||ke());return _e({id:D=>{M(D)}}),R}else _e({id:v})}r.useId=Oe;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().id(v)}r.setId=E;function ke(){return A().id}r.getId=ke;function Ce(v){return Number(A().id)===v}r.isId=Ce;async function Ae(v){var R,M,D,z,ie,se,$,N;const{page:F,module:K,tab:G,id:Z}=v;F!==void 0&&(X.page=F),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(D=ee()).tabs)==null||z.call(D,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),F!==void 0&&((N=($=ee()).page)==null||N.call($,F)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ae})(ce||(ce={}));let et={};function ir(){const[r,o]=S.useState([]);return et.set=i=>{o([...r,i])},et.del=i=>{r.forEach((u,f)=>{u.key===i&&r.splice(f,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let o=new Date().getTime();r.key=o,et.set({item:s.jsx(lr,{data:r},o),key:o})}function lr(r){const o=r.data;let[i]=S.useState("show"),[u,f]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){f(!0),et.del(o.key)},5e3)},[o.key]);let h;switch(o.type){case"error":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":h=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:u?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:o.text})]})})}let tt={Send:sr,Init:ir},Ee=()=>{};const Yt=({children:r,title:o,isOverlay:i=!0})=>{const[u,f]=S.useState(!1);return Ee=()=>{f(!0),setTimeout(()=>{Vt.onClose()},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${u?"closing":""}`,onClick:Ee,children:s.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:h=>h.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ee,children:"✕"})]}),r]})})},Wt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Vt=[],Jt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),qt=({actions:r,children:o,className:i,toHide:u=!1,page:f,onPageChange:h,direction:P="row"})=>{const[_,g]=S.useState(null),[j,m]=S.useState(f?Jt(r||[],f):0);return Vt.onClose=()=>{g(null),m(f?Jt(r||[],f):0)},S.useEffect(()=>{if(!u)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},B=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",B,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",B,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Wt.h} ${Wt[P]} ${i} `,children:[o,r&&r.map((y,k)=>s.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(j===k?Ee():(g(y.component),m(k)))},children:y.icon},k))]})]})},ue={is:!1,MainButton:{},BackButton:{}};let V={};V.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"},V.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"},V.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 cr=()=>{if(location.hostname==="localhost"){let[r,o]=S.useState(!1),[i,u]=S.useState(!1),[f,h]=S.useState("dark"),[P,_]=S.useState(!1),[g,j]=S.useState(!1);ue.is=!0,ue.MainButton.set=o,ue.BackButton.set=u,S.useEffect(()=>{V[f]["--tg-theme-bg-color-alpha"]=V[f]["--tg-theme-bg-color"]+"b3",V[f]["--tg-theme-secondary-bg-color-alpha"]=V[f]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[f])document.documentElement.style.setProperty(k,V[f][k]);de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let B in V[k])document.documentElement.style.setProperty(B,V[k][B]);h(k),_(!1)},y=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ce.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),s.jsx(tt.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?s.jsx(ur,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",de.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",de.themeParams.bg_color+"b3"),de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(tt.Init,{})})},ur=({setAuthorization:r})=>{let o={},i=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Ht={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:o,isScroll:i=!0})=>s.jsx("div",{className:[Ht.p,i&&Ht.s,r].filter(u=>u!==void 0).join(" "),children:o}),dr={l:"_l_gfyud_1"},pr=({children:r,className:o})=>s.jsx("div",{className:[dr.l,o].filter(i=>i!==void 0).join(" "),children:r}),fe={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"},gr=({items:r})=>{const o=u=>{ce.setPage(u)},i=u=>{de.openTelegramLink(u)};return s.jsx("div",{className:fe.m,children:r.map(u=>s.jsx("div",{className:fe.g,children:u.items.map((f,h)=>s.jsxs("div",{className:fe.i,onClick:()=>f.link?i(f.link):o(f.page||""),children:[s.jsxs("div",{className:fe.c,children:[s.jsx("span",{className:fe.l,style:{background:f.color},children:f.icon}),f.title,f.count&&s.jsx("span",{className:fe.n,children:f.count})]}),s.jsx("span",{className:fe.a,children:"›"})]},h))},u.id))})},J={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.state.length!==1&&J.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.listen.push(()=>{var i;let o=J.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(J.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(o,i,u)=>{var f,h;i!==void 0?(tt.Send({type:o,text:i,thema:u}),(f=r.WebApp.HapticFeedback)==null||f.notificationOccurred(o)):(tt.Send(o),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(o.type))},r.Header=cr,r.Footer=qt,r.BottomSheet=Yt,r.toggleBottomSheet=Ee,r.SafeArea=fr,r.Loading=pr,r.Modal=nt,r.Menu=gr,r.MainButton={callback:[],set:o=>{ue.is?ue.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var i;o.page===void 0?(i=o.callback)==null||i.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=o=>{ue.is?ue.BackButton.set(o):(J.state.push(o),J.router(o))}})(w.default||(w.default={}));const mr=qt,hr=Yt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:de,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=de,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,xe,U,At,U),Ke[U+xe]=!0}}return e===u?St(x):Rt(x),x}}function Et(e,t,n){return Ge(e,t,n,!0)}function jt(e,t,n){return Ge(e,t,n,!1)}var Ot=jt,Ct=Et;Qe.Fragment=u,Qe.jsx=Ot,Qe.jsxs=Ct}()),Qe}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",zt={version:ar},X={},ot={module:"",v:zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:zt.version});function Q(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS={...o.ROUTER_PARAMS,...r}:o.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function _e(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ce;(r=>{function o(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?A().page:A().auth,module:A().module});return!0}function i(){X.id=0,X.tab="",X.page=A().page,X.module=A().module}r.Reset=i;function u({module:v=A().module,page:R=A().page,auth:M=A().auth}){Q({page:R,module:v,auth:M}),o()}r.Default=u;function f(v){let R=z=>(Q({page:z}),z);const[M,D]=S.useState(P()||v&&R(v)||A().page);return _e({page:z=>{D(z)}}),M}r.usePage=f;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=h;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[M,D]=S.useState(m()||v||A().module);return _e({module:D}),M}r.useModule=g;function j(v,R=!0){Q({module:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().module(v)}r.setModule=j;function m(){return A().module||""}r.getModule=m;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,D]=S.useState(!R),[z,ie]=S.useState(v||I());return _e({tabs:ie}),R&&S.useEffect(()=>{D(!0)},[]),[z,M]}else _e({tabs:v})}r.useTabs=k;async function B(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=B;function I(){return A().tab}r.getTabs=I;function je(v){return A().tab===v}r.isTabs=je;function Oe(v){if(typeof v!="function"){const[R,M]=S.useState(v||ke());return _e({id:D=>{M(D)}}),R}else _e({id:v})}r.useId=Oe;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().id(v)}r.setId=E;function ke(){return A().id}r.getId=ke;function Ce(v){return Number(A().id)===v}r.isId=Ce;async function Ae(v){var R,M,D,z,ie,se,$,N;const{page:F,module:K,tab:G,id:Z}=v;F!==void 0&&(X.page=F),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(D=ee()).tabs)==null||z.call(D,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),F!==void 0&&((N=($=ee()).page)==null||N.call($,F)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ae})(ce||(ce={}));let et={};function ir(){const[r,o]=S.useState([]);return et.set=i=>{o([...r,i])},et.del=i=>{r.forEach((u,f)=>{u.key===i&&r.splice(f,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let o=new Date().getTime();r.key=o,et.set({item:s.jsx(lr,{data:r},o),key:o})}function lr(r){const o=r.data;let[i]=S.useState("show"),[u,f]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){f(!0),et.del(o.key)},5e3)},[o.key]);let h;switch(o.type){case"error":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":h=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:u?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:o.text})]})})}let tt={Send:sr,Init:ir},Ee=()=>{};const Yt=({children:r,title:o,isOverlay:i=!0})=>{const[u,f]=S.useState(!1);return Ee=()=>{f(!0),setTimeout(()=>{Vt.onClose()},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${u?"closing":""}`,onClick:Ee,children:s.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:h=>h.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ee,children:"✕"})]}),r]})})},Wt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},Vt=[],qt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),Jt=({actions:r,children:o,className:i,toHide:u=!1,page:f,onPageChange:h,direction:P="row"})=>{const[_,g]=S.useState(null),[j,m]=S.useState(f?qt(r||[],f):0);return Vt.onClose=()=>{g(null),m(f?qt(r||[],f):0)},S.useEffect(()=>{if(!u)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},B=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",B,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",B,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Wt.h} ${Wt[P]} ${i} `,children:[o,r&&r.map((y,k)=>s.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(j===k?Ee():(g(y.component),m(k)))},children:y.icon},k))]})]})},ue={is:!1,MainButton:{},BackButton:{}};let V={};V.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"},V.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"},V.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 cr=()=>{if(location.hostname==="localhost"){let[r,o]=S.useState(!1),[i,u]=S.useState(!1),[f,h]=S.useState("dark"),[P,_]=S.useState(!1),[g,j]=S.useState(!1);ue.is=!0,ue.MainButton.set=o,ue.BackButton.set=u,S.useEffect(()=>{V[f]["--tg-theme-bg-color-alpha"]=V[f]["--tg-theme-bg-color"]+"b3",V[f]["--tg-theme-secondary-bg-color-alpha"]=V[f]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[f])document.documentElement.style.setProperty(k,V[f][k]);de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let B in V[k])document.documentElement.style.setProperty(B,V[k][B]);h(k),_(!1)},y=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ce.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),s.jsx(tt.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?s.jsx(ur,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",de.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",de.themeParams.bg_color+"b3"),de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(tt.Init,{})})},ur=({setAuthorization:r})=>{let o={},i=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Ht={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:o,isScroll:i=!0})=>s.jsx("div",{className:[Ht.p,i&&Ht.s,r].filter(u=>u!==void 0).join(" "),children:o}),dr={l:"_l_gfyud_1"},pr=({children:r,className:o})=>s.jsx("div",{className:[dr.l,o].filter(i=>i!==void 0).join(" "),children:r}),fe={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"},gr=({items:r})=>{const o=u=>{ce.setPage(u)},i=u=>{de.openTelegramLink(u)};return s.jsx("div",{className:fe.m,children:r.map(u=>s.jsx("div",{className:fe.g,children:u.items.map((f,h)=>s.jsxs("div",{className:fe.i,onClick:()=>f.link?i(f.link):o(f.page||""),children:[s.jsxs("div",{className:fe.c,children:[s.jsx("span",{className:fe.l,style:{background:f.color},children:f.icon}),f.title,f.count&&s.jsx("span",{className:fe.n,children:f.count})]}),s.jsx("span",{className:fe.a,children:"›"})]},h))},u.id))})},q={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.state.length!==1&&q.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.listen.push(()=>{var i;let o=q.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(q.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(o,i,u)=>{var f,h;i!==void 0?(tt.Send({type:o,text:i,thema:u}),(f=r.WebApp.HapticFeedback)==null||f.notificationOccurred(o)):(tt.Send(o),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(o.type))},r.Header=cr,r.Footer=Jt,r.BottomSheet=Yt,r.toggleBottomSheet=Ee,r.SafeArea=fr,r.Loading=pr,r.Modal=nt,r.Menu=gr,r.MainButton={callback:[],set:o=>{ue.is?ue.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var i;o.page===void 0?(i=o.callback)==null||i.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=o=>{ue.is?ue.BackButton.set(o):(q.state.push(o),q.router(o))}})(w.default||(w.default={}));const mr=Jt,hr=Yt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:de,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=de,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|