PageSourceSearch

https://bidv.com.vn/wps/contenthandler/!ut/p/digest!AVpjyN-eMXoHdj…=wp_toolbar_sitepreview__0.0%3Aconfig_js

js bidv.com.vn collected 2026-09-24 09:46:24 UTC 55,165 bytes, 2,253 lines download raw bytes

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(){
55var _1=i$.addClass,_2=i$.hasClass,_3=i$.removeClass,_4=i$.fromPath,ln=function(o){
56return o.length;
57},_5="edit-mode",_6="edit-mode-disabled",_7="help-mode",_8="info-mode",_9="toolbar-opened",_a="toolbar-closed",_b=_4("wpModules.state.page");
58if(_b){
59var _c=_b.getStateManager();
60_c&&_c.getState().then(function(_d){
61var _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;
62_3(_10,_5);
63_3(_10,_6);
64_3(_10,_8);
65_3(_10,_7);
66if(_e&&ln(_e)>0&&_e[0].value&&ln(_e[0].value)>0){
67var _11=_e[0].value;
68for(var i=0;i<ln(_11);++i){
69var _12=_11[i];
70if("EDIT"==_12){
71if(wpModules.state.page.supportsEditMode){
72_1(_10,_5);
73}else{
74_1(_10,_6);
75}
76}else{
77if("INFO"==_12){
78_1(_10,_8);
79}else{
80if("HELP"==_12){
81_1(_10,_7);
82}
83}
84}
85}
86}
87if(_f&&ln(_f)>0&&_f[0].value&&ln(_f[0].value)>0){
88var _13=_f[0].value[0];
89if("true"==_13){
90_1(_10,_9);
91}else{
92_1(_10,_a);
93}
94}else{
95_1(_10,_a);
96}
97});
98}
99})();
100
101
102}catch(e){console.log("Module 'wp_state_page_modes': ",e);}
103try{(function(_1){
104var _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){
105var _d=_e(_d),_f=_10(_d),uri=_f.uri,_11=_f.params||{},_12=_13(_d);
106if(uri){
107if(_14()&&!_15(_12)){
108if(_d.editMode===true){
109_16(uri,_11);
110}else{
111_17(uri,_11);
112}
113}else{
114_18(uri,_11,_12);
115}
116}else{
117if(_14()){
118if(_15(_12)){
119_19(_12);
120}
121}else{
122_18(uri,_11,_12);
123}
124}
125},_1a=function(_1b){
126_1b.primaryTab=_1b.tab;
127_1b.tab=null;
128return _c(_1b);
129},_1c=function(_1d){
130_1d.secondaryTab=_1d.tab;
131_1d.tab=null;
132return _c(_1d);
133},_1e=function(_1f){
134var _20=_21();
135if(_20){
136_20.close(_1f);
137}else{
138_1f();
139}
140},_22=function(_23){
141_1e(function(){
142_24(_23);
143});
144},_24=function(_25){
145var _26=_10(_25),uri=_26.uri,_27=_26.params||{};
146if(_14()){
147if(uri){
148if(!_27.uri){
149_27.uri=[];
150}
151_27.uri.push(_a);
152}else{
153uri=_a;
154}
155}
156if(uri){
157_28(_29(),uri,_27,function(url){
158_2a().location.href=url;
159});
160}
161},_14=function(){
162var r=_21();
163return r;
164},_2b=function(_2c,_2d){
165var uri=_2e(_2c,_2d);
166if(_2c==_7&&_2d&&_14()){
167_16(uri);
168}else{
169_17(uri);
170}
171},_2e=function(_2f,_30){
172var uri=["pagemode:"];
173uri.push(_2f);
174uri.push(":");
175_30?uri.push("on"):uri.push("off");
176var r=uri.join("");
177return r;
178},_31=function(_32){
179_2b(_7,_32);
180},_33=function(){
181var r=_34(_7);
182return r;
183},_35=function(_36){
184_2b(_8,_36);
185},_37=function(){
186var r=_34(_8);
187return r;
188},_34=function(_38){
189var win=_29(),_39=win.document.body,r=_3(_39,_38+"-mode");
190return r;
191},_3a=function(_3b,_3c){
192var r=false;
193if(_3c!==undefined){
194r=_3c!==_34(_3b);
195}
196return r;
197},_17=function(uri,_3d){
198var win=_29();
199_28(win,uri,_3d,function(url){
200win.location.href=url;
201});
202},_16=function(uri,_3e){
203if(_14()){
204var _3f=_21();
205_3f.load(_40(uri,_3e),"view",{"onload":function(){
206_3f.restore();
207}});
208}else{
209var win=_29();
210_28(win,uri,_3e,function(url){
211win.location.href=url;
212});
213}
214},_41=function(_42){
215_29().location.reload(_42);
216},_10=function(_43){
217var r={};
218if(_43){
219var uri=null,_44={},_45=_43.editMode,_46=_43.infoMode;
220if(_3a(_7,_45)){
221uri=_2e(_7,_45);
222}
223if(_3a(_8,_46)){
224var _47=_2e(_8,_46);
225if(uri){
226_44.uri=[_47];
227}else{
228uri=_47;
229}
230}
231if(uri){
232r.uri=uri;
233r.params=_44;
234}
235}
236return r;
237},_40=function(uri,_48){
238var _49={"uri":uri};
239if(_48){
240_49.params=_48;
241}
242return _49;
243},_e=function(_4a){
244if(_14()){
245_4a.autoOpenDefaultTabs=false;
246}
247return _4a;
248},_19=function(_4b){
249if(_4b&&_15(_4b)){
250var _4c=_21();
251if(_4c){
252var p=_4b.primaryURI,_4d={},_4e=_4b.onCloseDialog;
253if(_4e&&_4e.id){
254_4d.onCloseDialog=function(_4f){
255_50(_4f,_4e.id,_4e.key);
256};
257}
258if(p){
259_4c.load(_40(p),"primary",_4d);
260}
261var s=_4b.secondaryURI;
262if(s){
263_4c.load(_40(s),"secondary",_4d);
264}
265}
266}
267},_50=function(_51,id,key){
268var _52=_51,id=id,key=key||"onCloseDialog";
269_53(function(w){
270try{
271var d=w.document;
272if(d){
273var n=d.getElementById(id);
274if(n){
275var f=n[key];
276if(f){
277f.call(n,_51);
278}
279}
280}
281}
282catch(e){
283}
284});
285},_18=function(uri,_54,_55){
286if(uri){
287if(!_54){
288_54={};
289}
290if(!_54.uri){
291_54.uri=[];
292}
293_54.uri.push(_9);
294}else{
295uri=_9;
296}
297if(_55&&_15(_55)){
298if(!_54){
299_54={};
300}
301var p=_55.primaryURI;
302if(p){
303_54.primaryTabURI=[p];
304}
305var s=_55.secondaryURI;
306if(s){
307_54.secondaryTabURI=[s];
308}
309}
310_28(_29(),uri,_54,function(url){
311_2a().location.href=url;
312});
313},_13=function(_56){
314var r={};
315if(_56){
316if(_56.tab||_56.primaryTab||_56.secondaryTab){
317var _57=_56.secondaryTab||_56.tab;
318if(_57){
319r.secondaryURI=_58(_57);
320}
321var _59=_56.primaryTab;
322if(_59){
323r.primaryURI=_58(_59);
324}
325}
326r.onCloseDialog=_56.onCloseDialog;
327var _5a=_56.autoOpenDefaultTabs;
328if(_5a){
329if(!r.primaryURI){
330r.primaryURI="default";
331}
332if(!r.secondaryURI){
333r.secondaryURI="default";
334}
335}
336}
337return r;
338},_58=function(t){
339if(t.indexOf(_b)==0||t.indexOf("Z6_")==0){
340return "nm:oid:"+t;
341}else{
342return t;
343}
344},_15=function(_5b){
345var r=_5b&&(_5b.primaryURI||_5b.secondaryURI);
346return r;
347},_28=function(win,uri,_5c,cb){
348_5d(win).then(function(url){
349var _5e=url,buf=[];
350buf.push(_5e);
351if(_5e.indexOf("?")<0){
352buf.push("?");
353}else{
354buf.push("&");
355}
356buf.push("uri=");
357buf.push(uri);
358if(_5c){
359buf.push("&");
360buf.push(_4(_5c));
361}
362var r=buf.join("");
363cb(r);
364});
365},_5d=function(win){
366var r=wpModules.theme.WindowUtils.findBaseURL(win);
367return r;
368},_5f=function(win){
369var r=wpModules.theme.WindowUtils.getBaseURL(win);
370return r;
371},_29=function(){
372var wu=wpModules.theme.WindowUtils,r=(wu&&wu.getWindow(wu.VIEW_AREA))||_1;
373return r;
374},_53=function(cb){
375var _60=_2a(),_61=_60.frames;
376cb.call(this,_60);
377if(_61&&_61.length>0){
378_6(_61,function(f){
379cb.call(this,f.window);
380});
381}
382},_2a=function(){
383var win=_29(),r=(win.parent||win);
384return r;
385},_21=function(){
386var r=_5("wpModules.toolbar.NavigationController",false,_2a());
387return r;
388},_62=_5("wpModules.toolbar",true);
389_62.openToolbar=_c;
390_62.openPrimaryTab=_1a;
391_62.openSecondaryTab=_1c;
392_62.closeTab=_1e;
393_62.closeToolbar=_22;
394_62.isToolbarOpened=_14;
395_62.setEditModeActive=_31;
396_62.isEditModeActive=_33;
397_62.setInfoModeActive=_35;
398_62.isInfoModeActive=_37;
399_62.loadViewArea=_17;
400_62.reloadViewArea=_41;
401_62.getViewAreaWindow=_29;
402_62.getToolbarMasterWindow=_2a;
403_62.getBaseURL=_5f;
404})(window);
405
406
407}catch(e){console.log("Module 'wp_toolbar_utils': ",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"},responseType:"json"}).then(function(_56){
878return _56.data;
879},function(_57){
880var _58=_57.xhr.getResponseHeader("Content-Type")||"";
881if((_58.indexOf("text/html")==0)||(_57.xhr.status==401)){
882window.setTimeout(function(){
883document.location.reload();
884},0);
885}
886console.log("Error trying to load the context menu feed for '"+_53.menuId+"': "+_57);
887return null;
888});
889return _55;
890},_parseData:function(_59){
891var _5a=[];
892i$.each(_59,function(_5b){
893var _5c=i$.fromPath("moduleInfo.deferred",false,_5b)?i$.modules.loadDeferred():i$.promise.resolved(true);
894_5a.push(_5c.then(function(){
895var _5d=_7.contextMenu._checkFunction(_5b,_5b.visibilityFn,_5b,(typeof _5b.visibility!="undefined")?_5b.visibility:true);
896var _5e=_7.contextMenu._checkFunction(_5b,_5b.enableFn,_5b,(typeof _5b.enabled!="undefined")?_5b.enabled:true);
897return i$.whenAll(_5d,_5e).then(function(_5f){
898_5b._visible=_5f[0];
899_5b._enabled=_5f[1];
900return _5b;
901});
902}));
903});
904var _60=i$.whenAll.apply(i$,_5a);
905return _60;
906},_filterMenu:function(_61){
907var _62=[],_63,_64={"type":_3};
908for(var i=_61.length-1;i>=0;i--){
909_63=_61[i];
910if(!_63._visible){
911continue;
912}
913if(_63.type==_3){
914if(_64.type==_3){
915continue;
916}
917}else{
918if(_63.type==_4){
919if((_64.type==_3)||(_64.type==_4)){
920continue;
921}
922}
923}
924_64=_63;
925_62.unshift(_63);
926}
927while(_62.length>0&&_62[0].type==_3){
928_62=_62.slice(1);
929}
930return _62;
931},_buildMenu:function(_65,_66,_67){
932var _68=document.createDocumentFragment(),tmp=i$.createDom("div"),_69,_6a,_6b,_6c,_6d,_6e,_6f=i$.fromPath("wptheme.contextMenu.extension.badge");
933for(var i=0,l=_67.length;i<l;i++){
934_69=_67[i];
935tmp.innerHTML=_7.contextMenu._fromTemplate(_65._menuitemTemplate,_69,_6f);
936while(_6a=tmp.firstChild){
937if(_6a.nodeType==1){
938if(_69.type=="Submenu"){
939_6a._menuitem=_69;
940_6a._jsonData=_65;
941i$.bindDomEvt(_6a,"onmouseover",_7.contextMenu._applySubmenu);
942}else{
943if(_69._enabled){
944if(!_6d){
945_6d=_6a;
946}
947_6e=_6a;
948_6a.links={previous:_6b,next:null,sub:null};
949if(_6b){
950_6b.links.next=_6a;
951}
952if(!_6c&&_69.type!=_4){
953_6c=_6a;
954}
955_6a._menuitem=_69;
956_6b=_6a;
957i$.bindDomEvt(_6a,"onclick",function(evt){
958_7.contextMenu._stopEventPropagation(evt);
959_65.closeFn(true,evt);
960});
961i$.bindDomEvt(_6a,"onkeydown",function(evt){
962return _7.contextMenu._applyKeyAction(evt);
963});
964i$.bindDomEvt(_6a,"onmouseover",function(evt){
965return _7.contextMenu._applyFocusAction(evt);
966});
967}
968}
969if((_69.title)&&(i$.isRTL(_69.title.lang))){
970i$.addClass(_6a,"rtl");
971_6a.setAttribute("dir","RTL");
972}
973if(_69.markupId){
974_6a.setAttribute("id",_69.markupId);
975}
976if(_6f){
977_6f.injectBadge(_6a);
978}
979}
980_68.appendChild(_6a);
981}
982}
983_6d.links.previous=_6e;
984_6e.links.next=_6d;
985while(_66.firstChild){
986_66.removeChild(_66.firstChild);
987}
988_66.appendChild(_68);
989i$.byId(_65.id)._firstSelectable=_6c;
990i$.byId(_65.id)._currentSelected=null;
991},_fromTemplate:function(_70,_71,_72){
992var _73,_74,_75,_76="";
993if(typeof (_71)=="string"){
994_73=_71;
995_74=_72;
996_75="";
997}else{
998_73="type"+_71.type;
999if(_71.itemClass){
1000_73+=" "+_71.itemClass;
1001}
1002if(!_71._enabled){
1003_73+=" "+_24.disabled;
1004}
1005_74=(_71.title)?_71.title.value:"";
1006_75=((_71.description)?_71.description.value:"");
1007if(_72){
1008_76=_72.getAnchor(_71);
1009}
1010}
1011var _77=_70.replace(/\$\{title\}/g,_74).replace(/\$\{badge\}/g,_76).replace(/"\$\{css-class\}"/g,"\""+(_73)+"\"").replace(/\$\{css-class\}/g,"\""+(_73)+"\"").replace(/"\$\{description\}"/g,"\""+_75+"\"").replace(/\$\{description\}/g,"\""+_75+"\"");
1012return _77;
1013},_checkFunction:function(_78,fn,arg,_79){
1014if(fn){
1015if(!_78.fromPath){
1016_78.fromPath={};
1017}
1018var _7a=i$.fromPath("wptheme.contextMenu.extension.menuItemScope"),_7b=_7a?_7a.getWindow(_78):null,_7c=_78.fromPath[fn]||i$.fromPath(fn,false,_7b);
1019_78.fromPath[fn]=_7c;
1020if(i$.isFunction(_7c)){
1021try{
1022return _7c(arg);
1023}
1024catch(exc){
1025console.log("error executing function "+fn+" - "+exc);
1026}
1027}
1028}
1029return i$.promise.resolved(_79);
1030},_stopEventPropagation:function(evt){
1031if(evt){
1032if(evt.stopPropagation){
1033evt.stopPropagation();
1034}else{
1035evt.cancelBubble=true;
1036}
1037}
1038},_applyKeyAction:function(evt){
1039var _7d=evt.target||evt.srcElement;
1040var _7e=_7d;
1041var _7f=null;
1042while(!_7f){
1043_7e=_7e.parentNode;
1044if(_7e._contextMenu){
1045_7f=_7e;
1046}
1047}
1048var _80=_7f._contextMenu;
1049switch(evt.keyCode){
1050case 32:
1051if(evt.preventDefault){
1052evt.preventDefault();
1053}
1054case 13:
1055_7.contextMenu._stopEventPropagation(evt);
1056_80.closeFn(true,evt);
1057return false;
1058case 9:
1059case 27:
1060_80.closeFn(false);
1061break;
1062case 40:
1063_7.contextMenu._moveFocus(evt,_80,_7d,"next");
1064return false;
1065case 38:
1066_7.contextMenu._moveFocus(evt,_80,_7d,"previous");
1067return false;
1068}
1069var _81=_7.contextMenu._findNextNodeByKeyCode(_7d,evt.keyCode);
1070if(_81){
1071_81.focus();
1072return false;
1073}
1074return true;
1075},_moveFocus:function(evt,_82,_83,_84){
1076var _85=_83.links[_84];
1077if(_85&&(_85._menuitem.type==_4||_85._menuitem.type==_3)){
1078var _86=false;
1079var _87=null;
1080while(!_87&&!_86){
1081_85=_85.links[_84];
1082if(!_85){
1083_86=true;
1084}else{
1085if(_85._menuitem.type!=_4&&_85._menuitem.type!=_3){
1086_87=_85;
1087}
1088}
1089}
1090_85=_87;
1091}
1092if(_85){
1093var _88=i$.byId(_82.id)._currentSelected;
1094if(_88){
1095_88.blur();
1096}
1097i$.byId(_82.id)._currentSelected=_85;
1098_85.focus();
1099}
1100if(evt.preventDefault){
1101evt.preventDefault();
1102}
1103},_applyFocusAction:function(evt){
1104var _89=evt.target||evt.srcElement;
1105var _8a=_89;
1106var _8b=null;
1107var _8c=_89._menuitem;
1108while(!_8b){
1109_8a=_8a.parentNode;
1110if(_8a._contextMenu){
1111_8b=_8a;
1112}
1113if(!_8c){
1114_89=_89.parentNode;
1115_8c=_89._menuitem;
1116}
1117}
1118var _8d=_8b._contextMenu;
1119var _8e=i$.byId(_8d.id)._currentSelected;
1120if(_8e!=_89){
1121if(_8e){
1122_8e.blur();
1123i$.byId(_8d.id)._currentSelected=null;
1124}
1125if(_8c.type!=_4&&_8c.type!=_3){
1126i$.byId(_8d.id)._currentSelected=_89;
1127_89.focus();
1128}
1129}
1130return false;
1131},_applyAction:function(_8f){
1132var _90=_8f;
1133var _91=null;
1134var _92=_8f._menuitem;
1135while(!_91){
1136_90=_90.parentNode;
1137if(_90._contextMenu){
1138_91=_90;
1139}
1140if(!_92){
1141_8f=_8f.parentNode;
1142_92=_8f._menuitem;
1143}
1144}
1145var _93=_91._contextMenu;
1146_93.activeAction=true;
1147var p=_7.contextMenu._checkFunction(_92,_92.actionFn,_92,_92.actionUrl);
1148if(p){
1149p.then(function(_94){
1150if(_94&&i$.isString(_94)){
1151var _95=i$.fromPath("wptheme.contextMenu.extension.actionUrlTarget");
1152var _96=(_95)?_95.getWindow(_92):window;
1153var _97=_92.actionHttpMethod||"GET";
1154if(_97!="GET"){
1155var _98=_96.i$.createDom("form");
1156_98.setAttribute("action",_94);
1157_97=_97.toLowerCase();
1158switch(_97){
1159case "get":
1160_98.setAttribute("method","GET");
1161break;
1162case "delete":
1163case "put":
1164var _99=_96.i$.createDom("input",{"type":"hidden","name":"x-method-override","value":_97.toUpperCase()});
1165_98.appendChild(_99);
1166case "post":
1167_98.setAttribute("method","POST");
1168_98.setAttribute("enctype","multipart/form-data");
1169break;
1170default:
1171}
1172_96.i$.byId(_24.complementaryContent).appendChild(_98);
1173_98.submit();
1174}else{
1175var _9a=_96.i$.createDom("a");
1176_9a.setAttribute("style","display:none");
1177_9a.setAttribute("href",_94);
1178_96.i$.byId(_24.complementaryContent).appendChild(_9a);
1179_9a.click();
1180}
1181}
1182});
1183}
1184},_applySubmenu:function(evt){
1185var _9b=evt.target||evt.srcElement;
1186if(!_9b._jsonData){
1187_9b=_9b.parentNode;
1188}
1189if(_9b._jsonData){
1190_9b.setAttribute("id",_9b._jsonData.id+"_"+_9b._menuitem.id);
1191_7.contextMenu.initSubmenu(_9b,_9b._menuitem.id,_9b._jsonData);
1192}
1193},_transformIntoAbsolutePosition:function(_9c){
1194var _9d=_9c.childNodes,_9e,i=0,_9f=false;
1195while(_9e=_9d[i++]){
1196if(i$.hasClass(_9e,_24.alignRight)){
1197_9f=true;
1198break;
1199}else{
1200if(i$.hasClass(_9e,_24.alignLeft)){
1201break;
1202}
1203}
1204}
1205var _a0=i$.createDom("div");
1206_a0.className=_9c.className;
1207_a0.appendChild(_9e);
1208i$.byId(_24.complementaryContent).appendChild(_a0);
1209_a0._contextMenu=_9c._contextMenu;
1210_9c._contextMenu.shadowNode=_a0;
1211_9c._contextMenu._menuIsRight=_9f;
1212var _a1=i$.createDom("span");
1213_a0.appendChild(_a1);
1214i$.addClass(_a1,_24.menuOverlay);
1215_9c._contextMenu.overlayNode=_a1;
1216_9c._contextMenu.menuNode=_9e;
1217_7.contextMenu._updateAbsolutePosition(_9c);
1218return _a0;
1219},_updateAbsolutePosition:function(_a2){
1220var _a3=_a2._contextMenu._menuIsRight;
1221var _a4=_a2._contextMenu.menuNode;
1222var _a5=_a2._contextMenu.overlayNode;
1223var _a6=_7.contextMenu._findPos(_a2);
1224var _a7=2;
1225_a5.style.left=(_a6[0]-_a7)+"px";
1226_a5.style.top=(_a6[1]-_a7)+"px";
1227_a5.style.width=(_a2.offsetWidth+(2*_a7))+"px";
1228_a5.style.height=(_a2.offsetHeight+(2*_a7))+"px";
1229var dir=document.getElementsByTagName("html")[0].getAttribute("dir");
1230if(dir!=null){
1231dir=dir.toLowerCase();
1232}else{
1233dir="";
1234}
1235if(!(dir=="rtl")){
1236_a4.style.left=((_a3)?_a6[0]+_a2.offsetWidth:_a6[0])+"px";
1237}else{
1238_a4.style.left=((_a3)?_a6[0]+_a2.offsetWidth-_a2.scrollWidth:_a6[0]+_a2.scrollWidth)+"px";
1239}
1240_a4.style.top=_a6[1]+"px";
1241},_adjustScreenPositionStart:function(){
1242return document.documentElement.scrollHeight;
1243},_adjustScreenPositionEnd:function(_a8){
1244var _a9=document.documentElement.scrollHeight;
1245if(_a8!=_a9){
1246document.documentElement.scrollTop=document.documentElement.scrollHeight;
1247}
1248},_findPos:function(obj){
1249var _aa=curtop=0;
1250if(obj.offsetParent){
1251do{
1252_aa+=obj.offsetLeft;
1253curtop+=obj.offsetTop;
1254}while(obj=obj.offsetParent);
1255var _ab=[_aa,curtop];
1256return _ab;
1257}
1258},});
1259var _24=_7.contextMenu.css;
1260})();
1261
1262
1263}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
1264try{(function(){
1265    i$.merge({
1266	"NO_ITEMS_0":"No items to display",
1267	"ERROR_LOADING_0":"Error happened while loading the menu.",
1268	"LOADING_0":"Loading..."
1269},i$.fromPath("wptheme.contextMenu.nls",true));
1270})();
1271}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
1272try{(function(_1){
1273var _2="aria-labelledby",_3="aria-describedby",_4="aria-pressed",_5="title",_6="true",_7="false",_8="selected",_9="disabled",_a="wpToolbarHighContrast",_b="http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",_c="wpInfoModeToggle",_d="wpInfoModeToggleLink",_e="wpPageModeToggle",_f="wpPageModeToggleLink",_10="wpToolbarToggle",_11="ibm.portal.home.createpage",_12="ibm.portal.toolbar.NewPage",_13="wps.content.root",_14="wps.Administration",_15="ibm.portal.page.Applications",_16=[13,32,38,40],_17=[13,32],T=true,F=false,_18=i$.byId,_19=i$.hasClass,_1a=i$.addClass,_1b=i$.removeClass,_1c=i$.forEach,_1d=i$.toQuery,_1e=i$.fromPath,_1f=i$.bindDomEvt;
1274function _20(_21,_22){
1275var _23=_21||_18(_e),_24="valueoff",_25="valueon";
1276if(_22){
1277if(!_19(_23,_25)){
1278_1b(_23,_24);
1279_1a(_23,_25);
1280_26(_23,_4,_6);
1281_26(_23,_5,_27(_28(_18("wpEditModeDesc"))));
1282}
1283}else{
1284if(_19(_23,_25)){
1285_1b(_23,_25);
1286_1a(_23,_24);
1287_26(_23,_4,_7);
1288_26(_23,_5,_27(_28(_18("wpViewModeDesc"))));
1289}
1290}
1291};
1292function _29(_2a,_2b){
1293var _2c=_2a||_18(_c),_2d=_18(_d);
1294if(_2b){
1295if(!_19(_2c,_8)){
1296_1a(_2c,_8);
1297_26(_2d,_2,"wpInfoModeOnLabel");
1298_26(_2d,_3,"wpInfoModeOnDesc");
1299_26(_2d,_4,_6);
1300_26(_2c,_5,_27(_28(_18("wpInfoModeOnDesc"))));
1301}
1302}else{
1303if(_19(_2c,_8)){
1304_1b(_2c,_8);
1305_26(_2d,_2,"wpInfoModeOffLabel");
1306_26(_2d,_3,"wpInfoModeOffDesc");
1307_26(_2d,_4,_7);
1308_26(_2c,_5,_27(_28(_18("wpInfoModeOffDesc"))));
1309}
1310}
1311};
1312function _2e(_2f,e){
1313if(!_30(e,_17)){
1314return F;
1315}
1316_1a(_2f,_8);
1317var _31=wpModules.toolbar;
1318if(_31.isToolbarOpened()){
1319_31.closeToolbar();
1320}else{
1321_31.openToolbar({"autoOpenDefaultTabs":true});
1322}
1323return T;
1324};
1325function _32(_33,_34,e){
1326if(!_30(e,_17)){
1327return F;
1328}
1329if(!_19(_33,_9)){
1330var t=wpModules.toolbar,_35=t.isEditModeActive();
1331if(_35){
1332t.setEditModeActive(F);
1333}else{
1334if(_34&&_36()){
1335var _37={"editMode":T};
1336if(!t.isToolbarOpened()){
1337_37.autoOpenDefaultTabs=true;
1338}
1339t.openToolbar(_37);
1340}else{
1341t.setEditModeActive(T);
1342}
1343}
1344_20(_33,!_35);
1345}
1346return T;
1347};
1348function _38(_39,e){
1349if(!_30(e,_17)){
1350return F;
1351}
1352var t=wpModules.toolbar,_3a=t.isInfoModeActive();
1353_29(_39,!_3a);
1354t.setInfoModeActive(!_3a);
1355return T;
1356};
1357function _3b(_3c,e){
1358var _3d=F;
1359if(_3e()){
1360_3d=_3f(_3c,_13,e);
1361}else{
1362_40(_13);
1363_3d=T;
1364}
1365return _3d;
1366};
1367function _41(_42,e){
1368var _43=F;
1369if(_3e()){
1370_43=_3f(_42,_15,e);
1371}else{
1372_40(_15);
1373_43=T;
1374}
1375return _43;
1376};
1377function _44(_45,e){
1378var _46=T;
1379_40(_14);
1380return _46;
1381};
1382function _3e(){
1383var _47=(typeof wptheme!="undefined"&&wptheme.contextMenu);
1384return _47;
1385};
1386function _3f(_48,_49,e){
1387if(!_30(e,_16)){
1388return F;
1389}
1390var _4a={"navID":_4b(),"rootNode":_49};
1391var _4c=wpModules.toolbar;
1392if(_4c&&_4c.isToolbarOpened()){
1393_4a.contribURI="nm:oid:ibm.portal.Toolbar";
1394}
1395_4d(_48,"navigationMenu",_4a);
1396return T;
1397};
1398function _4d(_4e,_4f,_50){
1399_1a(_4e.parentNode,_8);
1400_26(_4e,_4,_6);
1401args={"node":_4e.parentNode,"menuId":_4f,"jsonQuery":_50,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
1402_1b(_4e.parentNode,_8);
1403_26(_4e,_4,_7);
1404}};
1405wptheme.contextMenu.init(args);
1406};
1407function _26(_51,_52,_53){
1408_51.setAttribute(_52,_53);
1409};
1410function _28(_54){
1411return _54.firstChild;
1412};
1413function _27(_55){
1414return _55.nodeValue;
1415};
1416function _56(_57){
1417var fc=_57.firstChild;
1418while(fc&&fc.nodeType!==1){
1419fc=fc.nextSibling;
1420}
1421return fc;
1422};
1423function _58(_59,_5a,_5b){
1424if(_5b&&_59&&_5a&&_5a.length>0){
1425_1c(_5a,function(p){
1426if(_59.name==p.name&&_59.nsuri==p.nsuri){
1427_5b(p.value);
1428return F;
1429}
1430});
1431}
1432};
1433function _30(e,_5c){
1434var k=e?e.keyCode:null;
1435if(k){
1436if(_5c){
1437var r=_5c.indexOf(k)>=0;
1438return r;
1439}else{
1440return F;
1441}
1442}
1443return T;
1444};
1445function _5d(){
1446return wpModules.toolbar.getViewAreaWindow();
1447};
1448function _4b(){
1449var r=_5d().ibmCfg.portalConfig.currentPageOID;
1450return r;
1451};
1452function _5e(){
1453return _1e("ibmCfg.portalConfig.isCurrentPageEditable",false,_5d());
1454};
1455function _36(){
1456return _1e("wpModules.state.page.supportsToolbar",false,_5d());
1457};
1458function _40(id){
1459wpModules.toolbar.loadViewArea("nm:oid:"+id);
1460};
1461function _5f(_60){
1462if(_60&&_60.pageId){
1463var id=_60.pageId;
1464if(id&&id.value&&id.value.length>0){
1465_40(id.value[0]);
1466}
1467}
1468};
1469i$.addOnLoad(function(){
1470var _61=i$.fromPath("wpModules.state.page",false);
1471if(_61){
1472var _62=_61.getStateManager();
1473_62.addListener(function(_63){
1474var _64=_63.renderParams().getModified();
1475_58({"nsuri":_b,"name":"editMode"},_64,function(_65){
1476var res=(_65&&_65[0]=="true"),_66=_18(_e);
1477if(_66){
1478_20(_66,res);
1479}
1480});
1481_58({"nsuri":_b,"name":"infoMode"},_64,function(_67){
1482var res=(_67&&_67[0]=="true"),_68=_18(_c);
1483if(_68){
1484_29(_68,res);
1485}
1486});
1487});
1488}
1489var _69=wpModules.toolbar.getViewAreaWindow();
1490if(self===_69){
1491var w=_69.parent||_69,_6a=w.document.getElementById(_e);
1492if(_6a){
1493if(_5e()){
1494_1b(_6a,_9);
1495}else{
1496_1a(_6a,_9);
1497}
1498}
1499var _6b=w.document.getElementById(_10);
1500if(_6b){
1501if(_36()){
1502_1b(_6b,_9);
1503}else{
1504_1a(_6b,_9);
1505}
1506}
1507}
1508var _6c=_18(_11);
1509if(_6c){
1510var _6d=wpModules.toolbar;
1511_6c.onClose=_5f;
1512if(_6d.isToolbarOpened()||_18(_e)){
1513var _6e={};
1514_6e.id=_11;
1515_6e.key="onClose";
1516_1f(_6c,"click",function(e){
1517_6d.openToolbar({"primaryTab":"siteManagerTreeTab:context:oid:"+_4b()+":default:action:CREATE_CHILD_PAGE","onCloseDialog":_6e});
1518e.preventDefault?e.preventDefault():e.returnValue=F;
1519return F;
1520});
1521}
1522}
1523});
1524wpModules.a11y.highContrastMode.then(function(_6f){
1525if(_6f){
1526_1a(_18(_c),_a);
1527}
1528});
1529_1.toggleToolbar=_2e;
1530_1.toggleEditMode=_32;
1531_1.toggleInfoMode=_38;
1532_1.openSitesMenu=_3b;
1533_1.openApplicationsMenu=_41;
1534_1.openAdministration=_44;
1535})(i$.fromPath("wpModules.theme.ActionBar",true));
1536
1537
1538}catch(e){console.log("Module 'wp_toolbar_actionbar': ",e);}
1539try{if(typeof (wpModules.toolbar)=="undefined"){
1540wpModules.toolbar={};
1541}
1542if(typeof (wpModules.toolbar.menuActions)=="undefined"){
1543wpModules.toolbar.menuActions={};
1544}
1545
1546
1547}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
1548try{(function(){
1549    i$.merge({
1550	"move_page_dialog_title":"Move the page '{0}' to...",
1551	"edit_wiring_dialog_title":"Manage Communication Endpoints for '{0}'",
1552	"confirm_delete_page_anonymous":"Are you sure you want to delete this page and all of its children?",
1553	"delete_control_dialog_title":"Delete Portlet",
1554	"confirm_delete_page":"Are you sure you want to delete the page '{0}' and all of its children?",
1555	"confirm_delete_control_anonymous":"Are you sure you want to remove this portlet from the page?",
1556	"page_properties_dialog_title":"Manage Page Properties",
1557	"delete_page_dialog_title":"Delete Page",
1558	"edit_wiring_dialog_title_anonymous":"Manage Communication Endpoints",
1559	"preview_as_user_dialog_title":"Preview as User",
1560	"confirm_delete_control":"Are you sure you want to remove the portlet '{0}' from the page?"
1561},i$.fromPath("wpModules.toolbar.menuActions.nls",true));
1562})();
1563}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
1564try{(function(_1,_2){
1565var _3="?uri=pagemode:edit:off&uri=op:ibm.portal.operations.showPreviewScreen()&returnURI=dialog:CloseModalDialog",_4={"then":function(){
1566}},_5=i$.fromPath,_1=_1,_6=_1.document,_7=wpModules.toolbar,_8=_2,_9=function(_a){
1567var _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){
1568if(_f){
1569var _10=get(_f,"action");
1570if(_10=="ok"){
1571var _11=get(_f,"userID"),_12=get(_f,"path");
1572_13(_11,_12);
1573}
1574}
1575}},_14=new wpModules.dialog.Dialog(_e);
1576_14.open();
1577var r=_4;
1578return r;
1579},_13=function(_15,_16){
1580var url=_7.getBaseURL(_17());
1581url=url.replace(_16,_16+_15);
1582url+=url.indexOf("?")<0?"?":"&";
1583url+="uri=toolbar:close&uri=pagemode:edit:off";
1584top.location.href=url;
1585},_18=function(_19){
1586var r=_19.visibility!==false;
1587return r;
1588},_1a=function(_1b){
1589var r=_1c();
1590return r;
1591},_1c=function(){
1592var r=_5("ibmCfg.portalConfig.canAnonymousUserViewCurrentPage",false,_17());
1593return r;
1594},_17=function(){
1595var r=_7.getViewAreaWindow();
1596return r;
1597},_1d=function(_1e){
1598return {"then":function(cb){
1599cb(_1e);
1600}};
1601},_d=function(key){
1602var r=_8.nls[key];
1603return r;
1604},get=function(obj,key){
1605var o=obj[key],r=null;
1606if(o){
1607var v=o.value;
1608if(v&&v.length>0){
1609r=v[0];
1610}
1611}
1612return r;
1613};
1614_8.openPreviewAsUserDialog=_9;
1615_8.isPreviewAsUnauthenticatedUserVisible=_18;
1616_8.isPreviewAsUnauthenticatedUserEnabled=_1a;
1617})(window,i$.fromPath("wpModules.toolbar.menuActions",true));
1618
1619
1620}catch(e){console.log("Module 'wp_toolbar_sitepreview_menuactions': ",e);}
1621try{(function(){
1622if(typeof ic4_wai_integration!="undefined"&&ic4_wai_integration===true){
1623if(typeof waiHideSecondaryNav!="undefined"&&waiHideSecondaryNav===true){
1624document.getElementById("wpthemeSecondaryBanner").style.display="none";
1625document.getElementById("wpthemeMainContent").style.display="none";
1626}
1627document.getElementById("wptheme_banner").removeAttribute("role");
1628document.getElementById("wptheme_contentinfo").removeAttribute("role");
1629if(dojo!="undefined"){
1630djConfig.locale=dojo.locale;
1631dojo.addOnLoad(function(){
1632document.getElementById("logoutlink").onclick=null;
1633});
1634}
1635if(typeof appName!="undefined"&&appName==="profile"){
1636ibmConfig.proxyURL=svcHrefProfiles+"/ajaxProxy/";
1637ibmConfig["com.ibm.mashups.proxy.url"]=svcHrefProfiles+"/ajaxProxy";
1638djConfig.baseUrl=(needProxy?(ibmConfig.proxyURL+encodeURIComponent(baseProtocol)+"/"+encodeURIComponent(baseHost)):(baseProtocol+"://"+baseHost))+basePath+"/web/dojo/";
1639djConfig.proxy=applicationContext+"/ajaxProxy";
1640}
1641if(typeof i$!="undefined"&&i$.isRTL){
1642document.body.className=document.body.className.replace("lotusImagesOff","");
1643document.body.className+=" wptheme_ic4_wai_rtl";
1644}
1645}
1646})();
1647
1648
1649}catch(e){console.log("Module 'wp_ic4_wai_resources': ",e);}
1650try{(function(){
1651if(!i$.isIE){
1652i$.addOnLoad(function(){
1653var _1=new Array();
1654var _2=document.getElementsByTagName("SECTION");
1655var _3=null;
1656for(var i=0;i<_2.length;i++){
1657if(i$.hasClass(_2[i],"a11yRegionTarget")){
1658var _4=_2[i];
1659var _5=null;
1660var _6=_4.getElementsByTagName("SPAN");
1661var _7=document.getElementsByTagName("HEADER");
1662var _8=null;
1663for(var j=0;j<_6.length;j++){
1664if(i$.hasClass(_6[j],"a11yRegionLabel")){
1665_5=_6[j];
1666}
1667}
1668if(_5){
1669var _9=_5;
1670var _a=_4;
1671while((_a=_a.parentNode)!=null){
1672if(i$.hasClass(_a,"component-control")){
1673var m=_a&&(_a.className||"").match(/id-([\S]+)/);
1674_3=m&&m[1];
1675break;
1676}
1677}
1678if(_3){
1679var _b="skinHeader"+_3;
1680var _c=_9.innerHTML;
1681if(_1.indexOf(_c)>-1){
1682for(var j=0;j<_1.length;j++){
1683var _d=_c.concat(" ").concat(j+1);
1684if(_1.indexOf(_d)==-1){
1685_c=_d;
1686_1.push(_c);
1687break;
1688}
1689}
1690}else{
1691_1.push(_c);
1692}
1693_4.setAttribute("aria-label",_c);
1694for(var k=0;k<_7.length;k++){
1695if(i$.hasClass(_7[k],"wpthemeControlHeader")){
1696_8=_7[k];
1697if(_8.parentNode==_4){
1698_8.setAttribute("aria-label",_b);
1699}
1700}
1701}
1702}
1703}
1704}
1705}
1706});
1707}
1708})();
1709
1710
1711}catch(e){console.log("Module 'wp_theme_skin_region': ",e);}
1712try{(function(){
1713    i$.merge({
1714	"WARNING_0":"Warning",
1715	"DELETE_0":"Delete",
1716	"INFO_0":"Information",
1717	"MESSAGES_AVAILABLE_1":"${0} messages are available for review",
1718	"SHOW_DETAILS_0":"Show Details",
1719	"ERROR_0":"Error",
1720	"HIDE_DETAILS_0":"Hide Details"
1721},i$.fromPath("wptheme.statusBar.nls",true));
1722})();
1723}catch(e){console.log("Module 'wp_status_bar': ",e);}
1724try{(function(){
1725if(typeof com==="undefined"||!com){
1726com={};
1727}
1728if(typeof com.ibm==="undefined"||!com.ibm){
1729com.ibm={};
1730}
1731if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){
1732com.ibm.widgets={};
1733}
1734if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){
1735com.ibm.widgets.StatusType=function(id,_1,_2,_3){
1736this._id=id;
1737this._styleClass=_1;
1738this._iconPath=_2;
1739this._iconAlt=_3;
1740};
1741}
1742if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){
1743com.ibm.widgets.StatusMessage=function(_4,_5,_6){
1744this._type=_4;
1745this._message=_5;
1746if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){
1747this._message=_5.message;
1748}
1749this._details=_6;
1750};
1751}
1752if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){
1753com.ibm.widgets.StatusBarV2=function(_7){
1754this.uid=_7;
1755this.showDetails=false;
1756this._messages=[];
1757this._connections=[];
1758this._numMessages=0;
1759this._baseURL=window.location.protocol+"//"+window.location.host;
1760this.blankGifIcon="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
1761this._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)};
1762i$.addListener("/portal/status",i$.scope(this,this.addMessage));
1763i$.addListener("/message/status",i$.scope(this,this.addMessage));
1764i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage));
1765i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage));
1766if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){
1767this.isBidi=ibmCfg.portalConfig.isRTL;
1768}else{
1769if(typeof (ibmPortalConfig)!="undefined"){
1770this.isBidi=ibmPortalConfig.isRTL;
1771}else{
1772if(typeof (ibmConfig)!="undefined"){
1773this.isBidi=ibmConfig.isBidi;
1774}
1775}
1776}
1777i$.addOnUnload(i$.scope(this,this._onWindowUnload));
1778this.containerNode=i$.byId("wpthemeStatusBarContainer");
1779};
1780}
1781i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){
1782i$.forEach(this._connections,function(_8){
1783i$.unbindDomEvt(_8);
1784});
1785this._connections=null;
1786this.clear();
1787this._messages=null;
1788},_getStatusContainer:function(){
1789return this.containerNode;
1790},_escapeHTML:function(_9){
1791if(_9.replace){
1792return _9.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");
1793}
1794return _9;
1795},setShowDetails:function(_a){
1796this.showDetails=_a;
1797},toggleShowDetails:function(){
1798this.setShowDetails(!this.showDetails);
1799this.render();
1800},clear:function(){
1801var _b=this._getStatusContainer();
1802if(!!_b){
1803_b.innerHTML="";
1804_b.setAttribute("role","");
1805_b.setAttribute("wairole","");
1806}
1807this._messages.length=0;
1808},clearMessage:function(_c){
1809if(_c.uid&&_c.uid!=this.uid){
1810return;
1811}
1812var _d=_c.message;
1813if(typeof _d==="undefined"||_d===null){
1814this.clear();
1815}else{
1816for(var i=this._messages.length-1;i>=0;i--){
1817if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){
1818this._messages.splice(i,1);
1819}
1820}
1821if(this._messages.length==0){
1822this.clear();
1823}else{
1824if(this._messages.length<100){
1825this.render(this._getStatusContainer());
1826}
1827}
1828}
1829},addMessage:function(_e){
1830if(_e.uid&&_e.uid!=this.uid){
1831return;
1832}
1833var _f=_e.message;
1834this._messages.push(_f);
1835if(this._messages.length<100){
1836this.render(this._getStatusContainer());
1837}
1838},render:function(_10){
1839if(_10==null){
1840_10=this._getStatusContainer();
1841}
1842_10.innerHTML="";
1843if(this._messages.length>1){
1844this.renderHeader(_10);
1845}else{
1846if(this._messages.length==1){
1847this.renderMessage(_10,this._messages[0],this.showDetails,0);
1848}
1849}
1850if(this.showDetails&&this._messages.length>1){
1851for(x in this._messages){
1852this.renderMessage(_10,this._messages[x],this.showDetails,x);
1853}
1854}
1855},renderHeader:function(_11){
1856if(this._messages.length>1){
1857var _12=2;
1858for(var i=0;i<this._messages.length;i++){
1859_12=Math.min(_12,this._statusTypesMap[this._messages[i]._type]._id);
1860}
1861var _13="info";
1862for(x in this._statusTypesMap){
1863if(this._statusTypesMap[x]._id==_12){
1864_13=x;
1865break;
1866}
1867}
1868var _14=new com.ibm.widgets.StatusMessage(_13,wptheme.statusBar.nls.MESSAGES_AVAILABLE_1.replace("${0}",this._messages.length),"");
1869this.renderMessage(_11,_14,this.showDetails,-1);
1870}
1871},renderMessage:function(_15,_16,_17,_18){
1872var _19=this._statusTypesMap[_16._type];
1873var _1a=document.createElement("div");
1874_1a.className="wpthemeMessage "+_19._styleClass;
1875if(this._messages.length>1&&_18>=0){
1876_1a.className+=" wpthemeMoreMsg";
1877}
1878var _1b=document.createElement("img");
1879_1b.className="wpthemeMsgIcon "+(_19._styleClass=="wpthemeError"?"wpthemeMsgIconError":_19._styleClass=="wpthemeWarning"?"wpthemeMsgIconWarning":"wpthemeMsgIconInfo");
1880_1b.src=_19._iconPath;
1881_1b.alt=_1b.title=_19._iconAlt;
1882_1a.appendChild(_1b);
1883var _1c=document.createElement("span");
1884_1c.className="wpthemeAltText";
1885_1c.innerHTML=this._escapeHTML(_19._iconAlt+":");
1886_1a.appendChild(_1c);
1887var _1d=document.createElement("div");
1888_1d.className="wpthemeMessageBody";
1889_1d.innerHTML=this._escapeHTML(_16._message);
1890_1a.appendChild(_1d);
1891if((this._messages.length>1&&_18<0)||(this._messages.length==1)){
1892if(_16._details&&_16._details.length>0||_18<0){
1893var _1e=document.createElement("a");
1894_1e.href="javascript:void(0)";
1895_1e.className="wpthemeHideShow";
1896_1e.role="button";
1897this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetail
1897s)));
1898var _1f=document.createElement("img");
1899_1f.className="wpthemeMsgIcon16";
1900_1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
1901_1e.appendChild(_1f);
1902var _20=document.createElement("span");
1903_20.className="wpthemeAltText";
1904_1e.appendChild(_20);
1905}else{
1906_17=false;
1907}
1908var _21=document.createElement("a");
1909_21.href="javascript:void(0);";
1910_21.className="wpthemeDelete";
1911_21.role="button";
1912_21.title=wptheme.statusBar.nls.DELETE_0;
1913this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear)));
1914var _22=document.createElement("img");
1915_22.alt=wptheme.statusBar.nls.DELETE_0;
1916_22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
1917_21.appendChild(_22);
1918var _23=document.createElement("span");
1919_23.className="wpthemeAltText";
1920_23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0);
1921_21.appendChild(_23);
1922if(_16._details&&_16._details.length>0||_18<0){
1923if(_17){
1924_1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0;
1925_1f.className+=" wpthemeMsgIconHide";
1926_1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0;
1927_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0);
1928}else{
1929_1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0;
1930_1f.className+=" wpthemeMsgIconShow";
1931_1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0;
1932_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0);
1933}
1934_1a.appendChild(_1e);
1935}
1936_1a.appendChild(_21);
1937}
1938var _24=document.createElement("div");
1939_24.className="wpthemeClear";
1940_1a.appendChild(_24);
1941if(_16._details&&_16._details.length>0&&_17&&_18>=0){
1942var _25=document.createElement("div");
1943_25.className="wpthemeDetails";
1944_25.appendChild(document.createTextNode(_16._details));
1945_1a.appendChild(_25);
1946}
1947_15.appendChild(_1a);
1948_15.setAttribute("role","alert");
1949_15.setAttribute("wairole","alert");
1950}});
1951if(typeof wpstatusbar==="undefined"||!wpstatusbar){
1952wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox");
1953}
1954var _26=i$.getCookie("ibm.portal.operations.error");
1955if(_26){
1956var _27=i$.fromJson(decodeURIComponent(_26));
1957var _28="error";
1958if(_27.errorType){
1959_28=_27.errorType;
1960}else{
1961if(_27.errorCode){
1962if(_27.errorCode=="400"){
1963_28="error";
1964}
1965}
1966}
1967i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]);
1968i$.deleteCookie("ibm.portal.operations.error");
1969}
1970i$.addOnLoad(function(){
1971if("localStorage" in window&&window["localStorage"]!==null){
1972if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){
1973i$.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"}]);
1974localStorage.removeItem("com.ibm.wp.toolbar.msg.type");
1975localStorage.removeItem("com.ibm.wp.toolbar.msg.msg");
1976}
1977}
1978});
1979})();
1980
1981
1982}catch(e){console.log("Module 'wp_status_bar': ",e);}
1983try{(function(_1){
1984var _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){
1985var k=e.keyCode;
1986if(k&&k!==13&&k!==32&&k!==38&&k!==40){
1987return false;
1988}
1989var 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){
1990_1f.focus();
1991if(_23){
1992var _24=get(_23,_d);
1993if(_f==_24){
1994_25(_23);
1995}else{
1996if(_10==_24){
1997_26(_23);
1998}else{
1999if(_11==_24){
2000_27(_23);
2001}
2002}
2003}
2004}
2005}};
2006_28(_22);
2007return true;
2008},_25=function(_29){
2009var uri=get(_29,_e),_2a=get(_29,_c)=="true";
2010if(uri){
2011var _2b=[],_2c=_1d.isToolbarOpened(),_2d=_2e(uri),_2f=_30(_29),_31=_32();
2012if(_2c&&!_2d){
2013if(_2f){
2014_1d.closeToolbar({"editMode":_2a});
2015}else{
2016_1d.setEditModeActive(_2a);
2017}
2018}else{
2019if(_2a!=_21()){
2020if(_2a){
2021_2b.push(_13);
2022if(!_2c&&_31){
2023_2b.push(_15);
2024}
2025}else{
2026_2b.push(_14);
2027}
2028}
2029if(_2c){
2030if(_2f){
2031_1d.closeTab();
2032}else{
2033if(_31){
2034if(_2a){
2035_2b.push(_15);
2036}else{
2037_2b.push(_16);
2038}
2039}
2040}
2041}
2042_2b.push(_33(uri));
2043var win=_34(),url=_35(_2b,win),_36=win.parent||win;
2044_36.location.href=url;
2045}
2046}
2047},_26=function(_37){
2048var _38=_39(_3a(_37,_e));
2049if(_38){
2050var _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){
2051if(_3e&&_3e.result=="project_published"){
2052_1d.closeToolbar({"editMode":false});
2053}else{
2054_1d.reloadViewArea(true);
2055}
2056}};
2057_28(_3d);
2058}
2059},_27=function(_3f){
2060var uri=get(_3f,_e);
2061_1d.openToolbar({tab:uri});
2062},_28=function(_40){
2063var _41=new wpModules.dialog.Dialog(_40);
2064_41.open();
2065},_35=function(_42,_43){
2066var _44=_43?_45(_43):"",url=[_44];
2067_44.indexOf("?")<0?url.push("?"):url.push("&");
2068_1b(_42,function(_46){
2069var uri=_46.uri,_47=_46.params;
2070url.push("uri=");
2071url.push(uri);
2072url.push("&");
2073if(_47){
2074url.push(_1c(_47));
2075url.push("&");
2076}
2077});
2078var r=url.join("");
2079return r;
2080},_3c=function(_48,_49){
2081var _4a=_49?_45(_49):"",url=[_4a],uri=_48.uri,_4b=_48.params;
2082_4a.indexOf("?")<0?url.push("?"):url.push("&");
2083url.push("uri=");
2084url.push(uri);
2085if(_4b){
2086url.push("&");
2087url.push(_1c(_4b));
2088}
2089var r=url.join("");
2090return r;
2091},_33=function(uri,_4c){
2092var a={};
2093a.uri=uri;
2094if(_4c){
2095a.params=_4c;
2096}
2097return a;
2098},_39=function(_4d){
2099if(_4d&&_4d.length>0){
2100var o={};
2101o.uri=_4d[0];
2102o.params={};
2103for(var i=1,l=_4d.length;i<l;i+=2){
2104var key=_4d[i],val=_4d[i+1];
2105if(val){
2106o.params[key]=[val];
2107}
2108}
2109return o;
2110}
2111return null;
2112},get=function(obj,key){
2113var o=obj[key];
2114if(o){
2115var v=o.value;
2116if(v&&v.length>0){
2117var r=v[0];
2118return r;
2119}
2120}
2121return null;
2122},_3a=function(obj,key){
2123var o=obj[key];
2124if(o){
2125var r=o.value;
2126return r;
2127}
2128return null;
2129},_20=function(){
2130var r=_34().ibmCfg.portalConfig.currentPageOID;
2131return r;
2132},_21=function(){
2133var r=_1d.isEditModeActive();
2134return r;
2135},_34=function(){
2136var r=_1d.getViewAreaWindow();
2137return r;
2138},_32=function(){
2139var r=_1a("wpModules.state.page.supportsToolbar",false,_34());
2140return r;
2141},_45=function(win){
2142var r=_1d.getBaseURL(win);
2143return r;
2144},_2e=function(uri){
2145var _4e=_4f(),r=true;
2146if(_4e){
2147r=uri.substring(_7.length)!=_4e;
2148}else{
2149r=uri!=_8;
2150}
2151return r;
2152},_30=function(_50){
2153var _51=_3a(_50,_d),r=(_51&&_51.length>1&&_51[1]==_12);
2154return r;
2155},_4f=function(){
2156return _34().ibmCfg.portalConfig.projectUUID;
2157};
2158i$.addOnLoad(function(){
2159var _52=_18(_2);
2160if(_52){
2161var _53=function(e){
2162if(_1e(_52,e)){
2163e.preventDefault?e.preventDefault():e.returnValue=false;
2164return false;
2165}
2166};
2167_19(_52,"click",_53);
2168_19(_52,"keydown",_53);
2169}
2170});
2171})(window);
2172
2173
2174}catch(e){console.log("Module 'wp_toolbar_projectmenu': ",e);}
2175try{(function(_1,_2){
2176var _3="aria-pressed",_4="selected",_5="true",_6="false",_7=_1.document,_8=i$.addClass,_9=i$.removeClass,_a=wpModules.theme.WindowUtils,_b=_2,_c=function(_d,_e,e){
2177if(e){
2178var k=e.keyCode;
2179if(k&&k!==13&&k!==32&&k!==38&&k!==40){
2180return false;
2181}
2182}
2183if(typeof wptheme!="undefined"&&wptheme.contextMenu){
2184var _f=_10(),_11=[];
2185for(var i=0,l=_f.length;i<l;i++){
2186_11.push("nm:oid:"+_f[i]);
2187}
2188var _12={resURI:"nm:oid:"+_13(_14()),contribURI:_11},_15={"node":_d.parentNode,"menuId":_e,"jsonQuery":_12,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
2189_16(_d);
2190}};
2191_17(_d);
2192wptheme.contextMenu.init(_15);
2193return true;
2194}else{
2195return false;
2196}
2197},_17=function(_18){
2198_8(_18.parentNode,_4);
2199_19(_18,_3,_5);
2200},_16=function(_1a){
2201_9(_1a.parentNode,_4);
2202_19(_1a,_3,_6);
2203},_19=function(_1b,_1c,_1d){
2204_1b.setAttribute(_1c,_1d);
2205},_14=function(){
2206var r=_a.getWindow(_a.VIEW_AREA);
2207return r;
2208},_13=function(win){
2209var r=win.ibmCfg.portalConfig.currentPageOID;
2210return r;
2211},_10=function(){
2212var r=_a.getPageIDs();
2213return r;
2214};
2215_b.open=_c;
2216})(window,i$.fromPath("wpModules.toolbar.ContextMenu",true));
2217
2218
2219}catch(e){console.log("Module 'wp_toolbar_contextmenu': ",e);}
2220try{(function(_1){
2221var _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){
2222var _f=function(){
2223_4(_d,_8);
2224};
2225return setTimeout(_f,_e);
2226},_10=function(_11,_12){
2227var _13=function(){
2228_5(_11,_8);
2229};
2230return setTimeout(_13,_12);
2231};
2232i$.addOnLoad(function(){
2233var _14=_6(_9);
2234if(_14){
2235var _15=_14.parentNode,_16=_c(_15,_a);
2236_7(_15,"mouseenter",function(){
2237if(_16){
2238clearTimeout(_16);
2239}
2240_16=_10(_15,_b);
2241});
2242_7(_15,"mouseleave",function(){
2243if(_16){
2244clearTimeout(_16);
2245}
2246_16=_c(_15,_a);
2247});
2248}
2249});
2250})(window);
2251
2252
2253}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.