const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js"),r=require("../../style/motion/collapse.js");var i=t=>{let{componentCls:n,collapseContentBg:r,padding:i,collapseContentPaddingHorizontal:a,collapseHeaderBg:o,collapseHeaderPadding:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSize:h,lineHeight:g,marginSM:_,paddingSM:v,motionDurationSlow:y,fontSizeIcon:b}=t,x=`${l}px ${u} ${d}`;return{[n]:{...e.resetComponent(t),backgroundColor:o,border:x,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:`rtl`},[`& > ${n}-item`]:{borderBottom:x,"&:last-child":{[`
            &,
            & > ${n}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${n}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:s,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${y}, visibility 0s`,[`> ${n}-header-text`]:{flex:`auto`},"&:focus":{outline:`none`},[`${n}-expand-icon`]:{height:h*g,display:`flex`,alignItems:`center`,paddingInlineEnd:_},[`${n}-arrow`]:{...e.resetIcon(),fontSize:b,svg:{transition:`transform ${y}`}},[`${n}-header-text`]:{marginInlineEnd:`auto`}},[`${n}-header-collapsible-only`]:{cursor:`default`,[`${n}-header-text`]:{flex:`none`,cursor:`pointer`},[`${n}-expand-icon`]:{cursor:`pointer`}},[`${n}-icon-collapsible-only`]:{cursor:`default`,[`${n}-expand-icon`]:{cursor:`pointer`}},[`&${n}-no-arrow`]:{[`> ${n}-header`]:{paddingInlineStart:v}}},[`${n}-content`]:{color:f,backgroundColor:r,borderTop:x,[`& > ${n}-content-box`]:{padding:`${i}px ${a}px`},"&-hidden":{display:`none`}},[`${n}-item:last-child`]:{[`> ${n}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:m,cursor:`not-allowed`}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:_}}}}}}},a=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},o=e=>{let{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:`transparent`,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},s=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:`transparent`,border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},c=t.default(`Collapse`,e=>{let t=n.merge(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[i(t),o(t),s(t),a(t),r.default(t)]});exports.default=c,exports.genBaseStyle=i;