@elcrm/form 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +355 -351
- package/dist/index.umd.js +13 -13
- package/dist/src/lib/Field.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(V,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],B):(V=typeof globalThis<"u"?globalThis:V||self,B((V.elCRM=V.elCRM||{},V.elCRM.components={}),V.React,V.ReactDOM))})(this,function(V,B,Ot){"use strict";var At=document.createElement("style");At.textContent=`@charset "UTF-8";:root{--field-background: #ffffff;--field-border: 1px solid #dde2e4;--field-radius: 6px;--field-color: #3f3f46;--field-padding: 0px 14px;--field-height: 32px;--field-width: 300px;--field-label-color: #84919a;--field-placeholder: #84919a}._l_mc013_13{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._l_mc013_13[data-field=group] div{cursor:pointer;border-bottom:var(--field-border)}._l_mc013_13[data-field=group] div:last-child{border-bottom:0}._l_mc013_13 [placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._l_mc013_13 [placeholder]:focus:before{display:none}._f_mc013_35{box-sizing:border-box;display:flex;border:var(--field-border);border-radius:var(--field-radius);background:var(--field-background);color:var(--field-color);padding:0;min-height:var(--field-height);line-height:var(--field-height)}._f_mc013_35>div{outline:0;flex:1;padding:var(--field-padding)}._n_mc013_52{min-height:var(--field-note-height);line-height:var(--field-note-line-height)}._w_mc013_57>div{text-wrap:nowrap;overflow:hidden;overflow-x:scroll}._w_mc013_57>div::-webkit-scrollbar{width:0;height:0}._t_mc013_67{color:var(--field-label-color);padding-bottom:8px}._g_mc013_72{flex-direction:column}: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_oqfdb_1;animation-name:_shake_oqfdb_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_oqfdb_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_oqfdb_79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._modal_oqfdb_79 ._sa_oqfdb_89{width:auto;margin:auto 20px}._modal_oqfdb_79 ._ss_oqfdb_94{width:400px}._modal_oqfdb_79 ._sm_oqfdb_98{width:500px}._modal_oqfdb_79 ._sl_oqfdb_102{width:800px}._modal_oqfdb_79 ._sx_oqfdb_106{width:1000px}._modal_oqfdb_79 ._sf_oqfdb_110{width:100%;max-width:1200px;min-width:910px}._o_oqfdb_116{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--modal-background-overflow, rgba(0, 0, 0, .7215686275))}._b_oqfdb_28{padding:15px 30px 30px;margin:auto}._w_oqfdb_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_oqfdb_146{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_oqfdb_160{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_oqfdb_160 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_oqfdb_160 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_oqfdb_160 li:last-child{border-bottom:0}._l_oqfdb_160 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_oqfdb_197{padding-right:10px}._x_oqfdb_201{cursor:pointer;color:var(--modal-exit);opacity:.5;display:flex}._x_oqfdb_201 svg{width:20px}._x_oqfdb_201:hover{opacity:1}._s_oqfdb_89{flex:1;overflow-y:scroll}._c_oqfdb_219{text-align:center;margin:20px}._f_oqfdb_224{display:flex;padding:15px 30px 30px}._f_oqfdb_224 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_oqfdb_224._r__oqfdb_235{flex-direction:row}._f_oqfdb_224._r__oqfdb_235 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_oqfdb_224._r__oqfdb_235 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_oqfdb_224._c__oqfdb_250{flex-direction:column;gap:15px}._f_oqfdb_224._c__oqfdb_250 dt{padding-bottom:8px;margin-left:7px}._g_oqfdb_259{display:flex;gap:10px;overflow:hidden}._c_oqfdb_219{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_oqfdb_219:first-child{margin-left:20px}._c_oqfdb_219:last-child{margin-right:20px}._c_oqfdb_219:hover{opacity:1;background:var(--tinge)}._c_oqfdb_219 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_oqfdb_219 b{text-align:center;display:block;color:var(--color)}._c_oqfdb_219 p{text-align:center;font-size:15px;color:var(--text)}._m_oqfdb_79{flex:1}._btn_1k1b3_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1k1b3_1:hover{opacity:1}._confirm_1k1b3_15{background:var(--button-confirm-bg, #4caf50);color:var(--button-confirm-color, #fff)}._cancel_1k1b3_20{background:var(--button-cancel-bg, #f44336);color:var(--button-cancel-color, #fff)}._action_1k1b3_25{background:var(--button-action-bg, #4094f7);color:var(--button-action-color, #fff)}._disabled_1k1b3_30{background:var(--button-disabled-bg, #efefef);color:var(--button-disabled-color, #000);opacity:1;cursor:default}._await_1k1b3_37{background:var(--button-await-bg, #efefef);color:var(--button-await-color, #000);opacity:1;cursor:default}._m_1k1b3_44{min-width:200px}._l_1k1b3_48{flex:1}:root{--select-overlay: #0000;--select-height: 35px;--select-separator: 1px solid #999;--select-color: #fff;--select-background: #28292d;--select-icon: calc(--select-height / 1.5);--select-icon-padding: calc((--select-height - --select-icon)/2) ;--select-font-size: 13px}._o_1wehm_12{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:var(--select-overlay)}._l_1wehm_22{padding:0;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:scroll;max-height:300px}._l_1wehm_22::-webkit-scrollbar{width:0;height:0}._l_1wehm_22 ul{overflow-y:auto;width:100%;max-height:300px;display:block;overflow-x:hidden}._l_1wehm_22 li{border-bottom:var(--select-separator);cursor:pointer;display:block;padding:0 15px;color:var(--select-color);border-left:0!important;text-align:left!important;height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}._l_1wehm_22 li:hover{opacity:1}._l_1wehm_22 li:last-child{border-bottom:0}._i_1wehm_72{position:absolute;width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding)}._f_1wehm_81{cursor:pointer}._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}}._o_1c9e1_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1c9e1_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1c9e1_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1c9e1_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_1c9e1_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1c9e1_11 b.__active_1c9e1_41{background:var(--bg-select-active)}._c_1c9e1_11 b:hover{background:var(--bg-select-hover)}._c_1c9e1_11 p{color:var(--color-placeholder);text-align:center;padding:0;cursor:default;pointer-events:none}._c_1c9e1_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1c9e1_11 i:hover{background:var(--bg-select-hover)}._c_1c9e1_11 i:before{cursor:pointer;display:block}._c_1c9e1_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1c9e1_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1c9e1_11 span{padding:2px;text-align:center}._c_1c9e1_11 span p{padding:8px 5px;color:var(--color-placeholder)}._c_1c9e1_11 ._as_1c9e1_94{cursor:ns-resize}._c_1c9e1_11 ._ap_1c9e1_97{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password][show] dd{-webkit-text-security:none}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}[field=color] dd{display:flex;border:0;padding:0;gap:3px}[field=color] dd s{border:1px solid #dde2e4;border-radius:6px;flex:1;cursor:pointer;opacity:.6}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(At);const Vt={version:"0.0.
|
|
1
|
+
(function(X,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],B):(X=typeof globalThis<"u"?globalThis:X||self,B((X.elCRM=X.elCRM||{},X.elCRM.components={}),X.React,X.ReactDOM))})(this,function(X,B,Ot){"use strict";var At=document.createElement("style");At.textContent=`@charset "UTF-8";:root{--field-background: #ffffff;--field-border: 1px solid #dde2e4;--field-radius: 6px;--field-color: #3f3f46;--field-padding: 0px 14px;--field-height: 32px;--field-width: 300px;--field-label-color: #84919a;--field-placeholder: #84919a}._l_mc013_13{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._l_mc013_13[data-field=group] div{cursor:pointer;border-bottom:var(--field-border)}._l_mc013_13[data-field=group] div:last-child{border-bottom:0}._l_mc013_13 [placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._l_mc013_13 [placeholder]:focus:before{display:none}._f_mc013_35{box-sizing:border-box;display:flex;border:var(--field-border);border-radius:var(--field-radius);background:var(--field-background);color:var(--field-color);padding:0;min-height:var(--field-height);line-height:var(--field-height)}._f_mc013_35>div{outline:0;flex:1;padding:var(--field-padding)}._n_mc013_52{min-height:var(--field-note-height);line-height:var(--field-note-line-height)}._w_mc013_57>div{text-wrap:nowrap;overflow:hidden;overflow-x:scroll}._w_mc013_57>div::-webkit-scrollbar{width:0;height:0}._t_mc013_67{color:var(--field-label-color);padding-bottom:8px}._g_mc013_72{flex-direction:column}: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_oqfdb_1;animation-name:_shake_oqfdb_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_oqfdb_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_oqfdb_79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._modal_oqfdb_79 ._sa_oqfdb_89{width:auto;margin:auto 20px}._modal_oqfdb_79 ._ss_oqfdb_94{width:400px}._modal_oqfdb_79 ._sm_oqfdb_98{width:500px}._modal_oqfdb_79 ._sl_oqfdb_102{width:800px}._modal_oqfdb_79 ._sx_oqfdb_106{width:1000px}._modal_oqfdb_79 ._sf_oqfdb_110{width:100%;max-width:1200px;min-width:910px}._o_oqfdb_116{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--modal-background-overflow, rgba(0, 0, 0, .7215686275))}._b_oqfdb_28{padding:15px 30px 30px;margin:auto}._w_oqfdb_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_oqfdb_146{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_oqfdb_160{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_oqfdb_160 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_oqfdb_160 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_oqfdb_160 li:last-child{border-bottom:0}._l_oqfdb_160 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_oqfdb_197{padding-right:10px}._x_oqfdb_201{cursor:pointer;color:var(--modal-exit);opacity:.5;display:flex}._x_oqfdb_201 svg{width:20px}._x_oqfdb_201:hover{opacity:1}._s_oqfdb_89{flex:1;overflow-y:scroll}._c_oqfdb_219{text-align:center;margin:20px}._f_oqfdb_224{display:flex;padding:15px 30px 30px}._f_oqfdb_224 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_oqfdb_224._r__oqfdb_235{flex-direction:row}._f_oqfdb_224._r__oqfdb_235 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_oqfdb_224._r__oqfdb_235 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_oqfdb_224._c__oqfdb_250{flex-direction:column;gap:15px}._f_oqfdb_224._c__oqfdb_250 dt{padding-bottom:8px;margin-left:7px}._g_oqfdb_259{display:flex;gap:10px;overflow:hidden}._c_oqfdb_219{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_oqfdb_219:first-child{margin-left:20px}._c_oqfdb_219:last-child{margin-right:20px}._c_oqfdb_219:hover{opacity:1;background:var(--tinge)}._c_oqfdb_219 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_oqfdb_219 b{text-align:center;display:block;color:var(--color)}._c_oqfdb_219 p{text-align:center;font-size:15px;color:var(--text)}._m_oqfdb_79{flex:1}._btn_1k1b3_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1k1b3_1:hover{opacity:1}._confirm_1k1b3_15{background:var(--button-confirm-bg, #4caf50);color:var(--button-confirm-color, #fff)}._cancel_1k1b3_20{background:var(--button-cancel-bg, #f44336);color:var(--button-cancel-color, #fff)}._action_1k1b3_25{background:var(--button-action-bg, #4094f7);color:var(--button-action-color, #fff)}._disabled_1k1b3_30{background:var(--button-disabled-bg, #efefef);color:var(--button-disabled-color, #000);opacity:1;cursor:default}._await_1k1b3_37{background:var(--button-await-bg, #efefef);color:var(--button-await-color, #000);opacity:1;cursor:default}._m_1k1b3_44{min-width:200px}._l_1k1b3_48{flex:1}:root{--select-overlay: #0000;--select-height: 35px;--select-separator: 1px solid #999;--select-color: #fff;--select-background: #28292d;--select-icon: calc(--select-height / 1.5);--select-icon-padding: calc((--select-height - --select-icon)/2) ;--select-font-size: 13px}._o_1wehm_12{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:var(--select-overlay)}._l_1wehm_22{padding:0;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:scroll;max-height:300px}._l_1wehm_22::-webkit-scrollbar{width:0;height:0}._l_1wehm_22 ul{overflow-y:auto;width:100%;max-height:300px;display:block;overflow-x:hidden}._l_1wehm_22 li{border-bottom:var(--select-separator);cursor:pointer;display:block;padding:0 15px;color:var(--select-color);border-left:0!important;text-align:left!important;height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}._l_1wehm_22 li:hover{opacity:1}._l_1wehm_22 li:last-child{border-bottom:0}._i_1wehm_72{position:absolute;width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding)}._f_1wehm_81{cursor:pointer}._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}}._o_1c9e1_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1c9e1_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1c9e1_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1c9e1_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_1c9e1_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1c9e1_11 b.__active_1c9e1_41{background:var(--bg-select-active)}._c_1c9e1_11 b:hover{background:var(--bg-select-hover)}._c_1c9e1_11 p{color:var(--color-placeholder);text-align:center;padding:0;cursor:default;pointer-events:none}._c_1c9e1_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1c9e1_11 i:hover{background:var(--bg-select-hover)}._c_1c9e1_11 i:before{cursor:pointer;display:block}._c_1c9e1_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1c9e1_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1c9e1_11 span{padding:2px;text-align:center}._c_1c9e1_11 span p{padding:8px 5px;color:var(--color-placeholder)}._c_1c9e1_11 ._as_1c9e1_94{cursor:ns-resize}._c_1c9e1_11 ._ap_1c9e1_97{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password][show] dd{-webkit-text-security:none}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}[field=color] dd{display:flex;border:0;padding:0;gap:3px}[field=color] dd s{border:1px solid #dde2e4;border-radius:6px;flex:1;cursor:pointer;opacity:.6}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(At);const Vt={version:"0.0.30"};var Tt={exports:{}},mt={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
`+de+e}}var ue=!1,ne;{var ze=typeof WeakMap=="function"?WeakMap:Map;ne=new ze}function Ce(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var a;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ce.current,ce.current=null,We();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){a=F}Reflect.construct(e,[],s)}else{try{s.call()}catch(F){a=F}e.call(s.prototype)}}else{try{throw Error()}catch(F){a=F}e()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var _=F.stack.split(`
|
|
20
20
|
`),D=a.stack.split(`
|
|
21
21
|
`),x=_.length-1,w=D.length-1;x>=1&&w>=0&&_[x]!==D[w];)w--;for(;x>=1&&w>=0;x--,w--)if(_[x]!==D[w]){if(x!==1||w!==1)do if(x--,w--,w<0||_[x]!==D[w]){var q=`
|
|
22
|
-
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var
|
|
22
|
+
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var V=e?e.displayName||e.name:"",G=V?ae(V):"";return typeof e=="function"&&ne.set(e,G),G}function Ke(e,t,r){return Ce(e,!1)}function Ye(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,r){if(e==null)return"";if(typeof e=="function")return Ce(e,Ye(e));if(typeof e=="string")return ae(e);switch(e){case g:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ke(e.render);case u:return oe(e.type,t,r);case k:{var a=e,f=a._payload,m=a._init;try{return oe(m(f),t,r)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=O.ReactDebugCurrentFrame;function ie(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ee.setExtraStackFrame(r)}else Ee.setExtraStackFrame(null)}function Ge(e,t,r,a,f){{var m=Function.call.bind(Q);for(var s in e)if(m(e,s)){var _=void 0;try{if(typeof e[s]!="function"){var D=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}_=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){_=x}_&&!(_ instanceof Error)&&(ie(f),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof _),ie(null)),_ instanceof Error&&!(_.message in Se)&&(Se[_.message]=!0,ie(f),p("Failed %s type: %s",r,_.message),ie(null))}}}var He=Array.isArray;function fe(e){return He(e)}function Je(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function Ze(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Oe(e){if(Ze(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Re(e)}var Te=O.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},De,Pe;function Xe(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function et(e,t){typeof e.ref=="string"&&Te.current}function tt(e,t){{var r=function(){De||(De=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function rt(e,t){{var r=function(){Pe||(Pe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var at=function(e,t,r,a,f,m,s){var _={$$typeof:i,type:e,key:t,ref:r,props:s,_owner:m};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function nt(e,t,r,a,f){{var m,s={},_=null,D=null;r!==void 0&&(Oe(r),_=""+r),Qe(t)&&(Oe(t.key),_=""+t.key),Xe(t)&&(D=t.ref,et(t,f));for(m in t)Q.call(t,m)&&!Ve.hasOwnProperty(m)&&(s[m]=t[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)s[m]===void 0&&(s[m]=x[m])}if(_||D){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;_&&tt(s,w),D&&rt(s,w)}return at(e,_,D,f,a,Te.current,s)}}var pe=O.ReactCurrentOwner,Ne=O.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Fe(){{if(pe.current){var e=h(pe.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Ie={};function it(e){{var t=Fe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),
|
|
26
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),Z(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),Z(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var a=e[r];ye(a)&&Me(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var m=f.call(e),s;!(s=m.next()).done;)ye(s.value)&&Me(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===u))r=t.propTypes;else return;if(r){var a=h(t);Ge(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=h(t);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){Z(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Z(null);break}}e.ref!==null&&(Z(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var Ae={};function qe(e,t,r,a,f,m){{var s=W(e);if(!s){var _="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" 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=ot();D?_+=D:_+=Fe();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===i?(x="<"+(h(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,_)}var w=nt(e,t,r,f,m);if(w==null)return w;if(s){var q=t.children;if(q!==void 0)if(a)if(fe(q)){for(var V=0;V<q.length;V++)$e(q[V],e);Object.freeze&&Object.freeze(q)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(q,e)}if(Q.call(t,"key")){var G=h(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ve=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[G+ve]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;yt.Fragment=d,yt.jsx=dt,yt.jsxs=ut}()),yt}process.env.NODE_ENV==="production"?Tt.exports=Xt():Tt.exports=Qt();var y=Tt.exports;function er({name:n,value:i,title:c,style:d,className:v}){let C={field:"progress"};return d&&(C.style=d),v&&(C.className=v),y.jsxs("dl",{...C,children:[c&&y.jsx("dt",{children:c}),y.jsx("dd",{})]})}let re={};re.KeyDown=n=>{n.key==="Enter"&&n.preventDefault()},re.PasteOne=n=>{n.preventDefault(),navigator.clipboard.readText().then(i=>{i=i.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,i)}).catch(i=>{})},re.Paste=(n,i)=>{i.preventDefault(),navigator.clipboard.readText().then(c=>{if(n){let d=i.target.textContent.length;if(d>=n)return;n-=d,c=c.slice(0,n)}window.document.execCommand("insertText",!1,c.replace(/(\r\n|\n|\r)/gm," "))}).catch(c=>{})},re.Focus=n=>{n.target.textContent.length===0&&(n.target.innerHTML="<br>")},re.Blur=n=>{n.target.scrollLeft=0,n.target.querySelector("br")!==null&&n.target.querySelector("br").remove()},re.ContentEditable="plaintext-only";const
|
|
31
|
+
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;yt.Fragment=d,yt.jsx=dt,yt.jsxs=ut}()),yt}process.env.NODE_ENV==="production"?Tt.exports=Xt():Tt.exports=Qt();var y=Tt.exports;function er({name:n,value:i,title:c,style:d,className:v}){let C={field:"progress"};return d&&(C.style=d),v&&(C.className=v),y.jsxs("dl",{...C,children:[c&&y.jsx("dt",{children:c}),y.jsx("dd",{})]})}let re={};re.KeyDown=n=>{n.key==="Enter"&&n.preventDefault()},re.PasteOne=n=>{n.preventDefault(),navigator.clipboard.readText().then(i=>{i=i.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,i)}).catch(i=>{})},re.Paste=(n,i)=>{i.preventDefault(),navigator.clipboard.readText().then(c=>{if(n){let d=i.target.textContent.length;if(d>=n)return;n-=d,c=c.slice(0,n)}window.document.execCommand("insertText",!1,c.replace(/(\r\n|\n|\r)/gm," "))}).catch(c=>{})},re.Focus=n=>{n.target.textContent.length===0&&(n.target.innerHTML="<br>")},re.Blur=n=>{n.target.scrollLeft=0,n.target.querySelector("br")!==null&&n.target.querySelector("br").remove()},re.ContentEditable="plaintext-only";const J={l:"_l_mc013_13",f:"_f_mc013_35",n:"_n_mc013_52",w:"_w_mc013_57",t:"_t_mc013_67",g:"_g_mc013_72"};function vt({element_blok:n,element_input:i,type:c="input",title:d,before:v,after:C,children:T,ref:j}){return y.jsxs("dl",{"data-field":c,...i.props,className:[J.l,...n.className].filter(l=>l!==void 0).join(" "),children:[d?y.jsx("dt",{className:J.t,children:d}):"",v,y.jsx("dd",{ref:j,className:[J.f,...i.className].join(" "),...i.props,children:T}),C]})}function tr({id:n,value:i,onValue:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:g=!0,after:o="",before:u="",show:k=!0,maxLength:S,onSave:N,className:A="",isCopy:$=!0,isReload:O=!1}){let p=!!(j&&(i===""||i===void 0)),I=R=>{c&&c({value:R.target.textContent.trim(),name:d,reload:O})},U=R=>{S&&R.target.textContent.trim().length>=S&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},Y=R=>{R.preventDefault(),navigator.clipboard.readText().then(P=>{if(S){let W=R.target.textContent.length;if(W>=S)return;S-=W,P=P.slice(0,S)}window.document.execCommand("insertText",!1,P.replace(/(\r\n|\n|\r)/gm," "))}).catch(P=>{})};if(!(l&&g)&&!k||!(l&&g)&&p)return"";const L={};v&&(L.placeholder=v),l&&g&&(L.edit="");const z=R=>{re.Blur(R),N==null||N({value:R.target.textContent.trim(),name:d})};return y.jsx(vt,{type:"input",title:C,element_blok:{className:[A]},element_input:{className:[J.w]},children:y.jsx("div",{onBlur:z,onPaste:Y,onInput:I,onKeyDown:U,spellCheck:"true",contentEditable:l&&g?re.ContentEditable:"false",suppressContentEditableWarning:!0,...L,children:i})})}var Dt={exports:{}},gt={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
34
34
|
*
|
|
@@ -48,11 +48,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
48
48
|
`+de+e}}var ue=!1,ne;{var ze=typeof WeakMap=="function"?WeakMap:Map;ne=new ze}function Ce(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var a;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ce.current,ce.current=null,We();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){a=F}Reflect.construct(e,[],s)}else{try{s.call()}catch(F){a=F}e.call(s.prototype)}}else{try{throw Error()}catch(F){a=F}e()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var _=F.stack.split(`
|
|
49
49
|
`),D=a.stack.split(`
|
|
50
50
|
`),x=_.length-1,w=D.length-1;x>=1&&w>=0&&_[x]!==D[w];)w--;for(;x>=1&&w>=0;x--,w--)if(_[x]!==D[w]){if(x!==1||w!==1)do if(x--,w--,w<0||_[x]!==D[w]){var q=`
|
|
51
|
-
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var
|
|
51
|
+
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var V=e?e.displayName||e.name:"",G=V?ae(V):"";return typeof e=="function"&&ne.set(e,G),G}function Ke(e,t,r){return Ce(e,!1)}function Ye(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,r){if(e==null)return"";if(typeof e=="function")return Ce(e,Ye(e));if(typeof e=="string")return ae(e);switch(e){case g:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ke(e.render);case u:return oe(e.type,t,r);case k:{var a=e,f=a._payload,m=a._init;try{return oe(m(f),t,r)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=O.ReactDebugCurrentFrame;function ie(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ee.setExtraStackFrame(r)}else Ee.setExtraStackFrame(null)}function Ge(e,t,r,a,f){{var m=Function.call.bind(Q);for(var s in e)if(m(e,s)){var _=void 0;try{if(typeof e[s]!="function"){var D=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}_=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){_=x}_&&!(_ instanceof Error)&&(ie(f),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof _),ie(null)),_ instanceof Error&&!(_.message in Se)&&(Se[_.message]=!0,ie(f),p("Failed %s type: %s",r,_.message),ie(null))}}}var He=Array.isArray;function fe(e){return He(e)}function Je(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function Ze(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Oe(e){if(Ze(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Re(e)}var Te=O.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},De,Pe;function Xe(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function et(e,t){typeof e.ref=="string"&&Te.current}function tt(e,t){{var r=function(){De||(De=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function rt(e,t){{var r=function(){Pe||(Pe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var at=function(e,t,r,a,f,m,s){var _={$$typeof:i,type:e,key:t,ref:r,props:s,_owner:m};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function nt(e,t,r,a,f){{var m,s={},_=null,D=null;r!==void 0&&(Oe(r),_=""+r),Qe(t)&&(Oe(t.key),_=""+t.key),Xe(t)&&(D=t.ref,et(t));for(m in t)Q.call(t,m)&&!Ve.hasOwnProperty(m)&&(s[m]=t[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)s[m]===void 0&&(s[m]=x[m])}if(_||D){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;_&&tt(s,w),D&&rt(s,w)}return at(e,_,D,f,a,Te.current,s)}}var pe=O.ReactCurrentOwner,Ne=O.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Fe(){{if(pe.current){var e=h(pe.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Ie={};function it(e){{var t=Fe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),
|
|
55
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),Z(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),Z(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var a=e[r];ye(a)&&Me(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var m=f.call(e),s;!(s=m.next()).done;)ye(s.value)&&Me(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===u))r=t.propTypes;else return;if(r){var a=h(t);Ge(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=h(t);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){Z(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Z(null);break}}e.ref!==null&&(Z(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var Ae={};function qe(e,t,r,a,f,m){{var s=W(e);if(!s){var _="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" 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=ot();D?_+=D:_+=Fe();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===i?(x="<"+(h(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,_)}var w=nt(e,t,r,f,m);if(w==null)return w;if(s){var q=t.children;if(q!==void 0)if(a)if(fe(q)){for(var V=0;V<q.length;V++)$e(q[V],e);Object.freeze&&Object.freeze(q)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(q,e)}if(Q.call(t,"key")){var G=h(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ve=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[G+ve]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
56
56
|
let props = %s;
|
|
57
57
|
<%s {...props} />
|
|
58
58
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -77,16 +77,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
77
77
|
`+de+e}}var ue=!1,ne;{var ze=typeof WeakMap=="function"?WeakMap:Map;ne=new ze}function Ce(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var a;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ce.current,ce.current=null,We();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){a=F}Reflect.construct(e,[],s)}else{try{s.call()}catch(F){a=F}e.call(s.prototype)}}else{try{throw Error()}catch(F){a=F}e()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var _=F.stack.split(`
|
|
78
78
|
`),D=a.stack.split(`
|
|
79
79
|
`),x=_.length-1,w=D.length-1;x>=1&&w>=0&&_[x]!==D[w];)w--;for(;x>=1&&w>=0;x--,w--)if(_[x]!==D[w]){if(x!==1||w!==1)do if(x--,w--,w<0||_[x]!==D[w]){var q=`
|
|
80
|
-
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var
|
|
80
|
+
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var V=e?e.displayName||e.name:"",G=V?ae(V):"";return typeof e=="function"&&ne.set(e,G),G}function Ke(e,t,r){return Ce(e,!1)}function Ye(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,r){if(e==null)return"";if(typeof e=="function")return Ce(e,Ye(e));if(typeof e=="string")return ae(e);switch(e){case g:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ke(e.render);case u:return oe(e.type,t,r);case k:{var a=e,f=a._payload,m=a._init;try{return oe(m(f),t,r)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=O.ReactDebugCurrentFrame;function ie(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ee.setExtraStackFrame(r)}else Ee.setExtraStackFrame(null)}function Ge(e,t,r,a,f){{var m=Function.call.bind(Q);for(var s in e)if(m(e,s)){var _=void 0;try{if(typeof e[s]!="function"){var D=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}_=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){_=x}_&&!(_ instanceof Error)&&(ie(f),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof _),ie(null)),_ instanceof Error&&!(_.message in Se)&&(Se[_.message]=!0,ie(f),p("Failed %s type: %s",r,_.message),ie(null))}}}var He=Array.isArray;function fe(e){return He(e)}function Je(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function Ze(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Oe(e){if(Ze(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Re(e)}var Te=O.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},De,Pe;function Xe(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function et(e,t){typeof e.ref=="string"&&Te.current}function tt(e,t){{var r=function(){De||(De=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function rt(e,t){{var r=function(){Pe||(Pe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var at=function(e,t,r,a,f,m,s){var _={$$typeof:i,type:e,key:t,ref:r,props:s,_owner:m};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function nt(e,t,r,a,f){{var m,s={},_=null,D=null;r!==void 0&&(Oe(r),_=""+r),Qe(t)&&(Oe(t.key),_=""+t.key),Xe(t)&&(D=t.ref,et(t));for(m in t)Q.call(t,m)&&!Ve.hasOwnProperty(m)&&(s[m]=t[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)s[m]===void 0&&(s[m]=x[m])}if(_||D){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;_&&tt(s,w),D&&rt(s,w)}return at(e,_,D,f,a,Te.current,s)}}var pe=O.ReactCurrentOwner,Ne=O.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Fe(){{if(pe.current){var e=h(pe.current.type);if(e)return`
|
|
81
81
|
|
|
82
82
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Ie={};function it(e){{var t=Fe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
83
83
|
|
|
84
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),
|
|
84
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),Z(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),Z(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var a=e[r];ye(a)&&Me(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var m=f.call(e),s;!(s=m.next()).done;)ye(s.value)&&Me(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===u))r=t.propTypes;else return;if(r){var a=h(t);Ge(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=h(t);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){Z(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Z(null);break}}e.ref!==null&&(Z(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var Ae={};function qe(e,t,r,a,f,m){{var s=W(e);if(!s){var _="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" 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=ot();D?_+=D:_+=Fe();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===i?(x="<"+(h(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,_)}var w=nt(e,t,r,f,m);if(w==null)return w;if(s){var q=t.children;if(q!==void 0)if(a)if(fe(q)){for(var V=0;V<q.length;V++)$e(q[V],e);Object.freeze&&Object.freeze(q)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(q,e)}if(Q.call(t,"key")){var G=h(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ve=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[G+ve]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
85
85
|
let props = %s;
|
|
86
86
|
<%s {...props} />
|
|
87
87
|
React keys must be passed directly to JSX without using spread:
|
|
88
88
|
let props = %s;
|
|
89
|
-
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;wt.Fragment=d,wt.jsx=dt,wt.jsxs=ut}()),wt}process.env.NODE_ENV==="production"?Pt.exports=Pr():Pt.exports=Nr();var Nt=Pt.exports;const Fr="_btn_1k1b3_1",Ir="_confirm_1k1b3_15",Mr="_cancel_1k1b3_20",$r="_action_1k1b3_25",Ar="_disabled_1k1b3_30",qr="_m_1k1b3_44",Br="_l_1k1b3_48",jt={btn:Fr,confirm:Ir,cancel:Mr,action:$r,disabled:Ar,await:"_await_1k1b3_37",m:qr,l:Br},Lr=({onClick:n,onSend:i,size:c="m",view:d="confirm",children:v,isDisabled:C=!1,className:T,after:j,before:l,label:g,onRef:o,awaitText:u="Ожидайте"})=>{let[k,S]=B.useState(!1);const N=$=>{if(n)return n();k||(i?(S(!0),i(S)):$.preventDefault())};let A={};return(C||k)&&(A.disabled=!0),Nt.jsx("button",{...A,ref:o,className:[jt.btn,k?jt.disabled:jt[d],c&&jt[c],T].filter($=>$!="").join(" "),onClick:N,children:k?u:Nt.jsxs(Nt.Fragment,{children:[l||""," ",g," ",j||""]})||v})};let ke={};function Wr({children:n}){return H.jsx(H.Fragment,{children:n})}var Ct;(n=>{function i({import_modules:o}){let[u,k]=B.useState([]);return ke.x=S=>{k(S?u.filter(N=>N.key!==S):[])},B.useEffect(()=>{o&&(ke.i=o)},[]),ke.add=(S,N=Date.now())=>{k([...u,{key:N,item:S}])},H.jsx(H.Fragment,{children:u.map(S=>S.item)})}n.Init=i;function c(o){return o&&(ke.i=o),ke.i}n.Import=c,n.List=Sr,n.Scroll=Er,n.Form=Rr,n.Center=Or,n.Column=Tr;function d(o,u,k){ke.i?ke.i(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(k)}):Ut()(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(k)})}n.Open=d;function v({type:o,name:u,params:k}){let[S,N]=B.useState(null);return B.useEffect(()=>{ke.i?ke.i(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(k))}):Ut()(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(k))})},[k.id]),H.jsx(H.Fragment,{children:S})}n.Icon=v;function C(o,u){ke.add(H.jsx(Wr,{children:o},String(Date.now())),u)}n.Add=C;function T(o){ke.x(o)}n.Close=T;function j(o){if(o.target.classList[0]!=="modal")return;let u=o.target.children[0];u.setAttribute("shake",!0),setTimeout(()=>{u.setAttribute("shake",!1)},1e3)}n.Shake=j;function l(o,u){const k=S=>{n.Add(H.jsx(o,{...S},new Date().getTime()))};return{Icon:S=>H.jsx("i",{onClick:()=>k(S),children:u&&H.jsx(u,{})}),Open:k}}n.Create=l;function g({title:o,children:u,button:k,tabs:S,size:N="m",className:A="",shake:$=!0,menu:O}){const[p,I]=B.useState(!0),U=B.useRef(),Y=z=>{if(k){if(k.onClick)return z(!1),k.onClick({setOpen:I});if(k.onSend)return k.onSend({setOpen:I,disabled:z})}},L=()=>{if(!$)return I(!1);U.current.setAttribute("shake",!0),setTimeout(()=>{U.current.setAttribute("shake",!1)},1e3)};return p?H.jsxs("div",{className:`${le.modal}`,children:[H.jsx("div",{className:le.o,onClick:L}),H.jsxs("div",{className:[le.w,le[`s${N}`],A].filter(z=>z!="").join(" "),ref:U,children:[H.jsxs("div",{className:le.h,children:[H.jsx("div",{className:le.t,children:o}),H.jsxs("div",{className:le.m,children:[S&&H.jsx("nav",{children:S.map((z,R)=>H.jsx("span",{onClick:z.onClick,className:z.active?"active":"",children:z.name},R))}),O]}),H.jsx("div",{className:le.x,onClick:()=>{I(!1)},children:H.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:H.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u,k&&H.jsx("div",{className:le.b,children:H.jsx(Lr,{label:k.label,onSend:Y,className:le.btn,size:k.size})})]})]}):""}n.Main=g})(Ct||(Ct={}));const Ur=(n,i=",")=>(n=n!==void 0&&n!==""?n.split(i):[],n.filter(c=>c!=="").reduce((c,d)=>(c[d]=!0,c),{}));function zr({value:n,onValue:i,name:c,placeholder:d="",separator:v=",",title:C,error:T,hide:j=!1,edit:l=!0,active:g=!0,outFormat:o="object",after:u="",modal:k,options:S,className:N}){const[A,$]=B.useState(Ur(n,v)),O=p=>{if(!(l&&g)||!k)return;let I=k.split(".");Ct.Open(I[0],I[1],{callback:U=>{if(i)switch(o){case"array":i({value:Object.keys(U),name:c});break;case"string":i({value:Object.keys(U).filter(Y=>U[Y]).join(v),name:c});break;default:i({value:U,name:c})}$(Object.fromEntries(Object.entries(U).filter(([Y,L])=>L!==!1)))},onValue:i,options:S,name:c,value:A})};return j?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"group",title:C,element_blok:{className:[N]},element_input:{className:[],props:{onClick:O}},children:Object.keys(A).map(p=>{var I;return y.jsx("div",{children:(I=S[p])==null?void 0:I.label},p)})})}const Ft={o:"_o_1wehm_12",l:"_l_1wehm_22",f:"_f_1wehm_81"};function Kr({title:n,error:i,edit:c=!0,active:d=!0,hide:v,value:C=0,onValue:T,options:j,placeholder:l="",className:g,isIcon:o=!0,name:u,after:k,view:S,order:N,isReload:A=!1}){var E,b;const $=B.useRef(null),[O,p]=B.useState(C),[I,U]=B.useState(j),[Y,L]=B.useState(!1);B.useEffect(()=>{p(C),U(j)},[C,j]),v=!!(v&&(C===0||((E=I==null?void 0:I[C])==null?void 0:E.n)===void 0))&&!(c&&d);let R=h=>{p(h),T&&T({value:h,name:u,reload:A})},P=h=>{Object.keys(I||{}).length!==0&&c&&d&&($.position=h.target.getBoundingClientRect(),L(!0))},W={};return l&&(W.placeholder=l),v?"":y.jsxs(vt,{type:"select",title:n,element_blok:{className:[g]},element_input:{className:[Ft.f],props:{
|
|
89
|
+
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;wt.Fragment=d,wt.jsx=dt,wt.jsxs=ut}()),wt}process.env.NODE_ENV==="production"?Pt.exports=Pr():Pt.exports=Nr();var Nt=Pt.exports;const Fr="_btn_1k1b3_1",Ir="_confirm_1k1b3_15",Mr="_cancel_1k1b3_20",$r="_action_1k1b3_25",Ar="_disabled_1k1b3_30",qr="_m_1k1b3_44",Br="_l_1k1b3_48",jt={btn:Fr,confirm:Ir,cancel:Mr,action:$r,disabled:Ar,await:"_await_1k1b3_37",m:qr,l:Br},Lr=({onClick:n,onSend:i,size:c="m",view:d="confirm",children:v,isDisabled:C=!1,className:T,after:j,before:l,label:g,onRef:o,awaitText:u="Ожидайте"})=>{let[k,S]=B.useState(!1);const N=$=>{if(n)return n();k||(i?(S(!0),i(S)):$.preventDefault())};let A={};return(C||k)&&(A.disabled=!0),Nt.jsx("button",{...A,ref:o,className:[jt.btn,k?jt.disabled:jt[d],c&&jt[c],T].filter($=>$!="").join(" "),onClick:N,children:k?u:Nt.jsxs(Nt.Fragment,{children:[l||""," ",g," ",j||""]})||v})};let ke={};function Wr({children:n}){return H.jsx(H.Fragment,{children:n})}var Ct;(n=>{function i({import_modules:o}){let[u,k]=B.useState([]);return ke.x=S=>{k(S?u.filter(N=>N.key!==S):[])},B.useEffect(()=>{o&&(ke.i=o)},[]),ke.add=(S,N=Date.now())=>{k([...u,{key:N,item:S}])},H.jsx(H.Fragment,{children:u.map(S=>S.item)})}n.Init=i;function c(o){return o&&(ke.i=o),ke.i}n.Import=c,n.List=Sr,n.Scroll=Er,n.Form=Rr,n.Center=Or,n.Column=Tr;function d(o,u,k){ke.i?ke.i(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(k)}):Ut()(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(k)})}n.Open=d;function v({type:o,name:u,params:k}){let[S,N]=B.useState(null);return B.useEffect(()=>{ke.i?ke.i(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(k))}):Ut()(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(k))})},[k.id]),H.jsx(H.Fragment,{children:S})}n.Icon=v;function C(o,u){ke.add(H.jsx(Wr,{children:o},String(Date.now())),u)}n.Add=C;function T(o){ke.x(o)}n.Close=T;function j(o){if(o.target.classList[0]!=="modal")return;let u=o.target.children[0];u.setAttribute("shake",!0),setTimeout(()=>{u.setAttribute("shake",!1)},1e3)}n.Shake=j;function l(o,u){const k=S=>{n.Add(H.jsx(o,{...S},new Date().getTime()))};return{Icon:S=>H.jsx("i",{onClick:()=>k(S),children:u&&H.jsx(u,{})}),Open:k}}n.Create=l;function g({title:o,children:u,button:k,tabs:S,size:N="m",className:A="",shake:$=!0,menu:O}){const[p,I]=B.useState(!0),U=B.useRef(),Y=z=>{if(k){if(k.onClick)return z(!1),k.onClick({setOpen:I});if(k.onSend)return k.onSend({setOpen:I,disabled:z})}},L=()=>{if(!$)return I(!1);U.current.setAttribute("shake",!0),setTimeout(()=>{U.current.setAttribute("shake",!1)},1e3)};return p?H.jsxs("div",{className:`${le.modal}`,children:[H.jsx("div",{className:le.o,onClick:L}),H.jsxs("div",{className:[le.w,le[`s${N}`],A].filter(z=>z!="").join(" "),ref:U,children:[H.jsxs("div",{className:le.h,children:[H.jsx("div",{className:le.t,children:o}),H.jsxs("div",{className:le.m,children:[S&&H.jsx("nav",{children:S.map((z,R)=>H.jsx("span",{onClick:z.onClick,className:z.active?"active":"",children:z.name},R))}),O]}),H.jsx("div",{className:le.x,onClick:()=>{I(!1)},children:H.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:H.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u,k&&H.jsx("div",{className:le.b,children:H.jsx(Lr,{label:k.label,onSend:Y,className:le.btn,size:k.size})})]})]}):""}n.Main=g})(Ct||(Ct={}));const Ur=(n,i=",")=>(n=n!==void 0&&n!==""?n.split(i):[],n.filter(c=>c!=="").reduce((c,d)=>(c[d]=!0,c),{}));function zr({value:n,onValue:i,name:c,placeholder:d="",separator:v=",",title:C,error:T,hide:j=!1,edit:l=!0,active:g=!0,outFormat:o="object",after:u="",modal:k,options:S,className:N}){const[A,$]=B.useState(Ur(n,v)),O=p=>{if(!(l&&g)||!k)return;let I=k.split(".");Ct.Open(I[0],I[1],{callback:U=>{if(i)switch(o){case"array":i({value:Object.keys(U),name:c});break;case"string":i({value:Object.keys(U).filter(Y=>U[Y]).join(v),name:c});break;default:i({value:U,name:c})}$(Object.fromEntries(Object.entries(U).filter(([Y,L])=>L!==!1)))},onValue:i,options:S,name:c,value:A})};return j?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"group",title:C,element_blok:{className:[N]},element_input:{className:[J.g],props:{onClick:O}},children:Object.keys(A).map(p=>{var I;return y.jsx("div",{children:(I=S[p])==null?void 0:I.label},p)})})}const Ft={o:"_o_1wehm_12",l:"_l_1wehm_22",f:"_f_1wehm_81"};function Kr({title:n,error:i,edit:c=!0,active:d=!0,hide:v,value:C=0,onValue:T,options:j,placeholder:l="",className:g,isIcon:o=!0,name:u,after:k,view:S,order:N,isReload:A=!1}){var E,b;const $=B.useRef(null),[O,p]=B.useState(C),[I,U]=B.useState(j),[Y,L]=B.useState(!1);B.useEffect(()=>{p(C),U(j)},[C,j]),v=!!(v&&(C===0||((E=I==null?void 0:I[C])==null?void 0:E.n)===void 0))&&!(c&&d);let R=h=>{p(h),T&&T({value:h,name:u,reload:A})},P=h=>{Object.keys(I||{}).length!==0&&c&&d&&($.position=h.target.getBoundingClientRect(),L(!0))},W={};return l&&(W.placeholder=l),v?"":y.jsxs(vt,{type:"select",title:n,element_blok:{className:[g]},element_input:{className:[Ft.f],props:{onClick:P}},ref:$,children:[y.jsx("div",{...W,children:(b=I==null?void 0:I[O])==null?void 0:b.n}),Y&&Ot.createPortal(y.jsx(Yr,{parent:$.position,onValue:R,view:S,className:g,options:I,order:N,setOpen:L},new Date().getTime()),document.body)]})}const Yr=({onValue:n,parent:i,className:c,options:d,order:v,setOpen:C})=>{let T=()=>{C(!1)},j=o=>{C(!1),n(o)},l=window.innerHeight-i.y+i.height<320?i.y-312:i.y+33,g=window.innerWidth-i.x<265?i.x-235:i.x;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Ft.o,onClick:T},new Date().getTime()),y.jsx("div",{className:[Ft.l,c].filter(o=>o!==void 0).join(" "),style:{top:l+"px",left:g+"px",width:i.width},children:y.jsx(Gr,{order:v,options:d,link:j})})]})},Gr=({order:n,options:i,link:c})=>n?y.jsx("ul",{children:n.map((d,v)=>i[d].s!==0?y.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")}):y.jsx("ul",{children:Object.keys(i).map((d,v)=>i[d].s!==0?y.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")});function Hr({value:n,onValue:i,name:c,placeholder:d="",title:v,error:C,hide:T=!1,edit:j=!0,show:l=!0,active:g=!0,after:o="",view:u,modal:k,module:S,options:N,className:A}){let[$,O]=B.useState(n),p=Y=>{if(!(j&&g)||!k)return;let L=k.split(".");Ct.Open(L[0],L[1],{callback:z=>{i&&i({value:z,name:c}),O(z)},onValue:i,options:N,name:c,value:n})};const I={};I.field="input",A&&(I.className=A);const U={};return d&&(U.placeholder=d),T?y.jsx(y.Fragment,{}):y.jsxs("dl",{...I,children:[v&&y.jsx("dt",{children:v}),y.jsx("dd",{...U,onClick:p,edit:(j&&g)+"","data-after":o,children:$}),C&&y.jsx("em",{children:C})]})}function Jr({value:n,onValue:i,onSave:c,name:d,placeholder:v="",className:C,title:T,error:j,edit:l=!0,active:g=!0,reload:o=!1,native:u=!1,isShow:k=!1,maxLength:S,eyes:N=[],after:A=""}){const[$,O]=B.useState(k);let p=R=>{i&&i({value:R.target.textContent,name:d,reload:o})},I=R=>{R.key==="Enter"&&R.preventDefault()},U=R=>{R.preventDefault(),navigator.clipboard.readText().then(P=>{if(S){let W=R.target.textContent.length;if(W>=S)return;S-=W,P=P.slice(0,S)}window.document.execCommand("insertText",!1,P.replace(/(\r\n|\n|\r)/gm," "))}).catch(P=>{})},Y=R=>{re.Blur(R),c==null||c({value:R.target.textContent.trim(),name:d})};const L={};L.field="password",$&&(L.show=""),C&&(L.className=C);const z={};return v&&(z.placeholder=v),u?"":y.jsxs("dl",{...L,children:[T?y.jsx("dt",{children:T}):"",y.jsx("dd",{onPaste:U,onInput:p,onKeyDown:I,onBlur:Y,contentEditable:l&&g?re.ContentEditable:"false",...z,suppressContentEditableWarning:!0,children:n}),N[0]&&y.jsx("i",{onClick:()=>O(!$),children:$?N[1]:N[0]}),A,j?y.jsx("em",{children:j}):""]})}function Zr({onValue:n,onSave:i,active:c,max:d,edit:v,title:C,error:T,show:j,hide:l,value:g,placeholder:o,className:u,maxLength:k,name:S,after:N="",before:A="",view:$}){v=v!==void 0?v:!0,c=c!==void 0?c:!0,l=!!(l&&(g===""||g===void 0))&&!(v&&c),o=o!==void 0?o:"",d=d!==void 0?d:99;let p=!1,I=P=>{n==null||n({value:P.target.textContent,name:S})},U=P=>{if(!(p&&P.which===86)){if(P.which===17||P.which===91)return p=!0;P.key!=="Backspace"&&(P.target.textContent.length===d&&P.preventDefault(),P.key==="Enter"&&P.preventDefault(),isNaN(P.key)&&P.preventDefault())}},Y=P=>{if(P.which===17||P.which===91)return p=!1},L=P=>{P.preventDefault(),navigator.clipboard.readText().then(W=>{if(W=W.replace(/(?!^\+|\d)./g,""),k){let E=P.target.textContent.length;if(E>=k)return;k-=E,W=W.slice(0,k)}window.document.execCommand("insertText",!1,""+W)}).catch(W=>{})};const z=P=>{re.Blur(P),i==null||i({value:P.target.textContent,name:S})};let R={};return v&&c?(R.edit="true",R.contentEditable=re.ContentEditable):R.contentEditable="false",R.inputMode="decimal",o&&(R.placeholder=o),l?y.jsx(y.Fragment,{}):y.jsxs("dl",{"data-field":"input",className:[J.l,u].filter(P=>P!==void 0).join(" "),children:[C?y.jsx("dt",{className:J.t,children:C}):"",A,y.jsx("dd",{className:[J.f,J.w].join(" "),onPaste:L,onInput:I,onBlur:z,onKeyDown:U,onKeyUp:Y,suppressContentEditableWarning:!0,...R,children:g}),N,T&&y.jsx("em",{children:T})]})}var It={exports:{}},ht={};/**
|
|
90
90
|
* @license React
|
|
91
91
|
* react-jsx-runtime.production.min.js
|
|
92
92
|
*
|
|
@@ -106,13 +106,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
106
106
|
`+de+e}}var ue=!1,ne;{var ze=typeof WeakMap=="function"?WeakMap:Map;ne=new ze}function Ce(e,t){if(!e||ue)return"";{var r=ne.get(e);if(r!==void 0)return r}var a;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ce.current,ce.current=null,We();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){a=F}Reflect.construct(e,[],s)}else{try{s.call()}catch(F){a=F}e.call(s.prototype)}}else{try{throw Error()}catch(F){a=F}e()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var _=F.stack.split(`
|
|
107
107
|
`),D=a.stack.split(`
|
|
108
108
|
`),x=_.length-1,w=D.length-1;x>=1&&w>=0&&_[x]!==D[w];)w--;for(;x>=1&&w>=0;x--,w--)if(_[x]!==D[w]){if(x!==1||w!==1)do if(x--,w--,w<0||_[x]!==D[w]){var q=`
|
|
109
|
-
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var
|
|
109
|
+
`+_[x].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,q),q}while(x>=1&&w>=0);break}}}finally{ue=!1,ce.current=m,Ue(),Error.prepareStackTrace=f}var V=e?e.displayName||e.name:"",G=V?ae(V):"";return typeof e=="function"&&ne.set(e,G),G}function Ke(e,t,r){return Ce(e,!1)}function Ye(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,r){if(e==null)return"";if(typeof e=="function")return Ce(e,Ye(e));if(typeof e=="string")return ae(e);switch(e){case g:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ke(e.render);case u:return oe(e.type,t,r);case k:{var a=e,f=a._payload,m=a._init;try{return oe(m(f),t,r)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Se={},Ee=O.ReactDebugCurrentFrame;function ie(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ee.setExtraStackFrame(r)}else Ee.setExtraStackFrame(null)}function Ge(e,t,r,a,f){{var m=Function.call.bind(Q);for(var s in e)if(m(e,s)){var _=void 0;try{if(typeof e[s]!="function"){var D=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}_=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){_=x}_&&!(_ instanceof Error)&&(ie(f),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof _),ie(null)),_ instanceof Error&&!(_.message in Se)&&(Se[_.message]=!0,ie(f),p("Failed %s type: %s",r,_.message),ie(null))}}}var He=Array.isArray;function fe(e){return He(e)}function Je(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function Ze(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Oe(e){if(Ze(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Re(e)}var Te=O.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},De,Pe;function Xe(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function et(e,t){typeof e.ref=="string"&&Te.current}function tt(e,t){{var r=function(){De||(De=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function rt(e,t){{var r=function(){Pe||(Pe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var at=function(e,t,r,a,f,m,s){var _={$$typeof:i,type:e,key:t,ref:r,props:s,_owner:m};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function nt(e,t,r,a,f){{var m,s={},_=null,D=null;r!==void 0&&(Oe(r),_=""+r),Qe(t)&&(Oe(t.key),_=""+t.key),Xe(t)&&(D=t.ref,et(t));for(m in t)Q.call(t,m)&&!Ve.hasOwnProperty(m)&&(s[m]=t[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)s[m]===void 0&&(s[m]=x[m])}if(_||D){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;_&&tt(s,w),D&&rt(s,w)}return at(e,_,D,f,a,Te.current,s)}}var pe=O.ReactCurrentOwner,Ne=O.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,r=oe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}var me;me=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Fe(){{if(pe.current){var e=h(pe.current.type);if(e)return`
|
|
110
110
|
|
|
111
111
|
Check the render method of \``+e+"`."}return""}}function ot(e){return""}var Ie={};function it(e){{var t=Fe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
112
112
|
|
|
113
|
-
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),
|
|
113
|
+
Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=it(t);if(Ie[r])return;Ie[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+h(e._owner.type)+"."),Z(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),Z(null)}}function $e(e,t){{if(typeof e!="object")return;if(fe(e))for(var r=0;r<e.length;r++){var a=e[r];ye(a)&&Me(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var f=$(e);if(typeof f=="function"&&f!==e.entries)for(var m=f.call(e),s;!(s=m.next()).done;)ye(s.value)&&Me(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===l||t.$$typeof===u))r=t.propTypes;else return;if(r){var a=h(t);Ge(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=h(t);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){Z(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Z(null);break}}e.ref!==null&&(Z(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var Ae={};function qe(e,t,r,a,f,m){{var s=W(e);if(!s){var _="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" 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=ot();D?_+=D:_+=Fe();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===i?(x="<"+(h(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,_)}var w=nt(e,t,r,f,m);if(w==null)return w;if(s){var q=t.children;if(q!==void 0)if(a)if(fe(q)){for(var V=0;V<q.length;V++)$e(q[V],e);Object.freeze&&Object.freeze(q)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(q,e)}if(Q.call(t,"key")){var G=h(e),F=Object.keys(t).filter(function(pt){return pt!=="key"}),ve=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[G+ve]){var ft=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
114
114
|
let props = %s;
|
|
115
115
|
<%s {...props} />
|
|
116
116
|
React keys must be passed directly to JSX without using spread:
|
|
117
117
|
let props = %s;
|
|
118
|
-
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;St.Fragment=d,St.jsx=dt,St.jsxs=ut}()),St}process.env.NODE_ENV==="production"?It.exports=Vr():It.exports=Xr();var ee=It.exports;const Qr="_notice_13j98_2",ea="_error_13j98_11",ta="_success_13j98_14",ra="_remark_13j98_17",aa="_copy_13j98_20",Ht={notice:Qr,error:ea,success:ta,remark:ra,copy:aa,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Be={};function kt({data:n}){let[i,c]=B.useState("show");B.useEffect(()=>{n.hide&&(setTimeout(function(){c("hide")},1800),setTimeout(function(){Be.del(n.key)},2500))},[n.key]);let d,v;switch(n.type){case"error":d=ee.jsx(Le.error,{}),v="Ошибка:";break;case"success":d=ee.jsx(Le.success,{}),v="Информация:";break;case"copy":d=ee.jsx(Le.success,{}),v="Копирование:";break;case"remark":d=ee.jsx(Le.success,{}),v="Подсказка:";break;default:d=ee.jsx(Le.success,{}),v="Предупреждение:";break}return ee.jsxs("li",{className:Ht[n.type],"data-status":i,children:[d,ee.jsx("b",{children:v}),ee.jsx("p",{children:n.text})]})}function na({data:n}){let[i,c]=B.useState("show");return B.useEffect(()=>{n.hide&&(setTimeout(function(){c("hide")},1800),setTimeout(function(){Be.del(n.key)},2500))},[n.key]),ee.jsx("li",{className:"item","data-status":i,children:n.text})}const Le={};Le.error=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),ee.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),Le.success=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),ee.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});var Et;(n=>{function i(){let[l,g]=B.useState([]);return Be.set=o=>{g([...l,o])},Be.del=o=>{g(l.filter(u=>u.key!==o))},l.length===0?"":ee.jsx("ul",{className:Ht.notice,children:l.map(o=>o.item)})}n.Init=i;function c(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"error"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Error=c;function d(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"success"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Success=d;function v(l,g=!0){let o=Date.now(),u={key:o,hide:g,text:l};Be.set({item:ee.jsx(na,{data:u},o),key:o})}n.Custom=v;function C(l){let g=Date.now(),o={key:g,hide:!0,...l};Be.set({item:ee.jsx(kt,{data:o},g),key:g})}n.Send=C;function T(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"remark"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Remark=T;function j(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"copy"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Copy=j})(Et||(Et={}));function oa({value:n="",onValue:i,onSave:c,name:d,format:v="+_(___) ___-__-__",placeholder:C="",title:T="",error:j="",hide:l=!1,edit:g=!0,active:o=!0,after:u="",show:k=!0,view:S,className:N=""}){g=g!==void 0?g:!0,o=o!==void 0?o:!0,l=!!(l&&(n===""||n===void 0))&&!(g&&o),B.useRef(null);let $=v,O=!0,p=0,I=(b,h)=>{let M=document.createRange(),K=window.getSelection();M.setStart(h.childNodes[0],b),M.collapse(!0),K.removeAllRanges(),K.addRange(M),h.focus()},U=b=>{b.preventDefault(),navigator.clipboard.readText().then(h=>{window.document.execCommand("insertText",!1,h)}).catch(h=>{})},Y=b=>{let h=0,M="",K=b.replace(/\D/g,"");K===""&&(O=!0);let te=K.split(""),_e="";te.forEach(be=>{O&&(_e+=be,O&&(p=(""+_e).length,$=v.replace(new RegExp("[0-9]","g"),"_"),M=""),p>(""+_e).length&&(O=!0,$=v.replace(new RegExp("[0-9]","g"),"_"),M=""))});let se=$.replace(/\D/g,"");return se.length>=K.length&&(K=se),{q:$.replace(/[_\d]/g,function(){return K.charAt(h++)||"_"}),i:h,v:K,f:M}},L=b=>{b.preventDefault(),navigator.clipboard.writeText(b.target.textContent.replace(/\D/g,"")).then(function(){Et.Copy("Данные в буфер обмене")},function(h){})},z=Y(n),R=b=>{let h=Y(b.target.textContent);b.target.textContent=h.q,h.i=h.q.lastIndexOf(h.v.substr(-1)),h.i<h.q.length&&h.q!==$?h.i++:h.i=h.q.indexOf("_"),I(h.i,b.target),i&&i({value:h.q.replace(/\D/g,""),name:d})},P=b=>{b.key==="Enter"&&b.preventDefault()};const W=b=>{re.Blur(b),c&&c({value:b.target.textContent.replace(/\D/g,""),name:d})};let E={};return g&&o?(E.edit="true",E.contentEditable=re.ContentEditable):E.contentEditable="false",C&&(E.placeholder=C),u&&(E.after=u),l?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"input",title:T,element_blok:{className:[N]},element_input:{className:[X.w]},children:y.jsx("div",{onPaste:U,onInput:R,onKeyDown:P,onContextMenu:L,onBlur:W,suppressContentEditableWarning:!0,...E,children:z.q})})}function ia({id:n,value:i,onValue:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:g=!0,after:o="",show:u=!0,maxLength:k,view:S,onSave:N,className:A="",isCopy:$=!0}){let[O,p]=B.useState(!1);O=l?!0:O;let I=R=>{c==null||c({value:R.target.innerText,name:d})},U=R=>{k&&R.target.textContent.trim().length>=k&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},Y=R=>{R.preventDefault(),navigator.clipboard.readText().then(P=>{if(k){let W=R.target.textContent.length;if(W>=k)return;k-=W,P=P.slice(0,k)}window.document.execCommand("insertText",!1,P.replace(/(\r\n|\n|\r)/gm," "))}).catch(P=>{})};if(j)return y.jsx(y.Fragment,{});if(!(l&&g)&&!u)return"";const L={};v&&(L.placeholder=v),l&&g&&(L.edit=""),O&&(L.open="");const z=R=>{re.Blur(R),N==null||N({value:R.target.textContent.trim(),name:d})};return y.jsxs("dl",{"data-field":"note",className:[X.l,A].filter(R=>R!==void 0).join(" "),children:[C?y.jsx("dt",{className:X.t,children:C}):"",y.jsx("dd",{className:[X.f,X.n].join(" "),onPaste:Y,onInput:I,onBlur:z,onKeyDown:U,contentEditable:l&&g?re.ContentEditable:"false",suppressContentEditableWarning:!0,...L,children:i}),o,T?y.jsx("em",{children:T}):""]})}const Mt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function _a({value:n,onValue:i,onSave:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:g=!0,after:o="",show:u=!0,view:k,className:S=""}){l=l!==void 0?l:!0,g=g!==void 0?g:!0,j=!!(j&&(n===""||n===void 0))&&!(l&&g),B.useRef(null);let A="+_(___) ___-__-__",$=!0,O=0,p=(E,b)=>{let h=document.createRange(),M=window.getSelection();h.setStart(b.childNodes[0],E),h.collapse(!0),M.removeAllRanges(),M.addRange(h),b.focus()},I=E=>{let b=Y(E.target.textContent);E.target.textContent=b.q,b.i=b.q.lastIndexOf(b.v.substr(-1)),b.i<b.q.length&&b.q!==A?b.i++:b.i=b.q.indexOf("_"),p(b.i,E.target),i&&i({value:b.q.replace(/\D/g,""),name:d})},U=E=>{E.preventDefault(),navigator.clipboard.readText().then(b=>{window.document.execCommand("insertText",!1,b)}).catch(b=>{})},Y=E=>{let b=0,h="",M=E.replace(/\D/g,"");M===""&&($=!0);let K=M.split(""),te="";K.forEach(ge=>{$&&(te+=ge,Mt[te]!==void 0&&$?($=!1,A=Mt[te].mask.replace(new RegExp("[0-9]","g"),"_"),h=Mt[te].code):($&&(O=(""+te).length,A=`+${te}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),h=""),O>(""+te).length&&($=!0,A=`+${te}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),h="")))});let _e=A.replace(/\D/g,"");return _e.length>=M.length&&(M=_e),{q:A.replace(/[_\d]/g,function(){return M.charAt(b++)||"_"}),i:b,v:M,f:h}},L=E=>{E.preventDefault(),navigator.clipboard.writeText(E.target.textContent.replace(/\D/g,"")).then(function(){Et.Copy("Данные в буфер обмене")},function(b){})},z=Y(n),R=E=>{E.key==="Enter"&&E.preventDefault()};const P=E=>{re.Blur(E),c&&c({value:E.target.textContent.replace(/\D/g,""),name:d})};let W={};return l&&g?(W.edit="true",W.contentEditable=re.ContentEditable):W.contentEditable="false",v&&(W.placeholder=v),j?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"input",title:C,element_blok:{className:S},element_input:{className:[X.w]},children:y.jsx("div",{onPaste:U,onInput:I,onKeyDown:R,onContextMenu:L,onBlur:P,suppressContentEditableWarning:!0,...W,children:z.q})})}const Rt={o:"_o_1c9e1_1",c:"_c_1c9e1_11"};function la({title:n,error:i,edit:c=!0,active:d=!0,className:v,placeholder:C,max:T,min:j,onValue:l,icon:g,name:o,value:u,after:k}){let[S,N]=B.useState(u===void 0?new Date:u);const A=B.useRef(null),[$,O]=B.useState(!1);let p=!c&&d;B.useEffect(()=>{N(u===void 0?new Date:u)},[u]);let I=L=>{N(L),l==null||l({value:L,name:o})},U=L=>{const z=L.target.getBoundingClientRect(),R=z.left,P=z.bottom,W=z.top;A.position={x:R,b:P,y:W},O(!0)};const Y={};return C&&(Y.placeholder=C),p?y.jsx(y.Fragment,{}):y.jsxs(y.Fragment,{children:[g?g():y.jsxs("dl",{"data-field":"date",className:[X.l,v].filter(L=>L!==void 0).join(" "),children:[n?y.jsx("dt",{className:X.t,children:n}):"",y.jsxs("dd",{onClick:U,className:[X.f,X.w].join(" "),...Y,"data-edit":(c&&d)+"",children:[da(S,"dd.mm.yyyy"),k]}),i&&y.jsx("em",{children:i})]}),$&&Ot.createPortal(y.jsx(sa,{position:A.position,onValue:I,date:S,max:T,min:j,onOpen:O,className:v},new Date().getTime()),document.body)]})}const sa=({date:n,onValue:i,position:c,max:d,min:v,className:C,onOpen:T})=>{let j=new Date,l=new Date(n),g={y:parseInt(j.getFullYear()),d:parseInt(j.getDate()),m:parseInt(j.getMonth())+1},o={y:parseInt(l.getFullYear()),d:parseInt(l.getDate()),m:parseInt(l.getMonth())+1},[u,k]=B.useState({y:o.y,m:o.m}),S=b=>{let h=b.getDay();return h===0&&(h=7),h-1},N=["пн","вт","ср","чт","пт","сб","вс"],A=u.m-1,$=new Date(u.y,A),O=[];for(let b=0;b<S($);b++)O.push(0);for(;$.getMonth()===A;)O.push($.getDate()),$.setDate($.getDate()+1);let p=()=>{T(!1)},I=()=>{L(u.m+1,u.y)},U=()=>{L(u.m-1,u.y)},Y=b=>{i(u.y+"-"+Jt(2,u.m)+"-"+Jt(2,b)),p()},L=(b,h)=>{h=b>12?h+1:b<1?h-1:h,b=b>12?1:b<1?12:b,k({y:h,m:b})};const z=b=>g.y===u.y&&g.m===u.m&&g.d===b?{"data-active":"true"}:{},R=b=>o.y===u.y&&o.m===u.m&&o.d===b?{"data-current":"true"}:{},P=b=>{let h=!0;if(d){let M=d.getTime(),K=new Date(u.y,u.m-1,b).getTime();M<K&&(h=!1)}if(v){let M=v.getTime(),K=new Date(u.y,u.m-1,b).getTime();M>K&&(h=!1)}return h};let W=window.innerHeight-c.y<320?c.y-312:c.b,E=window.innerWidth-c.x<265?c.x-235:c.x;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Rt.o,onClick:()=>p()}),y.jsxs("div",{className:[Rt.c,C&&C+"-backdrop"].join(" "),style:{top:W+"px",left:E+"px"},children:[y.jsxs("s",{children:[y.jsx("i",{onClick:U,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),y.jsxs("h2",{children:[ca(u.m).name," ",u.y]}),y.jsx("i",{onClick:I,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),y.jsxs("div",{"grid-calendar":"",children:[N.map((b,h)=>y.jsx("p",{children:b},"v"+h)),O.map((b,h)=>y.jsx("span",{children:b!==0&&P(b)?y.jsx("b",{...z(b),...R(b),onClick:()=>Y(b),children:b}):y.jsx("p",{...z(b),...R(b),children:b!==0?b:""})},h))]})]})]})};function ca(n){return n=typeof n=="number"?n:new Date(n).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[n]}function Jt(n,i){let c=i+"";for(;c.length<n;)c="0"+c;return c}function da(n,i){i===void 0?(i=n,n=new Date):n=new Date(n);let c={yyyy:n.getFullYear(),yy:(""+n.getFullYear()).slice(-2),mm:("0"+(n.getMonth()+1)).slice(-2),dd:("0"+n.getDate()).slice(-2),HH:("0"+n.getHours()).slice(-2),MM:("0"+n.getMinutes()).slice(-2),SS:("0"+n.getSeconds()).slice(-2),__:" ",_:" "};for(const d in c)i=i.replace(d,c[d]);return i}function ua({value:n,onValue:i,name:c,error:d,icon:v,edit:C=!0,active:T=!0,title:j,placeholder:l="",className:g}){let[o,u]=B.useState(n);const k=B.useRef(null),[S,N]=B.useState(!1);B.useEffect(()=>{u(n)},[n]);let A=p=>{u(p),i&&i({value:p,name:c})},$=p=>{if(!C||!T)return;const I=p.target.getBoundingClientRect(),U=I.left,Y=I.top;k.position={x:U,y:Y},N(!0)};const O={};return l&&(O.placeholder=l),v||y.jsxs(y.Fragment,{children:[y.jsxs("dl",{"data-field":"date",className:[X.l,g].filter(p=>p!==void 0).join(" "),children:[j?y.jsx("dt",{className:X.t,children:j}):"",y.jsx("dd",{onClick:$,...O,className:[X.f,X.w].join(" "),children:pa(o,"mm.yyyy")}),d&&y.jsx("em",{children:d})]}),S&&Ot.createPortal(y.jsx(fa,{position:k.position,onValue:A,date:o,onOpen:N},new Date().getTime()),document.body)]})}const fa=({onOpen:n,date:i,onValue:c,position:d})=>{let v=new Date,C=new Date(i),T={y:parseInt(v.getFullYear()),m:parseInt(v.getMonth())+1},j={y:parseInt(C.getFullYear()),m:parseInt(C.getMonth())+1},[l,g]=B.useState(j.y),o=()=>{n(!1)},u=()=>{g(l+1)},k=()=>{g(l-1)},S=p=>{c(l+"-"+ma(2,p)),o()},N=p=>T.y===j.y&&T.m===p?"_FFEB3B":"",A=Array(12).fill("").map((p,I)=>I+1),$=window.innerHeight-d.y+33<320?d.y-312:d.y+33,O=window.innerWidth-d.x<265?d.x-235:d.x;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Rt.o,onClick:o}),y.jsxs("div",{className:Rt.c,style:{top:$+"px",left:O+"px"},children:[y.jsxs("s",{children:[y.jsx("i",{onClick:k,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),y.jsx("h2",{children:l}),y.jsx("i",{onClick:u,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),y.jsx("div",{"grid-month":"",children:A.map((p,I)=>y.jsx("span",{onClick:()=>{S(p)},color:N(p),children:y.jsx("b",{children:ya(p).abc})},I))})]})]})};function pa(n,i){i===void 0?(i=n,n=new Date):n=new Date(n);let c={yyyy:n.getFullYear(),yy:(""+n.getFullYear()).slice(-2),mm:("0"+(n.getMonth()+1)).slice(-2),dd:("0"+n.getDate()).slice(-2),HH:("0"+n.getHours()).slice(-2),MM:("0"+n.getMinutes()).slice(-2),SS:("0"+n.getSeconds()).slice(-2),__:" ",_:" "};for(const d in c)i=i.replace(d,c[d]);return i}function ma(n,i){let c=i+"";for(;c.length<n;)c="0"+c;return c}function ya(n){return n=typeof n=="number"?n:new Date(n).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[n]}function va({value:n,onValue:i,name:c,placeholder:d="",title:v="",error:C="",hide:T=!1,edit:j=!0,active:l=!0,after:g="",show:o=!0,course:u=100,view:k,type:S,onSave:N,className:A="",isClear:$=!1}){let O=!!(T&&(n===""||n===void 0)),p=E=>S==="multi"?E.replace(/[^+\d.+-]/g,""):E.replace(/[^+\d.]/g,""),I=(E,b)=>{let h=document.createRange(),M=window.getSelection();h.setStart(b.childNodes[0],E),h.collapse(!0),M.removeAllRanges(),M.addRange(h),b.focus()},U=E=>{i==null||i({value:p(E.target.textContent)*u,name:c}),E.target.textContent=p(E.target.textContent),E.target.textContent.length>0&&I(E.target.textContent.length,E.target)},Y=E=>{re.Blur(E),E.target.textContent===""&&(E.target.textContent=0),N==null||N({value:p(E.target.textContent)*u,name:c}),i==null||i({value:p(E.target.textContent)*u,name:c}),E.target.textContent=Zt(E.target.textContent)},L=E=>{E.target.textContent=p(E.target.textContent)},z=E=>{E.currentTarget.previousElementSibling.textContent="",i==null||i({value:0,name:c})},R=E=>{E.key==="Enter"&&E.preventDefault()},P=E=>{E.preventDefault(),navigator.clipboard.readText().then(b=>{b=b.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,b)}).catch(b=>{})};if(!(j&&l)&&!o||!(j&&l)&&O)return"";const W={};return W.inputMode="decimal",d&&(W.placeholder=d),j&&l&&(W.edit=""),y.jsxs("dl",{"data-field":"date",className:[X.l,A].filter(E=>E!==void 0).join(" "),children:[v?y.jsx("dt",{className:X.t,children:v}):"",y.jsx("dd",{...W,className:[X.f,X.w].join(" "),onInput:U,onPaste:P,onBlur:Y,onKeyDown:R,onFocus:L,contentEditable:j&&l?re.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":g,children:!d||n?Zt(n):""}),$&&y.jsx("svg",{"action-type":"delete",onClick:z,viewBox:"0 0 24 24",children:y.jsx("path",{d:"M17 6L6 17M6 6L17 17"})}),C?y.jsx("em",{children:C}):""]})}function Zt(n,i){return parseFloat(n).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}const he={};function ga(n){const[i,c]=B.useState({}),d=B.useRef(n);return he.u=v=>{d.current={...d.current,[v.name]:v.value}},he.n=v=>{d.current=v,c(Date.now())},he.r=()=>{c(Date.now())},[d.current,he.n]}function ba(n){he.u(n),n.reload&&he.r()}function ha(){he.r&&he.r()}function ka(n){const[i,c]=B.useState({}),d=B.useRef(n);return he.u=v=>{d.current={...d.current,[v.name]:v.value}},he.n=v=>{Object.keys(v).length>0?Object.keys(v).forEach(C=>{d.current[C]=v[C]}):d.current={},c(Date.now())},he.r=()=>{c(Date.now())},[d.current,he.n]}function $t(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}$t().elcrm||($t().elcrm={}),Object.assign($t().elcrm,{form:Vt.version}),V.Date=la,V.Mask=oa,V.Modal=Hr,V.Money=va,V.Month=ua,V.Note=ia,V.Number=Zr,V.Options=zr,V.Password=Jr,V.Phone=_a,V.Progress=er,V.Select=Kr,V.String=tr,V.runReload=ha,V.setValue=ba,V.useData=ga,V.useError=ka,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
118
|
+
<%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;St.Fragment=d,St.jsx=dt,St.jsxs=ut}()),St}process.env.NODE_ENV==="production"?It.exports=Vr():It.exports=Xr();var ee=It.exports;const Qr="_notice_13j98_2",ea="_error_13j98_11",ta="_success_13j98_14",ra="_remark_13j98_17",aa="_copy_13j98_20",Ht={notice:Qr,error:ea,success:ta,remark:ra,copy:aa,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Be={};function kt({data:n}){let[i,c]=B.useState("show");B.useEffect(()=>{n.hide&&(setTimeout(function(){c("hide")},1800),setTimeout(function(){Be.del(n.key)},2500))},[n.key]);let d,v;switch(n.type){case"error":d=ee.jsx(Le.error,{}),v="Ошибка:";break;case"success":d=ee.jsx(Le.success,{}),v="Информация:";break;case"copy":d=ee.jsx(Le.success,{}),v="Копирование:";break;case"remark":d=ee.jsx(Le.success,{}),v="Подсказка:";break;default:d=ee.jsx(Le.success,{}),v="Предупреждение:";break}return ee.jsxs("li",{className:Ht[n.type],"data-status":i,children:[d,ee.jsx("b",{children:v}),ee.jsx("p",{children:n.text})]})}function na({data:n}){let[i,c]=B.useState("show");return B.useEffect(()=>{n.hide&&(setTimeout(function(){c("hide")},1800),setTimeout(function(){Be.del(n.key)},2500))},[n.key]),ee.jsx("li",{className:"item","data-status":i,children:n.text})}const Le={};Le.error=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),ee.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),Le.success=()=>ee.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[ee.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),ee.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});var Et;(n=>{function i(){let[l,g]=B.useState([]);return Be.set=o=>{g([...l,o])},Be.del=o=>{g(l.filter(u=>u.key!==o))},l.length===0?"":ee.jsx("ul",{className:Ht.notice,children:l.map(o=>o.item)})}n.Init=i;function c(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"error"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Error=c;function d(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"success"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Success=d;function v(l,g=!0){let o=Date.now(),u={key:o,hide:g,text:l};Be.set({item:ee.jsx(na,{data:u},o),key:o})}n.Custom=v;function C(l){let g=Date.now(),o={key:g,hide:!0,...l};Be.set({item:ee.jsx(kt,{data:o},g),key:g})}n.Send=C;function T(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"remark"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Remark=T;function j(l,g=!0){let o=Date.now(),u={key:o,text:l,hide:g,type:"copy"};Be.set({item:ee.jsx(kt,{data:u},o),key:o})}n.Copy=j})(Et||(Et={}));function oa({value:n="",onValue:i,onSave:c,name:d,format:v="+_(___) ___-__-__",placeholder:C="",title:T="",error:j="",hide:l=!1,edit:g=!0,active:o=!0,after:u="",show:k=!0,view:S,className:N=""}){g=g!==void 0?g:!0,o=o!==void 0?o:!0,l=!!(l&&(n===""||n===void 0))&&!(g&&o),B.useRef(null);let $=v,O=!0,p=0,I=(b,h)=>{let M=document.createRange(),K=window.getSelection();M.setStart(h.childNodes[0],b),M.collapse(!0),K.removeAllRanges(),K.addRange(M),h.focus()},U=b=>{b.preventDefault(),navigator.clipboard.readText().then(h=>{window.document.execCommand("insertText",!1,h)}).catch(h=>{})},Y=b=>{let h=0,M="",K=b.replace(/\D/g,"");K===""&&(O=!0);let te=K.split(""),_e="";te.forEach(be=>{O&&(_e+=be,O&&(p=(""+_e).length,$=v.replace(new RegExp("[0-9]","g"),"_"),M=""),p>(""+_e).length&&(O=!0,$=v.replace(new RegExp("[0-9]","g"),"_"),M=""))});let se=$.replace(/\D/g,"");return se.length>=K.length&&(K=se),{q:$.replace(/[_\d]/g,function(){return K.charAt(h++)||"_"}),i:h,v:K,f:M}},L=b=>{b.preventDefault(),navigator.clipboard.writeText(b.target.textContent.replace(/\D/g,"")).then(function(){Et.Copy("Данные в буфер обмене")},function(h){})},z=Y(n),R=b=>{let h=Y(b.target.textContent);b.target.textContent=h.q,h.i=h.q.lastIndexOf(h.v.substr(-1)),h.i<h.q.length&&h.q!==$?h.i++:h.i=h.q.indexOf("_"),I(h.i,b.target),i&&i({value:h.q.replace(/\D/g,""),name:d})},P=b=>{b.key==="Enter"&&b.preventDefault()};const W=b=>{re.Blur(b),c&&c({value:b.target.textContent.replace(/\D/g,""),name:d})};let E={};return g&&o?(E.edit="true",E.contentEditable=re.ContentEditable):E.contentEditable="false",C&&(E.placeholder=C),u&&(E.after=u),l?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"input",title:T,element_blok:{className:[N]},element_input:{className:[J.w]},children:y.jsx("div",{onPaste:U,onInput:R,onKeyDown:P,onContextMenu:L,onBlur:W,suppressContentEditableWarning:!0,...E,children:z.q})})}function ia({id:n,value:i,onValue:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:g=!0,after:o="",show:u=!0,maxLength:k,view:S,onSave:N,className:A="",isCopy:$=!0}){let[O,p]=B.useState(!1);O=l?!0:O;let I=R=>{c==null||c({value:R.target.innerText,name:d})},U=R=>{k&&R.target.textContent.trim().length>=k&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},Y=R=>{R.preventDefault(),navigator.clipboard.readText().then(P=>{if(k){let W=R.target.textContent.length;if(W>=k)return;k-=W,P=P.slice(0,k)}window.document.execCommand("insertText",!1,P.replace(/(\r\n|\n|\r)/gm," "))}).catch(P=>{})};if(j)return y.jsx(y.Fragment,{});if(!(l&&g)&&!u)return"";const L={};v&&(L.placeholder=v),l&&g&&(L.edit=""),O&&(L.open="");const z=R=>{re.Blur(R),N==null||N({value:R.target.textContent.trim(),name:d})};return y.jsxs("dl",{"data-field":"note",className:[J.l,A].filter(R=>R!==void 0).join(" "),children:[C?y.jsx("dt",{className:J.t,children:C}):"",y.jsx("dd",{className:[J.f,J.n].join(" "),onPaste:Y,onInput:I,onBlur:z,onKeyDown:U,contentEditable:l&&g?re.ContentEditable:"false",suppressContentEditableWarning:!0,...L,children:i}),o,T?y.jsx("em",{children:T}):""]})}const Mt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function _a({value:n,onValue:i,onSave:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:g=!0,after:o="",show:u=!0,view:k,className:S=""}){l=l!==void 0?l:!0,g=g!==void 0?g:!0,j=!!(j&&(n===""||n===void 0))&&!(l&&g),B.useRef(null);let A="+_(___) ___-__-__",$=!0,O=0,p=(E,b)=>{let h=document.createRange(),M=window.getSelection();h.setStart(b.childNodes[0],E),h.collapse(!0),M.removeAllRanges(),M.addRange(h),b.focus()},I=E=>{let b=Y(E.target.textContent);E.target.textContent=b.q,b.i=b.q.lastIndexOf(b.v.substr(-1)),b.i<b.q.length&&b.q!==A?b.i++:b.i=b.q.indexOf("_"),p(b.i,E.target),i&&i({value:b.q.replace(/\D/g,""),name:d})},U=E=>{E.preventDefault(),navigator.clipboard.readText().then(b=>{window.document.execCommand("insertText",!1,b)}).catch(b=>{})},Y=E=>{let b=0,h="",M=E.replace(/\D/g,"");M===""&&($=!0);let K=M.split(""),te="";K.forEach(ge=>{$&&(te+=ge,Mt[te]!==void 0&&$?($=!1,A=Mt[te].mask.replace(new RegExp("[0-9]","g"),"_"),h=Mt[te].code):($&&(O=(""+te).length,A=`+${te}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),h=""),O>(""+te).length&&($=!0,A=`+${te}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),h="")))});let _e=A.replace(/\D/g,"");return _e.length>=M.length&&(M=_e),{q:A.replace(/[_\d]/g,function(){return M.charAt(b++)||"_"}),i:b,v:M,f:h}},L=E=>{E.preventDefault(),navigator.clipboard.writeText(E.target.textContent.replace(/\D/g,"")).then(function(){Et.Copy("Данные в буфер обмене")},function(b){})},z=Y(n),R=E=>{E.key==="Enter"&&E.preventDefault()};const P=E=>{re.Blur(E),c&&c({value:E.target.textContent.replace(/\D/g,""),name:d})};let W={};return l&&g?(W.edit="true",W.contentEditable=re.ContentEditable):W.contentEditable="false",v&&(W.placeholder=v),j?y.jsx(y.Fragment,{}):y.jsx(vt,{type:"input",title:C,element_blok:{className:S},element_input:{className:[J.w]},children:y.jsx("div",{onPaste:U,onInput:I,onKeyDown:R,onContextMenu:L,onBlur:P,suppressContentEditableWarning:!0,...W,children:z.q})})}const Rt={o:"_o_1c9e1_1",c:"_c_1c9e1_11"};function la({title:n,error:i,edit:c=!0,active:d=!0,className:v,placeholder:C,max:T,min:j,onValue:l,icon:g,name:o,value:u,after:k}){let[S,N]=B.useState(u===void 0?new Date:u);const A=B.useRef(null),[$,O]=B.useState(!1);let p=!c&&d;B.useEffect(()=>{N(u===void 0?new Date:u)},[u]);let I=L=>{N(L),l==null||l({value:L,name:o})},U=L=>{const z=L.target.getBoundingClientRect(),R=z.left,P=z.bottom,W=z.top;A.position={x:R,b:P,y:W},O(!0)};const Y={};return C&&(Y.placeholder=C),p?y.jsx(y.Fragment,{}):y.jsxs(y.Fragment,{children:[g?g():y.jsxs("dl",{"data-field":"date",className:[J.l,v].filter(L=>L!==void 0).join(" "),children:[n?y.jsx("dt",{className:J.t,children:n}):"",y.jsxs("dd",{onClick:U,className:[J.f,J.w].join(" "),...Y,"data-edit":(c&&d)+"",children:[da(S,"dd.mm.yyyy"),k]}),i&&y.jsx("em",{children:i})]}),$&&Ot.createPortal(y.jsx(sa,{position:A.position,onValue:I,date:S,max:T,min:j,onOpen:O,className:v},new Date().getTime()),document.body)]})}const sa=({date:n,onValue:i,position:c,max:d,min:v,className:C,onOpen:T})=>{let j=new Date,l=new Date(n),g={y:parseInt(j.getFullYear()),d:parseInt(j.getDate()),m:parseInt(j.getMonth())+1},o={y:parseInt(l.getFullYear()),d:parseInt(l.getDate()),m:parseInt(l.getMonth())+1},[u,k]=B.useState({y:o.y,m:o.m}),S=b=>{let h=b.getDay();return h===0&&(h=7),h-1},N=["пн","вт","ср","чт","пт","сб","вс"],A=u.m-1,$=new Date(u.y,A),O=[];for(let b=0;b<S($);b++)O.push(0);for(;$.getMonth()===A;)O.push($.getDate()),$.setDate($.getDate()+1);let p=()=>{T(!1)},I=()=>{L(u.m+1,u.y)},U=()=>{L(u.m-1,u.y)},Y=b=>{i(u.y+"-"+Jt(2,u.m)+"-"+Jt(2,b)),p()},L=(b,h)=>{h=b>12?h+1:b<1?h-1:h,b=b>12?1:b<1?12:b,k({y:h,m:b})};const z=b=>g.y===u.y&&g.m===u.m&&g.d===b?{"data-active":"true"}:{},R=b=>o.y===u.y&&o.m===u.m&&o.d===b?{"data-current":"true"}:{},P=b=>{let h=!0;if(d){let M=d.getTime(),K=new Date(u.y,u.m-1,b).getTime();M<K&&(h=!1)}if(v){let M=v.getTime(),K=new Date(u.y,u.m-1,b).getTime();M>K&&(h=!1)}return h};let W=window.innerHeight-c.y<320?c.y-312:c.b,E=window.innerWidth-c.x<265?c.x-235:c.x;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Rt.o,onClick:()=>p()}),y.jsxs("div",{className:[Rt.c,C&&C+"-backdrop"].join(" "),style:{top:W+"px",left:E+"px"},children:[y.jsxs("s",{children:[y.jsx("i",{onClick:U,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),y.jsxs("h2",{children:[ca(u.m).name," ",u.y]}),y.jsx("i",{onClick:I,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),y.jsxs("div",{"grid-calendar":"",children:[N.map((b,h)=>y.jsx("p",{children:b},"v"+h)),O.map((b,h)=>y.jsx("span",{children:b!==0&&P(b)?y.jsx("b",{...z(b),...R(b),onClick:()=>Y(b),children:b}):y.jsx("p",{...z(b),...R(b),children:b!==0?b:""})},h))]})]})]})};function ca(n){return n=typeof n=="number"?n:new Date(n).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[n]}function Jt(n,i){let c=i+"";for(;c.length<n;)c="0"+c;return c}function da(n,i){i===void 0?(i=n,n=new Date):n=new Date(n);let c={yyyy:n.getFullYear(),yy:(""+n.getFullYear()).slice(-2),mm:("0"+(n.getMonth()+1)).slice(-2),dd:("0"+n.getDate()).slice(-2),HH:("0"+n.getHours()).slice(-2),MM:("0"+n.getMinutes()).slice(-2),SS:("0"+n.getSeconds()).slice(-2),__:" ",_:" "};for(const d in c)i=i.replace(d,c[d]);return i}function ua({value:n,onValue:i,name:c,error:d,icon:v,edit:C=!0,active:T=!0,title:j,placeholder:l="",className:g}){let[o,u]=B.useState(n);const k=B.useRef(null),[S,N]=B.useState(!1);B.useEffect(()=>{u(n)},[n]);let A=p=>{u(p),i&&i({value:p,name:c})},$=p=>{if(!C||!T)return;const I=p.target.getBoundingClientRect(),U=I.left,Y=I.top;k.position={x:U,y:Y},N(!0)};const O={};return l&&(O.placeholder=l),v||y.jsxs(y.Fragment,{children:[y.jsxs("dl",{"data-field":"date",className:[J.l,g].filter(p=>p!==void 0).join(" "),children:[j?y.jsx("dt",{className:J.t,children:j}):"",y.jsx("dd",{onClick:$,...O,className:[J.f,J.w].join(" "),children:pa(o,"mm.yyyy")}),d&&y.jsx("em",{children:d})]}),S&&Ot.createPortal(y.jsx(fa,{position:k.position,onValue:A,date:o,onOpen:N},new Date().getTime()),document.body)]})}const fa=({onOpen:n,date:i,onValue:c,position:d})=>{let v=new Date,C=new Date(i),T={y:parseInt(v.getFullYear()),m:parseInt(v.getMonth())+1},j={y:parseInt(C.getFullYear()),m:parseInt(C.getMonth())+1},[l,g]=B.useState(j.y),o=()=>{n(!1)},u=()=>{g(l+1)},k=()=>{g(l-1)},S=p=>{c(l+"-"+ma(2,p)),o()},N=p=>T.y===j.y&&T.m===p?"_FFEB3B":"",A=Array(12).fill("").map((p,I)=>I+1),$=window.innerHeight-d.y+33<320?d.y-312:d.y+33,O=window.innerWidth-d.x<265?d.x-235:d.x;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Rt.o,onClick:o}),y.jsxs("div",{className:Rt.c,style:{top:$+"px",left:O+"px"},children:[y.jsxs("s",{children:[y.jsx("i",{onClick:k,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),y.jsx("h2",{children:l}),y.jsx("i",{onClick:u,children:y.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),y.jsx("div",{"grid-month":"",children:A.map((p,I)=>y.jsx("span",{onClick:()=>{S(p)},color:N(p),children:y.jsx("b",{children:ya(p).abc})},I))})]})]})};function pa(n,i){i===void 0?(i=n,n=new Date):n=new Date(n);let c={yyyy:n.getFullYear(),yy:(""+n.getFullYear()).slice(-2),mm:("0"+(n.getMonth()+1)).slice(-2),dd:("0"+n.getDate()).slice(-2),HH:("0"+n.getHours()).slice(-2),MM:("0"+n.getMinutes()).slice(-2),SS:("0"+n.getSeconds()).slice(-2),__:" ",_:" "};for(const d in c)i=i.replace(d,c[d]);return i}function ma(n,i){let c=i+"";for(;c.length<n;)c="0"+c;return c}function ya(n){return n=typeof n=="number"?n:new Date(n).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[n]}function va({value:n,onValue:i,name:c,placeholder:d="",title:v="",error:C="",hide:T=!1,edit:j=!0,active:l=!0,after:g="",show:o=!0,course:u=100,view:k,type:S,onSave:N,className:A="",isClear:$=!1}){let O=!!(T&&(n===""||n===void 0)),p=E=>S==="multi"?E.replace(/[^+\d.+-]/g,""):E.replace(/[^+\d.]/g,""),I=(E,b)=>{let h=document.createRange(),M=window.getSelection();h.setStart(b.childNodes[0],E),h.collapse(!0),M.removeAllRanges(),M.addRange(h),b.focus()},U=E=>{i==null||i({value:p(E.target.textContent)*u,name:c}),E.target.textContent=p(E.target.textContent),E.target.textContent.length>0&&I(E.target.textContent.length,E.target)},Y=E=>{re.Blur(E),E.target.textContent===""&&(E.target.textContent=0),N==null||N({value:p(E.target.textContent)*u,name:c}),i==null||i({value:p(E.target.textContent)*u,name:c}),E.target.textContent=Zt(E.target.textContent)},L=E=>{E.target.textContent=p(E.target.textContent)},z=E=>{E.currentTarget.previousElementSibling.textContent="",i==null||i({value:0,name:c})},R=E=>{E.key==="Enter"&&E.preventDefault()},P=E=>{E.preventDefault(),navigator.clipboard.readText().then(b=>{b=b.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,b)}).catch(b=>{})};if(!(j&&l)&&!o||!(j&&l)&&O)return"";const W={};return W.inputMode="decimal",d&&(W.placeholder=d),j&&l&&(W.edit=""),y.jsxs("dl",{"data-field":"date",className:[J.l,A].filter(E=>E!==void 0).join(" "),children:[v?y.jsx("dt",{className:J.t,children:v}):"",y.jsx("dd",{...W,className:[J.f,J.w].join(" "),onInput:U,onPaste:P,onBlur:Y,onKeyDown:R,onFocus:L,contentEditable:j&&l?re.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":g,children:!d||n?Zt(n):""}),$&&y.jsx("svg",{"action-type":"delete",onClick:z,viewBox:"0 0 24 24",children:y.jsx("path",{d:"M17 6L6 17M6 6L17 17"})}),C?y.jsx("em",{children:C}):""]})}function Zt(n,i){return parseFloat(n).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}const he={};function ga(n){const[i,c]=B.useState({}),d=B.useRef(n);return he.u=v=>{d.current={...d.current,[v.name]:v.value}},he.n=v=>{d.current=v,c(Date.now())},he.r=()=>{c(Date.now())},[d.current,he.n]}function ba(n){he.u(n),n.reload&&he.r()}function ha(){he.r&&he.r()}function ka(n){const[i,c]=B.useState({}),d=B.useRef(n);return he.u=v=>{d.current={...d.current,[v.name]:v.value}},he.n=v=>{Object.keys(v).length>0?Object.keys(v).forEach(C=>{d.current[C]=v[C]}):d.current={},c(Date.now())},he.r=()=>{c(Date.now())},[d.current,he.n]}function $t(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}$t().elcrm||($t().elcrm={}),Object.assign($t().elcrm,{form:Vt.version}),X.Date=la,X.Mask=oa,X.Modal=Hr,X.Money=va,X.Month=ua,X.Note=ia,X.Number=Zr,X.Options=zr,X.Password=Jr,X.Phone=_a,X.Progress=er,X.Select=Kr,X.String=tr,X.runReload=ha,X.setValue=ba,X.useData=ga,X.useError=ka,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
|