import{s as w,f as m,y as l,v as f,w as E,cq as k,ad as N,b0 as x,ae as D,dr as L,z as y,P as g,Q as r,D as F}from"./index-DT8qTvyx.js";var P=function(o){w(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a.prototype.handleClick=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.handleMouseEnter=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.handleMouseLeave=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.renderBody=function(){var e=this.props,t=e.children,s=e.body,n=e.render,h=e.classnames,C=e.bodyClassName,c=e.disabled,i=e.wrapperBody,d=e.testIdBuilder,p=i??!0,u=t?typeof t=="function"?t(this.props):t:s?n("body",s,{disabled:c}):null;return p?m.createElement("div",l({className:h("Container-body",C)},d==null?void 0:d.getTestId()),u):u},a.prototype.render=function(){var e=this.props,t=e.className,s=e.wrapperComponent,n=e.size,h=e.classnames,C=e.style,c=e.data,i=e.draggable,d=e.draggableConfig,p=e.id,u=e.wrapperCustomStyle,_=e.env,v=e.themeCss;e.baseControlClassName;var B=f(i)?E(i,c,"| raw"):i,M=k(a.defaultProps.draggableConfig,f(d)?E(d,c,"| raw"):d),S=s||"div",b=m.createElement(S,{className:h("Container",n&&n!=="none"?"Container--".concat(n):"",t,N(l(l({},this.props),{name:"baseControlClassName",id:p,themeCss:v})),N(l(l({},this.props),{name:"wrapperCustomStyle",id:p,themeCss:u}))),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,style:x(C,c),"data-id":p},this.renderBody(),m.createElement(D,l({},this.props,{config:{wrapperCustomStyle:u,id:p,themeCss:v,classNames:[{key:"baseControlClassName"}]},env:_})));return B?m.createElement(L,l({},M,{draggable:!0}),b):b},a.propsList=["body","className"],a.defaultProps={className:"",draggableConfig:{axis:"both",scale:1,enableUserSelect:!1}},y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleClick",null),y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleMouseEnter",null),y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleMouseLeave",null),a}(m.Component),j=function(o){w(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a=y([F({type:"container"})],a),a}(P);export{j as ContainerRenderer,P as default};
