elcrm 0.2.2 → 0.2.4
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.es.js +287 -279
- package/dist/index.umd.js +9 -9
- package/dist/lib/Init/Init.d.ts +2 -1
- package/dist/lib/Store/Store.d.ts +5 -3
- package/dist/lib/Store/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(x,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(x=typeof globalThis<"u"?globalThis:x||self,m((x.elCRM=x.elCRM||{},x.elCRM.components={}),x.React))})(this,function(x,m){"use strict";var ue=document.createElement("style");ue.textContent=`@charset "UTF-8";._notice_820sc_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_820sc_2 ._error_820sc_9{color:#bb2014}._notice_820sc_2 ._success_820sc_12{color:#367738}._notice_820sc_2 ._remark_820sc_15{color:#b77513}._notice_820sc_2 ._copy_820sc_18{color:#3f51b5}._notice_820sc_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-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_820sc_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_820sc_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_820sc_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_820sc_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_820sc_1 1s 1;animation-fill-mode:forwards}._notice_820sc_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_820sc_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_820sc_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_820sc_1{0%{opacity:1}to{opacity:0}}._alerts_1e9y0_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_1e9y0_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_1e9y0_1 .4s 0s both;animation:_menuAnimation_1e9y0_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_1e9y0_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_1e9y0_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_1e9y0_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1e9y0_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_1e9y0_1 .2s 0s both;animation:_menuItemAnimation_1e9y0_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1e9y0_1 button[color=blue]{color:#1b6ac0}._alerts_1e9y0_1 button[color=red]{color:#c21c0d}._alerts_1e9y0_1 button:hover{background:var(--system-hover)}._alerts_1e9y0_1 ._--body_1e9y0_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1e9y0_111 ._--form_1e9y0_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)}: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_6ax6z_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_6ax6z_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_6ax6z_1;animation-name:_shake_6ax6z_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_6ax6z_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_6ax6z_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_6ax6z_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_6ax6z_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}._h_6ax6z_106{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_6ax6z_120{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_6ax6z_120 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_6ax6z_120 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_6ax6z_120 li:last-child{border-bottom:0}._l_6ax6z_120 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_6ax6z_158{padding-right:10px}._m_6ax6z_73{flex:1}._x_6ax6z_166{cursor:pointer;color:#1f253d;font-size:20px;opacity:.5;width:35px;border-radius:5px;text-align:center}._s_6ax6z_176{flex:1;overflow-y:scroll}._c_6ax6z_181{text-align:center;margin:20px}._f_6ax6z_186{padding:0 20px;display:flex;flex-direction:column}._f_6ax6z_186 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_6ax6z_186 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_6ax6z_186 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_6ax6z_186 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_6ax6z_166:hover{opacity:1}._btn_6ax6z_229{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_6ax6z_242{display:flex;gap:10px}._c_6ax6z_181{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;cursor:pointer}._c_6ax6z_181:first-child{margin-left:20px}._c_6ax6z_181:last-child{margin-right:20px}._c_6ax6z_181:hover{opacity:1;background:var(--tinge)}._c_6ax6z_181 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_6ax6z_181 b{text-align:center;display:block;color:var(--color)}._c_6ax6z_181 p{text-align:center;font-size:15px;color:var(--text)}._btn_6ax6z_229:hover{opacity:1}._modal_6ax6z_73._size-a_6ax6z_294 ._w_6ax6z_14{width:auto}._modal_6ax6z_73._size-s_6ax6z_298 ._w_6ax6z_14{width:400px}._modal_6ax6z_73._size-m_6ax6z_302 ._w_6ax6z_14{width:500px}._modal_6ax6z_73._size-l_6ax6z_306 ._w_6ax6z_14{width:800px}._modal_6ax6z_73._size-x_6ax6z_310 ._w_6ax6z_14{width:1000px}._modal_6ax6z_73._size-f_6ax6z_314 ._w_6ax6z_14{width:100%;max-width:1200px;min-width:910px}._btn_6ax6z_229._confirm_6ax6z_320{background:#4caf50;color:#fff}._btn_6ax6z_229._cancel_6ax6z_325{background:#f44336;color:#fff}._btn_6ax6z_229._disabled_6ax6z_330,._btn_6ax6z_229._await_6ax6z_337{background:#efefef;color:#000;opacity:1;cursor:default}._m_6ax6z_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_6ax6z_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_6ax6z_73 big i:hover{box-shadow:var(--inset)}._m_6ax6z_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_6ax6z_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_6ax6z_73 span._active_6ax6z_387{box-shadow:var(--inset);color:var(--color)}._coincidence_6ax6z_393{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_6ax6z_393 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_6ax6z_393 dl{display:flex;padding:0;margin:5px}._coincidence_6ax6z_393 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}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_1r0pc_2{width:100%;overflow:auto}._setting_1r0pc_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_1r0pc_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_1r0pc_2 nav li[tabs-active=true]{opacity:1}._setting_1r0pc_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_1r0pc_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_1r0pc_2 li{font-size:20px;line-height:40px}._setting_1r0pc_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;background:var(--setting-bg);color:var(--setting-color)}._setting_1r0pc_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_1r0pc_2 dt{flex:1;padding:0 15px}._setting_1r0pc_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_1r0pc_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_1r0pc_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_1r0pc_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_1r0pc_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_1r0pc_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_1r0pc_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_1r0pc_2 [role=button]:hover{background:var(--setting-action)}._setting_1r0pc_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_1r0pc_2 [role=button-outline]:hover{background:#00000038}._setting_1r0pc_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_1r0pc_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_1r0pc_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_1r0pc_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_1r0pc_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_1r0pc_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._h_1b5x7_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex}._t_1b5x7_10{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:relative;height:35px}._s_1b5x7_28{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1b5x7_37{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1b5x7_44{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._l_1b5x7_53{flex:1;overflow:hidden;overflow-y:scroll;background:var(--content)}._hh_1b5x7_60{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}
|
|
2
|
-
`,document.head.appendChild(ue);var
|
|
2
|
+
`,document.head.appendChild(ue);var re={exports:{}},B={};/**
|
|
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 fe;function
|
|
10
|
+
*/var fe;function Ge(){if(fe)return B;fe=1;var t=m,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function D(E,b,$){var y,w={},R=null,G=null;$!==void 0&&(R=""+$),b.key!==void 0&&(R=""+b.key),b.ref!==void 0&&(G=b.ref);for(y in b)s.call(b,y)&&!v.hasOwnProperty(y)&&(w[y]=b[y]);if(E&&E.defaultProps)for(y in b=E.defaultProps,b)w[y]===void 0&&(w[y]=b[y]);return{$$typeof:n,type:E,key:R,ref:G,props:w,_owner:g.current}}return B.Fragment=a,B.jsx=D,B.jsxs=D,B}var U={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,14 +15,14 @@
|
|
|
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 pe;function
|
|
19
|
-
`+ie+e}}var ae=!1,
|
|
18
|
+
*/var pe;function Ke(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&function(){var t=m,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),E=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),ze=Symbol.iterator,ar="@@iterator";function or(e){if(e===null||typeof e!="object")return null;var i=ze&&e[ze]||e[ar];return typeof i=="function"?i:null}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];sr("error",e,o)}}function sr(e,i,o){{var l=L.ReactDebugCurrentFrame,f=l.getStackAddendum();f!==""&&(i+="%s",o=o.concat([f]));var p=o.map(function(u){return String(u)});p.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,p)}}var lr=!1,cr=!1,dr=!1,ur=!1,fr=!1,Se;Se=Symbol.for("react.module.reference");function pr(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===v||fr||e===g||e===$||e===y||ur||e===G||lr||cr||dr||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===w||e.$$typeof===D||e.$$typeof===E||e.$$typeof===b||e.$$typeof===Se||e.getModuleId!==void 0))}function xr(e,i,o){var l=e.displayName;if(l)return l;var f=i.displayName||i.name||"";return f!==""?o+"("+f+")":o}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&k("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 s:return"Fragment";case a:return"Portal";case v:return"Profiler";case g:return"StrictMode";case $:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var i=e;return Ce(i)+".Consumer";case D:var o=e;return Ce(o._context)+".Provider";case b:return xr(e,e.render,"ForwardRef");case w:var l=e.displayName||null;return l!==null?l:T(e.type)||"Memo";case R:{var f=e,p=f._payload,u=f._init;try{return T(u(p))}catch{return null}}}return null}var F=Object.assign,H=0,Ee,Re,Te,Ie,Pe,Oe,$e;function Ae(){}Ae.__reactDisabledLog=!0;function _r(){{if(H===0){Ee=console.log,Re=console.info,Te=console.warn,Ie=console.error,Pe=console.group,Oe=console.groupCollapsed,$e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function gr(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:Ee}),info:F({},e,{value:Re}),warn:F({},e,{value:Te}),error:F({},e,{value:Ie}),group:F({},e,{value:Pe}),groupCollapsed:F({},e,{value:Oe}),groupEnd:F({},e,{value:$e})})}H<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=L.ReactCurrentDispatcher,ie;function K(e,i,o){{if(ie===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);ie=l&&l[1]||""}return`
|
|
19
|
+
`+ie+e}}var ae=!1,X;{var hr=typeof WeakMap=="function"?WeakMap:Map;X=new hr}function Ne(e,i){if(!e||ae)return"";{var o=X.get(e);if(o!==void 0)return o}var l;ae=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ne.current,ne.current=null,_r();try{if(i){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(I){l=I}Reflect.construct(e,[],u)}else{try{u.call()}catch(I){l=I}e.call(u.prototype)}}else{try{throw Error()}catch(I){l=I}e()}}catch(I){if(I&&l&&typeof I.stack=="string"){for(var d=I.stack.split(`
|
|
20
20
|
`),j=l.stack.split(`
|
|
21
|
-
`),_=d.length-1,h=j.length-1;_>=1&&h>=0&&d[_]!==j[h];)h--;for(;_>=1&&h>=0;_--,h--)if(d[_]!==j[h]){if(_!==1||h!==1)do if(_--,h--,h<0||d[_]!==j[h]){var
|
|
22
|
-
`+d[_].replace(" at new "," at ");return e.displayName&&
|
|
21
|
+
`),_=d.length-1,h=j.length-1;_>=1&&h>=0&&d[_]!==j[h];)h--;for(;_>=1&&h>=0;_--,h--)if(d[_]!==j[h]){if(_!==1||h!==1)do if(_--,h--,h<0||d[_]!==j[h]){var S=`
|
|
22
|
+
`+d[_].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,S),S}while(_>=1&&h>=0);break}}}finally{ae=!1,ne.current=p,gr(),Error.prepareStackTrace=f}var Y=e?e.displayName||e.name:"",Ze=Y?K(Y):"";return typeof e=="function"&&X.set(e,Ze),Ze}function mr(e,i,o){return Ne(e,!1)}function br(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function Q(e,i,o){if(e==null)return"";if(typeof e=="function")return Ne(e,br(e));if(typeof e=="string")return K(e);switch(e){case $:return K("Suspense");case y:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return mr(e.render);case w:return Q(e.type,i,o);case R:{var l=e,f=l._payload,p=l._init;try{return Q(p(f),i,o)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,De={},Fe=L.ReactDebugCurrentFrame;function te(e){if(e){var i=e._owner,o=Q(e.type,e._source,i?i.type:null);Fe.setExtraStackFrame(o)}else Fe.setExtraStackFrame(null)}function vr(e,i,o,l,f){{var p=Function.call.bind(ee);for(var u in e)if(p(e,u)){var d=void 0;try{if(typeof e[u]!="function"){var j=Error((l||"React class")+": "+o+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}d=e[u](i,u,l,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){d=_}d&&!(d instanceof Error)&&(te(f),k("%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).",l||"React class",o,u,typeof d),te(null)),d instanceof Error&&!(d.message in De)&&(De[d.message]=!0,te(f),k("Failed %s type: %s",o,d.message),te(null))}}}var yr=Array.isArray;function oe(e){return yr(e)}function wr(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,o=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kr(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Le(e){if(kr(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(e)),Me(e)}var J=L.ReactCurrentOwner,jr={key:!0,ref:!0,__self:!0,__source:!0},We,Ye,se;se={};function zr(e){if(ee.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function Sr(e){if(ee.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function Cr(e,i){if(typeof e.ref=="string"&&J.current&&i&&J.current.stateNode!==i){var o=T(J.current.type);se[o]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(J.current.type),e.ref),se[o]=!0)}}function Er(e,i){{var o=function(){We||(We=!0,k("%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)",i))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Rr(e,i){{var o=function(){Ye||(Ye=!0,k("%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)",i))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Tr=function(e,i,o,l,f,p,u){var d={$$typeof:n,type:e,key:i,ref:o,props:u,_owner:p};return d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(d,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(d,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d};function Ir(e,i,o,l,f){{var p,u={},d=null,j=null;o!==void 0&&(Le(o),d=""+o),Sr(i)&&(Le(i.key),d=""+i.key),zr(i)&&(j=i.ref,Cr(i,f));for(p in i)ee.call(i,p)&&!jr.hasOwnProperty(p)&&(u[p]=i[p]);if(e&&e.defaultProps){var _=e.defaultProps;for(p in _)u[p]===void 0&&(u[p]=_[p])}if(d||j){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Er(u,h),j&&Rr(u,h)}return Tr(e,d,j,f,l,J.current,u)}}var le=L.ReactCurrentOwner,Be=L.ReactDebugCurrentFrame;function W(e){if(e){var i=e._owner,o=Q(e.type,e._source,i?i.type:null);Be.setExtraStackFrame(o)}else Be.setExtraStackFrame(null)}var ce;ce=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ue(){{if(le.current){var e=T(le.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 Pr(e){{if(e!==void 0){var i=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
|
|
25
25
|
|
|
26
|
-
Check your code at `+i+":"+o+"."}return""}}var
|
|
26
|
+
Check your code at `+i+":"+o+"."}return""}}var Ve={};function Or(e){{var i=Ue();if(!i){var o=typeof e=="string"?e:e.displayName||e.name;o&&(i=`
|
|
27
27
|
|
|
28
|
-
Check the top-level render call using <`+o+">.")}return i}}function Ve(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tr(i);if(Ue[o])return;Ue[o]=!0;var l="";e&&e._owner&&e._owner!==le.current&&(l=" It was passed a child from "+R(e._owner.type)+"."),W(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,l),W(null)}}function qe(e,i){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var l=e[o];de(l)&&Ve(l,i)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var f=nr(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),u;!(u=p.next()).done;)de(u.value)&&Ve(u.value,i)}}}function Ir(e){{var i=e.type;if(i==null||typeof i=="string")return;var o;if(typeof i=="function")o=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===b||i.$$typeof===w))o=i.propTypes;else return;if(o){var l=R(i);hr(o,e.props,"prop",l,e)}else if(i.PropTypes!==void 0&&!ce){ce=!0;var f=R(i);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(e){{for(var i=Object.keys(e.props),o=0;o<i.length;o++){var l=i[o];if(l!=="children"&&l!=="key"){W(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),W(null);break}}e.ref!==null&&(W(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function He(e,i,o,l,f,p){{var u=dr(e);if(!u){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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 j=Rr(f);j?d+=j:d+=Be();var _;e===null?_="null":oe(e)?_="array":e!==void 0&&e.$$typeof===n?(_="<"+(R(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,d)}var h=Er(e,i,o,f,p);if(h==null)return h;if(u){var C=i.children;if(C!==void 0)if(l)if(oe(C)){for(var Y=0;Y<C.length;Y++)qe(C[Y],e);Object.freeze&&Object.freeze(C)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qe(C,e)}return e===s?Pr(h):Ir(h),h}}function Or(e,i,o){return He(e,i,o,!0)}function $r(e,i,o){return He(e,i,o,!1)}var Ar=$r,Nr=Or;U.Fragment=s,U.jsx=Ar,U.jsxs=Nr}()),U}process.env.NODE_ENV==="production"?te.exports=Ze():te.exports=Ge();var r=te.exports;const Ke={notice:"_notice_820sc_2",error:"_error_820sc_9",success:"_success_820sc_12",remark:"_remark_820sc_15",copy:"_copy_820sc_18","show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let I={};function Xe(){let[t,n]=m.useState([]);return I.set=a=>{n([...t,a])},I.del=a=>{n(t.filter(s=>s.key!==a))},t.length===0?"":r.jsx("ul",{className:Ke.notice,children:t.map(a=>a.item)})}function V({data:t}){let[n,a]=m.useState("show");m.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){I.del(t.key)},2500)},[t.key]);let s,g;switch(t.type){case"error":s=r.jsx(A.error,{}),g="Ошибка:";break;case"success":s=r.jsx(A.success,{}),g="Информация:";break;case"copy":s=r.jsx(A.success,{}),g="Копирование:";break;case"remark":s=r.jsx(A.success,{}),g="Подсказка:";break;default:s=r.jsx(A.success,{}),g="Предупреждение:";break}return r.jsxs("li",{className:"item "+t.type,"data-status":n,children:[s,r.jsx("b",{children:g}),r.jsx("p",{children:t.text})]})}function Qe(t){let n=Date.now(),a={key:n,...t};I.set({item:r.jsx(V,{data:a},n),key:n})}function et(t){let n=Date.now(),a={key:n,text:t,type:"error"};I.set({item:r.jsx(V,{data:a},n),key:n})}function tt(t){let n=Date.now(),a={key:n,text:t,type:"success"};I.set({item:r.jsx(V,{data:a},n),key:n})}function rt(t){let n=Date.now(),a={key:n,text:t,type:"remark"};I.set({item:r.jsx(V,{data:a},n),key:n})}function nt(t){let n=Date.now(),a={key:n,text:t,type:"copy"};I.set({item:r.jsx(V,{data:a},n),key:n})}const A={};A.error=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[r.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),r.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),A.success=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[r.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),r.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const it={alerts:"_alerts_1e9y0_1",menuAnimation:"_menuAnimation_1e9y0_1",menuItemAnimation:"_menuItemAnimation_1e9y0_1","--body":"_--body_1e9y0_103",allert:"_allert_1e9y0_111","--form":"_--form_1e9y0_111"};let q={};function at(){let[t,n]=m.useState("");return q.set=a=>n(a),q.del=()=>n(""),r.jsx(r.Fragment,{children:t})}const ot=({data:t,callback:n})=>(t.button=t.button===void 0?"Подтвердить":t.button,r.jsxs("div",{className:it.alerts,children:[r.jsxs("dl",{children:[r.jsx("dt",{children:t.title}),r.jsx("dd",{children:t.text}),r.jsx("ul",{children:r.jsx("button",{"data-color":t.color||"blue",onClick:()=>{n(),q.del()},children:t.button})})]}),r.jsx("div",{className:"--body",onClick:q.del})]}));function st(t,n){q.set(r.jsx(ot,{data:t,callback:n}))}function lt({children:t}){return r.jsx("div",{className:"l",children:r.jsx("ul",{children:t})})}function ct({children:t}){return r.jsx("div",{className:"s",children:t})}const xe=({children:t,disabled:n,label:a,onClick:s})=>{const g=v=>{n||s&&s(v)};return r.jsx("button",{disabled:n,onClick:g,children:a})},P={white:"_white_6ax6z_14",black:"_black_6ax6z_26",shake:"_shake_6ax6z_1",modal:"_modal_6ax6z_73",o:"_o_6ax6z_83",w:"_w_6ax6z_14",h:"_h_6ax6z_106",l:"_l_6ax6z_120",t:"_t_6ax6z_158",m:"_m_6ax6z_73",x:"_x_6ax6z_166",s:"_s_6ax6z_176",c:"_c_6ax6z_181",f:"_f_6ax6z_186",btn:"_btn_6ax6z_229",g:"_g_6ax6z_242","size-a":"_size-a_6ax6z_294","size-s":"_size-s_6ax6z_298","size-m":"_size-m_6ax6z_302","size-l":"_size-l_6ax6z_306","size-x":"_size-x_6ax6z_310","size-f":"_size-f_6ax6z_314",confirm:"_confirm_6ax6z_320",cancel:"_cancel_6ax6z_325",disabled:"_disabled_6ax6z_330",await:"_await_6ax6z_337",active:"_active_6ax6z_387",coincidence:"_coincidence_6ax6z_393"};let M={};const dt=({config:t})=>{let[n,a]=m.useState([]);return M.x=()=>{a([])},M.config=t,M.add=s=>{a([...n,s])},r.jsx(r.Fragment,{children:n.map(s=>s)})},ut=({children:t,title:n,button:a,tabs:s,size:g="m",menu:v})=>{const[D,S]=m.useState(!0),b=m.useRef(),$=w=>{if(a&&a.onClick)return a.onClick({closed:S,disabled:w})},y=()=>{b.current.setAttribute("shake",!0),setTimeout(()=>{b.current.setAttribute("shake",!1)},1e3)};return r.jsx(r.Fragment,{children:D?r.jsxs("div",{className:`${P.modal} ${P.white}`,children:[r.jsx("div",{className:P.o,onClick:y}),r.jsxs("div",{className:P.w,ref:b,children:[r.jsxs("div",{className:P.h,children:[r.jsx("div",{className:P.t,children:n}),r.jsxs("div",{className:P.m,children:[s&&r.jsx("nav",{children:s.map((w,E)=>r.jsx("span",{onClick:w.onClick,className:w.active?"active":"",children:w.name},E))}),v]}),r.jsx("div",{className:P.x,onClick:()=>{S(!1)},children:"x"})]}),t,a!==void 0?r.jsx(xe,{label:String(a.name),onClick:$}):""]})]}):""})},ft=t=>{M.add(r.jsx(pt,{children:t},String(Date.now())))},pt=({children:t})=>r.jsx(r.Fragment,{children:t}),_e={List:lt,Scroll:ct,Init:dt,Main:ut,Add:ft,Icon:({type:t,name:n,params:a})=>{let[s,g]=m.useState(null);return m.useEffect(()=>{M.config(t,n,a,g)},[a.id]),r.jsx(r.Fragment,{children:s})},Open:(t,n,a)=>{M.config(t,n,a)}};let O={};const c={},z={};function xt({crypto:t}){if(O=t,localStorage.getItem("ssid")){let a=sessionStorage.getItem("page");a?(a=O.deCode(a),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||"M05")}else["ssid","menu","temp","user","sett","qder","firm","last","auth","port","mark","sort"].forEach(a=>localStorage.removeItem(a)),["page"].forEach(a=>sessionStorage.removeItem(a)),c.id=0,c.tab="",c.page="Auth",c.module="M00"}function re(){["ssid","menu","temp","user","sett","qder","firm","last","auth","port","mark","sort"].forEach(t=>localStorage.removeItem(t)),["page"].forEach(t=>sessionStorage.removeItem(t)),window.location.reload()}function _t(t){t=t.split("/"),c.page="Main",c.module=t[0],c.tab=t[1],c.id=0,sessionStorage.setItem("page",O.enCode({module:c.module,page:c.page,tab:c.tab,id:c.id,time:new Date().getTime()})),z.page(c.page)}function gt(t){return localStorage.setItem("ssid",t)}function ht(){let t=localStorage.getItem("ssid");return t!==""&&t!=="undefined"&&t!==null?localStorage.getItem("ssid"):(re(),!1)}function mt(t){return localStorage.setItem("auth",t)}function bt(){let t=localStorage.getItem("auth");return t!==""&&t!=="undefined"&&t!==null?t:(re(),!1)}function vt(){const[t,n]=m.useState(ge()),a=s=>{n(s)};return z.page=a,[t]}function yt(t){c.page=t,sessionStorage.setItem("page",O.enCode(c)),z.page(t)}function ge(){return c.page}function wt(t){z.module=t}function kt(t,n){c.module=t,sessionStorage.setItem("page",O.enCode(c)),n!=="false"&&z.module(t)}function jt(){return c.module}function zt(t){z.tabs=t}function Ct(t,n){c.tab=t,sessionStorage.setItem("page",O.enCode(c)),n!=="false"&&z.tabs(t)}function St(){return c.tab}function Et(){const[t,n]=m.useState(c.id),a=s=>{n(s)};return z.id=a,[t]}function Rt(t){z.id=t}function Tt(t,n){c.id=t,sessionStorage.setItem("page",O.enCode(c)),n!=="false"&&z.id(t)}function It(){return c.id}function Pt(t,n,a){c.module=t,c.id=a,c.tab=n,sessionStorage.setItem("page",O.enCode(c)),z.module(t),z.tabs(n)}const he=({children:t,config:n,crypto:a,...s})=>(xt({crypto:a}),r.jsxs(r.Fragment,{children:[r.jsx(_e.Init,{config:n.modal}),r.jsx(Xe,{}),r.jsx(at,{}),t]})),Ot=({children:t,...n})=>r.jsx("menu",{children:t}),$t=({children:t,...n})=>r.jsxs("header",{children:["xz",t]}),At={payment:"_payment_1lxfv_1"};function Nt(){let[t,n]=m.useState({});return!t.active&&!t.payment?"":r.jsx("div",{className:At.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Dt=({children:t,...n})=>{let a={};return a.enCode=s=>JSON.stringify(s).toString(),a.deCode=s=>JSON.parse(s),r.jsxs("div",{className:"app",children:[r.jsx(Nt,{}),r.jsx(Ot,{}),r.jsx($t,{}),r.jsx(he,{config:{modal:{}},crypto:a}),t]})},me=({list:t,onClick:n,active:a,size:s,view:g})=>r.jsx("nav",{children:r.jsx("ul",{className:[s,g].join(" "),children:t.map(v=>r.jsx(Ft,{onClick:n,active:a,label:v.label,link:v.link},v.link))})}),Ft=({onClick:t,label:n,link:a,active:s})=>r.jsx("li",{"tabs-active":String(s===a),onClick:()=>t(a),children:n});me.defaultProps={size:"M",view:"H"};const Mt=({title:t="",button:n,description:a="",children:s})=>r.jsxs("fieldset",{children:[t&&r.jsxs("legend",{children:[t,n&&r.jsx("div",{role:"button-outline",onClick:()=>n.onClick(),children:n.label})," "]}),r.jsx("ul",{children:s}),a&&r.jsx("article",{children:a})]}),Lt={setting:"_setting_1r0pc_2"},Wt=({children:t})=>r.jsx("div",{className:Lt.setting,children:t}),Yt=({label:t,children:n})=>{let[a,s]=m.useState(!1);return r.jsxs("li",{"data-item":"accordion",children:[r.jsxs("dl",{onClick:()=>s(!a),children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:r.jsx("div",{"data-close":String(a)})})]}),a&&r.jsx("div",{children:n})]})},Bt=({label:t,onClick:n,button:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"button",onClick:()=>n(),children:a})]})}),be={Switch:({active:t,onClick:n})=>(console.log(t),t=typeof t=="number"?!!t:t,r.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),n()},"aria-checked":t?"true":"false"}))},Ut={Accordion:Yt,Button:Bt,Switch:({label:t,onClick:n,active:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:r.jsx(be.Switch,{onClick:n,active:a})})]})}),Info:({label:t,info:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"info",children:n})]})}),Select:({label:t,active:n,options:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"info",children:n})]})}),Component:({label:t,children:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:n})]})}),Node:({label:t,children:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:n})]})})};function ve({list:t,onClick:n,active:a,size:s,view:g}){return r.jsx("nav",{children:r.jsx("ul",{className:[s,g].join(" "),children:t.map(v=>r.jsx(Vt,{onClick:n,active:a,label:v.label,link:v.link},v.link))})})}const Vt=({onClick:t,label:n,link:a,active:s})=>r.jsx("li",{"tabs-active":String(s===a),onClick:()=>t(a),children:n});ve.defaultProps={size:"M",view:"H"};const qt={Section:Mt,Main:Wt,Item:Ut,Tabs:ve},N={h:"_h_1b5x7_1",t:"_t_1b5x7_10",s:"_s_1b5x7_28",u:"_u_1b5x7_37",o:"_o_1b5x7_44",l:"_l_1b5x7_53",hh:"_hh_1b5x7_60"},ye=({title:t,children:n})=>r.jsxs("div",{className:N.h,children:[r.jsx("div",{className:N.t,children:t}),n]}),Ht=({children:t,title:n})=>r.jsxs("div",{className:N.o,children:[n&&r.jsx("div",{className:N.hh,children:n}),t]}),Jt=({children:t})=>r.jsx("div",{className:N.u,children:t}),we=({children:t})=>r.jsx("div",{className:N.s,children:t}),ke=({children:t,...n})=>r.jsx("div",{className:N.l,children:t}),Zt={Header:ye,Section:we,List:ke,U:Jt,L:ke,O:Ht,S:we,H:ye},Gt={Send:Qe,Error:et,Remark:rt,Success:tt,Copy:nt},Kt={Send:st};function Xt(){return r.jsx("svg",{viewBox:"0 0 462.86 359.96",children:r.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const Qt={Logo:Xt},er={setSSID:gt,getSSID:ht,Logaut:re,setAUTH:mt,getAUTH:bt,Start:_t},tr={Path:Pt,setPage:yt,getPage:ge,usePage:vt,setModule:kt,getModule:jt,useModule:wt,setTabs:Ct,getTabs:St,useTabs:zt,useId:Et,setId:Tt,subId:Rt,getId:It};x.Action=be,x.Alert=Kt,x.Browser=Dt,x.Button=xe,x.Component=Zt,x.Icon=Qt,x.Init=he,x.Modal=_e,x.Notice=Gt,x.Router=tr,x.Setting=qt,x.Store=er,x.Tabs=me,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
28
|
+
Check the top-level render call using <`+o+">.")}return i}}function qe(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Or(i);if(Ve[o])return;Ve[o]=!0;var l="";e&&e._owner&&e._owner!==le.current&&(l=" It was passed a child from "+T(e._owner.type)+"."),W(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,l),W(null)}}function He(e,i){{if(typeof e!="object")return;if(oe(e))for(var o=0;o<e.length;o++){var l=e[o];de(l)&&qe(l,i)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var f=or(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),u;!(u=p.next()).done;)de(u.value)&&qe(u.value,i)}}}function $r(e){{var i=e.type;if(i==null||typeof i=="string")return;var o;if(typeof i=="function")o=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===b||i.$$typeof===w))o=i.propTypes;else return;if(o){var l=T(i);vr(o,e.props,"prop",l,e)}else if(i.PropTypes!==void 0&&!ce){ce=!0;var f=T(i);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(e){{for(var i=Object.keys(e.props),o=0;o<i.length;o++){var l=i[o];if(l!=="children"&&l!=="key"){W(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),W(null);break}}e.ref!==null&&(W(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function Je(e,i,o,l,f,p){{var u=pr(e);if(!u){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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 j=Pr(f);j?d+=j:d+=Ue();var _;e===null?_="null":oe(e)?_="array":e!==void 0&&e.$$typeof===n?(_="<"+(T(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,d)}var h=Ir(e,i,o,f,p);if(h==null)return h;if(u){var S=i.children;if(S!==void 0)if(l)if(oe(S)){for(var Y=0;Y<S.length;Y++)He(S[Y],e);Object.freeze&&Object.freeze(S)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(S,e)}return e===s?Ar(h):$r(h),h}}function Nr(e,i,o){return Je(e,i,o,!0)}function Dr(e,i,o){return Je(e,i,o,!1)}var Fr=Dr,Mr=Nr;U.Fragment=s,U.jsx=Fr,U.jsxs=Mr}()),U}process.env.NODE_ENV==="production"?re.exports=Ge():re.exports=Ke();var r=re.exports;const Xe={notice:"_notice_820sc_2",error:"_error_820sc_9",success:"_success_820sc_12",remark:"_remark_820sc_15",copy:"_copy_820sc_18","show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let P={};function Qe(){let[t,n]=m.useState([]);return P.set=a=>{n([...t,a])},P.del=a=>{n(t.filter(s=>s.key!==a))},t.length===0?"":r.jsx("ul",{className:Xe.notice,children:t.map(a=>a.item)})}function V({data:t}){let[n,a]=m.useState("show");m.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){P.del(t.key)},2500)},[t.key]);let s,g;switch(t.type){case"error":s=r.jsx(A.error,{}),g="Ошибка:";break;case"success":s=r.jsx(A.success,{}),g="Информация:";break;case"copy":s=r.jsx(A.success,{}),g="Копирование:";break;case"remark":s=r.jsx(A.success,{}),g="Подсказка:";break;default:s=r.jsx(A.success,{}),g="Предупреждение:";break}return r.jsxs("li",{className:"item "+t.type,"data-status":n,children:[s,r.jsx("b",{children:g}),r.jsx("p",{children:t.text})]})}function et(t){let n=Date.now(),a={key:n,...t};P.set({item:r.jsx(V,{data:a},n),key:n})}function tt(t){let n=Date.now(),a={key:n,text:t,type:"error"};P.set({item:r.jsx(V,{data:a},n),key:n})}function rt(t){let n=Date.now(),a={key:n,text:t,type:"success"};P.set({item:r.jsx(V,{data:a},n),key:n})}function nt(t){let n=Date.now(),a={key:n,text:t,type:"remark"};P.set({item:r.jsx(V,{data:a},n),key:n})}function it(t){let n=Date.now(),a={key:n,text:t,type:"copy"};P.set({item:r.jsx(V,{data:a},n),key:n})}const A={};A.error=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[r.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),r.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),A.success=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[r.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),r.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const at={alerts:"_alerts_1e9y0_1",menuAnimation:"_menuAnimation_1e9y0_1",menuItemAnimation:"_menuItemAnimation_1e9y0_1","--body":"_--body_1e9y0_103",allert:"_allert_1e9y0_111","--form":"_--form_1e9y0_111"};let q={};function ot(){let[t,n]=m.useState("");return q.set=a=>n(a),q.del=()=>n(""),r.jsx(r.Fragment,{children:t})}const st=({data:t,callback:n})=>(t.button=t.button===void 0?"Подтвердить":t.button,r.jsxs("div",{className:at.alerts,children:[r.jsxs("dl",{children:[r.jsx("dt",{children:t.title}),r.jsx("dd",{children:t.text}),r.jsx("ul",{children:r.jsx("button",{"data-color":t.color||"blue",onClick:()=>{n(),q.del()},children:t.button})})]}),r.jsx("div",{className:"--body",onClick:q.del})]}));function lt(t,n){q.set(r.jsx(st,{data:t,callback:n}))}function ct({children:t}){return r.jsx("div",{className:"l",children:r.jsx("ul",{children:t})})}function dt({children:t}){return r.jsx("div",{className:"s",children:t})}const xe=({children:t,disabled:n,label:a,onClick:s})=>{const g=v=>{n||s&&s(v)};return r.jsx("button",{disabled:n,onClick:g,children:a})},O={white:"_white_6ax6z_14",black:"_black_6ax6z_26",shake:"_shake_6ax6z_1",modal:"_modal_6ax6z_73",o:"_o_6ax6z_83",w:"_w_6ax6z_14",h:"_h_6ax6z_106",l:"_l_6ax6z_120",t:"_t_6ax6z_158",m:"_m_6ax6z_73",x:"_x_6ax6z_166",s:"_s_6ax6z_176",c:"_c_6ax6z_181",f:"_f_6ax6z_186",btn:"_btn_6ax6z_229",g:"_g_6ax6z_242","size-a":"_size-a_6ax6z_294","size-s":"_size-s_6ax6z_298","size-m":"_size-m_6ax6z_302","size-l":"_size-l_6ax6z_306","size-x":"_size-x_6ax6z_310","size-f":"_size-f_6ax6z_314",confirm:"_confirm_6ax6z_320",cancel:"_cancel_6ax6z_325",disabled:"_disabled_6ax6z_330",await:"_await_6ax6z_337",active:"_active_6ax6z_387",coincidence:"_coincidence_6ax6z_393"};let M={};const ut=({config:t})=>{let[n,a]=m.useState([]);return M.x=()=>{a([])},M.config=t,M.add=s=>{a([...n,s])},r.jsx(r.Fragment,{children:n.map(s=>s)})},ft=({children:t,title:n,button:a,tabs:s,size:g="m",menu:v})=>{const[D,E]=m.useState(!0),b=m.useRef(),$=w=>{if(a&&a.onClick)return a.onClick({closed:E,disabled:w})},y=()=>{b.current.setAttribute("shake",!0),setTimeout(()=>{b.current.setAttribute("shake",!1)},1e3)};return r.jsx(r.Fragment,{children:D?r.jsxs("div",{className:`${O.modal} ${O.white}`,children:[r.jsx("div",{className:O.o,onClick:y}),r.jsxs("div",{className:O.w,ref:b,children:[r.jsxs("div",{className:O.h,children:[r.jsx("div",{className:O.t,children:n}),r.jsxs("div",{className:O.m,children:[s&&r.jsx("nav",{children:s.map((w,R)=>r.jsx("span",{onClick:w.onClick,className:w.active?"active":"",children:w.name},R))}),v]}),r.jsx("div",{className:O.x,onClick:()=>{E(!1)},children:"x"})]}),t,a!==void 0?r.jsx(xe,{label:String(a.name),onClick:$}):""]})]}):""})},pt=t=>{M.add(r.jsx(xt,{children:t},String(Date.now())))},xt=({children:t})=>r.jsx(r.Fragment,{children:t}),_e={List:ct,Scroll:dt,Init:ut,Main:ft,Add:pt,Icon:({type:t,name:n,params:a})=>{let[s,g]=m.useState(null);return m.useEffect(()=>{M.config(t,n,a,g)},[a.id]),r.jsx(r.Fragment,{children:s})},Open:(t,n,a)=>{M.config(t,n,a)}};let C={};const c={},z={},ge={};function _t(t,n){if(C=t,localStorage.getItem("ssid")){let s=sessionStorage.getItem("page");s?(s=C.deCode(s),c.id=s.id,c.tab=s.tab,c.page=s.page,c.module=s.module,c.time=s.time,c.payment={active:!0},c.module_admin=s.module_admin):(c.id=0,c.tab="",c.page="Main",c.module=c.module||"M05")}else["ssid","menu","temp","user","sett","qder","firm","last","auth","port","mark","sort"].forEach(s=>localStorage.removeItem(s)),["page"].forEach(s=>sessionStorage.removeItem(s)),c.id=0,c.tab="",c.page="Auth",c.module="M00";return n}function Z(){["ssid","menu","temp","user","sett","qder","firm","last","auth","port","mark","sort"].forEach(t=>localStorage.removeItem(t)),["page"].forEach(t=>sessionStorage.removeItem(t)),window.location.reload()}function gt(t){t=t.split("/"),c.page="Main",c.module=t[0],c.tab=t[1],c.id=0,sessionStorage.setItem("page",C.enCode({module:c.module,page:c.page,tab:c.tab,id:c.id,time:new Date().getTime()})),z.page(c.page)}function ht(t){return localStorage.setItem("ssid",t)}function mt(){let t=localStorage.getItem("ssid");return t!==""&&t!=="undefined"&&t!==null?localStorage.getItem("ssid"):(Z(),!1)}function bt(t){return localStorage.setItem("auth",t)}function vt(){let t=localStorage.getItem("auth");return t!==""&&t!=="undefined"&&t!==null?t:(Z(),!1)}function yt(){const[t,n]=m.useState(he()),a=s=>{n(s)};return z.page=a,[t]}function wt(t){c.page=t,sessionStorage.setItem("page",C.enCode(c)),z.page(t)}function he(){return c.page}function kt(t){z.module=t}function jt(t,n){c.module=t,sessionStorage.setItem("page",C.enCode(c)),n!=="false"&&z.module(t)}function zt(){return c.module}function St(t){z.tabs=t}function Ct(t,n){c.tab=t,sessionStorage.setItem("page",C.enCode(c)),n!=="false"&&z.tabs(t)}function Et(){return c.tab}function Rt(){const[t,n]=m.useState(c.id),a=s=>{n(s)};return z.id=a,[t]}function Tt(t){z.id=t}function It(t,n){c.id=t,sessionStorage.setItem("page",C.enCode(c)),n!=="false"&&z.id(t)}function Pt(){return c.id}function Ot(t,n,a){c.module=t,c.id=a,c.tab=n,sessionStorage.setItem("page",C.enCode(c)),z.module(t),z.tabs(n)}function $t(t,n){ge.data[t]=n,localStorage.setItem("sett",C.enCode(ge.data))}function At(t){let n=localStorage.getItem("sett");return n===null?{}:(n=C.deCode(n),n?t!==void 0?n[t]:n:Z())}const me=({children:t,config:n,crypto:a,...s})=>_t(a,r.jsxs(r.Fragment,{children:[r.jsx(_e.Init,{config:n.modal}),r.jsx(Qe,{}),r.jsx(ot,{}),t]})),Nt=({children:t,...n})=>r.jsx("menu",{children:t}),Dt=({children:t,...n})=>r.jsxs("header",{children:["xz",t]}),Ft={payment:"_payment_1lxfv_1"};function Mt(){let[t,n]=m.useState({});return!t.active&&!t.payment?"":r.jsx("div",{className:Ft.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Lt=({children:t,...n})=>{let a={};return a.enCode=s=>JSON.stringify(s).toString(),a.deCode=s=>JSON.parse(s),r.jsxs("div",{className:"app",children:[r.jsx(Mt,{}),r.jsx(Nt,{}),r.jsx(Dt,{}),r.jsx(me,{config:{modal:{}},crypto:a}),t]})},be=({list:t,onClick:n,active:a,size:s,view:g})=>r.jsx("nav",{children:r.jsx("ul",{className:[s,g].join(" "),children:t.map(v=>r.jsx(Wt,{onClick:n,active:a,label:v.label,link:v.link},v.link))})}),Wt=({onClick:t,label:n,link:a,active:s})=>r.jsx("li",{"tabs-active":String(s===a),onClick:()=>t(a),children:n});be.defaultProps={size:"M",view:"H"};const Yt=({title:t="",button:n,description:a="",children:s})=>r.jsxs("fieldset",{children:[t&&r.jsxs("legend",{children:[t,n&&r.jsx("div",{role:"button-outline",onClick:()=>n.onClick(),children:n.label})," "]}),r.jsx("ul",{children:s}),a&&r.jsx("article",{children:a})]}),Bt={setting:"_setting_1r0pc_2"},Ut=({children:t})=>r.jsx("div",{className:Bt.setting,children:t}),Vt=({label:t,children:n})=>{let[a,s]=m.useState(!1);return r.jsxs("li",{"data-item":"accordion",children:[r.jsxs("dl",{onClick:()=>s(!a),children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:r.jsx("div",{"data-close":String(a)})})]}),a&&r.jsx("div",{children:n})]})},qt=({label:t,onClick:n,button:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"button",onClick:()=>n(),children:a})]})}),ve={Switch:({active:t,onClick:n})=>(console.log(t),t=typeof t=="number"?!!t:t,r.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),n()},"aria-checked":t?"true":"false"}))},Ht={Accordion:Vt,Button:qt,Switch:({label:t,onClick:n,active:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:r.jsx(ve.Switch,{onClick:n,active:a})})]})}),Info:({label:t,info:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"info",children:n})]})}),Select:({label:t,active:n,options:a})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{role:"info",children:n})]})}),Component:({label:t,children:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:n})]})}),Node:({label:t,children:n})=>r.jsx("li",{children:r.jsxs("dl",{children:[r.jsx("dt",{children:t}),r.jsx("dd",{children:n})]})})};function ye({list:t,onClick:n,active:a,size:s,view:g}){return r.jsx("nav",{children:r.jsx("ul",{className:[s,g].join(" "),children:t.map(v=>r.jsx(Jt,{onClick:n,active:a,label:v.label,link:v.link},v.link))})})}const Jt=({onClick:t,label:n,link:a,active:s})=>r.jsx("li",{"tabs-active":String(s===a),onClick:()=>t(a),children:n});ye.defaultProps={size:"M",view:"H"};const Zt={Section:Yt,Main:Ut,Item:Ht,Tabs:ye},N={h:"_h_1b5x7_1",t:"_t_1b5x7_10",s:"_s_1b5x7_28",u:"_u_1b5x7_37",o:"_o_1b5x7_44",l:"_l_1b5x7_53",hh:"_hh_1b5x7_60"},we=({title:t,children:n})=>r.jsxs("div",{className:N.h,children:[r.jsx("div",{className:N.t,children:t}),n]}),Gt=({children:t,title:n})=>r.jsxs("div",{className:N.o,children:[n&&r.jsx("div",{className:N.hh,children:n}),t]}),Kt=({children:t})=>r.jsx("div",{className:N.u,children:t}),ke=({children:t})=>r.jsx("div",{className:N.s,children:t}),je=({children:t,...n})=>r.jsx("div",{className:N.l,children:t}),Xt={Header:we,Section:ke,List:je,U:Kt,L:je,O:Gt,S:ke,H:we},Qt={Send:et,Error:tt,Remark:nt,Success:rt,Copy:it},er={Send:lt};function tr(){return r.jsx("svg",{viewBox:"0 0 462.86 359.96",children:r.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const rr={Logo:tr},nr={setSSID:ht,getSSID:mt,Logaut:Z,setAUTH:bt,getAUTH:vt,Start:gt,setSetting:$t,getSetting:At},ir={Path:Ot,setPage:wt,getPage:he,usePage:yt,setModule:jt,getModule:zt,useModule:kt,setTabs:Ct,getTabs:Et,useTabs:St,useId:Rt,setId:It,subId:Tt,getId:Pt};x.Action=ve,x.Alert=er,x.Browser=Lt,x.Button=xe,x.Component=Xt,x.Icon=rr,x.Init=me,x.Modal=_e,x.Notice=Qt,x.Router=ir,x.Setting=Zt,x.Store=nr,x.Tabs=be,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
package/dist/lib/Init/Init.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface Crypto {
|
|
2
3
|
enCode: (data: any) => string;
|
|
3
4
|
deCode: () => string;
|
|
@@ -7,5 +8,5 @@ type Props = {
|
|
|
7
8
|
config: any;
|
|
8
9
|
crypto: Crypto;
|
|
9
10
|
};
|
|
10
|
-
declare const Init: ({ children, config, crypto, ...restProps }: Props) => import(
|
|
11
|
+
declare const Init: ({ children, config, crypto, ...restProps }: Props) => import('react').ReactNode;
|
|
11
12
|
export default Init;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
declare let Crypto: any;
|
|
2
4
|
type Crypto = {
|
|
3
5
|
enCode: (data: any) => string;
|
|
4
6
|
deCode: () => string;
|
|
5
7
|
};
|
|
6
|
-
export declare function Init(
|
|
7
|
-
crypto: Crypto;
|
|
8
|
-
}): void;
|
|
8
|
+
export declare function Init(crypto: Crypto, render: React.ReactNode): React.ReactNode;
|
|
9
9
|
export declare function Logaut(): void;
|
|
10
10
|
export declare function Start(o: any): void;
|
|
11
11
|
export declare function setSSID(t: string): void;
|
|
@@ -28,4 +28,6 @@ export declare function subId(id: string): void;
|
|
|
28
28
|
export declare function setId(id: string, reload: string): void;
|
|
29
29
|
export declare function getId(): any;
|
|
30
30
|
export declare function Path(module: string, tab: string, id: string): void;
|
|
31
|
+
export declare function setSetting(s: string, p: string): void;
|
|
32
|
+
export declare function getSetting(p: string): any;
|
|
31
33
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setSSID, getSSID, Logaut, setAUTH, getAUTH, Start } from './Store';
|
|
1
|
+
import { setSSID, getSSID, Logaut, setAUTH, getAUTH, Start, setSetting, getSetting } from './Store';
|
|
2
2
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
setSSID: typeof setSSID;
|
|
@@ -7,5 +7,7 @@ declare const _default: {
|
|
|
7
7
|
setAUTH: typeof setAUTH;
|
|
8
8
|
getAUTH: typeof getAUTH;
|
|
9
9
|
Start: typeof Start;
|
|
10
|
+
setSetting: typeof setSetting;
|
|
11
|
+
getSetting: typeof getSetting;
|
|
10
12
|
};
|
|
11
13
|
export default _default;
|