@elcrm/form 0.0.25 → 0.0.27

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 U, { useEffect as Jt } from "react";
2
2
  import { createPortal as Mt } from "react-dom";
3
- import './index.css';const Zt = "0.0.25", Vt = {
3
+ import './index.css';const Zt = "0.0.27", Vt = {
4
4
  version: Zt
5
5
  };
6
6
  var Tt = { exports: {} }, pt = {};
@@ -764,7 +764,7 @@ function ga({
764
764
  {
765
765
  type: "input",
766
766
  title: C,
767
- element_blok: { className: A },
767
+ element_blok: { className: [A] },
768
768
  element_input: { className: [H.w] },
769
769
  children: /* @__PURE__ */ y.jsx(
770
770
  "div",
@@ -2380,7 +2380,7 @@ function ha({
2380
2380
  {
2381
2381
  type: "group",
2382
2382
  title: C,
2383
- element_blok: { className: N },
2383
+ element_blok: { className: [N] },
2384
2384
  element_input: {
2385
2385
  className: [H.w],
2386
2386
  props: {
@@ -2430,7 +2430,7 @@ function ba({
2430
2430
  {
2431
2431
  type: "select",
2432
2432
  title: n,
2433
- element_blok: { className: g },
2433
+ element_blok: { className: [g] },
2434
2434
  element_input: {
2435
2435
  className: [Nt.f],
2436
2436
  ref: $
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(X,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],B):(X=typeof globalThis<"u"?globalThis:X||self,B((X.elCRM=X.elCRM||{},X.elCRM.components={}),X.React,X.ReactDOM))})(this,function(X,B,Ot){"use strict";var At=document.createElement("style");At.textContent=`@charset "UTF-8";:root{--field-background: #ffffff;--field-border: 1px solid #dde2e4;--field-radius: 6px;--field-color: #3f3f46;--field-padding: 0px 14px;--field-height: 32px;--field-width: 300px;--field-label-color: #84919a;--field-placeholder: #84919a}._l_8hznl_13{display:flex;flex-direction:column;position:relative;min-width:var(--field-width)}._l_8hznl_13[data-field=group]{--field-padding: 0}._l_8hznl_13[data-field=group] div{cursor:pointer;border-bottom:var(--field-border)}._l_8hznl_13[data-field=group] div:last-child{border-bottom:0}._l_8hznl_13 [placeholder]:empty:before{content:attr(placeholder);display:block;color:var(--field-placeholder)}._l_8hznl_13 [placeholder]:focus:before{display:none}._f_8hznl_38{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_8hznl_38>div{outline:0;flex:1;padding:var(--field-padding)}._n_8hznl_55{min-height:var(--field-note-height);line-height:var(--field-note-line-height)}._w_8hznl_60>div{text-wrap:nowrap;overflow:hidden;overflow-x:scroll}._w_8hznl_60>div::-webkit-scrollbar{width:0;height:0}._t_8hznl_70{color:var(--field-label-color);padding-bottom:8px}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--modal-radius: 10px}[shake=true]{-webkit-animation-name:_shake_oqfdb_1;animation-name:_shake_oqfdb_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_oqfdb_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}._modal_oqfdb_79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._modal_oqfdb_79 ._sa_oqfdb_89{width:auto;margin:auto 20px}._modal_oqfdb_79 ._ss_oqfdb_94{width:400px}._modal_oqfdb_79 ._sm_oqfdb_98{width:500px}._modal_oqfdb_79 ._sl_oqfdb_102{width:800px}._modal_oqfdb_79 ._sx_oqfdb_106{width:1000px}._modal_oqfdb_79 ._sf_oqfdb_110{width:100%;max-width:1200px;min-width:910px}._o_oqfdb_116{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--modal-background-overflow, rgba(0, 0, 0, .7215686275))}._b_oqfdb_28{padding:15px 30px 30px;margin:auto}._w_oqfdb_15{box-shadow:5px 7px 18px 0 var(--modal-background-overflow, rgba(0, 0, 0, .7215686275));background-image:var(--modal-background-image);background-color:var(--modal-background-color);border-radius:var(--modal-radius);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_oqfdb_146{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--modal-color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_oqfdb_160{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--modal-color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_oqfdb_160 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_oqfdb_160 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_oqfdb_160 li:last-child{border-bottom:0}._l_oqfdb_160 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_oqfdb_197{padding-right:10px}._x_oqfdb_201{cursor:pointer;color:var(--modal-exit);opacity:.5;display:flex}._x_oqfdb_201 svg{width:20px}._x_oqfdb_201:hover{opacity:1}._s_oqfdb_89{flex:1;overflow-y:scroll}._c_oqfdb_219{text-align:center;margin:20px}._f_oqfdb_224{display:flex;padding:15px 30px 30px}._f_oqfdb_224 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._f_oqfdb_224._r__oqfdb_235{flex-direction:row}._f_oqfdb_224._r__oqfdb_235 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_oqfdb_224._r__oqfdb_235 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_oqfdb_224._c__oqfdb_250{flex-direction:column;gap:15px}._f_oqfdb_224._c__oqfdb_250 dt{padding-bottom:8px;margin-left:7px}._g_oqfdb_259{display:flex;gap:10px;overflow:hidden}._c_oqfdb_219{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_oqfdb_219:first-child{margin-left:20px}._c_oqfdb_219:last-child{margin-right:20px}._c_oqfdb_219:hover{opacity:1;background:var(--tinge)}._c_oqfdb_219 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_oqfdb_219 b{text-align:center;display:block;color:var(--color)}._c_oqfdb_219 p{text-align:center;font-size:15px;color:var(--text)}._m_oqfdb_79{flex:1}._btn_1k1b3_1{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1k1b3_1:hover{opacity:1}._confirm_1k1b3_15{background:var(--button-confirm-bg, #4caf50);color:var(--button-confirm-color, #fff)}._cancel_1k1b3_20{background:var(--button-cancel-bg, #f44336);color:var(--button-cancel-color, #fff)}._action_1k1b3_25{background:var(--button-action-bg, #4094f7);color:var(--button-action-color, #fff)}._disabled_1k1b3_30{background:var(--button-disabled-bg, #efefef);color:var(--button-disabled-color, #000);opacity:1;cursor:default}._await_1k1b3_37{background:var(--button-await-bg, #efefef);color:var(--button-await-color, #000);opacity:1;cursor:default}._m_1k1b3_44{min-width:200px}._l_1k1b3_48{flex:1}:root{--select-overlay: #0000;--select-height: 35px;--select-separator: 1px solid #999;--select-color: #fff;--select-background: #28292d;--select-icon: calc(--select-height / 1.5);--select-icon-padding: calc((--select-height - --select-icon)/2) ;--select-font-size: 13px}._o_1wehm_12{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:var(--select-overlay)}._l_1wehm_22{padding:0;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:scroll;max-height:300px}._l_1wehm_22::-webkit-scrollbar{width:0;height:0}._l_1wehm_22 ul{overflow-y:auto;width:100%;max-height:300px;display:block;overflow-x:hidden}._l_1wehm_22 li{border-bottom:var(--select-separator);cursor:pointer;display:block;padding:0 15px;color:var(--select-color);border-left:0!important;text-align:left!important;height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}._l_1wehm_22 li:hover{opacity:1}._l_1wehm_22 li:last-child{border-bottom:0}._i_1wehm_72{position:absolute;width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding)}._f_1wehm_81{cursor:pointer}._notice_13j98_2{position:absolute;top:var(--notice-top);left:var(--notice-left);right:var(--notice-right);bottom:var(--notice-bottom);z-index:1111;font-family:var(--notice-family)}._notice_13j98_2 ._error_13j98_11{color:var(--notice-error, #bb2014)}._notice_13j98_2 ._success_13j98_14{color:var(--notice-success, #367738)}._notice_13j98_2 ._remark_13j98_17{color:var(--notice-remark, #b77513)}._notice_13j98_2 ._copy_13j98_20{color:var(--notice-copy, #3f51b5)}._notice_13j98_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_13j98_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_13j98_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_13j98_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_13j98_1 1s 1;animation-fill-mode:forwards}._notice_13j98_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_13j98_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_13j98_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_13j98_1{0%{opacity:1}to{opacity:0}}._o_1c9e1_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1c9e1_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:var(--select-background);z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1c9e1_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1c9e1_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_1c9e1_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1c9e1_11 b.__active_1c9e1_41{background:var(--bg-select-active)}._c_1c9e1_11 b:hover{background:var(--bg-select-hover)}._c_1c9e1_11 p{color:var(--color-placeholder);text-align:center;padding:0;cursor:default;pointer-events:none}._c_1c9e1_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1c9e1_11 i:hover{background:var(--bg-select-hover)}._c_1c9e1_11 i:before{cursor:pointer;display:block}._c_1c9e1_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1c9e1_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1c9e1_11 span{padding:2px;text-align:center}._c_1c9e1_11 span p{padding:8px 5px;color:var(--color-placeholder)}._c_1c9e1_11 ._as_1c9e1_94{cursor:ns-resize}._c_1c9e1_11 ._ap_1c9e1_97{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password][show] dd{-webkit-text-security:none}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}[field=color] dd{display:flex;border:0;padding:0;gap:3px}[field=color] dd s{border:1px solid #dde2e4;border-radius:6px;flex:1;cursor:pointer;opacity:.6}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}
2
- /*$vite$:1*/`,document.head.appendChild(At);const Vt={version:"0.0.25"};var Tt={exports:{}},mt={};/**
2
+ /*$vite$:1*/`,document.head.appendChild(At);const Vt={version:"0.0.27"};var Tt={exports:{}},mt={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -28,7 +28,7 @@ Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;yt.Fragment=d,yt.jsx=dt,yt.jsxs=ut}()),yt}process.env.NODE_ENV==="production"?Tt.exports=Xt():Tt.exports=Qt();var m=Tt.exports;function er({name:n,value:i,title:c,style:d,className:v}){let C={field:"progress"};return d&&(C.style=d),v&&(C.className=v),m.jsxs("dl",{...C,children:[c&&m.jsx("dt",{children:c}),m.jsx("dd",{})]})}let re={};re.KeyDown=n=>{n.key==="Enter"&&n.preventDefault()},re.PasteOne=n=>{n.preventDefault(),navigator.clipboard.readText().then(i=>{i=i.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,i)}).catch(i=>{})},re.Paste=(n,i)=>{i.preventDefault(),navigator.clipboard.readText().then(c=>{if(n){let d=i.target.textContent.length;if(d>=n)return;n-=d,c=c.slice(0,n)}window.document.execCommand("insertText",!1,c.replace(/(\r\n|\n|\r)/gm," "))}).catch(c=>{})},re.Focus=n=>{n.target.textContent.length===0&&(n.target.innerHTML="<br>")},re.Blur=n=>{n.target.scrollLeft=0,n.target.querySelector("br")!==null&&n.target.querySelector("br").remove()},re.ContentEditable="plaintext-only";const H={l:"_l_8hznl_13",f:"_f_8hznl_38",n:"_n_8hznl_55",w:"_w_8hznl_60",t:"_t_8hznl_70"};function kt({element_blok:n,element_input:i,type:c="input",title:d,before:v,after:C,children:T}){return m.jsxs("dl",{"data-field":c,...i.props,className:[H.l,...n.className].filter(j=>j!==void 0).join(" "),children:[d?m.jsx("dt",{className:H.t,children:d}):"",v,m.jsx("dd",{className:[H.f,...i.className].join(" "),...i.props,children:T}),C]})}function tr({id:n,value:i,onValue:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:h=!0,after:o="",before:u="",show:b=!0,maxLength:S,onSave:N,className:A="",isCopy:$=!0,isReload:O=!1}){let p=!!(j&&(i===""||i===void 0)),M=R=>{c&&c({value:R.target.textContent.trim(),name:d,reload:O})},W=R=>{S&&R.target.textContent.trim().length>=S&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},Y=R=>{R.preventDefault(),navigator.clipboard.readText().then(D=>{if(S){let z=R.target.textContent.length;if(z>=S)return;S-=z,D=D.slice(0,S)}window.document.execCommand("insertText",!1,D.replace(/(\r\n|\n|\r)/gm," "))}).catch(D=>{})};if(!(l&&h)&&!b||!(l&&h)&&p)return"";const L={};v&&(L.placeholder=v),l&&h&&(L.edit="");const U=R=>{re.Blur(R),N==null||N({value:R.target.textContent.trim(),name:d})};return m.jsx(kt,{type:"input",title:C,element_blok:{className:A},element_input:{className:[H.w]},children:m.jsx("div",{onBlur:U,onPaste:Y,onInput:M,onKeyDown:W,spellCheck:"true",contentEditable:l&&h?re.ContentEditable:"false",suppressContentEditableWarning:!0,...L,children:i})})}var Dt={exports:{}},vt={};/**
31
+ <%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;yt.Fragment=d,yt.jsx=dt,yt.jsxs=ut}()),yt}process.env.NODE_ENV==="production"?Tt.exports=Xt():Tt.exports=Qt();var m=Tt.exports;function er({name:n,value:i,title:c,style:d,className:v}){let C={field:"progress"};return d&&(C.style=d),v&&(C.className=v),m.jsxs("dl",{...C,children:[c&&m.jsx("dt",{children:c}),m.jsx("dd",{})]})}let re={};re.KeyDown=n=>{n.key==="Enter"&&n.preventDefault()},re.PasteOne=n=>{n.preventDefault(),navigator.clipboard.readText().then(i=>{i=i.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,i)}).catch(i=>{})},re.Paste=(n,i)=>{i.preventDefault(),navigator.clipboard.readText().then(c=>{if(n){let d=i.target.textContent.length;if(d>=n)return;n-=d,c=c.slice(0,n)}window.document.execCommand("insertText",!1,c.replace(/(\r\n|\n|\r)/gm," "))}).catch(c=>{})},re.Focus=n=>{n.target.textContent.length===0&&(n.target.innerHTML="<br>")},re.Blur=n=>{n.target.scrollLeft=0,n.target.querySelector("br")!==null&&n.target.querySelector("br").remove()},re.ContentEditable="plaintext-only";const H={l:"_l_8hznl_13",f:"_f_8hznl_38",n:"_n_8hznl_55",w:"_w_8hznl_60",t:"_t_8hznl_70"};function kt({element_blok:n,element_input:i,type:c="input",title:d,before:v,after:C,children:T}){return m.jsxs("dl",{"data-field":c,...i.props,className:[H.l,...n.className].filter(j=>j!==void 0).join(" "),children:[d?m.jsx("dt",{className:H.t,children:d}):"",v,m.jsx("dd",{className:[H.f,...i.className].join(" "),...i.props,children:T}),C]})}function tr({id:n,value:i,onValue:c,name:d,placeholder:v="",title:C="",error:T="",hide:j=!1,edit:l=!0,active:h=!0,after:o="",before:u="",show:b=!0,maxLength:S,onSave:N,className:A="",isCopy:$=!0,isReload:O=!1}){let p=!!(j&&(i===""||i===void 0)),M=R=>{c&&c({value:R.target.textContent.trim(),name:d,reload:O})},W=R=>{S&&R.target.textContent.trim().length>=S&&R.key!=="Backspace"&&R.preventDefault(),R.key==="Enter"&&R.preventDefault()},Y=R=>{R.preventDefault(),navigator.clipboard.readText().then(D=>{if(S){let z=R.target.textContent.length;if(z>=S)return;S-=z,D=D.slice(0,S)}window.document.execCommand("insertText",!1,D.replace(/(\r\n|\n|\r)/gm," "))}).catch(D=>{})};if(!(l&&h)&&!b||!(l&&h)&&p)return"";const L={};v&&(L.placeholder=v),l&&h&&(L.edit="");const U=R=>{re.Blur(R),N==null||N({value:R.target.textContent.trim(),name:d})};return m.jsx(kt,{type:"input",title:C,element_blok:{className:[A]},element_input:{className:[H.w]},children:m.jsx("div",{onBlur:U,onPaste:Y,onInput:M,onKeyDown:W,spellCheck:"true",contentEditable:l&&h?re.ContentEditable:"false",suppressContentEditableWarning:!0,...L,children:i})})}var Dt={exports:{}},vt={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -86,7 +86,7 @@ Check the top-level render call using <`+r+">.")}return t}}function Me(e,t){{if(
86
86
  <%s {...props} />
87
87
  React keys must be passed directly to JSX without using spread:
88
88
  let props = %s;
89
- <%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;wt.Fragment=d,wt.jsx=dt,wt.jsxs=ut}()),wt}process.env.NODE_ENV==="production"?Pt.exports=Pr():Pt.exports=Nr();var Nt=Pt.exports;const Fr="_btn_1k1b3_1",Ir="_confirm_1k1b3_15",Mr="_cancel_1k1b3_20",$r="_action_1k1b3_25",Ar="_disabled_1k1b3_30",qr="_m_1k1b3_44",Br="_l_1k1b3_48",jt={btn:Fr,confirm:Ir,cancel:Mr,action:$r,disabled:Ar,await:"_await_1k1b3_37",m:qr,l:Br},Lr=({onClick:n,onSend:i,size:c="m",view:d="confirm",children:v,isDisabled:C=!1,className:T,after:j,before:l,label:h,onRef:o,awaitText:u="Ожидайте"})=>{let[b,S]=B.useState(!1);const N=$=>{if(n)return n();b||(i?(S(!0),i(S)):$.preventDefault())};let A={};return(C||b)&&(A.disabled=!0),Nt.jsx("button",{...A,ref:o,className:[jt.btn,b?jt.disabled:jt[d],c&&jt[c],T].filter($=>$!="").join(" "),onClick:N,children:b?u:Nt.jsxs(Nt.Fragment,{children:[l||""," ",h," ",j||""]})||v})};let ke={};function zr({children:n}){return J.jsx(J.Fragment,{children:n})}var Ct;(n=>{function i({import_modules:o}){let[u,b]=B.useState([]);return ke.x=S=>{b(S?u.filter(N=>N.key!==S):[])},B.useEffect(()=>{o&&(ke.i=o)},[]),ke.add=(S,N=Date.now())=>{b([...u,{key:N,item:S}])},J.jsx(J.Fragment,{children:u.map(S=>S.item)})}n.Init=i;function c(o){return o&&(ke.i=o),ke.i}n.Import=c,n.List=Sr,n.Scroll=Er,n.Form=Rr,n.Center=Or,n.Column=Tr;function d(o,u,b){ke.i?ke.i(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(b)}):Wt()(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(b)})}n.Open=d;function v({type:o,name:u,params:b}){let[S,N]=B.useState(null);return B.useEffect(()=>{ke.i?ke.i(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(b))}):Wt()(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(b))})},[b.id]),J.jsx(J.Fragment,{children:S})}n.Icon=v;function C(o,u){ke.add(J.jsx(zr,{children:o},String(Date.now())),u)}n.Add=C;function T(o){ke.x(o)}n.Close=T;function j(o){if(o.target.classList[0]!=="modal")return;let u=o.target.children[0];u.setAttribute("shake",!0),setTimeout(()=>{u.setAttribute("shake",!1)},1e3)}n.Shake=j;function l(o,u){const b=S=>{n.Add(J.jsx(o,{...S},new Date().getTime()))};return{Icon:S=>J.jsx("i",{onClick:()=>b(S),children:u&&J.jsx(u,{})}),Open:b}}n.Create=l;function h({title:o,children:u,button:b,tabs:S,size:N="m",className:A="",shake:$=!0,menu:O}){const[p,M]=B.useState(!0),W=B.useRef(),Y=U=>{if(b){if(b.onClick)return U(!1),b.onClick({setOpen:M});if(b.onSend)return b.onSend({setOpen:M,disabled:U})}},L=()=>{if(!$)return M(!1);W.current.setAttribute("shake",!0),setTimeout(()=>{W.current.setAttribute("shake",!1)},1e3)};return p?J.jsxs("div",{className:`${le.modal}`,children:[J.jsx("div",{className:le.o,onClick:L}),J.jsxs("div",{className:[le.w,le[`s${N}`],A].filter(U=>U!="").join(" "),ref:W,children:[J.jsxs("div",{className:le.h,children:[J.jsx("div",{className:le.t,children:o}),J.jsxs("div",{className:le.m,children:[S&&J.jsx("nav",{children:S.map((U,R)=>J.jsx("span",{onClick:U.onClick,className:U.active?"active":"",children:U.name},R))}),O]}),J.jsx("div",{className:le.x,onClick:()=>{M(!1)},children:J.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:J.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u,b&&J.jsx("div",{className:le.b,children:J.jsx(Lr,{label:b.label,onSend:Y,className:le.btn,size:b.size})})]})]}):""}n.Main=h})(Ct||(Ct={}));const Wr=(n,i=",")=>(n=n!==void 0&&n!==""?n.split(i):[],n.filter(c=>c!=="").reduce((c,d)=>(c[d]=!0,c),{}));function Ur({value:n,onValue:i,name:c,placeholder:d="",separator:v=",",title:C,error:T,hide:j=!1,edit:l=!0,active:h=!0,outFormat:o="object",after:u="",modal:b,options:S,className:N}){const[A,$]=B.useState(Wr(n,v)),O=p=>{if(!(l&&h)||!b)return;let M=b.split(".");Ct.Open(M[0],M[1],{callback:W=>{if(i)switch(o){case"array":i({value:Object.keys(W),name:c});break;case"string":i({value:Object.keys(W).filter(Y=>W[Y]).join(v),name:c});break;default:i({value:W,name:c})}$(Object.fromEntries(Object.entries(W).filter(([Y,L])=>L!==!1)))},onValue:i,options:S,name:c,value:A})};return j?m.jsx(m.Fragment,{}):m.jsx(kt,{type:"group",title:C,element_blok:{className:N},element_input:{className:[H.w],props:{onClick:O}},children:Object.keys(A).map(p=>{var M;return m.jsx("div",{children:(M=S[p])==null?void 0:M.label},p)})})}const Ft={o:"_o_1wehm_12",l:"_l_1wehm_22",f:"_f_1wehm_81"};function Kr({title:n,error:i,edit:c=!0,active:d=!0,hide:v,value:C=0,onValue:T,options:j,placeholder:l="",className:h,isIcon:o=!0,name:u,after:b,view:S,order:N,isReload:A=!1}){var D,z;const $=B.useRef(null),[O,p]=B.useState(C),[M,W]=B.useState(j),[Y,L]=B.useState(!1);B.useEffect(()=>{p(C),W(j)},[C,j]),v=!!(v&&(C===0||((D=M==null?void 0:M[C])==null?void 0:D.n)===void 0))&&!(c&&d);let R=E=>{p(E),T&&T({value:E,name:u,reload:A})};return v?"":m.jsxs(kt,{type:"select",title:n,element_blok:{className:h},element_input:{className:[Ft.f],ref:$},children:[m.jsx("div",{children:(z=M==null?void 0:M[O])==null?void 0:z.n}),Y&&Ot.createPortal(m.jsx(Yr,{parent:$.position,onValue:R,view:S,className:h,options:M,order:N,setOpen:L},new Date().getTime()),document.body)]})}const Yr=({onValue:n,parent:i,className:c,options:d,order:v,setOpen:C})=>{let T=()=>{C(!1)},j=o=>{C(!1),n(o)},l=window.innerHeight-i.y+i.height<320?i.y-312:i.y+33,h=window.innerWidth-i.x<265?i.x-235:i.x;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Ft.o,onClick:T},new Date().getTime()),m.jsx("div",{className:[Ft.l,c].filter(o=>o!==void 0).join(" "),style:{top:l+"px",left:h+"px",width:i.width},children:m.jsx(Gr,{order:v,options:d,link:j})})]})},Gr=({order:n,options:i,link:c})=>n?m.jsx("ul",{children:n.map((d,v)=>i[d].s!==0?m.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")}):m.jsx("ul",{children:Object.keys(i).map((d,v)=>i[d].s!==0?m.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")});function Hr({value:n,onValue:i,name:c,placeholder:d="",title:v,error:C,hide:T=!1,edit:j=!0,show:l=!0,active:h=!0,after:o="",view:u,modal:b,module:S,options:N,className:A}){let[$,O]=B.useState(n),p=Y=>{if(!(j&&h)||!b)return;let L=b.split(".");Ct.Open(L[0],L[1],{callback:U=>{i&&i({value:U,name:c}),O(U)},onValue:i,options:N,name:c,value:n})};const M={};M.field="input",A&&(M.className=A);const W={};return d&&(W.placeholder=d),T?m.jsx(m.Fragment,{}):m.jsxs("dl",{...M,children:[v&&m.jsx("dt",{children:v}),m.jsx("dd",{...W,onClick:p,edit:(j&&h)+"","data-after":o,children:$}),C&&m.jsx("em",{children:C})]})}function Jr({value:n,onValue:i,onSave:c,name:d,placeholder:v="",className:C,title:T,error:j,edit:l=!0,active:h=!0,reload:o=!1,native:u=!1,isShow:b=!1,maxLength:S,eyes:N=[],after:A=""}){const[$,O]=B.useState(b);let p=R=>{i&&i({value:R.target.textContent,name:d,reload:o})},M=R=>{R.key==="Enter"&&R.preventDefault()},W=R=>{R.preventDefault(),navigator.clipboard.readText().then(D=>{if(S){let z=R.target.textContent.length;if(z>=S)return;S-=z,D=D.slice(0,S)}window.document.execCommand("insertText",!1,D.replace(/(\r\n|\n|\r)/gm," "))}).catch(D=>{})},Y=R=>{re.Blur(R),c==null||c({value:R.target.textContent.trim(),name:d})};const L={};L.field="password",$&&(L.show=""),C&&(L.className=C);const U={};return v&&(U.placeholder=v),u?"":m.jsxs("dl",{...L,children:[T?m.jsx("dt",{children:T}):"",m.jsx("dd",{onPaste:W,onInput:p,onKeyDown:M,onBlur:Y,contentEditable:l&&h?re.ContentEditable:"false",...U,suppressContentEditableWarning:!0,children:n}),N[0]&&m.jsx("i",{onClick:()=>O(!$),children:$?N[1]:N[0]}),A,j?m.jsx("em",{children:j}):""]})}function Zr({onValue:n,onSave:i,active:c,max:d,edit:v,title:C,error:T,show:j,hide:l,value:h,placeholder:o,className:u,maxLength:b,name:S,after:N="",before:A="",view:$}){v=v!==void 0?v:!0,c=c!==void 0?c:!0,l=!!(l&&(h===""||h===void 0))&&!(v&&c),o=o!==void 0?o:"",d=d!==void 0?d:99;let p=!1,M=D=>{n==null||n({value:D.target.textContent,name:S})},W=D=>{if(!(p&&D.which===86)){if(D.which===17||D.which===91)return p=!0;D.key!=="Backspace"&&(D.target.textContent.length===d&&D.preventDefault(),D.key==="Enter"&&D.preventDefault(),isNaN(D.key)&&D.preventDefault())}},Y=D=>{if(D.which===17||D.which===91)return p=!1},L=D=>{D.preventDefault(),navigator.clipboard.readText().then(z=>{if(z=z.replace(/(?!^\+|\d)./g,""),b){let E=D.target.textContent.length;if(E>=b)return;b-=E,z=z.slice(0,b)}window.document.execCommand("insertText",!1,""+z)}).catch(z=>{})};const U=D=>{re.Blur(D),i==null||i({value:D.target.textContent,name:S})};let R={};return v&&c?(R.edit="true",R.contentEditable=re.ContentEditable):R.contentEditable="false",R.inputMode="decimal",o&&(R.placeholder=o),l?m.jsx(m.Fragment,{}):m.jsxs("dl",{"data-field":"input",className:[H.l,u].filter(D=>D!==void 0).join(" "),children:[C?m.jsx("dt",{className:H.t,children:C}):"",A,m.jsx("dd",{className:[H.f,H.w].join(" "),onPaste:L,onInput:M,onBlur:U,onKeyDown:W,onKeyUp:Y,suppressContentEditableWarning:!0,...R,children:h}),N,T&&m.jsx("em",{children:T})]})}var It={exports:{}},gt={};/**
89
+ <%s key={someKey} {...props} />`,ve,G,ft,G),Ae[G+ve]=!0}}return e===d?lt(w):_t(w),w}}function st(e,t,r){return qe(e,t,r,!0)}function ct(e,t,r){return qe(e,t,r,!1)}var dt=ct,ut=st;wt.Fragment=d,wt.jsx=dt,wt.jsxs=ut}()),wt}process.env.NODE_ENV==="production"?Pt.exports=Pr():Pt.exports=Nr();var Nt=Pt.exports;const Fr="_btn_1k1b3_1",Ir="_confirm_1k1b3_15",Mr="_cancel_1k1b3_20",$r="_action_1k1b3_25",Ar="_disabled_1k1b3_30",qr="_m_1k1b3_44",Br="_l_1k1b3_48",jt={btn:Fr,confirm:Ir,cancel:Mr,action:$r,disabled:Ar,await:"_await_1k1b3_37",m:qr,l:Br},Lr=({onClick:n,onSend:i,size:c="m",view:d="confirm",children:v,isDisabled:C=!1,className:T,after:j,before:l,label:h,onRef:o,awaitText:u="Ожидайте"})=>{let[b,S]=B.useState(!1);const N=$=>{if(n)return n();b||(i?(S(!0),i(S)):$.preventDefault())};let A={};return(C||b)&&(A.disabled=!0),Nt.jsx("button",{...A,ref:o,className:[jt.btn,b?jt.disabled:jt[d],c&&jt[c],T].filter($=>$!="").join(" "),onClick:N,children:b?u:Nt.jsxs(Nt.Fragment,{children:[l||""," ",h," ",j||""]})||v})};let ke={};function zr({children:n}){return J.jsx(J.Fragment,{children:n})}var Ct;(n=>{function i({import_modules:o}){let[u,b]=B.useState([]);return ke.x=S=>{b(S?u.filter(N=>N.key!==S):[])},B.useEffect(()=>{o&&(ke.i=o)},[]),ke.add=(S,N=Date.now())=>{b([...u,{key:N,item:S}])},J.jsx(J.Fragment,{children:u.map(S=>S.item)})}n.Init=i;function c(o){return o&&(ke.i=o),ke.i}n.Import=c,n.List=Sr,n.Scroll=Er,n.Form=Rr,n.Center=Or,n.Column=Tr;function d(o,u,b){ke.i?ke.i(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(b)}):Wt()(`${o}/modal/${u}.tsx`).then(S=>{S.default.Open(b)})}n.Open=d;function v({type:o,name:u,params:b}){let[S,N]=B.useState(null);return B.useEffect(()=>{ke.i?ke.i(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(b))}):Wt()(`${o}/modal/${u}.tsx`).then(A=>{N(A.default.Icon(b))})},[b.id]),J.jsx(J.Fragment,{children:S})}n.Icon=v;function C(o,u){ke.add(J.jsx(zr,{children:o},String(Date.now())),u)}n.Add=C;function T(o){ke.x(o)}n.Close=T;function j(o){if(o.target.classList[0]!=="modal")return;let u=o.target.children[0];u.setAttribute("shake",!0),setTimeout(()=>{u.setAttribute("shake",!1)},1e3)}n.Shake=j;function l(o,u){const b=S=>{n.Add(J.jsx(o,{...S},new Date().getTime()))};return{Icon:S=>J.jsx("i",{onClick:()=>b(S),children:u&&J.jsx(u,{})}),Open:b}}n.Create=l;function h({title:o,children:u,button:b,tabs:S,size:N="m",className:A="",shake:$=!0,menu:O}){const[p,M]=B.useState(!0),W=B.useRef(),Y=U=>{if(b){if(b.onClick)return U(!1),b.onClick({setOpen:M});if(b.onSend)return b.onSend({setOpen:M,disabled:U})}},L=()=>{if(!$)return M(!1);W.current.setAttribute("shake",!0),setTimeout(()=>{W.current.setAttribute("shake",!1)},1e3)};return p?J.jsxs("div",{className:`${le.modal}`,children:[J.jsx("div",{className:le.o,onClick:L}),J.jsxs("div",{className:[le.w,le[`s${N}`],A].filter(U=>U!="").join(" "),ref:W,children:[J.jsxs("div",{className:le.h,children:[J.jsx("div",{className:le.t,children:o}),J.jsxs("div",{className:le.m,children:[S&&J.jsx("nav",{children:S.map((U,R)=>J.jsx("span",{onClick:U.onClick,className:U.active?"active":"",children:U.name},R))}),O]}),J.jsx("div",{className:le.x,onClick:()=>{M(!1)},children:J.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:J.jsx("path",{d:"M20 5L5 20M5 5L20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u,b&&J.jsx("div",{className:le.b,children:J.jsx(Lr,{label:b.label,onSend:Y,className:le.btn,size:b.size})})]})]}):""}n.Main=h})(Ct||(Ct={}));const Wr=(n,i=",")=>(n=n!==void 0&&n!==""?n.split(i):[],n.filter(c=>c!=="").reduce((c,d)=>(c[d]=!0,c),{}));function Ur({value:n,onValue:i,name:c,placeholder:d="",separator:v=",",title:C,error:T,hide:j=!1,edit:l=!0,active:h=!0,outFormat:o="object",after:u="",modal:b,options:S,className:N}){const[A,$]=B.useState(Wr(n,v)),O=p=>{if(!(l&&h)||!b)return;let M=b.split(".");Ct.Open(M[0],M[1],{callback:W=>{if(i)switch(o){case"array":i({value:Object.keys(W),name:c});break;case"string":i({value:Object.keys(W).filter(Y=>W[Y]).join(v),name:c});break;default:i({value:W,name:c})}$(Object.fromEntries(Object.entries(W).filter(([Y,L])=>L!==!1)))},onValue:i,options:S,name:c,value:A})};return j?m.jsx(m.Fragment,{}):m.jsx(kt,{type:"group",title:C,element_blok:{className:[N]},element_input:{className:[H.w],props:{onClick:O}},children:Object.keys(A).map(p=>{var M;return m.jsx("div",{children:(M=S[p])==null?void 0:M.label},p)})})}const Ft={o:"_o_1wehm_12",l:"_l_1wehm_22",f:"_f_1wehm_81"};function Kr({title:n,error:i,edit:c=!0,active:d=!0,hide:v,value:C=0,onValue:T,options:j,placeholder:l="",className:h,isIcon:o=!0,name:u,after:b,view:S,order:N,isReload:A=!1}){var D,z;const $=B.useRef(null),[O,p]=B.useState(C),[M,W]=B.useState(j),[Y,L]=B.useState(!1);B.useEffect(()=>{p(C),W(j)},[C,j]),v=!!(v&&(C===0||((D=M==null?void 0:M[C])==null?void 0:D.n)===void 0))&&!(c&&d);let R=E=>{p(E),T&&T({value:E,name:u,reload:A})};return v?"":m.jsxs(kt,{type:"select",title:n,element_blok:{className:[h]},element_input:{className:[Ft.f],ref:$},children:[m.jsx("div",{children:(z=M==null?void 0:M[O])==null?void 0:z.n}),Y&&Ot.createPortal(m.jsx(Yr,{parent:$.position,onValue:R,view:S,className:h,options:M,order:N,setOpen:L},new Date().getTime()),document.body)]})}const Yr=({onValue:n,parent:i,className:c,options:d,order:v,setOpen:C})=>{let T=()=>{C(!1)},j=o=>{C(!1),n(o)},l=window.innerHeight-i.y+i.height<320?i.y-312:i.y+33,h=window.innerWidth-i.x<265?i.x-235:i.x;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Ft.o,onClick:T},new Date().getTime()),m.jsx("div",{className:[Ft.l,c].filter(o=>o!==void 0).join(" "),style:{top:l+"px",left:h+"px",width:i.width},children:m.jsx(Gr,{order:v,options:d,link:j})})]})},Gr=({order:n,options:i,link:c})=>n?m.jsx("ul",{children:n.map((d,v)=>i[d].s!==0?m.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")}):m.jsx("ul",{children:Object.keys(i).map((d,v)=>i[d].s!==0?m.jsx("li",{onClick:()=>{c(d)},children:i[d].n},v):"")});function Hr({value:n,onValue:i,name:c,placeholder:d="",title:v,error:C,hide:T=!1,edit:j=!0,show:l=!0,active:h=!0,after:o="",view:u,modal:b,module:S,options:N,className:A}){let[$,O]=B.useState(n),p=Y=>{if(!(j&&h)||!b)return;let L=b.split(".");Ct.Open(L[0],L[1],{callback:U=>{i&&i({value:U,name:c}),O(U)},onValue:i,options:N,name:c,value:n})};const M={};M.field="input",A&&(M.className=A);const W={};return d&&(W.placeholder=d),T?m.jsx(m.Fragment,{}):m.jsxs("dl",{...M,children:[v&&m.jsx("dt",{children:v}),m.jsx("dd",{...W,onClick:p,edit:(j&&h)+"","data-after":o,children:$}),C&&m.jsx("em",{children:C})]})}function Jr({value:n,onValue:i,onSave:c,name:d,placeholder:v="",className:C,title:T,error:j,edit:l=!0,active:h=!0,reload:o=!1,native:u=!1,isShow:b=!1,maxLength:S,eyes:N=[],after:A=""}){const[$,O]=B.useState(b);let p=R=>{i&&i({value:R.target.textContent,name:d,reload:o})},M=R=>{R.key==="Enter"&&R.preventDefault()},W=R=>{R.preventDefault(),navigator.clipboard.readText().then(D=>{if(S){let z=R.target.textContent.length;if(z>=S)return;S-=z,D=D.slice(0,S)}window.document.execCommand("insertText",!1,D.replace(/(\r\n|\n|\r)/gm," "))}).catch(D=>{})},Y=R=>{re.Blur(R),c==null||c({value:R.target.textContent.trim(),name:d})};const L={};L.field="password",$&&(L.show=""),C&&(L.className=C);const U={};return v&&(U.placeholder=v),u?"":m.jsxs("dl",{...L,children:[T?m.jsx("dt",{children:T}):"",m.jsx("dd",{onPaste:W,onInput:p,onKeyDown:M,onBlur:Y,contentEditable:l&&h?re.ContentEditable:"false",...U,suppressContentEditableWarning:!0,children:n}),N[0]&&m.jsx("i",{onClick:()=>O(!$),children:$?N[1]:N[0]}),A,j?m.jsx("em",{children:j}):""]})}function Zr({onValue:n,onSave:i,active:c,max:d,edit:v,title:C,error:T,show:j,hide:l,value:h,placeholder:o,className:u,maxLength:b,name:S,after:N="",before:A="",view:$}){v=v!==void 0?v:!0,c=c!==void 0?c:!0,l=!!(l&&(h===""||h===void 0))&&!(v&&c),o=o!==void 0?o:"",d=d!==void 0?d:99;let p=!1,M=D=>{n==null||n({value:D.target.textContent,name:S})},W=D=>{if(!(p&&D.which===86)){if(D.which===17||D.which===91)return p=!0;D.key!=="Backspace"&&(D.target.textContent.length===d&&D.preventDefault(),D.key==="Enter"&&D.preventDefault(),isNaN(D.key)&&D.preventDefault())}},Y=D=>{if(D.which===17||D.which===91)return p=!1},L=D=>{D.preventDefault(),navigator.clipboard.readText().then(z=>{if(z=z.replace(/(?!^\+|\d)./g,""),b){let E=D.target.textContent.length;if(E>=b)return;b-=E,z=z.slice(0,b)}window.document.execCommand("insertText",!1,""+z)}).catch(z=>{})};const U=D=>{re.Blur(D),i==null||i({value:D.target.textContent,name:S})};let R={};return v&&c?(R.edit="true",R.contentEditable=re.ContentEditable):R.contentEditable="false",R.inputMode="decimal",o&&(R.placeholder=o),l?m.jsx(m.Fragment,{}):m.jsxs("dl",{"data-field":"input",className:[H.l,u].filter(D=>D!==void 0).join(" "),children:[C?m.jsx("dt",{className:H.t,children:C}):"",A,m.jsx("dd",{className:[H.f,H.w].join(" "),onPaste:L,onInput:M,onBlur:U,onKeyDown:W,onKeyUp:Y,suppressContentEditableWarning:!0,...R,children:h}),N,T&&m.jsx("em",{children:T})]})}var It={exports:{}},gt={};/**
90
90
  * @license React
91
91
  * react-jsx-runtime.production.min.js
92
92
  *
@@ -16,5 +16,5 @@ interface Input {
16
16
  view?: string;
17
17
  className?: string;
18
18
  }
19
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, onSave, className, }: Input): import("react/jsx-runtime").JSX.Element | "";
19
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
20
20
  export {};
@@ -17,5 +17,5 @@ interface Input {
17
17
  className?: string;
18
18
  max?: number;
19
19
  }
20
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, max, onSave, className, separator, }: Input): import("react/jsx-runtime").JSX.Element | "";
20
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, max, onSave, className, separator, }: Input): "" | import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -18,5 +18,5 @@ interface Input {
18
18
  className?: string;
19
19
  type?: "png" | "jpeg" | "webp";
20
20
  }
21
- export default function ({ value, onValue, name, placeholder, title, link, error, hide, edit, active, after, show, type, view, onSave, className, }: Input): import("react/jsx-runtime").JSX.Element | "";
21
+ export default function ({ value, onValue, name, placeholder, title, link, error, hide, edit, active, after, show, type, view, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -20,5 +20,5 @@ interface Input {
20
20
  maxLength?: number;
21
21
  isReload?: boolean;
22
22
  }
23
- export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, before, show, maxLength, onSave, className, isCopy, isReload, }: Input): import("react/jsx-runtime").JSX.Element | "";
23
+ export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, before, show, maxLength, onSave, className, isCopy, isReload, }: Input): "" | import("react/jsx-runtime").JSX.Element;
24
24
  export {};
@@ -18,5 +18,5 @@ interface Input {
18
18
  course?: number;
19
19
  isClear?: boolean;
20
20
  }
21
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, course, view, type, onSave, className, isClear, }: Input): import("react/jsx-runtime").JSX.Element | "";
21
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, course, view, type, onSave, className, isClear, }: Input): "" | import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -40,5 +40,5 @@ type Input = {
40
40
  * @param {boolean} [props.isCopy] - разрешить копирование
41
41
  * @return {ReactElement} - поле ввода
42
42
  */
43
- export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): import("react/jsx-runtime").JSX.Element | "";
43
+ export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
44
44
  export {};
@@ -19,5 +19,5 @@ interface Data {
19
19
  maxLength?: number;
20
20
  eyes?: any;
21
21
  }
22
- export default function ({ value, onValue, onSave, name, placeholder, className, title, error, edit, active, reload, native, isShow, maxLength, eyes, after, }: Data): import("react/jsx-runtime").JSX.Element | "";
22
+ export default function ({ value, onValue, onSave, name, placeholder, className, title, error, edit, active, reload, native, isShow, maxLength, eyes, after, }: Data): "" | import("react/jsx-runtime").JSX.Element;
23
23
  export {};
@@ -20,4 +20,4 @@ export type TSelect = {
20
20
  }>;
21
21
  order?: any;
22
22
  };
23
- export default function ({ title, error, edit, active, hide, value, onValue, options, placeholder, className, isIcon, name, after, view, order, isReload, }: TSelect): import("react/jsx-runtime").JSX.Element | "";
23
+ export default function ({ title, error, edit, active, hide, value, onValue, options, placeholder, className, isIcon, name, after, view, order, isReload, }: TSelect): "" | import("react/jsx-runtime").JSX.Element;
@@ -16,5 +16,5 @@ interface Input {
16
16
  className?: string;
17
17
  maxLength?: number;
18
18
  }
19
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, maxLength, onSave, className, }: Input): import("react/jsx-runtime").JSX.Element | "";
19
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, maxLength, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
20
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/form",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "plugin for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
File without changes
@@ -1,6 +0,0 @@
1
- interface Switch {
2
- onClick: Function;
3
- active?: any;
4
- }
5
- declare const Switch: ({ onClick, active }: Switch) => import("react/jsx-runtime").JSX.Element;
6
- export default Switch;