import{s as v,a3 as l,ai as C,f as d,K as M,z as o,P as c,Q as a,D as P}from"./index-BPRWoLf4.js";var _=function(i){v(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.handleClick=function(e){var n=this.props,r=n.dispatchEvent,s=n.data;r("click",l(s,{nativeEvent:e}))},t.prototype.handleMouseEnter=function(e){var n=this.props,r=n.dispatchEvent,s=n.data;r(e,l(s,{nativeEvent:e}))},t.prototype.handleMouseLeave=function(e){var n=this.props,r=n.dispatchEvent,s=n.data;r(e,l(s,{nativeEvent:e}))},t.prototype.render=function(){var e=this.props,n=e.className,r=e.style,s=e.wrapperComponent,u=e.text,y=e.data,h=e.tpl,m=e.inline,f=e.placeholder,E=e.classnames,p=C(this.props),g=s||(m?"span":"div");return d.createElement(g,{className:E("PlainField",n),style:r,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},h||u?M(h||u,y):typeof p>"u"||p===""||p===null?d.createElement("span",{className:"text-muted"},f):String(p))},t.defaultProps={wrapperComponent:"",inline:!0,placeholder:"-"},o([c,a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],t.prototype,"handleClick",null),o([c,a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),o([c,a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),t}(d.Component),b=function(i){v(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t=o([P({type:"plain",alias:["text"],name:"plain"})],t),t}(_);export{_ as Plain,b as PlainRenderer};
