import{resetComponent as e,resetIcon as t,textEllipsis as n}from"../../style/index.mjs";import r from"../../theme/util/genComponentStyleHook.mjs";import{merge as i}from"../../theme/util/statistic.mjs";var a=e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i,marginXXS:a,margin:o}=e,s=`${t}-table`,c=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:`1 1 50%`,width:`auto`,height:`auto`,minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:i,minWidth:i}},[`${s}-pagination${s}-pagination`]:{margin:`${o}px 0 ${a}px`}},[`${c}[disabled]`]:{backgroundColor:`transparent`}}}},o=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},s=e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:{...o(e,e.colorError)},[`${t}-status-warning`]:{...o(e,e.colorWarning)}}},c=e=>{let{componentCls:r,colorBorder:i,colorSplit:a,lineWidth:o,transferItemHeight:s,transferHeaderHeight:c,transferHeaderVerticalPadding:l,transferItemPaddingVertical:u,controlItemBgActive:d,controlItemBgActiveHover:f,colorTextDisabled:p,listHeight:m,listWidth:h,listWidthLG:g,fontSizeIcon:_,marginXS:v,paddingSM:y,lineType:b,iconCls:x,motionDurationSlow:S}=e;return{display:`flex`,flexDirection:`column`,width:h,height:m,border:`${o}px ${b} ${i}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:g,height:`auto`},"&-search":{[`${x}-search`]:{color:p}},"&-header":{display:`flex`,flex:`none`,alignItems:`center`,height:c,padding:`${l-o}px ${y}px ${l}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${o}px ${b} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:`none`},"&-title":{...n,flex:`auto`,textAlign:`end`},"&-dropdown":{...t(),fontSize:_,transform:`translateY(10%)`,cursor:`pointer`,"&[disabled]":{cursor:`not-allowed`}}},"&-body":{display:`flex`,flex:`auto`,flexDirection:`column`,overflow:`hidden`,fontSize:e.fontSize,"&-search-wrapper":{position:`relative`,flex:`none`,padding:y}},"&-content":{flex:`auto`,margin:0,padding:0,overflow:`auto`,listStyle:`none`,"&-item":{display:`flex`,alignItems:`center`,minHeight:s,padding:`${u}px ${y}px`,transition:`all ${S}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:`none`},"&-text":{...n,flex:`auto`},"&-remove":{position:`relative`,color:i,cursor:`pointer`,transition:`all ${S}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:`absolute`,insert:`-${u}px -50%`,content:`""`}},[`&:not(${r}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:`pointer`},[`&${r}-list-content-item-checked:hover`]:{backgroundColor:f}},"&-checked":{backgroundColor:d},"&-disabled":{color:p,cursor:`not-allowed`}},[`&-show-remove ${r}-list-content-item:not(${r}-list-content-item-disabled):hover`]:{background:`transparent`,cursor:`default`}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:`end`,borderTop:`${o}px ${b} ${a}`},"&-body-not-found":{flex:`none`,width:`100%`,margin:`auto 0`,color:p,textAlign:`center`},"&-footer":{borderTop:`${o}px ${b} ${a}`},"&-checkbox":{lineHeight:1}}},l=t=>{let{antCls:n,iconCls:r,componentCls:i,transferHeaderHeight:a,marginXS:o,marginXXS:s,fontSizeIcon:l,fontSize:u,lineHeight:d}=t;return{[i]:{...e(t),position:`relative`,display:`flex`,alignItems:`stretch`,[`${i}-disabled`]:{[`${i}-list`]:{background:t.colorBgContainerDisabled}},[`${i}-list`]:c(t),[`${i}-operation`]:{display:`flex`,flex:`none`,flexDirection:`column`,alignSelf:`center`,margin:`0 ${o}px`,verticalAlign:`middle`,[`${n}-btn`]:{display:`block`,"&:first-child":{marginBottom:s},[r]:{fontSize:l}}},[`${n}-empty-image`]:{maxHeight:a/2-Math.round(u*d)}}}},u=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},d=r(`Transfer`,e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o,controlHeight:c}=e,d=Math.round(t*n),f=o,p=c,m=i(e,{transferItemHeight:p,transferHeaderHeight:f,transferHeaderVerticalPadding:Math.ceil((f-r-d)/2),transferItemPaddingVertical:(p-d)/2});return[l(m),a(m),s(m),u(m)]},{listWidth:180,listHeight:200,listWidthLG:250});export{d as default};