_uj4.js 5.6 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  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 _uj4(_5f6){this._io3=new Map();if(_5f6){try{var _6w4=_5f6.split(";");var _zg8=_6w4.length;for(var i=0;i<_zg8;++i){var _zq5=_6w4[i];var _0i7=_zq5.indexOf(":");if(_0i7!=-1){var _zo7=_zq5.substring(0, _0i7).trim().toLowerCase();var _hy8=_zq5.substr(_0i7+1).trim();if((_hy8.indexOf("url(data:")==0)&&((i+1)<_zg8)){_hy8+=(";" + _6w4[i + 1]);_6w4[i+1]="";}this._3u(_zo7, _hy8);}}}catch(e){this._io3.clear();}}};_uj4.prototype._bz8=function(){var o=new _uj4();o._io3=_ge9._zn8(this._io3);return o;};_uj4.prototype._3u=function(_zo7,_hy8){var _le8=_hy8.split( " " );switch(_zo7){case "font":switch(_le8.length){case 6:this._yw5("font-family", _le8[5]);case 5:this._yw5("line-height", _le8[4]);case 4:this._yw5("font-size", _le8[3]);case 3:this._yw5("font-weight", _le8[2]);case 2:case 1:this._yw5("font-style", _le8[0]);}break;case "padding":case "margin":switch(_le8.length){case 1:this._yw5(_zo7+"-top", _le8[0]);this._yw5(_zo7+"-bottom", _le8[0]);this._yw5(_zo7+"-left", _le8[0]);this._yw5(_zo7+"-right", _le8[0]);break;case 2:this._yw5(_zo7+"-top", _le8[0]);this._yw5(_zo7+"-bottom", _le8[0]);this._yw5(_zo7+"-left", _le8[1]);this._yw5(_zo7+"-right", _le8[1]);break;case 3:this._yw5(_zo7+"-top", _le8[0]);this._yw5(_zo7+"-left", _le8[1]);this._yw5(_zo7+"-right", _le8[1]);this._yw5(_zo7+"-bottom", _le8[2]);break;case 4:this._yw5(_zo7+"-top", _le8[0]);this._yw5(_zo7+"-right", _le8[1]);this._yw5(_zo7+"-bottom", _le8[2]);this._yw5(_zo7+"-left", _le8[3]);break;}break;case "border":switch(_le8.length){case 3:this._yw5("border-top-color", _le8[2]);this._yw5("border-bottom-color", _le8[2]);this._yw5("border-left-color", _le8[2]);this._yw5("border-right-color", _le8[2]);case 2:this._yw5("border-top-style", _le8[1]);this._yw5("border-bottom-style", _le8[1]);this._yw5("border-left-style", _le8[1]);this._yw5("border-right-style", _le8[1]);case 1:this._yw5("border-top-width", _le8[0]);this._yw5("border-bottom-width", _le8[0]);this._yw5("border-left-width", _le8[0]);this._yw5("border-right-width", _le8[0]);}break;case "border-top":case "border-bottom":case "border-left":case "border-right":switch(_le8.length){case 3:this._yw5(_zo7+"-color", _le8[2]);case 2:this._yw5(_zo7+"-style", _le8[1]);case 1:this._yw5(_zo7+"-width", _le8[0]);}break;default:this._yw5(_zo7, _hy8);}};_uj4.prototype._yw5=function(_zo7,_hy8){this._io3.set(_zo7, _hy8);};_uj4.prototype._5n4=function(_425){for(var _zo7 in _425){this._yw5(_zo7, _425[_zo7]);}};_uj4.prototype._hv5=function(_zo7){return this._io3.get(_zo7)||"";};_uj4.prototype._dw2=function(){return _ge9._ls7(this._io3);};_uj4.prototype._bh2=function(){return this._io3;};_uj4.prototype._rl4=function(_083){return _083.map(function(_zo7){ return this.get(_zo7)||""; }, this._io3);};_uj4.prototype._tn8=function(_af4){_af4._io3.forEach(_ge9._qw5, this._io3);};_uj4.prototype.toString=function(){var _n48=_ge9._zn8(this._io3);var _6w4=[];var _bx7=["border-top", "border-bottom", "border-left", "border-right"];for(var i=0;i<_bx7.length;i++){var _fk8=_bx7[i];if(_n48.get( _fk8+"-width" )&&_n48.get( _fk8 + "-style" )&&_n48.get( _fk8 + "-color" ) ){_n48.set( _fk8, _n48.get( _fk8+"-width" ) + " " + _n48.get( _fk8 + "-style" ) + " " + _n48.get( _fk8 + "-color" ) );_n48.delete(_fk8+"-width");_n48.delete(_fk8+"-style");_n48.delete(_fk8+"-color");}}if(_n48.get(_bx7[0])&&_n48.get(_bx7[1])&&_n48.get(_bx7[2])&&_n48.get(_bx7[3])){if((_n48.get(_bx7[0])==_n48.get(_bx7[1]))&&(_n48.get(_bx7[1])==_n48.get(_bx7[2]))&&(_n48.get(_bx7[2])==_n48.get(_bx7[3]))){_n48.set("border", _n48.get(_bx7[0]));_n48.delete(_bx7[0]);_n48.delete(_bx7[1]);_n48.delete(_bx7[2]);_n48.delete(_bx7[3]);}}if(_n48.get( "padding-top" )&&_n48.get( "padding-right" )&&_n48.get( "padding-bottom" )&&_n48.get( "padding-left" ) ){_6w4.push("padding:");_6w4.push(_n48.get("padding-top"));if ((_n48.get( "padding-top" ) != _n48.get( "padding-bottom" ) ) ||( _n48.get( "padding-bottom" ) != _n48.get( "padding-left" ) ) ||( _n48.get( "padding-left" ) != _n48.get( "padding-right" ) ) ){_6w4.push( " " );_6w4.push(_n48.get("padding-right"));_6w4.push( " " );_6w4.push(_n48.get("padding-bottom"));_6w4.push( " " );_6w4.push(_n48.get("padding-left"));}_6w4.push(";");_n48.delete("padding-top");_n48.delete("padding-right");_n48.delete("padding-bottom");_n48.delete("padding-left");}if(_n48.get( "margin-top" )&&_n48.get( "margin-right" )&&_n48.get( "margin-bottom" )&&_n48.get( "margin-left" ) ){_6w4.push("margin:");_6w4.push(_n48.get("margin-top"));if ((_n48.get( "margin-top" ) != _n48.get( "margin-bottom" ) ) ||( _n48.get( "margin-bottom" ) != _n48.get( "margin-left" ) ) ||( _n48.get( "margin-left" ) != _n48.get( "margin-right" ) ) ){_6w4.push( " " );_6w4.push(_n48.get("margin-right"));_6w4.push( " " );_6w4.push(_n48.get("margin-bottom"));_6w4.push( " " );_6w4.push(_n48.get("margin-left"));}_6w4.push(";");_n48.delete("margin-top");_n48.delete("margin-right");_n48.delete("margin-bottom");_n48.delete("margin-left");}var _0j4=_n48.get("text-decoration");if(_0j4){if(_0j4.indexOf("none")!=-1){_n48.set( "text-decoration", "none" );}else{var a=[];if(_0j4.indexOf("underline")!=-1){a.push("underline");}if(_0j4.indexOf("overline")!=-1){a.push("overline");}if(_0j4.indexOf("line-through")!=-1){a.push("line-through");}_n48.set( "text-decoration", a.join( " " ) );}}_n48.forEach(_uj4._ek1, _6w4);if(_109._9e9(_6w4)==";"){_6w4.pop();}return _6w4.join("");};_uj4._ek1=function(_hy8,_zo7){if(_hy8){this.push(_zo7);this.push(":");this.push(_hy8);this.push(";");}};