@elcrm/form 0.0.6 → 0.0.8
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.css +1 -1
- package/dist/index.es.js +829 -821
- package/dist/index.umd.js +30 -30
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild($r);var
|
|
1
|
+
(function(G,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],F):(G=typeof globalThis<"u"?globalThis:G||self,F((G.elCRM=G.elCRM||{},G.elCRM.components={}),G.React,G.ReactDOM))})(this,function(G,F,Yr){"use strict";var $r=document.createElement("style");$r.textContent=`@charset "UTF-8";._notice_13j98_2{position:absolute;top:var(--notice-top);left:var(--notice-left);right:var(--notice-right);bottom:var(--notice-bottom);z-index:1111;font-family:var(--notice-family)}._notice_13j98_2 ._error_13j98_11{color:var(--notice-error, #bb2014)}._notice_13j98_2 ._success_13j98_14{color:var(--notice-success, #367738)}._notice_13j98_2 ._remark_13j98_17{color:var(--notice-remark, #b77513)}._notice_13j98_2 ._copy_13j98_20{color:var(--notice-copy, #3f51b5)}._notice_13j98_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_13j98_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_13j98_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_13j98_1 1s 1;animation-fill-mode:forwards}._notice_13j98_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_13j98_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_13j98_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_13j98_1{0%{opacity:1}to{opacity:0}}:root{--field-background: #ffffff;--field-border: 1px solid #dde2e4;--field-radius: 6px;--field-color: #3f3f46;--field-padding: 5px 10px;--field-height: 32px;--field-width: 300px;--field-label-color: #84919a}._l_1w86i_12{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._f_1w86i_19{box-sizing:border-box;border:var(--field-border);border-radius:var(--field-radius);background:var(--field-background);color:var(--field-color);outline:0;padding:var(--field-padding);min-height:var(--field-height)}._t_1w86i_30{color:var(--field-label-color);padding-bottom:8px}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--modal-radius: 10px}[shake=true]{-webkit-animation-name:_shake_txgsc_1;animation-name:_shake_txgsc_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_txgsc_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}._modal_txgsc_79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._modal_txgsc_79._size-a_txgsc_89 ._w_txgsc_15{width:auto;margin:auto 20px}._modal_txgsc_79._size-s_txgsc_94 ._w_txgsc_15{width:400px}._modal_txgsc_79._size-m_txgsc_98 ._w_txgsc_15{width:500px}._modal_txgsc_79._size-l_txgsc_102 ._w_txgsc_15{width:800px}._modal_txgsc_79._size-x_txgsc_106 ._w_txgsc_15{width:1000px}._modal_txgsc_79._size-f_txgsc_110 ._w_txgsc_15{width:100%;max-width:1200px;min-width:910px}._o_txgsc_116{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--modal-background-overflow, rgba(0, 0, 0, .7215686275))}._w_txgsc_15{box-shadow:5px 7px 18px 0 var(--modal-background-overflow, rgba(0, 0, 0, .7215686275));background-image:var(--modal-background-image);background-color:var(--modal-background-color);border-radius:var(--modal-radius);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_txgsc_141{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--modal-color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_txgsc_155{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--modal-color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_txgsc_155 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_txgsc_155 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_txgsc_155 li:last-child{border-bottom:0}._l_txgsc_155 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_txgsc_192{padding-right:10px}._x_txgsc_196{cursor:pointer;color:var(--modal-exit);opacity:.5;display:flex}._x_txgsc_196 svg{width:20px}._x_txgsc_196:hover{opacity:1}._s_txgsc_89{flex:1;overflow-y:scroll}._c_txgsc_214{text-align:center;margin:20px}._f_txgsc_219{padding:0 20px;display:flex;flex-direction:column}._f_txgsc_219 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_txgsc_219 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_txgsc_219._row_txgsc_241 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_txgsc_219._row_txgsc_241 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_txgsc_219._col_txgsc_253 dt{padding-bottom:8px;margin-left:7px}._g_txgsc_258{display:flex;gap:10px;overflow:hidden}._c_txgsc_214{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_txgsc_214:first-child{margin-left:20px}._c_txgsc_214:last-child{margin-right:20px}._c_txgsc_214:hover{opacity:1;background:var(--tinge)}._c_txgsc_214 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_txgsc_214 b{text-align:center;display:block;color:var(--color)}._c_txgsc_214 p{text-align:center;font-size:15px;color:var(--text)}._m_txgsc_79{flex:1}._btn_1k1b3_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1k1b3_1:hover{opacity:1}._confirm_1k1b3_15{background:var(--button-confirm-bg, #4caf50);color:var(--button-confirm-color, #fff)}._cancel_1k1b3_20{background:var(--button-cancel-bg, #f44336);color:var(--button-cancel-color, #fff)}._action_1k1b3_25{background:var(--button-action-bg, #4094f7);color:var(--button-action-color, #fff)}._disabled_1k1b3_30{background:var(--button-disabled-bg, #efefef);color:var(--button-disabled-color, #000);opacity:1;cursor:default}._await_1k1b3_37{background:var(--button-await-bg, #efefef);color:var(--button-await-color, #000);opacity:1;cursor:default}._m_1k1b3_44{min-width:200px}._l_1k1b3_48{flex:1}:root{--select-overlay: #0000;--select-height: 35px;--select-separator: 1px solid #999;--select-color: #fff;--select-background: #28292d;--select-icon: calc(--select-height / 1.5);--select-icon-padding: calc((--select-height - --select-icon)/2) ;--select-font-size: 13px}._o_1vba1_12{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:var(--select-overlay)}._l_1vba1_22{padding:0;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:scroll;max-height:300px}._l_1vba1_22::-webkit-scrollbar{width:0;height:0}._l_1vba1_22 ul{overflow-y:auto;width:100%;max-height:300px;display:block;overflow-x:hidden}._l_1vba1_22 li{border-bottom:var(--select-separator);cursor:pointer;display:block;padding:5px 20px;color:var(--select-color);border-left:0!important;text-align:left!important;height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._l_1vba1_22 li:hover{font-weight:700}._l_1vba1_22 li:last-child{border-bottom:0}._i_1vba1_71{position:absolute;width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding)}._f_1vba1_80{cursor:pointer}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild($r);var Or={exports:{}},vr={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Fr;function Br(){if(Fr)return
|
|
10
|
+
*/var Fr;function Br(){if(Fr)return vr;Fr=1;var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,b=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function R(j,u,d){var i,g={},h=null,S=null;d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(S=u.ref);for(i in u)f.call(u,i)&&!k.hasOwnProperty(i)&&(g[i]=u[i]);if(j&&j.defaultProps)for(i in u=j.defaultProps,u)g[i]===void 0&&(g[i]=u[i]);return{$$typeof:p,type:j,key:h,ref:S,props:g,_owner:b.current}}return vr.Fragment=m,vr.jsx=R,vr.jsxs=R,vr}var _r={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Nr;function Kr(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){var l
|
|
19
|
-
`+ie+e}}var se=!1,
|
|
18
|
+
*/var Nr;function Kr(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),N=Symbol.iterator,Y="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=N&&e[N]||e[Y];return typeof r=="function"?r:null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];I("error",e,t)}}function I(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(a){return String(a)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var V=!1,q=!1,$=!1,K=!1,W=!1,C;C=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===k||W||e===b||e===d||e===i||K||e===S||V||q||$||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===R||e.$$typeof===j||e.$$typeof===u||e.$$typeof===C||e.getModuleId!==void 0))}function Z(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case m:return"Portal";case k:return"Profiler";case b:return"StrictMode";case d:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return ne(r)+".Consumer";case R:var t=e;return ne(t._context)+".Provider";case u:return Z(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case h:{var s=e,c=s._payload,a=s._init;try{return P(a(c))}catch{return null}}}return null}var A=Object.assign,J=0,ve,_e,ge,me,be,he,xe;function we(){}we.__reactDisabledLog=!0;function Me(){{if(J===0){ve=console.log,_e=console.info,ge=console.warn,me=console.error,be=console.group,he=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function Ue(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:_e}),warn:A({},e,{value:ge}),error:A({},e,{value:me}),group:A({},e,{value:be}),groupCollapsed:A({},e,{value:he}),groupEnd:A({},e,{value:xe})})}J<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=D.ReactCurrentDispatcher,ie;function Q(e,r,t){{if(ie===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ie=n&&n[1]||""}return`
|
|
19
|
+
`+ie+e}}var se=!1,ee;{var Ye=typeof WeakMap=="function"?WeakMap:Map;ee=new Ye}function ke(e,r){if(!e||se)return"";{var t=ee.get(e);if(t!==void 0)return t}var n;se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ae.current,ae.current=null,Me();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(w){n=w}Reflect.construct(e,[],a)}else{try{a.call()}catch(w){n=w}e.call(a.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var o=w.stack.split(`
|
|
20
20
|
`),x=n.stack.split(`
|
|
21
|
-
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var
|
|
22
|
-
`+o[y].replace(" at new "," at ");return e.displayName&&
|
|
21
|
+
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var O=`
|
|
22
|
+
`+o[y].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,O),O}while(y>=1&&_>=0);break}}}finally{se=!1,ae.current=c,Ue(),Error.prepareStackTrace=s}var U=e?e.displayName||e.name:"",z=U?Q(U):"";return typeof e=="function"&&ee.set(e,z),z}function Be(e,r,t){return ke(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return ke(e,Ke(e));if(typeof e=="string")return Q(e);switch(e){case d:return Q("Suspense");case i:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Be(e.render);case g:return re(e.type,r,t);case h:{var n=e,s=n._payload,c=n._init;try{return re(c(s),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,je={},Ee=D.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Ve(e,r,t,n,s){{var c=Function.call.bind(X);for(var a in e)if(c(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((n||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){o=y}o&&!(o instanceof Error)&&(te(s),v("%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).",n||"React class",t,a,typeof o),te(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,te(s),v("Failed %s type: %s",t,o.message),te(null))}}}var qe=Array.isArray;function le(e){return qe(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Se(e)}var Re=D.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function Ge(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&Re.current}function er(e,r){{var t=function(){Ce||(Ce=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Te||(Te=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,s,c,a){var o={$$typeof:p,type:e,key:r,ref:t,props:a,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function nr(e,r,t,n,s){{var c,a={},o=null,x=null;t!==void 0&&(Oe(t),o=""+t),Ze(r)&&(Oe(r.key),o=""+r.key),Ge(r)&&(x=r.ref,Qe(r,s));for(c in r)X.call(r,c)&&!He.hasOwnProperty(c)&&(a[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)a[c]===void 0&&(a[c]=y[c])}if(o||x){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&er(a,_),x&&rr(a,_)}return tr(e,o,x,s,n,Re.current,a)}}var ce=D.ReactCurrentOwner,Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ue;ue=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function De(){{if(ce.current){var e=P(ce.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function or(e){return""}var $e={};function ar(e){{var r=De();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+
|
|
26
|
+
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),M(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function Ne(e,r){{if(typeof e!="object")return;if(le(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&Fe(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var s=L(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),a;!(a=c.next()).done;)fe(a.value)&&Fe(a.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=P(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var s=P(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){M(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),M(null);break}}e.ref!==null&&(M(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Ie={};function Ae(e,r,t,n,s,c){{var a=T(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=or();x?o+=x:o+=De();var y;e===null?y="null":le(e)?y="array":e!==void 0&&e.$$typeof===p?(y="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,o)}var _=nr(e,r,t,s,c);if(_==null)return _;if(a){var O=r.children;if(O!==void 0)if(n)if(le(O)){for(var U=0;U<O.length;U++)Ne(O[U],e);Object.freeze&&Object.freeze(O)}else v("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 Ne(O,e)}if(X.call(r,"key")){var z=P(e),w=Object.keys(r).filter(function(dr){return dr!=="key"}),pe=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[z+pe]){var pr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,pe,
|
|
31
|
+
<%s key={someKey} {...props} />`,pe,z,pr,z),Ie[z+pe]=!0}}return e===f?sr(_):ir(_),_}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var ur=cr,fr=lr;_r.Fragment=f,_r.jsx=ur,_r.jsxs=fr}()),_r}process.env.NODE_ENV==="production"?Or.exports=Br():Or.exports=Kr();var E=Or.exports;function Vr({name:l,value:p,title:m,style:f,className:b}){let k={field:"progress"};return f&&(k.style=f),b&&(k.className=b),E.jsxs("dl",{...k,children:[m&&E.jsx("dt",{children:m}),E.jsx("dd",{})]})}let de={};de.KeyDown=l=>{l.key==="Enter"&&l.preventDefault()},de.PasteOne=l=>{l.preventDefault(),navigator.clipboard.readText().then(p=>{p=p.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,p)}).catch(p=>{})},de.Paste=(l,p)=>{p.preventDefault(),navigator.clipboard.readText().then(m=>{if(l){let f=p.target.textContent.length;if(f>=l)return;l-=f,m=m.slice(0,l)}window.document.execCommand("insertText",!1,m.replace(/(\r\n|\n|\r)/gm," "))}).catch(m=>{})},de.Focus=l=>{l.target.textContent.length===0&&(l.target.innerHTML="<br>")},de.Blur=l=>{l.target.scrollLeft=0,l.target.querySelector("br")!==null&&l.target.querySelector("br").remove()},de.ContentEditable="plaintext-only";var Rr={exports:{}},gr={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var Ir;function qr(){if(Ir)return
|
|
39
|
+
*/var Ir;function qr(){if(Ir)return gr;Ir=1;var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,b=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function R(j,u,d){var i,g={},h=null,S=null;d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(S=u.ref);for(i in u)f.call(u,i)&&!k.hasOwnProperty(i)&&(g[i]=u[i]);if(j&&j.defaultProps)for(i in u=j.defaultProps,u)g[i]===void 0&&(g[i]=u[i]);return{$$typeof:p,type:j,key:h,ref:S,props:g,_owner:b.current}}return gr.Fragment=m,gr.jsx=R,gr.jsxs=R,gr}var xr={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
42
42
|
*
|
|
@@ -44,20 +44,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var Ar;function Jr(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){var l
|
|
48
|
-
`+ie+e}}var se=!1,
|
|
47
|
+
*/var Ar;function Jr(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),N=Symbol.iterator,Y="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=N&&e[N]||e[Y];return typeof r=="function"?r:null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];I("error",e,t)}}function I(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(a){return String(a)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var V=!1,q=!1,$=!1,K=!1,W=!1,C;C=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===k||W||e===b||e===d||e===i||K||e===S||V||q||$||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===R||e.$$typeof===j||e.$$typeof===u||e.$$typeof===C||e.getModuleId!==void 0))}function Z(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case m:return"Portal";case k:return"Profiler";case b:return"StrictMode";case d:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return ne(r)+".Consumer";case R:var t=e;return ne(t._context)+".Provider";case u:return Z(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case h:{var s=e,c=s._payload,a=s._init;try{return P(a(c))}catch{return null}}}return null}var A=Object.assign,J=0,ve,_e,ge,me,be,he,xe;function we(){}we.__reactDisabledLog=!0;function Me(){{if(J===0){ve=console.log,_e=console.info,ge=console.warn,me=console.error,be=console.group,he=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function Ue(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:_e}),warn:A({},e,{value:ge}),error:A({},e,{value:me}),group:A({},e,{value:be}),groupCollapsed:A({},e,{value:he}),groupEnd:A({},e,{value:xe})})}J<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=D.ReactCurrentDispatcher,ie;function Q(e,r,t){{if(ie===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ie=n&&n[1]||""}return`
|
|
48
|
+
`+ie+e}}var se=!1,ee;{var Ye=typeof WeakMap=="function"?WeakMap:Map;ee=new Ye}function ke(e,r){if(!e||se)return"";{var t=ee.get(e);if(t!==void 0)return t}var n;se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ae.current,ae.current=null,Me();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(w){n=w}Reflect.construct(e,[],a)}else{try{a.call()}catch(w){n=w}e.call(a.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var o=w.stack.split(`
|
|
49
49
|
`),x=n.stack.split(`
|
|
50
|
-
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var
|
|
51
|
-
`+o[y].replace(" at new "," at ");return e.displayName&&
|
|
50
|
+
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var O=`
|
|
51
|
+
`+o[y].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,O),O}while(y>=1&&_>=0);break}}}finally{se=!1,ae.current=c,Ue(),Error.prepareStackTrace=s}var U=e?e.displayName||e.name:"",z=U?Q(U):"";return typeof e=="function"&&ee.set(e,z),z}function Be(e,r,t){return ke(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return ke(e,Ke(e));if(typeof e=="string")return Q(e);switch(e){case d:return Q("Suspense");case i:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Be(e.render);case g:return re(e.type,r,t);case h:{var n=e,s=n._payload,c=n._init;try{return re(c(s),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,je={},Ee=D.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Ve(e,r,t,n,s){{var c=Function.call.bind(X);for(var a in e)if(c(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((n||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){o=y}o&&!(o instanceof Error)&&(te(s),v("%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).",n||"React class",t,a,typeof o),te(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,te(s),v("Failed %s type: %s",t,o.message),te(null))}}}var qe=Array.isArray;function le(e){return qe(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Se(e)}var Re=D.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function Ge(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&Re.current}function er(e,r){{var t=function(){Ce||(Ce=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Te||(Te=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,s,c,a){var o={$$typeof:p,type:e,key:r,ref:t,props:a,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function nr(e,r,t,n,s){{var c,a={},o=null,x=null;t!==void 0&&(Oe(t),o=""+t),Ze(r)&&(Oe(r.key),o=""+r.key),Ge(r)&&(x=r.ref,Qe(r));for(c in r)X.call(r,c)&&!He.hasOwnProperty(c)&&(a[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)a[c]===void 0&&(a[c]=y[c])}if(o||x){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&er(a,_),x&&rr(a,_)}return tr(e,o,x,s,n,Re.current,a)}}var ce=D.ReactCurrentOwner,Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ue;ue=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function De(){{if(ce.current){var e=P(ce.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function or(e){return""}var $e={};function ar(e){{var r=De();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+
|
|
55
|
+
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),M(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function Ne(e,r){{if(typeof e!="object")return;if(le(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&Fe(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var s=L(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),a;!(a=c.next()).done;)fe(a.value)&&Fe(a.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=P(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var s=P(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){M(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),M(null);break}}e.ref!==null&&(M(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Ie={};function Ae(e,r,t,n,s,c){{var a=T(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=or();x?o+=x:o+=De();var y;e===null?y="null":le(e)?y="array":e!==void 0&&e.$$typeof===p?(y="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,o)}var _=nr(e,r,t,s,c);if(_==null)return _;if(a){var O=r.children;if(O!==void 0)if(n)if(le(O)){for(var U=0;U<O.length;U++)Ne(O[U],e);Object.freeze&&Object.freeze(O)}else v("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 Ne(O,e)}if(X.call(r,"key")){var z=P(e),w=Object.keys(r).filter(function(dr){return dr!=="key"}),pe=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[z+pe]){var pr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
56
56
|
let props = %s;
|
|
57
57
|
<%s {...props} />
|
|
58
58
|
React keys must be passed directly to JSX without using spread:
|
|
59
59
|
let props = %s;
|
|
60
|
-
<%s key={someKey} {...props} />`,pe,
|
|
60
|
+
<%s key={someKey} {...props} />`,pe,z,pr,z),Ie[z+pe]=!0}}return e===f?sr(_):ir(_),_}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var ur=cr,fr=lr;xr.Fragment=f,xr.jsx=ur,xr.jsxs=fr}()),xr}process.env.NODE_ENV==="production"?Rr.exports=qr():Rr.exports=Jr();var H=Rr.exports;const Xr="_notice_13j98_2",Hr="_error_13j98_11",Gr="_success_13j98_14",Zr="_remark_13j98_17",Qr="_copy_13j98_20",zr={notice:Xr,error:Hr,success:Gr,remark:Zr,copy:Qr,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let ze={};function mr({data:l}){let[p,m]=F.useState("show");F.useEffect(()=>{l.hide&&(setTimeout(function(){m("hide")},1800),setTimeout(function(){ze.del(l.key)},2500))},[l.key]);let f,b;switch(l.type){case"error":f=H.jsx(We.error,{}),b="Ошибка:";break;case"success":f=H.jsx(We.success,{}),b="Информация:";break;case"copy":f=H.jsx(We.success,{}),b="Копирование:";break;case"remark":f=H.jsx(We.success,{}),b="Подсказка:";break;default:f=H.jsx(We.success,{}),b="Предупреждение:";break}return H.jsxs("li",{className:zr[l.type],"data-status":p,children:[f,H.jsx("b",{children:b}),H.jsx("p",{children:l.text})]})}function et({data:l}){let[p,m]=F.useState("show");return F.useEffect(()=>{l.hide&&(setTimeout(function(){m("hide")},1800),setTimeout(function(){ze.del(l.key)},2500))},[l.key]),H.jsx("li",{className:"item","data-status":p,children:l.text})}const We={};We.error=()=>H.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[H.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"}),H.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"})]}),We.success=()=>H.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[H.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"}),H.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"})]});var Cr;(l=>{function p(){let[u,d]=F.useState([]);return ze.set=i=>{d([...u,i])},ze.del=i=>{d(u.filter(g=>g.key!==i))},u.length===0?"":H.jsx("ul",{className:zr.notice,children:u.map(i=>i.item)})}l.Init=p;function m(u,d=!0){let i=Date.now(),g={key:i,text:u,hide:d,type:"error"};ze.set({item:H.jsx(mr,{data:g},i),key:i})}l.Error=m;function f(u,d=!0){let i=Date.now(),g={key:i,text:u,hide:d,type:"success"};ze.set({item:H.jsx(mr,{data:g},i),key:i})}l.Success=f;function b(u,d=!0){let i=Date.now(),g={key:i,hide:d,text:u};ze.set({item:H.jsx(et,{data:g},i),key:i})}l.Custom=b;function k(u){let d=Date.now(),i={key:d,hide:!0,...u};ze.set({item:H.jsx(mr,{data:i},d),key:d})}l.Send=k;function R(u,d=!0){let i=Date.now(),g={key:i,text:u,hide:d,type:"remark"};ze.set({item:H.jsx(mr,{data:g},i),key:i})}l.Remark=R;function j(u,d=!0){let i=Date.now(),g={key:i,text:u,hide:d,type:"copy"};ze.set({item:H.jsx(mr,{data:g},i),key:i})}l.Copy=j})(Cr||(Cr={}));const yr={l:"_l_1w86i_12",f:"_f_1w86i_19",t:"_t_1w86i_30"};function rt({id:l,value:p,onValue:m,name:f,placeholder:b="",title:k="",error:R="",hide:j=!1,edit:u=!0,active:d=!0,after:i="",before:g="",show:h=!0,maxLength:S,onSave:N,className:Y="",isCopy:L=!0,isReload:D=!1}){let v=!!(j&&(p===""||p===void 0)),I=C=>{m&&m({value:C.target.textContent.trim(),name:f,reload:D})},V=C=>{S&&C.target.textContent.trim().length>=S&&C.key!=="Backspace"&&C.preventDefault(),C.key==="Enter"&&C.preventDefault()},q=C=>{L&&(C.preventDefault(),navigator.clipboard.writeText(C.target.textContent.trim()).then(function(){Cr.Copy("Данные в буфер обмене")},function(T){}))},$=C=>{C.preventDefault(),navigator.clipboard.readText().then(T=>{if(S){let Z=C.target.textContent.length;if(Z>=S)return;S-=Z,T=T.slice(0,S)}window.document.execCommand("insertText",!1,T.replace(/(\r\n|\n|\r)/gm," "))}).catch(T=>{})};if(!(u&&d)&&!h||!(u&&d)&&v)return"";const K={};b&&(K.placeholder=b),u&&d&&(K.edit="");const W=C=>{de.Blur(C),N==null||N({value:C.target.textContent.trim(),name:f})};return E.jsxs("dl",{"data-field":"input",className:[yr.l,Y].filter(C=>C!==void 0).join(" "),children:[k?E.jsx("dt",{className:yr.t,children:k}):"",g,E.jsx("dd",{className:yr.f,onPaste:$,onInput:I,onBlur:W,onKeyDown:V,onContextMenu:q,spellCheck:"true",contentEditable:u&&d?de.ContentEditable:"false",suppressContentEditableWarning:!0,...K,children:p}),i,R?E.jsx("em",{children:R}):""]})}var Tr={exports:{}},br={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-jsx-runtime.production.min.js
|
|
63
63
|
*
|
|
@@ -65,7 +65,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var Lr;function tt(){if(Lr)return
|
|
68
|
+
*/var Lr;function tt(){if(Lr)return br;Lr=1;var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,b=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function R(j,u,d){var i,g={},h=null,S=null;d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(S=u.ref);for(i in u)f.call(u,i)&&!k.hasOwnProperty(i)&&(g[i]=u[i]);if(j&&j.defaultProps)for(i in u=j.defaultProps,u)g[i]===void 0&&(g[i]=u[i]);return{$$typeof:p,type:j,key:h,ref:S,props:g,_owner:b.current}}return br.Fragment=m,br.jsx=R,br.jsxs=R,br}var wr={};/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-jsx-runtime.development.js
|
|
71
71
|
*
|
|
@@ -73,20 +73,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var Wr;function nt(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){var l
|
|
77
|
-
`+ie+e}}var se=!1,
|
|
76
|
+
*/var Wr;function nt(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),N=Symbol.iterator,Y="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=N&&e[N]||e[Y];return typeof r=="function"?r:null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];I("error",e,t)}}function I(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(a){return String(a)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var V=!1,q=!1,$=!1,K=!1,W=!1,C;C=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===k||W||e===b||e===d||e===i||K||e===S||V||q||$||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===R||e.$$typeof===j||e.$$typeof===u||e.$$typeof===C||e.getModuleId!==void 0))}function Z(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case m:return"Portal";case k:return"Profiler";case b:return"StrictMode";case d:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return ne(r)+".Consumer";case R:var t=e;return ne(t._context)+".Provider";case u:return Z(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case h:{var s=e,c=s._payload,a=s._init;try{return P(a(c))}catch{return null}}}return null}var A=Object.assign,J=0,ve,_e,ge,me,be,he,xe;function we(){}we.__reactDisabledLog=!0;function Me(){{if(J===0){ve=console.log,_e=console.info,ge=console.warn,me=console.error,be=console.group,he=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function Ue(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:_e}),warn:A({},e,{value:ge}),error:A({},e,{value:me}),group:A({},e,{value:be}),groupCollapsed:A({},e,{value:he}),groupEnd:A({},e,{value:xe})})}J<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=D.ReactCurrentDispatcher,ie;function Q(e,r,t){{if(ie===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ie=n&&n[1]||""}return`
|
|
77
|
+
`+ie+e}}var se=!1,ee;{var Ye=typeof WeakMap=="function"?WeakMap:Map;ee=new Ye}function ke(e,r){if(!e||se)return"";{var t=ee.get(e);if(t!==void 0)return t}var n;se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ae.current,ae.current=null,Me();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(w){n=w}Reflect.construct(e,[],a)}else{try{a.call()}catch(w){n=w}e.call(a.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var o=w.stack.split(`
|
|
78
78
|
`),x=n.stack.split(`
|
|
79
|
-
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var
|
|
80
|
-
`+o[y].replace(" at new "," at ");return e.displayName&&
|
|
79
|
+
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var O=`
|
|
80
|
+
`+o[y].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,O),O}while(y>=1&&_>=0);break}}}finally{se=!1,ae.current=c,Ue(),Error.prepareStackTrace=s}var U=e?e.displayName||e.name:"",z=U?Q(U):"";return typeof e=="function"&&ee.set(e,z),z}function Be(e,r,t){return ke(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return ke(e,Ke(e));if(typeof e=="string")return Q(e);switch(e){case d:return Q("Suspense");case i:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Be(e.render);case g:return re(e.type,r,t);case h:{var n=e,s=n._payload,c=n._init;try{return re(c(s),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,je={},Ee=D.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Ve(e,r,t,n,s){{var c=Function.call.bind(X);for(var a in e)if(c(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((n||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){o=y}o&&!(o instanceof Error)&&(te(s),v("%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).",n||"React class",t,a,typeof o),te(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,te(s),v("Failed %s type: %s",t,o.message),te(null))}}}var qe=Array.isArray;function le(e){return qe(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Se(e)}var Re=D.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function Ge(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&Re.current}function er(e,r){{var t=function(){Ce||(Ce=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Te||(Te=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,s,c,a){var o={$$typeof:p,type:e,key:r,ref:t,props:a,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function nr(e,r,t,n,s){{var c,a={},o=null,x=null;t!==void 0&&(Oe(t),o=""+t),Ze(r)&&(Oe(r.key),o=""+r.key),Ge(r)&&(x=r.ref,Qe(r));for(c in r)X.call(r,c)&&!He.hasOwnProperty(c)&&(a[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)a[c]===void 0&&(a[c]=y[c])}if(o||x){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&er(a,_),x&&rr(a,_)}return tr(e,o,x,s,n,Re.current,a)}}var ce=D.ReactCurrentOwner,Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ue;ue=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function De(){{if(ce.current){var e=P(ce.current.type);if(e)return`
|
|
81
81
|
|
|
82
82
|
Check the render method of \``+e+"`."}return""}}function or(e){return""}var $e={};function ar(e){{var r=De();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
83
83
|
|
|
84
|
-
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+
|
|
84
|
+
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),M(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function Ne(e,r){{if(typeof e!="object")return;if(le(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&Fe(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var s=L(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),a;!(a=c.next()).done;)fe(a.value)&&Fe(a.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=P(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var s=P(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){M(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),M(null);break}}e.ref!==null&&(M(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Ie={};function Ae(e,r,t,n,s,c){{var a=T(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=or();x?o+=x:o+=De();var y;e===null?y="null":le(e)?y="array":e!==void 0&&e.$$typeof===p?(y="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,o)}var _=nr(e,r,t,s,c);if(_==null)return _;if(a){var O=r.children;if(O!==void 0)if(n)if(le(O)){for(var U=0;U<O.length;U++)Ne(O[U],e);Object.freeze&&Object.freeze(O)}else v("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 Ne(O,e)}if(X.call(r,"key")){var z=P(e),w=Object.keys(r).filter(function(dr){return dr!=="key"}),pe=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[z+pe]){var pr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
85
85
|
let props = %s;
|
|
86
86
|
<%s {...props} />
|
|
87
87
|
React keys must be passed directly to JSX without using spread:
|
|
88
88
|
let props = %s;
|
|
89
|
-
<%s key={someKey} {...props} />`,pe,
|
|
89
|
+
<%s key={someKey} {...props} />`,pe,z,pr,z),Ie[z+pe]=!0}}return e===f?sr(_):ir(_),_}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var ur=cr,fr=lr;wr.Fragment=f,wr.jsx=ur,wr.jsxs=fr}()),wr}process.env.NODE_ENV==="production"?Tr.exports=tt():Tr.exports=nt();var B=Tr.exports;const ot="_shake_txgsc_1",at="_modal_txgsc_79",it="_w_txgsc_15",st="_o_txgsc_116",lt="_h_txgsc_141",ct="_l_txgsc_155",ut="_t_txgsc_192",ft="_x_txgsc_196",pt="_s_txgsc_89",dt="_c_txgsc_214",yt="_f_txgsc_219",vt="_row_txgsc_241",_t="_col_txgsc_253",gt="_g_txgsc_258",mt="_m_txgsc_79",oe={shake:ot,modal:at,"size-a":"_size-a_txgsc_89",w:it,"size-s":"_size-s_txgsc_94","size-m":"_size-m_txgsc_98","size-l":"_size-l_txgsc_102","size-x":"_size-x_txgsc_106","size-f":"_size-f_txgsc_110",o:st,h:lt,l:ct,t:ut,x:ft,s:pt,c:dt,f:yt,row:vt,col:_t,g:gt,m:mt};function bt({children:l}){return B.jsx("div",{className:oe.l,children:B.jsx("ul",{children:l})})}function ht({children:l}){return B.jsx("div",{className:oe.s,children:l})}function xt({children:l,viev:p="row",className:m}){let f={};return m&&(f.className=m),B.jsx("ul",{className:[oe.f,oe[p],f.className].join(" "),children:l})}function wt({children:l}){return B.jsx("div",{className:oe.c,children:l})}function kt({children:l}){return B.jsx("div",{className:oe.g,children:l})}var Pr={exports:{}},hr={};/**
|
|
90
90
|
* @license React
|
|
91
91
|
* react-jsx-runtime.production.min.js
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the MIT license found in the
|
|
96
96
|
* LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/var Mr;function jt(){if(Mr)return
|
|
97
|
+
*/var Mr;function jt(){if(Mr)return hr;Mr=1;var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,b=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function R(j,u,d){var i,g={},h=null,S=null;d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(S=u.ref);for(i in u)f.call(u,i)&&!k.hasOwnProperty(i)&&(g[i]=u[i]);if(j&&j.defaultProps)for(i in u=j.defaultProps,u)g[i]===void 0&&(g[i]=u[i]);return{$$typeof:p,type:j,key:h,ref:S,props:g,_owner:b.current}}return hr.Fragment=m,hr.jsx=R,hr.jsxs=R,hr}var kr={};/**
|
|
98
98
|
* @license React
|
|
99
99
|
* react-jsx-runtime.development.js
|
|
100
100
|
*
|
|
@@ -102,17 +102,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the MIT license found in the
|
|
104
104
|
* LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/var Ur;function Et(){return Ur||(Ur=1,process.env.NODE_ENV!=="production"&&function(){var l
|
|
106
|
-
`+ie+e}}var se=!1,
|
|
105
|
+
*/var Ur;function Et(){return Ur||(Ur=1,process.env.NODE_ENV!=="production"&&function(){var l=F,p=Symbol.for("react.element"),m=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),N=Symbol.iterator,Y="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var r=N&&e[N]||e[Y];return typeof r=="function"?r:null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];I("error",e,t)}}function I(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(a){return String(a)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var V=!1,q=!1,$=!1,K=!1,W=!1,C;C=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===k||W||e===b||e===d||e===i||K||e===S||V||q||$||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===R||e.$$typeof===j||e.$$typeof===u||e.$$typeof===C||e.getModuleId!==void 0))}function Z(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case m:return"Portal";case k:return"Profiler";case b:return"StrictMode";case d:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return ne(r)+".Consumer";case R:var t=e;return ne(t._context)+".Provider";case u:return Z(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case h:{var s=e,c=s._payload,a=s._init;try{return P(a(c))}catch{return null}}}return null}var A=Object.assign,J=0,ve,_e,ge,me,be,he,xe;function we(){}we.__reactDisabledLog=!0;function Me(){{if(J===0){ve=console.log,_e=console.info,ge=console.warn,me=console.error,be=console.group,he=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function Ue(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:_e}),warn:A({},e,{value:ge}),error:A({},e,{value:me}),group:A({},e,{value:be}),groupCollapsed:A({},e,{value:he}),groupEnd:A({},e,{value:xe})})}J<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=D.ReactCurrentDispatcher,ie;function Q(e,r,t){{if(ie===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ie=n&&n[1]||""}return`
|
|
106
|
+
`+ie+e}}var se=!1,ee;{var Ye=typeof WeakMap=="function"?WeakMap:Map;ee=new Ye}function ke(e,r){if(!e||se)return"";{var t=ee.get(e);if(t!==void 0)return t}var n;se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ae.current,ae.current=null,Me();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(w){n=w}Reflect.construct(e,[],a)}else{try{a.call()}catch(w){n=w}e.call(a.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var o=w.stack.split(`
|
|
107
107
|
`),x=n.stack.split(`
|
|
108
|
-
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var
|
|
109
|
-
`+o[y].replace(" at new "," at ");return e.displayName&&
|
|
108
|
+
`),y=o.length-1,_=x.length-1;y>=1&&_>=0&&o[y]!==x[_];)_--;for(;y>=1&&_>=0;y--,_--)if(o[y]!==x[_]){if(y!==1||_!==1)do if(y--,_--,_<0||o[y]!==x[_]){var O=`
|
|
109
|
+
`+o[y].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,O),O}while(y>=1&&_>=0);break}}}finally{se=!1,ae.current=c,Ue(),Error.prepareStackTrace=s}var U=e?e.displayName||e.name:"",z=U?Q(U):"";return typeof e=="function"&&ee.set(e,z),z}function Be(e,r,t){return ke(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return ke(e,Ke(e));if(typeof e=="string")return Q(e);switch(e){case d:return Q("Suspense");case i:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Be(e.render);case g:return re(e.type,r,t);case h:{var n=e,s=n._payload,c=n._init;try{return re(c(s),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,je={},Ee=D.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Ve(e,r,t,n,s){{var c=Function.call.bind(X);for(var a in e)if(c(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((n||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){o=y}o&&!(o instanceof Error)&&(te(s),v("%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).",n||"React class",t,a,typeof o),te(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,te(s),v("Failed %s type: %s",t,o.message),te(null))}}}var qe=Array.isArray;function le(e){return qe(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Oe(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Se(e)}var Re=D.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function Ge(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&Re.current}function er(e,r){{var t=function(){Ce||(Ce=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Te||(Te=!0,v("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,s,c,a){var o={$$typeof:p,type:e,key:r,ref:t,props:a,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function nr(e,r,t,n,s){{var c,a={},o=null,x=null;t!==void 0&&(Oe(t),o=""+t),Ze(r)&&(Oe(r.key),o=""+r.key),Ge(r)&&(x=r.ref,Qe(r));for(c in r)X.call(r,c)&&!He.hasOwnProperty(c)&&(a[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)a[c]===void 0&&(a[c]=y[c])}if(o||x){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&er(a,_),x&&rr(a,_)}return tr(e,o,x,s,n,Re.current,a)}}var ce=D.ReactCurrentOwner,Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ue;ue=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function De(){{if(ce.current){var e=P(ce.current.type);if(e)return`
|
|
110
110
|
|
|
111
111
|
Check the render method of \``+e+"`."}return""}}function or(e){return""}var $e={};function ar(e){{var r=De();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
112
112
|
|
|
113
|
-
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+
|
|
113
|
+
Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if($e[t])return;$e[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),M(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function Ne(e,r){{if(typeof e!="object")return;if(le(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&Fe(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var s=L(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),a;!(a=c.next()).done;)fe(a.value)&&Fe(a.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=P(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var s=P(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){M(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),M(null);break}}e.ref!==null&&(M(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Ie={};function Ae(e,r,t,n,s,c){{var a=T(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=or();x?o+=x:o+=De();var y;e===null?y="null":le(e)?y="array":e!==void 0&&e.$$typeof===p?(y="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,o)}var _=nr(e,r,t,s,c);if(_==null)return _;if(a){var O=r.children;if(O!==void 0)if(n)if(le(O)){for(var U=0;U<O.length;U++)Ne(O[U],e);Object.freeze&&Object.freeze(O)}else v("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 Ne(O,e)}if(X.call(r,"key")){var z=P(e),w=Object.keys(r).filter(function(dr){return dr!=="key"}),pe=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[z+pe]){var pr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
114
114
|
let props = %s;
|
|
115
115
|
<%s {...props} />
|
|
116
116
|
React keys must be passed directly to JSX without using spread:
|
|
117
117
|
let props = %s;
|
|
118
|
-
<%s key={someKey} {...props} />`,pe,A,pr,A),Ie[A+pe]=!0}}return e===f?sr(_):ir(_),_}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var ur=cr,fr=lr;wr.Fragment=f,wr.jsx=ur,wr.jsxs=fr}()),wr}process.env.NODE_ENV==="production"?Tr.exports=jt():Tr.exports=Et();var Pr=Tr.exports;const St="_btn_1k1b3_1",Ot="_confirm_1k1b3_15",Rt="_cancel_1k1b3_20",Ct="_action_1k1b3_25",Tt="_disabled_1k1b3_30",Pt="_m_1k1b3_44",Dt="_l_1k1b3_48",kr={btn:St,confirm:Ot,cancel:Rt,action:Ct,disabled:Tt,await:"_await_1k1b3_37",m:Pt,l:Dt},$t=({onClick:l,onSend:p,size:m="m",view:f="confirm",children:b,isDisabled:k=!1,className:C,after:j,before:u,label:d,onRef:i,awaitText:g="Ожидайте"})=>{let[h,O]=$.useState(!1);const F=L=>{if(l)return l();h||(p?(O(!0),p(O)):L.preventDefault())};let W={};return(k||h)&&(W.disabled=!0),Pr.jsx("button",{...W,ref:i,className:[kr.btn,h?kr.disabled:kr[f],m&&kr[m],C].filter(L=>L!="").join(" "),onClick:F,children:h?g:Pr.jsxs(Pr.Fragment,{children:[u||""," ",d," ",j||""]})||b})};let Le={};function Ft({children:l}){return B.jsx(B.Fragment,{children:l})}var jr;(l=>{function p({import_modules:d}){let[i,g]=$.useState([]);return Le.x=h=>{g(h?i.filter(O=>O.key!==h):[])},$.useEffect(()=>{d&&(Le.i=d)},[]),Le.add=(h,O=Date.now())=>{g([...i,{key:O,item:h}])},B.jsx(B.Fragment,{children:i.map(h=>h.item)})}l.Init=p;function m(d){return d&&(Le.i=d),Le.i}l.Import=m,l.List=bt,l.Scroll=ht,l.Form=xt,l.Center=wt,l.Column=kt;function f(d,i,g){Le.i(`${d}/modal/${i}.tsx`).then(h=>{h.default.Open(g)})}l.Open=f;function b({type:d,name:i,params:g}){let[h,O]=$.useState(null);return $.useEffect(()=>{Le.i(`${d}/modal/${i}.tsx`).then(F=>{O(F.default.Icon(g))})},[g.id]),B.jsx(B.Fragment,{children:h})}l.Icon=b;function k(d,i){Le.add(B.jsx(Ft,{children:d},String(Date.now())),i)}l.Add=k;function C(d){Le.x(d)}l.Close=C;function j(d){if(d.target.classList[0]!=="modal")return;let i=d.target.children[0];i.setAttribute("shake",!0),setTimeout(()=>{i.setAttribute("shake",!1)},1e3)}l.Shake=j;function u({title:d,children:i,button:g,tabs:h,size:O="m",className:F="",shake:W=!0,menu:L}){const[P,v]=$.useState(!0),N=$.useRef(),V=D=>{if(g){if(g.onClick)return D(!1),g.onClick({setOpen:v});if(g.onSend)return g.onSend({setOpen:v,disabled:D})}},q=()=>{if(!W)return v(!1);N.current.setAttribute("shake",!0),setTimeout(()=>{N.current.setAttribute("shake",!1)},1e3)};return P?B.jsxs("div",{className:`${oe.modal}`,children:[B.jsx("div",{className:oe.o,onClick:q}),B.jsxs("div",{className:[oe.w,oe[`s${O}`],F].filter(D=>D!="").join(" "),ref:N,children:[B.jsxs("div",{className:oe.h,children:[B.jsx("div",{className:oe.t,children:d}),B.jsxs("div",{className:oe.m,children:[h&&B.jsx("nav",{children:h.map((D,K)=>B.jsx("span",{onClick:D.onClick,className:D.active?"active":"",children:D.name},K))}),L]}),B.jsx("div",{className:oe.x,onClick:()=>{v(!1)},children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:B.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i,g!==void 0?B.jsx($t,{label:g.label,onSend:V,className:oe.btn}):""]})]}):""}l.Main=u})(jr||(jr={}));const Nt=(l,p=",")=>(l=l!==void 0&&l!==""?l.split(p):[],l.filter(m=>m!=="").reduce((m,f)=>(m[f]=!0,m),{}));function It({value:l,onValue:p,name:m,placeholder:f="",separator:b=",",title:k,error:C,hide:j=!1,edit:u=!0,active:d=!0,outFormat:i="object",after:g="",modal:h,options:O,className:F}){const[W,L]=$.useState(Nt(l,b)),P=V=>{if(!(u&&d)||!h)return;let q=h.split(".");jr.Open(q[0],q[1],{callback:D=>{if(p)switch(i){case"array":p({value:Object.keys(D),name:m});break;case"string":p({value:Object.keys(D).filter(K=>D[K]).join(b),name:m});break;default:p({value:D,name:m})}L(Object.fromEntries(Object.entries(D).filter(([K,z])=>z!==!1)))},onValue:p,options:O,name:m,value:W})},v={};v.field="group",F&&(v.className=F);const N={};return f&&(N.placeholder=f),j?S.jsx(S.Fragment,{}):S.jsxs("dl",{...v,children:[S.jsxs("dt",{children:[k,S.jsx("i",{onClick:P,children:S.jsx("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),S.jsx("dd",{...N,onClick:P,edit:(u&&d)+"","data-after":g,children:Object.keys(W).map(V=>{var q;return S.jsx("div",{className:"field_group_item",children:(q=O[V])==null?void 0:q.label},V)})}),C&&S.jsx("em",{children:C})]})}const Er={o:"_o_1vba1_12",l:"_l_1vba1_22",i:"_i_1vba1_71",f:"_f_1vba1_80"},Dr={l:"_l_1w86i_12",f:"_f_1w86i_19",t:"_t_1w86i_30"};function At({title:l,error:p,edit:m=!0,active:f=!0,hide:b,value:k=0,onValue:C,options:j,placeholder:u="",className:d,isIcon:i=!0,name:g,after:h,view:O,order:F,isReload:W=!1}){var J,Q;const L=$.useRef(null),[P,v]=$.useState(k),[N,V]=$.useState(j),[q,D]=$.useState(!1);$.useEffect(()=>{v(k),V(j)},[k,j]),b=!!(b&&(k===0||((J=N==null?void 0:N[k])==null?void 0:J.n)===void 0))&&!(m&&f);let z=T=>{v(T),C&&C({value:T,name:g,reload:W})},E={onClick:T=>{Object.keys(N||{}).length!==0&&m&&f&&(L.position=T.target.getBoundingClientRect(),D(!0))}};return u&&(E.placeholder=u),h&&(E.after=h),m&&f&&(E.edit=""),b?"":S.jsxs(S.Fragment,{children:[S.jsxs("dl",{"data-field":"select",className:[Dr.l,d].filter(T=>T!==void 0).join(" "),children:[l&&S.jsx("dt",{className:Dr.t,children:l}),S.jsx("dd",{...E,className:[Dr.f,Er.f].join(" "),ref:L,children:(Q=N==null?void 0:N[P])==null?void 0:Q.n}),Object.keys(N||{}).length!==0&&i&&S.jsx("svg",{className:Er.i,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})}),p&&S.jsx("em",{children:p})]}),q&&Yr.createPortal(S.jsx(zt,{parent:L.position,onValue:z,view:O,className:d,options:N,order:F,setOpen:D},new Date().getTime()),document.body)]})}const zt=({onValue:l,parent:p,className:m,options:f,order:b,setOpen:k})=>{let C=()=>{k(!1)},j=i=>{k(!1),l(i)},u=window.innerHeight-p.y+p.height<320?p.y-312:p.y+33,d=window.innerWidth-p.x<265?p.x-235:p.x;return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Er.o,onClick:C},new Date().getTime()),S.jsx("div",{className:[Er.l,m].filter(i=>i!==void 0).join(" "),style:{top:u+"px",left:d+"px",width:p.width},children:S.jsx(Lt,{order:b,options:f,link:j})})]})},Lt=({order:l,options:p,link:m})=>l?S.jsx("ul",{children:l.map((f,b)=>p[f].s!==0?S.jsx("li",{onClick:()=>{m(f)},children:p[f].n},b):"")}):S.jsx("ul",{children:Object.keys(p).map((f,b)=>p[f].s!==0?S.jsx("li",{onClick:()=>{m(f)},children:p[f].n},b):"")});function Wt({value:l,onValue:p,name:m,placeholder:f="",title:b,error:k,hide:C=!1,edit:j=!0,show:u=!0,active:d=!0,after:i="",view:g,modal:h,module:O,options:F,className:W}){let[L,P]=$.useState(l),v=q=>{if(!(j&&d)||!h)return;let D=h.split(".");jr.Open(D[0],D[1],{callback:K=>{p&&p({value:K,name:m}),P(K)},onValue:p,options:F,name:m,value:l})};const N={};N.field="input",W&&(N.className=W);const V={};return f&&(V.placeholder=f),C?S.jsx(S.Fragment,{}):S.jsxs("dl",{...N,children:[b&&S.jsx("dt",{children:b}),S.jsx("dd",{...V,onClick:v,edit:(j&&d)+"","data-after":i,children:L}),k&&S.jsx("em",{children:k})]})}function Mt({value:l,onValue:p,onSave:m,name:f,placeholder:b="",className:k,title:C,error:j,edit:u=!0,active:d=!0,reload:i=!1,native:g=!1,isShow:h=!1,maxLength:O,eyes:F=[],after:W=""}){const[L,P]=$.useState(h);let v=z=>{p&&p({value:z.target.textContent,name:f,reload:i})},N=z=>{z.key==="Enter"&&z.preventDefault()},V=z=>{z.preventDefault(),navigator.clipboard.readText().then(Y=>{if(O){let E=z.target.textContent.length;if(E>=O)return;O-=E,Y=Y.slice(0,O)}window.document.execCommand("insertText",!1,Y.replace(/(\r\n|\n|\r)/gm," "))}).catch(Y=>{})},q=z=>{ye.Blur(z),m==null||m({value:z.target.textContent.trim(),name:f})};const D={};D.field="password",L&&(D.show=""),k&&(D.className=k);const K={};return b&&(K.placeholder=b),g?"":S.jsxs("dl",{...D,children:[C?S.jsx("dt",{children:C}):"",S.jsx("dd",{onPaste:V,onInput:v,onKeyDown:N,onBlur:q,contentEditable:u&&d?ye.ContentEditable:"false",...K,suppressContentEditableWarning:!0,children:l}),F[0]&&S.jsx("i",{onClick:()=>P(!L),children:L?F[1]:F[0]}),W,j?S.jsx("em",{children:j}):""]})}function Ut({onValue:l,onSave:p,active:m,max:f,edit:b,title:k,error:C,show:j,hide:u,value:d,placeholder:i,className:g,maxLength:h,name:O,after:F="",before:W="",view:L}){b=b!==void 0?b:!0,m=m!==void 0?m:!0,u=!!(u&&(d===""||d===void 0))&&!(b&&m),i=i!==void 0?i:"",f=f!==void 0?f:99;let v=!1,N=E=>{l==null||l({value:E.target.textContent,name:O})},V=E=>{if(!(v&&E.which===86)){if(E.which===17||E.which===91)return v=!0;E.key!=="Backspace"&&(E.target.textContent.length===f&&E.preventDefault(),E.key==="Enter"&&E.preventDefault(),isNaN(E.key)&&E.preventDefault())}},q=E=>{if(E.which===17||E.which===91)return v=!1},D=E=>{E.preventDefault(),navigator.clipboard.readText().then(J=>{if(J=J.replace(/(?!^\+|\d)./g,""),h){let Q=E.target.textContent.length;if(Q>=h)return;h-=Q,J=J.slice(0,h)}window.document.execCommand("insertText",!1,""+J)}).catch(J=>{})};const K=E=>{ye.Blur(E),p==null||p({value:E.target.textContent,name:O})},z={};z.field="input",g&&(z.className=g);let Y={};return b&&m?(Y.edit="true",Y.contentEditable=ye.ContentEditable):Y.contentEditable="false",Y.inputMode="decimal",i&&(Y.placeholder=i),u?S.jsx(S.Fragment,{}):S.jsxs("dl",{...z,children:[k&&S.jsx("dt",{children:k}),W,S.jsx("dd",{...Y,onPaste:D,onInput:N,onBlur:K,onKeyDown:V,onKeyUp:q,suppressContentEditableWarning:!0,children:d}),F,C&&S.jsx("em",{children:C})]})}const de={};function Yt(l){const[p,m]=$.useState({}),f=$.useRef(l);return de.u=b=>{f.current={...f.current,[b.name]:b.value}},de.n=b=>{f.current=b,m(Date.now())},de.r=()=>{m(Date.now())},[f.current,de.n]}function Bt(l){de.u(l),l.reload&&de.r()}function Kt(){de.r&&de.r()}function Vt(l){const[p,m]=$.useState({}),f=$.useRef(l);return de.u=b=>{f.current={...f.current,[b.name]:b.value}},de.n=b=>{Object.keys(b).length>0?Object.keys(b).forEach(k=>{f.current[k]=b[k]}):f.current={},m(Date.now())},de.r=()=>{m(Date.now())},[f.current,de.n]}Z.Modal=Wt,Z.Number=Ut,Z.Options=It,Z.Password=Mt,Z.Progress=Vr,Z.Select=At,Z.String=rt,Z.runReload=Kt,Z.setValue=Bt,Z.useData=Yt,Z.useError=Vt,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|
|
118
|
+
<%s key={someKey} {...props} />`,pe,z,pr,z),Ie[z+pe]=!0}}return e===f?sr(_):ir(_),_}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var ur=cr,fr=lr;kr.Fragment=f,kr.jsx=ur,kr.jsxs=fr}()),kr}process.env.NODE_ENV==="production"?Pr.exports=jt():Pr.exports=Et();var Dr=Pr.exports;const St="_btn_1k1b3_1",Ot="_confirm_1k1b3_15",Rt="_cancel_1k1b3_20",Ct="_action_1k1b3_25",Tt="_disabled_1k1b3_30",Pt="_m_1k1b3_44",Dt="_l_1k1b3_48",jr={btn:St,confirm:Ot,cancel:Rt,action:Ct,disabled:Tt,await:"_await_1k1b3_37",m:Pt,l:Dt},$t=({onClick:l,onSend:p,size:m="m",view:f="confirm",children:b,isDisabled:k=!1,className:R,after:j,before:u,label:d,onRef:i,awaitText:g="Ожидайте"})=>{let[h,S]=F.useState(!1);const N=L=>{if(l)return l();h||(p?(S(!0),p(S)):L.preventDefault())};let Y={};return(k||h)&&(Y.disabled=!0),Dr.jsx("button",{...Y,ref:i,className:[jr.btn,h?jr.disabled:jr[f],m&&jr[m],R].filter(L=>L!="").join(" "),onClick:N,children:h?g:Dr.jsxs(Dr.Fragment,{children:[u||""," ",d," ",j||""]})||b})};let Le={};function Ft({children:l}){return B.jsx(B.Fragment,{children:l})}var Er;(l=>{function p({import_modules:d}){let[i,g]=F.useState([]);return Le.x=h=>{g(h?i.filter(S=>S.key!==h):[])},F.useEffect(()=>{d&&(Le.i=d)},[]),Le.add=(h,S=Date.now())=>{g([...i,{key:S,item:h}])},B.jsx(B.Fragment,{children:i.map(h=>h.item)})}l.Init=p;function m(d){return d&&(Le.i=d),Le.i}l.Import=m,l.List=bt,l.Scroll=ht,l.Form=xt,l.Center=wt,l.Column=kt;function f(d,i,g){Le.i(`${d}/modal/${i}.tsx`).then(h=>{h.default.Open(g)})}l.Open=f;function b({type:d,name:i,params:g}){let[h,S]=F.useState(null);return F.useEffect(()=>{Le.i(`${d}/modal/${i}.tsx`).then(N=>{S(N.default.Icon(g))})},[g.id]),B.jsx(B.Fragment,{children:h})}l.Icon=b;function k(d,i){Le.add(B.jsx(Ft,{children:d},String(Date.now())),i)}l.Add=k;function R(d){Le.x(d)}l.Close=R;function j(d){if(d.target.classList[0]!=="modal")return;let i=d.target.children[0];i.setAttribute("shake",!0),setTimeout(()=>{i.setAttribute("shake",!1)},1e3)}l.Shake=j;function u({title:d,children:i,button:g,tabs:h,size:S="m",className:N="",shake:Y=!0,menu:L}){const[D,v]=F.useState(!0),I=F.useRef(),V=$=>{if(g){if(g.onClick)return $(!1),g.onClick({setOpen:v});if(g.onSend)return g.onSend({setOpen:v,disabled:$})}},q=()=>{if(!Y)return v(!1);I.current.setAttribute("shake",!0),setTimeout(()=>{I.current.setAttribute("shake",!1)},1e3)};return D?B.jsxs("div",{className:`${oe.modal}`,children:[B.jsx("div",{className:oe.o,onClick:q}),B.jsxs("div",{className:[oe.w,oe[`s${S}`],N].filter($=>$!="").join(" "),ref:I,children:[B.jsxs("div",{className:oe.h,children:[B.jsx("div",{className:oe.t,children:d}),B.jsxs("div",{className:oe.m,children:[h&&B.jsx("nav",{children:h.map(($,K)=>B.jsx("span",{onClick:$.onClick,className:$.active?"active":"",children:$.name},K))}),L]}),B.jsx("div",{className:oe.x,onClick:()=>{v(!1)},children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:B.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i,g!==void 0?B.jsx($t,{label:g.label,onSend:V,className:oe.btn}):""]})]}):""}l.Main=u})(Er||(Er={}));const Nt=(l,p=",")=>(l=l!==void 0&&l!==""?l.split(p):[],l.filter(m=>m!=="").reduce((m,f)=>(m[f]=!0,m),{}));function It({value:l,onValue:p,name:m,placeholder:f="",separator:b=",",title:k,error:R,hide:j=!1,edit:u=!0,active:d=!0,outFormat:i="object",after:g="",modal:h,options:S,className:N}){const[Y,L]=F.useState(Nt(l,b)),D=V=>{if(!(u&&d)||!h)return;let q=h.split(".");Er.Open(q[0],q[1],{callback:$=>{if(p)switch(i){case"array":p({value:Object.keys($),name:m});break;case"string":p({value:Object.keys($).filter(K=>$[K]).join(b),name:m});break;default:p({value:$,name:m})}L(Object.fromEntries(Object.entries($).filter(([K,W])=>W!==!1)))},onValue:p,options:S,name:m,value:Y})},v={};v.field="group",N&&(v.className=N);const I={};return f&&(I.placeholder=f),j?E.jsx(E.Fragment,{}):E.jsxs("dl",{...v,children:[E.jsxs("dt",{children:[k,E.jsx("i",{onClick:D,children:E.jsx("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),E.jsx("dd",{...I,onClick:D,edit:(u&&d)+"","data-after":g,children:Object.keys(Y).map(V=>{var q;return E.jsx("div",{className:"field_group_item",children:(q=S[V])==null?void 0:q.label},V)})}),R&&E.jsx("em",{children:R})]})}const Sr={o:"_o_1vba1_12",l:"_l_1vba1_22",i:"_i_1vba1_71",f:"_f_1vba1_80"};function At({title:l,error:p,edit:m=!0,active:f=!0,hide:b,value:k=0,onValue:R,options:j,placeholder:u="",className:d,isIcon:i=!0,name:g,after:h,view:S,order:N,isReload:Y=!1}){var Z,ne;const L=F.useRef(null),[D,v]=F.useState(k),[I,V]=F.useState(j),[q,$]=F.useState(!1);F.useEffect(()=>{v(k),V(j)},[k,j]),b=!!(b&&(k===0||((Z=I==null?void 0:I[k])==null?void 0:Z.n)===void 0))&&!(m&&f);let W=P=>{v(P),R&&R({value:P,name:g,reload:Y})},T={onClick:P=>{Object.keys(I||{}).length!==0&&m&&f&&(L.position=P.target.getBoundingClientRect(),$(!0))}};return u&&(T.placeholder=u),h&&(T.after=h),m&&f&&(T.edit=""),b?"":E.jsxs(E.Fragment,{children:[E.jsxs("dl",{"data-field":"select",className:[yr.l,d].filter(P=>P!==void 0).join(" "),children:[l&&E.jsx("dt",{className:yr.t,children:l}),E.jsx("dd",{...T,className:[yr.f,Sr.f].join(" "),ref:L,children:(ne=I==null?void 0:I[D])==null?void 0:ne.n}),Object.keys(I||{}).length!==0&&i&&E.jsx("svg",{className:Sr.i,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})}),p&&E.jsx("em",{children:p})]}),q&&Yr.createPortal(E.jsx(zt,{parent:L.position,onValue:W,view:S,className:d,options:I,order:N,setOpen:$},new Date().getTime()),document.body)]})}const zt=({onValue:l,parent:p,className:m,options:f,order:b,setOpen:k})=>{let R=()=>{k(!1)},j=i=>{k(!1),l(i)},u=window.innerHeight-p.y+p.height<320?p.y-312:p.y+33,d=window.innerWidth-p.x<265?p.x-235:p.x;return E.jsxs(E.Fragment,{children:[E.jsx("div",{className:Sr.o,onClick:R},new Date().getTime()),E.jsx("div",{className:[Sr.l,m].filter(i=>i!==void 0).join(" "),style:{top:u+"px",left:d+"px",width:p.width},children:E.jsx(Lt,{order:b,options:f,link:j})})]})},Lt=({order:l,options:p,link:m})=>l?E.jsx("ul",{children:l.map((f,b)=>p[f].s!==0?E.jsx("li",{onClick:()=>{m(f)},children:p[f].n},b):"")}):E.jsx("ul",{children:Object.keys(p).map((f,b)=>p[f].s!==0?E.jsx("li",{onClick:()=>{m(f)},children:p[f].n},b):"")});function Wt({value:l,onValue:p,name:m,placeholder:f="",title:b,error:k,hide:R=!1,edit:j=!0,show:u=!0,active:d=!0,after:i="",view:g,modal:h,module:S,options:N,className:Y}){let[L,D]=F.useState(l),v=q=>{if(!(j&&d)||!h)return;let $=h.split(".");Er.Open($[0],$[1],{callback:K=>{p&&p({value:K,name:m}),D(K)},onValue:p,options:N,name:m,value:l})};const I={};I.field="input",Y&&(I.className=Y);const V={};return f&&(V.placeholder=f),R?E.jsx(E.Fragment,{}):E.jsxs("dl",{...I,children:[b&&E.jsx("dt",{children:b}),E.jsx("dd",{...V,onClick:v,edit:(j&&d)+"","data-after":i,children:L}),k&&E.jsx("em",{children:k})]})}function Mt({value:l,onValue:p,onSave:m,name:f,placeholder:b="",className:k,title:R,error:j,edit:u=!0,active:d=!0,reload:i=!1,native:g=!1,isShow:h=!1,maxLength:S,eyes:N=[],after:Y=""}){const[L,D]=F.useState(h);let v=W=>{p&&p({value:W.target.textContent,name:f,reload:i})},I=W=>{W.key==="Enter"&&W.preventDefault()},V=W=>{W.preventDefault(),navigator.clipboard.readText().then(C=>{if(S){let T=W.target.textContent.length;if(T>=S)return;S-=T,C=C.slice(0,S)}window.document.execCommand("insertText",!1,C.replace(/(\r\n|\n|\r)/gm," "))}).catch(C=>{})},q=W=>{de.Blur(W),m==null||m({value:W.target.textContent.trim(),name:f})};const $={};$.field="password",L&&($.show=""),k&&($.className=k);const K={};return b&&(K.placeholder=b),g?"":E.jsxs("dl",{...$,children:[R?E.jsx("dt",{children:R}):"",E.jsx("dd",{onPaste:V,onInput:v,onKeyDown:I,onBlur:q,contentEditable:u&&d?de.ContentEditable:"false",...K,suppressContentEditableWarning:!0,children:l}),N[0]&&E.jsx("i",{onClick:()=>D(!L),children:L?N[1]:N[0]}),Y,j?E.jsx("em",{children:j}):""]})}function Ut({onValue:l,onSave:p,active:m,max:f,edit:b,title:k,error:R,show:j,hide:u,value:d,placeholder:i,className:g,maxLength:h,name:S,after:N="",before:Y="",view:L}){b=b!==void 0?b:!0,m=m!==void 0?m:!0,u=!!(u&&(d===""||d===void 0))&&!(b&&m),i=i!==void 0?i:"",f=f!==void 0?f:99;let v=!1,I=T=>{l==null||l({value:T.target.textContent,name:S})},V=T=>{if(!(v&&T.which===86)){if(T.which===17||T.which===91)return v=!0;T.key!=="Backspace"&&(T.target.textContent.length===f&&T.preventDefault(),T.key==="Enter"&&T.preventDefault(),isNaN(T.key)&&T.preventDefault())}},q=T=>{if(T.which===17||T.which===91)return v=!1},$=T=>{T.preventDefault(),navigator.clipboard.readText().then(Z=>{if(Z=Z.replace(/(?!^\+|\d)./g,""),h){let ne=T.target.textContent.length;if(ne>=h)return;h-=ne,Z=Z.slice(0,h)}window.document.execCommand("insertText",!1,""+Z)}).catch(Z=>{})};const K=T=>{de.Blur(T),p==null||p({value:T.target.textContent,name:S})},W={};W.field="input",g&&(W.className=g);let C={};return b&&m?(C.edit="true",C.contentEditable=de.ContentEditable):C.contentEditable="false",C.inputMode="decimal",i&&(C.placeholder=i),u?E.jsx(E.Fragment,{}):E.jsxs("dl",{...W,children:[k&&E.jsx("dt",{children:k}),Y,E.jsx("dd",{...C,onPaste:$,onInput:I,onBlur:K,onKeyDown:V,onKeyUp:q,suppressContentEditableWarning:!0,children:d}),N,R&&E.jsx("em",{children:R})]})}const ye={};function Yt(l){const[p,m]=F.useState({}),f=F.useRef(l);return ye.u=b=>{f.current={...f.current,[b.name]:b.value}},ye.n=b=>{f.current=b,m(Date.now())},ye.r=()=>{m(Date.now())},[f.current,ye.n]}function Bt(l){ye.u(l),l.reload&&ye.r()}function Kt(){ye.r&&ye.r()}function Vt(l){const[p,m]=F.useState({}),f=F.useRef(l);return ye.u=b=>{f.current={...f.current,[b.name]:b.value}},ye.n=b=>{Object.keys(b).length>0?Object.keys(b).forEach(k=>{f.current[k]=b[k]}):f.current={},m(Date.now())},ye.r=()=>{m(Date.now())},[f.current,ye.n]}G.Modal=Wt,G.Number=Ut,G.Options=It,G.Password=Mt,G.Progress=Vr,G.Select=At,G.String=rt,G.runReload=Kt,G.setValue=Bt,G.useData=Yt,G.useError=Vt,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|