1 2try{(function(){ 3 i$.merge({ 4 "ICON_STOP":"msgError", 5 "ICON_SUCCESS":"msgSuccess", 6 "BUTTON_RETRY":"Retry", 7 "BUTTON_YES":"Yes", 8 "BUTTON_NO":"No", 9 "BUTTON_IGNORE":"Ignore", 10 "LINK_LEARN_MORE":"Learn More", 11 "ICON_WARNING":"msgWarning", 12 "ICON_INFORMATION":"msgInfo", 13 "LOADING_IMAGE_0":"loading image", 14 "BUTTON_ABORT":"Abort", 15 "ICON_EXCLAMATION":"msgWarning", 16 "BUTTON_CANCEL":"Cancel", 17 "BUTTON_CONTINUE":"Continue", 18 "BUTTON_OK":"Ok", 19 "BUTTON_TRY":"Try Again", 20 "LOADING_0":"Loading...", 21 "ICON_ASTERISK":"msgInfo", 22 "ICON_ERROR":"msgError", 23 "CLOSE_IMAGE_0":"close image", 24 "CLOSE_0":"Close" 25},i$.fromPath("wpModules.dialog.nls",true)); 26})(); 27}catch(e){console.log("Module 'wp_dialog_main': ",e);} 28try{(function(){ 29if(!i$.isIE){ 30i$.addOnLoad(function(){ 31var _1=document.createElement("div"); 32_1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");"; 33document.body.appendChild(_1); 34var _2=null; 35try{ 36_2=document.defaultView.getComputedStyle(_1,""); 37} 38catch(e){ 39_2=_1.currentStyle; 40} 41if(_2){ 42var _3=_2.backgroundImage; 43if((_2.borderTopColor==_2.borderRightColor)||(_3!=null&&(_3=="none"||_3=="url(invalid-url:)"))){ 44document.getElementsByTagName("body")[0].className+=" a11yHighContrast"; 45} 46document.body.removeChild(_1); 47} 48}); 49} 50})(); 51 52 53}catch(e){console.log("Module 'wp_high_contrast': ",e);} 54try{(function(_1){ 55var _1=_1,_2=_1.document,_3=i$.hasClass,_4=i$.toQuery,_5=i$.fromPath,_6=i$.forEach,_7="edit",_8="info",_9="toolbar:open",_a="toolbar:close",_b="ibm.portal.toolbar.",_c=function(_d){ 56var _d=_e(_d),_f=_10(_d),uri=_f.uri,_11=_f.params||{},_12=_13(_d); 57if(uri){ 58if(_14()&&!_15(_12)){ 59if(_d.editMode===true){ 60_16(uri,_11); 61}else{ 62_17(uri,_11); 63} 64}else{ 65_18(uri,_11,_12); 66} 67}else{ 68if(_14()){ 69if(_15(_12)){ 70_19(_12); 71} 72}else{ 73_18(uri,_11,_12); 74} 75} 76},_1a=function(_1b){ 77_1b.primaryTab=_1b.tab; 78_1b.tab=null; 79return _c(_1b); 80},_1c=function(_1d){ 81_1d.secondaryTab=_1d.tab; 82_1d.tab=null; 83return _c(_1d); 84},_1e=function(_1f){ 85var _20=_21(); 86if(_20){ 87_20.close(_1f); 88}else{ 89_1f(); 90} 91},_22=function(_23){ 92_1e(function(){ 93_24(_23); 94}); 95},_24=function(_25){ 96var _26=_10(_25),uri=_26.uri,_27=_26.params||{}; 97if(_14()){ 98if(uri){ 99if(!_27.uri){ 100_27.uri=[]; 101} 102_27.uri.push(_a); 103}else{ 104uri=_a; 105} 106} 107if(uri){ 108_28(_29(),uri,_27,function(url){ 109_2a().location.href=url; 110}); 111} 112},_14=function(){ 113var r=_21(); 114return r; 115},_2b=function(_2c,_2d){ 116var uri=_2e(_2c,_2d); 117if(_2c==_7&&_2d&&_14()){ 118_16(uri); 119}else{ 120_17(uri); 121} 122},_2e=function(_2f,_30){ 123var uri=["pagemode:"]; 124uri.push(_2f); 125uri.push(":"); 126_30?uri.push("on"):uri.push("off"); 127var r=uri.join(""); 128return r; 129},_31=function(_32){ 130_2b(_7,_32); 131},_33=function(){ 132var r=_34(_7); 133return r; 134},_35=function(_36){ 135_2b(_8,_36); 136},_37=function(){ 137var r=_34(_8); 138return r; 139},_34=function(_38){ 140var win=_29(),_39=win.document.body,r=_3(_39,_38+"-mode"); 141return r; 142},_3a=function(_3b,_3c){ 143var r=false; 144if(_3c!==undefined){ 145r=_3c!==_34(_3b); 146} 147return r; 148},_17=function(uri,_3d){ 149var win=_29(); 150_28(win,uri,_3d,function(url){ 151win.location.href=url; 152}); 153},_16=function(uri,_3e){ 154if(_14()){ 155var _3f=_21(); 156_3f.load(_40(uri,_3e),"view",{"onload":function(){ 157_3f.restore(); 158}}); 159}else{ 160var win=_29(); 161_28(win,uri,_3e,function(url){ 162win.location.href=url; 163}); 164} 165},_41=function(_42){ 166_29().location.reload(_42); 167},_10=function(_43){ 168var r={}; 169if(_43){ 170var uri=null,_44={},_45=_43.editMode,_46=_43.infoMode; 171if(_3a(_7,_45)){ 172uri=_2e(_7,_45); 173} 174if(_3a(_8,_46)){ 175var _47=_2e(_8,_46); 176if(uri){ 177_44.uri=[_47]; 178}else{ 179uri=_47; 180} 181} 182if(uri){ 183r.uri=uri; 184r.params=_44; 185} 186} 187return r; 188},_40=function(uri,_48){ 189var _49={"uri":uri}; 190if(_48){ 191_49.params=_48; 192} 193return _49; 194},_e=function(_4a){ 195if(_14()){ 196_4a.autoOpenDefaultTabs=false; 197} 198return _4a; 199},_19=function(_4b){ 200if(_4b&&_15(_4b)){ 201var _4c=_21(); 202if(_4c){ 203var p=_4b.primaryURI,_4d={},_4e=_4b.onCloseDialog; 204if(_4e&&_4e.id){ 205_4d.onCloseDialog=function(_4f){ 206_50(_4f,_4e.id,_4e.key); 207}; 208} 209if(p){ 210_4c.load(_40(p),"primary",_4d); 211} 212var s=_4b.secondaryURI; 213if(s){ 214_4c.load(_40(s),"secondary",_4d); 215} 216} 217} 218},_50=function(_51,id,key){ 219var _52=_51,id=id,key=key||"onCloseDialog"; 220_53(function(w){ 221try{ 222var d=w.document; 223if(d){ 224var n=d.getElementById(id); 225if(n){ 226var f=n[key]; 227if(f){ 228f.call(n,_51); 229} 230} 231} 232} 233catch(e){ 234} 235}); 236},_18=function(uri,_54,_55){
237if(uri){ 238if(!_54){ 239_54={}; 240} 241if(!_54.uri){ 242_54.uri=[]; 243} 244_54.uri.push(_9); 245}else{ 246uri=_9; 247} 248if(_55&&_15(_55)){ 249if(!_54){ 250_54={}; 251} 252var p=_55.primaryURI; 253if(p){ 254_54.primaryTabURI=[p]; 255} 256var s=_55.secondaryURI; 257if(s){ 258_54.secondaryTabURI=[s]; 259} 260} 261_28(_29(),uri,_54,function(url){ 262_2a().location.href=url; 263}); 264},_13=function(_56){ 265var r={}; 266if(_56){ 267if(_56.tab||_56.primaryTab||_56.secondaryTab){ 268var _57=_56.secondaryTab||_56.tab; 269if(_57){ 270r.secondaryURI=_58(_57); 271} 272var _59=_56.primaryTab; 273if(_59){ 274r.primaryURI=_58(_59); 275} 276} 277r.onCloseDialog=_56.onCloseDialog; 278var _5a=_56.autoOpenDefaultTabs; 279if(_5a){ 280if(!r.primaryURI){ 281r.primaryURI="default"; 282} 283if(!r.secondaryURI){ 284r.secondaryURI="default"; 285} 286} 287} 288return r; 289},_58=function(t){ 290if(t.indexOf(_b)==0||t.indexOf("Z6_")==0){ 291return "nm:oid:"+t; 292}else{ 293return t; 294} 295},_15=function(_5b){ 296var r=_5b&&(_5b.primaryURI||_5b.secondaryURI); 297return r; 298},_28=function(win,uri,_5c,cb){ 299_5d(win).then(function(url){ 300var _5e=url,buf=[]; 301buf.push(_5e); 302if(_5e.indexOf("?")<0){ 303buf.push("?"); 304}else{ 305buf.push("&"); 306} 307buf.push("uri="); 308buf.push(uri); 309if(_5c){ 310buf.push("&"); 311buf.push(_4(_5c)); 312} 313var r=buf.join(""); 314cb(r); 315}); 316},_5d=function(win){ 317var r=wpModules.theme.WindowUtils.findBaseURL(win); 318return r; 319},_5f=function(win){ 320var r=wpModules.theme.WindowUtils.getBaseURL(win); 321return r; 322},_29=function(){ 323var wu=wpModules.theme.WindowUtils,r=(wu&&wu.getWindow(wu.VIEW_AREA))||_1; 324return r; 325},_53=function(cb){ 326var _60=_2a(),_61=_60.frames; 327cb.call(this,_60); 328if(_61&&_61.length>0){ 329_6(_61,function(f){ 330cb.call(this,f.window); 331}); 332} 333},_2a=function(){ 334var win=_29(),r=(win.parent||win); 335return r; 336},_21=function(){ 337var r=_5("wpModules.toolbar.NavigationController",false,_2a()); 338return r; 339},_62=_5("wpModules.toolbar",true); 340_62.openToolbar=_c; 341_62.openPrimaryTab=_1a; 342_62.openSecondaryTab=_1c; 343_62.closeTab=_1e; 344_62.closeToolbar=_22; 345_62.isToolbarOpened=_14; 346_62.setEditModeActive=_31; 347_62.isEditModeActive=_33; 348_62.setInfoModeActive=_35; 349_62.isInfoModeActive=_37; 350_62.loadViewArea=_17; 351_62.reloadViewArea=_41; 352_62.getViewAreaWindow=_29; 353_62.getToolbarMasterWindow=_2a; 354_62.getBaseURL=_5f; 355})(window); 356 357 358}catch(e){console.log("Module 'wp_toolbar_utils': ",e);} 359try{(function(){ 360var _1=i$.addClass,_2=i$.hasClass,_3=i$.removeClass,_4=i$.fromPath,ln=function(o){ 361return o.length; 362},_5="edit-mode",_6="edit-mode-disabled",_7="help-mode",_8="info-mode",_9="toolbar-opened",_a="toolbar-closed",_b=_4("wpModules.state.page"); 363if(_b){ 364var _c=_b.getStateManager(); 365_c&&_c.getState().then(function(_d){ 366var _e=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"pageMode"}),_f=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"showTools"}),_10=document.body; 367_3(_10,_5); 368_3(_10,_6); 369_3(_10,_8); 370_3(_10,_7); 371if(_e&&ln(_e)>0&&_e[0].value&&ln(_e[0].value)>0){ 372var _11=_e[0].value; 373for(var i=0;i<ln(_11);++i){ 374var _12=_11[i]; 375if("EDIT"==_12){ 376if(wpModules.state.page.supportsEditMode){ 377_1(_10,_5); 378}else{ 379_1(_10,_6); 380} 381}else{ 382if("INFO"==_12){ 383_1(_10,_8); 384}else{ 385if("HELP"==_12){ 386_1(_10,_7); 387} 388} 389} 390} 391} 392if(_f&&ln(_f)>0&&_f[0].value&&ln(_f[0].value)>0){ 393var _13=_f[0].value[0]; 394if("true"==_13){ 395_1(_10,_9); 396}else{ 397_1(_10,_a); 398} 399}else{ 400_1(_10,_a); 401} 402}); 403} 404})(); 405 406 407}catch(e){console.log("Module 'wp_state_page_modes': ",e);} 408try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved. **/ 409(function(){ 410function _1(_2){ 411var _3=window,_4=_2.metadata; 412if(_4&&_4._contributionWindow){ 413return _4._contributionWindow; 414} 415if(_4&&_4.contributor){ 416var _5=_4.contributor,_6=_5.lastIndexOf(":"),_7=_5.substr(_6+1),_8=i$.fromPath("wpModules.theme.WindowUtils"); 417if(_8){ 418_3=_8.getWindow(_7); 419} 420} 421if(!_4){ 422_4=_2.metadata={}; 423} 424_4._contributionWindow=_3; 425return _3; 426}; 427var _9={getWindow:function(_a){ 428var _b=(_a.metadata&&_a.metadata.actionUrlTarget)||"same",_c,wu=wpModules.theme.WindowUtils; 429_c=_1(_a); 430if(_b=="view"){ 431_c=wu&&wu.getWindow(wu.VIEW_AREA); 432}else{ 433if(_b=="master"){ 434_c=wu&&wu.getWindow(wu.MASTER); 435} 436} 437return _c||window; 438}}; 439var _d={getWindow:function(_e){ 440return _1(_e); 441}}; 442i$.toPath("wptheme.contextMenu.extension.actionUrlTarget",_9); 443i$.toPath("wptheme.contextMenu.extension.menuItemScope",_d); 444var _f={templates:{anchor:"<span class=\"wpthemeMenuBadgeAnchor\"></span>",loading:"<span class=\"wpthemeMenuLoading wpthemeTemplateLoading\"></span>",badge_info:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeInfo\" aria-live=\"polite\">${count}</span>",badge_warn:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeWarn\" aria-live=\"polite\">${count}</span>",badge_error:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeError\" aria-live=\"polite\">${count}</span>"},getAnchor:function(_10){ 445var md=(_10)?_10.metadata:null; 446return (md&&(md.badgeUrl||md.badgeData))?_f.templates.anchor:""; 447},injectBadge:function(_11,_12){ 448var _13=(_12)?_12:_11._menuitem,md=(_13)?_13.metadata:null; 449if(md&&(md.badgeUrl||md.badgeData)){ 450var _14=_f._findNode(_11,"wpthemeMenuBadgeAnchor"); 451if(_14){ 452if(md.badgeUrl){ 453var _15,_16=md.badgeUrl,_17=ibmCfg.portalConfig.contentHandlerURI; 454if(_16.indexOf("?")==0){ 455_15=_17+((_17.indexOf("?")<0)?"?":"&")+_16.substring(1); 456}else{ 457_15=_16; 458} 459var tmp=i$.createDom("div"); 460tmp.innerHTML=_f.templates.loading; 461_14.appendChild(tmp.firstChild); 462i$.xhrGet({url:_15,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_18){ 463_f._insertBadge(_18.data,md.badgeTitle,_14); 464},function(_19){ 465while(_14.firstChild){ 466_14.removeChild(_14.firstChild); 467} 468}); 469}else{ 470_f._insertBadge(md.badgeData,md.badgeTitle,_14); 471} 472} 473} 474},_insertBadge:function(_1a,_1b,_1c){ 475while(_1c.firstChild){ 476_1c.removeChild(_1c.firstChild); 477} 478if(_1a&&_1a.count>0){ 479var tmp=i$.createDom("div"); 480if(_1a.level=="error"){ 481tmp.innerHTML=_f.templates.badge_error.replace(/\$\{count\}/g,_1a.count); 482}else{ 483if(_1a.level=="warn"){ 484tmp.innerHTML=_f.templates.badge_warn.replace(/\$\{count\}/g,_1a.count); 485}else{ 486tmp.innerHTML=_f.templates.badge_info.replace(/\$\{count\}/g,_1a.count); 487} 488} 489if(_1b){ 490tmp.firstChild.setAttribute("title",_1b); 491tmp.firstChild.setAttribute("aria-label",_1b); 492} 493_1c.appendChild(tmp.firstChild); 494} 495},_findNode:function(_1d,_1e){ 496var _1f,i,_20; 497var _21=function(_22,_23){ 498for(i=_22.childNodes.length-1;i>=0;i--){ 499_20=_22.childNodes[i]; 500if(i$.hasClass(_20,_1e)){ 501_1f=_20; 502continue; 503} 504if(_20.childNodes){ 505i=_21(_20,i); 506} 507} 508return _23; 509}; 510_21(_1d); 511return _1f; 512}}; 513i$.toPath("wptheme.contextMenu.extension.badge",_f); 514})(); 515 516 517}catch(e){console.log("Module 'wp_simple_contextmenu_ext': ",e);} 518try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved. **/ 519(function(){ 520var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}",_2=false,_3="Separator",_4="Header",_5=function(){ 521var _6=i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode"); 522return _6; 523},_7=i$.fromPath("wptheme",true),_8=i$.fromPath("wptheme.contextMenu",true),_9=i$.fromPath("wptheme.contextMenu.extension",true); 524i$.mash(_7,{getWindowIDFromSkin:function(_a){ 525while((_a=_a.parentNode)!=null){ 526if(i$.hasClass(_a,"component-control")){ 527var m=_a&&(_a.className||"").match(/id-([\S]+)/); 528var _b=m&&m[1]; 529return _b; 530} 531} 532return null; 533},getPortletState:function(_c){ 534var _d=i$.byId("portletState"); 535var _e={}; 536if(_d){ 537if(!_d._cache){ 538_d._cache=i$.fromJson(_d.innerHTML); 539_d._cache._defaults={"windowState":"normal","portletMode":"view"}; 540} 541if(_d._cache[_c]){ 542_e=_d._cache[_c]; 543}else{ 544_e=_d._cache._defaults; 545} 546} 547return _e; 548},isValidOp:function(_f){ 549if(_f.visibility===false){ 550return false;
551} 552var _10=_f.metadata||{}; 553switch(_f.id){ 554case "ibm.portal.operations.changePortletMode": 555var _11=_7.getPortletState(_10.wid).portletMode!=_10.portletMode; 556return _11; 557case "ibm.portal.operations.changeWindowState": 558var _11=_7.getPortletState(_10.wid).windowState!=_10.windowState; 559return _11; 560default: 561} 562return true; 563},operation:{changeToHelpMode:function(_12){ 564var _13=window.location.href; 565if(_12.actionUrl){ 566if(_12.actionUrl.indexOf("?")==0){ 567var _14=_13.indexOf("#"); 568if(_14!=-1){ 569var _15=_13.substring(0,_14); 570var _16=_13.substring(_14); 571_13=_15+(_15.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1); 572_13+=_16; 573}else{ 574_13+=(_13.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1); 575} 576}else{ 577_13=_12.actionUrl; 578} 579} 580window.open(_13,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10"); 581}},canImpersonate:function(){ 582return ibmCfg.portalConfig.canImpersonate; 583}}); 584i$.mash(_8,{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading",complementaryContent:"wpthemeComplementaryContent",menuOverlay:"wpthemeMenuOverlay",alignLeft:"wpthemeMenuLeft",alignRight:"wpthemeMenuRight",noTouch:"wpthemeNoTouch"},init:function(){ 585var _17; 586if(arguments.length==1){ 587_17=arguments[0]; 588}else{ 589_17={node:arguments[0],menuId:arguments[1],jsonQuery:(arguments.length>2)?arguments[2]:null}; 590} 591this.init2(_17); 592},init2:function(_18){ 593var _19=_18.node; 594_18.params=_18.params||{}; 595var _1a=_18.params.autoScroll!==false; 596_19._contextMenu=_19._contextMenu||{}; 597var _1b=_19._contextMenu; 598_1b.id=_19._contextMenu.id||_19.getAttribute("id")||Math.round(Math.random()*1000000000);
599_19.setAttribute("id",_1b.id); 600_1b.menuId=_18.menuId; 601_1b.jsonQuery=_18.jsonQuery; 602_1b.templateId=_18.params.templateId||null; 603_1b.alignLeft=(_18.params.alignment=="left")||false; 604_1b.alignRight=(_18.params.alignment=="right")||false; 605_1b.touchDevice=(com_ibm_device_class.indexOf("tablet")!=-1)||(com_ibm_device_class.indexOf("smartphone")!=-1); 606_1b.closeFn=function(_1c,evt){ 607var fn=_18.onClose; 608if(fn){ 609if(i$.isFunction(fn)){ 610try{ 611fn(); 612} 613catch(exc){ 614console.log("error executing function "+fn+" - "+exc); 615} 616} 617} 618_7.contextMenu.close(_1b,_1c,evt); 619}; 620if(_1b.touchDevice){ 621var _1d=i$.bindDomEvt(document.body,"touchmove",function(evt){ 622var _1e=(evt)?evt.target||evt.srcElement:null; 623var _1f=i$.byId(_1b.id); 624if(i$.hasClass((_1b.shadowNode)?_1b.shadowNode:_1f,_24.show)&&!i$.isDescendant(_1e,_1b.shadowNode)){ 625i$.unbindDomEvt(_1d); 626if(_1b._inProgress){ 627_displayMenu=false; 628} 629_1b.closeFn(false); 630} 631}); 632} 633var _20=function(_21){ 634if(_21.displayMenu){ 635_1b.activeAction=false; 636i$.fireEvent("wptheme/contextMenu/close/all"); 637var _22=i$.byId(_1b.id); 638if(!_1b._submenu){ 639i$.fireEvent("wptheme/contextMenu/close/all"); 640_7.contextMenu._updateAbsolutePosition(_22); 641} 642var _23=_7.contextMenu._adjustScreenPositionStart(); 643i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,_24.show); 644if(_1a){ 645_7.contextMenu._adjustScreenPositionEnd(_23); 646} 647var _25=_22._firstSelectable; 648if(_25){ 649_25.focus(); 650_22._currentSelected=_25; 651} 652i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,("ontouchstart" in document)?"":_24.noTouch); 653} 654}; 655_7.contextMenu._initialize(_19).then(_20,_20); 656_19=null; 657},initSubmenu:function(_26,_27,_28){ 658_26._contextMenu=_26._contextMenu||{}; 659var _29=_26._contextMenu; 660_29._submenu=true; 661_29._menuitemTemplate=_28._menuitemTemplate; 662_29._subMenuTemplate=_28._subMenuTemplate; 663_29._loadingTemplate=_28._loadingTemplate; 664_7.contextMenu.init(_26,_27,_28.jsonQuery); 665},_findFocusNode:function(_2a){ 666var _2b,i,_2c; 667var _2d=function(_2e,_2f){ 668var l=_2e.childNodes.length; 669for(i=0;i<l;i++){ 670if(_2b){ 671break; 672} 673_2c=_2e.childNodes[i]; 674if(i$.hasClass(_2c,_24.focus)){ 675_2b=_2c; 676break; 677} 678if(_2c.childNodes){ 679i=_2d(_2c,i); 680} 681} 682return _2f; 683}; 684if(i$.hasClass(_2a,_24.focus)){ 685return _2a; 686} 687_2d(_2a); 688return _2b; 689},_findNodes:function(_30,_31){ 690var _32,_33,_34,_35,i,_36; 691var _37=function(_38,_39){ 692for(i=_38.childNodes.length-1;i>=0;i--){ 693_36=_38.childNodes[i]; 694if(i$.hasClass(_36,_24.menuTemplate)){ 695_33=_36; 696continue; 697} 698if(i$.hasClass(_36,_24.submenuTemplate)){ 699_34=_36; 700continue; 701} 702if(i$.hasClass(_36,_24.loadingTemplate)){ 703_35=_36; 704continue; 705} 706if(_36.childNodes){ 707i=_37(_36,i); 708} 709} 710return _39; 711}; 712if(_31&&!_30._contextMenu.menuNode){ 713_32=document.getElementById(_31); 714if(_32){ 715_32=_32.cloneNode(true); 716_30.appendChild(_32); 717} 718} 719_37(_30); 720if(!_33){ 721_32=document.getElementById("simpleMenuTemplate"); 722if(_32){ 723_32=_32.cloneNode(true); 724_30.appendChild(_32); 725_37(_30); 726} 727} 728var _3a={"root":_32,"menu":_33,"submenu":_34,"loading":_35}; 729return _3a; 730},_findNextNodeByKeyCode:function(_3b,_3c){ 731var _3d=_3b.parentNode; 732var _3e,_3f,_40,i,j; 733var l=_3d.childNodes.length; 734for(i=0;i<l;i++){ 735if(_3d.childNodes[i]==_3b){ 736break; 737} 738} 739for(j=i+1;j<l;j++){ 740_3e=_3d.childNodes[j]; 741_3f=_3e.textContent||_3e.innerText; 742if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){ 743_40=_3d.childNodes[j]; 744return _40; 745} 746} 747for(j=0;j<i;j++){ 748_3e=_3d.childNodes[j]; 749_3f=_3e.textContent||_3e.innerText; 750if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){ 751_40=_3d.childNodes[j]; 752return _40; 753} 754} 755return null; 756},_invalidateCallback:function(){ 757_7.contextMenu.cache={}; 758},_initialize:function(_41){ 759var _42=true; 760var _43=_41._contextMenu; 761if(_7.contextMenu.cache[_43.id]||_43._inProgress){ 762return i$.promise.resolved({displayMenu:_42}); 763} 764_43._inProgress=true; 765i$.addListener("wptheme/contextMenu/invalidate/all",_7.contextMenu._invalidateCallback); 766var _44,_45,tmp=i$.createDom("div"),_46; 767if(_43._submenu){ 768tmp.innerHTML=_43._subMenuTemplate.replace(/\$\{submenu-id\}/g,_43.id+"_menu"); 769_41.appendChild(tmp.firstChild); 770_44=i$.byId(_43.id+"_menu"); 771_45=i$.createDom("div"); 772_45.innerHTML=_43._loadingTemplate; 773}else{ 774var _47=_7.contextMenu._findNodes((_43.shadowNode)?_43.shadowNode:_41,_41._contextMenu.templateId); 775_44=_47.menu; 776_46=_47.root; 777if(_46){ 778if(_43.alignLeft||_43.alignRight){ 779i$.removeClass(_46,_24.alignLeft); 780i$.removeClass(_46,_24.alignRight); 781if(_43.alignLeft){ 782i$.addClass(_46,_24.alignLeft); 783}else{ 784i$.addClass(_46,_24.alignRight); 785} 786} 787_46.removeAttribute("id"); 788} 789if(!_43._menuitemTemplate){ 790_43._menuitemTemplate=i$.trim(_44.innerHTML); 791} 792if(!_43._loadingTemplate){ 793_45=i$.createDom("div"); 794_45.appendChild(_47.loading); 795_43._loadingTemplate=i$.trim(_45.innerHTML); 796_43._loadingTemplate=_43._loadingTemplate.replace(/\$\{loading\}/g,_7.contextMenu.nls.LOADING_0); 797_45=null; 798} 799_45=i$.createDom("div"); 800_45.innerHTML=_43._loadingTemplate; 801if(_47.submenu){ 802tmp.appendChild(_47.submenu.cloneNode(true)); 803if(!_43._subMenuTemplate){ 804_43._subMenuTemplate=i$.trim(tmp.innerHTML); 805} 806} 807} 808while(_44.firstChild){ 809_44.removeChild(_44.firstChild); 810} 811_44.appendChild(_45); 812var _48; 813if(_43._submenu){ 814_48=_43.shadowNode; 815}else{ 816if(_43.shadowNode){ 817_48=_43.shadowNode; 818}else{ 819_48=_7.contextMenu._transformIntoAbsolutePosition(_41); 820} 821} 822i$.addClass((_48)?_48:_41,_24.show); 823i$.bindDomEvt((_48)?_48:_41,"onmouseleave",function(){ 824if(_43._inProgress){ 825_42=false; 826} 827_43.closeFn(false); 828}); 829var _49=_7.contextMenu._load(_43).then(function(_4a){ 830var _4b=_7.contextMenu._parseData(_4a).then(function(_4c){ 831_4c=_7.contextMenu._filterMenu(_4c); 832if(!_4c||_4c.length==0){ 833_4c=[{type:"Menuitem",_enabled:true,itemClass:_24.error,title:{value:_7.contextMenu.nls.NO_ITEMS_0,lang:"en"}}]; 834} 835_7.contextMenu._buildMenu(_43,_44,_4c); 836_43._inProgress=false; 837_7.contextMenu.cache[_43.id]=true; 838return {displayMenu:_42}; 839}); 840return _4b; 841},function(){ 842var tmp=i$.createDom("div"); 843tmp.innerHTML=_7.contextMenu._fromTemplate(_43._menuitemTemplate,_24.error,_7.contextMenu.nls.ERROR_LOADING_0); 844while(_44.firstChild){ 845_44.removeChild(_44.firstChild); 846} 847_44.appendChild(tmp); 848_43._inProgress=false; 849_7.contextMenu.cache[_43.id]=true; 850return {displayMenu:_42}; 851}); 852return _49; 853},close:function(_4d,_4e,evt){ 854var _4f=(evt)?evt.target||evt.srcElement:null; 855var _50=i$.byId(_4d.id); 856i$.removeClass((_4d.shadowNode)?_4d.shadowNode:_50,_24.show); 857if(!_4d.activeAction){ 858var _51=_50._currentSelected; 859if(_51){ 860_51.blur(); 861} 862var _52=_7.contextMenu._findFocusNode(_50); 863window.setTimeout(function(){ 864((_52)?_52:_50).focus(); 865if(_4e){ 866window.setTimeout(function(){ 867_7.contextMenu._applyAction(_4f); 868},0); 869} 870},0); 871} 872},_load:function(_53){ 873var _54=_1.replace(/\$\{id\}/g,_53.menuId); 874if(_53.jsonQuery){ 875_54+=(_54.indexOf("?")==-1?"?":"&")+i$.toQuery(_53.jsonQuery); 876} 877var _55=i$.xhrGet({url:_54,headers:{"X-IBM-XHR":"true","Cache-Control":"No-Cache"},responseType:"json"}).then(function(_56){ 878var _57=_53.jsonQuery.secondaryRootNode; 879if(_57!=null){ 880_53.jsonQuery.rootNode=_57; 881var _58=_1.replace(/\$\{id\}/g,_53.menuId); 882_58+=(_54.indexOf("?")==-1?"?":"&")+i$.toQuery(_53.jsonQuery); 883var _59=i$.xhrGet({url:_58,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_5a){ 884return _56.data.concat(_5a.data); 885}); 886return _59;
887} 888return _56.data; 889},function(_5b){ 890var _5c=_5b.xhr.getResponseHeader("Content-Type")||""; 891if((_5c.indexOf("text/html")==0)||(_5b.xhr.status==401)){ 892window.setTimeout(function(){ 893document.location.reload(); 894},0); 895} 896console.log("Error trying to load the context menu feed for '"+_53.menuId+"': "+_5b); 897return null; 898}); 899return _55; 900},_parseData:function(_5d){ 901var _5e=[]; 902i$.each(_5d,function(_5f){ 903var _60=i$.fromPath("moduleInfo.deferred",false,_5f)?i$.modules.loadDeferred():i$.promise.resolved(true); 904_5e.push(_60.then(function(){ 905var _61=_7.contextMenu._checkFunction(_5f,_5f.visibilityFn,_5f,(typeof _5f.visibility!="undefined")?_5f.visibility:true); 906var _62=_7.contextMenu._checkFunction(_5f,_5f.enableFn,_5f,(typeof _5f.enabled!="undefined")?_5f.enabled:true); 907return i$.whenAll(_61,_62).then(function(_63){ 908_5f._visible=_63[0]; 909_5f._enabled=_63[1]; 910return _5f; 911}); 912})); 913}); 914var _64=i$.whenAll.apply(i$,_5e); 915return _64; 916},_filterMenu:function(_65){ 917var _66=[],_67,_68={"type":_3}; 918for(var i=_65.length-1;i>=0;i--){ 919_67=_65[i]; 920if(!_67._visible){ 921continue; 922} 923if(_67.type==_3){ 924if(_68.type==_3){ 925continue; 926} 927}else{ 928if(_67.type==_4){ 929if((_68.type==_3)||(_68.type==_4)){ 930continue; 931} 932} 933} 934_68=_67; 935_66.unshift(_67); 936} 937while(_66.length>0&&_66[0].type==_3){ 938_66=_66.slice(1); 939} 940return _66; 941},_buildMenu:function(_69,_6a,_6b){ 942var _6c=document.createDocumentFragment(),tmp=i$.createDom("div"),_6d,_6e,_6f,_70,_71,_72,_73=i$.fromPath("wptheme.contextMenu.extension.badge"); 943for(var i=0,l=_6b.length;i<l;i++){ 944_6d=_6b[i]; 945tmp.innerHTML=_7.contextMenu._fromTemplate(_69._menuitemTemplate,_6d,_73); 946while(_6e=tmp.firstChild){ 947if(_6e.nodeType==1){ 948if(_6d.type=="Submenu"){ 949_6e._menuitem=_6d; 950_6e._jsonData=_69; 951i$.bindDomEvt(_6e,"onmouseover",_7.contextMenu._applySubmenu); 952}else{ 953if(_6d._enabled){ 954if(!_71){ 955_71=_6e; 956} 957_72=_6e; 958_6e.links={previous:_6f,next:null,sub:null}; 959if(_6f){ 960_6f.links.next=_6e; 961} 962if(!_70&&_6d.type!=_4){ 963_70=_6e; 964} 965_6e._menuitem=_6d; 966_6f=_6e; 967i$.bindDomEvt(_6e,"onclick",function(evt){ 968_7.contextMenu._stopEventPropagation(evt); 969_69.closeFn(true,evt); 970}); 971i$.bindDomEvt(_6e,"onkeydown",function(evt){ 972return _7.contextMenu._applyKeyAction(evt); 973}); 974i$.bindDomEvt(_6e,"onmouseover",function(evt){ 975return _7.contextMenu._applyFocusAction(evt); 976}); 977} 978} 979if((_6d.title)&&(i$.isRTL(_6d.title.lang))){ 980i$.addClass(_6e,"rtl"); 981_6e.setAttribute("dir","RTL"); 982} 983if(_6d.markupId){ 984_6e.setAttribute("id",_6d.markupId); 985} 986if(_73){ 987_73.injectBadge(_6e); 988} 989} 990_6c.appendChild(_6e); 991} 992} 993_71.links.previous=_72; 994_72.links.next=_71; 995while(_6a.firstChild){ 996_6a.removeChild(_6a.firstChild); 997} 998_6a.appendChild(_6c); 999i$.byId(_69.id)._firstSelectable=_70; 1000i$.byId(_69.id)._currentSelected=null; 1001},_fromTemplate:function(_74,_75,_76){ 1002var _77,_78,_79,_7a=""; 1003if(typeof (_75)=="string"){ 1004_77=_75; 1005_78=_76; 1006_79=""; 1007}else{ 1008_77="type"+_75.type; 1009if(_75.itemClass){ 1010_77+=" "+_75.itemClass; 1011} 1012if(!_75._enabled){ 1013_77+=" "+_24.disabled; 1014} 1015_78=(_75.title)?_75.title.value:""; 1016_79=((_75.description)?_75.description.value:""); 1017if(_76){ 1018_7a=_76.getAnchor(_75); 1019} 1020} 1021var _7b=_74.replace(/\$\{title\}/g,_78).replace(/\$\{badge\}/g,_7a).replace(/"\$\{css-class\}"/g,"\""+(_77)+"\"").replace(/\$\{css-class\}/g,"\""+(_77)+"\"").replace(/"\$\{description\}"/g,"\""+_79+"\"").replace(/\$\{description\}/g,"\""+_79+"\""); 1022return _7b; 1023},_checkFunction:function(_7c,fn,arg,_7d){ 1024if(fn){ 1025if(!_7c.fromPath){ 1026_7c.fromPath={}; 1027} 1028var _7e=i$.fromPath("wptheme.contextMenu.extension.menuItemScope"),_7f=_7e?_7e.getWindow(_7c):null,_80=_7c.fromPath[fn]||i$.fromPath(fn,false,_7f); 1029_7c.fromPath[fn]=_80; 1030if(i$.isFunction(_80)){ 1031try{ 1032return _80(arg); 1033} 1034catch(exc){ 1035console.log("error executing function "+fn+" - "+exc); 1036} 1037} 1038} 1039return i$.promise.resolved(_7d); 1040},_stopEventPropagation:function(evt){ 1041if(evt){ 1042if(evt.stopPropagation){ 1043evt.stopPropagation(); 1044}else{ 1045evt.cancelBubble=true; 1046} 1047} 1048},_applyKeyAction:function(evt){ 1049var _81=evt.target||evt.srcElement; 1050var _82=_81; 1051var _83=null; 1052while(!_83){ 1053_82=_82.parentNode; 1054if(_82._contextMenu){ 1055_83=_82; 1056} 1057} 1058var _84=_83._contextMenu; 1059switch(evt.keyCode){ 1060case 32: 1061if(evt.preventDefault){ 1062evt.preventDefault(); 1063} 1064case 13: 1065_7.contextMenu._stopEventPropagation(evt); 1066_84.closeFn(true,evt); 1067return false;
1068case 9: 1069case 27: 1070_84.closeFn(false); 1071break; 1072case 40: 1073_7.contextMenu._moveFocus(evt,_84,_81,"next"); 1074return false; 1075case 38: 1076_7.contextMenu._moveFocus(evt,_84,_81,"previous"); 1077return false; 1078} 1079var _85=_7.contextMenu._findNextNodeByKeyCode(_81,evt.keyCode); 1080if(_85){ 1081_85.focus(); 1082return false; 1083} 1084return true; 1085},_moveFocus:function(evt,_86,_87,_88){ 1086var _89=_87.links[_88]; 1087if(_89&&(_89._menuitem.type==_4||_89._menuitem.type==_3)){ 1088var _8a=false; 1089var _8b=null; 1090while(!_8b&&!_8a){ 1091_89=_89.links[_88]; 1092if(!_89){ 1093_8a=true; 1094}else{ 1095if(_89._menuitem.type!=_4&&_89._menuitem.type!=_3){ 1096_8b=_89; 1097} 1098} 1099} 1100_89=_8b; 1101} 1102if(_89){ 1103var _8c=i$.byId(_86.id)._currentSelected; 1104if(_8c){ 1105_8c.blur(); 1106} 1107i$.byId(_86.id)._currentSelected=_89; 1108_89.focus(); 1109} 1110if(evt.preventDefault){ 1111evt.preventDefault(); 1112} 1113},_applyFocusAction:function(evt){ 1114var _8d=evt.target||evt.srcElement; 1115var _8e=_8d; 1116var _8f=null; 1117var _90=_8d._menuitem; 1118while(!_8f){ 1119_8e=_8e.parentNode; 1120if(_8e._contextMenu){ 1121_8f=_8e; 1122} 1123if(!_90){ 1124_8d=_8d.parentNode; 1125_90=_8d._menuitem; 1126} 1127} 1128var _91=_8f._contextMenu; 1129var _92=i$.byId(_91.id)._currentSelected; 1130if(_92!=_8d){ 1131if(_92){ 1132_92.blur(); 1133i$.byId(_91.id)._currentSelected=null; 1134} 1135if(_90.type!=_4&&_90.type!=_3){ 1136i$.byId(_91.id)._currentSelected=_8d; 1137_8d.focus(); 1138} 1139} 1140return false; 1141},_applyAction:function(_93){ 1142var _94=_93; 1143var _95=null; 1144var _96=_93._menuitem; 1145while(!_95){ 1146_94=_94.parentNode; 1147if(_94._contextMenu){ 1148_95=_94; 1149} 1150if(!_96){ 1151_93=_93.parentNode; 1152_96=_93._menuitem; 1153} 1154} 1155var _97=_95._contextMenu; 1156_97.activeAction=true; 1157var p=_7.contextMenu._checkFunction(_96,_96.actionFn,_96,_96.actionUrl); 1158if(p){ 1159p.then(function(_98){ 1160if(_98&&i$.isString(_98)){ 1161var _99=i$.fromPath("wptheme.contextMenu.extension.actionUrlTarget"); 1162var _9a=(_99)?_99.getWindow(_96):window; 1163var _9b=_96.actionHttpMethod||"GET"; 1164if(_9b!="GET"){ 1165var _9c=_9a.i$.createDom("form"); 1166_9c.setAttribute("action",_98); 1167_9b=_9b.toLowerCase(); 1168switch(_9b){ 1169case "get": 1170_9c.setAttribute("method","GET"); 1171break; 1172case "delete": 1173case "put": 1174var _9d=_9a.i$.createDom("input",{"type":"hidden","name":"x-method-override","value":_9b.toUpperCase()}); 1175_9c.appendChild(_9d); 1176case "post": 1177_9c.setAttribute("method","POST"); 1178_9c.setAttribute("enctype","multipart/form-data"); 1179break; 1180default: 1181} 1182_9a.i$.byId(_24.complementaryContent).appendChild(_9c); 1183_9c.submit(); 1184}else{ 1185var _9e=_9a.i$.createDom("a"); 1186_9e.setAttribute("style","display:none"); 1187_9e.setAttribute("href",_98); 1188_9a.i$.byId(_24.complementaryContent).appendChild(_9e); 1189_9e.click(); 1190} 1191} 1192}); 1193} 1194},_applySubmenu:function(evt){ 1195var _9f=evt.target||evt.srcElement; 1196if(!_9f._jsonData){ 1197_9f=_9f.parentNode; 1198} 1199if(_9f._jsonData){ 1200_9f.setAttribute("id",_9f._jsonData.id+"_"+_9f._menuitem.id); 1201_7.contextMenu.initSubmenu(_9f,_9f._menuitem.id,_9f._jsonData); 1202} 1203},_transformIntoAbsolutePosition:function(_a0){ 1204var _a1=_a0.childNodes,_a2,i=0,_a3=false; 1205while(_a2=_a1[i++]){ 1206if(i$.hasClass(_a2,_24.alignRight)){ 1207_a3=true; 1208break; 1209}else{ 1210if(i$.hasClass(_a2,_24.alignLeft)){ 1211break; 1212} 1213} 1214} 1215var _a4=i$.createDom("div"); 1216_a4.className=_a0.className; 1217_a4.appendChild(_a2); 1218i$.byId(_24.complementaryContent).appendChild(_a4); 1219_a4._contextMenu=_a0._contextMenu; 1220_a0._contextMenu.shadowNode=_a4; 1221_a0._contextMenu._menuIsRight=_a3; 1222var _a5=i$.createDom("span"); 1223_a4.appendChild(_a5); 1224i$.addClass(_a5,_24.menuOverlay); 1225_a0._contextMenu.overlayNode=_a5; 1226_a0._contextMenu.menuNode=_a2; 1227_7.contextMenu._updateAbsolutePosition(_a0); 1228return _a4; 1229},_updateAbsolutePosition:function(_a6){ 1230var _a7=_a6._contextMenu._menuIsRight; 1231var _a8=_a6._contextMenu.menuNode; 1232var _a9=_a6._contextMenu.overlayNode; 1233var _aa=_7.contextMenu._findPos(_a6); 1234var _ab=2; 1235_a9.style.left=(_aa[0]-_ab)+"px"; 1236_a9.style.top=(_aa[1]-_ab)+"px"; 1237_a9.style.width=(_a6.offsetWidth+(2*_ab))+"px"; 1238_a9.style.height=(_a6.offsetHeight+(2*_ab))+"px"; 1239var dir=document.getElementsByTagName("html")[0].getAttribute("dir"); 1240if(dir!=null){ 1241dir=dir.toLowerCase(); 1242}else{ 1243dir=""; 1244} 1245if(!(dir=="rtl")){ 1246_a8.style.left=((_a7)?_aa[0]+_a6.offsetWidth:_aa[0])+"px"; 1247}else{ 1248_a8.style.left=((_a7)?_aa[0]+_a6.offsetWidth-_a6.scrollWidth:_aa[0]+_a6.scrollWidth)+"px"; 1249} 1250_a8.style.top=_aa[1]+"px"; 1251},_adjustScreenPositionStart:function(){ 1252return document.documentElement.scrollHeight; 1253},_adjustScreenPositionEnd:function(_ac){ 1254var _ad=document.documentElement.scrollHeight; 1255if(_ac!=_ad){ 1256document.documentElement.scrollTop=document.documentElement.scrollHeight; 1257} 1258},_findPos:function(obj){ 1259var _ae=curtop=0; 1260if(obj.offsetParent){ 1261do{ 1262_ae+=obj.offsetLeft; 1263curtop+=obj.offsetTop; 1264}while(obj=obj.offsetParent); 1265var _af=[_ae,curtop]; 1266return _af; 1267} 1268},}); 1269var _24=_7.contextMenu.css; 1270})(); 1271 1272 1273}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);} 1274try{(function(){ 1275 i$.merge({ 1276 "NO_ITEMS_0":"No items to display", 1277 "ERROR_LOADING_0":"Error happened while loading the menu.", 1278 "LOADING_0":"Loading..." 1279},i$.fromPath("wptheme.contextMenu.nls",true)); 1280})(); 1281}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);} 1282try{(function(_1){ 1283var _2="aria-labelledby",_3="aria-describedby",_4="aria-label",_5="aria-pressed",_6="title",_7="true",_8="false",_9="selected",_a="disabled",_b="show-text",_c="hide-text",_d="disableClick",_e="remove",_f="off-label",_10="on-label",_11="wpToolbarHighContrast",_12="http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",_13="wpPageModeToggleIdContainer",_14="wpInfoModeToggle",_15="wpInfoModeToggleLink",_16="wpPageModeToggle",_17="wptoogleInput",_18="wpPageModeToggleLink",_19="wpPageIsPractitioner",_1a="wpPageModeToggleIdContainer",_1b="wpToolbarToggle",_1c="ibm.portal.home.createpage",_1d="wpEditTooltip",_1e="ibm.portal.toolbar.NewPage",_1f="wps.content.root",_20="wps.Administration",_21="ibm.portal.page.Applications",_22="hcl.portal.practitionerstudio",_23="hcl.portal.helplinks",_24="wpHelpContainerID",_25="wpHelpCenterDialogContent-root",_26="wpHelpCenterDialog",_27=[13,32,38,40],_28=[13,32],T=true,F=false,_29=i$.byId,_2a=i$.hasClass,_2b=i$.addClass,_2c=i$.removeClass,_2d=i$.forEach,_2e=i$.toQuery,_2f=i$.fromPath,_30=i$.bindDomEvt; 1284function _31(_32,_33){ 1285var _34=_32||_29(_16),_35="valueoff",_36="valueon",_37=_29(_17),_38=_29(_f),_39=_29(_10),_3a=document.getElementById("wpViewModeDesc").textContent,_3b=document.getElementById("wpEditModeDesc").textContent,_3c=document.getElementById(_1d); 1286if(_33){ 1287if(!_2a(_34,_36)){ 1288_2c(_34,_35); 1289_2b(_34,_36); 1290_2c(_38,_b); 1291_2c(_39,_c); 1292_2b(_38,_c); 1293_2b(_39,_b); 1294_3c.innerHTML=_3b; 1295_3d(_34,_5,_7); 1296_3d(_34,_4,_3b); 1297_37.setAttribute("checked",true); 1298} 1299}else{ 1300if(_2a(_34,_36)){ 1301_2c(_34,_36); 1302_2b(_34,_35); 1303_2c(_38,_c); 1304_2c(_39,_b); 1305_2b(_38,_b); 1306_2b(_39,_c); 1307_3c.innerHTML=_3a; 1308_3d(_34,_5,_8); 1309_3d(_34,_4,_3a); 1310_37.removeAttribute("checked"); 1311} 1312} 1313}; 1314function _3e(_3f,_40){ 1315var _41=_3f||_29(_14),_42=_29(_15); 1316if(_40){ 1317if(!_2a(_41,_9)){ 1318_2b(_41,_9); 1319_3d(_42,_2,"wpInfoModeOnLabel"); 1320_3d(_42,_3,"wpInfoModeOnDesc"); 1321_3d(_42,_5,_7); 1322_3d(_41,_6,_43(_44(_29("wpInfoModeOnDesc")))); 1323} 1324}else{ 1325if(_2a(_41,_9)){ 1326_2c(_41,_9); 1327_3d(_42,_2,"wpInfoModeOffLabel"); 1328_3d(_42,_3,"wpInfoModeOffDesc"); 1329_3d(_42,_5,_8); 1330_3d(_41,_6,_43(_44(_29("wpInfoModeOffDesc")))); 1331} 1332} 1333}; 1334function _45(_46,e){ 1335if(!_47(e,_28)){ 1336return F; 1337} 1338_2b(_46,_9); 1339var _48=wpModules.toolbar; 1340if(_48.isToolbarOpened()){ 1341_48.closeToolbar(); 1342}else{ 1343_48.openToolbar({"autoOpenDefaultTabs":true}); 1344} 1345return T; 1346}; 1347function _49(_4a,_4b,e){ 1348var _4c=_29(_17),_4d=_29(_f),_4e=_29(_10); 1349if(!_47(e,_28)){ 1350return F; 1351}
1352top.document.getElementById("wpToolbarActionBarBackground").style.pointerEvents="none"; 1353if(!_2a(_4a,_a)){ 1354var t=wpModules.toolbar,_4f=t.isEditModeActive(); 1355if(_4f){ 1356_2c(_4d,_b); 1357_2c(_4e,_c); 1358_2b(_4d,_c); 1359_2b(_4e,_b); 1360_4c.setAttribute("checked",true); 1361t.setEditModeActive(F); 1362}else{ 1363_2c(_4d,_c); 1364_2c(_4e,_b); 1365_2b(_4d,_b); 1366_2b(_4e,_c); 1367_4c.removeAttribute("checked"); 1368if(_4b&&_50()){ 1369var _51={"editMode":T}; 1370if(!t.isToolbarOpened()){ 1371_51.autoOpenDefaultTabs=true; 1372} 1373t.openToolbar(_51); 1374}else{ 1375t.setEditModeActive(T); 1376} 1377} 1378_31(_4a,!_4f); 1379} 1380return T; 1381}; 1382function _52(_53,e){ 1383if(!_47(e,_28)){ 1384return F; 1385} 1386var t=wpModules.toolbar,_54=t.isInfoModeActive(); 1387_3e(_53,!_54); 1388t.setInfoModeActive(!_54); 1389return T; 1390}; 1391function _55(){ 1392return _56().then(function(_57){ 1393var _58=_57; 1394if(_58.length!=0&&wpModules.toolbar.isInfoModeActive()){ 1395return T; 1396}else{ 1397return F; 1398} 1399}); 1400}; 1401function _59(){ 1402return _56().then(function(_5a){ 1403var _5b=_5a; 1404if(_5b.length!=0&&!wpModules.toolbar.isInfoModeActive()){ 1405return T; 1406}else{ 1407return F; 1408} 1409}); 1410}; 1411var _5c=document.getElementById("wpPageModeToggle"); 1412var _5d=document.getElementById("wpEditTooltip"); 1413var _5e; 1414function _5f(){ 1415_5d.style.display="block"; 1416}; 1417function _60(){ 1418_5d.style.display="none"; 1419}; 1420function _61(e){ 1421if(e.key==="Escape"||e.key==="Esc"){ 1422_60(); 1423_5c.blur(); 1424} 1425}; 1426if(_5c){ 1427_5c.addEventListener("mousemove",function(){ 1428_5f(); 1429_5c.focus(); 1430document.addEventListener("keydown",_61); 1431}); 1432_5c.addEventListener("mouseleave",function(){ 1433_60(); 1434}); 1435_5d.addEventListener("mouseenter",function(){ 1436_5f(); 1437}); 1438_5d.addEventListener("mouseleave",function(){ 1439_60(); 1440document.removeEventListener("keydown",_61); 1441}); 1442} 1443function _56(){ 1444return new Promise(function(_62){ 1445var _63=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:navigationMenu"; 1446var _64={navID:_86(),rootNode:_22}; 1447if(_64){ 1448_63+=(_63.indexOf("?")==-1?"?":"&")+i$.toQuery(_64); 1449} 1450i$.xhrGet({url:_63,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_65){ 1451_62(_65.data); 1452}); 1453}); 1454}; 1455function _66(){ 1456var t=wpModules.toolbar; 1457t.setInfoModeActive(F); 1458}; 1459function _67(){ 1460var t=wpModules.toolbar; 1461t.setInfoModeActive(T); 1462}; 1463function _68(_69,e){ 1464var _6a=_29(_24); 1465var _6b=document.getElementById(_25); 1466var k=e.keyCode; 1467if(k&&k!==13&&k!==32&&k!==38&&k!==40&&k!==27){ 1468return F; 1469} 1470_3d(_6a,"style","display: none"); 1471_6b.innerHTML=""; 1472}; 1473function _6c(_6d,e,_6e){ 1474var _6f=_29(_24); 1475var _70=document.getElementById(_25); 1476var _71=document.getElementById(_26); 1477var k=e.keyCode; 1478if(k&&k!==13&&k!==32&&k!==38&&k!==40){ 1479return F; 1480} 1481window.open(_6e,"_blank"); 1482return T; 1483}; 1484function _72(_73,e){ 1485var _74=F; 1486if(_75()){ 1487_74=_76(_73,_1f,e); 1488}else{ 1489_77(_1f); 1490_74=T; 1491} 1492return _74; 1493}; 1494function _78(_79,e){ 1495var _7a=F; 1496if(_75()){ 1497_7a=_76(_79,_21,e); 1498}else{ 1499_77(_21); 1500_7a=T; 1501} 1502return _7a; 1503}; 1504function _7b(_7c,e){ 1505var _7d=F; 1506if(_75()){ 1507_7d=_7e(_7c,_22,_23,e); 1508}else{ 1509_77(_22); 1510_7d=T; 1511} 1512return _7d; 1513}; 1514function _7f(_80,e){ 1515var _81=T; 1516_77(_20); 1517return _81; 1518}; 1519function _75(){ 1520var _82=(typeof wptheme!="undefined"&&wptheme.contextMenu); 1521return _82; 1522}; 1523function _76(_83,_84,e){ 1524if(!_47(e,_27)){ 1525return F; 1526} 1527var _85={"navID":_86(),"rootNode":_84}; 1528var _87=wpModules.toolbar; 1529if(_87&&_87.isToolbarOpened()){ 1530_85.contribURI="nm:oid:ibm.portal.Toolbar"; 1531} 1532_88(_83,"navigationMenu",_85); 1533return T; 1534}; 1535function _7e(_89,_8a,_8b,e){ 1536if(!_47(e,_27)){ 1537return F; 1538} 1539var _8c={"navID":_86(),"rootNode":_8a,"secondaryRootNode":_8b}; 1540var _8d=wpModules.toolbar; 1541if(_8d&&_8d.isToolbarOpened()){ 1542_8c.contribURI="nm:oid:ibm.portal.Toolbar"; 1543} 1544_88(_89,"navigationMenu",_8c); 1545return T; 1546}; 1547function _88(_8e,_8f,_90){ 1548_2b(_8e.parentNode,_9); 1549args={"node":_8e.parentNode,"menuId":_8f,"jsonQuery":_90,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){ 1550_2c(_8e.parentNode,_9); 1551}}; 1552wptheme.contextMenu.init(args); 1553}; 1554function _91(){ 1555return _29(_19).value; 1556}; 1557function _3d(_92,_93,_94){ 1558_92.setAttribute(_93,_94); 1559}; 1560function _44(_95){ 1561return _95.firstChild; 1562}; 1563function _43(_96){ 1564return _96.nodeValue; 1565}; 1566function _97(_98){ 1567var fc=_98.firstChild; 1568while(fc&&fc.nodeType!==1){ 1569fc=fc.nextSibling; 1570} 1571return fc; 1572}; 1573function _99(_9a,_9b,_9c){ 1574if(_9c&&_9a&&_9b&&_9b.length>0){ 1575_2d(_9b,function(p){ 1576if(_9a.name==p.name&&_9a.nsuri==p.nsuri){ 1577_9c(p.value); 1578return F; 1579} 1580}); 1581} 1582}; 1583function _47(e,_9d){ 1584var k=e?e.keyCode:null; 1585if(k){ 1586if(_9d){ 1587var r=_9d.indexOf(k)>=0; 1588return r; 1589}else{ 1590return F; 1591} 1592} 1593return T; 1594}; 1595function _9e(){ 1596return wpModules.toolbar.getViewAreaWindow(); 1597}; 1598function _86(){ 1599var r=_9e().ibmCfg.portalConfig.currentPageOID; 1600return r; 1601}; 1602function _9f(){ 1603return _2f("ibmCfg.portalConfig.isCurrentPageEditable",false,_9e()); 1604}; 1605function _50(){ 1606return _2f("wpModules.state.page.supportsToolbar",false,_9e()); 1607}; 1608function _77(id){ 1609wpModules.toolbar.loadViewArea("nm:oid:"+id); 1610}; 1611function _a0(_a1){ 1612if(_a1&&_a1.pageId){ 1613var id=_a1.pageId; 1614if(id&&id.value&&id.value.length>0){ 1615_77(id.value[0]); 1616} 1617} 1618}; 1619i$.addOnLoad(function(){ 1620var _a2=i$.fromPath("wpModules.state.page",false); 1621if(_a2){ 1622var _a3=_a2.getStateManager(); 1623_a3.addListener(function(_a4){ 1624var _a5=_a4.renderParams().getModified(); 1625_99({"nsuri":_12,"name":"editMode"},_a5,function(_a6){ 1626var res=(_a6&&_a6[0]=="true"),_a7=_29(_16); 1627if(_a7){ 1628_31(_a7,res); 1629} 1630}); 1631_99({"nsuri":_12,"name":"infoMode"},_a5,function(_a8){ 1632var res=(_a8&&_a8[0]=="true"),_a9=_29(_14); 1633if(_a9){ 1634_3e(_a9,res); 1635} 1636}); 1637}); 1638} 1639var _aa=wpModules.toolbar.getViewAreaWindow(); 1640if(self===_aa){ 1641var w=_aa.parent||_aa,_ab=w.document.getElementById(_16),_ac=_29(_1a),_ad=w.document.getElementById(_1b),_ae=wpM
1641odules.toolbar.isEditModeActive(),_af=w.document.getElementById(_1d),_b0=w.document.getElementById("wpEditModeDesc"),_b1=w.document.getElementById("wpViewModeDesc"),_b2=w.document.getElementById("wpEditModeDisable"); 1642if(_ab){ 1643if(_9f()&&_b2){ 1644_2c(_ab,_a); 1645_2c(_ab,_d); 1646_2c(_ac,_e); 1647if(_ae&&_b0){ 1648_af.innerHTML=_b0.textContent; 1649}else{ 1650_af.innerHTML=_b1.textContent; 1651} 1652}else{ 1653_2b(_ab,_d); 1654_2b(_ab,_a); 1655_2b(_ac,_e); 1656_af.innerHTML=_b2.innerText; 1657} 1658} 1659if(_ad){ 1660if(_50()){ 1661_2c(_ad,_a); 1662}else{ 1663_2b(_ad,_a); 1664} 1665} 1666} 1667var _b3=_29(_1c); 1668if(_b3){ 1669var _b4=wpModules.toolbar; 1670_b3.onClose=_a0; 1671if(_b4.isToolbarOpened()||_29(_16)){ 1672var _b5={}; 1673_b5.id=_1c; 1674_b5.key="onClose"; 1675_30(_b3,"click",function(e){ 1676_b4.openToolbar({"primaryTab":"siteManagerTreeTab:context:oid:"+_86()+":default:action:CREATE_CHILD_PAGE","onCloseDialog":_b5}); 1677e.preventDefault?e.preventDefault():e.returnValue=F; 1678return F; 1679}); 1680} 1681} 1682}); 1683wpModules.a11y.highContrastMode.then(function(_b6){ 1684if(_b6){ 1685_2b(_29(_14),_11); 1686} 1687}); 1688_1.toggleToolbar=_45; 1689_1.toggleEditMode=_49; 1690_1.toggleInfoMode=_52; 1691_1.openSitesMenu=_72; 1692_1.openApplicationsMenu=_78; 1693_1.openAdministration=_7f; 1694_1.openHelpArticle=_6c; 1695_1.closeHelpArticle=_68; 1696_1.toggleInfoModeOff=_66; 1697_1.toggleInfoModeOn=_67; 1698_1.isInfoModeActive=_55; 1699_1.isInfoModeInactive=_59; 1700_1.openPractitionersMenu=_7b; 1701})(i$.fromPath("wpModules.theme.ActionBar",true)); 1702 1703 1704}catch(e){console.log("Module 'wp_toolbar_actionbar': ",e);} 1705try{if(typeof (wpModules.toolbar)=="undefined"){ 1706wpModules.toolbar={}; 1707} 1708if(typeof (wpModules.toolbar.menuActions)=="undefined"){ 1709wpModules.toolbar.menuActions={}; 1710} 1711 1712 1713}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);} 1714try{(function(){ 1715 i$.merge({ 1716 "move_page_dialog_title":"Move the page '{0}' to...", 1717 "edit_wiring_dialog_title":"Manage Communication Endpoints for '{0}'", 1718 "confirm_delete_page_anonymous":"Are you sure you want to delete this page and all of its children?", 1719 "delete_control_dialog_title":"Delete Portlet", 1720 "confirm_delete_page":"Are you sure you want to delete the page '{0}' and all of its children?", 1721 "confirm_delete_control_anonymous":"Are you sure you want to remove this portlet from the page?", 1722 "page_properties_dialog_title":"Manage Page Properties", 1723 "delete_page_dialog_title":"Delete Page", 1724 "edit_wiring_dialog_title_anonymous":"Manage Communication Endpoints", 1725 "preview_as_user_dialog_title":"Preview as User", 1726 "confirm_delete_control":"Are you sure you want to remove the portlet '{0}' from the page?" 1727},i$.fromPath("wpModules.toolbar.menuActions.nls",true)); 1728})(); 1729}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);} 1730try{(function(_1,_2){ 1731var _3="?uri=pagemode:edit:off&uri=op:ibm.portal.operations.showPreviewScreen()&returnURI=dialog:CloseModalDialog",_4={"then":function(){ 1732}},_5=i$.fromPath,_1=_1,_6=_1.document,_7=wpModules.toolbar,_8=_2,_9=function(_a){ 1733var _b=_3,_c=_d("preview_as_user_dialog_title")||"Preview as User",_e={"url":_b,"title":_c,"modal":true,"autoResize":true,"window":_1.parent||_1,"callbackFn":function(_f){ 1734if(_f){ 1735var _10=get(_f,"action"); 1736if(_10=="ok"){ 1737var _11=get(_f,"userID"),_12=get(_f,"path"); 1738_13(_11,_12); 1739} 1740} 1741}},_14=new wpModules.dialog.Dialog(_e); 1742_14.open();
1743var r=_4; 1744return r; 1745},_13=function(_15,_16){ 1746var url=_7.getBaseURL(_17()); 1747url=url.replace(_16,_16+_15); 1748url+=url.indexOf("?")<0?"?":"&"; 1749url+="uri=toolbar:close&uri=pagemode:edit:off"; 1750top.location.href=url; 1751},_18=function(_19){ 1752var r=_19.visibility!==false; 1753return r; 1754},_1a=function(_1b){ 1755var r=_1c(); 1756return r; 1757},_1c=function(){ 1758var r=_5("ibmCfg.portalConfig.canAnonymousUserViewCurrentPage",false,_17()); 1759return r; 1760},_17=function(){ 1761var r=_7.getViewAreaWindow(); 1762return r; 1763},_1d=function(_1e){ 1764return {"then":function(cb){ 1765cb(_1e); 1766}}; 1767},_d=function(key){ 1768var r=_8.nls[key]; 1769return r; 1770},get=function(obj,key){ 1771var o=obj[key],r=null; 1772if(o){ 1773var v=o.value; 1774if(v&&v.length>0){ 1775r=v[0]; 1776} 1777} 1778return r; 1779}; 1780_8.openPreviewAsUserDialog=_9; 1781_8.isPreviewAsUnauthenticatedUserVisible=_18; 1782_8.isPreviewAsUnauthenticatedUserEnabled=_1a; 1783})(window,i$.fromPath("wpModules.toolbar.menuActions",true)); 1784 1785 1786}catch(e){console.log("Module 'wp_toolbar_sitepreview_menuactions': ",e);} 1787try{(function(){ 1788if(typeof ic4_wai_integration!="undefined"&&ic4_wai_integration===true){ 1789if(typeof waiHideSecondaryNav!="undefined"&&waiHideSecondaryNav===true){ 1790document.getElementById("wpthemeSecondaryBanner").style.display="none"; 1791document.getElementById("wpthemeMainContent").style.display="none"; 1792} 1793document.getElementById("wptheme_banner").removeAttribute("role"); 1794document.getElementById("wptheme_contentinfo").removeAttribute("role"); 1795if(dojo!="undefined"){ 1796djConfig.locale=dojo.locale; 1797dojo.addOnLoad(function(){ 1798document.getElementById("logoutlink").onclick=null; 1799}); 1800} 1801if(typeof appName!="undefined"&&appName==="profile"){ 1802ibmConfig.proxyURL=svcHrefProfiles+"/ajaxProxy/"; 1803ibmConfig["com.ibm.mashups.proxy.url"]=svcHrefProfiles+"/ajaxProxy"; 1804djConfig.baseUrl=(needProxy?(ibmConfig.proxyURL+encodeURIComponent(baseProtocol)+"/"+encodeURIComponent(baseHost)):(baseProtocol+"://"+baseHost))+basePath+"/web/dojo/"; 1805djConfig.proxy=applicationContext+"/ajaxProxy"; 1806} 1807if(typeof i$!="undefined"&&i$.isRTL){ 1808document.body.className=document.body.className.replace("lotusImagesOff",""); 1809document.body.className+=" wptheme_ic4_wai_rtl"; 1810} 1811} 1812})(); 1813 1814 1815}catch(e){console.log("Module 'wp_ic4_wai_resources': ",e);} 1816try{(function(){ 1817if(!i$.isIE){ 1818i$.addOnLoad(function(){ 1819var _1=new Array(); 1820var _2=document.getElementsByTagName("SECTION"); 1821var _3=null; 1822for(var i=0;i<_2.length;i++){ 1823if(i$.hasClass(_2[i],"a11yRegionTarget")){ 1824var _4=_2[i]; 1825var _5=null; 1826var _6=_4.getElementsByTagName("SPAN"); 1827var _7=document.getElementsByTagName("HEADER"); 1828var _8=null; 1829for(var j=0;j<_6.length;j++){ 1830if(i$.hasClass(_6[j],"a11yRegionLabel")){ 1831_5=_6[j]; 1832} 1833} 1834if(_5){ 1835var _9=_5; 1836var _a=_4; 1837while((_a=_a.parentNode)!=null){ 1838if(i$.hasClass(_a,"component-control")){ 1839var m=_a&&(_a.className||"").match(/id-([\S]+)/); 1840_3=m&&m[1]; 1841break; 1842} 1843} 1844if(_3){ 1845var _b="skinHeader"+_3; 1846var _c=_9.innerHTML; 1847if(_1.indexOf(_c)>-1){ 1848for(var j=0;j<_1.length;j++){ 1849var _d=_c.concat(" ").concat(j+1); 1850if(_1.indexOf(_d)==-1){ 1851_c=_d; 1852_1.push(_c); 1853break; 1854} 1855} 1856}else{ 1857_1.push(_c); 1858} 1859_4.setAttribute("aria-label",_c); 1860for(var k=0;k<_7.length;k++){ 1861if(i$.hasClass(_7[k],"wpthemeControlHeader")){ 1862_8=_7[k]; 1863if(_8.parentNode==_4){ 1864_8.setAttribute("aria-label",_b); 1865} 1866} 1867} 1868} 1869} 1870} 1871} 1872}); 1873} 1874})(); 1875 1876 1877}catch(e){console.log("Module 'wp_theme_skin_region': ",e);} 1878try{(function(){ 1879 i$.merge({ 1880 "WARNING_0":"Warning", 1881 "DELETE_0":"Delete", 1882 "INFO_0":"Information", 1883 "MESSAGES_AVAILABLE_1":"${0} messages are available for review", 1884 "SHOW_DETAILS_0":"Show Details", 1885 "ERROR_0":"Error", 1886 "HIDE_DETAILS_0":"Hide Details" 1887},i$.fromPath("wptheme.statusBar.nls",true)); 1888})(); 1889}catch(e){console.log("Module 'wp_status_bar': ",e);} 1890try{(function(){ 1891if(typeof com==="undefined"||!com){ 1892com={}; 1893} 1894if(typeof com.ibm==="undefined"||!com.ibm){ 1895com.ibm={}; 1896} 1897if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){ 1898com.ibm.widgets={}; 1899} 1900if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){ 1901com.ibm.widgets.StatusType=function(id,_1,_2,_3){ 1902this._id=id; 1903this._styleClass=_1; 1904this._iconPath=_2; 1905this._iconAlt=_3; 1906}; 1907} 1908if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){ 1909com.ibm.widgets.StatusMessage=function(_4,_5,_6){ 1910this._type=_4; 1911this._message=_5; 1912if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){ 1913this._message=_5.message; 1914} 1915this._details=_6; 1916}; 1917}
1918if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){ 1919com.ibm.widgets.StatusBarV2=function(_7){ 1920this.uid=_7; 1921this.showDetails=false; 1922this._messages=[]; 1923this._connections=[]; 1924this._numMessages=0; 1925this._baseURL=window.location.protocol+"//"+window.location.host; 1926this.blankGifIcon="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="; 1927this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"wpthemeError",this.blankGifIcon,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"wpthemeWarning",this.blankGifIcon,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"wpthemeInfo",this.blankGifIcon,wptheme.statusBar.nls.INFO_0)}; 1928i$.addListener("/portal/status",i$.scope(this,this.addMessage)); 1929i$.addListener("/message/status",i$.scope(this,this.addMessage)); 1930i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage)); 1931i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage)); 1932if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){ 1933this.isBidi=ibmCfg.portalConfig.isRTL; 1934}else{ 1935if(typeof (ibmPortalConfig)!="undefined"){ 1936this.isBidi=ibmPortalConfig.isRTL; 1937}else{ 1938if(typeof (ibmConfig)!="undefined"){ 1939this.isBidi=ibmConfig.isBidi; 1940} 1941} 1942} 1943i$.addOnUnload(i$.scope(this,this._onWindowUnload)); 1944this.containerNode=i$.byId("wpthemeStatusBarContainer"); 1945}; 1946} 1947i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){ 1948i$.forEach(this._connections,function(_8){ 1949i$.unbindDomEvt(_8); 1950}); 1951this._connections=null; 1952this.clear(); 1953this._messages=null; 1954},_getStatusContainer:function(){ 1955return this.containerNode; 1956},_escapeHTML:function(_9){ 1957if(_9.replace){ 1958return _9.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,"""); 1959} 1960return _9; 1961},setShowDetails:function(_a){
1962this.showDetails=_a; 1963},toggleShowDetails:function(){ 1964this.setShowDetails(!this.showDetails); 1965this.render(); 1966},clear:function(){ 1967var _b=this._getStatusContainer(); 1968if(!!_b){ 1969_b.innerHTML=""; 1970_b.setAttribute("role",""); 1971_b.setAttribute("wairole",""); 1972} 1973this._messages.length=0; 1974},clearMessage:function(_c){ 1975if(_c.uid&&_c.uid!=this.uid){ 1976return; 1977} 1978var _d=_c.message; 1979if(typeof _d==="undefined"||_d===null){ 1980this.clear(); 1981}else{ 1982for(var i=this._messages.length-1;i>=0;i--){ 1983if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){ 1984this._messages.splice(i,1); 1985} 1986} 1987if(this._messages.length==0){ 1988this.clear(); 1989}else{ 1990if(this._messages.length<100){ 1991this.render(this._getStatusContainer()); 1992} 1993} 1994} 1995},addMessage:function(_e){ 1996if(_e.uid&&_e.uid!=this.uid){ 1997return; 1998} 1999var _f=_e.message; 2000this._messages.push(_f); 2001if(this._messages.length<100){ 2002this.render(this._getStatusContainer()); 2003} 2004},render:function(_10){ 2005if(_10==null){ 2006_10=this._getStatusContainer(); 2007} 2008_10.innerHTML=""; 2009if(this._messages.length>1){ 2010this.renderHeader(_10); 2011}else{ 2012if(this._messages.length==1){
2013this.renderMessage(_10,this._messages[0],this.showDetails,0); 2014} 2015} 2016if(this.showDetails&&this._messages.length>1){ 2017for(x in this._messages){ 2018this.renderMessage(_10,this._messages[x],this.showDetails,x); 2019} 2020} 2021},renderHeader:function(_11){ 2022if(this._messages.length>1){ 2023var _12=2; 2024for(var i=0;i<this._messages.length;i++){ 2025_12=Math.min(_12,this._statusTypesMap[this._messages[i]._type]._id); 2026} 2027var _13="info"; 2028for(x in this._statusTypesMap){ 2029if(this._statusTypesMap[x]._id==_12){ 2030_13=x; 2031break; 2032} 2033} 2034var _14=new com.ibm.widgets.StatusMessage(_13,wptheme.statusBar.nls.MESSAGES_AVAILABLE_1.replace("${0}",this._messages.length),""); 2035this.renderMessage(_11,_14,this.showDetails,-1); 2036} 2037},renderMessage:function(_15,_16,_17,_18){ 2038var _19=this._statusTypesMap[_16._type]; 2039var _1a=document.createElement("div"); 2040_1a.className="wpthemeMessage "+_19._styleClass; 2041if(this._messages.length>1&&_18>=0){ 2042_1a.className+=" wpthemeMoreMsg"; 2043} 2044var _1b=document.createElement("img"); 2045_1b.className="wpthemeMsgIcon "+(_19._styleClass=="wpthemeError"?"wpthemeMsgIconError":_19._styleClass=="wpthemeWarning"?"wpthemeMsgIconWarning":"wpthemeMsgIconInfo"); 2046_1b.src=_19._iconPath; 2047_1b.alt=_1b.title=_19._iconAlt; 2048_1a.appendChild(_1b); 2049var _1c=document.createElement("span"); 2050_1c.className="wpthemeAltText"; 2051_1c.innerHTML=this._escapeHTML(_19._iconAlt+":"); 2052_1a.appendChild(_1c); 2053var _1d=document.createElement("div"); 2054_1d.className="wpthemeMessageBody"; 2055_1d.innerHTML=this._escapeHTML(_16._message); 2056_1a.appendChild(_1d); 2057if((this._messages.length>1&&_18<0)||(this._messages.length==1)){ 2058if(_16._details&&_16._details.length>0||_18<0){ 2059var _1e=document.createElement("a"); 2060_1e.href="javascript:void(0)"; 2061_1e.className="wpthemeHideShow"; 2062_1e.role="button"; 2063this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetail
2063s))); 2064var _1f=document.createElement("img"); 2065_1f.className="wpthemeMsgIcon16"; 2066_1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; 2067_1e.appendChild(_1f); 2068var _20=document.createElement("span"); 2069_20.className="wpthemeAltText"; 2070_1e.appendChild(_20); 2071}else{ 2072_17=false; 2073} 2074var _21=document.createElement("a"); 2075_21.href="javascript:void(0);"; 2076_21.className="wpthemeDelete"; 2077_21.role="button"; 2078_21.title=wptheme.statusBar.nls.DELETE_0; 2079this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear))); 2080var _22=document.createElement("img"); 2081_22.alt=wptheme.statusBar.nls.DELETE_0; 2082_22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; 2083_21.appendChild(_22); 2084var _23=document.createElement("span"); 2085_23.className="wpthemeAltText"; 2086_23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0); 2087_21.appendChild(_23); 2088if(_16._details&&_16._details.length>0||_18<0){ 2089if(_17){ 2090_1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0; 2091_1f.className+=" wpthemeMsgIconHide"; 2092_1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0; 2093_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0); 2094}else{ 2095_1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0; 2096_1f.className+=" wpthemeMsgIconShow"; 2097_1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0; 2098_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0); 2099} 2100_1a.appendChild(_1e); 2101} 2102_1a.appendChild(_21); 2103} 2104var _24=document.createElement("div"); 2105_24.className="wpthemeClear"; 2106_1a.appendChild(_24); 2107if(_16._details&&_16._details.length>0&&_17&&_18>=0){ 2108var _25=document.createElement("div"); 2109_25.className="wpthemeDetails"; 2110_25.appendChild(document.createTextNode(_16._details)); 2111_1a.appendChild(_25); 2112} 2113_15.appendChild(_1a); 2114_15.setAttribute("role","alert"); 2115_15.setAttribute("wairole","alert"); 2116}}); 2117if(typeof wpstatusbar==="undefined"||!wpstatusbar){ 2118wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox"); 2119} 2120var _26=i$.getCookie("ibm.portal.operations.error"); 2121if(_26){ 2122var _27=i$.fromJson(decodeURIComponent(_26)); 2123var _28="error"; 2124if(_27.errorType){ 2125_28=_27.errorType; 2126}else{ 2127if(_27.errorCode){ 2128if(_27.errorCode=="400"){ 2129_28="error"; 2130} 2131} 2132} 2133i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]); 2134i$.deleteCookie("ibm.portal.operations.error"); 2135} 2136i$.addOnLoad(function(){ 2137if("localStorage" in window&&window["localStorage"]!==null){ 2138if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){ 2139i$.fireEvent("/message/status",[{message:new com.ibm.widgets.StatusMessage(localStorage["com.ibm.wp.toolbar.msg.type"],localStorage["com.ibm.wp.toolbar.msg.msg"],""),uid:"ibmStatusBox"}]); 2140localStorage.removeItem("com.ibm.wp.toolbar.msg.type"); 2141localStorage.removeItem("com.ibm.wp.toolbar.msg.msg"); 2142} 2143} 2144}); 2145})(); 2146 2147 2148}catch(e){console.log("Module 'wp_status_bar': ",e);} 2149try{(function(_1){ 2150var _2="wpToolbarProjectMenuLink",_3="wpToolbarProjectInfoBox",_4="<edit-mode>",_5="<page-id>",_6="?uri=toolbar:projectTab:projectMenu:returnURI:dialog:CloseModalDialog@oid:"+_5+"&uri=pagemode:edit:"+_4,_7="project:oid:",_8="project:null",_9="title",_a="titleLang",_b="titleDir",_c="editMode",_d="action",_e="resultURI",_f="selectProject",_10="openDialog",_11="openToolbar",_12="closeToolbar",_13={"uri":"pagemode:edit:on"},_14={"uri":"pagemode:edit:off"},_15={"uri":"toolbar:open","params":{"primaryTabURI":"default","secondaryTabURI":"default"}},_16={"uri":"toolbar:open"},_1=_1,_17=_1.document,_18=i$.byId,_19=i$.bindDomEvt,_1a=i$.fromPath,_1b=i$.forEach,_1c=i$.toQuery,_1d=wpModules.toolbar,_1e=function(_1f,e){ 2151var k=e.keyCode; 2152if(k&&k!==13&&k!==32&&k!==38&&k!==40){ 2153return false; 2154} 2155var url=_6.replace(_5,_20()).replace(_4,(_21()?"on":"off")),_22={"url":url,"autoResize":true,"posHandler":"horizontallyBelow","autoPosition":_1f.parentNode,"modal":false,"padding":0,"callbackFn":function(_23){ 2156_1f.focus(); 2157if(_23){ 2158var _24=get(_23,_d); 2159if(_f==_24){ 2160_25(_23); 2161}else{ 2162if(_10==_24){ 2163_26(_23); 2164}else{ 2165if(_11==_24){ 2166_27(_23); 2167} 2168} 2169} 2170} 2171}}; 2172_28(_22); 2173return true; 2174},_25=function(_29){ 2175var uri=get(_29,_e),_2a=get(_29,_c)=="true"; 2176if(uri){ 2177var _2b=[],_2c=_1d.isToolbarOpened(),_2d=_2e(uri),_2f=_30(_29),_31=_32(); 2178if(_2c&&!_2d){ 2179if(_2f){ 2180_1d.closeToolbar({"editMode":_2a}); 2181}else{ 2182_1d.setEditModeActive(_2a); 2183} 2184}else{ 2185if(_2a!=_21()){ 2186if(_2a){ 2187_2b.push(_13); 2188if(!_2c&&_31){ 2189_2b.push(_15); 2190} 2191}else{ 2192_2b.push(_14); 2193} 2194} 2195if(_2c){ 2196if(_2f){ 2197_1d.closeTab(); 2198}else{ 2199if(_31){ 2200if(_2a){ 2201_2b.push(_15); 2202}else{ 2203_2b.push(_16); 2204} 2205} 2206} 2207} 2208_2b.push(_33(uri)); 2209var win=_34(),url=_35(_2b,win),_36=win.parent||win; 2210_36.location.href=url; 2211} 2212} 2213},_26=function(_37){ 2214var _38=_39(_3a(_37,_e)); 2215if(_38){ 2216var _3b=get(_37,_9)||"Dialog",url=_3c(_38),_3d={"url":url,"title":_3b,"modal":true,"autoResize":true,"metrics":{"width":900},"padding":0,"callbackFn":function(_3e){ 2217if(_3e&&_3e.result=="project_published"){ 2218_1d.closeToolbar({"editMode":false}); 2219}else{ 2220_1d.reloadViewArea(true); 2221} 2222}}; 2223_28(_3d); 2224} 2225},_27=function(_3f){ 2226var uri=get(_3f,_e); 2227_1d.openToolbar({tab:uri}); 2228},_28=function(_40){ 2229var _41=new wpModules.dialog.Dialog(_40); 2230_41.open(); 2231},_35=function(_42,_43){ 2232var _44=_43?_45(_43):"",url=[_44]; 2233_44.indexOf("?")<0?url.push("?"):url.push("&"); 2234_1b(_42,function(_46){ 2235var uri=_46.uri,_47=_46.params; 2236url.push("uri="); 2237url.push(uri); 2238url.push("&"); 2239if(_47){ 2240url.push(_1c(_47)); 2241url.push("&"); 2242} 2243});
2244var r=url.join(""); 2245return r; 2246},_3c=function(_48,_49){ 2247var _4a=_49?_45(_49):"",url=[_4a],uri=_48.uri,_4b=_48.params; 2248_4a.indexOf("?")<0?url.push("?"):url.push("&"); 2249url.push("uri="); 2250url.push(uri); 2251if(_4b){ 2252url.push("&"); 2253url.push(_1c(_4b)); 2254} 2255var r=url.join(""); 2256return r; 2257},_33=function(uri,_4c){ 2258var a={}; 2259a.uri=uri; 2260if(_4c){ 2261a.params=_4c; 2262} 2263return a; 2264},_39=function(_4d){ 2265if(_4d&&_4d.length>0){ 2266var o={}; 2267o.uri=_4d[0]; 2268o.params={}; 2269for(var i=1,l=_4d.length;i<l;i+=2){ 2270var key=_4d[i],val=_4d[i+1]; 2271if(val){ 2272o.params[key]=[val]; 2273} 2274} 2275return o; 2276} 2277return null; 2278},get=function(obj,key){ 2279var o=obj[key]; 2280if(o){ 2281var v=o.value; 2282if(v&&v.length>0){ 2283var r=v[0]; 2284return r; 2285} 2286} 2287return null; 2288},_3a=function(obj,key){ 2289var o=obj[key]; 2290if(o){ 2291var r=o.value; 2292return r; 2293} 2294return null; 2295},_20=function(){ 2296var r=_34().ibmCfg.portalConfig.currentPageOID; 2297return r; 2298},_21=function(){ 2299var r=_1d.isEditModeActive(); 2300return r; 2301},_34=function(){ 2302var r=_1d.getViewAreaWindow(); 2303return r; 2304},_32=function(){ 2305var r=_1a("wpModules.state.page.supportsToolbar",false,_34()); 2306return r; 2307},_45=function(win){ 2308var r=_1d.getBaseURL(win); 2309return r; 2310},_2e=function(uri){ 2311var _4e=_4f(),r=true; 2312if(_4e){ 2313r=uri.substring(_7.length)!=_4e; 2314}else{ 2315r=uri!=_8; 2316} 2317return r; 2318},_30=function(_50){ 2319var _51=_3a(_50,_d),r=(_51&&_51.length>1&&_51[1]==_12); 2320return r; 2321},_4f=function(){ 2322return _34().ibmCfg.portalConfig.projectUUID; 2323}; 2324i$.addOnLoad(function(){ 2325var _52=_18(_2); 2326if(_52){ 2327var _53=function(e){ 2328if(_1e(_52,e)){ 2329e.preventDefault?e.preventDefault():e.returnValue=false; 2330return false; 2331} 2332}; 2333_19(_52,"click",_53); 2334_19(_52,"keydown",_53); 2335} 2336}); 2337})(window); 2338 2339 2340}catch(e){console.log("Module 'wp_toolbar_projectmenu': ",e);} 2341try{(function(_1,_2){ 2342var _3="selected",_4=_1.document,_5=i$.addClass,_6=i$.removeClass,_7=wpModules.theme.WindowUtils,_8=_2,_9=function(_a,_b,e){ 2343if(e){ 2344var k=e.keyCode; 2345if(k&&k!==13&&k!==32&&k!==38&&k!==40){ 2346return false; 2347} 2348} 2349if(typeof wptheme!="undefined"&&wptheme.contextMenu){ 2350var _c=_d(),_e=[]; 2351for(var i=0,l=_c.length;i<l;i++){ 2352_e.push("nm:oid:"+_c[i]); 2353} 2354var _f={resURI:"nm:oid:"+_10(_11()),contribURI:_e},_12={"node":_a.parentNode,"menuId":_b,"jsonQuery":_f,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){ 2355_13(_a); 2356}}; 2357_14(_a); 2358wptheme.contextMenu.init(_12); 2359return true; 2360}else{ 2361return false; 2362} 2363},_14=function(_15){ 2364_5(_15.parentNode,_3); 2365},_13=function(_16){ 2366_6(_16.parentNode,_3); 2367},_17=function(_18,_19,_1a){ 2368_18.setAttribute(_19,_1a); 2369},_11=function(){ 2370var r=_7.getWindow(_7.VIEW_AREA); 2371return r; 2372},_10=function(win){ 2373var r=win.ibmCfg.portalConfig.currentPageOID; 2374return r; 2375},_d=function(){ 2376var r=_7.getPageIDs(); 2377return r; 2378}; 2379_8.open=_9; 2380})(window,i$.fromPath("wpModules.toolbar.ContextMenu",true)); 2381 2382 2383}catch(e){console.log("Module 'wp_toolbar_contextmenu': ",e);} 2384try{(function(_1){ 2385var _2=_1,_3=_1.document,_4=i$.addClass,_5=i$.removeClass,_6=i$.byId,_7=i$.bindDomEvt,_8="minimized",_9="utb-end-preview-btn",_a=3500,_b=500,_c=function(_d,_e){ 2386var _f=function(){ 2387_4(_d,_8); 2388}; 2389return setTimeout(_f,_e); 2390},_10=function(_11,_12){ 2391var _13=function(){ 2392_5(_11,_8); 2393}; 2394return setTimeout(_13,_12); 2395}; 2396i$.addOnLoad(function(){ 2397var _14=_6(_9); 2398if(_14){ 2399var _15=_14.parentNode,_16=_c(_15,_a); 2400_7(_15,"mouseenter",function(){ 2401if(_16){ 2402clearTimeout(_16); 2403} 2404_16=_10(_15,_b); 2405}); 2406_7(_15,"mouseleave",function(){ 2407if(_16){ 2408clearTimeout(_16); 2409} 2410_16=_c(_15,_a); 2411}); 2412} 2413}); 2414})(window); 2415 2416 2417}catch(e){console.log("Module 'wp_toolbar_sitepreview': ",e);}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.