import{a as h,r as e,j as s}from"./main-40.js";/* empty css          */import{u as g}from"./bf-528-128.js";function E({options:r,placeholder:i,action:a,className:l,isMultiple:m,allowCustomOpt:n,value:t,addable:c,titleClassName:u,title:d,jsonValue:p,disabled:b=!1}){const{css:x}=h(),[f,o]=e.useState(t);return e.useEffect(()=>{o(""),setTimeout(()=>{o(t)},1)},[t,r,p]),s.jsxs("div",{className:u,children:[s.jsx("span",{children:d}),s.jsx(g,{width:"100%",defaultValue:f,className:`${x(v.multiselectInput)} ${l}`,onChange:a,singleSelect:!m,customValue:n||c,placeholder:i,jsonValue:p,options:r||[],disabled:b})]})}const v={multiselectInput:{fs:14,fw:500,mt:10,"& .msl":{bd:"var(--b-79-96)",b:0,"&.msl-active-up":{"border-bottom-left-radius":0,"border-bottom-right-radius":0,"border-top-left-radius":"8px","border-top-right-radius":"8px",background:"#fff !important"},"& .msl-input":{p:3,cr:"#2c3338"}},"& .msl-active-up~.msl-options":{"max-height":"300px","-webkit-clip-path":"inset(0px -10px 0 -10px)","clip-path":"inset(0px -10px 0 -10px)"},"&.msl-vars":{w:"99% !important","--font-size":"12px"},"&.msl-wrp > .msl-options":{pn:"absolute !important","border-top-left-radius":0,"border-top-right-radius":0,"& div > .msl-option":{p:"4px 4px"}},"& > .msl-wrp > .msl-active-up":{brs:8,bblr:"0 !important",bbrr:"0 !important"},b:"1px solid #e6e6e6 !important","::placeholder":{cr:"hsl(215deg 16% 57%)",fs:12},":focus":{bs:"0 0 0 1px var(--b-50) !important",bcr:"var(--b-50)!important"}}};export{E as D};
