@elcrm/form 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +466 -466
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
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 At;function Jt(){return At||(At=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function
|
|
18
|
+
*/var At;function Jt(){return At||(At=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[W];return typeof t=="function"?t:null}var E=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];L("error",e,r)}}function L(e,t,r){{var n=E.ReactDebugCurrentFrame,f=n.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var y=r.map(function(_){return String(_)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var K=!1,Y=!1,I=!1,U=!1,N=!1,S;S=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||N||e===b||e===p||e===o||U||e===D||K||Y||I||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===O||e.$$typeof===C||e.$$typeof===l||e.$$typeof===S||e.getModuleId!==void 0))}function w(e,t,r){var n=e.displayName;if(n)return n;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function T(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 d:return"Portal";case j:return"Profiler";case b:return"StrictMode";case p:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var t=e;return T(t)+".Consumer";case O:var r=e;return T(r._context)+".Provider";case l:return w(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:m(e.type)||"Memo";case v:{var f=e,y=f._payload,_=f._init;try{return m(_(y))}catch{return null}}}return null}var R=Object.assign,G=0,X,_e,le,ve,he,xe,ke;function we(){}we.__reactDisabledLog=!0;function We(){{if(G===0){X=console.log,_e=console.info,le=console.warn,ve=console.error,he=console.group,xe=console.groupCollapsed,ke=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})}G++}}function Ue(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:X}),info:R({},e,{value:_e}),warn:R({},e,{value:le}),error:R({},e,{value:ve}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:xe}),groupEnd:R({},e,{value:ke})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,de;function ae(e,t,r){{if(de===void 0)try{throw Error()}catch(f){var n=f.stack.trim().match(/\n( *(at )?)/);de=n&&n[1]||""}return`
|
|
19
19
|
`+de+e}}var ue=!1,ne;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ne=new Ke}function je(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var n;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ce.current,ce.current=null,We();try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(F){n=F}Reflect.construct(e,[],_)}else{try{_.call()}catch(F){n=F}e.call(_.prototype)}}else{try{throw Error()}catch(F){n=F}e()}}catch(F){if(F&&n&&typeof F.stack=="string"){for(var i=F.stack.split(`
|
|
20
20
|
`),P=n.stack.split(`
|
|
21
21
|
`),x=i.length-1,k=P.length-1;x>=1&&k>=0&&i[x]!==P[k];)k--;for(;x>=1&&k>=0;x--,k--)if(i[x]!==P[k]){if(x!==1||k!==1)do if(x--,k--,k<0||i[x]!==P[k]){var B=`
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Fe={};function it(e){{var t=Ne();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f
|
|
26
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var y=f.call(e),_;!(_=y.next()).done;)ye(_.value)&&Me(_.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===h))r=t.propTypes;else return;if(r){var n=m(t);qe(r,e.props,"prop",n,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=m(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function st(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if(n!=="children"&&n!=="key"){J(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),J(null);break}}e.ref!==null&&(J(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var Ie={};function Ae(e,t,r,n,f,y){{var _=z(e);if(!_){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 P=ot();P?i+=P:i+=Ne();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(m(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,i)}var k=nt(e,t,r,f,y);if(k==null)return k;if(_){var B=t.children;if(B!==void 0)if(n)if(fe(B)){for(var Z=0;Z<B.length;Z++)$e(B[Z],e);Object.freeze&&Object.freeze(B)}else g("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 $e(B,e)}if(ee.call(t,"key")){var H=m(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ge=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[H+ge]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";g(`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:
|
|
@@ -44,7 +44,7 @@ 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 Lt;function Xt(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function
|
|
47
|
+
*/var Lt;function Xt(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[W];return typeof t=="function"?t:null}var E=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];L("error",e,r)}}function L(e,t,r){{var n=E.ReactDebugCurrentFrame,f=n.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var y=r.map(function(_){return String(_)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var K=!1,Y=!1,I=!1,U=!1,N=!1,S;S=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||N||e===b||e===p||e===o||U||e===D||K||Y||I||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===O||e.$$typeof===C||e.$$typeof===l||e.$$typeof===S||e.getModuleId!==void 0))}function w(e,t,r){var n=e.displayName;if(n)return n;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function T(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 d:return"Portal";case j:return"Profiler";case b:return"StrictMode";case p:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var t=e;return T(t)+".Consumer";case O:var r=e;return T(r._context)+".Provider";case l:return w(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:m(e.type)||"Memo";case v:{var f=e,y=f._payload,_=f._init;try{return m(_(y))}catch{return null}}}return null}var R=Object.assign,G=0,X,_e,le,ve,he,xe,ke;function we(){}we.__reactDisabledLog=!0;function We(){{if(G===0){X=console.log,_e=console.info,le=console.warn,ve=console.error,he=console.group,xe=console.groupCollapsed,ke=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})}G++}}function Ue(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:X}),info:R({},e,{value:_e}),warn:R({},e,{value:le}),error:R({},e,{value:ve}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:xe}),groupEnd:R({},e,{value:ke})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,de;function ae(e,t,r){{if(de===void 0)try{throw Error()}catch(f){var n=f.stack.trim().match(/\n( *(at )?)/);de=n&&n[1]||""}return`
|
|
48
48
|
`+de+e}}var ue=!1,ne;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ne=new Ke}function je(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var n;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ce.current,ce.current=null,We();try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(F){n=F}Reflect.construct(e,[],_)}else{try{_.call()}catch(F){n=F}e.call(_.prototype)}}else{try{throw Error()}catch(F){n=F}e()}}catch(F){if(F&&n&&typeof F.stack=="string"){for(var i=F.stack.split(`
|
|
49
49
|
`),P=n.stack.split(`
|
|
50
50
|
`),x=i.length-1,k=P.length-1;x>=1&&k>=0&&i[x]!==P[k];)k--;for(;x>=1&&k>=0;x--,k--)if(i[x]!==P[k]){if(x!==1||k!==1)do if(x--,k--,k<0||i[x]!==P[k]){var B=`
|
|
@@ -52,12 +52,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Fe={};function it(e){{var t=Ne();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f
|
|
55
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var y=f.call(e),_;!(_=y.next()).done;)ye(_.value)&&Me(_.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===h))r=t.propTypes;else return;if(r){var n=m(t);qe(r,e.props,"prop",n,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=m(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function st(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if(n!=="children"&&n!=="key"){J(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),J(null);break}}e.ref!==null&&(J(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var Ie={};function Ae(e,t,r,n,f,y){{var _=z(e);if(!_){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 P=ot();P?i+=P:i+=Ne();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(m(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,i)}var k=nt(e,t,r,f,y);if(k==null)return k;if(_){var B=t.children;if(B!==void 0)if(n)if(fe(B)){for(var Z=0;Z<B.length;Z++)$e(B[Z],e);Object.freeze&&Object.freeze(B)}else g("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 $e(B,e)}if(ee.call(t,"key")){var H=m(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ge=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[H+ge]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";g(`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} />`,ge,H,ft,H),Ie[H+ge]=!0}}return e===u?st(k):_t(k),k}}function lt(e,t,r){return Ae(e,t,r,!0)}function ct(e,t,r){return Ae(e,t,r,!1)}var dt=ct,ut=lt;kt.Fragment=u,kt.jsx=dt,kt.jsxs=ut}()),kt}process.env.NODE_ENV==="production"?Dt.exports=Vt():Dt.exports=Xt();var te=Dt.exports;const Qt="_notice_13j98_2",er="_error_13j98_11",tr="_success_13j98_14",rr="_remark_13j98_17",ar="_copy_13j98_20",zt={notice:Qt,error:er,success:tr,remark:rr,copy:ar,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Be={};function vt({data:a}){let[s,d]=A.useState("show");A.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Be.del(a.key)},2500))},[a.key]);let u,b;switch(a.type){case"error":u=te.jsx(ze.error,{}),b="Ошибка:";break;case"success":u=te.jsx(ze.success,{}),b="Информация:";break;case"copy":u=te.jsx(ze.success,{}),b="Копирование:";break;case"remark":u=te.jsx(ze.success,{}),b="Подсказка:";break;default:u=te.jsx(ze.success,{}),b="Предупреждение:";break}return te.jsxs("li",{className:zt[a.type],"data-status":s,children:[u,te.jsx("b",{children:b}),te.jsx("p",{children:a.text})]})}function nr({data:a}){let[s,d]=A.useState("show");return A.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Be.del(a.key)},2500))},[a.key]),te.jsx("li",{className:"item","data-status":s,children:a.text})}const ze={};ze.error=()=>te.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[te.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"}),te.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=()=>te.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[te.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"}),te.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 ht;(a=>{function s(){let[l,p]=A.useState([]);return Be.set=o=>{p([...l,o])},Be.del=o=>{p(l.filter(h=>h.key!==o))},l.length===0?"":te.jsx("ul",{className:zt.notice,children:l.map(o=>o.item)})}a.Init=s;function d(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"error"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Error=d;function u(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"success"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Success=u;function b(l,p=!0){let o=Date.now(),h={key:o,hide:p,text:l};Be.set({item:te.jsx(nr,{data:h},o),key:o})}a.Custom=b;function j(l){let p=Date.now(),o={key:p,hide:!0,...l};Be.set({item:te.jsx(vt,{data:o},p),key:p})}a.Send=j;function O(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"remark"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Remark=O;function C(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"copy"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Copy=C})(ht||(ht={}));const q={l:"_l_1ho5f_13",f:"_f_1ho5f_20",n:"_n_1ho5f_40",w:"_w_1ho5f_53",t:"_t_1ho5f_63"};function or({id:a,value:s,onValue:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",before:h="",show:v=!0,maxLength:D,onSave:M,className:W="",isCopy
|
|
60
|
+
<%s key={someKey} {...props} />`,ge,H,ft,H),Ie[H+ge]=!0}}return e===u?st(k):_t(k),k}}function lt(e,t,r){return Ae(e,t,r,!0)}function ct(e,t,r){return Ae(e,t,r,!1)}var dt=ct,ut=lt;kt.Fragment=u,kt.jsx=dt,kt.jsxs=ut}()),kt}process.env.NODE_ENV==="production"?Dt.exports=Vt():Dt.exports=Xt();var te=Dt.exports;const Qt="_notice_13j98_2",er="_error_13j98_11",tr="_success_13j98_14",rr="_remark_13j98_17",ar="_copy_13j98_20",zt={notice:Qt,error:er,success:tr,remark:rr,copy:ar,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Be={};function vt({data:a}){let[s,d]=A.useState("show");A.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Be.del(a.key)},2500))},[a.key]);let u,b;switch(a.type){case"error":u=te.jsx(ze.error,{}),b="Ошибка:";break;case"success":u=te.jsx(ze.success,{}),b="Информация:";break;case"copy":u=te.jsx(ze.success,{}),b="Копирование:";break;case"remark":u=te.jsx(ze.success,{}),b="Подсказка:";break;default:u=te.jsx(ze.success,{}),b="Предупреждение:";break}return te.jsxs("li",{className:zt[a.type],"data-status":s,children:[u,te.jsx("b",{children:b}),te.jsx("p",{children:a.text})]})}function nr({data:a}){let[s,d]=A.useState("show");return A.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Be.del(a.key)},2500))},[a.key]),te.jsx("li",{className:"item","data-status":s,children:a.text})}const ze={};ze.error=()=>te.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[te.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"}),te.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=()=>te.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[te.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"}),te.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 ht;(a=>{function s(){let[l,p]=A.useState([]);return Be.set=o=>{p([...l,o])},Be.del=o=>{p(l.filter(h=>h.key!==o))},l.length===0?"":te.jsx("ul",{className:zt.notice,children:l.map(o=>o.item)})}a.Init=s;function d(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"error"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Error=d;function u(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"success"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Success=u;function b(l,p=!0){let o=Date.now(),h={key:o,hide:p,text:l};Be.set({item:te.jsx(nr,{data:h},o),key:o})}a.Custom=b;function j(l){let p=Date.now(),o={key:p,hide:!0,...l};Be.set({item:te.jsx(vt,{data:o},p),key:p})}a.Send=j;function O(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"remark"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Remark=O;function C(l,p=!0){let o=Date.now(),h={key:o,text:l,hide:p,type:"copy"};Be.set({item:te.jsx(vt,{data:h},o),key:o})}a.Copy=C})(ht||(ht={}));const q={l:"_l_1ho5f_13",f:"_f_1ho5f_20",n:"_n_1ho5f_40",w:"_w_1ho5f_53",t:"_t_1ho5f_63"};function or({id:a,value:s,onValue:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",before:h="",show:v=!0,maxLength:D,onSave:M,className:W="",isCopy:$=!0,isReload:E=!1}){let g=!!(C&&(s===""||s===void 0)),L=N=>{d&&d({value:N.target.textContent.trim(),name:u,reload:E})},K=N=>{D&&N.target.textContent.trim().length>=D&&N.key!=="Backspace"&&N.preventDefault(),N.key==="Enter"&&N.preventDefault()},Y=N=>{N.preventDefault(),navigator.clipboard.readText().then(S=>{if(D){let z=N.target.textContent.length;if(z>=D)return;D-=z,S=S.slice(0,D)}window.document.execCommand("insertText",!1,S.replace(/(\r\n|\n|\r)/gm," "))}).catch(S=>{})};if(!(l&&p)&&!v||!(l&&p)&&g)return"";const I={};b&&(I.placeholder=b),l&&p&&(I.edit="");const U=N=>{re.Blur(N),M==null||M({value:N.target.textContent.trim(),name:u})};return c.jsxs("dl",{"data-field":"input",className:[q.l,W].filter(N=>N!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",h,c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:Y,onInput:L,onBlur:U,onKeyDown:K,spellCheck:"true",contentEditable:l&&p?re.ContentEditable:"false",suppressContentEditableWarning:!0,...I,children:s}),o,O?c.jsx("em",{children:O}):""]})}var Pt={exports:{}},bt={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-jsx-runtime.production.min.js
|
|
63
63
|
*
|
|
@@ -73,7 +73,7 @@ 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 Ut;function _r(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function
|
|
76
|
+
*/var Ut;function _r(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[W];return typeof t=="function"?t:null}var E=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];L("error",e,r)}}function L(e,t,r){{var n=E.ReactDebugCurrentFrame,f=n.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var y=r.map(function(_){return String(_)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var K=!1,Y=!1,I=!1,U=!1,N=!1,S;S=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||N||e===b||e===p||e===o||U||e===D||K||Y||I||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===O||e.$$typeof===C||e.$$typeof===l||e.$$typeof===S||e.getModuleId!==void 0))}function w(e,t,r){var n=e.displayName;if(n)return n;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function T(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 d:return"Portal";case j:return"Profiler";case b:return"StrictMode";case p:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var t=e;return T(t)+".Consumer";case O:var r=e;return T(r._context)+".Provider";case l:return w(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:m(e.type)||"Memo";case v:{var f=e,y=f._payload,_=f._init;try{return m(_(y))}catch{return null}}}return null}var R=Object.assign,G=0,X,_e,le,ve,he,xe,ke;function we(){}we.__reactDisabledLog=!0;function We(){{if(G===0){X=console.log,_e=console.info,le=console.warn,ve=console.error,he=console.group,xe=console.groupCollapsed,ke=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})}G++}}function Ue(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:X}),info:R({},e,{value:_e}),warn:R({},e,{value:le}),error:R({},e,{value:ve}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:xe}),groupEnd:R({},e,{value:ke})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,de;function ae(e,t,r){{if(de===void 0)try{throw Error()}catch(f){var n=f.stack.trim().match(/\n( *(at )?)/);de=n&&n[1]||""}return`
|
|
77
77
|
`+de+e}}var ue=!1,ne;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ne=new Ke}function je(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var n;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ce.current,ce.current=null,We();try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(F){n=F}Reflect.construct(e,[],_)}else{try{_.call()}catch(F){n=F}e.call(_.prototype)}}else{try{throw Error()}catch(F){n=F}e()}}catch(F){if(F&&n&&typeof F.stack=="string"){for(var i=F.stack.split(`
|
|
78
78
|
`),P=n.stack.split(`
|
|
79
79
|
`),x=i.length-1,k=P.length-1;x>=1&&k>=0&&i[x]!==P[k];)k--;for(;x>=1&&k>=0;x--,k--)if(i[x]!==P[k]){if(x!==1||k!==1)do if(x--,k--,k<0||i[x]!==P[k]){var B=`
|
|
@@ -81,7 +81,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
81
81
|
|
|
82
82
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Fe={};function it(e){{var t=Ne();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
83
83
|
|
|
84
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f
|
|
84
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var y=f.call(e),_;!(_=y.next()).done;)ye(_.value)&&Me(_.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===h))r=t.propTypes;else return;if(r){var n=m(t);qe(r,e.props,"prop",n,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=m(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function st(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if(n!=="children"&&n!=="key"){J(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),J(null);break}}e.ref!==null&&(J(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var Ie={};function Ae(e,t,r,n,f,y){{var _=z(e);if(!_){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 P=ot();P?i+=P:i+=Ne();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(m(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,i)}var k=nt(e,t,r,f,y);if(k==null)return k;if(_){var B=t.children;if(B!==void 0)if(n)if(fe(B)){for(var Z=0;Z<B.length;Z++)$e(B[Z],e);Object.freeze&&Object.freeze(B)}else g("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 $e(B,e)}if(ee.call(t,"key")){var H=m(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ge=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[H+ge]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";g(`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:
|
|
@@ -102,7 +102,7 @@ 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 Yt;function Or(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function
|
|
105
|
+
*/var Yt;function Or(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var a=A,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),M=Symbol.iterator,W="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[W];return typeof t=="function"?t:null}var E=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];L("error",e,r)}}function L(e,t,r){{var n=E.ReactDebugCurrentFrame,f=n.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var y=r.map(function(_){return String(_)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var K=!1,Y=!1,I=!1,U=!1,N=!1,S;S=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===j||N||e===b||e===p||e===o||U||e===D||K||Y||I||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===O||e.$$typeof===C||e.$$typeof===l||e.$$typeof===S||e.getModuleId!==void 0))}function w(e,t,r){var n=e.displayName;if(n)return n;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function T(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 d:return"Portal";case j:return"Profiler";case b:return"StrictMode";case p:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var t=e;return T(t)+".Consumer";case O:var r=e;return T(r._context)+".Provider";case l:return w(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:m(e.type)||"Memo";case v:{var f=e,y=f._payload,_=f._init;try{return m(_(y))}catch{return null}}}return null}var R=Object.assign,G=0,X,_e,le,ve,he,xe,ke;function we(){}we.__reactDisabledLog=!0;function We(){{if(G===0){X=console.log,_e=console.info,le=console.warn,ve=console.error,he=console.group,xe=console.groupCollapsed,ke=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})}G++}}function Ue(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:X}),info:R({},e,{value:_e}),warn:R({},e,{value:le}),error:R({},e,{value:ve}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:xe}),groupEnd:R({},e,{value:ke})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,de;function ae(e,t,r){{if(de===void 0)try{throw Error()}catch(f){var n=f.stack.trim().match(/\n( *(at )?)/);de=n&&n[1]||""}return`
|
|
106
106
|
`+de+e}}var ue=!1,ne;{var Ke=typeof WeakMap=="function"?WeakMap:Map;ne=new Ke}function je(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var n;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ce.current,ce.current=null,We();try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(F){n=F}Reflect.construct(e,[],_)}else{try{_.call()}catch(F){n=F}e.call(_.prototype)}}else{try{throw Error()}catch(F){n=F}e()}}catch(F){if(F&&n&&typeof F.stack=="string"){for(var i=F.stack.split(`
|
|
107
107
|
`),P=n.stack.split(`
|
|
108
108
|
`),x=i.length-1,k=P.length-1;x>=1&&k>=0&&i[x]!==P[k];)k--;for(;x>=1&&k>=0;x--,k--)if(i[x]!==P[k]){if(x!==1||k!==1)do if(x--,k--,k<0||i[x]!==P[k]){var B=`
|
|
@@ -110,9 +110,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
110
110
|
|
|
111
111
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Fe={};function it(e){{var t=Ne();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
112
112
|
|
|
113
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f
|
|
113
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Fe[r])return;Fe[r]=!0;var n="";e&&e._owner&&e._owner!==pe.current&&(n=" It was passed a child from "+m(e._owner.type)+"."),J(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),J(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var n=e[r];ye(n)&&Me(n,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var y=f.call(e),_;!(_=y.next()).done;)ye(_.value)&&Me(_.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===h))r=t.propTypes;else return;if(r){var n=m(t);qe(r,e.props,"prop",n,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=m(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function st(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if(n!=="children"&&n!=="key"){J(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),J(null);break}}e.ref!==null&&(J(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var Ie={};function Ae(e,t,r,n,f,y){{var _=z(e);if(!_){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 P=ot();P?i+=P:i+=Ne();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(m(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,i)}var k=nt(e,t,r,f,y);if(k==null)return k;if(_){var B=t.children;if(B!==void 0)if(n)if(fe(B)){for(var Z=0;Z<B.length;Z++)$e(B[Z],e);Object.freeze&&Object.freeze(B)}else g("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 $e(B,e)}if(ee.call(t,"key")){var H=m(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ge=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[H+ge]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";g(`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} />`,ge,H,ft,H),Ie[H+ge]=!0}}return e===u?st(k):_t(k),k}}function lt(e,t,r){return Ae(e,t,r,!0)}function ct(e,t,r){return Ae(e,t,r,!1)}var dt=ct,ut=lt;jt.Fragment=u,jt.jsx=dt,jt.jsxs=ut}()),jt}process.env.NODE_ENV==="production"?Nt.exports=Rr():Nt.exports=Or();var Ft=Nt.exports;const Tr="_btn_1k1b3_1",Dr="_confirm_1k1b3_15",Pr="_cancel_1k1b3_20",Nr="_action_1k1b3_25",Fr="_disabled_1k1b3_30",Mr="_m_1k1b3_44",$r="_l_1k1b3_48",Ct={btn:Tr,confirm:Dr,cancel:Pr,action:Nr,disabled:Fr,await:"_await_1k1b3_37",m:Mr,l:$r},Ir=({onClick:a,onSend:s,size:d="m",view:u="confirm",children:b,isDisabled:j=!1,className:O,after:C,before:l,label:p,onRef:o,awaitText:h="Ожидайте"})=>{let[v,D]=A.useState(!1);const M=I=>{if(a)return a();v||(s?(D(!0),s(D)):I.preventDefault())};let W={};return(j||v)&&(W.disabled=!0),Ft.jsx("button",{...W,ref:o,className:[Ct.btn,v?Ct.disabled:Ct[u],d&&Ct[d],O].filter(I=>I!="").join(" "),onClick:M,children:v?h:Ft.jsxs(Ft.Fragment,{children:[l||""," ",p," ",C||""]})||b})};let Le={};function Ar({children:a}){return Q.jsx(Q.Fragment,{children:a})}var St;(a=>{function s({import_modules:p}){let[o,h]=A.useState([]);return Le.x=v=>{h(v?o.filter(D=>D.key!==v):[])},A.useEffect(()=>{p&&(Le.i=p)},[]),Le.add=(v,D=Date.now())=>{h([...o,{key:D,item:v}])},Q.jsx(Q.Fragment,{children:o.map(v=>v.item)})}a.Init=s;function d(p){return p&&(Le.i=p),Le.i}a.Import=d,a.List=wr,a.Scroll=jr,a.Form=Cr,a.Center=Sr,a.Column=Er;function u(p,o,h){Le.i(`${p}/modal/${o}.tsx`).then(v=>{v.default.Open(h)})}a.Open=u;function b({type:p,name:o,params:h}){let[v,D]=A.useState(null);return A.useEffect(()=>{Le.i(`${p}/modal/${o}.tsx`).then(M=>{D(M.default.Icon(h))})},[h.id]),Q.jsx(Q.Fragment,{children:v})}a.Icon=b;function j(p,o){Le.add(Q.jsx(Ar,{children:p},String(Date.now())),o)}a.Add=j;function O(p){Le.x(p)}a.Close=O;function C(p){if(p.target.classList[0]!=="modal")return;let o=p.target.children[0];o.setAttribute("shake",!0),setTimeout(()=>{o.setAttribute("shake",!1)},1e3)}a.Shake=C;function l({title:p,children:o,button:h,tabs:v,size:D="m",className:M="",shake:W=!0,menu:I}){const[E,g]=A.useState(!0),L=A.useRef(),K=$=>{if(h){if(h.onClick)return $(!1),h.onClick({setOpen:g});if(h.onSend)return h.onSend({setOpen:g,disabled:$})}},Y=()=>{if(!W)return g(!1);L.current.setAttribute("shake",!0),setTimeout(()=>{L.current.setAttribute("shake",!1)},1e3)};return E?Q.jsxs("div",{className:`${se.modal}`,children:[Q.jsx("div",{className:se.o,onClick:Y}),Q.jsxs("div",{className:[se.w,se[`s${D}`],M].filter($=>$!="").join(" "),ref:L,children:[Q.jsxs("div",{className:se.h,children:[Q.jsx("div",{className:se.t,children:p}),Q.jsxs("div",{className:se.m,children:[v&&Q.jsx("nav",{children:v.map(($,U)=>Q.jsx("span",{onClick:$.onClick,className:$.active?"active":"",children:$.name},U))}),I]}),Q.jsx("div",{className:se.x,onClick:()=>{g(!1)},children:Q.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:Q.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),o,h!==void 0?Q.jsx(Ir,{label:h.label,onSend:K,className:se.btn}):""]})]}):""}a.Main=l})(St||(St={}));const Br=(a,s=",")=>(a=a!==void 0&&a!==""?a.split(s):[],a.filter(d=>d!=="").reduce((d,u)=>(d[u]=!0,d),{}));function Lr({value:a,onValue:s,name:d,placeholder:u="",separator:b=",",title:j,error:O,hide:C=!1,edit:l=!0,active:p=!0,outFormat:o="object",after:h="",modal:v,options:D,className:M}){const[W,I]=A.useState(Br(a,b)),E=K=>{if(!(l&&p)||!v)return;let Y=v.split(".");St.Open(Y[0],Y[1],{callback:$=>{if(s)switch(o){case"array":s({value:Object.keys($),name:d});break;case"string":s({value:Object.keys($).filter(U=>$[U]).join(b),name:d});break;default:s({value:$,name:d})}I(Object.fromEntries(Object.entries($).filter(([U,N])=>N!==!1)))},onValue:s,options:D,name:d,value:W})},g={};g.field="group",M&&(g.className=M);const L={};return u&&(L.placeholder=u),C?c.jsx(c.Fragment,{}):c.jsxs("dl",{...g,children:[c.jsxs("dt",{children:[j,c.jsx("i",{onClick:E,children:c.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:c.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),c.jsx("dd",{...L,onClick:E,edit:(l&&p)+"","data-after":h,children:Object.keys(W).map(K=>{var Y;return c.jsx("div",{className:"field_group_item",children:(Y=D[K])==null?void 0:Y.label},K)})}),O&&c.jsx("em",{children:O})]})}const Et={o:"_o_1wehm_12",l:"_l_1wehm_22",i:"_i_1wehm_72",f:"_f_1wehm_81"};function zr({title:a,error:s,edit:d=!0,active:u=!0,hide:b,value:j=0,onValue:O,options:C,placeholder:l="",className:p,isIcon:o=!0,name:h,after:v,view:D,order:M,isReload:W=!1}){var w,T;const I=A.useRef(null),[E,g]=A.useState(j),[L,K]=A.useState(C),[Y,$]=A.useState(!1);A.useEffect(()=>{g(j),K(C)},[j,C]),b=!!(b&&(j===0||((w=L==null?void 0:L[j])==null?void 0:w.n)===void 0))&&!(d&&u);let N=m=>{g(m),O&&O({value:m,name:h,reload:W})},z={onClick:m=>{Object.keys(L||{}).length!==0&&d&&u&&(I.position=m.target.getBoundingClientRect(),$(!0))}};return l&&(z.placeholder=l),v&&(z.after=v),d&&u&&(z.edit=""),b?"":c.jsxs(c.Fragment,{children:[c.jsxs("dl",{"data-field":"select",className:[q.l,p].filter(m=>m!==void 0).join(" "),children:[a&&c.jsx("dt",{className:q.t,children:a}),c.jsx("dd",{...z,className:[q.f,Et.f].join(" "),ref:I,children:(T=L==null?void 0:L[E])==null?void 0:T.n}),Object.keys(L||{}).length!==0&&o&&c.jsx("svg",{className:Et.i,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})}),s&&c.jsx("em",{children:s})]}),Y&&Ot.createPortal(c.jsx(Wr,{parent:I.position,onValue:N,view:D,className:p,options:L,order:M,setOpen:$},new Date().getTime()),document.body)]})}const Wr=({onValue:a,parent:s,className:d,options:u,order:b,setOpen:j})=>{let O=()=>{j(!1)},C=o=>{j(!1),a(o)},l=window.innerHeight-s.y+s.height<320?s.y-312:s.y+33,p=window.innerWidth-s.x<265?s.x-235:s.x;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Et.o,onClick:O},new Date().getTime()),c.jsx("div",{className:[Et.l,d].filter(o=>o!==void 0).join(" "),style:{top:l+"px",left:p+"px",width:s.width},children:c.jsx(Ur,{order:b,options:u,link:C})})]})},Ur=({order:a,options:s,link:d})=>a?c.jsx("ul",{children:a.map((u,b)=>s[u].s!==0?c.jsx("li",{onClick:()=>{d(u)},children:s[u].n},b):"")}):c.jsx("ul",{children:Object.keys(s).map((u,b)=>s[u].s!==0?c.jsx("li",{onClick:()=>{d(u)},children:s[u].n},b):"")});function Kr({value:a,onValue:s,name:d,placeholder:u="",title:b,error:j,hide:O=!1,edit:C=!0,show:l=!0,active:p=!0,after:o="",view:h,modal:v,module:D,options:M,className:W}){let[I,E]=A.useState(a),g=Y=>{if(!(C&&p)||!v)return;let $=v.split(".");St.Open($[0],$[1],{callback:U=>{s&&s({value:U,name:d}),E(U)},onValue:s,options:M,name:d,value:a})};const L={};L.field="input",W&&(L.className=W);const K={};return u&&(K.placeholder=u),O?c.jsx(c.Fragment,{}):c.jsxs("dl",{...L,children:[b&&c.jsx("dt",{children:b}),c.jsx("dd",{...K,onClick:g,edit:(C&&p)+"","data-after":o,children:I}),j&&c.jsx("em",{children:j})]})}function Yr({value:a,onValue:s,onSave:d,name:u,placeholder:b="",className:j,title:O,error:C,edit:l=!0,active:p=!0,reload:o=!1,native:h=!1,isShow:v=!1,maxLength:D,eyes:M=[],after:W=""}){const[I,E]=A.useState(v);let g=N=>{s&&s({value:N.target.textContent,name:u,reload:o})},L=N=>{N.key==="Enter"&&N.preventDefault()},K=N=>{N.preventDefault(),navigator.clipboard.readText().then(S=>{if(D){let z=N.target.textContent.length;if(z>=D)return;D-=z,S=S.slice(0,D)}window.document.execCommand("insertText",!1,S.replace(/(\r\n|\n|\r)/gm," "))}).catch(S=>{})},Y=N=>{re.Blur(N),d==null||d({value:N.target.textContent.trim(),name:u})};const $={};$.field="password",I&&($.show=""),j&&($.className=j);const U={};return b&&(U.placeholder=b),h?"":c.jsxs("dl",{...$,children:[O?c.jsx("dt",{children:O}):"",c.jsx("dd",{onPaste:K,onInput:g,onKeyDown:L,onBlur:Y,contentEditable:l&&p?re.ContentEditable:"false",...U,suppressContentEditableWarning:!0,children:a}),M[0]&&c.jsx("i",{onClick:()=>E(!I),children:I?M[1]:M[0]}),W,C?c.jsx("em",{children:C}):""]})}function Gr({onValue:a,onSave:s,active:d,max:u,edit:b,title:j,error:O,show:C,hide:l,value:p,placeholder:o,className:h,maxLength:v,name:D,after:M="",before:W="",view:I}){b=b!==void 0?b:!0,d=d!==void 0?d:!0,l=!!(l&&(p===""||p===void 0))&&!(b&&d),o=o!==void 0?o:"",u=u!==void 0?u:99;let g=!1,L=S=>{a==null||a({value:S.target.textContent,name:D})},K=S=>{if(!(g&&S.which===86)){if(S.which===17||S.which===91)return g=!0;S.key!=="Backspace"&&(S.target.textContent.length===u&&S.preventDefault(),S.key==="Enter"&&S.preventDefault(),isNaN(S.key)&&S.preventDefault())}},Y=S=>{if(S.which===17||S.which===91)return g=!1},$=S=>{S.preventDefault(),navigator.clipboard.readText().then(z=>{if(z=z.replace(/(?!^\+|\d)./g,""),v){let w=S.target.textContent.length;if(w>=v)return;v-=w,z=z.slice(0,v)}window.document.execCommand("insertText",!1,""+z)}).catch(z=>{})};const U=S=>{re.Blur(S),s==null||s({value:S.target.textContent,name:D})};let N={};return b&&d?(N.edit="true",N.contentEditable=re.ContentEditable):N.contentEditable="false",N.inputMode="decimal",o&&(N.placeholder=o),l?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,h].filter(S=>S!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",W,c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:$,onInput:L,onBlur:U,onKeyDown:K,onKeyUp:Y,suppressContentEditableWarning:!0,...N,children:p}),M,O&&c.jsx("em",{children:O})]})}function qr({value:a="",onValue:s,onSave:d,name:u,format:b="+_(___) ___-__-__",placeholder:j="",title:O="",error:C="",hide:l=!1,edit:p=!0,active:o=!0,after:h="",show:v=!0,view:D,className:M=""}){p=p!==void 0?p:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(p&&o),A.useRef(null);let I=b,E=!0,g=0,L=(T,m)=>{let R=document.createRange(),G=window.getSelection();R.setStart(m.childNodes[0],T),R.collapse(!0),G.removeAllRanges(),G.addRange(R),m.focus()},K=T=>{T.preventDefault(),navigator.clipboard.readText().then(m=>{window.document.execCommand("insertText",!1,m)}).catch(m=>{})},Y=T=>{let m=0,R="",G=T.replace(/\D/g,"");G===""&&(E=!0);let X=G.split(""),_e="";X.forEach(he=>{E&&(_e+=he,E&&(g=(""+_e).length,I=b.replace(new RegExp("[0-9]","g"),"_"),R=""),g>(""+_e).length&&(E=!0,I=b.replace(new RegExp("[0-9]","g"),"_"),R=""))});let le=I.replace(/\D/g,"");return le.length>=G.length&&(G=le),{q:I.replace(/[_\d]/g,function(){return G.charAt(m++)||"_"}),i:m,v:G,f:R}},$=T=>{T.preventDefault(),navigator.clipboard.writeText(T.target.textContent.replace(/\D/g,"")).then(function(){ht.Copy("Данные в буфер обмене")},function(m){})},U=Y(a),N=T=>{let m=Y(T.target.textContent);T.target.textContent=m.q,m.i=m.q.lastIndexOf(m.v.substr(-1)),m.i<m.q.length&&m.q!==I?m.i++:m.i=m.q.indexOf("_"),L(m.i,T.target),s&&s({value:m.q.replace(/\D/g,""),name:u})},S=T=>{T.key==="Enter"&&T.preventDefault()};const z=T=>{re.Blur(T),d&&d({value:T.target.textContent.replace(/\D/g,""),name:u})};let w={};return p&&o?(w.edit="true",w.contentEditable=re.ContentEditable):w.contentEditable="false",j&&(w.placeholder=j),h&&(w.after=h),l?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,M].filter(T=>T!==void 0).join(" "),children:[O?c.jsx("dt",{className:q.t,children:O}):"",c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:K,onInput:N,onKeyDown:S,onContextMenu:$,onBlur:z,suppressContentEditableWarning:!0,...w,children:U.q}),C&&c.jsx("em",{children:C})]})}function Hr({id:a,value:s,onValue:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",show:h=!0,maxLength:v,view:D,onSave:M,className:W="",isCopy:I=!0}){let[E,g]=A.useState(!1);E=l?!0:E;let L=S=>{d==null||d({value:S.target.innerText,name:u})},K=S=>{v&&S.target.textContent.trim().length>=v&&S.key!=="Backspace"&&S.preventDefault(),S.key==="Enter"&&S.preventDefault()},Y=S=>{I&&(S.preventDefault(),navigator.clipboard.writeText(S.target.textContent.trim()).then(function(){ht.Copy("Данные в буфер обмене")},function(z){}))},$=S=>{S.preventDefault(),navigator.clipboard.readText().then(z=>{if(v){let w=S.target.textContent.length;if(w>=v)return;v-=w,z=z.slice(0,v)}window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})};if(C)return c.jsx(c.Fragment,{});if(!(l&&p)&&!h)return"";const U={};b&&(U.placeholder=b),l&&p&&(U.edit=""),E&&(U.open="");const N=S=>{re.Blur(S),M==null||M({value:S.target.textContent.trim(),name:u})};return c.jsxs("dl",{"data-field":"note",className:[q.l,W].filter(S=>S!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",c.jsx("dd",{className:[q.f,q.n].join(" "),onPaste:$,onInput:L,onBlur:N,onKeyDown:K,onContextMenu:Y,contentEditable:l&&p?re.ContentEditable:"false",suppressContentEditableWarning:!0,...U,children:s}),o,O?c.jsx("em",{children:O}):""]})}const Mt={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 Jr({value:a,onValue:s,onSave:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",show:h=!0,view:v,className:D=""}){l=l!==void 0?l:!0,p=p!==void 0?p:!0,C=!!(C&&(a===""||a===void 0))&&!(l&&p),A.useRef(null);let W="+_(___) ___-__-__",I=!0,E=0,g=(w,T)=>{let m=document.createRange(),R=window.getSelection();m.setStart(T.childNodes[0],w),m.collapse(!0),R.removeAllRanges(),R.addRange(m),T.focus()},L=w=>{let T=Y(w.target.textContent);w.target.textContent=T.q,T.i=T.q.lastIndexOf(T.v.substr(-1)),T.i<T.q.length&&T.q!==W?T.i++:T.i=T.q.indexOf("_"),g(T.i,w.target),s&&s({value:T.q.replace(/\D/g,""),name:u})},K=w=>{w.preventDefault(),navigator.clipboard.readText().then(T=>{window.document.execCommand("insertText",!1,T)}).catch(T=>{})},Y=w=>{let T=0,m="",R=w.replace(/\D/g,"");R===""&&(I=!0);let G=R.split(""),X="";G.forEach(ve=>{I&&(X+=ve,Mt[X]!==void 0&&I?(I=!1,W=Mt[X].mask.replace(new RegExp("[0-9]","g"),"_"),m=Mt[X].code):(I&&(E=(""+X).length,W=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),m=""),E>(""+X).length&&(I=!0,W=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),m="")))});let _e=W.replace(/\D/g,"");return _e.length>=R.length&&(R=_e),{q:W.replace(/[_\d]/g,function(){return R.charAt(T++)||"_"}),i:T,v:R,f:m}},$=w=>{w.preventDefault(),navigator.clipboard.writeText(w.target.textContent.replace(/\D/g,"")).then(function(){ht.Copy("Данные в буфер обмене")},function(T){})},U=Y(a),N=w=>{w.key==="Enter"&&w.preventDefault()};const S=w=>{re.Blur(w),d&&d({value:w.target.textContent.replace(/\D/g,""),name:u})};let z={};return l&&p?(z.edit="true",z.contentEditable=re.ContentEditable):z.contentEditable="false",b&&(z.placeholder=b),o&&(z.after=o),C?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,D].filter(w=>w!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:K,onInput:L,onKeyDown:N,onContextMenu:$,onBlur:S,suppressContentEditableWarning:!0,...z,children:U.q}),O&&c.jsx("em",{children:O})]})}const Rt={o:"_o_76l23_1",c:"_c_76l23_11"};function Zr({title:a,error:s,edit:d=!0,active:u=!0,className:b,placeholder:j,max:O,min:C,view:l="date",onValue:p,icon:o,name:h,value:v,after:D}){let[M,W]=A.useState(v===void 0?new Date:v);const I=A.useRef(null),[E,g]=A.useState(!1);let L=!d&&u;A.useEffect(()=>{W(v===void 0?new Date:v)},[v]);let K=U=>{W(U),p==null||p({value:U,name:h})},Y=U=>{const N=U.target.getBoundingClientRect(),S=N.left,z=N.bottom,w=N.top;N.position={x:S,b:z,y:w},g(!0)};const $={};return j&&($.placeholder=j),L?c.jsx(c.Fragment,{}):c.jsxs(c.Fragment,{children:[o?o():c.jsxs("dl",{"data-field":"date",className:[q.l,b].filter(U=>U!==void 0).join(" "),children:[a?c.jsx("dt",{className:q.t,children:a}):"",c.jsxs("dd",{onClick:Y,className:[q.f,q.w].join(" "),...$,"data-edit":(d&&u)+"",children:[Qr(M,"dd.mm.yyyy"),D]}),s&&c.jsx("em",{children:s})]}),E&&Ot.createPortal(c.jsx(Vr,{position:I.position,onValue:K,date:M,max:O,min:C,className:b},new Date().getTime()),document.body)]})}const Vr=({date:a,onValue:s,position:d,max:u,min:b,className:j})=>{let[O,C]=A.useState(!0),l=new Date,p=new Date(a),o={y:parseInt(l.getFullYear()),d:parseInt(l.getDate()),m:parseInt(l.getMonth())+1},h={y:parseInt(p.getFullYear()),d:parseInt(p.getDate()),m:parseInt(p.getMonth())+1},[v,D]=A.useState({y:h.y,m:h.m}),M=m=>{let R=m.getDay();return R===0&&(R=7),R-1},W=["пн","вт","ср","чт","пт","сб","вс"],I=v.m-1,E=new Date(v.y,I),g=[];for(let m=0;m<M(E);m++)g.push(0);for(;E.getMonth()===I;)g.push(E.getDate()),E.setDate(E.getDate()+1);let L=()=>{C(!1)},K=()=>{U(v.m+1,v.y)},Y=()=>{U(v.m-1,v.y)},$=m=>{s(v.y+"-"+Gt(2,v.m)+"-"+Gt(2,m)),L()},U=(m,R)=>{R=m>12?R+1:m<1?R-1:R,m=m>12?1:m<1?12:m,D({y:R,m})};const N=m=>o.y===v.y&&o.m===v.m&&o.d===m?{"data-active":"true"}:{},S=m=>h.y===v.y&&h.m===v.m&&h.d===m?{"data-current":"true"}:{},z=m=>{let R=!0;if(u){let G=u.getTime(),X=new Date(v.y,v.m-1,m).getTime();G<X&&(R=!1)}if(b){let G=b.getTime(),X=new Date(v.y,v.m-1,m).getTime();G>X&&(R=!1)}return R};let w=window.innerHeight-d.y<320?d.y-312:d.b,T=window.innerWidth-d.x<265?d.x-235:d.x;return c.jsx(c.Fragment,{children:O?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Rt.o,onClick:()=>L()},new Date().getTime()),c.jsxs("div",{className:[Rt.c,j&&j+"-backdrop"].join(" "),style:{top:w+"px",left:T+"px"},children:[c.jsxs("s",{children:[c.jsx("i",{onClick:Y,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),c.jsxs("h2",{children:[Xr(v.m).name," ",v.y]}),c.jsx("i",{onClick:K,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),c.jsxs("div",{"grid-calendar":"",children:[W.map((m,R)=>c.jsx("p",{children:m},"v"+R)),g.map((m,R)=>c.jsx("span",{children:m!==0&&z(m)?c.jsx("b",{...N(m),...S(m),onClick:()=>$(m),children:m}):c.jsx("p",{...N(m),...S(m),children:m!==0?m:""})},R))]})]})]}):""})};function Xr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function Gt(a,s){let d=s+"";for(;d.length<a;)d="0"+d;return d}function Qr(a,s){s===void 0?(s=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:" ",_:" "};for(const u in d)s=s.replace(u,d[u]);return s}function ea({value:a,onValue:s,name:d,view:u,error:b,icon:j,edit:O=!0,active:C=!0,title:l,placeholder:p="",className:o,after:h}){let[v,D]=A.useState(a);const M=A.useRef(null),[W,I]=A.useState(!1);A.useEffect(()=>{D(a)},[a]);let E=K=>{D(K),s&&s({value:K,name:d})},g=K=>{if(!O||!C)return;const Y=K.target.getBoundingClientRect(),$=Y.left,U=Y.top;Y.position={x:$,y:U},I(!0)};const L={};return p&&(L.placeholder=p),j||c.jsxs(c.Fragment,{children:[c.jsxs("dl",{"data-field":"date",className:[q.l,o].filter(K=>K!==void 0).join(" "),children:[l?c.jsx("dt",{className:q.t,children:l}):"",c.jsx("dd",{onClick:g,...L,className:[q.f,q.w].join(" "),children:ra(v,"mm.yyyy")}),b&&c.jsx("em",{children:b})]}),W&&Ot.createPortal(c.jsx(ta,{position:M.position,onValue:E,date:v},new Date().getTime()),document.body)]})}const ta=a=>{let[s,d]=A.useState(!0),u=new Date,b=new Date(a.date),j={y:parseInt(u.getFullYear()),m:parseInt(u.getMonth())+1},O={y:parseInt(b.getFullYear()),m:parseInt(b.getMonth())+1},[C,l]=A.useState(O.y),p=()=>{d(!1)},o=()=>{l(C+1)},h=()=>{l(C-1)},v=E=>{a.onValue(C+"-"+aa(2,E)),p()},D=E=>j.y===O.y&&j.m===E?"_FFEB3B":"",M=Array(12).fill("").map((E,g)=>g+1),W=window.innerHeight-a.position.y+33<320?a.position.y-312:a.position.y+33,I=window.innerWidth-a.position.x<265?a.position.x-235:a.position.x;return c.jsx(c.Fragment,{children:s?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Rt.o,onClick:()=>p()},new Date().getTime()),c.jsxs("div",{className:Rt.c,style:{top:W+"px",left:I+"px"},children:[c.jsxs("s",{children:[c.jsx("i",{onClick:h,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),c.jsx("h2",{children:C}),c.jsx("i",{onClick:o,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),c.jsx("div",{"grid-month":"",children:M.map((E,g)=>c.jsx("span",{onClick:()=>{v(E)},color:D(E),children:c.jsx("b",{children:na(E).abc})},g))})]})]}):""})};function ra(a,s){s===void 0?(s=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:" ",_:" "};for(const u in d)s=s.replace(u,d[u]);return s}function aa(a,s){let d=s+"";for(;d.length<a;)d="0"+d;return d}function na(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function oa({value:a,onValue:s,name:d,placeholder:u="",title:b="",error:j="",hide:O=!1,edit:C=!0,active:l=!0,after:p="",show:o=!0,course:h=100,view:v,type:D,onSave:M,className:W="",isClear:I=!1}){let E=!!(O&&(a===""||a===void 0)),g=w=>D==="multi"?w.replace(/[^+\d.+-]/g,""):w.replace(/[^+\d.]/g,""),L=(w,T)=>{let m=document.createRange(),R=window.getSelection();m.setStart(T.childNodes[0],w),m.collapse(!0),R.removeAllRanges(),R.addRange(m),T.focus()},K=w=>{s==null||s({value:g(w.target.textContent)*h,name:d}),w.target.textContent=g(w.target.textContent),w.target.textContent.length>0&&L(w.target.textContent.length,w.target)},Y=w=>{re.Blur(w),w.target.textContent===""&&(w.target.textContent=0),M==null||M({value:g(w.target.textContent)*h,name:d}),s==null||s({value:g(w.target.textContent)*h,name:d}),w.target.textContent=qt(w.target.textContent)},$=w=>{w.target.textContent=g(w.target.textContent)},U=w=>{w.currentTarget.previousElementSibling.textContent="",s==null||s({value:0,name:d})},N=w=>{w.key==="Enter"&&w.preventDefault()},S=w=>{w.preventDefault(),navigator.clipboard.readText().then(T=>{T=T.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,T)}).catch(T=>{})};if(!(C&&l)&&!o||!(C&&l)&&E)return"";const z={};return z.inputMode="decimal",u&&(z.placeholder=u),C&&l&&(z.edit=""),c.jsxs("dl",{"data-field":"date",className:[q.l,W].filter(w=>w!==void 0).join(" "),children:[b?c.jsx("dt",{className:q.t,children:b}):"",c.jsx("dd",{...z,className:[q.f,q.w].join(" "),onInput:K,onPaste:S,onBlur:Y,onKeyDown:N,onFocus:$,contentEditable:C&&l?re.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":p,children:!u||a?qt(a):""}),I&&c.jsx("svg",{"action-type":"delete",onClick:U,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M17 6L6 17M6 6L17 17"})}),j?c.jsx("em",{children:j}):""]})}function qt(a,s){return parseFloat(a).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}const be={};function ia(a){const[s,d]=A.useState({}),u=A.useRef(a);return be.u=b=>{u.current={...u.current,[b.name]:b.value}},be.n=b=>{u.current=b,d(Date.now())},be.r=()=>{d(Date.now())},[u.current,be.n]}function _a(a){be.u(a),a.reload&&be.r()}function sa(){be.r&&be.r()}function la(a){const[s,d]=A.useState({}),u=A.useRef(a);return be.u=b=>{u.current={...u.current,[b.name]:b.value}},be.n=b=>{Object.keys(b).length>0?Object.keys(b).forEach(j=>{u.current[j]=b[j]}):u.current={},d(Date.now())},be.r=()=>{d(Date.now())},[u.current,be.n]}V.Date=Zr,V.Mask=qr,V.Modal=Kr,V.Money=oa,V.Month=ea,V.Note=Hr,V.Number=Gr,V.Options=Lr,V.Password=Yr,V.Phone=Jr,V.Progress=Zt,V.Select=zr,V.String=or,V.runReload=sa,V.setValue=_a,V.useData=ia,V.useError=la,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
118
|
+
<%s key={someKey} {...props} />`,ge,H,ft,H),Ie[H+ge]=!0}}return e===u?st(k):_t(k),k}}function lt(e,t,r){return Ae(e,t,r,!0)}function ct(e,t,r){return Ae(e,t,r,!1)}var dt=ct,ut=lt;jt.Fragment=u,jt.jsx=dt,jt.jsxs=ut}()),jt}process.env.NODE_ENV==="production"?Nt.exports=Rr():Nt.exports=Or();var Ft=Nt.exports;const Tr="_btn_1k1b3_1",Dr="_confirm_1k1b3_15",Pr="_cancel_1k1b3_20",Nr="_action_1k1b3_25",Fr="_disabled_1k1b3_30",Mr="_m_1k1b3_44",$r="_l_1k1b3_48",Ct={btn:Tr,confirm:Dr,cancel:Pr,action:Nr,disabled:Fr,await:"_await_1k1b3_37",m:Mr,l:$r},Ir=({onClick:a,onSend:s,size:d="m",view:u="confirm",children:b,isDisabled:j=!1,className:O,after:C,before:l,label:p,onRef:o,awaitText:h="Ожидайте"})=>{let[v,D]=A.useState(!1);const M=$=>{if(a)return a();v||(s?(D(!0),s(D)):$.preventDefault())};let W={};return(j||v)&&(W.disabled=!0),Ft.jsx("button",{...W,ref:o,className:[Ct.btn,v?Ct.disabled:Ct[u],d&&Ct[d],O].filter($=>$!="").join(" "),onClick:M,children:v?h:Ft.jsxs(Ft.Fragment,{children:[l||""," ",p," ",C||""]})||b})};let Le={};function Ar({children:a}){return Q.jsx(Q.Fragment,{children:a})}var St;(a=>{function s({import_modules:p}){let[o,h]=A.useState([]);return Le.x=v=>{h(v?o.filter(D=>D.key!==v):[])},A.useEffect(()=>{p&&(Le.i=p)},[]),Le.add=(v,D=Date.now())=>{h([...o,{key:D,item:v}])},Q.jsx(Q.Fragment,{children:o.map(v=>v.item)})}a.Init=s;function d(p){return p&&(Le.i=p),Le.i}a.Import=d,a.List=wr,a.Scroll=jr,a.Form=Cr,a.Center=Sr,a.Column=Er;function u(p,o,h){Le.i(`${p}/modal/${o}.tsx`).then(v=>{v.default.Open(h)})}a.Open=u;function b({type:p,name:o,params:h}){let[v,D]=A.useState(null);return A.useEffect(()=>{Le.i(`${p}/modal/${o}.tsx`).then(M=>{D(M.default.Icon(h))})},[h.id]),Q.jsx(Q.Fragment,{children:v})}a.Icon=b;function j(p,o){Le.add(Q.jsx(Ar,{children:p},String(Date.now())),o)}a.Add=j;function O(p){Le.x(p)}a.Close=O;function C(p){if(p.target.classList[0]!=="modal")return;let o=p.target.children[0];o.setAttribute("shake",!0),setTimeout(()=>{o.setAttribute("shake",!1)},1e3)}a.Shake=C;function l({title:p,children:o,button:h,tabs:v,size:D="m",className:M="",shake:W=!0,menu:$}){const[E,g]=A.useState(!0),L=A.useRef(),K=I=>{if(h){if(h.onClick)return I(!1),h.onClick({setOpen:g});if(h.onSend)return h.onSend({setOpen:g,disabled:I})}},Y=()=>{if(!W)return g(!1);L.current.setAttribute("shake",!0),setTimeout(()=>{L.current.setAttribute("shake",!1)},1e3)};return E?Q.jsxs("div",{className:`${se.modal}`,children:[Q.jsx("div",{className:se.o,onClick:Y}),Q.jsxs("div",{className:[se.w,se[`s${D}`],M].filter(I=>I!="").join(" "),ref:L,children:[Q.jsxs("div",{className:se.h,children:[Q.jsx("div",{className:se.t,children:p}),Q.jsxs("div",{className:se.m,children:[v&&Q.jsx("nav",{children:v.map((I,U)=>Q.jsx("span",{onClick:I.onClick,className:I.active?"active":"",children:I.name},U))}),$]}),Q.jsx("div",{className:se.x,onClick:()=>{g(!1)},children:Q.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:Q.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),o,h!==void 0?Q.jsx(Ir,{label:h.label,onSend:K,className:se.btn}):""]})]}):""}a.Main=l})(St||(St={}));const Br=(a,s=",")=>(a=a!==void 0&&a!==""?a.split(s):[],a.filter(d=>d!=="").reduce((d,u)=>(d[u]=!0,d),{}));function Lr({value:a,onValue:s,name:d,placeholder:u="",separator:b=",",title:j,error:O,hide:C=!1,edit:l=!0,active:p=!0,outFormat:o="object",after:h="",modal:v,options:D,className:M}){const[W,$]=A.useState(Br(a,b)),E=K=>{if(!(l&&p)||!v)return;let Y=v.split(".");St.Open(Y[0],Y[1],{callback:I=>{if(s)switch(o){case"array":s({value:Object.keys(I),name:d});break;case"string":s({value:Object.keys(I).filter(U=>I[U]).join(b),name:d});break;default:s({value:I,name:d})}$(Object.fromEntries(Object.entries(I).filter(([U,N])=>N!==!1)))},onValue:s,options:D,name:d,value:W})},g={};g.field="group",M&&(g.className=M);const L={};return u&&(L.placeholder=u),C?c.jsx(c.Fragment,{}):c.jsxs("dl",{...g,children:[c.jsxs("dt",{children:[j,c.jsx("i",{onClick:E,children:c.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:c.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),c.jsx("dd",{...L,onClick:E,edit:(l&&p)+"","data-after":h,children:Object.keys(W).map(K=>{var Y;return c.jsx("div",{className:"field_group_item",children:(Y=D[K])==null?void 0:Y.label},K)})}),O&&c.jsx("em",{children:O})]})}const Et={o:"_o_1wehm_12",l:"_l_1wehm_22",i:"_i_1wehm_72",f:"_f_1wehm_81"};function zr({title:a,error:s,edit:d=!0,active:u=!0,hide:b,value:j=0,onValue:O,options:C,placeholder:l="",className:p,isIcon:o=!0,name:h,after:v,view:D,order:M,isReload:W=!1}){var w,T;const $=A.useRef(null),[E,g]=A.useState(j),[L,K]=A.useState(C),[Y,I]=A.useState(!1);A.useEffect(()=>{g(j),K(C)},[j,C]),b=!!(b&&(j===0||((w=L==null?void 0:L[j])==null?void 0:w.n)===void 0))&&!(d&&u);let N=m=>{g(m),O&&O({value:m,name:h,reload:W})},z={onClick:m=>{Object.keys(L||{}).length!==0&&d&&u&&($.position=m.target.getBoundingClientRect(),I(!0))}};return l&&(z.placeholder=l),v&&(z.after=v),d&&u&&(z.edit=""),b?"":c.jsxs(c.Fragment,{children:[c.jsxs("dl",{"data-field":"select",className:[q.l,p].filter(m=>m!==void 0).join(" "),children:[a&&c.jsx("dt",{className:q.t,children:a}),c.jsx("dd",{...z,className:[q.f,Et.f].join(" "),ref:$,children:(T=L==null?void 0:L[E])==null?void 0:T.n}),Object.keys(L||{}).length!==0&&o&&c.jsx("svg",{className:Et.i,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})}),s&&c.jsx("em",{children:s})]}),Y&&Ot.createPortal(c.jsx(Wr,{parent:$.position,onValue:N,view:D,className:p,options:L,order:M,setOpen:I},new Date().getTime()),document.body)]})}const Wr=({onValue:a,parent:s,className:d,options:u,order:b,setOpen:j})=>{let O=()=>{j(!1)},C=o=>{j(!1),a(o)},l=window.innerHeight-s.y+s.height<320?s.y-312:s.y+33,p=window.innerWidth-s.x<265?s.x-235:s.x;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Et.o,onClick:O},new Date().getTime()),c.jsx("div",{className:[Et.l,d].filter(o=>o!==void 0).join(" "),style:{top:l+"px",left:p+"px",width:s.width},children:c.jsx(Ur,{order:b,options:u,link:C})})]})},Ur=({order:a,options:s,link:d})=>a?c.jsx("ul",{children:a.map((u,b)=>s[u].s!==0?c.jsx("li",{onClick:()=>{d(u)},children:s[u].n},b):"")}):c.jsx("ul",{children:Object.keys(s).map((u,b)=>s[u].s!==0?c.jsx("li",{onClick:()=>{d(u)},children:s[u].n},b):"")});function Kr({value:a,onValue:s,name:d,placeholder:u="",title:b,error:j,hide:O=!1,edit:C=!0,show:l=!0,active:p=!0,after:o="",view:h,modal:v,module:D,options:M,className:W}){let[$,E]=A.useState(a),g=Y=>{if(!(C&&p)||!v)return;let I=v.split(".");St.Open(I[0],I[1],{callback:U=>{s&&s({value:U,name:d}),E(U)},onValue:s,options:M,name:d,value:a})};const L={};L.field="input",W&&(L.className=W);const K={};return u&&(K.placeholder=u),O?c.jsx(c.Fragment,{}):c.jsxs("dl",{...L,children:[b&&c.jsx("dt",{children:b}),c.jsx("dd",{...K,onClick:g,edit:(C&&p)+"","data-after":o,children:$}),j&&c.jsx("em",{children:j})]})}function Yr({value:a,onValue:s,onSave:d,name:u,placeholder:b="",className:j,title:O,error:C,edit:l=!0,active:p=!0,reload:o=!1,native:h=!1,isShow:v=!1,maxLength:D,eyes:M=[],after:W=""}){const[$,E]=A.useState(v);let g=N=>{s&&s({value:N.target.textContent,name:u,reload:o})},L=N=>{N.key==="Enter"&&N.preventDefault()},K=N=>{N.preventDefault(),navigator.clipboard.readText().then(S=>{if(D){let z=N.target.textContent.length;if(z>=D)return;D-=z,S=S.slice(0,D)}window.document.execCommand("insertText",!1,S.replace(/(\r\n|\n|\r)/gm," "))}).catch(S=>{})},Y=N=>{re.Blur(N),d==null||d({value:N.target.textContent.trim(),name:u})};const I={};I.field="password",$&&(I.show=""),j&&(I.className=j);const U={};return b&&(U.placeholder=b),h?"":c.jsxs("dl",{...I,children:[O?c.jsx("dt",{children:O}):"",c.jsx("dd",{onPaste:K,onInput:g,onKeyDown:L,onBlur:Y,contentEditable:l&&p?re.ContentEditable:"false",...U,suppressContentEditableWarning:!0,children:a}),M[0]&&c.jsx("i",{onClick:()=>E(!$),children:$?M[1]:M[0]}),W,C?c.jsx("em",{children:C}):""]})}function Gr({onValue:a,onSave:s,active:d,max:u,edit:b,title:j,error:O,show:C,hide:l,value:p,placeholder:o,className:h,maxLength:v,name:D,after:M="",before:W="",view:$}){b=b!==void 0?b:!0,d=d!==void 0?d:!0,l=!!(l&&(p===""||p===void 0))&&!(b&&d),o=o!==void 0?o:"",u=u!==void 0?u:99;let g=!1,L=S=>{a==null||a({value:S.target.textContent,name:D})},K=S=>{if(!(g&&S.which===86)){if(S.which===17||S.which===91)return g=!0;S.key!=="Backspace"&&(S.target.textContent.length===u&&S.preventDefault(),S.key==="Enter"&&S.preventDefault(),isNaN(S.key)&&S.preventDefault())}},Y=S=>{if(S.which===17||S.which===91)return g=!1},I=S=>{S.preventDefault(),navigator.clipboard.readText().then(z=>{if(z=z.replace(/(?!^\+|\d)./g,""),v){let w=S.target.textContent.length;if(w>=v)return;v-=w,z=z.slice(0,v)}window.document.execCommand("insertText",!1,""+z)}).catch(z=>{})};const U=S=>{re.Blur(S),s==null||s({value:S.target.textContent,name:D})};let N={};return b&&d?(N.edit="true",N.contentEditable=re.ContentEditable):N.contentEditable="false",N.inputMode="decimal",o&&(N.placeholder=o),l?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,h].filter(S=>S!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",W,c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:I,onInput:L,onBlur:U,onKeyDown:K,onKeyUp:Y,suppressContentEditableWarning:!0,...N,children:p}),M,O&&c.jsx("em",{children:O})]})}function qr({value:a="",onValue:s,onSave:d,name:u,format:b="+_(___) ___-__-__",placeholder:j="",title:O="",error:C="",hide:l=!1,edit:p=!0,active:o=!0,after:h="",show:v=!0,view:D,className:M=""}){p=p!==void 0?p:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(p&&o),A.useRef(null);let $=b,E=!0,g=0,L=(T,m)=>{let R=document.createRange(),G=window.getSelection();R.setStart(m.childNodes[0],T),R.collapse(!0),G.removeAllRanges(),G.addRange(R),m.focus()},K=T=>{T.preventDefault(),navigator.clipboard.readText().then(m=>{window.document.execCommand("insertText",!1,m)}).catch(m=>{})},Y=T=>{let m=0,R="",G=T.replace(/\D/g,"");G===""&&(E=!0);let X=G.split(""),_e="";X.forEach(he=>{E&&(_e+=he,E&&(g=(""+_e).length,$=b.replace(new RegExp("[0-9]","g"),"_"),R=""),g>(""+_e).length&&(E=!0,$=b.replace(new RegExp("[0-9]","g"),"_"),R=""))});let le=$.replace(/\D/g,"");return le.length>=G.length&&(G=le),{q:$.replace(/[_\d]/g,function(){return G.charAt(m++)||"_"}),i:m,v:G,f:R}},I=T=>{T.preventDefault(),navigator.clipboard.writeText(T.target.textContent.replace(/\D/g,"")).then(function(){ht.Copy("Данные в буфер обмене")},function(m){})},U=Y(a),N=T=>{let m=Y(T.target.textContent);T.target.textContent=m.q,m.i=m.q.lastIndexOf(m.v.substr(-1)),m.i<m.q.length&&m.q!==$?m.i++:m.i=m.q.indexOf("_"),L(m.i,T.target),s&&s({value:m.q.replace(/\D/g,""),name:u})},S=T=>{T.key==="Enter"&&T.preventDefault()};const z=T=>{re.Blur(T),d&&d({value:T.target.textContent.replace(/\D/g,""),name:u})};let w={};return p&&o?(w.edit="true",w.contentEditable=re.ContentEditable):w.contentEditable="false",j&&(w.placeholder=j),h&&(w.after=h),l?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,M].filter(T=>T!==void 0).join(" "),children:[O?c.jsx("dt",{className:q.t,children:O}):"",c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:K,onInput:N,onKeyDown:S,onContextMenu:I,onBlur:z,suppressContentEditableWarning:!0,...w,children:U.q}),C&&c.jsx("em",{children:C})]})}function Hr({id:a,value:s,onValue:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",show:h=!0,maxLength:v,view:D,onSave:M,className:W="",isCopy:$=!0}){let[E,g]=A.useState(!1);E=l?!0:E;let L=S=>{d==null||d({value:S.target.innerText,name:u})},K=S=>{v&&S.target.textContent.trim().length>=v&&S.key!=="Backspace"&&S.preventDefault(),S.key==="Enter"&&S.preventDefault()},Y=S=>{$&&(S.preventDefault(),navigator.clipboard.writeText(S.target.textContent.trim()).then(function(){ht.Copy("Данные в буфер обмене")},function(z){}))},I=S=>{S.preventDefault(),navigator.clipboard.readText().then(z=>{if(v){let w=S.target.textContent.length;if(w>=v)return;v-=w,z=z.slice(0,v)}window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})};if(C)return c.jsx(c.Fragment,{});if(!(l&&p)&&!h)return"";const U={};b&&(U.placeholder=b),l&&p&&(U.edit=""),E&&(U.open="");const N=S=>{re.Blur(S),M==null||M({value:S.target.textContent.trim(),name:u})};return c.jsxs("dl",{"data-field":"note",className:[q.l,W].filter(S=>S!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",c.jsx("dd",{className:[q.f,q.n].join(" "),onPaste:I,onInput:L,onBlur:N,onKeyDown:K,onContextMenu:Y,contentEditable:l&&p?re.ContentEditable:"false",suppressContentEditableWarning:!0,...U,children:s}),o,O?c.jsx("em",{children:O}):""]})}const Mt={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 Jr({value:a,onValue:s,onSave:d,name:u,placeholder:b="",title:j="",error:O="",hide:C=!1,edit:l=!0,active:p=!0,after:o="",show:h=!0,view:v,className:D=""}){l=l!==void 0?l:!0,p=p!==void 0?p:!0,C=!!(C&&(a===""||a===void 0))&&!(l&&p),A.useRef(null);let W="+_(___) ___-__-__",$=!0,E=0,g=(w,T)=>{let m=document.createRange(),R=window.getSelection();m.setStart(T.childNodes[0],w),m.collapse(!0),R.removeAllRanges(),R.addRange(m),T.focus()},L=w=>{let T=Y(w.target.textContent);w.target.textContent=T.q,T.i=T.q.lastIndexOf(T.v.substr(-1)),T.i<T.q.length&&T.q!==W?T.i++:T.i=T.q.indexOf("_"),g(T.i,w.target),s&&s({value:T.q.replace(/\D/g,""),name:u})},K=w=>{w.preventDefault(),navigator.clipboard.readText().then(T=>{window.document.execCommand("insertText",!1,T)}).catch(T=>{})},Y=w=>{let T=0,m="",R=w.replace(/\D/g,"");R===""&&($=!0);let G=R.split(""),X="";G.forEach(ve=>{$&&(X+=ve,Mt[X]!==void 0&&$?($=!1,W=Mt[X].mask.replace(new RegExp("[0-9]","g"),"_"),m=Mt[X].code):($&&(E=(""+X).length,W=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),m=""),E>(""+X).length&&($=!0,W=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),m="")))});let _e=W.replace(/\D/g,"");return _e.length>=R.length&&(R=_e),{q:W.replace(/[_\d]/g,function(){return R.charAt(T++)||"_"}),i:T,v:R,f:m}},I=w=>{w.preventDefault(),navigator.clipboard.writeText(w.target.textContent.replace(/\D/g,"")).then(function(){ht.Copy("Данные в буфер обмене")},function(T){})},U=Y(a),N=w=>{w.key==="Enter"&&w.preventDefault()};const S=w=>{re.Blur(w),d&&d({value:w.target.textContent.replace(/\D/g,""),name:u})};let z={};return l&&p?(z.edit="true",z.contentEditable=re.ContentEditable):z.contentEditable="false",b&&(z.placeholder=b),o&&(z.after=o),C?c.jsx(c.Fragment,{}):c.jsxs("dl",{"data-field":"input",className:[q.l,D].filter(w=>w!==void 0).join(" "),children:[j?c.jsx("dt",{className:q.t,children:j}):"",c.jsx("dd",{className:[q.f,q.w].join(" "),onPaste:K,onInput:L,onKeyDown:N,onContextMenu:I,onBlur:S,suppressContentEditableWarning:!0,...z,children:U.q}),O&&c.jsx("em",{children:O})]})}const Rt={o:"_o_76l23_1",c:"_c_76l23_11"};function Zr({title:a,error:s,edit:d=!0,active:u=!0,className:b,placeholder:j,max:O,min:C,view:l="date",onValue:p,icon:o,name:h,value:v,after:D}){let[M,W]=A.useState(v===void 0?new Date:v);const $=A.useRef(null),[E,g]=A.useState(!1);let L=!d&&u;A.useEffect(()=>{W(v===void 0?new Date:v)},[v]);let K=U=>{W(U),p==null||p({value:U,name:h})},Y=U=>{const N=U.target.getBoundingClientRect(),S=N.left,z=N.bottom,w=N.top;$.position={x:S,b:z,y:w},g(!0)};const I={};return j&&(I.placeholder=j),L?c.jsx(c.Fragment,{}):c.jsxs(c.Fragment,{children:[o?o():c.jsxs("dl",{"data-field":"date",className:[q.l,b].filter(U=>U!==void 0).join(" "),children:[a?c.jsx("dt",{className:q.t,children:a}):"",c.jsxs("dd",{onClick:Y,className:[q.f,q.w].join(" "),...I,"data-edit":(d&&u)+"",children:[Qr(M,"dd.mm.yyyy"),D]}),s&&c.jsx("em",{children:s})]}),E&&Ot.createPortal(c.jsx(Vr,{position:$.position,onValue:K,date:M,max:O,min:C,className:b},new Date().getTime()),document.body)]})}const Vr=({date:a,onValue:s,position:d,max:u,min:b,className:j})=>{let[O,C]=A.useState(!0),l=new Date,p=new Date(a),o={y:parseInt(l.getFullYear()),d:parseInt(l.getDate()),m:parseInt(l.getMonth())+1},h={y:parseInt(p.getFullYear()),d:parseInt(p.getDate()),m:parseInt(p.getMonth())+1},[v,D]=A.useState({y:h.y,m:h.m}),M=m=>{let R=m.getDay();return R===0&&(R=7),R-1},W=["пн","вт","ср","чт","пт","сб","вс"],$=v.m-1,E=new Date(v.y,$),g=[];for(let m=0;m<M(E);m++)g.push(0);for(;E.getMonth()===$;)g.push(E.getDate()),E.setDate(E.getDate()+1);let L=()=>{C(!1)},K=()=>{U(v.m+1,v.y)},Y=()=>{U(v.m-1,v.y)},I=m=>{s(v.y+"-"+Gt(2,v.m)+"-"+Gt(2,m)),L()},U=(m,R)=>{R=m>12?R+1:m<1?R-1:R,m=m>12?1:m<1?12:m,D({y:R,m})};const N=m=>o.y===v.y&&o.m===v.m&&o.d===m?{"data-active":"true"}:{},S=m=>h.y===v.y&&h.m===v.m&&h.d===m?{"data-current":"true"}:{},z=m=>{let R=!0;if(u){let G=u.getTime(),X=new Date(v.y,v.m-1,m).getTime();G<X&&(R=!1)}if(b){let G=b.getTime(),X=new Date(v.y,v.m-1,m).getTime();G>X&&(R=!1)}return R};let w=window.innerHeight-d.y<320?d.y-312:d.b,T=window.innerWidth-d.x<265?d.x-235:d.x;return c.jsx(c.Fragment,{children:O?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Rt.o,onClick:()=>L()},new Date().getTime()),c.jsxs("div",{className:[Rt.c,j&&j+"-backdrop"].join(" "),style:{top:w+"px",left:T+"px"},children:[c.jsxs("s",{children:[c.jsx("i",{onClick:Y,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),c.jsxs("h2",{children:[Xr(v.m).name," ",v.y]}),c.jsx("i",{onClick:K,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),c.jsxs("div",{"grid-calendar":"",children:[W.map((m,R)=>c.jsx("p",{children:m},"v"+R)),g.map((m,R)=>c.jsx("span",{children:m!==0&&z(m)?c.jsx("b",{...N(m),...S(m),onClick:()=>I(m),children:m}):c.jsx("p",{...N(m),...S(m),children:m!==0?m:""})},R))]})]})]}):""})};function Xr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function Gt(a,s){let d=s+"";for(;d.length<a;)d="0"+d;return d}function Qr(a,s){s===void 0?(s=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:" ",_:" "};for(const u in d)s=s.replace(u,d[u]);return s}function ea({value:a,onValue:s,name:d,view:u,error:b,icon:j,edit:O=!0,active:C=!0,title:l,placeholder:p="",className:o,after:h}){let[v,D]=A.useState(a);const M=A.useRef(null),[W,$]=A.useState(!1);A.useEffect(()=>{D(a)},[a]);let E=K=>{D(K),s&&s({value:K,name:d})},g=K=>{if(!O||!C)return;const Y=K.target.getBoundingClientRect(),I=Y.left,U=Y.top;M.position={x:I,y:U},$(!0)};const L={};return p&&(L.placeholder=p),j||c.jsxs(c.Fragment,{children:[c.jsxs("dl",{"data-field":"date",className:[q.l,o].filter(K=>K!==void 0).join(" "),children:[l?c.jsx("dt",{className:q.t,children:l}):"",c.jsx("dd",{onClick:g,...L,className:[q.f,q.w].join(" "),children:ra(v,"mm.yyyy")}),b&&c.jsx("em",{children:b})]}),W&&Ot.createPortal(c.jsx(ta,{position:M.position,onValue:E,date:v},new Date().getTime()),document.body)]})}const ta=a=>{let[s,d]=A.useState(!0),u=new Date,b=new Date(a.date),j={y:parseInt(u.getFullYear()),m:parseInt(u.getMonth())+1},O={y:parseInt(b.getFullYear()),m:parseInt(b.getMonth())+1},[C,l]=A.useState(O.y),p=()=>{d(!1)},o=()=>{l(C+1)},h=()=>{l(C-1)},v=E=>{a.onValue(C+"-"+aa(2,E)),p()},D=E=>j.y===O.y&&j.m===E?"_FFEB3B":"",M=Array(12).fill("").map((E,g)=>g+1),W=window.innerHeight-a.position.y+33<320?a.position.y-312:a.position.y+33,$=window.innerWidth-a.position.x<265?a.position.x-235:a.position.x;return c.jsx(c.Fragment,{children:s?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Rt.o,onClick:()=>p()},new Date().getTime()),c.jsxs("div",{className:Rt.c,style:{top:W+"px",left:$+"px"},children:[c.jsxs("s",{children:[c.jsx("i",{onClick:h,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),c.jsx("h2",{children:C}),c.jsx("i",{onClick:o,children:c.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),c.jsx("div",{"grid-month":"",children:M.map((E,g)=>c.jsx("span",{onClick:()=>{v(E)},color:D(E),children:c.jsx("b",{children:na(E).abc})},g))})]})]}):""})};function ra(a,s){s===void 0?(s=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:" ",_:" "};for(const u in d)s=s.replace(u,d[u]);return s}function aa(a,s){let d=s+"";for(;d.length<a;)d="0"+d;return d}function na(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function oa({value:a,onValue:s,name:d,placeholder:u="",title:b="",error:j="",hide:O=!1,edit:C=!0,active:l=!0,after:p="",show:o=!0,course:h=100,view:v,type:D,onSave:M,className:W="",isClear:$=!1}){let E=!!(O&&(a===""||a===void 0)),g=w=>D==="multi"?w.replace(/[^+\d.+-]/g,""):w.replace(/[^+\d.]/g,""),L=(w,T)=>{let m=document.createRange(),R=window.getSelection();m.setStart(T.childNodes[0],w),m.collapse(!0),R.removeAllRanges(),R.addRange(m),T.focus()},K=w=>{s==null||s({value:g(w.target.textContent)*h,name:d}),w.target.textContent=g(w.target.textContent),w.target.textContent.length>0&&L(w.target.textContent.length,w.target)},Y=w=>{re.Blur(w),w.target.textContent===""&&(w.target.textContent=0),M==null||M({value:g(w.target.textContent)*h,name:d}),s==null||s({value:g(w.target.textContent)*h,name:d}),w.target.textContent=qt(w.target.textContent)},I=w=>{w.target.textContent=g(w.target.textContent)},U=w=>{w.currentTarget.previousElementSibling.textContent="",s==null||s({value:0,name:d})},N=w=>{w.key==="Enter"&&w.preventDefault()},S=w=>{w.preventDefault(),navigator.clipboard.readText().then(T=>{T=T.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,T)}).catch(T=>{})};if(!(C&&l)&&!o||!(C&&l)&&E)return"";const z={};return z.inputMode="decimal",u&&(z.placeholder=u),C&&l&&(z.edit=""),c.jsxs("dl",{"data-field":"date",className:[q.l,W].filter(w=>w!==void 0).join(" "),children:[b?c.jsx("dt",{className:q.t,children:b}):"",c.jsx("dd",{...z,className:[q.f,q.w].join(" "),onInput:K,onPaste:S,onBlur:Y,onKeyDown:N,onFocus:I,contentEditable:C&&l?re.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":p,children:!u||a?qt(a):""}),$&&c.jsx("svg",{"action-type":"delete",onClick:U,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M17 6L6 17M6 6L17 17"})}),j?c.jsx("em",{children:j}):""]})}function qt(a,s){return parseFloat(a).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}const be={};function ia(a){const[s,d]=A.useState({}),u=A.useRef(a);return be.u=b=>{u.current={...u.current,[b.name]:b.value}},be.n=b=>{u.current=b,d(Date.now())},be.r=()=>{d(Date.now())},[u.current,be.n]}function _a(a){be.u(a),a.reload&&be.r()}function sa(){be.r&&be.r()}function la(a){const[s,d]=A.useState({}),u=A.useRef(a);return be.u=b=>{u.current={...u.current,[b.name]:b.value}},be.n=b=>{Object.keys(b).length>0?Object.keys(b).forEach(j=>{u.current[j]=b[j]}):u.current={},d(Date.now())},be.r=()=>{d(Date.now())},[u.current,be.n]}V.Date=Zr,V.Mask=qr,V.Modal=Kr,V.Money=oa,V.Month=ea,V.Note=Hr,V.Number=Gr,V.Options=Lr,V.Password=Yr,V.Phone=Jr,V.Progress=Zt,V.Select=zr,V.String=or,V.runReload=sa,V.setValue=_a,V.useData=ia,V.useError=la,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|