const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js");var r=t=>{let{componentCls:n,sizePaddingEdgeHorizontal:r,colorSplit:i,lineWidth:a}=t;return{[n]:{...e.resetComponent(t),borderBlockStart:`${a}px solid ${i}`,"&-vertical":{position:`relative`,top:`-0.06em`,display:`inline-block`,height:`0.9em`,margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:`middle`,borderTop:0,borderInlineStart:`${a}px solid ${i}`},"&-horizontal":{display:`flex`,clear:`both`,width:`100%`,minWidth:`100%`,margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:`flex`,alignItems:`center`,margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:`nowrap`,textAlign:`center`,borderBlockStart:`0 ${i}`,"&::before, &::after":{position:`relative`,width:`50%`,borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:`inherit`,borderBlockEnd:0,transform:`translateY(50%)`,content:`''`}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:`5%`},"&::after":{width:`95%`}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:`95%`},"&::after":{width:`5%`}},[`${n}-inner-text`]:{display:`inline-block`,padding:`0 1em`},"&-dashed":{background:`none`,borderColor:i,borderStyle:`dashed`,borderWidth:`${a}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:`dashed none none`}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:t.colorText,fontWeight:`normal`,fontSize:t.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:`100%`},[`${n}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:`100%`},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:r}}}}},i=t.default(`Divider`,e=>[r(n.merge(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG}))],{sizePaddingEdgeHorizontal:0});exports.default=i;