123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var _90g=new _lcm("_90g");_90g._jnl=0;_90g._21d=1;_90g._11d=2;_90g._dgm=3;_90g._kg={"list": "listControlItems", "table": "tableControlItems", "crosstab": "crosstabControlItems"};_90g._q8={"list": "IDS_EL_list", "crosstab": "IDS_EL_crosstab", "table": "IDS_EL_table"};_90g._ha2={"divHorizontalAlignToolbar": {"left": "_90g_btnToggleAlignLeft","center": "_90g_btnToggleAlignCenter","right": "_90g_btnToggleAlignRight","justify": "_90g_btnToggleAlignJustify" },"divVerticalAlignToolbar": {"top": "_90g_btnToggleAlignTop","middle": "_90g_btnToggleAlignMiddle", "bottom": "_90g_btnToggleAlignBottom" },"divFloatToolbar": {"left": "_90g_btnToggleFloatLeft","normal": "_90g_btnToggleFloatNormal", "right": "_90g_btnToggleFloatRight" }};_90g._9c6="font";_90g._l52="background";_90g._0i4="border";_90g._jgn=function(_u4c,_6wa,_lsn,_22j,_cof){this._9ze=new _lzf();if(_cof){this._lqn=_lsn;this._v6i=_22j;this._9ze._czm(_cof);this._m3n="edit";} else{ this._v6i="";this._lqn="";this._m3n="new"; } this._9ze._067(this._66d.bind(this));this._ufg=_8l8._4uc(); this._4le(_u4c, _6wa);};_90g._src=function(){this._qr5={};this._0in=new _opn("_90g_tabMain", this);this._ccg();this._c83();this._vj7();this._pvh();var _15h=this._53g("MockReport");var _83m=_15h.selectSingleNode("report");var _61j=_7hn._3em(_83m);var d=_erh._bvc(_61j, false, true);this._7sb=d.documentElement;_agm._kl3(this._7sb); this._jue=true;};_90g._5z2=function(){this._npl=false;this._nq4();var _yxg=this._2oh("txtStyleName");_yxg.value=this._v6i;_yxg.onkeyup=function(e){if(e.target.value&&this._rr8(e.target.value)){this._v6i=e.target.value;this._2oh( "txtStyleName" ).classList.remove( "clsInvalidTxtBox" );this._2oh( "divInvalidWarning" ).style.display = "none";}else{this._v6i="";} this._2oh( "btnSave" ).removeAttribute( "disabled" );}.bind(this); this._um6=false;this._sq7=false;this._2oh("chkLockPadding").checked=true;this._2oh("chkLockMargins").checked=true;this._8wh(); this._em7();this._npl=true; this._0in._pie(_90g._jnl); this._rk7();this._yej=false;if(this._m3n==="edit"){this._2oh( "btnSave" ).setAttribute( "disabled", true );} else{this._2oh( "btnSave" ).removeAttribute( "disabled" );} this._2oh( "txtStyleName" ).classList.remove( "clsInvalidTxtBox" );this._2oh( "divInvalidWarning" ).style.display = "none";return true; };_90g._jo9=function(){this._2oh( "_90g_content" ).style.width = this._m56() + "px";};_90g._nq4=function(){this._18a=[];var _d5e=_qkk._qik("CustomFavoritesColorArray");if(_d5e){var _d4f=_d5e.split(";");for(var i=0;i<_d4f.length;i++){if(_d4f[i]){this._18a.push(_d4f[i].split("|")[0]); } }} };_90g._em7=function(){this._l5a();this._093();this._id();this._i01();this._fx3();};_90g._ve4=function(_0k9,_ixf){var _qdi=true;var _tzl=this._ufg.length;for(var i=0;i<_tzl&&_qdi;i++){var _q9n=this._9ze._fsc(this._lq5)||this._ufg[i];_qdi=_4ke._ue4(_q9n, _0k9);if(_qdi&&_ixf){_qdi=_4ke._ui2(_q9n, _0k9, _ixf);}}return _qdi;};_90g._d5a=function(_vdn,_b9l){this._qr5[ _vdn ]=_b9l;};_90g._rr8=function(_22j){return _22j;};_90g._66d=function(){ var _ikn=this._0in._pee();switch(_ikn){case _90g._jnl:this._7o7();break;case _90g._11d:this._nq2();break;case _90g._dgm:this._6v8();this._qm5();break;}this._rq4();if(this._npl){this._yej=true; this._2oh( "btnSave" ).removeAttribute( "disabled" ); } };_90g._o46=function(){if(this._iea){this._iea._fdm();this._iea=null;} };_90g._id7=function(){this._um6=!this._um6; };_90g._hd7=function(){this._sq7=!this._sq7; };_90g._fdm=function(){for(var _hsf in this._qr5){this._qr5[ _hsf ]._fdm();delete this._qr5[ _hsf ];}this._qr5={}; };_90g._pk8=function(_6nn,_ief,_70m){if(this._jue){this._c5d(_70m); }};_90g._c5d=function(_ikn){this._npl=false;switch(_ikn){case _90g._jnl:this._rk7();break;case _90g._21d:this._hv1();break;case _90g._11d:this._fn4();break;case _90g._dgm:this._a5d();break;}this._npl=true;};_90g._pe4=function(_a6k,_gfi){if(this._npl){var _lsn=_a6k._ezm();var _uxm=_gfi.getAttribute("value");switch(_lsn){case "_90g_divFontWeight":this._9ze._g6g("font-weight", _uxm);break;case "_90g_divFontStyle":this._9ze._g6g("font-style", _uxm);break;case "_90g_divOverflow":this._9ze._g6g("overflow", _uxm);break;case "_90g_divClear":this._9ze._g6g("clear", _uxm);break;case "_90g_divFavoriteFontColors":case "_90g_divCommonFontColors":this._1kb(_uxm, _lsn);break;case "_90g_divFavoriteBackgroundColors":case "_90g_divCommonBackgroundColors":this._6o4(_uxm, _lsn);break;case "_90g_divFavoriteBorderColors":case "_90g_divCommonBorderColors":this._vs8(_uxm, _lsn);break;case "_90g_divItemElements":this._9ze._kj8(_uxm);this._em7();this._c5d(this._0in._pee()); break;} } };_90g._yj5=function(_6um){var _atn=_6um.target.nodeName.toUpperCase()==="TD"?_6um.target:_6um.target.parentNode;var _4ic=_atn.getAttribute("roid");if(!this._9ze._yh8(_4ic)){_4ic=_atn.parentNode.cells.item(0).getAttribute("roid");if(_atn.nextSibling===null||_atn.parentNode.cells.item(0).getAttribute( "roid" )==="crosstabRowTotalNodeMember" ){_4ic="crosstabFactTotalCell";}else if(_atn.nextSibling.nextSibling===null||_atn.parentNode.cells.item(0).getAttribute( "roid" )==="crosstabRowSubTotalNodeMember" ){_4ic="crosstabFactSubtotalCell";}else{_4ic="crosstabFactCell";} }this._iea._hwc(_4ic); this._9ze._kj8(_4ic);this._em7();this._c5d(this._0in._pee()); };_90g._g67=function(_ztm,_gfi){if(this._npl){var _lsn=_ztm._ezm();var _uxm=_gfi?_gfi.getAttribute("value"):_ztm._fkl();switch(_lsn){case "_90g_cboFontFamilies":this._kh6(_uxm);break;case "_90g_cboFontSize":this._as8(_uxm);break;case "_90g_cboFontSizeUnit":this._bs8(_uxm);break;case "_90g_cboRelativeAlignment":this._9ze._g6g("vertical-align", _uxm);break;case "_90g_cboLineHeightUnit":this._o91( "txtLineHeight", "line-height", _uxm );break;case "_90g_cboLetterSpacingUnit":this._o91( "txtLetterSpacing", "letter-spacing", _uxm );break;case "_90g_cboTextIndentUnit":this._o91( "txtIndent", "text-indent", _uxm );break;case "_90g_cboWordBreak":this._9ze._g6g("word-break", _uxm);break;case "_90g_cboDirection":this._9ze._g6g("direction", _uxm);break;case "_90g_cboTextDirection":this._9ze._g6g("direction", _uxm);break;case "_90g_cboUnicodeBidi":this._9ze._g6g("unicode-bidi", _uxm);break;case "_90g_cboTextJustify":this._9ze._g6g("text-justify", _uxm);break;case "_90g_cboWritingMode":this._9ze._g6g("writing-mode", _uxm);break;case "_90g_cboWhiteSpace":this._9ze._g6g("white-space", _uxm);break;case "_90g_cboWidthUnit":this._o91( "txtWidth", "width", _uxm ); break;case "_90g_cboHeighthUnit":this._o91( "txtHeight", "height", _uxm ); break;case "_90g_cboBackgroundRepeat":this._9ze._g6g("background-repeat", _uxm);break;case "_90g_cboBackgroundPosition":this._9ze._g6g("background-position", _uxm);break;case "_90g_cboBorderWidth":if(!_gfi){this._qr5[ "cboBorderSizeUnit" ]._qik();}else{this._qr5[ "cboBorderSizeUnit" ]._hwc( "pt" );}break;case "_90g_cboMarginTopSizeUnit":this._o91( "txtMarginTop", "margin-top", _uxm, true );break;case "_90g_cboMarginLeftSizeUnit":this._o91( "txtMarginLeft", "margin-left", _uxm, true );break;case "_90g_cboMarginBottomSizeUnit":this._o91( "txtMarginBottom", "margin-bottom", _uxm, true );break;case "_90g_cboMarginRightSizeUnit":this._o91( "txtMarginRight", "margin-right", _uxm, true );break;case "_90g_cboPaddingTopSizeUnit":this._o91( "txtPaddingTop", "padding-top", _uxm, true );break;case "_90g_cboPaddingLeftSizeUnit":this._o91( "txtPaddingLeft", "padding-left", _uxm, true );break;case "_90g_cboPaddingBottomSizeUnit":this._o91( "txtPaddingBottom", "padding-bottom", _uxm, true ); break;case "_90g_cboPaddingRightSizeUnit":this._o91( "txtPaddingRight", "padding-right", _uxm, true );break; } } };_90g._2p2=function(_wxf,_wya,_trf,_4ug,e){_4qn._yo3(e);var _uxm=this._2oh(_wxf).value;if(_uxm){var _u2j=this._qr5[ _wya ]._qik();if(_4ug&&!this._n83(_trf)){this._1h6(_trf, _uxm, _u2j);}else{this._9ze._g6g(_trf, _uxm+_u2j); }}return true;};_90g._o91=function(_wxf,_trf,_u2j,_4ug){var _uxm=this._2oh(_wxf).value;if(_4ug&&!this._n83(_trf)){this._1h6(_trf, _uxm, _u2j);}else if(_uxm){this._9ze._g6g(_trf, _uxm+_u2j); } };_90g._n83=function(_trf){if(_trf.indexOf("padding-")===0){return this._um6;}else if(_trf.indexOf("margin-")===0){return this._sq7;}return true;};_90g._1h6=function(_trf,_uxm,_u2j){if(_trf.indexOf("padding-")===0){this._2oh("txtPaddingTop").value=_uxm;this._qr5["cboPaddingTopSizeUnit"]._hwc(_u2j);this._2oh("txtPaddingLeft").value=_uxm;this._qr5["cboPaddingLeftSizeUnit"]._hwc(_u2j); this._2oh("txtPaddingBottom").value=_uxm;this._qr5["cboPaddingBottomSizeUnit"]._hwc(_u2j);this._2oh("txtPaddingRight").value=_uxm;this._qr5["cboPaddingRightSizeUnit"]._hwc(_u2j); if(_uxm){this._9ze._6xc( [ "padding-left", "padding-right", "padding-top", "padding-bottom" ], _uxm + _u2j ); } }else if(_trf.indexOf("margin-")===0){this._2oh("txtMarginTop").value=_uxm;this._qr5["cboMarginTopSizeUnit"]._hwc(_u2j); this._2oh("txtMarginLeft").value=_uxm;this._qr5["cboMarginLeftSizeUnit"]._hwc(_u2j); this._2oh("txtMarginBottom").value=_uxm;this._qr5["cboMarginBottomSizeUnit"]._hwc(_u2j); this._2oh("txtMarginRight").value=_uxm;this._qr5["cboMarginRightSizeUnit"]._hwc(_u2j); if(_uxm){this._9ze._6xc( [ "margin-left", "margin-right", "margin-top", "margin-bottom" ], _uxm + _u2j ); }}};_90g._9o2=function(_0k9,_ixf){var _b6n=this._ve4(_0k9, _ixf); var _5tj=this._2oh("PropertySection_"+(_ixf||_0k9));if(_5tj){_5tj.style.display=_b6n?"":"none"; }return _b6n;};_90g._wm4=function(_cfh,_7dk,_0k9,_ixf){var _b6n=this._9o2(_0k9, _ixf);if(_b6n){var _1rn=this._qr5[ _cfh ];var _uxm=this._9ze._13g(_7dk);if(_uxm){_1rn._hwc(_uxm);}else{_1rn._gwc(0);} } };_90g._er8=function(_5xi,_7dk,_0k9,_ixf){var _b6n=this._9o2(_0k9, _ixf); if(_b6n){var _uxm=this._9ze._13g(_7dk);if(_uxm){this._qr5[ _5xi ]._hwc(_uxm);}else{this._qr5[ _5xi ]._f1g(); } } };_90g._l5a=function(_o2j){for(var _0yf in _90g._ha2){for(var _o2j in _90g._ha2[ _0yf ]){this._qr5[ _0yf ]._rje(_90g._ha2[ _0yf ][_o2j ], false);}}};_90g._fg6=function(_o2j,_g8k,_7dk,_25e,_0k9,_ixf){var _b6n=this._9o2(_0k9, _ixf); if(_b6n){var _gbl=this._qr5[ _o2j ];var _uxm=this._9ze._13g(_7dk);_gbl._rje(_g8k, _uxm&&_uxm.indexOf(_25e)!==-1); } };_90g._yi5=function(_7dk,_wxf,_wya,_0k9,_ixf){this._2oh(_wxf).value="";this._qr5[ _wya ]._gwc(0);var _b6n=this._9o2(_0k9, _ixf);if(_b6n){var _uxm=this._9ze._13g(_7dk);if(_uxm){var _msi=new _84j(_uxm);this._2oh(_wxf).value=_msi._197();this._qr5[ _wya ]._hwc(_msi._jkl());}} };_90g._bmb=function(_o2j,_7dk,_uxm){var _ycl=this._9ze._13g(_7dk);var _gbl=this._qr5[ _o2j ];var _g8k;if(_ycl){ this._9ze._6cb(_7dk);_g8k=_90g._ha2[ _o2j ][ _ycl ]; _gbl._rje(_g8k, false);}if(_ycl!==_uxm){this._9ze._g6g(_7dk, _uxm);_g8k=_90g._ha2[ _o2j ][ _uxm ]; _gbl._rje(_g8k, true); }};_90g._ya=function(_4el,_feh,_7dk,_4ug){var _hyl=this._2oh(_4el);_hyl.onkeypress=_4qn._tx;var _e0l=this._2p2.bind(this, _4el, _feh, _7dk, _4ug||false);_hyl.onkeyup=_e0l; _hyl.onchange=_e0l;};_90g._sr8=function(_f1j,_a6k,_1ai){_a6k._bzm();if(_1ai){var _l5h=_a6k._767();_l5h.setAttribute( "html", "<div class=\"clsCCHLCustomColorBox _90g_clsNoBackgroundColor\"></div>" );_l5h.setAttribute( "value", "" );_l5h.setAttribute( "tooltip", _frh._c6j( "IDS_CUSTOM_STYLE_BACKGROUND_NO_FILL" ) );}var _9ri=_a6k._767();_9ri.setAttribute( "tooltip", "#FFFFFF" );_9ri.setAttribute( "value", "#FFFFFF" );_9ri.setAttribute( "html", "<div style=\"background-color: #FFFFFF; border: 1px solid lightgray\" class=\"clsCCHLCustomColorBox\"></div>" );var _ski=_a6k._767();_ski.setAttribute( "tooltip", "#000000" );_ski.setAttribute( "value", "#000000" );_ski.setAttribute( "html", "<div style=\"background-color: #000000\" class=\"clsCCHLCustomColorBox\"></div>" ); _a6k._wfn(); };_90g._2h6=function(_f1j,_a6k){if(this._18a&&this._18a.length){this._2oh(_f1j).style.display=""; _a6k._bzm();for(var i=0;i<this._18a.length;i++){var _mzj=_a6k._767();var _pvm=this._18a[i];_mzj.setAttribute("tooltip", _pvm);_mzj.setAttribute("value", _pvm);_mzj.setAttribute( "html", "<div style=\"background-color: " + _pvm + "\" class=\"clsCCHLCustomColorBox\"></div>" );_mzj.setAttribute("favoritesArrayIndex", i);}_a6k._wfn(); }else{this._2oh(_f1j).style.display="none"; }};_90g._lcj=function(_1jc){this._jvb=_1jc;var _7tf="";switch(this._jvb){case _90g._9c6:_7tf="IDS_LBL_FORECOLOR";break;case _90g._l52:_7tf="IDS_LBL_BACKCOLOR";break;case _90g._0i4:_7tf="IDS_LBL_BORDERCOLOR";break;}_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, this._9ze._13g("color"), _frh._c6j( _7tf ), this, false, false ); };_90g._io9=function(_e5m){if(_e5m._b2g()==="_1zm"){this._nq4();this._2h6( "divFavoriteFontColorsSection", this._qr5[ "divFavoriteFontColors" ] ); this._2h6( "divFavoriteBackgroundColorsSection", this._qr5[ "divFavoriteBackgroundColors" ] ); this._2h6( "divFavoriteBorderColorsSection", this._qr5[ "divFavoriteBorderColors" ] ); var _pvm=_e5m._6ik();switch(this._jvb){case _90g._9c6:this._1kb(_pvm);break;case _90g._l52:this._6o4(_pvm);break;case _90g._0i4:this._vs8(_pvm);break;}}};_90g._o7j=function(){ if(!this._rr8(this._v6i)){this._2oh( "txtStyleName" ).classList.add( "clsInvalidTxtBox" );this._2oh( "divInvalidWarning" ).style.display = "";}else{var _hqf=new _lzf();_hqf._czm(this._9ze);if(this._m3n==="new"){_k9g._chk(this._v6i, _hqf).then(function(_lsn){if(_lsn){this._lqn=_lsn;this._m3n="edit";this._2oh( "btnSave" ).setAttribute( "disabled", true );} }.bind(this)); } else{_k9g._h7g(this._lqn, this._v6i, _hqf);} } this._yej=false;};_90g._6ll=function(){_erh._ybb();this._9ze._1nh(this._ufg);_erh._iee(); };_90g._9jk=function(e){if(this._yej&&this._m3n==="edit"){_2dm._jgn(null, _frh._c6j("IDS_CUSTOM_STYLE_CONFIRM_CLOSE"), null, _2dm._iml, _2dm._ffm,function(){this._o7j(); this._bm8(e); }.bind(this), null,function(){this._bm8(e); }.bind(this)); }else{this._bm8(e); } };_90g._all=function(e){var _qxi=e.target.getAttribute("id");if(_qxi==="_90g_cboFontSize_dropDownText"){_4qn._m95(e);var _uxm=e.target.value;this._as8(_uxm); }};_90g._wph=function(e){var _qxi=e.target.getAttribute("id");if(_qxi==="_90g_cboFontSize_dropDownText"||_qxi==="_90g_cboBorderWidth_dropDownText"){if(e.target.value.length>10){_4qn._w0g(e);} _4qn._tx(e);}else{if(e.keyCode==_4qn._x8j){return;}return this._lb6(e); } };_90g._a7j=function(e){this._1f7(e);};_90g._mol=function(){ this._9ze._czm(this._8ub);this._em7();this._c5d(this._0in._pee()); this._rq4(); };_90g._8wh=function(){ var _t37=this._m3n==="edit"?this._9ze._y66():_k9g._55(this._ufg);var _og3=this._2oh("divStyleableElements");var _30e;if(_t37){var _dwm=_frh._c6j(this._q8[ _t37 ]);this._2oh("spanNodePreview").innerHTML=_dwm;this._2oh("spanNodeElements").innerHTML=_dwm;_og3.style.display="";this._lq5=this._7sb.cloneNode(true).selectSingleNode("layouts/layout/reportPages/page/pageBody/contents/"+_t37);this._9ze._1nh([ this._lq5 ]); var _hei=this._2oh("divPreview");_hei.innerHTML=(new _oc8(this._lq5, true, false, true))._wfn(); var _ozj=this._53g(this._kg[_t37]);_30e=_ozj.selectNodes("./listItems/listItem");this._iea=new _pgk(this._2oh("divItemElements"), _ozj, this);this._iea._gwc(0); this._iea._wfn(); }else{_og3.style.display="none";_30e=null;} if(this._m3n==="new"){this._9ze._7gn(_30e, this._ufg); } this._8ub=new _lzf();this._8ub._czm(this._9ze); };_90g._rq4=function(){if(this._lq5){this._lq5=this._7sb.cloneNode(true).selectSingleNode("layouts/layout/reportPages/page/pageBody/contents/"+this._lq5.nodeName);this._9ze._1nh([ this._lq5 ]);var _hei=this._2oh("divPreview");_hei.innerHTML=(new _oc8(this._lq5, true, false, true))._wfn(); } };_90g._ccg=function(){var _fjd=_r7g._7q9();var _ula=new _jgk(this._2oh("cboFontFamilies"), null, null, this);var _a6k=_ula._o2g(); var _mzj=_a6k._767();_mzj.setAttribute( "label", _frh._c6j( "IDS_CCHL_PROPVAL_DEFAULT" ) );_mzj.setAttribute( "value", "" );_a6k._3fe().style.height="150px";for(var i=0;i<_fjd.length;i++){_mzj=_a6k._767(); var o=_fjd[i];_mzj.setAttribute("label", o._yfm);_mzj.setAttribute("value", o._1gm);}_a6k._wfn(); this._d5a("cboFontFamilies", _ula);var _589=new _jgk( this._2oh( "cboFontSize" ), this._53g( "FontSize" ), null, this );_589._o2g()._3fe().style.height="150px"; this._d5a("cboFontSize", _589);var _vla=new _jgk( this._2oh( "cboFontSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboFontSizeUnit", _vla);var _706=new _pgk(this._2oh("divFontWeight"), this._53g('font-weight'), this);this._d5a("divFontWeight", _706); var _v07=new _pgk(this._2oh("divFontStyle"), this._53g('font-style'), this);this._d5a("divFontStyle", _v07); var _n78=new _pgk( this._2oh( "divFavoriteFontColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divFavoriteFontColors", _n78);var _wva=new _pgk( this._2oh( "divCommonFontColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divCommonFontColors", _wva);var _gw2=new _0jl( this._2oh( "divHorizontalAlignToolbar" ), this._53g( "HorizontalAlignment" ), this );this._d5a("divHorizontalAlignToolbar", _gw2);var _g84=new _0jl( this._2oh( "divVerticalAlignToolbar" ), this._53g( "VerticalAlignment" ), this );this._d5a("divVerticalAlignToolbar", _g84);var _my4=new _jgk(this._2oh("cboRelativeAlignment"), null, _frh._53g('InlineVerticalAlign'), this); this._d5a("cboRelativeAlignment", _my4);this._ya( "txtLineHeight", "cboLineHeightUnit", "line-height" );var _l08=new _jgk(this._2oh("cboLineHeightUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._d5a("cboLineHeightUnit", _l08);this._ya( "txtLetterSpacing", "cboLetterSpacingUnit", "letter-spacing" ); var _ky4=new _jgk(this._2oh("cboLetterSpacingUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this); this._d5a("cboLetterSpacingUnit", _ky4); this._ya( "txtIndent", "cboTextIndentUnit", "text-indent" ); var _m08=new _jgk(this._2oh("cboTextIndentUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._d5a("cboTextIndentUnit", _m08);var _taf=new _jgk(this._2oh("cboWordBreak"), null, this._53g('word-break'), this);this._d5a("cboWordBreak", _taf); var _qaf=new _jgk(this._2oh("cboDirection"), null, this._53g('direction'), this);this._d5a("cboDirection", _qaf);var _789=new _jgk(this._2oh("cboTextDirection"), null, _frh._53g('text-direction'), this);this._d5a("cboTextDirection", _789);var _cxl=new _jgk(this._2oh("cboUnicodeBidi"), null, this._53g('unicode-bidi'), this);this._d5a("cboUnicodeBidi", _cxl); var _689=new _jgk(this._2oh("cboTextJustify"), null, this._53g('text-justify'), this);this._d5a("cboTextJustify", _689); var _w3c=new _jgk(this._2oh("cboWritingMode"), null, this._53g('writing-mode'), this);this._d5a("cboWritingMode", _w3c); var _0pd=new _jgk(this._2oh("cboWhiteSpace"), null, this._53g('white-space'), this);this._d5a("cboWhiteSpace", _0pd); };_90g._093=function(){ this._2h6( "divFavoriteFontColorsSection", this._qr5[ "divFavoriteFontColors" ] ); this._sr8( "divFavoriteFontColorsSection", this._qr5[ "divCommonFontColors" ] ); var _bbf=this._2oh("chkBreakWords");_bbf.onchange=this._9ze._6cb.bind( this._9ze, "word-wrap", "break-word" );var _nd2=this._2oh("divAdvancedTextSection");_nd2.setAttribute("state", "closed");var _ry4=this._2oh("divAdvancedSection");_ry4.style.display="none";var _5yg=this._2oh("chkUnderline");_5yg.onchange=function(){this._9ze._6cb( "text-decoration", "underline" );}.bind(this); var _jfi=this._2oh("chkOverline");_jfi.onchange=function(){this._9ze._6cb( "text-decoration", "overline" );}.bind(this);var _rpd=this._2oh("chkLineThrough");_rpd.onchange=function(){this._9ze._6cb( "text-decoration", "line-through" );}.bind(this);var _oxg=this._2oh("chkLineBreak");_oxg.onchange=this._9ze._6cb.bind( this._9ze, "line-break", "strict" );var _f4c=this._2oh("txtKashidaSpace");_f4c.onkeypress=_4qn._tx;_f4c.onchange=_4qn._5f1; };_90g._rk7=function(){var _yqj=this._ve4("font");this._2oh( "PropertySection_font" ).style.display = _yqj?"":"none";if(_yqj){this._wm4( "cboFontFamilies", "font-family", "font" );var _ewg=this._qr5[ "cboFontSize" ];var _vla=this._qr5[ "cboFontSizeUnit" ]; var _xh9=this._9ze._13g("font-size");if(_xh9){var _msi=new _84j(_xh9);_ewg._hwc(_msi._197());_vla._hwc(_msi._jkl());}else{this._qr5[ "cboFontSize" ]._gwc(0);this._qr5[ "cboFontSizeUnit" ]._hwc( "px" ); } this._wm4( "divFontWeight", "font-weight", "font" ); this._wm4( "divFontStyle", "font-style", "font" );var _l2b=this._9ze._13g("text-decoration");this._2oh( "chkUnderline" ).checked = _l2b.indexOf( "underline" )!==-1?true:false;this._2oh( "chkOverline" ).checked = _l2b.indexOf( "overline" )!==-1?true:false;this._2oh( "chkLineThrough" ).checked = _l2b.indexOf( "line-through" )!==-1?true:false; var _pvm=this._9ze._13g("color");if(_pvm){this._1kb(_pvm); } else{this._2oh( "divCurrentFontColor" ).style.backgroundColor = "black";} } var _63c=this._ve4("text-align");var _pu6=this._ve4("vertical-align");var _ou6=this._ve4("vertical-align_inline");if(!_63c&&!_pu6&&!_ou6){this._2oh( "PropertySection_alignment" ).style.display = "none";}else{this._2oh( "PropertySection_alignment" ).style.display = ""; } this._2oh( "PropertySection_text-align" ).style.display = _63c?"":"none";if(_63c){var _f2j=this._9ze._13g("text-align");if(_f2j){var _gbl=this._qr5[ "divHorizontalAlignToolbar" ]; _gbl._rje(_90g._ha2[ "divHorizontalAlignToolbar" ][ _f2j ], true); }}this._2oh( "PropertySection_vertical-align" ).style.display = _pu6?"":"none"; if(_pu6){var _7oc=this._9ze._13g("vertical-align");if(_7oc){var _gbl=this._qr5[ "divVerticalAlignToolbar" ]; _gbl._rje(_90g._ha2[ "divVerticalAlignToolbar" ][ _7oc ], true); } }this._wm4( "cboRelativeAlignment", "vertical-align", "vertical-align_inline" );var _su2=this._ve4("SpacingAndBreaking");this._2oh( "PropertySection_SpacingAndBreaking" ).style.display = _su2?"":"none";this._yi5( "line-height", "txtLineHeight", "cboLineHeightUnit", "SpacingAndBreaking", "line-height" );this._yi5( "letter-spacing", "txtLetterSpacing", "cboLetterSpacingUnit", "SpacingAndBreaking", "letter-spacing" );this._yi5( "text-indent", "txtIndent", "cboTextIndentUnit", "SpacingAndBreaking", "text-indent" );this._wm4( "cboWordBreak", "word-break", "SpacingAndBreaking", "word-break" ); if(_su2){ var _eod=this._ve4( "SpacingAndBreaking", "word-wrap" );this._2oh( "PropertySection_word-wrap" ).style.display = _eod?"":"none"; if(_eod){var _nfk=this._9ze._13g("word-wrap");var _mwk=_nfk&&_nfk==="break-word";this._2oh("chkBreakWords").checked=_mwk; } } var _xv=this._ve4("TextFlowAndJustification");this._2oh( "PropertySection_TextFlowAndJustification" ).style.display = _xv?"":"none";if(_xv){this._wm4( "cboDirection", "direction", "TextFlowAndJustification", "direction" );this._wm4( "cboTextDirection", "direction", "TextFlowAndJustification", "text-direction" );this._wm4( "cboUnicodeBidi", "unicode-bidi", "TextFlowAndJustification", "unicode-bidi" );this._wm4( "cboTextJustify", "text-justify", "TextFlowAndJustification", "text-justify" );this._wm4( "cboWritingMode", "writing-mode", "TextFlowAndJustification", "writing-mode" );var _508=this._ve4( "TextFlowAndJustification", "text-kashida-space" );this._2oh( "PropertySection_text-kashida-space" ).style.display = _508?"":"none";if(_508){var _f4c=this._2oh("txtKashidaSpace"); var _msi=new _84j(this._9ze._13g("text-kashida-space"));_f4c.value=_msi._qik(); } } var _6la=this._ve4("white-space");this._2oh( "PropertySection_white-space" ).style.display = _6la?"":"none"; if(_6la){this._wm4( "cboWhiteSpace", "white-space", "white-space" ); }var _43c=this._ve4( "SpacingAndBreaking", "line-break" );this._2oh( "PropertySection_line-break" ).style.display = _43c?"":"none";if(_43c){var _2zi=this._9ze._13g("line-break");this._2oh( "chkLineBreak").checked = _2zi&&_2zi==="strict"?true:false;} this._7o7();};_90g._kh6=function(_xfh){this._9ze._g6g("font-family", _xfh); };_90g._as8=function(_kak){if(_kak){var _lak=this._qr5[ "cboFontSizeUnit" ]._qik();this._9ze._g6g("font-size", _kak+_lak); }else{this._9ze._g6g("font-size", null); } };_90g._bs8=function(_lak){var _kak=this._qr5[ "cboFontSize" ]._qik(); this._9ze._g6g("font-size", _kak+_lak);};_90g._1kb=function(_uxm,_o2j){this._9ze._g6g('color', _uxm);var _p89=this._2oh("divCurrentFontColor");if(_uxm===""){_p89.classList.add("clsCCHLEmptyCustomColorBox"); } else{_p89.classList.remove("clsCCHLEmptyCustomColorBox"); }if(_o2j){var _a6k=_o2j==="_90g_divFavoriteFontColors"?this._qr5["divCommonFontColors"]:this._qr5["divFavoriteFontColors"];_a6k._f1g();}_p89.style.backgroundColor=_uxm; };_90g._7o7=function(){var _9cl=this._9ze._unh([ "font-family", "font-size", "font-weight", "font-style", "color", "text-decoration" ]);var _r89=this._2oh("divTextPreview");_r89.style.cssText=_9cl;};_90g._hz3=function(_uxm){this._bmb( "divHorizontalAlignToolbar", "text-align", _uxm );};_90g._km5=function(_uxm){this._bmb( "divVerticalAlignToolbar", "vertical-align", _uxm ); };_90g._cg4=function(){var _nd2=this._2oh("divAdvancedTextSection");var _ry4=this._2oh("divAdvancedSection");var _axm=_nd2.getAttribute("state");if(_axm==="opened"){_nd2.setAttribute( "state", "closed" );_ry4.style.display="none"; }else{_nd2.setAttribute( "state", "opened" );_ry4.style.display=""; _ry4.scrollIntoView(false);} };_90g._c83=function(){ var _saf=new _jgk(this._2oh("cboWidthUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._d5a("cboWidthUnit", _saf); var _zod=new _jgk(this._2oh("cboHeightUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._d5a("cboHeightUnit", _zod); var _388=new _pgk(this._2oh("divOverflow"), this._53g('overflow'), this);this._d5a("divOverflow", _388);var _u5k=new _0jl( this._2oh( "divFloatToolbar" ), this._53g( "Float" ), this );this._d5a("divFloatToolbar", _u5k);var _xec=new _pgk(this._2oh("divClear"), this._53g('clear'), this);this._d5a("divClear", _xec); };_90g._id=function(){ this._ya( "txtWidth", "cboWidthUnit", "width" ); this._ya( "txtHeight", "cboHeightUnit", "height" ); };_90g._hv1=function(){this._yi5( "width", "txtWidth", "cboWidthUnit", "DimensionsAndOverflow", "width" );this._yi5( "height", "txtHeight", "cboHeightUnit", "DimensionsAndOverflow", "height" );this._er8( "divOverflow", "overflow", "DimensionsAndOverflow", "overflow" );var _gdi=this._ve4( "float", "float" );this._2oh( "PropertySection_float" ).style.display = _gdi?"":"none";if(_gdi){var _2wm=this._9ze._13g("float");if(_2wm){var _gbl=this._qr5[ "divFloatToolbar" ]; _gbl._rje(_90g._ha2[ "divFloatToolbar" ][ _2wm ], true); } } this._er8( "divClear", "clear", "float", "clear" );};_90g._neg=function(_uxm){this._bmb( "divFloatToolbar", "float", _uxm ); };_90g._vj7=function(){ var _n78=new _pgk( this._2oh( "divFavoriteBackgroundColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divFavoriteBackgroundColors", _n78); var _ll=new _pgk( this._2oh( "divCommonBackgroundColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divCommonBackgroundColors", _ll); var _xv5=new _jgk( this._2oh( "cboBackgroundRepeat" ), null, this._53g( "repeat" ), this ); this._d5a("cboBackgroundRepeat", _xv5);var _f54=new _jgk( this._2oh( "cboBackgroundPosition" ), null, this._53g( "backgroundPosition" ), this ); this._d5a("cboBackgroundPosition", _f54); };_90g._i01=function(){ var _b6n=this._ve4( "background-color" )||this._ve4( "background-image" );this._0in._dxc(_90g._11d, _b6n);if(_b6n){this._2h6( "divFavoriteBackgroundColorsSection", this._qr5[ "divFavoriteBackgroundColors" ] ); this._sr8( "divFavoriteBackgroundColorsSection", this._qr5[ "divCommonBackgroundColors" ], true );}};_90g._fn4=function(){ var _wka=this._ve4("background-color"); if(_wka){this._2oh( "PropertySection_background-color" ).style.display = "";this._6o4(this._9ze._13g("background-color")); }else{this._2oh( "PropertySection_background" ).style.display = "none"; } var _xx4=this._ve4("background-image");if(_xx4){this._2oh( "PropertySection_background-image" ).style.display = ""; var _s25=this._x63();this._zn7(_s25);this._wm4( "cboBackgroundRepeat", "background-repeat" ); this._wm4( "cboBackgroundPosition", "f-position" ); }else{this._2oh( "PropertySection_background-image" ).style.display = "none"; }this._nq2();};_90g._zn7=function(_apn){var _9ak, _aak;if(_apn){_9ak=_apn.split('/').pop();_aak=_apn.substring(0, _apn.indexOf(_9ak));}else{_9ak="";_aak=""; }this._2oh("divImageName").innerHTML=_9ak;this._2oh("divImagePath").innerHTML=_aak;this._2oh( "divBackgroundImageDetailsSection" ).style.display = ( _9ak==="" )?"none":""; var _zwk=_9ak!=="";this._qr5[ "cboBackgroundRepeat" ]._mqh(_zwk);this._qr5[ "cboBackgroundPosition" ]._mqh(_zwk); };_90g._x63=function(){var _cpn=""; var _ih9=this._9ze._13g("background-image");if(_ih9){var re=/url\((.*)\)/;if(re.test(_ih9)){_cpn=RegExp.$1;}}return _cpn;};_90g._71n=function(_uxm){ if(_o0n._9ph(_uxm)||_o0n._km8[_uxm]){var _9on=_o0n._km8[_uxm]||_uxm;return _o0n._k12(_9on.substr(1, _9on.length));}else if(_uxm.indexOf("rgb(")!==-1){var _rin=_uxm.match(/\d+/g); return {"red": _rin[0],"green": _rin[1], "blue": _rin[2]};}return null;};_90g._6o4=function(_uxm,_o2j){ this._9ze._g6g("background-color", _uxm);var _7w5=this._2oh("divCurrentBackgroundColor");_7w5.style.backgroundColor=_uxm; if(!_uxm){_7w5.classList.add("_90g_clsNoBackgroundColor");}else{_7w5.classList.remove("_90g_clsNoBackgroundColor");}if(_o2j){var _a6k=_o2j==="_90g_divFavoriteBackgroundColors"?this._qr5["divCommonBackgroundColors"]:this._qr5["divFavoriteBackgroundColors"];_a6k._f1g();} };_90g._9ag=function(){var _3en=this._x63();_8fm._vqh( "_3zm", "_7y", _3en, this._76g.bind( this ) ); };_90g._76g=function(){var _apn=_3zm._zdm();_apn=_apn.replace(/\\/g, '/'); this._zn7(_apn);_apn=( _apn&&!_u0n._6s9( _apn))?( "url(" + _apn + ")" ):"";this._9ze._g6g("background-image", _apn);};_90g._mdg=function(){this._9ze._g6g("background-image", null);this._zn7(""); };_90g._nq2=function(){var _9cl=this._9ze._unh([ "background-color", "background-image", "background-repeat", "background-position" ]);var _ng3=this._2oh("divBackgroundPreview");var _e1c=_9cl.indexOf("background-color")!==-1;var _ou5=_9cl.indexOf("background-image")!==-1;if(_e1c||_ou5){_ng3.classList.remove("_90g_clsNoBackgroundColor"); }else{_ng3.classList.add("_90g_clsNoBackgroundColor"); }_ng3.style.cssText=_9cl;};_90g._pvh=function(){var _ozj=_3gm._4i2(_frh._53g('CCHL_border-style'));var _yv5=new _jgk(this._2oh("cboBorderStyle"), null, _ozj, this); this._d5a("cboBorderStyle", _yv5);_ozj=_3gm._5i2(this._53g('BorderWidth_LV')); var _zv5=new _jgk(this._2oh("cboBorderWidth"), this._53g('BorderWidth'), _ozj, this); var _g4m=_zv5._o2g()._tfe();for(var _5qm=0;_5qm<_g4m.length;++_5qm){var _mzj=_g4m.item(_5qm);var _28k=_mzj.getAttribute("altValue");if(_28k){_mzj.setAttribute("value", _28k);} } this._d5a("cboBorderWidth", _zv5);var _k08=new _jgk( this._2oh( "cboBorderSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboBorderSizeUnit", _k08); var _n78=new _pgk( this._2oh( "divFavoriteBorderColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divFavoriteBorderColors", _n78); var _wva=new _pgk( this._2oh( "divCommonBorderColors" ), this._53g( "FavoriteColors" ), this );this._d5a("divCommonBorderColors", _wva); var _h54=new _jgk( this._2oh( "cboPaddingTopSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboPaddingTopSizeUnit", _h54); var _jd2=new _jgk( this._2oh( "cboPaddingBottomSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboPaddingBottomSizeUnit", _jd2); var _ig3=new _jgk( this._2oh( "cboPaddingLeftSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboPaddingLeftSizeUnit", _ig3); var _1v2=new _jgk( this._2oh( "cboPaddingRightSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboPaddingRightSizeUnit", _1v2); var _ly4=new _jgk( this._2oh( "cboMarginTopSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboMarginTopSizeUnit", _ly4); var _0v2=new _jgk( this._2oh( "cboMarginBottomSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboMarginBottomSizeUnit", _0v2); var _g54=new _jgk( this._2oh( "cboMarginLeftSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboMarginLeftSizeUnit", _g54); var _hg3=new _jgk( this._2oh( "cboMarginRightSizeUnit" ), null, _frh._53g( "CCHL_CSSLengthUnits" ), this ); this._d5a("cboMarginRightSizeUnit", _hg3); var _4ei=new _jgk(this._2oh("cboBoxType"), null, _frh._53g('display'), this); this._d5a("cboBoxType", _4ei); this._vs8("black"); this._qr5[ "cboBorderStyle" ]._hwc( "solid" );this._qr5[ "cboBorderWidth" ]._hwc( "1" );this._qr5[ "cboBorderSizeUnit" ]._hwc( "pt" ); };_90g._fx3=function(){ var _b6n=this._ve4( "border" )||this._ve4( "margin" )||this._ve4( "padding" )||this._ve4( "display" ) ;this._0in._dxc(_90g._dgm, _b6n); if(_b6n){this._2h6( "divFavoriteBorderColorsSection", this._qr5[ "divFavoriteBorderColors" ] );this._sr8( "divCommonBorderColors", this._qr5[ "divCommonBorderColors" ] );this._ya( "txtMarginTop", "cboMarginTopSizeUnit", "margin-top", true ); this._ya( "txtMarginLeft", "cboMarginLeftSizeUnit", "margin-left", true ); this._ya( "txtMarginBottom", "cboMarginBottomSizeUnit", "margin-bottom", true ); this._ya( "txtMarginRight", "cboMarginRightSizeUnit", "margin-right", true ); this._ya( "txtPaddingTop", "cboPaddingTopSizeUnit", "padding-top", true ); this._ya( "txtPaddingLeft", "cboPaddingLeftSizeUnit", "padding-left", true ); this._ya( "txtPaddingBottom", "cboPaddingBottomSizeUnit", "padding-bottom", true ); this._ya( "txtPaddingRight", "cboPaddingRightSizeUnit", "padding-right", true ); }};_90g._a5d=function(){this._2oh( "PropertySection_border" ).style.display = this._ve4( "border" )?"":"none"; var _nvg=this._ve4("margin");this._2oh( "PropertySection_margin" ).style.display = _nvg?"":"none"; this._yi5( "margin-top", "txtMarginTop", "cboMarginTopSizeUnit", "margin" );this._yi5( "margin-left", "txtMarginLeft", "cboMarginLeftSizeUnit", "margin" );this._yi5( "margin-bottom", "txtMarginBottom", "cboMarginBottomSizeUnit", "margin" );this._yi5( "margin-right", "txtMarginRight", "cboMarginRightSizeUnit", "margin" ); var _1af=this._ve4("padding");this._2oh( "PropertySection_padding" ).style.display = _1af?"":"none"; this._yi5( "padding-top", "txtPaddingTop", "cboPaddingTopSizeUnit", "padding" );this._yi5( "padding-left", "txtPaddingLeft", "cboPaddingLeftSizeUnit", "padding" );this._yi5( "padding-bottom", "txtPaddingBottom", "cboPaddingBottomSizeUnit", "padding" );this._yi5( "padding-right", "txtPaddingRight", "cboPaddingRightSizeUnit", "padding" ); this._wm4( "cboBoxType", "display", "display" ); this._qm5(); this._6v8(); };_90g._vs8=function(_uxm,_o2j){var _7v6=this._2oh("divCurrentBorderColor");_7v6.classList.remove("clsCCHLEmptyCustomColorBox");_7v6.style.backgroundColor=_uxm; _7v6.setAttribute("currentColor", _uxm);if(_o2j){var _a6k=_o2j==="_90g_divFavoriteBorderColors"?this._qr5["divCommonBorderColors"]:this._qr5["divFavoriteBorderColors"];_a6k._f1g();} };_90g._ycj=function(_wbk){if(_wbk==="none"){this._9ze._pde();}else{var _krf=this._qr5[ "cboBorderWidth" ]._qik();if(_krf){_krf=_krf+this._qr5[ "cboBorderSizeUnit" ]._qik();var _jrf=this._qr5[ "cboBorderStyle" ]._qik();var _hrf=this._2oh( "divCurrentBorderColor" ).getAttribute("currentColor")||""; if(_wbk==="all"){this._9ze._iqh(_krf, _jrf, _hrf);}else{ this._9ze._g6g( "border-" + _wbk + "-width", _krf );this._9ze._g6g( "border-" + _wbk + "-style", _jrf ); this._9ze._g6g( "border-" + _wbk + "-color", _hrf );} } } };_90g._qm5=function(){var _9cl=this._9ze._unh(["border-top-width", "border-top-style", "border-top-color", "border-left-width", "border-left-style", "border-left-color","border-bottom-width", "border-bottom-style", "border-bottom-color", "border-right-width", "border-right-style", "border-right-color"]);var _9v6=this._2oh("divBorderPreview");_9v6.style.cssText=_9cl; };_90g._6v8=function(){this._2oh( "divMarginTop" ).innerHTML = this._t72( "txtMarginTop", "cboMarginTopSizeUnit" ); this._2oh( "divMarginLeft" ).innerHTML = this._t72( "txtMarginLeft", "cboMarginLeftSizeUnit" ); this._2oh( "divMarginRight" ).innerHTML = this._t72( "txtMarginRight", "cboMarginRightSizeUnit" ); this._2oh( "divMarginBottom" ).innerHTML = this._t72( "txtMarginBottom", "cboMarginBottomSizeUnit" ); var _9v6=this._2oh("divBorderPreview");var _krf=_9v6.style.borderWidth||"-";this._2oh("divBorderTop").innerHTML=_9v6.style.borderTopWidth||_krf;this._2oh("divBorderLeft").innerHTML=_9v6.style.borderLeftWidth||_krf;this._2oh("divBorderRight").innerHTML=_9v6.style.borderRightWidth||_krf;this._2oh("divBorderBottom").innerHTML=_9v6.style.borderBottomWidth||_krf;this._2oh( "divPaddingTop" ).innerHTML = this._t72( "txtPaddingTop", "cboPaddingTopSizeUnit" ); this._2oh( "divPaddingLeft" ).innerHTML = this._t72( "txtPaddingLeft", "cboPaddingLeftSizeUnit" ); this._2oh( "divPaddingRight" ).innerHTML = this._t72( "txtPaddingRight", "cboPaddingRightSizeUnit" ); this._2oh( "divPaddingBottom" ).innerHTML = this._t72( "txtPaddingBottom", "cboPaddingBottomSizeUnit" ); this._rq4();};_90g._t72=function(_4el,_wya){var _uxm=this._2oh(_4el).value;if(_uxm){return _uxm+this._qr5[ _wya ]._qik();}return "-";};
|