@elcrm/telegram 0.0.64 → 0.0.66
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.d.ts +48 -1
- package/dist/index.es.js +931 -950
- package/dist/index.umd.js +20 -20
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
1
|
+
(function(T,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(T=typeof globalThis<"u"?globalThis:T||self,w((T.elCRM=T.elCRM||{},T.elCRM.components={}),T.React))})(this,function(T,w){"use strict";var jt=document.createElement("style");jt.textContent=`*{-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}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) }.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:sticky;top: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}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(jt);var Xe={exports:{}},xe={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ct;function
|
|
10
|
+
*/var Ct;function Wt(){if(Ct)return xe;Ct=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(x,g,R){var d,_={},A=null,W=null;R!==void 0&&(A=""+R),g.key!==void 0&&(A=""+g.key),g.ref!==void 0&&(W=g.ref);for(d in g)f.call(g,d)&&!v.hasOwnProperty(d)&&(_[d]=g[d]);if(x&&x.defaultProps)for(d in g=x.defaultProps,g)_[d]===void 0&&(_[d]=g[d]);return{$$typeof:n,type:x,key:A,ref:W,props:_,_owner:h.current}}return xe.Fragment=i,xe.jsx=C,xe.jsxs=C,xe}var _e={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var
|
|
19
|
-
`+ue+e}}var fe=!1,
|
|
20
|
-
`),
|
|
21
|
-
`),
|
|
22
|
-
`+
|
|
18
|
+
*/var At;function Lt(){return At||(At=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),ne=Symbol.iterator,we="@@iterator";function Ee(e){if(e===null||typeof e!="object")return null;var t=ne&&e[ne]||e[we];return typeof t=="function"?t:null}var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];ye("error",e,o)}}function ye(e,t,o){{var a=$.ReactDebugCurrentFrame,c=a.getStackAddendum();c!==""&&(t+="%s",o=o.concat([c]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Re=!1,Se=!1,m=!1,k=!1,I=!1,F;F=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===v||I||e===h||e===R||e===d||k||e===W||Re||Se||m||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===C||e.$$typeof===x||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,o){var a=e.displayName;if(a)return a;var c=t.displayName||t.name||"";return c!==""?o+"("+c+")":o}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case v:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return ie(t)+".Consumer";case C:var o=e;return ie(o._context)+".Provider";case g:return ae(e,e.render,"ForwardRef");case _:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case A:{var c=e,p=c._payload,l=c._init;try{return B(l(p))}catch{return null}}}return null}var M=Object.assign,D=0,H,q,K,Oe,je,Ce,Ae;function Pe(){}Pe.__reactDisabledLog=!0;function tt(){{if(D===0){H=console.log,q=console.info,K=console.warn,Oe=console.error,je=console.group,Ce=console.groupCollapsed,Ae=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function rt(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:H}),info:M({},e,{value:q}),warn:M({},e,{value:K}),error:M({},e,{value:Oe}),group:M({},e,{value:je}),groupCollapsed:M({},e,{value:Ce}),groupEnd:M({},e,{value:Ae})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=$.ReactCurrentDispatcher,ue;function Q(e,t,o){{if(ue===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
|
|
19
|
+
`+ue+e}}var fe=!1,ee;{var ot=typeof WeakMap=="function"?WeakMap:Map;ee=new ot}function Te(e,t){if(!e||fe)return"";{var o=ee.get(e);if(o!==void 0)return o}var a;fe=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,tt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(O){a=O}Reflect.construct(e,[],l)}else{try{l.call()}catch(O){a=O}e.call(l.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var s=O.stack.split(`
|
|
20
|
+
`),S=a.stack.split(`
|
|
21
|
+
`),b=s.length-1,y=S.length-1;b>=1&&y>=0&&s[b]!==S[y];)y--;for(;b>=1&&y>=0;b--,y--)if(s[b]!==S[y]){if(b!==1||y!==1)do if(b--,y--,y<0||s[b]!==S[y]){var P=`
|
|
22
|
+
`+s[b].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,P),P}while(b>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,rt(),Error.prepareStackTrace=c}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function nt(e,t,o){return Te(e,!1)}function at(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Te(e,at(e));if(typeof e=="string")return Q(e);switch(e){case R:return Q("Suspense");case d:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return nt(e.render);case _:return te(e.type,t,o);case A:{var a=e,c=a._payload,p=a._init;try{return te(p(c),t,o)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Be={},Ie=$.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(o)}else Ie.setExtraStackFrame(null)}function it(e,t,o,a,c){{var p=Function.call.bind(V);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var S=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(re(c),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",o,l,typeof s),re(null)),s instanceof Error&&!(s.message in Be)&&(Be[s.message]=!0,re(c),E("Failed %s type: %s",o,s.message),re(null))}}}var st=Array.isArray;function de(e){return st(e)}function lt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ct(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Fe(e){if(ct(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lt(e)),Me(e)}var De=$.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},$e,Ne;function ft(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function dt(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function pt(e,t){typeof e.ref=="string"&&De.current}function gt(e,t){{var o=function(){$e||($e=!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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function ht(e,t){{var o=function(){Ne||(Ne=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var mt=function(e,t,o,a,c,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function bt(e,t,o,a,c){{var p,l={},s=null,S=null;o!==void 0&&(Fe(o),s=""+o),dt(t)&&(Fe(t.key),s=""+t.key),ft(t)&&(S=t.ref,pt(t,c));for(p in t)V.call(t,p)&&!ut.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||S){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&>(l,y),S&&ht(l,y)}return mt(e,s,S,c,a,De.current,l)}}var pe=$.ReactCurrentOwner,We=$.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);We.setExtraStackFrame(o)}else We.setExtraStackFrame(null)}var ge;ge=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Le(){{if(pe.current){var e=B(pe.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function vt(e){return""}var Ue={};function yt(e){{var t=Le();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return t}}function ze(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=yt(t);if(Ue[o])return;Ue[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),U(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.',o,a),U(null)}}function Ye(e,t){{if(typeof e!="object")return;if(de(e))for(var o=0;o<e.length;o++){var a=e[o];he(a)&&ze(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var c=Ee(e);if(typeof c=="function"&&c!==e.entries)for(var p=c.call(e),l;!(l=p.next()).done;)he(l.value)&&ze(l.value,t)}}}function xt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===_))o=t.propTypes;else return;if(o){var a=B(t);it(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ge){ge=!0;var c=B(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"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 _t(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var Ve={};function Je(e,t,o,a,c,p){{var l=L(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 S=vt();S?s+=S:s+=Le();var b;e===null?b="null":de(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(B(e.type)||"Unknown")+" />",s=" 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,s)}var y=bt(e,t,o,c,p);if(y==null)return y;if(l){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var z=0;z<P.length;z++)Ye(P[z],e);Object.freeze&&Object.freeze(P)}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 Ye(P,e)}if(V.call(t,"key")){var N=B(e),O=Object.keys(t).filter(function(Ot){return Ot!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ve[N+me]){var St=O.length>0?"{"+O.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:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,
|
|
31
|
+
<%s key={someKey} {...props} />`,me,N,St,N),Ve[N+me]=!0}}return e===f?_t(y):xt(y),y}}function kt(e,t,o){return Je(e,t,o,!0)}function wt(e,t,o){return Je(e,t,o,!1)}var Et=wt,Rt=kt;_e.Fragment=f,_e.jsx=Et,_e.jsxs=Rt}()),_e}process.env.NODE_ENV==="production"?Xe.exports=Wt():Xe.exports=Lt();var u=Xe.exports;let J={};var Qe;(r=>{function n({children:x}){const[g,R]=w.useState(!1),[d,_]=w.useState(!1);if(J.onClose=()=>{T.default.BackButton.set(!1),_(!0),setTimeout(()=>{R(!1),_(!1)},300)},w.useEffect(()=>{g?J.onClose():(T.default.BackButton.set({callback:()=>J.onClose()}),R(!0))},[]),!!g)return u.jsx("div",{className:`modal-overlay ${d?"closing":""}`,children:u.jsx("div",{className:`modal-popup ${d?"closing":""}`,children:u.jsx("div",{children:x})})})}r.Content=n;function i({import_modules:x}){let[g,R]=w.useState([]);return J.x=d=>{R(d?g.filter(_=>_.key!==d):[])},w.useEffect(()=>{x&&(J.i=x)},[]),J.add=(d,_=Date.now())=>{R([...g,{key:_,item:d}])},u.jsx(u.Fragment,{children:g.map(d=>d.item)})}r.Init=i;function f(x,g){J.add(u.jsx(n,{children:x},String(Date.now())),g)}r.Add=f;function h(x){return{Open:d=>{r.Add(u.jsx(x,{...d},new Date().getTime()))}}}r.Create=h;function v(){J.onClose()}r.Close=v;function C(x,g,R){J.i&&J.i(`${x}/modals/${g}.tsx`).then(d=>{d.default.Open(R)})}r.Open=C})(Qe||(Qe={}));function Pt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Tt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Bt(r){const n=Pt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Tt,...r}}function He(){return Pt().CRYPTO_PARAMS||Tt}const qe=r=>{let n=0;for(let f=0;f<r.length;f++){const h=r.charCodeAt(f);n=(n<<5)-n+h,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const h=(n^f*197)&255;i+=h.toString(16).padStart(2,"0")}return i},It=(r,n)=>{let i=r+n;for(let h=0;h<He().iterations;h++)i=qe(i);const f=new Uint8Array(32);for(let h=0;h<32;h++)f[h]=parseInt(i.substring(h*2,h*2+2),16);return f},Mt=(r,n)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let h=0;for(let v=0;v<r.length;v++){const C=v%n.length;h=n[C]+v+h&255,f[v]=h}for(let v=0;v<r.length;v++)i[v]=r[v]^f[v];return i},Ut=r=>new TextEncoder().encode(r),zt=r=>new TextDecoder().decode(r),Yt=r=>{let n="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},Vt=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},Jt=r=>{try{const n=qe(Date.now().toString()+Math.random()).substring(0,He().saltLength*2),i=qe(r+n).substring(0,8),f=It(He().key,n),h=Ut(r),v=Mt(h,f),C=Yt(v);return`${n}.${C}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},Ht=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],h=n[2],v=It(He().key,i),C=Vt(f),x=Mt(C,v),g=zt(x);if(qe(g+i).substring(0,8)!==h)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var oe;(r=>{r.setKey=n=>{Bt({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return Jt(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=Ht(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{Bt({iterations:n,saltLength:i})}})(oe||(oe={}));var ke={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var Ft;function
|
|
39
|
+
*/var Ft;function qt(){if(Ft)return ke;Ft=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(x,g,R){var d,_={},A=null,W=null;R!==void 0&&(A=""+R),g.key!==void 0&&(A=""+g.key),g.ref!==void 0&&(W=g.ref);for(d in g)f.call(g,d)&&!v.hasOwnProperty(d)&&(_[d]=g[d]);if(x&&x.defaultProps)for(d in g=x.defaultProps,g)_[d]===void 0&&(_[d]=g[d]);return{$$typeof:n,type:x,key:A,ref:W,props:_,_owner:h.current}}return ke.Fragment=i,ke.jsx=C,ke.jsxs=C,ke}var Ke={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
42
42
|
*
|
|
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var
|
|
48
|
-
`+ue+e}}var fe=!1,
|
|
49
|
-
`),
|
|
50
|
-
`),
|
|
51
|
-
`+
|
|
47
|
+
*/var Dt;function Kt(){return Dt||(Dt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),ne=Symbol.iterator,we="@@iterator";function Ee(e){if(e===null||typeof e!="object")return null;var t=ne&&e[ne]||e[we];return typeof t=="function"?t:null}var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];ye("error",e,o)}}function ye(e,t,o){{var a=$.ReactDebugCurrentFrame,c=a.getStackAddendum();c!==""&&(t+="%s",o=o.concat([c]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Re=!1,Se=!1,m=!1,k=!1,I=!1,F;F=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===v||I||e===h||e===R||e===d||k||e===W||Re||Se||m||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===C||e.$$typeof===x||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,o){var a=e.displayName;if(a)return a;var c=t.displayName||t.name||"";return c!==""?o+"("+c+")":o}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case v:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return ie(t)+".Consumer";case C:var o=e;return ie(o._context)+".Provider";case g:return ae(e,e.render,"ForwardRef");case _:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case A:{var c=e,p=c._payload,l=c._init;try{return B(l(p))}catch{return null}}}return null}var M=Object.assign,D=0,H,q,K,Oe,je,Ce,Ae;function Pe(){}Pe.__reactDisabledLog=!0;function tt(){{if(D===0){H=console.log,q=console.info,K=console.warn,Oe=console.error,je=console.group,Ce=console.groupCollapsed,Ae=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function rt(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:H}),info:M({},e,{value:q}),warn:M({},e,{value:K}),error:M({},e,{value:Oe}),group:M({},e,{value:je}),groupCollapsed:M({},e,{value:Ce}),groupEnd:M({},e,{value:Ae})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=$.ReactCurrentDispatcher,ue;function Q(e,t,o){{if(ue===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
|
|
48
|
+
`+ue+e}}var fe=!1,ee;{var ot=typeof WeakMap=="function"?WeakMap:Map;ee=new ot}function Te(e,t){if(!e||fe)return"";{var o=ee.get(e);if(o!==void 0)return o}var a;fe=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,tt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(O){a=O}Reflect.construct(e,[],l)}else{try{l.call()}catch(O){a=O}e.call(l.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var s=O.stack.split(`
|
|
49
|
+
`),S=a.stack.split(`
|
|
50
|
+
`),b=s.length-1,y=S.length-1;b>=1&&y>=0&&s[b]!==S[y];)y--;for(;b>=1&&y>=0;b--,y--)if(s[b]!==S[y]){if(b!==1||y!==1)do if(b--,y--,y<0||s[b]!==S[y]){var P=`
|
|
51
|
+
`+s[b].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,P),P}while(b>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,rt(),Error.prepareStackTrace=c}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function nt(e,t,o){return Te(e,!1)}function at(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Te(e,at(e));if(typeof e=="string")return Q(e);switch(e){case R:return Q("Suspense");case d:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return nt(e.render);case _:return te(e.type,t,o);case A:{var a=e,c=a._payload,p=a._init;try{return te(p(c),t,o)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Be={},Ie=$.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(o)}else Ie.setExtraStackFrame(null)}function it(e,t,o,a,c){{var p=Function.call.bind(V);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var S=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(re(c),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",o,l,typeof s),re(null)),s instanceof Error&&!(s.message in Be)&&(Be[s.message]=!0,re(c),E("Failed %s type: %s",o,s.message),re(null))}}}var st=Array.isArray;function de(e){return st(e)}function lt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ct(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Fe(e){if(ct(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lt(e)),Me(e)}var De=$.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},$e,Ne;function ft(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function dt(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function pt(e,t){typeof e.ref=="string"&&De.current}function gt(e,t){{var o=function(){$e||($e=!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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function ht(e,t){{var o=function(){Ne||(Ne=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var mt=function(e,t,o,a,c,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function bt(e,t,o,a,c){{var p,l={},s=null,S=null;o!==void 0&&(Fe(o),s=""+o),dt(t)&&(Fe(t.key),s=""+t.key),ft(t)&&(S=t.ref,pt(t));for(p in t)V.call(t,p)&&!ut.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||S){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&>(l,y),S&&ht(l,y)}return mt(e,s,S,c,a,De.current,l)}}var pe=$.ReactCurrentOwner,We=$.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);We.setExtraStackFrame(o)}else We.setExtraStackFrame(null)}var ge;ge=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Le(){{if(pe.current){var e=B(pe.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function vt(e){return""}var Ue={};function yt(e){{var t=Le();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+
|
|
55
|
+
Check the top-level render call using <`+o+">.")}return t}}function ze(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=yt(t);if(Ue[o])return;Ue[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),U(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.',o,a),U(null)}}function Ye(e,t){{if(typeof e!="object")return;if(de(e))for(var o=0;o<e.length;o++){var a=e[o];he(a)&&ze(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var c=Ee(e);if(typeof c=="function"&&c!==e.entries)for(var p=c.call(e),l;!(l=p.next()).done;)he(l.value)&&ze(l.value,t)}}}function xt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===_))o=t.propTypes;else return;if(o){var a=B(t);it(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ge){ge=!0;var c=B(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"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 _t(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var Ve={};function Je(e,t,o,a,c,p){{var l=L(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 S=vt();S?s+=S:s+=Le();var b;e===null?b="null":de(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(B(e.type)||"Unknown")+" />",s=" 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,s)}var y=bt(e,t,o,c,p);if(y==null)return y;if(l){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var z=0;z<P.length;z++)Ye(P[z],e);Object.freeze&&Object.freeze(P)}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 Ye(P,e)}if(V.call(t,"key")){var N=B(e),O=Object.keys(t).filter(function(Ot){return Ot!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ve[N+me]){var St=O.length>0?"{"+O.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} />`,he,L,jt,L),qe[L+he]=!0}}return e===u?wt(x):_t(x),x}}function Et(e,t,r){return He(e,t,r,!0)}function Rt(e,t,r){return He(e,t,r,!1)}var St=Rt,Ot=Et;Ze.Fragment=u,Ze.jsx=St,Ze.jsxs=Ot}()),Ze}process.env.NODE_ENV==="production"?Zt():Xt();const Qt="0.0.37",Nt={version:Qt},Z={},rt={module:"",v:Nt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:Nt.version});function X(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...o}:n.ROUTER_PARAMS={...rt,...o}}function T(){return se().ROUTER_PARAMS||rt}function be(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...o}:n.ROUTER_PARAMS.LISTENER={...o}}function Q(){return se().ROUTER_PARAMS.LISTENER||rt.LISTENER}var ye;(o=>{function n(){var b;let E=sessionStorage.getItem("f");if(E){if(E=ne.deCode(E),!E)return!1;X({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else X({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?T().page:T().auth,module:T().module});return!0}function l(){Z.id=0,Z.tab="",Z.page=T().page,Z.module=T().module}o.Reset=l;function u({module:b=T().module,page:E=T().page,auth:D=T().auth}){X({page:E,module:b,auth:D}),n()}o.Default=u;function h(b){let E=U=>(X({page:U}),U);const[D,F]=_.useState(C()||b&&E(b)||T().page);return be({page:U=>{F(U)}}),D}o.usePage=h;function v(b,E=!0,D={}){X({page:b,...D}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().page(b)}o.setPage=v;function C(){return T().page}o.getPage=C;function w(b){return T().page===b}o.isPage=w;function d(b,E){const[D,F]=_.useState(p()||b||T().module);return be({module:F}),D}o.useModule=d;function S(b,E=!0){X({module:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().module(b)}o.setModule=S;function p(){return T().module||""}o.getModule=p;function k(b){return T().module===b}o.isModule=k;function I(b,E){if(typeof b!="function"){const[D,F]=_.useState(!E),[U,ae]=_.useState(b||V());return be({tabs:ae}),E&&_.useEffect(()=>{F(!0)},[]),[U,D]}else be({tabs:b})}o.useTabs=I;async function A(b,E=!0){X({tab:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&(Q().tabs&&Q().tabs(b))}o.setTabs=A;function V(){return T().tab}o.getTabs=V;function Re(b){return T().tab===b}o.isTabs=Re;function Se(b){if(typeof b!="function"){const[E,D]=_.useState(b||xe());return be({id:F=>{D(F)}}),E}else be({id:b})}o.useId=Se;function N(b){}o.subId=N;async function R(b,E=!0){X({id:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().id(b)}o.setId=R;function xe(){return T().id}o.getId=xe;function Oe(b){return Number(T().id)===b}o.isId=Oe;async function je(b){var E,D,F,U,ae,ie,B,M;const{page:$,module:H,tab:K,id:G}=b;$!==void 0&&(Z.page=$),H!==void 0&&(Z.module=H),K!==void 0&&(Z.tab=K),G!==void 0&&(Z.id=G),X({...Z}),G!==void 0&&((D=(E=Q()).id)==null||D.call(E,G)),K!==void 0&&((U=(F=Q()).tabs)==null||U.call(F,K)),H!==void 0&&((ie=(ae=Q()).module)==null||ie.call(ae,H)),$!==void 0&&((M=(B=Q()).page)==null||M.call(B,$)),sessionStorage.setItem(T().STORAGE,ne.enCode(T()))}o.navigate=je})(ye||(ye={}));let Xe={};function er(){const[o,n]=_.useState([]);return Xe.set=l=>{n([...o,l])},Xe.del=l=>{o.forEach((u,h)=>{u.key===l&&o.splice(h,1)}),n(o)},o.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:o.map(l=>l.item)})}function tr(o){let n=new Date().getTime();o.key=n,Xe.set({item:c.jsx(rr,{data:o},n),key:n})}function rr(o){const n=o.data;let[l]=_.useState("show"),[u,h]=_.useState(!1);_.useEffect(()=>{setTimeout(function(){h(!0),Xe.del(n.key)},5e3)},[n.key]);let v;switch(n.type){case"error":v=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":v=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":v=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:v="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:u?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":l,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:v}),c.jsx("span",{className:"text",children:n.text})]})})}let Qe={Send:tr,Init:er},Ee=()=>{};const or=({children:o,title:n,isOverlay:l=!0})=>{const[u,h]=_.useState(!1);return Ee=()=>{h(!0),setTimeout(()=>{Ut.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${l?"is-overlay":""} ${u?"closing":""}`,onClick:Ee,children:c.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:v=>v.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Ee,children:"✕"})]}),o]})})},Lt={h:"_h_1g0ig_1",row:"_row_1g0ig_14",column:"_column_1g0ig_17"},Ut=[],zt=(o,n)=>o.findIndex(l=>(l==null?void 0:l.page)===n),nr=({actions:o,children:n,className:l,page:u,setPage:h,direction:v="row"})=>{const[C,w]=_.useState(null),[d,S]=_.useState(u?zt(o||[],u):0);return Ut.onClose=()=>{w(null),S(u?zt(o||[],u):0)},_.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[C,c.jsxs("footer",{className:`${Lt.h} ${Lt[v]} ${l} `,children:[n,o&&o.map((p,k)=>c.jsx("div",{"data-active":d===k?"true":"false",onClick:()=>{p.page&&(S(k),h==null||h(p.page)),p.callback&&(p.callback(),S(k)),p.component&&(d===k?Ee():(w(p.component),S(k)))},children:p.icon},k))]})]})},m=window.Telegram.WebApp,le={is:!1,MainButton:{},BackButton:{}};let W={};W.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"},W.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":"#ffffff"},W.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"},m.getUser=()=>{var o;return((o=m.initDataUnsafe)==null?void 0:o.user)===void 0?{}:m.initDataUnsafe},m.Notice=(o,n,l)=>{var u,h;n!==void 0?(Qe.Send({type:o,text:n,thema:l}),(u=m.HapticFeedback)==null||u.notificationOccurred(o)):(Qe.Send(o),(h=m.HapticFeedback)==null||h.notificationOccurred(o.type))},m.MainButton.callback=[],m.MainButton.set=o=>{le.is?le.MainButton.set(o):(m.MainButton.callback.forEach(n=>{m.MainButton.offClick(n)}),m.MainButton.callback=[],typeof o=="boolean"?m.MainButton.isVisible=!1:(m.MainButton.text=o.text,o.color&&(m.MainButton.color=o.color),o.textColor&&(m.MainButton.textColor=o.textColor),m.MainButton.isVisible=!0,m.MainButton.isActive=o.isActive===void 0?!0:o.isActive,m.MainButton.callback.push(()=>{var n;o.page===void 0?(n=o.callback)==null||n.call(o):ye.setPage(o.page)}),m.MainButton.onClick(m.MainButton.callback[0])))},m.BackButton.state=[!1],m.BackButton.listen=[],m.BackButton.router=o=>{o===!1?(m.BackButton.isVisible=!1,m.BackButton.offClick(m.BackButton.listen[0]),m.BackButton.listen.shift(),m.BackButton.state.length!==1&&m.BackButton.state.pop()):(m.BackButton.isVisible=!0,m.BackButton.offClick(m.BackButton.listen[0]),m.BackButton.listen.shift(),m.BackButton.listen.push(()=>{var l;let n=m.BackButton.state.pop();n.page!==void 0?ye.setPage(n.page):(l=n.callback)==null||l.call(n)}),m.BackButton.onClick(m.BackButton.listen[0]))},m.BackButton.set=o=>{le.is?le.BackButton.set(o):(m.BackButton.state.push(o),m.BackButton.router(o))},m.Header=({dev:o})=>{if(o){let[n,l]=_.useState(!1),[u,h]=_.useState(!1),[v,C]=_.useState("dark"),[w,d]=_.useState(!1),[S,p]=_.useState(!1);le.is=!0,le.MainButton.set=l,le.BackButton.set=h,_.useEffect(()=>{W[v]["--tg-theme-bg-color-alpha"]=W[v]["--tg-theme-bg-color"]+"b3",W[v]["--tg-theme-secondary-bg-color-alpha"]=W[v]["--tg-theme-secondary-bg-color"]+"d3";for(let A in W[v])document.documentElement.style.setProperty(A,W[v][A]);m.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let k=A=>{for(let V in W[A])document.documentElement.style.setProperty(V,W[A][V]);C(A),d(!1)},I=()=>{d(!1),p(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[u===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var A;u.page===void 0?(A=u.callback)==null||A.call(u):ye.setPage(u.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>d(!w),children:"Меню"})]}),c.jsx(Qe.Init,{}),n&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{n.page&&ye.setPage(n.page),n.callback&&n.callback()},children:n.text})}),w?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:I,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>k("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>k("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>k("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d(!w),children:"Closed"})})]})]}):"",S?c.jsx(ar,{setAuthorization:p}):""]})}else return _.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",m.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",m.themeParams.bg_color+"b3"),m.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(Qe.Init,{})})},m.Modal=tt,m.Footer=nr,m.FooterMenu=or,m.toggleFooterMenu=Ee;const ar=({setAuthorization:o})=>{let n={},l=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:l,children:" Сохранить "})]})})};return m});
|
|
60
|
+
<%s key={someKey} {...props} />`,me,N,St,N),Ve[N+me]=!0}}return e===f?_t(y):xt(y),y}}function kt(e,t,o){return Je(e,t,o,!0)}function wt(e,t,o){return Je(e,t,o,!1)}var Et=wt,Rt=kt;Ke.Fragment=f,Ke.jsx=Et,Ke.jsxs=Rt}()),Ke}process.env.NODE_ENV==="production"?qt():Kt();const Gt="0.0.37",$t={version:Gt},G={},et={module:"",v:$t.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:$t.version});function Z(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...et,...r}}function j(){return se().ROUTER_PARAMS||et}function be(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function X(){return se().ROUTER_PARAMS.LISTENER||et.LISTENER}var ve;(r=>{function n(){var m;let k=sessionStorage.getItem("f");if(k){if(k=oe.deCode(k),!k)return!1;Z({id:k.id,tab:k.tab,page:k.page,module:k.module,time:k.time,payment:{active:!0},module_admin:k.module_admin})}else Z({id:0,tab:"",page:(m=localStorage.getItem("d"))!=null&&m.length?j().page:j().auth,module:j().module});return!0}function i(){G.id=0,G.tab="",G.page=j().page,G.module=j().module}r.Reset=i;function f({module:m=j().module,page:k=j().page,auth:I=j().auth}){Z({page:k,module:m,auth:I}),n()}r.Default=f;function h(m){let k=L=>(Z({page:L}),L);const[I,F]=w.useState(C()||m&&k(m)||j().page);return be({page:L=>{F(L)}}),I}r.usePage=h;function v(m,k=!0,I={}){Z({page:m,...I}),sessionStorage.setItem(j().STORAGE,oe.enCode(j())),k&&X().page(m)}r.setPage=v;function C(){return j().page}r.getPage=C;function x(m){return j().page===m}r.isPage=x;function g(m,k){const[I,F]=w.useState(d()||m||j().module);return be({module:F}),I}r.useModule=g;function R(m,k=!0){Z({module:m}),sessionStorage.setItem(j().STORAGE,oe.enCode(j())),k&&X().module(m)}r.setModule=R;function d(){return j().module||""}r.getModule=d;function _(m){return j().module===m}r.isModule=_;function A(m,k){if(typeof m!="function"){const[I,F]=w.useState(!k),[L,ae]=w.useState(m||ne());return be({tabs:ae}),k&&w.useEffect(()=>{F(!0)},[]),[L,I]}else be({tabs:m})}r.useTabs=A;async function W(m,k=!0){Z({tab:m}),sessionStorage.setItem(j().STORAGE,oe.enCode(j())),k&&(X().tabs&&X().tabs(m))}r.setTabs=W;function ne(){return j().tab}r.getTabs=ne;function we(m){return j().tab===m}r.isTabs=we;function Ee(m){if(typeof m!="function"){const[k,I]=w.useState(m||ye());return be({id:F=>{I(F)}}),k}else be({id:m})}r.useId=Ee;function $(m){}r.subId=$;async function E(m,k=!0){Z({id:m}),sessionStorage.setItem(j().STORAGE,oe.enCode(j())),k&&X().id(m)}r.setId=E;function ye(){return j().id}r.getId=ye;function Re(m){return Number(j().id)===m}r.isId=Re;async function Se(m){var k,I,F,L,ae,ie,B,M;const{page:D,module:H,tab:q,id:K}=m;D!==void 0&&(G.page=D),H!==void 0&&(G.module=H),q!==void 0&&(G.tab=q),K!==void 0&&(G.id=K),Z({...G}),K!==void 0&&((I=(k=X()).id)==null||I.call(k,K)),q!==void 0&&((L=(F=X()).tabs)==null||L.call(F,q)),H!==void 0&&((ie=(ae=X()).module)==null||ie.call(ae,H)),D!==void 0&&((M=(B=X()).page)==null||M.call(B,D)),sessionStorage.setItem(j().STORAGE,oe.enCode(j()))}r.navigate=Se})(ve||(ve={}));let Ge={};function Zt(){const[r,n]=w.useState([]);return Ge.set=i=>{n([...r,i])},Ge.del=i=>{r.forEach((f,h)=>{f.key===i&&r.splice(h,1)}),n(r)},r.length===0?u.jsx(u.Fragment,{}):u.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function Xt(r){let n=new Date().getTime();r.key=n,Ge.set({item:u.jsx(Qt,{data:r},n),key:n})}function Qt(r){const n=r.data;let[i]=w.useState("show"),[f,h]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){h(!0),Ge.del(n.key)},5e3)},[n.key]);let v;switch(n.type){case"error":v=u.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":v=u.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":v=u.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:v="icon fa fa-exclamation-circle";break}return u.jsx(u.Fragment,{children:f?u.jsx(u.Fragment,{}):u.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[u.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:v}),u.jsx("span",{className:"text",children:n.text})]})})}let Ze={Send:Xt,Init:Zt},er=()=>{};const Nt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},tr=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),rr=({actions:r,children:n,className:i,page:f,setPage:h,direction:v="row"})=>{const[C,x]=w.useState(null),[g,R]=w.useState(f?tr(r||[],f):0);return w.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),u.jsxs(u.Fragment,{children:[C,u.jsxs("footer",{className:`${Nt.h} ${Nt[v]} ${i} `,children:[n,r&&r.map((d,_)=>u.jsx("div",{"data-active":g===_?"true":"false",onClick:()=>{d.page&&(R(_),h==null||h(d.page)),d.callback&&(d.callback(),R(_)),d.component&&(g===_||(x(d.component),R(_)))},children:d.icon},_))]})]})},le={is:!1,MainButton:{},BackButton:{}};let Y={};Y.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"},Y.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":"#ffffff"},Y.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 or=()=>{if(location.hostname==="localhost"){let[r,n]=w.useState(!1),[i,f]=w.useState(!1),[h,v]=w.useState("dark"),[C,x]=w.useState(!1),[g,R]=w.useState(!1);le.is=!0,le.MainButton.set=n,le.BackButton.set=f,w.useEffect(()=>{Y[h]["--tg-theme-bg-color-alpha"]=Y[h]["--tg-theme-bg-color"]+"b3",Y[h]["--tg-theme-secondary-bg-color-alpha"]=Y[h]["--tg-theme-secondary-bg-color"]+"d3";for(let A in Y[h])document.documentElement.style.setProperty(A,Y[h][A]);T.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let d=A=>{for(let W in Y[A])document.documentElement.style.setProperty(W,Y[A][W]);v(A),x(!1)},_=()=>{x(!1),R(!0)};return u.jsxs(u.Fragment,{children:[u.jsxs("header",{className:"debug",children:[i===!1?u.jsx("div",{className:"b",children:"Отмена"}):u.jsx("div",{onClick:()=>{var A;i.page===void 0?(A=i.callback)==null||A.call(i):ve.setPage(i.page)},className:"b",children:"Назад"}),u.jsx("div",{className:"o",onClick:()=>x(!C),children:"Меню"})]}),u.jsx(Ze.Init,{}),r&&u.jsx("div",{className:"mb",children:u.jsx("button",{onClick:()=>{r.page&&ve.setPage(r.page),r.callback&&r.callback()},children:r.text})}),C?u.jsxs("div",{className:"tm",children:[u.jsxs("ul",{children:[u.jsx("li",{children:u.jsx("button",{onClick:_,children:"Authorization"})}),u.jsx("li",{})]}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx("button",{children:"Thema"}),u.jsxs("ol",{children:[u.jsx("li",{children:u.jsx("button",{onClick:()=>d("dark"),children:"Dark"})}),u.jsx("li",{children:u.jsx("button",{onClick:()=>d("light"),children:"Light"})}),u.jsx("li",{children:u.jsx("button",{onClick:()=>d("users"),children:"Users"})})]})]}),u.jsx("li",{children:u.jsx("button",{onClick:()=>x(!C),children:"Closed"})})]})]}):"",g?u.jsx(nr,{setAuthorization:R}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",T.default.WebApp.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",T.default.WebApp.themeParams.bg_color+"b3"),T.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),u.jsx(u.Fragment,{children:u.jsx(Ze.Init,{})})};T.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,f)=>{var h,v;i!==void 0?(Ze.Send({type:n,text:i,thema:f}),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(n)):(Ze.Send(n),(v=r.WebApp.HapticFeedback)==null||v.notificationOccurred(n.type))},r.Header=or,r.Footer=rr,r.toggleFooterMenu=er,r.Modal=Qe,r.MainButton={callback:[],set:n=>{le.is?le.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton={state:[!1],listen:[],router:n=>{n===!1?(r.WebApp.BackButton.isVisible=!1,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.WebApp.BackButton.state.length!==1&&r.WebApp.BackButton.state.pop()):(r.WebApp.BackButton.isVisible=!0,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.BackButton.listen.push(()=>{var f;let i=r.WebApp.BackButton.state.pop();i.page!==void 0?ve.setPage(i.page):(f=i.callback)==null||f.call(i)}),r.WebApp.BackButton.onClick(r.BackButton.listen[0]))},set:n=>{le.is?le.BackButton.set(n):(r.BackButton.state.push(n),r.BackButton.router(n))}}})(T.default||(T.default={}));const nr=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return u.jsx("div",{className:"ta",children:u.jsxs("div",{className:"--body",children:[u.jsx("fieldset",{}),u.jsx("div",{onClick:i,children:" Сохранить "})]})})},{Header:ar,Footer:ir,toggleFooterMenu:sr,Modal:lr,MainButton:cr,BackButton:ur}=T.default;T.BackButton=ur,T.Footer=ir,T.Header=ar,T.MainButton=cr,T.Modal=lr,T.toggleFooterMenu=sr,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|