import{s as y,v as P,w as R,ad as N,y as i,f as o,ae as S,z as k,D as E}from"./index-BPRWoLf4.js";var W=function(r){y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props,D=e.render,f=e.classnames,g=e.className,u=e.style,n=u===void 0?{}:u,p=e.lineStyle,l=e.direction,s=e.color,C=e.rotate,a=e.title,x=e.titleClassName,d=e.titlePosition,c=e.id,m=e.themeCss,b=e.env,w=e.data,v={};s&&(~(s==null?void 0:s.indexOf("linear-gradient"))?v.borderImage=s+" 10":v.borderColor=s);var h=(n==null?void 0:n.transform)||"";C&&(h+=" rotate(".concat(C,"deg)")),P(a)&&(a=R(a,w));var _=f("Divider",p?"Divider--".concat(p):"",l==="vertical"?"Divider--vertical":"Divider--horizontal",a&&l!=="vertical"?"Divider--with-text":"",a&&l!=="vertical"&&d?"Divider--with-text-".concat(d):"",a&&l!=="vertical"?N(i(i({},this.props),{name:"titleWrapperControlClassName",id:c,themeCss:m})):"",g);return o.createElement("div",{className:_,style:i(i(i({},n),v),{transform:h})},a&&l!=="vertical"?o.createElement("span",{className:f("Divider-text Divider-text-".concat(d," ").concat(x),N(i(i({},this.props),{name:"titleControlClassName",id:c,themeCss:m})))},D("title",a)):null,o.createElement(S,i({},this.props,{config:{themeCss:m,classNames:[{key:"titleWrapperControlClassName",weights:{default:{suf:"::before",important:!0}}},{key:"titleWrapperControlClassName",weights:{default:{suf:"::after",important:!0}}},{key:"titleControlClassName",weights:{default:{important:!0}}}],id:c},env:b})))},t.defaultProps={className:"",lineStyle:"solid",titleClassName:"",titlePosition:"center"},t}(o.Component),V=function(r){y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=k([E({type:"divider"})],t),t}(W);export{V as DividerRenderer,W as default};
