| 1 |
var y=Object.defineProperty;var x=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var b=(i,e,s)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s,m=(i,e)=>{for(var s in e||(e={}))P.call(e,s)&&b(i,s,e[s]);if(x)for(var s of x(e))K.call(e,s)&&b(i,s,e[s]);return i};import{a as S,g as z,i as A,H as B,j as t,h as a,f as E,b1 as H}from"./main-96.js";import{F as f}from"./bf-460-326.js";import{C as L}from"./bf-781-46.js";function q({placeholder:i,type:e,title:s,inputType:o="text",max:c="",min:j="",coolTip:F=""}){var h;const{css:r}=S(),{fieldKey:u}=z(),[g,v]=A(H),l=B(g[u]),N=(n,p)=>{const{value:d}=n.target;if(Number(c)<d&&c!=="")return!0;d?l.config[p]=d:delete l.config[p],v(w=>E(w,C=>{C[u]=l}))};return t.jsxs("div",{className:r(a.flxcb),children:[t.jsxs("div",{className:r({flx:"align-center"},a.w4,f.hover_tip,f.labelTip),children:[t.jsx("label",{htmlFor:e,className:r(a.fw500),children:s}),t.jsx(L,{width:250,icnSize:17,className:"hover-tip",children:t.jsx("div",{className:r(a.tipBody),children:F})})]}),t.jsx("input",m(m({placeholder:i,className:r(f.input,a.w5),value:(h=l==null?void 0:l.config)==null?void 0:h[e],type:o,onChange:n=>N(n,e)},o==="number"&&{max:c}),o==="number"&&{min:j}))]})}export{q as F}; |