elcrm 0.9.53 → 0.9.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/Store/Store.d.ts +2 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/Store/Store.d.ts
CHANGED
|
@@ -53,5 +53,7 @@ export declare function setBookmarks(j: any): void;
|
|
|
53
53
|
export declare function getBookmarks(): any;
|
|
54
54
|
export declare function loadBase(array: any): void;
|
|
55
55
|
export declare function getBase(n: string): any;
|
|
56
|
+
export declare function setData(n: string, v: any): void;
|
|
57
|
+
export declare function getData(n?: string): any;
|
|
56
58
|
export declare function setBase(n: string, j: any): void;
|
|
57
59
|
export declare function editBase(n: string, j: any, d: any): void;
|
package/dist/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ function Ha(e) {
|
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
29
|
function ie() {
|
|
30
|
-
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
30
|
+
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t"].forEach(
|
|
31
31
|
(e) => localStorage.removeItem(e)
|
|
32
32
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
33
33
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(T,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(T=typeof globalThis<"u"?globalThis:T||self,m((T.elCRM=T.elCRM||{},T.elCRM.components={}),T.React))})(this,function(T,m){"use strict";var Ll=Object.defineProperty;var Bl=(T,m,Ce)=>m in T?Ll(T,m,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):T[m]=Ce;var Yt=(T,m,Ce)=>Bl(T,typeof m!="symbol"?m+"":m,Ce);var Ce=document.createElement("style");Ce.textContent=`@charset "UTF-8";._notice_13j98_2{position:absolute;top:var(--notice-top);left:var(--notice-left);right:var(--notice-right);bottom:var(--notice-bottom);z-index:1111;font-family:var(--notice-family)}._notice_13j98_2 ._error_13j98_11{color:var(--notice-error, #bb2014)}._notice_13j98_2 ._success_13j98_14{color:var(--notice-success, #367738)}._notice_13j98_2 ._remark_13j98_17{color:var(--notice-remark, #b77513)}._notice_13j98_2 ._copy_13j98_20{color:var(--notice-copy, #3f51b5)}._notice_13j98_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_13j98_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_13j98_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_13j98_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_13j98_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_13j98_1 1s 1;animation-fill-mode:forwards}._notice_13j98_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_13j98_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_13j98_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_13j98_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_1qr0c_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_1qr0c_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_1qr0c_1;animation-name:_shake_1qr0c_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_1qr0c_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_1qr0c_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_1qr0c_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_1qr0c_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_1qr0c_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_1qr0c_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_1qr0c_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_1qr0c_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_1qr0c_121 li:last-child{border-bottom:0}._l_1qr0c_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_1qr0c_159{padding-right:10px}._m_1qr0c_73{flex:1}._x_1qr0c_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_1qr0c_167 svg{width:20px}._s_1qr0c_177{flex:1;overflow-y:scroll}._c_1qr0c_182{text-align:center;margin:20px}._f_1qr0c_187{padding:0 20px;display:flex;flex-direction:column}._f_1qr0c_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_1qr0c_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_1qr0c_187._row_1qr0c_209 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_1qr0c_187._row_1qr0c_209 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_1qr0c_187._col_1qr0c_221 dt{padding-bottom:8px;margin-left:7px}._x_1qr0c_167:hover{opacity:1}._g_1qr0c_230{display:flex;gap:10px;overflow:hidden}._c_1qr0c_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_1qr0c_182:first-child{margin-left:20px}._c_1qr0c_182:last-child{margin-right:20px}._c_1qr0c_182:hover{opacity:1;background:var(--tinge)}._c_1qr0c_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_1qr0c_182 b{text-align:center;display:block;color:var(--color)}._c_1qr0c_182 p{text-align:center;font-size:15px;color:var(--text)}._modal_1qr0c_73._size-a_1qr0c_280 ._w_1qr0c_14{width:auto;margin:auto 20px}._modal_1qr0c_73._size-s_1qr0c_285 ._w_1qr0c_14{width:400px}._modal_1qr0c_73._size-m_1qr0c_289 ._w_1qr0c_14{width:500px}._modal_1qr0c_73._size-l_1qr0c_293 ._w_1qr0c_14{width:800px}._modal_1qr0c_73._size-x_1qr0c_297 ._w_1qr0c_14{width:1000px}._modal_1qr0c_73._size-f_1qr0c_301 ._w_1qr0c_14{width:100%;max-width:1200px;min-width:910px}._m_1qr0c_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_1qr0c_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_1qr0c_73 big i:hover{box-shadow:var(--inset)}._m_1qr0c_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_1qr0c_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_1qr0c_73 span._active_1qr0c_350{box-shadow:var(--inset);color:var(--color)}._coincidence_1qr0c_356{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_1qr0c_356 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_1qr0c_356 dl{display:flex;padding:0;margin:5px}._coincidence_1qr0c_356 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_1qr0c_392{width:auto}._ss_1qr0c_396{width:400px}._sm_1qr0c_400{width:500px}._sl_1qr0c_404{width:800px}._sx_1qr0c_408{width:1000px}._sf_1qr0c_412{width:100%;max-width:1200px;min-width:910px}._btn_1qr0c_418{margin:10px auto 20px}._btn_294gf_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_294gf_1:hover{opacity:1}._confirm_294gf_15{background:var(--confirm-bg, #4caf50);color:var(--confirm-color, #fff)}._cancel_294gf_20{background:var(--cancel-bg, #f44336);color:var(--cancel-color, #fff)}._action_294gf_25{background:var(--action-bg, #4094f7);color:var(--action-color, #fff)}._disabled_294gf_30{background:var(--disabled-bg, #efefef);color:var(--disabled-color, #000);opacity:1;cursor:default}._await_294gf_37{background:var(--await-bg, #efefef);color:var(--await-color, #000);opacity:1;cursor:default}._m_294gf_44{min-width:200px}._l_294gf_48{flex:1}._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}._tabs_1i88v_1{border-bottom:1px solid #e5e9eb;display:flex;gap:20px;padding-top:16px;margin-bottom:16px}._tabs_1i88v_1 ._tab_1i88v_1{position:static;height:35px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0;cursor:pointer;border-bottom:2px solid;border-color:#0000;opacity:.6}._tabs_1i88v_1 ._tab_1i88v_1[active=true]{border-color:#000;opacity:1}._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_oow80_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_oow80_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_oow80_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_oow80_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_oow80_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_oow80_11 b:hover{background:#00000073}._c_oow80_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_oow80_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_oow80_11 i:hover{background:#00000073}._c_oow80_11 i:before{cursor:pointer;display:block}._c_oow80_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_oow80_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_oow80_11 span{padding:2px;text-align:center}._c_oow80_11 ._as_oow80_87{cursor:ns-resize}._c_oow80_11 ._ap_oow80_90{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password][show] dd{-webkit-text-security:none}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[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}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}[field=color] dd{display:flex;border:0;padding:0;gap:3px}[field=color] dd s{border:1px solid #dde2e4;border-radius:6px;flex:1;cursor:pointer;opacity:.6}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}._spinner_o487n_1{fill:var(--spunner-color, #fff);display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_o487n_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_o487n_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_o487n_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_o487n_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_o487n_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_o487n_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_o487n_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:var(--spunner-color, #fff);margin:0 5px}._l_o487n_75 i:nth-last-child(1){animation:_loadingB_o487n_1 1.5s 1s infinite}._l_o487n_75 i:nth-last-child(2){animation:_loadingB_o487n_1 1.5s .5s infinite}._l_o487n_75 i:nth-last-child(3){animation:_loadingB_o487n_1 1.5s 0s infinite}@keyframes _loadingB_o487n_1{0%{width:15px}50%{width:35px}to{width:15px}}._ph_1wjxu_1{display:flex;margin-top:10px}._ph_1wjxu_1 ._e_1wjxu_5{flex:1}._ph_1wjxu_1 h2{padding-bottom:20px;color:var(--menu-color)}._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(Ce);let ft={enCode:e=>e,deCode:e=>e};const Ht=e=>{ft=e},A={enCode:e=>ft.enCode(e),deCode:e=>ft.deCode(e),New:Ht},D={},Q={},Ie={},Vt={},me={};let Xe="M06";function va(e){Xe=e}function ya(){return Xe}function wa(e){if(localStorage.getItem("d")){let n=sessionStorage.getItem("f");n?(n=A.deCode(n),n||oe(),D.id=n.id,D.tab=n.tab,D.page=n.page,D.module=n.module,D.time=n.time,D.payment={active:!0},D.module_admin=n.module_admin):(D.id=0,D.tab="",D.page="Main",D.module=D.module||Xe)}else["a","b","c","d","e","m","u","s","q","p"].forEach(n=>localStorage.removeItem(n)),["f"].forEach(n=>sessionStorage.removeItem(n)),D.id=0,D.tab="",D.page="Auth",D.module=Xe;return e}function oe(){["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 ka(e){e=e.split("/"),D.page="Main",D.module=e[0],D.tab=e[1],D.id=0,sessionStorage.setItem("f",A.enCode({module:D.module,page:D.page,tab:D.tab,id:D.id,time:new Date().getTime()})),Q.page(D.page)}function ja(e){return localStorage.setItem("d",e)}function Ca(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function Sa(e){return localStorage.setItem("a",e)}function Ea(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function Da(e){localStorage.setItem("p",A.enCode(e))}function mt(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=A.deCode(e);return t||oe(),t}else return oe(),!1}function Ia(){const[e,t]=m.useState(Jt()),n=r=>{t(r)};return Q.page=n,[e]}function Na(e,t=!0){D.page=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.page(e)}function Jt(){return D.page}function Ta(e){return D.page===e}function Ma(e){if(typeof e!="function"){const[t,n]=m.useState(e||Xt()),r=i=>{n(i)};return Q.module=r,[t]}else Q.module=e}function $a(e,t=!0){D.module=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.module(e)}function Xt(){return D.module}function La(e){return D.module===e}function Qt(e){if(typeof e!="function"){const[t,n]=m.useState(e||Ne());return Q.tabs=n,[t]}else Q.tabs=e}function en(e,t=!0){if(D.tab=e,sessionStorage.setItem("f",A.enCode(D)),!!t)if(Q.tabs)Q.tabs(e);else throw new Error("useTabs not found")}function Ne(){return D.tab}function Ba(e){return D.tab===e}function Fa(e){if(typeof e!="function"){const[t,n]=m.useState(e||tn()),r=i=>{n(i)};return Q.id=r,[t]}else Q.id=e}function Pa(e){Q.id=e}function qa(e,t=!0){D.id=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.id(e)}function tn(){return D.id}function Aa(e){return Number(D.id)===e}function Oa(e,t,n){D.module=e,D.id=n,D.tab=t,sessionStorage.setItem("f",A.enCode(D)),Q.module(e),Q.tabs(t)}function Ra(e,t,n,r){D.page=e,D.module=t,D.tab=n||"",D.id=r||0,sessionStorage.setItem("f",A.enCode(D)),Q.page(e)}function za(e){Ie.data=e[0],delete Ie.data.id,document.body.dataset.theme=Ie.data.s15,localStorage.setItem("s",A.enCode(Ie.data))}function Ga(e,t){Ie.data[e]=t,localStorage.setItem("s",A.enCode(Ie.data))}function Za(e){let t=localStorage.getItem("s");return t===null?{}:(t=A.deCode(t),t?e!==void 0?t[e]:t:oe())}function nn(e){localStorage.setItem("m",A.enCode({data:e}))}function Ua(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),n=A.deCode(t);n||oe();const r=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return n.data.split(",").map(o=>"M"+r(2,o))}else return oe(),!1}function Ka(e){Q.sort=e}function an(e){let t=localStorage.getItem("b");t=t===null?{}:A.deCode(t),t[Ne()]=e,localStorage.setItem("b",A.enCode(t))}function pt(){let e=localStorage.getItem("b");return e===null?{}:(e=A.deCode(e),e=e[Ne()],e=e===void 0?{active:1,sort:"<"}:e,e)}function rn(e){localStorage.setItem("c",A.enCode(e))}function on(e,t){var r;let n=localStorage.getItem("c");if(n!==""&&n!=="undefined"&&n!==null){let i=A.deCode(n);return i||oe(),e===void 0?i:t?(r=i[e][t])==null?void 0:r.n:i[e]}else return oe(),!1}function Pe(e){me.data=e,localStorage.setItem("q",A.enCode(me.data))}function Wa(e,t){me.data={...me.data,[e]:t},localStorage.setItem("q",A.enCode(me.data))}function ge(e,t){if(!me.data){let n=localStorage.getItem("q");n&&(me.data=A.deCode(n))}return e===void 0&&t===void 0?me.data:e!==void 0&&t===void 0?me.data[e]:me.data[e][t]}function Ya(e){Vt.data=e}function Ha(e){return Vt.data[e]}function Va(e){D.payment=e}function Ja(){return D.payment}function sn(e){localStorage.setItem("u",A.enCode(e))}function Xa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=A.deCode(e);return t||oe(),t}else return oe(),!1}function Qa(){let e=localStorage.getItem("u");return e!==""&&e!=="undefined"&&e!==null?A.deCode(e):!1}function ln(e){localStorage.setItem("e",A.enCode(e))}function er(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=A.deCode(e);return t||oe(),t}catch{return{}}else return{}}function tr(e){const t=n=>{let r=localStorage.getItem(n);if(r!==""&&r!=="undefined"&&r!==null)try{let i=A.deCode(r);if(!i)return;D[n]={is:!0,time:i.time,data:i.data}}catch{D[n]={is:!1,time:0,data:{}}}else D[n]={is:!1,time:0,data:{}}};e.forEach(n=>t(n))}function nr(e){return D[e]===void 0?(D[e]={data:{},time:0},{data:{},time:0}):D[e]}function ar(e,t){D[e]={data:t.data,time:t.time},localStorage.setItem(e,A.enCode(D[e]))}function rr(e,t,n){D[e].time=n,D[e].data[t.item][t.name]=t.value,localStorage.setItem(e,A.enCode(D[e]))}const H={setSSID:ja,getSSID:Ca,getPORT:mt,setPORT:Da,setAUTH:Sa,getAUTH:Ea,Logaut:oe,Start:ka,setMenu:nn,getMenu:Ua,useSort:Ka,setSort:an,getSort:pt,setCompany:rn,getCompany:on,setSelect:Pe,addSelect:Wa,getSelect:ge,setApi:Ya,getApi:Ha,setPayment:Va,getPayment:Ja,setUser:sn,isUser:Qa,getUser:Xa,getDefaultModules:ya,getBase:nr,setBase:ar,editBase:rr,loadBase:tr},dn="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",ir=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),cn=typeof self<"u"&&self.Blob&&new Blob([ir(dn)],{type:"text/javascript;charset=utf-8"});function _n(e){let t;try{if(t=cn&&(self.URL||self.webkitURL).createObjectURL(cn),!t)throw"";const n=new Worker(t,{name:e==null?void 0:e.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+dn,{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}const ue={};function or(e){return e&&(ue.s=e),ue.s}function sr(e){return e&&(ue.a=e),ue.a}function lr(e){return e&&(ue.c=e),ue.c}function dr(e){return e&&(ue.h=e),ue.h}function cr(e){return e&&(ue.i=e),ue.i}function Qe(e){return ue.i(e)}function _r(e){Ht(e)}const qe={version:{Api:sr,Server:or,Client:lr},Host:dr,SSID:gr,Import:cr,Crypto:_r,defaultModule:va};let ur="api",fr="elcrm",mr="online",Te=!1;function pr(){let e=H.getPORT(),t="",n="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,n=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",n="https://"+e.address+"/files"),{documents:t,files:n}}let ht=`${ur}.${fr}.${mr}`;function hr(e){return"https://"+H.getPORT().address+"/audio/"+e}function xr(e){return"https://"+H.getPORT().address+"/image/"+e}function gr(e){Te=e}function Ae(e,t={},n=Te?H.getSSID():H.getAUTH()){return new Promise(r=>{const i=new _n;i.onmessage=o=>{var s,l;if(Te&&((s=o.data)!=null&&s.ssid)&&H.setSSID(o.data.ssid),((l=o.data)==null?void 0:l.status)==="logaut")return H.Logaut();r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:qe.Host()||`https://${ht}/`})})}async function br(e,t={},n=Te?H.getSSID():H.getAUTH()){try{return await(await Ae(qe.Host()||`https://${ht}/`+e,{method:"POST",headers:{ssid:n},body:t})).json()}catch(r){return{status:"error",message:r}}}function vr(e,t={},n=Te?H.getSSID():H.getAUTH()){return new Promise(r=>{const i=new _n;i.onmessage=o=>{r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:qe.Host()+"modules/"||`https://${ht}/modules`})})}function yr(e,t={},n=Te?H.getSSID():H.getAUTH()){const[r,i]=m.useState({status:"load"}),o=async s=>{let l=await Ae(e,s,n);i(l)};return m.useEffect(()=>{o(t)},[]),[r,o]}let un={"Content-type":"application/json;charset=utf-8",ssid:H.getAUTH()||""};async function wr(e,t,n={}){try{return await(await Ae("https://"+e+"/"+t,{method:"POST",headers:un,body:JSON.stringify(n)})).json()}catch{return{status:"error"}}}async function kr(e,t={}){try{return await(await Ae("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:un,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}function jr(e="qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31"){return e[(e.length/2).toFixed()]+e[(e.length/3).toFixed()]+e[(e.length/4).toFixed()]+e[(e.length/2).toFixed()]}async function Cr(e,t={}){return new Promise(n=>{setTimeout(()=>n(t),e)})}const et={audio:hr,image:xr,fetch:Ae,modules:vr,remoute:wr,url:pr,test:Cr,telegram:kr,use:yr,token:jr,formData:br};var xt={exports:{}},Oe={};/**
|
|
2
|
+
`,document.head.appendChild(Ce);let ft={enCode:e=>e,deCode:e=>e};const Ht=e=>{ft=e},A={enCode:e=>ft.enCode(e),deCode:e=>ft.deCode(e),New:Ht},D={},Q={},Ie={},Vt={},me={};let Xe="M06";function va(e){Xe=e}function ya(){return Xe}function wa(e){if(localStorage.getItem("d")){let n=sessionStorage.getItem("f");n?(n=A.deCode(n),n||oe(),D.id=n.id,D.tab=n.tab,D.page=n.page,D.module=n.module,D.time=n.time,D.payment={active:!0},D.module_admin=n.module_admin):(D.id=0,D.tab="",D.page="Main",D.module=D.module||Xe)}else["a","b","c","d","e","m","u","s","q","p"].forEach(n=>localStorage.removeItem(n)),["f"].forEach(n=>sessionStorage.removeItem(n)),D.id=0,D.tab="",D.page="Auth",D.module=Xe;return e}function oe(){["a","b","c","d","e","m","u","s","q","p","t"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function ka(e){e=e.split("/"),D.page="Main",D.module=e[0],D.tab=e[1],D.id=0,sessionStorage.setItem("f",A.enCode({module:D.module,page:D.page,tab:D.tab,id:D.id,time:new Date().getTime()})),Q.page(D.page)}function ja(e){return localStorage.setItem("d",e)}function Ca(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function Sa(e){return localStorage.setItem("a",e)}function Ea(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function Da(e){localStorage.setItem("p",A.enCode(e))}function mt(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=A.deCode(e);return t||oe(),t}else return oe(),!1}function Ia(){const[e,t]=m.useState(Jt()),n=r=>{t(r)};return Q.page=n,[e]}function Na(e,t=!0){D.page=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.page(e)}function Jt(){return D.page}function Ta(e){return D.page===e}function Ma(e){if(typeof e!="function"){const[t,n]=m.useState(e||Xt()),r=i=>{n(i)};return Q.module=r,[t]}else Q.module=e}function $a(e,t=!0){D.module=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.module(e)}function Xt(){return D.module}function La(e){return D.module===e}function Qt(e){if(typeof e!="function"){const[t,n]=m.useState(e||Ne());return Q.tabs=n,[t]}else Q.tabs=e}function en(e,t=!0){if(D.tab=e,sessionStorage.setItem("f",A.enCode(D)),!!t)if(Q.tabs)Q.tabs(e);else throw new Error("useTabs not found")}function Ne(){return D.tab}function Ba(e){return D.tab===e}function Fa(e){if(typeof e!="function"){const[t,n]=m.useState(e||tn()),r=i=>{n(i)};return Q.id=r,[t]}else Q.id=e}function Pa(e){Q.id=e}function qa(e,t=!0){D.id=e,sessionStorage.setItem("f",A.enCode(D)),t&&Q.id(e)}function tn(){return D.id}function Aa(e){return Number(D.id)===e}function Oa(e,t,n){D.module=e,D.id=n,D.tab=t,sessionStorage.setItem("f",A.enCode(D)),Q.module(e),Q.tabs(t)}function Ra(e,t,n,r){D.page=e,D.module=t,D.tab=n||"",D.id=r||0,sessionStorage.setItem("f",A.enCode(D)),Q.page(e)}function za(e){Ie.data=e[0],delete Ie.data.id,document.body.dataset.theme=Ie.data.s15,localStorage.setItem("s",A.enCode(Ie.data))}function Ga(e,t){Ie.data[e]=t,localStorage.setItem("s",A.enCode(Ie.data))}function Za(e){let t=localStorage.getItem("s");return t===null?{}:(t=A.deCode(t),t?e!==void 0?t[e]:t:oe())}function nn(e){localStorage.setItem("m",A.enCode({data:e}))}function Ua(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),n=A.deCode(t);n||oe();const r=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return n.data.split(",").map(o=>"M"+r(2,o))}else return oe(),!1}function Ka(e){Q.sort=e}function an(e){let t=localStorage.getItem("b");t=t===null?{}:A.deCode(t),t[Ne()]=e,localStorage.setItem("b",A.enCode(t))}function pt(){let e=localStorage.getItem("b");return e===null?{}:(e=A.deCode(e),e=e[Ne()],e=e===void 0?{active:1,sort:"<"}:e,e)}function rn(e){localStorage.setItem("c",A.enCode(e))}function on(e,t){var r;let n=localStorage.getItem("c");if(n!==""&&n!=="undefined"&&n!==null){let i=A.deCode(n);return i||oe(),e===void 0?i:t?(r=i[e][t])==null?void 0:r.n:i[e]}else return oe(),!1}function Pe(e){me.data=e,localStorage.setItem("q",A.enCode(me.data))}function Wa(e,t){me.data={...me.data,[e]:t},localStorage.setItem("q",A.enCode(me.data))}function ge(e,t){if(!me.data){let n=localStorage.getItem("q");n&&(me.data=A.deCode(n))}return e===void 0&&t===void 0?me.data:e!==void 0&&t===void 0?me.data[e]:me.data[e][t]}function Ya(e){Vt.data=e}function Ha(e){return Vt.data[e]}function Va(e){D.payment=e}function Ja(){return D.payment}function sn(e){localStorage.setItem("u",A.enCode(e))}function Xa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=A.deCode(e);return t||oe(),t}else return oe(),!1}function Qa(){let e=localStorage.getItem("u");return e!==""&&e!=="undefined"&&e!==null?A.deCode(e):!1}function ln(e){localStorage.setItem("e",A.enCode(e))}function er(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=A.deCode(e);return t||oe(),t}catch{return{}}else return{}}function tr(e){const t=n=>{let r=localStorage.getItem(n);if(r!==""&&r!=="undefined"&&r!==null)try{let i=A.deCode(r);if(!i)return;D[n]={is:!0,time:i.time,data:i.data}}catch{D[n]={is:!1,time:0,data:{}}}else D[n]={is:!1,time:0,data:{}}};e.forEach(n=>t(n))}function nr(e){return D[e]===void 0?(D[e]={data:{},time:0},{data:{},time:0}):D[e]}function ar(e,t){D[e]={data:t.data,time:t.time},localStorage.setItem(e,A.enCode(D[e]))}function rr(e,t,n){D[e].time=n,D[e].data[t.item][t.name]=t.value,localStorage.setItem(e,A.enCode(D[e]))}const H={setSSID:ja,getSSID:Ca,getPORT:mt,setPORT:Da,setAUTH:Sa,getAUTH:Ea,Logaut:oe,Start:ka,setMenu:nn,getMenu:Ua,useSort:Ka,setSort:an,getSort:pt,setCompany:rn,getCompany:on,setSelect:Pe,addSelect:Wa,getSelect:ge,setApi:Ya,getApi:Ha,setPayment:Va,getPayment:Ja,setUser:sn,isUser:Qa,getUser:Xa,getDefaultModules:ya,getBase:nr,setBase:ar,editBase:rr,loadBase:tr},dn="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",ir=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),cn=typeof self<"u"&&self.Blob&&new Blob([ir(dn)],{type:"text/javascript;charset=utf-8"});function _n(e){let t;try{if(t=cn&&(self.URL||self.webkitURL).createObjectURL(cn),!t)throw"";const n=new Worker(t,{name:e==null?void 0:e.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+dn,{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}const ue={};function or(e){return e&&(ue.s=e),ue.s}function sr(e){return e&&(ue.a=e),ue.a}function lr(e){return e&&(ue.c=e),ue.c}function dr(e){return e&&(ue.h=e),ue.h}function cr(e){return e&&(ue.i=e),ue.i}function Qe(e){return ue.i(e)}function _r(e){Ht(e)}const qe={version:{Api:sr,Server:or,Client:lr},Host:dr,SSID:gr,Import:cr,Crypto:_r,defaultModule:va};let ur="api",fr="elcrm",mr="online",Te=!1;function pr(){let e=H.getPORT(),t="",n="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,n=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",n="https://"+e.address+"/files"),{documents:t,files:n}}let ht=`${ur}.${fr}.${mr}`;function hr(e){return"https://"+H.getPORT().address+"/audio/"+e}function xr(e){return"https://"+H.getPORT().address+"/image/"+e}function gr(e){Te=e}function Ae(e,t={},n=Te?H.getSSID():H.getAUTH()){return new Promise(r=>{const i=new _n;i.onmessage=o=>{var s,l;if(Te&&((s=o.data)!=null&&s.ssid)&&H.setSSID(o.data.ssid),((l=o.data)==null?void 0:l.status)==="logaut")return H.Logaut();r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:qe.Host()||`https://${ht}/`})})}async function br(e,t={},n=Te?H.getSSID():H.getAUTH()){try{return await(await Ae(qe.Host()||`https://${ht}/`+e,{method:"POST",headers:{ssid:n},body:t})).json()}catch(r){return{status:"error",message:r}}}function vr(e,t={},n=Te?H.getSSID():H.getAUTH()){return new Promise(r=>{const i=new _n;i.onmessage=o=>{r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:qe.Host()+"modules/"||`https://${ht}/modules`})})}function yr(e,t={},n=Te?H.getSSID():H.getAUTH()){const[r,i]=m.useState({status:"load"}),o=async s=>{let l=await Ae(e,s,n);i(l)};return m.useEffect(()=>{o(t)},[]),[r,o]}let un={"Content-type":"application/json;charset=utf-8",ssid:H.getAUTH()||""};async function wr(e,t,n={}){try{return await(await Ae("https://"+e+"/"+t,{method:"POST",headers:un,body:JSON.stringify(n)})).json()}catch{return{status:"error"}}}async function kr(e,t={}){try{return await(await Ae("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:un,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}function jr(e="qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31"){return e[(e.length/2).toFixed()]+e[(e.length/3).toFixed()]+e[(e.length/4).toFixed()]+e[(e.length/2).toFixed()]}async function Cr(e,t={}){return new Promise(n=>{setTimeout(()=>n(t),e)})}const et={audio:hr,image:xr,fetch:Ae,modules:vr,remoute:wr,url:pr,test:Cr,telegram:kr,use:yr,token:jr,formData:br};var xt={exports:{}},Oe={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|