"use strict";var __extends=this&&this.__extends||function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])})(t,i)};return function(t,i){function e(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}}(),__decorate=this&&this.__decorate||function(t,i,e,o){var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,o);else for(var p=t.length-1;0<=p;p--)(n=t[p])&&(r=(s<3?n(r):3=e.clientX&&this.position.x<=0||i.right<=e.clientX&&i.right<=this.position.x+i.left+c;return{movementX:p=(t=t||(o?p<0&&e.clientX>this.position.x+i.left||0
this.position.x+i.left+c||0
this.position.x+i.left+c||0
=e.clientY&&this.position.y<=0||i.bottom<=e.clientY&&i.bottom<=this.position.y+i.top+u||n&&(h<0&&e.clientY>this.position.y+i.top+(r||0)||0this.position.y+i.top+u||0i.clientHeight&&(t=i.clientHeight-this.position.y)),this.size.height!==t&&(this.size.height=t,o||utils_1._.setFixedHeight(e,t))},e.prototype.getWidth=function(){return this.size.width},e.prototype.setWidth=function(t){var i,e=this.getGui(),o=!1;"string"==typeof t&&-1!==t.indexOf("%")?(utils_1._.setFixedWidth(e,t),t=utils_1._.getAbsoluteWidth(e),o=!0):(t=Math.max(this.minWidth,t),(i=e.offsetParent)&&i.clientWidth&&t+this.position.x>i.clientWidth&&(t=i.clientWidth-this.position.x)),this.size.width!==t&&(this.size.width=t,o||utils_1._.setFixedWidth(e,t))},e.prototype.center=function(){var t=this.getGui(),i=t.offsetParent.clientWidth/2-this.getWidth()/2,t=t.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(i,t)},__decorate([context_1.Autowired("popupService"),__metadata("design:type",popupService_1.PopupService)],e.prototype,"popupService",void 0),__decorate([context_1.Autowired("gridOptionsWrapper"),__metadata("design:type",gridOptionsWrapper_1.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}exports.Positionable=Positionable;