System.register(["./index-legacy.DjPCm-Xr.js","./index-legacy.sLMPZLm9.js"],(function(t,e){"use strict";var i,r,n,o,a,l,d,h,g,s,u;return{setters:[t=>{i=t.g,r=t.m,n=t._,o=t.r,a=t.w,l=t.j,d=t.n,h=t.d},t=>{g=t.d,s=t.i,u=t.l}],execute:function(){const e=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:i,colorSplit:r,lineWidth:a}=t;return{[e]:n(n({},o(t)),{borderBlockStart:`${a}px solid ${r}`,"&-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 ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-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 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:i}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:i}}})}},c=i("Divider",(t=>{const i=r(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[e(i)]}),{sizePaddingEdgeHorizontal:0}),p=g({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]},setup(t,e){let{slots:i,attrs:r}=e;const{prefixCls:o,direction:a}=l("divider",t),[g,p]=c(o),f=s((()=>"left"===t.orientation&&null!=t.orientationMargin)),$=s((()=>"right"===t.orientation&&null!=t.orientationMargin)),v=s((()=>{const{type:e,dashed:i,plain:r}=t,n=o.value;return{[n]:!0,[p.value]:!!p.value,[`${n}-${e}`]:!0,[`${n}-dashed`]:!!i,[`${n}-plain`]:!!r,[`${n}-rtl`]:"rtl"===a.value,[`${n}-no-default-orientation-margin-left`]:f.value,[`${n}-no-default-orientation-margin-right`]:$.value}})),x=s((()=>{const e="number"==typeof t.orientationMargin?`${t.orientationMargin}px`:t.orientationMargin;return n(n({},f.value&&{marginLeft:e}),$.value&&{marginRight:e})})),b=s((()=>t.orientation.length>0?"-"+t.orientation:t.orientation));return()=>{var t;const e=d(null===(t=i.default)||void 0===t?void 0:t.call(i));return g(u("div",h(h({},r),{},{class:[v.value,e.length?`${o.value}-with-text ${o.value}-with-text${b.value}`:"",r.class],role:"separator"}),[e.length?u("span",{class:`${o.value}-inner-text`,style:x.value},[e]):null]))}}});t("D",a(p))}}}));
