elcrm 0.8.53 → 0.8.54

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/Api/Api.d.ts CHANGED
@@ -12,4 +12,4 @@ export declare function remoute(url: string, link: string, data?: {}): Promise<a
12
12
  export declare function telegram(type: string, data?: {}): Promise<any>;
13
13
  export declare function yandex(type: string, data?: {}): Promise<any>;
14
14
  export declare function backup(type: string, data?: {}): Promise<any>;
15
- export declare function token(s?: any): Promise<any>;
15
+ export declare function token(s?: any): string;
package/dist/index.es.js CHANGED
@@ -423,7 +423,7 @@ async function Ir(e, t = {}) {
423
423
  return { status: "error" };
424
424
  }
425
425
  }
426
- async function Tr(e = "qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31") {
426
+ function Tr(e = "qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31") {
427
427
  return e[(e.length / 2).toFixed()] + e[(e.length / 3).toFixed()] + e[(e.length / 4).toFixed()] + e[(e.length / 2).toFixed()];
428
428
  }
429
429
  const an = {
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(S,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],p):(S=typeof globalThis<"u"?globalThis:S||self,p((S.elCRM=S.elCRM||{},S.elCRM.components={}),S.React))})(this,function(S,p){"use strict";var Ts=Object.defineProperty;var Ds=(S,p,me)=>p in S?Ts(S,p,{enumerable:!0,configurable:!0,writable:!0,value:me}):S[p]=me;var At=(S,p,me)=>(Ds(S,typeof p!="symbol"?p+"":p,me),me);var me=document.createElement("style");me.textContent=`@charset "UTF-8";._notice_9i5tr_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_9i5tr_2 ._error_9i5tr_9{color:#bb2014}._notice_9i5tr_2 ._success_9i5tr_12{color:#367738}._notice_9i5tr_2 ._remark_9i5tr_15{color:#b77513}._notice_9i5tr_2 ._copy_9i5tr_18{color:#3f51b5}._notice_9i5tr_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_9i5tr_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_9i5tr_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}._notice_9i5tr_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_9i5tr_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_9i5tr_1{0%{opacity:1}to{opacity:0}}._alerts_1pds5_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1pds5_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1pds5_1 .4s 0s both;animation:_menuAnimation_1pds5_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1pds5_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1pds5_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1pds5_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1pds5_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1pds5_1 .2s 0s both;animation:_menuItemAnimation_1pds5_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1pds5_1 button[color=blue]{color:#1b6ac0}._alerts_1pds5_1 button[color=red]{color:#c21c0d}._alerts_1pds5_1 button:hover{background:var(--system-hover)}._alerts_1pds5_1 ._--body_1pds5_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1pds5_111 ._--form_1pds5_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}._al_1pds5_1{display:flex;color:#fff;font-weight:700;height:40px;align-items:center}._al_1pds5_1 svg{fill:#fff;width:25px;height:25px;margin:0 15px}._al_1pds5_1[active=success]{background:#4caf51}._al_1pds5_1[active=error]{background:#f44336}._al_1pds5_1[active=remark]{background:#ff9800}._al_1pds5_1[active=none],._al_1pds5_1[active="0"]{display:none}._al_1pds5_1[active="1"]{background:#ff9800}._al_1pds5_1[active="2"]{background:#f44336}._al_1pds5_1[active="3"]{background:#4caf51}._al_1pds5_1[active="4"]{background:#abb6d2}._al_1pds5_1[active="5"]{background:#506290}._al_1pds5_1 button{height:30px;line-height:30px;padding:0 20px;font-weight:400;margin-left:20px;background:#e6e6e6}._n_euuvm_1{flex:0 0 50px;cursor:pointer;color:#fff;border-right:1px solid #000;display:flex;justify-content:center;align-items:center}._n_euuvm_1 svg{width:30px;height:30px;color:#fff}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_11p39_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_11p39_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_11p39_1;animation-name:_shake_11p39_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_11p39_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_11p39_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_11p39_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_11p39_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_11p39_107{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_11p39_121{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_11p39_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_11p39_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_11p39_121 li:last-child{border-bottom:0}._l_11p39_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_11p39_159{padding-right:10px}._m_11p39_73{flex:1}._x_11p39_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_11p39_167 svg{width:20px}._s_11p39_177{flex:1;overflow-y:scroll}._c_11p39_182{text-align:center;margin:20px}._f_11p39_187{padding:0 20px;display:flex;flex-direction:column}._f_11p39_187 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_11p39_187 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_11p39_187 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_11p39_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_11p39_167:hover{opacity:1}._btn_11p39_230{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._g_11p39_243{display:flex;gap:10px}._c_11p39_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_11p39_182:first-child{margin-left:20px}._c_11p39_182:last-child{margin-right:20px}._c_11p39_182:hover{opacity:1;background:var(--tinge)}._c_11p39_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_11p39_182 b{text-align:center;display:block;color:var(--color)}._c_11p39_182 p{text-align:center;font-size:15px;color:var(--text)}._btn_11p39_230:hover{opacity:1}._modal_11p39_73._size-a_11p39_296 ._w_11p39_14{width:auto}._modal_11p39_73._size-s_11p39_300 ._w_11p39_14{width:400px}._modal_11p39_73._size-m_11p39_304 ._w_11p39_14{width:500px}._modal_11p39_73._size-l_11p39_308 ._w_11p39_14{width:800px}._modal_11p39_73._size-x_11p39_312 ._w_11p39_14{width:1000px}._modal_11p39_73._size-f_11p39_316 ._w_11p39_14{width:100%;max-width:1200px;min-width:910px}._btn_11p39_230._confirm_11p39_322{background:#4caf50;color:#fff}._btn_11p39_230._cancel_11p39_327{background:#f44336;color:#fff}._btn_11p39_230._disabled_11p39_332,._btn_11p39_230._await_11p39_339{background:#efefef;color:#000;opacity:1;cursor:default}._m_11p39_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_11p39_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_11p39_73 big i:hover{box-shadow:var(--inset)}._m_11p39_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_11p39_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_11p39_73 span._active_11p39_389{box-shadow:var(--inset);color:var(--color)}._coincidence_11p39_395{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_11p39_395 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_11p39_395 dl{display:flex;padding:0;margin:5px}._coincidence_11p39_395 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_11p39_431{width:auto}._ss_11p39_435{width:400px}._sm_11p39_439{width:500px}._sl_11p39_443{width:800px}._sx_11p39_447{width:1000px}._sf_11p39_451{width:100%;max-width:1200px;min-width:910px}button{background:#b95656;font-weight:700}._btn_1hz2s_6{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._confirm_1hz2s_19{background:#4caf50;color:#fff}._h_1usnu_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._g_1usnu_11{display:flex;gap:5px}._hr_1usnu_16{text-align:center;position:absolute;display:flex;top:0;right:0;align-items:center;gap:6px;padding-right:4px;height:35px}._hl_1usnu_28{text-align:center;position:absolute;display:flex;top:0;left:0;align-items:center;gap:6px;padding-left:4px;height:35px}._t_1usnu_40{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_1usnu_60{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1usnu_69{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1usnu_76{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._o_1usnu_76 ul{border-top:1px solid var(--separator);display:flex;flex-direction:column;gap:1px;background:var(--separator)}._o_1usnu_76 li{background:var(--content);display:flex}._o_1usnu_76 li[data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}._l_1usnu_105{flex:1;overflow:hidden;overflow-y:scroll;border-radius:0 0 5px 5px}._l_1usnu_105:last-child{border-radius:0}._hh_1usnu_115{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._c_1usnu_128{width:300px;height:150px;margin:auto;border-radius:5px;text-align:center;background:#0000004a;line-height:150px;color:#fff}[type=load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}[type=load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}[type=load] i:nth-last-child(1){animation:_loadingB_1usnu_1 1.5s 1s infinite}[type=load] i:nth-last-child(2){animation:_loadingB_1usnu_1 1.5s .5s infinite}[type=load] i:nth-last-child(3){animation:_loadingB_1usnu_1 1.5s 0s infinite}@keyframes _loadingB_1usnu_1{0%{width:15px}50%{width:35px}to{width:15px}}._m_1usnu_180{-webkit-app-region:no-drag;overflow:hidden;border-radius:5px;margin-top:5px;background:#fff;display:block;min-height:35px;padding:10px;text-align:justify;white-space:pre-line}._m_1usnu_180 dd{min-height:35px}._ul_1usnu_196{overflow:hidden;border-radius:0;background:var(--separator);list-style-type:none;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}._ul_1usnu_196 li{display:flex;font-size:12px;min-height:25px;cursor:pointer;align-items:center;gap:1px}._ul_1usnu_196 span{background:var(--content);flex:1;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._f_1usnu_226{border-top:1px solid var(--separator)}._f_1usnu_226 dl{display:flex;border-bottom:1px solid #ddd;margin:0}._f_1usnu_226 dt{flex:0 120px;font-size:13px;color:#999;margin:0;padding:6px 0 5px 9px}._f_1usnu_226 dd{flex:1;margin:0;border-left:1px solid #ddd;padding:5px;font-size:15px;min-height:17px;margin-inline-start:0px;overflow:hidden;overflow-x:scroll}._f_1usnu_226[edit] [edit=true]{color:red}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_dva4m_2{width:100%;overflow:auto}._setting_dva4m_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_dva4m_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_dva4m_2 nav li[tabs-active=true]{opacity:1}._setting_dva4m_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_dva4m_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_dva4m_2 li{font-size:20px;line-height:40px}._setting_dva4m_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;color:var(--setting-color);background:var(--setting-bg)}._setting_dva4m_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_dva4m_2 dt{flex:1;padding:0 15px}._setting_dva4m_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_dva4m_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_dva4m_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_dva4m_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_dva4m_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_dva4m_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_dva4m_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_dva4m_2 [role=button]:hover{background:var(--setting-action)}._setting_dva4m_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_dva4m_2 [role=button-outline]:hover{background:#00000038}._setting_dva4m_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_dva4m_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_dva4m_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_dva4m_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_dva4m_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_dva4m_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}._s_18bde_1{flex:1;overflow:scroll}._s_18bde_1 [data-load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._s_18bde_1 [data-load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._s_18bde_1 [data-load] i:nth-last-child(1){animation:_loadingB_18bde_1 1.5s 1s infinite}._s_18bde_1 [data-load] i:nth-last-child(2){animation:_loadingB_18bde_1 1.5s .5s infinite}._s_18bde_1 [data-load] i:nth-last-child(3){animation:_loadingB_18bde_1 1.5s 0s infinite}._ul_18bde_31{overflow:hidden;border-radius:0 0 5px 5px;background:var(--separator);display:block;list-style-type:none;list-style:none;padding:0;margin:0}._ul_18bde_31 [data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}@keyframes _loadingB_18bde_1{0%{width:15px}50%{width:35px}to{width:15px}}._o_1afu9_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1afu9_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:#394264;z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1afu9_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1afu9_11 [grid-month]{display:grid;grid-template-columns:35px 35px 35px 35px}._c_1afu9_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1afu9_11 b:hover{background:#00000073}._c_1afu9_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_1afu9_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1afu9_11 i:hover{background:#00000073}._c_1afu9_11 i:before{cursor:pointer;display:block}._c_1afu9_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1afu9_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1afu9_11 span{padding:2px;text-align:center}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password] dd:before{-webkit-text-security:none}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}._spinner_1ul0m_1{fill:#fff;display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_1ul0m_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}._l_1ul0m_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_1ul0m_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._l_1ul0m_75 i:nth-last-child(1){animation:_loadingB_1ul0m_1 1.5s 1s infinite}._l_1ul0m_75 i:nth-last-child(2){animation:_loadingB_1ul0m_1 1.5s .5s infinite}._l_1ul0m_75 i:nth-last-child(3){animation:_loadingB_1ul0m_1 1.5s 0s infinite}@keyframes _loadingB_1ul0m_1{0%{width:15px}50%{width:35px}to{width:15px}}._s_t9swc_1{flex:0 0 200px;cursor:text;text-align:left;line-height:30px;max-width:200px;overflow:hidden;white-space:nowrap;outline:none;height:30px;padding:0 5px 0 10px;color:#fff;margin-top:10px;margin-left:5px;background:#0000004d;border:1px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:inset 0 -5px 45px #64646433,0 1px 1px #fff3}._s_t9swc_1:empty:before{content:attr(placeholder);display:block;color:#ccc}._f_q3r0i_1{flex:0 0 50px;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}._f_q3r0i_1 svg{width:30px;height:30px;color:#fff}._f_q3r0i_1 i{width:15px;height:15px;color:#fff;position:absolute;background:red;border-radius:50%;font-style:normal;top:5px;right:0;display:flex;align-items:center;justify-content:center;padding:10px}._p_djnh1_1{background:#fff;display:none;height:35px;line-height:35px;margin-top:2px;display:flex}._p_djnh1_1 span{flex:1 1;display:flex;text-align:center;cursor:pointer;color:#999;font-style:normal}._p_djnh1_1 span[active]{color:#000}._p_djnh1_1 i{cursor:pointer;flex:0 1 40px;align-items:center;display:flex;fill:#999;justify-content:center}._p_djnh1_1 i:hover{fill:#000}._p_djnh1_1 i:first-child{transform:rotate(180deg)}._p_djnh1_1 svg{width:20px}._l_djnh1_38{flex:1;overflow:scroll}
2
- `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},Y={},Se={},Gt={},de={};let ot="M06";function ra(e){ot=e}function oa(){return ot}function sa(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function la(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),Y.page(C.page)}function da(e){return localStorage.setItem("d",e)}function ca(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function _a(e){return localStorage.setItem("a",e)}function ua(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function fa(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function ma(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return Y.page=a,[e]}function pa(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.page(e)}function Zt(){return C.page}function ha(e){return C.page===e}function xa(e){if(typeof e!="function"){const[t,a]=p.useState(e||Kt()),i=r=>{a(r)};return Y.module=i,[t]}else Y.module=e}function ga(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.module(e)}function Kt(){return C.module}function va(e){return C.module===e}function ba(e){if(typeof e!="function"){const[t,a]=p.useState(e||Ye());return Y.tabs=a,[t]}else Y.tabs=e}function ka(e,t=!0){if(C.tab=e,sessionStorage.setItem("f",F.enCode(C)),!!t)if(Y.tabs)Y.tabs(e);else throw new Error("useTabs not found")}function Ye(){return C.tab}function ya(e){return C.tab===e}function wa(e){if(typeof e!="function"){const[t,a]=p.useState(e||Wt()),i=r=>{a(r)};return Y.id=i,[t]}else Y.id=e}function Ca(e){Y.id=e}function ja(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.id(e)}function Wt(){return C.id}function Sa(e){return Number(C.id)===e}function Ea(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),Y.module(e),Y.tabs(t)}function Na(e){Se.data=e[0],delete Se.data.id,document.body.dataset.theme=Se.data.s15,localStorage.setItem("s",F.enCode(Se.data))}function Ia(e,t){Se.data[e]=t,localStorage.setItem("s",F.enCode(Se.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Ut(e){localStorage.setItem("m",F.enCode({data:e}))}function Da(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Ma(e){Y.sort=e}function Vt(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ye()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ye()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Yt(e){localStorage.setItem("c",F.enCode(e))}function Ht(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function $a(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function ke(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){Gt.data=e}function Ba(e){return Gt.data[e]}function La(e){C.payment=e}function Pa(){return C.payment}function qt(e){localStorage.setItem("u",F.enCode(e))}function Ra(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Jt(e){localStorage.setItem("e",F.enCode(e))}function za(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function Oa(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Aa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Ga(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:da,getSSID:ca,getPORT:st,setPORT:fa,setAUTH:_a,getAUTH:ua,Logaut:ne,Start:la,setMenu:Ut,getMenu:Da,useSort:Ma,setSort:Vt,getSort:lt,setCompany:Yt,getCompany:Ht,setSelect:Me,addSelect:$a,getSelect:ke,setApi:Fa,getApi:Ba,setPayment:La,getPayment:Pa,setUser:qt,getUser:Ra,getDefaultModules:oa,getBase:Aa,setBase:Ga,editBase:Za,loadBase:Oa},Xt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",Ka=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Qt=typeof window<"u"&&window.Blob&&new Blob([Ka(Xt)],{type:"text/javascript;charset=utf-8"});function en(e){let t;try{if(t=Qt&&(window.URL||window.webkitURL).createObjectURL(Qt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Xt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ua(e){return e&&(pe.a=e),pe.a}function Va(e){return e&&(pe.c=e),pe.c}function Ya(e){return e&&(pe.h=e),pe.h}const $e={version:{Api:Ua,Server:Wa,Client:Va},Host:Ya};let Ha="api",qa="elcrm",Ja="online";function Xa(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let dt=`${Ha}.${qa}.${Ja}`;function Qa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Fe(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new en;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:$e.Host()||`https://${dt}/`})})}async function ei(e,t={},a=ae.getAUTH()){try{return await(await Fe($e.Host()||`https://${dt}/`+e,{method:"POST",headers:{ssid:a},body:t})).json()}catch(i){return{status:"error",message:i}}}function ti(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new en;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:$e.Host()+"modules/"||`https://${dt}/modules`})})}function ni(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Fe(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let tn={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ai(e,t,a={}){try{return await(await Fe("https://"+e+"/"+t,{method:"POST",headers:tn,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ii(e,t={}){try{return await(await Fe("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:tn,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}async function ri(e="qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31"){return e[(e.length/2).toFixed()]+e[(e.length/3).toFixed()]+e[(e.length/4).toFixed()]+e[(e.length/2).toFixed()]}const ct={audio:Qa,fetch:Fe,modules:ti,remoute:ai,url:Xa,telegram:ii,use:ni,token:ri,formData:ei};var _t={exports:{}},Be={};/**
2
+ `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},Y={},Se={},Gt={},de={};let ot="M06";function ra(e){ot=e}function oa(){return ot}function sa(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function la(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),Y.page(C.page)}function da(e){return localStorage.setItem("d",e)}function ca(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function _a(e){return localStorage.setItem("a",e)}function ua(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function fa(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function ma(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return Y.page=a,[e]}function pa(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.page(e)}function Zt(){return C.page}function ha(e){return C.page===e}function xa(e){if(typeof e!="function"){const[t,a]=p.useState(e||Kt()),i=r=>{a(r)};return Y.module=i,[t]}else Y.module=e}function ga(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.module(e)}function Kt(){return C.module}function va(e){return C.module===e}function ba(e){if(typeof e!="function"){const[t,a]=p.useState(e||Ye());return Y.tabs=a,[t]}else Y.tabs=e}function ka(e,t=!0){if(C.tab=e,sessionStorage.setItem("f",F.enCode(C)),!!t)if(Y.tabs)Y.tabs(e);else throw new Error("useTabs not found")}function Ye(){return C.tab}function ya(e){return C.tab===e}function wa(e){if(typeof e!="function"){const[t,a]=p.useState(e||Wt()),i=r=>{a(r)};return Y.id=i,[t]}else Y.id=e}function Ca(e){Y.id=e}function ja(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.id(e)}function Wt(){return C.id}function Sa(e){return Number(C.id)===e}function Ea(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),Y.module(e),Y.tabs(t)}function Na(e){Se.data=e[0],delete Se.data.id,document.body.dataset.theme=Se.data.s15,localStorage.setItem("s",F.enCode(Se.data))}function Ia(e,t){Se.data[e]=t,localStorage.setItem("s",F.enCode(Se.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Ut(e){localStorage.setItem("m",F.enCode({data:e}))}function Da(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Ma(e){Y.sort=e}function Vt(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ye()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ye()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Yt(e){localStorage.setItem("c",F.enCode(e))}function Ht(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function $a(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function ke(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){Gt.data=e}function Ba(e){return Gt.data[e]}function La(e){C.payment=e}function Pa(){return C.payment}function qt(e){localStorage.setItem("u",F.enCode(e))}function Ra(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Jt(e){localStorage.setItem("e",F.enCode(e))}function za(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function Oa(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Aa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Ga(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:da,getSSID:ca,getPORT:st,setPORT:fa,setAUTH:_a,getAUTH:ua,Logaut:ne,Start:la,setMenu:Ut,getMenu:Da,useSort:Ma,setSort:Vt,getSort:lt,setCompany:Yt,getCompany:Ht,setSelect:Me,addSelect:$a,getSelect:ke,setApi:Fa,getApi:Ba,setPayment:La,getPayment:Pa,setUser:qt,getUser:Ra,getDefaultModules:oa,getBase:Aa,setBase:Ga,editBase:Za,loadBase:Oa},Xt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",Ka=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Qt=typeof window<"u"&&window.Blob&&new Blob([Ka(Xt)],{type:"text/javascript;charset=utf-8"});function en(e){let t;try{if(t=Qt&&(window.URL||window.webkitURL).createObjectURL(Qt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Xt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ua(e){return e&&(pe.a=e),pe.a}function Va(e){return e&&(pe.c=e),pe.c}function Ya(e){return e&&(pe.h=e),pe.h}const $e={version:{Api:Ua,Server:Wa,Client:Va},Host:Ya};let Ha="api",qa="elcrm",Ja="online";function Xa(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let dt=`${Ha}.${qa}.${Ja}`;function Qa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Fe(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new en;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:$e.Host()||`https://${dt}/`})})}async function ei(e,t={},a=ae.getAUTH()){try{return await(await Fe($e.Host()||`https://${dt}/`+e,{method:"POST",headers:{ssid:a},body:t})).json()}catch(i){return{status:"error",message:i}}}function ti(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new en;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:$e.Host()+"modules/"||`https://${dt}/modules`})})}function ni(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Fe(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let tn={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ai(e,t,a={}){try{return await(await Fe("https://"+e+"/"+t,{method:"POST",headers:tn,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ii(e,t={}){try{return await(await Fe("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:tn,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}function ri(e="qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31"){return e[(e.length/2).toFixed()]+e[(e.length/3).toFixed()]+e[(e.length/4).toFixed()]+e[(e.length/2).toFixed()]}const ct={audio:Qa,fetch:Fe,modules:ti,remoute:ai,url:Xa,telegram:ii,use:ni,token:ri,formData:ei};var _t={exports:{}},Be={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "0.8.53",
3
+ "version": "0.8.54",
4
4
  "description": "React framework for creating modules for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",