@elcrm/form 0.0.11 → 0.0.13
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.d.ts +3 -1
- package/dist/index.es.js +3314 -1734
- package/dist/index.umd.js +38 -38
- package/package.json +1 -1
- package/dist/Search.d.ts +0 -2
- /package/dist/{Notes.d.ts → Note.d.ts} +0 -0
- /package/dist/{Button.d.ts → _Button.d.ts} +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
1
|
+
(function(Z,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],z):(Z=typeof globalThis<"u"?globalThis:Z||self,z((Z.elCRM=Z.elCRM||{},Z.elCRM.components={}),Z.React,Z.ReactDOM))})(this,function(Z,z,Kr){"use strict";var Fr=document.createElement("style");Fr.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: 0px 14px;--field-height: 32px;--field-width: 300px;--field-label-color: #84919a;--field-placeholder: #84919a}._l_1ho5f_13{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._f_1ho5f_20{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);line-height:var(--field-height)}._f_1ho5f_20[placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._f_1ho5f_20:focus:before{display:none}._n_1ho5f_40{min-height:var(--field-note-height);line-height:var(--field-note-line-height)}._n_1ho5f_40[placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._n_1ho5f_40:focus:before{display:none}._w_1ho5f_53{text-wrap-mode:nowrap;overflow:hidden;overflow-x:scroll}._w_1ho5f_53::-webkit-scrollbar{width:0;height:0}._t_1ho5f_63{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_1xyj1_12{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:var(--select-overlay)}._l_1xyj1_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_1xyj1_22::-webkit-scrollbar{width:0;height:0}._l_1xyj1_22 ul{overflow-y:auto;width:100%;max-height:300px;display:block;overflow-x:hidden}._l_1xyj1_22 li{border-bottom:var(--select-separator);cursor:pointer;display:block;padding:0 15px;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_1xyj1_22 li:hover{font-weight:700}._l_1xyj1_22 li:last-child{border-bottom:0}._i_1xyj1_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_1xyj1_80{cursor:pointer}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Fr);var Rr={exports:{}},mr={};/**
|
|
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 $r;function
|
|
10
|
+
*/var $r;function Gr(){if($r)return mr;$r=1;var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,v=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(S,l,d){var _,g={},b=null,T=null;d!==void 0&&(b=""+d),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(T=l.ref);for(_ in l)u.call(l,_)&&!j.hasOwnProperty(_)&&(g[_]=l[_]);if(S&&S.defaultProps)for(_ in l=S.defaultProps,l)g[_]===void 0&&(g[_]=l[_]);return{$$typeof:f,type:S,key:b,ref:T,props:g,_owner:v.current}}return mr.Fragment=m,mr.jsx=O,mr.jsxs=O,mr}var yr={};/**
|
|
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
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`),y=
|
|
22
|
-
`+
|
|
18
|
+
*/var Ir;function Yr(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,W="@@iterator";function M(e){if(e===null||typeof e!="object")return null;var r=A&&e[A]||e[W];return typeof r=="function"?r:null}var P=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=P.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var q=!1,K=!1,$=!1,G=!1,D=!1,w;w=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||D||e===v||e===d||e===_||G||e===T||q||K||$||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===O||e.$$typeof===S||e.$$typeof===l||e.$$typeof===w||e.getModuleId!==void 0))}function I(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function R(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 u:return"Fragment";case m:return"Portal";case j:return"Profiler";case v:return"StrictMode";case d:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return R(r)+".Consumer";case O:var t=e;return R(t._context)+".Provider";case l:return I(e,e.render,"ForwardRef");case g:var a=e.displayName||null;return a!==null?a:k(e.type)||"Memo";case b:{var s=e,c=s._payload,o=s._init;try{return k(o(c))}catch{return null}}}return null}var F=Object.assign,U=0,re,ie,le,ve,he,ke,xe;function we(){}we.__reactDisabledLog=!0;function We(){{if(U===0){re=console.log,ie=console.info,le=console.warn,ve=console.error,he=console.group,ke=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})}U++}}function Ue(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:re}),info:F({},e,{value:ie}),warn:F({},e,{value:le}),error:F({},e,{value:ve}),group:F({},e,{value:he}),groupCollapsed:F({},e,{value:ke}),groupEnd:F({},e,{value:xe})})}U<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=P.ReactCurrentDispatcher,de;function te(e,r,t){{if(de===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
|
|
19
|
+
`+de+e}}var ue=!1,ae;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ae=new Ke}function je(e,r){if(!e||ue)return"";{var t=ae.get(e);if(t!==void 0)return t}var a;ue=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ce.current,ce.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){a=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){a=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var n=C.stack.split(`
|
|
20
|
+
`),E=a.stack.split(`
|
|
21
|
+
`),y=n.length-1,h=E.length-1;y>=1&&h>=0&&n[y]!==E[h];)h--;for(;y>=1&&h>=0;y--,h--)if(n[y]!==E[h]){if(y!==1||h!==1)do if(y--,h--,h<0||n[y]!==E[h]){var N=`
|
|
22
|
+
`+n[y].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,N),N}while(y>=1&&h>=0);break}}}finally{ue=!1,ce.current=c,Ue(),Error.prepareStackTrace=s}var H=e?e.displayName||e.name:"",Y=H?te(H):"";return typeof e=="function"&&ae.set(e,Y),Y}function Ge(e,r,t){return je(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ne(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,Ye(e));if(typeof e=="string")return te(e);switch(e){case d:return te("Suspense");case _:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ge(e.render);case g:return ne(e.type,r,t);case b:{var a=e,s=a._payload,c=a._init;try{return ne(c(s),r,t)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=P.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function qe(e,r,t,a,s){{var c=Function.call.bind(Q);for(var o in e)if(c(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var E=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){n=y}n&&!(n instanceof Error)&&(oe(s),p("%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).",a||"React class",t,o,typeof n),oe(null)),n instanceof Error&&!(n.message in Se)&&(Se[n.message]=!0,oe(s),p("Failed %s type: %s",t,n.message),oe(null))}}}var Ve=Array.isArray;function fe(e){return Ve(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Re(e){if(Je(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Oe=P.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Te,Pe;function Xe(e){if(Q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){typeof e.ref=="string"&&Oe.current}function rr(e,r){{var t=function(){Te||(Te=!0,p("%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 tr(e,r){{var t=function(){Pe||(Pe=!0,p("%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 ar=function(e,r,t,a,s,c,o){var n={$$typeof:f,type:e,key:r,ref:t,props:o,_owner:c};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function nr(e,r,t,a,s){{var c,o={},n=null,E=null;t!==void 0&&(Re(t),n=""+t),Qe(r)&&(Re(r.key),n=""+r.key),Xe(r)&&(E=r.ref,er(r,s));for(c in r)Q.call(r,c)&&!Ze.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)o[c]===void 0&&(o[c]=y[c])}if(n||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&rr(o,h),E&&tr(o,h)}return ar(e,n,E,s,a,Oe.current,o)}}var pe=P.ReactCurrentOwner,De=P.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);De.setExtraStackFrame(t)}else De.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ne(){{if(pe.current){var e=k(pe.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Fe={};function _r(e){{var r=Ne();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
|
|
26
|
+
Check the top-level render call using <`+t+">.")}return r}}function $e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(Fe[t])return;Fe[t]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+k(e._owner.type)+"."),V(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),V(null)}}function Ie(e,r){{if(typeof e!="object")return;if(fe(e))for(var t=0;t<e.length;t++){var a=e[t];ye(a)&&$e(a,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var s=M(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),o;!(o=c.next()).done;)ye(o.value)&&$e(o.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===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var a=k(r);qe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var s=k(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("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 a=r[t];if(a!=="children"&&a!=="key"){V(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Me={};function Ae(e,r,t,a,s,c){{var o=L(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" 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 E=or();E?n+=E:n+=Ne();var y;e===null?y="null":fe(e)?y="array":e!==void 0&&e.$$typeof===f?(y="<"+(k(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,n)}var h=nr(e,r,t,s,c);if(h==null)return h;if(o){var N=r.children;if(N!==void 0)if(a)if(fe(N)){for(var H=0;H<N.length;H++)Ie(N[H],e);Object.freeze&&Object.freeze(N)}else p("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 Ie(N,e)}if(Q.call(r,"key")){var Y=k(e),C=Object.keys(r).filter(function(pr){return pr!=="key"}),ge=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[Y+ge]){var fr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";p(`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} />`,
|
|
31
|
+
<%s key={someKey} {...props} />`,ge,Y,fr,Y),Me[Y+ge]=!0}}return e===u?sr(h):ir(h),h}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var dr=cr,ur=lr;yr.Fragment=u,yr.jsx=dr,yr.jsxs=ur}()),yr}process.env.NODE_ENV==="production"?Rr.exports=Gr():Rr.exports=Yr();var x=Rr.exports;function qr({name:i,value:f,title:m,style:u,className:v}){let j={field:"progress"};return u&&(j.style=u),v&&(j.className=v),x.jsxs("dl",{...j,children:[m&&x.jsx("dt",{children:m}),x.jsx("dd",{})]})}let _e={};_e.KeyDown=i=>{i.key==="Enter"&&i.preventDefault()},_e.PasteOne=i=>{i.preventDefault(),navigator.clipboard.readText().then(f=>{f=f.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,f)}).catch(f=>{})},_e.Paste=(i,f)=>{f.preventDefault(),navigator.clipboard.readText().then(m=>{if(i){let u=f.target.textContent.length;if(u>=i)return;i-=u,m=m.slice(0,i)}window.document.execCommand("insertText",!1,m.replace(/(\r\n|\n|\r)/gm," "))}).catch(m=>{})},_e.Focus=i=>{i.target.textContent.length===0&&(i.target.innerHTML="<br>")},_e.Blur=i=>{i.target.scrollLeft=0,i.target.querySelector("br")!==null&&i.target.querySelector("br").remove()},_e.ContentEditable="plaintext-only";var Or={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
|
|
39
|
+
*/var Mr;function Vr(){if(Mr)return gr;Mr=1;var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,v=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(S,l,d){var _,g={},b=null,T=null;d!==void 0&&(b=""+d),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(T=l.ref);for(_ in l)u.call(l,_)&&!j.hasOwnProperty(_)&&(g[_]=l[_]);if(S&&S.defaultProps)for(_ in l=S.defaultProps,l)g[_]===void 0&&(g[_]=l[_]);return{$$typeof:f,type:S,key:b,ref:T,props:g,_owner:v.current}}return gr.Fragment=m,gr.jsx=O,gr.jsxs=O,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
|
|
48
|
-
`+
|
|
49
|
-
`),
|
|
50
|
-
`),y=
|
|
51
|
-
`+
|
|
47
|
+
*/var Ar;function Hr(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,W="@@iterator";function M(e){if(e===null||typeof e!="object")return null;var r=A&&e[A]||e[W];return typeof r=="function"?r:null}var P=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=P.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var q=!1,K=!1,$=!1,G=!1,D=!1,w;w=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||D||e===v||e===d||e===_||G||e===T||q||K||$||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===O||e.$$typeof===S||e.$$typeof===l||e.$$typeof===w||e.getModuleId!==void 0))}function I(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function R(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 u:return"Fragment";case m:return"Portal";case j:return"Profiler";case v:return"StrictMode";case d:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return R(r)+".Consumer";case O:var t=e;return R(t._context)+".Provider";case l:return I(e,e.render,"ForwardRef");case g:var a=e.displayName||null;return a!==null?a:k(e.type)||"Memo";case b:{var s=e,c=s._payload,o=s._init;try{return k(o(c))}catch{return null}}}return null}var F=Object.assign,U=0,re,ie,le,ve,he,ke,xe;function we(){}we.__reactDisabledLog=!0;function We(){{if(U===0){re=console.log,ie=console.info,le=console.warn,ve=console.error,he=console.group,ke=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})}U++}}function Ue(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:re}),info:F({},e,{value:ie}),warn:F({},e,{value:le}),error:F({},e,{value:ve}),group:F({},e,{value:he}),groupCollapsed:F({},e,{value:ke}),groupEnd:F({},e,{value:xe})})}U<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=P.ReactCurrentDispatcher,de;function te(e,r,t){{if(de===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
|
|
48
|
+
`+de+e}}var ue=!1,ae;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ae=new Ke}function je(e,r){if(!e||ue)return"";{var t=ae.get(e);if(t!==void 0)return t}var a;ue=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ce.current,ce.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){a=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){a=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var n=C.stack.split(`
|
|
49
|
+
`),E=a.stack.split(`
|
|
50
|
+
`),y=n.length-1,h=E.length-1;y>=1&&h>=0&&n[y]!==E[h];)h--;for(;y>=1&&h>=0;y--,h--)if(n[y]!==E[h]){if(y!==1||h!==1)do if(y--,h--,h<0||n[y]!==E[h]){var N=`
|
|
51
|
+
`+n[y].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,N),N}while(y>=1&&h>=0);break}}}finally{ue=!1,ce.current=c,Ue(),Error.prepareStackTrace=s}var H=e?e.displayName||e.name:"",Y=H?te(H):"";return typeof e=="function"&&ae.set(e,Y),Y}function Ge(e,r,t){return je(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ne(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,Ye(e));if(typeof e=="string")return te(e);switch(e){case d:return te("Suspense");case _:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ge(e.render);case g:return ne(e.type,r,t);case b:{var a=e,s=a._payload,c=a._init;try{return ne(c(s),r,t)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=P.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function qe(e,r,t,a,s){{var c=Function.call.bind(Q);for(var o in e)if(c(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var E=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){n=y}n&&!(n instanceof Error)&&(oe(s),p("%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).",a||"React class",t,o,typeof n),oe(null)),n instanceof Error&&!(n.message in Se)&&(Se[n.message]=!0,oe(s),p("Failed %s type: %s",t,n.message),oe(null))}}}var Ve=Array.isArray;function fe(e){return Ve(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Re(e){if(Je(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Oe=P.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Te,Pe;function Xe(e){if(Q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){typeof e.ref=="string"&&Oe.current}function rr(e,r){{var t=function(){Te||(Te=!0,p("%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 tr(e,r){{var t=function(){Pe||(Pe=!0,p("%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 ar=function(e,r,t,a,s,c,o){var n={$$typeof:f,type:e,key:r,ref:t,props:o,_owner:c};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function nr(e,r,t,a,s){{var c,o={},n=null,E=null;t!==void 0&&(Re(t),n=""+t),Qe(r)&&(Re(r.key),n=""+r.key),Xe(r)&&(E=r.ref,er(r));for(c in r)Q.call(r,c)&&!Ze.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)o[c]===void 0&&(o[c]=y[c])}if(n||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&rr(o,h),E&&tr(o,h)}return ar(e,n,E,s,a,Oe.current,o)}}var pe=P.ReactCurrentOwner,De=P.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);De.setExtraStackFrame(t)}else De.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ne(){{if(pe.current){var e=k(pe.current.type);if(e)return`
|
|
52
52
|
|
|
53
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Fe={};function _r(e){{var r=Ne();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
|
|
55
|
+
Check the top-level render call using <`+t+">.")}return r}}function $e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(Fe[t])return;Fe[t]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+k(e._owner.type)+"."),V(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),V(null)}}function Ie(e,r){{if(typeof e!="object")return;if(fe(e))for(var t=0;t<e.length;t++){var a=e[t];ye(a)&&$e(a,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var s=M(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),o;!(o=c.next()).done;)ye(o.value)&&$e(o.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===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var a=k(r);qe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var s=k(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("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 a=r[t];if(a!=="children"&&a!=="key"){V(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Me={};function Ae(e,r,t,a,s,c){{var o=L(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" 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 E=or();E?n+=E:n+=Ne();var y;e===null?y="null":fe(e)?y="array":e!==void 0&&e.$$typeof===f?(y="<"+(k(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,n)}var h=nr(e,r,t,s,c);if(h==null)return h;if(o){var N=r.children;if(N!==void 0)if(a)if(fe(N)){for(var H=0;H<N.length;H++)Ie(N[H],e);Object.freeze&&Object.freeze(N)}else p("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 Ie(N,e)}if(Q.call(r,"key")){var Y=k(e),C=Object.keys(r).filter(function(pr){return pr!=="key"}),ge=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[Y+ge]){var fr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";p(`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} />`,
|
|
60
|
+
<%s key={someKey} {...props} />`,ge,Y,fr,Y),Me[Y+ge]=!0}}return e===u?sr(h):ir(h),h}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var dr=cr,ur=lr;xr.Fragment=u,xr.jsx=dr,xr.jsxs=ur}()),xr}process.env.NODE_ENV==="production"?Or.exports=Vr():Or.exports=Hr();var ee=Or.exports;const Jr="_notice_13j98_2",Zr="_error_13j98_11",Xr="_success_13j98_14",Qr="_remark_13j98_17",et="_copy_13j98_20",Br={notice:Jr,error:Zr,success:Xr,remark:Qr,copy:et,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Be={};function vr({data:i}){let[f,m]=z.useState("show");z.useEffect(()=>{i.hide&&(setTimeout(function(){m("hide")},1800),setTimeout(function(){Be.del(i.key)},2500))},[i.key]);let u,v;switch(i.type){case"error":u=ee.jsx(ze.error,{}),v="Ошибка:";break;case"success":u=ee.jsx(ze.success,{}),v="Информация:";break;case"copy":u=ee.jsx(ze.success,{}),v="Копирование:";break;case"remark":u=ee.jsx(ze.success,{}),v="Подсказка:";break;default:u=ee.jsx(ze.success,{}),v="Предупреждение:";break}return ee.jsxs("li",{className:Br[i.type],"data-status":f,children:[u,ee.jsx("b",{children:v}),ee.jsx("p",{children:i.text})]})}function rt({data:i}){let[f,m]=z.useState("show");return z.useEffect(()=>{i.hide&&(setTimeout(function(){m("hide")},1800),setTimeout(function(){Be.del(i.key)},2500))},[i.key]),ee.jsx("li",{className:"item","data-status":f,children:i.text})}const ze={};ze.error=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.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"}),ee.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"})]}),ze.success=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.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"}),ee.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 hr;(i=>{function f(){let[l,d]=z.useState([]);return Be.set=_=>{d([...l,_])},Be.del=_=>{d(l.filter(g=>g.key!==_))},l.length===0?"":ee.jsx("ul",{className:Br.notice,children:l.map(_=>_.item)})}i.Init=f;function m(l,d=!0){let _=Date.now(),g={key:_,text:l,hide:d,type:"error"};Be.set({item:ee.jsx(vr,{data:g},_),key:_})}i.Error=m;function u(l,d=!0){let _=Date.now(),g={key:_,text:l,hide:d,type:"success"};Be.set({item:ee.jsx(vr,{data:g},_),key:_})}i.Success=u;function v(l,d=!0){let _=Date.now(),g={key:_,hide:d,text:l};Be.set({item:ee.jsx(rt,{data:g},_),key:_})}i.Custom=v;function j(l){let d=Date.now(),_={key:d,hide:!0,...l};Be.set({item:ee.jsx(vr,{data:_},d),key:d})}i.Send=j;function O(l,d=!0){let _=Date.now(),g={key:_,text:l,hide:d,type:"remark"};Be.set({item:ee.jsx(vr,{data:g},_),key:_})}i.Remark=O;function S(l,d=!0){let _=Date.now(),g={key:_,text:l,hide:d,type:"copy"};Be.set({item:ee.jsx(vr,{data:g},_),key:_})}i.Copy=S})(hr||(hr={}));const X={l:"_l_1ho5f_13",f:"_f_1ho5f_20",n:"_n_1ho5f_40",w:"_w_1ho5f_53",t:"_t_1ho5f_63"};function tt({id:i,value:f,onValue:m,name:u,placeholder:v="",title:j="",error:O="",hide:S=!1,edit:l=!0,active:d=!0,after:_="",before:g="",show:b=!0,maxLength:T,onSave:A,className:W="",isCopy:M=!0,isReload:P=!1}){let p=!!(S&&(f===""||f===void 0)),B=D=>{m&&m({value:D.target.textContent.trim(),name:u,reload:P})},q=D=>{T&&D.target.textContent.trim().length>=T&&D.key!=="Backspace"&&D.preventDefault(),D.key==="Enter"&&D.preventDefault()},K=D=>{D.preventDefault(),navigator.clipboard.readText().then(w=>{if(T){let L=D.target.textContent.length;if(L>=T)return;T-=L,w=w.slice(0,T)}window.document.execCommand("insertText",!1,w.replace(/(\r\n|\n|\r)/gm," "))}).catch(w=>{})};if(!(l&&d)&&!b||!(l&&d)&&p)return"";const $={};v&&($.placeholder=v),l&&d&&($.edit="");const G=D=>{_e.Blur(D),A==null||A({value:D.target.textContent.trim(),name:u})};return x.jsxs("dl",{"data-field":"input",className:[X.l,W].filter(D=>D!==void 0).join(" "),children:[j?x.jsx("dt",{className:X.t,children:j}):"",g,x.jsx("dd",{className:[X.f,X.w].join(" "),onPaste:K,onInput:B,onBlur:G,onKeyDown:q,spellCheck:"true",contentEditable:l&&d?_e.ContentEditable:"false",suppressContentEditableWarning:!0,...$,children:f}),_,O?x.jsx("em",{children:O}):""]})}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
|
|
68
|
+
*/var Lr;function at(){if(Lr)return br;Lr=1;var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,v=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(S,l,d){var _,g={},b=null,T=null;d!==void 0&&(b=""+d),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(T=l.ref);for(_ in l)u.call(l,_)&&!j.hasOwnProperty(_)&&(g[_]=l[_]);if(S&&S.defaultProps)for(_ in l=S.defaultProps,l)g[_]===void 0&&(g[_]=l[_]);return{$$typeof:f,type:S,key:b,ref:T,props:g,_owner:v.current}}return br.Fragment=m,br.jsx=O,br.jsxs=O,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
|
|
77
|
-
`+
|
|
78
|
-
`),
|
|
79
|
-
`),y=
|
|
80
|
-
`+
|
|
76
|
+
*/var zr;function nt(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&function(){var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,W="@@iterator";function M(e){if(e===null||typeof e!="object")return null;var r=A&&e[A]||e[W];return typeof r=="function"?r:null}var P=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=P.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var q=!1,K=!1,$=!1,G=!1,D=!1,w;w=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||D||e===v||e===d||e===_||G||e===T||q||K||$||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===O||e.$$typeof===S||e.$$typeof===l||e.$$typeof===w||e.getModuleId!==void 0))}function I(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function R(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 u:return"Fragment";case m:return"Portal";case j:return"Profiler";case v:return"StrictMode";case d:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return R(r)+".Consumer";case O:var t=e;return R(t._context)+".Provider";case l:return I(e,e.render,"ForwardRef");case g:var a=e.displayName||null;return a!==null?a:k(e.type)||"Memo";case b:{var s=e,c=s._payload,o=s._init;try{return k(o(c))}catch{return null}}}return null}var F=Object.assign,U=0,re,ie,le,ve,he,ke,xe;function we(){}we.__reactDisabledLog=!0;function We(){{if(U===0){re=console.log,ie=console.info,le=console.warn,ve=console.error,he=console.group,ke=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})}U++}}function Ue(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:re}),info:F({},e,{value:ie}),warn:F({},e,{value:le}),error:F({},e,{value:ve}),group:F({},e,{value:he}),groupCollapsed:F({},e,{value:ke}),groupEnd:F({},e,{value:xe})})}U<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=P.ReactCurrentDispatcher,de;function te(e,r,t){{if(de===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
|
|
77
|
+
`+de+e}}var ue=!1,ae;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ae=new Ke}function je(e,r){if(!e||ue)return"";{var t=ae.get(e);if(t!==void 0)return t}var a;ue=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ce.current,ce.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){a=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){a=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var n=C.stack.split(`
|
|
78
|
+
`),E=a.stack.split(`
|
|
79
|
+
`),y=n.length-1,h=E.length-1;y>=1&&h>=0&&n[y]!==E[h];)h--;for(;y>=1&&h>=0;y--,h--)if(n[y]!==E[h]){if(y!==1||h!==1)do if(y--,h--,h<0||n[y]!==E[h]){var N=`
|
|
80
|
+
`+n[y].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,N),N}while(y>=1&&h>=0);break}}}finally{ue=!1,ce.current=c,Ue(),Error.prepareStackTrace=s}var H=e?e.displayName||e.name:"",Y=H?te(H):"";return typeof e=="function"&&ae.set(e,Y),Y}function Ge(e,r,t){return je(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ne(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,Ye(e));if(typeof e=="string")return te(e);switch(e){case d:return te("Suspense");case _:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ge(e.render);case g:return ne(e.type,r,t);case b:{var a=e,s=a._payload,c=a._init;try{return ne(c(s),r,t)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=P.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function qe(e,r,t,a,s){{var c=Function.call.bind(Q);for(var o in e)if(c(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var E=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){n=y}n&&!(n instanceof Error)&&(oe(s),p("%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).",a||"React class",t,o,typeof n),oe(null)),n instanceof Error&&!(n.message in Se)&&(Se[n.message]=!0,oe(s),p("Failed %s type: %s",t,n.message),oe(null))}}}var Ve=Array.isArray;function fe(e){return Ve(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Re(e){if(Je(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Oe=P.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Te,Pe;function Xe(e){if(Q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){typeof e.ref=="string"&&Oe.current}function rr(e,r){{var t=function(){Te||(Te=!0,p("%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 tr(e,r){{var t=function(){Pe||(Pe=!0,p("%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 ar=function(e,r,t,a,s,c,o){var n={$$typeof:f,type:e,key:r,ref:t,props:o,_owner:c};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function nr(e,r,t,a,s){{var c,o={},n=null,E=null;t!==void 0&&(Re(t),n=""+t),Qe(r)&&(Re(r.key),n=""+r.key),Xe(r)&&(E=r.ref,er(r));for(c in r)Q.call(r,c)&&!Ze.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)o[c]===void 0&&(o[c]=y[c])}if(n||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&rr(o,h),E&&tr(o,h)}return ar(e,n,E,s,a,Oe.current,o)}}var pe=P.ReactCurrentOwner,De=P.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);De.setExtraStackFrame(t)}else De.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ne(){{if(pe.current){var e=k(pe.current.type);if(e)return`
|
|
81
81
|
|
|
82
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
82
|
+
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Fe={};function _r(e){{var r=Ne();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
|
|
84
|
+
Check the top-level render call using <`+t+">.")}return r}}function $e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(Fe[t])return;Fe[t]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+k(e._owner.type)+"."),V(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),V(null)}}function Ie(e,r){{if(typeof e!="object")return;if(fe(e))for(var t=0;t<e.length;t++){var a=e[t];ye(a)&&$e(a,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var s=M(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),o;!(o=c.next()).done;)ye(o.value)&&$e(o.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===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var a=k(r);qe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var s=k(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("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 a=r[t];if(a!=="children"&&a!=="key"){V(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Me={};function Ae(e,r,t,a,s,c){{var o=L(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" 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 E=or();E?n+=E:n+=Ne();var y;e===null?y="null":fe(e)?y="array":e!==void 0&&e.$$typeof===f?(y="<"+(k(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,n)}var h=nr(e,r,t,s,c);if(h==null)return h;if(o){var N=r.children;if(N!==void 0)if(a)if(fe(N)){for(var H=0;H<N.length;H++)Ie(N[H],e);Object.freeze&&Object.freeze(N)}else p("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 Ie(N,e)}if(Q.call(r,"key")){var Y=k(e),C=Object.keys(r).filter(function(pr){return pr!=="key"}),ge=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[Y+ge]){var fr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";p(`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} />`,
|
|
89
|
+
<%s key={someKey} {...props} />`,ge,Y,fr,Y),Me[Y+ge]=!0}}return e===u?sr(h):ir(h),h}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var dr=cr,ur=lr;wr.Fragment=u,wr.jsx=dr,wr.jsxs=ur}()),wr}process.env.NODE_ENV==="production"?Tr.exports=at():Tr.exports=nt();var J=Tr.exports;const ot="_shake_txgsc_1",_t="_modal_txgsc_79",it="_w_txgsc_15",st="_o_txgsc_116",lt="_h_txgsc_141",ct="_l_txgsc_155",dt="_t_txgsc_192",ut="_x_txgsc_196",ft="_s_txgsc_89",pt="_c_txgsc_214",mt="_f_txgsc_219",yt="_row_txgsc_241",gt="_col_txgsc_253",vt="_g_txgsc_258",ht="_m_txgsc_79",se={shake:ot,modal:_t,"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:dt,x:ut,s:ft,c:pt,f:mt,row:yt,col:gt,g:vt,m:ht};function bt({children:i}){return J.jsx("div",{className:se.l,children:J.jsx("ul",{children:i})})}function kt({children:i}){return J.jsx("div",{className:se.s,children:i})}function xt({children:i,viev:f="row",className:m}){let u={};return m&&(u.className=m),J.jsx("ul",{className:[se.f,se[f],u.className].join(" "),children:i})}function wt({children:i}){return J.jsx("div",{className:se.c,children:i})}function jt({children:i}){return J.jsx("div",{className:se.g,children:i})}var Pr={exports:{}},kr={};/**
|
|
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
|
|
97
|
+
*/var Wr;function St(){if(Wr)return kr;Wr=1;var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,v=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(S,l,d){var _,g={},b=null,T=null;d!==void 0&&(b=""+d),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(T=l.ref);for(_ in l)u.call(l,_)&&!j.hasOwnProperty(_)&&(g[_]=l[_]);if(S&&S.defaultProps)for(_ in l=S.defaultProps,l)g[_]===void 0&&(g[_]=l[_]);return{$$typeof:f,type:S,key:b,ref:T,props:g,_owner:v.current}}return kr.Fragment=m,kr.jsx=O,kr.jsxs=O,kr}var jr={};/**
|
|
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
|
|
106
|
-
`+
|
|
107
|
-
`),
|
|
108
|
-
`),y=
|
|
109
|
-
`+
|
|
105
|
+
*/var Ur;function Et(){return Ur||(Ur=1,process.env.NODE_ENV!=="production"&&function(){var i=z,f=Symbol.for("react.element"),m=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,W="@@iterator";function M(e){if(e===null||typeof e!="object")return null;var r=A&&e[A]||e[W];return typeof r=="function"?r:null}var P=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=P.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var q=!1,K=!1,$=!1,G=!1,D=!1,w;w=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||D||e===v||e===d||e===_||G||e===T||q||K||$||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===O||e.$$typeof===S||e.$$typeof===l||e.$$typeof===w||e.getModuleId!==void 0))}function I(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function R(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&p("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 u:return"Fragment";case m:return"Portal";case j:return"Profiler";case v:return"StrictMode";case d:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return R(r)+".Consumer";case O:var t=e;return R(t._context)+".Provider";case l:return I(e,e.render,"ForwardRef");case g:var a=e.displayName||null;return a!==null?a:k(e.type)||"Memo";case b:{var s=e,c=s._payload,o=s._init;try{return k(o(c))}catch{return null}}}return null}var F=Object.assign,U=0,re,ie,le,ve,he,ke,xe;function we(){}we.__reactDisabledLog=!0;function We(){{if(U===0){re=console.log,ie=console.info,le=console.warn,ve=console.error,he=console.group,ke=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})}U++}}function Ue(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:re}),info:F({},e,{value:ie}),warn:F({},e,{value:le}),error:F({},e,{value:ve}),group:F({},e,{value:he}),groupCollapsed:F({},e,{value:ke}),groupEnd:F({},e,{value:xe})})}U<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=P.ReactCurrentDispatcher,de;function te(e,r,t){{if(de===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
|
|
106
|
+
`+de+e}}var ue=!1,ae;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ae=new Ke}function je(e,r){if(!e||ue)return"";{var t=ae.get(e);if(t!==void 0)return t}var a;ue=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ce.current,ce.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){a=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){a=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var n=C.stack.split(`
|
|
107
|
+
`),E=a.stack.split(`
|
|
108
|
+
`),y=n.length-1,h=E.length-1;y>=1&&h>=0&&n[y]!==E[h];)h--;for(;y>=1&&h>=0;y--,h--)if(n[y]!==E[h]){if(y!==1||h!==1)do if(y--,h--,h<0||n[y]!==E[h]){var N=`
|
|
109
|
+
`+n[y].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,N),N}while(y>=1&&h>=0);break}}}finally{ue=!1,ce.current=c,Ue(),Error.prepareStackTrace=s}var H=e?e.displayName||e.name:"",Y=H?te(H):"";return typeof e=="function"&&ae.set(e,Y),Y}function Ge(e,r,t){return je(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ne(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,Ye(e));if(typeof e=="string")return te(e);switch(e){case d:return te("Suspense");case _:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ge(e.render);case g:return ne(e.type,r,t);case b:{var a=e,s=a._payload,c=a._init;try{return ne(c(s),r,t)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=P.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function qe(e,r,t,a,s){{var c=Function.call.bind(Q);for(var o in e)if(c(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var E=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){n=y}n&&!(n instanceof Error)&&(oe(s),p("%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).",a||"React class",t,o,typeof n),oe(null)),n instanceof Error&&!(n.message in Se)&&(Se[n.message]=!0,oe(s),p("Failed %s type: %s",t,n.message),oe(null))}}}var Ve=Array.isArray;function fe(e){return Ve(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Re(e){if(Je(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Oe=P.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Te,Pe;function Xe(e){if(Q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){typeof e.ref=="string"&&Oe.current}function rr(e,r){{var t=function(){Te||(Te=!0,p("%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 tr(e,r){{var t=function(){Pe||(Pe=!0,p("%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 ar=function(e,r,t,a,s,c,o){var n={$$typeof:f,type:e,key:r,ref:t,props:o,_owner:c};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function nr(e,r,t,a,s){{var c,o={},n=null,E=null;t!==void 0&&(Re(t),n=""+t),Qe(r)&&(Re(r.key),n=""+r.key),Xe(r)&&(E=r.ref,er(r));for(c in r)Q.call(r,c)&&!Ze.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var y=e.defaultProps;for(c in y)o[c]===void 0&&(o[c]=y[c])}if(n||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&rr(o,h),E&&tr(o,h)}return ar(e,n,E,s,a,Oe.current,o)}}var pe=P.ReactCurrentOwner,De=P.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=ne(e.type,e._source,r?r.type:null);De.setExtraStackFrame(t)}else De.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ne(){{if(pe.current){var e=k(pe.current.type);if(e)return`
|
|
110
110
|
|
|
111
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
111
|
+
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Fe={};function _r(e){{var r=Ne();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
|
|
113
|
+
Check the top-level render call using <`+t+">.")}return r}}function $e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(Fe[t])return;Fe[t]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+k(e._owner.type)+"."),V(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),V(null)}}function Ie(e,r){{if(typeof e!="object")return;if(fe(e))for(var t=0;t<e.length;t++){var a=e[t];ye(a)&&$e(a,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var s=M(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),o;!(o=c.next()).done;)ye(o.value)&&$e(o.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===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var a=k(r);qe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var s=k(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("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 a=r[t];if(a!=="children"&&a!=="key"){V(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Me={};function Ae(e,r,t,a,s,c){{var o=L(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" 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 E=or();E?n+=E:n+=Ne();var y;e===null?y="null":fe(e)?y="array":e!==void 0&&e.$$typeof===f?(y="<"+(k(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,n)}var h=nr(e,r,t,s,c);if(h==null)return h;if(o){var N=r.children;if(N!==void 0)if(a)if(fe(N)){for(var H=0;H<N.length;H++)Ie(N[H],e);Object.freeze&&Object.freeze(N)}else p("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 Ie(N,e)}if(Q.call(r,"key")){var Y=k(e),C=Object.keys(r).filter(function(pr){return pr!=="key"}),ge=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[Y+ge]){var fr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";p(`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,W,dr,W),Ie[W+pe]=!0}}return e===f?lr(g):sr(g),g}}function cr(e,r,t){return Ae(e,r,t,!0)}function ur(e,r,t){return Ae(e,r,t,!1)}var fr=ur,pr=cr;kr.Fragment=f,kr.jsx=fr,kr.jsxs=pr}()),kr}process.env.NODE_ENV==="production"?Tr.exports=jt():Tr.exports=Et();var Pr=Tr.exports;const St="_btn_1k1b3_1",Ot="_confirm_1k1b3_15",Ct="_cancel_1k1b3_20",Rt="_action_1k1b3_25",Tt="_disabled_1k1b3_30",Pt="_m_1k1b3_44",Dt="_l_1k1b3_48",jr={btn:St,confirm:Ot,cancel:Ct,action:Rt,disabled:Tt,await:"_await_1k1b3_37",m:Pt,l:Dt},$t=({onClick:l,onSend:p,size:m="m",view:f="confirm",children:h,isDisabled:k=!1,className:O,after:x,before:u,label:d,onRef:i,awaitText:_="Ожидайте"})=>{let[b,S]=N.useState(!1);const R=L=>{if(l)return l();b||(p?(S(!0),p(S)):L.preventDefault())};let A={};return(k||b)&&(A.disabled=!0),Pr.jsx("button",{...A,ref:i,className:[jr.btn,b?jr.disabled:jr[f],m&&jr[m],O].filter(L=>L!="").join(" "),onClick:R,children:b?_:Pr.jsxs(Pr.Fragment,{children:[u||""," ",d," ",x||""]})||h})};let Le={};function Ft({children:l}){return Y.jsx(Y.Fragment,{children:l})}var Er;(l=>{function p({import_modules:d}){let[i,_]=N.useState([]);return Le.x=b=>{_(b?i.filter(S=>S.key!==b):[])},N.useEffect(()=>{d&&(Le.i=d)},[]),Le.add=(b,S=Date.now())=>{_([...i,{key:S,item:b}])},Y.jsx(Y.Fragment,{children:i.map(b=>b.item)})}l.Init=p;function m(d){return d&&(Le.i=d),Le.i}l.Import=m,l.List=ht,l.Scroll=bt,l.Form=xt,l.Center=wt,l.Column=kt;function f(d,i,_){Le.i(`${d}/modal/${i}.tsx`).then(b=>{b.default.Open(_)})}l.Open=f;function h({type:d,name:i,params:_}){let[b,S]=N.useState(null);return N.useEffect(()=>{Le.i(`${d}/modal/${i}.tsx`).then(R=>{S(R.default.Icon(_))})},[_.id]),Y.jsx(Y.Fragment,{children:b})}l.Icon=h;function k(d,i){Le.add(Y.jsx(Ft,{children:d},String(Date.now())),i)}l.Add=k;function O(d){Le.x(d)}l.Close=O;function x(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=x;function u({title:d,children:i,button:_,tabs:b,size:S="m",className:R="",shake:A=!0,menu:L}){const[D,v]=N.useState(!0),I=N.useRef(),K=F=>{if(_){if(_.onClick)return F(!1),_.onClick({setOpen:v});if(_.onSend)return _.onSend({setOpen:v,disabled:F})}},q=()=>{if(!A)return v(!1);I.current.setAttribute("shake",!0),setTimeout(()=>{I.current.setAttribute("shake",!1)},1e3)};return D?Y.jsxs("div",{className:`${oe.modal}`,children:[Y.jsx("div",{className:oe.o,onClick:q}),Y.jsxs("div",{className:[oe.w,oe[`s${S}`],R].filter(F=>F!="").join(" "),ref:I,children:[Y.jsxs("div",{className:oe.h,children:[Y.jsx("div",{className:oe.t,children:d}),Y.jsxs("div",{className:oe.m,children:[b&&Y.jsx("nav",{children:b.map((F,V)=>Y.jsx("span",{onClick:F.onClick,className:F.active?"active":"",children:F.name},V))}),L]}),Y.jsx("div",{className:oe.x,onClick:()=>{v(!1)},children:Y.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:Y.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i,_!==void 0?Y.jsx($t,{label:_.label,onSend:K,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:h=",",title:k,error:O,hide:x=!1,edit:u=!0,active:d=!0,outFormat:i="object",after:_="",modal:b,options:S,className:R}){const[A,L]=N.useState(Nt(l,h)),D=K=>{if(!(u&&d)||!b)return;let q=b.split(".");Er.Open(q[0],q[1],{callback:F=>{if(p)switch(i){case"array":p({value:Object.keys(F),name:m});break;case"string":p({value:Object.keys(F).filter(V=>F[V]).join(h),name:m});break;default:p({value:F,name:m})}L(Object.fromEntries(Object.entries(F).filter(([V,T])=>T!==!1)))},onValue:p,options:S,name:m,value:A})},v={};v.field="group",R&&(v.className=R);const I={};return f&&(I.placeholder=f),x?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":_,children:Object.keys(A).map(K=>{var q;return E.jsx("div",{className:"field_group_item",children:(q=S[K])==null?void 0:q.label},K)})}),O&&E.jsx("em",{children:O})]})}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:h,value:k=0,onValue:O,options:x,placeholder:u="",className:d,isIcon:i=!0,name:_,after:b,view:S,order:R,isReload:A=!1}){var te,ne;const L=N.useRef(null),[D,v]=N.useState(k),[I,K]=N.useState(x),[q,F]=N.useState(!1);N.useEffect(()=>{v(k),K(x)},[k,x]),h=!!(h&&(k===0||((te=I==null?void 0:I[k])==null?void 0:te.n)===void 0))&&!(m&&f);let T=P=>{v(P),O&&O({value:P,name:_,reload:A})},$={onClick:P=>{Object.keys(I||{}).length!==0&&m&&f&&(L.position=P.target.getBoundingClientRect(),F(!0))}};return u&&($.placeholder=u),b&&($.after=b),m&&f&&($.edit=""),h?"":E.jsxs(E.Fragment,{children:[E.jsxs("dl",{"data-field":"select",className:[We.l,d].filter(P=>P!==void 0).join(" "),children:[l&&E.jsx("dt",{className:We.t,children:l}),E.jsx("dd",{...$,className:[We.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&&Br.createPortal(E.jsx(zt,{parent:L.position,onValue:T,view:S,className:d,options:I,order:R,setOpen:F},new Date().getTime()),document.body)]})}const zt=({onValue:l,parent:p,className:m,options:f,order:h,setOpen:k})=>{let O=()=>{k(!1)},x=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:O},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(Wt,{order:h,options:f,link:x})})]})},Wt=({order:l,options:p,link:m})=>l?E.jsx("ul",{children:l.map((f,h)=>p[f].s!==0?E.jsx("li",{onClick:()=>{m(f)},children:p[f].n},h):"")}):E.jsx("ul",{children:Object.keys(p).map((f,h)=>p[f].s!==0?E.jsx("li",{onClick:()=>{m(f)},children:p[f].n},h):"")});function Lt({value:l,onValue:p,name:m,placeholder:f="",title:h,error:k,hide:O=!1,edit:x=!0,show:u=!0,active:d=!0,after:i="",view:_,modal:b,module:S,options:R,className:A}){let[L,D]=N.useState(l),v=q=>{if(!(x&&d)||!b)return;let F=b.split(".");Er.Open(F[0],F[1],{callback:V=>{p&&p({value:V,name:m}),D(V)},onValue:p,options:R,name:m,value:l})};const I={};I.field="input",A&&(I.className=A);const K={};return f&&(K.placeholder=f),O?E.jsx(E.Fragment,{}):E.jsxs("dl",{...I,children:[h&&E.jsx("dt",{children:h}),E.jsx("dd",{...K,onClick:v,edit:(x&&d)+"","data-after":i,children:L}),k&&E.jsx("em",{children:k})]})}function Mt({value:l,onValue:p,onSave:m,name:f,placeholder:h="",className:k,title:O,error:x,edit:u=!0,active:d=!0,reload:i=!1,native:_=!1,isShow:b=!1,maxLength:S,eyes:R=[],after:A=""}){const[L,D]=N.useState(b);let v=T=>{p&&p({value:T.target.textContent,name:f,reload:i})},I=T=>{T.key==="Enter"&&T.preventDefault()},K=T=>{T.preventDefault(),navigator.clipboard.readText().then(M=>{if(S){let $=T.target.textContent.length;if($>=S)return;S-=$,M=M.slice(0,S)}window.document.execCommand("insertText",!1,M.replace(/(\r\n|\n|\r)/gm," "))}).catch(M=>{})},q=T=>{de.Blur(T),m==null||m({value:T.target.textContent.trim(),name:f})};const F={};F.field="password",L&&(F.show=""),k&&(F.className=k);const V={};return h&&(V.placeholder=h),_?"":E.jsxs("dl",{...F,children:[O?E.jsx("dt",{children:O}):"",E.jsx("dd",{onPaste:K,onInput:v,onKeyDown:I,onBlur:q,contentEditable:u&&d?de.ContentEditable:"false",...V,suppressContentEditableWarning:!0,children:l}),R[0]&&E.jsx("i",{onClick:()=>D(!L),children:L?R[1]:R[0]}),A,x?E.jsx("em",{children:x}):""]})}function Ut({onValue:l,onSave:p,active:m,max:f,edit:h,title:k,error:O,show:x,hide:u,value:d,placeholder:i,className:_,maxLength:b,name:S,after:R="",before:A="",view:L}){h=h!==void 0?h:!0,m=m!==void 0?m:!0,u=!!(u&&(d===""||d===void 0))&&!(h&&m),i=i!==void 0?i:"",f=f!==void 0?f:99;let v=!1,I=$=>{l==null||l({value:$.target.textContent,name:S})},K=$=>{if(!(v&&$.which===86)){if($.which===17||$.which===91)return v=!0;$.key!=="Backspace"&&($.target.textContent.length===f&&$.preventDefault(),$.key==="Enter"&&$.preventDefault(),isNaN($.key)&&$.preventDefault())}},q=$=>{if($.which===17||$.which===91)return v=!1},F=$=>{$.preventDefault(),navigator.clipboard.readText().then(te=>{if(te=te.replace(/(?!^\+|\d)./g,""),b){let ne=$.target.textContent.length;if(ne>=b)return;b-=ne,te=te.slice(0,b)}window.document.execCommand("insertText",!1,""+te)}).catch(te=>{})};const V=$=>{de.Blur($),p==null||p({value:$.target.textContent,name:S})},T={};T.field="input",_&&(T.className=_);let M={};return h&&m?(M.edit="true",M.contentEditable=de.ContentEditable):M.contentEditable="false",M.inputMode="decimal",i&&(M.placeholder=i),u?E.jsx(E.Fragment,{}):E.jsxs("dl",{...T,children:[k&&E.jsx("dt",{children:k}),A,E.jsx("dd",{...M,onPaste:F,onInput:I,onBlur:V,onKeyDown:K,onKeyUp:q,suppressContentEditableWarning:!0,children:d}),R,O&&E.jsx("em",{children:O})]})}const Bt={s:"_s_l1314_1"},Yt=({className:l,timeout:p=1e3,placeholder:m,value:f,onValue:h,maxLength:k=20})=>{let O=0,x=N.useRef({textContent:f}),u=()=>{x.current.textContent.trim().length===0&&(x.current.textContent=""),clearTimeout(O),O=setTimeout(()=>{var R;return h((R=x.current)==null?void 0:R.textContent)},p)},d=()=>{x.current&&(x.current.textContent=""),h("")},i=R=>{k&&R.target.textContent.trim().length>=k&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},_=R=>{R.preventDefault(),navigator.clipboard.readText().then(A=>{if(k){let L=R.target.textContent.length;if(L>=k)return;k-=L,A=A.slice(0,k)}window.document.execCommand("insertText",!1,A.replace(/(\r\n|\n|\r)/gm," "))}).catch(A=>{})},b=()=>{x.current.textContent=x.current.textContent.trim()};const S={};return m&&(S.placeholder=m),E.jsxs("dl",{"data-field":"search",className:[We.l,Bt.s,l].filter(R=>R!==void 0).join(" "),children:[E.jsx("svg",{"aria-label":"icon",viewBox:"0 0 24 24",children:E.jsx("path",{d:"M17.5 17.5L22 22m-2-11a9 9 0 1 0-18 0a9 9 0 0 0 18 0"})}),E.jsx("dd",{className:We.f,ref:x,onPaste:_,onInput:u,onKeyDown:i,onBlur:b,contentEditable:de.ContentEditable,...S,suppressContentEditableWarning:!0,children:f}),E.jsx("svg",{"action-type":"delete",onClick:d,viewBox:"0 0 24 24",children:E.jsx("path",{d:"M17 6L6 17M6 6L17 17"})})]})},ye={};function Kt(l){const[p,m]=N.useState({}),f=N.useRef(l);return ye.u=h=>{f.current={...f.current,[h.name]:h.value}},ye.n=h=>{f.current=h,m(Date.now())},ye.r=()=>{m(Date.now())},[f.current,ye.n]}function qt(l){ye.u(l),l.reload&&ye.r()}function Vt(){ye.r&&ye.r()}function Jt(l){const[p,m]=N.useState({}),f=N.useRef(l);return ye.u=h=>{f.current={...f.current,[h.name]:h.value}},ye.n=h=>{Object.keys(h).length>0?Object.keys(h).forEach(k=>{f.current[k]=h[k]}):f.current={},m(Date.now())},ye.r=()=>{m(Date.now())},[f.current,ye.n]}G.Modal=Lt,G.Number=Ut,G.Options=It,G.Password=Mt,G.Progress=qr,G.Search=Yt,G.Select=At,G.String=rt,G.runReload=Vt,G.setValue=qt,G.useData=Kt,G.useError=Jt,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
118
|
+
<%s key={someKey} {...props} />`,ge,Y,fr,Y),Me[Y+ge]=!0}}return e===u?sr(h):ir(h),h}}function lr(e,r,t){return Ae(e,r,t,!0)}function cr(e,r,t){return Ae(e,r,t,!1)}var dr=cr,ur=lr;jr.Fragment=u,jr.jsx=dr,jr.jsxs=ur}()),jr}process.env.NODE_ENV==="production"?Pr.exports=St():Pr.exports=Et();var Dr=Pr.exports;const Ct="_btn_1k1b3_1",Rt="_confirm_1k1b3_15",Ot="_cancel_1k1b3_20",Tt="_action_1k1b3_25",Pt="_disabled_1k1b3_30",Dt="_m_1k1b3_44",Nt="_l_1k1b3_48",Sr={btn:Ct,confirm:Rt,cancel:Ot,action:Tt,disabled:Pt,await:"_await_1k1b3_37",m:Dt,l:Nt},Ft=({onClick:i,onSend:f,size:m="m",view:u="confirm",children:v,isDisabled:j=!1,className:O,after:S,before:l,label:d,onRef:_,awaitText:g="Ожидайте"})=>{let[b,T]=z.useState(!1);const A=M=>{if(i)return i();b||(f?(T(!0),f(T)):M.preventDefault())};let W={};return(j||b)&&(W.disabled=!0),Dr.jsx("button",{...W,ref:_,className:[Sr.btn,b?Sr.disabled:Sr[u],m&&Sr[m],O].filter(M=>M!="").join(" "),onClick:A,children:b?g:Dr.jsxs(Dr.Fragment,{children:[l||""," ",d," ",S||""]})||v})};let Le={};function $t({children:i}){return J.jsx(J.Fragment,{children:i})}var Er;(i=>{function f({import_modules:d}){let[_,g]=z.useState([]);return Le.x=b=>{g(b?_.filter(T=>T.key!==b):[])},z.useEffect(()=>{d&&(Le.i=d)},[]),Le.add=(b,T=Date.now())=>{g([..._,{key:T,item:b}])},J.jsx(J.Fragment,{children:_.map(b=>b.item)})}i.Init=f;function m(d){return d&&(Le.i=d),Le.i}i.Import=m,i.List=bt,i.Scroll=kt,i.Form=xt,i.Center=wt,i.Column=jt;function u(d,_,g){Le.i(`${d}/modal/${_}.tsx`).then(b=>{b.default.Open(g)})}i.Open=u;function v({type:d,name:_,params:g}){let[b,T]=z.useState(null);return z.useEffect(()=>{Le.i(`${d}/modal/${_}.tsx`).then(A=>{T(A.default.Icon(g))})},[g.id]),J.jsx(J.Fragment,{children:b})}i.Icon=v;function j(d,_){Le.add(J.jsx($t,{children:d},String(Date.now())),_)}i.Add=j;function O(d){Le.x(d)}i.Close=O;function S(d){if(d.target.classList[0]!=="modal")return;let _=d.target.children[0];_.setAttribute("shake",!0),setTimeout(()=>{_.setAttribute("shake",!1)},1e3)}i.Shake=S;function l({title:d,children:_,button:g,tabs:b,size:T="m",className:A="",shake:W=!0,menu:M}){const[P,p]=z.useState(!0),B=z.useRef(),q=$=>{if(g){if(g.onClick)return $(!1),g.onClick({setOpen:p});if(g.onSend)return g.onSend({setOpen:p,disabled:$})}},K=()=>{if(!W)return p(!1);B.current.setAttribute("shake",!0),setTimeout(()=>{B.current.setAttribute("shake",!1)},1e3)};return P?J.jsxs("div",{className:`${se.modal}`,children:[J.jsx("div",{className:se.o,onClick:K}),J.jsxs("div",{className:[se.w,se[`s${T}`],A].filter($=>$!="").join(" "),ref:B,children:[J.jsxs("div",{className:se.h,children:[J.jsx("div",{className:se.t,children:d}),J.jsxs("div",{className:se.m,children:[b&&J.jsx("nav",{children:b.map(($,G)=>J.jsx("span",{onClick:$.onClick,className:$.active?"active":"",children:$.name},G))}),M]}),J.jsx("div",{className:se.x,onClick:()=>{p(!1)},children:J.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:J.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),_,g!==void 0?J.jsx(Ft,{label:g.label,onSend:q,className:se.btn}):""]})]}):""}i.Main=l})(Er||(Er={}));const It=(i,f=",")=>(i=i!==void 0&&i!==""?i.split(f):[],i.filter(m=>m!=="").reduce((m,u)=>(m[u]=!0,m),{}));function Mt({value:i,onValue:f,name:m,placeholder:u="",separator:v=",",title:j,error:O,hide:S=!1,edit:l=!0,active:d=!0,outFormat:_="object",after:g="",modal:b,options:T,className:A}){const[W,M]=z.useState(It(i,v)),P=q=>{if(!(l&&d)||!b)return;let K=b.split(".");Er.Open(K[0],K[1],{callback:$=>{if(f)switch(_){case"array":f({value:Object.keys($),name:m});break;case"string":f({value:Object.keys($).filter(G=>$[G]).join(v),name:m});break;default:f({value:$,name:m})}M(Object.fromEntries(Object.entries($).filter(([G,D])=>D!==!1)))},onValue:f,options:T,name:m,value:W})},p={};p.field="group",A&&(p.className=A);const B={};return u&&(B.placeholder=u),S?x.jsx(x.Fragment,{}):x.jsxs("dl",{...p,children:[x.jsxs("dt",{children:[j,x.jsx("i",{onClick:P,children:x.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:x.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),x.jsx("dd",{...B,onClick:P,edit:(l&&d)+"","data-after":g,children:Object.keys(W).map(q=>{var K;return x.jsx("div",{className:"field_group_item",children:(K=T[q])==null?void 0:K.label},q)})}),O&&x.jsx("em",{children:O})]})}const Cr={o:"_o_1xyj1_12",l:"_l_1xyj1_22",i:"_i_1xyj1_71",f:"_f_1xyj1_80"};function At({title:i,error:f,edit:m=!0,active:u=!0,hide:v,value:j=0,onValue:O,options:S,placeholder:l="",className:d,isIcon:_=!0,name:g,after:b,view:T,order:A,isReload:W=!1}){var I,R;const M=z.useRef(null),[P,p]=z.useState(j),[B,q]=z.useState(S),[K,$]=z.useState(!1);z.useEffect(()=>{p(j),q(S)},[j,S]),v=!!(v&&(j===0||((I=B==null?void 0:B[j])==null?void 0:I.n)===void 0))&&!(m&&u);let D=k=>{p(k),O&&O({value:k,name:g,reload:W})},L={onClick:k=>{Object.keys(B||{}).length!==0&&m&&u&&(M.position=k.target.getBoundingClientRect(),$(!0))}};return l&&(L.placeholder=l),b&&(L.after=b),m&&u&&(L.edit=""),v?"":x.jsxs(x.Fragment,{children:[x.jsxs("dl",{"data-field":"select",className:[X.l,d].filter(k=>k!==void 0).join(" "),children:[i&&x.jsx("dt",{className:X.t,children:i}),x.jsx("dd",{...L,className:[X.f,Cr.f].join(" "),ref:M,children:(R=B==null?void 0:B[P])==null?void 0:R.n}),Object.keys(B||{}).length!==0&&_&&x.jsx("svg",{className:Cr.i,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})}),f&&x.jsx("em",{children:f})]}),K&&Kr.createPortal(x.jsx(Bt,{parent:M.position,onValue:D,view:T,className:d,options:B,order:A,setOpen:$},new Date().getTime()),document.body)]})}const Bt=({onValue:i,parent:f,className:m,options:u,order:v,setOpen:j})=>{let O=()=>{j(!1)},S=_=>{j(!1),i(_)},l=window.innerHeight-f.y+f.height<320?f.y-312:f.y+33,d=window.innerWidth-f.x<265?f.x-235:f.x;return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:Cr.o,onClick:O},new Date().getTime()),x.jsx("div",{className:[Cr.l,m].filter(_=>_!==void 0).join(" "),style:{top:l+"px",left:d+"px",width:f.width},children:x.jsx(Lt,{order:v,options:u,link:S})})]})},Lt=({order:i,options:f,link:m})=>i?x.jsx("ul",{children:i.map((u,v)=>f[u].s!==0?x.jsx("li",{onClick:()=>{m(u)},children:f[u].n},v):"")}):x.jsx("ul",{children:Object.keys(f).map((u,v)=>f[u].s!==0?x.jsx("li",{onClick:()=>{m(u)},children:f[u].n},v):"")});function zt({value:i,onValue:f,name:m,placeholder:u="",title:v,error:j,hide:O=!1,edit:S=!0,show:l=!0,active:d=!0,after:_="",view:g,modal:b,module:T,options:A,className:W}){let[M,P]=z.useState(i),p=K=>{if(!(S&&d)||!b)return;let $=b.split(".");Er.Open($[0],$[1],{callback:G=>{f&&f({value:G,name:m}),P(G)},onValue:f,options:A,name:m,value:i})};const B={};B.field="input",W&&(B.className=W);const q={};return u&&(q.placeholder=u),O?x.jsx(x.Fragment,{}):x.jsxs("dl",{...B,children:[v&&x.jsx("dt",{children:v}),x.jsx("dd",{...q,onClick:p,edit:(S&&d)+"","data-after":_,children:M}),j&&x.jsx("em",{children:j})]})}function Wt({value:i,onValue:f,onSave:m,name:u,placeholder:v="",className:j,title:O,error:S,edit:l=!0,active:d=!0,reload:_=!1,native:g=!1,isShow:b=!1,maxLength:T,eyes:A=[],after:W=""}){const[M,P]=z.useState(b);let p=D=>{f&&f({value:D.target.textContent,name:u,reload:_})},B=D=>{D.key==="Enter"&&D.preventDefault()},q=D=>{D.preventDefault(),navigator.clipboard.readText().then(w=>{if(T){let L=D.target.textContent.length;if(L>=T)return;T-=L,w=w.slice(0,T)}window.document.execCommand("insertText",!1,w.replace(/(\r\n|\n|\r)/gm," "))}).catch(w=>{})},K=D=>{_e.Blur(D),m==null||m({value:D.target.textContent.trim(),name:u})};const $={};$.field="password",M&&($.show=""),j&&($.className=j);const G={};return v&&(G.placeholder=v),g?"":x.jsxs("dl",{...$,children:[O?x.jsx("dt",{children:O}):"",x.jsx("dd",{onPaste:q,onInput:p,onKeyDown:B,onBlur:K,contentEditable:l&&d?_e.ContentEditable:"false",...G,suppressContentEditableWarning:!0,children:i}),A[0]&&x.jsx("i",{onClick:()=>P(!M),children:M?A[1]:A[0]}),W,S?x.jsx("em",{children:S}):""]})}function Ut({onValue:i,onSave:f,active:m,max:u,edit:v,title:j,error:O,show:S,hide:l,value:d,placeholder:_,className:g,maxLength:b,name:T,after:A="",before:W="",view:M}){v=v!==void 0?v:!0,m=m!==void 0?m:!0,l=!!(l&&(d===""||d===void 0))&&!(v&&m),_=_!==void 0?_:"",u=u!==void 0?u:99;let p=!1,B=w=>{i==null||i({value:w.target.textContent,name:T})},q=w=>{if(!(p&&w.which===86)){if(w.which===17||w.which===91)return p=!0;w.key!=="Backspace"&&(w.target.textContent.length===u&&w.preventDefault(),w.key==="Enter"&&w.preventDefault(),isNaN(w.key)&&w.preventDefault())}},K=w=>{if(w.which===17||w.which===91)return p=!1},$=w=>{w.preventDefault(),navigator.clipboard.readText().then(L=>{if(L=L.replace(/(?!^\+|\d)./g,""),b){let I=w.target.textContent.length;if(I>=b)return;b-=I,L=L.slice(0,b)}window.document.execCommand("insertText",!1,""+L)}).catch(L=>{})};const G=w=>{_e.Blur(w),f==null||f({value:w.target.textContent,name:T})};let D={};return v&&m?(D.edit="true",D.contentEditable=_e.ContentEditable):D.contentEditable="false",D.inputMode="decimal",_&&(D.placeholder=_),l?x.jsx(x.Fragment,{}):x.jsxs("dl",{"data-field":"input",className:[X.l,g].filter(w=>w!==void 0).join(" "),children:[j?x.jsx("dt",{className:X.t,children:j}):"",W,x.jsx("dd",{className:[X.f,X.w].join(" "),onPaste:$,onInput:B,onBlur:G,onKeyDown:q,onKeyUp:K,suppressContentEditableWarning:!0,...D,children:d}),A,O&&x.jsx("em",{children:O})]})}function Kt({value:i="",onValue:f,onSave:m,name:u,format:v="+_(___) ___-__-__",placeholder:j="",title:O="",error:S="",hide:l=!1,edit:d=!0,active:_=!0,after:g="",show:b=!0,view:T,className:A=""}){d=d!==void 0?d:!0,_=_!==void 0?_:!0,l=!!(l&&(i===""||i===void 0))&&!(d&&_),z.useRef(null);let M=v,P=!0,p=0,B=(R,k)=>{let F=document.createRange(),U=window.getSelection();F.setStart(k.childNodes[0],R),F.collapse(!0),U.removeAllRanges(),U.addRange(F),k.focus()},q=R=>{R.preventDefault(),navigator.clipboard.readText().then(k=>{window.document.execCommand("insertText",!1,k)}).catch(k=>{})},K=R=>{let k=0,F="",U=R.replace(/\D/g,"");U===""&&(P=!0);let re=U.split(""),ie="";re.forEach(he=>{P&&(ie+=he,P&&(p=(""+ie).length,M=v.replace(new RegExp("[0-9]","g"),"_"),F=""),p>(""+ie).length&&(P=!0,M=v.replace(new RegExp("[0-9]","g"),"_"),F=""))});let le=M.replace(/\D/g,"");return le.length>=U.length&&(U=le),{q:M.replace(/[_\d]/g,function(){return U.charAt(k++)||"_"}),i:k,v:U,f:F}},$=R=>{R.preventDefault(),navigator.clipboard.writeText(R.target.textContent.replace(/\D/g,"")).then(function(){hr.Copy("Данные в буфер обмене")},function(k){})},G=K(i),D=R=>{let k=K(R.target.textContent);R.target.textContent=k.q,k.i=k.q.lastIndexOf(k.v.substr(-1)),k.i<k.q.length&&k.q!==M?k.i++:k.i=k.q.indexOf("_"),B(k.i,R.target),f&&f({value:k.q.replace(/\D/g,""),name:u})},w=R=>{R.key==="Enter"&&R.preventDefault()};const L=R=>{_e.Blur(R),m&&m({value:R.target.textContent.replace(/\D/g,""),name:u})};let I={};return d&&_?(I.edit="true",I.contentEditable=_e.ContentEditable):I.contentEditable="false",j&&(I.placeholder=j),g&&(I.after=g),l?x.jsx(x.Fragment,{}):x.jsxs("dl",{"data-field":"input",className:[X.l,A].filter(R=>R!==void 0).join(" "),children:[O?x.jsx("dt",{className:X.t,children:O}):"",x.jsx("dd",{className:[X.f,X.w].join(" "),onPaste:q,onInput:D,onKeyDown:w,onContextMenu:$,onBlur:L,suppressContentEditableWarning:!0,...I,children:G.q}),S&&x.jsx("em",{children:S})]})}function Gt({id:i,value:f,onValue:m,name:u,placeholder:v="",title:j="",error:O="",hide:S=!1,edit:l=!0,active:d=!0,after:_="",show:g=!0,maxLength:b,view:T,onSave:A,className:W="",isCopy:M=!0}){let[P,p]=z.useState(!1);P=l?!0:P;let B=w=>{m==null||m({value:w.target.innerText,name:u})},q=w=>{b&&w.target.textContent.trim().length>=b&&w.key!=="Backspace"&&w.preventDefault(),w.key==="Enter"&&w.preventDefault()},K=w=>{M&&(w.preventDefault(),navigator.clipboard.writeText(w.target.textContent.trim()).then(function(){hr.Copy("Данные в буфер обмене")},function(L){}))},$=w=>{w.preventDefault(),navigator.clipboard.readText().then(L=>{if(b){let I=w.target.textContent.length;if(I>=b)return;b-=I,L=L.slice(0,b)}window.document.execCommand("insertText",!1,L.replace(/(\r\n|\n|\r)/gm," "))}).catch(L=>{})};if(S)return x.jsx(x.Fragment,{});if(!(l&&d)&&!g)return"";const G={};v&&(G.placeholder=v),l&&d&&(G.edit=""),P&&(G.open="");const D=w=>{_e.Blur(w),A==null||A({value:w.target.textContent.trim(),name:u})};return x.jsxs("dl",{"data-field":"note",className:[X.l,W].filter(w=>w!==void 0).join(" "),children:[j?x.jsx("dt",{className:X.t,children:j}):"",x.jsx("dd",{className:[X.f,X.n].join(" "),onPaste:$,onInput:B,onBlur:D,onKeyDown:q,onContextMenu:K,contentEditable:l&&d?_e.ContentEditable:"false",suppressContentEditableWarning:!0,...G,children:f}),_,O?x.jsx("em",{children:O}):""]})}const Nr={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function Yt({value:i,onValue:f,onSave:m,name:u,placeholder:v="",title:j="",error:O="",hide:S=!1,edit:l=!0,active:d=!0,after:_="",show:g=!0,view:b,className:T=""}){l=l!==void 0?l:!0,d=d!==void 0?d:!0,S=!!(S&&(i===""||i===void 0))&&!(l&&d),z.useRef(null);let W="+_(___) ___-__-__",M=!0,P=0,p=(I,R)=>{let k=document.createRange(),F=window.getSelection();k.setStart(R.childNodes[0],I),k.collapse(!0),F.removeAllRanges(),F.addRange(k),R.focus()},B=I=>{let R=K(I.target.textContent);I.target.textContent=R.q,R.i=R.q.lastIndexOf(R.v.substr(-1)),R.i<R.q.length&&R.q!==W?R.i++:R.i=R.q.indexOf("_"),p(R.i,I.target),f&&f({value:R.q.replace(/\D/g,""),name:u})},q=I=>{I.preventDefault(),navigator.clipboard.readText().then(R=>{window.document.execCommand("insertText",!1,R)}).catch(R=>{})},K=I=>{let R=0,k="",F=I.replace(/\D/g,"");F===""&&(M=!0);let U=F.split(""),re="";U.forEach(ve=>{M&&(re+=ve,Nr[re]!==void 0&&M?(M=!1,W=Nr[re].mask.replace(new RegExp("[0-9]","g"),"_"),k=Nr[re].code):(M&&(P=(""+re).length,W=`+${re}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),k=""),P>(""+re).length&&(M=!0,W=`+${re}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),k="")))});let ie=W.replace(/\D/g,"");return ie.length>=F.length&&(F=ie),{q:W.replace(/[_\d]/g,function(){return F.charAt(R++)||"_"}),i:R,v:F,f:k}},$=I=>{I.preventDefault(),navigator.clipboard.writeText(I.target.textContent.replace(/\D/g,"")).then(function(){hr.Copy("Данные в буфер обмене")},function(R){})},G=K(i),D=I=>{I.key==="Enter"&&I.preventDefault()};const w=I=>{_e.Blur(I),m&&m({value:I.target.textContent.replace(/\D/g,""),name:u})};let L={};return l&&d?(L.edit="true",L.contentEditable=_e.ContentEditable):L.contentEditable="false",v&&(L.placeholder=v),_&&(L.after=_),S?x.jsx(x.Fragment,{}):x.jsxs("dl",{"data-field":"input",className:[X.l,T].filter(I=>I!==void 0).join(" "),children:[j?x.jsx("dt",{className:X.t,children:j}):"",x.jsx("dd",{className:[X.f,X.w].join(" "),onPaste:q,onInput:B,onKeyDown:D,onContextMenu:$,onBlur:w,suppressContentEditableWarning:!0,...L,children:G.q}),O&&x.jsx("em",{children:O})]})}const be={};function qt(i){const[f,m]=z.useState({}),u=z.useRef(i);return be.u=v=>{u.current={...u.current,[v.name]:v.value}},be.n=v=>{u.current=v,m(Date.now())},be.r=()=>{m(Date.now())},[u.current,be.n]}function Vt(i){be.u(i),i.reload&&be.r()}function Ht(){be.r&&be.r()}function Jt(i){const[f,m]=z.useState({}),u=z.useRef(i);return be.u=v=>{u.current={...u.current,[v.name]:v.value}},be.n=v=>{Object.keys(v).length>0?Object.keys(v).forEach(j=>{u.current[j]=v[j]}):u.current={},m(Date.now())},be.r=()=>{m(Date.now())},[u.current,be.n]}Z.Mask=Kt,Z.Modal=zt,Z.Note=Gt,Z.Number=Ut,Z.Options=Mt,Z.Password=Wt,Z.Phone=Yt,Z.Progress=qr,Z.Select=At,Z.String=tt,Z.runReload=Ht,Z.setValue=Vt,Z.useData=qt,Z.useError=Jt,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|