import{n as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{n}from"./iframe-DaN-XFub.js";function r({value:e,open:t,onCommit:n,onOpen:r,onClose:a,isEqual:o}){let s=(0,i.useRef)(!1),[c,l]=(0,i.useState)(e),u=(0,i.useEffectEvent)(e=>l(e));return(0,i.useEffect)(()=>{t||u(e)},[t,e]),(0,i.useEffect)(()=>{s.current&&!t&&(o(c,e)||n(c),a?.(c)),s.current=t},[c,o,a,n,t,e]),{draftValue:c,setDraftValue:l,prepareOpen:()=>{l(e),r?.()}}}var i;function a(){return(a=e((()=>{i=t()})))()}var o,s,c,l;function u(){return(u=e((()=>{o=`_9oSdQi`,s=`iobHig`,c=`yatXso`,l={multiSelect:o,multiSelectTokens:s,multiSelectToken:c}})))()}function d({value:e}){return e?(0,f.jsx)(`div`,{className:l.multiSelectTokens,children:(0,f.jsx)(`div`,{className:l.multiSelectToken,children:e})}):null}var f;function p(){return(p=e((()=>{u(),f=n(),d.__docgenInfo={description:"Токен выбранного значения в `MultiSelect`. Показывает выбранный элемент и кнопку его удаления из текущего набора.",methods:[],displayName:`MultiSelectToken`,props:{value:{required:!0,tsType:{name:`union`,raw:`string | undefined`,elements:[{name:`string`},{name:`undefined`}]},description:``}}}})))()}export{a,u as i,p as n,r as o,l as r,d as t};