@elcrm/form 0.0.48 → 0.0.50

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import q, { forwardRef as Jt, useEffect as Zt } from "react";
2
2
  import { createPortal as Mt } from "react-dom";
3
- import './index.css';const Vt = "0.0.47", Xt = {
3
+ import './index.css';const Vt = "0.0.50", Xt = {
4
4
  version: Vt
5
5
  };
6
6
  var Tt = { exports: {} }, mt = {};
@@ -1797,7 +1797,7 @@ function Cn({
1797
1797
  min: x,
1798
1798
  onValue: s,
1799
1799
  icon: h,
1800
- name: o,
1800
+ name: o = "",
1801
1801
  value: c,
1802
1802
  after: b
1803
1803
  }) {
@@ -2023,7 +2023,7 @@ function Sn({
2023
2023
  isCopy: I = !0
2024
2024
  }) {
2025
2025
  const Y = (M) => {
2026
- _ == null || _({ value: M.target.innerText, name: u });
2026
+ _ == null || _({ value: M.target.innerText, name: u || "" });
2027
2027
  }, D = (M) => {
2028
2028
  c && M.target.textContent.trim().length >= c && M.key !== "Backspace" && M.preventDefault(), M.key === "Enter" && M.preventDefault();
2029
2029
  }, R = (M) => {
@@ -2046,7 +2046,7 @@ function Sn({
2046
2046
  const p = {};
2047
2047
  d && (p.placeholder = d), x && s && (p.edit = "");
2048
2048
  const F = (M) => {
2049
- ee.Blur(M), b == null || b({ value: M.target.textContent.trim(), name: u });
2049
+ ee.Blur(M), b == null || b({ value: M.target.textContent.trim(), name: u || "" });
2050
2050
  };
2051
2051
  return /* @__PURE__ */ g.jsx(
2052
2052
  Be,
@@ -3457,7 +3457,7 @@ function Rn({
3457
3457
  value: n,
3458
3458
  onValue: _,
3459
3459
  onSave: u,
3460
- name: d,
3460
+ name: d = "",
3461
3461
  placeholder: v = "",
3462
3462
  title: C = "",
3463
3463
  label: E = "",
@@ -3476,7 +3476,7 @@ function Rn({
3476
3476
  $.setStart(y.childNodes[0], k), $.collapse(!0), L.removeAllRanges(), L.addRange($), y.focus();
3477
3477
  }, M = (k) => {
3478
3478
  let y = W(k.target.textContent);
3479
- k.target.textContent = y.q, y.i = y.q.lastIndexOf(y.v.substr(-1)), y.i < y.q.length && y.q !== D ? y.i++ : y.i = y.q.indexOf("_"), F(y.i, k.target), _ && _({ value: y.q.replace(/\D/g, ""), name: d });
3479
+ k.target.textContent = y.q, y.i = y.q.lastIndexOf(y.v.substr(-1)), y.i < y.q.length && y.q !== D ? y.i++ : y.i = y.q.indexOf("_"), F(y.i, k.target), _ && _({ value: y.q.replace(/\D/g, ""), name: d || "" });
3480
3480
  }, K = (k) => {
3481
3481
  k.preventDefault(), navigator.clipboard.readText().then((y) => {
3482
3482
  window.document.execCommand("insertText", !1, y);
@@ -3513,7 +3513,7 @@ function Rn({
3513
3513
  const N = (k) => {
3514
3514
  ee.Blur(k), u && u({
3515
3515
  value: k.target.textContent.replace(/\D/g, ""),
3516
- name: d
3516
+ name: d || ""
3517
3517
  });
3518
3518
  };
3519
3519
  let G = {};
@@ -3544,7 +3544,7 @@ function Rn({
3544
3544
  function En({
3545
3545
  value: n,
3546
3546
  onValue: _,
3547
- name: u,
3547
+ name: u = "",
3548
3548
  inputmode: d = "text",
3549
3549
  placeholder: v = "",
3550
3550
  title: C = "",
@@ -3628,7 +3628,7 @@ function On({
3628
3628
  placeholder: o,
3629
3629
  className: c,
3630
3630
  maxLength: b,
3631
- name: S,
3631
+ name: S = "",
3632
3632
  after: I = "",
3633
3633
  before: Y = "",
3634
3634
  view: D
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(J,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],q):(J=typeof globalThis<"u"?globalThis:J||self,q((J.elCRM=J.elCRM||{},J.elCRM.components={}),J.React,J.ReactDOM))})(this,function(J,q,Rt){"use strict";var qt=document.createElement("style");qt.textContent=`@charset "UTF-8";._l_qo8dp_12{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._l_qo8dp_12[data-field=group] div{cursor:pointer;border-bottom:var(--field-border);margin:0;padding:var(--field-padding)}._l_qo8dp_12[data-field=group] div:last-child{border-bottom:0}._l_qo8dp_12 [placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._l_qo8dp_12 [placeholder]:focus:before{display:none}._f_qo8dp_36{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_qo8dp_36>div{outline:0;flex:1;margin:var(--field-padding);text-wrap:pretty}._n_qo8dp_54 div{min-height:var(--field-note-height);line-height:var(--field-note-line-height);padding-top:var(--field-note-padding-top)}._w_qo8dp_60>div{text-wrap:nowrap;overflow:hidden;overflow-x:scroll}._w_qo8dp_60>div::-webkit-scrollbar{width:0;height:0}._t_qo8dp_70{color:var(--field-label-color);padding-bottom:8px}._g_qo8dp_75{flex-direction:column}._h_qo8dp_79{--field-border: 0}._h_qo8dp_79 div{border:var(--field-check-box-border, --field-border);width:var(--field-height);height:var(--field-height);border-radius:var(--field-radius);background:var(--field-background);margin:0;flex:none;cursor:pointer;position:relative;gap:10px}._h_qo8dp_79 div[aria-checked=true]{background:var(--field-background-active)}._h_qo8dp_79 div:after{content:"";width:9px;height:5px;position:absolute;top:5px;left:4px;border:3px solid #fcfff4;border-top:none;border-right:none;background:transparent;transform:rotate(-45deg);margin:4px}._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}: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}
2
- /*$vite$:1*/`,document.head.appendChild(qt);const Vt={version:"0.0.47"};var Tt={exports:{}},yt={};/**
2
+ /*$vite$:1*/`,document.head.appendChild(qt);const Vt={version:"0.0.50"};var Tt={exports:{}},yt={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -57,7 +57,7 @@ Check the top-level render call using <`+r+">.")}return t}}function $e(e,t){{if(
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,ge,G,pt,G),Ae[G+ge]=!0}}return e===u?st(w):lt(w),w}}function ct(e,t,r){return Be(e,t,r,!0)}function dt(e,t,r){return Be(e,t,r,!1)}var ut=dt,ft=ct;xt.Fragment=u,xt.jsx=ut,xt.jsxs=ft}()),xt}process.env.NODE_ENV==="production"?Dt.exports=tr():Dt.exports=rr();var ee=Dt.exports;const ar="_notice_13j98_2",nr="_error_13j98_11",or="_success_13j98_14",ir="_remark_13j98_17",_r="_copy_13j98_20",Ut={notice:ar,error:nr,success:or,remark:ir,copy:_r,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Le={};function bt({data:a}){let[i,d]=q.useState("show");q.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Le.del(a.key)},2500))},[a.key]);let u,v;switch(a.type){case"error":u=ee.jsx(We.error,{}),v="Ошибка:";break;case"success":u=ee.jsx(We.success,{}),v="Информация:";break;case"copy":u=ee.jsx(We.success,{}),v="Копирование:";break;case"remark":u=ee.jsx(We.success,{}),v="Подсказка:";break;default:u=ee.jsx(We.success,{}),v="Предупреждение:";break}return ee.jsxs("li",{className:Ut[a.type],"data-status":i,children:[u,ee.jsx("b",{children:v}),ee.jsx("p",{children:a.text})]})}function lr({data:a}){let[i,d]=q.useState("show");return q.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Le.del(a.key)},2500))},[a.key]),ee.jsx("li",{className:"item","data-status":i,children:a.text})}const We={};We.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"})]}),We.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 wt;(a=>{function i(){let[l,b]=q.useState([]);return Le.set=o=>{b([...l,o])},Le.del=o=>{b(l.filter(c=>c.key!==o))},l.length===0?"":ee.jsx("ul",{className:Ut.notice,children:l.map(o=>o.item)})}a.Init=i;function d(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"error"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Error=d;function u(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"success"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Success=u;function v(l,b=!0){let o=Date.now(),c={key:o,hide:b,text:l};Le.set({item:ee.jsx(lr,{data:c},o),key:o})}a.Custom=v;function C(l){let b=Date.now(),o={key:b,hide:!0,...l};Le.set({item:ee.jsx(bt,{data:o},b),key:b})}a.Send=C;function O(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"remark"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Remark=O;function j(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"copy"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Copy=j})(wt||(wt={}));const ke=q.forwardRef(({element_blok:a,element_input:i,type:d="input",title:u,before:v,after:C,children:O},j)=>g.jsxs("dl",{"data-field":d,...i.props,className:[ie.l,...a.className].filter(l=>l!==void 0).join(" "),children:[u?g.jsx("dt",{className:ie.t,children:u}):"",v,g.jsx("dd",{ref:j,className:[ie.f,...i.className].join(" "),...i.props,children:O}),C]}));function sr({value:a="",onValue:i,onSave:d,name:u,format:v="+_(___) ___-__-__",placeholder:C="",title:O="",error:j="",hide:l=!1,edit:b=!0,active:o=!0,after:c="",show:h=!0,view:S,className:I=""}){b=b!==void 0?b:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(b&&o),q.useRef(null);let D=v,E=!0,p=0,F=(k,y)=>{let $=document.createRange(),L=window.getSelection();$.setStart(y.childNodes[0],k),$.collapse(!0),L.removeAllRanges(),L.addRange($),y.focus()},M=k=>{k.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},z=k=>{let y=0,$="",L=k.replace(/\D/g,"");L===""&&(E=!0);let se=L.split(""),X="";se.forEach(ce=>{E&&(X+=ce,E&&(p=(""+X).length,D=v.replace(new RegExp("[0-9]","g"),"_"),$=""),p>(""+X).length&&(E=!0,D=v.replace(new RegExp("[0-9]","g"),"_"),$=""))});let _e=D.replace(/\D/g,"");return _e.length>=L.length&&(L=_e),{q:D.replace(/[_\d]/g,function(){return L.charAt(y++)||"_"}),i:y,v:L,f:$}},W=k=>{k.preventDefault(),navigator.clipboard.writeText(k.target.textContent.replace(/\D/g,"")).then(function(){wt.Copy("Данные в буфер обмене")},function(y){})},B=z(a),U=k=>{let y=z(k.target.textContent);k.target.textContent=y.q,y.i=y.q.lastIndexOf(y.v.substr(-1)),y.i<y.q.length&&y.q!==D?y.i++:y.i=y.q.indexOf("_"),F(y.i,k.target),i&&i({value:y.q.replace(/\D/g,""),name:u})},P=k=>{k.key==="Enter"&&k.preventDefault()};const N=k=>{te.Blur(k),d&&d({value:k.target.textContent.replace(/\D/g,""),name:u})};let Y={};return b&&o?(Y.edit="true",Y.contentEditable=te.ContentEditable):Y.contentEditable="false",C&&(Y.placeholder=C),c&&(Y.after=c),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"input",title:O,element_blok:{className:[I]},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:M,onInput:U,onKeyDown:P,onContextMenu:W,onBlur:N,suppressContentEditableWarning:!0,...Y,children:B.q})})}const jt={o:"_o_1c9e1_1",c:"_c_1c9e1_11"};function cr({value:a,onValue:i,name:d,error:u,icon:v,edit:C=!0,active:O=!0,title:j,placeholder:l="",className:b}){let[o,c]=q.useState(a);const h=q.useRef(null),[S,I]=q.useState(!1);q.useEffect(()=>{c(a)},[a]);let K=p=>{c(p),i&&i({value:p,name:d})},D=p=>{if(!C||!O)return;const F=p.target.getBoundingClientRect(),M=F.left,z=F.top;h.position={x:M,y:z},I(!0)};const E={};return l&&(E.placeholder=l),v||g.jsxs(g.Fragment,{children:[g.jsx(ke,{type:"date",title:j,element_blok:{className:[b]},element_input:{className:[ie.w]},children:g.jsx("div",{onClick:D,...E,children:ur(o,"mm.yyyy")})}),S&&Rt.createPortal(g.jsx(dr,{position:h.position,onValue:K,date:o,onOpen:I},new Date().getTime()),document.body)]})}const dr=({onOpen:a,date:i,onValue:d,position:u})=>{let v=new Date,C=new Date(i),O={y:parseInt(v.getFullYear()),m:parseInt(v.getMonth())+1},j={y:parseInt(C.getFullYear()),m:parseInt(C.getMonth())+1},[l,b]=q.useState(j.y),o=()=>{a(!1)},c=()=>{b(l+1)},h=()=>{b(l-1)},S=p=>{d(l+"-"+fr(2,p)),o()},I=p=>O.y===j.y&&O.m===p?"_FFEB3B":"",K=Array(12).fill("").map((p,F)=>F+1),D=window.innerHeight-u.y+33<320?u.y-312:u.y+33,E=window.innerWidth-u.x<265?u.x-235:u.x;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:jt.o,onClick:o}),g.jsxs("div",{className:jt.c,style:{top:D+"px",left:E+"px"},children:[g.jsxs("s",{children:[g.jsx("i",{onClick:h,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}),g.jsx("h2",{children:l}),g.jsx("i",{onClick:c,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})})]}),g.jsx("div",{"grid-month":"",children:K.map((p,F)=>g.jsx("span",{onClick:()=>{S(p)},color:I(p),children:g.jsx("b",{children:pr(p).abc})},F))})]})]})};function ur(a,i){i===void 0?(i=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:"      ",_:"    "};for(const u in d)i=i.replace(u,d[u]);return i}function fr(a,i){let d=i+"";for(;d.length<a;)d="0"+d;return d}function pr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function mr({value:a,onValue:i,name:d,placeholder:u="",title:v="",error:C="",hide:O=!1,edit:j=!0,active:l=!0,after:b="",show:o=!0,course:c=100,view:h,type:S,onSave:I,className:K="",isClear:D=!1}){let E=!!(O&&(a===""||a===void 0)),p=N=>S==="multi"?N.replace(/[^+\d.+-]/g,""):N.replace(/[^+\d.]/g,""),F=(N,Y)=>{let k=document.createRange(),y=window.getSelection();k.setStart(Y.childNodes[0],N),k.collapse(!0),y.removeAllRanges(),y.addRange(k),Y.focus()},M=N=>{i==null||i({value:p(N.target.textContent)*c,name:d}),N.target.textContent=p(N.target.textContent),N.target.textContent.length>0&&F(N.target.textContent.length,N.target)},z=N=>{te.Blur(N),N.target.textContent===""&&(N.target.textContent=0),I==null||I({value:p(N.target.textContent)*c,name:d}),i==null||i({value:p(N.target.textContent)*c,name:d}),N.target.textContent=zt(N.target.textContent)},W=N=>{N.target.textContent=p(N.target.textContent)},B=N=>{N.key==="Enter"&&N.preventDefault()},U=N=>{N.preventDefault(),navigator.clipboard.readText().then(Y=>{Y=Y.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,Y)}).catch(Y=>{})};if(!(j&&l)&&!o||!(j&&l)&&E)return"";const P={};return P.inputMode="decimal",u&&(P.placeholder=u),j&&l&&(P.edit=""),g.jsx(ke,{type:"input",title:v,element_blok:{className:[K]},element_input:{className:[ie.w]},children:g.jsx("div",{...P,onInput:M,onPaste:U,onBlur:z,onKeyDown:B,onFocus:W,contentEditable:j&&l?te.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":b,children:!u||a?zt(a):""})})}function zt(a,i){return parseFloat(a).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function yr({title:a,error:i,edit:d=!0,active:u=!0,className:v,placeholder:C,max:O,min:j,onValue:l,icon:b,name:o,value:c,after:h}){let[S,I]=q.useState(c===void 0?new Date:c);const K=q.useRef(null),[D,E]=q.useState(!1);let p=!d&&u;q.useEffect(()=>{I(c===void 0?new Date:c)},[c]);let F=W=>{I(W),l==null||l({value:W,name:o})},M=W=>{const B=W.target.getBoundingClientRect(),U=B.left,P=B.bottom,N=B.top;K.position={x:U,b:P,y:N},E(!0)};const z={};return C&&(z.placeholder=C),p?g.jsx(g.Fragment,{}):g.jsxs(g.Fragment,{children:[b?b():g.jsxs("dl",{"data-field":"date",className:[ie.l,v].filter(W=>W!==void 0).join(" "),children:[a?g.jsx("dt",{className:ie.t,children:a}):"",g.jsxs("dd",{onClick:M,className:[ie.f,ie.w].join(" "),...z,"data-edit":(d&&u)+"",children:[br(S,"dd.mm.yyyy"),h]}),i&&g.jsx("em",{children:i})]}),D&&Rt.createPortal(g.jsx(vr,{position:K.position,onValue:F,date:S,max:O,min:j,onOpen:E,className:v},new Date().getTime()),document.body)]})}const vr=({date:a,onValue:i,position:d,max:u,min:v,className:C,onOpen:O})=>{let j=new Date,l=new Date(a),b={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},[c,h]=q.useState({y:o.y,m:o.m}),S=k=>{let y=k.getDay();return y===0&&(y=7),y-1},I=["пн","вт","ср","чт","пт","сб","вс"],K=c.m-1,D=new Date(c.y,K),E=[];for(let k=0;k<S(D);k++)E.push(0);for(;D.getMonth()===K;)E.push(D.getDate()),D.setDate(D.getDate()+1);let p=()=>{O(!1)},F=()=>{W(c.m+1,c.y)},M=()=>{W(c.m-1,c.y)},z=k=>{i(c.y+"-"+Kt(2,c.m)+"-"+Kt(2,k)),p()},W=(k,y)=>{y=k>12?y+1:k<1?y-1:y,k=k>12?1:k<1?12:k,h({y,m:k})};const B=k=>b.y===c.y&&b.m===c.m&&b.d===k?{"data-active":"true"}:{},U=k=>o.y===c.y&&o.m===c.m&&o.d===k?{"data-current":"true"}:{},P=k=>{let y=!0;if(u){let $=u.getTime(),L=new Date(c.y,c.m-1,k).getTime();$<L&&(y=!1)}if(v){let $=v.getTime(),L=new Date(c.y,c.m-1,k).getTime();$>L&&(y=!1)}return y};let N=window.innerHeight-d.y<320?d.y-312:d.b,Y=window.innerWidth-d.x<265?d.x-235:d.x;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:jt.o,onClick:()=>p()}),g.jsxs("div",{className:[jt.c,C&&C+"-backdrop"].join(" "),style:{top:N+"px",left:Y+"px"},children:[g.jsxs("s",{children:[g.jsx("i",{onClick:M,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}),g.jsxs("h2",{children:[gr(c.m).name," ",c.y]}),g.jsx("i",{onClick:F,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})})]}),g.jsxs("div",{"grid-calendar":"",children:[I.map((k,y)=>g.jsx("p",{children:k},"v"+y)),E.map((k,y)=>g.jsx("span",{children:k!==0&&P(k)?g.jsx("b",{...B(k),...U(k),onClick:()=>z(k),children:k}):g.jsx("p",{...B(k),...U(k),children:k!==0?k:""})},y))]})]})]})};function gr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function Kt(a,i){let d=i+"";for(;d.length<a;)d="0"+d;return d}function br(a,i){i===void 0?(i=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:"      ",_:"    "};for(const u in d)i=i.replace(u,d[u]);return i}function hr({value:a,onValue:i,name:d,placeholder:u="",title:v="",label:C="",hide:O=!1,edit:j=!0,active:l=!0,after:b="",show:o=!0,maxLength:c,onSave:h,className:S="",isCopy:I=!0}){const K=M=>{i==null||i({value:M.target.innerText,name:d})},D=M=>{c&&M.target.textContent.trim().length>=c&&M.key!=="Backspace"&&M.preventDefault(),M.key==="Enter"&&M.preventDefault()},E=M=>{M.preventDefault(),navigator.clipboard.readText().then(z=>{if(c){let W=M.target.textContent.length;if(W>=c)return;c-=W,z=z.slice(0,c)}window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})};if(O)return g.jsx(g.Fragment,{});if(!(j&&l)&&!o)return"";const p={};u&&(p.placeholder=u),j&&l&&(p.edit="");const F=M=>{te.Blur(M),h==null||h({value:M.target.textContent.trim(),name:d})};return g.jsx(ke,{type:"note",title:v||C,element_blok:{className:[S]},element_input:{className:[ie.n]},children:g.jsx("div",{onPaste:E,onInput:K,onBlur:F,onKeyDown:D,contentEditable:j&&l?te.ContentEditable:"false",suppressContentEditableWarning:!0,...p,children:a})})}const Pt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function kr({value:a,onValue:i,onSave:d,name:u,placeholder:v="",title:C="",label:O="",error:j="",hide:l=!1,edit:b=!0,active:o=!0,after:c="",show:h=!0,view:S,className:I=""}){b=b!==void 0?b:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(b&&o),q.useRef(null);let D="+_(___) ___-__-__",E=!0,p=0,F=(k,y)=>{let $=document.createRange(),L=window.getSelection();$.setStart(y.childNodes[0],k),$.collapse(!0),L.removeAllRanges(),L.addRange($),y.focus()},M=k=>{let y=W(k.target.textContent);k.target.textContent=y.q,y.i=y.q.lastIndexOf(y.v.substr(-1)),y.i<y.q.length&&y.q!==D?y.i++:y.i=y.q.indexOf("_"),F(y.i,k.target),i&&i({value:y.q.replace(/\D/g,""),name:u})},z=k=>{k.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},W=k=>{let y=0,$="",L=k.replace(/\D/g,"");L===""&&(E=!0);let se=L.split(""),X="";se.forEach(ce=>{E&&(X+=ce,Pt[X]!==void 0&&E?(E=!1,D=Pt[X].mask.replace(new RegExp("[0-9]","g"),"_"),$=Pt[X].code):(E&&(p=(""+X).length,D=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),$=""),p>(""+X).length&&(E=!0,D=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),$="")))});let _e=D.replace(/\D/g,"");return _e.length>=L.length&&(L=_e),{q:D.replace(/[_\d]/g,function(){return L.charAt(y++)||"_"}),i:y,v:L,f:$}},B=k=>{k.preventDefault(),navigator.clipboard.writeText(k.target.textContent.replace(/\D/g,"")).then(function(){wt.Copy("Данные в буфер обмене")},function(y){})},U=W(a),P=k=>{k.key==="Enter"&&k.preventDefault()};const N=k=>{te.Blur(k),d&&d({value:k.target.textContent.replace(/\D/g,""),name:u})};let Y={};return b&&o?(Y.edit="true",Y.contentEditable=te.ContentEditable):Y.contentEditable="false",v&&(Y.placeholder=v),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"input",title:C||O,element_blok:{className:I},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:z,onInput:M,onKeyDown:P,onContextMenu:B,onBlur:N,inputmode:"tel",suppressContentEditableWarning:!0,...Y,children:U.q})})}function xr({value:a,onValue:i,name:d,inputmode:u="text",placeholder:v="",title:C="",label:O="",show:j=!0,hide:l=!1,edit:b=!0,active:o=!0,maxLength:c,onSave:h,className:S="",spellCheck:I=!0,isCopy:K=!0,isReload:D=!1}){const E=!!(l&&(a===""||a===void 0)),p=B=>{i&&i({value:B.target.textContent.trim(),name:d,reload:D})},F=B=>{c&&B.target.textContent.trim().length>=c&&B.key!=="Backspace"&&B.preventDefault(),B.key==="Enter"&&B.preventDefault()},M=B=>{B.preventDefault(),navigator.clipboard.readText().then(U=>{if(c){let P=B.target.textContent.length;if(P>=c)return;c-=P,U=U.slice(0,c)}window.document.execCommand("insertText",!1,U.replace(/(\r\n|\n|\r)/gm," "))}).catch(U=>{})};if(!(b&&o)&&!j||!(b&&o)&&E)return"";const z={};v&&(z.placeholder=v),b&&o&&(z.edit="");const W=B=>{te.Blur(B),h==null||h({value:B.target.textContent.trim(),name:d})};return g.jsx(ke,{type:"input",title:C||O,element_blok:{className:[S]},element_input:{className:[ie.w]},children:g.jsx("div",{onBlur:W,onPaste:M,onInput:p,onKeyDown:F,spellCheck:I,inputmode:u,contentEditable:b&&o?te.ContentEditable:"false",suppressContentEditableWarning:!0,...z,children:a})})}function wr({onValue:a,onSave:i,active:d,max:u,edit:v,title:C,error:O,show:j,hide:l,value:b,placeholder:o,className:c,maxLength:h,name:S,after:I="",before:K="",view:D}){v=v!==void 0?v:!0,d=d!==void 0?d:!0,l=!!(l&&(b===""||b===void 0))&&!(v&&d),o=o!==void 0?o:"",u=u!==void 0?u:99;let p=!1,F=P=>{a==null||a({value:P.target.textContent,name:S})},M=P=>{if(!(p&&P.which===86)){if(P.which===17||P.which===91)return p=!0;P.key!=="Backspace"&&(P.target.textContent.length===u&&P.preventDefault(),P.key==="Enter"&&P.preventDefault(),isNaN(P.key)&&P.preventDefault())}},z=P=>{if(P.which===17||P.which===91)return p=!1},W=P=>{P.preventDefault(),navigator.clipboard.readText().then(N=>{if(N=N.replace(/(?!^\+|\d)./g,""),h){let Y=P.target.textContent.length;if(Y>=h)return;h-=Y,N=N.slice(0,h)}window.document.execCommand("insertText",!1,""+N)}).catch(N=>{})};const B=P=>{te.Blur(P),i==null||i({value:P.target.textContent,name:S})};let U={};return v&&d?(U.edit="true",U.contentEditable=te.ContentEditable):U.contentEditable="false",U.inputMode="decimal",o&&(U.placeholder=o),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"numeric",title:C,element_blok:{className:[c]},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:W,onInput:F,onBlur:B,onKeyDown:M,onKeyUp:z,spellCheck:"true",contentEditable:v&&d?te.ContentEditable:"false",suppressContentEditableWarning:!0,...U,children:b})})}var Nt={exports:{}},ht={};/**
60
+ <%s key={someKey} {...props} />`,ge,G,pt,G),Ae[G+ge]=!0}}return e===u?st(w):lt(w),w}}function ct(e,t,r){return Be(e,t,r,!0)}function dt(e,t,r){return Be(e,t,r,!1)}var ut=dt,ft=ct;xt.Fragment=u,xt.jsx=ut,xt.jsxs=ft}()),xt}process.env.NODE_ENV==="production"?Dt.exports=tr():Dt.exports=rr();var ee=Dt.exports;const ar="_notice_13j98_2",nr="_error_13j98_11",or="_success_13j98_14",ir="_remark_13j98_17",_r="_copy_13j98_20",Ut={notice:ar,error:nr,success:or,remark:ir,copy:_r,"show-notice":"_show-notice_13j98_1","hide-notice":"_hide-notice_13j98_1"};let Le={};function bt({data:a}){let[i,d]=q.useState("show");q.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Le.del(a.key)},2500))},[a.key]);let u,v;switch(a.type){case"error":u=ee.jsx(We.error,{}),v="Ошибка:";break;case"success":u=ee.jsx(We.success,{}),v="Информация:";break;case"copy":u=ee.jsx(We.success,{}),v="Копирование:";break;case"remark":u=ee.jsx(We.success,{}),v="Подсказка:";break;default:u=ee.jsx(We.success,{}),v="Предупреждение:";break}return ee.jsxs("li",{className:Ut[a.type],"data-status":i,children:[u,ee.jsx("b",{children:v}),ee.jsx("p",{children:a.text})]})}function lr({data:a}){let[i,d]=q.useState("show");return q.useEffect(()=>{a.hide&&(setTimeout(function(){d("hide")},1800),setTimeout(function(){Le.del(a.key)},2500))},[a.key]),ee.jsx("li",{className:"item","data-status":i,children:a.text})}const We={};We.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"})]}),We.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 wt;(a=>{function i(){let[l,b]=q.useState([]);return Le.set=o=>{b([...l,o])},Le.del=o=>{b(l.filter(c=>c.key!==o))},l.length===0?"":ee.jsx("ul",{className:Ut.notice,children:l.map(o=>o.item)})}a.Init=i;function d(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"error"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Error=d;function u(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"success"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Success=u;function v(l,b=!0){let o=Date.now(),c={key:o,hide:b,text:l};Le.set({item:ee.jsx(lr,{data:c},o),key:o})}a.Custom=v;function C(l){let b=Date.now(),o={key:b,hide:!0,...l};Le.set({item:ee.jsx(bt,{data:o},b),key:b})}a.Send=C;function O(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"remark"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Remark=O;function j(l,b=!0){let o=Date.now(),c={key:o,text:l,hide:b,type:"copy"};Le.set({item:ee.jsx(bt,{data:c},o),key:o})}a.Copy=j})(wt||(wt={}));const ke=q.forwardRef(({element_blok:a,element_input:i,type:d="input",title:u,before:v,after:C,children:O},j)=>g.jsxs("dl",{"data-field":d,...i.props,className:[ie.l,...a.className].filter(l=>l!==void 0).join(" "),children:[u?g.jsx("dt",{className:ie.t,children:u}):"",v,g.jsx("dd",{ref:j,className:[ie.f,...i.className].join(" "),...i.props,children:O}),C]}));function sr({value:a="",onValue:i,onSave:d,name:u,format:v="+_(___) ___-__-__",placeholder:C="",title:O="",error:j="",hide:l=!1,edit:b=!0,active:o=!0,after:c="",show:h=!0,view:S,className:I=""}){b=b!==void 0?b:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(b&&o),q.useRef(null);let D=v,E=!0,p=0,F=(k,y)=>{let $=document.createRange(),L=window.getSelection();$.setStart(y.childNodes[0],k),$.collapse(!0),L.removeAllRanges(),L.addRange($),y.focus()},M=k=>{k.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},z=k=>{let y=0,$="",L=k.replace(/\D/g,"");L===""&&(E=!0);let se=L.split(""),X="";se.forEach(ce=>{E&&(X+=ce,E&&(p=(""+X).length,D=v.replace(new RegExp("[0-9]","g"),"_"),$=""),p>(""+X).length&&(E=!0,D=v.replace(new RegExp("[0-9]","g"),"_"),$=""))});let _e=D.replace(/\D/g,"");return _e.length>=L.length&&(L=_e),{q:D.replace(/[_\d]/g,function(){return L.charAt(y++)||"_"}),i:y,v:L,f:$}},W=k=>{k.preventDefault(),navigator.clipboard.writeText(k.target.textContent.replace(/\D/g,"")).then(function(){wt.Copy("Данные в буфер обмене")},function(y){})},B=z(a),U=k=>{let y=z(k.target.textContent);k.target.textContent=y.q,y.i=y.q.lastIndexOf(y.v.substr(-1)),y.i<y.q.length&&y.q!==D?y.i++:y.i=y.q.indexOf("_"),F(y.i,k.target),i&&i({value:y.q.replace(/\D/g,""),name:u})},P=k=>{k.key==="Enter"&&k.preventDefault()};const N=k=>{te.Blur(k),d&&d({value:k.target.textContent.replace(/\D/g,""),name:u})};let Y={};return b&&o?(Y.edit="true",Y.contentEditable=te.ContentEditable):Y.contentEditable="false",C&&(Y.placeholder=C),c&&(Y.after=c),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"input",title:O,element_blok:{className:[I]},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:M,onInput:U,onKeyDown:P,onContextMenu:W,onBlur:N,suppressContentEditableWarning:!0,...Y,children:B.q})})}const jt={o:"_o_1c9e1_1",c:"_c_1c9e1_11"};function cr({value:a,onValue:i,name:d,error:u,icon:v,edit:C=!0,active:O=!0,title:j,placeholder:l="",className:b}){let[o,c]=q.useState(a);const h=q.useRef(null),[S,I]=q.useState(!1);q.useEffect(()=>{c(a)},[a]);let K=p=>{c(p),i&&i({value:p,name:d})},D=p=>{if(!C||!O)return;const F=p.target.getBoundingClientRect(),M=F.left,z=F.top;h.position={x:M,y:z},I(!0)};const E={};return l&&(E.placeholder=l),v||g.jsxs(g.Fragment,{children:[g.jsx(ke,{type:"date",title:j,element_blok:{className:[b]},element_input:{className:[ie.w]},children:g.jsx("div",{onClick:D,...E,children:ur(o,"mm.yyyy")})}),S&&Rt.createPortal(g.jsx(dr,{position:h.position,onValue:K,date:o,onOpen:I},new Date().getTime()),document.body)]})}const dr=({onOpen:a,date:i,onValue:d,position:u})=>{let v=new Date,C=new Date(i),O={y:parseInt(v.getFullYear()),m:parseInt(v.getMonth())+1},j={y:parseInt(C.getFullYear()),m:parseInt(C.getMonth())+1},[l,b]=q.useState(j.y),o=()=>{a(!1)},c=()=>{b(l+1)},h=()=>{b(l-1)},S=p=>{d(l+"-"+fr(2,p)),o()},I=p=>O.y===j.y&&O.m===p?"_FFEB3B":"",K=Array(12).fill("").map((p,F)=>F+1),D=window.innerHeight-u.y+33<320?u.y-312:u.y+33,E=window.innerWidth-u.x<265?u.x-235:u.x;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:jt.o,onClick:o}),g.jsxs("div",{className:jt.c,style:{top:D+"px",left:E+"px"},children:[g.jsxs("s",{children:[g.jsx("i",{onClick:h,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}),g.jsx("h2",{children:l}),g.jsx("i",{onClick:c,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})})]}),g.jsx("div",{"grid-month":"",children:K.map((p,F)=>g.jsx("span",{onClick:()=>{S(p)},color:I(p),children:g.jsx("b",{children:pr(p).abc})},F))})]})]})};function ur(a,i){i===void 0?(i=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:"      ",_:"    "};for(const u in d)i=i.replace(u,d[u]);return i}function fr(a,i){let d=i+"";for(;d.length<a;)d="0"+d;return d}function pr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function mr({value:a,onValue:i,name:d,placeholder:u="",title:v="",error:C="",hide:O=!1,edit:j=!0,active:l=!0,after:b="",show:o=!0,course:c=100,view:h,type:S,onSave:I,className:K="",isClear:D=!1}){let E=!!(O&&(a===""||a===void 0)),p=N=>S==="multi"?N.replace(/[^+\d.+-]/g,""):N.replace(/[^+\d.]/g,""),F=(N,Y)=>{let k=document.createRange(),y=window.getSelection();k.setStart(Y.childNodes[0],N),k.collapse(!0),y.removeAllRanges(),y.addRange(k),Y.focus()},M=N=>{i==null||i({value:p(N.target.textContent)*c,name:d}),N.target.textContent=p(N.target.textContent),N.target.textContent.length>0&&F(N.target.textContent.length,N.target)},z=N=>{te.Blur(N),N.target.textContent===""&&(N.target.textContent=0),I==null||I({value:p(N.target.textContent)*c,name:d}),i==null||i({value:p(N.target.textContent)*c,name:d}),N.target.textContent=zt(N.target.textContent)},W=N=>{N.target.textContent=p(N.target.textContent)},B=N=>{N.key==="Enter"&&N.preventDefault()},U=N=>{N.preventDefault(),navigator.clipboard.readText().then(Y=>{Y=Y.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,Y)}).catch(Y=>{})};if(!(j&&l)&&!o||!(j&&l)&&E)return"";const P={};return P.inputMode="decimal",u&&(P.placeholder=u),j&&l&&(P.edit=""),g.jsx(ke,{type:"input",title:v,element_blok:{className:[K]},element_input:{className:[ie.w]},children:g.jsx("div",{...P,onInput:M,onPaste:U,onBlur:z,onKeyDown:B,onFocus:W,contentEditable:j&&l?te.ContentEditable:"false",suppressContentEditableWarning:!0,"data-after":b,children:!u||a?zt(a):""})})}function zt(a,i){return parseFloat(a).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function yr({title:a,error:i,edit:d=!0,active:u=!0,className:v,placeholder:C,max:O,min:j,onValue:l,icon:b,name:o="",value:c,after:h}){let[S,I]=q.useState(c===void 0?new Date:c);const K=q.useRef(null),[D,E]=q.useState(!1);let p=!d&&u;q.useEffect(()=>{I(c===void 0?new Date:c)},[c]);let F=W=>{I(W),l==null||l({value:W,name:o})},M=W=>{const B=W.target.getBoundingClientRect(),U=B.left,P=B.bottom,N=B.top;K.position={x:U,b:P,y:N},E(!0)};const z={};return C&&(z.placeholder=C),p?g.jsx(g.Fragment,{}):g.jsxs(g.Fragment,{children:[b?b():g.jsxs("dl",{"data-field":"date",className:[ie.l,v].filter(W=>W!==void 0).join(" "),children:[a?g.jsx("dt",{className:ie.t,children:a}):"",g.jsxs("dd",{onClick:M,className:[ie.f,ie.w].join(" "),...z,"data-edit":(d&&u)+"",children:[br(S,"dd.mm.yyyy"),h]}),i&&g.jsx("em",{children:i})]}),D&&Rt.createPortal(g.jsx(vr,{position:K.position,onValue:F,date:S,max:O,min:j,onOpen:E,className:v},new Date().getTime()),document.body)]})}const vr=({date:a,onValue:i,position:d,max:u,min:v,className:C,onOpen:O})=>{let j=new Date,l=new Date(a),b={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},[c,h]=q.useState({y:o.y,m:o.m}),S=k=>{let y=k.getDay();return y===0&&(y=7),y-1},I=["пн","вт","ср","чт","пт","сб","вс"],K=c.m-1,D=new Date(c.y,K),E=[];for(let k=0;k<S(D);k++)E.push(0);for(;D.getMonth()===K;)E.push(D.getDate()),D.setDate(D.getDate()+1);let p=()=>{O(!1)},F=()=>{W(c.m+1,c.y)},M=()=>{W(c.m-1,c.y)},z=k=>{i(c.y+"-"+Kt(2,c.m)+"-"+Kt(2,k)),p()},W=(k,y)=>{y=k>12?y+1:k<1?y-1:y,k=k>12?1:k<1?12:k,h({y,m:k})};const B=k=>b.y===c.y&&b.m===c.m&&b.d===k?{"data-active":"true"}:{},U=k=>o.y===c.y&&o.m===c.m&&o.d===k?{"data-current":"true"}:{},P=k=>{let y=!0;if(u){let $=u.getTime(),L=new Date(c.y,c.m-1,k).getTime();$<L&&(y=!1)}if(v){let $=v.getTime(),L=new Date(c.y,c.m-1,k).getTime();$>L&&(y=!1)}return y};let N=window.innerHeight-d.y<320?d.y-312:d.b,Y=window.innerWidth-d.x<265?d.x-235:d.x;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:jt.o,onClick:()=>p()}),g.jsxs("div",{className:[jt.c,C&&C+"-backdrop"].join(" "),style:{top:N+"px",left:Y+"px"},children:[g.jsxs("s",{children:[g.jsx("i",{onClick:M,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}),g.jsxs("h2",{children:[gr(c.m).name," ",c.y]}),g.jsx("i",{onClick:F,children:g.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})})]}),g.jsxs("div",{"grid-calendar":"",children:[I.map((k,y)=>g.jsx("p",{children:k},"v"+y)),E.map((k,y)=>g.jsx("span",{children:k!==0&&P(k)?g.jsx("b",{...B(k),...U(k),onClick:()=>z(k),children:k}):g.jsx("p",{...B(k),...U(k),children:k!==0?k:""})},y))]})]})]})};function gr(a){return a=typeof a=="number"?a:new Date(a).getMonth()+1,{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентября",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[a]}function Kt(a,i){let d=i+"";for(;d.length<a;)d="0"+d;return d}function br(a,i){i===void 0?(i=a,a=new Date):a=new Date(a);let d={yyyy:a.getFullYear(),yy:(""+a.getFullYear()).slice(-2),mm:("0"+(a.getMonth()+1)).slice(-2),dd:("0"+a.getDate()).slice(-2),HH:("0"+a.getHours()).slice(-2),MM:("0"+a.getMinutes()).slice(-2),SS:("0"+a.getSeconds()).slice(-2),__:"      ",_:"    "};for(const u in d)i=i.replace(u,d[u]);return i}function hr({value:a,onValue:i,name:d,placeholder:u="",title:v="",label:C="",hide:O=!1,edit:j=!0,active:l=!0,after:b="",show:o=!0,maxLength:c,onSave:h,className:S="",isCopy:I=!0}){const K=M=>{i==null||i({value:M.target.innerText,name:d||""})},D=M=>{c&&M.target.textContent.trim().length>=c&&M.key!=="Backspace"&&M.preventDefault(),M.key==="Enter"&&M.preventDefault()},E=M=>{M.preventDefault(),navigator.clipboard.readText().then(z=>{if(c){let W=M.target.textContent.length;if(W>=c)return;c-=W,z=z.slice(0,c)}window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})};if(O)return g.jsx(g.Fragment,{});if(!(j&&l)&&!o)return"";const p={};u&&(p.placeholder=u),j&&l&&(p.edit="");const F=M=>{te.Blur(M),h==null||h({value:M.target.textContent.trim(),name:d||""})};return g.jsx(ke,{type:"note",title:v||C,element_blok:{className:[S]},element_input:{className:[ie.n]},children:g.jsx("div",{onPaste:E,onInput:K,onBlur:F,onKeyDown:D,contentEditable:j&&l?te.ContentEditable:"false",suppressContentEditableWarning:!0,...p,children:a})})}const Pt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function kr({value:a,onValue:i,onSave:d,name:u="",placeholder:v="",title:C="",label:O="",error:j="",hide:l=!1,edit:b=!0,active:o=!0,after:c="",show:h=!0,view:S,className:I=""}){b=b!==void 0?b:!0,o=o!==void 0?o:!0,l=!!(l&&(a===""||a===void 0))&&!(b&&o),q.useRef(null);let D="+_(___) ___-__-__",E=!0,p=0,F=(k,y)=>{let $=document.createRange(),L=window.getSelection();$.setStart(y.childNodes[0],k),$.collapse(!0),L.removeAllRanges(),L.addRange($),y.focus()},M=k=>{let y=W(k.target.textContent);k.target.textContent=y.q,y.i=y.q.lastIndexOf(y.v.substr(-1)),y.i<y.q.length&&y.q!==D?y.i++:y.i=y.q.indexOf("_"),F(y.i,k.target),i&&i({value:y.q.replace(/\D/g,""),name:u||""})},z=k=>{k.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},W=k=>{let y=0,$="",L=k.replace(/\D/g,"");L===""&&(E=!0);let se=L.split(""),X="";se.forEach(ce=>{E&&(X+=ce,Pt[X]!==void 0&&E?(E=!1,D=Pt[X].mask.replace(new RegExp("[0-9]","g"),"_"),$=Pt[X].code):(E&&(p=(""+X).length,D=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),$=""),p>(""+X).length&&(E=!0,D=`+${X}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),$="")))});let _e=D.replace(/\D/g,"");return _e.length>=L.length&&(L=_e),{q:D.replace(/[_\d]/g,function(){return L.charAt(y++)||"_"}),i:y,v:L,f:$}},B=k=>{k.preventDefault(),navigator.clipboard.writeText(k.target.textContent.replace(/\D/g,"")).then(function(){wt.Copy("Данные в буфер обмене")},function(y){})},U=W(a),P=k=>{k.key==="Enter"&&k.preventDefault()};const N=k=>{te.Blur(k),d&&d({value:k.target.textContent.replace(/\D/g,""),name:u||""})};let Y={};return b&&o?(Y.edit="true",Y.contentEditable=te.ContentEditable):Y.contentEditable="false",v&&(Y.placeholder=v),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"input",title:C||O,element_blok:{className:I},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:z,onInput:M,onKeyDown:P,onContextMenu:B,onBlur:N,inputmode:"tel",suppressContentEditableWarning:!0,...Y,children:U.q})})}function xr({value:a,onValue:i,name:d="",inputmode:u="text",placeholder:v="",title:C="",label:O="",show:j=!0,hide:l=!1,edit:b=!0,active:o=!0,maxLength:c,onSave:h,className:S="",spellCheck:I=!0,isCopy:K=!0,isReload:D=!1}){const E=!!(l&&(a===""||a===void 0)),p=B=>{i&&i({value:B.target.textContent.trim(),name:d,reload:D})},F=B=>{c&&B.target.textContent.trim().length>=c&&B.key!=="Backspace"&&B.preventDefault(),B.key==="Enter"&&B.preventDefault()},M=B=>{B.preventDefault(),navigator.clipboard.readText().then(U=>{if(c){let P=B.target.textContent.length;if(P>=c)return;c-=P,U=U.slice(0,c)}window.document.execCommand("insertText",!1,U.replace(/(\r\n|\n|\r)/gm," "))}).catch(U=>{})};if(!(b&&o)&&!j||!(b&&o)&&E)return"";const z={};v&&(z.placeholder=v),b&&o&&(z.edit="");const W=B=>{te.Blur(B),h==null||h({value:B.target.textContent.trim(),name:d})};return g.jsx(ke,{type:"input",title:C||O,element_blok:{className:[S]},element_input:{className:[ie.w]},children:g.jsx("div",{onBlur:W,onPaste:M,onInput:p,onKeyDown:F,spellCheck:I,inputmode:u,contentEditable:b&&o?te.ContentEditable:"false",suppressContentEditableWarning:!0,...z,children:a})})}function wr({onValue:a,onSave:i,active:d,max:u,edit:v,title:C,error:O,show:j,hide:l,value:b,placeholder:o,className:c,maxLength:h,name:S="",after:I="",before:K="",view:D}){v=v!==void 0?v:!0,d=d!==void 0?d:!0,l=!!(l&&(b===""||b===void 0))&&!(v&&d),o=o!==void 0?o:"",u=u!==void 0?u:99;let p=!1,F=P=>{a==null||a({value:P.target.textContent,name:S})},M=P=>{if(!(p&&P.which===86)){if(P.which===17||P.which===91)return p=!0;P.key!=="Backspace"&&(P.target.textContent.length===u&&P.preventDefault(),P.key==="Enter"&&P.preventDefault(),isNaN(P.key)&&P.preventDefault())}},z=P=>{if(P.which===17||P.which===91)return p=!1},W=P=>{P.preventDefault(),navigator.clipboard.readText().then(N=>{if(N=N.replace(/(?!^\+|\d)./g,""),h){let Y=P.target.textContent.length;if(Y>=h)return;h-=Y,N=N.slice(0,h)}window.document.execCommand("insertText",!1,""+N)}).catch(N=>{})};const B=P=>{te.Blur(P),i==null||i({value:P.target.textContent,name:S})};let U={};return v&&d?(U.edit="true",U.contentEditable=te.ContentEditable):U.contentEditable="false",U.inputMode="decimal",o&&(U.placeholder=o),l?g.jsx(g.Fragment,{}):g.jsx(ke,{type:"numeric",title:C,element_blok:{className:[c]},element_input:{className:[ie.w]},children:g.jsx("div",{onPaste:W,onInput:F,onBlur:B,onKeyDown:M,onKeyUp:z,spellCheck:"true",contentEditable:v&&d?te.ContentEditable:"false",suppressContentEditableWarning:!0,...U,children:b})})}var Nt={exports:{}},ht={};/**
61
61
  * @license React
62
62
  * react-jsx-runtime.production.min.js
63
63
  *
@@ -1,7 +1,7 @@
1
1
  export type TInput = {
2
2
  value?: string;
3
- onValue?: (data: TValue) => void | Promise<TValue>;
4
- onSave?: (data: TValue) => void | Promise<TValue>;
3
+ onValue?: (data: TValue) => void | Promise<void>;
4
+ onSave?: (data: TValue) => void | Promise<void>;
5
5
  name?: string;
6
6
  placeholder?: string;
7
7
  title?: string;
@@ -24,6 +24,6 @@ export type TInput = {
24
24
  };
25
25
  export type TValue = {
26
26
  value?: string;
27
- name?: string;
27
+ name: string;
28
28
  reload?: boolean;
29
29
  };
@@ -13,3 +13,4 @@ export { default as ModalField } from './Modal';
13
13
  export { default as PasswordField } from './Password';
14
14
  export { default as Check } from './Check';
15
15
  export { useData, setValue, runReload, useError } from './use';
16
+ export type { TInput, TValue } from './fields/type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/form",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "plugin for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",