@elcrm/form 0.0.1
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/README.md +0 -0
- package/dist/Button.d.ts +8 -0
- package/dist/Captcha.d.ts +1 -0
- package/dist/Check.d.ts +13 -0
- package/dist/Code.d.ts +22 -0
- package/dist/Color.d.ts +22 -0
- package/dist/Files.d.ts +20 -0
- package/dist/Generator.d.ts +1 -0
- package/dist/Group.d.ts +21 -0
- package/dist/Image.d.ts +22 -0
- package/dist/Init.d.ts +1 -0
- package/dist/Input.d.ts +24 -0
- package/dist/Mask.d.ts +19 -0
- package/dist/MaskPhone.d.ts +2 -0
- package/dist/Message.d.ts +15 -0
- package/dist/Modal.d.ts +20 -0
- package/dist/Notes.d.ts +44 -0
- package/dist/Number.d.ts +22 -0
- package/dist/Options.d.ts +22 -0
- package/dist/Palette.d.ts +9 -0
- package/dist/Password.d.ts +23 -0
- package/dist/Phone.d.ts +18 -0
- package/dist/Progress.d.ts +9 -0
- package/dist/Rating.d.ts +0 -0
- package/dist/Search.d.ts +2 -0
- package/dist/Select.d.ts +22 -0
- package/dist/Switch.d.ts +6 -0
- package/dist/Textarea.d.ts +20 -0
- package/dist/Toogle.d.ts +8 -0
- package/dist/Users.d.ts +1 -0
- package/dist/_Date.d.ts +1 -0
- package/dist/_Money.d.ts +22 -0
- package/dist/_Month.d.ts +17 -0
- package/dist/_Set.d.ts +0 -0
- package/dist/_Time.d.ts +0 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.es.js +5708 -0
- package/dist/index.umd.js +118 -0
- package/dist/interfaface.d.ts +15 -0
- package/dist/onEvent.d.ts +2 -0
- package/dist/use.d.ts +10 -0
- package/package.json +38 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
(function(N,ft){typeof exports=="object"&&typeof module<"u"?module.exports=ft(require("react")):typeof define=="function"&&define.amd?define(["react"],ft):(N=typeof globalThis<"u"?globalThis:N||self,N.elCRM=N.elCRM||{},N.elCRM.components=ft(N.React))})(this,function(N){"use strict";var ft=document.createElement("style");ft.textContent=`@charset "UTF-8";._notice_13j98_2{position:absolute;top:var(--notice-top);left:var(--notice-left);right:var(--notice-right);bottom:var(--notice-bottom);z-index:1111;font-family:var(--notice-family)}._notice_13j98_2 ._error_13j98_11{color:var(--notice-error, #bb2014)}._notice_13j98_2 ._success_13j98_14{color:var(--notice-success, #367738)}._notice_13j98_2 ._remark_13j98_17{color:var(--notice-remark, #b77513)}._notice_13j98_2 ._copy_13j98_20{color:var(--notice-copy, #3f51b5)}._notice_13j98_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_13j98_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_13j98_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_13j98_1 1s 1;animation-fill-mode:forwards}._notice_13j98_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_13j98_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_13j98_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_13j98_1{0%{opacity:1}to{opacity:0}}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--modal-radius: 10px}[shake=true]{-webkit-animation-name:_shake_txgsc_1;animation-name:_shake_txgsc_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_txgsc_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}._modal_txgsc_79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._modal_txgsc_79._size-a_txgsc_89 ._w_txgsc_15{width:auto;margin:auto 20px}._modal_txgsc_79._size-s_txgsc_94 ._w_txgsc_15{width:400px}._modal_txgsc_79._size-m_txgsc_98 ._w_txgsc_15{width:500px}._modal_txgsc_79._size-l_txgsc_102 ._w_txgsc_15{width:800px}._modal_txgsc_79._size-x_txgsc_106 ._w_txgsc_15{width:1000px}._modal_txgsc_79._size-f_txgsc_110 ._w_txgsc_15{width:100%;max-width:1200px;min-width:910px}._o_txgsc_116{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--modal-background-overflow, rgba(0, 0, 0, .7215686275))}._w_txgsc_15{box-shadow:5px 7px 18px 0 var(--modal-background-overflow, rgba(0, 0, 0, .7215686275));background-image:var(--modal-background-image);background-color:var(--modal-background-color);border-radius:var(--modal-radius);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_txgsc_141{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--modal-color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_txgsc_155{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--modal-color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_txgsc_155 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_txgsc_155 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_txgsc_155 li:last-child{border-bottom:0}._l_txgsc_155 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_txgsc_192{padding-right:10px}._x_txgsc_196{cursor:pointer;color:var(--modal-exit);opacity:.5;display:flex}._x_txgsc_196 svg{width:20px}._x_txgsc_196:hover{opacity:1}._s_txgsc_89{flex:1;overflow-y:scroll}._c_txgsc_214{text-align:center;margin:20px}._f_txgsc_219{padding:0 20px;display:flex;flex-direction:column}._f_txgsc_219 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_txgsc_219 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_txgsc_219._row_txgsc_241 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_txgsc_219._row_txgsc_241 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_txgsc_219._col_txgsc_253 dt{padding-bottom:8px;margin-left:7px}._g_txgsc_258{display:flex;gap:10px;overflow:hidden}._c_txgsc_214{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_txgsc_214:first-child{margin-left:20px}._c_txgsc_214:last-child{margin-right:20px}._c_txgsc_214:hover{opacity:1;background:var(--tinge)}._c_txgsc_214 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_txgsc_214 b{text-align:center;display:block;color:var(--color)}._c_txgsc_214 p{text-align:center;font-size:15px;color:var(--text)}._m_txgsc_79{flex:1}._btn_1k1b3_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1k1b3_1:hover{opacity:1}._confirm_1k1b3_15{background:var(--button-confirm-bg, #4caf50);color:var(--button-confirm-color, #fff)}._cancel_1k1b3_20{background:var(--button-cancel-bg, #f44336);color:var(--button-cancel-color, #fff)}._action_1k1b3_25{background:var(--button-action-bg, #4094f7);color:var(--button-action-color, #fff)}._disabled_1k1b3_30{background:var(--button-disabled-bg, #efefef);color:var(--button-disabled-color, #000);opacity:1;cursor:default}._await_1k1b3_37{background:var(--button-await-bg, #efefef);color:var(--button-await-color, #000);opacity:1;cursor:default}._m_1k1b3_44{min-width:200px}._l_1k1b3_48{flex:1}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(ft);var Et={exports:{}},mt={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Pt;function Kt(){if(Pt)return mt;Pt=1;var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function x(w,a,m){var i,v={},h=null,C=null;m!==void 0&&(h=""+m),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(C=a.ref);for(i in a)c.call(a,i)&&!b.hasOwnProperty(i)&&(v[i]=a[i]);if(w&&w.defaultProps)for(i in a=w.defaultProps,a)v[i]===void 0&&(v[i]=a[i]);return{$$typeof:u,type:w,key:h,ref:C,props:v,_owner:d.current}}return mt.Fragment=_,mt.jsx=x,mt.jsxs=x,mt}var yt={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.development.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var It;function zt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),w=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,k="@@iterator";function R(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[k];return typeof t=="function"?t:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M("error",e,r)}}function M(e,t,r){{var o=O.ReactDebugCurrentFrame,y=o.getStackAddendum();y!==""&&(t+="%s",r=r.concat([y]));var g=r.map(function(l){return String(l)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $=!1,A=!1,P=!1,W=!1,K=!1,G;G=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===b||K||e===d||e===m||e===i||W||e===C||$||A||P||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===x||e.$$typeof===w||e.$$typeof===a||e.$$typeof===G||e.getModuleId!==void 0))}function U(e,t,r){var o=e.displayName;if(o)return o;var y=t.displayName||t.name||"";return y!==""?r+"("+y+")":r}function L(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 c:return"Fragment";case _:return"Portal";case b:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var t=e;return L(t)+".Consumer";case x:var r=e;return L(r._context)+".Provider";case a:return U(e,e.render,"ForwardRef");case v:var o=e.displayName||null;return o!==null?o:I(e.type)||"Memo";case h:{var y=e,g=y._payload,l=y._init;try{return I(l(g))}catch{return null}}}return null}var z=Object.assign,Y=0,me,ee,pe,ve,ye,he,be;function ke(){}ke.__reactDisabledLog=!0;function Le(){{if(Y===0){me=console.log,ee=console.info,pe=console.warn,ve=console.error,ye=console.group,he=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ue(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:me}),info:z({},e,{value:ee}),warn:z({},e,{value:pe}),error:z({},e,{value:ve}),group:z({},e,{value:ye}),groupCollapsed:z({},e,{value:he}),groupEnd:z({},e,{value:be})})}Y<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=O.ReactCurrentDispatcher,_e;function te(e,t,r){{if(_e===void 0)try{throw Error()}catch(y){var o=y.stack.trim().match(/\n( *(at )?)/);_e=o&&o[1]||""}return`
|
|
19
|
+
`+_e+e}}var se=!1,re;{var We=typeof WeakMap=="function"?WeakMap:Map;re=new We}function xe(e,t){if(!e||se)return"";{var r=re.get(e);if(r!==void 0)return r}var o;se=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ie.current,ie.current=null,Le();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(F){o=F}Reflect.construct(e,[],l)}else{try{l.call()}catch(F){o=F}e.call(l.prototype)}}else{try{throw Error()}catch(F){o=F}e()}}catch(F){if(F&&o&&typeof F.stack=="string"){for(var s=F.stack.split(`
|
|
20
|
+
`),D=o.stack.split(`
|
|
21
|
+
`),j=s.length-1,E=D.length-1;j>=1&&E>=0&&s[j]!==D[E];)E--;for(;j>=1&&E>=0;j--,E--)if(s[j]!==D[E]){if(j!==1||E!==1)do if(j--,E--,E<0||s[j]!==D[E]){var B=`
|
|
22
|
+
`+s[j].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,B),B}while(j>=1&&E>=0);break}}}finally{se=!1,ie.current=g,Ue(),Error.prepareStackTrace=y}var J=e?e.displayName||e.name:"",H=J?te(J):"";return typeof e=="function"&&re.set(e,H),H}function Ke(e,t,r){return xe(e,!1)}function ze(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,r){if(e==null)return"";if(typeof e=="function")return xe(e,ze(e));if(typeof e=="string")return te(e);switch(e){case m:return te("Suspense");case i:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return Ke(e.render);case v:return ne(e.type,t,r);case h:{var o=e,y=o._payload,g=o._init;try{return ne(g(y),t,r)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,we={},je=O.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}function Ge(e,t,r,o,y){{var g=Function.call.bind(V);for(var l in e)if(g(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var D=Error((o||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}s=e[l](t,l,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){s=j}s&&!(s instanceof Error)&&(ae(y),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,l,typeof s),ae(null)),s instanceof Error&&!(s.message in we)&&(we[s.message]=!0,ae(y),f("Failed %s type: %s",r,s.message),ae(null))}}}var Ye=Array.isArray;function le(e){return Ye(e)}function He(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function qe(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Ee(e){if(qe(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Se=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Re,Te;function Ze(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ve(e,t){typeof e.ref=="string"&&Se.current}function Qe(e,t){{var r=function(){Re||(Re=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function et(e,t){{var r=function(){Te||(Te=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var tt=function(e,t,r,o,y,g,l){var s={$$typeof:u,type:e,key:t,ref:r,props:l,_owner:g};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function rt(e,t,r,o,y){{var g,l={},s=null,D=null;r!==void 0&&(Ee(r),s=""+r),Xe(t)&&(Ee(t.key),s=""+t.key),Ze(t)&&(D=t.ref,Ve(t,y));for(g in t)V.call(t,g)&&!Je.hasOwnProperty(g)&&(l[g]=t[g]);if(e&&e.defaultProps){var j=e.defaultProps;for(g in j)l[g]===void 0&&(l[g]=j[g])}if(s||D){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Qe(l,E),D&&et(l,E)}return tt(e,s,D,y,o,Se.current,l)}}var ce=O.ReactCurrentOwner,Oe=O.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(r)}else Oe.setExtraStackFrame(null)}var de;de=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function De(){{if(ce.current){var e=I(ce.current.type);if(e)return`
|
|
23
|
+
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function nt(e){return""}var Pe={};function at(e){{var t=De();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
25
|
+
|
|
26
|
+
Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=at(t);if(Pe[r])return;Pe[r]=!0;var o="";e&&e._owner&&e._owner!==ce.current&&(o=" It was passed a child from "+I(e._owner.type)+"."),q(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,o),q(null)}}function Ne(e,t){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var o=e[r];ue(o)&&Ie(o,t)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var y=R(e);if(typeof y=="function"&&y!==e.entries)for(var g=y.call(e),l;!(l=g.next()).done;)ue(l.value)&&Ie(l.value,t)}}}function ot(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===a||t.$$typeof===v))r=t.propTypes;else return;if(r){var o=I(t);Ge(r,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!de){de=!0;var y=I(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function it(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var o=t[r];if(o!=="children"&&o!=="key"){q(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),q(null);break}}e.ref!==null&&(q(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Fe={};function Me(e,t,r,o,y,g){{var l=T(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 D=nt();D?s+=D:s+=De();var j;e===null?j="null":le(e)?j="array":e!==void 0&&e.$$typeof===u?(j="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,s)}var E=rt(e,t,r,y,g);if(E==null)return E;if(l){var B=t.children;if(B!==void 0)if(o)if(le(B)){for(var J=0;J<B.length;J++)Ne(B[J],e);Object.freeze&&Object.freeze(B)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(B,e)}if(V.call(t,"key")){var H=I(e),F=Object.keys(t).filter(function(ut){return ut!=="key"}),fe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[H+fe]){var dt=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
|
|
27
|
+
let props = %s;
|
|
28
|
+
<%s {...props} />
|
|
29
|
+
React keys must be passed directly to JSX without using spread:
|
|
30
|
+
let props = %s;
|
|
31
|
+
<%s key={someKey} {...props} />`,fe,H,dt,H),Fe[H+fe]=!0}}return e===c?it(E):ot(E),E}}function _t(e,t,r){return Me(e,t,r,!0)}function st(e,t,r){return Me(e,t,r,!1)}var lt=st,ct=_t;yt.Fragment=c,yt.jsx=lt,yt.jsxs=ct}()),yt}process.env.NODE_ENV==="production"?Et.exports=Kt():Et.exports=zt();var p=Et.exports;const Gt=({onClick:n,active:u})=>(u=!!u,p.jsx("div",{role:"switch",onClick:()=>n,"aria-checked":`${u?"true":"false"}`}));let X={};X.KeyDown=n=>{n.key==="Enter"&&n.preventDefault()},X.PasteOne=n=>{n.preventDefault(),navigator.clipboard.readText().then(u=>{u=u.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,u)}).catch(u=>{})},X.Paste=(n,u)=>{u.preventDefault(),navigator.clipboard.readText().then(_=>{if(n){let c=u.target.textContent.length;if(c>=n)return;n-=c,_=_.slice(0,n)}window.document.execCommand("insertText",!1,_.replace(/(\r\n|\n|\r)/gm," "))}).catch(_=>{})},X.Focus=n=>{n.target.textContent.length===0&&(n.target.innerHTML="<br>")},X.Blur=n=>{n.target.scrollLeft=0,n.target.querySelector("br")!==null&&n.target.querySelector("br").remove()};var St={exports:{}},gt={};/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.production.min.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/var Nt;function Yt(){if(Nt)return gt;Nt=1;var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function x(w,a,m){var i,v={},h=null,C=null;m!==void 0&&(h=""+m),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(C=a.ref);for(i in a)c.call(a,i)&&!b.hasOwnProperty(i)&&(v[i]=a[i]);if(w&&w.defaultProps)for(i in a=w.defaultProps,a)v[i]===void 0&&(v[i]=a[i]);return{$$typeof:u,type:w,key:h,ref:C,props:v,_owner:d.current}}return gt.Fragment=_,gt.jsx=x,gt.jsxs=x,gt}var kt={};/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-jsx-runtime.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var Ft;function Ht(){return Ft||(Ft=1,process.env.NODE_ENV!=="production"&&function(){var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),w=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,k="@@iterator";function R(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[k];return typeof t=="function"?t:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M("error",e,r)}}function M(e,t,r){{var o=O.ReactDebugCurrentFrame,y=o.getStackAddendum();y!==""&&(t+="%s",r=r.concat([y]));var g=r.map(function(l){return String(l)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $=!1,A=!1,P=!1,W=!1,K=!1,G;G=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===b||K||e===d||e===m||e===i||W||e===C||$||A||P||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===x||e.$$typeof===w||e.$$typeof===a||e.$$typeof===G||e.getModuleId!==void 0))}function U(e,t,r){var o=e.displayName;if(o)return o;var y=t.displayName||t.name||"";return y!==""?r+"("+y+")":r}function L(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 c:return"Fragment";case _:return"Portal";case b:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var t=e;return L(t)+".Consumer";case x:var r=e;return L(r._context)+".Provider";case a:return U(e,e.render,"ForwardRef");case v:var o=e.displayName||null;return o!==null?o:I(e.type)||"Memo";case h:{var y=e,g=y._payload,l=y._init;try{return I(l(g))}catch{return null}}}return null}var z=Object.assign,Y=0,me,ee,pe,ve,ye,he,be;function ke(){}ke.__reactDisabledLog=!0;function Le(){{if(Y===0){me=console.log,ee=console.info,pe=console.warn,ve=console.error,ye=console.group,he=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ue(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:me}),info:z({},e,{value:ee}),warn:z({},e,{value:pe}),error:z({},e,{value:ve}),group:z({},e,{value:ye}),groupCollapsed:z({},e,{value:he}),groupEnd:z({},e,{value:be})})}Y<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=O.ReactCurrentDispatcher,_e;function te(e,t,r){{if(_e===void 0)try{throw Error()}catch(y){var o=y.stack.trim().match(/\n( *(at )?)/);_e=o&&o[1]||""}return`
|
|
48
|
+
`+_e+e}}var se=!1,re;{var We=typeof WeakMap=="function"?WeakMap:Map;re=new We}function xe(e,t){if(!e||se)return"";{var r=re.get(e);if(r!==void 0)return r}var o;se=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ie.current,ie.current=null,Le();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(F){o=F}Reflect.construct(e,[],l)}else{try{l.call()}catch(F){o=F}e.call(l.prototype)}}else{try{throw Error()}catch(F){o=F}e()}}catch(F){if(F&&o&&typeof F.stack=="string"){for(var s=F.stack.split(`
|
|
49
|
+
`),D=o.stack.split(`
|
|
50
|
+
`),j=s.length-1,E=D.length-1;j>=1&&E>=0&&s[j]!==D[E];)E--;for(;j>=1&&E>=0;j--,E--)if(s[j]!==D[E]){if(j!==1||E!==1)do if(j--,E--,E<0||s[j]!==D[E]){var B=`
|
|
51
|
+
`+s[j].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,B),B}while(j>=1&&E>=0);break}}}finally{se=!1,ie.current=g,Ue(),Error.prepareStackTrace=y}var J=e?e.displayName||e.name:"",H=J?te(J):"";return typeof e=="function"&&re.set(e,H),H}function Ke(e,t,r){return xe(e,!1)}function ze(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,r){if(e==null)return"";if(typeof e=="function")return xe(e,ze(e));if(typeof e=="string")return te(e);switch(e){case m:return te("Suspense");case i:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return Ke(e.render);case v:return ne(e.type,t,r);case h:{var o=e,y=o._payload,g=o._init;try{return ne(g(y),t,r)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,we={},je=O.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}function Ge(e,t,r,o,y){{var g=Function.call.bind(V);for(var l in e)if(g(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var D=Error((o||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}s=e[l](t,l,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){s=j}s&&!(s instanceof Error)&&(ae(y),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,l,typeof s),ae(null)),s instanceof Error&&!(s.message in we)&&(we[s.message]=!0,ae(y),f("Failed %s type: %s",r,s.message),ae(null))}}}var Ye=Array.isArray;function le(e){return Ye(e)}function He(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function qe(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Ee(e){if(qe(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Se=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Re,Te;function Ze(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ve(e,t){typeof e.ref=="string"&&Se.current}function Qe(e,t){{var r=function(){Re||(Re=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function et(e,t){{var r=function(){Te||(Te=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var tt=function(e,t,r,o,y,g,l){var s={$$typeof:u,type:e,key:t,ref:r,props:l,_owner:g};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function rt(e,t,r,o,y){{var g,l={},s=null,D=null;r!==void 0&&(Ee(r),s=""+r),Xe(t)&&(Ee(t.key),s=""+t.key),Ze(t)&&(D=t.ref,Ve(t));for(g in t)V.call(t,g)&&!Je.hasOwnProperty(g)&&(l[g]=t[g]);if(e&&e.defaultProps){var j=e.defaultProps;for(g in j)l[g]===void 0&&(l[g]=j[g])}if(s||D){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Qe(l,E),D&&et(l,E)}return tt(e,s,D,y,o,Se.current,l)}}var ce=O.ReactCurrentOwner,Oe=O.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(r)}else Oe.setExtraStackFrame(null)}var de;de=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function De(){{if(ce.current){var e=I(ce.current.type);if(e)return`
|
|
52
|
+
|
|
53
|
+
Check the render method of \``+e+"`."}return""}}function nt(e){return""}var Pe={};function at(e){{var t=De();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
54
|
+
|
|
55
|
+
Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=at(t);if(Pe[r])return;Pe[r]=!0;var o="";e&&e._owner&&e._owner!==ce.current&&(o=" It was passed a child from "+I(e._owner.type)+"."),q(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,o),q(null)}}function Ne(e,t){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var o=e[r];ue(o)&&Ie(o,t)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var y=R(e);if(typeof y=="function"&&y!==e.entries)for(var g=y.call(e),l;!(l=g.next()).done;)ue(l.value)&&Ie(l.value,t)}}}function ot(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===a||t.$$typeof===v))r=t.propTypes;else return;if(r){var o=I(t);Ge(r,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!de){de=!0;var y=I(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function it(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var o=t[r];if(o!=="children"&&o!=="key"){q(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),q(null);break}}e.ref!==null&&(q(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Fe={};function Me(e,t,r,o,y,g){{var l=T(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 D=nt();D?s+=D:s+=De();var j;e===null?j="null":le(e)?j="array":e!==void 0&&e.$$typeof===u?(j="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,s)}var E=rt(e,t,r,y,g);if(E==null)return E;if(l){var B=t.children;if(B!==void 0)if(o)if(le(B)){for(var J=0;J<B.length;J++)Ne(B[J],e);Object.freeze&&Object.freeze(B)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(B,e)}if(V.call(t,"key")){var H=I(e),F=Object.keys(t).filter(function(ut){return ut!=="key"}),fe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[H+fe]){var dt=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
|
|
56
|
+
let props = %s;
|
|
57
|
+
<%s {...props} />
|
|
58
|
+
React keys must be passed directly to JSX without using spread:
|
|
59
|
+
let props = %s;
|
|
60
|
+
<%s key={someKey} {...props} />`,fe,H,dt,H),Fe[H+fe]=!0}}return e===c?it(E):ot(E),E}}function _t(e,t,r){return Me(e,t,r,!0)}function st(e,t,r){return Me(e,t,r,!1)}var lt=st,ct=_t;kt.Fragment=c,kt.jsx=lt,kt.jsxs=ct}()),kt}process.env.NODE_ENV==="production"?St.exports=Yt():St.exports=Ht();var Q=St.exports;const qt="_notice_13j98_2",Jt="_error_13j98_11",Zt="_success_13j98_14",Xt="_remark_13j98_17",Vt="_copy_13j98_20",Mt={notice:qt,error:Jt,success:Zt,remark:Xt,copy:Vt,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let $e={};function vt({data:n}){let[u,_]=N.useState("show");N.useEffect(()=>{n.hide&&(setTimeout(function(){_("hide")},1800),setTimeout(function(){$e.del(n.key)},2500))},[n.key]);let c,d;switch(n.type){case"error":c=Q.jsx(Be.error,{}),d="Ошибка:";break;case"success":c=Q.jsx(Be.success,{}),d="Информация:";break;case"copy":c=Q.jsx(Be.success,{}),d="Копирование:";break;case"remark":c=Q.jsx(Be.success,{}),d="Подсказка:";break;default:c=Q.jsx(Be.success,{}),d="Предупреждение:";break}return Q.jsxs("li",{className:Mt[n.type],"data-status":u,children:[c,Q.jsx("b",{children:d}),Q.jsx("p",{children:n.text})]})}function Qt({data:n}){let[u,_]=N.useState("show");return N.useEffect(()=>{n.hide&&(setTimeout(function(){_("hide")},1800),setTimeout(function(){$e.del(n.key)},2500))},[n.key]),Q.jsx("li",{className:"item","data-status":u,children:n.text})}const Be={};Be.error=()=>Q.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[Q.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"}),Q.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"})]}),Be.success=()=>Q.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[Q.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"}),Q.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 pt;(n=>{function u(){let[a,m]=N.useState([]);return $e.set=i=>{m([...a,i])},$e.del=i=>{m(a.filter(v=>v.key!==i))},a.length===0?"":Q.jsx("ul",{className:Mt.notice,children:a.map(i=>i.item)})}n.Init=u;function _(a,m=!0){let i=Date.now(),v={key:i,text:a,hide:m,type:"error"};$e.set({item:Q.jsx(vt,{data:v},i),key:i})}n.Error=_;function c(a,m=!0){let i=Date.now(),v={key:i,text:a,hide:m,type:"success"};$e.set({item:Q.jsx(vt,{data:v},i),key:i})}n.Success=c;function d(a,m=!0){let i=Date.now(),v={key:i,hide:m,text:a};$e.set({item:Q.jsx(Qt,{data:v},i),key:i})}n.Custom=d;function b(a){let m=Date.now(),i={key:m,hide:!0,...a};$e.set({item:Q.jsx(vt,{data:i},m),key:m})}n.Send=b;function x(a,m=!0){let i=Date.now(),v={key:i,text:a,hide:m,type:"remark"};$e.set({item:Q.jsx(vt,{data:v},i),key:i})}n.Remark=x;function w(a,m=!0){let i=Date.now(),v={key:i,text:a,hide:m,type:"copy"};$e.set({item:Q.jsx(vt,{data:v},i),key:i})}n.Copy=w})(pt||(pt={}));function $t({id:n,value:u,onValue:_,name:c,placeholder:d="",title:b="",error:x="",hide:w=!1,edit:a=!0,active:m=!0,after:i="",before:v="",show:h=!0,maxLength:C,onSave:S,className:k="",isCopy:R=!0,isReload:O=!1}){let f=!!(w&&(u===""||u===void 0)),M=T=>{_&&_({value:T.target.textContent.trim(),name:c,reload:O})},$=T=>{C&&T.target.textContent.trim().length>=C&&T.key!=="Backspace"&&T.preventDefault(),T.key==="Enter"&&T.preventDefault()},A=T=>{R&&(T.preventDefault(),navigator.clipboard.writeText(T.target.textContent.trim()).then(function(){pt.Copy("Данные в буфер обмене")},function(U){}))},P=T=>{T.preventDefault(),navigator.clipboard.readText().then(U=>{if(C){let L=T.target.textContent.length;if(L>=C)return;C-=L,U=U.slice(0,C)}window.document.execCommand("insertText",!1,U.replace(/(\r\n|\n|\r)/gm," "))}).catch(U=>{})};if(!(a&&m)&&!h||!(a&&m)&&f)return"";const W={};W.field="input",k&&(W.className=k);const K={};d&&(K.placeholder=d),a&&m&&(K.edit="");const G=T=>{X.Blur(T),S==null||S({value:T.target.textContent.trim(),name:c})};return p.jsxs("dl",{...W,children:[b?p.jsx("dt",{children:b}):"",v,p.jsx("dd",{onPaste:P,onInput:M,onBlur:G,onKeyDown:$,onContextMenu:A,spellCheck:"true",contentEditable:a&&m?X.ContentEditable:"false",suppressContentEditableWarning:!0,...K,children:u}),i,x?p.jsx("em",{children:x}):""]})}function er({onClick:n,onSend:u,name:_,onRef:c}){let[d,b]=N.useState(!1);const x=()=>{if(n)return n();d||(b(!0),u&&u(b))};return p.jsx("button",{ref:c,"data-form":"button",className:d?"btn await":"btn confirm pointer",onClick:x,children:d?"Ожидайте":_})}function tr({value:n,onValue:u,onActive:_,data:c,name:d,view:b,maxLength:x,edit:w=!0,active:a=!0,placeholder:m="Введите сообщение"}){const i=N.useRef({value:n,timerId:null,shift:!1,send:!0}),v=()=>{i.current.value.length>0?i.current.send&&(_(!0),i.current.send=!1,i.current.timerId=setTimeout(()=>{i.current.send=!0},3e3)):_(!1)},h=f=>{i.current.value=f.target.textContent,v()},C=f=>{f.keyCode===16&&(i.current.shift=!0),f.keyCode===13&&!i.current.shift&&(f.preventDefault(),i.current.value.length!==0&&(f.target.textContent="",c&&c(i.current.value),u&&u(i.current.value),i.current.value="",_(!1)))},S=f=>{f.keyCode===16&&(i.current.shift=!1)},k=f=>{f.preventDefault(),navigator.clipboard.readText().then(M=>{if(x){let $=f.target.textContent.length;if($>=x)return;x-=$,M=M.slice(0,x)}window.document.execCommand("insertText",!1,M)}).catch(M=>{})},R=()=>{_(!1)},O={spellCheck:"true"};return m&&(O.placeholder=m),w&&a&&(O.contentEditable=X.ContentEditable),p.jsx("dl",{"data-form":"message",children:p.jsx("dd",{onPaste:k,onInput:h,onKeyUp:S,onKeyDown:C,onBlur:R,...O,suppressContentEditableWarning:!0,children:n})})}function rr(n){let u=()=>n.title?p.jsx("dt",{children:n.title}):"",_=n.edit!==void 0?n.edit:!0,c=n.active!==void 0?n.active:!0,d=n.placeholder!==void 0?n.placeholder:"",b=a=>{n.onValue({value:a.target.textContent,name:n.name})},x=a=>{a.key==="Enter"&&a.preventDefault()},w=a=>{a.preventDefault(),navigator.clipboard.readText().then(m=>{window.document.execCommand("insertText",!1,m)}).catch(m=>{})};return p.jsxs("dl",{"data-form":"input","type-data":"generator",children:[u(),p.jsx("dd",{onPaste:w,onInput:b,onKeyDown:x,contentEditable:_&&c?X.ContentEditable:"false","data-placeholder":d,suppressContentEditableWarning:!0,children:n.value})]})}function nr({value:n,onValue:u,maxLength:_,placeholder:c="",name:d}){let b=(S,k)=>Number(Math.round(S+Math.random()*(k-S))),x=N.useRef(null),w=N.useRef(null),a=b(1e4,99999),m=S=>{S.key!=="Backspace"&&(S.key==="Enter"&&S.preventDefault(),S.target.textContent.length===5&&S.preventDefault(),/\d/.test(S.key)||S.preventDefault())},i=S=>{u({value:Number(S.target.textContent)===a,name:d})},v=S=>{S.preventDefault(),navigator.clipboard.readText().then(k=>{if(_){let R=S.target.textContent.length;if(R>=_)return;_-=R,k=k.slice(0,_)}window.document.execCommand("insertText",!1,k.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(k=>{})};N.useEffect(()=>{const S=x.current,k=S.getContext("2d");k.clearRect(0,0,S.width,S.height),k.font="30px brush script mt",k.fillStyle="#eee",k.textAlign="center",k.fillText(a,50,27),w.current.textContent=""},[a]);const h={};h.field="captcha";const C={};return c&&(C.placeholder=c),p.jsxs("dl",{...h,children:[p.jsx("dd",{ref:w,onPaste:v,onInput:i,onBlur:X.Blur,onKeyDown:m,contentEditable:X.ContentEditable,suppressContentEditableWarning:!0,...C}),p.jsx("canvas",{ref:x,width:"100",height:"35"})]})}function ar({className:n,title:u,error:_,edit:c=!0,real:d,onValue:b,empty:x,name:w}){let a={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},m=k=>{if(k.preventDefault(),!c)return;k.target.textContent=k.target.textContent.slice(-1).replace(/[^+\d]/g,"");let R=window.getSelection(),O=k.target.textContent.length;if(a[k.target.id]=k.target.textContent,a.code=a.n1+""+a.n2+a.n3+a.n4+a.n5+a.n6,R.collapse(k.target.firstChild,1),O===0){k.target.blur(),k.target.focus();return}k.target.nextSibling!=null&&k.target.nextSibling.focus()},i=k=>{if(!c)return k.preventDefault();if(k.key==="Enter"&&k.preventDefault(),k.key==="Backspace"){if(k.preventDefault(),k.target.textContent="",a[k.target.id]="",k.target.previousSibling!=null){let R=k.target.previousSibling.id.slice(1);k.target.previousSibling.textContent="",a["n"+R]="",k.target.previousSibling.focus()}a.code=a.n1+""+a.n2+a.n3+a.n4+a.n5+a.n6}},v=k=>{if(!c)return k.preventDefault();if(d)b&&b({value:a.code,name:w});else if(a.code.length===6&&(k.target.blur(),b&&b({value:a.code,name:w}),x)){a={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let R=1;R<=6;R++){let O=document.getElementById("n"+R);O&&(O.textContent="")}}},h=k=>{k.target.textContent=""},C=k=>{k.preventDefault(),navigator.clipboard.readText().then(R=>{var $;var O=/\d+/g;let f=($=R.match(O))==null?void 0:$.toString();if(!f)return;let M=f.split("");for(let A=1;A<=M.length;A++){let P=document.getElementById("n"+A);P&&(P.textContent=M[A-1],a["n"+A]=M[A-1])}if(a.code=a.n1+""+a.n2+a.n3+a.n4+a.n5+a.n6,a.code.length===6&&(k.target.blur(),b&&b({value:a.code,name:w}),x)){a={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let A=1;A<=6;A++){let P=document.getElementById("n"+A);P&&(P.textContent="")}}}).catch(R=>{})};const S={};return S.field="code",n&&(S.className=n),p.jsxs("dl",{...S,children:[u?p.jsx("dt",{children:u}):"",p.jsxs("div",{children:[p.jsx("dd",{id:"n1",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0}),p.jsx("dd",{id:"n2",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0}),p.jsx("dd",{id:"n3",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0}),p.jsx("dd",{id:"n4",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0}),p.jsx("dd",{id:"n5",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0}),p.jsx("dd",{id:"n6",inputMode:"numeric",onKeyDown:i,onKeyUp:v,onFocus:h,onPaste:C,onInput:m,contentEditable:!0})]}),_?p.jsx("em",{children:_}):""]})}function or({id:n,value:u,onValue:_,name:c,placeholder:d="",title:b="",error:x="",hide:w=!1,length:a=6,edit:m=!0,active:i=!0,after:v="",show:h=!0,view:C,onSave:S,className:k=""}){m=m!==void 0?m:!0,i=i!==void 0?i:!0;let[R,O]=N.useState(u),f=$=>{O($),_==null||_({value:$,name:c}),S==null||S({value:$,name:c})};const M={};return M.field="color",k&&(M.className=k),p.jsx(p.Fragment,{children:C==="icon"?p.jsx("i",{"data-icon":"F043"}):p.jsxs("dl",{...M,children:[b&&p.jsx("dt",{children:b}),p.jsx("dd",{children:a>0&&Array.from(Array(a).keys()).map($=>p.jsx("s",{active:(Number($)===Number(R))+"",onClick:()=>f($),style:{backgroundColor:`var(--color-${$})`}},$))}),x&&p.jsx("em",{children:x})]})})}var Rt={exports:{}},ht={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-jsx-runtime.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var At;function ir(){if(At)return ht;At=1;var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function x(w,a,m){var i,v={},h=null,C=null;m!==void 0&&(h=""+m),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(C=a.ref);for(i in a)c.call(a,i)&&!b.hasOwnProperty(i)&&(v[i]=a[i]);if(w&&w.defaultProps)for(i in a=w.defaultProps,a)v[i]===void 0&&(v[i]=a[i]);return{$$typeof:u,type:w,key:h,ref:C,props:v,_owner:d.current}}return ht.Fragment=_,ht.jsx=x,ht.jsxs=x,ht}var xt={};/**
|
|
69
|
+
* @license React
|
|
70
|
+
* react-jsx-runtime.development.js
|
|
71
|
+
*
|
|
72
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the MIT license found in the
|
|
75
|
+
* LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var Bt;function _r(){return Bt||(Bt=1,process.env.NODE_ENV!=="production"&&function(){var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),w=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,k="@@iterator";function R(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[k];return typeof t=="function"?t:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M("error",e,r)}}function M(e,t,r){{var o=O.ReactDebugCurrentFrame,y=o.getStackAddendum();y!==""&&(t+="%s",r=r.concat([y]));var g=r.map(function(l){return String(l)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $=!1,A=!1,P=!1,W=!1,K=!1,G;G=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===b||K||e===d||e===m||e===i||W||e===C||$||A||P||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===x||e.$$typeof===w||e.$$typeof===a||e.$$typeof===G||e.getModuleId!==void 0))}function U(e,t,r){var o=e.displayName;if(o)return o;var y=t.displayName||t.name||"";return y!==""?r+"("+y+")":r}function L(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 c:return"Fragment";case _:return"Portal";case b:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var t=e;return L(t)+".Consumer";case x:var r=e;return L(r._context)+".Provider";case a:return U(e,e.render,"ForwardRef");case v:var o=e.displayName||null;return o!==null?o:I(e.type)||"Memo";case h:{var y=e,g=y._payload,l=y._init;try{return I(l(g))}catch{return null}}}return null}var z=Object.assign,Y=0,me,ee,pe,ve,ye,he,be;function ke(){}ke.__reactDisabledLog=!0;function Le(){{if(Y===0){me=console.log,ee=console.info,pe=console.warn,ve=console.error,ye=console.group,he=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ue(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:me}),info:z({},e,{value:ee}),warn:z({},e,{value:pe}),error:z({},e,{value:ve}),group:z({},e,{value:ye}),groupCollapsed:z({},e,{value:he}),groupEnd:z({},e,{value:be})})}Y<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=O.ReactCurrentDispatcher,_e;function te(e,t,r){{if(_e===void 0)try{throw Error()}catch(y){var o=y.stack.trim().match(/\n( *(at )?)/);_e=o&&o[1]||""}return`
|
|
77
|
+
`+_e+e}}var se=!1,re;{var We=typeof WeakMap=="function"?WeakMap:Map;re=new We}function xe(e,t){if(!e||se)return"";{var r=re.get(e);if(r!==void 0)return r}var o;se=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ie.current,ie.current=null,Le();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(F){o=F}Reflect.construct(e,[],l)}else{try{l.call()}catch(F){o=F}e.call(l.prototype)}}else{try{throw Error()}catch(F){o=F}e()}}catch(F){if(F&&o&&typeof F.stack=="string"){for(var s=F.stack.split(`
|
|
78
|
+
`),D=o.stack.split(`
|
|
79
|
+
`),j=s.length-1,E=D.length-1;j>=1&&E>=0&&s[j]!==D[E];)E--;for(;j>=1&&E>=0;j--,E--)if(s[j]!==D[E]){if(j!==1||E!==1)do if(j--,E--,E<0||s[j]!==D[E]){var B=`
|
|
80
|
+
`+s[j].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,B),B}while(j>=1&&E>=0);break}}}finally{se=!1,ie.current=g,Ue(),Error.prepareStackTrace=y}var J=e?e.displayName||e.name:"",H=J?te(J):"";return typeof e=="function"&&re.set(e,H),H}function Ke(e,t,r){return xe(e,!1)}function ze(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,r){if(e==null)return"";if(typeof e=="function")return xe(e,ze(e));if(typeof e=="string")return te(e);switch(e){case m:return te("Suspense");case i:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return Ke(e.render);case v:return ne(e.type,t,r);case h:{var o=e,y=o._payload,g=o._init;try{return ne(g(y),t,r)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,we={},je=O.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}function Ge(e,t,r,o,y){{var g=Function.call.bind(V);for(var l in e)if(g(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var D=Error((o||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}s=e[l](t,l,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){s=j}s&&!(s instanceof Error)&&(ae(y),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,l,typeof s),ae(null)),s instanceof Error&&!(s.message in we)&&(we[s.message]=!0,ae(y),f("Failed %s type: %s",r,s.message),ae(null))}}}var Ye=Array.isArray;function le(e){return Ye(e)}function He(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function qe(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Ee(e){if(qe(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Se=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Re,Te;function Ze(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ve(e,t){typeof e.ref=="string"&&Se.current}function Qe(e,t){{var r=function(){Re||(Re=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function et(e,t){{var r=function(){Te||(Te=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var tt=function(e,t,r,o,y,g,l){var s={$$typeof:u,type:e,key:t,ref:r,props:l,_owner:g};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function rt(e,t,r,o,y){{var g,l={},s=null,D=null;r!==void 0&&(Ee(r),s=""+r),Xe(t)&&(Ee(t.key),s=""+t.key),Ze(t)&&(D=t.ref,Ve(t));for(g in t)V.call(t,g)&&!Je.hasOwnProperty(g)&&(l[g]=t[g]);if(e&&e.defaultProps){var j=e.defaultProps;for(g in j)l[g]===void 0&&(l[g]=j[g])}if(s||D){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Qe(l,E),D&&et(l,E)}return tt(e,s,D,y,o,Se.current,l)}}var ce=O.ReactCurrentOwner,Oe=O.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(r)}else Oe.setExtraStackFrame(null)}var de;de=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function De(){{if(ce.current){var e=I(ce.current.type);if(e)return`
|
|
81
|
+
|
|
82
|
+
Check the render method of \``+e+"`."}return""}}function nt(e){return""}var Pe={};function at(e){{var t=De();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
83
|
+
|
|
84
|
+
Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=at(t);if(Pe[r])return;Pe[r]=!0;var o="";e&&e._owner&&e._owner!==ce.current&&(o=" It was passed a child from "+I(e._owner.type)+"."),q(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,o),q(null)}}function Ne(e,t){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var o=e[r];ue(o)&&Ie(o,t)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var y=R(e);if(typeof y=="function"&&y!==e.entries)for(var g=y.call(e),l;!(l=g.next()).done;)ue(l.value)&&Ie(l.value,t)}}}function ot(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===a||t.$$typeof===v))r=t.propTypes;else return;if(r){var o=I(t);Ge(r,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!de){de=!0;var y=I(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function it(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var o=t[r];if(o!=="children"&&o!=="key"){q(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),q(null);break}}e.ref!==null&&(q(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Fe={};function Me(e,t,r,o,y,g){{var l=T(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 D=nt();D?s+=D:s+=De();var j;e===null?j="null":le(e)?j="array":e!==void 0&&e.$$typeof===u?(j="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,s)}var E=rt(e,t,r,y,g);if(E==null)return E;if(l){var B=t.children;if(B!==void 0)if(o)if(le(B)){for(var J=0;J<B.length;J++)Ne(B[J],e);Object.freeze&&Object.freeze(B)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(B,e)}if(V.call(t,"key")){var H=I(e),F=Object.keys(t).filter(function(ut){return ut!=="key"}),fe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[H+fe]){var dt=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
|
|
85
|
+
let props = %s;
|
|
86
|
+
<%s {...props} />
|
|
87
|
+
React keys must be passed directly to JSX without using spread:
|
|
88
|
+
let props = %s;
|
|
89
|
+
<%s key={someKey} {...props} />`,fe,H,dt,H),Fe[H+fe]=!0}}return e===c?it(E):ot(E),E}}function _t(e,t,r){return Me(e,t,r,!0)}function st(e,t,r){return Me(e,t,r,!1)}var lt=st,ct=_t;xt.Fragment=c,xt.jsx=lt,xt.jsxs=ct}()),xt}process.env.NODE_ENV==="production"?Rt.exports=ir():Rt.exports=_r();var Z=Rt.exports;const sr="_shake_txgsc_1",lr="_modal_txgsc_79",cr="_w_txgsc_15",dr="_o_txgsc_116",ur="_h_txgsc_141",fr="_l_txgsc_155",pr="_t_txgsc_192",mr="_x_txgsc_196",yr="_s_txgsc_89",gr="_c_txgsc_214",vr="_f_txgsc_219",hr="_row_txgsc_241",br="_col_txgsc_253",kr="_g_txgsc_258",xr="_m_txgsc_79",oe={shake:sr,modal:lr,"size-a":"_size-a_txgsc_89",w:cr,"size-s":"_size-s_txgsc_94","size-m":"_size-m_txgsc_98","size-l":"_size-l_txgsc_102","size-x":"_size-x_txgsc_106","size-f":"_size-f_txgsc_110",o:dr,h:ur,l:fr,t:pr,x:mr,s:yr,c:gr,f:vr,row:hr,col:br,g:kr,m:xr};function wr({children:n}){return Z.jsx("div",{className:oe.l,children:Z.jsx("ul",{children:n})})}function jr({children:n}){return Z.jsx("div",{className:oe.s,children:n})}function Cr({children:n,viev:u="row",className:_}){let c={};return _&&(c.className=_),Z.jsx("ul",{className:[oe.f,oe[u],c.className].join(" "),children:n})}function Er({children:n}){return Z.jsx("div",{className:oe.c,children:n})}function Sr({children:n}){return Z.jsx("div",{className:oe.g,children:n})}var Tt={exports:{}},bt={};/**
|
|
90
|
+
* @license React
|
|
91
|
+
* react-jsx-runtime.production.min.js
|
|
92
|
+
*
|
|
93
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the MIT license found in the
|
|
96
|
+
* LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/var Lt;function Rr(){if(Lt)return bt;Lt=1;var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function x(w,a,m){var i,v={},h=null,C=null;m!==void 0&&(h=""+m),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(C=a.ref);for(i in a)c.call(a,i)&&!b.hasOwnProperty(i)&&(v[i]=a[i]);if(w&&w.defaultProps)for(i in a=w.defaultProps,a)v[i]===void 0&&(v[i]=a[i]);return{$$typeof:u,type:w,key:h,ref:C,props:v,_owner:d.current}}return bt.Fragment=_,bt.jsx=x,bt.jsxs=x,bt}var wt={};/**
|
|
98
|
+
* @license React
|
|
99
|
+
* react-jsx-runtime.development.js
|
|
100
|
+
*
|
|
101
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the MIT license found in the
|
|
104
|
+
* LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/var Ut;function Tr(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var n=N,u=Symbol.for("react.element"),_=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),w=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,k="@@iterator";function R(e){if(e===null||typeof e!="object")return null;var t=S&&e[S]||e[k];return typeof t=="function"?t:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M("error",e,r)}}function M(e,t,r){{var o=O.ReactDebugCurrentFrame,y=o.getStackAddendum();y!==""&&(t+="%s",r=r.concat([y]));var g=r.map(function(l){return String(l)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $=!1,A=!1,P=!1,W=!1,K=!1,G;G=Symbol.for("react.module.reference");function T(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===b||K||e===d||e===m||e===i||W||e===C||$||A||P||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===x||e.$$typeof===w||e.$$typeof===a||e.$$typeof===G||e.getModuleId!==void 0))}function U(e,t,r){var o=e.displayName;if(o)return o;var y=t.displayName||t.name||"";return y!==""?r+"("+y+")":r}function L(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 c:return"Fragment";case _:return"Portal";case b:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var t=e;return L(t)+".Consumer";case x:var r=e;return L(r._context)+".Provider";case a:return U(e,e.render,"ForwardRef");case v:var o=e.displayName||null;return o!==null?o:I(e.type)||"Memo";case h:{var y=e,g=y._payload,l=y._init;try{return I(l(g))}catch{return null}}}return null}var z=Object.assign,Y=0,me,ee,pe,ve,ye,he,be;function ke(){}ke.__reactDisabledLog=!0;function Le(){{if(Y===0){me=console.log,ee=console.info,pe=console.warn,ve=console.error,ye=console.group,he=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ue(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:me}),info:z({},e,{value:ee}),warn:z({},e,{value:pe}),error:z({},e,{value:ve}),group:z({},e,{value:ye}),groupCollapsed:z({},e,{value:he}),groupEnd:z({},e,{value:be})})}Y<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=O.ReactCurrentDispatcher,_e;function te(e,t,r){{if(_e===void 0)try{throw Error()}catch(y){var o=y.stack.trim().match(/\n( *(at )?)/);_e=o&&o[1]||""}return`
|
|
106
|
+
`+_e+e}}var se=!1,re;{var We=typeof WeakMap=="function"?WeakMap:Map;re=new We}function xe(e,t){if(!e||se)return"";{var r=re.get(e);if(r!==void 0)return r}var o;se=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ie.current,ie.current=null,Le();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(F){o=F}Reflect.construct(e,[],l)}else{try{l.call()}catch(F){o=F}e.call(l.prototype)}}else{try{throw Error()}catch(F){o=F}e()}}catch(F){if(F&&o&&typeof F.stack=="string"){for(var s=F.stack.split(`
|
|
107
|
+
`),D=o.stack.split(`
|
|
108
|
+
`),j=s.length-1,E=D.length-1;j>=1&&E>=0&&s[j]!==D[E];)E--;for(;j>=1&&E>=0;j--,E--)if(s[j]!==D[E]){if(j!==1||E!==1)do if(j--,E--,E<0||s[j]!==D[E]){var B=`
|
|
109
|
+
`+s[j].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,B),B}while(j>=1&&E>=0);break}}}finally{se=!1,ie.current=g,Ue(),Error.prepareStackTrace=y}var J=e?e.displayName||e.name:"",H=J?te(J):"";return typeof e=="function"&&re.set(e,H),H}function Ke(e,t,r){return xe(e,!1)}function ze(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,r){if(e==null)return"";if(typeof e=="function")return xe(e,ze(e));if(typeof e=="string")return te(e);switch(e){case m:return te("Suspense");case i:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return Ke(e.render);case v:return ne(e.type,t,r);case h:{var o=e,y=o._payload,g=o._init;try{return ne(g(y),t,r)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,we={},je=O.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}function Ge(e,t,r,o,y){{var g=Function.call.bind(V);for(var l in e)if(g(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var D=Error((o||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}s=e[l](t,l,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){s=j}s&&!(s instanceof Error)&&(ae(y),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,l,typeof s),ae(null)),s instanceof Error&&!(s.message in we)&&(we[s.message]=!0,ae(y),f("Failed %s type: %s",r,s.message),ae(null))}}}var Ye=Array.isArray;function le(e){return Ye(e)}function He(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function qe(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Ee(e){if(qe(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),Ce(e)}var Se=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Re,Te;function Ze(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ve(e,t){typeof e.ref=="string"&&Se.current}function Qe(e,t){{var r=function(){Re||(Re=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function et(e,t){{var r=function(){Te||(Te=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var tt=function(e,t,r,o,y,g,l){var s={$$typeof:u,type:e,key:t,ref:r,props:l,_owner:g};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function rt(e,t,r,o,y){{var g,l={},s=null,D=null;r!==void 0&&(Ee(r),s=""+r),Xe(t)&&(Ee(t.key),s=""+t.key),Ze(t)&&(D=t.ref,Ve(t));for(g in t)V.call(t,g)&&!Je.hasOwnProperty(g)&&(l[g]=t[g]);if(e&&e.defaultProps){var j=e.defaultProps;for(g in j)l[g]===void 0&&(l[g]=j[g])}if(s||D){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Qe(l,E),D&&et(l,E)}return tt(e,s,D,y,o,Se.current,l)}}var ce=O.ReactCurrentOwner,Oe=O.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(r)}else Oe.setExtraStackFrame(null)}var de;de=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function De(){{if(ce.current){var e=I(ce.current.type);if(e)return`
|
|
110
|
+
|
|
111
|
+
Check the render method of \``+e+"`."}return""}}function nt(e){return""}var Pe={};function at(e){{var t=De();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
112
|
+
|
|
113
|
+
Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=at(t);if(Pe[r])return;Pe[r]=!0;var o="";e&&e._owner&&e._owner!==ce.current&&(o=" It was passed a child from "+I(e._owner.type)+"."),q(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,o),q(null)}}function Ne(e,t){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var o=e[r];ue(o)&&Ie(o,t)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var y=R(e);if(typeof y=="function"&&y!==e.entries)for(var g=y.call(e),l;!(l=g.next()).done;)ue(l.value)&&Ie(l.value,t)}}}function ot(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===a||t.$$typeof===v))r=t.propTypes;else return;if(r){var o=I(t);Ge(r,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!de){de=!0;var y=I(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function it(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var o=t[r];if(o!=="children"&&o!=="key"){q(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),q(null);break}}e.ref!==null&&(q(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Fe={};function Me(e,t,r,o,y,g){{var l=T(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 D=nt();D?s+=D:s+=De();var j;e===null?j="null":le(e)?j="array":e!==void 0&&e.$$typeof===u?(j="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,s)}var E=rt(e,t,r,y,g);if(E==null)return E;if(l){var B=t.children;if(B!==void 0)if(o)if(le(B)){for(var J=0;J<B.length;J++)Ne(B[J],e);Object.freeze&&Object.freeze(B)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(B,e)}if(V.call(t,"key")){var H=I(e),F=Object.keys(t).filter(function(ut){return ut!=="key"}),fe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[H+fe]){var dt=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
|
|
114
|
+
let props = %s;
|
|
115
|
+
<%s {...props} />
|
|
116
|
+
React keys must be passed directly to JSX without using spread:
|
|
117
|
+
let props = %s;
|
|
118
|
+
<%s key={someKey} {...props} />`,fe,H,dt,H),Fe[H+fe]=!0}}return e===c?it(E):ot(E),E}}function _t(e,t,r){return Me(e,t,r,!0)}function st(e,t,r){return Me(e,t,r,!1)}var lt=st,ct=_t;wt.Fragment=c,wt.jsx=lt,wt.jsxs=ct}()),wt}process.env.NODE_ENV==="production"?Tt.exports=Rr():Tt.exports=Tr();var Ot=Tt.exports;const Or="_btn_1k1b3_1",Dr="_confirm_1k1b3_15",Pr="_cancel_1k1b3_20",Ir="_action_1k1b3_25",Nr="_disabled_1k1b3_30",Fr="_m_1k1b3_44",Mr="_l_1k1b3_48",jt={btn:Or,confirm:Dr,cancel:Pr,action:Ir,disabled:Nr,await:"_await_1k1b3_37",m:Fr,l:Mr},$r=({onClick:n,onSend:u,size:_="m",view:c="confirm",children:d,isDisabled:b=!1,className:x,after:w,before:a,label:m,onRef:i,awaitText:v="Ожидайте"})=>{let[h,C]=N.useState(!1);const S=R=>{if(n)return n();h||(u?(C(!0),u(C)):R.preventDefault())};let k={};return(b||h)&&(k.disabled=!0),Ot.jsx("button",{...k,ref:i,className:[jt.btn,h?jt.disabled:jt[c],_&&jt[_],x].filter(R=>R!="").join(" "),onClick:S,children:h?v:Ot.jsxs(Ot.Fragment,{children:[a||""," ",m," ",w||""]})||d})};let Ae={};function Ar({children:n}){return Z.jsx(Z.Fragment,{children:n})}var Ct;(n=>{function u({import_modules:m}){let[i,v]=N.useState([]);return Ae.x=h=>{v(h?i.filter(C=>C.key!==h):[])},N.useEffect(()=>{m&&(Ae.i=m)},[]),Ae.add=(h,C=Date.now())=>{v([...i,{key:C,item:h}])},Z.jsx(Z.Fragment,{children:i.map(h=>h.item)})}n.Init=u;function _(m){return m&&(Ae.i=m),Ae.i}n.Import=_,n.List=wr,n.Scroll=jr,n.Form=Cr,n.Center=Er,n.Column=Sr;function c(m,i,v){Ae.i(`${m}/modal/${i}.tsx`).then(h=>{h.default.Open(v)})}n.Open=c;function d({type:m,name:i,params:v}){let[h,C]=N.useState(null);return N.useEffect(()=>{Ae.i(`${m}/modal/${i}.tsx`).then(S=>{C(S.default.Icon(v))})},[v.id]),Z.jsx(Z.Fragment,{children:h})}n.Icon=d;function b(m,i){Ae.add(Z.jsx(Ar,{children:m},String(Date.now())),i)}n.Add=b;function x(m){Ae.x(m)}n.Close=x;function w(m){if(m.target.classList[0]!=="modal")return;let i=m.target.children[0];i.setAttribute("shake",!0),setTimeout(()=>{i.setAttribute("shake",!1)},1e3)}n.Shake=w;function a({title:m,children:i,button:v,tabs:h,size:C="m",className:S="",shake:k=!0,menu:R}){const[O,f]=N.useState(!0),M=N.useRef(),$=P=>{if(v){if(v.onClick)return P(!1),v.onClick({setOpen:f});if(v.onSend)return v.onSend({setOpen:f,disabled:P})}},A=()=>{if(!k)return f(!1);M.current.setAttribute("shake",!0),setTimeout(()=>{M.current.setAttribute("shake",!1)},1e3)};return O?Z.jsxs("div",{className:`${oe.modal}`,children:[Z.jsx("div",{className:oe.o,onClick:A}),Z.jsxs("div",{className:[oe.w,oe[`s${C}`],S].filter(P=>P!="").join(" "),ref:M,children:[Z.jsxs("div",{className:oe.h,children:[Z.jsx("div",{className:oe.t,children:m}),Z.jsxs("div",{className:oe.m,children:[h&&Z.jsx("nav",{children:h.map((P,W)=>Z.jsx("span",{onClick:P.onClick,className:P.active?"active":"",children:P.name},W))}),R]}),Z.jsx("div",{className:oe.x,onClick:()=>{f(!1)},children:Z.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:Z.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i,v!==void 0?Z.jsx($r,{label:v.label,onSend:$,className:oe.btn}):""]})]}):""}n.Main=a})(Ct||(Ct={}));function Br({value:n,onValue:u,name:_,placeholder:c="",title:d,error:b,hide:x=!1,edit:w=!0,show:a=!0,active:m=!0,after:i="",view:v,modal:h,module:C,options:S,className:k}){let[R,O]=N.useState(n),f=A=>{if(!(w&&m)||!h)return;let P=h.split(".");Ct.Open(P[0],P[1],{callback:W=>{u&&u({value:W,name:_}),O(W)},onValue:u,options:S,name:_,value:n})};const M={};M.field="input",k&&(M.className=k);const $={};return c&&($.placeholder=c),x?p.jsx(p.Fragment,{}):p.jsxs("dl",{...M,children:[d&&p.jsx("dt",{children:d}),p.jsx("dd",{...$,onClick:f,edit:(w&&m)+"","data-after":i,children:R}),b&&p.jsx("em",{children:b})]})}function Lr({id:n,value:u,onValue:_,name:c,placeholder:d="",title:b="",error:x="",hide:w=!1,edit:a=!0,active:m=!0,after:i="",show:v=!0,maxLength:h,view:C,onSave:S,className:k="",isCopy:R=!0}){let[O,f]=N.useState(!1);O=a?!0:O;let M=T=>{_==null||_({value:T.target.innerText,name:c})},$=T=>{h&&T.target.textContent.trim().length>=h&&T.key!=="Backspace"&&T.preventDefault(),T.key==="Enter"&&T.preventDefault()},A=T=>{R&&(T.preventDefault(),navigator.clipboard.writeText(T.target.textContent.trim()).then(function(){pt.Copy("Данные в буфер обмене")},function(U){}))},P=T=>{T.preventDefault(),navigator.clipboard.readText().then(U=>{if(h){let L=T.target.textContent.length;if(L>=h)return;h-=L,U=U.slice(0,h)}window.document.execCommand("insertText",!1,U.replace(/(\r\n|\n|\r)/gm," "))}).catch(U=>{})};if(w)return p.jsx(p.Fragment,{});if(!(a&&m)&&!v)return"";const W={};W.field="notes",k&&(W.className=k);const K={};d&&(K.placeholder=d),a&&m&&(K.edit=""),O&&(K.open="");const G=T=>{X.Blur(T),S==null||S({value:T.target.textContent.trim(),name:c})};return p.jsxs("dl",{...W,children:[b?p.jsx("dt",{children:b}):"",p.jsx("dd",{onPaste:P,onInput:M,onBlur:G,onKeyDown:$,onContextMenu:A,contentEditable:a&&m?X.ContentEditable:"false",suppressContentEditableWarning:!0,...K,children:u}),i,x?p.jsx("em",{children:x}):""]})}function Ur({onValue:n,onSave:u,active:_,max:c,edit:d,title:b,error:x,show:w,hide:a,value:m,placeholder:i,className:v,maxLength:h,name:C,after:S="",before:k="",view:R}){d=d!==void 0?d:!0,_=_!==void 0?_:!0,a=!!(a&&(m===""||m===void 0))&&!(d&&_),i=i!==void 0?i:"",c=c!==void 0?c:99;let f=!1,M=T=>{n==null||n({value:T.target.textContent,name:C})},$=T=>{if(!(f&&T.which===86)){if(T.which===17||T.which===91)return f=!0;T.key!=="Backspace"&&(T.target.textContent.length===c&&T.preventDefault(),T.key==="Enter"&&T.preventDefault(),isNaN(T.key)&&T.preventDefault())}},A=T=>{if(T.which===17||T.which===91)return f=!1},P=T=>{T.preventDefault(),navigator.clipboard.readText().then(U=>{if(U=U.replace(/(?!^\+|\d)./g,""),h){let L=T.target.textContent.length;if(L>=h)return;h-=L,U=U.slice(0,h)}window.document.execCommand("insertText",!1,""+U)}).catch(U=>{})};const W=T=>{X.Blur(T),u==null||u({value:T.target.textContent,name:C})},K={};K.field="input",v&&(K.className=v);let G={};return d&&_?(G.edit="true",G.contentEditable=X.ContentEditable):G.contentEditable="false",G.inputMode="decimal",i&&(G.placeholder=i),a?p.jsx(p.Fragment,{}):p.jsxs("dl",{...K,children:[b&&p.jsx("dt",{children:b}),k,p.jsx("dd",{...G,onPaste:P,onInput:M,onBlur:W,onKeyDown:$,onKeyUp:A,suppressContentEditableWarning:!0,children:m}),S,x&&p.jsx("em",{children:x})]})}function Wr({value:n,onValue:u,onSave:_,name:c,placeholder:d="",className:b,title:x,error:w,edit:a=!0,active:m=!0,reload:i=!1,native:v=!1,isShow:h=!1,maxLength:C,eyes:S=[],after:k=""}){const[R,O]=N.useState(h);let f=K=>{u&&u({value:K.target.textContent,name:c,reload:i})},M=K=>{K.key==="Enter"&&K.preventDefault()},$=K=>{K.preventDefault(),navigator.clipboard.readText().then(G=>{if(C){let T=K.target.textContent.length;if(T>=C)return;C-=T,G=G.slice(0,C)}window.document.execCommand("insertText",!1,G.replace(/(\r\n|\n|\r)/gm," "))}).catch(G=>{})},A=K=>{X.Blur(K),_==null||_({value:K.target.textContent.trim(),name:c})};const P={};P.field="password",R&&(P.show=""),b&&(P.className=b);const W={};return d&&(W.placeholder=d),v?"":p.jsxs("dl",{...P,children:[x?p.jsx("dt",{children:x}):"",p.jsx("dd",{onPaste:$,onInput:f,onKeyDown:M,onBlur:A,contentEditable:a&&m?X.ContentEditable:"false",...W,suppressContentEditableWarning:!0,children:n}),S[0]&&p.jsx("i",{onClick:()=>O(!R),children:R?S[1]:S[0]}),k,w?p.jsx("em",{children:w}):""]})}const Dt={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 Kr({value:n,onValue:u,onSave:_,name:c,placeholder:d="",title:b="",error:x="",hide:w=!1,edit:a=!0,active:m=!0,after:i="",show:v=!0,view:h,className:C=""}){a=a!==void 0?a:!0,m=m!==void 0?m:!0,w=!!(w&&(n===""||n===void 0))&&!(a&&m),N.useRef(null);let k="+_(___) ___-__-__",R=!0,O=0,f=(L,I)=>{let z=document.createRange(),Y=window.getSelection();z.setStart(I.childNodes[0],L),z.collapse(!0),Y.removeAllRanges(),Y.addRange(z),I.focus()},M=L=>{let I=A(L.target.textContent);L.target.textContent=I.q,I.i=I.q.lastIndexOf(I.v.substr(-1)),I.i<I.q.length&&I.q!==k?I.i++:I.i=I.q.indexOf("_"),f(I.i,L.target),u&&u({value:I.q.replace(/\D/g,""),name:c})},$=L=>{L.preventDefault(),navigator.clipboard.readText().then(I=>{window.document.execCommand("insertText",!1,I)}).catch(I=>{})},A=L=>{let I=0,z="",Y=L.replace(/\D/g,"");Y===""&&(R=!0);let me=Y.split(""),ee="";me.forEach(ye=>{R&&(ee+=ye,Dt[ee]!==void 0&&R?(R=!1,k=Dt[ee].mask.replace(new RegExp("[0-9]","g"),"_"),z=Dt[ee].code):(R&&(O=(""+ee).length,k=`+${ee}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),z=""),O>(""+ee).length&&(R=!0,k=`+${ee}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),z="")))});let pe=k.replace(/\D/g,"");return pe.length>=Y.length&&(Y=pe),{q:k.replace(/[_\d]/g,function(){return Y.charAt(I++)||"_"}),i:I,v:Y,f:z}},P=L=>{L.preventDefault(),navigator.clipboard.writeText(L.target.textContent.replace(/\D/g,"")).then(function(){pt.Copy("Данные в буфер обмене")},function(I){})},W=A(n),K=L=>{L.key==="Enter"&&L.preventDefault()};const G=L=>{X.Blur(L),_&&_({value:L.target.textContent.replace(/\D/g,""),name:c})},T={};T.field="input",C&&(T.className=C);let U={};return a&&m?(U.edit="true",U.contentEditable=X.ContentEditable):U.contentEditable="false",d&&(U.placeholder=d),i&&(U.after=i),w?p.jsx(p.Fragment,{}):p.jsxs("dl",{...T,children:[b&&p.jsx("dt",{children:b}),p.jsx("dd",{...U,onPaste:$,onInput:M,onKeyDown:K,onContextMenu:P,onBlur:G,suppressContentEditableWarning:!0,children:W.q}),x&&p.jsx("em",{children:x})]})}const zr=({className:n,title:u,timeout:_=1e3,placeholder:c,edit:d=!0,active:b=!0,value:x,onValue:w,maxLength:a=20})=>{let m=0,i=N.useRef({textContent:x}),v=()=>{i.current.textContent.trim().length===0&&(i.current.textContent=""),clearTimeout(m),m=setTimeout(()=>{var f;return w((f=i.current)==null?void 0:f.textContent)},_)},h=()=>{i.current&&(i.current.textContent=""),w("")},C=f=>{a&&f.target.textContent.trim().length>=a&&f.key!=="Backspace"&&f.preventDefault(),f.key==="Enter"&&f.preventDefault()},S=f=>{f.preventDefault(),navigator.clipboard.readText().then(M=>{if(a){let $=f.target.textContent.length;if($>=a)return;a-=$,M=M.slice(0,a)}window.document.execCommand("insertText",!1,M.replace(/(\r\n|\n|\r)/gm," "))}).catch(M=>{})},k=()=>{i.current.textContent=i.current.textContent.trim()};const R={};R.field="search",n&&(R.className=n);const O={};return c&&(O.placeholder=c),p.jsxs("dl",{...R,children:[u&&p.jsx("dt",{children:u}),p.jsx("dd",{ref:i,onPaste:S,onInput:v,onKeyDown:C,onBlur:k,contentEditable:d&&b?X.ContentEditable:"false",...O,suppressContentEditableWarning:!0,children:x}),p.jsx("svg",{"aria-label":"icon",onClick:h,viewBox:"0 0 24 24",children:p.jsx("path",{d:"M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001"})}),p.jsx("svg",{"action-type":"delete",onClick:h,viewBox:"0 0 24 24",children:p.jsx("path",{d:"M17 6L6 17M6 6L17 17"})})]})};function Gr({title:n,error:u,edit:_=!0,active:c=!0,hide:d,value:b=0,onValue:x,options:w,placeholder:a="",className:m,name:i,after:v,view:h,order:C,isReload:S=!1}){var K,G;const k=N.useRef(),[R,O]=N.useState(b),[f,M]=N.useState(w);N.useEffect(()=>{O(b),M(w)},[b,w]),d=!!(d&&(b===0||((K=f==null?void 0:f[b])==null?void 0:K.n)===void 0))&&!(_&&c);let A=T=>{Object.keys(f||{}).length!==0&&_&&c&&T.target.getBoundingClientRect()},P={field:"select",className:m},W={onClick:A};return a&&(W.placeholder=a),v&&(W.after=v),_&&c&&(W.edit=""),d?"":p.jsxs("dl",{...P,children:[n&&p.jsx("dt",{children:n}),p.jsx("dd",{...W,ref:k,children:(G=f==null?void 0:f[R])==null?void 0:G.n}),Object.keys(f||{}).length!==0&&p.jsx("s",{children:p.jsx("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"m5.25 8.625 6.75 6.75 6.75-6.75"})})}),u&&p.jsx("em",{children:u})]})}function Yr({value:n,onValue:u,name:_,placeholder:c="",title:d="",error:b="",hide:x=!1,edit:w=!0,active:a=!0,after:m="",show:i=!0,view:v,maxLength:h,onSave:C,className:S=""}){let k=!!(x&&(n===""||n===void 0));if(!(w&&a)&&!i||!(w&&a)&&k)return"";let R=A=>{u&&u({value:A.target.innerText,name:_})},O=A=>{C&&C({value:A.target.innerText,name:_})},f=A=>{A.preventDefault(),navigator.clipboard.readText().then(P=>{if(h){let W=A.target.textContent.length;if(W>=h)return;h-=W,P=P.slice(0,h)}window.document.execCommand("insertText",!1,P)}).catch(P=>{})};const M={};M.field="text",S&&(M.className=S);const $={};return c&&($.placeholder=c),p.jsxs("dl",{...M,children:[d&&p.jsx("dt",{children:d}),p.jsx("dd",{onPaste:f,onBlur:O,onInput:R,contentEditable:w&&a?X.ContentEditable:"false",...$,suppressContentEditableWarning:!0,children:n}),b&&p.jsx("em",{children:b})]})}function Hr(n){let u=()=>n.title?p.jsx("dt",{children:n.title}):"",_=()=>n.error?p.jsx("em",{children:n.error}):"",c=n.edit!==void 0?n.edit:!0,d=n.active!==void 0?n.active:!0,x=!!(n.hide&&(n.default===""||n.options[n.default]===void 0))&&!(c&&d),w=n.placeholder!==void 0?n.placeholder:"",[a,m]=N.useState(n.default!==void 0?n.options[n.default]:n.default),i=h=>{c&&d&&h.target.getBoundingClientRect()};const v={};return w&&(v.placeholder=w),x?p.jsx(p.Fragment,{}):p.jsxs("dl",{"data-form":"select",children:[u(),p.jsx("dd",{onClick:i,"data-edit":(c&&d)+"",...v,children:a}),_()]})}function qr({onValue:n,label:u,value:_,title:c,className:d,name:b,text:x,id:w,reload:a}){const[m,i]=N.useState(!!_),v=u||c;N.useEffect(()=>{i(!!_)},[_]);let h=()=>{n&&n({value:m?0:1,name:b,id:w}),i(!m)};const C={};return C.field="check",d&&(C.className=d),p.jsxs("dl",{...C,children:[v?p.jsx("dt",{children:v}):"",p.jsxs("dd",{onClick:h,children:[p.jsx("span",{children:x}),p.jsx("div",{role:"switch","aria-checked":`${m?"true":"false"}`})]})]})}const Jr=({label:n,onValue:u,value:_,name:c,item:d})=>{const[b,x]=N.useState(!!_);N.useEffect(()=>{x(!!_)},[_]);let w=()=>{let a=parseInt(b)===0?1:0;x(a),u({value:a,name:c,key:d,item:d})};return p.jsx("div",{role:"switch",onClick:w,"aria-checked":`${b?"true":"false"}`})},Zr=({onValue:n,value:u,name:_,item:c})=>{const[d,b]=N.useState(!!u);N.useEffect(()=>{b(!!u)},[u]);let x=()=>{let w=d?0:1;b(!!w),n({value:w,name:_,key:c,item:c})};return p.jsx("div",{role:"switch",onClick:x,"aria-checked":`${d?"true":"false"}`})};function Xr({value:n,onValue:u,name:_,placeholder:c="",title:d="",error:b="",hide:x=!1,edit:w=!0,active:a=!0,after:m="",show:i=!0,view:v,max:h=0,onSave:C,className:S="",separator:k=","}){const[R,O]=N.useState(n!==void 0?n.split(k):[]);N.useEffect(()=>{O(n!==void 0?n!==void 0?n.split(k):[]:[])},[n]);let f=()=>{if(h!==0&&R.length>=h)return pt.Error("Слишком много");O([...R,""])},M=U=>{R.splice(U,1),R.length===0&&R.push(""),O([...R]),C!==void 0&&C({value:R.join(k),name:_})},$=!!(x&&(n===""||n===void 0)),A=U=>{};if(!(w&&a)&&!i||!(w&&a)&&$)return"";const P={};P.field="group",S&&(P.className=S);const W=(U,L)=>{X.Blur(U),R[L]=U.target.textContent,C&&C({value:R.join(k),name:_})};let K=(U,L)=>{R[L]=U.target.textContent,u&&u({value:R.join(k),name:_})},G=U=>{U.key==="Enter"&&U.preventDefault()};const T=({data:U})=>h!==0&&U.length>=h?"":p.jsx("i",{onClick:f,children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[p.jsx("path",{d:"M12 5.25v13.5"}),p.jsx("path",{d:"M18.75 12H5.25"})]})});return p.jsxs("dl",{...P,children:[p.jsxs("dt",{children:[d,p.jsx(T,{data:R})]}),p.jsx("dd",{children:R.map((U,L)=>p.jsxs("li",{className:"field_group_item",children:[p.jsx("span",{onInput:I=>K(I,L),edit:"true",name:_,placeholder:c,onPaste:A,contentEditable:w&&a?X.ContentEditable:"false",onKeyDown:G,onBlur:I=>W(I,L),suppressContentEditableWarning:!0,children:R[L]}),p.jsx("i",{onClick:()=>{M(L)},children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[p.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),p.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},L))}),b&&p.jsx("em",{children:b})]})}const Vr=(n,u=",")=>(n=n!==void 0&&n!==""?n.split(u):[],n.filter(_=>_!=="").reduce((_,c)=>(_[c]=!0,_),{}));function Qr({value:n,onValue:u,name:_,placeholder:c="",separator:d=",",title:b,error:x,hide:w=!1,edit:a=!0,active:m=!0,outFormat:i="object",after:v="",modal:h,options:C,className:S}){const[k,R]=N.useState(Vr(n,d)),O=$=>{if(!(a&&m)||!h)return;let A=h.split(".");Ct.Open(A[0],A[1],{callback:P=>{if(u)switch(i){case"array":u({value:Object.keys(P),name:_});break;case"string":u({value:Object.keys(P).filter(W=>P[W]).join(d),name:_});break;default:u({value:P,name:_})}R(Object.fromEntries(Object.entries(P).filter(([W,K])=>K!==!1)))},onValue:u,options:C,name:_,value:k})},f={};f.field="group",S&&(f.className=S);const M={};return c&&(M.placeholder=c),w?p.jsx(p.Fragment,{}):p.jsxs("dl",{...f,children:[p.jsxs("dt",{children:[b,p.jsx("i",{onClick:O,children:p.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:p.jsx("path",{d:"M12 5.25v13.5M18.75 12H5.25"})})})]}),p.jsx("dd",{...M,onClick:O,edit:(a&&m)+"","data-after":v,children:Object.keys(k).map($=>{var A;return p.jsx("div",{className:"field_group_item",children:(A=C[$])==null?void 0:A.label},$)})}),x&&p.jsx("em",{children:x})]})}function Wt({value:n,onValue:u,name:_,placeholder:c="",title:d="",link:b="",error:x="",hide:w=!1,edit:a=!0,active:m=!0,after:i="",show:v=!0,type:h,view:C,onSave:S,className:k=""}){const R=N.useId();let O=!!(w&&(n===""||n===void 0)),[f,M]=N.useState(b);if(!(a&&m)&&!v||!(a&&m)&&O)return"";const $=async P=>{if(h){let W=tn(P,h,n||"default");u==null||u({name:_,value:W}),M(URL.createObjectURL(W))}else u==null||u({name:_,value:P}),M(URL.createObjectURL(P))},A={};return A.field="file",k&&(A.className=k),p.jsxs("dl",{...A,children:[d&&p.jsxs("dt",{children:[d," "]}),p.jsxs(en,{onFiles:$,children:[p.jsx("input",{id:R,type:"file",multiple:!0,onChange:P=>{P.target.files[0]&&$(P.target.files[0])}}),p.jsx("label",{htmlFor:R}),p.jsx("img",{src:f})]}),x&&p.jsx("em",{children:x})]})}const en=({children:n,onFiles:u})=>{const _=N.useRef(null);return N.useEffect(()=>{if(_.preventDefaults)return;_.preventDefaults=d=>{d.preventDefault(),d.stopPropagation()},_.highlight=d=>{},_.unhighlight=d=>{},_.onHandleDrop=d=>{let w=d.dataTransfer.files[0];u&&u(w)};let c=_.current;["dragenter","dragover","dragleave","drop"].forEach(d=>{c.addEventListener(d,_.preventDefaults,!1),document.body.addEventListener(d,_.preventDefaults,!1)}),["dragenter","dragover"].forEach(d=>{c.addEventListener(d,_.highlight,!1)}),["dragleave","drop"].forEach(d=>{c.addEventListener(d,_.unhighlight,!1)}),c.addEventListener("drop",_.onHandleDrop,!1)},[]),p.jsx("dd",{ref:_,children:n})},tn=(n,u,_)=>{var c=document.getElementsByTagName("body")[0],d=document.createElement("canvas");c.appendChild(d);const b=d.getContext("2d"),x=new Image;x.addEventListener("load",()=>{b.drawImage(x,0,0,x.width,x.height);const w=u==="png"?d.toDataURL():d.toDataURL(`image/${u}`),a=rn(w,_);return d.remove(),a}),x.src=URL.createObjectURL(n)};function rn(n,u){let _=n.split(","),c=_[0].match(/:(.*?);/)[1],d=atob(_[1]),b=d.length,x=new Uint8Array(b);for(;b--;)x[b]=d.charCodeAt(b);return new File([x],u,{type:c})}function nn({name:n,value:u,title:_,style:c,className:d}){let b={field:"progress"};return c&&(b.style=c),d&&(b.className=d),p.jsxs("dl",{...b,children:[_&&p.jsx("dt",{children:_}),p.jsx("dd",{})]})}const ge={};function an(n){const[u,_]=N.useState({}),c=N.useRef(n);return ge.u=d=>{c.current={...c.current,[d.name]:d.value}},ge.n=d=>{c.current=d,_(Date.now())},ge.r=()=>{_(Date.now())},[c.current,ge.n]}function on(n){ge.u(n),n.reload&&ge.r()}function _n(){ge.r&&ge.r()}function sn(n){const[u,_]=N.useState({}),c=N.useRef(n);return ge.u=d=>{c.current={...c.current,[d.name]:d.value}},ge.n=d=>{Object.keys(d).length>0?Object.keys(d).forEach(b=>{c.current[b]=d[b]}):c.current={},_(Date.now())},ge.r=()=>{_(Date.now())},[c.current,ge.n]}return{Color:or,Mask:Wt,Image:Wt,Code:ar,Check:qr,Switch:Gt,Input:$t,Button:er,Message:tr,Generator:rr,Captcha:nr,Modal:Br,Notes:Lr,Number:Ur,Password:Wr,Phone:Kr,Search:zr,Select:Gr,Textarea:Yr,Users:Hr,String:$t,runReload:_n,useData:an,setValue:on,Palette:Jr,Toogle:Zr,Group:Xr,Options:Qr,useError:sn,Progress:nn}});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Input {
|
|
2
|
+
value?: string;
|
|
3
|
+
onValue?: Function;
|
|
4
|
+
name?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
hide?: string;
|
|
9
|
+
edit?: Boolean;
|
|
10
|
+
active?: Boolean;
|
|
11
|
+
after?: string;
|
|
12
|
+
show?: Boolean;
|
|
13
|
+
view?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
package/dist/use.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useData(f?: {}): any[];
|
|
2
|
+
type Value = {
|
|
3
|
+
value: any;
|
|
4
|
+
name: string;
|
|
5
|
+
reload: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function setValue(f: Value): void;
|
|
8
|
+
export declare function runReload(): void;
|
|
9
|
+
export declare function useError(f?: {}): any[];
|
|
10
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elcrm/form",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "plugin for elCRM",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": "MaSkal <dev@elcrm.online>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"elcrm",
|
|
13
|
+
"state",
|
|
14
|
+
"react"
|
|
15
|
+
],
|
|
16
|
+
"main": "./dist/index.umd.js",
|
|
17
|
+
"module": "./dist/index.es.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.es.js",
|
|
23
|
+
"require": "./dist/index.umd.js"
|
|
24
|
+
},
|
|
25
|
+
"./dist/style.css": {
|
|
26
|
+
"import": "./dist/index.css",
|
|
27
|
+
"require": "./dist/index.css"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@types/react": ">=18.0.0",
|
|
32
|
+
"react": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@elcrm/modal": "latest",
|
|
36
|
+
"@elcrm/notice": "latest"
|
|
37
|
+
}
|
|
38
|
+
}
|