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