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