elcrm 0.2.2 → 0.2.3
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 +6 -5
- package/dist/index.umd.js +1 -1
- package/dist/lib/Init/Init.d.ts +2 -1
- package/dist/lib/Store/Store.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -890,10 +890,10 @@ const vr = ({ config: t }) => {
|
|
|
890
890
|
}, jr = { List: Bt, Scroll: qt, Init: vr, Main: hr, Add: xr, Icon: gr, Open: br };
|
|
891
891
|
let $ = {};
|
|
892
892
|
const l = {}, E = {};
|
|
893
|
-
function yr(
|
|
893
|
+
function yr(t, n) {
|
|
894
894
|
if ($ = t, localStorage.getItem("ssid")) {
|
|
895
|
-
let
|
|
896
|
-
|
|
895
|
+
let i = sessionStorage.getItem("page");
|
|
896
|
+
i ? (i = $.deCode(i), l.id = i.id, l.tab = i.tab, l.page = i.page, l.module = i.module, l.time = i.time, l.payment = { active: !0 }, l.module_admin = i.module_admin) : (l.id = 0, l.tab = "", l.page = "Main", l.module = l.module || "M05");
|
|
897
897
|
} else
|
|
898
898
|
[
|
|
899
899
|
"ssid",
|
|
@@ -908,7 +908,8 @@ function yr({ crypto: t }) {
|
|
|
908
908
|
"port",
|
|
909
909
|
"mark",
|
|
910
910
|
"sort"
|
|
911
|
-
].forEach((
|
|
911
|
+
].forEach((i) => localStorage.removeItem(i)), ["page"].forEach((i) => sessionStorage.removeItem(i)), l.id = 0, l.tab = "", l.page = "Auth", l.module = "M00";
|
|
912
|
+
return n;
|
|
912
913
|
}
|
|
913
914
|
function le() {
|
|
914
915
|
[
|
|
@@ -1000,7 +1001,7 @@ function Mr() {
|
|
|
1000
1001
|
function Lr(t, n, a) {
|
|
1001
1002
|
l.module = t, l.id = a, l.tab = n, sessionStorage.setItem("page", $.enCode(l)), E.module(t), E.tabs(n);
|
|
1002
1003
|
}
|
|
1003
|
-
const Wr = ({ children: t, config: n, crypto: a, ...i }) =>
|
|
1004
|
+
const Wr = ({ children: t, config: n, crypto: a, ...i }) => yr(a, /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1004
1005
|
/* @__PURE__ */ r.jsx(jr.Init, { config: n.modal }),
|
|
1005
1006
|
/* @__PURE__ */ r.jsx(It, {}),
|
|
1006
1007
|
/* @__PURE__ */ r.jsx(Yt, {}),
|
package/dist/index.umd.js
CHANGED
|
@@ -25,4 +25,4 @@ Check the render method of \``+e+"`."}return""}}function Rr(e){{if(e!==void 0){v
|
|
|
25
25
|
|
|
26
26
|
Check your code at `+i+":"+o+"."}return""}}var Ue={};function Tr(e){{var i=Be();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 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(t,n){if(O=t,localStorage.getItem("ssid")){let s=sessionStorage.getItem("page");s?(s=O.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 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(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"})});
|
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;
|