elcrm 0.3.2 → 0.3.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 CHANGED
@@ -130,13 +130,13 @@ function It() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var F = Object.assign, U = 0, he, pe, xe, ge, be, je, ye;
133
+ var F = Object.assign, V = 0, he, pe, xe, ge, be, je, ye;
134
134
  function Ce() {
135
135
  }
136
136
  Ce.__reactDisabledLog = !0;
137
137
  function st() {
138
138
  {
139
- if (U === 0) {
139
+ if (V === 0) {
140
140
  he = console.log, pe = console.info, xe = console.warn, ge = console.error, be = console.group, je = console.groupCollapsed, ye = console.groupEnd;
141
141
  var e = {
142
142
  configurable: !0,
@@ -154,12 +154,12 @@ function It() {
154
154
  groupEnd: e
155
155
  });
156
156
  }
157
- U++;
157
+ V++;
158
158
  }
159
159
  }
160
160
  function at() {
161
161
  {
162
- if (U--, U === 0) {
162
+ if (V--, V === 0) {
163
163
  var e = {
164
164
  configurable: !0,
165
165
  enumerable: !0,
@@ -189,7 +189,7 @@ function It() {
189
189
  })
190
190
  });
191
191
  }
192
- U < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ V < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
195
  var ne = D.ReactCurrentDispatcher, se;
@@ -369,7 +369,7 @@ function It() {
369
369
  if (ft(e))
370
370
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dt(e)), ke(e);
371
371
  }
372
- var V = D.ReactCurrentOwner, mt = {
372
+ var U = D.ReactCurrentOwner, mt = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -393,9 +393,9 @@ function It() {
393
393
  return e.key !== void 0;
394
394
  }
395
395
  function ht(e, s) {
396
- if (typeof e.ref == "string" && V.current && s && V.current.stateNode !== s) {
397
- var i = P(V.current.type);
398
- ie[i] || (S('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', P(V.current.type), e.ref), ie[i] = !0);
396
+ if (typeof e.ref == "string" && U.current && s && U.current.stateNode !== s) {
397
+ var i = P(U.current.type);
398
+ ie[i] || (S('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', P(U.current.type), e.ref), ie[i] = !0);
399
399
  }
400
400
  }
401
401
  function pt(e, s) {
@@ -464,7 +464,7 @@ function It() {
464
464
  var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
465
  u && pt(d, j), E && xt(d, j);
466
466
  }
467
- return gt(e, u, E, f, c, V.current, d);
467
+ return gt(e, u, E, f, c, U.current, d);
468
468
  }
469
469
  }
470
470
  var ce = D.ReactCurrentOwner, Pe = D.ReactDebugCurrentFrame;
@@ -731,9 +731,9 @@ N.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
731
731
  }
732
732
  )
733
733
  ] });
734
- const Ut = "_alerts_1e9y0_1", Vt = "_menuAnimation_1e9y0_1", Bt = "_menuItemAnimation_1e9y0_1", qt = "_allert_1e9y0_111", Ht = {
735
- alerts: Ut,
736
- menuAnimation: Vt,
734
+ const Vt = "_alerts_1e9y0_1", Ut = "_menuAnimation_1e9y0_1", Bt = "_menuItemAnimation_1e9y0_1", qt = "_allert_1e9y0_111", Ht = {
735
+ alerts: Vt,
736
+ menuAnimation: Ut,
737
737
  menuItemAnimation: Bt,
738
738
  "--body": "_--body_1e9y0_103",
739
739
  allert: qt,
@@ -954,7 +954,7 @@ function $r() {
954
954
  return t !== "" && t !== "undefined" && t !== null ? t : (Y(), !1);
955
955
  }
956
956
  function Ar() {
957
- const [t, r] = y.useState(Ve()), a = (o) => {
957
+ const [t, r] = y.useState(Ue()), a = (o) => {
958
958
  r(o);
959
959
  };
960
960
  return k.page = a, [t];
@@ -962,7 +962,7 @@ function Ar() {
962
962
  function Fr(t) {
963
963
  l.page = t, sessionStorage.setItem("page", R.enCode(l)), k.page(t);
964
964
  }
965
- function Ve() {
965
+ function Ue() {
966
966
  return l.page;
967
967
  }
968
968
  function Nr() {
@@ -1001,10 +1001,10 @@ function Wr(t) {
1001
1001
  function Yr(t, r) {
1002
1002
  l.id = t, sessionStorage.setItem("page", R.enCode(l)), r !== "false" && k.id(t);
1003
1003
  }
1004
- function Ur() {
1004
+ function Vr() {
1005
1005
  return l.id;
1006
1006
  }
1007
- function Vr(t, r, a) {
1007
+ function Ur(t, r, a) {
1008
1008
  l.module = t, l.id = a, l.tab = r, sessionStorage.setItem("page", R.enCode(l)), k.module(t), k.tabs(r);
1009
1009
  }
1010
1010
  function Br(t, r) {
@@ -1165,7 +1165,7 @@ const Dn = { Section: sn, Main: cn, Item: xn, Tabs: He }, bn = "_h_1or29_1", jn
1165
1165
  ] }), kn = ({ children: t, title: r }) => /* @__PURE__ */ n.jsxs("div", { className: z.o, children: [
1166
1166
  r && /* @__PURE__ */ n.jsx("div", { className: z.hh, children: r }),
1167
1167
  t
1168
- ] }), wn = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: z.u, children: t }), Ye = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: z.s, children: t }), Ue = ({ children: t, ...r }) => /* @__PURE__ */ n.jsx("div", { className: z.l, children: t }), Mn = { Header: We, Section: Ye, List: Ue, U: wn, L: Ue, O: kn, S: Ye, H: We }, Ln = { Send: Dt, Error: Mt, Remark: Wt, Success: Lt, Copy: Yt }, Wn = { Send: Zt };
1168
+ ] }), wn = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: z.u, children: t }), Ye = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: z.s, children: t }), Ve = ({ children: t, ...r }) => /* @__PURE__ */ n.jsx("div", { className: z.l, children: t }), Mn = { Header: We, Section: Ye, List: Ve, U: wn, L: Ve, O: kn, S: Ye, H: We }, Ln = { Send: Dt, Error: Mt, Remark: Wt, Success: Lt, Copy: Yt }, Wn = { Send: Zt };
1169
1169
  function Tn() {
1170
1170
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
1171
1171
  "path",
@@ -1175,7 +1175,7 @@ function Tn() {
1175
1175
  }
1176
1176
  ) });
1177
1177
  }
1178
- const Yn = { Logo: Tn }, Un = { setSSID: Ir, getSSID: Pr, Logaut: Y, setAUTH: Or, getAUTH: $r, Start: Tr, setSetting: Br, getSetting: qr, setMenu: Hr, getMenu: Jr, useSort: Gr, setSort: qe, getSort: fe }, Vn = { Path: Vr, setPage: Fr, getPage: Ve, usePage: Ar, setModule: zr, getModule: Be, useModule: Nr, setTabs: Mr, getTabs: te, useTabs: Dr, useId: Lr, setId: Yr, subId: Wr, getId: Ur };
1178
+ const Yn = { Logo: Tn }, Vn = { setSSID: Ir, getSSID: Pr, Logaut: Y, setAUTH: Or, getAUTH: $r, Start: Tr, setSetting: Br, getSetting: qr, setMenu: Hr, getMenu: Jr, useSort: Gr, setSort: qe, getSort: fe }, Un = { Path: Ur, setPage: Fr, getPage: Ue, usePage: Ar, setModule: zr, getModule: Be, useModule: Nr, setTabs: Mr, getTabs: te, useTabs: Dr, useId: Lr, setId: Yr, subId: Wr, getId: Vr };
1179
1179
  let re = {};
1180
1180
  function In(t, r) {
1181
1181
  switch (r.type) {
@@ -1190,40 +1190,37 @@ function In(t, r) {
1190
1190
  throw new Error();
1191
1191
  }
1192
1192
  }
1193
- function Pn({ name: t }) {
1194
- const [r, a] = y.useReducer(
1193
+ function Pn() {
1194
+ const [t, r] = y.useReducer(
1195
1195
  In,
1196
1196
  fe() === void 0 ? { active: 1, sort: "<" } : fe()
1197
1197
  );
1198
- return /* @__PURE__ */ n.jsxs("div", { className: "sort", children: [
1199
- /* @__PURE__ */ n.jsx("h5", { children: t }),
1200
- /* @__PURE__ */ n.jsxs("div", { className: "button", children: [
1201
- /* @__PURE__ */ n.jsx(
1202
- "i",
1203
- {
1204
- "data-color": r.active === 1 ? "_506290" : "_b5b9cc",
1205
- "data-icon": r.active === 1 ? r.sort === "<" ? "F073" : "F072" : "F071",
1206
- onClick: () => a({ type: "active", data: 1 })
1207
- }
1208
- ),
1209
- /* @__PURE__ */ n.jsx(
1210
- "i",
1211
- {
1212
- "data-color": r.active === 2 ? "_506290" : "_b5b9cc",
1213
- "data-icon": r.active === 2 ? r.sort === "<" ? "F066" : "F067" : "F074",
1214
- onClick: () => a({ type: "active", data: 2 })
1215
- }
1216
- ),
1217
- /* @__PURE__ */ n.jsx(
1218
- "i",
1219
- {
1220
- "data-color": r.active === 3 ? "_506290" : "_b5b9cc",
1221
- "data-icon": r.active === 3 ? r.sort === "<" ? "F068" : "F069" : "F070",
1222
- onClick: () => a({ type: "active", data: 3 })
1223
- }
1224
- )
1225
- ] })
1226
- ] });
1198
+ return /* @__PURE__ */ n.jsx("div", { className: "sort", children: /* @__PURE__ */ n.jsxs("div", { className: "button", children: [
1199
+ /* @__PURE__ */ n.jsx(
1200
+ "i",
1201
+ {
1202
+ "data-color": t.active === 1 ? "_506290" : "_b5b9cc",
1203
+ "data-icon": t.active === 1 ? t.sort === "<" ? "F073" : "F072" : "F071",
1204
+ onClick: () => r({ type: "active", data: 1 })
1205
+ }
1206
+ ),
1207
+ /* @__PURE__ */ n.jsx(
1208
+ "i",
1209
+ {
1210
+ "data-color": t.active === 2 ? "_506290" : "_b5b9cc",
1211
+ "data-icon": t.active === 2 ? t.sort === "<" ? "F066" : "F067" : "F074",
1212
+ onClick: () => r({ type: "active", data: 2 })
1213
+ }
1214
+ ),
1215
+ /* @__PURE__ */ n.jsx(
1216
+ "i",
1217
+ {
1218
+ "data-color": t.active === 3 ? "_506290" : "_b5b9cc",
1219
+ "data-icon": t.active === 3 ? t.sort === "<" ? "F068" : "F069" : "F070",
1220
+ onClick: () => r({ type: "active", data: 3 })
1221
+ }
1222
+ )
1223
+ ] }) });
1227
1224
  }
1228
1225
  function On(t) {
1229
1226
  re.get = t;
@@ -1253,7 +1250,7 @@ function An(t, r, a) {
1253
1250
  function Fn(t) {
1254
1251
  re.count(t);
1255
1252
  }
1256
- const Bn = { Init: Pn, Get: On, Set: $n, Run: An, Count: Fn };
1253
+ const Bn = { Init: Pn, useValue: On, Set: $n, Run: An, Count: Fn };
1257
1254
  export {
1258
1255
  fn as Action,
1259
1256
  Wn as Alert,
@@ -1264,9 +1261,9 @@ export {
1264
1261
  Zr as Init,
1265
1262
  kr as Modal,
1266
1263
  Ln as Notice,
1267
- Vn as Router,
1264
+ Un as Router,
1268
1265
  Dn as Setting,
1269
- Un as Store,
1266
+ Vn as Store,
1270
1267
  rn as Tabs,
1271
1268
  Bn as Triage
1272
1269
  };
package/dist/index.umd.js CHANGED
@@ -19,10 +19,10 @@
19
19
  `+se+e}}var le=!1,ee;{var Tr=typeof WeakMap=="function"?WeakMap:Map;ee=new Tr}function We(e,a){if(!e||le)return"";{var s=ee.get(e);if(s!==void 0)return s}var l;le=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=ie.current,ie.current=null,Er();try{if(a){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(O){l=O}Reflect.construct(e,[],u)}else{try{u.call()}catch(O){l=O}e.call(u.prototype)}}else{try{throw Error()}catch(O){l=O}e()}}catch(O){if(O&&l&&typeof O.stack=="string"){for(var d=O.stack.split(`
20
20
  `),C=l.stack.split(`
21
21
  `),w=d.length-1,k=C.length-1;w>=1&&k>=0&&d[w]!==C[k];)k--;for(;w>=1&&k>=0;w--,k--)if(d[w]!==C[k]){if(w!==1||k!==1)do if(w--,k--,k<0||d[w]!==C[k]){var R=`
22
- `+d[w].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,R),R}while(w>=1&&k>=0);break}}}finally{le=!1,ie.current=_,Rr(),Error.prepareStackTrace=f}var B=e?e.displayName||e.name:"",et=B?Q(B):"";return typeof e=="function"&&ee.set(e,et),et}function Ir(e,a,s){return We(e,!1)}function Pr(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function te(e,a,s){if(e==null)return"";if(typeof e=="function")return We(e,Pr(e));if(typeof e=="string")return Q(e);switch(e){case b:return Q("Suspense");case x:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Ir(e.render);case z:return te(e.type,a,s);case I:{var l=e,f=l._payload,_=l._init;try{return te(_(f),a,s)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,Ye={},Be=W.ReactDebugCurrentFrame;function ne(e){if(e){var a=e._owner,s=te(e.type,e._source,a?a.type:null);Be.setExtraStackFrame(s)}else Be.setExtraStackFrame(null)}function Or(e,a,s,l,f){{var _=Function.call.bind(re);for(var u in e)if(_(e,u)){var d=void 0;try{if(typeof e[u]!="function"){var C=Error((l||"React class")+": "+s+" 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 C.name="Invariant Violation",C}d=e[u](a,u,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){d=w}d&&!(d instanceof Error)&&(ne(f),S("%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",s,u,typeof d),ne(null)),d instanceof Error&&!(d.message in Ye)&&(Ye[d.message]=!0,ne(f),S("Failed %s type: %s",s,d.message),ne(null))}}}var $r=Array.isArray;function ce(e){return $r(e)}function Ar(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Fr(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ve(e){if(Fr(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(e)),Ue(e)}var G=W.ReactCurrentOwner,Mr={key:!0,ref:!0,__self:!0,__source:!0},qe,He,de;de={};function Nr(e){if(re.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Dr(e){if(re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Lr(e,a){if(typeof e.ref=="string"&&G.current&&a&&G.current.stateNode!==a){var s=P(G.current.type);de[s]||(S('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',P(G.current.type),e.ref),de[s]=!0)}}function Wr(e,a){{var s=function(){qe||(qe=!0,S("%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)",a))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Yr(e,a){{var s=function(){He||(He=!0,S("%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)",a))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var Br=function(e,a,s,l,f,_,u){var d={$$typeof:r,type:e,key:a,ref:s,props:u,_owner:_};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 Ur(e,a,s,l,f){{var _,u={},d=null,C=null;s!==void 0&&(Ve(s),d=""+s),Dr(a)&&(Ve(a.key),d=""+a.key),Nr(a)&&(C=a.ref,Lr(a,f));for(_ in a)re.call(a,_)&&!Mr.hasOwnProperty(_)&&(u[_]=a[_]);if(e&&e.defaultProps){var w=e.defaultProps;for(_ in w)u[_]===void 0&&(u[_]=w[_])}if(d||C){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Wr(u,k),C&&Yr(u,k)}return Br(e,d,C,f,l,G.current,u)}}var ue=W.ReactCurrentOwner,Je=W.ReactDebugCurrentFrame;function Y(e){if(e){var a=e._owner,s=te(e.type,e._source,a?a.type:null);Je.setExtraStackFrame(s)}else Je.setExtraStackFrame(null)}var fe;fe=!1;function pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ue.current){var e=P(ue.current.type);if(e)return`
22
+ `+d[w].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,R),R}while(w>=1&&k>=0);break}}}finally{le=!1,ie.current=_,Rr(),Error.prepareStackTrace=f}var B=e?e.displayName||e.name:"",et=B?Q(B):"";return typeof e=="function"&&ee.set(e,et),et}function Ir(e,a,s){return We(e,!1)}function Pr(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function te(e,a,s){if(e==null)return"";if(typeof e=="function")return We(e,Pr(e));if(typeof e=="string")return Q(e);switch(e){case b:return Q("Suspense");case x:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Ir(e.render);case z:return te(e.type,a,s);case I:{var l=e,f=l._payload,_=l._init;try{return te(_(f),a,s)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,Ye={},Be=W.ReactDebugCurrentFrame;function ne(e){if(e){var a=e._owner,s=te(e.type,e._source,a?a.type:null);Be.setExtraStackFrame(s)}else Be.setExtraStackFrame(null)}function Or(e,a,s,l,f){{var _=Function.call.bind(re);for(var u in e)if(_(e,u)){var d=void 0;try{if(typeof e[u]!="function"){var C=Error((l||"React class")+": "+s+" 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 C.name="Invariant Violation",C}d=e[u](a,u,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){d=w}d&&!(d instanceof Error)&&(ne(f),S("%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",s,u,typeof d),ne(null)),d instanceof Error&&!(d.message in Ye)&&(Ye[d.message]=!0,ne(f),S("Failed %s type: %s",s,d.message),ne(null))}}}var $r=Array.isArray;function ce(e){return $r(e)}function Ar(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Fr(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ve(e){if(Fr(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(e)),Ue(e)}var Z=W.ReactCurrentOwner,Mr={key:!0,ref:!0,__self:!0,__source:!0},qe,He,de;de={};function Nr(e){if(re.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Dr(e){if(re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Lr(e,a){if(typeof e.ref=="string"&&Z.current&&a&&Z.current.stateNode!==a){var s=P(Z.current.type);de[s]||(S('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',P(Z.current.type),e.ref),de[s]=!0)}}function Wr(e,a){{var s=function(){qe||(qe=!0,S("%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)",a))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Yr(e,a){{var s=function(){He||(He=!0,S("%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)",a))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var Br=function(e,a,s,l,f,_,u){var d={$$typeof:r,type:e,key:a,ref:s,props:u,_owner:_};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 Ur(e,a,s,l,f){{var _,u={},d=null,C=null;s!==void 0&&(Ve(s),d=""+s),Dr(a)&&(Ve(a.key),d=""+a.key),Nr(a)&&(C=a.ref,Lr(a,f));for(_ in a)re.call(a,_)&&!Mr.hasOwnProperty(_)&&(u[_]=a[_]);if(e&&e.defaultProps){var w=e.defaultProps;for(_ in w)u[_]===void 0&&(u[_]=w[_])}if(d||C){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Wr(u,k),C&&Yr(u,k)}return Br(e,d,C,f,l,Z.current,u)}}var ue=W.ReactCurrentOwner,Je=W.ReactDebugCurrentFrame;function Y(e){if(e){var a=e._owner,s=te(e.type,e._source,a?a.type:null);Je.setExtraStackFrame(s)}else Je.setExtraStackFrame(null)}var fe;fe=!1;function pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(ue.current){var e=P(ue.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function Vr(e){{if(e!==void 0){var a=e.fileName.replace(/^.*[\\\/]/,""),s=e.lineNumber;return`
25
25
 
26
- Check your code at `+a+":"+s+"."}return""}}var Ze={};function qr(e){{var a=Ge();if(!a){var s=typeof e=="string"?e:e.displayName||e.name;s&&(a=`
26
+ Check your code at `+a+":"+s+"."}return""}}var Ge={};function qr(e){{var a=Ze();if(!a){var s=typeof e=="string"?e:e.displayName||e.name;s&&(a=`
27
27
 
28
- Check the top-level render call using <`+s+">.")}return a}}function Ke(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=qr(a);if(Ze[s])return;Ze[s]=!0;var l="";e&&e._owner&&e._owner!==ue.current&&(l=" It was passed a child from "+P(e._owner.type)+"."),Y(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,l),Y(null)}}function Xe(e,a){{if(typeof e!="object")return;if(ce(e))for(var s=0;s<e.length;s++){var l=e[s];pe(l)&&Ke(l,a)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var f=br(e);if(typeof f=="function"&&f!==e.entries)for(var _=f.call(e),u;!(u=_.next()).done;)pe(u.value)&&Ke(u.value,a)}}}function Hr(e){{var a=e.type;if(a==null||typeof a=="string")return;var s;if(typeof a=="function")s=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===m||a.$$typeof===z))s=a.propTypes;else return;if(s){var l=P(a);Or(s,e.props,"prop",l,e)}else if(a.PropTypes!==void 0&&!fe){fe=!0;var f=P(a);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jr(e){{for(var a=Object.keys(e.props),s=0;s<a.length;s++){var l=a[s];if(l!=="children"&&l!=="key"){Y(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),Y(null);break}}e.ref!==null&&(Y(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}function Qe(e,a,s,l,f,_){{var u=Sr(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 C=Vr(f);C?d+=C:d+=Ge();var w;e===null?w="null":ce(e)?w="array":e!==void 0&&e.$$typeof===r?(w="<"+(P(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,d)}var k=Ur(e,a,s,f,_);if(k==null)return k;if(u){var R=a.children;if(R!==void 0)if(l)if(ce(R)){for(var B=0;B<R.length;B++)Xe(R[B],e);Object.freeze&&Object.freeze(R)}else S("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 Xe(R,e)}return e===i?Jr(k):Hr(k),k}}function Gr(e,a,s){return Qe(e,a,s,!0)}function Zr(e,a,s){return Qe(e,a,s,!1)}var Kr=Zr,Xr=Gr;V.Fragment=i,V.jsx=Kr,V.jsxs=Xr}()),V}process.env.NODE_ENV==="production"?ae.exports=tt():ae.exports=rt();var n=ae.exports;const nt={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 $={};function at(){let[t,r]=y.useState([]);return $.set=o=>{r([...t,o])},$.del=o=>{r(t.filter(i=>i.key!==o))},t.length===0?"":n.jsx("ul",{className:nt.notice,children:t.map(o=>o.item)})}function q({data:t}){let[r,o]=y.useState("show");y.useEffect(()=>{setTimeout(function(){o("hide")},1800),setTimeout(function(){$.del(t.key)},2500)},[t.key]);let i,p;switch(t.type){case"error":i=n.jsx(F.error,{}),p="Ошибка:";break;case"success":i=n.jsx(F.success,{}),p="Информация:";break;case"copy":i=n.jsx(F.success,{}),p="Копирование:";break;case"remark":i=n.jsx(F.success,{}),p="Подсказка:";break;default:i=n.jsx(F.success,{}),p="Предупреждение:";break}return n.jsxs("li",{className:"item "+t.type,"data-status":r,children:[i,n.jsx("b",{children:p}),n.jsx("p",{children:t.text})]})}function ot(t){let r=Date.now(),o={key:r,...t};$.set({item:n.jsx(q,{data:o},r),key:r})}function it(t){let r=Date.now(),o={key:r,text:t,type:"error"};$.set({item:n.jsx(q,{data:o},r),key:r})}function st(t){let r=Date.now(),o={key:r,text:t,type:"success"};$.set({item:n.jsx(q,{data:o},r),key:r})}function lt(t){let r=Date.now(),o={key:r,text:t,type:"remark"};$.set({item:n.jsx(q,{data:o},r),key:r})}function ct(t){let r=Date.now(),o={key:r,text:t,type:"copy"};$.set({item:n.jsx(q,{data:o},r),key:r})}const F={};F.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.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"}),n.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"})]}),F.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.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"}),n.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 dt={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 H={};function ut(){let[t,r]=y.useState("");return H.set=o=>r(o),H.del=()=>r(""),n.jsx(n.Fragment,{children:t})}const ft=({data:t,callback:r})=>(t.button=t.button===void 0?"Подтвердить":t.button,n.jsxs("div",{className:dt.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:t.title}),n.jsx("dd",{children:t.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":t.color||"blue",onClick:()=>{r(),H.del()},children:t.button})})]}),n.jsx("div",{className:"--body",onClick:H.del})]}));function pt(t,r){H.set(n.jsx(ft,{data:t,callback:r}))}function xt({children:t}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:t})})}function _t({children:t}){return n.jsx("div",{className:"s",children:t})}const me=({children:t,disabled:r,label:o,onClick:i})=>{const p=g=>{r||i&&i(g)};return n.jsx("button",{disabled:r,onClick:p,children:o})},A={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 D={};const gt=({config:t})=>{let[r,o]=y.useState([]);return D.x=()=>{o([])},D.config=t,D.add=i=>{o([...r,i])},n.jsx(n.Fragment,{children:r.map(i=>i)})},mt=({children:t,title:r,button:o,tabs:i,size:p="m",menu:g})=>{const[T,h]=y.useState(!0),m=y.useRef(),b=z=>{if(o&&o.onClick)return o.onClick({closed:h,disabled:z})},x=()=>{m.current.setAttribute("shake",!0),setTimeout(()=>{m.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:T?n.jsxs("div",{className:`${A.modal} ${A.white}`,children:[n.jsx("div",{className:A.o,onClick:x}),n.jsxs("div",{className:A.w,ref:m,children:[n.jsxs("div",{className:A.h,children:[n.jsx("div",{className:A.t,children:r}),n.jsxs("div",{className:A.m,children:[i&&n.jsx("nav",{children:i.map((z,I)=>n.jsx("span",{onClick:z.onClick,className:z.active?"active":"",children:z.name},I))}),g]}),n.jsx("div",{className:A.x,onClick:()=>{h(!1)},children:"x"})]}),t,o!==void 0?n.jsx(me,{label:String(o.name),onClick:b}):""]})]}):""})},ht=t=>{D.add(n.jsx(bt,{children:t},String(Date.now())))},bt=({children:t})=>n.jsx(n.Fragment,{children:t}),he={List:xt,Scroll:_t,Init:gt,Main:mt,Add:ht,Icon:({type:t,name:r,params:o})=>{let[i,p]=y.useState(null);return y.useEffect(()=>{D.config(t,r,o,p)},[o.id]),n.jsx(n.Fragment,{children:i})},Open:(t,r,o)=>{D.config(t,r,o)}};let j={};const c={},E={},be={};function vt(t,r){if(j=t,localStorage.getItem("ssid")){let i=sessionStorage.getItem("page");i?(i=j.deCode(i),c.id=i.id,c.tab=i.tab,c.page=i.page,c.module=i.module,c.time=i.time,c.payment={active:!0},c.module_admin=i.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(i=>localStorage.removeItem(i)),["page"].forEach(i=>sessionStorage.removeItem(i)),c.id=0,c.tab="",c.page="Auth",c.module="M00";return r}function L(){["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 yt(t){t=t.split("/"),c.page="Main",c.module=t[0],c.tab=t[1],c.id=0,sessionStorage.setItem("page",j.enCode({module:c.module,page:c.page,tab:c.tab,id:c.id,time:new Date().getTime()})),E.page(c.page)}function wt(t){return localStorage.setItem("ssid",t)}function kt(){let t=localStorage.getItem("ssid");return t!==""&&t!=="undefined"&&t!==null?localStorage.getItem("ssid"):(L(),!1)}function jt(t){return localStorage.setItem("auth",t)}function zt(){let t=localStorage.getItem("auth");return t!==""&&t!=="undefined"&&t!==null?t:(L(),!1)}function St(){const[t,r]=y.useState(ve()),o=i=>{r(i)};return E.page=o,[t]}function Ct(t){c.page=t,sessionStorage.setItem("page",j.enCode(c)),E.page(t)}function ve(){return c.page}function Et(){const[t,r]=y.useState(ye()),o=i=>{r(i)};return E.module=o,[t]}function Rt(t,r){c.module=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.module(t)}function ye(){return c.module}function Tt(t){const[r,o]=y.useState(Z()||t),i=p=>{o(p)};return E.tabs=i,[r]}function It(t,r){c.tab=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.tabs(t)}function Z(){return c.tab}function Pt(){const[t,r]=y.useState(c.id),o=i=>{r(i)};return E.id=o,[t]}function Ot(t){E.id=t}function $t(t,r){c.id=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.id(t)}function At(){return c.id}function Ft(t,r,o){c.module=t,c.id=o,c.tab=r,sessionStorage.setItem("page",j.enCode(c)),E.module(t),E.tabs(r)}function Mt(t,r){be.data[t]=r,localStorage.setItem("sett",j.enCode(be.data))}function Nt(t){let r=localStorage.getItem("sett");return r===null?{}:(r=j.deCode(r),r?t!==void 0?r[t]:r:L())}function Dt(t){localStorage.setItem("menu",j.enCode({data:t}))}function Lt(){let t=localStorage.getItem("menu");if(t!==""&&t!=="undefined"&&t!==null){let r=localStorage.getItem("menu"),o=j.deCode(r);o||L();const i=(g,T)=>{let h=T+"";for(;h.length<g;)h="0"+h;return h};return o.data.split(",").map(g=>"M"+i(2,g))}else return L(),!1}function Wt(t){E.sort=t}function we(t){let r=localStorage.getItem("sort");r=r===null?{}:j.deCode(r),r[Z()]=t,localStorage.setItem("sort",j.enCode(r))}function oe(){let t=localStorage.getItem("sort");return t===null?{}:(t=j.deCode(t),t=t[Z()],t=t===void 0?{active:1,sort:"<"}:t,t)}const ke=({children:t,config:r,crypto:o,...i})=>vt(o,n.jsxs(n.Fragment,{children:[n.jsx(he.Init,{config:r.modal}),n.jsx(at,{}),n.jsx(ut,{}),t]})),Yt=({children:t,...r})=>n.jsx("menu",{children:t}),Bt=({children:t,...r})=>n.jsxs("header",{children:["xz",t]}),Ut={payment:"_payment_1lxfv_1"};function Vt(){let[t,r]=y.useState({});return!t.active&&!t.payment?"":n.jsx("div",{className:Ut.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const qt=({children:t,...r})=>{let o={};return o.enCode=i=>JSON.stringify(i).toString(),o.deCode=i=>JSON.parse(i),n.jsxs("div",{className:"app",children:[n.jsx(Vt,{}),n.jsx(Yt,{}),n.jsx(Bt,{}),n.jsx(ke,{config:{modal:{}},crypto:o}),t]})},je=({list:t,onClick:r,active:o,size:i,view:p})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,p].join(" "),children:t.map(g=>n.jsx(Ht,{onClick:r,active:o,label:g.label,link:g.link},g.link))})}),Ht=({onClick:t,label:r,link:o,active:i})=>n.jsx("li",{"tabs-active":String(i===o),onClick:()=>t(o),children:r});je.defaultProps={size:"M",view:"H"};const Jt=({title:t="",button:r,description:o="",children:i})=>n.jsxs("fieldset",{children:[t&&n.jsxs("legend",{children:[t,r&&n.jsx("div",{role:"button-outline",onClick:()=>r.onClick(),children:r.label})," "]}),n.jsx("ul",{children:i}),o&&n.jsx("article",{children:o})]}),Gt={setting:"_setting_1r0pc_2"},Zt=({children:t})=>n.jsx("div",{className:Gt.setting,children:t}),Kt=({label:t,children:r})=>{let[o,i]=y.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!o),children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(o)})})]}),o&&n.jsx("div",{children:r})]})},Xt=({label:t,onClick:r,button:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"button",onClick:()=>r(),children:o})]})}),ze={Switch:({active:t,onClick:r})=>(console.log(t),t=typeof t=="number"?!!t:t,n.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),r()},"aria-checked":t?"true":"false"}))},Qt={Accordion:Kt,Button:Xt,Switch:({label:t,onClick:r,active:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:n.jsx(ze.Switch,{onClick:r,active:o})})]})}),Info:({label:t,info:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"info",children:r})]})}),Select:({label:t,active:r,options:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"info",children:r})]})}),Component:({label:t,children:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:r})]})}),Node:({label:t,children:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:r})]})})};function Se({list:t,onClick:r,active:o,size:i,view:p}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,p].join(" "),children:t.map(g=>n.jsx(er,{onClick:r,active:o,label:g.label,link:g.link},g.link))})})}const er=({onClick:t,label:r,link:o,active:i})=>n.jsx("li",{"tabs-active":String(i===o),onClick:()=>t(o),children:r});Se.defaultProps={size:"M",view:"H"};const tr={Section:Jt,Main:Zt,Item:Qt,Tabs:Se},M={h:"_h_1or29_1",t:"_t_1or29_10",s:"_s_1or29_30",u:"_u_1or29_39",o:"_o_1or29_46",l:"_l_1or29_55",hh:"_hh_1or29_62"},Ce=({title:t,children:r})=>n.jsxs("div",{className:M.h,children:[n.jsx("div",{className:M.t,children:t}),r]}),rr=({children:t,title:r})=>n.jsxs("div",{className:M.o,children:[r&&n.jsx("div",{className:M.hh,children:r}),t]}),nr=({children:t})=>n.jsx("div",{className:M.u,children:t}),Ee=({children:t})=>n.jsx("div",{className:M.s,children:t}),Re=({children:t,...r})=>n.jsx("div",{className:M.l,children:t}),ar={Header:Ce,Section:Ee,List:Re,U:nr,L:Re,O:rr,S:Ee,H:Ce},or={Send:ot,Error:it,Remark:lt,Success:st,Copy:ct},ir={Send:pt};function sr(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.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 lr={Logo:sr},cr={setSSID:wt,getSSID:kt,Logaut:L,setAUTH:jt,getAUTH:zt,Start:yt,setSetting:Mt,getSetting:Nt,setMenu:Dt,getMenu:Lt,useSort:Wt,setSort:we,getSort:oe},dr={Path:Ft,setPage:Ct,getPage:ve,usePage:St,setModule:Rt,getModule:ye,useModule:Et,setTabs:It,getTabs:Z,useTabs:Tt,useId:Pt,setId:$t,subId:Ot,getId:At};let K={};function ur(t,r){switch(r.type){case"active":let o="<";return t.active===r.data&&(o=t.sort==="<"?">":"<"),K.get({active:r.data,sort:o},!1),we({active:r.data,sort:o}),{...t,active:r.data,sort:o};default:throw new Error}}function fr({name:t}){const[r,o]=y.useReducer(ur,oe()===void 0?{active:1,sort:"<"}:oe());return n.jsxs("div",{className:"sort",children:[n.jsx("h5",{children:t}),n.jsxs("div",{className:"button",children:[n.jsx("i",{"data-color":r.active===1?"_506290":"_b5b9cc","data-icon":r.active===1?r.sort==="<"?"F073":"F072":"F071",onClick:()=>o({type:"active",data:1})}),n.jsx("i",{"data-color":r.active===2?"_506290":"_b5b9cc","data-icon":r.active===2?r.sort==="<"?"F066":"F067":"F074",onClick:()=>o({type:"active",data:2})}),n.jsx("i",{"data-color":r.active===3?"_506290":"_b5b9cc","data-icon":r.active===3?r.sort==="<"?"F068":"F069":"F070",onClick:()=>o({type:"active",data:3})})]})]})}function pr(t){K.get=t}function xr(t){K.set(t)}function _r(t,r,o){let i=1,p=0,g={},T=50;g[i]=[];let h={},m="s1a";switch(h.s1a=(b,x)=>x.s1-b.s1,h.s1d=(b,x)=>b.s1-x.s1,h.s2a=(b,x)=>b.s2-x.s2,h.s2d=(b,x)=>x.s2-b.s2,h.s3a=(b,x)=>b.s3.localeCompare(x.s3),h.s3d=(b,x)=>x.s3.localeCompare(b.s3),o.active){case 1:m=o.sort===">"?"s1d":"s1a";break;case 2:m=o.sort===">"?"s2d":"s2a";break;case 3:m=o.sort===">"?"s3d":"s3a";break}return r.sort(h[m]).forEach(b=>{p++,p<=T||(i++,p=1,g[i]=[]),g[i].push(t[b.id])}),{data:g}}function gr(t){K.count(t)}const mr={Init:fr,Get:pr,Set:xr,Run:_r,Count:gr};v.Action=ze,v.Alert=ir,v.Browser=qt,v.Button=me,v.Component=ar,v.Icon=lr,v.Init=ke,v.Modal=he,v.Notice=or,v.Router=dr,v.Setting=tr,v.Store=cr,v.Tabs=je,v.Triage=mr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
28
+ Check the top-level render call using <`+s+">.")}return a}}function Ke(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=qr(a);if(Ge[s])return;Ge[s]=!0;var l="";e&&e._owner&&e._owner!==ue.current&&(l=" It was passed a child from "+P(e._owner.type)+"."),Y(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,l),Y(null)}}function Xe(e,a){{if(typeof e!="object")return;if(ce(e))for(var s=0;s<e.length;s++){var l=e[s];pe(l)&&Ke(l,a)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var f=br(e);if(typeof f=="function"&&f!==e.entries)for(var _=f.call(e),u;!(u=_.next()).done;)pe(u.value)&&Ke(u.value,a)}}}function Hr(e){{var a=e.type;if(a==null||typeof a=="string")return;var s;if(typeof a=="function")s=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===m||a.$$typeof===z))s=a.propTypes;else return;if(s){var l=P(a);Or(s,e.props,"prop",l,e)}else if(a.PropTypes!==void 0&&!fe){fe=!0;var f=P(a);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jr(e){{for(var a=Object.keys(e.props),s=0;s<a.length;s++){var l=a[s];if(l!=="children"&&l!=="key"){Y(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),Y(null);break}}e.ref!==null&&(Y(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}function Qe(e,a,s,l,f,_){{var u=Sr(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 C=Vr(f);C?d+=C:d+=Ze();var w;e===null?w="null":ce(e)?w="array":e!==void 0&&e.$$typeof===r?(w="<"+(P(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,d)}var k=Ur(e,a,s,f,_);if(k==null)return k;if(u){var R=a.children;if(R!==void 0)if(l)if(ce(R)){for(var B=0;B<R.length;B++)Xe(R[B],e);Object.freeze&&Object.freeze(R)}else S("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 Xe(R,e)}return e===i?Jr(k):Hr(k),k}}function Zr(e,a,s){return Qe(e,a,s,!0)}function Gr(e,a,s){return Qe(e,a,s,!1)}var Kr=Gr,Xr=Zr;V.Fragment=i,V.jsx=Kr,V.jsxs=Xr}()),V}process.env.NODE_ENV==="production"?ae.exports=tt():ae.exports=rt();var n=ae.exports;const nt={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 $={};function at(){let[t,r]=y.useState([]);return $.set=o=>{r([...t,o])},$.del=o=>{r(t.filter(i=>i.key!==o))},t.length===0?"":n.jsx("ul",{className:nt.notice,children:t.map(o=>o.item)})}function q({data:t}){let[r,o]=y.useState("show");y.useEffect(()=>{setTimeout(function(){o("hide")},1800),setTimeout(function(){$.del(t.key)},2500)},[t.key]);let i,p;switch(t.type){case"error":i=n.jsx(F.error,{}),p="Ошибка:";break;case"success":i=n.jsx(F.success,{}),p="Информация:";break;case"copy":i=n.jsx(F.success,{}),p="Копирование:";break;case"remark":i=n.jsx(F.success,{}),p="Подсказка:";break;default:i=n.jsx(F.success,{}),p="Предупреждение:";break}return n.jsxs("li",{className:"item "+t.type,"data-status":r,children:[i,n.jsx("b",{children:p}),n.jsx("p",{children:t.text})]})}function ot(t){let r=Date.now(),o={key:r,...t};$.set({item:n.jsx(q,{data:o},r),key:r})}function it(t){let r=Date.now(),o={key:r,text:t,type:"error"};$.set({item:n.jsx(q,{data:o},r),key:r})}function st(t){let r=Date.now(),o={key:r,text:t,type:"success"};$.set({item:n.jsx(q,{data:o},r),key:r})}function lt(t){let r=Date.now(),o={key:r,text:t,type:"remark"};$.set({item:n.jsx(q,{data:o},r),key:r})}function ct(t){let r=Date.now(),o={key:r,text:t,type:"copy"};$.set({item:n.jsx(q,{data:o},r),key:r})}const F={};F.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.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"}),n.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"})]}),F.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.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"}),n.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 dt={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 H={};function ut(){let[t,r]=y.useState("");return H.set=o=>r(o),H.del=()=>r(""),n.jsx(n.Fragment,{children:t})}const ft=({data:t,callback:r})=>(t.button=t.button===void 0?"Подтвердить":t.button,n.jsxs("div",{className:dt.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:t.title}),n.jsx("dd",{children:t.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":t.color||"blue",onClick:()=>{r(),H.del()},children:t.button})})]}),n.jsx("div",{className:"--body",onClick:H.del})]}));function pt(t,r){H.set(n.jsx(ft,{data:t,callback:r}))}function xt({children:t}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:t})})}function _t({children:t}){return n.jsx("div",{className:"s",children:t})}const me=({children:t,disabled:r,label:o,onClick:i})=>{const p=g=>{r||i&&i(g)};return n.jsx("button",{disabled:r,onClick:p,children:o})},A={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 D={};const gt=({config:t})=>{let[r,o]=y.useState([]);return D.x=()=>{o([])},D.config=t,D.add=i=>{o([...r,i])},n.jsx(n.Fragment,{children:r.map(i=>i)})},mt=({children:t,title:r,button:o,tabs:i,size:p="m",menu:g})=>{const[T,h]=y.useState(!0),m=y.useRef(),b=z=>{if(o&&o.onClick)return o.onClick({closed:h,disabled:z})},x=()=>{m.current.setAttribute("shake",!0),setTimeout(()=>{m.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:T?n.jsxs("div",{className:`${A.modal} ${A.white}`,children:[n.jsx("div",{className:A.o,onClick:x}),n.jsxs("div",{className:A.w,ref:m,children:[n.jsxs("div",{className:A.h,children:[n.jsx("div",{className:A.t,children:r}),n.jsxs("div",{className:A.m,children:[i&&n.jsx("nav",{children:i.map((z,I)=>n.jsx("span",{onClick:z.onClick,className:z.active?"active":"",children:z.name},I))}),g]}),n.jsx("div",{className:A.x,onClick:()=>{h(!1)},children:"x"})]}),t,o!==void 0?n.jsx(me,{label:String(o.name),onClick:b}):""]})]}):""})},ht=t=>{D.add(n.jsx(bt,{children:t},String(Date.now())))},bt=({children:t})=>n.jsx(n.Fragment,{children:t}),he={List:xt,Scroll:_t,Init:gt,Main:mt,Add:ht,Icon:({type:t,name:r,params:o})=>{let[i,p]=y.useState(null);return y.useEffect(()=>{D.config(t,r,o,p)},[o.id]),n.jsx(n.Fragment,{children:i})},Open:(t,r,o)=>{D.config(t,r,o)}};let j={};const c={},E={},be={};function vt(t,r){if(j=t,localStorage.getItem("ssid")){let i=sessionStorage.getItem("page");i?(i=j.deCode(i),c.id=i.id,c.tab=i.tab,c.page=i.page,c.module=i.module,c.time=i.time,c.payment={active:!0},c.module_admin=i.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(i=>localStorage.removeItem(i)),["page"].forEach(i=>sessionStorage.removeItem(i)),c.id=0,c.tab="",c.page="Auth",c.module="M00";return r}function L(){["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 yt(t){t=t.split("/"),c.page="Main",c.module=t[0],c.tab=t[1],c.id=0,sessionStorage.setItem("page",j.enCode({module:c.module,page:c.page,tab:c.tab,id:c.id,time:new Date().getTime()})),E.page(c.page)}function wt(t){return localStorage.setItem("ssid",t)}function kt(){let t=localStorage.getItem("ssid");return t!==""&&t!=="undefined"&&t!==null?localStorage.getItem("ssid"):(L(),!1)}function jt(t){return localStorage.setItem("auth",t)}function zt(){let t=localStorage.getItem("auth");return t!==""&&t!=="undefined"&&t!==null?t:(L(),!1)}function St(){const[t,r]=y.useState(ve()),o=i=>{r(i)};return E.page=o,[t]}function Ct(t){c.page=t,sessionStorage.setItem("page",j.enCode(c)),E.page(t)}function ve(){return c.page}function Et(){const[t,r]=y.useState(ye()),o=i=>{r(i)};return E.module=o,[t]}function Rt(t,r){c.module=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.module(t)}function ye(){return c.module}function Tt(t){const[r,o]=y.useState(G()||t),i=p=>{o(p)};return E.tabs=i,[r]}function It(t,r){c.tab=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.tabs(t)}function G(){return c.tab}function Pt(){const[t,r]=y.useState(c.id),o=i=>{r(i)};return E.id=o,[t]}function Ot(t){E.id=t}function $t(t,r){c.id=t,sessionStorage.setItem("page",j.enCode(c)),r!=="false"&&E.id(t)}function At(){return c.id}function Ft(t,r,o){c.module=t,c.id=o,c.tab=r,sessionStorage.setItem("page",j.enCode(c)),E.module(t),E.tabs(r)}function Mt(t,r){be.data[t]=r,localStorage.setItem("sett",j.enCode(be.data))}function Nt(t){let r=localStorage.getItem("sett");return r===null?{}:(r=j.deCode(r),r?t!==void 0?r[t]:r:L())}function Dt(t){localStorage.setItem("menu",j.enCode({data:t}))}function Lt(){let t=localStorage.getItem("menu");if(t!==""&&t!=="undefined"&&t!==null){let r=localStorage.getItem("menu"),o=j.deCode(r);o||L();const i=(g,T)=>{let h=T+"";for(;h.length<g;)h="0"+h;return h};return o.data.split(",").map(g=>"M"+i(2,g))}else return L(),!1}function Wt(t){E.sort=t}function we(t){let r=localStorage.getItem("sort");r=r===null?{}:j.deCode(r),r[G()]=t,localStorage.setItem("sort",j.enCode(r))}function oe(){let t=localStorage.getItem("sort");return t===null?{}:(t=j.deCode(t),t=t[G()],t=t===void 0?{active:1,sort:"<"}:t,t)}const ke=({children:t,config:r,crypto:o,...i})=>vt(o,n.jsxs(n.Fragment,{children:[n.jsx(he.Init,{config:r.modal}),n.jsx(at,{}),n.jsx(ut,{}),t]})),Yt=({children:t,...r})=>n.jsx("menu",{children:t}),Bt=({children:t,...r})=>n.jsxs("header",{children:["xz",t]}),Ut={payment:"_payment_1lxfv_1"};function Vt(){let[t,r]=y.useState({});return!t.active&&!t.payment?"":n.jsx("div",{className:Ut.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const qt=({children:t,...r})=>{let o={};return o.enCode=i=>JSON.stringify(i).toString(),o.deCode=i=>JSON.parse(i),n.jsxs("div",{className:"app",children:[n.jsx(Vt,{}),n.jsx(Yt,{}),n.jsx(Bt,{}),n.jsx(ke,{config:{modal:{}},crypto:o}),t]})},je=({list:t,onClick:r,active:o,size:i,view:p})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,p].join(" "),children:t.map(g=>n.jsx(Ht,{onClick:r,active:o,label:g.label,link:g.link},g.link))})}),Ht=({onClick:t,label:r,link:o,active:i})=>n.jsx("li",{"tabs-active":String(i===o),onClick:()=>t(o),children:r});je.defaultProps={size:"M",view:"H"};const Jt=({title:t="",button:r,description:o="",children:i})=>n.jsxs("fieldset",{children:[t&&n.jsxs("legend",{children:[t,r&&n.jsx("div",{role:"button-outline",onClick:()=>r.onClick(),children:r.label})," "]}),n.jsx("ul",{children:i}),o&&n.jsx("article",{children:o})]}),Zt={setting:"_setting_1r0pc_2"},Gt=({children:t})=>n.jsx("div",{className:Zt.setting,children:t}),Kt=({label:t,children:r})=>{let[o,i]=y.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!o),children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(o)})})]}),o&&n.jsx("div",{children:r})]})},Xt=({label:t,onClick:r,button:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"button",onClick:()=>r(),children:o})]})}),ze={Switch:({active:t,onClick:r})=>(console.log(t),t=typeof t=="number"?!!t:t,n.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),r()},"aria-checked":t?"true":"false"}))},Qt={Accordion:Kt,Button:Xt,Switch:({label:t,onClick:r,active:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:n.jsx(ze.Switch,{onClick:r,active:o})})]})}),Info:({label:t,info:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"info",children:r})]})}),Select:({label:t,active:r,options:o})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{role:"info",children:r})]})}),Component:({label:t,children:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:r})]})}),Node:({label:t,children:r})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:t}),n.jsx("dd",{children:r})]})})};function Se({list:t,onClick:r,active:o,size:i,view:p}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,p].join(" "),children:t.map(g=>n.jsx(er,{onClick:r,active:o,label:g.label,link:g.link},g.link))})})}const er=({onClick:t,label:r,link:o,active:i})=>n.jsx("li",{"tabs-active":String(i===o),onClick:()=>t(o),children:r});Se.defaultProps={size:"M",view:"H"};const tr={Section:Jt,Main:Gt,Item:Qt,Tabs:Se},M={h:"_h_1or29_1",t:"_t_1or29_10",s:"_s_1or29_30",u:"_u_1or29_39",o:"_o_1or29_46",l:"_l_1or29_55",hh:"_hh_1or29_62"},Ce=({title:t,children:r})=>n.jsxs("div",{className:M.h,children:[n.jsx("div",{className:M.t,children:t}),r]}),rr=({children:t,title:r})=>n.jsxs("div",{className:M.o,children:[r&&n.jsx("div",{className:M.hh,children:r}),t]}),nr=({children:t})=>n.jsx("div",{className:M.u,children:t}),Ee=({children:t})=>n.jsx("div",{className:M.s,children:t}),Re=({children:t,...r})=>n.jsx("div",{className:M.l,children:t}),ar={Header:Ce,Section:Ee,List:Re,U:nr,L:Re,O:rr,S:Ee,H:Ce},or={Send:ot,Error:it,Remark:lt,Success:st,Copy:ct},ir={Send:pt};function sr(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.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 lr={Logo:sr},cr={setSSID:wt,getSSID:kt,Logaut:L,setAUTH:jt,getAUTH:zt,Start:yt,setSetting:Mt,getSetting:Nt,setMenu:Dt,getMenu:Lt,useSort:Wt,setSort:we,getSort:oe},dr={Path:Ft,setPage:Ct,getPage:ve,usePage:St,setModule:Rt,getModule:ye,useModule:Et,setTabs:It,getTabs:G,useTabs:Tt,useId:Pt,setId:$t,subId:Ot,getId:At};let K={};function ur(t,r){switch(r.type){case"active":let o="<";return t.active===r.data&&(o=t.sort==="<"?">":"<"),K.get({active:r.data,sort:o},!1),we({active:r.data,sort:o}),{...t,active:r.data,sort:o};default:throw new Error}}function fr(){const[t,r]=y.useReducer(ur,oe()===void 0?{active:1,sort:"<"}:oe());return n.jsx("div",{className:"sort",children:n.jsxs("div",{className:"button",children:[n.jsx("i",{"data-color":t.active===1?"_506290":"_b5b9cc","data-icon":t.active===1?t.sort==="<"?"F073":"F072":"F071",onClick:()=>r({type:"active",data:1})}),n.jsx("i",{"data-color":t.active===2?"_506290":"_b5b9cc","data-icon":t.active===2?t.sort==="<"?"F066":"F067":"F074",onClick:()=>r({type:"active",data:2})}),n.jsx("i",{"data-color":t.active===3?"_506290":"_b5b9cc","data-icon":t.active===3?t.sort==="<"?"F068":"F069":"F070",onClick:()=>r({type:"active",data:3})})]})})}function pr(t){K.get=t}function xr(t){K.set(t)}function _r(t,r,o){let i=1,p=0,g={},T=50;g[i]=[];let h={},m="s1a";switch(h.s1a=(b,x)=>x.s1-b.s1,h.s1d=(b,x)=>b.s1-x.s1,h.s2a=(b,x)=>b.s2-x.s2,h.s2d=(b,x)=>x.s2-b.s2,h.s3a=(b,x)=>b.s3.localeCompare(x.s3),h.s3d=(b,x)=>x.s3.localeCompare(b.s3),o.active){case 1:m=o.sort===">"?"s1d":"s1a";break;case 2:m=o.sort===">"?"s2d":"s2a";break;case 3:m=o.sort===">"?"s3d":"s3a";break}return r.sort(h[m]).forEach(b=>{p++,p<=T||(i++,p=1,g[i]=[]),g[i].push(t[b.id])}),{data:g}}function gr(t){K.count(t)}const mr={Init:fr,useValue:pr,Set:xr,Run:_r,Count:gr};v.Action=ze,v.Alert=ir,v.Browser=qt,v.Button=me,v.Component=ar,v.Icon=lr,v.Init=ke,v.Modal=he,v.Notice=or,v.Router=dr,v.Setting=tr,v.Store=cr,v.Tabs=je,v.Triage=mr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
@@ -1,7 +1,5 @@
1
- export declare function Init({ name }: {
2
- name: any;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- export declare function Get(get: any): void;
1
+ export declare function Init(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function useValue(get: any): void;
5
3
  export declare function Set(set: any): void;
6
4
  export declare function Run(b: any, data: any, p: any): {
7
5
  data: any;
@@ -1,8 +1,8 @@
1
- import { Init, Get, Set, Run, Count } from './Triage';
1
+ import { Init, useValue, Set, Run, Count } from './Triage';
2
2
 
3
3
  declare const _default: {
4
4
  Init: typeof Init;
5
- Get: typeof Get;
5
+ useValue: typeof useValue;
6
6
  Set: typeof Set;
7
7
  Run: typeof Run;
8
8
  Count: typeof Count;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --open --port 4101",