import{s as U,ah as B,a3 as C,y as c,cV as D,aG as $,f,cW as G,bM as O,O as Q,z as u,P as R,Q as s,aZ as W,bm as Z}from"./index-BPRWoLf4.js";import{BaseTabsTransferRenderer as q}from"./TabsTransfer-DSMPYBpk.js";import"./Transfer-BzS7I0rL.js";var ee=function(v){U(o,v);function o(){var t=v!==null&&v.apply(this,arguments)||this;return t.state={activeKey:0},t}return o.prototype.dispatchEvent=function(t){var e=this.props,a=e.dispatchEvent,r=e.value;a(t,B(this.props,{value:r}))},o.prototype.optionItemRender=function(t,e){var a=this.props,r=a.menuTpl,i=a.render,d=a.data,n=a.classnames,l=arguments[2]||{};return r?i("item/".concat(e.index),r,{data:C(C(d,c(c({},e),l)),t)}):D.itemRender(t,c(c({},e),{classnames:n}))},o.prototype.doAction=function(t){var e,a,r,i=this.props,d=i.resetValue,n=i.onChange,l=i.formStore,p=i.store,h=i.name;switch(t.actionType){case"clear":n==null||n("");break;case"reset":n==null||n((r=(a=$((e=l==null?void 0:l.pristine)!==null&&e!==void 0?e:p==null?void 0:p.pristine,h))!==null&&a!==void 0?a:d)!==null&&r!==void 0?r:"");break}},o.prototype.render=function(){var t=this,e=this.props,a=e.className;e.style;var r=e.classnames,i=e.options,d=e.selectedOptions,n=e.sortable,l=e.loading,p=e.searchResultMode,h=e.showArrow,F=e.deferLoad,w=e.disabled,E=e.selectTitle,S=e.resultTitle,k=e.pickerSize,I=e.leftMode,x=e.leftOptions,g=e.itemHeight,M=e.virtualThreshold,P=e.loadingConfig,b=e.labelField,z=b===void 0?"label":b,T=e.valueField,A=T===void 0?"value":T,y=e.deferField,N=y===void 0?"defer":y,V=e.mobileUI,m=e.env,j=e.maxTagCount,H=e.overflowTagPopover,K=e.placeholder,_=e.initiallyOpen,L=_===void 0?!0:_;return f.createElement("div",{className:r("TabsTransferControl",a)},f.createElement(G,{activeKey:this.state.activeKey,onTabChange:this.onTabChange,placeholder:K,value:d,disabled:w,options:i,onChange:this.handleChange,option2value:this.option2value,sortable:n,searchResultMode:p,onSearch:this.handleTabSearch,showArrow:h,onDeferLoad:F,selectTitle:E,resultTitle:S,size:k,leftMode:I,leftOptions:x,optionItemRender:this.optionItemRender,resultItemRender:this.resultItemRender,onFocus:function(){return t.dispatchEvent("focus")},onBlur:function(){return t.dispatchEvent("blur")},itemHeight:O(g)>0?O(g):void 0,virtualThreshold:M,labelField:z,valueField:A,deferField:N,mobileUI:V,popOverContainer:m==null?void 0:m.getModalContainer,maxTagCount:j,overflowTagPopover:H,initiallyOpen:L}),f.createElement(Q,{loadingConfig:P,overlay:!0,key:"info",show:l}))},u([R,s("design:type",Function),s("design:paramtypes",[String]),s("design:returntype",void 0)],o.prototype,"dispatchEvent",null),u([R,s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],o.prototype,"optionItemRender",null),u([W(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],o.prototype,"render",null),o=u([Z({type:"tabs-transfer-picker"})],o),o}(q);export{ee as TabsTransferPickerRenderer};
