_pil.js 3.5 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _pil(_7ei, _akc){this._t0i=_7ei;this._t0i._z8l=this;this._xvb=_akc;this._r04=false;this._wrk={};this._40f={};};_pil.prototype._fdm=function(){_4qn._vb7(this._t0i);this._t0i=null;};_pil.prototype._swc=function(_xqm,_mzl){var _yxm=_xqm+"px";var _r8m=_mzl+"px";this._t0i.style.width=_yxm;this._t0i.style.height=_r8m;var _pcn;switch(this._xvb){case "top":_pcn="rect(auto, auto, " + ( _mzl + 20 ) + "px, auto)";break;case "bottom":_pcn="rect(-20px, auto, auto, auto)";break;case "left":_pcn="rect(auto, " + ( _xqm + 20 ) + "px, auto, auto)";break;case "right":_pcn="rect(auto, auto, auto, -20px)";break;}this._t0i.style.clip=_pcn;for(var _vdn in this._40f){if(this._40f[_vdn]){var _rrj=this._wrk[_vdn];_rrj.style.width=_yxm;_rrj.style.height=_r8m;}}};_pil.prototype._m6j=function(_vdn){return Boolean(this._wrk[_vdn]);};_pil.prototype._yge=function(_vdn){return Boolean(this._40f[_vdn]);};_pil.prototype._q13=function(){return this._r04;};_pil.prototype._45j=function(_vdn,_rrj){this._wrk[_vdn]=_rrj;_rrj.style[_4qn._a71]="transform";this._t0i.appendChild(_rrj);_rrj._bfh=_vdn;};_pil.prototype._die=function(_vdn){if(this._40f[_vdn]){this._31g(_vdn, false);}var _rrj=this._wrk[_vdn];this._wrk[_vdn]=null;_rrj.style[_4qn._971]="";_rrj.style[_4qn._uc]="";_rrj.style[_4qn._0c6]="";return this._t0i.removeChild(_rrj);};_pil.prototype._5qh=function(_vdn,_4la,_25c,_r54){this._r04=true;this._t0i.setAttribute( "_ei9", "true" );this._t0i.style.visibility="visible";var _jqd=this._t0i.offsetWidth;var _c5c=this._t0i.offsetHeight;var _rrj=this._wrk[_vdn];var _xum=_rrj.style;_xum.width=_jqd+"px";_xum.height=_c5c+"px";var _p2j;switch(this._xvb){case "top":_xum.bottom="0px";_xum.left="0px";_p2j="translate(0px," + _c5c + "px)";break;case "bottom":_xum.top=_c5c+"px";_xum.left="0px";_p2j="translate(0px,-" + _c5c + "px)";break;case "left":_xum.top="0px";_xum.left=-_jqd+"px";_p2j="translate(" + _jqd + "px,0px)";break;case "right":_xum.top="0px";_xum.left=_jqd+"px";_p2j="translate(-" + _jqd + "px,0px)";break;}_xum.display="block";_xum[_4qn._971]=_4la?"0.3s":"0.0s";_xum[_4qn._uc]=_4la?"ease-out":"step-end";if(_4la){this._qa1=_olk._cp1(this._zl7, this, _r54);_rrj.addEventListener("transitionend", this._qa1);}if(_4la){setTimeout(this._an7.bind(this, _rrj, _p2j), 0);}else{_xum[_4qn._0c6]=_p2j;}this._40f[_vdn]=true;if(_25c){_25c();}if(!_4la){this._zl7(null, _rrj, _r54);}};_pil.prototype._an7=function(_rrj,_p2j){_rrj.style[_4qn._0c6]=_p2j;};_pil.prototype._31g=function(_vdn,_4la,_ug3){this._r04=true;this._t0i.setAttribute( "_ei9", "true" );var _rrj=this._wrk[_vdn];_rrj.style[_4qn._971]=_4la?"0.5s":"0.0s";_rrj.style[_4qn._uc]=_4la?"ease-out":"step-end";if(_4la){this._y11=_olk._cp1(this._ad6, this, _ug3);_rrj.addEventListener("transitionend", this._y11);}_rrj.style[_4qn._0c6]="translate(0px,0px)";if(!_4la){this._ad6(null, _rrj, _ug3);}};_pil.prototype._zl7=function(e,_0pm,_r54){if(this._qa1){_0pm.removeEventListener("transitionend", this._qa1);}this._qa1=null;if(_r54){_r54();}this._r04=false;this._t0i.setAttribute( "_ei9", "false" );};_pil.prototype._ad6=function(e,_0pm,_ug3){if(this._y11){_0pm.removeEventListener("transitionend", this._y11);}this._y11=null;this._t0i.style.visibility="hidden";this._40f[_0pm._bfh]=false;if(_ug3){_ug3();}this._r04=false;this._t0i.setAttribute( "_ei9", "false" );};