1
0
Fork 0
owl-admin-starter/public/admin-assets/assets/Slider-DjuJGZ5M.js

2 lines
1.8 KiB
JavaScript

import{t as S,v as w,l as f,ej as c,z as h,D as o,Q as r,T as e,E as v}from"./index-CEmnTf-r.js";var _=function(s){S(t,s);function t(){var i=s!==null&&s.apply(this,arguments)||this;return i.state={leftShow:!1,rightShow:!1},i}return t.prototype.handleLeftShow=function(){this.props.dispatchEvent("leftShow",this.props.data)},t.prototype.handleRightShow=function(){this.props.dispatchEvent("rightShow",this.props.data)},t.prototype.handleLeftHide=function(){this.props.dispatchEvent("leftHide",this.props.data)},t.prototype.handleRightHide=function(){this.props.dispatchEvent("rightHide",this.props.data)},t.prototype.showLeft=function(){this.setState({leftShow:!0})},t.prototype.hideLeft=function(){this.setState({leftShow:!1})},t.prototype.showRight=function(){this.setState({rightShow:!0})},t.prototype.hideRight=function(){this.setState({rightShow:!1})},t.prototype.render=function(){var i=this.props,a=i.render,g=i.body,d=i.left,p=i.right;i.env;var n=w(i,["render","body","left","right","env"]),l=this.state,y=l.leftShow,u=l.rightShow;return f.createElement(c,h({body:a("body",g,h({},n.data)),left:d&&a("left",d,h({},n.data)),right:p&&a("right",p,h({},n.data)),showLeft:y,showRight:u,onLeftShow:this.handleLeftShow,onRightShow:this.handleRightShow,onLeftHide:this.handleLeftHide,onRightHide:this.handleRightHide},n))},o([r,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],t.prototype,"handleLeftShow",null),o([r,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],t.prototype,"handleRightShow",null),o([r,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],t.prototype,"handleLeftHide",null),o([r,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],t.prototype,"handleRightHide",null),t=o([v({type:"slider"})],t),t}(f.Component);export{_ as SliderRenderer};